UNPKG

capsule-ai-cli

Version:

The AI Model Orchestrator - Intelligent multi-model workflows with device-locked licensing

21 lines 695 B
import { contextManager } from '../../services/context.js'; import chalk from 'chalk'; export const contextCommand = { name: 'context', description: 'Show context stats', alias: ['ctx'], async execute() { const stats = contextManager.getContextStats(); const message = `${chalk.bold('📊 Current Context Stats:')} Messages: ${stats.messageCount} Tokens: ${stats.tokenCount.toLocaleString()} Cost: $${stats.totalCost.toFixed(4)} Models used: ${stats.modelsUsed.join(', ') || 'None'} Created: ${stats.oldestMessage.toLocaleString()}`; return { success: true, message }; } }; //# sourceMappingURL=context.js.map