code wiki / _hdl_build / nx_companion_identity.nx
nx_companion_identity.nx
buildroot/runtime/_hdl_build/nx_companion_identity.nx
about
nx_companion_identity.nx -- the COMPANION IDENTITY / PHENOTYPE-GENOME object: turns "who a companion is"
(data-driven per-character files: elara_appearance/loras/shots.txt) + presentation into the identity portion of
a gen prompt. First-class + reusable = the seat for many companions (customize + proc-gen) and the digital-twin /
genome direction. Extracted from nx_gen_orchestrator (monolith -> objects); behaviour-preserving. Object model:
companion_arch.md. ⚠identity terms are Z-IMAGE COUNTERBALANCED (see the counterbalance registry) -- do not naive-edit.
Self-contained (private ci_* helpers) so there is zero symbol collision with the orchestrator. license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_companion_wardrobe.nxnx_gen_orchestrator.nx
structs
| none |
consts
| none |
functions
| 9 | func ci_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: go_pick_shot |
| 10 | func ci_cat(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8){dst[o]=s[i]; o=o+1; i=i+1} return o } |
| 14 | func go_load_appearance(out: *u8, cap: i64) -> i64 |
| 25 | func go_load_loras(out: *u8, cap: i64) -> i64 |
| 37 | func go_pick_shot(out: *u8, cap: i64, idx: i64) -> i64 |