capsule-ai-cli
Version:
The AI Model Orchestrator - Intelligent multi-model workflows with device-locked licensing
25 lines • 783 B
JavaScript
import { contextManager } from '../../services/context.js';
export const chatsCommand = {
name: 'chats',
description: 'View previous chats',
alias: ['history'],
async execute() {
const contexts = contextManager.listContexts();
if (contexts.length === 0) {
return {
success: false,
message: 'No previous chats available'
};
}
return {
success: true,
action: 'none',
data: {
type: 'chat-select',
contexts: contexts.sort((a, b) => b.created.getTime() - a.created.getTime()),
currentContextId: contextManager.getCurrentContext().id
}
};
}
};
//# sourceMappingURL=chats.js.map