hyperframes 0.9.28 → 0.9.30
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-XQCABYNY.js → add-JBBBMWP4.js} +8 -8
- package/dist/{agentPromptGenerator-S2SYZY3A.js → agentPromptGenerator-NJL6ZJQA.js} +2 -2
- package/dist/{animatedGifPrep-SACSOT4A.js → animatedGifPrep-AVZAMI2D.js} +2 -2
- package/dist/api.js +27 -27
- package/dist/{asset-JPI3LFG4.js → asset-VFG5LF4B.js} +5 -5
- package/dist/{assetCataloger-TJQ5OLMV.js → assetCataloger-WGNEAI5A.js} +3 -3
- package/dist/{audio-RG6NXOMI.js → audio-URYC7ND7.js} +16 -16
- package/dist/{auth-7G2OCS7L.js → auth-E4ZBU47K.js} +6 -6
- package/dist/{autoUpdate-7RS75ENY.js → autoUpdate-CEYR6IHF.js} +4 -4
- package/dist/{avatars-KWPVXWXC.js → avatars-ZPRQ3ZCD.js} +11 -11
- package/dist/{backgroundChecks-5HHWQH5H.js → backgroundChecks-BL4XMMXE.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-AL6DO5IA.js → batchRender-FK7U2GUF.js} +4 -4
- package/dist/{beats-XHKWF5KT.js → beats-XK4QL74K.js} +8 -8
- package/dist/{benchmark-57RNYMON.js → benchmark-MABRDF7U.js} +11 -11
- package/dist/{billing-FXAMQKDS.js → billing-2CABBLDC.js} +9 -9
- package/dist/{browser-TV2VPWQJ.js → browser-SHU4XK5O.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-YGHFRVJW.js → bundleWithLocalizedFonts-W7SSOXOO.js} +3 -3
- package/dist/{capture-GPT5V4ND.js → capture-CFESIHJR.js} +8 -8
- package/dist/{capture-LHPSRQ4R.js → capture-VPWHIN5C.js} +5 -5
- package/dist/{captureCompositionFrame-TLV2WC4Q.js → captureCompositionFrame-MT3CHQJ6.js} +9 -9
- package/dist/{catalog-7A3MMFTN.js → catalog-BBPONQOO.js} +9 -9
- package/dist/{catch-up-SEGXPPOX.js → catch-up-DEZVG3A5.js} +8 -8
- package/dist/{check-OP5AR33W.js → check-LIC6DYFD.js} +29 -29
- package/dist/{checkAudio-QDAUXX7W.js → checkAudio-RHF5CWWX.js} +7 -7
- package/dist/{checkBrowser-OGE3A52R.js → checkBrowser-LUHIFDJZ.js} +22 -22
- package/dist/{chunk-U46YQL7E.js → chunk-2B2IMLUQ.js} +1 -1
- package/dist/{chunk-SJOA2RCP.js → chunk-2II5FCVK.js} +9 -9
- package/dist/{chunk-P5USY2GC.js → chunk-2NK3K7JL.js} +2 -2
- package/dist/{chunk-BF6RWOUF.js → chunk-2QUQKYOK.js} +135 -61
- package/dist/{chunk-MMCMEW7K.js → chunk-2YZ6GA4E.js} +1 -1
- package/dist/{chunk-IQKMIYLG.js → chunk-3OA75WJW.js} +2 -2
- package/dist/{chunk-SCNC7YPB.js → chunk-3YNJAXA5.js} +1 -1
- package/dist/{chunk-7M26J4R3.js → chunk-4TCEF2I7.js} +1 -1
- package/dist/{chunk-L5KXLXFY.js → chunk-5IAFM6M5.js} +9 -9
- package/dist/{chunk-EOJ2PMOV.js → chunk-5QGDLMU3.js} +2 -2
- package/dist/{chunk-257XUBNU.js → chunk-5RLMHG3E.js} +1 -1
- package/dist/{chunk-W7TS3CZA.js → chunk-74PW4UVC.js} +1 -1
- package/dist/{chunk-RFLV3WR5.js → chunk-76MHB2H6.js} +1 -1
- package/dist/{chunk-PEJQV2RL.js → chunk-7DMIAJD7.js} +10 -10
- package/dist/{chunk-QT766HQV.js → chunk-7GJKUOPX.js} +14 -17
- package/dist/{chunk-M457GQGR.js → chunk-7NDF2MO3.js} +1 -1
- package/dist/{chunk-VOVC3QCN.js → chunk-AGHSWES2.js} +3 -3
- package/dist/{chunk-UPR5TMLG.js → chunk-AJCFMDFQ.js} +1 -1
- package/dist/{chunk-AVXIDAFJ.js → chunk-AMZ22QP7.js} +30 -11
- package/dist/{chunk-SDYZOTB7.js → chunk-AOPNJEQC.js} +2 -2
- package/dist/{chunk-PF23WT5C.js → chunk-AW2M5TZW.js} +7 -7
- package/dist/{chunk-F5QBIIFT.js → chunk-AWD2MWWL.js} +1 -1
- package/dist/{chunk-YU2KLER7.js → chunk-B23DUMZ4.js} +2 -2
- package/dist/{chunk-AA2DNXEJ.js → chunk-BUYUJ3EV.js} +7 -7
- package/dist/{chunk-ZUXES5HA.js → chunk-CK3DD2MC.js} +2 -2
- package/dist/{chunk-PQYICV7O.js → chunk-CPHQTXP5.js} +17 -2
- package/dist/{chunk-NURN5W6M.js → chunk-CWN75OWQ.js} +2 -2
- package/dist/{chunk-6OQPKRPJ.js → chunk-D2LIT7UR.js} +1 -1
- package/dist/{chunk-D5HNV6G6.js → chunk-DYKBB5HB.js} +1 -1
- package/dist/{chunk-YSAK7PJZ.js → chunk-EBU7T3WZ.js} +2 -2
- package/dist/{chunk-LAI7UTBM.js → chunk-EPOBJVVG.js} +22 -22
- package/dist/{chunk-LXAJQXHM.js → chunk-F4Z2UPAA.js} +2 -2
- package/dist/{chunk-6WCOY6MS.js → chunk-FJQGA6H6.js} +6 -6
- package/dist/{chunk-SQRI67KR.js → chunk-FNC3JNO7.js} +1 -1
- package/dist/{chunk-J237HI2F.js → chunk-G3WGKT3B.js} +160 -25
- package/dist/{chunk-J3X2RZON.js → chunk-G7PITEUH.js} +1 -1
- package/dist/{chunk-55ZEUSPW.js → chunk-GQNV4DG6.js} +1 -1
- package/dist/{chunk-UVF4HXPW.js → chunk-HCC7XLD7.js} +2 -2
- package/dist/{chunk-NXVDTRXA.js → chunk-HKWKMXAC.js} +2 -2
- package/dist/{chunk-ZWJ7PWTY.js → chunk-HLRYLZFX.js} +2 -2
- package/dist/{chunk-LPB7T67S.js → chunk-J4Z7LQKU.js} +2 -2
- package/dist/{chunk-GUHCMOE2.js → chunk-J7PDBGQM.js} +1 -1
- package/dist/{chunk-VU4EPKFI.js → chunk-JCNPHRGX.js} +1 -1
- package/dist/{chunk-CSCK6RGC.js → chunk-JVAD6LD7.js} +31 -14
- package/dist/{chunk-E54N6IPY.js → chunk-KMGF6GJU.js} +4 -4
- package/dist/{chunk-CINCDA5M.js → chunk-LDTJCZZ2.js} +2 -2
- package/dist/{chunk-FGFVUKPP.js → chunk-LIWK3MFR.js} +1 -1
- package/dist/{chunk-U5RXCKWJ.js → chunk-LRDS7MG5.js} +1 -1
- package/dist/{chunk-7FYGCIHK.js → chunk-MKZ34726.js} +2 -2
- package/dist/{chunk-5RUGBDAC.js → chunk-MSL2BS73.js} +1 -1
- package/dist/{chunk-W4EAYORI.js → chunk-NBF7SU6Q.js} +5 -5
- package/dist/{chunk-UAEL2JEL.js → chunk-NLKHXPTZ.js} +4 -4
- package/dist/{chunk-5E6Y7CW3.js → chunk-NTNS5EFN.js} +2 -2
- package/dist/{chunk-WMZDESYF.js → chunk-NZUUKNNZ.js} +1 -1
- package/dist/{chunk-VXWASGGT.js → chunk-P74B5H73.js} +1 -1
- package/dist/{chunk-IX22RYJO.js → chunk-PGZSYDLZ.js} +1 -1
- package/dist/{chunk-T37WJWV2.js → chunk-PIEVAPKP.js} +1 -1
- package/dist/{chunk-7DGBOZ4N.js → chunk-PV2D2TZV.js} +1 -1
- package/dist/{chunk-XPGH4KBU.js → chunk-PVRJKEU5.js} +1 -1
- package/dist/{chunk-P2A6MYSQ.js → chunk-Q7FX7HOX.js} +1 -1
- package/dist/{chunk-E3UFWFZZ.js → chunk-QBRBXVCE.js} +1 -1
- package/dist/{chunk-JMPTLXJQ.js → chunk-RCYKUNVZ.js} +2 -2
- package/dist/{chunk-6UMISKCG.js → chunk-RZK5ZGVX.js} +4 -4
- package/dist/{chunk-XLERIR2V.js → chunk-S3S3IHCR.js} +1 -1
- package/dist/{chunk-E53UDY74.js → chunk-SP5GQGP2.js} +2 -2
- package/dist/{chunk-MPKBIC4Z.js → chunk-SPPSVPY7.js} +3 -3
- package/dist/{chunk-B4TLQLGI.js → chunk-T6VQGCN3.js} +1 -1
- package/dist/{chunk-V4M7PKBM.js → chunk-TNZ2EF2Y.js} +3 -3
- package/dist/{chunk-TTKJF3LI.js → chunk-UPVM6UDG.js} +62 -15
- package/dist/{chunk-TMYY4DV4.js → chunk-UTU3HSJS.js} +1 -1
- package/dist/{chunk-X7NFWMWW.js → chunk-UY3H42VE.js} +1 -1
- package/dist/{chunk-G4D7EBDQ.js → chunk-V4ZFL2E2.js} +2 -2
- package/dist/{chunk-VCMPKZFN.js → chunk-VHOETOGT.js} +11 -11
- package/dist/{chunk-UZGRZRD6.js → chunk-VMLPDIR6.js} +1 -1
- package/dist/{chunk-Z677PTBA.js → chunk-VPQXRTEW.js} +5 -5
- package/dist/{chunk-L2GOO2UY.js → chunk-WAXPM7TK.js} +1 -1
- package/dist/{chunk-NUUN7XB4.js → chunk-WCSEEQ5R.js} +2 -2
- package/dist/{chunk-K77GTFH3.js → chunk-WGVWW6O4.js} +2 -2
- package/dist/{chunk-O5P75JID.js → chunk-WJPEMXI3.js} +2 -2
- package/dist/{chunk-X2YNB244.js → chunk-XKSHWUIF.js} +3 -3
- package/dist/{chunk-A7HPQVS5.js → chunk-XVDXYUQJ.js} +1 -1
- package/dist/{chunk-FBLCK3YJ.js → chunk-YAKPBJOU.js} +32 -18
- package/dist/{chunk-EENM7GX3.js → chunk-YJYEKNJG.js} +3 -3
- package/dist/{chunk-PL5C5FKM.js → chunk-YNRQTFYH.js} +2 -2
- package/dist/{chunk-SWEC6N6N.js → chunk-YZH2IWEE.js} +2 -2
- package/dist/{chunk-DKSCZYFP.js → chunk-ZGQZTSP2.js} +1 -1
- package/dist/{chunk-4N3UVDIJ.js → chunk-ZLDYDO64.js} +1 -1
- package/dist/{clean-UGV3DTVQ.js → clean-AGQEPUBC.js} +13 -13
- package/dist/cli.js +67 -67
- package/dist/{cloud-SDC56AHY.js → cloud-H5HJH6SD.js} +6 -6
- package/dist/{cloud-QJMPTQ3N.js → cloud-TDXVUIUM.js} +5 -5
- package/dist/{cloudrun-T7VVPRDG.js → cloudrun-7BR5FKOC.js} +6 -6
- package/dist/{colors-SS2KTOKM.js → colors-NMNY26B5.js} +2 -2
- package/dist/{compare-LG42JVYH.js → compare-YWZ6O2FL.js} +18 -18
- package/dist/{component-OPAFYBPO.js → component-MX2PJOTA.js} +6 -6
- package/dist/{compositions-JP655NT3.js → compositions-PLT4OLGR.js} +10 -10
- package/dist/{curve-RN7HDXOS.js → curve-BJYCZUEY.js} +9 -9
- package/dist/{cuts-ET7N7IBU.js → cuts-TWAVF7WI.js} +10 -10
- package/dist/{delete-5552CGT5.js → delete-3KCBCPBD.js} +11 -11
- package/dist/{deploy-NMFEPGRQ.js → deploy-KWTMJNBL.js} +4 -4
- package/dist/{describeProject-CWLV5OAT.js → describeProject-HZLM3B55.js} +5 -5
- package/dist/{destroy-YAMTVR2W.js → destroy-4DOMPOYB.js} +2 -2
- package/dist/{diff-HZX2TISC.js → diff-XC6IU3IY.js} +25 -25
- package/dist/{dist-O45G7NET.js → dist-M5WQQ6WE.js} +6 -2
- package/dist/{docs-ZSVK3VZD.js → docs-YTM4NX2R.js} +2 -2
- package/dist/{doctor-IYEYULPD.js → doctor-VRUSZ6GH.js} +9 -9
- package/dist/{energy-YXEPVRKW.js → energy-VNAAJYAW.js} +10 -10
- package/dist/{events-KYCNM6C3.js → events-6WYNARX7.js} +5 -5
- package/dist/{events-JAY5YNEU.js → events-MR72RS47.js} +12 -12
- package/dist/{events-GA24CH3D.js → events-WZJTLFCQ.js} +6 -6
- package/dist/{extract-TFEVGLLS.js → extract-MKOCZIFN.js} +10 -10
- package/dist/{face-NP7JGAE7.js → face-NIV5ZSUX.js} +10 -10
- package/dist/{feedback-UPYWXKHN.js → feedback-A4F4G5JO.js} +12 -12
- package/dist/{ffmpeg-RYNM3JM2.js → ffmpeg-OAKTUK5S.js} +2 -2
- package/dist/{figma-PL4YF6AD.js → figma-4WZIDYAD.js} +5 -5
- package/dist/fontLocalizeCli.js +5 -5
- package/dist/{frames-7CHO3XUP.js → frames-DAKLRIWG.js} +11 -11
- package/dist/{generate-I3UK6VFX.js → generate-NRPHH4NJ.js} +17 -17
- package/dist/{get-DRFSJ333.js → get-ISXQCK3G.js} +11 -11
- package/dist/{gpuPolicy-OAUKEMJC.js → gpuPolicy-SLVPAQK2.js} +2 -2
- package/dist/{grade-compare-PYDF6Y6J.js → grade-compare-TVMAAZVC.js} +19 -19
- package/dist/{heifImagePrep-23E67GBA.js → heifImagePrep-BOIWW7FW.js} +3 -3
- package/dist/{help-N2SPZK4D.js → help-ZOYDS3YW.js} +3 -3
- package/dist/{history-LXYOTFY7.js → history-CLGGMJ7Z.js} +11 -11
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-ENAE5IAD.js → info-ZTFII4N4.js} +12 -12
- package/dist/{init-DMKB6PK6.js → init-RCDPQKFA.js} +22 -22
- package/dist/{ink-ANDD7W6Y.js → ink-2ATPIDWC.js} +10 -10
- package/dist/{inspect-2XZYCFMK.js → inspect-GDMUC5F6.js} +20 -20
- package/dist/{keyframes-UKUFE6ZF.js → keyframes-EPAX446T.js} +10 -10
- package/dist/{lambda-T4WMAZZV.js → lambda-HG6Y6KOH.js} +14 -14
- package/dist/{layout-FX2Q65LB.js → layout-KXBKGHOS.js} +20 -20
- package/dist/{lint-AHORS3BL.js → lint-O62OPAW7.js} +11 -11
- package/dist/{list-H7F3WXD4.js → list-4HWWKMM6.js} +12 -12
- package/dist/{localPage-UUSOCL7L.js → localPage-66UVNGQR.js} +2 -2
- package/dist/{login-6ORXT7JS.js → login-2H4XMPUT.js} +12 -29
- package/dist/{logout-FJ444652.js → logout-7SMEH7JL.js} +4 -4
- package/dist/{look-XFA3GQDV.js → look-W6PV445D.js} +10 -10
- package/dist/{manager-ZGVNWYBK.js → manager-ML4OLLSM.js} +3 -3
- package/dist/{measure-WIARVYP6.js → measure-CWOXQCGH.js} +11 -11
- package/dist/{media-treatment-L2OD4GAB.js → media-treatment-SDGXF2PK.js} +11 -11
- package/dist/{media-use-SYSDJH23.js → media-use-NWNX24MD.js} +6 -6
- package/dist/{models-YOGYUKBX.js → models-J2P2DLSA.js} +10 -10
- package/dist/{motionShot-II6JZGTO.js → motionShot-VQ2KFPMR.js} +11 -11
- package/dist/{normalize-audio-L6V6T2XW.js → normalize-audio-MABOG5XR.js} +8 -8
- package/dist/{open-BPGKTYYV.js → open-KWTFPDML.js} +9 -9
- package/dist/{parakeetRunner-BWX3UQH4.js → parakeetRunner-GP47AAVT.js} +7 -7
- package/dist/{pipeline-O3VKDLBZ.js → pipeline-5HUQFOCY.js} +5 -5
- package/dist/{play-NLZ4D4VN.js → play-6MSC2ZCU.js} +13 -13
- package/dist/{policies-5G7G26ZX.js → policies-5RUNO47I.js} +2 -2
- package/dist/{preflight-HEAPQ7N7.js → preflight-NTJMXUS2.js} +3 -3
- package/dist/{present-XPLUCZ5Z.js → present-X5T75QS4.js} +13 -13
- package/dist/{preview-JAWCYDZP.js → preview-7NW7RUET.js} +15 -15
- package/dist/{probe-3AL2MBSY.js → probe-XTZVXTQ2.js} +10 -10
- package/dist/{producer-OQETVMJH.js → producer-ZZROH3WZ.js} +1 -1
- package/dist/{progress-OOEHTBBU.js → progress-TGYZ2TKQ.js} +2 -2
- package/dist/{prompts-RYVLXI7Q.js → prompts-7VQEH645.js} +2 -2
- package/dist/{publish-C3ARXH6D.js → publish-3BBHK2NK.js} +8 -8
- package/dist/{refresh-YY4K2RWR.js → refresh-47T6Z2PK.js} +4 -4
- package/dist/{remove-background-2SNU7KAA.js → remove-background-W7WMLL5C.js} +9 -9
- package/dist/{render-FFA55SPM.js → render-5G6745C3.js} +32 -32
- package/dist/{render-TSV3XTQV.js → render-ZGCH2FZJ.js} +4 -4
- package/dist/{render-IKHZUOCM.js → render-ZIBXBMNI.js} +26 -26
- package/dist/{render-batch-ISMXAG7F.js → render-batch-ONWJJ627.js} +4 -4
- package/dist/{reverse-74KYO2KF.js → reverse-5YTLWWDZ.js} +1 -1
- package/dist/{run-UPKPPRV7.js → run-24USN7TA.js} +5 -5
- package/dist/{screenshotCapture-HBOH5VXI.js → screenshotCapture-ZZE3GMOF.js} +2 -2
- package/dist/{sherpa-DBCTQWM3.js → sherpa-7ISRANWA.js} +6 -6
- package/dist/{sites-NWEJJNAZ.js → sites-LILUBMRM.js} +2 -2
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/references/heygen.md +2 -2
- package/dist/{skills-YYOPM674.js → skills-YMSZHKK4.js} +10 -10
- package/dist/{skillsUpdateCheck-2G4HUWXT.js → skillsUpdateCheck-YJYYN5CH.js} +5 -5
- package/dist/{snapshot-FSN6MIFT.js → snapshot-4MZGXL4A.js} +27 -27
- package/dist/{src-PZKWEQB3.js → src-CHPZUZZ3.js} +4 -4
- package/dist/{src-W2OMGCC2.js → src-NIMSUB4P.js} +1 -1
- package/dist/{start-BC3LQ6XM.js → start-FPEBVENS.js} +60 -29
- package/dist/{staticProjectServer-NOC42RG6.js → staticProjectServer-XZNME57Y.js} +5 -5
- package/dist/{status-GAMGQR6J.js → status-7TRDJU47.js} +10 -10
- package/dist/studio/assets/{codec-DqZyhFXM.js → codec-B1UWDNJp.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-aBBb_UoJ.js → hyperframes-player-DQd2VPm2.js} +1 -1
- package/dist/studio/assets/{index-CceqlOsz.js → index-B7CtVv8e.js} +1 -1
- package/dist/studio/assets/{index-nztwvLTw.js → index-gkyTLE7n.js} +5 -5
- package/dist/studio/assets/{pausedVideoDecoder-CwC0h32O.js → pausedVideoDecoder-Bfv1WSlz.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-2I44WB4P.js → studio-api-JKJXAELI.js} +6 -2
- package/dist/{studioServer-YOES7J26.js → studioServer-UCRCZOLS.js} +59 -85
- package/dist/{sync-SAFSREBK.js → sync-E72XNR2G.js} +10 -10
- package/dist/{telemetry-JKUAFRWX.js → telemetry-L5D3U4IO.js} +6 -6
- package/dist/{telemetry-5CLJMTHU.js → telemetry-M722DCXI.js} +3 -3
- package/dist/{templates-T63OMFEN.js → templates-O7HEL7HC.js} +9 -9
- package/dist/{timeline-4WIGTZRE.js → timeline-QTODTYKQ.js} +15 -15
- package/dist/{tokens-JK3XREP4.js → tokens-D7JYFE2K.js} +5 -5
- package/dist/{transcribe-DWCOZPAN.js → transcribe-D2WFL2RO.js} +20 -20
- package/dist/{transcribe-APCPBJXE.js → transcribe-FGVGCTEU.js} +5 -5
- package/dist/{tts-HOZ6X3MD.js → tts-IXX2HHHJ.js} +4 -4
- package/dist/{update-I3DN6NUV.js → update-SCMEUTRM.js} +11 -11
- package/dist/{updateCheck-5C2PHZ24.js → updateCheck-KNTQDXMN.js} +4 -4
- package/dist/{upgrade-KBMPHPSY.js → upgrade-V2BP5PAQ.js} +7 -7
- package/dist/{urlDownloader-T5UKNPTJ.js → urlDownloader-4RWM3UH2.js} +1 -1
- package/dist/{validate-YNITWYCF.js → validate-W3E6QVJ6.js} +18 -18
- package/dist/{video-JRQOXAZ2.js → video-KC4AFMAY.js} +5 -5
- package/dist/{voices-7QS4D5EP.js → voices-7N6QU3C6.js} +15 -15
- package/dist/warmCheck.js +29 -29
- package/package.json +1 -1
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
} from "./chunk-TQBQYO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B23DUMZ4.js";
|
|
13
13
|
import {
|
|
14
14
|
serveStaticProjectHtml
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WJPEMXI3.js";
|
|
16
16
|
import {
|
|
17
17
|
AUDIT_SEEK_OPTIONS,
|
|
18
18
|
installPageFunctionGuard,
|
|
19
19
|
seekCompositionTimeline,
|
|
20
20
|
waitForCompositionFonts,
|
|
21
21
|
waitForRuntimeReady
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5IAFM6M5.js";
|
|
23
23
|
import {
|
|
24
24
|
gotoWhenSent
|
|
25
25
|
} from "./chunk-OSDNRYQJ.js";
|
|
26
26
|
import {
|
|
27
27
|
pageNavigationTimeoutMs
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AGHSWES2.js";
|
|
29
29
|
import {
|
|
30
30
|
launchManagedBrowser,
|
|
31
31
|
resolveManagedGpuMode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AOPNJEQC.js";
|
|
33
33
|
import {
|
|
34
34
|
readJsonFileText
|
|
35
35
|
} from "./chunk-EHZESMRB.js";
|
|
@@ -38,11 +38,11 @@ import {
|
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
39
39
|
import {
|
|
40
40
|
c
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JCNPHRGX.js";
|
|
42
42
|
import {
|
|
43
43
|
printDeprecationNotice,
|
|
44
44
|
withMeta
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-UPVM6UDG.js";
|
|
46
46
|
import {
|
|
47
47
|
failureMessage,
|
|
48
48
|
jsonFailure
|
|
@@ -728,13 +728,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
728
728
|
async function runLayoutAudit(projectDir, opts) {
|
|
729
729
|
const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
|
|
730
730
|
const puppeteer = await import("puppeteer-core");
|
|
731
|
-
const { buildChromeArgs } = await import("./src-
|
|
731
|
+
const { buildChromeArgs } = await import("./src-NIMSUB4P.js");
|
|
732
732
|
const {
|
|
733
733
|
assertWebGpuAdapterAvailable,
|
|
734
734
|
compositionRequiresWebGpu,
|
|
735
735
|
resolveLocalBrowserGpuMode,
|
|
736
736
|
resolveLocalWebGpu
|
|
737
|
-
} = await import("./gpuPolicy-
|
|
737
|
+
} = await import("./gpuPolicy-SLVPAQK2.js");
|
|
738
738
|
const html = await bundleProjectHtml(projectDir);
|
|
739
739
|
const server = await serveStaticProjectHtml(
|
|
740
740
|
projectDir,
|
|
@@ -6,12 +6,12 @@ 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-LIWK3MFR.js";
|
|
10
10
|
import {
|
|
11
11
|
PRORES_PROFILE_NAMES,
|
|
12
12
|
appendRateCapArgs,
|
|
13
13
|
isProresProfile
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7GJKUOPX.js";
|
|
15
15
|
import {
|
|
16
16
|
failUsage
|
|
17
17
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -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-7TLLALWT.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
|
|
@@ -691,6 +692,10 @@ async function stopServingAndClose(path) {
|
|
|
691
692
|
}
|
|
692
693
|
var BLOB_HASH = /^[0-9a-f]{64}$/;
|
|
693
694
|
var READ_ONCE_AT_MOST_BYTES = 64 * 1024;
|
|
695
|
+
var READS_BEFORE_LEAVING_IT = 3;
|
|
696
|
+
var SETTLE_MS = 100;
|
|
697
|
+
var isSettling = (file, now) => Math.abs(now - Math.max(file.mtimeMs, file.ctimeMs)) < SETTLE_MS;
|
|
698
|
+
var unchanged = (before, after) => before.size === after.size && before.mtimeMs === after.mtimeMs && before.ctimeMs === after.ctimeMs;
|
|
694
699
|
function blobPath(dir, hash) {
|
|
695
700
|
if (!BLOB_HASH.test(hash)) throw new Error("That is not a history blob.");
|
|
696
701
|
return join2(dir, hash.slice(0, 2), hash);
|
|
@@ -704,8 +709,10 @@ async function hashFile(path) {
|
|
|
704
709
|
async function readIfSmall(path) {
|
|
705
710
|
const handle = await open(path, "r");
|
|
706
711
|
try {
|
|
707
|
-
const
|
|
708
|
-
|
|
712
|
+
const before = await handle.stat();
|
|
713
|
+
if (before.size > READ_ONCE_AT_MOST_BYTES) return null;
|
|
714
|
+
const bytes = await handle.readFile();
|
|
715
|
+
return { bytes, mode: before.mode, moved: !unchanged(before, await handle.stat()) };
|
|
709
716
|
} finally {
|
|
710
717
|
await handle.close();
|
|
711
718
|
}
|
|
@@ -817,26 +824,38 @@ async function openBlobStore(dir) {
|
|
|
817
824
|
file(hash, bytes.length);
|
|
818
825
|
return hash;
|
|
819
826
|
};
|
|
827
|
+
const putIfUnchanged = async (absPath) => {
|
|
828
|
+
const small = await readIfSmall(absPath);
|
|
829
|
+
if (small) return small.moved ? null : putBytes(small.bytes, small.mode);
|
|
830
|
+
const temp = join2(dir, `incoming-${randomUUID3()}`);
|
|
831
|
+
await mkdir(dir, { recursive: true });
|
|
832
|
+
const before = await stat(absPath);
|
|
833
|
+
const moved = await cloneOrStream(absPath, temp).then(async () => !unchanged(before, await stat(absPath))).catch(async (error) => {
|
|
834
|
+
await rm(temp, { force: true });
|
|
835
|
+
throw error;
|
|
836
|
+
});
|
|
837
|
+
if (moved) {
|
|
838
|
+
await rm(temp, { force: true });
|
|
839
|
+
return null;
|
|
840
|
+
}
|
|
841
|
+
const hash = await hashFile(temp);
|
|
842
|
+
if (sizes.has(hash)) {
|
|
843
|
+
await rm(temp, { force: true });
|
|
844
|
+
return hash;
|
|
845
|
+
}
|
|
846
|
+
await mkdir(dirname(blobPath(dir, hash)), { recursive: true });
|
|
847
|
+
const size = (await stat(temp)).size;
|
|
848
|
+
await renameWithRetryAsync(temp, blobPath(dir, hash));
|
|
849
|
+
file(hash, size);
|
|
850
|
+
return hash;
|
|
851
|
+
};
|
|
820
852
|
return {
|
|
821
853
|
async put(absPath) {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
await mkdir(dir, { recursive: true });
|
|
826
|
-
await cloneOrStream(absPath, temp).catch(async (error) => {
|
|
827
|
-
await rm(temp, { force: true });
|
|
828
|
-
throw error;
|
|
829
|
-
});
|
|
830
|
-
const hash = await hashFile(temp);
|
|
831
|
-
if (sizes.has(hash)) {
|
|
832
|
-
await rm(temp, { force: true });
|
|
833
|
-
return hash;
|
|
854
|
+
for (let read = 0; read < READS_BEFORE_LEAVING_IT; read += 1) {
|
|
855
|
+
const hash = await putIfUnchanged(absPath);
|
|
856
|
+
if (hash !== null) return hash;
|
|
834
857
|
}
|
|
835
|
-
|
|
836
|
-
const size = (await stat(temp)).size;
|
|
837
|
-
await renameWithRetryAsync(temp, blobPath(dir, hash));
|
|
838
|
-
file(hash, size);
|
|
839
|
-
return hash;
|
|
858
|
+
return null;
|
|
840
859
|
},
|
|
841
860
|
reference: (absPath) => hashFile(absPath),
|
|
842
861
|
has: (hash) => sizes.has(hash) || asideSizes.has(hash),
|
|
@@ -1564,7 +1583,9 @@ function dropArtifactsOfGoneRevisions(state) {
|
|
|
1564
1583
|
}
|
|
1565
1584
|
async function fileHashes(dir) {
|
|
1566
1585
|
const files = {};
|
|
1567
|
-
for (const { path } of
|
|
1586
|
+
for (const { path } of (await listProjectFilesAsync(dir)).sort(
|
|
1587
|
+
(a, b) => a.path.localeCompare(b.path)
|
|
1588
|
+
)) {
|
|
1568
1589
|
const hash = createHash5("sha256");
|
|
1569
1590
|
for await (const chunk of createReadStream2(join7(dir, path))) hash.update(chunk);
|
|
1570
1591
|
files[path] = hash.digest("hex");
|
|
@@ -1592,11 +1613,11 @@ async function recordArtifacts(projectDir, capture, artifactsToRecord) {
|
|
|
1592
1613
|
hashes.set(artifact.id, createHash5("sha256").update(readFileSync8(path)).digest("hex"));
|
|
1593
1614
|
}
|
|
1594
1615
|
const after = await beginArtifactCapture(projectDir);
|
|
1595
|
-
const
|
|
1616
|
+
const unchanged2 = after.fingerprint === capture.fingerprint;
|
|
1596
1617
|
let cleanup = [];
|
|
1597
1618
|
await updateState(projectDir, (state) => {
|
|
1598
|
-
const revision =
|
|
1599
|
-
const attribution = attributionOf(
|
|
1619
|
+
const revision = unchanged2 ? knownRevision(state, capture.revision) : null;
|
|
1620
|
+
const attribution = attributionOf(unchanged2, revision);
|
|
1600
1621
|
for (const artifact of artifactsToRecord) {
|
|
1601
1622
|
const { kind, ...fields } = artifact;
|
|
1602
1623
|
const record = {
|
|
@@ -1623,8 +1644,8 @@ async function recordArtifacts(projectDir, capture, artifactsToRecord) {
|
|
|
1623
1644
|
function knownRevision(state, revision) {
|
|
1624
1645
|
return revision && state.revisions[revision] ? revision : null;
|
|
1625
1646
|
}
|
|
1626
|
-
function attributionOf(
|
|
1627
|
-
if (!
|
|
1647
|
+
function attributionOf(unchanged2, revision) {
|
|
1648
|
+
if (!unchanged2) return "inputs-changed";
|
|
1628
1649
|
return revision ? "recorded-revision" : "unversioned";
|
|
1629
1650
|
}
|
|
1630
1651
|
function supersedes(artifact, previous) {
|
|
@@ -1684,9 +1705,9 @@ async function recordRenderSuccess(projectDir, output, status = "completed", cap
|
|
|
1684
1705
|
output: resolve7(output),
|
|
1685
1706
|
status
|
|
1686
1707
|
};
|
|
1687
|
-
const
|
|
1708
|
+
const unchanged2 = Boolean(capture && after?.fingerprint === capture.fingerprint);
|
|
1688
1709
|
await updateState(projectDir, (state) => {
|
|
1689
|
-
record.revision =
|
|
1710
|
+
record.revision = unchanged2 ? knownRevision(state, capture?.revision) : null;
|
|
1690
1711
|
state.renders = {
|
|
1691
1712
|
latest: record,
|
|
1692
1713
|
retainedRevisions: retainRevision(state.renders?.retainedRevisions ?? [], record.revision)
|
|
@@ -1845,6 +1866,7 @@ var OUTSIDE = { kind: "outside", name: "Outside" };
|
|
|
1845
1866
|
var OUTSIDE_LABEL = "Changed outside the app";
|
|
1846
1867
|
var RACY_MS = 2e3;
|
|
1847
1868
|
var statKey = (file, sweptAt) => sweptAt - Math.max(file.mtimeMs, file.ctimeMs) < RACY_MS ? "" : `${file.size}:${file.mtimeMs}:${file.ctimeMs}`;
|
|
1869
|
+
var ADOPT_RETRY_AT_MOST_MS = 3e4;
|
|
1848
1870
|
var FIRST_COPY_SLOTS_IN_PROCESS = 4;
|
|
1849
1871
|
var firstCopiesRunning = 0;
|
|
1850
1872
|
var firstCopiesWaiting = [];
|
|
@@ -1884,7 +1906,7 @@ function withoutHiddenPaths(log) {
|
|
|
1884
1906
|
entry.files = entry.files.filter((file) => isHistoryPath(file.path));
|
|
1885
1907
|
return log;
|
|
1886
1908
|
}
|
|
1887
|
-
var historyFiles = (dir) =>
|
|
1909
|
+
var historyFiles = async (dir) => (await listProjectFilesAsync(dir)).filter((file) => isHistoryPath(file.path));
|
|
1888
1910
|
var COPY_LATER_ABOVE_BYTES = 1024 ** 2;
|
|
1889
1911
|
var sameWho = (a, b) => a.kind === b.kind && a.name === b.name;
|
|
1890
1912
|
function splitAt(change, at, kept) {
|
|
@@ -1950,6 +1972,21 @@ function keepTargetsOfItsFiles(entry) {
|
|
|
1950
1972
|
else delete entry.targets;
|
|
1951
1973
|
return entry;
|
|
1952
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
|
+
};
|
|
1953
1990
|
var Engine = class {
|
|
1954
1991
|
constructor(options, projectId, blobs) {
|
|
1955
1992
|
this.options = options;
|
|
@@ -1971,7 +2008,8 @@ var Engine = class {
|
|
|
1971
2008
|
folder;
|
|
1972
2009
|
home;
|
|
1973
2010
|
log = { baseline: /* @__PURE__ */ new Map(), entries: [], pins: /* @__PURE__ */ new Set() };
|
|
1974
|
-
|
|
2011
|
+
owesVideoState = true;
|
|
2012
|
+
tracked = new TrackedFiles(() => this.owesVideoState = true);
|
|
1975
2013
|
windows = [];
|
|
1976
2014
|
outside = null;
|
|
1977
2015
|
/** A coalescing claim, open until another key, its idle timer, an operation, a window, or another write. */
|
|
@@ -2006,7 +2044,8 @@ var Engine = class {
|
|
|
2006
2044
|
try {
|
|
2007
2045
|
return await task();
|
|
2008
2046
|
} finally {
|
|
2009
|
-
if (this.whereFolder() === "here") {
|
|
2047
|
+
if (this.owesVideoState && this.whereFolder() === "here") {
|
|
2048
|
+
this.owesVideoState = false;
|
|
2010
2049
|
await writeHistoryState(
|
|
2011
2050
|
this.dir,
|
|
2012
2051
|
this.projectId,
|
|
@@ -2014,7 +2053,10 @@ var Engine = class {
|
|
|
2014
2053
|
this.log.entries,
|
|
2015
2054
|
this.manifest(),
|
|
2016
2055
|
manifestAt(this.log, this.log.entries.at(-1)?.id ?? START) ?? /* @__PURE__ */ new Map()
|
|
2017
|
-
).catch((error) =>
|
|
2056
|
+
).catch((error) => {
|
|
2057
|
+
this.owesVideoState = true;
|
|
2058
|
+
this.options.onError?.(error);
|
|
2059
|
+
});
|
|
2018
2060
|
}
|
|
2019
2061
|
}
|
|
2020
2062
|
});
|
|
@@ -2034,6 +2076,7 @@ var Engine = class {
|
|
|
2034
2076
|
if (folder === "replaced") throw this.replaced();
|
|
2035
2077
|
}
|
|
2036
2078
|
persistLog(record) {
|
|
2079
|
+
this.owesVideoState = true;
|
|
2037
2080
|
if (record) saveRecord(this.logFile, this.log, record);
|
|
2038
2081
|
else writeLog(this.logFile, this.log);
|
|
2039
2082
|
if (!existsSync3(join8(this.home, "project.json")))
|
|
@@ -2065,7 +2108,7 @@ var Engine = class {
|
|
|
2065
2108
|
}
|
|
2066
2109
|
const left = this.readAdopting();
|
|
2067
2110
|
const unadopted = (file) => left.has(file.path) && !this.tracked.has(file.path);
|
|
2068
|
-
this.adoptMediaInBackground(historyFiles(this.dir).filter(unadopted), this.now());
|
|
2111
|
+
this.adoptMediaInBackground((await historyFiles(this.dir)).filter(unadopted), this.now());
|
|
2069
2112
|
this.reopenClosedWindow();
|
|
2070
2113
|
await this.settleAll();
|
|
2071
2114
|
}
|
|
@@ -2115,32 +2158,37 @@ var Engine = class {
|
|
|
2115
2158
|
}
|
|
2116
2159
|
async takeInUnnamedLedger() {
|
|
2117
2160
|
const named = (path) => this.log.entries.some((entry) => entry.files.some((file) => file.path === path));
|
|
2118
|
-
const
|
|
2119
|
-
|
|
2120
|
-
|
|
2161
|
+
const ledger = (await historyFiles(this.dir)).find((file) => file.path === MEDIA_LEDGER);
|
|
2162
|
+
if (ledger && !this.log.baseline.has(MEDIA_LEDGER) && !named(MEDIA_LEDGER)) {
|
|
2163
|
+
const copied = await this.storeIfPresent(MEDIA_LEDGER);
|
|
2164
|
+
if (typeof copied === "object") this.log.baseline.set(MEDIA_LEDGER, copied.hash);
|
|
2165
|
+
else if (copied === "changing") this.adoptMediaInBackground([ledger], this.now());
|
|
2166
|
+
}
|
|
2121
2167
|
this.log.keepsLedger = true;
|
|
2122
2168
|
this.persistLog();
|
|
2123
2169
|
}
|
|
2124
2170
|
async firstOpen() {
|
|
2125
2171
|
const sweptAt = this.now();
|
|
2126
|
-
const files = historyFiles(this.dir);
|
|
2172
|
+
const files = await historyFiles(this.dir);
|
|
2127
2173
|
const copied = files.filter((file) => file.size <= COPY_LATER_ABOVE_BYTES);
|
|
2128
2174
|
const hashes = await Promise.allSettled(
|
|
2129
2175
|
copied.map((file) => inFirstCopySlot(() => this.storeIfPresent(file.path)))
|
|
2130
2176
|
);
|
|
2131
2177
|
if (this.whereFolder() !== "here") throw this.replaced();
|
|
2178
|
+
const owed = [];
|
|
2132
2179
|
copied.forEach((file, i) => {
|
|
2133
2180
|
const result = hashes[i];
|
|
2134
2181
|
if (result.status === "rejected") throw result.reason;
|
|
2135
|
-
if (result.value
|
|
2136
|
-
|
|
2182
|
+
if (result.value === "changing") owed.push(file);
|
|
2183
|
+
else if (result.value !== "gone")
|
|
2184
|
+
this.tracked.set(file.path, { hash: result.value.hash, stat: statKey(file, sweptAt) });
|
|
2137
2185
|
});
|
|
2138
2186
|
this.log.baseline = this.manifest();
|
|
2139
2187
|
this.log.keepsLedger = true;
|
|
2140
2188
|
this.persistLog();
|
|
2141
2189
|
this.saveStatCache();
|
|
2142
2190
|
this.adoptMediaInBackground(
|
|
2143
|
-
files.filter((file) => file.size > COPY_LATER_ABOVE_BYTES),
|
|
2191
|
+
[...owed, ...files.filter((file) => file.size > COPY_LATER_ABOVE_BYTES)],
|
|
2144
2192
|
sweptAt
|
|
2145
2193
|
);
|
|
2146
2194
|
}
|
|
@@ -2158,12 +2206,13 @@ var Engine = class {
|
|
|
2158
2206
|
mkdirSync5(this.home, { recursive: true });
|
|
2159
2207
|
replaceFileAtomically(file, JSON.stringify([...this.adopting.keys()]), 420);
|
|
2160
2208
|
}
|
|
2161
|
-
async adopt(file, sweptAt) {
|
|
2209
|
+
async adopt(file, sweptAt, tries = 0) {
|
|
2162
2210
|
try {
|
|
2163
2211
|
if (this.whereFolder() !== "here") return;
|
|
2164
|
-
const
|
|
2212
|
+
const copied = await this.storeIfPresent(file.path);
|
|
2165
2213
|
await this.queue(async () => {
|
|
2166
|
-
await this.recordAdopted(file, sweptAt,
|
|
2214
|
+
if (await this.recordAdopted(file, sweptAt, copied) === "changing")
|
|
2215
|
+
return this.adoptLater(file, sweptAt, tries + 1);
|
|
2167
2216
|
this.adopting.delete(file.path);
|
|
2168
2217
|
this.saveAdopting();
|
|
2169
2218
|
});
|
|
@@ -2171,11 +2220,21 @@ var Engine = class {
|
|
|
2171
2220
|
if (!(error instanceof HistoryClosedError)) this.options.onError?.(error);
|
|
2172
2221
|
}
|
|
2173
2222
|
}
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
const
|
|
2178
|
-
|
|
2223
|
+
/** A file still changing stays named until a whole copy of it lands; the next open retries it. */
|
|
2224
|
+
adoptLater(file, sweptAt, tries) {
|
|
2225
|
+
if (this.closing) return;
|
|
2226
|
+
const timer = setTimeout(
|
|
2227
|
+
() => void this.adopt(file, sweptAt, tries),
|
|
2228
|
+
Math.min(SETTLE_MS * 2 ** tries, ADOPT_RETRY_AT_MOST_MS)
|
|
2229
|
+
);
|
|
2230
|
+
timer.unref?.();
|
|
2231
|
+
}
|
|
2232
|
+
async recordAdopted(file, sweptAt, first) {
|
|
2233
|
+
if (typeof first === "string" || this.whereFolder() !== "here") return first;
|
|
2234
|
+
const kept = this.blobs.has(first.hash) || isUncopied(file.path, file.size);
|
|
2235
|
+
const copied = kept ? first : await this.storeIfPresent(file.path);
|
|
2236
|
+
if (typeof copied === "string") return copied;
|
|
2237
|
+
const { hash } = copied;
|
|
2179
2238
|
const change = { path: file.path, before: null, after: hash };
|
|
2180
2239
|
const found = this.overwrittenBy(change, void 0, /* @__PURE__ */ new Set());
|
|
2181
2240
|
const start = found && this.blobs.has(found) ? found : hash;
|
|
@@ -2184,6 +2243,7 @@ var Engine = class {
|
|
|
2184
2243
|
if (start !== hash) addChange(this.outsideGroup(), file.path, start, hash);
|
|
2185
2244
|
this.persistLog(baselineRecord(this.log));
|
|
2186
2245
|
this.saveStatCache();
|
|
2246
|
+
return copied;
|
|
2187
2247
|
}
|
|
2188
2248
|
manifest() {
|
|
2189
2249
|
return new Map([...this.tracked].map(([path, file]) => [path, file.hash]));
|
|
@@ -2214,11 +2274,11 @@ var Engine = class {
|
|
|
2214
2274
|
* Takes in every write since the last sweep and files each change to its writer. ponytail: always the whole
|
|
2215
2275
|
* project (a stat per file, a hash only when the stat moved); per-path sweeps if projects reach tens of thousands.
|
|
2216
2276
|
*/
|
|
2217
|
-
async sweep() {
|
|
2277
|
+
async sweep(asItStands = /* @__PURE__ */ new Set()) {
|
|
2218
2278
|
if (this.whereFolder() !== "here") return;
|
|
2219
2279
|
const sweptAt = this.now();
|
|
2220
2280
|
const changedAt = (file) => Math.min(sweptAt, Math.max(file.mtimeMs, file.ctimeMs));
|
|
2221
|
-
const seen = historyFiles(this.dir).filter((file) => !this.adopting.has(file.path));
|
|
2281
|
+
const seen = (await historyFiles(this.dir)).filter((file) => !this.adopting.has(file.path));
|
|
2222
2282
|
const heard = new Map(this.overwritten);
|
|
2223
2283
|
const present = new Set(seen.map((file) => file.path));
|
|
2224
2284
|
const removed = [...this.tracked.keys()].filter((path) => !present.has(path)).map((path) => {
|
|
@@ -2233,8 +2293,14 @@ var Engine = class {
|
|
|
2233
2293
|
...removed,
|
|
2234
2294
|
...seen.map((file) => ({ at: appearedAt(file), path: file.path, file }))
|
|
2235
2295
|
].sort((a, b) => a.at - b.at);
|
|
2296
|
+
const waitsForQuiet = (path, file, at) => file.size === 0 && asItStands !== "every" && !asItStands.has(path) && isSettling(file, sweptAt) && !this.windows.some((open2) => takesWrite(open2, at));
|
|
2236
2297
|
let changed = false;
|
|
2298
|
+
let waiting = false;
|
|
2237
2299
|
for (const { at, path, file } of events) {
|
|
2300
|
+
if (file && waitsForQuiet(path, file, at)) {
|
|
2301
|
+
waiting = true;
|
|
2302
|
+
continue;
|
|
2303
|
+
}
|
|
2238
2304
|
if (file) {
|
|
2239
2305
|
changed = await this.observe(path, statKey(file, sweptAt), at) || changed;
|
|
2240
2306
|
continue;
|
|
@@ -2246,15 +2312,18 @@ var Engine = class {
|
|
|
2246
2312
|
changed = true;
|
|
2247
2313
|
}
|
|
2248
2314
|
if (changed) this.saveStatCache();
|
|
2315
|
+
if (waiting) this.sweepIn(SETTLE_MS);
|
|
2249
2316
|
}
|
|
2250
|
-
/** The file's hash once copied in
|
|
2317
|
+
/** The file's hash once copied in, or why there is none: gone, or still changing through every read. */
|
|
2251
2318
|
async storeIfPresent(path) {
|
|
2252
2319
|
try {
|
|
2253
2320
|
const abs = join8(this.dir, path);
|
|
2254
2321
|
const { size } = await stat2(abs);
|
|
2255
|
-
|
|
2322
|
+
if (isUncopied(path, size)) return { hash: await this.blobs.reference(abs) };
|
|
2323
|
+
const hash = await this.blobs.put(abs);
|
|
2324
|
+
return hash === null ? "changing" : { hash };
|
|
2256
2325
|
} catch (error) {
|
|
2257
|
-
if (error.code === "ENOENT") return
|
|
2326
|
+
if (error.code === "ENOENT") return "gone";
|
|
2258
2327
|
throw error;
|
|
2259
2328
|
}
|
|
2260
2329
|
}
|
|
@@ -2262,8 +2331,9 @@ var Engine = class {
|
|
|
2262
2331
|
const known = this.tracked.get(path) ?? { hash: null, stat: null };
|
|
2263
2332
|
if (stat4 && known.stat === stat4) return false;
|
|
2264
2333
|
const heard = this.overwritten.get(path);
|
|
2265
|
-
const
|
|
2266
|
-
if (
|
|
2334
|
+
const copied = await this.storeIfPresent(path);
|
|
2335
|
+
if (typeof copied === "string" || this.whereFolder() !== "here") return false;
|
|
2336
|
+
const { hash } = copied;
|
|
2267
2337
|
this.tracked.set(path, { hash, stat: stat4 });
|
|
2268
2338
|
this.forgetWritesBefore(path, hash, heard);
|
|
2269
2339
|
if (known.hash !== hash) await this.record(path, known.hash, hash, at);
|
|
@@ -2279,7 +2349,7 @@ var Engine = class {
|
|
|
2279
2349
|
}
|
|
2280
2350
|
/** ponytail: another's write between Studio's write and its sweep folds into Studio's entry (per-write tokens). */
|
|
2281
2351
|
async claimNow(who, label, paths, { coalesceKey, idleMs, overwrote = {}, targets = [] }) {
|
|
2282
|
-
await this.sweep();
|
|
2352
|
+
await this.sweep(new Set(paths.map((path) => this.logPath(path))));
|
|
2283
2353
|
const taken = await this.takeClaimed(who, paths, overwrote);
|
|
2284
2354
|
if (!taken.length) return this.claimNothing(coalesceKey);
|
|
2285
2355
|
const held = this.heldFor(coalesceKey, taken);
|
|
@@ -2481,7 +2551,7 @@ var Engine = class {
|
|
|
2481
2551
|
}
|
|
2482
2552
|
/** Before an operation or a window: every write is filed and every pending change committed, in write order. */
|
|
2483
2553
|
async settle() {
|
|
2484
|
-
await this.sweep();
|
|
2554
|
+
await this.sweep("every");
|
|
2485
2555
|
await this.commitClaim();
|
|
2486
2556
|
await this.commitPending();
|
|
2487
2557
|
}
|
|
@@ -2490,10 +2560,14 @@ var Engine = class {
|
|
|
2490
2560
|
const absolute = resolve8(this.dir, path);
|
|
2491
2561
|
if (this.notedTimer || !affectsProjectSignature(this.dir, absolute)) return;
|
|
2492
2562
|
if (!isHistoryPath(relative5(this.dir, absolute).split(sep5).join("/"))) return;
|
|
2563
|
+
this.sweepIn(20);
|
|
2564
|
+
}
|
|
2565
|
+
sweepIn(ms) {
|
|
2566
|
+
if (this.notedTimer || this.closed) return;
|
|
2493
2567
|
this.notedTimer = setTimeout(() => {
|
|
2494
2568
|
this.notedTimer = null;
|
|
2495
2569
|
this.background(() => this.sweep());
|
|
2496
|
-
},
|
|
2570
|
+
}, ms);
|
|
2497
2571
|
this.notedTimer.unref?.();
|
|
2498
2572
|
}
|
|
2499
2573
|
background(task) {
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
refreshIfNeeded,
|
|
25
25
|
resolveCloudBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ZLDYDO64.js";
|
|
27
27
|
import {
|
|
28
28
|
buildAuthHeaders,
|
|
29
29
|
tryResolveCredential
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7NDF2MO3.js";
|
|
31
31
|
import {
|
|
32
32
|
HyperframesCloudClient
|
|
33
33
|
} from "./chunk-D3NWGOXW.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-262C25DQ.js";
|
|
13
13
|
import {
|
|
14
14
|
pageNavigationTimeoutMs
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AGHSWES2.js";
|
|
16
16
|
import {
|
|
17
17
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
18
18
|
} from "./chunk-YGGZ23BB.js";
|
|
@@ -23,19 +23,19 @@ import {
|
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode,
|
|
25
25
|
rethrowAfterBrowserCleanup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AOPNJEQC.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveLocalBrowserGpuMode,
|
|
29
29
|
resolveLocalWebGpu
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LDTJCZZ2.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-7GJKUOPX.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-NIMSUB4P.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-XZNME57Y.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-NIMSUB4P.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-NIMSUB4P.js");
|
|
229
229
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
230
230
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
231
231
|
let softwareWebGpu = false;
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-TSYRN646.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchLocalPageUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PGZSYDLZ.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-7GJKUOPX.js";
|
|
29
29
|
import {
|
|
30
30
|
DOMParser,
|
|
31
31
|
parseHTML
|