standardize device operation responses with codes and richer local simulations

This commit is contained in:
DBT
2026-02-24 16:27:37 +00:00
parent 04cbb22c57
commit bbc0690eaa
5 changed files with 32 additions and 10 deletions

View File

@@ -48,6 +48,7 @@ A `nodes` tool control-plane PoC is now available:
- configure `gateway.token` as registration token; child nodes must send `Authorization: Bearer <token>` for register/heartbeat
- `NodeInfo.token` is supported; relay automatically sets `Authorization: Bearer <token>`
- `nodes` tool supports device shortcuts: `facing`, `duration_ms`, `command`
- unified device response envelope: `ok/code/error/payload` (code examples: `ok`, `unsupported_action`, `transport_error`)
Implementation:
- `pkg/nodes/types.go`