universal-agent-memory 0.6.3 → 0.7.1
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/benchmarks/benchmark.d.ts +12 -12
- package/dist/benchmarks/execution-verifier.d.ts.map +1 -1
- package/dist/benchmarks/execution-verifier.js +51 -10
- package/dist/benchmarks/execution-verifier.js.map +1 -1
- package/dist/bin/cli.js +4 -1
- package/dist/bin/cli.js.map +1 -1
- package/dist/cli/update.d.ts +3 -0
- package/dist/cli/update.d.ts.map +1 -1
- package/dist/cli/update.js +136 -11
- package/dist/cli/update.js.map +1 -1
- package/dist/index.d.ts +17 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/dist/memory/backends/qdrant-cloud.d.ts +12 -1
- package/dist/memory/backends/qdrant-cloud.d.ts.map +1 -1
- package/dist/memory/backends/qdrant-cloud.js +39 -3
- package/dist/memory/backends/qdrant-cloud.js.map +1 -1
- package/dist/memory/context-compressor.d.ts +66 -0
- package/dist/memory/context-compressor.d.ts.map +1 -0
- package/dist/memory/context-compressor.js +250 -0
- package/dist/memory/context-compressor.js.map +1 -0
- package/dist/memory/dynamic-retrieval.d.ts +62 -1
- package/dist/memory/dynamic-retrieval.d.ts.map +1 -1
- package/dist/memory/dynamic-retrieval.js +154 -32
- package/dist/memory/dynamic-retrieval.js.map +1 -1
- package/dist/memory/embeddings.d.ts +38 -4
- package/dist/memory/embeddings.d.ts.map +1 -1
- package/dist/memory/embeddings.js +173 -9
- package/dist/memory/embeddings.js.map +1 -1
- package/dist/memory/hierarchical-memory.d.ts +116 -0
- package/dist/memory/hierarchical-memory.d.ts.map +1 -0
- package/dist/memory/hierarchical-memory.js +299 -0
- package/dist/memory/hierarchical-memory.js.map +1 -0
- package/dist/memory/memory-consolidator.d.ts +124 -0
- package/dist/memory/memory-consolidator.d.ts.map +1 -0
- package/dist/memory/memory-consolidator.js +514 -0
- package/dist/memory/memory-consolidator.js.map +1 -0
- package/dist/memory/multi-view-memory.d.ts +134 -0
- package/dist/memory/multi-view-memory.d.ts.map +1 -0
- package/dist/memory/multi-view-memory.js +420 -0
- package/dist/memory/multi-view-memory.js.map +1 -0
- package/dist/memory/semantic-compression.d.ts +77 -0
- package/dist/memory/semantic-compression.d.ts.map +1 -0
- package/dist/memory/semantic-compression.js +344 -0
- package/dist/memory/semantic-compression.js.map +1 -0
- package/dist/memory/speculative-cache.d.ts +92 -0
- package/dist/memory/speculative-cache.d.ts.map +1 -0
- package/dist/memory/speculative-cache.js +261 -0
- package/dist/memory/speculative-cache.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Speculative Cache for UAM Memory System
|
|
3
|
+
*
|
|
4
|
+
* Pre-computes likely next queries based on task patterns.
|
|
5
|
+
* Reduces latency by predicting and caching memory retrievals.
|
|
6
|
+
*
|
|
7
|
+
* Enhanced with task classifier integration for smarter prefetching
|
|
8
|
+
*/
|
|
9
|
+
const DEFAULT_CONFIG = {
|
|
10
|
+
maxEntries: 100,
|
|
11
|
+
ttlMs: 300000, // 5 minutes
|
|
12
|
+
preWarmEnabled: true,
|
|
13
|
+
predictionDepth: 3,
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Query patterns for speculative prefetching
|
|
17
|
+
*/
|
|
18
|
+
const QUERY_PATTERNS = {
|
|
19
|
+
'sysadmin': [
|
|
20
|
+
'linux commands', 'systemd services', 'network configuration',
|
|
21
|
+
'docker containers', 'kernel modules', 'filesystem mounts',
|
|
22
|
+
],
|
|
23
|
+
'security': [
|
|
24
|
+
'authentication patterns', 'secret management', 'vulnerability fixes',
|
|
25
|
+
'input validation', 'encryption methods', 'access control',
|
|
26
|
+
],
|
|
27
|
+
'coding': [
|
|
28
|
+
'design patterns', 'error handling', 'async patterns',
|
|
29
|
+
'type definitions', 'refactoring', 'code review',
|
|
30
|
+
],
|
|
31
|
+
'testing': [
|
|
32
|
+
'test patterns', 'mocking', 'assertions',
|
|
33
|
+
'coverage', 'integration tests', 'edge cases',
|
|
34
|
+
],
|
|
35
|
+
'debugging': [
|
|
36
|
+
'error messages', 'stack traces', 'dependency conflicts',
|
|
37
|
+
'environment issues', 'git problems', 'build failures',
|
|
38
|
+
],
|
|
39
|
+
'ml-training': [
|
|
40
|
+
'model training', 'dataset processing', 'hyperparameters',
|
|
41
|
+
'embeddings', 'evaluation metrics', 'GPU optimization',
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Speculative Memory Cache
|
|
46
|
+
*/
|
|
47
|
+
export class SpeculativeCache {
|
|
48
|
+
config;
|
|
49
|
+
cache = new Map();
|
|
50
|
+
queryHistory = [];
|
|
51
|
+
taskPatterns = new Map();
|
|
52
|
+
constructor(config = {}) {
|
|
53
|
+
this.config = { ...DEFAULT_CONFIG, ...config };
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get from cache with automatic staleness check
|
|
57
|
+
*/
|
|
58
|
+
get(query) {
|
|
59
|
+
const normalizedQuery = this.normalizeQuery(query);
|
|
60
|
+
const entry = this.cache.get(normalizedQuery);
|
|
61
|
+
if (!entry)
|
|
62
|
+
return null;
|
|
63
|
+
// Check TTL
|
|
64
|
+
const age = Date.now() - entry.lastUsed.getTime();
|
|
65
|
+
if (age > this.config.ttlMs) {
|
|
66
|
+
this.cache.delete(normalizedQuery);
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
// Update usage stats
|
|
70
|
+
entry.usageCount++;
|
|
71
|
+
entry.lastUsed = new Date();
|
|
72
|
+
return entry;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Set cache entry
|
|
76
|
+
*/
|
|
77
|
+
set(query, result, predictedBy) {
|
|
78
|
+
const normalizedQuery = this.normalizeQuery(query);
|
|
79
|
+
// Evict if at capacity
|
|
80
|
+
if (this.cache.size >= this.config.maxEntries) {
|
|
81
|
+
this.evictLRU();
|
|
82
|
+
}
|
|
83
|
+
this.cache.set(normalizedQuery, {
|
|
84
|
+
query: normalizedQuery,
|
|
85
|
+
result,
|
|
86
|
+
usageCount: 1,
|
|
87
|
+
lastUsed: new Date(),
|
|
88
|
+
createdAt: new Date(),
|
|
89
|
+
predictedBy,
|
|
90
|
+
});
|
|
91
|
+
// Track query pattern
|
|
92
|
+
this.recordQuery(query);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Record query for pattern analysis
|
|
96
|
+
*/
|
|
97
|
+
recordQuery(query) {
|
|
98
|
+
this.queryHistory.push(query);
|
|
99
|
+
// Keep last 100 queries
|
|
100
|
+
if (this.queryHistory.length > 100) {
|
|
101
|
+
this.queryHistory.shift();
|
|
102
|
+
}
|
|
103
|
+
// Update task patterns
|
|
104
|
+
const category = this.detectCategory(query);
|
|
105
|
+
if (category) {
|
|
106
|
+
const count = this.taskPatterns.get(category) || 0;
|
|
107
|
+
this.taskPatterns.set(category, count + 1);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Detect task category from query
|
|
112
|
+
*/
|
|
113
|
+
detectCategory(query) {
|
|
114
|
+
const queryLower = query.toLowerCase();
|
|
115
|
+
for (const [category, keywords] of Object.entries(QUERY_PATTERNS)) {
|
|
116
|
+
for (const keyword of keywords) {
|
|
117
|
+
if (queryLower.includes(keyword.toLowerCase())) {
|
|
118
|
+
return category;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Get predicted queries based on current context
|
|
126
|
+
*/
|
|
127
|
+
getPredictedQueries(currentQuery) {
|
|
128
|
+
const predictions = [];
|
|
129
|
+
const category = this.detectCategory(currentQuery);
|
|
130
|
+
// Add category-specific predictions
|
|
131
|
+
if (category && QUERY_PATTERNS[category]) {
|
|
132
|
+
const categoryQueries = QUERY_PATTERNS[category];
|
|
133
|
+
predictions.push(...categoryQueries.slice(0, this.config.predictionDepth));
|
|
134
|
+
}
|
|
135
|
+
// Add patterns from history
|
|
136
|
+
const recentPatterns = this.analyzeQuerySequences();
|
|
137
|
+
predictions.push(...recentPatterns);
|
|
138
|
+
// Deduplicate and limit
|
|
139
|
+
return [...new Set(predictions)].slice(0, this.config.predictionDepth * 2);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Analyze query sequences for patterns
|
|
143
|
+
*/
|
|
144
|
+
analyzeQuerySequences() {
|
|
145
|
+
const patterns = [];
|
|
146
|
+
if (this.queryHistory.length < 2)
|
|
147
|
+
return patterns;
|
|
148
|
+
// Look for common follow-up queries
|
|
149
|
+
const transitions = new Map();
|
|
150
|
+
for (let i = 0; i < this.queryHistory.length - 1; i++) {
|
|
151
|
+
const from = this.normalizeQuery(this.queryHistory[i]);
|
|
152
|
+
const to = this.normalizeQuery(this.queryHistory[i + 1]);
|
|
153
|
+
if (!transitions.has(from)) {
|
|
154
|
+
transitions.set(from, new Map());
|
|
155
|
+
}
|
|
156
|
+
const toCount = transitions.get(from).get(to) || 0;
|
|
157
|
+
transitions.get(from).set(to, toCount + 1);
|
|
158
|
+
}
|
|
159
|
+
// Find most common transitions
|
|
160
|
+
if (this.queryHistory.length > 0) {
|
|
161
|
+
const lastQuery = this.normalizeQuery(this.queryHistory[this.queryHistory.length - 1]);
|
|
162
|
+
const nextQueries = transitions.get(lastQuery);
|
|
163
|
+
if (nextQueries) {
|
|
164
|
+
const sorted = [...nextQueries.entries()].sort((a, b) => b[1] - a[1]);
|
|
165
|
+
patterns.push(...sorted.slice(0, 3).map(([query]) => query));
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return patterns;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Pre-warm cache with predicted queries
|
|
172
|
+
*/
|
|
173
|
+
async preWarm(currentQuery, fetcher) {
|
|
174
|
+
if (!this.config.preWarmEnabled)
|
|
175
|
+
return;
|
|
176
|
+
const predictions = this.getPredictedQueries(currentQuery);
|
|
177
|
+
// Fetch in parallel
|
|
178
|
+
await Promise.all(predictions.map(async (query) => {
|
|
179
|
+
if (!this.cache.has(this.normalizeQuery(query))) {
|
|
180
|
+
try {
|
|
181
|
+
const result = await fetcher(query);
|
|
182
|
+
this.set(query, result, currentQuery);
|
|
183
|
+
}
|
|
184
|
+
catch {
|
|
185
|
+
// Ignore prefetch failures
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}));
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Evict least recently used entry
|
|
192
|
+
*/
|
|
193
|
+
evictLRU() {
|
|
194
|
+
let oldest = null;
|
|
195
|
+
for (const [key, entry] of this.cache) {
|
|
196
|
+
const time = entry.lastUsed.getTime();
|
|
197
|
+
if (!oldest || time < oldest.time) {
|
|
198
|
+
oldest = { key, time };
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (oldest) {
|
|
202
|
+
this.cache.delete(oldest.key);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Normalize query for cache key
|
|
207
|
+
*/
|
|
208
|
+
normalizeQuery(query) {
|
|
209
|
+
return query.toLowerCase().trim().replace(/\s+/g, ' ');
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Get cache statistics
|
|
213
|
+
*/
|
|
214
|
+
getStats() {
|
|
215
|
+
const entries = [...this.cache.values()];
|
|
216
|
+
const totalUsage = entries.reduce((sum, e) => sum + e.usageCount, 0);
|
|
217
|
+
const hits = entries.filter(e => e.usageCount > 1).length;
|
|
218
|
+
const topPatterns = [...this.taskPatterns.entries()]
|
|
219
|
+
.sort((a, b) => b[1] - a[1])
|
|
220
|
+
.slice(0, 5)
|
|
221
|
+
.map(([category, count]) => ({ category, count }));
|
|
222
|
+
return {
|
|
223
|
+
size: this.cache.size,
|
|
224
|
+
hitRate: entries.length > 0 ? hits / entries.length : 0,
|
|
225
|
+
avgUsage: entries.length > 0 ? totalUsage / entries.length : 0,
|
|
226
|
+
topPatterns,
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Clear expired entries
|
|
231
|
+
*/
|
|
232
|
+
cleanup() {
|
|
233
|
+
const now = Date.now();
|
|
234
|
+
let removed = 0;
|
|
235
|
+
for (const [key, entry] of this.cache) {
|
|
236
|
+
const age = now - entry.lastUsed.getTime();
|
|
237
|
+
if (age > this.config.ttlMs) {
|
|
238
|
+
this.cache.delete(key);
|
|
239
|
+
removed++;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return removed;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Clear all cache
|
|
246
|
+
*/
|
|
247
|
+
clear() {
|
|
248
|
+
this.cache.clear();
|
|
249
|
+
this.queryHistory = [];
|
|
250
|
+
this.taskPatterns.clear();
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
// Singleton instance
|
|
254
|
+
let globalCache = null;
|
|
255
|
+
export function getSpeculativeCache(config) {
|
|
256
|
+
if (!globalCache) {
|
|
257
|
+
globalCache = new SpeculativeCache(config);
|
|
258
|
+
}
|
|
259
|
+
return globalCache;
|
|
260
|
+
}
|
|
261
|
+
//# sourceMappingURL=speculative-cache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"speculative-cache.js","sourceRoot":"","sources":["../../src/memory/speculative-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAsBH,MAAM,cAAc,GAAgB;IAClC,UAAU,EAAE,GAAG;IACf,KAAK,EAAE,MAAM,EAAE,YAAY;IAC3B,cAAc,EAAE,IAAI;IACpB,eAAe,EAAE,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,cAAc,GAA6B;IAC/C,UAAU,EAAE;QACV,gBAAgB,EAAE,kBAAkB,EAAE,uBAAuB;QAC7D,mBAAmB,EAAE,gBAAgB,EAAE,mBAAmB;KAC3D;IACD,UAAU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D,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-agent-memory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Universal AI agent memory system - CLAUDE.md templates, memory, worktrees for Claude Code, Factory.AI, VSCode, OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|