fix(archivar): doc_store writes to fact_store_path from room_map
DocumentationStore() now uses RoomMap.fact_store_path instead of the hardcoded ~/.hermes/.../archivar_docs default. One-line change — the doc_store is initialized after _load_room_map() so room_map is available. This allows per-deployment configuration: in production, fact_store_path points to /data/Wissensdatenbank/0100 Inbox so FAKT messages land in the Obsidian vault's inbox for StartObsidian integration.
This commit is contained in:
@@ -112,11 +112,12 @@ class ArchivarMessageHandler:
|
||||
embedding_client=embedding_client,
|
||||
llm_client=llm_client
|
||||
)
|
||||
self._doc_store = DocumentationStore()
|
||||
|
||||
# Load RoomMap (try JSON first, fall back to legacy env vars)
|
||||
self._room_map = self._load_room_map()
|
||||
|
||||
# doc_store writes to fact_store_path from room_map
|
||||
self._doc_store = DocumentationStore(base_dir=self._room_map.fact_store_path)
|
||||
|
||||
# Cache for subscribed room IDs (set later via set_subscribed_room_ids)
|
||||
self._subscribed_room_ids_cache: Optional[set] = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user