xcode-copilot-server 4.0.2 → 4.0.4

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.
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Register the ESM resolution hook before loading the main entry point.
4
+ // This must happen via dynamic import() so the hook is active when
5
+ // @github/copilot-sdk's static imports are resolved.
6
+ import "../dist/fix-jsonrpc-import.js";
7
+ await import("../dist/index.js");
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Node.js module resolution hook that fixes a missing `.js` extension in
3
+ * @github/copilot-sdk's import of vscode-jsonrpc/node.
4
+ *
5
+ * See https://github.com/github/copilot-sdk/issues/707
6
+ */
7
+ import { register } from "node:module";
8
+ register("data:text/javascript," +
9
+ encodeURIComponent(`
10
+ export function resolve(specifier, context, nextResolve) {
11
+ if (specifier === "vscode-jsonrpc/node") {
12
+ return nextResolve("vscode-jsonrpc/node.js", context);
13
+ }
14
+ return nextResolve(specifier, context);
15
+ }
16
+ `), import.meta.url);
17
+ //# sourceMappingURL=fix-jsonrpc-import.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fix-jsonrpc-import.js","sourceRoot":"","sources":["../src/fix-jsonrpc-import.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,QAAQ,CACN,uBAAuB;IACrB,kBAAkB,CAAC;;;;;;;KAOlB,CAAC,EACJ,MAAM,CAAC,IAAI,CAAC,GAAG,CAChB,CAAC"}
package/dist/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xcode-copilot-server",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "OpenAI-compatible proxy API server for Xcode, powered by GitHub Copilot",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -12,9 +12,10 @@
12
12
  "node": "25.6.0"
13
13
  },
14
14
  "bin": {
15
- "xcode-copilot-server": "dist/index.js"
15
+ "xcode-copilot-server": "bin/xcode-copilot-server.mjs"
16
16
  },
17
17
  "files": [
18
+ "bin/",
18
19
  "dist/",
19
20
  "config.json5"
20
21
  ],