open-agents-ai 0.185.46 → 0.185.47
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 +16 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43428,6 +43428,14 @@ function detectPkgManager() {
|
|
|
43428
43428
|
if (plat === "win32") {
|
|
43429
43429
|
if (hasCmd("choco"))
|
|
43430
43430
|
return "choco";
|
|
43431
|
+
if (hasCmd("winget"))
|
|
43432
|
+
return "winget";
|
|
43433
|
+
try {
|
|
43434
|
+
execSync28(`powershell -NoProfile -Command "Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"`, { stdio: "pipe", timeout: 12e4 });
|
|
43435
|
+
if (hasCmd("choco"))
|
|
43436
|
+
return "choco";
|
|
43437
|
+
} catch {
|
|
43438
|
+
}
|
|
43431
43439
|
return null;
|
|
43432
43440
|
}
|
|
43433
43441
|
if (plat === "darwin") {
|
|
@@ -43563,10 +43571,10 @@ async function ensureVisionDeps(onInfo, getSudoPassword) {
|
|
|
43563
43571
|
const getPassword = getSudoPassword ?? (() => Promise.resolve(null));
|
|
43564
43572
|
const allDeps = [
|
|
43565
43573
|
// Vision + OCR
|
|
43566
|
-
{ binary: "tesseract", label: "tesseract-ocr", pkgs: { apt: "tesseract-ocr", dnf: "tesseract", pacman: "tesseract", brew: "tesseract", choco: "tesseract" } },
|
|
43567
|
-
{ binary: "pdftotext", label: "poppler-utils", pkgs: { apt: "poppler-utils", dnf: "poppler-utils", pacman: "poppler", brew: "poppler", choco: "poppler" } },
|
|
43568
|
-
{ binary: "gs", label: "ghostscript", pkgs: { apt: "ghostscript", dnf: "ghostscript", pacman: "ghostscript", brew: "ghostscript", choco: "ghostscript" } },
|
|
43569
|
-
{ binary: "ocrmypdf", label: "ocrmypdf", pkgs: { apt: "ocrmypdf", dnf: "ocrmypdf", pacman: "ocrmypdf", brew: "ocrmypdf", choco: "ocrmypdf" } },
|
|
43574
|
+
{ binary: "tesseract", label: "tesseract-ocr", pkgs: { apt: "tesseract-ocr", dnf: "tesseract", pacman: "tesseract", brew: "tesseract", choco: "tesseract", winget: "UB-Mannheim.TesseractOCR" } },
|
|
43575
|
+
{ binary: "pdftotext", label: "poppler-utils", pkgs: { apt: "poppler-utils", dnf: "poppler-utils", pacman: "poppler", brew: "poppler", choco: "poppler", winget: "freedesktop.poppler" } },
|
|
43576
|
+
{ binary: "gs", label: "ghostscript", pkgs: { apt: "ghostscript", dnf: "ghostscript", pacman: "ghostscript", brew: "ghostscript", choco: "ghostscript", winget: "ArtifexSoftware.GhostScript" } },
|
|
43577
|
+
{ binary: "ocrmypdf", label: "ocrmypdf", pkgs: { apt: "ocrmypdf", dnf: "ocrmypdf", pacman: "ocrmypdf", brew: "ocrmypdf", choco: "ocrmypdf", winget: "" } },
|
|
43570
43578
|
// Desktop interaction — screenshot + mouse control for desktop_click/desktop_describe
|
|
43571
43579
|
...process.platform === "darwin" ? [
|
|
43572
43580
|
// macOS: screencapture is built-in, cliclick needed for mouse control
|
|
@@ -43592,7 +43600,7 @@ async function ensureVisionDeps(onInfo, getSudoPassword) {
|
|
|
43592
43600
|
} else {
|
|
43593
43601
|
const labels = missing.map((d) => d.label).join(", ");
|
|
43594
43602
|
log(`Installing ${labels}...`);
|
|
43595
|
-
const needsSudo = pm2 !== "brew" && pm2 !== "choco";
|
|
43603
|
+
const needsSudo = pm2 !== "brew" && pm2 !== "choco" && pm2 !== "winget";
|
|
43596
43604
|
let batchCmd;
|
|
43597
43605
|
switch (pm2) {
|
|
43598
43606
|
case "apt":
|
|
@@ -43610,6 +43618,9 @@ async function ensureVisionDeps(onInfo, getSudoPassword) {
|
|
|
43610
43618
|
case "choco":
|
|
43611
43619
|
batchCmd = `choco install -y ${pkgNames.join(" ")}`;
|
|
43612
43620
|
break;
|
|
43621
|
+
case "winget":
|
|
43622
|
+
batchCmd = pkgNames.map((p) => `winget install --accept-source-agreements --accept-package-agreements ${p}`).join(" && ");
|
|
43623
|
+
break;
|
|
43613
43624
|
default:
|
|
43614
43625
|
batchCmd = `echo "unsupported pm: ${pm2}" && exit 1`;
|
|
43615
43626
|
break;
|
package/package.json
CHANGED