test(hermes): realign suite with the pre_llm_call mechanism; slim docs to the README section

The 20-test suite still exercised the dead on_session_start/inject_message
mechanism (17 failures against the rewritten plugin). Rewritten for the
real contract: pre_llm_call registration + first-turn-only context return,
register_skill receiving pathlib.Path (the conftest mock now raises on str,
mirroring hermes' AttributeError that silently disables a plugin), both
install layouts resolving skills, loud failure when skills are missing,
tool mapping sourced verbatim from hermes-tools.md, and a bootstrap-size
guard against hermes' 10k-char context spill threshold. 19 tests, passing.

Install docs collapse into the README section per maintainer direction:
docs/README.hermes.md and .hermes-plugin/INSTALL.md are gone; the README
carries the two-line install plus the compaction caveat. plugin.yaml
version aligned to 6.1.1.
This commit is contained in:
Jesse Vincent
2026-07-23 16:05:54 -07:00
parent 178528c03e
commit b6613057ae
7 changed files with 185 additions and 179 deletions

View File

@@ -207,9 +207,9 @@ Install Superpowers as a Hermes plugin from this repository:
hermes plugins install obra/superpowers --enable
```
Restart any active Hermes sessions after installing.
Detailed docs: [docs/README.hermes.md](docs/README.hermes.md)
Restart any active Hermes sessions after installing. Note: Hermes has no
post-compaction hook, so a very long session that compacts over its first
turn loses the bootstrap — start a fresh session if skills stop triggering.
## The Basic Workflow