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

Function indentStack

packages/agent-core/src/logging/formatter.ts:154–159  ·  view source on GitHub ↗
(stack: string)

Source from the content-addressed store, hash-verified

152}
153
154function indentStack(stack: string): string {
155 return stack
156 .split('\n')
157 .map((line, i) => (i === 0 ? ` ${line}` : ` ${line.trimStart()}`))
158 .join('\n');
159}
160
161export function formatEntry(entry: LogEntry, options: FormatOptions = {}): FormattedEntry {
162 const ctx = entry.ctx ? redactCtx(entry.ctx) : undefined;

Callers 1

formatEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected