nx_workflow_ingest.nx
buildroot/runtime/nx_workflow_ingest.nx
about
nx_workflow_ingest.nx -- SOVEREIGN media -> ComfyUI workflow extractor (piece 1 of the anti-ComfyUI ingest).
ComfyUI embeds the gen-graph as JSON in media metadata (PNG tEXt chunks; MP4/WebM atoms): "workflow"
(UI graph, nodes[]) + "prompt" (API graph, class_type). This reads a media file, finds a marker, and
extracts the balanced JSON (string-aware brace matching), writes it out, and counts nodes. No 3rd party.
license_tier: ORIGINAL
dependencies 3 imports · 0 importers
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
structs
| none |
consts
| 10 | const K_MAGIC_8388608: i64 = 8388608 |
| 11 | const K_MAGIC_1048576: i64 = 1048576 |
functions
| 14 | func wi_find(buf: *u8, len: i64, needle: *u8, nlen: i64, start: i64) -> i64 |
| 27 | func wi_count(buf: *u8, len: i64, needle: *u8, nlen: i64) -> i64 |
| 35 | func wi_balanced(buf: *u8, len: i64, start: i64, out: *u8, cap: i64) -> i64 called by 1: main |
| 56 | func wi_emit(fd: i64, key: *u8, kl: i64, v: i64) -> i64 |
| 70 | func main() -> i64 |