@cursor/sdk 1.4.0 → 1.4.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"local-executor.d.ts","sourceRoot":"","sources":["../../src/agent/local-executor.ts"],"names":[],"mappings":"AAyBA,OAAO,EAcL,KAAK,+BAA+B,EAKrC,MAAM,qCAAqC,CAAC;AA2F7C,OAAO,KAAK,EACV,WAAW,EAIZ,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAGV,eAAe,EACf,cAAc,EAEd,aAAa,EACd,MAAM,cAAc,CAAC;AAWtB,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,WAAW,CAAC;IACjB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAsFD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,kFAAkF;IAClF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IACnD,QAAQ,CAAC,cAAc,CAAC,EAAE,cAAc,CAAC;IACzC,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,yCAAyC,CAAC,EAAE,MAAM,CAAC;IAC5D,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACtD,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,+BAA+B,EAAE,CAAC;IACtE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,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CAAC,eAAe,CAAC,EAAE,SAAS,+BAA+B,EAAE,CAAC;IACtE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAChD;AA+MD,wBAAsB,mBAAmB,CACvC,yBAAyB,CAAC,EAAE,0BAA0B,GAAG,MAAM,EAC/D,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,mBAAmB,CAAC,CA2jB9B"}
@@ -0,0 +1,30 @@
1
+ import type { McpAllowlistInUseReport, McpServerBlockedByAllowlistReport } from "./run-store-public-types.js";
2
+ export declare function mcpAllowlistNotice(report: McpAllowlistInUseReport): string;
3
+ /**
4
+ * Prints which of the team's MCP allowlists a Cursor MCP endpoint applied to
5
+ * a server, once for each distinct server and report. A repeat prints nothing,
6
+ * and a failed write never reaches the run.
7
+ */
8
+ export declare class McpAllowlistNotices {
9
+ private readonly write;
10
+ private readonly printed;
11
+ constructor(write?: (line: string) => void);
12
+ readonly report: (report: McpAllowlistInUseReport) => void;
13
+ }
14
+ /** The endpoint's refusal as it wrote it, after the SDK's own prefix. */
15
+ export declare function mcpServerBlockedNotice(report: McpServerBlockedByAllowlistReport): string;
16
+ /**
17
+ * Prints why a Cursor MCP endpoint left a server out of a run, in the
18
+ * endpoint's own words, once for each server. One instance serves one run, so
19
+ * every run a server is left out of says so once, however often the run and
20
+ * its subagents read their MCP state. A failed write never reaches the run.
21
+ */
22
+ export declare class McpBlockedServerNotices {
23
+ private readonly write;
24
+ private readonly printed;
25
+ constructor(write?: (line: string) => void);
26
+ readonly report: (report: McpServerBlockedByAllowlistReport) => void;
27
+ }
28
+ /** Shared by every local agent in the process, so a server's notice prints once however many agents use it. */
29
+ export declare const processMcpAllowlistNotices: McpAllowlistNotices;
30
+ //# sourceMappingURL=mcp-allowlist-notice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-allowlist-notice.d.ts","sourceRoot":"","sources":["../../src/agent/mcp-allowlist-notice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iCAAiC,EAClC,MAAM,qCAAqC,CAAC;AAM7C,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM,CAE1E;AAED;;;;GAIG;AACH,qBAAa,mBAAmB;IAI5B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAE7C,YACmB,KAAK,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAEzC,EACC;IAEJ,QAAQ,CAAC,MAAM,WAAY,uBAAuB,KAAG,IAAI,CAcvD;CACH;AAED,yEAAyE;AACzE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,iCAAiC,GAAG,MAAM,CAExF;AAED;;;;;GAKG;AACH,qBAAa,uBAAuB;IAIhC,OAAO,CAAC,QAAQ,CAAC,KAAK;IAHxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAE7C,YACmB,KAAK,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAEzC,EACC;IAEJ,QAAQ,CAAC,MAAM,WAAY,iCAAiC,KAAG,IAAI,CAUjE;CACH;AAED,+GAA+G;AAC/G,eAAO,MAAM,0BAA0B,EAAE,mBAA+C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cursor/sdk",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "TypeScript SDK for Cursor agents.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -101,11 +101,11 @@
101
101
  "zod": "4.6.7"
102
102
  },
103
103
  "optionalDependencies": {
104
- "@cursor/sdk-darwin-arm64": "1.4.0",
105
- "@cursor/sdk-darwin-x64": "1.4.0",
106
- "@cursor/sdk-linux-arm64": "1.4.0",
107
- "@cursor/sdk-linux-x64": "1.4.0",
108
- "@cursor/sdk-win32-x64": "1.4.0"
104
+ "@cursor/sdk-darwin-arm64": "1.4.1",
105
+ "@cursor/sdk-darwin-x64": "1.4.1",
106
+ "@cursor/sdk-linux-arm64": "1.4.1",
107
+ "@cursor/sdk-linux-x64": "1.4.1",
108
+ "@cursor/sdk-win32-x64": "1.4.1"
109
109
  },
110
110
  "scripts": {
111
111
  "typecheck": "tsc -p tsconfig.json --noEmit",