sandforge 1.82.0 → 1.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/README.md +1 -1
  2. package/lib/chunk-23SEDORH.mjs +11 -0
  3. package/lib/{chunk-7WSLT5VX.mjs → chunk-24RFOFYT.mjs} +1 -1
  4. package/lib/chunk-26POJDIT.mjs +7 -0
  5. package/lib/{chunk-SFGZFB4F.mjs → chunk-2AZQHBEF.mjs} +1 -1
  6. package/lib/{chunk-6VSZNZHH.mjs → chunk-2HVOZUM4.mjs} +1 -1
  7. package/lib/{chunk-XFU3HRUV.mjs → chunk-2JDAOWUW.mjs} +1 -1
  8. package/lib/{chunk-BNKT3R3F.mjs → chunk-2METQHGG.mjs} +1 -1
  9. package/lib/chunk-2WFIVO4F.mjs +13 -0
  10. package/lib/chunk-2YHZBUZE.mjs +7 -0
  11. package/lib/{chunk-SZGGFST2.mjs → chunk-326AJTIU.mjs} +14 -14
  12. package/lib/{chunk-Q6SXNKV2.mjs → chunk-36JOHEJL.mjs} +1 -1
  13. package/lib/chunk-3PVRGTVK.mjs +7 -0
  14. package/lib/{chunk-VZVICK7Q.mjs → chunk-3Q353S2R.mjs} +1 -1
  15. package/lib/chunk-3TZSBHEY.mjs +7 -0
  16. package/lib/{chunk-UHFLKP26.mjs → chunk-43TOMFV4.mjs} +1 -1
  17. package/lib/{chunk-XK5W7BVE.mjs → chunk-4CVUUVGJ.mjs} +1 -1
  18. package/lib/{chunk-VYOYXTCU.mjs → chunk-4EOHEDFP.mjs} +1 -1
  19. package/lib/{chunk-EOFO3PHS.mjs → chunk-4JE4BYXK.mjs} +1 -1
  20. package/lib/{chunk-7EYQYZJP.mjs → chunk-54WZUS7J.mjs} +1 -1
  21. package/lib/chunk-5CRLRHOJ.mjs +7 -0
  22. package/lib/{chunk-FA4ZKDCU.mjs → chunk-5IZTFMJM.mjs} +1 -1
  23. package/lib/chunk-5M5FQ7RP.mjs +7 -0
  24. package/lib/{chunk-3HROD5RE.mjs → chunk-5SMWFNE7.mjs} +1 -1
  25. package/lib/{chunk-YAIIRFKJ.mjs → chunk-5XTUSN72.mjs} +1 -1
  26. package/lib/chunk-6I6TWNV5.mjs +7 -0
  27. package/lib/{chunk-PYRZFUVU.mjs → chunk-6JWWSDM6.mjs} +1 -1
  28. package/lib/chunk-6O222PW6.mjs +7 -0
  29. package/lib/{chunk-2UU42PTD.mjs → chunk-6PD6K7LP.mjs} +1 -1
  30. package/lib/{chunk-GGUOIDWP.mjs → chunk-6QE6R6RL.mjs} +1 -1
  31. package/lib/{chunk-DJCGURW7.mjs → chunk-6WX5ZU7Q.mjs} +1 -1
  32. package/lib/{chunk-DT3T7FRD.mjs → chunk-6YL7BNYD.mjs} +1 -1
  33. package/lib/chunk-6ZLKIT3H.mjs +7 -0
  34. package/lib/{chunk-CBL42DUU.mjs → chunk-7QYHEHMA.mjs} +1 -1
  35. package/lib/chunk-7SQSWVAU.mjs +9 -0
  36. package/lib/{chunk-ZUBBEP75.mjs → chunk-7UVKIWKV.mjs} +1 -1
  37. package/lib/{chunk-TWV4A5RK.mjs → chunk-7WATA4SB.mjs} +1 -1
  38. package/lib/chunk-7YNM6KFZ.mjs +7 -0
  39. package/lib/chunk-A3MYSOOC.mjs +7 -0
  40. package/lib/chunk-AL4C3GFT.mjs +7 -0
  41. package/lib/chunk-B3FBHVNN.mjs +21 -0
  42. package/lib/{chunk-27Z76O2O.mjs → chunk-B63POIPQ.mjs} +1 -1
  43. package/lib/{chunk-RTWYLOCA.mjs → chunk-BAWCOKRW.mjs} +1 -1
  44. package/lib/{chunk-NWOI25WY.mjs → chunk-BBRWFKS5.mjs} +1 -1
  45. package/lib/chunk-BEA27DLS.mjs +7 -0
  46. package/lib/chunk-BRY3PLIZ.mjs +7 -0
  47. package/lib/chunk-CBH3TOWK.mjs +341 -0
  48. package/lib/chunk-CPQIZGG5.mjs +7 -0
  49. package/lib/chunk-CVHNXJH3.mjs +7 -0
  50. package/lib/{chunk-HFUDCNU5.mjs → chunk-D4GF4FAB.mjs} +1 -1
  51. package/lib/chunk-DGDRQRCW.mjs +7 -0
  52. package/lib/{chunk-YAJQS3OL.mjs → chunk-DPMRIMUC.mjs} +1 -1
  53. package/lib/chunk-DUN2EPRC.mjs +7 -0
  54. package/lib/chunk-E3A3LOCY.mjs +7 -0
  55. package/lib/{chunk-TMA34QMA.mjs → chunk-EAC5QCE3.mjs} +1 -1
  56. package/lib/{chunk-VQJMP3DC.mjs → chunk-EC72TIEG.mjs} +1 -1
  57. package/lib/chunk-EPFCERGL.mjs +7 -0
  58. package/lib/{chunk-3MGMNK3Q.mjs → chunk-ETDCBLGU.mjs} +1 -1
  59. package/lib/{chunk-LXDSRP2W.mjs → chunk-F3AQW6IU.mjs} +1 -1
  60. package/lib/{chunk-A65ADTCR.mjs → chunk-FITPY3L4.mjs} +1 -1
  61. package/lib/chunk-FNJ4SGWO.mjs +7 -0
  62. package/lib/{chunk-SAMWHL22.mjs → chunk-FP7CYB2F.mjs} +1 -1
  63. package/lib/{chunk-JLZRZL5E.mjs → chunk-GKY2JMHY.mjs} +1 -1
  64. package/lib/chunk-GMIGWR6U.mjs +7 -0
  65. package/lib/{chunk-AUS6NFLZ.mjs → chunk-GNRSF65U.mjs} +1 -1
  66. package/lib/chunk-GOOVPVWX.mjs +7 -0
  67. package/lib/{chunk-PPHVWUFY.mjs → chunk-GWZRR3MM.mjs} +1 -1
  68. package/lib/{chunk-JH27IKCO.mjs → chunk-H2BHESDA.mjs} +2 -2
  69. package/lib/chunk-H33DVU3D.mjs +7 -0
  70. package/lib/chunk-H4CGM6YO.mjs +7 -0
  71. package/lib/{chunk-WOOUISSO.mjs → chunk-HCGXK7G7.mjs} +1 -1
  72. package/lib/{chunk-VZT4E2OJ.mjs → chunk-HIDW7FNV.mjs} +1 -1
  73. package/lib/chunk-HSBXRQTI.mjs +7 -0
  74. package/lib/chunk-HUZPBE47.mjs +7 -0
  75. package/lib/chunk-HV7VPEXP.mjs +7 -0
  76. package/lib/chunk-I6E6T6YY.mjs +7 -0
  77. package/lib/chunk-IUM4NFKI.mjs +10 -0
  78. package/lib/chunk-IVFVNNGB.mjs +37 -0
  79. package/lib/{chunk-5K2I2DMP.mjs → chunk-IZGCEOYO.mjs} +1 -1
  80. package/lib/{chunk-ZHIZY3ZC.mjs → chunk-J3DND3BC.mjs} +1 -1
  81. package/lib/{chunk-VPDEJGPS.mjs → chunk-JAEDM4SI.mjs} +1 -1
  82. package/lib/chunk-JCFBFF4Y.mjs +7 -0
  83. package/lib/{chunk-GBGHJTPC.mjs → chunk-JE6SCT6R.mjs} +1 -1
  84. package/lib/chunk-JGZPD4IM.mjs +7 -0
  85. package/lib/{chunk-C3LNYAVJ.mjs → chunk-JKJ74BX5.mjs} +1 -1
  86. package/lib/{chunk-EEFUE2ES.mjs → chunk-JLSIWO4Z.mjs} +1 -1
  87. package/lib/{chunk-3CX7GPCR.mjs → chunk-JSAJS3MY.mjs} +1 -1
  88. package/lib/chunk-JTJK2D36.mjs +7 -0
  89. package/lib/{chunk-V3R45ZWT.mjs → chunk-KAZS5Z6W.mjs} +1 -1
  90. package/lib/chunk-KB4ZHM4Q.mjs +10 -0
  91. package/lib/{chunk-J24TIGSI.mjs → chunk-KGU4SVIT.mjs} +1 -1
  92. package/lib/chunk-KJWFYBMU.mjs +15 -0
  93. package/lib/{chunk-H4JUYUSL.mjs → chunk-KZTZDC7H.mjs} +1 -1
  94. package/lib/chunk-L2E5WBGD.mjs +8 -0
  95. package/lib/{chunk-XU25YA46.mjs → chunk-L53JWJ3S.mjs} +1 -1
  96. package/lib/{chunk-Y4TDVDP2.mjs → chunk-LA4KIATH.mjs} +6 -6
  97. package/lib/chunk-LC3NDW4N.mjs +7 -0
  98. package/lib/{chunk-GCGHHN4K.mjs → chunk-LKTNQEBS.mjs} +1 -1
  99. package/lib/chunk-M2ABR4JM.mjs +7 -0
  100. package/lib/{chunk-3C2ZZIFN.mjs → chunk-M4BLK6HJ.mjs} +1 -1
  101. package/lib/{chunk-L4INJ5TZ.mjs → chunk-M6K34KGF.mjs} +1 -1
  102. package/lib/chunk-MDMPJEV3.mjs +7 -0
  103. package/lib/{chunk-32EUNQT6.mjs → chunk-MJZU3U5O.mjs} +68 -63
  104. package/lib/{chunk-PBE44M2Y.mjs → chunk-MSIEU5MR.mjs} +1 -1
  105. package/lib/{chunk-NLB3RGIY.mjs → chunk-N4WPCWJO.mjs} +1 -1
  106. package/lib/{chunk-SNEOKYV7.mjs → chunk-NCZKWSC7.mjs} +1 -1
  107. package/lib/{chunk-6KP6WETK.mjs → chunk-NED4MBIM.mjs} +1 -1
  108. package/lib/chunk-NOBQTEQD.mjs +7 -0
  109. package/lib/{chunk-RCYEBY42.mjs → chunk-NSQWI7ZY.mjs} +1 -1
  110. package/lib/{chunk-DBBPDSFN.mjs → chunk-O677VOGO.mjs} +1 -1
  111. package/lib/chunk-OFTT7J2M.mjs +7 -0
  112. package/lib/{chunk-C2N2TNEU.mjs → chunk-OLCVHL7I.mjs} +1 -1
  113. package/lib/chunk-OM5NORJG.mjs +7 -0
  114. package/lib/chunk-OMNMLKDT.mjs +7 -0
  115. package/lib/{chunk-CELEBWEZ.mjs → chunk-OPMO6I45.mjs} +1 -1
  116. package/lib/{chunk-LHU6CPGE.mjs → chunk-OUZQPYT3.mjs} +1 -1
  117. package/lib/chunk-OVNMB6Q2.mjs +7 -0
  118. package/lib/{chunk-6GQUZ4IP.mjs → chunk-PAXNWTYK.mjs} +1 -1
  119. package/lib/{chunk-XSKPYGMT.mjs → chunk-PBY2O6OF.mjs} +1 -1
  120. package/lib/chunk-PEDQPM2P.mjs +926 -0
  121. package/lib/chunk-PH7SP4YK.mjs +21 -0
  122. package/lib/{chunk-3SKLBRPL.mjs → chunk-PMN4PAC3.mjs} +1 -1
  123. package/lib/chunk-PMWAFDUB.mjs +48 -0
  124. package/lib/chunk-PPLVFX6N.mjs +7 -0
  125. package/lib/{chunk-STRMWSIQ.mjs → chunk-PR3XCSPO.mjs} +1 -1
  126. package/lib/{chunk-GJ6SZVHT.mjs → chunk-PR42EZSR.mjs} +1 -1
  127. package/lib/{chunk-YMDFF657.mjs → chunk-PWRJRL5U.mjs} +1 -1
  128. package/lib/{chunk-Q3DY7TO2.mjs → chunk-Q7GIJBCD.mjs} +1 -1
  129. package/lib/chunk-Q7TLC3I2.mjs +7 -0
  130. package/lib/{chunk-ZXFL2MSN.mjs → chunk-QAFPQ3YB.mjs} +1 -1
  131. package/lib/{chunk-T7WREYA5.mjs → chunk-QKEKG2LD.mjs} +1 -1
  132. package/lib/chunk-QO53K5W2.mjs +9 -0
  133. package/lib/{chunk-MUEQRIK7.mjs → chunk-QTG6LUZT.mjs} +1 -1
  134. package/lib/{chunk-KP5G6FUC.mjs → chunk-RE7RYF3B.mjs} +1 -1
  135. package/lib/{chunk-FOIWWK7G.mjs → chunk-RGBGUCJA.mjs} +1 -1
  136. package/lib/{chunk-DWMRIWV5.mjs → chunk-RGUQOSBU.mjs} +1 -1
  137. package/lib/{chunk-7PY3VQP3.mjs → chunk-RHNTHGNU.mjs} +1 -1
  138. package/lib/chunk-RKTFFCNS.mjs +7 -0
  139. package/lib/chunk-RMFU4BAL.mjs +28 -0
  140. package/lib/{chunk-KKOA62S4.mjs → chunk-ROV3QXEF.mjs} +14 -13
  141. package/lib/chunk-RT47RKLY.mjs +7 -0
  142. package/lib/{chunk-ZUTUYBNW.mjs → chunk-S42RBRH2.mjs} +1 -1
  143. package/lib/{chunk-Z42PHCVZ.mjs → chunk-SI267LYR.mjs} +1 -1
  144. package/lib/chunk-T3G6VZNS.mjs +7 -0
  145. package/lib/chunk-TNT27RBG.mjs +7 -0
  146. package/lib/chunk-UBIKR5VO.mjs +7 -0
  147. package/lib/chunk-UI3JQVRU.mjs +8 -0
  148. package/lib/{chunk-YT22LMF7.mjs → chunk-UIOMAX56.mjs} +1 -1
  149. package/lib/chunk-UX3BVH2Y.mjs +7 -0
  150. package/lib/chunk-VCUXCK36.mjs +7 -0
  151. package/lib/chunk-VINGECAJ.mjs +10 -0
  152. package/lib/chunk-VOXJHJIE.mjs +7 -0
  153. package/lib/chunk-W6PN6TJG.mjs +7 -0
  154. package/lib/{chunk-FKK5YBGZ.mjs → chunk-WAPSSYMT.mjs} +1 -1
  155. package/lib/{chunk-PR74GYVI.mjs → chunk-WUUKFE2U.mjs} +1 -1
  156. package/lib/chunk-WWTCWWZI.mjs +7 -0
  157. package/lib/chunk-WXDLQT2O.mjs +10 -0
  158. package/lib/chunk-WY5V5PR3.mjs +7 -0
  159. package/lib/chunk-X4BXESMQ.mjs +7 -0
  160. package/lib/chunk-XBQGZGWR.mjs +7 -0
  161. package/lib/chunk-XGGOUNPP.mjs +7 -0
  162. package/lib/chunk-XKWW3GKF.mjs +7 -0
  163. package/lib/{chunk-JJITOWZK.mjs → chunk-Y2DRK37K.mjs} +1 -1
  164. package/lib/{chunk-XZISAZA6.mjs → chunk-YA6ATMTB.mjs} +1 -1
  165. package/lib/{chunk-54HYHHVL.mjs → chunk-YDXMTWAT.mjs} +1 -1
  166. package/lib/chunk-YHR4WQPR.mjs +7 -0
  167. package/lib/{chunk-KJYEQHYP.mjs → chunk-YTLUYSMF.mjs} +1 -1
  168. package/lib/chunk-YWEQQL3C.mjs +8 -0
  169. package/lib/{chunk-PWVDNN2C.mjs → chunk-Z4LKKOFY.mjs} +1 -1
  170. package/lib/chunk-ZBAWJUG2.mjs +7 -0
  171. package/lib/{chunk-XO5FBOQF.mjs → chunk-ZJW6YOMV.mjs} +1 -1
  172. package/lib/chunk-ZQQXSCVI.mjs +7 -0
  173. package/lib/{chunk-47UHTN3Q.mjs → chunk-ZQWIVYVM.mjs} +1 -1
  174. package/lib/chunk-ZV7ZFQQC.mjs +9 -0
  175. package/lib/sandforge-autopilot.mjs +25 -25
  176. package/lib/sandforge-backup.mjs +1 -1
  177. package/lib/sandforge-checkpoint.mjs +1 -1
  178. package/lib/sandforge-cleanup.mjs +1 -1
  179. package/lib/sandforge-clone.mjs +1 -1
  180. package/lib/sandforge-compare.mjs +52 -21
  181. package/lib/sandforge-dataops.mjs +1 -1
  182. package/lib/sandforge-empty.mjs +4 -4
  183. package/lib/sandforge-env.mjs +106 -107
  184. package/lib/sandforge-frozen.mjs +1 -1
  185. package/lib/sandforge-mcp.mjs +12 -12
  186. package/lib/sandforge-monitor.mjs +1 -1
  187. package/lib/sandforge-pipeline.mjs +1 -1
  188. package/lib/sandforge-seed.mjs +1 -1
  189. package/lib/sandforge-sync.mjs +1 -1
  190. package/lib/sandforge-users.mjs +21 -23
  191. package/lib/sandforge.mjs +1 -1
  192. package/lib/sf/sandforge/compare.mjs +2 -2
  193. package/lib/sfPlugin.mjs +1 -1
  194. package/oclif.manifest.json +1 -1
  195. package/package.json +1 -1
  196. package/lib/chunk-2JZGCCPG.mjs +0 -9
  197. package/lib/chunk-3HEMJTAP.mjs +0 -925
  198. package/lib/chunk-3XG25GTF.mjs +0 -7
  199. package/lib/chunk-42BFLWHR.mjs +0 -7
  200. package/lib/chunk-466F37VD.mjs +0 -7
  201. package/lib/chunk-4JKR4PTZ.mjs +0 -8
  202. package/lib/chunk-52EXDVPN.mjs +0 -7
  203. package/lib/chunk-7CVDVBEE.mjs +0 -7
  204. package/lib/chunk-7LKI7OAS.mjs +0 -7
  205. package/lib/chunk-7SDZR6SR.mjs +0 -7
  206. package/lib/chunk-A32ISQ6M.mjs +0 -28
  207. package/lib/chunk-A7JJWOLT.mjs +0 -7
  208. package/lib/chunk-BMTNTBBM.mjs +0 -7
  209. package/lib/chunk-BN33LVPQ.mjs +0 -7
  210. package/lib/chunk-BZ24IAP5.mjs +0 -7
  211. package/lib/chunk-CCEH7L53.mjs +0 -7
  212. package/lib/chunk-CV47FDQW.mjs +0 -7
  213. package/lib/chunk-CZLJZQCS.mjs +0 -7
  214. package/lib/chunk-DIL62SUN.mjs +0 -7
  215. package/lib/chunk-DIS254AN.mjs +0 -7
  216. package/lib/chunk-FZF23M6R.mjs +0 -7
  217. package/lib/chunk-G2JR3F63.mjs +0 -7
  218. package/lib/chunk-GGNUACTY.mjs +0 -7
  219. package/lib/chunk-GHPR5UVV.mjs +0 -7
  220. package/lib/chunk-HIHCYMSL.mjs +0 -7
  221. package/lib/chunk-HKUWHVI7.mjs +0 -9
  222. package/lib/chunk-HQQVANWQ.mjs +0 -20
  223. package/lib/chunk-IRZJU2PG.mjs +0 -22
  224. package/lib/chunk-ISSP2FZ5.mjs +0 -7
  225. package/lib/chunk-IVZJSDJD.mjs +0 -7
  226. package/lib/chunk-JESRFE2Z.mjs +0 -11
  227. package/lib/chunk-JFNLKHY6.mjs +0 -8
  228. package/lib/chunk-JKT5YAQ2.mjs +0 -7
  229. package/lib/chunk-JQZTMFO7.mjs +0 -7
  230. package/lib/chunk-KIMQQ6JQ.mjs +0 -7
  231. package/lib/chunk-LAUOSXMN.mjs +0 -341
  232. package/lib/chunk-MKTXJCXN.mjs +0 -10
  233. package/lib/chunk-O2PUGRNW.mjs +0 -10
  234. package/lib/chunk-O4BROUGM.mjs +0 -7
  235. package/lib/chunk-P55MKIZX.mjs +0 -37
  236. package/lib/chunk-P63WJMXQ.mjs +0 -7
  237. package/lib/chunk-PE435FVH.mjs +0 -15
  238. package/lib/chunk-PPGDAUEQ.mjs +0 -7
  239. package/lib/chunk-QAPVKPEC.mjs +0 -7
  240. package/lib/chunk-RLWB7F26.mjs +0 -7
  241. package/lib/chunk-RYRMUPMY.mjs +0 -7
  242. package/lib/chunk-SCKUIE3R.mjs +0 -7
  243. package/lib/chunk-SU65Z2BA.mjs +0 -7
  244. package/lib/chunk-TCBAE65A.mjs +0 -7
  245. package/lib/chunk-WEMLDUQA.mjs +0 -7
  246. package/lib/chunk-WSUKC2U3.mjs +0 -7
  247. package/lib/chunk-WT3SCUHS.mjs +0 -7
  248. package/lib/chunk-YGJF55VJ.mjs +0 -7
  249. package/lib/chunk-YH4DYI6D.mjs +0 -7
  250. package/lib/chunk-ZQO5PDX5.mjs +0 -48
  251. package/lib/chunk-ZUOPC4W2.mjs +0 -7
@@ -0,0 +1,7 @@
1
+ import { createRequire as __sandforgeRequire } from 'node:module';
2
+ import { fileURLToPath as __sandforgePath } from 'node:url';
3
+ import { dirname as __sandforgeDirname } from 'node:path';
4
+ const require = __sandforgeRequire(import.meta.url);
5
+ const __filename = __sandforgePath(import.meta.url);
6
+ const __dirname = __sandforgeDirname(__filename);
7
+ import{f as u,g as l}from"./chunk-H33DVU3D.mjs";import{c as d}from"./chunk-MDMPJEV3.mjs";var p="## Still to do, in this order",f="## Not touched by SandForge";function s(n){return`\`${n.replace(/[`\r\n]+/g," ").trim()}\``}function h(n){return n.replace(/[\r\n]+/g," ").trim()}function y(n){return n.replace(/\.\d{3}Z$/,"Z")}function S(n,o){return`# Handoff: ${s(n)} on ${s(o.alias??o.organizationId)}`}function $(n){let o=d(n.host),e=n.kind==="sandbox"?`sandbox${o!==void 0?` ${s(o)}`:""}`:n.kind==="scratch"?"scratch org":"Developer Edition org";return`- Org: ${n.alias!==void 0?`${s(n.alias)}, `:""}${e}, ${s(n.organizationId)}.`}function b(n,o){let e=[p,""];e.push("1. Credentials and technical components: point them away from production.");let r=n?.endpoints;if(r===void 0)e.push(` - Not audited: ${o.endpoints}`);else{for(let t of r.found)e.push(` - ${l[t.source]} ${s(t.name)} names ${s(t.host)}, ${u[t.why]}.`);r.found.length===0&&r.unread===void 0&&e.push(" - None of those read names production."),r.unread!==void 0&&e.push(" - Not all read: check the Named Credentials, the Remote Site Settings and the Custom Metadata in Setup.")}e.push("2. Scheduled jobs: schedule again those gone, and give those stuck a user who can run them.");let i=n?.schedules;if(i===void 0)e.push(` - Not audited: ${o.schedules}`);else{for(let t of i.jobs)t.status==="gone"?e.push(` - ${s(t.name)} (${h(t.type)}) was scheduled in the inventory of ${i.against?.savedAt.slice(0,10)??"?"}, and is not now.`):(t.status==="frozen"||t.status==="inactive")&&e.push(` - ${s(t.name)} (${h(t.type)}) runs as ${t.owner!==void 0?s(t.owner):"a user not read"}, who is ${t.status}: its next run fails.`);i.against===void 0&&e.push(" - No inventory from before the refresh was kept on this machine: what is gone is not known."),i.unread!==void 0&&e.push(" - Not all read: Setup > Scheduled Jobs lists them."),!i.jobs.some(t=>t.status!=="new")&&i.unread===void 0&&e.push(i.against!==void 0?" - None gone, none stuck.":" - None stuck.")}e.push("3. Automations that send emails \u2014 flows, workflow rules, Apex \u2014: turn them on last, once the addresses and the masking are as the testers need them."),e.push("4. Deliverability.");let a=n?.deliverability;return a?.read==="closed"?e.push(" - Read closed, System email only or No access: leave it so until the masking is done."):a?.read==="open"?e.push(" - Read open, All email: what runs there emails whoever its records name. Set it to System email only in Setup > Deliverability until the masking is done."):e.push(" - Not read: Setup > Deliverability shows it."),e}var c=["- Named and External Credentials: Setup, or a deployment of your project by `sf`.","- Metadata: your deployment.","- Single sign-on and DKIM keys: Setup.","- Deliverability: Setup > Deliverability.","- Passwords: each user's own, by Forgot your password? on the sandbox's login page."];function w(){return[f,"",...c]}export{s as a,y as b,S as c,$ as d,b as e,w as f};
@@ -0,0 +1,7 @@
1
+ import { createRequire as __sandforgeRequire } from 'node:module';
2
+ import { fileURLToPath as __sandforgePath } from 'node:url';
3
+ import { dirname as __sandforgeDirname } from 'node:path';
4
+ const require = __sandforgeRequire(import.meta.url);
5
+ const __filename = __sandforgePath(import.meta.url);
6
+ const __dirname = __sandforgeDirname(__filename);
7
+ import{a as k,b as N,d as q,f as C,g as u,i as D,k as R,l as z}from"./chunk-WY5V5PR3.mjs";import{c as P}from"./chunk-LC3NDW4N.mjs";import{Ec as y,La as x,ta as $}from"./chunk-KB4ZHM4Q.mjs";import{a as b,b as S,d as I,e as v}from"./chunk-W6PN6TJG.mjs";import{b as U}from"./chunk-CA5NAXSU.mjs";import{Od as E,_c as T,ib as w,pb as h,qb as A}from"./chunk-PMWAFDUB.mjs";var F="AUTOMATION_NOT_ACCEPTED";async function M(e,s){let t=0,r;try{r=await b({query:(i=>(t+=1,e.query(i)))})}catch(i){return{kind:"untyped",err:i,typingRequests:t}}if(S(r))return{kind:"production",typed:r,typingRequests:t};let n=q(e),o=await n.identity();return u(o.organizationId)!==u(r.id)?{kind:"otherSession",sessionOrganizationId:o.organizationId,typed:r,typingRequests:t}:{kind:"reached",org:n,organization:{organizationId:r.id,kind:s.scratch?"scratch":r.sandbox?"sandbox":"developer",...s.alias!==void 0?{alias:s.alias}:{},username:o.username},typed:r,typingRequests:t}}var O="No user was read or written.";function p(e,s){return{allowed:!1,refusal:{code:"PRODUCTION",message:`${e} is a production org, or cannot be told from one: ${s}. SandForge sets up the users of a sandbox, a scratch org or a Developer Edition org, and reads nothing of a production org's: nothing lifts this. ${O}`}}}async function pe(e,s){let{orgName:t,registered:r}=s;if(r===void 0)return p(t,"SandForge has no record of what kind of org it is");if(!T(r))return p(t,"SandForge has it registered as a production org");let n=await M(e,{alias:t,scratch:r.orgType==="Scratch"});switch(n.kind){case"untyped":{let o=I(n.err);return o===void 0?p(t,`it did not say what org it is (${U(n.err)})`):{allowed:!1,refusal:{code:"ORG_UNTYPED",cause:o,message:`${v(t,n.err,o)} SandForge sets up the users of no org it cannot tell from a production one. ${O}`}}}case"production":return p(t,n.typed.edition?`its Organization record says IsSandbox false, edition ${n.typed.edition}`:"its Organization record says IsSandbox false, and no edition");case"otherSession":return{allowed:!1,refusal:{code:"OTHER_SESSION",message:`The session SandForge holds for ${t} is of ${n.sessionOrganizationId}, and its Organization record says ${n.typed.id}: reconnect it on the Organizations page. ${O}`}};case"reached":return{allowed:!0,org:n.org,organization:n.organization,typingRequests:n.typingRequests}}}var H={before:"before save",after:"after save",beforeAndAfter:"before and after save"},j={flows:"the flows",triggers:"the Apex triggers",processes:"the Process Builder processes",workflowRules:"the workflow rules"};function V(e,s){return e==="flow"?`flow "${s}"`:e==="process"?`process "${s}"`:e==="workflowRule"?`workflow rule "${s}"`:`Apex trigger ${s}`}function B(e){return`${e.objectApiName}: ${V(e.kind,e.name)} (${H[e.when]})`}function K(e){return j[e]??e}async function X(e,s,t){if(t.length===0)return{kind:"none"};try{return{kind:"read",automation:await new x($(async()=>e)).read(s,t)}}catch(r){return{kind:"unread",reason:U(r)}}}function L(e){return e.kind==="read"?E(e.automation,"update"):[]}function Y(e){return h.includes(e)}function Q(e){if(e.kind==="none")return;if(e.kind==="unread")return{fired:[],notDeduced:!0};let s=L(e).filter(r=>r.name!=="").slice(0,A).map(({kind:r,name:n,objectApiName:o,when:i})=>({kind:r,name:n.slice(0,255),objectApiName:o,when:i})),t=[...new Set(y(e.automation).map(({part:r})=>r).filter(Y))];return{fired:s,...t.length>0?{unread:t}:{}}}function J(e,s,t,r,n="flags"){if(r||e.kind==="none")return;let o=n==="page"?`Nothing was written. Accept it on the page to write all the same, or turn that automation off in ${s} first.`:`Nothing was written. Add --accept-automation to write all the same (accept: { automation: true } on the users resource of sandforge.yaml), or turn that automation off in ${s} first.`,i=Q(e);if(e.kind==="unread")return{code:F,message:`What ${s} runs as ${t} could not be read (${e.reason}), so what fires is not known. ${o}`,...i!==void 0?{automation:i}:{}};let f=L(e),c=y(e.automation);if(f.length===0&&c.length===0)return;let a=[];f.length>0&&a.push(`${s} runs automation as ${t}: ${f.map(B).join("; ")}.`);for(let{part:d,reason:g}of c)a.push(`${K(d)} of ${s} could not be read (${g}), so what fires as ${t} is not known.`);return a.push(o),{code:F,message:a.join(" "),...i!==void 0?{automation:i}:{}}}function Z(e){return e.kind==="read"?e.automation.requests:0}function ee(e){let s=e.users.some(r=>r.writes.profileId!==void 0||r.writes.isActive!==void 0||r.writes.email!==void 0),t=e.users.some(r=>r.writes.isFrozen!==void 0);return[...s?["User"]:[],...t?["UserLogin"]:[]]}function ge(e){let s=e.users.some(r=>r.after.isActive!==r.applied.before.isActive||u(r.after.profileId)!==u(r.applied.before.profileId)),t=e.users.some(r=>r.after.isFrozen!==r.applied.before.isFrozen);return[...s?["User"]:[],...t?["UserLogin"]:[]]}function re(e){let{reading:s}=e;return"unread"in s?"unread":s.level==="all"?"open":"closed"}async function me(e){let s=await D(e.org,e.users,{now:e.now??new Date,...e.previous?{previous:e.previous}:{}}),t={...e.previous?{previous:e.previous}:{},acceptUserEmails:e.acceptUserEmails,acceptEmails:e.acceptEmails},r=R(s,e.users,t),n;r.emailsToPeople>0&&(n=await P(e.conn),t={...t,deliverability:re(n)},r=R(s,e.users,t));let o=await X(e.conn,e.orgName,ee(r)),i=J(o,e.orgName,"users are written",e.acceptAutomation,e.voice);return{state:s,plan:r,options:t,...n?{deliverability:n}:{},automation:o,...i?{automationRefusal:i}:{},outsideRequests:(n?.requests??0)+Z(o)}}function Ue(e,s,t){let r=z(e.plan,s,t+e.state.requests),n=[...r.refusals??[],...e.automationRefusal?[e.automationRefusal]:[]];return{...r,...n.length>0?{refusals:n}:{}}}var _="Id, Username, Email, IsActive, Profile.Name",W="UserType = 'Standard'",te=200;function l(e){return typeof e=="string"&&e!==""?e:void 0}function G(e,s){let t=l(e.Id),r=l(e.Username);if(t===void 0||r===void 0)return;let n=l(e.Profile?.Name),o=l(e.Email);return{userId:t,username:r,...n!==void 0?{profile:n}:{},address:o!==void 0&&C(o)!==void 0?"invalid":"valid",active:e.IsActive===!0,frozen:s.has(u(t))}}function se(e,s){if(e.active!==s.active)return e.active?-1:1;let t=e.username.toLowerCase(),r=s.username.toLowerCase();return t<r?-1:t>r?1:0}async function ye(e,s={}){let t=e.requests(),r=u(s.connectedUserId??(await e.identity()).userId),n=await e.query(`SELECT ${_} FROM User WHERE ${W} AND (IsActive = false OR Email LIKE '%.invalid')`),o=new Set((await e.query("SELECT UserId FROM UserLogin WHERE IsFrozen = true")).flatMap(a=>{let d=l(a.UserId);return d!==void 0?[u(d)]:[]})),i=new Map;for(let a of n){let d=G(a,o);d!==void 0&&i.set(u(d.userId),d)}let f=[...o].filter(a=>!i.has(a)&&a!==r);for(let a of k(f,te)){let d=await e.query(`SELECT ${_} FROM User WHERE ${W} AND Id IN ${N(a)}`);for(let g of d){let m=G(g,o);m!==void 0&&i.set(u(m.userId),m)}}i.delete(r);let c=[...i.values()].sort(se);return{users:c.slice(0,w),total:c.length,requests:e.requests()-t}}export{F as a,M as b,pe as c,B as d,K as e,X as f,L as g,Q as h,J as i,Z as j,ee as k,ge as l,re as m,me as n,Ue as o,ye as p};
@@ -0,0 +1,7 @@
1
+ import { createRequire as __sandforgeRequire } from 'node:module';
2
+ import { fileURLToPath as __sandforgePath } from 'node:url';
3
+ import { dirname as __sandforgeDirname } from 'node:path';
4
+ const require = __sandforgeRequire(import.meta.url);
5
+ const __filename = __sandforgePath(import.meta.url);
6
+ const __dirname = __sandforgeDirname(__filename);
7
+ function t(r){return`npx sandforge ${r}`}function o(r){return r.replace(/^sandforge-(?=[a-z]+$)/,"sandforge ")}function i(r,e=process.platform){return/^[\w.@:+/=,-]+$/.test(r)?r:e!=="win32"?`'${r.replace(/'/g,"'\\''")}'`:`"${r.replace(/(\\*)"/g,'$1$1""').replace(/(\\+)$/,"$1$1")}"`}export{t as a,o as b,i as c};