mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
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.
20 lines
510 B
Python
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)")
|