@cursor/sdk 1.0.20 → 1.0.21

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.
@@ -3,14 +3,15 @@ import type { Interceptor, Transport } from "@connectrpc/connect";
3
3
  * Runtime-agnostic Connect transport seam.
4
4
  *
5
5
  * The SDK's RPC layer must not statically import `@connectrpc/connect-node`,
6
- * because that couples the whole load path to Node and forces Bun/Deno to
7
- * resolve a Node-only package at import time. This module is the single place
8
- * that decides which Connect transport implementation to use and loads it
9
- * dynamically:
6
+ * because that couples the whole load path to Node and forces fetch-only
7
+ * runtimes to resolve a Node-only package at import time. This module is the
8
+ * single place that decides which Connect transport implementation to use and
9
+ * loads it dynamically:
10
10
  *
11
- * - **Node** → `@connectrpc/connect-node` (unchanged behavior, including the
12
- * HTTP/1.1 vs HTTP/2 `httpVersion` selection the callers already compute).
13
- * - **Bun / Deno** → `@connectrpc/connect-web` (fetch-based; no HTTP/2 tuning).
11
+ * - **Node / Bun** → `@connectrpc/connect-node` (native HTTP/2 bidi, including
12
+ * the HTTP/1.1 vs HTTP/2 `httpVersion` selection the callers already compute).
13
+ * Bun implements `node:http2`, so it uses the same path as Node.
14
+ * - **Deno / other fetch-only runtimes** → `@connectrpc/connect-web` (fetch).
14
15
  * - **Embedder override** → whatever `setConnectTransportFactory` installs.
15
16
  *
16
17
  * Call sites keep their synchronous shape via {@link createLazyConnectTransport}:
@@ -20,9 +21,8 @@ import type { Interceptor, Transport } from "@connectrpc/connect";
20
21
  export interface ConnectTransportSeamOptions {
21
22
  baseUrl: string;
22
23
  /**
23
- * Only consumed by the Node (`connect-node`) transport. The fetch-based
24
- * transport used on Bun/Deno always speaks HTTP/1.1-style fetch and ignores
25
- * this; it is retained on the seam so the Node path is byte-for-byte unchanged.
24
+ * Consumed by the connect-node transport (Node and Bun). The fetch-based
25
+ * transport used on Deno/browser ignores it.
26
26
  */
27
27
  httpVersion: "1.1" | "2";
28
28
  interceptors?: Interceptor[];
@@ -1 +1 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/agent/transport.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,WAAW,EAEX,SAAS,EAEV,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,EAAE,KAAK,GAAG,GAAG,CAAC;IACzB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,MAAM,uBAAuB,GAAG,CACpC,OAAO,EAAE,2BAA2B,KACjC,OAAO,CAAC,SAAS,CAAC,CAAC;AAIxB;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,uBAAuB,GAAG,SAAS,GAC3C,IAAI,CAEN;AAoCD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,SAAS,CAAC,CAEpB;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,2BAA2B,GACnC,SAAS,CAsDX"}
1
+ {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/agent/transport.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,WAAW,EAEX,SAAS,EAEV,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,EAAE,KAAK,GAAG,GAAG,CAAC;IACzB,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,MAAM,uBAAuB,GAAG,CACpC,OAAO,EAAE,2BAA2B,KACjC,OAAO,CAAC,SAAS,CAAC,CAAC;AAIxB;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,uBAAuB,GAAG,SAAS,GAC3C,IAAI,CAEN;AAiCD;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,SAAS,CAAC,CAEpB;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,2BAA2B,GACnC,SAAS,CAsDX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cursor/sdk",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "TypeScript SDK for Cursor agents.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -70,23 +70,18 @@
70
70
  "dependencies": {
71
71
  "@bufbuild/protobuf": "1.10.0",
72
72
  "@connectrpc/connect": "^1.6.1",
73
+ "@connectrpc/connect-node": "^1.6.1",
73
74
  "@connectrpc/connect-web": "^1.6.1",
74
75
  "@statsig/js-client": "3.31.0",
75
76
  "zod": "^3.25.0"
76
77
  },
77
- "optionalDependencies": {
78
- "@cursor/sdk-darwin-arm64": "1.0.20",
79
- "@cursor/sdk-darwin-x64": "1.0.20",
80
- "@cursor/sdk-linux-arm64": "1.0.20",
81
- "@cursor/sdk-linux-x64": "1.0.20",
82
- "@cursor/sdk-win32-x64": "1.0.20"
83
- },
84
78
  "devDependencies": {
85
79
  "@anysphere/agent-client": "workspace:*",
86
80
  "@anysphere/agent-core": "workspace:*",
87
81
  "@anysphere/agent-exec": "workspace:*",
88
82
  "@anysphere/agent-kv": "workspace:*",
89
83
  "@anysphere/analytics-client": "workspace:*",
84
+ "@anysphere/analytics-types": "workspace:*",
90
85
  "@anysphere/bidi-connect": "workspace:*",
91
86
  "@anysphere/context": "workspace:*",
92
87
  "@anysphere/cursor-sdk-local-runtime": "workspace:*",
@@ -112,5 +107,12 @@
112
107
  "vitest": "^4.0.18",
113
108
  "webpack": "^5.98.0",
114
109
  "zod": "^3.25.0"
110
+ },
111
+ "optionalDependencies": {
112
+ "@cursor/sdk-darwin-arm64": "1.0.21",
113
+ "@cursor/sdk-darwin-x64": "1.0.21",
114
+ "@cursor/sdk-linux-arm64": "1.0.21",
115
+ "@cursor/sdk-linux-x64": "1.0.21",
116
+ "@cursor/sdk-win32-x64": "1.0.21"
115
117
  }
116
118
  }