code wiki / _hdl_build / nx_uigen_site.nx
nx_uigen_site.nx
buildroot/runtime/_hdl_build/nx_uigen_site.nx
about
nx_uigen_site.nx -- PROMPT-TO-SITE: one natural-language BRIEF -> a LINKED MULTI-PAGE SITE. This is the
rung the 07-12 roadmap owed ("multi-page prompt-to-site: L2 kind-mapping x L3 grammar per page + shared
palette + real nav"). Composition, zero new design logic: the SITE PLAN (which pages exist) is inferred
from the brief by rule (word-start stem matching, the L2 idiom); the DESIGN of every page comes from ONE
L3 grammar spec (seed = a deterministic hash of the brief bytes; hue = the L2 topic map) so palette,
radius and rhythm cohere across the whole site; every page carries the SAME cross-page nav with REAL
hrefs (flat basenames -- publishable in the content namespace, no subdirs); index CTAs land on
contact.html (a real conversion path, not a dead anchor); sitemap.xml + robots.txt are emitted from the
same plan so the site model and its metadata cannot drift. Same brief -> same bytes (determinism moat).
HONEST scope: the plan vocabulary is bounded (6 page kinds) and copy is templated -- prose generation and
free component synthesis are L4 (learned). Pure emit like L1-L3 (sys_mmap only, no file io -- callers own
the write). license_tier: ORIGINAL
dependencies 5 imports · 3 importers
imports: nx_uigen_l2.nxnx_uigen_l3.nxnx_kit_counsel.nxnx_kit_journal.nxnx_kit_market.nx
imported by: nx_uigen_refine.nxnx_uigen_site_gate.nxnx_uigen_sitegen.nx
structs
| none |
consts
| 18 | const K_MAGIC_1469598103: i64 = 1469598103 |
| 19 | const K_MAGIC_2147483647: i64 = 2147483647 |
| 20 | const K_MAGIC_424242: i64 = 424242 |
| 21 | const K_MAGIC_1024: i64 = 1024 |
functions
| 24 | func us_hash(s: *u8) -> i64 |
| 37 | func us_slug(kind: i64) -> *u8 |
| 45 | func us_label(kind: i64) -> *u8 called by 1: us_nav |
| 54 | func us_plan(brief: *u8, plan: *i64) -> i64 |
| 90 | func us_family(brief: *u8) -> i64 |
| 123 | func us_spec(brief: *u8, spec: *i64) -> i64 |
| 131 | func us_nav(buf: *u8, off: i64, plan: *i64, n: i64) -> i64 |
| 144 | func us_match_at(s: *u8, at: i64, lit: *u8) -> i64 |
| 154 | func us_req_get(req: *u8, page: *u8, key: *u8, dflt: *u8) -> *u8 called by 10: us_page_indexus_page_productsus_page_statusus_page_docsus_page_aboutus_page_contact+4 calls 1: us_match_at |
| 195 | func us_req_has(req: *u8, page: *u8, key: *u8) -> i64 |
| 219 | func us_shell_hero(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64) -> i64 |
| 230 | func us_shell_doc(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, fam: i64) -> i64 |
| 256 | func us_page_index(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64 called by 1: us_page_index_routed calls 6: us_shell_herosk_herous_req_getl3_emit_sectionsk_ctask_close |
| 269 | func us_page_products(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64 |
| 284 | func us_page_status(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8, fam: i64) -> i64 called by 2: us_emit_page_req_specus_emit_page_req calls 13: us_shell_docsk_doc_h1us_req_getus_req_hassk_score_opensk_stat+7 |
| 310 | func us_page_docs(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8, fam: i64) -> i64 called by 2: us_emit_page_req_specus_emit_page_req calls 7: us_shell_docsk_doc_h1us_req_getsk_h2sk_ledesk_callout+1 |
| 321 | func us_page_about(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8, fam: i64) -> i64 called by 2: us_emit_page_req_specus_emit_page_req calls 7: us_shell_docsk_doc_h1us_req_getsk_ledesk_h2sk_callout+1 |
| 334 | func us_page_contact(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8, fam: i64) -> i64 called by 2: us_emit_page_req_specus_emit_page_req calls 11: us_shell_docsk_doc_h1us_req_getus_req_hassk_form_opensk_field+5 |
| 384 | func us_kc_final_tel(buf: *u8, off: i64, h2: *u8, p: *u8, cta: *u8, href: *u8, teluri: *u8, tellabel: *u8) -> i64 called by 1: us_page_index_counsel |
| 405 | func us_page_index_counsel(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64 called by 1: us_page_index_routed calls 21: sk_open_siteus_navsk_header_closel3_palette_stylekc_styleskc_hero+15 |
| 455 | func us_page_index_journal(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64 called by 1: us_page_index_routed calls 12: sk_open_siteus_navsk_header_closel3_palette_stylekj_styleskj_lead+6 |
| 474 | func us_page_index_market(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64 called by 1: us_page_index_routed calls 17: sk_headl3_palette_stylekm_styleskm_utilus_req_getsk_header_open+11 |
| 504 | func us_page_products_market(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64 called by 2: us_emit_page_req_specus_emit_page_req calls 16: sk_headl3_palette_stylekm_styleskm_utilus_req_getsk_header_open+10 |
| 533 | func us_page_index_routed(buf: *u8, off: i64, brief: *u8, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64 |
| 545 | func us_emit_page_req_spec(buf: *u8, off: i64, brief: *u8, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, kind: i64, req: *u8) -> i64 |
| 557 | func us_emit_page_req(buf: *u8, off: i64, brief: *u8, title: *u8, brand: *u8, plan: *i64, n: i64, kind: i64, req: *u8) -> i64 |
| 571 | func us_emit_page(buf: *u8, off: i64, brief: *u8, title: *u8, brand: *u8, plan: *i64, n: i64, kind: i64) -> i64 |
| 576 | func us_sitemap(buf: *u8, off: i64, domain: *u8, plan: *i64, n: i64) -> i64 |
| 590 | func us_robots(buf: *u8, off: i64, domain: *u8) -> i64 |