nx_heal.nx
buildroot/runtime/nx_heal.nx
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
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
structs
| none |
consts
| 7 | const NH_MAGIC_18095: i64 = 18095 |
| 8 | const NH_MAGIC_18094: i64 = 18094 |
| 10 | const NH_USAGE_RC: i64 = 2 |
| 11 | const NH_ARG_VERB: i64 = 1 // argv slot of the verb |
| 12 | const NH_ARG_P1: i64 = 2 // argv slot of the first verb arg |
| 13 | const NH_ARG_P2: i64 = 3 // argv slot of the second verb arg |
| 14 | const NH_ARGC_VERB: i64 = 2 // argc when just a verb is present |
| 15 | const NH_ARGC_P1: i64 = 3 // argc when one verb arg is present |
| 16 | const NH_ARGC_P2: i64 = 4 // argc when two verb args are present |
| 17 | const NH_ARG_P3: i64 = 4 // argv slot of the third verb arg |
| 18 | const NH_ARGC_P3: i64 = 5 // argc when three verb args are present |
functions
| 21 | func nh_metrics(verb: *u8, name: *u8, arg: *u8) -> i64 |
| 42 | func main(argc: i64, argv: *i64) -> i64 |