@agenticmail/enterprise 0.5.162 → 0.5.164
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-memory-RAXWUVUP.js +10 -0
- package/dist/chunk-257L4VTT.js +584 -0
- package/dist/chunk-4FHY5GLO.js +16421 -0
- package/dist/chunk-SJRF5OLB.js +2195 -0
- package/dist/chunk-Y3SVP4G3.js +898 -0
- package/dist/cli-agent-WN3O6GW2.js +873 -0
- package/dist/cli-serve-ZNKBEF4M.js +34 -0
- package/dist/cli.js +3 -3
- package/dist/dashboard/pages/agent-detail.js +1 -1
- package/dist/index.js +4 -4
- package/dist/routes-3ZLSM5D4.js +6986 -0
- package/dist/runtime-NMPICBKL.js +49 -0
- package/dist/server-VZOHG5SV.js +12 -0
- package/dist/setup-4ZOKKRK3.js +20 -0
- package/package.json +1 -1
- package/src/dashboard/pages/agent-detail.js +1 -1
- package/src/engine/agent-memory.ts +15 -9
|
@@ -0,0 +1,49 @@
|
|
|
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-4FHY5GLO.js";
|
|
18
|
+
import "./chunk-AQH4DFYV.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-NRF3YRF7.js";
|
|
27
|
+
import "./chunk-TYW5XTOW.js";
|
|
28
|
+
import "./chunk-KFQGP6VL.js";
|
|
29
|
+
export {
|
|
30
|
+
AgentRuntime,
|
|
31
|
+
EmailChannel,
|
|
32
|
+
FollowUpScheduler,
|
|
33
|
+
PROVIDER_REGISTRY,
|
|
34
|
+
SessionManager,
|
|
35
|
+
SubAgentManager,
|
|
36
|
+
ToolRegistry,
|
|
37
|
+
callLLM,
|
|
38
|
+
createAgentRuntime,
|
|
39
|
+
createNoopHooks,
|
|
40
|
+
createRuntimeHooks,
|
|
41
|
+
estimateMessageTokens,
|
|
42
|
+
estimateTokens,
|
|
43
|
+
executeTool,
|
|
44
|
+
listAllProviders,
|
|
45
|
+
resolveApiKeyForProvider,
|
|
46
|
+
resolveProvider,
|
|
47
|
+
runAgentLoop,
|
|
48
|
+
toolsToDefinitions
|
|
49
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-SJRF5OLB.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-Y3SVP4G3.js";
|
|
10
|
+
import "./chunk-MHIFVS5L.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
|
@@ -2020,7 +2020,7 @@ function MemorySection(props) {
|
|
|
2020
2020
|
|
|
2021
2021
|
var loadStats = function() {
|
|
2022
2022
|
engineCall('/memory/agent/' + agentId + '/stats')
|
|
2023
|
-
.then(function(d) { setMemoryStats(d); })
|
|
2023
|
+
.then(function(d) { setMemoryStats(d.stats || d); })
|
|
2024
2024
|
.catch(function() {});
|
|
2025
2025
|
};
|
|
2026
2026
|
|
|
@@ -157,10 +157,14 @@ export class AgentMemoryManager {
|
|
|
157
157
|
const rows = await this.engineDb.query<any>('SELECT * FROM agent_memory');
|
|
158
158
|
console.log(`[memory] Loaded ${rows.length} memories from DB`);
|
|
159
159
|
for (const r of rows) {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
try {
|
|
161
|
+
const entry = this.rowToEntry(r);
|
|
162
|
+
this.memories.set(entry.id, entry);
|
|
163
|
+
this.indexAdd(entry.agentId, entry.id);
|
|
164
|
+
this.searchIndex.addDocument(entry.id, entry);
|
|
165
|
+
} catch (entryErr: any) {
|
|
166
|
+
console.warn(`[memory] Skipped entry ${r.id}: ${entryErr.message}`);
|
|
167
|
+
}
|
|
164
168
|
}
|
|
165
169
|
} catch (loadErr: any) {
|
|
166
170
|
console.error('[memory] loadFromDb failed:', loadErr.message);
|
|
@@ -358,10 +362,12 @@ export class AgentMemoryManager {
|
|
|
358
362
|
);
|
|
359
363
|
console.log(`[memory] Lazy-loaded ${rows.length} memories for agent ${opts.agentId}`);
|
|
360
364
|
for (const r of rows) {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
+
try {
|
|
366
|
+
const entry = this.rowToEntry(r);
|
|
367
|
+
this.memories.set(entry.id, entry);
|
|
368
|
+
this.indexAdd(entry.agentId, entry.id);
|
|
369
|
+
this.searchIndex.addDocument(entry.id, entry);
|
|
370
|
+
} catch {}
|
|
365
371
|
}
|
|
366
372
|
results = this.getAgentMemories(opts.agentId);
|
|
367
373
|
} catch (e: any) {
|
|
@@ -766,7 +772,7 @@ export class AgentMemoryManager {
|
|
|
766
772
|
accessCount: row.access_count || 0,
|
|
767
773
|
lastAccessedAt: row.last_accessed_at || undefined,
|
|
768
774
|
expiresAt: row.expires_at || undefined,
|
|
769
|
-
tags: sj(row.tags
|
|
775
|
+
tags: Array.isArray(row.tags) ? row.tags : (Array.isArray(sj(row.tags)) ? sj(row.tags) : []),
|
|
770
776
|
metadata: sj(row.metadata || '{}'),
|
|
771
777
|
createdAt: row.created_at,
|
|
772
778
|
updatedAt: row.updated_at,
|