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
84 lines • 2.58 kB
TypeScript
/**
* Enhanced Framework Detector
*
* Fixes critical framework misdetection issues, especially Phoenix LiveView
* projects being incorrectly identified as Flutter. Provides accurate detection
* through multiple detection methods and confidence scoring.
*/
export interface FrameworkDetectionResult {
framework: string;
confidence: number;
detectionMethod: 'file-system' | 'http-headers' | 'port-heuristic' | 'dom-analysis' | 'hybrid';
evidence: {
filesFound: string[];
httpHeaders: Record<string, string>;
portAnalysis: {
port: number;
commonFrameworks: string[];
};
domIndicators: string[];
};
alternativeCandidates: Array<{
framework: string;
confidence: number;
reason: string;
}>;
}
export interface FrameworkProfile {
name: string;
priority: number;
detectionFiles: string[];
requiredFiles?: string[];
excludeFiles?: string[];
httpHeaders?: Record<string, string | RegExp>;
domSelectors?: string[];
portHints?: number[];
packageJsonDeps?: string[];
}
export declare class EnhancedFrameworkDetector {
private logger;
private frameworkProfiles;
constructor();
/**
* Initialize comprehensive framework profiles with proper Phoenix LiveView support
*/
private initializeFrameworkProfiles;
/**
* Enhanced framework detection with multiple methods and confidence scoring
*/
detectFramework(url: string, page?: any, // Playwright page for DOM analysis
workingDirectory?: string): Promise<FrameworkDetectionResult>;
/**
* File system-based framework detection
*/
private detectByFileSystem;
/**
* HTTP headers-based framework detection
*/
private detectByHttpHeaders;
/**
* Port-based heuristic detection
*/
private detectByPortHeuristics;
/**
* DOM-based framework detection
*/
private detectByDomAnalysis;
/**
* Combine detection results with weighted scoring
*/
private combineDetectionResults;
/**
* Apply Phoenix LiveView correction for port 4000 projects
*/
private applyPhoenixLiveViewCorrection;
/**
* Quick framework detection for performance-critical scenarios
*/
quickDetect(url: string, workingDirectory?: string): Promise<string>;
/**
* Get framework-specific debugging recommendations
*/
getFrameworkSpecificRecommendations(framework: string): string[];
}
//# sourceMappingURL=enhanced-framework-detector.d.ts.map