code wiki / (root) / nx_asset_ingest_real.nx

nx_asset_ingest_real.nx

buildroot/runtime/nx_asset_ingest_real.nx

12279 B76 linesdepth 10pulls 14 transitivereach 0 importersview sourcekind tooltopic asset
docsdependenciesstructsconstsfunctions

about

nx_asset_ingest_real.nx -- R5: POPULATE THE PRODUCTION CATALOG WITH REAL ASSETS. The visible-payoff ingestor: it catalogs a REAL, on-disk asset set (not fixtures) into the production catalog prefix knowledge/store/asset-catalog-, so the R5 dashboard surfaces GENUINE numbers. Two real asset classes are ingested, each as a unified content-addressed asset RECORD: * DOC assets = the LIVE wiki pages (web_assets/*.html), machine-generated (prov_class=machine). * IMAGE assets = the real generated gallery PNGs, REAL width/height from the actual IHDR. The read -> record -> dedup CORES live in nx_asset_ingest_lib (DRY #15) so this populator AND its gate (nx_asset_ingest_real_gate) drive the SAME pipeline. This file = the slug/file list + main(). IDEMPOTENT (#10): cat_ingest_cid dedups by content CID -> a re-run yields CAT_DUP for every present asset and the count does not grow. ADDITIVE (#13). No hardware writes (#26). license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_asset_ingest_lib.nx nx_asset_catalog.nx nx_asset_ingest_real.nx

imports: nx_syscalls.nxnx_asset_ingest_lib.nxnx_asset_catalog.nx

imported by: nobody (leaf or entry point)

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

main ai_w sys_write ai_prefix cat_count ss_open_cached ssc_init sys_mmap ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻ ssl_key_eq ↻ ss_manifest_free sys_munmap ↻

structs

none

consts

none

functions

17func main() -> i64