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

Function runProcess

src/index.js:551–562  ·  view source on GitHub ↗
(command, args, cwd, timeoutMs = 60_000)

Source from the content-addressed store, hash-verified

549 const intended = byID(intendedJobs);
550 const current = byID(currentJobs);
551 const merged = [];
552 for (const currentJob of currentJobs || []) {
553 const id = currentJob?.id;
554 if (!id || !base.has(id)) {
555 merged.push(structuredClone(currentJob));
556 continue;
557 }
558 const baseJob = base.get(id);
559 const intendedJob = intended.get(id);
560 if (!intendedJob) {
561 if (!stateValuesEqual(baseJob, currentJob))
562 merged.push(structuredClone(currentJob));
563 continue;
564 }
565 merged.push(mergeStateJob(baseJob, intendedJob, currentJob));

Callers 2

ensureBranchFunction · 0.85
createCheckpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected