import { Command } from 'commander'; import { createPrd, listPrds, loadPrd } from './prd.js'; import { runPrdWizard } from './wizard.js'; interface InitCommandOptions { readonly name: string; readonly project: string; readonly template?: 'software' | 'feature' | 'spike'; } interface ListCommandOptions { readonly project: string; } interface ShowCommandOptions { readonly project: string; readonly id?: string; } export function buildPrdyCli(): Command { const program = new Command(); program .name('mosaic') .description('Mosaic CLI') .exitOverride(); const prdy = program.command('prdy').description('PRD wizard commands'); prdy .command('init') .description('Create a PRD document') .requiredOption('--name ', 'PRD name') .requiredOption('--project ', 'Project path') .option('--template