Skip to content

The agent that grows with you

fix(compat): repoint 5 in-tree imports 2 post-refactor modules

ethernetd08b7b33ac00
diff --git a/hermes_cli/update_cmd.py b/hermes_cli/update_cmd.py
index 579cc8e2697..567a1d2cbfb 100644
--- a/hermes_cli/update_cmd.py
+++ b/hermes_cli/update_cmd.py
@@ -4367,7 +4367,7 @@ def _update_node_dependencies() -> list[str]:
# cache (~0.4s once warm) — print first so that doesn't look like a hang.
print("→ Warming npx cache for agent-browser...")
try:
- from tools.browser_tool import warm_agent_browser_npx_cache
+ from tools.browser_tool_install import warm_agent_browser_npx_cache
warm_agent_browser_npx_cache()
except Exception:
pass
diff --git a/tests/hermes_cli/test_doctor.py b/tests/hermes_cli/test_doctor.py
index e501d29db82..f241b182ce0 100644
--- a/tests/hermes_cli/test_doctor.py
+++ b/tests/hermes_cli/test_doctor.py
@@ -348,9 +348,9 @@ class TestDoctorMemoryProviderSection:
# when gh resolves to a Store/MSIX reparse-point shim. The gh-
# specific doctor behaviors have their own dedicated tests below,
# which mock gh explicitly.
- real_which = doctor_mod.shutil.which
+ real_which = shutil.which
monkeypatch.setattr(
- doctor_mod.shutil,
+ shutil,
"which",
lambda cmd: None if cmd == "gh" else real_which(cmd),
)
diff --git a/tests/hermes_cli/test_web_server.py b/tests/hermes_cli/test_web_server.py
index 18fd456f8f0..39eac3af164 100644
--- a/tests/hermes_cli/test_web_server.py
+++ b/tests/hermes_cli/test_web_server.py
@@ -1276,7 +1276,7 @@ class TestWebServerEndpoints:
import hermes_cli.web_server as web_server
monkeypatch.setattr(web_server, "_dashboard_local_update_managed_externally", lambda: False)
- monkeypatch.setattr(web_server, "detect_install_method", lambda _root: "unknown")
+ monkeypatch.setattr(_cfg_mod, "detect_install_method", lambda _root: "unknown")
check = self.client.get("/api/hermes/update/check")
assert check.status_code == 200
diff --git a/tools/voice_mode.py b/tools/voice_mode.py
index 62d2fa4aa9a..a17f2b7f1cc 100644
--- a/tools/voice_mode.py
+++ b/tools/voice_mode.py
@@ -1166,7 +1166,7 @@ def transcribe_recording(wav_path: str, model: Optional[str] = None) -> Dict[str
Returns:
Dict with ``success``, ``transcript``, and optionally ``error``.
"""
- from tools.transcription_tools import MAX_FILE_SIZE, transcribe_audio
+ from tools.transcription_common import MAX_FILE_SIZE, transcribe_audio
result = transcribe_audio(wav_path, model=model, source="voice_mode")