@agenticmail/enterprise 0.5.70 → 0.5.72

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,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-WH2LORAG.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-PB2APZMU.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-UGBWZJ5G.js";
10
+ import "./chunk-WP76IB36.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.70",
3
+ "version": "0.5.72",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -3875,6 +3875,23 @@ function EmailSection(props) {
3875
3875
 
3876
3876
  useEffect(function() { loadConfig(); }, [agentId]);
3877
3877
 
3878
+ // Listen for OAuth popup completion
3879
+ useEffect(function() {
3880
+ function onMessage(e) {
3881
+ if (e.data && e.data.type === 'oauth-result') {
3882
+ if (e.data.status === 'success') {
3883
+ toast('Email connected successfully', 'success');
3884
+ } else {
3885
+ toast('OAuth failed: ' + (e.data.message || 'Unknown error'), 'error');
3886
+ }
3887
+ loadConfig();
3888
+ if (reload) reload();
3889
+ }
3890
+ }
3891
+ window.addEventListener('message', onMessage);
3892
+ return function() { window.removeEventListener('message', onMessage); };
3893
+ }, []);
3894
+
3878
3895
  // Preset changed → auto-fill hosts
3879
3896
  var PRESETS = {
3880
3897
  microsoft365: { label: 'Microsoft 365 / Outlook', imapHost: 'outlook.office365.com', imapPort: 993, smtpHost: 'smtp.office365.com', smtpPort: 587 },
@@ -433,6 +433,7 @@ export function createAgentRoutes(opts: {
433
433
  oauthProvider: emailConfig.oauthProvider,
434
434
  oauthClientId: emailConfig.oauthClientId,
435
435
  oauthConfigured: !!emailConfig.oauthAccessToken,
436
+ oauthAuthUrl: emailConfig.oauthAuthUrl || undefined,
436
437
  lastConnected: emailConfig.lastConnected,
437
438
  lastError: emailConfig.lastError,
438
439
  });