sandforge 1.79.0 → 1.81.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 (256) hide show
  1. package/bin/sandforge-pipeline.mjs +12 -0
  2. package/lib/{chunk-BN7A4GRQ.mjs → chunk-2IB7I3IQ.mjs} +1 -1
  3. package/lib/{chunk-PBI4BYWW.mjs → chunk-2NAIUKVL.mjs} +1 -1
  4. package/lib/chunk-2OIRJEYE.mjs +7 -0
  5. package/lib/{chunk-FOVVHGEP.mjs → chunk-2OZG6GRW.mjs} +1 -1
  6. package/lib/{chunk-5CD257T7.mjs → chunk-2Z54GB6X.mjs} +1 -1
  7. package/lib/chunk-2ZMGVBLW.mjs +7 -0
  8. package/lib/{chunk-4NAHW2D3.mjs → chunk-33ZX3A56.mjs} +1 -1
  9. package/lib/{chunk-4SNDMJP2.mjs → chunk-3AOKLIVE.mjs} +1 -1
  10. package/lib/{chunk-SIOZXPFG.mjs → chunk-3B5H24ZG.mjs} +1 -1
  11. package/lib/chunk-43K2C6H2.mjs +7 -0
  12. package/lib/chunk-4JKR4PTZ.mjs +8 -0
  13. package/lib/chunk-4L7FBOJS.mjs +8 -0
  14. package/lib/chunk-5344TZBT.mjs +11 -0
  15. package/lib/{chunk-SAR5622P.mjs → chunk-54HYHHVL.mjs} +1 -1
  16. package/lib/chunk-55LQD3Y3.mjs +7 -0
  17. package/lib/chunk-56MPPWLA.mjs +7 -0
  18. package/lib/chunk-5C5XEVZN.mjs +11 -0
  19. package/lib/chunk-5CKWGZX4.mjs +9 -0
  20. package/lib/{chunk-RSWDYIHY.mjs → chunk-5GBO4KD5.mjs} +1 -1
  21. package/lib/{chunk-GNC27UEU.mjs → chunk-5UT2ZBGF.mjs} +1 -1
  22. package/lib/chunk-5VQNKDFU.mjs +7 -0
  23. package/lib/chunk-5WGA5CZB.mjs +7 -0
  24. package/lib/chunk-5ZKCLBTN.mjs +474 -0
  25. package/lib/chunk-67CC7RAE.mjs +7 -0
  26. package/lib/{chunk-5O6JOMHS.mjs → chunk-6CDIIFNX.mjs} +1 -1
  27. package/lib/{chunk-AV5SWEHP.mjs → chunk-6FARZYMJ.mjs} +1 -1
  28. package/lib/{chunk-7UQD6V6F.mjs → chunk-6FMLW7PH.mjs} +1 -1
  29. package/lib/chunk-6IGEASOF.mjs +7 -0
  30. package/lib/{chunk-H2PJNIYJ.mjs → chunk-6NADW3OI.mjs} +1 -1
  31. package/lib/chunk-6SEDOIO3.mjs +10 -0
  32. package/lib/{chunk-AUTM6H6Z.mjs → chunk-742SSN7I.mjs} +1 -1
  33. package/lib/chunk-7DALDJMO.mjs +7 -0
  34. package/lib/chunk-7PK5QDQI.mjs +7 -0
  35. package/lib/chunk-AELFEK3G.mjs +7 -0
  36. package/lib/chunk-AITNZWLB.mjs +9 -0
  37. package/lib/{chunk-HV2MXMGI.mjs → chunk-AJPSGVMD.mjs} +1 -1
  38. package/lib/{chunk-OTWRDD6L.mjs → chunk-BNO5GIJ6.mjs} +1 -1
  39. package/lib/{chunk-K2FBZIXY.mjs → chunk-BWWQXU2B.mjs} +1 -1
  40. package/lib/{chunk-IC2C2GOF.mjs → chunk-BXZ73A5M.mjs} +1 -1
  41. package/lib/chunk-BZFIOZS3.mjs +156 -0
  42. package/lib/{chunk-XBG5SP6Q.mjs → chunk-C4YGSK6W.mjs} +1 -1
  43. package/lib/chunk-CAFUNR6D.mjs +7 -0
  44. package/lib/chunk-CULAOP3U.mjs +7 -0
  45. package/lib/chunk-D62KWDDT.mjs +7 -0
  46. package/lib/{chunk-BILZ3SSR.mjs → chunk-D7P7DTWL.mjs} +1 -1
  47. package/lib/chunk-DHGPDSXS.mjs +7 -0
  48. package/lib/{chunk-ZXH4MBWP.mjs → chunk-DHIW4IO5.mjs} +1 -1
  49. package/lib/{chunk-NM4MDLK4.mjs → chunk-DMBR24CK.mjs} +1 -1
  50. package/lib/chunk-DPYTG6DM.mjs +48 -0
  51. package/lib/chunk-DQR5NDMI.mjs +7 -0
  52. package/lib/chunk-DXOXLUZA.mjs +7 -0
  53. package/lib/chunk-E2OBAWSH.mjs +7 -0
  54. package/lib/chunk-E2YJVSX6.mjs +10 -0
  55. package/lib/chunk-EAFLDSQ2.mjs +7 -0
  56. package/lib/{chunk-HCIDVIOW.mjs → chunk-EH5YUA5W.mjs} +1 -1
  57. package/lib/{chunk-2BVTCNWA.mjs → chunk-EOSEMFPU.mjs} +1 -1
  58. package/lib/chunk-ETT5GP4P.mjs +13 -0
  59. package/lib/{chunk-3SRXFZSD.mjs → chunk-FDGFUEK3.mjs} +1 -1
  60. package/lib/{chunk-3DCUADVK.mjs → chunk-FLNLG43R.mjs} +1 -1
  61. package/lib/{chunk-HTJ5OGP5.mjs → chunk-FSDO4DJA.mjs} +1 -1
  62. package/lib/{chunk-HJKM3E56.mjs → chunk-FSZTXLNW.mjs} +1 -1
  63. package/lib/chunk-FTA5LOVX.mjs +7 -0
  64. package/lib/chunk-G4VXPS3A.mjs +7 -0
  65. package/lib/chunk-GF247DA7.mjs +7 -0
  66. package/lib/{chunk-QRV2OSIS.mjs → chunk-GK7VEYFM.mjs} +1 -1
  67. package/lib/{chunk-5MMXFWPD.mjs → chunk-GR3NGDVM.mjs} +1 -1
  68. package/lib/{chunk-P7GSGFJO.mjs → chunk-GTIXJCGS.mjs} +1 -1
  69. package/lib/{chunk-342FN7AO.mjs → chunk-GWRKS3AL.mjs} +1 -1
  70. package/lib/{chunk-LQ4DRFUH.mjs → chunk-GYKNCYES.mjs} +1 -1
  71. package/lib/{chunk-WIO4XO4F.mjs → chunk-HFSBDM7B.mjs} +1 -1
  72. package/lib/chunk-HVC5CYIB.mjs +7 -0
  73. package/lib/{chunk-EQF2IJS2.mjs → chunk-HYBH5PFM.mjs} +1 -1
  74. package/lib/chunk-HYOOJVR6.mjs +7 -0
  75. package/lib/{chunk-TQX3PURV.mjs → chunk-IBURU7T7.mjs} +1 -1
  76. package/lib/chunk-ICIYL45C.mjs +7 -0
  77. package/lib/{chunk-K22PA4XL.mjs → chunk-IKGHRYCN.mjs} +1 -1
  78. package/lib/chunk-IM2XA6JI.mjs +7 -0
  79. package/lib/{chunk-P2PJYWGQ.mjs → chunk-J6G23RUI.mjs} +1 -1
  80. package/lib/{chunk-JVL444U5.mjs → chunk-JU2XEKEO.mjs} +1 -1
  81. package/lib/{chunk-H45UXY6G.mjs → chunk-K55LH4ZQ.mjs} +1 -1
  82. package/lib/chunk-K5HV4YRO.mjs +7 -0
  83. package/lib/{chunk-IAZB4WIL.mjs → chunk-K77NR3UK.mjs} +1 -1
  84. package/lib/chunk-KE2PGD6C.mjs +7 -0
  85. package/lib/chunk-KGYXLSQ5.mjs +37 -0
  86. package/lib/{chunk-TEOLMRDO.mjs → chunk-KNIRA333.mjs} +1 -1
  87. package/lib/chunk-KOQV4WXC.mjs +8 -0
  88. package/lib/{chunk-PNCONNFJ.mjs → chunk-KRNFVAGC.mjs} +1 -1
  89. package/lib/chunk-L5FGY6YA.mjs +7 -0
  90. package/lib/{chunk-MTMH6H2A.mjs → chunk-LCDPCUXS.mjs} +1 -1
  91. package/lib/{chunk-YAZO75G2.mjs → chunk-LNXBCE7E.mjs} +1 -1
  92. package/lib/{chunk-ZOVSMN5C.mjs → chunk-LO527YLT.mjs} +1 -1
  93. package/lib/chunk-MAHZMPMZ.mjs +7 -0
  94. package/lib/{chunk-QQZZMKU3.mjs → chunk-MHW6DV6T.mjs} +1 -1
  95. package/lib/{chunk-2YIV2OB2.mjs → chunk-MIDBQ7SD.mjs} +1 -1
  96. package/lib/{chunk-6EBMEGZB.mjs → chunk-MKNAZPOT.mjs} +1 -1
  97. package/lib/{chunk-NTDN2JQZ.mjs → chunk-MNITSYI2.mjs} +8 -8
  98. package/lib/chunk-MO3N5XVV.mjs +341 -0
  99. package/lib/{chunk-SBIMVCXT.mjs → chunk-MS4FJDFD.mjs} +9 -9
  100. package/lib/chunk-MWLFFVQV.mjs +8 -0
  101. package/lib/chunk-N6HHNR6J.mjs +7 -0
  102. package/lib/chunk-N7J6NJQ6.mjs +7 -0
  103. package/lib/chunk-NJ3EOEHS.mjs +9 -0
  104. package/lib/chunk-NWPQF5XR.mjs +7 -0
  105. package/lib/{chunk-PUOX4NBJ.mjs → chunk-NWVVCZUK.mjs} +1 -1
  106. package/lib/{chunk-DLDX6RRC.mjs → chunk-O6ADMP36.mjs} +1 -1
  107. package/lib/chunk-O7DAFE6M.mjs +14 -0
  108. package/lib/chunk-OEHVAJAB.mjs +7 -0
  109. package/lib/chunk-OETEC3P7.mjs +7 -0
  110. package/lib/{chunk-GCOB7K5N.mjs → chunk-OHEOJISY.mjs} +1 -1
  111. package/lib/chunk-OIIL4NVI.mjs +7 -0
  112. package/lib/chunk-OMZJ37JI.mjs +15 -0
  113. package/lib/{chunk-NZ5ZZLKS.mjs → chunk-ONMBSACW.mjs} +1 -1
  114. package/lib/chunk-OQQHNYR7.mjs +272 -0
  115. package/lib/{chunk-AAVJ5XVX.mjs → chunk-OU5W7SCB.mjs} +1 -1
  116. package/lib/{chunk-RSYICMZG.mjs → chunk-OVOLG3AL.mjs} +1 -1
  117. package/lib/{chunk-F74IHMGL.mjs → chunk-OXKZ4Y3B.mjs} +1 -1
  118. package/lib/{chunk-W7KFAY55.mjs → chunk-OZNLOV4U.mjs} +1 -1
  119. package/lib/{chunk-TYYOBZMU.mjs → chunk-PC247GKX.mjs} +1 -1
  120. package/lib/chunk-PPGDAUEQ.mjs +7 -0
  121. package/lib/{chunk-RACDTRZA.mjs → chunk-PYUEHBA6.mjs} +1 -1
  122. package/lib/{chunk-TLH7AD35.mjs → chunk-PZBZ7MNC.mjs} +1 -1
  123. package/lib/{chunk-DBFJB2B6.mjs → chunk-QIRO4HTE.mjs} +1 -1
  124. package/lib/{chunk-PZTSVQSF.mjs → chunk-QXLZINZB.mjs} +1 -1
  125. package/lib/chunk-R2BJWO5N.mjs +20 -0
  126. package/lib/chunk-R6TF26V4.mjs +10 -0
  127. package/lib/{chunk-P42X3B4D.mjs → chunk-RKALOKAU.mjs} +1 -1
  128. package/lib/chunk-SQGP46QS.mjs +7 -0
  129. package/lib/chunk-SU65Z2BA.mjs +7 -0
  130. package/lib/chunk-SW2NUKQL.mjs +9 -0
  131. package/lib/chunk-T26C576X.mjs +9 -0
  132. package/lib/{chunk-3OHPD72J.mjs → chunk-T3PLRQ2T.mjs} +1 -1
  133. package/lib/chunk-T5VAULLQ.mjs +7 -0
  134. package/lib/chunk-TEIBWMJM.mjs +7 -0
  135. package/lib/chunk-TKQQVB2D.mjs +9 -0
  136. package/lib/{chunk-RAAANPPG.mjs → chunk-TPHXRHOA.mjs} +1 -1
  137. package/lib/chunk-TQ2TQHTT.mjs +9 -0
  138. package/lib/{chunk-IEYG5ATY.mjs → chunk-TQM2XJ27.mjs} +1 -1
  139. package/lib/{chunk-X65MT4W3.mjs → chunk-UCHAZ4ZU.mjs} +1 -1
  140. package/lib/chunk-UIUPPEFB.mjs +7 -0
  141. package/lib/{chunk-QPF6C5MX.mjs → chunk-UT27HXE7.mjs} +1 -1
  142. package/lib/{chunk-J7HVXMSW.mjs → chunk-UUSLTW5V.mjs} +1 -1
  143. package/lib/chunk-V2QO6KOE.mjs +19 -0
  144. package/lib/chunk-V473C7LY.mjs +7 -0
  145. package/lib/chunk-V4RKM4QZ.mjs +8 -0
  146. package/lib/chunk-VSU74RQ3.mjs +9 -0
  147. package/lib/chunk-VV3B6IC3.mjs +7 -0
  148. package/lib/chunk-W2AAGIZF.mjs +7 -0
  149. package/lib/{chunk-WR2GIKWE.mjs → chunk-WB2RIVO3.mjs} +1 -1
  150. package/lib/chunk-WD47PGUS.mjs +10 -0
  151. package/lib/{chunk-3CA767QB.mjs → chunk-WEZLXE34.mjs} +1 -1
  152. package/lib/{chunk-WFEB5X4U.mjs → chunk-WI4HYWV6.mjs} +1 -1
  153. package/lib/{chunk-AR7BE5O2.mjs → chunk-WM5JI4JI.mjs} +1 -1
  154. package/lib/chunk-WWTXRWNZ.mjs +7 -0
  155. package/lib/{chunk-7EANH5PY.mjs → chunk-WZQEK4WT.mjs} +1 -1
  156. package/lib/{chunk-ZJKCWBRJ.mjs → chunk-X2ZVSQ54.mjs} +1 -1
  157. package/lib/{chunk-SFURUNJM.mjs → chunk-XC2QKQT5.mjs} +1 -1
  158. package/lib/chunk-XC54KKKC.mjs +7 -0
  159. package/lib/chunk-XEB6HZ34.mjs +7 -0
  160. package/lib/chunk-XGKSSCW7.mjs +7 -0
  161. package/lib/chunk-XIZ5LMQM.mjs +7 -0
  162. package/lib/{chunk-RFEO2KAN.mjs → chunk-Y5ZCPY36.mjs} +1 -1
  163. package/lib/{chunk-TBZMC2VV.mjs → chunk-YCSFP6ER.mjs} +4 -4
  164. package/lib/{chunk-YBU4Z4QV.mjs → chunk-YHIOS2PU.mjs} +1 -1
  165. package/lib/chunk-YIGFYZQY.mjs +7 -0
  166. package/lib/chunk-YJEXE6HZ.mjs +925 -0
  167. package/lib/{chunk-57VHUYNG.mjs → chunk-YOGMP72T.mjs} +4 -4
  168. package/lib/chunk-ZRUDYB7O.mjs +7 -0
  169. package/lib/{chunk-55HEMHEG.mjs → chunk-ZUA5BNAO.mjs} +1 -1
  170. package/lib/chunk-ZWCRWF7E.mjs +7 -0
  171. package/lib/{chunk-VHI54FBK.mjs → chunk-ZWZXQTAK.mjs} +53 -53
  172. package/lib/sandforge-autopilot.mjs +29 -24
  173. package/lib/sandforge-backup.mjs +67 -32
  174. package/lib/sandforge-checkpoint.mjs +1 -347
  175. package/lib/sandforge-cleanup.mjs +14 -10
  176. package/lib/sandforge-clone.mjs +1 -1
  177. package/lib/sandforge-compare.mjs +9 -8
  178. package/lib/sandforge-dataops.mjs +1 -1
  179. package/lib/sandforge-empty.mjs +15 -15
  180. package/lib/sandforge-env.mjs +101 -101
  181. package/lib/sandforge-frozen.mjs +1 -257
  182. package/lib/sandforge-mcp.mjs +33 -14
  183. package/lib/sandforge-monitor.mjs +7 -7
  184. package/lib/sandforge-pipeline.mjs +88 -0
  185. package/lib/sandforge-seed.mjs +1 -1
  186. package/lib/sandforge-sync.mjs +1 -1
  187. package/lib/sandforge.mjs +6 -6
  188. package/package.json +2 -1
  189. package/lib/chunk-2S5OMIIA.mjs +0 -7
  190. package/lib/chunk-36U7IQ6Y.mjs +0 -25
  191. package/lib/chunk-3F5YMM2F.mjs +0 -7
  192. package/lib/chunk-3RYLICRX.mjs +0 -7
  193. package/lib/chunk-42RER7V4.mjs +0 -14
  194. package/lib/chunk-4GL773D5.mjs +0 -7
  195. package/lib/chunk-4HFRHFGQ.mjs +0 -7
  196. package/lib/chunk-4U6NXJNL.mjs +0 -7
  197. package/lib/chunk-4XZ5YT5O.mjs +0 -7
  198. package/lib/chunk-5AJRHRXA.mjs +0 -20
  199. package/lib/chunk-5HMAPZBV.mjs +0 -7
  200. package/lib/chunk-5P4PHJRL.mjs +0 -9
  201. package/lib/chunk-5QKTYCWE.mjs +0 -11
  202. package/lib/chunk-6LAXTAVN.mjs +0 -7
  203. package/lib/chunk-6MUEPV7M.mjs +0 -9
  204. package/lib/chunk-6QSM2WIH.mjs +0 -10
  205. package/lib/chunk-75ADZS6B.mjs +0 -7
  206. package/lib/chunk-ALJVEUUS.mjs +0 -7
  207. package/lib/chunk-ALUFROGA.mjs +0 -7
  208. package/lib/chunk-B45CNPUX.mjs +0 -47
  209. package/lib/chunk-BS5T3MOQ.mjs +0 -7
  210. package/lib/chunk-CGWXQX75.mjs +0 -7
  211. package/lib/chunk-D3QRXG63.mjs +0 -787
  212. package/lib/chunk-EEVVGGM6.mjs +0 -7
  213. package/lib/chunk-ENLBYECD.mjs +0 -7
  214. package/lib/chunk-EQOQASDQ.mjs +0 -7
  215. package/lib/chunk-FQBRBBY4.mjs +0 -7
  216. package/lib/chunk-GAM726CK.mjs +0 -7
  217. package/lib/chunk-HJC7AIBK.mjs +0 -7
  218. package/lib/chunk-HUMEKZT5.mjs +0 -8
  219. package/lib/chunk-I3JKJTLO.mjs +0 -110
  220. package/lib/chunk-I7O6C2B5.mjs +0 -8
  221. package/lib/chunk-KLX67VPL.mjs +0 -7
  222. package/lib/chunk-L776PUMV.mjs +0 -7
  223. package/lib/chunk-LRFAIUN7.mjs +0 -7
  224. package/lib/chunk-LV6G4XTK.mjs +0 -7
  225. package/lib/chunk-MYTIL2JD.mjs +0 -10
  226. package/lib/chunk-NEVXIGR6.mjs +0 -10
  227. package/lib/chunk-NGSMZZDA.mjs +0 -7
  228. package/lib/chunk-NHWE66K5.mjs +0 -7
  229. package/lib/chunk-OQOZAPCI.mjs +0 -7
  230. package/lib/chunk-PA3MKJVH.mjs +0 -7
  231. package/lib/chunk-QROPNEGY.mjs +0 -14
  232. package/lib/chunk-QWT2C74M.mjs +0 -7
  233. package/lib/chunk-RH3N2H7P.mjs +0 -7
  234. package/lib/chunk-SRQDABQ2.mjs +0 -15
  235. package/lib/chunk-SVS6UMDU.mjs +0 -323
  236. package/lib/chunk-TNXUU6W7.mjs +0 -14
  237. package/lib/chunk-VGW4MXXZ.mjs +0 -7
  238. package/lib/chunk-VXHDBYMI.mjs +0 -7
  239. package/lib/chunk-WJY54JO7.mjs +0 -13
  240. package/lib/chunk-WRU5FJFC.mjs +0 -7
  241. package/lib/chunk-X2PY6MWZ.mjs +0 -7
  242. package/lib/chunk-XEFDB2R4.mjs +0 -7
  243. package/lib/chunk-XETCPL7E.mjs +0 -7
  244. package/lib/chunk-Y5CGXLUB.mjs +0 -7
  245. package/lib/chunk-Y6J6QFI2.mjs +0 -7
  246. package/lib/chunk-YMJVMFPY.mjs +0 -7
  247. package/lib/chunk-YPSRZRIT.mjs +0 -7
  248. package/lib/chunk-YS4G22C2.mjs +0 -7
  249. package/lib/chunk-YW2SBL4Z.mjs +0 -7
  250. package/lib/chunk-Z7X534S4.mjs +0 -10
  251. package/lib/chunk-ZE6HKRR4.mjs +0 -9
  252. package/lib/chunk-ZLZRU6MO.mjs +0 -7
  253. package/lib/chunk-ZPYJPGDK.mjs +0 -7
  254. package/lib/chunk-ZQOZ4EFW.mjs +0 -7
  255. package/lib/chunk-ZUTYVST5.mjs +0 -7
  256. package/lib/chunk-ZYEE34WO.mjs +0 -7
@@ -4,260 +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{o as St}from"./chunk-SVS6UMDU.mjs";import"./chunk-AUTM6H6Z.mjs";import"./chunk-INIQ23K6.mjs";import"./chunk-RAAANPPG.mjs";import{a as Et}from"./chunk-PBI4BYWW.mjs";import"./chunk-ZE6HKRR4.mjs";import{a as Ft,b as Lt,d as Nt,e as Se,f as zt,g as Dt,h as Pt,i as It,j as re,k as ne,l as xt}from"./chunk-5AJRHRXA.mjs";import{k as Tt,n as Ct,p as jt}from"./chunk-42RER7V4.mjs";import"./chunk-XEFDB2R4.mjs";import"./chunk-H45UXY6G.mjs";import"./chunk-WRU5FJFC.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-GNC27UEU.mjs";import"./chunk-YBU4Z4QV.mjs";import{a as _t}from"./chunk-TW3N6W5Z.mjs";import"./chunk-5P4PHJRL.mjs";import{Ba as H,K,Qa as Oe,Ra as vt,Ua as At,Va as oe,Xa as kt,Ya as X,ab as $t,bb as Rt,c as Ae,f as ke,g as $e,gb as Ot,h as ct,i as pt,k as ft,l as Re,m as ht,n as mt,o as gt,p as wt,t as bt}from"./chunk-D3QRXG63.mjs";import"./chunk-NM4MDLK4.mjs";import"./chunk-BS5T3MOQ.mjs";import"./chunk-TEOLMRDO.mjs";import"./chunk-FQBRBBY4.mjs";import"./chunk-YS4G22C2.mjs";import{a as ut}from"./chunk-SCKUIE3R.mjs";import{a as dt,b as lt}from"./chunk-QROPNEGY.mjs";import{b as me,e as Ze}from"./chunk-BZ24IAP5.mjs";import{c as Q,d as Y}from"./chunk-AV5SWEHP.mjs";import"./chunk-I7O6C2B5.mjs";import"./chunk-XCA5AONB.mjs";import{b as ee}from"./chunk-YMJVMFPY.mjs";import"./chunk-ALJVEUUS.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-BOGNK4LV.mjs";import{x as it}from"./chunk-36U7IQ6Y.mjs";import"./chunk-XETCPL7E.mjs";import"./chunk-K2FBZIXY.mjs";import"./chunk-Z7X534S4.mjs";import"./chunk-6QSM2WIH.mjs";import"./chunk-WJY54JO7.mjs";import{d as et}from"./chunk-T63U4OZJ.mjs";import"./chunk-DBFJB2B6.mjs";import"./chunk-NEVXIGR6.mjs";import"./chunk-NTDN2JQZ.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-F74IHMGL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-Y5CGXLUB.mjs";import"./chunk-3F5YMM2F.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-SAR5622P.mjs";import{b as Je,c as he}from"./chunk-L776PUMV.mjs";import{A as q,r as we,t as ye,u as be}from"./chunk-6MUEPV7M.mjs";import"./chunk-HJC7AIBK.mjs";import"./chunk-OTWRDD6L.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-TYYOBZMU.mjs";import"./chunk-RH3N2H7P.mjs";import"./chunk-ZUTYVST5.mjs";import"./chunk-55HEMHEG.mjs";import"./chunk-P42X3B4D.mjs";import"./chunk-TUACWKIH.mjs";import{P as ve,Pa as nt,S as te,V as ot,W as rt,bb as st,cb as at}from"./chunk-VXHDBYMI.mjs";import{q as tt}from"./chunk-ENLBYECD.mjs";import"./chunk-PA3MKJVH.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-ZLZRU6MO.mjs";import"./chunk-WIO4XO4F.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-GCOB7K5N.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-PNCONNFJ.mjs";import{D as ge}from"./chunk-CGWXQX75.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-SIOZXPFG.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-CA5NAXSU.mjs";import{a as Xe,e as Qe,f as Ye,g as yt}from"./chunk-MTMH6H2A.mjs";import{Tc as Ve,Uc as fe,Vb as qe,Vc as Z,Wc as Ke,bd as He}from"./chunk-B45CNPUX.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-SBIMVCXT.mjs";import"./chunk-NTOVCTRS.mjs";import{existsSync as Ce,mkdirSync as ro,readdirSync as no,readFileSync as de}from"node:fs";import{dirname as so,join as _}from"node:path";import{homedir as ao}from"node:os";var io=`sandforge frozen \u2014 build and replay a Frozen Dataset, without the editor.
8
-
9
- Usage:
10
- npx sandforge frozen <step> --config <file> [options]
11
-
12
- Steps:
13
- select pick one root per combination of the coverage matrix (needs --source)
14
- extract read, pseudonymize, check and freeze those roots (needs --source)
15
- load replay the frozen dataset into a sandbox or a Developer Edition
16
- \u2014 WRITES (needs --target);
17
- what the target runs as it inserts and updates is named first, and takes
18
- --accept-automation or --mute-automation
19
- verify check the last load against the dataset (needs --target)
20
- remove delete the records a load created, the last first \u2014 DELETES (needs --target);
21
- what the target runs as they go is named first, and takes --accept-automation
22
- or --mute-automation; with --preview, say what it would delete, and delete
23
- nothing
24
- status what the store knows so far
25
-
26
- Required:
27
- --config <file> the project configuration, as the panel saves it (JSON)
28
-
29
- Options:
30
- --source <alias> sf CLI alias of the org the dataset is read from
31
- --target <alias> sf CLI alias of the sandbox, or Developer Edition org, it is
32
- loaded into
33
- --author <name> who froze the dataset, for the manifest (default: sandforge)
34
- --salt-file <file> the file holding the pseudonymization salt, when
35
- SANDFORGE_FROZEN_SALT is not set
36
- --store <file> where the run keeps its state (default: <sasDir>/cli-store.json)
37
- --pilot load one root folder only
38
- --reload replace the loads before: purge what earlier loads created,
39
- then load again. Refused before anything is written when a
40
- removal of those loads would leave records in the org \u2014
41
- records changed since, kept for records that stay under them
42
- (a contact made by hand since under one of their accounts,
43
- which the org would delete along), of an object the user may
44
- not delete, out of the user's sight or unread \u2014 or when one
45
- of them was recorded before loads kept what they created: take
46
- the load back with remove first (--include-changed takes what
47
- changed since, and what was added under them since). Refused
48
- the same way when the purge would have the org delete along a
49
- record the reload finds again by its keys \u2014 a quote under the
50
- opportunity an earlier load wrote: give that parent identity
51
- keys too, or take the load back first. What the target's
52
- automation likely made for a load holds nothing with --sweep,
53
- which takes it first. What the target runs as the purge
54
- deletes is read and named first, and nothing is written
55
- while something fires unless --accept-automation or
56
- --mute-automation answers it. The purge takes what those
57
- loads created, not what the target's automation made for
58
- them: --sweep takes that too. With --pilot, a reload purges
59
- nothing, and is not asked
60
- --gone-first <file> with load --reload --dry-run: the records taken back before
61
- the reload runs, a JSON array of their ids \u2014 hanging from the
62
- loads' records, they hold nothing. sandforge env gives it what
63
- its apply takes back first; a reload that runs reads what is
64
- still there
65
- --max-total <n> with load: the most records it may insert \u2014 the count its dry
66
- run gave. A load, or a reload, that would insert more is
67
- refused before anything is written, the purge included; a dry
68
- run says it would be, exit 1
69
- --dry-run with load: say what the load would do \u2014 per object, what it
70
- would insert, link, drop, rewrite and purge \u2014 and write nothing
71
- --write-encrypted with load: write the fields the target encrypts as the dataset
72
- holds them, though its manifest does not say its extraction
73
- left out what it read masked \u2014 they may hold masks such as
74
- ****1234 (left out otherwise, each named)
75
- --mute-automation with load or remove: mute the target's automation for that
76
- step through its own bypass \u2014 assign the user it writes as,
77
- for the step alone, the permission sets holding the custom
78
- permissions its flows, processes and workflow rules test to
79
- stay quiet, those of what --sweep deletes included, and take
80
- them back as it ends; what no bypass keeps quiet still runs,
81
- and is named, and a load or a removal then needs
82
- --accept-automation.
83
- Refused on a production org and for a user who cannot assign
84
- permission sets, exit 1; with --dry-run or --preview, says
85
- what would be muted and assigns nothing
86
- --accept-automation with load: write although the target runs flows, Apex
87
- triggers, processes or workflow rules as the load inserts
88
- its records and updates them \u2014 what --mute-automation
89
- keeps quiet and a bypass the user holds aside \u2014 or could
90
- not say what it runs; with remove, or load --reload:
91
- delete although it runs them as the records go, those
92
- --sweep deletes included \u2014 before or after a delete, or
93
- as an activated order is set back to Draft for its
94
- delete. Each is named before anything is written or
95
- deleted; without the flag the load or the reload writes
96
- nothing (AUTOMATION_NOT_ACCEPTED), the removal deletes
97
- nothing, exit 1; --dry-run says so
98
- --accept-emails with load: write although the target delivers every email
99
- what still runs sends as the records go in, a reload's
100
- purge and sweep included (Setup > Deliverability: All
101
- email), or would not say whether it does: without it
102
- such a load is refused, exit 1 (EMAILS_NOT_ACCEPTED),
103
- nothing written. Read only when something that still
104
- runs sends one, with one line of anonymous Apex that
105
- sends nothing; on System email only or No access it is
106
- not needed. The emails are counted too, on the records
107
- of the dataset, at most, against what the target has
108
- left today: past it, the load is refused whatever the
109
- flag, exit 1 (FROZEN_EMAILS_EXCEEDED). --mute-automation
110
- keeps quiet what tests the org's bypass; what an Apex
111
- trigger sends is read nowhere. --dry-run says it all,
112
- and what a load would be refused for
113
- ${ct({run:"the load",simulation:"--dry-run",step:"with load: ",note:["Taken by this command once the load may write, before","the load's lease; deleted when the load is refused before","it writes or reports it wrote nothing, and kept when it","stops or fails part way: what it wrote then is not told","here."]})}
114
- --include-changed remove also the records changed since the load, and what
115
- was added to them since (kept otherwise); with load
116
- --reload --sweep, the sweep of each load replaced takes
117
- too what it finds changed since that load, which it
118
- keeps and names otherwise, the load kept recorded for
119
- a later sweep, and the reload no partial for them
120
- --sweep with remove: before the load's records go, delete too what
121
- the target's automation made for the load, that the
122
- load's mapping does not hold: what the load's user
123
- created under the load's records, what they point at,
124
- or what hangs from those, three links at most, at most
125
- a minute after the record it is tied to \u2014 in the
126
- objects the load wrote and their children, tasks,
127
- events, feed, email messages, notes, case comments, and
128
- the objects the target's flows create; the window is
129
- the load's writes, from a second before the first to a
130
- minute after the last. What a record of the load points
131
- at by a lookup the org refuses the delete for goes once
132
- that record is gone. Listed and kept: what is tied to
133
- the load but came later, up to 15 minutes, or as the
134
- org's Automated Process user; and what the load's user
135
- created in the window tied to nothing of it. Such
136
- records then keep none of the load's records as records
137
- that stay. A sweep refused, or that did not take all it was
138
- asked to, exits 3, and ends partial a removal that took
139
- every record of the load; one that left records of its own
140
- keeps its own status. Once the load's records went already,
141
- the sweep runs alone, the way to take what such a sweep
142
- left (off otherwise). It sweeps too, each in its own
143
- window, every other load recorded whose records went \u2014 a
144
- load a reload replaced, kept for what its sweep left \u2014,
145
- and lets it go once that sweep took all it found. With
146
- load --reload: the sweep of each load the reload
147
- replaces, as its removal sweeps it, around the purge;
148
- what the target runs as it deletes is named once it has
149
- read what it takes, before the first delete, and
150
- answered as the purge's; with --dry-run, it lists what
151
- it would take. One refused, or that did not take all it
152
- was asked to, exits 3
153
- --sweep-late with --sweep: take too what it lists as made late; with
154
- --sweep-list, say what it would take
155
- --sweep-untied with --sweep: take too what it lists as tied to nothing of
156
- the load; with --sweep-list, say what it would take;
157
- refused when another run wrote to the target
158
- in the window \u2014 a load swept with it is none, a load
159
- this command ran from another sas into the org is one
160
- \u2014, or when that user created records in the window on
161
- objects neither the load nor the automation reaches
162
- (hand work, likely)
163
- --sweep-list with remove: list what --sweep would delete, per object
164
- with a few names and how many it ties to the load, and
165
- for each other load it sweeps with it, and delete nothing;
166
- exit 3 when it says a sweep is refused, as --sweep would
167
- --preview with remove: say what the removal would do, per object \u2014 the
168
- records it would delete, those it would keep as changed since
169
- the load and who changed them, those gone already, those it
170
- cannot see, and those it would leave because the user may not
171
- delete them \u2014 what the target runs as they go, and what it
172
- would be refused for, that automation without
173
- --accept-automation included. It deletes nothing, writes
174
- nothing to the sas and asks nothing; it exits 0 once it has
175
- said it. It cannot know what hangs from the records, which a
176
- removal reads at each object's turn. With --sweep, it lists
177
- what the sweep would take, and reads what fires on it with
178
- the load's own. Not with --sweep-list
179
- --yes do not ask before a load writes or a removal deletes: a
180
- removal asks last, once what it deletes and what the
181
- target runs as they go are said. Without it, a step
182
- with no terminal to answer the question \u2014 a CI step \u2014
183
- stops there, exit 2, and writes nothing
184
- --json emit what the panel would receive, every other line on
185
- stderr; a step that ends before its request, refused or
186
- with nothing to do, says "ended": true. Beside it, "step";
187
- "dataset" \u2014 its folder, its digest (sha256 of the files a load
188
- reads, the manifest less the verdict a verification writes
189
- into it) and its version \u2014 for extract, load and verify;
190
- "mapping", the file in the sas naming the records the loads
191
- into the target created, for load, verify and remove; per
192
- object, what the step counted ("objects"); how a load or a
193
- removal ended ("status"); verify's verdict, and a load's, per
194
- object ("verdict"); what a dry run or a
195
- removal's preview would be refused for ("refusals"), with the
196
- code of each ("refusalCodes"), as its line names it: a load
197
- would be refused (CODE): ..., a removal would be refused
198
- (CODE): ...; and what refused a load before it wrote \u2014 what
199
- runs as it writes, its purge, its checkpoint, its emails or
200
- its mute \u2014 or a removal
201
- before its first delete \u2014 what fires as it deletes, its mute
202
- or Production Guard \u2014 ("refused": {"code", "message"}), as
203
- its line names it: refused (CODE): ...
204
- --help this text
205
-
206
- The salt that makes pseudonyms repeatable is read from SANDFORGE_FROZEN_SALT,
207
- or else from --salt-file, and never made up here: an extraction without one is
208
- refused. The editor keeps its own in VS Code's secret storage; copy it from there
209
- with "SandForge: Copy Frozen Dataset Salt" to extract the same pseudonyms.
210
-
211
- The graph a selection or an extraction discovers is kept in the sas
212
- (discovery.json) and reused by the next one while the source's schema has not
213
- changed and a day has not gone by: each says "graph reused from <step>" or
214
- "rediscovered: <why>".
215
-
216
- Ctrl-C stops a step after the call under way, a load recorded in the sas with
217
- what it wrote, which remove takes back; a SIGTERM \u2014 a CI job cancelled or timed
218
- out \u2014 or a SIGHUP stops it the same way. Ctrl-C again ends it at once.
219
-
220
- Exit codes: 0 the step finished \u2014 a removal with nothing to take included, and a
221
- removal's preview once said, its refusals included \u2014, and verify's verdict is
222
- PASSED; 1 it failed or could not start, verify's verdict is FAILED, a dry run says
223
- the load would be refused, a load was refused before it wrote for what the target
224
- runs as it writes (AUTOMATION_NOT_ACCEPTED without --accept-automation) or for its
225
- emails (EMAILS_NOT_ACCEPTED without --accept-emails, FROZEN_EMAILS_EXCEEDED), or a removal
226
- stopped before its first delete at what the target runs, without
227
- --accept-automation; 2 a bad command line, or a question with
228
- no terminal to answer it (give --yes); 3 verify's verdict is PARTIAL, a load
229
- completed with errors, the verification it runs after it was FAILED or PARTIAL, or
230
- the sweep of a reload did not take all it was asked to, or a removal left records
231
- of the load or its sweep did not take all it was asked to; 4 verify's verdict is
232
- UNSTABLE: no two readings agreed; 130 Ctrl-C stopped the step, 143 a SIGTERM, 129 a
233
- SIGHUP. A load is judged by its own report, which ends partial on a verification
234
- FAILED or PARTIAL; one UNSTABLE is said, and the verify step gives it a code.
235
- `,Mt=["select","extract","load","verify","remove","status"],lo={words:1,switches:["--pilot","--reload","--dry-run","--write-encrypted","--mute-automation","--accept-automation","--include-changed","--accept-emails","--sweep","--sweep-list",...$t,"--preview","--yes","--json",...$e.switches],values:["--config","--source","--target","--author","--salt-file","--store","--max-total","--gone-first",...$e.values]},Ut=1e6;function uo(o){let n;try{n=JSON.parse(de(o,"utf8"))}catch(e){process.stderr.write(`--gone-first: ${o} does not read: ${String(e)}
236
- `),process.exit(2)}return(!Array.isArray(n)||!n.every(e=>typeof e=="string"&&/^[A-Za-z0-9]{15}(?:[A-Za-z0-9]{3})?$/.test(e)))&&(process.stderr.write(`--gone-first: ${o} holds no JSON array of record ids.
237
- `),process.exit(2)),n}function co(o){let n=o.slice(2);(n.includes("--help")||n.includes("-h")||n.length===0)&&(process.stdout.write(io),process.exit(0));let e=d=>{let b=n.indexOf(d);return b>=0&&b+1<n.length?n[b+1]:void 0},r=n[0];Mt.includes(r)||(process.stderr.write(`The first word is the step: ${Mt.join(", ")} \u2014 not "${n[0]}".
238
- `),process.exit(2)),Xe(n,lo);let t=e("--config");t||(process.stderr.write(`Missing --config. Run with --help.
239
- `),process.exit(2));let s=e("--source"),i=e("--target");(r==="select"||r==="extract")&&!s&&(process.stderr.write(`${r} reads the source org: give --source.
240
- `),process.exit(2)),(r==="load"||r==="verify"||r==="remove")&&!i&&(process.stderr.write(`${r} works on the target org: give --target.
241
- `),process.exit(2)),n.includes("--sweep")&&n.includes("--sweep-list")&&(process.stderr.write(`--sweep deletes and --sweep-list only lists: give one of them. Run with --help.
242
- `),process.exit(2)),n.includes("--sweep-list")&&r!=="remove"&&(process.stderr.write(`--sweep-list goes with remove${r==="load"?"; a reload lists what its sweep would take with --dry-run --sweep":""}. Run with --help.
243
- `),process.exit(2)),n.includes("--sweep")&&r!=="remove"&&!(r==="load"&&n.includes("--reload")&&!n.includes("--pilot"))&&(process.stderr.write(`--sweep goes with remove or load --reload${r==="load"&&n.includes("--pilot")?", and a pilot purges nothing":""}. Run with --help.
244
- `),process.exit(2)),n.includes("--include-changed")&&r!=="remove"&&!(r==="load"&&n.includes("--reload")&&n.includes("--sweep"))&&(process.stderr.write(`--include-changed goes with remove, or with load --reload --sweep, whose sweep then takes what changed since the loads it replaces. Run with --help.
245
- `),process.exit(2)),n.includes("--gone-first")&&!(r==="load"&&n.includes("--reload")&&n.includes("--dry-run"))&&(process.stderr.write(`--gone-first goes with load --reload --dry-run. Run with --help.
246
- `),process.exit(2));let l=e("--gone-first");n.includes("--gone-first")&&l===void 0&&(process.stderr.write(`--gone-first takes the file of the ids taken back first.
247
- `),process.exit(2)),n.includes("--write-encrypted")&&r!=="load"&&(process.stderr.write(`--write-encrypted goes with load. Run with --help.
248
- `),process.exit(2)),n.includes("--accept-emails")&&r!=="load"&&(process.stderr.write(`--accept-emails goes with load. Run with --help.
249
- `),process.exit(2)),n.includes("--mute-automation")&&r!=="load"&&r!=="remove"&&(process.stderr.write(`--mute-automation goes with load or remove. Run with --help.
250
- `),process.exit(2)),n.includes("--accept-automation")&&r!=="remove"&&r!=="load"&&(process.stderr.write(`--accept-automation goes with load or remove. Run with --help.
251
- `),process.exit(2)),n.includes(ke)&&r!=="load"&&(process.stderr.write(`${ke} goes with load. Run with --help.
252
- `),process.exit(2));let w=pt(n);n.includes("--preview")&&r!=="remove"&&(process.stderr.write(`--preview goes with remove${r==="load"?"; a load says what it would do with --dry-run":""}. Run with --help.
253
- `),process.exit(2)),n.includes("--preview")&&n.includes("--sweep-list")&&(process.stderr.write(`--preview deletes nothing, and --sweep-list lists what a sweep would take: give --preview without it, or with --sweep. Run with --help.
254
- `),process.exit(2));let p=Rt(n);"refusal"in p&&(process.stderr.write(`${p.refusal} Run with --help.
255
- `),process.exit(2));let h;if(n.includes("--max-total")){let d=e("--max-total");h=Number(d),r!=="load"&&(process.stderr.write(`--max-total goes with load. Run with --help.
256
- `),process.exit(2)),(d===void 0||!/^\d+$/.test(d)||h<1||h>Ut)&&(process.stderr.write(`--max-total takes a whole number from 1 to ${Ut}, not "${d??""}".
257
- `),process.exit(2))}return{step:r,configPath:t,source:s,target:i,author:e("--author"),storePath:e("--store"),saltFile:e("--salt-file"),pilot:n.includes("--pilot"),reload:n.includes("--reload"),dryRun:n.includes("--dry-run"),writeEncrypted:n.includes("--write-encrypted"),muteAutomation:n.includes("--mute-automation"),acceptAutomation:n.includes("--accept-automation"),...w!==void 0?{checkpointFirst:w}:{},includeChanged:n.includes("--include-changed"),acceptEmails:n.includes("--accept-emails"),sweep:n.includes("--sweep"),sweepList:n.includes("--sweep-list"),...p,preview:n.includes("--preview"),...h!==void 0?{maxTotal:h}:{},...l!==void 0?{goneFirst:l}:{},yes:n.includes("--yes"),json:n.includes("--json")}}async function po(o){let e=(await o.query("SELECT Id, IsSandbox FROM Organization LIMIT 1")).records[0];if(!e)throw new Error("The org gave no Organization record.");if(e.IsSandbox)return{id:e.Id,orgType:"Sandbox"};try{let t=(await o.query("SELECT OrganizationType FROM Organization LIMIT 1")).records[0]?.OrganizationType;return typeof t=="string"&&t!==""?{id:e.Id,orgType:qe({isSandbox:!1,edition:t}),edition:t}:{id:e.Id,orgType:"Production"}}catch{return{id:e.Id,orgType:"Production"}}}async function Bt(o,n,e,r){let t=await Je(o),s=he(t),i;try{i=await po(s)}catch(l){let w=l instanceof Error?l.message:String(l);throw new Error(`Could not read the Organization record of '${o}': ${w}`)}return n.set(i.id,{org:{id:i.id,alias:o,orgType:i.orgType,metadata:{apiVersion:"66.0",...i.edition?{edition:i.edition}:{}}},credentials:{accessToken:t.accessToken,instanceUrl:t.instanceUrl}}),e?.set(i.id,s),r?.set(i.id,{session:t,typed:i}),i.id}function Le(o){return!o||o.length===0?[]:[`kept: the platform does not delete them \u2014 ${o.map(({objectApiName:e,count:r})=>`${e} (${r})`).join(", ")}`]}function Gt(o,n){let e=(o??[]).filter(t=>t.reason==="may-hold-masks");if(e.length===0)return[];let r=e.map(({objectApiName:t,field:s,affectedRecords:i})=>`${t}.${s} (${i})`).join(", ");return[`${n} out, encrypted in the target: ${r} \u2014 the dataset's manifest does not say its extraction left out what it read masked, so they may hold masks such as ****1234; --write-encrypted writes them as the dataset holds them`]}function fo(o,n){let e=o==="token"?"each record its own, from the token the value carries":`each record its own, its rank appended: the field is ${o==="unique"?"unique in the target":"the record name"}`;return n===void 0?e:`${e} (first: "${n}")`}function Ne(o){return o.created.reduce((n,e)=>n+e.count,0)}function ho(o){return{...o.includeChanged?{includeChanged:!0}:{},...o.sweep?{sweep:!0}:{},...o.sweepLate?{sweepLate:!0}:{},...o.sweepUntied?{sweepUntied:!0}:{},...o.muteAutomation?{muteAutomation:!0}:{}}}function Ee({read:o,steps:n,mute:e},r,t="removal",s){let i=e?q(e.muted,r).map(h=>` ${h}`):[];if(!("objects"in o)){let h=t!=="removal",d=t==="reloadSweep"?"this reload's sweep":h?`this reload's purge${s?" and its sweep":""}`:"this removal";return{lines:[`${h?"reload":"removal"} automation: what ${r} runs could not be read: ${o.unread}`,...i],refusal:`What ${r} runs as ${d} writes could not be read (${o.unread}), so what fires as the records go is not known. Nothing was written or deleted. Add --accept-automation to ${h?"reload":"remove"} all the same, or turn that automation off in ${r} first.`}}let l=e?.automation??o,w=s?Ve(n,s.delete??[]):n,p=at(l,r,{steps:n,...s?{sweep:s}:{},assign:nt(l,Ke(l,w)),mayMute:e===void 0&&Ae("--mute-automation"),subject:t});return{lines:[...st(o,r,n,t,s),...i],...p!==void 0?{refusal:p}:{}}}function mo(o,n){let e=Ne(o),r=o.earlier?"a load before the last one, whose records the loads after it left in place,":"the last load",t=`a removal deletes the ${e} record(s) it created, children first:`;return o.removed&&e===0?t=`its records were removed on ${o.removed.removedAt}, and none is left to remove`:e===0&&(o.keptByThePlatform?.length??0)>0?t="it created no record a removal takes":o.removed&&(t=`the removal of ${o.removed.removedAt} left ${e} of the records it created, and a removal deletes those, children first:`),[`${r} wrote to ${n} at ${o.loadedAt}; ${t}`,...o.created.map(s=>` ${s.objectApiName}: ${s.count}`),`${o.linked} record(s) it linked to or reused stay`,...Le(o.keptByThePlatform)]}function go(o,n){return o.recorded&&(Ne(o)>0||(n?.delete??[]).length>0)}function wo(o){return[o.deleted>0?`${o.deleted} deleted`:"",o.alreadyGone>0?`${o.alreadyGone} already gone`:"",o.keptChanged>0?`${o.keptChanged} kept, changed since the load`:"",o.keptDependents>0?`${o.keptDependents} kept for records that stay`+(o.heldBy.length>0?` (${o.heldBy.join(", ")})`:""):"",o.refused>0?`${o.refused} refused`:"",(o.notReached??0)>0?`${o.notReached} not reached`:""].filter(Boolean).join(", ")}function yo(o){let n=o.count>o.names.length?", \u2026":"";return`${o.count} file(s) attached to them stay in the org, as the load did not create them: ${o.names.join(", ")}${n}`}function Wt(o){return`graph: ${o.objects} object(s) at a cap of ${o.maxNodes}`+(o.objects>o.maxNodes?" (raised for the parents their records cannot be written without)":"")+(o.truncated?" \u2014 TRUNCATED: objects further out were not read":"")}function qt(o){return"reusedFrom"in o?`graph reused from ${o.reusedFrom} (discovered ${o.discoveredAt}): the source's schema has not changed since`:`rediscovered: ${o.rediscovered}`}function bo(o){switch(o.phase){case"discovery":return` discovery: ${o.objects??0} object(s) reached`;case"axis":return` listing the values of axis ${o.axis??"?"}\u2026`;case"combination":return` combination ${o.index??"?"}/${o.of??"?"}: ${o.combinationKey??"?"}`;case"candidate":return` candidate ${o.candidate??"?"}/${o.candidates??"?"} of ${o.combinationKey??"?"}: measuring its own records\u2026`;case"measure":return` measuring the ${o.roots??0} root(s) kept, together\u2026`}}function vo(o){let n=o.reason==="timeout"?"its time ran out":"it was cancelled",e=o.during==="axes"?"while it listed the axis values":o.during==="measure"?"while it measured the roots it kept":`while it probed ${o.combinationKey??"?"}`+(o.candidate!==void 0?`, candidate ${o.candidate} of ${o.candidates??"?"}`:"");return[`STOPPED: ${n} ${e}; the combinations decided before are kept`,...o.notProbed.length>0?[` never probed: ${o.notProbed.join(", ")}`]:[]]}var Ao=new Set(["NO_LOAD","ALREADY_REMOVED","NOTHING_TO_REMOVE"]),Qt="REMOVAL_DECLINED",Vt=["MUTE_PRODUCTION","MUTE_NO_RIGHT","MUTE_FAILED"],ko=new Map([["frozen:load:error",new Set(["EMAILS_NOT_ACCEPTED","FROZEN_EMAILS_EXCEEDED",ve,"AUTOMATION_NOT_ACCEPTED",ee.code,...Vt])],["frozen:remove:error",new Set(["AUTOMATION_NOT_ACCEPTED","GUARD_BLOCKED","GUARD_DECLINED",ee.code,...Vt])]]);function je(o){let n=o.payload?.code,e=ko.get(String(o.type??""));if(!(typeof n!="string"||e?.has(n)!==!0))return{code:n,message:String(o.payload?.message??"")}}function Fe(o){let n=String(o.type??"");if(!n.endsWith(":error")||n==="frozen:remove:automation:error")return!1;let e=String(o.payload?.code);return n==="frozen:remove:error"&&e===Qt?!1:!((n==="frozen:remove:error"||n==="frozen:remove:preview:error")&&Ao.has(e))}var Kt={passed:0,partial:3,unstable:4,failed:1};function $o(o,n,e){return async(r,t)=>{let s=Date.parse(t?.first??""),i=Math.max(s,Date.parse(t?.last??""));return!Number.isFinite(s)||!Number.isFinite(i)?[]:[...(await Ot({organizationId:r,alias:o,span:{from:s,to:i},own:{ids:[]},...n!==void 0?{journalDir:n}:{}})).map(({ids:w})=>({ids:w,from:s,to:i})),...Dt(It(n??K(),r),{sasMark:e,own:[]})]}}function Ro(o,n){return Ye(n.map(e=>{let r=e.payload??{};if(o==="verify"&&e.type==="frozen:verify:result"){let t=String(r.verdict?.status??"");return Object.prototype.hasOwnProperty.call(Kt,t)?Kt[t]:1}if(o==="load"&&e.type==="frozen:load:response"){let t=r.report;return t?.status==="completed"&&(t.sweeps??[]).every(s=>s.result.status==="success")?0:3}return o==="remove"&&e.type==="frozen:remove:response"?r.result?.status==="success"?0:3:0}))}function Ht(o,n){return bt(o.verdict==="unread"?{verdict:"unread",estimate:o.estimate,unread:o.unread??"not said"}:{verdict:o.verdict,estimate:o.estimate,remaining:o.remaining??0,max:o.max??0},n)}function Oo(o,n={}){let e=String(o.type??""),r=o.payload??{};if((e==="frozen:remove:error"||e==="frozen:remove:preview:error")&&!Fe(o))return[`nothing to remove: ${String(r.message??"")}`];if(e==="frozen:remove:error"&&!Fe(o))return[String(r.message??"")];if(e==="frozen:remove:automation:error")return[];if(e.endsWith(":error")){let t=e==="frozen:load:error"?r.sweeps??[]:[],s=e==="frozen:load:error"?r.emails:void 0,i=e==="frozen:load:error"?r.automation:void 0,l=e==="frozen:load:error"?r.mutedAutomation:void 0,w=je(o);return[...w?[]:[`! ${e}: ${String(r.message??"")}${r.code?` [${String(r.code)}]`:""}`],...i?ne(i,"the target"):[],...s?re(s,"the target"):[],...l?q(l,"the target"):[],...t.length>0?["before the load ended, its sweep had already done this:"]:[],...t.flatMap(({loadedAt:p,result:h})=>[`sweep of the load of ${p}:`,...X(h)]),...w?[Q(w)]:[]]}switch(e){case"frozen:select:progress":return[bo(r)];case"frozen:select:response":{let t=r.selection;return[`selected ${t.combinations.length} root(s): ${t.combinations.map(s=>s.combinationKey).join(", ")}`,...t.uncovered.map(s=>` uncovered ${s.combinationKey}: ${s.reason}`),...t.stopped?vo(t.stopped):[],...t.discovery?[qt(t.discovery)]:[],...t.graph?[Wt(t.graph)]:[],`volumetry ${t.volumetry.total} / ${t.volumetry.budgetMax} record(s)`+(t.volumetry.summed?" \u2014 each kept root's own records added up: they were not measured together":""),...Object.entries(t.volumetry.measured).filter(([,s])=>s>0).map(([s,i])=>` ${s}: ${i}`)]}case"frozen:control:result":{let t=r.report;return[`non-reidentification control: ${t.passed?"PASSED":"FAILED"}`,...t.checks.map(s=>` ${s.passed?"ok ":"FAIL"} ${s.name}`+(s.violations.length>0?` (${s.violations.length} violation(s))`:""))]}case"frozen:extract:response":{let t=r.manifest,s=r.discovery;return[`frozen ${String(r.recordCount)} record(s) as version ${t.version} in ${String(r.datasetDir)}`,...s?[qt(s)]:[],...t.coverage?[Wt(t.coverage)]:[],...t.coverage&&t.coverage.unboundedObjects.length>0?[`read without the time bound: ${t.coverage.unboundedObjects.join(", ")}`]:[],...(t.coverage?.leftToThePlatform??[]).map(i=>`${i.objectApiName}: ${i.note}`),...(t.coverage?.exclusionCosts??[]).map(i=>`${i.objectApiName}: ${i.note}`),...(t.coverage?.requiredLeftEmpty??[]).length>0?[`required in the source and left empty by the rules \u2014 a load will ask a value for each: ${(t.coverage?.requiredLeftEmpty??[]).join(", ")}`]:[],...(t.coverage?.keptWithoutARule??[]).length>0?["kept without a rule, the platform's own words: "+(t.coverage?.keptWithoutARule??[]).join(", ")]:[],...(t.coverage?.encryptedNotKept??[]).length>0?["not kept, encrypted and read masked: the user the source is read as lacks View Encrypted Data, and the masks are not copied: "+(t.coverage?.encryptedNotKept??[]).join(", ")]:[],...Object.entries(t.volumetry.measured).filter(([,i])=>i>0).map(([i,l])=>` ${i}: ${l}`)]}case"frozen:load:response":{let t=r.report,s=[`load: ${t.status} in ${t.durationMs}ms \u2014 ${t.alignment.excludedObjects.length} object(s) excluded, ${t.alignment.removals.length} field removal(s), ${t.alignment.recordTypeIssues.length} record type issue(s), ${t.placeholders.length} placeholder(s)`];for(let u of t.alignment.excludedObjects)s.push(` ${u.objectApiName}: not loaded \u2014 ${u.reason}`);s.push(...Gt(t.alignment.removals,"left"));for(let u of t.perObject){let R=u.writtenByThePlatform??0;s.push(` ${u.objectApiName}: ${u.inserted} inserted, ${u.reused} reused`+(R>0?` (${R} written by the platform with ${ge(u.objectApiName)})`:"")+`, ${u.skippedDuplicates.length} duplicate(s), ${u.failed.length} failed of ${u.fromFiles}`);let E=u.failed[0];E&&s.push(` first refusal: ${E.errors?.[0]??E.error??"?"}`)}for(let u of[...t.leftToThePlatform??[],...t.untypedFeedItems??[],...t.heldForExcludedParents??[],...t.quotesLeftUnsynced??[],...t.keysLeftEmpty??[]])s.push(` ${u.objectApiName}: ${u.note}`);let i=t.perObject.filter(u=>(u.writtenWithoutFields?.fields.length??0)>0);if(i.length>0){s.push(`written again without a field a validation rule or a restricted picklist refused (${i.length} object(s)):`);for(let{objectApiName:u,writtenWithoutFields:R}of i)for(let{field:E,refusedBy:z,reason:J,rows:V,replacedWith:M}of R?.fields??[]){let De=z==="restricted-picklist"?"a restricted picklist refused its value":"a validation rule refused it",le=M===void 0?"":` \u2014 written with "${M}", as its picklist rule declares`;s.push(` ${u}.${E} ${V} record(s) \u2014 ${De}${le} \u2014 ${J}`)}}s.push(`pass 2: ${t.pass2.resolved} resolved, ${t.pass2.unresolved.length} unresolved`);for(let u of t.pass2.unresolved.slice(0,5))s.push(` ${u.objectApiName}.${u.field}: ${u.detail}`);let l=t.personContact,w=l?.sent??[];if(l&&l.restored+w.length+l.unresolved.length>0){s.push(`person contacts: ${l.restored} linked, ${w.length} sent as contacts of their own, ${l.unresolved.length} not linked`);for(let u of w.slice(0,5))s.push(` ${u.contactReferenceId} sent: ${u.detail}`);for(let u of l.unresolved.slice(0,5))s.push(` ${u.contactReferenceId}: ${u.detail}`)}if(t.statuses&&t.statuses.restored+t.statuses.refused.length>0){s.push(`statuses applied after insert: ${t.statuses.restored}, refused ${t.statuses.refused.length}`);for(let u of t.statuses.refused.slice(0,5))s.push(` ${u.objectApiName} \u2192 ${u.status}: ${u.detail}`)}let p=u=>Object.values(u).reduce((R,E)=>R+E,0),h=p(t.purge.deleted),d=p(t.purge.deactivated??{});if(h+d+t.purge.failures.length>0){s.push(`purge of earlier loads: ${h} deleted, ${d} deactivated, ${t.purge.failures.length} failed`);for(let u of t.purge.failures.slice(0,5))s.push(` ${u.objectApiName}: ${u.errors[0]??"?"}`)}for(let[u,R]of Object.entries(t.purge.cameAlong??{}))s.push(` ${u}: took along ${R.count} record(s) the loads did not write that came with their records, made as they wrote: ${R.objects.join(", ")}`);let b=Object.entries(t.purge.leftUnrecorded??{});if(b.length>0){s.push("left in place, of a load recorded before loads kept what they created \u2014 it may have linked them:");for(let[u,R]of b)s.push(` ${u}: ${R}`)}let k=Object.entries(t.purge.keptByThePlatform??{});if(k.length>0){s.push("kept by the purge, the platform does not delete them:");for(let[u,R]of k)s.push(` ${u}: ${R}`)}for(let u of r.report.sweeps??[]){s.push(`sweep of the load of ${u.loadedAt}:`,...X(u.result));let R=u.result.objects.reduce((E,z)=>E+z.keptChanged,0);R>0&&s.push(` ${R} record(s) kept, changed since that load: load --reload --sweep --include-changed, or remove --sweep --include-changed, takes them`)}let N=r.report.mutedAutomation;N&&s.push(...q(N,"the target"));let a=r.report.automation;a&&s.push(...ne(a,"the target"));let y=r.report.emails;y&&s.push(...re(y,"the target"));let O=r.report.apiRequests;return O&&s.push(Ht(O,"the target")),s.push(...Yt(r.report.recordTypesGiven,!1)),s}case"frozen:load:preview:response":{let t=r.plan,s=a=>t.perObject.reduce((y,O)=>y+a(O),0),i=[`dry run${t.mode.pilot?" (pilot)":""}${t.mode.reload?" (reload)":""}: ${s(a=>a.toInsert)} record(s) to insert, ${s(a=>a.reusedByKeys+a.reusedFromCatalog+(a.writtenByThePlatform??0))} to link, ${s(a=>a.notSent)} not sent`+(t.mode.reload?`, ${s(a=>a.toPurge)} to purge and ${s(a=>a.toDeactivate)} to deactivate of ${t.earlierLoads} earlier load(s)`:"")+" \u2014 nothing written"];for(let a of t.perObject){let y=[`${a.toInsert} to insert`,a.reusedByKeys>0?`${a.reusedByKeys} found by identity keys`:"",a.reusedFromCatalog>0?`${a.reusedFromCatalog} found in the catalog`:"",(a.writtenByThePlatform??0)>0?`${a.writtenByThePlatform} to link (written by the platform with ${ge(a.objectApiName)})`:"",a.fieldsDropped>0?`${a.fieldsDropped} field(s) dropped`:"",a.picklistsRewritten>0?`${a.picklistsRewritten} picklist value(s) rewritten`:"",a.notSent>0?`${a.notSent} not sent`:"",a.toPurge>0?`${a.toPurge} to purge`:"",a.toDeactivate>0?`${a.toDeactivate} to deactivate`:""].filter(Boolean);i.push(` ${a.objectApiName}: ${y.join(", ")} of ${a.fromFiles}`)}for(let a of t.excludedObjects)i.push(` ${a.objectApiName}: not loaded \u2014 ${a.reason}`);i.push(...Gt(t.removals,"would leave"));for(let a of[...t.heldForExcludedParents??[],...t.quotesLeftUnsynced??[],...t.keysLeftEmpty??[]])i.push(` ${a.objectApiName}: ${a.note}`);for(let a of t.placeholders)i.push(`placeholder for ${a.objectApiName}.${a.field}: ${a.affectedRecords} record(s)`);for(let a of t.requiredDefaults)i.push(`default for ${a.objectApiName}.${a.field}: ${a.affectedRecords} record(s)`+(a.perRecord?`, ${fo(a.perRecord,a.example)}`:""));t.personContacts>0&&i.push(`${t.personContacts} person account contact(s) go in with their account, not counted above`);let l=Object.entries(t.leftUnrecorded??{});if(l.length>0){i.push("left in place, of a load recorded before loads kept what they created \u2014 it may have linked them:");for(let[a,y]of l)i.push(` ${a}: ${y}`)}let w=Object.entries(t.keptByThePlatform??{});if(w.length>0){i.push("left in place by the purge, the platform does not delete them:");for(let[a,y]of w)i.push(` ${a}: ${y}`)}let p=a=>` ${a.name}${a.field?` (${a.field})`:""}${a.message?` \u2014 ${a.message}`:""}`,h=t.perObject.filter(a=>(a.validationRules?.length??0)>0);for(let a of h){i.push(`${a.objectApiName}: ${a.validationRules?.length??0} active validation rule(s) of the target, which a preview cannot evaluate \u2014 a record one of them refuses is counted to insert:`);for(let y of a.validationRules??[])i.push(p(y))}for(let a of t.perObject){let y=a.lookupFilters??[];y.length!==0&&i.push(`${a.objectApiName}: ${y.length} lookup filter(s) of the target, which a preview cannot check \u2014 a record whose lookup it refuses is refused, and what hangs from it: `+y.map(O=>`${O.field} (${O.referenceTo.join(" or ")}, ${O.records} record(s))`).join(", "))}for(let a of t.perObject){let y=a.validationRulesOnChange??[];y.length!==0&&i.push(`${a.objectApiName}: ${y.length} rule(s) left out \u2014 their formula holds only on a change of a record (ISCHANGED, PRIORVALUE, NOT(ISNEW())), which an insert never is: `+y.join(", "))}let d=new Map(t.placeholders.filter(a=>(a.validationRules?.length??0)>0).map(a=>[a.placeholderObjectApiName,a.validationRules??[]]));for(let[a,y]of d){i.push(`placeholder of ${a}: ${y.length} active validation rule(s) of the target, which a preview cannot evaluate \u2014 a placeholder one of them refuses stops the load:`);for(let O of y)i.push(p(O))}t.validationRulesUnread&&i.push(`the target's validation rules could not be listed (${t.validationRulesUnread}): any of them may refuse a record counted to insert`);let b=r.plan.automation;b&&i.push(...ne(b,"the target"));let k=r.plan.emails;k&&i.push(...re(k,"the target"));let N=r.plan.apiRequests;return N&&i.push(Ht(N,"the target")),i}case"frozen:verify:result":{let t=r.verdict;return[`verification: ${t.status.toUpperCase()}`,...t.checks.map(s=>` ${s.passed?"ok ":"FAIL"} ${s.name}: ${s.detail}`)]}case"frozen:remove:response":{let t=r.result,s=[...new Set(t.objects.flatMap(l=>l.unchecked))],i=t.sweep!==void 0&&t.objects.length===0;return[...t.sweep?X(t.sweep):[],...(t.otherLoadSweeps??[]).flatMap(({loadedAt:l,result:w})=>[`sweep of the load of ${l}:`,...X(w)]),...i?[]:[`removal: ${t.status.toUpperCase()}`+(t.leftBy?` \u2014 of what the removal of ${t.leftBy} left`:"")],...t.objects.flatMap(l=>[` ${l.objectApiName}: ${wo(l)||"nothing"} of ${l.planned}${Oe(l)}`,...vt(l,"load"),...l.reasons.map(w=>` ${w}`),...l.filesLeft&&l.filesLeft.count>0?[` ${yo(l.filesLeft)}`]:[]]),...s.length>0?[`not checked, deleted with their parent: ${s.join(", ")}`]:[],...Le(t.keptByThePlatform),...kt(t.objects,{sweep:t.sweep!==void 0}),...t.mutedAutomation?q(t.mutedAutomation,"the target"):[]]}case"frozen:remove:sweep:response":{let t=r.loads;if(t)return t.flatMap(({loadedAt:i,listing:l})=>[`sweep of the load of ${i}:`,...oe(l,"the target org",n,!0)]);let s=r.otherLoads??[];return s.length>0?[{loadedAt:String(r.loadedAt),listing:r.listing},...s].flatMap(({loadedAt:i,listing:l})=>[`sweep of the load of ${i}:`,...oe(l,"the target org",n,!0)]):oe(r.listing,"the target org",n,!0)}case"frozen:remove:preview:response":return Eo(r.preview);case"frozen:status:response":return[JSON.stringify(r.status,null,2)];default:return[]}}var So="not read by a preview: what hangs from the records, which a removal reads at each object's turn \u2014 a record kept for records that stay is counted with those to delete \u2014 nor what the target's automation does as they go";function Eo(o){let n=t=>o.userNames[t]??t,e=["preview: what a removal would do; nothing was deleted"+(o.leftBy?` \u2014 of what the removal of ${o.leftBy} left`:"")];for(let t of o.objects){let s=[t.toDelete>0?`${t.toDelete} to delete`:"",o.includeChanged&&t.changedSince>0?`${t.changedSince} of them changed since the load`:"",t.alreadyGone>0?`${t.alreadyGone} gone already`:"",t.notVisible>0?`${t.notVisible} not visible`:"",t.keptChanged>0?`${t.keptChanged} kept, changed since the load`:"",t.undeletable>0?`${t.undeletable} left, the user may not delete them`:"",t.unread>0?`${t.unread} left, not read`:""].filter(Boolean);e.push(` ${t.objectApiName}: ${s.join(", ")||"nothing"} of ${t.planned}${Oe(t)}`);let i=Object.entries(t.changedBy).sort((l,w)=>w[1]-l[1]);i.length>0&&e.push(` last changed by: ${i.map(([l,w])=>`${n(l)} ${w}`).join(" \xB7 ")}`);for(let l of t.reasons)e.push(` ${l}`)}e.push(...Le(o.keptByThePlatform));let r=o.refusalCodes;return o.refusals.forEach((t,s)=>{e.push(r?.length===o.refusals.length?Y({code:r[s],message:t},"a removal"):`a removal would be refused: ${t}`)}),e.push(So),e}async function To(o){let n=_(o,"manifest.json");if(Ce(n))try{let e=await Tt(o),{version:r}=JSON.parse(de(n,"utf8"));return{dir:o,digest:e,...typeof r=="string"?{version:r}:{}}}catch{return}}function Co(o,n){let e=_(o,Ct(n)),r=_(o,"referenceid-mapping.json");return!Ce(e)&&Ce(r)?r:e}function Xt(o){return{status:o.status.toUpperCase(),objects:(o.objects??[]).map(({status:n,...e})=>({...e,verdict:n==="passed"?"PASSED":"FAILED"}))}}async function jo(o,n,e){let r=p=>n.filter(h=>h.type===p).at(-1)?.payload,t=e.targetOrgId?Co(e.sasDir,e.targetOrgId):void 0,s={tool:"sandforge-frozen",step:o,posted:n},i=[],l=[],w=async p=>{let h=await To(p);h&&(s.dataset=h)};switch(o){case"extract":{let p=r("frozen:extract:response");if(!p)break;await w(typeof p.datasetDir=="string"?p.datasetDir:e.datasetDir);let h=p.manifest?.volumetry?.measured??{};s.objects=Object.entries(h).filter(([,d])=>d>0).map(([d,b])=>({objectApiName:d,records:b}));break}case"load":{await w(e.datasetDir);let p=r("frozen:load:response")?.report,h=r("frozen:load:preview:response")?.plan,d=p?p.recordTypesGiven:h?.recordTypesGiven;d&&(s.recordTypesGiven=d),p?(s.mapping=p.mappingPath,s.objects=p.perObject.map(k=>({objectApiName:k.objectApiName,fromFiles:k.fromFiles,inserted:k.inserted,reused:k.reused,duplicates:k.skippedDuplicates.length,failed:k.failed.length}))):h&&(t&&(s.mapping=t),s.objects=h.perObject.map(k=>({objectApiName:k.objectApiName,fromFiles:k.fromFiles,toInsert:k.toInsert,toLink:k.reusedByKeys+k.reusedFromCatalog+(k.writtenByThePlatform??0),notSent:k.notSent,toPurge:k.toPurge,toDeactivate:k.toDeactivate}))),p&&(s.status=p.status),!p&&r("frozen:load:error")?.code==="LOAD_CANCELLED"&&(s.status="cancelled",t&&(s.mapping=t));let b=r("frozen:verify:result")?.verdict;b&&(s.verdict=Xt(b));break}case"verify":{let p=r("frozen:verify:result")?.verdict;await w(p?.manifestPath?so(p.manifestPath):e.datasetDir),t&&(s.mapping=t),p&&(s.verdict=Xt(p));break}case"remove":{t&&(s.mapping=t);let p=r("frozen:remove:response")?.result,h=r("frozen:remove:preview:response")?.preview;p?(s.status=p.status,p.mutedAutomation&&(s.mutedAutomation=p.mutedAutomation),s.objects=p.objects.map(d=>({objectApiName:d.objectApiName,planned:d.planned,deleted:d.deleted,alreadyGone:d.alreadyGone,keptChanged:d.keptChanged,keptDependents:d.keptDependents,refused:d.refused,notReached:d.notReached??0,notVisible:d.notVisible??0,...d.tookAlong?{tookAlong:d.tookAlong}:{},...d.cameAlong?{cameAlong:d.cameAlong}:{}})),s.includeChanged=p.includeChanged):h&&(s.preview=!0,s.includeChanged=h.includeChanged,s.objects=h.objects.map(d=>({objectApiName:d.objectApiName,planned:d.planned,toDelete:d.toDelete,alreadyGone:d.alreadyGone,changedSince:d.changedSince,keptChanged:d.keptChanged,undeletable:d.undeletable,notVisible:d.notVisible,unread:d.unread})),i.push(...h.refusals),h.refusalCodes?.length===h.refusals.length&&l.push(...h.refusalCodes));break}}return i.push(...e.refusals??[]),e.refusalCodes?.length===(e.refusals??[]).length&&l.push(...e.refusalCodes??[]),i.length>0&&(s.refusals=i),i.length>0&&l.length===i.length&&(s.refusalCodes=l),e.mute&&Object.assign(s,e.mute),e.checkpoint&&(s.checkpoint=e.checkpoint),s}async function Fo(o=process.argv){let n=Date.now(),e=co(o),r=f=>{process[e.json?"stderr":"stdout"].write(`${f}
258
- `)},t=JSON.parse(de(e.configPath,"utf8")),s=typeof t.sasDir=="string"?t.sasDir:_(ao(),".sandforge-sas");ro(s,{recursive:!0});let i=it(e.storePath??_(s,"cli-store.json")),l=new Map,w=new Map,p=new Map,h=e.source?await Bt(e.source,l):void 0,d=e.target?await Bt(e.target,l,w,p):void 0,b=[],k=!1,N=!1,a=new xt({log:()=>{},broker:{postToWebview:f=>{if(f.type!=="frozen:load:progress"&&(b.push(f),Fe(f)&&(k=!0),!N))for(let m of Oo(f,e))r(m)}},orgManager:{getOrg:f=>l.get(f)?.org},orgRegistry:{getCredentials:async f=>l.get(f)?.credentials},configStore:i,infraServices:{productionGuard:Et(r,e.target??e.source??"the org"),piiDetector:new et},nextId:()=>`cli-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}),y=d?w.get(d):void 0,O=d?p.get(d):void 0,u=e.checkpointFirst&&O?ft({module:"frozen",operationId:`sandforge-frozen-load-${n}`,request:e.checkpointFirst,session:O.session,org:{id:O.typed.id,orgType:O.typed.orgType,...O.typed.edition!==void 0?{edition:O.typed.edition}:{}},connect:he,journalDir:K(),say:r}):void 0;y&&a.setTargetAutomation(H(y)),a.setMuteOffered(Ae("--mute-automation")),a.setSaltKeeper(Nt(process.env,e.saltFile)),e.target&&a.setOtherModuleRuns($o(e.target,void 0,Se(s)));let R=new _t;a.setRegistry(R);let E,z,J=!1,V=!1,M,le=Ze(f=>{if(M=f,process.stderr.write(`
259
- interrupted: the ${e.step} stops after the call under way, and says what it wrote (Ctrl-C again ends it at once)
260
- `),z){z.abort();return}for(let m of R.getRunning())R.abort(m.operationId);E&&R.cancelBeforeStart(E),(!E||V)&&process.exit(me(f))}),Pe=typeof t.datasetDir=="string"?t.datasetDir:_(s,"dataset"),P=[],U=f=>{P.push(f),r(Y(f,"a load"))},ue=[],S,Ie=!1,W,B,ce=async f=>{if(!e.json)return;let m=[...P,...ue],v=await jo(e.step,b,{datasetDir:Pe,sasDir:s,...d?{targetOrgId:d}:{},...m.length>0?{refusals:m.map(({message:g})=>g),refusalCodes:m.map(({code:g})=>g)}:{},...W?{mute:W}:{},...B?{checkpoint:B}:{}});process.stdout.write(`${JSON.stringify({...v,...S?{refused:S}:{},...f?{ended:f}:{}},null,2)}
261
- `)},T=async(f,m)=>{let v=`cli-${f}-${Date.now()}`;E=v;try{return await a.handle({id:v,type:f,payload:m})}finally{E=void 0}},xe;try{xe=await to()}finally{le()}if(xe==="ended"&&!M){k&&(process.exitCode=1),await ce(!0);return}if(M){await ce(),process.stderr.write(`${J?ot:Po(e.preview?"preview":e.step,e.step!=="load"||e.dryRun||Te(b))}
262
- `),process.exitCode=me(M);return}if(Qe(k||P.length>0?1:Ie?3:Ro(e.step,b)),e.json){await ce();return}r(`done in ${Date.now()-n}ms`);async function _e(f){await T("frozen:remove:automation",f);let m=G=>b.find(L=>L.type===G)?.payload,v=m("frozen:remove:automation:response"),g=Array.isArray(f.sweptObjects)?f.sweptObjects:[],$=v?.purge&&g.length>0?v.purge:void 0,c=v&&e.muteAutomation?y&&(e.preview||e.dryRun)?await ye(we(y),v.automation,{writes:Z(v.steps)}):be(v.automation,Z(v.steps)):void 0,A=c&&!("refused"in c)?c:void 0,{lines:j,refusal:F}=Ee({read:v?.automation??{unread:String(m("frozen:remove:automation:error")?.message)},steps:$??v?.steps??{},...A?{mute:{automation:A.automation,muted:A.planned}}:{}},e.target??"",f.reload===!0?"reload":"removal",$?{delete:g}:void 0);for(let G of j)r(G);let D=c&&"refused"in c?c.refused:F!==void 0&&!e.acceptAutomation?{code:"AUTOMATION_NOT_ACCEPTED",message:F}:void 0;return{...v?{steps:v.steps}:{},...A?{planned:A}:{},...D?{refusal:D.message,code:D.code}:{}}}function Me(f){S={code:te,message:f},P.push(S),r(Q(S)),k=!0}async function Ue(){return N=!0,await T("frozen:status",{}),N=!1,b.filter(m=>m.type==="frozen:status:response").at(-1)?.payload?.status?.loadRecords?.find(m=>m.orgId===d)}async function Be(f=[]){if(!e.reload||e.pilot)return;let m=await Ue();if(!(!m||m.created.length===0&&f.length===0))return _e({targetOrgId:d,loadedAt:m.loadedAt,reload:!0,...f.length>0?{sweptObjects:f}:{}})}async function Ge(){let f=await Ue();if(!f)return[];r(`reading what a sweep of ${e.target} would take for the loads a reload replaces\u2026`);let m=b.length;await T("frozen:remove:sweep",{targetOrgId:d,loadedAt:f.loadedAt,reload:!0});let v=b.slice(m);if(v.some($=>$.type==="frozen:remove:sweep:error"))return;let g=v.filter($=>$.type==="frozen:remove:sweep:response").at(-1)?.payload?.loads;return[...new Set((g??[]).flatMap(({listing:$})=>fe($,e)))]}async function eo(f){r(`reading what a sweep of ${e.target} would take\u2026`);let m=b.length;await T("frozen:remove:sweep",{targetOrgId:d,loadedAt:f});let v=b.slice(m);if(v.some(c=>c.type==="frozen:remove:sweep:error"))return;let g=v.filter(c=>c.type==="frozen:remove:sweep:response").at(-1)?.payload,$=[...g?.listing?[g.listing]:[],...(g?.otherLoads??[]).map(({listing:c})=>c)];return[...new Set($.flatMap(c=>fe(c,e)))]}async function to(){if(await T("frozen:config:save",{config:t}),k)return"ended";switch(e.step){case"select":r(`selecting from ${e.source}\u2026`),await T("frozen:select",{sourceOrgId:h});break;case"extract":r(`extracting from ${e.source}\u2026`),await T("frozen:extract",{sourceOrgId:h,...e.author?{author:e.author}:{}});break;case"load":{if(e.dryRun){r(`reading what a load into ${e.target}${e.pilot?" (pilot)":""} would do\u2026`),await T("frozen:load:preview",{targetOrgId:d,...e.pilot?{pilot:!0}:{},...e.reload?{reload:!0}:{},...e.goneFirst!==void 0?{goneFirst:uo(e.goneFirst)}:{},...e.writeEncrypted?{writeEncrypted:!0}:{},...e.muteAutomation?{muteAutomation:!0}:{},...e.acceptEmails?{acceptEmails:!0}:{},...e.acceptAutomation?{acceptAutomation:!0}:{}});let c=b.find(C=>C.type==="frozen:load:preview:response")?.payload?.plan,A=c?Lt(Ft(c),e.maxTotal):void 0;A&&U({code:"MAX_RECORDS",message:A});let j=c?.automation?.refused;j&&U(j);let F=c?.emails?.refused;F&&U(F);let D=c?.apiRequests?.refused;D&&U(D);let G=(c&&e.sweep?await Ge():[])??[],L=c?await Be(G):void 0;L?.refusal!==void 0&&U({code:L.code??"AUTOMATION_NOT_ACCEPTED",message:L.refusal});let I;if(e.muteAutomation&&c&&y){I=await H(y).read(d,[...new Set([...c.perObject.map(x=>x.objectApiName),...L?.steps?.delete??[]])]);let C=await ye(we(y),I,{writes:Lo(L?.steps)});if("refused"in C)P.some(({message:x})=>x===C.refused.message)||U(C.refused);else{for(let x of q(C.planned,e.target??"the target"))r(x);W={mutedAutomation:C.planned,mutePlan:C.plan}}}for(let C of Yt(c?.recordTypesGiven,!0,(W?.mutePlan.assign.length??0)>0))r(C);let We=c?No(c):[];if(u&&c&&y&&We.length>0){I??=await H(y).read(d,c.perObject.map(pe=>pe.objectApiName)).catch(()=>{});let{estimate:C,refused:x}=await Zt(u,{written:We,running:Jt(I,W?.mutePlan)});if(C){B=C;for(let pe of Re(C))r(pe)}x!==void 0&&U({code:te,message:x})}break}let f=e.reload&&!e.pilot&&e.sweep?await Ge():[];if(f===void 0)return r("Nothing written."),"ended";let m=e.reload&&!e.pilot?await Be(f):void 0;if(m?.refusal!==void 0)return S={code:m.code??"AUTOMATION_NOT_ACCEPTED",message:m.refusal},P.push(S),r(Q(S)),k=!0,"ended";if(e.sweep&&(r("around the purge, a sweep deletes what the target's automation made for each load it replaces, as the load's user, tied to its records \u2014 run with --dry-run to see what"),a.setRemovalAsker(async c=>{let{lines:A,refusal:j}=Ee(c,e.target??"","reloadSweep");for(let F of A)r(F);if(!(j===void 0||e.acceptAutomation))return S={code:"AUTOMATION_NOT_ACCEPTED",message:j},P.push(S),S})),!e.yes&&!await dt(`Load the frozen dataset into ${e.target}${e.reload?`, purging first what earlier loads created${e.sweep?" and what the target's automation made for them":""}`:""}?`))return r("Nothing written."),"ended";let v;if(u&&y){let c=zo(Pe),A=await H(y).read(d,c).catch(()=>{}),j={written:c,running:Jt(A,e.muteAutomation&&A?be(A,ze).plan:void 0)},{estimate:F,refused:D}=await Zt(u,j);if(F){B=F;for(let I of Re(F))r(I)}if(D!==void 0||F===void 0)return Me(`${D??""} Nothing was written.`.trim()),"ended";z=new AbortController;let G=z.signal,L=await rt(()=>u.take(j,F,{signal:G})).finally(()=>{z=void 0});if("stop"in L)return L.stop.code!==te?(J=!0,"ended"):(Me(mt(L.stop)),"ended");v=L.checkpoint,B=v;for(let I of gt(v,e.target??"the target",e.muteAutomation))r(I)}r(`loading into ${e.target}${e.pilot?" (pilot)":""}\u2026`);let g=new Date().toISOString();await T("frozen:load",{targetOrgId:d,...e.pilot?{pilot:!0}:{},...e.reload?{reload:!0}:{},...e.writeEncrypted?{writeEncrypted:!0}:{},...e.maxTotal!==void 0?{maxRecords:e.maxTotal}:{},...e.muteAutomation?{muteAutomation:!0}:{},...e.sweep?{sweep:!0}:{},...e.sweepLate?{sweepLate:!0}:{},...e.sweepUntied?{sweepUntied:!0}:{},...e.sweep&&e.includeChanged?{includeChanged:!0}:{},...e.acceptEmails?{acceptEmails:!0}:{},...e.acceptAutomation?{acceptAutomation:!0}:{}});let $=b.filter(c=>c.type==="frozen:load:error").map(je).find(c=>c!==void 0);if($&&!S&&(S=$,P.push(S)),d&&Te(b)){let c=zt(await new jt(s,{orgId:d}).recorded().catch(()=>{}),g);try{Pt(K(),{organizationId:d,sas:Se(s),startedAt:g,endedAt:new Date().toISOString(),...c?{lastWriteAt:c}:{}})}catch(A){r(`warning: this load could not be added to ${K()}: another sas's sweep of ${e.target??""} will not see it (${A instanceof Error?A.message:String(A)})`)}}if(u&&v){let c=v;B=await u.settle(c,Te(b)).catch(A=>(r(`warning: the checkpoint '${c.name}' taken before the load could not be deleted (${A instanceof Error?A.message:String(A)}): delete it with ${ut("checkpoint")} delete --org ${e.target??""} --checkpoint `+c.checkpointId),c));for(let A of wt(B))r(A)}break}case"verify":r(`verifying ${e.target}\u2026`),await T("frozen:verify",{targetOrgId:d});break;case"remove":{N=!0,await T("frozen:status",{}),N=!1;let m=b.filter(g=>g.type==="frozen:status:response").at(-1)?.payload?.status?.loadRecords?.find(g=>g.orgId===d);if(!m)return r(`No load into ${e.target} is recorded in this sas: nothing to remove.`),"ended";if(e.preview){if(r(`reading what a removal from ${e.target} would do\u2026`),await T("frozen:remove:preview",{targetOrgId:d,loadedAt:m.loadedAt,...e.includeChanged?{includeChanged:!0}:{}}),b.some(g=>g.type==="frozen:remove:preview:response")){let g=e.sweep?await eo(m.loadedAt):[];if(g===void 0)break;let{planned:$,refusal:c,code:A}=await _e({targetOrgId:d,loadedAt:m.loadedAt,...g.length>0?{sweptObjects:g}:{}});if($&&(W={mutedAutomation:$.planned,mutePlan:$.plan}),c!==void 0){let j={code:A??"AUTOMATION_NOT_ACCEPTED",message:c};ue.push(j),r(Y(j,"a removal"))}}break}if(e.sweepList){r(`reading what a sweep of ${e.target} would take\u2026`),await T("frozen:remove:sweep",{targetOrgId:d,loadedAt:m.loadedAt});let g=b.filter($=>$.type==="frozen:remove:sweep:response").at(-1)?.payload;Ie=[g?.listing,...(g?.otherLoads??[]).map(({listing:$})=>$)].some($=>$?.refusal!==void 0);break}for(let g of mo(m,e.target??""))r(g);e.sweep&&r(`${Ne(m)>0?"before them, a sweep deletes":"a sweep alone deletes"} what the target's automation made for the load, as the load's user, tied to its records \u2014 run ${At("--sweep-list")} to see what`);let v=!1;if(a.setRemovalAsker(async g=>{let{lines:$,refusal:c}=Ee(g,e.target??"");for(let A of $)r(A);if(c!==void 0&&!e.acceptAutomation)return{message:c,code:"AUTOMATION_NOT_ACCEPTED"};if(!e.yes&&go(m,g.steps)){V=!0;let A=await lt(`Type ${e.target} to delete them:`);if(V=!1,A!==e.target)return v=!0,{message:"Nothing deleted.",code:Qt}}r(`removing from ${e.target}\u2026`)}),await T("frozen:remove",{targetOrgId:d,loadedAt:m.loadedAt,...ho(e)}),v)return"ended";S=b.filter(g=>g.type==="frozen:remove:error").map(je).find(g=>g!==void 0),S&&ue.push(S);break}case"status":await T("frozen:status",{});break}return"through"}}var ze=(o,n)=>n==="insert"||n==="update";function Lo(o){let n=o?Z(o):void 0;return(e,r)=>ze(e,r)||n?.(e,r)===!0}function Yt(o,n,e=!1){return St((o??[]).map(r=>({recordTypeGiven:r})),n,e)}function Jt(o,n){return{firing:o?He(o,n,ze).firing:[]}}function No(o){let n=[...o.perObject.filter(e=>e.toInsert>0||e.toPurge>0||e.toDeactivate>0).map(e=>e.objectApiName),...(o.placeholders??[]).map(e=>e.placeholderObjectApiName)];return[...new Set(n)]}function zo(o){try{let n=JSON.parse(de(_(o,"manifest.json"),"utf8")),e=Object.entries(n.volumetry?.measured??{}).filter(([,r])=>typeof r=="number"&&r>0).map(([r])=>r);if(e.length>0)return e}catch{}try{return no(_(o,"data")).filter(n=>n.endsWith(".json")).map(n=>n.slice(0,-5)).sort()}catch{return[]}}var Do=new Set(["INVALID_PAYLOAD","CONFIG_MISSING",ee.code,"REPLACE_LEAVES_RECORDS","MUTE_PRODUCTION","MUTE_NO_RIGHT","MUTE_FAILED","EMAILS_NOT_ACCEPTED","FROZEN_EMAILS_EXCEEDED","AUTOMATION_NOT_ACCEPTED",ve]);function Te(o){let n=s=>o.filter(i=>i.type===s).at(-1)?.payload,e=n("frozen:load:response")?.report;if(e){let s=i=>Object.values(i??{}).reduce((l,w)=>l+w,0);return e.perObject.some(i=>i.inserted>0)||(e.placeholders??[]).length>0||s(e.purge?.deleted)>0||s(e.purge?.deactivated)>0}let r=n("frozen:load:error"),t=r?.code;return typeof t=="string"&&Do.has(t)?!1:r?.written!==0}async function Zt(o,n){try{let e=await o.scope(n);return{estimate:e,...e.refusal!==void 0?{refused:ht(e.refusal)}:{}}}catch(e){return{refused:tt(e).replace(/ Nothing was written\.$/,"")}}}function Po(o,n=!0){return o==="load"&&!n?"interrupted: the load stopped before it created or purged a record: the sas is as it was, and `remove` has nothing of this load to take back":o==="load"?"interrupted: the load stopped before it was through; what it wrote is recorded in the sas and the audit trail, and `remove` takes it back":o==="remove"?"interrupted: the removal stopped before it was through; what it deleted is recorded, and `remove` again takes what it left":o==="preview"?"interrupted: the preview stopped before it was through, and deleted nothing":`interrupted: the ${o} stopped before it was through`}process.argv[1]?.includes("sandforge-frozen")&&(yt(),Fo().then(()=>process.exit(process.exitCode??0)).catch(o=>{process.stderr.write(`${o instanceof Error?o.message:String(o)}
263
- `),process.exit(1)}));export{So as FROZEN_PREVIEW_UNREAD,$o as commandLineOtherRuns,zo as datasetObjectsOf,qt as discoveryLine,Fe as failsTheStep,jo as frozenAnswer,Po as frozenInterruptedLine,Te as frozenLoadWrote,Yt as frozenRecordTypeLines,Ro as frozenStepExit,uo as goneFirstIdsOf,Ht as loadApiRequestsLine,No as loadPlanWrites,Fo as main,Oo as messageLines,co as parseArgs,je as refusedFirstOf,ho as removalAsked,go as removalAsks,Ee as removalAutomation,mo as removalPlanLines,Eo as removalPreviewLines,bo as selectStepLine,po as typeOrg};
7
+ import{A,B,C,D,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-OQQHNYR7.mjs";import"./chunk-MO3N5XVV.mjs";import"./chunk-INIQ23K6.mjs";import"./chunk-TPHXRHOA.mjs";import"./chunk-2NAIUKVL.mjs";import"./chunk-TKQQVB2D.mjs";import"./chunk-V2QO6KOE.mjs";import"./chunk-5CKWGZX4.mjs";import"./chunk-R6TF26V4.mjs";import"./chunk-WD47PGUS.mjs";import"./chunk-5C5XEVZN.mjs";import"./chunk-DXOXLUZA.mjs";import"./chunk-5344TZBT.mjs";import"./chunk-V4RKM4QZ.mjs";import"./chunk-JU2XEKEO.mjs";import"./chunk-IM2XA6JI.mjs";import"./chunk-K55LH4ZQ.mjs";import"./chunk-5UT2ZBGF.mjs";import"./chunk-YHIOS2PU.mjs";import"./chunk-DHGPDSXS.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-742SSN7I.mjs";import"./chunk-TW3N6W5Z.mjs";import"./chunk-YJEXE6HZ.mjs";import"./chunk-FTA5LOVX.mjs";import"./chunk-KNIRA333.mjs";import"./chunk-7DALDJMO.mjs";import"./chunk-O7DAFE6M.mjs";import"./chunk-BZ24IAP5.mjs";import"./chunk-SCKUIE3R.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-VSU74RQ3.mjs";import"./chunk-CAFUNR6D.mjs";import"./chunk-AITNZWLB.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-KGYXLSQ5.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-DMBR24CK.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-4L7FBOJS.mjs";import"./chunk-OXKZ4Y3B.mjs";import"./chunk-MAHZMPMZ.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-UIUPPEFB.mjs";import"./chunk-6SEDOIO3.mjs";import"./chunk-ZWCRWF7E.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-MNITSYI2.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-NJ3EOEHS.mjs";import"./chunk-ETT5GP4P.mjs";import"./chunk-SW2NUKQL.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-E2YJVSX6.mjs";import"./chunk-HVC5CYIB.mjs";import"./chunk-T26C576X.mjs";import"./chunk-BNO5GIJ6.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-SQGP46QS.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-6IGEASOF.mjs";import"./chunk-KOQV4WXC.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-CULAOP3U.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-KRNFVAGC.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-2OIRJEYE.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-XEB6HZ34.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-ZUA5BNAO.mjs";import"./chunk-RKALOKAU.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-55LQD3Y3.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-3B5H24ZG.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-EAFLDSQ2.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-DPYTG6DM.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{d as DATASET_WORDS,t as FROZEN_PREVIEW_UNREAD,w as checkInWords,m as commandLineOtherRuns,B as datasetObjectsOf,i as discoveryLine,l as failsTheStep,v as frozenAnswer,D as frozenInterruptedLine,C as frozenLoadWrote,z as frozenRecordTypeLines,n as frozenStepExit,a as goneFirstIdsOf,p as loadApiRequestsLine,A as loadPlanWrites,o as loadStorageLine,x as main,s as messageLines,r as notSweptLines,b as parseArgs,k as refusedFirstOf,e as removalAsked,h as removalAsks,f as removalAutomation,g as removalPlanLines,u as removalPreviewLines,q as removalTookRecords,y as runFrozen,j as selectStepLine,c as typeOrg};