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

Function project

apps/kimi-web/src/api/daemon/agentEventProjector.ts:589–602  ·  view source on GitHub ↗
(
    rawType: string,
    payload: unknown,
    sessionId: string,
    meta?: ProjectMeta,
  )

Source from the content-addressed store, hash-verified

587 }
588
589 function project(
590 rawType: string,
591 payload: unknown,
592 sessionId: string,
593 meta?: ProjectMeta,
594 ): AppEvent[] {
595 try {
596 return _project(rawType, payload, sessionId, meta);
597 } catch (error) {
598 // Defensive: log but never crash the caller
599 console.error('[agentProjector] Error projecting event:', rawType, error instanceof Error ? error.message : error);
600 return [];
601 }
602 }
603
604 /**
605 * Align a live text-delta against the per-turn accumulated length using the

Callers

nothing calls this directly

Calls 2

_projectFunction · 0.85
errorMethod · 0.65

Tested by

no test coverage detected