@agenticmail/enterprise 0.5.335 → 0.5.336

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
@@ -64,7 +64,7 @@ Skill Development:
64
64
  break;
65
65
  case "setup":
66
66
  default:
67
- import("./setup-UR2MFWCK.js").then((m) => m.runSetupWizard()).catch(fatal);
67
+ import("./setup-2E6ZFVSS.js").then((m) => m.runSetupWizard()).catch(fatal);
68
68
  break;
69
69
  }
70
70
  function fatal(err) {
@@ -490,9 +490,7 @@ export function OnboardingWizard({ onComplete }) {
490
490
  } catch { return null; }
491
491
  };
492
492
 
493
- var dbUrlInfo = useMemo(function() {
494
- return analyzeDbUrl(form.dbConnectionString);
495
- }, [form.dbConnectionString]);
493
+ var dbUrlInfo = analyzeDbUrl(form.dbConnectionString);
496
494
 
497
495
  // ─── DB Config Builder ──────────────────────────────
498
496
 
@@ -539,7 +537,8 @@ export function OnboardingWizard({ onComplete }) {
539
537
  setError(''); setLoading(true);
540
538
  if (form.password !== form.confirmPassword) { setError('Passwords do not match'); setLoading(false); return; }
541
539
  try {
542
- var res = await authCall('/bootstrap', { method: 'POST', body: JSON.stringify({ name: form.name, email: form.email, password: form.password, companyName: form.company, subdomain: form.subdomain }) });
540
+ var autoSub = form.company.toLowerCase().replace(/[^a-z0-9]/g, '-').replace(/-+/g, '-').replace(/^-|-$/g, '');
541
+ var res = await authCall('/bootstrap', { method: 'POST', body: JSON.stringify({ name: form.name, email: form.email, password: form.password, companyName: form.company, subdomain: autoSub }) });
543
542
  if (res.generatedKeys && Object.keys(res.generatedKeys).length > 0) {
544
543
  setGeneratedKeys(res.generatedKeys);
545
544
  setEnvPersisted(res.envPersisted || false);
@@ -553,6 +552,7 @@ export function OnboardingWizard({ onComplete }) {
553
552
  setError(''); setLoading(true);
554
553
  try {
555
554
  await apiCall('/settings', { method: 'PATCH', body: JSON.stringify({ smtpHost: form.smtpHost, smtpPort: form.smtpPort ? Number(form.smtpPort) : null, smtpUser: form.smtpUser, smtpPass: form.smtpPass }) });
555
+ if (form.company && !form.customDomain) set('customDomain', form.company.toLowerCase().replace(/[^a-z0-9]/g, '-').replace(/-+/g, '-').replace(/^-|-$/g, '') + '.agenticmail.io');
556
556
  setStep(5);
557
557
  } catch (err) { setError(err.message); }
558
558
  setLoading(false);
@@ -783,18 +783,9 @@ export function OnboardingWizard({ onComplete }) {
783
783
  h('input', { className: 'input', type: 'password', value: form.confirmPassword, onChange: function(e) { set('confirmPassword', e.target.value); }, placeholder: 'Confirm password' })
784
784
  )
785
785
  ),
786
- h('div', { style: { display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16 } },
787
- h('div', { className: 'form-group' },
788
- h('label', { className: 'form-label' }, 'Company Name'),
789
- h('input', { className: 'input', value: form.company, onChange: function(e) { set('company', e.target.value); set('subdomain', e.target.value.toLowerCase().replace(/[^a-z0-9]/g, '-').replace(/-+/g, '-').replace(/^-|-$/g, '')); }, placeholder: 'AgenticMail Inc' })
790
- ),
791
- h('div', { className: 'form-group' },
792
- h('label', { className: 'form-label' }, 'Subdomain'),
793
- h('div', { style: { display: 'flex', alignItems: 'center', gap: 4 } },
794
- h('input', { className: 'input', value: form.subdomain, onChange: function(e) { set('subdomain', e.target.value); }, placeholder: 'agenticmail-inc', style: { flex: 1 } }),
795
- h('span', { style: { color: 'var(--text-muted)', fontSize: 13, whiteSpace: 'nowrap' } }, '.agenticmail.io')
796
- )
797
- )
786
+ h('div', { className: 'form-group' },
787
+ h('label', { className: 'form-label' }, 'Company Name'),
788
+ h('input', { className: 'input', value: form.company, onChange: function(e) { set('company', e.target.value); }, placeholder: 'AgenticMail Inc' })
798
789
  ),
799
790
  errorBox,
800
791
  h('div', { className: 'onboarding-footer' },
@@ -924,7 +915,7 @@ export function OnboardingWizard({ onComplete }) {
924
915
 
925
916
  errorBox,
926
917
  h('div', { className: 'onboarding-footer' },
927
- h('button', { className: 'btn btn-primary', onClick: function() { setStep(4); } }, keysCopied || !generatedKeys ? 'Continue' : 'I\'ve Saved My Keys — Continue')
918
+ h('button', { className: 'btn btn-primary', onClick: function() { if (form.company && !form.customDomain) set('customDomain', form.company.toLowerCase().replace(/[^a-z0-9]/g, '-').replace(/-+/g, '-').replace(/^-|-$/g, '') + '.agenticmail.io'); setStep(4); } }, keysCopied || !generatedKeys ? 'Continue' : 'I\'ve Saved My Keys — Continue')
928
919
  )
929
920
  ),
930
921
 
@@ -956,7 +947,7 @@ export function OnboardingWizard({ onComplete }) {
956
947
  h('div', { className: 'onboarding-footer' },
957
948
  h('div', { style: { display: 'flex', gap: 12 } },
958
949
  h('button', { className: 'btn btn-secondary', onClick: function() { setStep(3); } }, 'Back'),
959
- h('button', { className: 'onboarding-skip', onClick: function() { setStep(5); } }, 'Skip for now')
950
+ h('button', { className: 'onboarding-skip', onClick: function() { if (form.company && !form.customDomain) set('customDomain', form.company.toLowerCase().replace(/[^a-z0-9]/g, '-').replace(/-+/g, '-').replace(/^-|-$/g, '') + '.agenticmail.io'); setStep(5); } }, 'Skip for now')
960
951
  ),
961
952
  h('button', { className: 'btn btn-primary', disabled: loading || !form.smtpHost, onClick: doSmtp }, loading ? 'Saving...' : 'Continue')
962
953
  )
@@ -965,12 +956,12 @@ export function OnboardingWizard({ onComplete }) {
965
956
  // ── Step 5: Domain Registration ──────────────────
966
957
  step === 5 && h(Fragment, null,
967
958
  h('div', { className: 'step-title' }, 'Domain Registration'),
968
- h('div', { className: 'step-desc' }, 'Register a custom domain for your AgenticMail deployment. You can skip this and set it up later.'),
959
+ h('div', { className: 'step-desc' }, 'Register a custom domain or claim your free agenticmail.io subdomain. This is required for cloud deployment.'),
969
960
 
970
961
  !form.domainRegistered && h(Fragment, null,
971
962
  h('div', { className: 'form-group' },
972
963
  h('label', { className: 'form-label' }, 'Custom Domain'),
973
- h('input', { className: 'input', value: form.customDomain, onChange: function(e) { set('customDomain', e.target.value); }, placeholder: 'agents.agenticmail.io', autoFocus: true })
964
+ h('input', { className: 'input', value: form.customDomain, onChange: function(e) { set('customDomain', e.target.value); }, placeholder: 'yourcompany.agenticmail.io', autoFocus: true })
974
965
  ),
975
966
  errorBox,
976
967
  h('div', { className: 'onboarding-footer' },
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  provision,
15
15
  runSetupWizard
16
- } from "./chunk-WEPTZQL7.js";
16
+ } from "./chunk-VIHOFXA4.js";
17
17
  import {
18
18
  AgentRuntime,
19
19
  EmailChannel,
@@ -0,0 +1,20 @@
1
+ import {
2
+ promptCompanyInfo,
3
+ promptDatabase,
4
+ promptDeployment,
5
+ promptDomain,
6
+ promptRegistration,
7
+ provision,
8
+ runSetupWizard
9
+ } from "./chunk-VIHOFXA4.js";
10
+ import "./chunk-PAHT4ABL.js";
11
+ import "./chunk-KFQGP6VL.js";
12
+ export {
13
+ promptCompanyInfo,
14
+ promptDatabase,
15
+ promptDeployment,
16
+ promptDomain,
17
+ promptRegistration,
18
+ provision,
19
+ runSetupWizard
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.335",
3
+ "version": "0.5.336",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {