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,4 +4,4 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{$ as I,$a as Ia,A as h,Aa as ha,Ab as hb,B as i,Ba as ia,Bb as ib,C as j,Ca as ja,Cb as jb,D as k,Da as ka,Db as kb,E as l,Ea as la,Eb as lb,F as m,Fa as ma,Fb as mb,G as n,Ga as na,Gb as nb,H as o,Ha as oa,Hb as ob,I as p,Ia as pa,Ib as pb,J as q,Ja as qa,Jb as qb,K as r,Ka as ra,Kb as rb,L as s,La as sa,Lb as sb,M as t,Ma as ta,Mb as tb,N as u,Na as ua,Nb as ub,O as v,Oa as va,Ob as vb,P as w,Pa as wa,Pb as wb,Q as x,Qa as xa,Qb as xb,R as y,Ra as ya,Rb as yb,S as z,Sa as za,Sb as zb,T as A,Ta as Aa,Tb as Ab,U as B,Ua as Ba,Ub as Bb,V as C,Va as Ca,Vb as Cb,W as D,Wa as Da,Wb as Db,X as E,Xa as Ea,Xb as Eb,Y as F,Ya as Fa,Yb as Fb,Z as G,Za as Ga,_ as H,_a as Ha,aa as J,ab as Ja,ba as K,bb as Ka,ca as L,cb as La,da as M,db as Ma,ea as N,eb as Na,fa as O,fb as Oa,ga as P,gb as Pa,ha as Q,hb as Qa,ia as R,ib as Ra,ja as S,jb as Sa,ka as T,kb as Ta,la as U,lb as Ua,ma as V,mb as Va,na as W,nb as Wa,oa as X,ob as Xa,pa as Y,pb as Ya,qa as Z,qb as Za,ra as _,rb as _a,sa as $,sb as $a,t as a,ta as aa,tb as ab,u as b,ua as ba,ub as bb,v as c,va as ca,vb as cb,w as d,wa as da,wb as db,x as e,xa as ea,xb as eb,y as f,ya as fa,yb as fb,z as g,za as ga,zb as gb}from"./chunk-VS7ZXUII.mjs";import"./chunk-SOU4FRYN.mjs";import"./chunk-E5AHXLS6.mjs";import"./chunk-OO6CLPEH.mjs";import"./chunk-YS4G22C2.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-BZ24IAP5.mjs";import"./chunk-SCKUIE3R.mjs";import"./chunk-AV5SWEHP.mjs";import"./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"./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"./chunk-KDGMAGQR.mjs";import"./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"./chunk-VYXMVJL5.mjs";import"./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"./chunk-A527W53V.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-GGD7ON3M.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-MTMH6H2A.mjs";import"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-NTOVCTRS.mjs";export{qb as CLONE_PREVIEW_UNREAD,J as FIELD_EXCLUSION_UNMATCHED,zb as ROOT_NEVER_CREATED,Xa as SWEEP_CLASS_FLAGS,Ab as TABLE_NEVER_CLONED,C as adaptDescribe,a as apiRequestsLine,A as auditDepsOf,Sa as automationHeldLines,R as choicesLines,x as cliRunSetup,Wa as cliSweepInput,ca as cloneApiRequestsJson,m as cloneInputLine,l as cloneInputOf,rb as clonePreviewJson,sb as clonePreviewLines,n as cloneSubjectOf,cb as commandSweepTies,T as contactPointLines,tb as datedFromItsJournal,S as decisionLines,F as describeObjectInfo,E as describeOnce,ba as discoveryRequestsLine,W as dryRunAdminChanges,nb as earlierOfTheRun,Fb as endOfAThrow,ra as executeOptions,G as failedOutright,K as fieldExclusionUnmatchedWords,L as fieldExclusionsUnmatchedLines,N as fieldExclusionsUnmatchedOf,M as fieldExclusionsUnmatchedRefusal,B as fieldInfosOf,I as fileLines,oa as graphCounts,_ as graphLine,xb as interruptedLine,v as journalDirOf,Fa as journalGoneWords,jb as journalPartsOf,X as jsonResult,qa as listedObjects,D as loadRecordTypes,Db as lostJobsBeforeTheMute,Eb as main,Oa as maxTotalRefusal,i as missingFlagsWords,U as neutralizedUpsertKeys,f as neverClonedTableRefusal,pa as notCountedObjectsOf,Y as objectOutcomeLine,Z as objectOutcomePrinter,O as orphanParentsCappedLine,Ua as otherPartIdsOf,kb as otherPartsOf,Va as otherPartsSweepLines,bb as otherRunsOf,t as parseArgs,Aa as parseRemoveArgs,Ga as parseRunSummary,ub as parseVerifyArgs,ib as partsLeft,Ja as partsLeftLines,La as platformCopiesWords,xa as productionRefusal,b as queryRootOf,Ka as quoteCopiesLines,r as readChoicesFile,fb as readEarlierRemovals,H as recordTypeGivenLines,za as rehearsalLines,ya as rehearsalPlanLines,Na as removalLines,Ha as removalPlan,Ia as removalPlanLines,gb as removalsAfter,mb as removalsOfParts,db as removalsPath,pb as removeMain,z as resumeChangedWords,y as resumeRefusal,w as resumedJournalPath,Bb as rootNeverCreatedRefusal,hb as runInPartsOf,eb as runKey,Ca as runMuteSchema,lb as runRemovalsAfter,Ea as runSummaryOfFile,Da as runUserIdOf,s as sampleArgsOf,ga as sampleBudgetOf,ia as sampleJson,ha as sampleLines,la as sampleReadsLine,na as sampleRefusalExit,ja as sampleResultJson,ka as sampleResultLines,ma as samplingProgressPrinter,Q as simulationGapLines,P as summaryLines,Ya as sweepClassArgsOf,Za as sweepClassOptions,Ta as sweepLines,Qa as sweepListingLines,Pa as sweepOptionWords,$a as sweepOrgOf,_a as sweepPartsOptions,Ra as sweepUnsaid,Ba as sweepUserHint,ab as syncRunSpanOf,k as tablesExecuteOptions,d as tablesLeftOut,e as tablesNotReached,g as tablesNotReachedWords,c as tablesQueryOf,j as tablesRunConfig,ua as targetAutomationReader,va as targetGapReader,h as templateWithoutInputWords,Ma as tookAlongLines,wa as typeOrg,u as uncertainRefusal,V as upsertKeyLines,vb as verificationLines,wb as verifyMain,aa as wholeOrgGateLines,$ as wholeOrgGraphLine,q as wholeOrgGraphOf,fa as wholeOrgMaxTotalRefusal,p as wholeOrgOptions,da as wholeOrgQuestionWords,ea as wholeOrgRefusalWords,o as wholeOrgRunConfig,yb as wholeOrgSweepLine,Cb as wholeOrgWriteDeps,ta as withTemplateFields,sa as withTheJournal,ob as writeWhole};
7
+ import{$ as M,$a as Ma,$b as Mb,A as l,Aa as la,Ab as lb,B as m,Ba as ma,Bb as mb,C as n,Ca as na,Cb as nb,D as o,Da as oa,Db as ob,E as p,Ea as pa,Eb as pb,F as q,Fa as qa,Fb as qb,G as r,Ga as ra,Gb as rb,H as s,Ha as sa,Hb as sb,I as t,Ia as ta,Ib as tb,J as u,Ja as ua,Jb as ub,K as v,Ka as va,Kb as vb,L as w,La as wa,Lb as wb,M as x,Ma as xa,Mb as xb,N as y,Na as ya,Nb as yb,O as z,Oa as za,Ob as zb,P as A,Pa as Aa,Pb as Ab,Q as B,Qa as Ba,Qb as Bb,R as C,Ra as Ca,Rb as Cb,S as D,Sa as Da,Sb as Db,T as E,Ta as Ea,Tb as Eb,U as F,Ua as Fa,Ub as Fb,V as G,Va as Ga,Vb as Gb,W as H,Wa as Ha,Wb as Hb,X as I,Xa as Ia,Xb as Ib,Y as J,Ya as Ja,Yb as Jb,Z as K,Za as Ka,Zb as Kb,_ as L,_a as La,_b as Lb,aa as N,ab as Na,ac as Nb,ba as O,bb as Oa,bc as Ob,ca as P,cb as Pa,cc as Pb,da as Q,db as Qa,dc as Qb,ea as R,eb as Ra,ec as Rb,fa as S,fb as Sa,fc as Sb,ga as T,gb as Ta,ha as U,hb as Ua,ia as V,ib as Va,ja as W,jb as Wa,ka as X,kb as Xa,la as Y,lb as Ya,ma as Z,mb as Za,na as _,nb as _a,oa as $,ob as $a,pa as aa,pb as ab,q as b,qa as ba,qb as bb,r as c,ra as ca,rb as cb,s as d,sa as da,sb as db,t as e,ta as ea,tb as eb,u as f,ua as fa,ub as fb,v as g,va as ga,vb as gb,w as h,wa as ha,wb as hb,x as i,xa as ia,xb as ib,y as j,ya as ja,yb as jb,z as k,za as ka,zb as kb}from"./chunk-3HEMJTAP.mjs";import"./chunk-BN33LVPQ.mjs";import"./chunk-JKT5YAQ2.mjs";import"./chunk-QAPVKPEC.mjs";import{a}from"./chunk-BNKT3R3F.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-BZ24IAP5.mjs";import"./chunk-SCKUIE3R.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-LHU6CPGE.mjs";import"./chunk-PBE44M2Y.mjs";import"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ZQO5PDX5.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{Db as CLONE_PREVIEW_UNREAD,L as FIELD_EXCLUSION_UNMATCHED,Mb as ROOT_NEVER_CREATED,ib as SWEEP_CLASS_FLAGS,Nb as TABLE_NEVER_CLONED,E as adaptDescribe,b as apiRequestsLine,C as auditDepsOf,db as automationHeldLines,V as choicesLines,z as cliRunSetup,hb as cliSweepInput,ga as cloneApiRequestsJson,n as cloneInputLine,m as cloneInputOf,Eb as clonePreviewJson,Fb as clonePreviewLines,o as cloneSubjectOf,pb as commandSweepTies,X as contactPointLines,Gb as datedFromItsJournal,W as decisionLines,H as describeObjectInfo,G as describeOnce,fa as discoveryRequestsLine,_ as dryRunAdminChanges,Ab as earlierOfTheRun,Sb as endOfAThrow,Ca as executeOptions,I as failedOutright,qa as fewerRootsOf,na as fewerRootsWords,M as fieldExclusionUnmatchedWords,N as fieldExclusionsUnmatchedLines,P as fieldExclusionsUnmatchedOf,O as fieldExclusionsUnmatchedRefusal,D as fieldInfosOf,K as fileLines,ka as fitKeyWords,za as graphCounts,ca as graphLine,Kb as interruptedLine,a as journalDirOf,Sa as journalGoneWords,wb as journalPartsOf,$ as jsonResult,Ba as listedObjects,F as loadRecordTypes,Qb as lostJobsBeforeTheMute,Rb as main,$a as maxTotalRefusal,j as missingFlagsWords,Y as neutralizedUpsertKeys,g as neverClonedTableRefusal,Aa as notCountedObjectsOf,aa as objectOutcomeLine,ba as objectOutcomePrinter,Q as orphanParentsCappedLine,fb as otherPartIdsOf,xb as otherPartsOf,gb as otherPartsSweepLines,ob as otherRunsOf,v as parseArgs,Na as parseRemoveArgs,Ta as parseRunSummary,Hb as parseVerifyArgs,vb as partsLeft,Wa as partsLeftLines,la as personAccountsAsBusinessLine,Ya as platformCopiesWords,Ka as productionRefusal,c as queryRootOf,Xa as quoteCopiesLines,s as readChoicesFile,sb as readEarlierRemovals,J as recordTypeGivenLines,Ma as rehearsalLines,La as rehearsalPlanLines,_a as removalLines,Ua as removalPlan,Va as removalPlanLines,tb as removalsAfter,zb as removalsOfParts,qb as removalsPath,Cb as removeMain,B as resumeChangedWords,A as resumeRefusal,y as resumedJournalPath,Ob as rootNeverCreatedRefusal,u as rootsArgsOf,S as rootsAskedJson,Ea as rootsChosenFirst,T as rootsLines,oa as rootsMaxTotalRefusal,Da as rootsOptionsOf,pa as rootsStorageRefusal,ub as runInPartsOf,rb as runKey,Pa as runMuteSchema,yb as runRemovalsAfter,Ra as runSummaryOfFile,Qa as runUserIdOf,t as sampleArgsOf,ra as sampleBudgetOf,ta as sampleJson,sa as sampleLines,wa as sampleReadsLine,ya as sampleRefusalExit,ua as sampleResultJson,va as sampleResultLines,xa as samplingProgressPrinter,U as simulationGapLines,R as summaryLines,jb as sweepClassArgsOf,kb as sweepClassOptions,eb as sweepLines,bb as sweepListingLines,ab as sweepOptionWords,mb as sweepOrgOf,lb as sweepPartsOptions,cb as sweepUnsaid,Oa as sweepUserHint,nb as syncRunSpanOf,l as tablesExecuteOptions,e as tablesLeftOut,f as tablesNotReached,h as tablesNotReachedWords,d as tablesQueryOf,k as tablesRunConfig,Ha as targetAutomationReader,Ia as targetGapReader,i as templateWithoutInputWords,Za as tookAlongLines,Ja as typeOrg,w as uncertainRefusal,x as uncertainRetryAt,Z as upsertKeyLines,Ib as verificationLines,Jb as verifyMain,ea as wholeOrgGateLines,da as wholeOrgGraphLine,r as wholeOrgGraphOf,ma as wholeOrgMaxTotalRefusal,q as wholeOrgOptions,ha as wholeOrgQuestion,ia as wholeOrgQuestionWords,ja as wholeOrgRefusalWords,p as wholeOrgRunConfig,Lb as wholeOrgSweepLine,Pb as wholeOrgWriteDeps,Ga as withTemplateFields,Fa as withTheJournal,Bb as writeWhole};
@@ -4,7 +4,7 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{f as A}from"./chunk-3F6Q5E7I.mjs";import"./chunk-IC2C2GOF.mjs";import"./chunk-VGW4MXXZ.mjs";import"./chunk-2BA2XKAY.mjs";import"./chunk-OAZRPP4I.mjs";import"./chunk-JEERQRLW.mjs";import"./chunk-HOJYWTP7.mjs";import"./chunk-R3X3LV64.mjs";import"./chunk-E5ZB3LU5.mjs";import"./chunk-EFR2Y7E4.mjs";import"./chunk-O2HDYYUV.mjs";import"./chunk-M3ROUWDX.mjs";import"./chunk-FQGHL7GR.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{b as C,c as E}from"./chunk-I7O6C2B5.mjs";import"./chunk-YRQGKDHM.mjs";import"./chunk-MJU2PGZQ.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-LWW4U276.mjs";import"./chunk-MJVTDA5Q.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-WR2GIKWE.mjs";import"./chunk-2CNCDM56.mjs";import"./chunk-SIHORWVK.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-B5QQJ4SI.mjs";import"./chunk-NZC67CGR.mjs";import"./chunk-BOGNK4LV.mjs";import"./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"./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"./chunk-KDGMAGQR.mjs";import"./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"./chunk-VYXMVJL5.mjs";import"./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"./chunk-A527W53V.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-GGD7ON3M.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-CA5NAXSU.mjs";import{a as O,e as R,g as b}from"./chunk-MTMH6H2A.mjs";import{kb as h,lb as $,mb as T,nb as v}from"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-NTOVCTRS.mjs";var L=`sandforge compare \u2014 compare two orgs the way the Compare page does, without the editor.
7
+ import{q as A}from"./chunk-HQQVANWQ.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-DBBPDSFN.mjs";import"./chunk-GBGHJTPC.mjs";import"./chunk-ZRUDYB7O.mjs";import"./chunk-IRZJU2PG.mjs";import"./chunk-Y4TDVDP2.mjs";import"./chunk-JJITOWZK.mjs";import"./chunk-YMDFF657.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-5K2I2DMP.mjs";import"./chunk-7WSLT5VX.mjs";import"./chunk-YT22LMF7.mjs";import"./chunk-G2JR3F63.mjs";import"./chunk-3CX7GPCR.mjs";import"./chunk-A65ADTCR.mjs";import"./chunk-NWOI25WY.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-A7JJWOLT.mjs";import"./chunk-ZXFL2MSN.mjs";import"./chunk-VYOYXTCU.mjs";import"./chunk-C3LNYAVJ.mjs";import"./chunk-GJ6SZVHT.mjs";import"./chunk-52EXDVPN.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-EEFUE2ES.mjs";import"./chunk-PE435FVH.mjs";import"./chunk-PWVDNN2C.mjs";import"./chunk-6VSZNZHH.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import{b as C,c as E}from"./chunk-MUEQRIK7.mjs";import"./chunk-ISSP2FZ5.mjs";import"./chunk-XU25YA46.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-IVZJSDJD.mjs";import"./chunk-VZT4E2OJ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-LHU6CPGE.mjs";import"./chunk-PBE44M2Y.mjs";import"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.mjs";import{b as O,f as R,h as b}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import{Wb as h,Xb as $,Yb as T,Zb as v}from"./chunk-ZQO5PDX5.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";var L=`sandforge compare \u2014 compare two orgs the way the Compare page does, without the editor.
8
8
 
9
9
  Usage:
10
10
  npx sandforge compare --source <alias> --target <alias> [options]
@@ -4,4 +4,4 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{a,b,c,d,e,f,g,h,i,j,k}from"./chunk-WXAQ7FK3.mjs";import"./chunk-TW3N6W5Z.mjs";import"./chunk-5P4PHJRL.mjs";import"./chunk-RSWDYIHY.mjs";import"./chunk-VS7ZXUII.mjs";import"./chunk-SOU4FRYN.mjs";import"./chunk-E5AHXLS6.mjs";import"./chunk-OO6CLPEH.mjs";import"./chunk-YS4G22C2.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-BZ24IAP5.mjs";import"./chunk-SCKUIE3R.mjs";import"./chunk-AV5SWEHP.mjs";import"./chunk-I7O6C2B5.mjs";import"./chunk-YRQGKDHM.mjs";import"./chunk-MJU2PGZQ.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-LWW4U276.mjs";import"./chunk-MJVTDA5Q.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-WR2GIKWE.mjs";import"./chunk-2CNCDM56.mjs";import"./chunk-SIHORWVK.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-B5QQJ4SI.mjs";import"./chunk-NZC67CGR.mjs";import"./chunk-BOGNK4LV.mjs";import"./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"./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"./chunk-KDGMAGQR.mjs";import"./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"./chunk-VYXMVJL5.mjs";import"./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"./chunk-A527W53V.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-GGD7ON3M.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-MTMH6H2A.mjs";import"./chunk-TTFDUKUS.mjs";import"./chunk-7EANH5PY.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-NTOVCTRS.mjs";export{h as dryRunLines,k as main,j as maskingInterruptedLine,b as masksObject,d as missingFieldLine,e as notWritableLine,a as parseArgs,i as restoreInterruptedLine,c as resultLines,f as runWouldBeRefused,g as snapshotTooSmallLines};
7
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"./chunk-FOIWWK7G.mjs";import"./chunk-TW3N6W5Z.mjs";import"./chunk-5GBO4KD5.mjs";import"./chunk-3HEMJTAP.mjs";import"./chunk-BN33LVPQ.mjs";import"./chunk-JKT5YAQ2.mjs";import"./chunk-QAPVKPEC.mjs";import"./chunk-BNKT3R3F.mjs";import"./chunk-QROPNEGY.mjs";import"./chunk-BZ24IAP5.mjs";import"./chunk-SCKUIE3R.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-EEFUE2ES.mjs";import"./chunk-PE435FVH.mjs";import"./chunk-PWVDNN2C.mjs";import"./chunk-6VSZNZHH.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-MUEQRIK7.mjs";import"./chunk-ISSP2FZ5.mjs";import"./chunk-XU25YA46.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-IVZJSDJD.mjs";import"./chunk-VZT4E2OJ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-LHU6CPGE.mjs";import"./chunk-PBE44M2Y.mjs";import"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ZQO5PDX5.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{j as dryRunLines,m as main,l as maskingInterruptedLine,n as maskingQuestion,b as masksObject,e as missingFieldLine,f as notWritableLine,a as parseArgs,k as restoreInterruptedLine,c as resultLines,g as runWouldBeRefused,i as slicePlanLines,h as sliceRefusedLines,d as sliceSetLines};
@@ -4,7 +4,7 @@ import { dirname as __sandforgeDirname } from 'node:path';
4
4
  const require = __sandforgeRequire(import.meta.url);
5
5
  const __filename = __sandforgePath(import.meta.url);
6
6
  const __dirname = __sandforgeDirname(__filename);
7
- import{a as he}from"./chunk-3RZQZHEB.mjs";import{b as fe,c as ge,d as me,e as ye,f as be}from"./chunk-3F6Q5E7I.mjs";import"./chunk-IC2C2GOF.mjs";import"./chunk-VGW4MXXZ.mjs";import"./chunk-2BA2XKAY.mjs";import"./chunk-OAZRPP4I.mjs";import"./chunk-JEERQRLW.mjs";import"./chunk-HOJYWTP7.mjs";import"./chunk-R3X3LV64.mjs";import"./chunk-E5ZB3LU5.mjs";import"./chunk-EFR2Y7E4.mjs";import"./chunk-O2HDYYUV.mjs";import"./chunk-M3ROUWDX.mjs";import"./chunk-FQGHL7GR.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 we}from"./chunk-TW3N6W5Z.mjs";import{a as ue,b as pe,c as le}from"./chunk-RSWDYIHY.mjs";import{b as G,e as ne}from"./chunk-BZ24IAP5.mjs";import{a as B,b as M}from"./chunk-SCKUIE3R.mjs";import{c as P,d as se}from"./chunk-AV5SWEHP.mjs";import"./chunk-YRQGKDHM.mjs";import"./chunk-MJU2PGZQ.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-LWW4U276.mjs";import"./chunk-MJVTDA5Q.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-WR2GIKWE.mjs";import"./chunk-2CNCDM56.mjs";import"./chunk-SIHORWVK.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-B5QQJ4SI.mjs";import"./chunk-NZC67CGR.mjs";import"./chunk-BOGNK4LV.mjs";import{y as de}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"./chunk-T63U4OZJ.mjs";import"./chunk-DBFJB2B6.mjs";import{G as ae,J as ie,i as re}from"./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{a as oe}from"./chunk-KDGMAGQR.mjs";import{r as Q}from"./chunk-MFG4MUIO.mjs";import"./chunk-EQNW3UC2.mjs";import"./chunk-GSKCGQIP.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-TYYOBZMU.mjs";import{g as Z}from"./chunk-HS4YRX4J.mjs";import"./chunk-ZUTYVST5.mjs";import"./chunk-CU2INBND.mjs";import"./chunk-YKKRIEH4.mjs";import"./chunk-TUACWKIH.mjs";import{b as J}from"./chunk-VYXMVJL5.mjs";import"./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"./chunk-A527W53V.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-GGD7ON3M.mjs";import"./chunk-UNDIBZWG.mjs";import{b as K}from"./chunk-CA5NAXSU.mjs";import{a as ee,b as te,e as D,g as ce}from"./chunk-MTMH6H2A.mjs";import"./chunk-TTFDUKUS.mjs";import{e as Y,l as H}from"./chunk-7EANH5PY.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-NTOVCTRS.mjs";import{mkdtempSync as Te,rmSync as _e}from"node:fs";import{tmpdir as Be}from"node:os";import{basename as Me,join as Ue}from"node:path";var ke=1024,$e="COPY_SANDBOX",Ne=H({DataStorageMB:H({Max:Y()}).loose()}).loose();async function Re(o){if(o.orgType!=="Sandbox")return;let t="Empty it whole from DataOps Cleanup in the panel, which knows whether it is marked Staging, or pick the objects to empty with --objects, which Production Guard asks about. "+fe,e;try{e=Ne.parse(await o.limits()).DataStorageMB.Max}catch(n){return{code:$e,message:`${o.target} is a sandbox whose data storage could not be read (${K(n)}): this command cannot tell a Partial Copy or Full sandbox, which may hold real data, from a developer's. ${t}`}}if(!(e<=ke))return{code:$e,message:`${o.target} is a Partial Copy or Full sandbox, by its data storage (${e.toLocaleString("en-US")} MB, past the ${ke.toLocaleString("en-US")} MB of a Developer Pro): it may hold real data, and this command cannot see whether it is marked Staging in the extension, where such a sandbox is never emptied whole. ${t}`}}var _="sandforge-empty",qe=`sandforge empty \u2014 empty objects of a sandbox, or the whole of it, without the editor:
7
+ import{a as ue}from"./chunk-GCGHHN4K.mjs";import{d as pe,e as le,f as he,q as ge}from"./chunk-HQQVANWQ.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-DBBPDSFN.mjs";import"./chunk-GBGHJTPC.mjs";import"./chunk-ZRUDYB7O.mjs";import{u as fe}from"./chunk-IRZJU2PG.mjs";import"./chunk-Y4TDVDP2.mjs";import"./chunk-JJITOWZK.mjs";import"./chunk-YMDFF657.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-5K2I2DMP.mjs";import"./chunk-7WSLT5VX.mjs";import"./chunk-YT22LMF7.mjs";import"./chunk-G2JR3F63.mjs";import"./chunk-3CX7GPCR.mjs";import"./chunk-A65ADTCR.mjs";import"./chunk-NWOI25WY.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-A7JJWOLT.mjs";import"./chunk-ZXFL2MSN.mjs";import"./chunk-VYOYXTCU.mjs";import"./chunk-C3LNYAVJ.mjs";import"./chunk-GJ6SZVHT.mjs";import"./chunk-52EXDVPN.mjs";import"./chunk-GMY5427L.mjs";import{a as me}from"./chunk-TW3N6W5Z.mjs";import{a as ie,b as de,c as ce}from"./chunk-5GBO4KD5.mjs";import{b as H,e as ee}from"./chunk-BZ24IAP5.mjs";import{a as U,b as q}from"./chunk-SCKUIE3R.mjs";import{c as P,d as te}from"./chunk-6FARZYMJ.mjs";import"./chunk-EEFUE2ES.mjs";import"./chunk-PE435FVH.mjs";import"./chunk-PWVDNN2C.mjs";import"./chunk-6VSZNZHH.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-ISSP2FZ5.mjs";import"./chunk-XU25YA46.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-IVZJSDJD.mjs";import"./chunk-VZT4E2OJ.mjs";import"./chunk-BOGNK4LV.mjs";import{m as re}from"./chunk-P55MKIZX.mjs";import"./chunk-PYRZFUVU.mjs";import"./chunk-O2PUGRNW.mjs";import"./chunk-7SDZR6SR.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YAIIRFKJ.mjs";import"./chunk-Q3DY7TO2.mjs";import"./chunk-3XG25GTF.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-WSUKC2U3.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-3SKLBRPL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-JH27IKCO.mjs";import"./chunk-SAMWHL22.mjs";import"./chunk-6KP6WETK.mjs";import"./chunk-4JKR4PTZ.mjs";import{I as ne,L as se,i as oe}from"./chunk-J24TIGSI.mjs";import"./chunk-HKUWHVI7.mjs";import"./chunk-VPDEJGPS.mjs";import"./chunk-5LFSFYFJ.mjs";import{a as Q}from"./chunk-LHU6CPGE.mjs";import{r as Y}from"./chunk-PBE44M2Y.mjs";import{f as X}from"./chunk-ZUOPC4W2.mjs";import"./chunk-JQZTMFO7.mjs";import{b as G}from"./chunk-JFNLKHY6.mjs";import"./chunk-VZVICK7Q.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-7PY3VQP3.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-HFUDCNU5.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-XZISAZA6.mjs";import{b as z,c as Z,f as j,h as ae}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-L4INJ5TZ.mjs";import"./chunk-KIMQQ6JQ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-ZUTUYBNW.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-PR74GYVI.mjs";import"./chunk-TMA34QMA.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ZQO5PDX5.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{mkdtempSync as Se,rmSync as Ie}from"node:fs";import{tmpdir as Pe}from"node:os";import{basename as Ne,join as xe}from"node:path";var _="sandforge-empty",Ce=`sandforge empty \u2014 empty objects of a sandbox, or the whole of it, without the editor:
8
8
  a dry run first, then the deletes, to the recycle bin with an undo, or for good.
9
9
 
10
10
  Usage:
@@ -70,7 +70,7 @@ Options:
70
70
  first delete, to rewind to (sandforge checkpoint);
71
71
  refused past 500,000 records or the disk's room, and
72
72
  then nothing is deleted
73
- ${le("deleted","--dry-run")} --audit <file> add the run's entry, or the undo's, to the audit trail
73
+ ${ce("deleted","--dry-run")} --audit <file> add the run's entry, or the undo's, to the audit trail
74
74
  kept in <file>: the entry the panel keeps in Reports ->
75
75
  Audit trail, counts only. Not with --dry-run,
76
76
  which adds none
@@ -124,17 +124,17 @@ Exit codes:
124
124
  3 partial: records the org refused, each said with why
125
125
  130, 143, 129 a Ctrl-C, a SIGTERM or a SIGHUP stopped it before its next
126
126
  call or job: --resume takes it up, --undo brings back what it deleted
127
- `,Fe={switches:["--org","--custom-settings","--files","--managed-packages","--unrestorable","--hard-delete","--dry-run","--yes","--json","--accept-no-undo","--accept-people-active","--checkpoint-first",...ue],values:["--target","--objects","--exclude-object","--undo","--resume","--audit"]},We=/^[A-Za-z][A-Za-z0-9_]{0,79}$/;function k(o){process.stderr.write(`${o} Run with --help.
128
- `),process.exit(2)}function Oe(o,t){let e=[];for(let n=0;n<o.length;n++)o[n]===t&&o[n+1]!==void 0&&e.push(o[n+1]);return e}function He(o){let t=o.replace(/[\\/]+$/,""),e=Me(t);return ge(e)?e:void 0}function Ge(o){let t=o.slice(2);(t.includes("--help")||t.includes("-h"))&&(process.stdout.write(qe),process.exit(0)),ee(t,Fe);let e=h=>t.includes(h),n=h=>{let p=Oe(t,h);return p.length>1&&k(`${h} is given ${p.length} times: give it once.`),p[0]},r=n("--target");r===void 0&&k("--target <alias> names the org to empty."),te.test(r)||k(`--target ${r} is not an sf CLI alias.`);let f=e("--json"),i=pe(t),l=n("--audit"),g={target:r,json:f,accord:i,...l!==void 0?{audit:l}:{},...e("--accept-people-active")?{acceptPeopleActive:!0}:{}},s=n("--undo"),d=n("--resume"),c=n("--objects"),y=Oe(t,"--exclude-object"),b=e("--org"),O=["--custom-settings","--files","--managed-packages","--unrestorable"].filter(e);if(s!==void 0||d!==void 0){let h=s!==void 0?"--undo":"--resume";s!==void 0&&d!==void 0&&k("--undo and --resume go apart."),s!==void 0&&e("--accept-people-active")&&k("--undo deletes nothing, and does not go with --accept-people-active.");let p=[...c!==void 0?["--objects"]:[],...b?["--org"]:[],...y.length>0?["--exclude-object"]:[],...O,...["--hard-delete","--accept-no-undo","--checkpoint-first","--dry-run"].filter(e)];p.length>0&&k(`${h} acts on what its run's journal holds, and does not go with ${p.join(", ")}.`);let E=s??d,I=He(E);return I===void 0&&k(`${h} ${E} names no emptying: give its id (em-...) or its journal's folder.`),e("--yes")||Ae(g,s!==void 0?"undo":"resume"),{act:s!==void 0?"undo":"resume",runId:I,...g}}if(c!==void 0&&b&&k("--objects and --org go apart: give one."),c===void 0&&!b&&k("Name the objects to empty with --objects <A,B>, or the whole org with --org."),!b){let h=[...y.length>0?["--exclude-object"]:[],...O];h.length>0&&k(`${h.join(", ")} goes with --org alone.`)}let S=c===void 0?void 0:c.split(",").map(h=>h.trim()).filter(h=>h!=="");S!==void 0&&S.length===0&&k("--objects names no object.");for(let h of[...S??[],...y])We.test(h)||k(`${h} is not an object API name.`);let A=e("--dry-run"),R=e("--yes");return A&&R&&k("--dry-run and --yes go apart: a dry run deletes nothing."),!A&&!R&&Ae(g,"empty"),A&&l!==void 0&&k("--audit records a run: a dry run adds no entry."),{act:"empty",request:b?{mode:"org",...y.length>0?{excluded:[...new Set(y)]}:{},...e("--custom-settings")?{customSettings:!0}:{},...e("--files")?{files:!0}:{},...e("--managed-packages")?{managedPackages:!0}:{},...e("--unrestorable")?{unrestorable:!0}:{}}:{mode:"objects",objects:[...new Set(S??[])]},hard:e("--hard-delete"),dryRun:A,acceptNoUndo:e("--accept-no-undo"),checkpointFirst:e("--checkpoint-first"),...g}}function Ae(o,t){let e={code:"NOT_CONFIRMED",message:t==="empty"?`${M(_)} asks no question: add --dry-run to read what it would delete, or --yes to empty once the dry run said it. Nothing was read or deleted.`:`${M(_)} asks no question: add --yes to ${t==="undo"?"undo":"take up"} the emptying. Nothing was read or written.`};process.stderr.write(`${P(e)}
127
+ `,Le={switches:["--org","--custom-settings","--files","--managed-packages","--unrestorable","--hard-delete","--dry-run","--yes","--json","--accept-no-undo","--accept-people-active","--checkpoint-first",...ie],values:["--target","--objects","--exclude-object","--undo","--resume","--audit"]},Te=/^[A-Za-z][A-Za-z0-9_]{0,79}$/;function k(o){process.stderr.write(`${o} Run with --help.
128
+ `),process.exit(2)}function ye(o,t){let e=[];for(let n=0;n<o.length;n++)o[n]===t&&o[n+1]!==void 0&&e.push(o[n+1]);return e}function _e(o){let t=o.replace(/[\\/]+$/,""),e=Ne(t);return pe(e)?e:void 0}function Ue(o){let t=o.slice(2);(t.includes("--help")||t.includes("-h"))&&(process.stdout.write(Ce),process.exit(0)),z(t,Le);let e=h=>t.includes(h),n=h=>{let p=ye(t,h);return p.length>1&&k(`${h} is given ${p.length} times: give it once.`),p[0]},r=n("--target");r===void 0&&k("--target <alias> names the org to empty."),Z.test(r)||k(`--target ${r} is not an sf CLI alias.`);let f=e("--json"),i=de(t),l=n("--audit"),g={target:r,json:f,accord:i,...l!==void 0?{audit:l}:{},...e("--accept-people-active")?{acceptPeopleActive:!0}:{}},s=n("--undo"),d=n("--resume"),c=n("--objects"),y=ye(t,"--exclude-object"),b=e("--org"),v=["--custom-settings","--files","--managed-packages","--unrestorable"].filter(e);if(s!==void 0||d!==void 0){let h=s!==void 0?"--undo":"--resume";s!==void 0&&d!==void 0&&k("--undo and --resume go apart."),s!==void 0&&e("--accept-people-active")&&k("--undo deletes nothing, and does not go with --accept-people-active.");let p=[...c!==void 0?["--objects"]:[],...b?["--org"]:[],...y.length>0?["--exclude-object"]:[],...v,...["--hard-delete","--accept-no-undo","--checkpoint-first","--dry-run"].filter(e)];p.length>0&&k(`${h} acts on what its run's journal holds, and does not go with ${p.join(", ")}.`);let E=s??d,I=_e(E);return I===void 0&&k(`${h} ${E} names no emptying: give its id (em-...) or its journal's folder.`),e("--yes")||be(g,s!==void 0?"undo":"resume"),{act:s!==void 0?"undo":"resume",runId:I,...g}}if(c!==void 0&&b&&k("--objects and --org go apart: give one."),c===void 0&&!b&&k("Name the objects to empty with --objects <A,B>, or the whole org with --org."),!b){let h=[...y.length>0?["--exclude-object"]:[],...v];h.length>0&&k(`${h.join(", ")} goes with --org alone.`)}let D=c===void 0?void 0:c.split(",").map(h=>h.trim()).filter(h=>h!=="");D!==void 0&&D.length===0&&k("--objects names no object.");for(let h of[...D??[],...y])Te.test(h)||k(`${h} is not an object API name.`);let A=e("--dry-run"),R=e("--yes");return A&&R&&k("--dry-run and --yes go apart: a dry run deletes nothing."),!A&&!R&&be(g,"empty"),A&&l!==void 0&&k("--audit records a run: a dry run adds no entry."),{act:"empty",request:b?{mode:"org",...y.length>0?{excluded:[...new Set(y)]}:{},...e("--custom-settings")?{customSettings:!0}:{},...e("--files")?{files:!0}:{},...e("--managed-packages")?{managedPackages:!0}:{},...e("--unrestorable")?{unrestorable:!0}:{}}:{mode:"objects",objects:[...new Set(D??[])]},hard:e("--hard-delete"),dryRun:A,acceptNoUndo:e("--accept-no-undo"),checkpointFirst:e("--checkpoint-first"),...g}}function be(o,t){let e={code:"NOT_CONFIRMED",message:t==="empty"?`${q(_)} asks no question: add --dry-run to read what it would delete, or --yes to empty once the dry run said it. Nothing was read or deleted.`:`${q(_)} asks no question: add --yes to ${t==="undo"?"undo":"take up"} the emptying. Nothing was read or written.`};process.stderr.write(`${P(e)}
129
129
  `),o.json&&process.stdout.write(`${JSON.stringify({tool:_,target:o.target,action:t,refused:e},null,2)}
130
- `),process.exit(1)}var u=o=>o.toLocaleString("en-US");function $(o){if(o.records===void 0)return`not counted (${o.unread??"no count"})`;if(o.atMost&&o.atLeast)return`about ${u(o.records)}`;let t=o.atMost?" at most":o.atLeast?" at least":"";return`${u(o.records)}${t}`}var Ee={configuration:"configuration: flows, orchestrations, settings, definitions",notRestorable:"cannot come back from the recycle bin (--unrestorable empties them)",excludedByUser:"left out as asked",notFound:"the org has no such object",chatter:"Chatter",history:"field history",sharing:"sharing",changeEvent:"change events",unsupportedKind:"big, external or platform event object",customSetting:"a custom setting (--custom-settings empties them)",files:"files (--files empties them)",managedPackage:"a managed package (--managed-packages empties them)",documents:"documents",heldWithFiles:"goes with the files",setup:"setup",platformCreated:"made by the platform",metadata:"metadata",notDeletable:"the user may not delete its records",notDescribed:"the org would not describe it",noRecycleBin:"its records never go to the recycle bin",notForGood:"its records are never deleted for good"},Je={activatedOrder:"activated order(s): set back to Draft first, as Salesforce deletes none activated",activatedOrderLeft:"activated order(s) left as they are: what blocks keeps too many records to tell those under them apart, so none is set back to Draft, and what each hangs from is refused",standardPriceBook:"the standard price book: kept, never deleted",directContactRelation:"direct relation(s) of a contact to its account: they go with the contact",personAccountContact:"person account contact(s): left, as each goes only with its account"};function L(o,...t){let e=t.every(n=>n!==void 0)?t.reduce((n,r)=>n+(r??0),0):void 0;return o===void 0&&e===void 0?{}:{apiRequests:{...o!==void 0?{estimate:o}:{},...e!==void 0?{sent:e}:{}}}}var Ve={NO_UNDO:"--accept-no-undo",PEOPLE_ACTIVE:"--accept-people-active"},Xe=new Set(["TOO_MANY_RECORDS","NOTHING_HELD"]);function z(o,t){if(Xe.has(o.code)||t!==void 0&&t.code===o.code&&t.message===o.message)return{...o,message:xe(o.message)};let n=Ve[o.code];return n&&!o.message.includes(n)?{...o,message:`${o.message} (${n} accepts it)`}:o}function xe(o){let t=o.replace(/\s*No record was read( or written)?\.$/,"").replace(/: pick fewer objects\.$/,".").replace(/\.$/,"");return`The checkpoint first was refused: ${t.charAt(0).toLowerCase()}${t.slice(1)}. Empty fewer objects (--objects, or --exclude-object with --org), or leave out --checkpoint-first to empty without one.`}function Ce(o){return o.reason==="notRestorable"?`${o.objectApiName} sent by its own pass: Salesforce does not bring them back`:`${o.objectApiName} before ${o.parent??"its parent"}${o.field!==void 0?` (${o.field})`:""}: they go before a record they name`}function ze(o,t){let{preview:e}=t,n=[],r=e.mode==="org"?"every object people work in":`${e.passes.length} object(s) picked`;n.push(`${M(_)} target=${o} ${r} ${e.deleteMode==="hard"?"FOR GOOD":"to the recycle bin"}`),n.push(`read at ${t.readAt} on the org's clock: records made after it are left`),n.push(`${e.total.atLeast?"at least ":""}${u(e.total.records)} record(s) of ${u(e.total.objects)} object(s)`+(e.total.uncounted.length>0?`, and ${e.total.uncounted.join(", ")} not counted`:""));let f=e.passes.filter(s=>s.records.records===void 0||s.records.records>0);if(e.passes.length>0){n.push("","Emptied, in the order the run takes them:");for(let d of f){let c=d.sent.records!==d.records.records?`, ${$(d.sent)} sent by its own pass`:"",y=d.archived?.records?`, ${$(d.archived)} archived`:"",b=d.kept?.records?`, ${$(d.kept)} kept`:"",O=d.blocked?`, ${$(d.blocked)} kept by what blocks them, which stay`:"";n.push(` ${d.objectApiName.padEnd(40)} ${$(d.records)}${c}${y}${b}${O}`)}let s=e.passes.length-f.length;s>0&&n.push(` and ${u(s)} object(s) holding no record (--json lists them)`)}if(e.along.length>0){n.push("","Going along, deleted by the org with a record emptied:");for(let s of e.along){let d=[...new Set(s.via.map(b=>`${b.field} \u2192 ${b.parent}`))].join(", "),c=s.blocking?`; ${$(s.blocking)} more block the delete and stay`:"",y=s.routesNotRead?.length?`; routes through ${s.routesNotRead.join(", ")} not read, there may be more`:"";n.push(` ${s.objectApiName.padEnd(40)} ${$(s.records)}${d?` (${d})`:""}${c}${y}`)}}let i=e.refusals.filter(s=>s.records.records!==0);if(i.length>0){n.push("","Likely refused by the org, or done first so that it is not:");for(let s of i)n.push(` ${s.objectApiName}: ${$(s.records)} \u2014 ${Je[s.code]}`)}let l=e.blockers.filter(s=>s.records.records!==0);if(l.length>0){n.push("","Blocking: records of objects not emptied whose lookup refuses the delete; they stay, and so do the records they name, with what hangs from those:");for(let s of l){let d=s.keeps&&s.keeps.records!==0?`, keeping ${$(s.keeps)} ${s.parent}`:"";n.push(` ${s.objectApiName}.${s.field} \u2192 ${s.parent}: ${$(s.records)}${d}`)}}let g=e.undoLost.filter(s=>s.records.records!==0);if(e.deleteMode==="recycle"&&g.length>0){n.push("","Undo cannot bring back:");for(let s of g)n.push(` ${Ce(s)}: ${$(s.records)}`)}if(e.leftOut.length>0){let s=c=>e.mode==="objects"||c==="excludedByUser"||c==="notFound",d=new Map;n.push("",`Left out: ${u(e.leftOut.length)} object(s)`);for(let c of e.leftOut)s(c.reason)?n.push(` ${c.objectApiName}: ${Ee[c.reason]}`):d.set(c.reason,(d.get(c.reason)??0)+1);for(let[c,y]of d)n.push(` ${u(y)} object(s): ${Ee[c]}`)}if(n.push("",...Ye(t)),n.push(...Ke(t)),t.checkpoint){let{estimate:s,objects:d,refusal:c}=t.checkpoint;n.push(c?`checkpoint first: refused (${c.code}): ${xe(c.message)}`:`checkpoint first: ${u(d.length)} object(s), about ${u(s.records)} record(s) and ${u(s.apiRequests)} API request(s), taken before the first delete`)}return t.openRun&&n.push(`the last emptying of ${o}, ${t.openRun.runId}, stopped part way: --resume ${t.openRun.runId} takes it up, --undo ${t.openRun.runId} brings back what it deleted`),t.automation.lines.length>0&&n.push("",...t.automation.lines),n}function Ye(o){let{cost:t}=o.preview,e=r=>r.verdict==="unread"?` (what the org has left today could not be read: ${r.unread})`:` of ${u(r.remaining)} left today${r.verdict==="exceeds"?": too many":""}`,n=[`about ${u(t.api.estimate)} API request(s), the dry run's reads and the run's together${e(t.api)}, ${u(t.bulkBatches)} Bulk API batch(es)`+(t.batches?e(t.batches):"")+`, about ${u(Math.ceil(t.seconds))} s`];return o.preview.deleteMode==="recycle"?n.push(`${u(t.binRecords)} record(s) to the recycle bin`+(t.bin?.past?`: past the ${u(t.bin.documentedCapacity)} the bin is documented to hold, it empties its oldest first, colleagues\u2019 deletions among them, and Undo may not bring all back`:"")):n.push("deleted for good, with what goes along: no undo brings anything back"),n}function Ke(o){let t=[];if(o.access.kind==="org")t.push("the user sees every record: View All Data and Modify All Data");else{t.push("the user holds "+(o.access.viewAllData?"View All Data":"no View All Data")+" and "+(o.access.modifyAllData?"Modify All Data":"no Modify All Data")+": the records of an object it is not proven to see whole are neither counted nor deleted, but those a deleted parent takes along are");for(let e of o.access.unseen)t.push(` not proven to see ${e.objectApiName} whole: ${e.reason}`)}if(o.preview.deleteMode==="hard"&&t.push(o.hardDelete.permitted?"the user holds Bulk API Hard Delete":`the user does not hold Bulk API Hard Delete${o.hardDelete.unread?` (${o.hardDelete.unread})`:""}`),o.peopleActive.people>0){t.push(`${o.peopleActive.atLeast?"at least ":""}${u(o.peopleActive.people)} other person(s) changed records of these objects in the hour before the read: their work goes with the emptying, which --accept-people-active accepts`);for(let e of o.peopleActive.who??[])t.push(` user ${e.userId}: ${u(e.records)} record(s), the last changed at ${e.lastChangedAt||"an unread time"}`)}return t}function ve(o,t){if(t.runId==="")return t.notes;let e=[`${t.resumed?"took up":"emptied"} ${o}: ${t.runId}, ${t.status}`+(t.hard?", for good":"")],n=t.passes.filter(i=>i.deleted+i.gone+i.refused+(i.notReached??0)+(i.madeSince??0)>0||i.reasons.length>0);for(let i of n){let l=[`deleted ${u(i.deleted)}`,...i.gone>0?[`gone before ${u(i.gone)}`]:[],...i.refused>0?[`refused ${u(i.refused)}`]:[],...(i.notReached??0)>0?[`not reached ${u(i.notReached??0)}`]:[],...(i.madeSince??0)>0?[`made since and left ${u(i.madeSince??0)}`]:[]];e.push(` ${i.objectApiName.padEnd(40)} ${l.join(", ")}`);for(let g of i.reasons)e.push(` ${g}`)}let r=t.passes.length-n.length;r>0&&e.push(` and ${u(r)} object(s) whose pass found nothing to delete (--json lists them)`);let{totals:f}=t;e.push(`deleted ${u(f.deleted)} record(s), ${u(f.gone)} gone before their delete, ${u(f.refused)} refused, ${u(f.notReached)} not reached`),t.hardRefused&&e.push(`the org refused to delete for good: ${t.hardRefused}`),t.checkpoint?.state==="taken"?e.push(`checkpoint taken first: ${t.checkpoint.name} (${t.checkpoint.checkpointId}); ${B("checkpoint")} rewind --org ${o} --checkpoint ${t.checkpoint.checkpointId} returns the objects it holds to it`):t.checkpoint?.state==="deleted"&&e.push("the checkpoint taken first was deleted again: the run deleted nothing");for(let i of t.notes)e.push(i);return t.status==="cancelled"||t.status==="failure"?e.push(`${B("empty")} --target ${o} --resume ${t.runId} --yes takes it up; --undo ${t.runId} --yes brings back what it deleted`):t.undo.offered?e.push(`${B("empty")} --target ${o} --undo ${t.runId} --yes brings them back while the recycle bin holds them, as long as no other emptying of the org follows`):t.undo.why==="hard"&&e.push("no undo: it deleted for good"),e}function Ze(o,t){let e=[`undid the emptying ${t.runId} of ${o}: ${t.status}`];for(let r of t.objects){let f=[`brought back ${u(r.undeleted)}`,...r.alreadyBack>0?[`already back ${u(r.alreadyBack)}`]:[],...r.notInBin>0?[`no longer in the recycle bin ${u(r.notInBin)}`]:[],...r.othersDeletion>0?[`deleted by another user, Modify All Data needed ${u(r.othersDeletion)}`]:[],...r.refused>0?[`refused ${u(r.refused)}`]:[],...(r.notReached??0)>0?[`not reached ${u(r.notReached??0)}`]:[]];e.push(` ${r.objectApiName.padEnd(40)} ${f.join(", ")}`);for(let i of r.reasons)e.push(` ${i}`)}let n=t.previewedLost??[];if(n.length>0){e.push("not brought back, as the preview said Undo could not:");for(let r of n)e.push(` ${Ce(r)}: ${$(r.records)}`)}for(let r of t.notes)e.push(r);return e}function V(o,t){return o==="success"?0:o==="partial"?3:o==="cancelled"?t!==void 0?G(t):1:1}var Qe=60*6e4,Se=720*6e4,De="dataops",v=class extends Error{constructor(e,n=1,r=[]){super(e.message);this.refusal=e;this.code=n;this.also=r;this.name="Stop"}refusal;code;also};function T(o){return o.message?.payload??{}}function X(o,t,e){if(o.outcome==="unanswered")return new v({code:"UNANSWERED",message:`${t}: no answer came in time.`});let n=T(o),r=typeof n.message=="string"?n.message:JSON.stringify(n),f=typeof n.code=="string"?n.code:o.outcome.toUpperCase(),i=Array.isArray(n.alsoRefused)?n.alsoRefused.flatMap(l=>{let g=l??{};return typeof g.code=="string"&&typeof g.message=="string"?[{code:g.code,message:g.message}]:[]}):[];return e!==void 0&&f==="CANCELLED"?new v({code:f,message:r},G(e)):new v(z({code:f,message:r}),1,i.map(l=>z(l)))}async function je(o,t,e){let n,r=o.onEvent((i,l,g)=>{n!==void 0&&l==="started"&&g.module===De&&o.abort(i)}),f=ne(i=>{n=i,process.stderr.write(`
130
+ `),process.exit(1)}var u=o=>o.toLocaleString("en-US");function $(o){if(o.records===void 0)return`not counted (${o.unread??"no count"})`;if(o.atMost&&o.atLeast)return`about ${u(o.records)}`;let t=o.atMost?" at most":o.atLeast?" at least":"";return`${u(o.records)}${t}`}var we={configuration:"configuration: flows, orchestrations, settings, definitions",notRestorable:"cannot come back from the recycle bin (--unrestorable empties them)",excludedByUser:"left out as asked",notFound:"the org has no such object",chatter:"Chatter",history:"field history",sharing:"sharing",changeEvent:"change events",unsupportedKind:"big, external or platform event object",customSetting:"a custom setting (--custom-settings empties them)",files:"files (--files empties them)",managedPackage:"a managed package (--managed-packages empties them)",documents:"documents",heldWithFiles:"goes with the files",setup:"setup",platformCreated:"made by the platform",metadata:"metadata",notDeletable:"the user may not delete its records",notDescribed:"the org would not describe it",noRecycleBin:"its records never go to the recycle bin",notForGood:"its records are never deleted for good"},qe={activatedOrder:"activated order(s): set back to Draft first, as Salesforce deletes none activated",activatedOrderLeft:"activated order(s) left as they are: what blocks keeps too many records to tell those under them apart, so none is set back to Draft, and what each hangs from is refused",standardPriceBook:"the standard price book: kept, never deleted",directContactRelation:"direct relation(s) of a contact to its account: they go with the contact",personAccountContact:"person account contact(s): left, as each goes only with its account"};function L(o,...t){let e=t.every(n=>n!==void 0)?t.reduce((n,r)=>n+(r??0),0):void 0;return o===void 0&&e===void 0?{}:{apiRequests:{...o!==void 0?{estimate:o}:{},...e!==void 0?{sent:e}:{}}}}var Be={NO_UNDO:"--accept-no-undo",PEOPLE_ACTIVE:"--accept-people-active"},Me=new Set(["TOO_MANY_RECORDS","NOTHING_HELD"]);function K(o,t){if(Me.has(o.code)||t!==void 0&&t.code===o.code&&t.message===o.message)return{...o,message:Oe(o.message)};let n=Be[o.code];return n&&!o.message.includes(n)?{...o,message:`${o.message} (${n} accepts it)`}:o}function Oe(o){let t=o.replace(/\s*No record was read( or written)?\.$/,"").replace(/: pick fewer objects\.$/,".").replace(/\.$/,"");return`The checkpoint first was refused: ${t.charAt(0).toLowerCase()}${t.slice(1)}. Empty fewer objects (--objects, or --exclude-object with --org), or leave out --checkpoint-first to empty without one.`}function De(o){return o.reason==="notRestorable"?`${o.objectApiName} sent by its own pass: Salesforce does not bring them back`:`${o.objectApiName} before ${o.parent??"its parent"}${o.field!==void 0?` (${o.field})`:""}: they go before a record they name`}function Fe(o,t){let{preview:e}=t,n=[],r=e.mode==="org"?"every object people work in":`${e.passes.length} object(s) picked`;n.push(`${q(_)} target=${o} ${r} ${e.deleteMode==="hard"?"FOR GOOD":"to the recycle bin"}`),n.push(`read at ${t.readAt} on the org's clock: records made after it are left`),n.push(`${e.total.atLeast?"at least ":""}${u(e.total.records)} record(s) of ${u(e.total.objects)} object(s)`+(e.total.uncounted.length>0?`, and ${e.total.uncounted.join(", ")} not counted`:""));let f=e.passes.filter(s=>s.records.records===void 0||s.records.records>0);if(e.passes.length>0){n.push("","Emptied, in the order the run takes them:");for(let d of f){let c=d.sent.records!==d.records.records?`, ${$(d.sent)} sent by its own pass`:"",y=d.archived?.records?`, ${$(d.archived)} archived`:"",b=d.kept?.records?`, ${$(d.kept)} kept`:"",v=d.blocked?`, ${$(d.blocked)} kept by what blocks them, which stay`:"";n.push(` ${d.objectApiName.padEnd(40)} ${$(d.records)}${c}${y}${b}${v}`)}let s=e.passes.length-f.length;s>0&&n.push(` and ${u(s)} object(s) holding no record (--json lists them)`)}if(e.along.length>0){n.push("","Going along, deleted by the org with a record emptied:");for(let s of e.along){let d=[...new Set(s.via.map(b=>`${b.field} \u2192 ${b.parent}`))].join(", "),c=s.blocking?`; ${$(s.blocking)} more block the delete and stay`:"",y=s.routesNotRead?.length?`; routes through ${s.routesNotRead.join(", ")} not read, there may be more`:"";n.push(` ${s.objectApiName.padEnd(40)} ${$(s.records)}${d?` (${d})`:""}${c}${y}`)}}let i=e.refusals.filter(s=>s.records.records!==0);if(i.length>0){n.push("","Likely refused by the org, or done first so that it is not:");for(let s of i)n.push(` ${s.objectApiName}: ${$(s.records)} \u2014 ${qe[s.code]}`)}let l=e.blockers.filter(s=>s.records.records!==0);if(l.length>0){n.push("","Blocking: records of objects not emptied whose lookup refuses the delete; they stay, and so do the records they name, with what hangs from those:");for(let s of l){let d=s.keeps&&s.keeps.records!==0?`, keeping ${$(s.keeps)} ${s.parent}`:"";n.push(` ${s.objectApiName}.${s.field} \u2192 ${s.parent}: ${$(s.records)}${d}`)}}let g=e.undoLost.filter(s=>s.records.records!==0);if(e.deleteMode==="recycle"&&g.length>0){n.push("","Undo cannot bring back:");for(let s of g)n.push(` ${De(s)}: ${$(s.records)}`)}if(e.leftOut.length>0){let s=c=>e.mode==="objects"||c==="excludedByUser"||c==="notFound",d=new Map;n.push("",`Left out: ${u(e.leftOut.length)} object(s)`);for(let c of e.leftOut)s(c.reason)?n.push(` ${c.objectApiName}: ${we[c.reason]}`):d.set(c.reason,(d.get(c.reason)??0)+1);for(let[c,y]of d)n.push(` ${u(y)} object(s): ${we[c]}`)}if(n.push("",...We(t)),n.push(...He(t)),t.checkpoint){let{estimate:s,objects:d,refusal:c}=t.checkpoint;n.push(c?`checkpoint first: refused (${c.code}): ${Oe(c.message)}`:`checkpoint first: ${u(d.length)} object(s), about ${u(s.records)} record(s) and ${u(s.apiRequests)} API request(s), taken before the first delete`)}return t.openRun&&n.push(`the last emptying of ${o}, ${t.openRun.runId}, stopped part way: --resume ${t.openRun.runId} takes it up, --undo ${t.openRun.runId} brings back what it deleted`),t.automation.lines.length>0&&n.push("",...t.automation.lines),n}function We(o){let{cost:t}=o.preview,e=r=>r.verdict==="unread"?` (what the org has left today could not be read: ${r.unread})`:` of ${u(r.remaining)} left today${r.verdict==="exceeds"?": too many":""}`,n=[`about ${u(t.api.estimate)} API request(s), the dry run's reads and the run's together${e(t.api)}, ${u(t.bulkBatches)} Bulk API batch(es)`+(t.batches?e(t.batches):"")+`, about ${u(Math.ceil(t.seconds))} s`];return o.preview.deleteMode==="recycle"?n.push(`${u(t.binRecords)} record(s) to the recycle bin`+(t.bin?.past?`: past the ${u(t.bin.documentedCapacity)} the bin is documented to hold, it empties its oldest first, colleagues\u2019 deletions among them, and Undo may not bring all back`:"")):n.push("deleted for good, with what goes along: no undo brings anything back"),n}function He(o){let t=[];if(o.access.kind==="org")t.push("the user sees every record: View All Data and Modify All Data");else{t.push("the user holds "+(o.access.viewAllData?"View All Data":"no View All Data")+" and "+(o.access.modifyAllData?"Modify All Data":"no Modify All Data")+": the records of an object it is not proven to see whole are neither counted nor deleted, but those a deleted parent takes along are");for(let e of o.access.unseen)t.push(` not proven to see ${e.objectApiName} whole: ${e.reason}`)}if(o.preview.deleteMode==="hard"&&t.push(o.hardDelete.permitted?"the user holds Bulk API Hard Delete":`the user does not hold Bulk API Hard Delete${o.hardDelete.unread?` (${o.hardDelete.unread})`:""}`),o.peopleActive.people>0){t.push(`${o.peopleActive.atLeast?"at least ":""}${u(o.peopleActive.people)} other person(s) changed records of these objects in the hour before the read: their work goes with the emptying, which --accept-people-active accepts`);for(let e of o.peopleActive.who??[])t.push(` user ${e.userId}: ${u(e.records)} record(s), the last changed at ${e.lastChangedAt||"an unread time"}`)}return t}function ke(o,t){if(t.runId==="")return t.notes;let e=[`${t.resumed?"took up":"emptied"} ${o}: ${t.runId}, ${t.status}`+(t.hard?", for good":"")],n=t.passes.filter(i=>i.deleted+i.gone+i.refused+(i.notReached??0)+(i.madeSince??0)>0||i.reasons.length>0);for(let i of n){let l=[`deleted ${u(i.deleted)}`,...i.gone>0?[`gone before ${u(i.gone)}`]:[],...i.refused>0?[`refused ${u(i.refused)}`]:[],...(i.notReached??0)>0?[`not reached ${u(i.notReached??0)}`]:[],...(i.madeSince??0)>0?[`made since and left ${u(i.madeSince??0)}`]:[]];e.push(` ${i.objectApiName.padEnd(40)} ${l.join(", ")}`);for(let g of i.reasons)e.push(` ${g}`)}let r=t.passes.length-n.length;r>0&&e.push(` and ${u(r)} object(s) whose pass found nothing to delete (--json lists them)`);let{totals:f}=t;e.push(`deleted ${u(f.deleted)} record(s), ${u(f.gone)} gone before their delete, ${u(f.refused)} refused, ${u(f.notReached)} not reached`),t.hardRefused&&e.push(`the org refused to delete for good: ${t.hardRefused}`),t.checkpoint?.state==="taken"?e.push(`checkpoint taken first: ${t.checkpoint.name} (${t.checkpoint.checkpointId}); ${U("checkpoint")} rewind --org ${o} --checkpoint ${t.checkpoint.checkpointId} returns the objects it holds to it`):t.checkpoint?.state==="deleted"&&e.push("the checkpoint taken first was deleted again: the run deleted nothing");for(let i of t.notes)e.push(i);return t.status==="cancelled"||t.status==="failure"?e.push(`${U("empty")} --target ${o} --resume ${t.runId} --yes takes it up; --undo ${t.runId} --yes brings back what it deleted`):t.undo.offered?e.push(`${U("empty")} --target ${o} --undo ${t.runId} --yes brings them back while the recycle bin holds them, as long as no other emptying of the org follows`):t.undo.why==="hard"&&e.push("no undo: it deleted for good"),e}function Ge(o,t){let e=[`undid the emptying ${t.runId} of ${o}: ${t.status}`];for(let r of t.objects){let f=[`brought back ${u(r.undeleted)}`,...r.alreadyBack>0?[`already back ${u(r.alreadyBack)}`]:[],...r.notInBin>0?[`no longer in the recycle bin ${u(r.notInBin)}`]:[],...r.othersDeletion>0?[`deleted by another user, Modify All Data needed ${u(r.othersDeletion)}`]:[],...r.refused>0?[`refused ${u(r.refused)}`]:[],...(r.notReached??0)>0?[`not reached ${u(r.notReached??0)}`]:[]];e.push(` ${r.objectApiName.padEnd(40)} ${f.join(", ")}`);for(let i of r.reasons)e.push(` ${i}`)}let n=t.previewedLost??[];if(n.length>0){e.push("not brought back, as the preview said Undo could not:");for(let r of n)e.push(` ${De(r)}: ${$(r.records)}`)}for(let r of t.notes)e.push(r);return e}function J(o,t){return o==="success"?0:o==="partial"?3:o==="cancelled"?t!==void 0?H(t):1:1}var Je=60*6e4,$e=720*6e4,Re="dataops",O=class extends Error{constructor(e,n=1,r=[]){super(e.message);this.refusal=e;this.code=n;this.also=r;this.name="Stop"}refusal;code;also};function T(o){return o.message?.payload??{}}function V(o,t,e){if(o.outcome==="unanswered")return new O({code:"UNANSWERED",message:`${t}: no answer came in time.`});let n=T(o),r=typeof n.message=="string"?n.message:JSON.stringify(n),f=typeof n.code=="string"?n.code:o.outcome.toUpperCase(),i=Array.isArray(n.alsoRefused)?n.alsoRefused.flatMap(l=>{let g=l??{};return typeof g.code=="string"&&typeof g.message=="string"?[{code:g.code,message:g.message}]:[]}):[];return e!==void 0&&f==="CANCELLED"?new O({code:f,message:r},H(e)):new O(K({code:f,message:r}),1,i.map(l=>K(l)))}async function ve(o,t,e){let n,r=o.onEvent((i,l,g)=>{n!==void 0&&l==="started"&&g.module===Re&&o.abort(i)}),f=ee(i=>{n=i,process.stderr.write(`
131
131
  interrupted: ${t} (Ctrl-C again ends it at once)
132
- `);for(let l of o.getRunning())l.module===De&&o.abort(l.operationId)});try{let i=await e();return n!==void 0?{answer:i,stoppedBy:n}:{answer:i}}finally{f(),r()}}async function et(o,t,e){if(o.act==="empty")return o.request.mode==="org";if(o.act!=="resume")return!1;try{return(await t.open(e.orgId,o.runId)).head.mode==="org"}catch{return!1}}async function tt(o=process.argv,t={}){let e=Ge(o),n=d=>{process[e.json?"stderr":"stdout"].write(`${d}
132
+ `);for(let l of o.getRunning())l.module===Re&&o.abort(l.operationId)});try{let i=await e();return n!==void 0?{answer:i,stoppedBy:n}:{answer:i}}finally{f(),r()}}async function Ve(o,t,e){if(o.act==="empty")return o.request.mode==="org";if(o.act!=="resume")return!1;try{return(await t.open(e.orgId,o.runId)).head.mode==="org"}catch{return!1}}async function Ke(o=process.argv,t={}){let e=Ue(o),n=d=>{process[e.json?"stderr":"stdout"].write(`${d}
133
133
  `)},r=d=>{e.json&&process.stdout.write(`${JSON.stringify({tool:_,target:e.target,action:e.act,...d},null,2)}
134
- `)},f=Te(Ue(Be(),"sandforge-empty-")),i=new we,l,g,s;try{let d=t.checkpointRoot??re(),c=ie({root:d,...t.locksDir!==void 0?{locksDir:t.locksDir}:{}});if("refusal"in c)throw new v({code:"STORE_REFUSED",message:`The org's lock and a checkpoint taken first cannot be kept in ${c.refusal.path}: ${ae(c.refusal,d,"SANDFORGE_JOURNAL_DIR=<folder>")} Nothing was read or deleted.`});let y=c.store,b=new ye(t.journalRoot??me()),O=(t.createHost??be)({storeDir:f,log:a=>{a.startsWith("[WARN] ")&&n(`warning: ${a.slice(7)}`)},compose:a=>{l=a.configStore,g=a,a.handlers.setCheckpointStore(y),a.handlers.setEmptyStores({journals:b,lock:m=>y.lock(m,"empty")}),a.handlers.setInfraServices({backgroundRegistry:i,productionGuard:he(n,e.target)})},onPost:a=>{if(a.type!=="operation:progress")return;let m=a.payload?.currentStep;typeof m!="string"||m===s||(s=m,n(` ${m}`))}}),S=()=>0,A=()=>(O.connectingRequests?.()??0)+S(),R;try{R=await O.connect(e.target)}catch(a){throw new v({code:"NOT_CONNECTED",message:a instanceof oe?`${a.reason} Nothing was read or deleted.`:`${e.target} could not be reached: ${a instanceof Error?a.message:String(a)}. Nothing was read or deleted.`})}let x={...e.accord};if(await et(e,b,R)){let a=g,m=await Re({target:e.target,orgType:R.orgType,limits:async()=>{if(!a)throw new Error("the host built no registry");let w=await Q(R.id,a.orgRegistry,a.orgManager);return S=Z(w),w.request({method:"GET",url:"/limits"})}});if(m)throw new v(m)}if(e.act!=="empty"){let a=e.act==="undo";n(a?`undo the emptying ${e.runId} of ${e.target}: bring back what it deleted, parents first`:`take up the emptying ${e.runId} of ${e.target} where it stopped`);let m=await je(i,a?"the undo stops before its next call to the org: --undo again takes up what it left":"the run stops before its next call or job, and keeps its journal: --resume takes it up",()=>O.request({type:a?"dataops:empty:undo":"dataops:empty:run",payload:a?{orgId:R.id,runId:e.runId,...x}:{orgId:R.id,resumeRunId:e.runId,...x,...e.acceptPeopleActive?{acceptPeopleActive:!0}:{}},timeoutMs:Se}));if(Ie(l,e.audit),m.answer.outcome!=="answered")throw X(m.answer,a?"The undo":"The run",m.stoppedBy);if(a){let w=T(m.answer).result;for(let W of Ze(e.target,w))n(W);r({runId:e.runId,result:w,...L(w.requestsEstimate,A(),w.requestsSent)}),D(V(w.status,m.stoppedBy))}else{let w=T(m.answer).result;for(let W of ve(e.target,w))n(W);r({runId:e.runId,result:w,...L(w.requestsEstimate,A(),w.requestsSent)}),D(V(w.status,m.stoppedBy))}return}let h=await O.request({type:"dataops:empty:preview",payload:{orgId:R.id,request:e.request,deleteMode:e.hard?"hard":"recycle",...e.acceptNoUndo?{acceptNoUndo:!0}:{},...e.acceptPeopleActive?{acceptPeopleActive:!0}:{},...e.checkpointFirst?{checkpointFirst:!0}:{},...x},timeoutMs:Qe});if(h.outcome!=="answered")throw X(h,"The dry run");let p=T(h);for(let a of ze(e.target,p))n(a);let E=p.refusals.map(a=>z(a,p.checkpoint?.refusal)),I={dryRun:e.dryRun,previewId:p.previewId,readAt:p.readAt,tier:p.tier,preview:p.preview,access:p.access,hardDelete:p.hardDelete,peopleActive:p.peopleActive,...p.checkpoint?{checkpoint:p.checkpoint}:{},...p.openRun?{openRun:p.openRun}:{},automation:p.automation},U=p.preview.cost.api.estimate;if(e.dryRun){for(let a of E)n(` ${se(a)}`);E.length===0&&n(" a real run would not be refused"),r({...I,...L(U,A(),p.requestsSent),...E.length>0?{wouldBeRefused:E.map(a=>a.message),wouldBeRefusedCodes:E.map(a=>a.code)}:{}}),D(E.length>0?1:0);return}let[q,...F]=E;if(q){process.stderr.write(`${P(q)}
134
+ `)},f=Se(xe(Pe(),"sandforge-empty-")),i=new me,l,g,s;try{let d=t.checkpointRoot??oe(),c=se({root:d,...t.locksDir!==void 0?{locksDir:t.locksDir}:{}});if("refusal"in c)throw new O({code:"STORE_REFUSED",message:`The org's lock and a checkpoint taken first cannot be kept in ${c.refusal.path}: ${ne(c.refusal,d,"SANDFORGE_JOURNAL_DIR=<folder>")} Nothing was read or deleted.`});let y=c.store,b=new he(t.journalRoot??le()),v=(t.createHost??ge)({storeDir:f,log:a=>{a.startsWith("[WARN] ")&&n(`warning: ${a.slice(7)}`)},compose:a=>{l=a.configStore,g=a,a.handlers.setCheckpointStore(y),a.handlers.setEmptyStores({journals:b,lock:m=>y.lock(m,"empty")}),a.handlers.setInfraServices({backgroundRegistry:i,productionGuard:ue(n,e.target)})},onPost:a=>{if(a.type!=="operation:progress")return;let m=a.payload?.currentStep;typeof m!="string"||m===s||(s=m,n(` ${m}`))}}),D=()=>0,A=()=>(v.connectingRequests?.()??0)+D(),R;try{R=await v.connect(e.target)}catch(a){throw new O({code:"NOT_CONNECTED",message:a instanceof Q?`${a.reason} Nothing was read or deleted.`:`${e.target} could not be reached: ${a instanceof Error?a.message:String(a)}. Nothing was read or deleted.`})}let N={...e.accord};if(await Ve(e,b,R)){let a=g,m=await fe({target:e.target,orgType:R.orgType,limits:async()=>{if(!a)throw new Error("the host built no registry");let w=await Y(R.id,a.orgRegistry,a.orgManager);return D=X(w),w.request({method:"GET",url:"/limits"})}});if(m)throw new O(m)}if(e.act!=="empty"){let a=e.act==="undo";n(a?`undo the emptying ${e.runId} of ${e.target}: bring back what it deleted, parents first`:`take up the emptying ${e.runId} of ${e.target} where it stopped`);let m=await ve(i,a?"the undo stops before its next call to the org: --undo again takes up what it left":"the run stops before its next call or job, and keeps its journal: --resume takes it up",()=>v.request({type:a?"dataops:empty:undo":"dataops:empty:run",payload:a?{orgId:R.id,runId:e.runId,...N}:{orgId:R.id,resumeRunId:e.runId,...N,...e.acceptPeopleActive?{acceptPeopleActive:!0}:{}},timeoutMs:$e}));if(Ae(l,e.audit),m.answer.outcome!=="answered")throw V(m.answer,a?"The undo":"The run",m.stoppedBy);if(a){let w=T(m.answer).result;for(let W of Ge(e.target,w))n(W);r({runId:e.runId,result:w,...L(w.requestsEstimate,A(),w.requestsSent)}),j(J(w.status,m.stoppedBy))}else{let w=T(m.answer).result;for(let W of ke(e.target,w))n(W);r({runId:e.runId,result:w,...L(w.requestsEstimate,A(),w.requestsSent)}),j(J(w.status,m.stoppedBy))}return}let h=await v.request({type:"dataops:empty:preview",payload:{orgId:R.id,request:e.request,deleteMode:e.hard?"hard":"recycle",...e.acceptNoUndo?{acceptNoUndo:!0}:{},...e.acceptPeopleActive?{acceptPeopleActive:!0}:{},...e.checkpointFirst?{checkpointFirst:!0}:{},...N},timeoutMs:Je});if(h.outcome!=="answered")throw V(h,"The dry run");let p=T(h);for(let a of Fe(e.target,p))n(a);let E=p.refusals.map(a=>K(a,p.checkpoint?.refusal)),I={dryRun:e.dryRun,previewId:p.previewId,readAt:p.readAt,tier:p.tier,preview:p.preview,access:p.access,hardDelete:p.hardDelete,peopleActive:p.peopleActive,...p.checkpoint?{checkpoint:p.checkpoint}:{},...p.openRun?{openRun:p.openRun}:{},automation:p.automation},B=p.preview.cost.api.estimate;if(e.dryRun){for(let a of E)n(` ${te(a)}`);E.length===0&&n(" a real run would not be refused"),r({...I,...L(B,A(),p.requestsSent),...E.length>0?{wouldBeRefused:E.map(a=>a.message),wouldBeRefusedCodes:E.map(a=>a.code)}:{}}),j(E.length>0?1:0);return}let[M,...F]=E;if(M){process.stderr.write(`${P(M)}
135
135
  `);for(let a of F)process.stderr.write(`${P(a)}
136
- `);r({...I,...L(U,A(),p.requestsSent),refused:q,...F.length>0?{alsoRefused:F}:{}}),D(1);return}let C=await je(i,"the run stops before its next call or job, and keeps its journal: --resume takes it up, --undo brings back what it deleted",()=>O.request({type:"dataops:empty:run",payload:{orgId:R.id,previewId:p.previewId,...e.acceptNoUndo?{acceptNoUndo:!0}:{},...e.acceptPeopleActive?{acceptPeopleActive:!0}:{},...e.checkpointFirst?{checkpointFirst:!0}:{},...x},timeoutMs:Se}));if(Ie(l,e.audit),C.answer.outcome!=="answered")throw X(C.answer,"The run",C.stoppedBy);let N=T(C.answer).result;for(let a of ve(e.target,N))n(a);N.runId!==""&&n(`journal: ${b.root}`),r({...I,...L(U,A(),p.requestsSent,N.requestsSent),result:N}),D(V(N.status,C.stoppedBy))}catch(d){let c=d instanceof v?d:new v({code:"FAILED",message:d instanceof Error?d.message:String(d)});process.stderr.write(`${P(c.refusal)}
136
+ `);r({...I,...L(B,A(),p.requestsSent),refused:M,...F.length>0?{alsoRefused:F}:{}}),j(1);return}let x=await ve(i,"the run stops before its next call or job, and keeps its journal: --resume takes it up, --undo brings back what it deleted",()=>v.request({type:"dataops:empty:run",payload:{orgId:R.id,previewId:p.previewId,...e.acceptNoUndo?{acceptNoUndo:!0}:{},...e.acceptPeopleActive?{acceptPeopleActive:!0}:{},...e.checkpointFirst?{checkpointFirst:!0}:{},...N},timeoutMs:$e}));if(Ae(l,e.audit),x.answer.outcome!=="answered")throw V(x.answer,"The run",x.stoppedBy);let C=T(x.answer).result;for(let a of ke(e.target,C))n(a);C.runId!==""&&n(`journal: ${b.root}`),r({...I,...L(B,A(),p.requestsSent,C.requestsSent),result:C}),j(J(C.status,x.stoppedBy))}catch(d){let c=d instanceof O?d:new O({code:"FAILED",message:d instanceof Error?d.message:String(d)});process.stderr.write(`${P(c.refusal)}
137
137
  `);for(let y of c.also)process.stderr.write(`${P(y)}
138
- `);r({refused:c.refusal,...c.also.length>0?{alsoRefused:[...c.also]}:{}}),D(c.code)}finally{i.dispose(),_e(f,{recursive:!0,force:!0})}}function Ie(o,t){if(!(t===void 0||o===void 0))try{let e=new J(de(t)),n=new J(o).list({limit:1e3}).entries;for(let r of[...n].reverse())e.append(r)}catch(e){process.stderr.write(`The entry could not be added to the audit trail in ${t} (${e instanceof Error?e.message:String(e)}).
139
- `)}}process.argv[1]?.includes("sandforge-empty")&&(ce(),tt().then(()=>process.exit(process.exitCode??0)).catch(o=>{process.stderr.write(`${o instanceof Error?o.message:String(o)}
140
- `),process.exit(1)}));export{L as apiRequestsJson,V as emptyExitCode,tt as main,Ge as parseArgs,ze as previewLines,z as refusalWords,He as runIdOf,ve as runLines,Ze as undoLines};
138
+ `);r({refused:c.refusal,...c.also.length>0?{alsoRefused:[...c.also]}:{}}),j(c.code)}finally{i.dispose(),Ie(f,{recursive:!0,force:!0})}}function Ae(o,t){if(!(t===void 0||o===void 0))try{let e=new G(re(t)),n=new G(o).list({limit:1e3}).entries;for(let r of[...n].reverse())e.append(r)}catch(e){process.stderr.write(`The entry could not be added to the audit trail in ${t} (${e instanceof Error?e.message:String(e)}).
139
+ `)}}process.argv[1]?.includes("sandforge-empty")&&(ae(),Ke().then(()=>process.exit(process.exitCode??0)).catch(o=>{process.stderr.write(`${o instanceof Error?o.message:String(o)}
140
+ `),process.exit(1)}));export{L as apiRequestsJson,J as emptyExitCode,Ke as main,Ue as parseArgs,Fe as previewLines,K as refusalWords,_e as runIdOf,ke as runLines,Ge as undoLines};