@agenticmail/enterprise 0.5.65 → 0.5.66
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-2BIPHRH2.js +2125 -0
- package/dist/chunk-2STD5FFE.js +898 -0
- package/dist/cli.js +1 -1
- package/dist/dashboard/pages/settings.js +7 -27
- package/dist/index.js +2 -2
- package/dist/server-OVMWIVSH.js +12 -0
- package/dist/setup-57WW2QQB.js +20 -0
- package/package.json +1 -1
- package/src/auth/routes.ts +0 -2
- package/src/dashboard/pages/settings.js +7 -27
package/dist/cli.js
CHANGED
|
@@ -225,35 +225,15 @@ export function SettingsPage() {
|
|
|
225
225
|
)
|
|
226
226
|
),
|
|
227
227
|
h('div', { className: 'card' },
|
|
228
|
-
h('div', { className: 'card-header' }, h('h3', null, '
|
|
228
|
+
h('div', { className: 'card-header' }, h('h3', null, 'Email Configuration')),
|
|
229
229
|
h('div', { className: 'card-body' },
|
|
230
|
-
h('
|
|
231
|
-
|
|
232
|
-
h('div',
|
|
233
|
-
h('
|
|
234
|
-
h('
|
|
235
|
-
),
|
|
236
|
-
h('div', { className: 'form-group' },
|
|
237
|
-
h('label', { className: 'form-label' }, 'SMTP Port'),
|
|
238
|
-
h('input', { className: 'input', type: 'number', value: settings.smtpPort || '', onChange: e => setSettings(s => ({ ...s, smtpPort: e.target.value })), placeholder: '587' })
|
|
239
|
-
)
|
|
240
|
-
),
|
|
241
|
-
h('div', { style: { display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16 } },
|
|
242
|
-
h('div', { className: 'form-group' },
|
|
243
|
-
h('label', { className: 'form-label' }, 'SMTP Username'),
|
|
244
|
-
h('input', { className: 'input', value: settings.smtpUser || '', onChange: e => setSettings(s => ({ ...s, smtpUser: e.target.value })), placeholder: 'you@gmail.com' })
|
|
245
|
-
),
|
|
246
|
-
h('div', { className: 'form-group' },
|
|
247
|
-
h('label', { className: 'form-label' }, 'SMTP Password'),
|
|
248
|
-
h('input', { className: 'input', type: 'password', value: settings.smtpPass || '', onChange: e => setSettings(s => ({ ...s, smtpPass: e.target.value })), placeholder: 'App password' })
|
|
230
|
+
h('div', { style: { display: 'flex', alignItems: 'center', gap: 12, padding: 16, background: 'var(--bg-tertiary)', borderRadius: 'var(--radius)' } },
|
|
231
|
+
h('div', { style: { fontSize: 24 } }, '\u2709\uFE0F'),
|
|
232
|
+
h('div', null,
|
|
233
|
+
h('p', { style: { fontSize: 14, fontWeight: 600, marginBottom: 4 } }, 'Email is configured per agent'),
|
|
234
|
+
h('p', { style: { fontSize: 13, color: 'var(--text-muted)' } }, 'Each agent has its own email credentials (IMAP/SMTP, Microsoft 365 OAuth, or Google OAuth). Configure email from each agent\'s detail page under the Email tab.')
|
|
249
235
|
)
|
|
250
|
-
)
|
|
251
|
-
h('div', { className: 'form-group' },
|
|
252
|
-
h('label', { className: 'form-label' }, 'DKIM Private Key'),
|
|
253
|
-
h('textarea', { className: 'input', value: settings.dkimPrivateKey || '', onChange: e => setSettings(s => ({ ...s, dkimPrivateKey: e.target.value })), placeholder: '-----BEGIN RSA PRIVATE KEY-----', rows: 3, style: { fontFamily: 'var(--font-mono)', fontSize: 11 } }),
|
|
254
|
-
h('p', { className: 'form-help' }, 'Optional. Used for email authentication (DKIM signing).')
|
|
255
|
-
),
|
|
256
|
-
h('button', { className: 'btn btn-primary', onClick: () => apiCall('/settings', { method: 'PATCH', body: JSON.stringify({ smtpHost: settings.smtpHost || null, smtpPort: settings.smtpPort ? Number(settings.smtpPort) : null, smtpUser: settings.smtpUser || null, smtpPass: settings.smtpPass || null, dkimPrivateKey: settings.dkimPrivateKey || null }) }).then(d => { setSettings(d); toast('SMTP settings saved', 'success'); }).catch(e => toast(e.message, 'error')) }, 'Save SMTP Settings')
|
|
236
|
+
)
|
|
257
237
|
)
|
|
258
238
|
),
|
|
259
239
|
h('div', { className: 'card', style: { marginTop: 16 } },
|
package/dist/index.js
CHANGED
|
@@ -50,11 +50,11 @@ import {
|
|
|
50
50
|
requireRole,
|
|
51
51
|
securityHeaders,
|
|
52
52
|
validate
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2BIPHRH2.js";
|
|
54
54
|
import {
|
|
55
55
|
provision,
|
|
56
56
|
runSetupWizard
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-2STD5FFE.js";
|
|
58
58
|
import {
|
|
59
59
|
ENGINE_TABLES,
|
|
60
60
|
ENGINE_TABLES_POSTGRES,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-2BIPHRH2.js";
|
|
4
|
+
import "./chunk-3SMTCIR4.js";
|
|
5
|
+
import "./chunk-JLSQOQ5L.js";
|
|
6
|
+
import "./chunk-RO537U6H.js";
|
|
7
|
+
import "./chunk-DRXMYYKN.js";
|
|
8
|
+
import "./chunk-67KZYSLU.js";
|
|
9
|
+
import "./chunk-KFQGP6VL.js";
|
|
10
|
+
export {
|
|
11
|
+
createServer
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
promptCompanyInfo,
|
|
3
|
+
promptDatabase,
|
|
4
|
+
promptDeployment,
|
|
5
|
+
promptDomain,
|
|
6
|
+
promptRegistration,
|
|
7
|
+
provision,
|
|
8
|
+
runSetupWizard
|
|
9
|
+
} from "./chunk-2STD5FFE.js";
|
|
10
|
+
import "./chunk-WP76IB36.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
package/src/auth/routes.ts
CHANGED
|
@@ -284,7 +284,6 @@ export function createAuthRoutes(
|
|
|
284
284
|
|
|
285
285
|
const hasUsers = stats.totalUsers > 0;
|
|
286
286
|
const hasCompanyName = !!(settings?.name && settings.name !== '' && settings.name !== 'My Company');
|
|
287
|
-
const hasSmtp = !!(settings?.smtpHost);
|
|
288
287
|
const hasAgents = stats.totalAgents > 0;
|
|
289
288
|
|
|
290
289
|
return c.json({
|
|
@@ -293,7 +292,6 @@ export function createAuthRoutes(
|
|
|
293
292
|
checklist: {
|
|
294
293
|
adminCreated: hasUsers,
|
|
295
294
|
companyConfigured: hasCompanyName,
|
|
296
|
-
emailConfigured: hasSmtp,
|
|
297
295
|
agentCreated: hasAgents,
|
|
298
296
|
},
|
|
299
297
|
});
|
|
@@ -225,35 +225,15 @@ export function SettingsPage() {
|
|
|
225
225
|
)
|
|
226
226
|
),
|
|
227
227
|
h('div', { className: 'card' },
|
|
228
|
-
h('div', { className: 'card-header' }, h('h3', null, '
|
|
228
|
+
h('div', { className: 'card-header' }, h('h3', null, 'Email Configuration')),
|
|
229
229
|
h('div', { className: 'card-body' },
|
|
230
|
-
h('
|
|
231
|
-
|
|
232
|
-
h('div',
|
|
233
|
-
h('
|
|
234
|
-
h('
|
|
235
|
-
),
|
|
236
|
-
h('div', { className: 'form-group' },
|
|
237
|
-
h('label', { className: 'form-label' }, 'SMTP Port'),
|
|
238
|
-
h('input', { className: 'input', type: 'number', value: settings.smtpPort || '', onChange: e => setSettings(s => ({ ...s, smtpPort: e.target.value })), placeholder: '587' })
|
|
239
|
-
)
|
|
240
|
-
),
|
|
241
|
-
h('div', { style: { display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16 } },
|
|
242
|
-
h('div', { className: 'form-group' },
|
|
243
|
-
h('label', { className: 'form-label' }, 'SMTP Username'),
|
|
244
|
-
h('input', { className: 'input', value: settings.smtpUser || '', onChange: e => setSettings(s => ({ ...s, smtpUser: e.target.value })), placeholder: 'you@gmail.com' })
|
|
245
|
-
),
|
|
246
|
-
h('div', { className: 'form-group' },
|
|
247
|
-
h('label', { className: 'form-label' }, 'SMTP Password'),
|
|
248
|
-
h('input', { className: 'input', type: 'password', value: settings.smtpPass || '', onChange: e => setSettings(s => ({ ...s, smtpPass: e.target.value })), placeholder: 'App password' })
|
|
230
|
+
h('div', { style: { display: 'flex', alignItems: 'center', gap: 12, padding: 16, background: 'var(--bg-tertiary)', borderRadius: 'var(--radius)' } },
|
|
231
|
+
h('div', { style: { fontSize: 24 } }, '\u2709\uFE0F'),
|
|
232
|
+
h('div', null,
|
|
233
|
+
h('p', { style: { fontSize: 14, fontWeight: 600, marginBottom: 4 } }, 'Email is configured per agent'),
|
|
234
|
+
h('p', { style: { fontSize: 13, color: 'var(--text-muted)' } }, 'Each agent has its own email credentials (IMAP/SMTP, Microsoft 365 OAuth, or Google OAuth). Configure email from each agent\'s detail page under the Email tab.')
|
|
249
235
|
)
|
|
250
|
-
)
|
|
251
|
-
h('div', { className: 'form-group' },
|
|
252
|
-
h('label', { className: 'form-label' }, 'DKIM Private Key'),
|
|
253
|
-
h('textarea', { className: 'input', value: settings.dkimPrivateKey || '', onChange: e => setSettings(s => ({ ...s, dkimPrivateKey: e.target.value })), placeholder: '-----BEGIN RSA PRIVATE KEY-----', rows: 3, style: { fontFamily: 'var(--font-mono)', fontSize: 11 } }),
|
|
254
|
-
h('p', { className: 'form-help' }, 'Optional. Used for email authentication (DKIM signing).')
|
|
255
|
-
),
|
|
256
|
-
h('button', { className: 'btn btn-primary', onClick: () => apiCall('/settings', { method: 'PATCH', body: JSON.stringify({ smtpHost: settings.smtpHost || null, smtpPort: settings.smtpPort ? Number(settings.smtpPort) : null, smtpUser: settings.smtpUser || null, smtpPass: settings.smtpPass || null, dkimPrivateKey: settings.dkimPrivateKey || null }) }).then(d => { setSettings(d); toast('SMTP settings saved', 'success'); }).catch(e => toast(e.message, 'error')) }, 'Save SMTP Settings')
|
|
236
|
+
)
|
|
257
237
|
)
|
|
258
238
|
),
|
|
259
239
|
h('div', { className: 'card', style: { marginTop: 16 } },
|