open-agents-ai 0.187.165 → 0.187.166

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 +33 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -290902,8 +290902,29 @@ function ensureVenv(log22) {
290902
290902
  const venvDir = getVenvDir();
290903
290903
  const isWin2 = process.platform === "win32";
290904
290904
  const pipPath = isWin2 ? join71(venvDir, "Scripts", "pip.exe") : join71(venvDir, "bin", "pip");
290905
+ const venvPyPath = isWin2 ? join71(venvDir, "Scripts", "python.exe") : join71(venvDir, "bin", "python3");
290905
290906
  const pythonCmd = isWin2 ? "python" : "python3";
290906
- if (existsSync55(pipPath)) return venvDir;
290907
+ if (existsSync55(pipPath)) {
290908
+ try {
290909
+ execSync47(`"${venvPyPath}" -m pip --version`, { stdio: "pipe", timeout: 1e4 });
290910
+ return venvDir;
290911
+ } catch {
290912
+ log22("Python venv pip is broken \u2014 repairing...");
290913
+ try {
290914
+ execSync47(`"${venvPyPath}" -m ensurepip --upgrade`, { stdio: "pipe", timeout: 3e4 });
290915
+ log22("pip repaired via ensurepip.");
290916
+ return venvDir;
290917
+ } catch {
290918
+ try {
290919
+ execSync47(`curl -sS https://bootstrap.pypa.io/get-pip.py | "${venvPyPath}"`, { stdio: "pipe", timeout: 6e4 });
290920
+ log22("pip repaired via get-pip.py.");
290921
+ return venvDir;
290922
+ } catch {
290923
+ log22("pip repair failed \u2014 recreating venv...");
290924
+ }
290925
+ }
290926
+ }
290927
+ }
290907
290928
  log22("Creating Python venv for vision deps...");
290908
290929
  if (!hasCmd(pythonCmd) && !hasCmd("python3")) {
290909
290930
  log22(`${pythonCmd} not found \u2014 cannot create venv.`);
@@ -290916,8 +290937,17 @@ function ensureVenv(log22) {
290916
290937
  try {
290917
290938
  mkdirSync28(join71(homedir22(), ".open-agents"), { recursive: true });
290918
290939
  const pyCmd = hasCmd(pythonCmd) ? pythonCmd : "python3";
290919
- execSync47(`${pyCmd} -m venv "${venvDir}"`, { stdio: "pipe", timeout: 3e4 });
290920
- execSync47(`"${pipPath}" install --upgrade pip`, {
290940
+ execSync47(`${pyCmd} -m venv --clear "${venvDir}"`, { stdio: "pipe", timeout: 3e4 });
290941
+ try {
290942
+ execSync47(`"${venvPyPath}" -m pip --version`, { stdio: "pipe", timeout: 1e4 });
290943
+ } catch {
290944
+ try {
290945
+ execSync47(`"${venvPyPath}" -m ensurepip --upgrade`, { stdio: "pipe", timeout: 3e4 });
290946
+ } catch {
290947
+ execSync47(`curl -sS https://bootstrap.pypa.io/get-pip.py | "${venvPyPath}"`, { stdio: "pipe", timeout: 6e4 });
290948
+ }
290949
+ }
290950
+ execSync47(`"${venvPyPath}" -m pip install --upgrade pip`, {
290921
290951
  stdio: "pipe",
290922
290952
  timeout: 6e4
290923
290953
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.165",
3
+ "version": "0.187.166",
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",