@agenticmail/enterprise 0.5.30 → 0.5.31
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-AT6IGZGE.js +9083 -0
- package/dist/chunk-OR6H2DPS.js +12666 -0
- package/dist/chunk-SMOO4B3U.js +2115 -0
- package/dist/chunk-XUTZMLTV.js +898 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +4 -4
- package/dist/routes-HZ74YFMD.js +5743 -0
- package/dist/runtime-UYX665XN.js +47 -0
- package/dist/server-MBP6KTBH.js +12 -0
- package/dist/setup-RVAZOLLY.js +20 -0
- package/package.json +1 -1
- package/src/engine/agent-routes.ts +3 -0
- package/src/engine/knowledge.ts +6 -4
|
@@ -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-OR6H2DPS.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-SMOO4B3U.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-XUTZMLTV.js";
|
|
10
|
+
import "./chunk-ZMZCLNTY.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
|
@@ -224,8 +224,11 @@ export function createAgentRoutes(opts: {
|
|
|
224
224
|
name,
|
|
225
225
|
displayName: displayName || name,
|
|
226
226
|
identity: {
|
|
227
|
+
name: name,
|
|
228
|
+
email: email || `${name.toLowerCase().replace(/\s+/g, '-')}@agenticmail.local`,
|
|
227
229
|
role: role || 'assistant',
|
|
228
230
|
personality: 'professional',
|
|
231
|
+
description: persona?.description || '',
|
|
229
232
|
...(persona?.avatar && { avatar: persona.avatar }),
|
|
230
233
|
...(persona?.gender && { gender: persona.gender }),
|
|
231
234
|
...(persona?.dateOfBirth && { dateOfBirth: persona.dateOfBirth }),
|
package/src/engine/knowledge.ts
CHANGED
|
@@ -244,7 +244,8 @@ export class KnowledgeBaseEngine {
|
|
|
244
244
|
// Find all KBs this agent has access to
|
|
245
245
|
const kbs = Array.from(this.knowledgeBases.values()).filter(kb => {
|
|
246
246
|
if (opts?.kbIds?.length) return opts.kbIds.includes(kb.id);
|
|
247
|
-
|
|
247
|
+
const ids = Array.isArray(kb.agentIds) ? kb.agentIds : [];
|
|
248
|
+
return ids.includes(agentId) || ids.length === 0; // Empty = all agents
|
|
248
249
|
});
|
|
249
250
|
|
|
250
251
|
if (kbs.length === 0) return [];
|
|
@@ -329,9 +330,10 @@ export class KnowledgeBaseEngine {
|
|
|
329
330
|
}
|
|
330
331
|
|
|
331
332
|
getKnowledgeBasesForAgent(agentId: string): KnowledgeBase[] {
|
|
332
|
-
return Array.from(this.knowledgeBases.values()).filter(kb =>
|
|
333
|
-
kb.agentIds
|
|
334
|
-
|
|
333
|
+
return Array.from(this.knowledgeBases.values()).filter(kb => {
|
|
334
|
+
const ids = Array.isArray(kb.agentIds) ? kb.agentIds : [];
|
|
335
|
+
return ids.includes(agentId) || ids.length === 0;
|
|
336
|
+
});
|
|
335
337
|
}
|
|
336
338
|
|
|
337
339
|
deleteDocument(kbId: string, docId: string): boolean {
|