hyperframes 0.9.58 → 0.9.61
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/hyperframes.mjs +3 -1
- package/dist/{add-JQUKPSEZ.js → add-LNPIKHAX.js} +33 -32
- package/dist/{agentPromptGenerator-3NEY7FPP.js → agentPromptGenerator-N3HL4JWM.js} +19 -20
- package/dist/{animatedGifPrep-VMUZ6IVJ.js → animatedGifPrep-SEPXIM4W.js} +24 -24
- package/dist/api.d.ts +8 -1
- package/dist/api.js +70 -69
- package/dist/{appHistory-JNI6IOR6.js → appHistory-ASGUPUUV.js} +6 -6
- package/dist/{asset-ZT3VXZ67.js → asset-3L2G3ROU.js} +17 -7
- package/dist/{assetCataloger-D2DV65BA.js → assetCataloger-3D75A6GI.js} +21 -22
- package/dist/{audio-LD5H2R5V.js → audio-U4W5ZWQ7.js} +54 -53
- package/dist/{auth-4FPYYMSH.js → auth-V4G5ZE3P.js} +4 -4
- package/dist/{autoUpdate-5ZKSFCG4.js → autoUpdate-QYKF3DDS.js} +6 -6
- package/dist/{avatars-DCLFE7VG.js → avatars-SB2XCDWJ.js} +31 -32
- package/dist/{backgroundChecks-UZA3F46H.js → backgroundChecks-KHBYRE6J.js} +16 -9
- package/dist/backgroundChecksWorker.js +9 -9
- package/dist/{batchRender-TAUW3CT2.js → batchRender-6S5GMICZ.js} +13 -14
- package/dist/{beats-X3LCR6OG.js → beats-7YLYCCMD.js} +21 -22
- package/dist/{benchmark-DNZQT3YQ.js → benchmark-IBX7ZWVU.js} +37 -35
- package/dist/{billing-4BFUAHWX.js → billing-EAHOGMQW.js} +28 -29
- package/dist/{browser-5J2MTDB6.js → browser-XKYRXDJW.js} +23 -24
- package/dist/{bundleWithLocalizedFonts-XWK47ZVF.js → bundleWithLocalizedFonts-ZFX7TSWT.js} +1 -1
- package/dist/{capture-TVYTKWTG.js → capture-4WKQKMXG.js} +38 -17
- package/dist/{capture-2YSVFKWV.js → capture-IBOCZ2MK.js} +56 -50
- package/dist/{captureCompositionFrame-L765HLCT.js → captureCompositionFrame-HZA3LNU3.js} +29 -30
- package/dist/{captureFile-DOCK42K3.js → captureFile-Z7HQDRC2.js} +4 -4
- package/dist/captureProxy-4K3J652A.js +23 -0
- package/dist/{catalog-CHGGRRQX.js → catalog-TSXQTLKM.js} +45 -43
- package/dist/{catch-up-OCFU6ZR3.js → catch-up-LD2B5CE3.js} +35 -29
- package/dist/{check-LWK4Z7FI.js → check-TEZKUD26.js} +72 -72
- package/dist/{checkAudio-R5ORBXBO.js → checkAudio-3GM74ZGV.js} +22 -23
- package/dist/{checkBrowser-6SH73T47.js → checkBrowser-OFH3I7Q6.js} +62 -62
- package/dist/{chunk-2WA62M3B.js → chunk-22B53HD3.js} +10 -5
- package/dist/{chunk-K2EJQ44S.js → chunk-2CNVJQKU.js} +1 -1
- package/dist/{chunk-XMT4MG6W.js → chunk-2H4SJSUS.js} +14 -14
- package/dist/{chunk-6RPKPL22.js → chunk-2SPQTJA2.js} +25 -23
- package/dist/{chunk-GIVMQDSK.js → chunk-32H642MS.js} +2 -2
- package/dist/chunk-3GF72UPC.js +256 -0
- package/dist/chunk-3HJX4F2S.js +39 -0
- package/dist/{chunk-VXE46PXX.js → chunk-3JVTHNDH.js} +1 -1
- package/dist/{chunk-H3LEOZVK.js → chunk-3ROFCQAW.js} +1 -1
- package/dist/{chunk-NLVIE7VN.js → chunk-3W2ORSFV.js} +4 -4
- package/dist/{chunk-4QPT3IEL.js → chunk-4AMOVEV7.js} +181 -59
- package/dist/{chunk-A4L7G74T.js → chunk-4EWS3KP3.js} +3 -3
- package/dist/{chunk-AJ7YRQS4.js → chunk-4ORH2OXS.js} +2 -2
- package/dist/{chunk-2GRCLLKU.js → chunk-4SDNEKTL.js} +4 -4
- package/dist/{chunk-CDNVZEGQ.js → chunk-4T45V6GF.js} +5 -2
- package/dist/{chunk-GDIBE57N.js → chunk-4ZLWEPK4.js} +2 -2
- package/dist/{chunk-CRPLPK6J.js → chunk-5F2ULLFW.js} +7 -7
- package/dist/{chunk-O5U3Y5DX.js → chunk-5GUYYSVT.js} +1 -1
- package/dist/{chunk-EOXNEA4Z.js → chunk-5RM7274K.js} +21 -9
- package/dist/{chunk-E4IR34CF.js → chunk-5T2LNQAH.js} +58 -20
- package/dist/{chunk-M5TTYUZM.js → chunk-5ZAM42GH.js} +6 -6
- package/dist/{chunk-5IE5ZI66.js → chunk-62UUXB3F.js} +1 -1
- package/dist/{chunk-A4YRESMH.js → chunk-63CSQYYO.js} +2 -2
- package/dist/{chunk-R4EWRIDL.js → chunk-6B2TH52B.js} +8 -1
- package/dist/{chunk-X3IVUSOX.js → chunk-6KU6TCSS.js} +3 -3
- package/dist/{chunk-DHVRVI7F.js → chunk-6NDSDQCR.js} +62 -27
- package/dist/{chunk-O4K22EFS.js → chunk-6OKMCIDU.js} +24 -14
- package/dist/{chunk-D3M5VOC5.js → chunk-6P7FLYOR.js} +55 -125
- package/dist/{chunk-JQZ5WP7L.js → chunk-6R22Y26Z.js} +1 -1
- package/dist/{chunk-2SJNGWSY.js → chunk-6X2CLRU7.js} +1 -1
- package/dist/{chunk-PYTF6VHF.js → chunk-6ZU654EU.js} +3 -3
- package/dist/{chunk-G3U5CUF3.js → chunk-73NC557V.js} +2 -2
- package/dist/{chunk-7WAWUQDQ.js → chunk-7463BOQJ.js} +4 -4
- package/dist/{chunk-4N3WOFP3.js → chunk-7AP5C4C2.js} +19 -19
- package/dist/{chunk-FFOFGL2O.js → chunk-7DMES2F3.js} +2 -2
- package/dist/{chunk-Y6CZFX5X.js → chunk-7GDEQJSL.js} +28 -19
- package/dist/{chunk-ECGNWHFE.js → chunk-A2ZUVULS.js} +88 -2
- package/dist/{chunk-CNAOJ7XI.js → chunk-A7NRMVUG.js} +1 -1
- package/dist/{chunk-TLGQQ324.js → chunk-ADQ7XZE5.js} +11 -9
- package/dist/{chunk-M3IHARIW.js → chunk-B5JWBMDR.js} +102 -40
- package/dist/{chunk-7ZHBY7T5.js → chunk-B5TLZC2D.js} +11 -4
- package/dist/{chunk-DH3M5X3Y.js → chunk-BAU3ASNM.js} +4 -4
- package/dist/{chunk-ELRE6LVJ.js → chunk-BHZZM2PK.js} +5 -5
- package/dist/chunk-BNH2IKGV.js +5101 -0
- package/dist/{chunk-ROESFEBP.js → chunk-BNO5RN55.js} +74 -66
- package/dist/{chunk-EWKJDXH6.js → chunk-C2GAAMZ3.js} +4 -4
- package/dist/{chunk-OMZSPAK5.js → chunk-C7IEAEKF.js} +1 -1
- package/dist/{chunk-ZFOV3R2L.js → chunk-CAAUQUCW.js} +23 -9
- package/dist/{chunk-CPDPSNSB.js → chunk-CPHK3XMF.js} +7 -7
- package/dist/{chunk-NJPLH762.js → chunk-CPLVXXRS.js} +4 -4
- package/dist/{chunk-AMS7Q7P7.js → chunk-CRX444MF.js} +22 -21
- package/dist/{chunk-4LZSNWFJ.js → chunk-CRZ7FUMI.js} +3 -3
- package/dist/{chunk-VI2LLFW6.js → chunk-CSWJCRDU.js} +2 -2
- package/dist/{chunk-37Y334MN.js → chunk-CT54FOTS.js} +18 -14
- package/dist/{chunk-CGODFJZ7.js → chunk-CYM53TWZ.js} +32 -18
- package/dist/chunk-D37I36FY.js +21 -0
- package/dist/{chunk-LO5USUM4.js → chunk-DD37XZVE.js} +1 -1
- package/dist/{chunk-OD7XWF5T.js → chunk-DWGDP537.js} +12 -6
- package/dist/chunk-EDH2DMXM.js +113 -0
- package/dist/{chunk-TAXMLPTE.js → chunk-ENKXJNKX.js} +2 -2
- package/dist/{chunk-UJTLTFB6.js → chunk-ERYGKPIR.js} +1 -1
- package/dist/{chunk-HOIEN7O4.js → chunk-F6PI5O3H.js} +3 -1
- package/dist/{chunk-GVIJFPZV.js → chunk-FLJ4S7NA.js} +2 -2
- package/dist/{chunk-KYKQO4VN.js → chunk-FU62NEWC.js} +3 -3
- package/dist/{chunk-MPC3OODR.js → chunk-G7HO2FFX.js} +4 -4
- package/dist/chunk-GADMF4BL.js +170 -0
- package/dist/{chunk-DWFWF6IR.js → chunk-GNRC4L6F.js} +34 -242
- package/dist/{chunk-BSFTB6AM.js → chunk-GYPZTG46.js} +12 -6
- package/dist/{chunk-OL7RHRNJ.js → chunk-H4HYZUE3.js} +2 -2
- package/dist/{chunk-V3O4AFO3.js → chunk-H6Y4XOSP.js} +17 -15
- package/dist/{chunk-PGITR2WX.js → chunk-HAMPVCRY.js} +4 -4
- package/dist/{chunk-677JGYQL.js → chunk-HLVNKNSW.js} +1 -0
- package/dist/{chunk-HFIVZJJD.js → chunk-HTHLFEO2.js} +1 -1
- package/dist/{chunk-SM5PNCDI.js → chunk-ICZWQNBR.js} +2 -2
- package/dist/{chunk-HTGJOOXE.js → chunk-IIXSSRUR.js} +4 -4
- package/dist/{chunk-GEOJA37C.js → chunk-ILKK6F5E.js} +3 -3
- package/dist/{chunk-IHXMN5YH.js → chunk-IOWECUEU.js} +2 -2
- package/dist/{chunk-SE4NOUB6.js → chunk-IT2YUKYY.js} +5 -5
- package/dist/chunk-IU6AC3WL.js +125 -0
- package/dist/{chunk-IGZQYMZA.js → chunk-J56ZJFSF.js} +303 -123
- package/dist/{chunk-5SGGOZNL.js → chunk-KBEC6VQS.js} +595 -206
- package/dist/{chunk-WEU6WLVT.js → chunk-KTY46LIH.js} +8 -4
- package/dist/chunk-KUJJJBV2.js +211 -0
- package/dist/{chunk-CHCMXYER.js → chunk-KVIXXJLO.js} +1 -1
- package/dist/{chunk-XYP4T6TQ.js → chunk-KYZEK7QF.js} +5 -5
- package/dist/{chunk-UGKUGYHD.js → chunk-L7MFHIG7.js} +5 -2
- package/dist/{chunk-YTHXSYYB.js → chunk-LB6ZAP4I.js} +19 -11
- package/dist/{chunk-SV72WLBE.js → chunk-LGIWC6KN.js} +28 -15
- package/dist/{chunk-ADVVQX4I.js → chunk-LMNCEQCC.js} +4 -2
- package/dist/{chunk-VLFBOKZX.js → chunk-LTXZLTXW.js} +304 -234
- package/dist/{chunk-WJIWXHXK.js → chunk-LULZFFDN.js} +3 -3
- package/dist/{chunk-CGJIMWNU.js → chunk-LV2ETFC5.js} +5 -5
- package/dist/{chunk-DL6PEJWH.js → chunk-LYTELQL2.js} +2 -4
- package/dist/{chunk-W2OXNTHG.js → chunk-LZSSGF7G.js} +3 -3
- package/dist/chunk-MERWX4DZ.js +159 -0
- package/dist/{chunk-CVTIGS5K.js → chunk-MJBBKSKB.js} +1 -1
- package/dist/{chunk-5IUVWP3A.js → chunk-MPVJI4SE.js} +2 -2
- package/dist/{chunk-7WYJXKIG.js → chunk-MPX3FO4A.js} +5 -5
- package/dist/{chunk-ERDQIRUL.js → chunk-MQCIX6O2.js} +20 -10
- package/dist/{chunk-ZO5NHAF3.js → chunk-MTCVUAUK.js} +10 -4
- package/dist/{chunk-E26Z73S3.js → chunk-MTKXKULM.js} +2 -2
- package/dist/{chunk-MCDNAIFF.js → chunk-NGRWDXRZ.js} +1 -1
- package/dist/{chunk-FNXU56VT.js → chunk-NK2UW3WR.js} +1 -1
- package/dist/{chunk-PS7WBIPK.js → chunk-NOJRZCN3.js} +33 -18
- package/dist/{chunk-JOOKM2NC.js → chunk-NU7BEOCX.js} +3 -3
- package/dist/chunk-NY6E4272.js +112 -0
- package/dist/{chunk-JZVI2TMX.js → chunk-OBP5WNKP.js} +3 -3
- package/dist/{chunk-AM4Y3XMR.js → chunk-OGOR22GY.js} +4 -4
- package/dist/{chunk-D2LIT7UR.js → chunk-OH3MUFZG.js} +1 -1
- package/dist/{chunk-DX5Y3L5B.js → chunk-OPUR2XQ2.js} +6 -6
- package/dist/{chunk-SYKUNH25.js → chunk-OW6MOJSR.js} +59 -7
- package/dist/{chunk-XCJ2YYMV.js → chunk-P5M3IEXO.js} +1 -1
- package/dist/{chunk-D2LSYXLW.js → chunk-PAHTZDMZ.js} +1 -1
- package/dist/{chunk-OSKSTJNQ.js → chunk-PJQVJSMG.js} +21 -12
- package/dist/{chunk-72GTIFAI.js → chunk-POVOGRMU.js} +2 -2
- package/dist/{chunk-U5MILT4G.js → chunk-PPETKAEO.js} +1 -1
- package/dist/{chunk-ZLTB7ZCQ.js → chunk-PQ2OPPGP.js} +8 -4
- package/dist/chunk-PTGNUVCB.js +112 -0
- package/dist/{chunk-X6JUUQCM.js → chunk-Q4FVSYTD.js} +5 -2
- package/dist/{chunk-MYETYFDI.js → chunk-Q7IOMZ5X.js} +2 -2
- package/dist/{chunk-GRSZAGJB.js → chunk-R2LBMDYH.js} +2 -2
- package/dist/{chunk-QBN2W4T3.js → chunk-RC2DDVX5.js} +1 -1
- package/dist/{chunk-VSM7OIG2.js → chunk-RDJOA5MM.js} +2 -2
- package/dist/{chunk-OEGWTN6N.js → chunk-RF3DT4CS.js} +1 -1
- package/dist/{chunk-WGHJUGNU.js → chunk-RJCQZMNI.js} +10 -10
- package/dist/{chunk-B2WXMYMA.js → chunk-RPICLHBJ.js} +1 -1
- package/dist/{chunk-7ECPFKQV.js → chunk-RRI7NGQZ.js} +37 -13
- package/dist/{chunk-X3UXEB2U.js → chunk-RSYV6NNI.js} +2 -2
- package/dist/{chunk-6EMFSRTW.js → chunk-S35RUNXJ.js} +7 -0
- package/dist/{chunk-QGQCWG7F.js → chunk-SCEBICAQ.js} +2 -2
- package/dist/{chunk-JKLWQUSV.js → chunk-SDIQEPAR.js} +1 -1
- package/dist/{chunk-3VMZQQUI.js → chunk-SIQGTRZ5.js} +1 -1
- package/dist/{chunk-N6PAWR5C.js → chunk-SQI2MWJE.js} +5 -5
- package/dist/{chunk-BSDUTNFX.js → chunk-SYMLVFQF.js} +1 -1
- package/dist/{chunk-XMAU5ZQX.js → chunk-TFAKFI3R.js} +1 -1
- package/dist/{chunk-SNKBI4YB.js → chunk-TJAFCC37.js} +9 -9
- package/dist/{chunk-6T4PB35F.js → chunk-TRQDC2UC.js} +9 -2
- package/dist/{chunk-4NNYYCJN.js → chunk-TRVWLAQ3.js} +25 -21
- package/dist/{chunk-UDLWVQ74.js → chunk-TTRX7NM3.js} +35 -21
- package/dist/{chunk-66W5IWLO.js → chunk-U7M4SZUB.js} +13 -2
- package/dist/{chunk-TLDIP7Y3.js → chunk-UEJMLVGW.js} +16 -17
- package/dist/{chunk-ZAWQJOTW.js → chunk-UX5KLSAJ.js} +74 -76
- package/dist/{chunk-O2BLY7PO.js → chunk-VJVTGSGW.js} +1 -1
- package/dist/{chunk-IE6BIB3L.js → chunk-VM2VBJRC.js} +34 -3
- package/dist/{chunk-AM6UYKVR.js → chunk-VNWPHKKI.js} +11 -11
- package/dist/{chunk-WQZQMADW.js → chunk-VRUVJTFW.js} +244 -28
- package/dist/{chunk-37VS6QY6.js → chunk-VSS3OAZB.js} +1 -1
- package/dist/{chunk-H7DTMLAR.js → chunk-VZM7AFUH.js} +39 -24
- package/dist/{chunk-WLNHZ2OM.js → chunk-W772ZFTE.js} +21 -6
- package/dist/{chunk-3GKGBYW3.js → chunk-WTO3A7ET.js} +120 -9
- package/dist/{chunk-ALD7JBPV.js → chunk-WTS245RC.js} +2 -2
- package/dist/{chunk-VBEDZGBW.js → chunk-WTUDKVWQ.js} +74 -19
- package/dist/{chunk-OPSGEOCO.js → chunk-WVCCSYZC.js} +53 -31
- package/dist/{chunk-ZCLC3KVY.js → chunk-X3NGTIE3.js} +1 -1
- package/dist/{chunk-RV3HR3BZ.js → chunk-XLG3JMSS.js} +9 -9
- package/dist/{chunk-ZYNNZ5DE.js → chunk-Y53Z2M77.js} +2 -2
- package/dist/{chunk-O2INZCGB.js → chunk-YB2ZJJFJ.js} +1 -1
- package/dist/{chunk-J6VYWZSO.js → chunk-YLC67YFR.js} +1 -1
- package/dist/{chunk-6LU6JICP.js → chunk-YWUE4CRU.js} +96 -9
- package/dist/chunk-Z3BPDCRV.js +537 -0
- package/dist/{chunk-I6V25IXG.js → chunk-Z55ASKZE.js} +2 -2
- package/dist/{chunk-EZJHKHWU.js → chunk-ZBDITGMP.js} +3 -3
- package/dist/{chunk-MSC5KBCE.js → chunk-ZGSGBGTB.js} +32 -24
- package/dist/{clean-6ODSABBF.js → clean-RJKQ23WH.js} +46 -46
- package/dist/cli.js +120 -77
- package/dist/{cloud-IMYQB5RC.js → cloud-R3NQSUTQ.js} +4 -4
- package/dist/{cloud-NTKLXMBS.js → cloud-VUR3ZO6O.js} +10 -10
- package/dist/{cloudrun-JNLDP33J.js → cloudrun-SZYAYV7N.js} +24 -16
- package/dist/{compare-VLYZ6ZS4.js → compare-AO5VJBJW.js} +79 -100
- package/dist/{compiler-7M2UCEWG.js → compiler-65SP7M2P.js} +9 -10
- package/dist/{component-KMUHKZ4R.js → component-WGTPAIKX.js} +23 -9
- package/dist/{compositions-ESLWNOMS.js → compositions-HWM6DNJA.js} +28 -29
- package/dist/{contactSheet-4YF7U6U7.js → contactSheet-ROUVWDRO.js} +7 -7
- package/dist/{curve-7RPSNRPE.js → curve-PLPTMDS4.js} +27 -28
- package/dist/{cuts-KBAAZSPS.js → cuts-T5GYTDUA.js} +28 -29
- package/dist/{delete-EP5Z7HKF.js → delete-6WE3N3VO.js} +33 -21
- package/dist/{deploy-MVR63JLD.js → deploy-GYY6CYQD.js} +14 -13
- package/dist/{describeProject-NBVZT5EN.js → describeProject-UQQ2GGIX.js} +19 -20
- package/dist/{destroy-DQKIT574.js → destroy-WSGREGAG.js} +14 -13
- package/dist/{deterministicFonts-LYBMXXBW.js → deterministicFonts-JER4GPCM.js} +7 -7
- package/dist/{diff-RI3FTMOZ.js → diff-JQBZUPKG.js} +305 -114
- package/dist/{dist-LRGTXDSM.js → dist-6EF2P3P7.js} +6 -5
- package/dist/{dist-G7VFX23I.js → dist-HF753IX4.js} +12 -10
- package/dist/{dist-TOOMD57O.js → dist-JRJHFP27.js} +24 -24
- package/dist/{docs-YTM4NX2R.js → docs-3OAPSKPG.js} +1 -1
- package/dist/{doctor-43YNRCRB.js → doctor-SPJ5AJKX.js} +31 -32
- package/dist/{dotEnv-RZ52L7X3.js → dotEnv-7JWLJ2TG.js} +11 -3
- package/dist/{energy-YCH36KCC.js → energy-KPDVIZ5D.js} +28 -29
- package/dist/{events-VUR27EF6.js → events-4WAMG3JE.js} +15 -16
- package/dist/{events-6RJBITYN.js → events-P4223ZZZ.js} +30 -31
- package/dist/{events-JCPYG3CD.js → events-XON5I7VU.js} +9 -9
- package/dist/{execute-OXMKWIFI.js → execute-CN5FLBYU.js} +57 -53
- package/dist/{extract-XGD2RDEX.js → extract-ABSBKYYH.js} +29 -30
- package/dist/{face-XCNWNTGN.js → face-PLPQ5335.js} +29 -30
- package/dist/{feedback-JNFDVBFV.js → feedback-QPQ4G72X.js} +70 -44
- package/dist/{ffmpeg-YQLAJUEA.js → ffmpeg-F3XK57IP.js} +19 -20
- package/dist/{figma-XXGHYEB3.js → figma-S5CVANVZ.js} +3 -3
- package/dist/fontLocalizeCli.js +29 -29
- package/dist/{frames-PEMWFRRY.js → frames-F4QEQB4V.js} +30 -31
- package/dist/{generate-H5M4QSJR.js → generate-O3OPOCHP.js} +46 -47
- package/dist/{get-R6Y2OE5P.js → get-P7LQ7U22.js} +29 -17
- package/dist/{gpuPolicy-2WVDQYZA.js → gpuPolicy-JPRDRQWU.js} +18 -19
- package/dist/{grade-compare-KFXPZFDL.js → grade-compare-6UZ6SK4J.js} +61 -61
- package/dist/hangReport.js +2 -2
- package/dist/{heifImagePrep-VLKYA5QZ.js → heifImagePrep-3PDFNYIE.js} +25 -25
- package/dist/{help-T3XUX5RI.js → help-DLOCAL7E.js} +1 -1
- package/dist/{history-QJPUCUUC.js → history-YIJVOGH7.js} +29 -30
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +64 -64
- package/dist/hyperframes-player.global.js +14 -6
- package/dist/{info-556DHJHJ.js → info-FVYJNNQL.js} +33 -34
- package/dist/{init-P62TPWR3.js → init-V45K4VAG.js} +54 -53
- package/dist/{ink-SRN65OZH.js → ink-P72OB7L4.js} +28 -29
- package/dist/{inspect-U5FWQQFB.js → inspect-3W2IG3JF.js} +63 -59
- package/dist/{installer-3TNMANQV.js → installer-QGDTFTDU.js} +11 -12
- package/dist/{keyframes-FPGEFGCH.js → keyframes-57OPHIR2.js} +111 -49
- package/dist/{lambda-YJY2MYWL.js → lambda-EQZS7UMO.js} +40 -33
- package/dist/{layout-QIKSVA44.js → layout-KSWMO6MH.js} +63 -61
- package/dist/{lint-RD33ESM5.js → lint-WIYBGVF2.js} +23 -24
- package/dist/{lintProject-ZWLXB3A2.js → lintProject-N3UN6HEE.js} +6 -5
- package/dist/{list-FFO3WOB2.js → list-3FQAHEE2.js} +32 -20
- package/dist/{localPage-DHIBMNJH.js → localPage-G2QEA7JL.js} +19 -20
- package/dist/{login-IMFRQOEQ.js → login-C3U6WSHF.js} +10 -10
- package/dist/{logout-SLBKP67J.js → logout-525LWS6J.js} +5 -5
- package/dist/{look-ZZHJYSPC.js → look-U5LWOI4H.js} +28 -29
- package/dist/{manager-U4WEPCLV.js → manager-C5S25OOK.js} +7 -7
- package/dist/{manager-V4LGD4HB.js → manager-ZVYDWLHI.js} +21 -22
- package/dist/{measure-ZRBVN45B.js → measure-R2KZIHXT.js} +11 -11
- package/dist/{media-treatment-3I2CMQJZ.js → media-treatment-FAW5ZLT7.js} +37 -36
- package/dist/{media-use-2OYJ3CCN.js → media-use-CPTT2ZDE.js} +14 -10
- package/dist/{models-PRW7EWSV.js → models-53JHNGSL.js} +31 -32
- package/dist/{motionShot-VWILMLHQ.js → motionShot-K5ZHHHE6.js} +33 -34
- package/dist/{normalize-PGMS24I2.js → normalize-TBACWMEK.js} +4 -1
- package/dist/{normalize-audio-42XMF35K.js → normalize-audio-EOO2ORPP.js} +25 -25
- package/dist/{oauth-V3HSFZRE.js → oauth-E5QBYYTX.js} +2 -2
- package/dist/{open-D52MJZQA.js → open-3YABRCER.js} +34 -35
- package/dist/{parakeetRunner-ZR2JWQZH.js → parakeetRunner-TLZC2WAJ.js} +31 -32
- package/dist/{pipeline-W3H4JA6H.js → pipeline-LZ73CHLB.js} +27 -26
- package/dist/{plan-2HQOFJO7.js → plan-3QQZ57IC.js} +38 -39
- package/dist/{play-G5XDRDIZ.js → play-ESWP4SF2.js} +53 -50
- package/dist/{policies-5RUNO47I.js → policies-XG6OTGQC.js} +2 -2
- package/dist/{preflight-W2JDYF3T.js → preflight-7G5OBMAA.js} +22 -23
- package/dist/{present-CYMTHQFM.js → present-5ER4JKR5.js} +45 -44
- package/dist/{preview-DTQPQZTK.js → preview-62XOVSXM.js} +61 -60
- package/dist/privateProjectFile-6NPNZXK3.js +65 -0
- package/dist/{probe-WZJK3YQI.js → probe-CFOGEVFU.js} +28 -29
- package/dist/{producer-2BSMSO6I.js → producer-LLE32VVO.js} +1 -1
- package/dist/{progress-KRDVC24C.js → progress-PT3NAFVP.js} +6 -5
- package/dist/{projectConfig-BYRVYLCC.js → projectConfig-R54UDB5Y.js} +14 -15
- package/dist/{prompts-7VQEH645.js → prompts-XC3IBT4D.js} +2 -2
- package/dist/{publicNetwork-GW7SVP7N.js → publicNetwork-66HWFKYG.js} +3 -1
- package/dist/{publication-UCFJLELD.js → publication-TOBV6M4Q.js} +8 -9
- package/dist/{publish-KXVPSWCO.js → publish-QVNH5PXC.js} +107 -76
- package/dist/receivedRecordFollow-U43DTVLP.js +54 -0
- package/dist/{refresh-2GVNKDQE.js → refresh-HK4YEHWC.js} +5 -5
- package/dist/{remove-background-O7BZNS3X.js → remove-background-XHE6JL35.js} +31 -30
- package/dist/{render-TYS3LCIQ.js → render-7JJ2DFEB.js} +16 -15
- package/dist/{render-QOWXGWQZ.js → render-GRZMK6ET.js} +143 -100
- package/dist/{render-DGAP4Q2Z.js → render-WK3D5VOW.js} +173 -138
- package/dist/{render-batch-TEQRGAUC.js → render-batch-KFEZFJXB.js} +20 -18
- package/dist/renderSetupWorker.js +23 -13
- package/dist/{resolver-RN2JGGQL.js → resolver-N4U52UK5.js} +11 -12
- package/dist/{reverse-FUARFEG2.js → reverse-6AOA3PXF.js} +1 -1
- package/dist/{run-V722HMUG.js → run-M2J3ZJ3W.js} +14 -14
- package/dist/runtimeVersion.js +6 -1
- package/dist/{sam-KHLM2DJA.js → sam-O7Y2CCK3.js} +5 -5
- package/dist/{screenshotCapture-4BB4LUMX.js → screenshotCapture-UXJZ7D3L.js} +21 -22
- package/dist/{service-ZPCHJY6B.js → service-DBNZZLPU.js} +31 -31
- package/dist/{share-PXUN7AH7.js → share-6P7S3USP.js} +36 -36
- package/dist/{sherpa-LT6Y7IGM.js → sherpa-CXEHEVAJ.js} +30 -31
- package/dist/sherpaWorker.js +6 -6
- package/dist/{sites-WWCABDSX.js → sites-R5F5FNAL.js} +9 -6
- package/dist/skills/hyperframes/scripts/locate.mjs +13 -19
- package/dist/skills/hyperframes-cli/references/lambda.md +1 -1
- package/dist/skills/media-use/audio/references/tts-to-captions.md +1 -1
- package/dist/skills/media-use/audio/references/tts.md +6 -6
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +143 -2
- package/dist/skills/media-use/audio/scripts/lib/tts.mjs +12 -2
- package/dist/skills/media-use/scripts/lib/candidates.mjs +3 -2
- package/dist/skills/media-use/scripts/lib/credit-limit.d.mts +1 -1
- package/dist/skills/media-use/scripts/lib/credit-limit.mjs +14 -9
- package/dist/skills/media-use/scripts/lib/terminal-text.d.mts +1 -0
- package/dist/skills/media-use/scripts/lib/terminal-text.mjs +12 -0
- package/dist/skills/media-use/scripts/resolve.mjs +21 -15
- package/dist/{skills-G63W5GD5.js → skills-RMIHFNI6.js} +21 -22
- package/dist/{skillsUpdateCheck-2T3JVDAA.js → skillsUpdateCheck-EHOSL2AC.js} +7 -7
- package/dist/{snapshot-EVSKTVDG.js → snapshot-DQK3P7TF.js} +114 -90
- package/dist/{src-K5FSMLTB.js → src-4INHWM6L.js} +29 -29
- package/dist/{src-R57EQQSI.js → src-BNSCFKOD.js} +25 -22
- package/dist/{start-XBCYKGBV.js → start-KPCEUG5K.js} +52 -45
- package/dist/{state-FO64CPYE.js → state-5LE7AN6F.js} +6 -5
- package/dist/{staticProjectServer-Q6VR7CXT.js → staticProjectServer-VCS4TOU2.js} +37 -37
- package/dist/{status-E5XIWRCQ.js → status-WBNQSG4H.js} +31 -32
- package/dist/studio/assets/hyperframes-player-Cm0hYGm2.js +573 -0
- package/dist/studio/assets/{index-D7ICtobF.js → index-BGrNWeLK.js} +199 -199
- package/dist/studio/assets/{index-ww7-RmuM.js → index-REqr_dLu.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-Dbe8Cmab.js → pausedVideoDecoder-DqLDSq8J.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-GMJVYGET.js → studio-api-RAW4CIPR.js} +24 -24
- package/dist/{studioSelectionClient-S46TNAAZ.js → studioSelectionClient-PLBQBLCJ.js} +2 -2
- package/dist/{studioServer-MIQCMK6U.js → studioServer-5PWBZADN.js} +357 -163
- package/dist/subCompositionWorker.js +62 -55
- package/dist/{sync-WJOFN6VN.js → sync-PM2WLBUC.js} +28 -29
- package/dist/{synthesize-FXM7ZD6J.js → synthesize-NGU4DRKC.js} +24 -14
- package/dist/{system-DBUN5UDD.js → system-PKL4Y4MX.js} +3 -3
- package/dist/{telemetry-HZ4P4DMC.js → telemetry-4BST73P2.js} +15 -16
- package/dist/{telemetry-M722DCXI.js → telemetry-UC4MSMG3.js} +1 -1
- package/dist/{templates-KFZZSSKW.js → templates-G3XOWYXG.js} +36 -31
- package/dist/{timeline-5M6DPCXF.js → timeline-E6ZXYGQR.js} +50 -46
- package/dist/{tokens-H4NPNRFR.js → tokens-KRHXM44C.js} +17 -7
- package/dist/{transcribe-6STI2ALX.js → transcribe-RJ3GOCJL.js} +56 -57
- package/dist/{transcribe-7PE5UH7J.js → transcribe-TKV3POYD.js} +26 -27
- package/dist/{tts-D7CLD3AD.js → tts-EPXRE275.js} +26 -10
- package/dist/{update-H3T3AVVG.js → update-TO7MLJCS.js} +23 -24
- package/dist/{updateCheck-TLCXUNBV.js → updateCheck-5AY447D5.js} +6 -6
- package/dist/{upgrade-BZVTMCQU.js → upgrade-BLZWWXYL.js} +11 -11
- package/dist/{urlDownloader-FJXNC3IM.js → urlDownloader-ME67HQ4O.js} +17 -18
- package/dist/{validate-WTRVCEL5.js → validate-SRBV5NFV.js} +53 -49
- package/dist/{video-TVO2U5F2.js → video-JPESR36I.js} +38 -34
- package/dist/{voices-F3EW43LX.js → voices-AECYKXGA.js} +43 -44
- package/dist/warmCheck.js +73 -73
- package/dist/warmCheckClient.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-23SG3B6M.js +0 -81
- package/dist/chunk-2RUCE54M.js +0 -5083
- package/dist/chunk-HFUI6LVF.js +0 -34
- package/dist/chunk-JOQR4AP6.js +0 -22
- package/dist/chunk-MK23FXLH.js +0 -21
- package/dist/chunk-SALNTRJA.js +0 -204
- package/dist/chunk-VC76R6W2.js +0 -27
- package/dist/chunk-Z642P33A.js +0 -270
- package/dist/studio/assets/hyperframes-player-B78JDyI_.js +0 -565
- package/dist/{chunk-7IMHPBSH.js → chunk-4NDSGKPO.js} +3 -3
- /package/dist/{chunk-YXX6CIHL.js → chunk-BWFNWEUO.js} +0 -0
|
@@ -7,31 +7,32 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
isCopiedOutsideFileType,
|
|
9
9
|
isPrivateOutsideFile,
|
|
10
|
+
isUploadedOutsideFileType,
|
|
10
11
|
leftOutWarning,
|
|
11
12
|
linksOutside
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
realFilePath
|
|
15
|
-
} from "./chunk-3GKGBYW3.js";
|
|
13
|
+
} from "./chunk-B5TLZC2D.js";
|
|
16
14
|
import {
|
|
17
15
|
DEFAULT_VP9_CPU_USED,
|
|
18
16
|
isHttpUrl,
|
|
19
17
|
isPrivateUnderAssetRoots,
|
|
20
18
|
runFfmpeg,
|
|
21
19
|
urlInputArgs
|
|
22
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LTXZLTXW.js";
|
|
21
|
+
import {
|
|
22
|
+
realFilePath
|
|
23
|
+
} from "./chunk-WTO3A7ET.js";
|
|
23
24
|
import {
|
|
24
25
|
renameWithRetry
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LYTELQL2.js";
|
|
26
27
|
import {
|
|
27
28
|
parseAnimatedGifMetadata
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MPVJI4SE.js";
|
|
29
30
|
import {
|
|
30
31
|
isSafePath
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-3GF72UPC.js";
|
|
32
33
|
import {
|
|
33
34
|
namesAnotherNetworkRoot
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-S35RUNXJ.js";
|
|
35
36
|
import {
|
|
36
37
|
parseHTML
|
|
37
38
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -69,15 +70,17 @@ function isPathInside(childPath, parentPath, options = {}) {
|
|
|
69
70
|
function escapesAssetRoot(path, assetRoot) {
|
|
70
71
|
return assetRoot !== void 0 && !isSafePath(assetRoot, path);
|
|
71
72
|
}
|
|
72
|
-
function outsideAssetRefusal(projectDir, path) {
|
|
73
|
+
function outsideAssetRefusal(projectDir, path, policy = {}) {
|
|
73
74
|
if (!linksOutside(projectDir, path)) return null;
|
|
74
75
|
if (isPrivateOutsideFile(projectDir, path)) return "blocklisted";
|
|
75
76
|
const folder = statSync(path, { throwIfNoEntry: false })?.isDirectory();
|
|
76
|
-
|
|
77
|
+
if (folder || isUploadedOutsideFileType(path)) return null;
|
|
78
|
+
if (!isCopiedOutsideFileType(path)) return "file_type";
|
|
79
|
+
return policy.includeScripts ? null : "script";
|
|
77
80
|
}
|
|
78
81
|
var leftOutOfRender = (file, reference, reason) => leftOutWarning(file, reference, reason, "render");
|
|
79
|
-
function refusesOutsideLink(projectDir, path, warn) {
|
|
80
|
-
const refusal = outsideAssetRefusal(projectDir, path);
|
|
82
|
+
function refusesOutsideLink(projectDir, path, warn, policy = {}) {
|
|
83
|
+
const refusal = outsideAssetRefusal(projectDir, path, policy);
|
|
81
84
|
if (!refusal) return false;
|
|
82
85
|
const file = nodeRelative(projectDir, path).split(sep).join("/");
|
|
83
86
|
warn(leftOutOfRender(file, realFilePath(path), refusal));
|
|
@@ -170,7 +173,8 @@ function resolveLocalImageSourcePath(src, options) {
|
|
|
170
173
|
isAbsolute(basePath) ? basePath : resolve(options.projectDir, projectRelative),
|
|
171
174
|
resolve(options.downloadDir, normalizedBase)
|
|
172
175
|
];
|
|
173
|
-
const
|
|
176
|
+
const assetRoot = options.allowOutsideFiles ? void 0 : options.projectDir;
|
|
177
|
+
const allowed = (candidate) => !namesAnotherNetworkRoot(options.projectDir, candidate) && !isPrivateUnderAssetRoots(candidate, [options.projectDir, options.downloadDir]) && (!escapesAssetRoot(candidate, assetRoot) && outsideAssetRefusal(options.projectDir, candidate) !== "blocklisted" || !escapesAssetRoot(candidate, options.downloadDir));
|
|
174
178
|
return candidates.find((candidate) => allowed(candidate) && existsSync(candidate)) ?? null;
|
|
175
179
|
}
|
|
176
180
|
function isUsableFile(path) {
|
|
@@ -6,11 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findStageProxyBox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3ROFCQAW.js";
|
|
10
10
|
import {
|
|
11
|
+
documentFromAnotherSite,
|
|
11
12
|
injectMediaCodecMapIntoHtml,
|
|
12
13
|
requestFromAnotherSite
|
|
13
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J56ZJFSF.js";
|
|
14
15
|
import {
|
|
15
16
|
PROXY_VARIANT_CONFIG,
|
|
16
17
|
ProxyCapacityError,
|
|
@@ -21,43 +22,43 @@ import {
|
|
|
21
22
|
recordProxyRequest,
|
|
22
23
|
resolveProxy,
|
|
23
24
|
resolveProxyVariantRequest
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UX5KLSAJ.js";
|
|
25
26
|
import {
|
|
26
27
|
resolveAutoProxy
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LZSSGF7G.js";
|
|
28
29
|
import {
|
|
29
30
|
openRangeEnd
|
|
30
31
|
} from "./chunk-LD6JONPV.js";
|
|
31
|
-
import {
|
|
32
|
-
getMimeType
|
|
33
|
-
} from "./chunk-P2ZMVHTF.js";
|
|
34
32
|
import {
|
|
35
33
|
SAME_ORIGIN_FRAMING_HEADERS,
|
|
36
34
|
isOwnLoopbackHost
|
|
37
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-LTXZLTXW.js";
|
|
38
36
|
import {
|
|
39
37
|
listenOnBrowserSafePort
|
|
40
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-PJQVJSMG.js";
|
|
39
|
+
import {
|
|
40
|
+
getMimeType
|
|
41
|
+
} from "./chunk-P2ZMVHTF.js";
|
|
41
42
|
import {
|
|
42
43
|
PREVIEW_FOR_ANOTHER_SITE_META
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-BWFNWEUO.js";
|
|
44
45
|
import {
|
|
45
46
|
stripSdrPngColourTags
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-7AP5C4C2.js";
|
|
47
48
|
import {
|
|
48
49
|
PREVIEW_PROXY_BOX_PARAM,
|
|
49
50
|
parsePreviewProxyBox
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MPVJI4SE.js";
|
|
51
52
|
import {
|
|
52
53
|
injectTagsAtHeadStart
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import {
|
|
55
|
-
isPrivateFileUnder,
|
|
56
|
-
isStudioPrivatePath
|
|
57
|
-
} from "./chunk-SALNTRJA.js";
|
|
54
|
+
} from "./chunk-BNH2IKGV.js";
|
|
58
55
|
import {
|
|
59
56
|
decodeWellFormedEscapes
|
|
60
57
|
} from "./chunk-IH2C53YV.js";
|
|
58
|
+
import {
|
|
59
|
+
isPrivateFileUnder,
|
|
60
|
+
isStudioPrivatePath
|
|
61
|
+
} from "./chunk-PTGNUVCB.js";
|
|
61
62
|
|
|
62
63
|
// src/utils/staticProjectServer.ts
|
|
63
64
|
import {
|
|
@@ -226,12 +227,20 @@ async function serveProxyRequest(projectDir, filePath, request, box, autoProxy,
|
|
|
226
227
|
function markForAnotherSite(html) {
|
|
227
228
|
return injectTagsAtHeadStart(html, `<meta name="${PREVIEW_FOR_ANOTHER_SITE_META}">`);
|
|
228
229
|
}
|
|
230
|
+
function proxyRequestedByAnotherSite(req) {
|
|
231
|
+
return requestFromAnotherSite({
|
|
232
|
+
fetchSite: req.headers["sec-fetch-site"],
|
|
233
|
+
host: req.headers.host,
|
|
234
|
+
referer: req.headers.referer
|
|
235
|
+
});
|
|
236
|
+
}
|
|
229
237
|
function loadedByAnotherSite(req, res) {
|
|
230
|
-
const anotherSite =
|
|
238
|
+
const anotherSite = documentFromAnotherSite({
|
|
231
239
|
fetchSite: req.headers["sec-fetch-site"],
|
|
232
240
|
host: req.headers.host,
|
|
233
241
|
referer: req.headers.referer
|
|
234
242
|
});
|
|
243
|
+
res.setHeader("Vary", "Sec-Fetch-Site, Referer");
|
|
235
244
|
if (anotherSite) {
|
|
236
245
|
const policies = [res.getHeader("Content-Security-Policy"), "sandbox allow-scripts"];
|
|
237
246
|
res.setHeader("Content-Security-Policy", policies.filter((p) => p !== void 0).map(String));
|
|
@@ -289,6 +298,11 @@ async function serveStaticProjectHtml(projectDir, html, bindErrorMessage = "Fail
|
|
|
289
298
|
res.end();
|
|
290
299
|
return;
|
|
291
300
|
}
|
|
301
|
+
if (proxyParam !== null && proxyRequestedByAnotherSite(req)) {
|
|
302
|
+
res.writeHead(403);
|
|
303
|
+
res.end("Forbidden: media proxy requested by another site");
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
292
306
|
const requestPath = decodeWellFormedEscapes(pathOnly).replace(/^\//, "");
|
|
293
307
|
for (const root of roots) {
|
|
294
308
|
const filePath = resolve(root, requestPath);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// ../parsers/dist/literalMediaInput.js
|
|
9
|
+
var PATTERN_IMAGE2_EXPANDS = /%(?:\d*d|[%*?[\]{}])/;
|
|
10
|
+
var URL_SCHEME = /^[a-z][a-z0-9+.-]+:/i;
|
|
11
|
+
function assertLiteralMediaInput(input) {
|
|
12
|
+
const local = !URL_SCHEME.test(input) || /^file:/i.test(input);
|
|
13
|
+
if (!local || !PATTERN_IMAGE2_EXPANDS.test(input)) return;
|
|
14
|
+
throw new Error(
|
|
15
|
+
`[FFmpeg] refused media path "${input.split(/[\\/]/).pop()}": a "%" followed by a number and "d", another "%" or a wildcard would make ffmpeg read it as a pattern of other files. Rename the file or folder.`
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
assertLiteralMediaInput
|
|
21
|
+
};
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
isTransientBrowserError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LTXZLTXW.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/screenshotOnceMore.ts
|
|
12
12
|
async function screenshotOnceMore(shoot) {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
claimDailyNotice,
|
|
9
9
|
updateCheckDisabled
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FU62NEWC.js";
|
|
11
11
|
import {
|
|
12
12
|
hostAnswers
|
|
13
13
|
} from "./chunk-BR2JQQC5.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-CPHQTXP5.js";
|
|
22
22
|
import {
|
|
23
23
|
VERSION
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7DMES2F3.js";
|
|
25
25
|
|
|
26
26
|
// src/utils/skillsUpdateCheck.ts
|
|
27
27
|
import { resolve as resolve2 } from "path";
|
|
@@ -29,8 +29,8 @@ import { resolve as resolve2 } from "path";
|
|
|
29
29
|
// src/utils/skillsManifest.ts
|
|
30
30
|
import { execFile } from "child_process";
|
|
31
31
|
import { createHash } from "crypto";
|
|
32
|
-
import { existsSync, readdirSync, readFileSync, statSync } from "fs";
|
|
33
|
-
import { homedir } from "os";
|
|
32
|
+
import { existsSync, mkdtempSync, readdirSync, readFileSync, rmSync, statSync } from "fs";
|
|
33
|
+
import { homedir, tmpdir } from "os";
|
|
34
34
|
import { isAbsolute, join, relative, resolve, sep } from "path";
|
|
35
35
|
import { promisify } from "util";
|
|
36
36
|
var execFileAsync = promisify(execFile);
|
|
@@ -330,7 +330,9 @@ async function fetchManifest(url) {
|
|
|
330
330
|
}
|
|
331
331
|
async function remoteHeadSha(repoSlug2) {
|
|
332
332
|
if (!REPO_SLUG_PATTERN.test(repoSlug2)) return null;
|
|
333
|
+
let noRepo;
|
|
333
334
|
try {
|
|
335
|
+
noRepo = mkdtempSync(join(tmpdir(), "hyperframes-git-"));
|
|
334
336
|
const { stdout } = await execFileAsync(
|
|
335
337
|
"git",
|
|
336
338
|
[
|
|
@@ -342,8 +344,10 @@ async function remoteHeadSha(repoSlug2) {
|
|
|
342
344
|
],
|
|
343
345
|
{
|
|
344
346
|
timeout: FETCH_TIMEOUT_MS,
|
|
347
|
+
cwd: noRepo,
|
|
345
348
|
env: {
|
|
346
349
|
...process.env,
|
|
350
|
+
GIT_DIR: noRepo,
|
|
347
351
|
GIT_TERMINAL_PROMPT: "0",
|
|
348
352
|
GIT_ASKPASS: "",
|
|
349
353
|
GCM_INTERACTIVE: "never"
|
|
@@ -355,6 +359,8 @@ async function remoteHeadSha(repoSlug2) {
|
|
|
355
359
|
return /^[0-9a-f]{40}$/.test(sha) ? sha : null;
|
|
356
360
|
} catch {
|
|
357
361
|
return null;
|
|
362
|
+
} finally {
|
|
363
|
+
if (noRepo) rmSync(noRepo, { recursive: true, force: true });
|
|
358
364
|
}
|
|
359
365
|
}
|
|
360
366
|
function cliReleaseTag(version) {
|
|
@@ -455,9 +461,9 @@ function cacheFresh(config, now) {
|
|
|
455
461
|
if (!config.lastSkillsCheck || config.skillsCheckedVersion !== VERSION) return false;
|
|
456
462
|
return now - new Date(config.lastSkillsCheck).getTime() < CHECK_INTERVAL_MS;
|
|
457
463
|
}
|
|
458
|
-
async function refreshSkillsCache() {
|
|
464
|
+
async function refreshSkillsCache(projectDir) {
|
|
459
465
|
if (!await hostAnswers("github.com")) return;
|
|
460
|
-
recordSkillsCheck(await checkSkills({ canonical: true, cliVersion: VERSION }));
|
|
466
|
+
recordSkillsCheck(await checkSkills({ canonical: true, cliVersion: VERSION, cwd: projectDir }));
|
|
461
467
|
}
|
|
462
468
|
function recordSkillsCheck(result) {
|
|
463
469
|
if (!result.location) {
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
R,
|
|
9
|
+
confirm
|
|
10
|
+
} from "./chunk-OH3MUFZG.js";
|
|
11
|
+
import {
|
|
12
|
+
outsideFilesQuestion
|
|
13
|
+
} from "./chunk-B5JWBMDR.js";
|
|
14
|
+
import {
|
|
15
|
+
trackEvent
|
|
16
|
+
} from "./chunk-NU7BEOCX.js";
|
|
17
|
+
import {
|
|
18
|
+
realFilePath
|
|
19
|
+
} from "./chunk-WTO3A7ET.js";
|
|
20
|
+
import {
|
|
21
|
+
hyperframesConfigDir
|
|
22
|
+
} from "./chunk-GR2E54E6.js";
|
|
23
|
+
|
|
24
|
+
// src/telemetry/uploadLeftOut.ts
|
|
25
|
+
function leftOutCounts(references) {
|
|
26
|
+
const levels = references.map((reference) => reference.levels_up);
|
|
27
|
+
const counted = (keep) => levels.filter(keep).length;
|
|
28
|
+
return {
|
|
29
|
+
left_out_count: references.length,
|
|
30
|
+
received_count: references.filter((reference) => reference.reason === "received").length,
|
|
31
|
+
blocklisted_count: references.filter((reference) => reference.reason === "blocklisted").length,
|
|
32
|
+
file_type_count: references.filter((reference) => reference.reason === "file_type").length,
|
|
33
|
+
not_approved_count: references.filter((reference) => reference.reason === "not_approved").length,
|
|
34
|
+
max_levels_up: Math.max(0, ...levels.map((n) => n ?? 0)),
|
|
35
|
+
levels_up_1: counted((n) => n === 1),
|
|
36
|
+
levels_up_2: counted((n) => n === 2),
|
|
37
|
+
levels_up_3_plus: counted((n) => n !== null && n >= 3),
|
|
38
|
+
other_drive: counted((n) => n === null)
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function trackUploadLeftOut(command, references, dryRun = false) {
|
|
42
|
+
if (references.length === 0) return;
|
|
43
|
+
trackEvent("cli_upload_left_out", { command, dry_run: dryRun, ...leftOutCounts(references) });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// src/utils/outsideFileApproval.ts
|
|
47
|
+
import { mkdirSync, readFileSync, renameSync, writeFileSync } from "fs";
|
|
48
|
+
import { dirname, resolve } from "path";
|
|
49
|
+
var approvalsFile = () => hyperframesConfigDir("outside-files.json");
|
|
50
|
+
function readApprovals() {
|
|
51
|
+
try {
|
|
52
|
+
const parsed = JSON.parse(readFileSync(approvalsFile(), "utf-8"));
|
|
53
|
+
return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : {};
|
|
54
|
+
} catch {
|
|
55
|
+
return {};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
var projectKey = (projectDir) => realFilePath(resolve(projectDir));
|
|
59
|
+
function approvedOutsideFiles(projectDir) {
|
|
60
|
+
const listed = readApprovals()[projectKey(projectDir)];
|
|
61
|
+
return new Set(Array.isArray(listed) ? listed.map(String) : []);
|
|
62
|
+
}
|
|
63
|
+
function rememberOutsideFiles(projectDir, paths) {
|
|
64
|
+
const approvals = readApprovals();
|
|
65
|
+
const key = projectKey(projectDir);
|
|
66
|
+
approvals[key] = [.../* @__PURE__ */ new Set([...approvedOutsideFiles(projectDir), ...paths])].sort();
|
|
67
|
+
const file = approvalsFile();
|
|
68
|
+
mkdirSync(dirname(file), { recursive: true, mode: 448 });
|
|
69
|
+
const staging = `${file}.${process.pid}.tmp`;
|
|
70
|
+
writeFileSync(staging, `${JSON.stringify(approvals, null, 2)}
|
|
71
|
+
`, { mode: 384 });
|
|
72
|
+
renameSync(staging, file);
|
|
73
|
+
}
|
|
74
|
+
async function confirmOutsideFiles(references) {
|
|
75
|
+
const answer = await confirm({
|
|
76
|
+
message: outsideFilesQuestion(references),
|
|
77
|
+
initialValue: false
|
|
78
|
+
});
|
|
79
|
+
return answer === true;
|
|
80
|
+
}
|
|
81
|
+
async function stageWithOutsideFileApproval(projectDir, choice, stage) {
|
|
82
|
+
const approved = approvedOutsideFiles(projectDir);
|
|
83
|
+
const run = () => {
|
|
84
|
+
const outsideFiles = [];
|
|
85
|
+
const notApproved = /* @__PURE__ */ new Map();
|
|
86
|
+
const staged = stage((reference) => {
|
|
87
|
+
if (!choice.includeAll && !approved.has(reference.path)) {
|
|
88
|
+
notApproved.set(reference.path, reference);
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
outsideFiles.push(reference);
|
|
92
|
+
return true;
|
|
93
|
+
});
|
|
94
|
+
return { staged, outsideFiles, notApproved: [...notApproved.values()] };
|
|
95
|
+
};
|
|
96
|
+
const first = run();
|
|
97
|
+
if (first.notApproved.length === 0 || !choice.ask || !await choice.ask(first.notApproved))
|
|
98
|
+
return first;
|
|
99
|
+
const paths = first.notApproved.map((reference) => reference.path);
|
|
100
|
+
for (const path of paths) approved.add(path);
|
|
101
|
+
try {
|
|
102
|
+
rememberOutsideFiles(projectDir, paths);
|
|
103
|
+
} catch (error) {
|
|
104
|
+
R.warn(`Could not remember the approval for next time: ${error.message}`);
|
|
105
|
+
}
|
|
106
|
+
return run();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export {
|
|
110
|
+
trackUploadLeftOut,
|
|
111
|
+
confirmOutsideFiles,
|
|
112
|
+
stageWithOutsideFileApproval
|
|
113
|
+
};
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
|
|
14
14
|
// src/utils/bundleWithLocalizedFonts.ts
|
|
15
15
|
async function bundleWithLocalizedFonts(projectDir, localizeFonts = localizeWithProducer, bundleOptions) {
|
|
16
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
16
|
+
const { bundleToSingleHtml } = await import("./compiler-65SP7M2P.js");
|
|
17
17
|
const html = await bundleToSingleHtml(projectDir, bundleOptions);
|
|
18
18
|
return localizeFonts(html);
|
|
19
19
|
}
|
|
20
20
|
async function loadFontInjector() {
|
|
21
21
|
try {
|
|
22
|
-
const { loadProducer } = await import("./producer-
|
|
22
|
+
const { loadProducer } = await import("./producer-LLE32VVO.js");
|
|
23
23
|
const mod = await loadProducer();
|
|
24
24
|
return mod.injectDeterministicFontFaces ?? null;
|
|
25
25
|
} catch {
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
hasPythonModules
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RF3DT4CS.js";
|
|
10
10
|
|
|
11
11
|
// src/audio/providers.ts
|
|
12
12
|
var KOKORO_MODULES = ["kokoro_onnx", "soundfile"];
|
|
@@ -24,8 +24,10 @@ var PREVIEW_IGNORED_DIRS = /* @__PURE__ */ new Set([
|
|
|
24
24
|
]);
|
|
25
25
|
var RENDER_TEMP_DIR = /^(work-[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}|hf-render|\..+\.hf-transaction)-[A-Za-z0-9]{6}$/;
|
|
26
26
|
var isProjectIgnoredDir = (name) => PREVIEW_IGNORED_DIRS.has(name) || RENDER_TEMP_DIR.test(name);
|
|
27
|
+
var RENDER_VARIABLES_FILE = ".hyperframes/render-variables.json";
|
|
27
28
|
|
|
28
29
|
export {
|
|
29
30
|
RENDER_TEMP_DIR,
|
|
30
|
-
isProjectIgnoredDir
|
|
31
|
+
isProjectIgnoredDir,
|
|
32
|
+
RENDER_VARIABLES_FILE
|
|
31
33
|
};
|
|
@@ -6,12 +6,12 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
originalPath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SDIQEPAR.js";
|
|
10
10
|
import {
|
|
11
11
|
executableIn,
|
|
12
12
|
pathEntries,
|
|
13
13
|
trustedPathDirs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VM2VBJRC.js";
|
|
15
15
|
|
|
16
16
|
// src/utils/projectCopyHint.ts
|
|
17
17
|
import { isAbsolute, relative, resolve, sep } from "path";
|
|
@@ -18,17 +18,17 @@ import {
|
|
|
18
18
|
} from "./chunk-ISN5GRYI.js";
|
|
19
19
|
import {
|
|
20
20
|
asNotice
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LMNCEQCC.js";
|
|
22
22
|
import {
|
|
23
23
|
isCI,
|
|
24
24
|
isUnattended
|
|
25
25
|
} from "./chunk-CPHQTXP5.js";
|
|
26
26
|
import {
|
|
27
27
|
VERSION
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-7DMES2F3.js";
|
|
29
29
|
import {
|
|
30
30
|
originalPath
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SDIQEPAR.js";
|
|
32
32
|
|
|
33
33
|
// src/utils/updateCheck.ts
|
|
34
34
|
import { existsSync as existsSync2, readFileSync as readFileSync3 } from "fs";
|
|
@@ -6,17 +6,17 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
writeCaptureFileSync
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VSS3OAZB.js";
|
|
10
10
|
import {
|
|
11
11
|
isOwnLoopbackHost
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LTXZLTXW.js";
|
|
13
13
|
import {
|
|
14
14
|
listenOnBrowserSafePort
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PJQVJSMG.js";
|
|
16
16
|
import {
|
|
17
17
|
isPrivateFileUnder,
|
|
18
18
|
isStudioPrivatePath
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PTGNUVCB.js";
|
|
20
20
|
|
|
21
21
|
// src/capture/localPage.ts
|
|
22
22
|
import {
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
isMediaFontOrImage
|
|
9
|
+
} from "./chunk-6P7FLYOR.js";
|
|
10
|
+
import {
|
|
11
|
+
changeReceivedRecordAsync,
|
|
12
|
+
contentHashAsync,
|
|
13
|
+
filesListedInFolder,
|
|
14
|
+
hashable,
|
|
15
|
+
readReceivedContent,
|
|
16
|
+
receivedLinesAtOrAbove
|
|
17
|
+
} from "./chunk-Z3BPDCRV.js";
|
|
18
|
+
import {
|
|
19
|
+
realFilePath,
|
|
20
|
+
resolveWithinProject
|
|
21
|
+
} from "./chunk-WTO3A7ET.js";
|
|
22
|
+
import {
|
|
23
|
+
realProjectRoot
|
|
24
|
+
} from "./chunk-3GF72UPC.js";
|
|
25
|
+
|
|
26
|
+
// src/utils/receivedRecordFollow.ts
|
|
27
|
+
import { existsSync, readdirSync, statSync } from "fs";
|
|
28
|
+
import { lstat } from "fs/promises";
|
|
29
|
+
import { basename, dirname, isAbsolute, join, relative, sep } from "path";
|
|
30
|
+
var swapCase = (path) => [...path].map((c) => c === c.toLowerCase() ? c.toUpperCase() : c.toLowerCase()).join("");
|
|
31
|
+
function caseInsensitive(folder) {
|
|
32
|
+
const swapped = swapCase(folder);
|
|
33
|
+
return swapped !== folder && existsSync(swapped);
|
|
34
|
+
}
|
|
35
|
+
function onDiskPath(path) {
|
|
36
|
+
const folder = realFilePath(dirname(path));
|
|
37
|
+
const name = basename(path);
|
|
38
|
+
const folded = name.normalize("NFC").toLowerCase();
|
|
39
|
+
try {
|
|
40
|
+
const names = readdirSync(folder);
|
|
41
|
+
const found = names.find((entry) => entry === name) ?? names.find((entry) => entry.normalize("NFC").toLowerCase() === folded);
|
|
42
|
+
return join(folder, found ?? name);
|
|
43
|
+
} catch {
|
|
44
|
+
return join(folder, name);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
var keyIn = (folder, path) => relative(folder, path).split(sep).join("/").normalize("NFC");
|
|
48
|
+
var leavesFolder = (key) => key === ".." || key.startsWith("../") || isAbsolute(key);
|
|
49
|
+
function entriesAt(folder, key) {
|
|
50
|
+
const fold = caseInsensitive(folder) ? (text) => text.normalize("NFC").toLowerCase() : (text) => text.normalize("NFC");
|
|
51
|
+
const at = fold(key);
|
|
52
|
+
return (entry) => fold(entry) === at || fold(entry).startsWith(`${at}/`);
|
|
53
|
+
}
|
|
54
|
+
var push = (map, folder, item) => map.set(folder, [...map.get(folder) ?? [], item]);
|
|
55
|
+
async function addLines(lines) {
|
|
56
|
+
const added = /* @__PURE__ */ new Map();
|
|
57
|
+
for (const [folder, wanted] of lines)
|
|
58
|
+
await changeReceivedRecordAsync(folder, (files) => {
|
|
59
|
+
const fresh = wanted.filter((line) => !files.has(line));
|
|
60
|
+
fresh.forEach((line) => files.add(line));
|
|
61
|
+
if (fresh.length > 0) added.set(folder, fresh);
|
|
62
|
+
return fresh.length > 0;
|
|
63
|
+
});
|
|
64
|
+
return added;
|
|
65
|
+
}
|
|
66
|
+
async function dropLines(lines) {
|
|
67
|
+
for (const [folder, stale] of lines)
|
|
68
|
+
await changeReceivedRecordAsync(
|
|
69
|
+
folder,
|
|
70
|
+
(files) => stale.map((line) => files.delete(line)).some(Boolean)
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
async function keepListedInFolder(projectDir, target) {
|
|
74
|
+
const root = realProjectRoot(projectDir);
|
|
75
|
+
const listed = await filesListedInFolder(target);
|
|
76
|
+
if (listed === null) return false;
|
|
77
|
+
const lines = listed.flatMap((path) => [keyIn(root, path), keyIn(root, realFilePath(path))]).filter((key) => !leavesFolder(key));
|
|
78
|
+
if (lines.length === 0) return true;
|
|
79
|
+
try {
|
|
80
|
+
await addLines(/* @__PURE__ */ new Map([[root, lines]]));
|
|
81
|
+
return true;
|
|
82
|
+
} catch {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async function leaving(line, path) {
|
|
87
|
+
const stat = await lstat(path).catch(() => null);
|
|
88
|
+
if (stat === null) return null;
|
|
89
|
+
if (isMediaFontOrImage(path) || stat.isFile() && !hashable(path, stat)) return { line };
|
|
90
|
+
const hash = await contentHashAsync(path);
|
|
91
|
+
return hash === null ? null : { line, hash };
|
|
92
|
+
}
|
|
93
|
+
async function plannedReceivedChange(projectDir, from, to) {
|
|
94
|
+
const root = realProjectRoot(projectDir);
|
|
95
|
+
const change = { root, leaving: /* @__PURE__ */ new Map(), arriving: /* @__PURE__ */ new Map() };
|
|
96
|
+
for (const { folder, lines } of receivedLinesAtOrAbove(dirname(from))) {
|
|
97
|
+
const fromKey = keyIn(folder, from);
|
|
98
|
+
const at = entriesAt(folder, fromKey);
|
|
99
|
+
for (const line of lines.filter(at)) {
|
|
100
|
+
const left = await leaving(line, join(folder, line));
|
|
101
|
+
if (left === null) continue;
|
|
102
|
+
push(change.leaving, folder, left);
|
|
103
|
+
if (to === void 0) continue;
|
|
104
|
+
const rest = line.normalize("NFC").slice(fromKey.length);
|
|
105
|
+
const toKey = keyIn(folder, to);
|
|
106
|
+
if (leavesFolder(toKey)) push(change.arriving, root, keyIn(root, to) + rest);
|
|
107
|
+
else push(change.arriving, folder, toKey + rest);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return change;
|
|
111
|
+
}
|
|
112
|
+
async function keepLeftContent(change) {
|
|
113
|
+
const hashes = [...change.leaving.values()].flat().flatMap((left) => left.hash ?? []);
|
|
114
|
+
if (hashes.length === 0) return true;
|
|
115
|
+
if (!readReceivedContent(change.root).readable) return false;
|
|
116
|
+
await changeReceivedRecordAsync(change.root, (files, content) => {
|
|
117
|
+
hashes.forEach((hash) => content.hashes.add(hash));
|
|
118
|
+
return files.size === 0;
|
|
119
|
+
});
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
async function recordReceivedArrivals(change) {
|
|
123
|
+
const contentKept = await keepLeftContent(change);
|
|
124
|
+
const arriving = await addLines(change.arriving);
|
|
125
|
+
const leaving2 = new Map(
|
|
126
|
+
[...change.leaving].map(([folder, lines]) => [
|
|
127
|
+
folder,
|
|
128
|
+
lines.filter((left) => contentKept || left.hash === void 0)
|
|
129
|
+
])
|
|
130
|
+
);
|
|
131
|
+
return { ...change, leaving: leaving2, arriving };
|
|
132
|
+
}
|
|
133
|
+
var dropReceivedLeavers = (change) => dropLines(
|
|
134
|
+
new Map([...change.leaving].map(([folder, lines]) => [folder, lines.map((left) => left.line)]))
|
|
135
|
+
);
|
|
136
|
+
var dropReceivedArrivals = (change) => dropLines(change.arriving);
|
|
137
|
+
async function relistReceivedContent(projectDir, paths) {
|
|
138
|
+
const root = realProjectRoot(projectDir);
|
|
139
|
+
const lines = [];
|
|
140
|
+
for (const path of paths) {
|
|
141
|
+
const records = receivedLinesAtOrAbove(dirname(path));
|
|
142
|
+
const listed = records.some(
|
|
143
|
+
({ folder, lines: listedLines }) => listedLines.some((line2) => line2.normalize("NFC") === keyIn(folder, path))
|
|
144
|
+
);
|
|
145
|
+
if (listed) continue;
|
|
146
|
+
const hashes = new Set(
|
|
147
|
+
records.flatMap(({ folder }) => [...readReceivedContent(folder).hashes])
|
|
148
|
+
);
|
|
149
|
+
if (hashes.size === 0) continue;
|
|
150
|
+
const hash = await contentHashAsync(path);
|
|
151
|
+
const line = keyIn(root, realFilePath(path));
|
|
152
|
+
if (hash !== null && hashes.has(hash) && !leavesFolder(line)) lines.push(line);
|
|
153
|
+
}
|
|
154
|
+
if (lines.length > 0) await addLines(/* @__PURE__ */ new Map([[root, lines]]));
|
|
155
|
+
}
|
|
156
|
+
function relistHistoryWrites(projectDir, entry) {
|
|
157
|
+
const written = (entry?.files ?? []).flatMap((file) => resolveWithinProject(projectDir, file.path) ?? []).filter((path) => statSync(path, { throwIfNoEntry: false })?.isFile() === true);
|
|
158
|
+
return relistReceivedContent(projectDir, written);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export {
|
|
162
|
+
onDiskPath,
|
|
163
|
+
keepListedInFolder,
|
|
164
|
+
plannedReceivedChange,
|
|
165
|
+
recordReceivedArrivals,
|
|
166
|
+
dropReceivedLeavers,
|
|
167
|
+
dropReceivedArrivals,
|
|
168
|
+
relistReceivedContent,
|
|
169
|
+
relistHistoryWrites
|
|
170
|
+
};
|