open-agents-ai 0.58.0 → 0.59.0

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 +45 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -25039,6 +25039,50 @@ async function handleUpdate(subcommand, ctx) {
25039
25039
  return;
25040
25040
  }
25041
25041
  installSpinner.stop(`Update installed (v${info.latestVersion}).`);
25042
+ const rebuildSpinner = startInlineSpinner("Rebuilding native modules");
25043
+ const rebuildOk = await new Promise((resolve28) => {
25044
+ const child = exec("npm rebuild -g open-agents-ai 2>/dev/null || true", { timeout: 12e4 }, () => resolve28(true));
25045
+ child.stdout?.resume();
25046
+ child.stderr?.resume();
25047
+ });
25048
+ rebuildSpinner.stop(rebuildOk ? "Native modules rebuilt." : "Native rebuild skipped.");
25049
+ const { existsSync: fsExists } = await import("node:fs");
25050
+ const { join: pathJoin } = await import("node:path");
25051
+ const { homedir: getHome } = await import("node:os");
25052
+ const venvDir = pathJoin(getHome(), ".open-agents", "venv");
25053
+ const venvPip = pathJoin(venvDir, "bin", "pip");
25054
+ if (fsExists(venvPip)) {
25055
+ const pySpinner = startInlineSpinner("Upgrading Python venv packages");
25056
+ const pyOk = await new Promise((resolve28) => {
25057
+ const child = exec(`"${venvPip}" install --upgrade moondream-station pytesseract Pillow opencv-python-headless numpy 2>/dev/null || true`, { timeout: 3e5 }, (err) => resolve28(!err));
25058
+ child.stdout?.resume();
25059
+ child.stderr?.resume();
25060
+ });
25061
+ pySpinner.stop(pyOk ? "Python packages upgraded." : "Python upgrade skipped.");
25062
+ } else {
25063
+ const pySpinner = startInlineSpinner("Setting up Python venv & deps");
25064
+ await ensureVisionDeps((msg) => {
25065
+ pySpinner.stop(msg);
25066
+ }).catch(() => {
25067
+ });
25068
+ pySpinner.stop("Python deps bootstrapped.");
25069
+ }
25070
+ const cfSpinner = startInlineSpinner("Checking cloudflared");
25071
+ let hasCf = false;
25072
+ try {
25073
+ const { execSync: es } = await import("node:child_process");
25074
+ es("which cloudflared", { stdio: "pipe", timeout: 3e3 });
25075
+ hasCf = true;
25076
+ } catch {
25077
+ }
25078
+ if (!hasCf) {
25079
+ cfSpinner.stop("Installing cloudflared...");
25080
+ ensureCloudflaredBackground((msg) => renderInfo(msg));
25081
+ await new Promise((r) => setTimeout(r, 1e3));
25082
+ } else {
25083
+ cfSpinner.stop("cloudflared ready.");
25084
+ }
25085
+ ensureTranscribeCliBackground();
25042
25086
  const reloadSpinner = startInlineSpinner("Loading");
25043
25087
  await new Promise((r) => setTimeout(r, 400));
25044
25088
  ctx.contextSave?.();
@@ -25117,6 +25161,7 @@ var init_commands = __esm({
25117
25161
  init_updater();
25118
25162
  init_oa_directory();
25119
25163
  init_setup();
25164
+ init_listen();
25120
25165
  init_dist();
25121
25166
  }
25122
25167
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.58.0",
3
+ "version": "0.59.0",
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",