@skaile/workspace-bridge-react 5.11.0 → 5.12.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.12.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 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)]:
8
+ - @skaile/workspaces@5.12.0
9
+
3
10
  ## 5.11.0
4
11
 
5
12
  ### Patch Changes
package/README.md CHANGED
@@ -21,6 +21,20 @@ 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
+
24
38
  ## Exports
25
39
 
26
40
  | 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.12.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.12.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": ">=18"