@skaile/workspace-bridge-react 5.11.0 → 5.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +16 -0
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.13.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`c0c483e`](https://github.com/skaile-ai/workspaces/commit/c0c483e068aeb5f5f1979565a251b5a29e0d72c9), [`c0c483e`](https://github.com/skaile-ai/workspaces/commit/c0c483e068aeb5f5f1979565a251b5a29e0d72c9), [`c0c483e`](https://github.com/skaile-ai/workspaces/commit/c0c483e068aeb5f5f1979565a251b5a29e0d72c9), [`c0c483e`](https://github.com/skaile-ai/workspaces/commit/c0c483e068aeb5f5f1979565a251b5a29e0d72c9), [`c0c483e`](https://github.com/skaile-ai/workspaces/commit/c0c483e068aeb5f5f1979565a251b5a29e0d72c9), [`c0c483e`](https://github.com/skaile-ai/workspaces/commit/c0c483e068aeb5f5f1979565a251b5a29e0d72c9), [`c0c483e`](https://github.com/skaile-ai/workspaces/commit/c0c483e068aeb5f5f1979565a251b5a29e0d72c9), [`c0c483e`](https://github.com/skaile-ai/workspaces/commit/c0c483e068aeb5f5f1979565a251b5a29e0d72c9)]:
8
+ - @skaile/workspaces@5.13.0
9
+
10
+ ## 5.12.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9), [`5b83a1b`](https://github.com/skaile-ai/workspaces/commit/5b83a1b31f6538877505565f86f4da82f70772b9)]:
15
+ - @skaile/workspaces@5.12.0
16
+
3
17
  ## 5.11.0
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -21,6 +21,22 @@ function ChatPanel({ store }: { store: AgentStore }) {
21
21
  }
22
22
  ```
23
23
 
24
+ ### Connect to `skaile serve`
25
+
26
+ The components above take the `AgentStore` as a prop. Build it from an `AgentClient` on a WebSocket transport pointed at a running `skaile serve`:
27
+
28
+ ```ts
29
+ import { AgentClient } from "@skaile/workspaces/client";
30
+ import { AgentStore } from "@skaile/workspaces/store";
31
+ import { WebSocketClientTransport } from "@skaile/workspaces/transport/ws/client";
32
+
33
+ const transport = new WebSocketClientTransport({ url: "ws://localhost:8080" });
34
+ const store = AgentStore.fromClient(new AgentClient(transport));
35
+ await transport.connect();
36
+ ```
37
+
38
+ `protocolInfo` in the store snapshot stays `null` until a host sends `session_init`.
39
+
24
40
  ## Exports
25
41
 
26
42
  | Hook | Returns | Notes |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skaile/workspace-bridge-react",
3
- "version": "5.11.0",
3
+ "version": "5.13.0",
4
4
  "description": "React 18+ bindings for @skaile/workspaces (useAgentStore, useResourceClient, useSubscribableStore)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "sideEffects": false,
21
21
  "dependencies": {
22
- "@skaile/workspaces": "^5.11.0"
22
+ "@skaile/workspaces": "^5.13.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": ">=18"