Function
agentEvent
(agentId: string, event: Record<string, unknown>)
Source from the content-addressed store, hash-verified
| 9 | const mocks = vi.hoisted(() => { |
| 10 | const eventHandlers = new Set<(event: any) => void>(); |
| 11 | const agentEvent = (agentId: string, event: Record<string, unknown>) => ({ |
| 12 | sessionId: 'ses_prompt', |
| 13 | agentId, |
| 14 | ...event, |
| 15 | }); |
| 16 | const mainEvent = (event: Record<string, unknown>) => agentEvent('main', event); |
| 17 | const session = { |
| 18 | id: 'ses_prompt', |
Tested by
no test coverage detected