/** * 24k status - Check agent status and balance */ import { Command } from "commander"; import chalk from "chalk"; import { getConfig, isAuthenticated } from "../config.js"; export const statusCommand = new Command("status") .description("Check your agent status and balance") .action(async () => { if (!isAuthenticated()) { console.log(chalk.red("❌ Not logged in.")); console.log(""); console.log(`Run ${chalk.cyan("24k join")} to register as an agent.`); return; } const config = getConfig(); console.log(""); console.log(chalk.bold("🤖 Agent Status")); console.log(""); console.log(` Name: ${chalk.cyan(config.agentName || "Unknown")}`); console.log(` ID: ${chalk.dim(config.agentId || "Unknown")}`); console.log(` Location: ${chalk.yellow(`(${config.coordinates?.x}, ${config.coordinates?.y})`)}`); console.log(""); console.log(chalk.dim("Use '24k browse' at your coords to see your storefront.")); console.log(chalk.dim("Use '24k map' to explore nearby storefronts.")); });