import type { RunStore } from "./types.ts"; /** What marks a file in the artifacts directory as a run's event log rather than one of its step sessions. */ export declare const RUN_LOG_SUFFIX = ".events.jsonl"; /** * Filesystem `RunStore` (spec §8.9): append-only JSONL, one file per run, so runs are independently * keyed and listable/resumable across sessions and process restarts. * * `dir` is the already-resolved run-artifacts directory (project-dir.ts's `runArtifactsDir`), not a * project root: WHERE a run's artifacts belong is one decision, made once, by whoever holds the * harness context — this file only owns the format. * * That directory also holds every step SESSION file this run spawns (spec §2.2), which is why the log * carries the `.events.jsonl` suffix and why `list()` filters on it: a bare `.jsonl` scan would try to * read each step session as a run log. In the other direction nothing needs doing — the log is not a * session file and the harness's own reader returns `null` for anything whose first line is not * `{"type":"session"}`, with every enumerator dropping nulls. There is no `.meta.json` sidecar any * more: `workflowFilePath` is a `run-meta` event in the log itself (engine/types.ts), so a run is * exactly one file and `delete` is exactly one unlink. */ export declare function createFsStore(dir: string): RunStore; //# sourceMappingURL=fs-store.d.ts.map