@totalreclaw/mcp-server 3.3.0-rc.4 → 3.4.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/README.md +4 -7
- package/SKILL.md +6 -7
- package/dist/claims-helper.d.ts +1 -1
- package/dist/claims-helper.d.ts.map +1 -1
- package/dist/claims-helper.js +31 -31
- package/dist/claims-helper.js.map +1 -1
- package/dist/cli/setup.js +5 -5
- package/dist/cli/setup.js.map +1 -1
- package/dist/consolidation.d.ts +3 -5
- package/dist/consolidation.d.ts.map +1 -1
- package/dist/consolidation.js +47 -122
- package/dist/consolidation.js.map +1 -1
- package/dist/contradiction-sync.d.ts +2 -2
- package/dist/contradiction-sync.d.ts.map +1 -1
- package/dist/contradiction-sync.js +12 -12
- package/dist/contradiction-sync.js.map +1 -1
- package/dist/dispatch.d.ts +95 -0
- package/dist/dispatch.d.ts.map +1 -0
- package/dist/dispatch.js +191 -0
- package/dist/dispatch.js.map +1 -0
- package/dist/extraction/extractor.d.ts +1 -0
- package/dist/extraction/extractor.d.ts.map +1 -1
- package/dist/extraction/extractor.js +15 -15
- package/dist/extraction/extractor.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +207 -732
- package/dist/index.js.map +1 -1
- package/dist/prompts.d.ts +3 -4
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +5 -11
- package/dist/prompts.js.map +1 -1
- package/dist/server-setup.d.ts +35 -0
- package/dist/server-setup.d.ts.map +1 -0
- package/dist/server-setup.js +102 -0
- package/dist/server-setup.js.map +1 -0
- package/dist/subgraph/chain-config.d.ts +45 -0
- package/dist/subgraph/chain-config.d.ts.map +1 -0
- package/dist/subgraph/chain-config.js +66 -0
- package/dist/subgraph/chain-config.js.map +1 -0
- package/dist/subgraph/search.js +13 -13
- package/dist/subgraph/search.js.map +1 -1
- package/dist/subgraph/store.d.ts.map +1 -1
- package/dist/subgraph/store.js +4 -1
- package/dist/subgraph/store.js.map +1 -1
- package/dist/tools/account.d.ts +5 -2
- package/dist/tools/account.d.ts.map +1 -1
- package/dist/tools/account.js +11 -4
- package/dist/tools/account.js.map +1 -1
- package/dist/tools/consolidate.d.ts +2 -2
- package/dist/tools/consolidate.d.ts.map +1 -1
- package/dist/tools/consolidate.js +2 -1
- package/dist/tools/consolidate.js.map +1 -1
- package/dist/tools/debrief.d.ts +2 -2
- package/dist/tools/debrief.d.ts.map +1 -1
- package/dist/tools/debrief.js +2 -1
- package/dist/tools/debrief.js.map +1 -1
- package/dist/tools/export.d.ts +2 -2
- package/dist/tools/export.d.ts.map +1 -1
- package/dist/tools/export.js +2 -1
- package/dist/tools/export.js.map +1 -1
- package/dist/tools/forget.d.ts +8 -2
- package/dist/tools/forget.d.ts.map +1 -1
- package/dist/tools/forget.js +14 -7
- package/dist/tools/forget.js.map +1 -1
- package/dist/tools/helpers.d.ts +40 -0
- package/dist/tools/helpers.d.ts.map +1 -0
- package/dist/tools/helpers.js +64 -0
- package/dist/tools/helpers.js.map +1 -0
- package/dist/tools/import-batch.d.ts +2 -1
- package/dist/tools/import-batch.d.ts.map +1 -1
- package/dist/tools/import-batch.js +1 -1
- package/dist/tools/import-batch.js.map +1 -1
- package/dist/tools/import-from.d.ts +2 -2
- package/dist/tools/import-from.d.ts.map +1 -1
- package/dist/tools/import-from.js +2 -1
- package/dist/tools/import-from.js.map +1 -1
- package/dist/tools/import.d.ts +2 -2
- package/dist/tools/import.d.ts.map +1 -1
- package/dist/tools/import.js +4 -3
- package/dist/tools/import.js.map +1 -1
- package/dist/tools/index.d.ts +2 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +7 -9
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/pair.d.ts +2 -1
- package/dist/tools/pair.d.ts.map +1 -1
- package/dist/tools/pair.js +4 -4
- package/dist/tools/pair.js.map +1 -1
- package/dist/tools/pin.d.ts +10 -7
- package/dist/tools/pin.d.ts.map +1 -1
- package/dist/tools/pin.js +43 -49
- package/dist/tools/pin.js.map +1 -1
- package/dist/tools/recall.d.ts +2 -2
- package/dist/tools/recall.d.ts.map +1 -1
- package/dist/tools/recall.js +22 -47
- package/dist/tools/recall.js.map +1 -1
- package/dist/tools/remember.d.ts +2 -2
- package/dist/tools/remember.d.ts.map +1 -1
- package/dist/tools/remember.js +30 -48
- package/dist/tools/remember.js.map +1 -1
- package/dist/tools/retype.d.ts +6 -1
- package/dist/tools/retype.d.ts.map +1 -1
- package/dist/tools/retype.js +37 -33
- package/dist/tools/retype.js.map +1 -1
- package/dist/tools/set-scope.d.ts +6 -1
- package/dist/tools/set-scope.d.ts.map +1 -1
- package/dist/tools/set-scope.js +14 -10
- package/dist/tools/set-scope.js.map +1 -1
- package/dist/tools/status.d.ts +2 -1
- package/dist/tools/status.d.ts.map +1 -1
- package/dist/tools/status.js +24 -15
- package/dist/tools/status.js.map +1 -1
- package/dist/tools/support.d.ts +5 -3
- package/dist/tools/support.d.ts.map +1 -1
- package/dist/tools/support.js +9 -8
- package/dist/tools/support.js.map +1 -1
- package/dist/tools/types.d.ts +38 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +17 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/tools/upgrade.d.ts +2 -1
- package/dist/tools/upgrade.d.ts.map +1 -1
- package/dist/tools/upgrade.js +6 -4
- package/dist/tools/upgrade.js.map +1 -1
- package/package.json +2 -3
- package/dist/subgraph/index.d.ts +0 -7
- package/dist/subgraph/index.d.ts.map +0 -1
- package/dist/subgraph/index.js +0 -23
- package/dist/subgraph/index.js.map +0 -1
- package/dist/tools/migrate.d.ts +0 -88
- package/dist/tools/migrate.d.ts.map +0 -1
- package/dist/tools/migrate.js +0 -273
- package/dist/tools/migrate.js.map +0 -1
package/dist/tools/migrate.js
DELETED
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* TotalReclaw MCP - Testnet-to-Mainnet Migration Tool
|
|
4
|
-
*
|
|
5
|
-
* Migrates encrypted memories from Base Sepolia (free tier testnet) to
|
|
6
|
-
* Gnosis mainnet (Pro tier) after a user upgrades.
|
|
7
|
-
*
|
|
8
|
-
* The encrypted data is chain-agnostic: same XChaCha20-Poly1305 ciphertext works
|
|
9
|
-
* on any chain. Smart Account addresses are deterministic (CREATE2), so
|
|
10
|
-
* the owner is the same on both chains. No re-encryption needed.
|
|
11
|
-
*
|
|
12
|
-
* Flow:
|
|
13
|
-
* 1. Verify user is Pro tier (via billing endpoint)
|
|
14
|
-
* 2. Fetch ALL active facts from testnet subgraph (paginated)
|
|
15
|
-
* 3. Fetch existing mainnet facts (by contentFp) for idempotency
|
|
16
|
-
* 4. Filter out facts that already exist on mainnet
|
|
17
|
-
* 5. Re-encode each fact as protobuf and batch-submit to mainnet via relay
|
|
18
|
-
* 6. Report progress and summary
|
|
19
|
-
*
|
|
20
|
-
* Safety:
|
|
21
|
-
* - Dry-run by default (confirm=false): shows preview without migrating
|
|
22
|
-
* - Testnet facts are never deleted (they remain as a backup)
|
|
23
|
-
* - Idempotent: skips facts that already exist on mainnet (by contentFp)
|
|
24
|
-
* - Handles partial failures gracefully (reports per-batch results)
|
|
25
|
-
*/
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.migrateToolDefinition = void 0;
|
|
28
|
-
exports.fetchAllFactsFromSubgraph = fetchAllFactsFromSubgraph;
|
|
29
|
-
exports.fetchMainnetContentFps = fetchMainnetContentFps;
|
|
30
|
-
exports.checkBillingTier = checkBillingTier;
|
|
31
|
-
exports.fetchBlindIndicesForFacts = fetchBlindIndicesForFacts;
|
|
32
|
-
const prompts_js_1 = require("../prompts.js");
|
|
33
|
-
const client_id_js_1 = require("../client-id.js");
|
|
34
|
-
exports.migrateToolDefinition = {
|
|
35
|
-
name: 'totalreclaw_migrate',
|
|
36
|
-
description: prompts_js_1.MIGRATE_TOOL_DESCRIPTION,
|
|
37
|
-
inputSchema: {
|
|
38
|
-
type: 'object',
|
|
39
|
-
properties: {
|
|
40
|
-
confirm: {
|
|
41
|
-
type: 'boolean',
|
|
42
|
-
description: 'Set to true to execute the migration. Without confirm=true, returns a dry-run preview.',
|
|
43
|
-
default: false,
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
annotations: {
|
|
48
|
-
readOnlyHint: false,
|
|
49
|
-
destructiveHint: false,
|
|
50
|
-
idempotentHint: true,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
// ---------------------------------------------------------------------------
|
|
54
|
-
// GraphQL queries for migration
|
|
55
|
-
// ---------------------------------------------------------------------------
|
|
56
|
-
/** Fetch all active facts by owner — paginated with cursor (id_gt) */
|
|
57
|
-
const FETCH_FACTS_QUERY = `
|
|
58
|
-
query FetchFacts($owner: Bytes!, $first: Int!, $lastId: String!) {
|
|
59
|
-
facts(
|
|
60
|
-
where: { owner: $owner, isActive: true, id_gt: $lastId }
|
|
61
|
-
first: $first
|
|
62
|
-
orderBy: id
|
|
63
|
-
orderDirection: asc
|
|
64
|
-
) {
|
|
65
|
-
id
|
|
66
|
-
owner
|
|
67
|
-
encryptedBlob
|
|
68
|
-
encryptedEmbedding
|
|
69
|
-
decayScore
|
|
70
|
-
isActive
|
|
71
|
-
contentFp
|
|
72
|
-
source
|
|
73
|
-
agentId
|
|
74
|
-
version
|
|
75
|
-
timestamp
|
|
76
|
-
createdAt
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
/** Initial fetch (no cursor) */
|
|
81
|
-
const FETCH_FACTS_INITIAL_QUERY = `
|
|
82
|
-
query FetchFactsInitial($owner: Bytes!, $first: Int!) {
|
|
83
|
-
facts(
|
|
84
|
-
where: { owner: $owner, isActive: true }
|
|
85
|
-
first: $first
|
|
86
|
-
orderBy: id
|
|
87
|
-
orderDirection: asc
|
|
88
|
-
) {
|
|
89
|
-
id
|
|
90
|
-
owner
|
|
91
|
-
encryptedBlob
|
|
92
|
-
encryptedEmbedding
|
|
93
|
-
decayScore
|
|
94
|
-
isActive
|
|
95
|
-
contentFp
|
|
96
|
-
source
|
|
97
|
-
agentId
|
|
98
|
-
version
|
|
99
|
-
timestamp
|
|
100
|
-
createdAt
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
`;
|
|
104
|
-
/** Fetch contentFps from mainnet for idempotency check */
|
|
105
|
-
const FETCH_CONTENT_FPS_QUERY = `
|
|
106
|
-
query FetchContentFps($owner: Bytes!, $first: Int!, $lastId: String!) {
|
|
107
|
-
facts(
|
|
108
|
-
where: { owner: $owner, isActive: true, id_gt: $lastId }
|
|
109
|
-
first: $first
|
|
110
|
-
orderBy: id
|
|
111
|
-
orderDirection: asc
|
|
112
|
-
) {
|
|
113
|
-
id
|
|
114
|
-
contentFp
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
`;
|
|
118
|
-
const FETCH_CONTENT_FPS_INITIAL_QUERY = `
|
|
119
|
-
query FetchContentFpsInitial($owner: Bytes!, $first: Int!) {
|
|
120
|
-
facts(
|
|
121
|
-
where: { owner: $owner, isActive: true }
|
|
122
|
-
first: $first
|
|
123
|
-
orderBy: id
|
|
124
|
-
orderDirection: asc
|
|
125
|
-
) {
|
|
126
|
-
id
|
|
127
|
-
contentFp
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
`;
|
|
131
|
-
// ---------------------------------------------------------------------------
|
|
132
|
-
// GraphQL helper
|
|
133
|
-
// ---------------------------------------------------------------------------
|
|
134
|
-
const PAGE_SIZE = 1000; // Graph Studio limit
|
|
135
|
-
async function gqlQuery(endpoint, query, variables, authKeyHex) {
|
|
136
|
-
try {
|
|
137
|
-
const headers = {
|
|
138
|
-
'Content-Type': 'application/json',
|
|
139
|
-
'X-TotalReclaw-Client': (0, client_id_js_1.getClientId)(),
|
|
140
|
-
};
|
|
141
|
-
if (authKeyHex)
|
|
142
|
-
headers['Authorization'] = `Bearer ${authKeyHex}`;
|
|
143
|
-
const response = await fetch(endpoint, {
|
|
144
|
-
method: 'POST',
|
|
145
|
-
headers,
|
|
146
|
-
body: JSON.stringify({ query, variables }),
|
|
147
|
-
});
|
|
148
|
-
if (!response.ok) {
|
|
149
|
-
console.error(`[migrate] gqlQuery HTTP ${response.status}: ${await response.text().catch(() => 'no body')}`);
|
|
150
|
-
return null;
|
|
151
|
-
}
|
|
152
|
-
const json = await response.json();
|
|
153
|
-
if (json.errors) {
|
|
154
|
-
console.error(`[migrate] gqlQuery GraphQL errors:`, JSON.stringify(json.errors));
|
|
155
|
-
}
|
|
156
|
-
return json.data ?? null;
|
|
157
|
-
}
|
|
158
|
-
catch (err) {
|
|
159
|
-
console.error(`[migrate] gqlQuery exception:`, err);
|
|
160
|
-
return null;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
// ---------------------------------------------------------------------------
|
|
164
|
-
// Fetch all facts from a subgraph (paginated)
|
|
165
|
-
// ---------------------------------------------------------------------------
|
|
166
|
-
async function fetchAllFactsFromSubgraph(subgraphUrl, owner, authKeyHex) {
|
|
167
|
-
const allFacts = [];
|
|
168
|
-
let lastId = '';
|
|
169
|
-
let page = 0;
|
|
170
|
-
while (true) {
|
|
171
|
-
page++;
|
|
172
|
-
const isInitial = lastId === '';
|
|
173
|
-
const query = isInitial ? FETCH_FACTS_INITIAL_QUERY : FETCH_FACTS_QUERY;
|
|
174
|
-
const variables = isInitial
|
|
175
|
-
? { owner, first: PAGE_SIZE }
|
|
176
|
-
: { owner, first: PAGE_SIZE, lastId };
|
|
177
|
-
const data = await gqlQuery(subgraphUrl, query, variables, authKeyHex);
|
|
178
|
-
const facts = data?.facts ?? [];
|
|
179
|
-
if (facts.length === 0)
|
|
180
|
-
break;
|
|
181
|
-
allFacts.push(...facts);
|
|
182
|
-
console.error(`[migrate] Fetched page ${page}: ${facts.length} facts (total: ${allFacts.length})`);
|
|
183
|
-
if (facts.length < PAGE_SIZE)
|
|
184
|
-
break; // Last page
|
|
185
|
-
lastId = facts[facts.length - 1].id;
|
|
186
|
-
}
|
|
187
|
-
return allFacts;
|
|
188
|
-
}
|
|
189
|
-
// ---------------------------------------------------------------------------
|
|
190
|
-
// Fetch content fingerprints from mainnet for idempotency
|
|
191
|
-
// ---------------------------------------------------------------------------
|
|
192
|
-
async function fetchMainnetContentFps(subgraphUrl, owner, authKeyHex) {
|
|
193
|
-
const fps = new Set();
|
|
194
|
-
let lastId = '';
|
|
195
|
-
while (true) {
|
|
196
|
-
const isInitial = lastId === '';
|
|
197
|
-
const query = isInitial ? FETCH_CONTENT_FPS_INITIAL_QUERY : FETCH_CONTENT_FPS_QUERY;
|
|
198
|
-
const variables = isInitial
|
|
199
|
-
? { owner, first: PAGE_SIZE }
|
|
200
|
-
: { owner, first: PAGE_SIZE, lastId };
|
|
201
|
-
const data = await gqlQuery(subgraphUrl, query, variables, authKeyHex);
|
|
202
|
-
const facts = data?.facts ?? [];
|
|
203
|
-
if (facts.length === 0)
|
|
204
|
-
break;
|
|
205
|
-
for (const f of facts) {
|
|
206
|
-
if (f.contentFp)
|
|
207
|
-
fps.add(f.contentFp);
|
|
208
|
-
}
|
|
209
|
-
if (facts.length < PAGE_SIZE)
|
|
210
|
-
break;
|
|
211
|
-
lastId = facts[facts.length - 1].id;
|
|
212
|
-
}
|
|
213
|
-
return fps;
|
|
214
|
-
}
|
|
215
|
-
async function checkBillingTier(serverUrl, walletAddress, authKeyHex) {
|
|
216
|
-
try {
|
|
217
|
-
const url = `${serverUrl.replace(/\/+$/, '')}/v1/billing/status?wallet_address=${encodeURIComponent(walletAddress)}`;
|
|
218
|
-
const response = await fetch(url, {
|
|
219
|
-
method: 'GET',
|
|
220
|
-
headers: {
|
|
221
|
-
'Authorization': `Bearer ${authKeyHex}`,
|
|
222
|
-
'Content-Type': 'application/json',
|
|
223
|
-
'X-TotalReclaw-Client': (0, client_id_js_1.getClientId)(),
|
|
224
|
-
},
|
|
225
|
-
});
|
|
226
|
-
if (!response.ok) {
|
|
227
|
-
return { tier: 'unknown', error: `Billing check failed (HTTP ${response.status})` };
|
|
228
|
-
}
|
|
229
|
-
const data = (await response.json());
|
|
230
|
-
return { tier: data.tier };
|
|
231
|
-
}
|
|
232
|
-
catch (err) {
|
|
233
|
-
return { tier: 'unknown', error: err instanceof Error ? err.message : 'Unknown error' };
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
// ---------------------------------------------------------------------------
|
|
237
|
-
// Blind index fetching for migration
|
|
238
|
-
// ---------------------------------------------------------------------------
|
|
239
|
-
const BLIND_INDEX_QUERY = `
|
|
240
|
-
query FetchBlindIndices($factIds: [String!]!, $first: Int!) {
|
|
241
|
-
blindIndexes(
|
|
242
|
-
where: { fact_in: $factIds }
|
|
243
|
-
first: $first
|
|
244
|
-
) {
|
|
245
|
-
hash
|
|
246
|
-
fact {
|
|
247
|
-
id
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
`;
|
|
252
|
-
/**
|
|
253
|
-
* Fetch blind index hashes for a list of fact IDs from the subgraph.
|
|
254
|
-
* Returns a Map from fact ID to array of blind index hashes.
|
|
255
|
-
*
|
|
256
|
-
* Processes fact IDs in chunks of 50 to avoid query limits.
|
|
257
|
-
* Each fact may have ~25-35 blind indices (20 LSH + word indices).
|
|
258
|
-
*/
|
|
259
|
-
async function fetchBlindIndicesForFacts(subgraphUrl, factIds, authKeyHex) {
|
|
260
|
-
const result = new Map();
|
|
261
|
-
const CHUNK_SIZE = 50;
|
|
262
|
-
for (let i = 0; i < factIds.length; i += CHUNK_SIZE) {
|
|
263
|
-
const chunk = factIds.slice(i, i + CHUNK_SIZE);
|
|
264
|
-
const data = await gqlQuery(subgraphUrl, BLIND_INDEX_QUERY, { factIds: chunk, first: 1000 }, authKeyHex);
|
|
265
|
-
for (const entry of data?.blindIndexes ?? []) {
|
|
266
|
-
const existing = result.get(entry.fact.id) || [];
|
|
267
|
-
existing.push(entry.hash);
|
|
268
|
-
result.set(entry.fact.id, existing);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
return result;
|
|
272
|
-
}
|
|
273
|
-
//# sourceMappingURL=migrate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../src/tools/migrate.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AA0LH,8DAmCC;AAMD,wDAkCC;AAYD,4CAyBC;AA2BD,8DA4BC;AA/VD,8CAAyD;AACzD,kDAA8C;AAEjC,QAAA,qBAAqB,GAAG;IACnC,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qCAAwB;IACrC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,wFAAwF;gBACrG,OAAO,EAAE,KAAK;aACf;SACF;KACF;IACD,WAAW,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAsCF,8EAA8E;AAC9E,gCAAgC;AAChC,8EAA8E;AAE9E,sEAAsE;AACtE,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBzB,CAAC;AAEF,gCAAgC;AAChC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;CAsBjC,CAAC;AAEF,0DAA0D;AAC1D,MAAM,uBAAuB,GAAG;;;;;;;;;;;;CAY/B,CAAC;AAEF,MAAM,+BAA+B,GAAG;;;;;;;;;;;;CAYvC,CAAC;AAEF,8EAA8E;AAC9E,iBAAiB;AACjB,8EAA8E;AAE9E,MAAM,SAAS,GAAG,IAAI,CAAC,CAAC,qBAAqB;AAE7C,KAAK,UAAU,QAAQ,CACrB,QAAgB,EAChB,KAAa,EACb,SAAkC,EAClC,UAAmB;IAEnB,IAAI,CAAC;QACH,MAAM,OAAO,GAA2B;YACtC,cAAc,EAAE,kBAAkB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