Publish the TypeScript SDK and integration guides (#3141)
* feat(client): publish the TypeScript SDK surface Make the high-level client API usable for external integrations and document complete agent, workspace, provider, event, and recipe flows. * fix(client): correlate provider snapshots by daemon cwd Return the daemon's canonical snapshot identity so waitForReady can match updates for relative, tilde, and otherwise non-canonical paths without duplicating filesystem rules in the SDK. * test(server): make snapshot cwd assertion portable * fix(client): gate canonical provider snapshot waits Older daemons do not expose the canonical snapshot identity needed to correlate workspace updates safely. Require the advertised capability and fail with an update-host message instead of guessing across workspaces.
This commit is contained in:
@@ -1,12 +1,39 @@
|
||||
# @getpaseo/client
|
||||
|
||||
Paseo's JavaScript/TypeScript client package.
|
||||
TypeScript SDK for building integrations on top of a Paseo daemon.
|
||||
|
||||
```bash
|
||||
npm install @getpaseo/client
|
||||
```
|
||||
|
||||
```ts
|
||||
import { createPaseoClient } from "@getpaseo/client";
|
||||
|
||||
const client = createPaseoClient({ url: "ws://127.0.0.1:6767/ws" });
|
||||
await client.connect();
|
||||
|
||||
const agent = await client.agents.create({
|
||||
config: { provider: "codex/gpt-5.5" },
|
||||
cwd: "/Users/me/dev/storefront",
|
||||
prompt: "Review the current diff and name the riskiest change.",
|
||||
});
|
||||
|
||||
const result = await agent.waitForFinish();
|
||||
console.log(result.lastMessage);
|
||||
|
||||
await client.close();
|
||||
```
|
||||
|
||||
The public API is the package root. Imports under `@getpaseo/client/internal/*` are unsupported implementation details used by Paseo's own packages.
|
||||
|
||||
Read the [SDK documentation](https://paseo.sh/docs/sdk) for agents, workspaces, provider discovery, events, recipes, and the API reference. Runnable TypeScript patterns also live in [`examples/`](./examples/README.md).
|
||||
|
||||
## Runtime
|
||||
|
||||
The client needs a WebSocket implementation. Modern browsers and Node.js 22 provide one globally.
|
||||
|
||||
Use a WebSocket URL ending in `/ws`, such as `ws://127.0.0.1:6767/ws`. Pass `password` when the daemon requires authentication.
|
||||
|
||||
## Stability
|
||||
|
||||
This package is public so Paseo's published packages can depend on it cleanly.
|
||||
It is not a stable public SDK yet.
|
||||
|
||||
APIs, exports, runtime behavior, and types may change or disappear in any
|
||||
release without advance notice. Use it outside Paseo at your own risk until the
|
||||
package is explicitly documented as stable.
|
||||
The high-level API exported from `@getpaseo/client` is the supported SDK surface. The SDK and daemon remain protocol-compatible across versions, but newly added capabilities can require a newer daemon.
|
||||
|
||||
Reference in New Issue
Block a user