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

Function quote

packages/agent-core/src/logging/formatter.ts:119–121  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

117}
118
119function quote(value: string): string {
120 return `"${value.replaceAll('\\', '\\\\').replaceAll('"', '\\"').replaceAll('\n', '\\n')}"`;
121}
122
123function formatPair(key: string, raw: unknown): string {
124 const limited = truncate(serializeValue(raw), CTX_VALUE_MAX_CHARS);

Callers 1

formatPairFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected