nx_wiki_projects.nx
buildroot/runtime/wiki/nx_wiki_projects.nx
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
imports: nx_syscalls.nxnx_wiki_doc_render.nxnx_http_client.nx
imported by: nx_pm_discover.nx
structs
| none |
consts
| 22 | const NX_PJ_OK: i64 = 0 |
| 23 | const NX_PJ_ERR: i64 = 3100 |
| 24 | const NX_PJ_RENDER_CAP: i64 = 262144 |
| 25 | const NX_PJ_SCRATCH_CAP: i64 = 4096 |
| 26 | const NX_PJ_GITEA_CAP: i64 = 262144 |
| 27 | const NX_PJ_MAX_REPOS: i64 = 200 |
| 28 | const NX_PJ_METAS: i64 = 7 |
| 29 | const NX_PJ_STRLEN_CAP: i64 = 65536 |
| 30 | const NX_PJ_PUTZ_CAP: i64 = 1048576 |
functions
| 32 | func nx_pj_strlen(s: *u8) -> i64 called by 1: nx_wiki_projects_handle |
| 38 | func nx_pj_put_z(dst: *u8, off: *i64, cap: i64, s: *u8) -> i64 called by 1: nx_pj_finish_http |
| 53 | func nx_pj_find_from(buf: *u8, n: i64, start: i64, pat: *u8, pat_n: i64) -> i64 called by 1: nx_wiki_projects_handle |
| 67 | func nx_pj_contains(hay: *u8, hoff: i64, hlen: i64, needle: *u8, nlen: i64) -> i64 called by 1: nx_pj_classify |
| 84 | func nx_pj_classify(buf: *u8, off: i64, len: i64) -> i64 |
| 123 | func nx_pj_meta_name(m: i64) -> *u8 called by 1: nx_wiki_projects_handle |
| 133 | func nx_pj_emit_int(ctx: *NxWikiDocCtx, v: i64) -> i64 |
| 145 | func nx_pj_finish_http(ctx: *NxWikiDocCtx, resp_buf: *u8, resp_cap: i64, out_resp_n: *i64) -> i64 |
| 172 | func nx_wiki_projects_handle(resp_buf: *u8, resp_cap: i64, out_resp_n: *i64) -> i64 |