open-agents-ai 0.185.20 → 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.
Files changed (2) hide show
  1. package/dist/index.js +19 -44
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51558,37 +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
- 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
- }
51561
+ if (ctx.hasActiveTask?.())
51562
+ ctx.abortActiveTask?.();
51563
+ ctx.killEphemeral?.();
51592
51564
  process.exit(120);
51593
51565
  }
51594
51566
  async function switchModel(query, ctx, local = false) {
@@ -66202,25 +66174,23 @@ async function startInteractive(config, repoPath) {
66202
66174
  await new Promise((r) => setTimeout(r, 50));
66203
66175
  process.stdin.pause();
66204
66176
  }
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) {
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 {
66212
66186
  try {
66213
- if (process.platform === "win32") {
66214
- execSync33(`taskkill /F /PID ${pid}`, { timeout: 5e3, stdio: "ignore" });
66215
- } else {
66216
- process.kill(pid, "SIGTERM");
66217
- }
66187
+ __require("node:fs").unlinkSync(nexusPidFile);
66218
66188
  } catch {
66219
66189
  }
66220
66190
  }
66221
66191
  }
66222
- } catch {
66223
66192
  }
66193
+ } catch {
66224
66194
  }
66225
66195
  initOaDirectory(repoRoot);
66226
66196
  const savedSettings = resolveSettings(repoRoot);
@@ -67414,6 +67384,11 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
67414
67384
  if (carousel.isRunning)
67415
67385
  carousel.stop();
67416
67386
  },
67387
+ killEphemeral() {
67388
+ if (_shellToolRef)
67389
+ _shellToolRef.killAll();
67390
+ killAllFullSubAgents();
67391
+ },
67417
67392
  async voiceToggle() {
67418
67393
  const msg = await voiceEngine.toggle();
67419
67394
  if (telegramBridge) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.185.20",
3
+ "version": "0.185.22",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",