The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
Merge remote-tracking branch 'origin/main' into ethie/pm-clean
ethernet207f8fedfd2f
diff --cc agent/prompt_builder.pyindex c6dade80d31,5f330639129..a98c3c6ec19--- a/agent/prompt_builder.py+++ b/agent/prompt_builder.py@@@ -1216,11 -1213,10 +1223,11 @@@ def _build_snapshot_entry(skill_file: Pdef _parse_skill_file(skill_file: Path) -> tuple[bool, dict, str]:"""Read a SKILL.md once -> (is_compatible, frontmatter, description); errors yield (True, {}, "")."""try:- frontmatter, _ = parse_frontmatter(skill_file.read_text(encoding="utf-8"))+ raw = skill_file.read_text(encoding="utf-8-sig")+ frontmatter, _ = parse_frontmatter(raw)# Host-platform / runtime-environment gates are offer-time only; explicit loads bypass them.- if not skill_matches_platform(frontmatter) or not skill_matches_environment(frontmatter):- return False, frontmatter, ""+ if not skill_matches_platform(frontmatter) or not skill_matches_environment(frontmatter) or not skill_matches_apps(frontmatter):+ return False, frontmatter, extract_skill_description(frontmatter)return True, frontmatter, extract_skill_description(frontmatter)except Exception as e:logger.warning("Failed to parse skill file %s: %s", skill_file, e)diff --cc agent/skill_commands.pyindex f41771f2a3b,7f3de811485..a20cab4dcbe--- a/agent/skill_commands.py+++ b/agent/skill_commands.py@@@ -355,12 -353,12 +355,12 @@@ def skill_command_collision_note(name:def _scan_skill_md(skill_md: Path, disabled: set, seen_names: set, commands: Dict[str, Dict[str, Any]]) -> None:"""Register one SKILL.md in *commands* (no-op when filtered or colliding)."""- from tools.skills_tool import _parse_frontmatter, skill_matches_platform, skill_matches_environment+ from tools.skills_tool import _parse_frontmatter, skill_matches_apps, skill_matches_platform, skill_matches_environmentif any(part in _SCAN_SKIP_PARTS for part in skill_md.parts):return- frontmatter, body = _parse_frontmatter(skill_md.read_text(encoding='utf-8'))+ frontmatter, body = _parse_frontmatter(skill_md.read_text(encoding='utf-8-sig'))# OS gate is hard; environment gate (kanban/docker/s6) is offer-time only.- if not skill_matches_platform(frontmatter) or not skill_matches_environment(frontmatter):+ if not skill_matches_platform(frontmatter) or not skill_matches_environment(frontmatter) or not skill_matches_apps(frontmatter):returnname = frontmatter.get('name', skill_md.parent.name)if name in seen_names or name in disabled:diff --cc hermes_cli/main_desktop.pyindex 8f18c917fd8,77eae183b7c..46d6e2daa20--- a/hermes_cli/main_desktop.py+++ b/hermes_cli/main_desktop.py@@@ -19,8 -20,12 +20,9 @@@ import tempfilimport time as _time_modfrom pathlib import Path-from typing import Optional+from typing import Callable, Optionalfrom hermes_cli.desktop_console import desktop_console_output, desktop_launch_notice+ from hermes_platform.host import facts-from hermes_cli.main_tui_launch import _npm_lifecycle_env-from hermes_cli.main_web_build import (- _hash_source_tree, _nixos_build_env, _stamp_is_current, _write_build_stamp)# Log-record parity with the origin module.logger = logging.getLogger("hermes_cli.main")diff --cc hermes_cli/plugins_cmd.pyindex 0bcd63f4381,c4fdcaee76c..35ac45e1c5c--- a/hermes_cli/plugins_cmd.py+++ b/hermes_cli/plugins_cmd.py@@@ -762,6 -698,47 +762,26 @@@ def _ensure_tree_readable(root: Path, p) from exc+ def _refuse_unavailable_portable_plugin(plugin_name: str, tree: Path) -> None:+ if not (tree / "plugin.json").is_file():+ return+ from hermes_cli.agent_plugins import load_agent_plugin+ from hermes_platform.resolver.availability import availability++ try:+ package = load_agent_plugin(tree, tree.parent / ".hermes-install-data")+ except ValueError as exc:+ raise PluginOperationError(f"Plugin '{plugin_name}' is unavailable: {exc}.") from exc+ for server_name, server_decl in package.server_declarations.items():+ result = availability(server_decl.declaration)+ if result.offerable:+ continue+ found = f", found version {result.version}" if result.version else ""+ raise PluginOperationError(+ f"Plugin '{plugin_name}' server '{server_name}' is unavailable: {result.state}{found}."+ )++-def _swap_in_plugin(tmp_target: Path, target: Path, backup: Path, old_metadata: dict, new_metadata: dict) -> None:- """Move the validated clone into place and persist metadata; on any failure restore the- previous tree (if one was replaced) and the previous metadata sidecar, then re-raise."""- replaced_existing = target.exists()- if replaced_existing:- os.replace(target, backup)- try:- os.replace(tmp_target, target)- _write_install_metadata(new_metadata)- except Exception:- if target.exists():- rmtree_readonly(target)- if replaced_existing and backup.exists():- os.replace(backup, target)- if old_metadata:- _write_install_metadata(old_metadata)- else:- _install_metadata_path().unlink(missing_ok=True)- raise--def _install_plugin_core(identifier: str,*,@@@ -822,13 -799,9 +842,14 @@@# Scan BEFORE anything is moved into place; raises PluginScanBlocked when blocked._scan_plugin_tree(tmp_target, identifier, force=force, scan_decision_cb=scan_decision_cb,reviewed_pin=at_reviewed_pin)- if python_deps:- _refuse_conflicting_python_deps(tmp_target, plugin_name)+ if not python_deps:+ from pm.workspace import enabled_plugin_dirs++ if target.resolve() in enabled_plugin_dirs(installing=target):+ raise PluginOperationError(+ "--no-deps cannot replace an active plugin. Retry without --no-deps; "+ "PM must prepare its dependencies before publication.")+ _refuse_unavailable_portable_plugin(plugin_name, tmp_target)if before_swap is not None:before_swap(manifest, tmp_target)diff --cc hermes_cli/plugins_cmd_catalog.pyindex 3b4b65682de,f14c5363b71..fa88d55c673--- a/hermes_cli/plugins_cmd_catalog.py+++ b/hermes_cli/plugins_cmd_catalog.py@@@ -212,9 -196,10 +234,10 @@@ def install_catalog_entry(entry: Plugin"""``_install_plugin_core`` at the catalog pin (an explicit *ref* wins) + provenance recorded on theinstall-metadata record at the sha ACTUALLY checked out (a ``--ref`` install is not at the reviewedpin, so ``update_available`` must say so). Returns the core's ``(target, manifest, installed_name)``."""- from hermes_cli.plugins_cmd import _install_plugin_core, pinned_revision+ from hermes_cli.plugins_cmd import _install_plugin_coreif not allow_removed:raise_if_removed(entry.name, entry.repo)+ _refuse_unsupported_catalog_platform(entry)target, manifest, installed_name = _install_plugin_core(entry.install_identifier, force=force, ref=ref or entry.sha, scan_decision_cb=scan_decision_cb,reviewed_pin=entry.sha, python_deps=python_deps, allow_removed=allow_removed, before_swap=before_swap,diff --cc pyproject.tomlindex 52e95e8b644,55caa670b05..60ff138ef15--- a/pyproject.toml+++ b/pyproject.toml@@@ -1,18 -1,18 +1,20 @@@++++++[project]name = "hermes-agent"-version = "0.21.4"+version = "1.0.0"description = "The self-improving AI agent — creates skills from experience, improves them during use, and runs anywhere"readme = "README.md"-# Upper bound is load-bearing, not cosmetic. uv resolves the project's-# Python from `requires-python`, and an inherited `UV_PYTHON` env var (or a-# fresh distro whose newest interpreter uv auto-picks) will otherwise select-# 3.14, where Rust-backed transitives (e.g. pydantic-core) have no cp314-# wheel yet and fall back to a maturin source build that fails. Capping at-# <3.14 makes uv refuse 3.14 with a clear error instead of attempting that-# build. Raise the ceiling once our Rust transitives ship cp314 wheels.-requires-python = ">=3.11,<3.14"+# 3.14 is the newest python we know we have wheels for.+# we *only* support 3.14, BUT we need to allow old hermes installs on <3.14+# to get thru their update step on old python.+# Shortly after they do, we update to our latest python.+# See tests/compat/README.md for the updater contract this keeps.+requires-python = ">=3.11,<3.15"authors = [{ name = "Nous Research" }]license = "MIT"license-files = ["LICENSE"]@@@ -766,38 -606,10 +768,40 @@@ youtube-transcript-api = fals# and the drift broke installed wheels. Do not add the list back.[tool.setuptools.packages.find]-include = ["agent", "agent.*", "tools", "tools.*", "hermes_cli", "hermes_cli.*", "gateway", "gateway.*", "tui_gateway", "tui_gateway.*", "cron", "cron.*", "acp_adapter", "plugins", "plugins.*", "providers", "providers.*", "hermes_platform", "hermes_platform.*"]+include = [+ "agent",+ "agent.*",+ "tools",+ "tools.*",+ "hermes_cli",+ "hermes_cli.*",+ "hermes_wisdom",+ "hermes_wisdom.*",+ "gateway",+ "gateway.*",+ "tui_gateway",+ "tui_gateway.*",+ "cron",+ "cron.*",+ "acp_adapter",+ "plugins",+ "plugins.*",+ "providers",+ "providers.*",++ "hermes_platform",++ "hermes_platform.*",+ "pm",+ "pm.*",+ "tools",+ "tools.*",+][tool.setuptools.package-data]-hermes_cli = ["observability/schemas/*.json", "data/*.json", "local_runtime/*.json"]+hermes_cli = [+ "observability/schemas/*.json",+ "data/*.json",+ "local_runtime/*.json",+]# gateway/assets/ ships status_phrases.yaml and the Telegram BotFather# screenshot. Without this, sealed venvs (uv2nix) silently lose both —# status phrases fall back to the tiny hardcoded set and the Telegramdiff --cc tests/fixtures/resolution_allowlist.jsonindex 00000000000,250e66da05f..8d0a7c14bffmode 000000,100644..100644--- a/tests/fixtures/resolution_allowlist.json+++ b/tests/fixtures/resolution_allowlist.json@@@ -1,0 -1,707 +1,652 @@@+ [++ {++ "path": "agent/anthropic_adapter.py",++ "symbol": "<module>",++ "kind": "known_path_table"++ },+ {+ "path": "agent/anthropic_adapter.py",+ "symbol": "_claude_code_candidates",+ "kind": "bare_which"+ },+ {+ "path": "agent/anthropic_credentials.py",+ "symbol": "run_oauth_setup_token",+ "kind": "bare_which"+ },+ {+ "path": "agent/lsp/cli.py",+ "symbol": "_backend_warnings",+ "kind": "bare_which"+ },+ {+ "path": "agent/lsp/install.py",+ "symbol": "_do_install",+ "kind": "bare_which"+ },+ {+ "path": "agent/lsp/install.py",+ "symbol": "_existing_binary",+ "kind": "bare_which"+ },+ {+ "path": "agent/lsp/install.py",+ "symbol": "_install_go",+ "kind": "bare_which"+ },+ {+ "path": "agent/lsp/servers.py",+ "symbol": "_which",+ "kind": "bare_which"+ },+ {+ "path": "agent/proxy_sources/iron_proxy.py",+ "symbol": "_verify_checksums_signature",+ "kind": "bare_which"+ },+ {+ "path": "agent/proxy_sources/iron_proxy.py",+ "symbol": "ensure_ca_cert",+ "kind": "bare_which"+ },+ {+ "path": "agent/proxy_sources/iron_proxy.py",+ "symbol": "find_iron_proxy",+ "kind": "bare_which"+ },+ {+ "path": "agent/secret_sources/bitwarden.py",+ "symbol": "find_bws",+ "kind": "bare_which"+ },+ {+ "path": "agent/secret_sources/onepassword.py",+ "symbol": "find_op",+ "kind": "bare_which"+ },+ {+ "path": "agent/vault_backends/base.py",+ "symbol": "is_installed",+ "kind": "bare_which"+ },+ {+ "path": "agent/vault_backends/bitwarden.py",+ "symbol": "BitwardenLoginBackend._bw",+ "kind": "bare_which"+ },++ {++ "path": "apps/desktop/electron/fixtures/source-backend.py",++ "symbol": "main",++ "kind": "bare_which"++ },+ {+ "path": "cron/scheduler_delivery.py",+ "symbol": "_deliver_to_bot_chat",+ "kind": "bare_which"+ },+ {+ "path": "cron/scheduler_script.py",+ "symbol": "_script_argv",+ "kind": "bare_which"+ },+ {+ "path": "gateway/platforms/base.py",+ "symbol": "transcode_to_ogg_opus",+ "kind": "bare_which"+ },+ {+ "path": "gateway/platforms/signal.py",+ "symbol": "_remux_aac_to_m4a",+ "kind": "bare_which"+ },+ {+ "path": "gateway/platforms/whatsapp_cloud.py",+ "symbol": "<module>",+ "kind": "bare_which"+ },+ {+ "path": "gateway/run.py",+ "symbol": "_resolve_hermes_bin",+ "kind": "bare_which"+ },+ {+ "path": "gateway/run_shutdown.py",+ "symbol": "GatewayShutdownMixin._launch_detached_restart_command",+ "kind": "bare_which"+ },+ {+ "path": "gateway/shutdown_forensics.py",+ "symbol": "spawn_async_diagnostic",+ "kind": "bare_which"+ },+ {+ "path": "gateway/slash_commands.py",+ "symbol": "_spawn_detached_update",+ "kind": "bare_which"+ },- {- "path": "hermes_cli/_early_recovery.py",- "symbol": "_find_uv_binary",- "kind": "bare_which"- },+ {+ "path": "hermes_cli/_subprocess_compat.py",+ "symbol": "resolve_node_command",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/auth.py",+ "symbol": "_external_process_spec",+ "kind": "bare_which"+ },++ {++ "path": "hermes_cli/boot_bootstrap.py",++ "symbol": "_git_binary",++ "kind": "bare_which"++ },+ {+ "path": "hermes_cli/cli_session_mixin.py",+ "symbol": "CLISessionMixin._clear_terminal_on_exit",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/commands_completion.py",+ "symbol": "SlashCommandCompleter._get_project_files",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/config.py",+ "symbol": "edit_config",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/dep_ensure.py",- "symbol": "<module>",- "kind": "bare_which"- },- {- "path": "hermes_cli/dep_ensure.py",- "symbol": "_has_system_browser",- "kind": "bare_which"- },- {- "path": "hermes_cli/dep_ensure.py",- "symbol": "ensure_dependency",- "kind": "bare_which"- },- {- "path": "hermes_cli/doctor_live.py",- "symbol": "_browser_available",++ "path": "hermes_cli/doctor_platform.py",++ "symbol": "_check_command_installation",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/doctor_platform.py",+ "symbol": "_macos_desktop_dr",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/doctor_tools.py",+ "symbol": "_safe_which",+ "kind": "bare_which"+ },++ {++ "path": "hermes_cli/gateway.py",++ "symbol": "_append_node_dir_for_service",++ "kind": "bare_which"++ },+ {+ "path": "hermes_cli/gateway.py",+ "symbol": "_build_wsl_interop_paths",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/gateway.py",+ "symbol": "_ensure_linger_enabled",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/gateway.py",+ "symbol": "_get_parent_pid",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/gateway.py",+ "symbol": "_preflight_user_systemd",+ "kind": "bare_which"+ },- {- "path": "hermes_cli/gateway_setup_wizard.py",- "symbol": "_setup_signal",- "kind": "bare_which"- },+ {+ "path": "hermes_cli/gateway.py",+ "symbol": "_windows_process_listing",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/gateway.py",+ "symbol": "_windows_scheduled_task_state",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/gateway.py",+ "symbol": "get_systemd_linger_status",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/gateway.py",+ "symbol": "supports_systemd_services",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/gateway_service_unit.py",- "symbol": "_append_node_dir_for_service",++ "path": "hermes_cli/gateway_setup_wizard.py",++ "symbol": "_setup_signal",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/gateway_windows.py",+ "symbol": "_exec_schtasks",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/git_credentials.py",+ "symbol": "_credential_fill",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/git_credentials.py",+ "symbol": "_gh_cli_token",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/kanban_db_dispatch.py",+ "symbol": "_resolve_hermes_argv",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/linux_desktop_entry.py",+ "symbol": "_refresh_hicolor_cache",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/linux_desktop_entry.py",+ "symbol": "refresh_desktop_databases",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/local_runtime/hardware.py",+ "symbol": "_nvidia_smi_path",+ "kind": "bare_which"+ },++ {++ "path": "hermes_cli/macos_signing.py",++ "symbol": "sign_managed_python",++ "kind": "bare_which"++ },+ {+ "path": "hermes_cli/main.py",+ "symbol": "_exec_in_container",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/main_desktop.py",+ "symbol": "_desktop_linux_sandbox_fixup",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/main_desktop.py",+ "symbol": "_desktop_linux_userns_sandbox_available",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/main_desktop.py",+ "symbol": "_desktop_macos_has_valid_real_signature",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/main_desktop.py",+ "symbol": "_desktop_macos_local_codesign",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/main_desktop.py",+ "symbol": "_desktop_macos_relaunchable_fixup",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/main_desktop.py",+ "symbol": "_desktop_macos_setup_tcc_identity",+ "kind": "bare_which"+ },++ {++ "path": "hermes_cli/main_desktop.py",++ "symbol": "cmd_gui",++ "kind": "bare_which"++ },+ {+ "path": "hermes_cli/main_install_repair.py",+ "symbol": "_resolve_node_runtime_npm",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/main_tui_launch.py",+ "symbol": "_apply_tui_python_env",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/main_tui_launch.py",- "symbol": "_ensure_tui_node",++ "symbol": "_make_tui_argv",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/main_tui_launch.py",+ "symbol": "_restore_tui_workspace",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/main_web_build.py",- "symbol": "_nixos_build_env",- "kind": "bare_which"- },- {- "path": "hermes_cli/managed_uv.py",- "symbol": "_macos_sign_managed_python",++ "path": "hermes_cli/main_tui_launch.py",++ "symbol": "_tui_node_bin",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/mcp_app_detection.py",+ "symbol": "_Scan.path_candidates",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/mcp_catalog.py",+ "symbol": "_do_git_install",+ "kind": "bare_which"+ },- {- "path": "hermes_cli/nous_subscription.py",- "symbol": "_has_agent_browser",- "kind": "bare_which"- },+ {+ "path": "hermes_cli/plugins_cmd.py",+ "symbol": "_resolve_git_executable",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/profiles.py",+ "symbol": "create_wrapper_script",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/relaunch.py",+ "symbol": "resolve_hermes_bin",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/session_lost_and_found.py",+ "symbol": "find_sqlite3_cli",+ "kind": "bare_which"+ },++ {++ "path": "hermes_cli/setup.py",++ "symbol": "_check_espeak_ng",++ "kind": "bare_which"++ },+ {+ "path": "hermes_cli/setup_terminal.py",+ "symbol": "_setup_backend_singularity",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/setup_tts.py",+ "symbol": "_install_neutts_deps",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/stdio.py",- "symbol": "_default_windows_editor",- "kind": "bare_which"- },- {- "path": "hermes_cli/tools_config_cua.py",- "symbol": "_repair_cua_driver_autostart_windows",++ "path": "hermes_cli/source_build.py",++ "symbol": "build_update_products",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/tools_config_cua.py",- "symbol": "install_cua_driver",++ "path": "hermes_cli/source_build.py",++ "symbol": "run_source_script",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/tools_config_post_setup.py",- "symbol": "_ensure_browser_use_cli",++ "path": "hermes_cli/source_build.py",++ "symbol": "source_product_current",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/update_abort_recovery.py",- "symbol": "_run_fresh_recovery_process",++ "path": "hermes_cli/stdio.py",++ "symbol": "_default_windows_editor",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/update_abort_recovery.py",- "symbol": "_serve_unit_recovery_available",++ "path": "hermes_cli/tools_config_cua.py",++ "symbol": "_repair_cua_driver_autostart_windows",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/update_cmd_deps.py",- "symbol": "_ensure_uv_for_termux",++ "path": "hermes_cli/tools_config_post_setup.py",++ "symbol": "_post_setup_agent_browser",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/update_cmd_deps.py",- "symbol": "_update_node_dependencies",++ "path": "hermes_cli/update_abort_recovery.py",++ "symbol": "_run_fresh_recovery_process",+ "kind": "bare_which"+ },+ {- "path": "hermes_cli/update_cmd_maint.py",- "symbol": "_refresh_cua_driver_after_update",++ "path": "hermes_cli/update_abort_recovery.py",++ "symbol": "_serve_unit_recovery_available",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/update_restart_recovery.py",+ "symbol": "_systemctl_scopes",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/update_restart_recovery.py",+ "symbol": "_systemd_verified_active",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/web_git.py",+ "symbol": "_gh",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/web_routers/git.py",+ "symbol": "_probe_gh_auth",+ "kind": "bare_which"+ },+ {+ "path": "hermes_cli/web_routers/tools.py",+ "symbol": "_probe_singularity_backend",+ "kind": "bare_which"+ },+ {+ "path": "hermes_constants.py",- "symbol": "find_node_executable_on_path",++ "symbol": "find_node_executable",+ "kind": "bare_which"+ },+ {- "path": "tools/bot_relay.py",- "symbol": "_hermes_cli",++ "path": "pm/shell.py",++ "symbol": "bash",+ "kind": "bare_which"+ },+ {- "path": "tools/browser_lightpanda.py",- "symbol": "find_lightpanda_binary",++ "path": "pm/workspace.py",++ "symbol": "install_node_sidecar",+ "kind": "bare_which"+ },+ {- "path": "tools/browser_tool_install.py",- "symbol": "_agent_browser_candidates",++ "path": "tools/bot_relay.py",++ "symbol": "_hermes_cli",+ "kind": "bare_which"+ },+ {- "path": "tools/browser_tool_install.py",- "symbol": "_chromium_installed",++ "path": "tools/browser_lightpanda.py",++ "symbol": "find_lightpanda_binary",+ "kind": "bare_which"+ },+ {+ "path": "tools/browser_tool_install.py",- "symbol": "_find_agent_browser",++ "symbol": "_chromium_installed",+ "kind": "bare_which"+ },+ {+ "path": "tools/browser_tool_install.py",- "symbol": "_resolve_npx_bin",- "kind": "bare_which"- },- {- "path": "tools/browser_use_cli.py",- "symbol": "_find_cli",++ "symbol": "_find_agent_browser",+ "kind": "bare_which"+ },+ {- "path": "tools/browser_use_cli.py",- "symbol": "install_cli",++ "path": "tools/checkpoint_manager.py",++ "symbol": "_init_store",+ "kind": "bare_which"+ },+ {+ "path": "tools/checkpoint_manager.py",- "symbol": "CheckpointManager.ensure_checkpoint",++ "symbol": "_run_git",+ "kind": "bare_which"+ },+ {+ "path": "tools/checkpoint_manager_profile_rename.py",+ "symbol": "migrate_profile_checkpoint_projects",+ "kind": "bare_which"+ },+ {+ "path": "tools/computer_use/cua_backend_daemon.py",+ "symbol": "_validate_cua_driver_app_signature",+ "kind": "bare_which"+ },+ {+ "path": "tools/computer_use/cua_backend_driver.py",+ "symbol": "resolve_cua_driver_cmd",+ "kind": "bare_which"+ },+ {+ "path": "tools/delegate_tool_config.py",+ "symbol": "_require_pinned_command",+ "kind": "bare_which"+ },+ {+ "path": "tools/env_probe.py",+ "symbol": "_build_probe_line",+ "kind": "bare_which"+ },+ {+ "path": "tools/env_probe.py",+ "symbol": "_py_out",+ "kind": "bare_which"+ },+ {+ "path": "tools/environments/docker.py",+ "symbol": "find_docker",+ "kind": "bare_which"+ },- {- "path": "tools/environments/local.py",- "symbol": "_find_bash",- "kind": "bare_which"- },+ {+ "path": "tools/environments/local.py",+ "symbol": "_resolve_hermes_bin_dir",+ "kind": "bare_which"+ },- {- "path": "tools/environments/local.py",- "symbol": "_windows_bash_candidates",- "kind": "bare_which"- },- {- "path": "tools/environments/local_gitbash_probe.py",- "symbol": "_mandatory_aslr_enabled",- "kind": "bare_which"- },+ {+ "path": "tools/environments/singularity.py",+ "symbol": "_find_singularity_executable",+ "kind": "bare_which"+ },+ {+ "path": "tools/environments/ssh.py",+ "symbol": "_ensure_ssh_available",+ "kind": "bare_which"+ },- {- "path": "tools/lazy_deps.py",- "symbol": "_uv_binary",- "kind": "bare_which"- },+ {+ "path": "tools/mcp_tool_config.py",+ "symbol": "_resolve_stdio_command",+ "kind": "bare_which"+ },+ {+ "path": "tools/process_registry.py",+ "symbol": "_build_systemd_scope_argv",+ "kind": "bare_which"+ },+ {+ "path": "tools/process_registry.py",+ "symbol": "_stop_systemd_unit",+ "kind": "bare_which"+ },+ {+ "path": "tools/process_registry.py",+ "symbol": "_systemd_run_user_scope_available",+ "kind": "bare_which"+ },+ {+ "path": "tools/read_extract.py",+ "symbol": "_pdf_page_texts",+ "kind": "bare_which"+ },+ {+ "path": "tools/skillevaluator_scan.py",+ "symbol": "run_tier1_scan",+ "kind": "bare_which"+ },+ {+ "path": "tools/skillevaluator_scan.py",+ "symbol": "scanner_available",+ "kind": "bare_which"+ },+ {+ "path": "tools/terminal_tool_backends.py",+ "symbol": "<module>",+ "kind": "bare_which"+ },+ {+ "path": "tools/tirith_security.py",- "symbol": "_find_local_tirith",- "kind": "bare_which"- },- {- "path": "tools/tirith_security.py",- "symbol": "_is_install_failed_on_disk",- "kind": "bare_which"- },- {- "path": "tools/tirith_security.py",- "symbol": "_resolve_locally",++ "symbol": "_local_tirith",+ "kind": "bare_which"+ },+ {+ "path": "tools/tirith_security.py",+ "symbol": "_verify_cosign",+ "kind": "bare_which"+ },+ {+ "path": "tools/tirith_security.py",- "symbol": "_verify_release_provenance",++ "symbol": "verify_release_provenance",+ "kind": "bare_which"+ },+ {+ "path": "tools/transcription_audio.py",+ "symbol": "_convert_caf_to_wav",+ "kind": "bare_which"+ },+ {+ "path": "tools/transcription_audio.py",+ "symbol": "_find_binary",+ "kind": "bare_which"+ },+ {+ "path": "tools/tts_tool_delivery.py",+ "symbol": "_concat_audio_files",+ "kind": "bare_which"+ },+ {+ "path": "tools/tts_tool_delivery.py",+ "symbol": "_finalize_wav_output",+ "kind": "bare_which"+ },+ {+ "path": "tools/tts_tool_delivery.py",+ "symbol": "_write_wav_bytes_as",+ "kind": "bare_which"+ },+ {+ "path": "tools/vision_tools_image_prep.py",+ "symbol": "_rasterize_svg_to_png",+ "kind": "bare_which"+ },+ {+ "path": "tools/voice_mode.py",+ "symbol": "_play_audio_file_impl",+ "kind": "bare_which"+ },+ {+ "path": "tools/voice_mode.py",+ "symbol": "_termux_api_app_installed",+ "kind": "bare_which"+ },+ {+ "path": "tools/voice_mode.py",+ "symbol": "_termux_microphone_command",+ "kind": "bare_which"+ },+ {+ "path": "tools/voice_mode.py",+ "symbol": "_wsl_powershell_player_cmd",+ "kind": "bare_which"+ },+ {+ "path": "tools/voice_mode.py",+ "symbol": "_wsl_powershell_tts_available",+ "kind": "bare_which"+ },+ {+ "path": "tools/working_diff.py",- "symbol": "collect_working_diff",++ "symbol": "_run",+ "kind": "bare_which"+ },+ {+ "path": "tui_gateway/methods_prompt.py",+ "symbol": "_",+ "kind": "bare_which"- },- {- "path": "agent/anthropic_adapter.py",- "symbol": "<module>",- "kind": "known_path_table"- },- {- "path": "hermes_cli/_early_recovery.py",- "symbol": "_find_uv_binary",- "kind": "known_path_table"- },- {- "path": "tools/computer_use/cua_backend_driver.py",- "symbol": "_candidate_cua_driver_commands",- "kind": "known_path_table"+ }+ ]diff --cc tests/hermes_cli/test_plugin_validate.pyindex ffa71f7fb17,9bfac96ae1c..63fb8ba1fc0--- a/tests/hermes_cli/test_plugin_validate.py+++ b/tests/hermes_cli/test_plugin_validate.py@@@ -6,9 -6,10 +6,10 @@@ recording stub contextfrom __future__ import annotations+ import jsonfrom pathlib import Path-import yaml+import hermes_yaml as yamlfrom hermes_cli.plugin_validate import validate_plugin_dirfrom hermes_cli.plugin_validate_desktop import desktop_surface_hits, is_desktop_surfacediff --cc tests/test_hermes_constants.pyindex 8a3ddfe5c51,02daf50301e..8cb2806d49e--- a/tests/test_hermes_constants.py+++ b/tests/test_hermes_constants.py@@@ -8,6 -8,8 +8,7 @@@ from types import SimpleNamespacimport pytestimport hermes_constants+ from hermes_platform.host import runtime as host_runtime-from hermes_platform.host import facts as host_factsfrom hermes_constants import (VALID_REASONING_EFFORTS,agent_browser_runnable,diff --cc tests/test_managed_runtime_resolution.pyindex 2b88650a773,9440da66913..b1bff84c0a0--- a/tests/test_managed_runtime_resolution.py+++ b/tests/test_managed_runtime_resolution.py@@@ -50,6 -61,6 +61,7 @@@ _EXEMPT_DIRS ="evals","website","node_modules",++ ".cache",".git",".venv","venv",diff --cc tests/tools/test_clipboard.pyindex 95aa4834823,ad99c915aab..1fbff38c706--- a/tests/tools/test_clipboard.py+++ b/tests/tools/test_clipboard.py@@@ -182,9 -180,8 +180,8 @@@ class TestIsWsldef teardown_method(self):# Reset again after the test so we don't leak a cached value- # (True/False) into whichever test the xdist worker runs next.+ # (True/False) into whichever test runs next.- import hermes_constants- hermes_constants._wsl_detected = None+ host_runtime._wsl_detected = None_is_wsl.__globals__["_wsl_detected"] = None@pytest.mark.parametrize("content, expected", [@@@ -458,10 -454,9 +454,9 @@@ class TestConvertToPngclass TestHasClipboardImage:def setup_method(self):- import hermes_cli.clipboard as cb- cb._wsl_detected = None+ host_runtime._wsl_detected = None- @pytest.mark.macos_only+ @pytest.mark.platforms("macos")def test_macos_dispatch(self):"""Faking darwin selected the branch but left `_macos_has_image`'s realfacility (osascript) absent — only a real macOS host has it."""diff --cc tests/tools/test_voice_mode.pyindex a1be9b9b044,50c9e589183..47a78996aa4--- a/tests/tools/test_voice_mode.py+++ b/tests/tools/test_voice_mode.py@@@ -201,8 -186,7 +189,8 @@@ class TestDetectAudioEnvironmentassert result["warnings"] == []assert any("SSH" in n for n in result.get("notices", []))+ @pytest.mark.platforms("linux")- def test_wsl_without_pulse_blocks_voice(self, monkeypatch, tmp_path):+ def test_wsl_without_pulse_blocks_voice(self, monkeypatch):"""WSL without PULSE_SERVER should block voice mode."""monkeypatch.delenv("SSH_CLIENT", raising=False)monkeypatch.delenv("SSH_TTY", raising=False)diff --cc tests/tools/test_voice_wsl_pipewire.pyindex 9dd1e06fa78,cc832582afd..6e5850784ad--- a/tests/tools/test_voice_wsl_pipewire.py+++ b/tests/tools/test_voice_wsl_pipewire.py@@@ -4,25 -4,15 +4,19 @@@ detect_audio_environment() honors forwaPULSE_SERVER or PIPEWIRE_REMOTE or a reachable socket) in the SSH and containerblocks, but the WSL block previously checked only PULSE_SERVER — so a WSL userwith PipeWire forwarding (PIPEWIRE_REMOTE) was wrongly blocked from voice mode.- These tests mock /proc/version so they reproduce the WSL path on any host.-These tests patch the voice module's WSL predicate so they reproduce the WSL path on any host.++These tests patch the voice module's WSL predicate while retaining native Linux gating."""- import builtins- import io+ from unittest.mock import MagicMock++import pytest++pytestmark = pytest.mark.platforms("linux")- from unittest.mock import MagicMock+- WSL = "Linux version 5.15.0-microsoft-standard-WSL2 (oe-user@oe-host)"+ def _force_wsl(monkeypatch):+ import tools.voice_mode as voice_mode- def _force_wsl(monkeypatch, content=WSL):- real_open = builtins.open- def fake_open(file, *a, **k):- if str(file) == "/proc/version":- return io.StringIO(content)- return real_open(file, *a, **k)- monkeypatch.setattr(builtins, "open", fake_open)+ monkeypatch.setattr(voice_mode, "is_wsl", lambda: True)def _base(monkeypatch):diff --cc tools/computer_use/cua_backend.pyindex 07c59853132,33d0013ee13..34550f8a3a6--- a/tools/computer_use/cua_backend.py+++ b/tools/computer_use/cua_backend.py@@@ -13,11 -14,12 +13,12 @@@ import logginimport osimport subprocessimport sys-import threadingimport uuid-from typing import Any, Dict, List, Optional+from pathlib import PureWindowsPath+from typing import Any, Dict, List, Optional, Tuplefrom hermes_cli._subprocess_compat import windows_hide_flags+ from hermes_platform.host.runtime import is_wslfrom tools.computer_use.backend import ActionResult, ComputerUseBackendfrom tools.computer_use.cua_backend_capture import _CaptureMixinfrom tools.computer_use.cua_backend_daemon import _EmbeddedCuaDaemon@@@ -50,37 -52,19 +51,20 @@@ def _cua_no_overlay() -> boolExplicit ``True`` / ``False`` overrides auto-detection. See #28152, #47032."""val = _computer_use_cfg().get("no_overlay")- if val is not None:- return bool(val)- # Auto-detect: macOS overlay can peg a core indefinitely after a- # computer_use session (#47032). Prefer off until the driver teardown- # is solid; set computer_use.no_overlay: false to keep the cursor.- if sys.platform == "darwin":- return True- if sys.platform != "linux":- return False- if not os.environ.get("DISPLAY"):- return True- try:- with open("/proc/version", encoding="utf-8-sig") as f:- if "microsoft" in f.read().lower():- return True- except Exception:- pass- # Linux/X11: the cursor overlay is a fullscreen, always-on-top,- # all-workspaces X11 window (save-unders path). An unclean session end- # (agent interrupted mid-capture, stale target window) can leave it stuck- # above every app on every workspace, wedging desktop input until the app- # restarts — the same failure class as the HUD window on Mutter/X11- # (#83473). There is no compositor-owned surface to tear down with the- # client connection, so default the overlay off on X11 too; set- # computer_use.no_overlay: false to keep the cursor. Wayland keeps it: the- # compositor owns the overlay surface lifecycle there.- if os.environ.get("XDG_SESSION_TYPE") != "wayland" and not os.environ.get("WAYLAND_DISPLAY"):- return True- return False+ if val is not None or sys.platform != "linux":+ return bool(val) if val is not None else sys.platform == "darwin"+ wsl = is_wsl()+ return wsl or not os.environ.get("DISPLAY") or (+ # Linux/X11: the cursor overlay is a fullscreen, always-on-top, all-workspaces X11 window+ # (save-unders path). An unclean session end (agent interrupted mid-capture, stale target window)+ # can leave it stuck above every app on every workspace, wedging desktop input until the app+ # restarts — the same failure class as the HUD window on Mutter/X11 (#83473). There is no+ # compositor-owned surface to tear down with the client connection, so default the overlay off on+ # X11 too; set computer_use.no_overlay: false to keep the cursor. Wayland keeps it: the compositor+ # owns the overlay surface lifecycle there.+ os.environ.get("XDG_SESSION_TYPE") != "wayland" and not os.environ.get("WAYLAND_DISPLAY"))+def _cua_telemetry_disabled() -> bool:"""True unless ``computer_use.cua_telemetry`` opts in (unreadable config fails SAFE toward disabling)."""return not bool(_computer_use_cfg().get("cua_telemetry", False))