/** * ollama_refactor_plan — Workhorse tier. * * Complements ollama_multi_file_refactor_propose by answering HOW to sequence * the change safely. Produces a phased plan: which files land first, what * tests to write per phase, what's parallelizable, and a rollback strategy. * * Tier: workhorse. Shares loadSources + structured-JSON pattern with * multi_file_refactor_propose. Goes through runWithTimeoutAndFallback. */ import { z } from "zod"; import type { Envelope } from "../envelope.js"; import type { RunContext } from "../runContext.js"; export declare const refactorPlanSchema: z.ZodObject<{ files: z.ZodType>; change_description: z.ZodString; per_file_max_chars: z.ZodOptional; priority: z.ZodOptional>; }, z.core.$strip>; export type RefactorPlanInput = z.infer; export interface RefactorPhase { phase: number; files_involved: string[]; reason: string; tests_to_write: string[]; parallelizable: boolean; } export interface RefactorPlanResult { phases: RefactorPhase[]; sequencing_notes: string; rollback_strategy: string; estimated_phases: number; weak: boolean; } export declare function handleRefactorPlan(input: RefactorPlanInput, ctx: RunContext): Promise>; //# sourceMappingURL=refactorPlan.d.ts.map