@agenticmail/enterprise 0.5.47 → 0.5.49

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.
@@ -0,0 +1,47 @@
1
+ import {
2
+ AgentRuntime,
3
+ EmailChannel,
4
+ FollowUpScheduler,
5
+ SessionManager,
6
+ SubAgentManager,
7
+ ToolRegistry,
8
+ callLLM,
9
+ createAgentRuntime,
10
+ createNoopHooks,
11
+ createRuntimeHooks,
12
+ estimateMessageTokens,
13
+ estimateTokens,
14
+ executeTool,
15
+ runAgentLoop,
16
+ toolsToDefinitions
17
+ } from "./chunk-WG3RK3S2.js";
18
+ import "./chunk-TYW5XTOW.js";
19
+ import "./chunk-JLSQOQ5L.js";
20
+ import {
21
+ PROVIDER_REGISTRY,
22
+ listAllProviders,
23
+ resolveApiKeyForProvider,
24
+ resolveProvider
25
+ } from "./chunk-67KZYSLU.js";
26
+ import "./chunk-KFQGP6VL.js";
27
+ export {
28
+ AgentRuntime,
29
+ EmailChannel,
30
+ FollowUpScheduler,
31
+ PROVIDER_REGISTRY,
32
+ SessionManager,
33
+ SubAgentManager,
34
+ ToolRegistry,
35
+ callLLM,
36
+ createAgentRuntime,
37
+ createNoopHooks,
38
+ createRuntimeHooks,
39
+ estimateMessageTokens,
40
+ estimateTokens,
41
+ executeTool,
42
+ listAllProviders,
43
+ resolveApiKeyForProvider,
44
+ resolveProvider,
45
+ runAgentLoop,
46
+ toolsToDefinitions
47
+ };
@@ -0,0 +1,47 @@
1
+ import {
2
+ AgentRuntime,
3
+ EmailChannel,
4
+ FollowUpScheduler,
5
+ SessionManager,
6
+ SubAgentManager,
7
+ ToolRegistry,
8
+ callLLM,
9
+ createAgentRuntime,
10
+ createNoopHooks,
11
+ createRuntimeHooks,
12
+ estimateMessageTokens,
13
+ estimateTokens,
14
+ executeTool,
15
+ runAgentLoop,
16
+ toolsToDefinitions
17
+ } from "./chunk-6T5PE7NL.js";
18
+ import "./chunk-TYW5XTOW.js";
19
+ import "./chunk-JLSQOQ5L.js";
20
+ import {
21
+ PROVIDER_REGISTRY,
22
+ listAllProviders,
23
+ resolveApiKeyForProvider,
24
+ resolveProvider
25
+ } from "./chunk-67KZYSLU.js";
26
+ import "./chunk-KFQGP6VL.js";
27
+ export {
28
+ AgentRuntime,
29
+ EmailChannel,
30
+ FollowUpScheduler,
31
+ PROVIDER_REGISTRY,
32
+ SessionManager,
33
+ SubAgentManager,
34
+ ToolRegistry,
35
+ callLLM,
36
+ createAgentRuntime,
37
+ createNoopHooks,
38
+ createRuntimeHooks,
39
+ estimateMessageTokens,
40
+ estimateTokens,
41
+ executeTool,
42
+ listAllProviders,
43
+ resolveApiKeyForProvider,
44
+ resolveProvider,
45
+ runAgentLoop,
46
+ toolsToDefinitions
47
+ };
@@ -0,0 +1,12 @@
1
+ import {
2
+ createServer
3
+ } from "./chunk-NU56PI3D.js";
4
+ import "./chunk-3SMTCIR4.js";
5
+ import "./chunk-JLSQOQ5L.js";
6
+ import "./chunk-RO537U6H.js";
7
+ import "./chunk-DRXMYYKN.js";
8
+ import "./chunk-67KZYSLU.js";
9
+ import "./chunk-KFQGP6VL.js";
10
+ export {
11
+ createServer
12
+ };
@@ -0,0 +1,12 @@
1
+ import {
2
+ createServer
3
+ } from "./chunk-JFXH5PXO.js";
4
+ import "./chunk-3SMTCIR4.js";
5
+ import "./chunk-JLSQOQ5L.js";
6
+ import "./chunk-RO537U6H.js";
7
+ import "./chunk-DRXMYYKN.js";
8
+ import "./chunk-67KZYSLU.js";
9
+ import "./chunk-KFQGP6VL.js";
10
+ export {
11
+ createServer
12
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ promptCompanyInfo,
3
+ promptDatabase,
4
+ promptDeployment,
5
+ promptDomain,
6
+ promptRegistration,
7
+ provision,
8
+ runSetupWizard
9
+ } from "./chunk-2CVPFHJD.js";
10
+ import "./chunk-M4PRT53C.js";
11
+ import "./chunk-KFQGP6VL.js";
12
+ export {
13
+ promptCompanyInfo,
14
+ promptDatabase,
15
+ promptDeployment,
16
+ promptDomain,
17
+ promptRegistration,
18
+ provision,
19
+ runSetupWizard
20
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ promptCompanyInfo,
3
+ promptDatabase,
4
+ promptDeployment,
5
+ promptDomain,
6
+ promptRegistration,
7
+ provision,
8
+ runSetupWizard
9
+ } from "./chunk-R3JR6Z3H.js";
10
+ import "./chunk-M4PRT53C.js";
11
+ import "./chunk-KFQGP6VL.js";
12
+ export {
13
+ promptCompanyInfo,
14
+ promptDatabase,
15
+ promptDeployment,
16
+ promptDomain,
17
+ promptRegistration,
18
+ provision,
19
+ runSetupWizard
20
+ };
@@ -0,0 +1,14 @@
1
+ import {
2
+ BUILTIN_SKILLS,
3
+ PRESET_PROFILES,
4
+ PermissionEngine,
5
+ SKILL_SUITES
6
+ } from "./chunk-NUG7SMVQ.js";
7
+ import "./chunk-MINPSFLF.js";
8
+ import "./chunk-KFQGP6VL.js";
9
+ export {
10
+ BUILTIN_SKILLS,
11
+ PRESET_PROFILES,
12
+ PermissionEngine,
13
+ SKILL_SUITES
14
+ };
@@ -0,0 +1,14 @@
1
+ import {
2
+ BUILTIN_SKILLS,
3
+ PRESET_PROFILES,
4
+ PermissionEngine,
5
+ SKILL_SUITES
6
+ } from "./chunk-4SAHG5E7.js";
7
+ import "./chunk-MINPSFLF.js";
8
+ import "./chunk-KFQGP6VL.js";
9
+ export {
10
+ BUILTIN_SKILLS,
11
+ PRESET_PROFILES,
12
+ PermissionEngine,
13
+ SKILL_SUITES
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.47",
3
+ "version": "0.5.49",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,115 @@
1
+ /**
2
+ * AgenticMail — Core Email & Agent Communication Platform
3
+ *
4
+ * The company's flagship product. Provides AI agents with full email capabilities,
5
+ * inter-agent communication, storage, SMS, task management, and more.
6
+ */
7
+
8
+ import type { SkillDefinition, ToolDefinition } from '../skills.js';
9
+
10
+ export const SKILL_DEF: Omit<SkillDefinition, 'tools'> = {
11
+ id: 'agenticmail',
12
+ name: 'AgenticMail',
13
+ description: 'AI-native email platform — send/receive email, inter-agent messaging, storage, SMS, task management, and multi-agent coordination.',
14
+ category: 'communication',
15
+ risk: 'medium',
16
+ icon: '📬',
17
+ source: 'builtin',
18
+ };
19
+
20
+ const S = 'agenticmail'; // skillId shorthand
21
+
22
+ export const TOOLS: ToolDefinition[] = [
23
+ // ─── Email Core ────────────────────────────────────────
24
+ { id: 'agenticmail_send', name: 'Send Email', description: 'Send an email from the agent mailbox. Outbound guard scans for PII/credentials.', category: 'communicate', risk: 'high', skillId: S, sideEffects: ['sends-email'] },
25
+ { id: 'agenticmail_reply', name: 'Reply to Email', description: 'Reply to an email by UID. Outbound guard applies.', category: 'communicate', risk: 'high', skillId: S, sideEffects: ['sends-email'] },
26
+ { id: 'agenticmail_forward', name: 'Forward Email', description: 'Forward an email to another recipient.', category: 'communicate', risk: 'high', skillId: S, sideEffects: ['sends-email'] },
27
+ { id: 'agenticmail_inbox', name: 'List Inbox', description: 'List recent emails in the inbox.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
28
+ { id: 'agenticmail_read', name: 'Read Email', description: 'Read a specific email by UID with security metadata.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
29
+ { id: 'agenticmail_search', name: 'Search Emails', description: 'Search emails by criteria. Supports relay search for connected Gmail/Outlook.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
30
+ { id: 'agenticmail_digest', name: 'Inbox Digest', description: 'Compact inbox digest with subject, sender, date, and text preview.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
31
+ { id: 'agenticmail_delete', name: 'Delete Email', description: 'Delete an email by UID.', category: 'destroy', risk: 'medium', skillId: S, sideEffects: ['deletes-data'] },
32
+ { id: 'agenticmail_move', name: 'Move Email', description: 'Move an email to another folder.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
33
+ { id: 'agenticmail_mark_read', name: 'Mark Read', description: 'Mark an email as read.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
34
+ { id: 'agenticmail_mark_unread', name: 'Mark Unread', description: 'Mark an email as unread.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
35
+ { id: 'agenticmail_folders', name: 'List Folders', description: 'List all mail folders.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
36
+ { id: 'agenticmail_create_folder', name: 'Create Folder', description: 'Create a new mail folder.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
37
+ { id: 'agenticmail_list_folder', name: 'List Folder', description: 'List messages in a specific folder (Sent, Drafts, Trash, etc.).', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
38
+
39
+ // ─── Batch Operations ──────────────────────────────────
40
+ { id: 'agenticmail_batch_read', name: 'Batch Read', description: 'Read multiple emails at once by UIDs.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
41
+ { id: 'agenticmail_batch_delete', name: 'Batch Delete', description: 'Delete multiple emails by UIDs.', category: 'destroy', risk: 'medium', skillId: S, sideEffects: ['deletes-data'] },
42
+ { id: 'agenticmail_batch_move', name: 'Batch Move', description: 'Move multiple emails to another folder.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
43
+ { id: 'agenticmail_batch_mark_read', name: 'Batch Mark Read', description: 'Mark multiple emails as read.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
44
+ { id: 'agenticmail_batch_mark_unread', name: 'Batch Mark Unread', description: 'Mark multiple emails as unread.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
45
+
46
+ // ─── Drafts ────────────────────────────────────────────
47
+ { id: 'agenticmail_drafts', name: 'Manage Drafts', description: 'List, create, update, delete, or send email drafts.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
48
+
49
+ // ─── Templates & Signatures ────────────────────────────
50
+ { id: 'agenticmail_templates', name: 'Email Templates', description: 'List, create, or delete email templates.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
51
+ { id: 'agenticmail_template_send', name: 'Send from Template', description: 'Send email using a saved template with variable substitution.', category: 'communicate', risk: 'high', skillId: S, sideEffects: ['sends-email'] },
52
+ { id: 'agenticmail_signatures', name: 'Email Signatures', description: 'List, create, or delete email signatures.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
53
+
54
+ // ─── Tags & Rules ──────────────────────────────────────
55
+ { id: 'agenticmail_tags', name: 'Manage Tags', description: 'List, create, delete, tag/untag messages, get messages by tag.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
56
+ { id: 'agenticmail_rules', name: 'Email Rules', description: 'Auto-process incoming messages with server-side rules.', category: 'write', risk: 'medium', skillId: S, sideEffects: [] },
57
+
58
+ // ─── Scheduling ────────────────────────────────────────
59
+ { id: 'agenticmail_schedule', name: 'Schedule Email', description: 'Create, list, or cancel scheduled emails.', category: 'communicate', risk: 'medium', skillId: S, sideEffects: ['sends-email'] },
60
+
61
+ // ─── Spam Management ───────────────────────────────────
62
+ { id: 'agenticmail_spam', name: 'Spam Management', description: 'List spam, report/unreport messages, get spam scores.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
63
+
64
+ // ─── Agent Communication ───────────────────────────────
65
+ { id: 'agenticmail_list_agents', name: 'List Agents', description: 'Discover all available AI agents and their emails/roles.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
66
+ { id: 'agenticmail_message_agent', name: 'Message Agent', description: 'Send a message to another AI agent by name.', category: 'communicate', risk: 'medium', skillId: S, sideEffects: ['sends-email'] },
67
+ { id: 'agenticmail_call_agent', name: 'Call Agent', description: 'RPC call to another agent — sync or async. Auto-spawns sessions.', category: 'execute', risk: 'medium', skillId: S, sideEffects: ['spawns-agent'] },
68
+ { id: 'agenticmail_check_messages', name: 'Check Messages', description: 'Check for new unread messages from other agents or external senders.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
69
+ { id: 'agenticmail_wait_for_email', name: 'Wait for Email', description: 'Push-based wait for new email or task notification (SSE).', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
70
+
71
+ // ─── Task Management ───────────────────────────────────
72
+ { id: 'agenticmail_check_tasks', name: 'Check Tasks', description: 'Check for pending tasks assigned to you or tasks you assigned.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
73
+ { id: 'agenticmail_claim_task', name: 'Claim Task', description: 'Claim a pending task to start working on it.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
74
+ { id: 'agenticmail_submit_result', name: 'Submit Result', description: 'Submit result for a claimed task, marking it complete.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
75
+ { id: 'agenticmail_complete_task', name: 'Complete Task', description: 'Claim and submit result in one call.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
76
+
77
+ // ─── Storage / Database ────────────────────────────────
78
+ { id: 'agenticmail_storage', name: 'Agent Storage', description: 'Full database management — tables, CRUD, indexes, aggregations, raw SQL.', category: 'write', risk: 'medium', skillId: S, sideEffects: ['writes-data'] },
79
+
80
+ // ─── Contacts ──────────────────────────────────────────
81
+ { id: 'agenticmail_contacts', name: 'Manage Contacts', description: 'List, add, or delete contacts.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
82
+
83
+ // ─── SMS / Phone ───────────────────────────────────────
84
+ { id: 'agenticmail_sms_setup', name: 'SMS Setup', description: 'Configure SMS/phone via Google Voice.', category: 'write', risk: 'medium', skillId: S, sideEffects: [] },
85
+ { id: 'agenticmail_sms_send', name: 'Send SMS', description: 'Send an SMS text message via Google Voice.', category: 'communicate', risk: 'high', skillId: S, sideEffects: ['sends-sms'] },
86
+ { id: 'agenticmail_sms_messages', name: 'List SMS', description: 'List SMS messages (inbound and outbound).', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
87
+ { id: 'agenticmail_sms_check_code', name: 'Check SMS Code', description: 'Check for recent verification/OTP codes from SMS.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
88
+ { id: 'agenticmail_sms_read_voice', name: 'Read Google Voice', description: 'Read SMS directly from Google Voice web interface.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
89
+ { id: 'agenticmail_sms_record', name: 'Record SMS', description: 'Record an SMS from Google Voice or other source.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
90
+ { id: 'agenticmail_sms_parse_email', name: 'Parse SMS Email', description: 'Parse SMS from forwarded Google Voice email.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
91
+ { id: 'agenticmail_sms_config', name: 'SMS Config', description: 'Get current SMS/phone number configuration.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
92
+
93
+ // ─── Account & Setup ───────────────────────────────────
94
+ { id: 'agenticmail_whoami', name: 'Who Am I', description: 'Get the current agent account info — name, email, role, metadata.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
95
+ { id: 'agenticmail_update_metadata', name: 'Update Metadata', description: 'Update the current agent metadata.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
96
+ { id: 'agenticmail_status', name: 'Server Status', description: 'Check AgenticMail server health status.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
97
+ { id: 'agenticmail_gateway_status', name: 'Gateway Status', description: 'Check email gateway status (relay, domain, or none).', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
98
+ { id: 'agenticmail_pending_emails', name: 'Pending Emails', description: 'Check outbound emails blocked by the outbound guard.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
99
+
100
+ // ─── Admin ─────────────────────────────────────────────
101
+ { id: 'agenticmail_create_account', name: 'Create Agent Account', description: 'Create a new agent email account (requires master key).', category: 'write', risk: 'high', skillId: S, sideEffects: ['creates-account'] },
102
+ { id: 'agenticmail_delete_agent', name: 'Delete Agent', description: 'Delete an agent account permanently.', category: 'destroy', risk: 'critical', skillId: S, sideEffects: ['deletes-data'] },
103
+ { id: 'agenticmail_cleanup', name: 'Cleanup Agents', description: 'List or remove inactive non-persistent agent accounts.', category: 'destroy', risk: 'high', skillId: S, sideEffects: ['deletes-data'] },
104
+ { id: 'agenticmail_deletion_reports', name: 'Deletion Reports', description: 'List past agent deletion reports.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
105
+
106
+ // ─── Relay & Domain Setup ──────────────────────────────
107
+ { id: 'agenticmail_setup_guide', name: 'Setup Guide', description: 'Comparison of email setup modes (Relay vs Domain).', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
108
+ { id: 'agenticmail_setup_relay', name: 'Setup Relay', description: 'Configure Gmail/Outlook relay for real internet email.', category: 'write', risk: 'high', skillId: S, sideEffects: ['configures-email'] },
109
+ { id: 'agenticmail_setup_domain', name: 'Setup Domain', description: 'Set up custom domain via Cloudflare with DKIM/SPF/DMARC.', category: 'write', risk: 'high', skillId: S, sideEffects: ['configures-email'] },
110
+ { id: 'agenticmail_setup_gmail_alias', name: 'Gmail Alias Setup', description: 'Instructions to add agent email as Gmail "Send mail as" alias.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
111
+ { id: 'agenticmail_setup_payment', name: 'Payment Setup', description: 'Instructions for adding payment to Cloudflare for domain purchase.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
112
+ { id: 'agenticmail_purchase_domain', name: 'Search Domains', description: 'Search for available domains via Cloudflare Registrar.', category: 'read', risk: 'low', skillId: S, sideEffects: [] },
113
+ { id: 'agenticmail_test_email', name: 'Test Email', description: 'Send a test email to verify gateway configuration.', category: 'communicate', risk: 'medium', skillId: S, sideEffects: ['sends-email'] },
114
+ { id: 'agenticmail_import_relay', name: 'Import Relay Email', description: 'Import email from connected Gmail/Outlook into local inbox.', category: 'write', risk: 'low', skillId: S, sideEffects: [] },
115
+ ];
@@ -72,6 +72,14 @@ import type { ToolDefinition } from '../skills.js';
72
72
  export const M365_TOOLS: ToolDefinition[] = M365_MODULES.flatMap(m => m.TOOLS);
73
73
  export const GWS_TOOLS: ToolDefinition[] = GWS_MODULES.flatMap(m => m.TOOLS);
74
74
 
75
+ // ─── AgenticMail (Company Core Product) ─────────────────
76
+
77
+ import * as AgenticMail from './agenticmail.js';
78
+
79
+ export const AGENTICMAIL_MODULES = [AgenticMail] as const;
80
+ export const AGENTICMAIL_SKILL_DEFS = AGENTICMAIL_MODULES.map(m => m.SKILL_DEF);
81
+ export const AGENTICMAIL_TOOLS: ToolDefinition[] = AGENTICMAIL_MODULES.flatMap(m => m.TOOLS);
82
+
75
83
  // ─── Enterprise Utility Skills ─────────────────────────
76
84
 
77
85
  import * as EntDatabase from './enterprise-database.js';
@@ -106,6 +114,7 @@ export const ENTERPRISE_UTILITY_TOOLS: ToolDefinition[] = ENTERPRISE_MODULES.fla
106
114
  // ─── Re-export individual modules for direct access ─────
107
115
 
108
116
  export {
117
+ AgenticMail,
109
118
  M365Outlook, M365Teams, M365SharePoint, M365OneDrive,
110
119
  M365Word, M365Excel, M365PowerPoint, M365OneNote,
111
120
  M365Planner, M365PowerBI, M365PowerAutomate, M365Forms,