@agenticmail/enterprise 0.5.18 → 0.5.20

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.
Files changed (48) hide show
  1. package/dist/chunk-HEK7L3DT.js +48 -0
  2. package/dist/chunk-WPGECZMZ.js +898 -0
  3. package/dist/chunk-XIFIAOTA.js +1988 -0
  4. package/dist/cli-recover-S7CRIBNG.js +97 -0
  5. package/dist/cli-verify-YZFBHCXI.js +98 -0
  6. package/dist/cli.js +3 -3
  7. package/dist/dashboard/pages/activity.js +1 -1
  8. package/dist/dashboard/pages/agent-detail.js +1 -1
  9. package/dist/dashboard/pages/agents.js +1 -1
  10. package/dist/dashboard/pages/approvals.js +1 -1
  11. package/dist/dashboard/pages/community-skills.js +1 -1
  12. package/dist/dashboard/pages/compliance.js +1 -1
  13. package/dist/dashboard/pages/dashboard.js +1 -2
  14. package/dist/dashboard/pages/dlp.js +1 -1
  15. package/dist/dashboard/pages/guardrails.js +1 -1
  16. package/dist/dashboard/pages/journal.js +1 -1
  17. package/dist/dashboard/pages/knowledge-contributions.js +1 -1
  18. package/dist/dashboard/pages/knowledge.js +1 -1
  19. package/dist/dashboard/pages/messages.js +1 -1
  20. package/dist/dashboard/pages/settings.js +1 -1
  21. package/dist/dashboard/pages/skills.js +1 -1
  22. package/dist/dashboard/pages/vault.js +1 -1
  23. package/dist/dashboard/pages/workforce.js +1 -1
  24. package/dist/factory-BAW6FL23.js +9 -0
  25. package/dist/index.js +3 -3
  26. package/dist/postgres-3IWVZPKG.js +588 -0
  27. package/dist/server-POQLU7ZE.js +11 -0
  28. package/dist/setup-67L2SR63.js +20 -0
  29. package/package.json +1 -1
  30. package/src/dashboard/pages/activity.js +1 -1
  31. package/src/dashboard/pages/agent-detail.js +1 -1
  32. package/src/dashboard/pages/agents.js +1 -1
  33. package/src/dashboard/pages/approvals.js +1 -1
  34. package/src/dashboard/pages/community-skills.js +1 -1
  35. package/src/dashboard/pages/compliance.js +1 -1
  36. package/src/dashboard/pages/dashboard.js +1 -2
  37. package/src/dashboard/pages/dlp.js +1 -1
  38. package/src/dashboard/pages/guardrails.js +1 -1
  39. package/src/dashboard/pages/journal.js +1 -1
  40. package/src/dashboard/pages/knowledge-contributions.js +1 -1
  41. package/src/dashboard/pages/knowledge.js +1 -1
  42. package/src/dashboard/pages/messages.js +1 -1
  43. package/src/dashboard/pages/settings.js +1 -1
  44. package/src/dashboard/pages/skills.js +1 -1
  45. package/src/dashboard/pages/vault.js +1 -1
  46. package/src/dashboard/pages/workforce.js +1 -1
  47. package/src/db/postgres.ts +3 -2
  48. package/src/server.ts +1 -0
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, buildAgentEmailMap, resolveAgentEmail, buildAgentDataMap, renderAgentBadge , getOrgId } from '../components/utils.js';
1
+ import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, buildAgentEmailMap, resolveAgentEmail, buildAgentDataMap, renderAgentBadge, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
3
 
4
4
  // ─── Constants ──────────────────────────────────────────
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, Fragment, useApp, engineCall, buildAgentEmailMap, buildAgentDataMap, resolveAgentEmail, renderAgentBadge , getOrgId } from '../components/utils.js';
1
+ import { h, useState, useEffect, Fragment, useApp, engineCall, buildAgentEmailMap, buildAgentDataMap, resolveAgentEmail, renderAgentBadge, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
3
 
4
4
  export function JournalPage() {
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall , getOrgId } from '../components/utils.js';
1
+ import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
3
  import { Modal } from '../components/modal.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, Fragment, useApp, engineCall , getOrgId } from '../components/utils.js';
1
+ import { h, useState, useEffect, Fragment, useApp, engineCall, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
3
  import { Modal } from '../components/modal.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useRef, Fragment, useApp, engineCall, buildAgentEmailMap, resolveAgentEmail, buildAgentDataMap, renderAgentBadge , getOrgId } from '../components/utils.js';
1
+ import { h, useState, useEffect, useRef, Fragment, useApp, engineCall, buildAgentEmailMap, resolveAgentEmail, buildAgentDataMap, renderAgentBadge, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
3
 
4
4
  export function MessagesPage() {
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, apiCall, engineCall, applyBrandColor, showConfirm, setOrgId , getOrgId } from '../components/utils.js';
1
+ import { h, useState, useEffect, useCallback, Fragment, useApp, apiCall, engineCall, applyBrandColor, showConfirm, setOrgId, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
3
  import { Modal } from '../components/modal.js';
4
4
  import { TagInput } from '../components/tag-input.js';
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall , getOrgId } from '../components/utils.js';
1
+ import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
3
  import { Modal } from '../components/modal.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall , getOrgId } from '../components/utils.js';
1
+ import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
3
  import { Modal } from '../components/modal.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, buildAgentEmailMap, resolveAgentEmail, buildAgentDataMap, renderAgentBadge , getOrgId } from '../components/utils.js';
1
+ import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, buildAgentEmailMap, resolveAgentEmail, buildAgentDataMap, renderAgentBadge, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
3
 
4
4
  export function WorkforcePage() {
@@ -41,8 +41,9 @@ export class PostgresAdapter extends DatabaseAdapter {
41
41
  user: config.username,
42
42
  password: config.password,
43
43
  ssl: config.ssl ? { rejectUnauthorized: false } : undefined,
44
- max: 20,
45
- idleTimeoutMillis: 30000,
44
+ max: 5,
45
+ idleTimeoutMillis: 10000,
46
+ connectionTimeoutMillis: 10000,
46
47
  });
47
48
  // Test connection
48
49
  const client = await this.pool.connect();
package/src/server.ts CHANGED
@@ -220,6 +220,7 @@ export function createServer(config: ServerConfig): ServerInstance {
220
220
 
221
221
  // Initialize engine DB on first request
222
222
  if (!engineInitialized) {
223
+ engineInitialized = true; // Prevent repeated init attempts on failure
223
224
  // Use the adapter's built-in engine DB interface (SQL adapters expose raw query methods)
224
225
  const engineDbInterface = config.db.getEngineDB();
225
226
  if (!engineDbInterface) {