nx_genui_tool_register.nx
buildroot/runtime/nx_genui_tool_register.nx
about
nx_genui_tool_register.nx -- register the GEN capabilities (image + 3D + companion) into the sovereign tool
registry (operator 2026-07-05: "add these capabilities into our synthetic human workstream as APIs ... so
Elara can have a wide range of behavior"). The registry IS what /api/tools + /mcp tools/list serve, so
registration = discoverability for any orchestrating agent (Elara's agency loop included). DISCOVERY only:
runnable-over-/mcp stays a SEPARATE fail-closed step (tool_allowlist.conf + cap token, operator-gated).
Idempotent (reg_put is additive, history kept -- safe to run twice). Verifies by READBACK, not by claim.
expect_exit: 0 license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_tool_registry.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
| none |
functions
| 10 | func gr_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 11 | func gr_putn(v: i64) -> i64 |
| 24 | func gr_reg1(name: *u8, desc: *u8, invoke: *u8, status: *u8) -> i64 |
| 38 | func main() -> i64 |