/** * Stage Context — tracks current stage, transition history, and per-stage artifacts. * (arc42 §5.1) */ import type { ArtifactRef, GateVerdict, StageId } from '../types/index.js'; /** A recorded transition between stages. */ export interface TransitionRecord { from: StageId; to: StageId; verdict: GateVerdict; timestamp: string; } /** Mutable context tracking pipeline stage progression. */ export declare class StageContext { private currentStage; private readonly history; private readonly artifacts; constructor(initialStage: StageId); getCurrentStage(): StageId; getHistory(): readonly TransitionRecord[]; /** Record a transition and update current stage. */ recordTransition(from: StageId, to: StageId, verdict: GateVerdict): void; /** Register artifacts produced during a stage. */ addArtifacts(stage: StageId, refs: ArtifactRef[]): void; /** Get artifacts for a specific stage. */ getArtifacts(stage: StageId): readonly ArtifactRef[]; } //# sourceMappingURL=stage-context.d.ts.map