@agenticmail/enterprise 0.5.357 → 0.5.358

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.
@@ -13790,6 +13790,18 @@ async function createAllTools(options) {
13790
13790
  }
13791
13791
  if (smtpEmailTools.length > 0) {
13792
13792
  console.log(`[tools] Loaded ${smtpEmailTools.length} SMTP/IMAP email tools for ${emailCfg.email || emailCfg.smtpUser}`);
13793
+ if (options?.permissionEngine) {
13794
+ const smtpDefs = smtpEmailTools.map((t) => ({
13795
+ id: t.name,
13796
+ name: t.name,
13797
+ description: t.description || t.name,
13798
+ category: "communicate",
13799
+ risk: t.name.includes("send") || t.name.includes("reply") || t.name.includes("forward") ? "high" : "low",
13800
+ skillId: "smtp-email",
13801
+ sideEffects: t.name.includes("send") || t.name.includes("reply") || t.name.includes("forward") ? ["sends-email"] : []
13802
+ }));
13803
+ options.permissionEngine.registerDynamicTools("smtp-email", smtpDefs);
13804
+ }
13793
13805
  }
13794
13806
  } catch (e) {
13795
13807
  console.warn(`[tools] SMTP email tools load failed: ${e.message}`);
@@ -3385,7 +3385,7 @@ function createRequestToolsTool(allTools, activeSets, _context) {
3385
3385
  };
3386
3386
  }
3387
3387
  async function createToolsForContext(options, context, opts) {
3388
- const { createAllTools } = await import("./agent-tools-2F6FYYXG.js");
3388
+ const { createAllTools } = await import("./agent-tools-7T6F3LFY.js");
3389
3389
  if (context === "full") {
3390
3390
  return createAllTools(options);
3391
3391
  }
@@ -4691,7 +4691,7 @@ function createServer(config) {
4691
4691
  engineInitialized = true;
4692
4692
  if (config.runtime?.enabled) {
4693
4693
  try {
4694
- const { createAgentRuntime } = await import("./runtime-PMERZPPG.js");
4694
+ const { createAgentRuntime } = await import("./runtime-7IHHKSYG.js");
4695
4695
  const { mountRuntimeApp, setRuntime } = await import("./routes-L5POMDQZ.js");
4696
4696
  let getEmailConfig;
4697
4697
  let onTokenRefresh;
@@ -4960,7 +4960,7 @@ function createServer(config) {
4960
4960
  await setEngineDb(engineDb, config.db);
4961
4961
  if (config.runtime?.enabled) {
4962
4962
  try {
4963
- const { createAgentRuntime } = await import("./runtime-PMERZPPG.js");
4963
+ const { createAgentRuntime } = await import("./runtime-7IHHKSYG.js");
4964
4964
  const { mountRuntimeApp, setRuntime } = await import("./routes-L5POMDQZ.js");
4965
4965
  let getEmailConfig;
4966
4966
  let onTokenRefresh;
@@ -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-JVQIW7QZ.js");
1237
+ const { createServer: createServer2 } = await import("./server-56DMUKYJ.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-JVQIW7QZ.js");
1538
+ const { createServer } = await import("./server-56DMUKYJ.js");
1539
1539
  const server = createServer({ port: 3e3, db, jwtSecret });
1540
1540
  const handle = await server.start();
1541
1541
  spinner.succeed("Server running");
@@ -820,7 +820,7 @@ async function runAgent(_args) {
820
820
  }
821
821
  } catch {
822
822
  }
823
- const { createAgentRuntime } = await import("./runtime-PMERZPPG.js");
823
+ const { createAgentRuntime } = await import("./runtime-7IHHKSYG.js");
824
824
  let orgIntMgr = null;
825
825
  try {
826
826
  const { orgIntegrations: oi } = await import("./routes-L5POMDQZ.js");
@@ -94,7 +94,7 @@ async function runServe(_args) {
94
94
  process.exit(1);
95
95
  }
96
96
  const { createAdapter, smartDbConfig } = await import("./factory-RTZU2K54.js");
97
- const { createServer } = await import("./server-JVQIW7QZ.js");
97
+ const { createServer } = await import("./server-56DMUKYJ.js");
98
98
  const db = await createAdapter(smartDbConfig(DATABASE_URL));
99
99
  await db.migrate();
100
100
  const server = createServer({
package/dist/cli.js CHANGED
@@ -57,14 +57,14 @@ Skill Development:
57
57
  break;
58
58
  case "serve":
59
59
  case "start":
60
- import("./cli-serve-ISFHDWKP.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
60
+ import("./cli-serve-J7SHRJI6.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
61
61
  break;
62
62
  case "agent":
63
- import("./cli-agent-7HSS5FUE.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
63
+ import("./cli-agent-OI6MKURJ.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
64
64
  break;
65
65
  case "setup":
66
66
  default:
67
- import("./setup-Z5TIFVJQ.js").then((m) => m.runSetupWizard()).catch(fatal);
67
+ import("./setup-2XFEQCY2.js").then((m) => m.runSetupWizard()).catch(fatal);
68
68
  break;
69
69
  }
70
70
  function fatal(err) {
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  provision,
15
15
  runSetupWizard
16
- } from "./chunk-G4EXGQSK.js";
16
+ } from "./chunk-ZMQ33664.js";
17
17
  import {
18
18
  AgentRuntime,
19
19
  EmailChannel,
@@ -28,7 +28,7 @@ import {
28
28
  executeTool,
29
29
  runAgentLoop,
30
30
  toolsToDefinitions
31
- } from "./chunk-GIWIAVLJ.js";
31
+ } from "./chunk-5OC5AFG2.js";
32
32
  import {
33
33
  ValidationError,
34
34
  auditLogger,
@@ -42,7 +42,7 @@ import {
42
42
  requireRole,
43
43
  securityHeaders,
44
44
  validate
45
- } from "./chunk-KMOGPT4O.js";
45
+ } from "./chunk-7MEE4SHG.js";
46
46
  import "./chunk-DJBCRQTD.js";
47
47
  import {
48
48
  PROVIDER_REGISTRY,
@@ -14,7 +14,7 @@ import {
14
14
  executeTool,
15
15
  runAgentLoop,
16
16
  toolsToDefinitions
17
- } from "./chunk-GIWIAVLJ.js";
17
+ } from "./chunk-5OC5AFG2.js";
18
18
  import {
19
19
  PROVIDER_REGISTRY,
20
20
  listAllProviders,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-KMOGPT4O.js";
3
+ } from "./chunk-7MEE4SHG.js";
4
4
  import "./chunk-DJBCRQTD.js";
5
5
  import "./chunk-UF3ZJMJO.js";
6
6
  import "./chunk-J7DJJVGJ.js";
@@ -6,7 +6,7 @@ import {
6
6
  promptRegistration,
7
7
  provision,
8
8
  runSetupWizard
9
- } from "./chunk-G4EXGQSK.js";
9
+ } from "./chunk-ZMQ33664.js";
10
10
  import "./chunk-Z3I6GNTS.js";
11
11
  import "./chunk-KFQGP6VL.js";
12
12
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.357",
3
+ "version": "0.5.358",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {