code wiki / _hdl_build / nx_vroom_probe_stage.nx

nx_vroom_probe_stage.nx

buildroot/runtime/_hdl_build/nx_vroom_probe_stage.nx

2542 B29 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind probetopic vroom
docsdependenciesstructsconstsfunctions

about

nx_vroom_probe_stage.nx -- stage the READ-ONLY NAS investigation for the /video/ deploy-wiring (operator 2026-06-23 chose "find it + auto-deploy hook"). Sovereign: recovers the vault credential to /tmp/nxpw (size-only verify, NEVER printed) and writes the read-only probe command to /tmp/nxcmd, so nx_ssh_cmd can run it -- NO shell staging of the password or the command. The probe is READ-ONLY (find/ps/grep only -- zero writes to the live NAS): locate the served /video/ dir (by the served 29583-byte app.js signature), the sites daemon, and the Gitea bare repo + hooks dir (where the post-receive deploy hook will go). Run AFTER: nx_machine_key + _offc/nx_vault.elf open nas.nv. Caller shreds /tmp/{nxpass,nxsecret.out,nxpw,nxcmd} when the deploy-wiring is done. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_vroom_probe_stage.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 sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close pw sys_write slen sys_exit sys_openat_wr sys_write ↻ sys_close ↻ slen ↻ pn sys_mmap ↻ sys_write ↻

structs

none

consts

11const PROBE_CMD: *u8 = "echo CHECK_TIME:; date; echo STATE_NOW:; cat /volume1/homes/elderwesto/nishihost/.nx_video_deploy.state 2>/dev/null; echo; echo DEPLOY_LOG:; tail -3 /volume1/homes/elderwesto/nishihost/nx_video_deploy.log 2>/dev/null; echo MARKERS_LIVE:; grep -c 'tile self' /volume1/homes/elderwesto/nishihost/sites/nishifamily/video/app.js; grep -c 'scaleX(-1)' /volume1/homes/elderwesto/nishihost/sites/nishifamily/video/index.html; echo END\n"

functions

13func slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: pwmain
14func pw(s: *u8) -> i64 { sys_write(1,s,slen(s)); return 0 }
called by 1: main calls 2: sys_writeslen
15func pn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
17func main() -> i64