refactor(hermes_cli/main): extract TUI launcher cluster to main_tui_launch.py

This commit is contained in:
Teknium
2026-09-02 15:29:56 -07:00
parent 88b74d6ef0
commit b131e0d87f
3 changed files with 1269 additions and 1235 deletions
+30 -1233
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+5 -2
View File
@@ -85,13 +85,16 @@ _ALLOWED: dict[tuple[str, str], str] = {
"Fallback rung of _append_node_dir_for_service(), after the managed "
"dirs from iter_hermes_node_dirs() are already appended."
),
("hermes_cli/main.py", "node"): (
("hermes_cli/main_tui_launch.py", "node"): (
"_ensure_tui_node()'s idempotence gate: the question really is 'is "
"node already discoverable on PATH', before bootstrapping one."
),
("hermes_cli/main.py", "npm"): (
("hermes_cli/main_tui_launch.py", "npm"): (
"Same _ensure_tui_node() gate as node."
),
("hermes_cli/main.py", "npm"): (
"_resolve_node_runtime_npm()'s WSL re-scan: PATH minus /mnt/* IS the question."
),
("tools/browser_tool.py", "npx"): (
"agent-browser runs via `npx`, resolved against the extended browser "
"PATH that _merge_browser_path() already seeds with the managed dirs."