Skip to content

Commit 89504b2

Browse files
fix(sdk): cap @github/copilot-sdk below 1.0.29 (#2416)
copilot-sdk 1.0.29 depends on vscode-jsonrpc 10, which exports ./node but not ./node.js. The CLI's ESM import patch (the #449 workaround, run by the postinstall and by `squad upgrade`) rewrites copilot-sdk's import to vscode-jsonrpc/node.js, so Squad's Copilot adapter fails to load with ERR_PACKAGE_PATH_NOT_EXPORTED. This broke test/cli-packaging-smoke.test.ts on every PR into dev and breaks fresh global npm installs. Hold the SDK at 1.0.28 (vscode-jsonrpc 8.2.1) until #2415 makes the patch conditional. Closes #2414 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7b731ec commit 89504b2

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@bradygaster/squad-sdk': patch
3+
'@bradygaster/squad-cli': patch
4+
---
5+
6+
The interactive shell and other Copilot features no longer fail with `ERR_PACKAGE_PATH_NOT_EXPORTED` after a fresh install, because `@github/copilot-sdk` is now held below 1.0.29, whose `vscode-jsonrpc` 10 dependency breaks the CLI's ESM import patch (#2414). This is a temporary cap until #2415 makes that patch conditional.

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎packages/squad-sdk/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
"node": ">=22.5.0"
250250
},
251251
"dependencies": {
252-
"@github/copilot-sdk": "^1.0.19",
252+
"@github/copilot-sdk": ">=1.0.19 <1.0.29-0",
253253
"vscode-jsonrpc": "^9.0.3"
254254
},
255255
"optionalDependencies": {

0 commit comments

Comments
 (0)