The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(hermes_cli): setup cluster — pack import/signature lists, tighten wizard picker lambdas
Teknium21835bac7a91
diff --git a/hermes_cli/secret_prompt.py b/hermes_cli/secret_prompt.pyindex d97e1fe44c8..0849f577d98 100644--- a/hermes_cli/secret_prompt.py+++ b/hermes_cli/secret_prompt.py@@ -14,11 +14,7 @@ _EOF_CHARS = {"\x04", "\x1a", ""} # "" == stream closeddef _collect_masked_input(- read_char: Callable[[], str],- write: Callable[[str], object],- prompt: str,- *,- mask: str = "*",+ read_char: Callable[[], str], write: Callable[[str], object], prompt: str, *, mask: str = "*",) -> str:"""Read one secret line while writing a mask character per typed char."""value: list[str] = []diff --git a/hermes_cli/secrets_cli.py b/hermes_cli/secrets_cli.pyindex cf3bde7dc8e..7c1d58969b2 100644--- a/hermes_cli/secrets_cli.py+++ b/hermes_cli/secrets_cli.py@@ -26,27 +26,11 @@ from rich.table import Table_BWS_VERSION = "2.0.0"from hermes_cli._secrets_common import (- arg,- cfg_str,- cli_version,- disable_secret_source,- flag,- print_status_panel,- print_table,- prompt_index,- register_subcommands,- require_enabled,- rotate_token,- secret_cli_env,- section_cfg,+ arg, cfg_str, cli_version, disable_secret_source, flag, print_status_panel, print_table,+ prompt_index, register_subcommands, require_enabled, rotate_token, secret_cli_env, section_cfg,yn,)-from hermes_cli.config import (- get_env_path,- load_config,- save_config,- save_env_value,-)+from hermes_cli.config import get_env_path, load_config, save_config, save_env_valuefrom hermes_cli.secret_prompt import masked_secret_prompt# Old names kept bound: tests monkeypatch ``secrets_cli._bws_version``.@@ -540,9 +524,7 @@ _REGION_PRESETS = [def _resolve_server_url(- args: argparse.Namespace,- secrets_cfg: dict,- console: Console,+ args: argparse.Namespace, secrets_cfg: dict, console: Console,) -> Optional[str]:"""Pick a Bitwarden server URL for setup.diff --git a/hermes_cli/setup.py b/hermes_cli/setup.pyindex 674200b6f93..61a022320fe 100644--- a/hermes_cli/setup.py+++ b/hermes_cli/setup.py@@ -770,10 +770,10 @@ def _run_full_setup(config: dict, hermes_home, *, is_existing: bool, migration_r# First-time mode picker: (menu label, runner) — a None runner falls through to Full Setup._FIRST_TIME_MODES = (("Quick Setup (Nous Portal) — free OAuth login, no API keys, model + tools (recommended)",- lambda config, home, is_existing: _run_first_time_quick_setup(config, home, is_existing)),+ lambda *a: _run_first_time_quick_setup(*a)),("Full setup — configure every provider, tool & option yourself (bring your own keys)", None),("Blank Slate — everything off except the bare minimum; opt in to each capability",- lambda config, home, is_existing: _run_blank_slate_setup(config, home, is_existing)),+ lambda *a: _run_blank_slate_setup(*a)),)@@ -811,7 +811,6 @@ def _run_setup_wizard_impl(args):# Existing installation == a provider is configuredfrom hermes_cli.auth import get_active_provider-is_existing = bool(get_env_value("OPENROUTER_API_KEY") or get_env_value("OPENAI_BASE_URL") or get_active_provider() is not None)