You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`commands:registered` / `commands:unregistered`|`CommandsHost` register / update / unregister | context → `devframe:commands` shared state | entry / id |
28
28
29
-
`docks:panel:state` emits `connected` with the first reported `open` value, `changed` when that value changes, and `disconnected` when the reporting RPC connection closes. Its numeric `sessionId` identifies that connection for the lifetime of the Node process. A reload or reconnect receives a new id.
29
+
`docks:panel:state` emits `connected` with the first reported panel snapshot, `changed` when its state or selected dock changes, and `disconnected` when the reporting RPC connection closes. A snapshot contains `state: 'open' | 'closed' | 'hidden'` and an optional `selectedDockId`. Its numeric `sessionId` identifies that connection for the lifetime of the Node process. A reload or reconnect receives a new id.
30
30
31
31
### Server RPC methods — client → server
32
32
33
33
| Method | Signature | Purpose |
34
34
|---|---|---|
35
35
|`hub:docks:activate`|`({ dockId, params? }) => void`| Ask the hub UI provider to switch its active dock — see [Deep Linking](/guide/deep-linking). |
36
-
|`hub:docks:panel:state`|`(open) => void`| Report this viewer connection's current dock-panel state. |
36
+
|`hub:docks:panel:state`|`(panelState: DevframeDockPanelState) => void`| Report this viewer connection's current dock-panel state and selected dock. |
37
37
|`hub:commands:execute`|`(id, ...args) => unknown`| Invoke a registered server command by id. |
38
38
|`hub:messages:add`|`(input) => DevframeMessageEntry`| Add a message to the feed (marked `from: 'browser'`). |
39
39
|`hub:messages:update`|`(id, patch) => DevframeMessageEntry \| undefined`| Patch a message by id. |
0 commit comments