@agenticmail/enterprise 0.5.102 → 0.5.103

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-L6P6VAEA.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-UZFCAQID.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-MM5FIQTB.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.102",
3
+ "version": "0.5.103",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -198,7 +198,7 @@ export class AgentConfigGenerator {
198
198
  generateGatewayConfig(config: AgentConfig): GatewayConfig {
199
199
  const channels: Record<string, any> = {};
200
200
 
201
- for (const ch of config.channels.enabled) {
201
+ for (const ch of (config.channels?.enabled || [])) {
202
202
  if (!ch.enabled) continue;
203
203
  channels[ch.type] = ch.config;
204
204
  }
@@ -209,10 +209,10 @@ export class AgentConfigGenerator {
209
209
  temperature: config.model.temperature,
210
210
  maxTokens: config.model.maxTokens,
211
211
  channels,
212
- heartbeat: config.heartbeat.enabled ? {
212
+ heartbeat: config.heartbeat?.enabled ? {
213
213
  intervalMinutes: config.heartbeat.intervalMinutes,
214
214
  } : undefined,
215
- workspace: config.workspace.workingDirectory,
215
+ workspace: config.workspace?.workingDirectory,
216
216
  };
217
217
  }
218
218
 
@@ -227,7 +227,7 @@ export class AgentConfigGenerator {
227
227
  // Inject standard vars
228
228
  env['AGENTICMAIL_MODEL'] = `${config.model.provider}/${config.model.modelId}`;
229
229
  env['AGENTICMAIL_THINKING'] = config.model.thinkingLevel;
230
- if (config.email.enabled && config.email.address) {
230
+ if (config.email?.enabled && config.email.address) {
231
231
  env['AGENTICMAIL_EMAIL'] = config.email.address;
232
232
  }
233
233
 
@@ -559,9 +559,9 @@ ${customInstructions}
559
559
  }
560
560
 
561
561
  private generateHeartbeat(config: AgentConfig): string {
562
- if (!config.heartbeat.enabled) return '# HEARTBEAT.md\n# Heartbeat disabled\n';
562
+ if (!config.heartbeat?.enabled) return '# HEARTBEAT.md\n# Heartbeat disabled\n';
563
563
 
564
- const checks = config.heartbeat.checks.map(c => `- Check ${c}`).join('\n');
564
+ const checks = (config.heartbeat.checks || []).map(c => `- Check ${c}`).join('\n');
565
565
  return `# HEARTBEAT.md
566
566
 
567
567
  ## Periodic Checks