@agenticmail/enterprise 0.5.50 → 0.5.52
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-C3WNMW6E.js +13098 -0
- package/dist/chunk-DU4NOTV5.js +2115 -0
- package/dist/chunk-EORYXW7I.js +2115 -0
- package/dist/chunk-FKDN7ZV3.js +898 -0
- package/dist/chunk-G7BBCWAX.js +13428 -0
- package/dist/chunk-JJ5UYDTN.js +898 -0
- package/dist/chunk-O644HUEE.js +898 -0
- package/dist/chunk-Q4WDMWLJ.js +2115 -0
- package/dist/chunk-SNVBXLJC.js +13099 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +3 -3
- package/dist/runtime-D2CP45UC.js +47 -0
- package/dist/runtime-ENGVD2AI.js +47 -0
- package/dist/runtime-RUSVMLTL.js +47 -0
- package/dist/server-522KPRRT.js +12 -0
- package/dist/server-APT3ZGC5.js +12 -0
- package/dist/server-JBOS22AY.js +12 -0
- package/dist/setup-6ATX2BNE.js +20 -0
- package/dist/setup-RIRKTNTW.js +20 -0
- package/dist/setup-RJE5Y2RQ.js +20 -0
- package/package.json +1 -14
- package/src/agent-tools/index.ts +25 -3
- package/src/agent-tools/tools/agenticmail.ts +459 -0
- package/src/runtime/index.ts +3 -2
- package/src/runtime/types.ts +2 -0
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
executeTool,
|
|
36
36
|
runAgentLoop,
|
|
37
37
|
toolsToDefinitions
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SNVBXLJC.js";
|
|
39
39
|
import "./chunk-TYW5XTOW.js";
|
|
40
40
|
import {
|
|
41
41
|
ValidationError,
|
|
@@ -50,11 +50,11 @@ import {
|
|
|
50
50
|
requireRole,
|
|
51
51
|
securityHeaders,
|
|
52
52
|
validate
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-DU4NOTV5.js";
|
|
54
54
|
import {
|
|
55
55
|
provision,
|
|
56
56
|
runSetupWizard
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-JJ5UYDTN.js";
|
|
58
58
|
import {
|
|
59
59
|
ENGINE_TABLES,
|
|
60
60
|
ENGINE_TABLES_POSTGRES,
|
|
@@ -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-C3WNMW6E.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-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,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-SNVBXLJC.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-DU4NOTV5.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-EORYXW7I.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-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
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
promptCompanyInfo,
|
|
3
|
+
promptDatabase,
|
|
4
|
+
promptDeployment,
|
|
5
|
+
promptDomain,
|
|
6
|
+
promptRegistration,
|
|
7
|
+
provision,
|
|
8
|
+
runSetupWizard
|
|
9
|
+
} from "./chunk-O644HUEE.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-JJ5UYDTN.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.
|
|
3
|
+
"version": "0.5.52",
|
|
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",
|
package/src/agent-tools/index.ts
CHANGED
|
@@ -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 { AgenticMailManagerRef, AgenticMailToolsConfig } 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 { AgenticMailManagerRef } from './tools/agenticmail.js';
|
|
169
|
+
|
|
170
|
+
/** Extended options that includes AgenticMail manager */
|
|
171
|
+
export interface AllToolsOptions extends ToolCreationOptions {
|
|
172
|
+
/** AgenticMail manager for org email access */
|
|
173
|
+
agenticmailManager?: AgenticMailManagerRef;
|
|
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?:
|
|
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,19 @@ export function createAllTools(options?: ToolCreationOptions): AnyAgentTool[] {
|
|
|
226
238
|
...createVisionTools(options),
|
|
227
239
|
];
|
|
228
240
|
|
|
241
|
+
// AgenticMail tools (if manager + agentId provided)
|
|
242
|
+
var agenticmailTools: AnyAgentTool[] = [];
|
|
243
|
+
if (options?.agenticmailManager && options?.agentId) {
|
|
244
|
+
agenticmailTools = createAgenticMailTools(
|
|
245
|
+
{ manager: options.agenticmailManager, agentId: options.agentId },
|
|
246
|
+
options,
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
|
|
229
250
|
var enabledTools = rawTools
|
|
230
251
|
.filter(function(t): t is AnyAgentTool { return t !== null; })
|
|
231
|
-
.concat(enterpriseTools)
|
|
252
|
+
.concat(enterpriseTools)
|
|
253
|
+
.concat(agenticmailTools);
|
|
232
254
|
|
|
233
255
|
// Wrap with middleware if configured
|
|
234
256
|
if (options?.middleware) {
|