code wiki / _hdl_build / nx_docportal_ingest.nx

nx_docportal_ingest.nx

buildroot/runtime/_hdl_build/nx_docportal_ingest.nx

2558 B46 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tooltopic docportal
docsdependenciesstructsconstsfunctions

about

nx_docportal_ingest.nx -- CLI: UPLOAD one document file into a domain's public|private shard (the operator's "upload documents" entrypoint). Composes nx_docportal_lib: writes the raw bytes content-addressed into the sovereign seg_store and, for a PUBLIC doc, emits the derived BM25 search line so it is findable on <domain>/search. A PRIVATE doc lands in the client vault only. nx_docportal_ingest <domain> <public|private> <doc_path> license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_docportal_lib.nx nx_docportal_ingest.nx

imports: nx_docportal_lib.nx

imported by: nobody (leaf or entry point)

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

main dpc_puts dpc_streq sys_read_file sys_openat_rd sys_lseek sys_mmap sys_read sys_close dp_ingest dp_ingest_policy dp_cid fnv1a_init fnv1a_update sys_mmap ↻ dp_prefix dp_cat dp_key dp_cat ↻ dp_catn sys_mmap ↻ dp_polkey dp_cat ↻ dp_catn ↻ dp_catn ↻ ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ss_write_seg

structs

none

consts

none

functions

9func dpc_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main
10func dpc_num(v: i64) -> i64
called by 1: main
18func dpc_streq(a: *u8, b: *u8) -> i64 { var i: i64 = 0; while a[i] != (0 as u8) { if a[i] != b[i] { return 0 } i = i + 1 } if b[i] != (0 as u8) { return 0 } return 1 }
called by 1: main
20func main(argc: i64, argv: *i64) -> i64