code wiki / _hdl_build / nx_media_health_emit.nx

nx_media_health_emit.nx

buildroot/runtime/_hdl_build/nx_media_health_emit.nx

8019 B65 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic media
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_media_health_emit.nx

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

main sys_mmap mh_build ua mh_w sys_write mh_slen sys_exit sys_openat_wr sys_write ↻ sys_close

structs

none

consts

8const K_MAGIC_131072: i64 = 131072

functions

10func 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
12func mh_build(dst: *u8) -> i64
called by 1: main calls 1: ua
46func 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
47func mh_w(s: *u8) -> i64 { sys_write(1, s, mh_slen(s)); return 0 }
called by 1: main calls 2: sys_writemh_slen
49func main() -> i64