fix(archivar): sync __init__.py barrel imports + test_router.py to v3 class names

- __init__.py: MessageClassifier→IntentClassifier, MessageRouter→BidirectionalRouter, CONFIDENCE_THRESHOLD→CONFIDENCE_THRESHOLDS, added ROOM_MAP_PATH, ARCHIVAR_STATE_PATH, ArchivarState
- config.py: added missing ROOM_MAP_PATH constant (imported by router.py)
- test_router.py: updated imports + BidirectionalRouter(state=ArchivarState()) constructor

Root cause: Miguel's v3 refactoring renamed classes but didn't update the barrel file. Gateway failed with 'No adapter available for rocketchat' because archivar/__init__.py imported non-existent names.
This commit is contained in:
Hermes Agent
2026-06-11 22:25:35 +02:00
parent 58749914fc
commit c23127c9c5
3 changed files with 26 additions and 11 deletions
+9
View File
@@ -180,6 +180,15 @@ Verfügbare Räume:
Nachricht: {text}
Raum:"""
# ── Raum-Map-Konfiguration ──────────────────────────────────────────────────
# Ablösung der ARCHIVAR_*_ROOM Env-Vars durch room-map.json.
# Die alten Env-Vars funktionieren weiter (deprecated, mit WARNING). Neue
# Installationen sollten ausschließlich room-map.json verwenden.
ROOM_MAP_PATH: str = os.path.expanduser(
os.getenv("ARCHIVAR_ROOM_MAP_PATH", "~/.hermes/hermes-agent/data/room-map.json")
)
# ── Persistenz-Layer-Konfiguration ──────────────────────────────────────────
ARCHIVAR_STATE_PATH: str = os.path.expanduser(