code wiki / _hdl_build / nx_gen_conf_lib.nx

nx_gen_conf_lib.nx

buildroot/runtime/_hdl_build/nx_gen_conf_lib.nx

2445 B56 linesdepth 2pulls 2 transitivereach 12 importersview sourcekind librarytopic gen
docsdependenciesstructsconstsfunctions

about

nx_gen_conf_lib.nx -- the gen lane's ONE conf reader (2026-08-30): the two-path read (daemon cwd first, then the nishihost tree -- the gen daemon runs from /volume1/ai/gen, so a bare knowledge/ path resolves there) plus the integer-row parser that skips '#' and ';' comment lines. Extracted because the identical two-path idiom already existed in go_default_steps and gw_chat_budget_s and a THIRD copy was about to be typed for gen_hires.conf and gen_prompt_weight.conf (rule 15: three copies is the extraction trigger). Those two incumbents are deliberately NOT migrated in the same change -- a refactor of a live daemon's config path travels on its own proof. license_tier: ORIGINAL

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_gen_conf_lib.nx nx_companion_wardrobe.nx nx_gen_worker.nx

imports: nx_syscalls.nx

imported by: nx_companion_wardrobe.nxnx_gen_worker.nx

structs

none

consts

10const GC_CH_HASH: i64 = 35
11const GC_CH_SEMI: i64 = 59
12const GC_CH_NL: i64 = 10
13const GC_CH_D0: i64 = 48
14const GC_CH_D9: i64 = 57
15const GC_B10: i64 = 10

functions

18func gc_read2(rel: *u8, abs: *u8, szp: *i64) -> i64
called by 1: cw_weights_load calls 1: sys_read_file
27func gc_ints(b: *u8, n: i64, out: *i64, want: i64) -> i64
called by 1: cw_weights_parse