mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-28 08:52:45 +00:00
chore: Run pnpm format:fix.
This commit is contained in:
@@ -38,20 +38,22 @@ When TLS is enabled, discovery TXT records include `bridgeTls=1` plus
|
||||
|
||||
## Handshake + pairing
|
||||
|
||||
1) Client sends `hello` with node metadata + token (if already paired).
|
||||
2) If not paired, gateway replies `error` (`NOT_PAIRED`/`UNAUTHORIZED`).
|
||||
3) Client sends `pair-request`.
|
||||
4) Gateway waits for approval, then sends `pair-ok` and `hello-ok`.
|
||||
1. Client sends `hello` with node metadata + token (if already paired).
|
||||
2. If not paired, gateway replies `error` (`NOT_PAIRED`/`UNAUTHORIZED`).
|
||||
3. Client sends `pair-request`.
|
||||
4. Gateway waits for approval, then sends `pair-ok` and `hello-ok`.
|
||||
|
||||
`hello-ok` returns `serverName` and may include `canvasHostUrl`.
|
||||
|
||||
## Frames
|
||||
|
||||
Client → Gateway:
|
||||
|
||||
- `req` / `res`: scoped gateway RPC (chat, sessions, config, health, voicewake, skills.bins)
|
||||
- `event`: node signals (voice transcript, agent request, chat subscribe, exec lifecycle)
|
||||
|
||||
Gateway → Client:
|
||||
|
||||
- `invoke` / `invoke-res`: node commands (`canvas.*`, `camera.*`, `screen.record`,
|
||||
`location.get`, `sms.send`)
|
||||
- `event`: chat updates for subscribed sessions
|
||||
@@ -65,6 +67,7 @@ Nodes can emit `exec.finished` or `exec.denied` events to surface system.run act
|
||||
These are mapped to system events in the gateway. (Legacy nodes may still emit `exec.started`.)
|
||||
|
||||
Payload fields (all optional unless noted):
|
||||
|
||||
- `sessionKey` (required): agent session to receive the system event.
|
||||
- `runId`: unique exec id for grouping.
|
||||
- `command`: raw or formatted command string.
|
||||
|
||||
Reference in New Issue
Block a user