Skip to content

hermes: ask Hermes per setting, do not read its .env (0.22.2) - #123

Merged
tech4242 merged 2 commits into
mainfrom
fix/hermes-ask-per-key
Nov 30, 2026
Merged

tech4242 merged 2 commits into
mainfrom
fix/hermes-ask-per-key

Conversation

@tech4242

@tech4242 tech4242 commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

What

aquaman stopped writing the Hermes .env in 0.21.1, but still read all of it: setup (to find a real key before replacing it, and to check that each setting arrived), aquaman hermes status and aquaman hermes doctor. The file also holds the person's other provider keys.

Now aquaman asks Hermes, one name at a time and only for the six settings it manages:

hermes [-p <name>] config get <KEY> --raw

The only thing still looked at in the file is its mode (stat).

Details

  • parseHermesConfigGet(): exit 0 is the value, "Config key not set" with a failing exit is not stored, anything else is unknown and never counts as either.
  • Hermes answers with the calling shell's variable when the profile has none stored. The names asked about are removed from the environment Hermes runs in, so a key that is only exported in the shell is not taken for one in the file.
  • If Hermes cannot be asked whether it holds a real key, setup stores nothing.
  • Without the Hermes CLI, and on a Hermes whose config get has no --raw (0.19.0), status and doctor say the settings were not checked. Doctor does not fail for the old version, since setup never stores anything there.

Tests

  • Unit: one row per kind of answer from Hermes, wiring and real-key decisions over those answers, the shell-export case, and a Hermes that does not answer.
  • CLI: every config get the commands make names one of the six settings and nothing else.
  • scripts/e2e-hermes-setup.sh (real Hermes, both CI lanes) gains two cases: a key exported only in the shell, and another key in the file that is kept and never shown.
  • Run locally against Hermes 0.23.4 (stored) and 0.19.0 (manual).

Dependencies

The second commit carries the updates of the two open Dependabot pull requests, so they can be closed once this is merged:

Version stamped to 0.22.2 with a changelog entry.

….env (0.22.2)

Setup's check for a real key, its check that each setting arrived, and
`aquaman hermes status` / `doctor` parsed every line of the profile's
`.env`, which also holds the person's other provider keys. They now run
`hermes [-p <name>] config get <KEY> --raw`, once per name and only for
the six settings aquaman manages. The file's mode is still checked with
stat.

Hermes answers that command with the calling shell's variable when the
profile has none stored, so the names asked about are removed from the
environment Hermes runs in. An answer that is neither a value nor
"Config key not set" counts as unknown: setup stores nothing, and
status and doctor say the settings were not checked.
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 30, 2026 12:39pm UTC

@codecov-commenter

codecov-commenter commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.29%. Comparing base (4ccee53) to head (26c5668).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #123      +/-   ##
==========================================
- Coverage   99.30%   99.29%   -0.01%     
==========================================
  Files          61       61              
  Lines        9041     9063      +22     
==========================================
+ Hits         8978     8999      +21     
- Misses         63       64       +1     
Files with missing lines Coverage Δ
packages/proxy/src/cli/index.ts 98.59% <100.00%> (-0.04%) ⬇️
packages/proxy/src/hermes/config-writer.ts 100.00% <100.00%> (ø)
packages/proxy/src/hermes/integration.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…and the dev SDKs used by tests

The same updates as the two open Dependabot pull requests (#121, #122). The lockfile was regenerated with npm, so the AWS clients resolve to 3.1181.0 within the new range.
@tech4242
tech4242 merged commit da6c441 into main Nov 30, 2026
15 checks passed
@tech4242
tech4242 deleted the fix/hermes-ask-per-key branch November 30, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants