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

Function formatKB

packages/agent-core/src/profile/context.ts:197–200  ·  view source on GitHub ↗
(bytes: number)

Source from the content-addressed store, hash-verified

195}
196
197function formatKB(bytes: number): string {
198 const kb = bytes / 1024;
199 return Number.isInteger(kb) ? String(kb) : kb.toFixed(1);
200}
201
202function annotationFor(path: string): string {
203 return `<!-- From: ${path} -->\n`;

Callers 1

loadAgentsMdForRootsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected