@namzu/anthropic 3.1.0 → 3.2.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/CHANGELOG.md +73 -0
- package/dist/client.d.ts +12 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +30 -3
- package/dist/client.js.map +1 -1
- package/package.json +12 -2
- package/src/client.ts +33 -3
- package/dist/__tests__/anthropic.test.d.ts +0 -2
- package/dist/__tests__/anthropic.test.d.ts.map +0 -1
- package/dist/__tests__/anthropic.test.js +0 -425
- package/dist/__tests__/anthropic.test.js.map +0 -1
- package/dist/__tests__/background-delegation.live.test.d.ts +0 -2
- package/dist/__tests__/background-delegation.live.test.d.ts.map +0 -1
- package/dist/__tests__/background-delegation.live.test.js +0 -212
- package/dist/__tests__/background-delegation.live.test.js.map +0 -1
- package/dist/__tests__/block-shape-guard.test.d.ts +0 -2
- package/dist/__tests__/block-shape-guard.test.d.ts.map +0 -1
- package/dist/__tests__/block-shape-guard.test.js +0 -218
- package/dist/__tests__/block-shape-guard.test.js.map +0 -1
- package/dist/__tests__/cache-anchors.test.d.ts +0 -2
- package/dist/__tests__/cache-anchors.test.d.ts.map +0 -1
- package/dist/__tests__/cache-anchors.test.js +0 -220
- package/dist/__tests__/cache-anchors.test.js.map +0 -1
- package/dist/__tests__/citations.test.d.ts +0 -2
- package/dist/__tests__/citations.test.d.ts.map +0 -1
- package/dist/__tests__/citations.test.js +0 -189
- package/dist/__tests__/citations.test.js.map +0 -1
- package/dist/__tests__/content-blocks.test.d.ts +0 -2
- package/dist/__tests__/content-blocks.test.d.ts.map +0 -1
- package/dist/__tests__/content-blocks.test.js +0 -131
- package/dist/__tests__/content-blocks.test.js.map +0 -1
- package/dist/__tests__/document-input.test.d.ts +0 -2
- package/dist/__tests__/document-input.test.d.ts.map +0 -1
- package/dist/__tests__/document-input.test.js +0 -98
- package/dist/__tests__/document-input.test.js.map +0 -1
- package/dist/__tests__/effort-levels-are-askable.test.d.ts +0 -2
- package/dist/__tests__/effort-levels-are-askable.test.d.ts.map +0 -1
- package/dist/__tests__/effort-levels-are-askable.test.js +0 -74
- package/dist/__tests__/effort-levels-are-askable.test.js.map +0 -1
- package/dist/__tests__/error-taxonomy.test.d.ts +0 -16
- package/dist/__tests__/error-taxonomy.test.d.ts.map +0 -1
- package/dist/__tests__/error-taxonomy.test.js +0 -242
- package/dist/__tests__/error-taxonomy.test.js.map +0 -1
- package/dist/__tests__/reasoning-close.test.d.ts +0 -2
- package/dist/__tests__/reasoning-close.test.d.ts.map +0 -1
- package/dist/__tests__/reasoning-close.test.js +0 -219
- package/dist/__tests__/reasoning-close.test.js.map +0 -1
- package/dist/__tests__/thinking-capability.test.d.ts +0 -2
- package/dist/__tests__/thinking-capability.test.d.ts.map +0 -1
- package/dist/__tests__/thinking-capability.test.js +0 -206
- package/dist/__tests__/thinking-capability.test.js.map +0 -1
- package/dist/__tests__/thinking-contract.live.test.d.ts +0 -2
- package/dist/__tests__/thinking-contract.live.test.d.ts.map +0 -1
- package/dist/__tests__/thinking-contract.live.test.js +0 -97
- package/dist/__tests__/thinking-contract.live.test.js.map +0 -1
- package/dist/__tests__/thinking-request-body.test.d.ts +0 -2
- package/dist/__tests__/thinking-request-body.test.d.ts.map +0 -1
- package/dist/__tests__/thinking-request-body.test.js +0 -90
- package/dist/__tests__/thinking-request-body.test.js.map +0 -1
- package/dist/__tests__/wire-contract.live.test.d.ts +0 -2
- package/dist/__tests__/wire-contract.live.test.d.ts.map +0 -1
- package/dist/__tests__/wire-contract.live.test.js +0 -272
- package/dist/__tests__/wire-contract.live.test.js.map +0 -1
- package/src/__tests__/anthropic.test.ts +0 -490
- package/src/__tests__/background-delegation.live.test.ts +0 -243
- package/src/__tests__/block-shape-guard.test.ts +0 -256
- package/src/__tests__/cache-anchors.test.ts +0 -262
- package/src/__tests__/citations.test.ts +0 -218
- package/src/__tests__/content-blocks.test.ts +0 -153
- package/src/__tests__/document-input.test.ts +0 -131
- package/src/__tests__/effort-levels-are-askable.test.ts +0 -86
- package/src/__tests__/error-taxonomy.test.ts +0 -274
- package/src/__tests__/reasoning-close.test.ts +0 -262
- package/src/__tests__/thinking-capability.test.ts +0 -235
- package/src/__tests__/thinking-contract.live.test.ts +0 -125
- package/src/__tests__/thinking-request-body.test.ts +0 -111
- package/src/__tests__/wire-contract.live.test.ts +0 -331
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { findDraft07Only, findStrictSchemaViolations, getBuiltinTools, renderToolSchema, toSchemaDialect, } from '@namzu/sdk';
|
|
3
|
-
/**
|
|
4
|
-
* The test that would have caught both outages.
|
|
5
|
-
*
|
|
6
|
-
* Every other test in this repo renders a schema and asserts something about
|
|
7
|
-
* the object. Both production breakages were schemas that looked fine as
|
|
8
|
-
* objects and were rejected by the wire:
|
|
9
|
-
*
|
|
10
|
-
* - `edit.insertLine` used `oneOf`, which strict tool use refuses.
|
|
11
|
-
* - `read.readRange` is a Zod tuple, which renders draft-07 `items: [a, b]`
|
|
12
|
-
* while this wire requires draft 2020-12 — rejected with `strict` unset,
|
|
13
|
-
* so a guard scoped to strict never saw it.
|
|
14
|
-
*
|
|
15
|
-
* Neither could fail offline, because neither was wrong offline. So this one
|
|
16
|
-
* talks to the real API.
|
|
17
|
-
*
|
|
18
|
-
* It asks the cheapest question that still exercises schema validation:
|
|
19
|
-
* `max_tokens: 1` and a one-word prompt. Validation happens before generation,
|
|
20
|
-
* so a rejected schema costs nothing and an accepted one costs a single token.
|
|
21
|
-
*
|
|
22
|
-
* Skipped without a key, so CI stays green where none is configured. Run it
|
|
23
|
-
* with:
|
|
24
|
-
*
|
|
25
|
-
* ANTHROPIC_API_KEY=… pnpm --filter @namzu/anthropic test
|
|
26
|
-
*/
|
|
27
|
-
const KEY = process.env.ANTHROPIC_API_KEY;
|
|
28
|
-
const MODEL = process.env.NAMZU_WIRE_TEST_MODEL ?? 'claude-haiku-4-5';
|
|
29
|
-
/**
|
|
30
|
-
* Statuses that mean "ask again", not "this request is wrong".
|
|
31
|
-
*
|
|
32
|
-
* These tests assert a CONTRACT: that a given schema is or is not expressible
|
|
33
|
-
* on this wire. A 529 says the service is busy and answers nothing about the
|
|
34
|
-
* schema — so reporting it as a contract failure claims something the run did
|
|
35
|
-
* not establish. That happened twice in one day, and both times cost a manual
|
|
36
|
-
* re-run to discover the wire had no opinion.
|
|
37
|
-
*
|
|
38
|
-
* Retried rather than reported inconclusive because a test that sometimes
|
|
39
|
-
* declines to check is a test nobody trusts, and the retry is cheap: these
|
|
40
|
-
* requests set `max_tokens: 1` and are rejected or accepted at validation.
|
|
41
|
-
*/
|
|
42
|
-
const TRANSIENT = new Set([429, 500, 502, 503, 529]);
|
|
43
|
-
async function post(body) {
|
|
44
|
-
let last = { ok: false, status: 0, message: 'no attempt made' };
|
|
45
|
-
for (let attempt = 1; attempt <= 4; attempt += 1) {
|
|
46
|
-
const res = await fetch('https://api.anthropic.com/v1/messages', {
|
|
47
|
-
method: 'POST',
|
|
48
|
-
headers: {
|
|
49
|
-
'x-api-key': KEY,
|
|
50
|
-
'anthropic-version': '2023-06-01',
|
|
51
|
-
'content-type': 'application/json',
|
|
52
|
-
},
|
|
53
|
-
body: JSON.stringify(body),
|
|
54
|
-
});
|
|
55
|
-
const parsed = await res.json().catch(() => ({}));
|
|
56
|
-
const message = parsed?.error?.message ??
|
|
57
|
-
(res.ok ? '' : 'unknown');
|
|
58
|
-
last = { ok: res.ok, status: res.status, message };
|
|
59
|
-
if (!TRANSIENT.has(res.status))
|
|
60
|
-
return last;
|
|
61
|
-
await new Promise((resolve) => setTimeout(resolve, 1_500 * attempt));
|
|
62
|
-
}
|
|
63
|
-
// Exhausted. Returned rather than thrown so the assertion names the status
|
|
64
|
-
// — a bare failure here reads as a rejected schema, which is the confusion
|
|
65
|
-
// this whole helper exists to prevent.
|
|
66
|
-
return last;
|
|
67
|
-
}
|
|
68
|
-
async function offerTools(tools) {
|
|
69
|
-
return post({
|
|
70
|
-
model: MODEL,
|
|
71
|
-
max_tokens: 1,
|
|
72
|
-
messages: [{ role: 'user', content: 'hi' }],
|
|
73
|
-
tools,
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
/** A tool as this driver would put it on the wire. */
|
|
77
|
-
function wireTool(name, schema, strict) {
|
|
78
|
-
return {
|
|
79
|
-
name,
|
|
80
|
-
description: 'contract probe',
|
|
81
|
-
input_schema: toSchemaDialect(schema, '2020-12'),
|
|
82
|
-
...(strict ? { strict: true } : {}),
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
describe.skipIf(!KEY)('every shipped tool is expressible on this wire', () => {
|
|
86
|
-
const tools = getBuiltinTools();
|
|
87
|
-
it('offers all of them in one request, the way a real run does', async () => {
|
|
88
|
-
// One request with the whole toolset, because that is the shape that
|
|
89
|
-
// broke: the wire rejects the WHOLE request for one bad schema, so a
|
|
90
|
-
// per-tool loop would pass while a real run still died.
|
|
91
|
-
const payload = tools.map((t) => wireTool(t.name, t.modelInputSchema ??
|
|
92
|
-
renderToolSchema(t.inputSchema), Boolean(t.enforceModelInput)));
|
|
93
|
-
const result = await offerTools(payload);
|
|
94
|
-
expect(result.ok, `HTTP ${result.status}: ${result.message}`).toBe(true);
|
|
95
|
-
}, 180_000);
|
|
96
|
-
it.each(tools.map((t) => [t.name, t]))('%s alone', async (name, tool) => {
|
|
97
|
-
// And individually, so a failure names the tool instead of the batch.
|
|
98
|
-
const schema = tool.modelInputSchema ??
|
|
99
|
-
renderToolSchema(tool.inputSchema);
|
|
100
|
-
const result = await offerTools([wireTool(name, schema, Boolean(tool.enforceModelInput))]);
|
|
101
|
-
expect(result.ok, `HTTP ${result.status}: ${result.message}`).toBe(true);
|
|
102
|
-
}, 180_000);
|
|
103
|
-
});
|
|
104
|
-
describe.skipIf(!KEY)('the dialect conversion is what makes the difference', () => {
|
|
105
|
-
it('rejects the draft-07 tuple and accepts the converted one', async () => {
|
|
106
|
-
// Pins the actual mechanism rather than trusting that conversion helped.
|
|
107
|
-
// If the wire ever starts accepting draft-07 tuples this test says so,
|
|
108
|
-
// and if it ever stops accepting `prefixItems` it says that too.
|
|
109
|
-
const draft07 = {
|
|
110
|
-
type: 'object',
|
|
111
|
-
properties: {
|
|
112
|
-
range: {
|
|
113
|
-
type: 'array',
|
|
114
|
-
minItems: 2,
|
|
115
|
-
maxItems: 2,
|
|
116
|
-
items: [{ type: 'integer' }, { type: 'integer' }],
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
const before = await offerTools([{ name: 'probe', description: 'p', input_schema: draft07 }]);
|
|
121
|
-
expect(before.ok).toBe(false);
|
|
122
|
-
expect(before.message).toMatch(/2020-12/);
|
|
123
|
-
const after = await offerTools([
|
|
124
|
-
{ name: 'probe', description: 'p', input_schema: toSchemaDialect(draft07, '2020-12') },
|
|
125
|
-
]);
|
|
126
|
-
expect(after.ok, `HTTP ${after.status}: ${after.message}`).toBe(true);
|
|
127
|
-
}, 180_000);
|
|
128
|
-
});
|
|
129
|
-
/**
|
|
130
|
-
* The strict subset, measured rather than read.
|
|
131
|
-
*
|
|
132
|
-
* `findStrictSchemaViolations` carries a deny-list, and the first version of it
|
|
133
|
-
* was derived from prose. It was wrong in both directions: it refused
|
|
134
|
-
* `minLength`/`maxLength`, which this wire accepts, so it would have blocked
|
|
135
|
-
* working tools; and it permitted `prefixItems`, which this wire rejects, so it
|
|
136
|
-
* would have vouched for a broken one. A deny-list nobody probed is a guess in
|
|
137
|
-
* a confident tone.
|
|
138
|
-
*
|
|
139
|
-
* This block is where the list comes from. Each row is one request; a row that
|
|
140
|
-
* changes means the subset moved, and the deny-list has to move with it.
|
|
141
|
-
*/
|
|
142
|
-
const STRICT_SUBSET = [
|
|
143
|
-
['minLength/maxLength', { type: 'string', minLength: 1, maxLength: 9 }, true],
|
|
144
|
-
['pattern', { type: 'string', pattern: '^a+$' }, true],
|
|
145
|
-
['format', { type: 'string', format: 'uri' }, true],
|
|
146
|
-
['enum', { type: 'string', enum: ['a', 'b'] }, true],
|
|
147
|
-
['anyOf', { anyOf: [{ type: 'integer' }, { const: 'end' }] }, true],
|
|
148
|
-
// `minItems` is a bound on the VALUE, not a rejected keyword: 0 and 1 pass,
|
|
149
|
-
// anything above does not. A blanket denial would refuse the ordinary
|
|
150
|
-
// spelling of a non-empty array.
|
|
151
|
-
['minItems: 0', { type: 'array', items: { type: 'string' }, minItems: 0 }, true],
|
|
152
|
-
['minItems: 1', { type: 'array', items: { type: 'string' }, minItems: 1 }, true],
|
|
153
|
-
['minItems: 2', { type: 'array', items: { type: 'string' }, minItems: 2 }, false],
|
|
154
|
-
['maxItems', { type: 'array', items: { type: 'string' }, maxItems: 3 }, false],
|
|
155
|
-
['uniqueItems', { type: 'array', items: { type: 'string' }, uniqueItems: true }, false],
|
|
156
|
-
['minimum', { type: 'integer', minimum: 0 }, false],
|
|
157
|
-
['oneOf', { oneOf: [{ type: 'integer' }, { const: 'end' }] }, false],
|
|
158
|
-
['not', { not: { type: 'null' } }, false],
|
|
159
|
-
// The one that interacts with the dialect fix: a tuple is unexpressible
|
|
160
|
-
// under strict in EITHER spelling, so converting it only changes the error.
|
|
161
|
-
['prefixItems', { type: 'array', prefixItems: [{ type: 'integer' }] }, false],
|
|
162
|
-
];
|
|
163
|
-
describe.skipIf(!KEY)('the strict subset is what the deny-list says it is', () => {
|
|
164
|
-
it.each(STRICT_SUBSET.map(([label, schema, accepted]) => [label, schema, accepted]))('strict + %s', async (label, propSchema, accepted) => {
|
|
165
|
-
const result = await offerTools([
|
|
166
|
-
{
|
|
167
|
-
name: 'probe',
|
|
168
|
-
description: 'p',
|
|
169
|
-
strict: true,
|
|
170
|
-
input_schema: {
|
|
171
|
-
type: 'object',
|
|
172
|
-
properties: { f: propSchema },
|
|
173
|
-
required: ['f'],
|
|
174
|
-
additionalProperties: false,
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
]);
|
|
178
|
-
expect(result.ok, `${label}: HTTP ${result.status}: ${result.message}`).toBe(accepted);
|
|
179
|
-
// And the offline check has to agree with the wire, which is the
|
|
180
|
-
// whole point of pinning both in one place.
|
|
181
|
-
expect(findStrictSchemaViolations({ properties: { f: propSchema } }).length === 0).toBe(accepted);
|
|
182
|
-
}, 180_000);
|
|
183
|
-
it('rejects the draft-07 tuple before it ever gets to the strict question', async () => {
|
|
184
|
-
// Dialect first, subset second. This is why a guard scoped to strict
|
|
185
|
-
// could not have caught `read.readRange`: the tuple is refused with
|
|
186
|
-
// `strict` unset too.
|
|
187
|
-
const tuple = {
|
|
188
|
-
type: 'object',
|
|
189
|
-
properties: { f: { type: 'array', items: [{ type: 'integer' }, { type: 'integer' }] } },
|
|
190
|
-
};
|
|
191
|
-
const result = await offerTools([{ name: 'probe', description: 'p', input_schema: tuple }]);
|
|
192
|
-
expect(result.ok).toBe(false);
|
|
193
|
-
expect(result.message).toMatch(/2020-12/);
|
|
194
|
-
}, 180_000);
|
|
195
|
-
});
|
|
196
|
-
describe.skipIf(!KEY)('the positional shape a bridged tool now emits', () => {
|
|
197
|
-
it('is accepted once converted', async () => {
|
|
198
|
-
// The MCP adapter emits a tuple ONLY where the server pinned the arity
|
|
199
|
-
// and closed the tail, because that renders as bounded `prefixItems`.
|
|
200
|
-
// The narrowness is the design rather than caution: a tool schema this
|
|
201
|
-
// wire refuses fails the WHOLE request instead of degrading one tool,
|
|
202
|
-
// so a faithful conversion it will not take is strictly worse than a
|
|
203
|
-
// lossy one it will.
|
|
204
|
-
//
|
|
205
|
-
// The refusal half of this pair is already asserted above, on the
|
|
206
|
-
// unconverted spelling — so this says something the sweep does not:
|
|
207
|
-
// that the shape we CHOSE to emit is one the wire takes.
|
|
208
|
-
const pinned = {
|
|
209
|
-
type: 'object',
|
|
210
|
-
properties: {
|
|
211
|
-
pair: {
|
|
212
|
-
type: 'array',
|
|
213
|
-
minItems: 2,
|
|
214
|
-
maxItems: 2,
|
|
215
|
-
items: [{ type: 'string' }, { type: 'number' }],
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
required: ['pair'],
|
|
219
|
-
additionalProperties: false,
|
|
220
|
-
};
|
|
221
|
-
const result = await offerTools([wireTool('pinned_pair', pinned, false)]);
|
|
222
|
-
expect(result.ok, result.message).toBe(true);
|
|
223
|
-
}, 180_000);
|
|
224
|
-
});
|
|
225
|
-
describe.skipIf(!KEY)('effort is a per-model SET, and this wire says so itself', () => {
|
|
226
|
-
// Through the same retrying helper: a 529 here would read as "this model
|
|
227
|
-
// refuses that level", which is the exact claim these tests exist to make
|
|
228
|
-
// and the exact claim an overloaded service cannot support.
|
|
229
|
-
const withEffort = (model, effort) => post({
|
|
230
|
-
model,
|
|
231
|
-
max_tokens: 16,
|
|
232
|
-
messages: [{ role: 'user', content: 'Say OK.' }],
|
|
233
|
-
output_config: { effort },
|
|
234
|
-
});
|
|
235
|
-
it('takes all five levels on a model the table says has all five', async () => {
|
|
236
|
-
for (const effort of ['low', 'medium', 'high', 'xhigh', 'max']) {
|
|
237
|
-
const result = await withEffort('claude-sonnet-5', effort);
|
|
238
|
-
expect(result.ok, `${effort}: ${result.message}`).toBe(true);
|
|
239
|
-
}
|
|
240
|
-
}, 180_000);
|
|
241
|
-
it('refuses a level a model lacks, and names the set it has', async () => {
|
|
242
|
-
// The pairing the capability table exists to express: `max` WITHOUT
|
|
243
|
-
// `xhigh`. A boolean could not have said this, and reading the levels
|
|
244
|
-
// as a ladder — where anything taking the top rung takes the one below
|
|
245
|
-
// — gets it backwards. That reading is how a row in that table came to
|
|
246
|
-
// claim a level this wire rejects.
|
|
247
|
-
const refused = await withEffort('claude-sonnet-4-6', 'xhigh');
|
|
248
|
-
expect(refused.ok).toBe(false);
|
|
249
|
-
expect(refused.message).toContain('xhigh');
|
|
250
|
-
const accepted = await withEffort('claude-sonnet-4-6', 'max');
|
|
251
|
-
expect(accepted.ok, accepted.message).toBe(true);
|
|
252
|
-
}, 180_000);
|
|
253
|
-
});
|
|
254
|
-
describe('what can be checked without a key', () => {
|
|
255
|
-
it('leaves no draft-07-only construct in any shipped tool', () => {
|
|
256
|
-
// The offline half of the same guarantee, so a contributor without a
|
|
257
|
-
// key still gets the signal — just not the proof.
|
|
258
|
-
for (const tool of getBuiltinTools()) {
|
|
259
|
-
const schema = tool.modelInputSchema ??
|
|
260
|
-
renderToolSchema(tool.inputSchema);
|
|
261
|
-
const converted = toSchemaDialect(schema, '2020-12');
|
|
262
|
-
expect(findDraft07Only(converted), tool.name).toEqual([]);
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
it('still finds one before conversion, so the sweep is not vacuous', () => {
|
|
266
|
-
// `read` renders a Zod tuple. If this ever stops finding anything, the
|
|
267
|
-
// test above has quietly become a tautology.
|
|
268
|
-
const withTuple = getBuiltinTools().filter((t) => !t.modelInputSchema && findDraft07Only(renderToolSchema(t.inputSchema)).length > 0);
|
|
269
|
-
expect(withTuple.map((t) => t.name)).toContain('read');
|
|
270
|
-
});
|
|
271
|
-
});
|
|
272
|
-
//# sourceMappingURL=wire-contract.live.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wire-contract.live.test.js","sourceRoot":"","sources":["../../src/__tests__/wire-contract.live.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EACN,eAAe,EACf,0BAA0B,EAC1B,eAAe,EACf,gBAAgB,EAChB,eAAe,GACf,MAAM,YAAY,CAAA;AAEnB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAA;AACzC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,kBAAkB,CAAA;AAQrE;;;;;;;;;;;;GAYG;AACH,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG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