MCPcopy Index your code
hub / github.com/ByBrawe/opencode-loop / completeGoalCommand

Function completeGoalCommand

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

Source from the content-addressed store, hash-verified

1487 await scheduleDueWork(directory, client, sessionID)
1488 scheduleIdleWork(directory, client, sessionID)
1489 }
1490}
1491
1492async function clearGoal(directory, client, sessionID, args) {
1493 const target = String(args || "").trim()
1494 const state = await readState(directory, sessionID)
1495 const before = state.jobs.length

Callers 2

addGoalFunction · 0.85
handleCommandFunction · 0.85

Calls 2

setGoalCompleteFunction · 0.85
toastFunction · 0.85

Tested by

no test coverage detected