open-agents-ai 0.95.0 → 0.95.1

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 +5 -18
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -33180,7 +33180,6 @@ var init_voice = __esm({
33180
33180
  // 5 min — may need to compile
33181
33181
  });
33182
33182
  this.mlxInstalled = true;
33183
- renderInfo("MLX Audio installed successfully.");
33184
33183
  } catch (err) {
33185
33184
  try {
33186
33185
  execSync27(`${py} -m pip install mlx-audio --user --quiet`, {
@@ -33188,7 +33187,6 @@ var init_voice = __esm({
33188
33187
  timeout: 3e5
33189
33188
  });
33190
33189
  this.mlxInstalled = true;
33191
- renderInfo("MLX Audio installed successfully (user site-packages).");
33192
33190
  } catch (err2) {
33193
33191
  throw new Error(`Failed to install mlx-audio. Try manually: pip install mlx-audio
33194
33192
  Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
@@ -33342,18 +33340,8 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
33342
33340
  try {
33343
33341
  const result = execSync27(`node -e "try { require('onnxruntime-node'); console.log('OK'); } catch(e) { console.log('FAIL:' + e.message); }"`, { cwd: voiceDir(), stdio: "pipe", timeout: 15e3, env: { ...process.env, NODE_PATH: join41(voiceDir(), "node_modules") } });
33344
33342
  const output = result.toString().trim();
33345
- if (output === "OK")
33346
- return true;
33347
- if (output.startsWith("FAIL:")) {
33348
- renderWarning(`ONNX runtime probe failed: ${output.slice(5)}`);
33349
- return false;
33350
- }
33351
- return false;
33352
- } catch (err) {
33353
- const msg = err instanceof Error ? err.message : String(err);
33354
- if (msg.includes("CPUID") || msg.includes("unknown cpu") || msg.includes("signal")) {
33355
- renderWarning(`ONNX runtime is not compatible with this CPU (${process.platform}-${arch}).`);
33356
- }
33343
+ return output === "OK";
33344
+ } catch {
33357
33345
  return false;
33358
33346
  }
33359
33347
  };
@@ -33446,10 +33434,11 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
33446
33434
  received += value.length;
33447
33435
  if (contentLength > 0) {
33448
33436
  const pct = Math.round(received / contentLength * 100);
33449
- process.stdout.write(`\r ${c2.dim(` ${pct}% (${formatBytes2(received)} / ${formatBytes2(contentLength)})`)}`);
33437
+ if (pct === 25 || pct === 50 || pct === 75 || pct === 100) {
33438
+ renderInfo(` ${pct}% (${formatBytes2(received)} / ${formatBytes2(contentLength)})`);
33439
+ }
33450
33440
  }
33451
33441
  }
33452
- process.stdout.write("\r" + " ".repeat(60) + "\r");
33453
33442
  const fullBuffer = Buffer.concat(chunks);
33454
33443
  writeFileSync11(onnxPath, fullBuffer);
33455
33444
  renderInfo(`${model.label} model downloaded (${formatBytes2(fullBuffer.length)}).`);
@@ -33467,12 +33456,10 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
33467
33456
  throw new Error(`Model files not found for ${this.modelId}`);
33468
33457
  }
33469
33458
  this.config = JSON.parse(readFileSync22(configPath, "utf8"));
33470
- renderInfo("Loading voice model...");
33471
33459
  this.session = await this.ort.InferenceSession.create(onnxPath, {
33472
33460
  executionProviders: ["cpu"],
33473
33461
  graphOptimizationLevel: "all"
33474
33462
  });
33475
- renderInfo("Voice model loaded.");
33476
33463
  }
33477
33464
  };
33478
33465
  narration = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.95.0",
3
+ "version": "0.95.1",
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",