@agenticmail/enterprise 0.5.360 → 0.5.362

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.
@@ -6,7 +6,7 @@ import {
6
6
  MicrosoftEmailProvider,
7
7
  createEmailProvider,
8
8
  detectImapSettings
9
- } from "./chunk-G4YSECQ4.js";
9
+ } from "./chunk-EPMO34YI.js";
10
10
  import "./chunk-KFQGP6VL.js";
11
11
  export {
12
12
  AgenticMailManager,
@@ -590,7 +590,17 @@ var ImapEmailProvider = class {
590
590
  // ─── Connection ─────────────────────────────────────
591
591
  async connect(identity) {
592
592
  const imapIdentity = identity;
593
- if (!imapIdentity.imapHost) throw new Error("IMAP host is required");
593
+ if (!imapIdentity.imapHost && imapIdentity.smtpHost) {
594
+ const smtp = imapIdentity.smtpHost;
595
+ if (smtp.includes("smtp.gmail")) imapIdentity.imapHost = "imap.gmail.com";
596
+ else if (smtp.includes("smtp.office365") || smtp.includes("smtp.outlook")) imapIdentity.imapHost = "outlook.office365.com";
597
+ else if (smtp.includes("smtp.yahoo")) imapIdentity.imapHost = "imap.mail.yahoo.com";
598
+ else if (smtp.includes("smtp.zoho")) imapIdentity.imapHost = "imap.zoho.com";
599
+ else if (smtp.includes("smtp.fastmail")) imapIdentity.imapHost = "imap.fastmail.com";
600
+ else if (smtp.includes("smtp.mail.me")) imapIdentity.imapHost = "imap.mail.me.com";
601
+ else imapIdentity.imapHost = smtp.replace("smtp.", "imap.");
602
+ }
603
+ if (!imapIdentity.imapHost) throw new Error("IMAP host is required (set imapHost or smtpHost)");
594
604
  if (!imapIdentity.smtpHost) throw new Error("SMTP host is required");
595
605
  this.identity = imapIdentity;
596
606
  try {
@@ -2016,7 +2016,7 @@ ${identity.personality.slice(0, 800)}` : "";
2016
2016
  if (managerEmail && emailConfig) {
2017
2017
  console.log(`[welcome] Sending introduction email to ${managerEmail}...`);
2018
2018
  try {
2019
- const { createEmailProvider } = await import("./agenticmail-QMWQNUY2.js");
2019
+ const { createEmailProvider } = await import("./agenticmail-ETOYJ3FP.js");
2020
2020
  const providerType = emailConfig.provider || (emailConfig.oauthProvider === "google" ? "google" : emailConfig.oauthProvider === "microsoft" ? "microsoft" : "imap");
2021
2021
  const emailProvider = createEmailProvider(providerType);
2022
2022
  let currentAccessToken = emailConfig.oauthAccessToken;
@@ -2061,7 +2061,13 @@ ${identity.personality.slice(0, 800)}` : "";
2061
2061
  orgId,
2062
2062
  accessToken: currentAccessToken,
2063
2063
  refreshToken: refreshTokenFn,
2064
- provider: providerType
2064
+ provider: providerType,
2065
+ // IMAP/SMTP fields
2066
+ imapHost: emailConfig.imapHost,
2067
+ imapPort: emailConfig.imapPort,
2068
+ smtpHost: emailConfig.smtpHost,
2069
+ smtpPort: emailConfig.smtpPort,
2070
+ password: emailConfig.password
2065
2071
  });
2066
2072
  const agentName = config.displayName || config.name;
2067
2073
  const role = config.identity?.role || "AI Agent";
@@ -2099,12 +2105,12 @@ Your details:
2099
2105
  ${identity.personality ? `- Personality: ${identity.personality.slice(0, 600)}` : ""}
2100
2106
  ${identity.tone ? `- Tone: ${identity.tone}` : ""}
2101
2107
 
2102
- Write and send a brief, genuine introduction email to your manager. Be yourself \u2014 don't use templates or corporate speak. Mention your role, what you can help with, and that you're ready to get started. Keep it concise (under 200 words). Use the gmail_send or agenticmail_send tool to send it.`,
2108
+ Write and send a brief, genuine introduction email to your manager. Be yourself \u2014 don't use templates or corporate speak. Mention your role, what you can help with, and that you're ready to get started. Keep it concise (under 200 words). Use the ${providerType === "imap" ? "email_send" : "gmail_send or agenticmail_send"} tool to send it.`,
2103
2109
  systemPrompt: `You are ${agentName}, a ${role}. ${identity.personality || ""}
2104
2110
 
2105
2111
  You have email tools available. Send ONE email to introduce yourself to your manager. Be genuine and concise. Do NOT send more than one email.
2106
2112
 
2107
- Available tools: gmail_send (to, subject, body) or agenticmail_send (to, subject, body).`
2113
+ Available tools: ${providerType === "imap" ? "email_send (to, subject, body)" : "gmail_send (to, subject, body) or agenticmail_send (to, subject, body)"}.`
2108
2114
  });
2109
2115
  console.log(`[welcome] \u2705 Welcome email session ${welcomeSession.id} created`);
2110
2116
  if (memoryManager) {
package/dist/cli.js CHANGED
@@ -60,7 +60,7 @@ Skill Development:
60
60
  import("./cli-serve-2MX7MWVM.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
61
61
  break;
62
62
  case "agent":
63
- import("./cli-agent-5KFTOCOK.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
63
+ import("./cli-agent-4ISAILXX.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
64
64
  break;
65
65
  case "setup":
66
66
  default:
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  GoogleEmailProvider,
4
4
  MicrosoftEmailProvider,
5
5
  createEmailProvider
6
- } from "./chunk-G4YSECQ4.js";
6
+ } from "./chunk-EPMO34YI.js";
7
7
  import {
8
8
  deployToCloud,
9
9
  generateDockerCompose,
@@ -153,3 +153,9 @@
153
153
  2026-03-05 19:55:49: 2026-03-05T18:55:49Z ERR Request failed error="stream 753 canceled by remote with error code 0" connIndex=0 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=67ba24f1-c8af-40b4-9df5-c05b81fc1e7a event=0 ip=198.41.192.107 type=http
154
154
  2026-03-05 19:56:02: 2026-03-05T18:56:02Z ERR error="stream 913 canceled by remote with error code 0" connIndex=0 event=1 ingressRule=0 originService=http://localhost:3100
155
155
  2026-03-05 19:56:02: 2026-03-05T18:56:02Z ERR Request failed error="stream 913 canceled by remote with error code 0" connIndex=0 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.192.107 type=http
156
+ 2026-03-05 20:36:03: 2026-03-05T19:36:03Z ERR error="stream 897 canceled by remote with error code 0" connIndex=0 event=1 ingressRule=0 originService=http://localhost:3100
157
+ 2026-03-05 20:36:03: 2026-03-05T19:36:03Z ERR Request failed error="stream 897 canceled by remote with error code 0" connIndex=0 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.192.107 type=http
158
+ 2026-03-05 20:36:07: 2026-03-05T19:36:07Z ERR error="stream 993 canceled by remote with error code 0" connIndex=0 event=1 ingressRule=0 originService=http://localhost:3100
159
+ 2026-03-05 20:36:07: 2026-03-05T19:36:07Z ERR Request failed error="stream 993 canceled by remote with error code 0" connIndex=0 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.192.107 type=http
160
+ 2026-03-05 20:36:34: 2026-03-05T19:36:34Z ERR error="stream 1381 canceled by remote with error code 0" connIndex=0 event=1 ingressRule=0 originService=http://localhost:3100
161
+ 2026-03-05 20:36:34: 2026-03-05T19:36:34Z ERR Request failed error="stream 1381 canceled by remote with error code 0" connIndex=0 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.192.107 type=http
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.360",
3
+ "version": "0.5.362",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {