open-agents-ai 0.68.0 → 0.68.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 +29 -48
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -24662,21 +24662,10 @@ function installOllamaLinux() {
24662
24662
  return false;
24663
24663
  }
24664
24664
  }
24665
- async function installOllamaMac(rl) {
24665
+ async function installOllamaMac(_rl) {
24666
24666
  if (!hasCmd("brew")) {
24667
24667
  process.stdout.write(`
24668
- ${c2.yellow("\u26A0")} Homebrew is not installed (needed for Ollama on macOS).
24669
-
24670
- `);
24671
- const installBrew = await ask(rl, ` ${c2.bold("Install Homebrew?")} (Y/n) `);
24672
- if (installBrew.toLowerCase() === "n") {
24673
- process.stdout.write(` ${c2.dim("Skipping Homebrew install.")}
24674
-
24675
- `);
24676
- return false;
24677
- }
24678
- process.stdout.write(`
24679
- ${c2.cyan("\u25CF")} Installing Homebrew...
24668
+ ${c2.cyan("\u25CF")} Homebrew not found. Installing automatically (needed for Ollama on macOS)...
24680
24669
 
24681
24670
  `);
24682
24671
  try {
@@ -24963,13 +24952,34 @@ async function doSetup(config, rl) {
24963
24952
  `);
24964
24953
  const ollamaInstalled = hasCmd("ollama");
24965
24954
  if (ollamaInstalled) {
24966
- process.stdout.write(` ${c2.cyan("\u25CF")} Ollama is installed but not running.
24955
+ process.stdout.write(` ${c2.cyan("\u25CF")} Ollama is installed but not running. Starting automatically...
24956
+ `);
24957
+ try {
24958
+ const child = spawn12("ollama", ["serve"], { stdio: "ignore", detached: true });
24959
+ child.unref();
24960
+ await new Promise((resolve28) => setTimeout(resolve28, 3e3));
24961
+ try {
24962
+ models = await fetchOllamaModels(config.backendUrl);
24963
+ process.stdout.write(` ${c2.green("\u2714")} Ollama is running.
24967
24964
 
24968
24965
  `);
24969
- const startOllama = await ask(rl, ` ${c2.bold("Start Ollama now?")} (Y/n) `);
24970
- if (startOllama.toLowerCase() !== "n") {
24966
+ } catch {
24967
+ process.stdout.write(` ${c2.yellow("\u26A0")} Ollama started but not responding yet. It may need a moment.
24968
+
24969
+ `);
24970
+ }
24971
+ } catch {
24972
+ process.stdout.write(` ${c2.yellow("\u26A0")} Could not start Ollama. Try running ${c2.bold("ollama serve")} manually.
24973
+
24974
+ `);
24975
+ }
24976
+ } else {
24977
+ process.stdout.write(` ${c2.cyan("\u25CF")} Ollama not found. Installing automatically...
24978
+ `);
24979
+ const installed = await autoInstallOllama(rl);
24980
+ if (installed) {
24971
24981
  process.stdout.write(`
24972
- ${c2.cyan("\u25CF")} Starting ollama serve in background...
24982
+ ${c2.cyan("\u25CF")} Starting ollama serve...
24973
24983
  `);
24974
24984
  try {
24975
24985
  const child = spawn12("ollama", ["serve"], { stdio: "ignore", detached: true });
@@ -24981,45 +24991,16 @@ async function doSetup(config, rl) {
24981
24991
 
24982
24992
  `);
24983
24993
  } catch {
24984
- process.stdout.write(` ${c2.yellow("\u26A0")} Ollama started but not responding yet. It may need a moment.
24994
+ process.stdout.write(` ${c2.yellow("\u26A0")} Ollama installed but not responding yet. Try ${c2.bold("ollama serve")} manually.
24985
24995
 
24986
24996
  `);
24987
24997
  }
24988
24998
  } catch {
24989
- process.stdout.write(` ${c2.yellow("\u26A0")} Could not start Ollama. Try running ${c2.bold("ollama serve")} manually.
24999
+ process.stdout.write(` ${c2.yellow("\u26A0")} Ollama installed. Start it with: ${c2.bold("ollama serve")}
24990
25000
 
24991
25001
  `);
24992
25002
  }
24993
25003
  }
24994
- } else {
24995
- const installOllama = await ask(rl, ` ${c2.bold("Install Ollama?")} (Y/n) `);
24996
- if (installOllama.toLowerCase() !== "n") {
24997
- const installed = await autoInstallOllama(rl);
24998
- if (installed) {
24999
- process.stdout.write(`
25000
- ${c2.cyan("\u25CF")} Starting ollama serve...
25001
- `);
25002
- try {
25003
- const child = spawn12("ollama", ["serve"], { stdio: "ignore", detached: true });
25004
- child.unref();
25005
- await new Promise((resolve28) => setTimeout(resolve28, 3e3));
25006
- try {
25007
- models = await fetchOllamaModels(config.backendUrl);
25008
- process.stdout.write(` ${c2.green("\u2714")} Ollama is running.
25009
-
25010
- `);
25011
- } catch {
25012
- process.stdout.write(` ${c2.yellow("\u26A0")} Ollama installed but not responding yet. Try ${c2.bold("ollama serve")} manually.
25013
-
25014
- `);
25015
- }
25016
- } catch {
25017
- process.stdout.write(` ${c2.yellow("\u26A0")} Ollama installed. Start it with: ${c2.bold("ollama serve")}
25018
-
25019
- `);
25020
- }
25021
- }
25022
- }
25023
25004
  if (models.length === 0) {
25024
25005
  const useCustom = await ask(rl, ` ${c2.bold("Use a custom inference endpoint instead?")} (y/n) `);
25025
25006
  if (useCustom.toLowerCase() === "y" || useCustom.toLowerCase() === "yes") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.68.0",
3
+ "version": "0.68.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",