UNPKG

create-ai-chat-context-experimental

Version:

Phase 2: TypeScript rewrite - AI Chat Context & Memory System with conversation extraction and AICF format support (powered by aicf-core v2.1.0).

37 lines 1.14 kB
/** * This file is part of create-ai-chat-context-experimental. * Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). * See LICENSE file for details. */ export interface TokenAnalysis { totalTokens: number; aiTokens: number; aicfTokens: number; conversationTokens: number; contextWindowUsage: number; files: Record<string, number>; hasAICF: boolean; recommendation: string; } export interface WrapUpDecision { shouldWrapUp: boolean; reason: string; analysis: TokenAnalysis; } /** * Rough token estimation (GPT-style tokenization approximation) */ export declare function estimateTokens(text: string): number; /** * Analyze current project token usage */ export declare function analyzeTokenUsage(cwd?: string): Promise<TokenAnalysis>; /** * Display token monitoring report */ export declare function displayTokenReport(analysis: TokenAnalysis): void; /** * Check if session should be wrapped up based on token usage */ export declare function shouldWrapUpSession(cwd?: string): Promise<WrapUpDecision>; //# sourceMappingURL=TokenMonitor.d.ts.map