@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/cli.js CHANGED
@@ -48,7 +48,7 @@ Skill Development:
48
48
  break;
49
49
  case "setup":
50
50
  default:
51
- import("./setup-KJBLGSGM.js").then((m) => m.runSetupWizard()).catch(fatal);
51
+ import("./setup-UPB3GJT6.js").then((m) => m.runSetupWizard()).catch(fatal);
52
52
  break;
53
53
  }
54
54
  function fatal(err) {
@@ -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?.status === 'in_progress'
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?.status === 'in_progress' && h('div', { style: { fontSize: 12, color: 'var(--text-muted)', marginBottom: 8 } },
306
- 'Policies: ' + (onboardingStatus.acknowledgedPolicies || 0) + '/' + (onboardingStatus.totalPolicies || 0) + ' acknowledged'
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 && onboardingStatus?.status !== 'in_progress' && h('button', {
309
- className: 'btn btn-primary btn-sm',
310
- disabled: acting === 'onboard',
311
- onClick: initiateOnboarding
312
- }, acting === 'onboard' ? 'Starting...' : 'Start Onboarding'),
313
- onboardingStatus?.status === 'in_progress' && h('button', {
314
- className: 'btn btn-ghost btn-sm', style: { marginTop: 4 },
315
- disabled: acting === 'forceComplete',
316
- onClick: function() {
317
- setActing('forceComplete');
318
- engineCall('/onboarding/force-complete/' + agentId, { method: 'POST', body: JSON.stringify({ adminId: 'admin' }) })
319
- .then(function() { toast('Onboarding force-completed', 'success'); reload(); })
320
- .catch(function(err) { toast(err.message, 'error'); })
321
- .finally(function() { setActing(null); });
322
- }
323
- }, acting === 'forceComplete' ? 'Completing...' : 'Force Complete')
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-A4N7KJWZ.js";
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-ZYEJ34BP.js";
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-EHRV5YHB.js";
55
+ } from "./chunk-D32BZJ7N.js";
56
56
  import {
57
57
  provision,
58
58
  runSetupWizard
59
- } from "./chunk-VCTFKFI6.js";
59
+ } from "./chunk-RKF2TYZA.js";
60
60
  import {
61
61
  ENGINE_TABLES,
62
62
  ENGINE_TABLES_POSTGRES,