orchestrating 0.1.11 → 0.1.12
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/bin/orch +15 -1
- package/package.json +1 -1
package/bin/orch
CHANGED
|
@@ -488,7 +488,21 @@ if (adapter) {
|
|
|
488
488
|
process.stderr.write(`${DIM}[orch] Ignoring input — claude is still running${RESET}\n`);
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
|
|
491
|
+
let promptText = msg.text || "continue";
|
|
492
|
+
// Save images to temp files so Claude can read them
|
|
493
|
+
if (msg.images && msg.images.length > 0) {
|
|
494
|
+
const tmpDir = os.tmpdir();
|
|
495
|
+
const imagePaths = [];
|
|
496
|
+
for (let i = 0; i < msg.images.length; i++) {
|
|
497
|
+
const ext = (msg.images[i].mediaType || "image/png").split("/")[1] || "png";
|
|
498
|
+
const tmpPath = path.join(tmpDir, `orch-image-${Date.now()}-${i}.${ext}`);
|
|
499
|
+
writeFileSync(tmpPath, Buffer.from(msg.images[i].data, "base64"));
|
|
500
|
+
imagePaths.push(tmpPath);
|
|
501
|
+
}
|
|
502
|
+
const fileList = imagePaths.map((p) => `[Attached image: ${p} — use Read tool to view]`).join("\n");
|
|
503
|
+
promptText = `${fileList}\n\n${promptText}`;
|
|
504
|
+
}
|
|
505
|
+
respawnWithContinue(promptText);
|
|
492
506
|
} else if (msg.type === "agent_permission" && msg.tool && msg.action === "allow") {
|
|
493
507
|
const scope = msg.scope || "session";
|
|
494
508
|
approvePermission(msg.tool, scope);
|