(patch: Partial<AgentEvent>)
| 4 | import type { AgentEvent } from './agent-event'; |
| 5 | |
| 6 | const event = (patch: Partial<AgentEvent>): AgentEvent => ({ |
| 7 | agent: 'Ada', run: 'one', seq: 1, ts: 1000, tool: 'Read', phase: 'end', |
| 8 | path: 'src/main.ts', detail: 'inspect', source: 'bridge', replay: false, ...patch, |
| 9 | }); |
| 10 | const state = [event({}), event({ seq: 2, ts: 2000, tool: 'Edit', path: 'missing.ts' }), |
| 11 | event({ agent: 'Ben', run: 'two', ts: 3000, path: '' })] |
| 12 | .reduce(withEvent, emptyAgentsState()); |
no outgoing calls
no test coverage detected