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

Function push

apps/kimi-web/src/debug/trace.ts:103–108  ·  view source on GitHub ↗
(entry: Omit<TraceEntry, 'id' | 'ts'>)

Source from the content-addressed store, hash-verified

101}
102
103function push(entry: Omit<TraceEntry, 'id' | 'ts'>): void {
104 if (tracePaused.value) return;
105 entries.push({ id: nextId++, ts: Date.now(), ...entry });
106 if (entries.length > MAX_ENTRIES) entries.splice(0, entries.length - MAX_ENTRIES);
107 traceVersion.value++;
108}
109
110// ---------------------------------------------------------------------------
111// Sanitization — redact sensitive keys, truncate long strings/arrays/depth.

Callers 8

traceRestRequestFunction · 0.70
traceRestResponseFunction · 0.70
traceRestFailureFunction · 0.70
traceWsLifecycleFunction · 0.70
traceWsOutFunction · 0.70
traceWsInFunction · 0.70
traceClientLogFunction · 0.70
traceClientEventFunction · 0.70

Calls 2

nowMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected