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 • 2.71 kB
/** * Context Analyzer - Intelligent context detection for AI models * * Analyzes user input, conversation history, and environment to provide * intelligent context that helps AI models make better tool selection decisions. */ export interface AnalyzedContext { userIntent: { primary: string; secondary: string[]; confidence: number; }; technicalContext: { urls: string[]; technologies: string[]; frameworks: string[]; platforms: string[]; }; actionContext: { requestedActions: string[]; impliedActions: string[]; urgencyLevel: 'low' | 'medium' | 'high'; }; domainContext: { domain: string; expertise: 'beginner' | 'intermediate' | 'expert'; commonPatterns: string[]; }; conversationContext: { isFollowUp: boolean; previousTools: string[]; sessionContinuity: boolean; }; environmentHints: { likelyPlatform: string; suggestedStartingPoint: string; potentialChallenges: string[]; }; } export declare class ContextAnalyzer { private intentPatterns; private technologyPatterns; private actionPatterns; private conversationHistory; constructor(); private initializePatterns; /** * Analyze user input and context to provide intelligent insights */ analyzeContext(userInput: string, additionalContext?: { sessionId?: string; previousActions?: string[]; timeContext?: 'morning' | 'afternoon' | 'evening' | 'night'; }): AnalyzedContext; private analyzeUserIntent; private analyzeTechnicalContext; private analyzeActionContext; private analyzeDomainContext; private analyzeConversationContext; private generateEnvironmentHints; private extractUrls; private detectTechnologies; private detectFrameworks; private detectPlatforms; private extractExplicitActions; private inferImpliedActions; private assessUrgencyLevel; private identifyDomain; private assessExpertiseLevel; private identifyCommonPatterns; private isFollowUpRequest; private getPreviousTools; private hasSessionContinuity; /** * Update conversation history with tool execution results */ updateToolHistory(tools: string[]): void; /** * Get contextual recommendations for tool sequencing */ getSequenceRecommendations(analyzedContext: AnalyzedContext): { recommended: string[]; reasoning: string; alternatives: Array<{ sequence: string[]; use_case: string; }>; }; } //# sourceMappingURL=context-analyzer.d.ts.map