@agenticmail/enterprise 0.5.230 → 0.5.232
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-KQ5NV6LM.js +3759 -0
- package/dist/chunk-NWYNNU3C.js +3760 -0
- package/dist/chunk-PE26BX2O.js +1224 -0
- package/dist/chunk-ULRBF2T7.js +48 -0
- package/dist/chunk-YNG3KJKA.js +1224 -0
- package/dist/cli-agent-M3YGU3IG.js +1721 -0
- package/dist/cli-recover-GNWBEKCR.js +222 -0
- package/dist/cli-serve-B5OYCS3C.js +114 -0
- package/dist/cli-serve-NGGPNMP7.js +114 -0
- package/dist/cli-verify-F3KN23M7.js +149 -0
- package/dist/cli.js +5 -5
- package/dist/factory-672W7A5B.js +9 -0
- package/dist/index.js +3 -3
- package/dist/postgres-QVRFKBEH.js +758 -0
- package/dist/server-QEB5AFIE.js +15 -0
- package/dist/server-RZ22KAON.js +15 -0
- package/dist/setup-3RGSSGB3.js +20 -0
- package/dist/setup-QXMX65XI.js +20 -0
- package/package.json +1 -1
- package/src/admin/routes.ts +7 -6
- package/src/db/postgres.ts +10 -0
- package/src/server.ts +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-NWYNNU3C.js";
|
|
4
|
+
import "./chunk-OF4MUWWS.js";
|
|
5
|
+
import "./chunk-UF3ZJMJO.js";
|
|
6
|
+
import "./chunk-3OC6RH7W.js";
|
|
7
|
+
import "./chunk-2DDKGTD6.js";
|
|
8
|
+
import "./chunk-YVK6F5OD.js";
|
|
9
|
+
import "./chunk-MKRNEM5A.js";
|
|
10
|
+
import "./chunk-DRXMYYKN.js";
|
|
11
|
+
import "./chunk-6WSX7QXF.js";
|
|
12
|
+
import "./chunk-KFQGP6VL.js";
|
|
13
|
+
export {
|
|
14
|
+
createServer
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-KQ5NV6LM.js";
|
|
4
|
+
import "./chunk-OF4MUWWS.js";
|
|
5
|
+
import "./chunk-UF3ZJMJO.js";
|
|
6
|
+
import "./chunk-3OC6RH7W.js";
|
|
7
|
+
import "./chunk-2DDKGTD6.js";
|
|
8
|
+
import "./chunk-YVK6F5OD.js";
|
|
9
|
+
import "./chunk-MKRNEM5A.js";
|
|
10
|
+
import "./chunk-DRXMYYKN.js";
|
|
11
|
+
import "./chunk-6WSX7QXF.js";
|
|
12
|
+
import "./chunk-KFQGP6VL.js";
|
|
13
|
+
export {
|
|
14
|
+
createServer
|
|
15
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
promptCompanyInfo,
|
|
3
|
+
promptDatabase,
|
|
4
|
+
promptDeployment,
|
|
5
|
+
promptDomain,
|
|
6
|
+
promptRegistration,
|
|
7
|
+
provision,
|
|
8
|
+
runSetupWizard
|
|
9
|
+
} from "./chunk-YNG3KJKA.js";
|
|
10
|
+
import "./chunk-ULRBF2T7.js";
|
|
11
|
+
import "./chunk-KFQGP6VL.js";
|
|
12
|
+
export {
|
|
13
|
+
promptCompanyInfo,
|
|
14
|
+
promptDatabase,
|
|
15
|
+
promptDeployment,
|
|
16
|
+
promptDomain,
|
|
17
|
+
promptRegistration,
|
|
18
|
+
provision,
|
|
19
|
+
runSetupWizard
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
promptCompanyInfo,
|
|
3
|
+
promptDatabase,
|
|
4
|
+
promptDeployment,
|
|
5
|
+
promptDomain,
|
|
6
|
+
promptRegistration,
|
|
7
|
+
provision,
|
|
8
|
+
runSetupWizard
|
|
9
|
+
} from "./chunk-PE26BX2O.js";
|
|
10
|
+
import "./chunk-ULRBF2T7.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/admin/routes.ts
CHANGED
|
@@ -807,15 +807,16 @@ export function createAdminRoutes(db: DatabaseAdapter) {
|
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
// Save branding config to settings
|
|
810
|
+
// Save branding config to settings (with cache-busting timestamp)
|
|
811
811
|
const settings = await db.getSettings();
|
|
812
812
|
const branding = settings?.branding || {};
|
|
813
|
-
|
|
813
|
+
const v = Date.now();
|
|
814
|
+
(branding as any)[type] = `/branding/${savedName}?v=${v}`;
|
|
814
815
|
if (type === 'logo' || type === 'favicon') {
|
|
815
|
-
(branding as any).favicon =
|
|
816
|
-
(branding as any).appleTouchIcon =
|
|
817
|
-
(branding as any).icon192 =
|
|
818
|
-
(branding as any).icon512 =
|
|
816
|
+
(branding as any).favicon = `/branding/favicon.png?v=${v}`;
|
|
817
|
+
(branding as any).appleTouchIcon = `/branding/apple-touch-icon.png?v=${v}`;
|
|
818
|
+
(branding as any).icon192 = `/branding/icon-192.png?v=${v}`;
|
|
819
|
+
(branding as any).icon512 = `/branding/icon-512.png?v=${v}`;
|
|
819
820
|
}
|
|
820
821
|
await updateSettingsAndEmit({ branding });
|
|
821
822
|
|
package/src/db/postgres.ts
CHANGED
|
@@ -180,6 +180,10 @@ export class PostgresAdapter extends DatabaseAdapter {
|
|
|
180
180
|
await client.query(`
|
|
181
181
|
ALTER TABLE company_settings ADD COLUMN IF NOT EXISTS platform_capabilities JSONB;
|
|
182
182
|
`).catch(() => {});
|
|
183
|
+
// Branding assets config
|
|
184
|
+
await client.query(`
|
|
185
|
+
ALTER TABLE company_settings ADD COLUMN IF NOT EXISTS branding JSONB;
|
|
186
|
+
`).catch(() => {});
|
|
183
187
|
// 2FA / TOTP columns on users
|
|
184
188
|
await client.query(`
|
|
185
189
|
ALTER TABLE users ADD COLUMN IF NOT EXISTS totp_secret TEXT;
|
|
@@ -272,6 +276,11 @@ export class PostgresAdapter extends DatabaseAdapter {
|
|
|
272
276
|
values.push(JSON.stringify((updates as any).platformCapabilities));
|
|
273
277
|
i++;
|
|
274
278
|
}
|
|
279
|
+
if ((updates as any).branding !== undefined) {
|
|
280
|
+
fields.push(`branding = $${i}`);
|
|
281
|
+
values.push(JSON.stringify((updates as any).branding));
|
|
282
|
+
i++;
|
|
283
|
+
}
|
|
275
284
|
fields.push(`updated_at = NOW()`);
|
|
276
285
|
values.push('default');
|
|
277
286
|
const { rows } = await this.pool.query(
|
|
@@ -745,6 +754,7 @@ export class PostgresAdapter extends DatabaseAdapter {
|
|
|
745
754
|
orgEmailConfig: r.org_email_config ? (typeof r.org_email_config === 'string' ? JSON.parse(r.org_email_config) : r.org_email_config) : undefined,
|
|
746
755
|
platformCapabilities: r.platform_capabilities ? (typeof r.platform_capabilities === 'string' ? JSON.parse(r.platform_capabilities) : r.platform_capabilities) : undefined,
|
|
747
756
|
signatureTemplate: r.signature_template || undefined,
|
|
757
|
+
branding: r.branding ? (typeof r.branding === 'string' ? JSON.parse(r.branding) : r.branding) : undefined,
|
|
748
758
|
} as any;
|
|
749
759
|
}
|
|
750
760
|
}
|
package/src/server.ts
CHANGED
|
@@ -468,7 +468,7 @@ export function createServer(config: ServerConfig): ServerInstance {
|
|
|
468
468
|
|
|
469
469
|
// Serve branding assets from ~/.agenticmail/branding/
|
|
470
470
|
app.get('/branding/*', (c) => {
|
|
471
|
-
const reqPath = c.req.path.replace('/branding/', '');
|
|
471
|
+
const reqPath = c.req.path.replace('/branding/', '').split('?')[0];
|
|
472
472
|
if (reqPath.includes('..')) return c.json({ error: 'Forbidden' }, 403);
|
|
473
473
|
const ext = reqPath.substring(reqPath.lastIndexOf('.'));
|
|
474
474
|
const mimeMap: Record<string, string> = { '.png': 'image/png', '.jpg': 'image/jpeg', '.jpeg': 'image/jpeg', '.svg': 'image/svg+xml', '.ico': 'image/x-icon', '.gif': 'image/gif', '.webp': 'image/webp' };
|