code wiki / wiki / nx_pipeline_route.nx

nx_pipeline_route.nx

buildroot/runtime/wiki/nx_pipeline_route.nx

15388 B332 linesdepth 5pulls 6 transitivereach 5 importersview sourcekind librarytopic pipeline
docsdependenciesstructsconstsfunctions

about

nx_pipeline_route.nx -- V2.0 P-3: /wiki/pipeline HTTP route. Renders NxArtifactStore (V2.0 P-2) as a tabular pipeline view. Operator visits /wiki/pipeline and sees all ~230 substrate artifacts classified by 5-stage pipeline (UNSTRUCTURED..REPEATABLE) with operator-existing 6-field V5 taxonomy (Quadrant + Topic Type + Status + Trust + Competitive). COMPOSES: wiki/nx_artifact_store (V2.0 P-2; data source) nx_html_escape (safe value emission) nx_syscalls (sys_mmap) COMPOSED BY: wiki/nx_wiki_routes.nx (dispatches /wiki/pipeline + /wiki/pipeline/<stage>) V2.0 SCOPE: - GET /wiki/pipeline -> all artifacts; stage histogram + per-stage counts - GET /wiki/pipeline/<stage-name> -> filter by stage (uppercase stage name) - V1 page format conformant HTML (wiki chrome + nishi-* meta) - Bounded by NX_PROUTE_MAX_ROWS_RENDER per page V3+ SCOPE (TODO): - Pagination + sort - Filter combos (stage + kind + trust + competitive) - JSON API at /wiki/pipeline.json for ops scrapers - Auto-refresh on file change (V2.5 inotify hook) Status: V2.0. 2026-05-27.

dependencies 3 imports · 1 importers

nx_syscalls.nx nx_html_escape.nx nx_artifact_store.nx nx_pipeline_route.nx nx_wiki_routes.nx

imports: nx_syscalls.nxnx_html_escape.nxnx_artifact_store.nx

imported by: nx_wiki_routes.nx

structs

none

consts

35const NX_PROUTE_OK: i64 = 0
36const NX_PROUTE_BAD_INPUT: i64 = 2970
37const NX_PROUTE_RESP_OVERFLOW: i64 = 2971
38const NX_PROUTE_BAD_STAGE_FILTER: i64 = 2972
41const NX_PROUTE_BODY_CAP: i64 = 524288 // 512 KB body
42const NX_PROUTE_MAX_ROWS_RENDER: i64 = 500 // hard cap per page
43const NX_PROUTE_INT_BUF_CAP: i64 = 32
46const NX_PROUTE_HEAD: *u8 =
48const NX_PROUTE_HEAD_N: i64 = 1107
50const NX_PROUTE_FOOT: *u8 = "</main></body></html>" as *u8
51const NX_PROUTE_FOOT_N: i64 = 21

functions

55func nx_proute_int_to_dec(v: i64, out: *u8, cap: i64) -> i64
78func nx_proute_put_raw(out: *u8, cap: i64, off: i64,
87func nx_proute_put_z(out: *u8, cap: i64, off: i64, s: *u8) -> i64
96func nx_proute_put_escaped(out: *u8, cap: i64, off: i64,
110func nx_proute_parse_stage_filter(suffix: *u8, suffix_n: i64) -> i64
134func nx_proute_render_histogram(out: *u8, cap: i64, off: i64,
160func nx_proute_render_table(out: *u8, cap: i64, off: i64,
206func nx_proute_render_row(out: *u8, cap: i64, off: i64,
248func nx_pipeline_route(s: *NxArtifactStore,