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

Function pauseGoal

src/index.js:1452–1460  ·  view source on GitHub ↗
(directory, client, sessionID, args)

Source from the content-addressed store, hash-verified

1450 sections.push(`Goal file ${job.goalFile} was requested but could not be read. Continue from the inline goal objective.`);
1451 }
1452 if (job.promptFile) {
1453 const text = await readSmallTextFile(path4.resolve(directory, job.promptFile), 120000);
1454 if (text.trim())
1455 sections.push(`Extra goal instructions from ${job.promptFile}:
1456${text.trim()}`);
1457 }
1458 if (job.goalAcceptance?.length)
1459 sections.push(`Acceptance criteria:
1460` + job.goalAcceptance.map((item, index) => `${index + 1}. ${item}`).join(`
1461`));
1462 if (job.goalChecks?.length)
1463 sections.push(`Verification commands that define useful evidence:

Callers 2

addGoalFunction · 0.85
handleCommandFunction · 0.85

Calls 6

readStateFunction · 0.85
isGoalJobFunction · 0.85
matchJobFunction · 0.85
writeStateFunction · 0.85
scheduleDueWorkFunction · 0.85
toastFunction · 0.85

Tested by

no test coverage detected