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

Function exportLoop

src/index.js:1583–1586  ·  view source on GitHub ↗
(directory, client, sessionID)

Source from the content-addressed store, hash-verified

1581 if (job.stopFile && await pathExists(path.resolve(directory, job.stopFile))) {
1582 state.jobs = (state.jobs || []).filter((candidate) => candidate.id !== job.id)
1583 await writeState(directory, sessionID, state)
1584 await notifyJob(directory, job, "stop_file")
1585 await toast(client, "Loop stopped by --stop-file: " + job.stopFile, "success")
1586 await reschedule()
1587 return
1588 }
1589 if (await untilReached(directory, job)) {

Callers 1

handleCommandFunction · 0.85

Calls 2

readStateFunction · 0.85
sayFunction · 0.85

Tested by

no test coverage detected