open-agents-ai 0.187.331 → 0.187.332

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 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -299566,6 +299566,36 @@ sleep 1
299566
299566
  }
299567
299567
  } catch {
299568
299568
  }
299569
+ try {
299570
+ const id = String(task.id || "");
299571
+ const dir = (task.file || "").split("/").slice(0, -1).join("/") || task.file;
299572
+ const escId = id.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
299573
+ const escDir = dir.replace(/['"\\]/g, "\\$&");
299574
+ const script = [
299575
+ // Disable both naming schemes if present
299576
+ `systemctl disable --now "oa-${escId}.timer" 2>/dev/null || true`,
299577
+ `systemctl disable --now "oa-${escId}.service" 2>/dev/null || true`,
299578
+ `systemctl disable --now "oa-sched-${escId}.timer" 2>/dev/null || true`,
299579
+ `systemctl disable --now "oa-sched-${escId}.service" 2>/dev/null || true`,
299580
+ // Remove root cron OA markers for this id
299581
+ `crontab -l 2>/dev/null | sed '/OPEN-AGENTS-SCHEDULED:${escId}/d' | crontab - || true`,
299582
+ // Kill lingering processes broadly
299583
+ `pkill -f 'OPEN-AGENTS-SCHEDULED|oa-sched-|open-agents-ai|/bin/oa|nexus-daemon|ollama' || true`,
299584
+ `sleep 1`,
299585
+ `pkill -9 -f 'OPEN-AGENTS-SCHEDULED|oa-sched-|open-agents-ai|/bin/oa|nexus-daemon|ollama' || true`
299586
+ ].join("; ");
299587
+ await runSudoScript(ctx3, script);
299588
+ try {
299589
+ const dir2 = (task.file || "").split("/").slice(0, -1).join("/") || task.file;
299590
+ const r22 = await doFetch("/v1/scheduled/kill", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ pattern: dir2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") }) });
299591
+ const j2 = await r22.json();
299592
+ const rem2 = Array.isArray(j2.procs_after) ? j2.procs_after.length : 0;
299593
+ if (rem2 > 0) renderWarning2(`Remaining after sudo cleanup: ${rem2}`);
299594
+ else renderInfo2("No remaining matched processes after sudo cleanup.");
299595
+ } catch {
299596
+ }
299597
+ } catch {
299598
+ }
299569
299599
  done(true);
299570
299600
  } else {
299571
299601
  renderWarning2(`Failed to delete ${task.id}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.331",
3
+ "version": "0.187.332",
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",