code wiki / wiki / nx_wiki_projects.nx

nx_wiki_projects.nx

buildroot/runtime/wiki/nx_wiki_projects.nx

15774 B291 linesdepth 10pulls 27 transitivereach 1 importersview sourcekind librarytopic wiki
docsdependenciesstructsconstsfunctions

about

nx_wiki_projects.nx -- the Nishi PM's LIVE project discovery + organization. At render time the PM queries the Gitea API over the sovereign HTTP client (git on 192.168.8.227:3003, reachable from both the dev host and the NAS), classifies each repo into its meta-project (the project model), and renders /wiki/projects. Self-updating, no curation, no shell. v1 surfaces the live repo inventory grouped by meta-project; the project model's richer slots (purpose / ROI / progress / boundaries / meta-sub-cousin relationships) enrich on top next. PROJECT MODEL (DITA-map composition + Diataxis/Divio purpose-clarity): a project has a clear point + logical boundaries; meta-projects compose subs; type is physical and/or digital. v1 derives the meta grouping from repo naming (the auto-classifier below). Status: V1. 2026-05-30.

dependencies 3 imports · 1 importers

nx_syscalls.nx nx_wiki_doc_render.nx nx_http_client.nx nx_wiki_projects.nx nx_pm_discover.nx

imports: nx_syscalls.nxnx_wiki_doc_render.nxnx_http_client.nx

imported by: nx_pm_discover.nx

structs

none

consts

22const NX_PJ_OK: i64 = 0
23const NX_PJ_ERR: i64 = 3100
24const NX_PJ_RENDER_CAP: i64 = 262144
25const NX_PJ_SCRATCH_CAP: i64 = 4096
26const NX_PJ_GITEA_CAP: i64 = 262144
27const NX_PJ_MAX_REPOS: i64 = 200
28const NX_PJ_METAS: i64 = 7
29const NX_PJ_STRLEN_CAP: i64 = 65536
30const NX_PJ_PUTZ_CAP: i64 = 1048576

functions

32func nx_pj_strlen(s: *u8) -> i64
38func nx_pj_put_z(dst: *u8, off: *i64, cap: i64, s: *u8) -> i64
called by 1: nx_pj_finish_http
53func nx_pj_find_from(buf: *u8, n: i64, start: i64, pat: *u8, pat_n: i64) -> i64
67func nx_pj_contains(hay: *u8, hoff: i64, hlen: i64, needle: *u8, nlen: i64) -> i64
called by 1: nx_pj_classify
84func nx_pj_classify(buf: *u8, off: i64, len: i64) -> i64
123func nx_pj_meta_name(m: i64) -> *u8
133func nx_pj_emit_int(ctx: *NxWikiDocCtx, v: i64) -> i64
145func nx_pj_finish_http(ctx: *NxWikiDocCtx, resp_buf: *u8, resp_cap: i64, out_resp_n: *i64) -> i64
172func nx_wiki_projects_handle(resp_buf: *u8, resp_cap: i64, out_resp_n: *i64) -> i64