Files
DSP_Mods/LiveStreamAssist/js/scripts/pack_js.py
T
soarqin f03d6c758e feat(livestreamassist): add resilient JavaScript overlay client
Add a JSON-RPC client, session-aware game queries, and generated offline locale data. Update research and stats overlays with cancellable single-flight polling and reconnect handling.

Add 41 JavaScript regression tests, Python locale and formatting checks, and generation and validation documentation.
2026-09-18 01:59:53 +08:00

20 lines
510 B
Python

#!/usr/bin/env python3
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
SRC = ROOT / "src"
OUT = ROOT / "livestream-assist.js"
parts = [
SRC / "header.js",
SRC / "format.js",
SRC / "client.js",
SRC / "query.js",
SRC / "text.js",
SRC / "footer.js",
]
text = "".join(path.read_text(encoding="utf-8") for path in parts)
if not text.endswith("\n"):
text += "\n"
OUT.write_text(text, encoding="utf-8", newline="\n")
print(f"Wrote {OUT} ({OUT.stat().st_size} bytes)")