claude-bridge-cli 1.1.2 → 1.1.3

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 +4 -1
  2. package/package.json +1 -1
package/lib/bridge.js CHANGED
@@ -339,7 +339,7 @@ function askClaude(config, { prompt, session_id, images, cwd, plan_mode, allow_t
339
339
  }
340
340
  }
341
341
 
342
- const args = ["-p", finalPrompt, "--output-format", "json"];
342
+ const args = ["-p", "-", "--output-format", "json"];
343
343
  if (session_id) args.push("--session-id", session_id);
344
344
  if (plan_mode) args.push("--plan");
345
345
 
@@ -353,6 +353,9 @@ function askClaude(config, { prompt, session_id, images, cwd, plan_mode, allow_t
353
353
  shell: isWin,
354
354
  });
355
355
 
356
+ proc.stdin.write(finalPrompt);
357
+ proc.stdin.end();
358
+
356
359
  let stdout = "", stderr = "";
357
360
  proc.stdout.on("data", (d) => { stdout += d; });
358
361
  proc.stderr.on("data", (d) => { stderr += d; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-bridge-cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
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": {