@slock-ai/daemon 0.17.0 → 0.19.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.
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -385,12 +385,14 @@ var ClaudeDriver = class {
|
|
|
385
385
|
"--mcp-config",
|
|
386
386
|
mcpConfigPath,
|
|
387
387
|
"--model",
|
|
388
|
-
ctx.config.model || "sonnet"
|
|
388
|
+
ctx.config.model || "sonnet",
|
|
389
|
+
"--disallowed-tools",
|
|
390
|
+
"EnterPlanMode,ExitPlanMode"
|
|
389
391
|
];
|
|
390
392
|
if (ctx.config.sessionId) {
|
|
391
393
|
args2.push("--resume", ctx.config.sessionId);
|
|
392
394
|
}
|
|
393
|
-
const spawnEnv = { ...process.env, FORCE_COLOR: "0" };
|
|
395
|
+
const spawnEnv = { ...process.env, FORCE_COLOR: "0", ...ctx.config.envVars || {} };
|
|
394
396
|
delete spawnEnv.CLAUDECODE;
|
|
395
397
|
const proc = spawn("claude", args2, {
|
|
396
398
|
cwd: ctx.workingDirectory,
|
|
@@ -575,7 +577,7 @@ var CodexDriver = class {
|
|
|
575
577
|
args2.push("-c", `model_reasoning_effort=${ctx.config.reasoningEffort}`);
|
|
576
578
|
}
|
|
577
579
|
args2.push(ctx.prompt);
|
|
578
|
-
const spawnEnv = { ...process.env, FORCE_COLOR: "0", NO_COLOR: "1" };
|
|
580
|
+
const spawnEnv = { ...process.env, FORCE_COLOR: "0", NO_COLOR: "1", ...ctx.config.envVars || {} };
|
|
579
581
|
const proc = spawn2("codex", args2, {
|
|
580
582
|
cwd: ctx.workingDirectory,
|
|
581
583
|
stdio: ["pipe", "pipe", "pipe"],
|