Skip to content

v0.43.1 - Hermes CLI discovery contract completed

Choose a tag to compare

@solaitken solaitken released this 04 Jun 21:10
· 10 commits to main since this release
c03d569

Open Second Brain v0.43.1 - Hermes CLI discovery contract completed

Patch release: standalone installs of the Hermes plugin now actually expose the documented hermes open-second-brain CLI subtree. Hermes discovers plugin CLI commands by scanning exactly one file - <plugin_root>/cli.py - while the implementation lives in plugins/hermes/cli.py, so the documented subcommands were never discoverable on a stock Hermes; an 18-line root re-export shim through the loader's synthetic parent packages closes the gap, and a loader-contract test mirrors the upstream scan's exact import sequence so it cannot reopen silently.

            BEFORE                                  AFTER

  hermes discover_plugin_cli_commands     hermes discover_plugin_cli_commands
        scans <plugin_root>/cli.py              scans <plugin_root>/cli.py
                  |                                       |
            file missing                        cli.py (root shim, 18 lines)
                  |                                       |
                  x                          re-exports register_cli / run
   `hermes open-second-brain`                             |
        unknown command                       plugins/hermes/cli.py
                                                          |
                                             `hermes open-second-brain ...`
                                            discoverable before provider load

What ships

Artifact Role
cli.py (repo root) SDK-free relative re-export of register_cli / run through the synthetic parent packages the upstream loader registers (hermes-agent PR #37366)
HermesLoaderContractTests Reproduces the upstream scan's import sequence - synthetic parents pre-registered, root __init__.py never executed - pinning the contract on both sides

Notes