code wiki / _hdl_build / nx_wiki_workstream_page.nx
nx_wiki_workstream_page.nx
buildroot/runtime/_hdl_build/nx_wiki_workstream_page.nx
about
nx_wiki_workstream_page.nx -- the AUTONOMOUS per-workstream page generator. Reads ONE real workstream
record (a memory project-*.md -- our actual work, NOT a hand-kept TSV) and emits an S-class wiki page
in the canonical anatomy the Nishi researcher found in Wikipedia's MoS/Layout:
LEAD (standalone summary) -> INFOBOX (structured metadata) -> BODY (sections/lists, [[wikilinks]]) ->
SEE ALSO (related pages) -> CATEGORY. All on the shared GitBook skin (nx_wiki_skin_lib).
Usage: nx_wiki_workstream_page <record.md> (default = a sample record). Emits /tmp/nx_ws_page.html.
Sovereign: nx_syscalls + nx_wiki_skin_lib only. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_wiki_skin_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const WP_MAGIC_4194304: i64 = 4194304 |
| 11 | const WP_MAGIC_2048: i64 = 2048 |
| 12 | const WP_MAGIC_8388608: i64 = 8388608 |
| 14 | const WP_DEFAULT: *u8 = "/mnt/c/Users/elder/.claude/projects/C--Users-elder/memory/project-temporal-work-coverage-2026-06-19.md" |
| 15 | const WP_OUT: *u8 = "/tmp/nx_ws_page.html" |
functions
| 17 | func wp_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 18 | func wp_slurp(path: *u8, buf: *u8, cap: i64) -> i64 |
| 27 | func wp_find_from(buf: *u8, len: i64, from: i64, pat: *u8) -> i64 |
| 34 | func wp_line_end(buf: *u8, len: i64, s: i64) -> i64 { var e: i64 = s; while e < len { if buf[e] == (10 as u8) { return e } e = e + 1 } return len } called by 1: wp_body |
| 37 | func wp_fm_field(buf: *u8, len: i64, key: *u8, out: *u8, cap: i64) -> i64 |
| 56 | func wp_esc1(dst: *u8, o: i64, c: i64) -> i64 |
| 62 | func wp_esc(dst: *u8, o: i64, buf: *u8, a: i64, b: i64) -> i64 { var oo: i64 = o; var i: i64 = a; while i < b { oo = wp_esc1(dst, oo, buf[i] as i64); i = i + 1 } return oo } |
| 63 | func wp_find2(buf: *u8, i: i64, end: i64, a: u8, b: u8) -> i64 { var k: i64 = i; while k + 1 < end { if buf[k] == a { if buf[k + 1] == b { return k } } k = k + 1 } return end } |
| 64 | func wp_find1(buf: *u8, i: i64, end: i64, a: u8) -> i64 { var k: i64 = i; while k < end { if buf[k] == a { return k } k = k + 1 } return end } called by 1: wp_inline |
| 67 | func wp_inline(dst: *u8, off: i64, buf: *u8, a: i64, b: i64) -> i64 |
| 96 | func wp_body(dst: *u8, off: i64, buf: *u8, start: i64, len: i64) -> i64 |
| 135 | func wp_seealso(dst: *u8, off: i64, buf: *u8, start: i64, len: i64) -> i64 |
| 154 | func main(argc: i64, argv: *i64) -> i64 |