Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions build/npm/postinstall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,21 +288,6 @@ async function main() {

fs.writeFileSync(stateFile, JSON.stringify(_state));
fs.writeFileSync(stateContentsFile, JSON.stringify(computeContents()));

// Temporary: patch @github/copilot-sdk session.js to fix ESM import
// (missing .js extension on vscode-jsonrpc/node). Fixed upstream in v0.1.32.
// TODO: Remove once @github/copilot-sdk is updated to >=0.1.32
for (const dir of ['', 'remote']) {
const sessionFile = path.join(root, dir, 'node_modules', '@github', 'copilot-sdk', 'dist', 'session.js');
if (fs.existsSync(sessionFile)) {
const content = fs.readFileSync(sessionFile, 'utf8');
const patched = content.replace(/from "vscode-jsonrpc\/node"/g, 'from "vscode-jsonrpc/node.js"');
if (content !== patched) {
fs.writeFileSync(sessionFile, patched);
log(dir || '.', 'Patched @github/copilot-sdk session.js (vscode-jsonrpc ESM import fix)');
}
}
}
}

main().catch(err => {
Expand Down
179 changes: 33 additions & 146 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@
},
"dependencies": {
"@anthropic-ai/sandbox-runtime": "0.0.42",
"@github/copilot": "^1.0.4-0",
"@github/copilot-sdk": "^0.1.32",
"@github/copilot": "^1.0.11",
"@github/copilot-sdk": "^0.2.0",
"@microsoft/1ds-core-js": "^3.2.13",
"@microsoft/1ds-post-js": "^3.2.13",
"@parcel/watcher": "^2.5.6",
Expand Down
Loading
Loading