UNPKG

vibe-coder-mcp

Version:

Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.

56 lines 2.08 kB
export interface TokenEstimationResult { estimatedTokens: number; confidence: 'high' | 'medium' | 'low'; method: 'character_ratio' | 'word_count' | 'hybrid'; breakdown?: { contentTokens: number; pathTokens?: number; metadataTokens?: number; formattingTokens?: number; }; } export interface TokenBudgetValidation { isValid: boolean; utilizationPercentage: number; remainingTokens: number; recommendedAction: 'proceed' | 'optimize' | 'reduce_scope'; warningLevel: 'none' | 'low' | 'medium' | 'high' | 'critical'; } export interface FileTokenEstimate { filePath: string; contentTokens: number; pathTokens: number; totalTokens: number; confidence: 'high' | 'medium' | 'low'; estimationMethod: string; } export declare class TokenEstimator { private static readonly CHARS_PER_TOKEN; private static readonly WORDS_PER_TOKEN; private static readonly OVERHEAD_RATIOS; static estimateTokens(text: string): number; static estimateTokensByWords(text: string): number; static estimateTokensAdvanced(text: string, contentType?: keyof typeof TokenEstimator.OVERHEAD_RATIOS): TokenEstimationResult; static estimateFileTokens(filePath: string, content: string, contentType?: keyof typeof TokenEstimator.OVERHEAD_RATIOS): FileTokenEstimate; static validateTokenBudget(estimatedTokens: number, maxBudget: number): TokenBudgetValidation; static estimateMultipleFiles(files: Array<{ path: string; content: string; }>): { totalTokens: number; fileEstimates: FileTokenEstimate[]; budgetRecommendation: string; }; private static determineConfidence; private static detectContentType; static getEstimationStats(text: string): { characterCount: number; wordCount: number; lineCount: number; charBasedTokens: number; wordBasedTokens: number; averageWordsPerLine: number; averageCharsPerWord: number; }; } //# sourceMappingURL=token-estimator.d.ts.map