@claude-flow/memory 3.0.0-alpha.1 → 3.0.0-alpha.7
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 +356 -18
- package/dist/agent-memory-scope.d.ts +131 -0
- package/dist/agent-memory-scope.d.ts.map +1 -0
- package/dist/agent-memory-scope.js +215 -0
- package/dist/agent-memory-scope.js.map +1 -0
- package/dist/agent-memory-scope.test.d.ts +8 -0
- package/dist/agent-memory-scope.test.d.ts.map +1 -0
- package/dist/agent-memory-scope.test.js +463 -0
- package/dist/agent-memory-scope.test.js.map +1 -0
- package/dist/agentdb-adapter.d.ts +22 -3
- package/dist/agentdb-adapter.d.ts.map +1 -1
- package/dist/agentdb-adapter.js +135 -8
- package/dist/agentdb-adapter.js.map +1 -1
- package/dist/auto-memory-bridge.d.ts +226 -0
- package/dist/auto-memory-bridge.d.ts.map +1 -0
- package/dist/auto-memory-bridge.js +709 -0
- package/dist/auto-memory-bridge.js.map +1 -0
- package/dist/auto-memory-bridge.test.d.ts +8 -0
- package/dist/auto-memory-bridge.test.d.ts.map +1 -0
- package/dist/auto-memory-bridge.test.js +754 -0
- package/dist/auto-memory-bridge.test.js.map +1 -0
- package/dist/benchmark.test.d.ts +2 -0
- package/dist/benchmark.test.d.ts.map +1 -0
- package/dist/benchmark.test.js +277 -0
- package/dist/benchmark.test.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/learning-bridge.d.ts +137 -0
- package/dist/learning-bridge.d.ts.map +1 -0
- package/dist/learning-bridge.js +335 -0
- package/dist/learning-bridge.js.map +1 -0
- package/dist/learning-bridge.test.d.ts +8 -0
- package/dist/learning-bridge.test.d.ts.map +1 -0
- package/dist/learning-bridge.test.js +578 -0
- package/dist/learning-bridge.test.js.map +1 -0
- package/dist/memory-graph.d.ts +100 -0
- package/dist/memory-graph.d.ts.map +1 -0
- package/dist/memory-graph.js +333 -0
- package/dist/memory-graph.js.map +1 -0
- package/dist/memory-graph.test.d.ts +8 -0
- package/dist/memory-graph.test.d.ts.map +1 -0
- package/dist/memory-graph.test.js +609 -0
- package/dist/memory-graph.test.js.map +1 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +19 -4
- package/.agentic-flow/intelligence.json +0 -16
- package/__tests__/coverage/base.css +0 -224
- package/__tests__/coverage/block-navigation.js +0 -87
- package/__tests__/coverage/coverage-final.json +0 -19
- package/__tests__/coverage/favicon.png +0 -0
- package/__tests__/coverage/index.html +0 -206
- package/__tests__/coverage/lcov-report/base.css +0 -224
- package/__tests__/coverage/lcov-report/block-navigation.js +0 -87
- package/__tests__/coverage/lcov-report/favicon.png +0 -0
- package/__tests__/coverage/lcov-report/index.html +0 -206
- package/__tests__/coverage/lcov-report/prettify.css +0 -1
- package/__tests__/coverage/lcov-report/prettify.js +0 -2
- package/__tests__/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/__tests__/coverage/lcov-report/sorter.js +0 -210
- package/__tests__/coverage/lcov-report/src/agentdb-adapter.ts.html +0 -2737
- package/__tests__/coverage/lcov-report/src/agentdb-backend.ts.html +0 -3130
- package/__tests__/coverage/lcov-report/src/application/commands/delete-memory.command.ts.html +0 -601
- package/__tests__/coverage/lcov-report/src/application/commands/index.html +0 -131
- package/__tests__/coverage/lcov-report/src/application/commands/store-memory.command.ts.html +0 -394
- package/__tests__/coverage/lcov-report/src/application/queries/index.html +0 -116
- package/__tests__/coverage/lcov-report/src/application/queries/search-memory.query.ts.html +0 -796
- package/__tests__/coverage/lcov-report/src/application/services/index.html +0 -116
- package/__tests__/coverage/lcov-report/src/application/services/memory-application-service.ts.html +0 -793
- package/__tests__/coverage/lcov-report/src/cache-manager.ts.html +0 -1633
- package/__tests__/coverage/lcov-report/src/database-provider.ts.html +0 -1618
- package/__tests__/coverage/lcov-report/src/domain/entities/index.html +0 -116
- package/__tests__/coverage/lcov-report/src/domain/entities/memory-entry.ts.html +0 -952
- package/__tests__/coverage/lcov-report/src/domain/services/index.html +0 -116
- package/__tests__/coverage/lcov-report/src/domain/services/memory-domain-service.ts.html +0 -1294
- package/__tests__/coverage/lcov-report/src/hnsw-index.ts.html +0 -3124
- package/__tests__/coverage/lcov-report/src/hybrid-backend.ts.html +0 -2167
- package/__tests__/coverage/lcov-report/src/index.html +0 -266
- package/__tests__/coverage/lcov-report/src/infrastructure/repositories/hybrid-memory-repository.ts.html +0 -1633
- package/__tests__/coverage/lcov-report/src/infrastructure/repositories/index.html +0 -116
- package/__tests__/coverage/lcov-report/src/migration.ts.html +0 -2092
- package/__tests__/coverage/lcov-report/src/query-builder.ts.html +0 -1711
- package/__tests__/coverage/lcov-report/src/sqlite-backend.ts.html +0 -2281
- package/__tests__/coverage/lcov-report/src/sqljs-backend.ts.html +0 -2374
- package/__tests__/coverage/lcov-report/src/types.ts.html +0 -2266
- package/__tests__/coverage/lcov.info +0 -10238
- package/__tests__/coverage/prettify.css +0 -1
- package/__tests__/coverage/prettify.js +0 -2
- package/__tests__/coverage/sort-arrow-sprite.png +0 -0
- package/__tests__/coverage/sorter.js +0 -210
- package/__tests__/coverage/src/agentdb-adapter.ts.html +0 -2737
- package/__tests__/coverage/src/agentdb-backend.ts.html +0 -3130
- package/__tests__/coverage/src/application/commands/delete-memory.command.ts.html +0 -601
- package/__tests__/coverage/src/application/commands/index.html +0 -131
- package/__tests__/coverage/src/application/commands/store-memory.command.ts.html +0 -394
- package/__tests__/coverage/src/application/queries/index.html +0 -116
- package/__tests__/coverage/src/application/queries/search-memory.query.ts.html +0 -796
- package/__tests__/coverage/src/application/services/index.html +0 -116
- package/__tests__/coverage/src/application/services/memory-application-service.ts.html +0 -793
- package/__tests__/coverage/src/cache-manager.ts.html +0 -1633
- package/__tests__/coverage/src/database-provider.ts.html +0 -1618
- package/__tests__/coverage/src/domain/entities/index.html +0 -116
- package/__tests__/coverage/src/domain/entities/memory-entry.ts.html +0 -952
- package/__tests__/coverage/src/domain/services/index.html +0 -116
- package/__tests__/coverage/src/domain/services/memory-domain-service.ts.html +0 -1294
- package/__tests__/coverage/src/hnsw-index.ts.html +0 -3124
- package/__tests__/coverage/src/hybrid-backend.ts.html +0 -2167
- package/__tests__/coverage/src/index.html +0 -266
- package/__tests__/coverage/src/infrastructure/repositories/hybrid-memory-repository.ts.html +0 -1633
- package/__tests__/coverage/src/infrastructure/repositories/index.html +0 -116
- package/__tests__/coverage/src/migration.ts.html +0 -2092
- package/__tests__/coverage/src/query-builder.ts.html +0 -1711
- package/__tests__/coverage/src/sqlite-backend.ts.html +0 -2281
- package/__tests__/coverage/src/sqljs-backend.ts.html +0 -2374
- package/__tests__/coverage/src/types.ts.html +0 -2266
- package/benchmarks/cache-hit-rate.bench.ts +0 -535
- package/benchmarks/hnsw-indexing.bench.ts +0 -552
- package/benchmarks/memory-write.bench.ts +0 -469
- package/benchmarks/vector-search.bench.ts +0 -449
- package/docs/AGENTDB-INTEGRATION.md +0 -388
- package/docs/CROSS_PLATFORM.md +0 -505
- package/docs/WINDOWS_SUPPORT.md +0 -422
- package/examples/agentdb-example.ts +0 -345
- package/examples/cross-platform-usage.ts +0 -326
- package/framework/benchmark.ts +0 -112
- package/src/agentdb-adapter.ts +0 -884
- package/src/agentdb-backend.test.ts +0 -339
- package/src/agentdb-backend.ts +0 -1016
- package/src/application/commands/delete-memory.command.ts +0 -172
- package/src/application/commands/store-memory.command.ts +0 -103
- package/src/application/index.ts +0 -36
- package/src/application/queries/search-memory.query.ts +0 -237
- package/src/application/services/memory-application-service.ts +0 -236
- package/src/cache-manager.ts +0 -516
- package/src/database-provider.test.ts +0 -364
- package/src/database-provider.ts +0 -511
- package/src/domain/entities/memory-entry.ts +0 -289
- package/src/domain/index.ts +0 -35
- package/src/domain/repositories/memory-repository.interface.ts +0 -120
- package/src/domain/services/memory-domain-service.ts +0 -403
- package/src/hnsw-index.ts +0 -1013
- package/src/hybrid-backend.test.ts +0 -399
- package/src/hybrid-backend.ts +0 -694
- package/src/index.ts +0 -515
- package/src/infrastructure/index.ts +0 -23
- package/src/infrastructure/repositories/hybrid-memory-repository.ts +0 -516
- package/src/migration.ts +0 -669
- package/src/query-builder.ts +0 -542
- package/src/sqlite-backend.ts +0 -732
- package/src/sqljs-backend.ts +0 -763
- package/src/types.ts +0 -727
- package/tsconfig.json +0 -9
- package/tsconfig.tsbuildinfo +0 -1
- package/verify-cross-platform.ts +0 -170
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent-Scoped Memory - Support for Claude Code's 3-scope agent memory directories
|
|
3
|
+
*
|
|
4
|
+
* Claude Code organizes agent memory into three scopes:
|
|
5
|
+
* - **project**: Shared across all collaborators (checked into git)
|
|
6
|
+
* - **local**: Machine-specific, not shared (gitignored)
|
|
7
|
+
* - **user**: Global per-user, spans all projects
|
|
8
|
+
*
|
|
9
|
+
* Each scope stores agent-specific memory in a named subdirectory,
|
|
10
|
+
* enabling isolated yet transferable knowledge between agents.
|
|
11
|
+
*
|
|
12
|
+
* @module @claude-flow/memory/agent-memory-scope
|
|
13
|
+
*/
|
|
14
|
+
import * as path from 'node:path';
|
|
15
|
+
import { existsSync, readdirSync, statSync } from 'node:fs';
|
|
16
|
+
import { AutoMemoryBridge } from './auto-memory-bridge.js';
|
|
17
|
+
// ===== Internal Helpers =====
|
|
18
|
+
/**
|
|
19
|
+
* Find the git root directory by walking up from a starting directory.
|
|
20
|
+
* Synchronous variant for path resolution (no async needed for stat checks).
|
|
21
|
+
*/
|
|
22
|
+
function findGitRootSync(dir) {
|
|
23
|
+
let current = path.resolve(dir);
|
|
24
|
+
const root = path.parse(current).root;
|
|
25
|
+
while (current !== root) {
|
|
26
|
+
if (existsSync(path.join(current, '.git'))) {
|
|
27
|
+
return current;
|
|
28
|
+
}
|
|
29
|
+
current = path.dirname(current);
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* List agent subdirectories inside a given directory.
|
|
35
|
+
* Returns an empty array if the directory does not exist or is unreadable.
|
|
36
|
+
*/
|
|
37
|
+
function listAgentsInDir(dir) {
|
|
38
|
+
if (!existsSync(dir))
|
|
39
|
+
return [];
|
|
40
|
+
try {
|
|
41
|
+
return readdirSync(dir).filter((name) => {
|
|
42
|
+
try {
|
|
43
|
+
return statSync(path.join(dir, name)).isDirectory();
|
|
44
|
+
}
|
|
45
|
+
catch {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
catch {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
// ===== Public Functions =====
|
|
55
|
+
/**
|
|
56
|
+
* Resolve the agent memory directory for a given agent name, scope, and working directory.
|
|
57
|
+
*
|
|
58
|
+
* Path resolution matches Claude Code binary behavior:
|
|
59
|
+
* ```
|
|
60
|
+
* project: <gitRoot>/.claude/agent-memory/<agentName>/
|
|
61
|
+
* local: <gitRoot>/.claude/agent-memory-local/<agentName>/
|
|
62
|
+
* user: ~/.claude/agent-memory/<agentName>/
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* Agent names are sanitized to prevent path traversal attacks.
|
|
66
|
+
*
|
|
67
|
+
* @param agentName - The agent identifier
|
|
68
|
+
* @param scope - Memory scope: project, local, or user
|
|
69
|
+
* @param workingDir - Working directory for git root detection (defaults to cwd)
|
|
70
|
+
* @returns Absolute path to the agent's memory directory
|
|
71
|
+
*/
|
|
72
|
+
export function resolveAgentMemoryDir(agentName, scope, workingDir) {
|
|
73
|
+
// Sanitize agent name to prevent path traversal
|
|
74
|
+
const safeName = agentName.replace(/[^a-zA-Z0-9_-]/g, '_');
|
|
75
|
+
if (scope === 'user') {
|
|
76
|
+
const home = process.env.HOME || process.env.USERPROFILE || '~';
|
|
77
|
+
return path.join(home, '.claude', 'agent-memory', safeName);
|
|
78
|
+
}
|
|
79
|
+
// For project and local scopes, find git root
|
|
80
|
+
const effectiveDir = workingDir || process.cwd();
|
|
81
|
+
const gitRoot = findGitRootSync(effectiveDir);
|
|
82
|
+
const baseDir = gitRoot || effectiveDir;
|
|
83
|
+
if (scope === 'local') {
|
|
84
|
+
return path.join(baseDir, '.claude', 'agent-memory-local', safeName);
|
|
85
|
+
}
|
|
86
|
+
// scope === 'project'
|
|
87
|
+
return path.join(baseDir, '.claude', 'agent-memory', safeName);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Create an AutoMemoryBridge configured for a specific agent scope.
|
|
91
|
+
*
|
|
92
|
+
* This is the primary factory for creating scoped bridges. It resolves
|
|
93
|
+
* the correct memory directory based on agent name and scope, then
|
|
94
|
+
* delegates to AutoMemoryBridge for the actual sync logic.
|
|
95
|
+
*
|
|
96
|
+
* @param backend - The AgentDB memory backend
|
|
97
|
+
* @param config - Agent-scoped configuration
|
|
98
|
+
* @returns A configured AutoMemoryBridge instance
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```typescript
|
|
102
|
+
* const bridge = createAgentBridge(backend, {
|
|
103
|
+
* agentName: 'coder',
|
|
104
|
+
* scope: 'project',
|
|
105
|
+
* syncMode: 'on-write',
|
|
106
|
+
* });
|
|
107
|
+
* await bridge.recordInsight({ ... });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export function createAgentBridge(backend, config) {
|
|
111
|
+
const memoryDir = resolveAgentMemoryDir(config.agentName, config.scope, config.workingDir);
|
|
112
|
+
return new AutoMemoryBridge(backend, {
|
|
113
|
+
...config,
|
|
114
|
+
memoryDir,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Transfer knowledge from a source backend namespace into a target bridge.
|
|
119
|
+
*
|
|
120
|
+
* Queries high-confidence entries from the source and records them as
|
|
121
|
+
* insights in the target bridge. Useful for cross-agent knowledge sharing
|
|
122
|
+
* or promoting learnings from one scope to another.
|
|
123
|
+
*
|
|
124
|
+
* @param sourceBackend - Backend to query entries from
|
|
125
|
+
* @param targetBridge - Bridge to record insights into
|
|
126
|
+
* @param options - Transfer options (namespace, filters, limits)
|
|
127
|
+
* @returns Transfer result with counts of transferred and skipped entries
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```typescript
|
|
131
|
+
* const result = await transferKnowledge(sourceBackend, targetBridge, {
|
|
132
|
+
* sourceNamespace: 'learnings',
|
|
133
|
+
* minConfidence: 0.9,
|
|
134
|
+
* maxEntries: 10,
|
|
135
|
+
* categories: ['architecture', 'security'],
|
|
136
|
+
* });
|
|
137
|
+
* console.log(`Transferred ${result.transferred}, skipped ${result.skipped}`);
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
export async function transferKnowledge(sourceBackend, targetBridge, options) {
|
|
141
|
+
const { sourceNamespace, minConfidence = 0.8, maxEntries = 20, categories, } = options;
|
|
142
|
+
let transferred = 0;
|
|
143
|
+
let skipped = 0;
|
|
144
|
+
// Query high-confidence entries from source (fetch extra to allow for filtering)
|
|
145
|
+
const entries = await sourceBackend.query({
|
|
146
|
+
type: 'hybrid',
|
|
147
|
+
namespace: sourceNamespace,
|
|
148
|
+
tags: ['insight'],
|
|
149
|
+
limit: maxEntries * 2,
|
|
150
|
+
});
|
|
151
|
+
for (const entry of entries) {
|
|
152
|
+
if (transferred >= maxEntries)
|
|
153
|
+
break;
|
|
154
|
+
const confidence = entry.metadata?.confidence || 0;
|
|
155
|
+
if (confidence < minConfidence) {
|
|
156
|
+
skipped++;
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
// Filter by category if specified
|
|
160
|
+
const entryCategory = entry.metadata?.category;
|
|
161
|
+
if (categories &&
|
|
162
|
+
categories.length > 0 &&
|
|
163
|
+
entryCategory &&
|
|
164
|
+
!categories.includes(entryCategory)) {
|
|
165
|
+
skipped++;
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
// Record as insight in target bridge
|
|
169
|
+
const insight = {
|
|
170
|
+
category: entryCategory || 'project-patterns',
|
|
171
|
+
summary: entry.metadata?.summary || entry.content.split('\n')[0],
|
|
172
|
+
detail: entry.content,
|
|
173
|
+
source: `transfer:${sourceNamespace}`,
|
|
174
|
+
confidence,
|
|
175
|
+
agentDbId: entry.id,
|
|
176
|
+
};
|
|
177
|
+
await targetBridge.recordInsight(insight);
|
|
178
|
+
transferred++;
|
|
179
|
+
}
|
|
180
|
+
return { transferred, skipped };
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* List all agent scopes and their agents for the current project.
|
|
184
|
+
*
|
|
185
|
+
* Scans the three scope directories (project, local, user) and returns
|
|
186
|
+
* the agent names found in each. Useful for discovery and diagnostics.
|
|
187
|
+
*
|
|
188
|
+
* @param workingDir - Working directory for git root detection (defaults to cwd)
|
|
189
|
+
* @returns Array of scope/agents pairs
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* ```typescript
|
|
193
|
+
* const scopes = listAgentScopes('/workspaces/my-project');
|
|
194
|
+
* // [
|
|
195
|
+
* // { scope: 'project', agents: ['coder', 'tester'] },
|
|
196
|
+
* // { scope: 'local', agents: ['researcher'] },
|
|
197
|
+
* // { scope: 'user', agents: ['planner'] },
|
|
198
|
+
* // ]
|
|
199
|
+
* ```
|
|
200
|
+
*/
|
|
201
|
+
export function listAgentScopes(workingDir) {
|
|
202
|
+
const effectiveDir = workingDir || process.cwd();
|
|
203
|
+
const gitRoot = findGitRootSync(effectiveDir);
|
|
204
|
+
const baseDir = gitRoot || effectiveDir;
|
|
205
|
+
const home = process.env.HOME || process.env.USERPROFILE || '~';
|
|
206
|
+
const projectDir = path.join(baseDir, '.claude', 'agent-memory');
|
|
207
|
+
const localDir = path.join(baseDir, '.claude', 'agent-memory-local');
|
|
208
|
+
const userDir = path.join(home, '.claude', 'agent-memory');
|
|
209
|
+
return [
|
|
210
|
+
{ scope: 'project', agents: listAgentsInDir(projectDir) },
|
|
211
|
+
{ scope: 'local', agents: listAgentsInDir(localDir) },
|
|
212
|
+
{ scope: 'user', agents: listAgentsInDir(userDir) },
|
|
213
|
+
];
|
|
214
|
+
}
|
|
215
|
+
//# sourceMappingURL=agent-memory-scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-memory-scope.js","sourceRoot":"","sources":["../src/agent-memory-scope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAwC3D,+BAA+B;AAE/B;;;GAGG;AACH,SAAS,eAAe,CAAC,GAAW;IAClC,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC;IAEtC,OAAO,OAAO,KAAK,IAAI,EAAE,CAAC;QACxB,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC;YAC3C,OAAO,OAAO,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;GAGG;AACH,SAAS,eAAe,CAAC,GAAW;IAClC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,EAAE,CAAC;IAChC,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;YACtC,IAAI,CAAC;gBACH,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,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