hermes-agent/apps/desktop/electron
ethernet ec2cb3ab47 test(desktop): extract Windows hermes-resolution helpers for real unit tests
windows-hermes-resolution.test.ts regexed main.ts source text to check
three Windows resolution bugs that caused desktop reinstall loops:
1. findOnPath()'s PATHEXT extension order (must try real extensions before
   the empty one, or an extensionless Git-Bash hermes shim shadows
   hermes.cmd/.exe).
2. handOffWindowsBootstrapRecovery()'s --update vs --repair choice (must
   gate on any real-install signal, not just the hermes.exe shim).
3. unwrapWindowsVenvHermesCommand()'s probe-before-trust behavior (must
   canImportHermesCli() before returning a venv python, or a broken venv
   gets re-selected forever).

Extract all three into pure, dependency-injected functions in
windows-hermes-path.ts (no Electron import): buildPathExtCandidates(),
chooseUpdaterArgs(), resolveVenvHermesCommand(). main.ts's
findOnPath/handOffWindowsBootstrapRecovery/unwrapWindowsVenvHermesCommand
now call these with their existing helpers (fileExists, canImportHermesCli,
getVenvPython, etc.) passed through as deps.

windows-hermes-path.test.ts replaces windows-hermes-resolution.test.ts,
importing the pure functions directly and asserting real return values
with fake/injected dependencies (fake venvs, fake probes) -- no readFileSync,
no regex-on-source.
2026-07-13 17:22:17 -04:00
..
backend-child.ts test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests 2026-07-13 17:22:17 -04:00
backend-command.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
backend-command.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-env.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-env.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-probes.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
backend-probes.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-ready.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-ready.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
bootstrap-platform.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
bootstrap-platform.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
bootstrap-runner.test.ts fix(desktop): prevent bootstrap stale commit repin on existing checkouts 2026-07-10 02:29:58 -05:00
bootstrap-runner.ts test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests 2026-07-13 17:22:17 -04:00
connection-config.test.ts feat(desktop): Hermes Cloud connection mode — one sign-in, agent discovery, silent connect 2026-07-10 01:37:43 -05:00
connection-config.ts feat(desktop): Hermes Cloud connection mode — one sign-in, agent discovery, silent connect 2026-07-10 01:37:43 -05:00
dashboard-token.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
dashboard-token.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
desktop-uninstall.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
desktop-uninstall.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
embed-referer.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
entitlements.mac.inherit.plist fix(desktop): inherit microphone entitlement for macOS helpers 2026-06-03 07:32:00 +07:00
entitlements.mac.plist Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
fs-read-dir.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
fs-read-dir.ts feat(desktop): bridge WSL paths for a Windows host + WSL backend 2026-07-12 05:32:54 -04:00
gateway-ws-probe.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
gateway-ws-probe.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
git-repo-scan.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
git-review-ops.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
git-review-ops.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
git-root.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
git-root.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
git-worktree-ops.test.ts feat(desktop): base-branch picker for new worktree dialog 2026-07-13 14:53:34 -04:00
git-worktree-ops.ts feat(desktop): auto-fetch remote base branch before worktree add 2026-07-13 14:53:34 -04:00
hardening.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
hardening.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
link-title-window.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
link-title-window.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
main.ts test(desktop): extract Windows hermes-resolution helpers for real unit tests 2026-07-13 17:22:17 -04:00
oauth-net-request.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
oauth-net-request.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
oauth-session-request.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
preload.ts feat(desktop): base-branch picker for new worktree dialog 2026-07-13 14:53:34 -04:00
profile-delete-respawn.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
session-windows.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
session-windows.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
titlebar-overlay-width.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
titlebar-overlay-width.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-count.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
update-count.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-marker.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-marker.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-rebuild.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
update-rebuild.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
update-relaunch.test.ts feat(dev): add isolated sandbox script for local dev 2026-07-10 18:51:49 -04:00
update-relaunch.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-remote.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-remote.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
vscode-marketplace.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
vscode-marketplace.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
window-state.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
window-state.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
windows-child-options.test.ts test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests 2026-07-13 17:22:17 -04:00
windows-child-options.ts test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests 2026-07-13 17:22:17 -04:00
windows-child-process.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
windows-hermes-path.test.ts test(desktop): extract Windows hermes-resolution helpers for real unit tests 2026-07-13 17:22:17 -04:00
windows-hermes-path.ts test(desktop): extract Windows hermes-resolution helpers for real unit tests 2026-07-13 17:22:17 -04:00
windows-user-env.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
windows-user-env.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
workspace-cwd.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
workspace-cwd.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
wsl-clipboard-image.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
wsl-clipboard-image.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
wsl-path-bridge.test.ts feat(desktop): bridge WSL paths for a Windows host + WSL backend 2026-07-12 05:32:54 -04:00
wsl-path-bridge.ts feat(desktop): bridge WSL paths for a Windows host + WSL backend 2026-07-12 05:32:54 -04:00
zoom.test.ts fix(desktop): re-apply UI zoom on show/restore, scoped to chat windows 2026-07-10 02:13:10 -05:00
zoom.ts fix(desktop): re-apply UI zoom on show/restore, scoped to chat windows 2026-07-10 02:13:10 -05:00