nx_writer_probe.nx
buildroot/runtime/nx_writer_probe.nx
about
nx_writer_probe.nx -- sovereign one-shot probe of the LIVE nx_writer_serve (127.0.0.1:8098). Composes
nx_http_client (the same POST primitive as nx_writehub_seat) to prove the live API round-trip over the Nishi
ecosystem, no curl/shell. Probes BOTH endpoints (/score prose-scoring + /factcheck grounded fact-check) and
prints the server's real responses. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_http_client.nxnx_connect.nxnx_gate.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
| 8 | const K_MAGIC_8098: i64 = 8098 |
| 9 | const K_MAGIC_65536: i64 = 65536 |
| 10 | const K_MAGIC_2097152: i64 = 2097152 |
functions
| 11 | func wp_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: wp_probe |
| 12 | func wp_drain(fd: i64, buf: *u8, cap: i64) -> i64 { var off: i64=0; var go: i64=1; while go==1 { if off>=cap { go=0 } else { let r: i64=sys_read(fd, ((buf as i64)+off) as *u8, cap-off); if r<=0 { go=0 } else { off=off+r } } } return off } |
| 13 | func wp_probe(path: *u8, pathlen: i64, body: *u8, label: *u8) -> i64 |
| 31 | func main() -> i64 calls 1: wp_probe |