@ariestools/toolchain 8.7.16 → 8.7.17

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 (895) hide show
  1. package/dist/actions/clean.d.ts.map +1 -1
  2. package/dist/actions/cleanRuleCatalog.d.ts +11 -0
  3. package/dist/actions/cleanRuleCatalog.d.ts.map +1 -0
  4. package/dist/actions/package/clean-outputs.d.ts +19 -1
  5. package/dist/actions/package/clean-outputs.d.ts.map +1 -1
  6. package/dist/actions/package/clean-typescript.d.ts +1 -0
  7. package/dist/actions/package/clean-typescript.d.ts.map +1 -1
  8. package/dist/actions/package/clean.d.ts +1 -1
  9. package/dist/actions/package/clean.d.ts.map +1 -1
  10. package/dist/actions/package/cleanGitignore.d.ts +25 -0
  11. package/dist/actions/package/cleanGitignore.d.ts.map +1 -0
  12. package/dist/actions/package/cleanPatterns.d.ts +18 -0
  13. package/dist/actions/package/cleanPatterns.d.ts.map +1 -0
  14. package/dist/actions/package/cleanPlan.d.ts +48 -0
  15. package/dist/actions/package/cleanPlan.d.ts.map +1 -0
  16. package/dist/actions/package/cleanRules.d.ts +44 -0
  17. package/dist/actions/package/cleanRules.d.ts.map +1 -0
  18. package/dist/actions/package/compile/CleanConfig.d.ts +61 -0
  19. package/dist/actions/package/compile/CleanConfig.d.ts.map +1 -0
  20. package/dist/actions/package/compile/XyConfig.d.ts +11 -37
  21. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
  22. package/dist/actions/package/compile/index.d.ts +1 -0
  23. package/dist/actions/package/compile/index.d.ts.map +1 -1
  24. package/dist/actions/package/index.d.ts +4 -0
  25. package/dist/actions/package/index.d.ts.map +1 -1
  26. package/dist/actions/ruleCatalog.d.ts +3 -22
  27. package/dist/actions/ruleCatalog.d.ts.map +1 -1
  28. package/dist/actions/ruleCatalogRender.d.ts +25 -0
  29. package/dist/actions/ruleCatalogRender.d.ts.map +1 -0
  30. package/dist/bin/package/build.mjs +11 -5
  31. package/dist/bin/package/build.mjs.map +1 -1
  32. package/dist/bin/package/clean.mjs +7565 -47
  33. package/dist/bin/package/clean.mjs.map +1 -1
  34. package/dist/bin/package/compile.mjs +3 -3
  35. package/dist/bin/package/compile.mjs.map +1 -1
  36. package/dist/bin/package/publint.mjs +8 -2
  37. package/dist/bin/package/publint.mjs.map +1 -1
  38. package/dist/bin/package/recompile.mjs +615 -18
  39. package/dist/bin/package/recompile.mjs.map +1 -1
  40. package/dist/bin/package/sync-layout.mjs.map +1 -1
  41. package/dist/bin/xy.mjs +622 -194
  42. package/dist/bin/xy.mjs.map +1 -1
  43. package/dist/lib/ruleCommandRegistry.d.ts +6 -0
  44. package/dist/lib/ruleCommandRegistry.d.ts.map +1 -1
  45. package/package.json +4 -5
  46. package/dist/actions/claude-check.d.ts +0 -2
  47. package/dist/actions/claude-check.d.ts.map +0 -1
  48. package/dist/actions/claude-clean.d.ts +0 -2
  49. package/dist/actions/claude-clean.d.ts.map +0 -1
  50. package/dist/actions/claude-commands.d.ts +0 -2
  51. package/dist/actions/claude-commands.d.ts.map +0 -1
  52. package/dist/actions/claude-rules.d.ts +0 -4
  53. package/dist/actions/claude-rules.d.ts.map +0 -1
  54. package/dist/actions/claude-settings.d.ts +0 -5
  55. package/dist/actions/claude-settings.d.ts.map +0 -1
  56. package/dist/actions/claude-skills.d.ts +0 -2
  57. package/dist/actions/claude-skills.d.ts.map +0 -1
  58. package/dist/actions/deplint/getInternalSurfaceVouchedPeers.d.ts +0 -13
  59. package/dist/actions/deplint/getInternalSurfaceVouchedPeers.d.ts.map +0 -1
  60. package/dist/actions/package/compile/copyTypeFiles.d.ts +0 -2
  61. package/dist/actions/package/compile/copyTypeFiles.d.ts.map +0 -1
  62. package/dist/actions/skills/remove.d.ts +0 -9
  63. package/dist/actions/skills/remove.d.ts.map +0 -1
  64. package/dist/lib/claudeMdTemplate.d.ts +0 -12
  65. package/dist/lib/claudeMdTemplate.d.ts.map +0 -1
  66. package/dist/lib/parsedPackageJSON.d.ts +0 -2
  67. package/dist/lib/parsedPackageJSON.d.ts.map +0 -1
  68. package/dist/lib/runInstall.d.ts +0 -2
  69. package/dist/lib/runInstall.d.ts.map +0 -1
  70. package/dist/lib/yarn/yarnInitCwd.d.ts +0 -2
  71. package/dist/lib/yarn/yarnInitCwd.d.ts.map +0 -1
  72. package/dist/node/actions/analyze.d.ts +0 -2
  73. package/dist/node/actions/analyze.d.ts.map +0 -1
  74. package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts +0 -28
  75. package/dist/node/actions/api-exposure/analyzer/analyzePackage.d.ts.map +0 -1
  76. package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts +0 -11
  77. package/dist/node/actions/api-exposure/analyzer/couplingWalk.d.ts.map +0 -1
  78. package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts +0 -19
  79. package/dist/node/actions/api-exposure/analyzer/depSignals.d.ts.map +0 -1
  80. package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts +0 -7
  81. package/dist/node/actions/api-exposure/analyzer/entryPoints.d.ts.map +0 -1
  82. package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts +0 -21
  83. package/dist/node/actions/api-exposure/analyzer/exposureWalk.d.ts.map +0 -1
  84. package/dist/node/actions/api-exposure/analyzer/program.d.ts +0 -21
  85. package/dist/node/actions/api-exposure/analyzer/program.d.ts.map +0 -1
  86. package/dist/node/actions/api-exposure/apiExposure.d.ts +0 -17
  87. package/dist/node/actions/api-exposure/apiExposure.d.ts.map +0 -1
  88. package/dist/node/actions/api-exposure/config.d.ts +0 -21
  89. package/dist/node/actions/api-exposure/config.d.ts.map +0 -1
  90. package/dist/node/actions/api-exposure/index.d.ts +0 -9
  91. package/dist/node/actions/api-exposure/index.d.ts.map +0 -1
  92. package/dist/node/actions/api-exposure/reporters.d.ts +0 -16
  93. package/dist/node/actions/api-exposure/reporters.d.ts.map +0 -1
  94. package/dist/node/actions/api-exposure/rules.d.ts +0 -10
  95. package/dist/node/actions/api-exposure/rules.d.ts.map +0 -1
  96. package/dist/node/actions/api-exposure/scoring.d.ts +0 -28
  97. package/dist/node/actions/api-exposure/scoring.d.ts.map +0 -1
  98. package/dist/node/actions/api-exposure/types.d.ts +0 -86
  99. package/dist/node/actions/api-exposure/types.d.ts.map +0 -1
  100. package/dist/node/actions/barrel/analyzeBarrel.d.ts +0 -22
  101. package/dist/node/actions/barrel/analyzeBarrel.d.ts.map +0 -1
  102. package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts +0 -12
  103. package/dist/node/actions/barrel/checkBarrelImportRestrictions.d.ts.map +0 -1
  104. package/dist/node/actions/barrel/getReExportSpecs.d.ts +0 -11
  105. package/dist/node/actions/barrel/getReExportSpecs.d.ts.map +0 -1
  106. package/dist/node/actions/barrel/index.d.ts +0 -6
  107. package/dist/node/actions/barrel/index.d.ts.map +0 -1
  108. package/dist/node/actions/barrel/resolveBarrel.d.ts +0 -9
  109. package/dist/node/actions/barrel/resolveBarrel.d.ts.map +0 -1
  110. package/dist/node/actions/barrel/restrictionHelpers.d.ts +0 -30
  111. package/dist/node/actions/barrel/restrictionHelpers.d.ts.map +0 -1
  112. package/dist/node/actions/build.d.ts +0 -9
  113. package/dist/node/actions/build.d.ts.map +0 -1
  114. package/dist/node/actions/clean-eslint.d.ts +0 -3
  115. package/dist/node/actions/clean-eslint.d.ts.map +0 -1
  116. package/dist/node/actions/clean.d.ts +0 -14
  117. package/dist/node/actions/clean.d.ts.map +0 -1
  118. package/dist/node/actions/compile.d.ts +0 -45
  119. package/dist/node/actions/compile.d.ts.map +0 -1
  120. package/dist/node/actions/copy-assets.d.ts +0 -6
  121. package/dist/node/actions/copy-assets.d.ts.map +0 -1
  122. package/dist/node/actions/dead/analyzePackage.d.ts +0 -43
  123. package/dist/node/actions/dead/analyzePackage.d.ts.map +0 -1
  124. package/dist/node/actions/dead/classifyPackageVisibility.d.ts +0 -4
  125. package/dist/node/actions/dead/classifyPackageVisibility.d.ts.map +0 -1
  126. package/dist/node/actions/dead/collectExternalUsage.d.ts +0 -38
  127. package/dist/node/actions/dead/collectExternalUsage.d.ts.map +0 -1
  128. package/dist/node/actions/dead/collectSymbols.d.ts +0 -40
  129. package/dist/node/actions/dead/collectSymbols.d.ts.map +0 -1
  130. package/dist/node/actions/dead/dead.d.ts +0 -4
  131. package/dist/node/actions/dead/dead.d.ts.map +0 -1
  132. package/dist/node/actions/dead/deprecation.d.ts +0 -3
  133. package/dist/node/actions/dead/deprecation.d.ts.map +0 -1
  134. package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts +0 -7
  135. package/dist/node/actions/dead/detectActiveCodeWorkspace.d.ts.map +0 -1
  136. package/dist/node/actions/dead/evaluateRules.d.ts +0 -8
  137. package/dist/node/actions/dead/evaluateRules.d.ts.map +0 -1
  138. package/dist/node/actions/dead/findWorkspaceFile.d.ts +0 -13
  139. package/dist/node/actions/dead/findWorkspaceFile.d.ts.map +0 -1
  140. package/dist/node/actions/dead/fixDeadCode.d.ts +0 -12
  141. package/dist/node/actions/dead/fixDeadCode.d.ts.map +0 -1
  142. package/dist/node/actions/dead/index.d.ts +0 -10
  143. package/dist/node/actions/dead/index.d.ts.map +0 -1
  144. package/dist/node/actions/dead/parseCodeWorkspace.d.ts +0 -7
  145. package/dist/node/actions/dead/parseCodeWorkspace.d.ts.map +0 -1
  146. package/dist/node/actions/dead/propagateExternalUsage.d.ts +0 -4
  147. package/dist/node/actions/dead/propagateExternalUsage.d.ts.map +0 -1
  148. package/dist/node/actions/dead/pruneDeadFiles.d.ts +0 -7
  149. package/dist/node/actions/dead/pruneDeadFiles.d.ts.map +0 -1
  150. package/dist/node/actions/dead/reporters.d.ts +0 -6
  151. package/dist/node/actions/dead/reporters.d.ts.map +0 -1
  152. package/dist/node/actions/dead/ruleConfig.d.ts +0 -5
  153. package/dist/node/actions/dead/ruleConfig.d.ts.map +0 -1
  154. package/dist/node/actions/dead/ruleNames.d.ts +0 -4
  155. package/dist/node/actions/dead/ruleNames.d.ts.map +0 -1
  156. package/dist/node/actions/dead/rules.d.ts +0 -7
  157. package/dist/node/actions/dead/rules.d.ts.map +0 -1
  158. package/dist/node/actions/dead/runDeadAnalysis.d.ts +0 -25
  159. package/dist/node/actions/dead/runDeadAnalysis.d.ts.map +0 -1
  160. package/dist/node/actions/dead/runtimeEntries.d.ts +0 -23
  161. package/dist/node/actions/dead/runtimeEntries.d.ts.map +0 -1
  162. package/dist/node/actions/dead/sourceEdits.d.ts +0 -7
  163. package/dist/node/actions/dead/sourceEdits.d.ts.map +0 -1
  164. package/dist/node/actions/dead/storybookConventions.d.ts +0 -6
  165. package/dist/node/actions/dead/storybookConventions.d.ts.map +0 -1
  166. package/dist/node/actions/dead/types.d.ts +0 -68
  167. package/dist/node/actions/dead/types.d.ts.map +0 -1
  168. package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts +0 -17
  169. package/dist/node/actions/deplint/checkPackage/checkPackage.d.ts.map +0 -1
  170. package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts +0 -19
  171. package/dist/node/actions/deplint/checkPackage/checkPackageTypes.d.ts.map +0 -1
  172. package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts +0 -11
  173. package/dist/node/actions/deplint/checkPackage/getMismatchedPeerDevVersions.d.ts.map +0 -1
  174. package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts +0 -21
  175. package/dist/node/actions/deplint/checkPackage/getUnlistedDependencies.d.ts.map +0 -1
  176. package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts +0 -6
  177. package/dist/node/actions/deplint/checkPackage/getUnlistedDevDependencies.d.ts.map +0 -1
  178. package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts +0 -24
  179. package/dist/node/actions/deplint/checkPackage/getUnnecessaryPeerDependencies.d.ts.map +0 -1
  180. package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts +0 -74
  181. package/dist/node/actions/deplint/checkPackage/getUnsatisfiedPeerDependencies.d.ts.map +0 -1
  182. package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts +0 -12
  183. package/dist/node/actions/deplint/checkPackage/getUnusedDependencies.d.ts.map +0 -1
  184. package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts +0 -7
  185. package/dist/node/actions/deplint/checkPackage/getUnusedDevDependencies.d.ts.map +0 -1
  186. package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts +0 -6
  187. package/dist/node/actions/deplint/checkPackage/getUnusedPeerDependencies.d.ts.map +0 -1
  188. package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts +0 -21
  189. package/dist/node/actions/deplint/checkPackage/getWorkspaceVersionProblems.d.ts.map +0 -1
  190. package/dist/node/actions/deplint/checkPackage/index.d.ts +0 -13
  191. package/dist/node/actions/deplint/checkPackage/index.d.ts.map +0 -1
  192. package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts +0 -13
  193. package/dist/node/actions/deplint/checkPackage/legacyPeerCheck.d.ts.map +0 -1
  194. package/dist/node/actions/deplint/deplint.d.ts +0 -20
  195. package/dist/node/actions/deplint/deplint.d.ts.map +0 -1
  196. package/dist/node/actions/deplint/engine.d.ts +0 -15
  197. package/dist/node/actions/deplint/engine.d.ts.map +0 -1
  198. package/dist/node/actions/deplint/fetchPackageManifest.d.ts +0 -25
  199. package/dist/node/actions/deplint/fetchPackageManifest.d.ts.map +0 -1
  200. package/dist/node/actions/deplint/findFiles.d.ts +0 -6
  201. package/dist/node/actions/deplint/findFiles.d.ts.map +0 -1
  202. package/dist/node/actions/deplint/findFilesByGlob.d.ts +0 -2
  203. package/dist/node/actions/deplint/findFilesByGlob.d.ts.map +0 -1
  204. package/dist/node/actions/deplint/fixer.d.ts +0 -3
  205. package/dist/node/actions/deplint/fixer.d.ts.map +0 -1
  206. package/dist/node/actions/deplint/getBasePackageName.d.ts +0 -2
  207. package/dist/node/actions/deplint/getBasePackageName.d.ts.map +0 -1
  208. package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts +0 -12
  209. package/dist/node/actions/deplint/getCliReferencedPackagesFromFiles.d.ts.map +0 -1
  210. package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts +0 -9
  211. package/dist/node/actions/deplint/getDependenciesFromPackageJson.d.ts.map +0 -1
  212. package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts +0 -10
  213. package/dist/node/actions/deplint/getExtendsFromTsconfigs.d.ts.map +0 -1
  214. package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts +0 -12
  215. package/dist/node/actions/deplint/getExternalImportsFromFiles.d.ts.map +0 -1
  216. package/dist/node/actions/deplint/getImportsFromFile.d.ts +0 -4
  217. package/dist/node/actions/deplint/getImportsFromFile.d.ts.map +0 -1
  218. package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts +0 -10
  219. package/dist/node/actions/deplint/getRequiredPeerDependencies.d.ts.map +0 -1
  220. package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts +0 -8
  221. package/dist/node/actions/deplint/getScriptReferencedPackages.d.ts.map +0 -1
  222. package/dist/node/actions/deplint/getStorybookConfigImports.d.ts +0 -3
  223. package/dist/node/actions/deplint/getStorybookConfigImports.d.ts.map +0 -1
  224. package/dist/node/actions/deplint/implicitDevDependencies.d.ts +0 -15
  225. package/dist/node/actions/deplint/implicitDevDependencies.d.ts.map +0 -1
  226. package/dist/node/actions/deplint/index.d.ts +0 -11
  227. package/dist/node/actions/deplint/index.d.ts.map +0 -1
  228. package/dist/node/actions/deplint/isTerminalPackage.d.ts +0 -25
  229. package/dist/node/actions/deplint/isTerminalPackage.d.ts.map +0 -1
  230. package/dist/node/actions/deplint/loader.d.ts +0 -4
  231. package/dist/node/actions/deplint/loader.d.ts.map +0 -1
  232. package/dist/node/actions/deplint/packageEditor.d.ts +0 -11
  233. package/dist/node/actions/deplint/packageEditor.d.ts.map +0 -1
  234. package/dist/node/actions/deplint/packageJsonEditor.d.ts +0 -97
  235. package/dist/node/actions/deplint/packageJsonEditor.d.ts.map +0 -1
  236. package/dist/node/actions/deplint/peerRangeOptions.d.ts +0 -10
  237. package/dist/node/actions/deplint/peerRangeOptions.d.ts.map +0 -1
  238. package/dist/node/actions/deplint/reporters.d.ts +0 -8
  239. package/dist/node/actions/deplint/reporters.d.ts.map +0 -1
  240. package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts +0 -24
  241. package/dist/node/actions/deplint/resolvePeerBumpFixes.d.ts.map +0 -1
  242. package/dist/node/actions/deplint/ruleConfig.d.ts +0 -5
  243. package/dist/node/actions/deplint/ruleConfig.d.ts.map +0 -1
  244. package/dist/node/actions/deplint/rules.d.ts +0 -4
  245. package/dist/node/actions/deplint/rules.d.ts.map +0 -1
  246. package/dist/node/actions/deplint/rulesDiagnostic.d.ts +0 -4
  247. package/dist/node/actions/deplint/rulesDiagnostic.d.ts.map +0 -1
  248. package/dist/node/actions/deplint/rulesMisplaced.d.ts +0 -4
  249. package/dist/node/actions/deplint/rulesMisplaced.d.ts.map +0 -1
  250. package/dist/node/actions/deplint/snapshot.d.ts +0 -22
  251. package/dist/node/actions/deplint/snapshot.d.ts.map +0 -1
  252. package/dist/node/actions/deplint/tsScriptsAliases.d.ts +0 -11
  253. package/dist/node/actions/deplint/tsScriptsAliases.d.ts.map +0 -1
  254. package/dist/node/actions/deplint/types.d.ts +0 -295
  255. package/dist/node/actions/deplint/types.d.ts.map +0 -1
  256. package/dist/node/actions/deplint/versionMismatchFixes.d.ts +0 -4
  257. package/dist/node/actions/deplint/versionMismatchFixes.d.ts.map +0 -1
  258. package/dist/node/actions/deploy.d.ts +0 -3
  259. package/dist/node/actions/deploy.d.ts.map +0 -1
  260. package/dist/node/actions/eject.d.ts +0 -2
  261. package/dist/node/actions/eject.d.ts.map +0 -1
  262. package/dist/node/actions/fix.d.ts +0 -7
  263. package/dist/node/actions/fix.d.ts.map +0 -1
  264. package/dist/node/actions/gitignore.d.ts +0 -4
  265. package/dist/node/actions/gitignore.d.ts.map +0 -1
  266. package/dist/node/actions/gitlint-fix.d.ts +0 -2
  267. package/dist/node/actions/gitlint-fix.d.ts.map +0 -1
  268. package/dist/node/actions/gitlint.d.ts +0 -2
  269. package/dist/node/actions/gitlint.d.ts.map +0 -1
  270. package/dist/node/actions/incremental.d.ts +0 -46
  271. package/dist/node/actions/incremental.d.ts.map +0 -1
  272. package/dist/node/actions/index.d.ts +0 -54
  273. package/dist/node/actions/index.d.ts.map +0 -1
  274. package/dist/node/actions/install.d.ts +0 -2
  275. package/dist/node/actions/install.d.ts.map +0 -1
  276. package/dist/node/actions/license.d.ts +0 -2
  277. package/dist/node/actions/license.d.ts.map +0 -1
  278. package/dist/node/actions/lint-config.d.ts +0 -16
  279. package/dist/node/actions/lint-config.d.ts.map +0 -1
  280. package/dist/node/actions/lint-init.d.ts +0 -16
  281. package/dist/node/actions/lint-init.d.ts.map +0 -1
  282. package/dist/node/actions/lint.d.ts +0 -36
  283. package/dist/node/actions/lint.d.ts.map +0 -1
  284. package/dist/node/actions/lintNext.d.ts +0 -14
  285. package/dist/node/actions/lintNext.d.ts.map +0 -1
  286. package/dist/node/actions/lintNextWorker.d.ts +0 -21
  287. package/dist/node/actions/lintNextWorker.d.ts.map +0 -1
  288. package/dist/node/actions/lintTierAnalysis.d.ts +0 -59
  289. package/dist/node/actions/lintTierAnalysis.d.ts.map +0 -1
  290. package/dist/node/actions/lintlint.d.ts +0 -13
  291. package/dist/node/actions/lintlint.d.ts.map +0 -1
  292. package/dist/node/actions/node-lint.d.ts +0 -19
  293. package/dist/node/actions/node-lint.d.ts.map +0 -1
  294. package/dist/node/actions/npmignore-gen.d.ts +0 -2
  295. package/dist/node/actions/npmignore-gen.d.ts.map +0 -1
  296. package/dist/node/actions/orphan.d.ts +0 -6
  297. package/dist/node/actions/orphan.d.ts.map +0 -1
  298. package/dist/node/actions/package/clean-outputs.d.ts +0 -6
  299. package/dist/node/actions/package/clean-outputs.d.ts.map +0 -1
  300. package/dist/node/actions/package/clean-typescript.d.ts +0 -3
  301. package/dist/node/actions/package/clean-typescript.d.ts.map +0 -1
  302. package/dist/node/actions/package/clean.d.ts +0 -3
  303. package/dist/node/actions/package/clean.d.ts.map +0 -1
  304. package/dist/node/actions/package/compile/ApiExposureConfig.d.ts +0 -58
  305. package/dist/node/actions/package/compile/ApiExposureConfig.d.ts.map +0 -1
  306. package/dist/node/actions/package/compile/MonolithConfig.d.ts +0 -85
  307. package/dist/node/actions/package/compile/MonolithConfig.d.ts.map +0 -1
  308. package/dist/node/actions/package/compile/XyConfig.d.ts +0 -462
  309. package/dist/node/actions/package/compile/XyConfig.d.ts.map +0 -1
  310. package/dist/node/actions/package/compile/buildEntries.d.ts +0 -3
  311. package/dist/node/actions/package/compile/buildEntries.d.ts.map +0 -1
  312. package/dist/node/actions/package/compile/compile.d.ts +0 -7
  313. package/dist/node/actions/package/compile/compile.d.ts.map +0 -1
  314. package/dist/node/actions/package/compile/createProgramFromConfig.d.ts +0 -25
  315. package/dist/node/actions/package/compile/createProgramFromConfig.d.ts.map +0 -1
  316. package/dist/node/actions/package/compile/createTypescriptConfig.d.ts +0 -29
  317. package/dist/node/actions/package/compile/createTypescriptConfig.d.ts.map +0 -1
  318. package/dist/node/actions/package/compile/deepMerge.d.ts +0 -4
  319. package/dist/node/actions/package/compile/deepMerge.d.ts.map +0 -1
  320. package/dist/node/actions/package/compile/entryOutputName.d.ts +0 -5
  321. package/dist/node/actions/package/compile/entryOutputName.d.ts.map +0 -1
  322. package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts +0 -5
  323. package/dist/node/actions/package/compile/findWorkspaceRoot.d.ts.map +0 -1
  324. package/dist/node/actions/package/compile/getCompilerOptions.d.ts +0 -3
  325. package/dist/node/actions/package/compile/getCompilerOptions.d.ts.map +0 -1
  326. package/dist/node/actions/package/compile/index.d.ts +0 -16
  327. package/dist/node/actions/package/compile/index.d.ts.map +0 -1
  328. package/dist/node/actions/package/compile/inputs.d.ts +0 -2
  329. package/dist/node/actions/package/compile/inputs.d.ts.map +0 -1
  330. package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts +0 -14
  331. package/dist/node/actions/package/compile/monolithCompileDeclarations.d.ts.map +0 -1
  332. package/dist/node/actions/package/compile/monolithCompileEntries.d.ts +0 -20
  333. package/dist/node/actions/package/compile/monolithCompileEntries.d.ts.map +0 -1
  334. package/dist/node/actions/package/compile/monolithCompileLayout.d.ts +0 -42
  335. package/dist/node/actions/package/compile/monolithCompileLayout.d.ts.map +0 -1
  336. package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts +0 -18
  337. package/dist/node/actions/package/compile/packageCompileEsbuild.d.ts.map +0 -1
  338. package/dist/node/actions/package/compile/packageCompileMonolith.d.ts +0 -10
  339. package/dist/node/actions/package/compile/packageCompileMonolith.d.ts.map +0 -1
  340. package/dist/node/actions/package/compile/packageCompileTsc.d.ts +0 -3
  341. package/dist/node/actions/package/compile/packageCompileTsc.d.ts.map +0 -1
  342. package/dist/node/actions/package/compile/packageCompileTsup.d.ts +0 -6
  343. package/dist/node/actions/package/compile/packageCompileTsup.d.ts.map +0 -1
  344. package/dist/node/actions/package/compile/packageCompileVendor.d.ts +0 -4
  345. package/dist/node/actions/package/compile/packageCompileVendor.d.ts.map +0 -1
  346. package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts +0 -13
  347. package/dist/node/actions/package/compile/resolveCompileBundleOptions.d.ts.map +0 -1
  348. package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts +0 -23
  349. package/dist/node/actions/package/compile/resolveCompilePlatforms.d.ts.map +0 -1
  350. package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts +0 -5
  351. package/dist/node/actions/package/compile/resolvePlatformTypes.d.ts.map +0 -1
  352. package/dist/node/actions/package/compile/runTsc.d.ts +0 -2
  353. package/dist/node/actions/package/compile/runTsc.d.ts.map +0 -1
  354. package/dist/node/actions/package/compile/validateFullPackage.d.ts +0 -2
  355. package/dist/node/actions/package/compile/validateFullPackage.d.ts.map +0 -1
  356. package/dist/node/actions/package/compile/vendorCompile.d.ts +0 -6
  357. package/dist/node/actions/package/compile/vendorCompile.d.ts.map +0 -1
  358. package/dist/node/actions/package/compile/vendorCompileEmit.d.ts +0 -8
  359. package/dist/node/actions/package/compile/vendorCompileEmit.d.ts.map +0 -1
  360. package/dist/node/actions/package/compile/vendorCompileInternals.d.ts +0 -31
  361. package/dist/node/actions/package/compile/vendorCompileInternals.d.ts.map +0 -1
  362. package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts +0 -3
  363. package/dist/node/actions/package/compile/vendorCompileRewrite.d.ts.map +0 -1
  364. package/dist/node/actions/package/compile/vendorCompileTypes.d.ts +0 -31
  365. package/dist/node/actions/package/compile/vendorCompileTypes.d.ts.map +0 -1
  366. package/dist/node/actions/package/compileTargetsPublint.d.ts +0 -13
  367. package/dist/node/actions/package/compileTargetsPublint.d.ts.map +0 -1
  368. package/dist/node/actions/package/copy-assets.d.ts +0 -5
  369. package/dist/node/actions/package/copy-assets.d.ts.map +0 -1
  370. package/dist/node/actions/package/expectedCompileOutputs.d.ts +0 -11
  371. package/dist/node/actions/package/expectedCompileOutputs.d.ts.map +0 -1
  372. package/dist/node/actions/package/exportConditionPublint.d.ts +0 -9
  373. package/dist/node/actions/package/exportConditionPublint.d.ts.map +0 -1
  374. package/dist/node/actions/package/exportMapPublint.d.ts +0 -7
  375. package/dist/node/actions/package/exportMapPublint.d.ts.map +0 -1
  376. package/dist/node/actions/package/index.d.ts +0 -9
  377. package/dist/node/actions/package/index.d.ts.map +0 -1
  378. package/dist/node/actions/package/lint.d.ts +0 -2
  379. package/dist/node/actions/package/lint.d.ts.map +0 -1
  380. package/dist/node/actions/package/platformPublint.d.ts +0 -7
  381. package/dist/node/actions/package/platformPublint.d.ts.map +0 -1
  382. package/dist/node/actions/package/publint.d.ts +0 -16
  383. package/dist/node/actions/package/publint.d.ts.map +0 -1
  384. package/dist/node/actions/package/recompile.d.ts +0 -3
  385. package/dist/node/actions/package/recompile.d.ts.map +0 -1
  386. package/dist/node/actions/package-lint-deps.d.ts +0 -47
  387. package/dist/node/actions/package-lint-deps.d.ts.map +0 -1
  388. package/dist/node/actions/package-lint-engines.d.ts +0 -22
  389. package/dist/node/actions/package-lint-engines.d.ts.map +0 -1
  390. package/dist/node/actions/package-lint-pnpm.d.ts +0 -11
  391. package/dist/node/actions/package-lint-pnpm.d.ts.map +0 -1
  392. package/dist/node/actions/package-lint-specs.d.ts +0 -9
  393. package/dist/node/actions/package-lint-specs.d.ts.map +0 -1
  394. package/dist/node/actions/package-lint.d.ts +0 -7
  395. package/dist/node/actions/package-lint.d.ts.map +0 -1
  396. package/dist/node/actions/packman/clean.d.ts +0 -5
  397. package/dist/node/actions/packman/clean.d.ts.map +0 -1
  398. package/dist/node/actions/packman/convert.d.ts +0 -10
  399. package/dist/node/actions/packman/convert.d.ts.map +0 -1
  400. package/dist/node/actions/packman/convertToBun.d.ts +0 -2
  401. package/dist/node/actions/packman/convertToBun.d.ts.map +0 -1
  402. package/dist/node/actions/packman/convertToNpm.d.ts +0 -2
  403. package/dist/node/actions/packman/convertToNpm.d.ts.map +0 -1
  404. package/dist/node/actions/packman/convertToPnpm.d.ts +0 -2
  405. package/dist/node/actions/packman/convertToPnpm.d.ts.map +0 -1
  406. package/dist/node/actions/packman/convertToYarn.d.ts +0 -2
  407. package/dist/node/actions/packman/convertToYarn.d.ts.map +0 -1
  408. package/dist/node/actions/packman/index.d.ts +0 -5
  409. package/dist/node/actions/packman/index.d.ts.map +0 -1
  410. package/dist/node/actions/packman/lint.d.ts +0 -6
  411. package/dist/node/actions/packman/lint.d.ts.map +0 -1
  412. package/dist/node/actions/packman/rewriteScripts.d.ts +0 -5
  413. package/dist/node/actions/packman/rewriteScripts.d.ts.map +0 -1
  414. package/dist/node/actions/packman/rewriteSourceImports.d.ts +0 -2
  415. package/dist/node/actions/packman/rewriteSourceImports.d.ts.map +0 -1
  416. package/dist/node/actions/packman/swapTsScriptsDependency.d.ts +0 -2
  417. package/dist/node/actions/packman/swapTsScriptsDependency.d.ts.map +0 -1
  418. package/dist/node/actions/publint.d.ts +0 -48
  419. package/dist/node/actions/publint.d.ts.map +0 -1
  420. package/dist/node/actions/publish.d.ts +0 -22
  421. package/dist/node/actions/publish.d.ts.map +0 -1
  422. package/dist/node/actions/reactTest.d.ts +0 -2
  423. package/dist/node/actions/reactTest.d.ts.map +0 -1
  424. package/dist/node/actions/rebuild.d.ts +0 -7
  425. package/dist/node/actions/rebuild.d.ts.map +0 -1
  426. package/dist/node/actions/recompile.d.ts +0 -16
  427. package/dist/node/actions/recompile.d.ts.map +0 -1
  428. package/dist/node/actions/reinstall.d.ts +0 -2
  429. package/dist/node/actions/reinstall.d.ts.map +0 -1
  430. package/dist/node/actions/releaseAgeExcludeScopes.d.ts +0 -13
  431. package/dist/node/actions/releaseAgeExcludeScopes.d.ts.map +0 -1
  432. package/dist/node/actions/relint.d.ts +0 -24
  433. package/dist/node/actions/relint.d.ts.map +0 -1
  434. package/dist/node/actions/repo-init.d.ts +0 -14
  435. package/dist/node/actions/repo-init.d.ts.map +0 -1
  436. package/dist/node/actions/republint.d.ts +0 -13
  437. package/dist/node/actions/republint.d.ts.map +0 -1
  438. package/dist/node/actions/result.d.ts +0 -44
  439. package/dist/node/actions/result.d.ts.map +0 -1
  440. package/dist/node/actions/retest.d.ts +0 -5
  441. package/dist/node/actions/retest.d.ts.map +0 -1
  442. package/dist/node/actions/secure.d.ts +0 -7
  443. package/dist/node/actions/secure.d.ts.map +0 -1
  444. package/dist/node/actions/sitemap.d.ts +0 -2
  445. package/dist/node/actions/sitemap.d.ts.map +0 -1
  446. package/dist/node/actions/skills/defaults.d.ts +0 -6
  447. package/dist/node/actions/skills/defaults.d.ts.map +0 -1
  448. package/dist/node/actions/skills/detectProfile.d.ts +0 -10
  449. package/dist/node/actions/skills/detectProfile.d.ts.map +0 -1
  450. package/dist/node/actions/skills/index.d.ts +0 -9
  451. package/dist/node/actions/skills/index.d.ts.map +0 -1
  452. package/dist/node/actions/skills/installed.d.ts +0 -10
  453. package/dist/node/actions/skills/installed.d.ts.map +0 -1
  454. package/dist/node/actions/skills/lint.d.ts +0 -26
  455. package/dist/node/actions/skills/lint.d.ts.map +0 -1
  456. package/dist/node/actions/skills/passthrough.d.ts +0 -25
  457. package/dist/node/actions/skills/passthrough.d.ts.map +0 -1
  458. package/dist/node/actions/skills/skillRules.d.ts +0 -9
  459. package/dist/node/actions/skills/skillRules.d.ts.map +0 -1
  460. package/dist/node/actions/skills/updo.d.ts +0 -4
  461. package/dist/node/actions/skills/updo.d.ts.map +0 -1
  462. package/dist/node/actions/skills/versions.d.ts +0 -10
  463. package/dist/node/actions/skills/versions.d.ts.map +0 -1
  464. package/dist/node/actions/sonar.d.ts +0 -2
  465. package/dist/node/actions/sonar.d.ts.map +0 -1
  466. package/dist/node/actions/start.d.ts +0 -2
  467. package/dist/node/actions/start.d.ts.map +0 -1
  468. package/dist/node/actions/statics.d.ts +0 -2
  469. package/dist/node/actions/statics.d.ts.map +0 -1
  470. package/dist/node/actions/test.d.ts +0 -5
  471. package/dist/node/actions/test.d.ts.map +0 -1
  472. package/dist/node/actions/tsc-validate/index.d.ts +0 -3
  473. package/dist/node/actions/tsc-validate/index.d.ts.map +0 -1
  474. package/dist/node/actions/tsc-validate/sharedValidate.d.ts +0 -34
  475. package/dist/node/actions/tsc-validate/sharedValidate.d.ts.map +0 -1
  476. package/dist/node/actions/tsc-validate/tscValidate.d.ts +0 -35
  477. package/dist/node/actions/tsc-validate/tscValidate.d.ts.map +0 -1
  478. package/dist/node/actions/up.d.ts +0 -2
  479. package/dist/node/actions/up.d.ts.map +0 -1
  480. package/dist/node/actions/updo.d.ts +0 -9
  481. package/dist/node/actions/updo.d.ts.map +0 -1
  482. package/dist/node/actions/work/id.d.ts +0 -8
  483. package/dist/node/actions/work/id.d.ts.map +0 -1
  484. package/dist/node/actions/work/index.d.ts +0 -131
  485. package/dist/node/actions/work/index.d.ts.map +0 -1
  486. package/dist/node/actions/work/inline.d.ts +0 -8
  487. package/dist/node/actions/work/inline.d.ts.map +0 -1
  488. package/dist/node/actions/work/priority.d.ts +0 -5
  489. package/dist/node/actions/work/priority.d.ts.map +0 -1
  490. package/dist/node/actions/work/schema.d.ts +0 -81
  491. package/dist/node/actions/work/schema.d.ts.map +0 -1
  492. package/dist/node/actions/work/store.d.ts +0 -23
  493. package/dist/node/actions/work/store.d.ts.map +0 -1
  494. package/dist/node/bin/package/build.d.ts +0 -3
  495. package/dist/node/bin/package/build.d.ts.map +0 -1
  496. package/dist/node/bin/package/clean-outputs.d.ts +0 -3
  497. package/dist/node/bin/package/clean-outputs.d.ts.map +0 -1
  498. package/dist/node/bin/package/clean-typescript.d.ts +0 -3
  499. package/dist/node/bin/package/clean-typescript.d.ts.map +0 -1
  500. package/dist/node/bin/package/clean.d.ts +0 -3
  501. package/dist/node/bin/package/clean.d.ts.map +0 -1
  502. package/dist/node/bin/package/compile-tsup.d.ts +0 -3
  503. package/dist/node/bin/package/compile-tsup.d.ts.map +0 -1
  504. package/dist/node/bin/package/compile.d.ts +0 -3
  505. package/dist/node/bin/package/compile.d.ts.map +0 -1
  506. package/dist/node/bin/package/copy-assets-cjs.d.ts +0 -3
  507. package/dist/node/bin/package/copy-assets-cjs.d.ts.map +0 -1
  508. package/dist/node/bin/package/copy-assets-esm.d.ts +0 -3
  509. package/dist/node/bin/package/copy-assets-esm.d.ts.map +0 -1
  510. package/dist/node/bin/package/fix.d.ts +0 -3
  511. package/dist/node/bin/package/fix.d.ts.map +0 -1
  512. package/dist/node/bin/package/lint-verbose.d.ts +0 -3
  513. package/dist/node/bin/package/lint-verbose.d.ts.map +0 -1
  514. package/dist/node/bin/package/lint.d.ts +0 -3
  515. package/dist/node/bin/package/lint.d.ts.map +0 -1
  516. package/dist/node/bin/package/publint.d.ts +0 -3
  517. package/dist/node/bin/package/publint.d.ts.map +0 -1
  518. package/dist/node/bin/package/recompile.d.ts +0 -3
  519. package/dist/node/bin/package/recompile.d.ts.map +0 -1
  520. package/dist/node/bin/package/relint.d.ts +0 -3
  521. package/dist/node/bin/package/relint.d.ts.map +0 -1
  522. package/dist/node/bin/package/sync-layout.d.ts +0 -3
  523. package/dist/node/bin/package/sync-layout.d.ts.map +0 -1
  524. package/dist/node/bin/run-or-exec.d.ts +0 -3
  525. package/dist/node/bin/run-or-exec.d.ts.map +0 -1
  526. package/dist/node/bin/xy.d.ts +0 -3
  527. package/dist/node/bin/xy.d.ts.map +0 -1
  528. package/dist/node/index.d.ts +0 -6
  529. package/dist/node/index.d.ts.map +0 -1
  530. package/dist/node/lib/bundledCliPath.d.ts +0 -4
  531. package/dist/node/lib/bundledCliPath.d.ts.map +0 -1
  532. package/dist/node/lib/checkResult.d.ts +0 -2
  533. package/dist/node/lib/checkResult.d.ts.map +0 -1
  534. package/dist/node/lib/concurrency.d.ts +0 -5
  535. package/dist/node/lib/concurrency.d.ts.map +0 -1
  536. package/dist/node/lib/copyAssetFiles.d.ts +0 -10
  537. package/dist/node/lib/copyAssetFiles.d.ts.map +0 -1
  538. package/dist/node/lib/createBuildConfig.d.ts +0 -2
  539. package/dist/node/lib/createBuildConfig.d.ts.map +0 -1
  540. package/dist/node/lib/crossSpawn.d.ts +0 -6
  541. package/dist/node/lib/crossSpawn.d.ts.map +0 -1
  542. package/dist/node/lib/deepMerge.d.ts +0 -24
  543. package/dist/node/lib/deepMerge.d.ts.map +0 -1
  544. package/dist/node/lib/defaultBuildConfig.d.ts +0 -9
  545. package/dist/node/lib/defaultBuildConfig.d.ts.map +0 -1
  546. package/dist/node/lib/deleteGlob.d.ts +0 -2
  547. package/dist/node/lib/deleteGlob.d.ts.map +0 -1
  548. package/dist/node/lib/dependencies/DuplicateDetector.d.ts +0 -7
  549. package/dist/node/lib/dependencies/DuplicateDetector.d.ts.map +0 -1
  550. package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts +0 -2
  551. package/dist/node/lib/dependencies/detectDuplicateDependencies.d.ts.map +0 -1
  552. package/dist/node/lib/dependencies/index.d.ts +0 -4
  553. package/dist/node/lib/dependencies/index.d.ts.map +0 -1
  554. package/dist/node/lib/dependencies/workspaceCycles.d.ts +0 -15
  555. package/dist/node/lib/dependencies/workspaceCycles.d.ts.map +0 -1
  556. package/dist/node/lib/deprecationMigrate.d.ts +0 -2
  557. package/dist/node/lib/deprecationMigrate.d.ts.map +0 -1
  558. package/dist/node/lib/eslintCache.d.ts +0 -4
  559. package/dist/node/lib/eslintCache.d.ts.map +0 -1
  560. package/dist/node/lib/file/ReadFileSyncOptions.d.ts +0 -6
  561. package/dist/node/lib/file/ReadFileSyncOptions.d.ts.map +0 -1
  562. package/dist/node/lib/file/constants.d.ts +0 -3
  563. package/dist/node/lib/file/constants.d.ts.map +0 -1
  564. package/dist/node/lib/file/fileLines.d.ts +0 -6
  565. package/dist/node/lib/file/fileLines.d.ts.map +0 -1
  566. package/dist/node/lib/file/index.d.ts +0 -5
  567. package/dist/node/lib/file/index.d.ts.map +0 -1
  568. package/dist/node/lib/file/tryReadFileSync.d.ts +0 -4
  569. package/dist/node/lib/file/tryReadFileSync.d.ts.map +0 -1
  570. package/dist/node/lib/fillTemplate.d.ts +0 -2
  571. package/dist/node/lib/fillTemplate.d.ts.map +0 -1
  572. package/dist/node/lib/generateIgnoreFiles.d.ts +0 -2
  573. package/dist/node/lib/generateIgnoreFiles.d.ts.map +0 -1
  574. package/dist/node/lib/gitConfig.d.ts +0 -25
  575. package/dist/node/lib/gitConfig.d.ts.map +0 -1
  576. package/dist/node/lib/gitignoreTemplate.d.ts +0 -2
  577. package/dist/node/lib/gitignoreTemplate.d.ts.map +0 -1
  578. package/dist/node/lib/index.d.ts +0 -45
  579. package/dist/node/lib/index.d.ts.map +0 -1
  580. package/dist/node/lib/initCwd.d.ts +0 -2
  581. package/dist/node/lib/initCwd.d.ts.map +0 -1
  582. package/dist/node/lib/jsonFormatters.d.ts +0 -2
  583. package/dist/node/lib/jsonFormatters.d.ts.map +0 -1
  584. package/dist/node/lib/latestVersions.d.ts +0 -8
  585. package/dist/node/lib/latestVersions.d.ts.map +0 -1
  586. package/dist/node/lib/loadConfig.d.ts +0 -10
  587. package/dist/node/lib/loadConfig.d.ts.map +0 -1
  588. package/dist/node/lib/match.d.ts +0 -21
  589. package/dist/node/lib/match.d.ts.map +0 -1
  590. package/dist/node/lib/npmLatestVersion.d.ts +0 -3
  591. package/dist/node/lib/npmLatestVersion.d.ts.map +0 -1
  592. package/dist/node/lib/packageManagerRuntime.d.ts +0 -25
  593. package/dist/node/lib/packageManagerRuntime.d.ts.map +0 -1
  594. package/dist/node/lib/packageName.d.ts +0 -2
  595. package/dist/node/lib/packageName.d.ts.map +0 -1
  596. package/dist/node/lib/parsedPackageJson.d.ts +0 -2
  597. package/dist/node/lib/parsedPackageJson.d.ts.map +0 -1
  598. package/dist/node/lib/pnpmConfig/index.d.ts +0 -2
  599. package/dist/node/lib/pnpmConfig/index.d.ts.map +0 -1
  600. package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts +0 -18
  601. package/dist/node/lib/pnpmConfig/readMinReleaseAge.d.ts.map +0 -1
  602. package/dist/node/lib/processEx.d.ts +0 -2
  603. package/dist/node/lib/processEx.d.ts.map +0 -1
  604. package/dist/node/lib/repoTemplates.d.ts +0 -7
  605. package/dist/node/lib/repoTemplates.d.ts.map +0 -1
  606. package/dist/node/lib/reporting/index.d.ts +0 -3
  607. package/dist/node/lib/reporting/index.d.ts.map +0 -1
  608. package/dist/node/lib/reporting/runWithEnvelope.d.ts +0 -15
  609. package/dist/node/lib/reporting/runWithEnvelope.d.ts.map +0 -1
  610. package/dist/node/lib/reporting/xyReporter.d.ts +0 -27
  611. package/dist/node/lib/reporting/xyReporter.d.ts.map +0 -1
  612. package/dist/node/lib/runSteps.d.ts +0 -3
  613. package/dist/node/lib/runSteps.d.ts.map +0 -1
  614. package/dist/node/lib/runStepsAsync.d.ts +0 -4
  615. package/dist/node/lib/runStepsAsync.d.ts.map +0 -1
  616. package/dist/node/lib/runXy.d.ts +0 -2
  617. package/dist/node/lib/runXy.d.ts.map +0 -1
  618. package/dist/node/lib/runXyWithWarning.d.ts +0 -2
  619. package/dist/node/lib/runXyWithWarning.d.ts.map +0 -1
  620. package/dist/node/lib/safeExit.d.ts +0 -8
  621. package/dist/node/lib/safeExit.d.ts.map +0 -1
  622. package/dist/node/lib/secure/classify.d.ts +0 -8
  623. package/dist/node/lib/secure/classify.d.ts.map +0 -1
  624. package/dist/node/lib/secure/collectDeclaredDependencies.d.ts +0 -6
  625. package/dist/node/lib/secure/collectDeclaredDependencies.d.ts.map +0 -1
  626. package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts +0 -8
  627. package/dist/node/lib/secure/fetchPackageSecurityMetadata.d.ts.map +0 -1
  628. package/dist/node/lib/secure/index.d.ts +0 -7
  629. package/dist/node/lib/secure/index.d.ts.map +0 -1
  630. package/dist/node/lib/secure/interfaces.d.ts +0 -35
  631. package/dist/node/lib/secure/interfaces.d.ts.map +0 -1
  632. package/dist/node/lib/secure/renderSecurityAudit.d.ts +0 -4
  633. package/dist/node/lib/secure/renderSecurityAudit.d.ts.map +0 -1
  634. package/dist/node/lib/secure/runSecurityAudit.d.ts +0 -15
  635. package/dist/node/lib/secure/runSecurityAudit.d.ts.map +0 -1
  636. package/dist/node/lib/shouldRunInstall.d.ts +0 -2
  637. package/dist/node/lib/shouldRunInstall.d.ts.map +0 -1
  638. package/dist/node/lib/string/empty.d.ts +0 -3
  639. package/dist/node/lib/string/empty.d.ts.map +0 -1
  640. package/dist/node/lib/string/index.d.ts +0 -4
  641. package/dist/node/lib/string/index.d.ts.map +0 -1
  642. package/dist/node/lib/string/localeCompare.d.ts +0 -2
  643. package/dist/node/lib/string/localeCompare.d.ts.map +0 -1
  644. package/dist/node/lib/string/union.d.ts +0 -2
  645. package/dist/node/lib/string/union.d.ts.map +0 -1
  646. package/dist/node/lib/toolchainVersion.d.ts +0 -3
  647. package/dist/node/lib/toolchainVersion.d.ts.map +0 -1
  648. package/dist/node/lib/tryRunLocalScript.d.ts +0 -10
  649. package/dist/node/lib/tryRunLocalScript.d.ts.map +0 -1
  650. package/dist/node/lib/updo/applyUpdates.d.ts +0 -4
  651. package/dist/node/lib/updo/applyUpdates.d.ts.map +0 -1
  652. package/dist/node/lib/updo/collectWorkspaceDeps.d.ts +0 -4
  653. package/dist/node/lib/updo/collectWorkspaceDeps.d.ts.map +0 -1
  654. package/dist/node/lib/updo/fetchRegistryInfo.d.ts +0 -37
  655. package/dist/node/lib/updo/fetchRegistryInfo.d.ts.map +0 -1
  656. package/dist/node/lib/updo/index.d.ts +0 -9
  657. package/dist/node/lib/updo/index.d.ts.map +0 -1
  658. package/dist/node/lib/updo/interactiveSelect.d.ts +0 -31
  659. package/dist/node/lib/updo/interactiveSelect.d.ts.map +0 -1
  660. package/dist/node/lib/updo/interfaces.d.ts +0 -50
  661. package/dist/node/lib/updo/interfaces.d.ts.map +0 -1
  662. package/dist/node/lib/updo/renderTable.d.ts +0 -3
  663. package/dist/node/lib/updo/renderTable.d.ts.map +0 -1
  664. package/dist/node/lib/updo/resolveVersions.d.ts +0 -19
  665. package/dist/node/lib/updo/resolveVersions.d.ts.map +0 -1
  666. package/dist/node/lib/updo/runUpdo.d.ts +0 -27
  667. package/dist/node/lib/updo/runUpdo.d.ts.map +0 -1
  668. package/dist/node/lib/withErrnoException.d.ts +0 -2
  669. package/dist/node/lib/withErrnoException.d.ts.map +0 -1
  670. package/dist/node/lib/withError.d.ts +0 -2
  671. package/dist/node/lib/withError.d.ts.map +0 -1
  672. package/dist/node/lib/yarn/index.d.ts +0 -3
  673. package/dist/node/lib/yarn/index.d.ts.map +0 -1
  674. package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts +0 -2
  675. package/dist/node/lib/yarn/isYarnVersionOrGreater.d.ts.map +0 -1
  676. package/dist/node/lib/yarn/workspace/Workspace.d.ts +0 -2
  677. package/dist/node/lib/yarn/workspace/Workspace.d.ts.map +0 -1
  678. package/dist/node/lib/yarn/workspace/index.d.ts +0 -3
  679. package/dist/node/lib/yarn/workspace/index.d.ts.map +0 -1
  680. package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts +0 -3
  681. package/dist/node/lib/yarn/workspace/yarnWorkspace.d.ts.map +0 -1
  682. package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts +0 -3
  683. package/dist/node/lib/yarn/workspace/yarnWorkspaces.d.ts.map +0 -1
  684. package/dist/node/loadPackageConfig.d.ts +0 -40
  685. package/dist/node/loadPackageConfig.d.ts.map +0 -1
  686. package/dist/node/pm/PackageManager.d.ts +0 -85
  687. package/dist/node/pm/PackageManager.d.ts.map +0 -1
  688. package/dist/node/pm/bunPackageManager.d.ts +0 -20
  689. package/dist/node/pm/bunPackageManager.d.ts.map +0 -1
  690. package/dist/node/pm/detectPackageManager.d.ts +0 -3
  691. package/dist/node/pm/detectPackageManager.d.ts.map +0 -1
  692. package/dist/node/pm/index.d.ts +0 -11
  693. package/dist/node/pm/index.d.ts.map +0 -1
  694. package/dist/node/pm/isReactProject.d.ts +0 -3
  695. package/dist/node/pm/isReactProject.d.ts.map +0 -1
  696. package/dist/node/pm/npmPackageManager.d.ts +0 -20
  697. package/dist/node/pm/npmPackageManager.d.ts.map +0 -1
  698. package/dist/node/pm/pnpmPackageManager.d.ts +0 -20
  699. package/dist/node/pm/pnpmPackageManager.d.ts.map +0 -1
  700. package/dist/node/pm/registry.d.ts +0 -5
  701. package/dist/node/pm/registry.d.ts.map +0 -1
  702. package/dist/node/pm/resolveWorkspace.d.ts +0 -3
  703. package/dist/node/pm/resolveWorkspace.d.ts.map +0 -1
  704. package/dist/node/pm/runtime.d.ts +0 -2
  705. package/dist/node/pm/runtime.d.ts.map +0 -1
  706. package/dist/node/pm/workspaces.d.ts +0 -15
  707. package/dist/node/pm/workspaces.d.ts.map +0 -1
  708. package/dist/node/pm/yarnPackageManager.d.ts +0 -20
  709. package/dist/node/pm/yarnPackageManager.d.ts.map +0 -1
  710. package/dist/node/xy/build/buildCommand.d.ts +0 -3
  711. package/dist/node/xy/build/buildCommand.d.ts.map +0 -1
  712. package/dist/node/xy/build/compileCommand.d.ts +0 -3
  713. package/dist/node/xy/build/compileCommand.d.ts.map +0 -1
  714. package/dist/node/xy/build/copyAssetsCommand.d.ts +0 -3
  715. package/dist/node/xy/build/copyAssetsCommand.d.ts.map +0 -1
  716. package/dist/node/xy/build/index.d.ts +0 -3
  717. package/dist/node/xy/build/index.d.ts.map +0 -1
  718. package/dist/node/xy/build/rebuildCommand.d.ts +0 -3
  719. package/dist/node/xy/build/rebuildCommand.d.ts.map +0 -1
  720. package/dist/node/xy/build/recompileCommand.d.ts +0 -3
  721. package/dist/node/xy/build/recompileCommand.d.ts.map +0 -1
  722. package/dist/node/xy/build/tscValidateCommand.d.ts +0 -3
  723. package/dist/node/xy/build/tscValidateCommand.d.ts.map +0 -1
  724. package/dist/node/xy/common/checkCommand.d.ts +0 -3
  725. package/dist/node/xy/common/checkCommand.d.ts.map +0 -1
  726. package/dist/node/xy/common/deadCommand.d.ts +0 -3
  727. package/dist/node/xy/common/deadCommand.d.ts.map +0 -1
  728. package/dist/node/xy/common/gitignoreCommand.d.ts +0 -3
  729. package/dist/node/xy/common/gitignoreCommand.d.ts.map +0 -1
  730. package/dist/node/xy/common/gitlintCommand.d.ts +0 -3
  731. package/dist/node/xy/common/gitlintCommand.d.ts.map +0 -1
  732. package/dist/node/xy/common/index.d.ts +0 -3
  733. package/dist/node/xy/common/index.d.ts.map +0 -1
  734. package/dist/node/xy/common/licenseCommand.d.ts +0 -3
  735. package/dist/node/xy/common/licenseCommand.d.ts.map +0 -1
  736. package/dist/node/xy/common/npmignoreGenCommand.d.ts +0 -3
  737. package/dist/node/xy/common/npmignoreGenCommand.d.ts.map +0 -1
  738. package/dist/node/xy/common/orphan/cleanCommand.d.ts +0 -3
  739. package/dist/node/xy/common/orphan/cleanCommand.d.ts.map +0 -1
  740. package/dist/node/xy/common/orphan/index.d.ts +0 -3
  741. package/dist/node/xy/common/orphan/index.d.ts.map +0 -1
  742. package/dist/node/xy/common/orphan/listCommand.d.ts +0 -3
  743. package/dist/node/xy/common/orphan/listCommand.d.ts.map +0 -1
  744. package/dist/node/xy/common/packmanCommand.d.ts +0 -3
  745. package/dist/node/xy/common/packmanCommand.d.ts.map +0 -1
  746. package/dist/node/xy/common/repo/index.d.ts +0 -3
  747. package/dist/node/xy/common/repo/index.d.ts.map +0 -1
  748. package/dist/node/xy/common/repo/initCommand.d.ts +0 -3
  749. package/dist/node/xy/common/repo/initCommand.d.ts.map +0 -1
  750. package/dist/node/xy/common/repo/lintCommand.d.ts +0 -3
  751. package/dist/node/xy/common/repo/lintCommand.d.ts.map +0 -1
  752. package/dist/node/xy/common/retestCommand.d.ts +0 -3
  753. package/dist/node/xy/common/retestCommand.d.ts.map +0 -1
  754. package/dist/node/xy/common/secureCommand.d.ts +0 -3
  755. package/dist/node/xy/common/secureCommand.d.ts.map +0 -1
  756. package/dist/node/xy/common/skills/index.d.ts +0 -3
  757. package/dist/node/xy/common/skills/index.d.ts.map +0 -1
  758. package/dist/node/xy/common/testCommand.d.ts +0 -3
  759. package/dist/node/xy/common/testCommand.d.ts.map +0 -1
  760. package/dist/node/xy/common/work/addCommand.d.ts +0 -3
  761. package/dist/node/xy/common/work/addCommand.d.ts.map +0 -1
  762. package/dist/node/xy/common/work/claimCommand.d.ts +0 -3
  763. package/dist/node/xy/common/work/claimCommand.d.ts.map +0 -1
  764. package/dist/node/xy/common/work/doneCommand.d.ts +0 -3
  765. package/dist/node/xy/common/work/doneCommand.d.ts.map +0 -1
  766. package/dist/node/xy/common/work/index.d.ts +0 -3
  767. package/dist/node/xy/common/work/index.d.ts.map +0 -1
  768. package/dist/node/xy/common/work/initCommand.d.ts +0 -3
  769. package/dist/node/xy/common/work/initCommand.d.ts.map +0 -1
  770. package/dist/node/xy/common/work/listCommand.d.ts +0 -3
  771. package/dist/node/xy/common/work/listCommand.d.ts.map +0 -1
  772. package/dist/node/xy/common/work/nextCommand.d.ts +0 -3
  773. package/dist/node/xy/common/work/nextCommand.d.ts.map +0 -1
  774. package/dist/node/xy/common/work/options.d.ts +0 -5
  775. package/dist/node/xy/common/work/options.d.ts.map +0 -1
  776. package/dist/node/xy/common/work/queueCommand.d.ts +0 -3
  777. package/dist/node/xy/common/work/queueCommand.d.ts.map +0 -1
  778. package/dist/node/xy/common/work/showCommand.d.ts +0 -3
  779. package/dist/node/xy/common/work/showCommand.d.ts.map +0 -1
  780. package/dist/node/xy/common/work/triageCommand.d.ts +0 -3
  781. package/dist/node/xy/common/work/triageCommand.d.ts.map +0 -1
  782. package/dist/node/xy/common/work/updateCommand.d.ts +0 -3
  783. package/dist/node/xy/common/work/updateCommand.d.ts.map +0 -1
  784. package/dist/node/xy/deploy/deployCommand.d.ts +0 -3
  785. package/dist/node/xy/deploy/deployCommand.d.ts.map +0 -1
  786. package/dist/node/xy/deploy/index.d.ts +0 -3
  787. package/dist/node/xy/deploy/index.d.ts.map +0 -1
  788. package/dist/node/xy/deploy/publishCommand.d.ts +0 -3
  789. package/dist/node/xy/deploy/publishCommand.d.ts.map +0 -1
  790. package/dist/node/xy/index.d.ts +0 -9
  791. package/dist/node/xy/index.d.ts.map +0 -1
  792. package/dist/node/xy/install/cleanCommand.d.ts +0 -3
  793. package/dist/node/xy/install/cleanCommand.d.ts.map +0 -1
  794. package/dist/node/xy/install/index.d.ts +0 -3
  795. package/dist/node/xy/install/index.d.ts.map +0 -1
  796. package/dist/node/xy/install/installCommand.d.ts +0 -3
  797. package/dist/node/xy/install/installCommand.d.ts.map +0 -1
  798. package/dist/node/xy/install/reinstallCommand.d.ts +0 -3
  799. package/dist/node/xy/install/reinstallCommand.d.ts.map +0 -1
  800. package/dist/node/xy/install/staticsCommand.d.ts +0 -3
  801. package/dist/node/xy/install/staticsCommand.d.ts.map +0 -1
  802. package/dist/node/xy/install/upCommand.d.ts +0 -3
  803. package/dist/node/xy/install/upCommand.d.ts.map +0 -1
  804. package/dist/node/xy/install/updoCommand.d.ts +0 -3
  805. package/dist/node/xy/install/updoCommand.d.ts.map +0 -1
  806. package/dist/node/xy/lint/apiExposureCommand.d.ts +0 -3
  807. package/dist/node/xy/lint/apiExposureCommand.d.ts.map +0 -1
  808. package/dist/node/xy/lint/cycleCommand.d.ts +0 -3
  809. package/dist/node/xy/lint/cycleCommand.d.ts.map +0 -1
  810. package/dist/node/xy/lint/deplintCommand.d.ts +0 -3
  811. package/dist/node/xy/lint/deplintCommand.d.ts.map +0 -1
  812. package/dist/node/xy/lint/fixCommand.d.ts +0 -3
  813. package/dist/node/xy/lint/fixCommand.d.ts.map +0 -1
  814. package/dist/node/xy/lint/index.d.ts +0 -3
  815. package/dist/node/xy/lint/index.d.ts.map +0 -1
  816. package/dist/node/xy/lint/lint/configCommand.d.ts +0 -5
  817. package/dist/node/xy/lint/lint/configCommand.d.ts.map +0 -1
  818. package/dist/node/xy/lint/lint/index.d.ts +0 -3
  819. package/dist/node/xy/lint/lint/index.d.ts.map +0 -1
  820. package/dist/node/xy/lint/lint/initCommand.d.ts +0 -3
  821. package/dist/node/xy/lint/lint/initCommand.d.ts.map +0 -1
  822. package/dist/node/xy/lint/lint/runCommand.d.ts +0 -3
  823. package/dist/node/xy/lint/lint/runCommand.d.ts.map +0 -1
  824. package/dist/node/xy/lint/lintCommand.d.ts +0 -2
  825. package/dist/node/xy/lint/lintCommand.d.ts.map +0 -1
  826. package/dist/node/xy/lint/lintlintCommand.d.ts +0 -3
  827. package/dist/node/xy/lint/lintlintCommand.d.ts.map +0 -1
  828. package/dist/node/xy/lint/nodeLintCommand.d.ts +0 -3
  829. package/dist/node/xy/lint/nodeLintCommand.d.ts.map +0 -1
  830. package/dist/node/xy/lint/publintCommand.d.ts +0 -3
  831. package/dist/node/xy/lint/publintCommand.d.ts.map +0 -1
  832. package/dist/node/xy/lint/relintCommand.d.ts +0 -3
  833. package/dist/node/xy/lint/relintCommand.d.ts.map +0 -1
  834. package/dist/node/xy/lint/republintCommand.d.ts +0 -3
  835. package/dist/node/xy/lint/republintCommand.d.ts.map +0 -1
  836. package/dist/node/xy/lint/sonarCommand.d.ts +0 -3
  837. package/dist/node/xy/lint/sonarCommand.d.ts.map +0 -1
  838. package/dist/node/xy/packageManagerWarning.d.ts +0 -4
  839. package/dist/node/xy/packageManagerWarning.d.ts.map +0 -1
  840. package/dist/node/xy/param.d.ts +0 -5
  841. package/dist/node/xy/param.d.ts.map +0 -1
  842. package/dist/node/xy/react/analyzeCommand.d.ts +0 -3
  843. package/dist/node/xy/react/analyzeCommand.d.ts.map +0 -1
  844. package/dist/node/xy/react/ejectCommand.d.ts +0 -3
  845. package/dist/node/xy/react/ejectCommand.d.ts.map +0 -1
  846. package/dist/node/xy/react/index.d.ts +0 -3
  847. package/dist/node/xy/react/index.d.ts.map +0 -1
  848. package/dist/node/xy/react/sitemapCommand.d.ts +0 -3
  849. package/dist/node/xy/react/sitemapCommand.d.ts.map +0 -1
  850. package/dist/node/xy/react/startCommand.d.ts +0 -3
  851. package/dist/node/xy/react/startCommand.d.ts.map +0 -1
  852. package/dist/node/xy/xy.d.ts +0 -20
  853. package/dist/node/xy/xy.d.ts.map +0 -1
  854. package/dist/node/xy/xyParseOptions.d.ts +0 -3
  855. package/dist/node/xy/xyParseOptions.d.ts.map +0 -1
  856. package/dist/pm/detectReact.d.ts +0 -3
  857. package/dist/pm/detectReact.d.ts.map +0 -1
  858. package/dist/xy/common/claude/checkCommand.d.ts +0 -3
  859. package/dist/xy/common/claude/checkCommand.d.ts.map +0 -1
  860. package/dist/xy/common/claude/cleanCommand.d.ts +0 -3
  861. package/dist/xy/common/claude/cleanCommand.d.ts.map +0 -1
  862. package/dist/xy/common/claude/commandsCommand.d.ts +0 -3
  863. package/dist/xy/common/claude/commandsCommand.d.ts.map +0 -1
  864. package/dist/xy/common/claude/index.d.ts +0 -3
  865. package/dist/xy/common/claude/index.d.ts.map +0 -1
  866. package/dist/xy/common/claude/initCommand.d.ts +0 -3
  867. package/dist/xy/common/claude/initCommand.d.ts.map +0 -1
  868. package/dist/xy/common/claude/rulesCommand.d.ts +0 -3
  869. package/dist/xy/common/claude/rulesCommand.d.ts.map +0 -1
  870. package/dist/xy/common/claude/settingsCommand.d.ts +0 -3
  871. package/dist/xy/common/claude/settingsCommand.d.ts.map +0 -1
  872. package/dist/xy/common/claude/skillsCommand.d.ts +0 -3
  873. package/dist/xy/common/claude/skillsCommand.d.ts.map +0 -1
  874. package/dist/xy/common/skills/addCommand.d.ts +0 -3
  875. package/dist/xy/common/skills/addCommand.d.ts.map +0 -1
  876. package/dist/xy/common/skills/experimentalInstallCommand.d.ts +0 -3
  877. package/dist/xy/common/skills/experimentalInstallCommand.d.ts.map +0 -1
  878. package/dist/xy/common/skills/experimentalSyncCommand.d.ts +0 -3
  879. package/dist/xy/common/skills/experimentalSyncCommand.d.ts.map +0 -1
  880. package/dist/xy/common/skills/findCommand.d.ts +0 -3
  881. package/dist/xy/common/skills/findCommand.d.ts.map +0 -1
  882. package/dist/xy/common/skills/initCommand.d.ts +0 -3
  883. package/dist/xy/common/skills/initCommand.d.ts.map +0 -1
  884. package/dist/xy/common/skills/lintCommand.d.ts +0 -3
  885. package/dist/xy/common/skills/lintCommand.d.ts.map +0 -1
  886. package/dist/xy/common/skills/listCommand.d.ts +0 -3
  887. package/dist/xy/common/skills/listCommand.d.ts.map +0 -1
  888. package/dist/xy/common/skills/removeCommand.d.ts +0 -3
  889. package/dist/xy/common/skills/removeCommand.d.ts.map +0 -1
  890. package/dist/xy/common/skills/updateCommand.d.ts +0 -3
  891. package/dist/xy/common/skills/updateCommand.d.ts.map +0 -1
  892. package/dist/xy/common/skills/updoCommand.d.ts +0 -3
  893. package/dist/xy/common/skills/updoCommand.d.ts.map +0 -1
  894. package/dist/xy/install/upskillsCommand.d.ts +0 -3
  895. package/dist/xy/install/upskillsCommand.d.ts.map +0 -1
@@ -9006,8 +9006,8 @@ var require_ExplorerSync = /* @__PURE__ */ __commonJSMin(((exports) => {
9006
9006
  exports.ExplorerSync = ExplorerSync;
9007
9007
  }));
9008
9008
  //#endregion
9009
- //#region src/lib/loadConfig.ts
9010
- var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
9009
+ //#region ../../node_modules/.pnpm/cosmiconfig@9.0.2_typescript@6.0.3/node_modules/cosmiconfig/dist/index.js
9010
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
9011
9011
  Object.defineProperty(exports, "__esModule", { value: true });
9012
9012
  exports.defaultLoadersSync = exports.defaultLoaders = exports.globalConfigSearchPlacesSync = exports.globalConfigSearchPlaces = exports.getDefaultSearchPlacesSync = exports.getDefaultSearchPlaces = void 0;
9013
9013
  exports.cosmiconfig = cosmiconfig;
@@ -9139,13 +9139,130 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
9139
9139
  clearCaches: explorer.clearCaches.bind(explorer)
9140
9140
  };
9141
9141
  }
9142
- })))();
9142
+ }));
9143
+ //#endregion
9144
+ //#region src/lib/ruleCommandRegistry.ts
9145
+ const RULE_COMMANDS = {
9146
+ apiExposure: {
9147
+ command: "api-exposure",
9148
+ configKey: "apiExposure",
9149
+ includeInRoot: true,
9150
+ title: "API Exposure Rules"
9151
+ },
9152
+ check: {
9153
+ command: "check",
9154
+ includeInRoot: true,
9155
+ title: "Check Rules"
9156
+ },
9157
+ clean: {
9158
+ command: "clean",
9159
+ configKey: "clean",
9160
+ includeInRoot: true,
9161
+ title: "Clean Rules"
9162
+ },
9163
+ cycle: {
9164
+ command: "cycle",
9165
+ includeInRoot: true,
9166
+ title: "Cycle Rules"
9167
+ },
9168
+ dead: {
9169
+ command: "dead",
9170
+ configKey: "dead",
9171
+ includeInRoot: true,
9172
+ title: "Dead Rules"
9173
+ },
9174
+ deplint: {
9175
+ command: "deplint",
9176
+ configKey: "deplint",
9177
+ includeInRoot: true,
9178
+ title: "Deplint Rules"
9179
+ },
9180
+ fix: {
9181
+ command: "fix",
9182
+ includeInRoot: false,
9183
+ title: "Fix Rules"
9184
+ },
9185
+ gitLint: {
9186
+ aliases: ["gitlint"],
9187
+ command: "git lint",
9188
+ configKey: "gitLint",
9189
+ includeInRoot: true,
9190
+ title: "Git Lint Rules"
9191
+ },
9192
+ lint: {
9193
+ aliases: ["relint"],
9194
+ command: "lint",
9195
+ includeInRoot: true,
9196
+ title: "Lint Rules"
9197
+ },
9198
+ lintLint: {
9199
+ aliases: ["lintlint"],
9200
+ command: "lint lint",
9201
+ configKey: "lintLint",
9202
+ includeInRoot: true,
9203
+ title: "Lint Lint Rules"
9204
+ },
9205
+ nodeLint: {
9206
+ aliases: ["node-lint"],
9207
+ command: "node lint",
9208
+ configKey: "nodeLint",
9209
+ includeInRoot: true,
9210
+ title: "Node Lint Rules"
9211
+ },
9212
+ packman: {
9213
+ command: "packman lint",
9214
+ configKey: "packman",
9215
+ includeInRoot: true,
9216
+ title: "Packman Lint Rules"
9217
+ },
9218
+ publint: {
9219
+ aliases: ["republint"],
9220
+ command: "publint",
9221
+ configKey: "publint",
9222
+ includeInRoot: true,
9223
+ title: "Publint Rules"
9224
+ },
9225
+ repoLint: {
9226
+ command: "repo lint",
9227
+ configKey: "repoLint",
9228
+ includeInRoot: true,
9229
+ title: "Repo Lint Rules"
9230
+ },
9231
+ skillsLint: {
9232
+ command: "skills lint",
9233
+ configKey: "skillsLint",
9234
+ includeInRoot: true,
9235
+ title: "Skills Lint Rules"
9236
+ }
9237
+ };
9238
+ const DEPRECATED_CONFIG_KEY_ALIASES = {
9239
+ gitLint: ["gitlint"],
9240
+ lintLint: ["lintlint"]
9241
+ };
9242
+ const CONFIG_ALIAS_TO_CANONICAL = new Map(Object.entries(DEPRECATED_CONFIG_KEY_ALIASES).flatMap(([canonical, aliases]) => aliases.map((alias) => [alias, canonical])));
9243
+ const RULE_CONFIG_COMMAND_KEYS = new Set(Object.values(RULE_COMMANDS).flatMap((command) => "configKey" in command ? [command.configKey] : []));
9244
+ function canonicalRuleConfigKey(commandName) {
9245
+ return CONFIG_ALIAS_TO_CANONICAL.get(commandName) ?? commandName;
9246
+ }
9247
+ function deprecatedRuleConfigAliases(configKey) {
9248
+ return Object.entries(DEPRECATED_CONFIG_KEY_ALIASES).find(([canonical]) => canonical === configKey)?.[1] ?? [];
9249
+ }
9250
+ //#endregion
9251
+ //#region src/lib/loadConfig.ts
9252
+ var import_dist = require_dist();
9143
9253
  const configState = {
9144
9254
  config: void 0,
9145
9255
  /** In-flight root load so concurrent callers share one cosmiconfig search. */
9146
9256
  loadPromise: void 0,
9147
9257
  rootConfigPath: void 0
9148
9258
  };
9259
+ const workspaceConfigCache = /* @__PURE__ */ new Map();
9260
+ /** In-flight workspace loads — concurrent jobs for the same dir share one search. */
9261
+ const workspaceConfigLoadPromises = /* @__PURE__ */ new Map();
9262
+ const deprecationWarned = /* @__PURE__ */ new Set();
9263
+ function isRecord(value) {
9264
+ return typeof value === "object" && value !== null && !Array.isArray(value);
9265
+ }
9149
9266
  const explorerState = {};
9150
9267
  function getExplorer() {
9151
9268
  explorerState.current ??= (0, import_dist.cosmiconfig)("xy", {
@@ -9180,6 +9297,100 @@ const loadConfig = async (params) => {
9180
9297
  await ensureRootConfigLoaded();
9181
9298
  return deepMerge$1(configState.config ?? {}, params ?? {});
9182
9299
  };
9300
+ /**
9301
+ * Loads the xy.config from a specific workspace directory.
9302
+ * Returns an empty object if the workspace has no config or if
9303
+ * the found config is the root config (avoids double-applying).
9304
+ */
9305
+ async function loadWorkspaceConfig(workspaceDir) {
9306
+ const cached = workspaceConfigCache.get(workspaceDir);
9307
+ if (cached !== void 0) return cached;
9308
+ const inFlight = workspaceConfigLoadPromises.get(workspaceDir);
9309
+ if (inFlight !== void 0) return inFlight;
9310
+ const loadPromise = (async () => {
9311
+ await ensureRootConfigLoaded();
9312
+ const result = await getExplorer().search(workspaceDir);
9313
+ if (!result || result.filepath === configState.rootConfigPath) {
9314
+ workspaceConfigCache.set(workspaceDir, {});
9315
+ return {};
9316
+ }
9317
+ const wsConfig = result.config ?? {};
9318
+ workspaceConfigCache.set(workspaceDir, wsConfig);
9319
+ return wsConfig;
9320
+ })();
9321
+ workspaceConfigLoadPromises.set(workspaceDir, loadPromise);
9322
+ try {
9323
+ return await loadPromise;
9324
+ } finally {
9325
+ workspaceConfigLoadPromises.delete(workspaceDir);
9326
+ }
9327
+ }
9328
+ /** Deprecated top-level fields that should be under `commands`. */
9329
+ const DEPRECATED_COMMAND_FIELDS = /* @__PURE__ */ new Set(["deplint", "publint"]);
9330
+ function warnOnce(key, message) {
9331
+ if (deprecationWarned.has(key)) return;
9332
+ deprecationWarned.add(key);
9333
+ console.warn(chalk.yellow(message));
9334
+ }
9335
+ /**
9336
+ * Resolves a command's config field from a config object.
9337
+ * Prefers `commands.[name]` over top-level `[name]`.
9338
+ * Warns once per config file when a deprecated top-level field is used.
9339
+ */
9340
+ function resolveCommandField(cfg, commandName, configPath) {
9341
+ const configKey = canonicalRuleConfigKey(commandName);
9342
+ const commands = isRecord(cfg.commands) ? cfg.commands : void 0;
9343
+ const fromCommands = commands?.[configKey];
9344
+ if (isRecord(fromCommands)) return fromCommands;
9345
+ for (const alias of deprecatedRuleConfigAliases(configKey)) {
9346
+ const fromAlias = commands?.[alias];
9347
+ if (!isRecord(fromAlias)) continue;
9348
+ warnOnce(`${configPath ?? "unknown"}:commands.${alias}`, `[xy] Deprecated: "commands.${alias}" in ${configPath ?? "xy.config"} — use "commands.${configKey}"`);
9349
+ return fromAlias;
9350
+ }
9351
+ const fromTopLevel = cfg[configKey];
9352
+ if (fromTopLevel !== void 0 && typeof fromTopLevel === "object" && DEPRECATED_COMMAND_FIELDS.has(configKey)) {
9353
+ warnOnce(`${configPath ?? "unknown"}:${configKey}`, `[xy] Deprecated: top-level "${configKey}" in ${configPath ?? "xy.config"} — move to "commands.${configKey}"`);
9354
+ return fromTopLevel;
9355
+ }
9356
+ return {};
9357
+ }
9358
+ function mergeRuleConfigs(target, source) {
9359
+ if (isRecord(target) && isRecord(source)) return {
9360
+ ...target,
9361
+ ...source
9362
+ };
9363
+ return source;
9364
+ }
9365
+ function mergeCommandConfig(rootCmd, workspaceCmd, commandName) {
9366
+ const configKey = canonicalRuleConfigKey(commandName);
9367
+ return deepMerge$1(rootCmd, workspaceCmd, { customMerge: (key) => key === "rules" && RULE_CONFIG_COMMAND_KEYS.has(configKey) ? mergeRuleConfigs : void 0 });
9368
+ }
9369
+ /**
9370
+ * Loads a command-specific config merged from root and workspace levels.
9371
+ * The root config provides defaults; the workspace config extends/overrides.
9372
+ * Arrays (e.g. `exclude`) are unioned and maps (e.g. `packages`) are merged
9373
+ * via deepmerge, with workspace entries overriding root entries for the same key.
9374
+ * Rule entries are replaced per rule id so tuple configs keep their
9375
+ * ESLint-like shape instead of being concatenated as arrays.
9376
+ */
9377
+ /**
9378
+ * The root config only cascades into workspaces that live inside its own
9379
+ * directory tree. A workspace elsewhere on disk (e.g. spec fixtures under
9380
+ * the OS temp dir) must not inherit whatever repo the process happens to
9381
+ * run from.
9382
+ */
9383
+ function isWorkspaceUnderRootConfig(workspaceDir) {
9384
+ if (configState.rootConfigPath === void 0) return true;
9385
+ const rootDir = PATH.dirname(configState.rootConfigPath);
9386
+ const relative = PATH.relative(rootDir, PATH.resolve(workspaceDir));
9387
+ return relative === "" || !relative.startsWith("..") && !PATH.isAbsolute(relative);
9388
+ }
9389
+ async function loadWorkspaceCommandConfig(workspaceDir, commandName) {
9390
+ const configKey = canonicalRuleConfigKey(commandName);
9391
+ const root = await loadConfig();
9392
+ return mergeCommandConfig(isWorkspaceUnderRootConfig(workspaceDir) ? resolveCommandField(root, configKey, configState.rootConfigPath) : {}, resolveCommandField(await loadWorkspaceConfig(workspaceDir), configKey, workspaceConfigCache.has(workspaceDir) ? workspaceDir : void 0), configKey);
9393
+ }
9183
9394
  //#endregion
9184
9395
  //#region ../../node_modules/.pnpm/balanced-match@4.0.4/node_modules/balanced-match/dist/esm/index.js
9185
9396
  const balanced = (a, b, str) => {
@@ -10734,21 +10945,407 @@ function listWorkspacesFromFs(cwd) {
10734
10945
  return workspaces;
10735
10946
  }
10736
10947
  //#endregion
10948
+ //#region src/actions/package/cleanGitignore.ts
10949
+ function normalizeRel(rootDir, absPath) {
10950
+ return PATH.relative(PATH.resolve(rootDir), PATH.resolve(absPath)).split(PATH.sep).join("/");
10951
+ }
10952
+ function runGit(rootDir, args) {
10953
+ const result = spawnSync("git", [
10954
+ "-C",
10955
+ rootDir,
10956
+ ...args
10957
+ ], {
10958
+ encoding: "utf8",
10959
+ maxBuffer: 32 * 1024 * 1024
10960
+ });
10961
+ return {
10962
+ status: result.status,
10963
+ stderr: result.stderr ?? "",
10964
+ stdout: result.stdout ?? ""
10965
+ };
10966
+ }
10967
+ /**
10968
+ * Default backend using `git check-ignore` / `git ls-files`. Respects nested
10969
+ * `.gitignore` files and global excludes the same way Git does.
10970
+ */
10971
+ const gitCleanGitignoreBackend = {
10972
+ isGitRepo(rootDir) {
10973
+ const result = runGit(rootDir, ["rev-parse", "--is-inside-work-tree"]);
10974
+ return result.status === 0 && result.stdout.trim() === "true";
10975
+ },
10976
+ isIgnored(rootDir, absPath) {
10977
+ const rel = normalizeRel(rootDir, absPath);
10978
+ if (rel === "" || rel.startsWith("..")) return false;
10979
+ return runGit(rootDir, [
10980
+ "check-ignore",
10981
+ "-q",
10982
+ "--",
10983
+ rel
10984
+ ]).status === 0;
10985
+ },
10986
+ listIgnoredUnder(rootDir, packageDir) {
10987
+ const root = PATH.resolve(rootDir);
10988
+ const pkg = PATH.resolve(packageDir);
10989
+ const packageRel = PATH.relative(root, pkg).split(PATH.sep).join("/");
10990
+ const result = runGit(root, [
10991
+ "ls-files",
10992
+ "--others",
10993
+ "--ignored",
10994
+ "--exclude-standard",
10995
+ "--directory",
10996
+ "-z",
10997
+ "--",
10998
+ packageRel === "" ? "." : packageRel
10999
+ ]);
11000
+ if (result.status !== 0) return [];
11001
+ const paths = [];
11002
+ for (const entry of result.stdout.split("\0")) {
11003
+ if (entry.length === 0) continue;
11004
+ const rel = entry.endsWith("/") ? entry.slice(0, -1) : entry;
11005
+ paths.push(PATH.resolve(root, rel));
11006
+ }
11007
+ return paths;
11008
+ }
11009
+ };
11010
+ /** Batch-check which absolute paths are gitignored. */
11011
+ function filterGitIgnoredPaths(rootDir, absPaths, backend = gitCleanGitignoreBackend) {
11012
+ const ignored = [];
11013
+ const notIgnored = [];
11014
+ for (const absPath of absPaths) if (backend.isIgnored(rootDir, absPath)) ignored.push(absPath);
11015
+ else notIgnored.push(absPath);
11016
+ return {
11017
+ ignored,
11018
+ notIgnored
11019
+ };
11020
+ }
11021
+ //#endregion
11022
+ //#region src/actions/package/cleanPatterns.ts
11023
+ /**
11024
+ * True when `candidate` is strictly inside `rootDir` (not equal to it and not
11025
+ * outside it). Used so clean never deletes the repo root itself or anything
11026
+ * above it.
11027
+ */
11028
+ function isStrictlyInsideRoot(rootDir, candidate) {
11029
+ const root = PATH.resolve(rootDir);
11030
+ const resolved = PATH.resolve(candidate);
11031
+ const relative = PATH.relative(root, resolved);
11032
+ return relative.length > 0 && relative !== ".." && !relative.startsWith(`..${PATH.sep}`) && !PATH.isAbsolute(relative);
11033
+ }
11034
+ /**
11035
+ * Resolve clean patterns relative to `baseDir` and ensure every resolved path
11036
+ * stays strictly inside `rootDir` (the monorepo root).
11037
+ *
11038
+ * - Absolute patterns are rejected (must be package-relative).
11039
+ * - Empty / whitespace-only patterns are rejected.
11040
+ * - Patterns that resolve outside or to the root itself throw.
11041
+ *
11042
+ * Returns absolute paths/globs safe to pass to `deleteGlob`.
11043
+ */
11044
+ function resolveSafeCleanPatterns(patterns, baseDir, rootDir) {
11045
+ const root = PATH.resolve(rootDir);
11046
+ const base = PATH.resolve(baseDir);
11047
+ const resolvedPatterns = [];
11048
+ for (const pattern of patterns) {
11049
+ if (typeof pattern !== "string" || pattern.trim().length === 0) throw new Error("Clean pattern must be a non-empty string");
11050
+ if (PATH.isAbsolute(pattern)) throw new Error(`Clean pattern must be relative to the package (absolute paths are not allowed): "${pattern}"`);
11051
+ const resolved = PATH.resolve(base, pattern);
11052
+ if (!isStrictlyInsideRoot(root, resolved)) throw new Error(`Clean pattern escapes repository root: "${pattern}" (resolved to "${resolved}", root "${root}")`);
11053
+ resolvedPatterns.push(resolved);
11054
+ }
11055
+ return resolvedPatterns;
11056
+ }
11057
+ //#endregion
11058
+ //#region src/actions/package/cleanRules.ts
11059
+ const RULE_LEVELS = /* @__PURE__ */ new Set([
11060
+ "error",
11061
+ "off",
11062
+ "warn"
11063
+ ]);
11064
+ function isRuleLevel(value) {
11065
+ return typeof value === "string" && RULE_LEVELS.has(value);
11066
+ }
11067
+ function levelFromObject(location, setting, defaultLevel) {
11068
+ if (setting.level !== void 0) {
11069
+ if (!isRuleLevel(setting.level)) throw new TypeError(`${location}.level must be "error", "warn", or "off"`);
11070
+ return setting.level;
11071
+ }
11072
+ if (setting.enabled !== void 0) {
11073
+ if (typeof setting.enabled !== "boolean") throw new TypeError(`${location}.enabled must be a boolean`);
11074
+ return setting.enabled ? defaultLevel : "off";
11075
+ }
11076
+ throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
11077
+ }
11078
+ /**
11079
+ * Local parse of rule level settings — kept here to avoid a circular import
11080
+ * through `ruleRunner` → `package/index` → `cleanRules`.
11081
+ */
11082
+ function parseCleanRuleLevel(location, setting, defaultLevel) {
11083
+ if (setting === void 0) return defaultLevel;
11084
+ if (typeof setting === "boolean") return setting ? "warn" : "off";
11085
+ if (isRuleLevel(setting)) return setting;
11086
+ if (Array.isArray(setting) && setting.length > 0 && isRuleLevel(setting[0])) return setting[0];
11087
+ if (typeof setting === "object" && setting !== null && !Array.isArray(setting)) return levelFromObject(location, setting, defaultLevel);
11088
+ throw new TypeError(`${location} must be a rule level, boolean, [level, options], or { level?, enabled? } object`);
11089
+ }
11090
+ /** Hard safety rules — always enforced; cannot be disabled via config. */
11091
+ const CLEAN_HARD_RULES = [{
11092
+ description: "Patterns must resolve strictly inside the monorepo root (never the root itself or outside it)",
11093
+ id: "clean.inside-root"
11094
+ }, {
11095
+ description: "Patterns must be non-empty and package-relative (absolute paths are rejected)",
11096
+ id: "clean.relative-pattern"
11097
+ }];
11098
+ /**
11099
+ * Configurable clean rules. Levels can be set in `commands.clean.rules`.
11100
+ */
11101
+ const CLEAN_CONFIGURABLE_RULES = [{
11102
+ defaultLevel: "error",
11103
+ description: "Only delete paths that are ignored by .gitignore (configured patterns; builtins and include bypass this)",
11104
+ id: "clean.gitignored-only"
11105
+ }, {
11106
+ defaultLevel: "off",
11107
+ description: "Also delete every path under the package that is matched by .gitignore",
11108
+ id: "clean.gitignored-all"
11109
+ }];
11110
+ const CONFIGURABLE_RULE_IDS = new Set(CLEAN_CONFIGURABLE_RULES.map((rule) => rule.id));
11111
+ const HARD_RULE_IDS = new Set(CLEAN_HARD_RULES.map((rule) => rule.id));
11112
+ /** Immutable exclude entries — always skipped by clean, cannot be overridden. */
11113
+ const CLEAN_IMMUTABLE_EXCLUDE = [
11114
+ ".git",
11115
+ "**/.git",
11116
+ "**/.git/**"
11117
+ ];
11118
+ /**
11119
+ * Default exclude entries applied in addition to config (and immutable entries).
11120
+ * Prevents `clean.gitignored-all` from wiping install trees by default.
11121
+ */
11122
+ const CLEAN_DEFAULT_EXCLUDE = [
11123
+ "node_modules",
11124
+ "**/node_modules",
11125
+ "**/node_modules/**"
11126
+ ];
11127
+ function isCleanRuleEnabled(level) {
11128
+ return level !== "off";
11129
+ }
11130
+ function defaultLevelForRule(ruleId) {
11131
+ return CLEAN_CONFIGURABLE_RULES.find((rule) => rule.id === ruleId)?.defaultLevel ?? "off";
11132
+ }
11133
+ /**
11134
+ * Resolve configurable clean rule levels from config. Throws if the config
11135
+ * references hard (non-configurable) rules or unknown rule ids.
11136
+ */
11137
+ function resolveCleanRules(config) {
11138
+ const rules = config?.rules ?? {};
11139
+ for (const ruleId of Object.keys(rules)) {
11140
+ if (HARD_RULE_IDS.has(ruleId)) throw new TypeError(`commands.clean.rules["${ruleId}"] cannot be configured — hard safety rules are always enforced`);
11141
+ if (!CONFIGURABLE_RULE_IDS.has(ruleId)) throw new TypeError(`Unknown clean rule "${ruleId}" in commands.clean.rules. Configurable rules: ${[...CONFIGURABLE_RULE_IDS].join(", ")}`);
11142
+ }
11143
+ const level = (ruleId, setting) => {
11144
+ return parseCleanRuleLevel(`commands.clean.rules["${ruleId}"]`, setting, defaultLevelForRule(ruleId));
11145
+ };
11146
+ return {
11147
+ gitignoredAll: level("clean.gitignored-all", rules["clean.gitignored-all"]),
11148
+ gitignoredOnly: level("clean.gitignored-only", rules["clean.gitignored-only"])
11149
+ };
11150
+ }
11151
+ /** Merge immutable + default + config exclude patterns (deduped, order preserved). */
11152
+ function resolveCleanExclude(config) {
11153
+ const merged = [
11154
+ ...CLEAN_IMMUTABLE_EXCLUDE,
11155
+ ...CLEAN_DEFAULT_EXCLUDE,
11156
+ ...config?.exclude ?? []
11157
+ ];
11158
+ return [...new Set(merged)];
11159
+ }
11160
+ function uniqueStrings(values) {
11161
+ if (values === void 0 || values.length === 0) return [];
11162
+ return [...new Set(values)];
11163
+ }
11164
+ function resolveCleanInclude(config) {
11165
+ return uniqueStrings(config?.include);
11166
+ }
11167
+ function resolveCleanPatterns(config) {
11168
+ return uniqueStrings(config?.patterns);
11169
+ }
11170
+ //#endregion
11171
+ //#region src/actions/package/cleanPlan.ts
11172
+ init_index_min();
11173
+ /** Built-in clean targets — always cleaned (bypass gitignored-only). */
11174
+ const BUILTIN_CLEAN_PATTERNS = ["dist", "build"];
11175
+ function toPosix(relativePath) {
11176
+ return relativePath.split(PATH.sep).join("/");
11177
+ }
11178
+ function packageRelative(packageDir, absPath) {
11179
+ return toPosix(PATH.relative(packageDir, absPath));
11180
+ }
11181
+ /**
11182
+ * Expand absolute path/glob patterns to filesystem entries. When a pattern
11183
+ * matches nothing, the pattern itself is kept so callers can still pass it to
11184
+ * delete (no-op) and so hard-safety-resolved targets remain visible.
11185
+ */
11186
+ function expandCleanTargets(absolutePatterns) {
11187
+ const found = /* @__PURE__ */ new Set();
11188
+ for (const pattern of absolutePatterns) {
11189
+ const matches = Ze$1.sync(pattern, {
11190
+ absolute: true,
11191
+ dot: true,
11192
+ nodir: false
11193
+ });
11194
+ if (matches.length === 0) {
11195
+ found.add(PATH.resolve(pattern));
11196
+ continue;
11197
+ }
11198
+ for (const match of matches) found.add(PATH.resolve(match));
11199
+ }
11200
+ return [...found];
11201
+ }
11202
+ function matchesCleanExclude(packageDir, absPath, exclude) {
11203
+ const rel = packageRelative(packageDir, absPath);
11204
+ if (rel === "" || rel.startsWith("..")) {
11205
+ const fromPkg = toPosix(PATH.relative(packageDir, absPath));
11206
+ return exclude.some((pattern) => isMatch(fromPkg, pattern, { dot: true }));
11207
+ }
11208
+ return exclude.some((pattern) => {
11209
+ if (isMatch(rel, pattern, { dot: true })) return true;
11210
+ const asDir = pattern.endsWith("/**") ? pattern : `${pattern.replace(/\/$/, "")}/**`;
11211
+ return isMatch(rel, asDir, { dot: true });
11212
+ });
11213
+ }
11214
+ function filterByExclude(packageDir, paths, exclude) {
11215
+ return paths.filter((absPath) => !matchesCleanExclude(packageDir, absPath, exclude));
11216
+ }
11217
+ function filterInsideRoot(rootDir, paths) {
11218
+ return paths.filter((absPath) => isStrictlyInsideRoot(rootDir, absPath));
11219
+ }
11220
+ function issueLevel(level) {
11221
+ return level === "warn" ? "warn" : "error";
11222
+ }
11223
+ function applyGitignoredOnly(params) {
11224
+ const { existing, gitignore, issues, packageDir, rootDir, ruleLevel, targets } = params;
11225
+ if (existing.length === 0) return;
11226
+ if (!gitignore.isGitRepo(rootDir)) {
11227
+ issues.push({
11228
+ level: issueLevel(ruleLevel),
11229
+ message: "clean.gitignored-only is enabled but the package is not inside a git work tree",
11230
+ rule: "clean.gitignored-only"
11231
+ });
11232
+ if (ruleLevel === "warn") for (const absPath of existing) targets.add(absPath);
11233
+ return;
11234
+ }
11235
+ const { ignored, notIgnored } = filterGitIgnoredPaths(rootDir, existing, gitignore);
11236
+ for (const absPath of ignored) targets.add(absPath);
11237
+ for (const absPath of notIgnored) {
11238
+ const rel = packageRelative(packageDir, absPath);
11239
+ issues.push({
11240
+ level: issueLevel(ruleLevel),
11241
+ message: `Refusing to clean non-gitignored path "${rel}" (clean.gitignored-only)`,
11242
+ rule: "clean.gitignored-only"
11243
+ });
11244
+ }
11245
+ }
11246
+ function applyGitignoredAll(params) {
11247
+ const { gitignore, issues, packageDir, rootDir, ruleLevel, targets } = params;
11248
+ if (gitignore.isGitRepo(rootDir)) {
11249
+ for (const absPath of gitignore.listIgnoredUnder(rootDir, packageDir)) targets.add(absPath);
11250
+ return;
11251
+ }
11252
+ issues.push({
11253
+ level: issueLevel(ruleLevel),
11254
+ message: "clean.gitignored-all is enabled but the package is not inside a git work tree",
11255
+ rule: "clean.gitignored-all"
11256
+ });
11257
+ }
11258
+ /**
11259
+ * Build the set of absolute paths `xy clean` will delete for one package.
11260
+ *
11261
+ * Pipeline:
11262
+ * 1. Hard safety on all configured patterns (throws on escape)
11263
+ * 2. Expand builtins + include (always-clean; bypass gitignored-only)
11264
+ * 3. Expand config patterns; enforce gitignored-only when enabled
11265
+ * 4. Optionally add all gitignored paths under the package
11266
+ * 5. Apply exclude + re-check inside-root
11267
+ */
11268
+ function buildCleanPlan(options) {
11269
+ const { config, extraPatterns = [], gitignore = gitCleanGitignoreBackend, packageDir, rootDir } = options;
11270
+ const rules = resolveCleanRules(config);
11271
+ const issues = [];
11272
+ const exclude = resolveCleanExclude(config);
11273
+ const configuredPatterns = [...resolveCleanPatterns(config), ...extraPatterns];
11274
+ const safeBuiltin = resolveSafeCleanPatterns([...BUILTIN_CLEAN_PATTERNS], packageDir, rootDir);
11275
+ const safeInclude = resolveSafeCleanPatterns(resolveCleanInclude(config), packageDir, rootDir);
11276
+ const safePatterns = resolveSafeCleanPatterns(configuredPatterns, packageDir, rootDir);
11277
+ const targets = /* @__PURE__ */ new Set([...expandCleanTargets(safeBuiltin), ...expandCleanTargets(safeInclude)]);
11278
+ const patternCandidates = expandCleanTargets(safePatterns).filter((absPath) => !targets.has(absPath));
11279
+ if (isCleanRuleEnabled(rules.gitignoredOnly) && patternCandidates.length > 0) {
11280
+ const existing = patternCandidates.filter((absPath) => fs.existsSync(absPath));
11281
+ for (const absPath of patternCandidates) if (!fs.existsSync(absPath)) targets.add(absPath);
11282
+ applyGitignoredOnly({
11283
+ existing,
11284
+ gitignore,
11285
+ issues,
11286
+ packageDir,
11287
+ rootDir,
11288
+ ruleLevel: rules.gitignoredOnly,
11289
+ targets
11290
+ });
11291
+ } else for (const absPath of patternCandidates) targets.add(absPath);
11292
+ if (isCleanRuleEnabled(rules.gitignoredAll)) applyGitignoredAll({
11293
+ gitignore,
11294
+ issues,
11295
+ packageDir,
11296
+ rootDir,
11297
+ ruleLevel: rules.gitignoredAll,
11298
+ targets
11299
+ });
11300
+ return {
11301
+ deletePaths: filterInsideRoot(rootDir, filterByExclude(packageDir, [...targets], exclude)).toSorted((a, b) => a.localeCompare(b)),
11302
+ issues,
11303
+ rules
11304
+ };
11305
+ }
11306
+ function cleanPlanExitCode(plan) {
11307
+ return plan.issues.some((issue) => issue.level === "error") ? 1 : 0;
11308
+ }
11309
+ //#endregion
10737
11310
  //#region src/actions/package/clean-outputs.ts
10738
- const packageCleanOutputs = (options = {}) => {
11311
+ async function loadCleanConfig(pkg) {
11312
+ return await loadWorkspaceCommandConfig(pkg, "clean");
11313
+ }
11314
+ function mergeExtraPatterns(config, extraPatterns) {
11315
+ if (extraPatterns === void 0 || extraPatterns.length === 0) return config;
11316
+ return {
11317
+ ...config,
11318
+ patterns: [...config.patterns ?? [], ...extraPatterns]
11319
+ };
11320
+ }
11321
+ function deletePaths(paths) {
11322
+ const ordered = [...paths].toSorted((a, b) => b.length - a.length);
11323
+ for (const target of ordered) deleteGlob(target);
11324
+ }
11325
+ const packageCleanOutputs = async (options = {}) => {
10739
11326
  const pkg = options.pkg ?? INIT_CWD();
10740
11327
  const pkgName = options.pkgName ?? packageName();
10741
- const folders = [
10742
- PATH.join(pkg, "dist"),
10743
- PATH.join(pkg, "build"),
10744
- PATH.join(pkg, "docs")
10745
- ];
10746
- (isJsonMode() ? console.error : console.log)(chalk.green(`Cleaning Outputs [${pkgName}]`));
10747
- for (const folder of folders) deleteGlob(folder);
10748
- return 0;
11328
+ const rootDir = options.rootDir ?? findWorkspaceRoot(pkg);
11329
+ const log = isJsonMode() ? console.error : console.log;
11330
+ log(chalk.green(`Cleaning Outputs [${pkgName}]`));
11331
+ const baseConfig = options.skipConfigLoad ? { patterns: options.extraPatterns } : await loadCleanConfig(pkg);
11332
+ const plan = buildCleanPlan({
11333
+ config: options.skipConfigLoad ? baseConfig : mergeExtraPatterns(baseConfig, options.extraPatterns),
11334
+ gitignore: options.gitignore,
11335
+ packageDir: pkg,
11336
+ rootDir
11337
+ });
11338
+ for (const issue of plan.issues) log((issue.level === "error" ? chalk.red : chalk.yellow)(` ${issue.level === "error" ? "✗" : "⚠"} [${issue.rule}] ${issue.message}`));
11339
+ deletePaths(plan.deletePaths);
11340
+ if (plan.deletePaths.length > 0 && !isJsonMode()) for (const deleted of plan.deletePaths) {
11341
+ const relative = PATH.relative(pkg, deleted);
11342
+ log(chalk.gray(` removed ${relative.length > 0 ? relative : deleted}`));
11343
+ }
11344
+ return cleanPlanExitCode(plan);
10749
11345
  };
10750
11346
  //#endregion
10751
11347
  //#region src/actions/package/clean-typescript.ts
11348
+ /** Cleans TypeScript build info and local lint caches for a package. */
10752
11349
  const packageCleanTypescript = (options = {}) => {
10753
11350
  const pkg = options.pkg ?? INIT_CWD();
10754
11351
  const pkgName = options.pkgName ?? packageName();
@@ -10763,8 +11360,8 @@ const packageCleanTypescript = (options = {}) => {
10763
11360
  };
10764
11361
  //#endregion
10765
11362
  //#region src/actions/package/clean.ts
10766
- const packageClean = (options = {}) => {
10767
- return [packageCleanOutputs(options), packageCleanTypescript(options)].reduce((prev, value) => prev + value, 0);
11363
+ const packageClean = async (options = {}) => {
11364
+ return await packageCleanOutputs(options) + packageCleanTypescript(options);
10768
11365
  };
10769
11366
  //#endregion
10770
11367
  //#region src/actions/package/compile/inputs.ts
@@ -12467,7 +13064,7 @@ function expandNestedSource(file, packageDir, config, seen) {
12467
13064
  function expandHashTarget(target, packageDir, config, seen) {
12468
13065
  const { modName, sub } = hashModuleParts(target);
12469
13066
  const mod = config.modules.find((candidate) => candidate.name === modName);
12470
- if (mod !== void 0 && moduleHasReexport(mod) && sub === void 0) return expandToPackageReexportTargets(moduleReexportTargets(mod), packageDir, config, seen);
13067
+ if (mod !== void 0 && sub === void 0 && moduleHasReexport(mod)) return expandToPackageReexportTargets(moduleReexportTargets(mod), packageDir, config, seen);
12471
13068
  const file = resolveHashToModuleFile(packageDir, target, config);
12472
13069
  if (file === null) return null;
12473
13070
  return expandNestedSource(file, packageDir, config, seen);
@@ -12571,7 +13168,7 @@ function rewriteIndexReexportMjs(distDir, platforms, indexTargets) {
12571
13168
  }
12572
13169
  for (const file of walkMjs$1(distDir)) {
12573
13170
  const base = PATH.basename(file);
12574
- if (!base.startsWith("index") || !base.endsWith(".mjs") || base === "index.mjs") continue;
13171
+ if (base === "index.mjs" || !base.startsWith("index") || !base.endsWith(".mjs")) continue;
12575
13172
  writePureReexportMjs(file, indexTargets);
12576
13173
  rewritten++;
12577
13174
  }
@@ -13577,7 +14174,7 @@ function resolveCrossTarget(vendorRoot, nameToDir, closure, pkg, sub, importerPl
13577
14174
  const packageDir = nameToDir[pkg];
13578
14175
  if (packageDir === void 0) return null;
13579
14176
  let variants = resolveExportVariants(packageDir, sub === "" ? "." : `./${sub}`);
13580
- if (variants.length === 0 && sub === "") variants = resolveExportVariants(packageDir, ".");
14177
+ if (sub === "" && variants.length === 0) variants = resolveExportVariants(packageDir, ".");
13581
14178
  if (variants.length === 0) return null;
13582
14179
  const pick = pickCrossTargetVariant(variants, importerPlatform);
13583
14180
  const rel = wantDts ? pick.dts : pick.mjs;
@@ -13738,7 +14335,7 @@ const packageCompile = async (inConfig = {}, mode = {}) => {
13738
14335
  //#endregion
13739
14336
  //#region src/actions/package/recompile.ts
13740
14337
  const packageRecompile = async (config = {}) => {
13741
- return packageClean() || await packageCompile(config);
14338
+ return await packageClean() || await packageCompile(config);
13742
14339
  };
13743
14340
  //#endregion
13744
14341
  //#region src/bin/package/recompile.ts