code wiki / _hdl_build / nx_brand_packs.nx

nx_brand_packs.nx

buildroot/runtime/_hdl_build/nx_brand_packs.nx

4170 B62 linesdepth 3pulls 3 transitivereach 6 importersview sourcekind librarytopic brand
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_nishi_builder.nx nx_brand_packs.nx nx_brand_exceed3_gate.nx nx_brand_exceed_gate.nx nx_brand_manage.nx nx_brand_packs_gate.nx

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

12func bp_pack(id: *u8) -> *u8
26func bp_decode(src: *u8, out: *u8, cap: i64) -> i64
41func bp_teach_one(path: *u8, id: *u8, label: *u8) -> i64
49func bp_register_all(path: *u8) -> i64
called by 1: main calls 1: bp_teach_one
58func bp_load(path: *u8, id: *u8, out: *u8, cap: i64) -> i64