sandforge 1.80.0 → 1.82.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 (266) hide show
  1. package/README.md +48 -0
  2. package/bin/sandforge-pipeline.mjs +12 -0
  3. package/bin/sandforge-users.mjs +12 -0
  4. package/lib/{chunk-J525F5KI.mjs → chunk-27Z76O2O.mjs} +1 -1
  5. package/lib/chunk-2JZGCCPG.mjs +9 -0
  6. package/lib/{chunk-ELFXJHU7.mjs → chunk-2UU42PTD.mjs} +1 -1
  7. package/lib/{chunk-N652NMZ4.mjs → chunk-32EUNQT6.mjs} +52 -52
  8. package/lib/chunk-3C2ZZIFN.mjs +7 -0
  9. package/lib/chunk-3CX7GPCR.mjs +7 -0
  10. package/lib/chunk-3HEMJTAP.mjs +925 -0
  11. package/lib/{chunk-BY2HJFFG.mjs → chunk-3HROD5RE.mjs} +1 -1
  12. package/lib/{chunk-OHWNPXWW.mjs → chunk-3MGMNK3Q.mjs} +1 -1
  13. package/lib/{chunk-PZPJKATS.mjs → chunk-3SKLBRPL.mjs} +8 -8
  14. package/lib/chunk-3XG25GTF.mjs +7 -0
  15. package/lib/chunk-42BFLWHR.mjs +7 -0
  16. package/lib/chunk-466F37VD.mjs +7 -0
  17. package/lib/chunk-47UHTN3Q.mjs +7 -0
  18. package/lib/chunk-4JKR4PTZ.mjs +8 -0
  19. package/lib/{chunk-COFG7Q6R.mjs → chunk-52EXDVPN.mjs} +1 -1
  20. package/lib/{chunk-SAR5622P.mjs → chunk-54HYHHVL.mjs} +1 -1
  21. package/lib/{chunk-RSWDYIHY.mjs → chunk-5GBO4KD5.mjs} +1 -1
  22. package/lib/chunk-5K2I2DMP.mjs +11 -0
  23. package/lib/{chunk-AV5SWEHP.mjs → chunk-6FARZYMJ.mjs} +1 -1
  24. package/lib/{chunk-BV6VTP3J.mjs → chunk-6GQUZ4IP.mjs} +1 -1
  25. package/lib/chunk-6KP6WETK.mjs +9 -0
  26. package/lib/{chunk-MJVTDA5Q.mjs → chunk-6VSZNZHH.mjs} +1 -1
  27. package/lib/{chunk-XUWL6ZPC.mjs → chunk-7CVDVBEE.mjs} +1 -1
  28. package/lib/{chunk-UCD54V2M.mjs → chunk-7EYQYZJP.mjs} +1 -1
  29. package/lib/{chunk-5K5VLULK.mjs → chunk-7LKI7OAS.mjs} +1 -1
  30. package/lib/chunk-7PY3VQP3.mjs +7 -0
  31. package/lib/chunk-7SDZR6SR.mjs +7 -0
  32. package/lib/chunk-7WSLT5VX.mjs +8 -0
  33. package/lib/chunk-A32ISQ6M.mjs +28 -0
  34. package/lib/{chunk-M3ROUWDX.mjs → chunk-A65ADTCR.mjs} +1 -1
  35. package/lib/chunk-A7JJWOLT.mjs +7 -0
  36. package/lib/chunk-AUS6NFLZ.mjs +8 -0
  37. package/lib/chunk-BMTNTBBM.mjs +7 -0
  38. package/lib/{chunk-SOU4FRYN.mjs → chunk-BN33LVPQ.mjs} +1 -1
  39. package/lib/chunk-BNKT3R3F.mjs +7 -0
  40. package/lib/{chunk-K2FBZIXY.mjs → chunk-BWWQXU2B.mjs} +1 -1
  41. package/lib/{chunk-IC2C2GOF.mjs → chunk-BXZ73A5M.mjs} +1 -1
  42. package/lib/{chunk-WA7EYLAQ.mjs → chunk-C2N2TNEU.mjs} +1 -1
  43. package/lib/{chunk-BKDV4ENO.mjs → chunk-C3LNYAVJ.mjs} +1 -1
  44. package/lib/{chunk-XLXIPIEW.mjs → chunk-CBL42DUU.mjs} +1 -1
  45. package/lib/chunk-CCEH7L53.mjs +7 -0
  46. package/lib/chunk-CELEBWEZ.mjs +7 -0
  47. package/lib/chunk-CV47FDQW.mjs +7 -0
  48. package/lib/{chunk-2UZPIMUC.mjs → chunk-CZLJZQCS.mjs} +1 -1
  49. package/lib/chunk-DBBPDSFN.mjs +7 -0
  50. package/lib/chunk-DIL62SUN.mjs +7 -0
  51. package/lib/chunk-DIS254AN.mjs +7 -0
  52. package/lib/{chunk-BTWDMNN3.mjs → chunk-DJCGURW7.mjs} +1 -1
  53. package/lib/{chunk-F6GUDTOB.mjs → chunk-DT3T7FRD.mjs} +1 -1
  54. package/lib/{chunk-IGYH7GMA.mjs → chunk-DWMRIWV5.mjs} +1 -1
  55. package/lib/{chunk-YRQGKDHM.mjs → chunk-EEFUE2ES.mjs} +1 -1
  56. package/lib/{chunk-FGRG7ANU.mjs → chunk-EOFO3PHS.mjs} +1 -1
  57. package/lib/{chunk-KBJ5VERV.mjs → chunk-FA4ZKDCU.mjs} +1 -1
  58. package/lib/{chunk-WU3GLFZO.mjs → chunk-FKK5YBGZ.mjs} +1 -1
  59. package/lib/chunk-FOIWWK7G.mjs +156 -0
  60. package/lib/chunk-FZF23M6R.mjs +7 -0
  61. package/lib/chunk-G2JR3F63.mjs +7 -0
  62. package/lib/{chunk-JEERQRLW.mjs → chunk-GBGHJTPC.mjs} +1 -1
  63. package/lib/{chunk-3RZQZHEB.mjs → chunk-GCGHHN4K.mjs} +1 -1
  64. package/lib/{chunk-RPI7LRTW.mjs → chunk-GGNUACTY.mjs} +1 -1
  65. package/lib/{chunk-EMNC6YI4.mjs → chunk-GGUOIDWP.mjs} +1 -1
  66. package/lib/chunk-GHPR5UVV.mjs +7 -0
  67. package/lib/{chunk-X5JYBPXP.mjs → chunk-GJ6SZVHT.mjs} +1 -1
  68. package/lib/{chunk-W622GUAW.mjs → chunk-H4JUYUSL.mjs} +1 -1
  69. package/lib/{chunk-XAMBCQPU.mjs → chunk-H4OBZIX3.mjs} +1 -1
  70. package/lib/{chunk-WIO4XO4F.mjs → chunk-HFSBDM7B.mjs} +1 -1
  71. package/lib/{chunk-L77FJZEP.mjs → chunk-HFUDCNU5.mjs} +1 -1
  72. package/lib/chunk-HIHCYMSL.mjs +7 -0
  73. package/lib/chunk-HKUWHVI7.mjs +9 -0
  74. package/lib/chunk-HQQVANWQ.mjs +20 -0
  75. package/lib/chunk-ICIYL45C.mjs +7 -0
  76. package/lib/chunk-IRZJU2PG.mjs +22 -0
  77. package/lib/chunk-ISSP2FZ5.mjs +7 -0
  78. package/lib/chunk-IVZJSDJD.mjs +7 -0
  79. package/lib/chunk-J24TIGSI.mjs +10 -0
  80. package/lib/{chunk-UNJA4J37.mjs → chunk-JESRFE2Z.mjs} +4 -4
  81. package/lib/chunk-JFNLKHY6.mjs +8 -0
  82. package/lib/chunk-JH27IKCO.mjs +9 -0
  83. package/lib/chunk-JJITOWZK.mjs +7 -0
  84. package/lib/{chunk-E5AHXLS6.mjs → chunk-JKT5YAQ2.mjs} +1 -1
  85. package/lib/{chunk-IWDREM66.mjs → chunk-JLZRZL5E.mjs} +1 -1
  86. package/lib/{chunk-FPKYYFM7.mjs → chunk-JPEVIXNH.mjs} +1 -1
  87. package/lib/chunk-JQZTMFO7.mjs +7 -0
  88. package/lib/chunk-KIMQQ6JQ.mjs +7 -0
  89. package/lib/{chunk-MILU7WFN.mjs → chunk-KJYEQHYP.mjs} +1 -1
  90. package/lib/chunk-KKOA62S4.mjs +474 -0
  91. package/lib/chunk-KP5G6FUC.mjs +7 -0
  92. package/lib/{chunk-JWTSEDIQ.mjs → chunk-L4INJ5TZ.mjs} +1 -1
  93. package/lib/{chunk-OLSGVAIL.mjs → chunk-LAUOSXMN.mjs} +53 -53
  94. package/lib/{chunk-MTMH6H2A.mjs → chunk-LCDPCUXS.mjs} +1 -1
  95. package/lib/{chunk-KDGMAGQR.mjs → chunk-LHU6CPGE.mjs} +1 -1
  96. package/lib/{chunk-YAZO75G2.mjs → chunk-LNXBCE7E.mjs} +1 -1
  97. package/lib/chunk-LXDSRP2W.mjs +7 -0
  98. package/lib/{chunk-2YIV2OB2.mjs → chunk-MIDBQ7SD.mjs} +1 -1
  99. package/lib/{chunk-TTKXMDBN.mjs → chunk-MKTXJCXN.mjs} +4 -4
  100. package/lib/chunk-MUEQRIK7.mjs +9 -0
  101. package/lib/{chunk-IOIWJ3DJ.mjs → chunk-NLB3RGIY.mjs} +1 -1
  102. package/lib/{chunk-O2HDYYUV.mjs → chunk-NWOI25WY.mjs} +1 -1
  103. package/lib/chunk-O2PUGRNW.mjs +10 -0
  104. package/lib/chunk-O4BROUGM.mjs +7 -0
  105. package/lib/chunk-OETEC3P7.mjs +7 -0
  106. package/lib/{chunk-GCOB7K5N.mjs → chunk-OHEOJISY.mjs} +1 -1
  107. package/lib/chunk-P55MKIZX.mjs +37 -0
  108. package/lib/chunk-P63WJMXQ.mjs +7 -0
  109. package/lib/chunk-PBE44M2Y.mjs +7 -0
  110. package/lib/{chunk-TYYOBZMU.mjs → chunk-PC247GKX.mjs} +1 -1
  111. package/lib/chunk-PE435FVH.mjs +15 -0
  112. package/lib/chunk-PPGDAUEQ.mjs +7 -0
  113. package/lib/{chunk-SE4QEZUG.mjs → chunk-PPHVWUFY.mjs} +1 -1
  114. package/lib/{chunk-CU2INBND.mjs → chunk-PR74GYVI.mjs} +1 -1
  115. package/lib/chunk-PWVDNN2C.mjs +7 -0
  116. package/lib/{chunk-6XYKJSGX.mjs → chunk-PYRZFUVU.mjs} +1 -1
  117. package/lib/{chunk-TLH7AD35.mjs → chunk-PZBZ7MNC.mjs} +1 -1
  118. package/lib/{chunk-DYFALGRT.mjs → chunk-Q3DY7TO2.mjs} +1 -1
  119. package/lib/{chunk-BGUEWRK2.mjs → chunk-Q6SXNKV2.mjs} +1 -1
  120. package/lib/chunk-QAPVKPEC.mjs +7 -0
  121. package/lib/{chunk-DBFJB2B6.mjs → chunk-QIRO4HTE.mjs} +1 -1
  122. package/lib/{chunk-TSLJUSLW.mjs → chunk-RCYEBY42.mjs} +1 -1
  123. package/lib/chunk-RLWB7F26.mjs +7 -0
  124. package/lib/{chunk-FXXLX4O6.mjs → chunk-RTWYLOCA.mjs} +1 -1
  125. package/lib/chunk-RYRMUPMY.mjs +7 -0
  126. package/lib/chunk-SAMWHL22.mjs +13 -0
  127. package/lib/{chunk-IZQZ6ZUF.mjs → chunk-SFGZFB4F.mjs} +1 -1
  128. package/lib/{chunk-FKG7Q3WH.mjs → chunk-SNEOKYV7.mjs} +1 -1
  129. package/lib/{chunk-3TJON4F3.mjs → chunk-STRMWSIQ.mjs} +1 -1
  130. package/lib/chunk-SZGGFST2.mjs +272 -0
  131. package/lib/{chunk-SOGQW4IG.mjs → chunk-T7WREYA5.mjs} +1 -1
  132. package/lib/{chunk-NTFIRZP6.mjs → chunk-TCBAE65A.mjs} +1 -1
  133. package/lib/{chunk-KYEDBS54.mjs → chunk-TEIBWMJM.mjs} +1 -1
  134. package/lib/{chunk-YKKRIEH4.mjs → chunk-TMA34QMA.mjs} +1 -1
  135. package/lib/chunk-TQ2TQHTT.mjs +9 -0
  136. package/lib/{chunk-HEKAZJRH.mjs → chunk-TWV4A5RK.mjs} +1 -1
  137. package/lib/{chunk-CEX3NEZL.mjs → chunk-UHFLKP26.mjs} +1 -1
  138. package/lib/chunk-UV74P4H2.mjs +7 -0
  139. package/lib/{chunk-WR4Q363I.mjs → chunk-V3R45ZWT.mjs} +1 -1
  140. package/lib/{chunk-GSKCGQIP.mjs → chunk-VPDEJGPS.mjs} +1 -1
  141. package/lib/{chunk-HLWMJF6Y.mjs → chunk-VQJMP3DC.mjs} +1 -1
  142. package/lib/chunk-VV3B6IC3.mjs +7 -0
  143. package/lib/{chunk-PJ5I73CK.mjs → chunk-VYOYXTCU.mjs} +1 -1
  144. package/lib/{chunk-NZC67CGR.mjs → chunk-VZT4E2OJ.mjs} +1 -1
  145. package/lib/{chunk-AEKONPF4.mjs → chunk-VZVICK7Q.mjs} +1 -1
  146. package/lib/{chunk-WR2GIKWE.mjs → chunk-WB2RIVO3.mjs} +1 -1
  147. package/lib/chunk-WEMLDUQA.mjs +7 -0
  148. package/lib/{chunk-MYW5QNGI.mjs → chunk-WOOUISSO.mjs} +1 -1
  149. package/lib/{chunk-G35N4P7D.mjs → chunk-WSUKC2U3.mjs} +1 -1
  150. package/lib/{chunk-ZVAED4QV.mjs → chunk-WT3SCUHS.mjs} +1 -1
  151. package/lib/{chunk-7EANH5PY.mjs → chunk-WZQEK4WT.mjs} +1 -1
  152. package/lib/{chunk-DBB3EMIN.mjs → chunk-XFU3HRUV.mjs} +1 -1
  153. package/lib/chunk-XK5W7BVE.mjs +7 -0
  154. package/lib/{chunk-2GTBABKU.mjs → chunk-XO5FBOQF.mjs} +1 -1
  155. package/lib/{chunk-CHYDMRSV.mjs → chunk-XSKPYGMT.mjs} +1 -1
  156. package/lib/chunk-XU25YA46.mjs +9 -0
  157. package/lib/chunk-XZISAZA6.mjs +7 -0
  158. package/lib/chunk-Y4TDVDP2.mjs +13 -0
  159. package/lib/chunk-YAIIRFKJ.mjs +8 -0
  160. package/lib/{chunk-LKQ5RKIV.mjs → chunk-YAJQS3OL.mjs} +1 -1
  161. package/lib/{chunk-74Q6DORA.mjs → chunk-YGJF55VJ.mjs} +1 -1
  162. package/lib/chunk-YH4DYI6D.mjs +7 -0
  163. package/lib/chunk-YMDFF657.mjs +10 -0
  164. package/lib/{chunk-2BA2XKAY.mjs → chunk-YT22LMF7.mjs} +1 -1
  165. package/lib/{chunk-IG2MTQRP.mjs → chunk-Z42PHCVZ.mjs} +1 -1
  166. package/lib/{chunk-2NBYT7GR.mjs → chunk-ZHIZY3ZC.mjs} +1 -1
  167. package/lib/chunk-ZQO5PDX5.mjs +48 -0
  168. package/lib/chunk-ZRUDYB7O.mjs +7 -0
  169. package/lib/{chunk-BXU6WFMH.mjs → chunk-ZUBBEP75.mjs} +1 -1
  170. package/lib/chunk-ZUOPC4W2.mjs +7 -0
  171. package/lib/{chunk-GGD7ON3M.mjs → chunk-ZUTUYBNW.mjs} +1 -1
  172. package/lib/{chunk-MHMH6MTP.mjs → chunk-ZXFL2MSN.mjs} +1 -1
  173. package/lib/sandforge-autopilot.mjs +11 -11
  174. package/lib/sandforge-backup.mjs +63 -32
  175. package/lib/sandforge-checkpoint.mjs +1 -348
  176. package/lib/sandforge-cleanup.mjs +1 -1
  177. package/lib/sandforge-clone.mjs +1 -1
  178. package/lib/sandforge-compare.mjs +1 -1
  179. package/lib/sandforge-dataops.mjs +1 -1
  180. package/lib/sandforge-empty.mjs +11 -11
  181. package/lib/sandforge-env.mjs +186 -140
  182. package/lib/sandforge-frozen.mjs +1 -266
  183. package/lib/sandforge-mcp.mjs +33 -14
  184. package/lib/sandforge-monitor.mjs +1 -1
  185. package/lib/sandforge-pipeline.mjs +88 -0
  186. package/lib/sandforge-seed.mjs +1 -1
  187. package/lib/sandforge-sync.mjs +1 -1
  188. package/lib/sandforge-users.mjs +157 -0
  189. package/lib/sandforge.mjs +1 -22
  190. package/lib/sf/sandforge/autopilot.mjs +20 -0
  191. package/lib/sf/sandforge/backup.mjs +20 -0
  192. package/lib/sf/sandforge/checkpoint.mjs +20 -0
  193. package/lib/sf/sandforge/cleanup.mjs +20 -0
  194. package/lib/sf/sandforge/clone.mjs +20 -0
  195. package/lib/sf/sandforge/compare.mjs +20 -0
  196. package/lib/sf/sandforge/dataops.mjs +20 -0
  197. package/lib/sf/sandforge/empty.mjs +20 -0
  198. package/lib/sf/sandforge/env.mjs +20 -0
  199. package/lib/sf/sandforge/frozen.mjs +20 -0
  200. package/lib/sf/sandforge/hardis-commands.mjs +20 -0
  201. package/lib/sf/sandforge/index.mjs +20 -0
  202. package/lib/sf/sandforge/mcp.mjs +20 -0
  203. package/lib/sf/sandforge/monitor.mjs +20 -0
  204. package/lib/sf/sandforge/pipeline.mjs +20 -0
  205. package/lib/sf/sandforge/seed.mjs +20 -0
  206. package/lib/sf/sandforge/sync.mjs +20 -0
  207. package/lib/sf/sandforge/users.mjs +20 -0
  208. package/lib/sfHelpHook.mjs +7 -0
  209. package/lib/sfPlugin.mjs +11 -0
  210. package/oclif.manifest.json +1 -0
  211. package/package.json +18 -3
  212. package/lib/chunk-2CNCDM56.mjs +0 -7
  213. package/lib/chunk-3F6Q5E7I.mjs +0 -14
  214. package/lib/chunk-4VS2V6WU.mjs +0 -25
  215. package/lib/chunk-5P4PHJRL.mjs +0 -9
  216. package/lib/chunk-5TC3QB4U.mjs +0 -10
  217. package/lib/chunk-7ABODJ4G.mjs +0 -7
  218. package/lib/chunk-7EGQP6S4.mjs +0 -7
  219. package/lib/chunk-7FFGJWHN.mjs +0 -7
  220. package/lib/chunk-7YDNUBO5.mjs +0 -7
  221. package/lib/chunk-A527W53V.mjs +0 -7
  222. package/lib/chunk-ADOAS63R.mjs +0 -7
  223. package/lib/chunk-B5QQJ4SI.mjs +0 -7
  224. package/lib/chunk-CION3VMZ.mjs +0 -7
  225. package/lib/chunk-CSBS5U5I.mjs +0 -7
  226. package/lib/chunk-DB7RBE5D.mjs +0 -7
  227. package/lib/chunk-E5ZB3LU5.mjs +0 -7
  228. package/lib/chunk-EFR2Y7E4.mjs +0 -7
  229. package/lib/chunk-EHQ3FX6X.mjs +0 -7
  230. package/lib/chunk-EQNW3UC2.mjs +0 -7
  231. package/lib/chunk-F43REJDZ.mjs +0 -10
  232. package/lib/chunk-GSG7WZHM.mjs +0 -7
  233. package/lib/chunk-HOJYWTP7.mjs +0 -20
  234. package/lib/chunk-HS4YRX4J.mjs +0 -7
  235. package/lib/chunk-I7O6C2B5.mjs +0 -8
  236. package/lib/chunk-IFETCRWE.mjs +0 -10
  237. package/lib/chunk-IQXHJEYB.mjs +0 -7
  238. package/lib/chunk-JPUR2CFX.mjs +0 -10
  239. package/lib/chunk-K327QKMD.mjs +0 -7
  240. package/lib/chunk-KRCA6IPH.mjs +0 -8
  241. package/lib/chunk-LPBMBW3O.mjs +0 -13
  242. package/lib/chunk-LWW4U276.mjs +0 -7
  243. package/lib/chunk-MFG4MUIO.mjs +0 -9
  244. package/lib/chunk-MJU2PGZQ.mjs +0 -15
  245. package/lib/chunk-OAZRPP4I.mjs +0 -7
  246. package/lib/chunk-OO6CLPEH.mjs +0 -7
  247. package/lib/chunk-OPXCV2KL.mjs +0 -7
  248. package/lib/chunk-P33PSCXK.mjs +0 -7
  249. package/lib/chunk-Q3DM32KF.mjs +0 -11
  250. package/lib/chunk-QR3WELJQ.mjs +0 -7
  251. package/lib/chunk-QWT2C74M.mjs +0 -7
  252. package/lib/chunk-R3X3LV64.mjs +0 -14
  253. package/lib/chunk-RMBPOTD7.mjs +0 -7
  254. package/lib/chunk-SIHORWVK.mjs +0 -7
  255. package/lib/chunk-T62WNR54.mjs +0 -7
  256. package/lib/chunk-TTFDUKUS.mjs +0 -47
  257. package/lib/chunk-VE6XKGGD.mjs +0 -7
  258. package/lib/chunk-VGW4MXXZ.mjs +0 -7
  259. package/lib/chunk-VS7ZXUII.mjs +0 -824
  260. package/lib/chunk-VXQLDM4R.mjs +0 -7
  261. package/lib/chunk-VYXMVJL5.mjs +0 -7
  262. package/lib/chunk-W7U5E5ZL.mjs +0 -9
  263. package/lib/chunk-WXAQ7FK3.mjs +0 -115
  264. package/lib/chunk-YS4G22C2.mjs +0 -7
  265. package/lib/chunk-ZM6OJGIG.mjs +0 -7
  266. package/lib/chunk-ZUTYVST5.mjs +0 -7
@@ -4,269 +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{q as jt}from"./chunk-OLSGVAIL.mjs";import"./chunk-INIQ23K6.mjs";import"./chunk-ELFXJHU7.mjs";import{a as Lt}from"./chunk-3RZQZHEB.mjs";import"./chunk-W7U5E5ZL.mjs";import{a as Pt,b as It,d as xt,e as Le,f as _t,g as Mt,h as Bt,i as Ut,j as ae,k as ie,l as Gt}from"./chunk-HOJYWTP7.mjs";import{k as Nt,n as zt,p as Dt}from"./chunk-R3X3LV64.mjs";import"./chunk-ZM6OJGIG.mjs";import"./chunk-MHMH6MTP.mjs";import"./chunk-COFG7Q6R.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-PJ5I73CK.mjs";import"./chunk-BKDV4ENO.mjs";import"./chunk-X5JYBPXP.mjs";import{a as Wt}from"./chunk-TW3N6W5Z.mjs";import"./chunk-5P4PHJRL.mjs";import{Na as X,O as H,b as ft,c as Ee,cb as Fe,db as Et,f as Oe,g as Te,gb as je,h as wt,hb as se,i as yt,jb as Ot,k as vt,kb as Z,l as Ce,m as bt,n as At,o as kt,ob as Tt,p as $t,pb as Ct,t as St,ub as Ft}from"./chunk-VS7ZXUII.mjs";import"./chunk-SOU4FRYN.mjs";import"./chunk-E5AHXLS6.mjs";import"./chunk-OO6CLPEH.mjs";import"./chunk-YS4G22C2.mjs";import{a as mt,b as gt}from"./chunk-QROPNEGY.mjs";import{b as be,e as rt}from"./chunk-BZ24IAP5.mjs";import{a as we}from"./chunk-SCKUIE3R.mjs";import{c as te,d as oe}from"./chunk-AV5SWEHP.mjs";import"./chunk-I7O6C2B5.mjs";import"./chunk-XCA5AONB.mjs";import{b as re}from"./chunk-2CNCDM56.mjs";import"./chunk-SIHORWVK.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-BOGNK4LV.mjs";import{y as ht}from"./chunk-4VS2V6WU.mjs";import"./chunk-KYEDBS54.mjs";import"./chunk-6XYKJSGX.mjs";import"./chunk-K2FBZIXY.mjs";import"./chunk-F43REJDZ.mjs";import"./chunk-JPUR2CFX.mjs";import"./chunk-LPBMBW3O.mjs";import{d as at}from"./chunk-T63U4OZJ.mjs";import"./chunk-DBFJB2B6.mjs";import"./chunk-IFETCRWE.mjs";import"./chunk-PZPJKATS.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-DYFALGRT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-7FFGJWHN.mjs";import"./chunk-G35N4P7D.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-SAR5622P.mjs";import{b as ot,c as ve}from"./chunk-KDGMAGQR.mjs";import{B as q,s as ke,u as $e,v as Re}from"./chunk-MFG4MUIO.mjs";import"./chunk-EQNW3UC2.mjs";import"./chunk-GSKCGQIP.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-TYYOBZMU.mjs";import"./chunk-HS4YRX4J.mjs";import"./chunk-ZUTYVST5.mjs";import"./chunk-CU2INBND.mjs";import"./chunk-YKKRIEH4.mjs";import"./chunk-TUACWKIH.mjs";import{Ia as K,P as Se,Pa as ut,S as ne,V as dt,W as lt,bb as ct,cb as pt}from"./chunk-VYXMVJL5.mjs";import{q as it}from"./chunk-AEKONPF4.mjs";import"./chunk-JWTSEDIQ.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-CION3VMZ.mjs";import"./chunk-WIO4XO4F.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-GCOB7K5N.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-L77FJZEP.mjs";import{D as Ae}from"./chunk-A527W53V.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-GGD7ON3M.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-CA5NAXSU.mjs";import{a as tt,e as nt,f as st,g as Rt}from"./chunk-MTMH6H2A.mjs";import{Wc as Qe,Xc as ye,Yb as Je,Yc as ee,Zc as Ye,ed as et}from"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-NTOVCTRS.mjs";import{existsSync as De,mkdirSync as uo,readdirSync as co,readFileSync as pe}from"node:fs";import{dirname as po,join as B}from"node:path";import{homedir as fo}from"node:os";var ho=`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: take the load
45
- back with remove first (--include-changed takes what changed
46
- since, and what was added under them since). Refused as well
47
- when one of them was recorded before loads kept what they
48
- created, which no removal takes: refresh the sandbox, or find
49
- what your user created that day with
50
- ${we("cleanup")}, its dry run
51
- first, then delete it. Refused
52
- the same way when the purge would have the org delete along a
53
- record the reload finds again by its keys \u2014 a quote under the
54
- opportunity an earlier load wrote: give that parent identity
55
- keys too, or take the load back first. What the target's
56
- automation likely made for a load holds nothing with --sweep,
57
- which takes it first. What the target runs as the purge
58
- deletes is read and named first, and nothing is written
59
- while something fires unless --accept-automation or
60
- --mute-automation answers it. The purge takes what those
61
- loads created, not what the target's automation made for
62
- them: --sweep takes that too. With --pilot, a reload purges
63
- nothing, and is not asked
64
- --gone-first <file> with load --reload --dry-run: the records taken back before
65
- the reload runs, a JSON array of their ids \u2014 hanging from the
66
- loads' records, they hold nothing. sandforge env gives it what
67
- its apply takes back first; a reload that runs reads what is
68
- still there
69
- --max-total <n> with load: the most records it may insert \u2014 the count its dry
70
- run gave. A load, or a reload, that would insert more is
71
- refused before anything is written, the purge included; a dry
72
- run says it would be, exit 1
73
- --dry-run with load: say what the load would do \u2014 per object, what it
74
- would insert, link, drop, rewrite and purge \u2014 and write nothing
75
- --write-encrypted with load: write the fields the target encrypts as the dataset
76
- holds them, though its manifest does not say its extraction
77
- left out what it read masked \u2014 they may hold masks such as
78
- ****1234 (left out otherwise, each named)
79
- --mute-automation with load or remove: mute the target's automation for that
80
- step through its own bypass \u2014 assign the user it writes as,
81
- for the step alone, the permission sets holding the custom
82
- permissions its flows, processes and workflow rules test to
83
- stay quiet, those of what --sweep deletes included, and take
84
- them back as it ends; what no bypass keeps quiet still runs,
85
- and is named, and a load or a removal then needs
86
- --accept-automation.
87
- Refused on a production org and for a user who cannot assign
88
- permission sets, exit 1; with --dry-run or --preview, says
89
- what would be muted and assigns nothing
90
- --accept-automation with load: write although the target runs flows, Apex
91
- triggers, processes or workflow rules as the load inserts
92
- its records and updates them \u2014 what --mute-automation
93
- keeps quiet and a bypass the user holds aside \u2014 or could
94
- not say what it runs; with remove, or load --reload:
95
- delete although it runs them as the records go, those
96
- --sweep deletes included \u2014 before or after a delete, or
97
- as an activated order is set back to Draft for its
98
- delete. Each is named before anything is written or
99
- deleted; without the flag the load or the reload writes
100
- nothing (AUTOMATION_NOT_ACCEPTED), the removal deletes
101
- nothing, exit 1; --dry-run says so
102
- --accept-emails with load: write although the target delivers every email
103
- what still runs sends as the records go in, a reload's
104
- purge and sweep included (Setup > Deliverability: All
105
- email), or would not say whether it does: without it
106
- such a load is refused, exit 1 (EMAILS_NOT_ACCEPTED),
107
- nothing written. Read only when something that still
108
- runs sends one, with one line of anonymous Apex that
109
- sends nothing; on System email only or No access it is
110
- not needed. The emails are counted too, on the records
111
- of the dataset, at most, against what the target has
112
- left today: past it, the load is refused whatever the
113
- flag, exit 1 (FROZEN_EMAILS_EXCEEDED). --mute-automation
114
- keeps quiet what tests the org's bypass; what an Apex
115
- trigger sends is read nowhere. --dry-run says it all,
116
- and what a load would be refused for
117
- ${wt({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."]})}
118
- --include-changed remove also the records changed since the load, and what
119
- was added to them since (kept otherwise); with load
120
- --reload --sweep, the sweep of each load replaced takes
121
- too what it finds changed since that load, which it
122
- keeps and names otherwise, the load kept recorded for
123
- a later sweep, and the reload no partial for them
124
- --sweep with remove: before the load's records go, delete too what
125
- the target's automation made for the load, that the
126
- load's mapping does not hold: what the load's user
127
- created under the load's records, what they point at,
128
- or what hangs from those, three links at most, at most
129
- a minute after the record it is tied to \u2014 in the
130
- objects the load wrote and their children, tasks,
131
- events, feed, email messages, notes, case comments, and
132
- the objects the target's flows create; the window is
133
- the load's writes, from a second before the first to a
134
- minute after the last. What a record of the load points
135
- at by a lookup the org refuses the delete for goes once
136
- that record is gone. Listed and kept: what is tied to
137
- the load but came later, up to 15 minutes, or as the
138
- org's Automated Process user; and what the load's user
139
- created in the window tied to nothing of it. Such
140
- records then keep none of the load's records as records
141
- that stay. A sweep refused, or that did not take all it was
142
- asked to, exits 3, and ends partial a removal that took
143
- every record of the load; one that left records of its own
144
- keeps its own status. Once the load's records went already,
145
- the sweep runs alone, the way to take what such a sweep
146
- left (off otherwise: a removal that took the load's
147
- records then reads what a sweep would take now, read
148
- only, and names what stays and the option that takes
149
- it, "notSwept" with --json). It sweeps too, each in its
150
- own window, every other load recorded whose records
151
- went \u2014 a load a reload replaced, kept for what its
152
- sweep left \u2014, and lets it go once that sweep took all
153
- it found. With load --reload: the sweep of each load
154
- the reload replaces, as its removal sweeps it, around
155
- the purge; what the target runs as it deletes is named
156
- once it has read what it takes, before the first
157
- delete, and answered as the purge's; with --dry-run, it
158
- lists what it would take. One refused, or that did not
159
- take all it was asked to, exits 3
160
- --sweep-late with --sweep: take too what it lists as made late; with
161
- --sweep-list, say what it would take
162
- --sweep-untied with --sweep: take too what it lists as tied to nothing of
163
- the load; with --sweep-list, say what it would take;
164
- refused when another run wrote to the target
165
- in the window \u2014 a load swept with it is none, a load
166
- this command ran from another sas into the org is one
167
- \u2014, or when that user created records in the window on
168
- objects neither the load nor the automation reaches
169
- (hand work, likely)
170
- --sweep-list with remove: list what --sweep would delete, per object
171
- with a few names and how many it ties to the load, and
172
- for each other load it sweeps with it, and delete nothing;
173
- exit 3 when it says a sweep is refused, as --sweep would
174
- --preview with remove: say what the removal would do, per object \u2014 the
175
- records it would delete, those it would keep as changed since
176
- the load and who changed them, those gone already, those it
177
- cannot see, and those it would leave because the user may not
178
- delete them \u2014 what the target runs as they go, and what it
179
- would be refused for, that automation without
180
- --accept-automation included. It deletes nothing, writes
181
- nothing to the sas and asks nothing; it exits 0 once it has
182
- said it. It cannot know what hangs from the records, which a
183
- removal reads at each object's turn. With --sweep, it lists
184
- what the sweep would take, and reads what fires on it with
185
- the load's own. Not with --sweep-list
186
- --yes do not ask before a load writes or a removal deletes: a
187
- removal asks last, once what it deletes and what the
188
- target runs as they go are said. Without it, a step
189
- with no terminal to answer the question \u2014 a CI step \u2014
190
- stops there, exit 2, and writes nothing
191
- --json emit what the panel would receive, every other line on
192
- stderr; a step that ends before its request, refused or
193
- with nothing to do, says "ended": true. Beside it, "step";
194
- "dataset" \u2014 its folder, its digest (sha256 of the files a load
195
- reads, the manifest less the verdict a verification writes
196
- into it) and its version \u2014 for extract, load and verify;
197
- "mapping", the file in the sas naming the records the loads
198
- into the target created, for load, verify and remove; per
199
- object, what the step counted ("objects"); how a load or a
200
- removal ended ("status"); verify's verdict, and a load's, per
201
- object ("verdict"); what a dry run or a
202
- removal's preview would be refused for ("refusals"), with the
203
- code of each ("refusalCodes"), as its line names it: a load
204
- would be refused (CODE): ..., a removal would be refused
205
- (CODE): ...; and what refused a load before it wrote \u2014 what
206
- runs as it writes, its purge, its checkpoint, its emails or
207
- its mute \u2014 or a removal
208
- before its first delete \u2014 what fires as it deletes, its mute
209
- or Production Guard \u2014 ("refused": {"code", "message"}), as
210
- its line names it: refused (CODE): ...
211
- --help this text
212
-
213
- The salt that makes pseudonyms repeatable is read from SANDFORGE_FROZEN_SALT,
214
- or else from --salt-file, and never made up here: an extraction without one is
215
- refused. The editor keeps its own in VS Code's secret storage; copy it from there
216
- with "SandForge: Copy Frozen Dataset Salt" to extract the same pseudonyms.
217
-
218
- The graph a selection or an extraction discovers is kept in the sas
219
- (discovery.json) and reused by the next one while the source's schema has not
220
- changed and a day has not gone by: each says "graph reused from <step>" or
221
- "rediscovered: <why>".
222
-
223
- Ctrl-C stops a step after the call under way, a load recorded in the sas with
224
- what it wrote, which remove takes back; a SIGTERM \u2014 a CI job cancelled or timed
225
- out \u2014 or a SIGHUP stops it the same way. Ctrl-C again ends it at once.
226
-
227
- Exit codes: 0 the step finished \u2014 a removal with nothing to take included, and a
228
- removal's preview once said, its refusals included \u2014, and verify's verdict is
229
- PASSED; 1 it failed or could not start, verify's verdict is FAILED, a dry run says
230
- the load would be refused, a load was refused before it wrote for what the target
231
- runs as it writes (AUTOMATION_NOT_ACCEPTED without --accept-automation), for its
232
- emails (EMAILS_NOT_ACCEPTED without --accept-emails, FROZEN_EMAILS_EXCEEDED) or for
233
- the data storage its records take past what the target has left
234
- (FROZEN_STORAGE_EXCEEDED: --pilot, or a smaller dataset), or a removal
235
- stopped before its first delete at what the target runs, without
236
- --accept-automation; 2 a bad command line, or a question with
237
- no terminal to answer it (give --yes); 3 verify's verdict is PARTIAL, a load
238
- completed with errors, the verification it runs after it was FAILED or PARTIAL, or
239
- the sweep of a reload did not take all it was asked to, or a removal left records
240
- of the load or its sweep did not take all it was asked to; 4 verify's verdict is
241
- UNSTABLE: no two readings agreed; 130 Ctrl-C stopped the step, 143 a SIGTERM, 129 a
242
- SIGHUP. A load is judged by its own report, which ends partial on a verification
243
- FAILED or PARTIAL; one UNSTABLE is said, and the verify step gives it a code.
244
- `,qt=["select","extract","load","verify","remove","status"],mo={words:1,switches:["--pilot","--reload","--dry-run","--write-encrypted","--mute-automation","--accept-automation","--include-changed","--accept-emails","--sweep","--sweep-list",...Tt,"--preview","--yes","--json",...Te.switches],values:["--config","--source","--target","--author","--salt-file","--store","--max-total","--gone-first",...Te.values]},Vt=1e6;function go(t){let n;try{n=JSON.parse(pe(t,"utf8"))}catch(e){process.stderr.write(`--gone-first: ${t} does not read: ${String(e)}
245
- `),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: ${t} holds no JSON array of record ids.
246
- `),process.exit(2)),n}function wo(t){let n=t.slice(2);(n.includes("--help")||n.includes("-h")||n.length===0)&&(process.stdout.write(ho),process.exit(0));let e=d=>{let y=n.indexOf(d);return y>=0&&y+1<n.length?n[y+1]:void 0},r=n[0];qt.includes(r)||(process.stderr.write(`The first word is the step: ${qt.join(", ")} \u2014 not "${n[0]}".
247
- `),process.exit(2)),tt(n,mo);let o=e("--config");o||(process.stderr.write(`Missing --config. Run with --help.
248
- `),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.
249
- `),process.exit(2)),(r==="load"||r==="verify"||r==="remove")&&!i&&(process.stderr.write(`${r} works on the target org: give --target.
250
- `),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.
251
- `),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.
252
- `),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.
253
- `),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.
254
- `),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.
255
- `),process.exit(2));let u=e("--gone-first");n.includes("--gone-first")&&u===void 0&&(process.stderr.write(`--gone-first takes the file of the ids taken back first.
256
- `),process.exit(2)),n.includes("--write-encrypted")&&r!=="load"&&(process.stderr.write(`--write-encrypted goes with load. Run with --help.
257
- `),process.exit(2)),n.includes("--accept-emails")&&r!=="load"&&(process.stderr.write(`--accept-emails goes with load. Run with --help.
258
- `),process.exit(2)),n.includes("--mute-automation")&&r!=="load"&&r!=="remove"&&(process.stderr.write(`--mute-automation goes with load or remove. Run with --help.
259
- `),process.exit(2)),n.includes("--accept-automation")&&r!=="remove"&&r!=="load"&&(process.stderr.write(`--accept-automation goes with load or remove. Run with --help.
260
- `),process.exit(2)),n.includes(Oe)&&r!=="load"&&(process.stderr.write(`${Oe} goes with load. Run with --help.
261
- `),process.exit(2));let w=yt(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.
262
- `),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.
263
- `),process.exit(2));let l=Ct(n);"refusal"in l&&(process.stderr.write(`${l.refusal} Run with --help.
264
- `),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.
265
- `),process.exit(2)),(d===void 0||!/^\d+$/.test(d)||h<1||h>Vt)&&(process.stderr.write(`--max-total takes a whole number from 1 to ${Vt}, not "${d??""}".
266
- `),process.exit(2))}return{step:r,configPath:o,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"),...l,preview:n.includes("--preview"),...h!==void 0?{maxTotal:h}:{},...u!==void 0?{goneFirst:u}:{},yes:n.includes("--yes"),json:n.includes("--json")}}async function yo(t){let e=(await t.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 o=(await t.query("SELECT OrganizationType FROM Organization LIMIT 1")).records[0]?.OrganizationType;return typeof o=="string"&&o!==""?{id:e.Id,orgType:Je({isSandbox:!1,edition:o}),edition:o}:{id:e.Id,orgType:"Production"}}catch{return{id:e.Id,orgType:"Production"}}}async function Kt(t,n,e,r){let o=await ot(t),s=ve(o),i;try{i=await yo(s)}catch(u){let w=u instanceof Error?u.message:String(u);throw new Error(`Could not read the Organization record of '${t}': ${w}`)}return n.set(i.id,{org:{id:i.id,alias:t,orgType:i.orgType,metadata:{apiVersion:"66.0",...i.edition?{edition:i.edition}:{}}},credentials:{accessToken:o.accessToken,instanceUrl:o.instanceUrl}}),e?.set(i.id,s),r?.set(i.id,{session:o,typed:i}),i.id}function xe(t){return!t||t.length===0?[]:[`kept: the platform does not delete them \u2014 ${t.map(({objectApiName:e,count:r})=>`${e} (${r})`).join(", ")}`]}function Ht(t,n){let e=(t??[]).filter(o=>o.reason==="may-hold-masks");if(e.length===0)return[];let r=e.map(({objectApiName:o,field:s,affectedRecords:i})=>`${o}.${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 vo(t,n){let e=t==="token"?"each record its own, from the token the value carries":`each record its own, its rank appended: the field is ${t==="unique"?"unique in the target":"the record name"}`;return n===void 0?e:`${e} (first: "${n}")`}function _e(t){return t.created.reduce((n,e)=>n+e.count,0)}function bo(t){return{...t.includeChanged?{includeChanged:!0}:{},...t.sweep?{sweep:!0}:{},...t.sweepLate?{sweepLate:!0}:{},...t.sweepUntied?{sweepUntied:!0}:{},...t.muteAutomation?{muteAutomation:!0}:{}}}function Ne({read:t,steps:n,mute:e},r,o="removal",s){let i=e?q(e.muted,r).map(h=>` ${h}`):[];if(!("objects"in t)){let h=o!=="removal",d=o==="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: ${t.unread}`,...i],refusal:`What ${r} runs as ${d} writes could not be read (${t.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 u=e?.automation??t,w=s?Qe(n,s.delete??[]):n,l=pt(u,r,{steps:n,...s?{sweep:s}:{},assign:ut(u,Ye(u,w)),mayMute:e===void 0&&Ee("--mute-automation"),subject:o});return{lines:[...ct(t,r,n,o,s),...i],...l!==void 0?{refusal:l}:{}}}function Ao(t,n){let e=_e(t),r=t.earlier?"a load before the last one, whose records the loads after it left in place,":"the last load",o=`a removal deletes the ${e} record(s) it created, children first:`;return t.removed&&e===0?o=`its records were removed on ${t.removed.removedAt}, and none is left to remove`:e===0&&(t.keptByThePlatform?.length??0)>0?o="it created no record a removal takes":t.removed&&(o=`the removal of ${t.removed.removedAt} left ${e} of the records it created, and a removal deletes those, children first:`),[`${r} wrote to ${n} at ${t.loadedAt}; ${o}`,...t.created.map(s=>` ${s.objectApiName}: ${s.count}`),`${t.linked} record(s) it linked to or reused stay`,...xe(t.keptByThePlatform)]}function ko(t,n){return t.recorded&&(_e(t)>0||(n?.delete??[]).length>0)}function $o(t){return[t.deleted>0?`${t.deleted} deleted`:"",t.alreadyGone>0?`${t.alreadyGone} already gone`:"",t.keptChanged>0?`${t.keptChanged} kept, changed since the load`:"",t.keptDependents>0?`${t.keptDependents} kept for records that stay`+(t.heldBy.length>0?` (${t.heldBy.join(", ")})`:""):"",t.refused>0?`${t.refused} refused`:"",(t.notReached??0)>0?`${t.notReached} not reached`:""].filter(Boolean).join(", ")}function Ro(t){let n=t.count>t.names.length?", \u2026":"";return`${t.count} file(s) attached to them stay in the org, as the load did not create them: ${t.names.join(", ")}${n}`}function Xt(t){return`graph: ${t.objects} object(s) at a cap of ${t.maxNodes}`+(t.objects>t.maxNodes?" (raised for the parents their records cannot be written without)":"")+(t.truncated?" \u2014 TRUNCATED: objects further out were not read":"")}function Zt(t){return"reusedFrom"in t?`graph reused from ${t.reusedFrom} (discovered ${t.discoveredAt}): the source's schema has not changed since`:`rediscovered: ${t.rediscovered}`}function So(t){switch(t.phase){case"discovery":return` discovery: ${t.objects??0} object(s) reached`;case"axis":return` listing the values of axis ${t.axis??"?"}\u2026`;case"combination":return` combination ${t.index??"?"}/${t.of??"?"}: ${t.combinationKey??"?"}`;case"candidate":return` candidate ${t.candidate??"?"}/${t.candidates??"?"} of ${t.combinationKey??"?"}: measuring its own records\u2026`;case"measure":return` measuring the ${t.roots??0} root(s) kept, together\u2026`}}function Eo(t){let n=t.reason==="timeout"?"its time ran out":"it was cancelled",e=t.during==="axes"?"while it listed the axis values":t.during==="measure"?"while it measured the roots it kept":`while it probed ${t.combinationKey??"?"}`+(t.candidate!==void 0?`, candidate ${t.candidate} of ${t.candidates??"?"}`:"");return[`STOPPED: ${n} ${e}; the combinations decided before are kept`,...t.notProbed.length>0?[` never probed: ${t.notProbed.join(", ")}`]:[]]}var Oo=new Set(["NO_LOAD","ALREADY_REMOVED","NOTHING_TO_REMOVE"]),ro="REMOVAL_DECLINED",Jt=["MUTE_PRODUCTION","MUTE_NO_RIGHT","MUTE_FAILED"],To=new Map([["frozen:load:error",new Set(["EMAILS_NOT_ACCEPTED","FROZEN_EMAILS_EXCEEDED",Se,"FROZEN_STORAGE_EXCEEDED","AUTOMATION_NOT_ACCEPTED",re.code,...Jt])],["frozen:remove:error",new Set(["AUTOMATION_NOT_ACCEPTED","GUARD_BLOCKED","GUARD_DECLINED",re.code,...Jt])]]);function Pe(t){let n=t.payload?.code,e=To.get(String(t.type??""));if(!(typeof n!="string"||e?.has(n)!==!0))return{code:n,message:String(t.payload?.message??"")}}function Ie(t){let n=String(t.type??"");if(!n.endsWith(":error")||n==="frozen:remove:automation:error")return!1;let e=String(t.payload?.code);return n==="frozen:remove:error"&&e===ro?!1:!((n==="frozen:remove:error"||n==="frozen:remove:preview:error")&&Oo.has(e))}var Qt={passed:0,partial:3,unstable:4,failed:1};function Co(t,n,e){return async(r,o)=>{let s=Date.parse(o?.first??""),i=Math.max(s,Date.parse(o?.last??""));return!Number.isFinite(s)||!Number.isFinite(i)?[]:[...(await Ft({organizationId:r,alias:t,span:{from:s,to:i},own:{ids:[]},...n!==void 0?{journalDir:n}:{}})).map(({ids:w})=>({ids:w,from:s,to:i})),...Mt(Ut(n??H(),r),{sasMark:e,own:[]})]}}function Fo(t,n){return st(n.map(e=>{let r=e.payload??{};if(t==="verify"&&e.type==="frozen:verify:result"){let o=String(r.verdict?.status??"");return Object.prototype.hasOwnProperty.call(Qt,o)?Qt[o]:1}if(t==="load"&&e.type==="frozen:load:response"){let o=r.report;return o?.status==="completed"&&(o.sweeps??[]).every(s=>s.result.status==="success")?0:3}return t==="remove"&&e.type==="frozen:remove:response"?r.result?.status==="success"?0:3:0}))}function Yt(t,n){return St(t.verdict==="unread"?{verdict:"unread",estimate:t.estimate,unread:t.unread??"not said"}:{verdict:t.verdict,estimate:t.estimate,remaining:t.remaining??0,max:t.max??0},n)}function jo(t){return(t.filter(e=>e.type==="frozen:remove:response").at(-1)?.payload?.result?.objects??[]).some(e=>e.deleted+e.alreadyGone>0)}function de(t){return ft()!==void 0?je(t):t==="--sweep"||t==="--sweep-list"?`remove ${t}`:`remove --sweep ${t}`}function Lo(t){if(!t||t.found.length===0)return[];let n=t.found.reduce((l,h)=>l+h.count,0),e=t.found.some(l=>l.overBound)?" or more":"",r=l=>t.found.reduce((h,d)=>h+(d.classes?l(d.classes):0),0),o=r(l=>l.made+l.madeOver),s=r(l=>l.late),i=r(l=>l.untied),u=t.found.filter(l=>l.overBound).map(l=>l.objectApiName),w=[...o>0?[`${de("--sweep")} takes the ${o} tied to the load`]:[],...s>0?[`${de("--sweep-late")} takes the ${s} made late`]:[],...i>0?[t.untied?.refusal!==void 0?`the ${i} tied to nothing of the load now stay: --sweep-untied is refused (${t.untied.refusal})`:`${de("--sweep-untied")} takes the ${i} tied to nothing of the load now`]:[],...u.length>0?[`no sweep takes those of ${u.join(", ")}, past its bound`]:[]];return[`not swept: ${n}${e} record(s) the load's user created in its window stay, what the target's automation made for the load likely: `+t.found.map(l=>`${l.objectApiName}: ${l.count}`).join(", "),...w.map(l=>` ${l}`),` ${de("--sweep-list")} names them first: a record made by hand as that user in the load's window reads as the automation's, so check the names before a sweep`]}function No(t,n){return` data storage: about ${K(t.estimateMB)} MB, of the ${K(t.remainingMB)} MB ${n} has left of ${K(t.maxMB)} MB`+(t.freedMB!==void 0?`, with about ${K(t.freedMB)} MB the reload's purge frees first`:"")+(t.refusal!==void 0?": more than it has left":"")}function zo(t,n={}){let e=String(t.type??""),r=t.payload??{};if((e==="frozen:remove:error"||e==="frozen:remove:preview:error")&&!Ie(t))return[`nothing to remove: ${String(r.message??"")}`];if(e==="frozen:remove:error"&&!Ie(t))return[String(r.message??"")];if(e==="frozen:remove:automation:error")return[];if(e.endsWith(":error")){let o=e==="frozen:load:error"?r.sweeps??[]:[],s=e==="frozen:load:error"?r.emails:void 0,i=e==="frozen:load:error"?r.automation:void 0,u=e==="frozen:load:error"?r.mutedAutomation:void 0,w=Pe(t);return[...w?[]:[`! ${e}: ${String(r.message??"")}${r.code?` [${String(r.code)}]`:""}`],...i?ie(i,"the target"):[],...s?ae(s,"the target"):[],...u?q(u,"the target"):[],...o.length>0?["before the load ended, its sweep had already done this:"]:[],...o.flatMap(({loadedAt:l,result:h})=>[`sweep of the load of ${l}:`,...Z(h)]),...w?[te(w)]:[]]}switch(e){case"frozen:select:progress":return[So(r)];case"frozen:select:response":{let o=r.selection;return[`selected ${o.combinations.length} root(s): ${o.combinations.map(s=>s.combinationKey).join(", ")}`,...o.uncovered.map(s=>` uncovered ${s.combinationKey}: ${s.reason}`),...o.stopped?Eo(o.stopped):[],...o.discovery?[Zt(o.discovery)]:[],...o.graph?[Xt(o.graph)]:[],`volumetry ${o.volumetry.total} / ${o.volumetry.budgetMax} record(s)`+(o.volumetry.summed?" \u2014 each kept root's own records added up: they were not measured together":""),...Object.entries(o.volumetry.measured).filter(([,s])=>s>0).map(([s,i])=>` ${s}: ${i}`)]}case"frozen:control:result":{let o=r.report;return[`non-reidentification control: ${o.passed?"PASSED":"FAILED"}`,...o.checks.map(s=>` ${s.passed?"ok ":"FAIL"} ${s.name}`+(s.violations.length>0?` (${s.violations.length} violation(s))`:""))]}case"frozen:extract:response":{let o=r.manifest,s=r.discovery;return[`frozen ${String(r.recordCount)} record(s) as version ${o.version} in ${String(r.datasetDir)}`,...s?[Zt(s)]:[],...o.coverage?[Xt(o.coverage)]:[],...o.coverage&&o.coverage.unboundedObjects.length>0?[`read without the time bound: ${o.coverage.unboundedObjects.join(", ")}`]:[],...(o.coverage?.leftToThePlatform??[]).map(i=>`${i.objectApiName}: ${i.note}`),...(o.coverage?.exclusionCosts??[]).map(i=>`${i.objectApiName}: ${i.note}`),...(o.coverage?.requiredLeftEmpty??[]).length>0?[`required in the source and left empty by the rules \u2014 a load will ask a value for each: ${(o.coverage?.requiredLeftEmpty??[]).join(", ")}`]:[],...(o.coverage?.keptWithoutARule??[]).length>0?["kept without a rule, the platform's own words: "+(o.coverage?.keptWithoutARule??[]).join(", ")]:[],...(o.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: "+(o.coverage?.encryptedNotKept??[]).join(", ")]:[],...Object.entries(o.volumetry.measured).filter(([,i])=>i>0).map(([i,u])=>` ${i}: ${u}`)]}case"frozen:load:response":{let o=r.report,s=[`load: ${o.status} in ${o.durationMs}ms \u2014 ${o.alignment.excludedObjects.length} object(s) excluded, ${o.alignment.removals.length} field removal(s), ${o.alignment.recordTypeIssues.length} record type issue(s), ${o.placeholders.length} placeholder(s)`];for(let c of o.alignment.excludedObjects)s.push(` ${c.objectApiName}: not loaded \u2014 ${c.reason}`);s.push(...Ht(o.alignment.removals,"left"));for(let c of o.perObject){let R=c.writtenByThePlatform??0;s.push(` ${c.objectApiName}: ${c.inserted} inserted, ${c.reused} reused`+(R>0?` (${R} written by the platform with ${Ae(c.objectApiName)})`:"")+`, ${c.skippedDuplicates.length} duplicate(s), ${c.failed.length} failed of ${c.fromFiles}`);let O=c.failed[0];O&&s.push(` first refusal: ${O.errors?.[0]??O.error??"?"}`)}for(let c of[...o.leftToThePlatform??[],...o.untypedFeedItems??[],...o.heldForExcludedParents??[],...o.quotesLeftUnsynced??[],...o.keysLeftEmpty??[]])s.push(` ${c.objectApiName}: ${c.note}`);let i=o.perObject.filter(c=>(c.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:c,writtenWithoutFields:R}of i)for(let{field:O,refusedBy:N,reason:J,rows:V,replacedWith:U}of R?.fields??[]){let Be=N==="restricted-picklist"?"a restricted picklist refused its value":"a validation rule refused it",fe=U===void 0?"":` \u2014 written with "${U}", as its picklist rule declares`;s.push(` ${c}.${O} ${V} record(s) \u2014 ${Be}${fe} \u2014 ${J}`)}}s.push(`pass 2: ${o.pass2.resolved} resolved, ${o.pass2.unresolved.length} unresolved`);for(let c of o.pass2.unresolved.slice(0,5))s.push(` ${c.objectApiName}.${c.field}: ${c.detail}`);let u=o.personContact,w=u?.sent??[];if(u&&u.restored+w.length+u.unresolved.length>0){s.push(`person contacts: ${u.restored} linked, ${w.length} sent as contacts of their own, ${u.unresolved.length} not linked`);for(let c of w.slice(0,5))s.push(` ${c.contactReferenceId} sent: ${c.detail}`);for(let c of u.unresolved.slice(0,5))s.push(` ${c.contactReferenceId}: ${c.detail}`)}if(o.statuses&&o.statuses.restored+o.statuses.refused.length>0){s.push(`statuses applied after insert: ${o.statuses.restored}, refused ${o.statuses.refused.length}`);for(let c of o.statuses.refused.slice(0,5))s.push(` ${c.objectApiName} \u2192 ${c.status}: ${c.detail}`)}let l=c=>Object.values(c).reduce((R,O)=>R+O,0),h=l(o.purge.deleted),d=l(o.purge.deactivated??{});if(h+d+o.purge.failures.length>0){s.push(`purge of earlier loads: ${h} deleted, ${d} deactivated, ${o.purge.failures.length} failed`);for(let c of o.purge.failures.slice(0,5))s.push(` ${c.objectApiName}: ${c.errors[0]??"?"}`)}for(let[c,R]of Object.entries(o.purge.cameAlong??{}))s.push(` ${c}: took along ${R.count} record(s) the loads did not write that came with their records, made as they wrote: ${R.objects.join(", ")}`);let y=Object.entries(o.purge.leftUnrecorded??{});if(y.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[c,R]of y)s.push(` ${c}: ${R}`)}let b=Object.entries(o.purge.keptByThePlatform??{});if(b.length>0){s.push("kept by the purge, the platform does not delete them:");for(let[c,R]of b)s.push(` ${c}: ${R}`)}for(let c of r.report.sweeps??[]){s.push(`sweep of the load of ${c.loadedAt}:`,...Z(c.result));let R=c.result.objects.reduce((O,N)=>O+N.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 F=r.report.mutedAutomation;F&&s.push(...q(F,"the target"));let T=r.report.automation;T&&s.push(...ie(T,"the target"));let a=r.report.emails;a&&s.push(...ae(a,"the target"));let A=r.report.apiRequests;return A&&s.push(Yt(A,"the target")),s.push(...no(r.report.recordTypesGiven,!1)),s}case"frozen:load:preview:response":{let o=r.plan,s=a=>o.perObject.reduce((A,c)=>A+a(c),0),i=[`dry run${o.mode.pilot?" (pilot)":""}${o.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`+(o.mode.reload?`, ${s(a=>a.toPurge)} to purge and ${s(a=>a.toDeactivate)} to deactivate of ${o.earlierLoads} earlier load(s)`:"")+" \u2014 nothing written"];for(let a of o.perObject){let A=[`${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 ${Ae(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}: ${A.join(", ")} of ${a.fromFiles}`)}for(let a of o.excludedObjects)i.push(` ${a.objectApiName}: not loaded \u2014 ${a.reason}`);i.push(...Ht(o.removals,"would leave"));for(let a of[...o.heldForExcludedParents??[],...o.quotesLeftUnsynced??[],...o.keysLeftEmpty??[]])i.push(` ${a.objectApiName}: ${a.note}`);for(let a of o.placeholders)i.push(`placeholder for ${a.objectApiName}.${a.field}: ${a.affectedRecords} record(s)`);for(let a of o.requiredDefaults)i.push(`default for ${a.objectApiName}.${a.field}: ${a.affectedRecords} record(s)`+(a.perRecord?`, ${vo(a.perRecord,a.example)}`:""));o.personContacts>0&&i.push(`${o.personContacts} person account contact(s) go in with their account, not counted above`);let u=Object.entries(o.leftUnrecorded??{});if(u.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,A]of u)i.push(` ${a}: ${A}`)}let w=Object.entries(o.keptByThePlatform??{});if(w.length>0){i.push("left in place by the purge, the platform does not delete them:");for(let[a,A]of w)i.push(` ${a}: ${A}`)}let l=a=>` ${a.name}${a.field?` (${a.field})`:""}${a.message?` \u2014 ${a.message}`:""}`,h=o.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 A of a.validationRules??[])i.push(l(A))}for(let a of o.perObject){let A=a.lookupFilters??[];A.length!==0&&i.push(`${a.objectApiName}: ${A.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: `+A.map(c=>`${c.field} (${c.referenceTo.join(" or ")}, ${c.records} record(s))`).join(", "))}for(let a of o.perObject){let A=a.validationRulesOnChange??[];A.length!==0&&i.push(`${a.objectApiName}: ${A.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: `+A.join(", "))}let d=new Map(o.placeholders.filter(a=>(a.validationRules?.length??0)>0).map(a=>[a.placeholderObjectApiName,a.validationRules??[]]));for(let[a,A]of d){i.push(`placeholder of ${a}: ${A.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 c of A)i.push(l(c))}o.validationRulesUnread&&i.push(`the target's validation rules could not be listed (${o.validationRulesUnread}): any of them may refuse a record counted to insert`);let y=r.plan.automation;y&&i.push(...ie(y,"the target"));let b=r.plan.emails;b&&i.push(...ae(b,"the target"));let F=r.plan.apiRequests;F&&i.push(Yt(F,"the target"));let T=r.plan.storage;return T&&i.push(No(T,"the target")),i}case"frozen:verify:result":{let o=r.verdict;return[`verification: ${o.status.toUpperCase()}`,...o.checks.map(s=>` ${s.passed?"ok ":"FAIL"} ${s.name}: ${s.detail}`)]}case"frozen:remove:response":{let o=r.result,s=[...new Set(o.objects.flatMap(u=>u.unchecked))],i=o.sweep!==void 0&&o.objects.length===0;return[...o.sweep?Z(o.sweep):[],...(o.otherLoadSweeps??[]).flatMap(({loadedAt:u,result:w})=>[`sweep of the load of ${u}:`,...Z(w)]),...i?[]:[`removal: ${o.status.toUpperCase()}`+(o.leftBy?` \u2014 of what the removal of ${o.leftBy} left`:"")],...o.objects.flatMap(u=>[` ${u.objectApiName}: ${$o(u)||"nothing"} of ${u.planned}${Fe(u)}`,...Et(u,"load"),...u.reasons.map(w=>` ${w}`),...u.filesLeft&&u.filesLeft.count>0?[` ${Ro(u.filesLeft)}`]:[]]),...s.length>0?[`not checked, deleted with their parent: ${s.join(", ")}`]:[],...xe(o.keptByThePlatform),...Ot(o.objects,{sweep:o.sweep!==void 0}),...o.mutedAutomation?q(o.mutedAutomation,"the target"):[]]}case"frozen:remove:sweep:response":{let o=r.loads;if(o)return o.flatMap(({loadedAt:i,listing:u})=>[`sweep of the load of ${i}:`,...se(u,"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:u})=>[`sweep of the load of ${i}:`,...se(u,"the target org",n,!0)]):se(r.listing,"the target org",n,!0)}case"frozen:remove:preview:response":return Po(r.preview);case"frozen:status:response":return[JSON.stringify(r.status,null,2)];default:return[]}}var Do="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 Po(t){let n=o=>t.userNames[o]??o,e=["preview: what a removal would do; nothing was deleted"+(t.leftBy?` \u2014 of what the removal of ${t.leftBy} left`:"")];for(let o of t.objects){let s=[o.toDelete>0?`${o.toDelete} to delete`:"",t.includeChanged&&o.changedSince>0?`${o.changedSince} of them changed since the load`:"",o.alreadyGone>0?`${o.alreadyGone} gone already`:"",o.notVisible>0?`${o.notVisible} not visible`:"",o.keptChanged>0?`${o.keptChanged} kept, changed since the load`:"",o.undeletable>0?`${o.undeletable} left, the user may not delete them`:"",o.unread>0?`${o.unread} left, not read`:""].filter(Boolean);e.push(` ${o.objectApiName}: ${s.join(", ")||"nothing"} of ${o.planned}${Fe(o)}`);let i=Object.entries(o.changedBy).sort((u,w)=>w[1]-u[1]);i.length>0&&e.push(` last changed by: ${i.map(([u,w])=>`${n(u)} ${w}`).join(" \xB7 ")}`);for(let u of o.reasons)e.push(` ${u}`)}e.push(...xe(t.keptByThePlatform));let r=t.refusalCodes;return t.refusals.forEach((o,s)=>{e.push(r?.length===t.refusals.length?oe({code:r[s],message:o},"a removal"):`a removal would be refused: ${o}`)}),e.push(Do),e}async function Io(t){let n=B(t,"manifest.json");if(De(n))try{let e=await Nt(t),{version:r}=JSON.parse(pe(n,"utf8"));return{dir:t,digest:e,...typeof r=="string"?{version:r}:{}}}catch{return}}function xo(t,n){let e=B(t,zt(n)),r=B(t,"referenceid-mapping.json");return!De(e)&&De(r)?r:e}function eo(t){return{status:t.status.toUpperCase(),objects:(t.objects??[]).map(({status:n,...e})=>({...e,verdict:n==="passed"?"PASSED":"FAILED"}))}}async function _o(t,n,e){let r=l=>n.filter(h=>h.type===l).at(-1)?.payload,o=e.targetOrgId?xo(e.sasDir,e.targetOrgId):void 0,s={tool:"sandforge-frozen",step:t,posted:n},i=[],u=[],w=async l=>{let h=await Io(l);h&&(s.dataset=h)};switch(t){case"extract":{let l=r("frozen:extract:response");if(!l)break;await w(typeof l.datasetDir=="string"?l.datasetDir:e.datasetDir);let h=l.manifest?.volumetry?.measured??{};s.objects=Object.entries(h).filter(([,d])=>d>0).map(([d,y])=>({objectApiName:d,records:y}));break}case"load":{await w(e.datasetDir);let l=r("frozen:load:response")?.report,h=r("frozen:load:preview:response")?.plan,d=l?l.recordTypesGiven:h?.recordTypesGiven;d&&(s.recordTypesGiven=d),l?(s.mapping=l.mappingPath,s.objects=l.perObject.map(b=>({objectApiName:b.objectApiName,fromFiles:b.fromFiles,inserted:b.inserted,reused:b.reused,duplicates:b.skippedDuplicates.length,failed:b.failed.length}))):h&&(o&&(s.mapping=o),s.objects=h.perObject.map(b=>({objectApiName:b.objectApiName,fromFiles:b.fromFiles,toInsert:b.toInsert,toLink:b.reusedByKeys+b.reusedFromCatalog+(b.writtenByThePlatform??0),notSent:b.notSent,toPurge:b.toPurge,toDeactivate:b.toDeactivate}))),l&&(s.status=l.status),!l&&r("frozen:load:error")?.code==="LOAD_CANCELLED"&&(s.status="cancelled",o&&(s.mapping=o));let y=r("frozen:verify:result")?.verdict;y&&(s.verdict=eo(y));break}case"verify":{let l=r("frozen:verify:result")?.verdict;await w(l?.manifestPath?po(l.manifestPath):e.datasetDir),o&&(s.mapping=o),l&&(s.verdict=eo(l));break}case"remove":{o&&(s.mapping=o);let l=r("frozen:remove:response")?.result,h=r("frozen:remove:preview:response")?.preview;l?(s.status=l.status,l.mutedAutomation&&(s.mutedAutomation=l.mutedAutomation),s.objects=l.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=l.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&&u.push(...h.refusalCodes));break}}return i.push(...e.refusals??[]),e.refusalCodes?.length===(e.refusals??[]).length&&u.push(...e.refusalCodes??[]),i.length>0&&(s.refusals=i),i.length>0&&u.length===i.length&&(s.refusalCodes=u),e.mute&&Object.assign(s,e.mute),e.checkpoint&&(s.checkpoint=e.checkpoint),s}async function Mo(t=process.argv){let n=Date.now(),e=wo(t),r=f=>{process[e.json?"stderr":"stdout"].write(`${f}
267
- `)},o=JSON.parse(pe(e.configPath,"utf8")),s=typeof o.sasDir=="string"?o.sasDir:B(fo(),".sandforge-sas");uo(s,{recursive:!0});let i=ht(e.storePath??B(s,"cli-store.json")),u=new Map,w=new Map,l=new Map,h=e.source?await Kt(e.source,u):void 0,d=e.target?await Kt(e.target,u,w,l):void 0,y=[],b=!1,F=!1,T=new Gt({log:()=>{},broker:{postToWebview:f=>{if(f.type!=="frozen:load:progress"&&(y.push(f),Ie(f)&&(b=!0),!F))for(let m of zo(f,e))r(m)}},orgManager:{getOrg:f=>u.get(f)?.org},orgRegistry:{getCredentials:async f=>u.get(f)?.credentials},configStore:i,infraServices:{productionGuard:Lt(r,e.target??e.source??"the org"),piiDetector:new at},nextId:()=>`cli-${Date.now()}-${Math.random().toString(36).slice(2,8)}`}),a=d?w.get(d):void 0,A=d?l.get(d):void 0,c=e.checkpointFirst&&A?vt({module:"frozen",operationId:`sandforge-frozen-load-${n}`,request:e.checkpointFirst,session:A.session,org:{id:A.typed.id,orgType:A.typed.orgType,...A.typed.edition!==void 0?{edition:A.typed.edition}:{}},connect:ve,journalDir:H(),say:r}):void 0;a&&T.setTargetAutomation(X(a)),T.setMuteOffered(Ee("--mute-automation")),T.setSaltKeeper(xt(process.env,e.saltFile)),e.target&&T.setOtherModuleRuns(Co(e.target,void 0,Le(s)));let R=new Wt;T.setRegistry(R);let O,N,J=!1,V=!1,U,fe=rt(f=>{if(U=f,process.stderr.write(`
268
- interrupted: the ${e.step} stops after the call under way, and says what it wrote (Ctrl-C again ends it at once)
269
- `),N){N.abort();return}for(let m of R.getRunning())R.abort(m.operationId);O&&R.cancelBeforeStart(O),(!O||V)&&process.exit(be(f))}),Ue=typeof o.datasetDir=="string"?o.datasetDir:B(s,"dataset"),P=[],I=f=>{P.push(f),r(oe(f,"a load"))},he=[],S,Ge=!1,W,G,Q,me=async f=>{if(!e.json)return;let m=[...P,...he],v=await _o(e.step,y,{datasetDir:Ue,sasDir:s,...d?{targetOrgId:d}:{},...m.length>0?{refusals:m.map(({message:g})=>g),refusalCodes:m.map(({code:g})=>g)}:{},...W?{mute:W}:{},...G?{checkpoint:G}:{}});process.stdout.write(`${JSON.stringify({...v,...Q?{notSwept:Q}:{},...S?{refused:S}:{},...f?{ended:f}:{}},null,2)}
270
- `)},E=async(f,m)=>{let v=`cli-${f}-${Date.now()}`;O=v;try{return await T.handle({id:v,type:f,payload:m})}finally{O=void 0}},We;try{We=await io()}finally{fe()}if(We==="ended"&&!U){b&&(process.exitCode=1),await me(!0);return}if(U){await me(),process.stderr.write(`${J?dt:qo(e.preview?"preview":e.step,e.step!=="load"||e.dryRun||ze(y))}
271
- `),process.exitCode=be(U);return}if(nt(b||P.length>0?1:Ge?3:Fo(e.step,y)),e.json){await me();return}r(`done in ${Date.now()-n}ms`);async function qe(f){await E("frozen:remove:automation",f);let m=x=>y.find(_=>_.type===x)?.payload,v=m("frozen:remove:automation:response"),g=Array.isArray(f.sweptObjects)?f.sweptObjects:[],k=v?.purge&&g.length>0?v.purge:void 0,p=v&&e.muteAutomation?a&&(e.preview||e.dryRun)?await $e(ke(a),v.automation,{writes:ee(v.steps)}):Re(v.automation,ee(v.steps)):void 0,$=p&&!("refused"in p)?p:void 0,{lines:j,refusal:L}=Ne({read:v?.automation??{unread:String(m("frozen:remove:automation:error")?.message)},steps:k??v?.steps??{},...$?{mute:{automation:$.automation,muted:$.planned}}:{}},e.target??"",f.reload===!0?"reload":"removal",k?{delete:g}:void 0);for(let x of j)r(x);let z=p&&"refused"in p?p.refused:L!==void 0&&!e.acceptAutomation?{code:"AUTOMATION_NOT_ACCEPTED",message:L}:void 0;return{...v?{steps:v.steps}:{},...$?{planned:$}:{},...z?{refusal:z.message,code:z.code}:{}}}function Ve(f){S={code:ne,message:f},P.push(S),r(te(S)),b=!0}async function Ke(){return F=!0,await E("frozen:status",{}),F=!1,y.filter(m=>m.type==="frozen:status:response").at(-1)?.payload?.status?.loadRecords?.find(m=>m.orgId===d)}async function He(f=[]){if(!e.reload||e.pilot)return;let m=await Ke();if(!(!m||m.created.length===0&&f.length===0))return qe({targetOrgId:d,loadedAt:m.loadedAt,reload:!0,...f.length>0?{sweptObjects:f}:{}})}async function Xe(){let f=await Ke();if(!f)return[];r(`reading what a sweep of ${e.target} would take for the loads a reload replaces\u2026`);let m=y.length;await E("frozen:remove:sweep",{targetOrgId:d,loadedAt:f.loadedAt,reload:!0});let v=y.slice(m);if(v.some(k=>k.type==="frozen:remove:sweep:error"))return;let g=v.filter(k=>k.type==="frozen:remove:sweep:response").at(-1)?.payload?.loads;return[...new Set((g??[]).flatMap(({listing:k})=>ye(k,e)))]}async function so(f){r(`reading what a sweep of ${e.target} would take\u2026`);let m=y.length;await E("frozen:remove:sweep",{targetOrgId:d,loadedAt:f});let v=y.slice(m);if(v.some(p=>p.type==="frozen:remove:sweep:error"))return;let g=v.filter(p=>p.type==="frozen:remove:sweep:response").at(-1)?.payload,k=[...g?.listing?[g.listing]:[],...(g?.otherLoads??[]).map(({listing:p})=>p)];return[...new Set(k.flatMap(p=>ye(p,e)))]}async function ao(f){let m=y.length,v=b;F=!0;try{await E("frozen:remove:sweep",{targetOrgId:d,loadedAt:f})}finally{F=!1}let g=y.splice(m);b=v;let k=g.find(p=>p.type==="frozen:remove:sweep:response")?.payload?.listing;return k&&k.refusal===void 0&&k.found.length>0?k:void 0}async function io(){if(await E("frozen:config:save",{config:o}),b)return"ended";switch(e.step){case"select":r(`selecting from ${e.source}\u2026`),await E("frozen:select",{sourceOrgId:h});break;case"extract":r(`extracting from ${e.source}\u2026`),await E("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 E("frozen:load:preview",{targetOrgId:d,...e.pilot?{pilot:!0}:{},...e.reload?{reload:!0}:{},...e.goneFirst!==void 0?{goneFirst:go(e.goneFirst)}:{},...e.writeEncrypted?{writeEncrypted:!0}:{},...e.muteAutomation?{muteAutomation:!0}:{},...e.acceptEmails?{acceptEmails:!0}:{},...e.acceptAutomation?{acceptAutomation:!0}:{}});let p=y.find(C=>C.type==="frozen:load:preview:response")?.payload?.plan,$=p?It(Pt(p),e.maxTotal):void 0;$&&I({code:"MAX_RECORDS",message:$});let j=p?.automation?.refused;j&&I(j);let L=p?.emails?.refused;L&&I(L);let z=p?.storage?.refusal;z&&I(z);let x=p?.apiRequests?.refused;x&&I(x);let _=(p&&e.sweep?await Xe():[])??[],D=p?await He(_):void 0;D?.refusal!==void 0&&I({code:D.code??"AUTOMATION_NOT_ACCEPTED",message:D.refusal});let Y;if(e.muteAutomation&&p&&a){Y=await X(a).read(d,[...new Set([...p.perObject.map(M=>M.objectApiName),...D?.steps?.delete??[]])]);let C=await $e(ke(a),Y,{writes:Bo(D?.steps)});if("refused"in C)P.some(({message:M})=>M===C.refused.message)||I(C.refused);else{for(let M of q(C.planned,e.target??"the target"))r(M);W={mutedAutomation:C.planned,mutePlan:C.plan}}}for(let C of no(p?.recordTypesGiven,!0,(W?.mutePlan.assign.length??0)>0))r(C);let Ze=p?Uo(p):[];if(c&&p&&a&&Ze.length>0){Y??=await X(a).read(d,p.perObject.map(ge=>ge.objectApiName)).catch(()=>{});let{estimate:C,refused:M}=await oo(c,{written:Ze,running:to(Y,W?.mutePlan)});if(C){G=C;for(let ge of Ce(C))r(ge)}M!==void 0&&I({code:ne,message:M})}break}let f=e.reload&&!e.pilot&&e.sweep?await Xe():[];if(f===void 0)return r("Nothing written."),"ended";let m=e.reload&&!e.pilot?await He(f):void 0;if(m?.refusal!==void 0)return S={code:m.code??"AUTOMATION_NOT_ACCEPTED",message:m.refusal},P.push(S),r(te(S)),b=!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"),T.setRemovalAsker(async p=>{let{lines:$,refusal:j}=Ne(p,e.target??"","reloadSweep");for(let L of $)r(L);if(!(j===void 0||e.acceptAutomation))return S={code:"AUTOMATION_NOT_ACCEPTED",message:j},P.push(S),S})),!e.yes&&!await mt(`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(c&&a){let p=Go(Ue),$=await X(a).read(d,p).catch(()=>{}),j={written:p,running:to($,e.muteAutomation&&$?Re($,Me).plan:void 0)},{estimate:L,refused:z}=await oo(c,j);if(L){G=L;for(let D of Ce(L))r(D)}if(z!==void 0||L===void 0)return Ve(`${z??""} Nothing was written.`.trim()),"ended";N=new AbortController;let x=N.signal,_=await lt(()=>c.take(j,L,{signal:x})).finally(()=>{N=void 0});if("stop"in _)return _.stop.code!==ne?(J=!0,"ended"):(Ve(At(_.stop)),"ended");v=_.checkpoint,G=v;for(let D of kt(v,e.target??"the target",e.muteAutomation))r(D)}r(`loading into ${e.target}${e.pilot?" (pilot)":""}\u2026`);let g=new Date().toISOString();await E("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 k=y.filter(p=>p.type==="frozen:load:error").map(Pe).find(p=>p!==void 0);if(k&&!S&&(S=k,P.push(S)),d&&ze(y)){let p=_t(await new Dt(s,{orgId:d}).recorded().catch(()=>{}),g);try{Bt(H(),{organizationId:d,sas:Le(s),startedAt:g,endedAt:new Date().toISOString(),...p?{lastWriteAt:p}:{}})}catch($){r(`warning: this load could not be added to ${H()}: another sas's sweep of ${e.target??""} will not see it (${$ instanceof Error?$.message:String($)})`)}}if(c&&v){let p=v;G=await c.settle(p,ze(y)).catch($=>(r(`warning: the checkpoint '${p.name}' taken before the load could not be deleted (${$ instanceof Error?$.message:String($)}): delete it with ${we("checkpoint")} delete --org ${e.target??""} --checkpoint `+p.checkpointId),p));for(let $ of $t(G))r($)}break}case"verify":r(`verifying ${e.target}\u2026`),await E("frozen:verify",{targetOrgId:d});break;case"remove":{F=!0,await E("frozen:status",{}),F=!1;let m=y.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 E("frozen:remove:preview",{targetOrgId:d,loadedAt:m.loadedAt,...e.includeChanged?{includeChanged:!0}:{}}),y.some(g=>g.type==="frozen:remove:preview:response")){let g=e.sweep?await so(m.loadedAt):[];if(g===void 0)break;let{planned:k,refusal:p,code:$}=await qe({targetOrgId:d,loadedAt:m.loadedAt,...g.length>0?{sweptObjects:g}:{}});if(k&&(W={mutedAutomation:k.planned,mutePlan:k.plan}),p!==void 0){let j={code:$??"AUTOMATION_NOT_ACCEPTED",message:p};he.push(j),r(oe(j,"a removal"))}}break}if(e.sweepList){r(`reading what a sweep of ${e.target} would take\u2026`),await E("frozen:remove:sweep",{targetOrgId:d,loadedAt:m.loadedAt});let g=y.filter(k=>k.type==="frozen:remove:sweep:response").at(-1)?.payload;Ge=[g?.listing,...(g?.otherLoads??[]).map(({listing:k})=>k)].some(k=>k?.refusal!==void 0);break}for(let g of Ao(m,e.target??""))r(g);e.sweep&&r(`${_e(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 ${je("--sweep-list")} to see what`);let v=!1;if(T.setRemovalAsker(async g=>{let{lines:k,refusal:p}=Ne(g,e.target??"");for(let $ of k)r($);if(p!==void 0&&!e.acceptAutomation)return{message:p,code:"AUTOMATION_NOT_ACCEPTED"};if(!e.yes&&ko(m,g.steps)){V=!0;let $=await gt(`Type ${e.target} to delete them:`);if(V=!1,$!==e.target)return v=!0,{message:"Nothing deleted.",code:ro}}r(`removing from ${e.target}\u2026`)}),await E("frozen:remove",{targetOrgId:d,loadedAt:m.loadedAt,...bo(e)}),v)return"ended";if(S=y.filter(g=>g.type==="frozen:remove:error").map(Pe).find(g=>g!==void 0),S&&he.push(S),!e.sweep&&!S&&jo(y)){Q=await ao(m.loadedAt);for(let g of Lo(Q))r(g)}break}case"status":await E("frozen:status",{});break}return"through"}}var Me=(t,n)=>n==="insert"||n==="update";function Bo(t){let n=t?ee(t):void 0;return(e,r)=>Me(e,r)||n?.(e,r)===!0}function no(t,n,e=!1){return jt((t??[]).map(r=>({recordTypeGiven:r})),n,e)}function to(t,n){return{firing:t?et(t,n,Me).firing:[]}}function Uo(t){let n=[...t.perObject.filter(e=>e.toInsert>0||e.toPurge>0||e.toDeactivate>0).map(e=>e.objectApiName),...(t.placeholders??[]).map(e=>e.placeholderObjectApiName)];return[...new Set(n)]}function Go(t){try{let n=JSON.parse(pe(B(t,"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 co(B(t,"data")).filter(n=>n.endsWith(".json")).map(n=>n.slice(0,-5)).sort()}catch{return[]}}var Wo=new Set(["INVALID_PAYLOAD","CONFIG_MISSING",re.code,"REPLACE_LEAVES_RECORDS","MUTE_PRODUCTION","MUTE_NO_RIGHT","MUTE_FAILED","EMAILS_NOT_ACCEPTED","FROZEN_EMAILS_EXCEEDED","AUTOMATION_NOT_ACCEPTED",Se,"FROZEN_STORAGE_EXCEEDED"]);function ze(t){let n=s=>t.filter(i=>i.type===s).at(-1)?.payload,e=n("frozen:load:response")?.report;if(e){let s=i=>Object.values(i??{}).reduce((u,w)=>u+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"),o=r?.code;return typeof o=="string"&&Wo.has(o)?!1:r?.written!==0}async function oo(t,n){try{let e=await t.scope(n);return{estimate:e,...e.refusal!==void 0?{refused:bt(e.refusal)}:{}}}catch(e){return{refused:it(e).replace(/ Nothing was written\.$/,"")}}}function qo(t,n=!0){return t==="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":t==="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":t==="remove"?"interrupted: the removal stopped before it was through; what it deleted is recorded, and `remove` again takes what it left":t==="preview"?"interrupted: the preview stopped before it was through, and deleted nothing":`interrupted: the ${t} stopped before it was through`}process.argv[1]?.includes("sandforge-frozen")&&(Rt(),Mo().then(()=>process.exit(process.exitCode??0)).catch(t=>{process.stderr.write(`${t instanceof Error?t.message:String(t)}
272
- `),process.exit(1)}));export{Do as FROZEN_PREVIEW_UNREAD,Co as commandLineOtherRuns,Go as datasetObjectsOf,Zt as discoveryLine,Ie as failsTheStep,_o as frozenAnswer,qo as frozenInterruptedLine,ze as frozenLoadWrote,no as frozenRecordTypeLines,Fo as frozenStepExit,go as goneFirstIdsOf,Yt as loadApiRequestsLine,Uo as loadPlanWrites,No as loadStorageLine,Mo as main,zo as messageLines,Lo as notSweptLines,wo as parseArgs,Pe as refusedFirstOf,bo as removalAsked,ko as removalAsks,Ne as removalAutomation,Ao as removalPlanLines,Po as removalPreviewLines,jo as removalTookRecords,So as selectStepLine,yo 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-SZGGFST2.mjs";import"./chunk-LAUOSXMN.mjs";import"./chunk-INIQ23K6.mjs";import"./chunk-2UU42PTD.mjs";import"./chunk-GCGHHN4K.mjs";import"./chunk-2JZGCCPG.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-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-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-MUEQRIK7.mjs";import"./chunk-ISSP2FZ5.mjs";import"./chunk-XU25YA46.mjs";import"./chunk-CE6ZDGBB.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{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};