refactor(hermes_cli): layout compaction of managed_uv/mem_trim/migrate/managed_scope (AST-neutral) + small collapses
This commit is contained in:
+3
-10
@@ -30,12 +30,7 @@ def _fail(message: str) -> int:
|
||||
def cmd_migrate_xai(args: Any) -> int:
|
||||
"""Run xAI May-15 model migration in dry-run or apply mode."""
|
||||
from hermes_cli.xai_retirement import (
|
||||
MIGRATION_GUIDE_URL,
|
||||
RETIREMENT_DATE,
|
||||
apply_migration,
|
||||
find_retired_xai_refs,
|
||||
format_issue,
|
||||
)
|
||||
MIGRATION_GUIDE_URL, RETIREMENT_DATE, apply_migration, find_retired_xai_refs, format_issue)
|
||||
|
||||
apply = bool(getattr(args, "apply", False))
|
||||
no_backup = bool(getattr(args, "no_backup", False))
|
||||
@@ -64,8 +59,7 @@ def cmd_migrate_xai(args: Any) -> int:
|
||||
print(color(
|
||||
"Re-run with `hermes migrate xai --apply` to rewrite "
|
||||
f"{config_path} in-place (backup created automatically).",
|
||||
Colors.DIM,
|
||||
))
|
||||
Colors.DIM))
|
||||
return 0
|
||||
|
||||
if not config_path or not config_path.exists():
|
||||
@@ -84,8 +78,7 @@ def cmd_migrate_xai(args: Any) -> int:
|
||||
print(f" {color('✓', Colors.GREEN)} Backup: {result.backup_path}")
|
||||
print(
|
||||
f" {color('✓', Colors.GREEN)} Updated {len(result.issues_resolved)} "
|
||||
f"slot(s) in {result.file_path}"
|
||||
)
|
||||
f"slot(s) in {result.file_path}")
|
||||
print()
|
||||
print(color("Run `hermes doctor` to confirm no retired xAI models remain.", Colors.DIM))
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user