code wiki / _hdl_build / nx_nishi_deploy.nx
nx_nishi_deploy.nx
buildroot/runtime/_hdl_build/nx_nishi_deploy.nx
about
nx_nishi_deploy.nx -- SOVEREIGN deploy organ (operator 2026-06-23: "no sh, use the nishi ecosystem,
100% true nishi capabilities"). Replaces the bash deploy scripts: reads a manifest of repo-relative
files (knowledge/deploy/manifest.txt) + a commit message (knowledge/deploy/msg.txt), then does a
PLUMBING commit (write-tree -> commit-tree -> update-ref, which avoids the /mnt/c index-refresh hang
AND the pre-commit-hook stall) + push to Gitea -- entirely as NishiLang orchestration. git is the
flagged BORROWED ORACLE (named replacement = the sovereign pack/push lane, per nx_ark_push); the
orchestration + verdict are fully sovereign. SHAs are captured by redirecting the child's stdout to a
file (no pipe int32 fiddling) + reading it back. 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
| 11 | const C_GIT: *u8 = "/usr/bin/git" |
| 12 | const C_REPO: *u8 = "/mnt/c/Users/elder/nishi-core" |
| 13 | const C_BRANCH: *u8 = "agents/invention-engine" |
| 14 | const C_REF: *u8 = "refs/heads/agents/invention-engine" |
| 15 | const C_MANIFEST: *u8 = "knowledge/deploy/manifest.txt" |
| 16 | const C_MSGFILE: *u8 = "knowledge/deploy/msg.txt" |
| 17 | const F_TREE: *u8 = "/tmp/nxd_tree" |
| 18 | const F_HEAD: *u8 = "/tmp/nxd_head" |
| 19 | const F_COMMIT: *u8 = "/tmp/nxd_commit" |
| 20 | const C_LOCK: *u8 = "/mnt/c/Users/elder/nishi-core/.git/index.lock" |
| 21 | const AT_FDCWD: i64 = 0 - 100 |
| 22 | const MODE: i64 = 420 |
functions
| 24 | func dw(s: *u8) -> i64 { var n: i64=0; while s[n]!=0 as u8 { n=n+1 } sys_write(1,s,n); return 0 } |
| 25 | func dn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } let bb: *u8=sys_mmap(28); var m: i64=v; var k: i64=0; let t: *u8=sys_mmap(28); while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var z: i64=0; while z<k{bb[z]=t[k-1-z];z=z+1} sys_write(1,bb,k); return 0 } |
| 28 | func mk_env() -> *i64 |
| 37 | func run(argv: *i64) -> i64 |
| 50 | func run_to_file(argv: *i64, outfile: *u8) -> i64 |
| 64 | func read_sha(path: *u8) -> *u8 |
| 75 | func main() -> i64 |