MCPcopy
hub / github.com/affaan-m/ECC / getStatusExitCode

Function getStatusExitCode

scripts/loop-status.js:745–753  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

743}
744
745function getStatusExitCode(payload) {
746 if (payload.sessions.some(session => session.state === 'attention')) {
747 return 2;
748 }
749 if (payload.errors.length > 0) {
750 return 1;
751 }
752 return 0;
753}
754
755async function runWatch(options) {
756 const normalizedOptions = normalizeOptions(options);

Callers 3

runWatchFunction · 0.85
mainFunction · 0.85
runTestsFunction · 0.85

Calls

no outgoing calls

Tested by 1

runTestsFunction · 0.68