@agenticmail/enterprise 0.5.16 → 0.5.17

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 (54) hide show
  1. package/dist/chunk-4F3XGZWR.js +2295 -0
  2. package/dist/chunk-52DDMP6J.js +12666 -0
  3. package/dist/chunk-7JFYYBVR.js +1987 -0
  4. package/dist/chunk-BCDVBHJY.js +9080 -0
  5. package/dist/chunk-MCOXOTGK.js +889 -0
  6. package/dist/cli.js +1 -1
  7. package/dist/dashboard/components/utils.js +12 -0
  8. package/dist/dashboard/pages/activity.js +2 -2
  9. package/dist/dashboard/pages/agent-detail.js +12 -12
  10. package/dist/dashboard/pages/agents.js +4 -4
  11. package/dist/dashboard/pages/approvals.js +2 -2
  12. package/dist/dashboard/pages/community-skills.js +12 -12
  13. package/dist/dashboard/pages/compliance.js +4 -4
  14. package/dist/dashboard/pages/dashboard.js +3 -3
  15. package/dist/dashboard/pages/dlp.js +6 -6
  16. package/dist/dashboard/pages/guardrails.js +17 -17
  17. package/dist/dashboard/pages/journal.js +3 -3
  18. package/dist/dashboard/pages/knowledge-contributions.js +8 -8
  19. package/dist/dashboard/pages/knowledge.js +2 -2
  20. package/dist/dashboard/pages/messages.js +5 -5
  21. package/dist/dashboard/pages/settings.js +8 -8
  22. package/dist/dashboard/pages/skills.js +4 -4
  23. package/dist/dashboard/pages/vault.js +5 -5
  24. package/dist/dashboard/pages/workforce.js +2 -2
  25. package/dist/db-adapter-DZFYOL4K.js +7 -0
  26. package/dist/index.js +5 -5
  27. package/dist/routes-T6LJPTIF.js +5674 -0
  28. package/dist/runtime-O4FBRIDG.js +47 -0
  29. package/dist/server-47SBCNL5.js +11 -0
  30. package/dist/setup-QBFQ5AWO.js +20 -0
  31. package/package.json +1 -1
  32. package/src/dashboard/components/utils.js +12 -0
  33. package/src/dashboard/pages/activity.js +2 -2
  34. package/src/dashboard/pages/agent-detail.js +12 -12
  35. package/src/dashboard/pages/agents.js +4 -4
  36. package/src/dashboard/pages/approvals.js +2 -2
  37. package/src/dashboard/pages/community-skills.js +12 -12
  38. package/src/dashboard/pages/compliance.js +4 -4
  39. package/src/dashboard/pages/dashboard.js +3 -3
  40. package/src/dashboard/pages/dlp.js +6 -6
  41. package/src/dashboard/pages/guardrails.js +17 -17
  42. package/src/dashboard/pages/journal.js +3 -3
  43. package/src/dashboard/pages/knowledge-contributions.js +8 -8
  44. package/src/dashboard/pages/knowledge.js +2 -2
  45. package/src/dashboard/pages/messages.js +5 -5
  46. package/src/dashboard/pages/settings.js +8 -8
  47. package/src/dashboard/pages/skills.js +4 -4
  48. package/src/dashboard/pages/vault.js +5 -5
  49. package/src/dashboard/pages/workforce.js +2 -2
  50. package/src/engine/agent-memory.ts +3 -2
  51. package/src/engine/approvals.ts +2 -1
  52. package/src/engine/communication.ts +2 -1
  53. package/src/engine/compliance.ts +3 -2
  54. package/src/engine/db-adapter.ts +40 -34
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, apiCall, engineCall, applyBrandColor, showConfirm } from '../components/utils.js';
1
+ import { h, useState, useEffect, useCallback, Fragment, useApp, apiCall, engineCall, applyBrandColor, showConfirm , 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';
@@ -65,7 +65,7 @@ export function SettingsPage() {
65
65
  oidcClientId: sso.oidc?.clientId || '', oidcClientSecret: sso.oidc?.clientSecret || '', oidcDiscoveryUrl: sso.oidc?.discoveryUrl || '',
66
66
  }));
67
67
  }).catch(() => {});
68
- engineCall('/deploy-credentials?orgId=default').then(d => setDeployCreds(d.credentials || [])).catch(() => {});
68
+ engineCall('/deploy-credentials?orgId=' + getOrgId()).then(d => setDeployCreds(d.credentials || [])).catch(() => {});
69
69
  apiCall('/settings/tool-security').then(d => {
70
70
  var cfg = d.toolSecurityConfig || {};
71
71
  setToolSec({
@@ -150,11 +150,11 @@ export function SettingsPage() {
150
150
 
151
151
  const createDeployCred = async () => {
152
152
  try {
153
- await engineCall('/deploy-credentials', { method: 'POST', body: JSON.stringify({ orgId: 'default', name: deployForm.name, targetType: deployForm.targetType, config: deployForm.config }) });
153
+ await engineCall('/deploy-credentials', { method: 'POST', body: JSON.stringify({ orgId: getOrgId(), name: deployForm.name, targetType: deployForm.targetType, config: deployForm.config }) });
154
154
  toast('Credential created', 'success');
155
155
  setShowDeployModal(false);
156
156
  setDeployForm({ name: '', targetType: 'docker', config: {} });
157
- engineCall('/deploy-credentials?orgId=default').then(d => setDeployCreds(d.credentials || [])).catch(() => {});
157
+ engineCall('/deploy-credentials?orgId=' + getOrgId()).then(d => setDeployCreds(d.credentials || [])).catch(() => {});
158
158
  } catch (e) { toast(e.message, 'error'); }
159
159
  };
160
160
 
@@ -639,7 +639,7 @@ function IntegrationsTab(props) {
639
639
 
640
640
  var loadStatuses = useCallback(function() {
641
641
  var promises = INTEGRATIONS.map(function(int) {
642
- return engineCall('/oauth/status/' + int.skillId + '?orgId=default')
642
+ return engineCall('/oauth/status/' + int.skillId + '?orgId=' + getOrgId())
643
643
  .then(function(d) { return { skillId: int.skillId, connected: d.connected, expiresAt: d.expiresAt }; })
644
644
  .catch(function() { return { skillId: int.skillId, connected: false }; });
645
645
  });
@@ -660,7 +660,7 @@ function IntegrationsTab(props) {
660
660
  return;
661
661
  }
662
662
  setActionLoading(int.skillId);
663
- engineCall('/oauth/authorize/' + int.skillId + '?orgId=default')
663
+ engineCall('/oauth/authorize/' + int.skillId + '?orgId=' + getOrgId())
664
664
  .then(function(d) {
665
665
  if (d.authorizationUrl) {
666
666
  var popup = window.open(d.authorizationUrl, 'oauth_connect', 'width=600,height=700,popup=yes');
@@ -688,7 +688,7 @@ function IntegrationsTab(props) {
688
688
  .then(function(ok) {
689
689
  if (!ok) return;
690
690
  setActionLoading(int.skillId);
691
- engineCall('/oauth/disconnect/' + int.skillId + '?orgId=default', { method: 'DELETE' })
691
+ engineCall('/oauth/disconnect/' + int.skillId + '?orgId=' + getOrgId() + '', { method: 'DELETE' })
692
692
  .then(function() { toast(int.name + ' disconnected', 'success'); loadStatuses(); })
693
693
  .catch(function(e) { toast('Failed: ' + e.message, 'error'); })
694
694
  .finally(function() { setActionLoading(null); });
@@ -698,7 +698,7 @@ function IntegrationsTab(props) {
698
698
  var handleSaveToken = function() {
699
699
  if (!tokenModal || !tokenValue.trim()) return;
700
700
  setActionLoading(tokenModal.skillId);
701
- engineCall('/oauth/authorize/' + tokenModal.skillId + '?orgId=default', {
701
+ engineCall('/oauth/authorize/' + tokenModal.skillId + '?orgId=' + getOrgId() + '', {
702
702
  method: 'POST',
703
703
  body: JSON.stringify({ token: tokenValue.trim() })
704
704
  })
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall } 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
 
@@ -52,7 +52,7 @@ export function SkillsPage() {
52
52
  // Load installed skills + statuses
53
53
  var loadInstalled = useCallback(function() {
54
54
  setInstalledLoading(true);
55
- engineCall('/community/installed?orgId=default')
55
+ engineCall('/community/installed?orgId=' + getOrgId())
56
56
  .then(function(d) {
57
57
  var items = d.installed || [];
58
58
  setInstalled(items);
@@ -159,7 +159,7 @@ export function SkillsPage() {
159
159
  try {
160
160
  await engineCall('/community/skills/' + skillId + '/' + (enable ? 'enable' : 'disable'), {
161
161
  method: 'PUT',
162
- body: JSON.stringify({ orgId: 'default' })
162
+ body: JSON.stringify({ orgId: getOrgId() })
163
163
  });
164
164
  toast('Skill ' + (enable ? 'enabled' : 'disabled'), 'success');
165
165
  loadInstalled();
@@ -177,7 +177,7 @@ export function SkillsPage() {
177
177
  try {
178
178
  await engineCall('/community/skills/' + skillId + '/uninstall', {
179
179
  method: 'DELETE',
180
- body: JSON.stringify({ orgId: 'default' })
180
+ body: JSON.stringify({ orgId: getOrgId() })
181
181
  });
182
182
  toast('Skill uninstalled', 'success');
183
183
  loadInstalled();
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall } 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
 
@@ -63,7 +63,7 @@ export function VaultPage() {
63
63
  // Load secrets
64
64
  var loadSecrets = useCallback(function() {
65
65
  setLoading(true);
66
- engineCall('/vault/secrets?orgId=default')
66
+ engineCall('/vault/secrets?orgId=' + getOrgId())
67
67
  .then(function(d) { setSecrets(d.secrets || d.entries || []); })
68
68
  .catch(function(e) { toast(e.message || 'Failed to load secrets', 'error'); })
69
69
  .finally(function() { setLoading(false); });
@@ -71,7 +71,7 @@ export function VaultPage() {
71
71
 
72
72
  var loadAudit = useCallback(function() {
73
73
  setAuditLoading(true);
74
- engineCall('/vault/audit-log?orgId=default&limit=100')
74
+ engineCall('/vault/audit-log?orgId=' + getOrgId() + '&limit=100')
75
75
  .then(function(d) { setAuditLog(d.entries || d.log || []); })
76
76
  .catch(function(e) { toast(e.message || 'Failed to load audit log', 'error'); })
77
77
  .finally(function() { setAuditLoading(false); });
@@ -94,7 +94,7 @@ export function VaultPage() {
94
94
  await engineCall('/vault/secrets', {
95
95
  method: 'POST',
96
96
  body: JSON.stringify({
97
- orgId: 'default',
97
+ orgId: getOrgId(),
98
98
  name: addForm.name,
99
99
  value: addForm.value,
100
100
  category: addForm.category
@@ -169,7 +169,7 @@ export function VaultPage() {
169
169
  try {
170
170
  var d = await engineCall('/vault/rotate-all', {
171
171
  method: 'POST',
172
- body: JSON.stringify({ orgId: 'default' })
172
+ body: JSON.stringify({ orgId: getOrgId() })
173
173
  });
174
174
  toast('Rotated ' + (d.rotated || 0) + ' secrets', 'success');
175
175
  loadSecrets();
@@ -1,4 +1,4 @@
1
- import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, buildAgentEmailMap, resolveAgentEmail, buildAgentDataMap, renderAgentBadge } 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() {
@@ -42,7 +42,7 @@ export function WorkforcePage() {
42
42
  setSchedules(schedulesRes.schedules || []);
43
43
  setBudgetData(budgetRes);
44
44
  setClockRecords(recordsRes.records || []);
45
- engineCall('/agents?orgId=default').then(d => setAgents(d.agents || [])).catch(() => {});
45
+ engineCall('/agents?orgId=' + getOrgId()).then(d => setAgents(d.agents || [])).catch(() => {});
46
46
  } catch (err) { toast('Failed to load workforce data', 'error'); }
47
47
  setLoading(false);
48
48
  };
@@ -0,0 +1,7 @@
1
+ import {
2
+ EngineDatabase
3
+ } from "./chunk-4F3XGZWR.js";
4
+ import "./chunk-KFQGP6VL.js";
5
+ export {
6
+ EngineDatabase
7
+ };
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  executeTool,
13
13
  runAgentLoop,
14
14
  toolsToDefinitions
15
- } from "./chunk-7PFGWQMJ.js";
15
+ } from "./chunk-52DDMP6J.js";
16
16
  import {
17
17
  ValidationError,
18
18
  auditLogger,
@@ -26,7 +26,7 @@ import {
26
26
  requireRole,
27
27
  securityHeaders,
28
28
  validate
29
- } from "./chunk-LJNMWZ7Z.js";
29
+ } from "./chunk-7JFYYBVR.js";
30
30
  import {
31
31
  PROVIDER_REGISTRY,
32
32
  listAllProviders,
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  provision,
38
38
  runSetupWizard
39
- } from "./chunk-TXWPXWDR.js";
39
+ } from "./chunk-MCOXOTGK.js";
40
40
  import {
41
41
  ENGINE_TABLES,
42
42
  ENGINE_TABLES_POSTGRES,
@@ -46,7 +46,7 @@ import {
46
46
  MIGRATIONS_TABLE_POSTGRES,
47
47
  sqliteToMySQL,
48
48
  sqliteToPostgres
49
- } from "./chunk-OUHFQDDK.js";
49
+ } from "./chunk-4F3XGZWR.js";
50
50
  import {
51
51
  deployToCloud,
52
52
  generateDockerCompose,
@@ -77,7 +77,7 @@ import {
77
77
  TenantManager,
78
78
  WorkforceManager,
79
79
  init_guardrails
80
- } from "./chunk-JDHG37BH.js";
80
+ } from "./chunk-BCDVBHJY.js";
81
81
  import "./chunk-TYW5XTOW.js";
82
82
  import {
83
83
  CircuitBreaker,