Repository navigation
hermes: ask Hermes per setting, do not read its .env (0.22.2) - #123
Merged
Merged
Conversation
….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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
aquaman stopped writing the Hermes
.envin 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 statusandaquaman 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:
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.config gethas no--raw(0.19.0),statusanddoctorsay the settings were not checked. Doctor does not fail for the old version, since setup never stores anything there.Tests
config getthe 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.Dependencies
The second commit carries the updates of the two open Dependabot pull requests, so they can be closed once this is merged:
astral-sh/setup-uv7.6.0 to 10.4.0,github/codeql-action4.39.4 to 4.39.5.@anthropic-ai/sdk1.14.0,openai7.65.0, four@aws-sdkclients). The lockfile was regenerated with npm;npm auditandnpm audit --omit=devreport 0.Version stamped to 0.22.2 with a changelog entry.