@totalreclaw/mcp-server 2.6.1 → 2.7.0
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/consolidation.d.ts +10 -7
- package/dist/consolidation.d.ts.map +1 -1
- package/dist/consolidation.js +105 -32
- package/dist/consolidation.js.map +1 -1
- package/package.json +1 -1
package/dist/consolidation.d.ts
CHANGED
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
* 3. Bulk consolidation — cluster all facts in the vault and identify
|
|
12
12
|
* groups of near-duplicates for cleanup (clusterFacts).
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* Delegates core computation to `@totalreclaw/core` Rust WASM module where
|
|
15
|
+
* bindings are available. `shouldSupersede` uses the core directly.
|
|
16
|
+
* `findNearDuplicate` and `clusterFacts` use the core's `findBestNearDuplicate`
|
|
17
|
+
* and `clusterFacts` WASM functions when available, falling back to local
|
|
18
|
+
* implementations that use WASM-backed `cosineSimilarity`.
|
|
17
19
|
*
|
|
18
|
-
*
|
|
20
|
+
* Threshold helpers remain local (they read process.env).
|
|
19
21
|
*/
|
|
20
22
|
/**
|
|
21
23
|
* Get the cosine similarity threshold for store-time dedup.
|
|
@@ -82,9 +84,10 @@ export declare function shouldSupersede(newImportance: number, existingFact: Dec
|
|
|
82
84
|
/**
|
|
83
85
|
* Cluster facts by semantic similarity using greedy single-pass clustering.
|
|
84
86
|
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
87
|
+
* Delegates to `@totalreclaw/core` WASM `clusterFacts` which performs the
|
|
88
|
+
* same greedy single-pass algorithm and representative selection. The WASM
|
|
89
|
+
* function returns ID-only clusters; this wrapper maps IDs back to full
|
|
90
|
+
* `DecryptedCandidate` objects for callers.
|
|
88
91
|
*
|
|
89
92
|
* Only returns clusters that have duplicates (i.e. more than one member).
|
|
90
93
|
* Facts without embeddings are not clustered.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consolidation.d.ts","sourceRoot":"","sources":["../src/consolidation.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"consolidation.d.ts","sourceRoot":"","sources":["../src/consolidation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAqBH;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAO/C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CAOlD;AAED,qEAAqE;AACrE,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAM9C,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,oDAAoD;AACpD,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,kBAAkB,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,2DAA2D;AAC3D,MAAM,WAAW,oBAAoB;IACnC,cAAc,EAAE,kBAAkB,CAAC;IACnC,UAAU,EAAE,kBAAkB,EAAE,CAAC;CAClC;AAMD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC/B,gBAAgB,EAAE,MAAM,EAAE,EAC1B,UAAU,EAAE,kBAAkB,EAAE,EAChC,SAAS,EAAE,MAAM,GAChB,kBAAkB,GAAG,IAAI,CA2C3B;AAMD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,kBAAkB,GAC/B,WAAW,GAAG,MAAM,CAGtB;AAMD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,kBAAkB,EAAE,EAC3B,SAAS,EAAE,MAAM,GAChB,oBAAoB,EAAE,CAqFxB"}
|
package/dist/consolidation.js
CHANGED
|
@@ -12,11 +12,13 @@
|
|
|
12
12
|
* 3. Bulk consolidation — cluster all facts in the vault and identify
|
|
13
13
|
* groups of near-duplicates for cleanup (clusterFacts).
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* Delegates core computation to `@totalreclaw/core` Rust WASM module where
|
|
16
|
+
* bindings are available. `shouldSupersede` uses the core directly.
|
|
17
|
+
* `findNearDuplicate` and `clusterFacts` use the core's `findBestNearDuplicate`
|
|
18
|
+
* and `clusterFacts` WASM functions when available, falling back to local
|
|
19
|
+
* implementations that use WASM-backed `cosineSimilarity`.
|
|
18
20
|
*
|
|
19
|
-
*
|
|
21
|
+
* Threshold helpers remain local (they read process.env).
|
|
20
22
|
*/
|
|
21
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
24
|
exports.STORE_DEDUP_MAX_CANDIDATES = void 0;
|
|
@@ -27,6 +29,18 @@ exports.shouldSupersede = shouldSupersede;
|
|
|
27
29
|
exports.clusterFacts = clusterFacts;
|
|
28
30
|
const reranker_js_1 = require("./subgraph/reranker.js");
|
|
29
31
|
// ---------------------------------------------------------------------------
|
|
32
|
+
// Lazy-load WASM core (same pattern as claims-helper.ts)
|
|
33
|
+
// ---------------------------------------------------------------------------
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
35
|
+
let _wasm = null;
|
|
36
|
+
function getWasm() {
|
|
37
|
+
if (!_wasm) {
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
39
|
+
_wasm = require('@totalreclaw/core');
|
|
40
|
+
}
|
|
41
|
+
return _wasm;
|
|
42
|
+
}
|
|
43
|
+
// ---------------------------------------------------------------------------
|
|
30
44
|
// Configuration
|
|
31
45
|
// ---------------------------------------------------------------------------
|
|
32
46
|
/**
|
|
@@ -79,6 +93,24 @@ exports.STORE_DEDUP_MAX_CANDIDATES = 200;
|
|
|
79
93
|
* @returns - Best match above threshold, or null
|
|
80
94
|
*/
|
|
81
95
|
function findNearDuplicate(newFactEmbedding, candidates, threshold) {
|
|
96
|
+
const wasm = getWasm();
|
|
97
|
+
// Use core's findBestNearDuplicate if available (added in core >=1.5.0).
|
|
98
|
+
if (typeof wasm.findBestNearDuplicate === 'function') {
|
|
99
|
+
const existing = candidates
|
|
100
|
+
.filter((c) => c.embedding && c.embedding.length > 0)
|
|
101
|
+
.map((c) => ({ id: c.id, embedding: c.embedding }));
|
|
102
|
+
if (existing.length === 0)
|
|
103
|
+
return null;
|
|
104
|
+
const resultJs = wasm.findBestNearDuplicate(JSON.stringify(newFactEmbedding), JSON.stringify(existing), threshold);
|
|
105
|
+
if (resultJs == null)
|
|
106
|
+
return null;
|
|
107
|
+
const result = typeof resultJs === 'string' ? JSON.parse(resultJs) : resultJs;
|
|
108
|
+
const matched = candidates.find((c) => c.id === result.fact_id);
|
|
109
|
+
if (!matched)
|
|
110
|
+
return null;
|
|
111
|
+
return { existingFact: matched, similarity: result.similarity };
|
|
112
|
+
}
|
|
113
|
+
// Fallback: local loop using WASM-backed cosineSimilarity.
|
|
82
114
|
let bestMatch = null;
|
|
83
115
|
for (const candidate of candidates) {
|
|
84
116
|
if (!candidate.embedding || candidate.embedding.length === 0)
|
|
@@ -106,39 +138,19 @@ function findNearDuplicate(newFactEmbedding, candidates, threshold) {
|
|
|
106
138
|
* @returns - 'supersede' if new fact should replace, 'skip' otherwise
|
|
107
139
|
*/
|
|
108
140
|
function shouldSupersede(newImportance, existingFact) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return 'skip';
|
|
141
|
+
const wasm = getWasm();
|
|
142
|
+
return wasm.shouldSupersede(newImportance, existingFact.importance) ? 'supersede' : 'skip';
|
|
112
143
|
}
|
|
113
144
|
// ---------------------------------------------------------------------------
|
|
114
145
|
// Bulk consolidation
|
|
115
146
|
// ---------------------------------------------------------------------------
|
|
116
|
-
/**
|
|
117
|
-
* Pick the best representative from a group of near-duplicate facts.
|
|
118
|
-
*
|
|
119
|
-
* Tiebreak order:
|
|
120
|
-
* 1. Highest decayScore
|
|
121
|
-
* 2. Most recent (highest createdAt)
|
|
122
|
-
* 3. Longest text
|
|
123
|
-
*/
|
|
124
|
-
function pickRepresentative(facts) {
|
|
125
|
-
let best = facts[0];
|
|
126
|
-
for (let i = 1; i < facts.length; i++) {
|
|
127
|
-
const f = facts[i];
|
|
128
|
-
if (f.decayScore > best.decayScore ||
|
|
129
|
-
(f.decayScore === best.decayScore && f.createdAt > best.createdAt) ||
|
|
130
|
-
(f.decayScore === best.decayScore && f.createdAt === best.createdAt && f.text.length > best.text.length)) {
|
|
131
|
-
best = f;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return best;
|
|
135
|
-
}
|
|
136
147
|
/**
|
|
137
148
|
* Cluster facts by semantic similarity using greedy single-pass clustering.
|
|
138
149
|
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
150
|
+
* Delegates to `@totalreclaw/core` WASM `clusterFacts` which performs the
|
|
151
|
+
* same greedy single-pass algorithm and representative selection. The WASM
|
|
152
|
+
* function returns ID-only clusters; this wrapper maps IDs back to full
|
|
153
|
+
* `DecryptedCandidate` objects for callers.
|
|
142
154
|
*
|
|
143
155
|
* Only returns clusters that have duplicates (i.e. more than one member).
|
|
144
156
|
* Facts without embeddings are not clustered.
|
|
@@ -148,13 +160,52 @@ function pickRepresentative(facts) {
|
|
|
148
160
|
* @returns - Clusters with duplicates (representative + duplicates)
|
|
149
161
|
*/
|
|
150
162
|
function clusterFacts(facts, threshold) {
|
|
163
|
+
const wasm = getWasm();
|
|
164
|
+
// Use core's clusterFacts if available (added in core >=1.5.0).
|
|
165
|
+
if (typeof wasm.clusterFacts === 'function') {
|
|
166
|
+
// Build ConsolidationCandidate JSON for WASM (snake_case fields).
|
|
167
|
+
const wasmCandidates = facts
|
|
168
|
+
.filter((f) => f.embedding && f.embedding.length > 0)
|
|
169
|
+
.map((f) => ({
|
|
170
|
+
id: f.id,
|
|
171
|
+
text: f.text,
|
|
172
|
+
embedding: f.embedding,
|
|
173
|
+
importance: f.importance,
|
|
174
|
+
decay_score: f.decayScore,
|
|
175
|
+
created_at: f.createdAt,
|
|
176
|
+
version: f.version,
|
|
177
|
+
}));
|
|
178
|
+
if (wasmCandidates.length === 0)
|
|
179
|
+
return [];
|
|
180
|
+
const resultJs = wasm.clusterFacts(JSON.stringify(wasmCandidates), threshold);
|
|
181
|
+
// WASM returns a JSON string: [{ representative: string, duplicates: string[] }]
|
|
182
|
+
const wasmClusters = typeof resultJs === 'string' ? JSON.parse(resultJs) : resultJs;
|
|
183
|
+
// Build a lookup map for fast ID -> DecryptedCandidate resolution.
|
|
184
|
+
const byId = new Map();
|
|
185
|
+
for (const f of facts)
|
|
186
|
+
byId.set(f.id, f);
|
|
187
|
+
// Map ID-only clusters back to full DecryptedCandidate objects.
|
|
188
|
+
const result = [];
|
|
189
|
+
for (const wc of wasmClusters) {
|
|
190
|
+
const rep = byId.get(wc.representative);
|
|
191
|
+
if (!rep)
|
|
192
|
+
continue;
|
|
193
|
+
const dups = wc.duplicates
|
|
194
|
+
.map((id) => byId.get(id))
|
|
195
|
+
.filter((d) => d !== undefined);
|
|
196
|
+
if (dups.length > 0) {
|
|
197
|
+
result.push({ representative: rep, duplicates: dups });
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return result;
|
|
201
|
+
}
|
|
202
|
+
// Fallback: local greedy single-pass clustering using WASM-backed cosineSimilarity.
|
|
151
203
|
const clusters = [];
|
|
152
204
|
for (const fact of facts) {
|
|
153
205
|
if (!fact.embedding || fact.embedding.length === 0)
|
|
154
206
|
continue;
|
|
155
207
|
let assigned = false;
|
|
156
208
|
for (const cluster of clusters) {
|
|
157
|
-
// Compare against the first member's embedding (cluster seed)
|
|
158
209
|
const seed = cluster.members[0];
|
|
159
210
|
if (!seed.embedding)
|
|
160
211
|
continue;
|
|
@@ -169,7 +220,6 @@ function clusterFacts(facts, threshold) {
|
|
|
169
220
|
clusters.push({ members: [fact] });
|
|
170
221
|
}
|
|
171
222
|
}
|
|
172
|
-
// Only return clusters with duplicates, pick representative for each
|
|
173
223
|
const result = [];
|
|
174
224
|
for (const cluster of clusters) {
|
|
175
225
|
if (cluster.members.length < 2)
|
|
@@ -180,4 +230,27 @@ function clusterFacts(facts, threshold) {
|
|
|
180
230
|
}
|
|
181
231
|
return result;
|
|
182
232
|
}
|
|
233
|
+
// ---------------------------------------------------------------------------
|
|
234
|
+
// Local helpers (used only in fallback paths)
|
|
235
|
+
// ---------------------------------------------------------------------------
|
|
236
|
+
/**
|
|
237
|
+
* Pick the best representative from a group of near-duplicate facts.
|
|
238
|
+
*
|
|
239
|
+
* Tiebreak order:
|
|
240
|
+
* 1. Highest decayScore
|
|
241
|
+
* 2. Most recent (highest createdAt)
|
|
242
|
+
* 3. Longest text
|
|
243
|
+
*/
|
|
244
|
+
function pickRepresentative(facts) {
|
|
245
|
+
let best = facts[0];
|
|
246
|
+
for (let i = 1; i < facts.length; i++) {
|
|
247
|
+
const f = facts[i];
|
|
248
|
+
if (f.decayScore > best.decayScore ||
|
|
249
|
+
(f.decayScore === best.decayScore && f.createdAt > best.createdAt) ||
|
|
250
|
+
(f.decayScore === best.decayScore && f.createdAt === best.createdAt && f.text.length > best.text.length)) {
|
|
251
|
+
best = f;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return best;
|
|
255
|
+
}
|
|
183
256
|
//# sourceMappingURL=consolidation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consolidation.js","sourceRoot":"","sources":["../src/consolidation.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"consolidation.js","sourceRoot":"","sources":["../src/consolidation.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG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CAAC,OAAO,CAAC,CAAC;QAC3D,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC;QACvE,MAAM,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,8EAA8E;AAC9E,8CAA8C;AAC9C,8EAA8E;AAE9E;;;;;;;GAOG;AACH,SAAS,kBAAkB,CAAC,KAA2B;IACrD,IAAI,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACnB,IACE,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU;YAC9B,CAAC,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAClE,CAAC,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EACxG,CAAC;YACD,IAAI,GAAG,CAAC,CAAC;QACX,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@totalreclaw/mcp-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "End-to-end encrypted memory for AI agents — portable, yours forever. MCP server with XChaCha20-Poly1305 E2EE, semantic search, import/export, and on-chain storage",
|
|
5
5
|
"homepage": "https://totalreclaw.xyz",
|
|
6
6
|
"main": "dist/index.js",
|