/** * The CRISPY framework: seven ordered context-engineering stages. Control flow is * deterministic and lives in code (not prompts) — `plan()` walks this list, gates * each stage on the prior artifact, and writes one markdown file per stage under * `${contextDir}/crispy/`. The ordinal prefix (`1-context.md`, …) keeps the * directory self-sorting and makes the gate dependency obvious on disk. */ export interface Stage { /** Stage key, also the `--stage` flag value. */ readonly name: string; /** One-line purpose, embedded at the top of the artifact and in the index. */ readonly purpose: string; /** Artifact filename written under `${contextDir}/crispy/` (ordinal-prefixed). */ readonly artifact: string; } /** * Ordered CRISPY stages. The order IS the stage-gate: advancing to `STAGES[i]` * requires `STAGES[i-1].artifact` to already exist on disk. */ export declare const STAGES: readonly Stage[]; /** Look up a stage by name (the `--stage` value), or `undefined` if unknown. */ export declare function findStage(name: string): Stage | undefined; /** Zero-based index of a stage in {@link STAGES}, or `-1` if not found. */ export declare function stageIndex(name: string): number; /** The stage that must be completed before `name`, or `undefined` for the first stage. */ export declare function priorStage(name: string): Stage | undefined;