Repository navigation
feat(integrations): committed Hermes plugin package + drift guard - #1301
Merged
Merged
Conversation
#1300) Render integrations/hermes/ from the embedded hermes-uteke-memory templates so repo-scanning installers (Hermes Desktop install dialog, plugin catalog) detect Uteke. Guard tests in init.rs keep the package byte-identical to the templates; scripts/render-hermes-integration.sh regenerates it.
| except ImportError: | ||
| get_hermes_home = lambda: None # type: ignore[assignment] | ||
|
|
||
| hermes_home = get_hermes_home() if get_hermes_home else os.environ.get("HERMES_HOME", "") |
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
…mplates (refs #1300) CodeCora flagged (via the newly committed rendered package) that the ImportError fallback `get_hermes_home = lambda: None` is truthy, so $HERMES_HOME/uteke.json was never discovered when hermes_constants is absent. Use None and let the existing truthiness check take the env-var branch. Applied to all three template copies and the rendered integration package; guard tests keep them in lockstep.
This was referenced Oct 2, 2026
ajianaz
added a commit
that referenced
this pull request
Oct 5, 2026
* chore(release): v0.19.1 - version bump, changelog, docs sync - Workspace + internal dependency versions 0.19.0 -> 0.19.1 (Cargo.lock synced) - CHANGELOG: [0.19.1] entry - upgrade-path reliability (#1307 via #1308/#1309/#1310), plain /remember explicit-type fix (#1303), committed Hermes plugin package (#1301) - Bundled uteke-memory skill + .agents canonical copy bumped in lockstep - README/README.id current-version line synced * chore(release): regenerate core-contract.json for 0.19.1 docgen embeds the workspace version; the API Docs Fresh gate caught the stale generated artifact. --------- Co-authored-by: ajianaz <[email protected]>
This was referenced Oct 5, 2026
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
Adds a committed, rendered Hermes agent-plugin package at
integrations/hermes/plus its drift guard:integrations/hermes/{plugin.yaml,__init__.py}— byte-identical copies of the embedded templates incrates/uteke-cli/assets/hermes-uteke-memory/(exactly whatuteke init --agent hermes --memory-providerwrites), +README.mdwith install instructions.scripts/render-hermes-integration.sh— regenerates the package from the templates;--checkmode exits 1 on drift.crates/uteke-cli/src/init.rs(mod tests), following the existing template-guard convention: byte-equality against the embedded templates, and a mirror of the Hermes Desktop scanner'sdetectPluginComponents()(manifest +register()entry point must stay present).Why
Pasting this repository into the Hermes Desktop "Install plugin" dialog fails with "No agent or desktop plugin artifacts found in this repository." That scanner (and the official plugin catalog) only detects agent plugins when
plugin.yaml+__init__.pyexist at the repo root — or at a#subdir. Uteke ships its Hermes plugin asuteke inittemplates only, so it is invisible to repository-scanning installers. Committing the rendered package at a stable subdir makes Uteke installable via:https://github.com/codecoradev/uteke/tree/develop/integrations/hermescodecoradev/uteke/integrations/hermeshttps://github.com/codecoradev/uteke#integrations/hermesThis mirrors the Hindsight adoption pattern (catalog entry
plugin-catalog/hindsight.yamluses subdirhindsight-integrations/hermes/). The single source of truth remains the embedded templates; drift is caught at test time (failscargo test --workspace, i.e. every PR) instead of by hand. Upstream catalog listing (plugin-catalog/uteke.yamlin NousResearch/hermes-agent) is a follow-up and is intentionally not part of this PR.Refs #1300 (proposal; Phase 1 of 3 — Phase 2 catalog entry and optional Phase 3 desktop half are tracked there).
Testing
cargo test -p uteke-cli init::tests→ 6 passed (includes the 2 new guards).integrations/hermes/plugin.yaml→hermes_integration_package_matches_embedded_templatesFAILED with the expected message; restored → PASS;scripts/render-hermes-integration.sh --check→ "up to date".cargo fmt -p uteke-cli -- --checkandcargo clippy -p uteke-cli --all-targets -- -D warnings→ clean.python3 -m py_compile integrations/hermes/__init__.py→ OK.cmpconfirms rendered files are byte-identical to the.tmplassets.