@storm-software/git-tools 2.130.38 → 2.130.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-LOG3DPPQ.cjs → chunk-27LFN4VQ.cjs} +4 -4
  3. package/bin/{chunk-LOG3DPPQ.cjs.map → chunk-27LFN4VQ.cjs.map} +1 -1
  4. package/bin/{chunk-WBM5EHOT.js → chunk-3RY4CGUX.js} +3 -3
  5. package/bin/{chunk-WBM5EHOT.js.map → chunk-3RY4CGUX.js.map} +1 -1
  6. package/bin/{chunk-CW2LOJGK.js → chunk-6V4HD3QJ.js} +3 -3
  7. package/bin/{chunk-CW2LOJGK.js.map → chunk-6V4HD3QJ.js.map} +1 -1
  8. package/bin/{chunk-5VMV7N3G.js → chunk-BHWWH5OI.js} +163 -73
  9. package/bin/chunk-BHWWH5OI.js.map +1 -0
  10. package/bin/{chunk-2RGP4ACE.js → chunk-DNLVUV64.js} +3 -3
  11. package/bin/{chunk-2RGP4ACE.js.map → chunk-DNLVUV64.js.map} +1 -1
  12. package/bin/{chunk-ZSLNAQQG.js → chunk-GU7L3IBA.js} +3 -3
  13. package/bin/{chunk-ZSLNAQQG.js.map → chunk-GU7L3IBA.js.map} +1 -1
  14. package/bin/{chunk-2QLTCKJS.js → chunk-IEGXPTOH.js} +3 -3
  15. package/bin/{chunk-2QLTCKJS.js.map → chunk-IEGXPTOH.js.map} +1 -1
  16. package/bin/{chunk-5Z6RONLO.cjs → chunk-LR2WNL25.cjs} +4 -4
  17. package/bin/{chunk-5Z6RONLO.cjs.map → chunk-LR2WNL25.cjs.map} +1 -1
  18. package/bin/{chunk-OVGMWXXJ.cjs → chunk-MY767YV7.cjs} +6 -6
  19. package/bin/chunk-MY767YV7.cjs.map +1 -0
  20. package/bin/{chunk-HVR76UIF.cjs → chunk-PTYTYIPG.cjs} +163 -73
  21. package/bin/chunk-PTYTYIPG.cjs.map +1 -0
  22. package/bin/{chunk-PRWPYXMH.cjs → chunk-ROM64JTJ.cjs} +4 -4
  23. package/bin/{chunk-PRWPYXMH.cjs.map → chunk-ROM64JTJ.cjs.map} +1 -1
  24. package/bin/{chunk-NZCON5HN.cjs → chunk-THX6DU6T.cjs} +4 -4
  25. package/bin/{chunk-NZCON5HN.cjs.map → chunk-THX6DU6T.cjs.map} +1 -1
  26. package/bin/{chunk-L5CIC5RM.cjs → chunk-UIGOGTUM.cjs} +4 -4
  27. package/bin/{chunk-L5CIC5RM.cjs.map → chunk-UIGOGTUM.cjs.map} +1 -1
  28. package/bin/{chunk-HIBBA263.cjs → chunk-USGU6ZVC.cjs} +5 -5
  29. package/bin/{chunk-HIBBA263.cjs.map → chunk-USGU6ZVC.cjs.map} +1 -1
  30. package/bin/{chunk-GULFJC7R.js → chunk-V6PBXXP5.js} +3 -3
  31. package/bin/{chunk-GULFJC7R.js.map → chunk-V6PBXXP5.js.map} +1 -1
  32. package/bin/{chunk-NBAUOCB4.js → chunk-Y6YU46VF.js} +5 -5
  33. package/bin/chunk-Y6YU46VF.js.map +1 -0
  34. package/bin/git.cjs +118 -118
  35. package/bin/git.js +8 -8
  36. package/bin/post-checkout.cjs +7 -7
  37. package/bin/post-checkout.js +2 -2
  38. package/bin/post-commit.cjs +7 -7
  39. package/bin/post-commit.js +2 -2
  40. package/bin/post-merge.cjs +7 -7
  41. package/bin/post-merge.js +2 -2
  42. package/bin/pre-commit.cjs +7 -7
  43. package/bin/pre-commit.js +2 -2
  44. package/bin/pre-install.cjs +7 -7
  45. package/bin/pre-install.js +2 -2
  46. package/bin/pre-push.cjs +7 -7
  47. package/bin/pre-push.js +2 -2
  48. package/bin/prepare.cjs +7 -7
  49. package/bin/prepare.js +2 -2
  50. package/bin/version-warning.cjs +5 -5
  51. package/bin/version-warning.js +1 -1
  52. package/dist/{chunk-O56OC5QZ.cjs → chunk-2R2374NN.cjs} +2 -2
  53. package/dist/{chunk-7YZQR2LH.js → chunk-4RAEKSGE.js} +2 -2
  54. package/dist/{chunk-AH2722GG.cjs → chunk-GTHIKJY7.cjs} +162 -72
  55. package/dist/{chunk-LXOOPN74.js → chunk-VBTXRYZY.js} +162 -72
  56. package/dist/index.cjs +10 -10
  57. package/dist/index.js +2 -2
  58. package/dist/release/config.cjs +8 -8
  59. package/dist/release/config.js +1 -1
  60. package/package.json +9 -9
  61. package/bin/chunk-5VMV7N3G.js.map +0 -1
  62. package/bin/chunk-HVR76UIF.cjs.map +0 -1
  63. package/bin/chunk-NBAUOCB4.js.map +0 -1
  64. package/bin/chunk-OVGMWXXJ.cjs.map +0 -1
@@ -403,6 +403,9 @@ Stacktrace: ${error.stack}`,
403
403
  exitWithError(config2);
404
404
  });
405
405
  };
406
+
407
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
408
+ var _a;
406
409
  // @__NO_SIDE_EFFECTS__
407
410
  function $constructor(name, initializer2, params) {
408
411
  function init(inst, def) {
@@ -435,10 +438,10 @@ function $constructor(name, initializer2, params) {
435
438
  }
436
439
  Object.defineProperty(Definition, "name", { value: name });
437
440
  function _(def) {
438
- var _a2;
441
+ var _a3;
439
442
  const inst = params?.Parent ? new Definition() : this;
440
443
  init(inst, def);
441
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
444
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
442
445
  for (const fn of inst._zod.deferred) {
443
446
  fn();
444
447
  }
@@ -460,12 +463,13 @@ var $ZodAsyncError = class extends Error {
460
463
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
461
464
  }
462
465
  };
463
- var globalConfig = {};
466
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
467
+ var globalConfig = globalThis.__zod_globalConfig;
464
468
  function config(newConfig) {
465
469
  return globalConfig;
466
470
  }
467
471
 
468
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
472
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
469
473
  function getEnumValues(entries) {
470
474
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
471
475
  const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -495,7 +499,7 @@ function cleanRegex(source) {
495
499
  const end = source.endsWith("$") ? source.length - 1 : source.length;
496
500
  return source.slice(start, end);
497
501
  }
498
- var EVALUATING = Symbol("evaluating");
502
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
499
503
  function defineLazy(object2, key, getter) {
500
504
  let value = void 0;
501
505
  Object.defineProperty(object2, key, {
@@ -544,6 +548,10 @@ function shallowClone(o) {
544
548
  return { ...o };
545
549
  if (Array.isArray(o))
546
550
  return [...o];
551
+ if (o instanceof Map)
552
+ return new Map(o);
553
+ if (o instanceof Set)
554
+ return new Set(o);
547
555
  return o;
548
556
  }
549
557
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
@@ -557,7 +565,20 @@ function clone(inst, def, params) {
557
565
  return cl;
558
566
  }
559
567
  function normalizeParams(_params) {
560
- return {};
568
+ const params = _params;
569
+ if (!params)
570
+ return {};
571
+ if (typeof params === "string")
572
+ return { error: () => params };
573
+ if (params?.message !== void 0) {
574
+ if (params?.error !== void 0)
575
+ throw new Error("Cannot specify both `message` and `error` params");
576
+ params.error = params.message;
577
+ }
578
+ delete params.message;
579
+ if (typeof params.error === "string")
580
+ return { ...params, error: () => params.error };
581
+ return params;
561
582
  }
562
583
  function optionalKeys(shape) {
563
584
  return Object.keys(shape).filter((k) => {
@@ -574,10 +595,20 @@ function aborted(x, startIndex = 0) {
574
595
  }
575
596
  return false;
576
597
  }
598
+ function explicitlyAborted(x, startIndex = 0) {
599
+ if (x.aborted === true)
600
+ return true;
601
+ for (let i = startIndex; i < x.issues.length; i++) {
602
+ if (x.issues[i]?.continue === false) {
603
+ return true;
604
+ }
605
+ }
606
+ return false;
607
+ }
577
608
  function prefixIssues(path, issues) {
578
609
  return issues.map((iss) => {
579
- var _a2;
580
- (_a2 = iss).path ?? (_a2.path = []);
610
+ var _a3;
611
+ (_a3 = iss).path ?? (_a3.path = []);
581
612
  iss.path.unshift(path);
582
613
  return iss;
583
614
  });
@@ -586,17 +617,14 @@ function unwrapMessage(message) {
586
617
  return typeof message === "string" ? message : message?.message;
587
618
  }
588
619
  function finalizeIssue(iss, ctx, config2) {
589
- const full = { ...iss, path: iss.path ?? [] };
590
- if (!iss.message) {
591
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
592
- full.message = message;
593
- }
594
- delete full.inst;
595
- delete full.continue;
596
- if (!ctx?.reportInput) {
597
- delete full.input;
620
+ const message = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
621
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
622
+ rest.path ?? (rest.path = []);
623
+ rest.message = message;
624
+ if (ctx?.reportInput) {
625
+ rest.input = _input;
598
626
  }
599
- return full;
627
+ return rest;
600
628
  }
601
629
  function getLengthableOrigin(input) {
602
630
  if (Array.isArray(input))
@@ -606,7 +634,7 @@ function getLengthableOrigin(input) {
606
634
  return "unknown";
607
635
  }
608
636
 
609
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
637
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
610
638
  var initializer = (inst, def) => {
611
639
  inst.name = "$ZodError";
612
640
  Object.defineProperty(inst, "_zod", {
@@ -626,9 +654,9 @@ var initializer = (inst, def) => {
626
654
  var $ZodError = $constructor("$ZodError", initializer);
627
655
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
628
656
 
629
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
657
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
630
658
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
631
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
659
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
632
660
  const result = schema._zod.run({ value, issues: [] }, ctx);
633
661
  if (result instanceof Promise) {
634
662
  throw new $ZodAsyncError();
@@ -642,7 +670,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
642
670
  };
643
671
  var parse = /* @__PURE__ */ _parse($ZodRealError);
644
672
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
645
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
673
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
646
674
  let result = schema._zod.run({ value, issues: [] }, ctx);
647
675
  if (result instanceof Promise)
648
676
  result = await result;
@@ -667,7 +695,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
667
695
  };
668
696
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
669
697
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
670
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
698
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
671
699
  let result = schema._zod.run({ value, issues: [] }, ctx);
672
700
  if (result instanceof Promise)
673
701
  result = await result;
@@ -677,6 +705,9 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
677
705
  } : { success: true, data: result.value };
678
706
  };
679
707
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
708
+
709
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
710
+ var httpProtocol = /^https?$/;
680
711
  var string = (params) => {
681
712
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
682
713
  return new RegExp(`^${regex}$`);
@@ -684,17 +715,17 @@ var string = (params) => {
684
715
  var number = /^-?\d+(?:\.\d+)?$/;
685
716
  var boolean = /^(?:true|false)$/i;
686
717
 
687
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
718
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
688
719
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
689
- var _a2;
720
+ var _a3;
690
721
  inst._zod ?? (inst._zod = {});
691
722
  inst._zod.def = def;
692
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
723
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
693
724
  });
694
725
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
695
- var _a2;
726
+ var _a3;
696
727
  $ZodCheck.init(inst, def);
697
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
728
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
698
729
  const val = payload.value;
699
730
  return !nullish(val) && val.length !== void 0;
700
731
  });
@@ -723,7 +754,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
723
754
  };
724
755
  });
725
756
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
726
- var _a2, _b;
757
+ var _a3, _b;
727
758
  $ZodCheck.init(inst, def);
728
759
  inst._zod.onattach.push((inst2) => {
729
760
  const bag = inst2._zod.bag;
@@ -734,7 +765,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
734
765
  }
735
766
  });
736
767
  if (def.pattern)
737
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
768
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
738
769
  def.pattern.lastIndex = 0;
739
770
  if (def.pattern.test(payload.value))
740
771
  return;
@@ -776,16 +807,16 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
776
807
  };
777
808
  });
778
809
 
779
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
810
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
780
811
  var version = {
781
812
  major: 4,
782
- minor: 3,
783
- patch: 6
813
+ minor: 4,
814
+ patch: 3
784
815
  };
785
816
 
786
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
817
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
787
818
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
788
- var _a2;
819
+ var _a3;
789
820
  inst ?? (inst = {});
790
821
  inst._zod.def = def;
791
822
  inst._zod.bag = inst._zod.bag || {};
@@ -800,7 +831,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
800
831
  }
801
832
  }
802
833
  if (checks.length === 0) {
803
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
834
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
804
835
  inst._zod.deferred?.push(() => {
805
836
  inst._zod.run = inst._zod.parse;
806
837
  });
@@ -810,6 +841,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
810
841
  let asyncResult;
811
842
  for (const ch of checks2) {
812
843
  if (ch._zod.def.when) {
844
+ if (explicitlyAborted(payload))
845
+ continue;
813
846
  const shouldRun = ch._zod.def.when(payload);
814
847
  if (!shouldRun)
815
848
  continue;
@@ -922,6 +955,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
922
955
  inst._zod.check = (payload) => {
923
956
  try {
924
957
  const trimmed = payload.value.trim();
958
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
959
+ if (!/^https?:\/\//i.test(trimmed)) {
960
+ payload.issues.push({
961
+ code: "invalid_format",
962
+ format: "url",
963
+ note: "Invalid URL format",
964
+ input: payload.value,
965
+ inst,
966
+ continue: !def.abort
967
+ });
968
+ return;
969
+ }
970
+ }
925
971
  const url2 = new URL(trimmed);
926
972
  if (def.hostname) {
927
973
  def.hostname.lastIndex = 0;
@@ -1032,15 +1078,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1032
1078
  return payload;
1033
1079
  };
1034
1080
  });
1035
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
1081
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
1082
+ const isPresent = key in input;
1036
1083
  if (result.issues.length) {
1037
- if (isOptionalOut && !(key in input)) {
1084
+ if (isOptionalIn && isOptionalOut && !isPresent) {
1038
1085
  return;
1039
1086
  }
1040
1087
  final.issues.push(...prefixIssues(key, result.issues));
1041
1088
  }
1089
+ if (!isPresent && !isOptionalIn) {
1090
+ if (!result.issues.length) {
1091
+ final.issues.push({
1092
+ code: "invalid_type",
1093
+ expected: "nonoptional",
1094
+ input: void 0,
1095
+ path: [key]
1096
+ });
1097
+ }
1098
+ return;
1099
+ }
1042
1100
  if (result.value === void 0) {
1043
- if (key in input) {
1101
+ if (isPresent) {
1044
1102
  final.value[key] = void 0;
1045
1103
  }
1046
1104
  } else {
@@ -1068,8 +1126,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1068
1126
  const keySet = def.keySet;
1069
1127
  const _catchall = def.catchall._zod;
1070
1128
  const t = _catchall.def.type;
1129
+ const isOptionalIn = _catchall.optin === "optional";
1071
1130
  const isOptionalOut = _catchall.optout === "optional";
1072
1131
  for (const key in input) {
1132
+ if (key === "__proto__")
1133
+ continue;
1073
1134
  if (keySet.has(key))
1074
1135
  continue;
1075
1136
  if (t === "never") {
@@ -1078,9 +1139,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1078
1139
  }
1079
1140
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
1080
1141
  if (r instanceof Promise) {
1081
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
1142
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
1082
1143
  } else {
1083
- handlePropertyResult(r, payload, key, input, isOptionalOut);
1144
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
1084
1145
  }
1085
1146
  }
1086
1147
  if (unrecognized.length) {
@@ -1146,12 +1207,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
1146
1207
  const shape = value.shape;
1147
1208
  for (const key of value.keys) {
1148
1209
  const el = shape[key];
1210
+ const isOptionalIn = el._zod.optin === "optional";
1149
1211
  const isOptionalOut = el._zod.optout === "optional";
1150
1212
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
1151
1213
  if (r instanceof Promise) {
1152
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
1214
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
1153
1215
  } else {
1154
- handlePropertyResult(r, payload, key, input, isOptionalOut);
1216
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
1155
1217
  }
1156
1218
  }
1157
1219
  if (!catchall) {
@@ -1197,10 +1259,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
1197
1259
  }
1198
1260
  return void 0;
1199
1261
  });
1200
- const single = def.options.length === 1;
1201
- const first = def.options[0]._zod.run;
1262
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
1202
1263
  inst._zod.parse = (payload, ctx) => {
1203
- if (single) {
1264
+ if (first) {
1204
1265
  return first(payload, ctx);
1205
1266
  }
1206
1267
  let async = false;
@@ -1247,19 +1308,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1247
1308
  for (const key of values) {
1248
1309
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1249
1310
  recordKeys.add(typeof key === "number" ? key.toString() : key);
1311
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1312
+ if (keyResult instanceof Promise) {
1313
+ throw new Error("Async schemas not supported in object keys currently");
1314
+ }
1315
+ if (keyResult.issues.length) {
1316
+ payload.issues.push({
1317
+ code: "invalid_key",
1318
+ origin: "record",
1319
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
1320
+ input: key,
1321
+ path: [key],
1322
+ inst
1323
+ });
1324
+ continue;
1325
+ }
1326
+ const outKey = keyResult.value;
1250
1327
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1251
1328
  if (result instanceof Promise) {
1252
1329
  proms.push(result.then((result2) => {
1253
1330
  if (result2.issues.length) {
1254
1331
  payload.issues.push(...prefixIssues(key, result2.issues));
1255
1332
  }
1256
- payload.value[key] = result2.value;
1333
+ payload.value[outKey] = result2.value;
1257
1334
  }));
1258
1335
  } else {
1259
1336
  if (result.issues.length) {
1260
1337
  payload.issues.push(...prefixIssues(key, result.issues));
1261
1338
  }
1262
- payload.value[key] = result.value;
1339
+ payload.value[outKey] = result.value;
1263
1340
  }
1264
1341
  }
1265
1342
  }
@@ -1283,6 +1360,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1283
1360
  for (const key of Reflect.ownKeys(input)) {
1284
1361
  if (key === "__proto__")
1285
1362
  continue;
1363
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
1364
+ continue;
1286
1365
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1287
1366
  if (keyResult instanceof Promise) {
1288
1367
  throw new Error("Async schemas not supported in object keys currently");
@@ -1377,7 +1456,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
1377
1456
  };
1378
1457
  });
1379
1458
  function handleOptionalResult(result, input) {
1380
- if (result.issues.length && input === void 0) {
1459
+ if (input === void 0 && (result.issues.length || result.fallback)) {
1381
1460
  return { issues: [], value: void 0 };
1382
1461
  }
1383
1462
  return result;
@@ -1395,10 +1474,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
1395
1474
  });
1396
1475
  inst._zod.parse = (payload, ctx) => {
1397
1476
  if (def.innerType._zod.optin === "optional") {
1477
+ const input = payload.value;
1398
1478
  const result = def.innerType._zod.run(payload, ctx);
1399
1479
  if (result instanceof Promise)
1400
- return result.then((r) => handleOptionalResult(r, payload.value));
1401
- return handleOptionalResult(result, payload.value);
1480
+ return result.then((r) => handleOptionalResult(r, input));
1481
+ return handleOptionalResult(result, input);
1402
1482
  }
1403
1483
  if (payload.value === void 0) {
1404
1484
  return payload;
@@ -1449,8 +1529,8 @@ function handleDefaultResult(payload, def) {
1449
1529
  return payload;
1450
1530
  }
1451
1531
 
1452
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1453
- var _a;
1532
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
1533
+ var _a2;
1454
1534
  var $ZodRegistry = class {
1455
1535
  constructor() {
1456
1536
  this._map = /* @__PURE__ */ new WeakMap();
@@ -1494,14 +1574,14 @@ var $ZodRegistry = class {
1494
1574
  function registry() {
1495
1575
  return new $ZodRegistry();
1496
1576
  }
1497
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
1577
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
1498
1578
 
1499
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1579
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1500
1580
  // @__NO_SIDE_EFFECTS__
1501
1581
  function _string(Class, params) {
1502
1582
  return new Class({
1503
1583
  type: "string",
1504
- ...normalizeParams()
1584
+ ...normalizeParams(params)
1505
1585
  });
1506
1586
  }
1507
1587
  // @__NO_SIDE_EFFECTS__
@@ -1511,14 +1591,14 @@ function _url(Class, params) {
1511
1591
  format: "url",
1512
1592
  check: "string_format",
1513
1593
  abort: false,
1514
- ...normalizeParams()
1594
+ ...normalizeParams(params)
1515
1595
  });
1516
1596
  }
1517
1597
  // @__NO_SIDE_EFFECTS__
1518
1598
  function _boolean(Class, params) {
1519
1599
  return new Class({
1520
1600
  type: "boolean",
1521
- ...normalizeParams()
1601
+ ...normalizeParams(params)
1522
1602
  });
1523
1603
  }
1524
1604
  // @__NO_SIDE_EFFECTS__
@@ -1531,7 +1611,7 @@ function _any(Class) {
1531
1611
  function _length(length, params) {
1532
1612
  return new $ZodCheckLengthEquals({
1533
1613
  check: "length_equals",
1534
- ...normalizeParams(),
1614
+ ...normalizeParams(params),
1535
1615
  length
1536
1616
  });
1537
1617
  }
@@ -1540,7 +1620,7 @@ function _regex(pattern, params) {
1540
1620
  return new $ZodCheckRegex({
1541
1621
  check: "string_format",
1542
1622
  format: "regex",
1543
- ...normalizeParams(),
1623
+ ...normalizeParams(params),
1544
1624
  pattern
1545
1625
  });
1546
1626
  }
@@ -1560,7 +1640,7 @@ function _toLowerCase() {
1560
1640
  return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
1561
1641
  }
1562
1642
 
1563
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
1643
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
1564
1644
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1565
1645
  if (!inst._zod)
1566
1646
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -1576,7 +1656,9 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1576
1656
  ...def,
1577
1657
  checks: [
1578
1658
  ...def.checks ?? [],
1579
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
1659
+ ...checks.map((ch) => typeof ch === "function" ? {
1660
+ _zod: { check: ch, def: { check: "custom" }, onattach: [] }
1661
+ } : ch)
1580
1662
  ]
1581
1663
  }, { parent: true });
1582
1664
  };
@@ -1595,7 +1677,7 @@ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) =>
1595
1677
  });
1596
1678
  // @__NO_SIDE_EFFECTS__
1597
1679
  function string2(params) {
1598
- return _string(ZodMiniString);
1680
+ return _string(ZodMiniString, params);
1599
1681
  }
1600
1682
  var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
1601
1683
  $ZodStringFormat.init(inst, def);
@@ -1607,7 +1689,7 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
1607
1689
  });
1608
1690
  // @__NO_SIDE_EFFECTS__
1609
1691
  function url(params) {
1610
- return _url(ZodMiniURL);
1692
+ return _url(ZodMiniURL, params);
1611
1693
  }
1612
1694
  var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
1613
1695
  $ZodBoolean.init(inst, def);
@@ -1615,7 +1697,7 @@ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def)
1615
1697
  });
1616
1698
  // @__NO_SIDE_EFFECTS__
1617
1699
  function boolean2(params) {
1618
- return _boolean(ZodMiniBoolean);
1700
+ return _boolean(ZodMiniBoolean, params);
1619
1701
  }
1620
1702
  var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
1621
1703
  $ZodAny.init(inst, def);
@@ -1634,7 +1716,7 @@ function array(element, params) {
1634
1716
  return new ZodMiniArray({
1635
1717
  type: "array",
1636
1718
  element,
1637
- ...normalizeParams()
1719
+ ...normalizeParams(params)
1638
1720
  });
1639
1721
  }
1640
1722
  var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
@@ -1647,7 +1729,7 @@ function object(shape, params) {
1647
1729
  const def = {
1648
1730
  type: "object",
1649
1731
  shape: shape ?? {},
1650
- ...normalizeParams()
1732
+ ...normalizeParams(params)
1651
1733
  };
1652
1734
  return new ZodMiniObject(def);
1653
1735
  }
@@ -1660,7 +1742,7 @@ function union(options, params) {
1660
1742
  return new ZodMiniUnion({
1661
1743
  type: "union",
1662
1744
  options,
1663
- ...normalizeParams()
1745
+ ...normalizeParams(params)
1664
1746
  });
1665
1747
  }
1666
1748
  var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
@@ -1669,11 +1751,19 @@ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) =>
1669
1751
  });
1670
1752
  // @__NO_SIDE_EFFECTS__
1671
1753
  function record(keyType, valueType, params) {
1754
+ if (!valueType || !valueType._zod) {
1755
+ return new ZodMiniRecord({
1756
+ type: "record",
1757
+ keyType: /* @__PURE__ */ string2(),
1758
+ valueType: keyType,
1759
+ ...normalizeParams(valueType)
1760
+ });
1761
+ }
1672
1762
  return new ZodMiniRecord({
1673
1763
  type: "record",
1674
1764
  keyType,
1675
1765
  valueType,
1676
- ...normalizeParams()
1766
+ ...normalizeParams(params)
1677
1767
  });
1678
1768
  }
1679
1769
  var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
@@ -1687,7 +1777,7 @@ function _enum(values, params) {
1687
1777
  return new ZodMiniEnum({
1688
1778
  type: "enum",
1689
1779
  entries,
1690
- ...normalizeParams()
1780
+ ...normalizeParams(params)
1691
1781
  });
1692
1782
  }
1693
1783
  var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
@@ -1699,7 +1789,7 @@ function literal(value, params) {
1699
1789
  return new ZodMiniLiteral({
1700
1790
  type: "literal",
1701
1791
  values: Array.isArray(value) ? value : [value],
1702
- ...normalizeParams()
1792
+ ...normalizeParams(params)
1703
1793
  });
1704
1794
  }
1705
1795
  var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
@@ -3437,5 +3527,5 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
3437
3527
  }
3438
3528
 
3439
3529
  export { STORM_DEFAULT_RELEASE_BANNER, brandIcon, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
3440
- //# sourceMappingURL=chunk-5VMV7N3G.js.map
3441
- //# sourceMappingURL=chunk-5VMV7N3G.js.map
3530
+ //# sourceMappingURL=chunk-BHWWH5OI.js.map
3531
+ //# sourceMappingURL=chunk-BHWWH5OI.js.map