open-agents-ai 0.185.20 → 0.185.21
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 +0 -51
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51558,37 +51558,6 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
51558
51558
|
installOverlay.dismiss();
|
|
51559
51559
|
await new Promise((r) => setTimeout(r, 200));
|
|
51560
51560
|
ctx.contextSave?.();
|
|
51561
|
-
try {
|
|
51562
|
-
const { join: pjoin } = await import("node:path");
|
|
51563
|
-
const { existsSync: ex, readFileSync: rf } = await import("node:fs");
|
|
51564
|
-
const { homedir: hd } = await import("node:os");
|
|
51565
|
-
const nexusPid = pjoin(ctx.repoRoot ?? process.cwd(), ".oa", "nexus", "daemon.pid");
|
|
51566
|
-
if (ex(nexusPid)) {
|
|
51567
|
-
const pid = parseInt(rf(nexusPid, "utf8").trim(), 10);
|
|
51568
|
-
if (pid > 0) {
|
|
51569
|
-
try {
|
|
51570
|
-
if (process.platform === "win32")
|
|
51571
|
-
nodeExecSync(`taskkill /F /PID ${pid}`, { timeout: 3e3, stdio: "ignore" });
|
|
51572
|
-
else
|
|
51573
|
-
process.kill(pid, "SIGTERM");
|
|
51574
|
-
} catch {
|
|
51575
|
-
}
|
|
51576
|
-
}
|
|
51577
|
-
}
|
|
51578
|
-
const cfPids = findPidsByPattern(process.platform === "win32" ? "cloudflared" : "cloudflared tunnel");
|
|
51579
|
-
for (const pid of cfPids)
|
|
51580
|
-
killPid(pid);
|
|
51581
|
-
const voiceDir2 = pjoin(hd(), ".open-agents", "voice");
|
|
51582
|
-
for (const pf of ["luxtts-daemon.pid", "piper-daemon.pid"]) {
|
|
51583
|
-
const fp = pjoin(voiceDir2, pf);
|
|
51584
|
-
if (ex(fp)) {
|
|
51585
|
-
const pid = parseInt(rf(fp, "utf8").trim(), 10);
|
|
51586
|
-
if (pid > 0)
|
|
51587
|
-
killPid(pid);
|
|
51588
|
-
}
|
|
51589
|
-
}
|
|
51590
|
-
} catch {
|
|
51591
|
-
}
|
|
51592
51561
|
process.exit(120);
|
|
51593
51562
|
}
|
|
51594
51563
|
async function switchModel(query, ctx, local = false) {
|
|
@@ -66202,26 +66171,6 @@ async function startInteractive(config, repoPath) {
|
|
|
66202
66171
|
await new Promise((r) => setTimeout(r, 50));
|
|
66203
66172
|
process.stdin.pause();
|
|
66204
66173
|
}
|
|
66205
|
-
if (isResumed) {
|
|
66206
|
-
try {
|
|
66207
|
-
const nexusDir = join70(repoRoot, ".oa", "nexus");
|
|
66208
|
-
const pidFile = join70(nexusDir, "daemon.pid");
|
|
66209
|
-
if (existsSync53(pidFile)) {
|
|
66210
|
-
const pid = parseInt(readFileSync42(pidFile, "utf8").trim(), 10);
|
|
66211
|
-
if (pid > 0) {
|
|
66212
|
-
try {
|
|
66213
|
-
if (process.platform === "win32") {
|
|
66214
|
-
execSync33(`taskkill /F /PID ${pid}`, { timeout: 5e3, stdio: "ignore" });
|
|
66215
|
-
} else {
|
|
66216
|
-
process.kill(pid, "SIGTERM");
|
|
66217
|
-
}
|
|
66218
|
-
} catch {
|
|
66219
|
-
}
|
|
66220
|
-
}
|
|
66221
|
-
}
|
|
66222
|
-
} catch {
|
|
66223
|
-
}
|
|
66224
|
-
}
|
|
66225
66174
|
initOaDirectory(repoRoot);
|
|
66226
66175
|
const savedSettings = resolveSettings(repoRoot);
|
|
66227
66176
|
let restoredSessionContext = null;
|
package/package.json
CHANGED