sandforge 1.82.0 → 1.84.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 (251) hide show
  1. package/README.md +1 -1
  2. package/lib/chunk-23SEDORH.mjs +11 -0
  3. package/lib/{chunk-7WSLT5VX.mjs → chunk-24RFOFYT.mjs} +1 -1
  4. package/lib/chunk-26POJDIT.mjs +7 -0
  5. package/lib/{chunk-SFGZFB4F.mjs → chunk-2AZQHBEF.mjs} +1 -1
  6. package/lib/{chunk-6VSZNZHH.mjs → chunk-2HVOZUM4.mjs} +1 -1
  7. package/lib/{chunk-XFU3HRUV.mjs → chunk-2JDAOWUW.mjs} +1 -1
  8. package/lib/{chunk-BNKT3R3F.mjs → chunk-2METQHGG.mjs} +1 -1
  9. package/lib/chunk-2WFIVO4F.mjs +13 -0
  10. package/lib/chunk-2YHZBUZE.mjs +7 -0
  11. package/lib/{chunk-SZGGFST2.mjs → chunk-326AJTIU.mjs} +14 -14
  12. package/lib/{chunk-Q6SXNKV2.mjs → chunk-36JOHEJL.mjs} +1 -1
  13. package/lib/chunk-3PVRGTVK.mjs +7 -0
  14. package/lib/{chunk-VZVICK7Q.mjs → chunk-3Q353S2R.mjs} +1 -1
  15. package/lib/chunk-3TZSBHEY.mjs +7 -0
  16. package/lib/{chunk-UHFLKP26.mjs → chunk-43TOMFV4.mjs} +1 -1
  17. package/lib/{chunk-XK5W7BVE.mjs → chunk-4CVUUVGJ.mjs} +1 -1
  18. package/lib/{chunk-VYOYXTCU.mjs → chunk-4EOHEDFP.mjs} +1 -1
  19. package/lib/{chunk-EOFO3PHS.mjs → chunk-4JE4BYXK.mjs} +1 -1
  20. package/lib/{chunk-7EYQYZJP.mjs → chunk-54WZUS7J.mjs} +1 -1
  21. package/lib/chunk-5CRLRHOJ.mjs +7 -0
  22. package/lib/{chunk-FA4ZKDCU.mjs → chunk-5IZTFMJM.mjs} +1 -1
  23. package/lib/chunk-5M5FQ7RP.mjs +7 -0
  24. package/lib/{chunk-3HROD5RE.mjs → chunk-5SMWFNE7.mjs} +1 -1
  25. package/lib/{chunk-YAIIRFKJ.mjs → chunk-5XTUSN72.mjs} +1 -1
  26. package/lib/chunk-6I6TWNV5.mjs +7 -0
  27. package/lib/{chunk-PYRZFUVU.mjs → chunk-6JWWSDM6.mjs} +1 -1
  28. package/lib/chunk-6O222PW6.mjs +7 -0
  29. package/lib/{chunk-2UU42PTD.mjs → chunk-6PD6K7LP.mjs} +1 -1
  30. package/lib/{chunk-GGUOIDWP.mjs → chunk-6QE6R6RL.mjs} +1 -1
  31. package/lib/{chunk-DJCGURW7.mjs → chunk-6WX5ZU7Q.mjs} +1 -1
  32. package/lib/{chunk-DT3T7FRD.mjs → chunk-6YL7BNYD.mjs} +1 -1
  33. package/lib/chunk-6ZLKIT3H.mjs +7 -0
  34. package/lib/{chunk-CBL42DUU.mjs → chunk-7QYHEHMA.mjs} +1 -1
  35. package/lib/chunk-7SQSWVAU.mjs +9 -0
  36. package/lib/{chunk-ZUBBEP75.mjs → chunk-7UVKIWKV.mjs} +1 -1
  37. package/lib/{chunk-TWV4A5RK.mjs → chunk-7WATA4SB.mjs} +1 -1
  38. package/lib/chunk-7YNM6KFZ.mjs +7 -0
  39. package/lib/chunk-A3MYSOOC.mjs +7 -0
  40. package/lib/chunk-AL4C3GFT.mjs +7 -0
  41. package/lib/chunk-B3FBHVNN.mjs +21 -0
  42. package/lib/{chunk-27Z76O2O.mjs → chunk-B63POIPQ.mjs} +1 -1
  43. package/lib/{chunk-RTWYLOCA.mjs → chunk-BAWCOKRW.mjs} +1 -1
  44. package/lib/{chunk-NWOI25WY.mjs → chunk-BBRWFKS5.mjs} +1 -1
  45. package/lib/chunk-BEA27DLS.mjs +7 -0
  46. package/lib/chunk-BRY3PLIZ.mjs +7 -0
  47. package/lib/chunk-CBH3TOWK.mjs +341 -0
  48. package/lib/chunk-CPQIZGG5.mjs +7 -0
  49. package/lib/chunk-CVHNXJH3.mjs +7 -0
  50. package/lib/{chunk-HFUDCNU5.mjs → chunk-D4GF4FAB.mjs} +1 -1
  51. package/lib/chunk-DGDRQRCW.mjs +7 -0
  52. package/lib/{chunk-YAJQS3OL.mjs → chunk-DPMRIMUC.mjs} +1 -1
  53. package/lib/chunk-DUN2EPRC.mjs +7 -0
  54. package/lib/chunk-E3A3LOCY.mjs +7 -0
  55. package/lib/{chunk-TMA34QMA.mjs → chunk-EAC5QCE3.mjs} +1 -1
  56. package/lib/{chunk-VQJMP3DC.mjs → chunk-EC72TIEG.mjs} +1 -1
  57. package/lib/chunk-EPFCERGL.mjs +7 -0
  58. package/lib/{chunk-3MGMNK3Q.mjs → chunk-ETDCBLGU.mjs} +1 -1
  59. package/lib/{chunk-LXDSRP2W.mjs → chunk-F3AQW6IU.mjs} +1 -1
  60. package/lib/{chunk-A65ADTCR.mjs → chunk-FITPY3L4.mjs} +1 -1
  61. package/lib/chunk-FNJ4SGWO.mjs +7 -0
  62. package/lib/{chunk-SAMWHL22.mjs → chunk-FP7CYB2F.mjs} +1 -1
  63. package/lib/{chunk-JLZRZL5E.mjs → chunk-GKY2JMHY.mjs} +1 -1
  64. package/lib/chunk-GMIGWR6U.mjs +7 -0
  65. package/lib/{chunk-AUS6NFLZ.mjs → chunk-GNRSF65U.mjs} +1 -1
  66. package/lib/chunk-GOOVPVWX.mjs +7 -0
  67. package/lib/{chunk-PPHVWUFY.mjs → chunk-GWZRR3MM.mjs} +1 -1
  68. package/lib/{chunk-JH27IKCO.mjs → chunk-H2BHESDA.mjs} +2 -2
  69. package/lib/chunk-H33DVU3D.mjs +7 -0
  70. package/lib/chunk-H4CGM6YO.mjs +7 -0
  71. package/lib/{chunk-WOOUISSO.mjs → chunk-HCGXK7G7.mjs} +1 -1
  72. package/lib/{chunk-VZT4E2OJ.mjs → chunk-HIDW7FNV.mjs} +1 -1
  73. package/lib/chunk-HSBXRQTI.mjs +7 -0
  74. package/lib/chunk-HUZPBE47.mjs +7 -0
  75. package/lib/chunk-HV7VPEXP.mjs +7 -0
  76. package/lib/chunk-I6E6T6YY.mjs +7 -0
  77. package/lib/chunk-IUM4NFKI.mjs +10 -0
  78. package/lib/chunk-IVFVNNGB.mjs +37 -0
  79. package/lib/{chunk-5K2I2DMP.mjs → chunk-IZGCEOYO.mjs} +1 -1
  80. package/lib/{chunk-ZHIZY3ZC.mjs → chunk-J3DND3BC.mjs} +1 -1
  81. package/lib/{chunk-VPDEJGPS.mjs → chunk-JAEDM4SI.mjs} +1 -1
  82. package/lib/chunk-JCFBFF4Y.mjs +7 -0
  83. package/lib/{chunk-GBGHJTPC.mjs → chunk-JE6SCT6R.mjs} +1 -1
  84. package/lib/chunk-JGZPD4IM.mjs +7 -0
  85. package/lib/{chunk-C3LNYAVJ.mjs → chunk-JKJ74BX5.mjs} +1 -1
  86. package/lib/{chunk-EEFUE2ES.mjs → chunk-JLSIWO4Z.mjs} +1 -1
  87. package/lib/{chunk-3CX7GPCR.mjs → chunk-JSAJS3MY.mjs} +1 -1
  88. package/lib/chunk-JTJK2D36.mjs +7 -0
  89. package/lib/{chunk-V3R45ZWT.mjs → chunk-KAZS5Z6W.mjs} +1 -1
  90. package/lib/chunk-KB4ZHM4Q.mjs +10 -0
  91. package/lib/{chunk-J24TIGSI.mjs → chunk-KGU4SVIT.mjs} +1 -1
  92. package/lib/chunk-KJWFYBMU.mjs +15 -0
  93. package/lib/{chunk-H4JUYUSL.mjs → chunk-KZTZDC7H.mjs} +1 -1
  94. package/lib/chunk-L2E5WBGD.mjs +8 -0
  95. package/lib/{chunk-XU25YA46.mjs → chunk-L53JWJ3S.mjs} +1 -1
  96. package/lib/{chunk-Y4TDVDP2.mjs → chunk-LA4KIATH.mjs} +6 -6
  97. package/lib/chunk-LC3NDW4N.mjs +7 -0
  98. package/lib/{chunk-GCGHHN4K.mjs → chunk-LKTNQEBS.mjs} +1 -1
  99. package/lib/chunk-M2ABR4JM.mjs +7 -0
  100. package/lib/{chunk-3C2ZZIFN.mjs → chunk-M4BLK6HJ.mjs} +1 -1
  101. package/lib/{chunk-L4INJ5TZ.mjs → chunk-M6K34KGF.mjs} +1 -1
  102. package/lib/chunk-MDMPJEV3.mjs +7 -0
  103. package/lib/{chunk-32EUNQT6.mjs → chunk-MJZU3U5O.mjs} +68 -63
  104. package/lib/{chunk-PBE44M2Y.mjs → chunk-MSIEU5MR.mjs} +1 -1
  105. package/lib/{chunk-NLB3RGIY.mjs → chunk-N4WPCWJO.mjs} +1 -1
  106. package/lib/{chunk-SNEOKYV7.mjs → chunk-NCZKWSC7.mjs} +1 -1
  107. package/lib/{chunk-6KP6WETK.mjs → chunk-NED4MBIM.mjs} +1 -1
  108. package/lib/chunk-NOBQTEQD.mjs +7 -0
  109. package/lib/{chunk-RCYEBY42.mjs → chunk-NSQWI7ZY.mjs} +1 -1
  110. package/lib/{chunk-DBBPDSFN.mjs → chunk-O677VOGO.mjs} +1 -1
  111. package/lib/chunk-OFTT7J2M.mjs +7 -0
  112. package/lib/{chunk-C2N2TNEU.mjs → chunk-OLCVHL7I.mjs} +1 -1
  113. package/lib/chunk-OM5NORJG.mjs +7 -0
  114. package/lib/chunk-OMNMLKDT.mjs +7 -0
  115. package/lib/{chunk-CELEBWEZ.mjs → chunk-OPMO6I45.mjs} +1 -1
  116. package/lib/{chunk-LHU6CPGE.mjs → chunk-OUZQPYT3.mjs} +1 -1
  117. package/lib/chunk-OVNMB6Q2.mjs +7 -0
  118. package/lib/{chunk-6GQUZ4IP.mjs → chunk-PAXNWTYK.mjs} +1 -1
  119. package/lib/{chunk-XSKPYGMT.mjs → chunk-PBY2O6OF.mjs} +1 -1
  120. package/lib/chunk-PEDQPM2P.mjs +926 -0
  121. package/lib/chunk-PH7SP4YK.mjs +21 -0
  122. package/lib/{chunk-3SKLBRPL.mjs → chunk-PMN4PAC3.mjs} +1 -1
  123. package/lib/chunk-PMWAFDUB.mjs +48 -0
  124. package/lib/chunk-PPLVFX6N.mjs +7 -0
  125. package/lib/{chunk-STRMWSIQ.mjs → chunk-PR3XCSPO.mjs} +1 -1
  126. package/lib/{chunk-GJ6SZVHT.mjs → chunk-PR42EZSR.mjs} +1 -1
  127. package/lib/{chunk-YMDFF657.mjs → chunk-PWRJRL5U.mjs} +1 -1
  128. package/lib/{chunk-Q3DY7TO2.mjs → chunk-Q7GIJBCD.mjs} +1 -1
  129. package/lib/chunk-Q7TLC3I2.mjs +7 -0
  130. package/lib/{chunk-ZXFL2MSN.mjs → chunk-QAFPQ3YB.mjs} +1 -1
  131. package/lib/{chunk-T7WREYA5.mjs → chunk-QKEKG2LD.mjs} +1 -1
  132. package/lib/chunk-QO53K5W2.mjs +9 -0
  133. package/lib/{chunk-MUEQRIK7.mjs → chunk-QTG6LUZT.mjs} +1 -1
  134. package/lib/{chunk-KP5G6FUC.mjs → chunk-RE7RYF3B.mjs} +1 -1
  135. package/lib/{chunk-FOIWWK7G.mjs → chunk-RGBGUCJA.mjs} +1 -1
  136. package/lib/{chunk-DWMRIWV5.mjs → chunk-RGUQOSBU.mjs} +1 -1
  137. package/lib/{chunk-7PY3VQP3.mjs → chunk-RHNTHGNU.mjs} +1 -1
  138. package/lib/chunk-RKTFFCNS.mjs +7 -0
  139. package/lib/chunk-RMFU4BAL.mjs +28 -0
  140. package/lib/{chunk-KKOA62S4.mjs → chunk-ROV3QXEF.mjs} +14 -13
  141. package/lib/chunk-RT47RKLY.mjs +7 -0
  142. package/lib/{chunk-ZUTUYBNW.mjs → chunk-S42RBRH2.mjs} +1 -1
  143. package/lib/{chunk-Z42PHCVZ.mjs → chunk-SI267LYR.mjs} +1 -1
  144. package/lib/chunk-T3G6VZNS.mjs +7 -0
  145. package/lib/chunk-TNT27RBG.mjs +7 -0
  146. package/lib/chunk-UBIKR5VO.mjs +7 -0
  147. package/lib/chunk-UI3JQVRU.mjs +8 -0
  148. package/lib/{chunk-YT22LMF7.mjs → chunk-UIOMAX56.mjs} +1 -1
  149. package/lib/chunk-UX3BVH2Y.mjs +7 -0
  150. package/lib/chunk-VCUXCK36.mjs +7 -0
  151. package/lib/chunk-VINGECAJ.mjs +10 -0
  152. package/lib/chunk-VOXJHJIE.mjs +7 -0
  153. package/lib/chunk-W6PN6TJG.mjs +7 -0
  154. package/lib/{chunk-FKK5YBGZ.mjs → chunk-WAPSSYMT.mjs} +1 -1
  155. package/lib/{chunk-PR74GYVI.mjs → chunk-WUUKFE2U.mjs} +1 -1
  156. package/lib/chunk-WWTCWWZI.mjs +7 -0
  157. package/lib/chunk-WXDLQT2O.mjs +10 -0
  158. package/lib/chunk-WY5V5PR3.mjs +7 -0
  159. package/lib/chunk-X4BXESMQ.mjs +7 -0
  160. package/lib/chunk-XBQGZGWR.mjs +7 -0
  161. package/lib/chunk-XGGOUNPP.mjs +7 -0
  162. package/lib/chunk-XKWW3GKF.mjs +7 -0
  163. package/lib/{chunk-JJITOWZK.mjs → chunk-Y2DRK37K.mjs} +1 -1
  164. package/lib/{chunk-XZISAZA6.mjs → chunk-YA6ATMTB.mjs} +1 -1
  165. package/lib/{chunk-54HYHHVL.mjs → chunk-YDXMTWAT.mjs} +1 -1
  166. package/lib/chunk-YHR4WQPR.mjs +7 -0
  167. package/lib/{chunk-KJYEQHYP.mjs → chunk-YTLUYSMF.mjs} +1 -1
  168. package/lib/chunk-YWEQQL3C.mjs +8 -0
  169. package/lib/{chunk-PWVDNN2C.mjs → chunk-Z4LKKOFY.mjs} +1 -1
  170. package/lib/chunk-ZBAWJUG2.mjs +7 -0
  171. package/lib/{chunk-XO5FBOQF.mjs → chunk-ZJW6YOMV.mjs} +1 -1
  172. package/lib/chunk-ZQQXSCVI.mjs +7 -0
  173. package/lib/{chunk-47UHTN3Q.mjs → chunk-ZQWIVYVM.mjs} +1 -1
  174. package/lib/chunk-ZV7ZFQQC.mjs +9 -0
  175. package/lib/sandforge-autopilot.mjs +25 -25
  176. package/lib/sandforge-backup.mjs +1 -1
  177. package/lib/sandforge-checkpoint.mjs +1 -1
  178. package/lib/sandforge-cleanup.mjs +1 -1
  179. package/lib/sandforge-clone.mjs +1 -1
  180. package/lib/sandforge-compare.mjs +52 -21
  181. package/lib/sandforge-dataops.mjs +1 -1
  182. package/lib/sandforge-empty.mjs +4 -4
  183. package/lib/sandforge-env.mjs +106 -107
  184. package/lib/sandforge-frozen.mjs +1 -1
  185. package/lib/sandforge-mcp.mjs +12 -12
  186. package/lib/sandforge-monitor.mjs +1 -1
  187. package/lib/sandforge-pipeline.mjs +1 -1
  188. package/lib/sandforge-seed.mjs +1 -1
  189. package/lib/sandforge-sync.mjs +1 -1
  190. package/lib/sandforge-users.mjs +21 -23
  191. package/lib/sandforge.mjs +1 -1
  192. package/lib/sf/sandforge/compare.mjs +2 -2
  193. package/lib/sfPlugin.mjs +1 -1
  194. package/oclif.manifest.json +1 -1
  195. package/package.json +1 -1
  196. package/lib/chunk-2JZGCCPG.mjs +0 -9
  197. package/lib/chunk-3HEMJTAP.mjs +0 -925
  198. package/lib/chunk-3XG25GTF.mjs +0 -7
  199. package/lib/chunk-42BFLWHR.mjs +0 -7
  200. package/lib/chunk-466F37VD.mjs +0 -7
  201. package/lib/chunk-4JKR4PTZ.mjs +0 -8
  202. package/lib/chunk-52EXDVPN.mjs +0 -7
  203. package/lib/chunk-7CVDVBEE.mjs +0 -7
  204. package/lib/chunk-7LKI7OAS.mjs +0 -7
  205. package/lib/chunk-7SDZR6SR.mjs +0 -7
  206. package/lib/chunk-A32ISQ6M.mjs +0 -28
  207. package/lib/chunk-A7JJWOLT.mjs +0 -7
  208. package/lib/chunk-BMTNTBBM.mjs +0 -7
  209. package/lib/chunk-BN33LVPQ.mjs +0 -7
  210. package/lib/chunk-BZ24IAP5.mjs +0 -7
  211. package/lib/chunk-CCEH7L53.mjs +0 -7
  212. package/lib/chunk-CV47FDQW.mjs +0 -7
  213. package/lib/chunk-CZLJZQCS.mjs +0 -7
  214. package/lib/chunk-DIL62SUN.mjs +0 -7
  215. package/lib/chunk-DIS254AN.mjs +0 -7
  216. package/lib/chunk-FZF23M6R.mjs +0 -7
  217. package/lib/chunk-G2JR3F63.mjs +0 -7
  218. package/lib/chunk-GGNUACTY.mjs +0 -7
  219. package/lib/chunk-GHPR5UVV.mjs +0 -7
  220. package/lib/chunk-HIHCYMSL.mjs +0 -7
  221. package/lib/chunk-HKUWHVI7.mjs +0 -9
  222. package/lib/chunk-HQQVANWQ.mjs +0 -20
  223. package/lib/chunk-IRZJU2PG.mjs +0 -22
  224. package/lib/chunk-ISSP2FZ5.mjs +0 -7
  225. package/lib/chunk-IVZJSDJD.mjs +0 -7
  226. package/lib/chunk-JESRFE2Z.mjs +0 -11
  227. package/lib/chunk-JFNLKHY6.mjs +0 -8
  228. package/lib/chunk-JKT5YAQ2.mjs +0 -7
  229. package/lib/chunk-JQZTMFO7.mjs +0 -7
  230. package/lib/chunk-KIMQQ6JQ.mjs +0 -7
  231. package/lib/chunk-LAUOSXMN.mjs +0 -341
  232. package/lib/chunk-MKTXJCXN.mjs +0 -10
  233. package/lib/chunk-O2PUGRNW.mjs +0 -10
  234. package/lib/chunk-O4BROUGM.mjs +0 -7
  235. package/lib/chunk-P55MKIZX.mjs +0 -37
  236. package/lib/chunk-P63WJMXQ.mjs +0 -7
  237. package/lib/chunk-PE435FVH.mjs +0 -15
  238. package/lib/chunk-PPGDAUEQ.mjs +0 -7
  239. package/lib/chunk-QAPVKPEC.mjs +0 -7
  240. package/lib/chunk-RLWB7F26.mjs +0 -7
  241. package/lib/chunk-RYRMUPMY.mjs +0 -7
  242. package/lib/chunk-SCKUIE3R.mjs +0 -7
  243. package/lib/chunk-SU65Z2BA.mjs +0 -7
  244. package/lib/chunk-TCBAE65A.mjs +0 -7
  245. package/lib/chunk-WEMLDUQA.mjs +0 -7
  246. package/lib/chunk-WSUKC2U3.mjs +0 -7
  247. package/lib/chunk-WT3SCUHS.mjs +0 -7
  248. package/lib/chunk-YGJF55VJ.mjs +0 -7
  249. package/lib/chunk-YH4DYI6D.mjs +0 -7
  250. package/lib/chunk-ZQO5PDX5.mjs +0 -48
  251. package/lib/chunk-ZUOPC4W2.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-GCGHHN4K.mjs";import{a as N,b as ne,c as ie}from"./chunk-5GBO4KD5.mjs";import"./chunk-3HEMJTAP.mjs";import"./chunk-BN33LVPQ.mjs";import"./chunk-JKT5YAQ2.mjs";import"./chunk-QAPVKPEC.mjs";import{a as H}from"./chunk-BNKT3R3F.mjs";import{a as v}from"./chunk-QROPNEGY.mjs";import"./chunk-BZ24IAP5.mjs";import{a as I}from"./chunk-SCKUIE3R.mjs";import{c as _}from"./chunk-6FARZYMJ.mjs";import{a as de}from"./chunk-EEFUE2ES.mjs";import{m as M,p as J}from"./chunk-PE435FVH.mjs";import"./chunk-PWVDNN2C.mjs";import"./chunk-6VSZNZHH.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-MUEQRIK7.mjs";import{Fc as B,Oc as W}from"./chunk-ISSP2FZ5.mjs";import{h as F,i as G}from"./chunk-XU25YA46.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-IVZJSDJD.mjs";import"./chunk-VZT4E2OJ.mjs";import"./chunk-BOGNK4LV.mjs";import{m as Q}from"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import{h as U}from"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as E}from"./chunk-LHU6CPGE.mjs";import"./chunk-PBE44M2Y.mjs";import"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.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-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import{e as z,g as P}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import{Jc as D,x as S}from"./chunk-ZQO5PDX5.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 ae}from"./chunk-LKTNQEBS.mjs";import{a as N,b as ne,c as ie}from"./chunk-5GBO4KD5.mjs";import"./chunk-PEDQPM2P.mjs";import"./chunk-X4BXESMQ.mjs";import"./chunk-EPFCERGL.mjs";import"./chunk-OM5NORJG.mjs";import{a as H}from"./chunk-2METQHGG.mjs";import"./chunk-RKTFFCNS.mjs";import{c as _}from"./chunk-6FARZYMJ.mjs";import{a as de}from"./chunk-JLSIWO4Z.mjs";import{m as M,p as J}from"./chunk-KJWFYBMU.mjs";import"./chunk-Z4LKKOFY.mjs";import"./chunk-2HVOZUM4.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-QTG6LUZT.mjs";import{Fc as B,Oc as W}from"./chunk-XGGOUNPP.mjs";import{h as F,i as G}from"./chunk-L53JWJ3S.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-OFTT7J2M.mjs";import"./chunk-HIDW7FNV.mjs";import"./chunk-BOGNK4LV.mjs";import{a as v}from"./chunk-QROPNEGY.mjs";import{n as Q}from"./chunk-IVFVNNGB.mjs";import"./chunk-6JWWSDM6.mjs";import"./chunk-VINGECAJ.mjs";import"./chunk-H4CGM6YO.mjs";import"./chunk-IUM4NFKI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5XTUSN72.mjs";import"./chunk-Q7GIJBCD.mjs";import"./chunk-YHR4WQPR.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-26POJDIT.mjs";import"./chunk-QIRO4HTE.mjs";import{h as U}from"./chunk-PMN4PAC3.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-H2BHESDA.mjs";import"./chunk-FP7CYB2F.mjs";import"./chunk-NED4MBIM.mjs";import"./chunk-UI3JQVRU.mjs";import"./chunk-KGU4SVIT.mjs";import{a as I}from"./chunk-AL4C3GFT.mjs";import"./chunk-JAEDM4SI.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as E}from"./chunk-OUZQPYT3.mjs";import"./chunk-MSIEU5MR.mjs";import"./chunk-LC3NDW4N.mjs";import"./chunk-KB4ZHM4Q.mjs";import"./chunk-23SEDORH.mjs";import"./chunk-W6PN6TJG.mjs";import"./chunk-3Q353S2R.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-RHNTHGNU.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-D4GF4FAB.mjs";import"./chunk-CVHNXJH3.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-YA6ATMTB.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-M6K34KGF.mjs";import"./chunk-TNT27RBG.mjs";import{e as z,g as P}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-S42RBRH2.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-WUUKFE2U.mjs";import"./chunk-EAC5QCE3.mjs";import"./chunk-TUACWKIH.mjs";import{Wc as D,x as S}from"./chunk-PMWAFDUB.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.
8
8
 
9
9
  Usage:
10
10
  npx sandforge backup --org <alias> [options]
@@ -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-KKOA62S4.mjs";import"./chunk-YGJF55VJ.mjs";import"./chunk-HIHCYMSL.mjs";import"./chunk-JESRFE2Z.mjs";import{b as a,c as b,d as c}from"./chunk-CBL42DUU.mjs";import"./chunk-MKTXJCXN.mjs";import"./chunk-RCYEBY42.mjs";import"./chunk-AUS6NFLZ.mjs";import"./chunk-YH4DYI6D.mjs";import"./chunk-SZGGFST2.mjs";import"./chunk-LAUOSXMN.mjs";import"./chunk-INIQ23K6.mjs";import"./chunk-2UU42PTD.mjs";import"./chunk-GCGHHN4K.mjs";import"./chunk-2JZGCCPG.mjs";import"./chunk-HQQVANWQ.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-DBBPDSFN.mjs";import"./chunk-GBGHJTPC.mjs";import"./chunk-ZRUDYB7O.mjs";import"./chunk-IRZJU2PG.mjs";import"./chunk-Y4TDVDP2.mjs";import"./chunk-JJITOWZK.mjs";import"./chunk-YMDFF657.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-5K2I2DMP.mjs";import"./chunk-7WSLT5VX.mjs";import"./chunk-YT22LMF7.mjs";import"./chunk-G2JR3F63.mjs";import"./chunk-3CX7GPCR.mjs";import"./chunk-A65ADTCR.mjs";import"./chunk-NWOI25WY.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-A7JJWOLT.mjs";import"./chunk-ZXFL2MSN.mjs";import"./chunk-VYOYXTCU.mjs";import"./chunk-C3LNYAVJ.mjs";import"./chunk-GJ6SZVHT.mjs";import"./chunk-52EXDVPN.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-TW3N6W5Z.mjs";import"./chunk-3HEMJTAP.mjs";import"./chunk-BN33LVPQ.mjs";import"./chunk-JKT5YAQ2.mjs";import"./chunk-QAPVKPEC.mjs";import"./chunk-BNKT3R3F.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-BZ24IAP5.mjs";import"./chunk-SCKUIE3R.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-EEFUE2ES.mjs";import"./chunk-PE435FVH.mjs";import"./chunk-PWVDNN2C.mjs";import"./chunk-6VSZNZHH.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-MUEQRIK7.mjs";import"./chunk-ISSP2FZ5.mjs";import"./chunk-XU25YA46.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-IVZJSDJD.mjs";import"./chunk-VZT4E2OJ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-LHU6CPGE.mjs";import"./chunk-PBE44M2Y.mjs";import"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ZQO5PDX5.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,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-ROV3QXEF.mjs";import"./chunk-HUZPBE47.mjs";import"./chunk-2YHZBUZE.mjs";import"./chunk-2WFIVO4F.mjs";import{b as a,c as b,d as c}from"./chunk-7QYHEHMA.mjs";import"./chunk-WXDLQT2O.mjs";import"./chunk-NSQWI7ZY.mjs";import"./chunk-GNRSF65U.mjs";import"./chunk-3TZSBHEY.mjs";import"./chunk-326AJTIU.mjs";import"./chunk-CBH3TOWK.mjs";import"./chunk-INIQ23K6.mjs";import"./chunk-6PD6K7LP.mjs";import"./chunk-PH7SP4YK.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-CPQIZGG5.mjs";import"./chunk-O677VOGO.mjs";import"./chunk-JE6SCT6R.mjs";import"./chunk-ZRUDYB7O.mjs";import"./chunk-B3FBHVNN.mjs";import"./chunk-YWEQQL3C.mjs";import"./chunk-LA4KIATH.mjs";import"./chunk-Y2DRK37K.mjs";import"./chunk-GMIGWR6U.mjs";import"./chunk-PWRJRL5U.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-IZGCEOYO.mjs";import"./chunk-24RFOFYT.mjs";import"./chunk-UIOMAX56.mjs";import"./chunk-3PVRGTVK.mjs";import"./chunk-JSAJS3MY.mjs";import"./chunk-FITPY3L4.mjs";import"./chunk-BBRWFKS5.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-6I6TWNV5.mjs";import"./chunk-QAFPQ3YB.mjs";import"./chunk-4EOHEDFP.mjs";import"./chunk-JKJ74BX5.mjs";import"./chunk-PR42EZSR.mjs";import"./chunk-UX3BVH2Y.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-LKTNQEBS.mjs";import"./chunk-7SQSWVAU.mjs";import"./chunk-TW3N6W5Z.mjs";import"./chunk-PEDQPM2P.mjs";import"./chunk-X4BXESMQ.mjs";import"./chunk-EPFCERGL.mjs";import"./chunk-OM5NORJG.mjs";import"./chunk-2METQHGG.mjs";import"./chunk-RKTFFCNS.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-JLSIWO4Z.mjs";import"./chunk-KJWFYBMU.mjs";import"./chunk-Z4LKKOFY.mjs";import"./chunk-2HVOZUM4.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-QTG6LUZT.mjs";import"./chunk-XGGOUNPP.mjs";import"./chunk-L53JWJ3S.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-OFTT7J2M.mjs";import"./chunk-HIDW7FNV.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-IVFVNNGB.mjs";import"./chunk-6JWWSDM6.mjs";import"./chunk-VINGECAJ.mjs";import"./chunk-H4CGM6YO.mjs";import"./chunk-IUM4NFKI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5XTUSN72.mjs";import"./chunk-Q7GIJBCD.mjs";import"./chunk-YHR4WQPR.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-26POJDIT.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-PMN4PAC3.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-H2BHESDA.mjs";import"./chunk-FP7CYB2F.mjs";import"./chunk-NED4MBIM.mjs";import"./chunk-UI3JQVRU.mjs";import"./chunk-KGU4SVIT.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-JAEDM4SI.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-OUZQPYT3.mjs";import"./chunk-MSIEU5MR.mjs";import"./chunk-LC3NDW4N.mjs";import"./chunk-KB4ZHM4Q.mjs";import"./chunk-23SEDORH.mjs";import"./chunk-W6PN6TJG.mjs";import"./chunk-3Q353S2R.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-RHNTHGNU.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-D4GF4FAB.mjs";import"./chunk-CVHNXJH3.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-YA6ATMTB.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-M6K34KGF.mjs";import"./chunk-TNT27RBG.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-S42RBRH2.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-WUUKFE2U.mjs";import"./chunk-EAC5QCE3.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-PMWAFDUB.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};
@@ -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{b as k}from"./chunk-2JZGCCPG.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-IVZJSDJD.mjs";import"./chunk-VZT4E2OJ.mjs";import"./chunk-BOGNK4LV.mjs";import{j as W}from"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as L,c as P}from"./chunk-LHU6CPGE.mjs";import"./chunk-PBE44M2Y.mjs";import{a as D,b as M}from"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import{Ga as J,oa as z}from"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.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"./chunk-PC247GKX.mjs";import{a as F}from"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import{a as j,h as R}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ZQO5PDX5.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-7SQSWVAU.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-OFTT7J2M.mjs";import"./chunk-HIDW7FNV.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-JAEDM4SI.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as L,c as P}from"./chunk-OUZQPYT3.mjs";import"./chunk-MSIEU5MR.mjs";import"./chunk-LC3NDW4N.mjs";import{La as J,s as W,ta as z}from"./chunk-KB4ZHM4Q.mjs";import"./chunk-23SEDORH.mjs";import{a as D,b as M}from"./chunk-W6PN6TJG.mjs";import"./chunk-3Q353S2R.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-RHNTHGNU.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-D4GF4FAB.mjs";import"./chunk-CVHNXJH3.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-YA6ATMTB.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-M6K34KGF.mjs";import"./chunk-TNT27RBG.mjs";import{a as j,h as R}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-S42RBRH2.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-WUUKFE2U.mjs";import"./chunk-EAC5QCE3.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-PMWAFDUB.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,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-3HEMJTAP.mjs";import"./chunk-BN33LVPQ.mjs";import"./chunk-JKT5YAQ2.mjs";import"./chunk-QAPVKPEC.mjs";import{a}from"./chunk-BNKT3R3F.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-BZ24IAP5.mjs";import"./chunk-SCKUIE3R.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-LHU6CPGE.mjs";import"./chunk-PBE44M2Y.mjs";import"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ZQO5PDX5.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{Db as CLONE_PREVIEW_UNREAD,L as FIELD_EXCLUSION_UNMATCHED,Mb as ROOT_NEVER_CREATED,ib as SWEEP_CLASS_FLAGS,Nb as TABLE_NEVER_CLONED,E as adaptDescribe,b as apiRequestsLine,C as auditDepsOf,db as automationHeldLines,V as choicesLines,z as cliRunSetup,hb as cliSweepInput,ga as cloneApiRequestsJson,n as cloneInputLine,m as cloneInputOf,Eb as clonePreviewJson,Fb as clonePreviewLines,o as cloneSubjectOf,pb as commandSweepTies,X as contactPointLines,Gb as datedFromItsJournal,W as decisionLines,H as describeObjectInfo,G as describeOnce,fa as discoveryRequestsLine,_ as dryRunAdminChanges,Ab as earlierOfTheRun,Sb as endOfAThrow,Ca 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,za as graphCounts,ca as graphLine,Kb as interruptedLine,a as journalDirOf,Sa as journalGoneWords,wb as journalPartsOf,$ as jsonResult,Ba as listedObjects,F as loadRecordTypes,Qb as lostJobsBeforeTheMute,Rb as main,$a as maxTotalRefusal,j as missingFlagsWords,Y as neutralizedUpsertKeys,g as neverClonedTableRefusal,Aa as notCountedObjectsOf,aa as objectOutcomeLine,ba as objectOutcomePrinter,Q as orphanParentsCappedLine,fb as otherPartIdsOf,xb as otherPartsOf,gb as otherPartsSweepLines,ob as otherRunsOf,v as parseArgs,Na as parseRemoveArgs,Ta as parseRunSummary,Hb as parseVerifyArgs,vb as partsLeft,Wa as partsLeftLines,la as personAccountsAsBusinessLine,Ya as platformCopiesWords,Ka as productionRefusal,c as queryRootOf,Xa as quoteCopiesLines,s as readChoicesFile,sb as readEarlierRemovals,J as recordTypeGivenLines,Ma as rehearsalLines,La as rehearsalPlanLines,_a as removalLines,Ua as removalPlan,Va as removalPlanLines,tb as removalsAfter,zb as removalsOfParts,qb as removalsPath,Cb as removeMain,B as resumeChangedWords,A as resumeRefusal,y as resumedJournalPath,Ob as rootNeverCreatedRefusal,u as rootsArgsOf,S as rootsAskedJson,Ea as rootsChosenFirst,T as rootsLines,oa as rootsMaxTotalRefusal,Da as rootsOptionsOf,pa as rootsStorageRefusal,ub as runInPartsOf,rb as runKey,Pa as runMuteSchema,yb as runRemovalsAfter,Ra as runSummaryOfFile,Qa as runUserIdOf,t as sampleArgsOf,ra as sampleBudgetOf,ta as sampleJson,sa as sampleLines,wa as sampleReadsLine,ya as sampleRefusalExit,ua as sampleResultJson,va as sampleResultLines,xa as samplingProgressPrinter,U as simulationGapLines,R as summaryLines,jb as sweepClassArgsOf,kb as sweepClassOptions,eb as sweepLines,bb as sweepListingLines,ab as sweepOptionWords,mb as sweepOrgOf,lb as sweepPartsOptions,cb as sweepUnsaid,Oa as sweepUserHint,nb as syncRunSpanOf,l as tablesExecuteOptions,e as tablesLeftOut,f as tablesNotReached,h as tablesNotReachedWords,d as tablesQueryOf,k as tablesRunConfig,Ha as targetAutomationReader,Ia as targetGapReader,i as templateWithoutInputWords,Za as tookAlongLines,Ja as typeOrg,w as uncertainRefusal,x as uncertainRetryAt,Z as upsertKeyLines,Ib as verificationLines,Jb 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,Lb as wholeOrgSweepLine,Pb as wholeOrgWriteDeps,Ga as withTemplateFields,Fa as withTheJournal,Bb 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,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-PEDQPM2P.mjs";import"./chunk-X4BXESMQ.mjs";import"./chunk-EPFCERGL.mjs";import"./chunk-OM5NORJG.mjs";import{a}from"./chunk-2METQHGG.mjs";import"./chunk-RKTFFCNS.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-IVFVNNGB.mjs";import"./chunk-6JWWSDM6.mjs";import"./chunk-VINGECAJ.mjs";import"./chunk-H4CGM6YO.mjs";import"./chunk-IUM4NFKI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5XTUSN72.mjs";import"./chunk-Q7GIJBCD.mjs";import"./chunk-YHR4WQPR.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-26POJDIT.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-PMN4PAC3.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-H2BHESDA.mjs";import"./chunk-FP7CYB2F.mjs";import"./chunk-NED4MBIM.mjs";import"./chunk-UI3JQVRU.mjs";import"./chunk-KGU4SVIT.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-JAEDM4SI.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-OUZQPYT3.mjs";import"./chunk-MSIEU5MR.mjs";import"./chunk-LC3NDW4N.mjs";import"./chunk-KB4ZHM4Q.mjs";import"./chunk-23SEDORH.mjs";import"./chunk-W6PN6TJG.mjs";import"./chunk-3Q353S2R.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-RHNTHGNU.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-D4GF4FAB.mjs";import"./chunk-CVHNXJH3.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-YA6ATMTB.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-M6K34KGF.mjs";import"./chunk-TNT27RBG.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-S42RBRH2.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-WUUKFE2U.mjs";import"./chunk-EAC5QCE3.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-PMWAFDUB.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};
@@ -4,10 +4,11 @@ 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 A}from"./chunk-HQQVANWQ.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-DBBPDSFN.mjs";import"./chunk-GBGHJTPC.mjs";import"./chunk-ZRUDYB7O.mjs";import"./chunk-IRZJU2PG.mjs";import"./chunk-Y4TDVDP2.mjs";import"./chunk-JJITOWZK.mjs";import"./chunk-YMDFF657.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-5K2I2DMP.mjs";import"./chunk-7WSLT5VX.mjs";import"./chunk-YT22LMF7.mjs";import"./chunk-G2JR3F63.mjs";import"./chunk-3CX7GPCR.mjs";import"./chunk-A65ADTCR.mjs";import"./chunk-NWOI25WY.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-A7JJWOLT.mjs";import"./chunk-ZXFL2MSN.mjs";import"./chunk-VYOYXTCU.mjs";import"./chunk-C3LNYAVJ.mjs";import"./chunk-GJ6SZVHT.mjs";import"./chunk-52EXDVPN.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-EEFUE2ES.mjs";import"./chunk-PE435FVH.mjs";import"./chunk-PWVDNN2C.mjs";import"./chunk-6VSZNZHH.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import{b as C,c as E}from"./chunk-MUEQRIK7.mjs";import"./chunk-ISSP2FZ5.mjs";import"./chunk-XU25YA46.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-IVZJSDJD.mjs";import"./chunk-VZT4E2OJ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-LHU6CPGE.mjs";import"./chunk-PBE44M2Y.mjs";import"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.mjs";import{b as O,f as R,h as b}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import{Wb as h,Xb as $,Yb as T,Zb as v}from"./chunk-ZQO5PDX5.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";var L=`sandforge compare \u2014 compare two orgs the way the Compare page does, without the editor.
7
+ import{q}from"./chunk-PH7SP4YK.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-CPQIZGG5.mjs";import"./chunk-O677VOGO.mjs";import"./chunk-JE6SCT6R.mjs";import"./chunk-ZRUDYB7O.mjs";import"./chunk-B3FBHVNN.mjs";import"./chunk-YWEQQL3C.mjs";import"./chunk-LA4KIATH.mjs";import"./chunk-Y2DRK37K.mjs";import"./chunk-GMIGWR6U.mjs";import"./chunk-PWRJRL5U.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-IZGCEOYO.mjs";import"./chunk-24RFOFYT.mjs";import"./chunk-UIOMAX56.mjs";import"./chunk-3PVRGTVK.mjs";import"./chunk-JSAJS3MY.mjs";import"./chunk-FITPY3L4.mjs";import"./chunk-BBRWFKS5.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-6I6TWNV5.mjs";import"./chunk-QAFPQ3YB.mjs";import"./chunk-4EOHEDFP.mjs";import"./chunk-JKJ74BX5.mjs";import"./chunk-PR42EZSR.mjs";import"./chunk-UX3BVH2Y.mjs";import"./chunk-GMY5427L.mjs";import{a as V}from"./chunk-LKTNQEBS.mjs";import{a as M}from"./chunk-7SQSWVAU.mjs";import"./chunk-JLSIWO4Z.mjs";import"./chunk-KJWFYBMU.mjs";import"./chunk-Z4LKKOFY.mjs";import"./chunk-2HVOZUM4.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import{b as x,c as F}from"./chunk-QTG6LUZT.mjs";import"./chunk-XGGOUNPP.mjs";import"./chunk-L53JWJ3S.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-OFTT7J2M.mjs";import"./chunk-HIDW7FNV.mjs";import"./chunk-BOGNK4LV.mjs";import{b as _}from"./chunk-QROPNEGY.mjs";import"./chunk-IVFVNNGB.mjs";import"./chunk-6JWWSDM6.mjs";import"./chunk-VINGECAJ.mjs";import"./chunk-H4CGM6YO.mjs";import"./chunk-IUM4NFKI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5XTUSN72.mjs";import"./chunk-Q7GIJBCD.mjs";import"./chunk-YHR4WQPR.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-26POJDIT.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-PMN4PAC3.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-H2BHESDA.mjs";import"./chunk-FP7CYB2F.mjs";import"./chunk-NED4MBIM.mjs";import"./chunk-UI3JQVRU.mjs";import"./chunk-KGU4SVIT.mjs";import{b as S}from"./chunk-AL4C3GFT.mjs";import"./chunk-JAEDM4SI.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-OUZQPYT3.mjs";import"./chunk-MSIEU5MR.mjs";import"./chunk-LC3NDW4N.mjs";import"./chunk-KB4ZHM4Q.mjs";import"./chunk-23SEDORH.mjs";import"./chunk-W6PN6TJG.mjs";import"./chunk-3Q353S2R.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-RHNTHGNU.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-D4GF4FAB.mjs";import"./chunk-CVHNXJH3.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-YA6ATMTB.mjs";import{b as L,f as v,h as j}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-M6K34KGF.mjs";import"./chunk-TNT27RBG.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-S42RBRH2.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-WUUKFE2U.mjs";import"./chunk-EAC5QCE3.mjs";import"./chunk-TUACWKIH.mjs";import{Zc as k,hc as A,ic as $,jc as I,kc as D}from"./chunk-PMWAFDUB.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{randomUUID as G}from"node:crypto";var ee=`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]
11
+ npx sandforge compare --source <alias> --target <alias> --deploy <Type:Name> (--dry-run | --yes) [options]
11
12
 
12
13
  Required:
13
14
  --source <alias> sf CLI alias of the source org
@@ -24,32 +25,62 @@ Options:
24
25
  as the page does with its box unticked
25
26
  --validate <Type:Name> a component to validate a deployment of, from the
26
27
  source to the target; repeat for more
27
- --tests <level> the Apex tests the validation runs: NoTestRun |
28
- RunLocalTests | RunSpecifiedTests (default: NoTestRun)
28
+ --deploy <Type:Name> a component to deploy from the source to the target,
29
+ validated there first; repeat for more. It runs on
30
+ its own: no --op, --validate, --type, --all-types,
31
+ --exclude-managed or --fail-on-drift beside it
32
+ --tests <level> the Apex tests the validation runs, and the deployment
33
+ after it: NoTestRun | RunLocalTests | RunSpecifiedTests
34
+ (default: NoTestRun; with --deploy, RunLocalTests when
35
+ an Apex class or trigger is among the components, as
36
+ the Deploy tab advises)
29
37
  --run-test <Class> a test class RunSpecifiedTests runs; repeat for more
38
+ --yes (--deploy) deploy without asking for the target's alias
39
+ to be typed. Without it and with no terminal, refused,
40
+ exit 2, before any org is reached
41
+ --dry-run (--deploy) list what would be deployed and the tests,
42
+ sending nothing to either org
30
43
  --store <dir> where the host keeps its config store, a folder of your
31
44
  own (default: ~/.sandforge/compare, under the folder
32
45
  SANDFORGE_JOURNAL_DIR names when it is set)
33
46
  --wait <seconds> how long to keep waiting for an answer (default: 300)
34
- --fail-on-drift exit 3 when a diff (execute) finds a component added,
35
- removed or modified (default: off)
47
+ --fail-on-drift exit 3 when a diff (execute) finds a component in one
48
+ org only, or modified (default: off)
36
49
  --json emit what the page would receive, every other line on
37
- stderr
50
+ stderr. Its messages name a component only the source
51
+ holds "removed" and one only the target holds "added";
52
+ beside a diff's answer, "changes" lists them as
53
+ onlyInSource, onlyInTarget and modified, as Type:Name
38
54
  --help this text
39
55
 
40
- Nothing is written to either org. A validation deploys check-only: the
41
- target compiles the components and runs the tests, keeps none of them, and
42
- lists the validation in Setup \u203A Deployment Status. This tool never deploys:
43
- the Deploy tab of the Compare page does, in VS Code.
56
+ A comparison writes nothing to either org. A validation deploys check-only:
57
+ the target compiles the components and runs the tests, keeps none of them,
58
+ and lists the validation in Setup \u203A Deployment Status.
44
59
 
45
- Exit codes: 0 every request was answered, and every validation succeeded (a
46
- diff is read, whatever it found, unless --fail-on-drift); 1 it could not
47
- start, or a request failed, was refused or was not answered in time; 2 a bad
48
- command line; 3 a validation came back with no success, a component error or
49
- a failed test, or --fail-on-drift and a diff found differences.
50
- `,N=["execute","permissions","snapshots","drift","validate-deployment"],_=["execute","permissions","snapshots","drift"],w=["CustomObject","CustomField","RecordType","ApexClass","ApexTrigger","LightningComponentBundle","Flow","WorkflowRule","ValidationRule","Profile","PermissionSet","Layout","CustomLabel","CustomMetadata","StaticResource","EmailTemplate","Report","Dashboard"],j=5*6e4,I=(2*$.retrieve+$.deploy+1)*6e4,V={switches:["--all-types","--exclude-managed","--json","--fail-on-drift"],values:["--source","--target","--op","--type","--validate","--tests","--run-test","--store","--wait"]};function F(t){let e=t.slice(2);(e.includes("--help")||e.includes("-h"))&&(process.stdout.write(L),process.exit(0)),O(e,V);let a=(l,g)=>{let p=e.indexOf(l);return p>=0&&p+1<e.length?e[p+1]:g},r=l=>{let g=[];for(let p=0;p<e.length;p++)e[p]===l&&p+1<e.length&&g.push(e[p+1]);return g},n=l=>{process.stderr.write(`${l}
51
- `),process.exit(2)},o=a("--source"),d=a("--target");(!o||!d)&&n("Missing --source or --target. Run with --help."),o===d&&n("--source and --target name the same org.");let s=r("--op");for(let l of s)l==="deploy"&&n("This tool never deploys: once a validation succeeds (--validate), the Deploy tab of the Compare page deploys it, in VS Code."),N.includes(l)||n(`Not an operation: "${l}". One of: ${N.join(", ")}.`);let i=B(r,a,n),c=s.length>0?[...new Set(s)]:i.components.length>0?["validate-deployment"]:[..._];c.includes("validate-deployment")&&i.components.length===0&&n("validate-deployment needs a component: give --validate Type:Name.");let u=r("--type");for(let l of u)w.includes(l)||n(`Not a category the page offers: "${l}". One of: ${w.join(", ")}.`);let f=e.includes("--all-types")?[...w]:[...new Set(u)];c.includes("execute")&&f.length===0&&n("execute needs a category: give --type or --all-types, or leave execute out with --op.");let P=a("--wait","300")??"300",y=Number(P);return(!Number.isInteger(y)||y<1)&&n("--wait takes a whole number of seconds."),{source:o,target:d,operations:c,types:f,includeManaged:!e.includes("--exclude-managed"),validation:i,storeDir:a("--store")??C("compare"),waitMs:y*1e3,json:e.includes("--json"),failOnDrift:e.includes("--fail-on-drift")}}function B(t,e,a){let r=[];for(let s of t("--validate")){let i=s.indexOf(":"),c=s.slice(0,i),u=s.slice(i+1);(i<1||u==="")&&a(`--validate takes Type:Name, got "${s}".`),v.includes(c)||a(`Not a type a deployment carries: "${c}". One of: ${v.join(", ")}.`),r.push({componentType:c,fullName:u})}let n=e("--tests","NoTestRun")??"NoTestRun";h.includes(n)||a(`Not a test level: "${n}". One of: ${h.join(", ")}.`);let o=n,d=t("--run-test");for(let s of d)T.test(s)||a(`Not an Apex class name: "${s}".`);return o==="RunSpecifiedTests"&&d.length===0&&a("RunSpecifiedTests needs a test class: give --run-test."),o!=="RunSpecifiedTests"&&d.length>0&&a("--run-test names the tests of --tests RunSpecifiedTests only."),{components:r,testLevel:o,runTests:d}}function U(t){let{counts:e}=t,a=[` ${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 r of t.components){let n=r.line!==void 0?` (line ${r.line}${r.column!==void 0?`, column ${r.column}`:""})`:"",o=r.problem?` \u2014 ${r.problem}${n}`:"";a.push(` ${r.outcome.padEnd(13)} ${r.componentType} ${r.fullName}${o}`)}for(let r of t.testFailures){let n=r.methodName?`${r.className}.${r.methodName}`:r.className,o=r.line!==void 0?` (line ${r.line})`:"";a.push(` test failed ${n}${o} \u2014 ${r.message}`)}for(let r of t.coverageWarnings)a.push(` coverage ${r}`);for(let r of t.retrieveProblems??[])a.push(` source said ${r}`);return a}function q(t){let e=new Map;for(let a of t){if(a.status!=="modified")continue;let r=e.get(a.componentType)??[];r.push(a.fullName),e.set(a.componentType,r)}return e}function G(t){let{content:e,summary:a}=t,r=a.modified+a.unchanged+a.notCompared,{over_budget:n,unreadable:o,read_failed:d}=e.notCompared,s=e.managedLeftOut?`; left out, as asked: ${e.managedLeftOut} installed by a managed package`:"";return` content compared for ${e.compared} of ${r} in both orgs; not compared: ${n} over the budget (${e.budget.components} per org, ${e.budget.seconds} s), ${o} unreadable, ${d} read failed${s}`}function W(t){let{summary:e}=t,a=[` mode ${t.mode}, ${e.totalItems} item(s): +${e.added} added -${e.removed} removed ~${e.modified} modified =${e.unchanged} unchanged ?${e.notCompared} not compared`],r=new Map;for(let n of t.diffs){let o=r.get(n.componentType)??{};o[n.status]=(o[n.status]??0)+1,r.set(n.componentType,o)}for(let[n,o]of r){let d=(o.modified??0)+(o.unchanged??0)+(o.not_compared??0),s=(o.removed??0)+d,i=(o.added??0)+d;a.push(` ${n.padEnd(26)} source ${String(s).padStart(5)} target ${String(i).padStart(5)} +${o.added??0} -${o.removed??0} ~${o.modified??0} =${o.unchanged??0} ?${o.not_compared??0}`)}a.push(G(t));for(let[n,o]of q(t.diffs))a.push(` modified ${n}: ${m(o)}`);return a}function m(t,e=8){if(t.length===0)return"\u2014";let a=t.slice(0,e).join(", ");return t.length>e?`${a} \u2026 (+${t.length-e})`:a}function S(t,e){let a=(e.sourceOnly??[]).map(n=>n.name),r=(e.targetOnly??[]).map(n=>n.name);return[` ${t}: ${a.length} source only, ${r.length} target only, ${(e.shared??[]).length} in both`,` source only: ${m(a)}`,` target only: ${m(r)}`]}function Y(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 M(t){return t.success&&t.counts.componentErrors===0&&t.counts.testErrors===0}function X(t,e){let a=`${(e.elapsedMs/1e3).toFixed(1)}s`,r=`compare:${t} ${e.outcome} in ${a}`,n=[e.late?`${r} \u2014 past the page's timeout: the page dropped it`:r],o=e.message?.payload??{};if(e.outcome!=="answered"){let s=Y(o);return s.length>0?(n.push(` a managed package installed ${s.map(i=>`${i.componentType} ${i.fullName}`).join(", ")} in the source, and it owns them: drop `+s.map(i=>`--validate ${i.componentType}:${i.fullName}`).join(" ")+" from the line and run it again. Nothing was sent to the target."),n):(e.message&&n.push(` ${String(o.message??JSON.stringify(o))}`),e.outcome==="unanswered"&&n.push(` nothing came back in ${Math.round(e.elapsedMs/1e3)} s: give a longer --wait`+(t==="execute"?", or fewer --type":"")),n)}if(t==="execute")return[...n,...W(o)];if(t==="validate-deployment"){let s=o.report;return s?[...n,...U(s),...M(s)?[" this tool never deploys: the Deploy tab of the Compare page deploys it, in VS Code"]:[]]:[...n," (no report)"]}if(t==="permissions"){let s=o.permissions??{};return[...n,...S("permission sets",s.permissionSets??{}),...S("profiles",s.profiles??{})]}if(t==="snapshots"){let s=o.snapshot??{},i=c=>c?`${c.totalObjects} objects (${c.customObjects} custom, ${c.standardObjects} standard, ${c.queryableObjects} queryable)`:"\u2014";return[...n,` source: ${i(s.source)}`,` target: ${i(s.target)}`,` ${s.diff?.sharedCount??0} in both; source only: ${m(s.diff?.sourceOnly??[])}`,` target only: ${m(s.diff?.targetOnly??[])}`]}let d=o.drift??{};return[...n,...(d.items??[]).map(s=>` ${s.status.padEnd(14)} ${s.setting}: ${s.sourceValue} | ${s.targetValue}`)]}function H(t,e=!1){if(t.some(({answer:o})=>o.outcome!=="answered"))return 1;let a=o=>o.message?.payload??{};if(t.some(({op:o,answer:d})=>{if(o!=="validate-deployment")return!1;let s=a(d).report;return s===void 0||!M(s)}))return 3;let n=t.some(({op:o,answer:d})=>{if(o!=="execute")return!1;let s=a(d).summary;return s!==void 0&&s.added+s.removed+s.modified>0});return e&&n?3:0}async function J(t=process.argv){let e=F(t),a=i=>{process[e.json?"stderr":"stdout"].write(`${i}
52
- `)},r=E(e.storeDir);if(r!==void 0){process.stderr.write(`${r}
53
- `),process.exitCode=1;return}let n=A({storeDir:e.storeDir,log:i=>{/^\s*!|\[(ERR|WARN)\]/.test(i)&&a(i)},waitMs:e.waitMs}),o=await n.connect(e.source),d=await n.connect(e.target);a(`sandforge compare ${e.source} (${o.orgType}) -> ${e.target} (${d.orgType})`);let s=[];for(let i of e.operations){let c={sourceOrgId:o.id,targetOrgId:d.id};i==="execute"&&(c.types=e.types,c.includeManaged=e.includeManaged),i==="validate-deployment"&&(c.components=e.validation.components,c.testLevel=e.validation.testLevel,e.validation.testLevel==="RunSpecifiedTests"&&(c.runTests=e.validation.runTests));let u=await n.request({type:`compare:${i}`,payload:c,...i==="execute"?{timeoutMs:j}:{},...i==="validate-deployment"?{timeoutMs:I}:{}});s.push({op:i,answer:u});for(let f of X(i,u))a(f)}e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:s,posted:n.posted},null,2)}
54
- `),R(H(s,e.failOnDrift))}process.argv[1]?.includes("sandforge-compare")&&(b(),J().then(()=>process.exit(process.exitCode??0)).catch(t=>{process.stderr.write(`${t instanceof Error?t.message:String(t)}
55
- `),process.exit(1)}));export{w as PAGE_COMPONENT_TYPES,H as compareExitCode,X as describeAnswer,G as describeCoverage,U as describeDeployment,J as main,q as modifiedByType,F as parseArgs};
60
+ --deploy deploys, as the Deploy tab of the Compare page does: it validates the
61
+ components in the target first, then, once the validation succeeds and the
62
+ target's alias is typed (or with --yes), deploys the package the target
63
+ validated, with the same tests. A deployment is all or nothing: the target
64
+ rolls a failed one back. It deletes nothing from the target, and the audit
65
+ trail of the store records it. A production target, or one that cannot be
66
+ told from one, is refused before anything is sent to either org, --dry-run
67
+ included; no flag lifts it.
68
+
69
+ Exit codes: 0 every request was answered, every validation succeeded and,
70
+ with --deploy, the deployment succeeded (a diff is read, whatever it found,
71
+ unless --fail-on-drift); 1 it could not start, it was refused before it sent
72
+ anything (a production target, an alias typed wrong), or a request failed,
73
+ was refused or was not answered in time; 2 a bad command line, or --deploy
74
+ with no terminal to type the alias on and no --yes; 3 a validation or a
75
+ deployment came back with no success, a component error or a failed test (a
76
+ deployment rolled back leaves nothing in the target), or --fail-on-drift and
77
+ a diff found differences.
78
+ `,U=["execute","permissions","snapshots","drift","validate-deployment"],te=["execute","permissions","snapshots","drift"],C=["CustomObject","CustomField","RecordType","ApexClass","ApexTrigger","LightningComponentBundle","Flow","WorkflowRule","ValidationRule","Profile","PermissionSet","Layout","CustomLabel","CustomMetadata","StaticResource","EmailTemplate","Report","Dashboard"],oe=5*6e4,X=(2*$.retrieve+$.deploy+1)*6e4,ne=($.deploy+1)*6e4,se=new Set(["ApexClass","ApexTrigger"]),re={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 ae(o){let e=o.slice(2);(e.includes("--help")||e.includes("-h"))&&(process.stdout.write(ee),process.exit(0)),L(e,re);let t=(c,m)=>{let f=e.indexOf(c);return f>=0&&f+1<e.length?e[f+1]:m},n=c=>{let m=[];for(let f=0;f<e.length;f++)e[f]===c&&f+1<e.length&&m.push(e[f+1]);return m},r=c=>{process.stderr.write(`${c}
79
+ `),process.exit(2)},s=t("--source"),a=t("--target");(!s||!a)&&r("Missing --source or --target. Run with --help."),s===a&&r("--source and --target name the same org.");let d=n("--op");for(let c of d)c==="deploy"&&r("deploy is no --op: give each component to --deploy Type:Name, which validates them in the target, then deploys what the target validated."),U.includes(c)||r(`Not an operation: "${c}". One of: ${U.join(", ")}.`);let i=de(e,n,t,r);if(i!==void 0)return{source:s,target:a,operations:[],types:[],includeManaged:!0,validation:{components:[],testLevel:"NoTestRun",runTests:[]},deploy:i,storeDir:t("--store")??x("compare"),waitMs:W(t,r),json:e.includes("--json"),failOnDrift:!1};for(let c of["--yes","--dry-run"])e.includes(c)&&r(`${c} goes with --deploy, the one request of this command that writes to an org.`);let l=J(n,t,r),u=d.length>0?[...new Set(d)]:l.components.length>0?["validate-deployment"]:[...te];u.includes("validate-deployment")&&l.components.length===0&&r("validate-deployment needs a component: give --validate Type:Name.");let g=n("--type");for(let c of g)C.includes(c)||r(`Not a category the page offers: "${c}". One of: ${C.join(", ")}.`);let p=e.includes("--all-types")?[...C]:[...new Set(g)];return u.includes("execute")&&p.length===0&&r("execute needs a category: give --type or --all-types, or leave execute out with --op."),{source:s,target:a,operations:u,types:p,includeManaged:!e.includes("--exclude-managed"),validation:l,storeDir:t("--store")??x("compare"),waitMs:W(t,r),json:e.includes("--json"),failOnDrift:e.includes("--fail-on-drift")}}function W(o,e){let t=Number(o("--wait","300")??"300");return(!Number.isInteger(t)||t<1)&&e("--wait takes a whole number of seconds."),t*1e3}var ie=["--op","--validate","--type","--all-types","--exclude-managed","--fail-on-drift"];function de(o,e,t,n){if(e("--deploy").length===0)return;let r=ie.filter(l=>o.includes(l));r.includes("--validate")&&n("--deploy validates what it deploys first, as the Deploy tab does: give the components to --deploy alone, without --validate."),r.length>0&&n(`${r.join(", ")} ${r.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&&n("--dry-run sends nothing and --yes deploys: give one of them.");let d=J(e,t,n,"--deploy"),i=t("--tests")===void 0&&d.components.some(l=>se.has(l.componentType));return{...d,...i?{testLevel:"RunLocalTests"}:{},testsAdvised:i,yes:s,dryRun:a}}function J(o,e,t,n="--validate"){let r=[];for(let i of o(n)){let l=i.indexOf(":"),u=i.slice(0,l),g=i.slice(l+1);(l<1||g==="")&&t(`${n} takes Type:Name, got "${i}".`),D.includes(u)||t(`Not a type a deployment carries: "${u}". One of: ${D.join(", ")}.`),r.push({componentType:u,fullName:g})}let s=e("--tests","NoTestRun")??"NoTestRun";A.includes(s)||t(`Not a test level: "${s}". One of: ${A.join(", ")}.`);let a=s,d=o("--run-test");for(let i of d)I.test(i)||t(`Not an Apex class name: "${i}".`);return a==="RunSpecifiedTests"&&d.length===0&&t("RunSpecifiedTests needs a test class: give --run-test."),a!=="RunSpecifiedTests"&&d.length>0&&t("--run-test names the tests of --tests RunSpecifiedTests only."),{components:r,testLevel:a,runTests:d}}function le(o){let{counts:e}=o,t=[` ${o.checkOnly?"validation":"deployment"} ${o.deployId??"(none sent)"}: ${o.status}, ${o.success?"success":"no success"}`+(o.errorMessage?` \u2014 ${o.errorMessage}`:""),` components: ${e.componentsDeployed} of ${e.componentsTotal} without an error, ${e.componentErrors} with one; tests (${o.testLevel}${o.runTests.length>0?`: ${o.runTests.join(", ")}`:""}): ${e.testsCompleted} of ${e.testsTotal} passed, ${e.testErrors} failed`];for(let n of o.components){let r=n.line!==void 0?` (line ${n.line}${n.column!==void 0?`, column ${n.column}`:""})`:"",s=n.problem?` \u2014 ${n.problem}${r}`:"";t.push(` ${n.outcome.padEnd(13)} ${n.componentType} ${n.fullName}${s}`)}for(let n of o.testFailures){let r=n.methodName?`${n.className}.${n.methodName}`:n.className,s=n.line!==void 0?` (line ${n.line})`:"";t.push(` test failed ${r}${s} \u2014 ${n.message}`)}for(let n of o.coverageWarnings)t.push(` coverage ${n}`);for(let n of o.retrieveProblems??[])t.push(` source said ${n}`);return t}function Ee(o){return z(o,"modified")}function z(o,e){let t=new Map;for(let n of o){if(n.status!==e)continue;let r=t.get(n.componentType)??[];r.push(n.fullName),t.set(n.componentType,r)}return t}function pe(o){let e=t=>o.diffs.filter(n=>n.status===t).map(n=>`${n.componentType}:${n.fullName}`);return{onlyInSource:e("removed"),onlyInTarget:e("added"),modified:e("modified")}}function ce(o){let{content:e,summary:t}=o,n=t.modified+t.unchanged+t.notCompared,{over_budget:r,unreadable:s,read_failed:a}=e.notCompared,d=e.managedLeftOut?`; left out, as asked: ${e.managedLeftOut} installed by a managed package`:"";return` content compared for ${e.compared} of ${n} in both orgs; not compared: ${r} over the budget (${e.budget.components} per org, ${e.budget.seconds} s), ${s} unreadable, ${a} read failed${d}`}function ue(o){let{summary:e}=o,t=[` mode ${o.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"],n=new Map;for(let s of o.diffs){let a=n.get(s.componentType)??{};a[s.status]=(a[s.status]??0)+1,n.set(s.componentType,a)}for(let[s,a]of n){let d=(a.modified??0)+(a.unchanged??0)+(a.not_compared??0),i=(a.removed??0)+d,l=(a.added??0)+d;t.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}`)}t.push(ce(o));let r=[["removed","only in the source"],["added","only in the target"],["modified","modified"]];for(let[s,a]of r)for(let[d,i]of z(o.diffs,s))t.push(` ${a} ${d}: ${w(i)}`);return t}function w(o,e=8){if(o.length===0)return"\u2014";let t=o.slice(0,e).join(", ");return o.length>e?`${t} \u2026 (+${o.length-e})`:t}function Y(o,e){let t=(e.sourceOnly??[]).map(r=>r.name),n=(e.targetOnly??[]).map(r=>r.name);return[` ${o}: ${t.length} source only, ${n.length} target only, ${(e.shared??[]).length} in both`,` source only: ${w(t)}`,` target only: ${w(n)}`]}function fe(o){return o.code!=="MANAGED"||!Array.isArray(o.managed)?[]:o.managed.filter(e=>typeof e=="object"&&e!==null&&typeof e.componentType=="string"&&typeof e.fullName=="string")}function R(o){return o.success&&o.counts.componentErrors===0&&o.counts.testErrors===0}function P(o,e,t="--validate"){let n=`${(e.elapsedMs/1e3).toFixed(1)}s`,r=`compare:${o} ${e.outcome} in ${n}`,s=[e.late?`${r} \u2014 past the page's timeout: the page dropped it`:r],a=e.message?.payload??{};if(e.outcome!=="answered"){let i=fe(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=>`${t} ${l.componentType}:${l.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(o==="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`+(o==="execute"?", or fewer --type":"")),s)}if(o==="execute")return[...s,...ue(a)];if(o==="validate-deployment"||o==="deploy"){let i=a.report;return i?[...s,...le(i)]:[...s," (no report)"]}if(o==="permissions"){let i=a.permissions??{};return[...s,...Y("permission sets",i.permissionSets??{}),...Y("profiles",i.profiles??{})]}if(o==="snapshots"){let i=a.snapshot??{},l=u=>u?`${u.totalObjects} objects (${u.customObjects} custom, ${u.standardObjects} standard, ${u.queryableObjects} queryable)`:"\u2014";return[...s,` source: ${l(i.source)}`,` target: ${l(i.target)}`,` ${i.diff?.sharedCount??0} in both; source only: ${w(i.diff?.sourceOnly??[])}`,` target only: ${w(i.diff?.targetOnly??[])}`]}let d=a.drift??{};return[...s,...(d.items??[]).map(i=>` ${i.status.padEnd(14)} ${i.setting}: ${i.sourceValue} | ${i.targetValue}`)]}function E(o,e=!1){if(o.some(({answer:s})=>s.outcome!=="answered"))return 1;let t=s=>s.message?.payload??{};if(o.some(({op:s,answer:a})=>{if(s!=="validate-deployment"&&s!=="deploy")return!1;let d=t(a).report;return d===void 0||!R(d)}))return 3;let r=o.some(({op:s,answer:a})=>{if(s!=="execute")return!1;let d=t(a).summary;return d!==void 0&&d.added+d.removed+d.modified>0});return e&&r?3:0}var me={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 ge(o){let e,t="";return{follow:n=>{e=n,t=""},onPost:n=>{if(n.type!=="operation:progress"||e===void 0)return;let r=n.payload??{},s=typeof r.currentStep=="string"?me[r.currentStep]:void 0;if(r.operationId!==e||s===void 0)return;let a=s.replace("{done}",String(r.processedRecords??0)).replace("{total}",String(r.totalRecords??0));a!==t&&(t=a,o(` ${a}`))}}}async function ye(o=process.argv,e={}){let t=ae(o),n=p=>{process[t.json?"stderr":"stdout"].write(`${p}
80
+ `)},r=e.terminal??{input:process.stdin,output:process.stderr},{deploy:s}=t;s&&!s.dryRun&&!s.yes&&r.input.isTTY!==!0&&(process.stderr.write(`--deploy asks for ${t.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.
81
+ `),process.exit(2));let a=F(t.storeDir);if(a!==void 0){process.stderr.write(`${a}
82
+ `),process.exitCode=1;return}let d=ge(n),i=(e.createHost??q)({storeDir:t.storeDir,log:p=>{/^\s*!|\[(ERR|WARN)\]/.test(p)&&n(p)},waitMs:t.waitMs,onPost:d.onPost,...s?{compose:p=>p.handlers.setInfraServices({productionGuard:V(n,t.target)})}:{}}),l=await i.connect(t.source),u=await i.connect(t.target);if(n(`sandforge compare ${t.source} (${l.orgType}) -> ${t.target} (${u.orgType})`),s){await he({args:t,deploy:s,host:i,source:l,target:u,log:n,terminal:r,progress:d});return}let g=[];for(let p of t.operations){let c={sourceOrgId:l.id,targetOrgId:u.id};p==="execute"&&(c.types=t.types,c.includeManaged=t.includeManaged),p==="validate-deployment"&&(c.components=t.validation.components,c.testLevel=t.validation.testLevel,t.validation.testLevel==="RunSpecifiedTests"&&(c.runTests=t.validation.runTests));let m=await i.request({type:`compare:${p}`,payload:c,...p==="execute"?{timeoutMs:oe}:{},...p==="validate-deployment"?{timeoutMs:X}:{}}),f=p==="execute"&&m.outcome==="answered"?m.message?.payload:void 0;g.push({op:p,answer:m,...Array.isArray(f?.diffs)?{changes:pe({diffs:f.diffs})}:{}});for(let h of P(p,m))n(h);p==="validate-deployment"&&K(m)!==void 0&&n(" --deploy in place of each --validate deploys it: it validates it again, then deploys what the target validated")}t.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:g,posted:i.posted},null,2)}
83
+ `),v(E(g,t.failOnDrift))}function K(o){if(o.outcome!=="answered")return;let e=o.message?.payload?.report;return e!==void 0&&e.deployId!==void 0&&R(e)?e:void 0}async function he(o){let{args:e,deploy:t,host:n,target:r,log:s}=o;if(k(r)==="production"){let y=r.metadata?.edition,b=M(e.target,{id:r.id,sandbox:r.orgType==="Sandbox"||r.orgType==="Scratch",...y?{edition:y}:{}},{tool:S("sandforge-compare"),action:"write",readOnly:B})??`${e.target} is taken for a production org: ${S("sandforge-compare")} deploys to sandboxes, scratch orgs and Developer Edition orgs only. Nothing was written; ${B}, which only reads, runs against it.`;process.stderr.write(`${b}
84
+ `),process.exitCode=1;return}for(let y of $e(e.source,e.target,t))s(y);let a={source:e.source,target:e.target,components:t.components,testLevel:t.testLevel,runTests:t.runTests},d=[],i=(y,b={})=>{e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:d,deploy:{...a,outcome:y,...b},posted:n.posted},null,2)}
85
+ `)};if(t.dryRun){s(`dry run: nothing was sent to ${e.source} or ${e.target}. The run validates ${we(t.components.length)} in ${e.target}, then deploys what it validated once ${e.target} is typed, or with --yes.`),i("dry-run");return}let l=`cli-validate-${G()}`;o.progress.follow(l);let u=await n.request({id:l,type:"compare:validate-deployment",payload:{sourceOrgId:o.source.id,targetOrgId:r.id,components:t.components,testLevel:t.testLevel,...t.testLevel==="RunSpecifiedTests"?{runTests:t.runTests}:{}},timeoutMs:X});o.progress.follow(void 0),d.push({op:"validate-deployment",answer:u});for(let y of P("validate-deployment",u,"--deploy"))s(y);let g=K(u);if(g?.deployId===void 0){s(` the validation did not succeed: nothing was deployed to ${e.target}`),i("validation-failed"),v(E(d));return}let p=g.deployId,c=t.components.length;if(s(`Deploy to ${e.target}: `+(c===1?`the component validated as ${p} will be deployed to ${e.target}, with the same tests, and ${e.target} keeps it.`:`the ${c} components validated as ${p} will be deployed to ${e.target}, with the same tests, and ${e.target} keeps them.`)),!t.yes&&await _(`Type ${e.target} to deploy it:`,o.terminal)!==e.target){s(`Nothing was deployed: what was typed is not ${e.target}. The validation ${p} changed nothing there.`),i("declined",{validationId:p}),process.exitCode=1;return}let m=`cli-deploy-${G()}`;o.progress.follow(m);let f=await n.request({id:m,type:"compare:deploy",payload:{validationId:p,targetOrgId:r.id},timeoutMs:ne});o.progress.follow(void 0),d.push({op:"deploy",answer:f});for(let y of P("deploy",f))s(y);let h=f.message?.payload?.report,O=h?.deployId,N=f.outcome==="answered"&&h!==void 0;N&&s(R(h)?` deployed to ${e.target}, which lists it in Setup \u203A Deployment Status as ${O??"(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(N?R(h)?"deployed":"rolled-back":"deployment-unsettled",{validationId:p,...O!==void 0?{deploymentId:O}:{}}),v(E(d))}var B="a comparison without --deploy";function we(o){return`${o} component${o===1?"":"s"}`}function $e(o,e,t){let n=t.testLevel==="RunSpecifiedTests"?`${t.testLevel}: ${t.runTests.join(", ")}`:t.testLevel;return[`deploy from ${o} 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}.`,...t.components.map(r=>` ${r.componentType} ${r.fullName}`),` Apex tests in ${e}: ${n}`+(t.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")&&(j(),ye().then(()=>process.exit(process.exitCode??0)).catch(o=>{process.stderr.write(`${o instanceof Error?o.message:String(o)}
86
+ `),process.exit(1)}));export{C as PAGE_COMPONENT_TYPES,pe as changesOf,E as compareExitCode,$e as deployPlanLines,P as describeAnswer,ce as describeCoverage,le as describeDeployment,ye as main,Ee as modifiedByType,ae as parseArgs,ge 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-FOIWWK7G.mjs";import"./chunk-TW3N6W5Z.mjs";import"./chunk-5GBO4KD5.mjs";import"./chunk-3HEMJTAP.mjs";import"./chunk-BN33LVPQ.mjs";import"./chunk-JKT5YAQ2.mjs";import"./chunk-QAPVKPEC.mjs";import"./chunk-BNKT3R3F.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-BZ24IAP5.mjs";import"./chunk-SCKUIE3R.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-EEFUE2ES.mjs";import"./chunk-PE435FVH.mjs";import"./chunk-PWVDNN2C.mjs";import"./chunk-6VSZNZHH.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-MUEQRIK7.mjs";import"./chunk-ISSP2FZ5.mjs";import"./chunk-XU25YA46.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-IVZJSDJD.mjs";import"./chunk-VZT4E2OJ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-LHU6CPGE.mjs";import"./chunk-PBE44M2Y.mjs";import"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ZQO5PDX5.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}from"./chunk-RGBGUCJA.mjs";import"./chunk-TW3N6W5Z.mjs";import"./chunk-5GBO4KD5.mjs";import"./chunk-PEDQPM2P.mjs";import"./chunk-X4BXESMQ.mjs";import"./chunk-EPFCERGL.mjs";import"./chunk-OM5NORJG.mjs";import"./chunk-2METQHGG.mjs";import"./chunk-RKTFFCNS.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-JLSIWO4Z.mjs";import"./chunk-KJWFYBMU.mjs";import"./chunk-Z4LKKOFY.mjs";import"./chunk-2HVOZUM4.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-QTG6LUZT.mjs";import"./chunk-XGGOUNPP.mjs";import"./chunk-L53JWJ3S.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-OFTT7J2M.mjs";import"./chunk-HIDW7FNV.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-IVFVNNGB.mjs";import"./chunk-6JWWSDM6.mjs";import"./chunk-VINGECAJ.mjs";import"./chunk-H4CGM6YO.mjs";import"./chunk-IUM4NFKI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5XTUSN72.mjs";import"./chunk-Q7GIJBCD.mjs";import"./chunk-YHR4WQPR.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-26POJDIT.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-PMN4PAC3.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-H2BHESDA.mjs";import"./chunk-FP7CYB2F.mjs";import"./chunk-NED4MBIM.mjs";import"./chunk-UI3JQVRU.mjs";import"./chunk-KGU4SVIT.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-JAEDM4SI.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-OUZQPYT3.mjs";import"./chunk-MSIEU5MR.mjs";import"./chunk-LC3NDW4N.mjs";import"./chunk-KB4ZHM4Q.mjs";import"./chunk-23SEDORH.mjs";import"./chunk-W6PN6TJG.mjs";import"./chunk-3Q353S2R.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-RHNTHGNU.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-D4GF4FAB.mjs";import"./chunk-CVHNXJH3.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-YA6ATMTB.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-M6K34KGF.mjs";import"./chunk-TNT27RBG.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-S42RBRH2.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-WUUKFE2U.mjs";import"./chunk-EAC5QCE3.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-PMWAFDUB.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};
@@ -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 ue}from"./chunk-GCGHHN4K.mjs";import{d as pe,e as le,f as he,q as ge}from"./chunk-HQQVANWQ.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-DBBPDSFN.mjs";import"./chunk-GBGHJTPC.mjs";import"./chunk-ZRUDYB7O.mjs";import{u as fe}from"./chunk-IRZJU2PG.mjs";import"./chunk-Y4TDVDP2.mjs";import"./chunk-JJITOWZK.mjs";import"./chunk-YMDFF657.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-5K2I2DMP.mjs";import"./chunk-7WSLT5VX.mjs";import"./chunk-YT22LMF7.mjs";import"./chunk-G2JR3F63.mjs";import"./chunk-3CX7GPCR.mjs";import"./chunk-A65ADTCR.mjs";import"./chunk-NWOI25WY.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-A7JJWOLT.mjs";import"./chunk-ZXFL2MSN.mjs";import"./chunk-VYOYXTCU.mjs";import"./chunk-C3LNYAVJ.mjs";import"./chunk-GJ6SZVHT.mjs";import"./chunk-52EXDVPN.mjs";import"./chunk-GMY5427L.mjs";import{a as me}from"./chunk-TW3N6W5Z.mjs";import{a as ie,b as de,c as ce}from"./chunk-5GBO4KD5.mjs";import{b as H,e as ee}from"./chunk-BZ24IAP5.mjs";import{a as U,b as q}from"./chunk-SCKUIE3R.mjs";import{c as P,d as te}from"./chunk-6FARZYMJ.mjs";import"./chunk-EEFUE2ES.mjs";import"./chunk-PE435FVH.mjs";import"./chunk-PWVDNN2C.mjs";import"./chunk-6VSZNZHH.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-ISSP2FZ5.mjs";import"./chunk-XU25YA46.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-IVZJSDJD.mjs";import"./chunk-VZT4E2OJ.mjs";import"./chunk-BOGNK4LV.mjs";import{m as re}from"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import{I as ne,L as se,i as oe}from"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import{a as Q}from"./chunk-LHU6CPGE.mjs";import{r as Y}from"./chunk-PBE44M2Y.mjs";import{f as X}from"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import{b as G}from"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.mjs";import{b as z,c as Z,f as j,h as ae}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ZQO5PDX5.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{mkdtempSync as Se,rmSync as Ie}from"node:fs";import{tmpdir as Pe}from"node:os";import{basename as Ne,join as xe}from"node:path";var _="sandforge-empty",Ce=`sandforge empty \u2014 empty objects of a sandbox, or the whole of it, without the editor:
7
+ import{d as le,e as he,f as fe,q as ge}from"./chunk-PH7SP4YK.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-CPQIZGG5.mjs";import"./chunk-O677VOGO.mjs";import"./chunk-JE6SCT6R.mjs";import"./chunk-ZRUDYB7O.mjs";import"./chunk-B3FBHVNN.mjs";import"./chunk-YWEQQL3C.mjs";import"./chunk-LA4KIATH.mjs";import"./chunk-Y2DRK37K.mjs";import{i as pe}from"./chunk-GMIGWR6U.mjs";import"./chunk-PWRJRL5U.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-IZGCEOYO.mjs";import"./chunk-24RFOFYT.mjs";import"./chunk-UIOMAX56.mjs";import"./chunk-3PVRGTVK.mjs";import"./chunk-JSAJS3MY.mjs";import"./chunk-FITPY3L4.mjs";import"./chunk-BBRWFKS5.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-6I6TWNV5.mjs";import"./chunk-QAFPQ3YB.mjs";import"./chunk-4EOHEDFP.mjs";import"./chunk-JKJ74BX5.mjs";import"./chunk-PR42EZSR.mjs";import"./chunk-UX3BVH2Y.mjs";import"./chunk-GMY5427L.mjs";import{a as ue}from"./chunk-LKTNQEBS.mjs";import{a as me}from"./chunk-TW3N6W5Z.mjs";import{a as ie,b as de,c as ce}from"./chunk-5GBO4KD5.mjs";import{b as H,e as ee}from"./chunk-RKTFFCNS.mjs";import{c as P,d as te}from"./chunk-6FARZYMJ.mjs";import"./chunk-JLSIWO4Z.mjs";import"./chunk-KJWFYBMU.mjs";import"./chunk-Z4LKKOFY.mjs";import"./chunk-2HVOZUM4.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-XGGOUNPP.mjs";import"./chunk-L53JWJ3S.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-OFTT7J2M.mjs";import"./chunk-HIDW7FNV.mjs";import"./chunk-BOGNK4LV.mjs";import{n as re}from"./chunk-IVFVNNGB.mjs";import"./chunk-6JWWSDM6.mjs";import"./chunk-VINGECAJ.mjs";import"./chunk-H4CGM6YO.mjs";import"./chunk-IUM4NFKI.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-5XTUSN72.mjs";import"./chunk-Q7GIJBCD.mjs";import"./chunk-YHR4WQPR.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-26POJDIT.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-PMN4PAC3.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-H2BHESDA.mjs";import"./chunk-FP7CYB2F.mjs";import"./chunk-NED4MBIM.mjs";import"./chunk-UI3JQVRU.mjs";import{I as ne,L as se,i as oe}from"./chunk-KGU4SVIT.mjs";import{a as U,b as q}from"./chunk-AL4C3GFT.mjs";import"./chunk-JAEDM4SI.mjs";import"./chunk-5LFSFYFJ.mjs";import{a as Q}from"./chunk-OUZQPYT3.mjs";import{r as Y}from"./chunk-MSIEU5MR.mjs";import"./chunk-LC3NDW4N.mjs";import"./chunk-KB4ZHM4Q.mjs";import{e as G}from"./chunk-23SEDORH.mjs";import{f as X}from"./chunk-W6PN6TJG.mjs";import"./chunk-3Q353S2R.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-RHNTHGNU.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-D4GF4FAB.mjs";import"./chunk-CVHNXJH3.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-YA6ATMTB.mjs";import{b as z,c as Z,f as j,h as ae}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-M6K34KGF.mjs";import"./chunk-TNT27RBG.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-S42RBRH2.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-WUUKFE2U.mjs";import"./chunk-EAC5QCE3.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-PMWAFDUB.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{mkdtempSync as Se,rmSync as Ie}from"node:fs";import{tmpdir as Pe}from"node:os";import{basename as Ne,join as xe}from"node:path";var _="sandforge-empty",Ce=`sandforge empty \u2014 empty objects of a sandbox, or the whole of it, without the editor:
8
8
  a dry run first, then the deletes, to the recycle bin with an undo, or for good.
9
9
 
10
10
  Usage:
@@ -109,7 +109,7 @@ never empties, is not known here: the command registers the org afresh, from
109
109
  what it says it is. So the whole of a Partial Copy or Full sandbox, read from
110
110
  its data storage \u2014 past the 1 GB of a Developer Pro sandbox \u2014 is refused,
111
111
  --org and a --resume of such a run alike (COPY_SANDBOX), before anything is
112
- read: empty it whole from DataOps Cleanup in the panel, which knows the mark,
112
+ read: empty it whole from DataOps Emptying in the panel, which knows the mark,
113
113
  or pick its objects with --objects, which Production Guard asks about. A
114
114
  scratch org and a Developer or Developer Pro sandbox are emptied whole.
115
115
 
@@ -125,13 +125,13 @@ Exit codes:
125
125
  130, 143, 129 a Ctrl-C, a SIGTERM or a SIGHUP stopped it before its next
126
126
  call or job: --resume takes it up, --undo brings back what it deleted
127
127
  `,Le={switches:["--org","--custom-settings","--files","--managed-packages","--unrestorable","--hard-delete","--dry-run","--yes","--json","--accept-no-undo","--accept-people-active","--checkpoint-first",...ie],values:["--target","--objects","--exclude-object","--undo","--resume","--audit"]},Te=/^[A-Za-z][A-Za-z0-9_]{0,79}$/;function k(o){process.stderr.write(`${o} Run with --help.
128
- `),process.exit(2)}function ye(o,t){let e=[];for(let n=0;n<o.length;n++)o[n]===t&&o[n+1]!==void 0&&e.push(o[n+1]);return e}function _e(o){let t=o.replace(/[\\/]+$/,""),e=Ne(t);return pe(e)?e:void 0}function Ue(o){let t=o.slice(2);(t.includes("--help")||t.includes("-h"))&&(process.stdout.write(Ce),process.exit(0)),z(t,Le);let e=h=>t.includes(h),n=h=>{let p=ye(t,h);return p.length>1&&k(`${h} is given ${p.length} times: give it once.`),p[0]},r=n("--target");r===void 0&&k("--target <alias> names the org to empty."),Z.test(r)||k(`--target ${r} is not an sf CLI alias.`);let f=e("--json"),i=de(t),l=n("--audit"),g={target:r,json:f,accord:i,...l!==void 0?{audit:l}:{},...e("--accept-people-active")?{acceptPeopleActive:!0}:{}},s=n("--undo"),d=n("--resume"),c=n("--objects"),y=ye(t,"--exclude-object"),b=e("--org"),v=["--custom-settings","--files","--managed-packages","--unrestorable"].filter(e);if(s!==void 0||d!==void 0){let h=s!==void 0?"--undo":"--resume";s!==void 0&&d!==void 0&&k("--undo and --resume go apart."),s!==void 0&&e("--accept-people-active")&&k("--undo deletes nothing, and does not go with --accept-people-active.");let p=[...c!==void 0?["--objects"]:[],...b?["--org"]:[],...y.length>0?["--exclude-object"]:[],...v,...["--hard-delete","--accept-no-undo","--checkpoint-first","--dry-run"].filter(e)];p.length>0&&k(`${h} acts on what its run's journal holds, and does not go with ${p.join(", ")}.`);let E=s??d,I=_e(E);return I===void 0&&k(`${h} ${E} names no emptying: give its id (em-...) or its journal's folder.`),e("--yes")||be(g,s!==void 0?"undo":"resume"),{act:s!==void 0?"undo":"resume",runId:I,...g}}if(c!==void 0&&b&&k("--objects and --org go apart: give one."),c===void 0&&!b&&k("Name the objects to empty with --objects <A,B>, or the whole org with --org."),!b){let h=[...y.length>0?["--exclude-object"]:[],...v];h.length>0&&k(`${h.join(", ")} goes with --org alone.`)}let D=c===void 0?void 0:c.split(",").map(h=>h.trim()).filter(h=>h!=="");D!==void 0&&D.length===0&&k("--objects names no object.");for(let h of[...D??[],...y])Te.test(h)||k(`${h} is not an object API name.`);let A=e("--dry-run"),R=e("--yes");return A&&R&&k("--dry-run and --yes go apart: a dry run deletes nothing."),!A&&!R&&be(g,"empty"),A&&l!==void 0&&k("--audit records a run: a dry run adds no entry."),{act:"empty",request:b?{mode:"org",...y.length>0?{excluded:[...new Set(y)]}:{},...e("--custom-settings")?{customSettings:!0}:{},...e("--files")?{files:!0}:{},...e("--managed-packages")?{managedPackages:!0}:{},...e("--unrestorable")?{unrestorable:!0}:{}}:{mode:"objects",objects:[...new Set(D??[])]},hard:e("--hard-delete"),dryRun:A,acceptNoUndo:e("--accept-no-undo"),checkpointFirst:e("--checkpoint-first"),...g}}function be(o,t){let e={code:"NOT_CONFIRMED",message:t==="empty"?`${q(_)} asks no question: add --dry-run to read what it would delete, or --yes to empty once the dry run said it. Nothing was read or deleted.`:`${q(_)} asks no question: add --yes to ${t==="undo"?"undo":"take up"} the emptying. Nothing was read or written.`};process.stderr.write(`${P(e)}
128
+ `),process.exit(2)}function ye(o,t){let e=[];for(let n=0;n<o.length;n++)o[n]===t&&o[n+1]!==void 0&&e.push(o[n+1]);return e}function _e(o){let t=o.replace(/[\\/]+$/,""),e=Ne(t);return le(e)?e:void 0}function Ue(o){let t=o.slice(2);(t.includes("--help")||t.includes("-h"))&&(process.stdout.write(Ce),process.exit(0)),z(t,Le);let e=h=>t.includes(h),n=h=>{let p=ye(t,h);return p.length>1&&k(`${h} is given ${p.length} times: give it once.`),p[0]},r=n("--target");r===void 0&&k("--target <alias> names the org to empty."),Z.test(r)||k(`--target ${r} is not an sf CLI alias.`);let f=e("--json"),i=de(t),l=n("--audit"),g={target:r,json:f,accord:i,...l!==void 0?{audit:l}:{},...e("--accept-people-active")?{acceptPeopleActive:!0}:{}},s=n("--undo"),d=n("--resume"),c=n("--objects"),y=ye(t,"--exclude-object"),b=e("--org"),v=["--custom-settings","--files","--managed-packages","--unrestorable"].filter(e);if(s!==void 0||d!==void 0){let h=s!==void 0?"--undo":"--resume";s!==void 0&&d!==void 0&&k("--undo and --resume go apart."),s!==void 0&&e("--accept-people-active")&&k("--undo deletes nothing, and does not go with --accept-people-active.");let p=[...c!==void 0?["--objects"]:[],...b?["--org"]:[],...y.length>0?["--exclude-object"]:[],...v,...["--hard-delete","--accept-no-undo","--checkpoint-first","--dry-run"].filter(e)];p.length>0&&k(`${h} acts on what its run's journal holds, and does not go with ${p.join(", ")}.`);let E=s??d,I=_e(E);return I===void 0&&k(`${h} ${E} names no emptying: give its id (em-...) or its journal's folder.`),e("--yes")||be(g,s!==void 0?"undo":"resume"),{act:s!==void 0?"undo":"resume",runId:I,...g}}if(c!==void 0&&b&&k("--objects and --org go apart: give one."),c===void 0&&!b&&k("Name the objects to empty with --objects <A,B>, or the whole org with --org."),!b){let h=[...y.length>0?["--exclude-object"]:[],...v];h.length>0&&k(`${h.join(", ")} goes with --org alone.`)}let D=c===void 0?void 0:c.split(",").map(h=>h.trim()).filter(h=>h!=="");D!==void 0&&D.length===0&&k("--objects names no object.");for(let h of[...D??[],...y])Te.test(h)||k(`${h} is not an object API name.`);let A=e("--dry-run"),R=e("--yes");return A&&R&&k("--dry-run and --yes go apart: a dry run deletes nothing."),!A&&!R&&be(g,"empty"),A&&l!==void 0&&k("--audit records a run: a dry run adds no entry."),{act:"empty",request:b?{mode:"org",...y.length>0?{excluded:[...new Set(y)]}:{},...e("--custom-settings")?{customSettings:!0}:{},...e("--files")?{files:!0}:{},...e("--managed-packages")?{managedPackages:!0}:{},...e("--unrestorable")?{unrestorable:!0}:{}}:{mode:"objects",objects:[...new Set(D??[])]},hard:e("--hard-delete"),dryRun:A,acceptNoUndo:e("--accept-no-undo"),checkpointFirst:e("--checkpoint-first"),...g}}function be(o,t){let e={code:"NOT_CONFIRMED",message:t==="empty"?`${q(_)} asks no question: add --dry-run to read what it would delete, or --yes to empty once the dry run said it. Nothing was read or deleted.`:`${q(_)} asks no question: add --yes to ${t==="undo"?"undo":"take up"} the emptying. Nothing was read or written.`};process.stderr.write(`${P(e)}
129
129
  `),o.json&&process.stdout.write(`${JSON.stringify({tool:_,target:o.target,action:t,refused:e},null,2)}
130
130
  `),process.exit(1)}var u=o=>o.toLocaleString("en-US");function $(o){if(o.records===void 0)return`not counted (${o.unread??"no count"})`;if(o.atMost&&o.atLeast)return`about ${u(o.records)}`;let t=o.atMost?" at most":o.atLeast?" at least":"";return`${u(o.records)}${t}`}var we={configuration:"configuration: flows, orchestrations, settings, definitions",notRestorable:"cannot come back from the recycle bin (--unrestorable empties them)",excludedByUser:"left out as asked",notFound:"the org has no such object",chatter:"Chatter",history:"field history",sharing:"sharing",changeEvent:"change events",unsupportedKind:"big, external or platform event object",customSetting:"a custom setting (--custom-settings empties them)",files:"files (--files empties them)",managedPackage:"a managed package (--managed-packages empties them)",documents:"documents",heldWithFiles:"goes with the files",setup:"setup",platformCreated:"made by the platform",metadata:"metadata",notDeletable:"the user may not delete its records",notDescribed:"the org would not describe it",noRecycleBin:"its records never go to the recycle bin",notForGood:"its records are never deleted for good"},qe={activatedOrder:"activated order(s): set back to Draft first, as Salesforce deletes none activated",activatedOrderLeft:"activated order(s) left as they are: what blocks keeps too many records to tell those under them apart, so none is set back to Draft, and what each hangs from is refused",standardPriceBook:"the standard price book: kept, never deleted",directContactRelation:"direct relation(s) of a contact to its account: they go with the contact",personAccountContact:"person account contact(s): left, as each goes only with its account"};function L(o,...t){let e=t.every(n=>n!==void 0)?t.reduce((n,r)=>n+(r??0),0):void 0;return o===void 0&&e===void 0?{}:{apiRequests:{...o!==void 0?{estimate:o}:{},...e!==void 0?{sent:e}:{}}}}var Be={NO_UNDO:"--accept-no-undo",PEOPLE_ACTIVE:"--accept-people-active"},Me=new Set(["TOO_MANY_RECORDS","NOTHING_HELD"]);function K(o,t){if(Me.has(o.code)||t!==void 0&&t.code===o.code&&t.message===o.message)return{...o,message:Oe(o.message)};let n=Be[o.code];return n&&!o.message.includes(n)?{...o,message:`${o.message} (${n} accepts it)`}:o}function Oe(o){let t=o.replace(/\s*No record was read( or written)?\.$/,"").replace(/: pick fewer objects\.$/,".").replace(/\.$/,"");return`The checkpoint first was refused: ${t.charAt(0).toLowerCase()}${t.slice(1)}. Empty fewer objects (--objects, or --exclude-object with --org), or leave out --checkpoint-first to empty without one.`}function De(o){return o.reason==="notRestorable"?`${o.objectApiName} sent by its own pass: Salesforce does not bring them back`:`${o.objectApiName} before ${o.parent??"its parent"}${o.field!==void 0?` (${o.field})`:""}: they go before a record they name`}function Fe(o,t){let{preview:e}=t,n=[],r=e.mode==="org"?"every object people work in":`${e.passes.length} object(s) picked`;n.push(`${q(_)} target=${o} ${r} ${e.deleteMode==="hard"?"FOR GOOD":"to the recycle bin"}`),n.push(`read at ${t.readAt} on the org's clock: records made after it are left`),n.push(`${e.total.atLeast?"at least ":""}${u(e.total.records)} record(s) of ${u(e.total.objects)} object(s)`+(e.total.uncounted.length>0?`, and ${e.total.uncounted.join(", ")} not counted`:""));let f=e.passes.filter(s=>s.records.records===void 0||s.records.records>0);if(e.passes.length>0){n.push("","Emptied, in the order the run takes them:");for(let d of f){let c=d.sent.records!==d.records.records?`, ${$(d.sent)} sent by its own pass`:"",y=d.archived?.records?`, ${$(d.archived)} archived`:"",b=d.kept?.records?`, ${$(d.kept)} kept`:"",v=d.blocked?`, ${$(d.blocked)} kept by what blocks them, which stay`:"";n.push(` ${d.objectApiName.padEnd(40)} ${$(d.records)}${c}${y}${b}${v}`)}let s=e.passes.length-f.length;s>0&&n.push(` and ${u(s)} object(s) holding no record (--json lists them)`)}if(e.along.length>0){n.push("","Going along, deleted by the org with a record emptied:");for(let s of e.along){let d=[...new Set(s.via.map(b=>`${b.field} \u2192 ${b.parent}`))].join(", "),c=s.blocking?`; ${$(s.blocking)} more block the delete and stay`:"",y=s.routesNotRead?.length?`; routes through ${s.routesNotRead.join(", ")} not read, there may be more`:"";n.push(` ${s.objectApiName.padEnd(40)} ${$(s.records)}${d?` (${d})`:""}${c}${y}`)}}let i=e.refusals.filter(s=>s.records.records!==0);if(i.length>0){n.push("","Likely refused by the org, or done first so that it is not:");for(let s of i)n.push(` ${s.objectApiName}: ${$(s.records)} \u2014 ${qe[s.code]}`)}let l=e.blockers.filter(s=>s.records.records!==0);if(l.length>0){n.push("","Blocking: records of objects not emptied whose lookup refuses the delete; they stay, and so do the records they name, with what hangs from those:");for(let s of l){let d=s.keeps&&s.keeps.records!==0?`, keeping ${$(s.keeps)} ${s.parent}`:"";n.push(` ${s.objectApiName}.${s.field} \u2192 ${s.parent}: ${$(s.records)}${d}`)}}let g=e.undoLost.filter(s=>s.records.records!==0);if(e.deleteMode==="recycle"&&g.length>0){n.push("","Undo cannot bring back:");for(let s of g)n.push(` ${De(s)}: ${$(s.records)}`)}if(e.leftOut.length>0){let s=c=>e.mode==="objects"||c==="excludedByUser"||c==="notFound",d=new Map;n.push("",`Left out: ${u(e.leftOut.length)} object(s)`);for(let c of e.leftOut)s(c.reason)?n.push(` ${c.objectApiName}: ${we[c.reason]}`):d.set(c.reason,(d.get(c.reason)??0)+1);for(let[c,y]of d)n.push(` ${u(y)} object(s): ${we[c]}`)}if(n.push("",...We(t)),n.push(...He(t)),t.checkpoint){let{estimate:s,objects:d,refusal:c}=t.checkpoint;n.push(c?`checkpoint first: refused (${c.code}): ${Oe(c.message)}`:`checkpoint first: ${u(d.length)} object(s), about ${u(s.records)} record(s) and ${u(s.apiRequests)} API request(s), taken before the first delete`)}return t.openRun&&n.push(`the last emptying of ${o}, ${t.openRun.runId}, stopped part way: --resume ${t.openRun.runId} takes it up, --undo ${t.openRun.runId} brings back what it deleted`),t.automation.lines.length>0&&n.push("",...t.automation.lines),n}function We(o){let{cost:t}=o.preview,e=r=>r.verdict==="unread"?` (what the org has left today could not be read: ${r.unread})`:` of ${u(r.remaining)} left today${r.verdict==="exceeds"?": too many":""}`,n=[`about ${u(t.api.estimate)} API request(s), the dry run's reads and the run's together${e(t.api)}, ${u(t.bulkBatches)} Bulk API batch(es)`+(t.batches?e(t.batches):"")+`, about ${u(Math.ceil(t.seconds))} s`];return o.preview.deleteMode==="recycle"?n.push(`${u(t.binRecords)} record(s) to the recycle bin`+(t.bin?.past?`: past the ${u(t.bin.documentedCapacity)} the bin is documented to hold, it empties its oldest first, colleagues\u2019 deletions among them, and Undo may not bring all back`:"")):n.push("deleted for good, with what goes along: no undo brings anything back"),n}function He(o){let t=[];if(o.access.kind==="org")t.push("the user sees every record: View All Data and Modify All Data");else{t.push("the user holds "+(o.access.viewAllData?"View All Data":"no View All Data")+" and "+(o.access.modifyAllData?"Modify All Data":"no Modify All Data")+": the records of an object it is not proven to see whole are neither counted nor deleted, but those a deleted parent takes along are");for(let e of o.access.unseen)t.push(` not proven to see ${e.objectApiName} whole: ${e.reason}`)}if(o.preview.deleteMode==="hard"&&t.push(o.hardDelete.permitted?"the user holds Bulk API Hard Delete":`the user does not hold Bulk API Hard Delete${o.hardDelete.unread?` (${o.hardDelete.unread})`:""}`),o.peopleActive.people>0){t.push(`${o.peopleActive.atLeast?"at least ":""}${u(o.peopleActive.people)} other person(s) changed records of these objects in the hour before the read: their work goes with the emptying, which --accept-people-active accepts`);for(let e of o.peopleActive.who??[])t.push(` user ${e.userId}: ${u(e.records)} record(s), the last changed at ${e.lastChangedAt||"an unread time"}`)}return t}function ke(o,t){if(t.runId==="")return t.notes;let e=[`${t.resumed?"took up":"emptied"} ${o}: ${t.runId}, ${t.status}`+(t.hard?", for good":"")],n=t.passes.filter(i=>i.deleted+i.gone+i.refused+(i.notReached??0)+(i.madeSince??0)>0||i.reasons.length>0);for(let i of n){let l=[`deleted ${u(i.deleted)}`,...i.gone>0?[`gone before ${u(i.gone)}`]:[],...i.refused>0?[`refused ${u(i.refused)}`]:[],...(i.notReached??0)>0?[`not reached ${u(i.notReached??0)}`]:[],...(i.madeSince??0)>0?[`made since and left ${u(i.madeSince??0)}`]:[]];e.push(` ${i.objectApiName.padEnd(40)} ${l.join(", ")}`);for(let g of i.reasons)e.push(` ${g}`)}let r=t.passes.length-n.length;r>0&&e.push(` and ${u(r)} object(s) whose pass found nothing to delete (--json lists them)`);let{totals:f}=t;e.push(`deleted ${u(f.deleted)} record(s), ${u(f.gone)} gone before their delete, ${u(f.refused)} refused, ${u(f.notReached)} not reached`),t.hardRefused&&e.push(`the org refused to delete for good: ${t.hardRefused}`),t.checkpoint?.state==="taken"?e.push(`checkpoint taken first: ${t.checkpoint.name} (${t.checkpoint.checkpointId}); ${U("checkpoint")} rewind --org ${o} --checkpoint ${t.checkpoint.checkpointId} returns the objects it holds to it`):t.checkpoint?.state==="deleted"&&e.push("the checkpoint taken first was deleted again: the run deleted nothing");for(let i of t.notes)e.push(i);return t.status==="cancelled"||t.status==="failure"?e.push(`${U("empty")} --target ${o} --resume ${t.runId} --yes takes it up; --undo ${t.runId} --yes brings back what it deleted`):t.undo.offered?e.push(`${U("empty")} --target ${o} --undo ${t.runId} --yes brings them back while the recycle bin holds them, as long as no other emptying of the org follows`):t.undo.why==="hard"&&e.push("no undo: it deleted for good"),e}function Ge(o,t){let e=[`undid the emptying ${t.runId} of ${o}: ${t.status}`];for(let r of t.objects){let f=[`brought back ${u(r.undeleted)}`,...r.alreadyBack>0?[`already back ${u(r.alreadyBack)}`]:[],...r.notInBin>0?[`no longer in the recycle bin ${u(r.notInBin)}`]:[],...r.othersDeletion>0?[`deleted by another user, Modify All Data needed ${u(r.othersDeletion)}`]:[],...r.refused>0?[`refused ${u(r.refused)}`]:[],...(r.notReached??0)>0?[`not reached ${u(r.notReached??0)}`]:[]];e.push(` ${r.objectApiName.padEnd(40)} ${f.join(", ")}`);for(let i of r.reasons)e.push(` ${i}`)}let n=t.previewedLost??[];if(n.length>0){e.push("not brought back, as the preview said Undo could not:");for(let r of n)e.push(` ${De(r)}: ${$(r.records)}`)}for(let r of t.notes)e.push(r);return e}function J(o,t){return o==="success"?0:o==="partial"?3:o==="cancelled"?t!==void 0?H(t):1:1}var Je=60*6e4,$e=720*6e4,Re="dataops",O=class extends Error{constructor(e,n=1,r=[]){super(e.message);this.refusal=e;this.code=n;this.also=r;this.name="Stop"}refusal;code;also};function T(o){return o.message?.payload??{}}function V(o,t,e){if(o.outcome==="unanswered")return new O({code:"UNANSWERED",message:`${t}: no answer came in time.`});let n=T(o),r=typeof n.message=="string"?n.message:JSON.stringify(n),f=typeof n.code=="string"?n.code:o.outcome.toUpperCase(),i=Array.isArray(n.alsoRefused)?n.alsoRefused.flatMap(l=>{let g=l??{};return typeof g.code=="string"&&typeof g.message=="string"?[{code:g.code,message:g.message}]:[]}):[];return e!==void 0&&f==="CANCELLED"?new O({code:f,message:r},H(e)):new O(K({code:f,message:r}),1,i.map(l=>K(l)))}async function ve(o,t,e){let n,r=o.onEvent((i,l,g)=>{n!==void 0&&l==="started"&&g.module===Re&&o.abort(i)}),f=ee(i=>{n=i,process.stderr.write(`
131
131
  interrupted: ${t} (Ctrl-C again ends it at once)
132
132
  `);for(let l of o.getRunning())l.module===Re&&o.abort(l.operationId)});try{let i=await e();return n!==void 0?{answer:i,stoppedBy:n}:{answer:i}}finally{f(),r()}}async function Ve(o,t,e){if(o.act==="empty")return o.request.mode==="org";if(o.act!=="resume")return!1;try{return(await t.open(e.orgId,o.runId)).head.mode==="org"}catch{return!1}}async function Ke(o=process.argv,t={}){let e=Ue(o),n=d=>{process[e.json?"stderr":"stdout"].write(`${d}
133
133
  `)},r=d=>{e.json&&process.stdout.write(`${JSON.stringify({tool:_,target:e.target,action:e.act,...d},null,2)}
134
- `)},f=Se(xe(Pe(),"sandforge-empty-")),i=new me,l,g,s;try{let d=t.checkpointRoot??oe(),c=se({root:d,...t.locksDir!==void 0?{locksDir:t.locksDir}:{}});if("refusal"in c)throw new O({code:"STORE_REFUSED",message:`The org's lock and a checkpoint taken first cannot be kept in ${c.refusal.path}: ${ne(c.refusal,d,"SANDFORGE_JOURNAL_DIR=<folder>")} Nothing was read or deleted.`});let y=c.store,b=new he(t.journalRoot??le()),v=(t.createHost??ge)({storeDir:f,log:a=>{a.startsWith("[WARN] ")&&n(`warning: ${a.slice(7)}`)},compose:a=>{l=a.configStore,g=a,a.handlers.setCheckpointStore(y),a.handlers.setEmptyStores({journals:b,lock:m=>y.lock(m,"empty")}),a.handlers.setInfraServices({backgroundRegistry:i,productionGuard:ue(n,e.target)})},onPost:a=>{if(a.type!=="operation:progress")return;let m=a.payload?.currentStep;typeof m!="string"||m===s||(s=m,n(` ${m}`))}}),D=()=>0,A=()=>(v.connectingRequests?.()??0)+D(),R;try{R=await v.connect(e.target)}catch(a){throw new O({code:"NOT_CONNECTED",message:a instanceof Q?`${a.reason} Nothing was read or deleted.`:`${e.target} could not be reached: ${a instanceof Error?a.message:String(a)}. Nothing was read or deleted.`})}let N={...e.accord};if(await Ve(e,b,R)){let a=g,m=await fe({target:e.target,orgType:R.orgType,limits:async()=>{if(!a)throw new Error("the host built no registry");let w=await Y(R.id,a.orgRegistry,a.orgManager);return D=X(w),w.request({method:"GET",url:"/limits"})}});if(m)throw new O(m)}if(e.act!=="empty"){let a=e.act==="undo";n(a?`undo the emptying ${e.runId} of ${e.target}: bring back what it deleted, parents first`:`take up the emptying ${e.runId} of ${e.target} where it stopped`);let m=await ve(i,a?"the undo stops before its next call to the org: --undo again takes up what it left":"the run stops before its next call or job, and keeps its journal: --resume takes it up",()=>v.request({type:a?"dataops:empty:undo":"dataops:empty:run",payload:a?{orgId:R.id,runId:e.runId,...N}:{orgId:R.id,resumeRunId:e.runId,...N,...e.acceptPeopleActive?{acceptPeopleActive:!0}:{}},timeoutMs:$e}));if(Ae(l,e.audit),m.answer.outcome!=="answered")throw V(m.answer,a?"The undo":"The run",m.stoppedBy);if(a){let w=T(m.answer).result;for(let W of Ge(e.target,w))n(W);r({runId:e.runId,result:w,...L(w.requestsEstimate,A(),w.requestsSent)}),j(J(w.status,m.stoppedBy))}else{let w=T(m.answer).result;for(let W of ke(e.target,w))n(W);r({runId:e.runId,result:w,...L(w.requestsEstimate,A(),w.requestsSent)}),j(J(w.status,m.stoppedBy))}return}let h=await v.request({type:"dataops:empty:preview",payload:{orgId:R.id,request:e.request,deleteMode:e.hard?"hard":"recycle",...e.acceptNoUndo?{acceptNoUndo:!0}:{},...e.acceptPeopleActive?{acceptPeopleActive:!0}:{},...e.checkpointFirst?{checkpointFirst:!0}:{},...N},timeoutMs:Je});if(h.outcome!=="answered")throw V(h,"The dry run");let p=T(h);for(let a of Fe(e.target,p))n(a);let E=p.refusals.map(a=>K(a,p.checkpoint?.refusal)),I={dryRun:e.dryRun,previewId:p.previewId,readAt:p.readAt,tier:p.tier,preview:p.preview,access:p.access,hardDelete:p.hardDelete,peopleActive:p.peopleActive,...p.checkpoint?{checkpoint:p.checkpoint}:{},...p.openRun?{openRun:p.openRun}:{},automation:p.automation},B=p.preview.cost.api.estimate;if(e.dryRun){for(let a of E)n(` ${te(a)}`);E.length===0&&n(" a real run would not be refused"),r({...I,...L(B,A(),p.requestsSent),...E.length>0?{wouldBeRefused:E.map(a=>a.message),wouldBeRefusedCodes:E.map(a=>a.code)}:{}}),j(E.length>0?1:0);return}let[M,...F]=E;if(M){process.stderr.write(`${P(M)}
134
+ `)},f=Se(xe(Pe(),"sandforge-empty-")),i=new me,l,g,s;try{let d=t.checkpointRoot??oe(),c=se({root:d,...t.locksDir!==void 0?{locksDir:t.locksDir}:{}});if("refusal"in c)throw new O({code:"STORE_REFUSED",message:`The org's lock and a checkpoint taken first cannot be kept in ${c.refusal.path}: ${ne(c.refusal,d,"SANDFORGE_JOURNAL_DIR=<folder>")} Nothing was read or deleted.`});let y=c.store,b=new fe(t.journalRoot??he()),v=(t.createHost??ge)({storeDir:f,log:a=>{a.startsWith("[WARN] ")&&n(`warning: ${a.slice(7)}`)},compose:a=>{l=a.configStore,g=a,a.handlers.setCheckpointStore(y),a.handlers.setEmptyStores({journals:b,lock:m=>y.lock(m,"empty")}),a.handlers.setInfraServices({backgroundRegistry:i,productionGuard:ue(n,e.target)})},onPost:a=>{if(a.type!=="operation:progress")return;let m=a.payload?.currentStep;typeof m!="string"||m===s||(s=m,n(` ${m}`))}}),D=()=>0,A=()=>(v.connectingRequests?.()??0)+D(),R;try{R=await v.connect(e.target)}catch(a){throw new O({code:"NOT_CONNECTED",message:a instanceof Q?`${a.reason} Nothing was read or deleted.`:`${e.target} could not be reached: ${a instanceof Error?a.message:String(a)}. Nothing was read or deleted.`})}let N={...e.accord};if(await Ve(e,b,R)){let a=g,m=await pe({target:e.target,orgType:R.orgType,limits:async()=>{if(!a)throw new Error("the host built no registry");let w=await Y(R.id,a.orgRegistry,a.orgManager);return D=X(w),w.request({method:"GET",url:"/limits"})}});if(m)throw new O(m)}if(e.act!=="empty"){let a=e.act==="undo";n(a?`undo the emptying ${e.runId} of ${e.target}: bring back what it deleted, parents first`:`take up the emptying ${e.runId} of ${e.target} where it stopped`);let m=await ve(i,a?"the undo stops before its next call to the org: --undo again takes up what it left":"the run stops before its next call or job, and keeps its journal: --resume takes it up",()=>v.request({type:a?"dataops:empty:undo":"dataops:empty:run",payload:a?{orgId:R.id,runId:e.runId,...N}:{orgId:R.id,resumeRunId:e.runId,...N,...e.acceptPeopleActive?{acceptPeopleActive:!0}:{}},timeoutMs:$e}));if(Ae(l,e.audit),m.answer.outcome!=="answered")throw V(m.answer,a?"The undo":"The run",m.stoppedBy);if(a){let w=T(m.answer).result;for(let W of Ge(e.target,w))n(W);r({runId:e.runId,result:w,...L(w.requestsEstimate,A(),w.requestsSent)}),j(J(w.status,m.stoppedBy))}else{let w=T(m.answer).result;for(let W of ke(e.target,w))n(W);r({runId:e.runId,result:w,...L(w.requestsEstimate,A(),w.requestsSent)}),j(J(w.status,m.stoppedBy))}return}let h=await v.request({type:"dataops:empty:preview",payload:{orgId:R.id,request:e.request,deleteMode:e.hard?"hard":"recycle",...e.acceptNoUndo?{acceptNoUndo:!0}:{},...e.acceptPeopleActive?{acceptPeopleActive:!0}:{},...e.checkpointFirst?{checkpointFirst:!0}:{},...N},timeoutMs:Je});if(h.outcome!=="answered")throw V(h,"The dry run");let p=T(h);for(let a of Fe(e.target,p))n(a);let E=p.refusals.map(a=>K(a,p.checkpoint?.refusal)),I={dryRun:e.dryRun,previewId:p.previewId,readAt:p.readAt,tier:p.tier,preview:p.preview,access:p.access,hardDelete:p.hardDelete,peopleActive:p.peopleActive,...p.checkpoint?{checkpoint:p.checkpoint}:{},...p.openRun?{openRun:p.openRun}:{},automation:p.automation},B=p.preview.cost.api.estimate;if(e.dryRun){for(let a of E)n(` ${te(a)}`);E.length===0&&n(" a real run would not be refused"),r({...I,...L(B,A(),p.requestsSent),...E.length>0?{wouldBeRefused:E.map(a=>a.message),wouldBeRefusedCodes:E.map(a=>a.code)}:{}}),j(E.length>0?1:0);return}let[M,...F]=E;if(M){process.stderr.write(`${P(M)}
135
135
  `);for(let a of F)process.stderr.write(`${P(a)}
136
136
  `);r({...I,...L(B,A(),p.requestsSent),refused:M,...F.length>0?{alsoRefused:F}:{}}),j(1);return}let x=await ve(i,"the run stops before its next call or job, and keeps its journal: --resume takes it up, --undo brings back what it deleted",()=>v.request({type:"dataops:empty:run",payload:{orgId:R.id,previewId:p.previewId,...e.acceptNoUndo?{acceptNoUndo:!0}:{},...e.acceptPeopleActive?{acceptPeopleActive:!0}:{},...e.checkpointFirst?{checkpointFirst:!0}:{},...N},timeoutMs:$e}));if(Ae(l,e.audit),x.answer.outcome!=="answered")throw V(x.answer,"The run",x.stoppedBy);let C=T(x.answer).result;for(let a of ke(e.target,C))n(a);C.runId!==""&&n(`journal: ${b.root}`),r({...I,...L(B,A(),p.requestsSent,C.requestsSent),result:C}),j(J(C.status,x.stoppedBy))}catch(d){let c=d instanceof O?d:new O({code:"FAILED",message:d instanceof Error?d.message:String(d)});process.stderr.write(`${P(c.refusal)}
137
137
  `);for(let y of c.also)process.stderr.write(`${P(y)}