MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / readSessionState

Function readSessionState

packages/node-sdk/test/rename-session.test.ts:34–37  ·  view source on GitHub ↗
(sessionDir: string)

Source from the content-addressed store, hash-verified

32}
33
34async function readSessionState(sessionDir: string): Promise<Record<string, unknown>> {
35 const raw = await readFile(join(sessionDir, 'state.json'), 'utf-8');
36 return JSON.parse(raw) as Record<string, unknown>;
37}
38
39function findRenamedEvent(
40 events: readonly Event[],

Callers 1

Calls 1

readFileFunction · 0.50

Tested by

no test coverage detected