workshop rework

This commit is contained in:
Vysyr committed 2026-10-31 17:03:41 +01:00
1 parent a3a80dfa16
commit fb39e290c0
115 files changed
+1865 -497

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
"""Small append-only progress events shared with the external launcher."""
import json
import os
from pathlib import Path
def report(state, **details):
target = os.environ.get("WORKSHOP_PROGRESS")
if not target:
return
try:
with Path(target).open("a", encoding="utf-8") as stream:
stream.write(json.dumps(dict(state=state, **details), ensure_ascii=False) + "\n")
except OSError:
# Progress reporting must not interrupt a render or hide its result.
pass