@umbraco-cms/mcp-dev 18.1.7 → 18.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/{chunk-66TKBJQ7.js → chunk-OF7HVRKR.js} +1997 -1306
- package/dist/chunk-OF7HVRKR.js.map +1 -0
- package/dist/{chunk-BVWOXDOS.cjs → chunk-R2HBS7YH.cjs} +754 -63
- package/dist/chunk-R2HBS7YH.cjs.map +1 -0
- package/dist/collections.cjs +2 -2
- package/dist/collections.js +1 -1
- package/dist/index.cjs +351 -252
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +153 -54
- package/dist/index.js.map +1 -1
- package/dist/tool-types.d.ts +155 -6
- package/package.json +4 -4
- package/dist/chunk-66TKBJQ7.js.map +0 -1
- package/dist/chunk-BVWOXDOS.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkR2HBS7YHcjs = require('./chunk-R2HBS7YH.cjs');
|
|
13
13
|
|
|
14
14
|
// node_modules/ajv/dist/compile/codegen/code.js
|
|
15
|
-
var require_code =
|
|
15
|
+
var require_code = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
16
16
|
"node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
17
17
|
"use strict";
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -166,7 +166,7 @@ var require_code = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
166
166
|
});
|
|
167
167
|
|
|
168
168
|
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
169
|
-
var require_scope =
|
|
169
|
+
var require_scope = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
170
170
|
"node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
171
171
|
"use strict";
|
|
172
172
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -311,7 +311,7 @@ var require_scope = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
311
311
|
});
|
|
312
312
|
|
|
313
313
|
// node_modules/ajv/dist/compile/codegen/index.js
|
|
314
|
-
var require_codegen =
|
|
314
|
+
var require_codegen = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
315
315
|
"node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
316
316
|
"use strict";
|
|
317
317
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1031,7 +1031,7 @@ var require_codegen = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1031
1031
|
});
|
|
1032
1032
|
|
|
1033
1033
|
// node_modules/ajv/dist/compile/util.js
|
|
1034
|
-
var require_util =
|
|
1034
|
+
var require_util = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1035
1035
|
"node_modules/ajv/dist/compile/util.js"(exports) {
|
|
1036
1036
|
"use strict";
|
|
1037
1037
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1198,7 +1198,7 @@ var require_util = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1198
1198
|
});
|
|
1199
1199
|
|
|
1200
1200
|
// node_modules/ajv/dist/compile/names.js
|
|
1201
|
-
var require_names =
|
|
1201
|
+
var require_names = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1202
1202
|
"node_modules/ajv/dist/compile/names.js"(exports) {
|
|
1203
1203
|
"use strict";
|
|
1204
1204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1237,7 +1237,7 @@ var require_names = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1237
1237
|
});
|
|
1238
1238
|
|
|
1239
1239
|
// node_modules/ajv/dist/compile/errors.js
|
|
1240
|
-
var require_errors =
|
|
1240
|
+
var require_errors = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1241
1241
|
"node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
1242
1242
|
"use strict";
|
|
1243
1243
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1359,7 +1359,7 @@ var require_errors = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
|
|
1361
1361
|
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1362
|
-
var require_boolSchema =
|
|
1362
|
+
var require_boolSchema = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1363
1363
|
"node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
1364
1364
|
"use strict";
|
|
1365
1365
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1410,7 +1410,7 @@ var require_boolSchema = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1410
1410
|
});
|
|
1411
1411
|
|
|
1412
1412
|
// node_modules/ajv/dist/compile/rules.js
|
|
1413
|
-
var require_rules =
|
|
1413
|
+
var require_rules = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1414
1414
|
"node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
1415
1415
|
"use strict";
|
|
1416
1416
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1441,7 +1441,7 @@ var require_rules = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1441
1441
|
});
|
|
1442
1442
|
|
|
1443
1443
|
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
1444
|
-
var require_applicability =
|
|
1444
|
+
var require_applicability = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1445
1445
|
"node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
1446
1446
|
"use strict";
|
|
1447
1447
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1464,7 +1464,7 @@ var require_applicability = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1464
1464
|
});
|
|
1465
1465
|
|
|
1466
1466
|
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
1467
|
-
var require_dataType =
|
|
1467
|
+
var require_dataType = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1468
1468
|
"node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
1469
1469
|
"use strict";
|
|
1470
1470
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1648,7 +1648,7 @@ var require_dataType = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1648
1648
|
});
|
|
1649
1649
|
|
|
1650
1650
|
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
1651
|
-
var require_defaults =
|
|
1651
|
+
var require_defaults = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1652
1652
|
"node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
1653
1653
|
"use strict";
|
|
1654
1654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1685,7 +1685,7 @@ var require_defaults = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1685
1685
|
});
|
|
1686
1686
|
|
|
1687
1687
|
// node_modules/ajv/dist/vocabularies/code.js
|
|
1688
|
-
var require_code2 =
|
|
1688
|
+
var require_code2 = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1689
1689
|
"node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
1690
1690
|
"use strict";
|
|
1691
1691
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1818,7 +1818,7 @@ var require_code2 = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1818
1818
|
});
|
|
1819
1819
|
|
|
1820
1820
|
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
1821
|
-
var require_keyword =
|
|
1821
|
+
var require_keyword = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1822
1822
|
"node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
1823
1823
|
"use strict";
|
|
1824
1824
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1936,7 +1936,7 @@ var require_keyword = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
1936
1936
|
});
|
|
1937
1937
|
|
|
1938
1938
|
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
1939
|
-
var require_subschema =
|
|
1939
|
+
var require_subschema = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
1940
1940
|
"node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
1941
1941
|
"use strict";
|
|
1942
1942
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2019,7 +2019,7 @@ var require_subschema = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
2019
2019
|
});
|
|
2020
2020
|
|
|
2021
2021
|
// node_modules/fast-deep-equal/index.js
|
|
2022
|
-
var require_fast_deep_equal =
|
|
2022
|
+
var require_fast_deep_equal = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
2023
2023
|
"node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
2024
2024
|
"use strict";
|
|
2025
2025
|
module.exports = function equal(a, b) {
|
|
@@ -2054,7 +2054,7 @@ var require_fast_deep_equal = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
2054
2054
|
});
|
|
2055
2055
|
|
|
2056
2056
|
// node_modules/json-schema-traverse/index.js
|
|
2057
|
-
var require_json_schema_traverse =
|
|
2057
|
+
var require_json_schema_traverse = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
2058
2058
|
"node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
2059
2059
|
"use strict";
|
|
2060
2060
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
@@ -2142,7 +2142,7 @@ var require_json_schema_traverse = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
2142
2142
|
});
|
|
2143
2143
|
|
|
2144
2144
|
// node_modules/ajv/dist/compile/resolve.js
|
|
2145
|
-
var require_resolve =
|
|
2145
|
+
var require_resolve = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
2146
2146
|
"node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
2147
2147
|
"use strict";
|
|
2148
2148
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2298,7 +2298,7 @@ var require_resolve = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
2298
2298
|
});
|
|
2299
2299
|
|
|
2300
2300
|
// node_modules/ajv/dist/compile/validate/index.js
|
|
2301
|
-
var require_validate =
|
|
2301
|
+
var require_validate = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
2302
2302
|
"node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
2303
2303
|
"use strict";
|
|
2304
2304
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2806,7 +2806,7 @@ var require_validate = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
2806
2806
|
});
|
|
2807
2807
|
|
|
2808
2808
|
// node_modules/ajv/dist/runtime/validation_error.js
|
|
2809
|
-
var require_validation_error =
|
|
2809
|
+
var require_validation_error = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
2810
2810
|
"node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
2811
2811
|
"use strict";
|
|
2812
2812
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2822,7 +2822,7 @@ var require_validation_error = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
2822
2822
|
});
|
|
2823
2823
|
|
|
2824
2824
|
// node_modules/ajv/dist/compile/ref_error.js
|
|
2825
|
-
var require_ref_error =
|
|
2825
|
+
var require_ref_error = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
2826
2826
|
"node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
2827
2827
|
"use strict";
|
|
2828
2828
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2839,7 +2839,7 @@ var require_ref_error = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
2839
2839
|
});
|
|
2840
2840
|
|
|
2841
2841
|
// node_modules/ajv/dist/compile/index.js
|
|
2842
|
-
var require_compile =
|
|
2842
|
+
var require_compile = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
2843
2843
|
"node_modules/ajv/dist/compile/index.js"(exports) {
|
|
2844
2844
|
"use strict";
|
|
2845
2845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -3063,7 +3063,7 @@ var require_compile = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
3063
3063
|
});
|
|
3064
3064
|
|
|
3065
3065
|
// node_modules/ajv/dist/refs/data.json
|
|
3066
|
-
var require_data =
|
|
3066
|
+
var require_data = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
3067
3067
|
"node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
3068
3068
|
module.exports = {
|
|
3069
3069
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
@@ -3082,7 +3082,7 @@ var require_data = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
3082
3082
|
});
|
|
3083
3083
|
|
|
3084
3084
|
// node_modules/fast-uri/lib/utils.js
|
|
3085
|
-
var require_utils =
|
|
3085
|
+
var require_utils = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
3086
3086
|
"node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3087
3087
|
"use strict";
|
|
3088
3088
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
@@ -3584,7 +3584,7 @@ var require_utils = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
3584
3584
|
});
|
|
3585
3585
|
|
|
3586
3586
|
// node_modules/fast-uri/lib/schemes.js
|
|
3587
|
-
var require_schemes =
|
|
3587
|
+
var require_schemes = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
3588
3588
|
"node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3589
3589
|
"use strict";
|
|
3590
3590
|
var { isUUID } = require_utils();
|
|
@@ -3795,7 +3795,7 @@ var require_schemes = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
3795
3795
|
});
|
|
3796
3796
|
|
|
3797
3797
|
// node_modules/fast-uri/index.js
|
|
3798
|
-
var require_fast_uri =
|
|
3798
|
+
var require_fast_uri = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
3799
3799
|
"node_modules/fast-uri/index.js"(exports, module) {
|
|
3800
3800
|
"use strict";
|
|
3801
3801
|
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
@@ -4126,13 +4126,14 @@ var require_fast_uri = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
4126
4126
|
if (!malformedIPLiteral) {
|
|
4127
4127
|
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
|
|
4128
4128
|
}
|
|
4129
|
-
if (
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
4134
|
-
}
|
|
4129
|
+
if (uri.indexOf("%") !== -1 && parsed.host !== void 0 && !malformedIPLiteral) {
|
|
4130
|
+
let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
|
|
4131
|
+
if (!isIP) {
|
|
4132
|
+
host = normalizePercentEncoding(host.toLowerCase());
|
|
4135
4133
|
}
|
|
4134
|
+
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
4135
|
+
}
|
|
4136
|
+
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4136
4137
|
if (parsed.path) {
|
|
4137
4138
|
parsed.path = normalizePathEncoding(parsed.path);
|
|
4138
4139
|
}
|
|
@@ -4200,7 +4201,7 @@ var require_fast_uri = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
4200
4201
|
});
|
|
4201
4202
|
|
|
4202
4203
|
// node_modules/ajv/dist/runtime/uri.js
|
|
4203
|
-
var require_uri =
|
|
4204
|
+
var require_uri = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
4204
4205
|
"node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
4205
4206
|
"use strict";
|
|
4206
4207
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -4211,7 +4212,7 @@ var require_uri = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
4211
4212
|
});
|
|
4212
4213
|
|
|
4213
4214
|
// node_modules/ajv/dist/core.js
|
|
4214
|
-
var require_core =
|
|
4215
|
+
var require_core = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
4215
4216
|
"node_modules/ajv/dist/core.js"(exports) {
|
|
4216
4217
|
"use strict";
|
|
4217
4218
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -4822,7 +4823,7 @@ var require_core = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
4822
4823
|
});
|
|
4823
4824
|
|
|
4824
4825
|
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
4825
|
-
var require_id =
|
|
4826
|
+
var require_id = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
4826
4827
|
"node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
4827
4828
|
"use strict";
|
|
4828
4829
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -4837,7 +4838,7 @@ var require_id = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
4837
4838
|
});
|
|
4838
4839
|
|
|
4839
4840
|
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4840
|
-
var require_ref =
|
|
4841
|
+
var require_ref = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
4841
4842
|
"node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
4842
4843
|
"use strict";
|
|
4843
4844
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -4959,7 +4960,7 @@ var require_ref = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
4959
4960
|
});
|
|
4960
4961
|
|
|
4961
4962
|
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
4962
|
-
var require_core2 =
|
|
4963
|
+
var require_core2 = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
4963
4964
|
"node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
4964
4965
|
"use strict";
|
|
4965
4966
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -4980,7 +4981,7 @@ var require_core2 = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
4980
4981
|
});
|
|
4981
4982
|
|
|
4982
4983
|
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4983
|
-
var require_limitNumber =
|
|
4984
|
+
var require_limitNumber = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
4984
4985
|
"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
4985
4986
|
"use strict";
|
|
4986
4987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5012,7 +5013,7 @@ var require_limitNumber = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5012
5013
|
});
|
|
5013
5014
|
|
|
5014
5015
|
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
5015
|
-
var require_multipleOf =
|
|
5016
|
+
var require_multipleOf = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5016
5017
|
"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
5017
5018
|
"use strict";
|
|
5018
5019
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5040,7 +5041,7 @@ var require_multipleOf = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5040
5041
|
});
|
|
5041
5042
|
|
|
5042
5043
|
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
5043
|
-
var require_ucs2length =
|
|
5044
|
+
var require_ucs2length = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5044
5045
|
"node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
5045
5046
|
"use strict";
|
|
5046
5047
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5066,7 +5067,7 @@ var require_ucs2length = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5066
5067
|
});
|
|
5067
5068
|
|
|
5068
5069
|
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
5069
|
-
var require_limitLength =
|
|
5070
|
+
var require_limitLength = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5070
5071
|
"node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
5071
5072
|
"use strict";
|
|
5072
5073
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5098,7 +5099,7 @@ var require_limitLength = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5098
5099
|
});
|
|
5099
5100
|
|
|
5100
5101
|
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
5101
|
-
var require_pattern =
|
|
5102
|
+
var require_pattern = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5102
5103
|
"node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
5103
5104
|
"use strict";
|
|
5104
5105
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5135,7 +5136,7 @@ var require_pattern = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5135
5136
|
});
|
|
5136
5137
|
|
|
5137
5138
|
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
5138
|
-
var require_limitProperties =
|
|
5139
|
+
var require_limitProperties = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5139
5140
|
"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
5140
5141
|
"use strict";
|
|
5141
5142
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5164,7 +5165,7 @@ var require_limitProperties = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5164
5165
|
});
|
|
5165
5166
|
|
|
5166
5167
|
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
5167
|
-
var require_required =
|
|
5168
|
+
var require_required = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5168
5169
|
"node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
5169
5170
|
"use strict";
|
|
5170
5171
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5246,7 +5247,7 @@ var require_required = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5246
5247
|
});
|
|
5247
5248
|
|
|
5248
5249
|
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
5249
|
-
var require_limitItems =
|
|
5250
|
+
var require_limitItems = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5250
5251
|
"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
5251
5252
|
"use strict";
|
|
5252
5253
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5275,7 +5276,7 @@ var require_limitItems = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5275
5276
|
});
|
|
5276
5277
|
|
|
5277
5278
|
// node_modules/ajv/dist/runtime/equal.js
|
|
5278
|
-
var require_equal =
|
|
5279
|
+
var require_equal = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5279
5280
|
"node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
5280
5281
|
"use strict";
|
|
5281
5282
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5286,7 +5287,7 @@ var require_equal = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5286
5287
|
});
|
|
5287
5288
|
|
|
5288
5289
|
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
5289
|
-
var require_uniqueItems =
|
|
5290
|
+
var require_uniqueItems = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5290
5291
|
"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
5291
5292
|
"use strict";
|
|
5292
5293
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5353,7 +5354,7 @@ var require_uniqueItems = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5353
5354
|
});
|
|
5354
5355
|
|
|
5355
5356
|
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
5356
|
-
var require_const =
|
|
5357
|
+
var require_const = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5357
5358
|
"node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
5358
5359
|
"use strict";
|
|
5359
5360
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5382,7 +5383,7 @@ var require_const = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5382
5383
|
});
|
|
5383
5384
|
|
|
5384
5385
|
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
5385
|
-
var require_enum =
|
|
5386
|
+
var require_enum = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5386
5387
|
"node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
5387
5388
|
"use strict";
|
|
5388
5389
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5431,7 +5432,7 @@ var require_enum = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5431
5432
|
});
|
|
5432
5433
|
|
|
5433
5434
|
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5434
|
-
var require_validation =
|
|
5435
|
+
var require_validation = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5435
5436
|
"node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
5436
5437
|
"use strict";
|
|
5437
5438
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5469,7 +5470,7 @@ var require_validation = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5469
5470
|
});
|
|
5470
5471
|
|
|
5471
5472
|
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5472
|
-
var require_additionalItems =
|
|
5473
|
+
var require_additionalItems = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5473
5474
|
"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
5474
5475
|
"use strict";
|
|
5475
5476
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5522,7 +5523,7 @@ var require_additionalItems = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5522
5523
|
});
|
|
5523
5524
|
|
|
5524
5525
|
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5525
|
-
var require_items =
|
|
5526
|
+
var require_items = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5526
5527
|
"node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
5527
5528
|
"use strict";
|
|
5528
5529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5579,7 +5580,7 @@ var require_items = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5579
5580
|
});
|
|
5580
5581
|
|
|
5581
5582
|
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5582
|
-
var require_prefixItems =
|
|
5583
|
+
var require_prefixItems = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5583
5584
|
"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
5584
5585
|
"use strict";
|
|
5585
5586
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5596,7 +5597,7 @@ var require_prefixItems = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5596
5597
|
});
|
|
5597
5598
|
|
|
5598
5599
|
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5599
|
-
var require_items2020 =
|
|
5600
|
+
var require_items2020 = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5600
5601
|
"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
5601
5602
|
"use strict";
|
|
5602
5603
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5631,7 +5632,7 @@ var require_items2020 = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5631
5632
|
});
|
|
5632
5633
|
|
|
5633
5634
|
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5634
|
-
var require_contains =
|
|
5635
|
+
var require_contains = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5635
5636
|
"node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
5636
5637
|
"use strict";
|
|
5637
5638
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5725,7 +5726,7 @@ var require_contains = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5725
5726
|
});
|
|
5726
5727
|
|
|
5727
5728
|
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5728
|
-
var require_dependencies =
|
|
5729
|
+
var require_dependencies = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5729
5730
|
"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
5730
5731
|
"use strict";
|
|
5731
5732
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5819,7 +5820,7 @@ var require_dependencies = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5819
5820
|
});
|
|
5820
5821
|
|
|
5821
5822
|
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5822
|
-
var require_propertyNames =
|
|
5823
|
+
var require_propertyNames = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5823
5824
|
"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
5824
5825
|
"use strict";
|
|
5825
5826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5862,7 +5863,7 @@ var require_propertyNames = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5862
5863
|
});
|
|
5863
5864
|
|
|
5864
5865
|
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5865
|
-
var require_additionalProperties =
|
|
5866
|
+
var require_additionalProperties = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5866
5867
|
"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
5867
5868
|
"use strict";
|
|
5868
5869
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5968,7 +5969,7 @@ var require_additionalProperties = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
5968
5969
|
});
|
|
5969
5970
|
|
|
5970
5971
|
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5971
|
-
var require_properties =
|
|
5972
|
+
var require_properties = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
5972
5973
|
"node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
5973
5974
|
"use strict";
|
|
5974
5975
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6026,7 +6027,7 @@ var require_properties = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6026
6027
|
});
|
|
6027
6028
|
|
|
6028
6029
|
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
6029
|
-
var require_patternProperties =
|
|
6030
|
+
var require_patternProperties = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6030
6031
|
"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
6031
6032
|
"use strict";
|
|
6032
6033
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6100,7 +6101,7 @@ var require_patternProperties = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6100
6101
|
});
|
|
6101
6102
|
|
|
6102
6103
|
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
6103
|
-
var require_not =
|
|
6104
|
+
var require_not = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6104
6105
|
"node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
6105
6106
|
"use strict";
|
|
6106
6107
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6131,7 +6132,7 @@ var require_not = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6131
6132
|
});
|
|
6132
6133
|
|
|
6133
6134
|
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
6134
|
-
var require_anyOf =
|
|
6135
|
+
var require_anyOf = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6135
6136
|
"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
6136
6137
|
"use strict";
|
|
6137
6138
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6148,7 +6149,7 @@ var require_anyOf = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6148
6149
|
});
|
|
6149
6150
|
|
|
6150
6151
|
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
6151
|
-
var require_oneOf =
|
|
6152
|
+
var require_oneOf = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6152
6153
|
"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
6153
6154
|
"use strict";
|
|
6154
6155
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6206,7 +6207,7 @@ var require_oneOf = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6206
6207
|
});
|
|
6207
6208
|
|
|
6208
6209
|
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
6209
|
-
var require_allOf =
|
|
6210
|
+
var require_allOf = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6210
6211
|
"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
6211
6212
|
"use strict";
|
|
6212
6213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6233,7 +6234,7 @@ var require_allOf = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6233
6234
|
});
|
|
6234
6235
|
|
|
6235
6236
|
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
6236
|
-
var require_if =
|
|
6237
|
+
var require_if = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6237
6238
|
"node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
6238
6239
|
"use strict";
|
|
6239
6240
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6302,7 +6303,7 @@ var require_if = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6302
6303
|
});
|
|
6303
6304
|
|
|
6304
6305
|
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
6305
|
-
var require_thenElse =
|
|
6306
|
+
var require_thenElse = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6306
6307
|
"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
6307
6308
|
"use strict";
|
|
6308
6309
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6320,7 +6321,7 @@ var require_thenElse = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6320
6321
|
});
|
|
6321
6322
|
|
|
6322
6323
|
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
6323
|
-
var require_applicator =
|
|
6324
|
+
var require_applicator = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6324
6325
|
"node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
6325
6326
|
"use strict";
|
|
6326
6327
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6368,7 +6369,7 @@ var require_applicator = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6368
6369
|
});
|
|
6369
6370
|
|
|
6370
6371
|
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
6371
|
-
var require_format =
|
|
6372
|
+
var require_format = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6372
6373
|
"node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
6373
6374
|
"use strict";
|
|
6374
6375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6458,7 +6459,7 @@ var require_format = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6458
6459
|
});
|
|
6459
6460
|
|
|
6460
6461
|
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
6461
|
-
var require_format2 =
|
|
6462
|
+
var require_format2 = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6462
6463
|
"node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
6463
6464
|
"use strict";
|
|
6464
6465
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6469,7 +6470,7 @@ var require_format2 = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6469
6470
|
});
|
|
6470
6471
|
|
|
6471
6472
|
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
6472
|
-
var require_metadata =
|
|
6473
|
+
var require_metadata = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6473
6474
|
"node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
6474
6475
|
"use strict";
|
|
6475
6476
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6492,7 +6493,7 @@ var require_metadata = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6492
6493
|
});
|
|
6493
6494
|
|
|
6494
6495
|
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
6495
|
-
var require_draft7 =
|
|
6496
|
+
var require_draft7 = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6496
6497
|
"node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
6497
6498
|
"use strict";
|
|
6498
6499
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6514,7 +6515,7 @@ var require_draft7 = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6514
6515
|
});
|
|
6515
6516
|
|
|
6516
6517
|
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6517
|
-
var require_types =
|
|
6518
|
+
var require_types = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6518
6519
|
"node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
6519
6520
|
"use strict";
|
|
6520
6521
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6528,7 +6529,7 @@ var require_types = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6528
6529
|
});
|
|
6529
6530
|
|
|
6530
6531
|
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6531
|
-
var require_discriminator =
|
|
6532
|
+
var require_discriminator = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6532
6533
|
"node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
6533
6534
|
"use strict";
|
|
6534
6535
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6633,7 +6634,7 @@ var require_discriminator = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6633
6634
|
});
|
|
6634
6635
|
|
|
6635
6636
|
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6636
|
-
var require_json_schema_draft_07 =
|
|
6637
|
+
var require_json_schema_draft_07 = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6637
6638
|
"node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
6638
6639
|
module.exports = {
|
|
6639
6640
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6790,7 +6791,7 @@ var require_json_schema_draft_07 = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6790
6791
|
});
|
|
6791
6792
|
|
|
6792
6793
|
// node_modules/ajv/dist/ajv.js
|
|
6793
|
-
var require_ajv =
|
|
6794
|
+
var require_ajv = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6794
6795
|
"node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
6795
6796
|
"use strict";
|
|
6796
6797
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6860,7 +6861,7 @@ var require_ajv = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
6860
6861
|
});
|
|
6861
6862
|
|
|
6862
6863
|
// node_modules/ajv-formats/dist/formats.js
|
|
6863
|
-
var require_formats =
|
|
6864
|
+
var require_formats = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
6864
6865
|
"node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
6865
6866
|
"use strict";
|
|
6866
6867
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -7063,7 +7064,7 @@ var require_formats = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
7063
7064
|
});
|
|
7064
7065
|
|
|
7065
7066
|
// node_modules/ajv-formats/dist/limit.js
|
|
7066
|
-
var require_limit =
|
|
7067
|
+
var require_limit = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
7067
7068
|
"node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
7068
7069
|
"use strict";
|
|
7069
7070
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -7135,7 +7136,7 @@ var require_limit = _chunkBVWOXDOScjs.__commonJS.call(void 0, {
|
|
|
7135
7136
|
});
|
|
7136
7137
|
|
|
7137
7138
|
// node_modules/ajv-formats/dist/index.js
|
|
7138
|
-
var require_dist =
|
|
7139
|
+
var require_dist = _chunkR2HBS7YHcjs.__commonJS.call(void 0, {
|
|
7139
7140
|
"node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
7140
7141
|
"use strict";
|
|
7141
7142
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -7262,17 +7263,33 @@ function normalizeObjectSchema(schema) {
|
|
|
7262
7263
|
}
|
|
7263
7264
|
return void 0;
|
|
7264
7265
|
}
|
|
7266
|
+
function getDotPath(path) {
|
|
7267
|
+
if (path.length === 0) {
|
|
7268
|
+
return "object root";
|
|
7269
|
+
}
|
|
7270
|
+
return path.reduce((acc, seg, index) => {
|
|
7271
|
+
if (index === 0) {
|
|
7272
|
+
return String(seg);
|
|
7273
|
+
}
|
|
7274
|
+
if (typeof seg === "number") {
|
|
7275
|
+
return `${acc}[${seg}]`;
|
|
7276
|
+
}
|
|
7277
|
+
return `${acc}.${seg}`;
|
|
7278
|
+
}, "");
|
|
7279
|
+
}
|
|
7265
7280
|
function getParseErrorMessage(error) {
|
|
7266
7281
|
if (error && typeof error === "object") {
|
|
7282
|
+
if ("issues" in error && Array.isArray(error.issues) && error.issues.length > 0) {
|
|
7283
|
+
return error.issues.map((i) => {
|
|
7284
|
+
if (!_optionalChain([i, 'access', _7 => _7.path, 'optionalAccess', _8 => _8.length])) {
|
|
7285
|
+
return i.message;
|
|
7286
|
+
}
|
|
7287
|
+
return `${i.message} at ${getDotPath(i.path)}`;
|
|
7288
|
+
}).join("\n");
|
|
7289
|
+
}
|
|
7267
7290
|
if ("message" in error && typeof error.message === "string") {
|
|
7268
7291
|
return error.message;
|
|
7269
7292
|
}
|
|
7270
|
-
if ("issues" in error && Array.isArray(error.issues) && error.issues.length > 0) {
|
|
7271
|
-
const firstIssue = error.issues[0];
|
|
7272
|
-
if (firstIssue && typeof firstIssue === "object" && "message" in firstIssue) {
|
|
7273
|
-
return String(firstIssue.message);
|
|
7274
|
-
}
|
|
7275
|
-
}
|
|
7276
7293
|
try {
|
|
7277
7294
|
return JSON.stringify(error);
|
|
7278
7295
|
} catch (e4) {
|
|
@@ -7287,18 +7304,18 @@ function getSchemaDescription(schema) {
|
|
|
7287
7304
|
function isSchemaOptional(schema) {
|
|
7288
7305
|
if (isZ4Schema(schema)) {
|
|
7289
7306
|
const v4Schema = schema;
|
|
7290
|
-
return _optionalChain([v4Schema, 'access',
|
|
7307
|
+
return _optionalChain([v4Schema, 'access', _9 => _9._zod, 'optionalAccess', _10 => _10.def, 'optionalAccess', _11 => _11.type]) === "optional";
|
|
7291
7308
|
}
|
|
7292
7309
|
const v3Schema = schema;
|
|
7293
7310
|
if (typeof schema.isOptional === "function") {
|
|
7294
7311
|
return schema.isOptional();
|
|
7295
7312
|
}
|
|
7296
|
-
return _optionalChain([v3Schema, 'access',
|
|
7313
|
+
return _optionalChain([v3Schema, 'access', _12 => _12._def, 'optionalAccess', _13 => _13.typeName]) === "ZodOptional";
|
|
7297
7314
|
}
|
|
7298
7315
|
function getLiteralValue(schema) {
|
|
7299
7316
|
if (isZ4Schema(schema)) {
|
|
7300
7317
|
const v4Schema = schema;
|
|
7301
|
-
const def2 = _optionalChain([v4Schema, 'access',
|
|
7318
|
+
const def2 = _optionalChain([v4Schema, 'access', _14 => _14._zod, 'optionalAccess', _15 => _15.def]);
|
|
7302
7319
|
if (def2) {
|
|
7303
7320
|
if (def2.value !== void 0)
|
|
7304
7321
|
return def2.value;
|
|
@@ -8850,7 +8867,7 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
8850
8867
|
});
|
|
8851
8868
|
}
|
|
8852
8869
|
get elicitations() {
|
|
8853
|
-
return _nullishCoalesce(_optionalChain([this, 'access',
|
|
8870
|
+
return _nullishCoalesce(_optionalChain([this, 'access', _16 => _16.data, 'optionalAccess', _17 => _17.elicitations]), () => ( []));
|
|
8854
8871
|
}
|
|
8855
8872
|
};
|
|
8856
8873
|
|
|
@@ -8919,7 +8936,7 @@ var getRefs = (options) => {
|
|
|
8919
8936
|
|
|
8920
8937
|
// node_modules/zod-to-json-schema/dist/esm/errorMessages.js
|
|
8921
8938
|
function addErrorMessage(res, key, errorMessage, refs) {
|
|
8922
|
-
if (!_optionalChain([refs, 'optionalAccess',
|
|
8939
|
+
if (!_optionalChain([refs, 'optionalAccess', _18 => _18.errorMessages]))
|
|
8923
8940
|
return;
|
|
8924
8941
|
if (errorMessage) {
|
|
8925
8942
|
res.errorMessage = {
|
|
@@ -8968,7 +8985,7 @@ function parseArrayDef(def, refs) {
|
|
|
8968
8985
|
const res = {
|
|
8969
8986
|
type: "array"
|
|
8970
8987
|
};
|
|
8971
|
-
if (_optionalChain([def, 'access',
|
|
8988
|
+
if (_optionalChain([def, 'access', _19 => _19.type, 'optionalAccess', _20 => _20._def]) && _optionalChain([def, 'access', _21 => _21.type, 'optionalAccess', _22 => _22._def, 'optionalAccess', _23 => _23.typeName]) !== _v3.ZodFirstPartyTypeKind.ZodAny) {
|
|
8972
8989
|
res.items = parseDef(def.type._def, {
|
|
8973
8990
|
...refs,
|
|
8974
8991
|
currentPath: [...refs.currentPath, "items"]
|
|
@@ -9389,7 +9406,7 @@ function escapeNonAlphaNumeric(source) {
|
|
|
9389
9406
|
return result;
|
|
9390
9407
|
}
|
|
9391
9408
|
function addFormat(schema, value, message, refs) {
|
|
9392
|
-
if (schema.format || _optionalChain([schema, 'access',
|
|
9409
|
+
if (schema.format || _optionalChain([schema, 'access', _24 => _24.anyOf, 'optionalAccess', _25 => _25.some, 'call', _26 => _26((x) => x.format)])) {
|
|
9393
9410
|
if (!schema.anyOf) {
|
|
9394
9411
|
schema.anyOf = [];
|
|
9395
9412
|
}
|
|
@@ -9417,7 +9434,7 @@ function addFormat(schema, value, message, refs) {
|
|
|
9417
9434
|
}
|
|
9418
9435
|
}
|
|
9419
9436
|
function addPattern(schema, regex, message, refs) {
|
|
9420
|
-
if (schema.pattern || _optionalChain([schema, 'access',
|
|
9437
|
+
if (schema.pattern || _optionalChain([schema, 'access', _27 => _27.allOf, 'optionalAccess', _28 => _28.some, 'call', _29 => _29((x) => x.pattern)])) {
|
|
9421
9438
|
if (!schema.allOf) {
|
|
9422
9439
|
schema.allOf = [];
|
|
9423
9440
|
}
|
|
@@ -9472,7 +9489,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
9472
9489
|
pattern += source[i];
|
|
9473
9490
|
pattern += `${source[i - 2]}-${source[i]}`.toUpperCase();
|
|
9474
9491
|
inCharRange = false;
|
|
9475
|
-
} else if (source[i + 1] === "-" && _optionalChain([source, 'access',
|
|
9492
|
+
} else if (source[i + 1] === "-" && _optionalChain([source, 'access', _30 => _30[i + 2], 'optionalAccess', _31 => _31.match, 'call', _32 => _32(/[a-z]/)])) {
|
|
9476
9493
|
pattern += source[i];
|
|
9477
9494
|
inCharRange = true;
|
|
9478
9495
|
} else {
|
|
@@ -9525,7 +9542,7 @@ function parseRecordDef(def, refs) {
|
|
|
9525
9542
|
if (refs.target === "openAi") {
|
|
9526
9543
|
console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
|
|
9527
9544
|
}
|
|
9528
|
-
if (refs.target === "openApi3" && _optionalChain([def, 'access',
|
|
9545
|
+
if (refs.target === "openApi3" && _optionalChain([def, 'access', _33 => _33.keyType, 'optionalAccess', _34 => _34._def, 'access', _35 => _35.typeName]) === _v3.ZodFirstPartyTypeKind.ZodEnum) {
|
|
9529
9546
|
return {
|
|
9530
9547
|
type: "object",
|
|
9531
9548
|
required: def.keyType._def.values,
|
|
@@ -9549,20 +9566,20 @@ function parseRecordDef(def, refs) {
|
|
|
9549
9566
|
if (refs.target === "openApi3") {
|
|
9550
9567
|
return schema;
|
|
9551
9568
|
}
|
|
9552
|
-
if (_optionalChain([def, 'access',
|
|
9569
|
+
if (_optionalChain([def, 'access', _36 => _36.keyType, 'optionalAccess', _37 => _37._def, 'access', _38 => _38.typeName]) === _v3.ZodFirstPartyTypeKind.ZodString && _optionalChain([def, 'access', _39 => _39.keyType, 'access', _40 => _40._def, 'access', _41 => _41.checks, 'optionalAccess', _42 => _42.length])) {
|
|
9553
9570
|
const { type, ...keyType } = parseStringDef(def.keyType._def, refs);
|
|
9554
9571
|
return {
|
|
9555
9572
|
...schema,
|
|
9556
9573
|
propertyNames: keyType
|
|
9557
9574
|
};
|
|
9558
|
-
} else if (_optionalChain([def, 'access',
|
|
9575
|
+
} else if (_optionalChain([def, 'access', _43 => _43.keyType, 'optionalAccess', _44 => _44._def, 'access', _45 => _45.typeName]) === _v3.ZodFirstPartyTypeKind.ZodEnum) {
|
|
9559
9576
|
return {
|
|
9560
9577
|
...schema,
|
|
9561
9578
|
propertyNames: {
|
|
9562
9579
|
enum: def.keyType._def.values
|
|
9563
9580
|
}
|
|
9564
9581
|
};
|
|
9565
|
-
} else if (_optionalChain([def, 'access',
|
|
9582
|
+
} else if (_optionalChain([def, 'access', _46 => _46.keyType, 'optionalAccess', _47 => _47._def, 'access', _48 => _48.typeName]) === _v3.ZodFirstPartyTypeKind.ZodBranded && def.keyType._def.type._def.typeName === _v3.ZodFirstPartyTypeKind.ZodString && _optionalChain([def, 'access', _49 => _49.keyType, 'access', _50 => _50._def, 'access', _51 => _51.type, 'access', _52 => _52._def, 'access', _53 => _53.checks, 'optionalAccess', _54 => _54.length])) {
|
|
9566
9583
|
const { type, ...keyType } = parseBrandedDef(def.keyType._def, refs);
|
|
9567
9584
|
return {
|
|
9568
9585
|
...schema,
|
|
@@ -9852,7 +9869,7 @@ function safeIsOptional(schema) {
|
|
|
9852
9869
|
|
|
9853
9870
|
// node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
|
|
9854
9871
|
var parseOptionalDef = (def, refs) => {
|
|
9855
|
-
if (refs.currentPath.toString() === _optionalChain([refs, 'access',
|
|
9872
|
+
if (refs.currentPath.toString() === _optionalChain([refs, 'access', _55 => _55.propertyPath, 'optionalAccess', _56 => _56.toString, 'call', _57 => _57()])) {
|
|
9856
9873
|
return parseDef(def.innerType._def, refs);
|
|
9857
9874
|
}
|
|
9858
9875
|
const innerSchema = parseDef(def.innerType._def, {
|
|
@@ -10039,7 +10056,7 @@ var selectParser = (def, typeName, refs) => {
|
|
|
10039
10056
|
function parseDef(def, refs, forceResolution = false) {
|
|
10040
10057
|
const seenItem = refs.seen.get(def);
|
|
10041
10058
|
if (refs.override) {
|
|
10042
|
-
const overrideResult = _optionalChain([refs, 'access',
|
|
10059
|
+
const overrideResult = _optionalChain([refs, 'access', _58 => _58.override, 'optionalCall', _59 => _59(def, refs, seenItem, forceResolution)]);
|
|
10043
10060
|
if (overrideResult !== ignoreOverride) {
|
|
10044
10061
|
return overrideResult;
|
|
10045
10062
|
}
|
|
@@ -10101,7 +10118,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
10101
10118
|
currentPath: [...refs.basePath, refs.definitionPath, name2]
|
|
10102
10119
|
}, true), () => ( parseAnyDef(refs)))
|
|
10103
10120
|
}), {}) : void 0;
|
|
10104
|
-
const name = typeof options === "string" ? options : _optionalChain([options, 'optionalAccess',
|
|
10121
|
+
const name = typeof options === "string" ? options : _optionalChain([options, 'optionalAccess', _60 => _60.nameStrategy]) === "title" ? void 0 : _optionalChain([options, 'optionalAccess', _61 => _61.name]);
|
|
10105
10122
|
const main2 = _nullishCoalesce(parseDef(schema._def, name === void 0 ? refs : {
|
|
10106
10123
|
...refs,
|
|
10107
10124
|
currentPath: [...refs.basePath, refs.definitionPath, name]
|
|
@@ -10166,18 +10183,18 @@ function mapMiniTarget(t) {
|
|
|
10166
10183
|
function toJsonSchemaCompat(schema, opts) {
|
|
10167
10184
|
if (isZ4Schema(schema)) {
|
|
10168
10185
|
return z4mini2.toJSONSchema(schema, {
|
|
10169
|
-
target: mapMiniTarget(_optionalChain([opts, 'optionalAccess',
|
|
10170
|
-
io: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
10186
|
+
target: mapMiniTarget(_optionalChain([opts, 'optionalAccess', _62 => _62.target])),
|
|
10187
|
+
io: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _63 => _63.pipeStrategy]), () => ( "input"))
|
|
10171
10188
|
});
|
|
10172
10189
|
}
|
|
10173
10190
|
return zodToJsonSchema(schema, {
|
|
10174
|
-
strictUnions: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
10175
|
-
pipeStrategy: _nullishCoalesce(_optionalChain([opts, 'optionalAccess',
|
|
10191
|
+
strictUnions: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _64 => _64.strictUnions]), () => ( true)),
|
|
10192
|
+
pipeStrategy: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _65 => _65.pipeStrategy]), () => ( "input"))
|
|
10176
10193
|
});
|
|
10177
10194
|
}
|
|
10178
10195
|
function getMethodLiteral(schema) {
|
|
10179
10196
|
const shape = getObjectShape(schema);
|
|
10180
|
-
const methodSchema = _optionalChain([shape, 'optionalAccess',
|
|
10197
|
+
const methodSchema = _optionalChain([shape, 'optionalAccess', _66 => _66.method]);
|
|
10181
10198
|
if (!methodSchema) {
|
|
10182
10199
|
throw new Error("Schema is missing a method literal");
|
|
10183
10200
|
}
|
|
@@ -10221,8 +10238,8 @@ var Protocol = class {
|
|
|
10221
10238
|
// Automatic pong by default.
|
|
10222
10239
|
(_request) => ({})
|
|
10223
10240
|
);
|
|
10224
|
-
this._taskStore = _optionalChain([_options, 'optionalAccess',
|
|
10225
|
-
this._taskMessageQueue = _optionalChain([_options, 'optionalAccess',
|
|
10241
|
+
this._taskStore = _optionalChain([_options, 'optionalAccess', _67 => _67.taskStore]);
|
|
10242
|
+
this._taskMessageQueue = _optionalChain([_options, 'optionalAccess', _68 => _68.taskMessageQueue]);
|
|
10226
10243
|
if (this._taskStore) {
|
|
10227
10244
|
this.setRequestHandler(GetTaskRequestSchema, async (request, extra) => {
|
|
10228
10245
|
const task = await this._taskStore.getTask(request.params.taskId, extra.sessionId);
|
|
@@ -10236,6 +10253,9 @@ var Protocol = class {
|
|
|
10236
10253
|
this.setRequestHandler(GetTaskPayloadRequestSchema, async (request, extra) => {
|
|
10237
10254
|
const handleTaskResult = async () => {
|
|
10238
10255
|
const taskId = request.params.taskId;
|
|
10256
|
+
if (!await this._taskStore.getTask(taskId, extra.sessionId)) {
|
|
10257
|
+
throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`);
|
|
10258
|
+
}
|
|
10239
10259
|
if (this._taskMessageQueue) {
|
|
10240
10260
|
let queuedMessage;
|
|
10241
10261
|
while (queuedMessage = await this._taskMessageQueue.dequeue(taskId, extra.sessionId)) {
|
|
@@ -10258,7 +10278,7 @@ var Protocol = class {
|
|
|
10258
10278
|
}
|
|
10259
10279
|
continue;
|
|
10260
10280
|
}
|
|
10261
|
-
await _optionalChain([this, 'access',
|
|
10281
|
+
await _optionalChain([this, 'access', _69 => _69._transport, 'optionalAccess', _70 => _70.send, 'call', _71 => _71(queuedMessage.message, { relatedRequestId: extra.requestId })]);
|
|
10262
10282
|
}
|
|
10263
10283
|
}
|
|
10264
10284
|
const task = await this._taskStore.getTask(taskId, extra.sessionId);
|
|
@@ -10266,12 +10286,12 @@ var Protocol = class {
|
|
|
10266
10286
|
throw new McpError(ErrorCode.InvalidParams, `Task not found: ${taskId}`);
|
|
10267
10287
|
}
|
|
10268
10288
|
if (!isTerminal(task.status)) {
|
|
10269
|
-
await this._waitForTaskUpdate(taskId, extra.signal);
|
|
10289
|
+
await this._waitForTaskUpdate(taskId, extra.signal, extra.sessionId);
|
|
10270
10290
|
return await handleTaskResult();
|
|
10271
10291
|
}
|
|
10272
10292
|
if (isTerminal(task.status)) {
|
|
10273
10293
|
const result = await this._taskStore.getTaskResult(taskId, extra.sessionId);
|
|
10274
|
-
this._clearTaskQueue(taskId);
|
|
10294
|
+
this._clearTaskQueue(taskId, extra.sessionId);
|
|
10275
10295
|
return {
|
|
10276
10296
|
...result,
|
|
10277
10297
|
_meta: {
|
|
@@ -10288,7 +10308,7 @@ var Protocol = class {
|
|
|
10288
10308
|
});
|
|
10289
10309
|
this.setRequestHandler(ListTasksRequestSchema, async (request, extra) => {
|
|
10290
10310
|
try {
|
|
10291
|
-
const { tasks, nextCursor } = await this._taskStore.listTasks(_optionalChain([request, 'access',
|
|
10311
|
+
const { tasks, nextCursor } = await this._taskStore.listTasks(_optionalChain([request, 'access', _72 => _72.params, 'optionalAccess', _73 => _73.cursor]), extra.sessionId);
|
|
10292
10312
|
return {
|
|
10293
10313
|
tasks,
|
|
10294
10314
|
nextCursor,
|
|
@@ -10308,7 +10328,7 @@ var Protocol = class {
|
|
|
10308
10328
|
throw new McpError(ErrorCode.InvalidParams, `Cannot cancel task in terminal status: ${task.status}`);
|
|
10309
10329
|
}
|
|
10310
10330
|
await this._taskStore.updateTaskStatus(request.params.taskId, "cancelled", "Client cancelled task execution.", extra.sessionId);
|
|
10311
|
-
this._clearTaskQueue(request.params.taskId);
|
|
10331
|
+
this._clearTaskQueue(request.params.taskId, extra.sessionId);
|
|
10312
10332
|
const cancelledTask = await this._taskStore.getTask(request.params.taskId, extra.sessionId);
|
|
10313
10333
|
if (!cancelledTask) {
|
|
10314
10334
|
throw new McpError(ErrorCode.InvalidParams, `Task not found after cancellation: ${request.params.taskId}`);
|
|
@@ -10331,7 +10351,7 @@ var Protocol = class {
|
|
|
10331
10351
|
return;
|
|
10332
10352
|
}
|
|
10333
10353
|
const controller = this._requestHandlerAbortControllers.get(notification.params.requestId);
|
|
10334
|
-
_optionalChain([controller, 'optionalAccess',
|
|
10354
|
+
_optionalChain([controller, 'optionalAccess', _74 => _74.abort, 'call', _75 => _75(notification.params.reason)]);
|
|
10335
10355
|
}
|
|
10336
10356
|
_setupTimeout(messageId, timeout, maxTotalTimeout, onTimeout, resetTimeoutOnProgress = false) {
|
|
10337
10357
|
this._timeoutInfo.set(messageId, {
|
|
@@ -10376,19 +10396,19 @@ var Protocol = class {
|
|
|
10376
10396
|
throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");
|
|
10377
10397
|
}
|
|
10378
10398
|
this._transport = transport;
|
|
10379
|
-
const _onclose = _optionalChain([this, 'access',
|
|
10399
|
+
const _onclose = _optionalChain([this, 'access', _76 => _76.transport, 'optionalAccess', _77 => _77.onclose]);
|
|
10380
10400
|
this._transport.onclose = () => {
|
|
10381
|
-
_optionalChain([_onclose, 'optionalCall',
|
|
10401
|
+
_optionalChain([_onclose, 'optionalCall', _78 => _78()]);
|
|
10382
10402
|
this._onclose();
|
|
10383
10403
|
};
|
|
10384
|
-
const _onerror = _optionalChain([this, 'access',
|
|
10404
|
+
const _onerror = _optionalChain([this, 'access', _79 => _79.transport, 'optionalAccess', _80 => _80.onerror]);
|
|
10385
10405
|
this._transport.onerror = (error) => {
|
|
10386
|
-
_optionalChain([_onerror, 'optionalCall',
|
|
10406
|
+
_optionalChain([_onerror, 'optionalCall', _81 => _81(error)]);
|
|
10387
10407
|
this._onerror(error);
|
|
10388
10408
|
};
|
|
10389
|
-
const _onmessage = _optionalChain([this, 'access',
|
|
10409
|
+
const _onmessage = _optionalChain([this, 'access', _82 => _82._transport, 'optionalAccess', _83 => _83.onmessage]);
|
|
10390
10410
|
this._transport.onmessage = (message, extra) => {
|
|
10391
|
-
_optionalChain([_onmessage, 'optionalCall',
|
|
10411
|
+
_optionalChain([_onmessage, 'optionalCall', _84 => _84(message, extra)]);
|
|
10392
10412
|
if (isJSONRPCResultResponse(message) || isJSONRPCErrorResponse(message)) {
|
|
10393
10413
|
this._onresponse(message);
|
|
10394
10414
|
} else if (isJSONRPCRequest(message)) {
|
|
@@ -10417,13 +10437,13 @@ var Protocol = class {
|
|
|
10417
10437
|
this._requestHandlerAbortControllers.clear();
|
|
10418
10438
|
const error = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
|
|
10419
10439
|
this._transport = void 0;
|
|
10420
|
-
_optionalChain([this, 'access',
|
|
10440
|
+
_optionalChain([this, 'access', _85 => _85.onclose, 'optionalCall', _86 => _86()]);
|
|
10421
10441
|
for (const handler of responseHandlers.values()) {
|
|
10422
10442
|
handler(error);
|
|
10423
10443
|
}
|
|
10424
10444
|
}
|
|
10425
10445
|
_onerror(error) {
|
|
10426
|
-
_optionalChain([this, 'access',
|
|
10446
|
+
_optionalChain([this, 'access', _87 => _87.onerror, 'optionalCall', _88 => _88(error)]);
|
|
10427
10447
|
}
|
|
10428
10448
|
_onnotification(notification) {
|
|
10429
10449
|
const handler = _nullishCoalesce(this._notificationHandlers.get(notification.method), () => ( this.fallbackNotificationHandler));
|
|
@@ -10435,7 +10455,20 @@ var Protocol = class {
|
|
|
10435
10455
|
_onrequest(request, extra) {
|
|
10436
10456
|
const handler = _nullishCoalesce(this._requestHandlers.get(request.method), () => ( this.fallbackRequestHandler));
|
|
10437
10457
|
const capturedTransport = this._transport;
|
|
10438
|
-
const relatedTaskId = _optionalChain([request, 'access',
|
|
10458
|
+
const relatedTaskId = _optionalChain([request, 'access', _89 => _89.params, 'optionalAccess', _90 => _90._meta, 'optionalAccess', _91 => _91[RELATED_TASK_META_KEY], 'optionalAccess', _92 => _92.taskId]);
|
|
10459
|
+
const sessionId = _optionalChain([capturedTransport, 'optionalAccess', _93 => _93.sessionId]);
|
|
10460
|
+
const store = this._taskStore;
|
|
10461
|
+
let relatedTaskFound = true;
|
|
10462
|
+
let relatedTaskLookup;
|
|
10463
|
+
if (relatedTaskId && store && this._taskMessageQueue && sessionId !== void 0) {
|
|
10464
|
+
relatedTaskFound = false;
|
|
10465
|
+
relatedTaskLookup = (async () => {
|
|
10466
|
+
if (!await store.getTask(relatedTaskId, sessionId)) {
|
|
10467
|
+
throw new McpError(ErrorCode.InvalidParams, `Task not found: ${relatedTaskId}`);
|
|
10468
|
+
}
|
|
10469
|
+
relatedTaskFound = true;
|
|
10470
|
+
})();
|
|
10471
|
+
}
|
|
10439
10472
|
if (handler === void 0) {
|
|
10440
10473
|
const errorResponse = {
|
|
10441
10474
|
jsonrpc: "2.0",
|
|
@@ -10445,25 +10478,28 @@ var Protocol = class {
|
|
|
10445
10478
|
message: "Method not found"
|
|
10446
10479
|
}
|
|
10447
10480
|
};
|
|
10448
|
-
if (relatedTaskId &&
|
|
10481
|
+
if (relatedTaskId && relatedTaskLookup) {
|
|
10482
|
+
const queuedError = { type: "error", message: errorResponse, timestamp: Date.now() };
|
|
10483
|
+
relatedTaskLookup.then(() => this._enqueueTaskMessage(relatedTaskId, queuedError, sessionId), () => _optionalChain([capturedTransport, 'optionalAccess', _94 => _94.send, 'call', _95 => _95(errorResponse)])).catch((error) => this._onerror(new Error(`Failed to send an error response: ${error}`)));
|
|
10484
|
+
} else if (relatedTaskId && this._taskMessageQueue) {
|
|
10449
10485
|
this._enqueueTaskMessage(relatedTaskId, {
|
|
10450
10486
|
type: "error",
|
|
10451
10487
|
message: errorResponse,
|
|
10452
10488
|
timestamp: Date.now()
|
|
10453
|
-
}, _optionalChain([capturedTransport, 'optionalAccess',
|
|
10489
|
+
}, _optionalChain([capturedTransport, 'optionalAccess', _96 => _96.sessionId])).catch((error) => this._onerror(new Error(`Failed to enqueue error response: ${error}`)));
|
|
10454
10490
|
} else {
|
|
10455
|
-
_optionalChain([capturedTransport, 'optionalAccess',
|
|
10491
|
+
_optionalChain([capturedTransport, 'optionalAccess', _97 => _97.send, 'call', _98 => _98(errorResponse), 'access', _99 => _99.catch, 'call', _100 => _100((error) => this._onerror(new Error(`Failed to send an error response: ${error}`)))]);
|
|
10456
10492
|
}
|
|
10457
10493
|
return;
|
|
10458
10494
|
}
|
|
10459
10495
|
const abortController = new AbortController();
|
|
10460
10496
|
this._requestHandlerAbortControllers.set(request.id, abortController);
|
|
10461
10497
|
const taskCreationParams = isTaskAugmentedRequestParams(request.params) ? request.params.task : void 0;
|
|
10462
|
-
const taskStore = this._taskStore ? this.requestTaskStore(request, _optionalChain([capturedTransport, 'optionalAccess',
|
|
10498
|
+
const taskStore = this._taskStore ? this.requestTaskStore(request, _optionalChain([capturedTransport, 'optionalAccess', _101 => _101.sessionId])) : void 0;
|
|
10463
10499
|
const fullExtra = {
|
|
10464
10500
|
signal: abortController.signal,
|
|
10465
|
-
sessionId: _optionalChain([capturedTransport, 'optionalAccess',
|
|
10466
|
-
_meta: _optionalChain([request, 'access',
|
|
10501
|
+
sessionId: _optionalChain([capturedTransport, 'optionalAccess', _102 => _102.sessionId]),
|
|
10502
|
+
_meta: _optionalChain([request, 'access', _103 => _103.params, 'optionalAccess', _104 => _104._meta]),
|
|
10467
10503
|
sendNotification: async (notification) => {
|
|
10468
10504
|
if (abortController.signal.aborted)
|
|
10469
10505
|
return;
|
|
@@ -10481,22 +10517,25 @@ var Protocol = class {
|
|
|
10481
10517
|
if (relatedTaskId && !requestOptions.relatedTask) {
|
|
10482
10518
|
requestOptions.relatedTask = { taskId: relatedTaskId };
|
|
10483
10519
|
}
|
|
10484
|
-
const effectiveTaskId = _nullishCoalesce(_optionalChain([requestOptions, 'access',
|
|
10520
|
+
const effectiveTaskId = _nullishCoalesce(_optionalChain([requestOptions, 'access', _105 => _105.relatedTask, 'optionalAccess', _106 => _106.taskId]), () => ( relatedTaskId));
|
|
10485
10521
|
if (effectiveTaskId && taskStore) {
|
|
10486
10522
|
await taskStore.updateTaskStatus(effectiveTaskId, "input_required");
|
|
10487
10523
|
}
|
|
10488
10524
|
return await this.request(r, resultSchema, requestOptions);
|
|
10489
10525
|
},
|
|
10490
|
-
authInfo: _optionalChain([extra, 'optionalAccess',
|
|
10526
|
+
authInfo: _optionalChain([extra, 'optionalAccess', _107 => _107.authInfo]),
|
|
10491
10527
|
requestId: request.id,
|
|
10492
|
-
requestInfo: _optionalChain([extra, 'optionalAccess',
|
|
10528
|
+
requestInfo: _optionalChain([extra, 'optionalAccess', _108 => _108.requestInfo]),
|
|
10493
10529
|
taskId: relatedTaskId,
|
|
10494
10530
|
taskStore,
|
|
10495
|
-
taskRequestedTtl: _optionalChain([taskCreationParams, 'optionalAccess',
|
|
10496
|
-
closeSSEStream: _optionalChain([extra, 'optionalAccess',
|
|
10497
|
-
closeStandaloneSSEStream: _optionalChain([extra, 'optionalAccess',
|
|
10531
|
+
taskRequestedTtl: _optionalChain([taskCreationParams, 'optionalAccess', _109 => _109.ttl]),
|
|
10532
|
+
closeSSEStream: _optionalChain([extra, 'optionalAccess', _110 => _110.closeSSEStream]),
|
|
10533
|
+
closeStandaloneSSEStream: _optionalChain([extra, 'optionalAccess', _111 => _111.closeStandaloneSSEStream])
|
|
10498
10534
|
};
|
|
10499
|
-
Promise.resolve().then(() => {
|
|
10535
|
+
(_nullishCoalesce(relatedTaskLookup, () => ( Promise.resolve()))).then(() => {
|
|
10536
|
+
if (relatedTaskLookup && abortController.signal.aborted) {
|
|
10537
|
+
throw new McpError(ErrorCode.ConnectionClosed, "Request was cancelled");
|
|
10538
|
+
}
|
|
10500
10539
|
if (taskCreationParams) {
|
|
10501
10540
|
this.assertTaskHandlerCapability(request.method);
|
|
10502
10541
|
}
|
|
@@ -10514,9 +10553,9 @@ var Protocol = class {
|
|
|
10514
10553
|
type: "response",
|
|
10515
10554
|
message: response,
|
|
10516
10555
|
timestamp: Date.now()
|
|
10517
|
-
}, _optionalChain([capturedTransport, 'optionalAccess',
|
|
10556
|
+
}, _optionalChain([capturedTransport, 'optionalAccess', _112 => _112.sessionId]));
|
|
10518
10557
|
} else {
|
|
10519
|
-
await _optionalChain([capturedTransport, 'optionalAccess',
|
|
10558
|
+
await _optionalChain([capturedTransport, 'optionalAccess', _113 => _113.send, 'call', _114 => _114(response)]);
|
|
10520
10559
|
}
|
|
10521
10560
|
}, async (error) => {
|
|
10522
10561
|
if (abortController.signal.aborted) {
|
|
@@ -10531,14 +10570,14 @@ var Protocol = class {
|
|
|
10531
10570
|
...error["data"] !== void 0 && { data: error["data"] }
|
|
10532
10571
|
}
|
|
10533
10572
|
};
|
|
10534
|
-
if (relatedTaskId && this._taskMessageQueue) {
|
|
10573
|
+
if (relatedTaskId && this._taskMessageQueue && relatedTaskFound) {
|
|
10535
10574
|
await this._enqueueTaskMessage(relatedTaskId, {
|
|
10536
10575
|
type: "error",
|
|
10537
10576
|
message: errorResponse,
|
|
10538
10577
|
timestamp: Date.now()
|
|
10539
|
-
}, _optionalChain([capturedTransport, 'optionalAccess',
|
|
10578
|
+
}, _optionalChain([capturedTransport, 'optionalAccess', _115 => _115.sessionId]));
|
|
10540
10579
|
} else {
|
|
10541
|
-
await _optionalChain([capturedTransport, 'optionalAccess',
|
|
10580
|
+
await _optionalChain([capturedTransport, 'optionalAccess', _116 => _116.send, 'call', _117 => _117(errorResponse)]);
|
|
10542
10581
|
}
|
|
10543
10582
|
}).catch((error) => this._onerror(new Error(`Failed to send response: ${error}`))).finally(() => {
|
|
10544
10583
|
if (this._requestHandlerAbortControllers.get(request.id) === abortController) {
|
|
@@ -10617,7 +10656,7 @@ var Protocol = class {
|
|
|
10617
10656
|
* Closes the connection.
|
|
10618
10657
|
*/
|
|
10619
10658
|
async close() {
|
|
10620
|
-
await _optionalChain([this, 'access',
|
|
10659
|
+
await _optionalChain([this, 'access', _118 => _118._transport, 'optionalAccess', _119 => _119.close, 'call', _120 => _120()]);
|
|
10621
10660
|
}
|
|
10622
10661
|
/**
|
|
10623
10662
|
* Sends a request and returns an AsyncGenerator that yields response messages.
|
|
@@ -10694,9 +10733,9 @@ var Protocol = class {
|
|
|
10694
10733
|
yield { type: "result", result };
|
|
10695
10734
|
return;
|
|
10696
10735
|
}
|
|
10697
|
-
const pollInterval = _nullishCoalesce(_nullishCoalesce(task2.pollInterval, () => ( _optionalChain([this, 'access',
|
|
10736
|
+
const pollInterval = _nullishCoalesce(_nullishCoalesce(task2.pollInterval, () => ( _optionalChain([this, 'access', _121 => _121._options, 'optionalAccess', _122 => _122.defaultTaskPollInterval]))), () => ( 1e3));
|
|
10698
10737
|
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
|
10699
|
-
_optionalChain([options, 'optionalAccess',
|
|
10738
|
+
_optionalChain([options, 'optionalAccess', _123 => _123.signal, 'optionalAccess', _124 => _124.throwIfAborted, 'call', _125 => _125()]);
|
|
10700
10739
|
}
|
|
10701
10740
|
} catch (error) {
|
|
10702
10741
|
yield {
|
|
@@ -10720,7 +10759,7 @@ var Protocol = class {
|
|
|
10720
10759
|
earlyReject(new Error("Not connected"));
|
|
10721
10760
|
return;
|
|
10722
10761
|
}
|
|
10723
|
-
if (_optionalChain([this, 'access',
|
|
10762
|
+
if (_optionalChain([this, 'access', _126 => _126._options, 'optionalAccess', _127 => _127.enforceStrictCapabilities]) === true) {
|
|
10724
10763
|
try {
|
|
10725
10764
|
this.assertCapabilityForMethod(request.method);
|
|
10726
10765
|
if (task) {
|
|
@@ -10731,19 +10770,19 @@ var Protocol = class {
|
|
|
10731
10770
|
return;
|
|
10732
10771
|
}
|
|
10733
10772
|
}
|
|
10734
|
-
_optionalChain([options, 'optionalAccess',
|
|
10773
|
+
_optionalChain([options, 'optionalAccess', _128 => _128.signal, 'optionalAccess', _129 => _129.throwIfAborted, 'call', _130 => _130()]);
|
|
10735
10774
|
const messageId = this._requestMessageId++;
|
|
10736
10775
|
const jsonrpcRequest = {
|
|
10737
10776
|
...request,
|
|
10738
10777
|
jsonrpc: "2.0",
|
|
10739
10778
|
id: messageId
|
|
10740
10779
|
};
|
|
10741
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
10780
|
+
if (_optionalChain([options, 'optionalAccess', _131 => _131.onprogress])) {
|
|
10742
10781
|
this._progressHandlers.set(messageId, options.onprogress);
|
|
10743
10782
|
jsonrpcRequest.params = {
|
|
10744
10783
|
...request.params,
|
|
10745
10784
|
_meta: {
|
|
10746
|
-
..._optionalChain([request, 'access',
|
|
10785
|
+
..._optionalChain([request, 'access', _132 => _132.params, 'optionalAccess', _133 => _133._meta]) || {},
|
|
10747
10786
|
progressToken: messageId
|
|
10748
10787
|
}
|
|
10749
10788
|
};
|
|
@@ -10758,7 +10797,7 @@ var Protocol = class {
|
|
|
10758
10797
|
jsonrpcRequest.params = {
|
|
10759
10798
|
...jsonrpcRequest.params,
|
|
10760
10799
|
_meta: {
|
|
10761
|
-
..._optionalChain([jsonrpcRequest, 'access',
|
|
10800
|
+
..._optionalChain([jsonrpcRequest, 'access', _134 => _134.params, 'optionalAccess', _135 => _135._meta]) || {},
|
|
10762
10801
|
[RELATED_TASK_META_KEY]: relatedTask
|
|
10763
10802
|
}
|
|
10764
10803
|
};
|
|
@@ -10767,19 +10806,19 @@ var Protocol = class {
|
|
|
10767
10806
|
this._responseHandlers.delete(messageId);
|
|
10768
10807
|
this._progressHandlers.delete(messageId);
|
|
10769
10808
|
this._cleanupTimeout(messageId);
|
|
10770
|
-
_optionalChain([this, 'access',
|
|
10809
|
+
_optionalChain([this, 'access', _136 => _136._transport, 'optionalAccess', _137 => _137.send, 'call', _138 => _138({
|
|
10771
10810
|
jsonrpc: "2.0",
|
|
10772
10811
|
method: "notifications/cancelled",
|
|
10773
10812
|
params: {
|
|
10774
10813
|
requestId: messageId,
|
|
10775
10814
|
reason: String(reason)
|
|
10776
10815
|
}
|
|
10777
|
-
}, { relatedRequestId, resumptionToken, onresumptiontoken }), 'access',
|
|
10816
|
+
}, { relatedRequestId, resumptionToken, onresumptiontoken }), 'access', _139 => _139.catch, 'call', _140 => _140((error2) => this._onerror(new Error(`Failed to send cancellation: ${error2}`)))]);
|
|
10778
10817
|
const error = reason instanceof McpError ? reason : new McpError(ErrorCode.RequestTimeout, String(reason));
|
|
10779
10818
|
reject(error);
|
|
10780
10819
|
};
|
|
10781
10820
|
this._responseHandlers.set(messageId, (response) => {
|
|
10782
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
10821
|
+
if (_optionalChain([options, 'optionalAccess', _141 => _141.signal, 'optionalAccess', _142 => _142.aborted])) {
|
|
10783
10822
|
return;
|
|
10784
10823
|
}
|
|
10785
10824
|
if (response instanceof Error) {
|
|
@@ -10796,13 +10835,13 @@ var Protocol = class {
|
|
|
10796
10835
|
reject(error);
|
|
10797
10836
|
}
|
|
10798
10837
|
});
|
|
10799
|
-
_optionalChain([options, 'optionalAccess',
|
|
10800
|
-
cancel(_optionalChain([options, 'optionalAccess',
|
|
10838
|
+
_optionalChain([options, 'optionalAccess', _143 => _143.signal, 'optionalAccess', _144 => _144.addEventListener, 'call', _145 => _145("abort", () => {
|
|
10839
|
+
cancel(_optionalChain([options, 'optionalAccess', _146 => _146.signal, 'optionalAccess', _147 => _147.reason]));
|
|
10801
10840
|
})]);
|
|
10802
|
-
const timeout = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
10841
|
+
const timeout = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _148 => _148.timeout]), () => ( DEFAULT_REQUEST_TIMEOUT_MSEC));
|
|
10803
10842
|
const timeoutHandler = () => cancel(McpError.fromError(ErrorCode.RequestTimeout, "Request timed out", { timeout }));
|
|
10804
|
-
this._setupTimeout(messageId, timeout, _optionalChain([options, 'optionalAccess',
|
|
10805
|
-
const relatedTaskId = _optionalChain([relatedTask, 'optionalAccess',
|
|
10843
|
+
this._setupTimeout(messageId, timeout, _optionalChain([options, 'optionalAccess', _149 => _149.maxTotalTimeout]), timeoutHandler, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _150 => _150.resetTimeoutOnProgress]), () => ( false)));
|
|
10844
|
+
const relatedTaskId = _optionalChain([relatedTask, 'optionalAccess', _151 => _151.taskId]);
|
|
10806
10845
|
if (relatedTaskId) {
|
|
10807
10846
|
const responseResolver = (response) => {
|
|
10808
10847
|
const handler = this._responseHandlers.get(messageId);
|
|
@@ -10869,7 +10908,7 @@ var Protocol = class {
|
|
|
10869
10908
|
throw new Error("Not connected");
|
|
10870
10909
|
}
|
|
10871
10910
|
this.assertNotificationCapability(notification.method);
|
|
10872
|
-
const relatedTaskId = _optionalChain([options, 'optionalAccess',
|
|
10911
|
+
const relatedTaskId = _optionalChain([options, 'optionalAccess', _152 => _152.relatedTask, 'optionalAccess', _153 => _153.taskId]);
|
|
10873
10912
|
if (relatedTaskId) {
|
|
10874
10913
|
const jsonrpcNotification2 = {
|
|
10875
10914
|
...notification,
|
|
@@ -10877,7 +10916,7 @@ var Protocol = class {
|
|
|
10877
10916
|
params: {
|
|
10878
10917
|
...notification.params,
|
|
10879
10918
|
_meta: {
|
|
10880
|
-
..._optionalChain([notification, 'access',
|
|
10919
|
+
..._optionalChain([notification, 'access', _154 => _154.params, 'optionalAccess', _155 => _155._meta]) || {},
|
|
10881
10920
|
[RELATED_TASK_META_KEY]: options.relatedTask
|
|
10882
10921
|
}
|
|
10883
10922
|
}
|
|
@@ -10889,8 +10928,8 @@ var Protocol = class {
|
|
|
10889
10928
|
});
|
|
10890
10929
|
return;
|
|
10891
10930
|
}
|
|
10892
|
-
const debouncedMethods = _nullishCoalesce(_optionalChain([this, 'access',
|
|
10893
|
-
const canDebounce = debouncedMethods.includes(notification.method) && !notification.params && !_optionalChain([options, 'optionalAccess',
|
|
10931
|
+
const debouncedMethods = _nullishCoalesce(_optionalChain([this, 'access', _156 => _156._options, 'optionalAccess', _157 => _157.debouncedNotificationMethods]), () => ( []));
|
|
10932
|
+
const canDebounce = debouncedMethods.includes(notification.method) && !notification.params && !_optionalChain([options, 'optionalAccess', _158 => _158.relatedRequestId]) && !_optionalChain([options, 'optionalAccess', _159 => _159.relatedTask]);
|
|
10894
10933
|
if (canDebounce) {
|
|
10895
10934
|
if (this._pendingDebouncedNotifications.has(notification.method)) {
|
|
10896
10935
|
return;
|
|
@@ -10905,19 +10944,19 @@ var Protocol = class {
|
|
|
10905
10944
|
...notification,
|
|
10906
10945
|
jsonrpc: "2.0"
|
|
10907
10946
|
};
|
|
10908
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
10947
|
+
if (_optionalChain([options, 'optionalAccess', _160 => _160.relatedTask])) {
|
|
10909
10948
|
jsonrpcNotification2 = {
|
|
10910
10949
|
...jsonrpcNotification2,
|
|
10911
10950
|
params: {
|
|
10912
10951
|
...jsonrpcNotification2.params,
|
|
10913
10952
|
_meta: {
|
|
10914
|
-
..._optionalChain([jsonrpcNotification2, 'access',
|
|
10953
|
+
..._optionalChain([jsonrpcNotification2, 'access', _161 => _161.params, 'optionalAccess', _162 => _162._meta]) || {},
|
|
10915
10954
|
[RELATED_TASK_META_KEY]: options.relatedTask
|
|
10916
10955
|
}
|
|
10917
10956
|
}
|
|
10918
10957
|
};
|
|
10919
10958
|
}
|
|
10920
|
-
_optionalChain([this, 'access',
|
|
10959
|
+
_optionalChain([this, 'access', _163 => _163._transport, 'optionalAccess', _164 => _164.send, 'call', _165 => _165(jsonrpcNotification2, options), 'access', _166 => _166.catch, 'call', _167 => _167((error) => this._onerror(error))]);
|
|
10921
10960
|
});
|
|
10922
10961
|
return;
|
|
10923
10962
|
}
|
|
@@ -10925,13 +10964,13 @@ var Protocol = class {
|
|
|
10925
10964
|
...notification,
|
|
10926
10965
|
jsonrpc: "2.0"
|
|
10927
10966
|
};
|
|
10928
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
10967
|
+
if (_optionalChain([options, 'optionalAccess', _168 => _168.relatedTask])) {
|
|
10929
10968
|
jsonrpcNotification = {
|
|
10930
10969
|
...jsonrpcNotification,
|
|
10931
10970
|
params: {
|
|
10932
10971
|
...jsonrpcNotification.params,
|
|
10933
10972
|
_meta: {
|
|
10934
|
-
..._optionalChain([jsonrpcNotification, 'access',
|
|
10973
|
+
..._optionalChain([jsonrpcNotification, 'access', _169 => _169.params, 'optionalAccess', _170 => _170._meta]) || {},
|
|
10935
10974
|
[RELATED_TASK_META_KEY]: options.relatedTask
|
|
10936
10975
|
}
|
|
10937
10976
|
}
|
|
@@ -11010,8 +11049,8 @@ var Protocol = class {
|
|
|
11010
11049
|
if (!this._taskStore || !this._taskMessageQueue) {
|
|
11011
11050
|
throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");
|
|
11012
11051
|
}
|
|
11013
|
-
const maxQueueSize = _optionalChain([this, 'access',
|
|
11014
|
-
await this._taskMessageQueue.enqueue(taskId, message, sessionId, maxQueueSize);
|
|
11052
|
+
const maxQueueSize = _optionalChain([this, 'access', _171 => _171._options, 'optionalAccess', _172 => _172.maxTaskQueueSize]);
|
|
11053
|
+
await this._taskMessageQueue.enqueue(taskId, message, _nullishCoalesce(sessionId, () => ( _optionalChain([this, 'access', _173 => _173._transport, 'optionalAccess', _174 => _174.sessionId]))), maxQueueSize);
|
|
11015
11054
|
}
|
|
11016
11055
|
/**
|
|
11017
11056
|
* Clears the message queue for a task and rejects any pending request resolvers.
|
|
@@ -11040,13 +11079,14 @@ var Protocol = class {
|
|
|
11040
11079
|
* Uses polling to check for updates at the task's configured poll interval.
|
|
11041
11080
|
* @param taskId The task ID to wait for
|
|
11042
11081
|
* @param signal Abort signal to cancel the wait
|
|
11082
|
+
* @param sessionId Session of the request that waits, passed to the task store
|
|
11043
11083
|
* @returns Promise that resolves when an update occurs or rejects if aborted
|
|
11044
11084
|
*/
|
|
11045
|
-
async _waitForTaskUpdate(taskId, signal) {
|
|
11046
|
-
let interval = _nullishCoalesce(_optionalChain([this, 'access',
|
|
11085
|
+
async _waitForTaskUpdate(taskId, signal, sessionId) {
|
|
11086
|
+
let interval = _nullishCoalesce(_optionalChain([this, 'access', _175 => _175._options, 'optionalAccess', _176 => _176.defaultTaskPollInterval]), () => ( 1e3));
|
|
11047
11087
|
try {
|
|
11048
|
-
const task = await _optionalChain([this, 'access',
|
|
11049
|
-
if (_optionalChain([task, 'optionalAccess',
|
|
11088
|
+
const task = await _optionalChain([this, 'access', _177 => _177._taskStore, 'optionalAccess', _178 => _178.getTask, 'call', _179 => _179(taskId, sessionId)]);
|
|
11089
|
+
if (_optionalChain([task, 'optionalAccess', _180 => _180.pollInterval])) {
|
|
11050
11090
|
interval = task.pollInterval;
|
|
11051
11091
|
}
|
|
11052
11092
|
} catch (e8) {
|
|
@@ -11150,8 +11190,8 @@ function mergeCapabilities(base, additional) {
|
|
|
11150
11190
|
}
|
|
11151
11191
|
|
|
11152
11192
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
11153
|
-
var import_ajv =
|
|
11154
|
-
var import_ajv_formats =
|
|
11193
|
+
var import_ajv = _chunkR2HBS7YHcjs.__toESM.call(void 0, require_ajv(), 1);
|
|
11194
|
+
var import_ajv_formats = _chunkR2HBS7YHcjs.__toESM.call(void 0, require_dist(), 1);
|
|
11155
11195
|
function createDefaultAjvInstance() {
|
|
11156
11196
|
const ajv = new import_ajv.default({
|
|
11157
11197
|
strict: false,
|
|
@@ -11284,7 +11324,7 @@ var ExperimentalServerTasks = class {
|
|
|
11284
11324
|
*/
|
|
11285
11325
|
createMessageStream(params, options) {
|
|
11286
11326
|
const clientCapabilities = this._server.getClientCapabilities();
|
|
11287
|
-
if ((params.tools || params.toolChoice) && !_optionalChain([clientCapabilities, 'optionalAccess',
|
|
11327
|
+
if ((params.tools || params.toolChoice) && !_optionalChain([clientCapabilities, 'optionalAccess', _181 => _181.sampling, 'optionalAccess', _182 => _182.tools])) {
|
|
11288
11328
|
throw new Error("Client does not support sampling tools capability.");
|
|
11289
11329
|
}
|
|
11290
11330
|
if (params.messages.length > 0) {
|
|
@@ -11362,13 +11402,13 @@ var ExperimentalServerTasks = class {
|
|
|
11362
11402
|
const mode = _nullishCoalesce(params.mode, () => ( "form"));
|
|
11363
11403
|
switch (mode) {
|
|
11364
11404
|
case "url": {
|
|
11365
|
-
if (!_optionalChain([clientCapabilities, 'optionalAccess',
|
|
11405
|
+
if (!_optionalChain([clientCapabilities, 'optionalAccess', _183 => _183.elicitation, 'optionalAccess', _184 => _184.url])) {
|
|
11366
11406
|
throw new Error("Client does not support url elicitation.");
|
|
11367
11407
|
}
|
|
11368
11408
|
break;
|
|
11369
11409
|
}
|
|
11370
11410
|
case "form": {
|
|
11371
|
-
if (!_optionalChain([clientCapabilities, 'optionalAccess',
|
|
11411
|
+
if (!_optionalChain([clientCapabilities, 'optionalAccess', _185 => _185.elicitation, 'optionalAccess', _186 => _186.form])) {
|
|
11372
11412
|
throw new Error("Client does not support form elicitation.");
|
|
11373
11413
|
}
|
|
11374
11414
|
break;
|
|
@@ -11437,7 +11477,7 @@ function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
|
11437
11477
|
}
|
|
11438
11478
|
switch (method) {
|
|
11439
11479
|
case "tools/call":
|
|
11440
|
-
if (!_optionalChain([requests, 'access',
|
|
11480
|
+
if (!_optionalChain([requests, 'access', _187 => _187.tools, 'optionalAccess', _188 => _188.call])) {
|
|
11441
11481
|
throw new Error(`${entityName} does not support task creation for tools/call (required for ${method})`);
|
|
11442
11482
|
}
|
|
11443
11483
|
break;
|
|
@@ -11451,12 +11491,12 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
11451
11491
|
}
|
|
11452
11492
|
switch (method) {
|
|
11453
11493
|
case "sampling/createMessage":
|
|
11454
|
-
if (!_optionalChain([requests, 'access',
|
|
11494
|
+
if (!_optionalChain([requests, 'access', _189 => _189.sampling, 'optionalAccess', _190 => _190.createMessage])) {
|
|
11455
11495
|
throw new Error(`${entityName} does not support task creation for sampling/createMessage (required for ${method})`);
|
|
11456
11496
|
}
|
|
11457
11497
|
break;
|
|
11458
11498
|
case "elicitation/create":
|
|
11459
|
-
if (!_optionalChain([requests, 'access',
|
|
11499
|
+
if (!_optionalChain([requests, 'access', _191 => _191.elicitation, 'optionalAccess', _192 => _192.create])) {
|
|
11460
11500
|
throw new Error(`${entityName} does not support task creation for elicitation/create (required for ${method})`);
|
|
11461
11501
|
}
|
|
11462
11502
|
break;
|
|
@@ -11479,14 +11519,14 @@ var Server = class extends Protocol {
|
|
|
11479
11519
|
const currentLevel = this._loggingLevels.get(sessionId);
|
|
11480
11520
|
return currentLevel ? this.LOG_LEVEL_SEVERITY.get(level) < this.LOG_LEVEL_SEVERITY.get(currentLevel) : false;
|
|
11481
11521
|
};
|
|
11482
|
-
this._capabilities = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
11483
|
-
this._instructions = _optionalChain([options, 'optionalAccess',
|
|
11484
|
-
this._jsonSchemaValidator = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
11522
|
+
this._capabilities = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _193 => _193.capabilities]), () => ( {}));
|
|
11523
|
+
this._instructions = _optionalChain([options, 'optionalAccess', _194 => _194.instructions]);
|
|
11524
|
+
this._jsonSchemaValidator = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _195 => _195.jsonSchemaValidator]), () => ( new AjvJsonSchemaValidator()));
|
|
11485
11525
|
this.setRequestHandler(InitializeRequestSchema, (request) => this._oninitialize(request));
|
|
11486
|
-
this.setNotificationHandler(InitializedNotificationSchema, () => _optionalChain([this, 'access',
|
|
11526
|
+
this.setNotificationHandler(InitializedNotificationSchema, () => _optionalChain([this, 'access', _196 => _196.oninitialized, 'optionalCall', _197 => _197()]));
|
|
11487
11527
|
if (this._capabilities.logging) {
|
|
11488
11528
|
this.setRequestHandler(SetLevelRequestSchema, async (request, extra) => {
|
|
11489
|
-
const transportSessionId = extra.sessionId || _optionalChain([extra, 'access',
|
|
11529
|
+
const transportSessionId = extra.sessionId || _optionalChain([extra, 'access', _198 => _198.requestInfo, 'optionalAccess', _199 => _199.headers, 'access', _200 => _200["mcp-session-id"]]) || void 0;
|
|
11490
11530
|
const { level } = request.params;
|
|
11491
11531
|
const parseResult = LoggingLevelSchema.safeParse(level);
|
|
11492
11532
|
if (parseResult.success) {
|
|
@@ -11527,20 +11567,11 @@ var Server = class extends Protocol {
|
|
|
11527
11567
|
*/
|
|
11528
11568
|
setRequestHandler(requestSchema, handler) {
|
|
11529
11569
|
const shape = getObjectShape(requestSchema);
|
|
11530
|
-
const methodSchema = _optionalChain([shape, 'optionalAccess',
|
|
11570
|
+
const methodSchema = _optionalChain([shape, 'optionalAccess', _201 => _201.method]);
|
|
11531
11571
|
if (!methodSchema) {
|
|
11532
11572
|
throw new Error("Schema is missing a method literal");
|
|
11533
11573
|
}
|
|
11534
|
-
|
|
11535
|
-
if (isZ4Schema(methodSchema)) {
|
|
11536
|
-
const v4Schema = methodSchema;
|
|
11537
|
-
const v4Def = _optionalChain([v4Schema, 'access', _195 => _195._zod, 'optionalAccess', _196 => _196.def]);
|
|
11538
|
-
methodValue = _nullishCoalesce(_optionalChain([v4Def, 'optionalAccess', _197 => _197.value]), () => ( v4Schema.value));
|
|
11539
|
-
} else {
|
|
11540
|
-
const v3Schema = methodSchema;
|
|
11541
|
-
const legacyDef = v3Schema._def;
|
|
11542
|
-
methodValue = _nullishCoalesce(_optionalChain([legacyDef, 'optionalAccess', _198 => _198.value]), () => ( v3Schema.value));
|
|
11543
|
-
}
|
|
11574
|
+
const methodValue = getLiteralValue(methodSchema);
|
|
11544
11575
|
if (typeof methodValue !== "string") {
|
|
11545
11576
|
throw new Error("Schema method literal must be a string");
|
|
11546
11577
|
}
|
|
@@ -11576,17 +11607,17 @@ var Server = class extends Protocol {
|
|
|
11576
11607
|
assertCapabilityForMethod(method) {
|
|
11577
11608
|
switch (method) {
|
|
11578
11609
|
case "sampling/createMessage":
|
|
11579
|
-
if (!_optionalChain([this, 'access',
|
|
11610
|
+
if (!_optionalChain([this, 'access', _202 => _202._clientCapabilities, 'optionalAccess', _203 => _203.sampling])) {
|
|
11580
11611
|
throw new Error(`Client does not support sampling (required for ${method})`);
|
|
11581
11612
|
}
|
|
11582
11613
|
break;
|
|
11583
11614
|
case "elicitation/create":
|
|
11584
|
-
if (!_optionalChain([this, 'access',
|
|
11615
|
+
if (!_optionalChain([this, 'access', _204 => _204._clientCapabilities, 'optionalAccess', _205 => _205.elicitation])) {
|
|
11585
11616
|
throw new Error(`Client does not support elicitation (required for ${method})`);
|
|
11586
11617
|
}
|
|
11587
11618
|
break;
|
|
11588
11619
|
case "roots/list":
|
|
11589
|
-
if (!_optionalChain([this, 'access',
|
|
11620
|
+
if (!_optionalChain([this, 'access', _206 => _206._clientCapabilities, 'optionalAccess', _207 => _207.roots])) {
|
|
11590
11621
|
throw new Error(`Client does not support listing roots (required for ${method})`);
|
|
11591
11622
|
}
|
|
11592
11623
|
break;
|
|
@@ -11618,7 +11649,7 @@ var Server = class extends Protocol {
|
|
|
11618
11649
|
}
|
|
11619
11650
|
break;
|
|
11620
11651
|
case "notifications/elicitation/complete":
|
|
11621
|
-
if (!_optionalChain([this, 'access',
|
|
11652
|
+
if (!_optionalChain([this, 'access', _208 => _208._clientCapabilities, 'optionalAccess', _209 => _209.elicitation, 'optionalAccess', _210 => _210.url])) {
|
|
11622
11653
|
throw new Error(`Client does not support URL elicitation (required for ${method})`);
|
|
11623
11654
|
}
|
|
11624
11655
|
break;
|
|
@@ -11676,13 +11707,13 @@ var Server = class extends Protocol {
|
|
|
11676
11707
|
}
|
|
11677
11708
|
}
|
|
11678
11709
|
assertTaskCapability(method) {
|
|
11679
|
-
assertClientRequestTaskCapability(_optionalChain([this, 'access',
|
|
11710
|
+
assertClientRequestTaskCapability(_optionalChain([this, 'access', _211 => _211._clientCapabilities, 'optionalAccess', _212 => _212.tasks, 'optionalAccess', _213 => _213.requests]), method, "Client");
|
|
11680
11711
|
}
|
|
11681
11712
|
assertTaskHandlerCapability(method) {
|
|
11682
11713
|
if (!this._capabilities) {
|
|
11683
11714
|
return;
|
|
11684
11715
|
}
|
|
11685
|
-
assertToolsCallTaskCapability(_optionalChain([this, 'access',
|
|
11716
|
+
assertToolsCallTaskCapability(_optionalChain([this, 'access', _214 => _214._capabilities, 'access', _215 => _215.tasks, 'optionalAccess', _216 => _216.requests]), method, "Server");
|
|
11686
11717
|
}
|
|
11687
11718
|
async _oninitialize(request) {
|
|
11688
11719
|
const requestedVersion = request.params.protocolVersion;
|
|
@@ -11717,7 +11748,7 @@ var Server = class extends Protocol {
|
|
|
11717
11748
|
// Implementation
|
|
11718
11749
|
async createMessage(params, options) {
|
|
11719
11750
|
if (params.tools || params.toolChoice) {
|
|
11720
|
-
if (!_optionalChain([this, 'access',
|
|
11751
|
+
if (!_optionalChain([this, 'access', _217 => _217._clientCapabilities, 'optionalAccess', _218 => _218.sampling, 'optionalAccess', _219 => _219.tools])) {
|
|
11721
11752
|
throw new Error("Client does not support sampling tools capability.");
|
|
11722
11753
|
}
|
|
11723
11754
|
}
|
|
@@ -11760,14 +11791,14 @@ var Server = class extends Protocol {
|
|
|
11760
11791
|
const mode = _nullishCoalesce(params.mode, () => ( "form"));
|
|
11761
11792
|
switch (mode) {
|
|
11762
11793
|
case "url": {
|
|
11763
|
-
if (!_optionalChain([this, 'access',
|
|
11794
|
+
if (!_optionalChain([this, 'access', _220 => _220._clientCapabilities, 'optionalAccess', _221 => _221.elicitation, 'optionalAccess', _222 => _222.url])) {
|
|
11764
11795
|
throw new Error("Client does not support url elicitation.");
|
|
11765
11796
|
}
|
|
11766
11797
|
const urlParams = params;
|
|
11767
11798
|
return this.request({ method: "elicitation/create", params: urlParams }, ElicitResultSchema, options);
|
|
11768
11799
|
}
|
|
11769
11800
|
case "form": {
|
|
11770
|
-
if (!_optionalChain([this, 'access',
|
|
11801
|
+
if (!_optionalChain([this, 'access', _223 => _223._clientCapabilities, 'optionalAccess', _224 => _224.elicitation, 'optionalAccess', _225 => _225.form])) {
|
|
11771
11802
|
throw new Error("Client does not support form elicitation.");
|
|
11772
11803
|
}
|
|
11773
11804
|
const formParams = params.mode === "form" ? params : { ...params, mode: "form" };
|
|
@@ -11799,7 +11830,7 @@ var Server = class extends Protocol {
|
|
|
11799
11830
|
* @returns A function that emits the completion notification when awaited.
|
|
11800
11831
|
*/
|
|
11801
11832
|
createElicitationCompletionNotifier(elicitationId, options) {
|
|
11802
|
-
if (!_optionalChain([this, 'access',
|
|
11833
|
+
if (!_optionalChain([this, 'access', _226 => _226._clientCapabilities, 'optionalAccess', _227 => _227.elicitation, 'optionalAccess', _228 => _228.url])) {
|
|
11803
11834
|
throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");
|
|
11804
11835
|
}
|
|
11805
11836
|
return () => this.notification({
|
|
@@ -11852,7 +11883,7 @@ function isCompletable(schema) {
|
|
|
11852
11883
|
}
|
|
11853
11884
|
function getCompleter(schema) {
|
|
11854
11885
|
const meta = schema[COMPLETABLE_SYMBOL];
|
|
11855
|
-
return _optionalChain([meta, 'optionalAccess',
|
|
11886
|
+
return _optionalChain([meta, 'optionalAccess', _229 => _229.complete]);
|
|
11856
11887
|
}
|
|
11857
11888
|
var McpZodTypeKind;
|
|
11858
11889
|
(function(McpZodTypeKind2) {
|
|
@@ -11934,6 +11965,42 @@ var ExperimentalMcpServerTasks = class {
|
|
|
11934
11965
|
|
|
11935
11966
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
11936
11967
|
var _zod2 = require('zod');
|
|
11968
|
+
function toolInputElementCount(value, max) {
|
|
11969
|
+
let count = 0;
|
|
11970
|
+
const stack = [value];
|
|
11971
|
+
while (stack.length > 0) {
|
|
11972
|
+
const node = stack.pop();
|
|
11973
|
+
if (node === null || typeof node !== "object")
|
|
11974
|
+
continue;
|
|
11975
|
+
if (Array.isArray(node)) {
|
|
11976
|
+
for (const child of node) {
|
|
11977
|
+
if (++count > max)
|
|
11978
|
+
return count;
|
|
11979
|
+
if (child !== null && typeof child === "object")
|
|
11980
|
+
stack.push(child);
|
|
11981
|
+
}
|
|
11982
|
+
} else {
|
|
11983
|
+
for (const key in node) {
|
|
11984
|
+
if (!Object.prototype.hasOwnProperty.call(node, key))
|
|
11985
|
+
continue;
|
|
11986
|
+
if (++count > max)
|
|
11987
|
+
return count;
|
|
11988
|
+
const child = node[key];
|
|
11989
|
+
if (child !== null && typeof child === "object")
|
|
11990
|
+
stack.push(child);
|
|
11991
|
+
}
|
|
11992
|
+
}
|
|
11993
|
+
}
|
|
11994
|
+
return count;
|
|
11995
|
+
}
|
|
11996
|
+
function resolveMaxToolInputElements(value) {
|
|
11997
|
+
if (value === void 0 || value === Infinity)
|
|
11998
|
+
return void 0;
|
|
11999
|
+
if (typeof value !== "number" || Number.isNaN(value) || value < 1) {
|
|
12000
|
+
throw new RangeError(`maxToolInputElements must be a number of at least 1, or Infinity, got ${String(value)}`);
|
|
12001
|
+
}
|
|
12002
|
+
return value;
|
|
12003
|
+
}
|
|
11937
12004
|
var McpServer = class {
|
|
11938
12005
|
constructor(serverInfo, options) {
|
|
11939
12006
|
this._registeredResources = {};
|
|
@@ -11945,6 +12012,7 @@ var McpServer = class {
|
|
|
11945
12012
|
this._resourceHandlersInitialized = false;
|
|
11946
12013
|
this._promptHandlersInitialized = false;
|
|
11947
12014
|
this.server = new Server(serverInfo, options);
|
|
12015
|
+
this._maxToolInputElements = resolveMaxToolInputElements(_optionalChain([options, 'optionalAccess', _230 => _230.maxToolInputElements]));
|
|
11948
12016
|
}
|
|
11949
12017
|
/**
|
|
11950
12018
|
* Access experimental features.
|
|
@@ -12025,7 +12093,7 @@ var McpServer = class {
|
|
|
12025
12093
|
throw new McpError(ErrorCode.InvalidParams, `Tool ${request.params.name} disabled`);
|
|
12026
12094
|
}
|
|
12027
12095
|
const isTaskRequest = !!request.params.task;
|
|
12028
|
-
const taskSupport = _optionalChain([tool, 'access',
|
|
12096
|
+
const taskSupport = _optionalChain([tool, 'access', _231 => _231.execution, 'optionalAccess', _232 => _232.taskSupport]);
|
|
12029
12097
|
const isTaskHandler = "createTask" in tool.handler;
|
|
12030
12098
|
if ((taskSupport === "required" || taskSupport === "optional") && !isTaskHandler) {
|
|
12031
12099
|
throw new McpError(ErrorCode.InternalError, `Tool ${request.params.name} has taskSupport '${taskSupport}' but was not registered with registerToolTask`);
|
|
@@ -12075,12 +12143,15 @@ var McpServer = class {
|
|
|
12075
12143
|
* Validates tool input arguments against the tool's input schema.
|
|
12076
12144
|
*/
|
|
12077
12145
|
async validateToolInput(tool, args, toolName) {
|
|
12146
|
+
if (this._maxToolInputElements !== void 0 && toolInputElementCount(args, this._maxToolInputElements) > this._maxToolInputElements) {
|
|
12147
|
+
throw new McpError(ErrorCode.InvalidParams, `Invalid arguments for tool ${toolName}: arguments contain more than the maximum of ${this._maxToolInputElements} elements`);
|
|
12148
|
+
}
|
|
12078
12149
|
if (!tool.inputSchema) {
|
|
12079
12150
|
return void 0;
|
|
12080
12151
|
}
|
|
12081
12152
|
const inputObj = normalizeObjectSchema(tool.inputSchema);
|
|
12082
12153
|
const schemaToParse = _nullishCoalesce(inputObj, () => ( tool.inputSchema));
|
|
12083
|
-
const parseResult = await safeParseAsync2(schemaToParse, args);
|
|
12154
|
+
const parseResult = await safeParseAsync2(schemaToParse, _nullishCoalesce(args, () => ( {})));
|
|
12084
12155
|
if (!parseResult.success) {
|
|
12085
12156
|
const error = "error" in parseResult ? parseResult.error : "Unknown error";
|
|
12086
12157
|
const errorMessage = getParseErrorMessage(error);
|
|
@@ -12200,7 +12271,7 @@ var McpServer = class {
|
|
|
12200
12271
|
return EMPTY_COMPLETION_RESULT;
|
|
12201
12272
|
}
|
|
12202
12273
|
const promptShape = getObjectShape(prompt.argsSchema);
|
|
12203
|
-
const field = _optionalChain([promptShape, 'optionalAccess',
|
|
12274
|
+
const field = _optionalChain([promptShape, 'optionalAccess', _233 => _233[request.params.argument.name]]);
|
|
12204
12275
|
if (!isCompletable(field)) {
|
|
12205
12276
|
return EMPTY_COMPLETION_RESULT;
|
|
12206
12277
|
}
|
|
@@ -12318,7 +12389,7 @@ var McpServer = class {
|
|
|
12318
12389
|
}
|
|
12319
12390
|
if (prompt.argsSchema) {
|
|
12320
12391
|
const argsObj = normalizeObjectSchema(prompt.argsSchema);
|
|
12321
|
-
const parseResult = await safeParseAsync2(argsObj, request.params.arguments);
|
|
12392
|
+
const parseResult = await safeParseAsync2(argsObj, _nullishCoalesce(request.params.arguments, () => ( {})));
|
|
12322
12393
|
if (!parseResult.success) {
|
|
12323
12394
|
const error = "error" in parseResult ? parseResult.error : "Unknown error";
|
|
12324
12395
|
const errorMessage = getParseErrorMessage(error);
|
|
@@ -12478,7 +12549,7 @@ var McpServer = class {
|
|
|
12478
12549
|
this._registeredPrompts[name] = registeredPrompt;
|
|
12479
12550
|
if (argsSchema) {
|
|
12480
12551
|
const hasCompletable = Object.values(argsSchema).some((field) => {
|
|
12481
|
-
const inner = field instanceof _zod2.ZodOptional ? _optionalChain([field, 'access',
|
|
12552
|
+
const inner = field instanceof _zod2.ZodOptional ? _optionalChain([field, 'access', _234 => _234._def, 'optionalAccess', _235 => _235.innerType]) : field;
|
|
12482
12553
|
return isCompletable(inner);
|
|
12483
12554
|
});
|
|
12484
12555
|
if (hasCompletable) {
|
|
@@ -12699,7 +12770,7 @@ function promptArgumentsFromSchema(schema) {
|
|
|
12699
12770
|
}
|
|
12700
12771
|
function getMethodValue(schema) {
|
|
12701
12772
|
const shape = getObjectShape(schema);
|
|
12702
|
-
const methodSchema = _optionalChain([shape, 'optionalAccess',
|
|
12773
|
+
const methodSchema = _optionalChain([shape, 'optionalAccess', _236 => _236.method]);
|
|
12703
12774
|
if (!methodSchema) {
|
|
12704
12775
|
throw new Error("Schema is missing a method literal");
|
|
12705
12776
|
}
|
|
@@ -12729,8 +12800,17 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
12729
12800
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
12730
12801
|
|
|
12731
12802
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
12803
|
+
var STDIO_DEFAULT_MAX_BUFFER_SIZE = 10 * 1024 * 1024;
|
|
12732
12804
|
var ReadBuffer = class {
|
|
12805
|
+
constructor(options) {
|
|
12806
|
+
this._maxBufferSize = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _237 => _237.maxBufferSize]), () => ( STDIO_DEFAULT_MAX_BUFFER_SIZE));
|
|
12807
|
+
}
|
|
12733
12808
|
append(chunk) {
|
|
12809
|
+
const newSize = (_nullishCoalesce(_optionalChain([this, 'access', _238 => _238._buffer, 'optionalAccess', _239 => _239.length]), () => ( 0))) + chunk.length;
|
|
12810
|
+
if (newSize > this._maxBufferSize) {
|
|
12811
|
+
this.clear();
|
|
12812
|
+
throw new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);
|
|
12813
|
+
}
|
|
12734
12814
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
12735
12815
|
}
|
|
12736
12816
|
readMessage() {
|
|
@@ -12758,18 +12838,24 @@ function serializeMessage(message) {
|
|
|
12758
12838
|
|
|
12759
12839
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
12760
12840
|
var StdioServerTransport = class {
|
|
12761
|
-
constructor(_stdin = _process2.default.stdin, _stdout = _process2.default.stdout) {
|
|
12841
|
+
constructor(_stdin = _process2.default.stdin, _stdout = _process2.default.stdout, options) {
|
|
12762
12842
|
this._stdin = _stdin;
|
|
12763
12843
|
this._stdout = _stdout;
|
|
12764
|
-
this._readBuffer = new ReadBuffer();
|
|
12765
12844
|
this._started = false;
|
|
12766
12845
|
this._ondata = (chunk) => {
|
|
12767
|
-
|
|
12768
|
-
|
|
12846
|
+
try {
|
|
12847
|
+
this._readBuffer.append(chunk);
|
|
12848
|
+
this.processReadBuffer();
|
|
12849
|
+
} catch (error) {
|
|
12850
|
+
_optionalChain([this, 'access', _240 => _240.onerror, 'optionalCall', _241 => _241(error)]);
|
|
12851
|
+
this.close().catch(() => {
|
|
12852
|
+
});
|
|
12853
|
+
}
|
|
12769
12854
|
};
|
|
12770
12855
|
this._onerror = (error) => {
|
|
12771
|
-
_optionalChain([this, 'access',
|
|
12856
|
+
_optionalChain([this, 'access', _242 => _242.onerror, 'optionalCall', _243 => _243(error)]);
|
|
12772
12857
|
};
|
|
12858
|
+
this._readBuffer = new ReadBuffer({ maxBufferSize: _optionalChain([options, 'optionalAccess', _244 => _244.maxBufferSize]) });
|
|
12773
12859
|
}
|
|
12774
12860
|
/**
|
|
12775
12861
|
* Starts listening for messages on stdin.
|
|
@@ -12789,9 +12875,9 @@ var StdioServerTransport = class {
|
|
|
12789
12875
|
if (message === null) {
|
|
12790
12876
|
break;
|
|
12791
12877
|
}
|
|
12792
|
-
_optionalChain([this, 'access',
|
|
12878
|
+
_optionalChain([this, 'access', _245 => _245.onmessage, 'optionalCall', _246 => _246(message)]);
|
|
12793
12879
|
} catch (error) {
|
|
12794
|
-
_optionalChain([this, 'access',
|
|
12880
|
+
_optionalChain([this, 'access', _247 => _247.onerror, 'optionalCall', _248 => _248(error)]);
|
|
12795
12881
|
}
|
|
12796
12882
|
}
|
|
12797
12883
|
}
|
|
@@ -12803,7 +12889,7 @@ var StdioServerTransport = class {
|
|
|
12803
12889
|
this._stdin.pause();
|
|
12804
12890
|
}
|
|
12805
12891
|
this._readBuffer.clear();
|
|
12806
|
-
_optionalChain([this, 'access',
|
|
12892
|
+
_optionalChain([this, 'access', _249 => _249.onclose, 'optionalCall', _250 => _250()]);
|
|
12807
12893
|
}
|
|
12808
12894
|
send(message) {
|
|
12809
12895
|
return new Promise((resolve) => {
|
|
@@ -12820,7 +12906,7 @@ var StdioServerTransport = class {
|
|
|
12820
12906
|
// package.json
|
|
12821
12907
|
var package_default = {
|
|
12822
12908
|
name: "@umbraco-cms/mcp-dev",
|
|
12823
|
-
version: "18.1.
|
|
12909
|
+
version: "18.1.9",
|
|
12824
12910
|
type: "module",
|
|
12825
12911
|
description: "A model context protocol (MCP) server for Umbraco CMS",
|
|
12826
12912
|
main: "dist/index.js",
|
|
@@ -12864,7 +12950,7 @@ var package_default = {
|
|
|
12864
12950
|
"dev:hosted": "wrangler dev"
|
|
12865
12951
|
},
|
|
12866
12952
|
engines: {
|
|
12867
|
-
node: ">=22.
|
|
12953
|
+
node: ">=22.3.0"
|
|
12868
12954
|
},
|
|
12869
12955
|
files: [
|
|
12870
12956
|
"dist",
|
|
@@ -12892,8 +12978,8 @@ var package_default = {
|
|
|
12892
12978
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
12893
12979
|
"@types/uuid": "^10.0.0",
|
|
12894
12980
|
"@types/yargs": "^17.0.33",
|
|
12895
|
-
"@umbraco-cms/mcp-hosted": "^1.0.0-beta.
|
|
12896
|
-
"@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.
|
|
12981
|
+
"@umbraco-cms/mcp-hosted": "^1.0.0-beta.46",
|
|
12982
|
+
"@umbraco-cms/mcp-server-sdk": "^1.0.0-beta.46",
|
|
12897
12983
|
dotenv: "^16.5.0",
|
|
12898
12984
|
"form-data": "^4.0.4",
|
|
12899
12985
|
"mime-types": "^3.0.1",
|
|
@@ -12987,7 +13073,7 @@ var CollectionResolver = {
|
|
|
12987
13073
|
const collectionMap = new Map(collections.map((c) => [c.metadata.name, c]));
|
|
12988
13074
|
function addDependencies(collectionName) {
|
|
12989
13075
|
const collection = collectionMap.get(collectionName);
|
|
12990
|
-
if (_optionalChain([collection, 'optionalAccess',
|
|
13076
|
+
if (_optionalChain([collection, 'optionalAccess', _251 => _251.metadata, 'access', _252 => _252.dependencies])) {
|
|
12991
13077
|
collection.metadata.dependencies.forEach((dep) => {
|
|
12992
13078
|
if (!result.has(dep)) {
|
|
12993
13079
|
result.add(dep);
|
|
@@ -13048,7 +13134,7 @@ var ToolRegistrar = {
|
|
|
13048
13134
|
tools.forEach((tool) => {
|
|
13049
13135
|
const userHasPermission = tool.enabled === void 0 || tool.enabled(user);
|
|
13050
13136
|
if (!userHasPermission) return;
|
|
13051
|
-
const readOnlyHint = _nullishCoalesce(_optionalChain([tool, 'access',
|
|
13137
|
+
const readOnlyHint = _nullishCoalesce(_optionalChain([tool, 'access', _253 => _253.annotations, 'optionalAccess', _254 => _254.readOnlyHint]), () => ( false));
|
|
13052
13138
|
if (readonlyMode && !readOnlyHint) {
|
|
13053
13139
|
filteredTools.push(tool.name);
|
|
13054
13140
|
return;
|
|
@@ -13056,8 +13142,8 @@ var ToolRegistrar = {
|
|
|
13056
13142
|
if (!ToolRegistrar.isToolAllowedBySlices(tool.slices, config.enabledSlices, config.disabledSlices)) {
|
|
13057
13143
|
return;
|
|
13058
13144
|
}
|
|
13059
|
-
if (_optionalChain([config, 'access',
|
|
13060
|
-
if (_optionalChain([config, 'access',
|
|
13145
|
+
if (_optionalChain([config, 'access', _255 => _255.disabledTools, 'optionalAccess', _256 => _256.includes, 'call', _257 => _257(tool.name)])) return;
|
|
13146
|
+
if (_optionalChain([config, 'access', _258 => _258.enabledTools, 'optionalAccess', _259 => _259.length]) && !config.enabledTools.includes(tool.name)) return;
|
|
13061
13147
|
const annotations = _mcpserversdk.createToolAnnotations.call(void 0, tool);
|
|
13062
13148
|
server.registerTool(tool.name, {
|
|
13063
13149
|
description: tool.description,
|
|
@@ -13071,16 +13157,16 @@ var ToolRegistrar = {
|
|
|
13071
13157
|
|
|
13072
13158
|
// src/umbraco-api/tools/tool-factory.ts
|
|
13073
13159
|
var configLoader = _mcpserversdk.createCollectionConfigLoader.call(void 0, {
|
|
13074
|
-
modeRegistry:
|
|
13075
|
-
allModeNames:
|
|
13076
|
-
allSliceNames:
|
|
13160
|
+
modeRegistry: _chunkR2HBS7YHcjs.allModes,
|
|
13161
|
+
allModeNames: _chunkR2HBS7YHcjs.allModeNames,
|
|
13162
|
+
allSliceNames: _chunkR2HBS7YHcjs.allSliceNames
|
|
13077
13163
|
});
|
|
13078
13164
|
function UmbracoToolFactory(server, user, serverConfig) {
|
|
13079
13165
|
const config = configLoader.loadFromConfig(serverConfig);
|
|
13080
13166
|
const readonlyMode = _nullishCoalesce(serverConfig.readonly, () => ( false));
|
|
13081
13167
|
const filteredTools = [];
|
|
13082
|
-
CollectionResolver.validateConfiguration(config,
|
|
13083
|
-
const enabledCollections = CollectionResolver.getEnabledCollections(config,
|
|
13168
|
+
CollectionResolver.validateConfiguration(config, _chunkR2HBS7YHcjs.availableCollections);
|
|
13169
|
+
const enabledCollections = CollectionResolver.getEnabledCollections(config, _chunkR2HBS7YHcjs.availableCollections);
|
|
13084
13170
|
enabledCollections.forEach((collection) => {
|
|
13085
13171
|
const tools = collection.tools(user);
|
|
13086
13172
|
ToolRegistrar.registerTools(server, user, tools, config, readonlyMode, filteredTools);
|
|
@@ -13100,22 +13186,47 @@ var UMBRACO_TARGET_MAJOR = "18";
|
|
|
13100
13186
|
|
|
13101
13187
|
// src/index.ts
|
|
13102
13188
|
var main = async () => {
|
|
13103
|
-
|
|
13189
|
+
_chunkR2HBS7YHcjs.setAllowFilePathUploads.call(void 0, true);
|
|
13104
13190
|
clearConfigCache();
|
|
13105
13191
|
const serverConfig = await loadServerConfig(true);
|
|
13106
13192
|
const config = serverConfig.umbraco;
|
|
13107
13193
|
_mcpserversdk.initializeUmbracoFetch.call(void 0, config.auth);
|
|
13108
|
-
_mcpserversdk.configureApiClient.call(void 0, () =>
|
|
13109
|
-
const client =
|
|
13194
|
+
_mcpserversdk.configureApiClient.call(void 0, () => _chunkR2HBS7YHcjs.UmbracoManagementClient.getClient());
|
|
13195
|
+
const client = _chunkR2HBS7YHcjs.UmbracoManagementClient.getClient();
|
|
13110
13196
|
const user = await client.getUserCurrent();
|
|
13197
|
+
let serverInfo;
|
|
13198
|
+
let serverInfoError;
|
|
13199
|
+
try {
|
|
13200
|
+
serverInfo = await client.getServerInformation();
|
|
13201
|
+
} catch (error) {
|
|
13202
|
+
serverInfoError = error;
|
|
13203
|
+
}
|
|
13204
|
+
if (serverInfo) {
|
|
13205
|
+
_chunkR2HBS7YHcjs.setUmbracoVersion.call(void 0, serverInfo.version);
|
|
13206
|
+
}
|
|
13207
|
+
await _mcpserversdk.checkUmbracoVersion.call(void 0, {
|
|
13208
|
+
mcpVersion: package_default.version,
|
|
13209
|
+
// UMBRACO_TARGET_MAJOR is stamped into src/config/umbraco-target.generated.ts
|
|
13210
|
+
// by the orval target-major transformer, from the Umbraco instance the API
|
|
13211
|
+
// client was generated against. Override to point at a different major.
|
|
13212
|
+
// (`?.trim() ||`, not `??`: an env var set to an empty string must still
|
|
13213
|
+
// fall back, or the check silently no-ops with no log output at all.)
|
|
13214
|
+
expectedUmbracoMajor: _optionalChain([process, 'access', _260 => _260.env, 'access', _261 => _261.UMBRACO_EXPECTED_MAJOR, 'optionalAccess', _262 => _262.trim, 'call', _263 => _263()]) || UMBRACO_TARGET_MAJOR,
|
|
13215
|
+
client: {
|
|
13216
|
+
getServerInformation: async () => {
|
|
13217
|
+
if (serverInfo) return serverInfo;
|
|
13218
|
+
throw _nullishCoalesce(serverInfoError, () => ( new Error("Unable to fetch Umbraco server information")));
|
|
13219
|
+
}
|
|
13220
|
+
}
|
|
13221
|
+
});
|
|
13111
13222
|
const rawConfig = await _mcpserversdk.getServerConfig.call(void 0, true);
|
|
13112
13223
|
const configLoader2 = _mcpserversdk.createCollectionConfigLoader.call(void 0, {
|
|
13113
|
-
modeRegistry:
|
|
13114
|
-
allModeNames:
|
|
13115
|
-
allSliceNames:
|
|
13224
|
+
modeRegistry: _chunkR2HBS7YHcjs.allModes,
|
|
13225
|
+
allModeNames: _chunkR2HBS7YHcjs.allModeNames,
|
|
13226
|
+
allSliceNames: _chunkR2HBS7YHcjs.allSliceNames
|
|
13116
13227
|
});
|
|
13117
13228
|
const filterConfig = configLoader2.loadFromConfig(config);
|
|
13118
|
-
await _mcpserversdk.handleCliCommands.call(void 0,
|
|
13229
|
+
await _mcpserversdk.handleCliCommands.call(void 0, _chunkR2HBS7YHcjs.availableCollections, {
|
|
13119
13230
|
cliFlags: rawConfig.cliFlags,
|
|
13120
13231
|
serverName: "Umbraco CMS Developer MCP Server",
|
|
13121
13232
|
serverVersion: package_default.version,
|
|
@@ -13123,18 +13234,6 @@ var main = async () => {
|
|
|
13123
13234
|
filterConfig,
|
|
13124
13235
|
serverConfig: config
|
|
13125
13236
|
});
|
|
13126
|
-
const serverInfo = await client.getServerInformation();
|
|
13127
|
-
_chunkBVWOXDOScjs.setUmbracoVersion.call(void 0, serverInfo.version);
|
|
13128
|
-
await _mcpserversdk.checkUmbracoVersion.call(void 0, {
|
|
13129
|
-
mcpVersion: package_default.version,
|
|
13130
|
-
// UMBRACO_TARGET_MAJOR is stamped into src/config/umbraco-target.generated.ts
|
|
13131
|
-
// by the orval target-major transformer, from the Umbraco instance the API
|
|
13132
|
-
// client was generated against. Override to point at a different major.
|
|
13133
|
-
// (`?.trim() ||`, not `??`: an env var set to an empty string must still
|
|
13134
|
-
// fall back, or the check silently no-ops with no log output at all.)
|
|
13135
|
-
expectedUmbracoMajor: _optionalChain([process, 'access', _250 => _250.env, 'access', _251 => _251.UMBRACO_EXPECTED_MAJOR, 'optionalAccess', _252 => _252.trim, 'call', _253 => _253()]) || UMBRACO_TARGET_MAJOR,
|
|
13136
|
-
client: { getServerInformation: async () => serverInfo }
|
|
13137
|
-
});
|
|
13138
13237
|
_mcpserversdk.configureVersionCheckHook.call(void 0, );
|
|
13139
13238
|
const versionCheckMessage = _mcpserversdk.getVersionCheckMessage.call(void 0, );
|
|
13140
13239
|
const server = new McpServer(
|