(
workspaceId: string,
overrides?: { replay?: boolean }
)
| 6 | const TEST_MODEL = "anthropic:claude-sonnet-4-5"; |
| 7 | |
| 8 | function toolCallEndEvent( |
| 9 | workspaceId: string, |
| 10 | overrides?: { replay?: boolean } |
| 11 | ): Record<string, unknown> { |
| 12 | return { |
| 13 | type: "tool-call-end", |
| 14 | workspaceId, |
| 15 | messageId: "assistant-1", |
| 16 | ...(overrides?.replay === true ? { replay: true } : {}), |
| 17 | toolCallId: "tool-call-1", |
| 18 | toolName: "bash", |
| 19 | result: { success: true }, |
| 20 | timestamp: Date.now(), |
| 21 | }; |
| 22 | } |
| 23 | |
| 24 | function streamStartEvent(workspaceId: string): Record<string, unknown> { |
| 25 | return { |
no outgoing calls
no test coverage detected