code wiki / (root) / nx_app_store.nx

nx_app_store.nx

buildroot/runtime/nx_app_store.nx

3621 B92 linesdepth 3pulls 3 transitivereach 4 importersview sourcekind librarytopic app
docsdependenciesstructsconstsfunctions

about

nx_app_store.nx -- the Nishi-native app registry, on the sovereign seg_store (append-only, additive, crash-safe rename-commit). REPLACES the flat TSV -- "migrate to the nishi ecosystem everywhere". Each app is a record: key = "app:<name>" val = path<TAB>title<TAB>blurb<TAB>category<TAB>marker plus an "__apps__" record (newline-separated names) maintained IN THE SAME COMMIT so the hub + monitor can enumerate the whole registry atomically (no torn state). Durable on disk under APP_PREFIX; history is never destroyed (additive law). license_tier: ORIGINAL

dependencies 2 imports · 4 importers

nx_syscalls.nx nx_seg_store.nx nx_app_store.nx nx_app_monitor.nx nx_app_publish.nx nx_app_seed.nx nx_family_hub.nx

imports: nx_syscalls.nxnx_seg_store.nx

imported by: nx_app_monitor.nxnx_app_publish.nxnx_app_seed.nxnx_family_hub.nx

structs

none

consts

12const APP_MAGIC_65536: i64 = 65536
14const APP_PREFIX: *u8 = "knowledge/appstore-" as *u8

functions

16func aps_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: nx_app_store_put
17func aps_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ dst[off+i]=s[i]; i=i+1 } return off+i }
called by 1: aps_key
20func aps_key(kbuf: *u8, name: *u8) -> i64
28func aps_name_present(buf: *u8, n: i64, name: *u8, namelen: i64) -> i64
called by 1: nx_app_store_put
49func nx_app_store_put(name: *u8, record: *u8, reclen: i64) -> i64
77func nx_app_store_index(idxbuf: *u8) -> i64
called by 2: mainmain calls 2: sys_mmapss_get
88func nx_app_store_get(name: *u8, ptrout: *i64, lenout: *i64) -> i64