open-agents-ai 0.187.323 → 0.187.325
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 +33 -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"],
|
|
@@ -333530,7 +333558,10 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
|
|
|
333530
333558
|
"/gc",
|
|
333531
333559
|
"/deep",
|
|
333532
333560
|
"/style",
|
|
333533
|
-
"/personality"
|
|
333561
|
+
"/personality",
|
|
333562
|
+
"/access",
|
|
333563
|
+
"/network",
|
|
333564
|
+
"/scheduler"
|
|
333534
333565
|
];
|
|
333535
333566
|
const discoveredSkillNames = discoverSkills(repoRoot).map((s2) => `/${s2.name}`);
|
|
333536
333567
|
const allCompletions = [.../* @__PURE__ */ new Set([...BUILTIN_COMMANDS, ...discoveredSkillNames])].sort();
|
package/package.json
CHANGED