code wiki / _hdl_build / nx_uigen_sitegen.nx
nx_uigen_sitegen.nx
buildroot/runtime/_hdl_build/nx_uigen_sitegen.nx
about
nx_uigen_sitegen.nx -- CLI front door for prompt-to-site: ONE brief -> a linked multi-page site ON DISK.
usage: nx_uigen_sitegen <brief> <outdir> <domain> [title] [brand]
Thin syscall wrapper over the pure lib nx_uigen_site.nx (which the gate proves): us_plan -> per-page
us_emit_page -> outdir/<slug> + sitemap.xml + robots.txt, then ONE machine-readable JSON summary line
(agentic/workflow contract; additive fields only, rule 19). Fail-LOUD: any write failure exits nonzero
with the path named -- a partial site is never reported as success. Envelope declared in-band.
expect_exit: 0 license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_uigen_site.nxnx_emit_guard.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
| 13 | const K_SG_PAGEBUF: i64 = 1048576 |
| 14 | const K_SG_PATHBUF: i64 = 1024 |
functions
| 16 | func cp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 17 | func cn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(28); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } while k>0 { k=k-1; sys_write(1,(((t as i64)+k) as *u8),1) } return 0 } |
| 19 | func pjoin(dst: *u8, dir: *u8, name: *u8) -> i64 called by 1: main |
| 31 | func fput(path: *u8, buf: *u8, base: i64, len: i64) -> i64 |
| 40 | func main(argc: i64, argv: *i64) -> i64 |