code wiki / _hdl_build / nx_pm_cockpit.nx
nx_pm_cockpit.nx
buildroot/runtime/_hdl_build/nx_pm_cockpit.nx
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
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
structs
| none |
consts
| 11 | const PMC_ROI_MAXLINES: i64 = 48 |
| 12 | const PMC_HTMLH: i64 = 104 // 'h' of "html" |
| 13 | const PMC_ARGC_MODE: i64 = 2 |
| 14 | const PMC_ARGC_OUT: i64 = 3 |
functions
| 17 | func pmc_count_green(buf: *u8, n: i64) -> i64 |
| 34 | func main(argc: i64, argv: *i64) -> i64 |