The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(hermes_cli): join short wrapped statements; drop unused Optional import
Tekniumd719716cb815
diff --git a/hermes_cli/partial_compress.py b/hermes_cli/partial_compress.pyindex e523e71f12f..546fb0b9f30 100644--- a/hermes_cli/partial_compress.py+++ b/hermes_cli/partial_compress.py@@ -102,10 +102,7 @@ def summarize_compress_preview(f"({len(tail)} message(s)) verbatim.")elif partial:- lines.append(- "Boundary: 'here' split would keep everything — "- "falling back to full compression."- )+ lines.append("Boundary: 'here' split would keep everything — falling back to full compression.")if focus_topic:lines.append(f'Focus topic: "{focus_topic}"')lines.append("Run the command again without --preview to apply.")diff --git a/hermes_cli/personality.py b/hermes_cli/personality.pyindex 8682ae4200f..9d0a7a79950 100644--- a/hermes_cli/personality.py+++ b/hermes_cli/personality.py@@ -101,9 +101,7 @@ def resolve_personality(value: Any, cfg: Optional[Dict[str, Any]] = None) -> Tuppersonalities = available_personalities(cfg)if name not in personalities:names = ", ".join(f"`{n}`" for n in sorted(personalities))- raise ValueError(- f"Unknown personality: `{str(value).strip()}`.\n\nAvailable: `none`, {names}"- )+ raise ValueError(f"Unknown personality: `{str(value).strip()}`.\n\nAvailable: `none`, {names}")return name, render_personality_prompt(personalities[name])diff --git a/hermes_cli/platform_actions.py b/hermes_cli/platform_actions.pyindex 118ce179416..94daedc4ccc 100644--- a/hermes_cli/platform_actions.py+++ b/hermes_cli/platform_actions.py@@ -7,7 +7,7 @@ Every verb returns a structured result dict — ``{"ok": True, ...}`` on successfrom __future__ import annotationsimport logging-from typing import Any, Dict, Optional+from typing import Any, Dictlogger = logging.getLogger(__name__)@@ -90,10 +90,7 @@ class PlatformActions:return plugin_capability_granted(self._plugin_id, CAPABILITY_ID)except Exception:# Ground rule: failure to read consent state = not granted.- logger.debug(- "platform_actions capability check failed for %s",- self._plugin_id, exc_info=True,- )+ logger.debug("platform_actions capability check failed for %s", self._plugin_id, exc_info=True)return Falsedef _resolve_adapter(self, platform: str):