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/chunk-PPLVFX6N.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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{j as a,k as b,l as c,m as d,n as e,o as f,p as g,q as h,r as i,s as j,t as k,u as l,v as m,w as n}from"./chunk-2WFIVO4F.mjs";import"./chunk-7QYHEHMA.mjs";import"./chunk-WXDLQT2O.mjs";import"./chunk-NSQWI7ZY.mjs";import"./chunk-GNRSF65U.mjs";import"./chunk-O677VOGO.mjs";import"./chunk-JE6SCT6R.mjs";import"./chunk-PWRJRL5U.mjs";import"./chunk-24RFOFYT.mjs";import"./chunk-UIOMAX56.mjs";import"./chunk-QAFPQ3YB.mjs";import"./chunk-KJWFYBMU.mjs";import"./chunk-Z4LKKOFY.mjs";import"./chunk-2HVOZUM4.mjs";import"./chunk-XCA5AONB.mjs";import"./chunk-66NMFCWX.mjs";import"./chunk-WB2RIVO3.mjs";import"./chunk-XGGOUNPP.mjs";import"./chunk-L53JWJ3S.mjs";import"./chunk-CE6ZDGBB.mjs";import"./chunk-OFTT7J2M.mjs";import"./chunk-HIDW7FNV.mjs";import"./chunk-BOGNK4LV.mjs";import"./chunk-VINGECAJ.mjs";import"./chunk-H4CGM6YO.mjs";import"./chunk-T63U4OZJ.mjs";import"./chunk-YYZL7UGV.mjs";import"./chunk-YDXMTWAT.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-PMN4PAC3.mjs";import"./chunk-QSRAEUGZ.mjs";import"./chunk-FP7CYB2F.mjs";import"./chunk-NED4MBIM.mjs";import"./chunk-UI3JQVRU.mjs";import"./chunk-KGU4SVIT.mjs";import"./chunk-JAEDM4SI.mjs";import"./chunk-5LFSFYFJ.mjs";import"./chunk-MSIEU5MR.mjs";import"./chunk-LC3NDW4N.mjs";import"./chunk-KB4ZHM4Q.mjs";import"./chunk-23SEDORH.mjs";import"./chunk-W6PN6TJG.mjs";import"./chunk-3Q353S2R.mjs";import"./chunk-VV3B6IC3.mjs";import"./chunk-4TLYUZD5.mjs";import"./chunk-RHNTHGNU.mjs";import"./chunk-INIT2UKJ.mjs";import"./chunk-Q7TLC3I2.mjs";import"./chunk-HF6LAK3G.mjs";import"./chunk-D4GF4FAB.mjs";import"./chunk-CVHNXJH3.mjs";import"./chunk-YA6ATMTB.mjs";import"./chunk-TQ2TQHTT.mjs";import"./chunk-HFSBDM7B.mjs";import"./chunk-OHEOJISY.mjs";import"./chunk-EADHKH3A.mjs";import"./chunk-M6K34KGF.mjs";import"./chunk-TNT27RBG.mjs";import"./chunk-TZE3Y7IQ.mjs";import"./chunk-CA5NAXSU.mjs";import"./chunk-PC247GKX.mjs";import"./chunk-S42RBRH2.mjs";import"./chunk-UNDIBZWG.mjs";import"./chunk-ICIYL45C.mjs";import"./chunk-WUUKFE2U.mjs";import"./chunk-EAC5QCE3.mjs";import"./chunk-TUACWKIH.mjs";import"./chunk-PMWAFDUB.mjs";import"./chunk-WZQEK4WT.mjs";import"./chunk-NTOVCTRS.mjs";export{d as NOT_REMADE_WORDS,b as OTHERS_DELETION_WORDS,c as OUT_OF_REACH_WORDS,j as REWIND_AUTOMATION_LIFTED_BY,a as REWIND_RESIDUAL_IDS,i as RewindStopped,k as automationUnread,m as counted,h as heldWhile,l as inRewindWords,g as muteOfSteps,e as notAskedWords,n as rewindOrg,f as rewindOrgOf};
|
package/lib/chunk-PZBZ7MNC.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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}from"./chunk-ZRUDYB7O.mjs";import"./chunk-QIRO4HTE.mjs";import"./chunk-NTOVCTRS.mjs";export{b as AnonymizationEngine,a as MissingHashSaltError};
|
package/lib/chunk-QROPNEGY.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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 m=()=>({input:process.stdin,output:process.stderr});function p(t,o,r){let{input:e,output:i}=o;return e.isTTY!==!0&&(i.write(`${t}
|
|
8
|
-
no terminal to answer: give --yes to go ahead without the question.
|
|
9
|
-
`),process.exit(2)),r?.aborted===!0?Promise.resolve(void 0):(i.write(`${t} `),new Promise(c=>{let n=s=>{e.off("data",a),e.off("end",u),r?.removeEventListener("abort",f),e.pause(),c(s)},a=s=>n(String(s).trim()),u=()=>n(void 0),f=()=>{i.write(`
|
|
10
|
-
`),n(void 0)};e.on("data",a),e.on("end",u),r?.addEventListener("abort",f,{once:!0}),e.resume()}))}async function T(t,o=m(),r){let e=await p(`${t} [y/N]`,o,r);return e!==void 0&&/^y(es)?$/i.test(e)}async function E(t,o=m()){return await p(t,o)??""}var w=new Set(["\r",`
|
|
11
|
-
`]),g=new Set(["\x7F","\b"]),l="",S="";function v(t,o,r=m()){let{input:e,output:i}=r;return e.isTTY!==!0&&(i.write(`${t}
|
|
12
|
-
no terminal to type it on: ${o}.
|
|
13
|
-
`),process.exit(2)),i.write(`${t} `),e.setRawMode?.(!0),new Promise(c=>{let n="",a=s=>{e.off("data",u),e.off("end",f),e.setRawMode?.(!1),e.pause(),i.write(`
|
|
14
|
-
`),c(s)},u=s=>{for(let d of String(s)){if(w.has(d))return a(n);if(d===l||d===S&&n==="")return a(void 0);g.has(d)?n=n.slice(0,-1):d>=" "&&(n+=d)}},f=()=>a(void 0);e.on("data",u),e.on("end",f),e.resume()})}export{T as a,E as b,v as c};
|
package/lib/chunk-RGBGUCJA.mjs
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
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 _e}from"./chunk-TW3N6W5Z.mjs";import{a as Le,b as Ee,c as Te,d as De}from"./chunk-5GBO4KD5.mjs";import{a as ye,j as $e}from"./chunk-2METQHGG.mjs";import{b as G,e as H}from"./chunk-RKTFFCNS.mjs";import{c as J}from"./chunk-6FARZYMJ.mjs";import{a as Me}from"./chunk-JLSIWO4Z.mjs";import{f as pe,j as Q,k as T,m as ge,n as _,o as D,p as we}from"./chunk-KJWFYBMU.mjs";import{a as Se,c as je,d as xe,e as Re,f as Ce,g as Oe,h as Ie,i as Pe,j as Ne}from"./chunk-QTG6LUZT.mjs";import{Qc as fe,za as le}from"./chunk-XGGOUNPP.mjs";import{h as be,i as ke}from"./chunk-L53JWJ3S.mjs";import{a as M}from"./chunk-QROPNEGY.mjs";import{n as ve}from"./chunk-IVFVNNGB.mjs";import{m as me}from"./chunk-VINGECAJ.mjs";import{h as he}from"./chunk-PMN4PAC3.mjs";import{a as U}from"./chunk-AL4C3GFT.mjs";import{b as oe}from"./chunk-OUZQPYT3.mjs";import{b as ne,c as re,e as ae,f as ie,h as Ae}from"./chunk-LCDPCUXS.mjs";import{q as ue}from"./chunk-TNT27RBG.mjs";import{e as de,g as ce}from"./chunk-TZE3Y7IQ.mjs";import{Wc as te,gd as se,y as W}from"./chunk-PMWAFDUB.mjs";import{readFileSync as Xe}from"node:fs";import{basename as Ke,join as Ve}from"node:path";var Ze=`sandforge dataops \u2014 mask an org's records, and put them back, without the editor.
|
|
8
|
-
|
|
9
|
-
Usage:
|
|
10
|
-
npx sandforge dataops anonymize \\
|
|
11
|
-
--org <alias> [--object <ApiName>] (--template <id> | --rules <file>) [options]
|
|
12
|
-
npx sandforge dataops anonymize \\
|
|
13
|
-
--org <alias> --restore <snapshot or set> [--slice <k[,k]>] [--rewrite-all]
|
|
14
|
-
[--include-changed] [--store <dir>] [--yes]
|
|
15
|
-
npx sandforge dataops anonymize \\
|
|
16
|
-
--org <alias> (--template <id> | --rules <file>) --abandon [--store <dir>] [--yes]
|
|
17
|
-
A run and a restore take [--accept-automation] [--accept-emails] [--mute-automation].
|
|
18
|
-
|
|
19
|
-
Required:
|
|
20
|
-
anonymize the command
|
|
21
|
-
--org <alias> sf CLI alias of the org
|
|
22
|
-
--template <id> a template that ships (tpl-gdpr-standard, tpl-ccpa-california,
|
|
23
|
-
tpl-hipaa-health, tpl-sandbox-scrub) or one saved in the store
|
|
24
|
-
--rules <file> or a JSON file of rules, saved in the store as a template:
|
|
25
|
-
{"name": "...", "rules": [{"fieldPattern": "Contact.Email",
|
|
26
|
-
"ruleType": "hash"}]} \u2014 a rule as the panel's editor saves it
|
|
27
|
-
|
|
28
|
-
Options:
|
|
29
|
-
--object <ApiName> the object to mask, one per run; without it, every object
|
|
30
|
-
the template masks, as the panel's Apply masks them \u2014
|
|
31
|
-
Account's person accounts among them, in an org that has
|
|
32
|
-
person accounts, when the template masks contacts
|
|
33
|
-
--where <clause> with --object: mask only the records this SOQL condition
|
|
34
|
-
selects, written without WHERE
|
|
35
|
-
--dry-run say what a run would mask \u2014 the fields, the records, the
|
|
36
|
-
first records masked as a run masks them \u2014 and write
|
|
37
|
-
nothing
|
|
38
|
-
--slices mask in slices of --max-records records each, consecutive
|
|
39
|
-
by Id, each backed up just before it is masked and masked
|
|
40
|
-
from that backup: an object past what one snapshot holds
|
|
41
|
-
is masked with a way back. With --dry-run, their plan: the
|
|
42
|
-
slices, the requests against what the org has left today,
|
|
43
|
-
the disk and the time. A slice that cannot be backed up
|
|
44
|
-
whole stops the run there, and the slices before it stay
|
|
45
|
-
masked with their backups
|
|
46
|
-
--max-requests <n> with --slices: the most requests the run sends. It stops
|
|
47
|
-
between two slices before the next would send more, exit
|
|
48
|
-
3, and --resume masks the rest
|
|
49
|
-
--resume mask only what the last run of the same template, object
|
|
50
|
-
and filter left, from where it stopped; of a run in
|
|
51
|
-
slices, the rest of its set, with the key it was masked
|
|
52
|
-
with
|
|
53
|
-
--abandon give up the set of slices of the template left open on the
|
|
54
|
-
org: nothing more is masked, and no resume carries it on.
|
|
55
|
-
Its slices stay masked, each with its snapshot, which
|
|
56
|
-
--restore puts back until the retention removes them; the
|
|
57
|
-
records no slice reached keep their values. It writes
|
|
58
|
-
nothing to the org
|
|
59
|
-
--restore <id> put back the values a snapshot holds, by Id: the id a run
|
|
60
|
-
printed, a snapshot's or a set of slices'. Of a set, every
|
|
61
|
-
slice not put back yet, in their order: stopped part way,
|
|
62
|
-
the same line puts back the rest. It reads the org's
|
|
63
|
-
values first and writes only the rows where one of them
|
|
64
|
-
differs from the snapshot, and says how many it found
|
|
65
|
-
unchanged
|
|
66
|
-
--slice <k[,k]> with --restore of a set of slices: only these slices, by
|
|
67
|
-
their number, put back again if they were already
|
|
68
|
-
--rewrite-all with --restore: write every row of the snapshot back,
|
|
69
|
-
the ones the org already holds as the snapshot does
|
|
70
|
-
included; of a set, every slice, those put back already
|
|
71
|
-
too
|
|
72
|
-
--include-changed with --restore of the snapshot a Sync run kept of what
|
|
73
|
-
it wrote over: put back the records changed or deleted
|
|
74
|
-
since the run too, which a restore of it otherwise
|
|
75
|
-
leaves as they are and counts, as removing the run does
|
|
76
|
-
--max-age-days <n> the retention, as sandforge.backup.maxAgeDays sets it:
|
|
77
|
-
snapshots taken more than <n> days ago are removed as
|
|
78
|
-
the command starts, each named on stderr \u2014 the one a
|
|
79
|
-
Sync run kept of what it wrote over too, which removing
|
|
80
|
-
that run then no longer puts back; 0 keeps them all
|
|
81
|
-
(default: 30)
|
|
82
|
-
--store <dir> where snapshots, saved templates and checkpoints live, a
|
|
83
|
-
folder of your own, and the key of each run in slices
|
|
84
|
-
until its set ends, in keys/, read by its owner alone;
|
|
85
|
-
the one sandforge backup reads and lists (default:
|
|
86
|
-
~/.sandforge/backups, under the folder
|
|
87
|
-
SANDFORGE_JOURNAL_DIR names when it is set)
|
|
88
|
-
--max-records <n> most records of the object a snapshot holds, as
|
|
89
|
-
sandforge.backup.maxRecordsPerObject sets it; a run with
|
|
90
|
-
more writes nothing, and a dry run says so \u2014 past it,
|
|
91
|
-
--slices masks in slices of this size (default: 50000;
|
|
92
|
-
100 to 1000000, any other refused, exit 2)
|
|
93
|
-
${Te("written over","--dry-run")} --yes do not ask before writing. Without it, a command with no
|
|
94
|
-
terminal to answer the question \u2014 a CI step \u2014 stops
|
|
95
|
-
there, exit 2, and writes nothing. It answers no to a
|
|
96
|
-
restore into a sandbox refreshed since its snapshot,
|
|
97
|
-
which only a yes typed in a terminal writes
|
|
98
|
-
--json emit what the panel would receive, every other line on
|
|
99
|
-
stderr; a preview's original values are left out
|
|
100
|
-
--help this text
|
|
101
|
-
|
|
102
|
-
A run takes a snapshot of the records it masks, their masked fields as they are,
|
|
103
|
-
before its first write, and writes nothing unless the snapshot holds every one of
|
|
104
|
-
them. A production org is refused.
|
|
105
|
-
|
|
106
|
-
With --slices, each slice is backed up just before it is masked, and masked from
|
|
107
|
-
that backup, so a record created since is never masked without one: a run says
|
|
108
|
-
at its end the records created during it in a range a slice masked, which
|
|
109
|
-
--resume masks with a slice of their own. The key the run hashes and draws its
|
|
110
|
-
people with is kept in the store's keys/ until its set is done or given up, so a
|
|
111
|
-
resume, in another process too, masks the same values the same way. While the
|
|
112
|
-
set is open, a new run of the template is refused: --resume masks the rest, and
|
|
113
|
-
--abandon gives the set up. The run writes over REST, 200 records a call, and
|
|
114
|
-
sends no Bulk API batch.
|
|
115
|
-
|
|
116
|
-
Before it writes, a run and a --restore say what the org runs as the records are
|
|
117
|
-
written over \u2014 its record-triggered flows, Apex triggers, processes and workflow
|
|
118
|
-
rules on update, and on undelete for what a restore brings back from the recycle
|
|
119
|
-
bin \u2014, the emails that sends against what the org has left today, and whether
|
|
120
|
-
the org delivers them; a dry run says it too, and what a real run would be
|
|
121
|
-
refused for (with --json, the dataops:automation:response it carries).
|
|
122
|
-
|
|
123
|
-
Ctrl-C stops a run as the panel's Cancel does: before its next page, what it
|
|
124
|
-
masked recorded in the audit trail of the store, and --resume masks only what it
|
|
125
|
-
left \u2014 of a run in slices, from where the slice it was in stopped. It stops a
|
|
126
|
-
--restore before its next batch, what it put back recorded the same way, and the
|
|
127
|
-
same --restore puts back the rest. Ctrl-C again ends the process at once. A
|
|
128
|
-
SIGTERM \u2014 a CI job cancelled or timed out \u2014 or a SIGHUP stops it the same way.
|
|
129
|
-
|
|
130
|
-
Exit codes: 0 the run masked every record it counted, or the restore put back
|
|
131
|
-
every value; 1 it could not start, was refused or failed \u2014 what the org runs as
|
|
132
|
-
it writes, without --accept-automation (AUTOMATION_NOT_ACCEPTED), emails it
|
|
133
|
-
delivers, without --accept-emails (EMAILS_NOT_ACCEPTED), more emails than it
|
|
134
|
-
has left today (EMAILS_EXCEEDED), or a mute refused among the reasons \u2014, or a
|
|
135
|
-
--dry-run saw that a run would be refused; 2 a bad command line,
|
|
136
|
-
or a question with no terminal to answer it (give --yes); 3 the run left
|
|
137
|
-
records unmasked, their personal data still in the org (--resume masks what
|
|
138
|
-
it left) \u2014 of a run in slices, slices it did not reach, stopped by
|
|
139
|
-
--max-requests or the org's day, or records created during it in a range a
|
|
140
|
-
slice masked \u2014, or the restore left values as they are (rows the org refused, a
|
|
141
|
-
snapshot that holds part of the records, or records of a Sync run's snapshot
|
|
142
|
-
changed since the run, held back without --include-changed); 130 Ctrl-C
|
|
143
|
-
stopped the run, 143 a SIGTERM, 129 a SIGHUP.
|
|
144
|
-
`,qe=1e9,Ye=/^[A-Za-z][A-Za-z0-9_]{0,79}$/,et={words:1,switches:["--dry-run","--resume","--slices","--abandon","--rewrite-all","--include-changed","--yes","--json",...Le],values:["--org","--object","--template","--rules","--where","--restore","--slice","--store","--max-records","--max-requests","--max-age-days"]};function g(s){process.stderr.write(`${s}
|
|
145
|
-
`),process.exit(2)}function tt(s){let e;try{e=JSON.parse(Xe(s,"utf8"))}catch(r){g(`Cannot read the rules in ${s}: ${r instanceof Error?r.message:String(r)}`)}let n=Array.isArray(e)?{rules:e}:e,a=typeof n=="object"&&n!==null&&!("name"in n)?{...n,name:`Rules from ${Ke(s)}`}:n,o=le.safeParse(a);if(!o.success){let r=o.error.issues.map(d=>`${d.path.join(".")||"(file)"}: ${d.message}`).join("; ");g(`The rules in ${s} are not rules the panel saves: ${r}`)}return o.data}function st(s){let e=s.slice(2);(e.includes("--help")||e.includes("-h"))&&(process.stdout.write(Ze),process.exit(0)),e[0]!=="anonymize"&&g(`The command is anonymize: ${U("dataops")} anonymize --org \u2026 Run with --help.`),ne(e,et);let n=l=>{let b=e.indexOf(l),I=b>=0?e[b+1]:void 0;return b>=0&&(I===void 0||I.startsWith("--"))&&g(`${l} needs a value.`),I},a=l=>e.filter(b=>b===l).length,o=n("--org");o||g("Missing --org. Run with --help."),re.test(o)||g(`Not an sf alias: "${o}"`);let r=n("--restore"),d=e.includes("--dry-run"),C=e.includes("--resume"),w=e.includes("--slices"),x=e.includes("--abandon"),k=n("--max-records");k!==void 0&&!/^[1-9]\d*$/.test(k)&&g(`Not a number of records: "${k}"`),k!==void 0&&(Number(k)<_||Number(k)>D)&&g(`--max-records takes ${_} to ${D} records, not ${k}: a snapshot holds at least ${_} records of one object and at most ${D}; past that, --slices masks the object in slices of --max-records records, each backed up just before it is masked, or narrow the run with --where.`);let c=n("--max-requests");c!==void 0&&(!/^[1-9]\d{0,9}$/.test(c)||Number(c)>qe)&&g(`Not a number of requests, 1 to ${qe}: "${c}"`),c!==void 0&&!w&&r===void 0&&!x&&g("--max-requests bounds a run in slices: give it with --slices.");let p=Re(e,"--slice");p.length>0&&r===void 0&&g("--slice goes with --restore: it names the slices of a set to put back. A run in slices is --slices.");let h=e.includes("--rewrite-all");h&&r===void 0&&g("--rewrite-all goes with --restore.");let f=e.includes("--include-changed");f&&r===void 0&&g("--include-changed goes with --restore.");let R=xe(n("--max-age-days")),A={org:o,rewriteAll:h,includeChanged:f,...R!==void 0?{maxAgeDays:R}:{},storeDir:n("--store")??Se(),...k!==void 0?{maxRecords:Number(k)}:{},slices:w,...c!==void 0?{maxRequests:Number(c)}:{},yes:e.includes("--yes"),json:e.includes("--json"),accord:Ee(e)};if(r!==void 0){let l=["--object","--template","--rules","--where","--dry-run","--resume","--slices","--max-requests","--abandon"].filter(b=>e.includes(b));return l.length>0&&g(`--restore puts a snapshot back as it is: drop ${l.join(", ")}.`),{...A,mode:"restore",restoreId:r,...p.length>0?{restoreSlices:Ce(p)}:{}}}if(x){let l=["--dry-run","--resume","--max-requests"].filter(b=>e.includes(b));l.length>0&&g(`--abandon gives a set of slices up and masks nothing: drop ${l.join(", ")}.`)}a("--object")>1&&g("Give one --object at most: a run masks one object, or every object its template masks.");let $=n("--object");$!==void 0&&!Ye.test($)&&g(`Not an SObject API name: "${$}"`);let v=n("--template"),m=n("--rules");v===void 0==(m===void 0)&&g("Give one of --template or --rules: the rules a run masks with."),d&&C&&g("Give one of --dry-run or --resume.");let y=n("--where")?.trim();return y!==void 0&&(y===""||!de(y))&&g(`Not a filter --where can take: "${y}". ${ce}`),y!==void 0&&$===void 0&&g("--where filters the records of one object: give it with --object."),{...A,mode:x?"abandon":d?"dry-run":C?"resume":"run",...$!==void 0?{object:$}:{},...v!==void 0?{templateId:v}:{},...m!==void 0?{rules:tt(m)}:{},...y!==void 0?{where:y}:{}}}function Be(s,e){let n=`${e.toLowerCase()}.`;return s.rules.filter(a=>a.fieldPattern.toLowerCase().startsWith(n)||a.fieldPattern==="*")}function nt(s,e){return Be(s,e).length>0?!0:e.toLowerCase()===ue.toLowerCase()&&pe(s.rules).length>0}function rt(s,e){let n=a=>JSON.stringify(a.map(o=>[o.fieldPattern.toLowerCase(),o.ruleType,o.config??null]).sort((o,r)=>String(o[0]).localeCompare(String(r[0]))));return n(s)===n(e)}function ot(s){if(s==null||s==="")return"(empty)";let e=typeof s=="string"?s:JSON.stringify(s);return JSON.stringify(e.length>40?`${e.slice(0,39)}\u2026`:e)}function ze(s,e){let n=[];typeof s.message=="string"&&n.push(s.message);for(let d of s.objects??[])n.push(` ${d.objectApiName.padEnd(28)} counted ${d.total} masked ${d.processed} refused ${d.failed} still original ${d.notMasked}`);let a=s.errors??[];a[0]&&n.push(` e.g. ${a[0].objectApiName}: ${a[0].message}`);let o=s.snapshot;o&&n.push(`snapshot ${o.operationId}: ${o.totalRecords} record(s) as they were before the run. To put their values back:`,` ${e(o.operationId)}`);let r=s.slices;return r&&n.push(...at(r,e)),n}function at(s,e){let n=s.objects.flatMap(r=>r.slices).sort((r,d)=>r.index-d.index),a=n.filter(r=>r.state==="masked").length,o=[`set ${s.setId} (${s.state}): ${a} of ${n.length} slice(s) masked, up to ${s.size} records a slice, ${s.requestsSpent} request(s) sent by this run`,...n.map(r=>` slice ${r.index} ${r.objectApiName.padEnd(20)} ${r.state.padEnd(8)} ${r.rows} record(s) masked ${r.masked} refused ${r.refused} deleted since ${r.deletedSince}${r.late?" created during the run":""}${r.sizeUsed!==void 0?` read ${r.sizeUsed} at a time`:""} snapshot ${r.snapshotId}`)];return s.lateRecords>0&&o.push(` ${s.lateRecords} record(s) created during the run in a range a slice masked, or past its last: no snapshot holds them, and they keep their values`),n.some(r=>r.state!=="pending")&&o.push("To put back the values its slices hold, every slice in one line:",` ${e(s.setId)}`),o}function it(s,e){return`${s}.${e}: the org has no such field, or field-level security hides it from this user \u2014 a run is refused and masks nothing (give the user read and edit access to it, or take it out of the template)`}function Fe(s,e){return e===void 0?`${s}: this user may not edit its records \u2014 a run is refused (CRUD_FLS_DENIED) and masks nothing (give the user edit access to the object)`:`${s}.${e}: this user may read it and not edit it \u2014 a run is refused (CRUD_FLS_DENIED) and masks nothing (give the user edit access to it, or take it out of the template)`}function dt(s,e={},n=!1){let a=s.fieldsNotFound??[],o=s.objects??[],r=e.objects??[];return a.length>0||o.some(d=>d.notCovered===!0||d.error!==void 0||d.writeDenied!==void 0)||r.some(d=>d.count===null&&!(n&&d.slicePlan!==void 0))}function ct(s,e){let n=[],a=s.objects??[];for(let{objectApiName:d,count:C,slicePlan:w}of a)w!==void 0&&(!e&&C!==null&&C>w.size&&n.push(`${d} holds ${C} record(s), more than the ${w.size} a snapshot holds of one object: --slices masks it in ${w.slices} slices, each backed up just before it is masked (the same line with --slices shows their plan), or narrow the run with --where`),e&&w.slices>W&&n.push(`${d} would take ${w.slices} slices of ${w.size} records, more than the ${W} a set holds: give --max-records up to ${D}, or narrow the run with --where`));let o=s.plan;e&&o?.diskFree!==void 0&&Q(o.diskBytes)>o.diskFree&&n.push(`the slices' snapshots take about ${T(Q(o.diskBytes))}, and the store has ${T(o.diskFree)} free: give --store a folder on another disk, delete the backups no longer needed, or keep backups fewer days (--max-age-days)`);let r=s.sliceSet;return r?.state==="open"&&n.push(`set ${r.setId} of this template is still open on the org (${r.done} of ${r.total} slice(s) masked, last moved ${r.savedAt}), and a new run would mask its rows again: the same line with --resume masks the rest, and --abandon gives it up`),n}function ut(s,e){let n=s.apiBudget;if(n.verdict==="unread")return`the org's requests left today were not read (${n.unread??"no answer"}): the run stops between two slices if the org's day runs short, and --resume masks the rest`;let a=`of ${n.remaining??"?"} the org has left today`;if(n.verdict==="fits")return`${a}: fits`;if(n.verdict==="near")return`${a}: near it \u2014 the run stops between two slices before the org's integrations run short, and --resume masks the rest`;let o=s.requests/Math.max(1,e),r=Math.max(0,Math.floor((n.remaining??0)/Math.max(1,o)));return`${a}: more than that \u2014 about ${Math.min(r,e)} of the ${e} slices go today, the run stops between two of them, and --resume masks the rest`}function lt(s,e,n){let{snapshots:a,updates:o,reads:r}=s.parts;return[" a run in slices:",` requests: about ${s.requests} (snapshots ${a}, updates ${o}, reads ${r}) ${ut(s,e)}`," Bulk API batches: none (the run writes over REST, 200 records a call)",` disk: about ${T(s.diskBytes)} in ${n}`+(s.diskFree!==void 0?` (${T(s.diskFree)} free)`:""),` time: about ${se(s.seconds)}`]}function ht(s,e,n,a){let o=["dry run \u2014 nothing is written"],r=e.objects??[],d=n.objects??[],C=n.fieldsNotFound??[];for(let c of r){let p=c.count===null?"an unknown number of":String(c.count);o.push(` ${c.objectApiName}: ${p} record(s) to mask`);let h=a!==void 0?c.slicePlan:void 0;c.count===null&&o.push(h!==void 0?" not counted by the org: its own figure of the records plans the slices, approximate; the run reads the object a slice at a time by Id, whatever it holds":" not counted by the org: a run stops at its count and masks nothing"),h!==void 0&&o.push(` slices: ${h.approximate?"about ":""}${h.slices} of up to ${h.size} records, each backed up just before it is masked`);let f=d.find(m=>m.objectApiName===c.objectApiName);if(f?.error){o.push(` not read: ${f.error}`);continue}let R=new Map([...Be(s,c.objectApiName).map(m=>[m.fieldPattern.split(".").pop()?.toLowerCase()??"",m.ruleType]),...Object.entries(f?.methods??{}).map(([m,y])=>[m.toLowerCase(),y])]),A=f?.fields??[];o.push(` fields: ${A.map(m=>`${m} (${R.get(m.toLowerCase())??"?"})`).join(", ")||"(none)"}`);for(let m of C.filter(y=>y.objectApiName===c.objectApiName))o.push(` ${it(m.objectApiName,m.fieldApiName)}`);f?.notCovered&&o.push(" no field of it can be masked: a run is refused and masks nothing");let $=f?.writeDenied?.deniedFields;$?.length===0&&o.push(` ${Fe(c.objectApiName)}`);for(let m of $??[])o.push(` ${Fe(c.objectApiName,m)}`);let v=f?.rows??[];if(v.length>0){o.push(" the first records, masked as a run masks them (a run draws its own key, so its made-up names and digests differ from these):");for(let m of v)o.push(` ${m.id}: ${A.map(y=>`${y} ${ot(m.after[y])}`).join(", ")}`)}}let w=r.reduce((c,p)=>c+(p.count??0),0),x=e.plan;if(a!==void 0&&x!==void 0){let c=r.reduce((p,h)=>p+(h.slicePlan?.slices??0),0);o.push(...lt(x,c,a.store)),o.push(" a run backs each slice up just before it masks it, and masks it from that backup: a slice that cannot be backed up whole stops the run there, and the slices before it stay masked with their backups")}else w>0&&o.push(` a run takes a snapshot of these ${w} record(s) first, and writes nothing without it`);let k=e.checkpoint;return k&&o.push(` a run of this template, object and filter stopped short on ${k.savedAt}: --resume masks only what it left`),o}function pt(s){return`interrupted: the restore stopped before it was through; what it restored is in the audit trail, and the same line puts back the rest: ${s}`}function mt(s){return s!==void 0?`interrupted: the masking stopped before it was through; what it masked is in the audit trail, each slice it masked has its snapshot (--restore ${s} puts their values back), and the same line with --resume masks the rest, from where its slice stopped`:"interrupted: the masking stopped before it was through; what it masked is in the audit trail, the snapshot puts their values back (--restore), and the same line with --resume masks only what it left"}function ft(s){return s.map(e=>{if(e.type!=="dataops:anonymize:preview:response")return e;let n=e.payload?.objects??[];return{...e,payload:{...e.payload,objects:n.map(a=>({...a,rows:(a.rows??[]).map(({id:o,after:r})=>({id:o,after:r}))}))}}})}async function gt(s=process.argv){let e=st(s),n=t=>{process[e.json?"stderr":"stdout"].write(`${t}
|
|
146
|
-
`)},a=t=>{process.stderr.write(`${t}
|
|
147
|
-
`),process.exitCode=1},o=je(e.storeDir);if(o!==void 0){a(o);return}let r=await oe(e.org),d=await new Me().validateConnection(r.accessToken,r.instanceUrl),C={alias:e.org,orgType:te({isSandbox:d.isSandbox,edition:d.orgType}),metadata:{apiVersion:"66.0",edition:d.orgType}};n(`sandforge dataops ${e.org} (${d.isSandbox?"sandbox":d.orgType||"production"}) store: ${e.storeDir}`);let w=ve(Ve(e.storeDir,"snapshots.json")),x=[],k=new Map,c=new _e,p=new we({log:t=>{/^\[(WARN|INFO)\]/.test(t)&&n(` ${t}`)},broker:{postToWebview:t=>{if(x.push(t),t.type!=="operation:progress")return;let i=String(t.payload?.operationId??""),u=Number(t.payload?.percentage??0);(u-(k.get(i)??-10)>=10||u===100)&&(k.set(i,u),n(` ${u}% ${String(t.payload?.currentStep??"")}`))}},orgManager:{getOrg:()=>C},orgRegistry:{getCredentials:async()=>({accessToken:r.accessToken,instanceUrl:r.instanceUrl})},configStore:w,services:{getSandforgeSetting:Oe(e)},infraServices:{backgroundRegistry:c,productionGuard:new me({requestConfirmation:(t,i)=>(n(`refused: ${e.org} is taken for a ${i} org, and this command writes to none (${t})`),Promise.resolve(!1))}),confirmRestoreIntoReplacedOrg:({alias:t,backedUpFrom:i,now:u})=>e.yes?Promise.resolve(!1):M(`${t} answered as org ${i} when this snapshot was taken and answers as org ${u} now. Write its saved values into the org it is now?`)},nextId:()=>`cli-${Date.now()}-${Math.random().toString(36).slice(2,8)}`});p.setExpiryListener(t=>process.stderr.write(`${Ie(t)}
|
|
148
|
-
`)),p.setRunKeyStore(ge(e.storeDir)),p.setBackupRecordStore(new ke(be(e.storeDir))),await p.swept(),p.setSyncRuns(he(ye())),p.setMuteOffered($e("--mute-automation")),p.setOnCommandLine(!0);let h=async(t,i)=>{let u=`cli-${t.replaceAll(":","-")}-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;return await p.handle({id:u,type:t,timestamp:Date.now(),payload:i}),x.find(j=>j.correlationId===u&&(j.type===`${t}:response`||j.type==="dataops:error"))??{type:"dataops:error",payload:{message:`${t} was not answered.`}}},f=t=>t.type==="dataops:error",R=t=>String(t.payload?.message??t.type),A=t=>`${U("dataops")} anonymize --org ${e.org} --restore ${t} --store ${e.storeDir}`,$=async(t,i)=>{let u=await h("dataops:automation",{orgId:e.org,act:t,objects:i,...e.accord});if(f(u)){a(R(u));return}let S=u.payload;for(let j of S.lines)n(j);return S},v=t=>{e.json&&process.stdout.write(`${JSON.stringify({tool:"sandforge-dataops",command:t,org:e.org,...e.slices?{slices:!0}:{},posted:ft(x)},null,2)}
|
|
149
|
-
`)};if(e.mode==="restore"){let t=e.restoreId,i=Pe(w,t,{...e.restoreSlices?{slices:e.restoreSlices}:{},rewriteAll:e.rewriteAll});if(!i){a(`No snapshot or set of slices "${t}" in ${e.storeDir}.`);return}let u=i.objects.map(N=>N.objectApiName).join(", "),S=await $("restore",i.objects);if(!S){v("restore");return}if(S.refusals.length>0){v("restore");for(let N of S.refusals)a(J(N));return}if(!e.yes&&!await M(`Put back into ${e.org} the values ${i.words} holds? ${i.totalRecords} record(s) of ${u} will have those fields written over.`)){n("Nothing written.");return}n(`restoring ${t} into ${e.org}${e.rewriteAll?", every row written back":""}\u2026`);let j,He=H(N=>{j=N,process.stderr.write(`
|
|
150
|
-
interrupted: the restore stops before its next batch, and says what it restored (Ctrl-C again ends it at once)
|
|
151
|
-
`);for(let Je of c.getRunning())c.abort(Je.operationId)}),P;try{P=await h("dataops:rollback",{orgId:e.org,operationId:t,...e.rewriteAll?{rewriteAll:!0}:{},...e.includeChanged?{includeChanged:!0}:{},...e.restoreSlices?{slices:e.restoreSlices}:{},...e.accord})}finally{He()}if(v("restore"),f(P)){a(R(P)),e.yes&&P.payload?.code==="ORG_REPLACED_SINCE_BACKUP"&&a("--yes does not answer this question: it is answered yes only when typed in a terminal. Run the same line without --yes in a terminal to answer it; nothing answers it from a CI step.");return}n(String(P.payload?.message??""));for(let N of Ne(P.payload??{}))n(N);if(j){process.stderr.write(`${pt(A(t))}
|
|
152
|
-
`),process.exitCode=G(j);return}ie(ae(P.payload??{}));return}let y=(await h("dataops:anonymization-templates",{})).payload?.templates??[],l;if(e.rules){let t=e.rules,i=y.find(u=>u.saved===!0&&u.name.trim().toLowerCase()===t.name.toLowerCase());if(i&&rt(i.rules,t.rules))l=i;else{i&&await h("dataops:anonymization-template:delete",{templateId:i.id});let u=await h("dataops:anonymization-template:save",{name:t.name,rules:t.rules});if(f(u)){a(R(u));return}l=u.payload?.template,n(`rules saved in the store as template "${l.name}" (${l.id})`)}}else if(l=y.find(t=>t.id===e.templateId),!l){a(`No template "${e.templateId??""}". Templates: `+y.map(t=>`${t.id}${t.saved?` (saved: ${t.name})`:""}`).join(", "));return}let b=e.object;if(b!==void 0&&!nt(l,b)){a(`Template "${l.name}" has no rule for ${b}: a run would mask nothing.`);return}let I={orgId:e.org,templateId:l.id,...b!==void 0?{objects:[b]}:{},...e.where!==void 0?{where:e.where}:{}};if(n(`template: ${l.name} (${l.id}) `+(b!==void 0?`object: ${b}`:"objects: every object the template masks")+(e.where!==void 0?` where: ${e.where}`:"")+(e.slices?" in slices":"")),e.mode==="abandon"){let t=new fe(w).openFor(e.org,l.id);if(t&&!e.yes){let u=t.objects.flatMap(j=>j.slices).filter(j=>j.state==="masked").length,S=t.objects.reduce((j,ee)=>j+ee.slices.length,0);if(!await M(`Give up set ${t.setId} of ${l.name} on ${e.org}, ${u} of ${S} slice(s) masked, last moved ${t.lastActivityAt}? Nothing more is masked and no resume carries it on; its slices stay masked, each with its snapshot, which --restore ${t.setId} puts back until the retention removes them.`)){n("Nothing given up.");return}}let i=await h("dataops:anonymize",{...I,abandon:!0});v("abandon");for(let u of ze(i.payload??{},A))n(u);f(i)&&(process.exitCode=1);return}let O=await h("dataops:anonymize:coverage",{...I,...e.slices?{slices:!0}:{}});if(f(O)){a(R(O));return}let L=O.payload?.objects??[],Ue=L.reduce((t,i)=>t+(i.count??0),0),We=e.slices?L.filter(t=>t.count===null&&t.slicePlan!==void 0):[],q=O.payload?.sliceSet,K=L.map(t=>({objectApiName:t.objectApiName,records:t.count??(e.slices&&t.slicePlan!==void 0?t.slicePlan.slices*t.slicePlan.size:0)}));if(e.mode==="dry-run"){let t=await h("dataops:anonymize:preview",I);if(f(t)){v("dry-run"),a(R(t));return}for(let S of ht(l,O.payload??{},t.payload??{},e.slices?{store:e.storeDir}:void 0))n(S);let i=await $("masking",K);if(v("dry-run"),!i)return;for(let S of De(i))n(S);let u=ct(O.payload??{},e.slices);for(let S of u)n(` a run would be refused: ${S}`);(u.length>0||i.refusals.length>0||dt(t.payload??{},O.payload??{},e.slices))&&(process.exitCode=1);return}let V=O.payload?.checkpoint;if(e.mode==="resume"&&!V){a(q!==void 0?`There is nothing to resume for this object and filter: set ${q.setId} of this template is open on ${e.org}, its run given another object or filter. Its own line with --resume masks the rest, and --abandon gives it up.`:`There is nothing to resume: no run of this template, object and filter stopped short in ${e.storeDir}.`);return}let Z=e.mode==="resume"&&q!==void 0;if(e.mode==="run"&&Ue===0&&We.length===0){let t=L.filter(i=>i.count===null).map(i=>i.objectApiName);if(t.length>0){a(`${t.join(", ")}: the org did not count the records a run would mask, so nothing was masked (its reason is in the warning above).`);return}n(b!==void 0?"Nothing to mask: no record of the object is under the filter.":"Nothing to mask: no object the template masks holds a record."),v("run");return}let z=await $("masking",K);if(!z){v(e.mode);return}if(z.refusals.length>0){v(e.mode);for(let t of z.refusals)a(J(t));return}if(!e.yes){let t=b??L.map(i=>i.objectApiName).join(", ");if(!await M(wt(e,l.name,t,O,Z))){n("Nothing written.");return}}n(e.mode==="resume"?"resuming\u2026":"masking\u2026");let F,Ge=H(t=>{F=t,process.stderr.write(`
|
|
153
|
-
interrupted: the masking stops before its next page, and says what it masked (Ctrl-C again ends it at once)
|
|
154
|
-
`);for(let i of c.getRunning())c.abort(i.operationId)}),Y=e.slices||Z,E;try{E=await h("dataops:anonymize",{...I,...e.mode==="resume"?{resumeFrom:V.id}:{snapshot:!0},...Y?{slices:!0}:{},...Y&&e.maxRequests!==void 0?{maxRequests:e.maxRequests}:{},...e.accord})}finally{Ge()}v(e.mode);for(let t of ze(E.payload??{},A))n(t);let B=E.payload?.slices;if(F){process.stderr.write(`${mt(B?.setId)}
|
|
155
|
-
`),process.exitCode=G(F);return}if(f(E)){process.exitCode=1;return}(Number(E.payload?.recordsNotMasked??0)>0||B?.state==="open")&&(B===void 0&&n("A resume masks only what this run left: the same line with --resume, in place of the snapshot it does not take again."),process.exitCode=3)}function wt(s,e,n,a,o){let r=a.payload?.objects??[],d=a.payload?.sliceSet,C=a.payload?.checkpoint;if(s.mode==="resume")return o&&d!==void 0?`Resume the masking of ${n} in ${s.org} in slices, set ${d.setId}: ${d.done} of ${d.total} slice(s) masked, last moved ${d.savedAt}? Each slice left is backed up just before it is masked, with the key the set was masked with.`:`Resume the masking of ${n} in ${s.org} that stopped on ${C?.savedAt??"?"}? What it left is written over; the snapshot the first run took holds their values.`;let w=r.reduce((A,$)=>A+($.count??0),0),x=r.some(A=>A.count===null),k=x?`the records of ${n}`:`${w} record(s) of ${n}`;if(!s.slices)return`Mask ${k} in ${s.org} with ${e}? A snapshot of their values is taken first.`;let c=r.reduce((A,$)=>A+($.slicePlan?.slices??0),0),p=a.payload?.plan,h=p?.apiBudget,f=p!==void 0?p.requests/Math.max(1,c):0,R=h?.remaining!==void 0&&f>0?Math.min(c,Math.floor(h.remaining/f)):void 0;return`Mask ${k} in ${s.org} with ${e}, in ${x?"about ":""}${c} slice(s)? Each slice is backed up just before it is masked; if one cannot be backed up whole, the run stops there and the slices before it stay masked with their backups.`+(h?.verdict==="exceeds"&&R!==void 0?` The org has ${h.remaining} requests left today, enough for about ${R} of them: the run stops between two slices, and the same line with --resume masks the rest.`:"")}/sandforge-dataops\.[cm]?[jt]s$/.test(process.argv[1]??"")&&(Ae(),gt().then(()=>process.exit()).catch(s=>{process.stderr.write(`${s instanceof Error?s.message:String(s)}
|
|
156
|
-
`),process.exit(1)}));export{st as a,nt as b,ze as c,at as d,it as e,Fe as f,dt as g,ct as h,lt as i,ht as j,pt as k,mt as l,gt as m,wt as n};
|
package/lib/chunk-RKTFFCNS.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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 p=["SIGINT","SIGTERM","SIGHUP"],g={SIGHUP:129,SIGINT:130,SIGTERM:143};function T(s){return g[s]}var I="sandforge:stop",N="SANDFORGE_STOP_CHANNEL";function G(s){let r=new Map,S=new Map,t,n,i=o=>{let e=S.get(o);e&&process.off(o,e),S.delete(o),n?.signal===o&&(clearTimeout(n.timer),n=void 0)},l=()=>{for(let[o,e]of r)process.off(o,e);r.clear(),t&&process.off("message",t),t=void 0},d=()=>{l();for(let o of p)i(o)};for(let o of p){let e=()=>{n?.signal===o&&i(o)};S.set(o,e),process.on(o,e);let a=()=>{l();for(let u of p)u!==o&&i(u);let f={signal:o};n=f;let c=setTimeout(()=>i(o),1e3);typeof c=="object"&&c.unref(),n===f&&(f.timer=c),s(o)};r.set(o,a),process.once(o,a)}return process.env[N]==="ipc"&&typeof process.send=="function"&&(t=o=>{o===I&&(d(),s("SIGINT"))},process.on("message",t),process.channel?.unref()),d}export{p as a,T as b,I as c,N as d,G as e};
|