@wise/wds-codemods 1.3.0 → 1.3.1-experimental-9c7188b

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.
@@ -1,4 +1,4 @@
1
- import { t as CONSOLE_ICONS } from "./common-nTdKnfMB.js";
1
+ import { t as CONSOLE_ICONS } from "./common-AexZXiET.js";
2
2
  import { exec, execSync } from "node:child_process";
3
3
  import fs from "node:fs/promises";
4
4
  import path, { dirname, join, relative, resolve } from "node:path";
@@ -12,7 +12,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
12
  var __getOwnPropNames = Object.getOwnPropertyNames;
13
13
  var __getProtoOf = Object.getPrototypeOf;
14
14
  var __hasOwnProp = Object.prototype.hasOwnProperty;
15
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
15
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
16
16
  var __copyProps = (to, from, except, desc) => {
17
17
  if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18
18
  key = keys[i];
@@ -28,7 +28,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  enumerable: true
29
29
  }) : target, mod));
30
30
  //#endregion
31
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
31
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/constants.js
32
32
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
33
33
  const SEMVER_SPEC_VERSION = "2.0.0";
34
34
  const MAX_LENGTH = 256;
@@ -53,12 +53,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
53
53
  };
54
54
  }));
55
55
  //#endregion
56
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
56
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/debug.js
57
57
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
58
58
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
59
59
  }));
60
60
  //#endregion
61
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
61
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/re.js
62
62
  var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
63
63
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
64
64
  const debug = require_debug();
@@ -137,7 +137,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137
137
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
138
138
  }));
139
139
  //#endregion
140
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
140
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/parse-options.js
141
141
  var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142
142
  const looseOption = Object.freeze({ loose: true });
143
143
  const emptyOpts = Object.freeze({});
@@ -149,7 +149,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
149
149
  module.exports = parseOptions;
150
150
  }));
151
151
  //#endregion
152
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
152
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/identifiers.js
153
153
  var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
154
154
  const numeric = /^[0-9]+$/;
155
155
  const compareIdentifiers = (a, b) => {
@@ -169,13 +169,19 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
169
169
  };
170
170
  }));
171
171
  //#endregion
172
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js
172
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/classes/semver.js
173
173
  var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
174
174
  const debug = require_debug();
175
175
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
176
176
  const { safeRe: re, t } = require_re();
177
177
  const parseOptions = require_parse_options();
178
178
  const { compareIdentifiers } = require_identifiers();
179
+ const isPrereleaseIdentifier = (prerelease, identifier) => {
180
+ const identifiers = identifier.split(".");
181
+ if (identifiers.length > prerelease.length) return false;
182
+ for (let i = 0; i < identifiers.length; i++) if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) return false;
183
+ return true;
184
+ };
179
185
  module.exports = class SemVer {
180
186
  constructor(version, options) {
181
187
  options = parseOptions(options);
@@ -332,8 +338,9 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
332
338
  if (identifier) {
333
339
  let prerelease = [identifier, base];
334
340
  if (identifierBase === false) prerelease = [identifier];
335
- if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
336
- if (isNaN(this.prerelease[1])) this.prerelease = prerelease;
341
+ if (isPrereleaseIdentifier(this.prerelease, identifier)) {
342
+ const prereleaseBase = this.prerelease[identifier.split(".").length];
343
+ if (isNaN(prereleaseBase)) this.prerelease = prerelease;
337
344
  } else this.prerelease = prerelease;
338
345
  }
339
346
  break;
@@ -347,7 +354,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
347
354
  };
348
355
  }));
349
356
  //#endregion
350
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js
357
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/parse.js
351
358
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
352
359
  const SemVer = require_semver$1();
353
360
  const parse = (version, options, throwErrors = false) => {
@@ -362,7 +369,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
362
369
  module.exports = parse;
363
370
  }));
364
371
  //#endregion
365
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js
372
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/valid.js
366
373
  var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
367
374
  const parse = require_parse();
368
375
  const valid = (version, options) => {
@@ -372,7 +379,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
372
379
  module.exports = valid;
373
380
  }));
374
381
  //#endregion
375
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js
382
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/clean.js
376
383
  var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
377
384
  const parse = require_parse();
378
385
  const clean = (version, options) => {
@@ -382,7 +389,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
382
389
  module.exports = clean;
383
390
  }));
384
391
  //#endregion
385
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js
392
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/inc.js
386
393
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
387
394
  const SemVer = require_semver$1();
388
395
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -400,7 +407,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
400
407
  module.exports = inc;
401
408
  }));
402
409
  //#endregion
403
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js
410
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/diff.js
404
411
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
405
412
  const parse = require_parse();
406
413
  const diff = (version1, version2) => {
@@ -428,28 +435,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
428
435
  module.exports = diff;
429
436
  }));
430
437
  //#endregion
431
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js
438
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/major.js
432
439
  var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
433
440
  const SemVer = require_semver$1();
434
441
  const major = (a, loose) => new SemVer(a, loose).major;
435
442
  module.exports = major;
436
443
  }));
437
444
  //#endregion
438
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js
445
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/minor.js
439
446
  var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
440
447
  const SemVer = require_semver$1();
441
448
  const minor = (a, loose) => new SemVer(a, loose).minor;
442
449
  module.exports = minor;
443
450
  }));
444
451
  //#endregion
445
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js
452
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/patch.js
446
453
  var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
447
454
  const SemVer = require_semver$1();
448
455
  const patch = (a, loose) => new SemVer(a, loose).patch;
449
456
  module.exports = patch;
450
457
  }));
451
458
  //#endregion
452
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js
459
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/prerelease.js
453
460
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
454
461
  const parse = require_parse();
455
462
  const prerelease = (version, options) => {
@@ -459,28 +466,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
459
466
  module.exports = prerelease;
460
467
  }));
461
468
  //#endregion
462
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
469
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/compare.js
463
470
  var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
464
471
  const SemVer = require_semver$1();
465
472
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
466
473
  module.exports = compare;
467
474
  }));
468
475
  //#endregion
469
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js
476
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/rcompare.js
470
477
  var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
471
478
  const compare = require_compare();
472
479
  const rcompare = (a, b, loose) => compare(b, a, loose);
473
480
  module.exports = rcompare;
474
481
  }));
475
482
  //#endregion
476
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js
483
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/compare-loose.js
477
484
  var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
478
485
  const compare = require_compare();
479
486
  const compareLoose = (a, b) => compare(a, b, true);
480
487
  module.exports = compareLoose;
481
488
  }));
482
489
  //#endregion
483
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js
490
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/compare-build.js
484
491
  var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
485
492
  const SemVer = require_semver$1();
486
493
  const compareBuild = (a, b, loose) => {
@@ -491,63 +498,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
491
498
  module.exports = compareBuild;
492
499
  }));
493
500
  //#endregion
494
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js
501
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/sort.js
495
502
  var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
496
503
  const compareBuild = require_compare_build();
497
504
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
498
505
  module.exports = sort;
499
506
  }));
500
507
  //#endregion
501
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js
508
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/rsort.js
502
509
  var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
503
510
  const compareBuild = require_compare_build();
504
511
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
505
512
  module.exports = rsort;
506
513
  }));
507
514
  //#endregion
508
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
515
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/gt.js
509
516
  var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
510
517
  const compare = require_compare();
511
518
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
512
519
  module.exports = gt;
513
520
  }));
514
521
  //#endregion
515
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js
522
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/lt.js
516
523
  var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
517
524
  const compare = require_compare();
518
525
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
519
526
  module.exports = lt;
520
527
  }));
521
528
  //#endregion
522
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
529
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/eq.js
523
530
  var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
524
531
  const compare = require_compare();
525
532
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
526
533
  module.exports = eq;
527
534
  }));
528
535
  //#endregion
529
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
536
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/neq.js
530
537
  var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
531
538
  const compare = require_compare();
532
539
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
533
540
  module.exports = neq;
534
541
  }));
535
542
  //#endregion
536
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
543
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/gte.js
537
544
  var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
538
545
  const compare = require_compare();
539
546
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
540
547
  module.exports = gte;
541
548
  }));
542
549
  //#endregion
543
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
550
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/lte.js
544
551
  var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
545
552
  const compare = require_compare();
546
553
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
547
554
  module.exports = lte;
548
555
  }));
549
556
  //#endregion
550
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js
557
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/cmp.js
551
558
  var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
552
559
  const eq = require_eq();
553
560
  const neq = require_neq();
@@ -579,7 +586,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
579
586
  module.exports = cmp;
580
587
  }));
581
588
  //#endregion
582
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js
589
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/coerce.js
583
590
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
584
591
  const SemVer = require_semver$1();
585
592
  const parse = require_parse();
@@ -607,7 +614,40 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
607
614
  module.exports = coerce;
608
615
  }));
609
616
  //#endregion
610
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
617
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/truncate.js
618
+ var require_truncate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
619
+ const parse = require_parse();
620
+ const constants = require_constants();
621
+ const SemVer = require_semver$1();
622
+ const truncate = (version, truncation, options) => {
623
+ if (!constants.RELEASE_TYPES.includes(truncation)) return null;
624
+ const clonedVersion = cloneInputVersion(version, options);
625
+ return clonedVersion && doTruncation(clonedVersion, truncation);
626
+ };
627
+ const cloneInputVersion = (version, options) => {
628
+ return parse(version instanceof SemVer ? version.version : version, options);
629
+ };
630
+ const doTruncation = (version, truncation) => {
631
+ if (isPrerelease(truncation)) return version.version;
632
+ version.prerelease = [];
633
+ switch (truncation) {
634
+ case "major":
635
+ version.minor = 0;
636
+ version.patch = 0;
637
+ break;
638
+ case "minor":
639
+ version.patch = 0;
640
+ break;
641
+ }
642
+ return version.format();
643
+ };
644
+ const isPrerelease = (type) => {
645
+ return type.startsWith("pre");
646
+ };
647
+ module.exports = truncate;
648
+ }));
649
+ //#endregion
650
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/internal/lrucache.js
611
651
  var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
612
652
  var LRUCache = class {
613
653
  constructor() {
@@ -640,7 +680,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
640
680
  module.exports = LRUCache;
641
681
  }));
642
682
  //#endregion
643
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js
683
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/classes/range.js
644
684
  var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
645
685
  const SPACE_CHARACTERS = /\s+/g;
646
686
  module.exports = class Range {
@@ -694,6 +734,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
694
734
  return this.range;
695
735
  }
696
736
  parseRange(range) {
737
+ range = range.replace(BUILDSTRIPRE, "");
697
738
  const memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range;
698
739
  const cached = cache.get(memoKey);
699
740
  if (cached) return cached;
@@ -752,8 +793,9 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
752
793
  const Comparator = require_comparator();
753
794
  const debug = require_debug();
754
795
  const SemVer = require_semver$1();
755
- const { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
796
+ const { safeRe: re, src, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re();
756
797
  const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
798
+ const BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
757
799
  const isNullSet = (c) => c.value === "<0.0.0-0";
758
800
  const isAny = (c) => c.value === "";
759
801
  const isSatisfiable = (comparators, options) => {
@@ -912,7 +954,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
912
954
  };
913
955
  }));
914
956
  //#endregion
915
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js
957
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/classes/comparator.js
916
958
  var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
917
959
  const ANY = Symbol("SemVer ANY");
918
960
  module.exports = class Comparator {
@@ -982,7 +1024,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
982
1024
  const Range = require_range();
983
1025
  }));
984
1026
  //#endregion
985
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
1027
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/functions/satisfies.js
986
1028
  var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
987
1029
  const Range = require_range();
988
1030
  const satisfies = (version, range, options) => {
@@ -996,14 +1038,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
996
1038
  module.exports = satisfies;
997
1039
  }));
998
1040
  //#endregion
999
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js
1041
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/to-comparators.js
1000
1042
  var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1001
1043
  const Range = require_range();
1002
1044
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
1003
1045
  module.exports = toComparators;
1004
1046
  }));
1005
1047
  //#endregion
1006
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js
1048
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/max-satisfying.js
1007
1049
  var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1008
1050
  const SemVer = require_semver$1();
1009
1051
  const Range = require_range();
@@ -1029,7 +1071,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1029
1071
  module.exports = maxSatisfying;
1030
1072
  }));
1031
1073
  //#endregion
1032
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js
1074
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/min-satisfying.js
1033
1075
  var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1034
1076
  const SemVer = require_semver$1();
1035
1077
  const Range = require_range();
@@ -1055,7 +1097,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1055
1097
  module.exports = minSatisfying;
1056
1098
  }));
1057
1099
  //#endregion
1058
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
1100
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/min-version.js
1059
1101
  var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1060
1102
  const SemVer = require_semver$1();
1061
1103
  const Range = require_range();
@@ -1083,6 +1125,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1083
1125
  break;
1084
1126
  case "<":
1085
1127
  case "<=": break;
1128
+ /* istanbul ignore next */
1086
1129
  default: throw new Error(`Unexpected operation: ${comparator.operator}`);
1087
1130
  }
1088
1131
  });
@@ -1094,7 +1137,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1094
1137
  module.exports = minVersion;
1095
1138
  }));
1096
1139
  //#endregion
1097
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js
1140
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/valid.js
1098
1141
  var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1099
1142
  const Range = require_range();
1100
1143
  const validRange = (range, options) => {
@@ -1107,7 +1150,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1107
1150
  module.exports = validRange;
1108
1151
  }));
1109
1152
  //#endregion
1110
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js
1153
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/outside.js
1111
1154
  var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1112
1155
  const SemVer = require_semver$1();
1113
1156
  const Comparator = require_comparator();
@@ -1160,21 +1203,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1160
1203
  module.exports = outside;
1161
1204
  }));
1162
1205
  //#endregion
1163
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js
1206
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/gtr.js
1164
1207
  var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1165
1208
  const outside = require_outside();
1166
1209
  const gtr = (version, range, options) => outside(version, range, ">", options);
1167
1210
  module.exports = gtr;
1168
1211
  }));
1169
1212
  //#endregion
1170
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js
1213
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/ltr.js
1171
1214
  var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1172
1215
  const outside = require_outside();
1173
1216
  const ltr = (version, range, options) => outside(version, range, "<", options);
1174
1217
  module.exports = ltr;
1175
1218
  }));
1176
1219
  //#endregion
1177
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js
1220
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/intersects.js
1178
1221
  var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1179
1222
  const Range = require_range();
1180
1223
  const intersects = (r1, r2, options) => {
@@ -1185,7 +1228,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1185
1228
  module.exports = intersects;
1186
1229
  }));
1187
1230
  //#endregion
1188
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js
1231
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/simplify.js
1189
1232
  var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1190
1233
  const satisfies = require_satisfies();
1191
1234
  const compare = require_compare();
@@ -1215,7 +1258,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1215
1258
  };
1216
1259
  }));
1217
1260
  //#endregion
1218
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js
1261
+ //#region node_modules/.pnpm/semver@7.8.2/node_modules/semver/ranges/subset.js
1219
1262
  var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1220
1263
  const Range = require_range();
1221
1264
  const Comparator = require_comparator();
@@ -1279,7 +1322,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1279
1322
  if (c.operator === ">" || c.operator === ">=") {
1280
1323
  higher = higherGT(gt, c, options);
1281
1324
  if (higher === c && higher !== gt) return false;
1282
- } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
1325
+ } else if (gt.operator === ">=" && !c.test(gt.semver)) return false;
1283
1326
  }
1284
1327
  if (lt) {
1285
1328
  if (needDomLTPre) {
@@ -1288,7 +1331,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1288
1331
  if (c.operator === "<" || c.operator === "<=") {
1289
1332
  lower = lowerLT(lt, c, options);
1290
1333
  if (lower === c && lower !== lt) return false;
1291
- } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
1334
+ } else if (lt.operator === "<=" && !c.test(lt.semver)) return false;
1292
1335
  }
1293
1336
  if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
1294
1337
  }
@@ -1310,8 +1353,8 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1310
1353
  module.exports = subset;
1311
1354
  }));
1312
1355
  //#endregion
1313
- //#region node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js
1314
- var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1356
+ //#region src/controller/helpers/getCodemodConfig.ts
1357
+ var import_semver = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1315
1358
  const internalRe = require_re();
1316
1359
  const constants = require_constants();
1317
1360
  const SemVer = require_semver$1();
@@ -1340,6 +1383,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1340
1383
  lte: require_lte(),
1341
1384
  cmp: require_cmp(),
1342
1385
  coerce: require_coerce(),
1386
+ truncate: require_truncate(),
1343
1387
  Comparator: require_comparator(),
1344
1388
  Range: require_range(),
1345
1389
  satisfies: require_satisfies(),
@@ -1363,9 +1407,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1363
1407
  compareIdentifiers: identifiers.compareIdentifiers,
1364
1408
  rcompareIdentifiers: identifiers.rcompareIdentifiers
1365
1409
  };
1366
- }));
1367
- //#endregion
1368
- //#region src/controller/helpers/getCodemodConfig.ts
1410
+ })))(), 1);
1369
1411
  /** Retrieves a JSON object from a file path, returning null if the file does not exist */
1370
1412
  const getJsonFromPath = (baseDir, fileName) => {
1371
1413
  const jsonPath = join(baseDir, fileName);
@@ -1474,7 +1516,6 @@ const renderTable = (data, indexHeading = "index") => {
1474
1516
  };
1475
1517
  //#endregion
1476
1518
  //#region src/controller/helpers/dependencyChecks.ts
1477
- var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
1478
1519
  /**
1479
1520
  * Checks if the installed version satisfies the given version requirement.
1480
1521
  */
@@ -1903,4 +1944,4 @@ function validateClaudeConfig() {
1903
1944
  //#endregion
1904
1945
  export { getOptions as a, assessPrerequisitesBatch as c, getCodemodConfig as d, loadTransformModules as i, findPackages as l, runTransformPrompts as n, logToInquirer as o, reportManualReview as r, assessPrerequisites as s, validateClaudeConfig as t, findProjectRoot as u };
1905
1946
 
1906
- //# sourceMappingURL=helpers-9e0vtyED.js.map
1947
+ //# sourceMappingURL=helpers-CPf8C-KU.js.map