@agenticmail/enterprise 0.5.92 → 0.5.93
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-ACYJBORO.js +15813 -0
- package/dist/chunk-D32BZJ7N.js +2191 -0
- package/dist/chunk-GR24RTBU.js +9137 -0
- package/dist/chunk-RKF2TYZA.js +898 -0
- package/dist/cli.js +1 -1
- package/dist/dashboard/pages/agent-detail.js +27 -20
- package/dist/index.js +4 -4
- package/dist/routes-YI4FNOZ6.js +6938 -0
- package/dist/runtime-HLWNKSTZ.js +49 -0
- package/dist/server-Y6EEPFQB.js +12 -0
- package/dist/setup-UPB3GJT6.js +20 -0
- package/package.json +1 -1
- package/src/dashboard/pages/agent-detail.js +27 -20
- package/src/engine/deployer.ts +36 -0
- package/src/engine/lifecycle.ts +1 -0
package/dist/cli.js
CHANGED
|
@@ -298,29 +298,36 @@ function OverviewSection(props) {
|
|
|
298
298
|
h('div', { style: { display: 'flex', alignItems: 'center', gap: 8, marginBottom: 12 } },
|
|
299
299
|
onboardingStatus?.onboarded
|
|
300
300
|
? h('span', { className: 'badge badge-success' }, I.check(), ' Onboarded')
|
|
301
|
-
: onboardingStatus?.
|
|
302
|
-
? h('span', { className: 'badge badge-info' }, I.clock(), ' In Progress')
|
|
301
|
+
: onboardingStatus?.totalPolicies > 0
|
|
302
|
+
? h('span', { className: 'badge badge-info' }, I.clock(), ' In Progress (' + (onboardingStatus.acknowledgedPolicies || 0) + '/' + onboardingStatus.totalPolicies + ')')
|
|
303
303
|
: h('span', { className: 'badge badge-warning' }, 'Not Onboarded')
|
|
304
304
|
),
|
|
305
|
-
onboardingStatus?.
|
|
306
|
-
'
|
|
305
|
+
onboardingStatus?.totalPolicies > 0 && !onboardingStatus?.onboarded && h('div', { style: { fontSize: 12, color: 'var(--text-muted)', marginBottom: 4 } },
|
|
306
|
+
'Agent will complete onboarding automatically on first run.'
|
|
307
307
|
),
|
|
308
|
-
!onboardingStatus?.onboarded &&
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
308
|
+
!onboardingStatus?.onboarded && h('div', { style: { display: 'flex', gap: 8, marginTop: 8 } },
|
|
309
|
+
!onboardingStatus?.totalPolicies && h('button', {
|
|
310
|
+
className: 'btn btn-primary btn-sm',
|
|
311
|
+
disabled: acting === 'onboard',
|
|
312
|
+
onClick: initiateOnboarding
|
|
313
|
+
}, acting === 'onboard' ? 'Starting...' : 'Start Onboarding'),
|
|
314
|
+
h('button', {
|
|
315
|
+
className: 'btn btn-ghost btn-sm',
|
|
316
|
+
disabled: acting === 'forceComplete',
|
|
317
|
+
onClick: function() {
|
|
318
|
+
setActing('forceComplete');
|
|
319
|
+
var initFirst = !onboardingStatus?.totalPolicies
|
|
320
|
+
? engineCall('/onboarding/initiate/' + agentId, { method: 'POST', body: JSON.stringify({ orgId: getOrgId() }) })
|
|
321
|
+
: Promise.resolve();
|
|
322
|
+
initFirst.then(function() {
|
|
323
|
+
return engineCall('/onboarding/force-complete/' + agentId, { method: 'POST', body: JSON.stringify({ adminId: 'admin' }) });
|
|
324
|
+
})
|
|
325
|
+
.then(function() { toast('Onboarding completed', 'success'); reload(); })
|
|
326
|
+
.catch(function(err) { toast(err.message, 'error'); })
|
|
327
|
+
.finally(function() { setActing(null); });
|
|
328
|
+
}
|
|
329
|
+
}, acting === 'forceComplete' ? 'Completing...' : 'Skip — Force Complete')
|
|
330
|
+
)
|
|
324
331
|
)
|
|
325
332
|
),
|
|
326
333
|
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
TenantManager,
|
|
21
21
|
WorkforceManager,
|
|
22
22
|
init_guardrails
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GR24RTBU.js";
|
|
24
24
|
import {
|
|
25
25
|
AgentRuntime,
|
|
26
26
|
EmailChannel,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
executeTool,
|
|
36
36
|
runAgentLoop,
|
|
37
37
|
toolsToDefinitions
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ACYJBORO.js";
|
|
39
39
|
import "./chunk-NRF3YRF7.js";
|
|
40
40
|
import "./chunk-TYW5XTOW.js";
|
|
41
41
|
import "./chunk-AQH4DFYV.js";
|
|
@@ -52,11 +52,11 @@ import {
|
|
|
52
52
|
requireRole,
|
|
53
53
|
securityHeaders,
|
|
54
54
|
validate
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-D32BZJ7N.js";
|
|
56
56
|
import {
|
|
57
57
|
provision,
|
|
58
58
|
runSetupWizard
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-RKF2TYZA.js";
|
|
60
60
|
import {
|
|
61
61
|
ENGINE_TABLES,
|
|
62
62
|
ENGINE_TABLES_POSTGRES,
|