()
| 3 | import type { ToolContext } from '../src/tools/base.js'; |
| 4 | |
| 5 | function makeCtx(): ToolContext { |
| 6 | return { |
| 7 | cwd: process.cwd(), |
| 8 | sessionId: 'parent-session', |
| 9 | transaction: {} as any, |
| 10 | permissions: { evaluate: () => 'allow' } as any, |
| 11 | askUser: async () => 'allow', |
| 12 | emit: () => {}, |
| 13 | signal: new AbortController().signal, |
| 14 | } as ToolContext; |
| 15 | } |
| 16 | |
| 17 | describe('TaskTool', () => { |
| 18 | beforeEach(() => { |