nx_crew_page.nx
buildroot/runtime/nx_crew_page.nx
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
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 |
functions
| 12 | func 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 } |
| 13 | func wc(fd: i64, code: i64) -> i64 { let t: *u8 = sys_mmap(2); t[0] = code as u8; sys_write(fd, t, 1); return 0 } |
| 14 | func wn(fd: i64, v: i64) -> i64 |
| 20 | func c_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 26 | func 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 } |
| 27 | func splitpipe(s: *u8, fld: *i64, maxf: i64) -> i64 called by 1: main |
| 33 | func emit_rows(rp: *i64, ap: *i64, op: *i64, tp: *i64, sp: *i64, nr: i64, filter: *u8, mode: i64) -> i64 |
| 48 | func 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 |
| 56 | func main() -> i64 |