@agenticmail/enterprise 0.5.145 → 0.5.146

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,34 @@
1
+ import "./chunk-KFQGP6VL.js";
2
+
3
+ // src/cli-serve.ts
4
+ async function runServe(_args) {
5
+ const DATABASE_URL = process.env.DATABASE_URL;
6
+ const JWT_SECRET = process.env.JWT_SECRET;
7
+ const PORT = parseInt(process.env.PORT || "8080", 10);
8
+ if (!DATABASE_URL) {
9
+ console.error("ERROR: DATABASE_URL environment variable is required");
10
+ process.exit(1);
11
+ }
12
+ if (!JWT_SECRET) {
13
+ console.error("ERROR: JWT_SECRET environment variable is required");
14
+ process.exit(1);
15
+ }
16
+ const { createAdapter } = await import("./factory-MBP7N2OQ.js");
17
+ const { createServer } = await import("./server-7TML6P53.js");
18
+ const db = await createAdapter({
19
+ type: DATABASE_URL.startsWith("postgres") ? "postgres" : "sqlite",
20
+ connectionString: DATABASE_URL
21
+ });
22
+ await db.migrate();
23
+ const server = createServer({
24
+ port: PORT,
25
+ db,
26
+ jwtSecret: JWT_SECRET,
27
+ corsOrigins: ["*"]
28
+ });
29
+ await server.start();
30
+ console.log(`AgenticMail Enterprise server running on :${PORT}`);
31
+ }
32
+ export {
33
+ runServe
34
+ };
package/dist/cli.js CHANGED
@@ -47,14 +47,14 @@ Skill Development:
47
47
  `);
48
48
  break;
49
49
  case "serve":
50
- import("./cli-serve-VLFLQMN4.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
50
+ import("./cli-serve-ZKXQZQWK.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
51
51
  break;
52
52
  case "agent":
53
- import("./cli-agent-P6IM7MPH.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
53
+ import("./cli-agent-PUH5JU4E.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
54
54
  break;
55
55
  case "setup":
56
56
  default:
57
- import("./setup-4VWIYEYP.js").then((m) => m.runSetupWizard()).catch(fatal);
57
+ import("./setup-H5HIWYD4.js").then((m) => m.runSetupWizard()).catch(fatal);
58
58
  break;
59
59
  }
60
60
  function fatal(err) {
package/dist/index.js CHANGED
@@ -1,9 +1,3 @@
1
- import {
2
- AgenticMailManager,
3
- GoogleEmailProvider,
4
- MicrosoftEmailProvider,
5
- createEmailProvider
6
- } from "./chunk-UWSWQRGB.js";
7
1
  import {
8
2
  deployToCloud,
9
3
  generateDockerCompose,
@@ -13,15 +7,18 @@ import {
13
7
  import {
14
8
  provision,
15
9
  runSetupWizard
16
- } from "./chunk-4ULAQ227.js";
10
+ } from "./chunk-I3N7IYKU.js";
17
11
  import {
18
12
  ActionJournal,
19
13
  ActivityTracker,
20
14
  AgentCommunicationBus,
15
+ AgentConfigGenerator,
16
+ AgentLifecycleManager,
21
17
  ApprovalEngine,
22
18
  CommunitySkillRegistry,
23
19
  ComplianceReporter,
24
20
  DLPEngine,
21
+ DeploymentEngine,
25
22
  GuardrailEngine,
26
23
  KnowledgeBaseEngine,
27
24
  OnboardingManager,
@@ -32,10 +29,7 @@ import {
32
29
  TenantManager,
33
30
  WorkforceManager,
34
31
  init_guardrails
35
- } from "./chunk-BRKXLWUD.js";
36
- import {
37
- AgentMemoryManager
38
- } from "./chunk-67VMVUKZ.js";
32
+ } from "./chunk-IRGPBOTO.js";
39
33
  import {
40
34
  ENGINE_TABLES,
41
35
  ENGINE_TABLES_POSTGRES,
@@ -60,8 +54,7 @@ import {
60
54
  executeTool,
61
55
  runAgentLoop,
62
56
  toolsToDefinitions
63
- } from "./chunk-OH37XJUB.js";
64
- import "./chunk-TYW5XTOW.js";
57
+ } from "./chunk-BO2INMG7.js";
65
58
  import "./chunk-AQH4DFYV.js";
66
59
  import {
67
60
  ValidationError,
@@ -76,21 +69,8 @@ import {
76
69
  requireRole,
77
70
  securityHeaders,
78
71
  validate
79
- } from "./chunk-CHVDUKNZ.js";
72
+ } from "./chunk-Y3Y6JZRR.js";
80
73
  import "./chunk-3SMTCIR4.js";
81
- import "./chunk-RO537U6H.js";
82
- import "./chunk-DRXMYYKN.js";
83
- import {
84
- PROVIDER_REGISTRY,
85
- listAllProviders,
86
- resolveApiKeyForProvider,
87
- resolveProvider
88
- } from "./chunk-67KZYSLU.js";
89
- import {
90
- AgentConfigGenerator,
91
- AgentLifecycleManager,
92
- DeploymentEngine
93
- } from "./chunk-V57XUZ2P.js";
94
74
  import {
95
75
  CircuitBreaker,
96
76
  CircuitOpenError,
@@ -99,12 +79,30 @@ import {
99
79
  RateLimiter,
100
80
  withRetry
101
81
  } from "./chunk-JLSQOQ5L.js";
82
+ import {
83
+ AgenticMailManager,
84
+ GoogleEmailProvider,
85
+ MicrosoftEmailProvider,
86
+ createEmailProvider
87
+ } from "./chunk-UWSWQRGB.js";
88
+ import "./chunk-RO537U6H.js";
89
+ import "./chunk-DRXMYYKN.js";
90
+ import {
91
+ PROVIDER_REGISTRY,
92
+ listAllProviders,
93
+ resolveApiKeyForProvider,
94
+ resolveProvider
95
+ } from "./chunk-67KZYSLU.js";
102
96
  import {
103
97
  BUILTIN_SKILLS,
104
98
  PRESET_PROFILES,
105
99
  PermissionEngine
106
100
  } from "./chunk-T6FM7KNN.js";
107
101
  import "./chunk-NRF3YRF7.js";
102
+ import {
103
+ AgentMemoryManager
104
+ } from "./chunk-67VMVUKZ.js";
105
+ import "./chunk-TYW5XTOW.js";
108
106
  import {
109
107
  DatabaseAdapter
110
108
  } from "./chunk-FLRYMSKY.js";