wire nodes relay transport to HTTP bridge with endpoint token support

This commit is contained in:
DBT
2026-02-24 15:51:24 +00:00
parent 2486bbd80c
commit 92433a6e21
5 changed files with 57 additions and 9 deletions

View File

@@ -42,7 +42,8 @@ A `nodes` tool control-plane PoC is now available:
- `action=status|describe`: inspect paired node status and capability matrix
- `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 uses local handler invocation path, ready for real cross-node transport replacement
- relay now supports HTTP node bridging: with node `endpoint` configured, it calls `POST {endpoint}/invoke`
- `NodeInfo.token` is supported; relay automatically sets `Authorization: Bearer <token>`
Implementation:
- `pkg/nodes/types.go`