MCPcopy
hub / github.com/Doorman11991/smallcode / list

Method list

src/session/undo.js:61–68  ·  view source on GitHub ↗
(count = 10)

Source from the content-addressed store, hash-verified

59
60 // List recent edits
61 list(count = 10) {
62 return this.stack.slice(-count).reverse().map(e => ({
63 id: e.id,
64 type: e.type,
65 path: e.path,
66 age: Math.floor((Date.now() - e.timestamp) / 1000),
67 }));
68 }
69
70 _revert(entry) {
71 const fullPath = path.resolve(process.cwd(), entry.path);

Callers 3

skills.test.jsFile · 0.45
contract.test.jsFile · 0.45
statusPayloadFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected