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

70 lines • 2.39 kB
/** * Intelligent Workflow Sequencer * Provides framework-specific debugging workflows and intelligent tool sequencing * Based on real-world feedback for React, Next.js, and API debugging scenarios */ export interface WorkflowStep { tool: string; description: string; args?: Record<string, any>; conditionalNext?: { condition: string; nextStep: string; }[]; optional?: boolean; } export interface DebuggingWorkflow { name: string; description: string; framework: string; scenario: string; estimatedDuration: string; steps: WorkflowStep[]; successCriteria: string[]; commonIssues: string[]; } export interface WorkflowContext { framework?: 'react' | 'nextjs' | 'vue' | 'angular' | 'fastapi' | 'unknown'; scenario: 'initial_debug' | 'api_integration' | 'performance_analysis' | 'user_flow_test' | 'error_investigation'; url: string; port?: number; hasApi?: boolean; apiPort?: number; userGoal?: string; } export declare class IntelligentWorkflowSequencer { private static instance; private workflows; static getInstance(): IntelligentWorkflowSequencer; constructor(); /** * Get recommended workflow based on context and detected framework */ getRecommendedWorkflow(context: WorkflowContext): DebuggingWorkflow | null; /** * Generate intelligent workflow suggestions based on framework detection */ generateWorkflowSuggestion(context: WorkflowContext): string; /** * Initialize pre-defined workflows based on real-world usage patterns */ private initializeWorkflows; /** * Get generic workflow when specific framework workflow isn't available */ private getGenericWorkflow; /** * Detect framework from URL patterns and page content */ detectFramework(url: string, pageContent?: string): WorkflowContext['framework']; /** * Execute workflow step by step with intelligent error handling */ executeWorkflow(workflow: DebuggingWorkflow, executeToolFn: (tool: string, args?: any) => Promise<any>): Promise<any[]>; /** * Generate workflow summary and recommendations */ generateWorkflowSummary(workflow: DebuggingWorkflow, results: any[]): string; } export default IntelligentWorkflowSequencer; //# sourceMappingURL=intelligent-workflow-sequencer.d.ts.map