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

48 lines • 1.3 kB
export interface TruncationOptions { maxTokens?: number; maxCharacters?: number; preserveLatest?: boolean; prioritizeErrors?: boolean; } export declare class LogTruncator { private static readonly CHARS_PER_TOKEN; private static readonly DEFAULT_MAX_TOKENS; /** * Truncate logs intelligently to fit within token limits */ static truncateLogs(logs: Array<{ type: string; text: string; timestamp: Date; }>, options?: TruncationOptions): Array<{ type: string; text: string; timestamp: Date; }>; /** * Simple truncation that preserves either latest or earliest logs */ private static truncateLogsSimple; /** * Truncate a single message intelligently */ static truncateMessage(message: string, maxCharacters: number): string; /** * Estimate token count for a string */ static estimateTokens(text: string): number; /** * Group similar logs to reduce redundancy */ static groupSimilarLogs(logs: Array<{ type: string; text: string; timestamp: Date; }>): Array<{ type: string; text: string; timestamp: Date; count?: number; }>; } //# sourceMappingURL=log-truncator.d.ts.map