code wiki / (root) / nx_heal.nx

nx_heal.nx

buildroot/runtime/nx_heal.nx

4507 B88 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind tooltopic heal
docsdependenciesstructsconstsfunctions

about

nx_heal.nx -- CLI half of the consolidated heal-plane tool (verb-router over nx_heal_lib). One MCP stub (tool #11 of the 15-tool architecture). READ-ONLY increment: status | log tools|edge | remediations, each with optional basedir (default "." = ~/nishihost on the NAS). Exit codes: status -> number of DOWN services (0 = GREEN, visible in MCP _meta.exit_code); log/remediations -> 0 on success; 2 on usage. license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_heal_lib.nx nx_heal.nx

imports: nx_heal_lib.nx

imported by: nobody (leaf or entry point)

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

main nh_puts sys_write nh_streq nh_status nh_puts ↻ sys_mmap nh_read sys_mmap ↻ nh_path nh_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nh_is_svc nh_match nh_line_has_up nh_match ↻ sys_write ↻ nh_putn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap nh_lastline nh_puts ↻ sys_write ↻ vw_contains nh_lines nh_log sys_mmap ↻ nh_streq ↻ nh_read ↻ nh_puts ↻ nh_tail

structs

none

consts

7const NH_MAGIC_18095: i64 = 18095
8const NH_MAGIC_18094: i64 = 18094
10const NH_USAGE_RC: i64 = 2
11const NH_ARG_VERB: i64 = 1 // argv slot of the verb
12const NH_ARG_P1: i64 = 2 // argv slot of the first verb arg
13const NH_ARG_P2: i64 = 3 // argv slot of the second verb arg
14const NH_ARGC_VERB: i64 = 2 // argc when just a verb is present
15const NH_ARGC_P1: i64 = 3 // argc when one verb arg is present
16const NH_ARGC_P2: i64 = 4 // argc when two verb args are present
17const NH_ARG_P3: i64 = 4 // argv slot of the third verb arg
18const NH_ARGC_P3: i64 = 5 // argc when three verb args are present

functions

21func nh_metrics(verb: *u8, name: *u8, arg: *u8) -> i64
42func main(argc: i64, argv: *i64) -> i64