@storm-software/git-tools 2.130.39 → 2.131.6

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 (75) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-WBM5EHOT.js → chunk-32WE3MHJ.js} +3 -3
  3. package/bin/{chunk-WBM5EHOT.js.map → chunk-32WE3MHJ.js.map} +1 -1
  4. package/bin/chunk-4EOHM2UV.cjs +16 -0
  5. package/bin/{chunk-PRWPYXMH.cjs.map → chunk-4EOHM2UV.cjs.map} +1 -1
  6. package/bin/{chunk-HVR76UIF.cjs → chunk-4ILBJTRR.cjs} +170 -74
  7. package/bin/chunk-4ILBJTRR.cjs.map +1 -0
  8. package/bin/{chunk-5VMV7N3G.js → chunk-7ES3CGZQ.js} +170 -75
  9. package/bin/chunk-7ES3CGZQ.js.map +1 -0
  10. package/bin/{chunk-XY4WATTM.js → chunk-ABI4JM6L.js} +3 -3
  11. package/bin/{chunk-XY4WATTM.js.map → chunk-ABI4JM6L.js.map} +1 -1
  12. package/bin/{chunk-L5CIC5RM.cjs → chunk-AQ5YHZ3Z.cjs} +4 -4
  13. package/bin/{chunk-L5CIC5RM.cjs.map → chunk-AQ5YHZ3Z.cjs.map} +1 -1
  14. package/bin/{chunk-2QLTCKJS.js → chunk-AZGQVIYO.js} +4 -4
  15. package/bin/{chunk-2QLTCKJS.js.map → chunk-AZGQVIYO.js.map} +1 -1
  16. package/bin/{chunk-CW2LOJGK.js → chunk-CDUCLZJV.js} +4 -4
  17. package/bin/{chunk-CW2LOJGK.js.map → chunk-CDUCLZJV.js.map} +1 -1
  18. package/bin/{chunk-ZSLNAQQG.js → chunk-CVTLZKKX.js} +4 -4
  19. package/bin/{chunk-ZSLNAQQG.js.map → chunk-CVTLZKKX.js.map} +1 -1
  20. package/bin/{chunk-NZCON5HN.cjs → chunk-DPKFBB3S.cjs} +7 -7
  21. package/bin/{chunk-NZCON5HN.cjs.map → chunk-DPKFBB3S.cjs.map} +1 -1
  22. package/bin/{chunk-GULFJC7R.js → chunk-IAZL2KCV.js} +4 -4
  23. package/bin/{chunk-GULFJC7R.js.map → chunk-IAZL2KCV.js.map} +1 -1
  24. package/bin/{chunk-FH5OSXAJ.cjs → chunk-MTAYUS7E.cjs} +18 -2
  25. package/bin/chunk-MTAYUS7E.cjs.map +1 -0
  26. package/bin/{chunk-2RGP4ACE.js → chunk-NOZEXVLA.js} +4 -4
  27. package/bin/{chunk-2RGP4ACE.js.map → chunk-NOZEXVLA.js.map} +1 -1
  28. package/bin/{chunk-5Z6RONLO.cjs → chunk-OGGY5I23.cjs} +7 -7
  29. package/bin/{chunk-5Z6RONLO.cjs.map → chunk-OGGY5I23.cjs.map} +1 -1
  30. package/bin/chunk-POFLIQQB.cjs +18 -0
  31. package/bin/{chunk-HIBBA263.cjs.map → chunk-POFLIQQB.cjs.map} +1 -1
  32. package/bin/chunk-RPK5AKGK.js +39 -0
  33. package/bin/chunk-RPK5AKGK.js.map +1 -0
  34. package/bin/{chunk-LOG3DPPQ.cjs → chunk-RZNFHUM6.cjs} +7 -7
  35. package/bin/{chunk-LOG3DPPQ.cjs.map → chunk-RZNFHUM6.cjs.map} +1 -1
  36. package/bin/{chunk-WYYIBLO2.cjs → chunk-W5P2IM2W.cjs} +6 -6
  37. package/bin/{chunk-WYYIBLO2.cjs.map → chunk-W5P2IM2W.cjs.map} +1 -1
  38. package/bin/git.cjs +1341 -200
  39. package/bin/git.cjs.map +1 -1
  40. package/bin/git.js +1235 -97
  41. package/bin/git.js.map +1 -1
  42. package/bin/post-checkout.cjs +8 -8
  43. package/bin/post-checkout.js +3 -3
  44. package/bin/post-commit.cjs +8 -8
  45. package/bin/post-commit.js +3 -3
  46. package/bin/post-merge.cjs +8 -8
  47. package/bin/post-merge.js +3 -3
  48. package/bin/pre-commit.cjs +7 -7
  49. package/bin/pre-commit.js +2 -2
  50. package/bin/pre-install.cjs +8 -8
  51. package/bin/pre-install.js +3 -3
  52. package/bin/pre-push.cjs +7 -7
  53. package/bin/pre-push.js +2 -2
  54. package/bin/prepare.cjs +8 -8
  55. package/bin/prepare.js +3 -3
  56. package/bin/version-warning.cjs +5 -5
  57. package/bin/version-warning.js +1 -1
  58. package/dist/{chunk-AH2722GG.cjs → chunk-EMMN3RCO.cjs} +244 -90
  59. package/dist/{chunk-LXOOPN74.js → chunk-R6XSEPQS.js} +238 -91
  60. package/dist/index.cjs +36 -8
  61. package/dist/index.d.cts +1 -1
  62. package/dist/index.d.ts +1 -1
  63. package/dist/index.js +1 -1
  64. package/dist/release/config.cjs +36 -8
  65. package/dist/release/config.d.cts +138 -2
  66. package/dist/release/config.d.ts +138 -2
  67. package/dist/release/config.js +1 -1
  68. package/package.json +14 -12
  69. package/bin/chunk-5VMV7N3G.js.map +0 -1
  70. package/bin/chunk-FH5OSXAJ.cjs.map +0 -1
  71. package/bin/chunk-G3YPGVPS.js +0 -24
  72. package/bin/chunk-G3YPGVPS.js.map +0 -1
  73. package/bin/chunk-HIBBA263.cjs +0 -18
  74. package/bin/chunk-HVR76UIF.cjs.map +0 -1
  75. package/bin/chunk-PRWPYXMH.cjs +0 -16
@@ -11,7 +11,12 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
11
 
12
12
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
13
13
 
14
- // ../config-tools/src/logger/console.ts
14
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
15
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
16
+ }) : x)(function(x) {
17
+ if (typeof require !== "undefined") return require.apply(this, arguments);
18
+ throw Error('Dynamic require of "' + x + '" is not supported');
19
+ });
15
20
 
16
21
  // ../config-tools/src/types.ts
17
22
  var LogLevel = {
@@ -409,6 +414,9 @@ Stacktrace: ${error.stack}`,
409
414
  exitWithError(config2);
410
415
  });
411
416
  };
417
+
418
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
419
+ var _a;
412
420
  // @__NO_SIDE_EFFECTS__
413
421
  function $constructor(name, initializer2, params) {
414
422
  function init(inst, def) {
@@ -441,10 +449,10 @@ function $constructor(name, initializer2, params) {
441
449
  }
442
450
  Object.defineProperty(Definition, "name", { value: name });
443
451
  function _(def) {
444
- var _a2;
452
+ var _a3;
445
453
  const inst = params?.Parent ? new Definition() : this;
446
454
  init(inst, def);
447
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
455
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
448
456
  for (const fn of inst._zod.deferred) {
449
457
  fn();
450
458
  }
@@ -466,12 +474,13 @@ var $ZodAsyncError = class extends Error {
466
474
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
467
475
  }
468
476
  };
469
- var globalConfig = {};
477
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
478
+ var globalConfig = globalThis.__zod_globalConfig;
470
479
  function config(newConfig) {
471
480
  return globalConfig;
472
481
  }
473
482
 
474
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
483
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
475
484
  function getEnumValues(entries) {
476
485
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
477
486
  const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -501,7 +510,7 @@ function cleanRegex(source) {
501
510
  const end = source.endsWith("$") ? source.length - 1 : source.length;
502
511
  return source.slice(start, end);
503
512
  }
504
- var EVALUATING = Symbol("evaluating");
513
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
505
514
  function defineLazy(object2, key, getter) {
506
515
  let value = void 0;
507
516
  Object.defineProperty(object2, key, {
@@ -550,6 +559,10 @@ function shallowClone(o) {
550
559
  return { ...o };
551
560
  if (Array.isArray(o))
552
561
  return [...o];
562
+ if (o instanceof Map)
563
+ return new Map(o);
564
+ if (o instanceof Set)
565
+ return new Set(o);
553
566
  return o;
554
567
  }
555
568
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
@@ -563,7 +576,20 @@ function clone(inst, def, params) {
563
576
  return cl;
564
577
  }
565
578
  function normalizeParams(_params) {
566
- return {};
579
+ const params = _params;
580
+ if (!params)
581
+ return {};
582
+ if (typeof params === "string")
583
+ return { error: () => params };
584
+ if (params?.message !== void 0) {
585
+ if (params?.error !== void 0)
586
+ throw new Error("Cannot specify both `message` and `error` params");
587
+ params.error = params.message;
588
+ }
589
+ delete params.message;
590
+ if (typeof params.error === "string")
591
+ return { ...params, error: () => params.error };
592
+ return params;
567
593
  }
568
594
  function optionalKeys(shape) {
569
595
  return Object.keys(shape).filter((k) => {
@@ -580,10 +606,20 @@ function aborted(x, startIndex = 0) {
580
606
  }
581
607
  return false;
582
608
  }
609
+ function explicitlyAborted(x, startIndex = 0) {
610
+ if (x.aborted === true)
611
+ return true;
612
+ for (let i = startIndex; i < x.issues.length; i++) {
613
+ if (x.issues[i]?.continue === false) {
614
+ return true;
615
+ }
616
+ }
617
+ return false;
618
+ }
583
619
  function prefixIssues(path, issues) {
584
620
  return issues.map((iss) => {
585
- var _a2;
586
- (_a2 = iss).path ?? (_a2.path = []);
621
+ var _a3;
622
+ (_a3 = iss).path ?? (_a3.path = []);
587
623
  iss.path.unshift(path);
588
624
  return iss;
589
625
  });
@@ -592,17 +628,14 @@ function unwrapMessage(message) {
592
628
  return typeof message === "string" ? message : message?.message;
593
629
  }
594
630
  function finalizeIssue(iss, ctx, config2) {
595
- const full = { ...iss, path: iss.path ?? [] };
596
- if (!iss.message) {
597
- const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config2.customError?.(iss)) ?? unwrapMessage(config2.localeError?.(iss)) ?? "Invalid input";
598
- full.message = message;
631
+ 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";
632
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
633
+ rest.path ?? (rest.path = []);
634
+ rest.message = message;
635
+ if (ctx?.reportInput) {
636
+ rest.input = _input;
599
637
  }
600
- delete full.inst;
601
- delete full.continue;
602
- if (!ctx?.reportInput) {
603
- delete full.input;
604
- }
605
- return full;
638
+ return rest;
606
639
  }
607
640
  function getLengthableOrigin(input) {
608
641
  if (Array.isArray(input))
@@ -612,7 +645,7 @@ function getLengthableOrigin(input) {
612
645
  return "unknown";
613
646
  }
614
647
 
615
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
648
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
616
649
  var initializer = (inst, def) => {
617
650
  inst.name = "$ZodError";
618
651
  Object.defineProperty(inst, "_zod", {
@@ -632,9 +665,9 @@ var initializer = (inst, def) => {
632
665
  var $ZodError = $constructor("$ZodError", initializer);
633
666
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
634
667
 
635
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
668
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
636
669
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
637
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
670
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
638
671
  const result = schema._zod.run({ value, issues: [] }, ctx);
639
672
  if (result instanceof Promise) {
640
673
  throw new $ZodAsyncError();
@@ -648,7 +681,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
648
681
  };
649
682
  var parse = /* @__PURE__ */ _parse($ZodRealError);
650
683
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
651
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
684
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
652
685
  let result = schema._zod.run({ value, issues: [] }, ctx);
653
686
  if (result instanceof Promise)
654
687
  result = await result;
@@ -673,7 +706,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
673
706
  };
674
707
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
675
708
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
676
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
709
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
677
710
  let result = schema._zod.run({ value, issues: [] }, ctx);
678
711
  if (result instanceof Promise)
679
712
  result = await result;
@@ -683,6 +716,9 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
683
716
  } : { success: true, data: result.value };
684
717
  };
685
718
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
719
+
720
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
721
+ var httpProtocol = /^https?$/;
686
722
  var string = (params) => {
687
723
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
688
724
  return new RegExp(`^${regex}$`);
@@ -690,17 +726,17 @@ var string = (params) => {
690
726
  var number = /^-?\d+(?:\.\d+)?$/;
691
727
  var boolean = /^(?:true|false)$/i;
692
728
 
693
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
729
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
694
730
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
695
- var _a2;
731
+ var _a3;
696
732
  inst._zod ?? (inst._zod = {});
697
733
  inst._zod.def = def;
698
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
734
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
699
735
  });
700
736
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
701
- var _a2;
737
+ var _a3;
702
738
  $ZodCheck.init(inst, def);
703
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
739
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
704
740
  const val = payload.value;
705
741
  return !nullish(val) && val.length !== void 0;
706
742
  });
@@ -729,7 +765,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
729
765
  };
730
766
  });
731
767
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
732
- var _a2, _b;
768
+ var _a3, _b;
733
769
  $ZodCheck.init(inst, def);
734
770
  inst._zod.onattach.push((inst2) => {
735
771
  const bag = inst2._zod.bag;
@@ -740,7 +776,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
740
776
  }
741
777
  });
742
778
  if (def.pattern)
743
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
779
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
744
780
  def.pattern.lastIndex = 0;
745
781
  if (def.pattern.test(payload.value))
746
782
  return;
@@ -782,16 +818,16 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
782
818
  };
783
819
  });
784
820
 
785
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
821
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
786
822
  var version = {
787
823
  major: 4,
788
- minor: 3,
789
- patch: 6
824
+ minor: 4,
825
+ patch: 3
790
826
  };
791
827
 
792
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
828
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
793
829
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
794
- var _a2;
830
+ var _a3;
795
831
  inst ?? (inst = {});
796
832
  inst._zod.def = def;
797
833
  inst._zod.bag = inst._zod.bag || {};
@@ -806,7 +842,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
806
842
  }
807
843
  }
808
844
  if (checks.length === 0) {
809
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
845
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
810
846
  inst._zod.deferred?.push(() => {
811
847
  inst._zod.run = inst._zod.parse;
812
848
  });
@@ -816,6 +852,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
816
852
  let asyncResult;
817
853
  for (const ch of checks2) {
818
854
  if (ch._zod.def.when) {
855
+ if (explicitlyAborted(payload))
856
+ continue;
819
857
  const shouldRun = ch._zod.def.when(payload);
820
858
  if (!shouldRun)
821
859
  continue;
@@ -928,6 +966,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
928
966
  inst._zod.check = (payload) => {
929
967
  try {
930
968
  const trimmed = payload.value.trim();
969
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
970
+ if (!/^https?:\/\//i.test(trimmed)) {
971
+ payload.issues.push({
972
+ code: "invalid_format",
973
+ format: "url",
974
+ note: "Invalid URL format",
975
+ input: payload.value,
976
+ inst,
977
+ continue: !def.abort
978
+ });
979
+ return;
980
+ }
981
+ }
931
982
  const url2 = new URL(trimmed);
932
983
  if (def.hostname) {
933
984
  def.hostname.lastIndex = 0;
@@ -1038,15 +1089,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1038
1089
  return payload;
1039
1090
  };
1040
1091
  });
1041
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
1092
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
1093
+ const isPresent = key in input;
1042
1094
  if (result.issues.length) {
1043
- if (isOptionalOut && !(key in input)) {
1095
+ if (isOptionalIn && isOptionalOut && !isPresent) {
1044
1096
  return;
1045
1097
  }
1046
1098
  final.issues.push(...prefixIssues(key, result.issues));
1047
1099
  }
1100
+ if (!isPresent && !isOptionalIn) {
1101
+ if (!result.issues.length) {
1102
+ final.issues.push({
1103
+ code: "invalid_type",
1104
+ expected: "nonoptional",
1105
+ input: void 0,
1106
+ path: [key]
1107
+ });
1108
+ }
1109
+ return;
1110
+ }
1048
1111
  if (result.value === void 0) {
1049
- if (key in input) {
1112
+ if (isPresent) {
1050
1113
  final.value[key] = void 0;
1051
1114
  }
1052
1115
  } else {
@@ -1074,8 +1137,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1074
1137
  const keySet = def.keySet;
1075
1138
  const _catchall = def.catchall._zod;
1076
1139
  const t = _catchall.def.type;
1140
+ const isOptionalIn = _catchall.optin === "optional";
1077
1141
  const isOptionalOut = _catchall.optout === "optional";
1078
1142
  for (const key in input) {
1143
+ if (key === "__proto__")
1144
+ continue;
1079
1145
  if (keySet.has(key))
1080
1146
  continue;
1081
1147
  if (t === "never") {
@@ -1084,9 +1150,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1084
1150
  }
1085
1151
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
1086
1152
  if (r instanceof Promise) {
1087
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
1153
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
1088
1154
  } else {
1089
- handlePropertyResult(r, payload, key, input, isOptionalOut);
1155
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
1090
1156
  }
1091
1157
  }
1092
1158
  if (unrecognized.length) {
@@ -1152,12 +1218,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
1152
1218
  const shape = value.shape;
1153
1219
  for (const key of value.keys) {
1154
1220
  const el = shape[key];
1221
+ const isOptionalIn = el._zod.optin === "optional";
1155
1222
  const isOptionalOut = el._zod.optout === "optional";
1156
1223
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
1157
1224
  if (r instanceof Promise) {
1158
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
1225
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
1159
1226
  } else {
1160
- handlePropertyResult(r, payload, key, input, isOptionalOut);
1227
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
1161
1228
  }
1162
1229
  }
1163
1230
  if (!catchall) {
@@ -1203,10 +1270,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
1203
1270
  }
1204
1271
  return void 0;
1205
1272
  });
1206
- const single = def.options.length === 1;
1207
- const first = def.options[0]._zod.run;
1273
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
1208
1274
  inst._zod.parse = (payload, ctx) => {
1209
- if (single) {
1275
+ if (first) {
1210
1276
  return first(payload, ctx);
1211
1277
  }
1212
1278
  let async = false;
@@ -1253,19 +1319,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1253
1319
  for (const key of values) {
1254
1320
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1255
1321
  recordKeys.add(typeof key === "number" ? key.toString() : key);
1322
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1323
+ if (keyResult instanceof Promise) {
1324
+ throw new Error("Async schemas not supported in object keys currently");
1325
+ }
1326
+ if (keyResult.issues.length) {
1327
+ payload.issues.push({
1328
+ code: "invalid_key",
1329
+ origin: "record",
1330
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
1331
+ input: key,
1332
+ path: [key],
1333
+ inst
1334
+ });
1335
+ continue;
1336
+ }
1337
+ const outKey = keyResult.value;
1256
1338
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1257
1339
  if (result instanceof Promise) {
1258
1340
  proms.push(result.then((result2) => {
1259
1341
  if (result2.issues.length) {
1260
1342
  payload.issues.push(...prefixIssues(key, result2.issues));
1261
1343
  }
1262
- payload.value[key] = result2.value;
1344
+ payload.value[outKey] = result2.value;
1263
1345
  }));
1264
1346
  } else {
1265
1347
  if (result.issues.length) {
1266
1348
  payload.issues.push(...prefixIssues(key, result.issues));
1267
1349
  }
1268
- payload.value[key] = result.value;
1350
+ payload.value[outKey] = result.value;
1269
1351
  }
1270
1352
  }
1271
1353
  }
@@ -1289,6 +1371,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1289
1371
  for (const key of Reflect.ownKeys(input)) {
1290
1372
  if (key === "__proto__")
1291
1373
  continue;
1374
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
1375
+ continue;
1292
1376
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1293
1377
  if (keyResult instanceof Promise) {
1294
1378
  throw new Error("Async schemas not supported in object keys currently");
@@ -1383,7 +1467,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
1383
1467
  };
1384
1468
  });
1385
1469
  function handleOptionalResult(result, input) {
1386
- if (result.issues.length && input === void 0) {
1470
+ if (input === void 0 && (result.issues.length || result.fallback)) {
1387
1471
  return { issues: [], value: void 0 };
1388
1472
  }
1389
1473
  return result;
@@ -1401,10 +1485,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
1401
1485
  });
1402
1486
  inst._zod.parse = (payload, ctx) => {
1403
1487
  if (def.innerType._zod.optin === "optional") {
1488
+ const input = payload.value;
1404
1489
  const result = def.innerType._zod.run(payload, ctx);
1405
1490
  if (result instanceof Promise)
1406
- return result.then((r) => handleOptionalResult(r, payload.value));
1407
- return handleOptionalResult(result, payload.value);
1491
+ return result.then((r) => handleOptionalResult(r, input));
1492
+ return handleOptionalResult(result, input);
1408
1493
  }
1409
1494
  if (payload.value === void 0) {
1410
1495
  return payload;
@@ -1455,8 +1540,8 @@ function handleDefaultResult(payload, def) {
1455
1540
  return payload;
1456
1541
  }
1457
1542
 
1458
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1459
- var _a;
1543
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
1544
+ var _a2;
1460
1545
  var $ZodRegistry = class {
1461
1546
  constructor() {
1462
1547
  this._map = /* @__PURE__ */ new WeakMap();
@@ -1500,14 +1585,14 @@ var $ZodRegistry = class {
1500
1585
  function registry() {
1501
1586
  return new $ZodRegistry();
1502
1587
  }
1503
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
1588
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
1504
1589
 
1505
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1590
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1506
1591
  // @__NO_SIDE_EFFECTS__
1507
1592
  function _string(Class, params) {
1508
1593
  return new Class({
1509
1594
  type: "string",
1510
- ...normalizeParams()
1595
+ ...normalizeParams(params)
1511
1596
  });
1512
1597
  }
1513
1598
  // @__NO_SIDE_EFFECTS__
@@ -1517,14 +1602,14 @@ function _url(Class, params) {
1517
1602
  format: "url",
1518
1603
  check: "string_format",
1519
1604
  abort: false,
1520
- ...normalizeParams()
1605
+ ...normalizeParams(params)
1521
1606
  });
1522
1607
  }
1523
1608
  // @__NO_SIDE_EFFECTS__
1524
1609
  function _boolean(Class, params) {
1525
1610
  return new Class({
1526
1611
  type: "boolean",
1527
- ...normalizeParams()
1612
+ ...normalizeParams(params)
1528
1613
  });
1529
1614
  }
1530
1615
  // @__NO_SIDE_EFFECTS__
@@ -1537,7 +1622,7 @@ function _any(Class) {
1537
1622
  function _length(length, params) {
1538
1623
  return new $ZodCheckLengthEquals({
1539
1624
  check: "length_equals",
1540
- ...normalizeParams(),
1625
+ ...normalizeParams(params),
1541
1626
  length
1542
1627
  });
1543
1628
  }
@@ -1546,7 +1631,7 @@ function _regex(pattern, params) {
1546
1631
  return new $ZodCheckRegex({
1547
1632
  check: "string_format",
1548
1633
  format: "regex",
1549
- ...normalizeParams(),
1634
+ ...normalizeParams(params),
1550
1635
  pattern
1551
1636
  });
1552
1637
  }
@@ -1566,7 +1651,7 @@ function _toLowerCase() {
1566
1651
  return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
1567
1652
  }
1568
1653
 
1569
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
1654
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
1570
1655
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1571
1656
  if (!inst._zod)
1572
1657
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -1582,7 +1667,9 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1582
1667
  ...def,
1583
1668
  checks: [
1584
1669
  ...def.checks ?? [],
1585
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
1670
+ ...checks.map((ch) => typeof ch === "function" ? {
1671
+ _zod: { check: ch, def: { check: "custom" }, onattach: [] }
1672
+ } : ch)
1586
1673
  ]
1587
1674
  }, { parent: true });
1588
1675
  };
@@ -1601,7 +1688,7 @@ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) =>
1601
1688
  });
1602
1689
  // @__NO_SIDE_EFFECTS__
1603
1690
  function string2(params) {
1604
- return _string(ZodMiniString);
1691
+ return _string(ZodMiniString, params);
1605
1692
  }
1606
1693
  var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
1607
1694
  $ZodStringFormat.init(inst, def);
@@ -1613,7 +1700,7 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
1613
1700
  });
1614
1701
  // @__NO_SIDE_EFFECTS__
1615
1702
  function url(params) {
1616
- return _url(ZodMiniURL);
1703
+ return _url(ZodMiniURL, params);
1617
1704
  }
1618
1705
  var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
1619
1706
  $ZodBoolean.init(inst, def);
@@ -1621,7 +1708,7 @@ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def)
1621
1708
  });
1622
1709
  // @__NO_SIDE_EFFECTS__
1623
1710
  function boolean2(params) {
1624
- return _boolean(ZodMiniBoolean);
1711
+ return _boolean(ZodMiniBoolean, params);
1625
1712
  }
1626
1713
  var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
1627
1714
  $ZodAny.init(inst, def);
@@ -1640,7 +1727,7 @@ function array(element, params) {
1640
1727
  return new ZodMiniArray({
1641
1728
  type: "array",
1642
1729
  element,
1643
- ...normalizeParams()
1730
+ ...normalizeParams(params)
1644
1731
  });
1645
1732
  }
1646
1733
  var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
@@ -1653,7 +1740,7 @@ function object(shape, params) {
1653
1740
  const def = {
1654
1741
  type: "object",
1655
1742
  shape: shape ?? {},
1656
- ...normalizeParams()
1743
+ ...normalizeParams(params)
1657
1744
  };
1658
1745
  return new ZodMiniObject(def);
1659
1746
  }
@@ -1666,7 +1753,7 @@ function union(options, params) {
1666
1753
  return new ZodMiniUnion({
1667
1754
  type: "union",
1668
1755
  options,
1669
- ...normalizeParams()
1756
+ ...normalizeParams(params)
1670
1757
  });
1671
1758
  }
1672
1759
  var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
@@ -1675,11 +1762,19 @@ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) =>
1675
1762
  });
1676
1763
  // @__NO_SIDE_EFFECTS__
1677
1764
  function record(keyType, valueType, params) {
1765
+ if (!valueType || !valueType._zod) {
1766
+ return new ZodMiniRecord({
1767
+ type: "record",
1768
+ keyType: /* @__PURE__ */ string2(),
1769
+ valueType: keyType,
1770
+ ...normalizeParams(valueType)
1771
+ });
1772
+ }
1678
1773
  return new ZodMiniRecord({
1679
1774
  type: "record",
1680
1775
  keyType,
1681
1776
  valueType,
1682
- ...normalizeParams()
1777
+ ...normalizeParams(params)
1683
1778
  });
1684
1779
  }
1685
1780
  var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
@@ -1693,7 +1788,7 @@ function _enum(values, params) {
1693
1788
  return new ZodMiniEnum({
1694
1789
  type: "enum",
1695
1790
  entries,
1696
- ...normalizeParams()
1791
+ ...normalizeParams(params)
1697
1792
  });
1698
1793
  }
1699
1794
  var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
@@ -1705,7 +1800,7 @@ function literal(value, params) {
1705
1800
  return new ZodMiniLiteral({
1706
1801
  type: "literal",
1707
1802
  values: Array.isArray(value) ? value : [value],
1708
- ...normalizeParams()
1803
+ ...normalizeParams(params)
1709
1804
  });
1710
1805
  }
1711
1806
  var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
@@ -3443,6 +3538,7 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
3443
3538
  }
3444
3539
 
3445
3540
  exports.STORM_DEFAULT_RELEASE_BANNER = STORM_DEFAULT_RELEASE_BANNER;
3541
+ exports.__require = __require;
3446
3542
  exports.brandIcon = brandIcon;
3447
3543
  exports.defu = defu;
3448
3544
  exports.exitWithError = exitWithError;
@@ -3459,5 +3555,5 @@ exports.writeInfo = writeInfo;
3459
3555
  exports.writeSuccess = writeSuccess;
3460
3556
  exports.writeTrace = writeTrace;
3461
3557
  exports.writeWarning = writeWarning;
3462
- //# sourceMappingURL=chunk-HVR76UIF.cjs.map
3463
- //# sourceMappingURL=chunk-HVR76UIF.cjs.map
3558
+ //# sourceMappingURL=chunk-4ILBJTRR.cjs.map
3559
+ //# sourceMappingURL=chunk-4ILBJTRR.cjs.map