code wiki / _hdl_build / nx_pm_cockpit.nx

nx_pm_cockpit.nx

buildroot/runtime/_hdl_build/nx_pm_cockpit.nx

4944 B111 linesdepth 10pulls 21 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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close el_last_after el_len el_match sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real ss_open ss_open2 ss_open3 sys_now_us sys_mmap ↻ sys_clock_gettime_mono sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss3_admit ss3_ann

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