@staff0rd/assist 0.1143.1 → 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 (606) 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/sessions/web/bundle.js +1 -1
  401. package/dist/comment-R5MBHRIJ.js +46 -0
  402. package/dist/comment-SAOYKB2J.js +17 -0
  403. package/dist/commentIssue-PDIQVTZM.js +43 -0
  404. package/dist/comments-ABF3S3O5.js +56 -0
  405. package/dist/commit-ET4QBICB.js +511 -0
  406. package/dist/commits-QFWMYJC5.js +146 -0
  407. package/dist/configGet-42P4ONFD.js +94 -0
  408. package/dist/configImportRepos-ZIUYOKHH.js +142 -0
  409. package/dist/configImportUser-NWUPLRQE.js +177 -0
  410. package/dist/configKeys-HFGEHZBT.js +69 -0
  411. package/dist/configKeys-OGJBDYG6.js +73 -0
  412. package/dist/configList-CBYHO432.js +75 -0
  413. package/dist/configSet-3UHHWKDP.js +136 -0
  414. package/dist/configUnset-LYGRTYB3.js +121 -0
  415. package/dist/configure-ETWPCRNG.js +86 -0
  416. package/dist/coverage-G7J25BUX.js +17 -0
  417. package/dist/createIssue-AIQ3U4LC.js +357 -0
  418. package/dist/cyclomatic-7ZFTN5VN.js +18 -0
  419. package/dist/daemonStatus-YXGIS55D.js +112 -0
  420. package/dist/del-NHH7NU3Y.js +44 -0
  421. package/dist/deleteCommentCmd-SAG7WMDV.js +73 -0
  422. package/dist/denyAdd-YXXNFWMO.js +29 -0
  423. package/dist/denyList-IZVZEOSD.js +43 -0
  424. package/dist/denyRemove-4IUYBEMU.js +30 -0
  425. package/dist/deps-RSUOIZPE.js +117 -0
  426. package/dist/docsConfirm-2LAEAX3R.js +97 -0
  427. package/dist/docsUnlock-SCPIWHT5.js +93 -0
  428. package/dist/doctorNodes-JJ2EIU36.js +131 -0
  429. package/dist/done-ABRDBISM.js +92 -0
  430. package/dist/drainDaemon-LCQQ3EP4.js +96 -0
  431. package/dist/dropRetiredTables-JBLALSG5.js +31 -0
  432. package/dist/edit-CFPOK62A.js +133 -0
  433. package/dist/editHook-OWHBNL5T.js +388 -0
  434. package/dist/editIssue-C2G7D3VJ.js +281 -0
  435. package/dist/editIssueComment-5SIYQKI6.js +68 -0
  436. package/dist/exportBacklog-NGFOXXUG.js +24 -0
  437. package/dist/extension-YYRD5EM6.js +32 -0
  438. package/dist/extract-SGYOCBTT.js +688 -0
  439. package/dist/fixConflict-IPWVXZWO.js +66 -0
  440. package/dist/fixStructure-4UTN5ED6.js +436 -0
  441. package/dist/fixed-OTDA7M25.js +72 -0
  442. package/dist/forbiddenStrings-GVXIN7QW.js +88 -0
  443. package/dist/formatConfiguredCommands-WI25I2JJ.js +19 -0
  444. package/dist/getBacklogDir-AVGEKM42.js +18 -0
  445. package/dist/halstead-CMFRMXT6.js +18 -0
  446. package/dist/hardcodedColors-4NBF5Z53.js +61 -0
  447. package/dist/harnessFollowUps-PNR55PM4.js +87 -0
  448. package/dist/ignore-7E4ZV5XH.js +30 -0
  449. package/dist/importBacklog-FOGUOAIJ.js +228 -0
  450. package/dist/inSln-G4VRY7VM.js +22 -0
  451. package/dist/index.js +2832 -10
  452. package/dist/indexRules-65H3IE33.js +31 -0
  453. package/dist/init-2WH6WD64.js +9 -0
  454. package/dist/init-6Y2TC67U.js +23 -0
  455. package/dist/init-BELQ3LDU.js +25 -0
  456. package/dist/init-BNY2X74K.js +9 -0
  457. package/dist/init-PZIM2TEG.js +9 -0
  458. package/dist/inspect-OI5K5KSG.js +368 -0
  459. package/dist/jiraAuth-4Z5EVL7A.js +51 -0
  460. package/dist/launchMode-RBSRGUTI.js +85 -0
  461. package/dist/link-JDJBEJCL.js +124 -0
  462. package/dist/link-LYQZULAX.js +59 -0
  463. package/dist/linkNode-IZ7TMIBN.js +88 -0
  464. package/dist/lint-5AA42LMF.js +418 -0
  465. package/dist/list-BM6RD4CP.js +43 -0
  466. package/dist/list-GCJ6WCKC.js +34 -0
  467. package/dist/list-HCOU6YAY.js +28 -0
  468. package/dist/list-UXIZ6WY2.js +100 -0
  469. package/dist/list-ZR6AEAER.js +33 -0
  470. package/dist/list-ZVSHR4AA.js +113 -0
  471. package/dist/listComments-CTM5UMWI.js +203 -0
  472. package/dist/listModels-2US52LRW.js +74 -0
  473. package/dist/listNodes-HNKK3LEQ.js +54 -0
  474. package/dist/listRules-XBWM5DPH.js +41 -0
  475. package/dist/maintainability-P55FDYZW.js +19 -0
  476. package/dist/merge-MVMNYPO2.js +196 -0
  477. package/dist/mermaidExport-DKB3X763.js +108 -0
  478. package/dist/migrate-XZ562LTJ.js +37 -0
  479. package/dist/migrations-CSVJKLQC.js +206 -0
  480. package/dist/move-XAN7VFR4.js +63 -0
  481. package/dist/movePhase-AK3F6A6P.js +103 -0
  482. package/dist/moveRepo-P7LPCWIL.js +109 -0
  483. package/dist/netcap-FIHYF3LK.js +203 -0
  484. package/dist/netcapExtract-KAFERZ6V.js +462 -0
  485. package/dist/newCli-2HD56JUI.js +132 -0
  486. package/dist/newProject-5UN6N4MS.js +70 -0
  487. package/dist/next-FAAUSQLC.js +145 -0
  488. package/dist/next-H5RR3AHL.js +83 -0
  489. package/dist/noVenv-DONW2S6P.js +34 -0
  490. package/dist/nodeLogs-NNLS5TNI.js +64 -0
  491. package/dist/notify-NRLRUDFI.js +66 -0
  492. package/dist/permitCliReads-RSRMZMGS.js +313 -0
  493. package/dist/phaseDone-FBAQDO3S.js +99 -0
  494. package/dist/piHook-WAOTTSYE.js +89 -0
  495. package/dist/plan-GBSJWMXP.js +51 -0
  496. package/dist/postSlackMessage-SJQGYGJQ.js +21 -0
  497. package/dist/posted-ZNKIE73Q.js +76 -0
  498. package/dist/printComments-7ROHUEPO.js +169 -0
  499. package/dist/printExtensionUrl-IW2WTSNS.js +19 -0
  500. package/dist/prompts-SL6SHWOA.js +55 -0
  501. package/dist/propose-UAAUUCLA.js +307 -0
  502. package/dist/prs-2SRUKVTI.js +138 -0
  503. package/dist/prsSlackChannel-DY35HNQF.js +28 -0
  504. package/dist/prsStatus-6G3ZTK36.js +319 -0
  505. package/dist/pullIfConfigured-V2H6IFDQ.js +18 -0
  506. package/dist/raise-OBGNVBLZ.js +330 -0
  507. package/dist/raiseHelpText-6TECFMWR.js +148 -0
  508. package/dist/ravendbAuth-53OAERB3.js +147 -0
  509. package/dist/ravendbCollections-2NZYZR5P.js +35 -0
  510. package/dist/ravendbQuery-EY2XGKEK.js +89 -0
  511. package/dist/ravendbSetConnection-U7X27AIP.js +16 -0
  512. package/dist/readBodyArgument-NZG3GJMF.js +7 -0
  513. package/dist/readTime-23CA6JVM.js +168 -0
  514. package/dist/recordSlack-TZH2THZH.js +60 -0
  515. package/dist/redirect-G7WS7LDE.js +32 -0
  516. package/dist/refine-K4HJN4Y3.js +87 -0
  517. package/dist/refreshDocs-A5S2NQ5Z.js +65 -0
  518. package/dist/releasesConfigure-JA7QNAJF.js +211 -0
  519. package/dist/releasesList-EETLBTD2.js +39 -0
  520. package/dist/remove-CSUOZRGT.js +96 -0
  521. package/dist/remove-VIGXH42Y.js +43 -0
  522. package/dist/removePhase-S4WFO6PT.js +62 -0
  523. package/dist/rename-PM5VQUCY.js +96 -0
  524. package/dist/renameSession-IQ6RHQUJ.js +30 -0
  525. package/dist/renameSymbol-OOIIGF3B.js +78 -0
  526. package/dist/reply-4VV4LEYF.js +65 -0
  527. package/dist/reportCliError-6UDOLAIT.js +42 -0
  528. package/dist/repos-JP75ZTBU.js +130 -0
  529. package/dist/resolveHarness-A3F7CDF2.js +17 -0
  530. package/dist/resolveModel-GHXLN2T4.js +27 -0
  531. package/dist/restartDaemon-YSKQMKEQ.js +9 -0
  532. package/dist/restartNode-AAKYY7RP.js +59 -0
  533. package/dist/restructure-FJ3BME7E.js +760 -0
  534. package/dist/review-4XGSPYYJ.js +3870 -0
  535. package/dist/reviewPrComments-G7BLTDCB.js +80 -0
  536. package/dist/rewindPhase-D74DZJYB.js +82 -0
  537. package/dist/run-5GK74KHD.js +178 -0
  538. package/dist/run-E3IAT5WL.js +78 -0
  539. package/dist/runDaemon-7VRQFO4S.js +9284 -0
  540. package/dist/runExtract-IUEUT2IK.js +568 -0
  541. package/dist/runRefine-KCQDMHH7.js +99 -0
  542. package/dist/runScope-LCAGTKGG.js +39 -0
  543. package/dist/scan-ZYPLRIEG.js +74 -0
  544. package/dist/scheduleBackup-3UZQU67U.js +200 -0
  545. package/dist/schemaConfirm-BWQ37LUT.js +171 -0
  546. package/dist/schemaUnlock-6VDN2OVT.js +135 -0
  547. package/dist/screenshot-ARSOZ2M6.js +182 -0
  548. package/dist/search-JRE2KNWY.js +79 -0
  549. package/dist/seqAuth-6IPD5OPG.js +50 -0
  550. package/dist/seqQuery-HL6H4PMX.js +233 -0
  551. package/dist/seqSetConnection-IUCGBTON.js +30 -0
  552. package/dist/sessionOutput-NXHUXIKC.js +92 -0
  553. package/dist/setSessionStatus-HPHBUHVB.js +12 -0
  554. package/dist/setStatusCommand-WBRJ4BTB.js +61 -0
  555. package/dist/show-37KECDJB.js +327 -0
  556. package/dist/show-GL235RVD.js +186 -0
  557. package/dist/showClaudeCodeIcon-E4SAM3GN.js +12 -0
  558. package/dist/showCodexIcon-YUAKV4NI.js +11 -0
  559. package/dist/signExtension-7YGZ6OFR.js +182 -0
  560. package/dist/simulateDivergence-VB4UL4UR.js +27 -0
  561. package/dist/skip-ZZHUH3MU.js +76 -0
  562. package/dist/slack-74LWSKRK.js +221 -0
  563. package/dist/sloc-KPIIBOMR.js +18 -0
  564. package/dist/sqlAuth-IN4PYCIX.js +59 -0
  565. package/dist/sqlColumns-SNPMTHHK.js +50 -0
  566. package/dist/sqlMutate-4QC4IT4E.js +43 -0
  567. package/dist/sqlQuery-OAXPQJPY.js +53 -0
  568. package/dist/sqlSetConnection-UAX7TRB4.js +30 -0
  569. package/dist/sqlTables-ZM2PUJ7N.js +39 -0
  570. package/dist/star-2GG4JB3K.js +46 -0
  571. package/dist/start-BUUHD4ZQ.js +44 -0
  572. package/dist/startIssue-JSVKGZZR.js +135 -0
  573. package/dist/status-63OT6MGQ.js +38 -0
  574. package/dist/{chunk-W7ZLVOL6.js → statusLine-TK2QPCQO.js} +9 -4
  575. package/dist/stop-HG3UZOI6.js +52 -0
  576. package/dist/stopClaudeCodeIcon-P4AVHUOL.js +12 -0
  577. package/dist/stopCodexIcon-7O6D2SEH.js +11 -0
  578. package/dist/stopDaemon-XIYQ6SAW.js +8 -0
  579. package/dist/sync-HAAAJ4LC.js +826 -0
  580. package/dist/testflightAdd-MBJAAJGR.js +37 -0
  581. package/dist/unassignIssue-OXNUC2QQ.js +37 -0
  582. package/dist/unlink-TLLWWJIG.js +71 -0
  583. package/dist/unlinkNode-O7IZD5BN.js +41 -0
  584. package/dist/unstar-EEKVLJQI.js +46 -0
  585. package/dist/update-6NKPYHDT.js +72 -0
  586. package/dist/update-E72CS3ZO.js +160 -0
  587. package/dist/updateNode-FC4VXOHB.js +99 -0
  588. package/dist/updatePhase-USTBTRW4.js +163 -0
  589. package/dist/updatePlan-UIN3U6VU.js +315 -0
  590. package/dist/version-4E3HWTDD.js +47 -0
  591. package/dist/viewIssue-CYHIPCFO.js +36 -0
  592. package/dist/watchLoop-MV7DVGC6.js +30 -0
  593. package/dist/watchReport-A4W7UOAJ.js +23 -0
  594. package/dist/watchWait-FF65XUH2.js +538 -0
  595. package/dist/web-6YNOCOEQ.js +169 -0
  596. package/dist/web-L4OX5ZDA.js +178 -0
  597. package/dist/withPool-APJFDKR2.js +18 -0
  598. package/dist/wontdo-KOV5YLR6.js +52 -0
  599. package/dist/wontfix-UZTOERNG.js +79 -0
  600. package/dist/write-PH5YX6V5.js +132 -0
  601. package/dist/writeSignal-NGH5I4AX.js +8 -0
  602. package/package.json +1 -1
  603. package/dist/chunk-MYJJAJB7.js +0 -113
  604. package/dist/runCli-OSXLT6CQ.js +0 -65704
  605. package/dist/runStatusLine-6VBMFNUZ.js +0 -17
  606. package/dist/statusLine-PWO6JAR2.js +0 -7
@@ -0,0 +1,855 @@
1
+ import {
2
+ findCliRead,
3
+ findCliWrite
4
+ } from "./chunk-VDXS55BC.js";
5
+ import {
6
+ harnessAdapter
7
+ } from "./chunk-DLNPUAH7.js";
8
+ import {
9
+ activeHarness
10
+ } from "./chunk-BFQSGIN6.js";
11
+ import {
12
+ loadConfig
13
+ } from "./chunk-KGFZYUE2.js";
14
+
15
+ // src/shared/splitCompound.ts
16
+ import { parse } from "shell-quote";
17
+
18
+ // src/shared/consumeRedirect.ts
19
+ import { tmpdir } from "os";
20
+
21
+ // src/shared/isRedirectTargetAllowed.ts
22
+ function isRedirectTargetAllowed(target, tmp) {
23
+ if (/^[A-Za-z]:[\\/]/.test(tmp)) return isUnderWindowsTmp(target, tmp);
24
+ return isUnderPosixTmp(target, tmp);
25
+ }
26
+ function isUnderWindowsTmp(target, tmp) {
27
+ if (!/^[A-Za-z]:[\\/]/.test(target)) return false;
28
+ const nTmp = normalizeWindowsPath(tmp);
29
+ const nTarget = normalizeWindowsPath(target);
30
+ return nTarget === nTmp || nTarget.startsWith(`${nTmp}\\`);
31
+ }
32
+ function normalizeWindowsPath(p) {
33
+ return p.replace(/\//g, "\\").toLowerCase().replace(/\\+$/, "");
34
+ }
35
+ function isUnderPosixTmp(target, tmp) {
36
+ if (!target.startsWith("/")) return false;
37
+ const nTmp = tmp.replace(/\/+$/, "");
38
+ return target === nTmp || target.startsWith(`${nTmp}/`);
39
+ }
40
+
41
+ // src/shared/consumeRedirect.ts
42
+ function consumeRedirect(tokens, opIndex, current) {
43
+ const target = tokens[opIndex + 1];
44
+ if (typeof target !== "string") {
45
+ return { ok: false, error: "unable to parse" };
46
+ }
47
+ if (!isRedirectTargetAllowed(target, tmpdir())) {
48
+ return {
49
+ ok: false,
50
+ error: `redirect target '${target}' is outside the OS temp directory`
51
+ };
52
+ }
53
+ popFdPrefix(current);
54
+ return { ok: true, nextIndex: opIndex + 1 };
55
+ }
56
+ function popFdPrefix(current) {
57
+ if (current.length > 0 && /^\d$/.test(current[current.length - 1])) {
58
+ current.pop();
59
+ }
60
+ }
61
+
62
+ // src/shared/consumeHeredoc.ts
63
+ function consumeHeredoc(tokens, opIndex, current) {
64
+ const delimiter = tokens[opIndex + 1];
65
+ if (typeof delimiter !== "string") {
66
+ return { ok: false, error: "unable to parse" };
67
+ }
68
+ popFdPrefix(current);
69
+ return { ok: true, nextIndex: opIndex + 1 };
70
+ }
71
+
72
+ // src/shared/consumeInputRedirect.ts
73
+ function consumeInputRedirect(tokens, opIndex, current) {
74
+ const source = tokens[opIndex + 1];
75
+ if (typeof source !== "string") {
76
+ return { ok: false, error: "unable to parse" };
77
+ }
78
+ popFdPrefix(current);
79
+ return { ok: true, nextIndex: opIndex + 1 };
80
+ }
81
+
82
+ // src/shared/handleToken.ts
83
+ var SEPARATOR_OPS = /* @__PURE__ */ new Set(["|", "&&", "||", ";"]);
84
+ var OUTPUT_REDIRECT_OPS = /* @__PURE__ */ new Set([">", ">>"]);
85
+ var HEREDOC_OPS = /* @__PURE__ */ new Set(["<<", "<<-"]);
86
+ var INPUT_REDIRECT_OP = "<";
87
+ var UNPARSEABLE = { ok: false, error: "unable to parse" };
88
+ function handleToken(tokens, i, groups) {
89
+ const token = tokens[i];
90
+ const op = getOp(token);
91
+ if (op === void 0) return appendWord(token, groups, i);
92
+ if (op === "glob") {
93
+ groups[groups.length - 1].push(token.pattern);
94
+ return { ok: true, nextIndex: i };
95
+ }
96
+ if (SEPARATOR_OPS.has(op)) {
97
+ groups.push([]);
98
+ return { ok: true, nextIndex: i };
99
+ }
100
+ if (OUTPUT_REDIRECT_OPS.has(op)) {
101
+ return consumeRedirect(tokens, i, groups[groups.length - 1]);
102
+ }
103
+ if (HEREDOC_OPS.has(op)) {
104
+ return consumeHeredoc(tokens, i, groups[groups.length - 1]);
105
+ }
106
+ if (op === INPUT_REDIRECT_OP) {
107
+ return consumeInputRedirect(tokens, i, groups[groups.length - 1]);
108
+ }
109
+ return UNPARSEABLE;
110
+ }
111
+ function getOp(token) {
112
+ return typeof token === "object" && token !== null && "op" in token ? token.op : void 0;
113
+ }
114
+ function appendWord(token, groups, i) {
115
+ if (typeof token !== "string") return UNPARSEABLE;
116
+ groups[groups.length - 1].push(token);
117
+ return { ok: true, nextIndex: i };
118
+ }
119
+
120
+ // src/shared/groupByOperator.ts
121
+ function groupByOperator(tokens) {
122
+ const groups = [[]];
123
+ for (let i = 0; i < tokens.length; i++) {
124
+ const step = handleToken(tokens, i, groups);
125
+ if (!step.ok) return step;
126
+ i = step.nextIndex;
127
+ }
128
+ return { ok: true, groups };
129
+ }
130
+
131
+ // src/shared/hasUnquotedBackticks.ts
132
+ var QUOTED_OR_BACKTICK_RE = /\\.|'[^']*'|"[^"]*"|(`)/g;
133
+ function hasUnquotedBackticks(command) {
134
+ QUOTED_OR_BACKTICK_RE.lastIndex = 0;
135
+ for (let m = QUOTED_OR_BACKTICK_RE.exec(command); m !== null; m = QUOTED_OR_BACKTICK_RE.exec(command)) {
136
+ if (m[1] !== void 0) return true;
137
+ }
138
+ return false;
139
+ }
140
+
141
+ // src/shared/separateCommandLines.ts
142
+ var ESCAPE_OR_QUOTED_OR_NEWLINE_RE = /\\[\s\S]|'[^']*'|"[^"]*"|(\n)/g;
143
+ function separateCommandLines(command) {
144
+ if (!command.includes("\n")) return command;
145
+ return command.replace(
146
+ ESCAPE_OR_QUOTED_OR_NEWLINE_RE,
147
+ (match, newline) => newline === void 0 ? match : ";"
148
+ );
149
+ }
150
+
151
+ // src/shared/matchHeredocHeader.ts
152
+ var HEADER_RE = /^<<-?[ \t]*(?:'([^']*)'|"([^"]*)"|([^\s;|&<>()'"$`]+))/;
153
+ function matchHeredocHeader(command, start) {
154
+ let end = start;
155
+ while (command[end] === "<") end++;
156
+ const angles = command.slice(start, end);
157
+ if (angles.length !== 2) return { text: angles };
158
+ const match = HEADER_RE.exec(command.slice(start));
159
+ if (!match) return { text: angles };
160
+ return { text: match[0], delimiter: match[1] ?? match[2] ?? match[3] };
161
+ }
162
+
163
+ // src/shared/skipHeredocBodies.ts
164
+ function skipHeredocBodies(command, start, delimiters) {
165
+ let i = start;
166
+ for (const delimiter of delimiters) i = skipBody(command, i, delimiter);
167
+ return i;
168
+ }
169
+ function skipBody(command, start, delimiter) {
170
+ let i = start;
171
+ while (i < command.length) {
172
+ const newline = command.indexOf("\n", i);
173
+ const line = command.slice(i, newline === -1 ? command.length : newline);
174
+ i = newline === -1 ? command.length : newline + 1;
175
+ if (line.trim() === delimiter) return i;
176
+ }
177
+ return i;
178
+ }
179
+
180
+ // src/shared/stripHeredocBodies.ts
181
+ function stripHeredocBodies(command) {
182
+ if (!command.includes("<<")) return command;
183
+ let out = "";
184
+ let pending = [];
185
+ let quote;
186
+ let i = 0;
187
+ while (i < command.length) {
188
+ const char = command[i];
189
+ if (char === "\\" && quote !== "'" && i + 1 < command.length) {
190
+ out += command.slice(i, i + 2);
191
+ i += 2;
192
+ continue;
193
+ }
194
+ if (quote) {
195
+ if (char === quote) quote = void 0;
196
+ out += char;
197
+ i++;
198
+ continue;
199
+ }
200
+ if (char === "'" || char === '"') {
201
+ quote = char;
202
+ out += char;
203
+ i++;
204
+ continue;
205
+ }
206
+ if (char === "\n" && pending.length > 0) {
207
+ out += char;
208
+ i = skipHeredocBodies(command, i + 1, pending);
209
+ pending = [];
210
+ continue;
211
+ }
212
+ if (char === "<") {
213
+ const header = matchHeredocHeader(command, i);
214
+ if (header.delimiter !== void 0) pending.push(header.delimiter);
215
+ out += header.text;
216
+ i += header.text.length;
217
+ continue;
218
+ }
219
+ out += char;
220
+ i++;
221
+ }
222
+ return out;
223
+ }
224
+
225
+ // src/shared/splitCompound.ts
226
+ var FD_REDIRECT_RE = /\d+>&\d+/g;
227
+ var FD_DEVNULL_RE = /\d*>(?:\/dev\/null|\$null)/g;
228
+ var UNPARSEABLE2 = { ok: false, error: "unable to parse" };
229
+ function splitCompound(command) {
230
+ const tokens = tokenizeCommand(command);
231
+ if (!tokens) return UNPARSEABLE2;
232
+ const grouped = groupByOperator(tokens);
233
+ if (!grouped.ok) return grouped;
234
+ const parts = grouped.groups.map((g) => stripEnvPrefix(g.filter((word) => word !== "")).join(" ")).filter((cmd) => cmd !== "");
235
+ if (parts.length === 0) return UNPARSEABLE2;
236
+ return { ok: true, parts };
237
+ }
238
+ function tokenizeCommand(command) {
239
+ const trimmed = separateCommandLines(stripHeredocBodies(command.trim())).replace(FD_DEVNULL_RE, "").replace(FD_REDIRECT_RE, "");
240
+ if (!trimmed) return void 0;
241
+ if (hasUnquotedBackticks(trimmed)) return void 0;
242
+ try {
243
+ return parse(trimmed);
244
+ } catch {
245
+ return void 0;
246
+ }
247
+ }
248
+ function stripEnvPrefix(parts) {
249
+ let i = 0;
250
+ while (i < parts.length && /^[A-Za-z_]\w*=/.test(parts[i])) i++;
251
+ return i > 0 ? parts.slice(i) : parts;
252
+ }
253
+
254
+ // src/commands/cliHook/isGhGraphqlIssueMutation.ts
255
+ import { readFileSync } from "fs";
256
+ var ISSUE_MUTATION = /\bmutation\b[\s\S]*(?:issue|comment|review|label|assign|reaction|milestone)/i;
257
+ var FILE_REFERENCE = /(?:=@|--input[\s=]+)["']?([^\s"';&|)]+)/g;
258
+ function isGhGraphqlIssueMutation(command) {
259
+ if (!command.includes("graphql")) return false;
260
+ if (ISSUE_MUTATION.test(command)) return true;
261
+ return [...command.matchAll(FILE_REFERENCE)].some(
262
+ (m) => ISSUE_MUTATION.test(readOrEmpty(m[1]))
263
+ );
264
+ }
265
+ function readOrEmpty(path) {
266
+ try {
267
+ return readFileSync(path, "utf8");
268
+ } catch {
269
+ return "";
270
+ }
271
+ }
272
+
273
+ // src/commands/cliHook/isGhRestWrite.ts
274
+ var WRITE_METHODS = /* @__PURE__ */ new Set(["POST", "PATCH", "PUT", "DELETE"]);
275
+ var METHOD = /(?:-X|--method)[\s=]*["']?([A-Za-z]+)/g;
276
+ var BODY_FLAG = /\s(?:-[fF]|--field|--raw-field|--input)/;
277
+ function isGhRestWrite(command, endpoint) {
278
+ if (!/gh\s+api/.test(command) || !endpoint.test(command)) return false;
279
+ const methods = [...command.matchAll(METHOD)].map((m) => m[1].toUpperCase());
280
+ if (methods.length > 0) return methods.some((m) => WRITE_METHODS.has(m));
281
+ return BODY_FLAG.test(command);
282
+ }
283
+
284
+ // src/commands/cliHook/isGhIssueApiWrite.ts
285
+ var ISSUE_ENDPOINT = /repos\/[^/\s"'`]+\/[^/\s"'`]+\/issues(?:$|[/?\s"'`)])/;
286
+ function isGhIssueApiWrite(command) {
287
+ if (!/gh\s+api/.test(command)) return false;
288
+ if (isGhRestWrite(command, ISSUE_ENDPOINT)) return true;
289
+ return isGhGraphqlIssueMutation(command);
290
+ }
291
+
292
+ // src/commands/cliHook/isGhPullReviewApiWrite.ts
293
+ var PULL_REVIEW_ENDPOINT = /repos\/[^/\s"'`]+\/[^/\s"'`]+\/pulls\/(?:\d+\/)?(?:comments|reviews)(?:$|[/?\s"'`)])/;
294
+ function isGhPullReviewApiWrite(command) {
295
+ return isGhRestWrite(command, PULL_REVIEW_ENDPOINT);
296
+ }
297
+
298
+ // src/commands/cliHook/builtinDenyRules.ts
299
+ var PATTERN_DENIES = [
300
+ {
301
+ pattern: "gh pr create",
302
+ message: "Do not run 'gh pr create' directly. Use 'assist prs raise --title <title> --what <what> --why <why>' instead \u2014 it assembles and validates the body before delegating to gh, and gates the PR on the user's approval itself. Run 'assist prs raise --help' and follow its guidance to compose the sections; it is authoritative on how approval is handled in this environment."
303
+ },
304
+ {
305
+ pattern: "gh pr edit",
306
+ message: "Do not run 'gh pr edit' directly. Use 'assist prs edit [--title <title>] [--what <what>] [--why <why>] [--how <how>]' instead \u2014 it assembles and validates the body before delegating to gh, and in an assist web session blocks on the preview pane until the user approves or rejects. Compose the sections and run it; see 'assist prs edit --help' for how to pitch each section."
307
+ },
308
+ {
309
+ pattern: "gh issue create",
310
+ message: "Do not run 'gh issue create' directly. Use 'assist github issue create --title <title> --body <body> [-R <owner>/<repo>]' instead \u2014 it validates the title and body before delegating to gh, and gates the issue on the user's approval itself. Run 'assist github issue create --help' and follow its guidance to compose the body; it is authoritative on how approval is handled in this environment."
311
+ },
312
+ {
313
+ pattern: "gh issue edit",
314
+ message: "Do not run 'gh issue edit' directly. Use 'assist github issue edit <number> [-R <owner>/<repo>] [--body <body>]' instead \u2014 it opens the body in the assist web preview pane and pushes nothing back until the user approves it. When you already know the body you want, pass it with --body (--body - reads stdin) so the first preview shows your proposal; without --body the pane shows the issue's current body. To make a targeted change to the current body, run it with --fetch first, which writes that body to a working file and prints its path without opening a preview; edit the file, then re-run without --fetch so the first preview shows your revision. Run 'assist github issue edit --help' for how the working file and the preview pane fit together; it is authoritative on how approval is handled in this environment. To remove an assignee, use 'assist github issue unassign <number> [-R <owner>/<repo>] [--assignee <login>...]' (it removes you when --assignee is omitted)."
315
+ },
316
+ {
317
+ pattern: "gh issue comment",
318
+ message: "Do not run 'gh issue comment' directly. Use 'assist github issue comment <number> --body <body> [-R <owner>/<repo>]' instead \u2014 it validates the body before delegating to gh, and gates the comment on the user's approval itself. Run 'assist github issue comment --help' and follow its guidance to compose the body; it is authoritative on how approval is handled in this environment."
319
+ },
320
+ {
321
+ pattern: "gh pr comment",
322
+ message: "Do not run 'gh pr comment' directly \u2014 it posts to the PR without the approval pane. Use 'assist github issue comment <number> --body <body> [-R <owner>/<repo>]' instead (PR numbers are issue numbers) \u2014 it validates the body before delegating to gh, and gates the comment on the user's approval itself. To reply in a review thread, use 'assist prs reply <comment-id> <body>'. Run the command's --help and follow its guidance; it is authoritative on how approval is handled in this environment."
323
+ },
324
+ {
325
+ pattern: "git commit",
326
+ message: `Do not run 'git commit' directly. Use 'assist commit "<message>"' instead.`
327
+ },
328
+ {
329
+ pattern: "npm run",
330
+ message: "Do not run 'npm run' directly. Use 'assist run <name>' for a configured command, or 'assist verify' / 'assist build'. If this repo genuinely needs npm run, set cliHook.blockNpmRun to false in its assist.yml.",
331
+ enabled: () => loadConfig().cliHook?.blockNpmRun !== false
332
+ }
333
+ ];
334
+ var GH_ISSUE_API_MESSAGE = "Do not write to GitHub issues with 'gh api' (REST issue endpoints or GraphQL issue mutations) \u2014 it bypasses the content validation and the approval pane that every outward-facing issue write goes through. Use 'assist github issue create --title <title> --body <body>' to open an issue, 'assist github issue edit <number>' to rework one's body, 'assist github issue comment <number> --body <body>' to post a comment, or 'assist github issue edit-comment <comment-id> --body <body>' to amend a comment that is already posted. Each validates the content and gates it on the user's approval before anything reaches GitHub; run the command's --help for how to compose it. To remove an assignee, use 'assist github issue unassign <number> [-R <owner>/<repo>] [--assignee <login>...]' (it removes you when --assignee is omitted).";
335
+ var BRANCH_CREATION_MESSAGE = "Do not create branches with raw git. Use the /branch command, or 'assist branch <slug> [--jira <KEY>]' \u2014 it branches off the fresh remote default and enforces the team naming convention.";
336
+ var CLOSE_WITH_COMMENT_MESSAGE = "Do not post a comment through 'gh issue close', 'gh issue reopen' or 'gh pr close' with --comment/-c \u2014 it goes to GitHub without the approval pane. Post the comment first with 'assist github issue comment <number> --body <body> [-R <owner>/<repo>]', which validates it and gates it on the user's approval, then run the same close/reopen without --comment.";
337
+ var CLOSE_WITH_COMMENT_REGEX = /gh (?:issue (?:close|reopen)|pr close)[^;&|]*? (?:--comment|-c)/;
338
+ var PR_REVIEW_MESSAGE = "Do not run 'gh pr review' with a body or a verdict (--comment, --approve, --request-changes) \u2014 it posts to the PR without the approval pane. To reply on the PR conversation, use 'assist github issue comment <number> --body <body> [-R <owner>/<repo>]' (PR numbers are issue numbers); to reply in a review thread, use 'assist prs reply <comment-id> <body>'; to add a line comment to the pending review, use 'assist prs comment <path> <line> <body>'. Each gates the text on the user's approval. Leave approving or requesting changes to the user.";
339
+ var PR_REVIEW_REGEX = /gh pr review[^;&|]*? (?:-[bcaFr]\b|--(?:body|body-file|comment|approve|request-changes)\b)/;
340
+ var GH_PULL_REVIEW_API_MESSAGE = "Do not write to pull request comments or reviews with 'gh api' \u2014 it bypasses the content validation and the approval pane. Use 'assist github issue comment <number> --body <body>' for a PR conversation comment (PR numbers are issue numbers), 'assist prs reply <comment-id> <body>' to reply in a review thread, or 'assist prs comment <path> <line> <body>' to add a line comment to the pending review. Each gates the text on the user's approval before anything reaches GitHub.";
341
+ var BRANCH_CREATION_REGEXES = [
342
+ /git (?:checkout|co) -[bB]/,
343
+ /git switch (?:-[cC]|--create)/,
344
+ /git branch [^-\s;&|)]/
345
+ ];
346
+ var builtinDenyRules = [
347
+ ...PATTERN_DENIES.map((rule) => ({
348
+ message: rule.message,
349
+ matches: (text) => text.includes(rule.pattern),
350
+ enabled: rule.enabled
351
+ })),
352
+ ...BRANCH_CREATION_REGEXES.map((regex) => ({
353
+ message: BRANCH_CREATION_MESSAGE,
354
+ matches: (text) => regex.test(text)
355
+ })),
356
+ {
357
+ message: CLOSE_WITH_COMMENT_MESSAGE,
358
+ matches: (text) => CLOSE_WITH_COMMENT_REGEX.test(text)
359
+ },
360
+ {
361
+ message: PR_REVIEW_MESSAGE,
362
+ matches: (text) => PR_REVIEW_REGEX.test(text)
363
+ },
364
+ {
365
+ message: GH_ISSUE_API_MESSAGE,
366
+ matches: isGhIssueApiWrite
367
+ },
368
+ {
369
+ message: GH_PULL_REVIEW_API_MESSAGE,
370
+ matches: isGhPullReviewApiWrite
371
+ }
372
+ ];
373
+
374
+ // src/commands/cliHook/findBuiltinDeny.ts
375
+ function normaliseWhitespace(text) {
376
+ return text.replace(/\\\n/g, " ").replace(/\s+/g, " ");
377
+ }
378
+ function matchBuiltinDeny(text) {
379
+ const normalised = normaliseWhitespace(text);
380
+ return builtinDenyRules.find(
381
+ (rule) => rule.matches(normalised) && (rule.enabled?.() ?? true)
382
+ );
383
+ }
384
+ function toDecision(rule) {
385
+ if (!rule) return void 0;
386
+ return {
387
+ permissionDecision: "deny",
388
+ permissionDecisionReason: rule.message
389
+ };
390
+ }
391
+ function findBuiltinDeny(parts) {
392
+ for (const part of parts) {
393
+ const decision = toDecision(matchBuiltinDeny(part));
394
+ if (decision) return decision;
395
+ }
396
+ return void 0;
397
+ }
398
+ function findBuiltinDenyRaw(rawCommand) {
399
+ return toDecision(matchBuiltinDeny(rawCommand));
400
+ }
401
+
402
+ // src/commands/cliHook/findRestrictedPathDeny.ts
403
+ var RESTRICTED_PATHS = [".assist/restricted"];
404
+ function restrictedPathRegex(path) {
405
+ const pattern = path.split("/").map((segment) => segment.replace(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`)).join(String.raw`[/\\]`);
406
+ return new RegExp(pattern);
407
+ }
408
+ var RESTRICTED_PATH_RULES = RESTRICTED_PATHS.map((path) => ({
409
+ path,
410
+ regex: restrictedPathRegex(path)
411
+ }));
412
+ function findRestrictedPathDenyRaw(rawCommand) {
413
+ const rule = RESTRICTED_PATH_RULES.find(
414
+ ({ regex }) => regex.test(rawCommand)
415
+ );
416
+ if (!rule) return void 0;
417
+ return {
418
+ permissionDecision: "deny",
419
+ permissionDecisionReason: `Do not read '~/${rule.path}'. The directory is off limits to every tool and command, and no settings allow entry, config rule or allowed read binary overrides that.`
420
+ };
421
+ }
422
+ function findRestrictedPathDeny(parts) {
423
+ for (const part of parts) {
424
+ const decision = findRestrictedPathDenyRaw(part);
425
+ if (decision) return decision;
426
+ }
427
+ return void 0;
428
+ }
429
+
430
+ // src/commands/cliHook/matchUntruncatableRead.ts
431
+ var TRUNCATOR_BINARIES = ["head", "tail"];
432
+ var NARROWING_FILTERS = [...TRUNCATOR_BINARIES, "grep", "rg", "wc"];
433
+ function backlogRead(prefix) {
434
+ return {
435
+ prefix,
436
+ filters: TRUNCATOR_BINARIES,
437
+ reason: `Plan, Activity and Comments print at the end of the output, so a truncated read drops them and leaves you assuming the item has none. Run '${prefix} <id>' bare and read all of it, or use a focused view: 'assist backlog comments <id>' for comments only.`
438
+ };
439
+ }
440
+ var UNTRUNCATABLE_READS = [
441
+ backlogRead("assist backlog show"),
442
+ backlogRead("assist backlog view"),
443
+ {
444
+ prefix: "assist verify",
445
+ filters: NARROWING_FILTERS,
446
+ reason: "Verify already prints only what failed \u2014 under CLAUDECODE it suppresses every passing check \u2014 so there is nothing to trim or search for and a narrowed read drops the failing check's output, the only part worth reading, leaving you guessing at the failure. Run 'assist verify' bare and read all of it."
447
+ },
448
+ {
449
+ prefix: "assist prs list-comments",
450
+ filters: TRUNCATOR_BINARIES,
451
+ reason: "Every unresolved thread prints in full above the resolved index, with its author, path:line, id, url and body, so a truncated read leaves you the one-line resolved index instead of the threads. Run 'assist prs list-comments' bare and read all of it \u2014 do not read or parse the YAML cache; fixed, wontfix and reply locate it themselves."
452
+ }
453
+ ];
454
+ var APPROVAL_GATED_COMMANDS = [
455
+ "assist backlog propose",
456
+ "assist backlog comment",
457
+ "assist backlog update-plan",
458
+ "assist backlog add-phase",
459
+ "assist github issue create",
460
+ "assist github issue edit",
461
+ "assist github issue comment",
462
+ "assist github issue edit-comment",
463
+ "assist slack post",
464
+ "assist prs raise",
465
+ "assist prs edit",
466
+ "assist prs comment",
467
+ "assist prs reply",
468
+ "assist prs wontfix",
469
+ "assist miro extract"
470
+ ];
471
+ function hasPrefix(prefix, part) {
472
+ return part === prefix || part.startsWith(`${prefix} `);
473
+ }
474
+ function matchUntruncatableRead(part) {
475
+ return UNTRUNCATABLE_READS.find((entry) => hasPrefix(entry.prefix, part));
476
+ }
477
+ function matchApprovalGatedCommand(part) {
478
+ return APPROVAL_GATED_COMMANDS.find((prefix) => hasPrefix(prefix, part));
479
+ }
480
+
481
+ // src/commands/cliHook/findTruncatedReadDeny.ts
482
+ function startsWithFilter(part, filters) {
483
+ const binary = part.split(/\s+/)[0]?.split("/").pop() ?? "";
484
+ return filters.includes(binary);
485
+ }
486
+ function pipesToFilter(rawCommand, filters) {
487
+ return new RegExp(`\\|\\s*(?:\\S*/)?(?:${filters.join("|")})\\b`).test(
488
+ rawCommand
489
+ );
490
+ }
491
+ function namedFilters(filters) {
492
+ return `${filters.slice(0, -1).join(", ")} or ${filters.at(-1)}`;
493
+ }
494
+ function readDecision(read) {
495
+ return {
496
+ permissionDecision: "deny",
497
+ permissionDecisionReason: `Do not pipe '${read.prefix}' through ${namedFilters(read.filters)}. ${read.reason}`
498
+ };
499
+ }
500
+ function gatedDecision(gated) {
501
+ return {
502
+ permissionDecision: "deny",
503
+ permissionDecisionReason: `Do not pipe '${gated}' through head or tail. It gates on a preview the reviewer can reject with inline comments, and those comments print at the end of the output. Nothing persists them, so a truncated read discards the reviewer's feedback for good and they have to retype it. Run '${gated}' bare and read all of it.`
504
+ };
505
+ }
506
+ function findTruncatedReadDeny(parts) {
507
+ const read = parts.map(matchUntruncatableRead).find(Boolean);
508
+ if (read && parts.some((part) => startsWithFilter(part, read.filters)))
509
+ return readDecision(read);
510
+ const gated = parts.map(matchApprovalGatedCommand).find(Boolean);
511
+ if (gated && parts.some((part) => startsWithFilter(part, TRUNCATOR_BINARIES)))
512
+ return gatedDecision(gated);
513
+ return void 0;
514
+ }
515
+ function findTruncatedReadDenyRaw(rawCommand) {
516
+ const read = matchUntruncatableRead(rawCommand);
517
+ if (read && pipesToFilter(rawCommand, read.filters))
518
+ return readDecision(read);
519
+ const gated = matchApprovalGatedCommand(rawCommand);
520
+ if (gated && pipesToFilter(rawCommand, TRUNCATOR_BINARIES))
521
+ return gatedDecision(gated);
522
+ return void 0;
523
+ }
524
+
525
+ // src/shared/isApprovedRead.ts
526
+ import { resolve, sep } from "path";
527
+
528
+ // src/shared/appliesFixStructure.ts
529
+ var APPLY_RE = /^assist\s+github\s+issue\s+fix-structure\b.*\s--apply\b/;
530
+ function appliesFixStructure(command) {
531
+ return APPLY_RE.test(command);
532
+ }
533
+
534
+ // src/shared/configuresReleases.ts
535
+ var CONFIGURE_RE = /^assist\s+releases\s+configure\b/;
536
+ function configuresReleases(command) {
537
+ return CONFIGURE_RE.test(command);
538
+ }
539
+
540
+ // src/shared/tokenize.ts
541
+ function tokenize(command) {
542
+ const tokens = [];
543
+ let current = "";
544
+ let inSingle = false;
545
+ let inDouble = false;
546
+ for (let i = 0; i < command.length; i++) {
547
+ const ch = command[i];
548
+ if (ch === "'" && !inDouble) {
549
+ inSingle = !inSingle;
550
+ current += ch;
551
+ } else if (ch === '"' && !inSingle) {
552
+ inDouble = !inDouble;
553
+ current += ch;
554
+ } else if (ch === "\\" && inDouble && i + 1 < command.length) {
555
+ current += ch + command[++i];
556
+ } else if (/\s/.test(ch) && !inSingle && !inDouble) {
557
+ if (current) {
558
+ tokens.push(current);
559
+ current = "";
560
+ }
561
+ } else {
562
+ current += ch;
563
+ }
564
+ }
565
+ if (current) tokens.push(current);
566
+ return tokens;
567
+ }
568
+
569
+ // src/shared/extractGhApiMethod.ts
570
+ function extractGhApiMethod(args) {
571
+ for (let i = 0; i < args.length; i++) {
572
+ const arg = args[i];
573
+ if (arg.startsWith("--method=")) return arg.slice("--method=".length);
574
+ if (arg.startsWith("-X=")) return arg.slice("-X=".length);
575
+ if (arg.startsWith("-X") && arg.length > 2) return arg.slice(2);
576
+ if ((arg === "--method" || arg === "-X") && i + 1 < args.length) {
577
+ return args[i + 1];
578
+ }
579
+ }
580
+ return void 0;
581
+ }
582
+
583
+ // src/shared/isGhApiRead.ts
584
+ var READ_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD"]);
585
+ var BODY_FLAGS = /* @__PURE__ */ new Set(["-f", "-F", "--field", "--raw-field", "--input"]);
586
+ var FIELD_FLAGS = /* @__PURE__ */ new Set(["-f", "--field", "-F"]);
587
+ function isGhApiRead(command) {
588
+ const tokens = tokenize(command);
589
+ if (tokens.length < 2 || tokens[0] !== "gh" || tokens[1] !== "api") {
590
+ return false;
591
+ }
592
+ const args = tokens.slice(2);
593
+ if (args.includes("graphql")) {
594
+ return isGraphqlRead(args);
595
+ }
596
+ const method = extractGhApiMethod(args);
597
+ if (method) return READ_METHODS.has(method.toUpperCase());
598
+ if (args.some((t) => BODY_FLAGS.has(t))) return false;
599
+ return true;
600
+ }
601
+ function isGraphqlRead(args) {
602
+ const method = extractGhApiMethod(args);
603
+ if (method) return READ_METHODS.has(method.toUpperCase());
604
+ const queryBody = extractGraphqlQuery(args);
605
+ if (!queryBody) return false;
606
+ const trimmed = queryBody.replace(/^['"]|['"]$/g, "").trimStart();
607
+ if (trimmed.startsWith("mutation")) return false;
608
+ if (trimmed.startsWith("query") || trimmed.startsWith("{")) return true;
609
+ return false;
610
+ }
611
+ function extractGraphqlQuery(args) {
612
+ for (let i = 0; i < args.length; i++) {
613
+ if (FIELD_FLAGS.has(args[i]) && i + 1 < args.length) {
614
+ const match = args[i + 1].match(/^query=(.*)/s);
615
+ if (match) return match[1];
616
+ }
617
+ }
618
+ return void 0;
619
+ }
620
+
621
+ // src/shared/readSettingsPerms.ts
622
+ import { existsSync, readFileSync as readFileSync2 } from "fs";
623
+ import { homedir } from "os";
624
+ import { join } from "path";
625
+ function readSettingsPerms(key) {
626
+ const paths = [
627
+ join(homedir(), ".claude", "settings.json"),
628
+ join(process.cwd(), ".claude", "settings.json"),
629
+ join(process.cwd(), ".claude", "settings.local.json")
630
+ ];
631
+ const entries = [];
632
+ for (const p of paths) {
633
+ entries.push(...readPermissionArray(p, key));
634
+ }
635
+ const harness = activeHarness();
636
+ if (harness)
637
+ entries.push(...harnessAdapter(harness).permissionRules?.(key) ?? []);
638
+ return entries;
639
+ }
640
+ function readPermissionArray(filePath, key) {
641
+ if (!existsSync(filePath)) return [];
642
+ try {
643
+ const data = JSON.parse(readFileSync2(filePath, "utf8"));
644
+ const arr = data?.permissions?.[key];
645
+ return Array.isArray(arr) ? arr.filter((e) => typeof e === "string") : [];
646
+ } catch {
647
+ return [];
648
+ }
649
+ }
650
+
651
+ // src/shared/matchesAllow.ts
652
+ var allowCache;
653
+ var denyCache;
654
+ var TOOL_RE = /^(Bash|PowerShell)\((.+?)(:.*)?\)$/;
655
+ var SHELL_TOOLS = ["Bash", "PowerShell"];
656
+ var DOTSLASH_RE = /^\.[\\/]/;
657
+ var FD_REDIRECT_RE2 = /\d+>&\d+/g;
658
+ var FD_DEVNULL_RE2 = /\d*>(?:\/dev\/null|\$null)/g;
659
+ function loadPerms(key) {
660
+ return parsePerms(readSettingsPerms(key));
661
+ }
662
+ function shellEntries(map, toolName) {
663
+ if (SHELL_TOOLS.includes(toolName)) {
664
+ return SHELL_TOOLS.flatMap((t) => map.get(t) ?? []);
665
+ }
666
+ return map.get(toolName) ?? [];
667
+ }
668
+ function normCmd(cmd) {
669
+ return cmd.replace(FD_DEVNULL_RE2, "").replace(FD_REDIRECT_RE2, "").trim().replace(DOTSLASH_RE, "");
670
+ }
671
+ function findMatch(entries, command) {
672
+ const norm = normCmd(command);
673
+ return entries.find(
674
+ (e) => e.wildcard ? norm === e.command || norm.startsWith(`${e.command} `) : norm === e.command
675
+ )?.command;
676
+ }
677
+ function matchesAllow(toolName, command) {
678
+ if (!allowCache) allowCache = loadPerms("allow");
679
+ return findMatch(shellEntries(allowCache, toolName), command);
680
+ }
681
+ function matchesDeny(toolName, command) {
682
+ if (!denyCache) denyCache = loadPerms("deny");
683
+ return findMatch(shellEntries(denyCache, toolName), command);
684
+ }
685
+ function parsePerms(entries) {
686
+ const map = /* @__PURE__ */ new Map();
687
+ for (const entry of entries) {
688
+ const m = entry.match(TOOL_RE);
689
+ if (m) {
690
+ const tool = m[1];
691
+ const command = normCmd(m[2]);
692
+ const wildcard = m[3] !== void 0;
693
+ const list = map.get(tool) ?? [];
694
+ list.push({ command, wildcard });
695
+ map.set(tool, list);
696
+ }
697
+ }
698
+ return map;
699
+ }
700
+
701
+ // src/shared/mutatesNodeLinks.ts
702
+ var MUTATE_RE = /^assist\s+sessions\s+nodes\s+(link|unlink)\b/;
703
+ function mutatesNodeLinks(command) {
704
+ return MUTATE_RE.test(command);
705
+ }
706
+
707
+ // src/shared/revealsConfigSecret.ts
708
+ var REVEAL_RE = /^assist\s+config\s+get\b.*\s--reveal\b/;
709
+ function revealsConfigSecret(command) {
710
+ return REVEAL_RE.test(command);
711
+ }
712
+
713
+ // src/shared/isApprovedRead.ts
714
+ var READ_RE = /^Read\((.+)\)$/;
715
+ var SAFE_BUILTINS = /* @__PURE__ */ new Set(["true", "false"]);
716
+ function isApprovedRead(command, toolName = "Bash") {
717
+ if (revealsConfigSecret(command)) return void 0;
718
+ if (SAFE_BUILTINS.has(command)) return `safe shell builtin: ${command}`;
719
+ if (isCdToCwd(command)) return "cd to current directory";
720
+ const cdRead = isCdToReadAllowedDir(command);
721
+ if (cdRead) return cdRead;
722
+ if (appliesFixStructure(command)) return void 0;
723
+ if (configuresReleases(command)) return void 0;
724
+ if (mutatesNodeLinks(command)) return void 0;
725
+ const matchedRead = findCliRead(command);
726
+ if (matchedRead) return `Read-only CLI command: ${matchedRead}`;
727
+ const matchedWrite = findCliWrite(command);
728
+ if (matchedWrite) return `Allowed CLI write: ${matchedWrite}`;
729
+ if (isGhApiRead(command)) return "Read-only gh api command";
730
+ const allowMatch = matchesAllow(toolName, command);
731
+ if (allowMatch) return `Allowed by settings: ${allowMatch}`;
732
+ return void 0;
733
+ }
734
+ function isCdToCwd(command) {
735
+ const parts = command.split(/\s+/);
736
+ if (parts[0] !== "cd" || parts.length > 2) return false;
737
+ if (parts.length === 1) return false;
738
+ const resolved = resolve(normalizeMsysPath(parts[1]));
739
+ return resolved === resolve(process.cwd());
740
+ }
741
+ function isCdToReadAllowedDir(command) {
742
+ const parts = command.split(/\s+/);
743
+ if (parts[0] !== "cd" || parts.length !== 2) return void 0;
744
+ const target = resolve(normalizeMsysPath(parts[1]));
745
+ for (const entry of readSettingsPerms("allow")) {
746
+ const m = entry.match(READ_RE);
747
+ if (!m) continue;
748
+ const base = globBaseDir(m[1]);
749
+ if (!base) continue;
750
+ const resolved = resolve(normalizeMsysPath(base));
751
+ if (target === resolved || target.startsWith(resolved + sep)) {
752
+ return `cd to Read-allowed directory: ${entry}`;
753
+ }
754
+ }
755
+ return void 0;
756
+ }
757
+ function globBaseDir(pattern) {
758
+ const base = pattern.replace(/[/\\][^/\\]*[*?[].*$/, "");
759
+ return /[*?[]/.test(base) ? "" : base;
760
+ }
761
+ function normalizeMsysPath(p) {
762
+ const m = p.match(/^\/([a-zA-Z])(\/.*)/);
763
+ return m ? `${m[1].toUpperCase()}:${m[2]}` : p;
764
+ }
765
+
766
+ // src/shared/matchesConfigDeny.ts
767
+ function matchesConfigDeny(command) {
768
+ const config = loadConfig();
769
+ if (!config.deny) return void 0;
770
+ return config.deny.find(
771
+ (rule) => command === rule.pattern || command.startsWith(`${rule.pattern} `)
772
+ );
773
+ }
774
+
775
+ // src/commands/cliHook/findSubcommandAdvice.ts
776
+ var SUBCOMMAND_READS = [
777
+ {
778
+ prefix: "assist complexity",
779
+ subcommands: ["maintainability", "cyclomatic", "halstead"]
780
+ }
781
+ ];
782
+ function findSubcommandAdvice(parts) {
783
+ if (parts.length <= 1) return void 0;
784
+ for (const part of parts) {
785
+ const rule = matchesSubcommandRead(part);
786
+ if (rule) {
787
+ return {
788
+ permissionDecision: "deny",
789
+ permissionDecisionReason: `Do not pipe or chain '${rule.prefix}'. Run a focused sub-command directly for targeted output: ${rule.subcommands.map((s) => `${rule.prefix} ${s} <file>`).join(", ")}.`
790
+ };
791
+ }
792
+ }
793
+ return void 0;
794
+ }
795
+ function matchesSubcommandRead(part) {
796
+ return SUBCOMMAND_READS.find(
797
+ (rule) => part === rule.prefix || part.startsWith(`${rule.prefix} `)
798
+ );
799
+ }
800
+
801
+ // src/commands/cliHook/resolvePermission.ts
802
+ function findDeny(toolName, parts) {
803
+ const restrictedPathDeny = findRestrictedPathDeny(parts);
804
+ if (restrictedPathDeny) return restrictedPathDeny;
805
+ const builtinDeny = findBuiltinDeny(parts);
806
+ if (builtinDeny) return builtinDeny;
807
+ const truncatedRead = findTruncatedReadDeny(parts);
808
+ if (truncatedRead) return truncatedRead;
809
+ for (const part of parts) {
810
+ const configDeny = matchesConfigDeny(part);
811
+ if (configDeny) {
812
+ return {
813
+ permissionDecision: "deny",
814
+ permissionDecisionReason: configDeny.message
815
+ };
816
+ }
817
+ }
818
+ const subcommandAdvice = findSubcommandAdvice(parts);
819
+ if (subcommandAdvice) return subcommandAdvice;
820
+ for (const part of parts) {
821
+ const denied = matchesDeny(toolName, part);
822
+ if (denied) {
823
+ return {
824
+ permissionDecision: "deny",
825
+ permissionDecisionReason: `Denied by settings: ${denied}`
826
+ };
827
+ }
828
+ }
829
+ return void 0;
830
+ }
831
+ function resolvePermission(toolName, parts) {
832
+ const denied = findDeny(toolName, parts);
833
+ if (denied) return denied;
834
+ const reasons = [];
835
+ for (const part of parts) {
836
+ const reason = isApprovedRead(part, toolName);
837
+ if (!reason) return void 0;
838
+ reasons.push(reason);
839
+ }
840
+ return {
841
+ permissionDecision: "allow",
842
+ permissionDecisionReason: reasons.join("; ")
843
+ };
844
+ }
845
+
846
+ export {
847
+ splitCompound,
848
+ findBuiltinDenyRaw,
849
+ findRestrictedPathDenyRaw,
850
+ findRestrictedPathDeny,
851
+ findTruncatedReadDenyRaw,
852
+ isApprovedRead,
853
+ findDeny,
854
+ resolvePermission
855
+ };