@aws/nx-plugin-mcp 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/aws-nx-mcp.js CHANGED
@@ -49,7 +49,7 @@ fs = __toESM(fs, 1);
49
49
  let node_path = require("node:path");
50
50
  node_path = __toESM(node_path, 1);
51
51
  let node_url = require("node:url");
52
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v3/helpers/util.js
52
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/helpers/util.js
53
53
  var util;
54
54
  (function(util) {
55
55
  util.assertEqual = (_) => {};
@@ -145,7 +145,7 @@ const getParsedType = (data) => {
145
145
  }
146
146
  };
147
147
  //#endregion
148
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v3/ZodError.js
148
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/ZodError.js
149
149
  const ZodIssueCode = util.arrayToEnum([
150
150
  "invalid_type",
151
151
  "invalid_literal",
@@ -255,7 +255,7 @@ ZodError.create = (issues) => {
255
255
  return new ZodError(issues);
256
256
  };
257
257
  //#endregion
258
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v3/locales/en.js
258
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/locales/en.js
259
259
  const errorMap = (issue, _ctx) => {
260
260
  let message;
261
261
  switch (issue.code) {
@@ -333,13 +333,13 @@ const errorMap = (issue, _ctx) => {
333
333
  return { message };
334
334
  };
335
335
  //#endregion
336
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v3/errors.js
336
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/errors.js
337
337
  let overrideErrorMap = errorMap;
338
338
  function getErrorMap() {
339
339
  return overrideErrorMap;
340
340
  }
341
341
  //#endregion
342
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v3/helpers/parseUtil.js
342
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/helpers/parseUtil.js
343
343
  const makeIssue = (params) => {
344
344
  const { data, path, errorMaps, issueData } = params;
345
345
  const fullPath = [...path, ...issueData.path || []];
@@ -443,14 +443,14 @@ const isDirty = (x) => x.status === "dirty";
443
443
  const isValid = (x) => x.status === "valid";
444
444
  const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
445
445
  //#endregion
446
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v3/helpers/errorUtil.js
446
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/helpers/errorUtil.js
447
447
  var errorUtil;
448
448
  (function(errorUtil) {
449
449
  errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
450
450
  errorUtil.toString = (message) => typeof message === "string" ? message : message?.message;
451
451
  })(errorUtil || (errorUtil = {}));
452
452
  //#endregion
453
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v3/types.js
453
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v3/types.js
454
454
  var ParseInputLazyPath = class {
455
455
  constructor(parent, value, path, key) {
456
456
  this._cachedPath = [];
@@ -3611,7 +3611,7 @@ ZodNullable$1.create;
3611
3611
  ZodEffects.createWithPreprocess;
3612
3612
  ZodPipeline.create;
3613
3613
  //#endregion
3614
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/util.js
3614
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
3615
3615
  function getEnumValues(entries) {
3616
3616
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
3617
3617
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -3623,14 +3623,22 @@ function jsonStringifyReplacer(_, value) {
3623
3623
  if (typeof value === "bigint") return value.toString();
3624
3624
  return value;
3625
3625
  }
3626
- function cached(getter) {
3627
- return { get value() {
3628
- {
3629
- const value = getter();
3630
- Object.defineProperty(this, "value", { value });
3631
- return value;
3626
+ var Cached = class {
3627
+ constructor(getter) {
3628
+ this._getter = getter;
3629
+ this._value = void 0;
3630
+ }
3631
+ get value() {
3632
+ const getter = this._getter;
3633
+ if (getter !== void 0) {
3634
+ this._value = getter();
3635
+ this._getter = void 0;
3632
3636
  }
3633
- } };
3637
+ return this._value;
3638
+ }
3639
+ };
3640
+ function cached(getter) {
3641
+ return new Cached(getter);
3634
3642
  }
3635
3643
  function nullish(input) {
3636
3644
  return input === null || input === void 0;
@@ -3655,6 +3663,58 @@ function assignProp(target, prop, value) {
3655
3663
  configurable: true
3656
3664
  });
3657
3665
  }
3666
+ /**
3667
+ * Whichever object a def's `shape` currently answers from: the one the caller passed until the first read, the frozen copy after it.
3668
+ *
3669
+ * Its keys and descriptors read without invoking anything, which is what lets a discriminated union check its discriminator, and the cycle walk read a shape, without resolving a getter that references the schema being constructed. A def that answers `shape` from an accessor of its own has none.
3670
+ */
3671
+ function rawShape(def) {
3672
+ const desc = Object.getOwnPropertyDescriptor(def, "shape");
3673
+ return desc?.get ? desc.get.raw : desc?.value;
3674
+ }
3675
+ function sourceShape(schema) {
3676
+ return rawShape(schema._zod.def) ?? schema._zod.def.shape;
3677
+ }
3678
+ function deferProp(target, key, getter) {
3679
+ Object.defineProperty(target, key, {
3680
+ get() {
3681
+ const value = getter();
3682
+ assignProp(this, key, value);
3683
+ return value;
3684
+ },
3685
+ enumerable: true,
3686
+ configurable: true
3687
+ });
3688
+ }
3689
+ function putProp(target, key, value) {
3690
+ if (key in target) assignProp(target, key, value);
3691
+ else target[key] = value;
3692
+ }
3693
+ /**
3694
+ * Copies `keys` of `source`'s shape onto `target`, each value passed through `wrap`.
3695
+ *
3696
+ * A key the source has resolved is copied through now, so the derived shape states it outright and nothing has to resolve it to learn what it holds. A key the source still defers stays deferred, and reads back through the source's own `shape`, so it resolves once and both shapes get that one schema.
3697
+ */
3698
+ function mirrorShape(target, source, keys, wrap) {
3699
+ const raw = sourceShape(source);
3700
+ for (const key of keys) {
3701
+ const desc = Object.getOwnPropertyDescriptor(raw, key);
3702
+ if (!desc.enumerable) continue;
3703
+ if (desc.get) deferProp(target, key, () => {
3704
+ const value = source._zod.def.shape[key];
3705
+ return wrap ? wrap(value, key) : value;
3706
+ });
3707
+ else putProp(target, key, wrap ? wrap(desc.value, key) : desc.value);
3708
+ }
3709
+ }
3710
+ function mirrorProps(target, source) {
3711
+ for (const key of Reflect.ownKeys(source)) {
3712
+ const desc = Object.getOwnPropertyDescriptor(source, key);
3713
+ if (!desc.enumerable) continue;
3714
+ if (desc.get) deferProp(target, key, () => source[key]);
3715
+ else putProp(target, key, desc.value);
3716
+ }
3717
+ }
3658
3718
  function mergeDefs(...defs) {
3659
3719
  const mergedDescriptors = {};
3660
3720
  for (const def of defs) {
@@ -3745,39 +3805,39 @@ const NUMBER_FORMAT_RANGES = /*@__PURE__*/ (() => ({
3745
3805
  float32: [-34028234663852886e22, 34028234663852886e22],
3746
3806
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
3747
3807
  }))();
3808
+ const BIGINT_FORMAT_RANGES = {
3809
+ int64: [/* @__PURE__*/ BigInt("-9223372036854775808"), /* @__PURE__*/ BigInt("9223372036854775807")],
3810
+ uint64: [/* @__PURE__*/ BigInt(0), /* @__PURE__*/ BigInt("18446744073709551615")]
3811
+ };
3748
3812
  function pick$2(schema, mask) {
3749
3813
  const currDef = schema._zod.def;
3750
3814
  const checks = currDef.checks;
3751
3815
  if (checks && checks.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements");
3752
- return clone(schema, mergeDefs(schema._zod.def, {
3753
- get shape() {
3754
- const newShape = {};
3755
- for (const key of Reflect.ownKeys(mask)) {
3756
- if (!Object.prototype.hasOwnProperty.call(currDef.shape, key)) throw new Error(`Unrecognized key: "${String(key)}"`);
3757
- if (!mask[key]) continue;
3758
- assignProp(newShape, key, currDef.shape[key]);
3759
- }
3760
- assignProp(this, "shape", newShape);
3761
- return newShape;
3762
- },
3816
+ const newShape = {};
3817
+ mirrorShape(newShape, schema, maskedKeys(schema, mask));
3818
+ return clone(schema, mergeDefs(currDef, {
3819
+ shape: newShape,
3763
3820
  checks: []
3764
3821
  }));
3765
3822
  }
3823
+ function maskedKeys(schema, mask) {
3824
+ const raw = sourceShape(schema);
3825
+ const keys = [];
3826
+ for (const key of Reflect.ownKeys(mask)) {
3827
+ if (!Object.getOwnPropertyDescriptor(raw, key)?.enumerable) throw new Error(`Unrecognized key: "${String(key)}"`);
3828
+ if (mask[key]) keys.push(key);
3829
+ }
3830
+ return keys;
3831
+ }
3766
3832
  function omit(schema, mask) {
3767
3833
  const currDef = schema._zod.def;
3768
3834
  const checks = currDef.checks;
3769
3835
  if (checks && checks.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements");
3770
- return clone(schema, mergeDefs(schema._zod.def, {
3771
- get shape() {
3772
- const newShape = { ...schema._zod.def.shape };
3773
- for (const key of Reflect.ownKeys(mask)) {
3774
- if (!Object.prototype.hasOwnProperty.call(currDef.shape, key)) throw new Error(`Unrecognized key: "${String(key)}"`);
3775
- if (!mask[key]) continue;
3776
- delete newShape[key];
3777
- }
3778
- assignProp(this, "shape", newShape);
3779
- return newShape;
3780
- },
3836
+ const omitted = new Set(maskedKeys(schema, mask));
3837
+ const newShape = {};
3838
+ mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)).filter((key) => !omitted.has(key)));
3839
+ return clone(schema, mergeDefs(currDef, {
3840
+ shape: newShape,
3781
3841
  checks: []
3782
3842
  }));
3783
3843
  }
@@ -3785,41 +3845,29 @@ function extend$1(schema, shape) {
3785
3845
  if (!isPlainObject$2(shape)) throw new Error("Invalid input to extend: expected a plain object");
3786
3846
  const checks = schema._zod.def.checks;
3787
3847
  if (checks && checks.length > 0) {
3788
- const existingShape = schema._zod.def.shape;
3848
+ const existingShape = sourceShape(schema);
3789
3849
  for (const key of Reflect.ownKeys(shape)) if (Object.getOwnPropertyDescriptor(existingShape, key) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
3790
3850
  }
3791
- return clone(schema, mergeDefs(schema._zod.def, { get shape() {
3792
- const _shape = {
3793
- ...schema._zod.def.shape,
3794
- ...shape
3795
- };
3796
- assignProp(this, "shape", _shape);
3797
- return _shape;
3798
- } }));
3851
+ return clone(schema, mergeDefs(schema._zod.def, { shape: extended(schema, shape) }));
3852
+ }
3853
+ function extended(schema, shape) {
3854
+ const newShape = {};
3855
+ mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)));
3856
+ mirrorProps(newShape, shape);
3857
+ return newShape;
3799
3858
  }
3800
3859
  function safeExtend(schema, shape) {
3801
3860
  if (!isPlainObject$2(shape)) throw new Error("Invalid input to safeExtend: expected a plain object");
3802
- return clone(schema, mergeDefs(schema._zod.def, { get shape() {
3803
- const _shape = {
3804
- ...schema._zod.def.shape,
3805
- ...shape
3806
- };
3807
- assignProp(this, "shape", _shape);
3808
- return _shape;
3809
- } }));
3861
+ return clone(schema, mergeDefs(schema._zod.def, { shape: extended(schema, shape) }));
3810
3862
  }
3811
3863
  function merge$1(a, b) {
3812
3864
  if (!b?._zod?.def) throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");
3813
3865
  if (a._zod.def.checks?.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
3866
+ const newShape = {};
3867
+ mirrorShape(newShape, a, Reflect.ownKeys(sourceShape(a)));
3868
+ mirrorShape(newShape, b, Reflect.ownKeys(sourceShape(b)));
3814
3869
  return clone(a, mergeDefs(a._zod.def, {
3815
- get shape() {
3816
- const _shape = {
3817
- ...a._zod.def.shape,
3818
- ...b._zod.def.shape
3819
- };
3820
- assignProp(this, "shape", _shape);
3821
- return _shape;
3822
- },
3870
+ shape: newShape,
3823
3871
  get catchall() {
3824
3872
  return b._zod.def.catchall;
3825
3873
  },
@@ -3829,47 +3877,25 @@ function merge$1(a, b) {
3829
3877
  function partial(Class, schema, mask, name = "partial") {
3830
3878
  const checks = schema._zod.def.checks;
3831
3879
  if (checks && checks.length > 0) throw new Error(`.${name}() cannot be used on object schemas containing refinements`);
3880
+ const selected = mask ? new Set(maskedKeys(schema, mask)) : void 0;
3881
+ const newShape = {};
3882
+ mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), Class && ((value, key) => selected && !selected.has(key) ? value : new Class({
3883
+ type: "optional",
3884
+ innerType: value
3885
+ })));
3832
3886
  return clone(schema, mergeDefs(schema._zod.def, {
3833
- get shape() {
3834
- const oldShape = schema._zod.def.shape;
3835
- const shape = { ...oldShape };
3836
- if (mask) for (const key of Reflect.ownKeys(mask)) {
3837
- if (!Object.prototype.hasOwnProperty.call(oldShape, key)) throw new Error(`Unrecognized key: "${String(key)}"`);
3838
- if (!mask[key]) continue;
3839
- shape[key] = Class ? new Class({
3840
- type: "optional",
3841
- innerType: oldShape[key]
3842
- }) : oldShape[key];
3843
- }
3844
- else for (const key of Reflect.ownKeys(oldShape)) shape[key] = Class ? new Class({
3845
- type: "optional",
3846
- innerType: oldShape[key]
3847
- }) : oldShape[key];
3848
- assignProp(this, "shape", shape);
3849
- return shape;
3850
- },
3887
+ shape: newShape,
3851
3888
  checks: []
3852
3889
  }));
3853
3890
  }
3854
3891
  function required(Class, schema, mask) {
3855
- return clone(schema, mergeDefs(schema._zod.def, { get shape() {
3856
- const oldShape = schema._zod.def.shape;
3857
- const shape = { ...oldShape };
3858
- if (mask) for (const key of Reflect.ownKeys(mask)) {
3859
- if (!Object.prototype.hasOwnProperty.call(shape, key)) throw new Error(`Unrecognized key: "${String(key)}"`);
3860
- if (!mask[key]) continue;
3861
- shape[key] = new Class({
3862
- type: "nonoptional",
3863
- innerType: oldShape[key]
3864
- });
3865
- }
3866
- else for (const key of Reflect.ownKeys(oldShape)) shape[key] = new Class({
3867
- type: "nonoptional",
3868
- innerType: oldShape[key]
3869
- });
3870
- assignProp(this, "shape", shape);
3871
- return shape;
3872
- } }));
3892
+ const selected = mask ? new Set(maskedKeys(schema, mask)) : void 0;
3893
+ const newShape = {};
3894
+ mirrorShape(newShape, schema, Reflect.ownKeys(sourceShape(schema)), (value, key) => selected && !selected.has(key) ? value : new Class({
3895
+ type: "nonoptional",
3896
+ innerType: value
3897
+ }));
3898
+ return clone(schema, mergeDefs(schema._zod.def, { shape: newShape }));
3873
3899
  }
3874
3900
  function aborted(x, startIndex = 0) {
3875
3901
  if (x.aborted === true) return true;
@@ -3905,11 +3931,15 @@ function finalizeIssue(iss, ctx, config) {
3905
3931
  }
3906
3932
  const schemaError = iss.schema !== iss.inst ? iss.schema?._zod.def?.error : void 0;
3907
3933
  const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(schemaError?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
3908
- const { inst: _inst, schema: _schema, continue: _continue, input: _input, ...rest } = iss;
3909
- rest.path ?? (rest.path = []);
3910
- rest.message = message;
3911
- if (ctx?.reportInput) rest.input = _input;
3912
- return rest;
3934
+ const full = {};
3935
+ for (const k of Object.keys(iss)) {
3936
+ if (k === "inst" || k === "schema" || k === "continue" || k === "input" || k === "__proto__") continue;
3937
+ full[k] = iss[k];
3938
+ }
3939
+ full.path ?? (full.path = []);
3940
+ full.message = message;
3941
+ if (ctx?.reportInput) full.input = iss.input;
3942
+ return full;
3913
3943
  }
3914
3944
  const highSurrogate = /[\uD800-\uDBFF]/;
3915
3945
  function codePointLength(str) {
@@ -3979,6 +4009,23 @@ function own$7(inst, key, value, enumerable = true) {
3979
4009
  function hide(inst, key, value) {
3980
4010
  return own$7(inst, key, value, false);
3981
4011
  }
4012
+ /** Adds members a table derives from the instance: each builds on first read and shadows as own data, and assignment shadows the same way, as when these were own properties. */
4013
+ function derived(computes, table) {
4014
+ for (const key in computes) {
4015
+ const compute = computes[key];
4016
+ Object.defineProperty(table, key, {
4017
+ configurable: true,
4018
+ enumerable: true,
4019
+ get() {
4020
+ return own$7(this, key, compute(this));
4021
+ },
4022
+ set(value) {
4023
+ own$7(this, key, value);
4024
+ }
4025
+ });
4026
+ }
4027
+ return table;
4028
+ }
3982
4029
  function defineBound(proto, key, fn) {
3983
4030
  Object.defineProperty(proto, key, {
3984
4031
  configurable: true,
@@ -4087,9 +4134,9 @@ function constantCatch(value) {
4087
4134
  return fn;
4088
4135
  }
4089
4136
  //#endregion
4090
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/core.js
4137
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
4091
4138
  var _a$1;
4092
- const _zodDesc$1 = {
4139
+ const _zodDesc = {
4093
4140
  value: void 0,
4094
4141
  enumerable: false
4095
4142
  };
@@ -4126,14 +4173,13 @@ function $constructor(name, initializer, proto, params) {
4126
4173
  const initialized = protoMembers && /* @__PURE__ */ new WeakSet();
4127
4174
  function init(inst, def) {
4128
4175
  if (!inst._zod) {
4129
- _zodDesc$1.value = new Internals(def);
4176
+ _zodDesc.value = new Internals(def);
4130
4177
  try {
4131
- Object.defineProperty(inst, "_zod", _zodDesc$1);
4178
+ Object.defineProperty(inst, "_zod", _zodDesc);
4132
4179
  } finally {
4133
- _zodDesc$1.value = void 0;
4180
+ _zodDesc.value = void 0;
4134
4181
  }
4135
- }
4136
- if (inst._zod.traits.has(name)) return;
4182
+ } else if (inst._zod.traits.has(name)) return;
4137
4183
  inst._zod.traits.add(name);
4138
4184
  initializer(inst, def);
4139
4185
  if (initialized) {
@@ -4194,7 +4240,7 @@ function config(newConfig) {
4194
4240
  return globalConfig;
4195
4241
  }
4196
4242
  //#endregion
4197
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/errors.js
4243
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
4198
4244
  function _getMessage() {
4199
4245
  const internals = this._zod;
4200
4246
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -4209,10 +4255,6 @@ const _messageDesc = {
4209
4255
  enumerable: true,
4210
4256
  configurable: true
4211
4257
  };
4212
- const _zodDesc = {
4213
- value: void 0,
4214
- enumerable: false
4215
- };
4216
4258
  const _issuesDesc = {
4217
4259
  value: void 0,
4218
4260
  enumerable: false
@@ -4220,11 +4262,8 @@ const _issuesDesc = {
4220
4262
  const _installedToString = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
4221
4263
  const initializer$1 = (inst, def) => {
4222
4264
  inst.name = "$ZodError";
4223
- _zodDesc.value = inst._zod;
4224
- Object.defineProperty(inst, "_zod", _zodDesc);
4225
4265
  _issuesDesc.value = def;
4226
4266
  Object.defineProperty(inst, "issues", _issuesDesc);
4227
- _zodDesc.value = void 0;
4228
4267
  _issuesDesc.value = void 0;
4229
4268
  Object.defineProperty(inst, "message", _messageDesc);
4230
4269
  const proto = Object.getPrototypeOf(inst);
@@ -4317,7 +4356,7 @@ function formatError(error, mapper = (issue) => issue.message) {
4317
4356
  return fieldErrors;
4318
4357
  }
4319
4358
  //#endregion
4320
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/parse.js
4359
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
4321
4360
  function finalizeParams(callee, params) {
4322
4361
  return {
4323
4362
  callee: params?.callee ?? callee,
@@ -4376,15 +4415,31 @@ const _safeParse = (_Err) => (schema, value, _ctx) => {
4376
4415
  issues: []
4377
4416
  }, ctx);
4378
4417
  if (result instanceof Promise) throw new $ZodAsyncError();
4379
- return result.issues.length ? {
4380
- success: false,
4381
- error: new (_Err ?? $ZodError)(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
4382
- } : {
4418
+ return result.issues.length ? failure(_Err, result.issues, ctx) : {
4383
4419
  success: true,
4384
4420
  data: result.value
4385
4421
  };
4386
4422
  };
4387
4423
  const safeParse$2 = /* @__PURE__*/ _safeParse($ZodRealError);
4424
+ function failure(Err, issues, ctx) {
4425
+ let error;
4426
+ return {
4427
+ success: false,
4428
+ get error() {
4429
+ if (!error) {
4430
+ error = new Err(issues.map((iss) => finalizeIssue(iss, ctx, config())));
4431
+ issues = void 0;
4432
+ ctx = void 0;
4433
+ }
4434
+ return error;
4435
+ },
4436
+ set error(e) {
4437
+ error = e;
4438
+ issues = void 0;
4439
+ ctx = void 0;
4440
+ }
4441
+ };
4442
+ }
4388
4443
  const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
4389
4444
  const ctx = _ctx ? {
4390
4445
  ..._ctx,
@@ -4395,15 +4450,62 @@ const _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
4395
4450
  issues: []
4396
4451
  }, ctx);
4397
4452
  if (result instanceof Promise) result = await result;
4398
- return result.issues.length ? {
4399
- success: false,
4400
- error: new _Err(result.issues.map((iss) => finalizeIssue(iss, ctx, config())))
4401
- } : {
4453
+ return result.issues.length ? failure(_Err, result.issues, ctx) : {
4402
4454
  success: true,
4403
4455
  data: result.value
4404
4456
  };
4405
4457
  };
4406
4458
  const safeParseAsync$2 = /* @__PURE__*/ _safeParseAsync($ZodRealError);
4459
+ const COMPILE_INVALID = /* @__PURE__ */ Symbol.for("zod.compile.invalid");
4460
+ const COMPILE_FALLBACK = /* @__PURE__ */ Symbol.for("zod.compile.fallback");
4461
+ const validate = ((schema, value, _ctx) => {
4462
+ const validator = schema._zod.bag.validator;
4463
+ if (validator !== void 0) {
4464
+ if (validator(value) !== COMPILE_INVALID) return true;
4465
+ if (validator.definite === true && _ctx === void 0) return false;
4466
+ }
4467
+ return validateFallback(schema, value, _ctx);
4468
+ });
4469
+ function validateFallback(schema, value, _ctx) {
4470
+ const ctx = _ctx ? {
4471
+ ..._ctx,
4472
+ async: false,
4473
+ abortEarly: true
4474
+ } : {
4475
+ async: false,
4476
+ abortEarly: true
4477
+ };
4478
+ const fallbackRun = schema._zod.bag.fallbackRun;
4479
+ let result;
4480
+ if (fallbackRun) {
4481
+ ctx[COMPILE_FALLBACK] = true;
4482
+ result = fallbackRun({
4483
+ value,
4484
+ issues: []
4485
+ }, ctx);
4486
+ } else result = schema._zod.run({
4487
+ value,
4488
+ issues: []
4489
+ }, ctx);
4490
+ if (result instanceof Promise) throw new $ZodAsyncError();
4491
+ return result.issues.length === 0;
4492
+ }
4493
+ const validateAsync$1 = async (schema, value, _ctx) => {
4494
+ const ctx = _ctx ? {
4495
+ ..._ctx,
4496
+ async: true,
4497
+ abortEarly: true
4498
+ } : {
4499
+ async: true,
4500
+ abortEarly: true
4501
+ };
4502
+ let result = schema._zod.run({
4503
+ value,
4504
+ issues: []
4505
+ }, ctx);
4506
+ if (result instanceof Promise) result = await result;
4507
+ return result.issues.length === 0;
4508
+ };
4407
4509
  const _encode = (_Err) => {
4408
4510
  const parse = _parse(_Err);
4409
4511
  const fn = (schema, value, _ctx, _params) => {
@@ -4461,7 +4563,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
4461
4563
  return _safeParseAsync(_Err)(schema, value, _ctx);
4462
4564
  };
4463
4565
  //#endregion
4464
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/regexes.js
4566
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
4465
4567
  /**
4466
4568
  * @deprecated CUID v1 is deprecated by its authors due to information leakage
4467
4569
  * (timestamps embedded in the id). Use {@link cuid2} instead.
@@ -4488,8 +4590,8 @@ const uuid = (version) => {
4488
4590
  return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`);
4489
4591
  };
4490
4592
  /** Practical email validation */
4491
- const email = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
4492
- const _emoji$1 = `^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;
4593
+ const email = /^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;
4594
+ const _emoji$1 = `^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;
4493
4595
  function emoji() {
4494
4596
  return new RegExp(_emoji$1, "u");
4495
4597
  }
@@ -4498,7 +4600,7 @@ const ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:
4498
4600
  const cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/;
4499
4601
  const cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
4500
4602
  const base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/;
4501
- const base64url = /^[A-Za-z0-9_-]*$/;
4603
+ const base64url = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/;
4502
4604
  const httpProtocol = /^https?$/;
4503
4605
  const e164 = /^\+[1-9]\d{6,14}$/;
4504
4606
  const dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
@@ -4526,10 +4628,7 @@ function datetime$1(args) {
4526
4628
  const timeRegex = args.local ? `${qualified}|${timeSource({ precision: args.precision })}` : qualified;
4527
4629
  return new RegExp(`^${dateSource}T(?:${timeRegex})$`);
4528
4630
  }
4529
- const string$3 = (params) => {
4530
- const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
4531
- return new RegExp(`^${regex}$`);
4532
- };
4631
+ const anyString = /^[\s\S]{0,}$/;
4533
4632
  const integer = /^-?\d+$/;
4534
4633
  const number$1 = /^-?\d+(?:\.\d+)?$/;
4535
4634
  const boolean$1 = /^(?:true|false)$/i;
@@ -4537,7 +4636,7 @@ const _null$3 = /^null$/i;
4537
4636
  const lowercase = /^[^A-Z]*$/;
4538
4637
  const uppercase = /^[^a-z]*$/;
4539
4638
  //#endregion
4540
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/checks.js
4639
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
4541
4640
  const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
4542
4641
  var _a;
4543
4642
  inst._zod ?? (inst._zod = {});
@@ -4557,14 +4656,6 @@ const numericOriginMap = {
4557
4656
  const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst, def) => {
4558
4657
  $ZodCheck.init(inst, def);
4559
4658
  const origin = numericOriginMap[typeof def.value];
4560
- inst._zod.onattach.push((inst) => {
4561
- const bag = inst._zod.bag;
4562
- const curr = (def.inclusive ? bag.maximum : bag.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
4563
- if (def.value < curr) {
4564
- if (def.inclusive) bag.maximum = def.value;
4565
- else bag.exclusiveMaximum = def.value;
4566
- }
4567
- });
4568
4659
  inst._zod.check = (payload) => {
4569
4660
  if (def.inclusive ? payload.value <= def.value : payload.value < def.value) return;
4570
4661
  payload.issues.push({
@@ -4581,14 +4672,6 @@ const $ZodCheckLessThan = /*@__PURE__*/ $constructor("$ZodCheckLessThan", (inst,
4581
4672
  const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan", (inst, def) => {
4582
4673
  $ZodCheck.init(inst, def);
4583
4674
  const origin = numericOriginMap[typeof def.value];
4584
- inst._zod.onattach.push((inst) => {
4585
- const bag = inst._zod.bag;
4586
- const curr = (def.inclusive ? bag.minimum : bag.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
4587
- if (def.value > curr) {
4588
- if (def.inclusive) bag.minimum = def.value;
4589
- else bag.exclusiveMinimum = def.value;
4590
- }
4591
- });
4592
4675
  inst._zod.check = (payload) => {
4593
4676
  if (def.inclusive ? payload.value >= def.value : payload.value > def.value) return;
4594
4677
  payload.issues.push({
@@ -4604,10 +4687,6 @@ const $ZodCheckGreaterThan = /*@__PURE__*/ $constructor("$ZodCheckGreaterThan",
4604
4687
  });
4605
4688
  const $ZodCheckMultipleOf = /*@__PURE__*/ $constructor("$ZodCheckMultipleOf", (inst, def) => {
4606
4689
  $ZodCheck.init(inst, def);
4607
- inst._zod.onattach.push((inst) => {
4608
- var _a;
4609
- (_a = inst._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
4610
- });
4611
4690
  inst._zod.check = (payload) => {
4612
4691
  if (typeof payload.value !== typeof def.value) throw new Error("Cannot mix number and bigint in multiple_of check.");
4613
4692
  if (typeof payload.value === "bigint" ? def.value !== BigInt(0) && payload.value % def.value === BigInt(0) : floatSafeRemainder(payload.value, def.value) === 0) return;
@@ -4627,13 +4706,6 @@ const $ZodCheckNumberFormat = /*@__PURE__*/ $constructor("$ZodCheckNumberFormat"
4627
4706
  const isInt = def.format?.includes("int");
4628
4707
  const origin = isInt ? "int" : "number";
4629
4708
  const [minimum, maximum] = NUMBER_FORMAT_RANGES[def.format];
4630
- inst._zod.onattach.push((inst) => {
4631
- const bag = inst._zod.bag;
4632
- bag.format = def.format;
4633
- bag.minimum = minimum;
4634
- bag.maximum = maximum;
4635
- if (isInt) bag.pattern = integer;
4636
- });
4637
4709
  inst._zod.check = (payload) => {
4638
4710
  const input = payload.value;
4639
4711
  if (isInt) {
@@ -4696,10 +4768,6 @@ const $ZodCheckMaxLength = /*@__PURE__*/ $constructor("$ZodCheckMaxLength", (ins
4696
4768
  var _a;
4697
4769
  $ZodCheck.init(inst, def);
4698
4770
  (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);
4699
- inst._zod.onattach.push((inst) => {
4700
- const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
4701
- if (def.maximum < curr) inst._zod.bag.maximum = def.maximum;
4702
- });
4703
4771
  inst._zod.check = (payload) => {
4704
4772
  const input = payload.value;
4705
4773
  const units = input.length;
@@ -4720,10 +4788,6 @@ const $ZodCheckMinLength = /*@__PURE__*/ $constructor("$ZodCheckMinLength", (ins
4720
4788
  var _a;
4721
4789
  $ZodCheck.init(inst, def);
4722
4790
  (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);
4723
- inst._zod.onattach.push((inst) => {
4724
- const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
4725
- if (def.minimum > curr) inst._zod.bag.minimum = def.minimum;
4726
- });
4727
4791
  inst._zod.check = (payload) => {
4728
4792
  const input = payload.value;
4729
4793
  const units = input.length;
@@ -4744,12 +4808,6 @@ const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals"
4744
4808
  var _a;
4745
4809
  $ZodCheck.init(inst, def);
4746
4810
  (_a = inst._zod.def).when ?? (_a.when = _whenHasLength);
4747
- inst._zod.onattach.push((inst) => {
4748
- const bag = inst._zod.bag;
4749
- bag.minimum = def.length;
4750
- bag.maximum = def.length;
4751
- bag.length = def.length;
4752
- });
4753
4811
  inst._zod.check = (payload) => {
4754
4812
  const input = payload.value;
4755
4813
  const units = input.length;
@@ -4777,14 +4835,6 @@ const $ZodCheckLengthEquals = /*@__PURE__*/ $constructor("$ZodCheckLengthEquals"
4777
4835
  const $ZodCheckStringFormat = /*@__PURE__*/ $constructor("$ZodCheckStringFormat", (inst, def) => {
4778
4836
  var _a, _b;
4779
4837
  $ZodCheck.init(inst, def);
4780
- inst._zod.onattach.push((inst) => {
4781
- const bag = inst._zod.bag;
4782
- bag.format = def.format;
4783
- if (def.pattern) {
4784
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
4785
- bag.patterns.add(def.pattern);
4786
- }
4787
- });
4788
4838
  if (def.pattern) (_a = inst._zod).check ?? (_a.check = (payload) => {
4789
4839
  def.pattern.lastIndex = 0;
4790
4840
  if (def.pattern.test(payload.value)) return;
@@ -4827,13 +4877,7 @@ const $ZodCheckUpperCase = /*@__PURE__*/ $constructor("$ZodCheckUpperCase", (ins
4827
4877
  const $ZodCheckIncludes = /*@__PURE__*/ $constructor("$ZodCheckIncludes", (inst, def) => {
4828
4878
  $ZodCheck.init(inst, def);
4829
4879
  const escapedRegex = escapeRegex(def.includes);
4830
- const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position},}${escapedRegex}` : escapedRegex);
4831
- def.pattern = pattern;
4832
- inst._zod.onattach.push((inst) => {
4833
- const bag = inst._zod.bag;
4834
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
4835
- bag.patterns.add(pattern);
4836
- });
4880
+ def.pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position},}${escapedRegex}` : escapedRegex);
4837
4881
  inst._zod.check = (payload) => {
4838
4882
  if (payload.value.includes(def.includes, def.position)) return;
4839
4883
  payload.issues.push({
@@ -4851,11 +4895,6 @@ const $ZodCheckStartsWith = /*@__PURE__*/ $constructor("$ZodCheckStartsWith", (i
4851
4895
  $ZodCheck.init(inst, def);
4852
4896
  const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
4853
4897
  def.pattern ?? (def.pattern = pattern);
4854
- inst._zod.onattach.push((inst) => {
4855
- const bag = inst._zod.bag;
4856
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
4857
- bag.patterns.add(pattern);
4858
- });
4859
4898
  inst._zod.check = (payload) => {
4860
4899
  if (payload.value.startsWith(def.prefix)) return;
4861
4900
  payload.issues.push({
@@ -4873,11 +4912,6 @@ const $ZodCheckEndsWith = /*@__PURE__*/ $constructor("$ZodCheckEndsWith", (inst,
4873
4912
  $ZodCheck.init(inst, def);
4874
4913
  const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
4875
4914
  def.pattern ?? (def.pattern = pattern);
4876
- inst._zod.onattach.push((inst) => {
4877
- const bag = inst._zod.bag;
4878
- bag.patterns ?? (bag.patterns = /* @__PURE__ */ new Set());
4879
- bag.patterns.add(pattern);
4880
- });
4881
4915
  inst._zod.check = (payload) => {
4882
4916
  if (payload.value.endsWith(def.suffix)) return;
4883
4917
  payload.issues.push({
@@ -4898,7 +4932,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
4898
4932
  };
4899
4933
  });
4900
4934
  //#endregion
4901
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/doc.js
4935
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
4902
4936
  var Doc = class {
4903
4937
  constructor(args = [], closed = {}) {
4904
4938
  this.content = [];
@@ -4908,8 +4942,11 @@ var Doc = class {
4908
4942
  }
4909
4943
  indented(fn) {
4910
4944
  this.indent += 1;
4911
- fn(this);
4912
- this.indent -= 1;
4945
+ try {
4946
+ fn(this);
4947
+ } finally {
4948
+ this.indent -= 1;
4949
+ }
4913
4950
  }
4914
4951
  write(arg) {
4915
4952
  if (typeof arg === "function") {
@@ -4929,14 +4966,14 @@ var Doc = class {
4929
4966
  }
4930
4967
  };
4931
4968
  //#endregion
4932
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/versions.js
4969
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
4933
4970
  const version$2 = {
4934
4971
  major: 4,
4935
- minor: 5,
4936
- patch: 4
4972
+ minor: 6,
4973
+ patch: 5
4937
4974
  };
4938
4975
  //#endregion
4939
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/schemas.js
4976
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
4940
4977
  const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
4941
4978
  var _a;
4942
4979
  inst ?? (inst = {});
@@ -5025,15 +5062,26 @@ const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
5025
5062
  }
5026
5063
  });
5027
5064
  /** The Standard Schema surface for `inst`. Shared so wrappers can extend it without forcing it. */
5028
- const toStandardResult = (r) => r.success ? { value: r.data } : { issues: r.error?.issues };
5065
+ const toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => finalizeIssue(iss, ctx, config())) } : { value: r.value };
5066
+ async function validateAsync(inst, value) {
5067
+ const ctx = { async: true };
5068
+ return toStandardResult(await inst._zod.run({
5069
+ value,
5070
+ issues: []
5071
+ }, ctx), ctx);
5072
+ }
5029
5073
  function standardProps(inst) {
5030
5074
  return {
5031
5075
  validate: (value) => {
5076
+ const ctx = { async: false };
5032
5077
  try {
5033
- return toStandardResult(safeParse$2(inst, value));
5034
- } catch (_) {
5035
- return safeParseAsync$2(inst, value).then(toStandardResult);
5036
- }
5078
+ const r = inst._zod.run({
5079
+ value,
5080
+ issues: []
5081
+ }, ctx);
5082
+ if (!(r instanceof Promise)) return toStandardResult(r, ctx);
5083
+ } catch (_) {}
5084
+ return validateAsync(inst, value);
5037
5085
  },
5038
5086
  vendor: "zod",
5039
5087
  version: 1
@@ -5041,7 +5089,7 @@ function standardProps(inst) {
5041
5089
  }
5042
5090
  const $ZodString = /*@__PURE__*/ $constructor("$ZodString", (inst, def) => {
5043
5091
  $ZodType.init(inst, def);
5044
- inst._zod.pattern = [...inst?._zod.bag?.patterns ?? []].pop() ?? string$3(inst._zod.bag);
5092
+ inst._zod.pattern = def.pattern ?? anyString;
5045
5093
  inst._zod.parse = (payload, _) => {
5046
5094
  if (def.coerce) try {
5047
5095
  payload.value = String(payload.value);
@@ -5085,10 +5133,27 @@ const $ZodEmail = /*@__PURE__*/ $constructor("$ZodEmail", (inst, def) => {
5085
5133
  def.pattern ?? (def.pattern = email);
5086
5134
  $ZodStringFormat.init(inst, def);
5087
5135
  });
5088
- /** Parses a URL for `$ZodURL`, applying the one guard the URL constructor cannot express. Returns the parsed URL, or a code naming the stage that rejected it — the runtime needs that distinction to pick an issue note, and compiled code only needs to know it is not a URL. */
5136
+ function canParseURL(input) {
5137
+ try {
5138
+ if (typeof URL !== "undefined" && typeof URL.canParse === "function") return URL.canParse(input);
5139
+ new URL(input);
5140
+ return true;
5141
+ } catch {
5142
+ return false;
5143
+ }
5144
+ }
5145
+ function validateURL(trimmed, def) {
5146
+ if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) return canParseURL(trimmed) || 2;
5147
+ return parseURLObject(trimmed, def);
5148
+ }
5149
+ /** Parses a URL while preserving the non-normalizing HTTP guard. */
5089
5150
  function parseURLObject(trimmed, def) {
5090
5151
  if (!def.normalize && def.protocol?.source === httpProtocol.source && !/^https?:\/\//i.test(trimmed)) return 1;
5091
5152
  try {
5153
+ if (typeof URL !== "undefined") {
5154
+ const URLStatic = URL;
5155
+ if (typeof URLStatic.parse === "function") return URLStatic.parse(trimmed) ?? 2;
5156
+ }
5092
5157
  return new URL(trimmed);
5093
5158
  } catch {
5094
5159
  return 2;
@@ -5112,7 +5177,7 @@ const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
5112
5177
  inst._zod.check = (payload) => {
5113
5178
  try {
5114
5179
  const trimmed = payload.value.trim();
5115
- const url = parseURLObject(trimmed, def);
5180
+ const url = validateURL(trimmed, def);
5116
5181
  if (url === 1) {
5117
5182
  payload.issues.push({
5118
5183
  code: "invalid_format",
@@ -5134,6 +5199,10 @@ const $ZodURL = /*@__PURE__*/ $constructor("$ZodURL", (inst, def) => {
5134
5199
  });
5135
5200
  return;
5136
5201
  }
5202
+ if (url === true) {
5203
+ payload.value = stripTabAndNewline(trimmed);
5204
+ return;
5205
+ }
5137
5206
  if (def.hostname && !urlHostnameOk(url, def.hostname)) payload.issues.push({
5138
5207
  code: "invalid_format",
5139
5208
  format: "url",
@@ -5202,12 +5271,6 @@ const $ZodKSUID = /*@__PURE__*/ $constructor("$ZodKSUID", (inst, def) => {
5202
5271
  const $ZodISODateTime = /*@__PURE__*/ $constructor("$ZodISODateTime", (inst, def) => {
5203
5272
  def.pattern ?? (def.pattern = datetime$1(def));
5204
5273
  $ZodStringFormat.init(inst, def);
5205
- if (def.local || def.precision === -1) {
5206
- inst._zod.bag.laxFormat = true;
5207
- inst._zod.onattach.push((s) => {
5208
- s._zod.bag.laxFormat = true;
5209
- });
5210
- }
5211
5274
  });
5212
5275
  const $ZodISODate = /*@__PURE__*/ $constructor("$ZodISODate", (inst, def) => {
5213
5276
  def.pattern ?? (def.pattern = date);
@@ -5224,23 +5287,16 @@ const $ZodISODuration = /*@__PURE__*/ $constructor("$ZodISODuration", (inst, def
5224
5287
  const $ZodIPv4 = /*@__PURE__*/ $constructor("$ZodIPv4", (inst, def) => {
5225
5288
  def.pattern ?? (def.pattern = ipv4);
5226
5289
  $ZodStringFormat.init(inst, def);
5227
- inst._zod.bag.format = `ipv4`;
5228
5290
  });
5229
5291
  /** An IPv6 address is written with hex digits, colons and dots, and nothing else. The guard is what makes the check below an IPv6 check: `new URL("http://[...]")` parses an authority, not an address, so `@` and `\` re-delimit it and `"::@1\\"` validates against the host `0.0.0.1`. The URL parser also deletes ASCII tab, LF and CR rather than failing, which is how `"::1\n"` validated as `::1`. */
5230
5292
  const ipv6Alphabet = /^[0-9a-fA-F:.]+$/;
5231
5293
  function isValidIPv6(value) {
5232
5294
  if (!ipv6Alphabet.test(value)) return false;
5233
- try {
5234
- new URL(`http://[${value}]`);
5235
- return true;
5236
- } catch {
5237
- return false;
5238
- }
5295
+ return canParseURL(`http://[${value}]`);
5239
5296
  }
5240
5297
  const $ZodIPv6 = /*@__PURE__*/ $constructor("$ZodIPv6", (inst, def) => {
5241
5298
  def.pattern ?? (def.pattern = ipv6);
5242
5299
  $ZodStringFormat.init(inst, def);
5243
- inst._zod.bag.format = `ipv6`;
5244
5300
  inst._zod.check = (payload) => {
5245
5301
  if (!isValidIPv6(payload.value)) payload.issues.push({
5246
5302
  code: "invalid_format",
@@ -5289,10 +5345,10 @@ function isValidBase64(data) {
5289
5345
  return false;
5290
5346
  }
5291
5347
  }
5348
+ const base64Charset = /^[0-9a-zA-Z+/]*={0,2}$/;
5292
5349
  const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
5293
- def.pattern ?? (def.pattern = base64);
5350
+ def.pattern ?? (def.pattern = base64Charset);
5294
5351
  $ZodStringFormat.init(inst, def);
5295
- inst._zod.bag.contentEncoding = "base64";
5296
5352
  inst._zod.check = (payload) => {
5297
5353
  if (isValidBase64(payload.value)) return;
5298
5354
  payload.issues.push({
@@ -5304,15 +5360,15 @@ const $ZodBase64 = /*@__PURE__*/ $constructor("$ZodBase64", (inst, def) => {
5304
5360
  });
5305
5361
  };
5306
5362
  });
5363
+ const base64urlCharset = /^[A-Za-z0-9_-]*$/;
5307
5364
  function isValidBase64URL(data) {
5308
- if (!base64url.test(data)) return false;
5365
+ if (!base64urlCharset.test(data)) return false;
5309
5366
  const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
5310
5367
  return isValidBase64(base64.padEnd(Math.ceil(base64.length / 4) * 4, "="));
5311
5368
  }
5312
5369
  const $ZodBase64URL = /*@__PURE__*/ $constructor("$ZodBase64URL", (inst, def) => {
5313
- def.pattern ?? (def.pattern = base64url);
5370
+ def.pattern ?? (def.pattern = base64urlCharset);
5314
5371
  $ZodStringFormat.init(inst, def);
5315
- inst._zod.bag.contentEncoding = "base64url";
5316
5372
  inst._zod.check = (payload) => {
5317
5373
  if (isValidBase64URL(payload.value)) return;
5318
5374
  payload.issues.push({
@@ -5358,7 +5414,7 @@ const $ZodJWT = /*@__PURE__*/ $constructor("$ZodJWT", (inst, def) => {
5358
5414
  });
5359
5415
  const $ZodNumber = /*@__PURE__*/ $constructor("$ZodNumber", (inst, def) => {
5360
5416
  $ZodType.init(inst, def);
5361
- inst._zod.pattern = inst._zod.bag.pattern ?? number$1;
5417
+ inst._zod.pattern = number$1;
5362
5418
  inst._zod.parse = (payload, _ctx) => {
5363
5419
  if (def.coerce) try {
5364
5420
  payload.value = Number(payload.value);
@@ -5451,6 +5507,7 @@ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
5451
5507
  }
5452
5508
  payload.value = memo ? memo.alloc(inst, payload, Array(input.length), ctx) : Array(input.length);
5453
5509
  const proms = [];
5510
+ const abortEarly = ctx?.abortEarly;
5454
5511
  for (let i = 0; i < input.length; i++) {
5455
5512
  const item = input[i];
5456
5513
  const result = def.element._zod.run({
@@ -5458,7 +5515,10 @@ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
5458
5515
  issues: []
5459
5516
  }, ctx);
5460
5517
  if (result instanceof Promise) proms.push(result.then((result) => handleArrayResult(result, payload, i)));
5461
- else handleArrayResult(result, payload, i);
5518
+ else {
5519
+ handleArrayResult(result, payload, i);
5520
+ if (abortEarly && result.issues.length !== 0 && aborted(result)) break;
5521
+ }
5462
5522
  }
5463
5523
  if (proms.length) return Promise.all(proms).then(() => payload);
5464
5524
  return payload;
@@ -5482,7 +5542,7 @@ function handlePropertyResult(result, final, key, input, optin, optout) {
5482
5542
  return;
5483
5543
  }
5484
5544
  if (result.value === void 0) {
5485
- if (isPresent) final.value[key] = void 0;
5545
+ if (isPresent || optin === "defaulted" && !isOptionalOut) final.value[key] = void 0;
5486
5546
  } else final.value[key] = result.value;
5487
5547
  }
5488
5548
  const NO_SYMBOL_KEYS = [];
@@ -5502,14 +5562,19 @@ function normalizeDef(def) {
5502
5562
  optionalKeys: new Set(okeys)
5503
5563
  };
5504
5564
  }
5505
- function handleCatchall(proms, input, payload, ctx, def, inst) {
5565
+ function handleCatchall(proms, input, payload, ctx, def, inst, abortEarly) {
5506
5566
  const unrecognized = [];
5507
5567
  const keySet = def.keySet;
5508
5568
  const _catchall = def.catchall._zod;
5509
5569
  const t = _catchall.def.type;
5510
5570
  const optin = _catchall.optin;
5511
5571
  const optout = _catchall.optout;
5572
+ let seen = 0;
5512
5573
  for (const key in input) {
5574
+ if (abortEarly && payload.issues.length !== seen) {
5575
+ if (aborted(payload, seen)) break;
5576
+ seen = payload.issues.length;
5577
+ }
5513
5578
  if (keySet.has(key)) continue;
5514
5579
  if (key === "__proto__") {
5515
5580
  if (t === "never") unrecognized.push(key);
@@ -5538,18 +5603,19 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
5538
5603
  return payload;
5539
5604
  });
5540
5605
  }
5541
- const propShapes = /* @__PURE__ */ new WeakMap();
5542
5606
  const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
5543
5607
  $ZodType.init(inst, def);
5544
- if (!Object.getOwnPropertyDescriptor(def, "shape")?.get) {
5545
- const sh = def.shape;
5546
- propShapes.set(def, sh);
5547
- Object.defineProperty(def, "shape", { get: () => {
5608
+ const desc = Object.getOwnPropertyDescriptor(def, "shape");
5609
+ const sh = desc?.get ? desc.get.raw : def.shape ?? {};
5610
+ if (sh) {
5611
+ const get = () => {
5548
5612
  const newSh = { ...sh };
5549
5613
  Object.defineProperty(def, "shape", { value: newSh });
5550
- propShapes.set(def, newSh);
5614
+ get.raw = newSh;
5551
5615
  return newSh;
5552
- } });
5616
+ };
5617
+ get.raw = sh;
5618
+ Object.defineProperty(def, "shape", { get });
5553
5619
  }
5554
5620
  const _normalized = cached(() => normalizeDef(def));
5555
5621
  defineLazyInternal(inst, "propValues", (zod) => {
@@ -5565,7 +5631,7 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
5565
5631
  }
5566
5632
  return propValues;
5567
5633
  });
5568
- const isObject$1 = isObject;
5634
+ const isObject$2 = isObject;
5569
5635
  const catchall = def.catchall;
5570
5636
  let value;
5571
5637
  const memo = globalConfig.memoizer;
@@ -5573,7 +5639,7 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
5573
5639
  inst._zod.parse = (payload, ctx) => {
5574
5640
  value ?? (value = _normalized.value);
5575
5641
  const input = payload.value;
5576
- if (!isObject$1(input)) {
5642
+ if (!isObject$2(input)) {
5577
5643
  payload.issues.push({
5578
5644
  expected: "object",
5579
5645
  code: "invalid_type",
@@ -5585,7 +5651,13 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
5585
5651
  payload.value = memo ? memo.alloc(inst, payload, {}, ctx) : {};
5586
5652
  const proms = [];
5587
5653
  const shape = value.shape;
5654
+ const abortEarly = ctx?.abortEarly;
5655
+ let seen = payload.issues.length;
5588
5656
  for (const key of value.allKeys) {
5657
+ if (abortEarly && payload.issues.length !== seen) {
5658
+ if (aborted(payload, seen)) break;
5659
+ seen = payload.issues.length;
5660
+ }
5589
5661
  if (key === "__proto__") continue;
5590
5662
  const el = shape[key];
5591
5663
  const optin = el._zod.optin;
@@ -5598,7 +5670,7 @@ const $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
5598
5670
  else handlePropertyResult(r, payload, key, input, optin, optout);
5599
5671
  }
5600
5672
  if (!catchall) return proms.length ? Promise.all(proms).then(() => payload) : payload;
5601
- return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
5673
+ return handleCatchall(proms, input, payload, ctx, _normalized.value, inst, abortEarly === true);
5602
5674
  };
5603
5675
  });
5604
5676
  const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
@@ -5617,10 +5689,16 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
5617
5689
  });
5618
5690
  const parseStr = (k) => `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`;
5619
5691
  const prefixStr = (id, k) => `
5692
+ let ${id}_ab = false;
5620
5693
  for (let i = 0; i < ${id}.issues.length; i++) {
5621
5694
  const iss = ${id}.issues[i];
5622
5695
  iss.path = iss.path ? [${k}, ...iss.path] : [${k}];
5623
5696
  payload.issues.push(iss);
5697
+ if (iss.continue !== true) ${id}_ab = true;
5698
+ }
5699
+ if (${id}_ab && ctx && ctx.abortEarly) {
5700
+ payload.value = newResult;
5701
+ return payload;
5624
5702
  }`;
5625
5703
  doc.write(`const input = payload.value;`);
5626
5704
  const ids = Object.create(null);
@@ -5662,6 +5740,10 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
5662
5740
  input: undefined,
5663
5741
  path: [${k}]
5664
5742
  });
5743
+ if (ctx && ctx.abortEarly) {
5744
+ payload.value = newResult;
5745
+ return payload;
5746
+ }
5665
5747
  }
5666
5748
 
5667
5749
  if (${id}_present) {
@@ -5669,26 +5751,25 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
5669
5751
  }
5670
5752
 
5671
5753
  `);
5672
- else doc.write(`
5754
+ else {
5755
+ doc.write(`
5673
5756
  if (${id}.issues.length) {${prefixStr(id, k)}
5674
5757
  }
5675
-
5676
- if (${id}.value === undefined) {
5677
- if (${isPresent}) {
5678
- newResult[${k}] = undefined;
5679
- }
5680
- } else {
5758
+ `);
5759
+ if (optin === "defaulted") doc.write(`newResult[${k}] = ${id}.value;`);
5760
+ else doc.write(`
5761
+ if (${id}.value !== undefined || ${isPresent}) {
5681
5762
  newResult[${k}] = ${id}.value;
5682
5763
  }
5683
-
5684
5764
  `);
5765
+ }
5685
5766
  }
5686
5767
  doc.write(`payload.value = newResult;`);
5687
5768
  doc.write(`return payload;`);
5688
5769
  return doc.compile();
5689
5770
  };
5690
5771
  let fastpass;
5691
- const isObject$2 = isObject;
5772
+ const isObject$1 = isObject;
5692
5773
  const jit = !globalConfig.jitless;
5693
5774
  const fastEnabled = jit && allowsEval.value;
5694
5775
  const catchall = def.catchall;
@@ -5696,7 +5777,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
5696
5777
  inst._zod.parse = (payload, ctx) => {
5697
5778
  value ?? (value = _normalized.value);
5698
5779
  const input = payload.value;
5699
- if (!isObject$2(input)) {
5780
+ if (!isObject$1(input)) {
5700
5781
  payload.issues.push({
5701
5782
  expected: "object",
5702
5783
  code: "invalid_type",
@@ -5709,7 +5790,7 @@ const $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) =>
5709
5790
  if (!fastpass) fastpass = generateFastpass(def.shape);
5710
5791
  payload = fastpass(payload, ctx);
5711
5792
  if (!catchall) return payload;
5712
- return handleCatchall([], input, payload, ctx, value, inst);
5793
+ return handleCatchall([], input, payload, ctx, value, inst, ctx?.abortEarly === true);
5713
5794
  }
5714
5795
  return superParse(payload, ctx);
5715
5796
  };
@@ -5769,39 +5850,42 @@ const $ZodUnion = /*@__PURE__*/ $constructor("$ZodUnion", (inst, def) => {
5769
5850
  });
5770
5851
  };
5771
5852
  });
5853
+ function discriminatorMap(def) {
5854
+ const map = /* @__PURE__ */ new Map();
5855
+ for (const option of def.options) {
5856
+ const values = option._zod.propValues?.[def.discriminator];
5857
+ if (!values || values.size === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);
5858
+ for (const value of values) if (map.has(value)) {
5859
+ if (value !== void 0) throw new Error(`Duplicate discriminator value "${String(value)}"`);
5860
+ map.set(value, null);
5861
+ } else map.set(value, option);
5862
+ }
5863
+ return map;
5864
+ }
5772
5865
  const $ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnion", (inst, def) => {
5773
5866
  def.inclusive = false;
5774
5867
  $ZodUnion.init(inst, def);
5775
5868
  const _super = inst._zod.parse;
5776
5869
  defineLazyInternal(inst, "propValues", (zod) => {
5777
5870
  const propValues = {};
5871
+ let undefinedCount = 0;
5778
5872
  for (const option of zod.def.options) {
5779
5873
  const pv = option._zod.propValues;
5780
5874
  if (!pv || Object.keys(pv).length === 0) throw new Error(`Invalid discriminated union option at index "${zod.def.options.indexOf(option)}"`);
5875
+ if (pv[zod.def.discriminator]?.has(void 0)) undefinedCount++;
5781
5876
  for (const [k, v] of Object.entries(pv)) {
5782
5877
  if (!Object.prototype.hasOwnProperty.call(propValues, k)) assignProp(propValues, k, /* @__PURE__ */ new Set());
5783
5878
  for (const val of v) propValues[k].add(val);
5784
5879
  }
5785
5880
  }
5881
+ if (!zod.def.unionFallback && undefinedCount > 1) propValues[zod.def.discriminator]?.delete(void 0);
5786
5882
  return propValues;
5787
5883
  });
5788
5884
  def.options.forEach((option, i) => {
5789
- const propShape = propShapes.get(option._zod.def);
5885
+ const propShape = rawShape(option._zod.def);
5790
5886
  if (propShape && !Object.prototype.hasOwnProperty.call(propShape, def.discriminator)) throw new Error(`Invalid discriminated union option at index "${i}"`);
5791
5887
  });
5792
- const disc = cached(() => {
5793
- const opts = def.options;
5794
- const map = /* @__PURE__ */ new Map();
5795
- for (const o of opts) {
5796
- const values = o._zod.propValues?.[def.discriminator];
5797
- if (!values || values.size === 0) throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);
5798
- for (const v of values) {
5799
- if (map.has(v)) throw new Error(`Duplicate discriminator value "${String(v)}"`);
5800
- map.set(v, o);
5801
- }
5802
- }
5803
- return map;
5804
- });
5888
+ const disc = cached(() => discriminatorMap(def));
5805
5889
  inst._zod.parse = (payload, ctx) => {
5806
5890
  const input = payload.value;
5807
5891
  if (!isObject(input)) {
@@ -5813,15 +5897,16 @@ const $ZodDiscriminatedUnion = /*@__PURE__*/ $constructor("$ZodDiscriminatedUnio
5813
5897
  });
5814
5898
  return payload;
5815
5899
  }
5816
- const opt = disc.value.get(input?.[def.discriminator]);
5817
- if (opt) return opt._zod.run(payload, ctx);
5900
+ const value = input?.[def.discriminator];
5901
+ const opt = disc.value.get(value);
5902
+ if (opt && (value !== void 0 || ctx.direction !== "backward")) return opt._zod.run(payload, ctx);
5818
5903
  if (def.unionFallback || ctx.direction === "backward") return _super(payload, ctx);
5819
5904
  payload.issues.push({
5820
5905
  code: "invalid_union",
5821
5906
  errors: [],
5822
5907
  note: "No matching discriminator",
5823
5908
  discriminator: def.discriminator,
5824
- options: Array.from(disc.value.keys()),
5909
+ options: Array.from(disc.value.keys()).filter((value) => disc.value.get(value) !== null),
5825
5910
  input,
5826
5911
  path: [def.discriminator],
5827
5912
  inst
@@ -6080,8 +6165,10 @@ const $ZodEnum = /*@__PURE__*/ $constructor("$ZodEnum", (inst, def) => {
6080
6165
  const values = getEnumValues(def.entries);
6081
6166
  const valuesSet = new Set(values);
6082
6167
  inst._zod.values = valuesSet;
6083
- const patternValues = values.filter((k) => propertyKeyTypes.has(typeof k));
6084
- inst._zod.pattern = new RegExp(patternValues.length ? `^(${patternValues.map((o) => escapeRegex(o.toString())).join("|")})$` : "^[^\\s\\S]$");
6168
+ defineLazyInternal(inst, "pattern", (zod) => {
6169
+ const patternValues = getEnumValues(zod.def.entries).filter((k) => propertyKeyTypes.has(typeof k));
6170
+ return new RegExp(patternValues.length ? `^(${patternValues.map((o) => escapeRegex(o.toString())).join("|")})$` : "^[^\\s\\S]$");
6171
+ });
6085
6172
  inst._zod.parse = (payload, _ctx) => {
6086
6173
  const input = payload.value;
6087
6174
  if (valuesSet.has(input)) return payload;
@@ -6098,7 +6185,10 @@ const $ZodLiteral = /*@__PURE__*/ $constructor("$ZodLiteral", (inst, def) => {
6098
6185
  $ZodType.init(inst, def);
6099
6186
  const values = new Set(def.values);
6100
6187
  inst._zod.values = values;
6101
- inst._zod.pattern = new RegExp(def.values.length ? `^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$` : "^[^\\s\\S]$");
6188
+ defineLazyInternal(inst, "pattern", (zod) => {
6189
+ const vals = zod.def.values;
6190
+ return new RegExp(vals.length ? `^(${vals.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$` : "^[^\\s\\S]$");
6191
+ });
6102
6192
  inst._zod.parse = (payload, _ctx) => {
6103
6193
  const input = payload.value;
6104
6194
  if (values.has(input)) return payload;
@@ -6336,7 +6426,7 @@ function handleRefineResult(result, payload, input, inst) {
6336
6426
  }
6337
6427
  }
6338
6428
  //#endregion
6339
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/memoizer.js
6429
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
6340
6430
  var $ZodCyclicError = class extends Error {
6341
6431
  constructor() {
6342
6432
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -6346,6 +6436,9 @@ var $ZodCyclicError = class extends Error {
6346
6436
  /** Keyed off the context object every schema in one parse call already shares. */
6347
6437
  const STATE = "~memo";
6348
6438
  const NO_ISSUES = [];
6439
+ function isRef(value) {
6440
+ return value !== null && typeof value === "object";
6441
+ }
6349
6442
  function cloneIssues(issues) {
6350
6443
  return issues.map((iss) => iss.path ? {
6351
6444
  ...iss,
@@ -6353,22 +6446,44 @@ function cloneIssues(issues) {
6353
6446
  } : { ...iss });
6354
6447
  }
6355
6448
  const recursive = /*@__PURE__*/ new WeakMap();
6449
+ /** What the walk established, in order of certainty: ordered so the strongest answer among children wins. */
6450
+ const NONE = 0;
6451
+ const ASSUMED = 1;
6452
+ const PROVEN = 2;
6356
6453
  /** Whether this schema's subtree contains a cycle, so one parse can re-enter it. */
6357
- function isRecursive(inst, stack) {
6454
+ function isRecursive(inst, stack, resolve) {
6358
6455
  const cached = recursive.get(inst);
6359
- if (cached !== void 0) return cached;
6360
- if (stack.has(inst)) return true;
6456
+ if (cached !== void 0) return cached ? PROVEN : NONE;
6457
+ if (stack.has(inst)) return PROVEN;
6361
6458
  stack.add(inst);
6362
- let result = false;
6459
+ let result = NONE;
6363
6460
  const check = (child) => {
6364
- if (!result && child?._zod && isRecursive(child, stack)) result = true;
6461
+ if (result !== PROVEN && child?._zod) {
6462
+ const answer = isRecursive(child, stack, resolve);
6463
+ if (answer > result) result = answer;
6464
+ }
6465
+ };
6466
+ const shape = (sh, spread) => {
6467
+ let answer = NONE;
6468
+ for (const key of Reflect.ownKeys(sh)) {
6469
+ const desc = Object.getOwnPropertyDescriptor(sh, key);
6470
+ if (spread && !desc.enumerable) continue;
6471
+ const child = desc.get ? ASSUMED : desc.value?._zod ? isRecursive(desc.value, stack, resolve) : NONE;
6472
+ if (child > answer) answer = child;
6473
+ }
6474
+ return answer;
6475
+ };
6476
+ const merge = (answer) => {
6477
+ if (answer > result) result = answer;
6365
6478
  };
6366
6479
  const def = inst._zod.def;
6367
6480
  switch (def.type) {
6368
- case "object":
6369
- for (const key of Reflect.ownKeys(def.shape)) check(def.shape[key]);
6481
+ case "object": {
6482
+ const raw = rawShape(def);
6483
+ merge(raw ? shape(raw, true) : ASSUMED);
6370
6484
  check(def.catchall);
6371
6485
  break;
6486
+ }
6372
6487
  case "array":
6373
6488
  check(def.element);
6374
6489
  break;
@@ -6410,9 +6525,11 @@ function isRecursive(inst, stack) {
6410
6525
  check(def.input);
6411
6526
  check(def.output);
6412
6527
  break;
6413
- case "lazy":
6414
- check(inst._zod.innerType);
6528
+ case "lazy": {
6529
+ const inner = def._cachedInner ?? (resolve ? inst._zod.innerType : void 0);
6530
+ merge(inner ? isRecursive(inner, stack, false) : ASSUMED);
6415
6531
  break;
6532
+ }
6416
6533
  case "template_literal":
6417
6534
  case "string":
6418
6535
  case "number":
@@ -6443,13 +6560,17 @@ function isRecursive(inst, stack) {
6443
6560
  }
6444
6561
  }
6445
6562
  stack.delete(inst);
6446
- recursive.set(inst, result);
6447
- return result;
6563
+ return settle(inst, result);
6564
+ }
6565
+ /** An assumed answer must not outlive the resolution that settles it, so only a certain one is cached. */
6566
+ function settle(inst, answer) {
6567
+ if (answer !== ASSUMED) recursive.set(inst, answer === PROVEN);
6568
+ return answer;
6448
6569
  }
6449
6570
  function bucketFor(state, inst) {
6450
6571
  let bucket = state.buckets.get(inst);
6451
6572
  if (!bucket) {
6452
- bucket = /* @__PURE__ */ new Map();
6573
+ bucket = /* @__PURE__ */ new WeakMap();
6453
6574
  state.buckets.set(inst, bucket);
6454
6575
  }
6455
6576
  return bucket;
@@ -6485,6 +6606,7 @@ const memo = {
6485
6606
  attach(inst) {
6486
6607
  var _a;
6487
6608
  let isRecursiveInst;
6609
+ let rechecked = false;
6488
6610
  let lastCtx;
6489
6611
  let lastBucket;
6490
6612
  (_a = inst._zod).deferred ?? (_a.deferred = []);
@@ -6492,19 +6614,21 @@ const memo = {
6492
6614
  const base = inst._zod.parse;
6493
6615
  const wrapped = (payload, ctx) => {
6494
6616
  if (isRecursiveInst === void 0) {
6495
- isRecursiveInst = isRecursive(inst, /* @__PURE__ */ new Set());
6496
- if (!isRecursiveInst) {
6617
+ const walked = isRecursive(inst, /* @__PURE__ */ new Set(), false);
6618
+ if (walked === NONE) {
6497
6619
  inst._zod.parse = base;
6498
6620
  if (inst._zod.run === wrapped) inst._zod.run = base;
6499
6621
  return base(payload, ctx);
6500
6622
  }
6623
+ if (walked === PROVEN || rechecked) isRecursiveInst = true;
6624
+ else rechecked = true;
6501
6625
  }
6502
6626
  const input = payload.value;
6503
- if (input === null || typeof input !== "object") return base(payload, ctx);
6627
+ if (!isRef(input)) return base(payload, ctx);
6504
6628
  let state = ctx[STATE];
6505
6629
  if (!state) {
6506
6630
  state = {
6507
- buckets: /* @__PURE__ */ new Map(),
6631
+ buckets: /* @__PURE__ */ new WeakMap(),
6508
6632
  backEdges: void 0
6509
6633
  };
6510
6634
  ctx[STATE] = state;
@@ -6523,7 +6647,7 @@ const memo = {
6523
6647
  if (hit.issues.length) payload.issues.push(...cloneIssues(hit.issues));
6524
6648
  } else {
6525
6649
  payload.memo = true;
6526
- state.backEdges ?? (state.backEdges = /* @__PURE__ */ new Set());
6650
+ state.backEdges ?? (state.backEdges = /* @__PURE__ */ new WeakSet());
6527
6651
  state.backEdges.add(hit.value);
6528
6652
  }
6529
6653
  return payload;
@@ -6552,10 +6676,10 @@ function memoizer() {
6552
6676
  /** Whether this value is a node a back-edge resolved to before it finished. */
6553
6677
  function isBackEdge(ctx, value) {
6554
6678
  const backEdges = ctx[STATE]?.backEdges;
6555
- return backEdges !== void 0 && value !== null && typeof value === "object" && backEdges.has(value);
6679
+ return backEdges !== void 0 && isRef(value) && backEdges.has(value);
6556
6680
  }
6557
6681
  //#endregion
6558
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/locales/en.js
6682
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
6559
6683
  const error = () => {
6560
6684
  const Sizable = {
6561
6685
  string: {
@@ -6610,7 +6734,9 @@ const error = () => {
6610
6734
  base64url: "base64url-encoded string",
6611
6735
  json_string: "JSON string",
6612
6736
  e164: "E.164 number",
6737
+ currency_code: "currency code",
6613
6738
  credit_card: "credit card number",
6739
+ iban: "IBAN",
6614
6740
  jwt: "JWT",
6615
6741
  template_literal: "input"
6616
6742
  };
@@ -6661,7 +6787,7 @@ function en_default() {
6661
6787
  return { localeError: error() };
6662
6788
  }
6663
6789
  //#endregion
6664
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/registries.js
6790
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
6665
6791
  var _a;
6666
6792
  var $ZodRegistry = class {
6667
6793
  constructor() {
@@ -6708,13 +6834,17 @@ function registry() {
6708
6834
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
6709
6835
  const globalRegistry = globalThis.__zod_globalRegistry;
6710
6836
  //#endregion
6711
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/api.js
6837
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
6838
+ function snapshotChecks(def) {
6839
+ if (def.checks) def.checks = [...def.checks];
6840
+ return def;
6841
+ }
6712
6842
  // @__NO_SIDE_EFFECTS__
6713
6843
  function _string(Class, params) {
6714
- return new Class({
6844
+ return new Class(snapshotChecks({
6715
6845
  type: "string",
6716
6846
  ...normalizeParams(params)
6717
- });
6847
+ }));
6718
6848
  }
6719
6849
  // @__NO_SIDE_EFFECTS__
6720
6850
  function _email(Class, params) {
@@ -6986,11 +7116,11 @@ function _isoDuration(Class, params) {
6986
7116
  }
6987
7117
  // @__NO_SIDE_EFFECTS__
6988
7118
  function _number(Class, params) {
6989
- return new Class({
7119
+ return new Class(snapshotChecks({
6990
7120
  type: "number",
6991
7121
  checks: [],
6992
7122
  ...normalizeParams(params)
6993
- });
7123
+ }));
6994
7124
  }
6995
7125
  // @__NO_SIDE_EFFECTS__
6996
7126
  function _int(Class, params) {
@@ -7231,7 +7361,7 @@ function _check(fn, params) {
7231
7361
  return ch;
7232
7362
  }
7233
7363
  //#endregion
7234
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/to-json-schema.js
7364
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
7235
7365
  function assignProps(target, ...sources) {
7236
7366
  for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
7237
7367
  return target;
@@ -7274,7 +7404,7 @@ function handleUnrepresentable(schema, ctx, json, params, message) {
7274
7404
  Object.assign(json, result);
7275
7405
  return true;
7276
7406
  }
7277
- function process$1(schema, ctx, _params = {
7407
+ function processSchema(schema, ctx, _params = {
7278
7408
  path: [],
7279
7409
  schemaPath: []
7280
7410
  }) {
@@ -7313,7 +7443,7 @@ function process$1(schema, ctx, _params = {
7313
7443
  const parent = schema._zod.parent;
7314
7444
  if (parent) {
7315
7445
  if (!result.ref) result.ref = parent;
7316
- process$1(parent, ctx, params);
7446
+ processSchema(parent, ctx, params);
7317
7447
  ctx.seen.get(parent).isParent = true;
7318
7448
  }
7319
7449
  }
@@ -7403,10 +7533,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7403
7533
  continue;
7404
7534
  }
7405
7535
  if (seen.count > 1) {
7406
- if (ctx.reused === "ref") {
7407
- extractToDef(entry);
7408
- continue;
7409
- }
7536
+ if (ctx.reused === "ref") extractToDef(entry);
7410
7537
  }
7411
7538
  }
7412
7539
  if (ctx.external) ctx.sharedDefsExtractedFor = ctx.external;
@@ -7661,7 +7788,7 @@ const createToJSONSchemaMethod = (schema, processors = {}) => (params) => {
7661
7788
  ...params,
7662
7789
  processors
7663
7790
  });
7664
- process$1(schema, ctx);
7791
+ processSchema(schema, ctx);
7665
7792
  extractDefs(ctx, schema);
7666
7793
  return finalize(ctx, schema);
7667
7794
  };
@@ -7673,12 +7800,84 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
7673
7800
  io,
7674
7801
  processors
7675
7802
  });
7676
- process$1(schema, ctx);
7803
+ processSchema(schema, ctx);
7677
7804
  extractDefs(ctx, schema);
7678
7805
  return finalize(ctx, schema);
7679
7806
  };
7680
7807
  //#endregion
7681
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/core/json-schema-processors.js
7808
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
7809
+ const narrowMin = (agg, key, value) => {
7810
+ if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
7811
+ };
7812
+ const narrowMax = (agg, key, value) => {
7813
+ if (agg[key] === void 0 || value < agg[key]) agg[key] = value;
7814
+ };
7815
+ const narrowBoth = (agg, value) => {
7816
+ narrowMin(agg, "minimum", value);
7817
+ narrowMax(agg, "maximum", value);
7818
+ };
7819
+ const addDivisor = (agg, value) => {
7820
+ agg.multipleOf ?? (agg.multipleOf = []);
7821
+ if (!agg.multipleOf.includes(value)) agg.multipleOf.push(value);
7822
+ };
7823
+ const addPattern$1 = (agg, pattern) => {
7824
+ agg.patterns ?? (agg.patterns = /* @__PURE__ */ new Set());
7825
+ agg.patterns.add(pattern);
7826
+ };
7827
+ const intersectMime = (agg, mime) => {
7828
+ agg.mime = agg.mime ? agg.mime.filter((m) => mime.includes(m)) : [...mime];
7829
+ };
7830
+ const setFormat = (agg, format) => {
7831
+ agg.format = format;
7832
+ if (format.includes("int")) agg.isInt = true;
7833
+ };
7834
+ const minContributor = (agg, def) => narrowMin(agg, "minimum", def.minimum);
7835
+ const maxContributor = (agg, def) => narrowMax(agg, "maximum", def.maximum);
7836
+ const formatContributor = (ranges) => (agg, def) => {
7837
+ setFormat(agg, def.format);
7838
+ const [minimum, maximum] = ranges[def.format];
7839
+ narrowMin(agg, "minimum", minimum);
7840
+ narrowMax(agg, "maximum", maximum);
7841
+ };
7842
+ const contributors = {
7843
+ greater_than: (agg, def) => narrowMin(agg, def.inclusive ? "minimum" : "exclusiveMinimum", def.value),
7844
+ less_than: (agg, def) => narrowMax(agg, def.inclusive ? "maximum" : "exclusiveMaximum", def.value),
7845
+ multiple_of: (agg, def) => addDivisor(agg, def.value),
7846
+ number_format: formatContributor(NUMBER_FORMAT_RANGES),
7847
+ bigint_format: formatContributor(BIGINT_FORMAT_RANGES),
7848
+ min_length: minContributor,
7849
+ max_length: maxContributor,
7850
+ length_equals: (agg, def) => narrowBoth(agg, def.length),
7851
+ min_size: minContributor,
7852
+ max_size: maxContributor,
7853
+ size_equals: (agg, def) => narrowBoth(agg, def.size),
7854
+ string_format: (agg, def) => {
7855
+ setFormat(agg, def.format);
7856
+ if (def.pattern) addPattern$1(agg, def.pattern);
7857
+ if (def.format === "base64" || def.format === "base64url") agg.contentEncoding = def.format;
7858
+ if (def.local || def.precision === -1) agg.laxFormat = true;
7859
+ },
7860
+ mime_type: (agg, def) => intersectMime(agg, def.mime)
7861
+ };
7862
+ function aggregateChecks(schema) {
7863
+ const agg = {};
7864
+ const def = schema._zod.def;
7865
+ const list = schema._zod.traits.has("$ZodCheck") ? [schema, ...def.checks ?? []] : def.checks ?? [];
7866
+ for (const ch of list) contributors[ch._zod.def.check]?.(agg, ch._zod.def);
7867
+ const bag = schema._zod.bag;
7868
+ if (bag.minimum !== void 0) narrowMin(agg, "minimum", bag.minimum);
7869
+ if (bag.exclusiveMinimum !== void 0) narrowMin(agg, "exclusiveMinimum", bag.exclusiveMinimum);
7870
+ if (bag.maximum !== void 0) narrowMax(agg, "maximum", bag.maximum);
7871
+ if (bag.exclusiveMaximum !== void 0) narrowMax(agg, "exclusiveMaximum", bag.exclusiveMaximum);
7872
+ if (bag.multipleOf !== void 0) addDivisor(agg, bag.multipleOf);
7873
+ if (bag.format !== void 0) {
7874
+ agg.format ?? (agg.format = bag.format);
7875
+ if (bag.format.includes("int")) agg.isInt = true;
7876
+ }
7877
+ if (bag.mime) intersectMime(agg, bag.mime);
7878
+ for (const pattern of bag.patterns ?? []) addPattern$1(agg, pattern);
7879
+ return agg;
7880
+ }
7682
7881
  const formatMap = {
7683
7882
  guid: "uuid",
7684
7883
  url: "uri",
@@ -7686,10 +7885,12 @@ const formatMap = {
7686
7885
  json_string: "json-string",
7687
7886
  regex: ""
7688
7887
  };
7888
+ const exactPatterns = /* @__PURE__ */ new Map([[base64Charset, base64], [base64urlCharset, base64url]]);
7889
+ const exactPattern = (p) => exactPatterns.get(p) ?? p;
7689
7890
  const stringProcessor = (schema, ctx, _json, _params) => {
7690
7891
  const json = _json;
7691
7892
  json.type = "string";
7692
- const { minimum, maximum, format, patterns, contentEncoding, laxFormat } = schema._zod.bag;
7893
+ const { minimum, maximum, format, patterns, contentEncoding, laxFormat } = aggregateChecks(schema);
7693
7894
  if (typeof minimum === "number") json.minLength = minimum;
7694
7895
  if (typeof maximum === "number") json.maxLength = maximum;
7695
7896
  if (format) {
@@ -7699,7 +7900,7 @@ const stringProcessor = (schema, ctx, _json, _params) => {
7699
7900
  }
7700
7901
  if (contentEncoding) json.contentEncoding = contentEncoding;
7701
7902
  if (patterns && patterns.size > 0) {
7702
- const patternList = [...patterns];
7903
+ const patternList = [...patterns].map(exactPattern);
7703
7904
  if (patternList.length === 1) json.pattern = patternList[0].source;
7704
7905
  else if (patternList.length > 1) json.allOf = [...patternList.map((regex) => ({
7705
7906
  ...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
@@ -7709,9 +7910,8 @@ const stringProcessor = (schema, ctx, _json, _params) => {
7709
7910
  };
7710
7911
  const numberProcessor = (schema, ctx, _json, params) => {
7711
7912
  const json = _json;
7712
- const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
7713
- if (typeof format === "string" && format.includes("int")) json.type = "integer";
7714
- else json.type = "number";
7913
+ const { minimum, maximum, multipleOf, exclusiveMaximum, exclusiveMinimum, isInt } = aggregateChecks(schema);
7914
+ json.type = isInt ? "integer" : "number";
7715
7915
  const exMin = typeof exclusiveMinimum === "number" && exclusiveMinimum >= (minimum ?? Number.NEGATIVE_INFINITY);
7716
7916
  const exMax = typeof exclusiveMaximum === "number" && exclusiveMaximum <= (maximum ?? Number.POSITIVE_INFINITY);
7717
7917
  const legacy = ctx.target === "draft-04" || ctx.target === "openapi-3.0";
@@ -7727,9 +7927,13 @@ const numberProcessor = (schema, ctx, _json, params) => {
7727
7927
  json.exclusiveMaximum = true;
7728
7928
  } else json.exclusiveMaximum = exclusiveMaximum;
7729
7929
  } else if (typeof maximum === "number") json.maximum = maximum;
7730
- if (typeof multipleOf === "number") {
7731
- if (Number.isFinite(multipleOf) && multipleOf !== 0) json.multipleOf = Math.abs(multipleOf);
7732
- else handleUnrepresentable(schema, ctx, json, params, `A multipleOf divisor of ${multipleOf} cannot be represented in JSON Schema`);
7930
+ if (multipleOf) {
7931
+ const divisors = /* @__PURE__ */ new Set();
7932
+ for (const divisor of multipleOf) if (Number.isFinite(divisor) && divisor !== 0) divisors.add(Math.abs(divisor));
7933
+ else handleUnrepresentable(schema, ctx, json, params, `A multipleOf divisor of ${divisor} cannot be represented in JSON Schema`);
7934
+ const [first, ...rest] = divisors;
7935
+ if (first !== void 0) json.multipleOf = first;
7936
+ if (rest.length) json.allOf = [...json.allOf ?? [], ...rest.map((m) => ({ multipleOf: m }))];
7733
7937
  }
7734
7938
  };
7735
7939
  const booleanProcessor = (_schema, _ctx, json, _params) => {
@@ -7811,23 +8015,16 @@ const templateLiteralProcessor = (schema, _ctx, json, _params) => {
7811
8015
  };
7812
8016
  const fileProcessor = (schema, _ctx, json, _params) => {
7813
8017
  const _json = json;
7814
- const file = {
7815
- type: "string",
7816
- format: "binary",
7817
- contentEncoding: "binary"
7818
- };
7819
- const { minimum, maximum, mime } = schema._zod.bag;
7820
- if (minimum !== void 0) file.minLength = minimum;
7821
- if (maximum !== void 0) file.maxLength = maximum;
7822
- if (mime) {
7823
- if (mime.length === 1) {
7824
- file.contentMediaType = mime[0];
7825
- Object.assign(_json, file);
7826
- } else {
7827
- Object.assign(_json, file);
7828
- _json.anyOf = mime.map((m) => ({ contentMediaType: m }));
7829
- }
7830
- } else Object.assign(_json, file);
8018
+ _json.type = "string";
8019
+ _json.format = "binary";
8020
+ _json.contentEncoding = "binary";
8021
+ const { minimum, maximum, mime } = aggregateChecks(schema);
8022
+ if (minimum !== void 0) _json.minLength = minimum;
8023
+ if (maximum !== void 0) _json.maxLength = maximum;
8024
+ if (!mime) return;
8025
+ if (mime.length === 0) _json.not = {};
8026
+ else if (mime.length === 1) _json.contentMediaType = mime[0];
8027
+ else _json.anyOf = mime.map((m) => ({ contentMediaType: m }));
7831
8028
  };
7832
8029
  const successProcessor = (_schema, _ctx, json, _params) => {
7833
8030
  json.type = "boolean";
@@ -7850,11 +8047,11 @@ const setProcessor = (schema, ctx, json, params) => {
7850
8047
  const arrayProcessor = (schema, ctx, _json, params) => {
7851
8048
  const json = _json;
7852
8049
  const def = schema._zod.def;
7853
- const { minimum, maximum } = schema._zod.bag;
8050
+ const { minimum, maximum } = aggregateChecks(schema);
7854
8051
  if (typeof minimum === "number") json.minItems = minimum;
7855
8052
  if (typeof maximum === "number") json.maxItems = maximum;
7856
8053
  json.type = "array";
7857
- json.items = process$1(def.element, ctx, {
8054
+ json.items = processSchema(def.element, ctx, {
7858
8055
  ...params,
7859
8056
  path: [...params.path, "items"]
7860
8057
  });
@@ -7872,7 +8069,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
7872
8069
  if (Object.getOwnPropertySymbols(shape).length && handleUnrepresentable(schema, ctx, json, params, "Symbol keys cannot be represented in JSON Schema")) return;
7873
8070
  json.type = "object";
7874
8071
  json.properties = {};
7875
- for (const key in shape) assignProp(json.properties, key, process$1(shape[key], ctx, {
8072
+ for (const key in shape) assignProp(json.properties, key, processSchema(shape[key], ctx, {
7876
8073
  ...params,
7877
8074
  path: [
7878
8075
  ...params.path,
@@ -7880,17 +8077,16 @@ const objectProcessor = (schema, ctx, _json, params) => {
7880
8077
  key
7881
8078
  ]
7882
8079
  }));
7883
- const allKeys = new Set(Object.keys(shape));
7884
- const requiredKeys = new Set([...allKeys].filter((key) => {
8080
+ const requiredKeys = [];
8081
+ for (const key of Object.keys(shape)) {
7885
8082
  const field = def.shape[key];
7886
- if (ctx.io === "input") return inputOptin(field) === void 0;
7887
- else return field._zod.optout === void 0;
7888
- }));
7889
- if (requiredKeys.size > 0) json.required = Array.from(requiredKeys);
8083
+ if (ctx.io === "input" ? inputOptin(field) === void 0 : field._zod.optout === void 0) requiredKeys.push(key);
8084
+ }
8085
+ if (requiredKeys.length > 0) json.required = requiredKeys;
7890
8086
  if (def.catchall?._zod.def.type === "never") json.additionalProperties = false;
7891
8087
  else if (!def.catchall) {
7892
8088
  if (ctx.io === "output") json.additionalProperties = false;
7893
- } else if (def.catchall) json.additionalProperties = process$1(def.catchall, ctx, {
8089
+ } else if (def.catchall) json.additionalProperties = processSchema(def.catchall, ctx, {
7894
8090
  ...params,
7895
8091
  path: [...params.path, "additionalProperties"]
7896
8092
  });
@@ -7898,7 +8094,7 @@ const objectProcessor = (schema, ctx, _json, params) => {
7898
8094
  const unionProcessor = (schema, ctx, json, params) => {
7899
8095
  const def = schema._zod.def;
7900
8096
  const isExclusive = def.inclusive === false;
7901
- const options = def.options.map((x, i) => process$1(x, ctx, {
8097
+ const options = def.options.map((x, i) => processSchema(x, ctx, {
7902
8098
  ...params,
7903
8099
  path: [
7904
8100
  ...params.path,
@@ -7911,7 +8107,7 @@ const unionProcessor = (schema, ctx, json, params) => {
7911
8107
  };
7912
8108
  const intersectionProcessor = (schema, ctx, json, params) => {
7913
8109
  const def = schema._zod.def;
7914
- const a = process$1(def.left, ctx, {
8110
+ const a = processSchema(def.left, ctx, {
7915
8111
  ...params,
7916
8112
  path: [
7917
8113
  ...params.path,
@@ -7919,7 +8115,7 @@ const intersectionProcessor = (schema, ctx, json, params) => {
7919
8115
  0
7920
8116
  ]
7921
8117
  });
7922
- const b = process$1(def.right, ctx, {
8118
+ const b = processSchema(def.right, ctx, {
7923
8119
  ...params,
7924
8120
  path: [
7925
8121
  ...params.path,
@@ -7938,7 +8134,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
7938
8134
  json.type = "array";
7939
8135
  const prefixPath = ctx.target === "draft-2020-12" ? "prefixItems" : "items";
7940
8136
  const restPath = ctx.target === "draft-2020-12" ? "items" : ctx.target === "openapi-3.0" ? "items" : "additionalItems";
7941
- const prefixItems = def.items.map((x, i) => process$1(x, ctx, {
8137
+ const prefixItems = def.items.map((x, i) => processSchema(x, ctx, {
7942
8138
  ...params,
7943
8139
  path: [
7944
8140
  ...params.path,
@@ -7946,7 +8142,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
7946
8142
  i
7947
8143
  ]
7948
8144
  }));
7949
- const rest = def.rest ? process$1(def.rest, ctx, {
8145
+ const rest = def.rest ? processSchema(def.rest, ctx, {
7950
8146
  ...params,
7951
8147
  path: [
7952
8148
  ...params.path,
@@ -7980,7 +8176,7 @@ const tupleProcessor = (schema, ctx, _json, params) => {
7980
8176
  if (minItems > 0) json.minItems = minItems;
7981
8177
  if (isClosed) json.maxItems = maxItems;
7982
8178
  }
7983
- const { minimum, maximum } = schema._zod.bag;
8179
+ const { minimum, maximum } = aggregateChecks(schema);
7984
8180
  if (typeof minimum === "number") json.minItems = minimum;
7985
8181
  if (typeof maximum === "number") json.maxItems = maximum;
7986
8182
  };
@@ -8047,9 +8243,9 @@ const recordProcessor = (schema, ctx, _json, params) => {
8047
8243
  const def = schema._zod.def;
8048
8244
  json.type = "object";
8049
8245
  const keyType = def.keyType;
8050
- const patterns = keyType._zod.bag?.patterns;
8246
+ const patterns = aggregateChecks(keyType).patterns;
8051
8247
  if (def.mode === "loose" && patterns && patterns.size > 0) {
8052
- const valueSchema = process$1(def.valueType, ctx, {
8248
+ const valueSchema = processSchema(def.valueType, ctx, {
8053
8249
  ...params,
8054
8250
  path: [
8055
8251
  ...params.path,
@@ -8058,10 +8254,10 @@ const recordProcessor = (schema, ctx, _json, params) => {
8058
8254
  ]
8059
8255
  });
8060
8256
  json.patternProperties = {};
8061
- for (const pattern of patterns) assignProp(json.patternProperties, pattern.source, valueSchema);
8257
+ for (const pattern of patterns) assignProp(json.patternProperties, exactPattern(pattern).source, valueSchema);
8062
8258
  } else {
8063
8259
  if (ctx.target === "draft-07" || ctx.target === "draft-2020-12") {
8064
- json.propertyNames = process$1(def.keyType, ctx, {
8260
+ json.propertyNames = processSchema(def.keyType, ctx, {
8065
8261
  ...params,
8066
8262
  path: [...params.path, "propertyNames"]
8067
8263
  });
@@ -8073,7 +8269,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
8073
8269
  }
8074
8270
  pending.push(schema);
8075
8271
  }
8076
- json.additionalProperties = process$1(def.valueType, ctx, {
8272
+ json.additionalProperties = processSchema(def.valueType, ctx, {
8077
8273
  ...params,
8078
8274
  path: [...params.path, "additionalProperties"]
8079
8275
  });
@@ -8087,7 +8283,7 @@ const recordProcessor = (schema, ctx, _json, params) => {
8087
8283
  };
8088
8284
  const nullableProcessor = (schema, ctx, json, params) => {
8089
8285
  const def = schema._zod.def;
8090
- const inner = process$1(def.innerType, ctx, params);
8286
+ const inner = processSchema(def.innerType, ctx, params);
8091
8287
  const seen = ctx.seen.get(schema);
8092
8288
  if (ctx.target === "openapi-3.0") {
8093
8289
  seen.ref = def.innerType;
@@ -8096,7 +8292,7 @@ const nullableProcessor = (schema, ctx, json, params) => {
8096
8292
  };
8097
8293
  const nonoptionalProcessor = (schema, ctx, _json, params) => {
8098
8294
  const def = schema._zod.def;
8099
- process$1(def.innerType, ctx, params);
8295
+ processSchema(def.innerType, ctx, params);
8100
8296
  const seen = ctx.seen.get(schema);
8101
8297
  seen.ref = def.innerType;
8102
8298
  };
@@ -8117,7 +8313,7 @@ function serializeDefaultValue(value, schema, ctx, json, params) {
8117
8313
  }
8118
8314
  const defaultProcessor = (schema, ctx, json, params) => {
8119
8315
  const def = schema._zod.def;
8120
- process$1(def.innerType, ctx, params);
8316
+ processSchema(def.innerType, ctx, params);
8121
8317
  const seen = ctx.seen.get(schema);
8122
8318
  seen.ref = def.innerType;
8123
8319
  const value = serializeDefaultValue(def.defaultValue, schema, ctx, json, params);
@@ -8125,7 +8321,7 @@ const defaultProcessor = (schema, ctx, json, params) => {
8125
8321
  };
8126
8322
  const prefaultProcessor = (schema, ctx, json, params) => {
8127
8323
  const def = schema._zod.def;
8128
- process$1(def.innerType, ctx, params);
8324
+ processSchema(def.innerType, ctx, params);
8129
8325
  const seen = ctx.seen.get(schema);
8130
8326
  seen.ref = def.innerType;
8131
8327
  if (ctx.io !== "input") return;
@@ -8134,7 +8330,7 @@ const prefaultProcessor = (schema, ctx, json, params) => {
8134
8330
  };
8135
8331
  const catchProcessor = (schema, ctx, json, params) => {
8136
8332
  const def = schema._zod.def;
8137
- process$1(def.innerType, ctx, params);
8333
+ processSchema(def.innerType, ctx, params);
8138
8334
  const seen = ctx.seen.get(schema);
8139
8335
  seen.ref = def.innerType;
8140
8336
  let catchValue;
@@ -8150,32 +8346,32 @@ const pipeProcessor = (schema, ctx, _json, params) => {
8150
8346
  const def = schema._zod.def;
8151
8347
  const inIsTransform = def.in._zod.traits.has("$ZodTransform");
8152
8348
  const innerType = ctx.io === "input" ? inIsTransform ? def.out : def.in : def.out;
8153
- process$1(innerType, ctx, params);
8349
+ processSchema(innerType, ctx, params);
8154
8350
  const seen = ctx.seen.get(schema);
8155
8351
  seen.ref = innerType;
8156
8352
  };
8157
8353
  const readonlyProcessor = (schema, ctx, json, params) => {
8158
8354
  const def = schema._zod.def;
8159
- process$1(def.innerType, ctx, params);
8355
+ processSchema(def.innerType, ctx, params);
8160
8356
  const seen = ctx.seen.get(schema);
8161
8357
  seen.ref = def.innerType;
8162
8358
  json.readOnly = true;
8163
8359
  };
8164
8360
  const promiseProcessor = (schema, ctx, _json, params) => {
8165
8361
  const def = schema._zod.def;
8166
- process$1(def.innerType, ctx, params);
8362
+ processSchema(def.innerType, ctx, params);
8167
8363
  const seen = ctx.seen.get(schema);
8168
8364
  seen.ref = def.innerType;
8169
8365
  };
8170
8366
  const optionalProcessor = (schema, ctx, _json, params) => {
8171
8367
  const def = schema._zod.def;
8172
- process$1(def.innerType, ctx, params);
8368
+ processSchema(def.innerType, ctx, params);
8173
8369
  const seen = ctx.seen.get(schema);
8174
8370
  seen.ref = def.innerType;
8175
8371
  };
8176
8372
  const lazyProcessor = (schema, ctx, _json, params) => {
8177
8373
  const innerType = schema._zod.innerType;
8178
- process$1(innerType, ctx, params);
8374
+ processSchema(innerType, ctx, params);
8179
8375
  const seen = ctx.seen.get(schema);
8180
8376
  seen.ref = innerType;
8181
8377
  };
@@ -8230,7 +8426,7 @@ function toJSONSchema(input, params) {
8230
8426
  const defs = {};
8231
8427
  for (const entry of registry._idmap.entries()) {
8232
8428
  const [_, schema] = entry;
8233
- process$1(schema, ctx);
8429
+ processSchema(schema, ctx);
8234
8430
  }
8235
8431
  const schemas = {};
8236
8432
  ctx.external = {
@@ -8250,12 +8446,12 @@ function toJSONSchema(input, params) {
8250
8446
  ...params,
8251
8447
  processors: allProcessors
8252
8448
  });
8253
- process$1(input, ctx);
8449
+ processSchema(input, ctx);
8254
8450
  extractDefs(ctx, input);
8255
8451
  return finalize(ctx, input);
8256
8452
  }
8257
8453
  //#endregion
8258
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/mini/schemas.js
8454
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/mini/schemas.js
8259
8455
  const ZodMiniType = /*@__PURE__*/ $constructor("ZodMiniType", (inst, def) => {
8260
8456
  if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
8261
8457
  $ZodType.init(inst, def);
@@ -8320,7 +8516,7 @@ function object$1(shape, params) {
8320
8516
  return new ZodMiniObject(def);
8321
8517
  }
8322
8518
  //#endregion
8323
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
8519
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
8324
8520
  function isZ4Schema(s) {
8325
8521
  return !!s._zod;
8326
8522
  }
@@ -8443,7 +8639,7 @@ function getLiteralValue(schema) {
8443
8639
  if (directValue !== void 0) return directValue;
8444
8640
  }
8445
8641
  //#endregion
8446
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/classic/errors.js
8642
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
8447
8643
  const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
8448
8644
  function _lazyMethod(proto, key, make) {
8449
8645
  Object.defineProperty(proto, key, {
@@ -8493,7 +8689,7 @@ const initializer = (inst, issues) => {
8493
8689
  };
8494
8690
  const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
8495
8691
  //#endregion
8496
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/classic/parse.js
8692
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
8497
8693
  const parse$1 = /* @__PURE__ */ _parse(ZodRealError);
8498
8694
  const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
8499
8695
  const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -8507,7 +8703,7 @@ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
8507
8703
  const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
8508
8704
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
8509
8705
  //#endregion
8510
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/classic/schemas.js
8706
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
8511
8707
  function _ensureDefaultLocale() {
8512
8708
  if (!globalConfig.localeError) config(en_default());
8513
8709
  }
@@ -8643,6 +8839,12 @@ const ZodType = /*@__PURE__*/ $constructor("ZodType", (inst, def) => {
8643
8839
  set spa(value) {
8644
8840
  own$7(this, "spa", value);
8645
8841
  },
8842
+ validate(data, params) {
8843
+ return validate(this, data, params);
8844
+ },
8845
+ validateAsync(data, params) {
8846
+ return validateAsync$1(this, data, params);
8847
+ },
8646
8848
  encode: function _encode(data, params) {
8647
8849
  return encode(this, data, params, { callee: _encode });
8648
8850
  },
@@ -8682,10 +8884,10 @@ const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
8682
8884
  $ZodString.init(inst, def);
8683
8885
  ZodType.init(inst, def);
8684
8886
  inst._zod.processJSONSchema = (ctx, json, params) => stringProcessor(inst, ctx, json, params);
8685
- const bag = inst._zod.bag;
8686
- inst.format = bag.format ?? null;
8687
- inst.minLength = bag.minimum ?? null;
8688
- inst.maxLength = bag.maximum ?? null;
8887
+ }, /*@__PURE__*/ derived({
8888
+ format: (inst) => aggregateChecks(inst).format ?? null,
8889
+ minLength: (inst) => aggregateChecks(inst).minimum ?? null,
8890
+ maxLength: (inst) => aggregateChecks(inst).maximum ?? null
8689
8891
  }, {
8690
8892
  regex(...args) {
8691
8893
  return this.check(/* @__PURE__ */ _regex(...args));
@@ -8732,7 +8934,7 @@ const _ZodString = /*@__PURE__*/ $constructor("_ZodString", (inst, def) => {
8732
8934
  slugify() {
8733
8935
  return this.check(/* @__PURE__ */ _slugify());
8734
8936
  }
8735
- });
8937
+ }));
8736
8938
  const ZodString = /*@__PURE__*/ $constructor("ZodString", (inst, def) => {
8737
8939
  $ZodString.init(inst, def);
8738
8940
  _ZodString.init(inst, def);
@@ -8924,12 +9126,21 @@ const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
8924
9126
  $ZodNumber.init(inst, def);
8925
9127
  ZodType.init(inst, def);
8926
9128
  inst._zod.processJSONSchema = (ctx, json, params) => numberProcessor(inst, ctx, json, params);
8927
- const bag = inst._zod.bag;
8928
- inst.minValue = Math.max(bag.minimum ?? Number.NEGATIVE_INFINITY, bag.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null;
8929
- inst.maxValue = Math.min(bag.maximum ?? Number.POSITIVE_INFINITY, bag.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null;
8930
- inst.isInt = (bag.format ?? "").includes("int") || Number.isSafeInteger(bag.multipleOf ?? .5);
8931
9129
  inst.isFinite = true;
8932
- inst.format = bag.format ?? null;
9130
+ }, /*@__PURE__*/ derived({
9131
+ minValue: (inst) => {
9132
+ const { minimum, exclusiveMinimum } = aggregateChecks(inst);
9133
+ return Math.max(minimum ?? Number.NEGATIVE_INFINITY, exclusiveMinimum ?? Number.NEGATIVE_INFINITY);
9134
+ },
9135
+ maxValue: (inst) => {
9136
+ const { maximum, exclusiveMaximum } = aggregateChecks(inst);
9137
+ return Math.min(maximum ?? Number.POSITIVE_INFINITY, exclusiveMaximum ?? Number.POSITIVE_INFINITY);
9138
+ },
9139
+ isInt: (inst) => {
9140
+ const { isInt, multipleOf } = aggregateChecks(inst);
9141
+ return !!isInt || !!multipleOf?.some(Number.isSafeInteger);
9142
+ },
9143
+ format: (inst) => aggregateChecks(inst).format ?? null
8933
9144
  }, {
8934
9145
  gt(value, params) {
8935
9146
  return this.check(/* @__PURE__ */ _gt(value, params));
@@ -8976,7 +9187,7 @@ const ZodNumber = /*@__PURE__*/ $constructor("ZodNumber", (inst, def) => {
8976
9187
  finite() {
8977
9188
  return this;
8978
9189
  }
8979
- });
9190
+ }));
8980
9191
  function number(params) {
8981
9192
  return /* @__PURE__ */ _number(ZodNumber, params);
8982
9193
  }
@@ -9056,34 +9267,19 @@ const ZodObject = /*@__PURE__*/ $constructor("ZodObject", (inst, def) => {
9056
9267
  return _enum(Object.keys(this._zod.def.shape));
9057
9268
  },
9058
9269
  catchall(catchall) {
9059
- return this.clone({
9060
- ...this._zod.def,
9061
- catchall
9062
- });
9270
+ return this.clone(mergeDefs(this._zod.def, { catchall }));
9063
9271
  },
9064
9272
  passthrough() {
9065
- return this.clone({
9066
- ...this._zod.def,
9067
- catchall: unknown$1()
9068
- });
9273
+ return this.clone(mergeDefs(this._zod.def, { catchall: unknown$1() }));
9069
9274
  },
9070
9275
  loose() {
9071
- return this.clone({
9072
- ...this._zod.def,
9073
- catchall: unknown$1()
9074
- });
9276
+ return this.clone(mergeDefs(this._zod.def, { catchall: unknown$1() }));
9075
9277
  },
9076
9278
  strict() {
9077
- return this.clone({
9078
- ...this._zod.def,
9079
- catchall: never()
9080
- });
9279
+ return this.clone(mergeDefs(this._zod.def, { catchall: never() }));
9081
9280
  },
9082
9281
  strip() {
9083
- return this.clone({
9084
- ...this._zod.def,
9085
- catchall: void 0
9086
- });
9282
+ return this.clone(mergeDefs(this._zod.def, { catchall: void 0 }));
9087
9283
  },
9088
9284
  extend(incoming) {
9089
9285
  return extend$1(this, incoming);
@@ -9190,7 +9386,7 @@ const ZodEnum = /*@__PURE__*/ $constructor("ZodEnum", (inst, def) => {
9190
9386
  ZodType.init(inst, def);
9191
9387
  inst._zod.processJSONSchema = (ctx, json, params) => enumProcessor(inst, ctx, json, params);
9192
9388
  inst.enum = def.entries;
9193
- inst.options = Object.values(def.entries);
9389
+ inst.options = [...inst._zod.values];
9194
9390
  const keys = new Set(Object.keys(def.entries));
9195
9391
  inst.extract = (values, params) => {
9196
9392
  const newEntries = {};
@@ -9419,12 +9615,12 @@ function preprocess$1(fn, schema) {
9419
9615
  });
9420
9616
  }
9421
9617
  //#endregion
9422
- //#region ../../node_modules/.pnpm/zod@4.5.4/node_modules/zod/v4/classic/iso.js
9618
+ //#region ../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/iso.js
9423
9619
  function datetime(params) {
9424
9620
  return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
9425
9621
  }
9426
9622
  //#endregion
9427
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
9623
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
9428
9624
  const LATEST_PROTOCOL_VERSION = "2025-11-25";
9429
9625
  const SUPPORTED_PROTOCOL_VERSIONS = [
9430
9626
  LATEST_PROTOCOL_VERSION,
@@ -11325,7 +11521,7 @@ var UrlElicitationRequiredError = class extends McpError {
11325
11521
  }
11326
11522
  };
11327
11523
  //#endregion
11328
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
11524
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
11329
11525
  /**
11330
11526
  * Experimental task interfaces for MCP SDK.
11331
11527
  * WARNING: These APIs are experimental and may change without notice.
@@ -11342,7 +11538,7 @@ function isTerminal(status) {
11342
11538
  return status === "completed" || status === "failed" || status === "cancelled";
11343
11539
  }
11344
11540
  //#endregion
11345
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/Options.js
11541
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/Options.js
11346
11542
  const ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
11347
11543
  const defaultOptions$1 = {
11348
11544
  name: void 0,
@@ -11376,7 +11572,7 @@ const getDefaultOptions = (options) => typeof options === "string" ? {
11376
11572
  ...options
11377
11573
  };
11378
11574
  //#endregion
11379
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/Refs.js
11575
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/Refs.js
11380
11576
  const getRefs = (options) => {
11381
11577
  const _options = getDefaultOptions(options);
11382
11578
  const currentPath = _options.name !== void 0 ? [
@@ -11401,7 +11597,7 @@ const getRefs = (options) => {
11401
11597
  };
11402
11598
  };
11403
11599
  //#endregion
11404
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
11600
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/errorMessages.js
11405
11601
  function addErrorMessage(res, key, errorMessage, refs) {
11406
11602
  if (!refs?.errorMessages) return;
11407
11603
  if (errorMessage) res.errorMessage = {
@@ -11414,14 +11610,14 @@ function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
11414
11610
  addErrorMessage(res, key, errorMessage, refs);
11415
11611
  }
11416
11612
  //#endregion
11417
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
11613
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js
11418
11614
  const getRelativePath = (pathA, pathB) => {
11419
11615
  let i = 0;
11420
11616
  for (; i < pathA.length && i < pathB.length; i++) if (pathA[i] !== pathB[i]) break;
11421
11617
  return [(pathA.length - i).toString(), ...pathB.slice(i)].join("/");
11422
11618
  };
11423
11619
  //#endregion
11424
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
11620
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/any.js
11425
11621
  function parseAnyDef(refs) {
11426
11622
  if (refs.target !== "openAi") return {};
11427
11623
  const anyDefinitionPath = [
@@ -11433,7 +11629,7 @@ function parseAnyDef(refs) {
11433
11629
  return { $ref: refs.$refStrategy === "relative" ? getRelativePath(anyDefinitionPath, refs.currentPath) : anyDefinitionPath.join("/") };
11434
11630
  }
11435
11631
  //#endregion
11436
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
11632
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/array.js
11437
11633
  function parseArrayDef(def, refs) {
11438
11634
  const res = { type: "array" };
11439
11635
  if (def.type?._def && def.type?._def?.typeName !== ZodFirstPartyTypeKind.ZodAny) res.items = parseDef(def.type._def, {
@@ -11449,7 +11645,7 @@ function parseArrayDef(def, refs) {
11449
11645
  return res;
11450
11646
  }
11451
11647
  //#endregion
11452
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
11648
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js
11453
11649
  function parseBigintDef(def, refs) {
11454
11650
  const res = {
11455
11651
  type: "integer",
@@ -11480,22 +11676,22 @@ function parseBigintDef(def, refs) {
11480
11676
  return res;
11481
11677
  }
11482
11678
  //#endregion
11483
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
11679
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js
11484
11680
  function parseBooleanDef() {
11485
11681
  return { type: "boolean" };
11486
11682
  }
11487
11683
  //#endregion
11488
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
11684
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js
11489
11685
  function parseBrandedDef(_def, refs) {
11490
11686
  return parseDef(_def.type._def, refs);
11491
11687
  }
11492
11688
  //#endregion
11493
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
11689
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js
11494
11690
  const parseCatchDef = (def, refs) => {
11495
11691
  return parseDef(def.innerType._def, refs);
11496
11692
  };
11497
11693
  //#endregion
11498
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
11694
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/date.js
11499
11695
  function parseDateDef(def, refs, overrideDateStrategy) {
11500
11696
  const strategy = overrideDateStrategy ?? refs.dateStrategy;
11501
11697
  if (Array.isArray(strategy)) return { anyOf: strategy.map((item, i) => parseDateDef(def, refs, item)) };
@@ -11527,7 +11723,7 @@ const integerDateParser = (def, refs) => {
11527
11723
  return res;
11528
11724
  };
11529
11725
  //#endregion
11530
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
11726
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/default.js
11531
11727
  function parseDefaultDef(_def, refs) {
11532
11728
  return {
11533
11729
  ...parseDef(_def.innerType._def, refs),
@@ -11535,12 +11731,12 @@ function parseDefaultDef(_def, refs) {
11535
11731
  };
11536
11732
  }
11537
11733
  //#endregion
11538
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
11734
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js
11539
11735
  function parseEffectsDef(_def, refs) {
11540
11736
  return refs.effectStrategy === "input" ? parseDef(_def.schema._def, refs) : parseAnyDef(refs);
11541
11737
  }
11542
11738
  //#endregion
11543
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
11739
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js
11544
11740
  function parseEnumDef(def) {
11545
11741
  return {
11546
11742
  type: "string",
@@ -11548,7 +11744,7 @@ function parseEnumDef(def) {
11548
11744
  };
11549
11745
  }
11550
11746
  //#endregion
11551
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
11747
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js
11552
11748
  const isJsonSchema7AllOfType = (type) => {
11553
11749
  if ("type" in type && type.type === "string") return false;
11554
11750
  return "allOf" in type;
@@ -11590,7 +11786,7 @@ function parseIntersectionDef(def, refs) {
11590
11786
  } : void 0;
11591
11787
  }
11592
11788
  //#endregion
11593
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
11789
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js
11594
11790
  function parseLiteralDef(def, refs) {
11595
11791
  const parsedType = typeof def.value;
11596
11792
  if (parsedType !== "bigint" && parsedType !== "number" && parsedType !== "boolean" && parsedType !== "string") return { type: Array.isArray(def.value) ? "array" : "object" };
@@ -11604,7 +11800,7 @@ function parseLiteralDef(def, refs) {
11604
11800
  };
11605
11801
  }
11606
11802
  //#endregion
11607
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
11803
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/string.js
11608
11804
  let emojiRegex = void 0;
11609
11805
  /**
11610
11806
  * Generated from the regular expressions found here as of 2024-05-22:
@@ -11867,7 +12063,7 @@ function stringifyRegExpWithFlags(regex, refs) {
11867
12063
  return pattern;
11868
12064
  }
11869
12065
  //#endregion
11870
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
12066
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/record.js
11871
12067
  function parseRecordDef(def, refs) {
11872
12068
  if (refs.target === "openAi") console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");
11873
12069
  if (refs.target === "openApi3" && def.keyType?._def.typeName === ZodFirstPartyTypeKind.ZodEnum) return {
@@ -11914,7 +12110,7 @@ function parseRecordDef(def, refs) {
11914
12110
  return schema;
11915
12111
  }
11916
12112
  //#endregion
11917
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
12113
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/map.js
11918
12114
  function parseMapDef(def, refs) {
11919
12115
  if (refs.mapStrategy === "record") return parseRecordDef(def, refs);
11920
12116
  return {
@@ -11945,7 +12141,7 @@ function parseMapDef(def, refs) {
11945
12141
  };
11946
12142
  }
11947
12143
  //#endregion
11948
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
12144
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js
11949
12145
  function parseNativeEnumDef(def) {
11950
12146
  const object = def.values;
11951
12147
  const actualValues = Object.keys(def.values).filter((key) => {
@@ -11958,7 +12154,7 @@ function parseNativeEnumDef(def) {
11958
12154
  };
11959
12155
  }
11960
12156
  //#endregion
11961
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
12157
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/never.js
11962
12158
  function parseNeverDef(refs) {
11963
12159
  return refs.target === "openAi" ? void 0 : { not: parseAnyDef({
11964
12160
  ...refs,
@@ -11966,7 +12162,7 @@ function parseNeverDef(refs) {
11966
12162
  }) };
11967
12163
  }
11968
12164
  //#endregion
11969
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
12165
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/null.js
11970
12166
  function parseNullDef(refs) {
11971
12167
  return refs.target === "openApi3" ? {
11972
12168
  enum: ["null"],
@@ -11974,7 +12170,7 @@ function parseNullDef(refs) {
11974
12170
  } : { type: "null" };
11975
12171
  }
11976
12172
  //#endregion
11977
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
12173
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/union.js
11978
12174
  const primitiveMappings = {
11979
12175
  ZodString: "string",
11980
12176
  ZodNumber: "number",
@@ -12030,7 +12226,7 @@ const asAnyOf = (def, refs) => {
12030
12226
  return anyOf.length ? { anyOf } : void 0;
12031
12227
  };
12032
12228
  //#endregion
12033
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
12229
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js
12034
12230
  function parseNullableDef(def, refs) {
12035
12231
  if ([
12036
12232
  "ZodString",
@@ -12070,7 +12266,7 @@ function parseNullableDef(def, refs) {
12070
12266
  return base && { anyOf: [base, { type: "null" }] };
12071
12267
  }
12072
12268
  //#endregion
12073
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
12269
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/number.js
12074
12270
  function parseNumberDef(def, refs) {
12075
12271
  const res = { type: "number" };
12076
12272
  if (!def.checks) return res;
@@ -12102,7 +12298,7 @@ function parseNumberDef(def, refs) {
12102
12298
  return res;
12103
12299
  }
12104
12300
  //#endregion
12105
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
12301
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/object.js
12106
12302
  function parseObjectDef(def, refs) {
12107
12303
  const forceOptionalIntoNullable = refs.target === "openAi";
12108
12304
  const result = {
@@ -12161,7 +12357,7 @@ function safeIsOptional(schema) {
12161
12357
  }
12162
12358
  }
12163
12359
  //#endregion
12164
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
12360
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js
12165
12361
  const parseOptionalDef = (def, refs) => {
12166
12362
  if (refs.currentPath.toString() === refs.propertyPath?.toString()) return parseDef(def.innerType._def, refs);
12167
12363
  const innerSchema = parseDef(def.innerType._def, {
@@ -12175,7 +12371,7 @@ const parseOptionalDef = (def, refs) => {
12175
12371
  return innerSchema ? { anyOf: [{ not: parseAnyDef(refs) }, innerSchema] } : parseAnyDef(refs);
12176
12372
  };
12177
12373
  //#endregion
12178
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
12374
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js
12179
12375
  const parsePipelineDef = (def, refs) => {
12180
12376
  if (refs.pipeStrategy === "input") return parseDef(def.in._def, refs);
12181
12377
  else if (refs.pipeStrategy === "output") return parseDef(def.out._def, refs);
@@ -12197,12 +12393,12 @@ const parsePipelineDef = (def, refs) => {
12197
12393
  })].filter((x) => x !== void 0) };
12198
12394
  };
12199
12395
  //#endregion
12200
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
12396
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js
12201
12397
  function parsePromiseDef(def, refs) {
12202
12398
  return parseDef(def.type._def, refs);
12203
12399
  }
12204
12400
  //#endregion
12205
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
12401
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/set.js
12206
12402
  function parseSetDef(def, refs) {
12207
12403
  const schema = {
12208
12404
  type: "array",
@@ -12217,7 +12413,7 @@ function parseSetDef(def, refs) {
12217
12413
  return schema;
12218
12414
  }
12219
12415
  //#endregion
12220
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
12416
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js
12221
12417
  function parseTupleDef(def, refs) {
12222
12418
  if (def.rest) return {
12223
12419
  type: "array",
@@ -12250,22 +12446,22 @@ function parseTupleDef(def, refs) {
12250
12446
  };
12251
12447
  }
12252
12448
  //#endregion
12253
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
12449
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js
12254
12450
  function parseUndefinedDef(refs) {
12255
12451
  return { not: parseAnyDef(refs) };
12256
12452
  }
12257
12453
  //#endregion
12258
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
12454
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js
12259
12455
  function parseUnknownDef(refs) {
12260
12456
  return parseAnyDef(refs);
12261
12457
  }
12262
12458
  //#endregion
12263
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
12459
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js
12264
12460
  const parseReadonlyDef = (def, refs) => {
12265
12461
  return parseDef(def.innerType._def, refs);
12266
12462
  };
12267
12463
  //#endregion
12268
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/selectParser.js
12464
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/selectParser.js
12269
12465
  const selectParser = (def, typeName, refs) => {
12270
12466
  switch (typeName) {
12271
12467
  case ZodFirstPartyTypeKind.ZodString: return parseStringDef(def, refs);
@@ -12308,7 +12504,7 @@ const selectParser = (def, typeName, refs) => {
12308
12504
  }
12309
12505
  };
12310
12506
  //#endregion
12311
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/parseDef.js
12507
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/parseDef.js
12312
12508
  function parseDef(def, refs, forceResolution = false) {
12313
12509
  const seenItem = refs.seen.get(def);
12314
12510
  if (refs.override) {
@@ -12357,7 +12553,7 @@ const addMeta = (def, refs, jsonSchema) => {
12357
12553
  return jsonSchema;
12358
12554
  };
12359
12555
  //#endregion
12360
- //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.5.4/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
12556
+ //#region ../../node_modules/.pnpm/zod-to-json-schema@3.25.1_zod@4.6.5/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js
12361
12557
  const zodToJsonSchema = (schema, options) => {
12362
12558
  const refs = getRefs(options);
12363
12559
  let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce((acc, [name, schema]) => ({
@@ -12420,7 +12616,7 @@ const zodToJsonSchema = (schema, options) => {
12420
12616
  return combined;
12421
12617
  };
12422
12618
  //#endregion
12423
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
12619
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
12424
12620
  function mapMiniTarget(t) {
12425
12621
  if (!t) return "draft-7";
12426
12622
  if (t === "jsonSchema7" || t === "draft-7") return "draft-7";
@@ -19381,7 +19577,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19381
19577
  exports.default = formatsPlugin;
19382
19578
  }));
19383
19579
  //#endregion
19384
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
19580
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
19385
19581
  var import_ajv = /* @__PURE__ */ __toESM(require_ajv(), 1);
19386
19582
  var import_dist = /* @__PURE__ */ __toESM(require_dist(), 1);
19387
19583
  function createDefaultAjvInstance() {
@@ -19457,7 +19653,7 @@ var AjvJsonSchemaValidator = class {
19457
19653
  }
19458
19654
  };
19459
19655
  //#endregion
19460
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
19656
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js
19461
19657
  /**
19462
19658
  * Experimental server task features for MCP SDK.
19463
19659
  * WARNING: These APIs are experimental and may change without notice.
@@ -19675,7 +19871,7 @@ var ExperimentalServerTasks = class {
19675
19871
  }
19676
19872
  };
19677
19873
  //#endregion
19678
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
19874
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
19679
19875
  /**
19680
19876
  * Experimental task capability assertion helpers.
19681
19877
  * WARNING: These APIs are experimental and may change without notice.
@@ -19720,7 +19916,7 @@ function assertClientRequestTaskCapability(requests, method, entityName) {
19720
19916
  }
19721
19917
  }
19722
19918
  //#endregion
19723
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
19919
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
19724
19920
  /**
19725
19921
  * An MCP server on top of a pluggable transport.
19726
19922
  *
@@ -20043,7 +20239,7 @@ var Server = class extends Protocol {
20043
20239
  }
20044
20240
  };
20045
20241
  //#endregion
20046
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
20242
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
20047
20243
  const COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
20048
20244
  /**
20049
20245
  * Checks if a schema is completable (has completion metadata).
@@ -20062,7 +20258,7 @@ var McpZodTypeKind;
20062
20258
  McpZodTypeKind["Completable"] = "McpCompletable";
20063
20259
  })(McpZodTypeKind || (McpZodTypeKind = {}));
20064
20260
  //#endregion
20065
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
20261
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js
20066
20262
  /**
20067
20263
  * Tool name validation utilities according to SEP: Specify Format for Tool Names
20068
20264
  *
@@ -20133,7 +20329,7 @@ function validateAndWarnToolName(name) {
20133
20329
  return result.isValid;
20134
20330
  }
20135
20331
  //#endregion
20136
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
20332
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js
20137
20333
  /**
20138
20334
  * Experimental McpServer task features for MCP SDK.
20139
20335
  * WARNING: These APIs are experimental and may change without notice.
@@ -20164,7 +20360,7 @@ var ExperimentalMcpServerTasks = class {
20164
20360
  }
20165
20361
  };
20166
20362
  //#endregion
20167
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
20363
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
20168
20364
  /**
20169
20365
  * High-level MCP server that provides a simpler API for working with resources, tools, and prompts.
20170
20366
  * For advanced usage (like sending notifications or setting custom request handlers), use the underlying
@@ -20822,7 +21018,7 @@ function serializeMessage(message) {
20822
21018
  return JSON.stringify(message) + "\n";
20823
21019
  }
20824
21020
  //#endregion
20825
- //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.5.4/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
21021
+ //#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.30.0_supports-color@7.2.0_zod@4.6.5/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js
20826
21022
  /**
20827
21023
  * Server transport for stdio: this communicates with an MCP client by reading from the current process' stdin and writing to stdout.
20828
21024
  *
@@ -21914,23 +22110,23 @@ const kebabCase = (str) => {
21914
22110
  */
21915
22111
  const NX_VERSION = {
21916
22112
  "@a2a-js/sdk": "0.3.14",
21917
- "@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.12.0",
22113
+ "@aws/aws-distro-opentelemetry-node-autoinstrumentation": "0.13.0",
21918
22114
  "@opentelemetry/propagator-jaeger": "2.11.0",
21919
22115
  minimatch: "10.2.6",
21920
22116
  "deepmerge-ts": "8.0.2",
21921
- mysql2: "3.24.3",
21922
- "@aws-sdk/client-dynamodb": "3.1126.0",
21923
- "@aws-sdk/client-api-gateway": "3.1126.0",
21924
- "@aws-sdk/client-iam": "3.1126.0",
21925
- "@aws-sdk/client-bedrock-agentcore": "3.1126.0",
21926
- "@aws-sdk/client-bedrock-runtime": "3.1126.0",
21927
- "@aws-sdk/client-s3": "3.1126.0",
21928
- "@aws-sdk/client-sts": "3.1126.0",
21929
- "@aws-sdk/client-cognito-identity-provider": "3.1126.0",
21930
- "@aws-sdk/credential-providers": "3.1126.0",
21931
- "@aws-sdk/credential-provider-cognito-identity": "3.972.69",
21932
- "@aws-sdk/client-secrets-manager": "3.1126.0",
21933
- "@aws-sdk/rds-signer": "3.1126.0",
22117
+ mysql2: "3.24.4",
22118
+ "@aws-sdk/client-dynamodb": "3.1136.0",
22119
+ "@aws-sdk/client-api-gateway": "3.1136.0",
22120
+ "@aws-sdk/client-iam": "3.1136.0",
22121
+ "@aws-sdk/client-bedrock-agentcore": "3.1136.0",
22122
+ "@aws-sdk/client-bedrock-runtime": "3.1136.0",
22123
+ "@aws-sdk/client-s3": "3.1136.0",
22124
+ "@aws-sdk/client-sts": "3.1136.0",
22125
+ "@aws-sdk/client-cognito-identity-provider": "3.1136.0",
22126
+ "@aws-sdk/credential-providers": "3.1136.0",
22127
+ "@aws-sdk/credential-provider-cognito-identity": "3.972.70",
22128
+ "@aws-sdk/client-secrets-manager": "3.1136.0",
22129
+ "@aws-sdk/rds-signer": "3.1136.0",
21934
22130
  "@smithy/server-apigateway": "0.3.3",
21935
22131
  "@smithy/server-node": "0.3.3",
21936
22132
  "@aws-lambda-powertools/logger": "2.35.0",
@@ -21938,9 +22134,9 @@ const NX_VERSION = {
21938
22134
  "@aws-lambda-powertools/parameters": "2.35.0",
21939
22135
  "@aws-lambda-powertools/tracer": "2.35.0",
21940
22136
  "@aws-lambda-powertools/parser": "2.35.0",
21941
- "@aws-sdk/client-appconfigdata": "3.1126.0",
22137
+ "@aws-sdk/client-appconfigdata": "3.1136.0",
21942
22138
  "@middy/core": "7.9.2",
21943
- "@nxlv/python": "23.0.0",
22139
+ "@nxlv/python": "23.1.1",
21944
22140
  "@nx-extend/terraform": "10.4.1",
21945
22141
  nx: "23.2.1",
21946
22142
  "@nx/devkit": "23.2.1",
@@ -21951,33 +22147,33 @@ const NX_VERSION = {
21951
22147
  "@nx/workspace": "23.2.1",
21952
22148
  "create-nx-workspace": "23.2.1",
21953
22149
  "@swc-node/register": "1.12.1",
21954
- "@swc/core": "1.16.1",
22150
+ "@swc/core": "1.16.2",
21955
22151
  "@modelcontextprotocol/sdk": "1.30.0",
21956
- "@modelcontextprotocol/inspector": "2.5.0",
22152
+ "@modelcontextprotocol/inspector": "2.7.0",
21957
22153
  "@ag-ui/a2ui-toolkit": "0.0.4",
21958
- "@ag-ui/aws-strands": "0.2.3",
22154
+ "@ag-ui/aws-strands": "0.3.0",
21959
22155
  "@ag-ui/client": "0.0.59",
21960
22156
  "@ag-ui/core": "0.0.59",
21961
22157
  "@ag-ui/encoder": "0.0.59",
21962
22158
  "agent-chat-cli": "0.3.0",
21963
- "@copilotkit/react-core": "1.70.1",
22159
+ "@copilotkit/react-core": "1.73.0",
21964
22160
  rxjs: "7.8.2",
21965
- "@strands-agents/sdk": "1.15.0",
21966
- "@tanstack/react-router": "1.170.32",
21967
- "@tanstack/router-plugin": "1.168.35",
21968
- "@tanstack/router-generator": "1.167.33",
22161
+ "@strands-agents/sdk": "1.18.0",
22162
+ "@tanstack/react-router": "1.170.38",
22163
+ "@tanstack/router-plugin": "1.168.40",
22164
+ "@tanstack/router-generator": "1.167.38",
21969
22165
  "@tanstack/virtual-file-routes": "1.162.0",
21970
- "@tanstack/router-utils": "1.162.2",
21971
- "@cloudscape-design/board-components": "3.0.222",
21972
- "@cloudscape-design/chat-components": "1.0.166",
21973
- "@cloudscape-design/components": "3.0.1359",
21974
- "@cloudscape-design/global-styles": "1.0.67",
21975
- "@tanstack/react-query": "5.102.8",
21976
- "@tanstack/react-query-devtools": "5.102.8",
21977
- "@trpc/tanstack-react-query": "11.18.0",
21978
- "@trpc/client": "11.18.0",
21979
- "@trpc/server": "11.18.0",
21980
- "@types/node": "26.4.1",
22166
+ "@tanstack/router-utils": "1.162.3",
22167
+ "@cloudscape-design/board-components": "3.0.232",
22168
+ "@cloudscape-design/chat-components": "1.0.173",
22169
+ "@cloudscape-design/components": "3.0.1382",
22170
+ "@cloudscape-design/global-styles": "1.0.70",
22171
+ "@tanstack/react-query": "5.103.1",
22172
+ "@tanstack/react-query-devtools": "5.103.1",
22173
+ "@trpc/tanstack-react-query": "11.19.0",
22174
+ "@trpc/client": "11.19.0",
22175
+ "@trpc/server": "11.19.0",
22176
+ "@types/node": "26.6.2",
21981
22177
  "@types/aws-lambda": "8.10.163",
21982
22178
  "@types/cors": "2.8.19",
21983
22179
  "@types/pg": "8.23.1",
@@ -21989,25 +22185,25 @@ const NX_VERSION = {
21989
22185
  "@smithy/types": "4.18.0",
21990
22186
  "@vitest/coverage-v8": "4.1.11",
21991
22187
  "@vitest/ui": "4.1.11",
21992
- "@astrojs/react": "6.0.5",
21993
- "@astrojs/starlight": "0.42.0",
21994
- astro: "7.3.1",
22188
+ "@astrojs/react": "6.0.6",
22189
+ "@astrojs/starlight": "0.42.2",
22190
+ astro: "7.3.3",
21995
22191
  cookie: "2.0.1",
21996
22192
  aws4fetch: "1.0.20",
21997
- "aws-cdk": "2.1139.0",
21998
- "aws-cdk-lib": "2.268.0",
22193
+ "aws-cdk": "2.1142.0",
22194
+ "aws-cdk-lib": "2.270.0",
21999
22195
  "aws-xray-sdk-core": "3.12.0",
22000
22196
  constructs: "10.8.1",
22001
22197
  cors: "2.8.6",
22002
22198
  chalk: "6.0.0",
22003
22199
  "class-variance-authority": "0.7.1",
22004
- cn: "0.2.5",
22200
+ cn: "0.3.0",
22005
22201
  commander: "15.0.0",
22006
22202
  electrodb: "3.9.3",
22007
22203
  esbuild: "0.28.2",
22008
22204
  "event-source-polyfill": "1.0.31",
22009
22205
  "@types/event-source-polyfill": "1.0.5",
22010
- "@biomejs/biome": "2.5.12",
22206
+ "@biomejs/biome": "2.5.14",
22011
22207
  "@prisma/adapter-mariadb": "7.10.0",
22012
22208
  "@prisma/adapter-pg": "7.10.0",
22013
22209
  "@prisma/client": "7.10.0",
@@ -22019,33 +22215,33 @@ const NX_VERSION = {
22019
22215
  "fs-extra": "11.4.0",
22020
22216
  "@types/fs-extra": "11.0.4",
22021
22217
  mariadb: "3.5.4",
22022
- mise: "2026.9.1",
22218
+ mise: "2026.9.12",
22023
22219
  npm: "12.0.2",
22024
22220
  "npm-check-updates": "23.1.0",
22025
22221
  "oidc-client-ts": "3.5.0",
22026
22222
  pg: "8.23.0",
22027
22223
  prisma: "7.10.0",
22028
22224
  "react-oidc-context": "3.3.1",
22029
- react: "19.2.8",
22030
- "react-dom": "19.2.8",
22031
- rolldown: "1.2.7",
22032
- "rolldown-plugin-dts": "0.28.5",
22225
+ react: "19.3.0",
22226
+ "react-dom": "19.3.0",
22227
+ rolldown: "1.2.9",
22228
+ "rolldown-plugin-dts": "0.28.6",
22033
22229
  shx: "0.4.0",
22034
22230
  "simple-git": "3.36.0",
22035
22231
  "source-map-support": "0.5.21",
22036
22232
  "starlight-blog": "0.29.0",
22037
22233
  tailwindcss: "4.3.3",
22038
22234
  "@tailwindcss/vite": "4.3.3",
22039
- tsx: "4.23.13",
22040
- "lucide-react": "1.40.0",
22235
+ tsx: "4.23.15",
22236
+ "lucide-react": "1.47.0",
22041
22237
  "radix-ui": "1.6.7",
22042
22238
  shadcn: "4.21.0",
22043
22239
  "tw-animate-css": "1.4.0",
22044
- vite: "8.2.2",
22240
+ vite: "8.3.0",
22045
22241
  typescript: "6.0.3",
22046
22242
  vitest: "4.1.11",
22047
22243
  jsdom: "29.1.1",
22048
- zod: "4.5.4",
22244
+ zod: "4.6.5",
22049
22245
  ws: "8.21.3"
22050
22246
  }.nx;
22051
22247
  //#endregion