sandforge 1.80.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-EMNC6YI4.mjs → chunk-2IB7I3IQ.mjs} +1 -1
- package/lib/{chunk-3RZQZHEB.mjs → chunk-2NAIUKVL.mjs} +1 -1
- package/lib/{chunk-AEKONPF4.mjs → chunk-2OIRJEYE.mjs} +1 -1
- package/lib/{chunk-BV6VTP3J.mjs → chunk-2OZG6GRW.mjs} +1 -1
- package/lib/{chunk-JEERQRLW.mjs → chunk-2Z54GB6X.mjs} +1 -1
- package/lib/chunk-2ZMGVBLW.mjs +7 -0
- package/lib/{chunk-FKG7Q3WH.mjs → chunk-33ZX3A56.mjs} +1 -1
- package/lib/{chunk-HLWMJF6Y.mjs → chunk-3AOKLIVE.mjs} +1 -1
- package/lib/{chunk-GGD7ON3M.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-BKDV4ENO.mjs → chunk-5UT2ZBGF.mjs} +1 -1
- package/lib/chunk-5VQNKDFU.mjs +7 -0
- package/lib/{chunk-XAMBCQPU.mjs → chunk-5WGA5CZB.mjs} +1 -1
- package/lib/chunk-5ZKCLBTN.mjs +474 -0
- package/lib/{chunk-UCD54V2M.mjs → chunk-67CC7RAE.mjs} +1 -1
- package/lib/{chunk-TSLJUSLW.mjs → chunk-6CDIIFNX.mjs} +1 -1
- package/lib/{chunk-AV5SWEHP.mjs → chunk-6FARZYMJ.mjs} +1 -1
- package/lib/{chunk-FPKYYFM7.mjs → chunk-6FMLW7PH.mjs} +1 -1
- package/lib/chunk-6IGEASOF.mjs +7 -0
- package/lib/{chunk-XUWL6ZPC.mjs → chunk-6NADW3OI.mjs} +1 -1
- package/lib/chunk-6SEDOIO3.mjs +10 -0
- package/lib/{chunk-PJ5I73CK.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-2UZPIMUC.mjs → chunk-AJPSGVMD.mjs} +1 -1
- package/lib/{chunk-GSKCGQIP.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-J525F5KI.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-OHWNPXWW.mjs → chunk-D7P7DTWL.mjs} +1 -1
- package/lib/{chunk-COFG7Q6R.mjs → chunk-DHGPDSXS.mjs} +1 -1
- package/lib/{chunk-WU3GLFZO.mjs → chunk-DHIW4IO5.mjs} +1 -1
- package/lib/{chunk-6XYKJSGX.mjs → chunk-DMBR24CK.mjs} +1 -1
- package/lib/chunk-DPYTG6DM.mjs +48 -0
- package/lib/{chunk-BY2HJFFG.mjs → chunk-DQR5NDMI.mjs} +1 -1
- package/lib/chunk-DXOXLUZA.mjs +7 -0
- package/lib/{chunk-YRQGKDHM.mjs → chunk-E2OBAWSH.mjs} +1 -1
- package/lib/chunk-E2YJVSX6.mjs +10 -0
- package/lib/{chunk-JWTSEDIQ.mjs → chunk-EAFLDSQ2.mjs} +1 -1
- package/lib/{chunk-MILU7WFN.mjs → chunk-EH5YUA5W.mjs} +1 -1
- package/lib/{chunk-BGUEWRK2.mjs → chunk-EOSEMFPU.mjs} +1 -1
- package/lib/chunk-ETT5GP4P.mjs +13 -0
- package/lib/{chunk-MYW5QNGI.mjs → chunk-FDGFUEK3.mjs} +1 -1
- package/lib/{chunk-NTFIRZP6.mjs → chunk-FLNLG43R.mjs} +1 -1
- package/lib/{chunk-CHYDMRSV.mjs → chunk-FSDO4DJA.mjs} +1 -1
- package/lib/{chunk-MJVTDA5Q.mjs → chunk-FSZTXLNW.mjs} +1 -1
- package/lib/{chunk-SOU4FRYN.mjs → chunk-FTA5LOVX.mjs} +1 -1
- package/lib/chunk-G4VXPS3A.mjs +7 -0
- package/lib/chunk-GF247DA7.mjs +7 -0
- package/lib/{chunk-BTWDMNN3.mjs → chunk-GK7VEYFM.mjs} +1 -1
- package/lib/{chunk-SE4QEZUG.mjs → chunk-GR3NGDVM.mjs} +1 -1
- package/lib/{chunk-3TJON4F3.mjs → chunk-GTIXJCGS.mjs} +1 -1
- package/lib/{chunk-NZC67CGR.mjs → chunk-GWRKS3AL.mjs} +1 -1
- package/lib/{chunk-XLXIPIEW.mjs → chunk-GYKNCYES.mjs} +1 -1
- package/lib/{chunk-WIO4XO4F.mjs → chunk-HFSBDM7B.mjs} +1 -1
- package/lib/{chunk-KDGMAGQR.mjs → chunk-HVC5CYIB.mjs} +1 -1
- package/lib/{chunk-WR4Q363I.mjs → chunk-HYBH5PFM.mjs} +1 -1
- package/lib/chunk-HYOOJVR6.mjs +7 -0
- package/lib/{chunk-5K5VLULK.mjs → chunk-IBURU7T7.mjs} +1 -1
- package/lib/chunk-ICIYL45C.mjs +7 -0
- package/lib/{chunk-QR3WELJQ.mjs → chunk-IKGHRYCN.mjs} +1 -1
- package/lib/chunk-IM2XA6JI.mjs +7 -0
- package/lib/{chunk-IWDREM66.mjs → chunk-J6G23RUI.mjs} +1 -1
- package/lib/{chunk-2BA2XKAY.mjs → chunk-JU2XEKEO.mjs} +1 -1
- package/lib/{chunk-MHMH6MTP.mjs → chunk-K55LH4ZQ.mjs} +1 -1
- package/lib/chunk-K5HV4YRO.mjs +7 -0
- package/lib/{chunk-M3ROUWDX.mjs → chunk-K77NR3UK.mjs} +1 -1
- package/lib/chunk-KE2PGD6C.mjs +7 -0
- package/lib/chunk-KGYXLSQ5.mjs +37 -0
- package/lib/{chunk-E5AHXLS6.mjs → chunk-KNIRA333.mjs} +1 -1
- package/lib/chunk-KOQV4WXC.mjs +8 -0
- package/lib/{chunk-L77FJZEP.mjs → chunk-KRNFVAGC.mjs} +1 -1
- package/lib/{chunk-MTMH6H2A.mjs → chunk-LCDPCUXS.mjs} +1 -1
- package/lib/{chunk-YAZO75G2.mjs → chunk-LNXBCE7E.mjs} +1 -1
- package/lib/{chunk-IZQZ6ZUF.mjs → chunk-LO527YLT.mjs} +1 -1
- package/lib/chunk-MAHZMPMZ.mjs +7 -0
- package/lib/{chunk-F6GUDTOB.mjs → chunk-MHW6DV6T.mjs} +1 -1
- package/lib/{chunk-2YIV2OB2.mjs → chunk-MIDBQ7SD.mjs} +1 -1
- package/lib/{chunk-FGRG7ANU.mjs → chunk-MKNAZPOT.mjs} +1 -1
- package/lib/{chunk-PZPJKATS.mjs → chunk-MNITSYI2.mjs} +8 -8
- package/lib/{chunk-OLSGVAIL.mjs → chunk-MO3N5XVV.mjs} +53 -53
- 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-IG2MTQRP.mjs → chunk-NWVVCZUK.mjs} +1 -1
- package/lib/{chunk-2NBYT7GR.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-CEX3NEZL.mjs → chunk-ONMBSACW.mjs} +1 -1
- package/lib/chunk-OQQHNYR7.mjs +272 -0
- package/lib/{chunk-SOGQW4IG.mjs → chunk-OU5W7SCB.mjs} +1 -1
- package/lib/{chunk-O2HDYYUV.mjs → chunk-OVOLG3AL.mjs} +1 -1
- package/lib/{chunk-DYFALGRT.mjs → chunk-OXKZ4Y3B.mjs} +1 -1
- package/lib/{chunk-2GTBABKU.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-IGYH7GMA.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-BXU6WFMH.mjs → chunk-QXLZINZB.mjs} +1 -1
- package/lib/chunk-R2BJWO5N.mjs +20 -0
- package/lib/chunk-R6TF26V4.mjs +10 -0
- package/lib/{chunk-YKKRIEH4.mjs → chunk-RKALOKAU.mjs} +1 -1
- package/lib/chunk-SQGP46QS.mjs +7 -0
- package/lib/chunk-SW2NUKQL.mjs +9 -0
- package/lib/{chunk-MFG4MUIO.mjs → chunk-T26C576X.mjs} +1 -1
- package/lib/{chunk-LKQ5RKIV.mjs → chunk-T3PLRQ2T.mjs} +1 -1
- package/lib/chunk-T5VAULLQ.mjs +7 -0
- package/lib/{chunk-KYEDBS54.mjs → chunk-TEIBWMJM.mjs} +1 -1
- package/lib/chunk-TKQQVB2D.mjs +9 -0
- package/lib/{chunk-ELFXJHU7.mjs → chunk-TPHXRHOA.mjs} +1 -1
- package/lib/chunk-TQ2TQHTT.mjs +9 -0
- package/lib/{chunk-RPI7LRTW.mjs → chunk-TQM2XJ27.mjs} +1 -1
- package/lib/{chunk-IOIWJ3DJ.mjs → chunk-UCHAZ4ZU.mjs} +1 -1
- package/lib/{chunk-G35N4P7D.mjs → chunk-UIUPPEFB.mjs} +1 -1
- package/lib/{chunk-DBB3EMIN.mjs → chunk-UT27HXE7.mjs} +1 -1
- package/lib/{chunk-KBJ5VERV.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-HEKAZJRH.mjs → chunk-WEZLXE34.mjs} +1 -1
- package/lib/{chunk-W622GUAW.mjs → chunk-WI4HYWV6.mjs} +1 -1
- package/lib/{chunk-WA7EYLAQ.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-FXXLX4O6.mjs → chunk-X2ZVSQ54.mjs} +1 -1
- package/lib/{chunk-ZVAED4QV.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-74Q6DORA.mjs → chunk-Y5ZCPY36.mjs} +1 -1
- package/lib/{chunk-UNJA4J37.mjs → chunk-YCSFP6ER.mjs} +4 -4
- package/lib/{chunk-X5JYBPXP.mjs → chunk-YHIOS2PU.mjs} +1 -1
- package/lib/chunk-YIGFYZQY.mjs +7 -0
- package/lib/chunk-YJEXE6HZ.mjs +925 -0
- package/lib/{chunk-TTKXMDBN.mjs → chunk-YOGMP72T.mjs} +4 -4
- package/lib/chunk-ZRUDYB7O.mjs +7 -0
- package/lib/{chunk-CU2INBND.mjs → chunk-ZUA5BNAO.mjs} +1 -1
- package/lib/chunk-ZWCRWF7E.mjs +7 -0
- package/lib/{chunk-N652NMZ4.mjs → chunk-ZWZXQTAK.mjs} +52 -52
- package/lib/sandforge-autopilot.mjs +11 -11
- package/lib/sandforge-backup.mjs +63 -32
- package/lib/sandforge-checkpoint.mjs +1 -348
- package/lib/sandforge-cleanup.mjs +1 -1
- package/lib/sandforge-clone.mjs +1 -1
- package/lib/sandforge-compare.mjs +1 -1
- package/lib/sandforge-dataops.mjs +1 -1
- package/lib/sandforge-empty.mjs +11 -11
- package/lib/sandforge-env.mjs +104 -104
- package/lib/sandforge-frozen.mjs +1 -266
- package/lib/sandforge-mcp.mjs +33 -14
- package/lib/sandforge-monitor.mjs +1 -1
- 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-2CNCDM56.mjs +0 -7
- package/lib/chunk-3F6Q5E7I.mjs +0 -14
- package/lib/chunk-4VS2V6WU.mjs +0 -25
- package/lib/chunk-5P4PHJRL.mjs +0 -9
- package/lib/chunk-5TC3QB4U.mjs +0 -10
- package/lib/chunk-7ABODJ4G.mjs +0 -7
- package/lib/chunk-7EGQP6S4.mjs +0 -7
- package/lib/chunk-7FFGJWHN.mjs +0 -7
- package/lib/chunk-7YDNUBO5.mjs +0 -7
- package/lib/chunk-A527W53V.mjs +0 -7
- package/lib/chunk-ADOAS63R.mjs +0 -7
- package/lib/chunk-B5QQJ4SI.mjs +0 -7
- package/lib/chunk-CION3VMZ.mjs +0 -7
- package/lib/chunk-CSBS5U5I.mjs +0 -7
- package/lib/chunk-DB7RBE5D.mjs +0 -7
- package/lib/chunk-E5ZB3LU5.mjs +0 -7
- package/lib/chunk-EFR2Y7E4.mjs +0 -7
- package/lib/chunk-EHQ3FX6X.mjs +0 -7
- package/lib/chunk-EQNW3UC2.mjs +0 -7
- package/lib/chunk-F43REJDZ.mjs +0 -10
- package/lib/chunk-GSG7WZHM.mjs +0 -7
- package/lib/chunk-HOJYWTP7.mjs +0 -20
- package/lib/chunk-HS4YRX4J.mjs +0 -7
- package/lib/chunk-I7O6C2B5.mjs +0 -8
- package/lib/chunk-IFETCRWE.mjs +0 -10
- package/lib/chunk-IQXHJEYB.mjs +0 -7
- package/lib/chunk-JPUR2CFX.mjs +0 -10
- package/lib/chunk-K327QKMD.mjs +0 -7
- package/lib/chunk-KRCA6IPH.mjs +0 -8
- package/lib/chunk-LPBMBW3O.mjs +0 -13
- package/lib/chunk-LWW4U276.mjs +0 -7
- package/lib/chunk-MJU2PGZQ.mjs +0 -15
- package/lib/chunk-OAZRPP4I.mjs +0 -7
- package/lib/chunk-OO6CLPEH.mjs +0 -7
- package/lib/chunk-OPXCV2KL.mjs +0 -7
- package/lib/chunk-P33PSCXK.mjs +0 -7
- package/lib/chunk-Q3DM32KF.mjs +0 -11
- package/lib/chunk-QROPNEGY.mjs +0 -14
- package/lib/chunk-QWT2C74M.mjs +0 -7
- package/lib/chunk-R3X3LV64.mjs +0 -14
- package/lib/chunk-RMBPOTD7.mjs +0 -7
- package/lib/chunk-SIHORWVK.mjs +0 -7
- package/lib/chunk-T62WNR54.mjs +0 -7
- package/lib/chunk-TTFDUKUS.mjs +0 -47
- package/lib/chunk-VE6XKGGD.mjs +0 -7
- package/lib/chunk-VGW4MXXZ.mjs +0 -7
- package/lib/chunk-VS7ZXUII.mjs +0 -824
- package/lib/chunk-VXQLDM4R.mjs +0 -7
- package/lib/chunk-VYXMVJL5.mjs +0 -7
- package/lib/chunk-W7U5E5ZL.mjs +0 -9
- package/lib/chunk-WXAQ7FK3.mjs +0 -115
- package/lib/chunk-YS4G22C2.mjs +0 -7
- package/lib/chunk-ZM6OJGIG.mjs +0 -7
- package/lib/chunk-ZUTYVST5.mjs +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m}from"./chunk-GYKNCYES.mjs";import"./chunk-YOGMP72T.mjs";import"./chunk-2Z54GB6X.mjs";import"./chunk-R6TF26V4.mjs";import"./chunk-JU2XEKEO.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-AITNZWLB.mjs";import"./chunk-GWRKS3AL.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-ZWCRWF7E.mjs";import"./chunk-54HYHHVL.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-ETT5GP4P.mjs";import"./chunk-SW2NUKQL.mjs";import"./chunk-4JKR4PTZ.mjs";import"./chunk-E2YJVSX6.mjs";import"./chunk-BNO5GIJ6.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-4TLYUZD5.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"./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"./chunk-TZE3Y7IQ.mjs";import"./chunk-3B5H24ZG.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-EAFLDSQ2.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-DPYTG6DM.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{h as REWIND_MUTING_STEP_WORDS,g as REWIND_STEP_WORDS,i as acceptanceRefusal,j as boundsRefusal,k as boundsRefusals,e as firedCount,m as notConfirmedRefusal,a as objectsWrittenBy,b as previewTotals,f as remakeUnasked,d as rewindStepsOf,c as selectionDiff,l as undeletableUnattendedRefusal};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{e as C,f as I}from"./chunk-JU2XEKEO.mjs";import{e as T,r as S,z as O}from"./chunk-ETT5GP4P.mjs";import{H as A,d as P,r as b}from"./chunk-E2YJVSX6.mjs";import{a as u}from"./chunk-3B5H24ZG.mjs";import{b as w}from"./chunk-CA5NAXSU.mjs";import{_a as h}from"./chunk-DPYTG6DM.mjs";import{b as i,f as R,l as m}from"./chunk-WZQEK4WT.mjs";import{randomBytes as q}from"node:crypto";import{open as U,readFile as F,rename as $,rm as M}from"node:fs/promises";import{promisify as N}from"node:util";import{gunzip as L,gzip as _}from"node:zlib";var D=N(_),Q=N(L),G=200,E="005",j="User",z="Group",H=new Set(["Pricebook2","PricebookEntry"]);function Re(e,n){let t=new Set(n);return e.fields.filter(o=>t.has(o.name)&&!C.includes(o.name)&&o.type==="reference"&&o.createable===!0&&(o.referenceTo??[]).some(r=>r===j||r===z)).map(o=>o.name)}async function Ae(e,n,t){let o=new Set;for(let{objectApiName:r,userLookups:s}of t){if(s.length===0)continue;let c=await S.read(e,n,r);for await(let l of c.records())for(let y of s){let a=l[y];if(typeof a!="string")continue;let p=u(a,E);p!==void 0&&o.add(p)}}return[...o].sort()}function ke(e){for(let n of e)if((n.name==="Account"||n.name==="Contact")&&n.fields.some(t=>t.name===I))return!0;return!1}function be(e){for(let n of e)if(H.has(n))return!0;return!1}function J(e){return e.map(n=>{if(u(n,E)!==n)throw new Error(`Not a user id: ${n}`);return`'${n}'`}).join(", ")}function W(e,n){let t=[];for(let o=0;o<e.length;o+=n)t.push(e.slice(o,o+n));return t}function B(e,n){return[...v(e),...W(n,G).map(t=>({part:"users",objectApiName:j,soql:`SELECT Id, Username, Name, IsActive, UserType FROM User WHERE Id IN (${J(t)})`,scanAll:!1}))]}function v(e){let n=[{part:"recordTypes",objectApiName:"RecordType",soql:`SELECT Id, SobjectType, DeveloperName, NamespacePrefix, Name, IsActive${e.personAccounts?", IsPersonType":""} FROM RecordType`,scanAll:!1},{part:"queues",of:"groups",objectApiName:z,soql:"SELECT Id, DeveloperName, Name FROM Group WHERE Type = 'Queue'",scanAll:!1},{part:"queues",of:"objects",objectApiName:"QueueSobject",soql:"SELECT QueueId, SobjectType FROM QueueSobject",scanAll:!1}];return e.catalog&&n.push({part:"standardPricebook",objectApiName:"Pricebook2",soql:"SELECT Id FROM Pricebook2 WHERE IsStandard = true LIMIT 1",scanAll:!1}),n}function xe(e){return Math.ceil((v(e).length+1)/T)}var K=m({Id:i(),SobjectType:i(),DeveloperName:i(),NamespacePrefix:i().nullish(),Name:i(),IsActive:R(),IsPersonType:R().nullish()}).loose(),X=m({Id:i(),DeveloperName:i(),Name:i().nullish()}).loose(),V=m({QueueId:i(),SobjectType:i()}).loose(),Y=m({Id:i(),Username:i(),Name:i().nullish(),IsActive:R(),UserType:i()}).loose(),f="the org answered with rows this SandForge does not read";function Z(e,n){let t=[];for(let o of e){let r=K.safeParse(o);if(!r.success)return{unread:f};let s=r.data;t.push({id:u(s.Id)??s.Id,sobjectType:s.SobjectType,developerName:s.DeveloperName,...s.NamespacePrefix?{namespacePrefix:s.NamespacePrefix}:{},name:s.Name,isActive:s.IsActive,...n&&typeof s.IsPersonType=="boolean"?{isPersonType:s.IsPersonType}:{}})}return{rows:t.sort((o,r)=>x(`${o.sobjectType}.${o.developerName}`,`${r.sobjectType}.${r.developerName}`))}}function ee(e,n){let t=new Map;for(let r of n){let s=V.safeParse(r);if(!s.success)return{unread:f};let c=s.data.QueueId.slice(0,15);t.set(c,[...t.get(c)??[],s.data.SobjectType])}let o=[];for(let r of e){let s=X.safeParse(r);if(!s.success)return{unread:f};let c=s.data;o.push({id:u(c.Id)??c.Id,developerName:c.DeveloperName,name:c.Name??"",sobjectTypes:[...t.get(c.Id.slice(0,15))??[]].sort()})}return{rows:o.sort((r,s)=>x(r.developerName,s.developerName))}}function ne(e){let n=[];for(let t of e){let o=Y.safeParse(t);if(!o.success)return{unread:f};let r=o.data;n.push({id:u(r.Id)??r.Id,username:r.Username,name:r.Name??"",isActive:r.IsActive,userType:r.UserType})}return{rows:n.sort((t,o)=>x(t.id,o.id))}}async function we(e){let n=B(e,e.users),t=n.map(()=>[]),o=await O(e.reader,n,(a,p)=>{t[a].push(...p)},e.signal),r=new Map;o.forEach((a,p)=>{let{part:d}=n[p];!a.read&&!r.has(d)&&r.set(d,a.reason)});let s=(a,p)=>n.flatMap((d,g)=>d.part===a&&(p===void 0||d.of===p)?t[g]:[]),c={version:1,organizationId:u(e.organizationId)??e.organizationId,recordTypes:[],users:[],queues:[],unread:[]},l=(a,p,d)=>{let g=r.get(a);if(g!==void 0){c.unread.push({part:a,reason:oe(g)});return}let k=p();"unread"in k?c.unread.push({part:a,reason:k.unread}):d(k.rows)};l("recordTypes",()=>Z(s("recordTypes"),e.personAccounts),a=>{c.recordTypes=a}),l("queues",()=>ee(s("queues","groups"),s("queues","objects")),a=>{c.queues=a}),e.catalog&&l("standardPricebook",()=>{let[a]=s("standardPricebook"),p=typeof a?.Id=="string"?u(a.Id,"01s"):void 0;return a!==void 0&&p===void 0?{unread:f}:{rows:p}},a=>{a!==void 0&&(c.standardPricebookId=a)}),l("users",()=>ne(s("users")),a=>{c.users=a});let y=h.safeParse(c);return y.success?y.data:re(c,y.error.issues)}function re(e,n){let t=new Set;for(let r of n){let[s]=r.path;(s==="recordTypes"||s==="users"||s==="queues")&&t.add(s),s==="standardPricebookId"&&t.add("standardPricebook")}let o={...e,unread:[...e.unread]};for(let r of t)r==="recordTypes"&&(o.recordTypes=[]),r==="users"&&(o.users=[]),r==="queues"&&(o.queues=[]),r==="standardPricebook"&&delete o.standardPricebookId,o.unread.push({part:r,reason:f});return h.parse(o)}function x(e,n){return e<n?-1:e>n?1:0}function oe(e){let n=e.trim()===""?"the org gave no reason":e.trim();return n.length<=500?n:`${n.slice(0,499)}\u2026`}function te(e){let n=[...new Set(e.unread.map(t=>t.part))];return{recordTypes:e.recordTypes.length,users:e.users.length,queues:e.queues.length,standardPricebook:e.standardPricebookId!==void 0,...n.length>0?{unread:n}:{}}}async function Te(e,n){let t=h.safeParse(n);if(!t.success)throw new A("invalid",`Not a replay annex: ${t.error.message}`);let o=b(e),r=`${o}.${process.pid}-${q(4).toString("hex")}.tmp`,s=await U(r,"wx",P);try{try{await s.writeFile(await D(`${JSON.stringify(t.data)}
|
|
8
|
+
`)),await s.sync()}finally{await s.close()}await $(r,o)}catch(c){throw await M(r,{force:!0}),c}return te(t.data)}async function Pe(e){let n;try{n=await F(b(e))}catch(r){if(r.code==="ENOENT")return;throw r}let t;try{t=JSON.parse((await Q(n)).toString("utf8"))}catch(r){throw new A("damaged",`The checkpoint\u2019s replay annex cannot be read: ${w(r)}`)}let o=h.safeParse(t);if(!o.success)throw new A("damaged","The checkpoint\u2019s replay annex does not parse");return o.data}export{Re as a,Ae as b,ke as c,be as d,xe as e,we as f,te as g,Te as h,Pe as i};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{Ic as m,Nc as l,Qc as p}from"./chunk-CAFUNR6D.mjs";import{mkdirSync as $,statSync as A}from"node:fs";import{homedir as k}from"node:os";import{join as g,resolve as x}from"node:path";var y=448;function D(e=process.env){return S("backups",e)}function S(e,r=process.env){let t=r.SANDFORGE_JOURNAL_DIR,n=t!==void 0&&t.trim()!==""?x(t):g(k(),".sandforge");return g(n,e)}var w={mkdir:(e,r)=>{$(e,r)},stat:e=>A(e),...typeof process.getuid=="function"?{uid:()=>process.getuid?.()??-1}:{}};function I(e,r=w){try{r.mkdir(e,{recursive:!0,mode:y});let t=r.stat(e);if(!t.isDirectory())return`The store ${e} is not a folder.`;let n=r.uid?.();return n!==void 0&&t.uid!==n?`The store ${e} belongs to another user, who can read its snapshots and change them: name a folder of your own with --store.`:void 0}catch(t){return`The store ${e} could not be made: ${t instanceof Error?t.message:String(t)}`}}function B(e){if(e!==void 0)return/^\d{1,5}$/.test(e)||(process.stderr.write(`Not a number of days: "${e}"
|
|
8
|
+
`),process.exit(2)),Number(e)}function E(e,r){return e.flatMap((t,n)=>t===r&&n+1<e.length?[e[n+1]??""]:[])}function F(e){let r=[];for(let t of e){/^[1-9]\d{0,5}(,[1-9]\d{0,5})*$/.test(t)||(process.stderr.write(`Not a slice's number: "${t}". Give --slice 2, or --slice 1,3.
|
|
9
|
+
`),process.exit(2));for(let n of t.split(",").map(Number))r.includes(n)||r.push(n)}return r.sort((t,n)=>t-n)}function C(e){return(r,t)=>r==="backup.maxRecordsPerObject"&&e.maxRecords!==void 0?e.maxRecords:r==="backup.maxAgeDays"&&e.maxAgeDays!==void 0?e.maxAgeDays:t}function M(e){let r=`removed snapshot ${e.operationId}${e.takenAt!==void 0?`, taken ${e.takenAt}`:""}: past the retention of ${e.days} day(s) (--max-age-days, 0 keeps them all)`;return e.syncRunId!==void 0?`${r}. It held what the Sync run ${e.syncRunId||"(unknown)"} wrote over: removing that run with sandforge sync --remove no longer puts those values back`:r}var j=1440*6e4;function _(e,r,t={}){let n=e.get(`backup:${r}`);if(n){let o=(n.objects??[]).map(s=>({objectApiName:s.objectApiName,records:s.recordCount??0}));return{words:n.origin==="slice"&&n.setId!==void 0?`slice ${n.slice?.index??"?"} of set ${n.setId}`:`snapshot ${r}`,objects:o,totalRecords:n.totalRecords??o.reduce((s,f)=>s+f.records,0)}}let a=new p(e).get(r);if(!a)return;let c=a.objects.flatMap(o=>o.slices.filter(s=>s.state!=="pending").map(s=>({objectApiName:o.objectApiName,slice:s}))),i=t.slices,d=i?c.filter(o=>i.includes(o.slice.index)):t.rewriteAll===!0?c:c.filter(o=>o.slice.restoredAt===void 0),u=[];for(let{objectApiName:o,slice:s}of d){let f=u.find(h=>h.objectApiName===o);f?f.records+=s.rows:u.push({objectApiName:o,records:s.rows})}let b=i?`slice(s) ${i.join(", ")}`:t.rewriteAll===!0?"every slice":`the ${d.length} slice(s) not put back yet`;return{words:`set ${r} (${b}, of ${c.length})`,objects:u,totalRecords:u.reduce((o,s)=>o+s.records,0)}}function L(e){let r=e.slices;return Array.isArray(r)?r.map(t=>t.skipped===!0?` slice ${t.index} ${t.objectApiName} put back before, not read again (--slice or --rewrite-all puts it back again)`:` slice ${t.index} ${t.objectApiName} put back ${t.restored} refused ${t.failed} unchanged ${t.unchanged}`):[]}function P(e){return new p(e).list()}function N(e,r){let t=Date.parse(e.lastActivityAt);if(!(r<=0||!Number.isFinite(t)))return new Date(t+r*j).toISOString().slice(0,10)}function J(e,r){let t=m(e),n=t.reduce((i,d)=>i+d.rows,0),a=e.objects.map(i=>`${i.objectApiName}${i.where!==void 0?` (where ${i.where})`:""}`).join(", "),c=N(e,r);return`${e.setId} ${e.startedAt} ${e.orgId} ${a} ${t.length} slice(s) of up to ${e.size} ${n} record(s) ${e.kind}, ${l(e)} `+(c!==void 0?`expires ${c}`:"kept (--max-age-days 0)")}export{D as a,S as b,I as c,B as d,E as e,F as f,C as g,M as h,_ as i,L as j,P as k,N as l,J as m};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
var o=class extends Error{operation;timeoutMs;constructor(t,e){super(`Operation "${t}" timed out after ${e}ms`),this.name="TimeoutError",this.operation=t,this.timeoutMs=e}},m=class{defaultTimeoutMs;constructor(t=3e4){this.defaultTimeoutMs=t}async withTimeout(t,e,l){let s=l??this.defaultTimeoutMs,i=new AbortController;return new Promise((c,n)=>{let u=setTimeout(()=>{i.abort(),n(new o(t,s))},s);e(i.signal).then(r=>{clearTimeout(u),c(r)},r=>{clearTimeout(u),n(r)})})}getDefaultTimeout(){return this.defaultTimeoutMs}};export{o as a,m as b};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{$a as q,$b as qa,Ab as R,Ac as Ra,Bb as S,Bc as Sa,Cb as T,Cc as Ta,Db as U,Dc as Ua,Eb as V,Ec as Va,Fb as W,Fc as Wa,Gb as X,Gc as Xa,Hb as Y,Hc as Ya,Ib as Z,Ic as Za,Jb as _,Jc as _a,Kb as $,La as a,Lb as aa,Ma as b,Mb as ba,Na as c,Nb as ca,Oa as d,Ob as da,Pa as e,Pb as ea,Qa as f,Qb as fa,Ra as g,Rb as ga,Sa as h,Sb as ha,Ta as i,Tb as ia,Ua as j,Ub as ja,Va as k,Vb as ka,Wa as l,Wb as la,Xa as m,Xb as ma,Ya as n,Yb as na,Za as o,Zb as oa,_a as p,_b as pa,ab as r,ac as ra,bb as s,bc as sa,cb as t,cc as ta,db as u,dc as ua,eb as v,ec as va,fb as w,fc as wa,gb as x,gc as xa,hb as y,hc as ya,ib as z,ic as za,jb as A,jc as Aa,kb as B,kc as Ba,lb as C,lc as Ca,mb as D,mc as Da,nb as E,nc as Ea,ob as F,oc as Fa,pb as G,pc as Ga,qb as H,qc as Ha,rb as I,rc as Ia,sb as J,sc as Ja,tb as K,tc as Ka,ub as L,uc as La,vb as M,vc as Ma,wb as N,wc as Na,xb as O,xc as Oa,yb as P,yc as Pa,zb as Q,zc as Qa}from"./chunk-KOQV4WXC.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"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-55LQD3Y3.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-3B5H24ZG.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-EAFLDSQ2.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-DPYTG6DM.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{v as API_BUDGET_EXCEEDED,r as API_BUDGET_NEAR_SHARE,o as API_REQUESTS_NOT_TOLD,I as BULK_BATCHES_NOT_TOLD,y as CHECKPOINT_REFUSED,B as CHECKPOINT_STOPPED_WORDS,a as DEFAULT_CONFIRM_ABOVE_RECORDS,b as DEFAULT_MAX_TOTAL,W as DELIVERABILITY_READ_MOST,fa as DEVELOPER_EDITION_SINGLE_EMAILS,ta as EMAILS_NOT_ACCEPTED,Oa as ForgeRunGateError,j as LastSimulations,Ma as OWNER_MAP_INACTIVE,Na as OWNER_MAP_UNKNOWN,c as READ_CEILING_PER_OBJECT,Z as SAMPLE_CANNOT_FIT,aa as SAMPLE_PLAN_GONE,$ as SAMPLE_PLAN_MISMATCH,Y as SAMPLE_STORAGE_UNREAD,_ as SAMPLE_TOO_LARGE,e as STORAGE_NEAR_SHARE,F as WHOLE_ORG_SOURCE_READS_PER_OBJECT,E as WHOLE_ORG_TARGET_READS_PER_OBJECT,ga as alertsCountAsSingle,u as apiBudgetCheckOf,w as apiBudgetRefusal,R as automationBytesOf,va as automationReadRequests,Wa as automationRefusal,La as automationUnreadOf,J as bulkBatchesRefusal,Va as bypassAssistantSentences,Ka as bypassesToAssign,z as checkpointPartOf,A as checkpointScopeStop,x as confirmationApiOf,l as confirmationSimulatedOf,Ca as confirmationStorageOf,ka as countedEmailChecksOf,g as countedStorageBytes,la as countedTargetEmails,Ba as deliverabilityAfterLeaseStop,ya as deliverabilityGate,xa as deliverabilityLineOf,wa as deliverabilityPartOf,sa as emailCheckLines,ja as emailChecksOf,ra as emailRefusal,ia as emailsCountedPerRecord,qa as emailsOfLimit,na as emailsUncountedOf,k as farPastTheSimulation,L as fileStorageRefusal,Qa as filesRefusalStop,Fa as firedOnInsertOf,Ga as firedOnUpdateOf,G as forgeRequestPartsOf,i as forgeVolumeCaseKey,P as forgeWriteBudgetOf,D as forgeWritesOf,Da as formatMB,Ea as formatMBPast,ma as insertsOf,Pa as isForgeRunGateError,Ta as leftOutLines,d as objectsAboveReadCeiling,Ha as objectsUpdatedAfterInsert,oa as overEmailOf,U as personalFieldsAsIsOf,m as pricesForLinesOf,q as readApiBudget,M as readBoundRefusal,N as readBoundStopOf,p as readDataStorage,ea as readEmailLimits,Ya as removalAutomationLines,Xa as removalAutomationRefusal,Ua as removalRiskLines,Za as removalStepsAutomationLines,_a as removalStepsAutomationRefusal,n as rolesMayBeOf,f as rowStorageBytes,Ja as runBypassesOf,s as runRequestsEstimate,t as runRequestsTotal,da as sampleGateErrorOf,ca as sampleGateStopOf,ba as sampleStorageUnreadStopOf,za as sendersOfNothingWritten,Aa as sendersOfNothingWrittenLine,ua as sendersUnreadOf,ha as singleCountAsWorkflow,K as sourceApiBudgetRefusal,Q as storageCheckOf,Ra as storageRefusal,S as storageTakesWords,C as takeCheckpointFirst,pa as unreadEmailOf,Ia as updateStepsOf,H as wholeOrgCostOf,X as wholeOrgDryRunOf,O as wholeOrgFilesOf,V as wholeOrgLeftOutOf,T as wholeOrgWritePlanOf,Sa as writePlanLines,h as writePlanOf};
|
|
@@ -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 c}from"./chunk-
|
|
7
|
+
import{a as c}from"./chunk-QIRO4HTE.mjs";var u=new Set(["string","textarea","email","phone","url","encryptedstring","picklist","multipicklist","combobox","date","datetime","int","long","double","currency","percent"]),f=new Set(["string","textarea","email","phone","url","encryptedstring"]),p=["FirstName","MiddleName","LastName"];function k(e){return e==null?!1:typeof e!="string"||e.trim()!==""}function l(e){return u.has(e.type)}function m(e){return f.has(e.type)}var b={name_pattern:"name",type_analysis:"type",content_pattern:"content"};function D(e){return{apiName:e.name,label:e.label,type:e.type}}function F(e){return e.createable===!0||e.updateable===!0}function h(e,n){let i=e.filter(F).map(r=>r.name);return n.map(r=>{let d={};for(let a of i)d[a]=r[a];return d})}function _(e,n,i,r){let d=i.filter(l),a=new Map(d.map(t=>[t.name,t]));return e.detectPII(n,d.map(D),r&&r.length>0?h(d,r):void 0).piiFields.flatMap(t=>{let o=a.get(t.fieldApiName);return o?[{field:o,classification:t.classification,detectedBy:b[t.detectionMethod],pattern:t.pattern??t.detectionMethod}]:[]})}function y(e){if(e.filterable===!0){if(e.type==="email")return"email";if(e.type==="phone")return"phone";if(e.type==="string"){if(/email(?:__c)?$/i.test(e.name))return"email";if(/phone(?:__c)?$/i.test(e.name))return"phone"}}}function P(e){return e.fields.find(n=>n.nameField===!0&&n.filterable===!0&&n.autoNumber!==!0&&(n.type==="string"||n.type==="textarea"))}function M(e){let n=[];for(let r of e.fields){let d=y(r);d&&n.push({field:r,kind:d})}let i=P(e);return i&&n.push({field:i,kind:"name"}),n}function E(e){let n=e.fields.find(i=>i.nameField===!0&&i.autoNumber!==!0);return n&&n.updateable===!0&&m(n)?[n]:e.fields.filter(i=>p.includes(i.name))}function g(e){return c[e.name]!==void 0?"fake":e.nillable===!0?"nullify":"fake"}var x=new Set(["email_content","ssn_content"]);function N(e,n){let i=new Set,r=[],d=n.filter(t=>t.detectedBy!=="content"||x.has(t.pattern));for(let t of[...d.map(o=>o.field),...E(e)])i.has(t.name)||!l(t)||t.calculated===!0||t.autoNumber===!0||(i.add(t.name),r.push(t));let a=[],s=[];for(let t of r)t.updateable===!0?a.push({field:t,method:g(t)}):s.push(t);return{fields:a,kept:s}}export{k as a,l as b,m as c,F as d,_ as e,y as f,P as g,M as h,g as i,N as j};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{d as M}from"./chunk-5C5XEVZN.mjs";import{g as x}from"./chunk-55LQD3Y3.mjs";import{createHash as z}from"node:crypto";import*as m from"node:fs/promises";import*as l from"node:path";import*as a from"node:fs/promises";import*as u from"node:path";function C(e){return e.map(({objectApiName:t,why:r,count:i})=>({objectApiName:t,count:i,note:x(i,r)}))}var E=/^\d+\.\d+\.\d+$/,L=/^[0-9a-f]{12}$/,o=class extends Error{constructor(t){super(t),this.name="ManifestError"}};function J(e){let t=(e.now?.()??new Date).toISOString(),r={version:e.version,status:"frozen",frozenAt:t,source:e.source,saltFingerprint:e.saltFingerprint,rulesVersion:e.rulesVersion,volumetry:e.volumetry,controls:{nonReidentification:e.nonReidentification,dryRunLoad:null,author:e.author,date:t},...e.coverage?{coverage:e.coverage}:{}};return g(r),r}function g(e){if(!E.test(e.version))throw new o(`version must be semver, got ${JSON.stringify(e.version)}`);if(e.status!=="frozen")throw new o(`status must be "frozen", got ${JSON.stringify(e.status)}`);if(!e.frozenAt)throw new o("frozenAt is required");if(!e.source?.orgId||!e.source.decisionDate)throw new o("source.orgId and source.decisionDate are required");if(!L.test(e.saltFingerprint))throw new o("saltFingerprint must be 12 lowercase hex chars of the salt SHA-256");if(!E.test(e.rulesVersion))throw new o(`rulesVersion must be semver, got ${JSON.stringify(e.rulesVersion)}`);if(typeof e.volumetry?.budgetMax!="number"||!e.volumetry.measured)throw new o("volumetry.budgetMax and volumetry.measured are required");if(!e.controls?.nonReidentification)throw new o("controls.nonReidentification is required");if(!e.controls.author||!e.controls.date)throw new o("controls.author and controls.date are required");let t=e.coverage;if(t!==void 0&&(typeof t.objects!="number"||typeof t.truncated!="boolean"||typeof t.maxNodes!="number"||!Array.isArray(t.unboundedObjects)||!Array.isArray(t.filesLeftOut)||t.leftToThePlatform!==void 0&&!Array.isArray(t.leftToThePlatform)||t.exclusionCosts!==void 0&&!Array.isArray(t.exclusionCosts)||t.requiredLeftEmpty!==void 0&&!Array.isArray(t.requiredLeftEmpty)||t.keptWithoutARule!==void 0&&!Array.isArray(t.keptWithoutARule)||t.encryptedNotKept!==void 0&&!Array.isArray(t.encryptedNotKept)))throw new o("coverage, when present, needs objects, truncated, maxNodes, unboundedObjects and filesLeftOut, and a list of what it left to the platform, of what its exclusions cost, of the required fields the rules leave empty, of the fields kept without a rule, or of the encrypted fields not kept, if it names any")}function v(e){return g(e),`${JSON.stringify(e,null,2)}
|
|
8
|
+
`}function V(e){if(typeof e!="object"||e===null||Array.isArray(e))throw new o("Manifest must be a JSON object");let t=e;return g(t),t}var y="platform-records.json",h=class extends Error{constructor(t){let r=t.checks.filter(i=>!i.passed).map(i=>`${i.name} (${i.violations.length} violation(s))`).join(", ");super(`Refusing to write the frozen dataset: non-reidentification control FAILED [${r}]. A FAIL means nothing is written or versioned.`),this.name="ControlNotPassedError"}},O=class{guard;constructor(t){this.guard=t??new M}async write(t,r,i,s){if(!s.passed)throw new h(s);let n=this.guard.assertOutsideRepo(t),c=this.guard.assertOutsideRepo(u.join(n,"data"));await a.mkdir(c,{recursive:!0});for(let f of await a.readdir(c))f.endsWith(".json")&&await a.rm(this.guard.assertOutsideRepo(u.join(c,f)));let d=[],p=async(f,T)=>{let F=this.guard.assertOutsideRepo(f);await a.writeFile(F,`${JSON.stringify(T)}
|
|
9
|
+
`,"utf8"),d.push(F)},b=this.guard.assertOutsideRepo(u.join(n,"manifest.json"));await a.writeFile(b,v(i),"utf8"),d.push(b);for(let f of r.objects)await p(u.join(c,`${f.objectApiName}.json`),{objectApiName:f.objectApiName,records:f.records});return await p(u.join(n,"record-types.json"),r.recordTypes),await p(u.join(n,"personcontact-sidecar.json"),r.personContactSidecar),await p(u.join(n,y),{...r.standardPricebook?{standardPricebook:r.standardPricebook}:{}}),{dir:n,files:d}}};var w="manifest.json",P=["record-types.json","personcontact-sidecar.json",y],R="data",$="sha256:";async function X(e){let t=await A(l.join(e,w));if(t===void 0)throw new Error(`No frozen dataset at ${e}: it holds no ${w}.`);let r=[{name:w,content:I(t)}];for(let s of P){let n=await A(l.join(e,s));n!==void 0&&r.push({name:s,content:n})}for(let s of await k(l.join(e,R))){let n=await A(l.join(e,R,s));n!==void 0&&r.push({name:`${R}/${s}`,content:n})}let i=z("sha256");for(let{name:s,content:n}of r.sort((c,d)=>S(c.name,d.name)))i.update(`${s}\0${z("sha256").update(n).digest("hex")}
|
|
10
|
+
`);return`${$}${i.digest("hex")}`}async function k(e){let t;try{t=await m.readdir(e)}catch(r){if(r.code==="ENOENT")return[];throw r}return t.filter(r=>r.endsWith(".json"))}async function A(e){try{return await m.readFile(e)}catch(t){if(t.code==="ENOENT")return;throw t}}function I(e){let t;try{t=JSON.parse(e.toString("utf8"))}catch{return e}if(N(t)&&N(t.controls)){let r={...t.controls};delete r.dryRunLoad,t={...t,controls:r}}return Buffer.from(j(t),"utf8")}function j(e){return Array.isArray(e)?`[${e.map(j).join(",")}]`:N(e)?`{${Object.keys(e).sort(S).map(r=>`${JSON.stringify(r)}:${j(e[r])}`).join(",")}}`:JSON.stringify(e)??"null"}function N(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function S(e,t){return e===t?0:e<t?-1:1}export{C as a,J as b,v as c,V as d,y as e,O as f,X as g};
|
|
@@ -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}from"./chunk-
|
|
7
|
+
import{a,b}from"./chunk-HYBH5PFM.mjs";import"./chunk-OVOLG3AL.mjs";import"./chunk-FQGHL7GR.mjs";import"./chunk-DPYTG6DM.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{a as ScenarioCompileError,b as compileScenario};
|
|
@@ -4,5 +4,5 @@ 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 u}from"./chunk-
|
|
7
|
+
import{c as u}from"./chunk-NWVVCZUK.mjs";import{Fb as f,Ka as d}from"./chunk-DPYTG6DM.mjs";import{mkdir as h,readdir as g,readFile as m,rename as w,writeFile as S}from"node:fs/promises";import*as c from"node:path";var k=".sandforge-scenario.json",P={depth:3,files:50},y=new Set(["node_modules","dist","out","coverage"]),E=10;function O(){return{list:async r=>{try{return(await g(r,{withFileTypes:!0})).map(e=>({name:e.name,folder:e.isDirectory()}))}catch(t){let e=t.code;if(e==="ENOENT"||e==="ENOTDIR"||e==="EACCES")return[];throw t}},readFile:r=>m(r,"utf8"),writeNew:async(r,t)=>{await h(c.dirname(r),{recursive:!0});try{return await S(r,t,{encoding:"utf8",flag:"wx"}),!0}catch(e){if(e.code==="EEXIST")return!1;throw e}},replace:async(r,t)=>{let e=`${r}.${process.pid}.tmp`;await S(e,t,"utf8"),await w(e,r)}}}function x(r){let t;try{t=JSON.parse(r)}catch{return{issues:["The file is not JSON"]}}let e=d.safeParse(t);return e.success?{pack:e.data}:{issues:e.error.issues.slice(0,E).map(n=>`${n.path.join(".")||"the file"}: ${n.message}`)}}async function F(r,t){let e=[],n=async(a,o,i)=>{let p=[...await r.list(o)].sort((s,l)=>s.name.localeCompare(l.name));for(let s of p){if(e.length>=P.files)return;let l=c.join(o,s.name);s.folder?i<P.depth&&!v(s.name)&&await n(a,l,i+1):s.name.endsWith(k)&&e.push({path:l,relativePath:c.relative(a,l).split(c.sep).join("/")})}};for(let a of t)await n(a,a,0);return e}function v(r){return r.startsWith(".")||y.has(r)}async function N(r,t){let e=f.map(n=>({source:"built-in",pack:n}));for(let n of await F(r,t)){let a;try{a=await r.readFile(n.path)}catch{e.push({source:"workspace",...n,issues:["The file could not be read"]});continue}let o=x(a);e.push({source:"workspace",...n,...o})}return e}function A(r){return`${JSON.stringify(r,null,2)}
|
|
8
8
|
`}async function T(r,t,e,n=!1){let a=t[0];if(a===void 0)return{kind:"no-workspace"};let o=d.parse(e),i=`${o.id}${k}`,p=c.join(a,i),s=A(o);if(n)await r.replace(p,s);else if(!await r.writeNew(p,s))return{kind:"exists",path:p,relativePath:i};return{kind:"saved",path:p,relativePath:i}}async function b(r,t,e,n){let a=i=>i.id===e&&u(i)===n,o=f.find(a);if(o)return o;for(let i of await N(r,t))if(i.source==="workspace"&&"pack"in i&&a(i.pack))return i.pack}export{k as a,P as b,O as c,x as d,F as e,N as f,A as g,T as h,b as i};
|
|
@@ -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{i as d}from"./chunk-
|
|
7
|
+
import{i as d}from"./chunk-T3PLRQ2T.mjs";import{i as s,j as c}from"./chunk-NWVVCZUK.mjs";import{access as p}from"node:fs/promises";import*as l from"node:path";var u="sfdx-project.json";async function w(n,e=g){for(let t of n)if(await e(l.join(t,u)))return{kind:"dx",dir:t};let r=n[0];return r===void 0?{kind:"none"}:{kind:"folder",dir:r}}async function g(n){try{return await p(n),!0}catch{return!1}}async function S(n,e){if(e.project.kind==="none")return{kind:"unavailable",reason:"no-workspace",message:"Open a folder in VS Code: the test file is written into it."};let r=await c(n.sidecar,e.storagePath,e.runId);if(r.kind==="absent")return{kind:"unavailable",reason:"no-companion",message:"This run kept no companion file: it was not seeded from a scenario, or it wrote no open case for a test to be about."};if(r.kind==="invalid")return{kind:"unavailable",reason:"companion-invalid",message:r.message};let{sidecar:t}=r,o=await e.findPack(t.packId,t.packFingerprint);if(!o)return{kind:"unavailable",reason:"pack-not-found",message:`The scenario ${t.packId} this run was seeded from is no longer in the workspace as it was: its tests would be about subjects and addresses no record of the run holds.`};let i=await e.readCatalog();if(i.kind==="no-agent")return{kind:"no-agent",reason:i.reason,message:i.message};if(i.kind==="unreadable")return{kind:"unavailable",reason:"catalog-unreadable",message:i.message};let a=await d(n.spec,{sidecar:t,pack:o,catalog:i.catalog,choice:e.choice,projectDir:e.project.dir,alias:e.alias,...e.overwrite!==void 0?{overwrite:e.overwrite}:{}});if(a.kind==="refused")return a;if(a.kind==="exists")return{kind:"exists",path:a.path,specPath:a.specPath};await s(n.sidecar,e.storagePath,a.sidecar).catch(()=>{});let f=e.project.kind==="dx";return{kind:"written",path:a.path,specPath:a.specPath,apiName:a.apiName,...f?{commands:{create:a.commands.create.line,run:a.commands.run.line}}:{notDxProject:!0},leftOut:a.leftOut}}export{u as a,w as b,S as c};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createRequire as __sandforgeRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __sandforgePath } from 'node:url';
|
|
3
|
+
import { dirname as __sandforgeDirname } from 'node:path';
|
|
4
|
+
const require = __sandforgeRequire(import.meta.url);
|
|
5
|
+
const __filename = __sandforgePath(import.meta.url);
|
|
6
|
+
const __dirname = __sandforgeDirname(__filename);
|
|
7
|
+
import{e as a,f as b,g as c,h as d,i as e}from"./chunk-5CKWGZX4.mjs";import"./chunk-5C5XEVZN.mjs";import"./chunk-DXOXLUZA.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-E2YJVSX6.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-3B5H24ZG.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-DPYTG6DM.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{a as REPLAY_RECORD_FILE,c as ReplayStore,b as defaultReplayStoreRoot,d as replaysInPlace,e as replaysInPlaceWords};
|