claude-bridge-cli 1.1.2 → 1.1.4
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 +4 -1
- 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",
|
|
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