@agenticmail/enterprise 0.5.34 → 0.5.36
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-3NSKE5DQ.js +898 -0
- package/dist/chunk-IKAR55YS.js +12676 -0
- package/dist/chunk-U4L5EDIG.js +2115 -0
- package/dist/chunk-V56UE7DJ.js +9083 -0
- package/dist/cli.js +1 -1
- package/dist/dashboard/pages/agent-detail.js +1 -1
- package/dist/index.js +4 -4
- package/dist/routes-LFPOSIXP.js +5772 -0
- package/dist/runtime-4C7WHHKA.js +47 -0
- package/dist/server-BR3JL7XE.js +12 -0
- package/dist/setup-EFFRV7HM.js +20 -0
- package/package.json +1 -1
- package/src/dashboard/pages/agent-detail.js +1 -1
- package/src/engine/storage-manager.ts +1 -1
- package/src/runtime/session-manager.ts +7 -5
|
@@ -0,0 +1,47 @@
|
|
|
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-IKAR55YS.js";
|
|
18
|
+
import "./chunk-TYW5XTOW.js";
|
|
19
|
+
import "./chunk-JLSQOQ5L.js";
|
|
20
|
+
import {
|
|
21
|
+
PROVIDER_REGISTRY,
|
|
22
|
+
listAllProviders,
|
|
23
|
+
resolveApiKeyForProvider,
|
|
24
|
+
resolveProvider
|
|
25
|
+
} from "./chunk-67KZYSLU.js";
|
|
26
|
+
import "./chunk-KFQGP6VL.js";
|
|
27
|
+
export {
|
|
28
|
+
AgentRuntime,
|
|
29
|
+
EmailChannel,
|
|
30
|
+
FollowUpScheduler,
|
|
31
|
+
PROVIDER_REGISTRY,
|
|
32
|
+
SessionManager,
|
|
33
|
+
SubAgentManager,
|
|
34
|
+
ToolRegistry,
|
|
35
|
+
callLLM,
|
|
36
|
+
createAgentRuntime,
|
|
37
|
+
createNoopHooks,
|
|
38
|
+
createRuntimeHooks,
|
|
39
|
+
estimateMessageTokens,
|
|
40
|
+
estimateTokens,
|
|
41
|
+
executeTool,
|
|
42
|
+
listAllProviders,
|
|
43
|
+
resolveApiKeyForProvider,
|
|
44
|
+
resolveProvider,
|
|
45
|
+
runAgentLoop,
|
|
46
|
+
toolsToDefinitions
|
|
47
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-U4L5EDIG.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-3NSKE5DQ.js";
|
|
10
|
+
import "./chunk-WEWW2XJW.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
|
@@ -3430,7 +3430,7 @@ function DeploymentSection(props) {
|
|
|
3430
3430
|
return h('tr', { key: kb.id || i },
|
|
3431
3431
|
h('td', { style: { fontWeight: 500, fontSize: 13 } }, kb.name || 'Unnamed'),
|
|
3432
3432
|
h('td', { style: { fontSize: 12, color: 'var(--text-muted)', maxWidth: 300, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } }, kb.description || '-'),
|
|
3433
|
-
h('td', null, String(kb.documentCount || kb.documents || kb.docCount || 0))
|
|
3433
|
+
h('td', null, String(kb.documentCount || (Array.isArray(kb.documents) ? kb.documents.length : kb.documents) || kb.docCount || 0))
|
|
3434
3434
|
);
|
|
3435
3435
|
})
|
|
3436
3436
|
)
|
|
@@ -64,7 +64,7 @@ export class StorageManager {
|
|
|
64
64
|
id: r.id,
|
|
65
65
|
orgId: r.org_id,
|
|
66
66
|
storageType: r.storage_type,
|
|
67
|
-
config: JSON.parse(r.config || '{}'),
|
|
67
|
+
config: typeof r.config === 'string' ? JSON.parse(r.config || '{}') : (r.config || {}),
|
|
68
68
|
vaultCredentialId: r.vault_credential_id || undefined,
|
|
69
69
|
enabled: !!r.enabled,
|
|
70
70
|
createdBy: r.created_by,
|
|
@@ -313,20 +313,22 @@ export class SessionManager {
|
|
|
313
313
|
|
|
314
314
|
return (rows || []).map(function(row: any) {
|
|
315
315
|
var content: any;
|
|
316
|
-
|
|
317
|
-
content = JSON.parse(row.content);
|
|
318
|
-
} catch {
|
|
316
|
+
if (typeof row.content === 'object' && row.content !== null) {
|
|
319
317
|
content = row.content;
|
|
318
|
+
} else {
|
|
319
|
+
try { content = JSON.parse(row.content); } catch { content = row.content; }
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
var toolCalls: any;
|
|
323
323
|
if (row.tool_calls) {
|
|
324
|
-
|
|
324
|
+
toolCalls = typeof row.tool_calls === 'object' ? row.tool_calls : undefined;
|
|
325
|
+
if (!toolCalls) { try { toolCalls = JSON.parse(row.tool_calls); } catch {} }
|
|
325
326
|
}
|
|
326
327
|
|
|
327
328
|
var toolResults: any;
|
|
328
329
|
if (row.tool_results) {
|
|
329
|
-
|
|
330
|
+
toolResults = typeof row.tool_results === 'object' ? row.tool_results : undefined;
|
|
331
|
+
if (!toolResults) { try { toolResults = JSON.parse(row.tool_results); } catch {} }
|
|
330
332
|
}
|
|
331
333
|
|
|
332
334
|
return {
|