@agenticmail/enterprise 0.5.44 → 0.5.45
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-AOASAMLE.js +2115 -0
- package/dist/chunk-M3WTJ5YO.js +898 -0
- package/dist/chunk-XTGZRTVI.js +2315 -0
- package/dist/cli.js +1 -1
- package/dist/db-adapter-Y3OVVRF4.js +7 -0
- package/dist/index.js +3 -3
- package/dist/server-G76D5W66.js +12 -0
- package/dist/setup-OVPCTGDL.js +20 -0
- package/package.json +1 -1
- package/src/engine/db-schema.ts +20 -2
package/dist/cli.js
CHANGED
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-AOASAMLE.js";
|
|
54
54
|
import {
|
|
55
55
|
provision,
|
|
56
56
|
runSetupWizard
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-M3WTJ5YO.js";
|
|
58
58
|
import {
|
|
59
59
|
ENGINE_TABLES,
|
|
60
60
|
ENGINE_TABLES_POSTGRES,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
MIGRATIONS_TABLE_POSTGRES,
|
|
65
65
|
sqliteToMySQL,
|
|
66
66
|
sqliteToPostgres
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-XTGZRTVI.js";
|
|
68
68
|
import {
|
|
69
69
|
deployToCloud,
|
|
70
70
|
generateDockerCompose,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-AOASAMLE.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-M3WTJ5YO.js";
|
|
10
|
+
import "./chunk-M4PRT53C.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/engine/db-schema.ts
CHANGED
|
@@ -1233,6 +1233,22 @@ CREATE INDEX idx_agent_followups_agent ON agent_followups(agent_id);
|
|
|
1233
1233
|
mysql: `ALTER TABLE company_settings ADD COLUMN model_pricing_config TEXT DEFAULT '{}';`,
|
|
1234
1234
|
nosql: async () => {},
|
|
1235
1235
|
},
|
|
1236
|
+
{
|
|
1237
|
+
version: 17,
|
|
1238
|
+
name: 'fix_version_column_type',
|
|
1239
|
+
sql: `SELECT 1;`, // SQLite already uses INTEGER, no fix needed
|
|
1240
|
+
postgres: `
|
|
1241
|
+
DO $$ BEGIN
|
|
1242
|
+
IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name='managed_agents' AND column_name='version' AND data_type='boolean') THEN
|
|
1243
|
+
ALTER TABLE managed_agents ALTER COLUMN version DROP DEFAULT;
|
|
1244
|
+
ALTER TABLE managed_agents ALTER COLUMN version TYPE INTEGER USING CASE WHEN version THEN 1 ELSE 0 END;
|
|
1245
|
+
ALTER TABLE managed_agents ALTER COLUMN version SET DEFAULT 1;
|
|
1246
|
+
END IF;
|
|
1247
|
+
END $$;
|
|
1248
|
+
`,
|
|
1249
|
+
mysql: `SELECT 1;`,
|
|
1250
|
+
nosql: async () => {},
|
|
1251
|
+
},
|
|
1236
1252
|
];
|
|
1237
1253
|
|
|
1238
1254
|
// ─── Dynamic Table Definitions ─────────────────────────
|
|
@@ -1266,8 +1282,10 @@ export function sqliteToPostgres(sql: string): string {
|
|
|
1266
1282
|
.replace(/\bBLOB\b/g, 'BYTEA')
|
|
1267
1283
|
.replace(/JSON/g, 'JSONB')
|
|
1268
1284
|
.replace(/datetime\('now'\)/g, "NOW()")
|
|
1269
|
-
|
|
1270
|
-
|
|
1285
|
+
// Only convert INTEGER→BOOLEAN for known boolean column names (enabled, revoked, enforce_*, auto_*, is_*, active)
|
|
1286
|
+
// NOT for version, count, or other numeric columns that happen to default to 1
|
|
1287
|
+
.replace(/((?:enabled|revoked|enforce_\w+|auto_\w+|is_\w+|active)\s+)INTEGER NOT NULL DEFAULT 1(?!\d)/g, '$1BOOLEAN NOT NULL DEFAULT TRUE')
|
|
1288
|
+
.replace(/((?:enabled|revoked|enforce_\w+|auto_\w+|is_\w+|active)\s+)INTEGER NOT NULL DEFAULT 0(?!\d)/g, '$1BOOLEAN NOT NULL DEFAULT FALSE');
|
|
1271
1289
|
}
|
|
1272
1290
|
|
|
1273
1291
|
/**
|