code wiki / _hdl_build / nx_companion_persona.nx
nx_companion_persona.nx
buildroot/runtime/_hdl_build/nx_companion_persona.nx
about
nx_companion_persona.nx -- the CompanionPersona object (RENAMED from nx_companion_memory.nx 2026-07-21 to end a NAME
COLLISION with runtime/nx_companion_memory.nx, which is a DIFFERENT episodic-memory module (nx_registry/nx_tabrec);
nx_cc `find runtime -name` was resolving the wrong file after a sibling session removed the _hdl_build copy = a
multi-agent-contention casualty). A companion's persona (data-driven elara_persona.txt) + persistent conversation
memory (append-log elara_mem.log, cwd-relative) + reply cleaning (strips the model's <think> block). Bodies are the
exact CompanionMemory object from the OO decomposition, behaviour-preserving. license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_gen_orchestrator.nx
structs
| none |
consts
| none |
functions
| 9 | func cm_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 } |
| 12 | func go_load_persona(out: *u8, cap: i64) -> i64 |
| 23 | func go_mem_append(role: *u8, content: *u8) -> i64 |
| 41 | func go_mem_load_json(dst: *u8, off: i64, maxlines: i64) -> i64 |
| 83 | func go_strip_think(s: *u8, out: *u8, cap: i64) -> i64 called by 1: go_handle_chat |