tighten device action args validation and normalize media payload schema

This commit is contained in:
DBT
2026-02-25 01:23:25 +00:00
parent 68145f8185
commit a21237c1e4
5 changed files with 44 additions and 6 deletions

View File

@@ -49,6 +49,7 @@ A `nodes` tool control-plane PoC is now available:
- `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`)
- device `payload` normalized fields: `media_type` `storage` `url|path|image` `meta`
Implementation:
- `pkg/nodes/types.go`