#!/usr/bin/env bun
/**
 * AI Assistant CLI
 *
 * 命令行入口
 */

import { Command } from 'commander';
import { registerServeCommand, registerAttachCommand } from './commands/index.js';

const program = new Command();

program
  .name('ai-assistant')
  .description('AI Terminal Assistant - Your AI-powered coding companion')
  .version('1.0.0');

// 注册命令
registerServeCommand(program);
registerAttachCommand(program);

// 默认命令 (无参数时的行为)
program
  .action(() => {
    program.help();
  });

// 解析命令行参数
program.parse(process.argv);
