@settlemint/sdk-mcp 2.4.0-main1ce5f55f → 2.4.0-main4e8760cf
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/dist/mcp.js +70 -303
- package/dist/mcp.js.map +12 -12
- package/package.json +5 -7
package/dist/mcp.js
CHANGED
|
@@ -16722,11 +16722,9 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
16722
16722
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
16723
16723
|
return;
|
|
16724
16724
|
}
|
|
16725
|
-
if (version !==
|
|
16725
|
+
if (version !== 8 && version !== 13) {
|
|
16726
16726
|
const message = "Missing or invalid Sec-WebSocket-Version header";
|
|
16727
|
-
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message
|
|
16728
|
-
"Sec-WebSocket-Version": "13, 8"
|
|
16729
|
-
});
|
|
16727
|
+
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
16730
16728
|
return;
|
|
16731
16729
|
}
|
|
16732
16730
|
if (!this.shouldHandle(req)) {
|
|
@@ -16865,13 +16863,13 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
16865
16863
|
\r
|
|
16866
16864
|
` + message);
|
|
16867
16865
|
}
|
|
16868
|
-
function abortHandshakeOrEmitwsClientError(server, req, socket, code, message
|
|
16866
|
+
function abortHandshakeOrEmitwsClientError(server, req, socket, code, message) {
|
|
16869
16867
|
if (server.listenerCount("wsClientError")) {
|
|
16870
16868
|
const err = new Error(message);
|
|
16871
16869
|
Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
|
|
16872
16870
|
server.emit("wsClientError", err, socket, req);
|
|
16873
16871
|
} else {
|
|
16874
|
-
abortHandshake(socket, code, message
|
|
16872
|
+
abortHandshake(socket, code, message);
|
|
16875
16873
|
}
|
|
16876
16874
|
}
|
|
16877
16875
|
});
|
|
@@ -59941,21 +59939,14 @@ class Protocol {
|
|
|
59941
59939
|
}
|
|
59942
59940
|
}
|
|
59943
59941
|
async connect(transport) {
|
|
59944
|
-
var _a, _b, _c;
|
|
59945
59942
|
this._transport = transport;
|
|
59946
|
-
const _onclose = (_a = this.transport) === null || _a === undefined ? undefined : _a.onclose;
|
|
59947
59943
|
this._transport.onclose = () => {
|
|
59948
|
-
_onclose === null || _onclose === undefined || _onclose();
|
|
59949
59944
|
this._onclose();
|
|
59950
59945
|
};
|
|
59951
|
-
const _onerror = (_b = this.transport) === null || _b === undefined ? undefined : _b.onerror;
|
|
59952
59946
|
this._transport.onerror = (error) => {
|
|
59953
|
-
_onerror === null || _onerror === undefined || _onerror(error);
|
|
59954
59947
|
this._onerror(error);
|
|
59955
59948
|
};
|
|
59956
|
-
const _onmessage = (_c = this._transport) === null || _c === undefined ? undefined : _c.onmessage;
|
|
59957
59949
|
this._transport.onmessage = (message, extra) => {
|
|
59958
|
-
_onmessage === null || _onmessage === undefined || _onmessage(message, extra);
|
|
59959
59950
|
if (isJSONRPCResponse(message) || isJSONRPCError(message)) {
|
|
59960
59951
|
this._onresponse(message);
|
|
59961
59952
|
} else if (isJSONRPCRequest(message)) {
|
|
@@ -60015,8 +60006,7 @@ class Protocol {
|
|
|
60015
60006
|
sendNotification: (notification) => this.notification(notification, { relatedRequestId: request.id }),
|
|
60016
60007
|
sendRequest: (r, resultSchema, options) => this.request(r, resultSchema, { ...options, relatedRequestId: request.id }),
|
|
60017
60008
|
authInfo: extra === null || extra === undefined ? undefined : extra.authInfo,
|
|
60018
|
-
requestId: request.id
|
|
60019
|
-
requestInfo: extra === null || extra === undefined ? undefined : extra.requestInfo
|
|
60009
|
+
requestId: request.id
|
|
60020
60010
|
};
|
|
60021
60011
|
Promise.resolve().then(() => handler(request, fullExtra)).then((result) => {
|
|
60022
60012
|
var _a2;
|
|
@@ -61731,7 +61721,7 @@ class McpServer {
|
|
|
61731
61721
|
};
|
|
61732
61722
|
}
|
|
61733
61723
|
}
|
|
61734
|
-
if (tool.outputSchema
|
|
61724
|
+
if (tool.outputSchema) {
|
|
61735
61725
|
if (!result.structuredContent) {
|
|
61736
61726
|
throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} has an output schema but no structured content was provided`);
|
|
61737
61727
|
}
|
|
@@ -62161,8 +62151,7 @@ class McpServer {
|
|
|
62161
62151
|
}
|
|
62162
62152
|
}
|
|
62163
62153
|
var EMPTY_OBJECT_JSON_SCHEMA = {
|
|
62164
|
-
type: "object"
|
|
62165
|
-
properties: {}
|
|
62154
|
+
type: "object"
|
|
62166
62155
|
};
|
|
62167
62156
|
function isZodRawShape(obj) {
|
|
62168
62157
|
if (typeof obj !== "object" || obj === null)
|
|
@@ -73565,9 +73554,9 @@ ${formattedErrors}`);
|
|
|
73565
73554
|
throw error$37;
|
|
73566
73555
|
}
|
|
73567
73556
|
}
|
|
73568
|
-
var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_
|
|
73569
|
-
var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_
|
|
73570
|
-
var AccessTokenSchema = string$1().regex(/^
|
|
73557
|
+
var ApplicationAccessTokenSchema = string$1().regex(/^sm_aat_.*$/);
|
|
73558
|
+
var PersonalAccessTokenSchema = string$1().regex(/^sm_pat_.*$/);
|
|
73559
|
+
var AccessTokenSchema = string$1().regex(/^sm_pat_.*|sm_aat_.*$/);
|
|
73571
73560
|
function tryParseJson(value, defaultValue = null) {
|
|
73572
73561
|
try {
|
|
73573
73562
|
const parsed = JSON.parse(value);
|
|
@@ -73575,7 +73564,7 @@ function tryParseJson(value, defaultValue = null) {
|
|
|
73575
73564
|
return defaultValue;
|
|
73576
73565
|
}
|
|
73577
73566
|
return parsed;
|
|
73578
|
-
} catch (
|
|
73567
|
+
} catch (err) {
|
|
73579
73568
|
return defaultValue;
|
|
73580
73569
|
}
|
|
73581
73570
|
}
|
|
@@ -90306,9 +90295,9 @@ ${formattedErrors}`);
|
|
|
90306
90295
|
throw error$372;
|
|
90307
90296
|
}
|
|
90308
90297
|
}
|
|
90309
|
-
var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_
|
|
90310
|
-
var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_
|
|
90311
|
-
var AccessTokenSchema2 = string$12().regex(/^
|
|
90298
|
+
var ApplicationAccessTokenSchema2 = string$12().regex(/^sm_aat_.*$/);
|
|
90299
|
+
var PersonalAccessTokenSchema2 = string$12().regex(/^sm_pat_.*$/);
|
|
90300
|
+
var AccessTokenSchema2 = string$12().regex(/^sm_pat_.*|sm_aat_.*$/);
|
|
90312
90301
|
function tryParseJson2(value, defaultValue = null) {
|
|
90313
90302
|
try {
|
|
90314
90303
|
const parsed = JSON.parse(value);
|
|
@@ -90316,7 +90305,7 @@ function tryParseJson2(value, defaultValue = null) {
|
|
|
90316
90305
|
return defaultValue;
|
|
90317
90306
|
}
|
|
90318
90307
|
return parsed;
|
|
90319
|
-
} catch (
|
|
90308
|
+
} catch (err) {
|
|
90320
90309
|
return defaultValue;
|
|
90321
90310
|
}
|
|
90322
90311
|
}
|
|
@@ -90400,7 +90389,7 @@ var {
|
|
|
90400
90389
|
var package_default = {
|
|
90401
90390
|
name: "@settlemint/sdk-mcp",
|
|
90402
90391
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
90403
|
-
version: "2.4.0-
|
|
90392
|
+
version: "2.4.0-main4e8760cf",
|
|
90404
90393
|
type: "module",
|
|
90405
90394
|
private: false,
|
|
90406
90395
|
license: "FSL-1.1-MIT",
|
|
@@ -90419,9 +90408,7 @@ var package_default = {
|
|
|
90419
90408
|
url: "https://github.com/settlemint/sdk/issues",
|
|
90420
90409
|
email: "support@settlemint.com"
|
|
90421
90410
|
},
|
|
90422
|
-
files: [
|
|
90423
|
-
"dist"
|
|
90424
|
-
],
|
|
90411
|
+
files: ["dist"],
|
|
90425
90412
|
exports: {
|
|
90426
90413
|
"./*": {
|
|
90427
90414
|
types: "./dist/*.d.ts",
|
|
@@ -90443,9 +90430,9 @@ var package_default = {
|
|
|
90443
90430
|
dependencies: {
|
|
90444
90431
|
"@graphql-tools/load": "8.1.0",
|
|
90445
90432
|
"@graphql-tools/url-loader": "8.0.31",
|
|
90446
|
-
"@modelcontextprotocol/sdk": "1.13.
|
|
90447
|
-
"@settlemint/sdk-js": "2.4.0-
|
|
90448
|
-
"@settlemint/sdk-utils": "2.4.0-
|
|
90433
|
+
"@modelcontextprotocol/sdk": "1.13.0",
|
|
90434
|
+
"@settlemint/sdk-js": "2.4.0-main4e8760cf",
|
|
90435
|
+
"@settlemint/sdk-utils": "2.4.0-main4e8760cf",
|
|
90449
90436
|
"@commander-js/extra-typings": "14.0.0",
|
|
90450
90437
|
commander: "14.0.0",
|
|
90451
90438
|
zod: "^3.25.0"
|
|
@@ -91276,7 +91263,7 @@ var processFieldTypes = (fields2, schema, collectedTypes) => {
|
|
|
91276
91263
|
}
|
|
91277
91264
|
};
|
|
91278
91265
|
var collectCustomTypes = (type, schema, collectedTypes = new Set) => {
|
|
91279
|
-
const typeName = type.toString().replace(/[[\]!]/g, "");
|
|
91266
|
+
const typeName = type.toString().replace(/[\[\]!]/g, "");
|
|
91280
91267
|
if (collectedTypes.has(typeName) || ["String", "Int", "Float", "Boolean", "ID"].includes(typeName)) {
|
|
91281
91268
|
return collectedTypes;
|
|
91282
91269
|
}
|
|
@@ -103570,9 +103557,8 @@ var workspaceList = (gqlClient) => {
|
|
|
103570
103557
|
const { workspaces } = await gqlClient.request(getWorkspacesAndApplications);
|
|
103571
103558
|
const allWorkspaces = workspaces.reduce((acc, workspace) => {
|
|
103572
103559
|
acc.push(workspace);
|
|
103573
|
-
if (workspace.childWorkspaces)
|
|
103560
|
+
if (workspace.childWorkspaces)
|
|
103574
103561
|
acc.push(...workspace.childWorkspaces);
|
|
103575
|
-
}
|
|
103576
103562
|
return acc;
|
|
103577
103563
|
}, []);
|
|
103578
103564
|
return allWorkspaces.sort((a3, b) => a3.name.localeCompare(b.name));
|
|
@@ -103599,9 +103585,8 @@ var workspaceDelete = (gqlClient) => {
|
|
|
103599
103585
|
var workspaceAddCredits = (gqlClient) => {
|
|
103600
103586
|
return async (workspaceId, amount) => {
|
|
103601
103587
|
const id = validate3(IdSchema2, workspaceId);
|
|
103602
|
-
if (amount <= 0)
|
|
103588
|
+
if (amount <= 0)
|
|
103603
103589
|
throw new Error("Credit amount must be a positive number");
|
|
103604
|
-
}
|
|
103605
103590
|
const { addCredits: result } = await gqlClient.request(addCredits, {
|
|
103606
103591
|
workspaceId: id,
|
|
103607
103592
|
amount
|
|
@@ -103723,9 +103708,8 @@ var applicationAccessTokenCreate = (gqlClient) => {
|
|
|
103723
103708
|
...otherArgs,
|
|
103724
103709
|
applicationId: application.id
|
|
103725
103710
|
});
|
|
103726
|
-
if (!applicationAccessToken.token)
|
|
103711
|
+
if (!applicationAccessToken.token)
|
|
103727
103712
|
throw new Error("Failed to create application access token");
|
|
103728
|
-
}
|
|
103729
103713
|
return applicationAccessToken.token;
|
|
103730
103714
|
};
|
|
103731
103715
|
};
|
|
@@ -103738,7 +103722,7 @@ function setClusterServiceDefaults(args) {
|
|
|
103738
103722
|
}
|
|
103739
103723
|
function setNetworkDefaults(args) {
|
|
103740
103724
|
const clusterServiceArgs = setClusterServiceDefaults(args);
|
|
103741
|
-
if (args.consensusAlgorithm === "BESU_QBFT")
|
|
103725
|
+
if (args.consensusAlgorithm === "BESU_QBFT")
|
|
103742
103726
|
return {
|
|
103743
103727
|
...clusterServiceArgs,
|
|
103744
103728
|
chainId: args.chainId ?? 46040,
|
|
@@ -103748,7 +103732,6 @@ function setNetworkDefaults(args) {
|
|
|
103748
103732
|
gasPrice: args.gasPrice ?? 0,
|
|
103749
103733
|
secondsPerBlock: args.secondsPerBlock ?? 2
|
|
103750
103734
|
};
|
|
103751
|
-
}
|
|
103752
103735
|
return clusterServiceArgs;
|
|
103753
103736
|
}
|
|
103754
103737
|
var BlockchainNetworkFragment = graphql(`
|
|
@@ -103911,20 +103894,6 @@ var restartBlockchainNetwork = graphql(`
|
|
|
103911
103894
|
}
|
|
103912
103895
|
}
|
|
103913
103896
|
`, [BlockchainNetworkFragment]);
|
|
103914
|
-
var pauseBlockchainNetwork = graphql(`
|
|
103915
|
-
mutation PauseBlockchainNetwork($uniqueName: String!) {
|
|
103916
|
-
pauseBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
|
|
103917
|
-
...BlockchainNetwork
|
|
103918
|
-
}
|
|
103919
|
-
}
|
|
103920
|
-
`, [BlockchainNetworkFragment]);
|
|
103921
|
-
var resumeBlockchainNetwork = graphql(`
|
|
103922
|
-
mutation ResumeBlockchainNetwork($uniqueName: String!) {
|
|
103923
|
-
resumeBlockchainNetworkByUniqueName(uniqueName: $uniqueName) {
|
|
103924
|
-
...BlockchainNetwork
|
|
103925
|
-
}
|
|
103926
|
-
}
|
|
103927
|
-
`, [BlockchainNetworkFragment]);
|
|
103928
103897
|
var blockchainNetworkList = (gqlClient) => {
|
|
103929
103898
|
return async (applicationUniqueName) => {
|
|
103930
103899
|
const { blockchainNetworksByUniqueName: { items } } = await gqlClient.request(getBlockchainNetworks, { applicationUniqueName });
|
|
@@ -103959,14 +103928,6 @@ var blockchainNetworkRestart = (gqlClient) => async (blockchainNetworkUniqueName
|
|
|
103959
103928
|
const { restartBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(restartBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
103960
103929
|
return blockchainNetwork;
|
|
103961
103930
|
};
|
|
103962
|
-
var blockchainNetworkPause = (gqlClient) => async (blockchainNetworkUniqueName) => {
|
|
103963
|
-
const { pauseBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(pauseBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
103964
|
-
return blockchainNetwork;
|
|
103965
|
-
};
|
|
103966
|
-
var blockchainNetworkResume = (gqlClient) => async (blockchainNetworkUniqueName) => {
|
|
103967
|
-
const { resumeBlockchainNetworkByUniqueName: blockchainNetwork } = await gqlClient.request(resumeBlockchainNetwork, { uniqueName: blockchainNetworkUniqueName });
|
|
103968
|
-
return blockchainNetwork;
|
|
103969
|
-
};
|
|
103970
103931
|
var BlockchainNodeFragment = graphql(`
|
|
103971
103932
|
fragment BlockchainNode on BlockchainNode {
|
|
103972
103933
|
__typename
|
|
@@ -104100,20 +104061,6 @@ var restartBlockchainNode = graphql(`
|
|
|
104100
104061
|
}
|
|
104101
104062
|
}
|
|
104102
104063
|
`, [BlockchainNodeFragment]);
|
|
104103
|
-
var pauseBlockchainNode = graphql(`
|
|
104104
|
-
mutation PauseBlockchainNode($uniqueName: String!) {
|
|
104105
|
-
pauseBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
|
|
104106
|
-
...BlockchainNode
|
|
104107
|
-
}
|
|
104108
|
-
}
|
|
104109
|
-
`, [BlockchainNodeFragment]);
|
|
104110
|
-
var resumeBlockchainNode = graphql(`
|
|
104111
|
-
mutation ResumeBlockchainNode($uniqueName: String!) {
|
|
104112
|
-
resumeBlockchainNodeByUniqueName(uniqueName: $uniqueName) {
|
|
104113
|
-
...BlockchainNode
|
|
104114
|
-
}
|
|
104115
|
-
}
|
|
104116
|
-
`, [BlockchainNodeFragment]);
|
|
104117
104064
|
var blockchainNodeList = (gqlClient) => {
|
|
104118
104065
|
return async (applicationUniqueName) => {
|
|
104119
104066
|
const { blockchainNodesByUniqueName: { items } } = await gqlClient.request(getBlockchainNodes, { applicationUniqueName });
|
|
@@ -104142,14 +104089,6 @@ var blockchainNodeRestart = (gqlClient) => async (blockchainNodeUniqueName) => {
|
|
|
104142
104089
|
const { restartBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(restartBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
104143
104090
|
return blockchainNode;
|
|
104144
104091
|
};
|
|
104145
|
-
var blockchainNodePause = (gqlClient) => async (blockchainNodeUniqueName) => {
|
|
104146
|
-
const { pauseBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(pauseBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
104147
|
-
return blockchainNode;
|
|
104148
|
-
};
|
|
104149
|
-
var blockchainNodeResume = (gqlClient) => async (blockchainNodeUniqueName) => {
|
|
104150
|
-
const { resumeBlockchainNodeByUniqueName: blockchainNode } = await gqlClient.request(resumeBlockchainNode, { uniqueName: blockchainNodeUniqueName });
|
|
104151
|
-
return blockchainNode;
|
|
104152
|
-
};
|
|
104153
104092
|
var CustomDeploymentFragment = graphql(`
|
|
104154
104093
|
fragment CustomDeployment on CustomDeployment {
|
|
104155
104094
|
id
|
|
@@ -104232,20 +104171,6 @@ var restartCustomDeployment = graphql(`
|
|
|
104232
104171
|
}
|
|
104233
104172
|
}
|
|
104234
104173
|
`, [CustomDeploymentFragment]);
|
|
104235
|
-
var pauseCustomDeployment = graphql(`
|
|
104236
|
-
mutation PauseCustomDeployment($uniqueName: String!) {
|
|
104237
|
-
pauseCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
|
|
104238
|
-
...CustomDeployment
|
|
104239
|
-
}
|
|
104240
|
-
}
|
|
104241
|
-
`, [CustomDeploymentFragment]);
|
|
104242
|
-
var resumeCustomDeployment = graphql(`
|
|
104243
|
-
mutation ResumeCustomDeployment($uniqueName: String!) {
|
|
104244
|
-
resumeCustomDeploymentByUniqueName(uniqueName: $uniqueName) {
|
|
104245
|
-
...CustomDeployment
|
|
104246
|
-
}
|
|
104247
|
-
}
|
|
104248
|
-
`, [CustomDeploymentFragment]);
|
|
104249
104174
|
var customdeploymentList = (gqlClient) => {
|
|
104250
104175
|
return async (applicationUniqueName) => {
|
|
104251
104176
|
const { customDeploymentsByUniqueName: { items } } = await gqlClient.request(getCustomDeployments, { applicationUniqueName });
|
|
@@ -104282,14 +104207,6 @@ var customDeploymentRestart = (gqlClient) => async (customDeploymentUniqueName)
|
|
|
104282
104207
|
const { restartCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(restartCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
104283
104208
|
return customDeployment;
|
|
104284
104209
|
};
|
|
104285
|
-
var customDeploymentPause = (gqlClient) => async (customDeploymentUniqueName) => {
|
|
104286
|
-
const { pauseCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(pauseCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
104287
|
-
return customDeployment;
|
|
104288
|
-
};
|
|
104289
|
-
var customDeploymentResume = (gqlClient) => async (customDeploymentUniqueName) => {
|
|
104290
|
-
const { resumeCustomDeploymentByUniqueName: customDeployment } = await gqlClient.request(resumeCustomDeployment, { uniqueName: customDeploymentUniqueName });
|
|
104291
|
-
return customDeployment;
|
|
104292
|
-
};
|
|
104293
104210
|
var getFoundryEnvConfig = graphql(`
|
|
104294
104211
|
query GetFoundryEnvConfig($blockchainNodeUniqueName: String!) {
|
|
104295
104212
|
foundryEnvConfigByUniqueName(blockchainNodeUniqueName: $blockchainNodeUniqueName)
|
|
@@ -104366,20 +104283,6 @@ var restartLoadBalancer = graphql(`
|
|
|
104366
104283
|
}
|
|
104367
104284
|
}
|
|
104368
104285
|
`, [LoadBalancerFragment]);
|
|
104369
|
-
var pauseLoadBalancer = graphql(`
|
|
104370
|
-
mutation PauseLoadBalancer($uniqueName: String!) {
|
|
104371
|
-
pauseLoadBalancerByUniqueName(uniqueName: $uniqueName) {
|
|
104372
|
-
...LoadBalancer
|
|
104373
|
-
}
|
|
104374
|
-
}
|
|
104375
|
-
`, [LoadBalancerFragment]);
|
|
104376
|
-
var resumeLoadBalancer = graphql(`
|
|
104377
|
-
mutation ResumeLoadBalancer($uniqueName: String!) {
|
|
104378
|
-
resumeLoadBalancerByUniqueName(uniqueName: $uniqueName) {
|
|
104379
|
-
...LoadBalancer
|
|
104380
|
-
}
|
|
104381
|
-
}
|
|
104382
|
-
`, [LoadBalancerFragment]);
|
|
104383
104286
|
var loadBalancerRead = (gqlClient) => {
|
|
104384
104287
|
return async (loadBalancerUniqueName) => {
|
|
104385
104288
|
const { loadBalancerByUniqueName: loadBalancer } = await gqlClient.request(getLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
@@ -104413,14 +104316,6 @@ var loadBalancerRestart = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
|
104413
104316
|
const { restartLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(restartLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
104414
104317
|
return loadBalancer;
|
|
104415
104318
|
};
|
|
104416
|
-
var loadBalancerPause = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
104417
|
-
const { pauseLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(pauseLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
104418
|
-
return loadBalancer;
|
|
104419
|
-
};
|
|
104420
|
-
var loadBalancerResume = (gqlClient) => async (loadBalancerUniqueName) => {
|
|
104421
|
-
const { resumeLoadBalancerByUniqueName: loadBalancer } = await gqlClient.request(resumeLoadBalancer, { uniqueName: loadBalancerUniqueName });
|
|
104422
|
-
return loadBalancer;
|
|
104423
|
-
};
|
|
104424
104319
|
var InsightsFragment = graphql(`
|
|
104425
104320
|
fragment Insights on Insights {
|
|
104426
104321
|
__typename
|
|
@@ -104494,20 +104389,6 @@ var restartInsights = graphql(`
|
|
|
104494
104389
|
}
|
|
104495
104390
|
}
|
|
104496
104391
|
`, [InsightsFragment]);
|
|
104497
|
-
var pauseInsights = graphql(`
|
|
104498
|
-
mutation PauseInsights($uniqueName: String!) {
|
|
104499
|
-
pauseInsightsByUniqueName(uniqueName: $uniqueName) {
|
|
104500
|
-
...Insights
|
|
104501
|
-
}
|
|
104502
|
-
}
|
|
104503
|
-
`, [InsightsFragment]);
|
|
104504
|
-
var resumeInsights = graphql(`
|
|
104505
|
-
mutation ResumeInsights($uniqueName: String!) {
|
|
104506
|
-
resumeInsightsByUniqueName(uniqueName: $uniqueName) {
|
|
104507
|
-
...Insights
|
|
104508
|
-
}
|
|
104509
|
-
}
|
|
104510
|
-
`, [InsightsFragment]);
|
|
104511
104392
|
var insightsList = (gqlClient) => {
|
|
104512
104393
|
return async (applicationUniqueName) => {
|
|
104513
104394
|
const { insightsListByUniqueName: { items } } = await gqlClient.request(getInsights, { applicationUniqueName });
|
|
@@ -104541,14 +104422,6 @@ var insightsRestart = (gqlClient) => async (insightsUniqueName) => {
|
|
|
104541
104422
|
const { restartInsightsByUniqueName: insights } = await gqlClient.request(restartInsights, { uniqueName: insightsUniqueName });
|
|
104542
104423
|
return insights;
|
|
104543
104424
|
};
|
|
104544
|
-
var insightsPause = (gqlClient) => async (insightsUniqueName) => {
|
|
104545
|
-
const { pauseInsightsByUniqueName: insights } = await gqlClient.request(pauseInsights, { uniqueName: insightsUniqueName });
|
|
104546
|
-
return insights;
|
|
104547
|
-
};
|
|
104548
|
-
var insightsResume = (gqlClient) => async (insightsUniqueName) => {
|
|
104549
|
-
const { resumeInsightsByUniqueName: insights } = await gqlClient.request(resumeInsights, { uniqueName: insightsUniqueName });
|
|
104550
|
-
return insights;
|
|
104551
|
-
};
|
|
104552
104425
|
var IntegrationFragment = graphql(`
|
|
104553
104426
|
fragment Integration on Integration {
|
|
104554
104427
|
__typename
|
|
@@ -104618,20 +104491,6 @@ var restartIntegrationTool = graphql(`
|
|
|
104618
104491
|
}
|
|
104619
104492
|
}
|
|
104620
104493
|
`, [IntegrationFragment]);
|
|
104621
|
-
var pauseIntegrationTool = graphql(`
|
|
104622
|
-
mutation PauseIntegrationTool($uniqueName: String!) {
|
|
104623
|
-
pauseIntegrationByUniqueName(uniqueName: $uniqueName) {
|
|
104624
|
-
...Integration
|
|
104625
|
-
}
|
|
104626
|
-
}
|
|
104627
|
-
`, [IntegrationFragment]);
|
|
104628
|
-
var resumeIntegrationTool = graphql(`
|
|
104629
|
-
mutation ResumeIntegrationTool($uniqueName: String!) {
|
|
104630
|
-
resumeIntegrationByUniqueName(uniqueName: $uniqueName) {
|
|
104631
|
-
...Integration
|
|
104632
|
-
}
|
|
104633
|
-
}
|
|
104634
|
-
`, [IntegrationFragment]);
|
|
104635
104494
|
var integrationToolList = (gqlClient) => {
|
|
104636
104495
|
return async (applicationUniqueName) => {
|
|
104637
104496
|
const { integrationsByUniqueName: { items } } = await gqlClient.request(getIntegrations, { applicationUniqueName });
|
|
@@ -104659,14 +104518,6 @@ var integrationToolRestart = (gqlClient) => async (integrationUniqueName) => {
|
|
|
104659
104518
|
const { restartIntegrationByUniqueName: integration } = await gqlClient.request(restartIntegrationTool, { uniqueName: integrationUniqueName });
|
|
104660
104519
|
return integration;
|
|
104661
104520
|
};
|
|
104662
|
-
var integrationToolPause = (gqlClient) => async (integrationUniqueName) => {
|
|
104663
|
-
const { pauseIntegrationByUniqueName: integration } = await gqlClient.request(pauseIntegrationTool, { uniqueName: integrationUniqueName });
|
|
104664
|
-
return integration;
|
|
104665
|
-
};
|
|
104666
|
-
var integrationToolResume = (gqlClient) => async (integrationUniqueName) => {
|
|
104667
|
-
const { resumeIntegrationByUniqueName: integration } = await gqlClient.request(resumeIntegrationTool, { uniqueName: integrationUniqueName });
|
|
104668
|
-
return integration;
|
|
104669
|
-
};
|
|
104670
104521
|
var StorageFragment = graphql(`
|
|
104671
104522
|
fragment Storage on Storage {
|
|
104672
104523
|
__typename
|
|
@@ -104736,20 +104587,6 @@ var restartStorage = graphql(`
|
|
|
104736
104587
|
}
|
|
104737
104588
|
}
|
|
104738
104589
|
`, [StorageFragment]);
|
|
104739
|
-
var pauseStorage = graphql(`
|
|
104740
|
-
mutation PauseStorage($uniqueName: String!) {
|
|
104741
|
-
pauseStorageByUniqueName(uniqueName: $uniqueName) {
|
|
104742
|
-
...Storage
|
|
104743
|
-
}
|
|
104744
|
-
}
|
|
104745
|
-
`, [StorageFragment]);
|
|
104746
|
-
var resumeStorage = graphql(`
|
|
104747
|
-
mutation ResumeStorage($uniqueName: String!) {
|
|
104748
|
-
resumeStorageByUniqueName(uniqueName: $uniqueName) {
|
|
104749
|
-
...Storage
|
|
104750
|
-
}
|
|
104751
|
-
}
|
|
104752
|
-
`, [StorageFragment]);
|
|
104753
104590
|
var storageList = (gqlClient) => {
|
|
104754
104591
|
return async (applicationUniqueName) => {
|
|
104755
104592
|
const { storagesByUniqueName: { items } } = await gqlClient.request(getStorages, { applicationUniqueName });
|
|
@@ -104777,14 +104614,6 @@ var storageRestart = (gqlClient) => async (storageUniqueName) => {
|
|
|
104777
104614
|
const { restartStorageByUniqueName: storage } = await gqlClient.request(restartStorage, { uniqueName: storageUniqueName });
|
|
104778
104615
|
return storage;
|
|
104779
104616
|
};
|
|
104780
|
-
var storagePause = (gqlClient) => async (storageUniqueName) => {
|
|
104781
|
-
const { pauseStorageByUniqueName: storage } = await gqlClient.request(pauseStorage, { uniqueName: storageUniqueName });
|
|
104782
|
-
return storage;
|
|
104783
|
-
};
|
|
104784
|
-
var storageResume = (gqlClient) => async (storageUniqueName) => {
|
|
104785
|
-
const { resumeStorageByUniqueName: storage } = await gqlClient.request(resumeStorage, { uniqueName: storageUniqueName });
|
|
104786
|
-
return storage;
|
|
104787
|
-
};
|
|
104788
104617
|
var MiddlewareFragment = graphql(`
|
|
104789
104618
|
fragment Middleware on Middleware {
|
|
104790
104619
|
__typename
|
|
@@ -104885,20 +104714,6 @@ var restartMiddleware = graphql(`
|
|
|
104885
104714
|
}
|
|
104886
104715
|
}
|
|
104887
104716
|
`, [MiddlewareFragment]);
|
|
104888
|
-
var pauseMiddleware = graphql(`
|
|
104889
|
-
mutation PauseMiddleware($uniqueName: String!) {
|
|
104890
|
-
pauseMiddlewareByUniqueName(uniqueName: $uniqueName) {
|
|
104891
|
-
...Middleware
|
|
104892
|
-
}
|
|
104893
|
-
}
|
|
104894
|
-
`, [MiddlewareFragment]);
|
|
104895
|
-
var resumeMiddleware = graphql(`
|
|
104896
|
-
mutation ResumeMiddleware($uniqueName: String!) {
|
|
104897
|
-
resumeMiddlewareByUniqueName(uniqueName: $uniqueName) {
|
|
104898
|
-
...Middleware
|
|
104899
|
-
}
|
|
104900
|
-
}
|
|
104901
|
-
`, [MiddlewareFragment]);
|
|
104902
104717
|
var middlewareList = (gqlClient) => {
|
|
104903
104718
|
return async (applicationUniqueName) => {
|
|
104904
104719
|
const { middlewaresByUniqueName: { items } } = await gqlClient.request(getMiddlewares, { applicationUniqueName });
|
|
@@ -104943,14 +104758,6 @@ var middlewareRestart = (gqlClient) => async (middlewareUniqueName) => {
|
|
|
104943
104758
|
const { restartMiddlewareByUniqueName: middleware } = await gqlClient.request(restartMiddleware, { uniqueName: middlewareUniqueName });
|
|
104944
104759
|
return middleware;
|
|
104945
104760
|
};
|
|
104946
|
-
var middlewarePause = (gqlClient) => async (middlewareUniqueName) => {
|
|
104947
|
-
const { pauseMiddlewareByUniqueName: middleware } = await gqlClient.request(pauseMiddleware, { uniqueName: middlewareUniqueName });
|
|
104948
|
-
return middleware;
|
|
104949
|
-
};
|
|
104950
|
-
var middlewareResume = (gqlClient) => async (middlewareUniqueName) => {
|
|
104951
|
-
const { resumeMiddlewareByUniqueName: middleware } = await gqlClient.request(resumeMiddleware, { uniqueName: middlewareUniqueName });
|
|
104952
|
-
return middleware;
|
|
104953
|
-
};
|
|
104954
104761
|
var getPlatformConfigQuery = graphql(`
|
|
104955
104762
|
query platformConfig {
|
|
104956
104763
|
config {
|
|
@@ -105083,20 +104890,6 @@ var restartPrivateKey = graphql(`
|
|
|
105083
104890
|
}
|
|
105084
104891
|
}
|
|
105085
104892
|
`, [PrivateKeyFragment]);
|
|
105086
|
-
var pausePrivateKey = graphql(`
|
|
105087
|
-
mutation PausePrivateKey($uniqueName: String!) {
|
|
105088
|
-
pausePrivateKeyByUniqueName(uniqueName: $uniqueName) {
|
|
105089
|
-
...PrivateKey
|
|
105090
|
-
}
|
|
105091
|
-
}
|
|
105092
|
-
`, [PrivateKeyFragment]);
|
|
105093
|
-
var resumePrivateKey = graphql(`
|
|
105094
|
-
mutation ResumePrivateKey($uniqueName: String!) {
|
|
105095
|
-
resumePrivateKeyByUniqueName(uniqueName: $uniqueName) {
|
|
105096
|
-
...PrivateKey
|
|
105097
|
-
}
|
|
105098
|
-
}
|
|
105099
|
-
`, [PrivateKeyFragment]);
|
|
105100
104893
|
var privateKeyList = (gqlClient) => {
|
|
105101
104894
|
return async (applicationUniqueName) => {
|
|
105102
104895
|
const { privateKeysByUniqueName: { items } } = await gqlClient.request(getPrivateKeys, { applicationUniqueName });
|
|
@@ -105135,14 +104928,6 @@ var privateKeyRestart = (gqlClient) => async (privateKeyUniqueName) => {
|
|
|
105135
104928
|
const { restartPrivateKeyByUniqueName: privateKey } = await gqlClient.request(restartPrivateKey, { uniqueName: privateKeyUniqueName });
|
|
105136
104929
|
return privateKey;
|
|
105137
104930
|
};
|
|
105138
|
-
var privateKeyPause = (gqlClient) => async (privateKeyUniqueName) => {
|
|
105139
|
-
const { pausePrivateKeyByUniqueName: privateKey } = await gqlClient.request(pausePrivateKey, { uniqueName: privateKeyUniqueName });
|
|
105140
|
-
return privateKey;
|
|
105141
|
-
};
|
|
105142
|
-
var privateKeyResume = (gqlClient) => async (privateKeyUniqueName) => {
|
|
105143
|
-
const { resumePrivateKeyByUniqueName: privateKey } = await gqlClient.request(resumePrivateKey, { uniqueName: privateKeyUniqueName });
|
|
105144
|
-
return privateKey;
|
|
105145
|
-
};
|
|
105146
104931
|
var ClientOptionsSchema = exports_external2.object({
|
|
105147
104932
|
accessToken: AccessTokenSchema2,
|
|
105148
104933
|
instance: UrlSchema2
|
|
@@ -105163,30 +104948,26 @@ async function getPincodeVerificationChallenges({ userWalletAddress, accessToken
|
|
|
105163
104948
|
}
|
|
105164
104949
|
});
|
|
105165
104950
|
if (!response.ok) {
|
|
105166
|
-
if (response.status === 404)
|
|
104951
|
+
if (response.status === 404)
|
|
105167
104952
|
throw new Error(`No user wallet found with address '${userWalletAddress}' for node '${nodeId}'`);
|
|
105168
|
-
}
|
|
105169
104953
|
throw new Error("Failed to get verification challenge");
|
|
105170
104954
|
}
|
|
105171
104955
|
const verificationChallenges = await response.json();
|
|
105172
104956
|
return verificationChallenges;
|
|
105173
104957
|
}
|
|
105174
104958
|
function getPincodeVerificationChallengeResponse({ verificationChallenge, pincode }) {
|
|
105175
|
-
if (!verificationChallenge?.challenge?.secret || !verificationChallenge?.challenge?.salt)
|
|
104959
|
+
if (!verificationChallenge?.challenge?.secret || !verificationChallenge?.challenge?.salt)
|
|
105176
104960
|
throw new Error("Could not authenticate pin code, invalid challenge format");
|
|
105177
|
-
}
|
|
105178
104961
|
const { secret, salt } = verificationChallenge.challenge;
|
|
105179
104962
|
return generateResponse(pincode, salt, secret);
|
|
105180
104963
|
}
|
|
105181
104964
|
function createSettleMintClient(options) {
|
|
105182
104965
|
ensureServer();
|
|
105183
|
-
if (options.instance === STANDALONE_INSTANCE2 || options.instance === LOCAL_INSTANCE2)
|
|
105184
|
-
if (options.anonymous)
|
|
104966
|
+
if (options.instance === STANDALONE_INSTANCE2 || options.instance === LOCAL_INSTANCE2)
|
|
104967
|
+
if (options.anonymous)
|
|
105185
104968
|
options.instance = "https://console.settlemint.com";
|
|
105186
|
-
|
|
104969
|
+
else
|
|
105187
104970
|
throw new Error("Standalone and local instances cannot connect to the SettleMint platform");
|
|
105188
|
-
}
|
|
105189
|
-
}
|
|
105190
104971
|
const validatedOptions = options.anonymous ? validate3(exports_external2.object({
|
|
105191
104972
|
...ClientOptionsSchema.shape,
|
|
105192
104973
|
accessToken: exports_external2.literal("")
|
|
@@ -105226,75 +105007,57 @@ function createSettleMintClient(options) {
|
|
|
105226
105007
|
read: blockchainNetworkRead(gqlClient),
|
|
105227
105008
|
create: blockchainNetworkCreate(gqlClient),
|
|
105228
105009
|
delete: blockchainNetworkDelete(gqlClient),
|
|
105229
|
-
restart: blockchainNetworkRestart(gqlClient)
|
|
105230
|
-
pause: blockchainNetworkPause(gqlClient),
|
|
105231
|
-
resume: blockchainNetworkResume(gqlClient)
|
|
105010
|
+
restart: blockchainNetworkRestart(gqlClient)
|
|
105232
105011
|
},
|
|
105233
105012
|
blockchainNode: {
|
|
105234
105013
|
list: blockchainNodeList(gqlClient),
|
|
105235
105014
|
read: blockchainNodeRead(gqlClient),
|
|
105236
105015
|
create: blockchainNodeCreate(gqlClient),
|
|
105237
|
-
restart: blockchainNodeRestart(gqlClient)
|
|
105238
|
-
pause: blockchainNodePause(gqlClient),
|
|
105239
|
-
resume: blockchainNodeResume(gqlClient)
|
|
105016
|
+
restart: blockchainNodeRestart(gqlClient)
|
|
105240
105017
|
},
|
|
105241
105018
|
loadBalancer: {
|
|
105242
105019
|
list: loadBalancerList(gqlClient),
|
|
105243
105020
|
read: loadBalancerRead(gqlClient),
|
|
105244
105021
|
create: loadBalancerCreate(gqlClient),
|
|
105245
|
-
restart: loadBalancerRestart(gqlClient)
|
|
105246
|
-
pause: loadBalancerPause(gqlClient),
|
|
105247
|
-
resume: loadBalancerResume(gqlClient)
|
|
105022
|
+
restart: loadBalancerRestart(gqlClient)
|
|
105248
105023
|
},
|
|
105249
105024
|
middleware: {
|
|
105250
105025
|
list: middlewareList(gqlClient),
|
|
105251
105026
|
read: middlewareRead(gqlClient),
|
|
105252
105027
|
graphSubgraphs: graphMiddlewareSubgraphs(gqlClient),
|
|
105253
105028
|
create: middlewareCreate(gqlClient),
|
|
105254
|
-
restart: middlewareRestart(gqlClient)
|
|
105255
|
-
pause: middlewarePause(gqlClient),
|
|
105256
|
-
resume: middlewareResume(gqlClient)
|
|
105029
|
+
restart: middlewareRestart(gqlClient)
|
|
105257
105030
|
},
|
|
105258
105031
|
integrationTool: {
|
|
105259
105032
|
list: integrationToolList(gqlClient),
|
|
105260
105033
|
read: integrationToolRead(gqlClient),
|
|
105261
105034
|
create: integrationToolCreate(gqlClient),
|
|
105262
|
-
restart: integrationToolRestart(gqlClient)
|
|
105263
|
-
pause: integrationToolPause(gqlClient),
|
|
105264
|
-
resume: integrationToolResume(gqlClient)
|
|
105035
|
+
restart: integrationToolRestart(gqlClient)
|
|
105265
105036
|
},
|
|
105266
105037
|
storage: {
|
|
105267
105038
|
list: storageList(gqlClient),
|
|
105268
105039
|
read: storageRead(gqlClient),
|
|
105269
105040
|
create: storageCreate(gqlClient),
|
|
105270
|
-
restart: storageRestart(gqlClient)
|
|
105271
|
-
pause: storagePause(gqlClient),
|
|
105272
|
-
resume: storageResume(gqlClient)
|
|
105041
|
+
restart: storageRestart(gqlClient)
|
|
105273
105042
|
},
|
|
105274
105043
|
privateKey: {
|
|
105275
105044
|
list: privateKeyList(gqlClient),
|
|
105276
105045
|
read: privatekeyRead(gqlClient),
|
|
105277
105046
|
create: privateKeyCreate(gqlClient),
|
|
105278
|
-
restart: privateKeyRestart(gqlClient)
|
|
105279
|
-
pause: privateKeyPause(gqlClient),
|
|
105280
|
-
resume: privateKeyResume(gqlClient)
|
|
105047
|
+
restart: privateKeyRestart(gqlClient)
|
|
105281
105048
|
},
|
|
105282
105049
|
insights: {
|
|
105283
105050
|
list: insightsList(gqlClient),
|
|
105284
105051
|
read: insightsRead(gqlClient),
|
|
105285
105052
|
create: insightsCreate(gqlClient),
|
|
105286
|
-
restart: insightsRestart(gqlClient)
|
|
105287
|
-
pause: insightsPause(gqlClient),
|
|
105288
|
-
resume: insightsResume(gqlClient)
|
|
105053
|
+
restart: insightsRestart(gqlClient)
|
|
105289
105054
|
},
|
|
105290
105055
|
customDeployment: {
|
|
105291
105056
|
list: customdeploymentList(gqlClient),
|
|
105292
105057
|
read: customdeploymentRead(gqlClient),
|
|
105293
105058
|
create: customdeploymentCreate(gqlClient),
|
|
105294
105059
|
update: customdeploymentUpdate(gqlClient),
|
|
105295
|
-
restart: customDeploymentRestart(gqlClient)
|
|
105296
|
-
pause: customDeploymentPause(gqlClient),
|
|
105297
|
-
resume: customDeploymentResume(gqlClient)
|
|
105060
|
+
restart: customDeploymentRestart(gqlClient)
|
|
105298
105061
|
},
|
|
105299
105062
|
foundry: { env: getEnv(gqlClient) },
|
|
105300
105063
|
applicationAccessToken: { create: applicationAccessTokenCreate(gqlClient) },
|
|
@@ -106826,6 +106589,21 @@ var promptsGet = (server, _env) => {
|
|
|
106826
106589
|
try {
|
|
106827
106590
|
const promptsDir = path2.resolve(__dirname, "../../prompts");
|
|
106828
106591
|
const promptPath = path2.join(promptsDir, category, `${name2}.ts`);
|
|
106592
|
+
try {
|
|
106593
|
+
await fs.access(promptPath);
|
|
106594
|
+
} catch (error41) {
|
|
106595
|
+
return {
|
|
106596
|
+
content: [
|
|
106597
|
+
{
|
|
106598
|
+
type: "text",
|
|
106599
|
+
name: "Prompt Not Found",
|
|
106600
|
+
description: `Prompt '${name2}' in category '${category}' not found`,
|
|
106601
|
+
mimeType: "text/plain",
|
|
106602
|
+
text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
|
|
106603
|
+
}
|
|
106604
|
+
]
|
|
106605
|
+
};
|
|
106606
|
+
}
|
|
106829
106607
|
const fileContent = await fs.readFile(promptPath, "utf-8");
|
|
106830
106608
|
return {
|
|
106831
106609
|
content: [
|
|
@@ -106839,19 +106617,6 @@ var promptsGet = (server, _env) => {
|
|
|
106839
106617
|
]
|
|
106840
106618
|
};
|
|
106841
106619
|
} catch (error41) {
|
|
106842
|
-
if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
|
|
106843
|
-
return {
|
|
106844
|
-
content: [
|
|
106845
|
-
{
|
|
106846
|
-
type: "text",
|
|
106847
|
-
name: "Prompt Not Found",
|
|
106848
|
-
description: `Prompt '${name2}' in category '${category}' not found`,
|
|
106849
|
-
mimeType: "text/plain",
|
|
106850
|
-
text: `Prompt '${name2}' in category '${category}' does not exist. Use the prompts-list tool to see available prompts.`
|
|
106851
|
-
}
|
|
106852
|
-
]
|
|
106853
|
-
};
|
|
106854
|
-
}
|
|
106855
106620
|
return {
|
|
106856
106621
|
content: [
|
|
106857
106622
|
{
|
|
@@ -106942,6 +106707,21 @@ var resourcesGet = (server, _env) => {
|
|
|
106942
106707
|
try {
|
|
106943
106708
|
const resourcesDir = path4.resolve(__dirname, "../../resources");
|
|
106944
106709
|
const resourcePath = path4.join(resourcesDir, `${name2}.ts`);
|
|
106710
|
+
try {
|
|
106711
|
+
await fs3.access(resourcePath);
|
|
106712
|
+
} catch (error41) {
|
|
106713
|
+
return {
|
|
106714
|
+
content: [
|
|
106715
|
+
{
|
|
106716
|
+
type: "text",
|
|
106717
|
+
name: "Resource Not Found",
|
|
106718
|
+
description: `Resource '${name2}' not found`,
|
|
106719
|
+
mimeType: "text/plain",
|
|
106720
|
+
text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
|
|
106721
|
+
}
|
|
106722
|
+
]
|
|
106723
|
+
};
|
|
106724
|
+
}
|
|
106945
106725
|
const fileContent = await fs3.readFile(resourcePath, "utf-8");
|
|
106946
106726
|
return {
|
|
106947
106727
|
content: [
|
|
@@ -106955,19 +106735,6 @@ var resourcesGet = (server, _env) => {
|
|
|
106955
106735
|
]
|
|
106956
106736
|
};
|
|
106957
106737
|
} catch (error41) {
|
|
106958
|
-
if (error41 instanceof Error && "code" in error41 && error41.code === "ENOENT") {
|
|
106959
|
-
return {
|
|
106960
|
-
content: [
|
|
106961
|
-
{
|
|
106962
|
-
type: "text",
|
|
106963
|
-
name: "Resource Not Found",
|
|
106964
|
-
description: `Resource '${name2}' not found`,
|
|
106965
|
-
mimeType: "text/plain",
|
|
106966
|
-
text: `Resource '${name2}' does not exist. Use the resources-list tool to see available resources.`
|
|
106967
|
-
}
|
|
106968
|
-
]
|
|
106969
|
-
};
|
|
106970
|
-
}
|
|
106971
106738
|
return {
|
|
106972
106739
|
content: [
|
|
106973
106740
|
{
|
|
@@ -107118,4 +106885,4 @@ await main().catch((error41) => {
|
|
|
107118
106885
|
process.exit(1);
|
|
107119
106886
|
});
|
|
107120
106887
|
|
|
107121
|
-
//# debugId=
|
|
106888
|
+
//# debugId=5E04EF27C2A0079564756E2164756E21
|