diff --git a/apps/server/package.json b/apps/server/package.json index edeff5e6374c1..6cf310b4df228 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -40,7 +40,7 @@ }, "dependencies": { "@anthropic-ai/claude-agent-sdk": "^0.3.316", - "@cursor/sdk": "1.2.0", + "@cursor/sdk": "1.3.1", "@effect/platform-node": "catalog:", "@effect/platform-node-shared": "catalog:", "@ff-labs/fff-node": "0.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index facc16d194e60..18dae625475ba 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -842,8 +842,8 @@ importers: specifier: ^0.3.316 version: 0.3.316(@anthropic-ai/sdk@0.93.0(zod@4.6.5))(@modelcontextprotocol/sdk@1.29.0(supports-color@8.1.1)(zod@4.6.5))(zod@4.6.5) '@cursor/sdk': - specifier: 1.2.0 - version: 1.2.0(zod@4.6.5) + specifier: 1.3.1 + version: 1.3.1(patch_hash=9539e59be889271b1778056d5961d5d9ae4764ac06ae913ad4de58cbe60c5067)(zod@4.6.5) '@effect/platform-node': specifier: 4.1.2 version: 4.1.2(bufferutil@4.1.0)(effect@4.1.2)(redis@6.2.1)(utf-8-validate@6.0.6) @@ -3617,72 +3617,36 @@ packages: resolution: {integrity: sha512-bPlN9S9O1A0euCpEWE4qnvB5YDuyYVsUTrxSgmAM1Is0j4tICHoVyOVAXfWMP/kS9ZrjvyIXWV2PmomiAXXqOw==} engines: {node: '>=20.19.0'} - '@cursor/sdk-darwin-arm64@1.2.0': - resolution: {integrity: sha512-UkZ/RdxKCpOQ85nRgzSq+g0h+gIw36/lCEvQvomhs5EkSFZW3OwbeEzkAU3UYglZ7t3RNHj3mc5C5cdDtHguvw==} - cpu: [arm64] - os: [darwin] - hasBin: true - '@cursor/sdk-darwin-arm64@1.3.1': resolution: {integrity: sha512-5JXgVJYeFPxXjDqnu1ha/rAmH+ATFh4abdx199x8E/RcYYM++9b55oJXO3GYv1/9/4Qa9RsE5JkHRY6FYc5vQw==} cpu: [arm64] os: [darwin] hasBin: true - '@cursor/sdk-darwin-x64@1.2.0': - resolution: {integrity: sha512-mJTFdX+qv9dHAm59tT7uq7ci7+BDvFoNk4gdF2zGp9SLULicY+FdFD64p1qLen1bX5Y2soZaX5mWBy7BfObjcg==} - cpu: [x64] - os: [darwin] - hasBin: true - '@cursor/sdk-darwin-x64@1.3.1': resolution: {integrity: sha512-yHzIRER8IpOpIH/CUigquuwqvcjCEe62xV6OiJHzRfgApdnzxCjC8JMhLZP2M08/dofyZu9xeo7yr43H6oSRTA==} cpu: [x64] os: [darwin] hasBin: true - '@cursor/sdk-linux-arm64@1.2.0': - resolution: {integrity: sha512-Rs+cd5snuhxMAHkpqRfEGPB1qAsfqSOYJh5SOHZTOWy2LkRVO62WHwd4x80C2emj+dosTV5WAcuF2kMKKcrDJg==} - cpu: [arm64] - os: [linux] - hasBin: true - '@cursor/sdk-linux-arm64@1.3.1': resolution: {integrity: sha512-8wI7DUSQtJ7Rkyj5AhNONeR0M+5bjhR0qo8GJEEmRs6isi072sNPsFXwfhlzX7bhbtsX/FCtvsTG/vpam48ObA==} cpu: [arm64] os: [linux] hasBin: true - '@cursor/sdk-linux-x64@1.2.0': - resolution: {integrity: sha512-ainsGAFtkWTBZrLABp82Hvfv7VB/FxmZHE42qMVotFTRDwOY2iduvhSig910bVxv+kw3S00Srmu/9CxklLwhbw==} - cpu: [x64] - os: [linux] - hasBin: true - '@cursor/sdk-linux-x64@1.3.1': resolution: {integrity: sha512-jIwzTr3KhMtU4aJc8x0i1RlcBKttqcVYhor9FI/h1qJQm03yTgSwhyZjsMvfBHPQ5KoYDFVdu47S1dIhwaSWZA==} cpu: [x64] os: [linux] hasBin: true - '@cursor/sdk-win32-x64@1.2.0': - resolution: {integrity: sha512-p3rkyta6R/nXIukd3/ifJq32otkkGoUi41T2jxnHbPHMhzE2F8OuJQGBVmORuQLMr+bIGGVZmCxertgs4WgzcQ==} - cpu: [x64] - os: [win32] - hasBin: true - '@cursor/sdk-win32-x64@1.3.1': resolution: {integrity: sha512-hqYllGgY27eaq+w035PebKdoc/JswcrvOSNCniqq/nicLXgWdK5zdKiAs5MyWUr73HGGL1sK0aiE7WdxbIKKVw==} cpu: [x64] os: [win32] hasBin: true - '@cursor/sdk@1.2.0': - resolution: {integrity: sha512-Nqm2U0zTWrYEDCv3Rdwsfa1gYZWsg+JnY+I2F8BwWSAr3FNo0TZWwyHWoWngZgriF1w02fJ4gjJWaul9zysvgQ==} - engines: {node: '>=22.13'} - peerDependencies: - zod: ^3.25.0 || ^4.0.0 - '@cursor/sdk@1.3.1': resolution: {integrity: sha512-Mn0gK8V+5BkOqm22J2ocU+1BrqnNH8QcK9kmA7SkRuawDOeq2ABC2BIZq9gRnF3z68x/I7J/ZU8jl6DcshCVUA==} engines: {node: '>=22.13'} @@ -13728,50 +13692,21 @@ snapshots: '@csstools/css-tokenizer@4.0.1': {} - '@cursor/sdk-darwin-arm64@1.2.0': - optional: true - '@cursor/sdk-darwin-arm64@1.3.1': optional: true - '@cursor/sdk-darwin-x64@1.2.0': - optional: true - '@cursor/sdk-darwin-x64@1.3.1': optional: true - '@cursor/sdk-linux-arm64@1.2.0': - optional: true - '@cursor/sdk-linux-arm64@1.3.1': optional: true - '@cursor/sdk-linux-x64@1.2.0': - optional: true - '@cursor/sdk-linux-x64@1.3.1': optional: true - '@cursor/sdk-win32-x64@1.2.0': - optional: true - '@cursor/sdk-win32-x64@1.3.1': optional: true - '@cursor/sdk@1.2.0(zod@4.6.5)': - dependencies: - '@bufbuild/protobuf': 1.10.0 - '@connectrpc/connect': 1.7.0(@bufbuild/protobuf@1.10.0) - '@connectrpc/connect-web': 1.7.0(@bufbuild/protobuf@1.10.0)(@connectrpc/connect@1.7.0(@bufbuild/protobuf@1.10.0)) - '@statsig/js-client': 3.31.0 - zod: 4.6.5 - optionalDependencies: - '@cursor/sdk-darwin-arm64': 1.2.0 - '@cursor/sdk-darwin-x64': 1.2.0 - '@cursor/sdk-linux-arm64': 1.2.0 - '@cursor/sdk-linux-x64': 1.2.0 - '@cursor/sdk-win32-x64': 1.2.0 - '@cursor/sdk@1.3.1(patch_hash=9539e59be889271b1778056d5961d5d9ae4764ac06ae913ad4de58cbe60c5067)(zod@4.6.5)': dependencies: '@bufbuild/protobuf': 1.10.0 diff --git a/scripts/build-desktop-artifact.test.ts b/scripts/build-desktop-artifact.test.ts index d71622b411de1..c206b15f8548f 100644 --- a/scripts/build-desktop-artifact.test.ts +++ b/scripts/build-desktop-artifact.test.ts @@ -21,6 +21,8 @@ import * as Schema from "effect/Schema"; import * as Stream from "effect/Stream"; import { ChildProcess, ChildProcessSpawner } from "effect/process"; +import cursorPackageJson from "../packages/provider-cursor/package.json" with { type: "json" }; + import serverPackageJson from "../apps/server/package.json" with { type: "json" }; import { @@ -665,6 +667,10 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => { ); it("pins floating patched dependencies to the version the patch names", () => { + assert.strictEqual( + serverPackageJson.dependencies["@cursor/sdk"], + cursorPackageJson.dependencies["@cursor/sdk"], + ); const patches = { "@ff-labs/fff-node@0.11.0": "patches/@ff-labs__fff-node@0.11.0.patch", "effect@4.0.0-beta.73": "patches/effect@4.0.0-beta.73.patch",