MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / persistence.test.ts

File persistence.test.ts

packages/agent-core/test/agent/records/persistence.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { randomBytes } from 'node:crypto';
2import { mkdir, readFile, readdir, rm } from 'node:fs/promises';
3import { tmpdir } from 'node:os';
4import { join } from 'pathe';

Callers

nothing calls this directly

Calls 12

makeWirePathFunction · 0.85
readLinesFunction · 0.70
appendMethod · 0.65
closeMethod · 0.65
readMethod · 0.65
rewriteMethod · 0.65
flushMethod · 0.65
toStringMethod · 0.65
mkdirFunction · 0.50
readdirFunction · 0.50
readFileFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected