refactor: extract update pipeline to hermes_cli/update_cmd.py (mechanical move)

This commit is contained in:
teknium1 2026-07-29 09:46:18 -07:00 committed by Teknium
parent bc747001ee
commit 927463efcc
3 changed files with 4946 additions and 4907 deletions

File diff suppressed because it is too large Load Diff

4861
hermes_cli/update_cmd.py Normal file

File diff suppressed because it is too large Load Diff

View File

@ -18,6 +18,7 @@ import re
from pathlib import Path
import hermes_cli.main as main_mod
import hermes_cli.update_cmd as update_mod
_COUNT_RE = re.compile(r"user-modified \(kept\)")
@ -25,7 +26,13 @@ _HINT_RE = re.compile(r"hermes skills list-modified")
def _source_lines() -> list[str]:
return Path(main_mod.__file__).read_text(encoding="utf-8").splitlines()
# The update pipeline was extracted to hermes_cli/update_cmd.py
# (main.py decomposition); scan both homes of the notice.
return [
line
for mod in (main_mod, update_mod)
for line in Path(mod.__file__).read_text(encoding="utf-8").splitlines()
]
def test_every_user_modified_notice_points_at_list_modified():