@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
@@ -5,7 +5,12 @@ import { loadConfig } from 'c12';
5
5
  import { join } from 'node:path';
6
6
  import { readFile } from 'node:fs/promises';
7
7
 
8
- // ../config-tools/src/logger/console.ts
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
9
14
 
10
15
  // ../config-tools/src/types.ts
11
16
  var LogLevel = {
@@ -403,6 +408,9 @@ Stacktrace: ${error.stack}`,
403
408
  exitWithError(config2);
404
409
  });
405
410
  };
411
+
412
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
413
+ var _a;
406
414
  // @__NO_SIDE_EFFECTS__
407
415
  function $constructor(name, initializer2, params) {
408
416
  function init(inst, def) {
@@ -435,10 +443,10 @@ function $constructor(name, initializer2, params) {
435
443
  }
436
444
  Object.defineProperty(Definition, "name", { value: name });
437
445
  function _(def) {
438
- var _a2;
446
+ var _a3;
439
447
  const inst = params?.Parent ? new Definition() : this;
440
448
  init(inst, def);
441
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
449
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
442
450
  for (const fn of inst._zod.deferred) {
443
451
  fn();
444
452
  }
@@ -460,12 +468,13 @@ var $ZodAsyncError = class extends Error {
460
468
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
461
469
  }
462
470
  };
463
- var globalConfig = {};
471
+ (_a = globalThis).__zod_globalConfig ?? (_a.__zod_globalConfig = {});
472
+ var globalConfig = globalThis.__zod_globalConfig;
464
473
  function config(newConfig) {
465
474
  return globalConfig;
466
475
  }
467
476
 
468
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
477
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
469
478
  function getEnumValues(entries) {
470
479
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
471
480
  const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -495,7 +504,7 @@ function cleanRegex(source) {
495
504
  const end = source.endsWith("$") ? source.length - 1 : source.length;
496
505
  return source.slice(start, end);
497
506
  }
498
- var EVALUATING = Symbol("evaluating");
507
+ var EVALUATING = /* @__PURE__ */ Symbol("evaluating");
499
508
  function defineLazy(object2, key, getter) {
500
509
  let value = void 0;
501
510
  Object.defineProperty(object2, key, {
@@ -544,6 +553,10 @@ function shallowClone(o) {
544
553
  return { ...o };
545
554
  if (Array.isArray(o))
546
555
  return [...o];
556
+ if (o instanceof Map)
557
+ return new Map(o);
558
+ if (o instanceof Set)
559
+ return new Set(o);
547
560
  return o;
548
561
  }
549
562
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
@@ -557,7 +570,20 @@ function clone(inst, def, params) {
557
570
  return cl;
558
571
  }
559
572
  function normalizeParams(_params) {
560
- return {};
573
+ const params = _params;
574
+ if (!params)
575
+ return {};
576
+ if (typeof params === "string")
577
+ return { error: () => params };
578
+ if (params?.message !== void 0) {
579
+ if (params?.error !== void 0)
580
+ throw new Error("Cannot specify both `message` and `error` params");
581
+ params.error = params.message;
582
+ }
583
+ delete params.message;
584
+ if (typeof params.error === "string")
585
+ return { ...params, error: () => params.error };
586
+ return params;
561
587
  }
562
588
  function optionalKeys(shape) {
563
589
  return Object.keys(shape).filter((k) => {
@@ -574,10 +600,20 @@ function aborted(x, startIndex = 0) {
574
600
  }
575
601
  return false;
576
602
  }
603
+ function explicitlyAborted(x, startIndex = 0) {
604
+ if (x.aborted === true)
605
+ return true;
606
+ for (let i = startIndex; i < x.issues.length; i++) {
607
+ if (x.issues[i]?.continue === false) {
608
+ return true;
609
+ }
610
+ }
611
+ return false;
612
+ }
577
613
  function prefixIssues(path, issues) {
578
614
  return issues.map((iss) => {
579
- var _a2;
580
- (_a2 = iss).path ?? (_a2.path = []);
615
+ var _a3;
616
+ (_a3 = iss).path ?? (_a3.path = []);
581
617
  iss.path.unshift(path);
582
618
  return iss;
583
619
  });
@@ -586,17 +622,14 @@ function unwrapMessage(message) {
586
622
  return typeof message === "string" ? message : message?.message;
587
623
  }
588
624
  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;
625
+ 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";
626
+ const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
627
+ rest.path ?? (rest.path = []);
628
+ rest.message = message;
629
+ if (ctx?.reportInput) {
630
+ rest.input = _input;
593
631
  }
594
- delete full.inst;
595
- delete full.continue;
596
- if (!ctx?.reportInput) {
597
- delete full.input;
598
- }
599
- return full;
632
+ return rest;
600
633
  }
601
634
  function getLengthableOrigin(input) {
602
635
  if (Array.isArray(input))
@@ -606,7 +639,7 @@ function getLengthableOrigin(input) {
606
639
  return "unknown";
607
640
  }
608
641
 
609
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
642
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
610
643
  var initializer = (inst, def) => {
611
644
  inst.name = "$ZodError";
612
645
  Object.defineProperty(inst, "_zod", {
@@ -626,9 +659,9 @@ var initializer = (inst, def) => {
626
659
  var $ZodError = $constructor("$ZodError", initializer);
627
660
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
628
661
 
629
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
662
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
630
663
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
631
- const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
664
+ const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
632
665
  const result = schema._zod.run({ value, issues: [] }, ctx);
633
666
  if (result instanceof Promise) {
634
667
  throw new $ZodAsyncError();
@@ -642,7 +675,7 @@ var _parse = (_Err) => (schema, value, _ctx, _params) => {
642
675
  };
643
676
  var parse = /* @__PURE__ */ _parse($ZodRealError);
644
677
  var _parseAsync = (_Err) => async (schema, value, _ctx, params) => {
645
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
678
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
646
679
  let result = schema._zod.run({ value, issues: [] }, ctx);
647
680
  if (result instanceof Promise)
648
681
  result = await result;
@@ -667,7 +700,7 @@ var _safeParse = (_Err) => (schema, value, _ctx) => {
667
700
  };
668
701
  var safeParse = /* @__PURE__ */ _safeParse($ZodRealError);
669
702
  var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
670
- const ctx = _ctx ? Object.assign(_ctx, { async: true }) : { async: true };
703
+ const ctx = _ctx ? { ..._ctx, async: true } : { async: true };
671
704
  let result = schema._zod.run({ value, issues: [] }, ctx);
672
705
  if (result instanceof Promise)
673
706
  result = await result;
@@ -677,6 +710,9 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
677
710
  } : { success: true, data: result.value };
678
711
  };
679
712
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
713
+
714
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
715
+ var httpProtocol = /^https?$/;
680
716
  var string = (params) => {
681
717
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
682
718
  return new RegExp(`^${regex}$`);
@@ -684,17 +720,17 @@ var string = (params) => {
684
720
  var number = /^-?\d+(?:\.\d+)?$/;
685
721
  var boolean = /^(?:true|false)$/i;
686
722
 
687
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
723
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
688
724
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
689
- var _a2;
725
+ var _a3;
690
726
  inst._zod ?? (inst._zod = {});
691
727
  inst._zod.def = def;
692
- (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
728
+ (_a3 = inst._zod).onattach ?? (_a3.onattach = []);
693
729
  });
694
730
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
695
- var _a2;
731
+ var _a3;
696
732
  $ZodCheck.init(inst, def);
697
- (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
733
+ (_a3 = inst._zod.def).when ?? (_a3.when = (payload) => {
698
734
  const val = payload.value;
699
735
  return !nullish(val) && val.length !== void 0;
700
736
  });
@@ -723,7 +759,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
723
759
  };
724
760
  });
725
761
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
726
- var _a2, _b;
762
+ var _a3, _b;
727
763
  $ZodCheck.init(inst, def);
728
764
  inst._zod.onattach.push((inst2) => {
729
765
  const bag = inst2._zod.bag;
@@ -734,7 +770,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
734
770
  }
735
771
  });
736
772
  if (def.pattern)
737
- (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
773
+ (_a3 = inst._zod).check ?? (_a3.check = (payload) => {
738
774
  def.pattern.lastIndex = 0;
739
775
  if (def.pattern.test(payload.value))
740
776
  return;
@@ -776,16 +812,16 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
776
812
  };
777
813
  });
778
814
 
779
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
815
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
780
816
  var version = {
781
817
  major: 4,
782
- minor: 3,
783
- patch: 6
818
+ minor: 4,
819
+ patch: 3
784
820
  };
785
821
 
786
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
822
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
787
823
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
788
- var _a2;
824
+ var _a3;
789
825
  inst ?? (inst = {});
790
826
  inst._zod.def = def;
791
827
  inst._zod.bag = inst._zod.bag || {};
@@ -800,7 +836,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
800
836
  }
801
837
  }
802
838
  if (checks.length === 0) {
803
- (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
839
+ (_a3 = inst._zod).deferred ?? (_a3.deferred = []);
804
840
  inst._zod.deferred?.push(() => {
805
841
  inst._zod.run = inst._zod.parse;
806
842
  });
@@ -810,6 +846,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
810
846
  let asyncResult;
811
847
  for (const ch of checks2) {
812
848
  if (ch._zod.def.when) {
849
+ if (explicitlyAborted(payload))
850
+ continue;
813
851
  const shouldRun = ch._zod.def.when(payload);
814
852
  if (!shouldRun)
815
853
  continue;
@@ -922,6 +960,19 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
922
960
  inst._zod.check = (payload) => {
923
961
  try {
924
962
  const trimmed = payload.value.trim();
963
+ if (!def.normalize && def.protocol?.source === httpProtocol.source) {
964
+ if (!/^https?:\/\//i.test(trimmed)) {
965
+ payload.issues.push({
966
+ code: "invalid_format",
967
+ format: "url",
968
+ note: "Invalid URL format",
969
+ input: payload.value,
970
+ inst,
971
+ continue: !def.abort
972
+ });
973
+ return;
974
+ }
975
+ }
925
976
  const url2 = new URL(trimmed);
926
977
  if (def.hostname) {
927
978
  def.hostname.lastIndex = 0;
@@ -1032,15 +1083,27 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1032
1083
  return payload;
1033
1084
  };
1034
1085
  });
1035
- function handlePropertyResult(result, final, key, input, isOptionalOut) {
1086
+ function handlePropertyResult(result, final, key, input, isOptionalIn, isOptionalOut) {
1087
+ const isPresent = key in input;
1036
1088
  if (result.issues.length) {
1037
- if (isOptionalOut && !(key in input)) {
1089
+ if (isOptionalIn && isOptionalOut && !isPresent) {
1038
1090
  return;
1039
1091
  }
1040
1092
  final.issues.push(...prefixIssues(key, result.issues));
1041
1093
  }
1094
+ if (!isPresent && !isOptionalIn) {
1095
+ if (!result.issues.length) {
1096
+ final.issues.push({
1097
+ code: "invalid_type",
1098
+ expected: "nonoptional",
1099
+ input: void 0,
1100
+ path: [key]
1101
+ });
1102
+ }
1103
+ return;
1104
+ }
1042
1105
  if (result.value === void 0) {
1043
- if (key in input) {
1106
+ if (isPresent) {
1044
1107
  final.value[key] = void 0;
1045
1108
  }
1046
1109
  } else {
@@ -1068,8 +1131,11 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1068
1131
  const keySet = def.keySet;
1069
1132
  const _catchall = def.catchall._zod;
1070
1133
  const t = _catchall.def.type;
1134
+ const isOptionalIn = _catchall.optin === "optional";
1071
1135
  const isOptionalOut = _catchall.optout === "optional";
1072
1136
  for (const key in input) {
1137
+ if (key === "__proto__")
1138
+ continue;
1073
1139
  if (keySet.has(key))
1074
1140
  continue;
1075
1141
  if (t === "never") {
@@ -1078,9 +1144,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1078
1144
  }
1079
1145
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
1080
1146
  if (r instanceof Promise) {
1081
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
1147
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
1082
1148
  } else {
1083
- handlePropertyResult(r, payload, key, input, isOptionalOut);
1149
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
1084
1150
  }
1085
1151
  }
1086
1152
  if (unrecognized.length) {
@@ -1146,12 +1212,13 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
1146
1212
  const shape = value.shape;
1147
1213
  for (const key of value.keys) {
1148
1214
  const el = shape[key];
1215
+ const isOptionalIn = el._zod.optin === "optional";
1149
1216
  const isOptionalOut = el._zod.optout === "optional";
1150
1217
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
1151
1218
  if (r instanceof Promise) {
1152
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
1219
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalIn, isOptionalOut)));
1153
1220
  } else {
1154
- handlePropertyResult(r, payload, key, input, isOptionalOut);
1221
+ handlePropertyResult(r, payload, key, input, isOptionalIn, isOptionalOut);
1155
1222
  }
1156
1223
  }
1157
1224
  if (!catchall) {
@@ -1197,10 +1264,9 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
1197
1264
  }
1198
1265
  return void 0;
1199
1266
  });
1200
- const single = def.options.length === 1;
1201
- const first = def.options[0]._zod.run;
1267
+ const first = def.options.length === 1 ? def.options[0]._zod.run : null;
1202
1268
  inst._zod.parse = (payload, ctx) => {
1203
- if (single) {
1269
+ if (first) {
1204
1270
  return first(payload, ctx);
1205
1271
  }
1206
1272
  let async = false;
@@ -1247,19 +1313,35 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1247
1313
  for (const key of values) {
1248
1314
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1249
1315
  recordKeys.add(typeof key === "number" ? key.toString() : key);
1316
+ const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1317
+ if (keyResult instanceof Promise) {
1318
+ throw new Error("Async schemas not supported in object keys currently");
1319
+ }
1320
+ if (keyResult.issues.length) {
1321
+ payload.issues.push({
1322
+ code: "invalid_key",
1323
+ origin: "record",
1324
+ issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config())),
1325
+ input: key,
1326
+ path: [key],
1327
+ inst
1328
+ });
1329
+ continue;
1330
+ }
1331
+ const outKey = keyResult.value;
1250
1332
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1251
1333
  if (result instanceof Promise) {
1252
1334
  proms.push(result.then((result2) => {
1253
1335
  if (result2.issues.length) {
1254
1336
  payload.issues.push(...prefixIssues(key, result2.issues));
1255
1337
  }
1256
- payload.value[key] = result2.value;
1338
+ payload.value[outKey] = result2.value;
1257
1339
  }));
1258
1340
  } else {
1259
1341
  if (result.issues.length) {
1260
1342
  payload.issues.push(...prefixIssues(key, result.issues));
1261
1343
  }
1262
- payload.value[key] = result.value;
1344
+ payload.value[outKey] = result.value;
1263
1345
  }
1264
1346
  }
1265
1347
  }
@@ -1283,6 +1365,8 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1283
1365
  for (const key of Reflect.ownKeys(input)) {
1284
1366
  if (key === "__proto__")
1285
1367
  continue;
1368
+ if (!Object.prototype.propertyIsEnumerable.call(input, key))
1369
+ continue;
1286
1370
  let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1287
1371
  if (keyResult instanceof Promise) {
1288
1372
  throw new Error("Async schemas not supported in object keys currently");
@@ -1377,7 +1461,7 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
1377
1461
  };
1378
1462
  });
1379
1463
  function handleOptionalResult(result, input) {
1380
- if (result.issues.length && input === void 0) {
1464
+ if (input === void 0 && (result.issues.length || result.fallback)) {
1381
1465
  return { issues: [], value: void 0 };
1382
1466
  }
1383
1467
  return result;
@@ -1395,10 +1479,11 @@ var $ZodOptional = /* @__PURE__ */ $constructor("$ZodOptional", (inst, def) => {
1395
1479
  });
1396
1480
  inst._zod.parse = (payload, ctx) => {
1397
1481
  if (def.innerType._zod.optin === "optional") {
1482
+ const input = payload.value;
1398
1483
  const result = def.innerType._zod.run(payload, ctx);
1399
1484
  if (result instanceof Promise)
1400
- return result.then((r) => handleOptionalResult(r, payload.value));
1401
- return handleOptionalResult(result, payload.value);
1485
+ return result.then((r) => handleOptionalResult(r, input));
1486
+ return handleOptionalResult(result, input);
1402
1487
  }
1403
1488
  if (payload.value === void 0) {
1404
1489
  return payload;
@@ -1449,8 +1534,8 @@ function handleDefaultResult(payload, def) {
1449
1534
  return payload;
1450
1535
  }
1451
1536
 
1452
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1453
- var _a;
1537
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
1538
+ var _a2;
1454
1539
  var $ZodRegistry = class {
1455
1540
  constructor() {
1456
1541
  this._map = /* @__PURE__ */ new WeakMap();
@@ -1494,14 +1579,14 @@ var $ZodRegistry = class {
1494
1579
  function registry() {
1495
1580
  return new $ZodRegistry();
1496
1581
  }
1497
- (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
1582
+ (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
1498
1583
 
1499
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1584
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
1500
1585
  // @__NO_SIDE_EFFECTS__
1501
1586
  function _string(Class, params) {
1502
1587
  return new Class({
1503
1588
  type: "string",
1504
- ...normalizeParams()
1589
+ ...normalizeParams(params)
1505
1590
  });
1506
1591
  }
1507
1592
  // @__NO_SIDE_EFFECTS__
@@ -1511,14 +1596,14 @@ function _url(Class, params) {
1511
1596
  format: "url",
1512
1597
  check: "string_format",
1513
1598
  abort: false,
1514
- ...normalizeParams()
1599
+ ...normalizeParams(params)
1515
1600
  });
1516
1601
  }
1517
1602
  // @__NO_SIDE_EFFECTS__
1518
1603
  function _boolean(Class, params) {
1519
1604
  return new Class({
1520
1605
  type: "boolean",
1521
- ...normalizeParams()
1606
+ ...normalizeParams(params)
1522
1607
  });
1523
1608
  }
1524
1609
  // @__NO_SIDE_EFFECTS__
@@ -1531,7 +1616,7 @@ function _any(Class) {
1531
1616
  function _length(length, params) {
1532
1617
  return new $ZodCheckLengthEquals({
1533
1618
  check: "length_equals",
1534
- ...normalizeParams(),
1619
+ ...normalizeParams(params),
1535
1620
  length
1536
1621
  });
1537
1622
  }
@@ -1540,7 +1625,7 @@ function _regex(pattern, params) {
1540
1625
  return new $ZodCheckRegex({
1541
1626
  check: "string_format",
1542
1627
  format: "regex",
1543
- ...normalizeParams(),
1628
+ ...normalizeParams(params),
1544
1629
  pattern
1545
1630
  });
1546
1631
  }
@@ -1560,7 +1645,7 @@ function _toLowerCase() {
1560
1645
  return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
1561
1646
  }
1562
1647
 
1563
- // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
1648
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
1564
1649
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1565
1650
  if (!inst._zod)
1566
1651
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -1576,7 +1661,9 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1576
1661
  ...def,
1577
1662
  checks: [
1578
1663
  ...def.checks ?? [],
1579
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
1664
+ ...checks.map((ch) => typeof ch === "function" ? {
1665
+ _zod: { check: ch, def: { check: "custom" }, onattach: [] }
1666
+ } : ch)
1580
1667
  ]
1581
1668
  }, { parent: true });
1582
1669
  };
@@ -1595,7 +1682,7 @@ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) =>
1595
1682
  });
1596
1683
  // @__NO_SIDE_EFFECTS__
1597
1684
  function string2(params) {
1598
- return _string(ZodMiniString);
1685
+ return _string(ZodMiniString, params);
1599
1686
  }
1600
1687
  var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
1601
1688
  $ZodStringFormat.init(inst, def);
@@ -1607,7 +1694,7 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
1607
1694
  });
1608
1695
  // @__NO_SIDE_EFFECTS__
1609
1696
  function url(params) {
1610
- return _url(ZodMiniURL);
1697
+ return _url(ZodMiniURL, params);
1611
1698
  }
1612
1699
  var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
1613
1700
  $ZodBoolean.init(inst, def);
@@ -1615,7 +1702,7 @@ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def)
1615
1702
  });
1616
1703
  // @__NO_SIDE_EFFECTS__
1617
1704
  function boolean2(params) {
1618
- return _boolean(ZodMiniBoolean);
1705
+ return _boolean(ZodMiniBoolean, params);
1619
1706
  }
1620
1707
  var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
1621
1708
  $ZodAny.init(inst, def);
@@ -1634,7 +1721,7 @@ function array(element, params) {
1634
1721
  return new ZodMiniArray({
1635
1722
  type: "array",
1636
1723
  element,
1637
- ...normalizeParams()
1724
+ ...normalizeParams(params)
1638
1725
  });
1639
1726
  }
1640
1727
  var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
@@ -1647,7 +1734,7 @@ function object(shape, params) {
1647
1734
  const def = {
1648
1735
  type: "object",
1649
1736
  shape: shape ?? {},
1650
- ...normalizeParams()
1737
+ ...normalizeParams(params)
1651
1738
  };
1652
1739
  return new ZodMiniObject(def);
1653
1740
  }
@@ -1660,7 +1747,7 @@ function union(options, params) {
1660
1747
  return new ZodMiniUnion({
1661
1748
  type: "union",
1662
1749
  options,
1663
- ...normalizeParams()
1750
+ ...normalizeParams(params)
1664
1751
  });
1665
1752
  }
1666
1753
  var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
@@ -1669,11 +1756,19 @@ var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) =>
1669
1756
  });
1670
1757
  // @__NO_SIDE_EFFECTS__
1671
1758
  function record(keyType, valueType, params) {
1759
+ if (!valueType || !valueType._zod) {
1760
+ return new ZodMiniRecord({
1761
+ type: "record",
1762
+ keyType: /* @__PURE__ */ string2(),
1763
+ valueType: keyType,
1764
+ ...normalizeParams(valueType)
1765
+ });
1766
+ }
1672
1767
  return new ZodMiniRecord({
1673
1768
  type: "record",
1674
1769
  keyType,
1675
1770
  valueType,
1676
- ...normalizeParams()
1771
+ ...normalizeParams(params)
1677
1772
  });
1678
1773
  }
1679
1774
  var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
@@ -1687,7 +1782,7 @@ function _enum(values, params) {
1687
1782
  return new ZodMiniEnum({
1688
1783
  type: "enum",
1689
1784
  entries,
1690
- ...normalizeParams()
1785
+ ...normalizeParams(params)
1691
1786
  });
1692
1787
  }
1693
1788
  var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
@@ -1699,7 +1794,7 @@ function literal(value, params) {
1699
1794
  return new ZodMiniLiteral({
1700
1795
  type: "literal",
1701
1796
  values: Array.isArray(value) ? value : [value],
1702
- ...normalizeParams()
1797
+ ...normalizeParams(params)
1703
1798
  });
1704
1799
  }
1705
1800
  var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
@@ -3436,6 +3531,6 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
3436
3531
  return getConfig(workspaceRoot, skipLogs);
3437
3532
  }
3438
3533
 
3439
- 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
3534
+ export { STORM_DEFAULT_RELEASE_BANNER, __require, brandIcon, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
3535
+ //# sourceMappingURL=chunk-7ES3CGZQ.js.map
3536
+ //# sourceMappingURL=chunk-7ES3CGZQ.js.map