The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(platforms/line): fix broken import of non-existent config functions
ErnestHysa425c54b51e62
diff --git a/plugins/platforms/line/adapter.py b/plugins/platforms/line/adapter.pyindex b3c9c6463ef..b31c1a209d4 100644--- a/plugins/platforms/line/adapter.py+++ b/plugins/platforms/line/adapter.py@@ -1695,13 +1695,13 @@ def interactive_setup() -> None:print()try:- from hermes_cli.config import get_env_var, set_env_var+ from hermes_cli.config import get_env_value as _get_env, save_env_value as _set_envexcept ImportError:print("hermes_cli.config not available; set LINE_* vars manually in ~/.hermes/.env")returndef _prompt(var: str, prompt: str, *, secret: bool = False) -> None:- existing = get_env_var(var) if callable(get_env_var) else None+ existing = _get_env(var) if callable(_get_env) else Nonesuffix = " [keep current]" if existing else ""try:if secret:@@ -1713,7 +1713,7 @@ def interactive_setup() -> None:print()returnif value:- set_env_var(var, value)+ _set_env(var, value)_prompt("LINE_CHANNEL_ACCESS_TOKEN", "Channel access token", secret=True)_prompt("LINE_CHANNEL_SECRET", "Channel secret", secret=True)