@henrylabs/mcp 0.13.0 → 0.15.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/code-tool-types.d.mts +2 -0
- package/code-tool-types.d.mts.map +1 -1
- package/code-tool-types.d.ts +2 -0
- package/code-tool-types.d.ts.map +1 -1
- package/code-tool.d.mts +44 -2
- package/code-tool.d.mts.map +1 -1
- package/code-tool.d.ts +44 -2
- package/code-tool.d.ts.map +1 -1
- package/code-tool.js +22 -129
- package/code-tool.js.map +1 -1
- package/code-tool.mjs +22 -96
- package/code-tool.mjs.map +1 -1
- package/docs-search-tool.d.mts +12 -6
- package/docs-search-tool.d.mts.map +1 -1
- package/docs-search-tool.d.ts +12 -6
- package/docs-search-tool.d.ts.map +1 -1
- package/docs-search-tool.js +10 -2
- package/docs-search-tool.js.map +1 -1
- package/docs-search-tool.mjs +10 -2
- package/docs-search-tool.mjs.map +1 -1
- package/package.json +3 -19
- package/server.js +1 -1
- package/server.mjs +1 -1
- package/src/code-tool-types.ts +5 -1
- package/src/code-tool.ts +32 -121
- package/src/docs-search-tool.ts +14 -3
- package/src/server.ts +1 -1
- package/src/tools/cart/create-cart-checkout.ts +5 -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/orders/retrieve-status-orders.ts +1 -1
- package/src/tools/products/retrieve-product-details.ts +9 -2
- package/src/tools/products/search-products.ts +1 -1
- package/src/tools/wallet/collect-payment-details.ts +1 -1
- package/tools/cart/create-cart-checkout.d.mts +12 -6
- package/tools/cart/create-cart-checkout.d.mts.map +1 -1
- package/tools/cart/create-cart-checkout.d.ts +12 -6
- package/tools/cart/create-cart-checkout.d.ts.map +1 -1
- package/tools/cart/create-cart-checkout.js +9 -1
- package/tools/cart/create-cart-checkout.js.map +1 -1
- package/tools/cart/create-cart-checkout.mjs +6 -1
- package/tools/cart/create-cart-checkout.mjs.map +1 -1
- package/tools/cart/items/add-cart-items.d.mts +12 -6
- package/tools/cart/items/add-cart-items.d.mts.map +1 -1
- package/tools/cart/items/add-cart-items.d.ts +12 -6
- package/tools/cart/items/add-cart-items.d.ts.map +1 -1
- package/tools/cart/items/add-cart-items.js +5 -1
- package/tools/cart/items/add-cart-items.js.map +1 -1
- package/tools/cart/items/add-cart-items.mjs +2 -1
- package/tools/cart/items/add-cart-items.mjs.map +1 -1
- package/tools/cart/items/clear-cart-items.d.mts +12 -6
- package/tools/cart/items/clear-cart-items.d.mts.map +1 -1
- package/tools/cart/items/clear-cart-items.d.ts +12 -6
- package/tools/cart/items/clear-cart-items.d.ts.map +1 -1
- package/tools/cart/items/clear-cart-items.js +5 -1
- package/tools/cart/items/clear-cart-items.js.map +1 -1
- package/tools/cart/items/clear-cart-items.mjs +2 -1
- package/tools/cart/items/clear-cart-items.mjs.map +1 -1
- package/tools/cart/items/list-cart-items.d.mts +12 -6
- package/tools/cart/items/list-cart-items.d.mts.map +1 -1
- package/tools/cart/items/list-cart-items.d.ts +12 -6
- package/tools/cart/items/list-cart-items.d.ts.map +1 -1
- package/tools/cart/items/list-cart-items.js +5 -1
- package/tools/cart/items/list-cart-items.js.map +1 -1
- package/tools/cart/items/list-cart-items.mjs +2 -1
- package/tools/cart/items/list-cart-items.mjs.map +1 -1
- package/tools/cart/items/remove-cart-items.d.mts +12 -6
- package/tools/cart/items/remove-cart-items.d.mts.map +1 -1
- package/tools/cart/items/remove-cart-items.d.ts +12 -6
- package/tools/cart/items/remove-cart-items.d.ts.map +1 -1
- package/tools/cart/items/remove-cart-items.js +5 -1
- package/tools/cart/items/remove-cart-items.js.map +1 -1
- package/tools/cart/items/remove-cart-items.mjs +2 -1
- package/tools/cart/items/remove-cart-items.mjs.map +1 -1
- package/tools/orders/retrieve-status-orders.d.mts +12 -6
- package/tools/orders/retrieve-status-orders.d.mts.map +1 -1
- package/tools/orders/retrieve-status-orders.d.ts +12 -6
- package/tools/orders/retrieve-status-orders.d.ts.map +1 -1
- package/tools/orders/retrieve-status-orders.js +5 -1
- package/tools/orders/retrieve-status-orders.js.map +1 -1
- package/tools/orders/retrieve-status-orders.mjs +2 -1
- package/tools/orders/retrieve-status-orders.mjs.map +1 -1
- package/tools/products/retrieve-product-details.d.mts +12 -6
- package/tools/products/retrieve-product-details.d.mts.map +1 -1
- package/tools/products/retrieve-product-details.d.ts +12 -6
- package/tools/products/retrieve-product-details.d.ts.map +1 -1
- package/tools/products/retrieve-product-details.js +13 -1
- package/tools/products/retrieve-product-details.js.map +1 -1
- package/tools/products/retrieve-product-details.mjs +11 -2
- package/tools/products/retrieve-product-details.mjs.map +1 -1
- package/tools/products/search-products.d.mts +12 -6
- package/tools/products/search-products.d.mts.map +1 -1
- package/tools/products/search-products.d.ts +12 -6
- package/tools/products/search-products.d.ts.map +1 -1
- package/tools/products/search-products.js +5 -1
- package/tools/products/search-products.js.map +1 -1
- package/tools/products/search-products.mjs +2 -1
- package/tools/products/search-products.mjs.map +1 -1
- package/tools/wallet/collect-payment-details.d.mts +12 -6
- package/tools/wallet/collect-payment-details.d.mts.map +1 -1
- package/tools/wallet/collect-payment-details.d.ts +12 -6
- package/tools/wallet/collect-payment-details.d.ts.map +1 -1
- package/tools/wallet/collect-payment-details.js +5 -1
- package/tools/wallet/collect-payment-details.js.map +1 -1
- package/tools/wallet/collect-payment-details.mjs +2 -1
- package/tools/wallet/collect-payment-details.mjs.map +1 -1
- package/code-tool-paths.cjs +0 -6
- package/code-tool-paths.cjs.map +0 -1
- package/code-tool-paths.d.cts +0 -2
- package/code-tool-paths.d.cts.map +0 -1
- package/code-tool-worker.d.mts +0 -5
- package/code-tool-worker.d.mts.map +0 -1
- package/code-tool-worker.d.ts +0 -5
- package/code-tool-worker.d.ts.map +0 -1
- package/code-tool-worker.js +0 -162
- package/code-tool-worker.js.map +0 -1
- package/code-tool-worker.mjs +0 -157
- package/code-tool-worker.mjs.map +0 -1
- package/src/code-tool-paths.cts +0 -3
- package/src/code-tool-worker.ts +0 -208
|
@@ -7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
10
|
inputSchema: {
|
|
13
11
|
[x: string]: unknown;
|
|
14
12
|
type: "object";
|
|
15
13
|
properties?: {
|
|
16
|
-
[x: string]:
|
|
14
|
+
[x: string]: object;
|
|
17
15
|
} | undefined;
|
|
18
16
|
required?: string[] | undefined;
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
name: string;
|
|
21
19
|
description?: string | undefined;
|
|
22
20
|
outputSchema?: {
|
|
23
21
|
[x: string]: unknown;
|
|
24
22
|
type: "object";
|
|
25
23
|
properties?: {
|
|
26
|
-
[x: string]:
|
|
24
|
+
[x: string]: object;
|
|
27
25
|
} | undefined;
|
|
28
26
|
required?: string[] | undefined;
|
|
29
27
|
} | undefined;
|
|
30
28
|
annotations?: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
29
|
title?: string | undefined;
|
|
33
30
|
readOnlyHint?: boolean | undefined;
|
|
34
31
|
destructiveHint?: boolean | undefined;
|
|
35
32
|
idempotentHint?: boolean | undefined;
|
|
36
33
|
openWorldHint?: boolean | undefined;
|
|
37
34
|
} | undefined;
|
|
35
|
+
execution?: {
|
|
36
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
+
} | undefined;
|
|
38
38
|
_meta?: {
|
|
39
39
|
[x: string]: unknown;
|
|
40
40
|
} | undefined;
|
|
41
|
+
icons?: {
|
|
42
|
+
src: string;
|
|
43
|
+
mimeType?: string | undefined;
|
|
44
|
+
sizes?: string[] | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
41
47
|
};
|
|
42
48
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-cart-items.d.mts","sourceRoot":"","sources":["../../../src/tools/cart/items/remove-cart-items.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,IAyBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC
|
|
1
|
+
{"version":3,"file":"remove-cart-items.d.mts","sourceRoot":"","sources":["../../../src/tools/cart/items/remove-cart-items.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,IAyBlB,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"}
|
|
@@ -7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
10
|
inputSchema: {
|
|
13
11
|
[x: string]: unknown;
|
|
14
12
|
type: "object";
|
|
15
13
|
properties?: {
|
|
16
|
-
[x: string]:
|
|
14
|
+
[x: string]: object;
|
|
17
15
|
} | undefined;
|
|
18
16
|
required?: string[] | undefined;
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
name: string;
|
|
21
19
|
description?: string | undefined;
|
|
22
20
|
outputSchema?: {
|
|
23
21
|
[x: string]: unknown;
|
|
24
22
|
type: "object";
|
|
25
23
|
properties?: {
|
|
26
|
-
[x: string]:
|
|
24
|
+
[x: string]: object;
|
|
27
25
|
} | undefined;
|
|
28
26
|
required?: string[] | undefined;
|
|
29
27
|
} | undefined;
|
|
30
28
|
annotations?: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
29
|
title?: string | undefined;
|
|
33
30
|
readOnlyHint?: boolean | undefined;
|
|
34
31
|
destructiveHint?: boolean | undefined;
|
|
35
32
|
idempotentHint?: boolean | undefined;
|
|
36
33
|
openWorldHint?: boolean | undefined;
|
|
37
34
|
} | undefined;
|
|
35
|
+
execution?: {
|
|
36
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
+
} | undefined;
|
|
38
38
|
_meta?: {
|
|
39
39
|
[x: string]: unknown;
|
|
40
40
|
} | undefined;
|
|
41
|
+
icons?: {
|
|
42
|
+
src: string;
|
|
43
|
+
mimeType?: string | undefined;
|
|
44
|
+
sizes?: string[] | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
41
47
|
};
|
|
42
48
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-cart-items.d.ts","sourceRoot":"","sources":["../../../src/tools/cart/items/remove-cart-items.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,IAyBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC
|
|
1
|
+
{"version":3,"file":"remove-cart-items.d.ts","sourceRoot":"","sources":["../../../src/tools/cart/items/remove-cart-items.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,IAyBlB,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,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
3
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
7
|
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
8
|
const filtering_1 = require("@henrylabs/mcp/filtering");
|
|
6
9
|
const types_1 = require("@henrylabs/mcp/tools/types");
|
|
10
|
+
const sdk_1 = __importDefault(require("@henrylabs/sdk"));
|
|
7
11
|
exports.metadata = {
|
|
8
12
|
resource: 'cart.items',
|
|
9
13
|
operation: 'write',
|
|
@@ -42,7 +46,7 @@ const handler = async (client, args) => {
|
|
|
42
46
|
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.cart.items.remove(productId, body)));
|
|
43
47
|
}
|
|
44
48
|
catch (error) {
|
|
45
|
-
if ((0, filtering_1.isJqError)(error)) {
|
|
49
|
+
if (error instanceof sdk_1.default.APIError || (0, filtering_1.isJqError)(error)) {
|
|
46
50
|
return (0, types_1.asErrorResult)(error.message);
|
|
47
51
|
}
|
|
48
52
|
throw error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-cart-items.js","sourceRoot":"","sources":["../../../src/tools/cart/items/remove-cart-items.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"remove-cart-items.js","sourceRoot":"","sources":["../../../src/tools/cart/items/remove-cart-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;AAEtF,wDAAkE;AAClE,sDAA0F;AAG1F,yDAAsC;AAEzB,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,6wBAA6wB;IAC/wB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;KACrC;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACtD,IAAI,CAAC;QACH,OAAO,IAAA,2BAAmB,EAAC,MAAM,IAAA,uBAAW,EAAC,SAAS,EAAE,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5G,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,aAAQ,CAAC,QAAQ,IAAI,IAAA,qBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,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,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { isJqError, maybeFilter } from '@henrylabs/mcp/filtering';
|
|
3
3
|
import { asErrorResult, asTextContentResult } from '@henrylabs/mcp/tools/types';
|
|
4
|
+
import HenrySDK from '@henrylabs/sdk';
|
|
4
5
|
export const metadata = {
|
|
5
6
|
resource: 'cart.items',
|
|
6
7
|
operation: 'write',
|
|
@@ -39,7 +40,7 @@ export const handler = async (client, args) => {
|
|
|
39
40
|
return asTextContentResult(await maybeFilter(jq_filter, await client.cart.items.remove(productId, body)));
|
|
40
41
|
}
|
|
41
42
|
catch (error) {
|
|
42
|
-
if (isJqError(error)) {
|
|
43
|
+
if (error instanceof HenrySDK.APIError || isJqError(error)) {
|
|
43
44
|
return asErrorResult(error.message);
|
|
44
45
|
}
|
|
45
46
|
throw error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-cart-items.mjs","sourceRoot":"","sources":["../../../src/tools/cart/items/remove-cart-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC1D,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B;
|
|
1
|
+
{"version":3,"file":"remove-cart-items.mjs","sourceRoot":"","sources":["../../../src/tools/cart/items/remove-cart-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC1D,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B;OAGlF,QAAQ,MAAM,gBAAgB;AAErC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,gBAAgB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACT,6wBAA6wB;IAC/wB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,WAAW;gBAClB,WAAW,EACT,kWAAkW;aACrW;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;KACrC;IACD,WAAW,EAAE;QACX,cAAc,EAAE,IAAI;KACrB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACtD,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,WAAW,CAAC,SAAS,EAAE,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5G,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,CAAC,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
10
|
inputSchema: {
|
|
13
11
|
[x: string]: unknown;
|
|
14
12
|
type: "object";
|
|
15
13
|
properties?: {
|
|
16
|
-
[x: string]:
|
|
14
|
+
[x: string]: object;
|
|
17
15
|
} | undefined;
|
|
18
16
|
required?: string[] | undefined;
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
name: string;
|
|
21
19
|
description?: string | undefined;
|
|
22
20
|
outputSchema?: {
|
|
23
21
|
[x: string]: unknown;
|
|
24
22
|
type: "object";
|
|
25
23
|
properties?: {
|
|
26
|
-
[x: string]:
|
|
24
|
+
[x: string]: object;
|
|
27
25
|
} | undefined;
|
|
28
26
|
required?: string[] | undefined;
|
|
29
27
|
} | undefined;
|
|
30
28
|
annotations?: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
29
|
title?: string | undefined;
|
|
33
30
|
readOnlyHint?: boolean | undefined;
|
|
34
31
|
destructiveHint?: boolean | undefined;
|
|
35
32
|
idempotentHint?: boolean | undefined;
|
|
36
33
|
openWorldHint?: boolean | undefined;
|
|
37
34
|
} | undefined;
|
|
35
|
+
execution?: {
|
|
36
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
+
} | undefined;
|
|
38
38
|
_meta?: {
|
|
39
39
|
[x: string]: unknown;
|
|
40
40
|
} | undefined;
|
|
41
|
+
icons?: {
|
|
42
|
+
src: string;
|
|
43
|
+
mimeType?: string | undefined;
|
|
44
|
+
sizes?: string[] | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
41
47
|
};
|
|
42
48
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-status-orders.d.mts","sourceRoot":"","sources":["../../src/tools/orders/retrieve-status-orders.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,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC
|
|
1
|
+
{"version":3,"file":"retrieve-status-orders.d.mts","sourceRoot":"","sources":["../../src/tools/orders/retrieve-status-orders.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,IAsBlB,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"}
|
|
@@ -7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
10
|
inputSchema: {
|
|
13
11
|
[x: string]: unknown;
|
|
14
12
|
type: "object";
|
|
15
13
|
properties?: {
|
|
16
|
-
[x: string]:
|
|
14
|
+
[x: string]: object;
|
|
17
15
|
} | undefined;
|
|
18
16
|
required?: string[] | undefined;
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
name: string;
|
|
21
19
|
description?: string | undefined;
|
|
22
20
|
outputSchema?: {
|
|
23
21
|
[x: string]: unknown;
|
|
24
22
|
type: "object";
|
|
25
23
|
properties?: {
|
|
26
|
-
[x: string]:
|
|
24
|
+
[x: string]: object;
|
|
27
25
|
} | undefined;
|
|
28
26
|
required?: string[] | undefined;
|
|
29
27
|
} | undefined;
|
|
30
28
|
annotations?: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
29
|
title?: string | undefined;
|
|
33
30
|
readOnlyHint?: boolean | undefined;
|
|
34
31
|
destructiveHint?: boolean | undefined;
|
|
35
32
|
idempotentHint?: boolean | undefined;
|
|
36
33
|
openWorldHint?: boolean | undefined;
|
|
37
34
|
} | undefined;
|
|
35
|
+
execution?: {
|
|
36
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
+
} | undefined;
|
|
38
38
|
_meta?: {
|
|
39
39
|
[x: string]: unknown;
|
|
40
40
|
} | undefined;
|
|
41
|
+
icons?: {
|
|
42
|
+
src: string;
|
|
43
|
+
mimeType?: string | undefined;
|
|
44
|
+
sizes?: string[] | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
41
47
|
};
|
|
42
48
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-status-orders.d.ts","sourceRoot":"","sources":["../../src/tools/orders/retrieve-status-orders.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,IAsBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC
|
|
1
|
+
{"version":3,"file":"retrieve-status-orders.d.ts","sourceRoot":"","sources":["../../src/tools/orders/retrieve-status-orders.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,IAsBlB,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,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
3
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
7
|
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
8
|
const filtering_1 = require("@henrylabs/mcp/filtering");
|
|
6
9
|
const types_1 = require("@henrylabs/mcp/tools/types");
|
|
10
|
+
const sdk_1 = __importDefault(require("@henrylabs/sdk"));
|
|
7
11
|
exports.metadata = {
|
|
8
12
|
resource: 'orders',
|
|
9
13
|
operation: 'read',
|
|
@@ -39,7 +43,7 @@ const handler = async (client, args) => {
|
|
|
39
43
|
return (0, types_1.asTextContentResult)(await (0, filtering_1.maybeFilter)(jq_filter, await client.orders.retrieveStatus(orderId)));
|
|
40
44
|
}
|
|
41
45
|
catch (error) {
|
|
42
|
-
if ((0, filtering_1.isJqError)(error)) {
|
|
46
|
+
if (error instanceof sdk_1.default.APIError || (0, filtering_1.isJqError)(error)) {
|
|
43
47
|
return (0, types_1.asErrorResult)(error.message);
|
|
44
48
|
}
|
|
45
49
|
throw error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-status-orders.js","sourceRoot":"","sources":["../../src/tools/orders/retrieve-status-orders.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"retrie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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,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { isJqError, maybeFilter } from '@henrylabs/mcp/filtering';
|
|
3
3
|
import { asErrorResult, asTextContentResult } from '@henrylabs/mcp/tools/types';
|
|
4
|
+
import HenrySDK from '@henrylabs/sdk';
|
|
4
5
|
export const metadata = {
|
|
5
6
|
resource: 'orders',
|
|
6
7
|
operation: 'read',
|
|
@@ -36,7 +37,7 @@ export const handler = async (client, args) => {
|
|
|
36
37
|
return asTextContentResult(await maybeFilter(jq_filter, await client.orders.retrieveStatus(orderId)));
|
|
37
38
|
}
|
|
38
39
|
catch (error) {
|
|
39
|
-
if (isJqError(error)) {
|
|
40
|
+
if (error instanceof HenrySDK.APIError || isJqError(error)) {
|
|
40
41
|
return asErrorResult(error.message);
|
|
41
42
|
}
|
|
42
43
|
throw error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-status-orders.mjs","sourceRoot":"","sources":["../../src/tools/orders/retrieve-status-orders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC1D,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B;
|
|
1
|
+
{"version":3,"file":"retrieve-status-orders.mjs","sourceRoot":"","sources":["../../src/tools/orders/retrieve-status-orders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,0BAA0B;OAC1D,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B;OAGlF,QAAQ,MAAM,gBAA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7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
10
|
inputSchema: {
|
|
13
11
|
[x: string]: unknown;
|
|
14
12
|
type: "object";
|
|
15
13
|
properties?: {
|
|
16
|
-
[x: string]:
|
|
14
|
+
[x: string]: object;
|
|
17
15
|
} | undefined;
|
|
18
16
|
required?: string[] | undefined;
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
name: string;
|
|
21
19
|
description?: string | undefined;
|
|
22
20
|
outputSchema?: {
|
|
23
21
|
[x: string]: unknown;
|
|
24
22
|
type: "object";
|
|
25
23
|
properties?: {
|
|
26
|
-
[x: string]:
|
|
24
|
+
[x: string]: object;
|
|
27
25
|
} | undefined;
|
|
28
26
|
required?: string[] | undefined;
|
|
29
27
|
} | undefined;
|
|
30
28
|
annotations?: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
29
|
title?: string | undefined;
|
|
33
30
|
readOnlyHint?: boolean | undefined;
|
|
34
31
|
destructiveHint?: boolean | undefined;
|
|
35
32
|
idempotentHint?: boolean | undefined;
|
|
36
33
|
openWorldHint?: boolean | undefined;
|
|
37
34
|
} | undefined;
|
|
35
|
+
execution?: {
|
|
36
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
+
} | undefined;
|
|
38
38
|
_meta?: {
|
|
39
39
|
[x: string]: unknown;
|
|
40
40
|
} | undefined;
|
|
41
|
+
icons?: {
|
|
42
|
+
src: string;
|
|
43
|
+
mimeType?: string | undefined;
|
|
44
|
+
sizes?: string[] | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
41
47
|
};
|
|
42
48
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-product-details.d.mts","sourceRoot":"","sources":["../../src/tools/products/retrieve-product-details.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"retrieve-product-details.d.mts","sourceRoot":"","sources":["../../src/tools/products/retrieve-product-details.ts"],"names":[],"mappings":"OAEO,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,IAiBlB,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"}
|
|
@@ -7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
10
|
inputSchema: {
|
|
13
11
|
[x: string]: unknown;
|
|
14
12
|
type: "object";
|
|
15
13
|
properties?: {
|
|
16
|
-
[x: string]:
|
|
14
|
+
[x: string]: object;
|
|
17
15
|
} | undefined;
|
|
18
16
|
required?: string[] | undefined;
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
name: string;
|
|
21
19
|
description?: string | undefined;
|
|
22
20
|
outputSchema?: {
|
|
23
21
|
[x: string]: unknown;
|
|
24
22
|
type: "object";
|
|
25
23
|
properties?: {
|
|
26
|
-
[x: string]:
|
|
24
|
+
[x: string]: object;
|
|
27
25
|
} | undefined;
|
|
28
26
|
required?: string[] | undefined;
|
|
29
27
|
} | undefined;
|
|
30
28
|
annotations?: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
29
|
title?: string | undefined;
|
|
33
30
|
readOnlyHint?: boolean | undefined;
|
|
34
31
|
destructiveHint?: boolean | undefined;
|
|
35
32
|
idempotentHint?: boolean | undefined;
|
|
36
33
|
openWorldHint?: boolean | undefined;
|
|
37
34
|
} | undefined;
|
|
35
|
+
execution?: {
|
|
36
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
+
} | undefined;
|
|
38
38
|
_meta?: {
|
|
39
39
|
[x: string]: unknown;
|
|
40
40
|
} | undefined;
|
|
41
|
+
icons?: {
|
|
42
|
+
src: string;
|
|
43
|
+
mimeType?: string | undefined;
|
|
44
|
+
sizes?: string[] | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
41
47
|
};
|
|
42
48
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-product-details.d.ts","sourceRoot":"","sources":["../../src/tools/products/retrieve-product-details.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"retrieve-product-details.d.ts","sourceRoot":"","sources":["../../src/tools/products/retrieve-product-details.ts"],"names":[],"mappings":"OAEO,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,IAiBlB,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,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
3
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
7
|
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
8
|
const types_1 = require("@henrylabs/mcp/tools/types");
|
|
9
|
+
const sdk_1 = __importDefault(require("@henrylabs/sdk"));
|
|
6
10
|
exports.metadata = {
|
|
7
11
|
resource: 'products',
|
|
8
12
|
operation: 'read',
|
|
@@ -30,7 +34,15 @@ exports.tool = {
|
|
|
30
34
|
};
|
|
31
35
|
const handler = async (client, args) => {
|
|
32
36
|
const body = args;
|
|
33
|
-
|
|
37
|
+
try {
|
|
38
|
+
return (0, types_1.asTextContentResult)(await client.products.retrieveDetails(body));
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
if (error instanceof sdk_1.default.APIError) {
|
|
42
|
+
return (0, types_1.asErrorResult)(error.message);
|
|
43
|
+
}
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
34
46
|
};
|
|
35
47
|
exports.handler = handler;
|
|
36
48
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-product-details.js","sourceRoot":"","sources":["../../src/tools/products/retrieve-product-details.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"retrieve-product-details.js","sourceRoot":"","sources":["../../src/tools/products/retrieve-product-details.ts"],"names":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import { asTextContentResult } from '@henrylabs/mcp/tools/types';
|
|
2
|
+
import { asErrorResult, asTextContentResult } from '@henrylabs/mcp/tools/types';
|
|
3
|
+
import HenrySDK from '@henrylabs/sdk';
|
|
3
4
|
export const metadata = {
|
|
4
5
|
resource: 'products',
|
|
5
6
|
operation: 'read',
|
|
@@ -27,7 +28,15 @@ export const tool = {
|
|
|
27
28
|
};
|
|
28
29
|
export const handler = async (client, args) => {
|
|
29
30
|
const body = args;
|
|
30
|
-
|
|
31
|
+
try {
|
|
32
|
+
return asTextContentResult(await client.products.retrieveDetails(body));
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
if (error instanceof HenrySDK.APIError) {
|
|
36
|
+
return asErrorResult(error.message);
|
|
37
|
+
}
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
31
40
|
};
|
|
32
41
|
export default { metadata, tool, handler };
|
|
33
42
|
//# sourceMappingURL=retrieve-product-details.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrieve-product-details.mjs","sourceRoot":"","sources":["../../src/tools/products/retrieve-product-details.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,mBAAmB,EAAE,MAAM,4BAA4B;
|
|
1
|
+
{"version":3,"file":"retrieve-product-details.mjs","sourceRoot":"","sources":["../../src/tools/products/retrieve-product-details.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAY,aAAa,EAAE,mBAAmB,EAAE,MAAM,4BAA4B;OAGlF,QAAQ,MAAM,gBAAgB;AAErC,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EACT,+bAA+b;IACjc,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,YAAY;aAC1B;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;KACxB;IACD,WAAW,EAAE;QACX,YAAY,EAAE,IAAI;KACnB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAgB,EAAE,IAAyC,EAAE,EAAE;IAC3F,MAAM,IAAI,GAAG,IAAW,CAAC;IACzB,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1E,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACvC,OAAO,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
10
|
inputSchema: {
|
|
13
11
|
[x: string]: unknown;
|
|
14
12
|
type: "object";
|
|
15
13
|
properties?: {
|
|
16
|
-
[x: string]:
|
|
14
|
+
[x: string]: object;
|
|
17
15
|
} | undefined;
|
|
18
16
|
required?: string[] | undefined;
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
name: string;
|
|
21
19
|
description?: string | undefined;
|
|
22
20
|
outputSchema?: {
|
|
23
21
|
[x: string]: unknown;
|
|
24
22
|
type: "object";
|
|
25
23
|
properties?: {
|
|
26
|
-
[x: string]:
|
|
24
|
+
[x: string]: object;
|
|
27
25
|
} | undefined;
|
|
28
26
|
required?: string[] | undefined;
|
|
29
27
|
} | undefined;
|
|
30
28
|
annotations?: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
29
|
title?: string | undefined;
|
|
33
30
|
readOnlyHint?: boolean | undefined;
|
|
34
31
|
destructiveHint?: boolean | undefined;
|
|
35
32
|
idempotentHint?: boolean | undefined;
|
|
36
33
|
openWorldHint?: boolean | undefined;
|
|
37
34
|
} | undefined;
|
|
35
|
+
execution?: {
|
|
36
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
+
} | undefined;
|
|
38
38
|
_meta?: {
|
|
39
39
|
[x: string]: unknown;
|
|
40
40
|
} | undefined;
|
|
41
|
+
icons?: {
|
|
42
|
+
src: string;
|
|
43
|
+
mimeType?: string | undefined;
|
|
44
|
+
sizes?: string[] | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
41
47
|
};
|
|
42
48
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
49
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-products.d.mts","sourceRoot":"","sources":["../../src/tools/products/search-products.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,IA8ElB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,iEAUxF,CAAC
|
|
1
|
+
{"version":3,"file":"search-products.d.mts","sourceRoot":"","sources":["../../src/tools/products/search-products.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,IA8ElB,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"}
|
|
@@ -7,37 +7,43 @@ export declare const handler: (client: HenrySDK, args: Record<string, unknown> |
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
name: string;
|
|
12
10
|
inputSchema: {
|
|
13
11
|
[x: string]: unknown;
|
|
14
12
|
type: "object";
|
|
15
13
|
properties?: {
|
|
16
|
-
[x: string]:
|
|
14
|
+
[x: string]: object;
|
|
17
15
|
} | undefined;
|
|
18
16
|
required?: string[] | undefined;
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
name: string;
|
|
21
19
|
description?: string | undefined;
|
|
22
20
|
outputSchema?: {
|
|
23
21
|
[x: string]: unknown;
|
|
24
22
|
type: "object";
|
|
25
23
|
properties?: {
|
|
26
|
-
[x: string]:
|
|
24
|
+
[x: string]: object;
|
|
27
25
|
} | undefined;
|
|
28
26
|
required?: string[] | undefined;
|
|
29
27
|
} | undefined;
|
|
30
28
|
annotations?: {
|
|
31
|
-
[x: string]: unknown;
|
|
32
29
|
title?: string | undefined;
|
|
33
30
|
readOnlyHint?: boolean | undefined;
|
|
34
31
|
destructiveHint?: boolean | undefined;
|
|
35
32
|
idempotentHint?: boolean | undefined;
|
|
36
33
|
openWorldHint?: boolean | undefined;
|
|
37
34
|
} | undefined;
|
|
35
|
+
execution?: {
|
|
36
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
37
|
+
} | undefined;
|
|
38
38
|
_meta?: {
|
|
39
39
|
[x: string]: unknown;
|
|
40
40
|
} | undefined;
|
|
41
|
+
icons?: {
|
|
42
|
+
src: string;
|
|
43
|
+
mimeType?: string | undefined;
|
|
44
|
+
sizes?: string[] | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
title?: string | undefined;
|
|
41
47
|
};
|
|
42
48
|
handler: (client: HenrySDK, args: Record<string, unknown> | undefined) => Promise<import("@henrylabs/mcp/tools/types").ToolCallResult>;
|
|
43
49
|
};
|