@settlemint/sdk-mcp 1.1.16-prc78f6086 → 1.1.16-prd12a9b64
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 +174 -228
- package/dist/mcp.js.map +11 -11
- package/package.json +8 -7
package/dist/mcp.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
import { createRequire } from "node:module";
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -10014,8 +10015,7 @@ var require_mapAsyncIterator = __commonJS((exports) => {
|
|
|
10014
10015
|
if (typeof iterator.return === "function") {
|
|
10015
10016
|
try {
|
|
10016
10017
|
await iterator.return();
|
|
10017
|
-
} catch (_e) {
|
|
10018
|
-
}
|
|
10018
|
+
} catch (_e) {}
|
|
10019
10019
|
}
|
|
10020
10020
|
throw error;
|
|
10021
10021
|
}
|
|
@@ -13988,8 +13988,7 @@ var require_p_limit = __commonJS((exports, module) => {
|
|
|
13988
13988
|
resolve(result);
|
|
13989
13989
|
try {
|
|
13990
13990
|
await result;
|
|
13991
|
-
} catch {
|
|
13992
|
-
}
|
|
13991
|
+
} catch {}
|
|
13993
13992
|
next();
|
|
13994
13993
|
};
|
|
13995
13994
|
const enqueue = (fn, resolve, ...args) => {
|
|
@@ -14037,8 +14036,7 @@ var require_constants = __commonJS((exports, module) => {
|
|
|
14037
14036
|
kListener: Symbol("kListener"),
|
|
14038
14037
|
kStatusCode: Symbol("status-code"),
|
|
14039
14038
|
kWebSocket: Symbol("websocket"),
|
|
14040
|
-
NOOP: () => {
|
|
14041
|
-
}
|
|
14039
|
+
NOOP: () => {}
|
|
14042
14040
|
};
|
|
14043
14041
|
});
|
|
14044
14042
|
|
|
@@ -14116,8 +14114,7 @@ var require_buffer_util = __commonJS((exports, module) => {
|
|
|
14116
14114
|
else
|
|
14117
14115
|
bufferUtil.unmask(buffer, mask);
|
|
14118
14116
|
};
|
|
14119
|
-
} catch (e) {
|
|
14120
|
-
}
|
|
14117
|
+
} catch (e) {}
|
|
14121
14118
|
}
|
|
14122
14119
|
});
|
|
14123
14120
|
|
|
@@ -14596,8 +14593,7 @@ var require_validation2 = __commonJS((exports, module) => {
|
|
|
14596
14593
|
module.exports.isValidUTF8 = function(buf) {
|
|
14597
14594
|
return buf.length < 32 ? _isValidUTF8(buf) : isValidUTF8(buf);
|
|
14598
14595
|
};
|
|
14599
|
-
} catch (e) {
|
|
14600
|
-
}
|
|
14596
|
+
} catch (e) {}
|
|
14601
14597
|
}
|
|
14602
14598
|
});
|
|
14603
14599
|
|
|
@@ -18883,8 +18879,7 @@ var require_utils = __commonJS((exports, module) => {
|
|
|
18883
18879
|
try {
|
|
18884
18880
|
const decoder = new TextDecoder(exports);
|
|
18885
18881
|
return decoder.decode(data);
|
|
18886
|
-
} catch {
|
|
18887
|
-
}
|
|
18882
|
+
} catch {}
|
|
18888
18883
|
}
|
|
18889
18884
|
};
|
|
18890
18885
|
function convertToUTF8(data, charset, hint) {
|
|
@@ -20614,8 +20609,7 @@ var require_multipart = __commonJS((exports, module) => {
|
|
|
20614
20609
|
`);
|
|
20615
20610
|
var BUF_CR = Buffer.from("\r");
|
|
20616
20611
|
var BUF_DASH = Buffer.from("-");
|
|
20617
|
-
function noop() {
|
|
20618
|
-
}
|
|
20612
|
+
function noop() {}
|
|
20619
20613
|
var MAX_HEADER_PAIRS = 2000;
|
|
20620
20614
|
var MAX_HEADER_SIZE = 16 * 1024;
|
|
20621
20615
|
var HPARSER_NAME = 0;
|
|
@@ -20783,10 +20777,8 @@ var require_multipart = __commonJS((exports, module) => {
|
|
|
20783
20777
|
}
|
|
20784
20778
|
}
|
|
20785
20779
|
var ignoreData = {
|
|
20786
|
-
push: (chunk, pos) => {
|
|
20787
|
-
}
|
|
20788
|
-
destroy: () => {
|
|
20789
|
-
}
|
|
20780
|
+
push: (chunk, pos) => {},
|
|
20781
|
+
destroy: () => {}
|
|
20790
20782
|
};
|
|
20791
20783
|
function callAndUnsetCb(self2, err) {
|
|
20792
20784
|
const cb = self2._writecb;
|
|
@@ -24701,8 +24693,7 @@ var require_WritableStream = __commonJS((exports) => {
|
|
|
24701
24693
|
resolve(undefined);
|
|
24702
24694
|
});
|
|
24703
24695
|
}),
|
|
24704
|
-
releaseLock() {
|
|
24705
|
-
},
|
|
24696
|
+
releaseLock() {},
|
|
24706
24697
|
write(chunk) {
|
|
24707
24698
|
if (chunk == null) {
|
|
24708
24699
|
return (0, utils_js_1.fakePromise)();
|
|
@@ -24803,8 +24794,7 @@ var require_TransformStream = __commonJS((exports) => {
|
|
|
24803
24794
|
}
|
|
24804
24795
|
};
|
|
24805
24796
|
const transform = new node_stream_1.Transform({
|
|
24806
|
-
read() {
|
|
24807
|
-
},
|
|
24797
|
+
read() {},
|
|
24808
24798
|
write(chunk, _encoding, callback) {
|
|
24809
24799
|
try {
|
|
24810
24800
|
const result = transformer.transform?.(chunk, controller);
|
|
@@ -25219,8 +25209,7 @@ var require_ValueOrPromise = __commonJS((exports) => {
|
|
|
25219
25209
|
}
|
|
25220
25210
|
if (containsPromise) {
|
|
25221
25211
|
if (rejected) {
|
|
25222
|
-
Promise.all(values).catch(() => {
|
|
25223
|
-
});
|
|
25212
|
+
Promise.all(values).catch(() => {});
|
|
25224
25213
|
return new ValueOrPromise(() => {
|
|
25225
25214
|
throw reason;
|
|
25226
25215
|
});
|
|
@@ -25411,8 +25400,7 @@ var require_dataloader = __commonJS((exports, module) => {
|
|
|
25411
25400
|
var promise;
|
|
25412
25401
|
if (value instanceof Error) {
|
|
25413
25402
|
promise = Promise.reject(value);
|
|
25414
|
-
promise["catch"](function() {
|
|
25415
|
-
});
|
|
25403
|
+
promise["catch"](function() {});
|
|
25416
25404
|
} else {
|
|
25417
25405
|
promise = Promise.resolve(value);
|
|
25418
25406
|
}
|
|
@@ -27662,8 +27650,7 @@ var require_push_directory = __commonJS((exports) => {
|
|
|
27662
27650
|
paths.push(path);
|
|
27663
27651
|
}
|
|
27664
27652
|
};
|
|
27665
|
-
var empty = () => {
|
|
27666
|
-
};
|
|
27653
|
+
var empty = () => {};
|
|
27667
27654
|
function build(root, options) {
|
|
27668
27655
|
const { includeDirs, filters, relativePaths } = options;
|
|
27669
27656
|
if (!includeDirs)
|
|
@@ -27693,8 +27680,7 @@ var require_push_file = __commonJS((exports) => {
|
|
|
27693
27680
|
var pushFile = (filename, paths) => {
|
|
27694
27681
|
paths.push(filename);
|
|
27695
27682
|
};
|
|
27696
|
-
var empty = () => {
|
|
27697
|
-
};
|
|
27683
|
+
var empty = () => {};
|
|
27698
27684
|
function build(options) {
|
|
27699
27685
|
const { excludeFiles, filters, onlyCounts } = options;
|
|
27700
27686
|
if (excludeFiles)
|
|
@@ -27733,8 +27719,7 @@ var require_group_files = __commonJS((exports) => {
|
|
|
27733
27719
|
var groupFiles = (groups, directory, files) => {
|
|
27734
27720
|
groups.push({ directory, files, dir: directory });
|
|
27735
27721
|
};
|
|
27736
|
-
var empty = () => {
|
|
27737
|
-
};
|
|
27722
|
+
var empty = () => {};
|
|
27738
27723
|
function build(options) {
|
|
27739
27724
|
return options.group ? groupFiles : empty;
|
|
27740
27725
|
}
|
|
@@ -29592,8 +29577,7 @@ var require_builder = __commonJS((exports) => {
|
|
|
29592
29577
|
try {
|
|
29593
29578
|
__require.resolve("picomatch");
|
|
29594
29579
|
pm = require_picomatch2();
|
|
29595
|
-
} catch (_e) {
|
|
29596
|
-
}
|
|
29580
|
+
} catch (_e) {}
|
|
29597
29581
|
|
|
29598
29582
|
class Builder {
|
|
29599
29583
|
globCache = {};
|
|
@@ -30327,8 +30311,7 @@ var require_utils7 = __commonJS((exports) => {
|
|
|
30327
30311
|
function numberToBytesBE(n, len) {
|
|
30328
30312
|
return hexToBytes(n.toString(16).padStart(len * 2, "0"));
|
|
30329
30313
|
}
|
|
30330
|
-
var nextTick = async () => {
|
|
30331
|
-
};
|
|
30314
|
+
var nextTick = async () => {};
|
|
30332
30315
|
exports.nextTick = nextTick;
|
|
30333
30316
|
function utf8ToBytes(str) {
|
|
30334
30317
|
if (typeof str !== "string")
|
|
@@ -30791,8 +30774,7 @@ var require_utils8 = __commonJS((exports) => {
|
|
|
30791
30774
|
}
|
|
30792
30775
|
return array2;
|
|
30793
30776
|
}
|
|
30794
|
-
var nextTick = async () => {
|
|
30795
|
-
};
|
|
30777
|
+
var nextTick = async () => {};
|
|
30796
30778
|
exports.nextTick = nextTick;
|
|
30797
30779
|
async function asyncLoop(iters, tick, cb) {
|
|
30798
30780
|
let ts = Date.now();
|
|
@@ -31789,8 +31771,7 @@ var require_modular = __commonJS((exports) => {
|
|
|
31789
31771
|
return root;
|
|
31790
31772
|
};
|
|
31791
31773
|
}
|
|
31792
|
-
if (P % _16n === _9n) {
|
|
31793
|
-
}
|
|
31774
|
+
if (P % _16n === _9n) {}
|
|
31794
31775
|
return tonelliShanks(P);
|
|
31795
31776
|
}
|
|
31796
31777
|
var isNegativeLE = (num, modulo) => (mod(num, modulo) & _1n) === _1n;
|
|
@@ -37158,8 +37139,7 @@ var require_main3 = __commonJS((exports, module) => {
|
|
|
37158
37139
|
logger.success(`✔ set ${key}${withEncryption} (${changedFilepaths.join(",")})`);
|
|
37159
37140
|
} else if (unchangedFilepaths.length > 0) {
|
|
37160
37141
|
logger.info(`no changes (${unchangedFilepaths})`);
|
|
37161
|
-
} else {
|
|
37162
|
-
}
|
|
37142
|
+
} else {}
|
|
37163
37143
|
for (const processedEnv of processedEnvs) {
|
|
37164
37144
|
if (processedEnv.privateKeyAdded) {
|
|
37165
37145
|
logger.success(`✔ key added to ${processedEnv.envKeysFilepath} (${processedEnv.privateKeyName})`);
|
|
@@ -37614,8 +37594,8 @@ var require_help = __commonJS((exports) => {
|
|
|
37614
37594
|
if (!this.showGlobalOptions)
|
|
37615
37595
|
return [];
|
|
37616
37596
|
const globalOptions = [];
|
|
37617
|
-
for (let
|
|
37618
|
-
const visibleOptions =
|
|
37597
|
+
for (let ancestorCmd = cmd.parent;ancestorCmd; ancestorCmd = ancestorCmd.parent) {
|
|
37598
|
+
const visibleOptions = ancestorCmd.options.filter((option) => !option.hidden);
|
|
37619
37599
|
globalOptions.push(...visibleOptions);
|
|
37620
37600
|
}
|
|
37621
37601
|
if (this.sortOptions) {
|
|
@@ -37625,17 +37605,17 @@ var require_help = __commonJS((exports) => {
|
|
|
37625
37605
|
}
|
|
37626
37606
|
visibleArguments(cmd) {
|
|
37627
37607
|
if (cmd._argsDescription) {
|
|
37628
|
-
cmd.
|
|
37608
|
+
cmd.registeredArguments.forEach((argument) => {
|
|
37629
37609
|
argument.description = argument.description || cmd._argsDescription[argument.name()] || "";
|
|
37630
37610
|
});
|
|
37631
37611
|
}
|
|
37632
|
-
if (cmd.
|
|
37633
|
-
return cmd.
|
|
37612
|
+
if (cmd.registeredArguments.find((argument) => argument.description)) {
|
|
37613
|
+
return cmd.registeredArguments;
|
|
37634
37614
|
}
|
|
37635
37615
|
return [];
|
|
37636
37616
|
}
|
|
37637
37617
|
subcommandTerm(cmd) {
|
|
37638
|
-
const args = cmd.
|
|
37618
|
+
const args = cmd.registeredArguments.map((arg) => humanReadableArgName(arg)).join(" ");
|
|
37639
37619
|
return cmd._name + (cmd._aliases[0] ? "|" + cmd._aliases[0] : "") + (cmd.options.length ? " [options]" : "") + (args ? " " + args : "");
|
|
37640
37620
|
}
|
|
37641
37621
|
optionTerm(option) {
|
|
@@ -37669,11 +37649,11 @@ var require_help = __commonJS((exports) => {
|
|
|
37669
37649
|
if (cmd._aliases[0]) {
|
|
37670
37650
|
cmdName = cmdName + "|" + cmd._aliases[0];
|
|
37671
37651
|
}
|
|
37672
|
-
let
|
|
37673
|
-
for (let
|
|
37674
|
-
|
|
37652
|
+
let ancestorCmdNames = "";
|
|
37653
|
+
for (let ancestorCmd = cmd.parent;ancestorCmd; ancestorCmd = ancestorCmd.parent) {
|
|
37654
|
+
ancestorCmdNames = ancestorCmd.name() + " " + ancestorCmdNames;
|
|
37675
37655
|
}
|
|
37676
|
-
return
|
|
37656
|
+
return ancestorCmdNames + cmdName + " " + cmd.usage();
|
|
37677
37657
|
}
|
|
37678
37658
|
commandDescription(cmd) {
|
|
37679
37659
|
return cmd.description();
|
|
@@ -38049,7 +38029,8 @@ var require_command = __commonJS((exports) => {
|
|
|
38049
38029
|
this.parent = null;
|
|
38050
38030
|
this._allowUnknownOption = false;
|
|
38051
38031
|
this._allowExcessArguments = true;
|
|
38052
|
-
this.
|
|
38032
|
+
this.registeredArguments = [];
|
|
38033
|
+
this._args = this.registeredArguments;
|
|
38053
38034
|
this.args = [];
|
|
38054
38035
|
this.rawArgs = [];
|
|
38055
38036
|
this.processedArgs = [];
|
|
@@ -38113,6 +38094,13 @@ var require_command = __commonJS((exports) => {
|
|
|
38113
38094
|
this._showSuggestionAfterError = sourceCommand._showSuggestionAfterError;
|
|
38114
38095
|
return this;
|
|
38115
38096
|
}
|
|
38097
|
+
_getCommandAndAncestors() {
|
|
38098
|
+
const result = [];
|
|
38099
|
+
for (let command = this;command; command = command.parent) {
|
|
38100
|
+
result.push(command);
|
|
38101
|
+
}
|
|
38102
|
+
return result;
|
|
38103
|
+
}
|
|
38116
38104
|
command(nameAndArgs, actionOptsOrExecDesc, execOpts) {
|
|
38117
38105
|
let desc = actionOptsOrExecDesc;
|
|
38118
38106
|
let opts = execOpts;
|
|
@@ -38196,20 +38184,20 @@ var require_command = __commonJS((exports) => {
|
|
|
38196
38184
|
return this;
|
|
38197
38185
|
}
|
|
38198
38186
|
arguments(names) {
|
|
38199
|
-
names.split(/ +/).forEach((detail) => {
|
|
38187
|
+
names.trim().split(/ +/).forEach((detail) => {
|
|
38200
38188
|
this.argument(detail);
|
|
38201
38189
|
});
|
|
38202
38190
|
return this;
|
|
38203
38191
|
}
|
|
38204
38192
|
addArgument(argument) {
|
|
38205
|
-
const previousArgument = this.
|
|
38193
|
+
const previousArgument = this.registeredArguments.slice(-1)[0];
|
|
38206
38194
|
if (previousArgument && previousArgument.variadic) {
|
|
38207
38195
|
throw new Error(`only the last argument can be variadic '${previousArgument.name()}'`);
|
|
38208
38196
|
}
|
|
38209
38197
|
if (argument.required && argument.defaultValue !== undefined && argument.parseArg === undefined) {
|
|
38210
38198
|
throw new Error(`a default value for a required argument is never used: '${argument.name()}'`);
|
|
38211
38199
|
}
|
|
38212
|
-
this.
|
|
38200
|
+
this.registeredArguments.push(argument);
|
|
38213
38201
|
return this;
|
|
38214
38202
|
}
|
|
38215
38203
|
addHelpCommand(enableOrNameAndArgs, description) {
|
|
@@ -38251,8 +38239,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38251
38239
|
this._exitCallback = (err) => {
|
|
38252
38240
|
if (err.code !== "commander.executeSubCommandAsync") {
|
|
38253
38241
|
throw err;
|
|
38254
|
-
} else {
|
|
38255
|
-
}
|
|
38242
|
+
} else {}
|
|
38256
38243
|
};
|
|
38257
38244
|
}
|
|
38258
38245
|
return this;
|
|
@@ -38265,7 +38252,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38265
38252
|
}
|
|
38266
38253
|
action(fn) {
|
|
38267
38254
|
const listener = (args) => {
|
|
38268
|
-
const expectedArgsCount = this.
|
|
38255
|
+
const expectedArgsCount = this.registeredArguments.length;
|
|
38269
38256
|
const actionArgs = args.slice(0, expectedArgsCount);
|
|
38270
38257
|
if (this._storeOptionsAsProperties) {
|
|
38271
38258
|
actionArgs[expectedArgsCount] = this;
|
|
@@ -38281,6 +38268,17 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38281
38268
|
createOption(flags, description) {
|
|
38282
38269
|
return new Option(flags, description);
|
|
38283
38270
|
}
|
|
38271
|
+
_callParseArg(target, value, previous, invalidArgumentMessage) {
|
|
38272
|
+
try {
|
|
38273
|
+
return target.parseArg(value, previous);
|
|
38274
|
+
} catch (err) {
|
|
38275
|
+
if (err.code === "commander.invalidArgument") {
|
|
38276
|
+
const message = `${invalidArgumentMessage} ${err.message}`;
|
|
38277
|
+
this.error(message, { exitCode: err.exitCode, code: err.code });
|
|
38278
|
+
}
|
|
38279
|
+
throw err;
|
|
38280
|
+
}
|
|
38281
|
+
}
|
|
38284
38282
|
addOption(option) {
|
|
38285
38283
|
const oname = option.name();
|
|
38286
38284
|
const name = option.attributeName();
|
|
@@ -38299,15 +38297,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38299
38297
|
}
|
|
38300
38298
|
const oldValue = this.getOptionValue(name);
|
|
38301
38299
|
if (val !== null && option.parseArg) {
|
|
38302
|
-
|
|
38303
|
-
val = option.parseArg(val, oldValue);
|
|
38304
|
-
} catch (err) {
|
|
38305
|
-
if (err.code === "commander.invalidArgument") {
|
|
38306
|
-
const message = `${invalidValueMessage} ${err.message}`;
|
|
38307
|
-
this.error(message, { exitCode: err.exitCode, code: err.code });
|
|
38308
|
-
}
|
|
38309
|
-
throw err;
|
|
38310
|
-
}
|
|
38300
|
+
val = this._callParseArg(option, val, oldValue, invalidValueMessage);
|
|
38311
38301
|
} else if (val !== null && option.variadic) {
|
|
38312
38302
|
val = option._concatValue(val, oldValue);
|
|
38313
38303
|
}
|
|
@@ -38354,11 +38344,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38354
38344
|
}
|
|
38355
38345
|
return this.addOption(option);
|
|
38356
38346
|
}
|
|
38357
|
-
option(flags, description,
|
|
38358
|
-
return this._optionEx({}, flags, description,
|
|
38347
|
+
option(flags, description, parseArg, defaultValue) {
|
|
38348
|
+
return this._optionEx({}, flags, description, parseArg, defaultValue);
|
|
38359
38349
|
}
|
|
38360
|
-
requiredOption(flags, description,
|
|
38361
|
-
return this._optionEx({ mandatory: true }, flags, description,
|
|
38350
|
+
requiredOption(flags, description, parseArg, defaultValue) {
|
|
38351
|
+
return this._optionEx({ mandatory: true }, flags, description, parseArg, defaultValue);
|
|
38362
38352
|
}
|
|
38363
38353
|
combineFlagAndOptionalValue(combine = true) {
|
|
38364
38354
|
this._combineFlagAndOptionalValue = !!combine;
|
|
@@ -38384,10 +38374,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38384
38374
|
return this;
|
|
38385
38375
|
}
|
|
38386
38376
|
storeOptionsAsProperties(storeAsProperties = true) {
|
|
38387
|
-
this._storeOptionsAsProperties = !!storeAsProperties;
|
|
38388
38377
|
if (this.options.length) {
|
|
38389
38378
|
throw new Error("call .storeOptionsAsProperties() before adding options");
|
|
38390
38379
|
}
|
|
38380
|
+
this._storeOptionsAsProperties = !!storeAsProperties;
|
|
38391
38381
|
return this;
|
|
38392
38382
|
}
|
|
38393
38383
|
getOptionValue(key) {
|
|
@@ -38413,7 +38403,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38413
38403
|
}
|
|
38414
38404
|
getOptionValueSourceWithGlobals(key) {
|
|
38415
38405
|
let source;
|
|
38416
|
-
|
|
38406
|
+
this._getCommandAndAncestors().forEach((cmd) => {
|
|
38417
38407
|
if (cmd.getOptionValueSource(key) !== undefined) {
|
|
38418
38408
|
source = cmd.getOptionValueSource(key);
|
|
38419
38409
|
}
|
|
@@ -38564,27 +38554,39 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38564
38554
|
const subCommand = this._findCommand(commandName);
|
|
38565
38555
|
if (!subCommand)
|
|
38566
38556
|
this.help({ error: true });
|
|
38567
|
-
let
|
|
38568
|
-
|
|
38569
|
-
|
|
38557
|
+
let promiseChain;
|
|
38558
|
+
promiseChain = this._chainOrCallSubCommandHook(promiseChain, subCommand, "preSubcommand");
|
|
38559
|
+
promiseChain = this._chainOrCall(promiseChain, () => {
|
|
38570
38560
|
if (subCommand._executableHandler) {
|
|
38571
38561
|
this._executeSubCommand(subCommand, operands.concat(unknown2));
|
|
38572
38562
|
} else {
|
|
38573
38563
|
return subCommand._parseCommand(operands, unknown2);
|
|
38574
38564
|
}
|
|
38575
38565
|
});
|
|
38576
|
-
return
|
|
38566
|
+
return promiseChain;
|
|
38567
|
+
}
|
|
38568
|
+
_dispatchHelpCommand(subcommandName) {
|
|
38569
|
+
if (!subcommandName) {
|
|
38570
|
+
this.help();
|
|
38571
|
+
}
|
|
38572
|
+
const subCommand = this._findCommand(subcommandName);
|
|
38573
|
+
if (subCommand && !subCommand._executableHandler) {
|
|
38574
|
+
subCommand.help();
|
|
38575
|
+
}
|
|
38576
|
+
return this._dispatchSubcommand(subcommandName, [], [
|
|
38577
|
+
this._helpLongFlag || this._helpShortFlag
|
|
38578
|
+
]);
|
|
38577
38579
|
}
|
|
38578
38580
|
_checkNumberOfArguments() {
|
|
38579
|
-
this.
|
|
38581
|
+
this.registeredArguments.forEach((arg, i) => {
|
|
38580
38582
|
if (arg.required && this.args[i] == null) {
|
|
38581
38583
|
this.missingArgument(arg.name());
|
|
38582
38584
|
}
|
|
38583
38585
|
});
|
|
38584
|
-
if (this.
|
|
38586
|
+
if (this.registeredArguments.length > 0 && this.registeredArguments[this.registeredArguments.length - 1].variadic) {
|
|
38585
38587
|
return;
|
|
38586
38588
|
}
|
|
38587
|
-
if (this.args.length > this.
|
|
38589
|
+
if (this.args.length > this.registeredArguments.length) {
|
|
38588
38590
|
this._excessArguments(this.args);
|
|
38589
38591
|
}
|
|
38590
38592
|
}
|
|
@@ -38592,21 +38594,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38592
38594
|
const myParseArg = (argument, value, previous) => {
|
|
38593
38595
|
let parsedValue = value;
|
|
38594
38596
|
if (value !== null && argument.parseArg) {
|
|
38595
|
-
|
|
38596
|
-
|
|
38597
|
-
} catch (err) {
|
|
38598
|
-
if (err.code === "commander.invalidArgument") {
|
|
38599
|
-
const message = `error: command-argument value '${value}' is invalid for argument '${argument.name()}'. ${err.message}`;
|
|
38600
|
-
this.error(message, { exitCode: err.exitCode, code: err.code });
|
|
38601
|
-
}
|
|
38602
|
-
throw err;
|
|
38603
|
-
}
|
|
38597
|
+
const invalidValueMessage = `error: command-argument value '${value}' is invalid for argument '${argument.name()}'.`;
|
|
38598
|
+
parsedValue = this._callParseArg(argument, value, previous, invalidValueMessage);
|
|
38604
38599
|
}
|
|
38605
38600
|
return parsedValue;
|
|
38606
38601
|
};
|
|
38607
38602
|
this._checkNumberOfArguments();
|
|
38608
38603
|
const processedArgs = [];
|
|
38609
|
-
this.
|
|
38604
|
+
this.registeredArguments.forEach((declaredArg, index) => {
|
|
38610
38605
|
let value = declaredArg.defaultValue;
|
|
38611
38606
|
if (declaredArg.variadic) {
|
|
38612
38607
|
if (index < this.args.length) {
|
|
@@ -38638,7 +38633,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38638
38633
|
_chainOrCallHooks(promise2, event) {
|
|
38639
38634
|
let result = promise2;
|
|
38640
38635
|
const hooks = [];
|
|
38641
|
-
|
|
38636
|
+
this._getCommandAndAncestors().reverse().filter((cmd) => cmd._lifeCycleHooks[event] !== undefined).forEach((hookedCommand) => {
|
|
38642
38637
|
hookedCommand._lifeCycleHooks[event].forEach((callback) => {
|
|
38643
38638
|
hooks.push({ hookedCommand, callback });
|
|
38644
38639
|
});
|
|
@@ -38675,10 +38670,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38675
38670
|
return this._dispatchSubcommand(operands[0], operands.slice(1), unknown2);
|
|
38676
38671
|
}
|
|
38677
38672
|
if (this._hasImplicitHelpCommand() && operands[0] === this._helpCommandName) {
|
|
38678
|
-
|
|
38679
|
-
this.help();
|
|
38680
|
-
}
|
|
38681
|
-
return this._dispatchSubcommand(operands[1], [], [this._helpLongFlag]);
|
|
38673
|
+
return this._dispatchHelpCommand(operands[1]);
|
|
38682
38674
|
}
|
|
38683
38675
|
if (this._defaultCommandName) {
|
|
38684
38676
|
outputHelpIfRequested(this, unknown2);
|
|
@@ -38699,16 +38691,16 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38699
38691
|
if (this._actionHandler) {
|
|
38700
38692
|
checkForUnknownOptions();
|
|
38701
38693
|
this._processArguments();
|
|
38702
|
-
let
|
|
38703
|
-
|
|
38704
|
-
|
|
38694
|
+
let promiseChain;
|
|
38695
|
+
promiseChain = this._chainOrCallHooks(promiseChain, "preAction");
|
|
38696
|
+
promiseChain = this._chainOrCall(promiseChain, () => this._actionHandler(this.processedArgs));
|
|
38705
38697
|
if (this.parent) {
|
|
38706
|
-
|
|
38698
|
+
promiseChain = this._chainOrCall(promiseChain, () => {
|
|
38707
38699
|
this.parent.emit(commandEvent, operands, unknown2);
|
|
38708
38700
|
});
|
|
38709
38701
|
}
|
|
38710
|
-
|
|
38711
|
-
return
|
|
38702
|
+
promiseChain = this._chainOrCallHooks(promiseChain, "postAction");
|
|
38703
|
+
return promiseChain;
|
|
38712
38704
|
}
|
|
38713
38705
|
if (this.parent && this.parent.listenerCount(commandEvent)) {
|
|
38714
38706
|
checkForUnknownOptions();
|
|
@@ -38743,13 +38735,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38743
38735
|
return this.options.find((option) => option.is(arg));
|
|
38744
38736
|
}
|
|
38745
38737
|
_checkForMissingMandatoryOptions() {
|
|
38746
|
-
|
|
38738
|
+
this._getCommandAndAncestors().forEach((cmd) => {
|
|
38747
38739
|
cmd.options.forEach((anOption) => {
|
|
38748
38740
|
if (anOption.mandatory && cmd.getOptionValue(anOption.attributeName()) === undefined) {
|
|
38749
38741
|
cmd.missingMandatoryOptionValue(anOption);
|
|
38750
38742
|
}
|
|
38751
38743
|
});
|
|
38752
|
-
}
|
|
38744
|
+
});
|
|
38753
38745
|
}
|
|
38754
38746
|
_checkForConflictingLocalOptions() {
|
|
38755
38747
|
const definedNonDefaultOptions = this.options.filter((option) => {
|
|
@@ -38768,9 +38760,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38768
38760
|
});
|
|
38769
38761
|
}
|
|
38770
38762
|
_checkForConflictingOptions() {
|
|
38771
|
-
|
|
38763
|
+
this._getCommandAndAncestors().forEach((cmd) => {
|
|
38772
38764
|
cmd._checkForConflictingLocalOptions();
|
|
38773
|
-
}
|
|
38765
|
+
});
|
|
38774
38766
|
}
|
|
38775
38767
|
parseOptions(argv) {
|
|
38776
38768
|
const operands = [];
|
|
@@ -38879,7 +38871,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38879
38871
|
return this._optionValues;
|
|
38880
38872
|
}
|
|
38881
38873
|
optsWithGlobals() {
|
|
38882
|
-
return
|
|
38874
|
+
return this._getCommandAndAncestors().reduce((combinedOptions, cmd) => Object.assign(combinedOptions, cmd.opts()), {});
|
|
38883
38875
|
}
|
|
38884
38876
|
error(message, errorOptions) {
|
|
38885
38877
|
this._outputConfiguration.outputError(`${message}
|
|
@@ -38977,7 +38969,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
38977
38969
|
_excessArguments(receivedArgs) {
|
|
38978
38970
|
if (this._allowExcessArguments)
|
|
38979
38971
|
return;
|
|
38980
|
-
const expected = this.
|
|
38972
|
+
const expected = this.registeredArguments.length;
|
|
38981
38973
|
const s = expected === 1 ? "" : "s";
|
|
38982
38974
|
const forSubcommand = this.parent ? ` for '${this.name()}'` : "";
|
|
38983
38975
|
const message = `error: too many arguments${forSubcommand}. Expected ${expected} argument${s} but got ${receivedArgs.length}.`;
|
|
@@ -39051,10 +39043,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
39051
39043
|
if (str === undefined) {
|
|
39052
39044
|
if (this._usage)
|
|
39053
39045
|
return this._usage;
|
|
39054
|
-
const args = this.
|
|
39046
|
+
const args = this.registeredArguments.map((arg) => {
|
|
39055
39047
|
return humanReadableArgName(arg);
|
|
39056
39048
|
});
|
|
39057
|
-
return [].concat(this.options.length || this._hasHelpOption ? "[options]" : [], this.commands.length ? "[command]" : [], this.
|
|
39049
|
+
return [].concat(this.options.length || this._hasHelpOption ? "[options]" : [], this.commands.length ? "[command]" : [], this.registeredArguments.length ? args : []).join(" ");
|
|
39058
39050
|
}
|
|
39059
39051
|
this._usage = str;
|
|
39060
39052
|
return this;
|
|
@@ -39102,7 +39094,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
39102
39094
|
contextOptions = undefined;
|
|
39103
39095
|
}
|
|
39104
39096
|
const context = this._getHelpContext(contextOptions);
|
|
39105
|
-
|
|
39097
|
+
this._getCommandAndAncestors().reverse().forEach((command) => command.emit("beforeAllHelp", context));
|
|
39106
39098
|
this.emit("beforeHelp", context);
|
|
39107
39099
|
let helpInformation = this.helpInformation(context);
|
|
39108
39100
|
if (deprecatedCallback) {
|
|
@@ -39112,9 +39104,11 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
39112
39104
|
}
|
|
39113
39105
|
}
|
|
39114
39106
|
context.write(helpInformation);
|
|
39115
|
-
|
|
39107
|
+
if (this._helpLongFlag) {
|
|
39108
|
+
this.emit(this._helpLongFlag);
|
|
39109
|
+
}
|
|
39116
39110
|
this.emit("afterHelp", context);
|
|
39117
|
-
|
|
39111
|
+
this._getCommandAndAncestors().forEach((command) => command.emit("afterAllHelp", context));
|
|
39118
39112
|
}
|
|
39119
39113
|
helpOption(flags, description) {
|
|
39120
39114
|
if (typeof flags === "boolean") {
|
|
@@ -39194,13 +39188,6 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
39194
39188
|
return arg;
|
|
39195
39189
|
});
|
|
39196
39190
|
}
|
|
39197
|
-
function getCommandAndParents(startCommand) {
|
|
39198
|
-
const result = [];
|
|
39199
|
-
for (let command = startCommand;command; command = command.parent) {
|
|
39200
|
-
result.push(command);
|
|
39201
|
-
}
|
|
39202
|
-
return result;
|
|
39203
|
-
}
|
|
39204
39191
|
exports.Command = Command;
|
|
39205
39192
|
});
|
|
39206
39193
|
|
|
@@ -39213,13 +39200,13 @@ var require_commander = __commonJS((exports, module) => {
|
|
|
39213
39200
|
var { Option } = require_option();
|
|
39214
39201
|
exports = module.exports = new Command;
|
|
39215
39202
|
exports.program = exports;
|
|
39216
|
-
exports.Argument = Argument;
|
|
39217
39203
|
exports.Command = Command;
|
|
39218
|
-
exports.
|
|
39204
|
+
exports.Option = Option;
|
|
39205
|
+
exports.Argument = Argument;
|
|
39219
39206
|
exports.Help = Help;
|
|
39207
|
+
exports.CommanderError = CommanderError;
|
|
39220
39208
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
39221
39209
|
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
39222
|
-
exports.Option = Option;
|
|
39223
39210
|
});
|
|
39224
39211
|
// ../../node_modules/@graphql-tools/utils/esm/helpers.js
|
|
39225
39212
|
var import_graphql = __toESM(require_graphql2(), 1);
|
|
@@ -42350,8 +42337,7 @@ function getCustomLoaderByPath(path, cwd) {
|
|
|
42350
42337
|
return requiredModule;
|
|
42351
42338
|
}
|
|
42352
42339
|
}
|
|
42353
|
-
} catch (e) {
|
|
42354
|
-
}
|
|
42340
|
+
} catch (e) {}
|
|
42355
42341
|
return null;
|
|
42356
42342
|
}
|
|
42357
42343
|
async function useCustomLoader(loaderPointer, cwd) {
|
|
@@ -42386,8 +42372,7 @@ function useStack(...fns) {
|
|
|
42386
42372
|
return (input) => {
|
|
42387
42373
|
function createNext(i) {
|
|
42388
42374
|
if (i >= fns.length) {
|
|
42389
|
-
return () => {
|
|
42390
|
-
};
|
|
42375
|
+
return () => {};
|
|
42391
42376
|
}
|
|
42392
42377
|
return function next() {
|
|
42393
42378
|
fns[i](input, createNext(i + 1));
|
|
@@ -44321,8 +44306,7 @@ function createClient(options) {
|
|
|
44321
44306
|
})())));
|
|
44322
44307
|
if (socket.readyState === WebSocketImpl.CLOSING)
|
|
44323
44308
|
await throwOnClose;
|
|
44324
|
-
let release = () => {
|
|
44325
|
-
};
|
|
44309
|
+
let release = () => {};
|
|
44326
44310
|
const released = new Promise((resolve) => release = resolve);
|
|
44327
44311
|
return [
|
|
44328
44312
|
socket,
|
|
@@ -44458,8 +44442,7 @@ function createClient(options) {
|
|
|
44458
44442
|
const deferred = {
|
|
44459
44443
|
done: false,
|
|
44460
44444
|
error: null,
|
|
44461
|
-
resolve: () => {
|
|
44462
|
-
}
|
|
44445
|
+
resolve: () => {}
|
|
44463
44446
|
};
|
|
44464
44447
|
const dispose = subscribe(request, {
|
|
44465
44448
|
next(val) {
|
|
@@ -44620,8 +44603,7 @@ if (!shouldSkipPonyfill()) {
|
|
|
44620
44603
|
try {
|
|
44621
44604
|
const nodelibcurlName = "node-libcurl";
|
|
44622
44605
|
globalThis.libcurl = globalThis.libcurl || __require(nodelibcurlName);
|
|
44623
|
-
} catch (e) {
|
|
44624
|
-
}
|
|
44606
|
+
} catch (e) {}
|
|
44625
44607
|
}
|
|
44626
44608
|
var $fetch = ponyfills.fetch;
|
|
44627
44609
|
var $Headers = ponyfills.Headers;
|
|
@@ -44979,8 +44961,7 @@ var Stopped = 2;
|
|
|
44979
44961
|
var Done = 3;
|
|
44980
44962
|
var Rejected = 4;
|
|
44981
44963
|
var MAX_QUEUE_LENGTH = 1024;
|
|
44982
|
-
var NOOP = function() {
|
|
44983
|
-
};
|
|
44964
|
+
var NOOP = function() {};
|
|
44984
44965
|
function consumeExecution(r) {
|
|
44985
44966
|
var err = r.err;
|
|
44986
44967
|
var execution = Promise.resolve(r.execution).then(function(value) {
|
|
@@ -45746,8 +45727,7 @@ async function t(t2, n) {
|
|
|
45746
45727
|
if (d = f2["content-type"], d && ~d.indexOf("application/json"))
|
|
45747
45728
|
try {
|
|
45748
45729
|
r3 = JSON.parse(r3), l3 = true;
|
|
45749
|
-
} catch (e3) {
|
|
45750
|
-
}
|
|
45730
|
+
} catch (e3) {}
|
|
45751
45731
|
if (d = { headers: f2, body: r3, json: l3 }, a ? yield d : c.push(d), t5.slice(0, 2) === "--")
|
|
45752
45732
|
break e;
|
|
45753
45733
|
} else
|
|
@@ -45792,8 +45772,7 @@ async function e2(e3, t2) {
|
|
|
45792
45772
|
if (f = d["content-type"], f && ~f.indexOf("application/json"))
|
|
45793
45773
|
try {
|
|
45794
45774
|
l2 = JSON.parse(String(l2)), i3 = true;
|
|
45795
|
-
} catch (e7) {
|
|
45796
|
-
}
|
|
45775
|
+
} catch (e7) {}
|
|
45797
45776
|
if (f = { headers: d, body: l2, json: i3 }, a ? yield f : s.push(f), n4[0] === 45 && n4[1] === 45)
|
|
45798
45777
|
break e;
|
|
45799
45778
|
} else
|
|
@@ -47499,8 +47478,7 @@ async function executeStreamIterator(initialIndex, iterator, exeContext, fieldNo
|
|
|
47499
47478
|
filterSubsequentPayloads(exeContext, path, asyncPayloadRecord);
|
|
47500
47479
|
asyncPayloadRecord.addItems(null);
|
|
47501
47480
|
if (iterator?.return) {
|
|
47502
|
-
iterator.return().catch(() => {
|
|
47503
|
-
});
|
|
47481
|
+
iterator.return().catch(() => {});
|
|
47504
47482
|
}
|
|
47505
47483
|
return;
|
|
47506
47484
|
}
|
|
@@ -47535,8 +47513,7 @@ function filterSubsequentPayloads(exeContext, nullPath, currentAsyncRecord) {
|
|
|
47535
47513
|
}
|
|
47536
47514
|
}
|
|
47537
47515
|
if (isStreamPayload(asyncRecord) && asyncRecord.iterator?.return) {
|
|
47538
|
-
asyncRecord.iterator.return().catch(() => {
|
|
47539
|
-
});
|
|
47516
|
+
asyncRecord.iterator.return().catch(() => {});
|
|
47540
47517
|
}
|
|
47541
47518
|
exeContext.subsequentPayloads.delete(asyncRecord);
|
|
47542
47519
|
});
|
|
@@ -50394,54 +50371,39 @@ async function fetchProcessedSchema(endpoint, accessToken, adminSecret, timeoutM
|
|
|
50394
50371
|
const schema = await fetchGraphQLSchema(endpoint, accessToken, adminSecret, timeoutMs);
|
|
50395
50372
|
return processSchema(schema);
|
|
50396
50373
|
}
|
|
50374
|
+
var formatField = (name, field) => {
|
|
50375
|
+
const args = field.args.length > 0 ? ` (${field.args.map((arg) => `${arg.name}: ${arg.type}`).join(", ")})` : "";
|
|
50376
|
+
const returnType = ` → ${field.type}`;
|
|
50377
|
+
return `• ${name}${args}${returnType}`;
|
|
50378
|
+
};
|
|
50379
|
+
var formatFields = (fields2) => {
|
|
50380
|
+
return Object.entries(fields2).map(([name, field]) => formatField(name, field));
|
|
50381
|
+
};
|
|
50397
50382
|
var createSchemaDescription = (schema) => {
|
|
50398
50383
|
const parts = [];
|
|
50399
50384
|
const queryType = schema.getQueryType();
|
|
50400
50385
|
if (queryType) {
|
|
50401
|
-
|
|
50402
|
-
for (const [name, field] of Object.entries(fields2)) {
|
|
50403
|
-
const args = field.args.length > 0 ? ` (${field.args.map((arg) => `${arg.name}: ${arg.type}`).join(", ")})` : "";
|
|
50404
|
-
const returnType = ` → ${field.type}`;
|
|
50405
|
-
parts.push(`• ${name}${args}${returnType}`);
|
|
50406
|
-
}
|
|
50407
|
-
parts.push("");
|
|
50386
|
+
parts.push(...formatFields(queryType.getFields()), "");
|
|
50408
50387
|
}
|
|
50409
50388
|
const mutationType = schema.getMutationType();
|
|
50410
50389
|
if (mutationType) {
|
|
50411
|
-
|
|
50412
|
-
for (const [name, field] of Object.entries(fields2)) {
|
|
50413
|
-
const args = field.args.length > 0 ? ` (${field.args.map((arg) => `${arg.name}: ${arg.type}`).join(", ")})` : "";
|
|
50414
|
-
const returnType = ` → ${field.type}`;
|
|
50415
|
-
parts.push(`• ${name}${args}${returnType}`);
|
|
50416
|
-
}
|
|
50417
|
-
parts.push("");
|
|
50390
|
+
parts.push(...formatFields(mutationType.getFields()), "");
|
|
50418
50391
|
}
|
|
50419
50392
|
return parts.join(`
|
|
50420
50393
|
`).trim();
|
|
50421
50394
|
};
|
|
50422
|
-
var
|
|
50423
|
-
|
|
50395
|
+
var extractOperationFields = (schema, getType) => {
|
|
50396
|
+
const type = getType(schema);
|
|
50397
|
+
return type ? type.getFields() : {};
|
|
50424
50398
|
};
|
|
50425
50399
|
var extractQueries = (schema) => {
|
|
50426
|
-
|
|
50427
|
-
if (!queryType) {
|
|
50428
|
-
return {};
|
|
50429
|
-
}
|
|
50430
|
-
return processFields(queryType);
|
|
50400
|
+
return extractOperationFields(schema, (s) => s.getQueryType());
|
|
50431
50401
|
};
|
|
50432
50402
|
var extractMutations = (schema) => {
|
|
50433
|
-
|
|
50434
|
-
if (!mutationType) {
|
|
50435
|
-
return {};
|
|
50436
|
-
}
|
|
50437
|
-
return processFields(mutationType);
|
|
50403
|
+
return extractOperationFields(schema, (s) => s.getMutationType());
|
|
50438
50404
|
};
|
|
50439
50405
|
var extractSubscriptions = (schema) => {
|
|
50440
|
-
|
|
50441
|
-
if (!subscriptionType) {
|
|
50442
|
-
return {};
|
|
50443
|
-
}
|
|
50444
|
-
return processFields(subscriptionType);
|
|
50406
|
+
return extractOperationFields(schema, (s) => s.getSubscriptionType());
|
|
50445
50407
|
};
|
|
50446
50408
|
var extractTypes = (schema) => {
|
|
50447
50409
|
const typeMap = schema.getTypeMap();
|
|
@@ -50521,8 +50483,7 @@ var portalQueries = (server, env3) => {
|
|
|
50521
50483
|
var util;
|
|
50522
50484
|
(function(util2) {
|
|
50523
50485
|
util2.assertEqual = (val) => val;
|
|
50524
|
-
function assertIs(_arg) {
|
|
50525
|
-
}
|
|
50486
|
+
function assertIs(_arg) {}
|
|
50526
50487
|
util2.assertIs = assertIs;
|
|
50527
50488
|
function assertNever(_x) {
|
|
50528
50489
|
throw new Error;
|
|
@@ -55836,8 +55797,7 @@ function parseStringDef(def, refs) {
|
|
|
55836
55797
|
case "trim":
|
|
55837
55798
|
break;
|
|
55838
55799
|
default:
|
|
55839
|
-
((_) => {
|
|
55840
|
-
})(check);
|
|
55800
|
+
((_) => {})(check);
|
|
55841
55801
|
}
|
|
55842
55802
|
}
|
|
55843
55803
|
}
|
|
@@ -57848,8 +57808,7 @@ class Minimatch {
|
|
|
57848
57808
|
}
|
|
57849
57809
|
return false;
|
|
57850
57810
|
}
|
|
57851
|
-
debug(..._) {
|
|
57852
|
-
}
|
|
57811
|
+
debug(..._) {}
|
|
57853
57812
|
make() {
|
|
57854
57813
|
const pattern = this.pattern;
|
|
57855
57814
|
const options = this.options;
|
|
@@ -58681,12 +58640,9 @@ class LRUCache {
|
|
|
58681
58640
|
return !!t2 && !!s && (cachedNow || getNow()) - s > t2;
|
|
58682
58641
|
};
|
|
58683
58642
|
}
|
|
58684
|
-
#updateItemAge = () => {
|
|
58685
|
-
};
|
|
58686
|
-
#
|
|
58687
|
-
};
|
|
58688
|
-
#setItemTTL = () => {
|
|
58689
|
-
};
|
|
58643
|
+
#updateItemAge = () => {};
|
|
58644
|
+
#statusTTL = () => {};
|
|
58645
|
+
#setItemTTL = () => {};
|
|
58690
58646
|
#isStale = () => false;
|
|
58691
58647
|
#initializeSizeTracking() {
|
|
58692
58648
|
const sizes = new ZeroArray(this.#max);
|
|
@@ -58730,10 +58686,8 @@ class LRUCache {
|
|
|
58730
58686
|
}
|
|
58731
58687
|
};
|
|
58732
58688
|
}
|
|
58733
|
-
#removeItemSize = (_i) => {
|
|
58734
|
-
};
|
|
58735
|
-
#addItemSize = (_i, _s, _st) => {
|
|
58736
|
-
};
|
|
58689
|
+
#removeItemSize = (_i) => {};
|
|
58690
|
+
#addItemSize = (_i, _s, _st) => {};
|
|
58737
58691
|
#requireSize = (_k, _v, size, sizeCalculation) => {
|
|
58738
58692
|
if (size || sizeCalculation) {
|
|
58739
58693
|
throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
@@ -59532,8 +59486,7 @@ class Pipe {
|
|
|
59532
59486
|
unpipe() {
|
|
59533
59487
|
this.dest.removeListener("drain", this.ondrain);
|
|
59534
59488
|
}
|
|
59535
|
-
proxyErrors(_er) {
|
|
59536
|
-
}
|
|
59489
|
+
proxyErrors(_er) {}
|
|
59537
59490
|
end() {
|
|
59538
59491
|
this.unpipe();
|
|
59539
59492
|
if (this.opts.end)
|
|
@@ -59643,8 +59596,7 @@ class Minipass extends EventEmitter {
|
|
|
59643
59596
|
get aborted() {
|
|
59644
59597
|
return this[ABORTED];
|
|
59645
59598
|
}
|
|
59646
|
-
set aborted(_) {
|
|
59647
|
-
}
|
|
59599
|
+
set aborted(_) {}
|
|
59648
59600
|
write(chunk, encoding, cb) {
|
|
59649
59601
|
if (this[ABORTED])
|
|
59650
59602
|
return false;
|
|
@@ -59816,8 +59768,7 @@ class Minipass extends EventEmitter {
|
|
|
59816
59768
|
return this[BUFFER].shift();
|
|
59817
59769
|
}
|
|
59818
59770
|
[FLUSH](noDrain = false) {
|
|
59819
|
-
do {
|
|
59820
|
-
} while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
59771
|
+
do {} while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
|
|
59821
59772
|
if (!noDrain && !this[BUFFER].length && !this[EOF])
|
|
59822
59773
|
this.emit("drain");
|
|
59823
59774
|
}
|
|
@@ -60762,8 +60713,7 @@ class PathBase {
|
|
|
60762
60713
|
if (this.#asyncReaddirInFlight) {
|
|
60763
60714
|
await this.#asyncReaddirInFlight;
|
|
60764
60715
|
} else {
|
|
60765
|
-
let resolve = () => {
|
|
60766
|
-
};
|
|
60716
|
+
let resolve = () => {};
|
|
60767
60717
|
this.#asyncReaddirInFlight = new Promise((res) => resolve = res);
|
|
60768
60718
|
try {
|
|
60769
60719
|
for (const e3 of await this.#fs.promises.readdir(fullpath, {
|
|
@@ -62628,7 +62578,7 @@ var {
|
|
|
62628
62578
|
var package_default = {
|
|
62629
62579
|
name: "@settlemint/sdk-mcp",
|
|
62630
62580
|
description: "MCP interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
62631
|
-
version: "1.1.16-
|
|
62581
|
+
version: "1.1.16-prd12a9b64",
|
|
62632
62582
|
type: "module",
|
|
62633
62583
|
private: false,
|
|
62634
62584
|
license: "FSL-1.1-MIT",
|
|
@@ -62637,11 +62587,11 @@ var package_default = {
|
|
|
62637
62587
|
email: "support@settlemint.com",
|
|
62638
62588
|
url: "https://settlemint.com"
|
|
62639
62589
|
},
|
|
62640
|
-
homepage: "https://github.com/settlemint/sdk/blob/main/sdk/
|
|
62590
|
+
homepage: "https://github.com/settlemint/sdk/blob/main/sdk/mcp/README.md",
|
|
62641
62591
|
repository: {
|
|
62642
62592
|
type: "git",
|
|
62643
62593
|
url: "git+https://github.com/settlemint/sdk.git",
|
|
62644
|
-
directory: "sdk/
|
|
62594
|
+
directory: "sdk/mcp"
|
|
62645
62595
|
},
|
|
62646
62596
|
bugs: {
|
|
62647
62597
|
url: "https://github.com/settlemint/sdk/issues",
|
|
@@ -62655,7 +62605,7 @@ var package_default = {
|
|
|
62655
62605
|
}
|
|
62656
62606
|
},
|
|
62657
62607
|
bin: {
|
|
62658
|
-
settlemint: "dist/mcp.js"
|
|
62608
|
+
"settlemint-mcp": "dist/mcp.js"
|
|
62659
62609
|
},
|
|
62660
62610
|
scripts: {
|
|
62661
62611
|
build: "bun run build.ts",
|
|
@@ -62671,9 +62621,10 @@ var package_default = {
|
|
|
62671
62621
|
"@graphql-tools/load": "8.0.17",
|
|
62672
62622
|
"@graphql-tools/url-loader": "8.0.29",
|
|
62673
62623
|
"@modelcontextprotocol/sdk": "1.6.1",
|
|
62674
|
-
"@settlemint/sdk-js": "1.1.16-
|
|
62675
|
-
"@settlemint/sdk-utils": "1.1.16-
|
|
62676
|
-
"@commander-js/extra-typings": "
|
|
62624
|
+
"@settlemint/sdk-js": "1.1.16-prd12a9b64",
|
|
62625
|
+
"@settlemint/sdk-utils": "1.1.16-prd12a9b64",
|
|
62626
|
+
"@commander-js/extra-typings": "11.1.0",
|
|
62627
|
+
commander: "11.1.0",
|
|
62677
62628
|
zod: "3.24.2"
|
|
62678
62629
|
},
|
|
62679
62630
|
devDependencies: {},
|
|
@@ -63490,6 +63441,16 @@ var registerBlockchainConcepts = (server) => {
|
|
|
63490
63441
|
|
|
63491
63442
|
// src/utils/sdl.ts
|
|
63492
63443
|
var import_graphql53 = __toESM(require_graphql2(), 1);
|
|
63444
|
+
var processFieldTypes = (fields2, schema, collectedTypes) => {
|
|
63445
|
+
for (const field of Object.values(fields2)) {
|
|
63446
|
+
collectCustomTypes(field.type, schema, collectedTypes);
|
|
63447
|
+
if ("args" in field && field.args.length > 0) {
|
|
63448
|
+
for (const arg of field.args) {
|
|
63449
|
+
collectCustomTypes(arg.type, schema, collectedTypes);
|
|
63450
|
+
}
|
|
63451
|
+
}
|
|
63452
|
+
}
|
|
63453
|
+
};
|
|
63493
63454
|
var collectCustomTypes = (type, schema, collectedTypes = new Set) => {
|
|
63494
63455
|
const typeName = type.toString().replace(/[\[\]!]/g, "");
|
|
63495
63456
|
if (collectedTypes.has(typeName) || ["String", "Int", "Float", "Boolean", "ID"].includes(typeName)) {
|
|
@@ -63500,20 +63461,9 @@ var collectCustomTypes = (type, schema, collectedTypes = new Set) => {
|
|
|
63500
63461
|
return collectedTypes;
|
|
63501
63462
|
}
|
|
63502
63463
|
collectedTypes.add(typeName);
|
|
63503
|
-
if (import_graphql53.isInputObjectType(schemaType)) {
|
|
63464
|
+
if (import_graphql53.isInputObjectType(schemaType) || import_graphql53.isObjectType(schemaType)) {
|
|
63504
63465
|
const fields2 = schemaType.getFields();
|
|
63505
|
-
|
|
63506
|
-
collectCustomTypes(field.type, schema, collectedTypes);
|
|
63507
|
-
}
|
|
63508
|
-
}
|
|
63509
|
-
if (import_graphql53.isObjectType(schemaType)) {
|
|
63510
|
-
const fields2 = schemaType.getFields();
|
|
63511
|
-
for (const field of Object.values(fields2)) {
|
|
63512
|
-
collectCustomTypes(field.type, schema, collectedTypes);
|
|
63513
|
-
for (const arg of field.args) {
|
|
63514
|
-
collectCustomTypes(arg.type, schema, collectedTypes);
|
|
63515
|
-
}
|
|
63516
|
-
}
|
|
63466
|
+
processFieldTypes(fields2, schema, collectedTypes);
|
|
63517
63467
|
}
|
|
63518
63468
|
return collectedTypes;
|
|
63519
63469
|
};
|
|
@@ -64474,16 +64424,14 @@ function blockString(e4) {
|
|
|
64474
64424
|
function ignored() {
|
|
64475
64425
|
for (var e4 = 0 | i.charCodeAt(n++);e4 === 9 || e4 === 10 || e4 === 13 || e4 === 32 || e4 === 35 || e4 === 44 || e4 === 65279; e4 = 0 | i.charCodeAt(n++)) {
|
|
64476
64426
|
if (e4 === 35) {
|
|
64477
|
-
for (;(e4 = i.charCodeAt(n++)) !== 10 && e4 !== 13; ) {
|
|
64478
|
-
}
|
|
64427
|
+
for (;(e4 = i.charCodeAt(n++)) !== 10 && e4 !== 13; ) {}
|
|
64479
64428
|
}
|
|
64480
64429
|
}
|
|
64481
64430
|
n--;
|
|
64482
64431
|
}
|
|
64483
64432
|
function name() {
|
|
64484
64433
|
var e4 = n;
|
|
64485
|
-
for (var r = 0 | i.charCodeAt(n++);r >= 48 && r <= 57 || r >= 65 && r <= 90 || r === 95 || r >= 97 && r <= 122; r = 0 | i.charCodeAt(n++)) {
|
|
64486
|
-
}
|
|
64434
|
+
for (var r = 0 | i.charCodeAt(n++);r >= 48 && r <= 57 || r >= 65 && r <= 90 || r === 95 || r >= 97 && r <= 122; r = 0 | i.charCodeAt(n++)) {}
|
|
64487
64435
|
if (e4 === n - 1) {
|
|
64488
64436
|
throw error("Name");
|
|
64489
64437
|
}
|
|
@@ -64552,8 +64500,7 @@ function value(e4) {
|
|
|
64552
64500
|
var s;
|
|
64553
64501
|
n++;
|
|
64554
64502
|
var c = false;
|
|
64555
|
-
for (s = 0 | i.charCodeAt(n++);s === 92 && (n++, c = true) || s !== 10 && s !== 13 && s !== 34 && s; s = 0 | i.charCodeAt(n++)) {
|
|
64556
|
-
}
|
|
64503
|
+
for (s = 0 | i.charCodeAt(n++);s === 92 && (n++, c = true) || s !== 10 && s !== 13 && s !== 34 && s; s = 0 | i.charCodeAt(n++)) {}
|
|
64557
64504
|
if (s !== 34) {
|
|
64558
64505
|
throw error("StringValue");
|
|
64559
64506
|
}
|
|
@@ -64576,8 +64523,7 @@ function value(e4) {
|
|
|
64576
64523
|
case 57:
|
|
64577
64524
|
var v = n++;
|
|
64578
64525
|
var f;
|
|
64579
|
-
for (;(f = 0 | i.charCodeAt(n++)) >= 48 && f <= 57; ) {
|
|
64580
|
-
}
|
|
64526
|
+
for (;(f = 0 | i.charCodeAt(n++)) >= 48 && f <= 57; ) {}
|
|
64581
64527
|
var m = i.slice(v, --n);
|
|
64582
64528
|
if ((f = i.charCodeAt(n)) === 46 || f === 69 || f === 101) {
|
|
64583
64529
|
if ((r = advance(o)) == null) {
|
|
@@ -68340,9 +68286,9 @@ async function main() {
|
|
|
68340
68286
|
process.exit(1);
|
|
68341
68287
|
}
|
|
68342
68288
|
}
|
|
68343
|
-
main().catch((error2) => {
|
|
68289
|
+
await main().catch((error2) => {
|
|
68344
68290
|
console.error("Unhandled error:", error2);
|
|
68345
68291
|
process.exit(1);
|
|
68346
68292
|
});
|
|
68347
68293
|
|
|
68348
|
-
//# debugId=
|
|
68294
|
+
//# debugId=8199379AE1F5F2C764756E2164756E21
|