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

Function byteLength

packages/agent-core/src/profile/context.ts:193–195  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

191}
192
193function byteLength(text: string): number {
194 return Buffer.byteLength(text, 'utf8');
195}
196
197function formatKB(bytes: number): string {
198 const kb = bytes / 1024;

Callers 1

loadAgentsMdForRootsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected