mcp-integration-harness 0.3.0 → 0.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 +30 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schema-lint.d.ts +49 -0
- package/dist/schema-lint.js +224 -0
- package/dist/schema-lint.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,6 +103,34 @@ depending on who asked. A list is `{ items: [...] }`.
|
|
|
103
103
|
|
|
104
104
|
Exemptions are a `Record<tool, reason>` and rot in the same three directions.
|
|
105
105
|
|
|
106
|
+
## `expectPortableToolSchemas`
|
|
107
|
+
|
|
108
|
+
Whether the schemas a server advertises are ones every client can read.
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
const { tools } = await harness.client.listTools();
|
|
112
|
+
expectPortableToolSchemas(tools);
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Four spellings are legal JSON Schema and still get a tool refused or silently
|
|
116
|
+
stripped by some MCP clients:
|
|
117
|
+
|
|
118
|
+
| Written as | Comes from | Write instead |
|
|
119
|
+
| ---------------------------- | ------------------------------------ | --------------------------------------- |
|
|
120
|
+
| `"additionalProperties": {}` | `z.looseObject`, `.catchall()` | `.meta({ additionalProperties: true })` |
|
|
121
|
+
| `"anything": {}` | `z.unknown()`, `z.any()` | the type the value really has |
|
|
122
|
+
| `"type": ["string", "null"]` | `z.string().nullable()` from zod 4.5 | `.describe()` **before** `.nullable()` |
|
|
123
|
+
| `"$ref": "https://…"` | a hand-written schema | inline it, or `#/$defs/…` |
|
|
124
|
+
|
|
125
|
+
All four are spellings rather than contracts: each has an equivalent form that
|
|
126
|
+
says the same thing to a validator. Which is why this check takes no exemption
|
|
127
|
+
map — a reason could only ever read "not fixed yet".
|
|
128
|
+
|
|
129
|
+
It runs against the schema **as it goes on the wire**, which is the only place
|
|
130
|
+
it can run: zod emitted `anyOf` for a nullable string up to 4.4 and a `type`
|
|
131
|
+
array from 4.5 on, so the same source produces a portable schema or a
|
|
132
|
+
non-portable one depending on a patch release of a dependency.
|
|
133
|
+
|
|
106
134
|
## `assertLoopback`
|
|
107
135
|
|
|
108
136
|
The guard that matters more than the tests it protects.
|
|
@@ -144,6 +172,8 @@ would otherwise run your suite as you. Those names are blanked explicitly.
|
|
|
144
172
|
| `toolCoverage` | The same comparison without asserting, for printing the numbers |
|
|
145
173
|
| `expectEveryToolDeclaresOutputSchema` | Every advertised tool declares an output schema with an object root |
|
|
146
174
|
| `outputSchemaCoverage` | The same comparison without asserting |
|
|
175
|
+
| `expectPortableToolSchemas` | Every advertised schema avoids the four spellings clients mishandle |
|
|
176
|
+
| `schemaPortability` | The same lint without asserting, returning the findings |
|
|
147
177
|
| `assertLoopback(url)` | Throws unless the URL is on this machine |
|
|
148
178
|
| `waitForHttp(url, opts)` | Polls until an HTTP backend is ready, and says what the last attempt got |
|
|
149
179
|
| `waitForTcp(host, port)` | The same for a backend that is not HTTP — IMAP, SMTP — optionally on a greeting |
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { startServer, tokenOf, type CallOptions, type ElicitBehaviour, type LiveHarness, type StartServerOptions, type ToolResult, } from './harness.js';
|
|
2
2
|
export { expectEveryToolDeclaresOutputSchema, expectEveryToolExercised, outputSchemaCoverage, toolCoverage, type AdvertisedTool, type CoverageReport, type OutputSchemaReport, type SkipReasons, } from './coverage.js';
|
|
3
|
+
export { expectPortableToolSchemas, schemaPortability, type SchemaBearingTool, type SchemaFinding, type SchemaLintRule, } from './schema-lint.js';
|
|
3
4
|
export { assertLoopback, assertLoopbackHost } from './loopback.js';
|
|
4
5
|
export { waitForHttp, waitForTcp, type TcpWaitOptions, type WaitOptions, } from './wait.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { startServer, tokenOf, } from './harness.js';
|
|
2
2
|
export { expectEveryToolDeclaresOutputSchema, expectEveryToolExercised, outputSchemaCoverage, toolCoverage, } from './coverage.js';
|
|
3
|
+
export { expectPortableToolSchemas, schemaPortability, } from './schema-lint.js';
|
|
3
4
|
export { assertLoopback, assertLoopbackHost } from './loopback.js';
|
|
4
5
|
export { waitForHttp, waitForTcp, } from './wait.js';
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,GAMR,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,mCAAmC,EACnC,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,GAKb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,EACL,WAAW,EACX,UAAU,GAGX,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,OAAO,GAMR,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,mCAAmC,EACnC,wBAAwB,EACxB,oBAAoB,EACpB,YAAY,GAKb,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,GAIlB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,EACL,WAAW,EACX,UAAU,GAGX,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Portability rules for the JSON Schemas a server advertises.
|
|
3
|
+
*
|
|
4
|
+
* A schema can be perfectly legal JSON Schema and still be refused or
|
|
5
|
+
* mishandled by a client, and the four rules below are the ones this family of
|
|
6
|
+
* servers has actually walked into. All four are spellings rather than
|
|
7
|
+
* contracts: each has an equivalent form that says the same thing to a
|
|
8
|
+
* validator and survives the trip to every client.
|
|
9
|
+
*
|
|
10
|
+
* The checks run against the schema as it goes out on the wire, which is the
|
|
11
|
+
* only place they can run. Zod is what writes that schema here, and what it
|
|
12
|
+
* writes changes between its own releases: `z.string().nullable()` emitted
|
|
13
|
+
* `anyOf` up to zod 4.4 and a `"type": ["string", "null"]` array from 4.5 on.
|
|
14
|
+
* A source-level rule would have missed that; a wire-level one cannot.
|
|
15
|
+
*/
|
|
16
|
+
/** Which spelling a finding is about. */
|
|
17
|
+
export type SchemaLintRule = 'untyped-schema' | 'boolean-schema' | 'type-union' | 'remote-ref';
|
|
18
|
+
export interface SchemaFinding {
|
|
19
|
+
rule: SchemaLintRule;
|
|
20
|
+
/** The tool whose schema carries it. */
|
|
21
|
+
tool: string;
|
|
22
|
+
/** `inputSchema` or `outputSchema`, plus the path inside it. */
|
|
23
|
+
path: string;
|
|
24
|
+
/** What is wrong, and what to write instead. */
|
|
25
|
+
message: string;
|
|
26
|
+
}
|
|
27
|
+
/** One entry of `tools/list`, as much of it as this check reads. */
|
|
28
|
+
export interface SchemaBearingTool {
|
|
29
|
+
name: string;
|
|
30
|
+
inputSchema?: unknown;
|
|
31
|
+
outputSchema?: unknown;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Lints the advertised schemas, without asserting.
|
|
35
|
+
*
|
|
36
|
+
* Separate from the assertion for the reason {@link toolCoverage} is: the count
|
|
37
|
+
* is worth a line in a CI log on a green run too.
|
|
38
|
+
*/
|
|
39
|
+
export declare function schemaPortability(tools: readonly SchemaBearingTool[]): SchemaFinding[];
|
|
40
|
+
/**
|
|
41
|
+
* Fails unless every advertised schema is one every client can read.
|
|
42
|
+
*
|
|
43
|
+
* No exemption map, unlike the checks in `coverage.ts`. Those excuse what a
|
|
44
|
+
* *backend* cannot provide, which is a fact about the world and needs writing
|
|
45
|
+
* down. There is nothing to excuse here: every finding has an equivalent
|
|
46
|
+
* spelling that says the same thing, so a reason could only ever read "not
|
|
47
|
+
* fixed yet".
|
|
48
|
+
*/
|
|
49
|
+
export declare function expectPortableToolSchemas(tools: readonly SchemaBearingTool[]): void;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Portability rules for the JSON Schemas a server advertises.
|
|
3
|
+
*
|
|
4
|
+
* A schema can be perfectly legal JSON Schema and still be refused or
|
|
5
|
+
* mishandled by a client, and the four rules below are the ones this family of
|
|
6
|
+
* servers has actually walked into. All four are spellings rather than
|
|
7
|
+
* contracts: each has an equivalent form that says the same thing to a
|
|
8
|
+
* validator and survives the trip to every client.
|
|
9
|
+
*
|
|
10
|
+
* The checks run against the schema as it goes out on the wire, which is the
|
|
11
|
+
* only place they can run. Zod is what writes that schema here, and what it
|
|
12
|
+
* writes changes between its own releases: `z.string().nullable()` emitted
|
|
13
|
+
* `anyOf` up to zod 4.4 and a `"type": ["string", "null"]` array from 4.5 on.
|
|
14
|
+
* A source-level rule would have missed that; a wire-level one cannot.
|
|
15
|
+
*/
|
|
16
|
+
/** Keywords that constrain the instance. Anything else only annotates it. */
|
|
17
|
+
const CONSTRAINING_KEYWORDS = new Set([
|
|
18
|
+
// Assertions
|
|
19
|
+
'type',
|
|
20
|
+
'enum',
|
|
21
|
+
'const',
|
|
22
|
+
'multipleOf',
|
|
23
|
+
'maximum',
|
|
24
|
+
'exclusiveMaximum',
|
|
25
|
+
'minimum',
|
|
26
|
+
'exclusiveMinimum',
|
|
27
|
+
'maxLength',
|
|
28
|
+
'minLength',
|
|
29
|
+
'pattern',
|
|
30
|
+
'maxItems',
|
|
31
|
+
'minItems',
|
|
32
|
+
'uniqueItems',
|
|
33
|
+
'maxContains',
|
|
34
|
+
'minContains',
|
|
35
|
+
'maxProperties',
|
|
36
|
+
'minProperties',
|
|
37
|
+
'required',
|
|
38
|
+
'dependentRequired',
|
|
39
|
+
'format',
|
|
40
|
+
'contentEncoding',
|
|
41
|
+
'contentMediaType',
|
|
42
|
+
'contentSchema',
|
|
43
|
+
// Applicators
|
|
44
|
+
'items',
|
|
45
|
+
'prefixItems',
|
|
46
|
+
'contains',
|
|
47
|
+
'additionalItems',
|
|
48
|
+
'unevaluatedItems',
|
|
49
|
+
'properties',
|
|
50
|
+
'patternProperties',
|
|
51
|
+
'additionalProperties',
|
|
52
|
+
'propertyNames',
|
|
53
|
+
'unevaluatedProperties',
|
|
54
|
+
'dependentSchemas',
|
|
55
|
+
'allOf',
|
|
56
|
+
'anyOf',
|
|
57
|
+
'oneOf',
|
|
58
|
+
'not',
|
|
59
|
+
// References
|
|
60
|
+
'$ref',
|
|
61
|
+
'$dynamicRef',
|
|
62
|
+
'$recursiveRef',
|
|
63
|
+
]);
|
|
64
|
+
/**
|
|
65
|
+
* Keywords whose value may be a bare boolean without anyone minding.
|
|
66
|
+
*
|
|
67
|
+
* `"additionalProperties": true` is the ordinary way to write an open object
|
|
68
|
+
* and every client reads it. A bare `true` anywhere a schema *object* is
|
|
69
|
+
* expected is a different matter.
|
|
70
|
+
*/
|
|
71
|
+
const BOOLEAN_VALUED_KEYWORDS = new Set([
|
|
72
|
+
'additionalProperties',
|
|
73
|
+
'unevaluatedProperties',
|
|
74
|
+
'additionalItems',
|
|
75
|
+
'unevaluatedItems',
|
|
76
|
+
]);
|
|
77
|
+
const SUBSCHEMA_KEYWORDS = [
|
|
78
|
+
'items',
|
|
79
|
+
'contains',
|
|
80
|
+
'not',
|
|
81
|
+
'propertyNames',
|
|
82
|
+
'if',
|
|
83
|
+
'then',
|
|
84
|
+
'else',
|
|
85
|
+
'additionalProperties',
|
|
86
|
+
'unevaluatedProperties',
|
|
87
|
+
'additionalItems',
|
|
88
|
+
'unevaluatedItems',
|
|
89
|
+
'contentSchema',
|
|
90
|
+
];
|
|
91
|
+
const SUBSCHEMA_ARRAY_KEYWORDS = ['allOf', 'anyOf', 'oneOf', 'prefixItems'];
|
|
92
|
+
const SUBSCHEMA_MAP_KEYWORDS = [
|
|
93
|
+
'properties',
|
|
94
|
+
'patternProperties',
|
|
95
|
+
'dependentSchemas',
|
|
96
|
+
'dependencies',
|
|
97
|
+
'$defs',
|
|
98
|
+
'definitions',
|
|
99
|
+
];
|
|
100
|
+
const JSON_SCHEMA_TYPES = new Set([
|
|
101
|
+
'null',
|
|
102
|
+
'boolean',
|
|
103
|
+
'object',
|
|
104
|
+
'array',
|
|
105
|
+
'number',
|
|
106
|
+
'string',
|
|
107
|
+
'integer',
|
|
108
|
+
]);
|
|
109
|
+
/** Guards against a `$ref` cycle turning the walk into a hang. */
|
|
110
|
+
const MAX_DEPTH = 64;
|
|
111
|
+
function isRecord(value) {
|
|
112
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
113
|
+
}
|
|
114
|
+
function constrainsInstance(node) {
|
|
115
|
+
if (Object.keys(node).some((key) => CONSTRAINING_KEYWORDS.has(key))) {
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
// `if` alone constrains nothing; with a branch beside it, it does.
|
|
119
|
+
return 'if' in node && ('then' in node || 'else' in node);
|
|
120
|
+
}
|
|
121
|
+
function isPlainTypeUnion(type) {
|
|
122
|
+
if (!Array.isArray(type) || type.length === 0)
|
|
123
|
+
return false;
|
|
124
|
+
return type.every((entry) => typeof entry === 'string' && JSON_SCHEMA_TYPES.has(entry));
|
|
125
|
+
}
|
|
126
|
+
function walk(node, path, keyword, depth, emit) {
|
|
127
|
+
if (depth > MAX_DEPTH)
|
|
128
|
+
return;
|
|
129
|
+
if (typeof node === 'boolean') {
|
|
130
|
+
if (keyword !== undefined && BOOLEAN_VALUED_KEYWORDS.has(keyword))
|
|
131
|
+
return;
|
|
132
|
+
emit('boolean-schema', path, `bare \`${String(node)}\` where a schema object is expected. Write ` +
|
|
133
|
+
(node
|
|
134
|
+
? 'the object form — `{}` under `not`, or the type the value really has.'
|
|
135
|
+
: '`{"not": {}}`; deleting the entry allows the property instead of forbidding it.'));
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
if (!isRecord(node))
|
|
139
|
+
return;
|
|
140
|
+
if (isPlainTypeUnion(node.type)) {
|
|
141
|
+
emit('type-union', path, `\`type\` is an array (${JSON.stringify(node.type)}). Several clients ` +
|
|
142
|
+
'read `type` as a single string and drop the constraint or refuse the ' +
|
|
143
|
+
'tool. Split it into `anyOf` branches — in zod, put `.describe()` on ' +
|
|
144
|
+
'the inner type *before* `.nullable()`, which stops it folding the two ' +
|
|
145
|
+
'into one `type` array.');
|
|
146
|
+
}
|
|
147
|
+
const ref = node.$ref;
|
|
148
|
+
if (typeof ref === 'string' && ref !== '' && !ref.startsWith('#')) {
|
|
149
|
+
emit('remote-ref', path, `\`$ref\` points outside this document (\`${ref}\`). Clients do not ` +
|
|
150
|
+
'fetch remote schemas. Inline it, or move it into `$defs`.');
|
|
151
|
+
}
|
|
152
|
+
if (!constrainsInstance(node) && keyword !== 'not') {
|
|
153
|
+
emit('untyped-schema', path, 'no validation keyword at all, so this accepts any value — the object ' +
|
|
154
|
+
'spelling of a bare `true`, which some clients refuse or mishandle. ' +
|
|
155
|
+
'In zod: `.meta({ additionalProperties: true })` on a `looseObject` or ' +
|
|
156
|
+
'a `catchall`, and the real type instead of `z.unknown()`.');
|
|
157
|
+
}
|
|
158
|
+
for (const key of SUBSCHEMA_MAP_KEYWORDS) {
|
|
159
|
+
const map = node[key];
|
|
160
|
+
if (!isRecord(map))
|
|
161
|
+
continue;
|
|
162
|
+
for (const [name, child] of Object.entries(map)) {
|
|
163
|
+
walk(child, `${path}.${key}.${name}`, key, depth + 1, emit);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
for (const key of SUBSCHEMA_ARRAY_KEYWORDS) {
|
|
167
|
+
const list = node[key];
|
|
168
|
+
if (!Array.isArray(list))
|
|
169
|
+
continue;
|
|
170
|
+
list.forEach((child, index) => {
|
|
171
|
+
walk(child, `${path}.${key}[${index}]`, key, depth + 1, emit);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
for (const key of SUBSCHEMA_KEYWORDS) {
|
|
175
|
+
if (!(key in node))
|
|
176
|
+
continue;
|
|
177
|
+
const child = node[key];
|
|
178
|
+
if (key === 'items' && Array.isArray(child)) {
|
|
179
|
+
child.forEach((entry, index) => {
|
|
180
|
+
walk(entry, `${path}.${key}[${index}]`, key, depth + 1, emit);
|
|
181
|
+
});
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
walk(child, `${path}.${key}`, key, depth + 1, emit);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Lints the advertised schemas, without asserting.
|
|
189
|
+
*
|
|
190
|
+
* Separate from the assertion for the reason {@link toolCoverage} is: the count
|
|
191
|
+
* is worth a line in a CI log on a green run too.
|
|
192
|
+
*/
|
|
193
|
+
export function schemaPortability(tools) {
|
|
194
|
+
const findings = [];
|
|
195
|
+
for (const tool of tools) {
|
|
196
|
+
for (const kind of ['inputSchema', 'outputSchema']) {
|
|
197
|
+
const schema = tool[kind];
|
|
198
|
+
if (schema === undefined)
|
|
199
|
+
continue;
|
|
200
|
+
walk(schema, kind, undefined, 0, (rule, path, message) => {
|
|
201
|
+
findings.push({ rule, tool: tool.name, path, message });
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return findings;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Fails unless every advertised schema is one every client can read.
|
|
209
|
+
*
|
|
210
|
+
* No exemption map, unlike the checks in `coverage.ts`. Those excuse what a
|
|
211
|
+
* *backend* cannot provide, which is a fact about the world and needs writing
|
|
212
|
+
* down. There is nothing to excuse here: every finding has an equivalent
|
|
213
|
+
* spelling that says the same thing, so a reason could only ever read "not
|
|
214
|
+
* fixed yet".
|
|
215
|
+
*/
|
|
216
|
+
export function expectPortableToolSchemas(tools) {
|
|
217
|
+
const findings = schemaPortability(tools);
|
|
218
|
+
if (findings.length === 0)
|
|
219
|
+
return;
|
|
220
|
+
const lines = findings.map((finding) => ` ${finding.tool} — ${finding.path}: ${finding.message}`);
|
|
221
|
+
throw new Error(`${findings.length} schema portability problem(s) across ` +
|
|
222
|
+
`${tools.length} tool(s):\n\n${lines.join('\n\n')}`);
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=schema-lint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-lint.js","sourceRoot":"","sources":["../src/schema-lint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,6EAA6E;AAC7E,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC;IACpC,aAAa;IACb,MAAM;IACN,MAAM;IACN,OAAO;IACP,YAAY;IACZ,SAAS;IACT,kBAAkB;IAClB,SAAS;IACT,kBAAkB;IAClB,WAAW;IACX,WAAW;IACX,SAAS;IACT,UAAU;IACV,UAAU;IACV,aAAa;IACb,aAAa;IACb,aAAa;IACb,eAAe;IACf,eAAe;IACf,UAAU;IACV,mBAAmB;IACnB,QAAQ;IACR,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,cAAc;IACd,OAAO;IACP,aAAa;IACb,UAAU;IACV,iBAAiB;IACjB,kBAAkB;IAClB,YAAY;IACZ,mBAAmB;IACnB,sBAAsB;IACtB,eAAe;IACf,uBAAuB;IACvB,kBAAkB;IAClB,OAAO;IACP,OAAO;IACP,OAAO;IACP,KAAK;IACL,aAAa;IACb,MAAM;IACN,aAAa;IACb,eAAe;CAChB,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,sBAAsB;IACtB,uBAAuB;IACvB,iBAAiB;IACjB,kBAAkB;CACnB,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG;IACzB,OAAO;IACP,UAAU;IACV,KAAK;IACL,eAAe;IACf,IAAI;IACJ,MAAM;IACN,MAAM;IACN,sBAAsB;IACtB,uBAAuB;IACvB,iBAAiB;IACjB,kBAA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