UNPKG

ultimate-mcp-server

Version:

The definitive all-in-one Model Context Protocol server for AI-assisted coding across 30+ platforms

89 lines 2.39 kB
/** * Large Context Analyzer (Inspired by Consult7) * * Analyzes massive codebases and file collections using * large context window models like Google Gemini 2.5 Flash/Pro */ import { LargeContextOptions, LargeContextAnalysisRequest, LargeContextAnalysisResult } from './types.js'; export declare class LargeContextAnalyzer { private fileCollector; private readonly cache; constructor(); /** * Analyze large file collections with AI */ analyze(request: LargeContextAnalysisRequest): Promise<LargeContextAnalysisResult>; /** * Collect and analyze files in one operation */ collectAndAnalyze(options: LargeContextOptions, query: string, analysisOptions?: Partial<LargeContextAnalysisRequest>): Promise<LargeContextAnalysisResult>; /** * Single-shot analysis - send all content in one request */ private singleShotAnalysis; /** * Chunked analysis - split into chunks and analyze separately */ private chunkedAnalysis; /** * Hierarchical analysis - analyze in levels */ private hierarchicalAnalysis; /** * Map-reduce analysis - map over files, reduce results */ private mapReduceAnalysis; /** * Select best model for the task */ private selectModel; /** * Select analysis strategy based on collection size */ private selectStrategy; /** * Build analysis prompt */ private buildPrompt; /** * Parse model response */ private parseResponse; /** * Create chunks from file collection */ private createChunks; /** * Analyze a single chunk */ private analyzeChunk; /** * Combine results from multiple chunks */ private combineChunkResults; /** * Generate file summaries for hierarchical analysis */ private generateFileSummaries; /** * Analyze directories for hierarchical analysis */ private analyzeDirectories; /** * Final synthesis for hierarchical analysis */ private synthesizeHierarchical; /** * Map function for map-reduce analysis */ private mapFile; /** * Reduce function for map-reduce analysis */ private reduceResults; /** * Estimate analysis cost */ private estimateCost; } //# sourceMappingURL=large-context-analyzer.d.ts.map