()
| 42 | } |
| 43 | |
| 44 | function createToolUseContext() { |
| 45 | return { |
| 46 | abortController: new AbortController(), |
| 47 | agentId: undefined, |
| 48 | getAppState: () => ({ |
| 49 | toolPermissionContext: { mode: 'default' }, |
| 50 | }), |
| 51 | addNotification: (notification: unknown) => { |
| 52 | notifications.push(notification) |
| 53 | }, |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | function expectSummaryMessage( |
| 58 | events: unknown[], |