/** * ollama_draft — DRAFT code/prose stubs. Tier: Workhorse. * * Always marked DRAFT — Claude reviews before writing to disk. * - target_path + protected-path rules: refuses without confirm_write: true * - language known: compile check runs and {compiles, checker, stderr_tail} rides the envelope */ import { z } from "zod"; import type { Envelope } from "../envelope.js"; import { type CompileCheckResult } from "../guardrails/compileCheck.js"; import type { RunContext } from "../runContext.js"; export declare const draftSchema: z.ZodObject<{ prompt: z.ZodString; language: z.ZodOptional>; style: z.ZodOptional>; target_path: z.ZodOptional; confirm_write: z.ZodOptional; }, z.core.$strip>; export type DraftInput = z.infer; export interface DraftResult { draft: string; is_draft: true; compile_check?: CompileCheckResult; /** Number of regeneration rounds triggered by the banned-phrase guard (style="doc" only). 0 means the first attempt passed. */ regenerations_triggered?: number; /** Phrases detected in rejected attempts, deduped in order of first appearance. */ detected_phrases?: string[]; } export declare function handleDraft(input: DraftInput, ctx: RunContext): Promise>; //# sourceMappingURL=draft.d.ts.map