@aleph-alpha/lib-mcp 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components-meta.json +103 -6
- package/dist/cli.js +360 -164
- package/dist/server.js +360 -164
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -28,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
mod
|
|
29
29
|
));
|
|
30
30
|
|
|
31
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
31
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
32
32
|
var require_code = __commonJS({
|
|
33
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
33
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
34
34
|
"use strict";
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -182,9 +182,9 @@ var require_code = __commonJS({
|
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
185
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
186
186
|
var require_scope = __commonJS({
|
|
187
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
187
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
188
188
|
"use strict";
|
|
189
189
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
190
190
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -327,9 +327,9 @@ var require_scope = __commonJS({
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
330
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
331
331
|
var require_codegen = __commonJS({
|
|
332
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
332
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
333
333
|
"use strict";
|
|
334
334
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
335
335
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
@@ -1047,9 +1047,9 @@ var require_codegen = __commonJS({
|
|
|
1047
1047
|
}
|
|
1048
1048
|
});
|
|
1049
1049
|
|
|
1050
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1050
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js
|
|
1051
1051
|
var require_util = __commonJS({
|
|
1052
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1052
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js"(exports) {
|
|
1053
1053
|
"use strict";
|
|
1054
1054
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1055
1055
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
@@ -1214,9 +1214,9 @@ var require_util = __commonJS({
|
|
|
1214
1214
|
}
|
|
1215
1215
|
});
|
|
1216
1216
|
|
|
1217
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1217
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js
|
|
1218
1218
|
var require_names = __commonJS({
|
|
1219
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1219
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js"(exports) {
|
|
1220
1220
|
"use strict";
|
|
1221
1221
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1222
1222
|
var codegen_1 = require_codegen();
|
|
@@ -1253,9 +1253,9 @@ var require_names = __commonJS({
|
|
|
1253
1253
|
}
|
|
1254
1254
|
});
|
|
1255
1255
|
|
|
1256
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1256
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js
|
|
1257
1257
|
var require_errors = __commonJS({
|
|
1258
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1258
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
1259
1259
|
"use strict";
|
|
1260
1260
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1261
1261
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -1375,9 +1375,9 @@ var require_errors = __commonJS({
|
|
|
1375
1375
|
}
|
|
1376
1376
|
});
|
|
1377
1377
|
|
|
1378
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1378
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1379
1379
|
var require_boolSchema = __commonJS({
|
|
1380
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1380
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
1381
1381
|
"use strict";
|
|
1382
1382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1383
1383
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -1426,9 +1426,9 @@ var require_boolSchema = __commonJS({
|
|
|
1426
1426
|
}
|
|
1427
1427
|
});
|
|
1428
1428
|
|
|
1429
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1429
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js
|
|
1430
1430
|
var require_rules = __commonJS({
|
|
1431
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1431
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
1432
1432
|
"use strict";
|
|
1433
1433
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1434
1434
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -1457,9 +1457,9 @@ var require_rules = __commonJS({
|
|
|
1457
1457
|
}
|
|
1458
1458
|
});
|
|
1459
1459
|
|
|
1460
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1460
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1461
1461
|
var require_applicability = __commonJS({
|
|
1462
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1462
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
1463
1463
|
"use strict";
|
|
1464
1464
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1465
1465
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -1480,9 +1480,9 @@ var require_applicability = __commonJS({
|
|
|
1480
1480
|
}
|
|
1481
1481
|
});
|
|
1482
1482
|
|
|
1483
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1483
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1484
1484
|
var require_dataType = __commonJS({
|
|
1485
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1485
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
1486
1486
|
"use strict";
|
|
1487
1487
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1488
1488
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -1664,9 +1664,9 @@ var require_dataType = __commonJS({
|
|
|
1664
1664
|
}
|
|
1665
1665
|
});
|
|
1666
1666
|
|
|
1667
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1667
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1668
1668
|
var require_defaults = __commonJS({
|
|
1669
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1669
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
1670
1670
|
"use strict";
|
|
1671
1671
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1672
1672
|
exports.assignDefaults = void 0;
|
|
@@ -1701,9 +1701,9 @@ var require_defaults = __commonJS({
|
|
|
1701
1701
|
}
|
|
1702
1702
|
});
|
|
1703
1703
|
|
|
1704
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1704
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js
|
|
1705
1705
|
var require_code2 = __commonJS({
|
|
1706
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1706
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
1707
1707
|
"use strict";
|
|
1708
1708
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1709
1709
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
@@ -1834,9 +1834,9 @@ var require_code2 = __commonJS({
|
|
|
1834
1834
|
}
|
|
1835
1835
|
});
|
|
1836
1836
|
|
|
1837
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1837
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1838
1838
|
var require_keyword = __commonJS({
|
|
1839
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1839
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
1840
1840
|
"use strict";
|
|
1841
1841
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1842
1842
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -1952,9 +1952,9 @@ var require_keyword = __commonJS({
|
|
|
1952
1952
|
}
|
|
1953
1953
|
});
|
|
1954
1954
|
|
|
1955
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
1955
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1956
1956
|
var require_subschema = __commonJS({
|
|
1957
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
1957
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
1958
1958
|
"use strict";
|
|
1959
1959
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1960
1960
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -2158,9 +2158,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2158
2158
|
}
|
|
2159
2159
|
});
|
|
2160
2160
|
|
|
2161
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2161
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js
|
|
2162
2162
|
var require_resolve = __commonJS({
|
|
2163
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2163
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
2164
2164
|
"use strict";
|
|
2165
2165
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2166
2166
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -2314,9 +2314,9 @@ var require_resolve = __commonJS({
|
|
|
2314
2314
|
}
|
|
2315
2315
|
});
|
|
2316
2316
|
|
|
2317
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2317
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js
|
|
2318
2318
|
var require_validate = __commonJS({
|
|
2319
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2319
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
2320
2320
|
"use strict";
|
|
2321
2321
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2322
2322
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -2822,9 +2822,9 @@ var require_validate = __commonJS({
|
|
|
2822
2822
|
}
|
|
2823
2823
|
});
|
|
2824
2824
|
|
|
2825
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2825
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
2826
2826
|
var require_validation_error = __commonJS({
|
|
2827
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2827
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
2828
2828
|
"use strict";
|
|
2829
2829
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2830
2830
|
var ValidationError = class extends Error {
|
|
@@ -2838,9 +2838,9 @@ var require_validation_error = __commonJS({
|
|
|
2838
2838
|
}
|
|
2839
2839
|
});
|
|
2840
2840
|
|
|
2841
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2841
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js
|
|
2842
2842
|
var require_ref_error = __commonJS({
|
|
2843
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2843
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
2844
2844
|
"use strict";
|
|
2845
2845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2846
2846
|
var resolve_1 = require_resolve();
|
|
@@ -2855,9 +2855,9 @@ var require_ref_error = __commonJS({
|
|
|
2855
2855
|
}
|
|
2856
2856
|
});
|
|
2857
2857
|
|
|
2858
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
2858
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js
|
|
2859
2859
|
var require_compile = __commonJS({
|
|
2860
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
2860
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js"(exports) {
|
|
2861
2861
|
"use strict";
|
|
2862
2862
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2863
2863
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -3079,9 +3079,9 @@ var require_compile = __commonJS({
|
|
|
3079
3079
|
}
|
|
3080
3080
|
});
|
|
3081
3081
|
|
|
3082
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
3082
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json
|
|
3083
3083
|
var require_data = __commonJS({
|
|
3084
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
3084
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
3085
3085
|
module.exports = {
|
|
3086
3086
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3087
3087
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3221,8 +3221,8 @@ var require_utils = __commonJS({
|
|
|
3221
3221
|
}
|
|
3222
3222
|
return ind;
|
|
3223
3223
|
}
|
|
3224
|
-
function removeDotSegments(
|
|
3225
|
-
let input =
|
|
3224
|
+
function removeDotSegments(path8) {
|
|
3225
|
+
let input = path8;
|
|
3226
3226
|
const output = [];
|
|
3227
3227
|
let nextSlash = -1;
|
|
3228
3228
|
let len = 0;
|
|
@@ -3421,8 +3421,8 @@ var require_schemes = __commonJS({
|
|
|
3421
3421
|
wsComponent.secure = void 0;
|
|
3422
3422
|
}
|
|
3423
3423
|
if (wsComponent.resourceName) {
|
|
3424
|
-
const [
|
|
3425
|
-
wsComponent.path =
|
|
3424
|
+
const [path8, query] = wsComponent.resourceName.split("?");
|
|
3425
|
+
wsComponent.path = path8 && path8 !== "/" ? path8 : void 0;
|
|
3426
3426
|
wsComponent.query = query;
|
|
3427
3427
|
wsComponent.resourceName = void 0;
|
|
3428
3428
|
}
|
|
@@ -3820,9 +3820,9 @@ var require_fast_uri = __commonJS({
|
|
|
3820
3820
|
}
|
|
3821
3821
|
});
|
|
3822
3822
|
|
|
3823
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
3823
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js
|
|
3824
3824
|
var require_uri = __commonJS({
|
|
3825
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
3825
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
3826
3826
|
"use strict";
|
|
3827
3827
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3828
3828
|
var uri = require_fast_uri();
|
|
@@ -3831,9 +3831,9 @@ var require_uri = __commonJS({
|
|
|
3831
3831
|
}
|
|
3832
3832
|
});
|
|
3833
3833
|
|
|
3834
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
3834
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js
|
|
3835
3835
|
var require_core = __commonJS({
|
|
3836
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
3836
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js"(exports) {
|
|
3837
3837
|
"use strict";
|
|
3838
3838
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3839
3839
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -4442,9 +4442,9 @@ var require_core = __commonJS({
|
|
|
4442
4442
|
}
|
|
4443
4443
|
});
|
|
4444
4444
|
|
|
4445
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4445
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4446
4446
|
var require_id = __commonJS({
|
|
4447
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4447
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
4448
4448
|
"use strict";
|
|
4449
4449
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4450
4450
|
var def = {
|
|
@@ -4457,9 +4457,9 @@ var require_id = __commonJS({
|
|
|
4457
4457
|
}
|
|
4458
4458
|
});
|
|
4459
4459
|
|
|
4460
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4460
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4461
4461
|
var require_ref = __commonJS({
|
|
4462
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4462
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
4463
4463
|
"use strict";
|
|
4464
4464
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4465
4465
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -4579,9 +4579,9 @@ var require_ref = __commonJS({
|
|
|
4579
4579
|
}
|
|
4580
4580
|
});
|
|
4581
4581
|
|
|
4582
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4582
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4583
4583
|
var require_core2 = __commonJS({
|
|
4584
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4584
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
4585
4585
|
"use strict";
|
|
4586
4586
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4587
4587
|
var id_1 = require_id();
|
|
@@ -4600,9 +4600,9 @@ var require_core2 = __commonJS({
|
|
|
4600
4600
|
}
|
|
4601
4601
|
});
|
|
4602
4602
|
|
|
4603
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4603
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4604
4604
|
var require_limitNumber = __commonJS({
|
|
4605
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4605
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
4606
4606
|
"use strict";
|
|
4607
4607
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4608
4608
|
var codegen_1 = require_codegen();
|
|
@@ -4632,9 +4632,9 @@ var require_limitNumber = __commonJS({
|
|
|
4632
4632
|
}
|
|
4633
4633
|
});
|
|
4634
4634
|
|
|
4635
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4635
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4636
4636
|
var require_multipleOf = __commonJS({
|
|
4637
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4637
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
4638
4638
|
"use strict";
|
|
4639
4639
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4640
4640
|
var codegen_1 = require_codegen();
|
|
@@ -4660,9 +4660,9 @@ var require_multipleOf = __commonJS({
|
|
|
4660
4660
|
}
|
|
4661
4661
|
});
|
|
4662
4662
|
|
|
4663
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4663
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4664
4664
|
var require_ucs2length = __commonJS({
|
|
4665
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4665
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
4666
4666
|
"use strict";
|
|
4667
4667
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4668
4668
|
function ucs2length(str) {
|
|
@@ -4686,9 +4686,9 @@ var require_ucs2length = __commonJS({
|
|
|
4686
4686
|
}
|
|
4687
4687
|
});
|
|
4688
4688
|
|
|
4689
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4689
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4690
4690
|
var require_limitLength = __commonJS({
|
|
4691
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4691
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
4692
4692
|
"use strict";
|
|
4693
4693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4694
4694
|
var codegen_1 = require_codegen();
|
|
@@ -4718,12 +4718,13 @@ var require_limitLength = __commonJS({
|
|
|
4718
4718
|
}
|
|
4719
4719
|
});
|
|
4720
4720
|
|
|
4721
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4721
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4722
4722
|
var require_pattern = __commonJS({
|
|
4723
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4723
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
4724
4724
|
"use strict";
|
|
4725
4725
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4726
4726
|
var code_1 = require_code2();
|
|
4727
|
+
var util_1 = require_util();
|
|
4727
4728
|
var codegen_1 = require_codegen();
|
|
4728
4729
|
var error3 = {
|
|
4729
4730
|
message: ({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`,
|
|
@@ -4736,19 +4737,27 @@ var require_pattern = __commonJS({
|
|
|
4736
4737
|
$data: true,
|
|
4737
4738
|
error: error3,
|
|
4738
4739
|
code(cxt) {
|
|
4739
|
-
const { data, $data, schema, schemaCode, it } = cxt;
|
|
4740
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
4740
4741
|
const u = it.opts.unicodeRegExp ? "u" : "";
|
|
4741
|
-
|
|
4742
|
-
|
|
4742
|
+
if ($data) {
|
|
4743
|
+
const { regExp } = it.opts.code;
|
|
4744
|
+
const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._)`new RegExp` : (0, util_1.useFunc)(gen, regExp);
|
|
4745
|
+
const valid = gen.let("valid");
|
|
4746
|
+
gen.try(() => gen.assign(valid, (0, codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));
|
|
4747
|
+
cxt.fail$data((0, codegen_1._)`!${valid}`);
|
|
4748
|
+
} else {
|
|
4749
|
+
const regExp = (0, code_1.usePattern)(cxt, schema);
|
|
4750
|
+
cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
|
|
4751
|
+
}
|
|
4743
4752
|
}
|
|
4744
4753
|
};
|
|
4745
4754
|
exports.default = def;
|
|
4746
4755
|
}
|
|
4747
4756
|
});
|
|
4748
4757
|
|
|
4749
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4758
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4750
4759
|
var require_limitProperties = __commonJS({
|
|
4751
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4760
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
4752
4761
|
"use strict";
|
|
4753
4762
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4754
4763
|
var codegen_1 = require_codegen();
|
|
@@ -4775,9 +4784,9 @@ var require_limitProperties = __commonJS({
|
|
|
4775
4784
|
}
|
|
4776
4785
|
});
|
|
4777
4786
|
|
|
4778
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4787
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4779
4788
|
var require_required = __commonJS({
|
|
4780
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4789
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
4781
4790
|
"use strict";
|
|
4782
4791
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4783
4792
|
var code_1 = require_code2();
|
|
@@ -4857,9 +4866,9 @@ var require_required = __commonJS({
|
|
|
4857
4866
|
}
|
|
4858
4867
|
});
|
|
4859
4868
|
|
|
4860
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4869
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4861
4870
|
var require_limitItems = __commonJS({
|
|
4862
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4871
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
4863
4872
|
"use strict";
|
|
4864
4873
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4865
4874
|
var codegen_1 = require_codegen();
|
|
@@ -4886,9 +4895,9 @@ var require_limitItems = __commonJS({
|
|
|
4886
4895
|
}
|
|
4887
4896
|
});
|
|
4888
4897
|
|
|
4889
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4898
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js
|
|
4890
4899
|
var require_equal = __commonJS({
|
|
4891
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4900
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
4892
4901
|
"use strict";
|
|
4893
4902
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4894
4903
|
var equal = require_fast_deep_equal();
|
|
@@ -4897,9 +4906,9 @@ var require_equal = __commonJS({
|
|
|
4897
4906
|
}
|
|
4898
4907
|
});
|
|
4899
4908
|
|
|
4900
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4909
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4901
4910
|
var require_uniqueItems = __commonJS({
|
|
4902
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4911
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
4903
4912
|
"use strict";
|
|
4904
4913
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4905
4914
|
var dataType_1 = require_dataType();
|
|
@@ -4964,9 +4973,9 @@ var require_uniqueItems = __commonJS({
|
|
|
4964
4973
|
}
|
|
4965
4974
|
});
|
|
4966
4975
|
|
|
4967
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
4976
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4968
4977
|
var require_const = __commonJS({
|
|
4969
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
4978
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
4970
4979
|
"use strict";
|
|
4971
4980
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4972
4981
|
var codegen_1 = require_codegen();
|
|
@@ -4993,9 +5002,9 @@ var require_const = __commonJS({
|
|
|
4993
5002
|
}
|
|
4994
5003
|
});
|
|
4995
5004
|
|
|
4996
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5005
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
4997
5006
|
var require_enum = __commonJS({
|
|
4998
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5007
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
4999
5008
|
"use strict";
|
|
5000
5009
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5001
5010
|
var codegen_1 = require_codegen();
|
|
@@ -5042,9 +5051,9 @@ var require_enum = __commonJS({
|
|
|
5042
5051
|
}
|
|
5043
5052
|
});
|
|
5044
5053
|
|
|
5045
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5054
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5046
5055
|
var require_validation = __commonJS({
|
|
5047
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5056
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
5048
5057
|
"use strict";
|
|
5049
5058
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5050
5059
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -5080,9 +5089,9 @@ var require_validation = __commonJS({
|
|
|
5080
5089
|
}
|
|
5081
5090
|
});
|
|
5082
5091
|
|
|
5083
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5092
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5084
5093
|
var require_additionalItems = __commonJS({
|
|
5085
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5094
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
5086
5095
|
"use strict";
|
|
5087
5096
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5088
5097
|
exports.validateAdditionalItems = void 0;
|
|
@@ -5133,9 +5142,9 @@ var require_additionalItems = __commonJS({
|
|
|
5133
5142
|
}
|
|
5134
5143
|
});
|
|
5135
5144
|
|
|
5136
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5145
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5137
5146
|
var require_items = __commonJS({
|
|
5138
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5147
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
5139
5148
|
"use strict";
|
|
5140
5149
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5141
5150
|
exports.validateTuple = void 0;
|
|
@@ -5190,9 +5199,9 @@ var require_items = __commonJS({
|
|
|
5190
5199
|
}
|
|
5191
5200
|
});
|
|
5192
5201
|
|
|
5193
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5202
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5194
5203
|
var require_prefixItems = __commonJS({
|
|
5195
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5204
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
5196
5205
|
"use strict";
|
|
5197
5206
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5198
5207
|
var items_1 = require_items();
|
|
@@ -5207,9 +5216,9 @@ var require_prefixItems = __commonJS({
|
|
|
5207
5216
|
}
|
|
5208
5217
|
});
|
|
5209
5218
|
|
|
5210
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5219
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5211
5220
|
var require_items2020 = __commonJS({
|
|
5212
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5221
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
5213
5222
|
"use strict";
|
|
5214
5223
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5215
5224
|
var codegen_1 = require_codegen();
|
|
@@ -5242,9 +5251,9 @@ var require_items2020 = __commonJS({
|
|
|
5242
5251
|
}
|
|
5243
5252
|
});
|
|
5244
5253
|
|
|
5245
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5254
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5246
5255
|
var require_contains = __commonJS({
|
|
5247
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5256
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
5248
5257
|
"use strict";
|
|
5249
5258
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5250
5259
|
var codegen_1 = require_codegen();
|
|
@@ -5336,9 +5345,9 @@ var require_contains = __commonJS({
|
|
|
5336
5345
|
}
|
|
5337
5346
|
});
|
|
5338
5347
|
|
|
5339
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5348
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5340
5349
|
var require_dependencies = __commonJS({
|
|
5341
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5350
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
5342
5351
|
"use strict";
|
|
5343
5352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5344
5353
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -5430,9 +5439,9 @@ var require_dependencies = __commonJS({
|
|
|
5430
5439
|
}
|
|
5431
5440
|
});
|
|
5432
5441
|
|
|
5433
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5442
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5434
5443
|
var require_propertyNames = __commonJS({
|
|
5435
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5444
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
5436
5445
|
"use strict";
|
|
5437
5446
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5438
5447
|
var codegen_1 = require_codegen();
|
|
@@ -5473,9 +5482,9 @@ var require_propertyNames = __commonJS({
|
|
|
5473
5482
|
}
|
|
5474
5483
|
});
|
|
5475
5484
|
|
|
5476
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5485
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5477
5486
|
var require_additionalProperties = __commonJS({
|
|
5478
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5487
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
5479
5488
|
"use strict";
|
|
5480
5489
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5481
5490
|
var code_1 = require_code2();
|
|
@@ -5579,9 +5588,9 @@ var require_additionalProperties = __commonJS({
|
|
|
5579
5588
|
}
|
|
5580
5589
|
});
|
|
5581
5590
|
|
|
5582
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5591
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5583
5592
|
var require_properties = __commonJS({
|
|
5584
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5593
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
5585
5594
|
"use strict";
|
|
5586
5595
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5587
5596
|
var validate_1 = require_validate();
|
|
@@ -5637,9 +5646,9 @@ var require_properties = __commonJS({
|
|
|
5637
5646
|
}
|
|
5638
5647
|
});
|
|
5639
5648
|
|
|
5640
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5649
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5641
5650
|
var require_patternProperties = __commonJS({
|
|
5642
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5651
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
5643
5652
|
"use strict";
|
|
5644
5653
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5645
5654
|
var code_1 = require_code2();
|
|
@@ -5711,9 +5720,9 @@ var require_patternProperties = __commonJS({
|
|
|
5711
5720
|
}
|
|
5712
5721
|
});
|
|
5713
5722
|
|
|
5714
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5723
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5715
5724
|
var require_not = __commonJS({
|
|
5716
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5725
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
5717
5726
|
"use strict";
|
|
5718
5727
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5719
5728
|
var util_1 = require_util();
|
|
@@ -5742,9 +5751,9 @@ var require_not = __commonJS({
|
|
|
5742
5751
|
}
|
|
5743
5752
|
});
|
|
5744
5753
|
|
|
5745
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5754
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5746
5755
|
var require_anyOf = __commonJS({
|
|
5747
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5756
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
5748
5757
|
"use strict";
|
|
5749
5758
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5750
5759
|
var code_1 = require_code2();
|
|
@@ -5759,9 +5768,9 @@ var require_anyOf = __commonJS({
|
|
|
5759
5768
|
}
|
|
5760
5769
|
});
|
|
5761
5770
|
|
|
5762
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5771
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5763
5772
|
var require_oneOf = __commonJS({
|
|
5764
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5773
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
5765
5774
|
"use strict";
|
|
5766
5775
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5767
5776
|
var codegen_1 = require_codegen();
|
|
@@ -5817,9 +5826,9 @@ var require_oneOf = __commonJS({
|
|
|
5817
5826
|
}
|
|
5818
5827
|
});
|
|
5819
5828
|
|
|
5820
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5829
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5821
5830
|
var require_allOf = __commonJS({
|
|
5822
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5831
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
5823
5832
|
"use strict";
|
|
5824
5833
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5825
5834
|
var util_1 = require_util();
|
|
@@ -5844,9 +5853,9 @@ var require_allOf = __commonJS({
|
|
|
5844
5853
|
}
|
|
5845
5854
|
});
|
|
5846
5855
|
|
|
5847
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5856
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5848
5857
|
var require_if = __commonJS({
|
|
5849
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5858
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
5850
5859
|
"use strict";
|
|
5851
5860
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5852
5861
|
var codegen_1 = require_codegen();
|
|
@@ -5913,9 +5922,9 @@ var require_if = __commonJS({
|
|
|
5913
5922
|
}
|
|
5914
5923
|
});
|
|
5915
5924
|
|
|
5916
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5925
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5917
5926
|
var require_thenElse = __commonJS({
|
|
5918
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5927
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
5919
5928
|
"use strict";
|
|
5920
5929
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5921
5930
|
var util_1 = require_util();
|
|
@@ -5931,9 +5940,9 @@ var require_thenElse = __commonJS({
|
|
|
5931
5940
|
}
|
|
5932
5941
|
});
|
|
5933
5942
|
|
|
5934
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5943
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5935
5944
|
var require_applicator = __commonJS({
|
|
5936
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5945
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
5937
5946
|
"use strict";
|
|
5938
5947
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5939
5948
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -5979,9 +5988,9 @@ var require_applicator = __commonJS({
|
|
|
5979
5988
|
}
|
|
5980
5989
|
});
|
|
5981
5990
|
|
|
5982
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
5991
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
5983
5992
|
var require_format = __commonJS({
|
|
5984
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
5993
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
5985
5994
|
"use strict";
|
|
5986
5995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5987
5996
|
var codegen_1 = require_codegen();
|
|
@@ -6069,9 +6078,9 @@ var require_format = __commonJS({
|
|
|
6069
6078
|
}
|
|
6070
6079
|
});
|
|
6071
6080
|
|
|
6072
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6081
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
6073
6082
|
var require_format2 = __commonJS({
|
|
6074
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6083
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
6075
6084
|
"use strict";
|
|
6076
6085
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6077
6086
|
var format_1 = require_format();
|
|
@@ -6080,9 +6089,9 @@ var require_format2 = __commonJS({
|
|
|
6080
6089
|
}
|
|
6081
6090
|
});
|
|
6082
6091
|
|
|
6083
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6092
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
6084
6093
|
var require_metadata = __commonJS({
|
|
6085
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6094
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
6086
6095
|
"use strict";
|
|
6087
6096
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6088
6097
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -6103,9 +6112,9 @@ var require_metadata = __commonJS({
|
|
|
6103
6112
|
}
|
|
6104
6113
|
});
|
|
6105
6114
|
|
|
6106
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6115
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
6107
6116
|
var require_draft7 = __commonJS({
|
|
6108
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6117
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
6109
6118
|
"use strict";
|
|
6110
6119
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6111
6120
|
var core_1 = require_core2();
|
|
@@ -6125,9 +6134,9 @@ var require_draft7 = __commonJS({
|
|
|
6125
6134
|
}
|
|
6126
6135
|
});
|
|
6127
6136
|
|
|
6128
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6137
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6129
6138
|
var require_types = __commonJS({
|
|
6130
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6139
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
6131
6140
|
"use strict";
|
|
6132
6141
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6133
6142
|
exports.DiscrError = void 0;
|
|
@@ -6139,9 +6148,9 @@ var require_types = __commonJS({
|
|
|
6139
6148
|
}
|
|
6140
6149
|
});
|
|
6141
6150
|
|
|
6142
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6151
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6143
6152
|
var require_discriminator = __commonJS({
|
|
6144
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6153
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
6145
6154
|
"use strict";
|
|
6146
6155
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6147
6156
|
var codegen_1 = require_codegen();
|
|
@@ -6244,9 +6253,9 @@ var require_discriminator = __commonJS({
|
|
|
6244
6253
|
}
|
|
6245
6254
|
});
|
|
6246
6255
|
|
|
6247
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6256
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6248
6257
|
var require_json_schema_draft_07 = __commonJS({
|
|
6249
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6258
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
6250
6259
|
module.exports = {
|
|
6251
6260
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6252
6261
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6401,9 +6410,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
6401
6410
|
}
|
|
6402
6411
|
});
|
|
6403
6412
|
|
|
6404
|
-
// ../../node_modules/.pnpm/ajv@8.
|
|
6413
|
+
// ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js
|
|
6405
6414
|
var require_ajv = __commonJS({
|
|
6406
|
-
"../../node_modules/.pnpm/ajv@8.
|
|
6415
|
+
"../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
6407
6416
|
"use strict";
|
|
6408
6417
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6409
6418
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -6471,9 +6480,9 @@ var require_ajv = __commonJS({
|
|
|
6471
6480
|
}
|
|
6472
6481
|
});
|
|
6473
6482
|
|
|
6474
|
-
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
6483
|
+
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js
|
|
6475
6484
|
var require_formats = __commonJS({
|
|
6476
|
-
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
6485
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
6477
6486
|
"use strict";
|
|
6478
6487
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6479
6488
|
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
@@ -6674,9 +6683,9 @@ var require_formats = __commonJS({
|
|
|
6674
6683
|
}
|
|
6675
6684
|
});
|
|
6676
6685
|
|
|
6677
|
-
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
6686
|
+
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js
|
|
6678
6687
|
var require_limit = __commonJS({
|
|
6679
|
-
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
6688
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
6680
6689
|
"use strict";
|
|
6681
6690
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6682
6691
|
exports.formatLimitDefinition = void 0;
|
|
@@ -6746,9 +6755,9 @@ var require_limit = __commonJS({
|
|
|
6746
6755
|
}
|
|
6747
6756
|
});
|
|
6748
6757
|
|
|
6749
|
-
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
6758
|
+
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js
|
|
6750
6759
|
var require_dist = __commonJS({
|
|
6751
|
-
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
6760
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
6752
6761
|
"use strict";
|
|
6753
6762
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6754
6763
|
var formats_1 = require_formats();
|
|
@@ -7266,8 +7275,8 @@ function getErrorMap() {
|
|
|
7266
7275
|
|
|
7267
7276
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
|
|
7268
7277
|
var makeIssue = (params) => {
|
|
7269
|
-
const { data, path:
|
|
7270
|
-
const fullPath = [...
|
|
7278
|
+
const { data, path: path8, errorMaps, issueData } = params;
|
|
7279
|
+
const fullPath = [...path8, ...issueData.path || []];
|
|
7271
7280
|
const fullIssue = {
|
|
7272
7281
|
...issueData,
|
|
7273
7282
|
path: fullPath
|
|
@@ -7383,11 +7392,11 @@ var errorUtil;
|
|
|
7383
7392
|
|
|
7384
7393
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
|
|
7385
7394
|
var ParseInputLazyPath = class {
|
|
7386
|
-
constructor(parent, value,
|
|
7395
|
+
constructor(parent, value, path8, key) {
|
|
7387
7396
|
this._cachedPath = [];
|
|
7388
7397
|
this.parent = parent;
|
|
7389
7398
|
this.data = value;
|
|
7390
|
-
this._path =
|
|
7399
|
+
this._path = path8;
|
|
7391
7400
|
this._key = key;
|
|
7392
7401
|
}
|
|
7393
7402
|
get path() {
|
|
@@ -11025,10 +11034,10 @@ function assignProp(target, prop, value) {
|
|
|
11025
11034
|
configurable: true
|
|
11026
11035
|
});
|
|
11027
11036
|
}
|
|
11028
|
-
function getElementAtPath(obj,
|
|
11029
|
-
if (!
|
|
11037
|
+
function getElementAtPath(obj, path8) {
|
|
11038
|
+
if (!path8)
|
|
11030
11039
|
return obj;
|
|
11031
|
-
return
|
|
11040
|
+
return path8.reduce((acc, key) => acc?.[key], obj);
|
|
11032
11041
|
}
|
|
11033
11042
|
function promiseAllObject(promisesObj) {
|
|
11034
11043
|
const keys = Object.keys(promisesObj);
|
|
@@ -11348,11 +11357,11 @@ function aborted(x, startIndex = 0) {
|
|
|
11348
11357
|
}
|
|
11349
11358
|
return false;
|
|
11350
11359
|
}
|
|
11351
|
-
function prefixIssues(
|
|
11360
|
+
function prefixIssues(path8, issues) {
|
|
11352
11361
|
return issues.map((iss) => {
|
|
11353
11362
|
var _a;
|
|
11354
11363
|
(_a = iss).path ?? (_a.path = []);
|
|
11355
|
-
iss.path.unshift(
|
|
11364
|
+
iss.path.unshift(path8);
|
|
11356
11365
|
return iss;
|
|
11357
11366
|
});
|
|
11358
11367
|
}
|
|
@@ -14681,7 +14690,7 @@ function object(shape, params) {
|
|
|
14681
14690
|
return new ZodMiniObject(def);
|
|
14682
14691
|
}
|
|
14683
14692
|
|
|
14684
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
14693
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
14685
14694
|
function isZ4Schema(s) {
|
|
14686
14695
|
const schema = s;
|
|
14687
14696
|
return !!schema._zod;
|
|
@@ -15520,7 +15529,7 @@ function preprocess(fn, schema) {
|
|
|
15520
15529
|
// ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
|
|
15521
15530
|
config(en_default2());
|
|
15522
15531
|
|
|
15523
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
15532
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
15524
15533
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
15525
15534
|
var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
15526
15535
|
var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
|
|
@@ -17036,7 +17045,7 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
17036
17045
|
}
|
|
17037
17046
|
};
|
|
17038
17047
|
|
|
17039
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
17048
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
17040
17049
|
function isTerminal(status) {
|
|
17041
17050
|
return status === "completed" || status === "failed" || status === "cancelled";
|
|
17042
17051
|
}
|
|
@@ -18325,7 +18334,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
18325
18334
|
return combined;
|
|
18326
18335
|
};
|
|
18327
18336
|
|
|
18328
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18337
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
18329
18338
|
function mapMiniTarget(t) {
|
|
18330
18339
|
if (!t)
|
|
18331
18340
|
return "draft-7";
|
|
@@ -18367,7 +18376,7 @@ function parseWithCompat(schema, data) {
|
|
|
18367
18376
|
return result.data;
|
|
18368
18377
|
}
|
|
18369
18378
|
|
|
18370
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
18379
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
|
|
18371
18380
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
|
|
18372
18381
|
var Protocol = class {
|
|
18373
18382
|
constructor(_options) {
|
|
@@ -18544,6 +18553,9 @@ var Protocol = class {
|
|
|
18544
18553
|
* The Protocol object assumes ownership of the Transport, replacing any callbacks that have already been set, and expects that it is the only user of the Transport instance going forward.
|
|
18545
18554
|
*/
|
|
18546
18555
|
async connect(transport) {
|
|
18556
|
+
if (this._transport) {
|
|
18557
|
+
throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");
|
|
18558
|
+
}
|
|
18547
18559
|
this._transport = transport;
|
|
18548
18560
|
const _onclose = this.transport?.onclose;
|
|
18549
18561
|
this._transport.onclose = () => {
|
|
@@ -18576,6 +18588,10 @@ var Protocol = class {
|
|
|
18576
18588
|
this._progressHandlers.clear();
|
|
18577
18589
|
this._taskProgressTokens.clear();
|
|
18578
18590
|
this._pendingDebouncedNotifications.clear();
|
|
18591
|
+
for (const controller of this._requestHandlerAbortControllers.values()) {
|
|
18592
|
+
controller.abort();
|
|
18593
|
+
}
|
|
18594
|
+
this._requestHandlerAbortControllers.clear();
|
|
18579
18595
|
const error3 = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
|
|
18580
18596
|
this._transport = void 0;
|
|
18581
18597
|
this.onclose?.();
|
|
@@ -18626,6 +18642,8 @@ var Protocol = class {
|
|
|
18626
18642
|
sessionId: capturedTransport?.sessionId,
|
|
18627
18643
|
_meta: request.params?._meta,
|
|
18628
18644
|
sendNotification: async (notification) => {
|
|
18645
|
+
if (abortController.signal.aborted)
|
|
18646
|
+
return;
|
|
18629
18647
|
const notificationOptions = { relatedRequestId: request.id };
|
|
18630
18648
|
if (relatedTaskId) {
|
|
18631
18649
|
notificationOptions.relatedTask = { taskId: relatedTaskId };
|
|
@@ -18633,6 +18651,9 @@ var Protocol = class {
|
|
|
18633
18651
|
await this.notification(notification, notificationOptions);
|
|
18634
18652
|
},
|
|
18635
18653
|
sendRequest: async (r, resultSchema, options) => {
|
|
18654
|
+
if (abortController.signal.aborted) {
|
|
18655
|
+
throw new McpError(ErrorCode.ConnectionClosed, "Request was cancelled");
|
|
18656
|
+
}
|
|
18636
18657
|
const requestOptions = { ...options, relatedRequestId: request.id };
|
|
18637
18658
|
if (relatedTaskId && !requestOptions.relatedTask) {
|
|
18638
18659
|
requestOptions.relatedTask = { taskId: relatedTaskId };
|
|
@@ -19303,7 +19324,7 @@ function mergeCapabilities(base, additional) {
|
|
|
19303
19324
|
return result;
|
|
19304
19325
|
}
|
|
19305
19326
|
|
|
19306
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
19327
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
|
|
19307
19328
|
var import_ajv = __toESM(require_ajv(), 1);
|
|
19308
19329
|
var import_ajv_formats = __toESM(require_dist(), 1);
|
|
19309
19330
|
function createDefaultAjvInstance() {
|
|
@@ -19371,7 +19392,7 @@ var AjvJsonSchemaValidator = class {
|
|
|
19371
19392
|
}
|
|
19372
19393
|
};
|
|
19373
19394
|
|
|
19374
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
19395
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
|
|
19375
19396
|
var ExperimentalServerTasks = class {
|
|
19376
19397
|
constructor(_server) {
|
|
19377
19398
|
this._server = _server;
|
|
@@ -19393,6 +19414,147 @@ var ExperimentalServerTasks = class {
|
|
|
19393
19414
|
requestStream(request, resultSchema, options) {
|
|
19394
19415
|
return this._server.requestStream(request, resultSchema, options);
|
|
19395
19416
|
}
|
|
19417
|
+
/**
|
|
19418
|
+
* Sends a sampling request and returns an AsyncGenerator that yields response messages.
|
|
19419
|
+
* The generator is guaranteed to end with either a 'result' or 'error' message.
|
|
19420
|
+
*
|
|
19421
|
+
* For task-augmented requests, yields 'taskCreated' and 'taskStatus' messages
|
|
19422
|
+
* before the final result.
|
|
19423
|
+
*
|
|
19424
|
+
* @example
|
|
19425
|
+
* ```typescript
|
|
19426
|
+
* const stream = server.experimental.tasks.createMessageStream({
|
|
19427
|
+
* messages: [{ role: 'user', content: { type: 'text', text: 'Hello' } }],
|
|
19428
|
+
* maxTokens: 100
|
|
19429
|
+
* }, {
|
|
19430
|
+
* onprogress: (progress) => {
|
|
19431
|
+
* // Handle streaming tokens via progress notifications
|
|
19432
|
+
* console.log('Progress:', progress.message);
|
|
19433
|
+
* }
|
|
19434
|
+
* });
|
|
19435
|
+
*
|
|
19436
|
+
* for await (const message of stream) {
|
|
19437
|
+
* switch (message.type) {
|
|
19438
|
+
* case 'taskCreated':
|
|
19439
|
+
* console.log('Task created:', message.task.taskId);
|
|
19440
|
+
* break;
|
|
19441
|
+
* case 'taskStatus':
|
|
19442
|
+
* console.log('Task status:', message.task.status);
|
|
19443
|
+
* break;
|
|
19444
|
+
* case 'result':
|
|
19445
|
+
* console.log('Final result:', message.result);
|
|
19446
|
+
* break;
|
|
19447
|
+
* case 'error':
|
|
19448
|
+
* console.error('Error:', message.error);
|
|
19449
|
+
* break;
|
|
19450
|
+
* }
|
|
19451
|
+
* }
|
|
19452
|
+
* ```
|
|
19453
|
+
*
|
|
19454
|
+
* @param params - The sampling request parameters
|
|
19455
|
+
* @param options - Optional request options (timeout, signal, task creation params, onprogress, etc.)
|
|
19456
|
+
* @returns AsyncGenerator that yields ResponseMessage objects
|
|
19457
|
+
*
|
|
19458
|
+
* @experimental
|
|
19459
|
+
*/
|
|
19460
|
+
createMessageStream(params, options) {
|
|
19461
|
+
const clientCapabilities = this._server.getClientCapabilities();
|
|
19462
|
+
if ((params.tools || params.toolChoice) && !clientCapabilities?.sampling?.tools) {
|
|
19463
|
+
throw new Error("Client does not support sampling tools capability.");
|
|
19464
|
+
}
|
|
19465
|
+
if (params.messages.length > 0) {
|
|
19466
|
+
const lastMessage = params.messages[params.messages.length - 1];
|
|
19467
|
+
const lastContent = Array.isArray(lastMessage.content) ? lastMessage.content : [lastMessage.content];
|
|
19468
|
+
const hasToolResults = lastContent.some((c) => c.type === "tool_result");
|
|
19469
|
+
const previousMessage = params.messages.length > 1 ? params.messages[params.messages.length - 2] : void 0;
|
|
19470
|
+
const previousContent = previousMessage ? Array.isArray(previousMessage.content) ? previousMessage.content : [previousMessage.content] : [];
|
|
19471
|
+
const hasPreviousToolUse = previousContent.some((c) => c.type === "tool_use");
|
|
19472
|
+
if (hasToolResults) {
|
|
19473
|
+
if (lastContent.some((c) => c.type !== "tool_result")) {
|
|
19474
|
+
throw new Error("The last message must contain only tool_result content if any is present");
|
|
19475
|
+
}
|
|
19476
|
+
if (!hasPreviousToolUse) {
|
|
19477
|
+
throw new Error("tool_result blocks are not matching any tool_use from the previous message");
|
|
19478
|
+
}
|
|
19479
|
+
}
|
|
19480
|
+
if (hasPreviousToolUse) {
|
|
19481
|
+
const toolUseIds = new Set(previousContent.filter((c) => c.type === "tool_use").map((c) => c.id));
|
|
19482
|
+
const toolResultIds = new Set(lastContent.filter((c) => c.type === "tool_result").map((c) => c.toolUseId));
|
|
19483
|
+
if (toolUseIds.size !== toolResultIds.size || ![...toolUseIds].every((id) => toolResultIds.has(id))) {
|
|
19484
|
+
throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match");
|
|
19485
|
+
}
|
|
19486
|
+
}
|
|
19487
|
+
}
|
|
19488
|
+
return this.requestStream({
|
|
19489
|
+
method: "sampling/createMessage",
|
|
19490
|
+
params
|
|
19491
|
+
}, CreateMessageResultSchema, options);
|
|
19492
|
+
}
|
|
19493
|
+
/**
|
|
19494
|
+
* Sends an elicitation request and returns an AsyncGenerator that yields response messages.
|
|
19495
|
+
* The generator is guaranteed to end with either a 'result' or 'error' message.
|
|
19496
|
+
*
|
|
19497
|
+
* For task-augmented requests (especially URL-based elicitation), yields 'taskCreated'
|
|
19498
|
+
* and 'taskStatus' messages before the final result.
|
|
19499
|
+
*
|
|
19500
|
+
* @example
|
|
19501
|
+
* ```typescript
|
|
19502
|
+
* const stream = server.experimental.tasks.elicitInputStream({
|
|
19503
|
+
* mode: 'url',
|
|
19504
|
+
* message: 'Please authenticate',
|
|
19505
|
+
* elicitationId: 'auth-123',
|
|
19506
|
+
* url: 'https://example.com/auth'
|
|
19507
|
+
* }, {
|
|
19508
|
+
* task: { ttl: 300000 } // Task-augmented for long-running auth flow
|
|
19509
|
+
* });
|
|
19510
|
+
*
|
|
19511
|
+
* for await (const message of stream) {
|
|
19512
|
+
* switch (message.type) {
|
|
19513
|
+
* case 'taskCreated':
|
|
19514
|
+
* console.log('Task created:', message.task.taskId);
|
|
19515
|
+
* break;
|
|
19516
|
+
* case 'taskStatus':
|
|
19517
|
+
* console.log('Task status:', message.task.status);
|
|
19518
|
+
* break;
|
|
19519
|
+
* case 'result':
|
|
19520
|
+
* console.log('User action:', message.result.action);
|
|
19521
|
+
* break;
|
|
19522
|
+
* case 'error':
|
|
19523
|
+
* console.error('Error:', message.error);
|
|
19524
|
+
* break;
|
|
19525
|
+
* }
|
|
19526
|
+
* }
|
|
19527
|
+
* ```
|
|
19528
|
+
*
|
|
19529
|
+
* @param params - The elicitation request parameters
|
|
19530
|
+
* @param options - Optional request options (timeout, signal, task creation params, etc.)
|
|
19531
|
+
* @returns AsyncGenerator that yields ResponseMessage objects
|
|
19532
|
+
*
|
|
19533
|
+
* @experimental
|
|
19534
|
+
*/
|
|
19535
|
+
elicitInputStream(params, options) {
|
|
19536
|
+
const clientCapabilities = this._server.getClientCapabilities();
|
|
19537
|
+
const mode = params.mode ?? "form";
|
|
19538
|
+
switch (mode) {
|
|
19539
|
+
case "url": {
|
|
19540
|
+
if (!clientCapabilities?.elicitation?.url) {
|
|
19541
|
+
throw new Error("Client does not support url elicitation.");
|
|
19542
|
+
}
|
|
19543
|
+
break;
|
|
19544
|
+
}
|
|
19545
|
+
case "form": {
|
|
19546
|
+
if (!clientCapabilities?.elicitation?.form) {
|
|
19547
|
+
throw new Error("Client does not support form elicitation.");
|
|
19548
|
+
}
|
|
19549
|
+
break;
|
|
19550
|
+
}
|
|
19551
|
+
}
|
|
19552
|
+
const normalizedParams = mode === "form" && params.mode === void 0 ? { ...params, mode: "form" } : params;
|
|
19553
|
+
return this.requestStream({
|
|
19554
|
+
method: "elicitation/create",
|
|
19555
|
+
params: normalizedParams
|
|
19556
|
+
}, ElicitResultSchema, options);
|
|
19557
|
+
}
|
|
19396
19558
|
/**
|
|
19397
19559
|
* Gets the current status of a task.
|
|
19398
19560
|
*
|
|
@@ -19443,7 +19605,7 @@ var ExperimentalServerTasks = class {
|
|
|
19443
19605
|
}
|
|
19444
19606
|
};
|
|
19445
19607
|
|
|
19446
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
19608
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
19447
19609
|
function assertToolsCallTaskCapability(requests, method, entityName) {
|
|
19448
19610
|
if (!requests) {
|
|
19449
19611
|
throw new Error(`${entityName} does not support task creation (required for ${method})`);
|
|
@@ -19478,7 +19640,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
|
|
|
19478
19640
|
}
|
|
19479
19641
|
}
|
|
19480
19642
|
|
|
19481
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
19643
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
19482
19644
|
var Server = class extends Protocol {
|
|
19483
19645
|
/**
|
|
19484
19646
|
* Initializes this server with the given name and version information.
|
|
@@ -19858,7 +20020,7 @@ var Server = class extends Protocol {
|
|
|
19858
20020
|
}
|
|
19859
20021
|
};
|
|
19860
20022
|
|
|
19861
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
20023
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
|
|
19862
20024
|
var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
|
|
19863
20025
|
function isCompletable(schema) {
|
|
19864
20026
|
return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
|
|
@@ -19872,7 +20034,7 @@ var McpZodTypeKind;
|
|
|
19872
20034
|
McpZodTypeKind2["Completable"] = "McpCompletable";
|
|
19873
20035
|
})(McpZodTypeKind || (McpZodTypeKind = {}));
|
|
19874
20036
|
|
|
19875
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
20037
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
|
|
19876
20038
|
var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
|
|
19877
20039
|
function validateToolName(name) {
|
|
19878
20040
|
const warnings = [];
|
|
@@ -19930,7 +20092,7 @@ function validateAndWarnToolName(name) {
|
|
|
19930
20092
|
return result.isValid;
|
|
19931
20093
|
}
|
|
19932
20094
|
|
|
19933
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
20095
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
|
|
19934
20096
|
var ExperimentalMcpServerTasks = class {
|
|
19935
20097
|
constructor(_mcpServer) {
|
|
19936
20098
|
this._mcpServer = _mcpServer;
|
|
@@ -19945,7 +20107,7 @@ var ExperimentalMcpServerTasks = class {
|
|
|
19945
20107
|
}
|
|
19946
20108
|
};
|
|
19947
20109
|
|
|
19948
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
20110
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
19949
20111
|
var McpServer = class {
|
|
19950
20112
|
constructor(serverInfo, options) {
|
|
19951
20113
|
this._registeredResources = {};
|
|
@@ -20731,10 +20893,10 @@ var EMPTY_COMPLETION_RESULT = {
|
|
|
20731
20893
|
}
|
|
20732
20894
|
};
|
|
20733
20895
|
|
|
20734
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
20896
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
20735
20897
|
import process2 from "node:process";
|
|
20736
20898
|
|
|
20737
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
20899
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
20738
20900
|
var ReadBuffer = class {
|
|
20739
20901
|
append(chunk) {
|
|
20740
20902
|
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
@@ -20762,7 +20924,7 @@ function serializeMessage(message) {
|
|
|
20762
20924
|
return JSON.stringify(message) + "\n";
|
|
20763
20925
|
}
|
|
20764
20926
|
|
|
20765
|
-
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
20927
|
+
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
|
|
20766
20928
|
var StdioServerTransport = class {
|
|
20767
20929
|
constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
|
|
20768
20930
|
this._stdin = _stdin;
|
|
@@ -21018,6 +21180,9 @@ function findUiLibraryRoot() {
|
|
|
21018
21180
|
}
|
|
21019
21181
|
throw new Error("Could not find @aleph-alpha/ui-library. Is it installed?");
|
|
21020
21182
|
}
|
|
21183
|
+
function getLibraryRootPath() {
|
|
21184
|
+
return findUiLibraryRoot();
|
|
21185
|
+
}
|
|
21021
21186
|
function getLibrarySourcePath() {
|
|
21022
21187
|
const uiLibraryRoot = findUiLibraryRoot();
|
|
21023
21188
|
const srcPath = path2.join(uiLibraryRoot, "src");
|
|
@@ -21362,6 +21527,23 @@ function getComponentDocs(componentName) {
|
|
|
21362
21527
|
};
|
|
21363
21528
|
}
|
|
21364
21529
|
|
|
21530
|
+
// src/tools/get-setup.ts
|
|
21531
|
+
import * as path7 from "node:path";
|
|
21532
|
+
function getSetupGuide() {
|
|
21533
|
+
const libraryRoot = getLibraryRootPath();
|
|
21534
|
+
const quickStartPath = path7.join(libraryRoot, "docs", "public-docs", "quick-start.md");
|
|
21535
|
+
const quickStart = readTextFile(quickStartPath);
|
|
21536
|
+
if (quickStart) {
|
|
21537
|
+
return quickStart;
|
|
21538
|
+
}
|
|
21539
|
+
const readmePath = path7.join(libraryRoot, "README.md");
|
|
21540
|
+
const readme = readTextFile(readmePath);
|
|
21541
|
+
if (readme) {
|
|
21542
|
+
return readme;
|
|
21543
|
+
}
|
|
21544
|
+
return null;
|
|
21545
|
+
}
|
|
21546
|
+
|
|
21365
21547
|
// src/server.ts
|
|
21366
21548
|
var text = (t) => ({ content: [{ type: "text", text: t }] });
|
|
21367
21549
|
var error2 = (msg) => ({ ...text(msg), isError: true });
|
|
@@ -21458,6 +21640,20 @@ async function startServer() {
|
|
|
21458
21640
|
}
|
|
21459
21641
|
}
|
|
21460
21642
|
);
|
|
21643
|
+
server.tool(
|
|
21644
|
+
"get_setup_guide",
|
|
21645
|
+
"Get the setup and installation guide for integrating the UI library into a project. Returns UnoCSS config, Vite config, required dependencies, and MCP setup instructions.",
|
|
21646
|
+
{},
|
|
21647
|
+
async () => {
|
|
21648
|
+
try {
|
|
21649
|
+
const guide = getSetupGuide();
|
|
21650
|
+
if (!guide) return error2("Setup guide not found. Is @aleph-alpha/ui-library installed?");
|
|
21651
|
+
return text(guide);
|
|
21652
|
+
} catch (e) {
|
|
21653
|
+
return handleError(e);
|
|
21654
|
+
}
|
|
21655
|
+
}
|
|
21656
|
+
);
|
|
21461
21657
|
const transport = new StdioServerTransport();
|
|
21462
21658
|
await server.connect(transport);
|
|
21463
21659
|
console.error("UI Library MCP Server running");
|