open-agents-ai 0.187.311 → 0.187.312

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 +30 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -299369,7 +299369,7 @@ The session corrections MUST become hard rules in the SKILL.md Rules section.`;
299369
299369
  label: `${t2.enabled ? "●" : "○"} ${t2.name || "(task)"} ${t2.schedule ? "[" + t2.schedule + "]" : ""}`,
299370
299370
  detail: `${t2.file}#${t2.index}`
299371
299371
  }));
299372
- items.push({ key: "__kill__", label: "Kill OA schedulers", detail: "Stop scheduler/nexus background processes" });
299372
+ items.push({ key: "__kill__", label: "Kill OA schedulers + active runs", detail: "Stop scheduler/nexus processes and terminate active OA runs" });
299373
299373
  const result = await tuiSelect({
299374
299374
  items,
299375
299375
  title: "Scheduled Tasks",
@@ -327540,9 +327540,36 @@ async function handleRequest(req2, res, ollamaUrl, verbose) {
327540
327540
  if (pathname === "/v1/scheduled/kill" && method === "POST") {
327541
327541
  const body = await parseJsonBody(req2);
327542
327542
  const pids = Array.isArray(body?.pids) ? body.pids.filter((n2) => Number.isInteger(n2)) : void 0;
327543
- const pattern = typeof body?.pattern === "string" && body.pattern.trim() ? body.pattern.trim() : "(/bin/oa|open-agents-ai|nexus-daemon|OPEN-AGENTS-SCHEDULED)";
327543
+ const pattern = typeof body?.pattern === "string" && body.pattern.trim() ? body.pattern.trim() : "(/bin/oa|open-agents-ai|nexus-daemon|OPEN-AGENTS-SCHEDULED|ollama)";
327544
327544
  const killed = killScheduledProcesses(pids, pattern);
327545
- jsonResponse(res, 200, { killed_count: killed.length, killed });
327545
+ const additionally = [];
327546
+ try {
327547
+ for (const [rid, child] of Array.from(runningProcesses.entries())) {
327548
+ const pid = child?.pid ?? 0;
327549
+ if (pid > 0) {
327550
+ try {
327551
+ process.kill(pid, "SIGTERM");
327552
+ additionally.push({ pid, ok: true, signal: "TERM", run_id: rid });
327553
+ } catch {
327554
+ additionally.push({ pid, ok: false, signal: "TERM", run_id: rid });
327555
+ }
327556
+ }
327557
+ try {
327558
+ if (pid > 0) {
327559
+ process.kill(pid, 0);
327560
+ try {
327561
+ process.kill(pid, "SIGKILL");
327562
+ additionally.push({ pid, ok: true, signal: "KILL", run_id: rid });
327563
+ } catch {
327564
+ }
327565
+ }
327566
+ } catch {
327567
+ }
327568
+ runningProcesses.delete(rid);
327569
+ }
327570
+ } catch {
327571
+ }
327572
+ jsonResponse(res, 200, { killed_count: killed.length + additionally.length, killed, additionally });
327546
327573
  return;
327547
327574
  }
327548
327575
  if ((pathname === "/v1/chat" || pathname === "/api/chat") && method === "POST") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.311",
3
+ "version": "0.187.312",
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",