@henrylabs/mcp 0.12.0 → 0.14.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 +4 -51
- package/code-tool-worker.d.mts.map +1 -1
- package/code-tool-worker.d.ts.map +1 -1
- package/code-tool-worker.js +0 -4
- package/code-tool-worker.js.map +1 -1
- package/code-tool-worker.mjs +0 -4
- package/code-tool-worker.mjs.map +1 -1
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +7 -2
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +7 -2
- package/docs-search-tool.mjs.map +1 -1
- package/package.json +2 -2
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool-worker.ts +0 -4
- package/src/docs-search-tool.ts +7 -3
- package/src/server.ts +1 -1
- package/src/tools/cart/items/add-cart-items.ts +1 -1
- package/src/tools/cart/items/clear-cart-items.ts +1 -1
- package/src/tools/cart/items/list-cart-items.ts +1 -1
- package/src/tools/cart/items/remove-cart-items.ts +1 -1
- package/src/tools/index.ts +0 -4
- package/tools/cart/items/add-cart-items.js +1 -1
- package/tools/cart/items/add-cart-items.js.map +1 -1
- package/tools/cart/items/add-cart-items.mjs +1 -1
- package/tools/cart/items/add-cart-items.mjs.map +1 -1
- package/tools/cart/items/clear-cart-items.js +1 -1
- package/tools/cart/items/clear-cart-items.js.map +1 -1
- package/tools/cart/items/clear-cart-items.mjs +1 -1
- package/tools/cart/items/clear-cart-items.mjs.map +1 -1
- package/tools/cart/items/list-cart-items.js +1 -1
- package/tools/cart/items/list-cart-items.js.map +1 -1
- package/tools/cart/items/list-cart-items.mjs +1 -1
- package/tools/cart/items/list-cart-items.mjs.map +1 -1
- package/tools/cart/items/remove-cart-items.js +1 -1
- package/tools/cart/items/remove-cart-items.js.map +1 -1
- package/tools/cart/items/remove-cart-items.mjs +1 -1
- package/tools/cart/items/remove-cart-items.mjs.map +1 -1
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +0 -4
- package/tools/index.js.map +1 -1
- package/tools/index.mjs +0 -4
- package/tools/index.mjs.map +1 -1
- package/src/tools/checkout/session/confirm-checkout-session.ts +0 -108
- package/src/tools/checkout/session/create-checkout-session.ts +0 -103
- package/tools/checkout/session/confirm-checkout-session.d.mts +0 -45
- package/tools/checkout/session/confirm-checkout-session.d.mts.map +0 -1
- package/tools/checkout/session/confirm-checkout-session.d.ts +0 -45
- package/tools/checkout/session/confirm-checkout-session.d.ts.map +0 -1
- package/tools/checkout/session/confirm-checkout-session.js +0 -102
- package/tools/checkout/session/confirm-checkout-session.js.map +0 -1
- package/tools/checkout/session/confirm-checkout-session.mjs +0 -98
- package/tools/checkout/session/confirm-checkout-session.mjs.map +0 -1
- package/tools/checkout/session/create-checkout-session.d.mts +0 -45
- package/tools/checkout/session/create-checkout-session.d.mts.map +0 -1
- package/tools/checkout/session/create-checkout-session.d.ts +0 -45
- package/tools/checkout/session/create-checkout-session.d.ts.map +0 -1
- package/tools/checkout/session/create-checkout-session.js +0 -99
- package/tools/checkout/session/create-checkout-session.js.map +0 -1
- package/tools/checkout/session/create-checkout-session.mjs +0 -95
- package/tools/checkout/session/create-checkout-session.mjs.map +0 -1
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Metadata } from '@henrylabs/mcp/tools/types';
|
|
2
|
-
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
import HenrySDK from '@henrylabs/sdk';
|
|
4
|
-
export declare const metadata: Metadata;
|
|
5
|
-
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
7
|
-
declare const _default: {
|
|
8
|
-
metadata: Metadata;
|
|
9
|
-
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
|
-
inputSchema: {
|
|
13
|
-
[x: string]: unknown;
|
|
14
|
-
type: "object";
|
|
15
|
-
properties?: {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
} | undefined;
|
|
18
|
-
required?: string[] | undefined;
|
|
19
|
-
};
|
|
20
|
-
title?: string | undefined;
|
|
21
|
-
description?: string | undefined;
|
|
22
|
-
outputSchema?: {
|
|
23
|
-
[x: string]: unknown;
|
|
24
|
-
type: "object";
|
|
25
|
-
properties?: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
} | undefined;
|
|
28
|
-
required?: string[] | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
annotations?: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
|
-
title?: string | undefined;
|
|
33
|
-
readOnlyHint?: boolean | undefined;
|
|
34
|
-
destructiveHint?: boolean | undefined;
|
|
35
|
-
idempotentHint?: boolean | undefined;
|
|
36
|
-
openWorldHint?: boolean | undefined;
|
|
37
|
-
} | undefined;
|
|
38
|
-
_meta?: {
|
|
39
|
-
[x: string]: unknown;
|
|
40
|
-
} | undefined;
|
|
41
|
-
};
|
|
42
|
-
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
|
-
};
|
|
44
|
-
export default _default;
|
|
45
|
-
//# sourceMappingURL=create-checkout-session.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout-session.d.ts","sourceRoot":"","sources":["../../../src/tools/checkout/session/create-checkout-session.ts"],"names":[],"mappings":"OAGO,EAAE,QAAQ,EAAsC,MAAM,4BAA4B;OAElF,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,QAAQ,MAAM,gBAAgB;AAErC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAuElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAVoC,QAAQ,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAYzF,wBAA2C"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
-
const filtering_1 = require("@henrylabs/mcp/filtering");
|
|
6
|
-
const types_1 = require("@henrylabs/mcp/tools/types");
|
|
7
|
-
exports.metadata = {
|
|
8
|
-
resource: 'checkout.session',
|
|
9
|
-
operation: 'write',
|
|
10
|
-
tags: [],
|
|
11
|
-
httpMethod: 'post',
|
|
12
|
-
httpPath: '/checkout/session/quote',
|
|
13
|
-
operationId: 'createCheckoutSessionQuote',
|
|
14
|
-
};
|
|
15
|
-
exports.tool = {
|
|
16
|
-
name: 'create_checkout_session',
|
|
17
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate/update a checkout session for headless checkout flow. Returns pricing breakdown and session token.\n\nRequired: shippingDetails object with:\n- fullName, email, phoneNumber\n- addressLine1, city, stateOrProvince, postalCode, countryCode\n- addressLine2 (optional)\n\nReturns:\n- order_metadata: shipping details, shipping_total, tax, total_price\n- session_token: Required for confirm_checkout_session\n\nThe session_token expires, so confirm checkout soon after receiving it.\n\nHeadless checkout flow:\n1. create_checkout_session (get quote + token)\n2. collect_payment_details (save card via modal)\n3. confirm_checkout_session (finalize order)\n\nUse hosted checkout (create_cart_checkout) for simpler implementation.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/session_create_quote_response',\n $defs: {\n session_create_quote_response: {\n type: 'object',\n properties: {\n message: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n success: {\n type: 'boolean'\n },\n data: {\n type: 'object',\n properties: {\n order_metadata: {\n type: 'object',\n properties: {\n shipping: {\n type: 'object',\n additionalProperties: true\n },\n shipping_total: {\n type: 'number'\n },\n tax: {\n type: 'number'\n },\n total_price: {\n type: 'number'\n }\n },\n required: [ 'shipping',\n 'shipping_total',\n 'tax',\n 'total_price'\n ]\n },\n session_token: {\n type: 'string'\n }\n },\n required: [ 'order_metadata',\n 'session_token'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
18
|
-
inputSchema: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
shippingDetails: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
properties: {
|
|
24
|
-
addressLine1: {
|
|
25
|
-
type: 'string',
|
|
26
|
-
description: 'Address line 1',
|
|
27
|
-
},
|
|
28
|
-
city: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
description: 'City',
|
|
31
|
-
},
|
|
32
|
-
countryCode: {
|
|
33
|
-
type: 'string',
|
|
34
|
-
description: 'Country code',
|
|
35
|
-
},
|
|
36
|
-
email: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
description: 'Email',
|
|
39
|
-
},
|
|
40
|
-
fullName: {
|
|
41
|
-
type: 'string',
|
|
42
|
-
description: 'Full name',
|
|
43
|
-
},
|
|
44
|
-
phoneNumber: {
|
|
45
|
-
type: 'string',
|
|
46
|
-
description: 'Phone number',
|
|
47
|
-
},
|
|
48
|
-
postalCode: {
|
|
49
|
-
type: 'string',
|
|
50
|
-
description: 'Postal code',
|
|
51
|
-
},
|
|
52
|
-
stateOrProvince: {
|
|
53
|
-
type: 'string',
|
|
54
|
-
description: 'State or province',
|
|
55
|
-
},
|
|
56
|
-
addressLine2: {
|
|
57
|
-
type: 'string',
|
|
58
|
-
description: 'Address line 2',
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
required: [
|
|
62
|
-
'addressLine1',
|
|
63
|
-
'city',
|
|
64
|
-
'countryCode',
|
|
65
|
-
'email',
|
|
66
|
-
'fullName',
|
|
67
|
-
'phoneNumber',
|
|
68
|
-
'postalCode',
|
|
69
|
-
'stateOrProvince',
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
'x-user-id': {
|
|
73
|
-
type: 'string',
|
|
74
|
-
},
|
|
75
|
-
jq_filter: {
|
|
76
|
-
type: 'string',
|
|
77
|
-
title: 'jq Filter',
|
|
78
|
-
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
required: ['shippingDetails', 'x-user-id'],
|
|
82
|
-
},
|
|
83
|
-
annotations: {},
|
|
84
|
-
};
|
|
85
|
-
const handler = async (client, args) => {
|
|
86
|
-
const { jq_filter, ...body } = args;
|
|
87
|
-
try {
|
|
88
|
-
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.checkout.session.createQuote(body)));
|
|
89
|
-
}
|
|
90
|
-
catch (error) {
|
|
91
|
-
if ((0, filtering_1.isJqError)(error)) {
|
|
92
|
-
return (0, types_1.asErrorResult)(error.message);
|
|
93
|
-
}
|
|
94
|
-
throw error;
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
exports.handler = handler;
|
|
98
|
-
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
99
|
-
//# sourceMappingURL=create-checkout-session.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout-session.js","sourceRoot":"","sources":["../../../src/tools/checkout/session/create-checkout-session.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAkE;AAClE,sDAA0F;AAK7E,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB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gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,iBAAiB,EAAE,WAAW,CAAC;KAC3C;IACD,WAAW,EAAE,EAAE;CAChB,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5G,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,IAAA,qBAAa,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAVW,QAAA,OAAO,WAUlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { isJqError, maybeFilter } from '@henrylabs/mcp/filtering';
|
|
3
|
-
import { asErrorResult, asTextContentResult } from '@henrylabs/mcp/tools/types';
|
|
4
|
-
export const metadata = {
|
|
5
|
-
resource: 'checkout.session',
|
|
6
|
-
operation: 'write',
|
|
7
|
-
tags: [],
|
|
8
|
-
httpMethod: 'post',
|
|
9
|
-
httpPath: '/checkout/session/quote',
|
|
10
|
-
operationId: 'createCheckoutSessionQuote',
|
|
11
|
-
};
|
|
12
|
-
export const tool = {
|
|
13
|
-
name: 'create_checkout_session',
|
|
14
|
-
description: "When using this tool, always use the `jq_filter` parameter to reduce the response size and improve performance.\n\nOnly omit if you're sure you don't need the data.\n\nCreate/update a checkout session for headless checkout flow. Returns pricing breakdown and session token.\n\nRequired: shippingDetails object with:\n- fullName, email, phoneNumber\n- addressLine1, city, stateOrProvince, postalCode, countryCode\n- addressLine2 (optional)\n\nReturns:\n- order_metadata: shipping details, shipping_total, tax, total_price\n- session_token: Required for confirm_checkout_session\n\nThe session_token expires, so confirm checkout soon after receiving it.\n\nHeadless checkout flow:\n1. create_checkout_session (get quote + token)\n2. collect_payment_details (save card via modal)\n3. confirm_checkout_session (finalize order)\n\nUse hosted checkout (create_cart_checkout) for simpler implementation.\n\n\n# Response Schema\n```json\n{\n $ref: '#/$defs/session_create_quote_response',\n $defs: {\n session_create_quote_response: {\n type: 'object',\n properties: {\n message: {\n type: 'string'\n },\n status: {\n type: 'string'\n },\n success: {\n type: 'boolean'\n },\n data: {\n type: 'object',\n properties: {\n order_metadata: {\n type: 'object',\n properties: {\n shipping: {\n type: 'object',\n additionalProperties: true\n },\n shipping_total: {\n type: 'number'\n },\n tax: {\n type: 'number'\n },\n total_price: {\n type: 'number'\n }\n },\n required: [ 'shipping',\n 'shipping_total',\n 'tax',\n 'total_price'\n ]\n },\n session_token: {\n type: 'string'\n }\n },\n required: [ 'order_metadata',\n 'session_token'\n ]\n }\n },\n required: [ 'message',\n 'status',\n 'success'\n ]\n }\n }\n}\n```",
|
|
15
|
-
inputSchema: {
|
|
16
|
-
type: 'object',
|
|
17
|
-
properties: {
|
|
18
|
-
shippingDetails: {
|
|
19
|
-
type: 'object',
|
|
20
|
-
properties: {
|
|
21
|
-
addressLine1: {
|
|
22
|
-
type: 'string',
|
|
23
|
-
description: 'Address line 1',
|
|
24
|
-
},
|
|
25
|
-
city: {
|
|
26
|
-
type: 'string',
|
|
27
|
-
description: 'City',
|
|
28
|
-
},
|
|
29
|
-
countryCode: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
description: 'Country code',
|
|
32
|
-
},
|
|
33
|
-
email: {
|
|
34
|
-
type: 'string',
|
|
35
|
-
description: 'Email',
|
|
36
|
-
},
|
|
37
|
-
fullName: {
|
|
38
|
-
type: 'string',
|
|
39
|
-
description: 'Full name',
|
|
40
|
-
},
|
|
41
|
-
phoneNumber: {
|
|
42
|
-
type: 'string',
|
|
43
|
-
description: 'Phone number',
|
|
44
|
-
},
|
|
45
|
-
postalCode: {
|
|
46
|
-
type: 'string',
|
|
47
|
-
description: 'Postal code',
|
|
48
|
-
},
|
|
49
|
-
stateOrProvince: {
|
|
50
|
-
type: 'string',
|
|
51
|
-
description: 'State or province',
|
|
52
|
-
},
|
|
53
|
-
addressLine2: {
|
|
54
|
-
type: 'string',
|
|
55
|
-
description: 'Address line 2',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
required: [
|
|
59
|
-
'addressLine1',
|
|
60
|
-
'city',
|
|
61
|
-
'countryCode',
|
|
62
|
-
'email',
|
|
63
|
-
'fullName',
|
|
64
|
-
'phoneNumber',
|
|
65
|
-
'postalCode',
|
|
66
|
-
'stateOrProvince',
|
|
67
|
-
],
|
|
68
|
-
},
|
|
69
|
-
'x-user-id': {
|
|
70
|
-
type: 'string',
|
|
71
|
-
},
|
|
72
|
-
jq_filter: {
|
|
73
|
-
type: 'string',
|
|
74
|
-
title: 'jq Filter',
|
|
75
|
-
description: 'A jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available.\n\nFor example: to include only the `name` field in every object of a results array, you can provide ".results[].name".\n\nFor more information, see the [jq documentation](https://jqlang.org/manual/).',
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
required: ['shippingDetails', 'x-user-id'],
|
|
79
|
-
},
|
|
80
|
-
annotations: {},
|
|
81
|
-
};
|
|
82
|
-
export const handler = async (client, args) => {
|
|
83
|
-
const { jq_filter, ...body } = args;
|
|
84
|
-
try {
|
|
85
|
-
return asTextContentResult(await maybeFilter(jq_filter, await client.checkout.session.createQuote(body)));
|
|
86
|
-
}
|
|
87
|
-
catch (error) {
|
|
88
|
-
if (isJqError(error)) {
|
|
89
|
-
return asErrorResult(error.message);
|
|
90
|
-
}
|
|
91
|
-
throw error;
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
export default { metadata, tool, handler };
|
|
95
|
-
//# sourceMappingURL=create-checkout-session.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-checkout-session.mjs","sourceRoot":"","sources":["../../../src/tools/checkout/session/create-checkout-session.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC1D,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B;AAKzF,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,4BAA4B;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,wvEAAwvE;IAC1vE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,YAAY,EAAE;wBACZ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,gBAAgB;qBAC9B;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,MAAM;qBACpB;oBACD,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,cAAc;qBAC5B;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,OAAO;qBAC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