code wiki / _hdl_build / nx_vroom_gitea_push.nx
nx_vroom_gitea_push.nx
buildroot/runtime/_hdl_build/nx_vroom_gitea_push.nx
about
nx_vroom_gitea_push.nx -- the FINAL deploy rung: commit JUST the /video/ camera-fix (the 2
Gitea-source files, NOT -A) + push to Gitea (192.168.8.227:3003, branch agents/invention-engine)
via the team's git lane (operator 2026-06-23: "do it with the nishi team's capabilities ... so we
don't crash with direct touches"). git's ATOMIC ref update -> the NAS checkout serves the new bytes;
no hand-overwrite of a live file = the no-crash guarantee. Every failure mode is a safe no-op:
hook-fail -> no commit; behind-origin -> push rejected; wrong served branch -> just not live (honest).
Focused add (per CONTRIBUTING: never `git add -A`) so the uncommitted session organs are NOT swept in.
After GREEN, nx_live_verify must find scaleX(-1) in the SERVED bytes before this is 'done'.
BORROWED RUNG (inherited from nx_ark_push): /usr/bin/git binary, pending the sovereign pack/push lane.
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
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
structs
| none |
consts
| 13 | const C_GIT: *u8 = "/usr/bin/git" |
| 14 | const C_REPO: *u8 = "/mnt/c/Users/elder/nishi-core" |
| 15 | const C_BRANCH: *u8 = "agents/invention-engine" |
| 16 | const F_IDX: *u8 = "nxc2/sites/nishifamily/video/index.html" |
| 17 | const F_APP: *u8 = "nxc2/sites/nishifamily/video/app.js" |
| 18 | const C_MSG: *u8 = "video: self-view camera-mirror fix (organ-emitted SSOT, publisher-verified)" |
| 19 | const C_LOG: *u8 = "knowledge/status/vroom_gitea_push.log" |
| 20 | const C_MODE_FILE: i64 = 420 |
functions
| 22 | func pw(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=0 as u8 { n=n+1 } sys_write(fd,s,n); return 0 } |
| 23 | func pn(fd: i64, n: i64) -> i64 { if n==0 { sys_write(fd,"0" as *u8,1); return 0 } var m: i64=n; if m<0 { sys_write(fd,"-" as *u8,1); m=0-m } let d: *u8=sys_mmap(24); var k: i64=0; while m>0 { d[k]=(0x30+(m%10)) as u8; m=m/10; k=k+1 } var i: i64=k-1; while i>=0 { let o: *u8=sys_mmap(1); o[0]=d[i]; sys_write(fd,o,1); i=i-1 } return 0 } |
| 27 | func mk_env() -> *i64 |
| 37 | func pr_run(argv: *i64) -> i64 |
| 51 | func g_add() -> i64 |
| 59 | func g_commit() -> i64 |
| 67 | func g_push() -> i64 |
| 75 | func main() -> i64 |