claude-bridge-cli 1.2.0 → 1.2.2

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/lib/bridge.js +10 -1
  2. package/package.json +1 -1
package/lib/bridge.js CHANGED
@@ -347,7 +347,16 @@ 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 settings = JSON.stringify({
351
+ permissions: {
352
+ defaultMode: "acceptEdits",
353
+ allow: ["Read", "Write", "Edit", "Bash", "Grep", "Glob", "WebFetch", "WebSearch",
354
+ "Task", "TaskCreate", "TaskList", "TaskGet", "TaskUpdate", "NotebookEdit"],
355
+ deny: ["AskUserQuestion"],
356
+ }
357
+ });
358
+ const args = ["-p", `@${tmpFile}`, "--output-format", "json",
359
+ "--settings", settings, "--permission-mode", "acceptEdits"];
351
360
  if (session_id) {
352
361
  const sessionExists = scanSessionFiles().some(s => s.id === session_id);
353
362
  args.push(sessionExists ? "--resume" : "--session-id", session_id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-bridge-cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Use Claude Code from your browser. Runs a local server that connects your browser tools to the Claude CLI.",
5
5
  "main": "lib/bridge.js",
6
6
  "bin": {