( runs: AutonomyRunRecord[], rootDir: string = getProjectRoot(), )
| 214 | } |
| 215 | |
| 216 | async function writeAutonomyRuns( |
| 217 | runs: AutonomyRunRecord[], |
| 218 | rootDir: string = getProjectRoot(), |
| 219 | ): Promise<void> { |
| 220 | const path = resolveAutonomyRunsPath(rootDir) |
| 221 | await mkdir(dirname(path), { recursive: true }) |
| 222 | await writeFile( |
| 223 | path, |
| 224 | `${JSON.stringify( |
| 225 | { |
| 226 | runs: selectPersistedAutonomyRuns(runs), |
| 227 | } satisfies AutonomyRunsFile, |
| 228 | null, |
| 229 | 2, |
| 230 | )}\n`, |
| 231 | 'utf-8', |
| 232 | ) |
| 233 | } |
| 234 | |
| 235 | async function updateAutonomyRun( |
| 236 | runId: string, |
no test coverage detected