Release v2.1.0: Programmatic zero-token version bumper (hs-sync-version --auto-bump) and daily 00:20 UTC VPS archive rotation cronjob (deploy/run-vps-archive-rotation.sh)
This commit is contained in:
1 parent
54e7f8ff61
commit
b9703cda5e
47 files changed
+1243
-598
No files matched your search
@@ -290,6 +290,7 @@ def rotate_all_docs_archives(workspace_root: str | Path | None = None) -> dict[s
|
||||
return {
|
||||
"ok": True,
|
||||
"version": CURRENT_VERSION,
|
||||
"rotated_loose_files": int(kg_res.get("rotated_loose_files", 0)) + int(zoo_res.get("rotated_loose_files", 0)),
|
||||
"gematria_richness_invariant_verified": True,
|
||||
"gematria_richness_snapshot": post_snap,
|
||||
"archives_rotated": [kg_res, zoo_res],
|
||||
@@ -317,11 +318,13 @@ def main(argv: list[str] | None = None) -> int:
|
||||
ap.add_argument("--extract", default=None, help="Extract a specific archived filename to --out-dir.")
|
||||
ap.add_argument("--archive-dir", default=None, help="Optional specific docs/archive directory.")
|
||||
ap.add_argument("--out-dir", default="/tmp/hyperstition-extracted-archive")
|
||||
ap.add_argument("--workspace-root", default=None, help="Optional workspace root directory.")
|
||||
ap.add_argument("--dry-run", action="store_true", help="Dry-run mode (list current archive manifests without rotating).")
|
||||
args = ap.parse_args(argv)
|
||||
|
||||
cfg = load_workspace_config()
|
||||
if args.list:
|
||||
out = {}
|
||||
cfg = load_workspace_config(workspace_root=args.workspace_root)
|
||||
if args.list or args.dry_run:
|
||||
out: dict[str, Any] = {"rotated_loose_files": 0}
|
||||
for d in (cfg.knowledge_graph_dir / "docs" / "archive", cfg.zoology_dir / "docs" / "archive"):
|
||||
mp = d / MANIFEST_FILENAME
|
||||
if mp.is_file():
|
||||
@@ -335,7 +338,7 @@ def main(argv: list[str] | None = None) -> int:
|
||||
print(json.dumps({"extracted": str(dst), "size_bytes": dst.stat().st_size}, indent=2))
|
||||
return 0
|
||||
|
||||
res = rotate_all_docs_archives()
|
||||
res = rotate_all_docs_archives(workspace_root=args.workspace_root)
|
||||
print(json.dumps(res, indent=2))
|
||||
return 0
|
||||
|
||||
|
||||
Reference in new issue
Block a user