open-agents-ai 0.185.65 → 0.185.66
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 +12 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43814,8 +43814,18 @@ async function ensureVisionDeps(onInfo, getSudoPassword) {
|
|
|
43814
43814
|
const stdout = e.stdout?.toString?.()?.trim?.() ?? "";
|
|
43815
43815
|
const msg = e.message ?? "";
|
|
43816
43816
|
lastError = stderr || stdout || msg;
|
|
43817
|
-
if (lastError.length >
|
|
43818
|
-
lastError = lastError.slice(0,
|
|
43817
|
+
if (lastError.length > 300)
|
|
43818
|
+
lastError = lastError.slice(0, 300) + "...";
|
|
43819
|
+
if (process.platform === "win32" && /access|denied|elevation|administrator|privilege|0x80070005/i.test(lastError)) {
|
|
43820
|
+
log(`${d.label}: needs admin \u2014 retrying with elevation...`);
|
|
43821
|
+
try {
|
|
43822
|
+
execSync29(`powershell -NoProfile -Command "Start-Process -FilePath 'cmd.exe' -ArgumentList '/c ${installCmd.replace(/"/g, '\\"')}' -Verb RunAs -Wait"`, { stdio: "pipe", timeout: 18e4 });
|
|
43823
|
+
lastError = "";
|
|
43824
|
+
} catch (e2) {
|
|
43825
|
+
const stderr2 = e2.stderr?.toString?.()?.trim?.() ?? "";
|
|
43826
|
+
lastError = `Elevated install failed: ${(stderr2 || e2.message || "").slice(0, 200)}`;
|
|
43827
|
+
}
|
|
43828
|
+
}
|
|
43819
43829
|
}
|
|
43820
43830
|
}
|
|
43821
43831
|
if (!hasCmd(d.binary) && pipPkg) {
|
package/package.json
CHANGED