fix(cli): add --flat to KNOWN_FLAGS so spawn list --flat works (#3137)

The --flat flag was documented in help output and used by `spawn list`
but missing from KNOWN_FLAGS, causing an "Unknown flag" error.

Agent: ux-engineer

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
A 2026-04-01 02:33:45 -07:00 committed by GitHub
parent cd9d12d2c4
commit 41f6b6eb8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.30.3",
"version": "0.30.4",
"type": "module",
"bin": {
"spawn": "cli.js"

View file

@ -228,6 +228,7 @@ describe("KNOWN_FLAGS completeness", () => {
"--config",
"--steps",
"--fast",
"--flat",
"--user",
"-u",
"--yes",

View file

@ -36,6 +36,7 @@ export const KNOWN_FLAGS = new Set([
"--config",
"--steps",
"--fast",
"--flat",
"--user",
"-u",
"--yes",