| 11 | export const DEFAULT_MAX_RUNTIME_SEC = 3_600; |
| 12 | |
| 13 | export interface RunLoopOptions { |
| 14 | maxRuntimeSec?: number; |
| 15 | rootMode?: boolean; |
| 16 | // Return on the first new terminal-error this run. Default true; |
| 17 | // `--exit-on-all-done` opts into the old drain-to-quiescence behavior. |
| 18 | exitOnError?: boolean; |
| 19 | now?: () => number; |
| 20 | sleep?: (ms: number) => Promise<void>; |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * Drive the workspace to completion: recover running tasks, spawn ready |
nothing calls this directly
no outgoing calls
no test coverage detected