code wiki / _hdl_build / nx_wiki_links_seed.nx

nx_wiki_links_seed.nx

buildroot/runtime/_hdl_build/nx_wiki_links_seed.nx

8569 B61 linesdepth 8pulls 9 transitivereach 0 importersview sourcekind tooltopic wiki
docsdependenciesstructsconstsfunctions

about

nx_wiki_links_seed.nx -- seed the CURATED WIKI NAV TREE into the NATIVE seg_store (no TSV). Migration step (operator: "stop using tsv, nishi ecosystem only, all rungs everywhere"): writes the curated navigation tree (slug/parent/prev/next/related/tags/diataxis) that nx_wiki_shell sh_links_load reads, into the content-addressed store knowledge/store/wiki-links- via nx_native_config (tag "wl"), so the WHOLE wiki nav engine reads the native store instead of wiki_links.tsv. Authored-by-organ; "-" means empty/none (root parent / path endpoint / no related) -- sh_wl_cell maps "-" -> 0, exactly the TSV semantics. Re-run after editing the tree. No hardware writes (#26). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_native_config.nx nx_wiki_links_seed.nx

imports: nx_syscalls.nxnx_native_config.nx

imported by: nobody (leaf or entry point)

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

main wl_w sys_write wl_prefix ncfg_begin ss_begin ss_begin_cap sys_mmap wl_row sys_mmap ↻ ncfg_add_row sys_mmap ↻ canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap ncfg_key ss_add ss_add2 ss_w32 ss_len ncfg_set_count sys_mmap ↻ ncfg_count_key ncfg_itoa sys_mmap ↻ ss_add ↻ ncfg_commit ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻

structs

none

consts

none

functions

12func wl_prefix() -> *u8 { return "knowledge/store/wiki-links-\x00" as *u8 }
called by 1: main
13func wl_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
15func wl_row(w: *i64, idx: i64, slug: *u8, parent: *u8, prv: *u8, nxt: *u8, related: *u8, tags: *u8, diataxis: *u8) -> i64
called by 1: main calls 2: sys_mmapncfg_add_row
28func main() -> i64