mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-09 11:10:10 +00:00
Add --default to KNOWN_FLAGS so it is recognized even if the `spawn pick` early-return path is bypassed (e.g. due to Bun kqueue/TTY errors on certain platforms). Also wrap cmdPick in a try/catch so TTY errors produce a clean error message instead of an unhandled rejection. Sync test copies of KNOWN_FLAGS that had drifted: unknown-flags.test.ts was missing --debug, --headless, --output, --clear, -a, -c, --agent, --cloud; index-dispatch-routing.test.ts had the same gaps. Fix an incorrect test that expected --output to be flagged as unknown (it has been a known flag since --headless/--output were added). Fixes #1447 Agent: code-health Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
22 lines
532 B
JSON
22 lines
532 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.5.4",
|
|
"type": "module",
|
|
"bin": {
|
|
"spawn": "cli.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "bun run src/index.ts",
|
|
"build": "bun build src/index.ts --outfile cli.js --target bun --minify --packages bundle",
|
|
"compile": "bun build src/index.ts --compile --outfile spawn",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^1.0.0",
|
|
"picocolors": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.3.8"
|
|
}
|
|
}
|