Files
workinf_Blender_Wasm/my-tools/compact_continuation_docs.py
2026-09-02 18:35:58 +08:00

24 lines
664 B
Python
Executable File

#!/usr/bin/env python3
"""Report that Blender/WBV2 context bounds are enforced by the Node tools."""
from __future__ import annotations
import subprocess
from wbv2_runtime import ROOT
def main() -> int:
result = subprocess.run(["node", "tools/web/check-task-context.mjs"], cwd=ROOT, text=True, capture_output=True, check=False)
output = result.stdout or result.stderr
if output:
print(output, end="" if output.endswith("\n") else "\n")
if result.returncode:
return result.returncode
print("WBV2 CONTEXT WITHIN BUDGET: no document compaction required")
return 0
if __name__ == "__main__":
raise SystemExit(main())