open-agents-ai 0.185.21 → 0.185.22
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 +26 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51558,6 +51558,9 @@ async function handleUpdate(subcommand, ctx) {
|
|
|
51558
51558
|
installOverlay.dismiss();
|
|
51559
51559
|
await new Promise((r) => setTimeout(r, 200));
|
|
51560
51560
|
ctx.contextSave?.();
|
|
51561
|
+
if (ctx.hasActiveTask?.())
|
|
51562
|
+
ctx.abortActiveTask?.();
|
|
51563
|
+
ctx.killEphemeral?.();
|
|
51561
51564
|
process.exit(120);
|
|
51562
51565
|
}
|
|
51563
51566
|
async function switchModel(query, ctx, local = false) {
|
|
@@ -66171,6 +66174,24 @@ async function startInteractive(config, repoPath) {
|
|
|
66171
66174
|
await new Promise((r) => setTimeout(r, 50));
|
|
66172
66175
|
process.stdin.pause();
|
|
66173
66176
|
}
|
|
66177
|
+
try {
|
|
66178
|
+
const oaDir = join70(repoRoot, ".oa");
|
|
66179
|
+
const nexusPidFile = join70(oaDir, "nexus", "daemon.pid");
|
|
66180
|
+
if (existsSync53(nexusPidFile)) {
|
|
66181
|
+
const pid = parseInt(readFileSync42(nexusPidFile, "utf8").trim(), 10);
|
|
66182
|
+
if (pid > 0) {
|
|
66183
|
+
try {
|
|
66184
|
+
process.kill(pid, 0);
|
|
66185
|
+
} catch {
|
|
66186
|
+
try {
|
|
66187
|
+
__require("node:fs").unlinkSync(nexusPidFile);
|
|
66188
|
+
} catch {
|
|
66189
|
+
}
|
|
66190
|
+
}
|
|
66191
|
+
}
|
|
66192
|
+
}
|
|
66193
|
+
} catch {
|
|
66194
|
+
}
|
|
66174
66195
|
initOaDirectory(repoRoot);
|
|
66175
66196
|
const savedSettings = resolveSettings(repoRoot);
|
|
66176
66197
|
let restoredSessionContext = null;
|
|
@@ -67363,6 +67384,11 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
67363
67384
|
if (carousel.isRunning)
|
|
67364
67385
|
carousel.stop();
|
|
67365
67386
|
},
|
|
67387
|
+
killEphemeral() {
|
|
67388
|
+
if (_shellToolRef)
|
|
67389
|
+
_shellToolRef.killAll();
|
|
67390
|
+
killAllFullSubAgents();
|
|
67391
|
+
},
|
|
67366
67392
|
async voiceToggle() {
|
|
67367
67393
|
const msg = await voiceEngine.toggle();
|
|
67368
67394
|
if (telegramBridge) {
|
package/package.json
CHANGED