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

Function sdkError

src/index.js:338–341  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

336 job.lastRunAt = job.immediate ? 0 : now()
337
338 if (!job.action && !job.promptFile && !job.goalFile) return { ok: false, error: "Missing action. Example: /loop 0s continue from progress.md, /loop-goal ship the feature, or /loop 0s --prompt-file loop-prompt.md" }
339 return { ok: true, job }
340}
341
342function stateDir(directory) { return path.join(directory, STATE_DIR) }
343function statePath(directory, sessionID) { return path.join(stateDir(directory), `${safeID(sessionID)}.json`) }
344async function ensureDir(directory) { await fs.mkdir(directory, { recursive: true }) }

Callers 2

sdkCallFunction · 0.85
readLiveSessionStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected