(agentDir: string, taskId: string)
| 34 | } |
| 35 | |
| 36 | function taskOutputFile(agentDir: string, taskId: string): string { |
| 37 | if (!VALID_TASK_ID.test(taskId)) { |
| 38 | throw new Error(`Invalid task id: "${taskId}"`); |
| 39 | } |
| 40 | return join(tasksDirOf(agentDir), taskId, 'output.log'); |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Enumerate all persisted background tasks for a session, normalized to the |
no test coverage detected