UNPKG

ai-debug-local-mcp

Version:

🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh

57 lines • 1.85 kB
/** * Base Workflow Engine * Revolutionary AI-powered workflow orchestration system * Transforms manual tool selection into intelligent workflow automation */ export interface WorkflowStep { tool: string; args: Record<string, any>; condition?: (previousResults: WorkflowResult[]) => boolean; optional?: boolean; } export interface WorkflowResult { tool: string; result: any; success: boolean; duration: number; metadata?: Record<string, any>; } export interface WorkflowContext { sessionId?: string; intelligenceLevel: 'basic' | 'comprehensive' | 'expert'; userIntent: string; frameworks: string[]; autoCapture: boolean; } export interface WorkflowTemplate { name: string; description: string; steps: WorkflowStep[]; adaptiveLogic: (results: WorkflowResult[]) => WorkflowStep[]; generateSummary: (results: WorkflowResult[], context: WorkflowContext) => string; } /** * Base Workflow Engine * Orchestrates intelligent tool sequences with adaptive execution */ export declare abstract class WorkflowEngine { protected abstract getTemplate(): WorkflowTemplate; execute(context: WorkflowContext, sessions: Map<string, any>, toolHandlers: Map<string, any>): Promise<{ results: WorkflowResult[]; summary: string; nextSteps: string[]; }>; private findHandler; private generateNextSteps; /** * Format workflow results into rich, narrative output */ protected formatResults(workflowName: string, results: WorkflowResult[], context: WorkflowContext): string[]; /** * Extract key insights from workflow results */ protected extractInsights(results: WorkflowResult[]): string[]; private detectErrorPatterns; private detectPerformancePatterns; } //# sourceMappingURL=workflow-engine.d.ts.map