@agenticmail/enterprise 0.5.91 → 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-VAOHOKR6.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,14 +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
- : h('span', { className: 'badge badge-warning' }, 'Not Onboarded')
301
+ : onboardingStatus?.totalPolicies > 0
302
+ ? h('span', { className: 'badge badge-info' }, I.clock(), ' In Progress (' + (onboardingStatus.acknowledgedPolicies || 0) + '/' + onboardingStatus.totalPolicies + ')')
303
+ : h('span', { className: 'badge badge-warning' }, 'Not Onboarded')
302
304
  ),
303
- onboardingStatus?.status && h('div', { style: { fontSize: 12, color: 'var(--text-muted)', marginBottom: 8 } }, 'Status: ' + onboardingStatus.status),
304
- !onboardingStatus?.onboarded && h('button', {
305
- className: 'btn btn-primary btn-sm',
306
- disabled: acting === 'onboard',
307
- onClick: initiateOnboarding
308
- }, acting === 'onboard' ? 'Starting...' : 'Start Onboarding')
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
+ ),
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
+ )
309
331
  )
310
332
  ),
311
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-4VDJQYH6.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-ZFDY6ND5.js";
55
+ } from "./chunk-D32BZJ7N.js";
56
56
  import {
57
57
  provision,
58
58
  runSetupWizard
59
- } from "./chunk-B6FONRAI.js";
59
+ } from "./chunk-RKF2TYZA.js";
60
60
  import {
61
61
  ENGINE_TABLES,
62
62
  ENGINE_TABLES_POSTGRES,