fix: replace user-facing hardcoded ~/.hermes paths with display_hermes_home()

Prep for profiles: user-facing messages now use display_hermes_home() so
diagnostic output shows the correct path for each profile.

New helper: display_hermes_home() in hermes_constants.py
12 files swept, ~30 user-facing string replacements.
Includes dynamic TTS schema description.
This commit is contained in:
Teknium 2026-03-28 23:47:21 -07:00 committed by GitHub
parent 0a80dd9c7a
commit 9f01244137
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 95 additions and 57 deletions

View file

@ -38,7 +38,7 @@ import httpx
import yaml
from hermes_cli.config import get_hermes_home, get_config_path
from hermes_constants import OPENROUTER_BASE_URL
from hermes_constants import OPENROUTER_BASE_URL, display_hermes_home
logger = logging.getLogger(__name__)
@ -2021,7 +2021,7 @@ def _login_openai_codex(args, pconfig: ProviderConfig) -> None:
config_path = _update_config_for_provider("openai-codex", creds.get("base_url", DEFAULT_CODEX_BASE_URL))
print()
print("Login successful!")
print(" Auth state: ~/.hermes/auth.json")
print(f" Auth state: {display_hermes_home()}/auth.json")
print(f" Config updated: {config_path} (model.provider=openai-codex)")