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

Function renderAgentFiles

packages/agent-core/src/profile/context.ts:188–191  ·  view source on GitHub ↗
(files: readonly AgentFile[])

Source from the content-addressed store, hash-verified

186}
187
188function renderAgentFiles(files: readonly AgentFile[]): string {
189 if (files.length === 0) return '';
190 return files.map((file) => `${annotationFor(file.path)}${file.content}`).join('\n\n');
191}
192
193function byteLength(text: string): number {
194 return Buffer.byteLength(text, 'utf8');

Callers 1

loadAgentsMdForRootsFunction · 0.85

Calls 1

annotationForFunction · 0.85

Tested by

no test coverage detected