@psiclawops/hypermem 0.5.0 → 0.5.2

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.
Files changed (163) hide show
  1. package/ARCHITECTURE.md +12 -3
  2. package/README.md +30 -6
  3. package/bin/hypermem-status.mjs +166 -0
  4. package/dist/background-indexer.d.ts +132 -0
  5. package/dist/background-indexer.d.ts.map +1 -0
  6. package/dist/background-indexer.js +1044 -0
  7. package/dist/cache.d.ts +110 -0
  8. package/dist/cache.d.ts.map +1 -0
  9. package/dist/cache.js +495 -0
  10. package/dist/compaction-fence.d.ts +89 -0
  11. package/dist/compaction-fence.d.ts.map +1 -0
  12. package/dist/compaction-fence.js +153 -0
  13. package/dist/compositor.d.ts +226 -0
  14. package/dist/compositor.d.ts.map +1 -0
  15. package/dist/compositor.js +2558 -0
  16. package/dist/content-type-classifier.d.ts +41 -0
  17. package/dist/content-type-classifier.d.ts.map +1 -0
  18. package/dist/content-type-classifier.js +181 -0
  19. package/dist/cross-agent.d.ts +62 -0
  20. package/dist/cross-agent.d.ts.map +1 -0
  21. package/dist/cross-agent.js +259 -0
  22. package/dist/db.d.ts +131 -0
  23. package/dist/db.d.ts.map +1 -0
  24. package/dist/db.js +402 -0
  25. package/dist/desired-state-store.d.ts +100 -0
  26. package/dist/desired-state-store.d.ts.map +1 -0
  27. package/dist/desired-state-store.js +222 -0
  28. package/dist/doc-chunk-store.d.ts +140 -0
  29. package/dist/doc-chunk-store.d.ts.map +1 -0
  30. package/dist/doc-chunk-store.js +391 -0
  31. package/dist/doc-chunker.d.ts +99 -0
  32. package/dist/doc-chunker.d.ts.map +1 -0
  33. package/dist/doc-chunker.js +324 -0
  34. package/dist/dreaming-promoter.d.ts +86 -0
  35. package/dist/dreaming-promoter.d.ts.map +1 -0
  36. package/dist/dreaming-promoter.js +381 -0
  37. package/dist/episode-store.d.ts +49 -0
  38. package/dist/episode-store.d.ts.map +1 -0
  39. package/dist/episode-store.js +135 -0
  40. package/dist/fact-store.d.ts +75 -0
  41. package/dist/fact-store.d.ts.map +1 -0
  42. package/dist/fact-store.js +236 -0
  43. package/dist/fleet-store.d.ts +144 -0
  44. package/dist/fleet-store.d.ts.map +1 -0
  45. package/dist/fleet-store.js +276 -0
  46. package/dist/fos-mod.d.ts +178 -0
  47. package/dist/fos-mod.d.ts.map +1 -0
  48. package/dist/fos-mod.js +416 -0
  49. package/dist/hybrid-retrieval.d.ts +64 -0
  50. package/dist/hybrid-retrieval.d.ts.map +1 -0
  51. package/dist/hybrid-retrieval.js +344 -0
  52. package/dist/image-eviction.d.ts +49 -0
  53. package/dist/image-eviction.d.ts.map +1 -0
  54. package/dist/image-eviction.js +251 -0
  55. package/dist/index.d.ts +650 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +1072 -0
  58. package/dist/keystone-scorer.d.ts +51 -0
  59. package/dist/keystone-scorer.d.ts.map +1 -0
  60. package/dist/keystone-scorer.js +52 -0
  61. package/dist/knowledge-graph.d.ts +110 -0
  62. package/dist/knowledge-graph.d.ts.map +1 -0
  63. package/dist/knowledge-graph.js +305 -0
  64. package/dist/knowledge-lint.d.ts +29 -0
  65. package/dist/knowledge-lint.d.ts.map +1 -0
  66. package/dist/knowledge-lint.js +116 -0
  67. package/dist/knowledge-store.d.ts +72 -0
  68. package/dist/knowledge-store.d.ts.map +1 -0
  69. package/dist/knowledge-store.js +247 -0
  70. package/dist/library-schema.d.ts +22 -0
  71. package/dist/library-schema.d.ts.map +1 -0
  72. package/dist/library-schema.js +1038 -0
  73. package/dist/message-store.d.ts +89 -0
  74. package/dist/message-store.d.ts.map +1 -0
  75. package/dist/message-store.js +323 -0
  76. package/dist/metrics-dashboard.d.ts +114 -0
  77. package/dist/metrics-dashboard.d.ts.map +1 -0
  78. package/dist/metrics-dashboard.js +260 -0
  79. package/dist/obsidian-exporter.d.ts +57 -0
  80. package/dist/obsidian-exporter.d.ts.map +1 -0
  81. package/dist/obsidian-exporter.js +274 -0
  82. package/dist/obsidian-watcher.d.ts +147 -0
  83. package/dist/obsidian-watcher.d.ts.map +1 -0
  84. package/dist/obsidian-watcher.js +403 -0
  85. package/dist/open-domain.d.ts +46 -0
  86. package/dist/open-domain.d.ts.map +1 -0
  87. package/dist/open-domain.js +125 -0
  88. package/dist/preference-store.d.ts +54 -0
  89. package/dist/preference-store.d.ts.map +1 -0
  90. package/dist/preference-store.js +109 -0
  91. package/dist/preservation-gate.d.ts +82 -0
  92. package/dist/preservation-gate.d.ts.map +1 -0
  93. package/dist/preservation-gate.js +150 -0
  94. package/dist/proactive-pass.d.ts +63 -0
  95. package/dist/proactive-pass.d.ts.map +1 -0
  96. package/dist/proactive-pass.js +239 -0
  97. package/dist/profiles.d.ts +44 -0
  98. package/dist/profiles.d.ts.map +1 -0
  99. package/dist/profiles.js +227 -0
  100. package/dist/provider-translator.d.ts +50 -0
  101. package/dist/provider-translator.d.ts.map +1 -0
  102. package/dist/provider-translator.js +403 -0
  103. package/dist/rate-limiter.d.ts +76 -0
  104. package/dist/rate-limiter.d.ts.map +1 -0
  105. package/dist/rate-limiter.js +179 -0
  106. package/dist/repair-tool-pairs.d.ts +38 -0
  107. package/dist/repair-tool-pairs.d.ts.map +1 -0
  108. package/dist/repair-tool-pairs.js +138 -0
  109. package/dist/retrieval-policy.d.ts +51 -0
  110. package/dist/retrieval-policy.d.ts.map +1 -0
  111. package/dist/retrieval-policy.js +77 -0
  112. package/dist/schema.d.ts +15 -0
  113. package/dist/schema.d.ts.map +1 -0
  114. package/dist/schema.js +229 -0
  115. package/dist/secret-scanner.d.ts +51 -0
  116. package/dist/secret-scanner.d.ts.map +1 -0
  117. package/dist/secret-scanner.js +248 -0
  118. package/dist/seed.d.ts +108 -0
  119. package/dist/seed.d.ts.map +1 -0
  120. package/dist/seed.js +177 -0
  121. package/dist/session-flusher.d.ts +53 -0
  122. package/dist/session-flusher.d.ts.map +1 -0
  123. package/dist/session-flusher.js +69 -0
  124. package/dist/session-topic-map.d.ts +41 -0
  125. package/dist/session-topic-map.d.ts.map +1 -0
  126. package/dist/session-topic-map.js +77 -0
  127. package/dist/spawn-context.d.ts +54 -0
  128. package/dist/spawn-context.d.ts.map +1 -0
  129. package/dist/spawn-context.js +159 -0
  130. package/dist/system-store.d.ts +73 -0
  131. package/dist/system-store.d.ts.map +1 -0
  132. package/dist/system-store.js +182 -0
  133. package/dist/temporal-store.d.ts +80 -0
  134. package/dist/temporal-store.d.ts.map +1 -0
  135. package/dist/temporal-store.js +149 -0
  136. package/dist/topic-detector.d.ts +35 -0
  137. package/dist/topic-detector.d.ts.map +1 -0
  138. package/dist/topic-detector.js +249 -0
  139. package/dist/topic-store.d.ts +45 -0
  140. package/dist/topic-store.d.ts.map +1 -0
  141. package/dist/topic-store.js +136 -0
  142. package/dist/topic-synthesizer.d.ts +51 -0
  143. package/dist/topic-synthesizer.d.ts.map +1 -0
  144. package/dist/topic-synthesizer.js +315 -0
  145. package/dist/trigger-registry.d.ts +63 -0
  146. package/dist/trigger-registry.d.ts.map +1 -0
  147. package/dist/trigger-registry.js +163 -0
  148. package/dist/types.d.ts +537 -0
  149. package/dist/types.d.ts.map +1 -0
  150. package/dist/types.js +9 -0
  151. package/dist/vector-store.d.ts +170 -0
  152. package/dist/vector-store.d.ts.map +1 -0
  153. package/dist/vector-store.js +677 -0
  154. package/dist/version.d.ts +34 -0
  155. package/dist/version.d.ts.map +1 -0
  156. package/dist/version.js +34 -0
  157. package/dist/wiki-page-emitter.d.ts +65 -0
  158. package/dist/wiki-page-emitter.d.ts.map +1 -0
  159. package/dist/wiki-page-emitter.js +258 -0
  160. package/dist/work-store.d.ts +112 -0
  161. package/dist/work-store.d.ts.map +1 -0
  162. package/dist/work-store.js +273 -0
  163. package/package.json +4 -1
@@ -0,0 +1,222 @@
1
+ /**
2
+ * hypermem Agent Desired State Store
3
+ *
4
+ * Stores intended configuration for each agent and tracks drift.
5
+ * Enables fleet-wide config visibility and enforcement.
6
+ *
7
+ * Config keys are dot-path strings matching openclaw.json structure:
8
+ * model, thinkingDefault, provider, workspace, tools.exec.host, etc.
9
+ *
10
+ * Drift statuses:
11
+ * - 'ok' — actual matches desired
12
+ * - 'drifted' — actual differs from desired
13
+ * - 'unknown' — not yet checked
14
+ * - 'error' — check failed
15
+ */
16
+ function nowIso() {
17
+ return new Date().toISOString();
18
+ }
19
+ function tryParseJson(val) {
20
+ try {
21
+ return JSON.parse(val);
22
+ }
23
+ catch {
24
+ // Value is a bare string (e.g. model names like "copilot-local/claude-sonnet-4.6")
25
+ // stored without JSON quoting — return as-is.
26
+ return val;
27
+ }
28
+ }
29
+ function parseEntry(row) {
30
+ return {
31
+ agentId: row.agent_id,
32
+ configKey: row.config_key,
33
+ desiredValue: row.desired_value ? tryParseJson(row.desired_value) : null,
34
+ actualValue: row.actual_value ? tryParseJson(row.actual_value) : null,
35
+ source: row.source,
36
+ setBy: row.set_by || null,
37
+ driftStatus: row.drift_status || 'unknown',
38
+ lastChecked: row.last_checked || null,
39
+ createdAt: row.created_at,
40
+ updatedAt: row.updated_at,
41
+ notes: row.notes || null,
42
+ };
43
+ }
44
+ function parseEvent(row) {
45
+ return {
46
+ id: row.id,
47
+ agentId: row.agent_id,
48
+ configKey: row.config_key,
49
+ eventType: row.event_type,
50
+ oldValue: row.old_value ? tryParseJson(row.old_value) : null,
51
+ newValue: row.new_value ? tryParseJson(row.new_value) : null,
52
+ changedBy: row.changed_by || null,
53
+ createdAt: row.created_at,
54
+ };
55
+ }
56
+ export class DesiredStateStore {
57
+ db;
58
+ constructor(db) {
59
+ this.db = db;
60
+ }
61
+ /**
62
+ * Set desired state for a config key on an agent.
63
+ */
64
+ setDesired(agentId, configKey, desiredValue, opts) {
65
+ const now = nowIso();
66
+ const valueJson = JSON.stringify(desiredValue);
67
+ const existing = this.getEntry(agentId, configKey);
68
+ if (existing) {
69
+ // Record change event
70
+ this.db.prepare(`
71
+ INSERT INTO agent_config_events (agent_id, config_key, event_type, old_value, new_value, changed_by, created_at)
72
+ VALUES (?, ?, 'desired_changed', ?, ?, ?, ?)
73
+ `).run(agentId, configKey, JSON.stringify(existing.desiredValue), valueJson, opts?.setBy || null, now);
74
+ this.db.prepare(`
75
+ UPDATE agent_desired_state SET
76
+ desired_value = ?,
77
+ source = COALESCE(?, source),
78
+ set_by = COALESCE(?, set_by),
79
+ drift_status = 'unknown',
80
+ notes = COALESCE(?, notes),
81
+ updated_at = ?
82
+ WHERE agent_id = ? AND config_key = ?
83
+ `).run(valueJson, opts?.source || null, opts?.setBy || null, opts?.notes || null, now, agentId, configKey);
84
+ }
85
+ else {
86
+ this.db.prepare(`
87
+ INSERT INTO agent_desired_state (agent_id, config_key, desired_value, source, set_by, drift_status, created_at, updated_at, notes)
88
+ VALUES (?, ?, ?, ?, ?, 'unknown', ?, ?, ?)
89
+ `).run(agentId, configKey, valueJson, opts?.source || 'operator', opts?.setBy || null, now, now, opts?.notes || null);
90
+ // Record creation event
91
+ this.db.prepare(`
92
+ INSERT INTO agent_config_events (agent_id, config_key, event_type, new_value, changed_by, created_at)
93
+ VALUES (?, ?, 'desired_set', ?, ?, ?)
94
+ `).run(agentId, configKey, valueJson, opts?.setBy || null, now);
95
+ }
96
+ return this.getEntry(agentId, configKey);
97
+ }
98
+ /**
99
+ * Report actual state observed at runtime.
100
+ * Compares against desired and updates drift status.
101
+ */
102
+ reportActual(agentId, configKey, actualValue) {
103
+ const now = nowIso();
104
+ const actualJson = JSON.stringify(actualValue);
105
+ const entry = this.getEntry(agentId, configKey);
106
+ if (!entry)
107
+ return 'unknown';
108
+ const desiredJson = JSON.stringify(entry.desiredValue);
109
+ const driftStatus = actualJson === desiredJson ? 'ok' : 'drifted';
110
+ this.db.prepare(`
111
+ UPDATE agent_desired_state SET
112
+ actual_value = ?,
113
+ drift_status = ?,
114
+ last_checked = ?,
115
+ updated_at = ?
116
+ WHERE agent_id = ? AND config_key = ?
117
+ `).run(actualJson, driftStatus, now, now, agentId, configKey);
118
+ if (driftStatus === 'drifted' && actualJson !== JSON.stringify(entry.actualValue)) {
119
+ this.db.prepare(`
120
+ INSERT INTO agent_config_events (agent_id, config_key, event_type, old_value, new_value, changed_by, created_at)
121
+ VALUES (?, ?, 'drift_detected', ?, ?, 'system', ?)
122
+ `).run(agentId, configKey, JSON.stringify(entry.actualValue), actualJson, now);
123
+ }
124
+ return driftStatus;
125
+ }
126
+ /**
127
+ * Bulk report actual state for an agent (e.g., on heartbeat).
128
+ */
129
+ reportActualBulk(agentId, actuals) {
130
+ const results = {};
131
+ for (const [key, value] of Object.entries(actuals)) {
132
+ results[key] = this.reportActual(agentId, key, value);
133
+ }
134
+ return results;
135
+ }
136
+ /**
137
+ * Get a specific desired state entry.
138
+ */
139
+ getEntry(agentId, configKey) {
140
+ const row = this.db.prepare('SELECT * FROM agent_desired_state WHERE agent_id = ? AND config_key = ?').get(agentId, configKey);
141
+ return row ? parseEntry(row) : null;
142
+ }
143
+ /**
144
+ * Get all desired state for an agent.
145
+ */
146
+ getAgentState(agentId) {
147
+ const rows = this.db.prepare('SELECT * FROM agent_desired_state WHERE agent_id = ? ORDER BY config_key').all(agentId);
148
+ return rows.map(parseEntry);
149
+ }
150
+ /**
151
+ * Get desired state as a flat config object (key → value).
152
+ */
153
+ getAgentConfig(agentId) {
154
+ const entries = this.getAgentState(agentId);
155
+ const config = {};
156
+ for (const entry of entries) {
157
+ config[entry.configKey] = entry.desiredValue;
158
+ }
159
+ return config;
160
+ }
161
+ /**
162
+ * Get all drifted entries across the fleet.
163
+ */
164
+ getDrifted() {
165
+ const rows = this.db.prepare("SELECT * FROM agent_desired_state WHERE drift_status = 'drifted' ORDER BY agent_id, config_key").all();
166
+ return rows.map(parseEntry);
167
+ }
168
+ /**
169
+ * Get fleet-wide view of a specific config key.
170
+ */
171
+ getFleetConfig(configKey) {
172
+ const rows = this.db.prepare('SELECT * FROM agent_desired_state WHERE config_key = ? ORDER BY agent_id').all(configKey);
173
+ return rows.map(parseEntry);
174
+ }
175
+ /**
176
+ * Get config change history for an agent/key.
177
+ */
178
+ getHistory(agentId, configKey, limit = 20) {
179
+ let sql = 'SELECT * FROM agent_config_events WHERE agent_id = ?';
180
+ const params = [agentId];
181
+ if (configKey) {
182
+ sql += ' AND config_key = ?';
183
+ params.push(configKey);
184
+ }
185
+ sql += ' ORDER BY created_at DESC LIMIT ?';
186
+ params.push(limit);
187
+ const rows = this.db.prepare(sql).all(...params);
188
+ return rows.map(parseEvent);
189
+ }
190
+ /**
191
+ * Remove a desired state entry.
192
+ */
193
+ removeDesired(agentId, configKey, removedBy) {
194
+ const now = nowIso();
195
+ const existing = this.getEntry(agentId, configKey);
196
+ if (existing) {
197
+ this.db.prepare(`
198
+ INSERT INTO agent_config_events (agent_id, config_key, event_type, old_value, changed_by, created_at)
199
+ VALUES (?, ?, 'desired_removed', ?, ?, ?)
200
+ `).run(agentId, configKey, JSON.stringify(existing.desiredValue), removedBy || null, now);
201
+ this.db.prepare('DELETE FROM agent_desired_state WHERE agent_id = ? AND config_key = ?').run(agentId, configKey);
202
+ }
203
+ }
204
+ /**
205
+ * Get fleet drift summary.
206
+ */
207
+ getDriftSummary() {
208
+ const rows = this.db.prepare(`
209
+ SELECT drift_status, COUNT(*) as count FROM agent_desired_state GROUP BY drift_status
210
+ `).all();
211
+ const summary = { total: 0, ok: 0, drifted: 0, unknown: 0, error: 0 };
212
+ for (const row of rows) {
213
+ const count = row.count;
214
+ summary.total += count;
215
+ if (row.drift_status in summary) {
216
+ summary[row.drift_status] = count;
217
+ }
218
+ }
219
+ return summary;
220
+ }
221
+ }
222
+ //# sourceMappingURL=desired-state-store.js.map
@@ -0,0 +1,140 @@
1
+ /**
2
+ * hypermem Document Chunk Store
3
+ *
4
+ * Manages doc_chunks in library.db:
5
+ * - Atomic re-indexing by source hash (no stale/fresh coexistence)
6
+ * - FTS5 keyword search fallback
7
+ * - Collection-scoped queries with agent/tier filtering
8
+ * - Source tracking (what's indexed, when, what hash)
9
+ */
10
+ import type { DatabaseSync } from 'node:sqlite';
11
+ import type { DocChunk } from './doc-chunker.js';
12
+ export interface DocChunkRow {
13
+ id: string;
14
+ collection: string;
15
+ sectionPath: string;
16
+ depth: number;
17
+ content: string;
18
+ tokenEstimate: number;
19
+ sourceHash: string;
20
+ sourcePath: string;
21
+ scope: string;
22
+ tier: string | null;
23
+ agentId: string | null;
24
+ parentPath: string | null;
25
+ createdAt: string;
26
+ updatedAt: string;
27
+ }
28
+ export interface DocSourceRow {
29
+ sourcePath: string;
30
+ collection: string;
31
+ scope: string;
32
+ agentId: string | null;
33
+ sourceHash: string;
34
+ chunkCount: number;
35
+ indexedAt: string;
36
+ }
37
+ export interface IndexResult {
38
+ /** Number of new chunks inserted */
39
+ inserted: number;
40
+ /** Number of stale chunks deleted (from prior version) */
41
+ deleted: number;
42
+ /** Whether this was a full re-index (hash changed) or a no-op (hash unchanged) */
43
+ reindexed: boolean;
44
+ /** Whether this source was already up-to-date */
45
+ skipped: boolean;
46
+ }
47
+ export interface ChunkQuery {
48
+ /** Collection path to query */
49
+ collection: string;
50
+ /** Filter by scope */
51
+ scope?: string;
52
+ /** Filter by agent ID (for per-agent chunks) */
53
+ agentId?: string;
54
+ /** Filter by tier (for per-tier chunks) */
55
+ tier?: string;
56
+ /** Max number of chunks to return */
57
+ limit?: number;
58
+ /** Keyword search (FTS5) */
59
+ keyword?: string;
60
+ }
61
+ export declare class DocChunkStore {
62
+ private db;
63
+ constructor(db: DatabaseSync);
64
+ /**
65
+ * Index a set of chunks for a source file.
66
+ *
67
+ * Atomic re-indexing:
68
+ * 1. Check if source_hash has changed
69
+ * 2. If unchanged: skip (idempotent)
70
+ * 3. If changed: delete all chunks with old hash, insert new chunks — in one transaction
71
+ *
72
+ * This ensures no window where stale and fresh chunks coexist.
73
+ */
74
+ indexChunks(chunks: DocChunk[]): IndexResult;
75
+ /**
76
+ * Query chunks by collection with optional filters.
77
+ * Falls back to FTS5 keyword search when keyword is provided.
78
+ */
79
+ queryChunks(query: ChunkQuery): DocChunkRow[];
80
+ /**
81
+ * FTS5 keyword search across chunks.
82
+ */
83
+ keywordSearch(keyword: string, query: Omit<ChunkQuery, 'keyword'>): DocChunkRow[];
84
+ /**
85
+ * Get a single chunk by ID.
86
+ */
87
+ getChunk(id: string): DocChunkRow | null;
88
+ /**
89
+ * Check if a source file needs re-indexing.
90
+ * Returns true if the file has changed or has never been indexed.
91
+ */
92
+ needsReindex(sourcePath: string, collection: string, currentHash: string): boolean;
93
+ /**
94
+ * List all indexed sources, optionally filtered by agent or collection.
95
+ */
96
+ listSources(opts?: {
97
+ agentId?: string;
98
+ collection?: string;
99
+ }): DocSourceRow[];
100
+ /**
101
+ * Delete all chunks for a specific source file.
102
+ */
103
+ deleteSource(sourcePath: string, collection: string): number;
104
+ /**
105
+ * Index simple string chunks with an optional session key (for ephemeral spawn context).
106
+ *
107
+ * Unlike indexChunks() which works with DocChunk objects and hash-based dedup,
108
+ * this method is designed for ad-hoc session-scoped content: it always inserts fresh
109
+ * rows tagged with the sessionKey, without hash-based skip logic.
110
+ *
111
+ * Chunks stored with a sessionKey are ephemeral — use clearSessionChunks() to remove them.
112
+ */
113
+ indexDocChunks(agentId: string, source: string, chunks: string[], options?: {
114
+ sessionKey?: string;
115
+ }): void;
116
+ /**
117
+ * Query doc chunks by agentId+query string, with optional session key scoping.
118
+ * When sessionKey is provided, only chunks tagged with that session key are returned.
119
+ */
120
+ queryDocChunks(agentId: string, query: string, options?: {
121
+ sessionKey?: string;
122
+ limit?: number;
123
+ }): DocChunkRow[];
124
+ /**
125
+ * Delete all doc chunks associated with a specific session key.
126
+ * Call this when a spawn session is complete to release ephemeral storage.
127
+ */
128
+ clearSessionChunks(sessionKey: string): number;
129
+ /**
130
+ * Get chunk stats: count per collection.
131
+ */
132
+ getStats(): Array<{
133
+ collection: string;
134
+ count: number;
135
+ sources: number;
136
+ totalTokens: number;
137
+ }>;
138
+ private mapRow;
139
+ }
140
+ //# sourceMappingURL=doc-chunk-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doc-chunk-store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