@agenticmail/enterprise 0.5.74 → 0.5.75
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-3ZYTG6YH.js +13099 -0
- package/dist/chunk-72VXEHUE.js +2167 -0
- package/dist/chunk-PVSNZHZK.js +898 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +3 -3
- package/dist/routes-CLJ35S3C.js +6291 -0
- package/dist/runtime-FHI76JCR.js +47 -0
- package/dist/server-Y2JXL6WR.js +12 -0
- package/dist/setup-FRTQSRNC.js +20 -0
- package/package.json +1 -1
- package/src/engine/agent-routes.ts +17 -2
|
@@ -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-3ZYTG6YH.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-72VXEHUE.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-PVSNZHZK.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
|
@@ -541,7 +541,14 @@ export function createAgentRoutes(opts: {
|
|
|
541
541
|
emailConfig.oauthClientSecret = oauthClientSecret;
|
|
542
542
|
emailConfig.oauthTenantId = oauthTenantId || 'common';
|
|
543
543
|
emailConfig.oauthRedirectUri = oauthRedirectUri || '';
|
|
544
|
-
emailConfig.oauthScopes = [
|
|
544
|
+
emailConfig.oauthScopes = [
|
|
545
|
+
'https://graph.microsoft.com/Mail.ReadWrite',
|
|
546
|
+
'https://graph.microsoft.com/Mail.Send',
|
|
547
|
+
'https://graph.microsoft.com/Calendars.ReadWrite',
|
|
548
|
+
'https://graph.microsoft.com/Files.ReadWrite',
|
|
549
|
+
'https://graph.microsoft.com/Contacts.ReadWrite',
|
|
550
|
+
'offline_access',
|
|
551
|
+
];
|
|
545
552
|
|
|
546
553
|
if (!oauthClientId) return c.json({ error: 'oauthClientId is required for Microsoft OAuth' }, 400);
|
|
547
554
|
|
|
@@ -560,7 +567,15 @@ export function createAgentRoutes(opts: {
|
|
|
560
567
|
emailConfig.oauthClientId = oauthClientId;
|
|
561
568
|
emailConfig.oauthClientSecret = oauthClientSecret;
|
|
562
569
|
emailConfig.oauthRedirectUri = oauthRedirectUri || '';
|
|
563
|
-
emailConfig.oauthScopes = [
|
|
570
|
+
emailConfig.oauthScopes = [
|
|
571
|
+
'https://www.googleapis.com/auth/gmail.modify',
|
|
572
|
+
'https://www.googleapis.com/auth/gmail.send',
|
|
573
|
+
'https://www.googleapis.com/auth/calendar',
|
|
574
|
+
'https://www.googleapis.com/auth/drive',
|
|
575
|
+
'https://www.googleapis.com/auth/spreadsheets',
|
|
576
|
+
'https://www.googleapis.com/auth/documents',
|
|
577
|
+
'https://www.googleapis.com/auth/contacts',
|
|
578
|
+
];
|
|
564
579
|
|
|
565
580
|
if (!oauthClientId) return c.json({ error: 'oauthClientId is required for Google OAuth' }, 400);
|
|
566
581
|
|