@skaile/workspace-bridge-vue
@skaile/workspace-bridge-vue
Vue 3.3+ bindings for @skaile/workspaces. Provides composables for subscribing to the framework-agnostic AgentStore and ResourceClient via shallowRef + onScopeDispose.
Install
bun add @skaile/workspaces @skaile/workspace-bridge-vue vue
Usage
<script setup lang="ts">
import { useAgentStore } from "@skaile/workspace-bridge-vue";
import type { AgentStore } from "@skaile/workspaces/store";
const props = defineProps<{ store: AgentStore }>();
const snapshot = useAgentStore(props.store);
// snapshot.value.messages, snapshot.value.streamingText, etc.
</script>
Connect to skaile serve
The components above take the AgentStore as a prop. Build it from an AgentClient on a WebSocket transport pointed at a running skaile serve:
import { AgentClient } from "@skaile/workspaces/client";
import { AgentStore } from "@skaile/workspaces/store";
import { WebSocketClientTransport } from "@skaile/workspaces/transport/ws/client";
const transport = new WebSocketClientTransport({ url: "ws://localhost:8080" });
const store = AgentStore.fromClient(new AgentClient(transport));
await transport.connect();
Exports
| Composable | Returns | Notes |
|---|---|---|
useSubscribableStore<T>(store) |
ShallowRef<T> |
Generic — works for any SubscribableStore<T> |
useAgentStore(store) |
ShallowRef<AgentStoreSnapshot> |
Convenience wrapper around useSubscribableStore |
useResourceClient(client) |
ShallowRef<ResourceClientSnapshot> |
Convenience wrapper around useSubscribableStore |
Peer Dependency
vue>= 3.3 (uses Composition API +effectScope)
Related Packages
@skaile/forge-editor
Vue and React editor library on TipTap v3 (Vue: Nuxt UI; React: shadcn/ui): fram...
721
@skaile/forge-annotation-inbox
Annotation toolbar whose notes reach coding agents with SFC source locations: fr...
255
0
@skaile/forge-chat
Shared chat window: framework-free core (message model, reducer, transport port)...
147
Version History
| Version | Released | License |
|---|---|---|
| 5.12.0 | Apache-2.0 | |
| 5.11.0 | Apache-2.0 | |
| 5.10.0 | Apache-2.0 | |
| 5.9.0 | Apache-2.0 | |
| 5.8.0 | Apache-2.0 | |
| 5.7.0 | Apache-2.0 | |
| 5.6.1 | Apache-2.0 | |
| 5.6.0 | Apache-2.0 | |
| 5.5.0 | Apache-2.0 | |
| 5.4.0 | Apache-2.0 | |
| 5.3.0 | Apache-2.0 | |
| 5.2.0 | Apache-2.0 | |
| 5.1.3 | Apache-2.0 | |
| 5.1.2 | Apache-2.0 | |
| 5.1.1 | Apache-2.0 | |
| 5.1.0 | Apache-2.0 | |
| 5.0.0 | Apache-2.0 | |
| 4.39.0 | Apache-2.0 | |
| 4.38.0 | Apache-2.0 | |
| 4.37.0 | Apache-2.0 | |
| 4.36.0 | Apache-2.0 | |
| 4.35.0 | Apache-2.0 | |
| 4.34.0 | Apache-2.0 | |
| 4.33.0 | Apache-2.0 | |
| 4.32.1 | Apache-2.0 | |
| 4.32.0 | Apache-2.0 | |
| 4.31.0 | Apache-2.0 | |
| 4.30.1 | Apache-2.0 | |
| 4.30.0 | Apache-2.0 | |
| 4.29.1 | Apache-2.0 |
Showing the latest 30 of 223. See every release on npm
Pre-releases (3)
| Version | Released | License |
|---|---|---|
| 0.22.0-beta.2 | Apache-2.0 | |
| 0.22.0-beta.1 | Apache-2.0 | |
| 0.22.0-beta.0 | Apache-2.0 |