MCPcopy Create free account
hub / github.com/cortexkit/magic-context / persistState

Function persistState

packages/plugin/scripts/longmemeval/runner.ts:265–268  ·  view source on GitHub ↗
(config: RunnerConfig, state: RunnerStateFile)

Source from the content-addressed store, hash-verified

263}
264
265async function persistState(config: RunnerConfig, state: RunnerStateFile): Promise<void> {
266 state.updatedAt = nowIso();
267 await writeJsonAtomic(config.paths.stateFile, state);
268}
269
270function createClient(config: RunnerConfig): OpencodeClient {
271 return createOpencodeClient({

Callers 10

ensureReplaySessionFunction · 0.85
sendBannerIfNeededFunction · 0.85
replayHaystackFunction · 0.85
askFinalQuestionFunction · 0.85
judgeQuestionFunction · 0.85
cleanupSessionsFunction · 0.85
markQuestionCompletedFunction · 0.85
processQuestionFunction · 0.85
mainFunction · 0.85

Calls 2

nowIsoFunction · 0.85
writeJsonAtomicFunction · 0.85

Tested by

no test coverage detected