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

Function readLinesFromContent

packages/agent-core/test/tools/read.test.ts:54–60  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

52}
53
54function readLinesFromContent(content: string): Kaos['readLines'] {
55 return async function* readLines(): AsyncGenerator<string> {
56 for (const line of linesFromContent(content)) {
57 yield line;
58 }
59 };
60}
61
62function withReadStatus(output: string, status: string): string {
63 const note = `<system>${status}</system>`;

Callers 2

toolWithContentFunction · 0.70
read.test.tsFile · 0.70

Calls 1

linesFromContentFunction · 0.70

Tested by

no test coverage detected