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

Function eventSummary

packages/server-e2e/src/report.ts:552–566  ·  view source on GitHub ↗
(event: StoredReportEvent)

Source from the content-addressed store, hash-verified

550}
551
552function eventSummary(event: StoredReportEvent): string {
553 if (event.kind === 'http') {
554 return `${event.method ?? 'HTTP'} ${event.path ?? event.url ?? ''}`.trim();
555 }
556 if (event.kind === 'ws') {
557 const label = frameType(event.frame) ?? event.message ?? 'frame';
558 if (event.direction === 'lifecycle') return `WS ${label}`;
559 const arrow = event.direction === 'out' ? '->' : '<-';
560 return `WS ${arrow} ${label}`;
561 }
562 if (event.kind === 'test-result') {
563 return `test ${event.state ?? 'unknown'}`;
564 }
565 return event.label ?? 'log';
566}
567
568function eventDetail(event: StoredReportEvent): Record<string, unknown> {
569 const { pid: _pid, ordinal: _ordinal, ...detail } = event;

Callers 4

renderDetailCardFunction · 0.85
lifecycleLaneContentFunction · 0.85
leftLaneSummaryFunction · 0.85
rightLaneSummaryFunction · 0.85

Calls 1

frameTypeFunction · 0.70

Tested by

no test coverage detected