claude-bridge-cli 1.2.0 → 1.2.1
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/lib/bridge.js +2 -1
- package/package.json +1 -1
package/lib/bridge.js
CHANGED
|
@@ -347,7 +347,8 @@ function askClaude(config, { prompt, session_id, images, cwd, plan_mode, allow_t
|
|
|
347
347
|
const tmpFile = path.join(os.tmpdir(), `claude-prompt-${Date.now()}-${Math.random().toString(36).slice(2)}.txt`);
|
|
348
348
|
fs.writeFileSync(tmpFile, finalPrompt, "utf8");
|
|
349
349
|
|
|
350
|
-
const args = ["-p", `@${tmpFile}`, "--output-format", "json"
|
|
350
|
+
const args = ["-p", `@${tmpFile}`, "--output-format", "json",
|
|
351
|
+
"--permission-mode", "acceptEdits"];
|
|
351
352
|
if (session_id) {
|
|
352
353
|
const sessionExists = scanSessionFiles().some(s => s.id === session_id);
|
|
353
354
|
args.push(sessionExists ? "--resume" : "--session-id", session_id);
|
package/package.json
CHANGED