open-agents-ai 0.186.38 → 0.186.40
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 +38 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44320,7 +44320,23 @@ async function ensureVisionDeps(onInfo, getSudoPassword) {
|
|
|
44320
44320
|
];
|
|
44321
44321
|
{
|
|
44322
44322
|
const pm2 = detectPkgManager();
|
|
44323
|
-
const
|
|
44323
|
+
const _visionMarkerDir = join56(homedir15(), ".open-agents");
|
|
44324
|
+
const _visionMarkerFile = join56(_visionMarkerDir, "vision-deps-installed.json");
|
|
44325
|
+
let _visionPreviouslyInstalled = /* @__PURE__ */ new Set();
|
|
44326
|
+
try {
|
|
44327
|
+
if (existsSync39(_visionMarkerFile)) {
|
|
44328
|
+
const _vm = JSON.parse(readFileSync30(_visionMarkerFile, "utf8"));
|
|
44329
|
+
_visionPreviouslyInstalled = new Set(_vm.installed || []);
|
|
44330
|
+
}
|
|
44331
|
+
} catch {
|
|
44332
|
+
}
|
|
44333
|
+
const missing = allDeps.filter((d) => {
|
|
44334
|
+
if (hasCmd(d.binary))
|
|
44335
|
+
return false;
|
|
44336
|
+
if (_visionPreviouslyInstalled.has(d.binary))
|
|
44337
|
+
return false;
|
|
44338
|
+
return true;
|
|
44339
|
+
});
|
|
44324
44340
|
if (missing.length === 0) {
|
|
44325
44341
|
} else if (!pm2) {
|
|
44326
44342
|
for (const d of missing)
|
|
@@ -44414,11 +44430,21 @@ async function ensureVisionDeps(onInfo, getSudoPassword) {
|
|
|
44414
44430
|
}
|
|
44415
44431
|
if (hasCmd(d.binary)) {
|
|
44416
44432
|
log2(`${d.label} installed.`);
|
|
44417
|
-
|
|
44433
|
+
_visionPreviouslyInstalled.add(d.binary);
|
|
44434
|
+
} else if (!lastError.includes("UAC") && !lastError.includes("cancelled")) {
|
|
44435
|
+
_visionPreviouslyInstalled.add(d.binary);
|
|
44418
44436
|
const reason = lastError ? ` Reason: ${lastError}` : " (binary not found in PATH after install \u2014 may need terminal restart or admin elevation)";
|
|
44419
44437
|
log2(`${d.label} could not be installed \u2014 features will be limited.${reason}`);
|
|
44420
44438
|
}
|
|
44421
44439
|
}
|
|
44440
|
+
try {
|
|
44441
|
+
mkdirSync17(_visionMarkerDir, { recursive: true });
|
|
44442
|
+
writeFileSync18(_visionMarkerFile, JSON.stringify({
|
|
44443
|
+
installed: [..._visionPreviouslyInstalled],
|
|
44444
|
+
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
44445
|
+
}, null, 2));
|
|
44446
|
+
} catch {
|
|
44447
|
+
}
|
|
44422
44448
|
}
|
|
44423
44449
|
}
|
|
44424
44450
|
const pm = detectPkgManager();
|
|
@@ -51643,6 +51669,16 @@ Clone a new voice: /voice clone <wav-file> [name]`);
|
|
|
51643
51669
|
});
|
|
51644
51670
|
if (result) {
|
|
51645
51671
|
renderInfo("Sponsor wizard completed.");
|
|
51672
|
+
try {
|
|
51673
|
+
const nexusPidFile = join60(projectDir, ".oa", "nexus", "daemon.pid");
|
|
51674
|
+
if (existsSync44(nexusPidFile)) {
|
|
51675
|
+
const nPid = parseInt(readFileSync33(nexusPidFile, "utf8").trim(), 10);
|
|
51676
|
+
if (nPid > 0) {
|
|
51677
|
+
registry.register({ name: "Nexus", pid: nPid, startedAt: Date.now(), status: "running" });
|
|
51678
|
+
}
|
|
51679
|
+
}
|
|
51680
|
+
} catch {
|
|
51681
|
+
}
|
|
51646
51682
|
}
|
|
51647
51683
|
return "handled";
|
|
51648
51684
|
}
|
package/package.json
CHANGED