code wiki / _hdl_build / nx_pm_cockpit.nx

nx_pm_cockpit.nx

buildroot/runtime/_hdl_build/nx_pm_cockpit.nx

4944 B111 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind tooltopic pm
docsdependenciesstructsconstsfunctions

about

nx_pm_cockpit.nx -- THE PM COCKPIT CLI (operator 2026-07-18): one command that composes the executive / management / operations layers + feedback + honest ROI from the live sovereign planes. A READER-COMPOSER: zero forks, zero duplicated rollup logic -- each tier is measured by the same code path its owning organ uses (see nx_pm_roi_lib.nx header for the laws). argv[1] = mode: "json" (default -> stdout, the MCP/agent interchange) "html" [argv[2] out path, default sites/nishifamily/pm.html] -> the /pm page Runs on the NAS with CWD=nishihost (MCP fork-exec) or anywhere the planes exist. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 1 imports · 0 importers

nx_pm_roi_lib.nx nx_pm_cockpit.nx

imports: nx_pm_roi_lib.nx

imported by: nobody (leaf or entry point)

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

main em_rollup_store sys_mmap ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close el_last_after el_len el_match ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall ↻ sys_munmap ss_cat ↻ ss_loadfile sys_map_file sys_openat_rd ↻ sys_lseek ↻ sys_close ↻ ss_readall ↻ ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ↻ ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry

structs

none

consts

11const PMC_ROI_MAXLINES: i64 = 48
12const PMC_HTMLH: i64 = 104 // 'h' of "html"
13const PMC_ARGC_MODE: i64 = 2
14const PMC_ARGC_OUT: i64 = 3

functions

17func pmc_count_green(buf: *u8, n: i64) -> i64
called by 1: main calls 2: pm_colspm_slice_eq
34func main(argc: i64, argv: *i64) -> i64