@slock-ai/daemon 0.17.0 → 0.18.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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -390,7 +390,7 @@ var ClaudeDriver = class {
390
390
  if (ctx.config.sessionId) {
391
391
  args2.push("--resume", ctx.config.sessionId);
392
392
  }
393
- const spawnEnv = { ...process.env, FORCE_COLOR: "0" };
393
+ const spawnEnv = { ...process.env, FORCE_COLOR: "0", ...ctx.config.envVars || {} };
394
394
  delete spawnEnv.CLAUDECODE;
395
395
  const proc = spawn("claude", args2, {
396
396
  cwd: ctx.workingDirectory,
@@ -575,7 +575,7 @@ var CodexDriver = class {
575
575
  args2.push("-c", `model_reasoning_effort=${ctx.config.reasoningEffort}`);
576
576
  }
577
577
  args2.push(ctx.prompt);
578
- const spawnEnv = { ...process.env, FORCE_COLOR: "0", NO_COLOR: "1" };
578
+ const spawnEnv = { ...process.env, FORCE_COLOR: "0", NO_COLOR: "1", ...ctx.config.envVars || {} };
579
579
  const proc = spawn2("codex", args2, {
580
580
  cwd: ctx.workingDirectory,
581
581
  stdio: ["pipe", "pipe", "pipe"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slock-ai/daemon",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"