code wiki / _hdl_build / nx_hub_cards_seed.nx
nx_hub_cards_seed.nx
buildroot/runtime/_hdl_build/nx_hub_cards_seed.nx
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
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
structs
| none |
consts
| none |
functions
| 10 | func hcs_prefix() -> *u8 { return "knowledge/store/hub-cards-\x00" as *u8 } called by 1: main |
| 11 | func hcs_tag() -> *u8 { return "card\x00" as *u8 } |
| 13 | func hcs_row(w: *i64, idx: i64, href: *u8, title: *u8, access: *u8) -> i64 |
| 22 | func 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 } |
| 24 | func main() -> i64 |