/** * Planner role (ยง4.1). * * Spawns a read-only sub-agent with "write plan artifact" tools. * Parses the output using the loose stage-spec parser (C2). * Handles cascading: 1st fail โ†’ feedback, 2nd โ†’ shorten, 3rd โ†’ plan_rejected. */ import type { Stage } from '../coordinator/state.js'; export interface PlannerOutput { summary: string; stages: Stage[]; missingFields: string[]; } /** * Parse planner output (markdown with embedded YAML stage specs) into a Plan. * * This is the loose-parsing path (C2): field names are normalized, * missing fields produce structured feedback, not hard errors. */ export declare function parsePlannerOutput(rawOutput: string, profileDefault?: 'auto' | 'deep'): PlannerOutput; /** * Build feedback for planner when stage spec has issues. * Used in cascading: 1st attempt asks planner to fix missing fields. */ export declare function buildPlannerFeedback(missingFields: string[]): string; //# sourceMappingURL=planner.d.ts.map