nx_ui_map.nx
buildroot/runtime/nx_ui_map.nx
about
nx_ui_map.nx -- sovereign map of the OLD Elder AI frontend, so the sovereign rebuild can match/exceed its
parity (operator: "you havent matched our old elder ai frontend, i just see a basic gen ui + a fox sample").
Reuses the getdents64 walk; roots at the platform tree; for FRONTEND files (.html/.jsx/.tsx/.vue/.svelte/.htm)
prints path + size + the feature-marker lines (<title>, routes, Elara/chat/gallery/scene/character) so the
old experience is READ, not guessed. Root/markers baked (nx_sov_build_run doesn't forward args). Sovereign.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
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
structs
| none |
consts
| 9 | const UM_MAGIC_65536: i64 = 65536 |
| 10 | const UM_MAGIC_2048: i64 = 2048 |
| 12 | const UM_ROOT: *u8 = "/mnt/c/Users/elder/elder-ai-platform" as *u8 |
| 13 | const UM_FBUF: i64 = 2097152 |
| 14 | const UM_MAXDEPTH: i64 = 14 |
| 15 | const UM_MAXLINES: i64 = 6 |
functions
| 17 | func um_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 18 | func um_puts(s: *u8) -> i64 { sys_write(1, s, um_strlen(s)); return 0 } |
| 23 | func um_putn(v: i64) -> i64 { nxi_out(v); return 0 } |
| 24 | func um_find(buf: *u8, lo: i64, hi: i64, pat: *u8, pl: i64) -> i64 { if pl==0 {return 0} var i: i64=lo; while i+pl<=hi { var j: i64=0; while j<pl { if buf[i+j]!=pat[j]{j=pl+1} else {j=j+1} } if j==pl {return 1} i=i+1 } return 0 } called by 1: um_scan |
| 25 | func um_is_dot(name: *u8) -> i64 { if name[0]==(46 as u8){ if name[1]==(0 as u8){return 1} if name[1]==(46 as u8){ if name[2]==(0 as u8){return 1} } } return 0 } called by 1: um_walk |
| 26 | func um_join(dirpath: *u8, name: *u8, out: *u8) -> i64 { var p: i64=0; var a: i64=0; while dirpath[a]!=(0 as u8){out[p]=dirpath[a];p=p+1;a=a+1} out[p]=47 as u8; p=p+1; var b: i64=0; while name[b]!=(0 as u8){out[p]=name[b];p=p+1;b=b+1} out[p]=0 as u8; return 0 } called by 1: um_walk |
| 27 | func um_ends(name: *u8, suf: *u8) -> i64 { let n: i64=um_strlen(name); let s: i64=um_strlen(suf); if n<s {return 0} var i: i64=0; while i<s { if name[n-s+i]!=suf[i]{return 0} i=i+1 } return 1 } |
| 29 | func um_is_frontend(name: *u8) -> i64 |
| 35 | func um_skip_dir(name: *u8) -> i64 |
| 44 | func um_scan(path: *u8, fbuf: *u8) -> i64 |
| 79 | func um_walk(dirpath: *u8, fbuf: *u8, depth: i64) -> i64 called by 2: um_walkmain calls 13: sys_openat_rdsys_mmapsys_getdents64dirent_reclendirent_typedirent_name+7 |
| 112 | func main() -> i64 |