/** * Auto-executor for validation gaps, recommendations, and follow-ups * * This module parses assistant responses and automatically executes: * - Validation gaps (e.g., npm install if tests fail) * - Recommendations (e.g., remove unnecessary files) * - Follow-up tasks (e.g., git status) */ export interface ValidationGap { type: 'validation_gap'; description: string; command: string; autoExecutable: boolean; } export interface Recommendation { type: 'recommendation'; description: string; action: 'remove_file' | 'remove_dir' | 'run_command'; target?: string; command?: string; requiresConfirmation: boolean; } export interface FollowUp { type: 'follow_up'; description: string; command: string; autoExecutable: boolean; } export type AutoExecutableAction = ValidationGap | Recommendation | FollowUp; export interface ParsedActions { validationGaps: ValidationGap[]; recommendations: Recommendation[]; followUps: FollowUp[]; } export interface ExecutionResult { success: boolean; output: string; error?: string; } /** * Parse assistant response for structured actions */ export declare function parseAssistantResponse(response: string): ParsedActions; /** * Execute a validation gap */ export declare function executeValidationGap(gap: ValidationGap, workingDir: string): Promise; /** * Execute a recommendation */ export declare function executeRecommendation(recommendation: Recommendation, workingDir: string): Promise; /** * Execute a follow-up task */ export declare function executeFollowUp(followUp: FollowUp, workingDir: string): Promise; /** * Execute all auto-executable actions */ export declare function executeAutoActions(actions: ParsedActions, workingDir: string, options?: { skipConfirmation?: boolean; }): Promise<{ executed: number; failed: number; results: Array<{ type: string; description: string; result: ExecutionResult; }>; }>; //# sourceMappingURL=autoExecutor.d.ts.map