@agenticmail/enterprise 0.5.95 → 0.5.98

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,49 @@
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-FJPRGEUN.js";
18
+ import "./chunk-NRF3YRF7.js";
19
+ import "./chunk-TYW5XTOW.js";
20
+ import "./chunk-AQH4DFYV.js";
21
+ import "./chunk-JLSQOQ5L.js";
22
+ import {
23
+ PROVIDER_REGISTRY,
24
+ listAllProviders,
25
+ resolveApiKeyForProvider,
26
+ resolveProvider
27
+ } from "./chunk-67KZYSLU.js";
28
+ import "./chunk-KFQGP6VL.js";
29
+ export {
30
+ AgentRuntime,
31
+ EmailChannel,
32
+ FollowUpScheduler,
33
+ PROVIDER_REGISTRY,
34
+ SessionManager,
35
+ SubAgentManager,
36
+ ToolRegistry,
37
+ callLLM,
38
+ createAgentRuntime,
39
+ createNoopHooks,
40
+ createRuntimeHooks,
41
+ estimateMessageTokens,
42
+ estimateTokens,
43
+ executeTool,
44
+ listAllProviders,
45
+ resolveApiKeyForProvider,
46
+ resolveProvider,
47
+ runAgentLoop,
48
+ toolsToDefinitions
49
+ };
@@ -0,0 +1,49 @@
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-7AXTPSIN.js";
18
+ import "./chunk-NRF3YRF7.js";
19
+ import "./chunk-TYW5XTOW.js";
20
+ import "./chunk-AQH4DFYV.js";
21
+ import "./chunk-JLSQOQ5L.js";
22
+ import {
23
+ PROVIDER_REGISTRY,
24
+ listAllProviders,
25
+ resolveApiKeyForProvider,
26
+ resolveProvider
27
+ } from "./chunk-67KZYSLU.js";
28
+ import "./chunk-KFQGP6VL.js";
29
+ export {
30
+ AgentRuntime,
31
+ EmailChannel,
32
+ FollowUpScheduler,
33
+ PROVIDER_REGISTRY,
34
+ SessionManager,
35
+ SubAgentManager,
36
+ ToolRegistry,
37
+ callLLM,
38
+ createAgentRuntime,
39
+ createNoopHooks,
40
+ createRuntimeHooks,
41
+ estimateMessageTokens,
42
+ estimateTokens,
43
+ executeTool,
44
+ listAllProviders,
45
+ resolveApiKeyForProvider,
46
+ resolveProvider,
47
+ runAgentLoop,
48
+ toolsToDefinitions
49
+ };
@@ -0,0 +1,12 @@
1
+ import {
2
+ createServer
3
+ } from "./chunk-CWAFR2JH.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-PC7IMFOA.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-NWL4TLF4.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-TIV6GMQ5.js";
10
+ import "./chunk-QDXUZP7Y.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-F7HD443H.js";
10
+ import "./chunk-QDXUZP7Y.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-CDBIJ42S.js";
10
+ import "./chunk-QDXUZP7Y.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.95",
3
+ "version": "0.5.98",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -103,6 +103,8 @@ export { createBrowserTool } from './tools/browser.js';
103
103
  // Use: const { createEnterpriseBrowserTool } = await import('@agenticmail/enterprise/browser-tool');
104
104
  export type { EnterpriseBrowserToolConfig } from './tools/browser-tool.js';
105
105
  export { createMemoryTool } from './tools/memory.js';
106
+ export { createMemoryTools } from './tools/memory.js';
107
+ export type { MemoryToolOptions } from './tools/memory.js';
106
108
 
107
109
  // --- Tool creators (agenticmail) ---
108
110
  export { createAgenticMailTools } from './tools/agenticmail.js';
@@ -161,7 +163,8 @@ import { createWebFetchTool } from './tools/web-fetch.js';
161
163
  import { createWebSearchTool } from './tools/web-search.js';
162
164
  import { createBrowserTool } from './tools/browser.js';
163
165
  // createEnterpriseBrowserTool is lazy-loaded — not imported at startup
164
- import { createMemoryTool } from './tools/memory.js';
166
+ import { createMemoryTools } from './tools/memory.js';
167
+ import type { MemoryToolOptions } from './tools/memory.js';
165
168
 
166
169
  // Enterprise tool creators
167
170
  import { createDatabaseTools } from './tools/enterprise-database.js';
@@ -188,10 +191,16 @@ import type { OAuthTokens, TokenProvider } from './tools/oauth-token-provider.js
188
191
  import { createMeetingLifecycleTools } from './tools/meeting-lifecycle.js';
189
192
  import { detectCapabilities } from '../runtime/environment.js';
190
193
 
194
+ import type { AgentMemoryManager } from '../engine/agent-memory.js';
195
+
191
196
  /** Extended options that includes AgenticMail manager */
192
197
  export interface AllToolsOptions extends ToolCreationOptions {
193
198
  /** AgenticMail manager for org email access */
194
199
  agenticmailManager?: AgenticMailManagerRef;
200
+ /** Agent memory manager for persistent DB-backed memory */
201
+ agentMemoryManager?: AgentMemoryManager;
202
+ /** Organization ID for memory scoping */
203
+ orgId?: string;
195
204
  /** OAuth token provider for Google/Microsoft API tools */
196
205
  oauthTokenProvider?: TokenProvider;
197
206
  /** Raw email config for auto-creating token provider */
@@ -260,7 +269,7 @@ export async function createAllTools(options?: AllToolsOptions): Promise<AnyAgen
260
269
  createWebFetchTool({ ...options, ssrfGuard }),
261
270
  createWebSearchTool(options),
262
271
  createBrowserTool({ ...options, ssrfGuard }),
263
- createMemoryTool(options),
272
+ // Memory tools added separately below (may produce multiple tools)
264
273
  ];
265
274
 
266
275
  // Replace simple browser with enterprise browser tool if configured
@@ -296,6 +305,15 @@ export async function createAllTools(options?: AllToolsOptions): Promise<AnyAgen
296
305
  }
297
306
  }
298
307
 
308
+ // Memory tools (DB-backed when manager available, file-based fallback)
309
+ var memoryTools = createMemoryTools({
310
+ ...options,
311
+ agentMemoryManager: options?.agentMemoryManager,
312
+ agentId: options?.agentId,
313
+ orgId: options?.orgId,
314
+ } as MemoryToolOptions);
315
+ rawTools = rawTools.concat(memoryTools as any);
316
+
299
317
  // Enterprise tools (16 skills, 87 tools)
300
318
  var enterpriseTools: AnyAgentTool[] = [
301
319
  ...createDatabaseTools(options),