@storm-software/git-tools 2.124.30 → 2.124.32

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.
@@ -316,30 +316,39 @@ Stacktrace: ${error.stack}`,
316
316
  // @__NO_SIDE_EFFECTS__
317
317
  function $constructor(name, initializer2, params) {
318
318
  function init(inst, def) {
319
- var _a;
320
- Object.defineProperty(inst, "_zod", {
321
- value: inst._zod ?? {},
322
- enumerable: false
323
- });
324
- (_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
319
+ if (!inst._zod) {
320
+ Object.defineProperty(inst, "_zod", {
321
+ value: {
322
+ def,
323
+ constr: _,
324
+ traits: /* @__PURE__ */ new Set()
325
+ },
326
+ enumerable: false
327
+ });
328
+ }
329
+ if (inst._zod.traits.has(name)) {
330
+ return;
331
+ }
325
332
  inst._zod.traits.add(name);
326
333
  initializer2(inst, def);
327
- for (const k in _.prototype) {
328
- if (!(k in inst))
329
- Object.defineProperty(inst, k, { value: _.prototype[k].bind(inst) });
334
+ const proto = _.prototype;
335
+ const keys = Object.keys(proto);
336
+ for (let i = 0; i < keys.length; i++) {
337
+ const k = keys[i];
338
+ if (!(k in inst)) {
339
+ inst[k] = proto[k].bind(inst);
340
+ }
330
341
  }
331
- inst._zod.constr = _;
332
- inst._zod.def = def;
333
342
  }
334
343
  const Parent = params?.Parent ?? Object;
335
344
  class Definition extends Parent {
336
345
  }
337
346
  Object.defineProperty(Definition, "name", { value: name });
338
347
  function _(def) {
339
- var _a;
348
+ var _a2;
340
349
  const inst = params?.Parent ? new Definition() : this;
341
350
  init(inst, def);
342
- (_a = inst._zod).deferred ?? (_a.deferred = []);
351
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
343
352
  for (const fn of inst._zod.deferred) {
344
353
  fn();
345
354
  }
@@ -366,7 +375,7 @@ function config(newConfig) {
366
375
  return globalConfig;
367
376
  }
368
377
 
369
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/util.js
378
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/util.js
370
379
  var util_exports = {};
371
380
  __export(util_exports, {
372
381
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -424,6 +433,7 @@ __export(util_exports, {
424
433
  required: () => required,
425
434
  safeExtend: () => safeExtend,
426
435
  shallowClone: () => shallowClone,
436
+ slugify: () => slugify,
427
437
  stringifyPrimitive: () => stringifyPrimitive,
428
438
  uint8ArrayToBase64: () => uint8ArrayToBase64,
429
439
  uint8ArrayToBase64url: () => uint8ArrayToBase64url,
@@ -562,6 +572,9 @@ function randomString(length = 10) {
562
572
  function esc(str) {
563
573
  return JSON.stringify(str);
564
574
  }
575
+ function slugify(input) {
576
+ return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
577
+ }
565
578
  var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
566
579
  };
567
580
  function isObject(data) {
@@ -585,6 +598,8 @@ function isPlainObject(o) {
585
598
  const ctor = o.constructor;
586
599
  if (ctor === void 0)
587
600
  return true;
601
+ if (typeof ctor !== "function")
602
+ return true;
588
603
  const prot = ctor.prototype;
589
604
  if (isObject(prot) === false)
590
605
  return false;
@@ -901,8 +916,8 @@ function aborted(x, startIndex = 0) {
901
916
  }
902
917
  function prefixIssues(path, issues) {
903
918
  return issues.map((iss) => {
904
- var _a;
905
- (_a = iss).path ?? (_a.path = []);
919
+ var _a2;
920
+ (_a2 = iss).path ?? (_a2.path = []);
906
921
  iss.path.unshift(path);
907
922
  return iss;
908
923
  });
@@ -998,7 +1013,7 @@ var Class = class {
998
1013
  }
999
1014
  };
1000
1015
 
1001
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/errors.js
1016
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/errors.js
1002
1017
  var initializer = (inst, def) => {
1003
1018
  inst.name = "$ZodError";
1004
1019
  Object.defineProperty(inst, "_zod", {
@@ -1018,7 +1033,7 @@ var initializer = (inst, def) => {
1018
1033
  var $ZodError = $constructor("$ZodError", initializer);
1019
1034
  var $ZodRealError = $constructor("$ZodError", initializer, { Parent: Error });
1020
1035
 
1021
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/parse.js
1036
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/parse.js
1022
1037
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
1023
1038
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
1024
1039
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -1069,26 +1084,23 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1069
1084
  } : { success: true, data: result.value };
1070
1085
  };
1071
1086
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1072
-
1073
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/regexes.js
1074
- var hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/;
1075
1087
  var string = (params) => {
1076
1088
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
1077
1089
  return new RegExp(`^${regex}$`);
1078
1090
  };
1079
1091
  var boolean = /^(?:true|false)$/i;
1080
1092
 
1081
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/checks.js
1093
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/checks.js
1082
1094
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
1083
- var _a;
1095
+ var _a2;
1084
1096
  inst._zod ?? (inst._zod = {});
1085
1097
  inst._zod.def = def;
1086
- (_a = inst._zod).onattach ?? (_a.onattach = []);
1098
+ (_a2 = inst._zod).onattach ?? (_a2.onattach = []);
1087
1099
  });
1088
1100
  var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
1089
- var _a;
1101
+ var _a2;
1090
1102
  $ZodCheck.init(inst, def);
1091
- (_a = inst._zod.def).when ?? (_a.when = (payload) => {
1103
+ (_a2 = inst._zod.def).when ?? (_a2.when = (payload) => {
1092
1104
  const val = payload.value;
1093
1105
  return !nullish(val) && val.length !== void 0;
1094
1106
  });
@@ -1117,7 +1129,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
1117
1129
  };
1118
1130
  });
1119
1131
  var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
1120
- var _a, _b;
1132
+ var _a2, _b;
1121
1133
  $ZodCheck.init(inst, def);
1122
1134
  inst._zod.onattach.push((inst2) => {
1123
1135
  const bag = inst2._zod.bag;
@@ -1128,7 +1140,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
1128
1140
  }
1129
1141
  });
1130
1142
  if (def.pattern)
1131
- (_a = inst._zod).check ?? (_a.check = (payload) => {
1143
+ (_a2 = inst._zod).check ?? (_a2.check = (payload) => {
1132
1144
  def.pattern.lastIndex = 0;
1133
1145
  if (def.pattern.test(payload.value))
1134
1146
  return;
@@ -1170,16 +1182,16 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
1170
1182
  };
1171
1183
  });
1172
1184
 
1173
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/versions.js
1185
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/versions.js
1174
1186
  var version = {
1175
1187
  major: 4,
1176
1188
  minor: 1,
1177
- patch: 12
1189
+ patch: 13
1178
1190
  };
1179
1191
 
1180
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/schemas.js
1192
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/schemas.js
1181
1193
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1182
- var _a;
1194
+ var _a2;
1183
1195
  inst ?? (inst = {});
1184
1196
  inst._zod.def = def;
1185
1197
  inst._zod.bag = inst._zod.bag || {};
@@ -1194,7 +1206,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
1194
1206
  }
1195
1207
  }
1196
1208
  if (checks.length === 0) {
1197
- (_a = inst._zod).deferred ?? (_a.deferred = []);
1209
+ (_a2 = inst._zod).deferred ?? (_a2.deferred = []);
1198
1210
  inst._zod.deferred?.push(() => {
1199
1211
  inst._zod.run = inst._zod.parse;
1200
1212
  });
@@ -1324,7 +1336,7 @@ var $ZodURL = /* @__PURE__ */ $constructor("$ZodURL", (inst, def) => {
1324
1336
  code: "invalid_format",
1325
1337
  format: "url",
1326
1338
  note: "Invalid hostname",
1327
- pattern: hostname.source,
1339
+ pattern: def.hostname.source,
1328
1340
  input: payload.value,
1329
1341
  inst,
1330
1342
  continue: !def.abort
@@ -1459,7 +1471,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
1459
1471
  const keySet = def.keySet;
1460
1472
  const _catchall = def.catchall._zod;
1461
1473
  const t = _catchall.def.type;
1462
- for (const key of Object.keys(input)) {
1474
+ for (const key in input) {
1463
1475
  if (keySet.has(key))
1464
1476
  continue;
1465
1477
  if (t === "never") {
@@ -1629,11 +1641,13 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1629
1641
  return payload;
1630
1642
  }
1631
1643
  const proms = [];
1632
- if (def.keyType._zod.values) {
1633
- const values = def.keyType._zod.values;
1644
+ const values = def.keyType._zod.values;
1645
+ if (values) {
1634
1646
  payload.value = {};
1647
+ const recordKeys = /* @__PURE__ */ new Set();
1635
1648
  for (const key of values) {
1636
1649
  if (typeof key === "string" || typeof key === "number" || typeof key === "symbol") {
1650
+ recordKeys.add(typeof key === "number" ? key.toString() : key);
1637
1651
  const result = def.valueType._zod.run({ value: input[key], issues: [] }, ctx);
1638
1652
  if (result instanceof Promise) {
1639
1653
  proms.push(result.then((result2) => {
@@ -1652,7 +1666,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
1652
1666
  }
1653
1667
  let unrecognized;
1654
1668
  for (const key in input) {
1655
- if (!values.has(key)) {
1669
+ if (!recordKeys.has(key)) {
1656
1670
  unrecognized = unrecognized ?? [];
1657
1671
  unrecognized.push(key);
1658
1672
  }
@@ -1733,11 +1747,12 @@ var $ZodLiteral = /* @__PURE__ */ $constructor("$ZodLiteral", (inst, def) => {
1733
1747
  if (def.values.length === 0) {
1734
1748
  throw new Error("Cannot create literal schema with no valid values");
1735
1749
  }
1736
- inst._zod.values = new Set(def.values);
1750
+ const values = new Set(def.values);
1751
+ inst._zod.values = values;
1737
1752
  inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
1738
1753
  inst._zod.parse = (payload, _ctx) => {
1739
1754
  const input = payload.value;
1740
- if (inst._zod.values.has(input)) {
1755
+ if (values.has(input)) {
1741
1756
  return payload;
1742
1757
  }
1743
1758
  payload.issues.push({
@@ -1821,19 +1836,22 @@ function handleDefaultResult(payload, def) {
1821
1836
  }
1822
1837
  return payload;
1823
1838
  }
1839
+
1840
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/registries.js
1841
+ var _a;
1824
1842
  var $ZodRegistry = class {
1825
1843
  constructor() {
1826
1844
  this._map = /* @__PURE__ */ new WeakMap();
1827
1845
  this._idmap = /* @__PURE__ */ new Map();
1828
1846
  }
1829
1847
  add(schema, ..._meta) {
1830
- const meta = _meta[0];
1831
- this._map.set(schema, meta);
1832
- if (meta && typeof meta === "object" && "id" in meta) {
1833
- if (this._idmap.has(meta.id)) {
1834
- throw new Error(`ID ${meta.id} already exists in the registry`);
1848
+ const meta2 = _meta[0];
1849
+ this._map.set(schema, meta2);
1850
+ if (meta2 && typeof meta2 === "object" && "id" in meta2) {
1851
+ if (this._idmap.has(meta2.id)) {
1852
+ throw new Error(`ID ${meta2.id} already exists in the registry`);
1835
1853
  }
1836
- this._idmap.set(meta.id, schema);
1854
+ this._idmap.set(meta2.id, schema);
1837
1855
  }
1838
1856
  return this;
1839
1857
  }
@@ -1843,9 +1861,9 @@ var $ZodRegistry = class {
1843
1861
  return this;
1844
1862
  }
1845
1863
  remove(schema) {
1846
- const meta = this._map.get(schema);
1847
- if (meta && typeof meta === "object" && "id" in meta) {
1848
- this._idmap.delete(meta.id);
1864
+ const meta2 = this._map.get(schema);
1865
+ if (meta2 && typeof meta2 === "object" && "id" in meta2) {
1866
+ this._idmap.delete(meta2.id);
1849
1867
  }
1850
1868
  this._map.delete(schema);
1851
1869
  return this;
@@ -1867,8 +1885,9 @@ var $ZodRegistry = class {
1867
1885
  function registry() {
1868
1886
  return new $ZodRegistry();
1869
1887
  }
1888
+ (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
1870
1889
 
1871
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/core/api.js
1890
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/core/api.js
1872
1891
  function _string(Class2, params) {
1873
1892
  return new Class2({
1874
1893
  type: "string",
@@ -1923,7 +1942,7 @@ function _toLowerCase() {
1923
1942
  return _overwrite((input) => input.toLowerCase());
1924
1943
  }
1925
1944
 
1926
- // ../../node_modules/.pnpm/zod@4.1.12/node_modules/zod/v4/mini/schemas.js
1945
+ // ../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/mini/schemas.js
1927
1946
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1928
1947
  if (!inst._zod)
1929
1948
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -1948,8 +1967,8 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1948
1967
  };
1949
1968
  inst.clone = (_def, params) => clone(inst, _def, params);
1950
1969
  inst.brand = () => inst;
1951
- inst.register = ((reg, meta) => {
1952
- reg.add(inst, meta);
1970
+ inst.register = ((reg, meta2) => {
1971
+ reg.add(inst, meta2);
1953
1972
  return inst;
1954
1973
  });
1955
1974
  });
@@ -3754,5 +3773,5 @@ function getWorkspaceConfig(skipLogs = true, options = {}) {
3754
3773
  }
3755
3774
 
3756
3775
  export { STORM_DEFAULT_RELEASE_BANNER, defu, exitWithError, exitWithSuccess, findWorkspaceRootSafe, getConfig, getWorkspaceConfig, handleProcess, isVerbose, joinPaths, writeDebug, writeError, writeFatal, writeInfo, writeSuccess, writeTrace, writeWarning };
3757
- //# sourceMappingURL=chunk-WB7NYAEQ.js.map
3758
- //# sourceMappingURL=chunk-WB7NYAEQ.js.map
3776
+ //# sourceMappingURL=chunk-XFXTHGZZ.js.map
3777
+ //# sourceMappingURL=chunk-XFXTHGZZ.js.map