mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
fix: extract flags module to fix KNOWN_FLAGS drift in tests (#1757)
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>
This commit is contained in:
parent
7e7d4aa3d7
commit
545ddafe4a
4 changed files with 138 additions and 107 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.6.16",
|
||||
"version": "0.6.17",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue