code wiki / _hdl_build / nx_source_admin.nx
nx_source_admin.nx
buildroot/runtime/_hdl_build/nx_source_admin.nx
about
nx_source_admin.nx -- SOURCE/API MANAGER (operator 2026-06-13: "ability to manage all the apis, the
systems"). One sovereign admin view over EVERY data source the ecosystem can ingest from:
- worldwide scholarly sources (knowledge/registry/worldwide_sources.tsv)
- media/ingest sources (knowledge/registry/media_sources.tsv)
- credential/data requests (knowledge/registry/cred_requests.tsv)
Renders knowledge/source_admin.html: per-source kind/access/status + which need a key (-> cred lane
-> nx_password_vault). The operator manages it all here; PROVIDED keys unlock the API lanes. Re-run
via renameat (no-trunc). license_tier: ORIGINAL
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
| 10 | const K_MAGIC_65536: i64 = 65536 |
| 11 | const K_MAGIC_65535: i64 = 65535 |
functions
| 13 | func sa_w(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 } |
| 14 | func sa_rf(path: *u8, buf: *u8, cap: i64) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0{return 0} var tot: i64=0; var r: i64=1; while r>0 { let d: *u8=((buf as i64)+tot) as *u8; r=sys_read(fd,d,cap-tot); if r>0{tot=tot+r} } sys_close(fd); return tot } |
| 15 | func sa_scan(buf: *u8, n: i64, start: i64, delim: i64) -> i64 { var i: i64=start; var s: i64=1; while s==1 { if i>=n{s=0} else { if buf[i]==(delim as u8){s=0} else {i=i+1} } } return i } |
| 18 | func sa_table(fd: i64, buf: *u8, n: i64) -> i64 |
| 43 | func main() -> i64 |