mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-22 17:22:47 +00:00
Give each observation a server-issued ID owned by its physical connection. Preserve snapshot-only reads and combined list-and-subscribe, source-bound replies, lifecycle cleanup and legacy wire compatibility.
Paseo Client SDK Examples
These examples use only the public SDK root:
import { createPaseoClient, type PaseoClient } from "@getpaseo/client";
Each example takes the daemon WebSocket URL as an argument. In worktree dev, read it
from the portless banner or portless get daemon; for the desktop-managed daemon,
use the URL for that daemon.
quickstart.tsruns one agent and prints its reply. It is a standalone script with the URL at the top; the rest export functions.workspaces.tscovers creating a fresh workspace, opening by directory, refreshing, and archiving.agents-and-providers.tscovers provider discovery, creating agents, and waiting for turns.events-and-timeline.tscovers subscribing to workspace, agent, and timeline events, plus refetching a timeline page.issue-to-agent.tsturns an issue record into a visible Paseo workspace and agent.parallel-review.tslaunches several reviewers concurrently and cleans them up.provider-settings.tscovers provider settings that are currently daemon config-backed.
Provider profiles, provider env vars, custom binaries, and additional models are still raw daemon config behavior. The SDK exposes them through client.config.get() and client.config.patch() until first-class provider settings RPCs exist.