open-agents-ai 0.187.323 → 0.187.324

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 +29 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -299513,7 +299513,31 @@ sleep 1
299513
299513
  }
299514
299514
  const rem = Array.isArray(j.procs_after) ? j.procs_after.length : 0;
299515
299515
  if (rem > 0) {
299516
- renderWarning2(`Remaining matched processes: ${rem}`);
299516
+ renderWarning2(`Remaining matched processes: ${rem}. Escalating with sudo...`);
299517
+ const script = `set -e
299518
+ sudo -v
299519
+ sudo bash -lc 'systemctl disable --now "oa-*".timer 2>/dev/null || true'
299520
+ sudo bash -lc 'systemctl disable --now "oa-*".service 2>/dev/null || true'
299521
+ sudo bash -lc 'crontab -l 2>/dev/null | sed "/OPEN-AGENTS-SCHEDULED/d" | crontab -' || true
299522
+ sudo pkill -f 'OPEN-AGENTS-SCHEDULED|oa-sched-|nexus|ollama' || true
299523
+ sleep 1
299524
+ `;
299525
+ try {
299526
+ const { spawn: spawn27 } = await import("node:child_process");
299527
+ await new Promise((resolve40) => {
299528
+ const c7 = spawn27("bash", ["-lc", script], { stdio: "inherit" });
299529
+ c7.on("exit", () => resolve40());
299530
+ });
299531
+ } catch {
299532
+ }
299533
+ try {
299534
+ const r22 = await doFetch("/v1/scheduled/kill", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({}) });
299535
+ const j2 = await r22.json();
299536
+ const rem2 = Array.isArray(j2.procs_after) ? j2.procs_after.length : 0;
299537
+ if (rem2 > 0) renderWarning2(`Remaining after escalation: ${rem2}`);
299538
+ else renderInfo2("No remaining matched processes after escalation.");
299539
+ } catch {
299540
+ }
299517
299541
  } else {
299518
299542
  renderInfo2("No remaining matched processes.");
299519
299543
  }
@@ -305428,6 +305452,10 @@ var init_render2 = __esm({
305428
305452
  ["/expose stop --libp2p", "Stop libp2p gateway only"],
305429
305453
  ["/access", "Show access policy and host binding"],
305430
305454
  ["/access <loopback|lan|any>", "Set access policy (OA_ACCESS) and restart daemon"],
305455
+ ["/scheduler", "Scheduled tasks control panel (list/kill/toggle)"],
305456
+ ["/scheduler menu", "Interactive scheduler menu (toggle/kill)"],
305457
+ ["/scheduler list", "List all scheduled tasks and timers"],
305458
+ ["/scheduler kill", "Kill schedulers + active runs (with escalation if needed)"],
305431
305459
  ["/host <host[:port]>", "Set bind host:port (OA_HOST) and restart daemon"],
305432
305460
  ["/network config", "Interactive network access menu"],
305433
305461
  ["/p2p start", "Join the P2P agent mesh network"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.323",
3
+ "version": "0.187.324",
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",