@pragma-sh/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @pragma-sh/sdk
2
+
3
+ Typed Node/Bun client for a Pragma host. Part of [Pragma](https://github.com/pragma-sh/pragma) — a desktop workspace for
4
+ running persistent, worktree-scoped coding agents.
5
+
6
+ Talks to a Pragma host's local HTTP gateway: projects, worktrees, tabs, agents,
7
+ scratchpads, whiteboards, fanouts, and event streams. Dual ESM/CJS with
8
+ TypeScript definitions.
9
+
10
+ ```sh
11
+ bun add @pragma-sh/sdk
12
+ ```
13
+
14
+ ```ts
15
+ import { PragmaClient } from "@pragma-sh/sdk";
16
+
17
+ // Inside a Pragma terminal both values are already in the environment.
18
+ const client = new PragmaClient();
19
+ const worktrees = await client.worktrees.list();
20
+ ```
21
+
22
+ Docs: <https://pragma-app.sh/docs/sdk/getting-started>
23
+
24
+ ## License
25
+
26
+ AGPL-3.0-only. See [LICENSE](https://github.com/pragma-sh/pragma/blob/main/LICENSE).