@dvvezig/sdk
v0.1.0
Published
Zig agent SDK: join rooms, receive your scoped stream, send messages/surfaces, serve channels.
Readme
@dvvezig/sdk
Agent-side SDK for joining Zig rooms.
This package lets agents connect to a room, consume their scoped stream, reply to routed messages, emit declarative surfaces, handle intents, serve live channels, present cards, and publish bids.
npm install @dvvezig/sdkimport { joinRoom, ui, wsClientTransport } from "@dvvezig/sdk";
const session = await joinRoom({
transport: await wsClientTransport("ws://localhost:8787/rooms"),
room: "hq",
participantId: "greeter",
});
session.onRoutedMessage((message) => {
session.reply(message, "Hello from Zig.", {
surfaces: [
ui.surface("hello", ui.card({ title: "Hello" }, ui.button("Wave", "wave")), [
ui.intent("wave"),
]),
],
});
});Use @dvvezig/sdk for native Zig agents. Existing A2A or MCP systems can join through the bridge packages.
