@mcp-b/webmcp-types 4.0.0 → 5.0.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/LICENSE +1 -1
- package/README.md +61 -175
- package/dist/common.d.ts +11 -293
- package/dist/common.d.ts.map +1 -1
- package/dist/index.d.ts +36 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/json-schema.d.ts +42 -186
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/model-context.d.ts +64 -276
- package/dist/model-context.d.ts.map +1 -1
- package/dist/tool.d.ts +38 -156
- package/dist/tool.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/common.ts +17 -362
- package/src/index.ts +45 -67
- package/src/json-schema.ts +62 -266
- package/src/model-context.ts +101 -378
- package/src/tool.ts +65 -212
package/dist/index.d.ts
CHANGED
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
import type { ModelContext, ModelContextTesting } from './model-context.js';
|
|
2
|
-
export type {
|
|
3
|
-
export type { InferArgsFromInputSchema, InferJsonSchema,
|
|
4
|
-
export type {
|
|
5
|
-
export type { MaybePromise,
|
|
2
|
+
export type { CallToolResult, ContentBlock, InputSchema, JsonObject, JsonValue, RegistrationHandle, TextContent, WebMcpToolInput, } from './common.js';
|
|
3
|
+
export type { InferArgsFromInputSchema, InferJsonSchema, JsonSchemaForInference, } from './json-schema.js';
|
|
4
|
+
export type { ChromeModelContext, ChromeModelContextExecuteToolOptions, ChromeModelContextExtensions, ModelContext, ModelContextExtensions, ModelContextGetToolOptions, ModelContextRegisterToolOptions, ModelContextTesting, ModelContextTestingToolInfo, ModelContextWithExtensions, RegisteredTool, } from './model-context.js';
|
|
5
|
+
export type { MaybePromise, ModelContextTool, ToolAnnotations, ToolDescriptor, ToolDescriptorFromSchema, ToolListItem, ToolResultFromOutputSchema, WebMcpToolAnnotations, } from './tool.js';
|
|
6
6
|
declare global {
|
|
7
|
+
/**
|
|
8
|
+
* Web IDL interface object used for branding and `instanceof`.
|
|
9
|
+
*
|
|
10
|
+
* Absent unless the document's realm implements WebMCP, so guard with
|
|
11
|
+
* `typeof ModelContext !== 'undefined'` before referencing it. A bare
|
|
12
|
+
* reference to an undeclared global throws `ReferenceError`.
|
|
13
|
+
*/
|
|
14
|
+
var ModelContext: (Function & {
|
|
15
|
+
readonly prototype: ModelContext;
|
|
16
|
+
[Symbol.hasInstance](value: unknown): value is ModelContext;
|
|
17
|
+
}) | undefined;
|
|
7
18
|
interface Document {
|
|
8
19
|
/**
|
|
9
|
-
*
|
|
20
|
+
* Canonical WebMCP API for this document.
|
|
10
21
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
22
|
+
* Optional because no browser ships WebMCP unflagged: Chromium exposes it
|
|
23
|
+
* only under `--enable-features=WebMCP`, and elsewhere the property is
|
|
24
|
+
* genuinely absent (`'modelContext' in document === false`). Feature-detect
|
|
25
|
+
* it, or install `@mcp-b/webmcp-polyfill`.
|
|
14
26
|
*/
|
|
15
|
-
readonly modelContext
|
|
27
|
+
readonly modelContext?: ModelContext;
|
|
16
28
|
}
|
|
17
29
|
interface Navigator {
|
|
30
|
+
/** @deprecated Use `document.modelContext`. */
|
|
31
|
+
readonly modelContext?: ModelContext;
|
|
32
|
+
/** @deprecated Compatibility surface for older Chromium previews. */
|
|
33
|
+
modelContextTesting?: ModelContextTesting;
|
|
34
|
+
}
|
|
35
|
+
interface SubmitEvent {
|
|
18
36
|
/**
|
|
19
|
-
*
|
|
37
|
+
* True when a declarative WebMCP tool initiated this submission.
|
|
20
38
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* backward-compatible alias and will be removed in a future Chrome release.
|
|
39
|
+
* Optional because declarative forms are explainer-only: this attribute is
|
|
40
|
+
* in neither the WebMCP specification nor WPT's `webmcp.idl`, and no
|
|
41
|
+
* browser implements it. `@mcp-b/webmcp-polyfill` installs it.
|
|
25
42
|
*/
|
|
26
|
-
readonly
|
|
43
|
+
readonly agentInvoked?: boolean;
|
|
27
44
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* document.modelContext.executeTool(...).
|
|
45
|
+
* Associates an intercepted form submission result with the invoking agent.
|
|
46
|
+
*
|
|
47
|
+
* Optional for the same reason as {@link SubmitEvent.agentInvoked}.
|
|
32
48
|
*/
|
|
33
|
-
|
|
49
|
+
respondWith?(agentResponse: Promise<unknown>): void;
|
|
34
50
|
}
|
|
35
51
|
}
|
|
36
52
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE5E,YAAY,EACV,cAAc,EACd,YAAY,EACZ,WAAW,EACX,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,WAAW,EACX,eAAe,GAChB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,wBAAwB,EACxB,eAAe,EACf,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,kBAAkB,EAClB,oCAAoC,EACpC,4BAA4B,EAC5B,YAAY,EACZ,sBAAsB,EACtB,0BAA0B,EAC1B,+BAA+B,EAC/B,mBAAmB,EACnB,2BAA2B,EAC3B,0BAA0B,EAC1B,cAAc,GACf,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,YAAY,EACZ,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,WAAW,CAAC;AAEnB,OAAO,CAAC,MAAM,CAAC;IACb;;;;;;OAMG;IACH,IAAI,YAAY,EACZ,CAAC,QAAQ,GAAG;QACV,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;QACjC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,YAAY,CAAC;KAC7D,CAAC,GACF,SAAS,CAAC;IAEd,UAAU,QAAQ;QAChB;;;;;;;WAOG;QACH,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;KACtC;IAED,UAAU,SAAS;QACjB,+CAA+C;QAC/C,QAAQ,CAAC,YAAY,CAAC,EAAE,YAAY,CAAC;QAErC,qEAAqE;QACrE,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;KAC3C;IAED,UAAU,WAAW;QACnB;;;;;;WAMG;QACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;QAEhC;;;;WAIG;QACH,WAAW,CAAC,CAAC,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;KACrD;CACF"}
|
package/dist/json-schema.d.ts
CHANGED
|
@@ -1,196 +1,52 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* JSON Schema `type` values supported by the MVP inference layer.
|
|
8
|
-
*/
|
|
9
|
-
export type JsonSchemaType = JsonSchemaPrimitiveType | 'object' | 'array';
|
|
10
|
-
/**
|
|
11
|
-
* JSON Schema multi-type tuple (for example `["string", "null"]`).
|
|
12
|
-
*/
|
|
13
|
-
export type JsonSchemaTypeArray = readonly [JsonSchemaType, ...JsonSchemaType[]];
|
|
14
|
-
/**
|
|
15
|
-
* Literal values supported in JSON Schema `enum`/`const`.
|
|
16
|
-
*/
|
|
17
|
-
export type JsonSchemaEnumValue = JsonPrimitive | JsonValue;
|
|
18
|
-
/**
|
|
19
|
-
* Extra JSON Schema keywords tolerated by the inference layer.
|
|
20
|
-
*
|
|
21
|
-
* These keys are intentionally accepted as opaque metadata. Inference only uses
|
|
22
|
-
* the core MVP keywords and ignores these fields.
|
|
23
|
-
*/
|
|
24
|
-
interface SupplementalJsonSchemaKeywords {
|
|
25
|
-
$defs?: unknown;
|
|
26
|
-
$ref?: unknown;
|
|
27
|
-
additionalItems?: unknown;
|
|
28
|
-
allOf?: unknown;
|
|
29
|
-
anyOf?: unknown;
|
|
30
|
-
contains?: unknown;
|
|
31
|
-
definitions?: unknown;
|
|
32
|
-
dependentRequired?: unknown;
|
|
33
|
-
dependentSchemas?: unknown;
|
|
34
|
-
format?: unknown;
|
|
35
|
-
if?: unknown;
|
|
36
|
-
maxContains?: unknown;
|
|
37
|
-
minContains?: unknown;
|
|
38
|
-
not?: unknown;
|
|
39
|
-
oneOf?: unknown;
|
|
40
|
-
patternProperties?: unknown;
|
|
41
|
-
prefixItems?: unknown;
|
|
42
|
-
propertyNames?: unknown;
|
|
43
|
-
then?: unknown;
|
|
44
|
-
unevaluatedItems?: unknown;
|
|
45
|
-
unevaluatedProperties?: unknown;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Non-validation metadata accepted by the MVP inference subset.
|
|
49
|
-
*/
|
|
50
|
-
interface JsonSchemaMetadata extends SupplementalJsonSchemaKeywords {
|
|
51
|
-
default?: JsonValue;
|
|
52
|
-
description?: string;
|
|
53
|
-
examples?: readonly JsonValue[];
|
|
54
|
-
/**
|
|
55
|
-
* OpenAPI-compatible nullability marker.
|
|
56
|
-
*/
|
|
57
|
-
nullable?: boolean;
|
|
58
|
-
title?: string;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* JSON Schema for `type: "string"`.
|
|
62
|
-
*/
|
|
63
|
-
export interface JsonSchemaString extends JsonSchemaMetadata {
|
|
64
|
-
const?: string;
|
|
65
|
-
enum?: readonly string[];
|
|
66
|
-
maxLength?: number;
|
|
67
|
-
minLength?: number;
|
|
68
|
-
pattern?: string;
|
|
69
|
-
type: 'string';
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* JSON Schema for `type: "number"` and `type: "integer"`.
|
|
73
|
-
*/
|
|
74
|
-
export interface JsonSchemaNumber extends JsonSchemaMetadata {
|
|
75
|
-
const?: number;
|
|
76
|
-
enum?: readonly number[];
|
|
77
|
-
exclusiveMaximum?: number;
|
|
78
|
-
exclusiveMinimum?: number;
|
|
79
|
-
maximum?: number;
|
|
80
|
-
minimum?: number;
|
|
81
|
-
multipleOf?: number;
|
|
82
|
-
type: 'number' | 'integer';
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* JSON Schema for `type: "boolean"`.
|
|
86
|
-
*/
|
|
87
|
-
export interface JsonSchemaBoolean extends JsonSchemaMetadata {
|
|
88
|
-
const?: boolean;
|
|
89
|
-
enum?: readonly boolean[];
|
|
90
|
-
type: 'boolean';
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* JSON Schema for `type: "null"`.
|
|
94
|
-
*/
|
|
95
|
-
export interface JsonSchemaNull extends JsonSchemaMetadata {
|
|
96
|
-
const?: null;
|
|
97
|
-
enum?: readonly null[];
|
|
98
|
-
type: 'null';
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* JSON Schema for `type: "array"`.
|
|
102
|
-
*/
|
|
103
|
-
export interface JsonSchemaArray extends JsonSchemaMetadata {
|
|
104
|
-
items: JsonSchemaForInference;
|
|
105
|
-
maxItems?: number;
|
|
106
|
-
minItems?: number;
|
|
107
|
-
type: 'array';
|
|
108
|
-
uniqueItems?: boolean;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* JSON Schema for `type: "object"`.
|
|
112
|
-
*/
|
|
113
|
-
export interface JsonSchemaObject extends JsonSchemaMetadata {
|
|
114
|
-
additionalProperties?: boolean | JsonSchemaForInference;
|
|
115
|
-
maxProperties?: number;
|
|
116
|
-
minProperties?: number;
|
|
117
|
-
properties?: Readonly<Record<string, JsonSchemaForInference>>;
|
|
118
|
-
required?: readonly string[];
|
|
119
|
-
type: 'object';
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* JSON Schema for multi-type unions via `type: [...]`.
|
|
123
|
-
*/
|
|
124
|
-
export interface JsonSchemaMultiType extends JsonSchemaMetadata {
|
|
125
|
-
additionalProperties?: boolean | JsonSchemaForInference;
|
|
126
|
-
const?: JsonSchemaEnumValue;
|
|
127
|
-
enum?: readonly JsonSchemaEnumValue[];
|
|
128
|
-
items?: JsonSchemaForInference;
|
|
129
|
-
properties?: Readonly<Record<string, JsonSchemaForInference>>;
|
|
130
|
-
required?: readonly string[];
|
|
131
|
-
type: JsonSchemaTypeArray;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* JSON Schema subset supported by the MVP type inference layer.
|
|
135
|
-
*/
|
|
136
|
-
export type JsonSchemaForInference = JsonSchemaArray | JsonSchemaBoolean | JsonSchemaMultiType | JsonSchemaNull | JsonSchemaNumber | JsonSchemaObject | JsonSchemaString;
|
|
1
|
+
import type { InputSchema, WebMcpToolInput } from './common.js';
|
|
2
|
+
import type { JsonSchemaType as McpJsonSchema } from '@modelcontextprotocol/server';
|
|
3
|
+
/** JSON Schema Draft 2020-12 accepted by the inference helpers. */
|
|
4
|
+
export type JsonSchemaForInference = McpJsonSchema;
|
|
5
|
+
type JsonSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'null' | 'object' | 'array';
|
|
137
6
|
type Simplify<T> = {
|
|
138
7
|
[K in keyof T]: T[K];
|
|
139
8
|
} & {};
|
|
140
9
|
type EmptyObject = Record<never, never>;
|
|
141
|
-
type
|
|
142
|
-
|
|
143
|
-
} ?
|
|
144
|
-
type
|
|
145
|
-
|
|
146
|
-
} ?
|
|
147
|
-
type
|
|
148
|
-
properties: infer TProperties extends Readonly<Record<string,
|
|
10
|
+
type ConstValue<TSchema> = TSchema extends {
|
|
11
|
+
const: infer TValue;
|
|
12
|
+
} ? TValue : never;
|
|
13
|
+
type EnumValue<TSchema> = TSchema extends {
|
|
14
|
+
enum: readonly (infer TValue)[];
|
|
15
|
+
} ? TValue : never;
|
|
16
|
+
type Properties<TSchema> = TSchema extends {
|
|
17
|
+
properties: infer TProperties extends Readonly<Record<string, unknown>>;
|
|
149
18
|
} ? TProperties : EmptyObject;
|
|
150
|
-
type
|
|
151
|
-
required: readonly (infer
|
|
152
|
-
} ? string extends
|
|
153
|
-
type
|
|
154
|
-
[K in keyof TProperties as K extends TRequiredKeys ? K : never]-?: InferJsonSchema<TProperties[K]>;
|
|
155
|
-
};
|
|
156
|
-
type OptionalProps<TProperties extends Record<string, JsonSchemaForInference>, TRequiredKeys extends string> = {
|
|
157
|
-
[K in keyof TProperties as K extends TRequiredKeys ? never : K]?: InferJsonSchema<TProperties[K]>;
|
|
158
|
-
};
|
|
159
|
-
type PropertyKeysOf<TSchema> = keyof PropertiesOf<TSchema> & string;
|
|
160
|
-
type AdditionalSchemaOf<TSchema> = TSchema extends {
|
|
161
|
-
additionalProperties: infer TAdditional;
|
|
162
|
-
} ? TAdditional : undefined;
|
|
163
|
-
type AdditionalPropsValue<TSchema> = AdditionalSchemaOf<TSchema> extends JsonSchemaForInference ? InferJsonSchema<AdditionalSchemaOf<TSchema>> : unknown;
|
|
164
|
-
type AdditionalPropsOf<TSchema> = TSchema extends {
|
|
19
|
+
type RequiredKeys<TSchema> = TSchema extends {
|
|
20
|
+
required: readonly (infer TKey extends string)[];
|
|
21
|
+
} ? string extends TKey ? never : Extract<TKey, keyof Properties<TSchema>> : never;
|
|
22
|
+
type AdditionalProperties<TSchema> = TSchema extends {
|
|
165
23
|
additionalProperties: false;
|
|
166
|
-
} ?
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
24
|
+
} ? keyof Properties<TSchema> extends never ? Record<string, never> : EmptyObject : keyof Properties<TSchema> extends never ? TSchema extends {
|
|
25
|
+
additionalProperties: infer TAdditional extends object;
|
|
26
|
+
} ? Record<string, InferJsonSchema<TAdditional>> : Record<string, unknown> : Record<string, unknown>;
|
|
27
|
+
type InferObject<TSchema> = Simplify<{
|
|
28
|
+
-readonly [K in keyof Properties<TSchema> as K extends RequiredKeys<TSchema> ? K : never]-?: InferJsonSchema<Properties<TSchema>[K]>;
|
|
29
|
+
} & {
|
|
30
|
+
-readonly [K in keyof Properties<TSchema> as K extends RequiredKeys<TSchema> ? never : K]?: InferJsonSchema<Properties<TSchema>[K]>;
|
|
31
|
+
} & AdditionalProperties<TSchema>>;
|
|
32
|
+
type TypeKeyword<TSchema> = TSchema extends {
|
|
33
|
+
type: infer TType;
|
|
34
|
+
} ? TType : TSchema extends {
|
|
35
|
+
properties: unknown;
|
|
36
|
+
} | {
|
|
37
|
+
required: unknown;
|
|
38
|
+
} | {
|
|
39
|
+
additionalProperties: unknown;
|
|
40
|
+
} ? 'object' : never;
|
|
41
|
+
type TypeOptions<TSchema> = TypeKeyword<TSchema> extends readonly unknown[] ? Extract<TypeKeyword<TSchema>[number], JsonSchemaType> : Extract<TypeKeyword<TSchema>, JsonSchemaType>;
|
|
42
|
+
type InferType<TSchema, TType extends JsonSchemaType> = TType extends 'object' ? InferObject<TSchema> : TType extends 'array' ? TSchema extends {
|
|
173
43
|
items: infer TItems;
|
|
174
44
|
} ? InferJsonSchema<TItems>[] : unknown[] : TType extends 'string' ? string : TType extends 'number' | 'integer' ? number : TType extends 'boolean' ? boolean : TType extends 'null' ? null : unknown;
|
|
175
|
-
|
|
176
|
-
type
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
*
|
|
182
|
-
* `const` and `enum` take precedence when present.
|
|
183
|
-
*/
|
|
184
|
-
export type InferJsonSchema<TSchema> = [ConstLiteral<TSchema>] extends [never] ? [EnumLiteral<TSchema>] extends [never] ? ApplyNullable<TSchema, InferFromTypeKeyword<TSchema>> : ApplyNullable<TSchema, EnumLiteral<TSchema>> : ApplyNullable<TSchema, ConstLiteral<TSchema>>;
|
|
185
|
-
type IsWidenedTypeKeyword<TTypeKeyword> = string extends TTypeKeyword ? true : TTypeKeyword extends readonly unknown[] ? string extends TTypeKeyword[number] ? true : false : false;
|
|
186
|
-
type IncludesObjectType<TSchema> = TypeOptionsOf<TSchema> extends never ? false : 'object' extends TypeOptionsOf<TSchema> ? true : false;
|
|
187
|
-
/**
|
|
188
|
-
* Infers tool argument types from a root `InputSchema`.
|
|
189
|
-
*
|
|
190
|
-
* If the schema is not a literal object schema (for example a widened
|
|
191
|
-
* `InputSchema` loaded at runtime), this intentionally falls back to
|
|
192
|
-
* `Record<string, unknown>`.
|
|
193
|
-
*/
|
|
194
|
-
export type InferArgsFromInputSchema<TSchema> = IsWidenedTypeKeyword<TypeKeywordOf<TSchema>> extends true ? Record<string, unknown> : IncludesObjectType<TSchema> extends true ? InferObject<TSchema> : Record<string, unknown>;
|
|
45
|
+
/** Infers a TypeScript value from the supported JSON Schema keywords. */
|
|
46
|
+
export type InferJsonSchema<TSchema> = TSchema extends false ? never : TSchema extends true ? unknown : [InputSchema] extends [TSchema] ? unknown : [ConstValue<TSchema>] extends [never] ? [EnumValue<TSchema>] extends [never] ? TypeOptions<TSchema> extends never ? unknown : InferType<TSchema, TypeOptions<TSchema>> : EnumValue<TSchema> : ConstValue<TSchema>;
|
|
47
|
+
/** Infers the object or array passed to a WebMCP tool callback. */
|
|
48
|
+
export type InferArgsFromInputSchema<TSchema> = [
|
|
49
|
+
Extract<Exclude<InferJsonSchema<TSchema>, null | undefined>, WebMcpToolInput>
|
|
50
|
+
] extends [never] ? WebMcpToolInput : Extract<Exclude<InferJsonSchema<TSchema>, null | undefined>, WebMcpToolInput>;
|
|
195
51
|
export {};
|
|
196
52
|
//# sourceMappingURL=json-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":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