#!/usr/bin/env node

import { createRequire } from 'node:module';
import { Command } from 'commander';
import { registerListCommand } from '../src/commands/list.js';
import { registerDownloadCommand } from '../src/commands/download.js';
import { registerInfoCommand } from '../src/commands/info.js';
import { registerAgentCommand } from '../src/commands/agent.js';

const require = createRequire(import.meta.url);
const pkg = require('../package.json');

const program = new Command();

program
  .name('sophhub')
  .description('SophHub CLI - Manage and download AI Agent skills')
  .version(pkg.version, '-v, --version');

registerListCommand(program);
registerDownloadCommand(program);
registerInfoCommand(program);
registerAgentCommand(program);

program.parse();
