Function
project
(
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
Tested by
no test coverage detected