/** * Instruct mode for branch-based tasks. * * Provides conversation loop for additional instructions on existing branches, * similar to interactive mode but with branch context and limited actions. */ import { type WorkflowContext } from '../../interactive/interactive.js'; import type { RunSessionContext } from '../../interactive/runSessionReader.js'; import type { InstructModeResult } from '../../interactive/instructModeTypes.js'; import type { PullRequestContext } from '../../../core/workflow/pr-context.js'; export type { InstructModeAction, InstructModeResult, InstructUIText } from '../../interactive/instructModeTypes.js'; export interface InstructModeOptions { readonly cwd: string; readonly branchContext: string; readonly branchName: string; readonly taskName: string; readonly taskContent: string; readonly retryNote: string; readonly workflowContext?: WorkflowContext; readonly runSessionContext?: RunSessionContext; readonly previousOrderContent?: string | null; readonly prContext?: PullRequestContext; readonly failedContext?: FailedInstructContext; } export interface FailedInstructContext { readonly reportSummary: string; readonly worktreeSummary: string; } export declare function runInstructMode(options: InstructModeOptions): Promise; //# sourceMappingURL=instructMode.d.ts.map