code wiki / (root) / nx_gen_zoo.nx

nx_gen_zoo.nx

buildroot/runtime/nx_gen_zoo.nx

7056 B195 linesdepth 9pulls 21 transitivereach 0 importersview sourcekind tooltopic gen
docsdependenciesstructsconstsfunctions

about

nx_gen_zoo.nx -- walk a model directory, identify every file, and report which PIPELINES are runnable. ComfyUI's capability without ComfyUI's interface. You should not have to know what you downloaded. Point this at a models tree and it answers the only questions that matter: what is each file, and can I generate an image with what I have? It calls nx_genrole for every classification -- genuinely, not as a claim. This header used to assert that reuse while zo_classify re-derived every probe, and the two copies had already drifted apart. See nx_genrole.nx. Usage: nx_gen_zoo <dir> [dir2] [dir3] ... A pipeline is reported RUNNABLE only when every required role is present AND runnable for the same family. Missing pieces are named, so the answer is actionable rather than a verdict. license_tier: ORIGINAL

dependencies 11 imports · 0 importers

nx_syscalls.nx nx_le.nx nx_f32.nx nx_f32_div.nx nx_f32_cvt.nx nx_f16.nx nx_strconv.nx nx_genver.nx nx_genweights.nx nx_genarch.nx nx_gen_zoo.nx

diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_le.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nxnx_f16.nxnx_strconv.nxnx_genver.nxnx_genweights.nxnx_genarch.nxnx_genrole.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main zo_puts sys_write zo_walk sys_openat_rd zo_puts ↻ sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_getdents64 dirent_reclen dirent_type dirent_name zo_classify nx_gw_open sys_mmap ↻ sys_map_file sys_openat_rd ↻ sys_lseek sys_close stl_header_len stl_u64le stl_data_start stl_u64le ↻ nx_gguf_parse nx_le_read_u32 nx_le_read_u64 nx_le_read_u32 ↻

structs

none

consts

28const ZOO_MAGIC_65536: i64 = 65536
29const ZOO_MAGIC_1024: i64 = 1024
31const ZOO_MAX: i64 = 256

functions

33func zo_puts(s: *u8) -> i64 {
called by 3: zo_classifyzo_walkmain calls 1: sys_write
38func zo_len(s: *u8) -> i64 {
called by 2: zo_padzo_has
43func zo_pad(s: *u8, w: i64) -> i64 {
called by 1: zo_classify calls 2: zo_lensys_write
50func zo_has(gw: *i64, name: *u8) -> i64 {
54func zo_join(out: *u8, dir: *u8, name: *u8) -> *u8 {
called by 1: zo_walk
76func zo_classify(path: *u8, label: *u8) -> i64 {
122func zo_walk(dir: *u8) -> i64 {
152func main(argc: i64, argv: *i64) -> i64 {