code wiki / _hdl_build / nx_uigen_site.nx

nx_uigen_site.nx

buildroot/runtime/_hdl_build/nx_uigen_site.nx

44342 B595 linesdepth 4pulls 8 transitivereach 3 importersview sourcekind librarytopic uigen
docsdependenciesstructsconstsfunctions

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

nx_uigen_l2.nx nx_uigen_l3.nx nx_kit_counsel.nx nx_kit_journal.nx nx_kit_market.nx nx_uigen_site.nx nx_uigen_refine.nx nx_uigen_site_gate.nx nx_uigen_sitegen.nx

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

18const K_MAGIC_1469598103: i64 = 1469598103
19const K_MAGIC_2147483647: i64 = 2147483647
20const K_MAGIC_424242: i64 = 424242
21const K_MAGIC_1024: i64 = 1024

functions

24func us_hash(s: *u8) -> i64
called by 2: us_specmain
37func us_slug(kind: i64) -> *u8
45func us_label(kind: i64) -> *u8
called by 1: us_nav
54func us_plan(brief: *u8, plan: *i64) -> i64
called by 3: mainmainmain calls 1: l2_has
90func us_family(brief: *u8) -> i64
123func us_spec(brief: *u8, spec: *i64) -> i64
131func us_nav(buf: *u8, off: i64, plan: *i64, n: i64) -> i64
144func us_match_at(s: *u8, at: i64, lit: *u8) -> i64
154func us_req_get(req: *u8, page: *u8, key: *u8, dflt: *u8) -> *u8
195func us_req_has(req: *u8, page: *u8, key: *u8) -> i64
219func us_shell_hero(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64) -> i64
230func us_shell_doc(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, fam: i64) -> i64
256func us_page_index(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64
269func us_page_products(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64
284func us_page_status(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8, fam: i64) -> i64
310func us_page_docs(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8, fam: i64) -> i64
321func us_page_about(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8, fam: i64) -> i64
334func us_page_contact(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8, fam: i64) -> i64
384func us_kc_final_tel(buf: *u8, off: i64, h2: *u8, p: *u8, cta: *u8, href: *u8, teluri: *u8, tellabel: *u8) -> i64
405func us_page_index_counsel(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64
455func us_page_index_journal(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64
474func us_page_index_market(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64
504func us_page_products_market(buf: *u8, off: i64, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64
533func us_page_index_routed(buf: *u8, off: i64, brief: *u8, spec: *i64, title: *u8, brand: *u8, plan: *i64, n: i64, req: *u8) -> i64
545func 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
557func us_emit_page_req(buf: *u8, off: i64, brief: *u8, title: *u8, brand: *u8, plan: *i64, n: i64, kind: i64, req: *u8) -> i64
571func us_emit_page(buf: *u8, off: i64, brief: *u8, title: *u8, brand: *u8, plan: *i64, n: i64, kind: i64) -> i64
called by 1: main calls 1: us_emit_page_req
576func us_sitemap(buf: *u8, off: i64, domain: *u8, plan: *i64, n: i64) -> i64
called by 3: mainmainmain calls 1: us_slug
590func us_robots(buf: *u8, off: i64, domain: *u8) -> i64