ensure runs dir exists

This commit is contained in:
Ramnique Singh 2026-01-19 22:01:24 +05:30
parent 2fdef8c559
commit 49e0a948f8

View file

@ -20,6 +20,8 @@ export class FSRunsRepo implements IRunsRepo {
idGenerator: IMonotonicallyIncreasingIdGenerator;
}) {
this.idGenerator = idGenerator;
// ensure runs directory exists
fsp.mkdir(path.join(WorkDir, 'runs'), { recursive: true });
}
async appendEvents(runId: string, events: z.infer<typeof RunEvent>[]): Promise<void> {