mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 19:01:47 +03:00
chore: Run pnpm format:fix.
This commit is contained in:
@@ -125,8 +125,8 @@ When a device token is issued, `hello-ok` also includes:
|
||||
|
||||
## Framing
|
||||
|
||||
- **Request**: `{type:"req", id, method, params}`
|
||||
- **Response**: `{type:"res", id, ok, payload|error}`
|
||||
- **Request**: `{type:"req", id, method, params}`
|
||||
- **Response**: `{type:"res", id, ok, payload|error}`
|
||||
- **Event**: `{type:"event", event, payload, seq?, stateVersion?}`
|
||||
|
||||
Side-effecting methods require **idempotency keys** (see schema).
|
||||
@@ -134,11 +134,14 @@ Side-effecting methods require **idempotency keys** (see schema).
|
||||
## Roles + scopes
|
||||
|
||||
### Roles
|
||||
|
||||
- `operator` = control plane client (CLI/UI/automation).
|
||||
- `node` = capability host (camera/screen/canvas/system.run).
|
||||
|
||||
### Scopes (operator)
|
||||
|
||||
Common scopes:
|
||||
|
||||
- `operator.read`
|
||||
- `operator.write`
|
||||
- `operator.admin`
|
||||
@@ -146,7 +149,9 @@ Common scopes:
|
||||
- `operator.pairing`
|
||||
|
||||
### Caps/commands/permissions (node)
|
||||
|
||||
Nodes declare capability claims at connect time:
|
||||
|
||||
- `caps`: high-level capability categories.
|
||||
- `commands`: command allowlist for invoke.
|
||||
- `permissions`: granular toggles (e.g. `screen.record`, `camera.capture`).
|
||||
|
||||
Reference in New Issue
Block a user