Commit Graph

4 Commits

Author SHA1 Message Date
Teknium
0255dedd1a feat(plugins): enforce the catalog's requires_hermes at install and update
The catalog entry's requires_hermes was display-only: `hermes plugins
install <name>` cloned and published a pin the catalog says needs a newer
Hermes, and `hermes plugins update` re-pinned an installed plugin onto it.
Only the plugin's own plugin.yaml floor was checked, and only at load.

- install_catalog_entry (the one seam every install by catalog name goes
  through: CLI, dashboard/Desktop/TUI plugins.manage, `hermes setup`'s
  importer step, the left-core and memory-provider auto-installs) refuses
  with "<plugin> needs Hermes <spec>; this is <version>. Update Hermes
  (`hermes update`) and install again." before any clone. The connector
  card's pre-check uses the same function.
- repin_catalog_plugin (every catalog update) keeps the installed pin and
  says the update is available after updating Hermes; `hermes plugins
  update` with no name lists such a plugin as held instead of applying it,
  and check-updates marks it.
- `hermes plugins search` / `info` still list incompatible entries,
  marked as needing a newer Hermes.

Portable packages (plugin.json) have no version field, so the catalog
entry's requires_hermes is their only floor; the gate is kind-agnostic and
covers them (tested), and the agent_plugins comment and docs say so.

The verdict is plugins_manifest.requires_hermes_error itself (same
running_hermes_version + version_satisfies), so a dev checkout, canary
build or tagless checkout is judged exactly as the plugin.yaml gate judges
it. No override flag.
2026-10-23 02:22:46 -07:00
Teknium
349e4f7e62 fix(plugins): one plugin's unexpected error no longer stops update-all
A feed timeout or invalid YAML inside update_plugin raises a plain exception,
not a typed refusal; catch it at the per-plugin batch boundary (traceback
logged), record the failure and continue. Addresses Greptile review.
2026-10-19 06:07:41 -07:00
Teknium
e1065b4a9c refactor(plugins): update-all reads a typed outcome, not printed text
Split cmd_update into update_one(name, target, console, interactive) -> bool,
which raises RepinConsentRequired / PluginOperationError on a refusal, and a
thin cmd_update that maps those to exit 1 as before. cmd_update_catalog now
returns whether the pin moved and raises instead of exiting. The update-all
loop calls update_one and catches the typed refusals, so the stdout tee,
ANSI stripping and metadata re-read are gone. Addresses Greptile review.
2026-10-19 06:07:41 -07:00
Teknium
ced2a39350 feat(plugins): hermes plugins update with no name offers every plugin update
Running `hermes plugins update` without a name now runs the check-updates
probe, lists the plugins the update path can actually move (catalog re-pin,
git pull), names every one it skips and why (pinned, needs fixing, unknown,
pip distributions Hermes never upgrades — #132494), asks once, and updates
each through cmd_update so per-plugin consent prompts still apply. One
failure does not stop the rest; the summary quotes each failure's reason.

Without a terminal nothing moves unless --yes is passed; --yes runs the
updates with interactive=False, so consent stays fail-closed.
2026-10-19 06:07:41 -07:00