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

Function runShellCommand

src/index.js:564–575  ·  view source on GitHub ↗
(command, cwd, timeoutMs = 120_000)

Source from the content-addressed store, hash-verified

562 merged.push(structuredClone(currentJob));
563 continue;
564 }
565 merged.push(mergeStateJob(baseJob, intendedJob, currentJob));
566 }
567 for (const intendedJob of intendedJobs || []) {
568 const id = intendedJob?.id;
569 if (!id || base.has(id) || current.has(id))
570 continue;
571 merged.push(structuredClone(intendedJob));
572 }
573 return merged;
574}
575async function writeState(directory, sessionID, state) {
576 await withStateWriteLock(directory, sessionID, async () => {
577 await ensureDir(stateDir(directory));
578 const target = statePath(directory, sessionID);

Callers 4

notifyJobFunction · 0.85
runGoalChecksFunction · 0.85
finalizeActiveRunFunction · 0.85
maybeRunDueJobsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected