/** * conflict-replay — pure envelope builder for the auto re-dispatch path. * * session's merge-back attempt conflicts (see planMergeBack), the * merge-back-runner (Task 9) calls `buildConflictReplay` to compose * the envelope the parent passes back into the sub-agent dispatch * site. The envelope has three sections: * * 1. callerBranch: * 2. Original prompt (verbatim) * 3. Prior merge transcript (one line per attempt) * 4. Conflict diff (wrapped in a fenced ```diff block) * * Plus a stable instruction list the re-dispatched agent receives in * addition to its task system prompt. The instruction set forbids * new functionality and tells the agent to re-run the dispatch and * report the new conflict state — the parent will retry the merge. * * The builder is pure: no fs, no network, no child_process. */ export type ConflictReplayInput = { readonly originalPrompt: string; readonly mergeAttemptTranscript: ReadonlyArray; readonly conflictDiff: string; readonly callerBranch: string; }; export type ConflictReplayOutput = { readonly prompt: string; readonly instructions: ReadonlyArray; }; export declare function buildConflictReplay(input: ConflictReplayInput): ConflictReplayOutput;