code wiki / _hdl_build / nx_cap_harvest.nx
nx_cap_harvest.nx
buildroot/runtime/_hdl_build/nx_cap_harvest.nx
about
nx_cap_harvest.nx -- SCALE (F310b): auto-harvest a BROAD capability catalog from the live tool
registry (tool_allowlist.conf) -> knowledge/store/ecocap- so nx_recombine works ACROSS THE ENTERPRISE
at scale, NOT on hand-seeded catalogs. Each registry row -> capability (col0=name, col6=keywords =
name with '_' -> ' '). Reusable. Reads via sys_read_file (raw slurp). Manual tab writes (no hex escapes).
nx_cap_harvest [registry-file] [out-prefix] defaults: tool_allowlist.conf knowledge/store/ecocap-
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_store_seed_lib.nxnx_seg_store.nxnx_syscalls.nxnx_runtime.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
| 12 | const CH_CAP: i64 = 1048576 |
| 13 | const CH_NL: i64 = 10 |
| 14 | const CH_TAB: i64 = 9 |
| 15 | const CH_HASH: i64 = 35 |
| 16 | const CH_US: i64 = 95 |
| 17 | const CH_SP: i64 = 32 |
| 18 | const CH_SEV7: i64 = 55 |
| 19 | const CH_STDERR: i64 = 2 |
| 20 | const CH_EXIT_IO: i64 = 1 |
| 21 | const CH_MAXOUT: i64 = 512 |
functions
| 23 | func ch_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: ch_werr |
| 24 | func ch_werr(s: *u8) -> i64 { sys_write(CH_STDERR, s, ch_slen(s)); return 0 } |
| 26 | func main(argc: i64, argv: *i64) -> i64 |