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

Function stopLoop

core/loops/registry.js:91–97  ·  view source on GitHub ↗
(projectRoot, id, status = 'stopped', reason = '', options = {})

Source from the content-addressed store, hash-verified

89}
90
91function stopLoop(projectRoot, id, status = 'stopped', reason = '', options = {}) {
92 return updateLoop(projectRoot, id, {
93 status: normalizeStatus(status, 'stopped'),
94 stoppedAt: nowIso(options),
95 stopReason: reason || status,
96 }, options);
97}
98
99function listRegisteredLoops(projectRoot) {
100 const dir = loopsDir(projectRoot);

Callers 3

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

Calls 3

updateLoopFunction · 0.85
normalizeStatusFunction · 0.70
nowIsoFunction · 0.70

Tested by

no test coverage detected