code wiki / _hdl_build / nx_wiki_build.nx

nx_wiki_build.nx

buildroot/runtime/_hdl_build/nx_wiki_build.nx

5304 B104 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic wiki
docsdependenciesstructsconstsfunctions

about

nx_wiki_build.nx -- the AUTONOMOUS wiki builder. Enumerates EVERY workstream record in the memory dir (getdents64) and stamps an S-class anatomy page for each via wp_emit_page, then writes the index that links them all. Because pages are named by record name and [[wikilinks]] resolve to <name>.html, the whole set becomes ONE cross-linked wiki of all our work -- no TSV, no hand-curation. Re-run any time (or on a pulse) and the wiki regenerates from the live records. Sovereign. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_wiki_page_lib.nx nx_wiki_build.nx

imports: nx_syscalls.nxnx_wiki_page_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mkdir sys_openat_rd sys_write sys_exit sys_mmap skin_open sk_cat sk_nav sk_cat ↻ sk_streq sk_cat ↻ wb_is_md wp_slen wp_slurp sys_openat_rd ↻ sys_read sys_close wp_emit_page sys_mmap ↻ wp_fm_field wp_find_from wp_find_from ↻ skin_open ↻ sk_cat ↻ wp_esc wp_esc1 sk_cat ↻ wp_slen ↻ wp_inline wp_find2 sk_cat ↻ wp_esc ↻ wp_esc1 ↻ wp_find1 wp_body wp_line_end sk_cat ↻ wp_inline ↻ wp_seealso

structs

none

consts

8const WB_MAGIC_131072: i64 = 131072
9const WB_MAGIC_4194304: i64 = 4194304
10const WB_MAGIC_8388608: i64 = 8388608
11const WB_MAGIC_2048: i64 = 2048
13const WB_MEMDIR: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory"
14const WB_OUTDIR: *u8 = "/mnt/c/Users/elder/nishi-core/nxc2/knowledge/wiki_pages"

functions

16func wb_is_md(name: *u8) -> i64
called by 1: main calls 1: wp_slen
23func wb_cat_base(dst: *u8, off: i64, name: *u8) -> i64
called by 1: main calls 1: wp_slen
28func wb_writefile(path: *u8, buf: *u8, len: i64) -> i64
34func wb_pn(buf: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
43func main(argc: i64, argv: *i64) -> i64