(overrides: Record<string, any> = {})
| 36 | // ─── Helpers ─── |
| 37 | |
| 38 | function makeTask(overrides: Record<string, any> = {}): any { |
| 39 | return { |
| 40 | id: 'task-001', |
| 41 | type: 'local_agent' as const, |
| 42 | status: 'running' as const, |
| 43 | description: 'Test task', |
| 44 | startTime: Date.now(), |
| 45 | outputFile: '/tmp/output/task-001', |
| 46 | outputOffset: 0, |
| 47 | notified: false, |
| 48 | ...overrides, |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | type AppStateLike = { tasks: Record<string, any> } |
| 53 | type SetAppStateLike = (f: (prev: AppStateLike) => AppStateLike) => void |