# sysinfo.py —— 全能接口 CALLJSON(#573) 自检：调用 sysinfo 并把返回的 JSON 整份打出来。
# sysinfo.py — self-test for the all-purpose CALLJSON(#573) interface: call sysinfo and print the whole returned JSON.

# ── 显式引用：下面用到的 `ui_*` 全部来自共享库 vmlui.vml ────────────
# ── explicit reference: every `ui_*` below comes from the shared library vmlui.vml ──
#    `Lib/python/vml_ui.py` 是 GenLib 从 `Lib/shared/src/vmlui.c` 生成的声明文件（勿手写），
#    `Lib/python/vml_ui.py` is the declaration file GenLib generates from `Lib/shared/src/vmlui.c` (do not hand-write);
#    前端读它登记名字与形参个数 —— 有了声明表，实参个数写错会在**编译期**报错。
#    the frontend reads it to register the names and their arities — with that table a wrong argument count is a **compile-time** error.
#    ↳ 2026-10-04 复验仍成立：`ui_scr_get_w(99)` 实测 `error: 'ui_scr_get_w' 需要 0 个参数，这里给了 1 个 [CodeGen_ArgCountMismatch]`。
#    ↳ Still true, re-checked 2026-10-04: `ui_scr_get_w(99)` measures `error: 'ui_scr_get_w' takes 0 arguments but 1 was given [CodeGen_ArgCountMismatch]`.
import vml_ui

ui_call_json_s("sysinfo", "")
ui_call_json_print()
