add gateway token-based node registration over host:port and shared nodes manager

This commit is contained in:
DBT
2026-02-24 16:06:44 +00:00
parent 42a5be0cec
commit 07cf54538e
8 changed files with 100 additions and 6 deletions

View File

@@ -43,6 +43,8 @@ A `nodes` tool control-plane PoC is now available:
- `action=run|invoke|camera_snap|screen_record|location_get`: routing framework is in place
- `mode=auto|p2p|relay`: default `auto` (prefer p2p, fallback to relay)
- relay now supports HTTP node bridging with action-specific routes: `/run`, `/camera/snap`, `/screen/record`, `/location/get`, `/canvas/*` (unknown action falls back to `/invoke`)
- gateway supports node registration: `POST http://<gateway_host>:<gateway_port>/nodes/register`
- configure `gateway.token` as registration token; child nodes must send `Authorization: Bearer <token>`
- `NodeInfo.token` is supported; relay automatically sets `Authorization: Bearer <token>`
- `nodes` tool supports device shortcuts: `facing`, `duration_ms`, `command`