code wiki / _hdl_build / nx_eco_graph_card.nx
nx_eco_graph_card.nx
buildroot/runtime/_hdl_build/nx_eco_graph_card.nx
about
nx_eco_graph_card.nx -- the FAMILY-TREE CARD for organs (operator 2026-07-16: "like family tree... cards
...see how intertwined they are" + "its supposed to be COMPREHENSIVE"). EVERY organ gets a card -- not a
hub sample. One card = one organ's person-page: identity + generation, PARENTS (imports), CHILDREN
(importers), PARTNERS (co-parents of its children), SIBLINGS-per-parent, lineage. Zero-JS HTML; cards
link card-to-card; per-letter DIRECTORY pages make all ~16k discoverable.
Usage: nx_eco_graph_card <store> <seed> <out.html> one card (explicit)
nx_eco_graph_card <seed> one card (MCP mode: pinned paths)
nx_eco_graph_card <store> --all <outdir> [hubfile] EVERY card + directory (comprehensive)
license_tier: ORIGINAL expect_exit:0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_eco_graph.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
| none |
functions
| 13 | func cslen(s: *u8) -> i64 { var n:i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 14 | func cw(fd: i64, s: *u8) -> i64 { sys_write(fd, s, cslen(s)); return 0 } |
| 15 | func cn(fd: i64, v: i64) -> i64 { let b:*u8=sys_mmap(24); var m:i64=v; if m<0{sys_write(fd,"-" as *u8,1);m=0-m} let t:*u8=sys_mmap(24); 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 j:i64=0; while j<k{b[j]=t[k-1-j];j=j+1} sys_write(fd,b,k); return 0 } |
| 16 | func cname(fd: i64, g: *EcoGraph, idx: i64) -> i64 |
| 23 | func cshort(fd: i64, g: *EcoGraph, idx: i64) -> i64 |
| 32 | func cchip(fd: i64, g: *EcoGraph, idx: i64) -> i64 |
| 40 | func nends(g: *EcoGraph, idx: i64, suf: *u8) -> i64 |
| 51 | func is_test(g: *EcoGraph, idx: i64) -> i64 |
| 62 | func nstatus(g: *EcoGraph, idx: i64, inst: *u8) -> i64 |
| 76 | func wstatus(fd: i64, st: i64) -> i64 |
| 85 | func card_gens(g: *EcoGraph, gen: *i64) -> i64 |
| 114 | func card_emit(g: *EcoGraph, gen: *i64, maxgen: i64, me: i64, fd: i64, seen: *u8, hasimg: i64, inst: *u8) -> i64 |
| 208 | func mkpath(buf: *u8, outdir: *u8, g: *EcoGraph, idx: i64, suffix: *u8) -> i64 called by 1: main |
| 222 | func dbucket(g: *EcoGraph, idx: i64) -> i64 called by 1: main |
| 231 | func ncmp(g: *EcoGraph, a: i64, b: i64) -> i64 called by 1: main |
| 246 | func s_eq(a: *u8, b: *u8) -> i64 called by 1: main |
| 256 | func main(argc: i64, argv: *i64) -> i64 |