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
58 lines • 1.61 kB
TypeScript
import { Page } from 'playwright';
export interface WidgetTreeAnalysis {
totalWidgets: number;
depth: number;
inefficientRebuilds: Array<{
widget: string;
reason: string;
frequency: number;
suggestion: string;
}>;
buildMethods: Array<{
widget: string;
complexity: 'low' | 'medium' | 'high';
buildTime: number;
suggestions: string[];
}>;
stateManagement: {
pattern: 'setState' | 'Provider' | 'Riverpod' | 'BLoC' | 'GetX' | 'unknown';
inefficiencies: number;
recommendations: string[];
};
}
export interface FlutterStateSnapshot {
widgets: Array<{
type: string;
name: string;
state: any;
props: any;
children?: number;
}>;
routes: Array<{
name: string;
active: boolean;
arguments: any;
}>;
globalState: {
theme: any;
locale: string;
[key: string]: any;
};
}
/**
* Flutter Widget Analysis Module
*
* Handles widget tree analysis, widget rebuild tracking, and state snapshot capture.
* This module provides detailed insights into widget performance and state management.
*/
export declare class FlutterWidgetAnalysis {
private page?;
private widgetRebuilds;
attachToPage(page: Page): Promise<void>;
analyzeWidgetTree(): Promise<WidgetTreeAnalysis>;
captureStateSnapshot(): Promise<FlutterStateSnapshot>;
private setupWidgetTracking;
private getDefaultAnalysis;
private getDefaultSnapshot;
}
//# sourceMappingURL=flutter-widget-analysis.d.ts.map