cad_collab
Manage multi-user CAD collaboration: create sessions, fork/merge branches, add annotations, track presence, view history, resolve conflicts, and control permissions.
Instructions
Session, branch, annotation, presence, history, resolve, permission or sync.
聚合协作操作。按 ``tool`` 派发到协作子域:session / branch / annotation /
presence / history / resolve / permission / sync。
- ``session``: create / list / join / leave / info a collaboration session
over a document.
- ``branch``: fork / edit / merge / list document branches (CRDT).
- ``annotation``: add / list / close review annotations.
- ``presence``: set / get / list user presence.
- ``history``: applied operation history.
- ``resolve``: settle a branch-merge conflict (ours / theirs / latest).
- ``permission``: RBAC list / grant / check (viewer/editor/admin/owner).
- ``sync``: push operations + pull deltas/state — the WebSocket entry point.
When not to use: ``cad_collab`` coordinates *multi-user* work on a
document. For single-user edits use ``cad_object`` / ``cad_layer`` /
``cad_file`` directly; RBAC defaults to the session owner for unknown
users until an identity transport is configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collab | Yes | Collab action to perform, discriminated by `tool`: session, branch, annotation, presence, history, resolve, permission or sync. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | Collab sub-domain executed | |
| state | No | CRDT register state | |
| deltas | No | Operation deltas | |
| events | No | History events | |
| status | Yes | Operation status | |
| allowed | No | RBAC check result | |
| applied | No | Applied operations | |
| members | No | Members with roles | |
| message | No | Status description | |
| pending | No | Pending conflicts | |
| branches | No | Branch summaries | |
| presence | No | Presence list | |
| sessions | No | Session summaries | |
| resolution | No | Conflict resolution | |
| session_id | No | Session identifier | |
| annotations | No | Annotations | |
| conflict_id | No | Resolved conflict id |