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

151 lines (150 loc) 4.87 kB
// Command list - kept in sync with backend/constant/commands.ts export const COMMANDS = { '/help': { description: 'Shows available commands and their usage.', usage: '/help', }, '/instructions': { description: 'Shows detailed game instructions and tutorial.', usage: '/instructions', }, '/newgame': { description: 'Starts a new AI-generated escape room for you.', usage: '/newgame', }, '/history': { description: 'Shows the history of commands and responses', usage: '/history', }, '/usage': { description: 'Shows detailed AI usage statistics and analytics dashboard', usage: '/usage', args: false, }, '/cost': { description: 'Shows current session cost monitor and overview', usage: '/cost', args: false, }, // Simplified cost monitoring - removed /pricing, /compare, /estimate commands '/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: 'Get the password of the current room', usage: '/password [your_password]', }, '/model': { description: 'Change AI model that you want to use.', usage: '/model', }, '/leaderboard': { description: 'Shows the top 10 leaderboard scorers.', usage: '/leaderboard', //[time|cost|efficiency]', args: true, }, '/login': { description: 'Login to your account (if config exists, usually automatic)', usage: '/login', }, '/logout': { description: 'Logout to current session.', usage: '/logout', }, '/register': { description: 'Register a new account, or re-register if you already have one.', usage: '/register', }, // '/leaderboard/me': { // description: 'Shows your top 5 scores.', // 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-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: 'standard', }, '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', }, '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', }, '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', } }; // ----------------------------------------------------------------------------- // MCP RELATED CONSTANTS ------------------------------------------------------------ // export const MCP_API_KEY = process.env['MCP_API_KEY']; // export const MCP_API_URL = process.env['MCP_API_URL']; // export const MCP_API_VERSION = process.env['MCP_API_VERSION']; // // -----------------------------------------------------------------------------