Summary
CLIOptions.format is hardcoded to 'text' in src/cli.ts. The json mode only works when commands are called programmatically, not from the CLI entrypoint.
An agent piping stackbilt run or stackbilt classify needs structured output.
Fix
Wire --format json through the CLI dispatcher in src/cli.ts and pass it to each command. Each command already accepts CLIOptions with a format field — this is purely a dispatcher fix.
stackbilt classify "my intention" --format json
stackbilt architect "my intention" --format json
stackbilt run "my intention" --format json
Also add stackbilt --version and stackbilt --help while here — both are currently absent.
Summary
CLIOptions.formatis hardcoded to'text'insrc/cli.ts. Thejsonmode only works when commands are called programmatically, not from the CLI entrypoint.An agent piping
stackbilt runorstackbilt classifyneeds structured output.Fix
Wire
--format jsonthrough the CLI dispatcher insrc/cli.tsand pass it to each command. Each command already acceptsCLIOptionswith aformatfield — this is purely a dispatcher fix.Also add
stackbilt --versionandstackbilt --helpwhile here — both are currently absent.