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:
Mohamed Boudra
2026-08-10 13:22:20 +02:00
committed by GitHub
parent 05a0cabc07
commit 7954babca6
24 changed files with 1956 additions and 197 deletions
+6 -10
View File
@@ -12,18 +12,14 @@ export async function createOpenAndArchiveWorkspace(url: string, cwd: string): P
try {
await client.connect();
const created = await client.workspaces.create(cwd);
if (!created.workspace) {
throw new Error(created.error ?? "Workspace creation failed");
}
const created = await client.workspaces.create({
source: { kind: "directory", path: cwd },
title: "Fresh SDK workspace",
});
const opened = await client.workspaces.open(cwd);
if (!opened.workspace) {
throw new Error(opened.error ?? "Workspace open failed");
}
await opened.workspace.refetch();
await opened.workspace.archive();
await opened.refresh();
await created.archive();
} finally {
await client.close();
}