/** * EnterPlanMode / ExitPlanMode — Vigil-parity planning workflow. * * The agent enters plan mode to write down a multi-step implementation * plan that the user reviews and approves before any tool that mutates * state runs. ExitPlanMode is called when the plan is approved. * * Plans are persisted to /.vigil/plans/.json so the * portal can render them and the user can revisit them later. */ import type { ToolDefinition } from '../core/toolRuntime.js'; export type PlanStepStatus = 'pending' | 'in_progress' | 'completed' | 'skipped'; export interface PlanStep { id: string; title: string; detail?: string; status: PlanStepStatus; } export interface PlanRecord { id: string; title: string; goal?: string; steps: PlanStep[]; status: 'draft' | 'approved' | 'completed' | 'abandoned'; createdAt: string; updatedAt: string; } export declare function getActivePlan(): PlanRecord | null; export declare function clearActivePlan(): void; export declare function listStoredPlans(workingDir: string): PlanRecord[]; export declare function createPlanModeTools(workingDir: string): ToolDefinition[]; //# sourceMappingURL=planModeTools.d.ts.map