/** * Shared retry/instruct conversation plans. * * A front-end supplies the transport (readline, Ink, or Web session) and may * add its own selectors. Prompt construction and the execution contract are * kept here so those front-ends cannot drift apart. */ import type { ConversationPlan } from './conversationPlan.js'; import { type RunSessionContext } from './runSessionReader.js'; import type { RetryContext, RetryFailureInfo, RetryRunInfo } from './retryMode.js'; import type { InstructModeOptions } from '../tasks/list/instructMode.js'; /** Construct the retry plan used by CLI adapters and Web ConversationSession. */ export declare function createRetryConversationPlan(cwd: string, context: RetryContext, options?: { readonly reviseOrder?: boolean; }): ConversationPlan; /** Construct the instruct plan used by CLI adapters and Web ConversationSession. */ export declare function createInstructConversationPlan(cwd: string, options: InstructModeOptions): ConversationPlan; /** Build the richer run data used by an instruct plan without changing its type. */ export declare function makeRunContextForInstruct(context: RunSessionContext | undefined): RunSessionContext | undefined; export type { RetryFailureInfo, RetryRunInfo }; //# sourceMappingURL=taskActionConversationPlan.d.ts.map