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