code wiki / (root) / nx_docgen_lib.nx

nx_docgen_lib.nx

buildroot/runtime/nx_docgen_lib.nx

4242 B105 linesdepth 7pulls 12 transitivereach 4 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_docgen_lib.nx -- Nishi Office: DOCUMENT ASSEMBLY (F505) core lib. Data-driven clause library + templates (ordered clause refs) + {field} merge -> a deterministic, content- addressed legal document. Legal-SOTA: (1) clauses/templates are DATA on the immutable seg_store (add a clause = a data change, rule-11/rule-25, never fewer options); (2) merge is FAIL-CLOSED -- an unknown clause OR an unfilled {field} REFUSES the whole document (never a silent blank in a contract); (3) same template+data -> same CID (nx_canon_cid), so an assembled engagement letter is tamper-evident and composes with nx_box + nx_sign. Composes nx_matter_lib (mt_field/mt_streq/canon) + nx_registry + nx_canon_cid. LIB. license_tier: ORIGINAL

dependencies 1 imports · 4 importers

nx_matter_lib.nx nx_docgen_lib.nx nx_docgen.nx nx_docgen_gate.nx nx_docpub_site.nx nx_docpub_tree.nx

imports: nx_matter_lib.nx

imported by: nx_docgen.nxnx_docgen_gate.nxnx_docpub_site.nxnx_docpub_tree.nx

structs

none

consts

none

functions

12func dg_strlen(s: *u8) -> i64
19func dg_clause_put(prefix: *u8, id: *u8, text: *u8) -> i64
called by 2: mainmain calls 2: reg_putdg_strlen
24func dg_tmpl_put(prefix: *u8, id: *u8, csv: *u8) -> i64
called by 2: mainmain calls 2: reg_putdg_strlen
30func dg_merge(src: *u8, srclen: i64, mergerec: *u8, mergelen: i64, dst: *u8, o0: i64) -> i64
called by 1: dg_assemble calls 1: mt_field
65func dg_assemble(prefix: *u8, tmpl_id: *u8, mergerec: *u8, mergelen: i64, out: *u8) -> i64
called by 2: mainmain calls 2: reg_getdg_merge
100func dg_unmerged(doc: *u8, len: i64) -> i64
called by 2: mainmain