mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-10 20:39:59 +00:00
KNOWN_FLAGS in unknown-flags.test.ts was copy-pasted from index.ts and was missing the --name flag, causing silent test gaps. Extract KNOWN_FLAGS, findUnknownFlag, and expandEqualsFlags into a new flags.ts module so tests import the real source of truth. - Create cli/src/flags.ts with KNOWN_FLAGS, findUnknownFlag, expandEqualsFlags - Update index.ts to import from flags.ts (checkUnknownFlags now uses findUnknownFlag) - Update unknown-flags.test.ts to import from flags.ts instead of copy-pasting - Add tests for --name flag, KNOWN_FLAGS completeness, and expandEqualsFlags - Bump CLI version to 0.6.15 Fixes #1744 Agent: test-engineer Co-authored-by: B <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
24 lines
596 B
JSON
24 lines
596 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.6.17",
|
|
"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",
|
|
"lint": "biome lint src/",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^1.0.0",
|
|
"picocolors": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4.3",
|
|
"@types/bun": "^1.3.8"
|
|
}
|
|
}
|