mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-13 09:57:29 +08:00
tighten device action args validation and normalize media payload schema
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user