code wiki / _hdl_build / nx_store_sync.nx

nx_store_sync.nx

buildroot/runtime/_hdl_build/nx_store_sync.nx

4274 B83 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic store
docsdependenciesstructsconstsfunctions

about

nx_store_sync.nx -- sovereign reusable deploy tool: sync the native content-addressed store (knowledge/store/hub-* + games-reg-*) to the NAS docroot store (/volume1/ai/hub/knowledge/store/), so the hub gateway reads the latest cards/roles/maturity/games. Enumerates the dir (getdents64) and pushes each file via nx_aw_push (fork/exec; it self-opens the vault + streams over SSH). No bash loops, no scratch .sh. Requires /tmp/nx_aw_push.sov.elf built first (build nx_aw_push in the same call). license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_store_sync.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main ss_w sys_write sys_mmap ss_starts ss_cat ss_wfile sys_openat_wr sys_write ↻ sys_close ss_push sys_fork sys_mmap ↻ sys_execve sys_exit sys_wait4 sys_close ↻

structs

none

consts

7const K_MAGIC_65536: i64 = 65536
8const K_MAGIC_1024: i64 = 1024
9const K_MAGIC_2048: i64 = 2048

functions

11func ss_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
12func ss_wfile(path: *u8, content: *u8, clen: i64) -> i64
17func ss_starts(name: *u8, pre: *u8) -> i64
called by 1: main
22func ss_cat(buf: *u8, o: i64, s: *u8) -> i64 { var oo: i64=o; var i: i64=0; while s[i]!=(0 as u8){buf[oo]=s[i];oo=oo+1;i=i+1} return oo }
called by 1: main
25func ss_push() -> i64
40func main() -> i64