MCPcopy Create free account
hub / github.com/ByBrawe/opencode-loop / readState

Function readState

src/index.js:322–329  ·  view source on GitHub ↗
(directory, sessionID)

Source from the content-addressed store, hash-verified

320 [value, rest] = takeFlagValue(rest, "--verify");
321 if (value !== undefined)
322 job.verifyCommand = stripOuterQuotes(value);
323 [value, rest] = takeFlagValue(rest, "--preflight");
324 if (value !== undefined)
325 job.preflightCommand = stripOuterQuotes(value);
326 [value, rest] = takeFlagValue(rest, "--postrun");
327 if (value !== undefined)
328 job.postrunCommand = stripOuterQuotes(value);
329 [value, rest] = takeFlagValue(rest, "--notify");
330 if (value !== undefined)
331 job.notifyCommand = stripOuterQuotes(value);
332 [value, rest] = takeFlagValue(rest, "--branch");

Callers 15

startWatchdogFunction · 0.85
scheduleDueWorkFunction · 0.85
setGoalCompleteFunction · 0.85
setGoalBlockedFunction · 0.85
setGoalProgressFunction · 0.85
finalizeActiveRunFunction · 0.85
maybeRunDueJobsFunction · 0.85
addLoopFunction · 0.85
stopLoopFunction · 0.85
updateJobStateFunction · 0.85
statusGoalFunction · 0.85
pauseGoalFunction · 0.85

Calls 1

statePathFunction · 0.85

Tested by

no test coverage detected