/** * `aidlc revert --task T | --phase implementation` — undo a * task's commits by task id instead of by hunting for hashes. * * The roadmap item's one hard rule is "show the plan and ask first", so the * command is a funnel of refusals, then a printed plan, then a question. Every * refusal happens before git is asked to write anything, and the only write * path is `revert/apply.ts`, which leaves the branch as it found it on any * failure. * * Requirements: revert-by-task/AC-4, AC-5, AC-7, AC-8, AC-9, AC-10, AC-12, * AC-13, AC-14, AC-17, AC-18, AC-19, AC-20, AC-21, AC-22 */ import type { Command } from 'commander'; import { type Prompter } from '../core/prompt.js'; export interface RevertOpts { task?: string; phase?: string; dryRun?: boolean; yes?: boolean; override?: boolean; } export interface RevertDeps { prompter?: Prompter; projectRoot?: string; out?: (line: string) => void; err?: (line: string) => void; } /** * Run the command. Returns the exit code rather than setting it, so tests read * it directly; the commander action copies it to `process.exitCode`. */ export declare function runRevert(instance: string, opts: RevertOpts, deps?: RevertDeps): Promise; export declare function registerRevert(program: Command): void; //# sourceMappingURL=revert.d.ts.map