open-agents-ai 0.14.8 → 0.14.9

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 +48 -6
  2. package/package.json +1 -4
package/dist/index.js CHANGED
@@ -9134,13 +9134,40 @@ function findMicCaptureCommand() {
9134
9134
  }
9135
9135
  return null;
9136
9136
  }
9137
+ function ensureTranscribeCliBackground() {
9138
+ if (_bgInstallPromise)
9139
+ return;
9140
+ _bgInstallPromise = (async () => {
9141
+ try {
9142
+ const globalRoot = execSync10("npm root -g", {
9143
+ encoding: "utf-8",
9144
+ timeout: 5e3,
9145
+ stdio: ["pipe", "pipe", "pipe"]
9146
+ }).trim();
9147
+ if (existsSync11(join16(globalRoot, "transcribe-cli", "dist", "index.js"))) {
9148
+ return true;
9149
+ }
9150
+ } catch {
9151
+ }
9152
+ try {
9153
+ const { exec } = await import("node:child_process");
9154
+ return new Promise((resolve16) => {
9155
+ exec("npm i -g transcribe-cli", { timeout: 18e4 }, (err) => {
9156
+ resolve16(!err);
9157
+ });
9158
+ });
9159
+ } catch {
9160
+ return false;
9161
+ }
9162
+ })();
9163
+ }
9137
9164
  function getListenEngine(config) {
9138
9165
  if (!_engine) {
9139
9166
  _engine = new ListenEngine(config);
9140
9167
  }
9141
9168
  return _engine;
9142
9169
  }
9143
- var AUDIO_EXTENSIONS, VIDEO_EXTENSIONS, ListenEngine, _engine;
9170
+ var AUDIO_EXTENSIONS, VIDEO_EXTENSIONS, ListenEngine, _bgInstallPromise, _engine;
9144
9171
  var init_listen = __esm({
9145
9172
  "packages/cli/dist/tui/listen.js"() {
9146
9173
  "use strict";
@@ -9278,12 +9305,20 @@ var init_listen = __esm({
9278
9305
  }
9279
9306
  let tc = await this.loadTranscribeCli();
9280
9307
  if (!tc) {
9281
- this.emit("info", "transcribe-cli not found. Installing globally...");
9282
- try {
9283
- execSync10("npm i -g transcribe-cli", { stdio: "pipe", timeout: 12e4 });
9308
+ if (_bgInstallPromise) {
9309
+ this.emit("info", "Waiting for transcribe-cli install...");
9310
+ await _bgInstallPromise;
9284
9311
  this.transcribeCliAvailable = null;
9285
9312
  tc = await this.loadTranscribeCli();
9286
- } catch {
9313
+ }
9314
+ if (!tc) {
9315
+ this.emit("info", "Installing transcribe-cli...");
9316
+ try {
9317
+ execSync10("npm i -g transcribe-cli", { stdio: "pipe", timeout: 18e4 });
9318
+ this.transcribeCliAvailable = null;
9319
+ tc = await this.loadTranscribeCli();
9320
+ } catch {
9321
+ }
9287
9322
  }
9288
9323
  if (!tc) {
9289
9324
  return "Failed to install transcribe-cli. Try manually: npm i -g transcribe-cli";
@@ -9409,9 +9444,14 @@ var init_listen = __esm({
9409
9444
  */
9410
9445
  async transcribeFile(filePath, outputDir) {
9411
9446
  let tc = await this.loadTranscribeCli();
9447
+ if (!tc && _bgInstallPromise) {
9448
+ await _bgInstallPromise;
9449
+ this.transcribeCliAvailable = null;
9450
+ tc = await this.loadTranscribeCli();
9451
+ }
9412
9452
  if (!tc) {
9413
9453
  try {
9414
- execSync10("npm i -g transcribe-cli", { stdio: "pipe", timeout: 12e4 });
9454
+ execSync10("npm i -g transcribe-cli", { stdio: "pipe", timeout: 18e4 });
9415
9455
  this.transcribeCliAvailable = null;
9416
9456
  tc = await this.loadTranscribeCli();
9417
9457
  } catch {
@@ -9471,6 +9511,7 @@ var init_listen = __esm({
9471
9511
  }, timeoutMs);
9472
9512
  }
9473
9513
  };
9514
+ _bgInstallPromise = null;
9474
9515
  _engine = null;
9475
9516
  }
9476
9517
  });
@@ -14854,6 +14895,7 @@ async function startInteractive(config, repoPath) {
14854
14895
  end: () => statusBar.endContentWrite()
14855
14896
  });
14856
14897
  }
14898
+ ensureTranscribeCliBackground();
14857
14899
  const voiceEngine = new VoiceEngine();
14858
14900
  const streamRenderer = new StreamRenderer();
14859
14901
  if (savedSettings.voice) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.14.8",
3
+ "version": "0.14.9",
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",
@@ -48,8 +48,5 @@
48
48
  "glob": "^11.0.0",
49
49
  "ignore": "^6.0.2",
50
50
  "zod": "^3.24.1"
51
- },
52
- "optionalDependencies": {
53
- "transcribe-cli": "^2.0.0"
54
51
  }
55
52
  }