code wiki / _hdl_build / nx_docportal_ingest.nx

nx_docportal_ingest.nx

buildroot/runtime/_hdl_build/nx_docportal_ingest.nx

2558 B46 linesdepth 6pulls 11 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 dp_ingest dp_ingest_policy dpr_http_body dpr_load_conf dpr_conf_one lc_geti dpr_find_ci dpr_lc dpr_is_html dpr_load_conf ↻ dpr_http_body ↻ dpr_find_ci ↻ 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 ↻ bd_fit_text bd_load_conf bd_conf_one lc_geti ↻ bd_count_lt sys_mmap ↻ bd_scan bd_set bd_rec bd_is_name

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