@agenticmail/enterprise 0.5.284 → 0.5.285

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,45 @@
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-VXXVAGG3.js";
18
+ import {
19
+ PROVIDER_REGISTRY,
20
+ listAllProviders,
21
+ resolveApiKeyForProvider,
22
+ resolveProvider
23
+ } from "./chunk-UF3ZJMJO.js";
24
+ import "./chunk-KFQGP6VL.js";
25
+ export {
26
+ AgentRuntime,
27
+ EmailChannel,
28
+ FollowUpScheduler,
29
+ PROVIDER_REGISTRY,
30
+ SessionManager,
31
+ SubAgentManager,
32
+ ToolRegistry,
33
+ callLLM,
34
+ createAgentRuntime,
35
+ createNoopHooks,
36
+ createRuntimeHooks,
37
+ estimateMessageTokens,
38
+ estimateTokens,
39
+ executeTool,
40
+ listAllProviders,
41
+ resolveApiKeyForProvider,
42
+ resolveProvider,
43
+ runAgentLoop,
44
+ toolsToDefinitions
45
+ };
@@ -0,0 +1,15 @@
1
+ import {
2
+ createServer
3
+ } from "./chunk-Z3F5BTKX.js";
4
+ import "./chunk-OF4MUWWS.js";
5
+ import "./chunk-UF3ZJMJO.js";
6
+ import "./chunk-3OC6RH7W.js";
7
+ import "./chunk-2DDKGTD6.js";
8
+ import "./chunk-YVK6F5OD.js";
9
+ import "./chunk-MKRNEM5A.js";
10
+ import "./chunk-DRXMYYKN.js";
11
+ import "./chunk-6WSX7QXF.js";
12
+ import "./chunk-KFQGP6VL.js";
13
+ export {
14
+ createServer
15
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ promptCompanyInfo,
3
+ promptDatabase,
4
+ promptDeployment,
5
+ promptDomain,
6
+ promptRegistration,
7
+ provision,
8
+ runSetupWizard
9
+ } from "./chunk-BYHI6J56.js";
10
+ import "./chunk-ULRBF2T7.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.284",
3
+ "version": "0.5.285",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -83,5 +83,12 @@
83
83
  "ws": {
84
84
  "optional": true
85
85
  }
86
+ },
87
+ "optionalDependencies": {
88
+ "postgres": "^3.4.0",
89
+ "mysql2": "^3.9.0",
90
+ "better-sqlite3": "^11.0.0",
91
+ "@libsql/client": "^0.6.0",
92
+ "mongodb": "^6.3.0"
86
93
  }
87
94
  }
@@ -221,6 +221,7 @@ Object.assign(BrandLogo, {
221
221
  planetscale: function(s) { return _pill('#000', '#fff', 'PS', s); },
222
222
  cockroachdb: function(s) { return _pill('#6933FF', '#fff', 'CR', s); },
223
223
  turso: function(s) { return _pill('#4FF8D2', '#000', 'T', s); },
224
+ upstash: function(s) { return _pill('#00E9A3', '#000', 'UP', s); },
224
225
  dynamodb: function(s) { return _pill('#4053D6', '#fff', 'DDB', s); },
225
226
  paypal: function(s) { return _pill('#003087', '#fff', 'PP', s); },
226
227
  linkedin: function(s) { return _pill('#0A66C2', '#fff', 'in', s); },
@@ -23,6 +23,7 @@ var DATABASE_TYPES = [
23
23
  { section: 'NoSQL / Key-Value', items: [
24
24
  { value: 'mongodb', label: 'MongoDB' },
25
25
  { value: 'redis', label: 'Redis' },
26
+ { value: 'upstash', label: 'Upstash Redis' },
26
27
  { value: 'dynamodb', label: 'AWS DynamoDB' },
27
28
  ]},
28
29
  ];
@@ -950,6 +950,35 @@ export class DatabaseConnectionManager {
950
950
  };
951
951
  },
952
952
  });
953
+
954
+ // Upstash Redis — uses REST API over HTTPS
955
+ this.registerDriver('upstash', {
956
+ async connect(config, credentials) {
957
+ // Upstash uses REST API: https://<endpoint>.upstash.io with token auth
958
+ const baseUrl = credentials.connectionString || `https://${config.host}`;
959
+ const token = credentials.password || '';
960
+
961
+ async function upstashRequest(command: string[]): Promise<any> {
962
+ const resp = await fetch(baseUrl, {
963
+ method: 'POST',
964
+ headers: { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' },
965
+ body: JSON.stringify(command),
966
+ });
967
+ if (!resp.ok) throw new Error(`Upstash error: ${resp.status} ${await resp.text()}`);
968
+ return resp.json();
969
+ }
970
+
971
+ return {
972
+ async query(q: string) {
973
+ const parts = q.trim().split(/\s+/);
974
+ const result = await upstashRequest(parts);
975
+ return { rows: [{ result: JSON.stringify(result.result ?? result) }] };
976
+ },
977
+ async close() { /* stateless REST */ },
978
+ async ping() { try { const r = await upstashRequest(['PING']); return r.result === 'PONG'; } catch { return false; } },
979
+ };
980
+ },
981
+ });
953
982
  }
954
983
 
955
984
  // ─── Row Mapping ───────────────────────────────────────────────────────────
@@ -23,7 +23,8 @@ export type DatabaseType =
23
23
  | 'turso'
24
24
  | 'dynamodb'
25
25
  | 'supabase'
26
- | 'neon';
26
+ | 'neon'
27
+ | 'upstash';
27
28
 
28
29
  export const DATABASE_LABELS: Record<DatabaseType, string> = {
29
30
  postgresql: 'PostgreSQL',
@@ -40,12 +41,13 @@ export const DATABASE_LABELS: Record<DatabaseType, string> = {
40
41
  dynamodb: 'AWS DynamoDB',
41
42
  supabase: 'Supabase',
42
43
  neon: 'Neon',
44
+ upstash: 'Upstash Redis',
43
45
  };
44
46
 
45
47
  export const DATABASE_CATEGORIES: Record<string, DatabaseType[]> = {
46
48
  'Relational (SQL)': ['postgresql', 'mysql', 'mariadb', 'mssql', 'oracle', 'sqlite'],
47
49
  'Cloud-Native SQL': ['supabase', 'neon', 'planetscale', 'cockroachdb', 'turso'],
48
- 'NoSQL / Key-Value': ['mongodb', 'redis', 'dynamodb'],
50
+ 'NoSQL / Key-Value': ['mongodb', 'redis', 'upstash', 'dynamodb'],
49
51
  };
50
52
 
51
53
  // ─── Connection Configuration ────────────────────────────────────────────────