MCPcopy Create free account
hub / github.com/SethGammon/Citadel / readLoop

Function readLoop

core/loops/registry.js:52–55  ·  view source on GitHub ↗
(projectRoot, id)

Source from the content-addressed store, hash-verified

50}
51
52function readLoop(projectRoot, id) {
53 const root = path.resolve(projectRoot || process.cwd());
54 return readJsonIfExists(loopPath(root, id));
55}
56
57function updateLoop(projectRoot, id, patch = {}, options = {}) {
58 const current = readLoop(projectRoot, id);

Callers 4

updateLoopFunction · 0.85
appendLoopRunFunction · 0.85
test-loops.jsFile · 0.85
mainFunction · 0.85

Calls 2

loopPathFunction · 0.85
readJsonIfExistsFunction · 0.70

Tested by

no test coverage detected