/** * Builds a bounded repair prompt for one generated file, treating the * normalized compiler diagnostics as untrusted evidence. */ import type { PromptMessages } from "./direct-conversion.ts"; export interface DirectRepairDiagnostic { /** Project-relative path, or undefined for a project-wide diagnostic. */ path?: string; line?: number; code: number; message: string; } export interface DirectRepairRelatedFile { path: string; content: string; } export interface DirectRepairPromptInput { languageLabel: string; /** Project-relative path of the candidate being repaired. */ targetPath: string; /** True when the unit replaces one inline @human marker. */ inline: boolean; /** The original human instruction the code must keep satisfying. */ instruction: string; /** The current generated candidate (whole file, or inline replacement snippet). */ currentCode: string; /** Normalized compiler diagnostics introduced by the combined candidate project. */ diagnostics: readonly DirectRepairDiagnostic[]; /** Trusted, deterministic host guidance derived from recognized diagnostics. */ hints?: readonly string[]; /** Other generated candidate files in the same dependency group. */ relatedFiles: readonly DirectRepairRelatedFile[]; /** Same bounded current/projected repository evidence used for generation. */ projectMemory?: string; } /** Model-facing instructions for one bounded cross-file repair request. */ export declare function buildDirectRepairPrompt(input: DirectRepairPromptInput): PromptMessages; //# sourceMappingURL=direct-repair.d.ts.map