open-agents-ai 0.71.0 → 0.71.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.
- package/dist/index.js +20 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -251281,6 +251281,26 @@ async function handleUpdate(subcommand, ctx3) {
|
|
|
251281
251281
|
const { existsSync: fsExists } = await import("node:fs");
|
|
251282
251282
|
const { join: pathJoin } = await import("node:path");
|
|
251283
251283
|
const { homedir: getHome } = await import("node:os");
|
|
251284
|
+
let hasPython = hasCmd("python3") || hasCmd("python");
|
|
251285
|
+
if (!hasPython) {
|
|
251286
|
+
const pyInstallSpinner = startInlineSpinner("Installing Python3");
|
|
251287
|
+
try {
|
|
251288
|
+
ensurePython3();
|
|
251289
|
+
hasPython = hasCmd("python3") || hasCmd("python");
|
|
251290
|
+
pyInstallSpinner.stop(hasPython ? "Python3 installed." : "Python3 install failed.");
|
|
251291
|
+
} catch {
|
|
251292
|
+
pyInstallSpinner.stop("Python3 install failed.");
|
|
251293
|
+
}
|
|
251294
|
+
}
|
|
251295
|
+
if (hasPython && !checkPythonVenv()) {
|
|
251296
|
+
const venvInstallSpinner = startInlineSpinner("Installing python3-venv");
|
|
251297
|
+
try {
|
|
251298
|
+
ensurePythonVenv();
|
|
251299
|
+
venvInstallSpinner.stop(checkPythonVenv() ? "python3-venv installed." : "python3-venv install failed.");
|
|
251300
|
+
} catch {
|
|
251301
|
+
venvInstallSpinner.stop("python3-venv install failed.");
|
|
251302
|
+
}
|
|
251303
|
+
}
|
|
251284
251304
|
const venvDir = pathJoin(getHome(), ".open-agents", "venv");
|
|
251285
251305
|
const venvPip = pathJoin(venvDir, "bin", "pip");
|
|
251286
251306
|
if (fsExists(venvPip)) {
|
package/package.json
CHANGED