hyperframes 0.9.29 → 0.9.31
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/dist/{add-BRXFSBYO.js → add-53MR45WI.js} +14 -14
- package/dist/{agentPromptGenerator-NJL6ZJQA.js → agentPromptGenerator-NXF7237H.js} +5 -5
- package/dist/{animatedGifPrep-AVZAMI2D.js → animatedGifPrep-XF6VJW22.js} +5 -5
- package/dist/api.js +34 -34
- package/dist/{asset-FEAC2U74.js → asset-Y3YAVXJ3.js} +5 -5
- package/dist/{assetCataloger-WGNEAI5A.js → assetCataloger-DRLH2VFH.js} +6 -6
- package/dist/{audio-PBKCPYW2.js → audio-TRDZQ2NW.js} +19 -19
- package/dist/{auth-IPHKPGNV.js → auth-MN66MWGN.js} +6 -6
- package/dist/{autoUpdate-4HUTYRYX.js → autoUpdate-KAIIQJBV.js} +4 -4
- package/dist/{avatars-U2XLC3OS.js → avatars-F2COSI7P.js} +14 -14
- package/dist/{backgroundChecks-4Q4R56DT.js → backgroundChecks-36UG4V5N.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-AL6DO5IA.js → batchRender-CI6OFGS5.js} +6 -6
- package/dist/{beats-VS4P6KKZ.js → beats-GBCNB763.js} +11 -11
- package/dist/{benchmark-MGDPACXB.js → benchmark-AHHMJBDN.js} +13 -13
- package/dist/{billing-JLASHFQM.js → billing-HME22C5A.js} +15 -15
- package/dist/{browser-FU4TZSMT.js → browser-VZTIOZI3.js} +10 -10
- package/dist/{bundleWithLocalizedFonts-B2XFORNZ.js → bundleWithLocalizedFonts-XLFSHMET.js} +3 -3
- package/dist/{capture-LL7WE2S7.js → capture-NU2ZIXJB.js} +5 -5
- package/dist/{capture-CFESIHJR.js → capture-ZILHWIOF.js} +13 -12
- package/dist/{captureCompositionFrame-DABFEOQO.js → captureCompositionFrame-ZWVKRKLL.js} +15 -14
- package/dist/{catalog-U6CHLXTI.js → catalog-NVEGPXGE.js} +15 -15
- package/dist/{catch-up-DMREF334.js → catch-up-W7ST5JSZ.js} +10 -10
- package/dist/{check-ILJC6WYD.js → check-BZ652RYH.js} +43 -42
- package/dist/{checkAudio-MWSP2436.js → checkAudio-5NVSRMGL.js} +10 -10
- package/dist/{checkBrowser-HC3LYH6H.js → checkBrowser-YN454IBU.js} +36 -35
- package/dist/{chunk-VWEELCAJ.js → chunk-22PWPQVX.js} +3 -3
- package/dist/{chunk-U46YQL7E.js → chunk-2B2IMLUQ.js} +1 -1
- package/dist/{chunk-NSQLSL42.js → chunk-3DIYMOES.js} +4 -4
- package/dist/{chunk-IQKMIYLG.js → chunk-3OA75WJW.js} +2 -2
- package/dist/{chunk-4TPTB6PY.js → chunk-3SZ43GZG.js} +5 -5
- package/dist/{chunk-SCNC7YPB.js → chunk-3YNJAXA5.js} +1 -1
- package/dist/{chunk-IXMO4RXK.js → chunk-44VR2CWT.js} +4 -4
- package/dist/{chunk-V4ZFL2E2.js → chunk-4HSE3FWO.js} +3 -3
- package/dist/{chunk-6LCIO2YY.js → chunk-56MGA4FM.js} +1 -1
- package/dist/{chunk-7TION72L.js → chunk-5AMGFTMU.js} +15 -15
- package/dist/{chunk-OY4YSQBK.js → chunk-5BIMSULZ.js} +3 -3
- package/dist/{chunk-XGGEOBH2.js → chunk-5HVQV4H4.js} +2 -2
- package/dist/{chunk-4TCEF2I7.js → chunk-5LLDGJGZ.js} +1 -1
- package/dist/{chunk-YXNRWPF5.js → chunk-5Q3TTLGB.js} +23 -23
- package/dist/{chunk-VXWASGGT.js → chunk-5YYGPTBP.js} +3 -3
- package/dist/{chunk-J7PDBGQM.js → chunk-6VNDEMSP.js} +2 -2
- package/dist/{chunk-L6OXEDJQ.js → chunk-6WHOI52Z.js} +8 -8
- package/dist/{chunk-M457GQGR.js → chunk-7NDF2MO3.js} +1 -1
- package/dist/{chunk-5RLMHG3E.js → chunk-7XZS4PNM.js} +1 -1
- package/dist/{chunk-UPR5TMLG.js → chunk-AJCFMDFQ.js} +1 -1
- package/dist/{chunk-AOPNJEQC.js → chunk-AQJA7TAQ.js} +2 -2
- package/dist/{chunk-F5QBIIFT.js → chunk-AWD2MWWL.js} +1 -1
- package/dist/{chunk-USOP5XTT.js → chunk-AWL5M7BX.js} +3 -3
- package/dist/{chunk-ZY3N64NC.js → chunk-B7H5RCKP.js} +3 -3
- package/dist/{chunk-PGZSYDLZ.js → chunk-BCMR6DE4.js} +1 -1
- package/dist/{chunk-NFUXYBOR.js → chunk-BJSUKOWW.js} +1 -1
- package/dist/{chunk-MVJ7AX6W.js → chunk-C4U6FRZH.js} +1 -1
- package/dist/{chunk-TM5H5ZY3.js → chunk-CP4FVXKZ.js} +2 -2
- package/dist/{chunk-PQYICV7O.js → chunk-CPHQTXP5.js} +17 -2
- package/dist/{chunk-UKAZEO7A.js → chunk-CUORARXJ.js} +7 -7
- package/dist/{chunk-NURN5W6M.js → chunk-CWN75OWQ.js} +2 -2
- package/dist/{chunk-XKSHWUIF.js → chunk-CWOUPW5E.js} +3 -3
- package/dist/{chunk-6OQPKRPJ.js → chunk-D2LIT7UR.js} +1 -1
- package/dist/{chunk-S3S3IHCR.js → chunk-DFSAC4F4.js} +1 -1
- package/dist/chunk-ELWX6CAA.js +5049 -0
- package/dist/{chunk-V4Z37HFN.js → chunk-FK3KV32T.js} +2 -2
- package/dist/{chunk-TIWO5QKS.js → chunk-FKW5FP4C.js} +174 -11
- package/dist/{chunk-GQNV4DG6.js → chunk-G5DZZEQF.js} +1 -1
- package/dist/{chunk-RZK5ZGVX.js → chunk-G5S72X6Q.js} +4 -4
- package/dist/{chunk-J3X2RZON.js → chunk-G7PITEUH.js} +1 -1
- package/dist/{chunk-H5BHEZ4B.js → chunk-GFDXA5QO.js} +3 -3
- package/dist/{chunk-SS7OEJGR.js → chunk-GRHBVTBK.js} +4 -4
- package/dist/{chunk-MKZ34726.js → chunk-GSXHYLW4.js} +2 -2
- package/dist/{chunk-RYT22J4V.js → chunk-HM3PIREE.js} +1 -1
- package/dist/{chunk-EIVSIGS2.js → chunk-IHWNDG5C.js} +5 -5
- package/dist/{chunk-76MHB2H6.js → chunk-IIMW46LC.js} +1 -1
- package/dist/{chunk-IYYZMZD2.js → chunk-J5LQW6VB.js} +1 -1
- package/dist/{chunk-VU4EPKFI.js → chunk-JCNPHRGX.js} +1 -1
- package/dist/{chunk-74PW4UVC.js → chunk-JULHFF3J.js} +1 -1
- package/dist/{chunk-ZUXES5HA.js → chunk-K7JA32EI.js} +3 -3
- package/dist/{chunk-HLRYLZFX.js → chunk-KAHWO4XC.js} +2 -2
- package/dist/{chunk-PVRJKEU5.js → chunk-KAICKZZK.js} +1 -1
- package/dist/{chunk-C25RSEQN.js → chunk-KKUBMYCY.js} +11 -11
- package/dist/{chunk-47JZ2UQC.js → chunk-L6ZLOJBI.js} +2 -2
- package/dist/{chunk-SCUKEERJ.js → chunk-LHBQW4GJ.js} +6 -6
- package/dist/{chunk-FGFVUKPP.js → chunk-LIWK3MFR.js} +1 -1
- package/dist/{chunk-FNC3JNO7.js → chunk-MMAPQWUP.js} +1 -1
- package/dist/{chunk-NXFUEPWT.js → chunk-MQOO5Z4U.js} +6 -6
- package/dist/{chunk-UCCD6SY7.js → chunk-MX3UCKZR.js} +1 -1
- package/dist/{chunk-U5RXCKWJ.js → chunk-O4Z4D4KA.js} +2 -2
- package/dist/{chunk-Q7FX7HOX.js → chunk-O7ZX5DHD.js} +1 -1
- package/dist/{chunk-ITWIFUDS.js → chunk-OB6DVKHE.js} +2 -2
- package/dist/{chunk-NHJ5YUBZ.js → chunk-OBRKDUCE.js} +1 -1
- package/dist/{chunk-GTUTZIRR.js → chunk-OJSOH2LS.js} +3 -3
- package/dist/{chunk-ZCRATF6D.js → chunk-OOEZ3FT3.js} +2 -2
- package/dist/{chunk-FJPHKCWU.js → chunk-OZNJ2QD5.js} +13 -13
- package/dist/{chunk-OSDNRYQJ.js → chunk-P7LZ2WSQ.js} +9 -73
- package/dist/{chunk-3JFV42QB.js → chunk-PGGMJW7B.js} +2 -2
- package/dist/{chunk-T37WJWV2.js → chunk-PIEVAPKP.js} +1 -1
- package/dist/{chunk-7DGBOZ4N.js → chunk-PV2D2TZV.js} +1 -1
- package/dist/{chunk-MTJ46TG7.js → chunk-Q77TZ76B.js} +7 -7
- package/dist/{chunk-SBYFFP7R.js → chunk-Q7EIUAYK.js} +1 -1
- package/dist/{chunk-7GJKUOPX.js → chunk-R5U5PFDJ.js} +2 -2
- package/dist/{chunk-BJYCLZBQ.js → chunk-RBECDLMQ.js} +1 -1
- package/dist/{chunk-DYKBB5HB.js → chunk-RCWPVC4M.js} +1 -1
- package/dist/{chunk-6JAB5BHX.js → chunk-RHUYVGFO.js} +7 -7
- package/dist/{chunk-77B6C7CU.js → chunk-RJA64ACI.js} +2 -2
- package/dist/{chunk-GISQ7VOP.js → chunk-RLQOYHXT.js} +11 -11
- package/dist/{chunk-BX2BIU6Z.js → chunk-RLYYA6IR.js} +68 -16
- package/dist/{chunk-6FHIR4KD.js → chunk-RVI665CP.js} +1 -1
- package/dist/{chunk-2YZ6GA4E.js → chunk-SCWMPY3F.js} +1 -1
- package/dist/{chunk-IX3K55NA.js → chunk-SEVZKBMA.js} +2 -2
- package/dist/{chunk-5QGDLMU3.js → chunk-SQ63BIR2.js} +2 -2
- package/dist/{chunk-HCC7XLD7.js → chunk-T54RTTFW.js} +2 -2
- package/dist/{chunk-B4TLQLGI.js → chunk-T6VQGCN3.js} +1 -1
- package/dist/{chunk-LDTJCZZ2.js → chunk-T7PFJH2B.js} +2 -2
- package/dist/{chunk-QBRBXVCE.js → chunk-TEOIEMTR.js} +1 -1
- package/dist/{chunk-72LMHSPL.js → chunk-URXVZMSI.js} +2 -2
- package/dist/{chunk-X7NFWMWW.js → chunk-UY3H42VE.js} +1 -1
- package/dist/{chunk-FXPDWYD7.js → chunk-VPPJIWVG.js} +86 -32
- package/dist/{chunk-XVDXYUQJ.js → chunk-W4OMDRZF.js} +1 -1
- package/dist/{chunk-L2GOO2UY.js → chunk-WAXPM7TK.js} +1 -1
- package/dist/{chunk-NZUUKNNZ.js → chunk-WSPGX2SM.js} +1 -1
- package/dist/{chunk-ZQXK4L4G.js → chunk-X3HQA3YE.js} +5 -5
- package/dist/chunk-XB77LMOP.js +82 -0
- package/dist/{chunk-ZGQZTSP2.js → chunk-XDIHAX2C.js} +1 -1
- package/dist/{chunk-LMCFILEY.js → chunk-Y6RU3H6C.js} +2 -2
- package/dist/{chunk-42MHKDVP.js → chunk-YJVJCNK4.js} +4 -4
- package/dist/{chunk-4N3UVDIJ.js → chunk-ZLDYDO64.js} +1 -1
- package/dist/{chunk-BYJEUZNT.js → chunk-ZOOY4LEZ.js} +3 -3
- package/dist/{chunk-RYFVUPXH.js → chunk-ZQYRP22G.js} +2 -2
- package/dist/{chunk-JVAD6LD7.js → chunk-ZSELEQI2.js} +363 -347
- package/dist/{clean-YU7AM7DC.js → clean-WYXHI2DO.js} +20 -20
- package/dist/cli.js +67 -67
- package/dist/{cloud-QJMPTQ3N.js → cloud-TDXVUIUM.js} +5 -5
- package/dist/{cloud-U7RRT2TA.js → cloud-X52P5AIE.js} +6 -6
- package/dist/{cloudrun-T7VVPRDG.js → cloudrun-36IR6ZKU.js} +8 -8
- package/dist/{colors-SS2KTOKM.js → colors-NMNY26B5.js} +2 -2
- package/dist/{compare-USGR7PZL.js → compare-R2KXOV2I.js} +33 -32
- package/dist/{compiler-ZSIKBZBR.js → compiler-FRWUFIQC.js} +2 -2
- package/dist/{component-RIFXLYK3.js → component-TIBQY7KQ.js} +6 -6
- package/dist/{compositions-QHRNVZ2K.js → compositions-NQPORXIX.js} +13 -13
- package/dist/{curve-BX46Q4OW.js → curve-DTLRPBSB.js} +12 -12
- package/dist/{cuts-JRLHBLOX.js → cuts-73HKU767.js} +13 -13
- package/dist/{delete-SE7ABVTH.js → delete-HIHA436T.js} +11 -11
- package/dist/{deploy-AQUEV6ND.js → deploy-EB3FS2BT.js} +4 -4
- package/dist/{describeProject-XBT7PHZD.js → describeProject-4A5UXQ25.js} +8 -8
- package/dist/{destroy-YAMTVR2W.js → destroy-4DOMPOYB.js} +2 -2
- package/dist/{diff-6TZLA6KU.js → diff-JPADFUMV.js} +32 -32
- package/dist/{dist-QRXJMFI7.js → dist-FKEKIXVL.js} +2 -2
- package/dist/{dist-ALNMJZ7K.js → dist-KWXQYTRT.js} +15 -9
- package/dist/{docs-ZSVK3VZD.js → docs-YTM4NX2R.js} +2 -2
- package/dist/{doctor-DDKKCJMO.js → doctor-3OO3CONL.js} +12 -12
- package/dist/{energy-HC7BNZ5E.js → energy-XFPN5YIL.js} +13 -13
- package/dist/{events-KNH677YB.js → events-6ONCYFB5.js} +5 -5
- package/dist/{events-ZRVQOB4Y.js → events-G2MME5LQ.js} +8 -8
- package/dist/{events-EETQNKK2.js → events-QWPZT3EQ.js} +15 -15
- package/dist/{extract-I3J3ZK55.js → extract-3EV72SMY.js} +13 -13
- package/dist/{face-HJUZ2OXQ.js → face-JZS6P3AT.js} +13 -13
- package/dist/{feedback-M6I5AVZ5.js → feedback-JVWBHRQG.js} +14 -14
- package/dist/{ffmpeg-OAKTUK5S.js → ffmpeg-XDAITYSU.js} +5 -5
- package/dist/{figma-RFAPGGBF.js → figma-KPHTDMCQ.js} +5 -5
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-FOAWRBW4.js → frames-KRVRJTKC.js} +14 -14
- package/dist/{generate-FLG6B7RX.js → generate-X2MYGFZX.js} +24 -24
- package/dist/{get-I5JCIGPW.js → get-QM24BI7N.js} +11 -11
- package/dist/{gpuPolicy-SLVPAQK2.js → gpuPolicy-EFJJLHVV.js} +5 -5
- package/dist/{grade-compare-R3UOE4WI.js → grade-compare-W5N5LH4X.js} +34 -33
- package/dist/{heifImagePrep-BOIWW7FW.js → heifImagePrep-X5QRRVTV.js} +6 -6
- package/dist/{help-NVQZEN6A.js → help-LWS4YWMO.js} +3 -3
- package/dist/{history-AGNMVDRQ.js → history-SG34LBJY.js} +13 -13
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-EXAJSKZP.js → info-2FC43IYB.js} +15 -15
- package/dist/{init-Z7FZ7U5J.js → init-GKY5OKDV.js} +29 -29
- package/dist/{ink-QYCQXNUY.js → ink-7UK6YCUY.js} +13 -13
- package/dist/{inspect-ZJNHBIJI.js → inspect-ZB2NTNQA.js} +34 -33
- package/dist/{installer-VPGNKCEU.js → installer-GALVXWPC.js} +4 -4
- package/dist/{keyframes-QYRES5IL.js → keyframes-LSP4FLHT.js} +12 -12
- package/dist/{lambda-3I4IV63E.js → lambda-3F32DRYF.js} +17 -17
- package/dist/{layout-J33Y6DD7.js → layout-XPGS3QTX.js} +34 -33
- package/dist/{lint-JT74BZWJ.js → lint-Q5SO57RK.js} +13 -13
- package/dist/{list-NOWT754O.js → list-FL5RYSFT.js} +12 -12
- package/dist/{localPage-66UVNGQR.js → localPage-IOHQETQT.js} +5 -5
- package/dist/{login-3JR3HXS6.js → login-D4TCWDDW.js} +12 -29
- package/dist/{logout-FJ444652.js → logout-7SMEH7JL.js} +4 -4
- package/dist/{look-NKCQENM7.js → look-G2BT4E4A.js} +13 -13
- package/dist/{manager-ML4OLLSM.js → manager-F6WI43DQ.js} +6 -6
- package/dist/{measure-VSZBVJJZ.js → measure-VXQQHYMZ.js} +11 -11
- package/dist/{media-treatment-733EANTU.js → media-treatment-ZXA3JZSL.js} +15 -15
- package/dist/{media-use-IUN5ATZQ.js → media-use-63LZFAID.js} +6 -6
- package/dist/{models-A6FBCVFA.js → models-MWUVU4CY.js} +13 -13
- package/dist/{motionShot-PVWZLEMB.js → motionShot-U4YDT7UV.js} +18 -17
- package/dist/{normalize-audio-XD4QE5NE.js → normalize-audio-T5QJWU4P.js} +12 -12
- package/dist/{open-TWEEOMZA.js → open-DRLXHOW2.js} +15 -15
- package/dist/{parakeetRunner-GP47AAVT.js → parakeetRunner-5OHEB3XZ.js} +10 -10
- package/dist/{pipeline-5HUQFOCY.js → pipeline-MAIRRYD6.js} +8 -8
- package/dist/{play-ZOZRB5OG.js → play-33A3EXX3.js} +24 -24
- package/dist/{policies-5G7G26ZX.js → policies-5RUNO47I.js} +2 -2
- package/dist/{preflight-NTJMXUS2.js → preflight-HSWMKB2Q.js} +6 -6
- package/dist/{present-IMQS3KJ7.js → present-HJIFEIDH.js} +20 -20
- package/dist/{preview-JSK5IKSR.js → preview-J6Z6RKMN.js} +32 -23
- package/dist/{probe-ZLRD2TRZ.js → probe-RA4VOGYY.js} +13 -13
- package/dist/{producer-ZZROH3WZ.js → producer-KWP2B4A5.js} +1 -1
- package/dist/{progress-OOEHTBBU.js → progress-TGYZ2TKQ.js} +2 -2
- package/dist/{projectConfig-UHYPGWD5.js → projectConfig-3YIGHLNE.js} +6 -6
- package/dist/{prompts-RYVLXI7Q.js → prompts-7VQEH645.js} +2 -2
- package/dist/{publication-5KOANEHK.js → publication-QRUY2WJK.js} +2 -2
- package/dist/{publish-C3ARXH6D.js → publish-GV3I3GUL.js} +16 -16
- package/dist/{refresh-YY4K2RWR.js → refresh-47T6Z2PK.js} +4 -4
- package/dist/{remove-background-VDTWA7BL.js → remove-background-UUITKXEQ.js} +12 -12
- package/dist/{render-UF5XKGO5.js → render-EC67XXR2.js} +46 -39
- package/dist/{render-TSV3XTQV.js → render-NHVDJRFD.js} +8 -8
- package/dist/{render-P27DEH4H.js → render-ZITQXHJP.js} +33 -33
- package/dist/{render-batch-ISMXAG7F.js → render-batch-RII4F3PD.js} +8 -8
- package/dist/{resolver-ZWNLOG6O.js → resolver-R3FXDZKS.js} +4 -4
- package/dist/{reverse-J4CLVRPY.js → reverse-2GJ5Y3WM.js} +1 -1
- package/dist/{run-UPKPPRV7.js → run-24USN7TA.js} +5 -5
- package/dist/{screenshotCapture-ZZE3GMOF.js → screenshotCapture-TEQVEBWB.js} +7 -6
- package/dist/{sherpa-7ISRANWA.js → sherpa-YIJR47GX.js} +9 -9
- package/dist/{sites-NWEJJNAZ.js → sites-LILUBMRM.js} +2 -2
- package/dist/{skills-AAETAWZH.js → skills-DM3XC7RQ.js} +12 -12
- package/dist/{skillsUpdateCheck-KCP2EYKX.js → skillsUpdateCheck-ZHVFEOEN.js} +5 -5
- package/dist/{snapshot-5PMHOVPR.js → snapshot-72RQQXHW.js} +41 -40
- package/dist/{src-NIMSUB4P.js → src-C43KUEBY.js} +4 -4
- package/dist/{src-CHPZUZZ3.js → src-SPFGPZZQ.js} +7 -7
- package/dist/{start-6D25MEIJ.js → start-FSYSYLI7.js} +67 -36
- package/dist/{staticProjectServer-LM3YLJ6K.js → staticProjectServer-RHBRRGPK.js} +17 -17
- package/dist/{status-22TRM6DI.js → status-TE74GP4Q.js} +16 -16
- package/dist/studio/assets/{codec-D84nARi6.js → codec-DXM4vA6G.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-C2-hh0bR.js → hyperframes-player-D_016Ubp.js} +1 -1
- package/dist/studio/assets/{index-B0rj7KmJ.js → index-Bw4stQMm.js} +1 -1
- package/dist/studio/assets/{index-D3lR9-ik.js → index-Ob53qo6K.js} +118 -118
- package/dist/studio/assets/{pausedVideoDecoder-D8vnt-Wd.js → pausedVideoDecoder-vbdgaMqL.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-LSWAJEK4.js → studio-api-JAOHMYPG.js} +15 -9
- package/dist/{studioServer-MC57HJAV.js → studioServer-RHCPM4CN.js} +84 -106
- package/dist/{sync-SEN3M7GA.js → sync-UZJ7DOUA.js} +13 -13
- package/dist/{telemetry-5CLJMTHU.js → telemetry-M722DCXI.js} +3 -3
- package/dist/{telemetry-NP2FXZQL.js → telemetry-TFOEA2PM.js} +8 -8
- package/dist/{templates-QN7ZUHHZ.js → templates-2AHM5TZ3.js} +15 -15
- package/dist/{timeline-V43AACFE.js → timeline-ZGV323MP.js} +22 -22
- package/dist/{tokens-NOFZVX4P.js → tokens-ERUFEWUA.js} +5 -5
- package/dist/{transcribe-IVZ4OASF.js → transcribe-6HLYS7NV.js} +27 -27
- package/dist/{transcribe-FGVGCTEU.js → transcribe-M5UZ2XFG.js} +8 -8
- package/dist/{tts-HOZ6X3MD.js → tts-IXX2HHHJ.js} +4 -4
- package/dist/{update-LML5YVLT.js → update-JDVI2XTM.js} +13 -13
- package/dist/{updateCheck-FFHCGLRU.js → updateCheck-GDTYPXKO.js} +4 -4
- package/dist/{upgrade-UWT2FB5Y.js → upgrade-SJKYBA4X.js} +7 -7
- package/dist/{urlDownloader-4RWM3UH2.js → urlDownloader-2QCNXXUG.js} +4 -4
- package/dist/{validate-ZNK2THUV.js → validate-IUTHTA2N.js} +28 -27
- package/dist/{video-QXVXG7PW.js → video-4BJ7WHI2.js} +8 -8
- package/dist/{voices-JI7QOSLT.js → voices-UDSFBPZX.js} +22 -22
- package/dist/warmCheck.js +43 -42
- package/package.json +1 -1
- package/dist/chunk-F24B2PLD.js +0 -5049
|
@@ -6,36 +6,36 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
gotoWhenSent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P7LZ2WSQ.js";
|
|
10
10
|
import {
|
|
11
11
|
windowsChromeCrashRemediation
|
|
12
12
|
} from "./chunk-262C25DQ.js";
|
|
13
13
|
import {
|
|
14
14
|
pageNavigationTimeoutMs
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YJVJCNK4.js";
|
|
16
16
|
import {
|
|
17
17
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
18
18
|
} from "./chunk-YGGZ23BB.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RBECDLMQ.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode,
|
|
25
25
|
rethrowAfterBrowserCleanup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AQJA7TAQ.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveLocalBrowserGpuMode,
|
|
29
29
|
resolveLocalWebGpu
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-T7PFJH2B.js";
|
|
31
31
|
import {
|
|
32
32
|
c
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-JCNPHRGX.js";
|
|
34
34
|
import {
|
|
35
35
|
assertWebGpuAdapterAvailable,
|
|
36
36
|
compositionRequiresWebGpu,
|
|
37
37
|
oneProcessOverPipe
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-R5U5PFDJ.js";
|
|
39
39
|
import {
|
|
40
40
|
normalizeErrorMessage
|
|
41
41
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
143
143
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
144
144
|
});
|
|
145
145
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
146
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
146
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-C43KUEBY.js");
|
|
147
147
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
148
148
|
await waitForImagesReady(
|
|
149
149
|
page,
|
|
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
|
|
|
192
192
|
async function openSettledCompositionPage(html, url, options) {
|
|
193
193
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
194
194
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
195
|
-
const answer = (await import("./staticProjectServer-
|
|
195
|
+
const answer = (await import("./staticProjectServer-RHBRRGPK.js")).inProcessAnswer(url);
|
|
196
196
|
const noListen = answer !== void 0;
|
|
197
197
|
let chromeBrowser;
|
|
198
198
|
try {
|
|
@@ -203,7 +203,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
203
203
|
options.onBrowserReady?.();
|
|
204
204
|
const page = await chromeBrowser.newPage();
|
|
205
205
|
await installPageFunctionGuard(page);
|
|
206
|
-
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-
|
|
206
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-C43KUEBY.js");
|
|
207
207
|
await installMediaRenderIdBridge(page);
|
|
208
208
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
209
209
|
await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
|
|
@@ -225,7 +225,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
225
225
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-IAXYSRG5.js");
|
|
226
226
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
227
227
|
const puppeteer = await import("puppeteer-core");
|
|
228
|
-
const { buildChromeArgs } = await import("./src-
|
|
228
|
+
const { buildChromeArgs } = await import("./src-C43KUEBY.js");
|
|
229
229
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
230
230
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
231
231
|
let softwareWebGpu = false;
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
readConfig,
|
|
13
13
|
readConfigFresh,
|
|
14
14
|
writeConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AWD2MWWL.js";
|
|
16
16
|
import {
|
|
17
17
|
isDevMode
|
|
18
18
|
} from "./chunk-ISN5GRYI.js";
|
|
@@ -22,15 +22,15 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
isCI,
|
|
24
24
|
isUnattended
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CPHQTXP5.js";
|
|
26
26
|
import {
|
|
27
27
|
VERSION
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CP4FVXKZ.js";
|
|
29
29
|
|
|
30
30
|
// src/utils/updateCheck.ts
|
|
31
|
-
import { existsSync as existsSync2, readFileSync as
|
|
32
|
-
import { join as
|
|
33
|
-
import { compareVersions } from "compare-versions";
|
|
31
|
+
import { existsSync as existsSync2, readFileSync as readFileSync3 } from "fs";
|
|
32
|
+
import { join as join3, resolve } from "path";
|
|
33
|
+
import { compareVersions as compareVersions2 } from "compare-versions";
|
|
34
34
|
|
|
35
35
|
// src/utils/dailyNotice.ts
|
|
36
36
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "fs";
|
|
@@ -69,8 +69,9 @@ function claimDailyNotice(kind, project, now = Date.now()) {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
// src/utils/installerDetection.ts
|
|
72
|
-
import { existsSync, realpathSync } from "fs";
|
|
73
|
-
import { posix } from "path";
|
|
72
|
+
import { existsSync, readFileSync as readFileSync2, realpathSync } from "fs";
|
|
73
|
+
import { delimiter, dirname as dirname2, join as join2, posix } from "path";
|
|
74
|
+
import { compareVersions } from "compare-versions";
|
|
74
75
|
|
|
75
76
|
// src/utils/safeVersion.ts
|
|
76
77
|
function isSafeVersion(v) {
|
|
@@ -102,8 +103,7 @@ function isEphemeralExec(realEntry) {
|
|
|
102
103
|
function isHomebrewInstall(realEntry) {
|
|
103
104
|
return normalizePath(realEntry).includes("/Cellar/hyperframes/");
|
|
104
105
|
}
|
|
105
|
-
function detectInstaller() {
|
|
106
|
-
const realEntry = resolveEntry();
|
|
106
|
+
function detectInstaller(realEntry = resolveEntry()) {
|
|
107
107
|
if (!realEntry) {
|
|
108
108
|
return {
|
|
109
109
|
kind: "skip",
|
|
@@ -194,7 +194,10 @@ function installChannelLabel(channel) {
|
|
|
194
194
|
function runningInstall() {
|
|
195
195
|
const path = resolveEntry();
|
|
196
196
|
if (process.env["HYPERFRAMES_PLUGIN_VERSION"]) return { channel: "plugin", path };
|
|
197
|
-
|
|
197
|
+
return installAt(path);
|
|
198
|
+
}
|
|
199
|
+
function installAt(path) {
|
|
200
|
+
const installer = detectInstaller(path);
|
|
198
201
|
if (installer.kind !== "skip") return { channel: installer.kind, path };
|
|
199
202
|
if (!path) return { channel: "unknown", path };
|
|
200
203
|
if (isWorkspaceLink(path)) return { channel: "workspace", path };
|
|
@@ -230,6 +233,54 @@ function updateCommandFor(install, latest) {
|
|
|
230
233
|
}
|
|
231
234
|
return "npx hyperframes@latest";
|
|
232
235
|
}
|
|
236
|
+
function packageVersionAbove(entry) {
|
|
237
|
+
let dir = dirname2(entry);
|
|
238
|
+
for (let depth = 0; depth < 4; depth++) {
|
|
239
|
+
const manifest = join2(dir, "package.json");
|
|
240
|
+
if (existsSync(manifest)) {
|
|
241
|
+
try {
|
|
242
|
+
const pkg = JSON.parse(readFileSync2(manifest, "utf-8"));
|
|
243
|
+
const version = typeof pkg.version === "string" ? pkg.version : "";
|
|
244
|
+
return pkg.name === "hyperframes" && isSafeVersion(version) ? version : null;
|
|
245
|
+
} catch {
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
dir = dirname2(dir);
|
|
250
|
+
}
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
var UPDATABLE_CHANNELS = /* @__PURE__ */ new Set(["npm", "pnpm", "bun", "brew", "project"]);
|
|
254
|
+
function resolvedOrNull(path) {
|
|
255
|
+
try {
|
|
256
|
+
return realpathSync(path);
|
|
257
|
+
} catch {
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
function firstGlobalOnPath(self) {
|
|
262
|
+
for (const dir of (process.env["PATH"] ?? "").split(delimiter)) {
|
|
263
|
+
const real = dir ? resolvedOrNull(join2(dir, "hyperframes")) : null;
|
|
264
|
+
if (real && real !== self && !isEphemeralExec(real)) return real;
|
|
265
|
+
}
|
|
266
|
+
return null;
|
|
267
|
+
}
|
|
268
|
+
function isOlder(version, than) {
|
|
269
|
+
try {
|
|
270
|
+
return compareVersions(than, version) > 0;
|
|
271
|
+
} catch {
|
|
272
|
+
return false;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
function shadowingInstall(current) {
|
|
276
|
+
if (runningInstall().channel !== "npx") return null;
|
|
277
|
+
const global = firstGlobalOnPath(resolveEntry());
|
|
278
|
+
const version = global ? packageVersionAbove(global) : null;
|
|
279
|
+
if (!global || !version || !isOlder(version, current)) return null;
|
|
280
|
+
const install = installAt(global);
|
|
281
|
+
if (!UPDATABLE_CHANNELS.has(install.channel)) return null;
|
|
282
|
+
return { version, updateCommand: updateCommandFor(install, current) };
|
|
283
|
+
}
|
|
233
284
|
|
|
234
285
|
// src/utils/projectPin.ts
|
|
235
286
|
var HYPERFRAMES_PIN_RE = /(?<![0-9A-Za-z._/@-])hyperframes@([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?)(?=\s|$)/g;
|
|
@@ -280,7 +331,7 @@ var SKILLS_COUNT_MAX_AGE_MS = 24 * 60 * 60 * 1e3;
|
|
|
280
331
|
var FETCH_TIMEOUT_MS = 3e3;
|
|
281
332
|
function isNewerSemver(a, b) {
|
|
282
333
|
try {
|
|
283
|
-
return
|
|
334
|
+
return compareVersions2(a, b) > 0;
|
|
284
335
|
} catch {
|
|
285
336
|
return a !== b;
|
|
286
337
|
}
|
|
@@ -466,14 +517,14 @@ function printStalePinNotice(cwd = process.cwd()) {
|
|
|
466
517
|
if (updateCheckDisabled()) return;
|
|
467
518
|
let scripts = {};
|
|
468
519
|
try {
|
|
469
|
-
const pkgPath =
|
|
520
|
+
const pkgPath = join3(cwd, "package.json");
|
|
470
521
|
if (!existsSync2(pkgPath)) return;
|
|
471
|
-
scripts = JSON.parse(
|
|
522
|
+
scripts = JSON.parse(readFileSync3(pkgPath, "utf-8")).scripts ?? {};
|
|
472
523
|
} catch {
|
|
473
524
|
return;
|
|
474
525
|
}
|
|
475
526
|
const pins = readPinnedHyperframesVersions(scripts);
|
|
476
|
-
const newerPins = pins.filter((v) => isNewerSemver(v, VERSION)).sort(
|
|
527
|
+
const newerPins = pins.filter((v) => isNewerSemver(v, VERSION)).sort(compareVersions2);
|
|
477
528
|
if (newerPins.length > 0) {
|
|
478
529
|
process.stderr.write(
|
|
479
530
|
`
|
|
@@ -488,7 +539,7 @@ function printStalePinNotice(cwd = process.cwd()) {
|
|
|
488
539
|
if (!latest || !isSafeVersion(latest)) return;
|
|
489
540
|
const stale = pins.filter((v) => {
|
|
490
541
|
try {
|
|
491
|
-
return
|
|
542
|
+
return compareVersions2(latest, v) > 0;
|
|
492
543
|
} catch {
|
|
493
544
|
return false;
|
|
494
545
|
}
|
|
@@ -516,6 +567,7 @@ export {
|
|
|
516
567
|
installChannelLabel,
|
|
517
568
|
runningInstall,
|
|
518
569
|
updateCommandFor,
|
|
570
|
+
shadowingInstall,
|
|
519
571
|
rewritePinnedHyperframesText,
|
|
520
572
|
rewriteProjectPinnedScripts,
|
|
521
573
|
checkForUpdate,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OBRKDUCE.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HM3PIREE.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
23
|
} from "./chunk-DJVSNDF3.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-TSYRN646.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchLocalPageUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BCMR6DE4.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureCaptureDirSync,
|
|
17
17
|
writeCaptureFileSync
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-AWDFDFI3.js";
|
|
26
26
|
import {
|
|
27
27
|
isBlockedNetworkHost
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-R5U5PFDJ.js";
|
|
29
29
|
import {
|
|
30
30
|
DOMParser,
|
|
31
31
|
parseHTML
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6VNDEMSP.js";
|
|
12
12
|
import {
|
|
13
13
|
runFfmpeg,
|
|
14
14
|
runFfprobe
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-R5U5PFDJ.js";
|
|
16
16
|
import {
|
|
17
17
|
renameWithRetry
|
|
18
18
|
} from "./chunk-IEXRKKHC.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
c
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JCNPHRGX.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/lintFormat.ts
|
|
12
12
|
function formatLintFindings({ results, totalErrors, totalWarnings, totalInfos }, options = {}) {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R5U5PFDJ.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-C43KUEBY.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
withOwner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RJA64ACI.js";
|
|
10
10
|
import {
|
|
11
11
|
HistoryBusyError,
|
|
12
12
|
beginArtifactCapture
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VPPJIWVG.js";
|
|
14
14
|
|
|
15
15
|
// src/utils/artifactCapture.ts
|
|
16
16
|
var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
hyperframesCacheDir
|
|
28
28
|
} from "./chunk-JOQR4AP6.js";
|
|
29
29
|
|
|
30
|
-
// ../studio-server/dist/chunk-
|
|
30
|
+
// ../studio-server/dist/chunk-U6UA4KU3.js
|
|
31
31
|
import { randomUUID as randomUUID7 } from "crypto";
|
|
32
32
|
import { mkdir as mkdir2, readdir as readdir4, rm as rm3, rmdir, stat as stat2, writeFile as writeFile2 } from "fs/promises";
|
|
33
33
|
import {
|
|
@@ -580,10 +580,11 @@ async function collectProjectFilesAsync(normalizedProjectDir) {
|
|
|
580
580
|
collectProjectSignatureManifestFiles(normalizedProjectDir, collected);
|
|
581
581
|
return collected;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
async function listProjectFilesAsync(projectDir) {
|
|
584
584
|
const normalizedProjectDir = resolve2(projectDir);
|
|
585
|
-
|
|
586
|
-
|
|
585
|
+
const everyFileStartsWith = normalizedProjectDir.endsWith(sep2) ? normalizedProjectDir : normalizedProjectDir + sep2;
|
|
586
|
+
return (await collectProjectFilesAsync(normalizedProjectDir)).map((entry) => ({
|
|
587
|
+
path: entry.file.slice(everyFileStartsWith.length).split(sep2).join("/"),
|
|
587
588
|
size: entry.size,
|
|
588
589
|
mtimeMs: entry.mtimeMs,
|
|
589
590
|
ctimeMs: entry.ctimeMs
|
|
@@ -1582,7 +1583,9 @@ function dropArtifactsOfGoneRevisions(state) {
|
|
|
1582
1583
|
}
|
|
1583
1584
|
async function fileHashes(dir) {
|
|
1584
1585
|
const files = {};
|
|
1585
|
-
for (const { path } of
|
|
1586
|
+
for (const { path } of (await listProjectFilesAsync(dir)).sort(
|
|
1587
|
+
(a, b) => a.path.localeCompare(b.path)
|
|
1588
|
+
)) {
|
|
1586
1589
|
const hash = createHash5("sha256");
|
|
1587
1590
|
for await (const chunk of createReadStream2(join7(dir, path))) hash.update(chunk);
|
|
1588
1591
|
files[path] = hash.digest("hex");
|
|
@@ -1903,7 +1906,7 @@ function withoutHiddenPaths(log) {
|
|
|
1903
1906
|
entry.files = entry.files.filter((file) => isHistoryPath(file.path));
|
|
1904
1907
|
return log;
|
|
1905
1908
|
}
|
|
1906
|
-
var historyFiles = (dir) =>
|
|
1909
|
+
var historyFiles = async (dir) => (await listProjectFilesAsync(dir)).filter((file) => isHistoryPath(file.path));
|
|
1907
1910
|
var COPY_LATER_ABOVE_BYTES = 1024 ** 2;
|
|
1908
1911
|
var sameWho = (a, b) => a.kind === b.kind && a.name === b.name;
|
|
1909
1912
|
function splitAt(change, at, kept) {
|
|
@@ -1969,6 +1972,21 @@ function keepTargetsOfItsFiles(entry) {
|
|
|
1969
1972
|
else delete entry.targets;
|
|
1970
1973
|
return entry;
|
|
1971
1974
|
}
|
|
1975
|
+
var TrackedFiles = class extends Map {
|
|
1976
|
+
constructor(changed) {
|
|
1977
|
+
super();
|
|
1978
|
+
this.changed = changed;
|
|
1979
|
+
}
|
|
1980
|
+
changed;
|
|
1981
|
+
set(path, file) {
|
|
1982
|
+
this.changed();
|
|
1983
|
+
return super.set(path, file);
|
|
1984
|
+
}
|
|
1985
|
+
delete(path) {
|
|
1986
|
+
this.changed();
|
|
1987
|
+
return super.delete(path);
|
|
1988
|
+
}
|
|
1989
|
+
};
|
|
1972
1990
|
var Engine = class {
|
|
1973
1991
|
constructor(options, projectId, blobs) {
|
|
1974
1992
|
this.options = options;
|
|
@@ -1990,7 +2008,8 @@ var Engine = class {
|
|
|
1990
2008
|
folder;
|
|
1991
2009
|
home;
|
|
1992
2010
|
log = { baseline: /* @__PURE__ */ new Map(), entries: [], pins: /* @__PURE__ */ new Set() };
|
|
1993
|
-
|
|
2011
|
+
owesVideoState = true;
|
|
2012
|
+
tracked = new TrackedFiles(() => this.owesVideoState = true);
|
|
1994
2013
|
windows = [];
|
|
1995
2014
|
outside = null;
|
|
1996
2015
|
/** A coalescing claim, open until another key, its idle timer, an operation, a window, or another write. */
|
|
@@ -2025,7 +2044,8 @@ var Engine = class {
|
|
|
2025
2044
|
try {
|
|
2026
2045
|
return await task();
|
|
2027
2046
|
} finally {
|
|
2028
|
-
if (this.whereFolder() === "here") {
|
|
2047
|
+
if (this.owesVideoState && this.whereFolder() === "here") {
|
|
2048
|
+
this.owesVideoState = false;
|
|
2029
2049
|
await writeHistoryState(
|
|
2030
2050
|
this.dir,
|
|
2031
2051
|
this.projectId,
|
|
@@ -2033,7 +2053,10 @@ var Engine = class {
|
|
|
2033
2053
|
this.log.entries,
|
|
2034
2054
|
this.manifest(),
|
|
2035
2055
|
manifestAt(this.log, this.log.entries.at(-1)?.id ?? START) ?? /* @__PURE__ */ new Map()
|
|
2036
|
-
).catch((error) =>
|
|
2056
|
+
).catch((error) => {
|
|
2057
|
+
this.owesVideoState = true;
|
|
2058
|
+
this.options.onError?.(error);
|
|
2059
|
+
});
|
|
2037
2060
|
}
|
|
2038
2061
|
}
|
|
2039
2062
|
});
|
|
@@ -2053,6 +2076,7 @@ var Engine = class {
|
|
|
2053
2076
|
if (folder === "replaced") throw this.replaced();
|
|
2054
2077
|
}
|
|
2055
2078
|
persistLog(record) {
|
|
2079
|
+
this.owesVideoState = true;
|
|
2056
2080
|
if (record) saveRecord(this.logFile, this.log, record);
|
|
2057
2081
|
else writeLog(this.logFile, this.log);
|
|
2058
2082
|
if (!existsSync3(join8(this.home, "project.json")))
|
|
@@ -2084,7 +2108,7 @@ var Engine = class {
|
|
|
2084
2108
|
}
|
|
2085
2109
|
const left = this.readAdopting();
|
|
2086
2110
|
const unadopted = (file) => left.has(file.path) && !this.tracked.has(file.path);
|
|
2087
|
-
this.adoptMediaInBackground(historyFiles(this.dir).filter(unadopted), this.now());
|
|
2111
|
+
this.adoptMediaInBackground((await historyFiles(this.dir)).filter(unadopted), this.now());
|
|
2088
2112
|
this.reopenClosedWindow();
|
|
2089
2113
|
await this.settleAll();
|
|
2090
2114
|
}
|
|
@@ -2134,7 +2158,7 @@ var Engine = class {
|
|
|
2134
2158
|
}
|
|
2135
2159
|
async takeInUnnamedLedger() {
|
|
2136
2160
|
const named = (path) => this.log.entries.some((entry) => entry.files.some((file) => file.path === path));
|
|
2137
|
-
const ledger = historyFiles(this.dir).find((file) => file.path === MEDIA_LEDGER);
|
|
2161
|
+
const ledger = (await historyFiles(this.dir)).find((file) => file.path === MEDIA_LEDGER);
|
|
2138
2162
|
if (ledger && !this.log.baseline.has(MEDIA_LEDGER) && !named(MEDIA_LEDGER)) {
|
|
2139
2163
|
const copied = await this.storeIfPresent(MEDIA_LEDGER);
|
|
2140
2164
|
if (typeof copied === "object") this.log.baseline.set(MEDIA_LEDGER, copied.hash);
|
|
@@ -2145,7 +2169,7 @@ var Engine = class {
|
|
|
2145
2169
|
}
|
|
2146
2170
|
async firstOpen() {
|
|
2147
2171
|
const sweptAt = this.now();
|
|
2148
|
-
const files = historyFiles(this.dir);
|
|
2172
|
+
const files = await historyFiles(this.dir);
|
|
2149
2173
|
const copied = files.filter((file) => file.size <= COPY_LATER_ABOVE_BYTES);
|
|
2150
2174
|
const hashes = await Promise.allSettled(
|
|
2151
2175
|
copied.map((file) => inFirstCopySlot(() => this.storeIfPresent(file.path)))
|
|
@@ -2169,10 +2193,11 @@ var Engine = class {
|
|
|
2169
2193
|
);
|
|
2170
2194
|
}
|
|
2171
2195
|
adoptMediaInBackground(files, sweptAt) {
|
|
2172
|
-
let
|
|
2196
|
+
let turn = Promise.resolve();
|
|
2173
2197
|
for (const file of files) {
|
|
2174
|
-
|
|
2175
|
-
|
|
2198
|
+
const adoption = this.adopt(file, sweptAt, turn);
|
|
2199
|
+
turn = adoption.firstTry;
|
|
2200
|
+
this.adopting.set(file.path, adoption);
|
|
2176
2201
|
}
|
|
2177
2202
|
this.saveAdopting();
|
|
2178
2203
|
}
|
|
@@ -2182,29 +2207,56 @@ var Engine = class {
|
|
|
2182
2207
|
mkdirSync5(this.home, { recursive: true });
|
|
2183
2208
|
replaceFileAtomically(file, JSON.stringify([...this.adopting.keys()]), 420);
|
|
2184
2209
|
}
|
|
2185
|
-
|
|
2210
|
+
/** A file still changing stays named until a whole copy of it lands; the next open retries it. */
|
|
2211
|
+
adopt(file, sweptAt, turn) {
|
|
2212
|
+
let asked = [];
|
|
2213
|
+
let wake = () => {
|
|
2214
|
+
};
|
|
2215
|
+
const tryOnce = async () => {
|
|
2216
|
+
const served = asked;
|
|
2217
|
+
asked = [];
|
|
2218
|
+
const tried = await this.tryAdopting(file, sweptAt);
|
|
2219
|
+
for (const answer of served) answer();
|
|
2220
|
+
return tried === "over";
|
|
2221
|
+
};
|
|
2222
|
+
const firstTry = turn.then(tryOnce);
|
|
2223
|
+
const ended = firstTry.then(async (done) => {
|
|
2224
|
+
for (let tries = 1; !done && !this.closing; tries += 1) {
|
|
2225
|
+
const ms = Math.min(SETTLE_MS * 2 ** tries, ADOPT_RETRY_AT_MOST_MS);
|
|
2226
|
+
if (!asked.length)
|
|
2227
|
+
await new Promise((retry) => {
|
|
2228
|
+
const timer = setTimeout(retry, ms);
|
|
2229
|
+
timer.unref?.();
|
|
2230
|
+
wake = () => {
|
|
2231
|
+
clearTimeout(timer);
|
|
2232
|
+
retry();
|
|
2233
|
+
};
|
|
2234
|
+
});
|
|
2235
|
+
done = this.closing !== void 0 || await tryOnce();
|
|
2236
|
+
}
|
|
2237
|
+
});
|
|
2238
|
+
const retryNow = () => {
|
|
2239
|
+
const next = new Promise((answer) => asked.push(answer));
|
|
2240
|
+
wake();
|
|
2241
|
+
return Promise.race([ended, next]);
|
|
2242
|
+
};
|
|
2243
|
+
return { firstTry, ended, retryNow };
|
|
2244
|
+
}
|
|
2245
|
+
async tryAdopting(file, sweptAt) {
|
|
2186
2246
|
try {
|
|
2187
|
-
if (this.whereFolder() !== "here") return;
|
|
2247
|
+
if (this.whereFolder() !== "here") return "over";
|
|
2188
2248
|
const copied = await this.storeIfPresent(file.path);
|
|
2189
|
-
await this.queue(async () => {
|
|
2190
|
-
if (await this.recordAdopted(file, sweptAt, copied) === "changing")
|
|
2191
|
-
return this.adoptLater(file, sweptAt, tries + 1);
|
|
2249
|
+
return await this.queue(async () => {
|
|
2250
|
+
if (await this.recordAdopted(file, sweptAt, copied) === "changing") return "changing";
|
|
2192
2251
|
this.adopting.delete(file.path);
|
|
2193
2252
|
this.saveAdopting();
|
|
2253
|
+
return "over";
|
|
2194
2254
|
});
|
|
2195
2255
|
} catch (error) {
|
|
2196
2256
|
if (!(error instanceof HistoryClosedError)) this.options.onError?.(error);
|
|
2257
|
+
return "over";
|
|
2197
2258
|
}
|
|
2198
2259
|
}
|
|
2199
|
-
/** A file still changing stays named until a whole copy of it lands; the next open retries it. */
|
|
2200
|
-
adoptLater(file, sweptAt, tries) {
|
|
2201
|
-
if (this.closing) return;
|
|
2202
|
-
const timer = setTimeout(
|
|
2203
|
-
() => void this.adopt(file, sweptAt, tries),
|
|
2204
|
-
Math.min(SETTLE_MS * 2 ** tries, ADOPT_RETRY_AT_MOST_MS)
|
|
2205
|
-
);
|
|
2206
|
-
timer.unref?.();
|
|
2207
|
-
}
|
|
2208
2260
|
async recordAdopted(file, sweptAt, first) {
|
|
2209
2261
|
if (typeof first === "string" || this.whereFolder() !== "here") return first;
|
|
2210
2262
|
const kept = this.blobs.has(first.hash) || isUncopied(file.path, file.size);
|
|
@@ -2254,7 +2306,7 @@ var Engine = class {
|
|
|
2254
2306
|
if (this.whereFolder() !== "here") return;
|
|
2255
2307
|
const sweptAt = this.now();
|
|
2256
2308
|
const changedAt = (file) => Math.min(sweptAt, Math.max(file.mtimeMs, file.ctimeMs));
|
|
2257
|
-
const seen = historyFiles(this.dir).filter((file) => !this.adopting.has(file.path));
|
|
2309
|
+
const seen = (await historyFiles(this.dir)).filter((file) => !this.adopting.has(file.path));
|
|
2258
2310
|
const heard = new Map(this.overwritten);
|
|
2259
2311
|
const present = new Set(seen.map((file) => file.path));
|
|
2260
2312
|
const removed = [...this.tracked.keys()].filter((path) => !present.has(path)).map((path) => {
|
|
@@ -2798,7 +2850,7 @@ var Engine = class {
|
|
|
2798
2850
|
options.exclusive === true
|
|
2799
2851
|
),
|
|
2800
2852
|
claim: async (who, label, paths, options = {}) => {
|
|
2801
|
-
await Promise.all(paths.map((path) => this.adopting.get(this.logPath(path))));
|
|
2853
|
+
await Promise.all(paths.map((path) => this.adopting.get(this.logPath(path))?.retryNow()));
|
|
2802
2854
|
return this.queue(() => this.claimNow(who, label, paths, options));
|
|
2803
2855
|
},
|
|
2804
2856
|
noteChange: (path) => {
|
|
@@ -2864,7 +2916,9 @@ var Engine = class {
|
|
|
2864
2916
|
flush: () => this.queue(() => this.settleAll()),
|
|
2865
2917
|
replacedAtPath: () => this.whereFolder() === "replaced",
|
|
2866
2918
|
close: () => this.closing ??= (async () => {
|
|
2867
|
-
|
|
2919
|
+
const owed = [...this.adopting.values()];
|
|
2920
|
+
for (const adoption of owed) void adoption.retryNow();
|
|
2921
|
+
await Promise.all(owed.map((adoption) => adoption.ended));
|
|
2868
2922
|
if (this.notedTimer) clearTimeout(this.notedTimer);
|
|
2869
2923
|
this.stopHearing?.();
|
|
2870
2924
|
const settled = this.queue(() => this.settleAll());
|