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 • 2.33 kB
TypeScript
/**
* Visual Validation Engine
* Handles test framework integration and UI stability analysis
* Supporting utility for Code Quality Integration
*/
export interface TestIntegrationConfig {
testFramework: 'jest' | 'cypress' | 'playwright' | 'vitest';
testPattern: string;
screenshotOnFailure: boolean;
sessionId: string;
}
export interface UIStabilityAnalysis {
stabilityScore: number;
screenshotsAnalyzed: number;
visualChanges: number;
criticalIssues: number;
minorIssues: number;
performanceMetrics?: {
avgLoadTime: number;
trend: 'improving' | 'stable' | 'degrading';
avgMemoryUsage: number;
};
recommendations: string[];
}
export declare class VisualValidationEngine {
private activeIntegrations;
private screenshots;
/**
* Setup integration with test frameworks
*/
setupTestIntegration(config: TestIntegrationConfig): Promise<{
integrationId: string;
}>;
/**
* Analyze UI stability over time
*/
analyzeUIStability(options: {
timeRange: string;
includePerformance?: boolean;
}): Promise<UIStabilityAnalysis>;
/**
* Setup Jest integration
*/
private setupJestIntegration;
/**
* Setup Cypress integration
*/
private setupCypressIntegration;
/**
* Setup Playwright integration
*/
private setupPlaywrightIntegration;
/**
* Setup Vitest integration
*/
private setupVitestIntegration;
/**
* Perform stability analysis on screenshots
*/
private performStabilityAnalysis;
/**
* Analyze performance metrics from screenshots
*/
private analyzePerformanceMetrics;
/**
* Generate stability recommendations
*/
private generateStabilityRecommendations;
/**
* Parse time range string to milliseconds
*/
private parseTimeRange;
/**
* Add screenshot record (called by test integrations)
*/
addScreenshot(screenshot: {
path: string;
testName?: string;
passed: boolean;
}): void;
/**
* Get integration status
*/
getIntegrationStatus(integrationId: string): any;
/**
* Cleanup integrations
*/
cleanup(): void;
}
//# sourceMappingURL=visual-validation-engine.d.ts.map