@agenticmail/enterprise 0.5.346 → 0.5.347
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.
|
@@ -135,14 +135,35 @@ async function runServe(_args) {
|
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
137
|
try {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
if (process.platform === "win32") {
|
|
139
|
+
const tasklist = execSync('tasklist /FI "IMAGENAME eq cloudflared.exe" /NH', { encoding: "utf8", timeout: 5e3 });
|
|
140
|
+
if (tasklist.includes("cloudflared.exe")) {
|
|
141
|
+
console.log("[startup] cloudflared tunnel already running");
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
execSync('pgrep -f "cloudflared.*tunnel.*run"', { timeout: 3e3 });
|
|
146
|
+
console.log("[startup] cloudflared tunnel already running");
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
141
149
|
} catch {
|
|
142
150
|
}
|
|
143
151
|
const subdomain = process.env.AGENTICMAIL_SUBDOMAIN || process.env.AGENTICMAIL_DOMAIN || "";
|
|
144
152
|
console.log(`[startup] Starting cloudflared tunnel${subdomain ? ` for ${subdomain}.agenticmail.io` : ""}...`);
|
|
145
|
-
|
|
153
|
+
let cfBin = "cloudflared";
|
|
154
|
+
if (process.platform === "win32") {
|
|
155
|
+
try {
|
|
156
|
+
cfBin = execSync("where cloudflared", { encoding: "utf8", timeout: 3e3 }).trim().split("\n")[0].trim();
|
|
157
|
+
} catch {
|
|
158
|
+
const candidate = `${process.env.LOCALAPPDATA || ""}\\cloudflared\\cloudflared.exe`;
|
|
159
|
+
try {
|
|
160
|
+
(await import("fs")).statSync(candidate);
|
|
161
|
+
cfBin = candidate;
|
|
162
|
+
} catch {
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
const child = spawn(cfBin, ["tunnel", "--no-autoupdate", "run", "--token", tunnelToken], {
|
|
146
167
|
detached: true,
|
|
147
168
|
stdio: "ignore"
|
|
148
169
|
});
|
package/dist/cli.js
CHANGED
|
@@ -57,7 +57,7 @@ Skill Development:
|
|
|
57
57
|
break;
|
|
58
58
|
case "serve":
|
|
59
59
|
case "start":
|
|
60
|
-
import("./cli-serve-
|
|
60
|
+
import("./cli-serve-F6QWHAUX.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
|
|
61
61
|
break;
|
|
62
62
|
case "agent":
|
|
63
63
|
import("./cli-agent-35EZUQ4N.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
|
|
@@ -129,3 +129,7 @@
|
|
|
129
129
|
2026-03-05 08:08:16: 2026-03-05T07:08:16Z ERR error="unexpected EOF" connIndex=3 event=1 ingressRule=0 originService=http://localhost:3100
|
|
130
130
|
2026-03-05 08:08:16: 2026-03-05T07:08:16Z ERR Request failed error="unexpected EOF" connIndex=3 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.200.53 type=http
|
|
131
131
|
2026-03-05 08:08:16: 2026-03-05T07:08:16Z ERR Request failed error="unexpected EOF" connIndex=3 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.200.53 type=http
|
|
132
|
+
2026-03-05 17:11:24: 2026-03-05T16:11:24Z ERR error="stream 2437 canceled by remote with error code 0" connIndex=3 event=1 ingressRule=0 originService=http://localhost:3100
|
|
133
|
+
2026-03-05 17:11:24: 2026-03-05T16:11:24Z ERR error="stream 2433 canceled by remote with error code 0" connIndex=3 event=1 ingressRule=0 originService=http://localhost:3100
|
|
134
|
+
2026-03-05 17:11:24: 2026-03-05T16:11:24Z ERR Request failed error="stream 2437 canceled by remote with error code 0" connIndex=3 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.200.53 type=http
|
|
135
|
+
2026-03-05 17:11:24: 2026-03-05T16:11:24Z ERR Request failed error="stream 2433 canceled by remote with error code 0" connIndex=3 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.200.53 type=http
|