@j0hanz/filesystem-context-mcp 1.2.3 → 1.2.5
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/__tests__/lib/file-operations.test.js +0 -17
- package/dist/__tests__/lib/file-operations.test.js.map +1 -1
- package/dist/lib/file-operations/list-directory-helpers.d.ts +28 -0
- package/dist/lib/file-operations/list-directory-helpers.d.ts.map +1 -0
- package/dist/lib/file-operations/list-directory-helpers.js +159 -0
- package/dist/lib/file-operations/list-directory-helpers.js.map +1 -0
- package/dist/lib/file-operations/list-directory.d.ts.map +1 -1
- package/dist/lib/file-operations/list-directory.js +3 -157
- package/dist/lib/file-operations/list-directory.js.map +1 -1
- package/dist/lib/file-operations/read-multiple-files.d.ts +0 -2
- package/dist/lib/file-operations/read-multiple-files.d.ts.map +1 -1
- package/dist/lib/file-operations/read-multiple-files.js +2 -26
- package/dist/lib/file-operations/read-multiple-files.js.map +1 -1
- package/dist/lib/file-operations/search/engine.d.ts +17 -25
- package/dist/lib/file-operations/search/engine.d.ts.map +1 -1
- package/dist/lib/file-operations/search/engine.js +161 -165
- package/dist/lib/file-operations/search/engine.js.map +1 -1
- package/dist/lib/file-operations/search/file-processor.d.ts +2 -14
- package/dist/lib/file-operations/search/file-processor.d.ts.map +1 -1
- package/dist/lib/file-operations/search/file-processor.js +93 -102
- package/dist/lib/file-operations/search/file-processor.js.map +1 -1
- package/dist/lib/file-operations/search/match-strategy.d.ts +3 -21
- package/dist/lib/file-operations/search/match-strategy.d.ts.map +1 -1
- package/dist/lib/file-operations/search/match-strategy.js +36 -50
- package/dist/lib/file-operations/search/match-strategy.js.map +1 -1
- package/dist/lib/file-operations/search-content.d.ts.map +1 -1
- package/dist/lib/file-operations/search-content.js +2 -3
- package/dist/lib/file-operations/search-content.js.map +1 -1
- package/dist/schemas/inputs.d.ts +0 -2
- package/dist/schemas/inputs.d.ts.map +1 -1
- package/dist/schemas/inputs.js +0 -2
- package/dist/schemas/inputs.js.map +1 -1
- package/dist/tools/read-multiple-files.d.ts.map +1 -1
- package/dist/tools/read-multiple-files.js +0 -2
- package/dist/tools/read-multiple-files.js.map +1 -1
- package/dist/tools/search-content.d.ts.map +1 -1
- package/dist/tools/search-content.js +1 -111
- package/dist/tools/search-content.js.map +1 -1
- package/dist/tools/shared/search-formatting.d.ts +8 -0
- package/dist/tools/shared/search-formatting.d.ts.map +1 -0
- package/dist/tools/shared/search-formatting.js +112 -0
- package/dist/tools/shared/search-formatting.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,118 +1,8 @@
|
|
|
1
|
-
import * as pathModule from 'node:path';
|
|
2
1
|
import { createErrorResponse, ErrorCode } from '../lib/errors.js';
|
|
3
2
|
import { searchContent } from '../lib/file-operations.js';
|
|
4
3
|
import { SearchContentInputSchema, SearchContentOutputSchema, } from '../schemas/index.js';
|
|
4
|
+
import { buildStructuredResult, buildTextResult, } from './shared/search-formatting.js';
|
|
5
5
|
import { buildToolResponse } from './tool-response.js';
|
|
6
|
-
const LINE_NUMBER_PAD_WIDTH = 4;
|
|
7
|
-
function formatContentMatches(matches) {
|
|
8
|
-
if (matches.length === 0)
|
|
9
|
-
return 'No matches found';
|
|
10
|
-
const byFile = new Map();
|
|
11
|
-
for (const match of matches) {
|
|
12
|
-
const list = byFile.get(match.file) ?? [];
|
|
13
|
-
list.push(match);
|
|
14
|
-
byFile.set(match.file, list);
|
|
15
|
-
}
|
|
16
|
-
const formatContext = (context, startLine) => (context ?? []).map((line, idx) => ` ${String(startLine + idx).padStart(LINE_NUMBER_PAD_WIDTH)}: ${line}`);
|
|
17
|
-
const lines = [`Found ${matches.length} matches:`, ''];
|
|
18
|
-
for (const [file, fileMatches] of byFile) {
|
|
19
|
-
lines.push(`${file}:`);
|
|
20
|
-
for (const match of fileMatches) {
|
|
21
|
-
const before = formatContext(match.contextBefore, match.line - (match.contextBefore?.length ?? 0));
|
|
22
|
-
const after = formatContext(match.contextAfter, match.line + 1);
|
|
23
|
-
lines.push(...before);
|
|
24
|
-
lines.push(` > ${String(match.line).padStart(LINE_NUMBER_PAD_WIDTH)}: ${match.content}`);
|
|
25
|
-
lines.push(...after);
|
|
26
|
-
if (before.length || after.length)
|
|
27
|
-
lines.push(' ---');
|
|
28
|
-
}
|
|
29
|
-
lines.push('');
|
|
30
|
-
}
|
|
31
|
-
return lines.join('\n');
|
|
32
|
-
}
|
|
33
|
-
function formatOperationSummary(summary) {
|
|
34
|
-
const lines = [];
|
|
35
|
-
if (summary.truncated) {
|
|
36
|
-
lines.push(`\n\n!! PARTIAL RESULTS: ${summary.truncatedReason ?? 'results truncated'}`);
|
|
37
|
-
if (summary.tip)
|
|
38
|
-
lines.push(`Tip: ${summary.tip}`);
|
|
39
|
-
}
|
|
40
|
-
const note = (count, msg) => {
|
|
41
|
-
if (count && count > 0)
|
|
42
|
-
lines.push(`Note: ${count} ${msg}`);
|
|
43
|
-
};
|
|
44
|
-
note(summary.skippedTooLarge, 'file(s) skipped (too large).');
|
|
45
|
-
note(summary.skippedBinary, 'file(s) skipped (binary).');
|
|
46
|
-
note(summary.skippedInaccessible, 'item(s) were inaccessible and skipped.');
|
|
47
|
-
note(summary.symlinksNotFollowed, 'symlink(s) were not followed (security).');
|
|
48
|
-
note(summary.linesSkippedDueToRegexTimeout, 'line(s) skipped (regex timeout).');
|
|
49
|
-
return lines.join('\n');
|
|
50
|
-
}
|
|
51
|
-
function buildStructuredResult(result) {
|
|
52
|
-
return {
|
|
53
|
-
ok: true,
|
|
54
|
-
basePath: result.basePath,
|
|
55
|
-
pattern: result.pattern,
|
|
56
|
-
filePattern: result.filePattern,
|
|
57
|
-
matches: result.matches.map((m) => ({
|
|
58
|
-
file: pathModule.relative(result.basePath, m.file),
|
|
59
|
-
line: m.line,
|
|
60
|
-
content: m.content,
|
|
61
|
-
contextBefore: m.contextBefore,
|
|
62
|
-
contextAfter: m.contextAfter,
|
|
63
|
-
matchCount: m.matchCount,
|
|
64
|
-
})),
|
|
65
|
-
summary: {
|
|
66
|
-
filesScanned: result.summary.filesScanned,
|
|
67
|
-
filesMatched: result.summary.filesMatched,
|
|
68
|
-
totalMatches: result.summary.matches,
|
|
69
|
-
truncated: result.summary.truncated,
|
|
70
|
-
skippedTooLarge: result.summary.skippedTooLarge || undefined,
|
|
71
|
-
skippedBinary: result.summary.skippedBinary || undefined,
|
|
72
|
-
skippedInaccessible: result.summary.skippedInaccessible || undefined,
|
|
73
|
-
linesSkippedDueToRegexTimeout: result.summary.linesSkippedDueToRegexTimeout || undefined,
|
|
74
|
-
stoppedReason: result.summary.stoppedReason,
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
function buildTruncationInfo(result) {
|
|
79
|
-
if (!result.summary.truncated)
|
|
80
|
-
return {};
|
|
81
|
-
if (result.summary.stoppedReason === 'timeout') {
|
|
82
|
-
return {
|
|
83
|
-
truncatedReason: 'search timed out',
|
|
84
|
-
tip: 'Increase timeoutMs, use more specific filePattern, or add excludePatterns to narrow scope.',
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
if (result.summary.stoppedReason === 'maxResults') {
|
|
88
|
-
return {
|
|
89
|
-
truncatedReason: `reached max results limit (${result.summary.matches})`,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
if (result.summary.stoppedReason === 'maxFiles') {
|
|
93
|
-
return {
|
|
94
|
-
truncatedReason: `reached max files limit (${result.summary.filesScanned} scanned)`,
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
return {};
|
|
98
|
-
}
|
|
99
|
-
function buildTextResult(result) {
|
|
100
|
-
const { truncatedReason, tip } = buildTruncationInfo(result);
|
|
101
|
-
let textOutput = formatContentMatches(result.matches);
|
|
102
|
-
textOutput += formatOperationSummary({
|
|
103
|
-
truncated: result.summary.truncated,
|
|
104
|
-
truncatedReason,
|
|
105
|
-
tip,
|
|
106
|
-
skippedTooLarge: result.summary.skippedTooLarge,
|
|
107
|
-
skippedBinary: result.summary.skippedBinary,
|
|
108
|
-
skippedInaccessible: result.summary.skippedInaccessible,
|
|
109
|
-
linesSkippedDueToRegexTimeout: result.summary.linesSkippedDueToRegexTimeout,
|
|
110
|
-
});
|
|
111
|
-
if (result.summary.truncated && !tip) {
|
|
112
|
-
textOutput += `\nScanned ${result.summary.filesScanned} files, found ${result.summary.matches} matches in ${result.summary.filesMatched} files.`;
|
|
113
|
-
}
|
|
114
|
-
return textOutput;
|
|
115
|
-
}
|
|
116
6
|
async function handleSearchContent({ path: searchBasePath, pattern, filePattern, excludePatterns, caseSensitive, maxResults, maxFileSize, maxFilesScanned, timeoutMs, skipBinary, includeHidden, contextLines, wholeWord, isLiteral, baseNameMatch, caseSensitiveFileMatch, }) {
|
|
117
7
|
const result = await searchContent(searchBasePath, pattern, {
|
|
118
8
|
filePattern,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-content.js","sourceRoot":"","sources":["../../src/tools/search-content.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"search-content.js","sourceRoot":"","sources":["../../src/tools/search-content.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EACL,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,GAChB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAqB,MAAM,oBAAoB,CAAC;AAI1E,KAAK,UAAU,mBAAmB,CAAC,EACjC,IAAI,EAAE,cAAc,EACpB,OAAO,EACP,WAAW,EACX,eAAe,EACf,aAAa,EACb,UAAU,EACV,WAAW,EACX,eAAe,EACf,SAAS,EACT,UAAU,EACV,aAAa,EACb,YAAY,EACZ,SAAS,EACT,SAAS,EACT,aAAa,EACb,sBAAsB,GAkBvB;IACC,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,cAAc,EAAE,OAAO,EAAE;QAC1D,WAAW;QACX,eAAe;QACf,aAAa;QACb,UAAU;QACV,WAAW;QACX,eAAe;QACf,SAAS;QACT,UAAU;QACV,aAAa;QACb,YAAY;QACZ,SAAS;QACT,SAAS;QACT,aAAa;QACb,sBAAsB;KACvB,CAAC,CAAC;IAEH,OAAO,iBAAiB,CACtB,eAAe,CAAC,MAAM,CAAC,EACvB,qBAAqB,CAAC,MAAM,CAAC,CAC9B,CAAC;AACJ,CAAC;AAED,MAAM,mBAAmB,GAAG;IAC1B,KAAK,EAAE,gBAAgB;IACvB,WAAW,EACT,uFAAuF;QACvF,yEAAyE;QACzE,yFAAyF;QACzF,4EAA4E;QAC5E,2DAA2D;IAC7D,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;IACvC,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;QAClB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;KACpB;CACO,CAAC;AAEX,MAAM,UAAU,yBAAyB,CAAC,MAAiB;IACzD,MAAM,CAAC,YAAY,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;QACxE,IAAI,CAAC;YACH,OAAO,MAAM,mBAAmB,CAAC,IAAI,CAAC,CAAC;QACzC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,mBAAmB,CAAC,KAAK,EAAE,SAAS,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpE,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
import type { SearchContentResult } from '../../config/types.js';
|
|
3
|
+
import type { SearchContentOutputSchema } from '../../schemas/index.js';
|
|
4
|
+
type SearchContentStructuredResult = z.infer<typeof SearchContentOutputSchema>;
|
|
5
|
+
export declare function buildStructuredResult(result: SearchContentResult): SearchContentStructuredResult;
|
|
6
|
+
export declare function buildTextResult(result: SearchContentResult): string;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=search-formatting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-formatting.d.ts","sourceRoot":"","sources":["../../../src/tools/shared/search-formatting.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAExE,KAAK,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AA8E/E,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,mBAAmB,GAC1B,6BAA6B,CA2B/B;AA0BD,wBAAgB,eAAe,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAkBnE"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import * as pathModule from 'node:path';
|
|
2
|
+
const LINE_NUMBER_PAD_WIDTH = 4;
|
|
3
|
+
function formatContentMatches(matches) {
|
|
4
|
+
if (matches.length === 0)
|
|
5
|
+
return 'No matches found';
|
|
6
|
+
const byFile = new Map();
|
|
7
|
+
for (const match of matches) {
|
|
8
|
+
const list = byFile.get(match.file) ?? [];
|
|
9
|
+
list.push(match);
|
|
10
|
+
byFile.set(match.file, list);
|
|
11
|
+
}
|
|
12
|
+
const formatContext = (context, startLine) => (context ?? []).map((line, idx) => ` ${String(startLine + idx).padStart(LINE_NUMBER_PAD_WIDTH)}: ${line}`);
|
|
13
|
+
const lines = [`Found ${matches.length} matches:`, ''];
|
|
14
|
+
for (const [file, fileMatches] of byFile) {
|
|
15
|
+
lines.push(`${file}:`);
|
|
16
|
+
for (const match of fileMatches) {
|
|
17
|
+
const before = formatContext(match.contextBefore, match.line - (match.contextBefore?.length ?? 0));
|
|
18
|
+
const after = formatContext(match.contextAfter, match.line + 1);
|
|
19
|
+
lines.push(...before);
|
|
20
|
+
lines.push(` > ${String(match.line).padStart(LINE_NUMBER_PAD_WIDTH)}: ${match.content}`);
|
|
21
|
+
lines.push(...after);
|
|
22
|
+
if (before.length || after.length)
|
|
23
|
+
lines.push(' ---');
|
|
24
|
+
}
|
|
25
|
+
lines.push('');
|
|
26
|
+
}
|
|
27
|
+
return lines.join('\n');
|
|
28
|
+
}
|
|
29
|
+
function formatOperationSummary(summary) {
|
|
30
|
+
const lines = [];
|
|
31
|
+
if (summary.truncated) {
|
|
32
|
+
lines.push(`\n\n!! PARTIAL RESULTS: ${summary.truncatedReason ?? 'results truncated'}`);
|
|
33
|
+
if (summary.tip)
|
|
34
|
+
lines.push(`Tip: ${summary.tip}`);
|
|
35
|
+
}
|
|
36
|
+
const note = (count, msg) => {
|
|
37
|
+
if (count && count > 0)
|
|
38
|
+
lines.push(`Note: ${count} ${msg}`);
|
|
39
|
+
};
|
|
40
|
+
note(summary.skippedTooLarge, 'file(s) skipped (too large).');
|
|
41
|
+
note(summary.skippedBinary, 'file(s) skipped (binary).');
|
|
42
|
+
note(summary.skippedInaccessible, 'item(s) were inaccessible and skipped.');
|
|
43
|
+
note(summary.symlinksNotFollowed, 'symlink(s) were not followed (security).');
|
|
44
|
+
note(summary.linesSkippedDueToRegexTimeout, 'line(s) skipped (regex timeout).');
|
|
45
|
+
return lines.join('\n');
|
|
46
|
+
}
|
|
47
|
+
export function buildStructuredResult(result) {
|
|
48
|
+
return {
|
|
49
|
+
ok: true,
|
|
50
|
+
basePath: result.basePath,
|
|
51
|
+
pattern: result.pattern,
|
|
52
|
+
filePattern: result.filePattern,
|
|
53
|
+
matches: result.matches.map((m) => ({
|
|
54
|
+
file: pathModule.relative(result.basePath, m.file),
|
|
55
|
+
line: m.line,
|
|
56
|
+
content: m.content,
|
|
57
|
+
contextBefore: m.contextBefore,
|
|
58
|
+
contextAfter: m.contextAfter,
|
|
59
|
+
matchCount: m.matchCount,
|
|
60
|
+
})),
|
|
61
|
+
summary: {
|
|
62
|
+
filesScanned: result.summary.filesScanned,
|
|
63
|
+
filesMatched: result.summary.filesMatched,
|
|
64
|
+
totalMatches: result.summary.matches,
|
|
65
|
+
truncated: result.summary.truncated,
|
|
66
|
+
skippedTooLarge: result.summary.skippedTooLarge || undefined,
|
|
67
|
+
skippedBinary: result.summary.skippedBinary || undefined,
|
|
68
|
+
skippedInaccessible: result.summary.skippedInaccessible || undefined,
|
|
69
|
+
linesSkippedDueToRegexTimeout: result.summary.linesSkippedDueToRegexTimeout || undefined,
|
|
70
|
+
stoppedReason: result.summary.stoppedReason,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function buildTruncationInfo(result) {
|
|
75
|
+
if (!result.summary.truncated)
|
|
76
|
+
return {};
|
|
77
|
+
if (result.summary.stoppedReason === 'timeout') {
|
|
78
|
+
return {
|
|
79
|
+
truncatedReason: 'search timed out',
|
|
80
|
+
tip: 'Increase timeoutMs, use more specific filePattern, or add excludePatterns to narrow scope.',
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
if (result.summary.stoppedReason === 'maxResults') {
|
|
84
|
+
return {
|
|
85
|
+
truncatedReason: `reached max results limit (${result.summary.matches})`,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
if (result.summary.stoppedReason === 'maxFiles') {
|
|
89
|
+
return {
|
|
90
|
+
truncatedReason: `reached max files limit (${result.summary.filesScanned} scanned)`,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
return {};
|
|
94
|
+
}
|
|
95
|
+
export function buildTextResult(result) {
|
|
96
|
+
const { truncatedReason, tip } = buildTruncationInfo(result);
|
|
97
|
+
let textOutput = formatContentMatches(result.matches);
|
|
98
|
+
textOutput += formatOperationSummary({
|
|
99
|
+
truncated: result.summary.truncated,
|
|
100
|
+
truncatedReason,
|
|
101
|
+
tip,
|
|
102
|
+
skippedTooLarge: result.summary.skippedTooLarge,
|
|
103
|
+
skippedBinary: result.summary.skippedBinary,
|
|
104
|
+
skippedInaccessible: result.summary.skippedInaccessible,
|
|
105
|
+
linesSkippedDueToRegexTimeout: result.summary.linesSkippedDueToRegexTimeout,
|
|
106
|
+
});
|
|
107
|
+
if (result.summary.truncated && !tip) {
|
|
108
|
+
textOutput += `\nScanned ${result.summary.filesScanned} files, found ${result.summary.matches} matches in ${result.summary.filesMatched} files.`;
|
|
109
|
+
}
|
|
110
|
+
return textOutput;
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=search-formatting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-formatting.js","sourceRoot":"","sources":["../../../src/tools/shared/search-formatting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AASxC,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEhC,SAAS,oBAAoB,CAAC,OAAuC;IACnE,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,kBAAkB,CAAC;IAEpD,MAAM,MAAM,GAAG,IAAI,GAAG,EAA0B,CAAC;IACjD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAC1C,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjB,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM,aAAa,GAAG,CACpB,OAA6B,EAC7B,SAAiB,EACP,EAAE,CACZ,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CACjB,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CACZ,OAAO,MAAM,CAAC,SAAS,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,qBAAqB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