import { type EngineTemplates } from "./templates.js"; import { type PlanContext } from "./plan-paths.js"; export declare const PROTOCOL_FILES: { readonly PLAN: "PLAN.md"; readonly RLM_INSTR: "RLM_INSTRUCTIONS.md"; readonly NEXT_RALPH: "AGENT_CONTEXT_FOR_NEXT_RALPH.md"; readonly RLM_CTX: "CONTEXT_FOR_RLM.md"; readonly PREV: "PREVIOUS_STATE.md"; readonly CURR: "CURRENT_STATE.md"; readonly NOTES: "NOTES_AND_LEARNINGS.md"; readonly TODOS: "TODOS.md"; readonly SUPERVISOR_LOG: "SUPERVISOR_LOG.md"; readonly CONVERSATION: "CONVERSATION.md"; }; export type ProtocolFileName = (typeof PROTOCOL_FILES)[keyof typeof PROTOCOL_FILES]; /** Load the active plan context for a worktree (config + named-plan layout). */ export declare function loadPlanContext(worktree: string, planName?: string): Promise; export type BootstrapOptions = { /** User goal woven into PLAN.md. Falls back to a placeholder when absent. */ goal?: string; /** Acceptance criteria woven into the Definition of Done section. */ definitionOfDone?: string; }; export declare function bootstrapProtocolFiles(ctx: PlanContext, templates: EngineTemplates, options?: BootstrapOptions): Promise; /** * True when PLAN.md exists and has been given a real goal — i.e. it is not the * untouched bootstrap placeholder. Both planning paths (the interview skill and * the supervisor planning phase) produce an authored plan; this lets start_loop * skip re-bootstrapping and launch directly. */ export declare function isPlanAuthored(ctx: PlanContext): Promise; /** * Write a fully authored PLAN.md (replacing any bootstrap placeholder). Used by * the supervisor `write_plan` tool after the interview reaches an approved plan. */ export declare function writePlanFile(ctx: PlanContext, content: string): Promise; /** * Apply a unified-diff patch that targets a single protocol file. In named-plan * mode the patch's path headers (authored against a bare `PLAN.md`) are rewritten * to the plan's real location before `git apply` runs in the worktree. */ export declare function applyProtocolPatch(ctx: PlanContext, file: string, patchText: string): Promise; export declare function applyPatch(worktree: string, patchText: string): Promise; //# sourceMappingURL=protocol-files.d.ts.map