code wiki / _hdl_build / nx_vizsla_capture.nx

nx_vizsla_capture.nx

buildroot/runtime/_hdl_build/nx_vizsla_capture.nx

7434 B186 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic vizsla
docsdependenciesstructsconstsfunctions

about

nx_vizsla_capture.nx -- NISHI VIZSLA: the OPT-IN page->person extractor for "capture as you browse". Operator 2026-06-23: "lets NOT make it automatic but an OPTION to add to our personal/professional/business relationship manager." So this NEVER auto-runs and NEVER auto-adds: it is invoked on demand (a button in the Nishi browser), it parses the page YOU are looking at locally (no API, no upload), and emits a SUGGESTION you then confirm into a chosen realm (personal|professional|business). Extraction priority (sovereign, structured): 1) JSON-LD <script type="application/ld+json"> ... "@type":"Person" ... "name":"<N>" 2) OpenGraph <meta property="og:title" content="<N> | site"> 3) <title> <title><N> | site</title> The site suffix (" | ...", " - ...") is stripped; the name is sanitized to an engine handle. Output feeds the existing action controller (id=&name=) -> the operator picks the realm at confirm time. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_vizsla_capture.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main cp_p sys_write cp_slen cp_eqc cp_cmd_extract cp_p ↻ sys_mmap cp_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close cp_jsonld cp_find cp_slen ↻ cp_og cp_find ↻ cp_strip_suffix cp_title cp_find ↻ cp_san cp_cat sys_write ↻

structs

none

consts

12const K_MAGIC_65536: i64 = 65536
13const K_MAGIC_1024: i64 = 1024

functions

15func cp_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: cp_pcp_find
16func cp_p(s: *u8) -> i64 { sys_write(1, s, cp_slen(s)); return 0 }
called by 2: cp_cmd_extractmain calls 2: sys_writecp_slen
18func cp_cat(dst: *u8, off: i64, s: *u8) -> i64
called by 1: cp_cmd_extract
24func cp_readall(path: *u8, szp: *i64) -> *u8
39func cp_find(buf: *u8, n: i64, needle: *u8, from: i64) -> i64
called by 3: cp_jsonldcp_ogcp_title calls 1: cp_slen
54func cp_san(src: *u8, disp: *u8, id: *u8) -> i64
called by 1: cp_cmd_extract
82func cp_strip_suffix(s: *u8) -> i64
called by 1: cp_cmd_extract
100func cp_jsonld(buf: *u8, n: i64, out: *u8) -> i64
called by 1: cp_cmd_extract calls 1: cp_find
117func cp_og(buf: *u8, n: i64, out: *u8) -> i64
called by 1: cp_cmd_extract calls 1: cp_find
131func cp_title(buf: *u8, n: i64, out: *u8) -> i64
called by 1: cp_cmd_extract calls 1: cp_find
142func cp_cmd_extract(argc: i64, argv: *i64) -> i64
173func cp_eqc(a: *u8, b: *u8) -> i64
called by 1: main
180func main(argc: i64, argv: *i64) -> i64