@slock-ai/daemon 0.11.0 → 0.12.0

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/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -369,7 +369,8 @@ var ClaudeDriver = class {
369
369
  const proc = spawn("claude", args2, {
370
370
  cwd: ctx.workingDirectory,
371
371
  stdio: ["pipe", "pipe", "pipe"],
372
- env: spawnEnv
372
+ env: spawnEnv,
373
+ shell: process.platform === "win32"
373
374
  });
374
375
  const stdinMsg = JSON.stringify({
375
376
  type: "user",
@@ -544,7 +545,8 @@ var CodexDriver = class {
544
545
  const proc = spawn2("codex", args2, {
545
546
  cwd: ctx.workingDirectory,
546
547
  stdio: ["pipe", "pipe", "pipe"],
547
- env: spawnEnv
548
+ env: spawnEnv,
549
+ shell: process.platform === "win32"
548
550
  });
549
551
  return { process: proc };
550
552
  }
@@ -1202,9 +1204,10 @@ var require2 = createRequire(import.meta.url);
1202
1204
  var DAEMON_VERSION = require2("../package.json").version;
1203
1205
  function detectRuntimes() {
1204
1206
  const detected = [];
1207
+ const cmd = process.platform === "win32" ? "where" : "which";
1205
1208
  for (const rt of RUNTIMES) {
1206
1209
  try {
1207
- execSync2(`which ${rt.binary}`, { stdio: "pipe" });
1210
+ execSync2(`${cmd} ${rt.binary}`, { stdio: "pipe" });
1208
1211
  detected.push(rt.id);
1209
1212
  } catch {
1210
1213
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slock-ai/daemon",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"