kill-switch-mcp 1.1.2 → 1.1.3

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,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // Node 22+ has native TypeScript support (--experimental-strip-types).
4
- // tsx's register() conflicts with Node 24's native .ts loader, causing
5
- // ERR_REQUIRE_CYCLE_MODULE on dynamic import() of .ts action files.
6
- // Only register tsx for older Node versions that lack native TS support.
3
+ // The package ships pre-compiled JS in dist/.
4
+ // For user action files (bots/<name>/actions/*.ts) which live outside
5
+ // node_modules, we register tsx on Node <22 so they can be dynamically
6
+ // imported. Node 22+ handles .ts natively via --experimental-strip-types.
7
7
  const major = parseInt(process.versions.node.split('.')[0]);
8
8
  if (major < 22) {
9
9
  const { register } = await import('tsx/esm/api');
10
10
  register();
11
11
  }
12
12
 
13
- await import('../src/server.ts');
13
+ await import('../dist/server.js');