@storm-software/git-tools 2.124.67 → 2.124.69

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 (47) hide show
  1. package/bin/{chunk-GU6JHGME.cjs → chunk-2JUV6SZN.cjs} +96 -563
  2. package/bin/chunk-2JUV6SZN.cjs.map +1 -0
  3. package/bin/{chunk-SAG2FKFE.js → chunk-FD6LP4AO.js} +96 -563
  4. package/bin/chunk-FD6LP4AO.js.map +1 -0
  5. package/bin/git.cjs +82 -80
  6. package/bin/git.cjs.map +1 -1
  7. package/bin/git.js +3 -1
  8. package/bin/git.js.map +1 -1
  9. package/bin/post-checkout.cjs +9 -9
  10. package/bin/post-checkout.js +1 -1
  11. package/bin/post-commit.cjs +9 -9
  12. package/bin/post-commit.js +1 -1
  13. package/bin/post-merge.cjs +9 -9
  14. package/bin/post-merge.js +1 -1
  15. package/bin/pre-commit.cjs +9 -9
  16. package/bin/pre-commit.js +1 -1
  17. package/bin/pre-install.cjs +9 -9
  18. package/bin/pre-install.js +1 -1
  19. package/bin/pre-push.cjs +13 -13
  20. package/bin/pre-push.js +1 -1
  21. package/bin/prepare.cjs +7 -7
  22. package/bin/prepare.js +1 -1
  23. package/bin/version-warning.cjs +5 -5
  24. package/bin/version-warning.js +1 -1
  25. package/dist/{chunk-56CSIOQW.cjs → chunk-EMYFDYKP.cjs} +95 -557
  26. package/dist/{chunk-JEIQJXD6.js → chunk-VVJA5N2W.js} +95 -557
  27. package/dist/commit/minimal.cjs +0 -1
  28. package/dist/commit/minimal.js +0 -1
  29. package/dist/commit/monorepo.cjs +0 -1
  30. package/dist/commit/monorepo.js +0 -1
  31. package/dist/commitlint/minimal.cjs +0 -1
  32. package/dist/commitlint/minimal.js +0 -1
  33. package/dist/commitlint/monorepo.cjs +0 -1
  34. package/dist/commitlint/monorepo.js +0 -1
  35. package/dist/index.cjs +8 -9
  36. package/dist/index.js +1 -2
  37. package/dist/release/config.cjs +8 -9
  38. package/dist/release/config.d.cts +1 -0
  39. package/dist/release/config.d.ts +1 -0
  40. package/dist/release/config.js +1 -2
  41. package/dist/types.cjs +0 -1
  42. package/dist/types.js +0 -1
  43. package/package.json +12 -12
  44. package/bin/chunk-GU6JHGME.cjs.map +0 -1
  45. package/bin/chunk-SAG2FKFE.js.map +0 -1
  46. package/dist/chunk-75ZPJI57.cjs +0 -9
  47. package/dist/chunk-MLKGABMK.js +0 -7
@@ -11,11 +11,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
11
 
12
12
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
13
13
 
14
- var __defProp = Object.defineProperty;
15
- var __export = (target, all) => {
16
- for (var name in all)
17
- __defProp(target, name, { get: all[name], enumerable: true });
18
- };
14
+ // ../config-tools/src/logger/console.ts
19
15
 
20
16
  // ../config-tools/src/types.ts
21
17
  var LogLevel = {
@@ -463,92 +459,12 @@ function config(newConfig) {
463
459
  return globalConfig;
464
460
  }
465
461
 
466
- // ../../node_modules/.pnpm/zod@4.2.1/node_modules/zod/v4/core/util.js
467
- var util_exports = {};
468
- __export(util_exports, {
469
- BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
470
- Class: () => Class,
471
- NUMBER_FORMAT_RANGES: () => NUMBER_FORMAT_RANGES,
472
- aborted: () => aborted,
473
- allowsEval: () => allowsEval,
474
- assert: () => assert,
475
- assertEqual: () => assertEqual,
476
- assertIs: () => assertIs,
477
- assertNever: () => assertNever,
478
- assertNotEqual: () => assertNotEqual,
479
- assignProp: () => assignProp,
480
- base64ToUint8Array: () => base64ToUint8Array,
481
- base64urlToUint8Array: () => base64urlToUint8Array,
482
- cached: () => cached,
483
- captureStackTrace: () => captureStackTrace,
484
- cleanEnum: () => cleanEnum,
485
- cleanRegex: () => cleanRegex,
486
- clone: () => clone,
487
- cloneDef: () => cloneDef,
488
- createTransparentProxy: () => createTransparentProxy,
489
- defineLazy: () => defineLazy,
490
- esc: () => esc,
491
- escapeRegex: () => escapeRegex,
492
- extend: () => extend,
493
- finalizeIssue: () => finalizeIssue,
494
- floatSafeRemainder: () => floatSafeRemainder,
495
- getElementAtPath: () => getElementAtPath,
496
- getEnumValues: () => getEnumValues,
497
- getLengthableOrigin: () => getLengthableOrigin,
498
- getParsedType: () => getParsedType,
499
- getSizableOrigin: () => getSizableOrigin,
500
- hexToUint8Array: () => hexToUint8Array,
501
- isObject: () => isObject,
502
- isPlainObject: () => isPlainObject,
503
- issue: () => issue,
504
- joinValues: () => joinValues,
505
- jsonStringifyReplacer: () => jsonStringifyReplacer,
506
- merge: () => merge,
507
- mergeDefs: () => mergeDefs,
508
- normalizeParams: () => normalizeParams,
509
- nullish: () => nullish,
510
- numKeys: () => numKeys,
511
- objectClone: () => objectClone,
512
- omit: () => omit,
513
- optionalKeys: () => optionalKeys,
514
- partial: () => partial,
515
- pick: () => pick,
516
- prefixIssues: () => prefixIssues,
517
- primitiveTypes: () => primitiveTypes,
518
- promiseAllObject: () => promiseAllObject,
519
- propertyKeyTypes: () => propertyKeyTypes,
520
- randomString: () => randomString,
521
- required: () => required,
522
- safeExtend: () => safeExtend,
523
- shallowClone: () => shallowClone,
524
- slugify: () => slugify,
525
- stringifyPrimitive: () => stringifyPrimitive,
526
- uint8ArrayToBase64: () => uint8ArrayToBase64,
527
- uint8ArrayToBase64url: () => uint8ArrayToBase64url,
528
- uint8ArrayToHex: () => uint8ArrayToHex,
529
- unwrapMessage: () => unwrapMessage
530
- });
531
- function assertEqual(val) {
532
- return val;
533
- }
534
- function assertNotEqual(val) {
535
- return val;
536
- }
537
- function assertIs(_arg) {
538
- }
539
- function assertNever(_x) {
540
- throw new Error("Unexpected value in exhaustive check");
541
- }
542
- function assert(_) {
543
- }
462
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
544
463
  function getEnumValues(entries) {
545
464
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
546
465
  const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
547
466
  return values;
548
467
  }
549
- function joinValues(array2, separator = "|") {
550
- return array2.map((val) => stringifyPrimitive(val)).join(separator);
551
- }
552
468
  function jsonStringifyReplacer(_, value) {
553
469
  if (typeof value === "bigint")
554
470
  return value.toString();
@@ -573,21 +489,6 @@ function cleanRegex(source) {
573
489
  const end = source.endsWith("$") ? source.length - 1 : source.length;
574
490
  return source.slice(start, end);
575
491
  }
576
- function floatSafeRemainder(val, step) {
577
- const valDecCount = (val.toString().split(".")[1] || "").length;
578
- const stepString = step.toString();
579
- let stepDecCount = (stepString.split(".")[1] || "").length;
580
- if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
581
- const match = stepString.match(/\d?e-(\d?)/);
582
- if (match?.[1]) {
583
- stepDecCount = Number.parseInt(match[1]);
584
- }
585
- }
586
- const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
587
- const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
588
- const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
589
- return valInt % stepInt / 10 ** decCount;
590
- }
591
492
  var EVALUATING = Symbol("evaluating");
592
493
  function defineLazy(object2, key, getter) {
593
494
  let value = void 0;
@@ -611,75 +512,11 @@ function defineLazy(object2, key, getter) {
611
512
  configurable: true
612
513
  });
613
514
  }
614
- function objectClone(obj) {
615
- return Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
616
- }
617
- function assignProp(target, prop, value) {
618
- Object.defineProperty(target, prop, {
619
- value,
620
- writable: true,
621
- enumerable: true,
622
- configurable: true
623
- });
624
- }
625
- function mergeDefs(...defs) {
626
- const mergedDescriptors = {};
627
- for (const def of defs) {
628
- const descriptors = Object.getOwnPropertyDescriptors(def);
629
- Object.assign(mergedDescriptors, descriptors);
630
- }
631
- return Object.defineProperties({}, mergedDescriptors);
632
- }
633
- function cloneDef(schema) {
634
- return mergeDefs(schema._zod.def);
635
- }
636
- function getElementAtPath(obj, path) {
637
- if (!path)
638
- return obj;
639
- return path.reduce((acc, key) => acc?.[key], obj);
640
- }
641
- function promiseAllObject(promisesObj) {
642
- const keys = Object.keys(promisesObj);
643
- const promises = keys.map((key) => promisesObj[key]);
644
- return Promise.all(promises).then((results) => {
645
- const resolvedObj = {};
646
- for (let i = 0; i < keys.length; i++) {
647
- resolvedObj[keys[i]] = results[i];
648
- }
649
- return resolvedObj;
650
- });
651
- }
652
- function randomString(length = 10) {
653
- const chars = "abcdefghijklmnopqrstuvwxyz";
654
- let str = "";
655
- for (let i = 0; i < length; i++) {
656
- str += chars[Math.floor(Math.random() * chars.length)];
657
- }
658
- return str;
659
- }
660
- function esc(str) {
661
- return JSON.stringify(str);
662
- }
663
- function slugify(input) {
664
- return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
665
- }
666
515
  var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
667
516
  };
668
517
  function isObject(data) {
669
518
  return typeof data === "object" && data !== null && !Array.isArray(data);
670
519
  }
671
- var allowsEval = cached(() => {
672
- if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
673
- return false;
674
- }
675
- try {
676
- const F = Function;
677
- new F("");
678
- return true;
679
- } catch (_) {
680
- return false;
681
- }
682
- });
683
520
  function isPlainObject(o) {
684
521
  if (isObject(o) === false)
685
522
  return false;
@@ -703,61 +540,7 @@ function shallowClone(o) {
703
540
  return [...o];
704
541
  return o;
705
542
  }
706
- function numKeys(data) {
707
- let keyCount = 0;
708
- for (const key in data) {
709
- if (Object.prototype.hasOwnProperty.call(data, key)) {
710
- keyCount++;
711
- }
712
- }
713
- return keyCount;
714
- }
715
- var getParsedType = (data) => {
716
- const t = typeof data;
717
- switch (t) {
718
- case "undefined":
719
- return "undefined";
720
- case "string":
721
- return "string";
722
- case "number":
723
- return Number.isNaN(data) ? "nan" : "number";
724
- case "boolean":
725
- return "boolean";
726
- case "function":
727
- return "function";
728
- case "bigint":
729
- return "bigint";
730
- case "symbol":
731
- return "symbol";
732
- case "object":
733
- if (Array.isArray(data)) {
734
- return "array";
735
- }
736
- if (data === null) {
737
- return "null";
738
- }
739
- if (data.then && typeof data.then === "function" && data.catch && typeof data.catch === "function") {
740
- return "promise";
741
- }
742
- if (typeof Map !== "undefined" && data instanceof Map) {
743
- return "map";
744
- }
745
- if (typeof Set !== "undefined" && data instanceof Set) {
746
- return "set";
747
- }
748
- if (typeof Date !== "undefined" && data instanceof Date) {
749
- return "date";
750
- }
751
- if (typeof File !== "undefined" && data instanceof File) {
752
- return "file";
753
- }
754
- return "object";
755
- default:
756
- throw new Error(`Unknown data type: ${t}`);
757
- }
758
- };
759
543
  var propertyKeyTypes = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
760
- var primitiveTypes = /* @__PURE__ */ new Set(["string", "number", "bigint", "boolean", "symbol", "undefined"]);
761
544
  function escapeRegex(str) {
762
545
  return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
763
546
  }
@@ -768,230 +551,13 @@ function clone(inst, def, params) {
768
551
  return cl;
769
552
  }
770
553
  function normalizeParams(_params) {
771
- const params = _params;
772
- if (!params)
773
- return {};
774
- if (typeof params === "string")
775
- return { error: () => params };
776
- if (params?.message !== void 0) {
777
- if (params?.error !== void 0)
778
- throw new Error("Cannot specify both `message` and `error` params");
779
- params.error = params.message;
780
- }
781
- delete params.message;
782
- if (typeof params.error === "string")
783
- return { ...params, error: () => params.error };
784
- return params;
785
- }
786
- function createTransparentProxy(getter) {
787
- let target;
788
- return new Proxy({}, {
789
- get(_, prop, receiver) {
790
- target ?? (target = getter());
791
- return Reflect.get(target, prop, receiver);
792
- },
793
- set(_, prop, value, receiver) {
794
- target ?? (target = getter());
795
- return Reflect.set(target, prop, value, receiver);
796
- },
797
- has(_, prop) {
798
- target ?? (target = getter());
799
- return Reflect.has(target, prop);
800
- },
801
- deleteProperty(_, prop) {
802
- target ?? (target = getter());
803
- return Reflect.deleteProperty(target, prop);
804
- },
805
- ownKeys(_) {
806
- target ?? (target = getter());
807
- return Reflect.ownKeys(target);
808
- },
809
- getOwnPropertyDescriptor(_, prop) {
810
- target ?? (target = getter());
811
- return Reflect.getOwnPropertyDescriptor(target, prop);
812
- },
813
- defineProperty(_, prop, descriptor) {
814
- target ?? (target = getter());
815
- return Reflect.defineProperty(target, prop, descriptor);
816
- }
817
- });
818
- }
819
- function stringifyPrimitive(value) {
820
- if (typeof value === "bigint")
821
- return value.toString() + "n";
822
- if (typeof value === "string")
823
- return `"${value}"`;
824
- return `${value}`;
554
+ return {};
825
555
  }
826
556
  function optionalKeys(shape) {
827
557
  return Object.keys(shape).filter((k) => {
828
558
  return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
829
559
  });
830
560
  }
831
- var NUMBER_FORMAT_RANGES = {
832
- safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
833
- int32: [-2147483648, 2147483647],
834
- uint32: [0, 4294967295],
835
- float32: [-34028234663852886e22, 34028234663852886e22],
836
- float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
837
- };
838
- var BIGINT_FORMAT_RANGES = {
839
- int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")],
840
- uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")]
841
- };
842
- function pick(schema, mask) {
843
- const currDef = schema._zod.def;
844
- const def = mergeDefs(schema._zod.def, {
845
- get shape() {
846
- const newShape = {};
847
- for (const key in mask) {
848
- if (!(key in currDef.shape)) {
849
- throw new Error(`Unrecognized key: "${key}"`);
850
- }
851
- if (!mask[key])
852
- continue;
853
- newShape[key] = currDef.shape[key];
854
- }
855
- assignProp(this, "shape", newShape);
856
- return newShape;
857
- },
858
- checks: []
859
- });
860
- return clone(schema, def);
861
- }
862
- function omit(schema, mask) {
863
- const currDef = schema._zod.def;
864
- const def = mergeDefs(schema._zod.def, {
865
- get shape() {
866
- const newShape = { ...schema._zod.def.shape };
867
- for (const key in mask) {
868
- if (!(key in currDef.shape)) {
869
- throw new Error(`Unrecognized key: "${key}"`);
870
- }
871
- if (!mask[key])
872
- continue;
873
- delete newShape[key];
874
- }
875
- assignProp(this, "shape", newShape);
876
- return newShape;
877
- },
878
- checks: []
879
- });
880
- return clone(schema, def);
881
- }
882
- function extend(schema, shape) {
883
- if (!isPlainObject(shape)) {
884
- throw new Error("Invalid input to extend: expected a plain object");
885
- }
886
- const checks = schema._zod.def.checks;
887
- const hasChecks = checks && checks.length > 0;
888
- if (hasChecks) {
889
- throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");
890
- }
891
- const def = mergeDefs(schema._zod.def, {
892
- get shape() {
893
- const _shape = { ...schema._zod.def.shape, ...shape };
894
- assignProp(this, "shape", _shape);
895
- return _shape;
896
- },
897
- checks: []
898
- });
899
- return clone(schema, def);
900
- }
901
- function safeExtend(schema, shape) {
902
- if (!isPlainObject(shape)) {
903
- throw new Error("Invalid input to safeExtend: expected a plain object");
904
- }
905
- const def = {
906
- ...schema._zod.def,
907
- get shape() {
908
- const _shape = { ...schema._zod.def.shape, ...shape };
909
- assignProp(this, "shape", _shape);
910
- return _shape;
911
- },
912
- checks: schema._zod.def.checks
913
- };
914
- return clone(schema, def);
915
- }
916
- function merge(a, b) {
917
- const def = mergeDefs(a._zod.def, {
918
- get shape() {
919
- const _shape = { ...a._zod.def.shape, ...b._zod.def.shape };
920
- assignProp(this, "shape", _shape);
921
- return _shape;
922
- },
923
- get catchall() {
924
- return b._zod.def.catchall;
925
- },
926
- checks: []
927
- // delete existing checks
928
- });
929
- return clone(a, def);
930
- }
931
- function partial(Class2, schema, mask) {
932
- const def = mergeDefs(schema._zod.def, {
933
- get shape() {
934
- const oldShape = schema._zod.def.shape;
935
- const shape = { ...oldShape };
936
- if (mask) {
937
- for (const key in mask) {
938
- if (!(key in oldShape)) {
939
- throw new Error(`Unrecognized key: "${key}"`);
940
- }
941
- if (!mask[key])
942
- continue;
943
- shape[key] = Class2 ? new Class2({
944
- type: "optional",
945
- innerType: oldShape[key]
946
- }) : oldShape[key];
947
- }
948
- } else {
949
- for (const key in oldShape) {
950
- shape[key] = Class2 ? new Class2({
951
- type: "optional",
952
- innerType: oldShape[key]
953
- }) : oldShape[key];
954
- }
955
- }
956
- assignProp(this, "shape", shape);
957
- return shape;
958
- },
959
- checks: []
960
- });
961
- return clone(schema, def);
962
- }
963
- function required(Class2, schema, mask) {
964
- const def = mergeDefs(schema._zod.def, {
965
- get shape() {
966
- const oldShape = schema._zod.def.shape;
967
- const shape = { ...oldShape };
968
- if (mask) {
969
- for (const key in mask) {
970
- if (!(key in shape)) {
971
- throw new Error(`Unrecognized key: "${key}"`);
972
- }
973
- if (!mask[key])
974
- continue;
975
- shape[key] = new Class2({
976
- type: "nonoptional",
977
- innerType: oldShape[key]
978
- });
979
- }
980
- } else {
981
- for (const key in oldShape) {
982
- shape[key] = new Class2({
983
- type: "nonoptional",
984
- innerType: oldShape[key]
985
- });
986
- }
987
- }
988
- assignProp(this, "shape", shape);
989
- return shape;
990
- },
991
- checks: []
992
- });
993
- return clone(schema, def);
994
- }
995
561
  function aborted(x, startIndex = 0) {
996
562
  if (x.aborted === true)
997
563
  return true;
@@ -1026,15 +592,6 @@ function finalizeIssue(iss, ctx, config2) {
1026
592
  }
1027
593
  return full;
1028
594
  }
1029
- function getSizableOrigin(input) {
1030
- if (input instanceof Set)
1031
- return "set";
1032
- if (input instanceof Map)
1033
- return "map";
1034
- if (input instanceof File)
1035
- return "file";
1036
- return "unknown";
1037
- }
1038
595
  function getLengthableOrigin(input) {
1039
596
  if (Array.isArray(input))
1040
597
  return "array";
@@ -1042,66 +599,8 @@ function getLengthableOrigin(input) {
1042
599
  return "string";
1043
600
  return "unknown";
1044
601
  }
1045
- function issue(...args) {
1046
- const [iss, input, inst] = args;
1047
- if (typeof iss === "string") {
1048
- return {
1049
- message: iss,
1050
- code: "custom",
1051
- input,
1052
- inst
1053
- };
1054
- }
1055
- return { ...iss };
1056
- }
1057
- function cleanEnum(obj) {
1058
- return Object.entries(obj).filter(([k, _]) => {
1059
- return Number.isNaN(Number.parseInt(k, 10));
1060
- }).map((el) => el[1]);
1061
- }
1062
- function base64ToUint8Array(base642) {
1063
- const binaryString = atob(base642);
1064
- const bytes = new Uint8Array(binaryString.length);
1065
- for (let i = 0; i < binaryString.length; i++) {
1066
- bytes[i] = binaryString.charCodeAt(i);
1067
- }
1068
- return bytes;
1069
- }
1070
- function uint8ArrayToBase64(bytes) {
1071
- let binaryString = "";
1072
- for (let i = 0; i < bytes.length; i++) {
1073
- binaryString += String.fromCharCode(bytes[i]);
1074
- }
1075
- return btoa(binaryString);
1076
- }
1077
- function base64urlToUint8Array(base64url2) {
1078
- const base642 = base64url2.replace(/-/g, "+").replace(/_/g, "/");
1079
- const padding = "=".repeat((4 - base642.length % 4) % 4);
1080
- return base64ToUint8Array(base642 + padding);
1081
- }
1082
- function uint8ArrayToBase64url(bytes) {
1083
- return uint8ArrayToBase64(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
1084
- }
1085
- function hexToUint8Array(hex) {
1086
- const cleanHex = hex.replace(/^0x/, "");
1087
- if (cleanHex.length % 2 !== 0) {
1088
- throw new Error("Invalid hex string length");
1089
- }
1090
- const bytes = new Uint8Array(cleanHex.length / 2);
1091
- for (let i = 0; i < cleanHex.length; i += 2) {
1092
- bytes[i / 2] = Number.parseInt(cleanHex.slice(i, i + 2), 16);
1093
- }
1094
- return bytes;
1095
- }
1096
- function uint8ArrayToHex(bytes) {
1097
- return Array.from(bytes).map((b) => b.toString(16).padStart(2, "0")).join("");
1098
- }
1099
- var Class = class {
1100
- constructor(..._args) {
1101
- }
1102
- };
1103
602
 
1104
- // ../../node_modules/.pnpm/zod@4.2.1/node_modules/zod/v4/core/errors.js
603
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
1105
604
  var initializer = (inst, def) => {
1106
605
  inst.name = "$ZodError";
1107
606
  Object.defineProperty(inst, "_zod", {
@@ -1121,7 +620,7 @@ var initializer = (inst, def) => {
1121
620
  var $ZodError = $constructor("$ZodError", initializer);
1122
621
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1123
622
 
1124
- // ../../node_modules/.pnpm/zod@4.2.1/node_modules/zod/v4/core/parse.js
623
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
1125
624
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1126
625
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1127
626
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1176,9 +675,10 @@ var string = (params) => {
1176
675
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
1177
676
  return new RegExp(`^${regex}$`);
1178
677
  };
678
+ var number = /^-?\d+(?:\.\d+)?$/;
1179
679
  var boolean = /^(?:true|false)$/i;
1180
680
 
1181
- // ../../node_modules/.pnpm/zod@4.2.1/node_modules/zod/v4/core/checks.js
681
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
1182
682
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1183
683
  var _a2;
1184
684
  inst._zod ?? (inst._zod = {});
@@ -1270,14 +770,14 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
1270
770
  };
1271
771
  });
1272
772
 
1273
- // ../../node_modules/.pnpm/zod@4.2.1/node_modules/zod/v4/core/versions.js
773
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
1274
774
  var version = {
1275
775
  major: 4,
1276
- minor: 2,
1277
- patch: 1
776
+ minor: 3,
777
+ patch: 6
1278
778
  };
1279
779
 
1280
- // ../../node_modules/.pnpm/zod@4.2.1/node_modules/zod/v4/core/schemas.js
780
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
1281
781
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1282
782
  var _a2;
1283
783
  inst ?? (inst = {});
@@ -1374,7 +874,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1374
874
  return runChecks(result, checks, ctx);
1375
875
  };
1376
876
  }
1377
- inst["~standard"] = {
877
+ defineLazy(inst, "~standard", () => ({
1378
878
  validate: (value) => {
1379
879
  try {
1380
880
  const r = safeParse(inst, value);
@@ -1385,7 +885,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1385
885
  },
1386
886
  vendor: "zod",
1387
887
  version: 1
1388
- };
888
+ }));
1389
889
  });
1390
890
  var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
1391
891
  $ZodType.init(inst, def);
@@ -1526,8 +1026,11 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
1526
1026
  return payload;
1527
1027
  };
1528
1028
  });
1529
- function handlePropertyResult(result, final, key, input) {
1029
+ function handlePropertyResult(result, final, key, input, isOptionalOut) {
1530
1030
  if (result.issues.length) {
1031
+ if (isOptionalOut && !(key in input)) {
1032
+ return;
1033
+ }
1531
1034
  final.issues.push(...prefixIssues(key, result.issues));
1532
1035
  }
1533
1036
  if (result.value === void 0) {
@@ -1559,6 +1062,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1559
1062
  const keySet = def.keySet;
1560
1063
  const _catchall = def.catchall._zod;
1561
1064
  const t = _catchall.def.type;
1065
+ const isOptionalOut = _catchall.optout === "optional";
1562
1066
  for (const key in input) {
1563
1067
  if (keySet.has(key))
1564
1068
  continue;
@@ -1568,9 +1072,9 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1568
1072
  }
1569
1073
  const r = _catchall.run({ value: input[key], issues: [] }, ctx);
1570
1074
  if (r instanceof Promise) {
1571
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
1075
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
1572
1076
  } else {
1573
- handlePropertyResult(r, payload, key, input);
1077
+ handlePropertyResult(r, payload, key, input, isOptionalOut);
1574
1078
  }
1575
1079
  }
1576
1080
  if (unrecognized.length) {
@@ -1636,11 +1140,12 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
1636
1140
  const shape = value.shape;
1637
1141
  for (const key of value.keys) {
1638
1142
  const el = shape[key];
1143
+ const isOptionalOut = el._zod.optout === "optional";
1639
1144
  const r = el._zod.run({ value: input[key], issues: [] }, ctx);
1640
1145
  if (r instanceof Promise) {
1641
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input)));
1146
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key, input, isOptionalOut)));
1642
1147
  } else {
1643
- handlePropertyResult(r, payload, key, input);
1148
+ handlePropertyResult(r, payload, key, input, isOptionalOut);
1644
1149
  }
1645
1150
  }
1646
1151
  if (!catchall) {
@@ -1772,10 +1277,20 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1772
1277
  for (const key of Reflect.ownKeys(input)) {
1773
1278
  if (key === "__proto__")
1774
1279
  continue;
1775
- const keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1280
+ let keyResult = def.keyType._zod.run({ value: key, issues: [] }, ctx);
1776
1281
  if (keyResult instanceof Promise) {
1777
1282
  throw new Error("Async schemas not supported in object keys currently");
1778
1283
  }
1284
+ const checkNumericKey = typeof key === "string" && number.test(key) && keyResult.issues.length;
1285
+ if (checkNumericKey) {
1286
+ const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
1287
+ if (retryResult instanceof Promise) {
1288
+ throw new Error("Async schemas not supported in object keys currently");
1289
+ }
1290
+ if (retryResult.issues.length === 0) {
1291
+ keyResult = retryResult;
1292
+ }
1293
+ }
1779
1294
  if (keyResult.issues.length) {
1780
1295
  if (def.mode === "loose") {
1781
1296
  payload.value[key] = input[key];
@@ -1928,7 +1443,7 @@ function handleDefaultResult(payload, def) {
1928
1443
  return payload;
1929
1444
  }
1930
1445
 
1931
- // ../../node_modules/.pnpm/zod@4.2.1/node_modules/zod/v4/core/registries.js
1446
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
1932
1447
  var _a;
1933
1448
  var $ZodRegistry = class {
1934
1449
  constructor() {
@@ -1939,9 +1454,6 @@ var $ZodRegistry = class {
1939
1454
  const meta2 = _meta[0];
1940
1455
  this._map.set(schema, meta2);
1941
1456
  if (meta2 && typeof meta2 === "object" && "id" in meta2) {
1942
- if (this._idmap.has(meta2.id)) {
1943
- throw new Error(`ID ${meta2.id} already exists in the registry`);
1944
- }
1945
1457
  this._idmap.set(meta2.id, schema);
1946
1458
  }
1947
1459
  return this;
@@ -1978,62 +1490,71 @@ function registry() {
1978
1490
  }
1979
1491
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
1980
1492
 
1981
- // ../../node_modules/.pnpm/zod@4.2.1/node_modules/zod/v4/core/api.js
1982
- function _string(Class2, params) {
1983
- return new Class2({
1493
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
1494
+ // @__NO_SIDE_EFFECTS__
1495
+ function _string(Class, params) {
1496
+ return new Class({
1984
1497
  type: "string",
1985
- ...normalizeParams(params)
1498
+ ...normalizeParams()
1986
1499
  });
1987
1500
  }
1988
- function _url(Class2, params) {
1989
- return new Class2({
1501
+ // @__NO_SIDE_EFFECTS__
1502
+ function _url(Class, params) {
1503
+ return new Class({
1990
1504
  type: "string",
1991
1505
  format: "url",
1992
1506
  check: "string_format",
1993
1507
  abort: false,
1994
- ...normalizeParams(params)
1508
+ ...normalizeParams()
1995
1509
  });
1996
1510
  }
1997
- function _boolean(Class2, params) {
1998
- return new Class2({
1511
+ // @__NO_SIDE_EFFECTS__
1512
+ function _boolean(Class, params) {
1513
+ return new Class({
1999
1514
  type: "boolean",
2000
- ...normalizeParams(params)
1515
+ ...normalizeParams()
2001
1516
  });
2002
1517
  }
2003
- function _any(Class2) {
2004
- return new Class2({
1518
+ // @__NO_SIDE_EFFECTS__
1519
+ function _any(Class) {
1520
+ return new Class({
2005
1521
  type: "any"
2006
1522
  });
2007
1523
  }
1524
+ // @__NO_SIDE_EFFECTS__
2008
1525
  function _length(length, params) {
2009
1526
  return new $ZodCheckLengthEquals({
2010
1527
  check: "length_equals",
2011
- ...normalizeParams(params),
1528
+ ...normalizeParams(),
2012
1529
  length
2013
1530
  });
2014
1531
  }
1532
+ // @__NO_SIDE_EFFECTS__
2015
1533
  function _regex(pattern, params) {
2016
1534
  return new $ZodCheckRegex({
2017
1535
  check: "string_format",
2018
1536
  format: "regex",
2019
- ...normalizeParams(params),
1537
+ ...normalizeParams(),
2020
1538
  pattern
2021
1539
  });
2022
1540
  }
1541
+ // @__NO_SIDE_EFFECTS__
2023
1542
  function _overwrite(tx) {
2024
1543
  return new $ZodCheckOverwrite({
2025
1544
  check: "overwrite",
2026
1545
  tx
2027
1546
  });
2028
1547
  }
1548
+ // @__NO_SIDE_EFFECTS__
2029
1549
  function _trim() {
2030
- return _overwrite((input) => input.trim());
1550
+ return /* @__PURE__ */ _overwrite((input) => input.trim());
2031
1551
  }
1552
+ // @__NO_SIDE_EFFECTS__
2032
1553
  function _toLowerCase() {
2033
- return _overwrite((input) => input.toLowerCase());
1554
+ return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
2034
1555
  }
2035
1556
 
2036
- // ../../node_modules/.pnpm/zod@4.2.1/node_modules/zod/v4/mini/schemas.js
1557
+ // ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
2037
1558
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
2038
1559
  if (!inst._zod)
2039
1560
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -2045,30 +1566,30 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
2045
1566
  inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
2046
1567
  inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
2047
1568
  inst.check = (...checks) => {
2048
- return inst.clone(
2049
- {
2050
- ...def,
2051
- checks: [
2052
- ...def.checks ?? [],
2053
- ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
2054
- ]
2055
- }
2056
- // { parent: true }
2057
- );
1569
+ return inst.clone({
1570
+ ...def,
1571
+ checks: [
1572
+ ...def.checks ?? [],
1573
+ ...checks.map((ch) => typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch)
1574
+ ]
1575
+ }, { parent: true });
2058
1576
  };
1577
+ inst.with = inst.check;
2059
1578
  inst.clone = (_def, params) => clone(inst, _def, params);
2060
1579
  inst.brand = () => inst;
2061
1580
  inst.register = ((reg, meta2) => {
2062
1581
  reg.add(inst, meta2);
2063
1582
  return inst;
2064
1583
  });
1584
+ inst.apply = (fn) => fn(inst);
2065
1585
  });
2066
1586
  var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
2067
1587
  $ZodString.init(inst, def);
2068
1588
  ZodMiniType.init(inst, def);
2069
1589
  });
1590
+ // @__NO_SIDE_EFFECTS__
2070
1591
  function string2(params) {
2071
- return _string(ZodMiniString, params);
1592
+ return _string(ZodMiniString);
2072
1593
  }
2073
1594
  var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
2074
1595
  $ZodStringFormat.init(inst, def);
@@ -2078,20 +1599,23 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
2078
1599
  $ZodURL.init(inst, def);
2079
1600
  ZodMiniStringFormat.init(inst, def);
2080
1601
  });
1602
+ // @__NO_SIDE_EFFECTS__
2081
1603
  function url(params) {
2082
- return _url(ZodMiniURL, params);
1604
+ return _url(ZodMiniURL);
2083
1605
  }
2084
1606
  var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
2085
1607
  $ZodBoolean.init(inst, def);
2086
1608
  ZodMiniType.init(inst, def);
2087
1609
  });
1610
+ // @__NO_SIDE_EFFECTS__
2088
1611
  function boolean2(params) {
2089
- return _boolean(ZodMiniBoolean, params);
1612
+ return _boolean(ZodMiniBoolean);
2090
1613
  }
2091
1614
  var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
2092
1615
  $ZodAny.init(inst, def);
2093
1616
  ZodMiniType.init(inst, def);
2094
1617
  });
1618
+ // @__NO_SIDE_EFFECTS__
2095
1619
  function any() {
2096
1620
  return _any(ZodMiniAny);
2097
1621
  }
@@ -2099,23 +1623,25 @@ var ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
2099
1623
  $ZodArray.init(inst, def);
2100
1624
  ZodMiniType.init(inst, def);
2101
1625
  });
1626
+ // @__NO_SIDE_EFFECTS__
2102
1627
  function array(element, params) {
2103
1628
  return new ZodMiniArray({
2104
1629
  type: "array",
2105
1630
  element,
2106
- ...util_exports.normalizeParams(params)
1631
+ ...normalizeParams()
2107
1632
  });
2108
1633
  }
2109
1634
  var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
2110
1635
  $ZodObject.init(inst, def);
2111
1636
  ZodMiniType.init(inst, def);
2112
- util_exports.defineLazy(inst, "shape", () => def.shape);
1637
+ defineLazy(inst, "shape", () => def.shape);
2113
1638
  });
1639
+ // @__NO_SIDE_EFFECTS__
2114
1640
  function object(shape, params) {
2115
1641
  const def = {
2116
1642
  type: "object",
2117
1643
  shape: shape ?? {},
2118
- ...util_exports.normalizeParams(params)
1644
+ ...normalizeParams()
2119
1645
  };
2120
1646
  return new ZodMiniObject(def);
2121
1647
  }
@@ -2123,23 +1649,25 @@ var ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
2123
1649
  $ZodUnion.init(inst, def);
2124
1650
  ZodMiniType.init(inst, def);
2125
1651
  });
1652
+ // @__NO_SIDE_EFFECTS__
2126
1653
  function union(options, params) {
2127
1654
  return new ZodMiniUnion({
2128
1655
  type: "union",
2129
1656
  options,
2130
- ...util_exports.normalizeParams(params)
1657
+ ...normalizeParams()
2131
1658
  });
2132
1659
  }
2133
1660
  var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
2134
1661
  $ZodRecord.init(inst, def);
2135
1662
  ZodMiniType.init(inst, def);
2136
1663
  });
1664
+ // @__NO_SIDE_EFFECTS__
2137
1665
  function record(keyType, valueType, params) {
2138
1666
  return new ZodMiniRecord({
2139
1667
  type: "record",
2140
1668
  keyType,
2141
1669
  valueType,
2142
- ...util_exports.normalizeParams(params)
1670
+ ...normalizeParams()
2143
1671
  });
2144
1672
  }
2145
1673
  var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
@@ -2147,29 +1675,32 @@ var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
2147
1675
  ZodMiniType.init(inst, def);
2148
1676
  inst.options = Object.values(def.entries);
2149
1677
  });
1678
+ // @__NO_SIDE_EFFECTS__
2150
1679
  function _enum(values, params) {
2151
1680
  const entries = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
2152
1681
  return new ZodMiniEnum({
2153
1682
  type: "enum",
2154
1683
  entries,
2155
- ...util_exports.normalizeParams(params)
1684
+ ...normalizeParams()
2156
1685
  });
2157
1686
  }
2158
1687
  var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
2159
1688
  $ZodLiteral.init(inst, def);
2160
1689
  ZodMiniType.init(inst, def);
2161
1690
  });
1691
+ // @__NO_SIDE_EFFECTS__
2162
1692
  function literal(value, params) {
2163
1693
  return new ZodMiniLiteral({
2164
1694
  type: "literal",
2165
1695
  values: Array.isArray(value) ? value : [value],
2166
- ...util_exports.normalizeParams(params)
1696
+ ...normalizeParams()
2167
1697
  });
2168
1698
  }
2169
1699
  var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
2170
1700
  $ZodOptional.init(inst, def);
2171
1701
  ZodMiniType.init(inst, def);
2172
1702
  });
1703
+ // @__NO_SIDE_EFFECTS__
2173
1704
  function optional(innerType) {
2174
1705
  return new ZodMiniOptional({
2175
1706
  type: "optional",
@@ -2180,6 +1711,7 @@ var ZodMiniNullable = /* @__PURE__ */ $constructor("ZodMiniNullable", (inst, def
2180
1711
  $ZodNullable.init(inst, def);
2181
1712
  ZodMiniType.init(inst, def);
2182
1713
  });
1714
+ // @__NO_SIDE_EFFECTS__
2183
1715
  function nullable(innerType) {
2184
1716
  return new ZodMiniNullable({
2185
1717
  type: "nullable",
@@ -2190,12 +1722,13 @@ var ZodMiniDefault = /* @__PURE__ */ $constructor("ZodMiniDefault", (inst, def)
2190
1722
  $ZodDefault.init(inst, def);
2191
1723
  ZodMiniType.init(inst, def);
2192
1724
  });
1725
+ // @__NO_SIDE_EFFECTS__
2193
1726
  function _default(innerType, defaultValue) {
2194
1727
  return new ZodMiniDefault({
2195
1728
  type: "default",
2196
1729
  innerType,
2197
1730
  get defaultValue() {
2198
- return typeof defaultValue === "function" ? defaultValue() : util_exports.shallowClone(defaultValue);
1731
+ return typeof defaultValue === "function" ? defaultValue() : shallowClone(defaultValue);
2199
1732
  }
2200
1733
  });
2201
1734
  }
@@ -3894,5 +3427,5 @@ exports.writeInfo = writeInfo;
3894
3427
  exports.writeSuccess = writeSuccess;
3895
3428
  exports.writeTrace = writeTrace;
3896
3429
  exports.writeWarning = writeWarning;
3897
- //# sourceMappingURL=chunk-GU6JHGME.cjs.map
3898
- //# sourceMappingURL=chunk-GU6JHGME.cjs.map
3430
+ //# sourceMappingURL=chunk-2JUV6SZN.cjs.map
3431
+ //# sourceMappingURL=chunk-2JUV6SZN.cjs.map