Files
hermes-agent/tests/hermes_cli/test_windows_native_docs.py
ethernet 92686159d1 fix(pm): integrate audited runtime and lifecycle repairs
Prepare dependency generations before selecting them. Keep shipped tool
bytes separate from writable additions, and store facts beside their entries.
Validate proposed plugin sets before config publication. Restore the previous
config if the facts write fails.

Consolidate duplicate updater, backup, setup, and voice helpers. Repair
launcher selection, dependency consumers, download ownership, update feeds,
and native Windows process and file handling.

Verification: 206 changed/prior-failing Python files reported 4630 passed,
one failed, and 330 skipped. Fix the remaining Hindsight fixture boundary.
The final targeted rerun reported 234 passed and two skipped. The store
review regression batch reported 83 passed and one skipped. Desktop
TypeScript checks, 56 selected Electron tests, 24 release tests, and the
removed-import/compatibility guards passed.

This is an integration checkpoint, not full audit acceptance. The complete
Python suite has not run on this fixed tree. Crash-atomic plugin publication,
generation cleanup, receipt correlation, and packaged lifecycle acceptance
remain open in docs/pm-audit-status.md.
2026-09-05 22:36:48 -04:00

16 lines
663 B
Python

from pathlib import Path
def test_windows_native_install_path_docs_match_installer() -> None:
doc = Path("website/docs/user-guide/windows-native.md").read_text()
# The launchers live in the managed binary dir OUTSIDE the git checkout
# (HERMES_HOME\bin, next to the managed uv) — NOT the whole venv\Scripts
# (which would shadow the user's python, #83797) and NOT a dir inside
# the checkout (which `hermes update`'s autostash swept off disk).
assert "%LOCALAPPDATA%\\hermes\\bin" in doc
assert (
"Get-Command hermes # should print "
"C:\\Users\\<you>\\AppData\\Local\\hermes\\bin\\hermes.exe"
) in doc