@agenticmail/enterprise 0.5.49 → 0.5.51

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-G7BBCWAX.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-Q4WDMWLJ.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-FKDN7ZV3.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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.49",
3
+ "version": "0.5.51",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -40,19 +40,6 @@
40
40
  "url": "https://github.com/agenticmail/enterprise/issues"
41
41
  },
42
42
  "license": "MIT",
43
- "peerDependencies": {
44
- "@agenticmail/api": ">=0.5.0",
45
- "@agenticmail/core": ">=0.5.0",
46
- "agenticmail": ">=0.5.0"
47
- },
48
- "peerDependenciesMeta": {
49
- "agenticmail": {
50
- "optional": true
51
- },
52
- "@agenticmail/api": {
53
- "optional": true
54
- }
55
- },
56
43
  "dependencies": {
57
44
  "@anthropic-ai/sdk": "^0.73.0",
58
45
  "@hono/node-server": "^1.19.9",
@@ -101,6 +101,10 @@ export { createWebSearchTool } from './tools/web-search.js';
101
101
  export { createBrowserTool } from './tools/browser.js';
102
102
  export { createMemoryTool } from './tools/memory.js';
103
103
 
104
+ // --- Tool creators (agenticmail) ---
105
+ export { createAgenticMailTools } from './tools/agenticmail.js';
106
+ export type { AgenticMailConnectionConfig } from './tools/agenticmail.js';
107
+
104
108
  // --- Tool creators (enterprise) ---
105
109
  export { createDatabaseTools } from './tools/enterprise-database.js';
106
110
  export { createSpreadsheetTools } from './tools/enterprise-spreadsheet.js';
@@ -160,15 +164,23 @@ import { createSecurityScanTools } from './tools/enterprise-security-scan.js';
160
164
  import { createCodeSandboxTools } from './tools/enterprise-code-sandbox.js';
161
165
  import { createDiffTools } from './tools/enterprise-diff.js';
162
166
  import { createVisionTools } from './tools/enterprise-vision.js';
167
+ import { createAgenticMailTools } from './tools/agenticmail.js';
168
+ import type { AgenticMailConnectionConfig } from './tools/agenticmail.js';
169
+
170
+ /** Extended options that includes AgenticMail connection config */
171
+ export interface AllToolsOptions extends ToolCreationOptions {
172
+ /** AgenticMail API connection (if available) */
173
+ agenticmail?: AgenticMailConnectionConfig;
174
+ }
163
175
 
164
176
  /**
165
177
  * Create all available agent tools with the given options.
166
178
  * Automatically applies security sandbox and middleware wrapping.
167
179
  * Returns only tools that are enabled (non-null).
168
180
  *
169
- * Includes 10 core tools + 87 enterprise tools (16 skills).
181
+ * Includes 10 core tools + 87 enterprise tools (16 skills) + 63 AgenticMail tools (if configured).
170
182
  */
171
- export function createAllTools(options?: ToolCreationOptions): AnyAgentTool[] {
183
+ export function createAllTools(options?: AllToolsOptions): AnyAgentTool[] {
172
184
  // Create security primitives
173
185
  var pathSandbox = options?.workspaceDir && options?.security?.pathSandbox?.enabled !== false
174
186
  ? createPathSandbox(options.workspaceDir, {
@@ -226,9 +238,16 @@ export function createAllTools(options?: ToolCreationOptions): AnyAgentTool[] {
226
238
  ...createVisionTools(options),
227
239
  ];
228
240
 
241
+ // AgenticMail tools (if connection configured)
242
+ var agenticmailTools: AnyAgentTool[] = [];
243
+ if (options?.agenticmail) {
244
+ agenticmailTools = createAgenticMailTools(options.agenticmail, options);
245
+ }
246
+
229
247
  var enabledTools = rawTools
230
248
  .filter(function(t): t is AnyAgentTool { return t !== null; })
231
- .concat(enterpriseTools);
249
+ .concat(enterpriseTools)
250
+ .concat(agenticmailTools);
232
251
 
233
252
  // Wrap with middleware if configured
234
253
  if (options?.middleware) {