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

This commit is contained in:
teknium1 authored and Teknium committed 2026-07-29 10:59:54 -07:00
1 parent bc747001ee
commit 927463efcc
3 files changed
+4946 -4907

No files matched your search

+77 -4906
View File
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -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():