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

Function traceClientEvent

apps/kimi-web/src/debug/trace.ts:332–340  ·  view source on GitHub ↗
(label: string, detail?: unknown)

Source from the content-addressed store, hash-verified

330 only a boolean check. Prefer this over raw console.* for diagnostics that
331 should surface in the exported log. */
332export function traceClientEvent(label: string, detail?: unknown): void {
333 if (!isTraceEnabled()) return;
334 push({
335 source: 'client',
336 kind: 'client:event',
337 label: `· ${label}`,
338 detail: detailOf(detail),
339 });
340}
341
342let clientCaptureInstalled = false;
343

Callers 2

ensureAudioUnlockedFunction · 0.90
playChimeFunction · 0.90

Calls 3

isTraceEnabledFunction · 0.85
detailOfFunction · 0.85
pushFunction · 0.70

Tested by

no test coverage detected