@agenticmail/enterprise 0.5.51 → 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-JJ5UYDTN.js +898 -0
- package/dist/chunk-O644HUEE.js +898 -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-RUSVMLTL.js +47 -0
- package/dist/server-522KPRRT.js +12 -0
- package/dist/server-APT3ZGC5.js +12 -0
- package/dist/setup-RIRKTNTW.js +20 -0
- package/dist/setup-RJE5Y2RQ.js +20 -0
- package/package.json +1 -1
- package/src/agent-tools/index.ts +11 -8
- package/src/agent-tools/tools/agenticmail.ts +243 -569
- package/src/runtime/index.ts +3 -2
- package/src/runtime/types.ts +2 -0
- package/src/agenticmail-core/index.ts +0 -36
- package/src/agenticmail-core/pending-followup.ts +0 -362
- package/src/agenticmail-core/telemetry.ts +0 -164
- package/src/agenticmail-core/tools.ts +0 -2395
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-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,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
package/src/agent-tools/index.ts
CHANGED
|
@@ -103,7 +103,7 @@ export { createMemoryTool } from './tools/memory.js';
|
|
|
103
103
|
|
|
104
104
|
// --- Tool creators (agenticmail) ---
|
|
105
105
|
export { createAgenticMailTools } from './tools/agenticmail.js';
|
|
106
|
-
export type {
|
|
106
|
+
export type { AgenticMailManagerRef, AgenticMailToolsConfig } from './tools/agenticmail.js';
|
|
107
107
|
|
|
108
108
|
// --- Tool creators (enterprise) ---
|
|
109
109
|
export { createDatabaseTools } from './tools/enterprise-database.js';
|
|
@@ -165,12 +165,12 @@ import { createCodeSandboxTools } from './tools/enterprise-code-sandbox.js';
|
|
|
165
165
|
import { createDiffTools } from './tools/enterprise-diff.js';
|
|
166
166
|
import { createVisionTools } from './tools/enterprise-vision.js';
|
|
167
167
|
import { createAgenticMailTools } from './tools/agenticmail.js';
|
|
168
|
-
import type {
|
|
168
|
+
import type { AgenticMailManagerRef } from './tools/agenticmail.js';
|
|
169
169
|
|
|
170
|
-
/** Extended options that includes AgenticMail
|
|
170
|
+
/** Extended options that includes AgenticMail manager */
|
|
171
171
|
export interface AllToolsOptions extends ToolCreationOptions {
|
|
172
|
-
/** AgenticMail
|
|
173
|
-
|
|
172
|
+
/** AgenticMail manager for org email access */
|
|
173
|
+
agenticmailManager?: AgenticMailManagerRef;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/**
|
|
@@ -238,10 +238,13 @@ export function createAllTools(options?: AllToolsOptions): AnyAgentTool[] {
|
|
|
238
238
|
...createVisionTools(options),
|
|
239
239
|
];
|
|
240
240
|
|
|
241
|
-
// AgenticMail tools (if
|
|
241
|
+
// AgenticMail tools (if manager + agentId provided)
|
|
242
242
|
var agenticmailTools: AnyAgentTool[] = [];
|
|
243
|
-
if (options?.
|
|
244
|
-
agenticmailTools = createAgenticMailTools(
|
|
243
|
+
if (options?.agenticmailManager && options?.agentId) {
|
|
244
|
+
agenticmailTools = createAgenticMailTools(
|
|
245
|
+
{ manager: options.agenticmailManager, agentId: options.agentId },
|
|
246
|
+
options,
|
|
247
|
+
);
|
|
245
248
|
}
|
|
246
249
|
|
|
247
250
|
var enabledTools = rawTools
|