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

Function removeState

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

Source from the content-addressed store, hash-verified

334 await fs.writeFile(statePath(directory, sessionID), JSON.stringify({ version: 4, jobs: state.jobs || [] }, null, 2))
335}
336
337async function removeState(directory, sessionID) { try { await fs.unlink(statePath(directory, sessionID)) } catch {} }
338
339function sdkError(result) {

Callers 1

stopLoopFunction · 0.85

Calls 1

statePathFunction · 0.85

Tested by

no test coverage detected