mcp-copilot-worker 1.0.1 → 1.0.2

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.
@@ -1,3 +1,16 @@
1
- #!/usr/bin/env -S node --import tsx
1
+ #!/usr/bin/env node
2
2
 
3
- import '../src/index.ts';
3
+ import { dirname, resolve } from 'node:path';
4
+ import { fileURLToPath, pathToFileURL } from 'node:url';
5
+
6
+ import { register } from 'tsx/esm/api';
7
+
8
+ const binDir = dirname(fileURLToPath(import.meta.url));
9
+ const entrypointUrl = pathToFileURL(resolve(binDir, '../src/index.ts')).href;
10
+ const unregister = register();
11
+
12
+ try {
13
+ await import(entrypointUrl);
14
+ } finally {
15
+ await unregister();
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-copilot-worker",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Copilot-only MCP worker with resumable background agents",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",