@agenticmail/enterprise 0.5.266 → 0.5.267
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/agent-heartbeat-VU6IZNTS.js +510 -0
- package/dist/chunk-576GWWAQ.js +3778 -0
- package/dist/chunk-7ZBV25VS.js +1224 -0
- package/dist/chunk-NM3FLQQJ.js +4732 -0
- package/dist/cli-agent-FJVXTK72.js +1768 -0
- package/dist/cli-serve-XSII2SWZ.js +114 -0
- package/dist/cli.js +3 -3
- package/dist/index.js +3 -3
- package/dist/routes-ZWF35RDU.js +14675 -0
- package/dist/runtime-X3LRHQPF.js +45 -0
- package/dist/server-QUFEA2YC.js +15 -0
- package/dist/setup-YLKNJYU4.js +20 -0
- package/package.json +1 -1
- package/src/database-access/connection-manager.ts +5 -1
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentRuntime,
|
|
3
|
+
EmailChannel,
|
|
4
|
+
FollowUpScheduler,
|
|
5
|
+
SessionManager,
|
|
6
|
+
SubAgentManager,
|
|
7
|
+
ToolRegistry,
|
|
8
|
+
callLLM,
|
|
9
|
+
createAgentRuntime,
|
|
10
|
+
createNoopHooks,
|
|
11
|
+
createRuntimeHooks,
|
|
12
|
+
estimateMessageTokens,
|
|
13
|
+
estimateTokens,
|
|
14
|
+
executeTool,
|
|
15
|
+
runAgentLoop,
|
|
16
|
+
toolsToDefinitions
|
|
17
|
+
} from "./chunk-NM3FLQQJ.js";
|
|
18
|
+
import {
|
|
19
|
+
PROVIDER_REGISTRY,
|
|
20
|
+
listAllProviders,
|
|
21
|
+
resolveApiKeyForProvider,
|
|
22
|
+
resolveProvider
|
|
23
|
+
} from "./chunk-UF3ZJMJO.js";
|
|
24
|
+
import "./chunk-KFQGP6VL.js";
|
|
25
|
+
export {
|
|
26
|
+
AgentRuntime,
|
|
27
|
+
EmailChannel,
|
|
28
|
+
FollowUpScheduler,
|
|
29
|
+
PROVIDER_REGISTRY,
|
|
30
|
+
SessionManager,
|
|
31
|
+
SubAgentManager,
|
|
32
|
+
ToolRegistry,
|
|
33
|
+
callLLM,
|
|
34
|
+
createAgentRuntime,
|
|
35
|
+
createNoopHooks,
|
|
36
|
+
createRuntimeHooks,
|
|
37
|
+
estimateMessageTokens,
|
|
38
|
+
estimateTokens,
|
|
39
|
+
executeTool,
|
|
40
|
+
listAllProviders,
|
|
41
|
+
resolveApiKeyForProvider,
|
|
42
|
+
resolveProvider,
|
|
43
|
+
runAgentLoop,
|
|
44
|
+
toolsToDefinitions
|
|
45
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-576GWWAQ.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-7ZBV25VS.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
|
@@ -136,7 +136,11 @@ export class DatabaseConnectionManager {
|
|
|
136
136
|
if (!this.engineDb) return;
|
|
137
137
|
// Detect dialect from adapter
|
|
138
138
|
const dbType = (this.engineDb as any).type || (this.engineDb as any).dialect || (this.engineDb as any).getDialect?.() || '';
|
|
139
|
-
|
|
139
|
+
// Also check constructor name or if run method signature hints at postgres
|
|
140
|
+
const isPostgres = dbType === 'postgres' || dbType === 'postgresql'
|
|
141
|
+
|| (this.engineDb as any).constructor?.name?.toLowerCase()?.includes('postgres')
|
|
142
|
+
|| String((this.engineDb as any).run).includes('RETURNING');
|
|
143
|
+
console.log(`[db-access] Detected dialect: type=${dbType}, constructor=${(this.engineDb as any).constructor?.name}, isPostgres=${isPostgres}`);
|
|
140
144
|
const now = isPostgres ? 'NOW()' : "(datetime('now'))";
|
|
141
145
|
const jsonType = isPostgres ? 'JSONB' : 'TEXT';
|
|
142
146
|
const boolType = isPostgres ? 'BOOLEAN' : 'INTEGER';
|