refactor(doctor): trim re-exports to names referenced outside their module

This commit is contained in:
Teknium
2026-09-02 16:25:28 -07:00
parent 2a9c5d8cf5
commit bf16d5f996
-15
View File
@@ -34,39 +34,30 @@ load_hermes_dotenv(hermes_home=_env_path.parent, project_env=PROJECT_ROOT / ".en
from hermes_cli.colors import Colors, color
from hermes_cli.doctor_config import ( # noqa: F401 (re-exported; tests use hermes_cli.doctor.<name>)
_DEPRECATED_COMPRESSION_SUMMARY_KEYS,
_DEPRECATED_CONFIG_KEYS,
_DEPRECATED_ENV_VARS,
_check_config_drift,
_check_config_file,
_check_env_file,
_check_mcp_security,
_check_xai_retirement,
_has_provider_env_config,
collect_deprecated_config_keys,
collect_deprecated_env_vars,
collect_relay_plugin_cutover_findings,
managed_scope_check,
report_deprecated_config_and_env,
)
from hermes_cli.doctor_platform import ( # noqa: F401 (re-exported; tests use hermes_cli.doctor.<name>)
_SQLITE_HEADER_MAGIC,
_check_certificates,
_check_command_installation,
_check_gateway_service_linger,
_check_gateway_supervision,
_check_python_environment,
_check_required_packages,
_check_s6_supervision,
_check_security_advisories,
_check_version_consistency,
_desktop_app_bundle,
_format_db_size,
_hermes_database_paths,
_macos_desktop_dr,
_python_install_cmd,
_read_journal_mode,
_read_pyproject_version,
_report_database_journal_modes,
_sqlite_upgrade_hint,
_system_package_install_cmd,
@@ -83,14 +74,10 @@ from hermes_cli.doctor_tools import ( # noqa: F401 (re-exported; tests use her
_check_npm_audit,
_check_terminal_backend,
_check_tool_availability,
_doctor_tool_availability_detail,
_doctor_web_capability_rows,
_enabled_cli_toolsets_for_doctor,
_is_kanban_worker_env_gate,
_missing_api_key_toolsets_for_summary,
_safe_which,
_termux_browser_setup_steps,
_termux_install_all_fallback_notes,
)
from hermes_cli.doctor_state import ( # noqa: F401 (re-exported; tests use hermes_cli.doctor.<name>)
STATE_DB_SIZE_WARN_BYTES,
@@ -99,9 +86,7 @@ from hermes_cli.doctor_state import ( # noqa: F401 (re-exported; tests use her
_check_profiles,
_check_skills_hub,
_check_state_db,
_doctor_memory_config,
_honcho_is_configured_for_doctor,
_memory_store_flags,
_render_state_db_stats,
)
from hermes_cli.doctor_report import ( # noqa: F401 (re-exported for doctor_live and tests)