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

Function writeState

src/index.js:331–334  ·  view source on GitHub ↗
(directory, sessionID, state)

Source from the content-addressed store, hash-verified

329 [value, rest] = takeFlagValue(rest, "--notify");
330 if (value !== undefined)
331 job.notifyCommand = stripOuterQuotes(value);
332 [value, rest] = takeFlagValue(rest, "--branch");
333 if (value !== undefined)
334 job.branch = stripOuterQuotes(value);
335 [value, rest] = takeFlagValue(rest, "--batch");
336 if (value !== undefined)
337 job.batch = parsePositiveInt(value, 0);

Callers 12

setGoalCompleteFunction · 0.85
setGoalBlockedFunction · 0.85
setGoalProgressFunction · 0.85
finalizeActiveRunFunction · 0.85
maybeRunDueJobsFunction · 0.85
addLoopFunction · 0.85
stopLoopFunction · 0.85
updateJobStateFunction · 0.85
pauseGoalFunction · 0.85
resumeGoalFunction · 0.85
clearGoalFunction · 0.85
runNowFunction · 0.85

Calls 3

ensureDirFunction · 0.85
stateDirFunction · 0.85
statePathFunction · 0.85

Tested by

no test coverage detected