code wiki / (root) / nx_pm_discover.nx

nx_pm_discover.nx

buildroot/runtime/nx_pm_discover.nx

1025 B25 linesdepth 11pulls 28 transitivereach 0 importersview sourcekind tooltopic pm
docsdependenciesstructsconstsfunctions

about

nx_pm_discover.nx -- the Nishi PM's project-discovery TOOL (standalone). Runs the live Gitea discovery + meta-project organization (reusing nx_wiki_projects_handle) and emits the rendered /wiki/projects page to stdout. Decoupled from the sites daemon (whose graph + the HTTP client hang the compiler), so it compiles fast like the probe. The daemon serves the emitted page from a file; this tool refreshes it (cron/gate/on-demand) -- sovereign auto-discovery, no curation. Status: V1. 2026-05-31.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_wiki_projects.nx nx_pm_discover.nx

imports: nx_syscalls.nxnx_wiki_projects.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap nx_wiki_projects_handle sys_mmap ↻ nx_http_client_sockaddr_ip nx_http_client_get sys_socket nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_mmap ↻ nx_http_client_build_reque hc_put_caps sys_mmap ↻ nx_codec_caps_headers sys_mmap ↻ nx_codec_caps_accept_docum nx_codec_caps_accept_encod nx_cc_put sys_write _drain sys_read nx_pj_strlen nx_wiki_doc_ctx_init nx_wiki_doc_write_header nx_wiki_doc_write_z nx_wiki_doc_write_bytes nx_wiki_doc_write_escaped html_escape he_is_safe he_put nx_wiki_doc_write_z ↻ nx_pj_find_from nx_pj_classify nx_pj_contains nx_pj_emit_int nx_wiki_doc_write_byte

structs

none

consts

13const K_MAGIC_262144: i64 = 262144

functions

15func main() -> i64