code wiki / _hdl_build / nx_user_console.nx

nx_user_console.nx

buildroot/runtime/_hdl_build/nx_user_console.nx

7487 B107 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic user
docsdependenciesstructsconstsfunctions

about

nx_user_console.nx -- the END-USER CONSOLE (operator 2026-06-09: "getting capabilities in the hands of the end users"). Generates a browser dashboard FROM THE DURABLE LOGS (real data, never narration): latest site-quality score + per-criterion rows, the proof-ledger verdict, the bench verdicts. Output knowledge/site_console.html -- servable HOT by the live sites daemon (drop into the router's content dir = live next request). DOGFOOD LAW: the console page itself must PASS nx_site_quality_gate -- the team's quality bar applies to the team's own UI. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_user_console.nx

imports: nx_syscalls.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main _p sys_write sys_mmap sys_openat_wr sys_exit _fp sys_write ↻ uc_read sys_openat_rd sys_read sys_close uc_last_line uc_slen _fp ↻ sys_write ↻ sys_close ↻ sys_renameat

structs

none

consts

9const K_MAGIC_1048592: i64 = 1048592
10const K_MAGIC_1048576: i64 = 1048576

functions

11func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
16func _pn(v: i64) -> i64 { nxi_out(v); return 0 }
calls 1: nxi_out
17func _fp(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 2: uc_last_linemain calls 1: sys_write
18func uc_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: uc_last_line
19func uc_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
34func uc_last_line(ofd: i64, buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main calls 3: uc_slen_fpsys_write
55func main() -> i64