open-agents-ai 0.185.19 → 0.185.21
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48548,7 +48548,7 @@ async function handleSlashCommand(input, ctx) {
|
|
|
48548
48548
|
renderWarning(`Gateway stop: ${err instanceof Error ? err.message : String(err)}`);
|
|
48549
48549
|
}
|
|
48550
48550
|
}
|
|
48551
|
-
const orphanPids = findPidsByPattern("cloudflared
|
|
48551
|
+
const orphanPids = findPidsByPattern(process.platform === "win32" ? "cloudflared" : "cloudflared tunnel");
|
|
48552
48552
|
let orphansKilled = 0;
|
|
48553
48553
|
for (const pid of orphanPids) {
|
|
48554
48554
|
if (killPid(pid))
|
|
@@ -48612,7 +48612,7 @@ async function handleSlashCommand(input, ctx) {
|
|
|
48612
48612
|
const existingGateway = ctx.getExposeGateway?.();
|
|
48613
48613
|
const managedPid = existingGateway?._cloudflaredPid || null;
|
|
48614
48614
|
if (!existingGateway?.isActive) {
|
|
48615
|
-
const staleOrphans2 = findPidsByPattern("cloudflared
|
|
48615
|
+
const staleOrphans2 = findPidsByPattern(process.platform === "win32" ? "cloudflared" : "cloudflared tunnel").filter((p) => p !== managedPid);
|
|
48616
48616
|
let cleanedUp = 0;
|
|
48617
48617
|
for (const pid of staleOrphans2) {
|
|
48618
48618
|
if (killPid(pid))
|
|
@@ -48625,7 +48625,7 @@ async function handleSlashCommand(input, ctx) {
|
|
|
48625
48625
|
}
|
|
48626
48626
|
const tunnelAlreadyActive = existingGateway?.isActive && existingGateway?.tunnelUrl;
|
|
48627
48627
|
const p2pAlreadyActive = ctx.isExposeActive?.() && !existingGateway?.tunnelUrl;
|
|
48628
|
-
const staleOrphans = findPidsByPattern("cloudflared
|
|
48628
|
+
const staleOrphans = findPidsByPattern(process.platform === "win32" ? "cloudflared" : "cloudflared tunnel");
|
|
48629
48629
|
for (const pid of staleOrphans)
|
|
48630
48630
|
killPid(pid);
|
|
48631
48631
|
if (config.transport.cloudflared && ctx.exposeStart) {
|
package/package.json
CHANGED