@agenticmail/enterprise 0.5.95 → 0.5.97
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-CDBIJ42S.js +898 -0
- package/dist/chunk-CWAFR2JH.js +2191 -0
- package/dist/chunk-F7HD443H.js +898 -0
- package/dist/chunk-FJPRGEUN.js +16106 -0
- package/dist/chunk-NWL4TLF4.js +2194 -0
- package/dist/chunk-QC2XKXAY.js +2391 -0
- package/dist/cli.js +1 -1
- package/dist/db-adapter-65QMSGCB.js +7 -0
- package/dist/index.js +4 -4
- package/dist/runtime-IEUW4STA.js +49 -0
- package/dist/server-4DJAKGYA.js +12 -0
- package/dist/server-UHM4CFFF.js +12 -0
- package/dist/setup-CRY7S2BG.js +20 -0
- package/dist/setup-QLGEBVYU.js +20 -0
- package/package.json +1 -1
- package/src/agent-tools/index.ts +20 -2
- package/src/agent-tools/tools/memory.ts +377 -91
- package/src/engine/db-adapter.ts +1 -1
- package/src/runtime/index.ts +31 -5
- package/src/runtime/types.ts +2 -0
- package/src/server.ts +4 -1
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-FJPRGEUN.js";
|
|
39
39
|
import "./chunk-NRF3YRF7.js";
|
|
40
40
|
import "./chunk-TYW5XTOW.js";
|
|
41
41
|
import "./chunk-AQH4DFYV.js";
|
|
@@ -52,11 +52,11 @@ import {
|
|
|
52
52
|
requireRole,
|
|
53
53
|
securityHeaders,
|
|
54
54
|
validate
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-NWL4TLF4.js";
|
|
56
56
|
import {
|
|
57
57
|
provision,
|
|
58
58
|
runSetupWizard
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-F7HD443H.js";
|
|
60
60
|
import {
|
|
61
61
|
ENGINE_TABLES,
|
|
62
62
|
ENGINE_TABLES_POSTGRES,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
MIGRATIONS_TABLE_POSTGRES,
|
|
67
67
|
sqliteToMySQL,
|
|
68
68
|
sqliteToPostgres
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-QC2XKXAY.js";
|
|
70
70
|
import {
|
|
71
71
|
deployToCloud,
|
|
72
72
|
generateDockerCompose,
|
|
@@ -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,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-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-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
package/src/agent-tools/index.ts
CHANGED
|
@@ -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 {
|
|
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
|
-
|
|
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),
|