@agenticmail/enterprise 0.5.63 → 0.5.65
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-HTAJQYUO.js +898 -0
- package/dist/chunk-T3XU62HZ.js +2127 -0
- package/dist/cli.js +1 -1
- package/dist/dashboard/pages/settings.js +1 -1
- package/dist/index.js +2 -2
- package/dist/server-HOXRMDFV.js +12 -0
- package/dist/setup-LNSX2NVU.js +20 -0
- package/package.json +1 -1
- package/src/dashboard/pages/settings.js +1 -1
- package/src/server.ts +13 -17
package/dist/cli.js
CHANGED
|
@@ -261,7 +261,7 @@ export function SettingsPage() {
|
|
|
261
261
|
h('div', { className: 'card-body' },
|
|
262
262
|
h('div', { style: { display: 'grid', gridTemplateColumns: '140px 1fr', gap: '6px 16px', fontSize: 13 } },
|
|
263
263
|
h('span', { style: { color: 'var(--text-muted)' } }, 'Organization ID'), h('span', { style: { fontFamily: 'var(--font-mono)', fontSize: 12 } }, settings.orgId || settings.id || '-'),
|
|
264
|
-
h('span', { style: { color: 'var(--text-muted)' } }, 'Version'), h('span', { style: { fontFamily: 'var(--font-mono)', fontSize: 12 } },
|
|
264
|
+
h('span', { style: { color: 'var(--text-muted)' } }, 'Version'), h('span', { style: { fontFamily: 'var(--font-mono)', fontSize: 12 } }, window.__ENTERPRISE_VERSION__ || settings.version || '-'),
|
|
265
265
|
h('span', { style: { color: 'var(--text-muted)' } }, 'Created'), h('span', null, settings.createdAt ? new Date(settings.createdAt).toLocaleString() : '-'),
|
|
266
266
|
h('span', { style: { color: 'var(--text-muted)' } }, 'Last Updated'), h('span', null, settings.updatedAt ? new Date(settings.updatedAt).toLocaleString() : '-')
|
|
267
267
|
)
|
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-T3XU62HZ.js";
|
|
54
54
|
import {
|
|
55
55
|
provision,
|
|
56
56
|
runSetupWizard
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-HTAJQYUO.js";
|
|
58
58
|
import {
|
|
59
59
|
ENGINE_TABLES,
|
|
60
60
|
ENGINE_TABLES_POSTGRES,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-T3XU62HZ.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-HTAJQYUO.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
|
@@ -261,7 +261,7 @@ export function SettingsPage() {
|
|
|
261
261
|
h('div', { className: 'card-body' },
|
|
262
262
|
h('div', { style: { display: 'grid', gridTemplateColumns: '140px 1fr', gap: '6px 16px', fontSize: 13 } },
|
|
263
263
|
h('span', { style: { color: 'var(--text-muted)' } }, 'Organization ID'), h('span', { style: { fontFamily: 'var(--font-mono)', fontSize: 12 } }, settings.orgId || settings.id || '-'),
|
|
264
|
-
h('span', { style: { color: 'var(--text-muted)' } }, 'Version'), h('span', { style: { fontFamily: 'var(--font-mono)', fontSize: 12 } },
|
|
264
|
+
h('span', { style: { color: 'var(--text-muted)' } }, 'Version'), h('span', { style: { fontFamily: 'var(--font-mono)', fontSize: 12 } }, window.__ENTERPRISE_VERSION__ || settings.version || '-'),
|
|
265
265
|
h('span', { style: { color: 'var(--text-muted)' } }, 'Created'), h('span', null, settings.createdAt ? new Date(settings.createdAt).toLocaleString() : '-'),
|
|
266
266
|
h('span', { style: { color: 'var(--text-muted)' } }, 'Last Updated'), h('span', null, settings.updatedAt ? new Date(settings.updatedAt).toLocaleString() : '-')
|
|
267
267
|
)
|
package/src/server.ts
CHANGED
|
@@ -13,6 +13,16 @@ import { serve } from '@hono/node-server';
|
|
|
13
13
|
import { readFileSync, existsSync } from 'fs';
|
|
14
14
|
import { fileURLToPath } from 'url';
|
|
15
15
|
import { dirname, join } from 'path';
|
|
16
|
+
import { createRequire } from 'module';
|
|
17
|
+
|
|
18
|
+
// Resolve version at module load time
|
|
19
|
+
let ENTERPRISE_VERSION = 'unknown';
|
|
20
|
+
try {
|
|
21
|
+
const _require = createRequire(import.meta.url);
|
|
22
|
+
ENTERPRISE_VERSION = _require('../package.json').version;
|
|
23
|
+
} catch {
|
|
24
|
+
try { ENTERPRISE_VERSION = JSON.parse(readFileSync(join(process.cwd(), 'node_modules', '@agenticmail', 'enterprise', 'package.json'), 'utf-8')).version; } catch { /* noop */ }
|
|
25
|
+
}
|
|
16
26
|
import type { DatabaseAdapter } from './db/adapter.js';
|
|
17
27
|
import { createDbProxy, type DbProxy } from './db/proxy.js';
|
|
18
28
|
import { createAdminRoutes } from './admin/routes.js';
|
|
@@ -319,22 +329,8 @@ export function createServer(config: ServerConfig): ServerInstance {
|
|
|
319
329
|
|
|
320
330
|
async function serveDashboard(c: any) {
|
|
321
331
|
let html = getDashboardHtml();
|
|
322
|
-
// Inject version
|
|
323
|
-
|
|
324
|
-
for (const rel of ['../package.json', './package.json', '../../package.json']) {
|
|
325
|
-
if (_version) break;
|
|
326
|
-
try {
|
|
327
|
-
const p = join(dirname(fileURLToPath(import.meta.url)), rel);
|
|
328
|
-
_version = JSON.parse(readFileSync(p, 'utf-8')).version;
|
|
329
|
-
} catch { /* try next */ }
|
|
330
|
-
}
|
|
331
|
-
if (!_version) {
|
|
332
|
-
// Fallback: search from cwd
|
|
333
|
-
try { _version = JSON.parse(readFileSync(join(process.cwd(), 'node_modules', '@agenticmail', 'enterprise', 'package.json'), 'utf-8')).version; } catch { /* noop */ }
|
|
334
|
-
}
|
|
335
|
-
if (_version) {
|
|
336
|
-
html = html.replace('</head>', `<script>window.__ENTERPRISE_VERSION__="${_version}";</script></head>`);
|
|
337
|
-
}
|
|
332
|
+
// Inject version
|
|
333
|
+
html = html.replace('</head>', `<script>window.__ENTERPRISE_VERSION__="${ENTERPRISE_VERSION}";</script></head>`);
|
|
338
334
|
|
|
339
335
|
if (!_setupComplete) {
|
|
340
336
|
const injection = `<script>window.__EM_SETUP_STATE__=${JSON.stringify({ needsBootstrap: true })};</script>`;
|
|
@@ -400,7 +396,7 @@ export function createServer(config: ServerConfig): ServerInstance {
|
|
|
400
396
|
const server = serve(
|
|
401
397
|
{ fetch: app.fetch, port: config.port },
|
|
402
398
|
(info) => {
|
|
403
|
-
console.log(`\n🏢 AgenticMail Enterprise`);
|
|
399
|
+
console.log(`\n🏢 AgenticMail Enterprise v${ENTERPRISE_VERSION}`);
|
|
404
400
|
console.log(` API: http://localhost:${info.port}/api`);
|
|
405
401
|
console.log(` Auth: http://localhost:${info.port}/auth`);
|
|
406
402
|
console.log(` Health: http://localhost:${info.port}/health`);
|