@agenticmail/enterprise 0.5.384 → 0.5.386
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/{chunk-I2ZF3D7V.js → chunk-DJKGJYZO.js} +2 -2
- package/dist/{chunk-UPCU6RPK.js → chunk-OMF6FLPK.js} +2 -2
- package/dist/{cli-serve-I52AEZVE.js → cli-serve-GCP56UIX.js} +2 -2
- package/dist/{cli-update-6ZZTT5UR.js → cli-update-E3MONN6C.js} +16 -4
- package/dist/cli.js +3 -3
- package/dist/dashboard/app.js +3 -3
- package/dist/index.js +2 -2
- package/dist/{server-TOJQGYGA.js → server-NO7BFO5Y.js} +1 -1
- package/dist/{setup-3Y2P2ELB.js → setup-HNWCWDFW.js} +1 -1
- package/package.json +1 -1
|
@@ -1234,7 +1234,7 @@ async function deploy(config, db, jwtSecret, vaultKey, spinner, chalk) {
|
|
|
1234
1234
|
const { deployTarget, company, database, domain, tunnel, cloud } = config;
|
|
1235
1235
|
if (deployTarget === "cloudflare-tunnel" && tunnel) {
|
|
1236
1236
|
spinner.start(`Starting local server on port ${tunnel.port}...`);
|
|
1237
|
-
const { createServer: createServer2 } = await import("./server-
|
|
1237
|
+
const { createServer: createServer2 } = await import("./server-NO7BFO5Y.js");
|
|
1238
1238
|
const server2 = createServer2({ port: tunnel.port, db, jwtSecret });
|
|
1239
1239
|
const handle2 = await server2.start();
|
|
1240
1240
|
spinner.succeed("Server running");
|
|
@@ -1535,7 +1535,7 @@ async function deploy(config, db, jwtSecret, vaultKey, spinner, chalk) {
|
|
|
1535
1535
|
return {};
|
|
1536
1536
|
}
|
|
1537
1537
|
spinner.start("Starting local server...");
|
|
1538
|
-
const { createServer } = await import("./server-
|
|
1538
|
+
const { createServer } = await import("./server-NO7BFO5Y.js");
|
|
1539
1539
|
const server = createServer({ port: 3e3, db, jwtSecret });
|
|
1540
1540
|
const handle = await server.start();
|
|
1541
1541
|
spinner.succeed("Server running");
|
|
@@ -3269,7 +3269,7 @@ function createAdminRoutes(db) {
|
|
|
3269
3269
|
});
|
|
3270
3270
|
api.get("/system/update-check", async (c) => {
|
|
3271
3271
|
try {
|
|
3272
|
-
const { checkForUpdate, getCachedUpdateCheck } = await import("./cli-update-
|
|
3272
|
+
const { checkForUpdate, getCachedUpdateCheck } = await import("./cli-update-E3MONN6C.js");
|
|
3273
3273
|
const cached = getCachedUpdateCheck();
|
|
3274
3274
|
if (cached && Date.now() - new Date(cached.checkedAt).getTime() < 5 * 6e4) {
|
|
3275
3275
|
return c.json(cached);
|
|
@@ -3282,7 +3282,7 @@ function createAdminRoutes(db) {
|
|
|
3282
3282
|
});
|
|
3283
3283
|
api.post("/system/update", async (c) => {
|
|
3284
3284
|
try {
|
|
3285
|
-
const { performUpdate } = await import("./cli-update-
|
|
3285
|
+
const { performUpdate } = await import("./cli-update-E3MONN6C.js");
|
|
3286
3286
|
const result = await performUpdate({ restart: true });
|
|
3287
3287
|
return c.json(result);
|
|
3288
3288
|
} catch (e) {
|
|
@@ -94,7 +94,7 @@ async function runServe(_args) {
|
|
|
94
94
|
process.exit(1);
|
|
95
95
|
}
|
|
96
96
|
const { createAdapter, smartDbConfig } = await import("./factory-XRYYBBCW.js");
|
|
97
|
-
const { createServer } = await import("./server-
|
|
97
|
+
const { createServer } = await import("./server-NO7BFO5Y.js");
|
|
98
98
|
const db = await createAdapter(smartDbConfig(DATABASE_URL));
|
|
99
99
|
await db.migrate();
|
|
100
100
|
const server = createServer({
|
|
@@ -106,7 +106,7 @@ async function runServe(_args) {
|
|
|
106
106
|
await server.start();
|
|
107
107
|
console.log(`AgenticMail Enterprise server running on :${PORT}`);
|
|
108
108
|
try {
|
|
109
|
-
const { startBackgroundUpdateCheck } = await import("./cli-update-
|
|
109
|
+
const { startBackgroundUpdateCheck } = await import("./cli-update-E3MONN6C.js");
|
|
110
110
|
startBackgroundUpdateCheck();
|
|
111
111
|
} catch {
|
|
112
112
|
}
|
|
@@ -113,10 +113,22 @@ async function performUpdate(options) {
|
|
|
113
113
|
return script.includes("agenticmail") || script.includes("enterprise");
|
|
114
114
|
});
|
|
115
115
|
if (amProcs.length > 0) {
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
const sorted = amProcs.sort((a, b) => {
|
|
117
|
+
const aIsServer = a.name === "enterprise" || a.name === "agenticmail";
|
|
118
|
+
const bIsServer = b.name === "enterprise" || b.name === "agenticmail";
|
|
119
|
+
return aIsServer ? 1 : bIsServer ? -1 : 0;
|
|
120
|
+
});
|
|
121
|
+
for (const proc of sorted) {
|
|
122
|
+
console.log(` Restarting: ${proc.name}`);
|
|
123
|
+
try {
|
|
124
|
+
execSync(`pm2 restart ${proc.name}`, { stdio: "inherit", timeout: 15e3 });
|
|
125
|
+
} catch {
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
try {
|
|
129
|
+
execSync("pm2 save", { stdio: "ignore", timeout: 1e4 });
|
|
130
|
+
} catch {
|
|
131
|
+
}
|
|
120
132
|
console.log(` \u2705 All services restarted`);
|
|
121
133
|
} else {
|
|
122
134
|
console.log(` \u26A0\uFE0F No PM2 processes found \u2014 restart manually if needed`);
|
package/dist/cli.js
CHANGED
|
@@ -61,18 +61,18 @@ Skill Development:
|
|
|
61
61
|
break;
|
|
62
62
|
case "update":
|
|
63
63
|
case "upgrade":
|
|
64
|
-
import("./cli-update-
|
|
64
|
+
import("./cli-update-E3MONN6C.js").then((m) => m.runUpdate(args.slice(1))).catch(fatal);
|
|
65
65
|
break;
|
|
66
66
|
case "serve":
|
|
67
67
|
case "start":
|
|
68
|
-
import("./cli-serve-
|
|
68
|
+
import("./cli-serve-GCP56UIX.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
|
|
69
69
|
break;
|
|
70
70
|
case "agent":
|
|
71
71
|
import("./cli-agent-3MGMIL4H.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
|
|
72
72
|
break;
|
|
73
73
|
case "setup":
|
|
74
74
|
default:
|
|
75
|
-
import("./setup-
|
|
75
|
+
import("./setup-HNWCWDFW.js").then((m) => m.runSetupWizard()).catch(fatal);
|
|
76
76
|
break;
|
|
77
77
|
}
|
|
78
78
|
function fatal(err) {
|
package/dist/dashboard/app.js
CHANGED
|
@@ -576,12 +576,12 @@ function App() {
|
|
|
576
576
|
const r = await apiCall('/system/update', { method: 'POST' });
|
|
577
577
|
if (r?.success) {
|
|
578
578
|
setUpdateInfo(null);
|
|
579
|
-
|
|
579
|
+
toast('Updated to v' + r.to + ' — services restarting...', 'success');
|
|
580
580
|
} else {
|
|
581
|
-
|
|
581
|
+
toast('Update failed: ' + (r?.message || 'unknown'), 'error');
|
|
582
582
|
}
|
|
583
583
|
} catch (e) {
|
|
584
|
-
|
|
584
|
+
toast('Update failed: ' + e.message, 'error');
|
|
585
585
|
}
|
|
586
586
|
setUpdating(false);
|
|
587
587
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provision,
|
|
3
3
|
runSetupWizard
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DJKGJYZO.js";
|
|
5
5
|
import {
|
|
6
6
|
AgenticMailManager,
|
|
7
7
|
GoogleEmailProvider,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
requireRole,
|
|
43
43
|
securityHeaders,
|
|
44
44
|
validate
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-OMF6FLPK.js";
|
|
46
46
|
import "./chunk-DJBCRQTD.js";
|
|
47
47
|
import {
|
|
48
48
|
PROVIDER_REGISTRY,
|