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

Function appendIndexLocal

packages/node-sdk/examples/t8-race-direct.ts:24–27  ·  view source on GitHub ↗
(homeDir: string, entry: any)

Source from the content-addressed store, hash-verified

22 }
23}
24async function appendIndexLocal(homeDir: string, entry: any): Promise<void> {
25 await mkdir(homeDir, { recursive: true, mode: 0o700 });
26 await appendFile(sessionIndexPathLocal(homeDir), `${JSON.stringify(entry)}\n`, 'utf-8');
27}
28
29const workDir = process.argv[2]!;
30const homeDir = process.argv[3]!;

Callers 1

emulateCreateFunction · 0.85

Calls 3

sessionIndexPathLocalFunction · 0.85
mkdirFunction · 0.50
appendFileFunction · 0.50

Tested by

no test coverage detected