#!/usr/bin/env node import { parseArgs } from '../lib/args.js'; import { loadConfig } from '../lib/config.js'; import { runCommand } from '../lib/commands/run.js'; import { statusCommand } from '../lib/commands/status.js'; const args = parseArgs(process.argv.slice(2)); const config = await loadConfig(args); const commands = { run: runCommand, status: statusCommand, }; const cmd = commands[config.command]; if (!cmd) { console.error(`Unknown command: ${config.command}`); console.error('Available commands: run, status'); process.exit(1); } await cmd(config);