orchestrating 0.1.10 → 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.
Files changed (2) hide show
  1. package/bin/orch +16 -3
  2. package/package.json +1 -1
package/bin/orch CHANGED
@@ -322,9 +322,8 @@ if (adapter) {
322
322
  }
323
323
  }
324
324
  const prompt = promptParts.join(" ");
325
- if (!prompt && !adapterFlags.continue) {
325
+ if (!prompt) {
326
326
  console.error(`Usage: orch ${command} "your prompt here"`);
327
- console.error(` orch ${command} -c # continue last conversation`);
328
327
  console.error(` orch ${command} -c "follow up" # continue with message`);
329
328
  process.exit(1);
330
329
  }
@@ -489,7 +488,21 @@ if (adapter) {
489
488
  process.stderr.write(`${DIM}[orch] Ignoring input — claude is still running${RESET}\n`);
490
489
  return;
491
490
  }
492
- respawnWithContinue(msg.text || "continue");
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);
493
506
  } else if (msg.type === "agent_permission" && msg.tool && msg.action === "allow") {
494
507
  const scope = msg.scope || "session";
495
508
  approvePermission(msg.tool, scope);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrating",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Stream terminal sessions to the orchestrat.ing dashboard",
5
5
  "type": "module",
6
6
  "bin": {