simplify(compat): hermes_cli.main — drop 198 re-exports/aliases (155 eager + 45 lazy PEP 562 + _warn_stale_dashboard_processes alias + _time/_self/_LAZY_* machinery), repoint 17 source callers + 91 test files

This commit is contained in:
Teknium
2026-09-03 15:07:39 -07:00
parent 191e7c74a1
commit 0e78694c72
108 changed files with 809 additions and 1031 deletions

View File

@@ -74,7 +74,7 @@ def _pick_detected_model(detected_models: list) -> str:
def _model_flow_custom(config):
"""Custom endpoint: collect URL, API key, and model name; also saved to ``custom_providers`` so
it appears in the provider menu on subsequent runs."""
from hermes_cli.main import _auto_provider_name, _prompt_custom_api_mode_selection, _save_custom_provider
from hermes_cli.main_provider_setup import _auto_provider_name, _prompt_custom_api_mode_selection, _save_custom_provider
from hermes_cli.auth import _save_model_choice, deactivate_provider
from hermes_cli.config import custom_endpoint_key_env, get_env_value, save_env_value
from hermes_cli.secret_prompt import masked_secret_prompt
@@ -290,7 +290,7 @@ def _model_flow_named_custom(config, provider_info):
"""Named custom provider from ``custom_providers`` / ``providers.<key>``: probes the model
catalog (native ``/api/tags`` for endpoints conservatively identified as Ollama); a previously
saved model is pre-selected and is the fallback when probing fails."""
from hermes_cli.main import _custom_provider_api_key_config_value, _custom_provider_base_url_config_value, _save_custom_provider
from hermes_cli.main_provider_setup import _custom_provider_api_key_config_value, _custom_provider_base_url_config_value, _save_custom_provider
from hermes_cli.auth import _save_model_choice
from hermes_cli.config import load_config, save_config
from hermes_cli.model_switch import _entry_models_discovered, _models_config_is_allowlist