code wiki / (root) / nx_workflow_knobs.nx

nx_workflow_knobs.nx

buildroot/runtime/nx_workflow_knobs.nx

4248 B104 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind tooltopic workflow
docsdependenciesstructsconstsfunctions

about

nx_workflow_knobs.nx -- SOVEREIGN workflow -> clean capability card (piece 2 of the anti-ComfyUI ingest). Reads the extracted ComfyUI workflow JSON and DISTILLS the 68-node graph into the few knobs that matter: model(gguf), loras(safetensors), and feature flags (audio / face-consistency / super-res / upscale). This is the "collapse the node-soup into what it actually does" step -- the LLM understander generalizes it later; this deterministic pass handles the known node families sovereignly. No 3rd party. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_le.nx nx_strconv.nx nx_workflow_knobs.nx

imports: nx_syscalls.nxnx_le.nxnx_strconv.nx

imported by: nobody (leaf or entry point)

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

main sys_openat_rd sys_mmap sys_read sys_close sys_openat_wr sys_write wk_find wk_emit_quoted sys_write ↻ wk_flag wk_count wk_find ↻ sys_write ↻ sys_mmap ↻ nx_strconv_format_i64

structs

none

consts

11const K_MAGIC_2097152: i64 = 2097152

functions

13func wk_find(buf: *u8, len: i64, needle: *u8, nlen: i64, start: i64) -> i64
called by 3: wk_countwk_nearmain
25func wk_count(buf: *u8, len: i64, needle: *u8, nlen: i64) -> i64
called by 1: wk_flag calls 1: wk_find
33func wk_near(buf: *u8, pos: i64, needle: *u8, nl: i64, back: i64) -> i64
calls 1: wk_find
43func wk_emit_quoted(fd: i64, prefix: *u8, pl: i64, buf: *u8, pos: i64) -> i64
called by 1: main calls 1: sys_write
59func wk_flag(fd: i64, buf: *u8, len: i64, label: *u8, ll: i64, needle: *u8, nl: i64) -> i64
70func main() -> i64