@agenticmail/enterprise 0.5.63 → 0.5.64

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-DOGWCA3F.js").then((m) => m.runSetupWizard()).catch(fatal);
51
+ import("./setup-LNSX2NVU.js").then((m) => m.runSetupWizard()).catch(fatal);
52
52
  break;
53
53
  }
54
54
  function fatal(err) {
package/dist/index.js CHANGED
@@ -50,11 +50,11 @@ import {
50
50
  requireRole,
51
51
  securityHeaders,
52
52
  validate
53
- } from "./chunk-AE3DOUD4.js";
53
+ } from "./chunk-T3XU62HZ.js";
54
54
  import {
55
55
  provision,
56
56
  runSetupWizard
57
- } from "./chunk-37J6FA4B.js";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.63",
3
+ "version": "0.5.64",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
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 — try multiple paths
323
- let _version = '';
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`);