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
|
@@ -105,6 +105,87 @@ function buildChromeLaunchEnv(env = process.env) {
|
|
|
105
105
|
return chromeEnv;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
// ../core/dist/chromeSandbox.js
|
|
109
|
+
import { existsSync, readFileSync } from "fs";
|
|
110
|
+
var NO_SANDBOX_ARGS = ["--no-sandbox", "--disable-setuid-sandbox", "--no-zygote"];
|
|
111
|
+
var SANDBOX_START_FAILURE = /No usable sandbox|Running as root without --no-sandbox|Failed to move to new namespace/;
|
|
112
|
+
function readTrimmed(path) {
|
|
113
|
+
try {
|
|
114
|
+
return readFileSync(path, "utf8").trim();
|
|
115
|
+
} catch {
|
|
116
|
+
return void 0;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
var currentHost = () => ({
|
|
120
|
+
platform: process.platform,
|
|
121
|
+
env: process.env,
|
|
122
|
+
uid: process.getuid?.(),
|
|
123
|
+
exists: existsSync,
|
|
124
|
+
read: readTrimmed
|
|
125
|
+
});
|
|
126
|
+
var SERVERLESS_OR_ORCHESTRATED_ENV = [
|
|
127
|
+
"AWS_LAMBDA_FUNCTION_NAME",
|
|
128
|
+
"AWS_EXECUTION_ENV",
|
|
129
|
+
"K_SERVICE",
|
|
130
|
+
"CLOUD_RUN_JOB",
|
|
131
|
+
"KUBERNETES_SERVICE_HOST"
|
|
132
|
+
];
|
|
133
|
+
var CONTAINER_MARKERS = ["/.dockerenv", "/run/.containerenv"];
|
|
134
|
+
var USERNS_BLOCKED_SYSCTLS = [
|
|
135
|
+
["/proc/sys/kernel/apparmor_restrict_unprivileged_userns", "1"],
|
|
136
|
+
["/proc/sys/kernel/unprivileged_userns_clone", "0"]
|
|
137
|
+
];
|
|
138
|
+
function linuxCannotSandbox({ env, uid, exists, read }) {
|
|
139
|
+
return uid === 0 || SERVERLESS_OR_ORCHESTRATED_ENV.some((name) => !!env[name]) || CONTAINER_MARKERS.some((path) => exists(path)) || USERNS_BLOCKED_SYSCTLS.some(([path, blocked]) => read(path) === blocked);
|
|
140
|
+
}
|
|
141
|
+
function chromeSandboxEnabled(host = currentHost()) {
|
|
142
|
+
const override = host.env.HYPERFRAMES_CHROME_SANDBOX;
|
|
143
|
+
if (override === "0" || override === "1")
|
|
144
|
+
return override === "1";
|
|
145
|
+
return host.platform !== "linux" || !linuxCannotSandbox(host);
|
|
146
|
+
}
|
|
147
|
+
function chromeSandboxArgs(sandbox = chromeSandboxEnabled()) {
|
|
148
|
+
return sandbox ? [] : NO_SANDBOX_ARGS;
|
|
149
|
+
}
|
|
150
|
+
function withoutChromeSandbox(args) {
|
|
151
|
+
return [...args.filter((arg) => !NO_SANDBOX_ARGS.includes(arg)), ...NO_SANDBOX_ARGS];
|
|
152
|
+
}
|
|
153
|
+
var sandboxRefused = false;
|
|
154
|
+
var closedTargetRetries = 0;
|
|
155
|
+
var warned = false;
|
|
156
|
+
function chromeNamedSandboxFailure(error) {
|
|
157
|
+
return error instanceof Error && SANDBOX_START_FAILURE.test(error.message);
|
|
158
|
+
}
|
|
159
|
+
function sandboxStartFailure(error) {
|
|
160
|
+
return chromeNamedSandboxFailure(error) || error instanceof Error && error.name === "TargetCloseError";
|
|
161
|
+
}
|
|
162
|
+
function startsWithChromeSandboxFallback(args, starts2, platform = process.platform, env = process.env) {
|
|
163
|
+
if (starts2([...args]))
|
|
164
|
+
return true;
|
|
165
|
+
const sandboxed = platform === "linux" && !args.includes("--no-sandbox");
|
|
166
|
+
return sandboxed && env.HYPERFRAMES_CHROME_SANDBOX !== "1" && starts2(withoutChromeSandbox(args));
|
|
167
|
+
}
|
|
168
|
+
async function launchWithChromeSandboxFallback(args, launch, platform = process.platform, env = process.env) {
|
|
169
|
+
const sandboxed = platform === "linux" && !args.includes("--no-sandbox");
|
|
170
|
+
const sandboxRequired = env.HYPERFRAMES_CHROME_SANDBOX === "1";
|
|
171
|
+
if (sandboxed && sandboxRefused && !sandboxRequired)
|
|
172
|
+
return launch(withoutChromeSandbox(args));
|
|
173
|
+
try {
|
|
174
|
+
return await launch([...args]);
|
|
175
|
+
} catch (error) {
|
|
176
|
+
if (!sandboxed || sandboxRequired || !sandboxStartFailure(error))
|
|
177
|
+
throw error;
|
|
178
|
+
const browser = await launch(withoutChromeSandbox(args));
|
|
179
|
+
if (chromeNamedSandboxFailure(error) || ++closedTargetRetries >= 2)
|
|
180
|
+
sandboxRefused = true;
|
|
181
|
+
if (!warned) {
|
|
182
|
+
warned = true;
|
|
183
|
+
console.warn("[hyperframes] Chrome could not start with its sandbox on this host (user namespaces are likely restricted), so it runs without it. Set HYPERFRAMES_CHROME_SANDBOX=0 to skip the sandboxed attempt.");
|
|
184
|
+
}
|
|
185
|
+
return browser;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
108
189
|
// ../engine/src/services/chromeHostCeiling.ts
|
|
109
190
|
import { spawnSync } from "child_process";
|
|
110
191
|
import { createHash } from "crypto";
|
|
@@ -220,17 +301,20 @@ function compareBrowserVersionsDescending(left, right) {
|
|
|
220
301
|
}
|
|
221
302
|
var starts = /* @__PURE__ */ new Map();
|
|
222
303
|
var debug = debuglog("hyperframes:browser");
|
|
223
|
-
function shellStarts(binary, timeoutMs = 1e4) {
|
|
304
|
+
function shellStarts(binary, timeoutMs = 1e4, sandbox = chromeSandboxEnabled()) {
|
|
224
305
|
let answer = starts.get(binary);
|
|
225
306
|
if (answer === void 0) {
|
|
226
|
-
const probe = [
|
|
227
|
-
answer =
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
307
|
+
const probe = [...chromeSandboxArgs(sandbox), "--dump-dom", "about:blank"];
|
|
308
|
+
answer = startsWithChromeSandboxFallback(
|
|
309
|
+
probe,
|
|
310
|
+
(args) => spawnSync(binary, args, {
|
|
311
|
+
env: buildChromeLaunchEnv(),
|
|
312
|
+
stdio: "ignore",
|
|
313
|
+
timeout: timeoutMs,
|
|
314
|
+
killSignal: "SIGKILL",
|
|
315
|
+
windowsHide: true
|
|
316
|
+
})?.status === 0
|
|
317
|
+
);
|
|
234
318
|
if (!answer) debug("skipping %s: it did not start", binary);
|
|
235
319
|
starts.set(binary, answer);
|
|
236
320
|
}
|
|
@@ -263,6 +347,9 @@ function browserPathFromEnv(env = process.env) {
|
|
|
263
347
|
|
|
264
348
|
export {
|
|
265
349
|
buildChromeLaunchEnv,
|
|
350
|
+
chromeSandboxEnabled,
|
|
351
|
+
chromeSandboxArgs,
|
|
352
|
+
launchWithChromeSandboxFallback,
|
|
266
353
|
chromeMajorCeiling,
|
|
267
354
|
exceedsChromeCeiling,
|
|
268
355
|
managedChromeVersion,
|
|
@@ -0,0 +1,537 @@
|
|
|
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
|
+
isEnvOrGitPath,
|
|
9
|
+
isPrivateOutsideFile,
|
|
10
|
+
linksOutside
|
|
11
|
+
} from "./chunk-B5TLZC2D.js";
|
|
12
|
+
import {
|
|
13
|
+
readRecordTail,
|
|
14
|
+
recordFolder,
|
|
15
|
+
recordKind,
|
|
16
|
+
writeRecord
|
|
17
|
+
} from "./chunk-OW6MOJSR.js";
|
|
18
|
+
import {
|
|
19
|
+
isPrivateProjectFile,
|
|
20
|
+
realFilePath
|
|
21
|
+
} from "./chunk-WTO3A7ET.js";
|
|
22
|
+
import {
|
|
23
|
+
realProjectRoot,
|
|
24
|
+
realpath
|
|
25
|
+
} from "./chunk-3GF72UPC.js";
|
|
26
|
+
import {
|
|
27
|
+
isCredentialOrToolStatePath,
|
|
28
|
+
isStudioPrivatePath,
|
|
29
|
+
projectPathSegments
|
|
30
|
+
} from "./chunk-PTGNUVCB.js";
|
|
31
|
+
|
|
32
|
+
// src/utils/privateProjectFile.ts
|
|
33
|
+
import {
|
|
34
|
+
closeSync as closeSync2,
|
|
35
|
+
fstatSync as fstatSync2,
|
|
36
|
+
lstatSync,
|
|
37
|
+
openSync as openSync2,
|
|
38
|
+
readdirSync,
|
|
39
|
+
readFileSync as readFileSync2,
|
|
40
|
+
rmSync,
|
|
41
|
+
statSync
|
|
42
|
+
} from "fs";
|
|
43
|
+
import { readdir } from "fs/promises";
|
|
44
|
+
import { basename, dirname, isAbsolute, join as join2, relative, resolve, sep } from "path";
|
|
45
|
+
|
|
46
|
+
// src/utils/walkBudget.ts
|
|
47
|
+
var WALK_MAX_ENTRIES = 2e4;
|
|
48
|
+
var WALK_MAX_MS = 2e3;
|
|
49
|
+
function walkBudget() {
|
|
50
|
+
const deadline = Date.now() + WALK_MAX_MS;
|
|
51
|
+
let seen = 0;
|
|
52
|
+
return (entries) => {
|
|
53
|
+
seen += entries;
|
|
54
|
+
return seen <= WALK_MAX_ENTRIES && Date.now() <= deadline;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// src/utils/receivedContent.ts
|
|
59
|
+
import { createHash } from "crypto";
|
|
60
|
+
import { closeSync, constants, fstatSync, openSync, readFileSync } from "fs";
|
|
61
|
+
import { open } from "fs/promises";
|
|
62
|
+
import { extname, join } from "path";
|
|
63
|
+
var RECEIVED_CONTENT = "received-content.json";
|
|
64
|
+
var MAX_CONTENT_BYTES = 16 * 1024 * 1024;
|
|
65
|
+
var SHA256 = /^[0-9a-f]{64}$/;
|
|
66
|
+
var isObject = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
67
|
+
var receivedContentFile = (dir) => join(dir, ".hyperframes", RECEIVED_CONTENT);
|
|
68
|
+
function readReceivedContent(dir) {
|
|
69
|
+
const empty = (readable) => ({ hashes: /* @__PURE__ */ new Set(), saved: {}, readable });
|
|
70
|
+
const read = readRecordTail(dir, RECEIVED_CONTENT, MAX_CONTENT_BYTES);
|
|
71
|
+
if (read === null) return empty(recordKind(dir, RECEIVED_CONTENT) === "absent");
|
|
72
|
+
let saved;
|
|
73
|
+
try {
|
|
74
|
+
saved = read?.whole ? JSON.parse(read.text) : null;
|
|
75
|
+
} catch {
|
|
76
|
+
saved = null;
|
|
77
|
+
}
|
|
78
|
+
if (!isObject(saved)) return empty(false);
|
|
79
|
+
const listed = Array.isArray(saved.hashes) ? saved.hashes : [];
|
|
80
|
+
const hashes = listed.filter(
|
|
81
|
+
(hash) => typeof hash === "string" && SHA256.test(hash)
|
|
82
|
+
);
|
|
83
|
+
return { hashes: new Set(hashes), saved, readable: true };
|
|
84
|
+
}
|
|
85
|
+
function writeReceivedContent(dir, content) {
|
|
86
|
+
if (!content.readable) return false;
|
|
87
|
+
const json = { ...content.saved, hashes: [...content.hashes].sort() };
|
|
88
|
+
return writeRecord(dir, RECEIVED_CONTENT, `${JSON.stringify(json)}
|
|
89
|
+
`);
|
|
90
|
+
}
|
|
91
|
+
var sha256 = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
92
|
+
var MAX_HASHED_BYTES = 16 * 1024 * 1024;
|
|
93
|
+
var READ_PLAIN = constants.O_RDONLY | (constants.O_NOFOLLOW ?? 0) | (constants.O_NONBLOCK ?? 0);
|
|
94
|
+
var hashable = (path, stat) => stat.isFile() && (stat.size <= MAX_HASHED_BYTES || isCodeFile(path));
|
|
95
|
+
function contentHash(path) {
|
|
96
|
+
let fd;
|
|
97
|
+
try {
|
|
98
|
+
fd = openSync(path, READ_PLAIN);
|
|
99
|
+
} catch {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
try {
|
|
103
|
+
return hashable(path, fstatSync(fd)) ? sha256(readFileSync(fd)) : null;
|
|
104
|
+
} catch {
|
|
105
|
+
return null;
|
|
106
|
+
} finally {
|
|
107
|
+
closeSync(fd);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
async function contentHashAsync(path) {
|
|
111
|
+
let handle;
|
|
112
|
+
try {
|
|
113
|
+
handle = await open(path, READ_PLAIN);
|
|
114
|
+
} catch {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
try {
|
|
118
|
+
return hashable(path, await handle.stat()) ? sha256(await handle.readFile()) : null;
|
|
119
|
+
} catch {
|
|
120
|
+
return null;
|
|
121
|
+
} finally {
|
|
122
|
+
await handle.close();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
var CODE_FILE = /* @__PURE__ */ new Set([".html", ".htm", ".xhtml", ".css", ".js", ".mjs", ".cjs", ".svg"]);
|
|
126
|
+
var isCodeFile = (path) => CODE_FILE.has(extname(path).toLowerCase());
|
|
127
|
+
|
|
128
|
+
// src/utils/privateProjectFile.ts
|
|
129
|
+
function linksToPrivateOutsideFile(projectDir, filePath) {
|
|
130
|
+
return linksOutside(projectDir, filePath) && isPrivateOutsideFile(projectDir, filePath);
|
|
131
|
+
}
|
|
132
|
+
var RECEIVED_RECORD = join2(".hyperframes", "received-files.json");
|
|
133
|
+
var RECEIVED_RECORD_LOCK = `${RECEIVED_RECORD}.lock`;
|
|
134
|
+
var LOCK_WAIT_MS = 2e3;
|
|
135
|
+
var LOCK_STALE_MS = 1e4;
|
|
136
|
+
var LOCK_CLOCK_SLACK_MS = 1e3;
|
|
137
|
+
function recordKind2(dir) {
|
|
138
|
+
const path = join2(dir, RECEIVED_RECORD);
|
|
139
|
+
let found;
|
|
140
|
+
try {
|
|
141
|
+
found = lstatSync(path, { throwIfNoEntry: false });
|
|
142
|
+
} catch (error) {
|
|
143
|
+
return error.code === "ENOTDIR" ? "absent" : "unknown";
|
|
144
|
+
}
|
|
145
|
+
if (!found) return "absent";
|
|
146
|
+
try {
|
|
147
|
+
return statSync(path).isFile() ? "file" : "other";
|
|
148
|
+
} catch {
|
|
149
|
+
return "other";
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
var RECEIVED_STATE_ENV = "HYPERFRAMES_RECEIVED_STATE_FILE";
|
|
153
|
+
var hostStatesCache;
|
|
154
|
+
var strongest = (a, b) => a === "all" ? a : b;
|
|
155
|
+
function hostEntry(value) {
|
|
156
|
+
const { path, received, dev, ino } = value ?? {};
|
|
157
|
+
if (typeof path !== "string" || !isAbsolute(path)) throw new Error("path is not absolute");
|
|
158
|
+
if (received !== "expected" && received !== "all") throw new Error("unknown state");
|
|
159
|
+
return {
|
|
160
|
+
path,
|
|
161
|
+
received,
|
|
162
|
+
...typeof dev === "string" && typeof ino === "string" && ino !== "0" ? { dev, ino } : {}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
function parseHostStates(text) {
|
|
166
|
+
const projects = JSON.parse(text)?.projects;
|
|
167
|
+
if (!Array.isArray(projects)) throw new Error("projects is not a list");
|
|
168
|
+
const states = { unreadable: false, byPath: /* @__PURE__ */ new Map(), byIdentity: /* @__PURE__ */ new Map() };
|
|
169
|
+
for (const value of projects) {
|
|
170
|
+
const { path, received, dev, ino } = hostEntry(value);
|
|
171
|
+
const key = walkStart(path);
|
|
172
|
+
states.byPath.set(key, strongest(states.byPath.get(key), received));
|
|
173
|
+
if (dev !== void 0 && ino !== void 0) {
|
|
174
|
+
const identity = `${dev}:${ino}`;
|
|
175
|
+
states.byIdentity.set(identity, strongest(states.byIdentity.get(identity), received));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return states;
|
|
179
|
+
}
|
|
180
|
+
function hostStates() {
|
|
181
|
+
const file = process.env[RECEIVED_STATE_ENV];
|
|
182
|
+
if (!file) return null;
|
|
183
|
+
try {
|
|
184
|
+
const handle = openSync2(file, "r");
|
|
185
|
+
try {
|
|
186
|
+
const stat = fstatSync2(handle, { bigint: true });
|
|
187
|
+
const key = `${file}\0${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeNs}:${stat.ctimeNs}`;
|
|
188
|
+
if (hostStatesCache?.key !== key)
|
|
189
|
+
hostStatesCache = { key, states: parseHostStates(readFileSync2(handle, "utf-8")) };
|
|
190
|
+
return hostStatesCache.states;
|
|
191
|
+
} finally {
|
|
192
|
+
closeSync2(handle);
|
|
193
|
+
}
|
|
194
|
+
} catch {
|
|
195
|
+
return { unreadable: true, byPath: /* @__PURE__ */ new Map(), byIdentity: /* @__PURE__ */ new Map() };
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function hostState(dir, states = hostStates()) {
|
|
199
|
+
if (!states) return void 0;
|
|
200
|
+
if (states.unreadable) return "all";
|
|
201
|
+
const named = states.byPath.get(dir);
|
|
202
|
+
if (named || states.byIdentity.size === 0) return named;
|
|
203
|
+
const identity = fileIdentity(dir);
|
|
204
|
+
return identity === null ? void 0 : states.byIdentity.get(identity);
|
|
205
|
+
}
|
|
206
|
+
function allReceivedAtOrAbove(start, states) {
|
|
207
|
+
for (let dir = start; ; dir = dirname(dir)) {
|
|
208
|
+
if (hostState(dir, states) === "all") return true;
|
|
209
|
+
if (dirname(dir) === dir) return false;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function allReceivedAround(start) {
|
|
213
|
+
const states = hostStates();
|
|
214
|
+
if (!states) return false;
|
|
215
|
+
if (states.unreadable) return true;
|
|
216
|
+
const overlaps = [...states.byPath].some(
|
|
217
|
+
([path, state]) => state === "all" && (isAtOrUnder(path, start) || isAtOrUnder(start, path))
|
|
218
|
+
);
|
|
219
|
+
return overlaps || allReceivedAtOrAbove(start, states);
|
|
220
|
+
}
|
|
221
|
+
function readRecord(dir, ownFolder) {
|
|
222
|
+
const kind = recordKind2(dir);
|
|
223
|
+
if (kind === "absent" && hostState(dir) !== void 0) return { listed: void 0 };
|
|
224
|
+
if (kind === "absent" || kind === "unknown" && !ownFolder) return null;
|
|
225
|
+
if (kind !== "file") return { listed: void 0 };
|
|
226
|
+
try {
|
|
227
|
+
return { listed: JSON.parse(readFileSync2(join2(dir, RECEIVED_RECORD), "utf-8")).files };
|
|
228
|
+
} catch {
|
|
229
|
+
return { listed: void 0 };
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
function sleepSync(ms) {
|
|
233
|
+
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
234
|
+
}
|
|
235
|
+
var sleep = (ms) => new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
236
|
+
function tryRecordLock(lock, deadline) {
|
|
237
|
+
try {
|
|
238
|
+
closeSync2(openSync2(lock, "wx"));
|
|
239
|
+
return "taken";
|
|
240
|
+
} catch (error) {
|
|
241
|
+
if (error.code !== "EEXIST") throw error;
|
|
242
|
+
}
|
|
243
|
+
const heldFor = Date.now() - (statSync(lock, { throwIfNoEntry: false })?.mtimeMs ?? Date.now());
|
|
244
|
+
if (heldFor > LOCK_STALE_MS || heldFor < -LOCK_CLOCK_SLACK_MS) rmSync(lock, { force: true });
|
|
245
|
+
else if (Date.now() >= deadline)
|
|
246
|
+
throw new Error(`Another program is changing ${RECEIVED_RECORD}; try again.`);
|
|
247
|
+
return "wait";
|
|
248
|
+
}
|
|
249
|
+
function takeRecordLock(lock) {
|
|
250
|
+
const deadline = Date.now() + LOCK_WAIT_MS;
|
|
251
|
+
while (tryRecordLock(lock, deadline) === "wait") sleepSync(25);
|
|
252
|
+
}
|
|
253
|
+
async function takeRecordLockAsync(lock) {
|
|
254
|
+
const deadline = Date.now() + LOCK_WAIT_MS;
|
|
255
|
+
while (tryRecordLock(lock, deadline) === "wait") await sleep(25);
|
|
256
|
+
}
|
|
257
|
+
function recordLock(projectDir) {
|
|
258
|
+
const root = realProjectRoot(projectDir);
|
|
259
|
+
if (!recordFolder(root, ""))
|
|
260
|
+
throw new Error(
|
|
261
|
+
`${join2(root, ".hyperframes")} is a link or not a folder; remove it and try again.`
|
|
262
|
+
);
|
|
263
|
+
return { root, lock: join2(root, RECEIVED_RECORD_LOCK) };
|
|
264
|
+
}
|
|
265
|
+
function applyRecordChange(root, change) {
|
|
266
|
+
const record = readRecord(root, true);
|
|
267
|
+
if (record && !Array.isArray(record.listed)) return;
|
|
268
|
+
const files = new Set((record?.listed ?? []).map(String));
|
|
269
|
+
const content = readReceivedContent(root);
|
|
270
|
+
const known = content.hashes.size;
|
|
271
|
+
const changed = change(files, content);
|
|
272
|
+
const json = `${JSON.stringify({ files: [...files].sort() })}
|
|
273
|
+
`;
|
|
274
|
+
if (changed && !writeRecord(root, basename(RECEIVED_RECORD), json))
|
|
275
|
+
throw new Error(`Could not write ${join2(root, RECEIVED_RECORD)}.`);
|
|
276
|
+
if (content.hashes.size > known && !writeReceivedContent(root, content))
|
|
277
|
+
throw new Error(`Could not write the received content beside ${join2(root, RECEIVED_RECORD)}.`);
|
|
278
|
+
}
|
|
279
|
+
function changeReceivedRecord(projectDir, change) {
|
|
280
|
+
const { root, lock } = recordLock(projectDir);
|
|
281
|
+
takeRecordLock(lock);
|
|
282
|
+
try {
|
|
283
|
+
applyRecordChange(root, change);
|
|
284
|
+
} finally {
|
|
285
|
+
rmSync(lock, { force: true });
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
async function changeReceivedRecordAsync(projectDir, change) {
|
|
289
|
+
const { root, lock } = recordLock(projectDir);
|
|
290
|
+
await takeRecordLockAsync(lock);
|
|
291
|
+
try {
|
|
292
|
+
applyRecordChange(root, change);
|
|
293
|
+
} finally {
|
|
294
|
+
rmSync(lock, { force: true });
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
function recordReceivedFiles(root, paths) {
|
|
298
|
+
const added = [];
|
|
299
|
+
if (paths.length === 0) return added;
|
|
300
|
+
changeReceivedRecord(root, (files) => {
|
|
301
|
+
for (const path of paths.map((one) => one.normalize("NFC"))) {
|
|
302
|
+
if (!files.has(path)) added.push(path);
|
|
303
|
+
files.add(path);
|
|
304
|
+
}
|
|
305
|
+
return added.length > 0;
|
|
306
|
+
});
|
|
307
|
+
return added;
|
|
308
|
+
}
|
|
309
|
+
function forgetReceivedFiles(root, paths) {
|
|
310
|
+
if (paths.length === 0) return;
|
|
311
|
+
changeReceivedRecord(root, (files) => paths.map((path) => files.delete(path)).some(Boolean));
|
|
312
|
+
}
|
|
313
|
+
var receivedLinesAtOrAbove = (dir) => receivedRecordsAtOrAbove(dir).flatMap(
|
|
314
|
+
(record) => Array.isArray(record.listed) ? [{ folder: record.root, lines: record.listed.map(String) }] : []
|
|
315
|
+
);
|
|
316
|
+
var listedPaths = (record) => Array.isArray(record.listed) ? record.listed.map((entry) => join2(record.root, String(entry))) : [];
|
|
317
|
+
var isAtOrUnder = (path, folder) => {
|
|
318
|
+
const inside = relative(folder, path);
|
|
319
|
+
return inside === "" || inside !== ".." && !inside.startsWith(`..${sep}`) && !isAbsolute(inside);
|
|
320
|
+
};
|
|
321
|
+
async function filesListedInFolder(target) {
|
|
322
|
+
if (!statSync(target, { throwIfNoEntry: false })?.isDirectory()) return [];
|
|
323
|
+
const own = readRecord(target, true);
|
|
324
|
+
const below = await receivedRecordsBelowAsync(target);
|
|
325
|
+
if (below === null) return null;
|
|
326
|
+
const records = own ? [nestedRecord(target, target, own), ...below] : below;
|
|
327
|
+
return records.flatMap(listedPaths);
|
|
328
|
+
}
|
|
329
|
+
function receivedRecordsAtOrAbove(start) {
|
|
330
|
+
const records = [];
|
|
331
|
+
for (let dir = start; ; ) {
|
|
332
|
+
const record = readRecord(dir, dir === start);
|
|
333
|
+
if (record)
|
|
334
|
+
records.push({
|
|
335
|
+
file: join2(dir, RECEIVED_RECORD),
|
|
336
|
+
root: dir,
|
|
337
|
+
projectDirFromRoot: relative(dir, start).split(sep).join("/"),
|
|
338
|
+
...record
|
|
339
|
+
});
|
|
340
|
+
const parent = dirname(dir);
|
|
341
|
+
if (parent === dir) return records;
|
|
342
|
+
dir = parent;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function nestedRecord(start, dir, record) {
|
|
346
|
+
const folder = relative(start, dir).split(sep).join("/");
|
|
347
|
+
const listed = Array.isArray(record.listed) ? record.listed.map((entry) => folder ? `${folder}/${String(entry)}` : String(entry)) : void 0;
|
|
348
|
+
return { file: join2(dir, RECEIVED_RECORD), root: start, projectDirFromRoot: "", listed };
|
|
349
|
+
}
|
|
350
|
+
var GIT_AND_PACKAGE_FOLDERS = /* @__PURE__ */ new Set([".git", "node_modules"]);
|
|
351
|
+
function mayHoldLoadedFiles(start, folder) {
|
|
352
|
+
const rel = relative(start, folder).split(sep).join("/");
|
|
353
|
+
const segments = projectPathSegments(rel);
|
|
354
|
+
if (GIT_AND_PACKAGE_FOLDERS.has(segments.at(-1) ?? "")) return false;
|
|
355
|
+
if (!segments.includes(".hyperframes")) return true;
|
|
356
|
+
return segments.length === 1 || !isStudioPrivatePath(rel);
|
|
357
|
+
}
|
|
358
|
+
var subfolders = (start, dir, entries) => entries.filter((entry) => entry.isDirectory()).map((entry) => join2(dir, entry.name)).filter((folder) => mayHoldLoadedFiles(start, folder));
|
|
359
|
+
function receivedRecordsBelow(start) {
|
|
360
|
+
const withinBudget = walkBudget();
|
|
361
|
+
const records = [];
|
|
362
|
+
const pending = [start];
|
|
363
|
+
for (let dir = pending.pop(); dir !== void 0; dir = pending.pop()) {
|
|
364
|
+
let folders;
|
|
365
|
+
try {
|
|
366
|
+
folders = subfolders(start, dir, readdirSync(dir, { withFileTypes: true }));
|
|
367
|
+
} catch {
|
|
368
|
+
return null;
|
|
369
|
+
}
|
|
370
|
+
if (!withinBudget(folders.length)) return null;
|
|
371
|
+
const record = dir === start ? null : readRecord(dir, true);
|
|
372
|
+
if (record) records.push(nestedRecord(start, dir, record));
|
|
373
|
+
pending.push(...folders);
|
|
374
|
+
}
|
|
375
|
+
return records;
|
|
376
|
+
}
|
|
377
|
+
async function receivedRecordsBelowAsync(start) {
|
|
378
|
+
const records = [];
|
|
379
|
+
const pending = [start];
|
|
380
|
+
for (let dir = pending.pop(); dir !== void 0; dir = pending.pop()) {
|
|
381
|
+
let folders;
|
|
382
|
+
try {
|
|
383
|
+
folders = subfolders(start, dir, await readdir(dir, { withFileTypes: true }));
|
|
384
|
+
} catch {
|
|
385
|
+
return null;
|
|
386
|
+
}
|
|
387
|
+
const record = dir === start ? null : readRecord(dir, true);
|
|
388
|
+
if (record) records.push(nestedRecord(start, dir, record));
|
|
389
|
+
pending.push(...folders);
|
|
390
|
+
}
|
|
391
|
+
return records;
|
|
392
|
+
}
|
|
393
|
+
function walkStart(projectDir) {
|
|
394
|
+
try {
|
|
395
|
+
return realpath(projectDir);
|
|
396
|
+
} catch {
|
|
397
|
+
return resolve(projectDir);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
function receivedRecords(projectDir) {
|
|
401
|
+
const start = walkStart(projectDir);
|
|
402
|
+
const below = receivedRecordsBelow(start);
|
|
403
|
+
if (!below) return null;
|
|
404
|
+
const records = [...receivedRecordsAtOrAbove(start), ...below];
|
|
405
|
+
if (allReceivedAround(start))
|
|
406
|
+
records.push({
|
|
407
|
+
file: process.env[RECEIVED_STATE_ENV] ?? "",
|
|
408
|
+
root: start,
|
|
409
|
+
projectDirFromRoot: "",
|
|
410
|
+
listed: void 0
|
|
411
|
+
});
|
|
412
|
+
return records;
|
|
413
|
+
}
|
|
414
|
+
function fileIdentity(path) {
|
|
415
|
+
try {
|
|
416
|
+
const stat = lstatSync(path, { bigint: true });
|
|
417
|
+
return stat.ino === 0n ? null : `${stat.dev}:${stat.ino}`;
|
|
418
|
+
} catch {
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
function listedIn(record, projectDir, start) {
|
|
423
|
+
const listed = record.listed.map((path) => String(path).normalize("NFC"));
|
|
424
|
+
const files = new Set(listed);
|
|
425
|
+
const keyOf = (path) => (record.projectDirFromRoot ? `${record.projectDirFromRoot}/${path}` : path).normalize("NFC");
|
|
426
|
+
let listedOnDisk;
|
|
427
|
+
const sameFileAsListed = (path) => {
|
|
428
|
+
listedOnDisk ??= new Set(
|
|
429
|
+
listed.map((entry) => join2(record.root, entry)).filter((file) => isAtOrUnder(file, start)).flatMap((file) => fileIdentity(file) ?? [])
|
|
430
|
+
);
|
|
431
|
+
const identity = fileIdentity(join2(projectDir, path));
|
|
432
|
+
return identity !== null && listedOnDisk.has(identity);
|
|
433
|
+
};
|
|
434
|
+
return (path) => files.has(keyOf(path)) || sameFileAsListed(path);
|
|
435
|
+
}
|
|
436
|
+
function onDisk(path) {
|
|
437
|
+
try {
|
|
438
|
+
return lstatSync(path, { throwIfNoEntry: false }) !== void 0;
|
|
439
|
+
} catch {
|
|
440
|
+
return false;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
var contentFolder = (record) => dirname(dirname(record.file));
|
|
444
|
+
function receivedContentOf(records) {
|
|
445
|
+
const hashes = [];
|
|
446
|
+
for (const folder of new Set(records.map(contentFolder))) {
|
|
447
|
+
const content = readReceivedContent(folder);
|
|
448
|
+
if (!content.readable) return { unreadable: receivedContentFile(folder) };
|
|
449
|
+
hashes.push(...content.hashes);
|
|
450
|
+
}
|
|
451
|
+
return { hashes };
|
|
452
|
+
}
|
|
453
|
+
function holdsReceivedContent(projectDir, hashes) {
|
|
454
|
+
const seen = /* @__PURE__ */ new Map();
|
|
455
|
+
return (path) => {
|
|
456
|
+
if (hashes.size === 0) return false;
|
|
457
|
+
if (!seen.has(path)) seen.set(path, hashes.has(contentHash(join2(projectDir, path)) ?? ""));
|
|
458
|
+
return seen.get(path) === true;
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
function receivedFiles(projectDir) {
|
|
462
|
+
const records = receivedRecords(projectDir);
|
|
463
|
+
if (records === null) return Object.assign(() => true, { unchecked: true });
|
|
464
|
+
if (records.some((record) => !Array.isArray(record.listed))) return () => true;
|
|
465
|
+
const content = receivedContentOf(records);
|
|
466
|
+
if ("unreadable" in content) return () => true;
|
|
467
|
+
const start = walkStart(projectDir);
|
|
468
|
+
const listedInProject = records.flatMap(listedPaths).filter((path) => isAtOrUnder(path, start));
|
|
469
|
+
const goneFile = listedInProject.find((path) => !onDisk(path));
|
|
470
|
+
const mayBeGoneFile = (path) => goneFile !== void 0 && (isCodeFile(path) || linksOutside(projectDir, join2(projectDir, path)));
|
|
471
|
+
const sameContent = holdsReceivedContent(projectDir, new Set(content.hashes));
|
|
472
|
+
const listedInAnyRecord = records.map((record) => listedIn(record, projectDir, start));
|
|
473
|
+
const received = (path) => listedInAnyRecord.some((listed) => listed(path)) || mayBeGoneFile(path) || sameContent(path);
|
|
474
|
+
const gone = goneFile && relative(start, goneFile).split(sep).join("/");
|
|
475
|
+
return Object.assign(received, gone === void 0 ? {} : { gone });
|
|
476
|
+
}
|
|
477
|
+
function listedUnder(record) {
|
|
478
|
+
const entries = record.listed.map(String);
|
|
479
|
+
const prefix = record.projectDirFromRoot ? `${record.projectDirFromRoot}/`.normalize("NFC") : "";
|
|
480
|
+
const folder = prefix ? fileIdentity(join2(record.root, record.projectDirFromRoot)) : null;
|
|
481
|
+
const identities = /* @__PURE__ */ new Map();
|
|
482
|
+
const inFolderOnDisk = (path) => {
|
|
483
|
+
for (let dir = dirname(path); folder && dir.length > record.root.length; dir = dirname(dir)) {
|
|
484
|
+
if (!identities.has(dir)) identities.set(dir, fileIdentity(dir));
|
|
485
|
+
if (identities.get(dir) === folder) return true;
|
|
486
|
+
}
|
|
487
|
+
return false;
|
|
488
|
+
};
|
|
489
|
+
return entries.filter(
|
|
490
|
+
(entry) => entry.normalize("NFC").startsWith(prefix) || inFolderOnDisk(join2(record.root, entry))
|
|
491
|
+
).map((entry) => join2(record.root, entry));
|
|
492
|
+
}
|
|
493
|
+
function receivedRecordStatus(projectDir) {
|
|
494
|
+
const records = receivedRecords(projectDir);
|
|
495
|
+
if (records === null) return "unchecked";
|
|
496
|
+
const [nearest] = records;
|
|
497
|
+
if (!nearest) return null;
|
|
498
|
+
const unreadable = records.find((record) => !Array.isArray(record.listed));
|
|
499
|
+
if (unreadable) return { path: unreadable.file, listed: null, hashes: [] };
|
|
500
|
+
const content = receivedContentOf(records);
|
|
501
|
+
if ("unreadable" in content) return { path: content.unreadable, listed: null, hashes: [] };
|
|
502
|
+
return { path: nearest.file, listed: records.flatMap(listedUnder), hashes: content.hashes };
|
|
503
|
+
}
|
|
504
|
+
var leavesProject = (path) => isAbsolute(path) || path.split(/[\\/]/)[0] === "..";
|
|
505
|
+
var projectRelatives = (projectDir, filePath) => [
|
|
506
|
+
relative(projectDir, filePath),
|
|
507
|
+
relative(realFilePath(projectDir), realFilePath(filePath))
|
|
508
|
+
];
|
|
509
|
+
function isPrivateCompositionFile(projectDir, filePath) {
|
|
510
|
+
const paths = projectRelatives(projectDir, filePath);
|
|
511
|
+
return paths.some(isEnvOrGitPath) || paths.some((path) => !leavesProject(path) && isCredentialOrToolStatePath(path)) || isPrivateProjectFile(projectDir, filePath);
|
|
512
|
+
}
|
|
513
|
+
function isHiddenProjectFile(projectDir, filePath) {
|
|
514
|
+
return projectRelatives(projectDir, filePath).some(
|
|
515
|
+
(path) => path.split(/[\\/]/).some((segment) => segment.startsWith(".") && segment !== "..")
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export {
|
|
520
|
+
walkBudget,
|
|
521
|
+
readReceivedContent,
|
|
522
|
+
hashable,
|
|
523
|
+
contentHash,
|
|
524
|
+
contentHashAsync,
|
|
525
|
+
linksToPrivateOutsideFile,
|
|
526
|
+
RECEIVED_STATE_ENV,
|
|
527
|
+
changeReceivedRecordAsync,
|
|
528
|
+
recordReceivedFiles,
|
|
529
|
+
forgetReceivedFiles,
|
|
530
|
+
receivedLinesAtOrAbove,
|
|
531
|
+
filesListedInFolder,
|
|
532
|
+
mayHoldLoadedFiles,
|
|
533
|
+
receivedFiles,
|
|
534
|
+
receivedRecordStatus,
|
|
535
|
+
isPrivateCompositionFile,
|
|
536
|
+
isHiddenProjectFile
|
|
537
|
+
};
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PQ2OPPGP.js";
|
|
10
10
|
import {
|
|
11
11
|
failUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-U7M4SZUB.js";
|
|
13
13
|
|
|
14
14
|
// src/cloud/parsing.ts
|
|
15
15
|
var INTEGER_RE = /^-?\d+$/;
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
findFFmpeg,
|
|
9
9
|
findFFprobe,
|
|
10
10
|
getFFmpegInstallHint
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CRZ7FUMI.js";
|
|
12
12
|
import {
|
|
13
13
|
recordFolder
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OW6MOJSR.js";
|
|
15
15
|
import {
|
|
16
16
|
createStagingDir,
|
|
17
17
|
renameWithRetry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LYTELQL2.js";
|
|
19
19
|
|
|
20
20
|
// src/measure/media.ts
|
|
21
21
|
import { execFileSync } from "child_process";
|