open-agents-ai 0.184.81 → 0.184.83

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/dist/index.js +26 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41933,10 +41933,20 @@ async function ensureVisionDeps(onInfo, getSudoPassword) {
41933
41933
  const cachedPasswordRef = { value: null };
41934
41934
  const getPassword = getSudoPassword ?? (() => Promise.resolve(null));
41935
41935
  const allDeps = [
41936
+ // Vision + OCR
41936
41937
  { binary: "tesseract", label: "tesseract-ocr", pkgs: { apt: "tesseract-ocr", dnf: "tesseract", pacman: "tesseract", brew: "tesseract", choco: "tesseract" } },
41937
41938
  { binary: "pdftotext", label: "poppler-utils", pkgs: { apt: "poppler-utils", dnf: "poppler-utils", pacman: "poppler", brew: "poppler", choco: "poppler" } },
41938
41939
  { binary: "gs", label: "ghostscript", pkgs: { apt: "ghostscript", dnf: "ghostscript", pacman: "ghostscript", brew: "ghostscript", choco: "ghostscript" } },
41939
- { binary: "ocrmypdf", label: "ocrmypdf", pkgs: { apt: "ocrmypdf", dnf: "ocrmypdf", pacman: "ocrmypdf", brew: "ocrmypdf", choco: "ocrmypdf" } }
41940
+ { binary: "ocrmypdf", label: "ocrmypdf", pkgs: { apt: "ocrmypdf", dnf: "ocrmypdf", pacman: "ocrmypdf", brew: "ocrmypdf", choco: "ocrmypdf" } },
41941
+ // Desktop interaction — screenshot + mouse control for desktop_click/desktop_describe
41942
+ ...process.platform === "darwin" ? [
41943
+ // macOS: screencapture is built-in, cliclick needed for mouse control
41944
+ { binary: "cliclick", label: "cliclick", pkgs: { brew: "cliclick" } }
41945
+ ] : process.platform === "linux" ? [
41946
+ // Linux: scrot for screenshots, xdotool for mouse/keyboard control
41947
+ { binary: "scrot", label: "scrot", pkgs: { apt: "scrot", dnf: "scrot", pacman: "scrot" } },
41948
+ { binary: "xdotool", label: "xdotool", pkgs: { apt: "xdotool", dnf: "xdotool", pacman: "xdotool" } }
41949
+ ] : []
41940
41950
  ];
41941
41951
  {
41942
41952
  const pm2 = detectPkgManager();
@@ -51491,9 +51501,20 @@ async function handleUpdate(subcommand, ctx) {
51491
51501
  const { execPath, argv } = process;
51492
51502
  try {
51493
51503
  const { spawn: spawnChild } = await import("node:child_process");
51504
+ if (ctx.hasActiveTask?.())
51505
+ ctx.abortActiveTask?.();
51506
+ ctx.exit();
51494
51507
  if (process.stdout.isTTY) {
51495
- process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?25h\x1B[?1049l\x1B[0m");
51508
+ process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[r\x1B[?25h\x1B[?1049l\x1B[0m");
51509
+ }
51510
+ if (process.stdin.isTTY && typeof process.stdin.setRawMode === "function") {
51511
+ process.stdin.setRawMode(false);
51496
51512
  }
51513
+ process.stdin.pause();
51514
+ process.stdin.removeAllListeners();
51515
+ process.removeAllListeners("SIGINT");
51516
+ process.removeAllListeners("SIGTERM");
51517
+ process.removeAllListeners("exit");
51497
51518
  const child = spawnChild(execPath, argv.slice(1), {
51498
51519
  stdio: "inherit",
51499
51520
  env: { ...process.env, __OA_RESUMED: resumeFlag },
@@ -51502,8 +51523,9 @@ async function handleUpdate(subcommand, ctx) {
51502
51523
  child.on("exit", (code) => {
51503
51524
  process.exit(code ?? 0);
51504
51525
  });
51505
- process.removeAllListeners("SIGINT");
51506
- process.removeAllListeners("SIGTERM");
51526
+ child.on("error", () => {
51527
+ process.exit(1);
51528
+ });
51507
51529
  } catch {
51508
51530
  process.stderr.write("\x1B[0m\nRestart oa manually to use the new version.\n");
51509
51531
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.184.81",
3
+ "version": "0.184.83",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",