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

Function dangerousShell

src/index.js:583–586  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

581 if (Array.isArray(baseline)) {
582 const current = await readStateFile(directory, sessionID);
583 jobs = mergeStateJobs(baseline, jobs, current.jobs || []);
584 state.jobs = structuredClone(jobs);
585 state[STATE_BASELINE] = structuredClone(jobs);
586 }
587 const payload = JSON.stringify({ version: 4, jobs }, null, 2);
588 await writeFileAtomically(target, payload);
589 });

Callers 4

runGoalChecksFunction · 0.85
finalizeActiveRunFunction · 0.85
fireActionFunction · 0.85
maybeRunDueJobsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected