gm-plugkit 2.0.1290 → 2.0.1291

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.
Files changed (2) hide show
  1. package/bootstrap.js +3 -9
  2. package/package.json +1 -1
package/bootstrap.js CHANGED
@@ -756,7 +756,7 @@ function startSpoolDaemon() {
756
756
  if (!fs.existsSync(wrapper)) {
757
757
  return { ok: false, error: `wrapper not at ${wrapper} — ensureReady() must run first` };
758
758
  }
759
- const runtime = process.platform === 'win32' ? 'bun.exe' : 'bun';
759
+ const runtime = process.execPath;
760
760
  const projectDir = process.env.CLAUDE_PROJECT_DIR || process.cwd();
761
761
  const spoolDir = path.join(projectDir, '.gm', 'exec-spool');
762
762
  fs.mkdirSync(spoolDir, { recursive: true });
@@ -772,14 +772,8 @@ function startSpoolDaemon() {
772
772
 
773
773
  const supervisor = path.join(__dirname, 'supervisor.js');
774
774
  if (process.env.PLUGKIT_SKIP_SUPERVISOR === '1' || !fs.existsSync(supervisor)) {
775
- let cmd = runtime;
776
- let args = [wrapper, 'spool'];
777
- try {
778
- require('child_process').execFileSync(runtime, ['--version'], { stdio: 'ignore' });
779
- } catch (_) {
780
- cmd = process.execPath;
781
- args = [wrapper, 'spool'];
782
- }
775
+ const cmd = runtime;
776
+ const args = [wrapper, 'spool'];
783
777
  const logFd = fs.openSync(logPath, 'a');
784
778
  try { fs.writeSync(logFd, `\n--- daemon spawn ${new Date().toISOString()} parent=${process.pid} (no supervisor) ---\n`); } catch (_) {}
785
779
  const child = require('child_process').spawn(cmd, args, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-plugkit",
3
- "version": "2.0.1290",
3
+ "version": "2.0.1291",
4
4
  "description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
5
5
  "main": "index.js",
6
6
  "bin": {