@agenticmail/enterprise 0.5.35 → 0.5.37
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-4ZUFG4UA.js +2115 -0
- package/dist/chunk-EV2KJZS3.js +12676 -0
- package/dist/chunk-KKS2HTV4.js +898 -0
- package/dist/cli.js +1 -1
- package/dist/dashboard/pages/agent-detail.js +1 -1
- package/dist/index.js +3 -3
- package/dist/routes-NPMGVLXI.js +5763 -0
- package/dist/runtime-ZM2AZBDA.js +47 -0
- package/dist/server-DEDIB6H6.js +12 -0
- package/dist/setup-3SKUYJCO.js +20 -0
- package/package.json +1 -1
- package/src/dashboard/pages/agent-detail.js +1 -1
- package/src/engine/knowledge-routes.ts +4 -13
|
@@ -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-EV2KJZS3.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-4ZUFG4UA.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-KKS2HTV4.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
|
)
|
|
@@ -86,19 +86,10 @@ export function createKnowledgeRoutes(knowledgeBase: KnowledgeBaseEngine) {
|
|
|
86
86
|
const docId = c.req.param('docId');
|
|
87
87
|
const kb = knowledgeBase.getKnowledgeBase(kbId);
|
|
88
88
|
if (!kb) return c.json({ error: 'Knowledge base not found' }, 404);
|
|
89
|
-
//
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
allChunks.forEach((chunk: any) => {
|
|
94
|
-
if (chunk.documentId === docId) docChunks.push(chunk);
|
|
95
|
-
});
|
|
96
|
-
} else if (typeof allChunks === 'object') {
|
|
97
|
-
for (const [, chunk] of Object.entries(allChunks)) {
|
|
98
|
-
if ((chunk as any).documentId === docId) docChunks.push(chunk);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
docChunks.sort((a: any, b: any) => (a.position || 0) - (b.position || 0));
|
|
89
|
+
// Find the document and return its chunks
|
|
90
|
+
const doc = kb.documents?.find((d: any) => d.id === docId);
|
|
91
|
+
if (!doc) return c.json({ error: 'Document not found' }, 404);
|
|
92
|
+
const docChunks = (doc.chunks || []).slice().sort((a: any, b: any) => (a.position || 0) - (b.position || 0));
|
|
102
93
|
return c.json({ chunks: docChunks, total: docChunks.length });
|
|
103
94
|
});
|
|
104
95
|
|