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