fix: fast-version follow-ups — PROJECT_ROOT NameError + renamed output label

- _print_fast_version_info referenced the PROJECT_ROOT module constant,
  which is defined AFTER the ultrafast exit point. On current main this
  is a LIVE latent bug: the Termux fast path NameErrors on --version
  (eb4040242 changed the print to use PROJECT_ROOT without noticing the
  constant doesn't exist yet on that path). Compute the root locally.
- PR tests asserted the old 'Project:' label; main renamed it to
  'Install directory:' (eb4040242). Expectations updated.
This commit is contained in:
kshitijk4poor 2026-07-10 18:44:38 +05:30 committed by kshitij
parent 3d20f106ca
commit d3832a24bc
1 changed files with 4 additions and 1 deletions

View File

@ -457,7 +457,10 @@ def _print_fast_version_info() -> None:
from hermes_cli import __release_date__, __version__
print(f"Hermes Agent v{__version__} ({__release_date__})")
print(f"Install directory: {PROJECT_ROOT}")
# PROJECT_ROOT (module constant) is defined AFTER the ultrafast exit —
# referencing it here NameErrors (live bug on main since eb4040242 broke
# the Termux fast path). Compute it locally.
print(f"Install directory: {_project_root_str_fast()}")
print(f"Python: {sys.version.split()[0]}")