sandforge 1.79.0 → 1.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/sandforge-pipeline.mjs +12 -0
- package/lib/{chunk-BN7A4GRQ.mjs → chunk-2IB7I3IQ.mjs} +1 -1
- package/lib/{chunk-PBI4BYWW.mjs → chunk-2NAIUKVL.mjs} +1 -1
- package/lib/chunk-2OIRJEYE.mjs +7 -0
- package/lib/{chunk-FOVVHGEP.mjs → chunk-2OZG6GRW.mjs} +1 -1
- package/lib/{chunk-5CD257T7.mjs → chunk-2Z54GB6X.mjs} +1 -1
- package/lib/chunk-2ZMGVBLW.mjs +7 -0
- package/lib/{chunk-4NAHW2D3.mjs → chunk-33ZX3A56.mjs} +1 -1
- package/lib/{chunk-4SNDMJP2.mjs → chunk-3AOKLIVE.mjs} +1 -1
- package/lib/{chunk-SIOZXPFG.mjs → chunk-3B5H24ZG.mjs} +1 -1
- package/lib/chunk-43K2C6H2.mjs +7 -0
- package/lib/chunk-4JKR4PTZ.mjs +8 -0
- package/lib/chunk-4L7FBOJS.mjs +8 -0
- package/lib/chunk-5344TZBT.mjs +11 -0
- package/lib/{chunk-SAR5622P.mjs → chunk-54HYHHVL.mjs} +1 -1
- package/lib/chunk-55LQD3Y3.mjs +7 -0
- package/lib/chunk-56MPPWLA.mjs +7 -0
- package/lib/chunk-5C5XEVZN.mjs +11 -0
- package/lib/chunk-5CKWGZX4.mjs +9 -0
- package/lib/{chunk-RSWDYIHY.mjs → chunk-5GBO4KD5.mjs} +1 -1
- package/lib/{chunk-GNC27UEU.mjs → chunk-5UT2ZBGF.mjs} +1 -1
- package/lib/chunk-5VQNKDFU.mjs +7 -0
- package/lib/chunk-5WGA5CZB.mjs +7 -0
- package/lib/chunk-5ZKCLBTN.mjs +474 -0
- package/lib/chunk-67CC7RAE.mjs +7 -0
- package/lib/{chunk-5O6JOMHS.mjs → chunk-6CDIIFNX.mjs} +1 -1
- package/lib/{chunk-AV5SWEHP.mjs → chunk-6FARZYMJ.mjs} +1 -1
- package/lib/{chunk-7UQD6V6F.mjs → chunk-6FMLW7PH.mjs} +1 -1
- package/lib/chunk-6IGEASOF.mjs +7 -0
- package/lib/{chunk-H2PJNIYJ.mjs → chunk-6NADW3OI.mjs} +1 -1
- package/lib/chunk-6SEDOIO3.mjs +10 -0
- package/lib/{chunk-AUTM6H6Z.mjs → chunk-742SSN7I.mjs} +1 -1
- package/lib/chunk-7DALDJMO.mjs +7 -0
- package/lib/chunk-7PK5QDQI.mjs +7 -0
- package/lib/chunk-AELFEK3G.mjs +7 -0
- package/lib/chunk-AITNZWLB.mjs +9 -0
- package/lib/{chunk-HV2MXMGI.mjs → chunk-AJPSGVMD.mjs} +1 -1
- package/lib/{chunk-OTWRDD6L.mjs → chunk-BNO5GIJ6.mjs} +1 -1
- package/lib/{chunk-K2FBZIXY.mjs → chunk-BWWQXU2B.mjs} +1 -1
- package/lib/{chunk-IC2C2GOF.mjs → chunk-BXZ73A5M.mjs} +1 -1
- package/lib/chunk-BZFIOZS3.mjs +156 -0
- package/lib/{chunk-XBG5SP6Q.mjs → chunk-C4YGSK6W.mjs} +1 -1
- package/lib/chunk-CAFUNR6D.mjs +7 -0
- package/lib/chunk-CULAOP3U.mjs +7 -0
- package/lib/chunk-D62KWDDT.mjs +7 -0
- package/lib/{chunk-BILZ3SSR.mjs → chunk-D7P7DTWL.mjs} +1 -1
- package/lib/chunk-DHGPDSXS.mjs +7 -0
- package/lib/{chunk-ZXH4MBWP.mjs → chunk-DHIW4IO5.mjs} +1 -1
- package/lib/{chunk-NM4MDLK4.mjs → chunk-DMBR24CK.mjs} +1 -1
- package/lib/chunk-DPYTG6DM.mjs +48 -0
- package/lib/chunk-DQR5NDMI.mjs +7 -0
- package/lib/chunk-DXOXLUZA.mjs +7 -0
- package/lib/chunk-E2OBAWSH.mjs +7 -0
- package/lib/chunk-E2YJVSX6.mjs +10 -0
- package/lib/chunk-EAFLDSQ2.mjs +7 -0
- package/lib/{chunk-HCIDVIOW.mjs → chunk-EH5YUA5W.mjs} +1 -1
- package/lib/{chunk-2BVTCNWA.mjs → chunk-EOSEMFPU.mjs} +1 -1
- package/lib/chunk-ETT5GP4P.mjs +13 -0
- package/lib/{chunk-3SRXFZSD.mjs → chunk-FDGFUEK3.mjs} +1 -1
- package/lib/{chunk-3DCUADVK.mjs → chunk-FLNLG43R.mjs} +1 -1
- package/lib/{chunk-HTJ5OGP5.mjs → chunk-FSDO4DJA.mjs} +1 -1
- package/lib/{chunk-HJKM3E56.mjs → chunk-FSZTXLNW.mjs} +1 -1
- package/lib/chunk-FTA5LOVX.mjs +7 -0
- package/lib/chunk-G4VXPS3A.mjs +7 -0
- package/lib/chunk-GF247DA7.mjs +7 -0
- package/lib/{chunk-QRV2OSIS.mjs → chunk-GK7VEYFM.mjs} +1 -1
- package/lib/{chunk-5MMXFWPD.mjs → chunk-GR3NGDVM.mjs} +1 -1
- package/lib/{chunk-P7GSGFJO.mjs → chunk-GTIXJCGS.mjs} +1 -1
- package/lib/{chunk-342FN7AO.mjs → chunk-GWRKS3AL.mjs} +1 -1
- package/lib/{chunk-LQ4DRFUH.mjs → chunk-GYKNCYES.mjs} +1 -1
- package/lib/{chunk-WIO4XO4F.mjs → chunk-HFSBDM7B.mjs} +1 -1
- package/lib/chunk-HVC5CYIB.mjs +7 -0
- package/lib/{chunk-EQF2IJS2.mjs → chunk-HYBH5PFM.mjs} +1 -1
- package/lib/chunk-HYOOJVR6.mjs +7 -0
- package/lib/{chunk-TQX3PURV.mjs → chunk-IBURU7T7.mjs} +1 -1
- package/lib/chunk-ICIYL45C.mjs +7 -0
- package/lib/{chunk-K22PA4XL.mjs → chunk-IKGHRYCN.mjs} +1 -1
- package/lib/chunk-IM2XA6JI.mjs +7 -0
- package/lib/{chunk-P2PJYWGQ.mjs → chunk-J6G23RUI.mjs} +1 -1
- package/lib/{chunk-JVL444U5.mjs → chunk-JU2XEKEO.mjs} +1 -1
- package/lib/{chunk-H45UXY6G.mjs → chunk-K55LH4ZQ.mjs} +1 -1
- package/lib/chunk-K5HV4YRO.mjs +7 -0
- package/lib/{chunk-IAZB4WIL.mjs → chunk-K77NR3UK.mjs} +1 -1
- package/lib/chunk-KE2PGD6C.mjs +7 -0
- package/lib/chunk-KGYXLSQ5.mjs +37 -0
- package/lib/{chunk-TEOLMRDO.mjs → chunk-KNIRA333.mjs} +1 -1
- package/lib/chunk-KOQV4WXC.mjs +8 -0
- package/lib/{chunk-PNCONNFJ.mjs → chunk-KRNFVAGC.mjs} +1 -1
- package/lib/chunk-L5FGY6YA.mjs +7 -0
- package/lib/{chunk-MTMH6H2A.mjs → chunk-LCDPCUXS.mjs} +1 -1
- package/lib/{chunk-YAZO75G2.mjs → chunk-LNXBCE7E.mjs} +1 -1
- package/lib/{chunk-ZOVSMN5C.mjs → chunk-LO527YLT.mjs} +1 -1
- package/lib/chunk-MAHZMPMZ.mjs +7 -0
- package/lib/{chunk-QQZZMKU3.mjs → chunk-MHW6DV6T.mjs} +1 -1
- package/lib/{chunk-2YIV2OB2.mjs → chunk-MIDBQ7SD.mjs} +1 -1
- package/lib/{chunk-6EBMEGZB.mjs → chunk-MKNAZPOT.mjs} +1 -1
- package/lib/{chunk-NTDN2JQZ.mjs → chunk-MNITSYI2.mjs} +8 -8
- package/lib/chunk-MO3N5XVV.mjs +341 -0
- package/lib/{chunk-SBIMVCXT.mjs → chunk-MS4FJDFD.mjs} +9 -9
- package/lib/chunk-MWLFFVQV.mjs +8 -0
- package/lib/chunk-N6HHNR6J.mjs +7 -0
- package/lib/chunk-N7J6NJQ6.mjs +7 -0
- package/lib/chunk-NJ3EOEHS.mjs +9 -0
- package/lib/chunk-NWPQF5XR.mjs +7 -0
- package/lib/{chunk-PUOX4NBJ.mjs → chunk-NWVVCZUK.mjs} +1 -1
- package/lib/{chunk-DLDX6RRC.mjs → chunk-O6ADMP36.mjs} +1 -1
- package/lib/chunk-O7DAFE6M.mjs +14 -0
- package/lib/chunk-OEHVAJAB.mjs +7 -0
- package/lib/chunk-OETEC3P7.mjs +7 -0
- package/lib/{chunk-GCOB7K5N.mjs → chunk-OHEOJISY.mjs} +1 -1
- package/lib/chunk-OIIL4NVI.mjs +7 -0
- package/lib/chunk-OMZJ37JI.mjs +15 -0
- package/lib/{chunk-NZ5ZZLKS.mjs → chunk-ONMBSACW.mjs} +1 -1
- package/lib/chunk-OQQHNYR7.mjs +272 -0
- package/lib/{chunk-AAVJ5XVX.mjs → chunk-OU5W7SCB.mjs} +1 -1
- package/lib/{chunk-RSYICMZG.mjs → chunk-OVOLG3AL.mjs} +1 -1
- package/lib/{chunk-F74IHMGL.mjs → chunk-OXKZ4Y3B.mjs} +1 -1
- package/lib/{chunk-W7KFAY55.mjs → chunk-OZNLOV4U.mjs} +1 -1
- package/lib/{chunk-TYYOBZMU.mjs → chunk-PC247GKX.mjs} +1 -1
- package/lib/chunk-PPGDAUEQ.mjs +7 -0
- package/lib/{chunk-RACDTRZA.mjs → chunk-PYUEHBA6.mjs} +1 -1
- package/lib/{chunk-TLH7AD35.mjs → chunk-PZBZ7MNC.mjs} +1 -1
- package/lib/{chunk-DBFJB2B6.mjs → chunk-QIRO4HTE.mjs} +1 -1
- package/lib/{chunk-PZTSVQSF.mjs → chunk-QXLZINZB.mjs} +1 -1
- package/lib/chunk-R2BJWO5N.mjs +20 -0
- package/lib/chunk-R6TF26V4.mjs +10 -0
- package/lib/{chunk-P42X3B4D.mjs → chunk-RKALOKAU.mjs} +1 -1
- package/lib/chunk-SQGP46QS.mjs +7 -0
- package/lib/chunk-SU65Z2BA.mjs +7 -0
- package/lib/chunk-SW2NUKQL.mjs +9 -0
- package/lib/chunk-T26C576X.mjs +9 -0
- package/lib/{chunk-3OHPD72J.mjs → chunk-T3PLRQ2T.mjs} +1 -1
- package/lib/chunk-T5VAULLQ.mjs +7 -0
- package/lib/chunk-TEIBWMJM.mjs +7 -0
- package/lib/chunk-TKQQVB2D.mjs +9 -0
- package/lib/{chunk-RAAANPPG.mjs → chunk-TPHXRHOA.mjs} +1 -1
- package/lib/chunk-TQ2TQHTT.mjs +9 -0
- package/lib/{chunk-IEYG5ATY.mjs → chunk-TQM2XJ27.mjs} +1 -1
- package/lib/{chunk-X65MT4W3.mjs → chunk-UCHAZ4ZU.mjs} +1 -1
- package/lib/chunk-UIUPPEFB.mjs +7 -0
- package/lib/{chunk-QPF6C5MX.mjs → chunk-UT27HXE7.mjs} +1 -1
- package/lib/{chunk-J7HVXMSW.mjs → chunk-UUSLTW5V.mjs} +1 -1
- package/lib/chunk-V2QO6KOE.mjs +19 -0
- package/lib/chunk-V473C7LY.mjs +7 -0
- package/lib/chunk-V4RKM4QZ.mjs +8 -0
- package/lib/chunk-VSU74RQ3.mjs +9 -0
- package/lib/chunk-VV3B6IC3.mjs +7 -0
- package/lib/chunk-W2AAGIZF.mjs +7 -0
- package/lib/{chunk-WR2GIKWE.mjs → chunk-WB2RIVO3.mjs} +1 -1
- package/lib/chunk-WD47PGUS.mjs +10 -0
- package/lib/{chunk-3CA767QB.mjs → chunk-WEZLXE34.mjs} +1 -1
- package/lib/{chunk-WFEB5X4U.mjs → chunk-WI4HYWV6.mjs} +1 -1
- package/lib/{chunk-AR7BE5O2.mjs → chunk-WM5JI4JI.mjs} +1 -1
- package/lib/chunk-WWTXRWNZ.mjs +7 -0
- package/lib/{chunk-7EANH5PY.mjs → chunk-WZQEK4WT.mjs} +1 -1
- package/lib/{chunk-ZJKCWBRJ.mjs → chunk-X2ZVSQ54.mjs} +1 -1
- package/lib/{chunk-SFURUNJM.mjs → chunk-XC2QKQT5.mjs} +1 -1
- package/lib/chunk-XC54KKKC.mjs +7 -0
- package/lib/chunk-XEB6HZ34.mjs +7 -0
- package/lib/chunk-XGKSSCW7.mjs +7 -0
- package/lib/chunk-XIZ5LMQM.mjs +7 -0
- package/lib/{chunk-RFEO2KAN.mjs → chunk-Y5ZCPY36.mjs} +1 -1
- package/lib/{chunk-TBZMC2VV.mjs → chunk-YCSFP6ER.mjs} +4 -4
- package/lib/{chunk-YBU4Z4QV.mjs → chunk-YHIOS2PU.mjs} +1 -1
- package/lib/chunk-YIGFYZQY.mjs +7 -0
- package/lib/chunk-YJEXE6HZ.mjs +925 -0
- package/lib/{chunk-57VHUYNG.mjs → chunk-YOGMP72T.mjs} +4 -4
- package/lib/chunk-ZRUDYB7O.mjs +7 -0
- package/lib/{chunk-55HEMHEG.mjs → chunk-ZUA5BNAO.mjs} +1 -1
- package/lib/chunk-ZWCRWF7E.mjs +7 -0
- package/lib/{chunk-VHI54FBK.mjs → chunk-ZWZXQTAK.mjs} +53 -53
- package/lib/sandforge-autopilot.mjs +29 -24
- package/lib/sandforge-backup.mjs +67 -32
- package/lib/sandforge-checkpoint.mjs +1 -347
- package/lib/sandforge-cleanup.mjs +14 -10
- package/lib/sandforge-clone.mjs +1 -1
- package/lib/sandforge-compare.mjs +9 -8
- package/lib/sandforge-dataops.mjs +1 -1
- package/lib/sandforge-empty.mjs +15 -15
- package/lib/sandforge-env.mjs +101 -101
- package/lib/sandforge-frozen.mjs +1 -257
- package/lib/sandforge-mcp.mjs +33 -14
- package/lib/sandforge-monitor.mjs +7 -7
- package/lib/sandforge-pipeline.mjs +88 -0
- package/lib/sandforge-seed.mjs +1 -1
- package/lib/sandforge-sync.mjs +1 -1
- package/lib/sandforge.mjs +6 -6
- package/package.json +2 -1
- package/lib/chunk-2S5OMIIA.mjs +0 -7
- package/lib/chunk-36U7IQ6Y.mjs +0 -25
- package/lib/chunk-3F5YMM2F.mjs +0 -7
- package/lib/chunk-3RYLICRX.mjs +0 -7
- package/lib/chunk-42RER7V4.mjs +0 -14
- package/lib/chunk-4GL773D5.mjs +0 -7
- package/lib/chunk-4HFRHFGQ.mjs +0 -7
- package/lib/chunk-4U6NXJNL.mjs +0 -7
- package/lib/chunk-4XZ5YT5O.mjs +0 -7
- package/lib/chunk-5AJRHRXA.mjs +0 -20
- package/lib/chunk-5HMAPZBV.mjs +0 -7
- package/lib/chunk-5P4PHJRL.mjs +0 -9
- package/lib/chunk-5QKTYCWE.mjs +0 -11
- package/lib/chunk-6LAXTAVN.mjs +0 -7
- package/lib/chunk-6MUEPV7M.mjs +0 -9
- package/lib/chunk-6QSM2WIH.mjs +0 -10
- package/lib/chunk-75ADZS6B.mjs +0 -7
- package/lib/chunk-ALJVEUUS.mjs +0 -7
- package/lib/chunk-ALUFROGA.mjs +0 -7
- package/lib/chunk-B45CNPUX.mjs +0 -47
- package/lib/chunk-BS5T3MOQ.mjs +0 -7
- package/lib/chunk-CGWXQX75.mjs +0 -7
- package/lib/chunk-D3QRXG63.mjs +0 -787
- package/lib/chunk-EEVVGGM6.mjs +0 -7
- package/lib/chunk-ENLBYECD.mjs +0 -7
- package/lib/chunk-EQOQASDQ.mjs +0 -7
- package/lib/chunk-FQBRBBY4.mjs +0 -7
- package/lib/chunk-GAM726CK.mjs +0 -7
- package/lib/chunk-HJC7AIBK.mjs +0 -7
- package/lib/chunk-HUMEKZT5.mjs +0 -8
- package/lib/chunk-I3JKJTLO.mjs +0 -110
- package/lib/chunk-I7O6C2B5.mjs +0 -8
- package/lib/chunk-KLX67VPL.mjs +0 -7
- package/lib/chunk-L776PUMV.mjs +0 -7
- package/lib/chunk-LRFAIUN7.mjs +0 -7
- package/lib/chunk-LV6G4XTK.mjs +0 -7
- package/lib/chunk-MYTIL2JD.mjs +0 -10
- package/lib/chunk-NEVXIGR6.mjs +0 -10
- package/lib/chunk-NGSMZZDA.mjs +0 -7
- package/lib/chunk-NHWE66K5.mjs +0 -7
- package/lib/chunk-OQOZAPCI.mjs +0 -7
- package/lib/chunk-PA3MKJVH.mjs +0 -7
- package/lib/chunk-QROPNEGY.mjs +0 -14
- package/lib/chunk-QWT2C74M.mjs +0 -7
- package/lib/chunk-RH3N2H7P.mjs +0 -7
- package/lib/chunk-SRQDABQ2.mjs +0 -15
- package/lib/chunk-SVS6UMDU.mjs +0 -323
- package/lib/chunk-TNXUU6W7.mjs +0 -14
- package/lib/chunk-VGW4MXXZ.mjs +0 -7
- package/lib/chunk-VXHDBYMI.mjs +0 -7
- package/lib/chunk-WJY54JO7.mjs +0 -13
- package/lib/chunk-WRU5FJFC.mjs +0 -7
- package/lib/chunk-X2PY6MWZ.mjs +0 -7
- package/lib/chunk-XEFDB2R4.mjs +0 -7
- package/lib/chunk-XETCPL7E.mjs +0 -7
- package/lib/chunk-Y5CGXLUB.mjs +0 -7
- package/lib/chunk-Y6J6QFI2.mjs +0 -7
- package/lib/chunk-YMJVMFPY.mjs +0 -7
- package/lib/chunk-YPSRZRIT.mjs +0 -7
- package/lib/chunk-YS4G22C2.mjs +0 -7
- package/lib/chunk-YW2SBL4Z.mjs +0 -7
- package/lib/chunk-Z7X534S4.mjs +0 -10
- package/lib/chunk-ZE6HKRR4.mjs +0 -9
- package/lib/chunk-ZLZRU6MO.mjs +0 -7
- package/lib/chunk-ZPYJPGDK.mjs +0 -7
- package/lib/chunk-ZQOZ4EFW.mjs +0 -7
- package/lib/chunk-ZUTYVST5.mjs +0 -7
- package/lib/chunk-ZYEE34WO.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 ae}from"./chunk-2NAIUKVL.mjs";import{a as N,b as ne,c as ie}from"./chunk-5GBO4KD5.mjs";import"./chunk-YJEXE6HZ.mjs";import"./chunk-FTA5LOVX.mjs";import"./chunk-KNIRA333.mjs";import"./chunk-7DALDJMO.mjs";import{a as H,l as v}from"./chunk-O7DAFE6M.mjs";import"./chunk-BZ24IAP5.mjs";import{a as I}from"./chunk-SCKUIE3R.mjs";import{c as _}from"./chunk-6FARZYMJ.mjs";import{a as de}from"./chunk-E2OBAWSH.mjs";import{m as M,p as J}from"./chunk-OMZJ37JI.mjs";import"./chunk-43K2C6H2.mjs";import"./chunk-FSZTXLNW.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import{a as K,c as V,d as X,e as C,f as Y,g as R,h as q,i as ee,j as te,k as se,l as oe,m as re}from"./chunk-VSU74RQ3.mjs";import{Fc as B,Oc as W}from"./chunk-CAFUNR6D.mjs";import{h as F,i as G}from"./chunk-AITNZWLB.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-OEHVAJAB.mjs";import"./chunk-GWRKS3AL.mjs";import"./chunk-BOGNK4LV.mjs";import{m as Q}from"./chunk-KGYXLSQ5.mjs";import"./chunk-TEIBWMJM.mjs";import"./chunk-DMBR24CK.mjs";import"./chunk-BWWQXU2B.mjs";import"./chunk-4L7FBOJS.mjs";import"./chunk-OXKZ4Y3B.mjs";import"./chunk-MAHZMPMZ.mjs";import"./chunk-M6P5ZZLE.mjs";import"./chunk-UIUPPEFB.mjs";import"./chunk-6SEDOIO3.mjs";import"./chunk-ZWCRWF7E.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-QIRO4HTE.mjs";import{h as U}from"./chunk-MNITSYI2.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-NJ3EOEHS.mjs";import"./chunk-ETT5GP4P.mjs";import"./chunk-SW2NUKQL.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-E2YJVSX6.mjs";import{b as E}from"./chunk-HVC5CYIB.mjs";import"./chunk-T26C576X.mjs";import"./chunk-BNO5GIJ6.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-SQGP46QS.mjs";import"./chunk-PPGDAUEQ.mjs";import"./chunk-MS4FJDFD.mjs";import"./chunk-6IGEASOF.mjs";import"./chunk-KOQV4WXC.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-CULAOP3U.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-KRNFVAGC.mjs";import"./chunk-SU65Z2BA.mjs";import"./chunk-2OIRJEYE.mjs";import{b as T,e as L,f as O,h as Z}from"./chunk-LCDPCUXS.mjs";import"./chunk-XEB6HZ34.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-ZUA5BNAO.mjs";import"./chunk-RKALOKAU.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-55LQD3Y3.mjs";import{e as z,g as P}from"./chunk-TZE3Y7IQ.mjs";import"./chunk-3B5H24ZG.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-EAFLDSQ2.mjs";import"./chunk-CA5NAXSU.mjs";import{x as S,xc as D}from"./chunk-DPYTG6DM.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";import{join as ue}from"node:path";var ge=`sandforge backup \u2014 take and restore DataOps snapshots, without the editor.
|
|
8
8
|
|
|
9
9
|
Usage:
|
|
10
10
|
npx sandforge backup --org <alias> [options]
|
|
@@ -19,23 +19,47 @@ One of:
|
|
|
19
19
|
--list name the snapshots kept in the store, each with the
|
|
20
20
|
org it was taken of, then stop: the org's with --org
|
|
21
21
|
(those taken under its alias, and the others of the
|
|
22
|
-
same Organization Id), every org's without it
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
same Organization Id), every org's without it; a set
|
|
23
|
+
of slices in one line, whatever its slices, with when
|
|
24
|
+
the retention removes it. It reads the store alone and
|
|
25
|
+
contacts no org
|
|
26
|
+
--restore <id> upsert a snapshot back into the org by record Id: a
|
|
27
|
+
snapshot's id, or a set of slices', every slice not
|
|
28
|
+
put back yet, in their order; stopped part way, the
|
|
29
|
+
same line puts back the rest
|
|
30
|
+
--delete <id> delete a snapshot, or a set of slices with every slice
|
|
31
|
+
and the key it holds, from the store; repeat for more.
|
|
32
|
+
A slice is deleted with its set. It contacts no org
|
|
25
33
|
|
|
26
34
|
Options:
|
|
35
|
+
--where <Object>:<clause>
|
|
36
|
+
with --object: snapshot only the records of that object
|
|
37
|
+
the SOQL condition selects, written without WHERE, as
|
|
38
|
+
--where "Contact:CreatedDate >= 2025-01-01T00:00:00Z";
|
|
39
|
+
read up to its first colon, the object's name. One per
|
|
40
|
+
object; the snapshot holds the records under it, not
|
|
41
|
+
the object, and says so
|
|
42
|
+
--slices with --object: back each object up in slices of
|
|
43
|
+
--max-records records, consecutive by Id, each a
|
|
44
|
+
snapshot of its own, listed and restored as one set:
|
|
45
|
+
an object past what one snapshot holds is backed up
|
|
46
|
+
whole
|
|
27
47
|
--store <dir> where snapshots live, a folder of your own
|
|
28
48
|
(default: ~/.sandforge/backups, under the folder
|
|
29
49
|
SANDFORGE_JOURNAL_DIR names when it is set)
|
|
30
50
|
--max-records <n> most records of each object a snapshot reads, as
|
|
31
|
-
sandforge.backup.maxRecordsPerObject sets it
|
|
32
|
-
(default: 50000; 100
|
|
51
|
+
sandforge.backup.maxRecordsPerObject sets it; with
|
|
52
|
+
--slices, the records of a slice (default: 50000; 100
|
|
53
|
+
to 1000000)
|
|
54
|
+
--slice <k[,k]> with --restore of a set of slices: only these slices, by
|
|
55
|
+
their number, put back again if they were already
|
|
33
56
|
--rewrite-all with --restore: write every row of the snapshot back,
|
|
34
57
|
the ones the org already holds as the snapshot does
|
|
35
|
-
included
|
|
58
|
+
included; of a set, every slice, those put back
|
|
59
|
+
already too
|
|
36
60
|
--include-changed with --restore of the snapshot a Sync run kept: put
|
|
37
61
|
back the records changed or deleted since the run too
|
|
38
|
-
${
|
|
62
|
+
${ie("written back")} --max-age-days <n> the retention, as sandforge.backup.maxAgeDays sets it:
|
|
39
63
|
snapshots taken more than <n> days ago are removed as
|
|
40
64
|
the command starts, each named on stderr \u2014 the one a
|
|
41
65
|
Sync run kept of what it wrote over too, which removing
|
|
@@ -43,7 +67,10 @@ ${M("written back")} --max-age-days <n> the retention, as sandforge.backup.
|
|
|
43
67
|
(default: 30)
|
|
44
68
|
--yes do not ask before a restore writes. Without it, a
|
|
45
69
|
command with no terminal to answer the question \u2014 a
|
|
46
|
-
CI step \u2014 stops there, exit 2, and writes nothing
|
|
70
|
+
CI step \u2014 stops there, exit 2, and writes nothing.
|
|
71
|
+
Into an org that is not the one the snapshot was
|
|
72
|
+
taken of \u2014 a sandbox refreshed since \u2014 --yes counts
|
|
73
|
+
as no, exit 1: run it without --yes, in a terminal
|
|
47
74
|
--json emit what the panel would receive, or with --list the
|
|
48
75
|
snapshots, every other line on stderr
|
|
49
76
|
--help this text
|
|
@@ -65,35 +92,43 @@ the emails that sends against what the org has left today, and whether the
|
|
|
65
92
|
org delivers them.
|
|
66
93
|
|
|
67
94
|
A snapshot says its id, which --restore takes, and what it holds short of the
|
|
68
|
-
org: an object stopped at --max-records, or never reached.
|
|
95
|
+
org: an object stopped at --max-records, or never reached. A set of slices
|
|
96
|
+
says its id and its slices; a slice the org would not read whole, even read in
|
|
97
|
+
smaller parts, stops it there, and the set is listed as partial.
|
|
69
98
|
|
|
70
99
|
Exit codes: 0 the run finished: the snapshot holds every record of its objects,
|
|
71
|
-
or the restore put back every value
|
|
100
|
+
or the restore put back every value, or the snapshots were deleted; 1 it could
|
|
101
|
+
not start, or the snapshot or
|
|
72
102
|
the restore failed or was refused \u2014 what the org runs as it writes, without
|
|
73
103
|
--accept-automation (AUTOMATION_NOT_ACCEPTED), emails it delivers, without
|
|
74
104
|
--accept-emails (EMAILS_NOT_ACCEPTED), more emails than it has left today
|
|
75
105
|
(EMAILS_EXCEEDED), or a mute refused among the reasons; 2 a bad command line, or a question with no
|
|
76
106
|
terminal to answer it (give --yes); 3 the snapshot holds part of an object's
|
|
77
|
-
records
|
|
107
|
+
records \u2014 a set of slices stopped short among them \u2014, or the restore left
|
|
108
|
+
values as they are (rows the org refused, a
|
|
78
109
|
snapshot that holds part of the records, or records of a Sync run's snapshot
|
|
79
110
|
changed since the run, held back without --include-changed).
|
|
80
|
-
`,
|
|
81
|
-
`),process.exit(2));let
|
|
82
|
-
`),process.exit(2)),
|
|
83
|
-
`),process.exit(2))
|
|
84
|
-
`),process.exit(2));let
|
|
85
|
-
`),process.exit(2));let b=e.includes("--
|
|
86
|
-
`),process.exit(2));let
|
|
87
|
-
`),process.exit(2));let
|
|
88
|
-
`),process.exit(2));let
|
|
89
|
-
`)
|
|
90
|
-
`),
|
|
91
|
-
`);return}s
|
|
92
|
-
`)
|
|
93
|
-
`),process.
|
|
94
|
-
`);return}let m=l.
|
|
95
|
-
`);process.exitCode=1,e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:
|
|
96
|
-
`);return}
|
|
97
|
-
`);
|
|
98
|
-
|
|
99
|
-
`)
|
|
111
|
+
`,pe=/^[A-Za-z][A-Za-z0-9_]{0,79}$/,fe={switches:["--list","--slices","--rewrite-all","--include-changed","--yes","--json",...N],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 we(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():"";(!pe.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.`),z(i)||b(`Not a filter --where can take: "${i}". ${P}`),s[l]=i}return s}function me(o){let e=o.slice(2);(e.includes("--help")||e.includes("-h"))&&(process.stdout.write(ge),process.exit(0)),T(e,fe);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
|
+
`),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
|
+
`),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)pe.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=C(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=we(k,i),d=C(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
|
+
`),process.exit(2));let p=e.includes("--rewrite-all");p&&l===void 0&&(process.stderr.write(`--rewrite-all goes with --restore.
|
|
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=X(s("--max-age-days")),f=ne(e),j=N.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:Y(d)}:{},...m.length>0?{deleteIds:m}:{},storeDir:s("--store",K())??"",...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 be(o=process.argv){let e=me(o),s=c=>{process[e.json?"stderr":"stdout"].write(`${c}
|
|
121
|
+
`)},r=V(e.storeDir);if(r!==void 0){process.stderr.write(`${r}
|
|
122
|
+
`),process.exitCode=1;return}s(`store: ${e.storeDir}`);let n=Q(ue(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?le(c,e.org):c,h=se(n),p=e.org!==void 0?le(h,e.org):h,u=B({getSandforgeSetting:R(e)});if(e.json){process.stdout.write(`${JSON.stringify(Ae(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(ke))s(a);p.length>0&&s("sets of slices, each restored and deleted whole:");for(let a of p)s(` ${re(a,u)}`);return}let t=[];if(e.deleteIds){let c=await ce(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 ${e.storeDir}" names those it keeps.
|
|
125
|
+
`),process.exitCode=1);return}let i=await E(e.org),l=await new de().validateConnection(i.accessToken,i.instanceUrl),m={alias:i.alias,orgType:D({isSandbox:l.isSandbox,edition:l.orgType}),metadata:{apiVersion:"66.0",edition:l.orgType}},y=await ce(e,n,s,t,{typed:m,session:i}),k=c=>t.find(d=>d.correlationId===c);if(e.restoreId){let c=ee(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 ${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
|
+
`),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(`${_(f)}
|
|
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 te(a))s(f);u&&O(L(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=Se(c.payload??{});s(d.line),O(d.exitCode)}}if(e.json){process.stdout.write(`${JSON.stringify({tool:"sandforge-backup",posted:t},null,2)}
|
|
130
|
+
`);return}let $=t[t.length-1];$&&s(`
|
|
131
|
+
last message: ${String($.type)}`)}async function ce(o,e,s,r,n){let t=new J({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:R(o)},infraServices:{productionGuard:ae(s,o.org??""),confirmRestoreIntoReplacedOrg:i=>o.yes?(process.stderr.write(`${$e(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(`${q(i)}
|
|
133
|
+
`)),t.setRunKeyStore(M(o.storeDir)),t.setBackupRecordStore(new G(F(o.storeDir))),await t.swept(),t.setSyncRuns(U(H())),t}function ye(o,e){return o!==void 0&&e!==void 0&&o.length>=15&&o.slice(0,15)===e.slice(0,15)}function le(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=>ye(n,r.organizationId)))}function ke(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 $e(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 Ae(o,e=[],s=0){return{tool:"sandforge-backup",...e.length>0?{sets:e.map(r=>{let n=oe(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 Se(o){let e=String(o.operationId??"?"),s=(o.objects??[]).filter(t=>t.truncated===!0);if(o.slices!==void 0)return je(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"})`+xe(s),exitCode:3}}function je(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 xe(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")&&(Z(),be().then(()=>process.exit(process.exitCode??0)).catch(o=>{process.stderr.write(`${o instanceof Error?o.message:String(o)}
|
|
134
|
+
`),process.exit(1)}));export{be as main,me as parseArgs,$e as replacedOrgYesWords,Ae as snapshotListing,Se as snapshotTaken,we as wheresOf};
|