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

Function normalizeStatus

core/loops/status.js:30–34  ·  view source on GitHub ↗
(value, fallback = 'planned')

Source from the content-addressed store, hash-verified

28]);
29
30function normalizeStatus(value, fallback = 'planned') {
31 const status = String(value || '').trim().toLowerCase();
32 if (LOOP_STATUSES.includes(status)) return status;
33 return fallback;
34}
35
36function isTerminalStatus(value) {
37 return TERMINAL_STATUSES.includes(normalizeStatus(value));

Callers 8

createLoopContractFunction · 0.70
isTerminalStatusFunction · 0.70
stopSummaryFunction · 0.70
updateLoopFunction · 0.70
appendLoopRunFunction · 0.70
stopLoopFunction · 0.70
daemonLoopFunction · 0.70
codexAutomationLoopsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected