code wiki / _hdl_build / nx_hub_cards_seed.nx

nx_hub_cards_seed.nx

buildroot/runtime/_hdl_build/nx_hub_cards_seed.nx

3436 B49 linesdepth 8pulls 9 transitivereach 0 importersview sourcekind tooltopic hub
docsdependenciesstructsconstsfunctions

about

nx_hub_cards_seed.nx -- seed the HUB CARD registry into the SOVEREIGN content-addressed store via nx_native_config (ncfg_*), NOT a .tsv/.cards flat file (operator: "we aren't supposed to use tsv; use the nishi ecosystem data management"). Mirrors nx_asset_visibility's vis_seed. Each card = a row {href, title, access}; nx_hub_render reads these (ncfg_open/row/field) and emits level-gated (no-leak). access vocab matches nx_maturity_registry mr_level_of: public(0)/viewer(1)/member(2)/operator(3). Run once (or on card change) to (re)author the registry; content-addressed + additive by construction.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_native_config.nx nx_hub_cards_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 ncfg_begin ss_begin ss_begin_cap sys_mmap hcs_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 hcs_tag ncfg_set_count sys_mmap ↻ ncfg_count_key ncfg_itoa sys_mmap ↻ ss_add ↻ hcs_tag ↻ 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 ↻ ss_cat ↻

structs

none

consts

none

functions

10func hcs_prefix() -> *u8 { return "knowledge/store/hub-cards-\x00" as *u8 }
called by 1: main
11func hcs_tag() -> *u8 { return "card\x00" as *u8 }
called by 2: hcs_rowmain
13func hcs_row(w: *i64, idx: i64, href: *u8, title: *u8, access: *u8) -> i64
called by 1: main calls 3: sys_mmapncfg_add_rowhcs_tag
22func hcs_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
24func main() -> i64