@honcho-ai/claude-honcho 0.3.1 → 0.3.2

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.
Files changed (61) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +95 -12
  3. package/dist/chunk-1nsms6f4.js +50 -0
  4. package/dist/chunk-1nsms6f4.js.map +10 -0
  5. package/dist/{chunk-jr0fd6n2.js → chunk-1xa1wr00.js} +2 -2
  6. package/dist/{chunk-9pntsn3x.js → chunk-43gww8dc.js} +1 -1
  7. package/dist/chunk-81cb25yy.js +35 -0
  8. package/dist/{chunk-6yybt92z.js.map → chunk-81cb25yy.js.map} +1 -1
  9. package/dist/{chunk-yfrrc1d5.js → chunk-acwn3613.js} +64 -106
  10. package/dist/chunk-acwn3613.js.map +13 -0
  11. package/dist/{chunk-49wja30f.js → chunk-d99xh4kg.js} +1 -1
  12. package/dist/{chunk-xdntcesh.js → chunk-g0m354bn.js} +758 -210
  13. package/dist/{chunk-xdntcesh.js.map → chunk-g0m354bn.js.map} +8 -4
  14. package/dist/{chunk-4ryv9310.js → chunk-mm5vjhpr.js} +240 -210
  15. package/dist/{chunk-4ryv9310.js.map → chunk-mm5vjhpr.js.map} +2 -2
  16. package/dist/{chunk-d2gc13m0.js → chunk-pdnbydfe.js} +10 -12
  17. package/dist/{chunk-d2gc13m0.js.map → chunk-pdnbydfe.js.map} +2 -2
  18. package/dist/{chunk-xtdvbfxw.js → chunk-qp4ng9m0.js} +6 -6
  19. package/dist/{chunk-xtdvbfxw.js.map → chunk-qp4ng9m0.js.map} +2 -2
  20. package/dist/{chunk-4zgbdwm4.js → chunk-w3tnmcx7.js} +6 -6
  21. package/dist/{chunk-4zgbdwm4.js.map → chunk-w3tnmcx7.js.map} +1 -1
  22. package/dist/hooks/post-tool-use.js +22 -21
  23. package/dist/hooks/post-tool-use.js.map +3 -3
  24. package/dist/hooks/pre-compact.js +21 -65
  25. package/dist/hooks/pre-compact.js.map +3 -4
  26. package/dist/hooks/pre-tool-honcho.js +5 -5
  27. package/dist/hooks/pre-tool-honcho.js.map +1 -1
  28. package/dist/hooks/save-user-message.js +45 -27
  29. package/dist/hooks/save-user-message.js.map +4 -3
  30. package/dist/hooks/session-end.js +13 -13
  31. package/dist/hooks/session-end.js.map +2 -2
  32. package/dist/hooks/session-start.js +38 -38
  33. package/dist/hooks/session-start.js.map +2 -2
  34. package/dist/hooks/stop.js +20 -20
  35. package/dist/hooks/stop.js.map +1 -1
  36. package/dist/hooks/user-prompt.js +367 -10
  37. package/dist/hooks/user-prompt.js.map +5 -3
  38. package/dist/mcp-server.js +550 -739
  39. package/dist/mcp-server.js.map +3 -3
  40. package/dist/skills/backfill-runner.js +545 -47
  41. package/dist/skills/backfill-runner.js.map +9 -4
  42. package/dist/skills/setup-runner.js +47 -194
  43. package/dist/skills/setup-runner.js.map +4 -6
  44. package/dist/skills/status-runner.js +16 -17
  45. package/dist/skills/status-runner.js.map +2 -2
  46. package/package.json +1 -1
  47. package/dist/chunk-084dpgp3.js +0 -556
  48. package/dist/chunk-084dpgp3.js.map +0 -10
  49. package/dist/chunk-6yybt92z.js +0 -106
  50. package/dist/chunk-dxbm7kmf.js +0 -331
  51. package/dist/chunk-dxbm7kmf.js.map +0 -10
  52. package/dist/chunk-gnp95nzg.js +0 -438
  53. package/dist/chunk-gnp95nzg.js.map +0 -12
  54. package/dist/chunk-jgtvcc65.js +0 -90
  55. package/dist/chunk-jgtvcc65.js.map +0 -10
  56. package/dist/chunk-wm6hvkcv.js +0 -245
  57. package/dist/chunk-wm6hvkcv.js.map +0 -10
  58. package/dist/chunk-yfrrc1d5.js.map +0 -12
  59. /package/dist/{chunk-jr0fd6n2.js.map → chunk-1xa1wr00.js.map} +0 -0
  60. /package/dist/{chunk-9pntsn3x.js.map → chunk-43gww8dc.js.map} +0 -0
  61. /package/dist/{chunk-49wja30f.js.map → chunk-d99xh4kg.js.map} +0 -0
@@ -1,41 +1,43 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
- honchoSessionUrl
4
- } from "./chunk-49wja30f.js";
5
- import {
6
- require_dist
7
- } from "./chunk-4ryv9310.js";
8
- import {
3
+ SESSION_START_COMPONENTS,
9
4
  PER_TURN_COMPONENTS,
5
+ normalizePerTurn,
10
6
  REASONING_LEVELS,
11
- SESSION_START_COMPONENTS,
12
- __commonJS,
13
- __export,
14
- __toESM,
15
- clearClaudeContextOnly,
16
- clearIdCache,
17
- clearPeerCache,
18
- clearUserContextOnly,
7
+ setDetectedHost,
8
+ getDetectedHost,
19
9
  coerceBoolean,
20
- configExists,
21
10
  getConfigPath,
22
- getDetectedHost,
23
- getEndpointInfo,
24
- getHonchoClientOptions,
25
- getKnownHosts,
26
- getLastActiveCwd,
27
- getObservationMode,
11
+ configExists,
28
12
  getPluginVersion,
29
- getSessionName,
30
13
  loadConfig,
31
- normalizePerTurn,
32
14
  saveConfig,
33
15
  saveRootField,
34
- setDetectedHost
35
- } from "./chunk-yfrrc1d5.js";
16
+ getSessionName,
17
+ getKnownHosts,
18
+ getHonchoClientOptions,
19
+ getEndpointInfo,
20
+ getObservationMode,
21
+ getLastActiveCwd,
22
+ clearIdCache,
23
+ clearPeerCache,
24
+ clearUserContextOnly,
25
+ clearClaudeContextOnly
26
+ } from "./chunk-acwn3613.js";
27
+ import {
28
+ honchoSessionUrl
29
+ } from "./chunk-d99xh4kg.js";
30
+ import {
31
+ validateRedactPattern
32
+ } from "./chunk-1nsms6f4.js";
33
+ import {
34
+ __toESM,
35
+ __commonJS,
36
+ require_dist
37
+ } from "./chunk-mm5vjhpr.js";
36
38
 
37
39
  // node_modules/ajv/dist/compile/codegen/code.js
38
- var require_code = __commonJS((exports) => {
40
+ var require_code = __commonJS(function(exports) {
39
41
  Object.defineProperty(exports, "__esModule", { value: true });
40
42
  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 = undefined;
41
43
 
@@ -189,7 +191,7 @@ var require_code = __commonJS((exports) => {
189
191
  });
190
192
 
191
193
  // node_modules/ajv/dist/compile/codegen/scope.js
192
- var require_scope = __commonJS((exports) => {
194
+ var require_scope = __commonJS(function(exports) {
193
195
  Object.defineProperty(exports, "__esModule", { value: true });
194
196
  exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = undefined;
195
197
  var code_1 = require_code();
@@ -201,9 +203,9 @@ var require_scope = __commonJS((exports) => {
201
203
  }
202
204
  }
203
205
  var UsedValueState;
204
- (function(UsedValueState2) {
205
- UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
206
- UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
206
+ (function(UsedValueState) {
207
+ UsedValueState[UsedValueState["Started"] = 0] = "Started";
208
+ UsedValueState[UsedValueState["Completed"] = 1] = "Completed";
207
209
  })(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
208
210
  exports.varKinds = {
209
211
  const: new code_1.Name("const"),
@@ -335,7 +337,7 @@ var require_scope = __commonJS((exports) => {
335
337
  });
336
338
 
337
339
  // node_modules/ajv/dist/compile/codegen/index.js
338
- var require_codegen = __commonJS((exports) => {
340
+ var require_codegen = __commonJS(function(exports) {
339
341
  Object.defineProperty(exports, "__esModule", { value: true });
340
342
  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._ = undefined;
341
343
  var code_1 = require_code();
@@ -480,9 +482,9 @@ var require_codegen = __commonJS((exports) => {
480
482
  }
481
483
 
482
484
  class Throw extends Node {
483
- constructor(error2) {
485
+ constructor(error) {
484
486
  super();
485
- this.error = error2;
487
+ this.error = error;
486
488
  }
487
489
  render({ _n }) {
488
490
  return `throw ${this.error};` + _n;
@@ -733,9 +735,9 @@ var require_codegen = __commonJS((exports) => {
733
735
  }
734
736
 
735
737
  class Catch extends BlockNode {
736
- constructor(error2) {
738
+ constructor(error) {
737
739
  super();
738
- this.error = error2;
740
+ this.error = error;
739
741
  }
740
742
  render(opts) {
741
743
  return `catch(${this.error})` + super.render(opts);
@@ -903,9 +905,9 @@ var require_codegen = __commonJS((exports) => {
903
905
  this._blockNode(node);
904
906
  this.code(tryBody);
905
907
  if (catchCode) {
906
- const error2 = this.name("e");
907
- this._currNode = node.catch = new Catch(error2);
908
- catchCode(error2);
908
+ const error = this.name("e");
909
+ this._currNode = node.catch = new Catch(error);
910
+ catchCode(error);
909
911
  }
910
912
  if (finallyCode) {
911
913
  this._currNode = node.finally = new Finally;
@@ -913,8 +915,8 @@ var require_codegen = __commonJS((exports) => {
913
915
  }
914
916
  return this._endBlockNode(Catch, Finally);
915
917
  }
916
- throw(error2) {
917
- return this._leafNode(new Throw(error2));
918
+ throw(error) {
919
+ return this._leafNode(new Throw(error));
918
920
  }
919
921
  block(body, nodeCount) {
920
922
  this._blockStarts.push(this._nodes.length);
@@ -1045,7 +1047,7 @@ var require_codegen = __commonJS((exports) => {
1045
1047
  });
1046
1048
 
1047
1049
  // node_modules/ajv/dist/compile/util.js
1048
- var require_util = __commonJS((exports) => {
1050
+ var require_util = __commonJS(function(exports) {
1049
1051
  Object.defineProperty(exports, "__esModule", { value: true });
1050
1052
  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 = undefined;
1051
1053
  var codegen_1 = require_codegen();
@@ -1134,9 +1136,9 @@ var require_util = __commonJS((exports) => {
1134
1136
  }
1135
1137
  }
1136
1138
  exports.eachItem = eachItem;
1137
- function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues2, resultToName }) {
1139
+ function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues, resultToName }) {
1138
1140
  return (gen, from, to, toName) => {
1139
- const res = to === undefined ? from : to instanceof codegen_1.Name ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) : from instanceof codegen_1.Name ? (mergeToName(gen, to, from), from) : mergeValues2(from, to);
1141
+ const res = to === undefined ? from : to instanceof codegen_1.Name ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) : from instanceof codegen_1.Name ? (mergeToName(gen, to, from), from) : mergeValues(from, to);
1140
1142
  return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
1141
1143
  };
1142
1144
  }
@@ -1185,9 +1187,9 @@ var require_util = __commonJS((exports) => {
1185
1187
  }
1186
1188
  exports.useFunc = useFunc;
1187
1189
  var Type;
1188
- (function(Type2) {
1189
- Type2[Type2["Num"] = 0] = "Num";
1190
- Type2[Type2["Str"] = 1] = "Str";
1190
+ (function(Type) {
1191
+ Type[Type["Num"] = 0] = "Num";
1192
+ Type[Type["Str"] = 1] = "Str";
1191
1193
  })(Type || (exports.Type = Type = {}));
1192
1194
  function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
1193
1195
  if (dataProp instanceof codegen_1.Name) {
@@ -1209,7 +1211,7 @@ var require_util = __commonJS((exports) => {
1209
1211
  });
1210
1212
 
1211
1213
  // node_modules/ajv/dist/compile/names.js
1212
- var require_names = __commonJS((exports) => {
1214
+ var require_names = __commonJS(function(exports) {
1213
1215
  Object.defineProperty(exports, "__esModule", { value: true });
1214
1216
  var codegen_1 = require_codegen();
1215
1217
  var names = {
@@ -1234,7 +1236,7 @@ var require_names = __commonJS((exports) => {
1234
1236
  });
1235
1237
 
1236
1238
  // node_modules/ajv/dist/compile/errors.js
1237
- var require_errors = __commonJS((exports) => {
1239
+ var require_errors = __commonJS(function(exports) {
1238
1240
  Object.defineProperty(exports, "__esModule", { value: true });
1239
1241
  exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = undefined;
1240
1242
  var codegen_1 = require_codegen();
@@ -1246,10 +1248,10 @@ var require_errors = __commonJS((exports) => {
1246
1248
  exports.keyword$DataError = {
1247
1249
  message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
1248
1250
  };
1249
- function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) {
1251
+ function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {
1250
1252
  const { it } = cxt;
1251
1253
  const { gen, compositeRule, allErrors } = it;
1252
- const errObj = errorObjectCode(cxt, error2, errorPaths);
1254
+ const errObj = errorObjectCode(cxt, error, errorPaths);
1253
1255
  if (overrideAllErrors !== null && overrideAllErrors !== undefined ? overrideAllErrors : compositeRule || allErrors) {
1254
1256
  addError(gen, errObj);
1255
1257
  } else {
@@ -1257,10 +1259,10 @@ var require_errors = __commonJS((exports) => {
1257
1259
  }
1258
1260
  }
1259
1261
  exports.reportError = reportError;
1260
- function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) {
1262
+ function reportExtraError(cxt, error = exports.keywordError, errorPaths) {
1261
1263
  const { it } = cxt;
1262
1264
  const { gen, compositeRule, allErrors } = it;
1263
- const errObj = errorObjectCode(cxt, error2, errorPaths);
1265
+ const errObj = errorObjectCode(cxt, error, errorPaths);
1264
1266
  addError(gen, errObj);
1265
1267
  if (!(compositeRule || allErrors)) {
1266
1268
  returnErrors(it, names_1.default.vErrors);
@@ -1310,19 +1312,19 @@ var require_errors = __commonJS((exports) => {
1310
1312
  schema: new codegen_1.Name("schema"),
1311
1313
  parentSchema: new codegen_1.Name("parentSchema")
1312
1314
  };
1313
- function errorObjectCode(cxt, error2, errorPaths) {
1315
+ function errorObjectCode(cxt, error, errorPaths) {
1314
1316
  const { createErrors } = cxt.it;
1315
1317
  if (createErrors === false)
1316
1318
  return (0, codegen_1._)`{}`;
1317
- return errorObject(cxt, error2, errorPaths);
1319
+ return errorObject(cxt, error, errorPaths);
1318
1320
  }
1319
- function errorObject(cxt, error2, errorPaths = {}) {
1321
+ function errorObject(cxt, error, errorPaths = {}) {
1320
1322
  const { gen, it } = cxt;
1321
1323
  const keyValues = [
1322
1324
  errorInstancePath(it, errorPaths),
1323
1325
  errorSchemaPath(cxt, errorPaths)
1324
1326
  ];
1325
- extraErrorProps(cxt, error2, keyValues);
1327
+ extraErrorProps(cxt, error, keyValues);
1326
1328
  return gen.object(...keyValues);
1327
1329
  }
1328
1330
  function errorInstancePath({ errorPath }, { instancePath }) {
@@ -1352,7 +1354,7 @@ var require_errors = __commonJS((exports) => {
1352
1354
  });
1353
1355
 
1354
1356
  // node_modules/ajv/dist/compile/validate/boolSchema.js
1355
- var require_boolSchema = __commonJS((exports) => {
1357
+ var require_boolSchema = __commonJS(function(exports) {
1356
1358
  Object.defineProperty(exports, "__esModule", { value: true });
1357
1359
  exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = undefined;
1358
1360
  var errors_1 = require_errors();
@@ -1400,7 +1402,7 @@ var require_boolSchema = __commonJS((exports) => {
1400
1402
  });
1401
1403
 
1402
1404
  // node_modules/ajv/dist/compile/rules.js
1403
- var require_rules = __commonJS((exports) => {
1405
+ var require_rules = __commonJS(function(exports) {
1404
1406
  Object.defineProperty(exports, "__esModule", { value: true });
1405
1407
  exports.getRules = exports.isJSONType = undefined;
1406
1408
  var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
@@ -1428,7 +1430,7 @@ var require_rules = __commonJS((exports) => {
1428
1430
  });
1429
1431
 
1430
1432
  // node_modules/ajv/dist/compile/validate/applicability.js
1431
- var require_applicability = __commonJS((exports) => {
1433
+ var require_applicability = __commonJS(function(exports) {
1432
1434
  Object.defineProperty(exports, "__esModule", { value: true });
1433
1435
  exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = undefined;
1434
1436
  function schemaHasRulesForType({ schema, self }, type) {
@@ -1448,7 +1450,7 @@ var require_applicability = __commonJS((exports) => {
1448
1450
  });
1449
1451
 
1450
1452
  // node_modules/ajv/dist/compile/validate/dataType.js
1451
- var require_dataType = __commonJS((exports) => {
1453
+ var require_dataType = __commonJS(function(exports) {
1452
1454
  Object.defineProperty(exports, "__esModule", { value: true });
1453
1455
  exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = undefined;
1454
1456
  var rules_1 = require_rules();
@@ -1457,9 +1459,9 @@ var require_dataType = __commonJS((exports) => {
1457
1459
  var codegen_1 = require_codegen();
1458
1460
  var util_1 = require_util();
1459
1461
  var DataType;
1460
- (function(DataType2) {
1461
- DataType2[DataType2["Correct"] = 0] = "Correct";
1462
- DataType2[DataType2["Wrong"] = 1] = "Wrong";
1462
+ (function(DataType) {
1463
+ DataType[DataType["Correct"] = 0] = "Correct";
1464
+ DataType[DataType["Wrong"] = 1] = "Wrong";
1463
1465
  })(DataType || (exports.DataType = DataType = {}));
1464
1466
  function getSchemaTypes(schema) {
1465
1467
  const types = getJSONTypes(schema.type);
@@ -1629,7 +1631,7 @@ var require_dataType = __commonJS((exports) => {
1629
1631
  });
1630
1632
 
1631
1633
  // node_modules/ajv/dist/compile/validate/defaults.js
1632
- var require_defaults = __commonJS((exports) => {
1634
+ var require_defaults = __commonJS(function(exports) {
1633
1635
  Object.defineProperty(exports, "__esModule", { value: true });
1634
1636
  exports.assignDefaults = undefined;
1635
1637
  var codegen_1 = require_codegen();
@@ -1663,7 +1665,7 @@ var require_defaults = __commonJS((exports) => {
1663
1665
  });
1664
1666
 
1665
1667
  // node_modules/ajv/dist/vocabularies/code.js
1666
- var require_code2 = __commonJS((exports) => {
1668
+ var require_code2 = __commonJS(function(exports) {
1667
1669
  Object.defineProperty(exports, "__esModule", { value: true });
1668
1670
  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 = undefined;
1669
1671
  var codegen_1 = require_codegen();
@@ -1792,7 +1794,7 @@ var require_code2 = __commonJS((exports) => {
1792
1794
  });
1793
1795
 
1794
1796
  // node_modules/ajv/dist/compile/validate/keyword.js
1795
- var require_keyword = __commonJS((exports) => {
1797
+ var require_keyword = __commonJS(function(exports) {
1796
1798
  Object.defineProperty(exports, "__esModule", { value: true });
1797
1799
  exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = undefined;
1798
1800
  var codegen_1 = require_codegen();
@@ -1854,9 +1856,9 @@ var require_keyword = __commonJS((exports) => {
1854
1856
  const passSchema = !(("compile" in def) && !$data || def.schema === false);
1855
1857
  gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);
1856
1858
  }
1857
- function reportErrs(errors3) {
1858
- var _a2;
1859
- gen.if((0, codegen_1.not)((_a2 = def.valid) !== null && _a2 !== undefined ? _a2 : valid), errors3);
1859
+ function reportErrs(errors) {
1860
+ var _a;
1861
+ gen.if((0, codegen_1.not)((_a = def.valid) !== null && _a !== undefined ? _a : valid), errors);
1860
1862
  }
1861
1863
  }
1862
1864
  exports.funcKeywordCode = funcKeywordCode;
@@ -1907,7 +1909,7 @@ var require_keyword = __commonJS((exports) => {
1907
1909
  });
1908
1910
 
1909
1911
  // node_modules/ajv/dist/compile/validate/subschema.js
1910
- var require_subschema = __commonJS((exports) => {
1912
+ var require_subschema = __commonJS(function(exports) {
1911
1913
  Object.defineProperty(exports, "__esModule", { value: true });
1912
1914
  exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = undefined;
1913
1915
  var codegen_1 = require_codegen();
@@ -1987,7 +1989,7 @@ var require_subschema = __commonJS((exports) => {
1987
1989
  });
1988
1990
 
1989
1991
  // node_modules/fast-deep-equal/index.js
1990
- var require_fast_deep_equal = __commonJS((exports, module) => {
1992
+ var require_fast_deep_equal = __commonJS(function(exports, module) {
1991
1993
  module.exports = function equal(a, b) {
1992
1994
  if (a === b)
1993
1995
  return true;
@@ -2029,7 +2031,7 @@ var require_fast_deep_equal = __commonJS((exports, module) => {
2029
2031
  });
2030
2032
 
2031
2033
  // node_modules/json-schema-traverse/index.js
2032
- var require_json_schema_traverse = __commonJS((exports, module) => {
2034
+ var require_json_schema_traverse = __commonJS(function(exports, module) {
2033
2035
  var traverse = module.exports = function(schema, opts, cb) {
2034
2036
  if (typeof opts == "function") {
2035
2037
  cb = opts;
@@ -2112,7 +2114,7 @@ var require_json_schema_traverse = __commonJS((exports, module) => {
2112
2114
  });
2113
2115
 
2114
2116
  // node_modules/ajv/dist/compile/resolve.js
2115
- var require_resolve = __commonJS((exports) => {
2117
+ var require_resolve = __commonJS(function(exports) {
2116
2118
  Object.defineProperty(exports, "__esModule", { value: true });
2117
2119
  exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = undefined;
2118
2120
  var util_1 = require_util();
@@ -2265,7 +2267,7 @@ var require_resolve = __commonJS((exports) => {
2265
2267
  });
2266
2268
 
2267
2269
  // node_modules/ajv/dist/compile/validate/index.js
2268
- var require_validate = __commonJS((exports) => {
2270
+ var require_validate = __commonJS(function(exports) {
2269
2271
  Object.defineProperty(exports, "__esModule", { value: true });
2270
2272
  exports.getData = exports.KeywordCxt = exports.validateFunctionCode = undefined;
2271
2273
  var boolSchema_1 = require_boolSchema();
@@ -2770,13 +2772,13 @@ var require_validate = __commonJS((exports) => {
2770
2772
  });
2771
2773
 
2772
2774
  // node_modules/ajv/dist/runtime/validation_error.js
2773
- var require_validation_error = __commonJS((exports) => {
2775
+ var require_validation_error = __commonJS(function(exports) {
2774
2776
  Object.defineProperty(exports, "__esModule", { value: true });
2775
2777
 
2776
2778
  class ValidationError extends Error {
2777
- constructor(errors3) {
2779
+ constructor(errors) {
2778
2780
  super("validation failed");
2779
- this.errors = errors3;
2781
+ this.errors = errors;
2780
2782
  this.ajv = this.validation = true;
2781
2783
  }
2782
2784
  }
@@ -2784,7 +2786,7 @@ var require_validation_error = __commonJS((exports) => {
2784
2786
  });
2785
2787
 
2786
2788
  // node_modules/ajv/dist/compile/ref_error.js
2787
- var require_ref_error = __commonJS((exports) => {
2789
+ var require_ref_error = __commonJS(function(exports) {
2788
2790
  Object.defineProperty(exports, "__esModule", { value: true });
2789
2791
  var resolve_1 = require_resolve();
2790
2792
 
@@ -2799,7 +2801,7 @@ var require_ref_error = __commonJS((exports) => {
2799
2801
  });
2800
2802
 
2801
2803
  // node_modules/ajv/dist/compile/index.js
2802
- var require_compile = __commonJS((exports) => {
2804
+ var require_compile = __commonJS(function(exports) {
2803
2805
  Object.defineProperty(exports, "__esModule", { value: true });
2804
2806
  exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = undefined;
2805
2807
  var codegen_1 = require_codegen();
@@ -3020,7 +3022,7 @@ var require_compile = __commonJS((exports) => {
3020
3022
  });
3021
3023
 
3022
3024
  // node_modules/ajv/dist/refs/data.json
3023
- var require_data = __commonJS((exports, module) => {
3025
+ var require_data = __commonJS(function(exports, module) {
3024
3026
  module.exports = {
3025
3027
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
3026
3028
  description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
@@ -3037,7 +3039,7 @@ var require_data = __commonJS((exports, module) => {
3037
3039
  });
3038
3040
 
3039
3041
  // node_modules/fast-uri/lib/utils.js
3040
- var require_utils = __commonJS((exports, module) => {
3042
+ var require_utils = __commonJS(function(exports, module) {
3041
3043
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3042
3044
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
3043
3045
  function stringArrayToHexStripped(input) {
@@ -3137,13 +3139,13 @@ var require_utils = __commonJS((exports, module) => {
3137
3139
  if (findToken(host, ":") < 2) {
3138
3140
  return { host, isIPV6: false };
3139
3141
  }
3140
- const ipv62 = getIPV6(host);
3141
- if (!ipv62.error) {
3142
- let newHost = ipv62.address;
3143
- let escapedHost = ipv62.address;
3144
- if (ipv62.zone) {
3145
- newHost += "%" + ipv62.zone;
3146
- escapedHost += "%25" + ipv62.zone;
3142
+ const ipv6 = getIPV6(host);
3143
+ if (!ipv6.error) {
3144
+ let newHost = ipv6.address;
3145
+ let escapedHost = ipv6.address;
3146
+ if (ipv6.zone) {
3147
+ newHost += "%" + ipv6.zone;
3148
+ escapedHost += "%25" + ipv6.zone;
3147
3149
  }
3148
3150
  return { host: newHost, isIPV6: true, escapedHost };
3149
3151
  } else {
@@ -3233,8 +3235,8 @@ var require_utils = __commonJS((exports, module) => {
3233
3235
  }
3234
3236
  return output.join("");
3235
3237
  }
3236
- function normalizeComponentEncoding(component, esc2) {
3237
- const func = esc2 !== true ? escape : unescape;
3238
+ function normalizeComponentEncoding(component, esc) {
3239
+ const func = esc !== true ? escape : unescape;
3238
3240
  if (component.scheme !== undefined) {
3239
3241
  component.scheme = func(component.scheme);
3240
3242
  }
@@ -3292,7 +3294,7 @@ var require_utils = __commonJS((exports, module) => {
3292
3294
  });
3293
3295
 
3294
3296
  // node_modules/fast-uri/lib/schemes.js
3295
- var require_schemes = __commonJS((exports, module) => {
3297
+ var require_schemes = __commonJS(function(exports, module) {
3296
3298
  var { isUUID } = require_utils();
3297
3299
  var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3298
3300
  var supportedSchemeNames = [
@@ -3466,28 +3468,28 @@ var require_schemes = __commonJS((exports, module) => {
3466
3468
  });
3467
3469
 
3468
3470
  // node_modules/fast-uri/index.js
3469
- var require_fast_uri = __commonJS((exports, module) => {
3471
+ var require_fast_uri = __commonJS(function(exports, module) {
3470
3472
  var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
3471
3473
  var { SCHEMES, getSchemeHandler } = require_schemes();
3472
3474
  function normalize(uri, options) {
3473
3475
  if (typeof uri === "string") {
3474
- uri = serialize(parse5(uri, options), options);
3476
+ uri = serialize(parse(uri, options), options);
3475
3477
  } else if (typeof uri === "object") {
3476
- uri = parse5(serialize(uri, options), options);
3478
+ uri = parse(serialize(uri, options), options);
3477
3479
  }
3478
3480
  return uri;
3479
3481
  }
3480
3482
  function resolve(baseURI, relativeURI, options) {
3481
3483
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3482
- const resolved = resolveComponent(parse5(baseURI, schemelessOptions), parse5(relativeURI, schemelessOptions), schemelessOptions, true);
3484
+ const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true);
3483
3485
  schemelessOptions.skipEscape = true;
3484
3486
  return serialize(resolved, schemelessOptions);
3485
3487
  }
3486
3488
  function resolveComponent(base, relative, options, skipNormalization) {
3487
3489
  const target = {};
3488
3490
  if (!skipNormalization) {
3489
- base = parse5(serialize(base, options), options);
3490
- relative = parse5(serialize(relative, options), options);
3491
+ base = parse(serialize(base, options), options);
3492
+ relative = parse(serialize(relative, options), options);
3491
3493
  }
3492
3494
  options = options || {};
3493
3495
  if (!options.tolerant && relative.scheme) {
@@ -3539,13 +3541,13 @@ var require_fast_uri = __commonJS((exports, module) => {
3539
3541
  function equal(uriA, uriB, options) {
3540
3542
  if (typeof uriA === "string") {
3541
3543
  uriA = unescape(uriA);
3542
- uriA = serialize(normalizeComponentEncoding(parse5(uriA, options), true), { ...options, skipEscape: true });
3544
+ uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true });
3543
3545
  } else if (typeof uriA === "object") {
3544
3546
  uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
3545
3547
  }
3546
3548
  if (typeof uriB === "string") {
3547
3549
  uriB = unescape(uriB);
3548
- uriB = serialize(normalizeComponentEncoding(parse5(uriB, options), true), { ...options, skipEscape: true });
3550
+ uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true });
3549
3551
  } else if (typeof uriB === "object") {
3550
3552
  uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
3551
3553
  }
@@ -3615,7 +3617,7 @@ var require_fast_uri = __commonJS((exports, module) => {
3615
3617
  return uriTokens.join("");
3616
3618
  }
3617
3619
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
3618
- function parse5(uri, opts) {
3620
+ function parse(uri, opts) {
3619
3621
  const options = Object.assign({}, opts);
3620
3622
  const parsed = {
3621
3623
  scheme: undefined,
@@ -3709,7 +3711,7 @@ var require_fast_uri = __commonJS((exports, module) => {
3709
3711
  resolveComponent,
3710
3712
  equal,
3711
3713
  serialize,
3712
- parse: parse5
3714
+ parse
3713
3715
  };
3714
3716
  module.exports = fastUri;
3715
3717
  module.exports.default = fastUri;
@@ -3717,7 +3719,7 @@ var require_fast_uri = __commonJS((exports, module) => {
3717
3719
  });
3718
3720
 
3719
3721
  // node_modules/ajv/dist/runtime/uri.js
3720
- var require_uri = __commonJS((exports) => {
3722
+ var require_uri = __commonJS(function(exports) {
3721
3723
  Object.defineProperty(exports, "__esModule", { value: true });
3722
3724
  var uri = require_fast_uri();
3723
3725
  uri.code = 'require("ajv/dist/runtime/uri").default';
@@ -3725,7 +3727,7 @@ var require_uri = __commonJS((exports) => {
3725
3727
  });
3726
3728
 
3727
3729
  // node_modules/ajv/dist/core.js
3728
- var require_core = __commonJS((exports) => {
3730
+ var require_core = __commonJS(function(exports) {
3729
3731
  Object.defineProperty(exports, "__esModule", { value: true });
3730
3732
  exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = undefined;
3731
3733
  var validate_1 = require_validate();
@@ -4099,10 +4101,10 @@ var require_core = __commonJS((exports) => {
4099
4101
  this.formats[name] = format;
4100
4102
  return this;
4101
4103
  }
4102
- errorsText(errors3 = this.errors, { separator = ", ", dataVar = "data" } = {}) {
4103
- if (!errors3 || errors3.length === 0)
4104
+ errorsText(errors = this.errors, { separator = ", ", dataVar = "data" } = {}) {
4105
+ if (!errors || errors.length === 0)
4104
4106
  return "No errors";
4105
- return errors3.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text, msg) => text + separator + msg);
4107
+ return errors.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text, msg) => text + separator + msg);
4106
4108
  }
4107
4109
  $dataMetaSchema(metaSchema, keywordsJsonPointers) {
4108
4110
  const rules = this.RULES.all;
@@ -4124,15 +4126,15 @@ var require_core = __commonJS((exports) => {
4124
4126
  }
4125
4127
  return metaSchema;
4126
4128
  }
4127
- _removeAllSchemas(schemas3, regex) {
4128
- for (const keyRef in schemas3) {
4129
- const sch = schemas3[keyRef];
4129
+ _removeAllSchemas(schemas, regex) {
4130
+ for (const keyRef in schemas) {
4131
+ const sch = schemas[keyRef];
4130
4132
  if (!regex || regex.test(keyRef)) {
4131
4133
  if (typeof sch == "string") {
4132
- delete schemas3[keyRef];
4134
+ delete schemas[keyRef];
4133
4135
  } else if (sch && !sch.meta) {
4134
4136
  this._cache.delete(sch.schema);
4135
- delete schemas3[keyRef];
4137
+ delete schemas[keyRef];
4136
4138
  }
4137
4139
  }
4138
4140
  }
@@ -4318,7 +4320,7 @@ var require_core = __commonJS((exports) => {
4318
4320
  });
4319
4321
 
4320
4322
  // node_modules/ajv/dist/vocabularies/core/id.js
4321
- var require_id = __commonJS((exports) => {
4323
+ var require_id = __commonJS(function(exports) {
4322
4324
  Object.defineProperty(exports, "__esModule", { value: true });
4323
4325
  var def = {
4324
4326
  keyword: "id",
@@ -4330,7 +4332,7 @@ var require_id = __commonJS((exports) => {
4330
4332
  });
4331
4333
 
4332
4334
  // node_modules/ajv/dist/vocabularies/core/ref.js
4333
- var require_ref = __commonJS((exports) => {
4335
+ var require_ref = __commonJS(function(exports) {
4334
4336
  Object.defineProperty(exports, "__esModule", { value: true });
4335
4337
  exports.callRef = exports.getValidate = undefined;
4336
4338
  var ref_error_1 = require_ref_error();
@@ -4449,11 +4451,11 @@ var require_ref = __commonJS((exports) => {
4449
4451
  });
4450
4452
 
4451
4453
  // node_modules/ajv/dist/vocabularies/core/index.js
4452
- var require_core2 = __commonJS((exports) => {
4454
+ var require_core2 = __commonJS(function(exports) {
4453
4455
  Object.defineProperty(exports, "__esModule", { value: true });
4454
4456
  var id_1 = require_id();
4455
4457
  var ref_1 = require_ref();
4456
- var core2 = [
4458
+ var core = [
4457
4459
  "$schema",
4458
4460
  "$id",
4459
4461
  "$defs",
@@ -4463,11 +4465,11 @@ var require_core2 = __commonJS((exports) => {
4463
4465
  id_1.default,
4464
4466
  ref_1.default
4465
4467
  ];
4466
- exports.default = core2;
4468
+ exports.default = core;
4467
4469
  });
4468
4470
 
4469
4471
  // node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4470
- var require_limitNumber = __commonJS((exports) => {
4472
+ var require_limitNumber = __commonJS(function(exports) {
4471
4473
  Object.defineProperty(exports, "__esModule", { value: true });
4472
4474
  var codegen_1 = require_codegen();
4473
4475
  var ops = codegen_1.operators;
@@ -4477,7 +4479,7 @@ var require_limitNumber = __commonJS((exports) => {
4477
4479
  exclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
4478
4480
  exclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }
4479
4481
  };
4480
- var error2 = {
4482
+ var error = {
4481
4483
  message: ({ keyword, schemaCode }) => (0, codegen_1.str)`must be ${KWDs[keyword].okStr} ${schemaCode}`,
4482
4484
  params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
4483
4485
  };
@@ -4486,7 +4488,7 @@ var require_limitNumber = __commonJS((exports) => {
4486
4488
  type: "number",
4487
4489
  schemaType: "number",
4488
4490
  $data: true,
4489
- error: error2,
4491
+ error,
4490
4492
  code(cxt) {
4491
4493
  const { keyword, data, schemaCode } = cxt;
4492
4494
  cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
@@ -4496,10 +4498,10 @@ var require_limitNumber = __commonJS((exports) => {
4496
4498
  });
4497
4499
 
4498
4500
  // node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4499
- var require_multipleOf = __commonJS((exports) => {
4501
+ var require_multipleOf = __commonJS(function(exports) {
4500
4502
  Object.defineProperty(exports, "__esModule", { value: true });
4501
4503
  var codegen_1 = require_codegen();
4502
- var error2 = {
4504
+ var error = {
4503
4505
  message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
4504
4506
  params: ({ schemaCode }) => (0, codegen_1._)`{multipleOf: ${schemaCode}}`
4505
4507
  };
@@ -4508,7 +4510,7 @@ var require_multipleOf = __commonJS((exports) => {
4508
4510
  type: "number",
4509
4511
  schemaType: "number",
4510
4512
  $data: true,
4511
- error: error2,
4513
+ error,
4512
4514
  code(cxt) {
4513
4515
  const { gen, data, schemaCode, it } = cxt;
4514
4516
  const prec = it.opts.multipleOfPrecision;
@@ -4521,7 +4523,7 @@ var require_multipleOf = __commonJS((exports) => {
4521
4523
  });
4522
4524
 
4523
4525
  // node_modules/ajv/dist/runtime/ucs2length.js
4524
- var require_ucs2length = __commonJS((exports) => {
4526
+ var require_ucs2length = __commonJS(function(exports) {
4525
4527
  Object.defineProperty(exports, "__esModule", { value: true });
4526
4528
  function ucs2length(str) {
4527
4529
  const len = str.length;
@@ -4544,12 +4546,12 @@ var require_ucs2length = __commonJS((exports) => {
4544
4546
  });
4545
4547
 
4546
4548
  // node_modules/ajv/dist/vocabularies/validation/limitLength.js
4547
- var require_limitLength = __commonJS((exports) => {
4549
+ var require_limitLength = __commonJS(function(exports) {
4548
4550
  Object.defineProperty(exports, "__esModule", { value: true });
4549
4551
  var codegen_1 = require_codegen();
4550
4552
  var util_1 = require_util();
4551
4553
  var ucs2length_1 = require_ucs2length();
4552
- var error2 = {
4554
+ var error = {
4553
4555
  message({ keyword, schemaCode }) {
4554
4556
  const comp = keyword === "maxLength" ? "more" : "fewer";
4555
4557
  return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} characters`;
@@ -4561,7 +4563,7 @@ var require_limitLength = __commonJS((exports) => {
4561
4563
  type: "string",
4562
4564
  schemaType: "number",
4563
4565
  $data: true,
4564
- error: error2,
4566
+ error,
4565
4567
  code(cxt) {
4566
4568
  const { keyword, data, schemaCode, it } = cxt;
4567
4569
  const op = keyword === "maxLength" ? codegen_1.operators.GT : codegen_1.operators.LT;
@@ -4573,11 +4575,11 @@ var require_limitLength = __commonJS((exports) => {
4573
4575
  });
4574
4576
 
4575
4577
  // node_modules/ajv/dist/vocabularies/validation/pattern.js
4576
- var require_pattern = __commonJS((exports) => {
4578
+ var require_pattern = __commonJS(function(exports) {
4577
4579
  Object.defineProperty(exports, "__esModule", { value: true });
4578
4580
  var code_1 = require_code2();
4579
4581
  var codegen_1 = require_codegen();
4580
- var error2 = {
4582
+ var error = {
4581
4583
  message: ({ schemaCode }) => (0, codegen_1.str)`must match pattern "${schemaCode}"`,
4582
4584
  params: ({ schemaCode }) => (0, codegen_1._)`{pattern: ${schemaCode}}`
4583
4585
  };
@@ -4586,7 +4588,7 @@ var require_pattern = __commonJS((exports) => {
4586
4588
  type: "string",
4587
4589
  schemaType: "string",
4588
4590
  $data: true,
4589
- error: error2,
4591
+ error,
4590
4592
  code(cxt) {
4591
4593
  const { data, $data, schema, schemaCode, it } = cxt;
4592
4594
  const u = it.opts.unicodeRegExp ? "u" : "";
@@ -4598,10 +4600,10 @@ var require_pattern = __commonJS((exports) => {
4598
4600
  });
4599
4601
 
4600
4602
  // node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4601
- var require_limitProperties = __commonJS((exports) => {
4603
+ var require_limitProperties = __commonJS(function(exports) {
4602
4604
  Object.defineProperty(exports, "__esModule", { value: true });
4603
4605
  var codegen_1 = require_codegen();
4604
- var error2 = {
4606
+ var error = {
4605
4607
  message({ keyword, schemaCode }) {
4606
4608
  const comp = keyword === "maxProperties" ? "more" : "fewer";
4607
4609
  return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} properties`;
@@ -4613,7 +4615,7 @@ var require_limitProperties = __commonJS((exports) => {
4613
4615
  type: "object",
4614
4616
  schemaType: "number",
4615
4617
  $data: true,
4616
- error: error2,
4618
+ error,
4617
4619
  code(cxt) {
4618
4620
  const { keyword, data, schemaCode } = cxt;
4619
4621
  const op = keyword === "maxProperties" ? codegen_1.operators.GT : codegen_1.operators.LT;
@@ -4624,12 +4626,12 @@ var require_limitProperties = __commonJS((exports) => {
4624
4626
  });
4625
4627
 
4626
4628
  // node_modules/ajv/dist/vocabularies/validation/required.js
4627
- var require_required = __commonJS((exports) => {
4629
+ var require_required = __commonJS(function(exports) {
4628
4630
  Object.defineProperty(exports, "__esModule", { value: true });
4629
4631
  var code_1 = require_code2();
4630
4632
  var codegen_1 = require_codegen();
4631
4633
  var util_1 = require_util();
4632
- var error2 = {
4634
+ var error = {
4633
4635
  message: ({ params: { missingProperty } }) => (0, codegen_1.str)`must have required property '${missingProperty}'`,
4634
4636
  params: ({ params: { missingProperty } }) => (0, codegen_1._)`{missingProperty: ${missingProperty}}`
4635
4637
  };
@@ -4638,7 +4640,7 @@ var require_required = __commonJS((exports) => {
4638
4640
  type: "object",
4639
4641
  schemaType: "array",
4640
4642
  $data: true,
4641
- error: error2,
4643
+ error,
4642
4644
  code(cxt) {
4643
4645
  const { gen, schema, schemaCode, data, $data, it } = cxt;
4644
4646
  const { opts } = it;
@@ -4703,10 +4705,10 @@ var require_required = __commonJS((exports) => {
4703
4705
  });
4704
4706
 
4705
4707
  // node_modules/ajv/dist/vocabularies/validation/limitItems.js
4706
- var require_limitItems = __commonJS((exports) => {
4708
+ var require_limitItems = __commonJS(function(exports) {
4707
4709
  Object.defineProperty(exports, "__esModule", { value: true });
4708
4710
  var codegen_1 = require_codegen();
4709
- var error2 = {
4711
+ var error = {
4710
4712
  message({ keyword, schemaCode }) {
4711
4713
  const comp = keyword === "maxItems" ? "more" : "fewer";
4712
4714
  return (0, codegen_1.str)`must NOT have ${comp} than ${schemaCode} items`;
@@ -4718,7 +4720,7 @@ var require_limitItems = __commonJS((exports) => {
4718
4720
  type: "array",
4719
4721
  schemaType: "number",
4720
4722
  $data: true,
4721
- error: error2,
4723
+ error,
4722
4724
  code(cxt) {
4723
4725
  const { keyword, data, schemaCode } = cxt;
4724
4726
  const op = keyword === "maxItems" ? codegen_1.operators.GT : codegen_1.operators.LT;
@@ -4729,7 +4731,7 @@ var require_limitItems = __commonJS((exports) => {
4729
4731
  });
4730
4732
 
4731
4733
  // node_modules/ajv/dist/runtime/equal.js
4732
- var require_equal = __commonJS((exports) => {
4734
+ var require_equal = __commonJS(function(exports) {
4733
4735
  Object.defineProperty(exports, "__esModule", { value: true });
4734
4736
  var equal = require_fast_deep_equal();
4735
4737
  equal.code = 'require("ajv/dist/runtime/equal").default';
@@ -4737,13 +4739,13 @@ var require_equal = __commonJS((exports) => {
4737
4739
  });
4738
4740
 
4739
4741
  // node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4740
- var require_uniqueItems = __commonJS((exports) => {
4742
+ var require_uniqueItems = __commonJS(function(exports) {
4741
4743
  Object.defineProperty(exports, "__esModule", { value: true });
4742
4744
  var dataType_1 = require_dataType();
4743
4745
  var codegen_1 = require_codegen();
4744
4746
  var util_1 = require_util();
4745
4747
  var equal_1 = require_equal();
4746
- var error2 = {
4748
+ var error = {
4747
4749
  message: ({ params: { i, j } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i} are identical)`,
4748
4750
  params: ({ params: { i, j } }) => (0, codegen_1._)`{i: ${i}, j: ${j}}`
4749
4751
  };
@@ -4752,7 +4754,7 @@ var require_uniqueItems = __commonJS((exports) => {
4752
4754
  type: "array",
4753
4755
  schemaType: "boolean",
4754
4756
  $data: true,
4755
- error: error2,
4757
+ error,
4756
4758
  code(cxt) {
4757
4759
  const { gen, data, $data, schema, parentSchema, schemaCode, it } = cxt;
4758
4760
  if (!$data && !schema)
@@ -4801,19 +4803,19 @@ var require_uniqueItems = __commonJS((exports) => {
4801
4803
  });
4802
4804
 
4803
4805
  // node_modules/ajv/dist/vocabularies/validation/const.js
4804
- var require_const = __commonJS((exports) => {
4806
+ var require_const = __commonJS(function(exports) {
4805
4807
  Object.defineProperty(exports, "__esModule", { value: true });
4806
4808
  var codegen_1 = require_codegen();
4807
4809
  var util_1 = require_util();
4808
4810
  var equal_1 = require_equal();
4809
- var error2 = {
4811
+ var error = {
4810
4812
  message: "must be equal to constant",
4811
4813
  params: ({ schemaCode }) => (0, codegen_1._)`{allowedValue: ${schemaCode}}`
4812
4814
  };
4813
4815
  var def = {
4814
4816
  keyword: "const",
4815
4817
  $data: true,
4816
- error: error2,
4818
+ error,
4817
4819
  code(cxt) {
4818
4820
  const { gen, data, $data, schemaCode, schema } = cxt;
4819
4821
  if ($data || schema && typeof schema == "object") {
@@ -4827,12 +4829,12 @@ var require_const = __commonJS((exports) => {
4827
4829
  });
4828
4830
 
4829
4831
  // node_modules/ajv/dist/vocabularies/validation/enum.js
4830
- var require_enum = __commonJS((exports) => {
4832
+ var require_enum = __commonJS(function(exports) {
4831
4833
  Object.defineProperty(exports, "__esModule", { value: true });
4832
4834
  var codegen_1 = require_codegen();
4833
4835
  var util_1 = require_util();
4834
4836
  var equal_1 = require_equal();
4835
- var error2 = {
4837
+ var error = {
4836
4838
  message: "must be equal to one of the allowed values",
4837
4839
  params: ({ schemaCode }) => (0, codegen_1._)`{allowedValues: ${schemaCode}}`
4838
4840
  };
@@ -4840,7 +4842,7 @@ var require_enum = __commonJS((exports) => {
4840
4842
  keyword: "enum",
4841
4843
  schemaType: "array",
4842
4844
  $data: true,
4843
- error: error2,
4845
+ error,
4844
4846
  code(cxt) {
4845
4847
  const { gen, data, $data, schema, schemaCode, it } = cxt;
4846
4848
  if (!$data && schema.length === 0)
@@ -4873,7 +4875,7 @@ var require_enum = __commonJS((exports) => {
4873
4875
  });
4874
4876
 
4875
4877
  // node_modules/ajv/dist/vocabularies/validation/index.js
4876
- var require_validation = __commonJS((exports) => {
4878
+ var require_validation = __commonJS(function(exports) {
4877
4879
  Object.defineProperty(exports, "__esModule", { value: true });
4878
4880
  var limitNumber_1 = require_limitNumber();
4879
4881
  var multipleOf_1 = require_multipleOf();
@@ -4903,12 +4905,12 @@ var require_validation = __commonJS((exports) => {
4903
4905
  });
4904
4906
 
4905
4907
  // node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
4906
- var require_additionalItems = __commonJS((exports) => {
4908
+ var require_additionalItems = __commonJS(function(exports) {
4907
4909
  Object.defineProperty(exports, "__esModule", { value: true });
4908
4910
  exports.validateAdditionalItems = undefined;
4909
4911
  var codegen_1 = require_codegen();
4910
4912
  var util_1 = require_util();
4911
- var error2 = {
4913
+ var error = {
4912
4914
  message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
4913
4915
  params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`
4914
4916
  };
@@ -4917,7 +4919,7 @@ var require_additionalItems = __commonJS((exports) => {
4917
4919
  type: "array",
4918
4920
  schemaType: ["boolean", "object"],
4919
4921
  before: "uniqueItems",
4920
- error: error2,
4922
+ error,
4921
4923
  code(cxt) {
4922
4924
  const { parentSchema, it } = cxt;
4923
4925
  const { items } = parentSchema;
@@ -4953,7 +4955,7 @@ var require_additionalItems = __commonJS((exports) => {
4953
4955
  });
4954
4956
 
4955
4957
  // node_modules/ajv/dist/vocabularies/applicator/items.js
4956
- var require_items = __commonJS((exports) => {
4958
+ var require_items = __commonJS(function(exports) {
4957
4959
  Object.defineProperty(exports, "__esModule", { value: true });
4958
4960
  exports.validateTuple = undefined;
4959
4961
  var codegen_1 = require_codegen();
@@ -5007,7 +5009,7 @@ var require_items = __commonJS((exports) => {
5007
5009
  });
5008
5010
 
5009
5011
  // node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5010
- var require_prefixItems = __commonJS((exports) => {
5012
+ var require_prefixItems = __commonJS(function(exports) {
5011
5013
  Object.defineProperty(exports, "__esModule", { value: true });
5012
5014
  var items_1 = require_items();
5013
5015
  var def = {
@@ -5021,13 +5023,13 @@ var require_prefixItems = __commonJS((exports) => {
5021
5023
  });
5022
5024
 
5023
5025
  // node_modules/ajv/dist/vocabularies/applicator/items2020.js
5024
- var require_items2020 = __commonJS((exports) => {
5026
+ var require_items2020 = __commonJS(function(exports) {
5025
5027
  Object.defineProperty(exports, "__esModule", { value: true });
5026
5028
  var codegen_1 = require_codegen();
5027
5029
  var util_1 = require_util();
5028
5030
  var code_1 = require_code2();
5029
5031
  var additionalItems_1 = require_additionalItems();
5030
- var error2 = {
5032
+ var error = {
5031
5033
  message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
5032
5034
  params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`
5033
5035
  };
@@ -5036,7 +5038,7 @@ var require_items2020 = __commonJS((exports) => {
5036
5038
  type: "array",
5037
5039
  schemaType: ["object", "boolean"],
5038
5040
  before: "uniqueItems",
5039
- error: error2,
5041
+ error,
5040
5042
  code(cxt) {
5041
5043
  const { schema, parentSchema, it } = cxt;
5042
5044
  const { prefixItems } = parentSchema;
@@ -5053,11 +5055,11 @@ var require_items2020 = __commonJS((exports) => {
5053
5055
  });
5054
5056
 
5055
5057
  // node_modules/ajv/dist/vocabularies/applicator/contains.js
5056
- var require_contains = __commonJS((exports) => {
5058
+ var require_contains = __commonJS(function(exports) {
5057
5059
  Object.defineProperty(exports, "__esModule", { value: true });
5058
5060
  var codegen_1 = require_codegen();
5059
5061
  var util_1 = require_util();
5060
- var error2 = {
5062
+ var error = {
5061
5063
  message: ({ params: { min, max } }) => max === undefined ? (0, codegen_1.str)`must contain at least ${min} valid item(s)` : (0, codegen_1.str)`must contain at least ${min} and no more than ${max} valid item(s)`,
5062
5064
  params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._)`{minContains: ${min}}` : (0, codegen_1._)`{minContains: ${min}, maxContains: ${max}}`
5063
5065
  };
@@ -5067,7 +5069,7 @@ var require_contains = __commonJS((exports) => {
5067
5069
  schemaType: ["object", "boolean"],
5068
5070
  before: "uniqueItems",
5069
5071
  trackErrors: true,
5070
- error: error2,
5072
+ error,
5071
5073
  code(cxt) {
5072
5074
  const { gen, schema, parentSchema, data, it } = cxt;
5073
5075
  let min;
@@ -5144,7 +5146,7 @@ var require_contains = __commonJS((exports) => {
5144
5146
  });
5145
5147
 
5146
5148
  // node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5147
- var require_dependencies = __commonJS((exports) => {
5149
+ var require_dependencies = __commonJS(function(exports) {
5148
5150
  Object.defineProperty(exports, "__esModule", { value: true });
5149
5151
  exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = undefined;
5150
5152
  var codegen_1 = require_codegen();
@@ -5229,11 +5231,11 @@ var require_dependencies = __commonJS((exports) => {
5229
5231
  });
5230
5232
 
5231
5233
  // node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5232
- var require_propertyNames = __commonJS((exports) => {
5234
+ var require_propertyNames = __commonJS(function(exports) {
5233
5235
  Object.defineProperty(exports, "__esModule", { value: true });
5234
5236
  var codegen_1 = require_codegen();
5235
5237
  var util_1 = require_util();
5236
- var error2 = {
5238
+ var error = {
5237
5239
  message: "property name must be valid",
5238
5240
  params: ({ params }) => (0, codegen_1._)`{propertyName: ${params.propertyName}}`
5239
5241
  };
@@ -5241,7 +5243,7 @@ var require_propertyNames = __commonJS((exports) => {
5241
5243
  keyword: "propertyNames",
5242
5244
  type: "object",
5243
5245
  schemaType: ["object", "boolean"],
5244
- error: error2,
5246
+ error,
5245
5247
  code(cxt) {
5246
5248
  const { gen, schema, data, it } = cxt;
5247
5249
  if ((0, util_1.alwaysValidSchema)(it, schema))
@@ -5269,13 +5271,13 @@ var require_propertyNames = __commonJS((exports) => {
5269
5271
  });
5270
5272
 
5271
5273
  // node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5272
- var require_additionalProperties = __commonJS((exports) => {
5274
+ var require_additionalProperties = __commonJS(function(exports) {
5273
5275
  Object.defineProperty(exports, "__esModule", { value: true });
5274
5276
  var code_1 = require_code2();
5275
5277
  var codegen_1 = require_codegen();
5276
5278
  var names_1 = require_names();
5277
5279
  var util_1 = require_util();
5278
- var error2 = {
5280
+ var error = {
5279
5281
  message: "must NOT have additional properties",
5280
5282
  params: ({ params }) => (0, codegen_1._)`{additionalProperty: ${params.additionalProperty}}`
5281
5283
  };
@@ -5285,7 +5287,7 @@ var require_additionalProperties = __commonJS((exports) => {
5285
5287
  schemaType: ["boolean", "object"],
5286
5288
  allowUndefined: true,
5287
5289
  trackErrors: true,
5288
- error: error2,
5290
+ error,
5289
5291
  code(cxt) {
5290
5292
  const { gen, schema, parentSchema, data, errsCount, it } = cxt;
5291
5293
  if (!errsCount)
@@ -5351,13 +5353,13 @@ var require_additionalProperties = __commonJS((exports) => {
5351
5353
  }
5352
5354
  }
5353
5355
  }
5354
- function applyAdditionalSchema(key, valid, errors3) {
5356
+ function applyAdditionalSchema(key, valid, errors) {
5355
5357
  const subschema = {
5356
5358
  keyword: "additionalProperties",
5357
5359
  dataProp: key,
5358
5360
  dataPropType: util_1.Type.Str
5359
5361
  };
5360
- if (errors3 === false) {
5362
+ if (errors === false) {
5361
5363
  Object.assign(subschema, {
5362
5364
  compositeRule: true,
5363
5365
  createErrors: false,
@@ -5372,7 +5374,7 @@ var require_additionalProperties = __commonJS((exports) => {
5372
5374
  });
5373
5375
 
5374
5376
  // node_modules/ajv/dist/vocabularies/applicator/properties.js
5375
- var require_properties = __commonJS((exports) => {
5377
+ var require_properties = __commonJS(function(exports) {
5376
5378
  Object.defineProperty(exports, "__esModule", { value: true });
5377
5379
  var validate_1 = require_validate();
5378
5380
  var code_1 = require_code2();
@@ -5427,7 +5429,7 @@ var require_properties = __commonJS((exports) => {
5427
5429
  });
5428
5430
 
5429
5431
  // node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5430
- var require_patternProperties = __commonJS((exports) => {
5432
+ var require_patternProperties = __commonJS(function(exports) {
5431
5433
  Object.defineProperty(exports, "__esModule", { value: true });
5432
5434
  var code_1 = require_code2();
5433
5435
  var codegen_1 = require_codegen();
@@ -5498,7 +5500,7 @@ var require_patternProperties = __commonJS((exports) => {
5498
5500
  });
5499
5501
 
5500
5502
  // node_modules/ajv/dist/vocabularies/applicator/not.js
5501
- var require_not = __commonJS((exports) => {
5503
+ var require_not = __commonJS(function(exports) {
5502
5504
  Object.defineProperty(exports, "__esModule", { value: true });
5503
5505
  var util_1 = require_util();
5504
5506
  var def = {
@@ -5526,7 +5528,7 @@ var require_not = __commonJS((exports) => {
5526
5528
  });
5527
5529
 
5528
5530
  // node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5529
- var require_anyOf = __commonJS((exports) => {
5531
+ var require_anyOf = __commonJS(function(exports) {
5530
5532
  Object.defineProperty(exports, "__esModule", { value: true });
5531
5533
  var code_1 = require_code2();
5532
5534
  var def = {
@@ -5540,11 +5542,11 @@ var require_anyOf = __commonJS((exports) => {
5540
5542
  });
5541
5543
 
5542
5544
  // node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5543
- var require_oneOf = __commonJS((exports) => {
5545
+ var require_oneOf = __commonJS(function(exports) {
5544
5546
  Object.defineProperty(exports, "__esModule", { value: true });
5545
5547
  var codegen_1 = require_codegen();
5546
5548
  var util_1 = require_util();
5547
- var error2 = {
5549
+ var error = {
5548
5550
  message: "must match exactly one schema in oneOf",
5549
5551
  params: ({ params }) => (0, codegen_1._)`{passingSchemas: ${params.passing}}`
5550
5552
  };
@@ -5552,7 +5554,7 @@ var require_oneOf = __commonJS((exports) => {
5552
5554
  keyword: "oneOf",
5553
5555
  schemaType: "array",
5554
5556
  trackErrors: true,
5555
- error: error2,
5557
+ error,
5556
5558
  code(cxt) {
5557
5559
  const { gen, schema, parentSchema, it } = cxt;
5558
5560
  if (!Array.isArray(schema))
@@ -5595,7 +5597,7 @@ var require_oneOf = __commonJS((exports) => {
5595
5597
  });
5596
5598
 
5597
5599
  // node_modules/ajv/dist/vocabularies/applicator/allOf.js
5598
- var require_allOf = __commonJS((exports) => {
5600
+ var require_allOf = __commonJS(function(exports) {
5599
5601
  Object.defineProperty(exports, "__esModule", { value: true });
5600
5602
  var util_1 = require_util();
5601
5603
  var def = {
@@ -5619,11 +5621,11 @@ var require_allOf = __commonJS((exports) => {
5619
5621
  });
5620
5622
 
5621
5623
  // node_modules/ajv/dist/vocabularies/applicator/if.js
5622
- var require_if = __commonJS((exports) => {
5624
+ var require_if = __commonJS(function(exports) {
5623
5625
  Object.defineProperty(exports, "__esModule", { value: true });
5624
5626
  var codegen_1 = require_codegen();
5625
5627
  var util_1 = require_util();
5626
- var error2 = {
5628
+ var error = {
5627
5629
  message: ({ params }) => (0, codegen_1.str)`must match "${params.ifClause}" schema`,
5628
5630
  params: ({ params }) => (0, codegen_1._)`{failingKeyword: ${params.ifClause}}`
5629
5631
  };
@@ -5631,7 +5633,7 @@ var require_if = __commonJS((exports) => {
5631
5633
  keyword: "if",
5632
5634
  schemaType: ["object", "boolean"],
5633
5635
  trackErrors: true,
5634
- error: error2,
5636
+ error,
5635
5637
  code(cxt) {
5636
5638
  const { gen, parentSchema, it } = cxt;
5637
5639
  if (parentSchema.then === undefined && parentSchema.else === undefined) {
@@ -5685,7 +5687,7 @@ var require_if = __commonJS((exports) => {
5685
5687
  });
5686
5688
 
5687
5689
  // node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5688
- var require_thenElse = __commonJS((exports) => {
5690
+ var require_thenElse = __commonJS(function(exports) {
5689
5691
  Object.defineProperty(exports, "__esModule", { value: true });
5690
5692
  var util_1 = require_util();
5691
5693
  var def = {
@@ -5700,7 +5702,7 @@ var require_thenElse = __commonJS((exports) => {
5700
5702
  });
5701
5703
 
5702
5704
  // node_modules/ajv/dist/vocabularies/applicator/index.js
5703
- var require_applicator = __commonJS((exports) => {
5705
+ var require_applicator = __commonJS(function(exports) {
5704
5706
  Object.defineProperty(exports, "__esModule", { value: true });
5705
5707
  var additionalItems_1 = require_additionalItems();
5706
5708
  var prefixItems_1 = require_prefixItems();
@@ -5743,10 +5745,10 @@ var require_applicator = __commonJS((exports) => {
5743
5745
  });
5744
5746
 
5745
5747
  // node_modules/ajv/dist/vocabularies/format/format.js
5746
- var require_format = __commonJS((exports) => {
5748
+ var require_format = __commonJS(function(exports) {
5747
5749
  Object.defineProperty(exports, "__esModule", { value: true });
5748
5750
  var codegen_1 = require_codegen();
5749
- var error2 = {
5751
+ var error = {
5750
5752
  message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
5751
5753
  params: ({ schemaCode }) => (0, codegen_1._)`{format: ${schemaCode}}`
5752
5754
  };
@@ -5755,7 +5757,7 @@ var require_format = __commonJS((exports) => {
5755
5757
  type: ["number", "string"],
5756
5758
  schemaType: "string",
5757
5759
  $data: true,
5758
- error: error2,
5760
+ error,
5759
5761
  code(cxt, ruleType) {
5760
5762
  const { gen, data, $data, schema, schemaCode, it } = cxt;
5761
5763
  const { opts, errSchemaPath, schemaEnv, self } = it;
@@ -5830,7 +5832,7 @@ var require_format = __commonJS((exports) => {
5830
5832
  });
5831
5833
 
5832
5834
  // node_modules/ajv/dist/vocabularies/format/index.js
5833
- var require_format2 = __commonJS((exports) => {
5835
+ var require_format2 = __commonJS(function(exports) {
5834
5836
  Object.defineProperty(exports, "__esModule", { value: true });
5835
5837
  var format_1 = require_format();
5836
5838
  var format = [format_1.default];
@@ -5838,7 +5840,7 @@ var require_format2 = __commonJS((exports) => {
5838
5840
  });
5839
5841
 
5840
5842
  // node_modules/ajv/dist/vocabularies/metadata.js
5841
- var require_metadata = __commonJS((exports) => {
5843
+ var require_metadata = __commonJS(function(exports) {
5842
5844
  Object.defineProperty(exports, "__esModule", { value: true });
5843
5845
  exports.contentVocabulary = exports.metadataVocabulary = undefined;
5844
5846
  exports.metadataVocabulary = [
@@ -5858,7 +5860,7 @@ var require_metadata = __commonJS((exports) => {
5858
5860
  });
5859
5861
 
5860
5862
  // node_modules/ajv/dist/vocabularies/draft7.js
5861
- var require_draft7 = __commonJS((exports) => {
5863
+ var require_draft7 = __commonJS(function(exports) {
5862
5864
  Object.defineProperty(exports, "__esModule", { value: true });
5863
5865
  var core_1 = require_core2();
5864
5866
  var validation_1 = require_validation();
@@ -5877,25 +5879,25 @@ var require_draft7 = __commonJS((exports) => {
5877
5879
  });
5878
5880
 
5879
5881
  // node_modules/ajv/dist/vocabularies/discriminator/types.js
5880
- var require_types = __commonJS((exports) => {
5882
+ var require_types = __commonJS(function(exports) {
5881
5883
  Object.defineProperty(exports, "__esModule", { value: true });
5882
5884
  exports.DiscrError = undefined;
5883
5885
  var DiscrError;
5884
- (function(DiscrError2) {
5885
- DiscrError2["Tag"] = "tag";
5886
- DiscrError2["Mapping"] = "mapping";
5886
+ (function(DiscrError) {
5887
+ DiscrError["Tag"] = "tag";
5888
+ DiscrError["Mapping"] = "mapping";
5887
5889
  })(DiscrError || (exports.DiscrError = DiscrError = {}));
5888
5890
  });
5889
5891
 
5890
5892
  // node_modules/ajv/dist/vocabularies/discriminator/index.js
5891
- var require_discriminator = __commonJS((exports) => {
5893
+ var require_discriminator = __commonJS(function(exports) {
5892
5894
  Object.defineProperty(exports, "__esModule", { value: true });
5893
5895
  var codegen_1 = require_codegen();
5894
5896
  var types_1 = require_types();
5895
5897
  var compile_1 = require_compile();
5896
5898
  var ref_error_1 = require_ref_error();
5897
5899
  var util_1 = require_util();
5898
- var error2 = {
5900
+ var error = {
5899
5901
  message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
5900
5902
  params: ({ params: { discrError, tag, tagName } }) => (0, codegen_1._)`{error: ${discrError}, tag: ${tagName}, tagValue: ${tag}}`
5901
5903
  };
@@ -5903,7 +5905,7 @@ var require_discriminator = __commonJS((exports) => {
5903
5905
  keyword: "discriminator",
5904
5906
  type: "object",
5905
5907
  schemaType: "object",
5906
- error: error2,
5908
+ error,
5907
5909
  code(cxt) {
5908
5910
  const { gen, data, schema, parentSchema, it } = cxt;
5909
5911
  const { oneOf } = parentSchema;
@@ -5963,8 +5965,8 @@ var require_discriminator = __commonJS((exports) => {
5963
5965
  if (!tagRequired)
5964
5966
  throw new Error(`discriminator: "${tagName}" must be required`);
5965
5967
  return oneOfMapping;
5966
- function hasRequired({ required: required2 }) {
5967
- return Array.isArray(required2) && required2.includes(tagName);
5968
+ function hasRequired({ required }) {
5969
+ return Array.isArray(required) && required.includes(tagName);
5968
5970
  }
5969
5971
  function addMappings(sch, i) {
5970
5972
  if (sch.const) {
@@ -5990,7 +5992,7 @@ var require_discriminator = __commonJS((exports) => {
5990
5992
  });
5991
5993
 
5992
5994
  // node_modules/ajv/dist/refs/json-schema-draft-07.json
5993
- var require_json_schema_draft_07 = __commonJS((exports, module) => {
5995
+ var require_json_schema_draft_07 = __commonJS(function(exports, module) {
5994
5996
  module.exports = {
5995
5997
  $schema: "http://json-schema.org/draft-07/schema#",
5996
5998
  $id: "http://json-schema.org/draft-07/schema#",
@@ -6145,7 +6147,7 @@ var require_json_schema_draft_07 = __commonJS((exports, module) => {
6145
6147
  });
6146
6148
 
6147
6149
  // node_modules/ajv/dist/ajv.js
6148
- var require_ajv = __commonJS((exports, module) => {
6150
+ var require_ajv = __commonJS(function(exports, module) {
6149
6151
  Object.defineProperty(exports, "__esModule", { value: true });
6150
6152
  exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = undefined;
6151
6153
  var core_1 = require_core();
@@ -6213,14 +6215,14 @@ var require_ajv = __commonJS((exports, module) => {
6213
6215
  });
6214
6216
 
6215
6217
  // node_modules/ajv-formats/dist/formats.js
6216
- var require_formats = __commonJS((exports) => {
6218
+ var require_formats = __commonJS(function(exports) {
6217
6219
  Object.defineProperty(exports, "__esModule", { value: true });
6218
6220
  exports.formatNames = exports.fastFormats = exports.fullFormats = undefined;
6219
6221
  function fmtDef(validate, compare) {
6220
6222
  return { validate, compare };
6221
6223
  }
6222
6224
  exports.fullFormats = {
6223
- date: fmtDef(date4, compareDate),
6225
+ date: fmtDef(date, compareDate),
6224
6226
  time: fmtDef(getTime(true), compareTime),
6225
6227
  "date-time": fmtDef(getDateTime(true), compareDateTime),
6226
6228
  "iso-time": fmtDef(getTime(), compareIsoTime),
@@ -6264,7 +6266,7 @@ var require_formats = __commonJS((exports) => {
6264
6266
  }
6265
6267
  var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
6266
6268
  var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
6267
- function date4(str) {
6269
+ function date(str) {
6268
6270
  const matches = DATE.exec(str);
6269
6271
  if (!matches)
6270
6272
  return false;
@@ -6284,7 +6286,7 @@ var require_formats = __commonJS((exports) => {
6284
6286
  }
6285
6287
  var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
6286
6288
  function getTime(strictTimeZone) {
6287
- return function time3(str) {
6289
+ return function time(str) {
6288
6290
  const matches = TIME.exec(str);
6289
6291
  if (!matches)
6290
6292
  return false;
@@ -6330,10 +6332,10 @@ var require_formats = __commonJS((exports) => {
6330
6332
  }
6331
6333
  var DATE_TIME_SEPARATOR = /t|\s/i;
6332
6334
  function getDateTime(strictTimeZone) {
6333
- const time3 = getTime(strictTimeZone);
6335
+ const time = getTime(strictTimeZone);
6334
6336
  return function date_time(str) {
6335
6337
  const dateTime = str.split(DATE_TIME_SEPARATOR);
6336
- return dateTime.length === 2 && date4(dateTime[0]) && time3(dateTime[1]);
6338
+ return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1]);
6337
6339
  };
6338
6340
  }
6339
6341
  function compareDateTime(dt1, dt2) {
@@ -6390,7 +6392,7 @@ var require_formats = __commonJS((exports) => {
6390
6392
  });
6391
6393
 
6392
6394
  // node_modules/ajv-formats/dist/limit.js
6393
- var require_limit = __commonJS((exports) => {
6395
+ var require_limit = __commonJS(function(exports) {
6394
6396
  Object.defineProperty(exports, "__esModule", { value: true });
6395
6397
  exports.formatLimitDefinition = undefined;
6396
6398
  var ajv_1 = require_ajv();
@@ -6402,7 +6404,7 @@ var require_limit = __commonJS((exports) => {
6402
6404
  formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
6403
6405
  formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }
6404
6406
  };
6405
- var error2 = {
6407
+ var error = {
6406
6408
  message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
6407
6409
  params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
6408
6410
  };
@@ -6411,7 +6413,7 @@ var require_limit = __commonJS((exports) => {
6411
6413
  type: "string",
6412
6414
  schemaType: "string",
6413
6415
  $data: true,
6414
- error: error2,
6416
+ error,
6415
6417
  code(cxt) {
6416
6418
  const { gen, data, schemaCode, keyword, it } = cxt;
6417
6419
  const { opts, self } = it;
@@ -6459,7 +6461,7 @@ var require_limit = __commonJS((exports) => {
6459
6461
  });
6460
6462
 
6461
6463
  // node_modules/ajv-formats/dist/index.js
6462
- var require_dist2 = __commonJS((exports, module) => {
6464
+ var require_dist2 = __commonJS(function(exports, module) {
6463
6465
  Object.defineProperty(exports, "__esModule", { value: true });
6464
6466
  var formats_1 = require_formats();
6465
6467
  var limit_1 = require_limit();
@@ -6558,69 +6560,6 @@ function config(newConfig) {
6558
6560
  return globalConfig;
6559
6561
  }
6560
6562
  // node_modules/zod/v4/core/util.js
6561
- var exports_util = {};
6562
- __export(exports_util, {
6563
- unwrapMessage: () => unwrapMessage,
6564
- stringifyPrimitive: () => stringifyPrimitive,
6565
- required: () => required,
6566
- randomString: () => randomString,
6567
- propertyKeyTypes: () => propertyKeyTypes,
6568
- promiseAllObject: () => promiseAllObject,
6569
- primitiveTypes: () => primitiveTypes,
6570
- prefixIssues: () => prefixIssues,
6571
- pick: () => pick,
6572
- partial: () => partial,
6573
- optionalKeys: () => optionalKeys,
6574
- omit: () => omit,
6575
- numKeys: () => numKeys,
6576
- nullish: () => nullish,
6577
- normalizeParams: () => normalizeParams,
6578
- merge: () => merge,
6579
- jsonStringifyReplacer: () => jsonStringifyReplacer,
6580
- joinValues: () => joinValues,
6581
- issue: () => issue,
6582
- isPlainObject: () => isPlainObject,
6583
- isObject: () => isObject,
6584
- getSizableOrigin: () => getSizableOrigin,
6585
- getParsedType: () => getParsedType,
6586
- getLengthableOrigin: () => getLengthableOrigin,
6587
- getEnumValues: () => getEnumValues,
6588
- getElementAtPath: () => getElementAtPath,
6589
- floatSafeRemainder: () => floatSafeRemainder,
6590
- finalizeIssue: () => finalizeIssue,
6591
- extend: () => extend,
6592
- escapeRegex: () => escapeRegex,
6593
- esc: () => esc,
6594
- defineLazy: () => defineLazy,
6595
- createTransparentProxy: () => createTransparentProxy,
6596
- clone: () => clone,
6597
- cleanRegex: () => cleanRegex,
6598
- cleanEnum: () => cleanEnum,
6599
- captureStackTrace: () => captureStackTrace,
6600
- cached: () => cached,
6601
- assignProp: () => assignProp,
6602
- assertNotEqual: () => assertNotEqual,
6603
- assertNever: () => assertNever,
6604
- assertIs: () => assertIs,
6605
- assertEqual: () => assertEqual,
6606
- assert: () => assert,
6607
- allowsEval: () => allowsEval,
6608
- aborted: () => aborted,
6609
- NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
6610
- Class: () => Class,
6611
- BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES
6612
- });
6613
- function assertEqual(val) {
6614
- return val;
6615
- }
6616
- function assertNotEqual(val) {
6617
- return val;
6618
- }
6619
- function assertIs(_arg) {}
6620
- function assertNever(_x) {
6621
- throw new Error;
6622
- }
6623
- function assert(_) {}
6624
6563
  function getEnumValues(entries) {
6625
6564
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
6626
6565
  const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -6690,30 +6629,6 @@ function assignProp(target, prop, value) {
6690
6629
  configurable: true
6691
6630
  });
6692
6631
  }
6693
- function getElementAtPath(obj, path) {
6694
- if (!path)
6695
- return obj;
6696
- return path.reduce((acc, key) => acc?.[key], obj);
6697
- }
6698
- function promiseAllObject(promisesObj) {
6699
- const keys = Object.keys(promisesObj);
6700
- const promises = keys.map((key) => promisesObj[key]);
6701
- return Promise.all(promises).then((results) => {
6702
- const resolvedObj = {};
6703
- for (let i = 0;i < keys.length; i++) {
6704
- resolvedObj[keys[i]] = results[i];
6705
- }
6706
- return resolvedObj;
6707
- });
6708
- }
6709
- function randomString(length = 10) {
6710
- const chars = "abcdefghijklmnopqrstuvwxyz";
6711
- let str = "";
6712
- for (let i = 0;i < length; i++) {
6713
- str += chars[Math.floor(Math.random() * chars.length)];
6714
- }
6715
- return str;
6716
- }
6717
6632
  function esc(str) {
6718
6633
  return JSON.stringify(str);
6719
6634
  }
@@ -6747,59 +6662,6 @@ function isPlainObject(o) {
6747
6662
  }
6748
6663
  return true;
6749
6664
  }
6750
- function numKeys(data) {
6751
- let keyCount = 0;
6752
- for (const key in data) {
6753
- if (Object.prototype.hasOwnProperty.call(data, key)) {
6754
- keyCount++;
6755
- }
6756
- }
6757
- return keyCount;
6758
- }
6759
- var getParsedType = (data) => {
6760
- const t = typeof data;
6761
- switch (t) {
6762
- case "undefined":
6763
- return "undefined";
6764
- case "string":
6765
- return "string";
6766
- case "number":
6767
- return Number.isNaN(data) ? "nan" : "number";
6768
- case "boolean":
6769
- return "boolean";
6770
- case "function":
6771
- return "function";
6772
- case "bigint":
6773
- return "bigint";
6774
- case "symbol":
6775
- return "symbol";
6776
- case "object":
6777
- if (Array.isArray(data)) {
6778
- return "array";
6779
- }
6780
- if (data === null) {
6781
- return "null";
6782
- }
6783
- if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
6784
- return "promise";
6785
- }
6786
- if (typeof Map !== "undefined" && data instanceof Map) {
6787
- return "map";
6788
- }
6789
- if (typeof Set !== "undefined" && data instanceof Set) {
6790
- return "set";
6791
- }
6792
- if (typeof Date !== "undefined" && data instanceof Date) {
6793
- return "date";
6794
- }
6795
- if (typeof File !== "undefined" && data instanceof File) {
6796
- return "file";
6797
- }
6798
- return "object";
6799
- default:
6800
- throw new Error(`Unknown data type: ${t}`);
6801
- }
6802
- };
6803
6665
  var propertyKeyTypes = new Set(["string", "number", "symbol"]);
6804
6666
  var primitiveTypes = new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
6805
6667
  function escapeRegex(str) {
@@ -6827,39 +6689,6 @@ function normalizeParams(_params) {
6827
6689
  return { ...params, error: () => params.error };
6828
6690
  return params;
6829
6691
  }
6830
- function createTransparentProxy(getter) {
6831
- let target;
6832
- return new Proxy({}, {
6833
- get(_, prop, receiver) {
6834
- target ?? (target = getter());
6835
- return Reflect.get(target, prop, receiver);
6836
- },
6837
- set(_, prop, value, receiver) {
6838
- target ?? (target = getter());
6839
- return Reflect.set(target, prop, value, receiver);
6840
- },
6841
- has(_, prop) {
6842
- target ?? (target = getter());
6843
- return Reflect.has(target, prop);
6844
- },
6845
- deleteProperty(_, prop) {
6846
- target ?? (target = getter());
6847
- return Reflect.deleteProperty(target, prop);
6848
- },
6849
- ownKeys(_) {
6850
- target ?? (target = getter());
6851
- return Reflect.ownKeys(target);
6852
- },
6853
- getOwnPropertyDescriptor(_, prop) {
6854
- target ?? (target = getter());
6855
- return Reflect.getOwnPropertyDescriptor(target, prop);
6856
- },
6857
- defineProperty(_, prop, descriptor) {
6858
- target ?? (target = getter());
6859
- return Reflect.defineProperty(target, prop, descriptor);
6860
- }
6861
- });
6862
- }
6863
6692
  function stringifyPrimitive(value) {
6864
6693
  if (typeof value === "bigint")
6865
6694
  return value.toString() + "n";
@@ -6879,10 +6708,6 @@ var NUMBER_FORMAT_RANGES = {
6879
6708
  float32: [-340282346638528860000000000000000000000, 340282346638528860000000000000000000000],
6880
6709
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
6881
6710
  };
6882
- var BIGINT_FORMAT_RANGES = {
6883
- int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
6884
- uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
6885
- };
6886
6711
  function pick(schema, mask) {
6887
6712
  const newShape = {};
6888
6713
  const currDef = schema._zod.def;
@@ -7020,10 +6845,10 @@ function prefixIssues(path, issues) {
7020
6845
  function unwrapMessage(message) {
7021
6846
  return typeof message === "string" ? message : message?.message;
7022
6847
  }
7023
- function finalizeIssue(iss, ctx, config2) {
6848
+ function finalizeIssue(iss, ctx, config) {
7024
6849
  const full = { ...iss, path: iss.path ?? [] };
7025
6850
  if (!iss.message) {
7026
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
6851
+ const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
7027
6852
  full.message = message;
7028
6853
  }
7029
6854
  delete full.inst;
@@ -7033,15 +6858,6 @@ function finalizeIssue(iss, ctx, config2) {
7033
6858
  }
7034
6859
  return full;
7035
6860
  }
7036
- function getSizableOrigin(input) {
7037
- if (input instanceof Set)
7038
- return "set";
7039
- if (input instanceof Map)
7040
- return "map";
7041
- if (input instanceof File)
7042
- return "file";
7043
- return "unknown";
7044
- }
7045
6861
  function getLengthableOrigin(input) {
7046
6862
  if (Array.isArray(input))
7047
6863
  return "array";
@@ -7061,15 +6877,6 @@ function issue(...args) {
7061
6877
  }
7062
6878
  return { ...iss };
7063
6879
  }
7064
- function cleanEnum(obj) {
7065
- return Object.entries(obj).filter(([k, _]) => {
7066
- return Number.isNaN(Number.parseInt(k, 10));
7067
- }).map((el) => el[1]);
7068
- }
7069
-
7070
- class Class {
7071
- constructor(..._args) {}
7072
- }
7073
6880
 
7074
6881
  // node_modules/zod/v4/core/errors.js
7075
6882
  var initializer = (inst, def) => {
@@ -7095,7 +6902,7 @@ var initializer = (inst, def) => {
7095
6902
  };
7096
6903
  var $ZodError = $constructor("$ZodError", initializer);
7097
6904
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
7098
- function flattenError(error, mapper = (issue2) => issue2.message) {
6905
+ function flattenError(error, mapper = (issue) => issue.message) {
7099
6906
  const fieldErrors = {};
7100
6907
  const formErrors = [];
7101
6908
  for (const sub of error.issues) {
@@ -7109,31 +6916,31 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
7109
6916
  return { formErrors, fieldErrors };
7110
6917
  }
7111
6918
  function formatError(error, _mapper) {
7112
- const mapper = _mapper || function(issue2) {
7113
- return issue2.message;
6919
+ const mapper = _mapper || function(issue) {
6920
+ return issue.message;
7114
6921
  };
7115
6922
  const fieldErrors = { _errors: [] };
7116
- const processError = (error2) => {
7117
- for (const issue2 of error2.issues) {
7118
- if (issue2.code === "invalid_union" && issue2.errors.length) {
7119
- issue2.errors.map((issues) => processError({ issues }));
7120
- } else if (issue2.code === "invalid_key") {
7121
- processError({ issues: issue2.issues });
7122
- } else if (issue2.code === "invalid_element") {
7123
- processError({ issues: issue2.issues });
7124
- } else if (issue2.path.length === 0) {
7125
- fieldErrors._errors.push(mapper(issue2));
6923
+ const processError = (error) => {
6924
+ for (const issue of error.issues) {
6925
+ if (issue.code === "invalid_union" && issue.errors.length) {
6926
+ issue.errors.map((issues) => processError({ issues }));
6927
+ } else if (issue.code === "invalid_key") {
6928
+ processError({ issues: issue.issues });
6929
+ } else if (issue.code === "invalid_element") {
6930
+ processError({ issues: issue.issues });
6931
+ } else if (issue.path.length === 0) {
6932
+ fieldErrors._errors.push(mapper(issue));
7126
6933
  } else {
7127
6934
  let curr = fieldErrors;
7128
6935
  let i = 0;
7129
- while (i < issue2.path.length) {
7130
- const el = issue2.path[i];
7131
- const terminal = i === issue2.path.length - 1;
6936
+ while (i < issue.path.length) {
6937
+ const el = issue.path[i];
6938
+ const terminal = i === issue.path.length - 1;
7132
6939
  if (!terminal) {
7133
6940
  curr[el] = curr[el] || { _errors: [] };
7134
6941
  } else {
7135
6942
  curr[el] = curr[el] || { _errors: [] };
7136
- curr[el]._errors.push(mapper(issue2));
6943
+ curr[el]._errors.push(mapper(issue));
7137
6944
  }
7138
6945
  curr = curr[el];
7139
6946
  i++;
@@ -7232,13 +7039,13 @@ function time(args) {
7232
7039
  return new RegExp(`^${timeSource(args)}$`);
7233
7040
  }
7234
7041
  function datetime(args) {
7235
- const time2 = timeSource({ precision: args.precision });
7042
+ const time = timeSource({ precision: args.precision });
7236
7043
  const opts = ["Z"];
7237
7044
  if (args.local)
7238
7045
  opts.push("");
7239
7046
  if (args.offset)
7240
7047
  opts.push(`([+-]\\d{2}:\\d{2})`);
7241
- const timeRegex = `${time2}(?:${opts.join("|")})`;
7048
+ const timeRegex = `${time}(?:${opts.join("|")})`;
7242
7049
  return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
7243
7050
  }
7244
7051
  var string = (params) => {
@@ -7267,8 +7074,8 @@ var numericOriginMap = {
7267
7074
  var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst, def) => {
7268
7075
  $ZodCheck.init(inst, def);
7269
7076
  const origin = numericOriginMap[typeof def.value];
7270
- inst._zod.onattach.push((inst2) => {
7271
- const bag = inst2._zod.bag;
7077
+ inst._zod.onattach.push((inst) => {
7078
+ const bag = inst._zod.bag;
7272
7079
  const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
7273
7080
  if (def.value < curr) {
7274
7081
  if (def.inclusive)
@@ -7295,8 +7102,8 @@ var $ZodCheckLessThan = /* @__PURE__ */ $constructor("$ZodCheckLessThan", (inst,
7295
7102
  var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan", (inst, def) => {
7296
7103
  $ZodCheck.init(inst, def);
7297
7104
  const origin = numericOriginMap[typeof def.value];
7298
- inst._zod.onattach.push((inst2) => {
7299
- const bag = inst2._zod.bag;
7105
+ inst._zod.onattach.push((inst) => {
7106
+ const bag = inst._zod.bag;
7300
7107
  const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
7301
7108
  if (def.value > curr) {
7302
7109
  if (def.inclusive)
@@ -7322,9 +7129,9 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
7322
7129
  });
7323
7130
  var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
7324
7131
  $ZodCheck.init(inst, def);
7325
- inst._zod.onattach.push((inst2) => {
7132
+ inst._zod.onattach.push((inst) => {
7326
7133
  var _a;
7327
- (_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
7134
+ (_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
7328
7135
  });
7329
7136
  inst._zod.check = (payload) => {
7330
7137
  if (typeof payload.value !== typeof def.value)
@@ -7348,8 +7155,8 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
7348
7155
  const isInt = def.format?.includes("int");
7349
7156
  const origin = isInt ? "int" : "number";
7350
7157
  const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
7351
- inst._zod.onattach.push((inst2) => {
7352
- const bag = inst2._zod.bag;
7158
+ inst._zod.onattach.push((inst) => {
7159
+ const bag = inst._zod.bag;
7353
7160
  bag.format = def.format;
7354
7161
  bag.minimum = minimum;
7355
7162
  bag.maximum = maximum;
@@ -7423,10 +7230,10 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
7423
7230
  const val = payload.value;
7424
7231
  return !nullish(val) && val.length !== undefined;
7425
7232
  });
7426
- inst._zod.onattach.push((inst2) => {
7427
- const curr = inst2._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
7233
+ inst._zod.onattach.push((inst) => {
7234
+ const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
7428
7235
  if (def.maximum < curr)
7429
- inst2._zod.bag.maximum = def.maximum;
7236
+ inst._zod.bag.maximum = def.maximum;
7430
7237
  });
7431
7238
  inst._zod.check = (payload) => {
7432
7239
  const input = payload.value;
@@ -7452,10 +7259,10 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
7452
7259
  const val = payload.value;
7453
7260
  return !nullish(val) && val.length !== undefined;
7454
7261
  });
7455
- inst._zod.onattach.push((inst2) => {
7456
- const curr = inst2._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
7262
+ inst._zod.onattach.push((inst) => {
7263
+ const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
7457
7264
  if (def.minimum > curr)
7458
- inst2._zod.bag.minimum = def.minimum;
7265
+ inst._zod.bag.minimum = def.minimum;
7459
7266
  });
7460
7267
  inst._zod.check = (payload) => {
7461
7268
  const input = payload.value;
@@ -7481,8 +7288,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
7481
7288
  const val = payload.value;
7482
7289
  return !nullish(val) && val.length !== undefined;
7483
7290
  });
7484
- inst._zod.onattach.push((inst2) => {
7485
- const bag = inst2._zod.bag;
7291
+ inst._zod.onattach.push((inst) => {
7292
+ const bag = inst._zod.bag;
7486
7293
  bag.minimum = def.length;
7487
7294
  bag.maximum = def.length;
7488
7295
  bag.length = def.length;
@@ -7508,8 +7315,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
7508
7315
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
7509
7316
  var _a, _b;
7510
7317
  $ZodCheck.init(inst, def);
7511
- inst._zod.onattach.push((inst2) => {
7512
- const bag = inst2._zod.bag;
7318
+ inst._zod.onattach.push((inst) => {
7319
+ const bag = inst._zod.bag;
7513
7320
  bag.format = def.format;
7514
7321
  if (def.pattern) {
7515
7322
  bag.patterns ?? (bag.patterns = new Set);
@@ -7564,8 +7371,8 @@ var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst,
7564
7371
  const escapedRegex = escapeRegex(def.includes);
7565
7372
  const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
7566
7373
  def.pattern = pattern;
7567
- inst._zod.onattach.push((inst2) => {
7568
- const bag = inst2._zod.bag;
7374
+ inst._zod.onattach.push((inst) => {
7375
+ const bag = inst._zod.bag;
7569
7376
  bag.patterns ?? (bag.patterns = new Set);
7570
7377
  bag.patterns.add(pattern);
7571
7378
  });
@@ -7587,8 +7394,8 @@ var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (i
7587
7394
  $ZodCheck.init(inst, def);
7588
7395
  const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
7589
7396
  def.pattern ?? (def.pattern = pattern);
7590
- inst._zod.onattach.push((inst2) => {
7591
- const bag = inst2._zod.bag;
7397
+ inst._zod.onattach.push((inst) => {
7398
+ const bag = inst._zod.bag;
7592
7399
  bag.patterns ?? (bag.patterns = new Set);
7593
7400
  bag.patterns.add(pattern);
7594
7401
  });
@@ -7610,8 +7417,8 @@ var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst,
7610
7417
  $ZodCheck.init(inst, def);
7611
7418
  const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
7612
7419
  def.pattern ?? (def.pattern = pattern);
7613
- inst._zod.onattach.push((inst2) => {
7614
- const bag = inst2._zod.bag;
7420
+ inst._zod.onattach.push((inst) => {
7421
+ const bag = inst._zod.bag;
7615
7422
  bag.patterns ?? (bag.patterns = new Set);
7616
7423
  bag.patterns.add(pattern);
7617
7424
  });
@@ -7703,10 +7510,10 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
7703
7510
  inst._zod.run = inst._zod.parse;
7704
7511
  });
7705
7512
  } else {
7706
- const runChecks = (payload, checks2, ctx) => {
7513
+ const runChecks = (payload, checks, ctx) => {
7707
7514
  let isAborted = aborted(payload);
7708
7515
  let asyncResult;
7709
- for (const ch of checks2) {
7516
+ for (const ch of checks) {
7710
7517
  if (ch._zod.def.when) {
7711
7518
  const shouldRun = ch._zod.def.when(payload);
7712
7519
  if (!shouldRun)
@@ -7748,7 +7555,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
7748
7555
  if (result instanceof Promise) {
7749
7556
  if (ctx.async === false)
7750
7557
  throw new $ZodAsyncError;
7751
- return result.then((result2) => runChecks(result2, checks, ctx));
7558
+ return result.then((result) => runChecks(result, checks, ctx));
7752
7559
  }
7753
7560
  return runChecks(result, checks, ctx);
7754
7561
  };
@@ -7773,7 +7580,7 @@ var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
7773
7580
  if (def.coerce)
7774
7581
  try {
7775
7582
  payload.value = String(payload.value);
7776
- } catch (_2) {}
7583
+ } catch (_) {}
7777
7584
  if (typeof payload.value === "string")
7778
7585
  return payload;
7779
7586
  payload.issues.push({
@@ -7916,16 +7723,16 @@ var $ZodISODuration = /* @__PURE__ */ $constructor("$ZodISODuration", (inst, def
7916
7723
  var $ZodIPv4 = /* @__PURE__ */ $constructor("$ZodIPv4", (inst, def) => {
7917
7724
  def.pattern ?? (def.pattern = ipv4);
7918
7725
  $ZodStringFormat.init(inst, def);
7919
- inst._zod.onattach.push((inst2) => {
7920
- const bag = inst2._zod.bag;
7726
+ inst._zod.onattach.push((inst) => {
7727
+ const bag = inst._zod.bag;
7921
7728
  bag.format = `ipv4`;
7922
7729
  });
7923
7730
  });
7924
7731
  var $ZodIPv6 = /* @__PURE__ */ $constructor("$ZodIPv6", (inst, def) => {
7925
7732
  def.pattern ?? (def.pattern = ipv6);
7926
7733
  $ZodStringFormat.init(inst, def);
7927
- inst._zod.onattach.push((inst2) => {
7928
- const bag = inst2._zod.bag;
7734
+ inst._zod.onattach.push((inst) => {
7735
+ const bag = inst._zod.bag;
7929
7736
  bag.format = `ipv6`;
7930
7737
  });
7931
7738
  inst._zod.check = (payload) => {
@@ -7986,8 +7793,8 @@ function isValidBase64(data) {
7986
7793
  var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
7987
7794
  def.pattern ?? (def.pattern = base64);
7988
7795
  $ZodStringFormat.init(inst, def);
7989
- inst._zod.onattach.push((inst2) => {
7990
- inst2._zod.bag.contentEncoding = "base64";
7796
+ inst._zod.onattach.push((inst) => {
7797
+ inst._zod.bag.contentEncoding = "base64";
7991
7798
  });
7992
7799
  inst._zod.check = (payload) => {
7993
7800
  if (isValidBase64(payload.value))
@@ -8004,15 +7811,15 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
8004
7811
  function isValidBase64URL(data) {
8005
7812
  if (!base64url.test(data))
8006
7813
  return false;
8007
- const base642 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
8008
- const padded = base642.padEnd(Math.ceil(base642.length / 4) * 4, "=");
7814
+ const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
7815
+ const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
8009
7816
  return isValidBase64(padded);
8010
7817
  }
8011
7818
  var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
8012
7819
  def.pattern ?? (def.pattern = base64url);
8013
7820
  $ZodStringFormat.init(inst, def);
8014
- inst._zod.onattach.push((inst2) => {
8015
- inst2._zod.bag.contentEncoding = "base64url";
7821
+ inst._zod.onattach.push((inst) => {
7822
+ inst._zod.bag.contentEncoding = "base64url";
8016
7823
  });
8017
7824
  inst._zod.check = (payload) => {
8018
7825
  if (isValidBase64URL(payload.value))
@@ -8172,7 +7979,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
8172
7979
  issues: []
8173
7980
  }, ctx);
8174
7981
  if (result instanceof Promise) {
8175
- proms.push(result.then((result2) => handleArrayResult(result2, payload, i)));
7982
+ proms.push(result.then((result) => handleArrayResult(result, payload, i)));
8176
7983
  } else {
8177
7984
  handleArrayResult(result, payload, i);
8178
7985
  }
@@ -8325,7 +8132,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
8325
8132
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
8326
8133
  const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
8327
8134
  if (r instanceof Promise) {
8328
- proms.push(r.then((r2) => isOptional ? handleOptionalObjectResult(r2, payload, key, input) : handleObjectResult(r2, payload, key)));
8135
+ proms.push(r.then((r) => isOptional ? handleOptionalObjectResult(r, payload, key, input) : handleObjectResult(r, payload, key)));
8329
8136
  } else if (isOptional) {
8330
8137
  handleOptionalObjectResult(r, payload, key, input);
8331
8138
  } else {
@@ -8349,7 +8156,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
8349
8156
  }
8350
8157
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
8351
8158
  if (r instanceof Promise) {
8352
- proms.push(r.then((r2) => handleObjectResult(r2, payload, key)));
8159
+ proms.push(r.then((r) => handleObjectResult(r, payload, key)));
8353
8160
  } else {
8354
8161
  handleObjectResult(r, payload, key);
8355
8162
  }
@@ -8420,8 +8227,8 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
8420
8227
  }
8421
8228
  if (!async)
8422
8229
  return handleUnionResults(results, payload, inst, ctx);
8423
- return Promise.all(results).then((results2) => {
8424
- return handleUnionResults(results2, payload, inst, ctx);
8230
+ return Promise.all(results).then((results) => {
8231
+ return handleUnionResults(results, payload, inst, ctx);
8425
8232
  });
8426
8233
  };
8427
8234
  });
@@ -8497,8 +8304,8 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
8497
8304
  const right = def.right._zod.run({ value: input, issues: [] }, ctx);
8498
8305
  const async = left instanceof Promise || right instanceof Promise;
8499
8306
  if (async) {
8500
- return Promise.all([left, right]).then(([left2, right2]) => {
8501
- return handleIntersectionResults(payload, left2, right2);
8307
+ return Promise.all([left, right]).then(([left, right]) => {
8308
+ return handleIntersectionResults(payload, left, right);
8502
8309
  });
8503
8310
  }
8504
8311
  return handleIntersectionResults(payload, left, right);
@@ -8585,11 +8392,11 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
8585
8392
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
8586
8393
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
8587
8394
  if (result instanceof Promise) {
8588
- proms.push(result.then((result2) => {
8589
- if (result2.issues.length) {
8590
- payload.issues.push(...prefixIssues(key, result2.issues));
8395
+ proms.push(result.then((result) => {
8396
+ if (result.issues.length) {
8397
+ payload.issues.push(...prefixIssues(key, result.issues));
8591
8398
  }
8592
- payload.value[key] = result2.value;
8399
+ payload.value[key] = result.value;
8593
8400
  }));
8594
8401
  } else {
8595
8402
  if (result.issues.length) {
@@ -8637,11 +8444,11 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
8637
8444
  }
8638
8445
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
8639
8446
  if (result instanceof Promise) {
8640
- proms.push(result.then((result2) => {
8641
- if (result2.issues.length) {
8642
- payload.issues.push(...prefixIssues(key, result2.issues));
8447
+ proms.push(result.then((result) => {
8448
+ if (result.issues.length) {
8449
+ payload.issues.push(...prefixIssues(key, result.issues));
8643
8450
  }
8644
- payload.value[keyResult.value] = result2.value;
8451
+ payload.value[keyResult.value] = result.value;
8645
8452
  }));
8646
8453
  } else {
8647
8454
  if (result.issues.length) {
@@ -8700,8 +8507,8 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
8700
8507
  const _out = def.transform(payload.value, payload);
8701
8508
  if (_ctx.async) {
8702
8509
  const output = _out instanceof Promise ? _out : Promise.resolve(_out);
8703
- return output.then((output2) => {
8704
- payload.value = output2;
8510
+ return output.then((output) => {
8511
+ payload.value = output;
8705
8512
  return payload;
8706
8513
  });
8707
8514
  }
@@ -8761,7 +8568,7 @@ var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
8761
8568
  }
8762
8569
  const result = def.innerType._zod.run(payload, ctx);
8763
8570
  if (result instanceof Promise) {
8764
- return result.then((result2) => handleDefaultResult(result2, def));
8571
+ return result.then((result) => handleDefaultResult(result, def));
8765
8572
  }
8766
8573
  return handleDefaultResult(result, def);
8767
8574
  };
@@ -8792,7 +8599,7 @@ var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def
8792
8599
  inst._zod.parse = (payload, ctx) => {
8793
8600
  const result = def.innerType._zod.run(payload, ctx);
8794
8601
  if (result instanceof Promise) {
8795
- return result.then((result2) => handleNonOptionalResult(result2, inst));
8602
+ return result.then((result) => handleNonOptionalResult(result, inst));
8796
8603
  }
8797
8604
  return handleNonOptionalResult(result, inst);
8798
8605
  };
@@ -8816,13 +8623,13 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
8816
8623
  inst._zod.parse = (payload, ctx) => {
8817
8624
  const result = def.innerType._zod.run(payload, ctx);
8818
8625
  if (result instanceof Promise) {
8819
- return result.then((result2) => {
8820
- payload.value = result2.value;
8821
- if (result2.issues.length) {
8626
+ return result.then((result) => {
8627
+ payload.value = result.value;
8628
+ if (result.issues.length) {
8822
8629
  payload.value = def.catchValue({
8823
8630
  ...payload,
8824
8631
  error: {
8825
- issues: result2.issues.map((iss) => finalizeIssue(iss, ctx, config()))
8632
+ issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
8826
8633
  },
8827
8634
  input: payload.value
8828
8635
  });
@@ -8853,7 +8660,7 @@ var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
8853
8660
  inst._zod.parse = (payload, ctx) => {
8854
8661
  const left = def.in._zod.run(payload, ctx);
8855
8662
  if (left instanceof Promise) {
8856
- return left.then((left2) => handlePipeResult(left2, def, ctx));
8663
+ return left.then((left) => handlePipeResult(left, def, ctx));
8857
8664
  }
8858
8665
  return handlePipeResult(left, def, ctx);
8859
8666
  };
@@ -8892,7 +8699,7 @@ var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
8892
8699
  const input = payload.value;
8893
8700
  const r = def.fn(input);
8894
8701
  if (r instanceof Promise) {
8895
- return r.then((r2) => handleRefineResult(r2, payload, input, inst));
8702
+ return r.then((r) => handleRefineResult(r, payload, input, inst));
8896
8703
  }
8897
8704
  handleRefineResult(r, payload, input, inst);
8898
8705
  return;
@@ -8973,31 +8780,31 @@ var error = () => {
8973
8780
  jwt: "JWT",
8974
8781
  template_literal: "input"
8975
8782
  };
8976
- return (issue2) => {
8977
- switch (issue2.code) {
8783
+ return (issue) => {
8784
+ switch (issue.code) {
8978
8785
  case "invalid_type":
8979
- return `Invalid input: expected ${issue2.expected}, received ${parsedType(issue2.input)}`;
8786
+ return `Invalid input: expected ${issue.expected}, received ${parsedType(issue.input)}`;
8980
8787
  case "invalid_value":
8981
- if (issue2.values.length === 1)
8982
- return `Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`;
8983
- return `Invalid option: expected one of ${joinValues(issue2.values, "|")}`;
8788
+ if (issue.values.length === 1)
8789
+ return `Invalid input: expected ${stringifyPrimitive(issue.values[0])}`;
8790
+ return `Invalid option: expected one of ${joinValues(issue.values, "|")}`;
8984
8791
  case "too_big": {
8985
- const adj = issue2.inclusive ? "<=" : "<";
8986
- const sizing = getSizing(issue2.origin);
8792
+ const adj = issue.inclusive ? "<=" : "<";
8793
+ const sizing = getSizing(issue.origin);
8987
8794
  if (sizing)
8988
- return `Too big: expected ${issue2.origin ?? "value"} to have ${adj}${issue2.maximum.toString()} ${sizing.unit ?? "elements"}`;
8989
- return `Too big: expected ${issue2.origin ?? "value"} to be ${adj}${issue2.maximum.toString()}`;
8795
+ return `Too big: expected ${issue.origin ?? "value"} to have ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"}`;
8796
+ return `Too big: expected ${issue.origin ?? "value"} to be ${adj}${issue.maximum.toString()}`;
8990
8797
  }
8991
8798
  case "too_small": {
8992
- const adj = issue2.inclusive ? ">=" : ">";
8993
- const sizing = getSizing(issue2.origin);
8799
+ const adj = issue.inclusive ? ">=" : ">";
8800
+ const sizing = getSizing(issue.origin);
8994
8801
  if (sizing) {
8995
- return `Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`;
8802
+ return `Too small: expected ${issue.origin} to have ${adj}${issue.minimum.toString()} ${sizing.unit}`;
8996
8803
  }
8997
- return `Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`;
8804
+ return `Too small: expected ${issue.origin} to be ${adj}${issue.minimum.toString()}`;
8998
8805
  }
8999
8806
  case "invalid_format": {
9000
- const _issue = issue2;
8807
+ const _issue = issue;
9001
8808
  if (_issue.format === "starts_with") {
9002
8809
  return `Invalid string: must start with "${_issue.prefix}"`;
9003
8810
  }
@@ -9007,18 +8814,18 @@ var error = () => {
9007
8814
  return `Invalid string: must include "${_issue.includes}"`;
9008
8815
  if (_issue.format === "regex")
9009
8816
  return `Invalid string: must match pattern ${_issue.pattern}`;
9010
- return `Invalid ${Nouns[_issue.format] ?? issue2.format}`;
8817
+ return `Invalid ${Nouns[_issue.format] ?? issue.format}`;
9011
8818
  }
9012
8819
  case "not_multiple_of":
9013
- return `Invalid number: must be a multiple of ${issue2.divisor}`;
8820
+ return `Invalid number: must be a multiple of ${issue.divisor}`;
9014
8821
  case "unrecognized_keys":
9015
- return `Unrecognized key${issue2.keys.length > 1 ? "s" : ""}: ${joinValues(issue2.keys, ", ")}`;
8822
+ return `Unrecognized key${issue.keys.length > 1 ? "s" : ""}: ${joinValues(issue.keys, ", ")}`;
9016
8823
  case "invalid_key":
9017
- return `Invalid key in ${issue2.origin}`;
8824
+ return `Invalid key in ${issue.origin}`;
9018
8825
  case "invalid_union":
9019
8826
  return "Invalid input";
9020
8827
  case "invalid_element":
9021
- return `Invalid value in ${issue2.origin}`;
8828
+ return `Invalid value in ${issue.origin}`;
9022
8829
  default:
9023
8830
  return `Invalid input`;
9024
8831
  }
@@ -9080,14 +8887,14 @@ function registry() {
9080
8887
  }
9081
8888
  var globalRegistry = /* @__PURE__ */ registry();
9082
8889
  // node_modules/zod/v4/core/api.js
9083
- function _string(Class2, params) {
9084
- return new Class2({
8890
+ function _string(Class, params) {
8891
+ return new Class({
9085
8892
  type: "string",
9086
8893
  ...normalizeParams(params)
9087
8894
  });
9088
8895
  }
9089
- function _email(Class2, params) {
9090
- return new Class2({
8896
+ function _email(Class, params) {
8897
+ return new Class({
9091
8898
  type: "string",
9092
8899
  format: "email",
9093
8900
  check: "string_format",
@@ -9095,8 +8902,8 @@ function _email(Class2, params) {
9095
8902
  ...normalizeParams(params)
9096
8903
  });
9097
8904
  }
9098
- function _guid(Class2, params) {
9099
- return new Class2({
8905
+ function _guid(Class, params) {
8906
+ return new Class({
9100
8907
  type: "string",
9101
8908
  format: "guid",
9102
8909
  check: "string_format",
@@ -9104,8 +8911,8 @@ function _guid(Class2, params) {
9104
8911
  ...normalizeParams(params)
9105
8912
  });
9106
8913
  }
9107
- function _uuid(Class2, params) {
9108
- return new Class2({
8914
+ function _uuid(Class, params) {
8915
+ return new Class({
9109
8916
  type: "string",
9110
8917
  format: "uuid",
9111
8918
  check: "string_format",
@@ -9113,8 +8920,8 @@ function _uuid(Class2, params) {
9113
8920
  ...normalizeParams(params)
9114
8921
  });
9115
8922
  }
9116
- function _uuidv4(Class2, params) {
9117
- return new Class2({
8923
+ function _uuidv4(Class, params) {
8924
+ return new Class({
9118
8925
  type: "string",
9119
8926
  format: "uuid",
9120
8927
  check: "string_format",
@@ -9123,8 +8930,8 @@ function _uuidv4(Class2, params) {
9123
8930
  ...normalizeParams(params)
9124
8931
  });
9125
8932
  }
9126
- function _uuidv6(Class2, params) {
9127
- return new Class2({
8933
+ function _uuidv6(Class, params) {
8934
+ return new Class({
9128
8935
  type: "string",
9129
8936
  format: "uuid",
9130
8937
  check: "string_format",
@@ -9133,8 +8940,8 @@ function _uuidv6(Class2, params) {
9133
8940
  ...normalizeParams(params)
9134
8941
  });
9135
8942
  }
9136
- function _uuidv7(Class2, params) {
9137
- return new Class2({
8943
+ function _uuidv7(Class, params) {
8944
+ return new Class({
9138
8945
  type: "string",
9139
8946
  format: "uuid",
9140
8947
  check: "string_format",
@@ -9143,8 +8950,8 @@ function _uuidv7(Class2, params) {
9143
8950
  ...normalizeParams(params)
9144
8951
  });
9145
8952
  }
9146
- function _url(Class2, params) {
9147
- return new Class2({
8953
+ function _url(Class, params) {
8954
+ return new Class({
9148
8955
  type: "string",
9149
8956
  format: "url",
9150
8957
  check: "string_format",
@@ -9152,8 +8959,8 @@ function _url(Class2, params) {
9152
8959
  ...normalizeParams(params)
9153
8960
  });
9154
8961
  }
9155
- function _emoji2(Class2, params) {
9156
- return new Class2({
8962
+ function _emoji2(Class, params) {
8963
+ return new Class({
9157
8964
  type: "string",
9158
8965
  format: "emoji",
9159
8966
  check: "string_format",
@@ -9161,8 +8968,8 @@ function _emoji2(Class2, params) {
9161
8968
  ...normalizeParams(params)
9162
8969
  });
9163
8970
  }
9164
- function _nanoid(Class2, params) {
9165
- return new Class2({
8971
+ function _nanoid(Class, params) {
8972
+ return new Class({
9166
8973
  type: "string",
9167
8974
  format: "nanoid",
9168
8975
  check: "string_format",
@@ -9170,8 +8977,8 @@ function _nanoid(Class2, params) {
9170
8977
  ...normalizeParams(params)
9171
8978
  });
9172
8979
  }
9173
- function _cuid(Class2, params) {
9174
- return new Class2({
8980
+ function _cuid(Class, params) {
8981
+ return new Class({
9175
8982
  type: "string",
9176
8983
  format: "cuid",
9177
8984
  check: "string_format",
@@ -9179,8 +8986,8 @@ function _cuid(Class2, params) {
9179
8986
  ...normalizeParams(params)
9180
8987
  });
9181
8988
  }
9182
- function _cuid2(Class2, params) {
9183
- return new Class2({
8989
+ function _cuid2(Class, params) {
8990
+ return new Class({
9184
8991
  type: "string",
9185
8992
  format: "cuid2",
9186
8993
  check: "string_format",
@@ -9188,8 +8995,8 @@ function _cuid2(Class2, params) {
9188
8995
  ...normalizeParams(params)
9189
8996
  });
9190
8997
  }
9191
- function _ulid(Class2, params) {
9192
- return new Class2({
8998
+ function _ulid(Class, params) {
8999
+ return new Class({
9193
9000
  type: "string",
9194
9001
  format: "ulid",
9195
9002
  check: "string_format",
@@ -9197,8 +9004,8 @@ function _ulid(Class2, params) {
9197
9004
  ...normalizeParams(params)
9198
9005
  });
9199
9006
  }
9200
- function _xid(Class2, params) {
9201
- return new Class2({
9007
+ function _xid(Class, params) {
9008
+ return new Class({
9202
9009
  type: "string",
9203
9010
  format: "xid",
9204
9011
  check: "string_format",
@@ -9206,8 +9013,8 @@ function _xid(Class2, params) {
9206
9013
  ...normalizeParams(params)
9207
9014
  });
9208
9015
  }
9209
- function _ksuid(Class2, params) {
9210
- return new Class2({
9016
+ function _ksuid(Class, params) {
9017
+ return new Class({
9211
9018
  type: "string",
9212
9019
  format: "ksuid",
9213
9020
  check: "string_format",
@@ -9215,8 +9022,8 @@ function _ksuid(Class2, params) {
9215
9022
  ...normalizeParams(params)
9216
9023
  });
9217
9024
  }
9218
- function _ipv4(Class2, params) {
9219
- return new Class2({
9025
+ function _ipv4(Class, params) {
9026
+ return new Class({
9220
9027
  type: "string",
9221
9028
  format: "ipv4",
9222
9029
  check: "string_format",
@@ -9224,8 +9031,8 @@ function _ipv4(Class2, params) {
9224
9031
  ...normalizeParams(params)
9225
9032
  });
9226
9033
  }
9227
- function _ipv6(Class2, params) {
9228
- return new Class2({
9034
+ function _ipv6(Class, params) {
9035
+ return new Class({
9229
9036
  type: "string",
9230
9037
  format: "ipv6",
9231
9038
  check: "string_format",
@@ -9233,8 +9040,8 @@ function _ipv6(Class2, params) {
9233
9040
  ...normalizeParams(params)
9234
9041
  });
9235
9042
  }
9236
- function _cidrv4(Class2, params) {
9237
- return new Class2({
9043
+ function _cidrv4(Class, params) {
9044
+ return new Class({
9238
9045
  type: "string",
9239
9046
  format: "cidrv4",
9240
9047
  check: "string_format",
@@ -9242,8 +9049,8 @@ function _cidrv4(Class2, params) {
9242
9049
  ...normalizeParams(params)
9243
9050
  });
9244
9051
  }
9245
- function _cidrv6(Class2, params) {
9246
- return new Class2({
9052
+ function _cidrv6(Class, params) {
9053
+ return new Class({
9247
9054
  type: "string",
9248
9055
  format: "cidrv6",
9249
9056
  check: "string_format",
@@ -9251,8 +9058,8 @@ function _cidrv6(Class2, params) {
9251
9058
  ...normalizeParams(params)
9252
9059
  });
9253
9060
  }
9254
- function _base64(Class2, params) {
9255
- return new Class2({
9061
+ function _base64(Class, params) {
9062
+ return new Class({
9256
9063
  type: "string",
9257
9064
  format: "base64",
9258
9065
  check: "string_format",
@@ -9260,8 +9067,8 @@ function _base64(Class2, params) {
9260
9067
  ...normalizeParams(params)
9261
9068
  });
9262
9069
  }
9263
- function _base64url(Class2, params) {
9264
- return new Class2({
9070
+ function _base64url(Class, params) {
9071
+ return new Class({
9265
9072
  type: "string",
9266
9073
  format: "base64url",
9267
9074
  check: "string_format",
@@ -9269,8 +9076,8 @@ function _base64url(Class2, params) {
9269
9076
  ...normalizeParams(params)
9270
9077
  });
9271
9078
  }
9272
- function _e164(Class2, params) {
9273
- return new Class2({
9079
+ function _e164(Class, params) {
9080
+ return new Class({
9274
9081
  type: "string",
9275
9082
  format: "e164",
9276
9083
  check: "string_format",
@@ -9278,8 +9085,8 @@ function _e164(Class2, params) {
9278
9085
  ...normalizeParams(params)
9279
9086
  });
9280
9087
  }
9281
- function _jwt(Class2, params) {
9282
- return new Class2({
9088
+ function _jwt(Class, params) {
9089
+ return new Class({
9283
9090
  type: "string",
9284
9091
  format: "jwt",
9285
9092
  check: "string_format",
@@ -9287,8 +9094,8 @@ function _jwt(Class2, params) {
9287
9094
  ...normalizeParams(params)
9288
9095
  });
9289
9096
  }
9290
- function _isoDateTime(Class2, params) {
9291
- return new Class2({
9097
+ function _isoDateTime(Class, params) {
9098
+ return new Class({
9292
9099
  type: "string",
9293
9100
  format: "datetime",
9294
9101
  check: "string_format",
@@ -9298,16 +9105,16 @@ function _isoDateTime(Class2, params) {
9298
9105
  ...normalizeParams(params)
9299
9106
  });
9300
9107
  }
9301
- function _isoDate(Class2, params) {
9302
- return new Class2({
9108
+ function _isoDate(Class, params) {
9109
+ return new Class({
9303
9110
  type: "string",
9304
9111
  format: "date",
9305
9112
  check: "string_format",
9306
9113
  ...normalizeParams(params)
9307
9114
  });
9308
9115
  }
9309
- function _isoTime(Class2, params) {
9310
- return new Class2({
9116
+ function _isoTime(Class, params) {
9117
+ return new Class({
9311
9118
  type: "string",
9312
9119
  format: "time",
9313
9120
  check: "string_format",
@@ -9315,23 +9122,23 @@ function _isoTime(Class2, params) {
9315
9122
  ...normalizeParams(params)
9316
9123
  });
9317
9124
  }
9318
- function _isoDuration(Class2, params) {
9319
- return new Class2({
9125
+ function _isoDuration(Class, params) {
9126
+ return new Class({
9320
9127
  type: "string",
9321
9128
  format: "duration",
9322
9129
  check: "string_format",
9323
9130
  ...normalizeParams(params)
9324
9131
  });
9325
9132
  }
9326
- function _number(Class2, params) {
9327
- return new Class2({
9133
+ function _number(Class, params) {
9134
+ return new Class({
9328
9135
  type: "number",
9329
9136
  checks: [],
9330
9137
  ...normalizeParams(params)
9331
9138
  });
9332
9139
  }
9333
- function _int(Class2, params) {
9334
- return new Class2({
9140
+ function _int(Class, params) {
9141
+ return new Class({
9335
9142
  type: "number",
9336
9143
  check: "number_format",
9337
9144
  abort: false,
@@ -9339,25 +9146,25 @@ function _int(Class2, params) {
9339
9146
  ...normalizeParams(params)
9340
9147
  });
9341
9148
  }
9342
- function _boolean(Class2, params) {
9343
- return new Class2({
9149
+ function _boolean(Class, params) {
9150
+ return new Class({
9344
9151
  type: "boolean",
9345
9152
  ...normalizeParams(params)
9346
9153
  });
9347
9154
  }
9348
- function _null2(Class2, params) {
9349
- return new Class2({
9155
+ function _null2(Class, params) {
9156
+ return new Class({
9350
9157
  type: "null",
9351
9158
  ...normalizeParams(params)
9352
9159
  });
9353
9160
  }
9354
- function _unknown(Class2) {
9355
- return new Class2({
9161
+ function _unknown(Class) {
9162
+ return new Class({
9356
9163
  type: "unknown"
9357
9164
  });
9358
9165
  }
9359
- function _never(Class2, params) {
9360
- return new Class2({
9166
+ function _never(Class, params) {
9167
+ return new Class({
9361
9168
  type: "never",
9362
9169
  ...normalizeParams(params)
9363
9170
  });
@@ -9487,17 +9294,17 @@ function _toLowerCase() {
9487
9294
  function _toUpperCase() {
9488
9295
  return _overwrite((input) => input.toUpperCase());
9489
9296
  }
9490
- function _array(Class2, element, params) {
9491
- return new Class2({
9297
+ function _array(Class, element, params) {
9298
+ return new Class({
9492
9299
  type: "array",
9493
9300
  element,
9494
9301
  ...normalizeParams(params)
9495
9302
  });
9496
9303
  }
9497
- function _custom(Class2, fn, _params) {
9304
+ function _custom(Class, fn, _params) {
9498
9305
  const norm = normalizeParams(_params);
9499
9306
  norm.abort ?? (norm.abort = true);
9500
- const schema = new Class2({
9307
+ const schema = new Class({
9501
9308
  type: "custom",
9502
9309
  check: "custom",
9503
9310
  fn,
@@ -9505,8 +9312,8 @@ function _custom(Class2, fn, _params) {
9505
9312
  });
9506
9313
  return schema;
9507
9314
  }
9508
- function _refine(Class2, fn, _params) {
9509
- const schema = new Class2({
9315
+ function _refine(Class, fn, _params) {
9316
+ const schema = new Class({
9510
9317
  type: "custom",
9511
9318
  check: "custom",
9512
9319
  fn,
@@ -9521,8 +9328,8 @@ function isZ4Schema(s) {
9521
9328
  }
9522
9329
  function safeParse2(schema, data) {
9523
9330
  if (isZ4Schema(schema)) {
9524
- const result2 = safeParse(schema, data);
9525
- return result2;
9331
+ const result = safeParse(schema, data);
9332
+ return result;
9526
9333
  }
9527
9334
  const v3Schema = schema;
9528
9335
  const result = v3Schema.safeParse(data);
@@ -9553,12 +9360,12 @@ function getObjectShape(schema) {
9553
9360
  function getLiteralValue(schema) {
9554
9361
  if (isZ4Schema(schema)) {
9555
9362
  const v4Schema = schema;
9556
- const def2 = v4Schema._zod?.def;
9557
- if (def2) {
9558
- if (def2.value !== undefined)
9559
- return def2.value;
9560
- if (Array.isArray(def2.values) && def2.values.length > 0) {
9561
- return def2.values[0];
9363
+ const def = v4Schema._zod?.def;
9364
+ if (def) {
9365
+ if (def.value !== undefined)
9366
+ return def.value;
9367
+ if (Array.isArray(def.values) && def.values.length > 0) {
9368
+ return def.values[0];
9562
9369
  }
9563
9370
  }
9564
9371
  }
@@ -9577,17 +9384,6 @@ function getLiteralValue(schema) {
9577
9384
  return;
9578
9385
  }
9579
9386
  // node_modules/zod/v4/classic/iso.js
9580
- var exports_iso = {};
9581
- __export(exports_iso, {
9582
- time: () => time2,
9583
- duration: () => duration2,
9584
- datetime: () => datetime2,
9585
- date: () => date2,
9586
- ZodISOTime: () => ZodISOTime,
9587
- ZodISODuration: () => ZodISODuration,
9588
- ZodISODateTime: () => ZodISODateTime,
9589
- ZodISODate: () => ZodISODate
9590
- });
9591
9387
  var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
9592
9388
  $ZodISODateTime.init(inst, def);
9593
9389
  ZodStringFormat.init(inst, def);
@@ -9629,10 +9425,10 @@ var initializer2 = (inst, issues) => {
9629
9425
  value: (mapper) => flattenError(inst, mapper)
9630
9426
  },
9631
9427
  addIssue: {
9632
- value: (issue2) => inst.issues.push(issue2)
9428
+ value: (issue) => inst.issues.push(issue)
9633
9429
  },
9634
9430
  addIssues: {
9635
- value: (issues2) => inst.issues.push(...issues2)
9431
+ value: (issues) => inst.issues.push(...issues)
9636
9432
  },
9637
9433
  isEmpty: {
9638
9434
  get() {
@@ -9657,16 +9453,16 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
9657
9453
  $ZodType.init(inst, def);
9658
9454
  inst.def = def;
9659
9455
  Object.defineProperty(inst, "_def", { value: def });
9660
- inst.check = (...checks2) => {
9456
+ inst.check = (...checks) => {
9661
9457
  return inst.clone({
9662
9458
  ...def,
9663
9459
  checks: [
9664
9460
  ...def.checks ?? [],
9665
- ...checks2.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
9461
+ ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
9666
9462
  ]
9667
9463
  });
9668
9464
  };
9669
- inst.clone = (def2, params) => clone(inst, def2, params);
9465
+ inst.clone = (def, params) => clone(inst, def, params);
9670
9466
  inst.brand = () => inst;
9671
9467
  inst.register = (reg, meta) => {
9672
9468
  reg.add(inst, meta);
@@ -9688,8 +9484,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
9688
9484
  inst.or = (arg) => union([inst, arg]);
9689
9485
  inst.and = (arg) => intersection(inst, arg);
9690
9486
  inst.transform = (tx) => pipe(inst, transform(tx));
9691
- inst.default = (def2) => _default(inst, def2);
9692
- inst.prefault = (def2) => prefault(inst, def2);
9487
+ inst.default = (def) => _default(inst, def);
9488
+ inst.prefault = (def) => prefault(inst, def);
9693
9489
  inst.catch = (params) => _catch(inst, params);
9694
9490
  inst.pipe = (target) => pipe(inst, target);
9695
9491
  inst.readonly = () => readonly(inst);
@@ -9931,7 +9727,7 @@ function array(element, params) {
9931
9727
  var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
9932
9728
  $ZodObject.init(inst, def);
9933
9729
  ZodType.init(inst, def);
9934
- exports_util.defineLazy(inst, "shape", () => def.shape);
9730
+ defineLazy(inst, "shape", () => def.shape);
9935
9731
  inst.keyof = () => _enum(Object.keys(inst._zod.def.shape));
9936
9732
  inst.catchall = (catchall) => inst.clone({ ...inst._zod.def, catchall });
9937
9733
  inst.passthrough = () => inst.clone({ ...inst._zod.def, catchall: unknown() });
@@ -9939,22 +9735,22 @@ var ZodObject = /* @__PURE__ */ $constructor("ZodObject", (inst, def) => {
9939
9735
  inst.strict = () => inst.clone({ ...inst._zod.def, catchall: never() });
9940
9736
  inst.strip = () => inst.clone({ ...inst._zod.def, catchall: undefined });
9941
9737
  inst.extend = (incoming) => {
9942
- return exports_util.extend(inst, incoming);
9738
+ return extend(inst, incoming);
9943
9739
  };
9944
- inst.merge = (other) => exports_util.merge(inst, other);
9945
- inst.pick = (mask) => exports_util.pick(inst, mask);
9946
- inst.omit = (mask) => exports_util.omit(inst, mask);
9947
- inst.partial = (...args) => exports_util.partial(ZodOptional, inst, args[0]);
9948
- inst.required = (...args) => exports_util.required(ZodNonOptional, inst, args[0]);
9740
+ inst.merge = (other) => merge(inst, other);
9741
+ inst.pick = (mask) => pick(inst, mask);
9742
+ inst.omit = (mask) => omit(inst, mask);
9743
+ inst.partial = (...args) => partial(ZodOptional, inst, args[0]);
9744
+ inst.required = (...args) => required(ZodNonOptional, inst, args[0]);
9949
9745
  });
9950
9746
  function object2(shape, params) {
9951
9747
  const def = {
9952
9748
  type: "object",
9953
9749
  get shape() {
9954
- exports_util.assignProp(this, "shape", { ...shape });
9750
+ assignProp(this, "shape", { ...shape });
9955
9751
  return this.shape;
9956
9752
  },
9957
- ...exports_util.normalizeParams(params)
9753
+ ...normalizeParams(params)
9958
9754
  };
9959
9755
  return new ZodObject(def);
9960
9756
  }
@@ -9962,11 +9758,11 @@ function looseObject(shape, params) {
9962
9758
  return new ZodObject({
9963
9759
  type: "object",
9964
9760
  get shape() {
9965
- exports_util.assignProp(this, "shape", { ...shape });
9761
+ assignProp(this, "shape", { ...shape });
9966
9762
  return this.shape;
9967
9763
  },
9968
9764
  catchall: unknown(),
9969
- ...exports_util.normalizeParams(params)
9765
+ ...normalizeParams(params)
9970
9766
  });
9971
9767
  }
9972
9768
  var ZodUnion = /* @__PURE__ */ $constructor("ZodUnion", (inst, def) => {
@@ -9978,7 +9774,7 @@ function union(options, params) {
9978
9774
  return new ZodUnion({
9979
9775
  type: "union",
9980
9776
  options,
9981
- ...exports_util.normalizeParams(params)
9777
+ ...normalizeParams(params)
9982
9778
  });
9983
9779
  }
9984
9780
  var ZodDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodDiscriminatedUnion", (inst, def) => {
@@ -9990,7 +9786,7 @@ function discriminatedUnion(discriminator, options, params) {
9990
9786
  type: "union",
9991
9787
  options,
9992
9788
  discriminator,
9993
- ...exports_util.normalizeParams(params)
9789
+ ...normalizeParams(params)
9994
9790
  });
9995
9791
  }
9996
9792
  var ZodIntersection = /* @__PURE__ */ $constructor("ZodIntersection", (inst, def) => {
@@ -10015,7 +9811,7 @@ function record(keyType, valueType, params) {
10015
9811
  type: "record",
10016
9812
  keyType,
10017
9813
  valueType,
10018
- ...exports_util.normalizeParams(params)
9814
+ ...normalizeParams(params)
10019
9815
  });
10020
9816
  }
10021
9817
  var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
@@ -10035,7 +9831,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
10035
9831
  return new ZodEnum({
10036
9832
  ...def,
10037
9833
  checks: [],
10038
- ...exports_util.normalizeParams(params),
9834
+ ...normalizeParams(params),
10039
9835
  entries: newEntries
10040
9836
  });
10041
9837
  };
@@ -10050,7 +9846,7 @@ var ZodEnum = /* @__PURE__ */ $constructor("ZodEnum", (inst, def) => {
10050
9846
  return new ZodEnum({
10051
9847
  ...def,
10052
9848
  checks: [],
10053
- ...exports_util.normalizeParams(params),
9849
+ ...normalizeParams(params),
10054
9850
  entries: newEntries
10055
9851
  });
10056
9852
  };
@@ -10060,7 +9856,7 @@ function _enum(values, params) {
10060
9856
  return new ZodEnum({
10061
9857
  type: "enum",
10062
9858
  entries,
10063
- ...exports_util.normalizeParams(params)
9859
+ ...normalizeParams(params)
10064
9860
  });
10065
9861
  }
10066
9862
  var ZodLiteral = /* @__PURE__ */ $constructor("ZodLiteral", (inst, def) => {
@@ -10080,7 +9876,7 @@ function literal(value, params) {
10080
9876
  return new ZodLiteral({
10081
9877
  type: "literal",
10082
9878
  values: Array.isArray(value) ? value : [value],
10083
- ...exports_util.normalizeParams(params)
9879
+ ...normalizeParams(params)
10084
9880
  });
10085
9881
  }
10086
9882
  var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
@@ -10089,7 +9885,7 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
10089
9885
  inst._zod.parse = (payload, _ctx) => {
10090
9886
  payload.addIssue = (issue2) => {
10091
9887
  if (typeof issue2 === "string") {
10092
- payload.issues.push(exports_util.issue(issue2, payload.value, def));
9888
+ payload.issues.push(issue(issue2, payload.value, def));
10093
9889
  } else {
10094
9890
  const _issue = issue2;
10095
9891
  if (_issue.fatal)
@@ -10098,13 +9894,13 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
10098
9894
  _issue.input ?? (_issue.input = payload.value);
10099
9895
  _issue.inst ?? (_issue.inst = inst);
10100
9896
  _issue.continue ?? (_issue.continue = true);
10101
- payload.issues.push(exports_util.issue(_issue));
9897
+ payload.issues.push(issue(_issue));
10102
9898
  }
10103
9899
  };
10104
9900
  const output = def.transform(payload.value, payload);
10105
9901
  if (output instanceof Promise) {
10106
- return output.then((output2) => {
10107
- payload.value = output2;
9902
+ return output.then((output) => {
9903
+ payload.value = output;
10108
9904
  return payload;
10109
9905
  });
10110
9906
  }
@@ -10178,7 +9974,7 @@ function nonoptional(innerType, params) {
10178
9974
  return new ZodNonOptional({
10179
9975
  type: "nonoptional",
10180
9976
  innerType,
10181
- ...exports_util.normalizeParams(params)
9977
+ ...normalizeParams(params)
10182
9978
  });
10183
9979
  }
10184
9980
  var ZodCatch = /* @__PURE__ */ $constructor("ZodCatch", (inst, def) => {
@@ -10238,7 +10034,7 @@ function superRefine(fn) {
10238
10034
  const ch = check((payload) => {
10239
10035
  payload.addIssue = (issue2) => {
10240
10036
  if (typeof issue2 === "string") {
10241
- payload.issues.push(exports_util.issue(issue2, payload.value, ch._zod.def));
10037
+ payload.issues.push(issue(issue2, payload.value, ch._zod.def));
10242
10038
  } else {
10243
10039
  const _issue = issue2;
10244
10040
  if (_issue.fatal)
@@ -10247,7 +10043,7 @@ function superRefine(fn) {
10247
10043
  _issue.input ?? (_issue.input = payload.value);
10248
10044
  _issue.inst ?? (_issue.inst = ch);
10249
10045
  _issue.continue ?? (_issue.continue = !ch._zod.def.abort);
10250
- payload.issues.push(exports_util.issue(_issue));
10046
+ payload.issues.push(issue(_issue));
10251
10047
  }
10252
10048
  };
10253
10049
  return fn(payload.value, payload);
@@ -10322,15 +10118,15 @@ var JSONRPCResultResponseSchema = object2({
10322
10118
  }).strict();
10323
10119
  var isJSONRPCResultResponse = (value) => JSONRPCResultResponseSchema.safeParse(value).success;
10324
10120
  var ErrorCode;
10325
- (function(ErrorCode2) {
10326
- ErrorCode2[ErrorCode2["ConnectionClosed"] = -32000] = "ConnectionClosed";
10327
- ErrorCode2[ErrorCode2["RequestTimeout"] = -32001] = "RequestTimeout";
10328
- ErrorCode2[ErrorCode2["ParseError"] = -32700] = "ParseError";
10329
- ErrorCode2[ErrorCode2["InvalidRequest"] = -32600] = "InvalidRequest";
10330
- ErrorCode2[ErrorCode2["MethodNotFound"] = -32601] = "MethodNotFound";
10331
- ErrorCode2[ErrorCode2["InvalidParams"] = -32602] = "InvalidParams";
10332
- ErrorCode2[ErrorCode2["InternalError"] = -32603] = "InternalError";
10333
- ErrorCode2[ErrorCode2["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
10121
+ (function(ErrorCode) {
10122
+ ErrorCode[ErrorCode["ConnectionClosed"] = -32000] = "ConnectionClosed";
10123
+ ErrorCode[ErrorCode["RequestTimeout"] = -32001] = "RequestTimeout";
10124
+ ErrorCode[ErrorCode["ParseError"] = -32700] = "ParseError";
10125
+ ErrorCode[ErrorCode["InvalidRequest"] = -32600] = "InvalidRequest";
10126
+ ErrorCode[ErrorCode["MethodNotFound"] = -32601] = "MethodNotFound";
10127
+ ErrorCode[ErrorCode["InvalidParams"] = -32602] = "InvalidParams";
10128
+ ErrorCode[ErrorCode["InternalError"] = -32603] = "InternalError";
10129
+ ErrorCode[ErrorCode["UrlElicitationRequired"] = -32042] = "UrlElicitationRequired";
10334
10130
  })(ErrorCode || (ErrorCode = {}));
10335
10131
  var JSONRPCErrorResponseSchema = object2({
10336
10132
  jsonrpc: literal(JSONRPC_VERSION),
@@ -10557,7 +10353,7 @@ var RoleSchema = _enum(["user", "assistant"]);
10557
10353
  var AnnotationsSchema = object2({
10558
10354
  audience: array(RoleSchema).optional(),
10559
10355
  priority: number2().min(0).max(1).optional(),
10560
- lastModified: exports_iso.datetime({ offset: true }).optional()
10356
+ lastModified: datetime2({ offset: true }).optional()
10561
10357
  });
10562
10358
  var ResourceSchema = object2({
10563
10359
  ...BaseMetadataSchema.shape,
@@ -11176,8 +10972,8 @@ class Protocol {
11176
10972
  resolver(message);
11177
10973
  } else {
11178
10974
  const errorMessage = message;
11179
- const error2 = new McpError(errorMessage.error.code, errorMessage.error.message, errorMessage.error.data);
11180
- resolver(error2);
10975
+ const error = new McpError(errorMessage.error.code, errorMessage.error.message, errorMessage.error.data);
10976
+ resolver(error);
11181
10977
  }
11182
10978
  } else {
11183
10979
  const messageType = queuedMessage.type === "response" ? "Response" : "Error";
@@ -11221,8 +11017,8 @@ class Protocol {
11221
11017
  nextCursor,
11222
11018
  _meta: {}
11223
11019
  };
11224
- } catch (error2) {
11225
- throw new McpError(ErrorCode.InvalidParams, `Failed to list tasks: ${error2 instanceof Error ? error2.message : String(error2)}`);
11020
+ } catch (error) {
11021
+ throw new McpError(ErrorCode.InvalidParams, `Failed to list tasks: ${error instanceof Error ? error.message : String(error)}`);
11226
11022
  }
11227
11023
  });
11228
11024
  this.setRequestHandler(CancelTaskRequestSchema, async (request, extra) => {
@@ -11244,11 +11040,11 @@ class Protocol {
11244
11040
  _meta: {},
11245
11041
  ...cancelledTask
11246
11042
  };
11247
- } catch (error2) {
11248
- if (error2 instanceof McpError) {
11249
- throw error2;
11043
+ } catch (error) {
11044
+ if (error instanceof McpError) {
11045
+ throw error;
11250
11046
  }
11251
- throw new McpError(ErrorCode.InvalidRequest, `Failed to cancel task: ${error2 instanceof Error ? error2.message : String(error2)}`);
11047
+ throw new McpError(ErrorCode.InvalidRequest, `Failed to cancel task: ${error instanceof Error ? error.message : String(error)}`);
11252
11048
  }
11253
11049
  });
11254
11050
  }
@@ -11304,9 +11100,9 @@ class Protocol {
11304
11100
  this._onclose();
11305
11101
  };
11306
11102
  const _onerror = this.transport?.onerror;
11307
- this._transport.onerror = (error2) => {
11308
- _onerror?.(error2);
11309
- this._onerror(error2);
11103
+ this._transport.onerror = (error) => {
11104
+ _onerror?.(error);
11105
+ this._onerror(error);
11310
11106
  };
11311
11107
  const _onmessage = this._transport?.onmessage;
11312
11108
  this._transport.onmessage = (message, extra) => {
@@ -11337,22 +11133,22 @@ class Protocol {
11337
11133
  controller.abort();
11338
11134
  }
11339
11135
  this._requestHandlerAbortControllers.clear();
11340
- const error2 = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
11136
+ const error = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
11341
11137
  this._transport = undefined;
11342
11138
  this.onclose?.();
11343
11139
  for (const handler of responseHandlers.values()) {
11344
- handler(error2);
11140
+ handler(error);
11345
11141
  }
11346
11142
  }
11347
- _onerror(error2) {
11348
- this.onerror?.(error2);
11143
+ _onerror(error) {
11144
+ this.onerror?.(error);
11349
11145
  }
11350
11146
  _onnotification(notification) {
11351
11147
  const handler = this._notificationHandlers.get(notification.method) ?? this.fallbackNotificationHandler;
11352
11148
  if (handler === undefined) {
11353
11149
  return;
11354
11150
  }
11355
- Promise.resolve().then(() => handler(notification)).catch((error2) => this._onerror(new Error(`Uncaught error in notification handler: ${error2}`)));
11151
+ Promise.resolve().then(() => handler(notification)).catch((error) => this._onerror(new Error(`Uncaught error in notification handler: ${error}`)));
11356
11152
  }
11357
11153
  _onrequest(request, extra) {
11358
11154
  const handler = this._requestHandlers.get(request.method) ?? this.fallbackRequestHandler;
@@ -11372,9 +11168,9 @@ class Protocol {
11372
11168
  type: "error",
11373
11169
  message: errorResponse,
11374
11170
  timestamp: Date.now()
11375
- }, capturedTransport?.sessionId).catch((error2) => this._onerror(new Error(`Failed to enqueue error response: ${error2}`)));
11171
+ }, capturedTransport?.sessionId).catch((error) => this._onerror(new Error(`Failed to enqueue error response: ${error}`)));
11376
11172
  } else {
11377
- capturedTransport?.send(errorResponse).catch((error2) => this._onerror(new Error(`Failed to send an error response: ${error2}`)));
11173
+ capturedTransport?.send(errorResponse).catch((error) => this._onerror(new Error(`Failed to send an error response: ${error}`)));
11378
11174
  }
11379
11175
  return;
11380
11176
  }
@@ -11440,7 +11236,7 @@ class Protocol {
11440
11236
  } else {
11441
11237
  await capturedTransport?.send(response);
11442
11238
  }
11443
- }, async (error2) => {
11239
+ }, async (error) => {
11444
11240
  if (abortController.signal.aborted) {
11445
11241
  return;
11446
11242
  }
@@ -11448,9 +11244,9 @@ class Protocol {
11448
11244
  jsonrpc: "2.0",
11449
11245
  id: request.id,
11450
11246
  error: {
11451
- code: Number.isSafeInteger(error2["code"]) ? error2["code"] : ErrorCode.InternalError,
11452
- message: error2.message ?? "Internal error",
11453
- ...error2["data"] !== undefined && { data: error2["data"] }
11247
+ code: Number.isSafeInteger(error["code"]) ? error["code"] : ErrorCode.InternalError,
11248
+ message: error.message ?? "Internal error",
11249
+ ...error["data"] !== undefined && { data: error["data"] }
11454
11250
  }
11455
11251
  };
11456
11252
  if (relatedTaskId && this._taskMessageQueue) {
@@ -11462,7 +11258,7 @@ class Protocol {
11462
11258
  } else {
11463
11259
  await capturedTransport?.send(errorResponse);
11464
11260
  }
11465
- }).catch((error2) => this._onerror(new Error(`Failed to send response: ${error2}`))).finally(() => {
11261
+ }).catch((error) => this._onerror(new Error(`Failed to send response: ${error}`))).finally(() => {
11466
11262
  if (this._requestHandlerAbortControllers.get(request.id) === abortController) {
11467
11263
  this._requestHandlerAbortControllers.delete(request.id);
11468
11264
  }
@@ -11481,11 +11277,11 @@ class Protocol {
11481
11277
  if (timeoutInfo && responseHandler && timeoutInfo.resetTimeoutOnProgress) {
11482
11278
  try {
11483
11279
  this._resetTimeout(messageId);
11484
- } catch (error2) {
11280
+ } catch (error) {
11485
11281
  this._responseHandlers.delete(messageId);
11486
11282
  this._progressHandlers.delete(messageId);
11487
11283
  this._cleanupTimeout(messageId);
11488
- responseHandler(error2);
11284
+ responseHandler(error);
11489
11285
  return;
11490
11286
  }
11491
11287
  }
@@ -11499,8 +11295,8 @@ class Protocol {
11499
11295
  if (isJSONRPCResultResponse(response)) {
11500
11296
  resolver(response);
11501
11297
  } else {
11502
- const error2 = new McpError(response.error.code, response.error.message, response.error.data);
11503
- resolver(error2);
11298
+ const error = new McpError(response.error.code, response.error.message, response.error.data);
11299
+ resolver(error);
11504
11300
  }
11505
11301
  return;
11506
11302
  }
@@ -11528,8 +11324,8 @@ class Protocol {
11528
11324
  if (isJSONRPCResultResponse(response)) {
11529
11325
  handler(response);
11530
11326
  } else {
11531
- const error2 = McpError.fromError(response.error.code, response.error.message, response.error.data);
11532
- handler(error2);
11327
+ const error = McpError.fromError(response.error.code, response.error.message, response.error.data);
11328
+ handler(error);
11533
11329
  }
11534
11330
  }
11535
11331
  get transport() {
@@ -11544,10 +11340,10 @@ class Protocol {
11544
11340
  try {
11545
11341
  const result = await this.request(request, resultSchema, options);
11546
11342
  yield { type: "result", result };
11547
- } catch (error2) {
11343
+ } catch (error) {
11548
11344
  yield {
11549
11345
  type: "error",
11550
- error: error2 instanceof McpError ? error2 : new McpError(ErrorCode.InternalError, String(error2))
11346
+ error: error instanceof McpError ? error : new McpError(ErrorCode.InternalError, String(error))
11551
11347
  };
11552
11348
  }
11553
11349
  return;
@@ -11562,18 +11358,18 @@ class Protocol {
11562
11358
  throw new McpError(ErrorCode.InternalError, "Task creation did not return a task");
11563
11359
  }
11564
11360
  while (true) {
11565
- const task2 = await this.getTask({ taskId }, options);
11566
- yield { type: "taskStatus", task: task2 };
11567
- if (isTerminal(task2.status)) {
11568
- if (task2.status === "completed") {
11361
+ const task = await this.getTask({ taskId }, options);
11362
+ yield { type: "taskStatus", task };
11363
+ if (isTerminal(task.status)) {
11364
+ if (task.status === "completed") {
11569
11365
  const result = await this.getTaskResult({ taskId }, resultSchema, options);
11570
11366
  yield { type: "result", result };
11571
- } else if (task2.status === "failed") {
11367
+ } else if (task.status === "failed") {
11572
11368
  yield {
11573
11369
  type: "error",
11574
11370
  error: new McpError(ErrorCode.InternalError, `Task ${taskId} failed`)
11575
11371
  };
11576
- } else if (task2.status === "cancelled") {
11372
+ } else if (task.status === "cancelled") {
11577
11373
  yield {
11578
11374
  type: "error",
11579
11375
  error: new McpError(ErrorCode.InternalError, `Task ${taskId} was cancelled`)
@@ -11581,27 +11377,27 @@ class Protocol {
11581
11377
  }
11582
11378
  return;
11583
11379
  }
11584
- if (task2.status === "input_required") {
11380
+ if (task.status === "input_required") {
11585
11381
  const result = await this.getTaskResult({ taskId }, resultSchema, options);
11586
11382
  yield { type: "result", result };
11587
11383
  return;
11588
11384
  }
11589
- const pollInterval = task2.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1000;
11385
+ const pollInterval = task.pollInterval ?? this._options?.defaultTaskPollInterval ?? 1000;
11590
11386
  await new Promise((resolve) => setTimeout(resolve, pollInterval));
11591
11387
  options?.signal?.throwIfAborted();
11592
11388
  }
11593
- } catch (error2) {
11389
+ } catch (error) {
11594
11390
  yield {
11595
11391
  type: "error",
11596
- error: error2 instanceof McpError ? error2 : new McpError(ErrorCode.InternalError, String(error2))
11392
+ error: error instanceof McpError ? error : new McpError(ErrorCode.InternalError, String(error))
11597
11393
  };
11598
11394
  }
11599
11395
  }
11600
11396
  request(request, resultSchema, options) {
11601
11397
  const { relatedRequestId, resumptionToken, onresumptiontoken, task, relatedTask } = options ?? {};
11602
11398
  return new Promise((resolve, reject) => {
11603
- const earlyReject = (error2) => {
11604
- reject(error2);
11399
+ const earlyReject = (error) => {
11400
+ reject(error);
11605
11401
  };
11606
11402
  if (!this._transport) {
11607
11403
  earlyReject(new Error("Not connected"));
@@ -11661,9 +11457,9 @@ class Protocol {
11661
11457
  requestId: messageId,
11662
11458
  reason: String(reason)
11663
11459
  }
11664
- }, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error3) => this._onerror(new Error(`Failed to send cancellation: ${error3}`)));
11665
- const error2 = reason instanceof McpError ? reason : new McpError(ErrorCode.RequestTimeout, String(reason));
11666
- reject(error2);
11460
+ }, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error) => this._onerror(new Error(`Failed to send cancellation: ${error}`)));
11461
+ const error = reason instanceof McpError ? reason : new McpError(ErrorCode.RequestTimeout, String(reason));
11462
+ reject(error);
11667
11463
  };
11668
11464
  this._responseHandlers.set(messageId, (response) => {
11669
11465
  if (options?.signal?.aborted) {
@@ -11679,8 +11475,8 @@ class Protocol {
11679
11475
  } else {
11680
11476
  resolve(parseResult.data);
11681
11477
  }
11682
- } catch (error2) {
11683
- reject(error2);
11478
+ } catch (error) {
11479
+ reject(error);
11684
11480
  }
11685
11481
  });
11686
11482
  options?.signal?.addEventListener("abort", () => {
@@ -11704,14 +11500,14 @@ class Protocol {
11704
11500
  type: "request",
11705
11501
  message: jsonrpcRequest,
11706
11502
  timestamp: Date.now()
11707
- }).catch((error2) => {
11503
+ }).catch((error) => {
11708
11504
  this._cleanupTimeout(messageId);
11709
- reject(error2);
11505
+ reject(error);
11710
11506
  });
11711
11507
  } else {
11712
- this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error2) => {
11508
+ this._transport.send(jsonrpcRequest, { relatedRequestId, resumptionToken, onresumptiontoken }).catch((error) => {
11713
11509
  this._cleanupTimeout(messageId);
11714
- reject(error2);
11510
+ reject(error);
11715
11511
  });
11716
11512
  }
11717
11513
  });
@@ -11735,7 +11531,7 @@ class Protocol {
11735
11531
  this.assertNotificationCapability(notification.method);
11736
11532
  const relatedTaskId = options?.relatedTask?.taskId;
11737
11533
  if (relatedTaskId) {
11738
- const jsonrpcNotification2 = {
11534
+ const jsonrpcNotification = {
11739
11535
  ...notification,
11740
11536
  jsonrpc: "2.0",
11741
11537
  params: {
@@ -11748,7 +11544,7 @@ class Protocol {
11748
11544
  };
11749
11545
  await this._enqueueTaskMessage(relatedTaskId, {
11750
11546
  type: "notification",
11751
- message: jsonrpcNotification2,
11547
+ message: jsonrpcNotification,
11752
11548
  timestamp: Date.now()
11753
11549
  });
11754
11550
  return;
@@ -11765,23 +11561,23 @@ class Protocol {
11765
11561
  if (!this._transport) {
11766
11562
  return;
11767
11563
  }
11768
- let jsonrpcNotification2 = {
11564
+ let jsonrpcNotification = {
11769
11565
  ...notification,
11770
11566
  jsonrpc: "2.0"
11771
11567
  };
11772
11568
  if (options?.relatedTask) {
11773
- jsonrpcNotification2 = {
11774
- ...jsonrpcNotification2,
11569
+ jsonrpcNotification = {
11570
+ ...jsonrpcNotification,
11775
11571
  params: {
11776
- ...jsonrpcNotification2.params,
11572
+ ...jsonrpcNotification.params,
11777
11573
  _meta: {
11778
- ...jsonrpcNotification2.params?._meta || {},
11574
+ ...jsonrpcNotification.params?._meta || {},
11779
11575
  [RELATED_TASK_META_KEY]: options.relatedTask
11780
11576
  }
11781
11577
  }
11782
11578
  };
11783
11579
  }
11784
- this._transport?.send(jsonrpcNotification2, options).catch((error2) => this._onerror(error2));
11580
+ this._transport?.send(jsonrpcNotification, options).catch((error) => this._onerror(error));
11785
11581
  });
11786
11582
  return;
11787
11583
  }
@@ -12401,11 +12197,11 @@ class Server extends Protocol {
12401
12197
  if (!validationResult.valid) {
12402
12198
  throw new McpError(ErrorCode.InvalidParams, `Elicitation response content does not match requested schema: ${validationResult.errorMessage}`);
12403
12199
  }
12404
- } catch (error2) {
12405
- if (error2 instanceof McpError) {
12406
- throw error2;
12200
+ } catch (error) {
12201
+ if (error instanceof McpError) {
12202
+ throw error;
12407
12203
  }
12408
- throw new McpError(ErrorCode.InternalError, `Error validating elicitation response: ${error2 instanceof Error ? error2.message : String(error2)}`);
12204
+ throw new McpError(ErrorCode.InternalError, `Error validating elicitation response: ${error instanceof Error ? error.message : String(error)}`);
12409
12205
  }
12410
12206
  }
12411
12207
  return result;
@@ -12496,8 +12292,8 @@ class StdioServerTransport {
12496
12292
  this._readBuffer.append(chunk);
12497
12293
  this.processReadBuffer();
12498
12294
  };
12499
- this._onerror = (error2) => {
12500
- this.onerror?.(error2);
12295
+ this._onerror = (error) => {
12296
+ this.onerror?.(error);
12501
12297
  };
12502
12298
  }
12503
12299
  async start() {
@@ -12516,8 +12312,8 @@ class StdioServerTransport {
12516
12312
  break;
12517
12313
  }
12518
12314
  this.onmessage?.(message);
12519
- } catch (error2) {
12520
- this.onerror?.(error2);
12315
+ } catch (error) {
12316
+ this.onerror?.(error);
12521
12317
  }
12522
12318
  }
12523
12319
  }
@@ -12609,7 +12405,7 @@ function handleGetConfig(cwd) {
12609
12405
  reasoningLevel: cfg.reasoningLevel ?? "medium",
12610
12406
  observationMode: cfg.observationMode ?? "unified",
12611
12407
  statusline: cfg.statusline ?? "on",
12612
- localContext: cfg.localContext ?? {},
12408
+ redactPatterns: cfg.redactPatterns ?? [],
12613
12409
  injection: cfg.injection ?? {},
12614
12410
  rememberTool: cfg.rememberTool === true,
12615
12411
  enabled: cfg.enabled !== false,
@@ -12908,12 +12704,27 @@ function handleSetConfig(args) {
12908
12704
  saveRootField("statusline", cfg.statusline);
12909
12705
  break;
12910
12706
  }
12911
- case "localContext.maxEntries":
12912
- previousValue = cfg.localContext?.maxEntries;
12913
- if (!cfg.localContext)
12914
- cfg.localContext = {};
12915
- cfg.localContext.maxEntries = Number(value);
12707
+ case "redactPatterns": {
12708
+ const arr = coerceStringArray(value);
12709
+ if (!arr) {
12710
+ return {
12711
+ content: [{ type: "text", text: JSON.stringify({ success: false, error: "redactPatterns must be an array of regex strings" }, null, 2) }],
12712
+ isError: true
12713
+ };
12714
+ }
12715
+ for (const source of arr) {
12716
+ const err = validateRedactPattern(source);
12717
+ if (err) {
12718
+ return {
12719
+ content: [{ type: "text", text: JSON.stringify({ success: false, error: err }, null, 2) }],
12720
+ isError: true
12721
+ };
12722
+ }
12723
+ }
12724
+ previousValue = cfg.redactPatterns;
12725
+ cfg.redactPatterns = arr;
12916
12726
  break;
12727
+ }
12917
12728
  case "injection.sessionStart": {
12918
12729
  const arr = validateComponentArray(value, SESSION_START_COMPONENTS, field);
12919
12730
  if (!Array.isArray(arr))
@@ -13069,7 +12880,7 @@ function handleSetConfig(args) {
13069
12880
  reasoningLevel: cfg.reasoningLevel ?? "medium",
13070
12881
  observationMode: cfg.observationMode ?? "unified",
13071
12882
  statusline: cfg.statusline ?? "on",
13072
- localContext: cfg.localContext ?? {},
12883
+ redactPatterns: cfg.redactPatterns ?? [],
13073
12884
  injection: cfg.injection ?? {},
13074
12885
  rememberTool: cfg.rememberTool === true,
13075
12886
  enabled: cfg.enabled !== false,
@@ -13124,8 +12935,8 @@ var REMEMBER_TOOL = {
13124
12935
  };
13125
12936
  async function runMcpServer() {
13126
12937
  setDetectedHost("claude_code");
13127
- const config2 = loadConfig();
13128
- if (!config2) {
12938
+ const config = loadConfig();
12939
+ if (!config) {
13129
12940
  console.error("[honcho-mcp] Not configured. Run: honcho init");
13130
12941
  process.exit(1);
13131
12942
  }
@@ -13137,13 +12948,13 @@ async function runMcpServer() {
13137
12948
  tools: {}
13138
12949
  }
13139
12950
  });
13140
- const honcho = new import_sdk.Honcho(getHonchoClientOptions(config2));
12951
+ const honcho = new import_sdk.Honcho(getHonchoClientOptions(config));
13141
12952
  const honchoDialectic = new import_sdk.Honcho({
13142
- ...getHonchoClientOptions(config2),
12953
+ ...getHonchoClientOptions(config),
13143
12954
  timeout: DIALECTIC_TIMEOUT_MS,
13144
12955
  maxRetries: 0
13145
12956
  });
13146
- const rememberEnabled = config2.rememberTool === true;
12957
+ const rememberEnabled = config.rememberTool === true;
13147
12958
  server.setRequestHandler(ListToolsRequestSchema, async () => {
13148
12959
  return {
13149
12960
  tools: [
@@ -13325,7 +13136,7 @@ async function runMcpServer() {
13325
13136
  "contextRefresh.skipDialectic",
13326
13137
  "reasoningLevel",
13327
13138
  "observationMode",
13328
- "localContext.maxEntries",
13139
+ "redactPatterns",
13329
13140
  "injection.sessionStart",
13330
13141
  "injection.perTurn",
13331
13142
  "injection.showContents",
@@ -13342,7 +13153,7 @@ async function runMcpServer() {
13342
13153
  ]
13343
13154
  },
13344
13155
  value: {
13345
- description: 'New value. For sessions.set: {path, name}. For sessions.remove: {path}. For injection.sessionStart / injection.perTurn / injection.showContents: a string array of component names (e.g. ["summary","peerCard"]).'
13156
+ description: 'New value. For sessions.set: {path, name}. For sessions.remove: {path}. For injection.sessionStart / injection.perTurn / injection.showContents: a string array of component names (e.g. ["summary","peerCard"]). For redactPatterns: a string array of regexes redacted from tool summaries in addition to the built-in secret patterns.'
13346
13157
  },
13347
13158
  confirm: {
13348
13159
  type: "boolean",
@@ -13366,9 +13177,9 @@ async function runMcpServer() {
13366
13177
  }
13367
13178
  if (name === "list_conclusions" || name === "delete_conclusion" || name === "query_conclusions") {
13368
13179
  try {
13369
- const observationMode = getObservationMode(config2);
13370
- const scopePeer = observationMode === "unified" ? await honcho.peer(config2.peerName) : await honcho.peer(config2.aiPeer);
13371
- const conclusionScope = scopePeer.conclusionsOf(config2.peerName);
13180
+ const observationMode = getObservationMode(config);
13181
+ const scopePeer = observationMode === "unified" ? await honcho.peer(config.peerName) : await honcho.peer(config.aiPeer);
13182
+ const conclusionScope = scopePeer.conclusionsOf(config.peerName);
13372
13183
  if (name === "list_conclusions") {
13373
13184
  const page = args?.page ?? 1;
13374
13185
  const size = Math.min(args?.size ?? 20, 100);
@@ -13403,9 +13214,9 @@ async function runMcpServer() {
13403
13214
  return {
13404
13215
  content: [{ type: "text", text: `Deleted conclusion ${id}` }]
13405
13216
  };
13406
- } catch (error2) {
13217
+ } catch (error) {
13407
13218
  return {
13408
- content: [{ type: "text", text: `Error: ${error2 instanceof Error ? error2.message : String(error2)}` }],
13219
+ content: [{ type: "text", text: `Error: ${error instanceof Error ? error.message : String(error)}` }],
13409
13220
  isError: true
13410
13221
  };
13411
13222
  }
@@ -13413,12 +13224,12 @@ async function runMcpServer() {
13413
13224
  const sessionName = getSessionName(cwd);
13414
13225
  try {
13415
13226
  const session = await honcho.session(sessionName);
13416
- const observationMode = getObservationMode(config2);
13417
- const userPeer = await honcho.peer(config2.peerName);
13418
- const aiPeer = observationMode === "directional" ? await honcho.peer(config2.aiPeer) : null;
13227
+ const observationMode = getObservationMode(config);
13228
+ const userPeer = await honcho.peer(config.peerName);
13229
+ const aiPeer = observationMode === "directional" ? await honcho.peer(config.aiPeer) : null;
13419
13230
  const activePeer = observationMode === "unified" ? userPeer : aiPeer;
13420
- const chatTarget = observationMode === "unified" ? undefined : config2.peerName;
13421
- const contextTarget = observationMode === "unified" ? undefined : config2.peerName;
13231
+ const chatTarget = observationMode === "unified" ? undefined : config.peerName;
13232
+ const contextTarget = observationMode === "unified" ? undefined : config.peerName;
13422
13233
  switch (name) {
13423
13234
  case "search": {
13424
13235
  const query = args?.query;
@@ -13426,7 +13237,7 @@ async function runMcpServer() {
13426
13237
  const scope = args?.scope ?? "session";
13427
13238
  const [messages, conclusions] = await Promise.all([
13428
13239
  scope === "workspace" ? honcho.search(query, { limit }) : session.search(query, { limit }),
13429
- activePeer.conclusionsOf(config2.peerName).query(query, limit).catch(() => [])
13240
+ activePeer.conclusionsOf(config.peerName).query(query, limit).catch(() => [])
13430
13241
  ]);
13431
13242
  const results = {
13432
13243
  messages: messages.map((msg) => ({
@@ -13451,7 +13262,7 @@ async function runMcpServer() {
13451
13262
  }
13452
13263
  case "chat": {
13453
13264
  const query = args?.query;
13454
- const reasoningLevel = args?.reasoning_level ?? config2.reasoningLevel ?? "medium";
13265
+ const reasoningLevel = args?.reasoning_level ?? config.reasoningLevel ?? "medium";
13455
13266
  let deadlineTimer;
13456
13267
  const deadline = new Promise((_, reject) => {
13457
13268
  deadlineTimer = setTimeout(() => reject(new Error(`Dialectic call exceeded ${DIALECTIC_TIMEOUT_MS}ms`)), DIALECTIC_TIMEOUT_MS);
@@ -13549,7 +13360,7 @@ ${blocks.join(`
13549
13360
  }
13550
13361
  case "create_conclusion": {
13551
13362
  const content = args?.content;
13552
- const conclusions = await activePeer.conclusionsOf(config2.peerName).create({
13363
+ const conclusions = await activePeer.conclusionsOf(config.peerName).create({
13553
13364
  content,
13554
13365
  sessionId: session.id
13555
13366
  });
@@ -13617,12 +13428,12 @@ ${card.map((item) => `- ${item}`).join(`
13617
13428
  isError: true
13618
13429
  };
13619
13430
  }
13620
- } catch (error2) {
13431
+ } catch (error) {
13621
13432
  return {
13622
13433
  content: [
13623
13434
  {
13624
13435
  type: "text",
13625
- text: `Error: ${error2 instanceof Error ? error2.message : String(error2)}`
13436
+ text: `Error: ${error instanceof Error ? error.message : String(error)}`
13626
13437
  }
13627
13438
  ],
13628
13439
  isError: true
@@ -13636,5 +13447,5 @@ ${card.map((item) => `- ${item}`).join(`
13636
13447
  // mcp-server.ts
13637
13448
  await runMcpServer();
13638
13449
 
13639
- //# debugId=C6E919F30B16A36B64756E2164756E21
13450
+ //# debugId=30806F3977EF08F164756E2164756E21
13640
13451
  //# sourceMappingURL=mcp-server.js.map