/** * Shared post-execution logic: auto-commit, push, and PR creation. * * Used by taskExecution (takt run / watch path) and * instructBranch (takt list). */ import type { ExistingPr, Issue, GitProvider } from '../../../infra/git/index.js'; import type { ExecuteTaskOptions } from './types.js'; export interface PostExecutionOptions { execCwd: string; projectCwd: string; task: string; branch?: string; baseBranch?: string; shouldCreatePr: boolean; managedPr?: boolean; shouldPublishBranchToOrigin?: boolean; draftPr: boolean; workflowIdentifier?: string; issues?: Issue[]; orderContent?: string; repo?: string; outputMode?: ExecuteTaskOptions['outputMode']; gitProvider?: GitProvider; } export interface PostExecutionResult { prUrl?: string; prFailed?: boolean; prError?: string; taskFailed?: boolean; taskError?: string; } export interface CommentLoopAnalysisReportOptions { projectCwd: string; branch: string; reportPath: string; sourceRunSlug: string; gitProvider?: GitProvider; } export declare function commentLoopAnalysisReportOnPr(options: CommentLoopAnalysisReportOptions): Promise; /** * Auto-commit, push, and optionally create a PR after successful task execution. */ export declare function postExecutionFlow(options: PostExecutionOptions): Promise; //# sourceMappingURL=postExecution.d.ts.map