code wiki / _hdl_build / nx_pub_todos.nx

nx_pub_todos.nx

buildroot/runtime/_hdl_build/nx_pub_todos.nx

6984 B111 linesdepth 6pulls 15 transitivereach 0 importersview sourcekind tooltopic pub
docsdependenciesstructsconstsfunctions

about

nx_pub_todos.nx -- the NISHI PUBLISHER's PIPELINE / TO-DO board: expose, on nishifamily.com, every site that is BUILT + STAGED but not yet live -- and exactly what it needs to move forward (operator: "sites without domains ... the publisher should expose on nishifamily.com as to-dos and what we need to move forward on"). DATA-DRIVEN: the per-site to-dos come from a HAND-EDITABLE web_assets/publish_todos.data (site|name|status|needs|next), and the live "pages staged + held" count is DERIVED from the real publisher staging queue. Sovereign ZERO-JS. Then it STAGES ITSELF (held, outward) for nishifamily.com so the operator approves it to go live. license_tier: ORIGINAL run: /tmp/nx_pub_todos.sov.elf -> web_assets/site_nishifamily/pipeline.html (+ staged held)

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_meet_lib.nx nx_web_builder.nx nx_brand_tokens.nx nx_publisher.nx nx_pub_todos.nx

imports: nx_syscalls.nxnx_meet_lib.nxnx_web_builder.nxnx_brand_tokens.nxnx_publisher.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 pt_count mlen todos_default sys_openat_wr sys_write mlen ↻ sys_close ↻ meet_mkdir bt_default_brand mputs sys_write ↻ mlen ↻ sys_exit wb_doc_open_branded wb_w sys_write ↻ bas_emit_head bas_emit_one sys_mmap ↻ bas_lookup sys_mmap ↻ bas_esc_attr bas_app bas_fw sys_write ↻ bt_emit_root_fd sys_mmap ↻ bt_emit_root_buf bt_app sys_mmap ↻ bt_slice_eq bt_ident_safe

structs

none

consts

13const K_MAGIC_1024: i64 = 1024
14const K_MAGIC_2048: i64 = 2048
15const K_MAGIC_4096: i64 = 4096

functions

17func fdnum(fd: i64, v0: i64) -> i64 { var v: i64=v0; if v<0{sys_write(fd,"-" as *u8,1);v=0-v} let b: *u8=sys_mmap(28); var k: i64=0; if v==0{b[0]=48 as u8;k=1} while v>0{b[k]=(48+(v%10)) as u8;v=v/10;k=k+1} let o: *u8=sys_mmap(28); var j: i64=0; while j<k{o[j]=b[k-1-j];j=j+1} sys_write(fd,o,k); return 0 }
called by 1: main calls 2: sys_writesys_mmap
19func pt_count(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: mlen
26func todos_default() -> *u8
called by 1: main
30func main() -> i64