From 28e7d23e328569ef485d330de2163dc9c67547dc Mon Sep 17 00:00:00 2001 From: Justin Carper Date: Wed, 17 Jun 2026 11:05:08 -0400 Subject: [PATCH] fix(deps): add missing @connectrpc/connect-node for @cursor/sdk @cursor/sdk@1.0.19 imports @connectrpc/connect-node at runtime (Http2SessionManager, createNodeHttpClient, compressionGzip) but only declares @connectrpc/connect and @connectrpc/connect-web in its deps, causing ERR_MODULE_NOT_FOUND on plugin load. Add @connectrpc/connect-node@^1.6.1 to dependencies. Pinned to v1 since the SDK bundles @connectrpc/connect@1.6.1; connect-node v2.x targets the connect v2.x API. Resolves to 1.7.0. --- package-lock.json | 26 ++++++++++++++++++++++++++ package.json | 1 + 2 files changed, 27 insertions(+) diff --git a/package-lock.json b/package-lock.json index 011313f..3024c33 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.4.1", "license": "MIT", "dependencies": { + "@connectrpc/connect-node": "^1.6.1", "@cursor/sdk": "^1.0.18", "@opencode-ai/plugin": "^1.17.7" }, @@ -55,6 +56,22 @@ "@bufbuild/protobuf": "^1.10.0" } }, + "node_modules/@connectrpc/connect-node": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@connectrpc/connect-node/-/connect-node-1.7.0.tgz", + "integrity": "sha512-6vaPIkG/NyhxlYgytLoR9KYbPhczEboFB2OYWkA9qvUz1K7efXfeGrlRxoLtpa+r8VxyIOw73w5ktNe743nD+A==", + "license": "Apache-2.0", + "dependencies": { + "undici": "^5.28.4" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "@bufbuild/protobuf": "^1.10.0", + "@connectrpc/connect": "1.7.0" + } + }, "node_modules/@connectrpc/connect-web": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/@connectrpc/connect-web/-/connect-web-1.7.0.tgz", @@ -2988,6 +3005,15 @@ "dev": true, "license": "MIT" }, + "node_modules/undici": { + "version": "6.27.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.27.0.tgz", + "integrity": "sha512-YmfV3YnEDzXRC5lZ2jWtWWHKGUm1zIt8AhesR1tens+HTNv+YZlN/dp6G727LOvMJ8xjP9Be7Y2Sdr96LDm+pg==", + "license": "MIT", + "engines": { + "node": ">=18.17" + } + }, "node_modules/undici-types": { "version": "7.24.6", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", diff --git a/package.json b/package.json index 57ec740..5bb4480 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "prepublishOnly": "npm run typecheck && npm test && npm run build" }, "dependencies": { + "@connectrpc/connect-node": "^1.6.1", "@cursor/sdk": "^1.0.18", "@opencode-ai/plugin": "^1.17.7" },