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

Function say

src/index.js:441–449  ·  view source on GitHub ↗
(client, sessionID, text)

Source from the content-addressed store, hash-verified

439 break;
440 await delay(25 * (attempt + 1));
441 }
442 }
443 try {
444 await ensureDir(stateDir(directory));
445 await fs.copyFile(target, `${target}.corrupt-${Date.now()}`);
446 } catch {}
447 return { version: 4, jobs: [] };
448}
449async function readState(directory, sessionID) {
450 const state = await readStateFile(directory, sessionID);
451 Object.defineProperty(state, STATE_BASELINE, {
452 value: structuredClone(state.jobs || []),

Callers 7

addLoopFunction · 0.85
statusGoalFunction · 0.85
statusLoopFunction · 0.85
logsLoopFunction · 0.85
helpLoopFunction · 0.85
doctorLoopFunction · 0.85
exportLoopFunction · 0.85

Calls 1

sdkCallFunction · 0.85

Tested by

no test coverage detected