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

Function readMainWire

packages/agent-core/test/harness/runtime.test.ts:1194–1201  ·  view source on GitHub ↗
(sessionDir: string)

Source from the content-addressed store, hash-verified

1192}
1193
1194async function readMainWire(sessionDir: string): Promise<readonly Record<string, unknown>[]> {
1195 const wire = await readFile(join(sessionDir, 'agents', 'main', 'wire.jsonl'), 'utf-8');
1196 return wire
1197 .trim()
1198 .split('\n')
1199 .filter((line) => line.length > 0)
1200 .map((line) => JSON.parse(line) as Record<string, unknown>);
1201}
1202
1203function baseModelConfig(): string {
1204 return `default_model = "default-mock"

Callers 1

runtime.test.tsFile · 0.70

Calls 1

readFileFunction · 0.50

Tested by

no test coverage detected