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

90 lines • 3.4 kB
import { FlutterCoreModule } from './modules/flutter-core.js'; import { FlutterPerformanceModule } from './modules/flutter-performance.js'; import { FlutterUIWidgetsModule } from './modules/flutter-ui-widgets.js'; import { FlutterAdvancedModule } from './modules/flutter-advanced.js'; // Flutter Debug Engine Enhanced - Modular Coordinator // Orchestrates 4 specialized modules with complete backward compatibility // Target: ~190 lines total (85%+ reduction from 1,247 lines) export class FlutterDebugEngineModular { coreModule; performanceModule; uiWidgetsModule; advancedModule; page; constructor() { this.coreModule = new FlutterCoreModule(); this.performanceModule = new FlutterPerformanceModule(); this.uiWidgetsModule = new FlutterUIWidgetsModule(); this.advancedModule = new FlutterAdvancedModule(); } async attachToPage(page) { this.page = page; // Attach all modules to the page await Promise.all([ this.coreModule.attachToPage(page), this.performanceModule.attachToPage(page), this.uiWidgetsModule.attachToPage(page), this.advancedModule.attachToPage(page) ]); } // Core Module Methods (Backward Compatibility) async detectFlutter(page) { return await this.coreModule.detectFlutter(page); } async getFlutterConfig() { return await this.coreModule.getFlutterConfig(); } async getFlutterDiagnostics() { return await this.coreModule.getFlutterDiagnostics(); } // Performance Module Methods (Backward Compatibility) async getPerformanceMetrics() { return await this.performanceModule.getPerformanceMetrics(); } async detectMemoryLeaks() { return await this.performanceModule.detectMemoryLeaks(); } async getPerformanceBaseline() { return await this.performanceModule.getPerformanceBaseline(); } // UI/Widgets Module Methods (Backward Compatibility) async analyzeWidgetTree() { return await this.uiWidgetsModule.analyzeWidgetTree(); } async captureStateSnapshot() { return await this.uiWidgetsModule.captureStateSnapshot(); } async analyzeAssetLoading() { return await this.uiWidgetsModule.analyzeAssetLoading(); } // Advanced Module Methods (Backward Compatibility) async detectFlutterWebIssues() { return await this.advancedModule.detectFlutterWebIssues(); } async getBrowserCompatibility() { return await this.advancedModule.getBrowserCompatibility(); } async getFlutterHealthCheck() { return await this.advancedModule.getFlutterHealthCheck(); } // Utility method for comprehensive Flutter analysis async getFullFlutterAnalysis() { const [config, diagnostics, performance, widgetAnalysis, healthCheck, issues] = await Promise.all([ this.getFlutterConfig(), this.getFlutterDiagnostics(), this.getPerformanceMetrics(), this.analyzeWidgetTree(), this.getFlutterHealthCheck(), this.detectFlutterWebIssues() ]); return { config, diagnostics, performance, widgetAnalysis, healthCheck, issues }; } } //# sourceMappingURL=flutter-debug-engine-modular.js.map