import type { ExecutorTurnCompletion } from "../executor/types.js"; import type { captureWorkspaceBaseline, computeWorkspaceDiff } from "../graders/static/workspace-diff.js"; import type { TrajectoryTurnDiff } from "../trajectory/types.js"; export interface TurnDiffBaseline { gitDir?: string; ref?: string; captureError?: string; } export interface TurnDiffCaptureOptions { turnCount: number; stimulusName: string; workDir: string; getBaseline: () => TurnDiffBaseline; setRollingBaselineRef: (ref: string) => void; captureBaseline: typeof captureWorkspaceBaseline; computeDiff: typeof computeWorkspaceDiff; } /** * Serializes and records turn-scoped diffs while an executor advances through * a multi-turn stimulus. A bad completion makes later boundaries ambiguous, so * they are recorded as errors rather than diffed against a stale baseline. */ export declare class TurnDiffCapture { private readonly options; readonly records: TrajectoryTurnDiff[]; private readonly capturedTurns; private nextTurnToCapture; private failure; private closed; private queue; constructor(options: TurnDiffCaptureOptions); capture(completion: ExecutorTurnCompletion): Promise; closeAndDrain(): Promise; recordMissingCompletions(): void; private append; private captureCompletion; } //# sourceMappingURL=turn-diff-capture.d.ts.map