code wiki / _hdl_build / nx_iot_ctl.nx
nx_iot_ctl.nx
buildroot/runtime/_hdl_build/nx_iot_ctl.nx
about
nx_iot_ctl.nx -- sovereign HOME-ELECTRONICS identification ORGAN (CLI + MCP tool).
The "home electronics" half of the operator's iot ask, as a first-class organ
rather than a bolt-on to the printer tool (rule 9: one responsibility each --
nx_printer_ctl owns the printer, this owns the house).
Verbs (JSON on stdout = the MCP/API/agent interchange):
nx_iot_ctl services -- emit the loaded service manifest (no network)
nx_iot_ctl scan <a.b.c> -- IoT-aware /24 sweep: kind + vendor per host
nx_iot_ctl probe <ip> [port] -- READ-ONLY active identify (Kasa get_sysinfo)
nx_iot_ctl contract -- security / never-brick contract (no network)
NEVER-BRICK (rule 26): there is NO write verb. The verb map above is the
entire reachable surface; no argument can steer this organ onto a path that
mutates a device. Proven mechanically by nx_iot_ctl_gate.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_iot_ctl_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
| 21 | const IC_STDERR: i64 = 2 |
| 22 | const IC_EXIT_USAGE: i64 = 2 |
functions
| 24 | func ic_werr(s: *u8) -> i64 |
| 30 | func ic_usage() -> i64 |
| 35 | func main(argc: i64, argv: *i64) -> i64 |