( agentDir: string, taskId: string, )
| 86 | |
| 87 | /** Byte size of a task's `output.log` (0 when absent or unreadable). */ |
| 88 | export async function taskOutputSizeBytes( |
| 89 | agentDir: string, |
| 90 | taskId: string, |
| 91 | ): Promise<number> { |
| 92 | try { |
| 93 | return (await stat(taskOutputFile(agentDir, taskId))).size; |
| 94 | } catch { |
| 95 | return 0; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | export interface TaskOutputWindow { |
| 100 | /** Byte offset this window starts at (clamped to >= 0). */ |
no test coverage detected