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

Function contractsDir

src/session/contract.js:57–60  ·  view source on GitHub ↗
(cwd)

Source from the content-addressed store, hash-verified

55// ─── Paths ───────────────────────────────────────────────────────────────────
56
57function contractsDir(cwd) {
58 if (process.env.SMALLCODE_CONTRACT_DIR) return process.env.SMALLCODE_CONTRACT_DIR;
59 return path.join(cwd || process.cwd(), '.smallcode', 'contracts');
60}
61
62function activeFile(cwd) { return path.join(contractsDir(cwd), '.active'); }
63function contractDir(id, cwd) { return path.join(contractsDir(cwd), id); }

Callers 4

activeFileFunction · 0.85
contractDirFunction · 0.85
activateMethod · 0.85
listMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected