UNPKG

@hhoangphuoc/escape-room-cli

Version:

A CLI for playing AI-generated escape room games. Install globally with: npm install -g @hhoangphuoc/escape-room-cli

171 lines (170 loc) 5.08 kB
// Command list - kept in sync with backend/constant/commands.ts export const COMMANDS = { '/help': { description: 'Show available commands and their usage', usage: '/help', }, '/instructions': { description: 'Detailed game instructions and game play', usage: '/instructions', }, '/newgame': { description: 'Start a new AI-generated escape room for you', usage: '/newgame', }, '/history': { description: 'Show the conversation history with AI models', usage: '/history', }, '/usage': { description: 'Detailed AI usage breakdown in current session', usage: '/usage', args: false, }, '/end-session': { description: 'End the current game session', usage: '/end-session', args: false, }, '/cost': { description: 'Show cost and token overview', usage: '/cost', args: false, }, '/look': { description: 'Look around the room for clues or objects', usage: '/look', }, '/inspect': { description: 'Inspect an object for details or hints', usage: '/inspect [object_name]', }, '/guess': { description: 'Decode a puzzle or riddle of an object', usage: '/guess [object_name] [puzzle]', }, '/hint': { description: 'Get a hint for the password of this room', usage: '/hint', }, '/password': { description: 'Submit the password to unlock the door', usage: '/password [your_password]', }, '/model': { description: 'Change AI model that you want to use', usage: '/model', }, '/leaderboard': { description: 'Show top players (with best performance)', usage: '/leaderboard', args: true, }, '/login': { description: 'Login to your account', usage: '/login', }, '/logout': { description: 'Logout to current account', usage: '/logout', }, '/register': { description: 'Register a new account (re-register if you already have one)', usage: '/register', }, // '/leaderboard/me': { // description: 'Show your completed games with best performance', // usage: '/leaderboard/me', // }, }; // Available model options export const MODELS_COLLECTION = { 'gpt-4.1-mini': { label: 'gpt-4.1-mini', description: 'OpenAI\'s most efficient model. Perfect balance of intelligence, speed, and cost.', value: 'gpt-4.1-mini', icon: '', thinkingCapability: 4, reasoningCapability: 3, speed: 5, cost: 'low', category: 'standard', }, 'gpt-5-mini': { label: 'gpt-5-mini', description: 'A faster, more cost-efficient version of latest model - GPT-5 for well-defined tasks.', value: 'gpt-5-mini', icon: '', thinkingCapability: 4, reasoningCapability: 3, speed: 4, cost: 'low', category: 'reasoning', }, 'o3-mini': { label: 'o3-mini', description: 'Advanced reasoning model. Exceptional problem-solving with efficient processing.', value: 'o3-mini', icon: '🔬', thinkingCapability: 4, reasoningCapability: 5, speed: 4, cost: 'medium', category: 'reasoning', }, 'o4-mini': { label: 'o4-mini', description: 'Next-gen reasoning model. Optimized for complex logical challenges.', value: 'o4-mini', icon: '🚀', thinkingCapability: 4, reasoningCapability: 5, speed: 4, cost: 'medium', category: 'reasoning', }, 'gpt-4.1': { label: 'gpt-4.1', description: 'OpenAI\'s comprehensive model. Superior intelligence with detailed responses.', value: 'gpt-4.1', icon: '🧠', thinkingCapability: 5, reasoningCapability: 4, speed: 3, cost: 'high', category: 'reasoning', }, 'gpt-5': { label: 'gpt-5', description: 'Latest GPT-5 model. Comprehensive but Expensive. Best for agentic tasks.', value: 'gpt-5', icon: '💎', thinkingCapability: 5, reasoningCapability: 4, speed: 3, cost: 'very-high', category: 'reasoning', }, 'o3': { label: 'o3', description: 'Ultimate reasoning powerhouse. Unmatched intelligence for the most challenging puzzles.', value: 'o3', icon: '💎', thinkingCapability: 5, reasoningCapability: 5, speed: 2, cost: 'very-high', category: 'reasoning', }, 'gpt-4o': { label: 'gpt-4o', description: 'OpenAI\'s multimodal flagship. Best for complex tasks and visual understanding.', value: 'gpt-4o', icon: '🎯', thinkingCapability: 5, reasoningCapability: 4, speed: 3, cost: 'very-high', category: 'multimodal', }, };