(event: Record<string, unknown>)
| 473 | it('filters prompt output and completion to the main agent turn', async () => { |
| 474 | mocks.session.prompt.mockImplementationOnce(async () => { |
| 475 | const emit = (event: Record<string, unknown>) => { |
| 476 | for (const handler of Array.from(mocks.eventHandlers)) { |
| 477 | handler(event); |
| 478 | } |
| 479 | }; |
| 480 | |
| 481 | emit(mocks.mainEvent({ type: 'turn.started', turnId: 1, origin: { kind: 'user' } })); |
| 482 | emit( |
no test coverage detected