Repository navigation
Conversation
…url help Both commands showed the shared --database-url help, which says a literal databaseUrl in stash.config.ts wins over the flag. Neither loads the config when the flag is given, so the flag wins. Give each its own help text, and add a test that holds every command's --database-url help to the value that command lets win. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CtEQzxj55RUn35dkbhdwQk
🦋 Changeset detectedLatest commit: ccf866f The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@coderabbitai review |
Action performed
|
cipherstash-agent
left a comment
There was a problem hiding this comment.
Review attestation
Reviewed 2bbcfc0a · posted from Claude Code · claude-opus-5-5 · effort medium
Sources: code-review (medium) · claude-opus-5-5; mattpocock-skills:code-review (standards, spec sub-agents) · claude-opus-5-5; review-cross-check verification agents · claude-opus-5-5
Skills: code-review, company-skills:rust-security (loaded; not applicable, no Rust in the diff), mattpocock-skills:code-review, company-skills:review-cross-check, company-skills:review-post
Every finding was verified at 2bbcfc0a. The PR had no earlier review findings to cross-check against. The claims in the PR body hold: eql install --database-url never loads the config, eql repair never reads it, and the six commands still on the shared text all load stash.config.ts through loadStashConfig. The new test passes locally (10/10).
Findings (7): 1 major, 6 minor — 6 inline, 1 below.
languages/typescript/packages/cli/src/cli/registry.ts:411(outside diff, pre-existing) minoreql verify's text says it "bypasses config loading entirely", then gets "Also settable via DATABASE_URL.", but only an explicit flag takes theflagWinspath (resolve-diagnostic-url.ts), soDATABASE_URL=postgres://a stash eql verifywith a config literalpostgres://bjudgesb. The string also already ends with that sentence, so--helpprints it twice.
Generated by Claude Code
Spread the shared flag so name, value and env stay defined once. Drop the install/verify cross-references, say that DATABASE_URL alone is not a one-shot, and remove verify's duplicated 'Also settable via DATABASE_URL'. The test now requires a positive flag-wins sentence. The skill no longer says a config literal beats DATABASE_URL in eql repair. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CtEQzxj55RUn35dkbhdwQk
Closes #1980
Issue: #1980
What changed
stash eql install --helpandstash eql repair --helpnow say that--database-urlwins over a literaldatabaseUrlinstash.config.ts. Both commands already work that way. Before, they showed the--database-urlhelp text that other database commands share, and that text says the config literal wins.No command's behaviour changes. This is a help-text fix.
src/cli/registry.ts:eql installandeql repairget their own--database-urltext, in the same form fix(cli): let --database-url win in stash eql preflight #1967 uses foreql preflight. Each one spreads the shared flag and replaces only its description. The shared text stays on the commands where it is true.eql verify's text, after review: it printed "Also settable via DATABASE_URL." twice, and it did not say thatDATABASE_URLon its own does not skip the config.eql installnow says that too.src/cli/__tests__/database-url-help.test.ts: a new test. It lists every command that takes--database-url, with the value that wins in that command. It fails if a command's help says otherwise, or if a new command takes the flag and is not in the list.skills/stash-cli/SKILL.md: the resolution section names the commands where the flag wins, and theeql repairflag table says repair never readsstash.config.ts, so with no flagDATABASE_URLwins there.stashpatch changeset.Which value wins, by command
eql installmain.tspassesscaffoldConfig: 'skip'when the flag is given, soresolveInstallContextnever looks for a config (commands/db/install.ts)eql repairresolveRepairDatabaseUrlreads only the flag andDATABASE_URL(commands/eql/repair.ts)eql verifyeql preflightflagWins: falseonnext. #1967 changes thiseql upgrade,eql status,schema buildloadStashConfig. Tracked in #1979eql validate,db test-connectionloadStashConfig. Not listed in #1979Overlap with #1967
#1967 also edits
registry.ts,skills/stash-cli/SKILL.mdline 159, and the precedence ofeql preflight. Whichever PR merges second needs a small conflict fix. If #1967 merges first, moveeql preflightto'flag'in the new test.How it was checked
eql installandeql repaironly, then passed.pnpm --filter stash buildandpnpm --filter stash test: all pass.pnpm run code:check: no errors.stash manifest --jsonfrom the build shows the new text on both commands.🤖 Generated with Claude Code
https://claude.ai/code/session_01CtEQzxj55RUn35dkbhdwQk