diff --git a/hermes_cli/setup_terminal.py b/hermes_cli/setup_terminal.py index 20cd97b422..676f6f3218 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 subprocess from hermes_cli.managed_uv import ensure_uv - uv_bin = ensure_uv() cmd = ([uv_bin, "pip", "install", "--python", sys.executable, package] if uv_bin else [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_ready from 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_present diff --git a/hermes_cli/setup_whatsapp_cloud.py b/hermes_cli/setup_whatsapp_cloud.py index e566303752..87ba8263ea 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.py index 151040d983..4396bfb9c4 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.py index aacbd9d96b..aee7699237 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"