@ariestools/toolchain 8.7.16 → 8.7.18

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 (897) hide show
  1. package/dist/actions/clean.d.ts +7 -3
  2. package/dist/actions/clean.d.ts.map +1 -1
  3. package/dist/actions/cleanRuleCatalog.d.ts +11 -0
  4. package/dist/actions/cleanRuleCatalog.d.ts.map +1 -0
  5. package/dist/actions/package/clean-outputs.d.ts +25 -1
  6. package/dist/actions/package/clean-outputs.d.ts.map +1 -1
  7. package/dist/actions/package/clean-typescript.d.ts +1 -0
  8. package/dist/actions/package/clean-typescript.d.ts.map +1 -1
  9. package/dist/actions/package/clean.d.ts +1 -1
  10. package/dist/actions/package/clean.d.ts.map +1 -1
  11. package/dist/actions/package/cleanGitignore.d.ts +25 -0
  12. package/dist/actions/package/cleanGitignore.d.ts.map +1 -0
  13. package/dist/actions/package/cleanPatterns.d.ts +18 -0
  14. package/dist/actions/package/cleanPatterns.d.ts.map +1 -0
  15. package/dist/actions/package/cleanPlan.d.ts +60 -0
  16. package/dist/actions/package/cleanPlan.d.ts.map +1 -0
  17. package/dist/actions/package/cleanRules.d.ts +50 -0
  18. package/dist/actions/package/cleanRules.d.ts.map +1 -0
  19. package/dist/actions/package/compile/CleanConfig.d.ts +61 -0
  20. package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -0
  21. package/dist/actions/package/compile/XyConfig.d.ts +11 -37
  22. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
  23. package/dist/actions/package/compile/index.d.ts +1 -0
  24. package/dist/actions/package/compile/index.d.ts.map +1 -1
  25. package/dist/actions/package/index.d.ts +4 -0
  26. package/dist/actions/package/index.d.ts.map +1 -1
  27. package/dist/actions/ruleCatalog.d.ts +3 -22
  28. package/dist/actions/ruleCatalog.d.ts.map +1 -1
  29. package/dist/actions/ruleCatalogRender.d.ts +25 -0
  30. package/dist/actions/ruleCatalogRender.d.ts.map +1 -0
  31. package/dist/bin/package/build.mjs +11 -5
  32. package/dist/bin/package/build.mjs.map +1 -1
  33. package/dist/bin/package/clean.mjs +7571 -47
  34. package/dist/bin/package/clean.mjs.map +1 -1
  35. package/dist/bin/package/compile.mjs +3 -3
  36. package/dist/bin/package/compile.mjs.map +1 -1
  37. package/dist/bin/package/publint.mjs +8 -2
  38. package/dist/bin/package/publint.mjs.map +1 -1
  39. package/dist/bin/package/recompile.mjs +621 -18
  40. package/dist/bin/package/recompile.mjs.map +1 -1
  41. package/dist/bin/package/sync-layout.mjs.map +1 -1
  42. package/dist/bin/xy.mjs +675 -206
  43. package/dist/bin/xy.mjs.map +1 -1
  44. package/dist/lib/ruleCommandRegistry.d.ts +6 -0
  45. package/dist/lib/ruleCommandRegistry.d.ts.map +1 -1
  46. package/dist/xy/install/cleanCommand.d.ts.map +1 -1
  47. package/package.json +4 -5
  48. package/dist/actions/claude-check.d.ts +0 -2
  49. package/dist/actions/claude-check.d.ts.map +0 -1
  50. package/dist/actions/claude-clean.d.ts +0 -2
  51. package/dist/actions/claude-clean.d.ts.map +0 -1
  52. package/dist/actions/claude-commands.d.ts +0 -2
  53. package/dist/actions/claude-commands.d.ts.map +0 -1
  54. package/dist/actions/claude-rules.d.ts +0 -4
  55. package/dist/actions/claude-rules.d.ts.map +0 -1
  56. package/dist/actions/claude-settings.d.ts +0 -5
  57. package/dist/actions/claude-settings.d.ts.map +0 -1
  58. package/dist/actions/claude-skills.d.ts +0 -2
  59. package/dist/actions/claude-skills.d.ts.map +0 -1
  60. package/dist/actions/deplint/getInternalSurfaceVouchedPeers.d.ts +0 -13
  61. package/dist/actions/deplint/getInternalSurfaceVouchedPeers.d.ts.map +0 -1
  62. package/dist/actions/package/compile/copyTypeFiles.d.ts +0 -2
  63. package/dist/actions/package/compile/copyTypeFiles.d.ts.map +0 -1
  64. package/dist/actions/skills/remove.d.ts +0 -9
  65. package/dist/actions/skills/remove.d.ts.map +0 -1
  66. package/dist/lib/claudeMdTemplate.d.ts +0 -12
  67. package/dist/lib/claudeMdTemplate.d.ts.map +0 -1
  68. package/dist/lib/parsedPackageJSON.d.ts +0 -2
  69. package/dist/lib/parsedPackageJSON.d.ts.map +0 -1
  70. package/dist/lib/runInstall.d.ts +0 -2
  71. package/dist/lib/runInstall.d.ts.map +0 -1
  72. package/dist/lib/yarn/yarnInitCwd.d.ts +0 -2
  73. package/dist/lib/yarn/yarnInitCwd.d.ts.map +0 -1
  74. package/dist/node/actions/analyze.d.ts +0 -2
  75. package/dist/node/actions/analyze.d.ts.map +0 -1
  76. package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts +0 -28
  77. package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts.map +0 -1
  78. package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts +0 -11
  79. package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts.map +0 -1
  80. package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts +0 -19
  81. package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts.map +0 -1
  82. package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts +0 -7
  83. package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts.map +0 -1
  84. package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts +0 -21
  85. package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts.map +0 -1
  86. package/dist/node/actions/api-exposure/analyzer/program.d.ts +0 -21
  87. package/dist/node/actions/api-exposure/analyzer/program.d.ts.map +0 -1
  88. package/dist/node/actions/api-exposure/apiExposure.d.ts +0 -17
  89. package/dist/node/actions/api-exposure/apiExposure.d.ts.map +0 -1
  90. package/dist/node/actions/api-exposure/config.d.ts +0 -21
  91. package/dist/node/actions/api-exposure/config.d.ts.map +0 -1
  92. package/dist/node/actions/api-exposure/index.d.ts +0 -9
  93. package/dist/node/actions/api-exposure/index.d.ts.map +0 -1
  94. package/dist/node/actions/api-exposure/reporters.d.ts +0 -16
  95. package/dist/node/actions/api-exposure/reporters.d.ts.map +0 -1
  96. package/dist/node/actions/api-exposure/rules.d.ts +0 -10
  97. package/dist/node/actions/api-exposure/rules.d.ts.map +0 -1
  98. package/dist/node/actions/api-exposure/scoring.d.ts +0 -28
  99. package/dist/node/actions/api-exposure/scoring.d.ts.map +0 -1
  100. package/dist/node/actions/api-exposure/types.d.ts +0 -86
  101. package/dist/node/actions/api-exposure/types.d.ts.map +0 -1
  102. package/dist/node/actions/barrel/analyzeBarrel.d.ts +0 -22
  103. package/dist/node/actions/barrel/analyzeBarrel.d.ts.map +0 -1
  104. package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts +0 -12
  105. package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts.map +0 -1
  106. package/dist/node/actions/barrel/getReExportSpecs.d.ts +0 -11
  107. package/dist/node/actions/barrel/getReExportSpecs.d.ts.map +0 -1
  108. package/dist/node/actions/barrel/index.d.ts +0 -6
  109. package/dist/node/actions/barrel/index.d.ts.map +0 -1
  110. package/dist/node/actions/barrel/resolveBarrel.d.ts +0 -9
  111. package/dist/node/actions/barrel/resolveBarrel.d.ts.map +0 -1
  112. package/dist/node/actions/barrel/restrictionHelpers.d.ts +0 -30
  113. package/dist/node/actions/barrel/restrictionHelpers.d.ts.map +0 -1
  114. package/dist/node/actions/build.d.ts +0 -9
  115. package/dist/node/actions/build.d.ts.map +0 -1
  116. package/dist/node/actions/clean-eslint.d.ts +0 -3
  117. package/dist/node/actions/clean-eslint.d.ts.map +0 -1
  118. package/dist/node/actions/clean.d.ts +0 -14
  119. package/dist/node/actions/clean.d.ts.map +0 -1
  120. package/dist/node/actions/compile.d.ts +0 -45
  121. package/dist/node/actions/compile.d.ts.map +0 -1
  122. package/dist/node/actions/copy-assets.d.ts +0 -6
  123. package/dist/node/actions/copy-assets.d.ts.map +0 -1
  124. package/dist/node/actions/dead/analyzePackage.d.ts +0 -43
  125. package/dist/node/actions/dead/analyzePackage.d.ts.map +0 -1
  126. package/dist/node/actions/dead/classifyPackageVisibility.d.ts +0 -4
  127. package/dist/node/actions/dead/classifyPackageVisibility.d.ts.map +0 -1
  128. package/dist/node/actions/dead/collectExternalUsage.d.ts +0 -38
  129. package/dist/node/actions/dead/collectExternalUsage.d.ts.map +0 -1
  130. package/dist/node/actions/dead/collectSymbols.d.ts +0 -40
  131. package/dist/node/actions/dead/collectSymbols.d.ts.map +0 -1
  132. package/dist/node/actions/dead/dead.d.ts +0 -4
  133. package/dist/node/actions/dead/dead.d.ts.map +0 -1
  134. package/dist/node/actions/dead/deprecation.d.ts +0 -3
  135. package/dist/node/actions/dead/deprecation.d.ts.map +0 -1
  136. package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts +0 -7
  137. package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts.map +0 -1
  138. package/dist/node/actions/dead/evaluateRules.d.ts +0 -8
  139. package/dist/node/actions/dead/evaluateRules.d.ts.map +0 -1
  140. package/dist/node/actions/dead/findWorkspaceFile.d.ts +0 -13
  141. package/dist/node/actions/dead/findWorkspaceFile.d.ts.map +0 -1
  142. package/dist/node/actions/dead/fixDeadCode.d.ts +0 -12
  143. package/dist/node/actions/dead/fixDeadCode.d.ts.map +0 -1
  144. package/dist/node/actions/dead/index.d.ts +0 -10
  145. package/dist/node/actions/dead/index.d.ts.map +0 -1
  146. package/dist/node/actions/dead/parseCodeWorkspace.d.ts +0 -7
  147. package/dist/node/actions/dead/parseCodeWorkspace.d.ts.map +0 -1
  148. package/dist/node/actions/dead/propagateExternalUsage.d.ts +0 -4
  149. package/dist/node/actions/dead/propagateExternalUsage.d.ts.map +0 -1
  150. package/dist/node/actions/dead/pruneDeadFiles.d.ts +0 -7
  151. package/dist/node/actions/dead/pruneDeadFiles.d.ts.map +0 -1
  152. package/dist/node/actions/dead/reporters.d.ts +0 -6
  153. package/dist/node/actions/dead/reporters.d.ts.map +0 -1
  154. package/dist/node/actions/dead/ruleConfig.d.ts +0 -5
  155. package/dist/node/actions/dead/ruleConfig.d.ts.map +0 -1
  156. package/dist/node/actions/dead/ruleNames.d.ts +0 -4
  157. package/dist/node/actions/dead/ruleNames.d.ts.map +0 -1
  158. package/dist/node/actions/dead/rules.d.ts +0 -7
  159. package/dist/node/actions/dead/rules.d.ts.map +0 -1
  160. package/dist/node/actions/dead/runDeadAnalysis.d.ts +0 -25
  161. package/dist/node/actions/dead/runDeadAnalysis.d.ts.map +0 -1
  162. package/dist/node/actions/dead/runtimeEntries.d.ts +0 -23
  163. package/dist/node/actions/dead/runtimeEntries.d.ts.map +0 -1
  164. package/dist/node/actions/dead/sourceEdits.d.ts +0 -7
  165. package/dist/node/actions/dead/sourceEdits.d.ts.map +0 -1
  166. package/dist/node/actions/dead/storybookConventions.d.ts +0 -6
  167. package/dist/node/actions/dead/storybookConventions.d.ts.map +0 -1
  168. package/dist/node/actions/dead/types.d.ts +0 -68
  169. package/dist/node/actions/dead/types.d.ts.map +0 -1
  170. package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts +0 -17
  171. package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts.map +0 -1
  172. package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts +0 -19
  173. package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts.map +0 -1
  174. package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts +0 -11
  175. package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts.map +0 -1
  176. package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts +0 -21
  177. package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts.map +0 -1
  178. package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts +0 -6
  179. package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts.map +0 -1
  180. package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts +0 -24
  181. package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts.map +0 -1
  182. package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +0 -74
  183. package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +0 -1
  184. package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts +0 -12
  185. package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts.map +0 -1
  186. package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts +0 -7
  187. package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts.map +0 -1
  188. package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts +0 -6
  189. package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts.map +0 -1
  190. package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts +0 -21
  191. package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts.map +0 -1
  192. package/dist/node/actions/deplint/checkPackage/index.d.ts +0 -13
  193. package/dist/node/actions/deplint/checkPackage/index.d.ts.map +0 -1
  194. package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts +0 -13
  195. package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts.map +0 -1
  196. package/dist/node/actions/deplint/deplint.d.ts +0 -20
  197. package/dist/node/actions/deplint/deplint.d.ts.map +0 -1
  198. package/dist/node/actions/deplint/engine.d.ts +0 -15
  199. package/dist/node/actions/deplint/engine.d.ts.map +0 -1
  200. package/dist/node/actions/deplint/fetchPackageManifest.d.ts +0 -25
  201. package/dist/node/actions/deplint/fetchPackageManifest.d.ts.map +0 -1
  202. package/dist/node/actions/deplint/findFiles.d.ts +0 -6
  203. package/dist/node/actions/deplint/findFiles.d.ts.map +0 -1
  204. package/dist/node/actions/deplint/findFilesByGlob.d.ts +0 -2
  205. package/dist/node/actions/deplint/findFilesByGlob.d.ts.map +0 -1
  206. package/dist/node/actions/deplint/fixer.d.ts +0 -3
  207. package/dist/node/actions/deplint/fixer.d.ts.map +0 -1
  208. package/dist/node/actions/deplint/getBasePackageName.d.ts +0 -2
  209. package/dist/node/actions/deplint/getBasePackageName.d.ts.map +0 -1
  210. package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts +0 -12
  211. package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts.map +0 -1
  212. package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts +0 -9
  213. package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts.map +0 -1
  214. package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts +0 -10
  215. package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts.map +0 -1
  216. package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts +0 -12
  217. package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts.map +0 -1
  218. package/dist/node/actions/deplint/getImportsFromFile.d.ts +0 -4
  219. package/dist/node/actions/deplint/getImportsFromFile.d.ts.map +0 -1
  220. package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts +0 -10
  221. package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts.map +0 -1
  222. package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts +0 -8
  223. package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts.map +0 -1
  224. package/dist/node/actions/deplint/getStorybookConfigImports.d.ts +0 -3
  225. package/dist/node/actions/deplint/getStorybookConfigImports.d.ts.map +0 -1
  226. package/dist/node/actions/deplint/implicitDevDependencies.d.ts +0 -15
  227. package/dist/node/actions/deplint/implicitDevDependencies.d.ts.map +0 -1
  228. package/dist/node/actions/deplint/index.d.ts +0 -11
  229. package/dist/node/actions/deplint/index.d.ts.map +0 -1
  230. package/dist/node/actions/deplint/isTerminalPackage.d.ts +0 -25
  231. package/dist/node/actions/deplint/isTerminalPackage.d.ts.map +0 -1
  232. package/dist/node/actions/deplint/loader.d.ts +0 -4
  233. package/dist/node/actions/deplint/loader.d.ts.map +0 -1
  234. package/dist/node/actions/deplint/packageEditor.d.ts +0 -11
  235. package/dist/node/actions/deplint/packageEditor.d.ts.map +0 -1
  236. package/dist/node/actions/deplint/packageJsonEditor.d.ts +0 -97
  237. package/dist/node/actions/deplint/packageJsonEditor.d.ts.map +0 -1
  238. package/dist/node/actions/deplint/peerRangeOptions.d.ts +0 -10
  239. package/dist/node/actions/deplint/peerRangeOptions.d.ts.map +0 -1
  240. package/dist/node/actions/deplint/reporters.d.ts +0 -8
  241. package/dist/node/actions/deplint/reporters.d.ts.map +0 -1
  242. package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts +0 -24
  243. package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts.map +0 -1
  244. package/dist/node/actions/deplint/ruleConfig.d.ts +0 -5
  245. package/dist/node/actions/deplint/ruleConfig.d.ts.map +0 -1
  246. package/dist/node/actions/deplint/rules.d.ts +0 -4
  247. package/dist/node/actions/deplint/rules.d.ts.map +0 -1
  248. package/dist/node/actions/deplint/rulesDiagnostic.d.ts +0 -4
  249. package/dist/node/actions/deplint/rulesDiagnostic.d.ts.map +0 -1
  250. package/dist/node/actions/deplint/rulesMisplaced.d.ts +0 -4
  251. package/dist/node/actions/deplint/rulesMisplaced.d.ts.map +0 -1
  252. package/dist/node/actions/deplint/snapshot.d.ts +0 -22
  253. package/dist/node/actions/deplint/snapshot.d.ts.map +0 -1
  254. package/dist/node/actions/deplint/tsScriptsAliases.d.ts +0 -11
  255. package/dist/node/actions/deplint/tsScriptsAliases.d.ts.map +0 -1
  256. package/dist/node/actions/deplint/types.d.ts +0 -295
  257. package/dist/node/actions/deplint/types.d.ts.map +0 -1
  258. package/dist/node/actions/deplint/versionMismatchFixes.d.ts +0 -4
  259. package/dist/node/actions/deplint/versionMismatchFixes.d.ts.map +0 -1
  260. package/dist/node/actions/deploy.d.ts +0 -3
  261. package/dist/node/actions/deploy.d.ts.map +0 -1
  262. package/dist/node/actions/eject.d.ts +0 -2
  263. package/dist/node/actions/eject.d.ts.map +0 -1
  264. package/dist/node/actions/fix.d.ts +0 -7
  265. package/dist/node/actions/fix.d.ts.map +0 -1
  266. package/dist/node/actions/gitignore.d.ts +0 -4
  267. package/dist/node/actions/gitignore.d.ts.map +0 -1
  268. package/dist/node/actions/gitlint-fix.d.ts +0 -2
  269. package/dist/node/actions/gitlint-fix.d.ts.map +0 -1
  270. package/dist/node/actions/gitlint.d.ts +0 -2
  271. package/dist/node/actions/gitlint.d.ts.map +0 -1
  272. package/dist/node/actions/incremental.d.ts +0 -46
  273. package/dist/node/actions/incremental.d.ts.map +0 -1
  274. package/dist/node/actions/index.d.ts +0 -54
  275. package/dist/node/actions/index.d.ts.map +0 -1
  276. package/dist/node/actions/install.d.ts +0 -2
  277. package/dist/node/actions/install.d.ts.map +0 -1
  278. package/dist/node/actions/license.d.ts +0 -2
  279. package/dist/node/actions/license.d.ts.map +0 -1
  280. package/dist/node/actions/lint-config.d.ts +0 -16
  281. package/dist/node/actions/lint-config.d.ts.map +0 -1
  282. package/dist/node/actions/lint-init.d.ts +0 -16
  283. package/dist/node/actions/lint-init.d.ts.map +0 -1
  284. package/dist/node/actions/lint.d.ts +0 -36
  285. package/dist/node/actions/lint.d.ts.map +0 -1
  286. package/dist/node/actions/lintNext.d.ts +0 -14
  287. package/dist/node/actions/lintNext.d.ts.map +0 -1
  288. package/dist/node/actions/lintNextWorker.d.ts +0 -21
  289. package/dist/node/actions/lintNextWorker.d.ts.map +0 -1
  290. package/dist/node/actions/lintTierAnalysis.d.ts +0 -59
  291. package/dist/node/actions/lintTierAnalysis.d.ts.map +0 -1
  292. package/dist/node/actions/lintlint.d.ts +0 -13
  293. package/dist/node/actions/lintlint.d.ts.map +0 -1
  294. package/dist/node/actions/node-lint.d.ts +0 -19
  295. package/dist/node/actions/node-lint.d.ts.map +0 -1
  296. package/dist/node/actions/npmignore-gen.d.ts +0 -2
  297. package/dist/node/actions/npmignore-gen.d.ts.map +0 -1
  298. package/dist/node/actions/orphan.d.ts +0 -6
  299. package/dist/node/actions/orphan.d.ts.map +0 -1
  300. package/dist/node/actions/package/clean-outputs.d.ts +0 -6
  301. package/dist/node/actions/package/clean-outputs.d.ts.map +0 -1
  302. package/dist/node/actions/package/clean-typescript.d.ts +0 -3
  303. package/dist/node/actions/package/clean-typescript.d.ts.map +0 -1
  304. package/dist/node/actions/package/clean.d.ts +0 -3
  305. package/dist/node/actions/package/clean.d.ts.map +0 -1
  306. package/dist/node/actions/package/compile/ApiExposureConfig.d.ts +0 -58
  307. package/dist/node/actions/package/compile/ApiExposureConfig.d.ts.map +0 -1
  308. package/dist/node/actions/package/compile/MonolithConfig.d.ts +0 -85
  309. package/dist/node/actions/package/compile/MonolithConfig.d.ts.map +0 -1
  310. package/dist/node/actions/package/compile/XyConfig.d.ts +0 -462
  311. package/dist/node/actions/package/compile/XyConfig.d.ts.map +0 -1
  312. package/dist/node/actions/package/compile/buildEntries.d.ts +0 -3
  313. package/dist/node/actions/package/compile/buildEntries.d.ts.map +0 -1
  314. package/dist/node/actions/package/compile/compile.d.ts +0 -7
  315. package/dist/node/actions/package/compile/compile.d.ts.map +0 -1
  316. package/dist/node/actions/package/compile/createProgramFromConfig.d.ts +0 -25
  317. package/dist/node/actions/package/compile/createProgramFromConfig.d.ts.map +0 -1
  318. package/dist/node/actions/package/compile/createTypescriptConfig.d.ts +0 -29
  319. package/dist/node/actions/package/compile/createTypescriptConfig.d.ts.map +0 -1
  320. package/dist/node/actions/package/compile/deepMerge.d.ts +0 -4
  321. package/dist/node/actions/package/compile/deepMerge.d.ts.map +0 -1
  322. package/dist/node/actions/package/compile/entryOutputName.d.ts +0 -5
  323. package/dist/node/actions/package/compile/entryOutputName.d.ts.map +0 -1
  324. package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts +0 -5
  325. package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts.map +0 -1
  326. package/dist/node/actions/package/compile/getCompilerOptions.d.ts +0 -3
  327. package/dist/node/actions/package/compile/getCompilerOptions.d.ts.map +0 -1
  328. package/dist/node/actions/package/compile/index.d.ts +0 -16
  329. package/dist/node/actions/package/compile/index.d.ts.map +0 -1
  330. package/dist/node/actions/package/compile/inputs.d.ts +0 -2
  331. package/dist/node/actions/package/compile/inputs.d.ts.map +0 -1
  332. package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts +0 -14
  333. package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts.map +0 -1
  334. package/dist/node/actions/package/compile/monolithCompileEntries.d.ts +0 -20
  335. package/dist/node/actions/package/compile/monolithCompileEntries.d.ts.map +0 -1
  336. package/dist/node/actions/package/compile/monolithCompileLayout.d.ts +0 -42
  337. package/dist/node/actions/package/compile/monolithCompileLayout.d.ts.map +0 -1
  338. package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts +0 -18
  339. package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts.map +0 -1
  340. package/dist/node/actions/package/compile/packageCompileMonolith.d.ts +0 -10
  341. package/dist/node/actions/package/compile/packageCompileMonolith.d.ts.map +0 -1
  342. package/dist/node/actions/package/compile/packageCompileTsc.d.ts +0 -3
  343. package/dist/node/actions/package/compile/packageCompileTsc.d.ts.map +0 -1
  344. package/dist/node/actions/package/compile/packageCompileTsup.d.ts +0 -6
  345. package/dist/node/actions/package/compile/packageCompileTsup.d.ts.map +0 -1
  346. package/dist/node/actions/package/compile/packageCompileVendor.d.ts +0 -4
  347. package/dist/node/actions/package/compile/packageCompileVendor.d.ts.map +0 -1
  348. package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts +0 -13
  349. package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts.map +0 -1
  350. package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts +0 -23
  351. package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts.map +0 -1
  352. package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts +0 -5
  353. package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts.map +0 -1
  354. package/dist/node/actions/package/compile/runTsc.d.ts +0 -2
  355. package/dist/node/actions/package/compile/runTsc.d.ts.map +0 -1
  356. package/dist/node/actions/package/compile/validateFullPackage.d.ts +0 -2
  357. package/dist/node/actions/package/compile/validateFullPackage.d.ts.map +0 -1
  358. package/dist/node/actions/package/compile/vendorCompile.d.ts +0 -6
  359. package/dist/node/actions/package/compile/vendorCompile.d.ts.map +0 -1
  360. package/dist/node/actions/package/compile/vendorCompileEmit.d.ts +0 -8
  361. package/dist/node/actions/package/compile/vendorCompileEmit.d.ts.map +0 -1
  362. package/dist/node/actions/package/compile/vendorCompileInternals.d.ts +0 -31
  363. package/dist/node/actions/package/compile/vendorCompileInternals.d.ts.map +0 -1
  364. package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts +0 -3
  365. package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts.map +0 -1
  366. package/dist/node/actions/package/compile/vendorCompileTypes.d.ts +0 -31
  367. package/dist/node/actions/package/compile/vendorCompileTypes.d.ts.map +0 -1
  368. package/dist/node/actions/package/compileTargetsPublint.d.ts +0 -13
  369. package/dist/node/actions/package/compileTargetsPublint.d.ts.map +0 -1
  370. package/dist/node/actions/package/copy-assets.d.ts +0 -5
  371. package/dist/node/actions/package/copy-assets.d.ts.map +0 -1
  372. package/dist/node/actions/package/expectedCompileOutputs.d.ts +0 -11
  373. package/dist/node/actions/package/expectedCompileOutputs.d.ts.map +0 -1
  374. package/dist/node/actions/package/exportConditionPublint.d.ts +0 -9
  375. package/dist/node/actions/package/exportConditionPublint.d.ts.map +0 -1
  376. package/dist/node/actions/package/exportMapPublint.d.ts +0 -7
  377. package/dist/node/actions/package/exportMapPublint.d.ts.map +0 -1
  378. package/dist/node/actions/package/index.d.ts +0 -9
  379. package/dist/node/actions/package/index.d.ts.map +0 -1
  380. package/dist/node/actions/package/lint.d.ts +0 -2
  381. package/dist/node/actions/package/lint.d.ts.map +0 -1
  382. package/dist/node/actions/package/platformPublint.d.ts +0 -7
  383. package/dist/node/actions/package/platformPublint.d.ts.map +0 -1
  384. package/dist/node/actions/package/publint.d.ts +0 -16
  385. package/dist/node/actions/package/publint.d.ts.map +0 -1
  386. package/dist/node/actions/package/recompile.d.ts +0 -3
  387. package/dist/node/actions/package/recompile.d.ts.map +0 -1
  388. package/dist/node/actions/package-lint-deps.d.ts +0 -47
  389. package/dist/node/actions/package-lint-deps.d.ts.map +0 -1
  390. package/dist/node/actions/package-lint-engines.d.ts +0 -22
  391. package/dist/node/actions/package-lint-engines.d.ts.map +0 -1
  392. package/dist/node/actions/package-lint-pnpm.d.ts +0 -11
  393. package/dist/node/actions/package-lint-pnpm.d.ts.map +0 -1
  394. package/dist/node/actions/package-lint-specs.d.ts +0 -9
  395. package/dist/node/actions/package-lint-specs.d.ts.map +0 -1
  396. package/dist/node/actions/package-lint.d.ts +0 -7
  397. package/dist/node/actions/package-lint.d.ts.map +0 -1
  398. package/dist/node/actions/packman/clean.d.ts +0 -5
  399. package/dist/node/actions/packman/clean.d.ts.map +0 -1
  400. package/dist/node/actions/packman/convert.d.ts +0 -10
  401. package/dist/node/actions/packman/convert.d.ts.map +0 -1
  402. package/dist/node/actions/packman/convertToBun.d.ts +0 -2
  403. package/dist/node/actions/packman/convertToBun.d.ts.map +0 -1
  404. package/dist/node/actions/packman/convertToNpm.d.ts +0 -2
  405. package/dist/node/actions/packman/convertToNpm.d.ts.map +0 -1
  406. package/dist/node/actions/packman/convertToPnpm.d.ts +0 -2
  407. package/dist/node/actions/packman/convertToPnpm.d.ts.map +0 -1
  408. package/dist/node/actions/packman/convertToYarn.d.ts +0 -2
  409. package/dist/node/actions/packman/convertToYarn.d.ts.map +0 -1
  410. package/dist/node/actions/packman/index.d.ts +0 -5
  411. package/dist/node/actions/packman/index.d.ts.map +0 -1
  412. package/dist/node/actions/packman/lint.d.ts +0 -6
  413. package/dist/node/actions/packman/lint.d.ts.map +0 -1
  414. package/dist/node/actions/packman/rewriteScripts.d.ts +0 -5
  415. package/dist/node/actions/packman/rewriteScripts.d.ts.map +0 -1
  416. package/dist/node/actions/packman/rewriteSourceImports.d.ts +0 -2
  417. package/dist/node/actions/packman/rewriteSourceImports.d.ts.map +0 -1
  418. package/dist/node/actions/packman/swapTsScriptsDependency.d.ts +0 -2
  419. package/dist/node/actions/packman/swapTsScriptsDependency.d.ts.map +0 -1
  420. package/dist/node/actions/publint.d.ts +0 -48
  421. package/dist/node/actions/publint.d.ts.map +0 -1
  422. package/dist/node/actions/publish.d.ts +0 -22
  423. package/dist/node/actions/publish.d.ts.map +0 -1
  424. package/dist/node/actions/reactTest.d.ts +0 -2
  425. package/dist/node/actions/reactTest.d.ts.map +0 -1
  426. package/dist/node/actions/rebuild.d.ts +0 -7
  427. package/dist/node/actions/rebuild.d.ts.map +0 -1
  428. package/dist/node/actions/recompile.d.ts +0 -16
  429. package/dist/node/actions/recompile.d.ts.map +0 -1
  430. package/dist/node/actions/reinstall.d.ts +0 -2
  431. package/dist/node/actions/reinstall.d.ts.map +0 -1
  432. package/dist/node/actions/releaseAgeExcludeScopes.d.ts +0 -13
  433. package/dist/node/actions/releaseAgeExcludeScopes.d.ts.map +0 -1
  434. package/dist/node/actions/relint.d.ts +0 -24
  435. package/dist/node/actions/relint.d.ts.map +0 -1
  436. package/dist/node/actions/repo-init.d.ts +0 -14
  437. package/dist/node/actions/repo-init.d.ts.map +0 -1
  438. package/dist/node/actions/republint.d.ts +0 -13
  439. package/dist/node/actions/republint.d.ts.map +0 -1
  440. package/dist/node/actions/result.d.ts +0 -44
  441. package/dist/node/actions/result.d.ts.map +0 -1
  442. package/dist/node/actions/retest.d.ts +0 -5
  443. package/dist/node/actions/retest.d.ts.map +0 -1
  444. package/dist/node/actions/secure.d.ts +0 -7
  445. package/dist/node/actions/secure.d.ts.map +0 -1
  446. package/dist/node/actions/sitemap.d.ts +0 -2
  447. package/dist/node/actions/sitemap.d.ts.map +0 -1
  448. package/dist/node/actions/skills/defaults.d.ts +0 -6
  449. package/dist/node/actions/skills/defaults.d.ts.map +0 -1
  450. package/dist/node/actions/skills/detectProfile.d.ts +0 -10
  451. package/dist/node/actions/skills/detectProfile.d.ts.map +0 -1
  452. package/dist/node/actions/skills/index.d.ts +0 -9
  453. package/dist/node/actions/skills/index.d.ts.map +0 -1
  454. package/dist/node/actions/skills/installed.d.ts +0 -10
  455. package/dist/node/actions/skills/installed.d.ts.map +0 -1
  456. package/dist/node/actions/skills/lint.d.ts +0 -26
  457. package/dist/node/actions/skills/lint.d.ts.map +0 -1
  458. package/dist/node/actions/skills/passthrough.d.ts +0 -25
  459. package/dist/node/actions/skills/passthrough.d.ts.map +0 -1
  460. package/dist/node/actions/skills/skillRules.d.ts +0 -9
  461. package/dist/node/actions/skills/skillRules.d.ts.map +0 -1
  462. package/dist/node/actions/skills/updo.d.ts +0 -4
  463. package/dist/node/actions/skills/updo.d.ts.map +0 -1
  464. package/dist/node/actions/skills/versions.d.ts +0 -10
  465. package/dist/node/actions/skills/versions.d.ts.map +0 -1
  466. package/dist/node/actions/sonar.d.ts +0 -2
  467. package/dist/node/actions/sonar.d.ts.map +0 -1
  468. package/dist/node/actions/start.d.ts +0 -2
  469. package/dist/node/actions/start.d.ts.map +0 -1
  470. package/dist/node/actions/statics.d.ts +0 -2
  471. package/dist/node/actions/statics.d.ts.map +0 -1
  472. package/dist/node/actions/test.d.ts +0 -5
  473. package/dist/node/actions/test.d.ts.map +0 -1
  474. package/dist/node/actions/tsc-validate/index.d.ts +0 -3
  475. package/dist/node/actions/tsc-validate/index.d.ts.map +0 -1
  476. package/dist/node/actions/tsc-validate/sharedValidate.d.ts +0 -34
  477. package/dist/node/actions/tsc-validate/sharedValidate.d.ts.map +0 -1
  478. package/dist/node/actions/tsc-validate/tscValidate.d.ts +0 -35
  479. package/dist/node/actions/tsc-validate/tscValidate.d.ts.map +0 -1
  480. package/dist/node/actions/up.d.ts +0 -2
  481. package/dist/node/actions/up.d.ts.map +0 -1
  482. package/dist/node/actions/updo.d.ts +0 -9
  483. package/dist/node/actions/updo.d.ts.map +0 -1
  484. package/dist/node/actions/work/id.d.ts +0 -8
  485. package/dist/node/actions/work/id.d.ts.map +0 -1
  486. package/dist/node/actions/work/index.d.ts +0 -131
  487. package/dist/node/actions/work/index.d.ts.map +0 -1
  488. package/dist/node/actions/work/inline.d.ts +0 -8
  489. package/dist/node/actions/work/inline.d.ts.map +0 -1
  490. package/dist/node/actions/work/priority.d.ts +0 -5
  491. package/dist/node/actions/work/priority.d.ts.map +0 -1
  492. package/dist/node/actions/work/schema.d.ts +0 -81
  493. package/dist/node/actions/work/schema.d.ts.map +0 -1
  494. package/dist/node/actions/work/store.d.ts +0 -23
  495. package/dist/node/actions/work/store.d.ts.map +0 -1
  496. package/dist/node/bin/package/build.d.ts +0 -3
  497. package/dist/node/bin/package/build.d.ts.map +0 -1
  498. package/dist/node/bin/package/clean-outputs.d.ts +0 -3
  499. package/dist/node/bin/package/clean-outputs.d.ts.map +0 -1
  500. package/dist/node/bin/package/clean-typescript.d.ts +0 -3
  501. package/dist/node/bin/package/clean-typescript.d.ts.map +0 -1
  502. package/dist/node/bin/package/clean.d.ts +0 -3
  503. package/dist/node/bin/package/clean.d.ts.map +0 -1
  504. package/dist/node/bin/package/compile-tsup.d.ts +0 -3
  505. package/dist/node/bin/package/compile-tsup.d.ts.map +0 -1
  506. package/dist/node/bin/package/compile.d.ts +0 -3
  507. package/dist/node/bin/package/compile.d.ts.map +0 -1
  508. package/dist/node/bin/package/copy-assets-cjs.d.ts +0 -3
  509. package/dist/node/bin/package/copy-assets-cjs.d.ts.map +0 -1
  510. package/dist/node/bin/package/copy-assets-esm.d.ts +0 -3
  511. package/dist/node/bin/package/copy-assets-esm.d.ts.map +0 -1
  512. package/dist/node/bin/package/fix.d.ts +0 -3
  513. package/dist/node/bin/package/fix.d.ts.map +0 -1
  514. package/dist/node/bin/package/lint-verbose.d.ts +0 -3
  515. package/dist/node/bin/package/lint-verbose.d.ts.map +0 -1
  516. package/dist/node/bin/package/lint.d.ts +0 -3
  517. package/dist/node/bin/package/lint.d.ts.map +0 -1
  518. package/dist/node/bin/package/publint.d.ts +0 -3
  519. package/dist/node/bin/package/publint.d.ts.map +0 -1
  520. package/dist/node/bin/package/recompile.d.ts +0 -3
  521. package/dist/node/bin/package/recompile.d.ts.map +0 -1
  522. package/dist/node/bin/package/relint.d.ts +0 -3
  523. package/dist/node/bin/package/relint.d.ts.map +0 -1
  524. package/dist/node/bin/package/sync-layout.d.ts +0 -3
  525. package/dist/node/bin/package/sync-layout.d.ts.map +0 -1
  526. package/dist/node/bin/run-or-exec.d.ts +0 -3
  527. package/dist/node/bin/run-or-exec.d.ts.map +0 -1
  528. package/dist/node/bin/xy.d.ts +0 -3
  529. package/dist/node/bin/xy.d.ts.map +0 -1
  530. package/dist/node/index.d.ts +0 -6
  531. package/dist/node/index.d.ts.map +0 -1
  532. package/dist/node/lib/bundledCliPath.d.ts +0 -4
  533. package/dist/node/lib/bundledCliPath.d.ts.map +0 -1
  534. package/dist/node/lib/checkResult.d.ts +0 -2
  535. package/dist/node/lib/checkResult.d.ts.map +0 -1
  536. package/dist/node/lib/concurrency.d.ts +0 -5
  537. package/dist/node/lib/concurrency.d.ts.map +0 -1
  538. package/dist/node/lib/copyAssetFiles.d.ts +0 -10
  539. package/dist/node/lib/copyAssetFiles.d.ts.map +0 -1
  540. package/dist/node/lib/createBuildConfig.d.ts +0 -2
  541. package/dist/node/lib/createBuildConfig.d.ts.map +0 -1
  542. package/dist/node/lib/crossSpawn.d.ts +0 -6
  543. package/dist/node/lib/crossSpawn.d.ts.map +0 -1
  544. package/dist/node/lib/deepMerge.d.ts +0 -24
  545. package/dist/node/lib/deepMerge.d.ts.map +0 -1
  546. package/dist/node/lib/defaultBuildConfig.d.ts +0 -9
  547. package/dist/node/lib/defaultBuildConfig.d.ts.map +0 -1
  548. package/dist/node/lib/deleteGlob.d.ts +0 -2
  549. package/dist/node/lib/deleteGlob.d.ts.map +0 -1
  550. package/dist/node/lib/dependencies/DuplicateDetector.d.ts +0 -7
  551. package/dist/node/lib/dependencies/DuplicateDetector.d.ts.map +0 -1
  552. package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts +0 -2
  553. package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts.map +0 -1
  554. package/dist/node/lib/dependencies/index.d.ts +0 -4
  555. package/dist/node/lib/dependencies/index.d.ts.map +0 -1
  556. package/dist/node/lib/dependencies/workspaceCycles.d.ts +0 -15
  557. package/dist/node/lib/dependencies/workspaceCycles.d.ts.map +0 -1
  558. package/dist/node/lib/deprecationMigrate.d.ts +0 -2
  559. package/dist/node/lib/deprecationMigrate.d.ts.map +0 -1
  560. package/dist/node/lib/eslintCache.d.ts +0 -4
  561. package/dist/node/lib/eslintCache.d.ts.map +0 -1
  562. package/dist/node/lib/file/ReadFileSyncOptions.d.ts +0 -6
  563. package/dist/node/lib/file/ReadFileSyncOptions.d.ts.map +0 -1
  564. package/dist/node/lib/file/constants.d.ts +0 -3
  565. package/dist/node/lib/file/constants.d.ts.map +0 -1
  566. package/dist/node/lib/file/fileLines.d.ts +0 -6
  567. package/dist/node/lib/file/fileLines.d.ts.map +0 -1
  568. package/dist/node/lib/file/index.d.ts +0 -5
  569. package/dist/node/lib/file/index.d.ts.map +0 -1
  570. package/dist/node/lib/file/tryReadFileSync.d.ts +0 -4
  571. package/dist/node/lib/file/tryReadFileSync.d.ts.map +0 -1
  572. package/dist/node/lib/fillTemplate.d.ts +0 -2
  573. package/dist/node/lib/fillTemplate.d.ts.map +0 -1
  574. package/dist/node/lib/generateIgnoreFiles.d.ts +0 -2
  575. package/dist/node/lib/generateIgnoreFiles.d.ts.map +0 -1
  576. package/dist/node/lib/gitConfig.d.ts +0 -25
  577. package/dist/node/lib/gitConfig.d.ts.map +0 -1
  578. package/dist/node/lib/gitignoreTemplate.d.ts +0 -2
  579. package/dist/node/lib/gitignoreTemplate.d.ts.map +0 -1
  580. package/dist/node/lib/index.d.ts +0 -45
  581. package/dist/node/lib/index.d.ts.map +0 -1
  582. package/dist/node/lib/initCwd.d.ts +0 -2
  583. package/dist/node/lib/initCwd.d.ts.map +0 -1
  584. package/dist/node/lib/jsonFormatters.d.ts +0 -2
  585. package/dist/node/lib/jsonFormatters.d.ts.map +0 -1
  586. package/dist/node/lib/latestVersions.d.ts +0 -8
  587. package/dist/node/lib/latestVersions.d.ts.map +0 -1
  588. package/dist/node/lib/loadConfig.d.ts +0 -10
  589. package/dist/node/lib/loadConfig.d.ts.map +0 -1
  590. package/dist/node/lib/match.d.ts +0 -21
  591. package/dist/node/lib/match.d.ts.map +0 -1
  592. package/dist/node/lib/npmLatestVersion.d.ts +0 -3
  593. package/dist/node/lib/npmLatestVersion.d.ts.map +0 -1
  594. package/dist/node/lib/packageManagerRuntime.d.ts +0 -25
  595. package/dist/node/lib/packageManagerRuntime.d.ts.map +0 -1
  596. package/dist/node/lib/packageName.d.ts +0 -2
  597. package/dist/node/lib/packageName.d.ts.map +0 -1
  598. package/dist/node/lib/parsedPackageJson.d.ts +0 -2
  599. package/dist/node/lib/parsedPackageJson.d.ts.map +0 -1
  600. package/dist/node/lib/pnpmConfig/index.d.ts +0 -2
  601. package/dist/node/lib/pnpmConfig/index.d.ts.map +0 -1
  602. package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts +0 -18
  603. package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts.map +0 -1
  604. package/dist/node/lib/processEx.d.ts +0 -2
  605. package/dist/node/lib/processEx.d.ts.map +0 -1
  606. package/dist/node/lib/repoTemplates.d.ts +0 -7
  607. package/dist/node/lib/repoTemplates.d.ts.map +0 -1
  608. package/dist/node/lib/reporting/index.d.ts +0 -3
  609. package/dist/node/lib/reporting/index.d.ts.map +0 -1
  610. package/dist/node/lib/reporting/runWithEnvelope.d.ts +0 -15
  611. package/dist/node/lib/reporting/runWithEnvelope.d.ts.map +0 -1
  612. package/dist/node/lib/reporting/xyReporter.d.ts +0 -27
  613. package/dist/node/lib/reporting/xyReporter.d.ts.map +0 -1
  614. package/dist/node/lib/runSteps.d.ts +0 -3
  615. package/dist/node/lib/runSteps.d.ts.map +0 -1
  616. package/dist/node/lib/runStepsAsync.d.ts +0 -4
  617. package/dist/node/lib/runStepsAsync.d.ts.map +0 -1
  618. package/dist/node/lib/runXy.d.ts +0 -2
  619. package/dist/node/lib/runXy.d.ts.map +0 -1
  620. package/dist/node/lib/runXyWithWarning.d.ts +0 -2
  621. package/dist/node/lib/runXyWithWarning.d.ts.map +0 -1
  622. package/dist/node/lib/safeExit.d.ts +0 -8
  623. package/dist/node/lib/safeExit.d.ts.map +0 -1
  624. package/dist/node/lib/secure/classify.d.ts +0 -8
  625. package/dist/node/lib/secure/classify.d.ts.map +0 -1
  626. package/dist/node/lib/secure/collectDeclaredDependencies.d.ts +0 -6
  627. package/dist/node/lib/secure/collectDeclaredDependencies.d.ts.map +0 -1
  628. package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts +0 -8
  629. package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts.map +0 -1
  630. package/dist/node/lib/secure/index.d.ts +0 -7
  631. package/dist/node/lib/secure/index.d.ts.map +0 -1
  632. package/dist/node/lib/secure/interfaces.d.ts +0 -35
  633. package/dist/node/lib/secure/interfaces.d.ts.map +0 -1
  634. package/dist/node/lib/secure/renderSecurityAudit.d.ts +0 -4
  635. package/dist/node/lib/secure/renderSecurityAudit.d.ts.map +0 -1
  636. package/dist/node/lib/secure/runSecurityAudit.d.ts +0 -15
  637. package/dist/node/lib/secure/runSecurityAudit.d.ts.map +0 -1
  638. package/dist/node/lib/shouldRunInstall.d.ts +0 -2
  639. package/dist/node/lib/shouldRunInstall.d.ts.map +0 -1
  640. package/dist/node/lib/string/empty.d.ts +0 -3
  641. package/dist/node/lib/string/empty.d.ts.map +0 -1
  642. package/dist/node/lib/string/index.d.ts +0 -4
  643. package/dist/node/lib/string/index.d.ts.map +0 -1
  644. package/dist/node/lib/string/localeCompare.d.ts +0 -2
  645. package/dist/node/lib/string/localeCompare.d.ts.map +0 -1
  646. package/dist/node/lib/string/union.d.ts +0 -2
  647. package/dist/node/lib/string/union.d.ts.map +0 -1
  648. package/dist/node/lib/toolchainVersion.d.ts +0 -3
  649. package/dist/node/lib/toolchainVersion.d.ts.map +0 -1
  650. package/dist/node/lib/tryRunLocalScript.d.ts +0 -10
  651. package/dist/node/lib/tryRunLocalScript.d.ts.map +0 -1
  652. package/dist/node/lib/updo/applyUpdates.d.ts +0 -4
  653. package/dist/node/lib/updo/applyUpdates.d.ts.map +0 -1
  654. package/dist/node/lib/updo/collectWorkspaceDeps.d.ts +0 -4
  655. package/dist/node/lib/updo/collectWorkspaceDeps.d.ts.map +0 -1
  656. package/dist/node/lib/updo/fetchRegistryInfo.d.ts +0 -37
  657. package/dist/node/lib/updo/fetchRegistryInfo.d.ts.map +0 -1
  658. package/dist/node/lib/updo/index.d.ts +0 -9
  659. package/dist/node/lib/updo/index.d.ts.map +0 -1
  660. package/dist/node/lib/updo/interactiveSelect.d.ts +0 -31
  661. package/dist/node/lib/updo/interactiveSelect.d.ts.map +0 -1
  662. package/dist/node/lib/updo/interfaces.d.ts +0 -50
  663. package/dist/node/lib/updo/interfaces.d.ts.map +0 -1
  664. package/dist/node/lib/updo/renderTable.d.ts +0 -3
  665. package/dist/node/lib/updo/renderTable.d.ts.map +0 -1
  666. package/dist/node/lib/updo/resolveVersions.d.ts +0 -19
  667. package/dist/node/lib/updo/resolveVersions.d.ts.map +0 -1
  668. package/dist/node/lib/updo/runUpdo.d.ts +0 -27
  669. package/dist/node/lib/updo/runUpdo.d.ts.map +0 -1
  670. package/dist/node/lib/withErrnoException.d.ts +0 -2
  671. package/dist/node/lib/withErrnoException.d.ts.map +0 -1
  672. package/dist/node/lib/withError.d.ts +0 -2
  673. package/dist/node/lib/withError.d.ts.map +0 -1
  674. package/dist/node/lib/yarn/index.d.ts +0 -3
  675. package/dist/node/lib/yarn/index.d.ts.map +0 -1
  676. package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts +0 -2
  677. package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts.map +0 -1
  678. package/dist/node/lib/yarn/workspace/Workspace.d.ts +0 -2
  679. package/dist/node/lib/yarn/workspace/Workspace.d.ts.map +0 -1
  680. package/dist/node/lib/yarn/workspace/index.d.ts +0 -3
  681. package/dist/node/lib/yarn/workspace/index.d.ts.map +0 -1
  682. package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts +0 -3
  683. package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts.map +0 -1
  684. package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts +0 -3
  685. package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts.map +0 -1
  686. package/dist/node/loadPackageConfig.d.ts +0 -40
  687. package/dist/node/loadPackageConfig.d.ts.map +0 -1
  688. package/dist/node/pm/PackageManager.d.ts +0 -85
  689. package/dist/node/pm/PackageManager.d.ts.map +0 -1
  690. package/dist/node/pm/bunPackageManager.d.ts +0 -20
  691. package/dist/node/pm/bunPackageManager.d.ts.map +0 -1
  692. package/dist/node/pm/detectPackageManager.d.ts +0 -3
  693. package/dist/node/pm/detectPackageManager.d.ts.map +0 -1
  694. package/dist/node/pm/index.d.ts +0 -11
  695. package/dist/node/pm/index.d.ts.map +0 -1
  696. package/dist/node/pm/isReactProject.d.ts +0 -3
  697. package/dist/node/pm/isReactProject.d.ts.map +0 -1
  698. package/dist/node/pm/npmPackageManager.d.ts +0 -20
  699. package/dist/node/pm/npmPackageManager.d.ts.map +0 -1
  700. package/dist/node/pm/pnpmPackageManager.d.ts +0 -20
  701. package/dist/node/pm/pnpmPackageManager.d.ts.map +0 -1
  702. package/dist/node/pm/registry.d.ts +0 -5
  703. package/dist/node/pm/registry.d.ts.map +0 -1
  704. package/dist/node/pm/resolveWorkspace.d.ts +0 -3
  705. package/dist/node/pm/resolveWorkspace.d.ts.map +0 -1
  706. package/dist/node/pm/runtime.d.ts +0 -2
  707. package/dist/node/pm/runtime.d.ts.map +0 -1
  708. package/dist/node/pm/workspaces.d.ts +0 -15
  709. package/dist/node/pm/workspaces.d.ts.map +0 -1
  710. package/dist/node/pm/yarnPackageManager.d.ts +0 -20
  711. package/dist/node/pm/yarnPackageManager.d.ts.map +0 -1
  712. package/dist/node/xy/build/buildCommand.d.ts +0 -3
  713. package/dist/node/xy/build/buildCommand.d.ts.map +0 -1
  714. package/dist/node/xy/build/compileCommand.d.ts +0 -3
  715. package/dist/node/xy/build/compileCommand.d.ts.map +0 -1
  716. package/dist/node/xy/build/copyAssetsCommand.d.ts +0 -3
  717. package/dist/node/xy/build/copyAssetsCommand.d.ts.map +0 -1
  718. package/dist/node/xy/build/index.d.ts +0 -3
  719. package/dist/node/xy/build/index.d.ts.map +0 -1
  720. package/dist/node/xy/build/rebuildCommand.d.ts +0 -3
  721. package/dist/node/xy/build/rebuildCommand.d.ts.map +0 -1
  722. package/dist/node/xy/build/recompileCommand.d.ts +0 -3
  723. package/dist/node/xy/build/recompileCommand.d.ts.map +0 -1
  724. package/dist/node/xy/build/tscValidateCommand.d.ts +0 -3
  725. package/dist/node/xy/build/tscValidateCommand.d.ts.map +0 -1
  726. package/dist/node/xy/common/checkCommand.d.ts +0 -3
  727. package/dist/node/xy/common/checkCommand.d.ts.map +0 -1
  728. package/dist/node/xy/common/deadCommand.d.ts +0 -3
  729. package/dist/node/xy/common/deadCommand.d.ts.map +0 -1
  730. package/dist/node/xy/common/gitignoreCommand.d.ts +0 -3
  731. package/dist/node/xy/common/gitignoreCommand.d.ts.map +0 -1
  732. package/dist/node/xy/common/gitlintCommand.d.ts +0 -3
  733. package/dist/node/xy/common/gitlintCommand.d.ts.map +0 -1
  734. package/dist/node/xy/common/index.d.ts +0 -3
  735. package/dist/node/xy/common/index.d.ts.map +0 -1
  736. package/dist/node/xy/common/licenseCommand.d.ts +0 -3
  737. package/dist/node/xy/common/licenseCommand.d.ts.map +0 -1
  738. package/dist/node/xy/common/npmignoreGenCommand.d.ts +0 -3
  739. package/dist/node/xy/common/npmignoreGenCommand.d.ts.map +0 -1
  740. package/dist/node/xy/common/orphan/cleanCommand.d.ts +0 -3
  741. package/dist/node/xy/common/orphan/cleanCommand.d.ts.map +0 -1
  742. package/dist/node/xy/common/orphan/index.d.ts +0 -3
  743. package/dist/node/xy/common/orphan/index.d.ts.map +0 -1
  744. package/dist/node/xy/common/orphan/listCommand.d.ts +0 -3
  745. package/dist/node/xy/common/orphan/listCommand.d.ts.map +0 -1
  746. package/dist/node/xy/common/packmanCommand.d.ts +0 -3
  747. package/dist/node/xy/common/packmanCommand.d.ts.map +0 -1
  748. package/dist/node/xy/common/repo/index.d.ts +0 -3
  749. package/dist/node/xy/common/repo/index.d.ts.map +0 -1
  750. package/dist/node/xy/common/repo/initCommand.d.ts +0 -3
  751. package/dist/node/xy/common/repo/initCommand.d.ts.map +0 -1
  752. package/dist/node/xy/common/repo/lintCommand.d.ts +0 -3
  753. package/dist/node/xy/common/repo/lintCommand.d.ts.map +0 -1
  754. package/dist/node/xy/common/retestCommand.d.ts +0 -3
  755. package/dist/node/xy/common/retestCommand.d.ts.map +0 -1
  756. package/dist/node/xy/common/secureCommand.d.ts +0 -3
  757. package/dist/node/xy/common/secureCommand.d.ts.map +0 -1
  758. package/dist/node/xy/common/skills/index.d.ts +0 -3
  759. package/dist/node/xy/common/skills/index.d.ts.map +0 -1
  760. package/dist/node/xy/common/testCommand.d.ts +0 -3
  761. package/dist/node/xy/common/testCommand.d.ts.map +0 -1
  762. package/dist/node/xy/common/work/addCommand.d.ts +0 -3
  763. package/dist/node/xy/common/work/addCommand.d.ts.map +0 -1
  764. package/dist/node/xy/common/work/claimCommand.d.ts +0 -3
  765. package/dist/node/xy/common/work/claimCommand.d.ts.map +0 -1
  766. package/dist/node/xy/common/work/doneCommand.d.ts +0 -3
  767. package/dist/node/xy/common/work/doneCommand.d.ts.map +0 -1
  768. package/dist/node/xy/common/work/index.d.ts +0 -3
  769. package/dist/node/xy/common/work/index.d.ts.map +0 -1
  770. package/dist/node/xy/common/work/initCommand.d.ts +0 -3
  771. package/dist/node/xy/common/work/initCommand.d.ts.map +0 -1
  772. package/dist/node/xy/common/work/listCommand.d.ts +0 -3
  773. package/dist/node/xy/common/work/listCommand.d.ts.map +0 -1
  774. package/dist/node/xy/common/work/nextCommand.d.ts +0 -3
  775. package/dist/node/xy/common/work/nextCommand.d.ts.map +0 -1
  776. package/dist/node/xy/common/work/options.d.ts +0 -5
  777. package/dist/node/xy/common/work/options.d.ts.map +0 -1
  778. package/dist/node/xy/common/work/queueCommand.d.ts +0 -3
  779. package/dist/node/xy/common/work/queueCommand.d.ts.map +0 -1
  780. package/dist/node/xy/common/work/showCommand.d.ts +0 -3
  781. package/dist/node/xy/common/work/showCommand.d.ts.map +0 -1
  782. package/dist/node/xy/common/work/triageCommand.d.ts +0 -3
  783. package/dist/node/xy/common/work/triageCommand.d.ts.map +0 -1
  784. package/dist/node/xy/common/work/updateCommand.d.ts +0 -3
  785. package/dist/node/xy/common/work/updateCommand.d.ts.map +0 -1
  786. package/dist/node/xy/deploy/deployCommand.d.ts +0 -3
  787. package/dist/node/xy/deploy/deployCommand.d.ts.map +0 -1
  788. package/dist/node/xy/deploy/index.d.ts +0 -3
  789. package/dist/node/xy/deploy/index.d.ts.map +0 -1
  790. package/dist/node/xy/deploy/publishCommand.d.ts +0 -3
  791. package/dist/node/xy/deploy/publishCommand.d.ts.map +0 -1
  792. package/dist/node/xy/index.d.ts +0 -9
  793. package/dist/node/xy/index.d.ts.map +0 -1
  794. package/dist/node/xy/install/cleanCommand.d.ts +0 -3
  795. package/dist/node/xy/install/cleanCommand.d.ts.map +0 -1
  796. package/dist/node/xy/install/index.d.ts +0 -3
  797. package/dist/node/xy/install/index.d.ts.map +0 -1
  798. package/dist/node/xy/install/installCommand.d.ts +0 -3
  799. package/dist/node/xy/install/installCommand.d.ts.map +0 -1
  800. package/dist/node/xy/install/reinstallCommand.d.ts +0 -3
  801. package/dist/node/xy/install/reinstallCommand.d.ts.map +0 -1
  802. package/dist/node/xy/install/staticsCommand.d.ts +0 -3
  803. package/dist/node/xy/install/staticsCommand.d.ts.map +0 -1
  804. package/dist/node/xy/install/upCommand.d.ts +0 -3
  805. package/dist/node/xy/install/upCommand.d.ts.map +0 -1
  806. package/dist/node/xy/install/updoCommand.d.ts +0 -3
  807. package/dist/node/xy/install/updoCommand.d.ts.map +0 -1
  808. package/dist/node/xy/lint/apiExposureCommand.d.ts +0 -3
  809. package/dist/node/xy/lint/apiExposureCommand.d.ts.map +0 -1
  810. package/dist/node/xy/lint/cycleCommand.d.ts +0 -3
  811. package/dist/node/xy/lint/cycleCommand.d.ts.map +0 -1
  812. package/dist/node/xy/lint/deplintCommand.d.ts +0 -3
  813. package/dist/node/xy/lint/deplintCommand.d.ts.map +0 -1
  814. package/dist/node/xy/lint/fixCommand.d.ts +0 -3
  815. package/dist/node/xy/lint/fixCommand.d.ts.map +0 -1
  816. package/dist/node/xy/lint/index.d.ts +0 -3
  817. package/dist/node/xy/lint/index.d.ts.map +0 -1
  818. package/dist/node/xy/lint/lint/configCommand.d.ts +0 -5
  819. package/dist/node/xy/lint/lint/configCommand.d.ts.map +0 -1
  820. package/dist/node/xy/lint/lint/index.d.ts +0 -3
  821. package/dist/node/xy/lint/lint/index.d.ts.map +0 -1
  822. package/dist/node/xy/lint/lint/initCommand.d.ts +0 -3
  823. package/dist/node/xy/lint/lint/initCommand.d.ts.map +0 -1
  824. package/dist/node/xy/lint/lint/runCommand.d.ts +0 -3
  825. package/dist/node/xy/lint/lint/runCommand.d.ts.map +0 -1
  826. package/dist/node/xy/lint/lintCommand.d.ts +0 -2
  827. package/dist/node/xy/lint/lintCommand.d.ts.map +0 -1
  828. package/dist/node/xy/lint/lintlintCommand.d.ts +0 -3
  829. package/dist/node/xy/lint/lintlintCommand.d.ts.map +0 -1
  830. package/dist/node/xy/lint/nodeLintCommand.d.ts +0 -3
  831. package/dist/node/xy/lint/nodeLintCommand.d.ts.map +0 -1
  832. package/dist/node/xy/lint/publintCommand.d.ts +0 -3
  833. package/dist/node/xy/lint/publintCommand.d.ts.map +0 -1
  834. package/dist/node/xy/lint/relintCommand.d.ts +0 -3
  835. package/dist/node/xy/lint/relintCommand.d.ts.map +0 -1
  836. package/dist/node/xy/lint/republintCommand.d.ts +0 -3
  837. package/dist/node/xy/lint/republintCommand.d.ts.map +0 -1
  838. package/dist/node/xy/lint/sonarCommand.d.ts +0 -3
  839. package/dist/node/xy/lint/sonarCommand.d.ts.map +0 -1
  840. package/dist/node/xy/packageManagerWarning.d.ts +0 -4
  841. package/dist/node/xy/packageManagerWarning.d.ts.map +0 -1
  842. package/dist/node/xy/param.d.ts +0 -5
  843. package/dist/node/xy/param.d.ts.map +0 -1
  844. package/dist/node/xy/react/analyzeCommand.d.ts +0 -3
  845. package/dist/node/xy/react/analyzeCommand.d.ts.map +0 -1
  846. package/dist/node/xy/react/ejectCommand.d.ts +0 -3
  847. package/dist/node/xy/react/ejectCommand.d.ts.map +0 -1
  848. package/dist/node/xy/react/index.d.ts +0 -3
  849. package/dist/node/xy/react/index.d.ts.map +0 -1
  850. package/dist/node/xy/react/sitemapCommand.d.ts +0 -3
  851. package/dist/node/xy/react/sitemapCommand.d.ts.map +0 -1
  852. package/dist/node/xy/react/startCommand.d.ts +0 -3
  853. package/dist/node/xy/react/startCommand.d.ts.map +0 -1
  854. package/dist/node/xy/xy.d.ts +0 -20
  855. package/dist/node/xy/xy.d.ts.map +0 -1
  856. package/dist/node/xy/xyParseOptions.d.ts +0 -3
  857. package/dist/node/xy/xyParseOptions.d.ts.map +0 -1
  858. package/dist/pm/detectReact.d.ts +0 -3
  859. package/dist/pm/detectReact.d.ts.map +0 -1
  860. package/dist/xy/common/claude/checkCommand.d.ts +0 -3
  861. package/dist/xy/common/claude/checkCommand.d.ts.map +0 -1
  862. package/dist/xy/common/claude/cleanCommand.d.ts +0 -3
  863. package/dist/xy/common/claude/cleanCommand.d.ts.map +0 -1
  864. package/dist/xy/common/claude/commandsCommand.d.ts +0 -3
  865. package/dist/xy/common/claude/commandsCommand.d.ts.map +0 -1
  866. package/dist/xy/common/claude/index.d.ts +0 -3
  867. package/dist/xy/common/claude/index.d.ts.map +0 -1
  868. package/dist/xy/common/claude/initCommand.d.ts +0 -3
  869. package/dist/xy/common/claude/initCommand.d.ts.map +0 -1
  870. package/dist/xy/common/claude/rulesCommand.d.ts +0 -3
  871. package/dist/xy/common/claude/rulesCommand.d.ts.map +0 -1
  872. package/dist/xy/common/claude/settingsCommand.d.ts +0 -3
  873. package/dist/xy/common/claude/settingsCommand.d.ts.map +0 -1
  874. package/dist/xy/common/claude/skillsCommand.d.ts +0 -3
  875. package/dist/xy/common/claude/skillsCommand.d.ts.map +0 -1
  876. package/dist/xy/common/skills/addCommand.d.ts +0 -3
  877. package/dist/xy/common/skills/addCommand.d.ts.map +0 -1
  878. package/dist/xy/common/skills/experimentalInstallCommand.d.ts +0 -3
  879. package/dist/xy/common/skills/experimentalInstallCommand.d.ts.map +0 -1
  880. package/dist/xy/common/skills/experimentalSyncCommand.d.ts +0 -3
  881. package/dist/xy/common/skills/experimentalSyncCommand.d.ts.map +0 -1
  882. package/dist/xy/common/skills/findCommand.d.ts +0 -3
  883. package/dist/xy/common/skills/findCommand.d.ts.map +0 -1
  884. package/dist/xy/common/skills/initCommand.d.ts +0 -3
  885. package/dist/xy/common/skills/initCommand.d.ts.map +0 -1
  886. package/dist/xy/common/skills/lintCommand.d.ts +0 -3
  887. package/dist/xy/common/skills/lintCommand.d.ts.map +0 -1
  888. package/dist/xy/common/skills/listCommand.d.ts +0 -3
  889. package/dist/xy/common/skills/listCommand.d.ts.map +0 -1
  890. package/dist/xy/common/skills/removeCommand.d.ts +0 -3
  891. package/dist/xy/common/skills/removeCommand.d.ts.map +0 -1
  892. package/dist/xy/common/skills/updateCommand.d.ts +0 -3
  893. package/dist/xy/common/skills/updateCommand.d.ts.map +0 -1
  894. package/dist/xy/common/skills/updoCommand.d.ts +0 -3
  895. package/dist/xy/common/skills/updoCommand.d.ts.map +0 -1
  896. package/dist/xy/install/upskillsCommand.d.ts +0 -3
  897. package/dist/xy/install/upskillsCommand.d.ts.map +0 -1
package/dist/bin/xy.mjs CHANGED
@@ -4723,7 +4723,7 @@ function isReactProject() {
4723
4723
  //#endregion
4724
4724
  //#region src/pm/npmPackageManager.ts
4725
4725
  function collectVersions(node, versions) {
4726
- if (!Boolean(node) || typeof node !== "object") return;
4726
+ if (typeof node !== "object" || !Boolean(node)) return;
4727
4727
  const value = node;
4728
4728
  if (value.name != null && value.name.length > 0 && value.version != null && value.version.length > 0 && !versions.has(value.name)) versions.set(value.name, value.version);
4729
4729
  const dependencies = Object.values(value.dependencies ?? {});
@@ -5202,7 +5202,7 @@ function extractPnpmVersions(data, depName) {
5202
5202
  const versions = /* @__PURE__ */ new Set();
5203
5203
  function walk(obj) {
5204
5204
  if (Array.isArray(obj)) for (const item of obj) walk(item);
5205
- else if (Boolean(obj) && typeof obj === "object") {
5205
+ else if (typeof obj === "object" && Boolean(obj)) {
5206
5206
  const record = obj;
5207
5207
  if (typeof record.version === "string" && typeof record.from === "string" && record.from === depName) versions.add(record.version);
5208
5208
  for (const val of Object.values(record)) walk(val);
@@ -11861,6 +11861,12 @@ const RULE_COMMANDS = {
11861
11861
  includeInRoot: true,
11862
11862
  title: "Check Rules"
11863
11863
  },
11864
+ clean: {
11865
+ command: "clean",
11866
+ configKey: "clean",
11867
+ includeInRoot: true,
11868
+ title: "Clean Rules"
11869
+ },
11864
11870
  cycle: {
11865
11871
  command: "cycle",
11866
11872
  includeInRoot: true,
@@ -12068,7 +12074,7 @@ function mergeRuleConfigs(target, source) {
12068
12074
  }
12069
12075
  function mergeCommandConfig(rootCmd, workspaceCmd, commandName) {
12070
12076
  const configKey = canonicalRuleConfigKey(commandName);
12071
- return deepMerge(rootCmd, workspaceCmd, { customMerge: (key) => RULE_CONFIG_COMMAND_KEYS.has(configKey) && key === "rules" ? mergeRuleConfigs : void 0 });
12077
+ return deepMerge(rootCmd, workspaceCmd, { customMerge: (key) => key === "rules" && RULE_CONFIG_COMMAND_KEYS.has(configKey) ? mergeRuleConfigs : void 0 });
12072
12078
  }
12073
12079
  /**
12074
12080
  * Loads a command-specific config merged from root and workspace levels.
@@ -20560,7 +20566,7 @@ const runStepAsync = (name, step, shouldExitOnFail = true, message) => {
20560
20566
  2
20561
20567
  ] : "inherit"
20562
20568
  }).on("close", (code) => {
20563
- if (code != null && !Number.isNaN(code) && code !== 0) {
20569
+ if (code !== 0 && code != null && !Number.isNaN(code)) {
20564
20570
  const argsText = Array.isArray(args) ? args.join(" ") : args;
20565
20571
  const message = `Command Exited With Non-Zero Result [${chalk.gray(code)}] | ${chalk.yellow(command)} ${chalk.white(argsText)}`;
20566
20572
  console.error(chalk.red(message));
@@ -21206,13 +21212,13 @@ function lookupErrorMessage(error) {
21206
21212
  }
21207
21213
  function coerceStringRecord(value) {
21208
21214
  const out = {};
21209
- if (value == null || typeof value !== "object" || Array.isArray(value)) return out;
21215
+ if (typeof value !== "object" || value == null || Array.isArray(value)) return out;
21210
21216
  for (const [key, raw] of Object.entries(value)) if (typeof raw === "string") out[key] = raw;
21211
21217
  return out;
21212
21218
  }
21213
21219
  function coerceVersions(value) {
21214
21220
  if (Array.isArray(value)) return value.filter((v) => typeof v === "string");
21215
- if (value != null && typeof value === "object") return Object.keys(value);
21221
+ if (typeof value === "object" && value != null) return Object.keys(value);
21216
21222
  return [];
21217
21223
  }
21218
21224
  function parsePackageViewJson(stdout, options = {}) {
@@ -21403,7 +21409,7 @@ function logFetchComplete(total) {
21403
21409
  if (total > 0) console.log(chalk.gray(` Finished registry metadata lookup for ${total} package(s)`));
21404
21410
  }
21405
21411
  function writeFetchProgress(completed, total) {
21406
- if (completed % 25 === 0 || completed === total) process.stderr.write(`\r Fetched ${completed}/${total} package metadata records...`);
21412
+ if (completed === total || completed % 25 === 0) process.stderr.write(`\r Fetched ${completed}/${total} package metadata records...`);
21407
21413
  }
21408
21414
  async function fetchAllRegistryInfoDirect(packageNames, options = {}) {
21409
21415
  const results = /* @__PURE__ */ new Map();
@@ -23268,7 +23274,7 @@ function checkVersionSatisfaction(location, peer, requestedRange) {
23268
23274
  function findDeclaredPeerVersionMismatches(name, location, peerDependencies, peerDependencyVersions, exclude) {
23269
23275
  const results = [];
23270
23276
  for (const peer of peerDependencies) {
23271
- if ((exclude?.has(peer) ?? false) || peer === name) continue;
23277
+ if (peer === name || (exclude?.has(peer) ?? false)) continue;
23272
23278
  const declaredRange = peerDependencyVersions[peer];
23273
23279
  if (!declaredRange || declaredRange === "*") continue;
23274
23280
  const { installedVersion, satisfied: isSatisfied } = checkVersionSatisfaction(location, peer, declaredRange);
@@ -23352,7 +23358,7 @@ function findUnsatisfiedPeers({ name, location }, { dependencies, devDependencie
23352
23358
  };
23353
23359
  const unsatisfied = [];
23354
23360
  for (const [peer, sources] of peerSources) {
23355
- if ((exclude?.has(peer) ?? false) || peer === name) continue;
23361
+ if (peer === name || (exclude?.has(peer) ?? false)) continue;
23356
23362
  if (!(forcePeerOptional?.has(peer) ?? false) && isPeerOptionalInAll(location, peer, sources)) continue;
23357
23363
  const finding = classifyPeer(peer, sources, ctx);
23358
23364
  if (finding) unsatisfied.push(finding);
@@ -23370,7 +23376,7 @@ function findMismatchedSources(location, sources, peer, installedVersion) {
23370
23376
  if (installedVersion == null || installedVersion.length === 0) return [];
23371
23377
  return sources.filter((source) => {
23372
23378
  const range = readPeerVersionRange(location, source.requiredBy, peer);
23373
- if (range == null || range.length === 0 || range === "*" || range.startsWith("workspace:")) return false;
23379
+ if (range === "*" || range == null || range.length === 0 || range.startsWith("workspace:")) return false;
23374
23380
  try {
23375
23381
  return !import_semver.default.satisfies(installedVersion, range, { includePrerelease: true });
23376
23382
  } catch {
@@ -23634,7 +23640,7 @@ const DEFAULT_AEI_THRESHOLDS = {
23634
23640
  probablyPeerMax: 179,
23635
23641
  reviewMax: 119
23636
23642
  };
23637
- const RULE_LEVELS$1 = /* @__PURE__ */ new Set([
23643
+ const RULE_LEVELS$2 = /* @__PURE__ */ new Set([
23638
23644
  "error",
23639
23645
  "off",
23640
23646
  "warn"
@@ -23645,8 +23651,8 @@ function isRecord$5(value) {
23645
23651
  function isValidWeight(value) {
23646
23652
  return value === "infinite" || typeof value === "number" && Number.isFinite(value) && value >= 0;
23647
23653
  }
23648
- function isRuleLevel$4(value) {
23649
- return typeof value === "string" && RULE_LEVELS$1.has(value);
23654
+ function isRuleLevel$5(value) {
23655
+ return typeof value === "string" && RULE_LEVELS$2.has(value);
23650
23656
  }
23651
23657
  function parseWeight(location, weight) {
23652
23658
  if (!isValidWeight(weight)) throw new TypeError(`${location} must be a non-negative finite number or "infinite"`);
@@ -23655,7 +23661,7 @@ function parseWeight(location, weight) {
23655
23661
  function parseTupleRuleSetting(location, setting) {
23656
23662
  if (setting.length !== 2) throw new TypeError(`${location} tuple must be [level, options]`);
23657
23663
  const [level, options] = setting;
23658
- if (!isRuleLevel$4(level)) throw new TypeError(`${location} level must be "error", "warn", or "off"`);
23664
+ if (!isRuleLevel$5(level)) throw new TypeError(`${location} level must be "error", "warn", or "off"`);
23659
23665
  if (!isRecord$5(options)) throw new TypeError(`${location} options must be an object`);
23660
23666
  return {
23661
23667
  enabled: level !== "off",
@@ -23670,7 +23676,7 @@ function parseObjectRuleSetting(location, setting) {
23670
23676
  "weight"
23671
23677
  ].includes(key)) throw new TypeError(`${location} has unknown option "${key}"`);
23672
23678
  if (setting.enabled !== void 0 && typeof setting.enabled !== "boolean") throw new TypeError(`${location}.enabled must be a boolean`);
23673
- if (setting.level !== void 0 && !isRuleLevel$4(setting.level)) throw new TypeError(`${location}.level must be "error", "warn", or "off"`);
23679
+ if (setting.level !== void 0 && !isRuleLevel$5(setting.level)) throw new TypeError(`${location}.level must be "error", "warn", or "off"`);
23674
23680
  const level = setting.level;
23675
23681
  return {
23676
23682
  enabled: level === void 0 ? setting.enabled : level !== "off",
@@ -23680,7 +23686,7 @@ function parseObjectRuleSetting(location, setting) {
23680
23686
  }
23681
23687
  function parseRuleSetting(location, setting) {
23682
23688
  if (typeof setting === "boolean") return { enabled: setting };
23683
- if (isRuleLevel$4(setting)) return {
23689
+ if (isRuleLevel$5(setting)) return {
23684
23690
  enabled: setting !== "off",
23685
23691
  level: setting
23686
23692
  };
@@ -24732,7 +24738,7 @@ function getExposureFindings({ entryFiles, fileLabel, program }) {
24732
24738
  });
24733
24739
  }
24734
24740
  function reportUsage(usage, directRuleId, node, directEvidence, genericEvidence, structuralRuleId) {
24735
- for (const [dependency, typeUsage] of usage) if (typeUsage.structural && structuralRuleId !== void 0) report(structuralRuleId, dependency, node, `exported API returns a structural type from ${dependency}`);
24741
+ for (const [dependency, typeUsage] of usage) if (structuralRuleId !== void 0 && typeUsage.structural) report(structuralRuleId, dependency, node, `exported API returns a structural type from ${dependency}`);
24736
24742
  else if (typeUsage.kind === "direct") report(directRuleId, dependency, node, directEvidence(dependency));
24737
24743
  else report("aei.exposure.generic-parameter", dependency, node, genericEvidence(dependency));
24738
24744
  }
@@ -24784,7 +24790,7 @@ function getExposureFindings({ entryFiles, fileLabel, program }) {
24784
24790
  const directDependencies = [...usage].filter(([, typeUsage]) => typeUsage.kind === "direct").map(([dependency]) => dependency);
24785
24791
  for (const dependency of directDependencies) report("aei.exposure.exported-value", dependency, declaration, `exported runtime value \`${name}\` has a type originating in ${dependency}`);
24786
24792
  for (const [dependency, typeUsage] of usage) if (typeUsage.kind === "generic") report("aei.exposure.generic-parameter", dependency, declaration, `exported value \`${name}\` uses ${dependency} as a generic argument`);
24787
- if (directDependencies.length === 0 && initializer !== void 0 && ts.isCallExpression(initializer)) {
24793
+ if (initializer !== void 0 && directDependencies.length === 0 && ts.isCallExpression(initializer)) {
24788
24794
  const resolved = resolveAlias(checker, checker.getSymbolAtLocation(initializer.expression));
24789
24795
  for (const dependency of symbolDependencies(resolved)) report("aei.exposure.exported-constant", dependency, declaration, `exported constant \`${name}\` is produced by a ${dependency} factory`);
24790
24796
  }
@@ -25525,7 +25531,7 @@ function collectDiagnostics(results, failOn) {
25525
25531
  }
25526
25532
  const apiExposure = async ({ dep, failOn, format, minBand, pkg, verbose, workspaces: inputWorkspaces }) => {
25527
25533
  const effectiveFormat = format ?? (isJsonMode() ? "json" : "human");
25528
- const targetPackage = typeof pkg === "string" && pkg.length > 0 && pkg !== "undefined" ? pkg : void 0;
25534
+ const targetPackage = typeof pkg === "string" && pkg !== "undefined" && pkg.length > 0 ? pkg : void 0;
25529
25535
  const { targetWorkspaces, workspaceNames } = resolveTargetWorkspaces$1(targetPackage, inputWorkspaces);
25530
25536
  if (targetWorkspaces.length === 0) {
25531
25537
  console.error(chalk.red(`Workspace not found: ${targetPackage}`));
@@ -25539,7 +25545,7 @@ const apiExposure = async ({ dep, failOn, format, minBand, pkg, verbose, workspa
25539
25545
  }
25540
25546
  const results = await analyzeWorkspaces(targetWorkspaces, workspaceNames, createSharedProgramCache(), dep, verbose);
25541
25547
  const { errorAssessments, mismatches, warningAssessments } = collectDiagnostics(results, failOn);
25542
- if (!isJsonMode() && effectiveFormat === "human") {
25548
+ if (effectiveFormat === "human" && !isJsonMode()) {
25543
25549
  renderHumanApiExposure(results, {
25544
25550
  minBand,
25545
25551
  verbose
@@ -27140,16 +27146,16 @@ const ignoredInputDirs = /* @__PURE__ */ new Set([
27140
27146
  ]);
27141
27147
  const ignoredInputFiles = /* @__PURE__ */ new Set([".eslintcache"]);
27142
27148
  const outputDirs = ["build", "dist"];
27143
- function toPosix(value) {
27149
+ function toPosix$1(value) {
27144
27150
  return value.split(PATH.sep).join("/");
27145
27151
  }
27146
27152
  function normalizeLocation(value) {
27147
- const normalized = toPosix(value).replace(/\/$/u, "");
27153
+ const normalized = toPosix$1(value).replace(/\/$/u, "");
27148
27154
  return normalized === "" ? "." : normalized;
27149
27155
  }
27150
27156
  function stableValue(value) {
27151
27157
  if (Array.isArray(value)) return value.map(stableValue);
27152
- if (Boolean(value) && typeof value === "object") {
27158
+ if (typeof value === "object" && Boolean(value)) {
27153
27159
  const entries = Object.entries(value).toSorted(([a], [b]) => a.localeCompare(b)).map(([key, entryValue]) => [key, stableValue(entryValue)]);
27154
27160
  return Object.fromEntries(entries);
27155
27161
  }
@@ -27172,7 +27178,7 @@ function readPackageJson$6(rootDir, workspace) {
27172
27178
  return readJsonFile(PATH.resolve(rootDir, workspace.location, "package.json"));
27173
27179
  }
27174
27180
  function isStringRecord(value) {
27175
- if (value == null || typeof value !== "object") return false;
27181
+ if (typeof value !== "object" || value == null) return false;
27176
27182
  return Object.values(value).every((entry) => typeof entry === "string");
27177
27183
  }
27178
27184
  function packageDeps(pkg, field) {
@@ -27222,7 +27228,7 @@ function collectFiles(dir, baseDir = dir) {
27222
27228
  if (!entry.isFile() && !entry.isSymbolicLink()) continue;
27223
27229
  if (ignoredInputFiles.has(entry.name)) continue;
27224
27230
  const relativePath = PATH.relative(baseDir, PATH.join(dir, entry.name));
27225
- files.push(toPosix(relativePath));
27231
+ files.push(toPosix$1(relativePath));
27226
27232
  }
27227
27233
  return files.toSorted((a, b) => a.localeCompare(b));
27228
27234
  }
@@ -27277,9 +27283,9 @@ function readPnpmLockfileImporters(rootDir, pm) {
27277
27283
  if (!existsSync(lockfilePath)) return {};
27278
27284
  try {
27279
27285
  const parsed = import_dist.parse(readFileSync(lockfilePath, "utf8"));
27280
- if (!Boolean(parsed) || typeof parsed !== "object") return {};
27286
+ if (typeof parsed !== "object" || !Boolean(parsed)) return {};
27281
27287
  const importers = parsed.importers;
27282
- if (!Boolean(importers) || typeof importers !== "object" || Array.isArray(importers)) return {};
27288
+ if (typeof importers !== "object" || !Boolean(importers) || Array.isArray(importers)) return {};
27283
27289
  const hashes = {};
27284
27290
  const sortedImporters = Object.entries(importers).toSorted(([a], [b]) => a.localeCompare(b));
27285
27291
  for (const [name, value] of sortedImporters) hashes[normalizeLocation(name)] = hashJson(value);
@@ -27672,7 +27678,7 @@ async function runSharedValidate(targetWorkspaces, verbose) {
27672
27678
  */
27673
27679
  const tscValidate = async ({ pkg, verbose, workspaces: inputWorkspaces }) => {
27674
27680
  const pm = getPackageManager();
27675
- const targetPackage = typeof pkg === "string" && pkg.length > 0 && pkg !== "undefined" ? pkg : void 0;
27681
+ const targetPackage = typeof pkg === "string" && pkg !== "undefined" && pkg.length > 0 ? pkg : void 0;
27676
27682
  const targetWorkspace = targetPackage === void 0 ? void 0 : pm.findWorkspace(targetPackage);
27677
27683
  const targetWorkspaces = targetPackage === void 0 ? inputWorkspaces ?? pm.listWorkspaces() : targetWorkspace ? [targetWorkspace] : [];
27678
27684
  if (targetWorkspaces.length === 0) {
@@ -27920,7 +27926,7 @@ async function runWorkspaceScriptsTopologically(label, pm, workspaces, fields, s
27920
27926
  let totalStatus = 0;
27921
27927
  return await new Promise((resolve) => {
27922
27928
  const finishIfDone = () => {
27923
- if ((completed === workspaces.length || isStopped) && active === 0) {
27929
+ if (active === 0 && (isStopped || completed === workspaces.length)) {
27924
27930
  if (!isStopped && ready.length === 0 && completed < workspaces.length) {
27925
27931
  console.error(chalk.red(`${label}: workspace dependency cycle detected`));
27926
27932
  resolve(totalStatus + 1);
@@ -27929,7 +27935,7 @@ async function runWorkspaceScriptsTopologically(label, pm, workspaces, fields, s
27929
27935
  resolve(totalStatus);
27930
27936
  return true;
27931
27937
  }
27932
- if (!isStopped && ready.length === 0 && active === 0 && completed < workspaces.length) {
27938
+ if (!isStopped && active === 0 && ready.length === 0 && completed < workspaces.length) {
27933
27939
  console.error(chalk.red(`${label}: workspace dependency cycle detected`));
27934
27940
  resolve(totalStatus + 1);
27935
27941
  return true;
@@ -28211,7 +28217,7 @@ const BUILT_IN_RULE_OPTION_KEYS = {
28211
28217
  function isRecord$4(value) {
28212
28218
  return typeof value === "object" && value !== null && !Array.isArray(value);
28213
28219
  }
28214
- function isRuleLevel$3(value) {
28220
+ function isRuleLevel$4(value) {
28215
28221
  return typeof value === "string" && VALID_RULE_LEVELS$1.has(value);
28216
28222
  }
28217
28223
  function severityFromLevel$1(level) {
@@ -28234,7 +28240,7 @@ function warnDeprecatedDeplintRuleId(ruleId, canonicalRuleId) {
28234
28240
  }
28235
28241
  function parseRuleConfig$1(ruleId, value) {
28236
28242
  if (typeof value === "string") {
28237
- if (!isRuleLevel$3(value)) throw new TypeError(`${formatRuleConfigLocation$1(ruleId)} must be one of "off", "warn", or "error"`);
28243
+ if (!isRuleLevel$4(value)) throw new TypeError(`${formatRuleConfigLocation$1(ruleId)} must be one of "off", "warn", or "error"`);
28238
28244
  return {
28239
28245
  level: value,
28240
28246
  options: {}
@@ -28243,7 +28249,7 @@ function parseRuleConfig$1(ruleId, value) {
28243
28249
  if (Array.isArray(value)) {
28244
28250
  if (value.length !== 2) throw new TypeError(`${formatRuleConfigLocation$1(ruleId)} tuple must be [level, options]`);
28245
28251
  const level = value[0];
28246
- if (!isRuleLevel$3(level)) throw new TypeError(`${formatRuleConfigLocation$1(ruleId)} level must be one of "off", "warn", or "error"`);
28252
+ if (!isRuleLevel$4(level)) throw new TypeError(`${formatRuleConfigLocation$1(ruleId)} level must be one of "off", "warn", or "error"`);
28247
28253
  const options = value[1];
28248
28254
  if (!isRecord$4(options)) throw new TypeError(`${formatRuleConfigLocation$1(ruleId)} options must be an object`);
28249
28255
  return {
@@ -29678,7 +29684,7 @@ function findUnlistedDependencies(name, dependencies, devDependencies, peerDepen
29678
29684
  //#region src/actions/deplint/checkPackage/getUnlistedDevDependencies.ts
29679
29685
  function findUnlistedDevDeps(name, dependencies, devDependencies, peerDependencies, externalAllImports, distImports, externalDistTypeImports) {
29680
29686
  const results = [];
29681
- for (const imp of externalAllImports) if (!distImports.includes(imp) && !externalDistTypeImports.includes(imp) && imp !== name && !dependencies.includes(imp) && !dependencies.includes(`@types/${imp}`) && !peerDependencies.includes(imp) && !peerDependencies.includes(`@types/${imp}`) && !devDependencies.includes(imp) && !devDependencies.includes(`@types/${imp}`) && !builtinModules.includes(imp) && !isSatisfiedByTsScriptsVariant(imp, [
29687
+ for (const imp of externalAllImports) if (imp !== name && !distImports.includes(imp) && !externalDistTypeImports.includes(imp) && !dependencies.includes(imp) && !dependencies.includes(`@types/${imp}`) && !peerDependencies.includes(imp) && !peerDependencies.includes(`@types/${imp}`) && !devDependencies.includes(imp) && !devDependencies.includes(`@types/${imp}`) && !builtinModules.includes(imp) && !isSatisfiedByTsScriptsVariant(imp, [
29682
29688
  ...dependencies,
29683
29689
  ...devDependencies,
29684
29690
  ...peerDependencies
@@ -31797,7 +31803,7 @@ function resolveTargetWorkspaces(targetPackage, inputWorkspaces) {
31797
31803
  }
31798
31804
  const deplint = async ({ pkg, classifier, deps, devDeps, fix, peerDeps, profile, verbose, cliExclude, format, jobs, workspaces: inputWorkspaces }) => {
31799
31805
  const effectiveFormat = format ?? (isJsonMode() ? "json" : "human");
31800
- const targetPackage = typeof pkg === "string" && pkg.length > 0 && pkg !== "undefined" ? pkg : void 0;
31806
+ const targetPackage = typeof pkg === "string" && pkg !== "undefined" && pkg.length > 0 ? pkg : void 0;
31801
31807
  const { targetWorkspaces, workspaceNames } = resolveTargetWorkspaces(targetPackage, inputWorkspaces);
31802
31808
  if (targetPackage === void 0 && inputWorkspaces !== void 0 && targetWorkspaces.length === 0) return emptyResult$7();
31803
31809
  if (targetWorkspaces.length === 0) return missingWorkspaceResult(targetPackage);
@@ -32305,7 +32311,7 @@ function countLintableSourceFiles(packageDir, isRootWorkspace) {
32305
32311
  for (const entry of entries) {
32306
32312
  if (count >= MAX_FILES_TO_COUNT) return;
32307
32313
  const name = entry.name;
32308
- if (name.startsWith(".") && name !== ".config") {}
32314
+ if (name !== ".config" && name.startsWith(".")) {}
32309
32315
  if (entry.isDirectory()) {
32310
32316
  if (IGNORED_DIR_NAMES.has(name)) continue;
32311
32317
  if (isRootWorkspace && depth === 0 && name === "packages") continue;
@@ -32348,7 +32354,7 @@ function classifyLintPackage(rootDir, workspace, allWorkspaces, options = {}) {
32348
32354
  mode: "full",
32349
32355
  sourceFiles
32350
32356
  };
32351
- if (options.skipEmpty !== false && sourceFiles === 0) return {
32357
+ if (sourceFiles === 0 && options.skipEmpty !== false) return {
32352
32358
  mode: "skip",
32353
32359
  reason: "no lintable source files",
32354
32360
  sourceFiles
@@ -33132,21 +33138,413 @@ const lintAllPackages = ({ fix = false } = {}) => {
33132
33138
  ]]]);
33133
33139
  };
33134
33140
  //#endregion
33141
+ //#region src/actions/package/cleanGitignore.ts
33142
+ function normalizeRel(rootDir, absPath) {
33143
+ return PATH.relative(PATH.resolve(rootDir), PATH.resolve(absPath)).split(PATH.sep).join("/");
33144
+ }
33145
+ function runGit(rootDir, args) {
33146
+ const result = spawnSync("git", [
33147
+ "-C",
33148
+ rootDir,
33149
+ ...args
33150
+ ], {
33151
+ encoding: "utf8",
33152
+ maxBuffer: 32 * 1024 * 1024
33153
+ });
33154
+ return {
33155
+ status: result.status,
33156
+ stderr: result.stderr ?? "",
33157
+ stdout: result.stdout ?? ""
33158
+ };
33159
+ }
33160
+ /**
33161
+ * Default backend using `git check-ignore` / `git ls-files`. Respects nested
33162
+ * `.gitignore` files and global excludes the same way Git does.
33163
+ */
33164
+ const gitCleanGitignoreBackend = {
33165
+ isGitRepo(rootDir) {
33166
+ const result = runGit(rootDir, ["rev-parse", "--is-inside-work-tree"]);
33167
+ return result.status === 0 && result.stdout.trim() === "true";
33168
+ },
33169
+ isIgnored(rootDir, absPath) {
33170
+ const rel = normalizeRel(rootDir, absPath);
33171
+ if (rel === "" || rel.startsWith("..")) return false;
33172
+ return runGit(rootDir, [
33173
+ "check-ignore",
33174
+ "-q",
33175
+ "--",
33176
+ rel
33177
+ ]).status === 0;
33178
+ },
33179
+ listIgnoredUnder(rootDir, packageDir) {
33180
+ const root = PATH.resolve(rootDir);
33181
+ const pkg = PATH.resolve(packageDir);
33182
+ const packageRel = PATH.relative(root, pkg).split(PATH.sep).join("/");
33183
+ const result = runGit(root, [
33184
+ "ls-files",
33185
+ "--others",
33186
+ "--ignored",
33187
+ "--exclude-standard",
33188
+ "--directory",
33189
+ "-z",
33190
+ "--",
33191
+ packageRel === "" ? "." : packageRel
33192
+ ]);
33193
+ if (result.status !== 0) return [];
33194
+ const paths = [];
33195
+ for (const entry of result.stdout.split("\0")) {
33196
+ if (entry.length === 0) continue;
33197
+ const rel = entry.endsWith("/") ? entry.slice(0, -1) : entry;
33198
+ paths.push(PATH.resolve(root, rel));
33199
+ }
33200
+ return paths;
33201
+ }
33202
+ };
33203
+ /** Batch-check which absolute paths are gitignored. */
33204
+ function filterGitIgnoredPaths(rootDir, absPaths, backend = gitCleanGitignoreBackend) {
33205
+ const ignored = [];
33206
+ const notIgnored = [];
33207
+ for (const absPath of absPaths) if (backend.isIgnored(rootDir, absPath)) ignored.push(absPath);
33208
+ else notIgnored.push(absPath);
33209
+ return {
33210
+ ignored,
33211
+ notIgnored
33212
+ };
33213
+ }
33214
+ //#endregion
33215
+ //#region src/actions/package/cleanPatterns.ts
33216
+ /**
33217
+ * True when `candidate` is strictly inside `rootDir` (not equal to it and not
33218
+ * outside it). Used so clean never deletes the repo root itself or anything
33219
+ * above it.
33220
+ */
33221
+ function isStrictlyInsideRoot(rootDir, candidate) {
33222
+ const root = PATH.resolve(rootDir);
33223
+ const resolved = PATH.resolve(candidate);
33224
+ const relative = PATH.relative(root, resolved);
33225
+ return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
33226
+ }
33227
+ /**
33228
+ * Resolve clean patterns relative to `baseDir` and ensure every resolved path
33229
+ * stays strictly inside `rootDir` (the monorepo root).
33230
+ *
33231
+ * - Absolute patterns are rejected (must be package-relative).
33232
+ * - Empty / whitespace-only patterns are rejected.
33233
+ * - Patterns that resolve outside or to the root itself throw.
33234
+ *
33235
+ * Returns absolute paths/globs safe to pass to `deleteGlob`.
33236
+ */
33237
+ function resolveSafeCleanPatterns(patterns, baseDir, rootDir) {
33238
+ const root = PATH.resolve(rootDir);
33239
+ const base = PATH.resolve(baseDir);
33240
+ const resolvedPatterns = [];
33241
+ for (const pattern of patterns) {
33242
+ if (typeof pattern !== "string" || pattern.trim().length === 0) throw new Error("Clean pattern must be a non-empty string");
33243
+ if (PATH.isAbsolute(pattern)) throw new Error(`Clean pattern must be relative to the package (absolute paths are not allowed): "${pattern}"`);
33244
+ const resolved = PATH.resolve(base, pattern);
33245
+ if (!isStrictlyInsideRoot(root, resolved)) throw new Error(`Clean pattern escapes repository root: "${pattern}" (resolved to "${resolved}", root "${root}")`);
33246
+ resolvedPatterns.push(resolved);
33247
+ }
33248
+ return resolvedPatterns;
33249
+ }
33250
+ //#endregion
33251
+ //#region src/actions/package/cleanRules.ts
33252
+ const RULE_LEVELS$1 = /* @__PURE__ */ new Set([
33253
+ "error",
33254
+ "off",
33255
+ "warn"
33256
+ ]);
33257
+ function isRuleLevel$3(value) {
33258
+ return typeof value === "string" && RULE_LEVELS$1.has(value);
33259
+ }
33260
+ function levelFromObject(location, setting, defaultLevel) {
33261
+ if (setting.level !== void 0) {
33262
+ if (!isRuleLevel$3(setting.level)) throw new TypeError(`${location}.level must be "error", "warn", or "off"`);
33263
+ return setting.level;
33264
+ }
33265
+ if (setting.enabled !== void 0) {
33266
+ if (typeof setting.enabled !== "boolean") throw new TypeError(`${location}.enabled must be a boolean`);
33267
+ return setting.enabled ? defaultLevel : "off";
33268
+ }
33269
+ throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
33270
+ }
33271
+ /**
33272
+ * Local parse of rule level settings — kept here to avoid a circular import
33273
+ * through `ruleRunner` → `package/index` → `cleanRules`.
33274
+ */
33275
+ function parseCleanRuleLevel(location, setting, defaultLevel) {
33276
+ if (setting === void 0) return defaultLevel;
33277
+ if (typeof setting === "boolean") return setting ? "warn" : "off";
33278
+ if (isRuleLevel$3(setting)) return setting;
33279
+ if (Array.isArray(setting) && setting.length > 0 && isRuleLevel$3(setting[0])) return setting[0];
33280
+ if (typeof setting === "object" && setting !== null && !Array.isArray(setting)) return levelFromObject(location, setting, defaultLevel);
33281
+ throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
33282
+ }
33283
+ /** Hard safety rules — always enforced; cannot be disabled via config. */
33284
+ const CLEAN_HARD_RULES = [{
33285
+ description: "Patterns must resolve strictly inside the monorepo root (never the root itself or outside it)",
33286
+ id: "clean.inside-root"
33287
+ }, {
33288
+ description: "Patterns must be non-empty and package-relative (absolute paths are rejected)",
33289
+ id: "clean.relative-pattern"
33290
+ }];
33291
+ /**
33292
+ * Configurable clean rules. Levels can be set in `commands.clean.rules`.
33293
+ */
33294
+ const CLEAN_CONFIGURABLE_RULES = [{
33295
+ defaultLevel: "error",
33296
+ description: "Only delete paths that are ignored by .gitignore (configured patterns; builtins and include bypass this)",
33297
+ id: "clean.gitignored-only"
33298
+ }, {
33299
+ defaultLevel: "off",
33300
+ description: "Also delete every path under the package that is matched by .gitignore",
33301
+ id: "clean.gitignored-all"
33302
+ }];
33303
+ const CONFIGURABLE_RULE_IDS = new Set(CLEAN_CONFIGURABLE_RULES.map((rule) => rule.id));
33304
+ const HARD_RULE_IDS = new Set(CLEAN_HARD_RULES.map((rule) => rule.id));
33305
+ /** Immutable exclude entries — always skipped by clean, cannot be overridden. */
33306
+ const CLEAN_IMMUTABLE_EXCLUDE = [
33307
+ ".git",
33308
+ "**/.git",
33309
+ "**/.git/**"
33310
+ ];
33311
+ /**
33312
+ * Default exclude entries applied in addition to config (and immutable entries).
33313
+ * Prevents `clean.gitignored-all` from wiping install trees by default.
33314
+ */
33315
+ const CLEAN_DEFAULT_EXCLUDE = [
33316
+ "node_modules",
33317
+ "**/node_modules",
33318
+ "**/node_modules/**"
33319
+ ];
33320
+ function isCleanRuleEnabled(level) {
33321
+ return level !== "off";
33322
+ }
33323
+ function defaultLevelForRule(ruleId) {
33324
+ return CLEAN_CONFIGURABLE_RULES.find((rule) => rule.id === ruleId)?.defaultLevel ?? "off";
33325
+ }
33326
+ /**
33327
+ * Resolve configurable clean rule levels from config. Throws if the config
33328
+ * references hard (non-configurable) rules or unknown rule ids.
33329
+ */
33330
+ function resolveCleanRules(config) {
33331
+ const rules = config?.rules ?? {};
33332
+ for (const ruleId of Object.keys(rules)) {
33333
+ if (HARD_RULE_IDS.has(ruleId)) throw new TypeError(`commands.clean.rules["${ruleId}"] cannot be configured — hard safety rules are always enforced`);
33334
+ if (!CONFIGURABLE_RULE_IDS.has(ruleId)) throw new TypeError(`Unknown clean rule "${ruleId}" in commands.clean.rules. Configurable rules: ${[...CONFIGURABLE_RULE_IDS].join(", ")}`);
33335
+ }
33336
+ const level = (ruleId, setting) => {
33337
+ return parseCleanRuleLevel(`commands.clean.rules["${ruleId}"]`, setting, defaultLevelForRule(ruleId));
33338
+ };
33339
+ return {
33340
+ gitignoredAll: level("clean.gitignored-all", rules["clean.gitignored-all"]),
33341
+ gitignoredOnly: level("clean.gitignored-only", rules["clean.gitignored-only"])
33342
+ };
33343
+ }
33344
+ /** Merge exclude patterns (deduped, order preserved). */
33345
+ function resolveCleanExclude(config, mode = "normal") {
33346
+ if (mode === "immutable-only") return [...CLEAN_IMMUTABLE_EXCLUDE];
33347
+ const merged = [
33348
+ ...CLEAN_IMMUTABLE_EXCLUDE,
33349
+ ...CLEAN_DEFAULT_EXCLUDE,
33350
+ ...config?.exclude ?? []
33351
+ ];
33352
+ return [...new Set(merged)];
33353
+ }
33354
+ function uniqueStrings(values) {
33355
+ if (values === void 0 || values.length === 0) return [];
33356
+ return [...new Set(values)];
33357
+ }
33358
+ function resolveCleanInclude(config) {
33359
+ return uniqueStrings(config?.include);
33360
+ }
33361
+ function resolveCleanPatterns(config) {
33362
+ return uniqueStrings(config?.patterns);
33363
+ }
33364
+ //#endregion
33365
+ //#region src/actions/package/cleanPlan.ts
33366
+ init_index_min();
33367
+ /** Built-in clean targets — always cleaned (bypass gitignored-only). */
33368
+ const BUILTIN_CLEAN_PATTERNS = ["dist", "build"];
33369
+ function excludeModeForFull(fullMode) {
33370
+ return fullMode === "full-all" ? "immutable-only" : "normal";
33371
+ }
33372
+ function toPosix(relativePath) {
33373
+ return relativePath.split(PATH.sep).join("/");
33374
+ }
33375
+ function packageRelative(packageDir, absPath) {
33376
+ return toPosix(PATH.relative(packageDir, absPath));
33377
+ }
33378
+ /**
33379
+ * Expand absolute path/glob patterns to filesystem entries. When a pattern
33380
+ * matches nothing, the pattern itself is kept so callers can still pass it to
33381
+ * delete (no-op) and so hard-safety-resolved targets remain visible.
33382
+ */
33383
+ function expandCleanTargets(absolutePatterns) {
33384
+ const found = /* @__PURE__ */ new Set();
33385
+ for (const pattern of absolutePatterns) {
33386
+ const matches = Ze.sync(pattern, {
33387
+ absolute: true,
33388
+ dot: true,
33389
+ nodir: false
33390
+ });
33391
+ if (matches.length === 0) {
33392
+ found.add(PATH.resolve(pattern));
33393
+ continue;
33394
+ }
33395
+ for (const match of matches) found.add(PATH.resolve(match));
33396
+ }
33397
+ return [...found];
33398
+ }
33399
+ function matchesCleanExclude(packageDir, absPath, exclude) {
33400
+ const rel = packageRelative(packageDir, absPath);
33401
+ if (rel === "" || rel.startsWith("..")) {
33402
+ const fromPkg = toPosix(PATH.relative(packageDir, absPath));
33403
+ return exclude.some((pattern) => isMatch(fromPkg, pattern, { dot: true }));
33404
+ }
33405
+ return exclude.some((pattern) => {
33406
+ if (isMatch(rel, pattern, { dot: true })) return true;
33407
+ const asDir = pattern.endsWith("/**") ? pattern : `${pattern.replace(/\/$/, "")}/**`;
33408
+ return isMatch(rel, asDir, { dot: true });
33409
+ });
33410
+ }
33411
+ function filterByExclude(packageDir, paths, exclude) {
33412
+ return paths.filter((absPath) => !matchesCleanExclude(packageDir, absPath, exclude));
33413
+ }
33414
+ function filterInsideRoot(rootDir, paths) {
33415
+ return paths.filter((absPath) => isStrictlyInsideRoot(rootDir, absPath));
33416
+ }
33417
+ function issueLevel(level) {
33418
+ return level === "warn" ? "warn" : "error";
33419
+ }
33420
+ function applyGitignoredOnly(params) {
33421
+ const { existing, gitignore, issues, packageDir, rootDir, ruleLevel, targets } = params;
33422
+ if (existing.length === 0) return;
33423
+ if (!gitignore.isGitRepo(rootDir)) {
33424
+ issues.push({
33425
+ level: issueLevel(ruleLevel),
33426
+ message: "clean.gitignored-only is enabled but the package is not inside a git work tree",
33427
+ rule: "clean.gitignored-only"
33428
+ });
33429
+ if (ruleLevel === "warn") for (const absPath of existing) targets.add(absPath);
33430
+ return;
33431
+ }
33432
+ const { ignored, notIgnored } = filterGitIgnoredPaths(rootDir, existing, gitignore);
33433
+ for (const absPath of ignored) targets.add(absPath);
33434
+ for (const absPath of notIgnored) {
33435
+ const rel = packageRelative(packageDir, absPath);
33436
+ issues.push({
33437
+ level: issueLevel(ruleLevel),
33438
+ message: `Refusing to clean non-gitignored path "${rel}" (clean.gitignored-only)`,
33439
+ rule: "clean.gitignored-only"
33440
+ });
33441
+ }
33442
+ }
33443
+ function applyGitignoredAll(params) {
33444
+ const { gitignore, issues, packageDir, rootDir, ruleLevel, targets } = params;
33445
+ if (gitignore.isGitRepo(rootDir)) {
33446
+ for (const absPath of gitignore.listIgnoredUnder(rootDir, packageDir)) targets.add(absPath);
33447
+ return;
33448
+ }
33449
+ issues.push({
33450
+ level: issueLevel(ruleLevel),
33451
+ message: "clean.gitignored-all is enabled but the package is not inside a git work tree",
33452
+ rule: "clean.gitignored-all"
33453
+ });
33454
+ }
33455
+ /**
33456
+ * Build the set of absolute paths `xy clean` will delete for one package.
33457
+ *
33458
+ * Pipeline:
33459
+ * 1. Hard safety on all configured patterns (throws on escape)
33460
+ * 2. Expand builtins + include (always-clean; bypass gitignored-only)
33461
+ * 3. Expand config patterns; enforce gitignored-only when enabled
33462
+ * 4. Optionally add all gitignored paths (`--full` / `--full-all` or rule)
33463
+ * 5. Apply exclude + re-check inside-root
33464
+ */
33465
+ function buildCleanPlan(options) {
33466
+ const { config, extraPatterns = [], fullMode = "none", gitignore = gitCleanGitignoreBackend, packageDir, rootDir } = options;
33467
+ const rules = resolveCleanRules(config);
33468
+ const issues = [];
33469
+ const exclude = resolveCleanExclude(config, excludeModeForFull(fullMode));
33470
+ const configuredPatterns = [...resolveCleanPatterns(config), ...extraPatterns];
33471
+ const safeBuiltin = resolveSafeCleanPatterns([...BUILTIN_CLEAN_PATTERNS], packageDir, rootDir);
33472
+ const safeInclude = resolveSafeCleanPatterns(resolveCleanInclude(config), packageDir, rootDir);
33473
+ const safePatterns = resolveSafeCleanPatterns(configuredPatterns, packageDir, rootDir);
33474
+ const targets = /* @__PURE__ */ new Set([...expandCleanTargets(safeBuiltin), ...expandCleanTargets(safeInclude)]);
33475
+ const patternCandidates = expandCleanTargets(safePatterns).filter((absPath) => !targets.has(absPath));
33476
+ if (isCleanRuleEnabled(rules.gitignoredOnly) && patternCandidates.length > 0) {
33477
+ const existing = patternCandidates.filter((absPath) => fs.existsSync(absPath));
33478
+ for (const absPath of patternCandidates) if (!fs.existsSync(absPath)) targets.add(absPath);
33479
+ applyGitignoredOnly({
33480
+ existing,
33481
+ gitignore,
33482
+ issues,
33483
+ packageDir,
33484
+ rootDir,
33485
+ ruleLevel: rules.gitignoredOnly,
33486
+ targets
33487
+ });
33488
+ } else for (const absPath of patternCandidates) targets.add(absPath);
33489
+ const forceGitignoredAll = fullMode === "full" || fullMode === "full-all";
33490
+ if (forceGitignoredAll || isCleanRuleEnabled(rules.gitignoredAll)) applyGitignoredAll({
33491
+ gitignore,
33492
+ issues,
33493
+ packageDir,
33494
+ rootDir,
33495
+ ruleLevel: forceGitignoredAll ? "error" : rules.gitignoredAll,
33496
+ targets
33497
+ });
33498
+ return {
33499
+ deletePaths: filterInsideRoot(rootDir, filterByExclude(packageDir, [...targets], exclude)).toSorted((a, b) => a.localeCompare(b)),
33500
+ issues,
33501
+ rules
33502
+ };
33503
+ }
33504
+ function cleanPlanExitCode(plan) {
33505
+ return plan.issues.some((issue) => issue.level === "error") ? 1 : 0;
33506
+ }
33507
+ //#endregion
33135
33508
  //#region src/actions/package/clean-outputs.ts
33136
- const packageCleanOutputs = (options = {}) => {
33509
+ async function loadCleanConfig(pkg) {
33510
+ return await loadWorkspaceCommandConfig(pkg, "clean");
33511
+ }
33512
+ function mergeExtraPatterns(config, extraPatterns) {
33513
+ if (extraPatterns === void 0 || extraPatterns.length === 0) return config;
33514
+ return {
33515
+ ...config,
33516
+ patterns: [...config.patterns ?? [], ...extraPatterns]
33517
+ };
33518
+ }
33519
+ function deletePaths(paths) {
33520
+ const ordered = [...paths].toSorted((a, b) => b.length - a.length);
33521
+ for (const target of ordered) deleteGlob(target);
33522
+ }
33523
+ const packageCleanOutputs = async (options = {}) => {
33137
33524
  const pkg = options.pkg ?? INIT_CWD();
33138
33525
  const pkgName = options.pkgName ?? packageName();
33139
- const folders = [
33140
- PATH.join(pkg, "dist"),
33141
- PATH.join(pkg, "build"),
33142
- PATH.join(pkg, "docs")
33143
- ];
33144
- (isJsonMode() ? console.error : console.log)(chalk.green(`Cleaning Outputs [${pkgName}]`));
33145
- for (const folder of folders) deleteGlob(folder);
33146
- return 0;
33526
+ const rootDir = options.rootDir ?? findWorkspaceRoot(pkg);
33527
+ const log = isJsonMode() ? console.error : console.log;
33528
+ log(chalk.green(`Cleaning Outputs [${pkgName}]`));
33529
+ const baseConfig = options.skipConfigLoad ? { patterns: options.extraPatterns } : await loadCleanConfig(pkg);
33530
+ const plan = buildCleanPlan({
33531
+ config: options.skipConfigLoad ? baseConfig : mergeExtraPatterns(baseConfig, options.extraPatterns),
33532
+ fullMode: options.fullMode ?? "none",
33533
+ gitignore: options.gitignore,
33534
+ packageDir: pkg,
33535
+ rootDir
33536
+ });
33537
+ for (const issue of plan.issues) log((issue.level === "error" ? chalk.red : chalk.yellow)(` ${issue.level === "error" ? "✗" : "⚠"} [${issue.rule}] ${issue.message}`));
33538
+ deletePaths(plan.deletePaths);
33539
+ if (plan.deletePaths.length > 0 && !isJsonMode()) for (const deleted of plan.deletePaths) {
33540
+ const relative = PATH.relative(pkg, deleted);
33541
+ log(chalk.gray(` removed ${relative.length > 0 ? relative : deleted}`));
33542
+ }
33543
+ return cleanPlanExitCode(plan);
33147
33544
  };
33148
33545
  //#endregion
33149
33546
  //#region src/actions/package/clean-typescript.ts
33547
+ /** Cleans TypeScript build info and local lint caches for a package. */
33150
33548
  const packageCleanTypescript = (options = {}) => {
33151
33549
  const pkg = options.pkg ?? INIT_CWD();
33152
33550
  const pkgName = options.pkgName ?? packageName();
@@ -33161,8 +33559,8 @@ const packageCleanTypescript = (options = {}) => {
33161
33559
  };
33162
33560
  //#endregion
33163
33561
  //#region src/actions/package/clean.ts
33164
- const packageClean = (options = {}) => {
33165
- return [packageCleanOutputs(options), packageCleanTypescript(options)].reduce((prev, value) => prev + value, 0);
33562
+ const packageClean = async (options = {}) => {
33563
+ return await packageCleanOutputs(options) + packageCleanTypescript(options);
33166
33564
  };
33167
33565
  //#endregion
33168
33566
  //#region src/actions/package/compile/inputs.ts
@@ -36631,7 +37029,7 @@ function migrateFieldToExports(pkg, field, exportKey, shouldFix) {
36631
37029
  const exports = pkg.exports;
36632
37030
  if (exports && typeof exports === "object") {
36633
37031
  const dot = exports["."];
36634
- if (dot != null && typeof dot === "object" && !Object.hasOwn(dot, exportKey)) {
37032
+ if (typeof dot === "object" && dot != null && !Object.hasOwn(dot, exportKey)) {
36635
37033
  dot[exportKey] = exportValue;
36636
37034
  console.warn(chalk.yellow(`Publint [custom]: migrated "${field}" to "exports['.'].${exportKey}" (${fieldValue})`));
36637
37035
  }
@@ -36999,7 +37397,7 @@ function fixVersionConsistency(cwd, rootPkg, writeRootPackageJson, workspaces) {
36999
37397
  if (!pkg) continue;
37000
37398
  const version = pkg.version;
37001
37399
  const validVersion = version === void 0 ? null : import_semver.default.valid(version);
37002
- if (version !== void 0 && version.length > 0 && validVersion !== null && validVersion.length > 0) versions.push(version);
37400
+ if (version !== void 0 && validVersion !== null && version.length > 0 && validVersion.length > 0) versions.push(version);
37003
37401
  }
37004
37402
  if (versions.length === 0) return;
37005
37403
  const highest = versions.toSorted(import_semver.default.rcompare)[0];
@@ -37560,43 +37958,63 @@ function hasPackageCleanScript(rootDir, workspace) {
37560
37958
  const pkg = readPackageJson$2(PATH.join(rootDir, workspace.location));
37561
37959
  return Object.hasOwn(pkg?.scripts ?? {}, "package-clean");
37562
37960
  }
37563
- async function cleanBuiltInWorkspaces(rootDir, workspaces, jobs) {
37961
+ async function cleanBuiltInWorkspaces(rootDir, workspaces, jobs, fullMode) {
37564
37962
  return await safeExitAsync(async () => {
37565
- (isJsonMode() ? console.error : console.log)(chalk.green(`Clean [${packageName()}]`));
37963
+ const log = isJsonMode() ? console.error : console.log;
37964
+ const fullLabel = fullMode === "none" ? "" : ` [${fullMode}]`;
37965
+ log(chalk.green(`Clean${fullLabel} [${packageName()}]`));
37566
37966
  const results = Array.from({ length: workspaces.length }, () => 0);
37567
37967
  await runWithConcurrency(workspaces.map((workspace, index) => ({
37568
37968
  index,
37569
37969
  workspace
37570
37970
  })), Math.max(1, jobs), async ({ index, workspace }) => {
37571
- results[index] = packageClean({
37971
+ results[index] = await packageClean({
37972
+ fullMode,
37572
37973
  pkg: PATH.resolve(rootDir, workspace.location),
37573
- pkgName: workspace.name
37974
+ pkgName: workspace.name,
37975
+ rootDir
37574
37976
  });
37575
37977
  });
37576
37978
  return results.reduce((total, result) => total + result, 0);
37577
37979
  });
37578
37980
  }
37579
- const clean = async ({ deferLocalScript, jobs, verbose, pkg }) => {
37981
+ const clean = async ({ deferLocalScript, fullMode = "none", jobs, verbose, pkg }) => {
37580
37982
  if (pkg != null && pkg.length > 0) return await cleanPackage({
37983
+ fullMode,
37581
37984
  pkg,
37582
37985
  verbose
37583
37986
  });
37584
37987
  return cleanAll({
37585
37988
  deferLocalScript,
37989
+ fullMode,
37586
37990
  jobs,
37587
37991
  verbose
37588
37992
  });
37589
37993
  };
37590
- const cleanPackage = ({ pkg }) => {
37994
+ const cleanPackage = async ({ fullMode = "none", pkg }) => {
37591
37995
  const pm = getPackageManager();
37592
- return runStepsAsync(`Clean [${pkg}]`, [pm.runInWorkspace(pkg, "package-clean")]);
37996
+ if (fullMode === "none") return runStepsAsync(`Clean [${pkg}]`, [pm.runInWorkspace(pkg, "package-clean")]);
37997
+ const rootDir = INIT_CWD();
37998
+ const workspace = pm.listWorkspaces().find((entry) => entry.name === pkg || entry.location === pkg);
37999
+ return packageClean({
38000
+ fullMode,
38001
+ pkg: workspace === void 0 ? PATH.resolve(rootDir, pkg) : PATH.resolve(rootDir, workspace.location),
38002
+ pkgName: workspace?.name ?? pkg,
38003
+ rootDir: PATH.resolve(rootDir)
38004
+ });
37593
38005
  };
37594
- function cleanScriptArgs({ jobs, verbose }) {
37595
- return [...jobs === void 0 ? [] : ["-j", String(jobs)], ...verbose ?? false ? ["-v"] : []];
38006
+ function cleanScriptArgs({ fullMode = "none", jobs, verbose }) {
38007
+ return [
38008
+ ...jobs === void 0 ? [] : ["-j", String(jobs)],
38009
+ ...verbose ?? false ? ["-v"] : [],
38010
+ ...fullMode === "full" ? ["--full"] : [],
38011
+ ...fullMode === "full-all" ? ["--full-all"] : []
38012
+ ];
37596
38013
  }
37597
- const cleanAll = async ({ deferLocalScript = false, jobs = 64, verbose }) => {
38014
+ const cleanAll = async ({ deferLocalScript = false, fullMode = "none", jobs = 64, verbose }) => {
37598
38015
  if (deferLocalScript) {
37599
38016
  const deferredResult = tryRunLocalScript("clean", { args: cleanScriptArgs({
38017
+ fullMode,
37600
38018
  jobs,
37601
38019
  verbose
37602
38020
  }) });
@@ -37605,8 +38023,9 @@ const cleanAll = async ({ deferLocalScript = false, jobs = 64, verbose }) => {
37605
38023
  const pm = getPackageManager();
37606
38024
  const rootDir = INIT_CWD();
37607
38025
  const workspaces = cleanWorkspaces(rootDir, pm);
37608
- const scripted = workspaces.filter((workspace) => hasPackageCleanScript(rootDir, workspace));
37609
- const builtInResult = await cleanBuiltInWorkspaces(rootDir, workspaces.filter((workspace) => !hasPackageCleanScript(rootDir, workspace)), jobs);
38026
+ const useBuiltInForFull = fullMode !== "none";
38027
+ const scripted = useBuiltInForFull ? [] : workspaces.filter((workspace) => hasPackageCleanScript(rootDir, workspace));
38028
+ const builtInResult = await cleanBuiltInWorkspaces(rootDir, useBuiltInForFull ? workspaces : workspaces.filter((workspace) => !hasPackageCleanScript(rootDir, workspace)), jobs, fullMode);
37610
38029
  if (scripted.length === 0) return builtInResult;
37611
38030
  return builtInResult + await runStepsAsync("Clean [scripts]", scripted.map((workspace) => pm.runInWorkspace(workspace.name, "package-clean")));
37612
38031
  };
@@ -37823,11 +38242,11 @@ function handleExportDeclaration(node, declarations, reExportsFromRelative, reEx
37823
38242
  const isRelative = moduleSpec?.startsWith(".") ?? false;
37824
38243
  const deprecated = hasDeprecatedTag(node.getSourceFile(), node) ? true : void 0;
37825
38244
  if (node.exportClause && ts.isNamedExports(node.exportClause)) {
37826
- if (moduleSpec != null && moduleSpec.length > 0 && isRelative) handleNamedExportClauseWithModule(node.exportClause, moduleSpec, reExportsFromRelative, deprecated, node.getSourceFile());
38245
+ if (isRelative && moduleSpec != null && moduleSpec.length > 0) handleNamedExportClauseWithModule(node.exportClause, moduleSpec, reExportsFromRelative, deprecated, node.getSourceFile());
37827
38246
  else if (moduleSpec == null || moduleSpec.length === 0) handleNamedExportClauseLocal(node.exportClause, declarations, deprecated);
37828
38247
  return;
37829
38248
  }
37830
- if (!node.exportClause && moduleSpec != null && moduleSpec.length > 0 && isRelative) reExportAllFromRelative.add(moduleSpec);
38249
+ if (isRelative && !node.exportClause && moduleSpec != null && moduleSpec.length > 0) reExportAllFromRelative.add(moduleSpec);
37831
38250
  }
37832
38251
  function visitTopLevel(node, ctx) {
37833
38252
  const named = tryNamedDeclaration(node);
@@ -38452,7 +38871,7 @@ function resolveFixLocations(findings, analyses) {
38452
38871
  }
38453
38872
  function isNodeMatchingSymbol(node, symbol) {
38454
38873
  if (ts.isIdentifier(node) && node.text === symbol) return true;
38455
- if (ts.isExportAssignment(node) && symbol === "default") return true;
38874
+ if (symbol === "default" && ts.isExportAssignment(node)) return true;
38456
38875
  return Boolean(ts.isExportSpecifier(node) && (node.name.text === symbol || node.propertyName?.text === symbol));
38457
38876
  }
38458
38877
  function isStatementContainingSymbol(statement, symbol) {
@@ -38829,8 +39248,7 @@ function isRuleApplicableToPackage(rule, analysis) {
38829
39248
  function evaluateInternalRule(analysis, rule, shouldUseMonorepoRefs) {
38830
39249
  const findings = [];
38831
39250
  for (const symbol of analysis.symbols) {
38832
- const isReferenced = symbol[shouldUseMonorepoRefs ? "usedInMonorepo" : "isUsedInPackage"];
38833
- if (symbol.onPublicSurface || isReferenced) continue;
39251
+ if (symbol[shouldUseMonorepoRefs ? "usedInMonorepo" : "isUsedInPackage"] || symbol.onPublicSurface) continue;
38834
39252
  findings.push(makeFinding(analysis, rule.id, rule.meta.scope, symbol.file, symbol.name, symbol.line, symbol.column, void 0, symbol.deprecated));
38835
39253
  }
38836
39254
  return findings;
@@ -38938,7 +39356,7 @@ function evaluateRuleForAnalysis(analysis, rule, repoUsage, workspaceUsage) {
38938
39356
  if (!isRuleApplicableToPackage(rule, analysis)) return [];
38939
39357
  if (rule.meta.scope === "package") return evaluatePackageRules(analysis, rule);
38940
39358
  if (rule.meta.scope === "repo") return evaluateRepoRules(analysis, rule, repoUsage, workspaceUsage);
38941
- if (rule.meta.scope === "workspace" && workspaceUsage !== void 0) return evaluateWorkspaceRules(analysis, rule, workspaceUsage);
39359
+ if (workspaceUsage !== void 0 && rule.meta.scope === "workspace") return evaluateWorkspaceRules(analysis, rule, workspaceUsage);
38942
39360
  return [];
38943
39361
  }
38944
39362
  function evaluateDeadRules(analyses, rules, repoUsage, workspaceUsage) {
@@ -39606,7 +40024,7 @@ async function buildDeadAnalysisContext(targets, workspace, isVerbose, includeDe
39606
40024
  analyses,
39607
40025
  disabledWorkspaceRules,
39608
40026
  effectiveRules: rules.map((rule) => {
39609
- if (rule.requiresCodeWorkspace !== true || hasCodeWorkspace) return rule;
40027
+ if (hasCodeWorkspace || rule.requiresCodeWorkspace !== true) return rule;
39610
40028
  return {
39611
40029
  ...rule,
39612
40030
  enabled: false
@@ -39963,7 +40381,7 @@ function recordRuleOutcome(report, rule, diagnostics, fixedCount, reporter) {
39963
40381
  reporter?.diagnostic?.(diagnostic);
39964
40382
  }
39965
40383
  if (fixedCount > 0) reporter?.fixed?.(rule, fixedCount);
39966
- if (diagnostics.length === 0 && fixedCount === 0) reporter?.passed?.(rule);
40384
+ if (fixedCount === 0 && diagnostics.length === 0) reporter?.passed?.(rule);
39967
40385
  }
39968
40386
  async function runRuleChecks({ commandName, configKey = commandName, config, context, fix = false, reporter, rules, strict = isStrictMode() }) {
39969
40387
  validateConfiguredRuleIds(commandName, configKey, rules, config);
@@ -40402,7 +40820,7 @@ function logLintlintDiagnostic(diagnostic) {
40402
40820
  console.log(color(` ${marker} ${diagnostic.message}`));
40403
40821
  }
40404
40822
  function logAdditions({ additions }, isVerbose) {
40405
- if (additions.length === 0 || !isVerbose) return;
40823
+ if (!isVerbose || additions.length === 0) return;
40406
40824
  console.log(chalk.gray(`\n${additions.length} local addition(s) (not in shared config):`));
40407
40825
  for (const { rule, local } of additions) console.log(chalk.gray(` ${rule}: ${formatRule(local)}`));
40408
40826
  }
@@ -40822,7 +41240,7 @@ function fixEnginesOnlyInNonTerminal(cwd, _pkg, workspaces) {
40822
41240
  writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`, "utf8");
40823
41241
  console.log(chalk.green(` ✔ Fixed: removed engines from ${location}/package.json`));
40824
41242
  }
40825
- if (!isTerminalPackage(pkg) && !Boolean(pkg.engines) && enginesTemplate) {
41243
+ if (enginesTemplate && !isTerminalPackage(pkg) && !Boolean(pkg.engines)) {
40826
41244
  pkg.engines = enginesTemplate;
40827
41245
  writeFileSync(pkgPath, `${JSON.stringify(pkg, null, 2)}\n`, "utf8");
40828
41246
  console.log(chalk.green(` ✔ Fixed: added engines to ${location}/package.json`));
@@ -42744,10 +43162,10 @@ function mapOutputPath(relativePath, variables) {
42744
43162
  }
42745
43163
  function isPmSpecificFile(relativePath, pm) {
42746
43164
  if (relativePath === "pnpm-workspace.yaml" && pm !== "pnpm") return true;
42747
- if (relativePath.includes("build-pnpm") && pm !== "pnpm") return true;
42748
- if (relativePath.includes("build-npm") && pm !== "npm") return true;
42749
- if (relativePath.includes("build-bun") && pm !== "bun") return true;
42750
- return Boolean(relativePath.includes("build-yarn") && pm !== "yarn");
43165
+ if (pm !== "pnpm" && relativePath.includes("build-pnpm")) return true;
43166
+ if (pm !== "npm" && relativePath.includes("build-npm")) return true;
43167
+ if (pm !== "bun" && relativePath.includes("build-bun")) return true;
43168
+ return Boolean(pm !== "yarn" && relativePath.includes("build-yarn"));
42751
43169
  }
42752
43170
  function mapBuildWorkflowName(outputPath) {
42753
43171
  return outputPath.replace(/build-(bun|npm|pnpm|yarn)\.yml/, "build.yml");
@@ -42907,6 +43325,42 @@ const retest = ({ target } = {}) => {
42907
43325
  return runSteps("Re-Test", [["vitest", ["--clearCache"]], ["vitest", [target ?? "."]]]);
42908
43326
  };
42909
43327
  //#endregion
43328
+ //#region src/actions/cleanRuleCatalog.ts
43329
+ async function loadCommandConfig$1(commandName, pkg) {
43330
+ if (pkg !== void 0 && pkg.length > 0) {
43331
+ const workspace = getPackageManager().findWorkspace(pkg);
43332
+ if (workspace === void 0) throw new Error(`Workspace not found: ${pkg}`);
43333
+ return loadWorkspaceCommandConfig(workspace.location, commandName);
43334
+ }
43335
+ return loadWorkspaceCommandConfig(process.cwd(), commandName);
43336
+ }
43337
+ function sortRules$1(rules) {
43338
+ return rules.toSorted((left, right) => {
43339
+ const command = left.command.localeCompare(right.command);
43340
+ return command === 0 ? left.id.localeCompare(right.id) : command;
43341
+ });
43342
+ }
43343
+ async function getCleanRuleCatalog(pkg) {
43344
+ const resolved = resolveCleanRules(await loadCommandConfig$1("clean", pkg));
43345
+ const hard = CLEAN_HARD_RULES.map((rule) => ({
43346
+ command: RULE_COMMANDS.clean.command,
43347
+ defaultLevel: "error",
43348
+ description: `${rule.description} (always enforced)`,
43349
+ fixable: false,
43350
+ id: rule.id,
43351
+ level: "error"
43352
+ }));
43353
+ const configurable = CLEAN_CONFIGURABLE_RULES.map((rule) => ({
43354
+ command: RULE_COMMANDS.clean.command,
43355
+ defaultLevel: rule.defaultLevel,
43356
+ description: rule.description,
43357
+ fixable: false,
43358
+ id: rule.id,
43359
+ level: rule.id === "clean.gitignored-only" ? resolved.gitignoredOnly : resolved.gitignoredAll
43360
+ }));
43361
+ return sortRules$1([...hard, ...configurable]);
43362
+ }
43363
+ //#endregion
42910
43364
  //#region ../../node_modules/.pnpm/ansi-regex@5.0.1/node_modules/ansi-regex/index.js
42911
43365
  var require_ansi_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42912
43366
  module.exports = ({ onlyFirst = false } = {}) => {
@@ -48804,8 +49258,8 @@ var require_api = /* @__PURE__ */ __commonJSMin(((exports) => {
48804
49258
  Object.defineProperty(exports, "__esModule", { value: true });
48805
49259
  }));
48806
49260
  //#endregion
48807
- //#region ../../node_modules/.pnpm/table@6.9.0/node_modules/table/dist/src/index.js
48808
- var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
49261
+ //#region src/actions/ruleCatalogRender.ts
49262
+ var import_src = (/* @__PURE__ */ __commonJSMin(((exports) => {
48809
49263
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
48810
49264
  if (k2 === void 0) k2 = k;
48811
49265
  Object.defineProperty(o, k2, {
@@ -48845,7 +49299,130 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
48845
49299
  }
48846
49300
  });
48847
49301
  __exportStar(require_api(), exports);
48848
- }));
49302
+ })))();
49303
+ const levelColor = {
49304
+ error: "red",
49305
+ off: "gray",
49306
+ warn: "yellow"
49307
+ };
49308
+ function sortRules(rules) {
49309
+ return rules.toSorted((left, right) => {
49310
+ const command = left.command.localeCompare(right.command);
49311
+ return command === 0 ? left.id.localeCompare(right.id) : command;
49312
+ });
49313
+ }
49314
+ function maxWidth(header, values, max = Infinity) {
49315
+ return Math.min(max, Math.max(header.length, ...values.map((value) => value.length)));
49316
+ }
49317
+ function resolveTableWidth() {
49318
+ const columns = process.stdout.isTTY ? process.stdout.columns : void 0;
49319
+ return Math.max(72, Math.min(columns ?? 120, 160) - 2);
49320
+ }
49321
+ function resolveRuleTableWidths(rows, hasWeight) {
49322
+ const columnCount = hasWeight ? 5 : 4;
49323
+ const tableChromeWidth = columnCount + 1 + columnCount * 2;
49324
+ const level = maxWidth("Level", rows.map((row) => row.level));
49325
+ const fix = maxWidth("Fix", rows.map((row) => row.fix));
49326
+ const weight = hasWeight ? maxWidth("Weight", rows.map((row) => row.weight), 12) : void 0;
49327
+ let id = maxWidth("Rule", rows.map((row) => row.id), 56);
49328
+ const fixedWidth = () => tableChromeWidth + level + fix + id + (weight ?? 0);
49329
+ const minimumDescription = 28;
49330
+ const tableWidth = resolveTableWidth();
49331
+ if (tableWidth - fixedWidth() < minimumDescription) id = Math.max(24, id - (minimumDescription - (tableWidth - fixedWidth())));
49332
+ const availableDescription = Math.max(20, tableWidth - fixedWidth());
49333
+ const naturalDescription = maxWidth("Description", rows.map((row) => row.description), 72);
49334
+ return {
49335
+ description: Math.min(naturalDescription, availableDescription),
49336
+ fix,
49337
+ id,
49338
+ level,
49339
+ ...weight !== void 0 && { weight }
49340
+ };
49341
+ }
49342
+ function ruleTableConfig(widths, hasWeight) {
49343
+ return {
49344
+ border: (0, import_src.getBorderCharacters)("norc"),
49345
+ columnDefault: {
49346
+ paddingLeft: 1,
49347
+ paddingRight: 1,
49348
+ wrapWord: true
49349
+ },
49350
+ columns: {
49351
+ 0: { width: widths.level },
49352
+ 1: { width: widths.id },
49353
+ 2: {
49354
+ alignment: "center",
49355
+ width: widths.fix
49356
+ },
49357
+ ...hasWeight ? {
49358
+ 3: {
49359
+ alignment: "right",
49360
+ width: widths.weight
49361
+ },
49362
+ 4: { width: widths.description }
49363
+ } : { 3: { width: widths.description } }
49364
+ },
49365
+ drawHorizontalLine: (index, size) => [
49366
+ 0,
49367
+ 1,
49368
+ size
49369
+ ].includes(index)
49370
+ };
49371
+ }
49372
+ function formatRuleTable(rules) {
49373
+ const rows = rules.map((rule) => ({
49374
+ description: rule.description ?? "",
49375
+ fix: rule.fixable ? "yes" : "no",
49376
+ id: rule.id,
49377
+ level: rule.defaultLevel === rule.level ? rule.defaultLevel : `${rule.defaultLevel} (${rule.level})`,
49378
+ resolvedLevel: rule.level,
49379
+ weight: rule.weight === void 0 ? "" : String(rule.weight)
49380
+ }));
49381
+ const hasWeight = rows.some((row) => row.weight.length > 0);
49382
+ const widths = resolveRuleTableWidths(rows, hasWeight);
49383
+ return (0, import_src.table)([[
49384
+ chalk.gray.bold("Level"),
49385
+ chalk.gray.bold("Rule"),
49386
+ chalk.gray.bold("Fix"),
49387
+ ...hasWeight ? [chalk.gray.bold("Weight")] : [],
49388
+ chalk.gray.bold("Description")
49389
+ ], ...rows.map((row) => [
49390
+ chalk[levelColor[row.resolvedLevel]](row.level),
49391
+ chalk.cyan(row.id),
49392
+ chalk.gray(row.fix),
49393
+ ...hasWeight ? [chalk.gray(row.weight)] : [],
49394
+ chalk.gray(row.description)
49395
+ ])], ruleTableConfig(widths, hasWeight)).trimEnd().split("\n").map((line) => ` ${line}`).join("\n");
49396
+ }
49397
+ function renderRuleCatalog(rules, title = "Rules") {
49398
+ console.log(chalk.bold(title));
49399
+ let currentCommand;
49400
+ let currentRules = [];
49401
+ const sortedRules = sortRules([...rules]);
49402
+ for (const rule of sortedRules) {
49403
+ if (rule.command !== currentCommand) {
49404
+ if (currentRules.length > 0) console.log(formatRuleTable(currentRules));
49405
+ currentCommand = rule.command;
49406
+ currentRules = [];
49407
+ console.log();
49408
+ console.log(chalk.green(currentCommand));
49409
+ }
49410
+ currentRules.push(rule);
49411
+ }
49412
+ if (currentRules.length > 0) console.log(formatRuleTable(currentRules));
49413
+ }
49414
+ function ruleCatalogResult(rules, title) {
49415
+ const sorted = sortRules(rules);
49416
+ if (!isJsonMode()) renderRuleCatalog(sorted, title);
49417
+ return {
49418
+ envelope: {
49419
+ data: sorted,
49420
+ errorCount: 0,
49421
+ warningCount: 0
49422
+ },
49423
+ exitCode: 0
49424
+ };
49425
+ }
48849
49426
  //#endregion
48850
49427
  //#region src/actions/skills/passthrough.ts
48851
49428
  const ANSI_PREFIX = String.raw`\x1B\[[\d;]*m`;
@@ -49268,7 +49845,7 @@ const installMissingSkill = async (skillName) => {
49268
49845
  ]);
49269
49846
  };
49270
49847
  const missingSkillReason = (profile, skillName) => {
49271
- if (profile.isUsingToolchain && skillName === "xy-toolchain") return "repo uses @ariestools/toolchain";
49848
+ if (skillName === "xy-toolchain" && profile.isUsingToolchain) return "repo uses @ariestools/toolchain";
49272
49849
  return "required for repo profile";
49273
49850
  };
49274
49851
  const checkRequiredSkills = (required, installed, latestVersions, profile, isOffline) => {
@@ -49437,12 +50014,6 @@ const skillsLint = async (options = {}) => {
49437
50014
  };
49438
50015
  //#endregion
49439
50016
  //#region src/actions/ruleCatalog.ts
49440
- var import_src = require_src();
49441
- const levelColor = {
49442
- error: "red",
49443
- off: "gray",
49444
- warn: "yellow"
49445
- };
49446
50017
  const REPO_LINT_RULES = [
49447
50018
  [
49448
50019
  "repo.root-private",
@@ -49566,12 +50137,6 @@ async function loadCommandConfig(commandName, pkg) {
49566
50137
  }
49567
50138
  return loadWorkspaceCommandConfig(process.cwd(), commandName);
49568
50139
  }
49569
- function sortRules(rules) {
49570
- return rules.toSorted((left, right) => {
49571
- const command = left.command.localeCompare(right.command);
49572
- return command === 0 ? left.id.localeCompare(right.id) : command;
49573
- });
49574
- }
49575
50140
  function staticCatalog(command, configKey, definitions, config) {
49576
50141
  const ruleSettings = config?.rules ?? {};
49577
50142
  const known = new Set(definitions.flatMap((rule) => [rule.id, ...rule.aliases ?? []]));
@@ -49762,6 +50327,7 @@ function getCycleRuleCatalog(depth = 25) {
49762
50327
  async function loadDirectRuleCatalog() {
49763
50328
  return sortRules([...(await Promise.all([
49764
50329
  getApiExposureRuleCatalog(),
50330
+ getCleanRuleCatalog(),
49765
50331
  getDeadRuleCatalog(),
49766
50332
  getDeplintRuleCatalog(),
49767
50333
  getGitlintRuleCatalog(),
@@ -49795,118 +50361,6 @@ async function getFixRuleCatalog() {
49795
50361
  async function getMasterRuleCatalog() {
49796
50362
  return sortRules(await loadDirectRuleCatalog());
49797
50363
  }
49798
- function maxWidth(header, values, max = Infinity) {
49799
- return Math.min(max, Math.max(header.length, ...values.map((value) => value.length)));
49800
- }
49801
- function resolveTableWidth() {
49802
- const columns = process.stdout.isTTY ? process.stdout.columns : void 0;
49803
- return Math.max(72, Math.min(columns ?? 120, 160) - 2);
49804
- }
49805
- function resolveRuleTableWidths(rows, hasWeight) {
49806
- const columnCount = hasWeight ? 5 : 4;
49807
- const tableChromeWidth = columnCount + 1 + columnCount * 2;
49808
- const level = maxWidth("Level", rows.map((row) => row.level));
49809
- const fix = maxWidth("Fix", rows.map((row) => row.fix));
49810
- const weight = hasWeight ? maxWidth("Weight", rows.map((row) => row.weight), 12) : void 0;
49811
- let id = maxWidth("Rule", rows.map((row) => row.id), 56);
49812
- const fixedWidth = () => tableChromeWidth + level + fix + id + (weight ?? 0);
49813
- const minimumDescription = 28;
49814
- const tableWidth = resolveTableWidth();
49815
- if (tableWidth - fixedWidth() < minimumDescription) id = Math.max(24, id - (minimumDescription - (tableWidth - fixedWidth())));
49816
- const availableDescription = Math.max(20, tableWidth - fixedWidth());
49817
- const naturalDescription = maxWidth("Description", rows.map((row) => row.description), 72);
49818
- return {
49819
- description: Math.min(naturalDescription, availableDescription),
49820
- fix,
49821
- id,
49822
- level,
49823
- ...weight !== void 0 && { weight }
49824
- };
49825
- }
49826
- function ruleTableConfig(widths, hasWeight) {
49827
- return {
49828
- border: (0, import_src.getBorderCharacters)("norc"),
49829
- columnDefault: {
49830
- paddingLeft: 1,
49831
- paddingRight: 1,
49832
- wrapWord: true
49833
- },
49834
- columns: {
49835
- 0: { width: widths.level },
49836
- 1: { width: widths.id },
49837
- 2: {
49838
- alignment: "center",
49839
- width: widths.fix
49840
- },
49841
- ...hasWeight ? {
49842
- 3: {
49843
- alignment: "right",
49844
- width: widths.weight
49845
- },
49846
- 4: { width: widths.description }
49847
- } : { 3: { width: widths.description } }
49848
- },
49849
- drawHorizontalLine: (index, size) => [
49850
- 0,
49851
- 1,
49852
- size
49853
- ].includes(index)
49854
- };
49855
- }
49856
- function formatRuleTable(rules) {
49857
- const rows = rules.map((rule) => ({
49858
- description: rule.description ?? "",
49859
- fix: rule.fixable ? "yes" : "no",
49860
- id: rule.id,
49861
- level: rule.defaultLevel === rule.level ? rule.defaultLevel : `${rule.defaultLevel} (${rule.level})`,
49862
- resolvedLevel: rule.level,
49863
- weight: rule.weight === void 0 ? "" : String(rule.weight)
49864
- }));
49865
- const hasWeight = rows.some((row) => row.weight.length > 0);
49866
- const widths = resolveRuleTableWidths(rows, hasWeight);
49867
- return (0, import_src.table)([[
49868
- chalk.gray.bold("Level"),
49869
- chalk.gray.bold("Rule"),
49870
- chalk.gray.bold("Fix"),
49871
- ...hasWeight ? [chalk.gray.bold("Weight")] : [],
49872
- chalk.gray.bold("Description")
49873
- ], ...rows.map((row) => [
49874
- chalk[levelColor[row.resolvedLevel]](row.level),
49875
- chalk.cyan(row.id),
49876
- chalk.gray(row.fix),
49877
- ...hasWeight ? [chalk.gray(row.weight)] : [],
49878
- chalk.gray(row.description)
49879
- ])], ruleTableConfig(widths, hasWeight)).trimEnd().split("\n").map((line) => ` ${line}`).join("\n");
49880
- }
49881
- function renderRuleCatalog(rules, title = "Rules") {
49882
- console.log(chalk.bold(title));
49883
- let currentCommand;
49884
- let currentRules = [];
49885
- const sortedRules = sortRules([...rules]);
49886
- for (const rule of sortedRules) {
49887
- if (rule.command !== currentCommand) {
49888
- if (currentRules.length > 0) console.log(formatRuleTable(currentRules));
49889
- currentCommand = rule.command;
49890
- currentRules = [];
49891
- console.log();
49892
- console.log(chalk.green(currentCommand));
49893
- }
49894
- currentRules.push(rule);
49895
- }
49896
- if (currentRules.length > 0) console.log(formatRuleTable(currentRules));
49897
- }
49898
- function ruleCatalogResult(rules, title) {
49899
- const sorted = sortRules(rules);
49900
- if (!isJsonMode()) renderRuleCatalog(sorted, title);
49901
- return {
49902
- envelope: {
49903
- data: sorted,
49904
- errorCount: 0,
49905
- warningCount: 0
49906
- },
49907
- exitCode: 0
49908
- };
49909
- }
49910
50364
  //#endregion
49911
50365
  //#region src/actions/secure.ts
49912
50366
  const secure = async ({ jobs = 16, pkg, verbose = false } = {}) => {
@@ -51628,16 +52082,31 @@ const xyDeployCommands = (args) => {
51628
52082
  };
51629
52083
  //#endregion
51630
52084
  //#region src/xy/install/cleanCommand.ts
52085
+ function resolveFullMode(argv) {
52086
+ if (Boolean(argv.fullAll) || Boolean(argv["full-all"])) return "full-all";
52087
+ if (Boolean(argv.full)) return "full";
52088
+ return "none";
52089
+ }
51631
52090
  const cleanCommand = {
51632
52091
  command: "clean [package]",
51633
52092
  describe: "Clean",
51634
52093
  builder: (yargs) => {
51635
- return yargs.positional("package", { describe: "Specific package to clean" });
52094
+ return yargs.positional("package", { describe: "Specific package to clean" }).option("full", {
52095
+ default: false,
52096
+ description: "Also remove all gitignored files under each package (fresh-clone hygiene; still honors clean.exclude)",
52097
+ type: "boolean"
52098
+ }).option("full-all", {
52099
+ default: false,
52100
+ description: "Like --full, but also ignores clean.exclude / default excludes (only .git is protected)",
52101
+ type: "boolean"
52102
+ });
51636
52103
  },
51637
52104
  handler: async (argv) => {
51638
- if (Boolean(argv.verbose)) console.log(`Cleaning: ${argv.package ?? "all"}`);
52105
+ const fullMode = resolveFullMode(argv);
52106
+ if (Boolean(argv.verbose)) console.log(`Cleaning: ${argv.package ?? "all"}${fullMode === "none" ? "" : ` (${fullMode})`}`);
51639
52107
  await withEnvelope("clean", () => clean({
51640
52108
  deferLocalScript: true,
52109
+ fullMode,
51641
52110
  jobs: argv.jobs,
51642
52111
  pkg: argv.package,
51643
52112
  verbose: !!Boolean(argv.verbose)