The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(hermes_cli): drop blank lines after in-body imports
Teknium52d8f0792c64
diff --git a/hermes_cli/setup_terminal.py b/hermes_cli/setup_terminal.pyindex 20cd97b4225..676f6f32182 100644--- a/hermes_cli/setup_terminal.py+++ b/hermes_cli/setup_terminal.py@@ -24,7 +24,6 @@ def _prompt_vercel_sandbox_settings(config: dict):" Snapshots restore files only; live processes do not continue after sandbox recreation.")from tools.terminal_tool import _SUPPORTED_VERCEL_RUNTIMES-current_runtime = terminal.get("vercel_runtime") or "node24"supported_label = ", ".join(_SUPPORTED_VERCEL_RUNTIMES)runtime = _setup.prompt(f" Runtime ({supported_label})", current_runtime).strip() or current_runtime@@ -101,7 +100,6 @@ def _pip_install_vercel(package):bootstrapping mid-wizard is fine), else pip — a `uv venv` venv may not even have pip."""import subprocessfrom hermes_cli.managed_uv import ensure_uv-uv_bin = ensure_uv()cmd = ([uv_bin, "pip", "install", "--python", sys.executable, package] if uv_binelse [sys.executable, "-m", "pip", "install", package])@@ -175,7 +173,6 @@ def _setup_backend_modal(config: dict) -> None:_setup.print_info("Serverless cloud sandboxes. Each session gets its own container.")from tools.managed_tool_gateway import is_managed_tool_gateway_readyfrom tools.tool_backend_helpers import normalize_modal_mode-managed_modal_available = bool(_setup.managed_nous_tools_enabled()and _setup.get_nous_subscription_features(config).nous_auth_presentdiff --git a/hermes_cli/setup_whatsapp_cloud.py b/hermes_cli/setup_whatsapp_cloud.pyindex e5663037526..87ba8263ea9 100644--- a/hermes_cli/setup_whatsapp_cloud.py+++ b/hermes_cli/setup_whatsapp_cloud.py@@ -175,7 +175,6 @@ def _lines(*lines: str) -> None:def _save_optional(key: str, value: Optional[str], current: Optional[str]) -> None:from hermes_cli.config import save_env_value-if value:save_env_value(key, value)print(f" ✓ Saved: {value}")@@ -244,7 +243,6 @@ _OPTIONAL_ID_STEPS = (def _credential_step(step) -> tuple[Optional[str], bool]:"""Run one _CREDENTIAL_STEPS entry. Returns (effective value, abort)."""from hermes_cli.config import get_env_value, save_env_value-title, env_var, label, validator, secret, preview, saved, kept, missing, required, help_text = step_header(title)current = get_env_value(env_var) or None@@ -271,7 +269,6 @@ def run_whatsapp_cloud_setup() -> int:user bailed before finishing)."""from hermes_cli.config import get_env_value, save_env_value-_lines("", "⚕ WhatsApp Business Cloud API Setup", "=" * 50, "","This wizard configures Hermes to talk to WhatsApp via Meta's",diff --git a/hermes_cli/stdio.py b/hermes_cli/stdio.pyindex 151040d983a..4396bfb9c4e 100644--- a/hermes_cli/stdio.py+++ b/hermes_cli/stdio.py@@ -87,7 +87,6 @@ def _default_windows_editor() -> str:window closes). The bare name keeps prompt_toolkit's shlex split away from paths with spaces;"" when even notepad is missing (WinPE, Nano Server) so prompt_toolkit's no-op applies."""import shutil-return "notepad" if shutil.which("notepad") else ""diff --git a/hermes_cli/terminal_breadcrumbs.py b/hermes_cli/terminal_breadcrumbs.pyindex aacbd9d96bc..aee7699237a 100644--- a/hermes_cli/terminal_breadcrumbs.py+++ b/hermes_cli/terminal_breadcrumbs.py@@ -29,7 +29,6 @@ _SANITIZE_RE = re.compile(r"[^A-Za-z0-9._-]")def _breadcrumbs_dir() -> Path:from hermes_constants import get_hermes_home-return get_hermes_home() / "terminal-sessions"