sandforge 1.84.1 → 1.86.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.
- package/README.md +1 -1
- package/lib/{chunk-S42RBRH2.mjs → chunk-22L43JMK.mjs} +1 -1
- package/lib/{chunk-Y2DRK37K.mjs → chunk-2LSGWTWX.mjs} +1 -1
- package/lib/{chunk-24RFOFYT.mjs → chunk-2YJJTQNC.mjs} +1 -1
- package/lib/chunk-34SMB5PA.mjs +10 -0
- package/lib/chunk-35B73566.mjs +7 -0
- package/lib/{chunk-3TZSBHEY.mjs → chunk-35IJ4WEU.mjs} +1 -1
- package/lib/chunk-3EHPAFKV.mjs +7 -0
- package/lib/{chunk-6YL7BNYD.mjs → chunk-3HAVVEXF.mjs} +1 -1
- package/lib/{chunk-6JWWSDM6.mjs → chunk-3I6FXFCN.mjs} +1 -1
- package/lib/{chunk-WUUKFE2U.mjs → chunk-3KJCSYXY.mjs} +1 -1
- package/lib/{chunk-2HVOZUM4.mjs → chunk-3L6DVNCR.mjs} +1 -1
- package/lib/chunk-3LRFPGYZ.mjs +7 -0
- package/lib/{chunk-GWZRR3MM.mjs → chunk-3MVWGL5A.mjs} +1 -1
- package/lib/{chunk-KGU4SVIT.mjs → chunk-4CSBZZAL.mjs} +1 -1
- package/lib/{chunk-JE6SCT6R.mjs → chunk-4NSXPONF.mjs} +1 -1
- package/lib/{chunk-UIOMAX56.mjs → chunk-4VLP6RHC.mjs} +1 -1
- package/lib/{chunk-YA6ATMTB.mjs → chunk-4XROG5CT.mjs} +1 -1
- package/lib/chunk-54V4FVEY.mjs +7 -0
- package/lib/chunk-55OJJT2Q.mjs +7 -0
- package/lib/{chunk-6QE6R6RL.mjs → chunk-5EHHQ5UX.mjs} +1 -1
- package/lib/{chunk-FITPY3L4.mjs → chunk-5JMQXHJ2.mjs} +1 -1
- package/lib/{chunk-W6PN6TJG.mjs → chunk-65AMXOQU.mjs} +1 -1
- package/lib/{chunk-3Q353S2R.mjs → chunk-6HHSAPIM.mjs} +1 -1
- package/lib/chunk-6KVBCFVS.mjs +7 -0
- package/lib/chunk-6NG7C2U3.mjs +476 -0
- package/lib/chunk-6ROL3KBM.mjs +7 -0
- package/lib/{chunk-2JDAOWUW.mjs → chunk-72AWCN7U.mjs} +1 -1
- package/lib/{chunk-JLSIWO4Z.mjs → chunk-7KHA5UIQ.mjs} +1 -1
- package/lib/chunk-7O6EFNQS.mjs +10 -0
- package/lib/{chunk-WWTCWWZI.mjs → chunk-A2CH2QGX.mjs} +1 -1
- package/lib/chunk-A2TXLAC3.mjs +276 -0
- package/lib/chunk-ALWVNR34.mjs +7 -0
- package/lib/{chunk-D4GF4FAB.mjs → chunk-ATBQIE2V.mjs} +1 -1
- package/lib/{chunk-NED4MBIM.mjs → chunk-ATQML7ZK.mjs} +1 -1
- package/lib/chunk-AVY742BJ.mjs +7 -0
- package/lib/{chunk-YWEQQL3C.mjs → chunk-AXTB2HJS.mjs} +1 -1
- package/lib/chunk-BBZUGKBZ.mjs +10 -0
- package/lib/chunk-BIDXK7KA.mjs +7 -0
- package/lib/{chunk-O677VOGO.mjs → chunk-BLMJ4WVI.mjs} +1 -1
- package/lib/{chunk-RE7RYF3B.mjs → chunk-BNHJCJJM.mjs} +1 -1
- package/lib/{chunk-5M5FQ7RP.mjs → chunk-BNPQEQXC.mjs} +1 -1
- package/lib/chunk-C5AUNG6T.mjs +37 -0
- package/lib/{chunk-ETDCBLGU.mjs → chunk-C5EQ7GFC.mjs} +1 -1
- package/lib/{chunk-MJZU3U5O.mjs → chunk-C7CKDZMC.mjs} +61 -61
- package/lib/{chunk-HCGXK7G7.mjs → chunk-CB4U22NR.mjs} +1 -1
- package/lib/chunk-CJAWKLAL.mjs +7 -0
- package/lib/chunk-CL75DEMQ.mjs +9 -0
- package/lib/{chunk-VCUXCK36.mjs → chunk-CLUNF4FK.mjs} +1 -1
- package/lib/chunk-CSMGP53U.mjs +7 -0
- package/lib/{chunk-7YNM6KFZ.mjs → chunk-CT324C7I.mjs} +1 -1
- package/lib/{chunk-7UVKIWKV.mjs → chunk-CZXDJXQP.mjs} +1 -1
- package/lib/{chunk-43TOMFV4.mjs → chunk-D2X6U3MS.mjs} +1 -1
- package/lib/{chunk-M6K34KGF.mjs → chunk-DAUX63UB.mjs} +1 -1
- package/lib/chunk-DB7JNALQ.mjs +10 -0
- package/lib/chunk-DDNCJVZ2.mjs +17 -0
- package/lib/{chunk-FP7CYB2F.mjs → chunk-DLSU66MY.mjs} +1 -1
- package/lib/{chunk-JKJ74BX5.mjs → chunk-DO6PSHQZ.mjs} +1 -1
- package/lib/{chunk-MDMPJEV3.mjs → chunk-DUBECLZV.mjs} +1 -1
- package/lib/{chunk-KZTZDC7H.mjs → chunk-DYHF6DNT.mjs} +1 -1
- package/lib/chunk-E5FSPXYH.mjs +930 -0
- package/lib/{chunk-Q7GIJBCD.mjs → chunk-EGL3I3IX.mjs} +1 -1
- package/lib/chunk-EIYMQPMG.mjs +7 -0
- package/lib/{chunk-RHNTHGNU.mjs → chunk-EUIALBMX.mjs} +1 -1
- package/lib/{chunk-NCZKWSC7.mjs → chunk-FI3R5ZOQ.mjs} +1 -1
- package/lib/{chunk-PAXNWTYK.mjs → chunk-FM4QCTO7.mjs} +1 -1
- package/lib/{chunk-HV7VPEXP.mjs → chunk-FRSIEASH.mjs} +1 -1
- package/lib/{chunk-QAFPQ3YB.mjs → chunk-FV6MOSHD.mjs} +1 -1
- package/lib/chunk-FYG47CNA.mjs +7 -0
- package/lib/chunk-GB6W4Q56.mjs +7 -0
- package/lib/chunk-GEV2DCMK.mjs +7 -0
- package/lib/{chunk-NSQWI7ZY.mjs → chunk-GFB2DNCB.mjs} +1 -1
- package/lib/chunk-GFGMGFSH.mjs +7 -0
- package/lib/{chunk-RGUQOSBU.mjs → chunk-GIFQXB2Q.mjs} +1 -1
- package/lib/{chunk-JAEDM4SI.mjs → chunk-GP5J3DGS.mjs} +1 -1
- package/lib/chunk-GQZEX7LH.mjs +231 -0
- package/lib/{chunk-JSAJS3MY.mjs → chunk-GYDTM62J.mjs} +1 -1
- package/lib/{chunk-OPMO6I45.mjs → chunk-GYFIXUJG.mjs} +1 -1
- package/lib/chunk-GZW2GNFK.mjs +7 -0
- package/lib/chunk-H6BHWAX7.mjs +8 -0
- package/lib/{chunk-EAC5QCE3.mjs → chunk-HDDJ3CVN.mjs} +1 -1
- package/lib/{chunk-5SMWFNE7.mjs → chunk-HDWB4ZOG.mjs} +1 -1
- package/lib/chunk-HGVPBJR6.mjs +7 -0
- package/lib/{chunk-BBRWFKS5.mjs → chunk-HLROVOR6.mjs} +1 -1
- package/lib/{chunk-LKTNQEBS.mjs → chunk-HUOR4M2L.mjs} +1 -1
- package/lib/chunk-HZCS6EED.mjs +8 -0
- package/lib/{chunk-36JOHEJL.mjs → chunk-HZUI56KZ.mjs} +1 -1
- package/lib/chunk-IAB5H7WN.mjs +7 -0
- package/lib/{chunk-X4BXESMQ.mjs → chunk-IQ5UKRHU.mjs} +1 -1
- package/lib/{chunk-54WZUS7J.mjs → chunk-IRQ4WANV.mjs} +1 -1
- package/lib/{chunk-5IZTFMJM.mjs → chunk-IT3DGX37.mjs} +1 -1
- package/lib/chunk-J347SPU6.mjs +49 -0
- package/lib/{chunk-QO53K5W2.mjs → chunk-JANBNTR5.mjs} +1 -1
- package/lib/chunk-JFXQZPRY.mjs +9 -0
- package/lib/{chunk-KAZS5Z6W.mjs → chunk-JRLYWVF4.mjs} +1 -1
- package/lib/{chunk-GKY2JMHY.mjs → chunk-JSNMUTY6.mjs} +1 -1
- package/lib/chunk-JTNJKSAA.mjs +7 -0
- package/lib/{chunk-7WATA4SB.mjs → chunk-JV2LAKWQ.mjs} +1 -1
- package/lib/{chunk-WAPSSYMT.mjs → chunk-JV7K2ZHK.mjs} +1 -1
- package/lib/{chunk-ZBAWJUG2.mjs → chunk-K4TQ7YHX.mjs} +1 -1
- package/lib/chunk-K5PUMHZU.mjs +7 -0
- package/lib/chunk-KH4KLCYG.mjs +7 -0
- package/lib/{chunk-OLCVHL7I.mjs → chunk-KQVLZVOP.mjs} +1 -1
- package/lib/chunk-KWUS7UAV.mjs +19 -0
- package/lib/{chunk-JGZPD4IM.mjs → chunk-L6G73FXM.mjs} +1 -1
- package/lib/{chunk-BAWCOKRW.mjs → chunk-LG466Q5H.mjs} +1 -1
- package/lib/{chunk-GMIGWR6U.mjs → chunk-LHNAR6FC.mjs} +1 -1
- package/lib/chunk-LT4GHEI2.mjs +7 -0
- package/lib/{chunk-EC72TIEG.mjs → chunk-MR262Y3B.mjs} +1 -1
- package/lib/{chunk-LA4KIATH.mjs → chunk-NCCHOV2N.mjs} +1 -1
- package/lib/chunk-NICRSGLS.mjs +7 -0
- package/lib/chunk-NV5QA2HY.mjs +7 -0
- package/lib/{chunk-PR3XCSPO.mjs → chunk-O3GIN5TU.mjs} +1 -1
- package/lib/chunk-O6FHK6NQ.mjs +13 -0
- package/lib/{chunk-M4BLK6HJ.mjs → chunk-O7YIEFG7.mjs} +1 -1
- package/lib/chunk-OCUVAA5E.mjs +7 -0
- package/lib/chunk-OLCS7JCT.mjs +14 -0
- package/lib/chunk-ON7Y63FK.mjs +9 -0
- package/lib/{chunk-N4WPCWJO.mjs → chunk-OO2WY3UB.mjs} +1 -1
- package/lib/{chunk-MSIEU5MR.mjs → chunk-OT2NHL2V.mjs} +1 -1
- package/lib/{chunk-6WX5ZU7Q.mjs → chunk-P2M5ZXWU.mjs} +1 -1
- package/lib/{chunk-GNRSF65U.mjs → chunk-P4YOHLZ4.mjs} +1 -1
- package/lib/chunk-PBHDPTT6.mjs +343 -0
- package/lib/chunk-PE7CHD2W.mjs +7 -0
- package/lib/{chunk-PBY2O6OF.mjs → chunk-PIQ2I67B.mjs} +1 -1
- package/lib/chunk-PKYDNZJK.mjs +7 -0
- package/lib/chunk-PVZ72OOQ.mjs +7 -0
- package/lib/chunk-QACFTHJM.mjs +8 -0
- package/lib/{chunk-J3DND3BC.mjs → chunk-QGVL5EW3.mjs} +1 -1
- package/lib/chunk-QHE2RUWX.mjs +7 -0
- package/lib/{chunk-QKEKG2LD.mjs → chunk-RCW5BZNW.mjs} +1 -1
- package/lib/{chunk-4JE4BYXK.mjs → chunk-RJ6HHG7J.mjs} +1 -1
- package/lib/{chunk-ZQWIVYVM.mjs → chunk-RPTEEI4R.mjs} +1 -1
- package/lib/chunk-RQW5S67A.mjs +7 -0
- package/lib/chunk-RTCMYMED.mjs +7 -0
- package/lib/chunk-RWVX7XSD.mjs +7 -0
- package/lib/{chunk-WY5V5PR3.mjs → chunk-RZOINFNL.mjs} +1 -1
- package/lib/chunk-SOOTWGMQ.mjs +7 -0
- package/lib/chunk-STQ2JMIZ.mjs +7 -0
- package/lib/{chunk-6PD6K7LP.mjs → chunk-SUIPDW5O.mjs} +1 -1
- package/lib/{chunk-TNT27RBG.mjs → chunk-SZOJ7BEJ.mjs} +1 -1
- package/lib/{chunk-4EOHEDFP.mjs → chunk-T542Z54E.mjs} +1 -1
- package/lib/chunk-TAN2CIRI.mjs +21 -0
- package/lib/{chunk-A3MYSOOC.mjs → chunk-TCNBINOG.mjs} +1 -1
- package/lib/chunk-TFDF3DBN.mjs +7 -0
- package/lib/chunk-TICZXC53.mjs +9 -0
- package/lib/chunk-TLX45X5U.mjs +7 -0
- package/lib/{chunk-QTG6LUZT.mjs → chunk-TMIV3IWH.mjs} +1 -1
- package/lib/chunk-TQ6HEJ73.mjs +11 -0
- package/lib/chunk-TTU5EQZ6.mjs +7 -0
- package/lib/chunk-TYUYPFDJ.mjs +7 -0
- package/lib/chunk-TZXYVMZC.mjs +7 -0
- package/lib/chunk-UCUFLFNK.mjs +7 -0
- package/lib/chunk-UK3QLBHW.mjs +7 -0
- package/lib/{chunk-IZGCEOYO.mjs → chunk-UM2B4GR7.mjs} +1 -1
- package/lib/chunk-UZFTTNOP.mjs +7 -0
- package/lib/chunk-V3AXSKSU.mjs +7 -0
- package/lib/chunk-VA6EEI6X.mjs +21 -0
- package/lib/{chunk-OFTT7J2M.mjs → chunk-VFKG2G37.mjs} +1 -1
- package/lib/chunk-VJNEW5MQ.mjs +7 -0
- package/lib/{chunk-L53JWJ3S.mjs → chunk-VKREON6Q.mjs} +1 -1
- package/lib/{chunk-NOBQTEQD.mjs → chunk-VNNDYPBL.mjs} +1 -1
- package/lib/{chunk-ZJW6YOMV.mjs → chunk-VRBETPHY.mjs} +1 -1
- package/lib/{chunk-EPFCERGL.mjs → chunk-VT6P3X6R.mjs} +1 -1
- package/lib/{chunk-ZV7ZFQQC.mjs → chunk-VUTQY76O.mjs} +1 -1
- package/lib/chunk-WF5S4FW5.mjs +7 -0
- package/lib/{chunk-Z4LKKOFY.mjs → chunk-WJGK6VGU.mjs} +1 -1
- package/lib/{chunk-5CRLRHOJ.mjs → chunk-WJHMB3SL.mjs} +1 -1
- package/lib/{chunk-OUZQPYT3.mjs → chunk-WQCXOZEJ.mjs} +1 -1
- package/lib/{chunk-L2E5WBGD.mjs → chunk-WVVFR4E3.mjs} +1 -1
- package/lib/{chunk-PWRJRL5U.mjs → chunk-XBYXT74L.mjs} +1 -1
- package/lib/chunk-XJE3LJHP.mjs +7 -0
- package/lib/{chunk-CPQIZGG5.mjs → chunk-XV4CVZYD.mjs} +1 -1
- package/lib/chunk-Y37ED7AS.mjs +7 -0
- package/lib/{chunk-YTLUYSMF.mjs → chunk-YGBNZYT4.mjs} +1 -1
- package/lib/{chunk-4CVUUVGJ.mjs → chunk-YGTOX7IL.mjs} +1 -1
- package/lib/{chunk-OMNMLKDT.mjs → chunk-YJ27WHKR.mjs} +1 -1
- package/lib/chunk-YRULC27A.mjs +7 -0
- package/lib/{chunk-RMFU4BAL.mjs → chunk-YSVAHT4Q.mjs} +4 -4
- package/lib/chunk-YTOTMJTY.mjs +15 -0
- package/lib/{chunk-B63POIPQ.mjs → chunk-YZKZC62O.mjs} +1 -1
- package/lib/{chunk-DPMRIMUC.mjs → chunk-YZQN7BRB.mjs} +1 -1
- package/lib/{chunk-7SQSWVAU.mjs → chunk-Z5IUK2QO.mjs} +1 -1
- package/lib/{chunk-M2ABR4JM.mjs → chunk-ZEGSMW5A.mjs} +1 -1
- package/lib/{chunk-PR42EZSR.mjs → chunk-ZIKLQZBG.mjs} +1 -1
- package/lib/chunk-ZVU7MD2S.mjs +7 -0
- package/lib/sandforge-autopilot.mjs +33 -27
- package/lib/sandforge-backup.mjs +19 -19
- package/lib/sandforge-checkpoint.mjs +1 -1
- package/lib/sandforge-cleanup.mjs +1 -1
- package/lib/sandforge-clone.mjs +1 -1
- package/lib/sandforge-compare.mjs +32 -14
- package/lib/sandforge-dataops.mjs +1 -1
- package/lib/sandforge-empty.mjs +11 -13
- package/lib/sandforge-env.mjs +105 -105
- package/lib/sandforge-frozen.mjs +1 -1
- package/lib/sandforge-mcp.mjs +2 -2
- package/lib/sandforge-monitor.mjs +1 -1
- package/lib/sandforge-pipeline.mjs +13 -13
- package/lib/sandforge-seed.mjs +1 -1
- package/lib/sandforge-sync.mjs +1 -1
- package/lib/sandforge-users.mjs +13 -15
- package/lib/sandforge.mjs +1 -1
- package/lib/sf/sandforge/dataops.mjs +2 -2
- package/lib/sfPlugin.mjs +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/lib/chunk-23SEDORH.mjs +0 -11
- package/lib/chunk-26POJDIT.mjs +0 -7
- package/lib/chunk-2AZQHBEF.mjs +0 -7
- package/lib/chunk-2METQHGG.mjs +0 -7
- package/lib/chunk-2WFIVO4F.mjs +0 -13
- package/lib/chunk-2YHZBUZE.mjs +0 -7
- package/lib/chunk-326AJTIU.mjs +0 -272
- package/lib/chunk-3PVRGTVK.mjs +0 -7
- package/lib/chunk-5XTUSN72.mjs +0 -8
- package/lib/chunk-6I6TWNV5.mjs +0 -7
- package/lib/chunk-6O222PW6.mjs +0 -7
- package/lib/chunk-6ZLKIT3H.mjs +0 -7
- package/lib/chunk-7QYHEHMA.mjs +0 -9
- package/lib/chunk-B3FBHVNN.mjs +0 -21
- package/lib/chunk-BEA27DLS.mjs +0 -7
- package/lib/chunk-BRY3PLIZ.mjs +0 -7
- package/lib/chunk-CBH3TOWK.mjs +0 -341
- package/lib/chunk-CVHNXJH3.mjs +0 -7
- package/lib/chunk-DGDRQRCW.mjs +0 -7
- package/lib/chunk-DUN2EPRC.mjs +0 -7
- package/lib/chunk-E3A3LOCY.mjs +0 -7
- package/lib/chunk-F2424IKX.mjs +0 -7
- package/lib/chunk-F3AQW6IU.mjs +0 -7
- package/lib/chunk-FNJ4SGWO.mjs +0 -7
- package/lib/chunk-GOOVPVWX.mjs +0 -7
- package/lib/chunk-H2BHESDA.mjs +0 -9
- package/lib/chunk-H4CGM6YO.mjs +0 -7
- package/lib/chunk-HIDW7FNV.mjs +0 -9
- package/lib/chunk-HSBXRQTI.mjs +0 -7
- package/lib/chunk-HUZPBE47.mjs +0 -7
- package/lib/chunk-I6E6T6YY.mjs +0 -7
- package/lib/chunk-IUM4NFKI.mjs +0 -10
- package/lib/chunk-IVFVNNGB.mjs +0 -37
- package/lib/chunk-JCFBFF4Y.mjs +0 -7
- package/lib/chunk-JTJK2D36.mjs +0 -7
- package/lib/chunk-KB4ZHM4Q.mjs +0 -10
- package/lib/chunk-KJWFYBMU.mjs +0 -15
- package/lib/chunk-LC3NDW4N.mjs +0 -7
- package/lib/chunk-OM5NORJG.mjs +0 -7
- package/lib/chunk-OVNMB6Q2.mjs +0 -7
- package/lib/chunk-PEDQPM2P.mjs +0 -926
- package/lib/chunk-PH7SP4YK.mjs +0 -21
- package/lib/chunk-PMN4PAC3.mjs +0 -19
- package/lib/chunk-PMWAFDUB.mjs +0 -48
- package/lib/chunk-PPLVFX6N.mjs +0 -7
- package/lib/chunk-PZBZ7MNC.mjs +0 -7
- package/lib/chunk-QROPNEGY.mjs +0 -14
- package/lib/chunk-RGBGUCJA.mjs +0 -156
- package/lib/chunk-RKTFFCNS.mjs +0 -7
- package/lib/chunk-ROV3QXEF.mjs +0 -475
- package/lib/chunk-RT47RKLY.mjs +0 -7
- package/lib/chunk-SI267LYR.mjs +0 -8
- package/lib/chunk-SRPWW4A2.mjs +0 -10
- package/lib/chunk-T3G6VZNS.mjs +0 -7
- package/lib/chunk-T63U4OZJ.mjs +0 -7
- package/lib/chunk-TEIBWMJM.mjs +0 -7
- package/lib/chunk-TW3N6W5Z.mjs +0 -7
- package/lib/chunk-UBIKR5VO.mjs +0 -7
- package/lib/chunk-UI3JQVRU.mjs +0 -8
- package/lib/chunk-UX3BVH2Y.mjs +0 -7
- package/lib/chunk-VINGECAJ.mjs +0 -10
- package/lib/chunk-VOXJHJIE.mjs +0 -7
- package/lib/chunk-WB2RIVO3.mjs +0 -7
- package/lib/chunk-WXDLQT2O.mjs +0 -10
- package/lib/chunk-XBQGZGWR.mjs +0 -7
- package/lib/chunk-XGGOUNPP.mjs +0 -7
- package/lib/chunk-XKWW3GKF.mjs +0 -7
- package/lib/chunk-YHR4WQPR.mjs +0 -7
- package/lib/chunk-ZQQXSCVI.mjs +0 -7
- package/lib/chunk-ZRUDYB7O.mjs +0 -7
package/lib/sandforge-backup.mjs
CHANGED
|
@@ -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
|
|
7
|
+
import{a as de}from"./chunk-HUOR4M2L.mjs";import{a as D,b as ie,c as ae}from"./chunk-5GBO4KD5.mjs";import"./chunk-E5FSPXYH.mjs";import"./chunk-IQ5UKRHU.mjs";import"./chunk-VT6P3X6R.mjs";import"./chunk-ALWVNR34.mjs";import{a as Q}from"./chunk-QHE2RUWX.mjs";import{c as z}from"./chunk-6FARZYMJ.mjs";import{a as ce}from"./chunk-7KHA5UIQ.mjs";import{E as J,H as F}from"./chunk-YTOTMJTY.mjs";import"./chunk-WJGK6VGU.mjs";import"./chunk-3L6DVNCR.mjs";import"./chunk-54V4FVEY.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-TZXYVMZC.mjs";import{a as V,c as X,d as Y,e as R,f as q,g as N,h as ee,i as te,j as se,k as oe,l as re,m as ne}from"./chunk-TMIV3IWH.mjs";import{Ic as W,Tc as M}from"./chunk-CJAWKLAL.mjs";import"./chunk-PE7CHD2W.mjs";import{h as G,i as H}from"./chunk-VKREON6Q.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import{b as v}from"./chunk-DDNCJVZ2.mjs";import{n as Z}from"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import{h as B}from"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import{a as I,c as O}from"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as L}from"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import{b as E,e as _,f as C,h as K}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import{e as P,g as U}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import{bd as T,x as S}from"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{join as ge}from"node:path";var fe=`sandforge backup \u2014 take and restore DataOps snapshots, without the editor.
|
|
8
8
|
|
|
9
9
|
Usage:
|
|
10
10
|
npx sandforge backup --org <alias> [options]
|
|
@@ -59,7 +59,7 @@ Options:
|
|
|
59
59
|
already too
|
|
60
60
|
--include-changed with --restore of the snapshot a Sync run kept: put
|
|
61
61
|
back the records changed or deleted since the run too
|
|
62
|
-
${
|
|
62
|
+
${ae("written back")} --max-age-days <n> the retention, as sandforge.backup.maxAgeDays sets it:
|
|
63
63
|
snapshots taken more than <n> days ago are removed as
|
|
64
64
|
the command starts, each named on stderr \u2014 the one a
|
|
65
65
|
Sync run kept of what it wrote over too, which removing
|
|
@@ -108,27 +108,27 @@ records \u2014 a set of slices stopped short among them \u2014, or the restore l
|
|
|
108
108
|
values as they are (rows the org refused, a
|
|
109
109
|
snapshot that holds part of the records, or records of a Sync run's snapshot
|
|
110
110
|
changed since the run, held back without --include-changed).
|
|
111
|
-
`,
|
|
112
|
-
`),process.exit(2)}function
|
|
111
|
+
`,ue=/^[A-Za-z][A-Za-z0-9_]{0,79}$/,we={switches:["--list","--slices","--rewrite-all","--include-changed","--yes","--json",...D],values:["--org","--object","--where","--restore","--slice","--delete","--store","--max-records","--max-age-days"]};function b(o){process.stderr.write(`${o}
|
|
112
|
+
`),process.exit(2)}function me(o,e){let s={};for(let r of o){let n=r.indexOf(":"),t=n>0?r.slice(0,n).trim():"",i=n>0?r.slice(n+1).trim():"";(!ue.test(t)||i==="")&&b(`Not a filter --where can take: "${r}". Give the object, a colon and the condition, as --where "Contact:CreatedDate >= 2025-01-01T00:00:00Z".`);let l=e.find(m=>m.toLowerCase()===t.toLowerCase());l===void 0&&b(`--where names ${t}, which the line does not back up: give it with --object ${t}.`),s[l]!==void 0&&b(`Give one --where per object: ${l} is given two.`),P(i)||b(`Not a filter --where can take: "${i}". ${U}`),s[l]=i}return s}function be(o){let e=o.slice(2);(e.includes("--help")||e.includes("-h"))&&(process.stdout.write(fe),process.exit(0)),E(e,we);let s=(g,A)=>{let w=e.indexOf(g);return w>=0&&w+1<e.length?e[w+1]:A},r=g=>{let A=[];for(let w=0;w<e.length;w++)e[w]===g&&w+1<e.length&&A.push(e[w+1]);return A},n=s("--org"),t=e.includes("--list");!n&&!t&&(process.stderr.write(`Missing --org. Run with --help.
|
|
113
113
|
`),process.exit(2));let i=r("--object"),l=s("--restore"),m=r("--delete"),y=[i.length>0,t,l!==void 0,m.length>0].filter(Boolean).length;y===0&&(process.stderr.write(`Nothing to do: give --object, --list, --restore or --delete.
|
|
114
114
|
`),process.exit(2)),y>1&&(process.stderr.write(`Give one of --object, --list, --restore or --delete.
|
|
115
|
-
`),process.exit(2));for(let g of i)
|
|
116
|
-
`),process.exit(2));for(let g of m)/^[A-Za-z0-9_-]{1,200}$/.test(g)||b(`Not a snapshot's id: "${g}"`);let k=
|
|
115
|
+
`),process.exit(2));for(let g of i)ue.test(g)||(process.stderr.write(`Not an SObject API name: "${g}"
|
|
116
|
+
`),process.exit(2));for(let g of m)/^[A-Za-z0-9_-]{1,200}$/.test(g)||b(`Not a snapshot's id: "${g}"`);let k=R(e,"--where"),$=e.includes("--slices");(k.length>0||$)&&i.length===0&&b(`${k.length>0?"--where":"--slices"} goes with --object: it says how the objects a snapshot reads are read.`);let c=me(k,i),d=R(e,"--slice");d.length>0&&l===void 0&&b("--slice goes with --restore: it names the slices of a set to put back. A backup in slices is --slices.");let h=s("--max-records");h!==void 0&&!/^[1-9]\d*$/.test(h)&&(process.stderr.write(`Not a number of records: "${h}"
|
|
117
117
|
`),process.exit(2));let p=e.includes("--rewrite-all");p&&l===void 0&&(process.stderr.write(`--rewrite-all goes with --restore.
|
|
118
118
|
`),process.exit(2));let u=e.includes("--include-changed");u&&l===void 0&&(process.stderr.write(`--include-changed goes with --restore.
|
|
119
|
-
`),process.exit(2));let a=
|
|
120
|
-
`),process.exit(2));let x={objects:i,...Object.keys(c).length>0?{wheres:c}:{},slices:$,restoreId:l,...d.length>0?{restoreSlices:
|
|
121
|
-
`)},r=
|
|
122
|
-
`),process.exitCode=1;return}s(`store: ${e.storeDir}`);let n=
|
|
123
|
-
`);return}d.length===0&&p.length===0&&s(e.org!==void 0?`No snapshot of ${e.org} in this store.`:"No snapshot in this store.");for(let a of d.map(
|
|
124
|
-
`),h?.type!=="backup:delete:result"){process.exitCode=1;return}let p=(h.payload?.deleted??[]).filter(a=>e.deleteIds?.includes(a));for(let a of p)s(`deleted ${a}`);let u=e.deleteIds.filter(a=>!p.includes(a));u.length>0&&(process.stderr.write(`No snapshot or set ${u.join(", ")} of ${e.org} in ${e.storeDir}: nothing deleted for ${u.length===1?"it":"them"}. "${I("backup")} --list --org ${e.org} --store ${e.storeDir}" names those it keeps.
|
|
125
|
-
`),process.exitCode=1);return}let i=await
|
|
119
|
+
`),process.exit(2));let a=Y(s("--max-age-days")),f=ie(e),j=D.filter(g=>e.includes(g));j.length>0&&l===void 0&&(process.stderr.write(`${j.join(", ")} go${j.length===1?"es":""} with --restore.
|
|
120
|
+
`),process.exit(2));let x={objects:i,...Object.keys(c).length>0?{wheres:c}:{},slices:$,restoreId:l,...d.length>0?{restoreSlices:q(d)}:{},...m.length>0?{deleteIds:m}:{},storeDir:s("--store",V())??"",...h!==void 0?{maxRecords:Number(h)}:{},rewriteAll:p,includeChanged:u,...a!==void 0?{maxAgeDays:a}:{},yes:e.includes("--yes"),json:e.includes("--json"),accord:f};return n?t?{...x,list:!0,org:n}:{...x,list:!1,org:n}:{...x,list:!0}}async function ye(o=process.argv){let e=be(o),s=c=>{process[e.json?"stderr":"stdout"].write(`${c}
|
|
121
|
+
`)},r=X(e.storeDir);if(r!==void 0){process.stderr.write(`${r}
|
|
122
|
+
`),process.exitCode=1;return}s(`store: ${e.storeDir}`);let n=Z(ge(e.storeDir,"snapshots.json"));if(e.list){let c=n.getKeysByPrefix("backup:").filter(a=>!a.slice(7).includes(":")).map(a=>n.get(a)).filter(a=>a.origin!=="slice"),d=e.org!==void 0?he(c,e.org):c,h=oe(n),p=e.org!==void 0?he(h,e.org):h,u=M({getSandforgeSetting:N(e)});if(e.json){process.stdout.write(`${JSON.stringify(Se(d,p,u),null,2)}
|
|
123
|
+
`);return}d.length===0&&p.length===0&&s(e.org!==void 0?`No snapshot of ${e.org} in this store.`:"No snapshot in this store.");for(let a of d.map($e))s(a);p.length>0&&s("sets of slices, each restored and deleted whole:");for(let a of p)s(` ${ne(a,u)}`);return}let t=[];if(e.deleteIds){let c=await le(e,n,s,t),d=`cli-delete-${Date.now()}`;await c.handle({id:d,type:"backup:delete",payload:{orgId:e.org,operationIds:e.deleteIds}});let h=t.find(a=>a.correlationId===d);if(e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
|
|
124
|
+
`),h?.type!=="backup:delete:result"){process.exitCode=1;return}let p=(h.payload?.deleted??[]).filter(a=>e.deleteIds?.includes(a));for(let a of p)s(`deleted ${a}`);let u=e.deleteIds.filter(a=>!p.includes(a));u.length>0&&(process.stderr.write(`No snapshot or set ${u.join(", ")} of ${e.org} in ${e.storeDir}: nothing deleted for ${u.length===1?"it":"them"}. "${I("backup")} --list --org ${e.org} --store ${O(e.storeDir)}" names those it keeps.
|
|
125
|
+
`),process.exitCode=1);return}let i=await L(e.org),l=await new ce().validateConnection(i.accessToken,i.instanceUrl),m={alias:i.alias,orgType:T({isSandbox:l.isSandbox,edition:l.orgType}),metadata:{apiVersion:"66.0",edition:l.orgType}},y=await le(e,n,s,t,{typed:m,session:i}),k=c=>t.find(d=>d.correlationId===c);if(e.restoreId){let c=te(n,e.restoreId,{...e.restoreSlices?{slices:e.restoreSlices}:{},rewriteAll:e.rewriteAll});c||(process.stderr.write(`No snapshot "${e.restoreId}" in ${e.storeDir}. "${I("backup")} --list --org ${e.org} --store ${O(e.storeDir)}" names those it keeps; a snapshot taken with another --store, or with SANDFORGE_JOURNAL_DIR set otherwise, is restored with that --store. Nothing was written.
|
|
126
126
|
`),process.exit(1));let d=`cli-restore-automation-${Date.now()}`;await y.handle({id:d,type:"dataops:automation",payload:{orgId:e.org,act:"restore",objects:c.objects,...e.accord}});let h=k(d);if(h?.type!=="dataops:automation:response"){process.exitCode=1,e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
|
|
127
|
-
`);return}let p=h.payload;for(let f of p.lines)s(f);if(p.refusals.length>0){for(let f of p.refusals)process.stderr.write(`${
|
|
127
|
+
`);return}let p=h.payload;for(let f of p.lines)s(f);if(p.refusals.length>0){for(let f of p.refusals)process.stderr.write(`${z(f)}
|
|
128
128
|
`);process.exitCode=1,e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
|
|
129
|
-
`);return}if(!e.yes&&!await v(`Upsert ${c.words} back into ${e.org}? ${c.totalRecords} record(s) with these Ids will have their fields overwritten.`)){s("Nothing written.");return}s(`restoring ${e.restoreId} into ${e.org}${e.rewriteAll?", every row written back":""}\u2026`),await y.handle({id:`cli-restore-${Date.now()}`,type:"dataops:rollback",payload:{orgId:e.org,operationId:e.restoreId,...e.rewriteAll?{rewriteAll:!0}:{},...e.includeChanged?{includeChanged:!0}:{},...e.restoreSlices?{slices:e.restoreSlices}:{},...e.accord}});let u=t.find(f=>f.type==="dataops:rollback:response"),a=u?.payload??{};typeof a.message=="string"&&s(a.message);for(let f of
|
|
129
|
+
`);return}if(!e.yes&&!await v(`Upsert ${c.words} back into ${e.org}? ${c.totalRecords} record(s) with these Ids will have their fields overwritten.`)){s("Nothing written.");return}s(`restoring ${e.restoreId} into ${e.org}${e.rewriteAll?", every row written back":""}\u2026`),await y.handle({id:`cli-restore-${Date.now()}`,type:"dataops:rollback",payload:{orgId:e.org,operationId:e.restoreId,...e.rewriteAll?{rewriteAll:!0}:{},...e.includeChanged?{includeChanged:!0}:{},...e.restoreSlices?{slices:e.restoreSlices}:{},...e.accord}});let u=t.find(f=>f.type==="dataops:rollback:response"),a=u?.payload??{};typeof a.message=="string"&&s(a.message);for(let f of se(a))s(f);u&&C(_(a))}else{s(`snapshot ${e.org}: ${e.objects.map(d=>`${d}${e.wheres?.[d]!==void 0?` (where ${e.wheres[d]})`:""}`).join(", ")}${e.slices?", in slices":""}`),await y.handle({id:`cli-backup-${Date.now()}`,type:"backup:execute",payload:{orgId:e.org,objects:e.objects,...e.wheres?{wheres:e.wheres}:{},...e.slices?{slices:!0}:{}}});let c=t.find(d=>d.type==="dataops:backup:response");if(c){let d=je(c.payload??{});s(d.line),C(d.exitCode)}}if(e.json){process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
|
|
130
130
|
`);return}let $=t[t.length-1];$&&s(`
|
|
131
|
-
last message: ${String($.type)}`)}async function
|
|
132
|
-
`),Promise.resolve(!1)):v(`${i.alias} answered as org ${i.backedUpFrom} when this snapshot was taken and answers as org ${i.now} now. Write its saved values into the org it is now?`)},nextId:()=>`cli-${Date.now()}-${Math.random().toString(36).slice(2,8)}`});return t.setExpiryListener(i=>process.stderr.write(`${
|
|
133
|
-
`)),t.setRunKeyStore(
|
|
134
|
-
`),process.exit(1)}));export{
|
|
131
|
+
last message: ${String($.type)}`)}async function le(o,e,s,r,n){let t=new F({log:i=>s(` ${i}`),broker:{postToWebview:i=>{r.push(i);let l=String(i.type??"");(l.endsWith(":error")||l.includes("failed"))&&(s(` ! ${JSON.stringify(i.payload??i)}`),process.exitCode=1)}},orgManager:{getOrg:()=>n?.typed},orgRegistry:{getCredentials:async()=>{if(!n)throw new Error("This command reaches no org.");return{accessToken:n.session.accessToken,instanceUrl:n.session.instanceUrl}}},configStore:e,services:{getSandforgeSetting:N(o)},infraServices:{productionGuard:de(s,o.org??""),confirmRestoreIntoReplacedOrg:i=>o.yes?(process.stderr.write(`${Ae(i)}
|
|
132
|
+
`),Promise.resolve(!1)):v(`${i.alias} answered as org ${i.backedUpFrom} when this snapshot was taken and answers as org ${i.now} now. Write its saved values into the org it is now?`)},nextId:()=>`cli-${Date.now()}-${Math.random().toString(36).slice(2,8)}`});return t.setExpiryListener(i=>process.stderr.write(`${ee(i)}
|
|
133
|
+
`)),t.setRunKeyStore(J(o.storeDir)),t.setBackupRecordStore(new H(G(o.storeDir))),await t.swept(),t.setSyncRuns(B(Q())),t}function ke(o,e){return o!==void 0&&e!==void 0&&o.length>=15&&o.slice(0,15)===e.slice(0,15)}function he(o,e){let s=o.flatMap(r=>r.orgId===e&&r.organizationId!==void 0?[r.organizationId]:[]);return o.filter(r=>r.orgId===e||s.some(n=>ke(n,r.organizationId)))}function $e(o){let e=o.objects.map(s=>`${s.objectApiName}:${s.recordCount}`+(s.stoppedAt!==void 0?`/${s.orgCount??"?"}(${s.stoppedAt})`:"")+(s.where!==void 0?`(where ${s.where})`:""));return`${o.operationId} ${o.timestamp} ${o.orgId??"?"} ${o.totalRecords} record(s)${o.status==="failed"?" failed part-way":""} ${e.join(" ")}`}function Ae(o){return`${o.alias} answered as org ${o.backedUpFrom} when this snapshot was taken, and answers as org ${o.now} now: a sandbox refreshed since, or another org. --yes does not answer whether to write the snapshot's values into the org it is now, and counts as no: nothing is written. Run the restore again without --yes, in a terminal, to answer it.`}function Se(o,e=[],s=0){return{tool:"sandforge-backup",...e.length>0?{sets:e.map(r=>{let n=re(r,s);return{...W(r),...r.organizationId!==void 0?{organizationId:r.organizationId}:{},...n!==void 0?{expiresOn:n}:{}}})}:{},snapshots:o.map(r=>({operationId:r.operationId,timestamp:r.timestamp,...r.orgId!==void 0?{orgId:r.orgId}:{},...r.organizationId!==void 0?{organizationId:r.organizationId}:{},totalRecords:r.totalRecords,...r.status!==void 0?{status:r.status}:{},objects:r.objects}))}}function je(o){let e=String(o.operationId??"?"),s=(o.objects??[]).filter(t=>t.truncated===!0);if(o.slices!==void 0)return xe(o.slices,s);let r=`snapshot ${e}: ${String(o.totalRecords??0)} record(s)`;if(o.partial!==!0&&s.length===0)return{line:`${r} (--restore ${e} puts them back)`,exitCode:0};let n=s.map(t=>`${t.objectApiName} ${t.recordCount} of ${t.orgCount??"?"}`+(t.stoppedAt!==void 0?` (${t.stoppedAt})`:""));return{line:`${r} (partial: ${n.join(", ")||"an object holds fewer records than the org"})`+Ie(s),exitCode:3}}function xe(o,e){let s=o.objects.flatMap(t=>t.slices),r=s.reduce((t,i)=>t+i.rows,0),n=`set ${o.setId}: ${r} record(s) in ${s.length} slice(s) of up to ${o.size}`+(s.length>0?` (--restore ${o.setId} puts them back)`:"");return o.state==="done"&&e.length===0?{line:n,exitCode:0}:{line:`${n}, partial: ${e.map(t=>t.objectApiName).join(", ")||"an object"} not read to its end, its reason above. The same line takes a new set of every record`,exitCode:3}}function Ie(o){let e=o.filter(t=>t.stoppedAt==="cap"&&t.orgCount!==void 0),s=e.filter(t=>(t.orgCount??0)<=S),r=e.filter(t=>(t.orgCount??0)>S),n=[];if(s.length>0){let t=Math.max(...s.map(i=>i.orgCount??0));n.push(`--max-records ${t} takes ${s.map(i=>i.objectApiName).join(", ")} whole, or --slices takes it in slices of --max-records records, listed and restored as one set`)}if(r.length>0){let t=r.map(i=>i.objectApiName).join(", ");n.push(`No snapshot holds more than ${S} records of one object: ${t} ${r.length===1?"is":"are"} not whole, and a restore puts back only what it holds. --slices takes it whole, in slices of --max-records records, each a snapshot of its own, listed and restored as one set`)}return o.some(t=>t.stoppedAt==="not_reached"||t.stoppedAt==="failure")&&n.push("Run it again for an object not reached"),n.length>0?`. ${n.join(". ")}`:""}process.argv[1]?.includes("sandforge-backup")&&(K(),ye().then(()=>process.exit(process.exitCode??0)).catch(o=>{process.stderr.write(`${o instanceof Error?o.message:String(o)}
|
|
134
|
+
`),process.exit(1)}));export{ye as main,be as parseArgs,Ae as replacedOrgYesWords,Se as snapshotListing,je as snapshotTaken,me as wheresOf};
|
|
@@ -4,4 +4,4 @@ import { dirname as __sandforgeDirname } from 'node:path';
|
|
|
4
4
|
const require = __sandforgeRequire(import.meta.url);
|
|
5
5
|
const __filename = __sandforgePath(import.meta.url);
|
|
6
6
|
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
-
import{A as D,B as E,C as F,D as G,a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B,z as C}from"./chunk-
|
|
7
|
+
import{A as D,B as E,C as F,D as G,E as H,a as d,b as e,c as f,d as g,e as h,f as i,g as j,h as k,i as l,j as m,k as n,l as o,m as p,n as q,o as r,p as s,q as t,r as u,s as v,t as w,u as x,v as y,w as z,x as A,y as B,z as C}from"./chunk-6NG7C2U3.mjs";import"./chunk-RWVX7XSD.mjs";import"./chunk-SOOTWGMQ.mjs";import"./chunk-O6FHK6NQ.mjs";import"./chunk-GFB2DNCB.mjs";import{b as a,c as b,e as c}from"./chunk-JFXQZPRY.mjs";import"./chunk-BBZUGKBZ.mjs";import"./chunk-P4YOHLZ4.mjs";import"./chunk-35IJ4WEU.mjs";import"./chunk-A2TXLAC3.mjs";import"./chunk-PBHDPTT6.mjs";import"./chunk-INIQ23K6.mjs";import"./chunk-SUIPDW5O.mjs";import"./chunk-VA6EEI6X.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-XV4CVZYD.mjs";import"./chunk-BLMJ4WVI.mjs";import"./chunk-4NSXPONF.mjs";import"./chunk-TAN2CIRI.mjs";import"./chunk-AXTB2HJS.mjs";import"./chunk-NCCHOV2N.mjs";import"./chunk-2LSGWTWX.mjs";import"./chunk-LHNAR6FC.mjs";import"./chunk-XBYXT74L.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-UM2B4GR7.mjs";import"./chunk-2YJJTQNC.mjs";import"./chunk-4VLP6RHC.mjs";import"./chunk-YRULC27A.mjs";import"./chunk-GYDTM62J.mjs";import"./chunk-5JMQXHJ2.mjs";import"./chunk-HLROVOR6.mjs";import"./chunk-WF5S4FW5.mjs";import"./chunk-FV6MOSHD.mjs";import"./chunk-T542Z54E.mjs";import"./chunk-DO6PSHQZ.mjs";import"./chunk-ZIKLQZBG.mjs";import"./chunk-FYG47CNA.mjs";import"./chunk-GMY5427L.mjs";import"./chunk-HUOR4M2L.mjs";import"./chunk-Z5IUK2QO.mjs";import"./chunk-TLX45X5U.mjs";import"./chunk-E5FSPXYH.mjs";import"./chunk-IQ5UKRHU.mjs";import"./chunk-VT6P3X6R.mjs";import"./chunk-ALWVNR34.mjs";import"./chunk-QHE2RUWX.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-ON7Y63FK.mjs";import"./chunk-7KHA5UIQ.mjs";import"./chunk-YTOTMJTY.mjs";import"./chunk-WJGK6VGU.mjs";import"./chunk-3L6DVNCR.mjs";import"./chunk-54V4FVEY.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-TZXYVMZC.mjs";import"./chunk-TMIV3IWH.mjs";import"./chunk-CJAWKLAL.mjs";import"./chunk-PE7CHD2W.mjs";import"./chunk-VKREON6Q.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-DDNCJVZ2.mjs";import"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{A as acceptanceRefusal,f as checkpointsOf,d as defaultName,z as heldObjectsOrStop,h as invalidRefusal,x as keepsOutside,v as keptForOutsideLine,y as keptLines,q as linkWritesOf,k as listEntryJson,j as listLines,G as main,r as orgDiffers,e as parseArgs,u as previewExitCode,t as previewJson,s as previewLines,a as previewTotals,i as replayCommandFor,p as requestsLine,g as resolveCheckpoint,F as resultExitCode,E as resultJson,C as rewindLines,B as rewindQuestion,c as rewindStepsOf,l as scopeJson,n as scopeLines,b as selectionDiff,w as selectionLines,o as takeLines,m as takeRefusalWords,H as undoLine,D as undoLines};
|
|
@@ -4,7 +4,7 @@ import { dirname as __sandforgeDirname } from 'node:path';
|
|
|
4
4
|
const require = __sandforgeRequire(import.meta.url);
|
|
5
5
|
const __filename = __sandforgePath(import.meta.url);
|
|
6
6
|
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
-
import{c as k}from"./chunk-
|
|
7
|
+
import{c as k}from"./chunk-Z5IUK2QO.mjs";import{a as Z,b as Q,c as K,d as V}from"./chunk-5GBO4KD5.mjs";import{c as I,e as Y}from"./chunk-6FARZYMJ.mjs";import{h as U,i as H,j as B}from"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import{b as L,c as P}from"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import{Qa as J,x as W,ya as z}from"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import{a as D,b as M}from"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import{b as v,c as N,f as q,h as X}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import{a as F}from"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import{a as j,h as R}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";var te=/^[A-Za-z0-9]{15}([A-Za-z0-9]{3})?$/,re=/^\d{4}-\d{2}-\d{2}$/,se=["CaseComment","EmailMessage","Asset","Contract","Case","Contact","Account"],ne=`sandforge cleanup \u2014 Bulk delete records you created on a sandbox in the
|
|
8
8
|
--since window, whether or not a clone wrote them. Preview with --dry-run and
|
|
9
9
|
narrow with --objects before deleting.
|
|
10
10
|
|
package/lib/sandforge-clone.mjs
CHANGED
|
@@ -4,4 +4,4 @@ import { dirname as __sandforgeDirname } from 'node:path';
|
|
|
4
4
|
const require = __sandforgeRequire(import.meta.url);
|
|
5
5
|
const __filename = __sandforgePath(import.meta.url);
|
|
6
6
|
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
-
import{$ as M,$a as Ma,$b as Mb,A as l,Aa as la,Ab as lb,B as m,Ba as ma,Bb as mb,C as n,Ca as na,Cb as nb,D as o,Da as oa,Db as ob,E as p,Ea as pa,Eb as pb,F as q,Fa as qa,Fb as qb,G as r,Ga as ra,Gb as rb,H as s,Ha as sa,Hb as sb,I as t,Ia as ta,Ib as tb,J as u,Ja as ua,Jb as ub,K as v,Ka as va,Kb as vb,L as w,La as wa,Lb as wb,M as x,Ma as xa,Mb as xb,N as y,Na as ya,Nb as yb,O as z,Oa as za,Ob as zb,P as A,Pa as Aa,Pb as Ab,Q as B,Qa as Ba,Qb as Bb,R as C,Ra as Ca,Rb as Cb,S as D,Sa as Da,Sb as Db,T as E,Ta as Ea,Tb as Eb,U as F,Ua as Fa,Ub as Fb,V as G,Va as Ga,Vb as Gb,W as H,Wa as Ha,Wb as Hb,X as I,Xa as Ia,Xb as Ib,Y as J,Ya as Ja,Yb as Jb,Z as K,Za as Ka,Zb as Kb,_ as L,_a as La,_b as Lb,aa as N,ab as Na,ac as Nb,ba as O,bb as Oa,bc as Ob,ca as P,cb as Pa,cc as Pb,da as Q,db as Qa,dc as Qb,ea as R,eb as Ra,ec as Rb,fa as S,fb as Sa,fc as Sb,ga as T,gb as Ta,gc as Tb,ha as U,hb as Ua,ia as V,ib as Va,ja as W,jb as Wa,ka as X,kb as Xa,la as Y,lb as Ya,ma as Z,mb as Za,na as _,nb as _a,oa as $,ob as $a,pa as aa,pb as ab,q as b,qa as ba,qb as bb,r as c,ra as ca,rb as cb,s as d,sa as da,sb as db,t as e,ta as ea,tb as eb,u as f,ua as fa,ub as fb,v as g,va as ga,vb as gb,w as h,wa as ha,wb as hb,x as i,xa as ia,xb as ib,y as j,ya as ja,yb as jb,z as k,za as ka,zb as kb}from"./chunk-
|
|
7
|
+
import{$ as M,$a as Ma,$b as Mb,A as l,Aa as la,Ab as lb,B as m,Ba as ma,Bb as mb,C as n,Ca as na,Cb as nb,D as o,Da as oa,Db as ob,E as p,Ea as pa,Eb as pb,F as q,Fa as qa,Fb as qb,G as r,Ga as ra,Gb as rb,H as s,Ha as sa,Hb as sb,I as t,Ia as ta,Ib as tb,J as u,Ja as ua,Jb as ub,K as v,Ka as va,Kb as vb,L as w,La as wa,Lb as wb,M as x,Ma as xa,Mb as xb,N as y,Na as ya,Nb as yb,O as z,Oa as za,Ob as zb,P as A,Pa as Aa,Pb as Ab,Q as B,Qa as Ba,Qb as Bb,R as C,Ra as Ca,Rb as Cb,S as D,Sa as Da,Sb as Db,T as E,Ta as Ea,Tb as Eb,U as F,Ua as Fa,Ub as Fb,V as G,Va as Ga,Vb as Gb,W as H,Wa as Ha,Wb as Hb,X as I,Xa as Ia,Xb as Ib,Y as J,Ya as Ja,Yb as Jb,Z as K,Za as Ka,Zb as Kb,_ as L,_a as La,_b as Lb,aa as N,ab as Na,ac as Nb,ba as O,bb as Oa,bc as Ob,ca as P,cb as Pa,cc as Pb,da as Q,db as Qa,dc as Qb,ea as R,eb as Ra,ec as Rb,fa as S,fb as Sa,fc as Sb,ga as T,gb as Ta,gc as Tb,ha as U,hb as Ua,hc as Ub,ia as V,ib as Va,ic as Vb,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-E5FSPXYH.mjs";import"./chunk-IQ5UKRHU.mjs";import"./chunk-VT6P3X6R.mjs";import"./chunk-ALWVNR34.mjs";import{a}from"./chunk-QHE2RUWX.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-DDNCJVZ2.mjs";import"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{Gb as CLONE_PREVIEW_UNREAD,N as FIELD_EXCLUSION_UNMATCHED,Pb as ROOT_NEVER_CREATED,lb as SWEEP_CLASS_FLAGS,Qb as TABLE_NEVER_CLONED,G as adaptDescribe,q as anonymizationJson,p as anonymizeLine,b as apiRequestsLine,E as auditDepsOf,gb as automationHeldLines,X as choicesLines,B as cliRunSetup,kb as cliSweepInput,ia as cloneApiRequestsJson,n as cloneInputLine,m as cloneInputOf,Hb as clonePreviewJson,Ib as clonePreviewLines,o as cloneSubjectOf,sb as commandSweepTies,Z as contactPointLines,Jb as datedFromItsJournal,Y as decisionLines,J as describeObjectInfo,I as describeOnce,ha as discoveryRequestsLine,aa as dryRunAdminChanges,Db as earlierOfTheRun,Vb as endOfAThrow,Fa as executeOptions,K as failedOutright,sa as fewerRootsOf,pa as fewerRootsWords,O as fieldExclusionUnmatchedWords,P as fieldExclusionsUnmatchedLines,R as fieldExclusionsUnmatchedOf,Q as fieldExclusionsUnmatchedRefusal,F as fieldInfosOf,M as fileLines,ma as fitKeyWords,Ca as graphCounts,ea as graphLine,Nb as interruptedLine,a as journalDirOf,Va as journalGoneWords,zb as journalPartsOf,ba as jsonResult,Ea as listedObjects,H as loadRecordTypes,Tb as lostJobsBeforeTheMute,Ub as main,cb as maxTotalRefusal,j as missingFlagsWords,_ as neutralizedUpsertKeys,g as neverClonedTableRefusal,Da as notCountedObjectsOf,ca as objectOutcomeLine,da as objectOutcomePrinter,S as orphanParentsCappedLine,ib as otherPartIdsOf,Ab as otherPartsOf,jb as otherPartsSweepLines,rb as otherRunsOf,x as parseArgs,Qa as parseRemoveArgs,Wa as parseRunSummary,Kb as parseVerifyArgs,yb as partsLeft,Za as partsLeftLines,na as personAccountsAsBusinessLine,$a as platformCopiesWords,Na as productionRefusal,c as queryRootOf,_a as quoteCopiesLines,u as readChoicesFile,vb as readEarlierRemovals,L as recordTypeGivenLines,Pa as rehearsalLines,Oa as rehearsalPlanLines,bb as removalLines,Xa as removalPlan,Ya as removalPlanLines,wb as removalsAfter,Cb as removalsOfParts,tb as removalsPath,Fb as removeMain,D as resumeChangedWords,C as resumeRefusal,A as resumedJournalPath,Rb as rootNeverCreatedRefusal,w as rootsArgsOf,U as rootsAskedJson,Ha as rootsChosenFirst,V as rootsLines,qa as rootsMaxTotalRefusal,Ga as rootsOptionsOf,ra as rootsStorageRefusal,xb as runInPartsOf,ub as runKey,Sa as runMuteSchema,Bb as runRemovalsAfter,Ua as runSummaryOfFile,Ta as runUserIdOf,v as sampleArgsOf,ua as sampleAskedOf,ta as sampleBudgetOf,wa as sampleJson,va as sampleLines,za as sampleReadsLine,Ba as sampleRefusalExit,xa as sampleResultJson,ya as sampleResultLines,Aa as samplingProgressPrinter,W as simulationGapLines,T as summaryLines,mb as sweepClassArgsOf,nb as sweepClassOptions,hb as sweepLines,eb as sweepListingLines,db as sweepOptionWords,pb as sweepOrgOf,ob as sweepPartsOptions,fb as sweepUnsaid,Ra as sweepUserHint,qb as syncRunSpanOf,l as tablesExecuteOptions,e as tablesLeftOut,f as tablesNotReached,h as tablesNotReachedWords,d as tablesQueryOf,k as tablesRunConfig,Ka as targetAutomationReader,La as targetGapReader,i as templateWithoutInputWords,ab as tookAlongLines,Ma as typeOrg,y as uncertainRefusal,z as uncertainRetryAt,$ as upsertKeyLines,Lb as verificationLines,Mb as verifyMain,ga as wholeOrgGateLines,fa as wholeOrgGraphLine,t as wholeOrgGraphOf,oa as wholeOrgMaxTotalRefusal,s as wholeOrgOptions,ja as wholeOrgQuestion,ka as wholeOrgQuestionWords,la as wholeOrgRefusalWords,r as wholeOrgRunConfig,Ob as wholeOrgSweepLine,Sb as wholeOrgWriteDeps,Ja as withTemplateFields,Ia as withTheJournal,Eb 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{q}from"./chunk-
|
|
7
|
+
import{q as ne}from"./chunk-VA6EEI6X.mjs";import"./chunk-BXZ73A5M.mjs";import"./chunk-XV4CVZYD.mjs";import"./chunk-BLMJ4WVI.mjs";import"./chunk-4NSXPONF.mjs";import"./chunk-TAN2CIRI.mjs";import"./chunk-AXTB2HJS.mjs";import"./chunk-NCCHOV2N.mjs";import"./chunk-2LSGWTWX.mjs";import"./chunk-LHNAR6FC.mjs";import"./chunk-XBYXT74L.mjs";import"./chunk-UV74P4H2.mjs";import"./chunk-UM2B4GR7.mjs";import"./chunk-2YJJTQNC.mjs";import"./chunk-4VLP6RHC.mjs";import"./chunk-YRULC27A.mjs";import"./chunk-GYDTM62J.mjs";import"./chunk-5JMQXHJ2.mjs";import"./chunk-HLROVOR6.mjs";import"./chunk-WF5S4FW5.mjs";import"./chunk-FV6MOSHD.mjs";import"./chunk-T542Z54E.mjs";import"./chunk-DO6PSHQZ.mjs";import"./chunk-ZIKLQZBG.mjs";import"./chunk-FYG47CNA.mjs";import"./chunk-GMY5427L.mjs";import{a as te}from"./chunk-HUOR4M2L.mjs";import{a as W}from"./chunk-Z5IUK2QO.mjs";import"./chunk-ON7Y63FK.mjs";import"./chunk-7KHA5UIQ.mjs";import"./chunk-YTOTMJTY.mjs";import"./chunk-WJGK6VGU.mjs";import"./chunk-3L6DVNCR.mjs";import"./chunk-54V4FVEY.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-TZXYVMZC.mjs";import{b as L,c as ee}from"./chunk-TMIV3IWH.mjs";import"./chunk-CJAWKLAL.mjs";import{a as Q,b as T,c as k,d as z}from"./chunk-PE7CHD2W.mjs";import"./chunk-VKREON6Q.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import{c as Y,f as J,g as X,k as K}from"./chunk-DDNCJVZ2.mjs";import"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import{b as P}from"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import{b as V,f as O,h as Z}from"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import{ed as U,oc as E,pc as R,qc as F,rc as I}from"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{randomUUID as M}from"node:crypto";var he=`sandforge compare \u2014 compare two orgs the way the Compare page does, without the editor, and deploy what differs as its Deploy tab does.
|
|
8
8
|
|
|
9
9
|
Usage:
|
|
10
10
|
npx sandforge compare --source <alias> --target <alias> [options]
|
|
@@ -18,11 +18,18 @@ Options:
|
|
|
18
18
|
--op <name> execute | permissions | snapshots | drift |
|
|
19
19
|
validate-deployment; repeat for more
|
|
20
20
|
(default: the first four, or validate-deployment
|
|
21
|
-
alone when --validate is given
|
|
21
|
+
alone when --validate is given; with no --type or
|
|
22
|
+
--all-types, the last three, and a line says the
|
|
23
|
+
diff was left out)
|
|
22
24
|
--type <Type> a metadata category to diff (execute); repeat for more
|
|
23
25
|
--all-types every category the page offers, as "Select all" does
|
|
24
26
|
--exclude-managed leave out what a managed package installed (execute),
|
|
25
27
|
as the page does with its box unticked
|
|
28
|
+
--read-budget <n> the components a diff (execute) reads by content from
|
|
29
|
+
each org: default 500, at most 30000. Each 10 more is
|
|
30
|
+
a readMetadata call more in each org (Apex, a query
|
|
31
|
+
per 50), and the time it reads for grows with it, 90 s
|
|
32
|
+
per 500; the run waits for it
|
|
26
33
|
--validate <Type:Name> a component to validate a deployment of, from the
|
|
27
34
|
source to the target; repeat for more
|
|
28
35
|
--deploy <Type:Name> a component to deploy from the source to the target,
|
|
@@ -55,7 +62,10 @@ Options:
|
|
|
55
62
|
|
|
56
63
|
A comparison writes nothing to either org. A validation deploys check-only:
|
|
57
64
|
the target compiles the components and runs the tests, keeps none of them,
|
|
58
|
-
and lists the validation in Setup \u203A Deployment Status.
|
|
65
|
+
and lists the validation in Setup \u203A Deployment Status. A Ctrl-C, a SIGTERM or
|
|
66
|
+
a SIGHUP, from the first org connected on, stops the wait: the run says what
|
|
67
|
+
it had sent, names the validation the target runs on, which keeps nothing,
|
|
68
|
+
and exits 130, 143 or 129.
|
|
59
69
|
|
|
60
70
|
--deploy deploys, as the Deploy tab of the Compare page does: it validates the
|
|
61
71
|
components in the target first, then, once the validation succeeds and the
|
|
@@ -64,7 +74,11 @@ validated, with the same tests. A deployment is all or nothing: the target
|
|
|
64
74
|
rolls a failed one back. It deletes nothing from the target, and the audit
|
|
65
75
|
trail of the store records it. A production target, or one that cannot be
|
|
66
76
|
told from one, is refused before anything is sent to either org, --dry-run
|
|
67
|
-
included; no flag lifts it.
|
|
77
|
+
included; no flag lifts it. A Ctrl-C, a SIGTERM or a SIGHUP stops the wait,
|
|
78
|
+
not the org: the run says what it sent, names the validation or the
|
|
79
|
+
deployment the target runs, which goes on there, and exits 130, 143 or 129;
|
|
80
|
+
the audit trail of the store records a deployment it let go of as left
|
|
81
|
+
running.
|
|
68
82
|
|
|
69
83
|
Exit codes: 0 every request was answered, every validation succeeded and,
|
|
70
84
|
with --deploy, the deployment succeeded (a diff is read, whatever it found,
|
|
@@ -74,13 +88,17 @@ was refused or was not answered in time; 2 a bad command line, or --deploy
|
|
|
74
88
|
with no terminal to type the alias on and no --yes; 3 a validation or a
|
|
75
89
|
deployment came back with no success, a component error or a failed test (a
|
|
76
90
|
deployment rolled back leaves nothing in the target), or --fail-on-drift and
|
|
77
|
-
a diff found differences
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
`)},r=e.terminal??{input:process.stdin,output:process.stderr},{deploy:s}=t;s&&!s.dryRun&&!s.yes&&r.input.isTTY!==!0&&(process.stderr.write(`--deploy asks for ${t.target} to be typed before it deploys, and no terminal is here to type it on: give --yes to deploy without the question, or --dry-run to list what it would deploy. Nothing was sent to either org.
|
|
81
|
-
`),process.
|
|
82
|
-
`),process.
|
|
83
|
-
`),
|
|
84
|
-
`)
|
|
85
|
-
`)};if(
|
|
86
|
-
`
|
|
91
|
+
a diff found differences; 130, 143, 129 a run stopped by a Ctrl-C, a
|
|
92
|
+
SIGTERM or a SIGHUP.
|
|
93
|
+
`,se=["execute","permissions","snapshots","drift","validate-deployment"],we=["execute","permissions","snapshots","drift"],N=["CustomObject","CustomField","RecordType","ApexClass","ApexTrigger","LightningComponentBundle","Flow","WorkflowRule","ValidationRule","Profile","PermissionSet","Layout","CustomLabel","CustomMetadata","StaticResource","EmailTemplate","Report","Dashboard"],$e=5*6e4;function ve(t){let e=k(t).seconds-Q.seconds;return $e+e*1e3}var le=(2*R.retrieve+R.deploy+1)*6e4,Te=(R.deploy+1)*6e4,be=new Set(["ApexClass","ApexTrigger"]),Se={switches:["--all-types","--exclude-managed","--json","--fail-on-drift","--yes","--dry-run"],values:["--source","--target","--op","--type","--validate","--deploy","--tests","--run-test","--store","--wait","--read-budget"]};function Re(t){let e=t.slice(2);(e.includes("--help")||e.includes("-h"))&&(process.stdout.write(he),process.exit(0)),V(e,Se);let n=(u,y)=>{let f=e.indexOf(u);return f>=0&&f+1<e.length?e[f+1]:y},r=u=>{let y=[];for(let f=0;f<e.length;f++)e[f]===u&&f+1<e.length&&y.push(e[f+1]);return y},o=u=>{process.stderr.write(`${u}
|
|
94
|
+
`),process.exit(2)},s=n("--source"),a=n("--target");(!s||!a)&&o("Missing --source or --target. Run with --help."),s===a&&o("--source and --target name the same org.");let i=r("--op");for(let u of i)u==="deploy"&&o("deploy is no --op: give each component to --deploy Type:Name, which validates them in the target, then deploys what the target validated."),se.includes(u)||o(`Not an operation: "${u}". One of: ${se.join(", ")}.`);let d=De(e,r,n,o);if(d!==void 0)return{source:s,target:a,operations:[],diffLeftOut:!1,types:[],includeManaged:!0,validation:{components:[],testLevel:"NoTestRun",runTests:[]},deploy:d,storeDir:n("--store")??L("compare"),waitMs:re(n,o),json:e.includes("--json"),failOnDrift:!1};for(let u of["--yes","--dry-run"])e.includes(u)&&o(`${u} goes with --deploy, the one request of this command that writes to an org.`);let p=pe(r,n,o),l=r("--type");for(let u of l)N.includes(u)||o(`Not a category the page offers: "${u}". One of: ${N.join(", ")}.`);let c=e.includes("--all-types")?[...N]:[...new Set(l)],m=i.length===0&&p.components.length===0&&c.length===0,g=i.length>0?[...new Set(i)]:p.components.length>0?["validate-deployment"]:we.filter(u=>u!=="execute"||!m);if(g.includes("validate-deployment")&&p.components.length===0&&o("validate-deployment needs a component: give --validate Type:Name."),g.includes("execute")&&c.length===0&&o("execute needs a category: give --type or --all-types, or leave execute out with --op."),m)for(let u of["--fail-on-drift","--exclude-managed","--read-budget"])e.includes(u)&&o(`${u} goes with a diff, which needs a category: give --type or --all-types.`);let h=Oe(n,o);return h!==void 0&&!g.includes("execute")&&o("--read-budget goes with a diff (execute), which this run does not send."),{source:s,target:a,operations:g,diffLeftOut:m,types:c,includeManaged:!e.includes("--exclude-managed"),...h!==void 0?{readBudget:h}:{},validation:p,storeDir:n("--store")??L("compare"),waitMs:re(n,o),json:e.includes("--json"),failOnDrift:e.includes("--fail-on-drift")}}function re(t,e){let n=Number(t("--wait","300")??"300");return(!Number.isInteger(n)||n<1)&&e("--wait takes a whole number of seconds."),n*1e3}function Oe(t,e){let n=t("--read-budget");if(n===void 0)return;let r=Number(n);return(!Number.isInteger(r)||r<1||r>T)&&e(`--read-budget takes a whole number of components, 1 to ${T}.`),r}var Ae=["--op","--validate","--type","--all-types","--exclude-managed","--fail-on-drift","--read-budget"];function De(t,e,n,r){if(e("--deploy").length===0)return;let o=Ae.filter(p=>t.includes(p));o.includes("--validate")&&r("--deploy validates what it deploys first, as the Deploy tab does: give the components to --deploy alone, without --validate."),o.length>0&&r(`${o.join(", ")} ${o.length===1?"goes":"go"} with a comparison, which a run with --deploy does not make: compare in a run of its own, without --deploy.`);let s=t.includes("--yes"),a=t.includes("--dry-run");s&&a&&r("--dry-run sends nothing and --yes deploys: give one of them.");let i=pe(e,n,r,"--deploy"),d=n("--tests")===void 0&&i.components.some(p=>be.has(p.componentType));return{...i,...d?{testLevel:"RunLocalTests"}:{},testsAdvised:d,yes:s,dryRun:a}}function pe(t,e,n,r="--validate"){let o=[];for(let d of t(r)){let p=d.indexOf(":"),l=d.slice(0,p),c=d.slice(p+1);(p<1||c==="")&&n(`${r} takes Type:Name, got "${d}".`),I.includes(l)||n(`Not a type a deployment carries: "${l}". One of: ${I.join(", ")}.`),o.push({componentType:l,fullName:c})}let s=e("--tests","NoTestRun")??"NoTestRun";E.includes(s)||n(`Not a test level: "${s}". One of: ${E.join(", ")}.`);let a=s,i=t("--run-test");for(let d of i)F.test(d)||n(`Not an Apex class name: "${d}".`);return a==="RunSpecifiedTests"&&i.length===0&&n("RunSpecifiedTests needs a test class: give --run-test."),a!=="RunSpecifiedTests"&&i.length>0&&n("--run-test names the tests of --tests RunSpecifiedTests only."),{components:o,testLevel:a,runTests:i}}var Ce={created:"would be created",changed:"would change"};function xe(t){let{counts:e}=t,n=t.checkOnly?16:13,r=[` ${t.checkOnly?"validation":"deployment"} ${t.deployId??"(none sent)"}: ${t.status}, ${t.success?"success":"no success"}`+(t.errorMessage?` \u2014 ${t.errorMessage}`:""),` components: ${e.componentsDeployed} of ${e.componentsTotal} without an error, ${e.componentErrors} with one; tests (${t.testLevel}${t.runTests.length>0?`: ${t.runTests.join(", ")}`:""}): ${e.testsCompleted} of ${e.testsTotal} passed, ${e.testErrors} failed`];for(let o of t.components){let s=o.line!==void 0?` (line ${o.line}${o.column!==void 0?`, column ${o.column}`:""})`:"",a=o.problem?` \u2014 ${o.problem}${s}`:"",i=(t.checkOnly?Ce[o.outcome]:void 0)??o.outcome;r.push(` ${i.padEnd(n)} ${o.componentType} ${o.fullName}${a}`)}for(let o of t.testFailures){let s=o.methodName?`${o.className}.${o.methodName}`:o.className,a=o.line!==void 0?` (line ${o.line})`:"";r.push(` test failed ${s}${a} \u2014 ${o.message}`)}for(let o of t.coverageWarnings)r.push(` coverage ${o}`);for(let o of t.retrieveProblems??[])r.push(` source said ${o}`);return r}function st(t){return ce(t,"modified")}function ce(t,e){let n=new Map;for(let r of t){if(r.status!==e)continue;let o=n.get(r.componentType)??[];o.push(r.fullName),n.set(r.componentType,o)}return n}function Pe(t){let e=n=>t.diffs.filter(r=>r.status===n).map(r=>`${r.componentType}:${r.fullName}`);return{onlyInSource:e("removed"),onlyInTarget:e("added"),modified:e("modified")}}function Ee(t){let{content:e,summary:n}=t,r=n.modified+n.unchanged+n.notCompared,{over_budget:o,unreadable:s,read_failed:a}=e.notCompared,i=e.managedLeftOut?`; left out, as asked: ${e.managedLeftOut} installed by a managed package`:"",d=o>0&&e.budget.components<T?`; --read-budget raises it, up to ${T}, a readMetadata call per 10 more in each org`:"";return` content compared for ${e.compared} of ${r} in both orgs; not compared: ${o} over the budget (${e.budget.components} per org, ${e.budget.seconds} s${d}), ${s} unreadable, ${a} read failed${i}`}function Ie(t){let{summary:e}=t,n=[` mode ${t.mode}, ${e.totalItems} item(s): +${e.removed} only in the source -${e.added} only in the target ~${e.modified} modified =${e.unchanged} unchanged ?${e.notCompared} not compared`," + a deployment creates it in the target, - a deployment leaves it there (SandForge deploys no deletion), ~ a deployment replaces what the target holds"],r=new Map;for(let s of t.diffs){let a=r.get(s.componentType)??{};a[s.status]=(a[s.status]??0)+1,r.set(s.componentType,a)}for(let[s,a]of r){let i=(a.modified??0)+(a.unchanged??0)+(a.not_compared??0),d=(a.removed??0)+i,p=(a.added??0)+i;n.push(` ${s.padEnd(26)} source ${String(d).padStart(5)} target ${String(p).padStart(5)} +${a.removed??0} -${a.added??0} ~${a.modified??0} =${a.unchanged??0} ?${a.not_compared??0}`)}n.push(Ee(t));let o=[["removed","only in the source"],["added","only in the target"],["modified","modified"]];for(let[s,a]of o)for(let[i,d]of ce(t.diffs,s))n.push(` ${a} ${i}: ${b(d)}`);return n}function b(t,e=8){if(t.length===0)return"\u2014";let n=t.slice(0,e).join(", ");return t.length>e?`${n} \u2026 (+${t.length-e})`:n}function ae(t,e){let n=(e.sourceOnly??[]).map(o=>o.name),r=(e.targetOnly??[]).map(o=>o.name);return[` ${t}: ${n.length} source only, ${r.length} target only, ${(e.shared??[]).length} in both`,` source only: ${b(n)}`,` target only: ${b(r)}`]}function ke(t){return t.code!=="MANAGED"||!Array.isArray(t.managed)?[]:t.managed.filter(e=>typeof e=="object"&&e!==null&&typeof e.componentType=="string"&&typeof e.fullName=="string")}function A(t){return t.success&&t.counts.componentErrors===0&&t.counts.testErrors===0}function _(t,e,n="--validate"){let r=`${(e.elapsedMs/1e3).toFixed(1)}s`,o=`compare:${t} ${e.outcome} in ${r}`,s=[e.late?`${o} \u2014 past the page's timeout: the page dropped it`:o],a=e.message?.payload??{};if(e.outcome!=="answered"){let d=ke(a);return d.length>0?(s.push(` a managed package installed ${d.map(p=>`${p.componentType} ${p.fullName}`).join(", ")} in the source, and it owns them: drop `+d.map(p=>`${n} ${p.componentType}:${p.fullName}`).join(" ")+" from the line and run it again. Nothing was sent to the target."),s):(e.message&&s.push(` ${String(a.message??JSON.stringify(a))}`),e.outcome==="unanswered"&&s.push(t==="deploy"?` nothing came back in ${Math.round(e.elapsedMs/1e3)} s: the deployment may go on in the target, whose Setup \u203A Deployment Status follows it; give a longer --wait`:` nothing came back in ${Math.round(e.elapsedMs/1e3)} s: give a longer --wait`+(t==="execute"?", or fewer --type":"")),s)}if(t==="execute")return[...s,...Ie(a)];if(t==="validate-deployment"||t==="deploy"){let d=a.report;return d?[...s,...xe(d)]:[...s," (no report)"]}if(t==="permissions"){let d=a.permissions??{};return[...s,...ae("permission sets",d.permissionSets??{}),...ae("profiles",d.profiles??{})]}if(t==="snapshots"){let d=a.snapshot??{},p=l=>l?`${l.totalObjects} objects (${l.customObjects} custom, ${l.standardObjects} standard, ${l.queryableObjects} queryable)`:"\u2014";return[...s,` source: ${p(d.source)}`,` target: ${p(d.target)}`,` ${d.diff?.sharedCount??0} in both; source only: ${b(d.diff?.sourceOnly??[])}`,` target only: ${b(d.diff?.targetOnly??[])}`]}let i=a.drift??{};return[...s,...(i.items??[]).map(d=>` ${d.status.padEnd(14)} ${d.setting}: ${d.sourceValue} | ${d.targetValue}`)]}function j(t,e=!1){if(t.some(({answer:s})=>s.outcome!=="answered"))return 1;let n=s=>s.message?.payload??{};if(t.some(({op:s,answer:a})=>{if(s!=="validate-deployment"&&s!=="deploy")return!1;let i=n(a).report;return i===void 0||!A(i)}))return 3;let o=t.some(({op:s,answer:a})=>{if(s!=="execute")return!1;let i=n(a).summary;return i!==void 0&&i.added+i.removed+i.modified>0});return e&&o?3:0}var Le={retrieve:"retrieving from the source: {done} of {total} components",components:"checking the components: {done} of {total}",tests:"running the Apex tests: {done} of {total}"};function Ne(t){let e,n="",r;return{follow:o=>{e=o,n="",r=void 0},deployId:()=>r,onPost:o=>{if(o.type!=="operation:progress"||e===void 0)return;let s=o.payload??{};if(s.operationId!==e)return;typeof s.deployId=="string"&&(r=s.deployId);let a=typeof s.currentStep=="string"?Le[s.currentStep]:void 0;if(a===void 0)return;let i=a.replace("{done}",String(s.processedRecords??0)).replace("{total}",String(s.totalRecords??0));i!==n&&(n=i,t(` ${i}`))}}}async function Me(t=process.argv,e={}){let n=Re(t),r=d=>{process[n.json?"stderr":"stdout"].write(`${d}
|
|
95
|
+
`)},o=e.terminal??{input:process.stdin,output:process.stderr},{deploy:s}=n;s&&!s.dryRun&&!s.yes&&o.input.isTTY!==!0&&(process.stderr.write(`--deploy asks for ${n.target} to be typed before it deploys, and no terminal is here to type it on: give --yes to deploy without the question, or --dry-run to list what it would deploy. Nothing was sent to either org.
|
|
96
|
+
`),process.exit(2));let a=ee(n.storeDir);if(a!==void 0){process.stderr.write(`${a}
|
|
97
|
+
`),process.exitCode=1;return}let i=s?ie(n.target,"there"):ie(`${n.source} and ${n.target}`,"them");try{await _e(n,e,r,o,i)}finally{i.release()}}async function _e(t,e,n,r,o){let{deploy:s}=t,a=Ne(n),i=(e.createHost??ne)({storeDir:t.storeDir,log:c=>{o.signal.aborted&&/^\s*!|\[ERR\]/.test(c)||/^\s*!|\[(ERR|WARN)\]/.test(c)&&n(c)},waitMs:t.waitMs,onPost:a.onPost,...s?{compose:c=>c.handlers.setInfraServices({productionGuard:te(n,t.target),deploymentsLetGo:o.signal})}:{}}),d=await D((async()=>{let c=await i.connect(t.source),m=await i.connect(t.target);return{source:c,target:m}})(),o.signal);if(d===void 0){if(n(` stopped while connecting to ${t.source} and ${t.target}: nothing was sent to either org.`),t.json){let c={stoppedDuring:"connection"};process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:[],...s?{deploy:{...ge(t,s),outcome:"interrupted",...c}}:{interrupted:c},posted:i.posted},null,2)}
|
|
98
|
+
`)}process.exitCode=o.code();return}let{source:p,target:l}=d;if(n(`sandforge compare ${t.source} (${p.orgType}) -> ${t.target} (${l.orgType})`),s){await He({args:t,deploy:s,host:i,source:p,target:l,log:n,terminal:r,progress:a,halt:o});return}await je({args:t,host:i,source:p,target:l,log:n,progress:a,halt:o})}async function je(t){let{args:e,host:n,source:r,target:o,log:s,progress:a,halt:i}=t;e.diffLeftOut&&s("no --type or --all-types: the diff is left out, as the page runs none with no category ticked; give --type <Type> or --all-types to diff the metadata");let d=[],p=l=>{e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:d,...l?{interrupted:l}:{},posted:n.posted},null,2)}
|
|
99
|
+
`)};for(let l of e.operations){let c={sourceOrgId:r.id,targetOrgId:o.id};if(l==="execute"&&(c.types=e.types,c.includeManaged=e.includeManaged,e.readBudget!==void 0)){c.readBudget=e.readBudget;let y=k(e.readBudget);s(`the diff reads by content up to ${y.components} components from each org: up to ${z(y.components)} readMetadata calls in each org, and no read started after ${y.seconds} s`)}let m=l==="validate-deployment"?`cli-validate-${M()}`:void 0;l==="validate-deployment"&&(c.components=e.validation.components,c.testLevel=e.validation.testLevel,e.validation.testLevel==="RunSpecifiedTests"&&(c.runTests=e.validation.runTests),a.follow(m));let g=await D(n.request({...m!==void 0?{id:m}:{},type:`compare:${l}`,payload:c,...l==="execute"?{timeoutMs:ve(e.readBudget)}:{},...l==="validate-deployment"?{timeoutMs:le}:{}}),i.signal),h=a.deployId();if(a.follow(void 0),g===void 0){l==="validate-deployment"?(s(ue(e.target,e.validation.components.length,h)),p({stoppedDuring:l,...h!==void 0?{validationId:h}:{}})):(s(` stopped during compare:${l}: a comparison only reads, and nothing was written to either org.`),p({stoppedDuring:l})),process.exitCode=i.code();return}let u=l==="execute"&&g.outcome==="answered"?g.message?.payload:void 0;d.push({op:l,answer:g,...Array.isArray(u?.diffs)?{changes:Pe({diffs:u.diffs})}:{}});for(let y of _(l,g))s(y);l==="validate-deployment"&&fe(g)!==void 0&&s(" --deploy in place of each --validate deploys it: it validates it again, then deploys what the target validated")}p(),O(j(d,e.failOnDrift))}function ue(t,e,n){return n!==void 0?` stopped while ${t} validated ${e===1?"the component":"the components"} as ${n}: nothing was deployed to ${t}. The validation goes on there check-only and keeps nothing; Setup \u203A Deployment Status lists it.`:` stopped before ${t} gave the validation an id: nothing was deployed to ${t}, and a validation, check-only, keeps nothing there.`}function ie(t,e){let n=new AbortController,r,o={open:!1},s=K(a=>{r=a;let i=o.open;n.abort(),process.stderr.write(`${i?"":`
|
|
100
|
+
`}interrupted: the run stops waiting on ${t} and says what it sent ${e} (${X(a)})
|
|
101
|
+
`)});return{signal:n.signal,question:o,code:()=>J(r??"SIGINT"),release:s}}function fe(t){if(t.outcome!=="answered")return;let e=t.message?.payload?.report;return e!==void 0&&e.deployId!==void 0&&A(e)?e:void 0}function ge(t,e){return{source:t.source,target:t.target,components:e.components,testLevel:e.testLevel,runTests:e.runTests}}async function He(t){let{args:e,deploy:n,host:r,target:o,log:s}=t;if(U(o)==="production"){let l=o.metadata?.edition,c=W(e.target,{id:o.id,sandbox:o.orgType==="Sandbox"||o.orgType==="Scratch",...l?{edition:l}:{}},{tool:P("sandforge-compare"),action:"write",readOnly:de})??`${e.target} is taken for a production org: ${P("sandforge-compare")} deploys to sandboxes, scratch orgs and Developer Edition orgs only. Nothing was written; ${de}, which only reads, runs against it.`;process.stderr.write(`${c}
|
|
102
|
+
`),process.exitCode=1;return}for(let l of Ue(e.source,e.target,n))s(l);let a=ge(e,n),i=[],d=(l,c={})=>{e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-compare",results:i,deploy:{...a,outcome:l,...c},posted:r.posted},null,2)}
|
|
103
|
+
`)};if(n.dryRun){s(`dry run: nothing was sent to ${e.source} or ${e.target}. The run validates ${Fe(n.components.length)} in ${e.target}, then deploys what it validated once ${e.target} is typed, or with --yes.`),d("dry-run");return}let p=(l,c,m)=>{s(c),d("interrupted",{stoppedDuring:l,...m}),process.exitCode=t.halt.code()};await Be(t,{results:i,answerJson:d,stop:t.halt.signal,stopped:p,question:t.halt.question})}function D(t,e){return e.aborted?Promise.resolve(void 0):new Promise((n,r)=>{let o=()=>n(void 0);e.addEventListener("abort",o,{once:!0}),t.then(s=>{e.removeEventListener("abort",o),n(s)},s=>{e.removeEventListener("abort",o),r(s instanceof Error?s:new Error(String(s)))})})}var qe=5e3;function Ge(t,e){return new Promise(n=>{let r=setTimeout(n,e),o=()=>{clearTimeout(r),n()};t.then(o,o)})}async function Be(t,e){let{args:n,deploy:r,host:o,target:s,log:a}=t,{results:i,answerJson:d,stop:p,stopped:l,question:c}=e,m=r.components.length===1?"the component":"the components",g=`cli-validate-${M()}`;t.progress.follow(g);let h=await D(o.request({id:g,type:"compare:validate-deployment",payload:{sourceOrgId:t.source.id,targetOrgId:s.id,components:r.components,testLevel:r.testLevel,...r.testLevel==="RunSpecifiedTests"?{runTests:r.runTests}:{}},timeoutMs:le}),p),u=t.progress.deployId();if(t.progress.follow(void 0),h===void 0){l("validation",ue(n.target,r.components.length,u),u!==void 0?{validationId:u}:{});return}i.push({op:"validate-deployment",answer:h});for(let v of _("validate-deployment",h,"--deploy"))a(v);let y=fe(h);if(y?.deployId===void 0){a(` the validation did not succeed: nothing was deployed to ${n.target}`),d("validation-failed"),O(j(i));return}let f=y.deployId,H=r.components.length;if(a(`Deploy to ${n.target}: `+(H===1?`the component validated as ${f} will be deployed to ${n.target}, with the same tests, and ${n.target} keeps it.`:`the ${H} components validated as ${f} will be deployed to ${n.target}, with the same tests, and ${n.target} keeps them.`)),!r.yes){c.open=!0;let v=await Y(`Type ${n.target} to deploy it:`,t.terminal,p);if(c.open=!1,p.aborted){l("confirmation",` stopped at the question: nothing was deployed to ${n.target}. The validation ${f} changed nothing there.`,{validationId:f});return}if(v!==n.target){a(`Nothing was deployed: what was typed is not ${n.target}. The validation ${f} changed nothing there.`),d("declined",{validationId:f}),process.exitCode=1;return}}let q=`cli-deploy-${M()}`;t.progress.follow(q);let G=o.request({id:q,type:"compare:deploy",payload:{validationId:f,targetOrgId:s.id},timeoutMs:Te}),w=await D(G,p),$=t.progress.deployId();if(t.progress.follow(void 0),w===void 0){await Ge(G,qe),l("deployment",($!==void 0?` stopped while ${n.target} deployed ${m} as ${$}: the deployment goes on in ${n.target}, which keeps what it deploys unless it fails and is rolled back whole. Setup \u203A Deployment Status follows it as ${$}, and can cancel it there while it runs.`:` stopped while the deployment of validation ${f} was on its way to ${n.target}: if ${n.target} took it, the deployment goes on there, and Setup \u203A Deployment Status follows it.`)+" The audit trail of the store records it as left running.",{validationId:f,...$!==void 0?{deploymentId:$}:{}});return}i.push({op:"deploy",answer:w});for(let v of _("deploy",w))a(v);let S=w.message?.payload?.report,x=S?.deployId,B=w.outcome==="answered"&&S!==void 0;B&&a(A(S)?` deployed to ${n.target}, which lists it in Setup \u203A Deployment Status as ${x??"(no id)"}. SandForge deploys no deletion: what it created stays in ${n.target} until it is deleted there.`:` the deployment failed in ${n.target} and was rolled back: ${n.target} kept nothing.`),d(B?A(S)?"deployed":"rolled-back":"deployment-unsettled",{validationId:f,...x!==void 0?{deploymentId:x}:{}}),O(j(i))}var de="a comparison without --deploy";function Fe(t){return`${t} component${t===1?"":"s"}`}function Ue(t,e,n){let r=n.testLevel==="RunSpecifiedTests"?`${n.testLevel}: ${n.runTests.join(", ")}`:n.testLevel;return[`deploy from ${t} to ${e}, validated in ${e} first: it compiles the components, runs the tests asked for and keeps nothing; then the package it validated is deployed, once ${e} is typed or with --yes. Nothing is deleted from ${e}.`,...n.components.map(o=>` ${o.componentType} ${o.fullName}`),` Apex tests in ${e}: ${r}`+(n.testsAdvised?" \u2014 Apex is among the components: as the Deploy tab advises, the target\u2019s own tests run unless --tests says otherwise":"")]}process.argv[1]?.includes("sandforge-compare")&&(Z(),Me().then(()=>process.exit(process.exitCode??0)).catch(t=>{process.stderr.write(`${t instanceof Error?t.message:String(t)}
|
|
104
|
+
`),process.exit(1)}));export{N as PAGE_COMPONENT_TYPES,Pe as changesOf,j as compareExitCode,Ue as deployPlanLines,_ as describeAnswer,Ee as describeCoverage,xe as describeDeployment,Me as main,st as modifiedByType,Re as parseArgs,Ne as progressLines};
|
|
@@ -4,4 +4,4 @@ import { dirname as __sandforgeDirname } from 'node:path';
|
|
|
4
4
|
const require = __sandforgeRequire(import.meta.url);
|
|
5
5
|
const __filename = __sandforgePath(import.meta.url);
|
|
6
6
|
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n}from"./chunk-
|
|
7
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"./chunk-GQZEX7LH.mjs";import"./chunk-TLX45X5U.mjs";import"./chunk-5GBO4KD5.mjs";import"./chunk-E5FSPXYH.mjs";import"./chunk-IQ5UKRHU.mjs";import"./chunk-VT6P3X6R.mjs";import"./chunk-ALWVNR34.mjs";import"./chunk-QHE2RUWX.mjs";import"./chunk-6FARZYMJ.mjs";import"./chunk-ON7Y63FK.mjs";import"./chunk-7KHA5UIQ.mjs";import"./chunk-YTOTMJTY.mjs";import"./chunk-WJGK6VGU.mjs";import"./chunk-3L6DVNCR.mjs";import"./chunk-54V4FVEY.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-TZXYVMZC.mjs";import"./chunk-TMIV3IWH.mjs";import"./chunk-CJAWKLAL.mjs";import"./chunk-PE7CHD2W.mjs";import"./chunk-VKREON6Q.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-VFKG2G37.mjs";import"./chunk-CL75DEMQ.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-DDNCJVZ2.mjs";import"./chunk-C5AUNG6T.mjs";import"./chunk-3I6FXFCN.mjs";import"./chunk-7O6EFNQS.mjs";import"./chunk-3LRFPGYZ.mjs";import"./chunk-34SMB5PA.mjs";import"./chunk-GB6W4Q56.mjs";import"./chunk-AVY742BJ.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-KWUS7UAV.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-HZCS6EED.mjs";import"./chunk-NV5QA2HY.mjs";import"./chunk-EGL3I3IX.mjs";import"./chunk-CSMGP53U.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-35B73566.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-PVZ72OOQ.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-TYUYPFDJ.mjs";import"./chunk-TICZXC53.mjs";import"./chunk-DLSU66MY.mjs";import"./chunk-ATQML7ZK.mjs";import"./chunk-H6BHWAX7.mjs";import"./chunk-4CSBZZAL.mjs";import"./chunk-AL4C3GFT.mjs";import"./chunk-GP5J3DGS.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-WQCXOZEJ.mjs";import"./chunk-OT2NHL2V.mjs";import"./chunk-ZVU7MD2S.mjs";import"./chunk-OLCS7JCT.mjs";import"./chunk-TQ6HEJ73.mjs";import"./chunk-65AMXOQU.mjs";import"./chunk-6HHSAPIM.mjs";import"./chunk-K5PUMHZU.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-EUIALBMX.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-ATBQIE2V.mjs";import"./chunk-UCUFLFNK.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-4XROG5CT.mjs";import"./chunk-LCDPCUXS.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-DAUX63UB.mjs";import"./chunk-SZOJ7BEJ.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-22L43JMK.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-3KJCSYXY.mjs";import"./chunk-HDDJ3CVN.mjs";import"./chunk-J347SPU6.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{l as automaticPlanLines,m as dryRunLines,d as historyLines,e as historyRefusedLine,p as main,o as maskingInterruptedLine,q as maskingQuestion,b as masksObject,g as missingFieldLine,h as notWritableLine,a as parseArgs,n as restoreInterruptedLine,c as resultLines,i as runWouldBeRefused,k as slicePlanLines,j as sliceRefusedLines,f as sliceSetLines};
|