/** * The retry and instruct conversations, on the Ink TUI. * * These modes talk about one task and hand a single decision back to their * caller — there is no workflow to pick, no mode to choose, and nothing to * dispatch. What they do bring is their own action selector and their own * `/retry` / `/replay` wiring, which the strategy carries and the conversation * reads. */ import type { ConversationPlan } from '../interactive/conversationPlan.js'; import type { WorkflowContext } from '../interactive/interactive-summary.js'; import type { InteractiveModeResult } from '../interactive/interactive.js'; import { type TuiHandoffOutcome } from './conversationRunner.js'; import { type TuiHandoffId } from './tuiConversation.js'; export interface RunTuiTaskConversationOptions { readonly cwd: string; /** Session context plus the mode's strategy, exactly as the readline modes build it. */ readonly plan: ConversationPlan; /** Left out when the mode has no workflow to describe to the summary prompt. */ readonly workflowContext?: WorkflowContext; readonly liveStatusReader?: () => string; readonly liveStatusRefreshIntervalMs?: number; readonly onHandoff?: (id: TuiHandoffId, text: string) => Promise; readonly dispatch?: (result: InteractiveModeResult) => Promise; } /** Runs one task conversation and returns what the user decided. */ export declare function runTuiTaskConversation(options: RunTuiTaskConversationOptions): Promise; //# sourceMappingURL=runTuiTask.d.ts.map