( runId: string, rootDir: string = getProjectRoot(), )
| 255 | } |
| 256 | |
| 257 | export async function getAutonomyRunById( |
| 258 | runId: string, |
| 259 | rootDir: string = getProjectRoot(), |
| 260 | ): Promise<AutonomyRunRecord | null> { |
| 261 | const runs = await listAutonomyRuns(rootDir) |
| 262 | return runs.find(run => run.runId === runId) ?? null |
| 263 | } |
| 264 | |
| 265 | function isActiveAutonomyRunStatus(status: AutonomyRunStatus): boolean { |
| 266 | return status === 'queued' || status === 'running' |