@staff0rd/assist 0.1143.0 → 0.1143.2

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 (607) hide show
  1. package/dist/acceptanceCriteria-CJ4GRITK.js +44 -0
  2. package/dist/activity-2SEJVUW5.js +73 -0
  3. package/dist/add-HXSZYGPR.js +51 -0
  4. package/dist/add-QQQ472AZ.js +250 -0
  5. package/dist/add-XWJN42HG.js +140 -0
  6. package/dist/addActivity-EZZ6TFDF.js +120 -0
  7. package/dist/addPhase-LOT43TS7.js +152 -0
  8. package/dist/addRule-J432LIS3.js +102 -0
  9. package/dist/addUserRule-XO2BNQFH.js +136 -0
  10. package/dist/adviceFragments-5XVE6JXX.js +41 -0
  11. package/dist/advise-E6QAZIMK.js +96 -0
  12. package/dist/analyze-2ECBFV3E.js +63 -0
  13. package/dist/ask-ESCDDQH5.js +47 -0
  14. package/dist/askCheck-EYZOXM6D.js +303 -0
  15. package/dist/askDesign-ZMHB4WKG.js +137 -0
  16. package/dist/askQuestion-EQV37YPA.js +149 -0
  17. package/dist/associateGithub-VYQUEKWJ.js +95 -0
  18. package/dist/associateJira-EUNZOJJC.js +83 -0
  19. package/dist/backup-3SNDW5JN.js +64 -0
  20. package/dist/blockCodeComments-PZHXN2WG.js +311 -0
  21. package/dist/branch-4YGQB3MS.js +98 -0
  22. package/dist/browserConsole-6ZRED7DG.js +50 -0
  23. package/dist/browserInspect-2IOKKWOF.js +42 -0
  24. package/dist/browserRun-JJVVNL6H.js +52 -0
  25. package/dist/browserSnapshot-Q3DUNUYP.js +32 -0
  26. package/dist/browserStatus-MEQAEC3K.js +38 -0
  27. package/dist/built-version +1 -1
  28. package/dist/chart-4G75ADCW.js +80 -0
  29. package/dist/check-QRHG4J7G.js +219 -0
  30. package/dist/checkBuildLocks-UBGUSNX5.js +9 -0
  31. package/dist/chunk-2DBSXFUE.js +40 -0
  32. package/dist/chunk-2DCOBBPI.js +50 -0
  33. package/dist/chunk-2EW62DM5.js +17 -0
  34. package/dist/chunk-2HT3GIJD.js +130 -0
  35. package/dist/chunk-2JYMVJGZ.js +21 -0
  36. package/dist/chunk-2KG6ZPX4.js +52 -0
  37. package/dist/chunk-2O7TIRCQ.js +39 -0
  38. package/dist/chunk-3E7RVOMC.js +27 -0
  39. package/dist/chunk-3FSX26XC.js +25 -0
  40. package/dist/chunk-3JXMQFUS.js +14 -0
  41. package/dist/chunk-3KLTYFPV.js +57 -0
  42. package/dist/chunk-3NK55YVZ.js +48 -0
  43. package/dist/chunk-3OMKOT6D.js +14 -0
  44. package/dist/chunk-3PM5JCHE.js +72 -0
  45. package/dist/chunk-3QKE2ONF.js +39 -0
  46. package/dist/chunk-3XQHTIHW.js +20 -0
  47. package/dist/chunk-4BVUY25U.js +21 -0
  48. package/dist/chunk-4GMAYXOS.js +18 -0
  49. package/dist/chunk-4HKB2TAG.js +11 -0
  50. package/dist/chunk-4JIXM5NT.js +21 -0
  51. package/dist/chunk-4L7TQE67.js +22 -0
  52. package/dist/chunk-4LFRCSJF.js +46 -0
  53. package/dist/chunk-4TIDERIW.js +12 -0
  54. package/dist/chunk-4VDWPVY6.js +258 -0
  55. package/dist/chunk-4XHBAEMS.js +37 -0
  56. package/dist/chunk-4Y4ADPEK.js +10 -0
  57. package/dist/chunk-4YAIQN3S.js +77 -0
  58. package/dist/chunk-4YHDWC5E.js +33 -0
  59. package/dist/chunk-547VKFOA.js +15 -0
  60. package/dist/chunk-54QTHCXV.js +12 -0
  61. package/dist/chunk-556BOFTS.js +44 -0
  62. package/dist/chunk-5G5VG5P7.js +14 -0
  63. package/dist/chunk-5JOVEUBS.js +17 -0
  64. package/dist/chunk-5KSIOK73.js +25 -0
  65. package/dist/chunk-5MFQ7T3G.js +40 -0
  66. package/dist/chunk-5PKWV3WT.js +8 -0
  67. package/dist/chunk-5VW2GS73.js +42 -0
  68. package/dist/chunk-5WQDLREX.js +40 -0
  69. package/dist/chunk-66EUBGD6.js +193 -0
  70. package/dist/chunk-6DGPQ67E.js +26 -0
  71. package/dist/chunk-6EYCU3MQ.js +41 -0
  72. package/dist/chunk-6G2ADBNV.js +19 -0
  73. package/dist/chunk-6H4DP3ZG.js +14 -0
  74. package/dist/chunk-6LI6DYBH.js +170 -0
  75. package/dist/chunk-6MNOEMDU.js +45 -0
  76. package/dist/chunk-6NDXAN45.js +90 -0
  77. package/dist/chunk-6NXP34PE.js +20 -0
  78. package/dist/chunk-6PF5BEEE.js +37 -0
  79. package/dist/chunk-6SOPR77J.js +12 -0
  80. package/dist/chunk-6T53CG7D.js +56 -0
  81. package/dist/chunk-7CEIET2O.js +31 -0
  82. package/dist/chunk-7DSWCPDZ.js +225 -0
  83. package/dist/chunk-7HMZTDGB.js +152 -0
  84. package/dist/chunk-7HNRCA3N.js +12 -0
  85. package/dist/chunk-7NPZZRMK.js +77 -0
  86. package/dist/chunk-7O466DJY.js +36 -0
  87. package/dist/chunk-7TT6C4IC.js +100 -0
  88. package/dist/chunk-7ZN4KX7V.js +26 -0
  89. package/dist/chunk-A5ELMTXR.js +143 -0
  90. package/dist/chunk-ABLDOQ4B.js +42 -0
  91. package/dist/chunk-ADIYP3KC.js +11 -0
  92. package/dist/chunk-ADLCDG2V.js +61 -0
  93. package/dist/chunk-AKF654AT.js +32 -0
  94. package/dist/chunk-ALAS5LZJ.js +22 -0
  95. package/dist/chunk-ANCYNQJA.js +16 -0
  96. package/dist/chunk-APS7GTRT.js +23 -0
  97. package/dist/chunk-APZ6ZTDA.js +8 -0
  98. package/dist/chunk-AVLELL42.js +34 -0
  99. package/dist/chunk-B3JSQA5D.js +25 -0
  100. package/dist/chunk-B5ZOANOD.js +51 -0
  101. package/dist/chunk-B6RAZW2L.js +14 -0
  102. package/dist/chunk-B7B26YPF.js +6 -0
  103. package/dist/chunk-BAHQJHYD.js +16 -0
  104. package/dist/chunk-BBXEZVRL.js +38 -0
  105. package/dist/chunk-BFQSGIN6.js +37 -0
  106. package/dist/chunk-BJDGVLYX.js +20 -0
  107. package/dist/chunk-BO5JCCC5.js +17 -0
  108. package/dist/chunk-BPZBZQEY.js +7450 -0
  109. package/dist/chunk-BV2V6RTH.js +89 -0
  110. package/dist/chunk-BVHK2VVT.js +31 -0
  111. package/dist/chunk-C3MGHR3N.js +25 -0
  112. package/dist/chunk-CDD4ZTG7.js +31 -0
  113. package/dist/chunk-CDU6M5IX.js +50 -0
  114. package/dist/chunk-CGYVYHMM.js +49 -0
  115. package/dist/chunk-CQQFVAGK.js +46 -0
  116. package/dist/chunk-CXJJGUTK.js +44 -0
  117. package/dist/chunk-D7UZLH36.js +8 -0
  118. package/dist/chunk-DBQTGW7F.js +48 -0
  119. package/dist/chunk-DIAC4XYA.js +29 -0
  120. package/dist/chunk-DISNKALJ.js +74 -0
  121. package/dist/chunk-DLNPUAH7.js +3932 -0
  122. package/dist/chunk-DS2YJZZY.js +34 -0
  123. package/dist/chunk-DZGYHAE7.js +31 -0
  124. package/dist/chunk-E36L7ASL.js +19 -0
  125. package/dist/chunk-E7AZAWIV.js +478 -0
  126. package/dist/chunk-EHRQ6OST.js +53 -0
  127. package/dist/chunk-EI42YEVC.js +208 -0
  128. package/dist/chunk-ENBVLWTC.js +25 -0
  129. package/dist/chunk-ENTJ2N5Y.js +34 -0
  130. package/dist/chunk-ERAGZGT5.js +166 -0
  131. package/dist/chunk-ERG23IG5.js +12 -0
  132. package/dist/chunk-EW2ZM2PC.js +6 -0
  133. package/dist/chunk-EYM57SNL.js +60 -0
  134. package/dist/chunk-F2LP5MBV.js +26 -0
  135. package/dist/chunk-FOPR6LRY.js +121 -0
  136. package/dist/chunk-FPWL4VRC.js +12 -0
  137. package/dist/chunk-FVZP4ULO.js +14 -0
  138. package/dist/chunk-FXGN4KLP.js +210 -0
  139. package/dist/chunk-FYYZG4GY.js +47 -0
  140. package/dist/chunk-G3ROBZ4I.js +31 -0
  141. package/dist/chunk-G44QYJ57.js +106 -0
  142. package/dist/chunk-GF4MNBOX.js +95 -0
  143. package/dist/chunk-GL5GKF5A.js +68 -0
  144. package/dist/chunk-GOGGPW2L.js +143 -0
  145. package/dist/chunk-GQF23TWI.js +14 -0
  146. package/dist/chunk-GRXFWFGP.js +49 -0
  147. package/dist/chunk-GVI4JSG7.js +13 -0
  148. package/dist/chunk-GVVK5XFZ.js +42 -0
  149. package/dist/chunk-GYAXLTV6.js +37 -0
  150. package/dist/chunk-H3WYQ2NE.js +15 -0
  151. package/dist/chunk-H6LFISSF.js +40 -0
  152. package/dist/chunk-HCANRBFK.js +19 -0
  153. package/dist/chunk-HHKS3UZB.js +16 -0
  154. package/dist/chunk-HKGCLAZ7.js +8 -0
  155. package/dist/chunk-HN7MFXZ7.js +46 -0
  156. package/dist/chunk-HSWDSL22.js +50 -0
  157. package/dist/chunk-HWUAJTHE.js +92 -0
  158. package/dist/chunk-HXBNHLL3.js +33 -0
  159. package/dist/chunk-I2ZQXBOS.js +108 -0
  160. package/dist/chunk-I3TEQBTO.js +88 -0
  161. package/dist/chunk-I5MLH7WJ.js +27 -0
  162. package/dist/chunk-IB543JQJ.js +70 -0
  163. package/dist/chunk-IBAO4LIZ.js +23 -0
  164. package/dist/chunk-IBPSXDUB.js +8 -0
  165. package/dist/chunk-IEK6CQQH.js +23 -0
  166. package/dist/chunk-IIFOAUOM.js +34 -0
  167. package/dist/chunk-IMKMNPRL.js +114 -0
  168. package/dist/chunk-INBM4BQQ.js +27 -0
  169. package/dist/chunk-IOKBCYSG.js +29 -0
  170. package/dist/chunk-IOYGR6YV.js +23 -0
  171. package/dist/chunk-IV7Z4UVQ.js +150 -0
  172. package/dist/chunk-IVBWOIGE.js +33 -0
  173. package/dist/chunk-IYTAHYEL.js +98 -0
  174. package/dist/chunk-IZBQH3LW.js +17 -0
  175. package/dist/chunk-J3C454L5.js +741 -0
  176. package/dist/chunk-J3GISX67.js +23 -0
  177. package/dist/chunk-JHBA5IZR.js +20 -0
  178. package/dist/chunk-JHIGA7GN.js +43 -0
  179. package/dist/chunk-JIWFLALZ.js +269 -0
  180. package/dist/chunk-JM57BCD6.js +30 -0
  181. package/dist/chunk-JNCFHWBK.js +30 -0
  182. package/dist/chunk-JNEYUOQ3.js +83 -0
  183. package/dist/chunk-JPM7HCLI.js +23 -0
  184. package/dist/chunk-JPRADR2E.js +10 -0
  185. package/dist/chunk-JRK7JDU4.js +30 -0
  186. package/dist/chunk-JVG5AJA2.js +29 -0
  187. package/dist/chunk-JVTCXR7C.js +72 -0
  188. package/dist/chunk-JW6QOUMN.js +18 -0
  189. package/dist/chunk-K45LIKCT.js +37 -0
  190. package/dist/chunk-K4T24UGW.js +18 -0
  191. package/dist/chunk-K4TQJQWA.js +44 -0
  192. package/dist/chunk-K5LOYASR.js +18 -0
  193. package/dist/chunk-K6NKWRK4.js +30 -0
  194. package/dist/chunk-KD2PWI4Z.js +48 -0
  195. package/dist/chunk-KGFZYUE2.js +54 -0
  196. package/dist/chunk-KHOVDX2Y.js +21 -0
  197. package/dist/chunk-KLEL6TMJ.js +22 -0
  198. package/dist/chunk-KNXHXMFT.js +77 -0
  199. package/dist/chunk-KP5S3FE5.js +13 -0
  200. package/dist/chunk-KUCVY5R7.js +40 -0
  201. package/dist/chunk-KY77XKAU.js +26 -0
  202. package/dist/chunk-L363MNYZ.js +14 -0
  203. package/dist/chunk-L73KKI5J.js +111 -0
  204. package/dist/chunk-LBAPKP6M.js +473 -0
  205. package/dist/chunk-LBPOEGTS.js +271 -0
  206. package/dist/chunk-LDVATRUW.js +23 -0
  207. package/dist/chunk-LFRSZIAS.js +13 -0
  208. package/dist/chunk-LKDW2GWH.js +9 -0
  209. package/dist/chunk-LMHILP5H.js +36 -0
  210. package/dist/chunk-LMUTL44M.js +58 -0
  211. package/dist/chunk-LOP6Y256.js +18 -0
  212. package/dist/chunk-LSBUNT4X.js +32 -0
  213. package/dist/chunk-M3O2BTJG.js +12 -0
  214. package/dist/chunk-M5YTH55B.js +284 -0
  215. package/dist/chunk-MBPVW7BY.js +63 -0
  216. package/dist/chunk-MELBVXKL.js +36 -0
  217. package/dist/chunk-MJ44T7R4.js +28 -0
  218. package/dist/chunk-MJ4RLQ5N.js +177 -0
  219. package/dist/chunk-MJLABLH5.js +58 -0
  220. package/dist/chunk-MODUPHYS.js +20 -0
  221. package/dist/chunk-MRUIXQXS.js +29 -0
  222. package/dist/chunk-MSCF3PKY.js +26 -0
  223. package/dist/chunk-MSKC2RCS.js +17 -0
  224. package/dist/chunk-MY4TNZNI.js +36 -0
  225. package/dist/chunk-N65VOEFI.js +23 -0
  226. package/dist/chunk-N755UYFK.js +58 -0
  227. package/dist/chunk-NBADZOXB.js +24 -0
  228. package/dist/chunk-NGTSPXSJ.js +9 -0
  229. package/dist/chunk-NGYZK6AF.js +18 -0
  230. package/dist/chunk-NH33OKZQ.js +23 -0
  231. package/dist/chunk-NOHNPOQK.js +49 -0
  232. package/dist/chunk-NPQGX4IO.js +16 -0
  233. package/dist/chunk-NQQVL7BY.js +56 -0
  234. package/dist/chunk-NWNODYLQ.js +25 -0
  235. package/dist/chunk-NYEGRDOK.js +191 -0
  236. package/dist/chunk-NZYSENRR.js +50 -0
  237. package/dist/chunk-O5JIFWMQ.js +39 -0
  238. package/dist/chunk-O6HFT23O.js +39 -0
  239. package/dist/chunk-OBC245PJ.js +39 -0
  240. package/dist/chunk-ODLSWRTS.js +21 -0
  241. package/dist/chunk-OGJ6AZK4.js +9 -0
  242. package/dist/chunk-ONODYZ2H.js +146 -0
  243. package/dist/chunk-ORSRBZ2X.js +15 -0
  244. package/dist/chunk-OU6Q5ZS3.js +16 -0
  245. package/dist/chunk-OZNYQOQK.js +25 -0
  246. package/dist/chunk-P253KAVC.js +75 -0
  247. package/dist/chunk-P26XSDFU.js +91 -0
  248. package/dist/chunk-P3RGVQ5B.js +12 -0
  249. package/dist/chunk-P7FVAGFQ.js +52 -0
  250. package/dist/chunk-PCF66ALO.js +39 -0
  251. package/dist/chunk-PD2BTMEY.js +598 -0
  252. package/dist/chunk-PGQK356A.js +22 -0
  253. package/dist/chunk-PIDKNOD6.js +25 -0
  254. package/dist/chunk-PIWSOEVM.js +63 -0
  255. package/dist/chunk-PRYIRRAS.js +21 -0
  256. package/dist/chunk-PURNABFX.js +22 -0
  257. package/dist/chunk-PXQTFJ2N.js +216 -0
  258. package/dist/chunk-PYACTCZ2.js +13 -0
  259. package/dist/chunk-PZAEU7LL.js +23 -0
  260. package/dist/chunk-Q35724GR.js +51 -0
  261. package/dist/chunk-Q7RUUXND.js +40 -0
  262. package/dist/chunk-Q7YVMIA3.js +32 -0
  263. package/dist/chunk-QAJUCN3A.js +76 -0
  264. package/dist/chunk-QJRCKXTM.js +38 -0
  265. package/dist/chunk-QKHOYKUQ.js +362 -0
  266. package/dist/chunk-QPRFHNX7.js +24 -0
  267. package/dist/chunk-QR7KY3Y6.js +19 -0
  268. package/dist/chunk-QU6OQZJ2.js +56 -0
  269. package/dist/chunk-QVQ2OJXX.js +144 -0
  270. package/dist/chunk-R2HLLDFE.js +36 -0
  271. package/dist/chunk-R72E45HQ.js +506 -0
  272. package/dist/chunk-RFMBA6WA.js +18 -0
  273. package/dist/chunk-RIMA7EFJ.js +35 -0
  274. package/dist/chunk-RNFWWESE.js +9 -0
  275. package/dist/chunk-ROBNJX4W.js +68 -0
  276. package/dist/chunk-ROCHUNJI.js +36 -0
  277. package/dist/chunk-RPRL6G4R.js +218 -0
  278. package/dist/chunk-RQFIPKKQ.js +187 -0
  279. package/dist/chunk-RSLB4ODM.js +30 -0
  280. package/dist/chunk-RTYIICCX.js +24 -0
  281. package/dist/chunk-RVABNGZW.js +46 -0
  282. package/dist/chunk-RXKI4XAU.js +21 -0
  283. package/dist/chunk-S4S2DD5Z.js +16 -0
  284. package/dist/chunk-S6FVZYHH.js +16 -0
  285. package/dist/chunk-S6XYTJU2.js +37 -0
  286. package/dist/chunk-SB4BG7PH.js +159 -0
  287. package/dist/chunk-SC4HAADN.js +224 -0
  288. package/dist/chunk-SDMBTSYP.js +15 -0
  289. package/dist/chunk-SDOEWLEE.js +22 -0
  290. package/dist/chunk-SEXIHLGA.js +16 -0
  291. package/dist/chunk-SOZZKFBX.js +171 -0
  292. package/dist/chunk-SSKHLBQB.js +15 -0
  293. package/dist/chunk-SW7FSLHP.js +26 -0
  294. package/dist/chunk-T2DY3T55.js +10 -0
  295. package/dist/chunk-T4TPIDXO.js +111 -0
  296. package/dist/chunk-T7ZPGAB5.js +192 -0
  297. package/dist/chunk-TA6KQ26I.js +43 -0
  298. package/dist/chunk-TCTX3UXU.js +19 -0
  299. package/dist/chunk-TJGF3Z72.js +12 -0
  300. package/dist/chunk-TK4AJIJZ.js +47 -0
  301. package/dist/chunk-TK4URTR6.js +104 -0
  302. package/dist/chunk-TQCCEWWN.js +89 -0
  303. package/dist/chunk-TUPSNHFZ.js +49 -0
  304. package/dist/chunk-TVQY3HPZ.js +43 -0
  305. package/dist/chunk-TZ5PVDAR.js +48 -0
  306. package/dist/chunk-U732RAGX.js +240 -0
  307. package/dist/chunk-UEWARAPX.js +37 -0
  308. package/dist/chunk-UGGH3MEX.js +26 -0
  309. package/dist/chunk-UJAMN3ML.js +85 -0
  310. package/dist/chunk-UJBW7FVI.js +384 -0
  311. package/dist/chunk-UJMXT5CS.js +855 -0
  312. package/dist/chunk-UN4ABKA7.js +48 -0
  313. package/dist/chunk-UP6QV5BJ.js +14 -0
  314. package/dist/chunk-US6TNW5V.js +28 -0
  315. package/dist/chunk-USKD27FY.js +11 -0
  316. package/dist/chunk-USVQT2SR.js +94 -0
  317. package/dist/chunk-UU77KEL6.js +20 -0
  318. package/dist/chunk-UXXJTR47.js +31 -0
  319. package/dist/chunk-UYD7R4HL.js +26 -0
  320. package/dist/chunk-VABNWHSE.js +31 -0
  321. package/dist/chunk-VAGZIGNN.js +54 -0
  322. package/dist/chunk-VDE2QVT4.js +14 -0
  323. package/dist/chunk-VDXS55BC.js +62 -0
  324. package/dist/chunk-VEZ3FL5H.js +16 -0
  325. package/dist/chunk-VF2SKQIN.js +79 -0
  326. package/dist/chunk-VPMI4LV2.js +25 -0
  327. package/dist/chunk-VRIT72KI.js +73 -0
  328. package/dist/chunk-VRQ4WDF7.js +22 -0
  329. package/dist/chunk-VUR35GB7.js +733 -0
  330. package/dist/chunk-W5FPQALS.js +36 -0
  331. package/dist/chunk-W64CKPAW.js +101 -0
  332. package/dist/chunk-W6UBSIJA.js +50 -0
  333. package/dist/chunk-W7TRZLEM.js +23 -0
  334. package/dist/chunk-WDODIKZ4.js +72 -0
  335. package/dist/chunk-WG3TXZMV.js +70 -0
  336. package/dist/chunk-WG4UDKA2.js +12 -0
  337. package/dist/chunk-WGV2ELBS.js +41 -0
  338. package/dist/chunk-WOGUXGZS.js +32 -0
  339. package/dist/chunk-WUG2UGQC.js +136 -0
  340. package/dist/chunk-WX5F66TN.js +438 -0
  341. package/dist/chunk-WXQ3EA5H.js +12 -0
  342. package/dist/chunk-WYNRHOR7.js +69 -0
  343. package/dist/chunk-WYVUP7Z3.js +33 -0
  344. package/dist/chunk-X44VETJF.js +13 -0
  345. package/dist/chunk-X6ETCS7E.js +656 -0
  346. package/dist/chunk-XA3VSUG6.js +72 -0
  347. package/dist/chunk-XADYGSUA.js +25 -0
  348. package/dist/chunk-XDIVXGPQ.js +73 -0
  349. package/dist/chunk-XEJODD6D.js +6 -0
  350. package/dist/chunk-XSJGIJEE.js +8 -0
  351. package/dist/chunk-XT3AOF2P.js +16 -0
  352. package/dist/chunk-XTPBXBZA.js +11 -0
  353. package/dist/chunk-XV2STPP6.js +45 -0
  354. package/dist/chunk-XV6BO5MK.js +28 -0
  355. package/dist/chunk-XXXMWMVQ.js +208 -0
  356. package/dist/chunk-XY5OS2GH.js +147 -0
  357. package/dist/chunk-XZFSW5AY.js +217 -0
  358. package/dist/chunk-Y2KEHWBZ.js +35 -0
  359. package/dist/chunk-Y3JV5CEL.js +19 -0
  360. package/dist/chunk-Y3R4C2P7.js +231 -0
  361. package/dist/chunk-YC3CIJQN.js +22 -0
  362. package/dist/chunk-YDA62L6J.js +147 -0
  363. package/dist/chunk-YIBSK5OC.js +13 -0
  364. package/dist/chunk-YJ72SXVD.js +12 -0
  365. package/dist/chunk-YKVLG4SZ.js +12 -0
  366. package/dist/chunk-YNHPTUHS.js +75 -0
  367. package/dist/chunk-YOFY27RM.js +10 -0
  368. package/dist/chunk-YPQ6OZFB.js +103 -0
  369. package/dist/chunk-YQ3CNWB3.js +54 -0
  370. package/dist/chunk-YS3HSXSJ.js +16 -0
  371. package/dist/chunk-YSNIMCKC.js +8 -0
  372. package/dist/chunk-YTIVOMM3.js +22 -0
  373. package/dist/chunk-YVL3NXEB.js +6 -0
  374. package/dist/chunk-YXXKT6LL.js +513 -0
  375. package/dist/chunk-YZ5KJFYU.js +8 -0
  376. package/dist/chunk-Z2YQQYCQ.js +64 -0
  377. package/dist/chunk-Z64YKE5O.js +208 -0
  378. package/dist/chunk-ZABRGL2F.js +45 -0
  379. package/dist/chunk-ZAMEG3EN.js +470 -0
  380. package/dist/chunk-ZDSSSQZZ.js +12 -0
  381. package/dist/chunk-ZFX4EZMW.js +20 -0
  382. package/dist/chunk-ZKVDVSCE.js +61 -0
  383. package/dist/chunk-ZLRZR64W.js +36 -0
  384. package/dist/chunk-ZLSFTNFJ.js +12 -0
  385. package/dist/chunk-ZMH7UZNP.js +14 -0
  386. package/dist/chunk-ZO7NYS25.js +18 -0
  387. package/dist/chunk-ZSHH4XS6.js +11 -0
  388. package/dist/chunk-ZWTRFLA6.js +31 -0
  389. package/dist/chunk-ZYE25KR3.js +12 -0
  390. package/dist/chunk-ZYK7V4PG.js +22 -0
  391. package/dist/clean-W43XKMR2.js +49 -0
  392. package/dist/cliHook-HA2YOEQG.js +96 -0
  393. package/dist/cliHookCheck-W66AII3A.js +74 -0
  394. package/dist/cloneRepo-LSIV3K3X.js +80 -0
  395. package/dist/closeSession-I2J2ICU4.js +30 -0
  396. package/dist/codeCommentConfirm-LGYBP6JX.js +69 -0
  397. package/dist/codeCommentSet-2YWQJXI2.js +115 -0
  398. package/dist/codexHook-YACIK7S3.js +200 -0
  399. package/dist/codexHookTrust-YYBCCR7P.js +59 -0
  400. package/dist/commands/extension/extension/updates.json +2 -2
  401. package/dist/commands/sessions/web/bundle.js +408 -408
  402. package/dist/comment-R5MBHRIJ.js +46 -0
  403. package/dist/comment-SAOYKB2J.js +17 -0
  404. package/dist/commentIssue-PDIQVTZM.js +43 -0
  405. package/dist/comments-ABF3S3O5.js +56 -0
  406. package/dist/commit-ET4QBICB.js +511 -0
  407. package/dist/commits-QFWMYJC5.js +146 -0
  408. package/dist/configGet-42P4ONFD.js +94 -0
  409. package/dist/configImportRepos-ZIUYOKHH.js +142 -0
  410. package/dist/configImportUser-NWUPLRQE.js +177 -0
  411. package/dist/configKeys-HFGEHZBT.js +69 -0
  412. package/dist/configKeys-OGJBDYG6.js +73 -0
  413. package/dist/configList-CBYHO432.js +75 -0
  414. package/dist/configSet-3UHHWKDP.js +136 -0
  415. package/dist/configUnset-LYGRTYB3.js +121 -0
  416. package/dist/configure-ETWPCRNG.js +86 -0
  417. package/dist/coverage-G7J25BUX.js +17 -0
  418. package/dist/createIssue-AIQ3U4LC.js +357 -0
  419. package/dist/cyclomatic-7ZFTN5VN.js +18 -0
  420. package/dist/daemonStatus-YXGIS55D.js +112 -0
  421. package/dist/del-NHH7NU3Y.js +44 -0
  422. package/dist/deleteCommentCmd-SAG7WMDV.js +73 -0
  423. package/dist/denyAdd-YXXNFWMO.js +29 -0
  424. package/dist/denyList-IZVZEOSD.js +43 -0
  425. package/dist/denyRemove-4IUYBEMU.js +30 -0
  426. package/dist/deps-RSUOIZPE.js +117 -0
  427. package/dist/docsConfirm-2LAEAX3R.js +97 -0
  428. package/dist/docsUnlock-SCPIWHT5.js +93 -0
  429. package/dist/doctorNodes-JJ2EIU36.js +131 -0
  430. package/dist/done-ABRDBISM.js +92 -0
  431. package/dist/drainDaemon-LCQQ3EP4.js +96 -0
  432. package/dist/dropRetiredTables-JBLALSG5.js +31 -0
  433. package/dist/edit-CFPOK62A.js +133 -0
  434. package/dist/editHook-OWHBNL5T.js +388 -0
  435. package/dist/editIssue-C2G7D3VJ.js +281 -0
  436. package/dist/editIssueComment-5SIYQKI6.js +68 -0
  437. package/dist/exportBacklog-NGFOXXUG.js +24 -0
  438. package/dist/extension-YYRD5EM6.js +32 -0
  439. package/dist/extract-SGYOCBTT.js +688 -0
  440. package/dist/fixConflict-IPWVXZWO.js +66 -0
  441. package/dist/fixStructure-4UTN5ED6.js +436 -0
  442. package/dist/fixed-OTDA7M25.js +72 -0
  443. package/dist/forbiddenStrings-GVXIN7QW.js +88 -0
  444. package/dist/formatConfiguredCommands-WI25I2JJ.js +19 -0
  445. package/dist/getBacklogDir-AVGEKM42.js +18 -0
  446. package/dist/halstead-CMFRMXT6.js +18 -0
  447. package/dist/hardcodedColors-4NBF5Z53.js +61 -0
  448. package/dist/harnessFollowUps-PNR55PM4.js +87 -0
  449. package/dist/ignore-7E4ZV5XH.js +30 -0
  450. package/dist/importBacklog-FOGUOAIJ.js +228 -0
  451. package/dist/inSln-G4VRY7VM.js +22 -0
  452. package/dist/index.js +2832 -10
  453. package/dist/indexRules-65H3IE33.js +31 -0
  454. package/dist/init-2WH6WD64.js +9 -0
  455. package/dist/init-6Y2TC67U.js +23 -0
  456. package/dist/init-BELQ3LDU.js +25 -0
  457. package/dist/init-BNY2X74K.js +9 -0
  458. package/dist/init-PZIM2TEG.js +9 -0
  459. package/dist/inspect-OI5K5KSG.js +368 -0
  460. package/dist/jiraAuth-4Z5EVL7A.js +51 -0
  461. package/dist/launchMode-RBSRGUTI.js +85 -0
  462. package/dist/link-JDJBEJCL.js +124 -0
  463. package/dist/link-LYQZULAX.js +59 -0
  464. package/dist/linkNode-IZ7TMIBN.js +88 -0
  465. package/dist/lint-5AA42LMF.js +418 -0
  466. package/dist/list-BM6RD4CP.js +43 -0
  467. package/dist/list-GCJ6WCKC.js +34 -0
  468. package/dist/list-HCOU6YAY.js +28 -0
  469. package/dist/list-UXIZ6WY2.js +100 -0
  470. package/dist/list-ZR6AEAER.js +33 -0
  471. package/dist/list-ZVSHR4AA.js +113 -0
  472. package/dist/listComments-CTM5UMWI.js +203 -0
  473. package/dist/listModels-2US52LRW.js +74 -0
  474. package/dist/listNodes-HNKK3LEQ.js +54 -0
  475. package/dist/listRules-XBWM5DPH.js +41 -0
  476. package/dist/maintainability-P55FDYZW.js +19 -0
  477. package/dist/merge-MVMNYPO2.js +196 -0
  478. package/dist/mermaidExport-DKB3X763.js +108 -0
  479. package/dist/migrate-XZ562LTJ.js +37 -0
  480. package/dist/migrations-CSVJKLQC.js +206 -0
  481. package/dist/move-XAN7VFR4.js +63 -0
  482. package/dist/movePhase-AK3F6A6P.js +103 -0
  483. package/dist/moveRepo-P7LPCWIL.js +109 -0
  484. package/dist/netcap-FIHYF3LK.js +203 -0
  485. package/dist/netcapExtract-KAFERZ6V.js +462 -0
  486. package/dist/newCli-2HD56JUI.js +132 -0
  487. package/dist/newProject-5UN6N4MS.js +70 -0
  488. package/dist/next-FAAUSQLC.js +145 -0
  489. package/dist/next-H5RR3AHL.js +83 -0
  490. package/dist/noVenv-DONW2S6P.js +34 -0
  491. package/dist/nodeLogs-NNLS5TNI.js +64 -0
  492. package/dist/notify-NRLRUDFI.js +66 -0
  493. package/dist/permitCliReads-RSRMZMGS.js +313 -0
  494. package/dist/phaseDone-FBAQDO3S.js +99 -0
  495. package/dist/piHook-WAOTTSYE.js +89 -0
  496. package/dist/plan-GBSJWMXP.js +51 -0
  497. package/dist/postSlackMessage-SJQGYGJQ.js +21 -0
  498. package/dist/posted-ZNKIE73Q.js +76 -0
  499. package/dist/printComments-7ROHUEPO.js +169 -0
  500. package/dist/printExtensionUrl-IW2WTSNS.js +19 -0
  501. package/dist/prompts-SL6SHWOA.js +55 -0
  502. package/dist/propose-UAAUUCLA.js +307 -0
  503. package/dist/prs-2SRUKVTI.js +138 -0
  504. package/dist/prsSlackChannel-DY35HNQF.js +28 -0
  505. package/dist/prsStatus-6G3ZTK36.js +319 -0
  506. package/dist/pullIfConfigured-V2H6IFDQ.js +18 -0
  507. package/dist/raise-OBGNVBLZ.js +330 -0
  508. package/dist/raiseHelpText-6TECFMWR.js +148 -0
  509. package/dist/ravendbAuth-53OAERB3.js +147 -0
  510. package/dist/ravendbCollections-2NZYZR5P.js +35 -0
  511. package/dist/ravendbQuery-EY2XGKEK.js +89 -0
  512. package/dist/ravendbSetConnection-U7X27AIP.js +16 -0
  513. package/dist/readBodyArgument-NZG3GJMF.js +7 -0
  514. package/dist/readTime-23CA6JVM.js +168 -0
  515. package/dist/recordSlack-TZH2THZH.js +60 -0
  516. package/dist/redirect-G7WS7LDE.js +32 -0
  517. package/dist/refine-K4HJN4Y3.js +87 -0
  518. package/dist/refreshDocs-A5S2NQ5Z.js +65 -0
  519. package/dist/releasesConfigure-JA7QNAJF.js +211 -0
  520. package/dist/releasesList-EETLBTD2.js +39 -0
  521. package/dist/remove-CSUOZRGT.js +96 -0
  522. package/dist/remove-VIGXH42Y.js +43 -0
  523. package/dist/removePhase-S4WFO6PT.js +62 -0
  524. package/dist/rename-PM5VQUCY.js +96 -0
  525. package/dist/renameSession-IQ6RHQUJ.js +30 -0
  526. package/dist/renameSymbol-OOIIGF3B.js +78 -0
  527. package/dist/reply-4VV4LEYF.js +65 -0
  528. package/dist/reportCliError-6UDOLAIT.js +42 -0
  529. package/dist/repos-JP75ZTBU.js +130 -0
  530. package/dist/resolveHarness-A3F7CDF2.js +17 -0
  531. package/dist/resolveModel-GHXLN2T4.js +27 -0
  532. package/dist/restartDaemon-YSKQMKEQ.js +9 -0
  533. package/dist/restartNode-AAKYY7RP.js +59 -0
  534. package/dist/restructure-FJ3BME7E.js +760 -0
  535. package/dist/review-4XGSPYYJ.js +3870 -0
  536. package/dist/reviewPrComments-G7BLTDCB.js +80 -0
  537. package/dist/rewindPhase-D74DZJYB.js +82 -0
  538. package/dist/run-5GK74KHD.js +178 -0
  539. package/dist/run-E3IAT5WL.js +78 -0
  540. package/dist/runDaemon-7VRQFO4S.js +9284 -0
  541. package/dist/runExtract-IUEUT2IK.js +568 -0
  542. package/dist/runRefine-KCQDMHH7.js +99 -0
  543. package/dist/runScope-LCAGTKGG.js +39 -0
  544. package/dist/scan-ZYPLRIEG.js +74 -0
  545. package/dist/scheduleBackup-3UZQU67U.js +200 -0
  546. package/dist/schemaConfirm-BWQ37LUT.js +171 -0
  547. package/dist/schemaUnlock-6VDN2OVT.js +135 -0
  548. package/dist/screenshot-ARSOZ2M6.js +182 -0
  549. package/dist/search-JRE2KNWY.js +79 -0
  550. package/dist/seqAuth-6IPD5OPG.js +50 -0
  551. package/dist/seqQuery-HL6H4PMX.js +233 -0
  552. package/dist/seqSetConnection-IUCGBTON.js +30 -0
  553. package/dist/sessionOutput-NXHUXIKC.js +92 -0
  554. package/dist/setSessionStatus-HPHBUHVB.js +12 -0
  555. package/dist/setStatusCommand-WBRJ4BTB.js +61 -0
  556. package/dist/show-37KECDJB.js +327 -0
  557. package/dist/show-GL235RVD.js +186 -0
  558. package/dist/showClaudeCodeIcon-E4SAM3GN.js +12 -0
  559. package/dist/showCodexIcon-YUAKV4NI.js +11 -0
  560. package/dist/signExtension-7YGZ6OFR.js +182 -0
  561. package/dist/simulateDivergence-VB4UL4UR.js +27 -0
  562. package/dist/skip-ZZHUH3MU.js +76 -0
  563. package/dist/slack-74LWSKRK.js +221 -0
  564. package/dist/sloc-KPIIBOMR.js +18 -0
  565. package/dist/sqlAuth-IN4PYCIX.js +59 -0
  566. package/dist/sqlColumns-SNPMTHHK.js +50 -0
  567. package/dist/sqlMutate-4QC4IT4E.js +43 -0
  568. package/dist/sqlQuery-OAXPQJPY.js +53 -0
  569. package/dist/sqlSetConnection-UAX7TRB4.js +30 -0
  570. package/dist/sqlTables-ZM2PUJ7N.js +39 -0
  571. package/dist/star-2GG4JB3K.js +46 -0
  572. package/dist/start-BUUHD4ZQ.js +44 -0
  573. package/dist/startIssue-JSVKGZZR.js +135 -0
  574. package/dist/status-63OT6MGQ.js +38 -0
  575. package/dist/{chunk-W7ZLVOL6.js → statusLine-TK2QPCQO.js} +9 -4
  576. package/dist/stop-HG3UZOI6.js +52 -0
  577. package/dist/stopClaudeCodeIcon-P4AVHUOL.js +12 -0
  578. package/dist/stopCodexIcon-7O6D2SEH.js +11 -0
  579. package/dist/stopDaemon-XIYQ6SAW.js +8 -0
  580. package/dist/sync-HAAAJ4LC.js +826 -0
  581. package/dist/testflightAdd-MBJAAJGR.js +37 -0
  582. package/dist/unassignIssue-OXNUC2QQ.js +37 -0
  583. package/dist/unlink-TLLWWJIG.js +71 -0
  584. package/dist/unlinkNode-O7IZD5BN.js +41 -0
  585. package/dist/unstar-EEKVLJQI.js +46 -0
  586. package/dist/update-6NKPYHDT.js +72 -0
  587. package/dist/update-E72CS3ZO.js +160 -0
  588. package/dist/updateNode-FC4VXOHB.js +99 -0
  589. package/dist/updatePhase-USTBTRW4.js +163 -0
  590. package/dist/updatePlan-UIN3U6VU.js +315 -0
  591. package/dist/version-4E3HWTDD.js +47 -0
  592. package/dist/viewIssue-CYHIPCFO.js +36 -0
  593. package/dist/watchLoop-MV7DVGC6.js +30 -0
  594. package/dist/watchReport-A4W7UOAJ.js +23 -0
  595. package/dist/watchWait-FF65XUH2.js +538 -0
  596. package/dist/web-6YNOCOEQ.js +169 -0
  597. package/dist/web-L4OX5ZDA.js +178 -0
  598. package/dist/withPool-APJFDKR2.js +18 -0
  599. package/dist/wontdo-KOV5YLR6.js +52 -0
  600. package/dist/wontfix-UZTOERNG.js +79 -0
  601. package/dist/write-PH5YX6V5.js +132 -0
  602. package/dist/writeSignal-NGH5I4AX.js +8 -0
  603. package/package.json +1 -1
  604. package/dist/chunk-MYJJAJB7.js +0 -113
  605. package/dist/runCli-3UAJHEBP.js +0 -65692
  606. package/dist/runStatusLine-6VBMFNUZ.js +0 -17
  607. package/dist/statusLine-PWO6JAR2.js +0 -7
@@ -0,0 +1,760 @@
1
+ import {
2
+ applyRewrites,
3
+ buildImportGraph,
4
+ computeRewrites
5
+ } from "./chunk-Y3R4C2P7.js";
6
+ import {
7
+ findTsConfig
8
+ } from "./chunk-JNEYUOQ3.js";
9
+ import {
10
+ walkSourceFiles
11
+ } from "./chunk-NBADZOXB.js";
12
+ import {
13
+ tryGit
14
+ } from "./chunk-ANCYNQJA.js";
15
+ import {
16
+ loadConfig
17
+ } from "./chunk-KGFZYUE2.js";
18
+ import "./chunk-LBAPKP6M.js";
19
+ import "./chunk-GRXFWFGP.js";
20
+ import "./chunk-TVQY3HPZ.js";
21
+ import "./chunk-CGYVYHMM.js";
22
+ import "./chunk-WXQ3EA5H.js";
23
+ import "./chunk-YXXKT6LL.js";
24
+ import "./chunk-USKD27FY.js";
25
+ import "./chunk-HN7MFXZ7.js";
26
+ import "./chunk-DZGYHAE7.js";
27
+
28
+ // src/commands/refactor/restructure.ts
29
+ import fs2 from "fs";
30
+ import path20 from "path";
31
+ import chalk10 from "chalk";
32
+
33
+ // src/commands/refactor/restructure/buildPlan.ts
34
+ import path10 from "path";
35
+
36
+ // src/commands/refactor/restructure/planRestructure.ts
37
+ import path9 from "path";
38
+
39
+ // src/commands/refactor/restructure/planRestructure/anchored.ts
40
+ import path from "path";
41
+ function anchored(files, mode, reasonPrefix) {
42
+ return {
43
+ root: false,
44
+ anchors: files.map((file) => ({ file, mode })),
45
+ reason: `${reasonPrefix} ${files.map((f) => path.basename(f)).join(", ")}`
46
+ };
47
+ }
48
+
49
+ // src/commands/refactor/restructure/planRestructure/isTestFile.ts
50
+ import path2 from "path";
51
+ var TEST_SUFFIX = /\.test\.tsx?$/;
52
+ function isTestFile(file) {
53
+ return TEST_SUFFIX.test(file);
54
+ }
55
+ function testStem(file) {
56
+ return path2.basename(file).replace(TEST_SUFFIX, "");
57
+ }
58
+
59
+ // src/commands/refactor/restructure/planRestructure/moduleStem.ts
60
+ import path3 from "path";
61
+ function moduleStem(file) {
62
+ return path3.basename(file).replace(/\.tsx?$/, "");
63
+ }
64
+
65
+ // src/commands/refactor/restructure/planRestructure/collectAnchors.ts
66
+ function sorted(set) {
67
+ return [...set ?? []].sort();
68
+ }
69
+ function root(reason) {
70
+ return { root: true, anchors: [], reason };
71
+ }
72
+ function pin(anchoring) {
73
+ if (anchoring.root) return anchoring;
74
+ return { ...anchoring, pinned: true, reason: `pinned; ${anchoring.reason}` };
75
+ }
76
+ function anchorTest(file, index) {
77
+ const imported = sorted(index.imports.get(file));
78
+ if (imported.length === 0) return root("test with no subject in scope");
79
+ const stem = testStem(file);
80
+ const subjects = imported.filter(
81
+ (f) => !isTestFile(f) && moduleStem(f) === stem
82
+ );
83
+ return anchored(
84
+ subjects.length > 0 ? subjects : imported,
85
+ "sibling",
86
+ "test of"
87
+ );
88
+ }
89
+ function anchorImporters(importers, fixed) {
90
+ const all = [...importers, ...fixed];
91
+ const prefix = all.length === 1 ? "imported only by" : "shared by";
92
+ const anchoring = anchored(all, "child", prefix);
93
+ const fixedSet = new Set(fixed);
94
+ return {
95
+ ...anchoring,
96
+ anchors: anchoring.anchors.map(
97
+ (a) => fixedSet.has(a.file) ? { ...a, mode: "fixed" } : a
98
+ )
99
+ };
100
+ }
101
+ function anchorModule(file, index) {
102
+ if (index.external.has(file)) return root("imported from outside scope");
103
+ const importers = sorted(index.importers.get(file));
104
+ const fixed = sorted(index.fixedImporters.get(file));
105
+ if (importers.length + fixed.length > 0)
106
+ return anchorImporters(importers, fixed);
107
+ const tests = sorted(index.testImporters.get(file));
108
+ if (tests.length > 0) return anchored(tests, "sibling", "used only by tests");
109
+ return root("no importers in scope");
110
+ }
111
+ function anchorFile(file, index, pinned) {
112
+ if (isTestFile(file)) return anchorTest(file, index);
113
+ const anchoring = anchorModule(file, index);
114
+ return pinned.has(moduleStem(file)) ? pin(anchoring) : anchoring;
115
+ }
116
+ function collectAnchors(files, index, pinned) {
117
+ return new Map(files.map((file) => [file, anchorFile(file, index, pinned)]));
118
+ }
119
+
120
+ // src/commands/refactor/restructure/planRestructure/findCollisions.ts
121
+ import path4 from "path";
122
+ function findCollisions(targets, scopeRoot) {
123
+ const byModule = /* @__PURE__ */ new Map();
124
+ for (const [file, target] of targets) {
125
+ const key = path4.join(path4.dirname(target), moduleStem(target));
126
+ byModule.set(key, [...byModule.get(key) ?? [], file]);
127
+ }
128
+ return [...byModule].filter(([, files]) => files.length > 1).map(([key, files]) => {
129
+ const where = path4.relative(scopeRoot, path4.dirname(key)) || ".";
130
+ const sources = files.sort().map((f) => path4.relative(scopeRoot, f));
131
+ return `Basename collision in ${where}/: ${sources.join(", ")}`;
132
+ }).sort();
133
+ }
134
+
135
+ // src/commands/refactor/restructure/planRestructure/indexEdges.ts
136
+ function add(map, key, value) {
137
+ const set = map.get(key) ?? /* @__PURE__ */ new Set();
138
+ set.add(value);
139
+ map.set(key, set);
140
+ }
141
+ function indexEdges(scope, edges, fixed) {
142
+ const index = {
143
+ importers: /* @__PURE__ */ new Map(),
144
+ testImporters: /* @__PURE__ */ new Map(),
145
+ fixedImporters: /* @__PURE__ */ new Map(),
146
+ imports: /* @__PURE__ */ new Map(),
147
+ external: /* @__PURE__ */ new Set()
148
+ };
149
+ for (const { source, target } of edges) {
150
+ if (!scope.has(target) || source === target) continue;
151
+ const test = isTestFile(source);
152
+ if (fixed.has(source)) {
153
+ if (!test) add(index.fixedImporters, target, source);
154
+ continue;
155
+ }
156
+ if (!scope.has(source)) {
157
+ if (!test) index.external.add(target);
158
+ continue;
159
+ }
160
+ add(index.imports, source, target);
161
+ add(test ? index.testImporters : index.importers, target, source);
162
+ }
163
+ return index;
164
+ }
165
+
166
+ // src/commands/refactor/restructure/planRestructure/placeComponents.ts
167
+ import path8 from "path";
168
+
169
+ // src/commands/refactor/restructure/planRestructure/componentDir.ts
170
+ import path7 from "path";
171
+
172
+ // src/commands/refactor/restructure/planRestructure/liftToPinFolder.ts
173
+ import path5 from "path";
174
+ function liftToPinFolder(dir, pinFolders, scopeRoot) {
175
+ let lifted = scopeRoot;
176
+ for (const folder of pinFolders)
177
+ if ((dir === folder || dir.startsWith(folder + path5.sep)) && folder.length > lifted.length)
178
+ lifted = folder;
179
+ return lifted;
180
+ }
181
+
182
+ // src/commands/refactor/restructure/planRestructure/lowestCommonAncestor.ts
183
+ import path6 from "path";
184
+ function lowestCommonAncestor(dirs) {
185
+ const [first, ...rest] = dirs.map((d) => d.split(path6.sep));
186
+ let common = first;
187
+ for (const parts of rest) {
188
+ let i = 0;
189
+ while (i < common.length && i < parts.length && common[i] === parts[i]) i++;
190
+ common = common.slice(0, i);
191
+ }
192
+ return common.join(path6.sep) || path6.sep;
193
+ }
194
+
195
+ // src/commands/refactor/restructure/planRestructure/componentDir.ts
196
+ function anchorFolder(anchor, dirs) {
197
+ if (anchor.mode === "fixed") return path7.dirname(anchor.file);
198
+ const dir = dirs.get(anchor.file);
199
+ return anchor.mode === "child" ? path7.join(dir, moduleStem(anchor.file)) : dir;
200
+ }
201
+ function externalAnchors(component, anchorings) {
202
+ const members = new Set(component);
203
+ return component.flatMap(
204
+ (file) => anchorings.get(file).anchors.filter(
205
+ (a) => !members.has(a.file)
206
+ )
207
+ );
208
+ }
209
+ function plannedDir(component, anchorings, layout) {
210
+ if (component.some((f) => anchorings.get(f).root))
211
+ return layout.scopeRoot;
212
+ const anchors = externalAnchors(component, anchorings);
213
+ if (anchors.length === 0) return layout.scopeRoot;
214
+ return lowestCommonAncestor(anchors.map((a) => anchorFolder(a, layout.dirs)));
215
+ }
216
+ function componentDir(component, anchorings, layout) {
217
+ const planned = plannedDir(component, anchorings, layout);
218
+ const pinned = component.some((f) => anchorings.get(f).pinned);
219
+ return pinned ? liftToPinFolder(planned, layout.pinFolders, layout.scopeRoot) : planned;
220
+ }
221
+
222
+ // src/commands/refactor/restructure/planRestructure/findStronglyConnectedComponents.ts
223
+ function push(state, frames, node) {
224
+ const i = state.index.size;
225
+ state.index.set(node, i);
226
+ state.low.set(node, i);
227
+ state.stack.push(node);
228
+ state.onStack.add(node);
229
+ frames.push({ node, next: 0 });
230
+ }
231
+ function popComponent(state, node) {
232
+ const component = [];
233
+ let member;
234
+ do {
235
+ member = state.stack.pop();
236
+ state.onStack.delete(member);
237
+ component.push(member);
238
+ } while (member !== node);
239
+ state.components.push(component.sort());
240
+ }
241
+ function lowerTo(state, node, value) {
242
+ state.low.set(node, Math.min(state.low.get(node), value));
243
+ }
244
+ function finish(state, frames, node) {
245
+ frames.pop();
246
+ const parent = frames.at(-1);
247
+ if (parent) lowerTo(state, parent.node, state.low.get(node));
248
+ if (state.low.get(node) === state.index.get(node)) popComponent(state, node);
249
+ }
250
+ function step(state, frames, successors) {
251
+ const frame = frames.at(-1);
252
+ const next = successors(frame.node)[frame.next++];
253
+ if (next === void 0) finish(state, frames, frame.node);
254
+ else if (!state.index.has(next)) push(state, frames, next);
255
+ else if (state.onStack.has(next))
256
+ lowerTo(state, frame.node, state.index.get(next));
257
+ }
258
+ function findStronglyConnectedComponents(nodes, successors) {
259
+ const state = {
260
+ index: /* @__PURE__ */ new Map(),
261
+ low: /* @__PURE__ */ new Map(),
262
+ stack: [],
263
+ onStack: /* @__PURE__ */ new Set(),
264
+ components: []
265
+ };
266
+ for (const start of nodes) {
267
+ if (state.index.has(start)) continue;
268
+ const frames = [];
269
+ push(state, frames, start);
270
+ while (frames.length > 0) step(state, frames, successors);
271
+ }
272
+ return state.components;
273
+ }
274
+
275
+ // src/commands/refactor/restructure/planRestructure/placeComponents.ts
276
+ function isPinFolderOwner(anchoring) {
277
+ const onlyFixed = anchoring.anchors.length > 0 && anchoring.anchors.every((a) => a.mode === "fixed");
278
+ return anchoring.root || anchoring.pinned === true || onlyFixed;
279
+ }
280
+ function componentReason(file, component, base) {
281
+ if (component.length === 1) return base;
282
+ const others = component.filter((f) => f !== file).map((f) => path8.basename(f));
283
+ return `${base}; cycle with ${others.join(", ")}`;
284
+ }
285
+ function placeComponents(files, anchorings, scopeRoot) {
286
+ const successors = (file) => anchorings.get(file).anchors.filter((a) => a.mode !== "fixed").map((a) => a.file);
287
+ const layout = { scopeRoot, dirs: /* @__PURE__ */ new Map(), pinFolders: /* @__PURE__ */ new Set() };
288
+ const placements = /* @__PURE__ */ new Map();
289
+ for (const component of findStronglyConnectedComponents(files, successors)) {
290
+ const dir = componentDir(component, anchorings, layout);
291
+ for (const file of component) {
292
+ const anchoring = anchorings.get(file);
293
+ layout.dirs.set(file, dir);
294
+ if (isPinFolderOwner(anchoring))
295
+ layout.pinFolders.add(path8.join(dir, moduleStem(file)));
296
+ placements.set(file, {
297
+ dir,
298
+ reason: componentReason(file, component, anchoring.reason)
299
+ });
300
+ }
301
+ }
302
+ return placements;
303
+ }
304
+
305
+ // src/commands/refactor/restructure/planRestructure.ts
306
+ function planRestructure(input) {
307
+ const scopeRoot = path9.resolve(input.scopeRoot);
308
+ const files = [...new Set(input.files)].sort();
309
+ const index = indexEdges(
310
+ new Set(files),
311
+ input.edges,
312
+ new Set(input.fixedFiles)
313
+ );
314
+ const anchorings = collectAnchors(files, index, new Set(input.pinnedModules));
315
+ const placements = placeComponents(files, anchorings, scopeRoot);
316
+ const targets = /* @__PURE__ */ new Map();
317
+ const moves = [];
318
+ for (const file of files) {
319
+ const { dir, reason } = placements.get(file);
320
+ const to = path9.join(dir, path9.basename(file));
321
+ targets.set(file, to);
322
+ if (to !== file) moves.push({ from: file, to, reason });
323
+ }
324
+ return { targets, moves, errors: findCollisions(targets, scopeRoot) };
325
+ }
326
+
327
+ // src/commands/refactor/restructure/buildPlan.ts
328
+ function moduleKey(file) {
329
+ return path10.join(path10.dirname(file), moduleStem(file));
330
+ }
331
+ function findIgnoredOccupants(moves, ignored, scopeRoot) {
332
+ const occupants = new Map(ignored.map((f) => [moduleKey(f), f]));
333
+ return moves.flatMap((move) => {
334
+ const occupant = occupants.get(moduleKey(move.to));
335
+ if (!occupant) return [];
336
+ const rel = (f) => path10.relative(scopeRoot, f);
337
+ return [
338
+ `Target of ${rel(move.from)} is occupied by ignored file ${rel(occupant)}`
339
+ ];
340
+ });
341
+ }
342
+ function buildPlan(scopeRoot, files, ignored = [], pinnedModules = []) {
343
+ const graph = buildImportGraph(new Set(files), findTsConfig(files[0]), {
344
+ includeMocks: true
345
+ });
346
+ const { targets, moves, errors } = planRestructure({
347
+ scopeRoot,
348
+ files,
349
+ edges: graph.edges.filter((e) => !e.mock),
350
+ pinnedModules,
351
+ fixedFiles: ignored
352
+ });
353
+ const allProjectFiles = /* @__PURE__ */ new Set([
354
+ ...graph.importedBy.keys(),
355
+ ...graph.imports.keys()
356
+ ]);
357
+ const rewrites = computeRewrites(moves, graph.edges, allProjectFiles);
358
+ return {
359
+ scopeRoot,
360
+ targets,
361
+ moves,
362
+ rewrites,
363
+ errors: [...errors, ...findIgnoredOccupants(moves, ignored, scopeRoot)]
364
+ };
365
+ }
366
+
367
+ // src/commands/refactor/restructure/checkPlan.ts
368
+ import chalk5 from "chalk";
369
+
370
+ // src/commands/refactor/restructure/applyCommand.ts
371
+ import path11 from "path";
372
+ function applyCommand(scopeRoot) {
373
+ const root2 = path11.relative(process.cwd(), scopeRoot) || ".";
374
+ return `assist refactor restructure ${root2} --apply`;
375
+ }
376
+
377
+ // src/commands/refactor/restructure/displayDrift.ts
378
+ import path12 from "path";
379
+ import chalk from "chalk";
380
+ var shownMoves = 20;
381
+ function displayDrift(plan, listMoves) {
382
+ const rel = (file) => path12.relative(process.cwd(), file);
383
+ if (plan.moves.length > 0) {
384
+ console.log(
385
+ chalk.red(
386
+ `${plan.moves.length} file(s) drift from the plan${listMoves ? ":" : "."}`
387
+ )
388
+ );
389
+ if (listMoves) {
390
+ for (const move of plan.moves.slice(0, shownMoves))
391
+ console.log(` ${rel(move.from)} \u2192 ${rel(move.to)}`);
392
+ if (plan.moves.length > shownMoves)
393
+ console.log(chalk.dim(` \u2026and ${plan.moves.length - shownMoves} more`));
394
+ }
395
+ }
396
+ for (const error of plan.errors) console.log(chalk.red(error));
397
+ }
398
+
399
+ // src/commands/refactor/restructure/displayLayoutLimits.ts
400
+ import chalk4 from "chalk";
401
+
402
+ // src/commands/refactor/restructure/displayDeepChains.ts
403
+ import chalk2 from "chalk";
404
+ var shownChains = 10;
405
+ function formatChain(chain) {
406
+ const folders = chain.folders.map((f) => `${f.name} (${f.files})`).join(" > ");
407
+ return ` ${folders} > \u2026 [${chain.tooDeep} file(s) too deep, down to depth ${chain.deepest}]`;
408
+ }
409
+ function displayDeepChains(chains, maxDepth) {
410
+ if (chains.length === 0) return;
411
+ const tooDeep = chains.reduce((sum, c) => sum + c.tooDeep, 0);
412
+ console.log(
413
+ chalk2.red(
414
+ `
415
+ Plan exceeds restructure.maxDepth ${maxDepth}: ${tooDeep} file(s) deeper.`
416
+ )
417
+ );
418
+ console.log(
419
+ chalk2.bold(
420
+ "Deep chains, as folder (files beneath), most files too deep first:"
421
+ )
422
+ );
423
+ for (const chain of chains.slice(0, shownChains))
424
+ console.log(formatChain(chain));
425
+ if (chains.length > shownChains)
426
+ console.log(chalk2.dim(` \u2026and ${chains.length - shownChains} more`));
427
+ }
428
+
429
+ // src/commands/refactor/restructure/displayLongPaths.ts
430
+ import chalk3 from "chalk";
431
+ function displayLongPaths(longPaths, maxPathLength) {
432
+ if (longPaths.length === 0) return;
433
+ console.log(
434
+ chalk3.red(
435
+ `
436
+ Plan exceeds restructure.maxPathLength ${maxPathLength}: ${longPaths.length} repo-relative path(s) longer.`
437
+ )
438
+ );
439
+ for (const { path: path21, length } of longPaths)
440
+ console.log(` ${path21} [${length}]`);
441
+ }
442
+
443
+ // src/commands/refactor/restructure/displayLayoutLimits.ts
444
+ function pinSteps(apply) {
445
+ return [
446
+ "Pin feature modules until this check passes:",
447
+ "1. On each deep chain or long path, pick the highest module that is a feature boundary: a route, view, page, panel, dialog or card. Never a hook, utility, style file or helper.",
448
+ "2. Add it to restructure.pin in assist.yml yourself (basename without extension). One pin at a time: one feature pin often fixes several chains or paths.",
449
+ "3. Re-run this command. Repeat until the plan is within the limits.",
450
+ "4. If a chain or path has no sensible feature boundary, stop and report it.",
451
+ `Then run \`${apply}\`.`
452
+ ];
453
+ }
454
+ function exceedsLayoutLimits(limits) {
455
+ return limits.chains.length > 0 || limits.longPaths.length > 0;
456
+ }
457
+ function displayLayoutLimits(limits, apply) {
458
+ if (!exceedsLayoutLimits(limits)) return;
459
+ displayDeepChains(limits.chains, limits.maxDepth);
460
+ displayLongPaths(limits.longPaths, limits.maxPathLength);
461
+ console.log("");
462
+ for (const line of pinSteps(apply)) console.log(chalk4.yellow(line));
463
+ }
464
+
465
+ // src/commands/refactor/restructure/checkPlan.ts
466
+ function checkPlan(plan, limits) {
467
+ const apply = applyCommand(plan.scopeRoot);
468
+ const exceeds = exceedsLayoutLimits(limits);
469
+ displayDrift(plan, !exceeds);
470
+ displayLayoutLimits(limits, apply);
471
+ if (exceeds || plan.errors.length > 0) process.exit(1);
472
+ if (plan.moves.length > 0) {
473
+ console.log(
474
+ chalk5.yellow(
475
+ `
476
+ Run \`${apply}\` to move the files and rewrite their imports.`
477
+ )
478
+ );
479
+ process.exit(1);
480
+ }
481
+ console.log(chalk5.green("Layout matches the restructure plan"));
482
+ }
483
+
484
+ // src/commands/refactor/restructure/findDeepChains.ts
485
+ import path13 from "path";
486
+ function dirSegments(target, scopeRoot) {
487
+ const dir = path13.relative(scopeRoot, path13.dirname(target));
488
+ return dir === "" ? [] : dir.split(path13.sep);
489
+ }
490
+ function countSubtrees(segmentLists) {
491
+ const counts = /* @__PURE__ */ new Map();
492
+ for (const segments of segmentLists)
493
+ for (let i = 1; i <= segments.length; i++) {
494
+ const key = segments.slice(0, i).join("/");
495
+ counts.set(key, (counts.get(key) ?? 0) + 1);
496
+ }
497
+ return counts;
498
+ }
499
+ function findDeepChains(targets, scopeRoot, maxDepth) {
500
+ const segmentLists = [...targets].map((t) => dirSegments(t, scopeRoot));
501
+ const subtreeFiles = countSubtrees(segmentLists);
502
+ const chains = /* @__PURE__ */ new Map();
503
+ for (const segments of segmentLists) {
504
+ if (segments.length <= maxDepth) continue;
505
+ const head = segments.slice(0, maxDepth + 1);
506
+ const key = head.join("/");
507
+ const chain = chains.get(key) ?? {
508
+ folders: head.map((name, i) => ({
509
+ name,
510
+ files: subtreeFiles.get(head.slice(0, i + 1).join("/")) ?? 0
511
+ })),
512
+ tooDeep: 0,
513
+ deepest: 0
514
+ };
515
+ chain.tooDeep += 1;
516
+ chain.deepest = Math.max(chain.deepest, segments.length);
517
+ chains.set(key, chain);
518
+ }
519
+ return [...chains.entries()].sort(([ka, a], [kb, b]) => b.tooDeep - a.tooDeep || ka.localeCompare(kb)).map(([, chain]) => chain);
520
+ }
521
+
522
+ // src/commands/refactor/restructure/findLongPaths.ts
523
+ import path14 from "path";
524
+ function findLongPaths(targets, repoRoot, maxPathLength) {
525
+ return [...targets].map((t) => path14.relative(repoRoot, t).split(path14.sep).join("/")).filter((p) => p.length > maxPathLength).map((p) => ({ path: p, length: p.length })).sort((a, b) => b.length - a.length || a.path.localeCompare(b.path));
526
+ }
527
+
528
+ // src/commands/refactor/restructure/checkLayoutLimits.ts
529
+ function checkLayoutLimits(plan, { maxDepth, maxPathLength, repoRoot }) {
530
+ return {
531
+ maxDepth,
532
+ chains: findDeepChains(plan.targets.values(), plan.scopeRoot, maxDepth),
533
+ maxPathLength,
534
+ longPaths: findLongPaths(plan.targets.values(), repoRoot, maxPathLength)
535
+ };
536
+ }
537
+
538
+ // src/commands/refactor/restructure/partitionIgnored.ts
539
+ import path15 from "path";
540
+ import { minimatch } from "minimatch";
541
+ function partitionIgnored(files) {
542
+ const globs = loadConfig().restructure?.ignore ?? [];
543
+ const isIgnored = (file) => globs.some((glob) => minimatch(path15.relative(process.cwd(), file), glob));
544
+ return {
545
+ scoped: files.filter((f) => !isIgnored(f)),
546
+ ignored: files.filter(isIgnored)
547
+ };
548
+ }
549
+
550
+ // src/commands/refactor/restructure/runPlan.ts
551
+ import chalk9 from "chalk";
552
+
553
+ // src/commands/refactor/restructure/applyPlan.ts
554
+ import chalk7 from "chalk";
555
+
556
+ // src/commands/refactor/restructure/executePlan.ts
557
+ import fs from "fs";
558
+ import path16 from "path";
559
+ import chalk6 from "chalk";
560
+ function relPath(file) {
561
+ return path16.relative(process.cwd(), file);
562
+ }
563
+ function stagingPath(move, index) {
564
+ return `${move.from}.restructure-${process.pid}-${index}`;
565
+ }
566
+ function moveFiles(moves) {
567
+ const staged = moves.map((move, i) => {
568
+ const staging = stagingPath(move, i);
569
+ fs.renameSync(move.from, staging);
570
+ return { move, staging };
571
+ });
572
+ for (const { move, staging } of staged) {
573
+ fs.mkdirSync(path16.dirname(move.to), { recursive: true });
574
+ fs.renameSync(staging, move.to);
575
+ console.log(
576
+ chalk6.white(` Moved ${relPath(move.from)} \u2192 ${relPath(move.to)}`)
577
+ );
578
+ }
579
+ }
580
+ function removeIfEmpty(dir) {
581
+ if (!fs.existsSync(dir) || fs.readdirSync(dir).length > 0) return false;
582
+ fs.rmdirSync(dir);
583
+ console.log(chalk6.dim(` Removed empty directory ${relPath(dir)}`));
584
+ return true;
585
+ }
586
+ function removeEmptyDirectories(dirs, scopeRoot) {
587
+ const deepestFirst = [...new Set(dirs)].sort((a, b) => b.length - a.length);
588
+ for (let dir of deepestFirst) {
589
+ while (dir.startsWith(`${scopeRoot}${path16.sep}`) && removeIfEmpty(dir))
590
+ dir = path16.dirname(dir);
591
+ }
592
+ }
593
+ function executePlan(plan) {
594
+ for (const [file, content] of applyRewrites(plan.rewrites)) {
595
+ fs.writeFileSync(file, content, "utf8");
596
+ console.log(chalk6.cyan(` Rewrote imports in ${relPath(file)}`));
597
+ }
598
+ moveFiles(plan.moves);
599
+ removeEmptyDirectories(
600
+ plan.moves.map((m) => path16.dirname(m.from)),
601
+ plan.scopeRoot
602
+ );
603
+ }
604
+
605
+ // src/commands/refactor/restructure/applyPlan.ts
606
+ function applyPlan(plan) {
607
+ if (plan.errors.length > 0) {
608
+ console.log(chalk7.red("\nResolve the errors above before applying."));
609
+ process.exit(1);
610
+ }
611
+ console.log(chalk7.bold("\nApplying changes..."));
612
+ executePlan(plan);
613
+ console.log(chalk7.green("\nRestructuring complete"));
614
+ }
615
+
616
+ // src/commands/refactor/restructure/displayPlan.ts
617
+ import path19 from "path";
618
+ import chalk8 from "chalk";
619
+
620
+ // src/commands/refactor/restructure/computeDepthStats.ts
621
+ import path17 from "path";
622
+ function computeDepthStats(targets, scopeRoot) {
623
+ const distribution = /* @__PURE__ */ new Map();
624
+ let max = 0;
625
+ for (const target of targets) {
626
+ const dir = path17.relative(scopeRoot, path17.dirname(target));
627
+ const depth = dir === "" ? 0 : dir.split(path17.sep).length;
628
+ distribution.set(depth, (distribution.get(depth) ?? 0) + 1);
629
+ max = Math.max(max, depth);
630
+ }
631
+ return { max, distribution };
632
+ }
633
+
634
+ // src/commands/refactor/restructure/formatTree.ts
635
+ import path18 from "path";
636
+ function insert(root2, parts) {
637
+ let node = root2;
638
+ for (const part of parts) {
639
+ const child = node.get(part) ?? /* @__PURE__ */ new Map();
640
+ node.set(part, child);
641
+ node = child;
642
+ }
643
+ }
644
+ function render(node, indent, lines) {
645
+ const entries = [...node].sort(([a, ca], [b, cb]) => {
646
+ const dirFirst = Number(cb.size > 0) - Number(ca.size > 0);
647
+ return dirFirst || a.localeCompare(b);
648
+ });
649
+ for (const [name, child] of entries) {
650
+ lines.push(`${indent}${name}${child.size > 0 ? "/" : ""}`);
651
+ render(child, `${indent} `, lines);
652
+ }
653
+ }
654
+ function formatTree(files, scopeRoot) {
655
+ const root2 = /* @__PURE__ */ new Map();
656
+ for (const file of files)
657
+ insert(root2, path18.relative(scopeRoot, file).split(path18.sep));
658
+ const lines = [];
659
+ render(root2, "", lines);
660
+ return lines;
661
+ }
662
+
663
+ // src/commands/refactor/restructure/displayPlan.ts
664
+ function relPath2(filePath) {
665
+ return path19.relative(process.cwd(), filePath);
666
+ }
667
+ function displayMoves(plan) {
668
+ if (plan.moves.length === 0) return;
669
+ console.log(chalk8.bold("\nFile moves:"));
670
+ for (const move of plan.moves) {
671
+ console.log(
672
+ ` ${chalk8.red(relPath2(move.from))} \u2192 ${chalk8.green(relPath2(move.to))}`
673
+ );
674
+ console.log(chalk8.dim(` ${move.reason}`));
675
+ }
676
+ }
677
+ function displayTree(plan) {
678
+ console.log(
679
+ chalk8.bold(`
680
+ Resulting tree (${relPath2(plan.scopeRoot) || "."}/):`)
681
+ );
682
+ for (const line of formatTree(plan.targets.values(), plan.scopeRoot))
683
+ console.log(` ${line}`);
684
+ }
685
+ function displayDepthStats(plan) {
686
+ const { max, distribution } = computeDepthStats(
687
+ plan.targets.values(),
688
+ plan.scopeRoot
689
+ );
690
+ console.log(chalk8.bold(`
691
+ Depth (max ${max}):`));
692
+ for (const depth of [...distribution.keys()].sort((a, b) => a - b))
693
+ console.log(` ${depth}: ${distribution.get(depth)} file(s)`);
694
+ }
695
+ function displayErrors(errors) {
696
+ if (errors.length === 0) return;
697
+ console.log(chalk8.red("\nErrors:"));
698
+ for (const error of errors) console.log(chalk8.red(` ${error}`));
699
+ }
700
+ function displayPlan(plan) {
701
+ displayMoves(plan);
702
+ displayTree(plan);
703
+ displayDepthStats(plan);
704
+ displayErrors(plan.errors);
705
+ const rewrittenFiles = new Set(plan.rewrites.map((r) => r.file)).size;
706
+ console.log(
707
+ chalk8.dim(
708
+ `
709
+ Summary: ${plan.moves.length} file(s) moved, ${plan.rewrites.length} imports rewritten across ${rewrittenFiles} file(s), ${plan.errors.length} error(s)`
710
+ )
711
+ );
712
+ }
713
+
714
+ // src/commands/refactor/restructure/runPlan.ts
715
+ function runPlan(plan, limits, apply) {
716
+ displayPlan(plan);
717
+ displayLayoutLimits(limits, applyCommand(plan.scopeRoot));
718
+ if (plan.moves.length === 0 && plan.errors.length === 0) {
719
+ console.log(chalk9.green("No restructuring needed"));
720
+ return;
721
+ }
722
+ if (!apply) {
723
+ console.log(chalk9.dim("\nDry run. Use --apply to execute."));
724
+ return;
725
+ }
726
+ applyPlan(plan);
727
+ }
728
+
729
+ // src/commands/refactor/restructure.ts
730
+ async function restructure(root2, options = {}) {
731
+ const scopeRoot = path20.resolve(root2 ?? "src");
732
+ if (!fs2.existsSync(scopeRoot) || !fs2.statSync(scopeRoot).isDirectory()) {
733
+ console.log(chalk10.red(`Not a directory: ${root2 ?? "src"}`));
734
+ process.exit(1);
735
+ }
736
+ const found = [];
737
+ walkSourceFiles(scopeRoot, found);
738
+ const { scoped, ignored } = partitionIgnored(found);
739
+ if (scoped.length === 0) {
740
+ console.log(chalk10.yellow("No files found under root"));
741
+ return;
742
+ }
743
+ const {
744
+ pin: pin2 = [],
745
+ maxDepth = 10,
746
+ maxPathLength = 200
747
+ } = loadConfig().restructure ?? {};
748
+ const plan = buildPlan(scopeRoot, scoped, ignored, pin2);
749
+ const repoRoot = tryGit(`-C "${scopeRoot}" rev-parse --show-toplevel`) ?? process.cwd();
750
+ const limits = checkLayoutLimits(plan, {
751
+ maxDepth,
752
+ maxPathLength,
753
+ repoRoot
754
+ });
755
+ if (options.check) return checkPlan(plan, limits);
756
+ runPlan(plan, limits, options.apply === true);
757
+ }
758
+ export {
759
+ restructure
760
+ };