@aleph-alpha/lib-mcp 1.5.0 → 1.6.1

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/cli.js CHANGED
@@ -29,9 +29,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  mod
30
30
  ));
31
31
 
32
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js
32
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js
33
33
  var require_code = __commonJS({
34
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
34
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
35
35
  "use strict";
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  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;
@@ -183,9 +183,9 @@ var require_code = __commonJS({
183
183
  }
184
184
  });
185
185
 
186
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js
186
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js
187
187
  var require_scope = __commonJS({
188
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
188
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
189
189
  "use strict";
190
190
  Object.defineProperty(exports, "__esModule", { value: true });
191
191
  exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
@@ -328,9 +328,9 @@ var require_scope = __commonJS({
328
328
  }
329
329
  });
330
330
 
331
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js
331
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js
332
332
  var require_codegen = __commonJS({
333
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
333
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
334
334
  "use strict";
335
335
  Object.defineProperty(exports, "__esModule", { value: true });
336
336
  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;
@@ -1048,9 +1048,9 @@ var require_codegen = __commonJS({
1048
1048
  }
1049
1049
  });
1050
1050
 
1051
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js
1051
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js
1052
1052
  var require_util = __commonJS({
1053
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js"(exports) {
1053
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js"(exports) {
1054
1054
  "use strict";
1055
1055
  Object.defineProperty(exports, "__esModule", { value: true });
1056
1056
  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;
@@ -1215,9 +1215,9 @@ var require_util = __commonJS({
1215
1215
  }
1216
1216
  });
1217
1217
 
1218
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js
1218
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js
1219
1219
  var require_names = __commonJS({
1220
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js"(exports) {
1220
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js"(exports) {
1221
1221
  "use strict";
1222
1222
  Object.defineProperty(exports, "__esModule", { value: true });
1223
1223
  var codegen_1 = require_codegen();
@@ -1254,9 +1254,9 @@ var require_names = __commonJS({
1254
1254
  }
1255
1255
  });
1256
1256
 
1257
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js
1257
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js
1258
1258
  var require_errors = __commonJS({
1259
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js"(exports) {
1259
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js"(exports) {
1260
1260
  "use strict";
1261
1261
  Object.defineProperty(exports, "__esModule", { value: true });
1262
1262
  exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
@@ -1376,9 +1376,9 @@ var require_errors = __commonJS({
1376
1376
  }
1377
1377
  });
1378
1378
 
1379
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js
1379
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js
1380
1380
  var require_boolSchema = __commonJS({
1381
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
1381
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
1382
1382
  "use strict";
1383
1383
  Object.defineProperty(exports, "__esModule", { value: true });
1384
1384
  exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
@@ -1427,9 +1427,9 @@ var require_boolSchema = __commonJS({
1427
1427
  }
1428
1428
  });
1429
1429
 
1430
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js
1430
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js
1431
1431
  var require_rules = __commonJS({
1432
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js"(exports) {
1432
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js"(exports) {
1433
1433
  "use strict";
1434
1434
  Object.defineProperty(exports, "__esModule", { value: true });
1435
1435
  exports.getRules = exports.isJSONType = void 0;
@@ -1458,9 +1458,9 @@ var require_rules = __commonJS({
1458
1458
  }
1459
1459
  });
1460
1460
 
1461
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js
1461
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js
1462
1462
  var require_applicability = __commonJS({
1463
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
1463
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
1464
1464
  "use strict";
1465
1465
  Object.defineProperty(exports, "__esModule", { value: true });
1466
1466
  exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
@@ -1481,9 +1481,9 @@ var require_applicability = __commonJS({
1481
1481
  }
1482
1482
  });
1483
1483
 
1484
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js
1484
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js
1485
1485
  var require_dataType = __commonJS({
1486
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
1486
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
1487
1487
  "use strict";
1488
1488
  Object.defineProperty(exports, "__esModule", { value: true });
1489
1489
  exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
@@ -1665,9 +1665,9 @@ var require_dataType = __commonJS({
1665
1665
  }
1666
1666
  });
1667
1667
 
1668
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js
1668
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js
1669
1669
  var require_defaults = __commonJS({
1670
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
1670
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
1671
1671
  "use strict";
1672
1672
  Object.defineProperty(exports, "__esModule", { value: true });
1673
1673
  exports.assignDefaults = void 0;
@@ -1702,9 +1702,9 @@ var require_defaults = __commonJS({
1702
1702
  }
1703
1703
  });
1704
1704
 
1705
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js
1705
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js
1706
1706
  var require_code2 = __commonJS({
1707
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js"(exports) {
1707
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js"(exports) {
1708
1708
  "use strict";
1709
1709
  Object.defineProperty(exports, "__esModule", { value: true });
1710
1710
  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;
@@ -1835,9 +1835,9 @@ var require_code2 = __commonJS({
1835
1835
  }
1836
1836
  });
1837
1837
 
1838
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js
1838
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js
1839
1839
  var require_keyword = __commonJS({
1840
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
1840
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
1841
1841
  "use strict";
1842
1842
  Object.defineProperty(exports, "__esModule", { value: true });
1843
1843
  exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
@@ -1953,9 +1953,9 @@ var require_keyword = __commonJS({
1953
1953
  }
1954
1954
  });
1955
1955
 
1956
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js
1956
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js
1957
1957
  var require_subschema = __commonJS({
1958
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
1958
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
1959
1959
  "use strict";
1960
1960
  Object.defineProperty(exports, "__esModule", { value: true });
1961
1961
  exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
@@ -2159,9 +2159,9 @@ var require_json_schema_traverse = __commonJS({
2159
2159
  }
2160
2160
  });
2161
2161
 
2162
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js
2162
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js
2163
2163
  var require_resolve = __commonJS({
2164
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js"(exports) {
2164
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js"(exports) {
2165
2165
  "use strict";
2166
2166
  Object.defineProperty(exports, "__esModule", { value: true });
2167
2167
  exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
@@ -2315,9 +2315,9 @@ var require_resolve = __commonJS({
2315
2315
  }
2316
2316
  });
2317
2317
 
2318
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js
2318
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js
2319
2319
  var require_validate = __commonJS({
2320
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js"(exports) {
2320
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js"(exports) {
2321
2321
  "use strict";
2322
2322
  Object.defineProperty(exports, "__esModule", { value: true });
2323
2323
  exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
@@ -2823,9 +2823,9 @@ var require_validate = __commonJS({
2823
2823
  }
2824
2824
  });
2825
2825
 
2826
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js
2826
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js
2827
2827
  var require_validation_error = __commonJS({
2828
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
2828
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
2829
2829
  "use strict";
2830
2830
  Object.defineProperty(exports, "__esModule", { value: true });
2831
2831
  var ValidationError = class extends Error {
@@ -2839,9 +2839,9 @@ var require_validation_error = __commonJS({
2839
2839
  }
2840
2840
  });
2841
2841
 
2842
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js
2842
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js
2843
2843
  var require_ref_error = __commonJS({
2844
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js"(exports) {
2844
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js"(exports) {
2845
2845
  "use strict";
2846
2846
  Object.defineProperty(exports, "__esModule", { value: true });
2847
2847
  var resolve_1 = require_resolve();
@@ -2856,9 +2856,9 @@ var require_ref_error = __commonJS({
2856
2856
  }
2857
2857
  });
2858
2858
 
2859
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js
2859
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js
2860
2860
  var require_compile = __commonJS({
2861
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js"(exports) {
2861
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js"(exports) {
2862
2862
  "use strict";
2863
2863
  Object.defineProperty(exports, "__esModule", { value: true });
2864
2864
  exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
@@ -3080,9 +3080,9 @@ var require_compile = __commonJS({
3080
3080
  }
3081
3081
  });
3082
3082
 
3083
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json
3083
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json
3084
3084
  var require_data = __commonJS({
3085
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json"(exports, module) {
3085
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json"(exports, module) {
3086
3086
  module.exports = {
3087
3087
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
3088
3088
  description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
@@ -3821,9 +3821,9 @@ var require_fast_uri = __commonJS({
3821
3821
  }
3822
3822
  });
3823
3823
 
3824
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js
3824
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js
3825
3825
  var require_uri = __commonJS({
3826
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js"(exports) {
3826
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js"(exports) {
3827
3827
  "use strict";
3828
3828
  Object.defineProperty(exports, "__esModule", { value: true });
3829
3829
  var uri = require_fast_uri();
@@ -3832,9 +3832,9 @@ var require_uri = __commonJS({
3832
3832
  }
3833
3833
  });
3834
3834
 
3835
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js
3835
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js
3836
3836
  var require_core = __commonJS({
3837
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js"(exports) {
3837
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js"(exports) {
3838
3838
  "use strict";
3839
3839
  Object.defineProperty(exports, "__esModule", { value: true });
3840
3840
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
@@ -4443,9 +4443,9 @@ var require_core = __commonJS({
4443
4443
  }
4444
4444
  });
4445
4445
 
4446
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js
4446
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js
4447
4447
  var require_id = __commonJS({
4448
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
4448
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
4449
4449
  "use strict";
4450
4450
  Object.defineProperty(exports, "__esModule", { value: true });
4451
4451
  var def = {
@@ -4458,9 +4458,9 @@ var require_id = __commonJS({
4458
4458
  }
4459
4459
  });
4460
4460
 
4461
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js
4461
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js
4462
4462
  var require_ref = __commonJS({
4463
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
4463
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
4464
4464
  "use strict";
4465
4465
  Object.defineProperty(exports, "__esModule", { value: true });
4466
4466
  exports.callRef = exports.getValidate = void 0;
@@ -4580,9 +4580,9 @@ var require_ref = __commonJS({
4580
4580
  }
4581
4581
  });
4582
4582
 
4583
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js
4583
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js
4584
4584
  var require_core2 = __commonJS({
4585
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
4585
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
4586
4586
  "use strict";
4587
4587
  Object.defineProperty(exports, "__esModule", { value: true });
4588
4588
  var id_1 = require_id();
@@ -4601,9 +4601,9 @@ var require_core2 = __commonJS({
4601
4601
  }
4602
4602
  });
4603
4603
 
4604
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4604
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4605
4605
  var require_limitNumber = __commonJS({
4606
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
4606
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
4607
4607
  "use strict";
4608
4608
  Object.defineProperty(exports, "__esModule", { value: true });
4609
4609
  var codegen_1 = require_codegen();
@@ -4633,9 +4633,9 @@ var require_limitNumber = __commonJS({
4633
4633
  }
4634
4634
  });
4635
4635
 
4636
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4636
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4637
4637
  var require_multipleOf = __commonJS({
4638
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
4638
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
4639
4639
  "use strict";
4640
4640
  Object.defineProperty(exports, "__esModule", { value: true });
4641
4641
  var codegen_1 = require_codegen();
@@ -4661,9 +4661,9 @@ var require_multipleOf = __commonJS({
4661
4661
  }
4662
4662
  });
4663
4663
 
4664
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js
4664
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js
4665
4665
  var require_ucs2length = __commonJS({
4666
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
4666
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
4667
4667
  "use strict";
4668
4668
  Object.defineProperty(exports, "__esModule", { value: true });
4669
4669
  function ucs2length(str) {
@@ -4687,9 +4687,9 @@ var require_ucs2length = __commonJS({
4687
4687
  }
4688
4688
  });
4689
4689
 
4690
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js
4690
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
4691
4691
  var require_limitLength = __commonJS({
4692
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
4692
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
4693
4693
  "use strict";
4694
4694
  Object.defineProperty(exports, "__esModule", { value: true });
4695
4695
  var codegen_1 = require_codegen();
@@ -4719,12 +4719,13 @@ var require_limitLength = __commonJS({
4719
4719
  }
4720
4720
  });
4721
4721
 
4722
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js
4722
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
4723
4723
  var require_pattern = __commonJS({
4724
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
4724
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
4725
4725
  "use strict";
4726
4726
  Object.defineProperty(exports, "__esModule", { value: true });
4727
4727
  var code_1 = require_code2();
4728
+ var util_1 = require_util();
4728
4729
  var codegen_1 = require_codegen();
4729
4730
  var error3 = {
4730
4731
  message: ({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`,
@@ -4737,19 +4738,27 @@ var require_pattern = __commonJS({
4737
4738
  $data: true,
4738
4739
  error: error3,
4739
4740
  code(cxt) {
4740
- const { data, $data, schema, schemaCode, it } = cxt;
4741
+ const { gen, data, $data, schema, schemaCode, it } = cxt;
4741
4742
  const u = it.opts.unicodeRegExp ? "u" : "";
4742
- const regExp = $data ? (0, codegen_1._)`(new RegExp(${schemaCode}, ${u}))` : (0, code_1.usePattern)(cxt, schema);
4743
- cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
4743
+ if ($data) {
4744
+ const { regExp } = it.opts.code;
4745
+ const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._)`new RegExp` : (0, util_1.useFunc)(gen, regExp);
4746
+ const valid = gen.let("valid");
4747
+ gen.try(() => gen.assign(valid, (0, codegen_1._)`${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));
4748
+ cxt.fail$data((0, codegen_1._)`!${valid}`);
4749
+ } else {
4750
+ const regExp = (0, code_1.usePattern)(cxt, schema);
4751
+ cxt.fail$data((0, codegen_1._)`!${regExp}.test(${data})`);
4752
+ }
4744
4753
  }
4745
4754
  };
4746
4755
  exports.default = def;
4747
4756
  }
4748
4757
  });
4749
4758
 
4750
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4759
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4751
4760
  var require_limitProperties = __commonJS({
4752
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
4761
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
4753
4762
  "use strict";
4754
4763
  Object.defineProperty(exports, "__esModule", { value: true });
4755
4764
  var codegen_1 = require_codegen();
@@ -4776,9 +4785,9 @@ var require_limitProperties = __commonJS({
4776
4785
  }
4777
4786
  });
4778
4787
 
4779
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js
4788
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js
4780
4789
  var require_required = __commonJS({
4781
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
4790
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
4782
4791
  "use strict";
4783
4792
  Object.defineProperty(exports, "__esModule", { value: true });
4784
4793
  var code_1 = require_code2();
@@ -4858,9 +4867,9 @@ var require_required = __commonJS({
4858
4867
  }
4859
4868
  });
4860
4869
 
4861
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js
4870
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
4862
4871
  var require_limitItems = __commonJS({
4863
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
4872
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
4864
4873
  "use strict";
4865
4874
  Object.defineProperty(exports, "__esModule", { value: true });
4866
4875
  var codegen_1 = require_codegen();
@@ -4887,9 +4896,9 @@ var require_limitItems = __commonJS({
4887
4896
  }
4888
4897
  });
4889
4898
 
4890
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js
4899
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js
4891
4900
  var require_equal = __commonJS({
4892
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js"(exports) {
4901
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
4893
4902
  "use strict";
4894
4903
  Object.defineProperty(exports, "__esModule", { value: true });
4895
4904
  var equal = require_fast_deep_equal();
@@ -4898,9 +4907,9 @@ var require_equal = __commonJS({
4898
4907
  }
4899
4908
  });
4900
4909
 
4901
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4910
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4902
4911
  var require_uniqueItems = __commonJS({
4903
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
4912
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
4904
4913
  "use strict";
4905
4914
  Object.defineProperty(exports, "__esModule", { value: true });
4906
4915
  var dataType_1 = require_dataType();
@@ -4965,9 +4974,9 @@ var require_uniqueItems = __commonJS({
4965
4974
  }
4966
4975
  });
4967
4976
 
4968
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js
4977
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js
4969
4978
  var require_const = __commonJS({
4970
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
4979
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
4971
4980
  "use strict";
4972
4981
  Object.defineProperty(exports, "__esModule", { value: true });
4973
4982
  var codegen_1 = require_codegen();
@@ -4994,9 +5003,9 @@ var require_const = __commonJS({
4994
5003
  }
4995
5004
  });
4996
5005
 
4997
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js
5006
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js
4998
5007
  var require_enum = __commonJS({
4999
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
5008
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
5000
5009
  "use strict";
5001
5010
  Object.defineProperty(exports, "__esModule", { value: true });
5002
5011
  var codegen_1 = require_codegen();
@@ -5043,9 +5052,9 @@ var require_enum = __commonJS({
5043
5052
  }
5044
5053
  });
5045
5054
 
5046
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js
5055
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js
5047
5056
  var require_validation = __commonJS({
5048
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
5057
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
5049
5058
  "use strict";
5050
5059
  Object.defineProperty(exports, "__esModule", { value: true });
5051
5060
  var limitNumber_1 = require_limitNumber();
@@ -5081,9 +5090,9 @@ var require_validation = __commonJS({
5081
5090
  }
5082
5091
  });
5083
5092
 
5084
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5093
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5085
5094
  var require_additionalItems = __commonJS({
5086
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
5095
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
5087
5096
  "use strict";
5088
5097
  Object.defineProperty(exports, "__esModule", { value: true });
5089
5098
  exports.validateAdditionalItems = void 0;
@@ -5134,9 +5143,9 @@ var require_additionalItems = __commonJS({
5134
5143
  }
5135
5144
  });
5136
5145
 
5137
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js
5146
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js
5138
5147
  var require_items = __commonJS({
5139
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
5148
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
5140
5149
  "use strict";
5141
5150
  Object.defineProperty(exports, "__esModule", { value: true });
5142
5151
  exports.validateTuple = void 0;
@@ -5191,9 +5200,9 @@ var require_items = __commonJS({
5191
5200
  }
5192
5201
  });
5193
5202
 
5194
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5203
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5195
5204
  var require_prefixItems = __commonJS({
5196
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
5205
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
5197
5206
  "use strict";
5198
5207
  Object.defineProperty(exports, "__esModule", { value: true });
5199
5208
  var items_1 = require_items();
@@ -5208,9 +5217,9 @@ var require_prefixItems = __commonJS({
5208
5217
  }
5209
5218
  });
5210
5219
 
5211
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js
5220
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
5212
5221
  var require_items2020 = __commonJS({
5213
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
5222
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
5214
5223
  "use strict";
5215
5224
  Object.defineProperty(exports, "__esModule", { value: true });
5216
5225
  var codegen_1 = require_codegen();
@@ -5243,9 +5252,9 @@ var require_items2020 = __commonJS({
5243
5252
  }
5244
5253
  });
5245
5254
 
5246
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js
5255
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
5247
5256
  var require_contains = __commonJS({
5248
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
5257
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
5249
5258
  "use strict";
5250
5259
  Object.defineProperty(exports, "__esModule", { value: true });
5251
5260
  var codegen_1 = require_codegen();
@@ -5337,9 +5346,9 @@ var require_contains = __commonJS({
5337
5346
  }
5338
5347
  });
5339
5348
 
5340
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5349
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5341
5350
  var require_dependencies = __commonJS({
5342
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
5351
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
5343
5352
  "use strict";
5344
5353
  Object.defineProperty(exports, "__esModule", { value: true });
5345
5354
  exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
@@ -5431,9 +5440,9 @@ var require_dependencies = __commonJS({
5431
5440
  }
5432
5441
  });
5433
5442
 
5434
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5443
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5435
5444
  var require_propertyNames = __commonJS({
5436
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
5445
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
5437
5446
  "use strict";
5438
5447
  Object.defineProperty(exports, "__esModule", { value: true });
5439
5448
  var codegen_1 = require_codegen();
@@ -5474,9 +5483,9 @@ var require_propertyNames = __commonJS({
5474
5483
  }
5475
5484
  });
5476
5485
 
5477
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5486
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5478
5487
  var require_additionalProperties = __commonJS({
5479
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
5488
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
5480
5489
  "use strict";
5481
5490
  Object.defineProperty(exports, "__esModule", { value: true });
5482
5491
  var code_1 = require_code2();
@@ -5580,9 +5589,9 @@ var require_additionalProperties = __commonJS({
5580
5589
  }
5581
5590
  });
5582
5591
 
5583
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js
5592
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
5584
5593
  var require_properties = __commonJS({
5585
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
5594
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
5586
5595
  "use strict";
5587
5596
  Object.defineProperty(exports, "__esModule", { value: true });
5588
5597
  var validate_1 = require_validate();
@@ -5638,9 +5647,9 @@ var require_properties = __commonJS({
5638
5647
  }
5639
5648
  });
5640
5649
 
5641
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5650
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5642
5651
  var require_patternProperties = __commonJS({
5643
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
5652
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
5644
5653
  "use strict";
5645
5654
  Object.defineProperty(exports, "__esModule", { value: true });
5646
5655
  var code_1 = require_code2();
@@ -5712,9 +5721,9 @@ var require_patternProperties = __commonJS({
5712
5721
  }
5713
5722
  });
5714
5723
 
5715
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js
5724
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js
5716
5725
  var require_not = __commonJS({
5717
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
5726
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
5718
5727
  "use strict";
5719
5728
  Object.defineProperty(exports, "__esModule", { value: true });
5720
5729
  var util_1 = require_util();
@@ -5743,9 +5752,9 @@ var require_not = __commonJS({
5743
5752
  }
5744
5753
  });
5745
5754
 
5746
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5755
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5747
5756
  var require_anyOf = __commonJS({
5748
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
5757
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
5749
5758
  "use strict";
5750
5759
  Object.defineProperty(exports, "__esModule", { value: true });
5751
5760
  var code_1 = require_code2();
@@ -5760,9 +5769,9 @@ var require_anyOf = __commonJS({
5760
5769
  }
5761
5770
  });
5762
5771
 
5763
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5772
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5764
5773
  var require_oneOf = __commonJS({
5765
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
5774
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
5766
5775
  "use strict";
5767
5776
  Object.defineProperty(exports, "__esModule", { value: true });
5768
5777
  var codegen_1 = require_codegen();
@@ -5818,9 +5827,9 @@ var require_oneOf = __commonJS({
5818
5827
  }
5819
5828
  });
5820
5829
 
5821
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js
5830
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
5822
5831
  var require_allOf = __commonJS({
5823
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
5832
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
5824
5833
  "use strict";
5825
5834
  Object.defineProperty(exports, "__esModule", { value: true });
5826
5835
  var util_1 = require_util();
@@ -5845,9 +5854,9 @@ var require_allOf = __commonJS({
5845
5854
  }
5846
5855
  });
5847
5856
 
5848
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js
5857
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js
5849
5858
  var require_if = __commonJS({
5850
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
5859
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
5851
5860
  "use strict";
5852
5861
  Object.defineProperty(exports, "__esModule", { value: true });
5853
5862
  var codegen_1 = require_codegen();
@@ -5914,9 +5923,9 @@ var require_if = __commonJS({
5914
5923
  }
5915
5924
  });
5916
5925
 
5917
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5926
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5918
5927
  var require_thenElse = __commonJS({
5919
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
5928
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
5920
5929
  "use strict";
5921
5930
  Object.defineProperty(exports, "__esModule", { value: true });
5922
5931
  var util_1 = require_util();
@@ -5932,9 +5941,9 @@ var require_thenElse = __commonJS({
5932
5941
  }
5933
5942
  });
5934
5943
 
5935
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js
5944
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js
5936
5945
  var require_applicator = __commonJS({
5937
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
5946
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
5938
5947
  "use strict";
5939
5948
  Object.defineProperty(exports, "__esModule", { value: true });
5940
5949
  var additionalItems_1 = require_additionalItems();
@@ -5980,9 +5989,9 @@ var require_applicator = __commonJS({
5980
5989
  }
5981
5990
  });
5982
5991
 
5983
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js
5992
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js
5984
5993
  var require_format = __commonJS({
5985
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
5994
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
5986
5995
  "use strict";
5987
5996
  Object.defineProperty(exports, "__esModule", { value: true });
5988
5997
  var codegen_1 = require_codegen();
@@ -6070,9 +6079,9 @@ var require_format = __commonJS({
6070
6079
  }
6071
6080
  });
6072
6081
 
6073
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js
6082
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js
6074
6083
  var require_format2 = __commonJS({
6075
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
6084
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
6076
6085
  "use strict";
6077
6086
  Object.defineProperty(exports, "__esModule", { value: true });
6078
6087
  var format_1 = require_format();
@@ -6081,9 +6090,9 @@ var require_format2 = __commonJS({
6081
6090
  }
6082
6091
  });
6083
6092
 
6084
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js
6093
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js
6085
6094
  var require_metadata = __commonJS({
6086
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
6095
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
6087
6096
  "use strict";
6088
6097
  Object.defineProperty(exports, "__esModule", { value: true });
6089
6098
  exports.contentVocabulary = exports.metadataVocabulary = void 0;
@@ -6104,9 +6113,9 @@ var require_metadata = __commonJS({
6104
6113
  }
6105
6114
  });
6106
6115
 
6107
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js
6116
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js
6108
6117
  var require_draft7 = __commonJS({
6109
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
6118
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
6110
6119
  "use strict";
6111
6120
  Object.defineProperty(exports, "__esModule", { value: true });
6112
6121
  var core_1 = require_core2();
@@ -6126,9 +6135,9 @@ var require_draft7 = __commonJS({
6126
6135
  }
6127
6136
  });
6128
6137
 
6129
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js
6138
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
6130
6139
  var require_types = __commonJS({
6131
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
6140
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
6132
6141
  "use strict";
6133
6142
  Object.defineProperty(exports, "__esModule", { value: true });
6134
6143
  exports.DiscrError = void 0;
@@ -6140,9 +6149,9 @@ var require_types = __commonJS({
6140
6149
  }
6141
6150
  });
6142
6151
 
6143
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js
6152
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
6144
6153
  var require_discriminator = __commonJS({
6145
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
6154
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
6146
6155
  "use strict";
6147
6156
  Object.defineProperty(exports, "__esModule", { value: true });
6148
6157
  var codegen_1 = require_codegen();
@@ -6245,9 +6254,9 @@ var require_discriminator = __commonJS({
6245
6254
  }
6246
6255
  });
6247
6256
 
6248
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/json-schema-draft-07.json
6257
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
6249
6258
  var require_json_schema_draft_07 = __commonJS({
6250
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
6259
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
6251
6260
  module.exports = {
6252
6261
  $schema: "http://json-schema.org/draft-07/schema#",
6253
6262
  $id: "http://json-schema.org/draft-07/schema#",
@@ -6402,9 +6411,9 @@ var require_json_schema_draft_07 = __commonJS({
6402
6411
  }
6403
6412
  });
6404
6413
 
6405
- // ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js
6414
+ // ../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js
6406
6415
  var require_ajv = __commonJS({
6407
- "../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js"(exports, module) {
6416
+ "../../node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js"(exports, module) {
6408
6417
  "use strict";
6409
6418
  Object.defineProperty(exports, "__esModule", { value: true });
6410
6419
  exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
@@ -6472,9 +6481,9 @@ var require_ajv = __commonJS({
6472
6481
  }
6473
6482
  });
6474
6483
 
6475
- // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/formats.js
6484
+ // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js
6476
6485
  var require_formats = __commonJS({
6477
- "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/formats.js"(exports) {
6486
+ "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js"(exports) {
6478
6487
  "use strict";
6479
6488
  Object.defineProperty(exports, "__esModule", { value: true });
6480
6489
  exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
@@ -6675,9 +6684,9 @@ var require_formats = __commonJS({
6675
6684
  }
6676
6685
  });
6677
6686
 
6678
- // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/limit.js
6687
+ // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js
6679
6688
  var require_limit = __commonJS({
6680
- "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/limit.js"(exports) {
6689
+ "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js"(exports) {
6681
6690
  "use strict";
6682
6691
  Object.defineProperty(exports, "__esModule", { value: true });
6683
6692
  exports.formatLimitDefinition = void 0;
@@ -6747,9 +6756,9 @@ var require_limit = __commonJS({
6747
6756
  }
6748
6757
  });
6749
6758
 
6750
- // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/index.js
6759
+ // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js
6751
6760
  var require_dist = __commonJS({
6752
- "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/index.js"(exports, module) {
6761
+ "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js"(exports, module) {
6753
6762
  "use strict";
6754
6763
  Object.defineProperty(exports, "__esModule", { value: true });
6755
6764
  var formats_1 = require_formats();
@@ -14819,7 +14828,7 @@ function object(shape, params) {
14819
14828
  return new ZodMiniObject(def);
14820
14829
  }
14821
14830
 
14822
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
14831
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
14823
14832
  function isZ4Schema(s) {
14824
14833
  const schema = s;
14825
14834
  return !!schema._zod;
@@ -15658,7 +15667,7 @@ function preprocess(fn, schema) {
15658
15667
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/external.js
15659
15668
  config(en_default2());
15660
15669
 
15661
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
15670
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
15662
15671
  var LATEST_PROTOCOL_VERSION = "2025-11-25";
15663
15672
  var SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
15664
15673
  var RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task";
@@ -17174,7 +17183,7 @@ var UrlElicitationRequiredError = class extends McpError {
17174
17183
  }
17175
17184
  };
17176
17185
 
17177
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
17186
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
17178
17187
  function isTerminal(status) {
17179
17188
  return status === "completed" || status === "failed" || status === "cancelled";
17180
17189
  }
@@ -18463,7 +18472,7 @@ var zodToJsonSchema = (schema, options) => {
18463
18472
  return combined;
18464
18473
  };
18465
18474
 
18466
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
18475
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
18467
18476
  function mapMiniTarget(t) {
18468
18477
  if (!t)
18469
18478
  return "draft-7";
@@ -18505,7 +18514,7 @@ function parseWithCompat(schema, data) {
18505
18514
  return result.data;
18506
18515
  }
18507
18516
 
18508
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
18517
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js
18509
18518
  var DEFAULT_REQUEST_TIMEOUT_MSEC = 6e4;
18510
18519
  var Protocol = class {
18511
18520
  constructor(_options) {
@@ -18682,6 +18691,9 @@ var Protocol = class {
18682
18691
  * 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.
18683
18692
  */
18684
18693
  async connect(transport) {
18694
+ if (this._transport) {
18695
+ throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");
18696
+ }
18685
18697
  this._transport = transport;
18686
18698
  const _onclose = this.transport?.onclose;
18687
18699
  this._transport.onclose = () => {
@@ -18714,6 +18726,10 @@ var Protocol = class {
18714
18726
  this._progressHandlers.clear();
18715
18727
  this._taskProgressTokens.clear();
18716
18728
  this._pendingDebouncedNotifications.clear();
18729
+ for (const controller of this._requestHandlerAbortControllers.values()) {
18730
+ controller.abort();
18731
+ }
18732
+ this._requestHandlerAbortControllers.clear();
18717
18733
  const error3 = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
18718
18734
  this._transport = void 0;
18719
18735
  this.onclose?.();
@@ -18764,6 +18780,8 @@ var Protocol = class {
18764
18780
  sessionId: capturedTransport?.sessionId,
18765
18781
  _meta: request.params?._meta,
18766
18782
  sendNotification: async (notification) => {
18783
+ if (abortController.signal.aborted)
18784
+ return;
18767
18785
  const notificationOptions = { relatedRequestId: request.id };
18768
18786
  if (relatedTaskId) {
18769
18787
  notificationOptions.relatedTask = { taskId: relatedTaskId };
@@ -18771,6 +18789,9 @@ var Protocol = class {
18771
18789
  await this.notification(notification, notificationOptions);
18772
18790
  },
18773
18791
  sendRequest: async (r, resultSchema, options) => {
18792
+ if (abortController.signal.aborted) {
18793
+ throw new McpError(ErrorCode.ConnectionClosed, "Request was cancelled");
18794
+ }
18774
18795
  const requestOptions = { ...options, relatedRequestId: request.id };
18775
18796
  if (relatedTaskId && !requestOptions.relatedTask) {
18776
18797
  requestOptions.relatedTask = { taskId: relatedTaskId };
@@ -19441,7 +19462,7 @@ function mergeCapabilities(base, additional) {
19441
19462
  return result;
19442
19463
  }
19443
19464
 
19444
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
19465
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
19445
19466
  var import_ajv = __toESM(require_ajv(), 1);
19446
19467
  var import_ajv_formats = __toESM(require_dist(), 1);
19447
19468
  function createDefaultAjvInstance() {
@@ -19509,7 +19530,7 @@ var AjvJsonSchemaValidator = class {
19509
19530
  }
19510
19531
  };
19511
19532
 
19512
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
19533
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
19513
19534
  var ExperimentalServerTasks = class {
19514
19535
  constructor(_server) {
19515
19536
  this._server = _server;
@@ -19531,6 +19552,147 @@ var ExperimentalServerTasks = class {
19531
19552
  requestStream(request, resultSchema, options) {
19532
19553
  return this._server.requestStream(request, resultSchema, options);
19533
19554
  }
19555
+ /**
19556
+ * Sends a sampling request and returns an AsyncGenerator that yields response messages.
19557
+ * The generator is guaranteed to end with either a 'result' or 'error' message.
19558
+ *
19559
+ * For task-augmented requests, yields 'taskCreated' and 'taskStatus' messages
19560
+ * before the final result.
19561
+ *
19562
+ * @example
19563
+ * ```typescript
19564
+ * const stream = server.experimental.tasks.createMessageStream({
19565
+ * messages: [{ role: 'user', content: { type: 'text', text: 'Hello' } }],
19566
+ * maxTokens: 100
19567
+ * }, {
19568
+ * onprogress: (progress) => {
19569
+ * // Handle streaming tokens via progress notifications
19570
+ * console.log('Progress:', progress.message);
19571
+ * }
19572
+ * });
19573
+ *
19574
+ * for await (const message of stream) {
19575
+ * switch (message.type) {
19576
+ * case 'taskCreated':
19577
+ * console.log('Task created:', message.task.taskId);
19578
+ * break;
19579
+ * case 'taskStatus':
19580
+ * console.log('Task status:', message.task.status);
19581
+ * break;
19582
+ * case 'result':
19583
+ * console.log('Final result:', message.result);
19584
+ * break;
19585
+ * case 'error':
19586
+ * console.error('Error:', message.error);
19587
+ * break;
19588
+ * }
19589
+ * }
19590
+ * ```
19591
+ *
19592
+ * @param params - The sampling request parameters
19593
+ * @param options - Optional request options (timeout, signal, task creation params, onprogress, etc.)
19594
+ * @returns AsyncGenerator that yields ResponseMessage objects
19595
+ *
19596
+ * @experimental
19597
+ */
19598
+ createMessageStream(params, options) {
19599
+ const clientCapabilities = this._server.getClientCapabilities();
19600
+ if ((params.tools || params.toolChoice) && !clientCapabilities?.sampling?.tools) {
19601
+ throw new Error("Client does not support sampling tools capability.");
19602
+ }
19603
+ if (params.messages.length > 0) {
19604
+ const lastMessage = params.messages[params.messages.length - 1];
19605
+ const lastContent = Array.isArray(lastMessage.content) ? lastMessage.content : [lastMessage.content];
19606
+ const hasToolResults = lastContent.some((c) => c.type === "tool_result");
19607
+ const previousMessage = params.messages.length > 1 ? params.messages[params.messages.length - 2] : void 0;
19608
+ const previousContent = previousMessage ? Array.isArray(previousMessage.content) ? previousMessage.content : [previousMessage.content] : [];
19609
+ const hasPreviousToolUse = previousContent.some((c) => c.type === "tool_use");
19610
+ if (hasToolResults) {
19611
+ if (lastContent.some((c) => c.type !== "tool_result")) {
19612
+ throw new Error("The last message must contain only tool_result content if any is present");
19613
+ }
19614
+ if (!hasPreviousToolUse) {
19615
+ throw new Error("tool_result blocks are not matching any tool_use from the previous message");
19616
+ }
19617
+ }
19618
+ if (hasPreviousToolUse) {
19619
+ const toolUseIds = new Set(previousContent.filter((c) => c.type === "tool_use").map((c) => c.id));
19620
+ const toolResultIds = new Set(lastContent.filter((c) => c.type === "tool_result").map((c) => c.toolUseId));
19621
+ if (toolUseIds.size !== toolResultIds.size || ![...toolUseIds].every((id) => toolResultIds.has(id))) {
19622
+ throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match");
19623
+ }
19624
+ }
19625
+ }
19626
+ return this.requestStream({
19627
+ method: "sampling/createMessage",
19628
+ params
19629
+ }, CreateMessageResultSchema, options);
19630
+ }
19631
+ /**
19632
+ * Sends an elicitation request and returns an AsyncGenerator that yields response messages.
19633
+ * The generator is guaranteed to end with either a 'result' or 'error' message.
19634
+ *
19635
+ * For task-augmented requests (especially URL-based elicitation), yields 'taskCreated'
19636
+ * and 'taskStatus' messages before the final result.
19637
+ *
19638
+ * @example
19639
+ * ```typescript
19640
+ * const stream = server.experimental.tasks.elicitInputStream({
19641
+ * mode: 'url',
19642
+ * message: 'Please authenticate',
19643
+ * elicitationId: 'auth-123',
19644
+ * url: 'https://example.com/auth'
19645
+ * }, {
19646
+ * task: { ttl: 300000 } // Task-augmented for long-running auth flow
19647
+ * });
19648
+ *
19649
+ * for await (const message of stream) {
19650
+ * switch (message.type) {
19651
+ * case 'taskCreated':
19652
+ * console.log('Task created:', message.task.taskId);
19653
+ * break;
19654
+ * case 'taskStatus':
19655
+ * console.log('Task status:', message.task.status);
19656
+ * break;
19657
+ * case 'result':
19658
+ * console.log('User action:', message.result.action);
19659
+ * break;
19660
+ * case 'error':
19661
+ * console.error('Error:', message.error);
19662
+ * break;
19663
+ * }
19664
+ * }
19665
+ * ```
19666
+ *
19667
+ * @param params - The elicitation request parameters
19668
+ * @param options - Optional request options (timeout, signal, task creation params, etc.)
19669
+ * @returns AsyncGenerator that yields ResponseMessage objects
19670
+ *
19671
+ * @experimental
19672
+ */
19673
+ elicitInputStream(params, options) {
19674
+ const clientCapabilities = this._server.getClientCapabilities();
19675
+ const mode = params.mode ?? "form";
19676
+ switch (mode) {
19677
+ case "url": {
19678
+ if (!clientCapabilities?.elicitation?.url) {
19679
+ throw new Error("Client does not support url elicitation.");
19680
+ }
19681
+ break;
19682
+ }
19683
+ case "form": {
19684
+ if (!clientCapabilities?.elicitation?.form) {
19685
+ throw new Error("Client does not support form elicitation.");
19686
+ }
19687
+ break;
19688
+ }
19689
+ }
19690
+ const normalizedParams = mode === "form" && params.mode === void 0 ? { ...params, mode: "form" } : params;
19691
+ return this.requestStream({
19692
+ method: "elicitation/create",
19693
+ params: normalizedParams
19694
+ }, ElicitResultSchema, options);
19695
+ }
19534
19696
  /**
19535
19697
  * Gets the current status of a task.
19536
19698
  *
@@ -19581,7 +19743,7 @@ var ExperimentalServerTasks = class {
19581
19743
  }
19582
19744
  };
19583
19745
 
19584
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
19746
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
19585
19747
  function assertToolsCallTaskCapability(requests, method, entityName) {
19586
19748
  if (!requests) {
19587
19749
  throw new Error(`${entityName} does not support task creation (required for ${method})`);
@@ -19616,7 +19778,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
19616
19778
  }
19617
19779
  }
19618
19780
 
19619
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
19781
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
19620
19782
  var Server = class extends Protocol {
19621
19783
  /**
19622
19784
  * Initializes this server with the given name and version information.
@@ -19996,7 +20158,7 @@ var Server = class extends Protocol {
19996
20158
  }
19997
20159
  };
19998
20160
 
19999
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
20161
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
20000
20162
  var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
20001
20163
  function isCompletable(schema) {
20002
20164
  return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
@@ -20010,7 +20172,7 @@ var McpZodTypeKind;
20010
20172
  McpZodTypeKind2["Completable"] = "McpCompletable";
20011
20173
  })(McpZodTypeKind || (McpZodTypeKind = {}));
20012
20174
 
20013
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
20175
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
20014
20176
  var TOOL_NAME_REGEX = /^[A-Za-z0-9._-]{1,128}$/;
20015
20177
  function validateToolName(name) {
20016
20178
  const warnings = [];
@@ -20068,7 +20230,7 @@ function validateAndWarnToolName(name) {
20068
20230
  return result.isValid;
20069
20231
  }
20070
20232
 
20071
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
20233
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
20072
20234
  var ExperimentalMcpServerTasks = class {
20073
20235
  constructor(_mcpServer) {
20074
20236
  this._mcpServer = _mcpServer;
@@ -20083,7 +20245,7 @@ var ExperimentalMcpServerTasks = class {
20083
20245
  }
20084
20246
  };
20085
20247
 
20086
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
20248
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
20087
20249
  var McpServer = class {
20088
20250
  constructor(serverInfo, options) {
20089
20251
  this._registeredResources = {};
@@ -20869,10 +21031,10 @@ var EMPTY_COMPLETION_RESULT = {
20869
21031
  }
20870
21032
  };
20871
21033
 
20872
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21034
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
20873
21035
  import process2 from "node:process";
20874
21036
 
20875
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
21037
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
20876
21038
  var ReadBuffer = class {
20877
21039
  append(chunk) {
20878
21040
  this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
@@ -20900,7 +21062,7 @@ function serializeMessage(message) {
20900
21062
  return JSON.stringify(message) + "\n";
20901
21063
  }
20902
21064
 
20903
- // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.3_hono@4.11.5_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21065
+ // ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.27.1_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
20904
21066
  var StdioServerTransport = class {
20905
21067
  constructor(_stdin = process2.stdin, _stdout = process2.stdout) {
20906
21068
  this._stdin = _stdin;
@@ -20967,6 +21129,7 @@ import * as path5 from "node:path";
20967
21129
 
20968
21130
  // src/readers/types-reader.ts
20969
21131
  import * as path2 from "node:path";
21132
+ var TYPE_OR_INTERFACE = "(?:interface|type)";
20970
21133
  function parseJSDoc(comment) {
20971
21134
  const lines = comment.replace(/\/\*\*|\*\/|\*/g, "").split("\n").map((line) => line.trim()).filter(Boolean);
20972
21135
  let description = "";
@@ -21007,7 +21170,7 @@ function extractType(text2, startIndex) {
21007
21170
  function parseInterface(content, interfaceName) {
21008
21171
  const props = [];
21009
21172
  const interfaceRegex = new RegExp(
21010
- `export\\s+interface\\s+${interfaceName}\\s*\\{([\\s\\S]*?)\\n\\}`,
21173
+ `(?:export\\s+)?${TYPE_OR_INTERFACE}\\s+${interfaceName}\\s*(?:extends\\s+[^{]+)?(?:=\\s*)?\\{([\\s\\S]*?)\\n\\}`,
21011
21174
  "m"
21012
21175
  );
21013
21176
  const match = content.match(interfaceRegex);
@@ -21039,7 +21202,7 @@ function parseInterface(content, interfaceName) {
21039
21202
  function extractComponentDescription(content, interfaceName) {
21040
21203
  const lines = content.split("\n");
21041
21204
  const interfaceLineIndex = lines.findIndex(
21042
- (line) => line.match(new RegExp(`export\\s+interface\\s+${interfaceName}`))
21205
+ (line) => line.match(new RegExp(`export\\s+${TYPE_OR_INTERFACE}\\s+${interfaceName}`))
21043
21206
  );
21044
21207
  if (interfaceLineIndex === -1) {
21045
21208
  return "";
@@ -21064,28 +21227,67 @@ function extractComponentDescription(content, interfaceName) {
21064
21227
  }
21065
21228
  return "";
21066
21229
  }
21067
- function readTypesFile(filePath) {
21230
+ function resolveUnionOrIntersectionProps(content, typeName) {
21231
+ const typeDefRegex = new RegExp(`export\\s+type\\s+${typeName}\\s*=\\s*([^;]+)`);
21232
+ const match = content.match(typeDefRegex);
21233
+ if (!match) return [];
21234
+ const referencedTypes = match[1].split(/[|&]/).map((t) => t.trim()).filter((t) => t.endsWith("Props"));
21235
+ if (referencedTypes.length === 0) return [];
21236
+ const firstBranch = referencedTypes[0];
21237
+ const extendsRegex = new RegExp(
21238
+ `(?:export\\s+)?${TYPE_OR_INTERFACE}\\s+${firstBranch}\\s+extends\\s+(\\w+)`
21239
+ );
21240
+ const extendsMatch = content.match(extendsRegex);
21241
+ const allProps = [];
21242
+ if (extendsMatch) {
21243
+ allProps.push(...parseInterface(content, extendsMatch[1]));
21244
+ }
21245
+ allProps.push(...parseInterface(content, firstBranch));
21246
+ const seen = /* @__PURE__ */ new Set();
21247
+ return allProps.filter((p) => {
21248
+ if (seen.has(p.name)) return false;
21249
+ seen.add(p.name);
21250
+ return true;
21251
+ });
21252
+ }
21253
+ function readTypesFile(filePath, componentName) {
21068
21254
  const content = readTextFile(filePath);
21069
21255
  if (!content) {
21070
21256
  return null;
21071
21257
  }
21072
- const propsInterfaceMatch = content.match(/export\s+interface\s+(Ui\w+Props)/);
21258
+ const resolvedName = componentName || path2.basename(path2.dirname(filePath));
21259
+ const exactRegex = new RegExp(`export\\s+${TYPE_OR_INTERFACE}\\s+(${resolvedName}Props)\\b`);
21260
+ let propsInterfaceMatch = content.match(exactRegex);
21261
+ if (!propsInterfaceMatch) {
21262
+ const prefixRegex = new RegExp(
21263
+ `export\\s+${TYPE_OR_INTERFACE}\\s+(${resolvedName}\\w*Props)\\b`
21264
+ );
21265
+ propsInterfaceMatch = content.match(prefixRegex);
21266
+ }
21267
+ if (!propsInterfaceMatch) {
21268
+ propsInterfaceMatch = content.match(
21269
+ new RegExp(`export\\s+${TYPE_OR_INTERFACE}\\s+(Ui\\w+Props)\\b`)
21270
+ );
21271
+ }
21073
21272
  if (!propsInterfaceMatch) {
21074
21273
  return null;
21075
21274
  }
21076
21275
  const interfaceName = propsInterfaceMatch[1];
21077
- const componentName = interfaceName.replace("Props", "");
21276
+ const matchedComponentName = interfaceName.replace("Props", "");
21078
21277
  const description = extractComponentDescription(content, interfaceName);
21079
- const props = parseInterface(content, interfaceName);
21278
+ let props = parseInterface(content, interfaceName);
21279
+ if (props.length === 0) {
21280
+ props = resolveUnionOrIntersectionProps(content, interfaceName);
21281
+ }
21080
21282
  return {
21081
- name: componentName,
21283
+ name: matchedComponentName,
21082
21284
  description,
21083
21285
  props
21084
21286
  };
21085
21287
  }
21086
21288
  function readComponentTypes(componentDir) {
21087
21289
  const typesPath = path2.join(componentDir, "types.ts");
21088
- return readTypesFile(typesPath);
21290
+ return readTypesFile(typesPath, path2.basename(componentDir));
21089
21291
  }
21090
21292
 
21091
21293
  // src/constants.ts
@@ -21298,6 +21500,40 @@ function extractStories(content) {
21298
21500
  }
21299
21501
  return stories;
21300
21502
  }
21503
+ function extractInlineRenderTemplates(content) {
21504
+ const examples = [];
21505
+ const storyExportRegex = /export\s+const\s+(\w+):\s*Story\s*=/g;
21506
+ let match;
21507
+ while ((match = storyExportRegex.exec(content)) !== null) {
21508
+ const storyName = match[1];
21509
+ if (storyName === "default") continue;
21510
+ const afterEquals = content.indexOf("{", match.index + match[0].length);
21511
+ if (afterEquals === -1) continue;
21512
+ const closingBrace = findMatchingBrace(content, afterEquals);
21513
+ if (closingBrace === -1) continue;
21514
+ const storyBlock = content.slice(afterEquals, closingBrace + 1);
21515
+ if (!storyBlock.includes("template:")) continue;
21516
+ const templateMatch = storyBlock.match(/template:\s*`([\s\S]*?)`/);
21517
+ if (!templateMatch) continue;
21518
+ const template = templateMatch[1].trim();
21519
+ if (!template) continue;
21520
+ const componentsMatch = storyBlock.match(/components:\s*\{([^}]+)\}/);
21521
+ const componentNames = componentsMatch ? componentsMatch[1].split(",").map((c) => c.trim()).filter(Boolean) : [];
21522
+ const imports = componentNames.length > 0 ? `<script setup>
21523
+ // Components: ${componentNames.join(", ")}
21524
+ </script>
21525
+
21526
+ ` : "";
21527
+ examples.push({
21528
+ name: storyName,
21529
+ description: "",
21530
+ code: `${imports}<template>
21531
+ ${template}
21532
+ </template>`
21533
+ });
21534
+ }
21535
+ return examples;
21536
+ }
21301
21537
  function extractArgTypes(content) {
21302
21538
  const argTypes = [];
21303
21539
  const argTypesKeyIndex = content.indexOf("argTypes");
@@ -21354,6 +21590,56 @@ function extractTitle(content) {
21354
21590
  const titleMatch = content.match(/title:\s*['"]([^'"]+)['"]/);
21355
21591
  return titleMatch ? titleMatch[1] : "";
21356
21592
  }
21593
+ function extractMetaArgs(content) {
21594
+ const metaDefaultIndex = content.indexOf("export default");
21595
+ if (metaDefaultIndex === -1) return void 0;
21596
+ const metaSection = content.slice(0, metaDefaultIndex);
21597
+ const argsKeyIndex = metaSection.lastIndexOf("args:");
21598
+ if (argsKeyIndex !== -1) {
21599
+ return extractArgsFromPosition(content, argsKeyIndex);
21600
+ }
21601
+ const afterExport = content.slice(metaDefaultIndex + "export default".length);
21602
+ const trimmed = afterExport.trimStart();
21603
+ if (!trimmed.startsWith("{")) return void 0;
21604
+ const blockStart = content.indexOf("{", metaDefaultIndex);
21605
+ const blockEnd = findMatchingBrace(content, blockStart);
21606
+ if (blockEnd === -1) return void 0;
21607
+ const metaBlock = content.slice(blockStart + 1, blockEnd);
21608
+ const inlineArgsIndex = metaBlock.indexOf("args:");
21609
+ if (inlineArgsIndex === -1) return void 0;
21610
+ return extractArgsFromPosition(content, blockStart + 1 + inlineArgsIndex);
21611
+ }
21612
+ function extractArgsFromPosition(content, argsKeyIndex) {
21613
+ const colonIndex = content.indexOf(":", argsKeyIndex + 4);
21614
+ if (colonIndex === -1) {
21615
+ return void 0;
21616
+ }
21617
+ const openingBraceIndex = content.indexOf("{", colonIndex);
21618
+ if (openingBraceIndex === -1) {
21619
+ return void 0;
21620
+ }
21621
+ const closingBraceIndex = findMatchingBrace(content, openingBraceIndex);
21622
+ if (closingBraceIndex === -1) {
21623
+ return void 0;
21624
+ }
21625
+ const argsBlock = content.slice(openingBraceIndex + 1, closingBraceIndex);
21626
+ const args = {};
21627
+ const kvRegex = /(\w+)\s*:\s*(?:'([^']*)'|"([^"]*)"|(\d+(?:\.\d+)?)|(\btrue\b|\bfalse\b))/g;
21628
+ let match;
21629
+ while ((match = kvRegex.exec(argsBlock)) !== null) {
21630
+ const key = match[1];
21631
+ if (match[2] !== void 0) {
21632
+ args[key] = match[2];
21633
+ } else if (match[3] !== void 0) {
21634
+ args[key] = match[3];
21635
+ } else if (match[4] !== void 0) {
21636
+ args[key] = Number(match[4]);
21637
+ } else if (match[5] !== void 0) {
21638
+ args[key] = match[5] === "true";
21639
+ }
21640
+ }
21641
+ return Object.keys(args).length > 0 ? args : void 0;
21642
+ }
21357
21643
  function readStoriesFile(filePath) {
21358
21644
  const content = readTextFile(filePath);
21359
21645
  if (!content) {
@@ -21365,6 +21651,7 @@ function readStoriesFile(filePath) {
21365
21651
  const storyTemplateMap = extractStories(content);
21366
21652
  const examples = [];
21367
21653
  const usageGuidance = [];
21654
+ const coveredStories = /* @__PURE__ */ new Set();
21368
21655
  for (const [storyName, templateVar] of storyTemplateMap) {
21369
21656
  const code = templateSources.get(templateVar);
21370
21657
  const description = extractStoryJSDoc(content, storyName);
@@ -21374,16 +21661,29 @@ function readStoriesFile(filePath) {
21374
21661
  description,
21375
21662
  code
21376
21663
  });
21664
+ coveredStories.add(storyName);
21377
21665
  }
21378
21666
  if (description) {
21379
21667
  usageGuidance.push(description);
21380
21668
  }
21381
21669
  }
21670
+ const inlineExamples = extractInlineRenderTemplates(content);
21671
+ for (const example of inlineExamples) {
21672
+ if (!coveredStories.has(example.name)) {
21673
+ const description = extractStoryJSDoc(content, example.name);
21674
+ examples.push({ ...example, description });
21675
+ if (description) {
21676
+ usageGuidance.push(description);
21677
+ }
21678
+ }
21679
+ }
21680
+ const defaultArgs = extractMetaArgs(content);
21382
21681
  return {
21383
21682
  title,
21384
21683
  examples,
21385
21684
  argTypes,
21386
- usageGuidance
21685
+ usageGuidance,
21686
+ defaultArgs
21387
21687
  };
21388
21688
  }
21389
21689
  function readComponentStories(componentDir) {
@@ -21457,7 +21757,8 @@ function getComponentDocs(componentName) {
21457
21757
  examples,
21458
21758
  usageGuidance: [...new Set(usageGuidance)],
21459
21759
  // Remove duplicates
21460
- subComponents: subComponents && subComponents.length > 0 ? subComponents : void 0
21760
+ subComponents: subComponents && subComponents.length > 0 ? subComponents : void 0,
21761
+ defaultArgs: storiesInfo?.defaultArgs
21461
21762
  };
21462
21763
  }
21463
21764
 
@@ -21503,6 +21804,27 @@ function formatComponentDocs(docs) {
21503
21804
  sections.push("## Props", "");
21504
21805
  docs.props.forEach((prop) => sections.push(...formatProp(prop)));
21505
21806
  }
21807
+ if (docs.defaultArgs && Object.keys(docs.defaultArgs).length > 0) {
21808
+ const filteredArgs = Object.entries(docs.defaultArgs).filter(([key, value]) => {
21809
+ const prop = docs.props.find((p) => p.name === key);
21810
+ if (!prop?.default) return true;
21811
+ return String(value) !== prop.default;
21812
+ });
21813
+ if (filteredArgs.length > 0) {
21814
+ sections.push("## Storybook Defaults", "");
21815
+ sections.push(
21816
+ "These are the recommended prop values used in the component's Storybook stories:",
21817
+ ""
21818
+ );
21819
+ sections.push("| Prop | Value |");
21820
+ sections.push("|------|-------|");
21821
+ for (const [key, value] of filteredArgs) {
21822
+ const formatted = typeof value === "string" ? `"${value}"` : String(value);
21823
+ sections.push(`| \`${key}\` | \`${formatted}\` |`);
21824
+ }
21825
+ sections.push("");
21826
+ }
21827
+ }
21506
21828
  if (docs.subComponents && docs.subComponents.length > 0) {
21507
21829
  sections.push("## Sub-components", "");
21508
21830
  docs.subComponents.forEach((name) => sections.push(`- \`${name}\``));