Include git SHA in /version output via banner label helper.

Reuses format_banner_version_label() so CLI, TUI, gateway, and desktop show upstream/local commit when available.
This commit is contained in:
Brooklyn Nicholson
2026-06-05 18:05:05 -07:00
committed by Teknium
parent 9c1bb8d2c7
commit 30340eae2f
3 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -2,11 +2,11 @@
import asyncio
from hermes_cli import __release_date__, __version__
from hermes_cli.banner import format_banner_version_label
def test_gateway_version_command_returns_release_line():
from gateway.run import GatewayRunner
result = asyncio.run(GatewayRunner._handle_version_command(None, None)) # type: ignore[arg-type]
assert result == f"Hermes Agent v{__version__} ({__release_date__})"
assert result == format_banner_version_label()