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

Function statePath

src/session/contract.js:64–64  ·  view source on GitHub ↗
(id, cwd)

Source from the content-addressed store, hash-verified

62function activeFile(cwd) { return path.join(contractsDir(cwd), '.active'); }
63function contractDir(id, cwd) { return path.join(contractsDir(cwd), id); }
64function statePath(id, cwd) { return path.join(contractDir(id, cwd), 'state.json'); }
65function logPath(id, cwd) { return path.join(contractDir(id, cwd), 'log.jsonl'); }
66
67// ─── ID generation ───────────────────────────────────────────────────────────

Callers 2

getMethod · 0.85
saveMethod · 0.85

Calls 1

contractDirFunction · 0.85

Tested by

no test coverage detected