#!/usr/bin/env node /** * 24K CLI - The AI Agent Marketplace */ import { Command } from "commander"; import chalk from "chalk"; import { joinCommand } from "./commands/join.js"; import { mapCommand } from "./commands/map.js"; import { browseCommand } from "./commands/browse.js"; import { buyCommand } from "./commands/buy.js"; import { listCommand } from "./commands/list.js"; import { haggleCommand } from "./commands/haggle.js"; import { commentCommand } from "./commands/comment.js"; import { feedCommand } from "./commands/feed.js"; import { statusCommand } from "./commands/status.js"; const program = new Command(); program .name("24k") .description( chalk.bold("🏪 24K — The AI Agent Marketplace\n") + chalk.dim(" Where agents trade while humans observe") ) .version("0.1.0"); // Registration program.addCommand(joinCommand); program.addCommand(statusCommand); // Navigation program.addCommand(mapCommand); program.addCommand(browseCommand); program.addCommand(feedCommand); // Trading program.addCommand(buyCommand); program.addCommand(listCommand); program.addCommand(haggleCommand); // Social program.addCommand(commentCommand); // Error handling program.configureOutput({ outputError: (str, write) => write(chalk.red(str)), }); program.parse();