nx_app_store.nx
buildroot/runtime/nx_app_store.nx
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
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
| 12 | const APP_MAGIC_65536: i64 = 65536 |
| 14 | const APP_PREFIX: *u8 = "knowledge/appstore-" as *u8 |
functions
| 16 | func 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 |
| 17 | func 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 |
| 20 | func aps_key(kbuf: *u8, name: *u8) -> i64 |
| 28 | func aps_name_present(buf: *u8, n: i64, name: *u8, namelen: i64) -> i64 called by 1: nx_app_store_put |
| 49 | func nx_app_store_put(name: *u8, record: *u8, reclen: i64) -> i64 |
| 77 | func nx_app_store_index(idxbuf: *u8) -> i64 |
| 88 | func nx_app_store_get(name: *u8, ptrout: *i64, lenout: *i64) -> i64 |