/** * The "fix with AI" prompt builder: turns one compile issue plus the source * window around its line into one self-contained user message for the current * session's agent. Pure string assembly — the send itself lives in the * plugin apply (sessions binding), the button in the paper view. * @module dsh-client-ui-mimir/client/compile-fix */ import type { LatexIssue } from 'dsh-mimir'; /** Draft lines quoted above and below the issue's line. */ export declare const FIX_CONTEXT_RADIUS = 3; /** Everything the prompt needs that the issue row alone does not carry. */ export interface CompileFixRequest { /** The compile issue being handed to the agent. */ readonly issue: LatexIssue; /** The current `main.tex` draft (unsaved edits included), when loaded. */ readonly source: string | null; /** The project's paper directory relative to the workspace root, when overridden. */ readonly dir: string | undefined; } /** * Assemble the user message sent to the current session's agent for one * "fix with AI" click. English regardless of the UI locale: the reader is * the agent, not the user. The message names the issue verbatim, quotes the * draft window around its line when the draft is the issue's file, and asks * for the edit plus a `latex_compile` re-run loop. * @param request - the issue, the current draft, and the paper directory. * @returns the prompt text, ready to send verbatim. */ export declare function buildCompileFixPrompt(request: CompileFixRequest): string; //# sourceMappingURL=compile-fix.d.ts.map