@ariestools/toolchain 8.7.27 → 8.7.28

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 (199) hide show
  1. package/dist/actions/analyze.d.ts +27 -9
  2. package/dist/actions/analyze.d.ts.map +1 -1
  3. package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts +6 -2
  4. package/dist/actions/api-exposure/analyzer/analyzePackage.d.ts.map +1 -1
  5. package/dist/actions/api-exposure/analyzer/couplingWalk.d.ts.map +1 -1
  6. package/dist/actions/api-exposure/analyzer/depSignals.d.ts +12 -4
  7. package/dist/actions/api-exposure/analyzer/depSignals.d.ts.map +1 -1
  8. package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts +9 -3
  9. package/dist/actions/api-exposure/analyzer/exposureWalk.d.ts.map +1 -1
  10. package/dist/actions/api-exposure/analyzer/importedPackages.d.ts +6 -2
  11. package/dist/actions/api-exposure/analyzer/importedPackages.d.ts.map +1 -1
  12. package/dist/actions/api-exposure/apiExposure.d.ts +9 -3
  13. package/dist/actions/api-exposure/apiExposure.d.ts.map +1 -1
  14. package/dist/actions/api-exposure/config.d.ts +12 -4
  15. package/dist/actions/api-exposure/config.d.ts.map +1 -1
  16. package/dist/actions/api-exposure/installStrategy.d.ts +6 -2
  17. package/dist/actions/api-exposure/installStrategy.d.ts.map +1 -1
  18. package/dist/actions/api-exposure/reporters.d.ts +3 -1
  19. package/dist/actions/api-exposure/reporters.d.ts.map +1 -1
  20. package/dist/actions/api-exposure/scoring.d.ts +3 -1
  21. package/dist/actions/api-exposure/scoring.d.ts.map +1 -1
  22. package/dist/actions/api-exposure/types.d.ts +48 -16
  23. package/dist/actions/api-exposure/types.d.ts.map +1 -1
  24. package/dist/actions/barrel/index.d.ts +0 -1
  25. package/dist/actions/barrel/index.d.ts.map +1 -1
  26. package/dist/actions/barrel/restrictionHelpers.d.ts +0 -19
  27. package/dist/actions/barrel/restrictionHelpers.d.ts.map +1 -1
  28. package/dist/actions/compile.d.ts +9 -3
  29. package/dist/actions/compile.d.ts.map +1 -1
  30. package/dist/actions/dead/analyzePackage.d.ts +18 -6
  31. package/dist/actions/dead/analyzePackage.d.ts.map +1 -1
  32. package/dist/actions/dead/collectSymbols.d.ts +12 -4
  33. package/dist/actions/dead/collectSymbols.d.ts.map +1 -1
  34. package/dist/actions/dead/evaluateRules.d.ts +3 -1
  35. package/dist/actions/dead/evaluateRules.d.ts.map +1 -1
  36. package/dist/actions/dead/findWorkspaceFile.d.ts +3 -1
  37. package/dist/actions/dead/findWorkspaceFile.d.ts.map +1 -1
  38. package/dist/actions/dead/ruleNames.d.ts +3 -1
  39. package/dist/actions/dead/ruleNames.d.ts.map +1 -1
  40. package/dist/actions/dead/runDeadAnalysis.d.ts +3 -1
  41. package/dist/actions/dead/runDeadAnalysis.d.ts.map +1 -1
  42. package/dist/actions/dead/sourceEdits.d.ts +3 -1
  43. package/dist/actions/dead/sourceEdits.d.ts.map +1 -1
  44. package/dist/actions/deplint/checkPackage/checkPackage.d.ts +3 -1
  45. package/dist/actions/deplint/checkPackage/checkPackage.d.ts.map +1 -1
  46. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +6 -2
  47. package/dist/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +1 -1
  48. package/dist/actions/deplint/collectPickRows.d.ts +24 -8
  49. package/dist/actions/deplint/collectPickRows.d.ts.map +1 -1
  50. package/dist/actions/deplint/deplint.d.ts +9 -3
  51. package/dist/actions/deplint/deplint.d.ts.map +1 -1
  52. package/dist/actions/deplint/deplintPick.d.ts +3 -1
  53. package/dist/actions/deplint/deplintPick.d.ts.map +1 -1
  54. package/dist/actions/deplint/editXyConfigPackages.d.ts +9 -3
  55. package/dist/actions/deplint/editXyConfigPackages.d.ts.map +1 -1
  56. package/dist/actions/deplint/fetchPackageManifest.d.ts +6 -2
  57. package/dist/actions/deplint/fetchPackageManifest.d.ts.map +1 -1
  58. package/dist/actions/deplint/findFiles.d.ts +6 -2
  59. package/dist/actions/deplint/findFiles.d.ts.map +1 -1
  60. package/dist/actions/deplint/getExternalImportsFromFiles.d.ts.map +1 -1
  61. package/dist/actions/deplint/interactivePick.d.ts +3 -1
  62. package/dist/actions/deplint/interactivePick.d.ts.map +1 -1
  63. package/dist/actions/deplint/isTerminalPackage.d.ts +12 -4
  64. package/dist/actions/deplint/isTerminalPackage.d.ts.map +1 -1
  65. package/dist/actions/deplint/resolvePeerBumpFixes.d.ts +3 -1
  66. package/dist/actions/deplint/resolvePeerBumpFixes.d.ts.map +1 -1
  67. package/dist/actions/deplint/snapshot.d.ts +24 -8
  68. package/dist/actions/deplint/snapshot.d.ts.map +1 -1
  69. package/dist/actions/deplint/sourceFileCache.d.ts +3 -1
  70. package/dist/actions/deplint/sourceFileCache.d.ts.map +1 -1
  71. package/dist/actions/deplint/types.d.ts +66 -22
  72. package/dist/actions/deplint/types.d.ts.map +1 -1
  73. package/dist/actions/gitignore.d.ts +3 -1
  74. package/dist/actions/gitignore.d.ts.map +1 -1
  75. package/dist/actions/lint.d.ts +15 -5
  76. package/dist/actions/lint.d.ts.map +1 -1
  77. package/dist/actions/lintNext.d.ts +6 -2
  78. package/dist/actions/lintNext.d.ts.map +1 -1
  79. package/dist/actions/lintNextWorker.d.ts +36 -12
  80. package/dist/actions/lintNextWorker.d.ts.map +1 -1
  81. package/dist/actions/lintPackageFilter.d.ts +15 -5
  82. package/dist/actions/lintPackageFilter.d.ts.map +1 -1
  83. package/dist/actions/package/clean-outputs.d.ts +3 -1
  84. package/dist/actions/package/clean-outputs.d.ts.map +1 -1
  85. package/dist/actions/package/clean-typescript.d.ts +3 -1
  86. package/dist/actions/package/clean-typescript.d.ts.map +1 -1
  87. package/dist/actions/package/cleanGitignore.d.ts +6 -2
  88. package/dist/actions/package/cleanGitignore.d.ts.map +1 -1
  89. package/dist/actions/package/cleanPlan.d.ts +6 -2
  90. package/dist/actions/package/cleanPlan.d.ts.map +1 -1
  91. package/dist/actions/package/cleanRules.d.ts +15 -5
  92. package/dist/actions/package/cleanRules.d.ts.map +1 -1
  93. package/dist/actions/package/compile/ApiExposureConfig.d.ts +24 -8
  94. package/dist/actions/package/compile/ApiExposureConfig.d.ts.map +1 -1
  95. package/dist/actions/package/compile/CleanConfig.d.ts +3 -1
  96. package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -1
  97. package/dist/actions/package/compile/MonolithConfig.d.ts +39 -13
  98. package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
  99. package/dist/actions/package/compile/PublintConfig.d.ts +6 -2
  100. package/dist/actions/package/compile/PublintConfig.d.ts.map +1 -1
  101. package/dist/actions/package/compile/XyConfig.d.ts +162 -54
  102. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
  103. package/dist/actions/package/compile/createProgramFromConfig.d.ts +18 -6
  104. package/dist/actions/package/compile/createProgramFromConfig.d.ts.map +1 -1
  105. package/dist/actions/package/compile/inputs.d.ts.map +1 -1
  106. package/dist/actions/package/compile/monolithCompileDeclarations.d.ts +3 -1
  107. package/dist/actions/package/compile/monolithCompileDeclarations.d.ts.map +1 -1
  108. package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -1
  109. package/dist/actions/package/compile/monolithCompileLayout.d.ts +15 -5
  110. package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
  111. package/dist/actions/package/compile/monolithCopyEntries.d.ts +6 -2
  112. package/dist/actions/package/compile/monolithCopyEntries.d.ts.map +1 -1
  113. package/dist/actions/package/compile/monolithReexport.d.ts +12 -4
  114. package/dist/actions/package/compile/monolithReexport.d.ts.map +1 -1
  115. package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
  116. package/dist/actions/recompile.d.ts +3 -1
  117. package/dist/actions/recompile.d.ts.map +1 -1
  118. package/dist/actions/skills/defaults.d.ts +14 -6
  119. package/dist/actions/skills/defaults.d.ts.map +1 -1
  120. package/dist/actions/skills/skillRules.d.ts +4 -2
  121. package/dist/actions/skills/skillRules.d.ts.map +1 -1
  122. package/dist/actions/tsc-validate/sharedValidate.d.ts +6 -2
  123. package/dist/actions/tsc-validate/sharedValidate.d.ts.map +1 -1
  124. package/dist/actions/tsc-validate/tscValidate.d.ts.map +1 -1
  125. package/dist/actions/work/github.d.ts +9 -3
  126. package/dist/actions/work/github.d.ts.map +1 -1
  127. package/dist/actions/work/helpers.d.ts +3 -1
  128. package/dist/actions/work/helpers.d.ts.map +1 -1
  129. package/dist/actions/work/index.d.ts +6 -2
  130. package/dist/actions/work/index.d.ts.map +1 -1
  131. package/dist/actions/work/list.d.ts +6 -2
  132. package/dist/actions/work/list.d.ts.map +1 -1
  133. package/dist/actions/work/move.d.ts +3 -1
  134. package/dist/actions/work/move.d.ts.map +1 -1
  135. package/dist/actions/work/store.d.ts +3 -1
  136. package/dist/actions/work/store.d.ts.map +1 -1
  137. package/dist/actions/work/sync.d.ts +15 -5
  138. package/dist/actions/work/sync.d.ts.map +1 -1
  139. package/dist/actions/work/workspace.d.ts +15 -5
  140. package/dist/actions/work/workspace.d.ts.map +1 -1
  141. package/dist/bin/package/build.mjs +269 -185
  142. package/dist/bin/package/build.mjs.map +1 -1
  143. package/dist/bin/package/clean.mjs +137 -96
  144. package/dist/bin/package/clean.mjs.map +1 -1
  145. package/dist/bin/package/compile.mjs +149 -100
  146. package/dist/bin/package/compile.mjs.map +1 -1
  147. package/dist/bin/package/copy-assets-cjs.mjs +16 -14
  148. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
  149. package/dist/bin/package/copy-assets-esm.mjs +16 -14
  150. package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
  151. package/dist/bin/package/fix.mjs +4 -3
  152. package/dist/bin/package/fix.mjs.map +1 -1
  153. package/dist/bin/package/lint-verbose.mjs +4 -3
  154. package/dist/bin/package/lint-verbose.mjs.map +1 -1
  155. package/dist/bin/package/lint.mjs +4 -3
  156. package/dist/bin/package/lint.mjs.map +1 -1
  157. package/dist/bin/package/publint.mjs +220 -165
  158. package/dist/bin/package/publint.mjs.map +1 -1
  159. package/dist/bin/package/recompile.mjs +173 -108
  160. package/dist/bin/package/recompile.mjs.map +1 -1
  161. package/dist/bin/package/relint.mjs +4 -3
  162. package/dist/bin/package/relint.mjs.map +1 -1
  163. package/dist/bin/package/sync-layout.mjs +97 -71
  164. package/dist/bin/package/sync-layout.mjs.map +1 -1
  165. package/dist/bin/run-or-exec.mjs +8 -4
  166. package/dist/bin/run-or-exec.mjs.map +1 -1
  167. package/dist/bin/skills.mjs +494 -222
  168. package/dist/bin/skills.mjs.map +1 -1
  169. package/dist/bin/xy.mjs +2029 -1992
  170. package/dist/bin/xy.mjs.map +1 -1
  171. package/dist/lib/copyAssetFiles.d.ts +3 -1
  172. package/dist/lib/copyAssetFiles.d.ts.map +1 -1
  173. package/dist/lib/licenseCheck/checkLicenses.d.ts +18 -6
  174. package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -1
  175. package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +9 -3
  176. package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -1
  177. package/dist/lib/licenseCheck/readPackageLicense.d.ts +6 -2
  178. package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -1
  179. package/dist/lib/loadConfig.d.ts.map +1 -1
  180. package/dist/lib/match.d.ts +6 -2
  181. package/dist/lib/match.d.ts.map +1 -1
  182. package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts +12 -4
  183. package/dist/lib/pnpmConfig/readMinReleaseAge.d.ts.map +1 -1
  184. package/dist/lib/safeExit.d.ts +3 -1
  185. package/dist/lib/safeExit.d.ts.map +1 -1
  186. package/dist/lib/updo/fetchRegistryInfo.d.ts.map +1 -1
  187. package/dist/lib/updo/interactiveSelect.d.ts +6 -2
  188. package/dist/lib/updo/interactiveSelect.d.ts.map +1 -1
  189. package/dist/lib/updo/interfaces.d.ts +15 -5
  190. package/dist/lib/updo/interfaces.d.ts.map +1 -1
  191. package/dist/lib/updo/resolveVersions.d.ts +15 -5
  192. package/dist/lib/updo/resolveVersions.d.ts.map +1 -1
  193. package/dist/lib/updo/runUpdo.d.ts +12 -4
  194. package/dist/lib/updo/runUpdo.d.ts.map +1 -1
  195. package/dist/pm/PackageManager.d.ts +45 -15
  196. package/dist/pm/PackageManager.d.ts.map +1 -1
  197. package/dist/xy/common/work/options.d.ts +3 -1
  198. package/dist/xy/common/work/options.d.ts.map +1 -1
  199. package/package.json +18 -18
@@ -1595,7 +1595,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1595
1595
  }
1596
1596
  }
1597
1597
  getRemainingTTL(t) {
1598
- return this.#f.has(t) ? Infinity : 0;
1598
+ return this.#f.has(t) ? 1 / 0 : 0;
1599
1599
  }
1600
1600
  #M() {
1601
1601
  let t = new Tt(this.#t), e = new Tt(this.#t);
@@ -1631,7 +1631,7 @@ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s)) retur
1631
1631
  let h = this.#f.get(o);
1632
1632
  if (h === void 0) return 0;
1633
1633
  let a = t[h], l = e[h];
1634
- if (!a || !l) return Infinity;
1634
+ if (!a || !l) return 1 / 0;
1635
1635
  return a - ((i || r()) - l);
1636
1636
  }, this.#v = (o) => {
1637
1637
  let h = e[o], a = t[o];
@@ -2419,14 +2419,14 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
2419
2419
  Ie$1 = yt | j | Lt;
2420
2420
  Fi = 1023;
2421
2421
  ie$1 = (n) => n.isFile() ? Ke$1 : n.isDirectory() ? U : n.isSymbolicLink() ? X$1 : n.isCharacterDevice() ? He$1 : n.isBlockDevice() ? qe$1 : n.isSocket() ? Ve$1 : n.isFIFO() ? Ge$1 : L$1;
2422
- ze$1 = new ft({ max: 2 ** 12 });
2422
+ ze$1 = new ft({ max: 4096 });
2423
2423
  bt = (n) => {
2424
2424
  let t = ze$1.get(n);
2425
2425
  if (t) return t;
2426
2426
  let e = n.normalize("NFKD");
2427
2427
  return ze$1.set(n, e), e;
2428
2428
  };
2429
- Be$1 = new ft({ max: 2 ** 12 });
2429
+ Be$1 = new ft({ max: 4096 });
2430
2430
  _t = (n) => {
2431
2431
  let t = Be$1.get(n);
2432
2432
  if (t) return t;
@@ -3476,7 +3476,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3476
3476
  includeChildMatches;
3477
3477
  constructor(t, e, s) {
3478
3478
  if (this.patterns = t, this.path = e, this.opts = s, this.#n = !s.posix && s.platform === "win32" ? "\\" : "/", this.includeChildMatches = s.includeChildMatches !== !1, (s.ignore || !this.includeChildMatches) && (this.#s = Li(s.ignore ?? [], s), !this.includeChildMatches && typeof this.#s.add != "function")) throw new Error("cannot ignore child matches, ignore lacks add() method.");
3479
- this.maxDepth = s.maxDepth || Infinity, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
3479
+ this.maxDepth = s.maxDepth || 1 / 0, s.signal && (this.signal = s.signal, this.signal.addEventListener("abort", () => {
3480
3480
  this.#t.length = 0;
3481
3481
  }));
3482
3482
  }
@@ -3513,7 +3513,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3513
3513
  return this.matchCheckTest(r, e);
3514
3514
  }
3515
3515
  matchCheckTest(t, e) {
3516
- return t && (this.maxDepth === Infinity || t.depth() <= this.maxDepth) && (!e || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#r(t) ? t : void 0;
3516
+ return t && (this.maxDepth === 1 / 0 || t.depth() <= this.maxDepth) && (!e || t.canReaddir()) && (!this.opts.nodir || !t.isDirectory()) && (!this.opts.nodir || !this.opts.follow || !t.isSymbolicLink() || !t.realpathCached()?.isDirectory()) && !this.#r(t) ? t : void 0;
3517
3517
  }
3518
3518
  matchCheckSync(t, e) {
3519
3519
  if (e && this.opts.nodir) return;
@@ -3570,7 +3570,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3570
3570
  };
3571
3571
  for (let [h, a, l] of s.matches.entries()) this.#r(h) || (r++, this.match(h, a, l).then(() => o()));
3572
3572
  for (let h of s.subwalkTargets()) {
3573
- if (this.maxDepth !== Infinity && h.depth() >= this.maxDepth) continue;
3573
+ if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
3574
3574
  r++;
3575
3575
  let a = h.readdirCached();
3576
3576
  h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), !0);
@@ -3601,7 +3601,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3601
3601
  };
3602
3602
  for (let [h, a, l] of s.matches.entries()) this.#r(h) || this.matchSync(h, a, l);
3603
3603
  for (let h of s.subwalkTargets()) {
3604
- if (this.maxDepth !== Infinity && h.depth() >= this.maxDepth) continue;
3604
+ if (this.maxDepth !== 1 / 0 && h.depth() >= this.maxDepth) continue;
3605
3605
  r++;
3606
3606
  let a = h.readdirSync();
3607
3607
  this.walkCB3Sync(h, a, s, o);
@@ -3693,7 +3693,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3693
3693
  patterns;
3694
3694
  constructor(t, e) {
3695
3695
  if (!e) throw new TypeError("glob options required");
3696
- if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : Infinity, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
3696
+ if (this.withFileTypes = !!e.withFileTypes, this.signal = e.signal, this.follow = !!e.follow, this.dot = !!e.dot, this.dotRelative = !!e.dotRelative, this.nodir = !!e.nodir, this.mark = !!e.mark, e.cwd ? (e.cwd instanceof URL || e.cwd.startsWith("file://")) && (e.cwd = fileURLToPath(e.cwd)) : this.cwd = "", this.cwd = e.cwd || "", this.root = e.root, this.magicalBraces = !!e.magicalBraces, this.nobrace = !!e.nobrace, this.noext = !!e.noext, this.realpath = !!e.realpath, this.absolute = e.absolute, this.includeChildMatches = e.includeChildMatches !== !1, this.noglobstar = !!e.noglobstar, this.matchBase = !!e.matchBase, this.maxDepth = typeof e.maxDepth == "number" ? e.maxDepth : 1 / 0, this.stat = !!e.stat, this.ignore = e.ignore, this.withFileTypes && this.absolute !== void 0) throw new Error("cannot set absolute and withFileTypes:true");
3697
3697
  if (typeof t == "string" && (t = [t]), this.windowsPathsNoEscape = !!e.windowsPathsNoEscape || e.allowWindowsEscape === !1, this.windowsPathsNoEscape && (t = t.map((a) => a.replace(/\\/g, "/"))), this.matchBase) {
3698
3698
  if (e.noglobstar) throw new TypeError("base matching requires globstar");
3699
3699
  t = t.map((a) => a.includes("/") ? a : `./**/${a}`);
@@ -3736,7 +3736,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3736
3736
  async walk() {
3737
3737
  return [...await new xt(this.patterns, this.scurry.cwd, {
3738
3738
  ...this.opts,
3739
- maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3739
+ maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
3740
3740
  platform: this.platform,
3741
3741
  nocase: this.nocase,
3742
3742
  includeChildMatches: this.includeChildMatches
@@ -3745,7 +3745,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3745
3745
  walkSync() {
3746
3746
  return [...new xt(this.patterns, this.scurry.cwd, {
3747
3747
  ...this.opts,
3748
- maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3748
+ maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
3749
3749
  platform: this.platform,
3750
3750
  nocase: this.nocase,
3751
3751
  includeChildMatches: this.includeChildMatches
@@ -3754,7 +3754,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3754
3754
  stream() {
3755
3755
  return new vt(this.patterns, this.scurry.cwd, {
3756
3756
  ...this.opts,
3757
- maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3757
+ maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
3758
3758
  platform: this.platform,
3759
3759
  nocase: this.nocase,
3760
3760
  includeChildMatches: this.includeChildMatches
@@ -3763,7 +3763,7 @@ while (this[Le$1](this[Ft]()) && this[C$1].length);
3763
3763
  streamSync() {
3764
3764
  return new vt(this.patterns, this.scurry.cwd, {
3765
3765
  ...this.opts,
3766
- maxDepth: this.maxDepth !== Infinity ? this.maxDepth + this.scurry.cwd.depth() : Infinity,
3766
+ maxDepth: this.maxDepth !== 1 / 0 ? this.maxDepth + this.scurry.cwd.depth() : 1 / 0,
3767
3767
  platform: this.platform,
3768
3768
  nocase: this.nocase,
3769
3769
  includeChildMatches: this.includeChildMatches
@@ -3959,8 +3959,10 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3959
3959
  if (ii === pathExt.length) return resolve(step(i + 1));
3960
3960
  const ext = pathExt[ii];
3961
3961
  isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
3962
- if (!er && is) if (opt.all) found.push(p + ext);
3963
- else return resolve(p + ext);
3962
+ if (!er && is) {
3963
+ if (opt.all) found.push(p + ext);
3964
+ else return resolve(p + ext);
3965
+ }
3964
3966
  return resolve(subStep(p, i, ii + 1));
3965
3967
  });
3966
3968
  });
@@ -3978,8 +3980,10 @@ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3978
3980
  for (let j = 0; j < pathExt.length; j++) {
3979
3981
  const cur = p + pathExt[j];
3980
3982
  try {
3981
- if (isexe.sync(cur, { pathExt: pathExtExe })) if (opt.all) found.push(cur);
3982
- else return cur;
3983
+ if (isexe.sync(cur, { pathExt: pathExtExe })) {
3984
+ if (opt.all) found.push(cur);
3985
+ else return cur;
3986
+ }
3983
3987
  } catch (ex) {}
3984
3988
  }
3985
3989
  }
@@ -5068,8 +5072,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5068
5072
  let pairHasKey = false;
5069
5073
  if (_toString.call(pair) !== "[object Object]") return false;
5070
5074
  let pairKey;
5071
- for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) if (!pairHasKey) pairHasKey = true;
5072
- else return false;
5075
+ for (pairKey in pair) if (_hasOwnProperty.call(pair, pairKey)) {
5076
+ if (!pairHasKey) pairHasKey = true;
5077
+ else return false;
5078
+ }
5073
5079
  if (!pairHasKey) return false;
5074
5080
  if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
5075
5081
  else return false;
@@ -5409,9 +5415,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5409
5415
  if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") keyNode = "[object Object]";
5410
5416
  keyNode = String(keyNode);
5411
5417
  if (_result === null) _result = {};
5412
- if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
5413
- else mergeMappings(state, _result, valueNode, overridableKeys);
5414
- else {
5418
+ if (keyTag === "tag:yaml.org,2002:merge") {
5419
+ if (Array.isArray(valueNode)) for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) mergeMappings(state, _result, valueNode[index], overridableKeys);
5420
+ else mergeMappings(state, _result, valueNode, overridableKeys);
5421
+ } else {
5415
5422
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
5416
5423
  state.line = startLine || state.line;
5417
5424
  state.lineStart = startLineStart || state.lineStart;
@@ -5696,14 +5703,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5696
5703
  state.result = "";
5697
5704
  while (ch !== 0) {
5698
5705
  ch = state.input.charCodeAt(++state.position);
5699
- if (ch === 43 || ch === 45) if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
5700
- else throwError(state, "repeat of a chomping mode identifier");
5701
- else if ((tmp = fromDecimalCode(ch)) >= 0) if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
5702
- else if (!detectedIndent) {
5703
- textIndent = nodeIndent + tmp - 1;
5704
- detectedIndent = true;
5705
- } else throwError(state, "repeat of an indentation width identifier");
5706
- else break;
5706
+ if (ch === 43 || ch === 45) {
5707
+ if (CHOMPING_CLIP === chomping) chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
5708
+ else throwError(state, "repeat of a chomping mode identifier");
5709
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
5710
+ if (tmp === 0) throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
5711
+ else if (!detectedIndent) {
5712
+ textIndent = nodeIndent + tmp - 1;
5713
+ detectedIndent = true;
5714
+ } else throwError(state, "repeat of an indentation width identifier");
5715
+ } else break;
5707
5716
  }
5708
5717
  if (isWhiteSpace(ch)) {
5709
5718
  do
@@ -5734,16 +5743,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5734
5743
  }
5735
5744
  break;
5736
5745
  }
5737
- if (folding) if (isWhiteSpace(ch)) {
5738
- atMoreIndented = true;
5739
- state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
5740
- } else if (atMoreIndented) {
5741
- atMoreIndented = false;
5742
- state.result += common.repeat("\n", emptyLines + 1);
5743
- } else if (emptyLines === 0) {
5744
- if (didReadContent) state.result += " ";
5745
- } else state.result += common.repeat("\n", emptyLines);
5746
- else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
5746
+ if (folding) {
5747
+ if (isWhiteSpace(ch)) {
5748
+ atMoreIndented = true;
5749
+ state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
5750
+ } else if (atMoreIndented) {
5751
+ atMoreIndented = false;
5752
+ state.result += common.repeat("\n", emptyLines + 1);
5753
+ } else if (emptyLines === 0) {
5754
+ if (didReadContent) state.result += " ";
5755
+ } else state.result += common.repeat("\n", emptyLines);
5756
+ } else state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
5747
5757
  didReadContent = true;
5748
5758
  detectedIndent = true;
5749
5759
  emptyLines = 0;
@@ -5872,8 +5882,10 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5872
5882
  _keyLineStart = state.lineStart;
5873
5883
  _keyPos = state.position;
5874
5884
  }
5875
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) if (atExplicitKey) keyNode = state.result;
5876
- else valueNode = state.result;
5885
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
5886
+ if (atExplicitKey) keyNode = state.result;
5887
+ else valueNode = state.result;
5888
+ }
5877
5889
  if (!atExplicitKey) {
5878
5890
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
5879
5891
  keyTag = keyNode = valueNode = null;
@@ -5921,12 +5933,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5921
5933
  } else throwError(state, "unexpected end of the stream within a verbatim tag");
5922
5934
  } else {
5923
5935
  while (ch !== 0 && !isWsOrEol(ch)) {
5924
- if (ch === 33) if (!isNamed) {
5925
- tagHandle = state.input.slice(_position - 1, state.position + 1);
5926
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
5927
- isNamed = true;
5928
- _position = state.position + 1;
5929
- } else throwError(state, "tag suffix cannot contain exclamation marks");
5936
+ if (ch === 33) {
5937
+ if (!isNamed) {
5938
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
5939
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, "named tag handle cannot contain such characters");
5940
+ isNamed = true;
5941
+ _position = state.position + 1;
5942
+ } else throwError(state, "tag suffix cannot contain exclamation marks");
5943
+ }
5930
5944
  ch = state.input.charCodeAt(++state.position);
5931
5945
  }
5932
5946
  tagName = state.input.slice(_position, state.position);
@@ -6030,21 +6044,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6030
6044
  if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) flowIndent = parentIndent;
6031
6045
  else flowIndent = parentIndent + 1;
6032
6046
  blockIndent = state.position - state.lineStart;
6033
- if (indentStatus === 1) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
6034
- else {
6035
- const ch = state.input.charCodeAt(state.position);
6036
- if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
6037
- else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
6038
- else if (readAlias(state)) {
6039
- hasContent = true;
6040
- if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
6041
- } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
6042
- hasContent = true;
6043
- if (state.tag === null) state.tag = "?";
6047
+ if (indentStatus === 1) {
6048
+ if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
6049
+ else {
6050
+ const ch = state.input.charCodeAt(state.position);
6051
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) hasContent = true;
6052
+ else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
6053
+ else if (readAlias(state)) {
6054
+ hasContent = true;
6055
+ if (state.tag !== null || state.anchor !== null) throwError(state, "alias node should not have any properties");
6056
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
6057
+ hasContent = true;
6058
+ if (state.tag === null) state.tag = "?";
6059
+ }
6060
+ if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
6044
6061
  }
6045
- if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
6046
- }
6047
- else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
6062
+ } else if (indentStatus === 0) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
6048
6063
  }
6049
6064
  if (state.tag === null) {
6050
6065
  if (state.anchor !== null) storeAnchor(state, state.anchor, state.result);
@@ -6550,8 +6565,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6550
6565
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
6551
6566
  if (!writeNode(state, level + 1, objectKey, true, true, true)) continue;
6552
6567
  const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
6553
- if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
6554
- else pairBuffer += "? ";
6568
+ if (explicitPair) {
6569
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += "?";
6570
+ else pairBuffer += "? ";
6571
+ }
6555
6572
  pairBuffer += state.dump;
6556
6573
  if (explicitPair) pairBuffer += generateNextLine(state, level);
6557
6574
  if (!writeNode(state, level + 1, objectValue, true, explicitPair)) continue;
@@ -6568,9 +6585,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6568
6585
  for (let index = 0, length = typeList.length; index < length; index += 1) {
6569
6586
  const type = typeList[index];
6570
6587
  if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
6571
- if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
6572
- else state.tag = type.tag;
6573
- else state.tag = "?";
6588
+ if (explicit) {
6589
+ if (type.multi && type.representName) state.tag = type.representName(object);
6590
+ else state.tag = type.tag;
6591
+ } else state.tag = "?";
6574
6592
  if (type.represent) {
6575
6593
  const style = state.styleMap[type.tag] || type.defaultStyle;
6576
6594
  let _result;
@@ -6602,22 +6620,24 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6602
6620
  if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = "*ref_" + duplicateIndex;
6603
6621
  else {
6604
6622
  if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
6605
- if (type === "[object Object]") if (block && Object.keys(state.dump).length !== 0) {
6606
- writeBlockMapping(state, level, state.dump, compact);
6607
- if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
6608
- } else {
6609
- writeFlowMapping(state, level, state.dump);
6610
- if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
6611
- }
6612
- else if (type === "[object Array]") if (block && state.dump.length !== 0) {
6613
- if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
6614
- else writeBlockSequence(state, level, state.dump, compact);
6615
- if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
6616
- } else {
6617
- writeFlowSequence(state, level, state.dump);
6618
- if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
6619
- }
6620
- else if (type === "[object String]") {
6623
+ if (type === "[object Object]") {
6624
+ if (block && Object.keys(state.dump).length !== 0) {
6625
+ writeBlockMapping(state, level, state.dump, compact);
6626
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
6627
+ } else {
6628
+ writeFlowMapping(state, level, state.dump);
6629
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
6630
+ }
6631
+ } else if (type === "[object Array]") {
6632
+ if (block && state.dump.length !== 0) {
6633
+ if (state.noArrayIndent && !isblockseq && level > 0) writeBlockSequence(state, level - 1, state.dump, compact);
6634
+ else writeBlockSequence(state, level, state.dump, compact);
6635
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + state.dump;
6636
+ } else {
6637
+ writeFlowSequence(state, level, state.dump);
6638
+ if (duplicate) state.dump = "&ref_" + duplicateIndex + " " + state.dump;
6639
+ }
6640
+ } else if (type === "[object String]") {
6621
6641
  if (state.tag !== "?") writeScalar(state, state.dump, level, iskey, inblock);
6622
6642
  } else if (type === "[object Undefined]") return false;
6623
6643
  else {
@@ -7727,12 +7747,16 @@ function deprecatedRuleConfigAliases(configKey) {
7727
7747
  var import_dist = require_dist();
7728
7748
  const configState = {
7729
7749
  config: void 0,
7730
- /** In-flight root load so concurrent callers share one cosmiconfig search. */
7750
+ /**
7751
+ In-flight root load so concurrent callers share one cosmiconfig search.
7752
+ */
7731
7753
  loadPromise: void 0,
7732
7754
  rootConfigPath: void 0
7733
7755
  };
7734
7756
  const workspaceConfigCache = /* @__PURE__ */ new Map();
7735
- /** In-flight workspace loads — concurrent jobs for the same dir share one search. */
7757
+ /**
7758
+ In-flight workspace loads — concurrent jobs for the same dir share one search.
7759
+ */
7736
7760
  const workspaceConfigLoadPromises = /* @__PURE__ */ new Map();
7737
7761
  const deprecationWarned = /* @__PURE__ */ new Set();
7738
7762
  function isRecord(value) {
@@ -7800,7 +7824,9 @@ async function loadWorkspaceConfig(workspaceDir) {
7800
7824
  workspaceConfigLoadPromises.delete(workspaceDir);
7801
7825
  }
7802
7826
  }
7803
- /** Deprecated top-level fields that should be under `commands`. */
7827
+ /**
7828
+ Deprecated top-level fields that should be under `commands`.
7829
+ */
7804
7830
  const DEPRECATED_COMMAND_FIELDS = /* @__PURE__ */ new Set(["deplint", "publint"]);
7805
7831
  function warnOnce(key, message) {
7806
7832
  if (deprecationWarned.has(key)) return;
@@ -9335,9 +9361,10 @@ var Minimatch = class {
9335
9361
  const next = pp[i + 1];
9336
9362
  const prev = pp[i - 1];
9337
9363
  if (p !== GLOBSTAR || prev === GLOBSTAR) return;
9338
- if (prev === void 0) if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
9339
- else pp[i] = twoStar;
9340
- else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
9364
+ if (prev === void 0) {
9365
+ if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
9366
+ else pp[i] = twoStar;
9367
+ } else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
9341
9368
  else if (next !== GLOBSTAR) {
9342
9369
  pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
9343
9370
  pp[i + 1] = GLOBSTAR;
@@ -9411,7 +9438,9 @@ function makeMatcher(pattern, options = {}) {
9411
9438
  const patterns = Array.isArray(pattern) ? pattern : [pattern];
9412
9439
  return (input) => patterns.some((p) => minimatch(input, p, options));
9413
9440
  }
9414
- /** Convenience one-shot test: `isMatch(input, pattern)`. */
9441
+ /**
9442
+ Convenience one-shot test: `isMatch(input, pattern)`.
9443
+ */
9415
9444
  function isMatch(input, pattern, options = {}) {
9416
9445
  return makeMatcher(pattern, options)(input);
9417
9446
  }
@@ -9526,7 +9555,9 @@ const gitCleanGitignoreBackend = {
9526
9555
  return paths;
9527
9556
  }
9528
9557
  };
9529
- /** Batch-check which absolute paths are gitignored. */
9558
+ /**
9559
+ Batch-check which absolute paths are gitignored.
9560
+ */
9530
9561
  function filterGitIgnoredPaths(rootDir, absPaths, backend = gitCleanGitignoreBackend) {
9531
9562
  const ignored = [];
9532
9563
  const notIgnored = [];
@@ -9606,7 +9637,9 @@ function parseCleanRuleLevel(location, setting, defaultLevel) {
9606
9637
  if (typeof setting === "object" && setting !== null && !Array.isArray(setting)) return levelFromObject(location, setting, defaultLevel);
9607
9638
  throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
9608
9639
  }
9609
- /** Hard safety rules — always enforced; cannot be disabled via config. */
9640
+ /**
9641
+ Hard safety rules — always enforced; cannot be disabled via config.
9642
+ */
9610
9643
  const CLEAN_HARD_RULES = [{
9611
9644
  description: "Patterns must resolve strictly inside the monorepo root (never the root itself or outside it)",
9612
9645
  id: "clean.inside-root"
@@ -9628,7 +9661,9 @@ const CLEAN_CONFIGURABLE_RULES = [{
9628
9661
  }];
9629
9662
  const CONFIGURABLE_RULE_IDS = new Set(CLEAN_CONFIGURABLE_RULES.map((rule) => rule.id));
9630
9663
  const HARD_RULE_IDS = new Set(CLEAN_HARD_RULES.map((rule) => rule.id));
9631
- /** Immutable exclude entries — always skipped by clean, cannot be overridden. */
9664
+ /**
9665
+ Immutable exclude entries — always skipped by clean, cannot be overridden.
9666
+ */
9632
9667
  const CLEAN_IMMUTABLE_EXCLUDE = [
9633
9668
  ".git",
9634
9669
  "**/.git",
@@ -9667,7 +9702,9 @@ function resolveCleanRules(config) {
9667
9702
  gitignoredOnly: level("clean.gitignored-only", rules["clean.gitignored-only"])
9668
9703
  };
9669
9704
  }
9670
- /** Merge exclude patterns (deduped, order preserved). */
9705
+ /**
9706
+ Merge exclude patterns (deduped, order preserved).
9707
+ */
9671
9708
  function resolveCleanExclude(config, mode = "normal") {
9672
9709
  if (mode === "immutable-only") return [...CLEAN_IMMUTABLE_EXCLUDE];
9673
9710
  const merged = [
@@ -9690,7 +9727,9 @@ function resolveCleanPatterns(config) {
9690
9727
  //#endregion
9691
9728
  //#region src/actions/package/cleanPlan.ts
9692
9729
  init_index_min();
9693
- /** Built-in clean targets — always cleaned (bypass gitignored-only). */
9730
+ /**
9731
+ Built-in clean targets — always cleaned (bypass gitignored-only).
9732
+ */
9694
9733
  const BUILTIN_CLEAN_PATTERNS = ["dist", "build"];
9695
9734
  function excludeModeForFull(fullMode) {
9696
9735
  return fullMode === "full-all" ? "immutable-only" : "normal";
@@ -9870,7 +9909,9 @@ const packageCleanOutputs = async (options = {}) => {
9870
9909
  };
9871
9910
  //#endregion
9872
9911
  //#region src/actions/package/clean-typescript.ts
9873
- /** Cleans TypeScript build info and local lint caches for a package. */
9912
+ /**
9913
+ Cleans TypeScript build info and local lint caches for a package.
9914
+ */
9874
9915
  const packageCleanTypescript = (options = {}) => {
9875
9916
  const pkg = options.pkg ?? INIT_CWD();
9876
9917
  const pkgName = options.pkgName ?? packageName();
@@ -11504,11 +11545,15 @@ function normalizeReexportTargets(value) {
11504
11545
  if (value === void 0) return [];
11505
11546
  return Array.isArray(value) ? value : [value];
11506
11547
  }
11507
- /** Package-like specifier: not a hash alias and not a relative/absolute path. */
11548
+ /**
11549
+ Package-like specifier: not a hash alias and not a relative/absolute path.
11550
+ */
11508
11551
  function isPackageLikeSpecifier(spec) {
11509
11552
  return !spec.startsWith("#") && !spec.startsWith(".") && !spec.startsWith("/");
11510
11553
  }
11511
- /** Configured `reexport` targets for a module, if any. */
11554
+ /**
11555
+ Configured `reexport` targets for a module, if any.
11556
+ */
11512
11557
  function moduleReexportTargets(mod) {
11513
11558
  return normalizeReexportTargets(mod.reexport);
11514
11559
  }
@@ -11537,7 +11582,9 @@ function moduleShimTargets(mod) {
11537
11582
  if (fromReexport.length > 0) return fromReexport;
11538
11583
  return [`#${mod.name}`];
11539
11584
  }
11540
- /** Builds a pure star-reexport TypeScript (or mjs) source body (no header). */
11585
+ /**
11586
+ Builds a pure star-reexport TypeScript (or mjs) source body (no header).
11587
+ */
11541
11588
  function buildStarReexportLines(targets, options = {}) {
11542
11589
  const semi = options.semi === false ? "" : ";";
11543
11590
  return `${targets.map((target) => `export * from '${target}'${semi}`).join("\n")}\n`;
@@ -11755,7 +11802,9 @@ function buildAliasDistPaths(aliasImports = {}) {
11755
11802
  for (const [alias, srcPath] of Object.entries(aliasImports)) result[alias] = srcPathToDistPath(srcPath);
11756
11803
  return result;
11757
11804
  }
11758
- /** Resolves a `#hash` import specifier to its dist path for a platform. */
11805
+ /**
11806
+ Resolves a `#hash` import specifier to its dist path for a platform.
11807
+ */
11759
11808
  function hashToDistPath(spec, platform, config) {
11760
11809
  const conditional = buildConditionalDistPaths(config.conditionalImports)[spec];
11761
11810
  if (conditional?.[platform] !== void 0) return conditional[platform];
@@ -11841,7 +11890,9 @@ function buildModelTs(modules) {
11841
11890
  function buildModuleShim(mod) {
11842
11891
  return `${GENERATED_HEADER}${buildStarReexportLines(moduleShimTargets(mod), { semi: false })}`;
11843
11892
  }
11844
- /** Generated module body for facade modules with `reexport` targets. */
11893
+ /**
11894
+ Generated module body for facade modules with `reexport` targets.
11895
+ */
11845
11896
  function buildModuleReexportIndex(mod) {
11846
11897
  return `${GENERATED_HEADER}${buildStarReexportLines(moduleReexportTargets(mod), { semi: false })}`;
11847
11898
  }
@@ -11867,7 +11918,9 @@ function listDistPlatforms(config) {
11867
11918
  ...fromEntries
11868
11919
  ])];
11869
11920
  }
11870
- /** True when the package publishes a type-only model barrel (`src/model.ts`). */
11921
+ /**
11922
+ True when the package publishes a type-only model barrel (`src/model.ts`).
11923
+ */
11871
11924
  function monolithHasModelBarrel(config) {
11872
11925
  return config.modules.some((mod) => mod.model ?? false);
11873
11926
  }
@@ -11991,7 +12044,9 @@ function rewriteDtsFile(file, platform, platformDir, config) {
11991
12044
  }
11992
12045
  return false;
11993
12046
  }
11994
- /** Returns the number of declaration files rewritten. */
12047
+ /**
12048
+ Returns the number of declaration files rewritten.
12049
+ */
11995
12050
  function fixMonolithDeclarations(distDir, config) {
11996
12051
  const platforms = listDistPlatforms(config).filter((platform) => fs.existsSync(PATH.join(distDir, platform)));
11997
12052
  const platformShimDirs = buildPlatformShimDirs(config.platformEntries);
@@ -12093,7 +12148,9 @@ function modulesPlatformEntries(mod, config, isExternal, modulesPlatform) {
12093
12148
  };
12094
12149
  return shims;
12095
12150
  }
12096
- /** Master barrel entry for a platform (`index.entries` override or `./index.ts`). */
12151
+ /**
12152
+ Master barrel entry for a platform (`index.entries` override or `./index.ts`).
12153
+ */
12097
12154
  function masterBarrelEntry(config, platform) {
12098
12155
  return config.index?.entries?.[platform] ?? "./index.ts";
12099
12156
  }
@@ -12156,7 +12213,9 @@ function isPathInside(parent, candidate) {
12156
12213
  const relative = PATH.relative(parent, candidate);
12157
12214
  return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
12158
12215
  }
12159
- /** Resolves configured copy destinations without requiring their sources to exist. */
12216
+ /**
12217
+ Resolves configured copy destinations without requiring their sources to exist.
12218
+ */
12160
12219
  function listMonolithCopyEntries(packageDir, config) {
12161
12220
  const distDir = PATH.resolve(packageDir, "dist");
12162
12221
  const entries = [];
@@ -12194,7 +12253,9 @@ function resolveCopySource(packageDir, source) {
12194
12253
  if (!fs.existsSync(resolved) || !fs.statSync(resolved).isFile()) throw new Error(`Monolith copy entry source is not a file: "${source}" (${resolved})`);
12195
12254
  return resolved;
12196
12255
  }
12197
- /** Copies configured opaque entries into their exact dist destinations. */
12256
+ /**
12257
+ Copies configured opaque entries into their exact dist destinations.
12258
+ */
12198
12259
  function copyMonolithEntries(packageDir, config) {
12199
12260
  const entries = listMonolithCopyEntries(packageDir, config);
12200
12261
  for (const entry of entries) {
@@ -12218,7 +12279,9 @@ function assertNoManualEntries(compile) {
12218
12279
  for (const options of Object.values(target)) if (options?.entry !== void 0) throw new Error(`monolith mode computes entries; remove compile.${platform} entry`);
12219
12280
  }
12220
12281
  }
12221
- /** Merges computed entries into a platform target, preserving other options. */
12282
+ /**
12283
+ Merges computed entries into a platform target, preserving other options.
12284
+ */
12222
12285
  function platformTarget(existing, entry, isExternalLinkage) {
12223
12286
  const base = typeof existing === "object" && existing !== null ? existing : {};
12224
12287
  const src = typeof base.src === "object" && base.src !== null ? base.src : {};
@@ -12253,7 +12316,9 @@ function resolveMonolithCompile(config, mode) {
12253
12316
  shouldRunFullValidation: !(mode.emitOnly ?? false) && (compile.validate ?? true)
12254
12317
  };
12255
12318
  }
12256
- /** Builds the library-mode config carrying the computed monolith entries. */
12319
+ /**
12320
+ Builds the library-mode config carrying the computed monolith entries.
12321
+ */
12257
12322
  function deriveEsbuildConfig(config, compile, monolith) {
12258
12323
  const entries = buildMonolithEntries(monolith);
12259
12324
  const isExternalLinkage = (monolith.moduleLinkage ?? "bundle") === "external";