Bladeren bron

Note that the tests need the Hermes Agent checked out

adapter.py imports gateway.*, which lives in the Hermes Agent, so a bare
pytest run dies at collection with ModuleNotFoundError before a single
test executes. Record the clone plus the PYTHONPATH invocation that works.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Paul-Dieter Klumpp 1 week geleden
bovenliggende
commit
02a08c7fc9
1 gewijzigde bestanden met toevoegingen van 16 en 0 verwijderingen
  1. 16 0
      AGENTS.md

+ 16 - 0
AGENTS.md

@@ -1,5 +1,21 @@
 # Agent Guidelines for hermes-chatto-plugin
 
+## Tests
+
+`adapter.py` importiert aus `gateway.*` — das ist der Hermes Agent, nicht dieses
+Repo. Ohne dessen Quellcode auf dem `PYTHONPATH` bricht schon das Einsammeln der
+Tests mit `ModuleNotFoundError: No module named 'gateway'` ab. Also den Hermes
+Agent selbst herunterladen und bereitlegen, bevor du Tests ausführst:
+
+```bash
+git clone https://github.com/NousResearch/hermes-agent.git /tmp/hermes
+PYTHONPATH=/tmp/hermes uv run --with pyyaml pytest -q
+```
+
+`pyyaml` wird von `gateway.config` gebraucht und steckt nicht in unseren
+Dev-Dependencies. Liegt der Checkout schon irgendwo, den Pfad einfach
+wiederverwenden statt neu zu klonen.
+
 ## Shell Scripts
 
 **Always run `shellcheck` after editing any shell scripts.**