code wiki / (root) / nx_crew_page.nx

nx_crew_page.nx

buildroot/runtime/nx_crew_page.nx

13068 B137 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic crew
docsdependenciesstructsconstsfunctions

about

nx_crew_page.nx -- GENERATOR (not hand-authored HTML, per build-generators-not-artifacts) for the CREW CAPABILITY DIRECTORY UI surface (operator "use our harshest standards": tools-must-surface-in-UI). Reads knowledge/registry/ crew_capabilities.data (role|activity|organ|mcp_tool|status) + emits ONE self-contained /compare/crew page: the live MCP-exposure coverage + every role grouped by HOW its accountable capability is reached over MCP -- its own tool, or the exact `nishi_crew <role> <activity>` dispatch call (so the tools are DISCOVERABLE + INVOCABLE from the page). Data-driven: a role's status changes -> re-run -> the page moves it, zero code. NOTE: no '#'/'!' in string literals (nx_cc trap) -> rgb() colors + DOCTYPE '!' as a byte. Zero JS, zero trackers, both color schemes, responsive. license_tier: ORIGINAL expect_exit: 0

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_crew_page.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 c_read sys_openat_rd sys_read sys_close w sys_write sys_exit splitpipe streq wc sys_mmap ↻ sys_write ↻ wn w ↻ sys_mmap ↻ sys_write ↻ section w ↻ wn ↻ emit_rows streq ↻ w ↻

structs

none

consts

10const K_MAGIC_65536: i64 = 65536

functions

12func 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 }
called by 4: wnemit_rowssectionmain calls 1: sys_write
13func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 }
called by 1: main calls 2: sys_mmapsys_write
14func wn(fd: i64, v: i64) -> i64
called by 2: sectionmain calls 3: wsys_mmapsys_write
20func c_read(path: *u8, buf: *u8, cap: i64) -> i64
called by 1: main calls 3: sys_openat_rdsys_readsys_close
26func streq(a: *u8, b: *u8) -> i64 { var i: i64=0; while a[i]!=(0 as u8) { if a[i]!=b[i] {return 0} i=i+1 } if b[i]!=(0 as u8) {return 0} return 1 }
called by 2: emit_rowsmain
27func splitpipe(s: *u8, fld: *i64, maxf: i64) -> i64
called by 1: main
33func emit_rows(rp: *i64, ap: *i64, op: *i64, tp: *i64, sp: *i64, nr: i64, filter: *u8, mode: i64) -> i64
called by 1: section calls 2: streqw
48func section(rp: *i64, ap: *i64, op: *i64, tp: *i64, sp: *i64, nr: i64, cls: *u8, filter: *u8, mode: i64, title: *u8, desc: *u8, count: i64) -> i64
called by 1: main calls 3: wwnemit_rows
56func main() -> i64