code wiki / _hdl_build / nx_brand_packs.nx
nx_brand_packs.nx
buildroot/runtime/_hdl_build/nx_brand_packs.nx
about
nx_brand_packs.nx -- R3 multi-brand THEME PACKS + teaching the universal builder. Several complete brands as
portable DATA; each TAUGHT to the Nishi Builder catalog (nb_register, domain=brand, kind=pack) so growing the
brands grows the catalog/UI with no code change -- the universal-builder doctrine ("every capability calls
nb_register"). Swap a whole brand in one move (bp_load -> wb_doc_open_branded). REUSE: nx_nishi_builder (catalog),
nx_brand_tokens (the .brand format). Templates are ~-encoded (token rows joined by '~') because the catalog's
TSV row terminator is '\n'; bp_decode restores '\n' on load. SOVEREIGNTY: bp_teach_one refuses any template that
fails nb_template_safe (no <script/src=). Library. 100% sovereign. license_tier: ORIGINAL
dependencies 2 imports · 4 importers
imports: nx_syscalls.nxnx_nishi_builder.nx
imported by: nx_brand_exceed3_gate.nxnx_brand_exceed_gate.nxnx_brand_manage.nxnx_brand_packs_gate.nx
structs
| none |
consts
| none |
functions
| 12 | func bp_pack(id: *u8) -> *u8 |
| 26 | func bp_decode(src: *u8, out: *u8, cap: i64) -> i64 |
| 41 | func bp_teach_one(path: *u8, id: *u8, label: *u8) -> i64 |
| 49 | func bp_register_all(path: *u8) -> i64 |
| 58 | func bp_load(path: *u8, id: *u8, out: *u8, cap: i64) -> i64 |