code wiki / _hdl_build / nx_media_health_emit.nx
nx_media_health_emit.nx
buildroot/runtime/_hdl_build/nx_media_health_emit.nx
about
nx_media_health_emit.nx -- EMITS the MEDIA HEALTH dashboard (knowledge/staging/media/health.html), served at
/library/health. Surfaces the media-liveness sweep (operator 2026-07-04: "systems dont confirm if the media is
usable... flag this") so the operator can SEE broken/thumbnail-less media instead of discovering it by accident.
Self-sufficient: inline login (POST /api/login -> sessionStorage.nx_sess) then fetch /api/mediahealth (the report
nx_movie_probe --sweep writes) -> summary tiles + the issue list (path/verdict/reason). ZERO external loads; NO
double-quote chars (single-quote HTML/JS) so the fail-closed emit check passes. license_tier: ORIGINAL expect_exit: 0
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 8 | const K_MAGIC_131072: i64 = 131072 |
functions
| 10 | func ua(dst: *u8, o: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { dst[o + i] = s[i]; i = i + 1 } return o + i } called by 1: mh_build |
| 12 | func mh_build(dst: *u8) -> i64 |
| 46 | func mh_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: mh_w |
| 47 | func mh_w(s: *u8) -> i64 { sys_write(1, s, mh_slen(s)); return 0 } |
| 49 | func main() -> i64 |