@agenticmail/enterprise 0.5.20 → 0.5.22
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.
- package/dist/chunk-67KZYSLU.js +247 -0
- package/dist/chunk-P2ZBZVVD.js +898 -0
- package/dist/chunk-T3FMNQXM.js +12666 -0
- package/dist/chunk-VDAIXIUZ.js +1977 -0
- package/dist/cli.js +1 -1
- package/dist/dashboard/pages/settings.js +16 -7
- package/dist/index.js +35 -35
- package/dist/providers-DZDNNJTY.js +17 -0
- package/dist/runtime-6CYKDDPC.js +47 -0
- package/dist/server-C4OZWQML.js +11 -0
- package/dist/setup-IUABEVON.js +20 -0
- package/package.json +1 -1
- package/seed-data.mjs +455 -0
- package/src/admin/routes.ts +4 -3
- package/src/dashboard/pages/settings.js +16 -7
- package/src/server.ts +3 -11
package/dist/cli.js
CHANGED
|
@@ -1323,31 +1323,40 @@ function ProvidersSection(props) {
|
|
|
1323
1323
|
? h('div', { style: { display: 'flex', alignItems: 'center', gap: 6, fontSize: 12 } },
|
|
1324
1324
|
h('span', { style: { color: 'var(--success, #16a34a)' } }, '✓ API key configured via environment'),
|
|
1325
1325
|
h('button', { className: 'btn btn-sm btn-ghost', style: { padding: '2px 8px', fontSize: 11 }, onClick: function() {
|
|
1326
|
-
setApiKeyInput('');
|
|
1327
|
-
setApiKeyModal({ providerId: p.id, providerName: p.name, isUpdate: true });
|
|
1326
|
+
props.setApiKeyInput('');
|
|
1327
|
+
props.setApiKeyModal({ providerId: p.id, providerName: p.name, isUpdate: true });
|
|
1328
1328
|
}}, 'Update Key')
|
|
1329
1329
|
)
|
|
1330
1330
|
: h('div', null,
|
|
1331
1331
|
h('button', { className: 'btn btn-sm btn-primary', onClick: function() {
|
|
1332
|
-
setApiKeyInput('');
|
|
1333
|
-
setApiKeyModal({ providerId: p.id, providerName: p.name, isUpdate: false });
|
|
1332
|
+
props.setApiKeyInput('');
|
|
1333
|
+
props.setApiKeyModal({ providerId: p.id, providerName: p.name, isUpdate: false });
|
|
1334
1334
|
}}, '🔑 Add API Key')
|
|
1335
1335
|
)
|
|
1336
1336
|
),
|
|
1337
1337
|
h('div', { style: { display: 'flex', gap: 6, marginTop: 8 } },
|
|
1338
|
-
isLocal && h('button', {
|
|
1338
|
+
(isLocal || isConfigured) && h('button', {
|
|
1339
1339
|
className: 'btn btn-sm',
|
|
1340
1340
|
disabled: discovering[p.id],
|
|
1341
1341
|
onClick: function() { handleDiscover(p.id); },
|
|
1342
|
-
}, discovering[p.id] ? 'Discovering...' : 'Discover Models'),
|
|
1342
|
+
}, discovering[p.id] ? 'Discovering...' : (isLocal ? 'Discover Models' : 'List Models')),
|
|
1343
1343
|
p.isCustom && h('button', {
|
|
1344
1344
|
className: 'btn btn-sm btn-danger',
|
|
1345
1345
|
style: { padding: '2px 8px', fontSize: 12 },
|
|
1346
1346
|
onClick: function() { handleDeleteProvider(p.id); },
|
|
1347
1347
|
}, I.trash())
|
|
1348
1348
|
),
|
|
1349
|
+
// Show default models for cloud providers that have them
|
|
1350
|
+
!discovered && p.defaultModels && p.defaultModels.length > 0 && h('div', { style: { marginTop: 8, fontSize: 12 } },
|
|
1351
|
+
h('div', { style: { fontWeight: 600, marginBottom: 4, color: 'var(--text-secondary)' } }, 'Available Models (' + p.defaultModels.length + ')'),
|
|
1352
|
+
h('div', { style: { display: 'flex', flexWrap: 'wrap', gap: 4 } },
|
|
1353
|
+
p.defaultModels.map(function(mid) {
|
|
1354
|
+
return h('span', { key: mid, className: 'badge badge-neutral', style: { fontSize: 11 } }, mid);
|
|
1355
|
+
})
|
|
1356
|
+
)
|
|
1357
|
+
),
|
|
1349
1358
|
discovered && discovered.length > 0 && h('div', { style: { marginTop: 8, padding: 8, background: 'var(--bg-secondary)', borderRadius: 'var(--radius)', fontSize: 12 } },
|
|
1350
|
-
h('div', { style: { fontWeight: 600, marginBottom: 4 } }, '
|
|
1359
|
+
h('div', { style: { fontWeight: 600, marginBottom: 4 } }, 'Models (' + discovered.length + ')'),
|
|
1351
1360
|
h('div', { style: { maxHeight: 120, overflow: 'auto' } },
|
|
1352
1361
|
discovered.map(function(m) {
|
|
1353
1362
|
var modelName = typeof m === 'string' ? m : (m.id || m.name || m.model);
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ActionJournal,
|
|
3
|
+
ActivityTracker,
|
|
4
|
+
AgentCommunicationBus,
|
|
5
|
+
AgentConfigGenerator,
|
|
6
|
+
AgentLifecycleManager,
|
|
7
|
+
AgentMemoryManager,
|
|
8
|
+
ApprovalEngine,
|
|
9
|
+
CommunitySkillRegistry,
|
|
10
|
+
ComplianceReporter,
|
|
11
|
+
DLPEngine,
|
|
12
|
+
DeploymentEngine,
|
|
13
|
+
GuardrailEngine,
|
|
14
|
+
KnowledgeBaseEngine,
|
|
15
|
+
OnboardingManager,
|
|
16
|
+
OrgPolicyEngine,
|
|
17
|
+
PLAN_LIMITS,
|
|
18
|
+
SecureVault,
|
|
19
|
+
StorageManager,
|
|
20
|
+
TenantManager,
|
|
21
|
+
WorkforceManager,
|
|
22
|
+
init_guardrails
|
|
23
|
+
} from "./chunk-BCDVBHJY.js";
|
|
1
24
|
import {
|
|
2
25
|
AgentRuntime,
|
|
3
26
|
EmailChannel,
|
|
@@ -12,7 +35,8 @@ import {
|
|
|
12
35
|
executeTool,
|
|
13
36
|
runAgentLoop,
|
|
14
37
|
toolsToDefinitions
|
|
15
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-T3FMNQXM.js";
|
|
39
|
+
import "./chunk-TYW5XTOW.js";
|
|
16
40
|
import {
|
|
17
41
|
ValidationError,
|
|
18
42
|
auditLogger,
|
|
@@ -26,17 +50,11 @@ import {
|
|
|
26
50
|
requireRole,
|
|
27
51
|
securityHeaders,
|
|
28
52
|
validate
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import {
|
|
31
|
-
PROVIDER_REGISTRY,
|
|
32
|
-
listAllProviders,
|
|
33
|
-
resolveApiKeyForProvider,
|
|
34
|
-
resolveProvider
|
|
35
|
-
} from "./chunk-ZNR5DDTA.js";
|
|
53
|
+
} from "./chunk-VDAIXIUZ.js";
|
|
36
54
|
import {
|
|
37
55
|
provision,
|
|
38
56
|
runSetupWizard
|
|
39
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-P2ZBZVVD.js";
|
|
40
58
|
import {
|
|
41
59
|
ENGINE_TABLES,
|
|
42
60
|
ENGINE_TABLES_POSTGRES,
|
|
@@ -53,32 +71,6 @@ import {
|
|
|
53
71
|
generateEnvFile,
|
|
54
72
|
generateFlyToml
|
|
55
73
|
} from "./chunk-7FVRYOP4.js";
|
|
56
|
-
import "./chunk-RO537U6H.js";
|
|
57
|
-
import "./chunk-DRXMYYKN.js";
|
|
58
|
-
import {
|
|
59
|
-
ActionJournal,
|
|
60
|
-
ActivityTracker,
|
|
61
|
-
AgentCommunicationBus,
|
|
62
|
-
AgentConfigGenerator,
|
|
63
|
-
AgentLifecycleManager,
|
|
64
|
-
AgentMemoryManager,
|
|
65
|
-
ApprovalEngine,
|
|
66
|
-
CommunitySkillRegistry,
|
|
67
|
-
ComplianceReporter,
|
|
68
|
-
DLPEngine,
|
|
69
|
-
DeploymentEngine,
|
|
70
|
-
GuardrailEngine,
|
|
71
|
-
KnowledgeBaseEngine,
|
|
72
|
-
OnboardingManager,
|
|
73
|
-
OrgPolicyEngine,
|
|
74
|
-
PLAN_LIMITS,
|
|
75
|
-
SecureVault,
|
|
76
|
-
StorageManager,
|
|
77
|
-
TenantManager,
|
|
78
|
-
WorkforceManager,
|
|
79
|
-
init_guardrails
|
|
80
|
-
} from "./chunk-BCDVBHJY.js";
|
|
81
|
-
import "./chunk-TYW5XTOW.js";
|
|
82
74
|
import {
|
|
83
75
|
CircuitBreaker,
|
|
84
76
|
CircuitOpenError,
|
|
@@ -87,6 +79,14 @@ import {
|
|
|
87
79
|
RateLimiter,
|
|
88
80
|
withRetry
|
|
89
81
|
} from "./chunk-JLSQOQ5L.js";
|
|
82
|
+
import "./chunk-RO537U6H.js";
|
|
83
|
+
import "./chunk-DRXMYYKN.js";
|
|
84
|
+
import {
|
|
85
|
+
PROVIDER_REGISTRY,
|
|
86
|
+
listAllProviders,
|
|
87
|
+
resolveApiKeyForProvider,
|
|
88
|
+
resolveProvider
|
|
89
|
+
} from "./chunk-67KZYSLU.js";
|
|
90
90
|
import {
|
|
91
91
|
BUILTIN_SKILLS,
|
|
92
92
|
PRESET_PROFILES,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PROVIDER_REGISTRY,
|
|
3
|
+
getApiType,
|
|
4
|
+
getBaseUrl,
|
|
5
|
+
listAllProviders,
|
|
6
|
+
resolveApiKeyForProvider,
|
|
7
|
+
resolveProvider
|
|
8
|
+
} from "./chunk-67KZYSLU.js";
|
|
9
|
+
import "./chunk-KFQGP6VL.js";
|
|
10
|
+
export {
|
|
11
|
+
PROVIDER_REGISTRY,
|
|
12
|
+
getApiType,
|
|
13
|
+
getBaseUrl,
|
|
14
|
+
listAllProviders,
|
|
15
|
+
resolveApiKeyForProvider,
|
|
16
|
+
resolveProvider
|
|
17
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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-T3FMNQXM.js";
|
|
18
|
+
import "./chunk-TYW5XTOW.js";
|
|
19
|
+
import "./chunk-JLSQOQ5L.js";
|
|
20
|
+
import {
|
|
21
|
+
PROVIDER_REGISTRY,
|
|
22
|
+
listAllProviders,
|
|
23
|
+
resolveApiKeyForProvider,
|
|
24
|
+
resolveProvider
|
|
25
|
+
} from "./chunk-67KZYSLU.js";
|
|
26
|
+
import "./chunk-KFQGP6VL.js";
|
|
27
|
+
export {
|
|
28
|
+
AgentRuntime,
|
|
29
|
+
EmailChannel,
|
|
30
|
+
FollowUpScheduler,
|
|
31
|
+
PROVIDER_REGISTRY,
|
|
32
|
+
SessionManager,
|
|
33
|
+
SubAgentManager,
|
|
34
|
+
ToolRegistry,
|
|
35
|
+
callLLM,
|
|
36
|
+
createAgentRuntime,
|
|
37
|
+
createNoopHooks,
|
|
38
|
+
createRuntimeHooks,
|
|
39
|
+
estimateMessageTokens,
|
|
40
|
+
estimateTokens,
|
|
41
|
+
executeTool,
|
|
42
|
+
listAllProviders,
|
|
43
|
+
resolveApiKeyForProvider,
|
|
44
|
+
resolveProvider,
|
|
45
|
+
runAgentLoop,
|
|
46
|
+
toolsToDefinitions
|
|
47
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
promptCompanyInfo,
|
|
3
|
+
promptDatabase,
|
|
4
|
+
promptDeployment,
|
|
5
|
+
promptDomain,
|
|
6
|
+
promptRegistration,
|
|
7
|
+
provision,
|
|
8
|
+
runSetupWizard
|
|
9
|
+
} from "./chunk-P2ZBZVVD.js";
|
|
10
|
+
import "./chunk-HEK7L3DT.js";
|
|
11
|
+
import "./chunk-KFQGP6VL.js";
|
|
12
|
+
export {
|
|
13
|
+
promptCompanyInfo,
|
|
14
|
+
promptDatabase,
|
|
15
|
+
promptDeployment,
|
|
16
|
+
promptDomain,
|
|
17
|
+
promptRegistration,
|
|
18
|
+
provision,
|
|
19
|
+
runSetupWizard
|
|
20
|
+
};
|