code wiki / _hdl_build / nx_vizsla_report.nx

nx_vizsla_report.nx

buildroot/runtime/_hdl_build/nx_vizsla_report.nx

10416 B270 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind orphan librarytopic vizsla
docsdependenciesstructsconstsfunctions

about

nx_vizsla_report.nx -- NISHI VIZSLA: ACTIVITY ANALYTICS / PORTFOLIO REPORTING (PRM/CRM depth e). Operator 2026-06-23: "i want our prm crm ... s class exceeds and im sure we have none of the depth of real system yet." This is the REPORTING dimension a real CRM has: roll the WHOLE typed-interaction log up into actionable analytics -- total volume, breakdown BY TYPE (call/meeting/email/...), breakdown BY CONTACT (most-active relationships), a RECENT-WINDOW count (momentum), and the date SPAN. Reads the "int:" records that nx_vizsla_log writes on the sovereign CID/seg_store plane; read-only; computed LOCALLY (no cloud, no data sale). Integer-only NO-FLOAT, deterministic (no clock in stdout). Discovers contacts/types from the data itself (single responsibility -- does not depend on the roster). activity <prefix> <today> [window_days] -> per-type + per-contact + window + span; verdict = the rollup. MODEL AS DATA: window default 30 days (refine = arg). Type/contact lists sorted by count descending. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_seg_store.nx nx_vizsla_report.nx

imports: nx_syscalls.nxnx_seg_store.nx

imported by: nobody (leaf or entry point)

structs

none

consts

14const K_MAGIC_1970: i64 = 1970
15const K_MAGIC_146097: i64 = 146097
16const K_MAGIC_719468: i64 = 719468
17const K_MAGIC_9000000: i64 = 9000000
18const K_MAGIC_131072: i64 = 131072

functions

20func vr_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
21func vr_p(s: *u8) -> i64 { sys_write(1, s, vr_slen(s)); return 0 }
23func vr_eq(a: *u8, b: *u8) -> i64
30func vr_dup(s: *u8) -> *u8
38func vr_atoi(s: *u8) -> i64
45func vr_cat(dst: *u8, off: i64, s: *u8) -> i64
51func vr_catn(dst: *u8, off: i64, v: i64) -> i64
64func vr_kmemeq(b: *u8, off: i64, n: i64, s: *u8) -> i64
71func vr_iskind(b: *u8, koff: i64, kl: i64, pfx: *u8) -> i64
77func vr_field(rec: *u8, rl: i64, want: *u8, out: *u8, cap: i64) -> i64
101func vr_datedays(s: *u8) -> i64
137func vr_bump(names: *i64, cnts: *i64, np: *i64, s: *u8) -> i64
145func vr_sort(names: *i64, cnts: *i64, n: i64) -> i64
161func vr_record(dnum: i64, today: i64, window: i64, fdt: *u8, st: *i64, fmin: *i64, fmax: *i64) -> i64
172func main(argc: i64, argv: *i64) -> i64