UNPKG

ai-persona-hub

Version:

AI Profile CLI - Create custom AI profiles run against dynamic LLM providers

55 lines 1.92 kB
#!/usr/bin/env node "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const commander_1 = require("commander"); const chalk_1 = __importDefault(require("chalk")); const create_1 = require("./commands/create"); const list_1 = require("./commands/list"); const delete_1 = require("./commands/delete"); const chat_1 = require("./commands/chat"); const model_1 = require("./commands/model"); const program = new commander_1.Command(); program .name('cgem') .description('AI Profile CLI - Create custom AI profiles with multiple AI providers') .version('1.0.0'); program .command('create') .description('Create a new AI profile') .action(create_1.createCommand); program .command('list') .alias('ls') .description('List all available profiles') .action(list_1.listCommand); program .command('chat [profile-name]') .description('Start a conversation with an AI profile') .action(chat_1.chatCommand); program .command('delete <profile-name>') .alias('rm') .description('Delete an AI profile') .action(delete_1.deleteCommand); const modelCmd = program .command('model') .description('Configure AI model settings') .action(model_1.modelCommand); modelCmd .command('list') .description('List available AI models') .action(model_1.modelListCommand); program.on('command:*', operands => { console.error(chalk_1.default.red(`Unknown command: ${operands[0]}`)); console.log(chalk_1.default.gray('Run "cgem --help" for available commands')); process.exit(1); }); if (process.argv.length === 2) { console.log(chalk_1.default.blue('🔮 Welcome to Custom Gems - AI Profile CLI\n')); program.help(); } program.parse(process.argv); //# sourceMappingURL=index.js.map