fix: use get_hermes_home() for profile-scoped storage, fix README

- Replace hardcoded os.path.expanduser('~/.hermes') with
  get_hermes_home() from hermes_constants for profile isolation
- Fix README echo command quoting error
This commit is contained in:
Teknium
2026-04-06 21:50:37 -07:00
committed by Teknium
parent ac80d595cd
commit 88bba31b7d
2 changed files with 4 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ Or manually:
```bash
hermes config set memory.provider supermemory
echo 'SUPERMEMORY_API_KEY=***' >> ~/.hermes/.env
echo 'SUPERMEMORY_API_KEY=your-key-here' >> ~/.hermes/.env
```
## Config

View File

@@ -399,7 +399,7 @@ class SupermemoryMemoryProvider(MemoryProvider):
self._capture_mode = _DEFAULT_CAPTURE_MODE
self._entity_context = _DEFAULT_ENTITY_CONTEXT
self._api_timeout = _DEFAULT_API_TIMEOUT
self._hermes_home = os.path.expanduser("~/.hermes")
self._hermes_home = ""
self._write_enabled = True
self._active = False
@@ -439,7 +439,8 @@ class SupermemoryMemoryProvider(MemoryProvider):
_save_supermemory_config(sanitized, hermes_home)
def initialize(self, session_id: str, **kwargs) -> None:
self._hermes_home = kwargs.get("hermes_home") or os.path.expanduser("~/.hermes")
from hermes_constants import get_hermes_home
self._hermes_home = kwargs.get("hermes_home") or str(get_hermes_home())
self._session_id = session_id
self._turn_count = 0
self._config = _load_supermemory_config(self._hermes_home)