orchestrating 0.1.11 → 0.1.13
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 +16 -7
- package/package.json +1 -1
package/bin/orch
CHANGED
|
@@ -321,12 +321,7 @@ if (adapter) {
|
|
|
321
321
|
promptParts.push(arg);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
const prompt = promptParts.join(" ");
|
|
325
|
-
if (!prompt) {
|
|
326
|
-
console.error(`Usage: orch ${command} "your prompt here"`);
|
|
327
|
-
console.error(` orch ${command} -c "follow up" # continue with message`);
|
|
328
|
-
process.exit(1);
|
|
329
|
-
}
|
|
324
|
+
const prompt = promptParts.join(" ") || (adapterFlags.continue ? "continue" : "hello");
|
|
330
325
|
|
|
331
326
|
// Confirmation-type tools — these need "yes" response, not permission grants
|
|
332
327
|
const CONFIRMATION_TOOLS = new Set(["ExitPlanMode", "EnterPlanMode"]);
|
|
@@ -488,7 +483,21 @@ if (adapter) {
|
|
|
488
483
|
process.stderr.write(`${DIM}[orch] Ignoring input — claude is still running${RESET}\n`);
|
|
489
484
|
return;
|
|
490
485
|
}
|
|
491
|
-
|
|
486
|
+
let promptText = msg.text || "continue";
|
|
487
|
+
// Save images to temp files so Claude can read them
|
|
488
|
+
if (msg.images && msg.images.length > 0) {
|
|
489
|
+
const tmpDir = os.tmpdir();
|
|
490
|
+
const imagePaths = [];
|
|
491
|
+
for (let i = 0; i < msg.images.length; i++) {
|
|
492
|
+
const ext = (msg.images[i].mediaType || "image/png").split("/")[1] || "png";
|
|
493
|
+
const tmpPath = path.join(tmpDir, `orch-image-${Date.now()}-${i}.${ext}`);
|
|
494
|
+
writeFileSync(tmpPath, Buffer.from(msg.images[i].data, "base64"));
|
|
495
|
+
imagePaths.push(tmpPath);
|
|
496
|
+
}
|
|
497
|
+
const fileList = imagePaths.map((p) => `[Attached image: ${p} — use Read tool to view]`).join("\n");
|
|
498
|
+
promptText = `${fileList}\n\n${promptText}`;
|
|
499
|
+
}
|
|
500
|
+
respawnWithContinue(promptText);
|
|
492
501
|
} else if (msg.type === "agent_permission" && msg.tool && msg.action === "allow") {
|
|
493
502
|
const scope = msg.scope || "session";
|
|
494
503
|
approvePermission(msg.tool, scope);
|