sandforge 1.85.0 → 1.86.0

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 (274) hide show
  1. package/README.md +1 -1
  2. package/lib/{chunk-THYQOG24.mjs → chunk-22L43JMK.mjs} +1 -1
  3. package/lib/{chunk-U4S27YRP.mjs → chunk-2LSGWTWX.mjs} +1 -1
  4. package/lib/{chunk-MRN72UEO.mjs → chunk-2YJJTQNC.mjs} +1 -1
  5. package/lib/chunk-34SMB5PA.mjs +10 -0
  6. package/lib/chunk-35B73566.mjs +7 -0
  7. package/lib/{chunk-YZKE6D3K.mjs → chunk-35IJ4WEU.mjs} +1 -1
  8. package/lib/chunk-3EHPAFKV.mjs +7 -0
  9. package/lib/{chunk-3OKDWZ32.mjs → chunk-3HAVVEXF.mjs} +1 -1
  10. package/lib/{chunk-32ZB5ICW.mjs → chunk-3I6FXFCN.mjs} +1 -1
  11. package/lib/{chunk-JFVY66BS.mjs → chunk-3KJCSYXY.mjs} +1 -1
  12. package/lib/{chunk-ULEYGOZU.mjs → chunk-3L6DVNCR.mjs} +1 -1
  13. package/lib/chunk-3LRFPGYZ.mjs +7 -0
  14. package/lib/{chunk-GHUA6OQQ.mjs → chunk-3MVWGL5A.mjs} +1 -1
  15. package/lib/{chunk-SF52ZSIV.mjs → chunk-4CSBZZAL.mjs} +1 -1
  16. package/lib/{chunk-FBYFCKPG.mjs → chunk-4NSXPONF.mjs} +1 -1
  17. package/lib/{chunk-A3QNSALB.mjs → chunk-4VLP6RHC.mjs} +1 -1
  18. package/lib/{chunk-TWYNQ2OO.mjs → chunk-4XROG5CT.mjs} +1 -1
  19. package/lib/chunk-54V4FVEY.mjs +7 -0
  20. package/lib/chunk-55OJJT2Q.mjs +7 -0
  21. package/lib/{chunk-JRI6A24G.mjs → chunk-5EHHQ5UX.mjs} +1 -1
  22. package/lib/{chunk-VPGX5Z5D.mjs → chunk-5JMQXHJ2.mjs} +1 -1
  23. package/lib/{chunk-CI2O7WBH.mjs → chunk-65AMXOQU.mjs} +1 -1
  24. package/lib/{chunk-5T3LFDJ5.mjs → chunk-6HHSAPIM.mjs} +1 -1
  25. package/lib/chunk-6KVBCFVS.mjs +7 -0
  26. package/lib/chunk-6NG7C2U3.mjs +476 -0
  27. package/lib/{chunk-F2424IKX.mjs → chunk-6ROL3KBM.mjs} +1 -1
  28. package/lib/{chunk-7ZYCRIHE.mjs → chunk-72AWCN7U.mjs} +1 -1
  29. package/lib/{chunk-MQLTEXB7.mjs → chunk-7KHA5UIQ.mjs} +1 -1
  30. package/lib/chunk-7O6EFNQS.mjs +10 -0
  31. package/lib/{chunk-73SLYGWD.mjs → chunk-A2CH2QGX.mjs} +1 -1
  32. package/lib/chunk-A2TXLAC3.mjs +276 -0
  33. package/lib/chunk-ALWVNR34.mjs +7 -0
  34. package/lib/{chunk-JBOGAUGH.mjs → chunk-ATBQIE2V.mjs} +1 -1
  35. package/lib/{chunk-C2MHMI7U.mjs → chunk-ATQML7ZK.mjs} +1 -1
  36. package/lib/chunk-AVY742BJ.mjs +7 -0
  37. package/lib/{chunk-VLAU5QQT.mjs → chunk-AXTB2HJS.mjs} +1 -1
  38. package/lib/chunk-BBZUGKBZ.mjs +10 -0
  39. package/lib/chunk-BIDXK7KA.mjs +7 -0
  40. package/lib/{chunk-KYLHS74X.mjs → chunk-BLMJ4WVI.mjs} +1 -1
  41. package/lib/{chunk-A7YP27GQ.mjs → chunk-BNHJCJJM.mjs} +1 -1
  42. package/lib/{chunk-ZDMSTL2L.mjs → chunk-BNPQEQXC.mjs} +1 -1
  43. package/lib/chunk-C5AUNG6T.mjs +37 -0
  44. package/lib/{chunk-LY6EPMIP.mjs → chunk-C5EQ7GFC.mjs} +1 -1
  45. package/lib/{chunk-LOO42EW5.mjs → chunk-C7CKDZMC.mjs} +62 -62
  46. package/lib/{chunk-ZP3WJGS3.mjs → chunk-CB4U22NR.mjs} +1 -1
  47. package/lib/chunk-CJAWKLAL.mjs +7 -0
  48. package/lib/chunk-CL75DEMQ.mjs +9 -0
  49. package/lib/{chunk-7L6FE5PP.mjs → chunk-CLUNF4FK.mjs} +1 -1
  50. package/lib/chunk-CSMGP53U.mjs +7 -0
  51. package/lib/{chunk-S6BMJSLD.mjs → chunk-CT324C7I.mjs} +1 -1
  52. package/lib/{chunk-YXOPKGDX.mjs → chunk-CZXDJXQP.mjs} +1 -1
  53. package/lib/{chunk-PGG4ULEW.mjs → chunk-D2X6U3MS.mjs} +1 -1
  54. package/lib/{chunk-FG4Y4ZVL.mjs → chunk-DAUX63UB.mjs} +1 -1
  55. package/lib/chunk-DB7JNALQ.mjs +10 -0
  56. package/lib/chunk-DDNCJVZ2.mjs +17 -0
  57. package/lib/{chunk-YGE4AUXG.mjs → chunk-DLSU66MY.mjs} +1 -1
  58. package/lib/{chunk-DCJBP3LE.mjs → chunk-DO6PSHQZ.mjs} +1 -1
  59. package/lib/{chunk-ROTDZKOE.mjs → chunk-DUBECLZV.mjs} +1 -1
  60. package/lib/{chunk-SES5HPBZ.mjs → chunk-DYHF6DNT.mjs} +1 -1
  61. package/lib/chunk-E5FSPXYH.mjs +930 -0
  62. package/lib/{chunk-QAXKUEJT.mjs → chunk-EGL3I3IX.mjs} +1 -1
  63. package/lib/chunk-EIYMQPMG.mjs +7 -0
  64. package/lib/{chunk-AX3YF7SC.mjs → chunk-EUIALBMX.mjs} +1 -1
  65. package/lib/{chunk-57QRXYAZ.mjs → chunk-FI3R5ZOQ.mjs} +1 -1
  66. package/lib/{chunk-FCZDWGQI.mjs → chunk-FM4QCTO7.mjs} +1 -1
  67. package/lib/{chunk-74HZ274R.mjs → chunk-FRSIEASH.mjs} +1 -1
  68. package/lib/{chunk-G6IYOZEH.mjs → chunk-FV6MOSHD.mjs} +1 -1
  69. package/lib/chunk-FYG47CNA.mjs +7 -0
  70. package/lib/chunk-GB6W4Q56.mjs +7 -0
  71. package/lib/chunk-GEV2DCMK.mjs +7 -0
  72. package/lib/{chunk-NZJXEULY.mjs → chunk-GFB2DNCB.mjs} +1 -1
  73. package/lib/chunk-GFGMGFSH.mjs +7 -0
  74. package/lib/{chunk-EFHDE7W4.mjs → chunk-GIFQXB2Q.mjs} +1 -1
  75. package/lib/{chunk-P6A22FMQ.mjs → chunk-GP5J3DGS.mjs} +1 -1
  76. package/lib/chunk-GQZEX7LH.mjs +231 -0
  77. package/lib/{chunk-BRN42U26.mjs → chunk-GYDTM62J.mjs} +1 -1
  78. package/lib/{chunk-GNCEHAJY.mjs → chunk-GYFIXUJG.mjs} +1 -1
  79. package/lib/chunk-GZW2GNFK.mjs +7 -0
  80. package/lib/chunk-H6BHWAX7.mjs +8 -0
  81. package/lib/{chunk-GUYEXPJ4.mjs → chunk-HDDJ3CVN.mjs} +1 -1
  82. package/lib/{chunk-3GATEVHC.mjs → chunk-HDWB4ZOG.mjs} +1 -1
  83. package/lib/chunk-HGVPBJR6.mjs +7 -0
  84. package/lib/{chunk-55VBV2WK.mjs → chunk-HLROVOR6.mjs} +1 -1
  85. package/lib/{chunk-HV3TDLFR.mjs → chunk-HUOR4M2L.mjs} +1 -1
  86. package/lib/chunk-HZCS6EED.mjs +8 -0
  87. package/lib/{chunk-WZX6VCIT.mjs → chunk-HZUI56KZ.mjs} +1 -1
  88. package/lib/chunk-IAB5H7WN.mjs +7 -0
  89. package/lib/{chunk-RY7WUJXH.mjs → chunk-IQ5UKRHU.mjs} +1 -1
  90. package/lib/{chunk-OUWR5M5G.mjs → chunk-IRQ4WANV.mjs} +1 -1
  91. package/lib/{chunk-F44EHXLI.mjs → chunk-IT3DGX37.mjs} +1 -1
  92. package/lib/chunk-J347SPU6.mjs +49 -0
  93. package/lib/{chunk-IZ2M2RGO.mjs → chunk-JANBNTR5.mjs} +1 -1
  94. package/lib/chunk-JFXQZPRY.mjs +9 -0
  95. package/lib/{chunk-VKA5OZBJ.mjs → chunk-JRLYWVF4.mjs} +1 -1
  96. package/lib/{chunk-FM5ESRH6.mjs → chunk-JSNMUTY6.mjs} +1 -1
  97. package/lib/chunk-JTNJKSAA.mjs +7 -0
  98. package/lib/{chunk-4D6OHSX3.mjs → chunk-JV2LAKWQ.mjs} +1 -1
  99. package/lib/{chunk-BY42YL4D.mjs → chunk-JV7K2ZHK.mjs} +1 -1
  100. package/lib/{chunk-A6IJUOLB.mjs → chunk-K4TQ7YHX.mjs} +1 -1
  101. package/lib/chunk-K5PUMHZU.mjs +7 -0
  102. package/lib/chunk-KH4KLCYG.mjs +7 -0
  103. package/lib/{chunk-FZF6FB65.mjs → chunk-KQVLZVOP.mjs} +1 -1
  104. package/lib/chunk-KWUS7UAV.mjs +19 -0
  105. package/lib/{chunk-2UUSF32M.mjs → chunk-L6G73FXM.mjs} +1 -1
  106. package/lib/{chunk-LUNGNCM3.mjs → chunk-LG466Q5H.mjs} +1 -1
  107. package/lib/{chunk-YTBM3TSW.mjs → chunk-LHNAR6FC.mjs} +1 -1
  108. package/lib/chunk-LT4GHEI2.mjs +7 -0
  109. package/lib/{chunk-P3OYE2FS.mjs → chunk-MR262Y3B.mjs} +1 -1
  110. package/lib/{chunk-TSTCHIBU.mjs → chunk-NCCHOV2N.mjs} +1 -1
  111. package/lib/chunk-NICRSGLS.mjs +7 -0
  112. package/lib/chunk-NV5QA2HY.mjs +7 -0
  113. package/lib/{chunk-6HAKOS6W.mjs → chunk-O3GIN5TU.mjs} +1 -1
  114. package/lib/chunk-O6FHK6NQ.mjs +13 -0
  115. package/lib/{chunk-OXIIKAUZ.mjs → chunk-O7YIEFG7.mjs} +1 -1
  116. package/lib/chunk-OCUVAA5E.mjs +7 -0
  117. package/lib/chunk-OLCS7JCT.mjs +14 -0
  118. package/lib/chunk-ON7Y63FK.mjs +9 -0
  119. package/lib/{chunk-K2WOT75I.mjs → chunk-OO2WY3UB.mjs} +1 -1
  120. package/lib/{chunk-3EOIAC2M.mjs → chunk-OT2NHL2V.mjs} +1 -1
  121. package/lib/{chunk-BK5SRDAD.mjs → chunk-P2M5ZXWU.mjs} +1 -1
  122. package/lib/{chunk-DCZYWMSA.mjs → chunk-P4YOHLZ4.mjs} +1 -1
  123. package/lib/chunk-PBHDPTT6.mjs +343 -0
  124. package/lib/chunk-PE7CHD2W.mjs +7 -0
  125. package/lib/{chunk-LU7M5URW.mjs → chunk-PIQ2I67B.mjs} +1 -1
  126. package/lib/chunk-PKYDNZJK.mjs +7 -0
  127. package/lib/chunk-PVZ72OOQ.mjs +7 -0
  128. package/lib/chunk-QACFTHJM.mjs +8 -0
  129. package/lib/{chunk-LNAZHI3J.mjs → chunk-QGVL5EW3.mjs} +1 -1
  130. package/lib/chunk-QHE2RUWX.mjs +7 -0
  131. package/lib/{chunk-4RNP65FV.mjs → chunk-RCW5BZNW.mjs} +1 -1
  132. package/lib/{chunk-OTKXTBTX.mjs → chunk-RJ6HHG7J.mjs} +1 -1
  133. package/lib/{chunk-IVDBVWKK.mjs → chunk-RPTEEI4R.mjs} +1 -1
  134. package/lib/chunk-RQW5S67A.mjs +7 -0
  135. package/lib/chunk-RTCMYMED.mjs +7 -0
  136. package/lib/chunk-RWVX7XSD.mjs +7 -0
  137. package/lib/{chunk-2UUS4IGB.mjs → chunk-RZOINFNL.mjs} +1 -1
  138. package/lib/chunk-SOOTWGMQ.mjs +7 -0
  139. package/lib/chunk-STQ2JMIZ.mjs +7 -0
  140. package/lib/{chunk-RC25QQVF.mjs → chunk-SUIPDW5O.mjs} +1 -1
  141. package/lib/{chunk-Z354SAEF.mjs → chunk-SZOJ7BEJ.mjs} +1 -1
  142. package/lib/{chunk-45375WT5.mjs → chunk-T542Z54E.mjs} +1 -1
  143. package/lib/chunk-TAN2CIRI.mjs +21 -0
  144. package/lib/{chunk-BGJBYDRW.mjs → chunk-TCNBINOG.mjs} +1 -1
  145. package/lib/chunk-TFDF3DBN.mjs +7 -0
  146. package/lib/{chunk-B5A4JHNN.mjs → chunk-TICZXC53.mjs} +1 -1
  147. package/lib/chunk-TLX45X5U.mjs +7 -0
  148. package/lib/{chunk-W6SLQZKQ.mjs → chunk-TMIV3IWH.mjs} +1 -1
  149. package/lib/chunk-TQ6HEJ73.mjs +11 -0
  150. package/lib/chunk-TTU5EQZ6.mjs +7 -0
  151. package/lib/chunk-TYUYPFDJ.mjs +7 -0
  152. package/lib/chunk-TZXYVMZC.mjs +7 -0
  153. package/lib/{chunk-4N425UJC.mjs → chunk-UCUFLFNK.mjs} +1 -1
  154. package/lib/chunk-UK3QLBHW.mjs +7 -0
  155. package/lib/{chunk-SKGAERV4.mjs → chunk-UM2B4GR7.mjs} +1 -1
  156. package/lib/chunk-UZFTTNOP.mjs +7 -0
  157. package/lib/chunk-V3AXSKSU.mjs +7 -0
  158. package/lib/chunk-VA6EEI6X.mjs +21 -0
  159. package/lib/{chunk-LSEM2BZH.mjs → chunk-VFKG2G37.mjs} +1 -1
  160. package/lib/chunk-VJNEW5MQ.mjs +7 -0
  161. package/lib/{chunk-EYFP3NA6.mjs → chunk-VKREON6Q.mjs} +1 -1
  162. package/lib/{chunk-TIVI2KGB.mjs → chunk-VNNDYPBL.mjs} +1 -1
  163. package/lib/{chunk-J3FJ3BWE.mjs → chunk-VRBETPHY.mjs} +1 -1
  164. package/lib/{chunk-UX4AOSMU.mjs → chunk-VT6P3X6R.mjs} +1 -1
  165. package/lib/{chunk-CUOWQMGW.mjs → chunk-VUTQY76O.mjs} +1 -1
  166. package/lib/chunk-WF5S4FW5.mjs +7 -0
  167. package/lib/{chunk-JHJDDQDE.mjs → chunk-WJGK6VGU.mjs} +1 -1
  168. package/lib/{chunk-IZREPWYQ.mjs → chunk-WJHMB3SL.mjs} +1 -1
  169. package/lib/{chunk-XZRON54U.mjs → chunk-WQCXOZEJ.mjs} +1 -1
  170. package/lib/{chunk-N2MXYD67.mjs → chunk-WVVFR4E3.mjs} +1 -1
  171. package/lib/{chunk-GG5I52UT.mjs → chunk-XBYXT74L.mjs} +1 -1
  172. package/lib/chunk-XJE3LJHP.mjs +7 -0
  173. package/lib/{chunk-3QCUSZIZ.mjs → chunk-XV4CVZYD.mjs} +1 -1
  174. package/lib/chunk-Y37ED7AS.mjs +7 -0
  175. package/lib/{chunk-MN3XBJPE.mjs → chunk-YGBNZYT4.mjs} +1 -1
  176. package/lib/{chunk-SBDF4AE5.mjs → chunk-YGTOX7IL.mjs} +1 -1
  177. package/lib/{chunk-SQM32AOQ.mjs → chunk-YJ27WHKR.mjs} +1 -1
  178. package/lib/chunk-YRULC27A.mjs +7 -0
  179. package/lib/{chunk-RMFU4BAL.mjs → chunk-YSVAHT4Q.mjs} +4 -4
  180. package/lib/chunk-YTOTMJTY.mjs +15 -0
  181. package/lib/{chunk-SU24AE3H.mjs → chunk-YZKZC62O.mjs} +1 -1
  182. package/lib/{chunk-LJNRN7MY.mjs → chunk-YZQN7BRB.mjs} +1 -1
  183. package/lib/{chunk-NMF55UBQ.mjs → chunk-Z5IUK2QO.mjs} +1 -1
  184. package/lib/{chunk-6ZWY36LK.mjs → chunk-ZEGSMW5A.mjs} +1 -1
  185. package/lib/{chunk-YV7JYHJP.mjs → chunk-ZIKLQZBG.mjs} +1 -1
  186. package/lib/chunk-ZVU7MD2S.mjs +7 -0
  187. package/lib/sandforge-autopilot.mjs +33 -27
  188. package/lib/sandforge-backup.mjs +19 -19
  189. package/lib/sandforge-checkpoint.mjs +1 -1
  190. package/lib/sandforge-cleanup.mjs +1 -1
  191. package/lib/sandforge-clone.mjs +1 -1
  192. package/lib/sandforge-compare.mjs +29 -16
  193. package/lib/sandforge-dataops.mjs +1 -1
  194. package/lib/sandforge-empty.mjs +11 -13
  195. package/lib/sandforge-env.mjs +105 -105
  196. package/lib/sandforge-frozen.mjs +1 -1
  197. package/lib/sandforge-mcp.mjs +2 -2
  198. package/lib/sandforge-monitor.mjs +1 -1
  199. package/lib/sandforge-pipeline.mjs +13 -13
  200. package/lib/sandforge-seed.mjs +1 -1
  201. package/lib/sandforge-sync.mjs +1 -1
  202. package/lib/sandforge-users.mjs +13 -15
  203. package/lib/sandforge.mjs +1 -1
  204. package/lib/sf/sandforge/dataops.mjs +2 -2
  205. package/lib/sfPlugin.mjs +1 -1
  206. package/oclif.manifest.json +1 -1
  207. package/package.json +1 -1
  208. package/lib/chunk-26EGXYZ4.mjs +0 -21
  209. package/lib/chunk-2JRVBXJL.mjs +0 -7
  210. package/lib/chunk-2METQHGG.mjs +0 -7
  211. package/lib/chunk-3XU7CEJQ.mjs +0 -7
  212. package/lib/chunk-4BQPAVMP.mjs +0 -14
  213. package/lib/chunk-4KMKOE77.mjs +0 -156
  214. package/lib/chunk-4RPA7Z52.mjs +0 -7
  215. package/lib/chunk-5C7LQXYS.mjs +0 -7
  216. package/lib/chunk-5EESNYE3.mjs +0 -8
  217. package/lib/chunk-6ZW6BLV5.mjs +0 -7
  218. package/lib/chunk-AAOMUI7S.mjs +0 -15
  219. package/lib/chunk-AIUAEBHR.mjs +0 -7
  220. package/lib/chunk-BD724WOH.mjs +0 -7
  221. package/lib/chunk-CRPLDXJU.mjs +0 -48
  222. package/lib/chunk-CSSOLHE3.mjs +0 -7
  223. package/lib/chunk-D63HEQ3B.mjs +0 -7
  224. package/lib/chunk-DN7YBILC.mjs +0 -21
  225. package/lib/chunk-DNE7JI3A.mjs +0 -11
  226. package/lib/chunk-EFHM2U4D.mjs +0 -7
  227. package/lib/chunk-EINEGS6E.mjs +0 -7
  228. package/lib/chunk-EM5EFMHA.mjs +0 -272
  229. package/lib/chunk-FH5UR35W.mjs +0 -7
  230. package/lib/chunk-FN7TOBJR.mjs +0 -7
  231. package/lib/chunk-HGJFATSI.mjs +0 -10
  232. package/lib/chunk-HOEE3PE5.mjs +0 -7
  233. package/lib/chunk-HV63UGL5.mjs +0 -7
  234. package/lib/chunk-JKFCGYJE.mjs +0 -7
  235. package/lib/chunk-KATBU46O.mjs +0 -7
  236. package/lib/chunk-LD34JNCC.mjs +0 -7
  237. package/lib/chunk-LPN4WYTP.mjs +0 -478
  238. package/lib/chunk-MAOUFJ47.mjs +0 -7
  239. package/lib/chunk-MB2DG66I.mjs +0 -13
  240. package/lib/chunk-NCASRA7L.mjs +0 -9
  241. package/lib/chunk-NEKNAILD.mjs +0 -7
  242. package/lib/chunk-NN2IO4WE.mjs +0 -7
  243. package/lib/chunk-O3ZQSWDN.mjs +0 -10
  244. package/lib/chunk-OFQOKSEW.mjs +0 -7
  245. package/lib/chunk-PP7PJXRJ.mjs +0 -341
  246. package/lib/chunk-PT2E2HFD.mjs +0 -7
  247. package/lib/chunk-PZBZ7MNC.mjs +0 -7
  248. package/lib/chunk-QBYK5XIT.mjs +0 -8
  249. package/lib/chunk-RFD6NPWJ.mjs +0 -8
  250. package/lib/chunk-RIIJJRGF.mjs +0 -7
  251. package/lib/chunk-RKTFFCNS.mjs +0 -7
  252. package/lib/chunk-RM5G4IP6.mjs +0 -19
  253. package/lib/chunk-RTPNK7OB.mjs +0 -7
  254. package/lib/chunk-RZXEO5IE.mjs +0 -7
  255. package/lib/chunk-SAHGDSZQ.mjs +0 -37
  256. package/lib/chunk-SRPWW4A2.mjs +0 -10
  257. package/lib/chunk-SVNSAHG3.mjs +0 -7
  258. package/lib/chunk-T63U4OZJ.mjs +0 -7
  259. package/lib/chunk-TE2W76II.mjs +0 -10
  260. package/lib/chunk-TEIBWMJM.mjs +0 -7
  261. package/lib/chunk-TFGJDZFE.mjs +0 -7
  262. package/lib/chunk-TG52WNGV.mjs +0 -10
  263. package/lib/chunk-TQONVFI3.mjs +0 -7
  264. package/lib/chunk-TW3N6W5Z.mjs +0 -7
  265. package/lib/chunk-UZMLPKW6.mjs +0 -7
  266. package/lib/chunk-WB2RIVO3.mjs +0 -7
  267. package/lib/chunk-WQO7RXEB.mjs +0 -926
  268. package/lib/chunk-X3MBY2RX.mjs +0 -7
  269. package/lib/chunk-XMJRXXUN.mjs +0 -7
  270. package/lib/chunk-YNMU5I7P.mjs +0 -7
  271. package/lib/chunk-YSQJKIO6.mjs +0 -7
  272. package/lib/chunk-YVVPJRZC.mjs +0 -7
  273. package/lib/chunk-ZLQHBI6V.mjs +0 -9
  274. package/lib/chunk-ZRUDYB7O.mjs +0 -7
@@ -4,7 +4,7 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{a as ae}from"./chunk-HV3TDLFR.mjs";import{a as N,b as ne,c as ie}from"./chunk-5GBO4KD5.mjs";import"./chunk-WQO7RXEB.mjs";import"./chunk-RY7WUJXH.mjs";import"./chunk-UX4AOSMU.mjs";import"./chunk-UZMLPKW6.mjs";import{a as H}from"./chunk-2METQHGG.mjs";import{c as _}from"./chunk-6FARZYMJ.mjs";import{a as de}from"./chunk-MQLTEXB7.mjs";import{m as M,p as J}from"./chunk-AAOMUI7S.mjs";import"./chunk-JHJDDQDE.mjs";import"./chunk-ULEYGOZU.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import{a as K,c as V,d as X,e as C,f as Y,g as R,h as q,i as ee,j as te,k as se,l as oe,m as re}from"./chunk-W6SLQZKQ.mjs";import{Gc as B,Pc as W}from"./chunk-RIIJJRGF.mjs";import{h as F,i as G}from"./chunk-EYFP3NA6.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-LSEM2BZH.mjs";import"./chunk-ZLQHBI6V.mjs";import"./chunk-BOGNK4LV.mjs";import{a as v}from"./chunk-4BQPAVMP.mjs";import"./chunk-RKTFFCNS.mjs";import{n as Q}from"./chunk-SAHGDSZQ.mjs";import"./chunk-32ZB5ICW.mjs";import"./chunk-TG52WNGV.mjs";import"./chunk-CSSOLHE3.mjs";import"./chunk-HGJFATSI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5EESNYE3.mjs";import"./chunk-QAXKUEJT.mjs";import"./chunk-JKFCGYJE.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-EINEGS6E.mjs";import"./chunk-QIRO4HTE.mjs";import{h as U}from"./chunk-RM5G4IP6.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-B5A4JHNN.mjs";import"./chunk-YGE4AUXG.mjs";import"./chunk-C2MHMI7U.mjs";import"./chunk-RFD6NPWJ.mjs";import"./chunk-SF52ZSIV.mjs";import{a as I}from"./chunk-AL4C3GFT.mjs";import"./chunk-P6A22FMQ.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as E}from"./chunk-XZRON54U.mjs";import"./chunk-3EOIAC2M.mjs";import"./chunk-AIUAEBHR.mjs";import"./chunk-O3ZQSWDN.mjs";import"./chunk-DNE7JI3A.mjs";import"./chunk-CI2O7WBH.mjs";import"./chunk-5T3LFDJ5.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-AX3YF7SC.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-JBOGAUGH.mjs";import"./chunk-4N425UJC.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-TWYNQ2OO.mjs";import{b as T,e as L,f as O,h as Z}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-FG4Y4ZVL.mjs";import"./chunk-Z354SAEF.mjs";import{e as z,g as P}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-THYQOG24.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-JFVY66BS.mjs";import"./chunk-GUYEXPJ4.mjs";import"./chunk-TUACWKIH.mjs";import{Wc as D,x as S}from"./chunk-CRPLDXJU.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{join as ue}from"node:path";var ge=`sandforge backup \u2014 take and restore DataOps snapshots, without the editor.
7
+ import{a as de}from"./chunk-HUOR4M2L.mjs";import{a as D,b as ie,c as ae}from"./chunk-5GBO4KD5.mjs";import"./chunk-E5FSPXYH.mjs";import"./chunk-IQ5UKRHU.mjs";import"./chunk-VT6P3X6R.mjs";import"./chunk-ALWVNR34.mjs";import{a as Q}from"./chunk-QHE2RUWX.mjs";import{c as z}from"./chunk-6FARZYMJ.mjs";import{a as ce}from"./chunk-7KHA5UIQ.mjs";import{E as J,H as F}from"./chunk-YTOTMJTY.mjs";import"./chunk-WJGK6VGU.mjs";import"./chunk-3L6DVNCR.mjs";import"./chunk-54V4FVEY.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-TZXYVMZC.mjs";import{a as V,c as X,d as Y,e as R,f as q,g as N,h as ee,i as te,j as se,k as oe,l as re,m as ne}from"./chunk-TMIV3IWH.mjs";import{Ic as W,Tc as M}from"./chunk-CJAWKLAL.mjs";import"./chunk-PE7CHD2W.mjs";import{h as G,i as H}from"./chunk-VKREON6Q.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import{b as v}from"./chunk-DDNCJVZ2.mjs";import{n as Z}from"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import{h as B}from"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import{a as I,c as O}from"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as L}from"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import{b as E,e as _,f as C,h as K}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import{e as P,g as U}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import{bd as T,x as S}from"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{join as ge}from"node:path";var fe=`sandforge backup \u2014 take and restore DataOps snapshots, without the editor.
8
8
 
9
9
  Usage:
10
10
  npx sandforge backup --org <alias> [options]
@@ -59,7 +59,7 @@ Options:
59
59
  already too
60
60
  --include-changed with --restore of the snapshot a Sync run kept: put
61
61
  back the records changed or deleted since the run too
62
- ${ie("written back")} --max-age-days <n> the retention, as sandforge.backup.maxAgeDays sets it:
62
+ ${ae("written back")} --max-age-days <n> the retention, as sandforge.backup.maxAgeDays sets it:
63
63
  snapshots taken more than <n> days ago are removed as
64
64
  the command starts, each named on stderr \u2014 the one a
65
65
  Sync run kept of what it wrote over too, which removing
@@ -108,27 +108,27 @@ records \u2014 a set of slices stopped short among them \u2014, or the restore l
108
108
  values as they are (rows the org refused, a
109
109
  snapshot that holds part of the records, or records of a Sync run's snapshot
110
110
  changed since the run, held back without --include-changed).
111
- `,pe=/^[A-Za-z][A-Za-z0-9_]{0,79}$/,fe={switches:["--list","--slices","--rewrite-all","--include-changed","--yes","--json",...N],values:["--org","--object","--where","--restore","--slice","--delete","--store","--max-records","--max-age-days"]};function b(o){process.stderr.write(`${o}
112
- `),process.exit(2)}function we(o,e){let s={};for(let r of o){let n=r.indexOf(":"),t=n>0?r.slice(0,n).trim():"",i=n>0?r.slice(n+1).trim():"";(!pe.test(t)||i==="")&&b(`Not a filter --where can take: "${r}". Give the object, a colon and the condition, as --where "Contact:CreatedDate >= 2025-01-01T00:00:00Z".`);let l=e.find(m=>m.toLowerCase()===t.toLowerCase());l===void 0&&b(`--where names ${t}, which the line does not back up: give it with --object ${t}.`),s[l]!==void 0&&b(`Give one --where per object: ${l} is given two.`),z(i)||b(`Not a filter --where can take: "${i}". ${P}`),s[l]=i}return s}function me(o){let e=o.slice(2);(e.includes("--help")||e.includes("-h"))&&(process.stdout.write(ge),process.exit(0)),T(e,fe);let s=(g,A)=>{let w=e.indexOf(g);return w>=0&&w+1<e.length?e[w+1]:A},r=g=>{let A=[];for(let w=0;w<e.length;w++)e[w]===g&&w+1<e.length&&A.push(e[w+1]);return A},n=s("--org"),t=e.includes("--list");!n&&!t&&(process.stderr.write(`Missing --org. Run with --help.
111
+ `,ue=/^[A-Za-z][A-Za-z0-9_]{0,79}$/,we={switches:["--list","--slices","--rewrite-all","--include-changed","--yes","--json",...D],values:["--org","--object","--where","--restore","--slice","--delete","--store","--max-records","--max-age-days"]};function b(o){process.stderr.write(`${o}
112
+ `),process.exit(2)}function me(o,e){let s={};for(let r of o){let n=r.indexOf(":"),t=n>0?r.slice(0,n).trim():"",i=n>0?r.slice(n+1).trim():"";(!ue.test(t)||i==="")&&b(`Not a filter --where can take: "${r}". Give the object, a colon and the condition, as --where "Contact:CreatedDate >= 2025-01-01T00:00:00Z".`);let l=e.find(m=>m.toLowerCase()===t.toLowerCase());l===void 0&&b(`--where names ${t}, which the line does not back up: give it with --object ${t}.`),s[l]!==void 0&&b(`Give one --where per object: ${l} is given two.`),P(i)||b(`Not a filter --where can take: "${i}". ${U}`),s[l]=i}return s}function be(o){let e=o.slice(2);(e.includes("--help")||e.includes("-h"))&&(process.stdout.write(fe),process.exit(0)),E(e,we);let s=(g,A)=>{let w=e.indexOf(g);return w>=0&&w+1<e.length?e[w+1]:A},r=g=>{let A=[];for(let w=0;w<e.length;w++)e[w]===g&&w+1<e.length&&A.push(e[w+1]);return A},n=s("--org"),t=e.includes("--list");!n&&!t&&(process.stderr.write(`Missing --org. Run with --help.
113
113
  `),process.exit(2));let i=r("--object"),l=s("--restore"),m=r("--delete"),y=[i.length>0,t,l!==void 0,m.length>0].filter(Boolean).length;y===0&&(process.stderr.write(`Nothing to do: give --object, --list, --restore or --delete.
114
114
  `),process.exit(2)),y>1&&(process.stderr.write(`Give one of --object, --list, --restore or --delete.
115
- `),process.exit(2));for(let g of i)pe.test(g)||(process.stderr.write(`Not an SObject API name: "${g}"
116
- `),process.exit(2));for(let g of m)/^[A-Za-z0-9_-]{1,200}$/.test(g)||b(`Not a snapshot's id: "${g}"`);let k=C(e,"--where"),$=e.includes("--slices");(k.length>0||$)&&i.length===0&&b(`${k.length>0?"--where":"--slices"} goes with --object: it says how the objects a snapshot reads are read.`);let c=we(k,i),d=C(e,"--slice");d.length>0&&l===void 0&&b("--slice goes with --restore: it names the slices of a set to put back. A backup in slices is --slices.");let h=s("--max-records");h!==void 0&&!/^[1-9]\d*$/.test(h)&&(process.stderr.write(`Not a number of records: "${h}"
115
+ `),process.exit(2));for(let g of i)ue.test(g)||(process.stderr.write(`Not an SObject API name: "${g}"
116
+ `),process.exit(2));for(let g of m)/^[A-Za-z0-9_-]{1,200}$/.test(g)||b(`Not a snapshot's id: "${g}"`);let k=R(e,"--where"),$=e.includes("--slices");(k.length>0||$)&&i.length===0&&b(`${k.length>0?"--where":"--slices"} goes with --object: it says how the objects a snapshot reads are read.`);let c=me(k,i),d=R(e,"--slice");d.length>0&&l===void 0&&b("--slice goes with --restore: it names the slices of a set to put back. A backup in slices is --slices.");let h=s("--max-records");h!==void 0&&!/^[1-9]\d*$/.test(h)&&(process.stderr.write(`Not a number of records: "${h}"
117
117
  `),process.exit(2));let p=e.includes("--rewrite-all");p&&l===void 0&&(process.stderr.write(`--rewrite-all goes with --restore.
118
118
  `),process.exit(2));let u=e.includes("--include-changed");u&&l===void 0&&(process.stderr.write(`--include-changed goes with --restore.
119
- `),process.exit(2));let a=X(s("--max-age-days")),f=ne(e),j=N.filter(g=>e.includes(g));j.length>0&&l===void 0&&(process.stderr.write(`${j.join(", ")} go${j.length===1?"es":""} with --restore.
120
- `),process.exit(2));let x={objects:i,...Object.keys(c).length>0?{wheres:c}:{},slices:$,restoreId:l,...d.length>0?{restoreSlices:Y(d)}:{},...m.length>0?{deleteIds:m}:{},storeDir:s("--store",K())??"",...h!==void 0?{maxRecords:Number(h)}:{},rewriteAll:p,includeChanged:u,...a!==void 0?{maxAgeDays:a}:{},yes:e.includes("--yes"),json:e.includes("--json"),accord:f};return n?t?{...x,list:!0,org:n}:{...x,list:!1,org:n}:{...x,list:!0}}async function be(o=process.argv){let e=me(o),s=c=>{process[e.json?"stderr":"stdout"].write(`${c}
121
- `)},r=V(e.storeDir);if(r!==void 0){process.stderr.write(`${r}
122
- `),process.exitCode=1;return}s(`store: ${e.storeDir}`);let n=Q(ue(e.storeDir,"snapshots.json"));if(e.list){let c=n.getKeysByPrefix("backup:").filter(a=>!a.slice(7).includes(":")).map(a=>n.get(a)).filter(a=>a.origin!=="slice"),d=e.org!==void 0?le(c,e.org):c,h=se(n),p=e.org!==void 0?le(h,e.org):h,u=B({getSandforgeSetting:R(e)});if(e.json){process.stdout.write(`${JSON.stringify(Ae(d,p,u),null,2)}
123
- `);return}d.length===0&&p.length===0&&s(e.org!==void 0?`No snapshot of ${e.org} in this store.`:"No snapshot in this store.");for(let a of d.map(ke))s(a);p.length>0&&s("sets of slices, each restored and deleted whole:");for(let a of p)s(` ${re(a,u)}`);return}let t=[];if(e.deleteIds){let c=await ce(e,n,s,t),d=`cli-delete-${Date.now()}`;await c.handle({id:d,type:"backup:delete",payload:{orgId:e.org,operationIds:e.deleteIds}});let h=t.find(a=>a.correlationId===d);if(e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
124
- `),h?.type!=="backup:delete:result"){process.exitCode=1;return}let p=(h.payload?.deleted??[]).filter(a=>e.deleteIds?.includes(a));for(let a of p)s(`deleted ${a}`);let u=e.deleteIds.filter(a=>!p.includes(a));u.length>0&&(process.stderr.write(`No snapshot or set ${u.join(", ")} of ${e.org} in ${e.storeDir}: nothing deleted for ${u.length===1?"it":"them"}. "${I("backup")} --list --org ${e.org} --store ${e.storeDir}" names those it keeps.
125
- `),process.exitCode=1);return}let i=await E(e.org),l=await new de().validateConnection(i.accessToken,i.instanceUrl),m={alias:i.alias,orgType:D({isSandbox:l.isSandbox,edition:l.orgType}),metadata:{apiVersion:"66.0",edition:l.orgType}},y=await ce(e,n,s,t,{typed:m,session:i}),k=c=>t.find(d=>d.correlationId===c);if(e.restoreId){let c=ee(n,e.restoreId,{...e.restoreSlices?{slices:e.restoreSlices}:{},rewriteAll:e.rewriteAll});c||(process.stderr.write(`No snapshot "${e.restoreId}" in ${e.storeDir}. "${I("backup")} --list --org ${e.org} --store ${e.storeDir}" names those it keeps; a snapshot taken with another --store, or with SANDFORGE_JOURNAL_DIR set otherwise, is restored with that --store. Nothing was written.
119
+ `),process.exit(2));let a=Y(s("--max-age-days")),f=ie(e),j=D.filter(g=>e.includes(g));j.length>0&&l===void 0&&(process.stderr.write(`${j.join(", ")} go${j.length===1?"es":""} with --restore.
120
+ `),process.exit(2));let x={objects:i,...Object.keys(c).length>0?{wheres:c}:{},slices:$,restoreId:l,...d.length>0?{restoreSlices:q(d)}:{},...m.length>0?{deleteIds:m}:{},storeDir:s("--store",V())??"",...h!==void 0?{maxRecords:Number(h)}:{},rewriteAll:p,includeChanged:u,...a!==void 0?{maxAgeDays:a}:{},yes:e.includes("--yes"),json:e.includes("--json"),accord:f};return n?t?{...x,list:!0,org:n}:{...x,list:!1,org:n}:{...x,list:!0}}async function ye(o=process.argv){let e=be(o),s=c=>{process[e.json?"stderr":"stdout"].write(`${c}
121
+ `)},r=X(e.storeDir);if(r!==void 0){process.stderr.write(`${r}
122
+ `),process.exitCode=1;return}s(`store: ${e.storeDir}`);let n=Z(ge(e.storeDir,"snapshots.json"));if(e.list){let c=n.getKeysByPrefix("backup:").filter(a=>!a.slice(7).includes(":")).map(a=>n.get(a)).filter(a=>a.origin!=="slice"),d=e.org!==void 0?he(c,e.org):c,h=oe(n),p=e.org!==void 0?he(h,e.org):h,u=M({getSandforgeSetting:N(e)});if(e.json){process.stdout.write(`${JSON.stringify(Se(d,p,u),null,2)}
123
+ `);return}d.length===0&&p.length===0&&s(e.org!==void 0?`No snapshot of ${e.org} in this store.`:"No snapshot in this store.");for(let a of d.map($e))s(a);p.length>0&&s("sets of slices, each restored and deleted whole:");for(let a of p)s(` ${ne(a,u)}`);return}let t=[];if(e.deleteIds){let c=await le(e,n,s,t),d=`cli-delete-${Date.now()}`;await c.handle({id:d,type:"backup:delete",payload:{orgId:e.org,operationIds:e.deleteIds}});let h=t.find(a=>a.correlationId===d);if(e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
124
+ `),h?.type!=="backup:delete:result"){process.exitCode=1;return}let p=(h.payload?.deleted??[]).filter(a=>e.deleteIds?.includes(a));for(let a of p)s(`deleted ${a}`);let u=e.deleteIds.filter(a=>!p.includes(a));u.length>0&&(process.stderr.write(`No snapshot or set ${u.join(", ")} of ${e.org} in ${e.storeDir}: nothing deleted for ${u.length===1?"it":"them"}. "${I("backup")} --list --org ${e.org} --store ${O(e.storeDir)}" names those it keeps.
125
+ `),process.exitCode=1);return}let i=await L(e.org),l=await new ce().validateConnection(i.accessToken,i.instanceUrl),m={alias:i.alias,orgType:T({isSandbox:l.isSandbox,edition:l.orgType}),metadata:{apiVersion:"66.0",edition:l.orgType}},y=await le(e,n,s,t,{typed:m,session:i}),k=c=>t.find(d=>d.correlationId===c);if(e.restoreId){let c=te(n,e.restoreId,{...e.restoreSlices?{slices:e.restoreSlices}:{},rewriteAll:e.rewriteAll});c||(process.stderr.write(`No snapshot "${e.restoreId}" in ${e.storeDir}. "${I("backup")} --list --org ${e.org} --store ${O(e.storeDir)}" names those it keeps; a snapshot taken with another --store, or with SANDFORGE_JOURNAL_DIR set otherwise, is restored with that --store. Nothing was written.
126
126
  `),process.exit(1));let d=`cli-restore-automation-${Date.now()}`;await y.handle({id:d,type:"dataops:automation",payload:{orgId:e.org,act:"restore",objects:c.objects,...e.accord}});let h=k(d);if(h?.type!=="dataops:automation:response"){process.exitCode=1,e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
127
- `);return}let p=h.payload;for(let f of p.lines)s(f);if(p.refusals.length>0){for(let f of p.refusals)process.stderr.write(`${_(f)}
127
+ `);return}let p=h.payload;for(let f of p.lines)s(f);if(p.refusals.length>0){for(let f of p.refusals)process.stderr.write(`${z(f)}
128
128
  `);process.exitCode=1,e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
129
- `);return}if(!e.yes&&!await v(`Upsert ${c.words} back into ${e.org}? ${c.totalRecords} record(s) with these Ids will have their fields overwritten.`)){s("Nothing written.");return}s(`restoring ${e.restoreId} into ${e.org}${e.rewriteAll?", every row written back":""}\u2026`),await y.handle({id:`cli-restore-${Date.now()}`,type:"dataops:rollback",payload:{orgId:e.org,operationId:e.restoreId,...e.rewriteAll?{rewriteAll:!0}:{},...e.includeChanged?{includeChanged:!0}:{},...e.restoreSlices?{slices:e.restoreSlices}:{},...e.accord}});let u=t.find(f=>f.type==="dataops:rollback:response"),a=u?.payload??{};typeof a.message=="string"&&s(a.message);for(let f of te(a))s(f);u&&O(L(a))}else{s(`snapshot ${e.org}: ${e.objects.map(d=>`${d}${e.wheres?.[d]!==void 0?` (where ${e.wheres[d]})`:""}`).join(", ")}${e.slices?", in slices":""}`),await y.handle({id:`cli-backup-${Date.now()}`,type:"backup:execute",payload:{orgId:e.org,objects:e.objects,...e.wheres?{wheres:e.wheres}:{},...e.slices?{slices:!0}:{}}});let c=t.find(d=>d.type==="dataops:backup:response");if(c){let d=Se(c.payload??{});s(d.line),O(d.exitCode)}}if(e.json){process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
129
+ `);return}if(!e.yes&&!await v(`Upsert ${c.words} back into ${e.org}? ${c.totalRecords} record(s) with these Ids will have their fields overwritten.`)){s("Nothing written.");return}s(`restoring ${e.restoreId} into ${e.org}${e.rewriteAll?", every row written back":""}\u2026`),await y.handle({id:`cli-restore-${Date.now()}`,type:"dataops:rollback",payload:{orgId:e.org,operationId:e.restoreId,...e.rewriteAll?{rewriteAll:!0}:{},...e.includeChanged?{includeChanged:!0}:{},...e.restoreSlices?{slices:e.restoreSlices}:{},...e.accord}});let u=t.find(f=>f.type==="dataops:rollback:response"),a=u?.payload??{};typeof a.message=="string"&&s(a.message);for(let f of se(a))s(f);u&&C(_(a))}else{s(`snapshot ${e.org}: ${e.objects.map(d=>`${d}${e.wheres?.[d]!==void 0?` (where ${e.wheres[d]})`:""}`).join(", ")}${e.slices?", in slices":""}`),await y.handle({id:`cli-backup-${Date.now()}`,type:"backup:execute",payload:{orgId:e.org,objects:e.objects,...e.wheres?{wheres:e.wheres}:{},...e.slices?{slices:!0}:{}}});let c=t.find(d=>d.type==="dataops:backup:response");if(c){let d=je(c.payload??{});s(d.line),C(d.exitCode)}}if(e.json){process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
130
130
  `);return}let $=t[t.length-1];$&&s(`
131
- last message: ${String($.type)}`)}async function ce(o,e,s,r,n){let t=new J({log:i=>s(` ${i}`),broker:{postToWebview:i=>{r.push(i);let l=String(i.type??"");(l.endsWith(":error")||l.includes("failed"))&&(s(` ! ${JSON.stringify(i.payload??i)}`),process.exitCode=1)}},orgManager:{getOrg:()=>n?.typed},orgRegistry:{getCredentials:async()=>{if(!n)throw new Error("This command reaches no org.");return{accessToken:n.session.accessToken,instanceUrl:n.session.instanceUrl}}},configStore:e,services:{getSandforgeSetting:R(o)},infraServices:{productionGuard:ae(s,o.org??""),confirmRestoreIntoReplacedOrg:i=>o.yes?(process.stderr.write(`${$e(i)}
132
- `),Promise.resolve(!1)):v(`${i.alias} answered as org ${i.backedUpFrom} when this snapshot was taken and answers as org ${i.now} now. Write its saved values into the org it is now?`)},nextId:()=>`cli-${Date.now()}-${Math.random().toString(36).slice(2,8)}`});return t.setExpiryListener(i=>process.stderr.write(`${q(i)}
133
- `)),t.setRunKeyStore(M(o.storeDir)),t.setBackupRecordStore(new G(F(o.storeDir))),await t.swept(),t.setSyncRuns(U(H())),t}function ye(o,e){return o!==void 0&&e!==void 0&&o.length>=15&&o.slice(0,15)===e.slice(0,15)}function le(o,e){let s=o.flatMap(r=>r.orgId===e&&r.organizationId!==void 0?[r.organizationId]:[]);return o.filter(r=>r.orgId===e||s.some(n=>ye(n,r.organizationId)))}function ke(o){let e=o.objects.map(s=>`${s.objectApiName}:${s.recordCount}`+(s.stoppedAt!==void 0?`/${s.orgCount??"?"}(${s.stoppedAt})`:"")+(s.where!==void 0?`(where ${s.where})`:""));return`${o.operationId} ${o.timestamp} ${o.orgId??"?"} ${o.totalRecords} record(s)${o.status==="failed"?" failed part-way":""} ${e.join(" ")}`}function $e(o){return`${o.alias} answered as org ${o.backedUpFrom} when this snapshot was taken, and answers as org ${o.now} now: a sandbox refreshed since, or another org. --yes does not answer whether to write the snapshot's values into the org it is now, and counts as no: nothing is written. Run the restore again without --yes, in a terminal, to answer it.`}function Ae(o,e=[],s=0){return{tool:"sandforge-backup",...e.length>0?{sets:e.map(r=>{let n=oe(r,s);return{...W(r),...r.organizationId!==void 0?{organizationId:r.organizationId}:{},...n!==void 0?{expiresOn:n}:{}}})}:{},snapshots:o.map(r=>({operationId:r.operationId,timestamp:r.timestamp,...r.orgId!==void 0?{orgId:r.orgId}:{},...r.organizationId!==void 0?{organizationId:r.organizationId}:{},totalRecords:r.totalRecords,...r.status!==void 0?{status:r.status}:{},objects:r.objects}))}}function Se(o){let e=String(o.operationId??"?"),s=(o.objects??[]).filter(t=>t.truncated===!0);if(o.slices!==void 0)return je(o.slices,s);let r=`snapshot ${e}: ${String(o.totalRecords??0)} record(s)`;if(o.partial!==!0&&s.length===0)return{line:`${r} (--restore ${e} puts them back)`,exitCode:0};let n=s.map(t=>`${t.objectApiName} ${t.recordCount} of ${t.orgCount??"?"}`+(t.stoppedAt!==void 0?` (${t.stoppedAt})`:""));return{line:`${r} (partial: ${n.join(", ")||"an object holds fewer records than the org"})`+xe(s),exitCode:3}}function je(o,e){let s=o.objects.flatMap(t=>t.slices),r=s.reduce((t,i)=>t+i.rows,0),n=`set ${o.setId}: ${r} record(s) in ${s.length} slice(s) of up to ${o.size}`+(s.length>0?` (--restore ${o.setId} puts them back)`:"");return o.state==="done"&&e.length===0?{line:n,exitCode:0}:{line:`${n}, partial: ${e.map(t=>t.objectApiName).join(", ")||"an object"} not read to its end, its reason above. The same line takes a new set of every record`,exitCode:3}}function xe(o){let e=o.filter(t=>t.stoppedAt==="cap"&&t.orgCount!==void 0),s=e.filter(t=>(t.orgCount??0)<=S),r=e.filter(t=>(t.orgCount??0)>S),n=[];if(s.length>0){let t=Math.max(...s.map(i=>i.orgCount??0));n.push(`--max-records ${t} takes ${s.map(i=>i.objectApiName).join(", ")} whole, or --slices takes it in slices of --max-records records, listed and restored as one set`)}if(r.length>0){let t=r.map(i=>i.objectApiName).join(", ");n.push(`No snapshot holds more than ${S} records of one object: ${t} ${r.length===1?"is":"are"} not whole, and a restore puts back only what it holds. --slices takes it whole, in slices of --max-records records, each a snapshot of its own, listed and restored as one set`)}return o.some(t=>t.stoppedAt==="not_reached"||t.stoppedAt==="failure")&&n.push("Run it again for an object not reached"),n.length>0?`. ${n.join(". ")}`:""}process.argv[1]?.includes("sandforge-backup")&&(Z(),be().then(()=>process.exit(process.exitCode??0)).catch(o=>{process.stderr.write(`${o instanceof Error?o.message:String(o)}
134
- `),process.exit(1)}));export{be as main,me as parseArgs,$e as replacedOrgYesWords,Ae as snapshotListing,Se as snapshotTaken,we as wheresOf};
131
+ last message: ${String($.type)}`)}async function le(o,e,s,r,n){let t=new F({log:i=>s(` ${i}`),broker:{postToWebview:i=>{r.push(i);let l=String(i.type??"");(l.endsWith(":error")||l.includes("failed"))&&(s(` ! ${JSON.stringify(i.payload??i)}`),process.exitCode=1)}},orgManager:{getOrg:()=>n?.typed},orgRegistry:{getCredentials:async()=>{if(!n)throw new Error("This command reaches no org.");return{accessToken:n.session.accessToken,instanceUrl:n.session.instanceUrl}}},configStore:e,services:{getSandforgeSetting:N(o)},infraServices:{productionGuard:de(s,o.org??""),confirmRestoreIntoReplacedOrg:i=>o.yes?(process.stderr.write(`${Ae(i)}
132
+ `),Promise.resolve(!1)):v(`${i.alias} answered as org ${i.backedUpFrom} when this snapshot was taken and answers as org ${i.now} now. Write its saved values into the org it is now?`)},nextId:()=>`cli-${Date.now()}-${Math.random().toString(36).slice(2,8)}`});return t.setExpiryListener(i=>process.stderr.write(`${ee(i)}
133
+ `)),t.setRunKeyStore(J(o.storeDir)),t.setBackupRecordStore(new H(G(o.storeDir))),await t.swept(),t.setSyncRuns(B(Q())),t}function ke(o,e){return o!==void 0&&e!==void 0&&o.length>=15&&o.slice(0,15)===e.slice(0,15)}function he(o,e){let s=o.flatMap(r=>r.orgId===e&&r.organizationId!==void 0?[r.organizationId]:[]);return o.filter(r=>r.orgId===e||s.some(n=>ke(n,r.organizationId)))}function $e(o){let e=o.objects.map(s=>`${s.objectApiName}:${s.recordCount}`+(s.stoppedAt!==void 0?`/${s.orgCount??"?"}(${s.stoppedAt})`:"")+(s.where!==void 0?`(where ${s.where})`:""));return`${o.operationId} ${o.timestamp} ${o.orgId??"?"} ${o.totalRecords} record(s)${o.status==="failed"?" failed part-way":""} ${e.join(" ")}`}function Ae(o){return`${o.alias} answered as org ${o.backedUpFrom} when this snapshot was taken, and answers as org ${o.now} now: a sandbox refreshed since, or another org. --yes does not answer whether to write the snapshot's values into the org it is now, and counts as no: nothing is written. Run the restore again without --yes, in a terminal, to answer it.`}function Se(o,e=[],s=0){return{tool:"sandforge-backup",...e.length>0?{sets:e.map(r=>{let n=re(r,s);return{...W(r),...r.organizationId!==void 0?{organizationId:r.organizationId}:{},...n!==void 0?{expiresOn:n}:{}}})}:{},snapshots:o.map(r=>({operationId:r.operationId,timestamp:r.timestamp,...r.orgId!==void 0?{orgId:r.orgId}:{},...r.organizationId!==void 0?{organizationId:r.organizationId}:{},totalRecords:r.totalRecords,...r.status!==void 0?{status:r.status}:{},objects:r.objects}))}}function je(o){let e=String(o.operationId??"?"),s=(o.objects??[]).filter(t=>t.truncated===!0);if(o.slices!==void 0)return xe(o.slices,s);let r=`snapshot ${e}: ${String(o.totalRecords??0)} record(s)`;if(o.partial!==!0&&s.length===0)return{line:`${r} (--restore ${e} puts them back)`,exitCode:0};let n=s.map(t=>`${t.objectApiName} ${t.recordCount} of ${t.orgCount??"?"}`+(t.stoppedAt!==void 0?` (${t.stoppedAt})`:""));return{line:`${r} (partial: ${n.join(", ")||"an object holds fewer records than the org"})`+Ie(s),exitCode:3}}function xe(o,e){let s=o.objects.flatMap(t=>t.slices),r=s.reduce((t,i)=>t+i.rows,0),n=`set ${o.setId}: ${r} record(s) in ${s.length} slice(s) of up to ${o.size}`+(s.length>0?` (--restore ${o.setId} puts them back)`:"");return o.state==="done"&&e.length===0?{line:n,exitCode:0}:{line:`${n}, partial: ${e.map(t=>t.objectApiName).join(", ")||"an object"} not read to its end, its reason above. The same line takes a new set of every record`,exitCode:3}}function Ie(o){let e=o.filter(t=>t.stoppedAt==="cap"&&t.orgCount!==void 0),s=e.filter(t=>(t.orgCount??0)<=S),r=e.filter(t=>(t.orgCount??0)>S),n=[];if(s.length>0){let t=Math.max(...s.map(i=>i.orgCount??0));n.push(`--max-records ${t} takes ${s.map(i=>i.objectApiName).join(", ")} whole, or --slices takes it in slices of --max-records records, listed and restored as one set`)}if(r.length>0){let t=r.map(i=>i.objectApiName).join(", ");n.push(`No snapshot holds more than ${S} records of one object: ${t} ${r.length===1?"is":"are"} not whole, and a restore puts back only what it holds. --slices takes it whole, in slices of --max-records records, each a snapshot of its own, listed and restored as one set`)}return o.some(t=>t.stoppedAt==="not_reached"||t.stoppedAt==="failure")&&n.push("Run it again for an object not reached"),n.length>0?`. ${n.join(". ")}`:""}process.argv[1]?.includes("sandforge-backup")&&(K(),ye().then(()=>process.exit(process.exitCode??0)).catch(o=>{process.stderr.write(`${o instanceof Error?o.message:String(o)}
134
+ `),process.exit(1)}));export{ye as main,be as parseArgs,Ae as replacedOrgYesWords,Se as snapshotListing,je as snapshotTaken,me as wheresOf};
@@ -4,4 +4,4 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{A as D,B as E,C as F,D as G,a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B,z as C}from"./chunk-LPN4WYTP.mjs";import"./chunk-FN7TOBJR.mjs";import"./chunk-3XU7CEJQ.mjs";import"./chunk-MB2DG66I.mjs";import{b as a,c as b,d as c}from"./chunk-NCASRA7L.mjs";import"./chunk-TE2W76II.mjs";import"./chunk-NZJXEULY.mjs";import"./chunk-DCZYWMSA.mjs";import"./chunk-YZKE6D3K.mjs";import"./chunk-EM5EFMHA.mjs";import"./chunk-PP7PJXRJ.mjs";import"./chunk-INIQ23K6.mjs";import"./chunk-RC25QQVF.mjs";import"./chunk-26EGXYZ4.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-3QCUSZIZ.mjs";import"./chunk-KYLHS74X.mjs";import"./chunk-FBYFCKPG.mjs";import"./chunk-ZRUDYB7O.mjs";import"./chunk-DN7YBILC.mjs";import"./chunk-VLAU5QQT.mjs";import"./chunk-TSTCHIBU.mjs";import"./chunk-U4S27YRP.mjs";import"./chunk-YTBM3TSW.mjs";import"./chunk-GG5I52UT.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-SKGAERV4.mjs";import"./chunk-MRN72UEO.mjs";import"./chunk-A3QNSALB.mjs";import"./chunk-5C7LQXYS.mjs";import"./chunk-BRN42U26.mjs";import"./chunk-VPGX5Z5D.mjs";import"./chunk-55VBV2WK.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-TFGJDZFE.mjs";import"./chunk-G6IYOZEH.mjs";import"./chunk-45375WT5.mjs";import"./chunk-DCJBP3LE.mjs";import"./chunk-YV7JYHJP.mjs";import"./chunk-2JRVBXJL.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-HV3TDLFR.mjs";import"./chunk-NMF55UBQ.mjs";import"./chunk-TW3N6W5Z.mjs";import"./chunk-WQO7RXEB.mjs";import"./chunk-RY7WUJXH.mjs";import"./chunk-UX4AOSMU.mjs";import"./chunk-UZMLPKW6.mjs";import"./chunk-2METQHGG.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-MQLTEXB7.mjs";import"./chunk-AAOMUI7S.mjs";import"./chunk-JHJDDQDE.mjs";import"./chunk-ULEYGOZU.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-W6SLQZKQ.mjs";import"./chunk-RIIJJRGF.mjs";import"./chunk-EYFP3NA6.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-LSEM2BZH.mjs";import"./chunk-ZLQHBI6V.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-4BQPAVMP.mjs";import"./chunk-RKTFFCNS.mjs";import"./chunk-SAHGDSZQ.mjs";import"./chunk-32ZB5ICW.mjs";import"./chunk-TG52WNGV.mjs";import"./chunk-CSSOLHE3.mjs";import"./chunk-HGJFATSI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5EESNYE3.mjs";import"./chunk-QAXKUEJT.mjs";import"./chunk-JKFCGYJE.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-EINEGS6E.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-RM5G4IP6.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-B5A4JHNN.mjs";import"./chunk-YGE4AUXG.mjs";import"./chunk-C2MHMI7U.mjs";import"./chunk-RFD6NPWJ.mjs";import"./chunk-SF52ZSIV.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-P6A22FMQ.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-XZRON54U.mjs";import"./chunk-3EOIAC2M.mjs";import"./chunk-AIUAEBHR.mjs";import"./chunk-O3ZQSWDN.mjs";import"./chunk-DNE7JI3A.mjs";import"./chunk-CI2O7WBH.mjs";import"./chunk-5T3LFDJ5.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-AX3YF7SC.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-JBOGAUGH.mjs";import"./chunk-4N425UJC.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-TWYNQ2OO.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-FG4Y4ZVL.mjs";import"./chunk-Z354SAEF.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-THYQOG24.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-JFVY66BS.mjs";import"./chunk-GUYEXPJ4.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-CRPLDXJU.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{z as acceptanceRefusal,f as checkpointsOf,d as defaultName,y as heldObjectsOrStop,h as invalidRefusal,w as keepsOutside,x as keptLines,q as linkWritesOf,k as listEntryJson,j as listLines,F as main,r as orgDiffers,e as parseArgs,u as previewExitCode,t as previewJson,s as previewLines,a as previewTotals,i as replayCommandFor,p as requestsLine,g as resolveCheckpoint,E as resultExitCode,D as resultJson,B as rewindLines,A as rewindQuestion,c as rewindStepsOf,l as scopeJson,n as scopeLines,b as selectionDiff,v as selectionLines,o as takeLines,m as takeRefusalWords,G as undoLine,C as undoLines};
7
+ import{A as D,B as E,C as F,D as G,E as H,a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B,z as C}from"./chunk-6NG7C2U3.mjs";import"./chunk-RWVX7XSD.mjs";import"./chunk-SOOTWGMQ.mjs";import"./chunk-O6FHK6NQ.mjs";import"./chunk-GFB2DNCB.mjs";import{b as a,c as b,e as c}from"./chunk-JFXQZPRY.mjs";import"./chunk-BBZUGKBZ.mjs";import"./chunk-P4YOHLZ4.mjs";import"./chunk-35IJ4WEU.mjs";import"./chunk-A2TXLAC3.mjs";import"./chunk-PBHDPTT6.mjs";import"./chunk-INIQ23K6.mjs";import"./chunk-SUIPDW5O.mjs";import"./chunk-VA6EEI6X.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-XV4CVZYD.mjs";import"./chunk-BLMJ4WVI.mjs";import"./chunk-4NSXPONF.mjs";import"./chunk-TAN2CIRI.mjs";import"./chunk-AXTB2HJS.mjs";import"./chunk-NCCHOV2N.mjs";import"./chunk-2LSGWTWX.mjs";import"./chunk-LHNAR6FC.mjs";import"./chunk-XBYXT74L.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-UM2B4GR7.mjs";import"./chunk-2YJJTQNC.mjs";import"./chunk-4VLP6RHC.mjs";import"./chunk-YRULC27A.mjs";import"./chunk-GYDTM62J.mjs";import"./chunk-5JMQXHJ2.mjs";import"./chunk-HLROVOR6.mjs";import"./chunk-WF5S4FW5.mjs";import"./chunk-FV6MOSHD.mjs";import"./chunk-T542Z54E.mjs";import"./chunk-DO6PSHQZ.mjs";import"./chunk-ZIKLQZBG.mjs";import"./chunk-FYG47CNA.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-HUOR4M2L.mjs";import"./chunk-Z5IUK2QO.mjs";import"./chunk-TLX45X5U.mjs";import"./chunk-E5FSPXYH.mjs";import"./chunk-IQ5UKRHU.mjs";import"./chunk-VT6P3X6R.mjs";import"./chunk-ALWVNR34.mjs";import"./chunk-QHE2RUWX.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-ON7Y63FK.mjs";import"./chunk-7KHA5UIQ.mjs";import"./chunk-YTOTMJTY.mjs";import"./chunk-WJGK6VGU.mjs";import"./chunk-3L6DVNCR.mjs";import"./chunk-54V4FVEY.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-TZXYVMZC.mjs";import"./chunk-TMIV3IWH.mjs";import"./chunk-CJAWKLAL.mjs";import"./chunk-PE7CHD2W.mjs";import"./chunk-VKREON6Q.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-DDNCJVZ2.mjs";import"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{A as acceptanceRefusal,f as checkpointsOf,d as defaultName,z as heldObjectsOrStop,h as invalidRefusal,x as keepsOutside,v as keptForOutsideLine,y as keptLines,q as linkWritesOf,k as listEntryJson,j as listLines,G as main,r as orgDiffers,e as parseArgs,u as previewExitCode,t as previewJson,s as previewLines,a as previewTotals,i as replayCommandFor,p as requestsLine,g as resolveCheckpoint,F as resultExitCode,E as resultJson,C as rewindLines,B as rewindQuestion,c as rewindStepsOf,l as scopeJson,n as scopeLines,b as selectionDiff,w as selectionLines,o as takeLines,m as takeRefusalWords,H as undoLine,D as undoLines};
@@ -4,7 +4,7 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{c as k}from"./chunk-NMF55UBQ.mjs";import{a as Z,b as Q,c as K,d as V}from"./chunk-5GBO4KD5.mjs";import{c as I,e as Y}from"./chunk-6FARZYMJ.mjs";import{h as U,i as H,j as B}from"./chunk-LSEM2BZH.mjs";import"./chunk-ZLQHBI6V.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-P6A22FMQ.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as L,c as P}from"./chunk-XZRON54U.mjs";import"./chunk-3EOIAC2M.mjs";import"./chunk-AIUAEBHR.mjs";import{Ma as J,t as W,ua as z}from"./chunk-O3ZQSWDN.mjs";import"./chunk-DNE7JI3A.mjs";import{a as D,b as M}from"./chunk-CI2O7WBH.mjs";import"./chunk-5T3LFDJ5.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-AX3YF7SC.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-JBOGAUGH.mjs";import"./chunk-4N425UJC.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-TWYNQ2OO.mjs";import{b as v,c as N,f as q,h as X}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import{a as F}from"./chunk-EADHKH3A.mjs";import"./chunk-FG4Y4ZVL.mjs";import"./chunk-Z354SAEF.mjs";import{a as j,h as R}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-THYQOG24.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-JFVY66BS.mjs";import"./chunk-GUYEXPJ4.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-CRPLDXJU.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";var te=/^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$/,re=/^\d{4}-\d{2}-\d{2}$/,se=["CaseComment","EmailMessage","Asset","Contract","Case","Contact","Account"],ne=`sandforge cleanup \u2014 Bulk delete records you created on a sandbox in the
7
+ import{c as k}from"./chunk-Z5IUK2QO.mjs";import{a as Z,b as Q,c as K,d as V}from"./chunk-5GBO4KD5.mjs";import{c as I,e as Y}from"./chunk-6FARZYMJ.mjs";import{h as U,i as H,j as B}from"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as L,c as P}from"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import{Qa as J,x as W,ya as z}from"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import{a as D,b as M}from"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import{b as v,c as N,f as q,h as X}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import{a as F}from"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import{a as j,h as R}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";var te=/^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$/,re=/^\d{4}-\d{2}-\d{2}$/,se=["CaseComment","EmailMessage","Asset","Contract","Case","Contact","Account"],ne=`sandforge cleanup \u2014 Bulk delete records you created on a sandbox in the
8
8
  --since window, whether or not a clone wrote them. Preview with --dry-run and
9
9
  narrow with --objects before deleting.
10
10
 
@@ -4,4 +4,4 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{$ as M,$a as Ma,$b as Mb,A as l,Aa as la,Ab as lb,B as m,Ba as ma,Bb as mb,C as n,Ca as na,Cb as nb,D as o,Da as oa,Db as ob,E as p,Ea as pa,Eb as pb,F as q,Fa as qa,Fb as qb,G as r,Ga as ra,Gb as rb,H as s,Ha as sa,Hb as sb,I as t,Ia as ta,Ib as tb,J as u,Ja as ua,Jb as ub,K as v,Ka as va,Kb as vb,L as w,La as wa,Lb as wb,M as x,Ma as xa,Mb as xb,N as y,Na as ya,Nb as yb,O as z,Oa as za,Ob as zb,P as A,Pa as Aa,Pb as Ab,Q as B,Qa as Ba,Qb as Bb,R as C,Ra as Ca,Rb as Cb,S as D,Sa as Da,Sb as Db,T as E,Ta as Ea,Tb as Eb,U as F,Ua as Fa,Ub as Fb,V as G,Va as Ga,Vb as Gb,W as H,Wa as Ha,Wb as Hb,X as I,Xa as Ia,Xb as Ib,Y as J,Ya as Ja,Yb as Jb,Z as K,Za as Ka,Zb as Kb,_ as L,_a as La,_b as Lb,aa as N,ab as Na,ac as Nb,ba as O,bb as Oa,bc as Ob,ca as P,cb as Pa,cc as Pb,da as Q,db as Qa,dc as Qb,ea as R,eb as Ra,ec as Rb,fa as S,fb as Sa,fc as Sb,ga as T,gb as Ta,gc as Tb,ha as U,hb as Ua,ia as V,ib as Va,ja as W,jb as Wa,ka as X,kb as Xa,la as Y,lb as Ya,ma as Z,mb as Za,na as _,nb as _a,oa as $,ob as $a,pa as aa,pb as ab,q as b,qa as ba,qb as bb,r as c,ra as ca,rb as cb,s as d,sa as da,sb as db,t as e,ta as ea,tb as eb,u as f,ua as fa,ub as fb,v as g,va as ga,vb as gb,w as h,wa as ha,wb as hb,x as i,xa as ia,xb as ib,y as j,ya as ja,yb as jb,z as k,za as ka,zb as kb}from"./chunk-WQO7RXEB.mjs";import"./chunk-RY7WUJXH.mjs";import"./chunk-UX4AOSMU.mjs";import"./chunk-UZMLPKW6.mjs";import{a}from"./chunk-2METQHGG.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-4BQPAVMP.mjs";import"./chunk-RKTFFCNS.mjs";import"./chunk-SAHGDSZQ.mjs";import"./chunk-32ZB5ICW.mjs";import"./chunk-TG52WNGV.mjs";import"./chunk-CSSOLHE3.mjs";import"./chunk-HGJFATSI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5EESNYE3.mjs";import"./chunk-QAXKUEJT.mjs";import"./chunk-JKFCGYJE.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-EINEGS6E.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-RM5G4IP6.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-B5A4JHNN.mjs";import"./chunk-YGE4AUXG.mjs";import"./chunk-C2MHMI7U.mjs";import"./chunk-RFD6NPWJ.mjs";import"./chunk-SF52ZSIV.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-P6A22FMQ.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-XZRON54U.mjs";import"./chunk-3EOIAC2M.mjs";import"./chunk-AIUAEBHR.mjs";import"./chunk-O3ZQSWDN.mjs";import"./chunk-DNE7JI3A.mjs";import"./chunk-CI2O7WBH.mjs";import"./chunk-5T3LFDJ5.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-AX3YF7SC.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-JBOGAUGH.mjs";import"./chunk-4N425UJC.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-TWYNQ2OO.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-FG4Y4ZVL.mjs";import"./chunk-Z354SAEF.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-THYQOG24.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-JFVY66BS.mjs";import"./chunk-GUYEXPJ4.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-CRPLDXJU.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{Eb as CLONE_PREVIEW_UNREAD,L as FIELD_EXCLUSION_UNMATCHED,Nb as ROOT_NEVER_CREATED,jb as SWEEP_CLASS_FLAGS,Ob as TABLE_NEVER_CLONED,E as adaptDescribe,b as apiRequestsLine,C as auditDepsOf,eb as automationHeldLines,V as choicesLines,z as cliRunSetup,ib as cliSweepInput,ga as cloneApiRequestsJson,n as cloneInputLine,m as cloneInputOf,Fb as clonePreviewJson,Gb as clonePreviewLines,o as cloneSubjectOf,qb as commandSweepTies,X as contactPointLines,Hb as datedFromItsJournal,W as decisionLines,H as describeObjectInfo,G as describeOnce,fa as discoveryRequestsLine,_ as dryRunAdminChanges,Bb as earlierOfTheRun,Tb as endOfAThrow,Da as executeOptions,I as failedOutright,qa as fewerRootsOf,na as fewerRootsWords,M as fieldExclusionUnmatchedWords,N as fieldExclusionsUnmatchedLines,P as fieldExclusionsUnmatchedOf,O as fieldExclusionsUnmatchedRefusal,D as fieldInfosOf,K as fileLines,ka as fitKeyWords,Aa as graphCounts,ca as graphLine,Lb as interruptedLine,a as journalDirOf,Ta as journalGoneWords,xb as journalPartsOf,$ as jsonResult,Ca as listedObjects,F as loadRecordTypes,Rb as lostJobsBeforeTheMute,Sb as main,ab as maxTotalRefusal,j as missingFlagsWords,Y as neutralizedUpsertKeys,g as neverClonedTableRefusal,Ba as notCountedObjectsOf,aa as objectOutcomeLine,ba as objectOutcomePrinter,Q as orphanParentsCappedLine,gb as otherPartIdsOf,yb as otherPartsOf,hb as otherPartsSweepLines,pb as otherRunsOf,v as parseArgs,Oa as parseRemoveArgs,Ua as parseRunSummary,Ib as parseVerifyArgs,wb as partsLeft,Xa as partsLeftLines,la as personAccountsAsBusinessLine,Za as platformCopiesWords,La as productionRefusal,c as queryRootOf,Ya as quoteCopiesLines,s as readChoicesFile,tb as readEarlierRemovals,J as recordTypeGivenLines,Na as rehearsalLines,Ma as rehearsalPlanLines,$a as removalLines,Va as removalPlan,Wa as removalPlanLines,ub as removalsAfter,Ab as removalsOfParts,rb as removalsPath,Db as removeMain,B as resumeChangedWords,A as resumeRefusal,y as resumedJournalPath,Pb as rootNeverCreatedRefusal,u as rootsArgsOf,S as rootsAskedJson,Fa as rootsChosenFirst,T as rootsLines,oa as rootsMaxTotalRefusal,Ea as rootsOptionsOf,pa as rootsStorageRefusal,vb as runInPartsOf,sb as runKey,Qa as runMuteSchema,zb as runRemovalsAfter,Sa as runSummaryOfFile,Ra as runUserIdOf,t as sampleArgsOf,sa as sampleAskedOf,ra as sampleBudgetOf,ua as sampleJson,ta as sampleLines,xa as sampleReadsLine,za as sampleRefusalExit,va as sampleResultJson,wa as sampleResultLines,ya as samplingProgressPrinter,U as simulationGapLines,R as summaryLines,kb as sweepClassArgsOf,lb as sweepClassOptions,fb as sweepLines,cb as sweepListingLines,bb as sweepOptionWords,nb as sweepOrgOf,mb as sweepPartsOptions,db as sweepUnsaid,Pa as sweepUserHint,ob as syncRunSpanOf,l as tablesExecuteOptions,e as tablesLeftOut,f as tablesNotReached,h as tablesNotReachedWords,d as tablesQueryOf,k as tablesRunConfig,Ia as targetAutomationReader,Ja as targetGapReader,i as templateWithoutInputWords,_a as tookAlongLines,Ka as typeOrg,w as uncertainRefusal,x as uncertainRetryAt,Z as upsertKeyLines,Jb as verificationLines,Kb as verifyMain,ea as wholeOrgGateLines,da as wholeOrgGraphLine,r as wholeOrgGraphOf,ma as wholeOrgMaxTotalRefusal,q as wholeOrgOptions,ha as wholeOrgQuestion,ia as wholeOrgQuestionWords,ja as wholeOrgRefusalWords,p as wholeOrgRunConfig,Mb as wholeOrgSweepLine,Qb as wholeOrgWriteDeps,Ha as withTemplateFields,Ga as withTheJournal,Cb as writeWhole};
7
+ import{$ as M,$a as Ma,$b as Mb,A as l,Aa as la,Ab as lb,B as m,Ba as ma,Bb as mb,C as n,Ca as na,Cb as nb,D as o,Da as oa,Db as ob,E as p,Ea as pa,Eb as pb,F as q,Fa as qa,Fb as qb,G as r,Ga as ra,Gb as rb,H as s,Ha as sa,Hb as sb,I as t,Ia as ta,Ib as tb,J as u,Ja as ua,Jb as ub,K as v,Ka as va,Kb as vb,L as w,La as wa,Lb as wb,M as x,Ma as xa,Mb as xb,N as y,Na as ya,Nb as yb,O as z,Oa as za,Ob as zb,P as A,Pa as Aa,Pb as Ab,Q as B,Qa as Ba,Qb as Bb,R as C,Ra as Ca,Rb as Cb,S as D,Sa as Da,Sb as Db,T as E,Ta as Ea,Tb as Eb,U as F,Ua as Fa,Ub as Fb,V as G,Va as Ga,Vb as Gb,W as H,Wa as Ha,Wb as Hb,X as I,Xa as Ia,Xb as Ib,Y as J,Ya as Ja,Yb as Jb,Z as K,Za as Ka,Zb as Kb,_ as L,_a as La,_b as Lb,aa as N,ab as Na,ac as Nb,ba as O,bb as Oa,bc as Ob,ca as P,cb as Pa,cc as Pb,da as Q,db as Qa,dc as Qb,ea as R,eb as Ra,ec as Rb,fa as S,fb as Sa,fc as Sb,ga as T,gb as Ta,gc as Tb,ha as U,hb as Ua,hc as Ub,ia as V,ib as Va,ic as Vb,ja as W,jb as Wa,ka as X,kb as Xa,la as Y,lb as Ya,ma as Z,mb as Za,na as _,nb as _a,oa as $,ob as $a,pa as aa,pb as ab,q as b,qa as ba,qb as bb,r as c,ra as ca,rb as cb,s as d,sa as da,sb as db,t as e,ta as ea,tb as eb,u as f,ua as fa,ub as fb,v as g,va as ga,vb as gb,w as h,wa as ha,wb as hb,x as i,xa as ia,xb as ib,y as j,ya as ja,yb as jb,z as k,za as ka,zb as kb}from"./chunk-E5FSPXYH.mjs";import"./chunk-IQ5UKRHU.mjs";import"./chunk-VT6P3X6R.mjs";import"./chunk-ALWVNR34.mjs";import{a}from"./chunk-QHE2RUWX.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-DDNCJVZ2.mjs";import"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{Gb as CLONE_PREVIEW_UNREAD,N as FIELD_EXCLUSION_UNMATCHED,Pb as ROOT_NEVER_CREATED,lb as SWEEP_CLASS_FLAGS,Qb as TABLE_NEVER_CLONED,G as adaptDescribe,q as anonymizationJson,p as anonymizeLine,b as apiRequestsLine,E as auditDepsOf,gb as automationHeldLines,X as choicesLines,B as cliRunSetup,kb as cliSweepInput,ia as cloneApiRequestsJson,n as cloneInputLine,m as cloneInputOf,Hb as clonePreviewJson,Ib as clonePreviewLines,o as cloneSubjectOf,sb as commandSweepTies,Z as contactPointLines,Jb as datedFromItsJournal,Y as decisionLines,J as describeObjectInfo,I as describeOnce,ha as discoveryRequestsLine,aa as dryRunAdminChanges,Db as earlierOfTheRun,Vb as endOfAThrow,Fa as executeOptions,K as failedOutright,sa as fewerRootsOf,pa as fewerRootsWords,O as fieldExclusionUnmatchedWords,P as fieldExclusionsUnmatchedLines,R as fieldExclusionsUnmatchedOf,Q as fieldExclusionsUnmatchedRefusal,F as fieldInfosOf,M as fileLines,ma as fitKeyWords,Ca as graphCounts,ea as graphLine,Nb as interruptedLine,a as journalDirOf,Va as journalGoneWords,zb as journalPartsOf,ba as jsonResult,Ea as listedObjects,H as loadRecordTypes,Tb as lostJobsBeforeTheMute,Ub as main,cb as maxTotalRefusal,j as missingFlagsWords,_ as neutralizedUpsertKeys,g as neverClonedTableRefusal,Da as notCountedObjectsOf,ca as objectOutcomeLine,da as objectOutcomePrinter,S as orphanParentsCappedLine,ib as otherPartIdsOf,Ab as otherPartsOf,jb as otherPartsSweepLines,rb as otherRunsOf,x as parseArgs,Qa as parseRemoveArgs,Wa as parseRunSummary,Kb as parseVerifyArgs,yb as partsLeft,Za as partsLeftLines,na as personAccountsAsBusinessLine,$a as platformCopiesWords,Na as productionRefusal,c as queryRootOf,_a as quoteCopiesLines,u as readChoicesFile,vb as readEarlierRemovals,L as recordTypeGivenLines,Pa as rehearsalLines,Oa as rehearsalPlanLines,bb as removalLines,Xa as removalPlan,Ya as removalPlanLines,wb as removalsAfter,Cb as removalsOfParts,tb as removalsPath,Fb as removeMain,D as resumeChangedWords,C as resumeRefusal,A as resumedJournalPath,Rb as rootNeverCreatedRefusal,w as rootsArgsOf,U as rootsAskedJson,Ha as rootsChosenFirst,V as rootsLines,qa as rootsMaxTotalRefusal,Ga as rootsOptionsOf,ra as rootsStorageRefusal,xb as runInPartsOf,ub as runKey,Sa as runMuteSchema,Bb as runRemovalsAfter,Ua as runSummaryOfFile,Ta as runUserIdOf,v as sampleArgsOf,ua as sampleAskedOf,ta as sampleBudgetOf,wa as sampleJson,va as sampleLines,za as sampleReadsLine,Ba as sampleRefusalExit,xa as sampleResultJson,ya as sampleResultLines,Aa as samplingProgressPrinter,W as simulationGapLines,T as summaryLines,mb as sweepClassArgsOf,nb as sweepClassOptions,hb as sweepLines,eb as sweepListingLines,db as sweepOptionWords,pb as sweepOrgOf,ob as sweepPartsOptions,fb as sweepUnsaid,Ra as sweepUserHint,qb as syncRunSpanOf,l as tablesExecuteOptions,e as tablesLeftOut,f as tablesNotReached,h as tablesNotReachedWords,d as tablesQueryOf,k as tablesRunConfig,Ka as targetAutomationReader,La as targetGapReader,i as templateWithoutInputWords,ab as tookAlongLines,Ma as typeOrg,y as uncertainRefusal,z as uncertainRetryAt,$ as upsertKeyLines,Lb as verificationLines,Mb as verifyMain,ga as wholeOrgGateLines,fa as wholeOrgGraphLine,t as wholeOrgGraphOf,oa as wholeOrgMaxTotalRefusal,s as wholeOrgOptions,ja as wholeOrgQuestion,ka as wholeOrgQuestionWords,la as wholeOrgRefusalWords,r as wholeOrgRunConfig,Ob as wholeOrgSweepLine,Sb as wholeOrgWriteDeps,Ja as withTemplateFields,Ia as withTheJournal,Eb as writeWhole};
@@ -4,7 +4,7 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{q as J}from"./chunk-26EGXYZ4.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-3QCUSZIZ.mjs";import"./chunk-KYLHS74X.mjs";import"./chunk-FBYFCKPG.mjs";import"./chunk-ZRUDYB7O.mjs";import"./chunk-DN7YBILC.mjs";import"./chunk-VLAU5QQT.mjs";import"./chunk-TSTCHIBU.mjs";import"./chunk-U4S27YRP.mjs";import"./chunk-YTBM3TSW.mjs";import"./chunk-GG5I52UT.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-SKGAERV4.mjs";import"./chunk-MRN72UEO.mjs";import"./chunk-A3QNSALB.mjs";import"./chunk-5C7LQXYS.mjs";import"./chunk-BRN42U26.mjs";import"./chunk-VPGX5Z5D.mjs";import"./chunk-55VBV2WK.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-TFGJDZFE.mjs";import"./chunk-G6IYOZEH.mjs";import"./chunk-45375WT5.mjs";import"./chunk-DCJBP3LE.mjs";import"./chunk-YV7JYHJP.mjs";import"./chunk-2JRVBXJL.mjs";import"./chunk-GMY5427L.mjs";import{a as B}from"./chunk-HV3TDLFR.mjs";import{a as H}from"./chunk-NMF55UBQ.mjs";import"./chunk-MQLTEXB7.mjs";import"./chunk-AAOMUI7S.mjs";import"./chunk-JHJDDQDE.mjs";import"./chunk-ULEYGOZU.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import{b as x,c as Y}from"./chunk-W6SLQZKQ.mjs";import"./chunk-RIIJJRGF.mjs";import"./chunk-EYFP3NA6.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-LSEM2BZH.mjs";import"./chunk-ZLQHBI6V.mjs";import"./chunk-BOGNK4LV.mjs";import{b as V}from"./chunk-4BQPAVMP.mjs";import{b as F,e as U}from"./chunk-RKTFFCNS.mjs";import"./chunk-SAHGDSZQ.mjs";import"./chunk-32ZB5ICW.mjs";import"./chunk-TG52WNGV.mjs";import"./chunk-CSSOLHE3.mjs";import"./chunk-HGJFATSI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5EESNYE3.mjs";import"./chunk-QAXKUEJT.mjs";import"./chunk-JKFCGYJE.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-EINEGS6E.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-RM5G4IP6.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-B5A4JHNN.mjs";import"./chunk-YGE4AUXG.mjs";import"./chunk-C2MHMI7U.mjs";import"./chunk-RFD6NPWJ.mjs";import"./chunk-SF52ZSIV.mjs";import{b as C}from"./chunk-AL4C3GFT.mjs";import"./chunk-P6A22FMQ.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-XZRON54U.mjs";import"./chunk-3EOIAC2M.mjs";import"./chunk-AIUAEBHR.mjs";import"./chunk-O3ZQSWDN.mjs";import"./chunk-DNE7JI3A.mjs";import"./chunk-CI2O7WBH.mjs";import"./chunk-5T3LFDJ5.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-AX3YF7SC.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-JBOGAUGH.mjs";import"./chunk-4N425UJC.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-TWYNQ2OO.mjs";import{b as G,f as b,h as W}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-FG4Y4ZVL.mjs";import"./chunk-Z354SAEF.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-THYQOG24.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-JFVY66BS.mjs";import"./chunk-GUYEXPJ4.mjs";import"./chunk-TUACWKIH.mjs";import{Zc as q,hc as I,ic as R,jc as j,kc as P}from"./chunk-CRPLDXJU.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{randomUUID as K}from"node:crypto";var de=`sandforge compare \u2014 compare two orgs the way the Compare page does, without the editor, and deploy what differs as its Deploy tab does.
7
+ import{q as ne}from"./chunk-VA6EEI6X.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-XV4CVZYD.mjs";import"./chunk-BLMJ4WVI.mjs";import"./chunk-4NSXPONF.mjs";import"./chunk-TAN2CIRI.mjs";import"./chunk-AXTB2HJS.mjs";import"./chunk-NCCHOV2N.mjs";import"./chunk-2LSGWTWX.mjs";import"./chunk-LHNAR6FC.mjs";import"./chunk-XBYXT74L.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-UM2B4GR7.mjs";import"./chunk-2YJJTQNC.mjs";import"./chunk-4VLP6RHC.mjs";import"./chunk-YRULC27A.mjs";import"./chunk-GYDTM62J.mjs";import"./chunk-5JMQXHJ2.mjs";import"./chunk-HLROVOR6.mjs";import"./chunk-WF5S4FW5.mjs";import"./chunk-FV6MOSHD.mjs";import"./chunk-T542Z54E.mjs";import"./chunk-DO6PSHQZ.mjs";import"./chunk-ZIKLQZBG.mjs";import"./chunk-FYG47CNA.mjs";import"./chunk-GMY5427L.mjs";import{a as te}from"./chunk-HUOR4M2L.mjs";import{a as W}from"./chunk-Z5IUK2QO.mjs";import"./chunk-ON7Y63FK.mjs";import"./chunk-7KHA5UIQ.mjs";import"./chunk-YTOTMJTY.mjs";import"./chunk-WJGK6VGU.mjs";import"./chunk-3L6DVNCR.mjs";import"./chunk-54V4FVEY.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-TZXYVMZC.mjs";import{b as L,c as ee}from"./chunk-TMIV3IWH.mjs";import"./chunk-CJAWKLAL.mjs";import{a as Q,b as T,c as k,d as z}from"./chunk-PE7CHD2W.mjs";import"./chunk-VKREON6Q.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import{c as Y,f as J,g as X,k as K}from"./chunk-DDNCJVZ2.mjs";import"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import{b as P}from"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import{b as V,f as O,h as Z}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import{ed as U,oc as E,pc as R,qc as F,rc as I}from"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{randomUUID as M}from"node:crypto";var he=`sandforge compare \u2014 compare two orgs the way the Compare page does, without the editor, and deploy what differs as its Deploy tab does.
8
8
 
9
9
  Usage:
10
10
  npx sandforge compare --source <alias> --target <alias> [options]
@@ -18,11 +18,18 @@ Options:
18
18
  --op <name> execute | permissions | snapshots | drift |
19
19
  validate-deployment; repeat for more
20
20
  (default: the first four, or validate-deployment
21
- alone when --validate is given)
21
+ alone when --validate is given; with no --type or
22
+ --all-types, the last three, and a line says the
23
+ diff was left out)
22
24
  --type <Type> a metadata category to diff (execute); repeat for more
23
25
  --all-types every category the page offers, as "Select all" does
24
26
  --exclude-managed leave out what a managed package installed (execute),
25
27
  as the page does with its box unticked
28
+ --read-budget <n> the components a diff (execute) reads by content from
29
+ each org: default 500, at most 30000. Each 10 more is
30
+ a readMetadata call more in each org (Apex, a query
31
+ per 50), and the time it reads for grows with it, 90 s
32
+ per 500; the run waits for it
26
33
  --validate <Type:Name> a component to validate a deployment of, from the
27
34
  source to the target; repeat for more
28
35
  --deploy <Type:Name> a component to deploy from the source to the target,
@@ -55,7 +62,10 @@ Options:
55
62
 
56
63
  A comparison writes nothing to either org. A validation deploys check-only:
57
64
  the target compiles the components and runs the tests, keeps none of them,
58
- and lists the validation in Setup \u203A Deployment Status.
65
+ and lists the validation in Setup \u203A Deployment Status. A Ctrl-C, a SIGTERM or
66
+ a SIGHUP, from the first org connected on, stops the wait: the run says what
67
+ it had sent, names the validation the target runs on, which keeps nothing,
68
+ and exits 130, 143 or 129.
59
69
 
60
70
  --deploy deploys, as the Deploy tab of the Compare page does: it validates the
61
71
  components in the target first, then, once the validation succeeds and the
@@ -66,7 +76,9 @@ trail of the store records it. A production target, or one that cannot be
66
76
  told from one, is refused before anything is sent to either org, --dry-run
67
77
  included; no flag lifts it. A Ctrl-C, a SIGTERM or a SIGHUP stops the wait,
68
78
  not the org: the run says what it sent, names the validation or the
69
- deployment the target runs, which goes on there, and exits 130, 143 or 129.
79
+ deployment the target runs, which goes on there, and exits 130, 143 or 129;
80
+ the audit trail of the store records a deployment it let go of as left
81
+ running.
70
82
 
71
83
  Exit codes: 0 every request was answered, every validation succeeded and,
72
84
  with --deploy, the deployment succeeded (a diff is read, whatever it found,
@@ -76,16 +88,17 @@ was refused or was not answered in time; 2 a bad command line, or --deploy
76
88
  with no terminal to type the alias on and no --yes; 3 a validation or a
77
89
  deployment came back with no success, a component error or a failed test (a
78
90
  deployment rolled back leaves nothing in the target), or --fail-on-drift and
79
- a diff found differences; 130, 143, 129 --deploy stopped by a Ctrl-C, a
91
+ a diff found differences; 130, 143, 129 a run stopped by a Ctrl-C, a
80
92
  SIGTERM or a SIGHUP.
81
- `,Q=["execute","permissions","snapshots","drift","validate-deployment"],le=["execute","permissions","snapshots","drift"],E=["CustomObject","CustomField","RecordType","ApexClass","ApexTrigger","LightningComponentBundle","Flow","WorkflowRule","ValidationRule","Profile","PermissionSet","Layout","CustomLabel","CustomMetadata","StaticResource","EmailTemplate","Report","Dashboard"],pe=5*6e4,oe=(2*R.retrieve+R.deploy+1)*6e4,ce=(R.deploy+1)*6e4,ue=new Set(["ApexClass","ApexTrigger"]),ge={switches:["--all-types","--exclude-managed","--json","--fail-on-drift","--yes","--dry-run"],values:["--source","--target","--op","--type","--validate","--deploy","--tests","--run-test","--store","--wait"]};function fe(o){let t=o.slice(2);(t.includes("--help")||t.includes("-h"))&&(process.stdout.write(de),process.exit(0)),G(t,ge);let e=(p,c)=>{let u=t.indexOf(p);return u>=0&&u+1<t.length?t[u+1]:c},r=p=>{let c=[];for(let u=0;u<t.length;u++)t[u]===p&&u+1<t.length&&c.push(t[u+1]);return c},n=p=>{process.stderr.write(`${p}
82
- `),process.exit(2)},s=e("--source"),a=e("--target");(!s||!a)&&n("Missing --source or --target. Run with --help."),s===a&&n("--source and --target name the same org.");let d=r("--op");for(let p of d)p==="deploy"&&n("deploy is no --op: give each component to --deploy Type:Name, which validates them in the target, then deploys what the target validated."),Q.includes(p)||n(`Not an operation: "${p}". One of: ${Q.join(", ")}.`);let i=ye(t,r,e,n);if(i!==void 0)return{source:s,target:a,operations:[],types:[],includeManaged:!0,validation:{components:[],testLevel:"NoTestRun",runTests:[]},deploy:i,storeDir:e("--store")??x("compare"),waitMs:z(e,n),json:t.includes("--json"),failOnDrift:!1};for(let p of["--yes","--dry-run"])t.includes(p)&&n(`${p} goes with --deploy, the one request of this command that writes to an org.`);let l=ne(r,e,n),g=d.length>0?[...new Set(d)]:l.components.length>0?["validate-deployment"]:[...le];g.includes("validate-deployment")&&l.components.length===0&&n("validate-deployment needs a component: give --validate Type:Name.");let m=r("--type");for(let p of m)E.includes(p)||n(`Not a category the page offers: "${p}". One of: ${E.join(", ")}.`);let f=t.includes("--all-types")?[...E]:[...new Set(m)];return g.includes("execute")&&f.length===0&&n("execute needs a category: give --type or --all-types, or leave execute out with --op."),{source:s,target:a,operations:g,types:f,includeManaged:!t.includes("--exclude-managed"),validation:l,storeDir:e("--store")??x("compare"),waitMs:z(e,n),json:t.includes("--json"),failOnDrift:t.includes("--fail-on-drift")}}function z(o,t){let e=Number(o("--wait","300")??"300");return(!Number.isInteger(e)||e<1)&&t("--wait takes a whole number of seconds."),e*1e3}var me=["--op","--validate","--type","--all-types","--exclude-managed","--fail-on-drift"];function ye(o,t,e,r){if(t("--deploy").length===0)return;let n=me.filter(l=>o.includes(l));n.includes("--validate")&&r("--deploy validates what it deploys first, as the Deploy tab does: give the components to --deploy alone, without --validate."),n.length>0&&r(`${n.join(", ")} ${n.length===1?"goes":"go"} with a comparison, which a run with --deploy does not make: compare in a run of its own, without --deploy.`);let s=o.includes("--yes"),a=o.includes("--dry-run");s&&a&&r("--dry-run sends nothing and --yes deploys: give one of them.");let d=ne(t,e,r,"--deploy"),i=e("--tests")===void 0&&d.components.some(l=>ue.has(l.componentType));return{...d,...i?{testLevel:"RunLocalTests"}:{},testsAdvised:i,yes:s,dryRun:a}}function ne(o,t,e,r="--validate"){let n=[];for(let i of o(r)){let l=i.indexOf(":"),g=i.slice(0,l),m=i.slice(l+1);(l<1||m==="")&&e(`${r} takes Type:Name, got "${i}".`),P.includes(g)||e(`Not a type a deployment carries: "${g}". One of: ${P.join(", ")}.`),n.push({componentType:g,fullName:m})}let s=t("--tests","NoTestRun")??"NoTestRun";I.includes(s)||e(`Not a test level: "${s}". One of: ${I.join(", ")}.`);let a=s,d=o("--run-test");for(let i of d)j.test(i)||e(`Not an Apex class name: "${i}".`);return a==="RunSpecifiedTests"&&d.length===0&&e("RunSpecifiedTests needs a test class: give --run-test."),a!=="RunSpecifiedTests"&&d.length>0&&e("--run-test names the tests of --tests RunSpecifiedTests only."),{components:n,testLevel:a,runTests:d}}var he={created:"would be created",changed:"would change"};function we(o){let{counts:t}=o,e=o.checkOnly?16:13,r=[` ${o.checkOnly?"validation":"deployment"} ${o.deployId??"(none sent)"}: ${o.status}, ${o.success?"success":"no success"}`+(o.errorMessage?` \u2014 ${o.errorMessage}`:""),` components: ${t.componentsDeployed} of ${t.componentsTotal} without an error, ${t.componentErrors} with one; tests (${o.testLevel}${o.runTests.length>0?`: ${o.runTests.join(", ")}`:""}): ${t.testsCompleted} of ${t.testsTotal} passed, ${t.testErrors} failed`];for(let n of o.components){let s=n.line!==void 0?` (line ${n.line}${n.column!==void 0?`, column ${n.column}`:""})`:"",a=n.problem?` \u2014 ${n.problem}${s}`:"",d=(o.checkOnly?he[n.outcome]:void 0)??n.outcome;r.push(` ${d.padEnd(e)} ${n.componentType} ${n.fullName}${a}`)}for(let n of o.testFailures){let s=n.methodName?`${n.className}.${n.methodName}`:n.className,a=n.line!==void 0?` (line ${n.line})`:"";r.push(` test failed ${s}${a} \u2014 ${n.message}`)}for(let n of o.coverageWarnings)r.push(` coverage ${n}`);for(let n of o.retrieveProblems??[])r.push(` source said ${n}`);return r}function Ue(o){return se(o,"modified")}function se(o,t){let e=new Map;for(let r of o){if(r.status!==t)continue;let n=e.get(r.componentType)??[];n.push(r.fullName),e.set(r.componentType,n)}return e}function $e(o){let t=e=>o.diffs.filter(r=>r.status===e).map(r=>`${r.componentType}:${r.fullName}`);return{onlyInSource:t("removed"),onlyInTarget:t("added"),modified:t("modified")}}function ve(o){let{content:t,summary:e}=o,r=e.modified+e.unchanged+e.notCompared,{over_budget:n,unreadable:s,read_failed:a}=t.notCompared,d=t.managedLeftOut?`; left out, as asked: ${t.managedLeftOut} installed by a managed package`:"";return` content compared for ${t.compared} of ${r} in both orgs; not compared: ${n} over the budget (${t.budget.components} per org, ${t.budget.seconds} s), ${s} unreadable, ${a} read failed${d}`}function Te(o){let{summary:t}=o,e=[` mode ${o.mode}, ${t.totalItems} item(s): +${t.removed} only in the source -${t.added} only in the target ~${t.modified} modified =${t.unchanged} unchanged ?${t.notCompared} not compared`," + a deployment creates it in the target, - a deployment leaves it there (SandForge deploys no deletion), ~ a deployment replaces what the target holds"],r=new Map;for(let s of o.diffs){let a=r.get(s.componentType)??{};a[s.status]=(a[s.status]??0)+1,r.set(s.componentType,a)}for(let[s,a]of r){let d=(a.modified??0)+(a.unchanged??0)+(a.not_compared??0),i=(a.removed??0)+d,l=(a.added??0)+d;e.push(` ${s.padEnd(26)} source ${String(i).padStart(5)} target ${String(l).padStart(5)} +${a.removed??0} -${a.added??0} ~${a.modified??0} =${a.unchanged??0} ?${a.not_compared??0}`)}e.push(ve(o));let n=[["removed","only in the source"],["added","only in the target"],["modified","modified"]];for(let[s,a]of n)for(let[d,i]of se(o.diffs,s))e.push(` ${a} ${d}: ${T(i)}`);return e}function T(o,t=8){if(o.length===0)return"\u2014";let e=o.slice(0,t).join(", ");return o.length>t?`${e} \u2026 (+${o.length-t})`:e}function Z(o,t){let e=(t.sourceOnly??[]).map(n=>n.name),r=(t.targetOnly??[]).map(n=>n.name);return[` ${o}: ${e.length} source only, ${r.length} target only, ${(t.shared??[]).length} in both`,` source only: ${T(e)}`,` target only: ${T(r)}`]}function Se(o){return o.code!=="MANAGED"||!Array.isArray(o.managed)?[]:o.managed.filter(t=>typeof t=="object"&&t!==null&&typeof t.componentType=="string"&&typeof t.fullName=="string")}function O(o){return o.success&&o.counts.componentErrors===0&&o.counts.testErrors===0}function k(o,t,e="--validate"){let r=`${(t.elapsedMs/1e3).toFixed(1)}s`,n=`compare:${o} ${t.outcome} in ${r}`,s=[t.late?`${n} \u2014 past the page's timeout: the page dropped it`:n],a=t.message?.payload??{};if(t.outcome!=="answered"){let i=Se(a);return i.length>0?(s.push(` a managed package installed ${i.map(l=>`${l.componentType} ${l.fullName}`).join(", ")} in the source, and it owns them: drop `+i.map(l=>`${e} ${l.componentType}:${l.fullName}`).join(" ")+" from the line and run it again. Nothing was sent to the target."),s):(t.message&&s.push(` ${String(a.message??JSON.stringify(a))}`),t.outcome==="unanswered"&&s.push(o==="deploy"?` nothing came back in ${Math.round(t.elapsedMs/1e3)} s: the deployment may go on in the target, whose Setup \u203A Deployment Status follows it; give a longer --wait`:` nothing came back in ${Math.round(t.elapsedMs/1e3)} s: give a longer --wait`+(o==="execute"?", or fewer --type":"")),s)}if(o==="execute")return[...s,...Te(a)];if(o==="validate-deployment"||o==="deploy"){let i=a.report;return i?[...s,...we(i)]:[...s," (no report)"]}if(o==="permissions"){let i=a.permissions??{};return[...s,...Z("permission sets",i.permissionSets??{}),...Z("profiles",i.profiles??{})]}if(o==="snapshots"){let i=a.snapshot??{},l=g=>g?`${g.totalObjects} objects (${g.customObjects} custom, ${g.standardObjects} standard, ${g.queryableObjects} queryable)`:"\u2014";return[...s,` source: ${l(i.source)}`,` target: ${l(i.target)}`,` ${i.diff?.sharedCount??0} in both; source only: ${T(i.diff?.sourceOnly??[])}`,` target only: ${T(i.diff?.targetOnly??[])}`]}let d=a.drift??{};return[...s,...(d.items??[]).map(i=>` ${i.status.padEnd(14)} ${i.setting}: ${i.sourceValue} | ${i.targetValue}`)]}function N(o,t=!1){if(o.some(({answer:s})=>s.outcome!=="answered"))return 1;let e=s=>s.message?.payload??{};if(o.some(({op:s,answer:a})=>{if(s!=="validate-deployment"&&s!=="deploy")return!1;let d=e(a).report;return d===void 0||!O(d)}))return 3;let n=o.some(({op:s,answer:a})=>{if(s!=="execute")return!1;let d=e(a).summary;return d!==void 0&&d.added+d.removed+d.modified>0});return t&&n?3:0}var Re={retrieve:"retrieving from the source: {done} of {total} components",components:"checking the components: {done} of {total}",tests:"running the Apex tests: {done} of {total}"};function be(o){let t,e="",r;return{follow:n=>{t=n,e="",r=void 0},deployId:()=>r,onPost:n=>{if(n.type!=="operation:progress"||t===void 0)return;let s=n.payload??{};if(s.operationId!==t)return;typeof s.deployId=="string"&&(r=s.deployId);let a=typeof s.currentStep=="string"?Re[s.currentStep]:void 0;if(a===void 0)return;let d=a.replace("{done}",String(s.processedRecords??0)).replace("{total}",String(s.totalRecords??0));d!==e&&(e=d,o(` ${d}`))}}}async function Oe(o=process.argv,t={}){let e=fe(o),r=f=>{process[e.json?"stderr":"stdout"].write(`${f}
83
- `)},n=t.terminal??{input:process.stdin,output:process.stderr},{deploy:s}=e;s&&!s.dryRun&&!s.yes&&n.input.isTTY!==!0&&(process.stderr.write(`--deploy asks for ${e.target} to be typed before it deploys, and no terminal is here to type it on: give --yes to deploy without the question, or --dry-run to list what it would deploy. Nothing was sent to either org.
84
- `),process.exit(2));let a=Y(e.storeDir);if(a!==void 0){process.stderr.write(`${a}
85
- `),process.exitCode=1;return}let d=be(r),i=(t.createHost??J)({storeDir:e.storeDir,log:f=>{/^\s*!|\[(ERR|WARN)\]/.test(f)&&r(f)},waitMs:e.waitMs,onPost:d.onPost,...s?{compose:f=>f.handlers.setInfraServices({productionGuard:B(r,e.target)})}:{}}),l=await i.connect(e.source),g=await i.connect(e.target);if(r(`sandforge compare ${e.source} (${l.orgType}) -> ${e.target} (${g.orgType})`),s){await Ae({args:e,deploy:s,host:i,source:l,target:g,log:r,terminal:n,progress:d});return}let m=[];for(let f of e.operations){let p={sourceOrgId:l.id,targetOrgId:g.id};f==="execute"&&(p.types=e.types,p.includeManaged=e.includeManaged),f==="validate-deployment"&&(p.components=e.validation.components,p.testLevel=e.validation.testLevel,e.validation.testLevel==="RunSpecifiedTests"&&(p.runTests=e.validation.runTests));let c=await i.request({type:`compare:${f}`,payload:p,...f==="execute"?{timeoutMs:pe}:{},...f==="validate-deployment"?{timeoutMs:oe}:{}}),u=f==="execute"&&c.outcome==="answered"?c.message?.payload:void 0;m.push({op:f,answer:c,...Array.isArray(u?.diffs)?{changes:$e({diffs:u.diffs})}:{}});for(let h of k(f,c))r(h);f==="validate-deployment"&&re(c)!==void 0&&r(" --deploy in place of each --validate deploys it: it validates it again, then deploys what the target validated")}e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:m,posted:i.posted},null,2)}
86
- `),b(N(m,e.failOnDrift))}function re(o){if(o.outcome!=="answered")return;let t=o.message?.payload?.report;return t!==void 0&&t.deployId!==void 0&&O(t)?t:void 0}async function Ae(o){let{args:t,deploy:e,host:r,target:n,log:s}=o;if(q(n)==="production"){let c=n.metadata?.edition,u=H(t.target,{id:n.id,sandbox:n.orgType==="Sandbox"||n.orgType==="Scratch",...c?{edition:c}:{}},{tool:C("sandforge-compare"),action:"write",readOnly:te})??`${t.target} is taken for a production org: ${C("sandforge-compare")} deploys to sandboxes, scratch orgs and Developer Edition orgs only. Nothing was written; ${te}, which only reads, runs against it.`;process.stderr.write(`${u}
87
- `),process.exitCode=1;return}for(let c of Pe(t.source,t.target,e))s(c);let a={source:t.source,target:t.target,components:e.components,testLevel:e.testLevel,runTests:e.runTests},d=[],i=(c,u={})=>{t.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:d,deploy:{...a,outcome:c,...u},posted:r.posted},null,2)}
88
- `)};if(e.dryRun){s(`dry run: nothing was sent to ${t.source} or ${t.target}. The run validates ${Ie(e.components.length)} in ${t.target}, then deploys what it validated once ${t.target} is typed, or with --yes.`),i("dry-run");return}let l=new AbortController,g,m={open:!1},f=U(c=>{g=c;let u=m.open;l.abort(),process.stderr.write(`${u?"":`
89
- `}interrupted: the run stops waiting on ${t.target} and says what it sent there (${De(c)})
90
- `)}),p=(c,u,h)=>{s(u),i("interrupted",{stoppedDuring:c,...h}),process.exitCode=F(g??"SIGINT")};try{await Ce(o,{results:d,answerJson:i,stop:l.signal,stopped:p,question:m})}finally{f()}}function De(o){return o==="SIGINT"?"Ctrl-C again ends it at once":"a second signal ends it at once"}function ee(o,t){return t.aborted?Promise.resolve(void 0):new Promise((e,r)=>{let n=()=>e(void 0);t.addEventListener("abort",n,{once:!0}),o.then(s=>{t.removeEventListener("abort",n),e(s)},s=>{t.removeEventListener("abort",n),r(s instanceof Error?s:new Error(String(s)))})})}async function Ce(o,t){let{args:e,deploy:r,host:n,target:s,log:a}=o,{results:d,answerJson:i,stop:l,stopped:g,question:m}=t,f=r.components.length===1?"the component":"the components",p=`cli-validate-${K()}`;o.progress.follow(p);let c=await ee(n.request({id:p,type:"compare:validate-deployment",payload:{sourceOrgId:o.source.id,targetOrgId:s.id,components:r.components,testLevel:r.testLevel,...r.testLevel==="RunSpecifiedTests"?{runTests:r.runTests}:{}},timeoutMs:oe}),l),u=o.progress.deployId();if(o.progress.follow(void 0),c===void 0){g("validation",u!==void 0?` stopped while ${e.target} validated ${f} as ${u}: nothing was deployed to ${e.target}. The validation goes on there check-only and keeps nothing; Setup \u203A Deployment Status lists it.`:` stopped before ${e.target} gave the validation an id: nothing was deployed to ${e.target}, and a validation, check-only, keeps nothing there.`,u!==void 0?{validationId:u}:{});return}d.push({op:"validate-deployment",answer:c});for(let v of k("validate-deployment",c,"--deploy"))a(v);let h=re(c);if(h?.deployId===void 0){a(` the validation did not succeed: nothing was deployed to ${e.target}`),i("validation-failed"),b(N(d));return}let y=h.deployId,L=r.components.length;if(a(`Deploy to ${e.target}: `+(L===1?`the component validated as ${y} will be deployed to ${e.target}, with the same tests, and ${e.target} keeps it.`:`the ${L} components validated as ${y} will be deployed to ${e.target}, with the same tests, and ${e.target} keeps them.`)),!r.yes){m.open=!0;let v=await V(`Type ${e.target} to deploy it:`,o.terminal,l);if(m.open=!1,l.aborted){g("confirmation",` stopped at the question: nothing was deployed to ${e.target}. The validation ${y} changed nothing there.`,{validationId:y});return}if(v!==e.target){a(`Nothing was deployed: what was typed is not ${e.target}. The validation ${y} changed nothing there.`),i("declined",{validationId:y}),process.exitCode=1;return}}let M=`cli-deploy-${K()}`;o.progress.follow(M);let w=await ee(n.request({id:M,type:"compare:deploy",payload:{validationId:y,targetOrgId:s.id},timeoutMs:ce}),l),$=o.progress.deployId();if(o.progress.follow(void 0),w===void 0){g("deployment",$!==void 0?` stopped while ${e.target} deployed ${f} as ${$}: the deployment goes on in ${e.target}, which keeps what it deploys unless it fails and is rolled back whole. Setup \u203A Deployment Status follows it as ${$}, and can cancel it there while it runs.`:` stopped while the deployment of validation ${y} was on its way to ${e.target}: if ${e.target} took it, the deployment goes on there, and Setup \u203A Deployment Status follows it.`,{validationId:y,...$!==void 0?{deploymentId:$}:{}});return}d.push({op:"deploy",answer:w});for(let v of k("deploy",w))a(v);let S=w.message?.payload?.report,D=S?.deployId,_=w.outcome==="answered"&&S!==void 0;_&&a(O(S)?` deployed to ${e.target}, which lists it in Setup \u203A Deployment Status as ${D??"(no id)"}. SandForge deploys no deletion: what it created stays in ${e.target} until it is deleted there.`:` the deployment failed in ${e.target} and was rolled back: ${e.target} kept nothing.`),i(_?O(S)?"deployed":"rolled-back":"deployment-unsettled",{validationId:y,...D!==void 0?{deploymentId:D}:{}}),b(N(d))}var te="a comparison without --deploy";function Ie(o){return`${o} component${o===1?"":"s"}`}function Pe(o,t,e){let r=e.testLevel==="RunSpecifiedTests"?`${e.testLevel}: ${e.runTests.join(", ")}`:e.testLevel;return[`deploy from ${o} to ${t}, validated in ${t} first: it compiles the components, runs the tests asked for and keeps nothing; then the package it validated is deployed, once ${t} is typed or with --yes. Nothing is deleted from ${t}.`,...e.components.map(n=>` ${n.componentType} ${n.fullName}`),` Apex tests in ${t}: ${r}`+(e.testsAdvised?" \u2014 Apex is among the components: as the Deploy tab advises, the target\u2019s own tests run unless --tests says otherwise":"")]}process.argv[1]?.includes("sandforge-compare")&&(W(),Oe().then(()=>process.exit(process.exitCode??0)).catch(o=>{process.stderr.write(`${o instanceof Error?o.message:String(o)}
91
- `),process.exit(1)}));export{E as PAGE_COMPONENT_TYPES,$e as changesOf,N as compareExitCode,Pe as deployPlanLines,k as describeAnswer,ve as describeCoverage,we as describeDeployment,Oe as main,Ue as modifiedByType,fe as parseArgs,be as progressLines};
93
+ `,se=["execute","permissions","snapshots","drift","validate-deployment"],we=["execute","permissions","snapshots","drift"],N=["CustomObject","CustomField","RecordType","ApexClass","ApexTrigger","LightningComponentBundle","Flow","WorkflowRule","ValidationRule","Profile","PermissionSet","Layout","CustomLabel","CustomMetadata","StaticResource","EmailTemplate","Report","Dashboard"],$e=5*6e4;function ve(t){let e=k(t).seconds-Q.seconds;return $e+e*1e3}var le=(2*R.retrieve+R.deploy+1)*6e4,Te=(R.deploy+1)*6e4,be=new Set(["ApexClass","ApexTrigger"]),Se={switches:["--all-types","--exclude-managed","--json","--fail-on-drift","--yes","--dry-run"],values:["--source","--target","--op","--type","--validate","--deploy","--tests","--run-test","--store","--wait","--read-budget"]};function Re(t){let e=t.slice(2);(e.includes("--help")||e.includes("-h"))&&(process.stdout.write(he),process.exit(0)),V(e,Se);let n=(u,y)=>{let f=e.indexOf(u);return f>=0&&f+1<e.length?e[f+1]:y},r=u=>{let y=[];for(let f=0;f<e.length;f++)e[f]===u&&f+1<e.length&&y.push(e[f+1]);return y},o=u=>{process.stderr.write(`${u}
94
+ `),process.exit(2)},s=n("--source"),a=n("--target");(!s||!a)&&o("Missing --source or --target. Run with --help."),s===a&&o("--source and --target name the same org.");let i=r("--op");for(let u of i)u==="deploy"&&o("deploy is no --op: give each component to --deploy Type:Name, which validates them in the target, then deploys what the target validated."),se.includes(u)||o(`Not an operation: "${u}". One of: ${se.join(", ")}.`);let d=De(e,r,n,o);if(d!==void 0)return{source:s,target:a,operations:[],diffLeftOut:!1,types:[],includeManaged:!0,validation:{components:[],testLevel:"NoTestRun",runTests:[]},deploy:d,storeDir:n("--store")??L("compare"),waitMs:re(n,o),json:e.includes("--json"),failOnDrift:!1};for(let u of["--yes","--dry-run"])e.includes(u)&&o(`${u} goes with --deploy, the one request of this command that writes to an org.`);let p=pe(r,n,o),l=r("--type");for(let u of l)N.includes(u)||o(`Not a category the page offers: "${u}". One of: ${N.join(", ")}.`);let c=e.includes("--all-types")?[...N]:[...new Set(l)],m=i.length===0&&p.components.length===0&&c.length===0,g=i.length>0?[...new Set(i)]:p.components.length>0?["validate-deployment"]:we.filter(u=>u!=="execute"||!m);if(g.includes("validate-deployment")&&p.components.length===0&&o("validate-deployment needs a component: give --validate Type:Name."),g.includes("execute")&&c.length===0&&o("execute needs a category: give --type or --all-types, or leave execute out with --op."),m)for(let u of["--fail-on-drift","--exclude-managed","--read-budget"])e.includes(u)&&o(`${u} goes with a diff, which needs a category: give --type or --all-types.`);let h=Oe(n,o);return h!==void 0&&!g.includes("execute")&&o("--read-budget goes with a diff (execute), which this run does not send."),{source:s,target:a,operations:g,diffLeftOut:m,types:c,includeManaged:!e.includes("--exclude-managed"),...h!==void 0?{readBudget:h}:{},validation:p,storeDir:n("--store")??L("compare"),waitMs:re(n,o),json:e.includes("--json"),failOnDrift:e.includes("--fail-on-drift")}}function re(t,e){let n=Number(t("--wait","300")??"300");return(!Number.isInteger(n)||n<1)&&e("--wait takes a whole number of seconds."),n*1e3}function Oe(t,e){let n=t("--read-budget");if(n===void 0)return;let r=Number(n);return(!Number.isInteger(r)||r<1||r>T)&&e(`--read-budget takes a whole number of components, 1 to ${T}.`),r}var Ae=["--op","--validate","--type","--all-types","--exclude-managed","--fail-on-drift","--read-budget"];function De(t,e,n,r){if(e("--deploy").length===0)return;let o=Ae.filter(p=>t.includes(p));o.includes("--validate")&&r("--deploy validates what it deploys first, as the Deploy tab does: give the components to --deploy alone, without --validate."),o.length>0&&r(`${o.join(", ")} ${o.length===1?"goes":"go"} with a comparison, which a run with --deploy does not make: compare in a run of its own, without --deploy.`);let s=t.includes("--yes"),a=t.includes("--dry-run");s&&a&&r("--dry-run sends nothing and --yes deploys: give one of them.");let i=pe(e,n,r,"--deploy"),d=n("--tests")===void 0&&i.components.some(p=>be.has(p.componentType));return{...i,...d?{testLevel:"RunLocalTests"}:{},testsAdvised:d,yes:s,dryRun:a}}function pe(t,e,n,r="--validate"){let o=[];for(let d of t(r)){let p=d.indexOf(":"),l=d.slice(0,p),c=d.slice(p+1);(p<1||c==="")&&n(`${r} takes Type:Name, got "${d}".`),I.includes(l)||n(`Not a type a deployment carries: "${l}". One of: ${I.join(", ")}.`),o.push({componentType:l,fullName:c})}let s=e("--tests","NoTestRun")??"NoTestRun";E.includes(s)||n(`Not a test level: "${s}". One of: ${E.join(", ")}.`);let a=s,i=t("--run-test");for(let d of i)F.test(d)||n(`Not an Apex class name: "${d}".`);return a==="RunSpecifiedTests"&&i.length===0&&n("RunSpecifiedTests needs a test class: give --run-test."),a!=="RunSpecifiedTests"&&i.length>0&&n("--run-test names the tests of --tests RunSpecifiedTests only."),{components:o,testLevel:a,runTests:i}}var Ce={created:"would be created",changed:"would change"};function xe(t){let{counts:e}=t,n=t.checkOnly?16:13,r=[` ${t.checkOnly?"validation":"deployment"} ${t.deployId??"(none sent)"}: ${t.status}, ${t.success?"success":"no success"}`+(t.errorMessage?` \u2014 ${t.errorMessage}`:""),` components: ${e.componentsDeployed} of ${e.componentsTotal} without an error, ${e.componentErrors} with one; tests (${t.testLevel}${t.runTests.length>0?`: ${t.runTests.join(", ")}`:""}): ${e.testsCompleted} of ${e.testsTotal} passed, ${e.testErrors} failed`];for(let o of t.components){let s=o.line!==void 0?` (line ${o.line}${o.column!==void 0?`, column ${o.column}`:""})`:"",a=o.problem?` \u2014 ${o.problem}${s}`:"",i=(t.checkOnly?Ce[o.outcome]:void 0)??o.outcome;r.push(` ${i.padEnd(n)} ${o.componentType} ${o.fullName}${a}`)}for(let o of t.testFailures){let s=o.methodName?`${o.className}.${o.methodName}`:o.className,a=o.line!==void 0?` (line ${o.line})`:"";r.push(` test failed ${s}${a} \u2014 ${o.message}`)}for(let o of t.coverageWarnings)r.push(` coverage ${o}`);for(let o of t.retrieveProblems??[])r.push(` source said ${o}`);return r}function st(t){return ce(t,"modified")}function ce(t,e){let n=new Map;for(let r of t){if(r.status!==e)continue;let o=n.get(r.componentType)??[];o.push(r.fullName),n.set(r.componentType,o)}return n}function Pe(t){let e=n=>t.diffs.filter(r=>r.status===n).map(r=>`${r.componentType}:${r.fullName}`);return{onlyInSource:e("removed"),onlyInTarget:e("added"),modified:e("modified")}}function Ee(t){let{content:e,summary:n}=t,r=n.modified+n.unchanged+n.notCompared,{over_budget:o,unreadable:s,read_failed:a}=e.notCompared,i=e.managedLeftOut?`; left out, as asked: ${e.managedLeftOut} installed by a managed package`:"",d=o>0&&e.budget.components<T?`; --read-budget raises it, up to ${T}, a readMetadata call per 10 more in each org`:"";return` content compared for ${e.compared} of ${r} in both orgs; not compared: ${o} over the budget (${e.budget.components} per org, ${e.budget.seconds} s${d}), ${s} unreadable, ${a} read failed${i}`}function Ie(t){let{summary:e}=t,n=[` mode ${t.mode}, ${e.totalItems} item(s): +${e.removed} only in the source -${e.added} only in the target ~${e.modified} modified =${e.unchanged} unchanged ?${e.notCompared} not compared`," + a deployment creates it in the target, - a deployment leaves it there (SandForge deploys no deletion), ~ a deployment replaces what the target holds"],r=new Map;for(let s of t.diffs){let a=r.get(s.componentType)??{};a[s.status]=(a[s.status]??0)+1,r.set(s.componentType,a)}for(let[s,a]of r){let i=(a.modified??0)+(a.unchanged??0)+(a.not_compared??0),d=(a.removed??0)+i,p=(a.added??0)+i;n.push(` ${s.padEnd(26)} source ${String(d).padStart(5)} target ${String(p).padStart(5)} +${a.removed??0} -${a.added??0} ~${a.modified??0} =${a.unchanged??0} ?${a.not_compared??0}`)}n.push(Ee(t));let o=[["removed","only in the source"],["added","only in the target"],["modified","modified"]];for(let[s,a]of o)for(let[i,d]of ce(t.diffs,s))n.push(` ${a} ${i}: ${b(d)}`);return n}function b(t,e=8){if(t.length===0)return"\u2014";let n=t.slice(0,e).join(", ");return t.length>e?`${n} \u2026 (+${t.length-e})`:n}function ae(t,e){let n=(e.sourceOnly??[]).map(o=>o.name),r=(e.targetOnly??[]).map(o=>o.name);return[` ${t}: ${n.length} source only, ${r.length} target only, ${(e.shared??[]).length} in both`,` source only: ${b(n)}`,` target only: ${b(r)}`]}function ke(t){return t.code!=="MANAGED"||!Array.isArray(t.managed)?[]:t.managed.filter(e=>typeof e=="object"&&e!==null&&typeof e.componentType=="string"&&typeof e.fullName=="string")}function A(t){return t.success&&t.counts.componentErrors===0&&t.counts.testErrors===0}function _(t,e,n="--validate"){let r=`${(e.elapsedMs/1e3).toFixed(1)}s`,o=`compare:${t} ${e.outcome} in ${r}`,s=[e.late?`${o} \u2014 past the page's timeout: the page dropped it`:o],a=e.message?.payload??{};if(e.outcome!=="answered"){let d=ke(a);return d.length>0?(s.push(` a managed package installed ${d.map(p=>`${p.componentType} ${p.fullName}`).join(", ")} in the source, and it owns them: drop `+d.map(p=>`${n} ${p.componentType}:${p.fullName}`).join(" ")+" from the line and run it again. Nothing was sent to the target."),s):(e.message&&s.push(` ${String(a.message??JSON.stringify(a))}`),e.outcome==="unanswered"&&s.push(t==="deploy"?` nothing came back in ${Math.round(e.elapsedMs/1e3)} s: the deployment may go on in the target, whose Setup \u203A Deployment Status follows it; give a longer --wait`:` nothing came back in ${Math.round(e.elapsedMs/1e3)} s: give a longer --wait`+(t==="execute"?", or fewer --type":"")),s)}if(t==="execute")return[...s,...Ie(a)];if(t==="validate-deployment"||t==="deploy"){let d=a.report;return d?[...s,...xe(d)]:[...s," (no report)"]}if(t==="permissions"){let d=a.permissions??{};return[...s,...ae("permission sets",d.permissionSets??{}),...ae("profiles",d.profiles??{})]}if(t==="snapshots"){let d=a.snapshot??{},p=l=>l?`${l.totalObjects} objects (${l.customObjects} custom, ${l.standardObjects} standard, ${l.queryableObjects} queryable)`:"\u2014";return[...s,` source: ${p(d.source)}`,` target: ${p(d.target)}`,` ${d.diff?.sharedCount??0} in both; source only: ${b(d.diff?.sourceOnly??[])}`,` target only: ${b(d.diff?.targetOnly??[])}`]}let i=a.drift??{};return[...s,...(i.items??[]).map(d=>` ${d.status.padEnd(14)} ${d.setting}: ${d.sourceValue} | ${d.targetValue}`)]}function j(t,e=!1){if(t.some(({answer:s})=>s.outcome!=="answered"))return 1;let n=s=>s.message?.payload??{};if(t.some(({op:s,answer:a})=>{if(s!=="validate-deployment"&&s!=="deploy")return!1;let i=n(a).report;return i===void 0||!A(i)}))return 3;let o=t.some(({op:s,answer:a})=>{if(s!=="execute")return!1;let i=n(a).summary;return i!==void 0&&i.added+i.removed+i.modified>0});return e&&o?3:0}var Le={retrieve:"retrieving from the source: {done} of {total} components",components:"checking the components: {done} of {total}",tests:"running the Apex tests: {done} of {total}"};function Ne(t){let e,n="",r;return{follow:o=>{e=o,n="",r=void 0},deployId:()=>r,onPost:o=>{if(o.type!=="operation:progress"||e===void 0)return;let s=o.payload??{};if(s.operationId!==e)return;typeof s.deployId=="string"&&(r=s.deployId);let a=typeof s.currentStep=="string"?Le[s.currentStep]:void 0;if(a===void 0)return;let i=a.replace("{done}",String(s.processedRecords??0)).replace("{total}",String(s.totalRecords??0));i!==n&&(n=i,t(` ${i}`))}}}async function Me(t=process.argv,e={}){let n=Re(t),r=d=>{process[n.json?"stderr":"stdout"].write(`${d}
95
+ `)},o=e.terminal??{input:process.stdin,output:process.stderr},{deploy:s}=n;s&&!s.dryRun&&!s.yes&&o.input.isTTY!==!0&&(process.stderr.write(`--deploy asks for ${n.target} to be typed before it deploys, and no terminal is here to type it on: give --yes to deploy without the question, or --dry-run to list what it would deploy. Nothing was sent to either org.
96
+ `),process.exit(2));let a=ee(n.storeDir);if(a!==void 0){process.stderr.write(`${a}
97
+ `),process.exitCode=1;return}let i=s?ie(n.target,"there"):ie(`${n.source} and ${n.target}`,"them");try{await _e(n,e,r,o,i)}finally{i.release()}}async function _e(t,e,n,r,o){let{deploy:s}=t,a=Ne(n),i=(e.createHost??ne)({storeDir:t.storeDir,log:c=>{o.signal.aborted&&/^\s*!|\[ERR\]/.test(c)||/^\s*!|\[(ERR|WARN)\]/.test(c)&&n(c)},waitMs:t.waitMs,onPost:a.onPost,...s?{compose:c=>c.handlers.setInfraServices({productionGuard:te(n,t.target),deploymentsLetGo:o.signal})}:{}}),d=await D((async()=>{let c=await i.connect(t.source),m=await i.connect(t.target);return{source:c,target:m}})(),o.signal);if(d===void 0){if(n(` stopped while connecting to ${t.source} and ${t.target}: nothing was sent to either org.`),t.json){let c={stoppedDuring:"connection"};process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:[],...s?{deploy:{...ge(t,s),outcome:"interrupted",...c}}:{interrupted:c},posted:i.posted},null,2)}
98
+ `)}process.exitCode=o.code();return}let{source:p,target:l}=d;if(n(`sandforge compare ${t.source} (${p.orgType}) -> ${t.target} (${l.orgType})`),s){await He({args:t,deploy:s,host:i,source:p,target:l,log:n,terminal:r,progress:a,halt:o});return}await je({args:t,host:i,source:p,target:l,log:n,progress:a,halt:o})}async function je(t){let{args:e,host:n,source:r,target:o,log:s,progress:a,halt:i}=t;e.diffLeftOut&&s("no --type or --all-types: the diff is left out, as the page runs none with no category ticked; give --type <Type> or --all-types to diff the metadata");let d=[],p=l=>{e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:d,...l?{interrupted:l}:{},posted:n.posted},null,2)}
99
+ `)};for(let l of e.operations){let c={sourceOrgId:r.id,targetOrgId:o.id};if(l==="execute"&&(c.types=e.types,c.includeManaged=e.includeManaged,e.readBudget!==void 0)){c.readBudget=e.readBudget;let y=k(e.readBudget);s(`the diff reads by content up to ${y.components} components from each org: up to ${z(y.components)} readMetadata calls in each org, and no read started after ${y.seconds} s`)}let m=l==="validate-deployment"?`cli-validate-${M()}`:void 0;l==="validate-deployment"&&(c.components=e.validation.components,c.testLevel=e.validation.testLevel,e.validation.testLevel==="RunSpecifiedTests"&&(c.runTests=e.validation.runTests),a.follow(m));let g=await D(n.request({...m!==void 0?{id:m}:{},type:`compare:${l}`,payload:c,...l==="execute"?{timeoutMs:ve(e.readBudget)}:{},...l==="validate-deployment"?{timeoutMs:le}:{}}),i.signal),h=a.deployId();if(a.follow(void 0),g===void 0){l==="validate-deployment"?(s(ue(e.target,e.validation.components.length,h)),p({stoppedDuring:l,...h!==void 0?{validationId:h}:{}})):(s(` stopped during compare:${l}: a comparison only reads, and nothing was written to either org.`),p({stoppedDuring:l})),process.exitCode=i.code();return}let u=l==="execute"&&g.outcome==="answered"?g.message?.payload:void 0;d.push({op:l,answer:g,...Array.isArray(u?.diffs)?{changes:Pe({diffs:u.diffs})}:{}});for(let y of _(l,g))s(y);l==="validate-deployment"&&fe(g)!==void 0&&s(" --deploy in place of each --validate deploys it: it validates it again, then deploys what the target validated")}p(),O(j(d,e.failOnDrift))}function ue(t,e,n){return n!==void 0?` stopped while ${t} validated ${e===1?"the component":"the components"} as ${n}: nothing was deployed to ${t}. The validation goes on there check-only and keeps nothing; Setup \u203A Deployment Status lists it.`:` stopped before ${t} gave the validation an id: nothing was deployed to ${t}, and a validation, check-only, keeps nothing there.`}function ie(t,e){let n=new AbortController,r,o={open:!1},s=K(a=>{r=a;let i=o.open;n.abort(),process.stderr.write(`${i?"":`
100
+ `}interrupted: the run stops waiting on ${t} and says what it sent ${e} (${X(a)})
101
+ `)});return{signal:n.signal,question:o,code:()=>J(r??"SIGINT"),release:s}}function fe(t){if(t.outcome!=="answered")return;let e=t.message?.payload?.report;return e!==void 0&&e.deployId!==void 0&&A(e)?e:void 0}function ge(t,e){return{source:t.source,target:t.target,components:e.components,testLevel:e.testLevel,runTests:e.runTests}}async function He(t){let{args:e,deploy:n,host:r,target:o,log:s}=t;if(U(o)==="production"){let l=o.metadata?.edition,c=W(e.target,{id:o.id,sandbox:o.orgType==="Sandbox"||o.orgType==="Scratch",...l?{edition:l}:{}},{tool:P("sandforge-compare"),action:"write",readOnly:de})??`${e.target} is taken for a production org: ${P("sandforge-compare")} deploys to sandboxes, scratch orgs and Developer Edition orgs only. Nothing was written; ${de}, which only reads, runs against it.`;process.stderr.write(`${c}
102
+ `),process.exitCode=1;return}for(let l of Ue(e.source,e.target,n))s(l);let a=ge(e,n),i=[],d=(l,c={})=>{e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:i,deploy:{...a,outcome:l,...c},posted:r.posted},null,2)}
103
+ `)};if(n.dryRun){s(`dry run: nothing was sent to ${e.source} or ${e.target}. The run validates ${Fe(n.components.length)} in ${e.target}, then deploys what it validated once ${e.target} is typed, or with --yes.`),d("dry-run");return}let p=(l,c,m)=>{s(c),d("interrupted",{stoppedDuring:l,...m}),process.exitCode=t.halt.code()};await Be(t,{results:i,answerJson:d,stop:t.halt.signal,stopped:p,question:t.halt.question})}function D(t,e){return e.aborted?Promise.resolve(void 0):new Promise((n,r)=>{let o=()=>n(void 0);e.addEventListener("abort",o,{once:!0}),t.then(s=>{e.removeEventListener("abort",o),n(s)},s=>{e.removeEventListener("abort",o),r(s instanceof Error?s:new Error(String(s)))})})}var qe=5e3;function Ge(t,e){return new Promise(n=>{let r=setTimeout(n,e),o=()=>{clearTimeout(r),n()};t.then(o,o)})}async function Be(t,e){let{args:n,deploy:r,host:o,target:s,log:a}=t,{results:i,answerJson:d,stop:p,stopped:l,question:c}=e,m=r.components.length===1?"the component":"the components",g=`cli-validate-${M()}`;t.progress.follow(g);let h=await D(o.request({id:g,type:"compare:validate-deployment",payload:{sourceOrgId:t.source.id,targetOrgId:s.id,components:r.components,testLevel:r.testLevel,...r.testLevel==="RunSpecifiedTests"?{runTests:r.runTests}:{}},timeoutMs:le}),p),u=t.progress.deployId();if(t.progress.follow(void 0),h===void 0){l("validation",ue(n.target,r.components.length,u),u!==void 0?{validationId:u}:{});return}i.push({op:"validate-deployment",answer:h});for(let v of _("validate-deployment",h,"--deploy"))a(v);let y=fe(h);if(y?.deployId===void 0){a(` the validation did not succeed: nothing was deployed to ${n.target}`),d("validation-failed"),O(j(i));return}let f=y.deployId,H=r.components.length;if(a(`Deploy to ${n.target}: `+(H===1?`the component validated as ${f} will be deployed to ${n.target}, with the same tests, and ${n.target} keeps it.`:`the ${H} components validated as ${f} will be deployed to ${n.target}, with the same tests, and ${n.target} keeps them.`)),!r.yes){c.open=!0;let v=await Y(`Type ${n.target} to deploy it:`,t.terminal,p);if(c.open=!1,p.aborted){l("confirmation",` stopped at the question: nothing was deployed to ${n.target}. The validation ${f} changed nothing there.`,{validationId:f});return}if(v!==n.target){a(`Nothing was deployed: what was typed is not ${n.target}. The validation ${f} changed nothing there.`),d("declined",{validationId:f}),process.exitCode=1;return}}let q=`cli-deploy-${M()}`;t.progress.follow(q);let G=o.request({id:q,type:"compare:deploy",payload:{validationId:f,targetOrgId:s.id},timeoutMs:Te}),w=await D(G,p),$=t.progress.deployId();if(t.progress.follow(void 0),w===void 0){await Ge(G,qe),l("deployment",($!==void 0?` stopped while ${n.target} deployed ${m} as ${$}: the deployment goes on in ${n.target}, which keeps what it deploys unless it fails and is rolled back whole. Setup \u203A Deployment Status follows it as ${$}, and can cancel it there while it runs.`:` stopped while the deployment of validation ${f} was on its way to ${n.target}: if ${n.target} took it, the deployment goes on there, and Setup \u203A Deployment Status follows it.`)+" The audit trail of the store records it as left running.",{validationId:f,...$!==void 0?{deploymentId:$}:{}});return}i.push({op:"deploy",answer:w});for(let v of _("deploy",w))a(v);let S=w.message?.payload?.report,x=S?.deployId,B=w.outcome==="answered"&&S!==void 0;B&&a(A(S)?` deployed to ${n.target}, which lists it in Setup \u203A Deployment Status as ${x??"(no id)"}. SandForge deploys no deletion: what it created stays in ${n.target} until it is deleted there.`:` the deployment failed in ${n.target} and was rolled back: ${n.target} kept nothing.`),d(B?A(S)?"deployed":"rolled-back":"deployment-unsettled",{validationId:f,...x!==void 0?{deploymentId:x}:{}}),O(j(i))}var de="a comparison without --deploy";function Fe(t){return`${t} component${t===1?"":"s"}`}function Ue(t,e,n){let r=n.testLevel==="RunSpecifiedTests"?`${n.testLevel}: ${n.runTests.join(", ")}`:n.testLevel;return[`deploy from ${t} to ${e}, validated in ${e} first: it compiles the components, runs the tests asked for and keeps nothing; then the package it validated is deployed, once ${e} is typed or with --yes. Nothing is deleted from ${e}.`,...n.components.map(o=>` ${o.componentType} ${o.fullName}`),` Apex tests in ${e}: ${r}`+(n.testsAdvised?" \u2014 Apex is among the components: as the Deploy tab advises, the target\u2019s own tests run unless --tests says otherwise":"")]}process.argv[1]?.includes("sandforge-compare")&&(Z(),Me().then(()=>process.exit(process.exitCode??0)).catch(t=>{process.stderr.write(`${t instanceof Error?t.message:String(t)}
104
+ `),process.exit(1)}));export{N as PAGE_COMPONENT_TYPES,Pe as changesOf,j as compareExitCode,Ue as deployPlanLines,_ as describeAnswer,Ee as describeCoverage,xe as describeDeployment,Me as main,st as modifiedByType,Re as parseArgs,Ne as progressLines};
@@ -4,4 +4,4 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"./chunk-4KMKOE77.mjs";import"./chunk-TW3N6W5Z.mjs";import"./chunk-5GBO4KD5.mjs";import"./chunk-WQO7RXEB.mjs";import"./chunk-RY7WUJXH.mjs";import"./chunk-UX4AOSMU.mjs";import"./chunk-UZMLPKW6.mjs";import"./chunk-2METQHGG.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-MQLTEXB7.mjs";import"./chunk-AAOMUI7S.mjs";import"./chunk-JHJDDQDE.mjs";import"./chunk-ULEYGOZU.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-W6SLQZKQ.mjs";import"./chunk-RIIJJRGF.mjs";import"./chunk-EYFP3NA6.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-LSEM2BZH.mjs";import"./chunk-ZLQHBI6V.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-4BQPAVMP.mjs";import"./chunk-RKTFFCNS.mjs";import"./chunk-SAHGDSZQ.mjs";import"./chunk-32ZB5ICW.mjs";import"./chunk-TG52WNGV.mjs";import"./chunk-CSSOLHE3.mjs";import"./chunk-HGJFATSI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5EESNYE3.mjs";import"./chunk-QAXKUEJT.mjs";import"./chunk-JKFCGYJE.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-EINEGS6E.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-RM5G4IP6.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-B5A4JHNN.mjs";import"./chunk-YGE4AUXG.mjs";import"./chunk-C2MHMI7U.mjs";import"./chunk-RFD6NPWJ.mjs";import"./chunk-SF52ZSIV.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-P6A22FMQ.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-XZRON54U.mjs";import"./chunk-3EOIAC2M.mjs";import"./chunk-AIUAEBHR.mjs";import"./chunk-O3ZQSWDN.mjs";import"./chunk-DNE7JI3A.mjs";import"./chunk-CI2O7WBH.mjs";import"./chunk-5T3LFDJ5.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-AX3YF7SC.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-JBOGAUGH.mjs";import"./chunk-4N425UJC.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-TWYNQ2OO.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-FG4Y4ZVL.mjs";import"./chunk-Z354SAEF.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-THYQOG24.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-JFVY66BS.mjs";import"./chunk-GUYEXPJ4.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-CRPLDXJU.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{j as dryRunLines,m as main,l as maskingInterruptedLine,n as maskingQuestion,b as masksObject,e as missingFieldLine,f as notWritableLine,a as parseArgs,k as restoreInterruptedLine,c as resultLines,g as runWouldBeRefused,i as slicePlanLines,h as sliceRefusedLines,d as sliceSetLines};
7
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"./chunk-GQZEX7LH.mjs";import"./chunk-TLX45X5U.mjs";import"./chunk-5GBO4KD5.mjs";import"./chunk-E5FSPXYH.mjs";import"./chunk-IQ5UKRHU.mjs";import"./chunk-VT6P3X6R.mjs";import"./chunk-ALWVNR34.mjs";import"./chunk-QHE2RUWX.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-ON7Y63FK.mjs";import"./chunk-7KHA5UIQ.mjs";import"./chunk-YTOTMJTY.mjs";import"./chunk-WJGK6VGU.mjs";import"./chunk-3L6DVNCR.mjs";import"./chunk-54V4FVEY.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-TZXYVMZC.mjs";import"./chunk-TMIV3IWH.mjs";import"./chunk-CJAWKLAL.mjs";import"./chunk-PE7CHD2W.mjs";import"./chunk-VKREON6Q.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-DDNCJVZ2.mjs";import"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{l as automaticPlanLines,m as dryRunLines,d as historyLines,e as historyRefusedLine,p as main,o as maskingInterruptedLine,q as maskingQuestion,b as masksObject,g as missingFieldLine,h as notWritableLine,a as parseArgs,n as restoreInterruptedLine,c as resultLines,i as runWouldBeRefused,k as slicePlanLines,j as sliceRefusedLines,f as sliceSetLines};