code wiki / _hdl_build / nx_connect_api_gate.nx
nx_connect_api_gate.nx
buildroot/runtime/_hdl_build/nx_connect_api_gate.nx
about
nx_connect_api_gate.nx -- gate for the CONNECT MCP front door. Drives ca_dispatch with synthetic argv
arrays (exactly as the tools daemon will pass params.arguments.argv) and asserts on the emitted JSON.
This proves the MCP surface is faithful to the 8 gated engines and that its contract holds.
license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_connect_api_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
| none |
functions
| 8 | func ag_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 9 | func ag_n(v: i64) -> i64 { let t: *u8=sys_mmap(32); let o: i64=ca_putn(t,0,v); t[o]=0 as u8; ag_w(t); return 0 } |
| 10 | func ag_check(pass: i64, label: *u8, fails: *i64) -> i64 |
| 15 | func ag_has(buf: *u8, n: i64, needle: *u8) -> i64 |
| 29 | func ag_argv(a0:*u8,a1:*u8,a2:*u8,a3:*u8,a4:*u8,a5:*u8,a6:*u8,a7:*u8,a8:*u8,a9:*u8,a10:*u8,a11:*u8,a12:*u8,a13:*u8, outc: *i64) -> *i64 |
| 50 | func main() -> i64 |