/** * Shared helper for diff-based graders — resolve the workspace diff for a * trajectory, converting the absence of a baseline or a git failure into a * grader result rather than a thrown error. */ import type { GraderResult } from "../../index.js"; import type { Trajectory } from "../../trajectory/types.js"; export type ResolvedDiff = { ok: true; diff: string; } | { ok: false; result: GraderResult; }; /** * Compute the workspace diff for {@link trajectory}, or return a failing * {@link GraderResult} explaining why it could not be produced. * * Resolution order: * 1. `trajectory.diff` — inline diff from the run (fastest path, always preferred) * 2. `trajectory.diffPath` — sidecar file written by the JSONL reporter; resolved * relative to `jsonlDir` when provided, otherwise relative to `process.cwd()` * 3. `baselineGitDir` + `baselineRef` — recompute via git (live runs) */ export declare function resolveWorkspaceDiff(trajectory: Trajectory, graderName: string, options?: { jsonlDir?: string; }): Promise; //# sourceMappingURL=resolve-workspace-diff.d.ts.map