hyperframes 0.8.206 → 0.8.208
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 +1 -0
- package/dist/{add-FFMNAJXJ.js → add-XMWRBMBR.js} +22 -20
- package/dist/{agentPromptGenerator-KYO5MKTW.js → agentPromptGenerator-4NJ252MR.js} +6 -2
- package/dist/{animatedGifPrep-BIIIIVWL.js → animatedGifPrep-6XURJIPV.js} +14 -13
- package/dist/api.js +33 -32
- package/dist/{appHistory-QVCSAOI4.js → appHistory-HIBH6XZW.js} +3 -1
- package/dist/{asset-IPUHGZSL.js → asset-I5GGEOB2.js} +2 -2
- package/dist/{assetCataloger-M5FWXLAJ.js → assetCataloger-YBPXUNUP.js} +17 -14
- package/dist/{audio-VYWWM4DB.js → audio-GFJCHH5W.js} +420 -138
- package/dist/{auth-GZQZCUPL.js → auth-QOA55RYR.js} +4 -4
- package/dist/{autoUpdate-GJUDDLLO.js → autoUpdate-SPS4QPJU.js} +4 -4
- package/dist/{backgroundChecks-BTMSW34Z.js → backgroundChecks-HRJO7YK7.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-LI2BJRGO.js → batchRender-FBP3RKUF.js} +11 -10
- package/dist/{beats-H73CSYT4.js → beats-VNGJ7F6W.js} +32 -25
- package/dist/{benchmark-XT3A5REC.js → benchmark-NZ3N3MIV.js} +16 -16
- package/dist/{browser-VIOK66YK.js → browser-BD5BKRJ5.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-PFRVWYOO.js → bundleWithLocalizedFonts-WXVNPAWD.js} +3 -3
- package/dist/{capture-KKD5GMAF.js → capture-CXWXKWS5.js} +120 -54
- package/dist/{capture-252WNPCD.js → capture-LMJ4TQRL.js} +63 -17
- package/dist/{captureCompositionFrame-YLYVGNN2.js → captureCompositionFrame-ZKVCRYYU.js} +21 -20
- package/dist/{captureFile-LYOJOUIE.js → captureFile-VIVGKFY4.js} +2 -1
- package/dist/{catalog-6IJGNN3T.js → catalog-WRXQSCAU.js} +28 -26
- package/dist/{catch-up-BFW7Z35W.js → catch-up-MDSPABFC.js} +7 -7
- package/dist/{check-XUWBZASR.js → check-SIBBK5HA.js} +53 -52
- package/dist/{checkAudio-2NRR3VHQ.js → checkAudio-QQBR4HR7.js} +19 -18
- package/dist/{checkBrowser-JW74KWTF.js → checkBrowser-4EBJLLIH.js} +45 -44
- package/dist/{chunk-XDMZY3H7.js → chunk-3O2E4Q66.js} +15 -20
- package/dist/{chunk-VEA7Z4PZ.js → chunk-43MW4SY7.js} +15 -7
- package/dist/{chunk-HJAJ6W4V.js → chunk-4F5NRJ6M.js} +2 -2
- package/dist/{chunk-2RT7MXFL.js → chunk-4HT2L6W2.js} +1 -1
- package/dist/{chunk-QVTCXN42.js → chunk-4KG3ESVO.js} +30 -4
- package/dist/{chunk-42KN6I6A.js → chunk-4LTBQEPD.js} +2 -2
- package/dist/{chunk-C6KE4AFW.js → chunk-56ANHX5U.js} +1 -1
- package/dist/{chunk-NVLPW3DG.js → chunk-5HB4JM7H.js} +2 -2
- package/dist/{chunk-2ST4WAFY.js → chunk-5PCALX6G.js} +13 -1
- package/dist/{chunk-AYH5ANVS.js → chunk-5YHQBCWH.js} +52 -3
- package/dist/{chunk-X5HHHFTX.js → chunk-6CWKORZO.js} +3 -3
- package/dist/{chunk-ZF3R2IPC.js → chunk-6DSYBW7Z.js} +1 -0
- package/dist/{chunk-VHVSBOZH.js → chunk-6JNSYFOH.js} +4 -4
- package/dist/{chunk-AJSU6KGS.js → chunk-6N7D2GUV.js} +15 -15
- package/dist/{chunk-F2ASNL2K.js → chunk-6PWQH77E.js} +1 -1
- package/dist/{chunk-ZNAOBFU5.js → chunk-6WRN4WC6.js} +1 -1
- package/dist/{chunk-GAV56VJL.js → chunk-7CPI2DWL.js} +2 -2
- package/dist/{chunk-CMDVJP4T.js → chunk-7PAK7LZ5.js} +11 -11
- package/dist/{chunk-3CISA3OS.js → chunk-AF3L5JJX.js} +1 -1
- package/dist/{chunk-X7RXXBYM.js → chunk-B5MPMIKQ.js} +2 -2
- package/dist/{chunk-RW4DMP2Y.js → chunk-BKDQFOKK.js} +4 -4
- package/dist/{chunk-DZG565OO.js → chunk-BLCKQPBE.js} +1 -1
- package/dist/chunk-BQMAPNDA.js +4830 -0
- package/dist/{chunk-CPSGXAYD.js → chunk-CP225S5H.js} +3 -3
- package/dist/{chunk-3R6SXPHD.js → chunk-CSWCZA6V.js} +3 -3
- package/dist/{chunk-4CY5RXXC.js → chunk-D2CE2J2A.js} +4 -4
- package/dist/{chunk-FMWACL3L.js → chunk-DHQSDCWD.js} +6 -2
- package/dist/chunk-DROFHVQD.js +240 -0
- package/dist/{chunk-OZUAVHFE.js → chunk-DXACKQ3F.js} +3 -3
- package/dist/{chunk-5QKJPCQ4.js → chunk-EGOXYG3M.js} +2 -2
- package/dist/{chunk-QL4ZYSIB.js → chunk-ENRFKCI6.js} +5 -71
- package/dist/{chunk-MRF4AMKD.js → chunk-EQBDKYXR.js} +5 -10
- package/dist/{chunk-4UMPIPCQ.js → chunk-ERUQ3S6D.js} +2 -2
- package/dist/{chunk-T2EUWCJE.js → chunk-EU7MVORF.js} +13 -1
- package/dist/{chunk-FULMZCDW.js → chunk-EYEEZXLI.js} +11 -11
- package/dist/{chunk-2MLMO25E.js → chunk-FC4WT5FX.js} +105 -7
- package/dist/{chunk-PLGGKTCB.js → chunk-FFDYRJBE.js} +37 -21
- package/dist/{chunk-7SXL476O.js → chunk-G2A6RC5R.js} +72 -28
- package/dist/{chunk-HTIUNMTP.js → chunk-GDZA4ALG.js} +8 -2
- package/dist/{chunk-CZYS6UKP.js → chunk-GEO6THL3.js} +61 -30
- package/dist/{chunk-MFHYBSJC.js → chunk-GHSO62LK.js} +3 -3
- package/dist/{chunk-P2I4RLJE.js → chunk-HTZJNQYI.js} +1 -1
- package/dist/{chunk-4DGLKB2H.js → chunk-HUKQW4YE.js} +1 -1
- package/dist/{chunk-WYB3VKLK.js → chunk-HZN7ICAF.js} +8 -8
- package/dist/{chunk-6ZFDNEMY.js → chunk-IIJVSCSH.js} +16 -16
- package/dist/{chunk-VDVVQNTK.js → chunk-IL2TMC6F.js} +5 -5
- package/dist/{chunk-L5MFWGGU.js → chunk-J67FSI3Q.js} +623 -376
- package/dist/chunk-JLCAHJUO.js +91 -0
- package/dist/{chunk-N7ZMDVAK.js → chunk-JLGVBK5M.js} +1 -1
- package/dist/{chunk-SFYLZX5C.js → chunk-K4PHB3YQ.js} +59 -15
- package/dist/{chunk-G6W55MTX.js → chunk-KTWGVEN6.js} +40 -11
- package/dist/{chunk-FNNGQ3DB.js → chunk-LSMFOZ4F.js} +2 -2
- package/dist/{chunk-ELP5QZWL.js → chunk-M4QZFUMW.js} +1 -1
- package/dist/{chunk-PNKLOMHQ.js → chunk-MBGM26P5.js} +17 -22
- package/dist/{chunk-ZTEKVSZ6.js → chunk-MMJAHBH2.js} +1 -1
- package/dist/{chunk-RDDVQSNQ.js → chunk-MPO25DQW.js} +451 -208
- package/dist/{chunk-E2ZZSDDQ.js → chunk-MW2NQQ6Z.js} +2 -2
- package/dist/{chunk-TSJVPPXT.js → chunk-MYO77JWR.js} +1 -1
- package/dist/{chunk-PSX5SF2N.js → chunk-NEASABW6.js} +1 -1
- package/dist/{chunk-OFRRUYBA.js → chunk-NHA4NRBE.js} +135 -24
- package/dist/{chunk-NNLQTG3M.js → chunk-NZ6G5YWZ.js} +2 -2
- package/dist/{chunk-WHD5IAHI.js → chunk-ORFRUZPB.js} +2 -2
- package/dist/{chunk-Z3XXLTVB.js → chunk-OTXXDONS.js} +3 -3
- package/dist/{chunk-2S263R6D.js → chunk-P7WGVXR7.js} +9 -9
- package/dist/{chunk-AXEEZKIL.js → chunk-PKVA6MPV.js} +6 -6
- package/dist/{chunk-FJW757TF.js → chunk-PSOAGSNO.js} +2 -2
- package/dist/{chunk-AEC4T4IF.js → chunk-PWEOSJ3E.js} +12 -12
- package/dist/{chunk-X7A7C4JS.js → chunk-Q43YUROE.js} +3 -3
- package/dist/{chunk-PQYWYBEQ.js → chunk-QP2MJYTJ.js} +1 -1
- package/dist/{chunk-VW2LVMKB.js → chunk-QWBVPWUI.js} +47 -55
- package/dist/{chunk-AAX2A7LQ.js → chunk-S2OLTAEL.js} +2 -2
- package/dist/{chunk-CNVHMLPI.js → chunk-S4KHJERB.js} +1 -1
- package/dist/{chunk-2BGOB2QK.js → chunk-SE2MXV2N.js} +136 -25
- package/dist/{chunk-3CS6QYL7.js → chunk-SI7QCT2J.js} +8 -8
- package/dist/{chunk-CIHW6VM2.js → chunk-SKKQMW5X.js} +1 -1
- package/dist/{chunk-3B2DBUQX.js → chunk-TNTGGDSD.js} +1 -1
- package/dist/chunk-TSYRN646.js +84 -0
- package/dist/{chunk-XOM3XTJ4.js → chunk-U6KN6OIP.js} +2 -2
- package/dist/{chunk-63DGZRZP.js → chunk-ULL3U6PV.js} +1 -1
- package/dist/{chunk-IXXVS2Z4.js → chunk-VQB7G5BM.js} +1 -1
- package/dist/{chunk-UMUVGNOH.js → chunk-VR3JLTZD.js} +3 -3
- package/dist/{chunk-DEVZJ4AL.js → chunk-VS4SK7BN.js} +17 -11
- package/dist/{chunk-6N65ZMC5.js → chunk-VYRJAQGC.js} +1 -1
- package/dist/{chunk-FLREUEHW.js → chunk-W4DMQZL5.js} +1 -1
- package/dist/chunk-WABB4LZS.js +62 -0
- package/dist/{chunk-RXATE6FZ.js → chunk-WC4MTXGN.js} +22 -0
- package/dist/{chunk-36QE3P6B.js → chunk-WNMVC3IT.js} +1 -1
- package/dist/{chunk-T6SD37JZ.js → chunk-X6MCIK7L.js} +103 -16
- package/dist/chunk-XFMO3BEN.js +71 -0
- package/dist/{chunk-BBUK6A7Q.js → chunk-XG3IZV62.js} +7 -7
- package/dist/chunk-XMRA7CQG.js +22 -0
- package/dist/{chunk-G6QDFWDN.js → chunk-XOFBXLMG.js} +2 -2
- package/dist/{chunk-H4JO7VSI.js → chunk-XUQYC5DD.js} +12 -12
- package/dist/chunk-Z5J67X44.js +40 -0
- package/dist/{chunk-HEP5XMXV.js → chunk-Z5TGBEPJ.js} +9 -2
- package/dist/{chunk-7JAD4MEW.js → chunk-ZA5TNF4R.js} +1 -0
- package/dist/{clean-N5VSKUVS.js → clean-6GX7WAEC.js} +32 -31
- package/dist/cli.js +58 -58
- package/dist/{cloud-74NF5FXC.js → cloud-6PFJKLNL.js} +4 -4
- package/dist/{cloudrun-7UOH335V.js → cloudrun-UGG3ZFH7.js} +13 -12
- package/dist/commands/layout-audit.browser.js +3 -15
- package/dist/{compare-AY2LS2TZ.js → compare-P4EBOP4B.js} +46 -45
- package/dist/{compiler-4MHMC777.js → compiler-PG4RKX6K.js} +8 -8
- package/dist/{component-CFWQOAZI.js → component-SQPMI3W7.js} +3 -3
- package/dist/{compositions-DXLJTDSP.js → compositions-KRIHY3IY.js} +20 -19
- package/dist/{contactSheet-5APX35L3.js → contactSheet-RYAE7Y5D.js} +3 -2
- package/dist/{delete-GB4MS7LM.js → delete-T5TO4SV6.js} +7 -7
- package/dist/{deploy-NXD3Q3KD.js → deploy-AO6LQR5G.js} +6 -6
- package/dist/{deterministicFonts-775YXAQ2.js → deterministicFonts-LKAGUNE5.js} +3 -3
- package/dist/{dist-3ZJMZU75.js → dist-23AAB5X2.js} +36 -36
- package/dist/{dist-ZY6IFESG.js → dist-6IMEDVMC.js} +6 -3
- package/dist/docker/Dockerfile.render +1 -1
- package/dist/docs/rendering.md +3 -0
- package/dist/{doctor-CVY2XXKS.js → doctor-QBUJQ655.js} +23 -22
- package/dist/{events-RYQYEWBV.js → events-J7CESLKQ.js} +4 -4
- package/dist/{events-T3CLIYRG.js → events-SIZO7YHI.js} +5 -5
- package/dist/{feedback-K5ZMMLTA.js → feedback-74WOJ5PN.js} +22 -22
- package/dist/{ffmpeg-UNDAJ2IC.js → ffmpeg-AKUP6U2S.js} +17 -16
- package/dist/{figma-MYYCX635.js → figma-GGMYRR4Q.js} +3 -3
- package/dist/fontLocalizeCli.js +21 -19
- package/dist/{get-JVIDYMVP.js → get-PLKAI6JM.js} +7 -7
- package/dist/{gpuPolicy-KEX7GDRJ.js → gpuPolicy-EYDAAPJF.js} +14 -13
- package/dist/{grade-compare-QEF6VASJ.js → grade-compare-UADJP4AV.js} +44 -43
- package/dist/{gsapParserAcorn-LZJKCFQI.js → gsapParserAcorn-5YD4N6HQ.js} +2 -2
- package/dist/hangReport.js +47 -0
- package/dist/{heifImagePrep-A3ZPVQGU.js → heifImagePrep-KDF3OPOK.js} +15 -14
- package/dist/{help-XPPSLIRY.js → help-WSQQ555Q.js} +1 -1
- package/dist/{history-OFOPRD27.js → history-VSQ2DQ3V.js} +110 -62
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +76 -71
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-7RF6FQX5.js → info-MOQ4LRC3.js} +18 -18
- package/dist/{init-NTIXWA3D.js → init-EONQSZJG.js} +62 -60
- package/dist/{inspect-MYMCV5E7.js → inspect-OLCVLHOU.js} +43 -42
- package/dist/{installer-PYJIJ3PJ.js → installer-GHISA75B.js} +10 -10
- package/dist/{keyframes-UJ52PYE4.js → keyframes-DGQYCY24.js} +13 -13
- package/dist/{lambda-SBNUYEQE.js → lambda-AMMWF2YH.js} +35 -15
- package/dist/{layout-IOMCOABO.js → layout-R6CAPGRO.js} +43 -42
- package/dist/{lint-AQWHHMPS.js → lint-QZJEYPHD.js} +14 -11
- package/dist/{lintProject-5A4SCW3S.js → lintProject-W3YVHAGP.js} +6 -3
- package/dist/{list-WKAJ5SP3.js → list-KCJID4SP.js} +7 -7
- package/dist/localPage-V3HBGM3Z.js +27 -0
- package/dist/{login-3ZDK5JOA.js → login-7HKBEPJS.js} +7 -7
- package/dist/{logout-JYFWWUGK.js → logout-3IID4KXD.js} +3 -3
- package/dist/{manager-QYFYWZOK.js → manager-6YSKJMVD.js} +19 -18
- package/dist/{manager-F2YREC5X.js → manager-Z7W4GQGF.js} +9 -5
- package/dist/{media-treatment-4OLWVHUY.js → media-treatment-E3DL6LEZ.js} +34 -31
- package/dist/{models-MR55FAUX.js → models-URWI7YEG.js} +30 -29
- package/dist/{motionShot-DC47S7BT.js → motionShot-27IXMDJK.js} +25 -24
- package/dist/{normalize-audio-M2TK4NG5.js → normalize-audio-WGRLPR3P.js} +16 -16
- package/dist/{open-YXWBWTKL.js → open-LQ35PLEN.js} +21 -21
- package/dist/{parakeetRunner-J6QR3GTG.js → parakeetRunner-XASVIDTI.js} +27 -26
- package/dist/{pipeline-7MJ5H4SW.js → pipeline-GA7QVCHS.js} +18 -17
- package/dist/{play-S562STR4.js → play-RYZP77CI.js} +31 -31
- package/dist/{policies-GHVXA5PE.js → policies-PKLD4UW5.js} +1 -1
- package/dist/{preflight-QWGXMISC.js → preflight-HJFSJXXF.js} +19 -18
- package/dist/{present-PGOHZT3L.js → present-YBMLOWZV.js} +26 -26
- package/dist/{preview-JU75H4QN.js → preview-QIRKJCRV.js} +52 -39
- package/dist/{producer-H66OMZLW.js → producer-524FDOLX.js} +1 -1
- package/dist/{projectConfig-COSP24YT.js → projectConfig-IDQN5ZRW.js} +14 -13
- package/dist/{publication-J3XYHPGB.js → publication-3X3IGSDO.js} +8 -8
- package/dist/{publish-7GCCEPJZ.js → publish-2BF7K6HX.js} +21 -20
- package/dist/{refresh-USSFPJAU.js → refresh-3IRHJEQA.js} +3 -3
- package/dist/{remove-background-WRCGIU32.js → remove-background-EZBCEFT6.js} +22 -21
- package/dist/{render-QS3YJCBR.js → render-EFUA2A6A.js} +15 -11
- package/dist/{render-VUVTK2JM.js → render-JFMTAXHD.js} +87 -53
- package/dist/{render-5J5PP3UK.js → render-TEEBI2UT.js} +49 -43
- package/dist/{render-batch-Q2LQ3D4P.js → render-batch-XTYNXVSW.js} +16 -12
- package/dist/renderSetupWorker.js +12 -9
- package/dist/{resolver-QCBWPRSC.js → resolver-FZS6TN6B.js} +10 -10
- package/dist/{screenshotCapture-I5EDCITF.js → screenshotCapture-HOW4VSV6.js} +3 -2
- package/dist/{sherpa-IZ22SC5W.js → sherpa-TQIAIKTH.js} +26 -25
- package/dist/skills/hyperframes/SKILL.md +1 -1
- package/dist/skills/hyperframes/references/format.md +1 -0
- package/dist/skills/hyperframes-cli/references/beats.md +2 -0
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -0
- package/dist/skills/hyperframes-cli/references/lambda.md +3 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +3 -0
- package/dist/skills/media-use/references/grading.md +2 -0
- package/dist/skills/media-use/references/local.md +1 -0
- package/dist/{skills-3RFMPMJA.js → skills-S6ZG5KKH.js} +10 -10
- package/dist/{skillsUpdateCheck-DWBFVUBT.js → skillsUpdateCheck-XC7JQL3F.js} +5 -5
- package/dist/{snapshot-5PHA43DK.js → snapshot-ERYZIM32.js} +152 -80
- package/dist/{src-4YJKYMNF.js → src-6XOMREMS.js} +21 -12
- package/dist/{src-36BQVJL3.js → src-OL6RHPE4.js} +22 -20
- package/dist/{staticProjectServer-3XFB76XS.js → staticProjectServer-JYDDGPAH.js} +26 -26
- package/dist/{status-LR7VXITS.js → status-DTP6ZYDU.js} +3 -3
- package/dist/studio/assets/hyperframes-player-5dRdMVOq.js +478 -0
- package/dist/studio/assets/{index-CwreIGoq.js → index-Bu3mJUU2.js} +131 -131
- package/dist/studio/assets/{index-BNuxGFZK.js → index-ZqyQ91pm.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-WL6EZ4KE.js → studio-api-GRU4SHKD.js} +18 -18
- package/dist/{studioServer-ZS5RA6U3.js → studioServer-OYPBEI5B.js} +76 -73
- package/dist/{synthesize-QCRP3NI7.js → synthesize-QZHRXGRY.js} +26 -4
- package/dist/{telemetry-IHU4HL3R.js → telemetry-6BPSGY5W.js} +2 -2
- package/dist/{telemetry-W3LRO3TB.js → telemetry-CPYINR63.js} +5 -5
- package/dist/{timeline-BDO5DYWP.js → timeline-RGK5BMPD.js} +34 -33
- package/dist/{tokens-47CEMYFV.js → tokens-EX4BOWRW.js} +2 -2
- package/dist/{transcribe-XF3NL6JI.js → transcribe-MK367I6A.js} +24 -23
- package/dist/{transcribe-GEPVJO3A.js → transcribe-RI52JMVW.js} +35 -34
- package/dist/{tts-QM4RFE7U.js → tts-AY4JO5NQ.js} +2 -2
- package/dist/{updateCheck-BON6ZFYP.js → updateCheck-BIEJKQI4.js} +4 -4
- package/dist/{upgrade-KIF5Z4J3.js → upgrade-ES3UUI7O.js} +4 -4
- package/dist/upstreamProxy-W5FWAT5Z.js +17 -0
- package/dist/{urlDownloader-UDRHVUWR.js → urlDownloader-XAGYSTAG.js} +13 -12
- package/dist/{validate-2OPSQT3W.js → validate-A6GZHNEI.js} +36 -35
- package/dist/{video-ECWXMY4F.js → video-OEMGR3MN.js} +19 -15
- package/dist/warmCheck.js +53 -52
- package/package.json +2 -1
- package/dist/chunk-4YYJOFKS.js +0 -28
- package/dist/chunk-KLIPVNCO.js +0 -4824
- package/dist/studio/assets/hyperframes-player-lCVwx9d3.js +0 -478
- package/dist/{destroy-SSPAKADI.js → destroy-CGAZIL2C.js} +4 -4
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6CWKORZO.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-LSMFOZ4F.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4HT2L6W2.js";
|
|
31
31
|
import {
|
|
32
32
|
PARAKEET_MODEL_LABEL,
|
|
33
33
|
SHERPA_ERROR_PREFIX,
|
|
@@ -6,14 +6,14 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Z5TGBEPJ.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_HISTORY_ROOT,
|
|
12
12
|
HistoryBusyError,
|
|
13
13
|
MAX_WINDOW_IDLE_MS,
|
|
14
14
|
openProjectHistory,
|
|
15
15
|
readProjectHistory
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3O2E4Q66.js";
|
|
17
17
|
import {
|
|
18
18
|
findPreviewServerForProject,
|
|
19
19
|
studioApiUrl
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import { dirname, join, resolve } from "path";
|
|
34
34
|
var historyDeps = {
|
|
35
35
|
historyRoot: resolve(process.env.HYPERFRAMES_HISTORY_ROOT || DEFAULT_HISTORY_ROOT),
|
|
36
|
-
findServer: (projectDir) => findPreviewServerForProject(projectDir),
|
|
36
|
+
findServer: async (projectDir) => process.env.HYPERFRAMES_NO_PREVIEW_DISCOVERY === "1" ? null : findPreviewServerForProject(projectDir),
|
|
37
37
|
/** A turn with no write for this long has ended, through a preview or not. */
|
|
38
38
|
turnIdleMs: MAX_WINDOW_IDLE_MS,
|
|
39
39
|
ownerWaitMs: void 0,
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
runRenderSetupWorker
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
HYPERFRAMES_BROWSER_MARKER_ARG
|
|
12
|
-
} from "./chunk-K4MJX7SR.js";
|
|
9
|
+
} from "./chunk-Q43YUROE.js";
|
|
13
10
|
import {
|
|
14
11
|
terminateProcessTree
|
|
15
12
|
} from "./chunk-KGPLIH7B.js";
|
|
13
|
+
import {
|
|
14
|
+
HYPERFRAMES_BROWSER_MARKER_ARG
|
|
15
|
+
} from "./chunk-K4MJX7SR.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/orphanCleanup.ts
|
|
18
18
|
import { execFileSync } from "child_process";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PSOAGSNO.js";
|
|
12
12
|
import {
|
|
13
13
|
CliRuntimeError
|
|
14
14
|
} from "./chunk-JVBRJMOP.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-QSFWGZG6.js";
|
|
21
21
|
import {
|
|
22
22
|
readConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NEASABW6.js";
|
|
24
24
|
|
|
25
25
|
// src/utils/feedbackRating.ts
|
|
26
26
|
var FEEDBACK_RATING_SCALE = 10;
|
|
@@ -556,6 +556,10 @@ function trackCheckReport(props) {
|
|
|
556
556
|
launch_settle_ms: props.launchSettleMs,
|
|
557
557
|
seek_loop_ms: props.seekLoopMs,
|
|
558
558
|
contrast_ms: props.contrastMs,
|
|
559
|
+
grid_ms: props.gridMs,
|
|
560
|
+
craft_ms: props.craftMs,
|
|
561
|
+
overlap_ms: props.overlapMs,
|
|
562
|
+
composition_s: props.durationSec,
|
|
559
563
|
grid_points: props.gridPoints,
|
|
560
564
|
contrast_points: props.contrastPoints,
|
|
561
565
|
ok: props.ok,
|
|
@@ -0,0 +1,240 @@
|
|
|
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
|
+
writeCaptureFileSync
|
|
9
|
+
} from "./chunk-EQBDKYXR.js";
|
|
10
|
+
|
|
11
|
+
// src/capture/localPage.ts
|
|
12
|
+
import {
|
|
13
|
+
createReadStream,
|
|
14
|
+
readdirSync,
|
|
15
|
+
readFileSync,
|
|
16
|
+
realpathSync,
|
|
17
|
+
statSync
|
|
18
|
+
} from "fs";
|
|
19
|
+
import { realpath, stat } from "fs/promises";
|
|
20
|
+
import { createServer } from "http";
|
|
21
|
+
import { basename, dirname, extname, isAbsolute, join, relative, resolve, sep } from "path";
|
|
22
|
+
import { Readable } from "stream";
|
|
23
|
+
import { fileURLToPath, pathToFileURL } from "url";
|
|
24
|
+
var CONTENT_TYPES = {
|
|
25
|
+
".html": "text/html; charset=utf-8",
|
|
26
|
+
".htm": "text/html; charset=utf-8",
|
|
27
|
+
".css": "text/css; charset=utf-8",
|
|
28
|
+
".js": "text/javascript; charset=utf-8",
|
|
29
|
+
".mjs": "text/javascript; charset=utf-8",
|
|
30
|
+
".json": "application/json",
|
|
31
|
+
".svg": "image/svg+xml",
|
|
32
|
+
".png": "image/png",
|
|
33
|
+
".jpg": "image/jpeg",
|
|
34
|
+
".jpeg": "image/jpeg",
|
|
35
|
+
".gif": "image/gif",
|
|
36
|
+
".webp": "image/webp",
|
|
37
|
+
".avif": "image/avif",
|
|
38
|
+
".ico": "image/x-icon",
|
|
39
|
+
".woff": "font/woff",
|
|
40
|
+
".woff2": "font/woff2",
|
|
41
|
+
".ttf": "font/ttf",
|
|
42
|
+
".otf": "font/otf",
|
|
43
|
+
".mp4": "video/mp4",
|
|
44
|
+
".webm": "video/webm",
|
|
45
|
+
".mov": "video/quicktime",
|
|
46
|
+
".mp3": "audio/mpeg",
|
|
47
|
+
".wav": "audio/wav",
|
|
48
|
+
".txt": "text/plain; charset=utf-8"
|
|
49
|
+
};
|
|
50
|
+
var activeSites = /* @__PURE__ */ new Map();
|
|
51
|
+
function localSiteName(entry) {
|
|
52
|
+
const stem = basename(entry, extname(entry));
|
|
53
|
+
const name = stem.toLowerCase() === "index" ? basename(dirname(entry)) : stem;
|
|
54
|
+
return name.toLowerCase().replace(/[^a-z0-9._-]+/g, "-").replace(/^-+|-+$/g, "") || "local";
|
|
55
|
+
}
|
|
56
|
+
function captureSiteName(url) {
|
|
57
|
+
const parsed = new URL(url);
|
|
58
|
+
return activeSites.get(parsed.origin)?.name ?? parsed.hostname.replace(/^www\./, "");
|
|
59
|
+
}
|
|
60
|
+
function isInside(root, path) {
|
|
61
|
+
const rel = relative(root, path);
|
|
62
|
+
return rel === "" || !!rel && !rel.startsWith(`..${sep}`) && rel !== ".." && !isAbsolute(rel);
|
|
63
|
+
}
|
|
64
|
+
function resolveLocalCaptureTarget(target, root) {
|
|
65
|
+
const path = resolve(target.startsWith("file:") ? fileURLToPath(target) : target);
|
|
66
|
+
let entry;
|
|
67
|
+
let directory;
|
|
68
|
+
try {
|
|
69
|
+
entry = realpathSync.native(path);
|
|
70
|
+
directory = realpathSync.native(dirname(path));
|
|
71
|
+
if (statSync(entry).isDirectory()) {
|
|
72
|
+
directory = entry;
|
|
73
|
+
entry = realpathSync.native(join(entry, "index.html"));
|
|
74
|
+
}
|
|
75
|
+
} catch {
|
|
76
|
+
throw new Error(`Local file not found: ${target}`);
|
|
77
|
+
}
|
|
78
|
+
if (!statSync(entry).isFile()) throw new Error(`Local capture target is not a file: ${target}`);
|
|
79
|
+
let rootPath;
|
|
80
|
+
try {
|
|
81
|
+
rootPath = root === void 0 ? directory : realpathSync.native(resolve(root));
|
|
82
|
+
} catch {
|
|
83
|
+
throw new Error(`Local capture root not found: ${root}`);
|
|
84
|
+
}
|
|
85
|
+
if (!statSync(rootPath).isDirectory()) {
|
|
86
|
+
throw new Error(`Local capture root is not a directory: ${root}`);
|
|
87
|
+
}
|
|
88
|
+
if (!isInside(rootPath, entry)) {
|
|
89
|
+
throw new Error(`Local capture target ${entry} is outside the root ${rootPath}`);
|
|
90
|
+
}
|
|
91
|
+
return { root: rootPath, entry, fileUrl: pathToFileURL(entry).href };
|
|
92
|
+
}
|
|
93
|
+
async function servedFile(root, pathname) {
|
|
94
|
+
let decoded;
|
|
95
|
+
try {
|
|
96
|
+
decoded = decodeURIComponent(pathname);
|
|
97
|
+
} catch {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
if (decoded.includes("\0")) return null;
|
|
101
|
+
const candidate = resolve(root, `.${decoded}`);
|
|
102
|
+
if (!isInside(root, candidate)) return null;
|
|
103
|
+
try {
|
|
104
|
+
const real = await realpath(candidate);
|
|
105
|
+
if (!isInside(root, real) || !(await stat(real)).isFile()) return null;
|
|
106
|
+
return real;
|
|
107
|
+
} catch {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function contentType(file) {
|
|
112
|
+
return CONTENT_TYPES[extname(file).toLowerCase()] ?? "application/octet-stream";
|
|
113
|
+
}
|
|
114
|
+
function end(response, status) {
|
|
115
|
+
response.writeHead(status, { "Content-Length": 0, Connection: "close" });
|
|
116
|
+
response.end();
|
|
117
|
+
}
|
|
118
|
+
async function startLocalPageServer(target) {
|
|
119
|
+
const sockets = /* @__PURE__ */ new Set();
|
|
120
|
+
const server = createServer((request, response) => {
|
|
121
|
+
void (async () => {
|
|
122
|
+
if (request.method !== "GET" && request.method !== "HEAD") return end(response, 405);
|
|
123
|
+
const pathname = new URL(request.url ?? "/", "http://local").pathname;
|
|
124
|
+
const file = await servedFile(target.root, pathname);
|
|
125
|
+
if (!file) return end(response, 404);
|
|
126
|
+
response.writeHead(200, { "Content-Type": contentType(file), "Cache-Control": "no-store" });
|
|
127
|
+
if (request.method === "HEAD") return response.end();
|
|
128
|
+
const stream = createReadStream(file);
|
|
129
|
+
stream.on("error", () => response.destroy());
|
|
130
|
+
stream.pipe(response);
|
|
131
|
+
})().catch(() => response.destroy());
|
|
132
|
+
});
|
|
133
|
+
server.on("connection", (socket) => {
|
|
134
|
+
sockets.add(socket);
|
|
135
|
+
socket.once("close", () => sockets.delete(socket));
|
|
136
|
+
});
|
|
137
|
+
await new Promise((resolveListen, reject) => {
|
|
138
|
+
server.once("error", reject);
|
|
139
|
+
server.listen(0, "127.0.0.1", resolveListen);
|
|
140
|
+
});
|
|
141
|
+
const address = server.address();
|
|
142
|
+
if (!address || typeof address === "string") throw new Error("Local page server did not bind");
|
|
143
|
+
const origin = `http://127.0.0.1:${address.port}`;
|
|
144
|
+
const entryPath = relative(target.root, target.entry).split(sep).map(encodeURIComponent);
|
|
145
|
+
activeSites.set(origin, { root: target.root, name: localSiteName(target.entry) });
|
|
146
|
+
let closing;
|
|
147
|
+
return {
|
|
148
|
+
origin,
|
|
149
|
+
url: `${origin}/${entryPath.join("/")}`,
|
|
150
|
+
close() {
|
|
151
|
+
closing ??= new Promise((resolveClose) => {
|
|
152
|
+
activeSites.delete(origin);
|
|
153
|
+
server.close(() => resolveClose());
|
|
154
|
+
for (const socket of sockets) socket.destroy();
|
|
155
|
+
});
|
|
156
|
+
return closing;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
async function localResponse(root, pathname, method) {
|
|
161
|
+
if (method !== "GET" && method !== "HEAD") return new Response(null, { status: 405 });
|
|
162
|
+
const file = await servedFile(root, pathname);
|
|
163
|
+
if (!file) return new Response(null, { status: 404 });
|
|
164
|
+
const body = method === "HEAD" ? null : Readable.toWeb(createReadStream(file));
|
|
165
|
+
return new Response(body, { status: 200, headers: { "Content-Type": contentType(file) } });
|
|
166
|
+
}
|
|
167
|
+
function fetchLocalPageUrl(url, init) {
|
|
168
|
+
let parsed;
|
|
169
|
+
try {
|
|
170
|
+
parsed = new URL(url);
|
|
171
|
+
} catch {
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
const site = activeSites.get(parsed.origin);
|
|
175
|
+
if (site === void 0) return null;
|
|
176
|
+
return localResponse(site.root, parsed.pathname, (init?.method ?? "GET").toUpperCase());
|
|
177
|
+
}
|
|
178
|
+
var TEXT_OUTPUTS = /* @__PURE__ */ new Set([".json", ".md", ".html", ".htm", ".css", ".txt", ".svg", ".js", ""]);
|
|
179
|
+
function localUrlRewriter(origin, root) {
|
|
180
|
+
const escapedOrigin = origin.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
181
|
+
const pattern = new RegExp(`${escapedOrigin}(?![0-9])(/[^\\s"'<>()\\\\]*)?`, "g");
|
|
182
|
+
return (text) => text.replace(pattern, (_match, path) => {
|
|
183
|
+
const url = new URL(path ?? "/", origin);
|
|
184
|
+
let decoded;
|
|
185
|
+
try {
|
|
186
|
+
decoded = decodeURIComponent(url.pathname);
|
|
187
|
+
} catch {
|
|
188
|
+
decoded = url.pathname;
|
|
189
|
+
}
|
|
190
|
+
return pathToFileURL(join(root, decoded)).href + url.search + url.hash;
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function rewriteStrings(value, rewrite) {
|
|
194
|
+
if (typeof value === "string") return rewrite(value);
|
|
195
|
+
if (Array.isArray(value)) return value.map((item) => rewriteStrings(item, rewrite));
|
|
196
|
+
if (value && typeof value === "object") {
|
|
197
|
+
return Object.fromEntries(
|
|
198
|
+
Object.entries(value).map(([key, item]) => [key, rewriteStrings(item, rewrite)])
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
return value;
|
|
202
|
+
}
|
|
203
|
+
function rewriteLocalCaptureOutput(outputDir, rewrite, sourceUrl) {
|
|
204
|
+
const walk = (dir) => {
|
|
205
|
+
let entries;
|
|
206
|
+
try {
|
|
207
|
+
entries = readdirSync(dir, { withFileTypes: true });
|
|
208
|
+
} catch {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
for (const entry of entries) {
|
|
212
|
+
const path = join(dir, entry.name);
|
|
213
|
+
if (entry.isDirectory()) walk(path);
|
|
214
|
+
else if (entry.isFile() && TEXT_OUTPUTS.has(extname(entry.name).toLowerCase())) {
|
|
215
|
+
const text = readFileSync(path, "utf8");
|
|
216
|
+
const next = rewrite(text);
|
|
217
|
+
if (next !== text) writeCaptureFileSync(path, next, "utf-8");
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
walk(outputDir);
|
|
222
|
+
const metaPath = join(outputDir, "meta.json");
|
|
223
|
+
try {
|
|
224
|
+
const meta = JSON.parse(readFileSync(metaPath, "utf8"));
|
|
225
|
+
if (meta && typeof meta === "object" && !Array.isArray(meta)) {
|
|
226
|
+
writeCaptureFileSync(metaPath, JSON.stringify({ ...meta, source: sourceUrl }, null, 2));
|
|
227
|
+
}
|
|
228
|
+
} catch {
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export {
|
|
233
|
+
captureSiteName,
|
|
234
|
+
resolveLocalCaptureTarget,
|
|
235
|
+
startLocalPageServer,
|
|
236
|
+
fetchLocalPageUrl,
|
|
237
|
+
localUrlRewriter,
|
|
238
|
+
rewriteStrings,
|
|
239
|
+
rewriteLocalCaptureOutput
|
|
240
|
+
};
|
|
@@ -6,13 +6,13 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-G2A6RC5R.js";
|
|
10
10
|
import {
|
|
11
11
|
stripSdrPngColourTags
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GHSO62LK.js";
|
|
13
13
|
import {
|
|
14
14
|
injectTagsAtHeadStart
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BQMAPNDA.js";
|
|
16
16
|
|
|
17
17
|
// src/utils/compositionServer.ts
|
|
18
18
|
import { createHash } from "crypto";
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
detectGpuEncoder
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MPO25DQW.js";
|
|
10
10
|
import {
|
|
11
11
|
runCancellableProcess
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Q43YUROE.js";
|
|
13
13
|
import {
|
|
14
14
|
findFfBinary
|
|
15
15
|
} from "./chunk-VAS6HQX3.js";
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QP2MJYTJ.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
12
|
} from "./chunk-K2FLNJVB.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_CONFIG,
|
|
18
18
|
resolvePageNavigationTimeout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MPO25DQW.js";
|
|
20
20
|
import {
|
|
21
21
|
parseFps
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QWBVPWUI.js";
|
|
23
23
|
|
|
24
24
|
// src/browser/windowsCrash.ts
|
|
25
25
|
var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
|
|
@@ -43,8 +43,8 @@ function windowsChromeCrashRemediation(errorMessage) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
// src/utils/renderArgs.ts
|
|
46
|
-
import { readFileSync
|
|
47
|
-
import {
|
|
46
|
+
import { readFileSync } from "fs";
|
|
47
|
+
import { resolve } from "path";
|
|
48
48
|
var MIN_PAGE_NAVIGATION_TIMEOUT_MS = 1;
|
|
49
49
|
var MAX_PAGE_NAVIGATION_TIMEOUT_SECONDS = 86400;
|
|
50
50
|
function parseBrowserTimeoutMsArg(raw) {
|
|
@@ -106,70 +106,6 @@ function pageNavigationTimeoutMs(minimumTimeoutMs = 0) {
|
|
|
106
106
|
minimumTimeoutMs
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
|
-
function normalizeCompositionEntryArg(raw) {
|
|
110
|
-
const trimmed = raw?.trim().replace(/^\.\//, "") || void 0;
|
|
111
|
-
return !trimmed || trimmed === "." ? void 0 : trimmed;
|
|
112
|
-
}
|
|
113
|
-
function hasExplicitCompositionArg(raw) {
|
|
114
|
-
return normalizeCompositionEntryArg(raw) !== void 0;
|
|
115
|
-
}
|
|
116
|
-
function parseCompositionEntryArg(raw, projectDir, stat, real = realpathOrSame) {
|
|
117
|
-
const trimmed = normalizeCompositionEntryArg(raw);
|
|
118
|
-
if (!trimmed) return { ok: true, value: void 0 };
|
|
119
|
-
const absProjectDir = resolve(projectDir);
|
|
120
|
-
const entryPath = resolve(absProjectDir, trimmed);
|
|
121
|
-
const relativeEntry = [absProjectDir, real(absProjectDir)].flatMap((root) => [entryPath, real(entryPath)].map((path) => relative(root, path))).find((rel) => rel !== ".." && !rel.startsWith(`..${sep}`) && !isAbsolute(rel));
|
|
122
|
-
if (relativeEntry === void 0) {
|
|
123
|
-
return { ok: false, error: { kind: "outside-project", entryFile: trimmed } };
|
|
124
|
-
}
|
|
125
|
-
let entryStat;
|
|
126
|
-
try {
|
|
127
|
-
entryStat = stat(entryPath);
|
|
128
|
-
} catch {
|
|
129
|
-
return { ok: false, error: { kind: "not-found", entryFile: trimmed } };
|
|
130
|
-
}
|
|
131
|
-
if (!entryStat.isFile()) {
|
|
132
|
-
return { ok: false, error: { kind: "not-a-file", entryFile: trimmed } };
|
|
133
|
-
}
|
|
134
|
-
return { ok: true, value: relativeEntry.split(sep).join("/") };
|
|
135
|
-
}
|
|
136
|
-
function realpathOrSame(path) {
|
|
137
|
-
try {
|
|
138
|
-
return realpathSync(path);
|
|
139
|
-
} catch {
|
|
140
|
-
return path;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
function compositionEntryErrorMessage(error) {
|
|
144
|
-
switch (error.kind) {
|
|
145
|
-
case "outside-project":
|
|
146
|
-
return {
|
|
147
|
-
title: "Invalid composition path",
|
|
148
|
-
message: `Entry file must stay inside the project directory: ${error.entryFile}`
|
|
149
|
-
};
|
|
150
|
-
case "not-found":
|
|
151
|
-
return {
|
|
152
|
-
title: "Composition not found",
|
|
153
|
-
message: `"${error.entryFile}" does not exist in the project directory.`,
|
|
154
|
-
hint: "Pass a path to a .html file relative to the project root (e.g. compositions/intro.html)."
|
|
155
|
-
};
|
|
156
|
-
case "not-a-file":
|
|
157
|
-
return {
|
|
158
|
-
title: "Invalid composition path",
|
|
159
|
-
message: `"${error.entryFile}" is a directory, not an .html file.`,
|
|
160
|
-
hint: "Pass a path to a .html file (e.g. compositions/intro.html), or omit --composition to render index.html."
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
function resolveCompositionEntryArg(raw, projectDir, stat) {
|
|
165
|
-
const result = parseCompositionEntryArg(raw, projectDir, stat);
|
|
166
|
-
if (!result.ok) {
|
|
167
|
-
const { title, message, hint } = compositionEntryErrorMessage(result.error);
|
|
168
|
-
errorBox(title, message, hint);
|
|
169
|
-
failUsage();
|
|
170
|
-
}
|
|
171
|
-
return result.value;
|
|
172
|
-
}
|
|
173
109
|
function resolveDefaultFpsArg(explicitFps, projectDir, indexPath, entryFile) {
|
|
174
110
|
if (explicitFps != null) return explicitFps;
|
|
175
111
|
try {
|
|
@@ -218,8 +154,6 @@ export {
|
|
|
218
154
|
windowsChromeCrashRemediation,
|
|
219
155
|
resolveBrowserTimeoutMsArg,
|
|
220
156
|
pageNavigationTimeoutMs,
|
|
221
|
-
hasExplicitCompositionArg,
|
|
222
|
-
resolveCompositionEntryArg,
|
|
223
157
|
resolveDefaultFpsArg,
|
|
224
158
|
parseGifLoopArg,
|
|
225
159
|
parseHlsSegmentSecondsArg
|
|
@@ -4,17 +4,12 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
removeTreeBestEffort
|
|
9
|
+
} from "./chunk-Z5J67X44.js";
|
|
7
10
|
|
|
8
11
|
// src/capture/captureFile.ts
|
|
9
|
-
import {
|
|
10
|
-
mkdirSync,
|
|
11
|
-
mkdtempSync,
|
|
12
|
-
realpathSync,
|
|
13
|
-
renameSync,
|
|
14
|
-
rmSync,
|
|
15
|
-
statSync,
|
|
16
|
-
writeFileSync
|
|
17
|
-
} from "fs";
|
|
12
|
+
import { mkdirSync, mkdtempSync, realpathSync, renameSync, statSync, writeFileSync } from "fs";
|
|
18
13
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "path";
|
|
19
14
|
|
|
20
15
|
// src/capture/captureErrors.ts
|
|
@@ -43,7 +38,7 @@ function publishCaptureFileSync(path, data, options) {
|
|
|
43
38
|
writeCaptureFileSync(staged, data, { ...options, flag: "wx" });
|
|
44
39
|
renameSync(staged, path);
|
|
45
40
|
} finally {
|
|
46
|
-
|
|
41
|
+
removeTreeBestEffort(stagingDir);
|
|
47
42
|
}
|
|
48
43
|
}
|
|
49
44
|
function writeCaptureFileSync(path, data, options) {
|
|
@@ -47,11 +47,11 @@ function compareBrowserVersionsDescending(left, right) {
|
|
|
47
47
|
}
|
|
48
48
|
var starts = /* @__PURE__ */ new Map();
|
|
49
49
|
var debug = debuglog("hyperframes:browser");
|
|
50
|
-
function shellStarts(binary) {
|
|
50
|
+
function shellStarts(binary, timeoutMs = 1e4) {
|
|
51
51
|
let answer = starts.get(binary);
|
|
52
52
|
if (answer === void 0) {
|
|
53
53
|
const probe = ["--no-sandbox", "--dump-dom", "about:blank"];
|
|
54
|
-
answer = spawnSync(binary, probe, { stdio: "ignore", timeout:
|
|
54
|
+
answer = spawnSync(binary, probe, { stdio: "ignore", timeout: timeoutMs, killSignal: "SIGKILL" })?.status === 0;
|
|
55
55
|
if (!answer) debug("skipping %s: it did not start", binary);
|
|
56
56
|
starts.set(binary, answer);
|
|
57
57
|
}
|
|
@@ -23,7 +23,19 @@ function normalizeErrorMessage(error) {
|
|
|
23
23
|
}
|
|
24
24
|
return String(error ?? "unknown error");
|
|
25
25
|
}
|
|
26
|
+
var PROTOCOL_TIMEOUT_ADVICE = / Increase the 'protocolTimeout' setting in launch\/connect calls[^.]*\./;
|
|
27
|
+
async function atStep(step, run) {
|
|
28
|
+
try {
|
|
29
|
+
return await run();
|
|
30
|
+
} catch (error) {
|
|
31
|
+
if (error instanceof Error && !error.message.includes(` (while ${step})`)) {
|
|
32
|
+
error.message = error.message.replace(PROTOCOL_TIMEOUT_ADVICE, "") + ` (while ${step})`;
|
|
33
|
+
}
|
|
34
|
+
throw error;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
26
37
|
|
|
27
38
|
export {
|
|
28
|
-
normalizeErrorMessage
|
|
39
|
+
normalizeErrorMessage,
|
|
40
|
+
atStep
|
|
29
41
|
};
|
|
@@ -9,27 +9,27 @@ import {
|
|
|
9
9
|
} from "./chunk-TQBQYO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveProject
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-Z5TGBEPJ.js";
|
|
13
13
|
import {
|
|
14
14
|
serveStaticProjectHtml
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-P7WGVXR7.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-7PAK7LZ5.js";
|
|
23
23
|
import {
|
|
24
24
|
launchManagedBrowser,
|
|
25
25
|
resolveManagedGpuMode
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-X6MCIK7L.js";
|
|
27
27
|
import {
|
|
28
28
|
gotoWhenSent
|
|
29
29
|
} from "./chunk-MOEGCMKI.js";
|
|
30
30
|
import {
|
|
31
31
|
pageNavigationTimeoutMs
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ENRFKCI6.js";
|
|
33
33
|
import {
|
|
34
34
|
defineCommand
|
|
35
35
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -43,10 +43,10 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
printDeprecationNotice,
|
|
45
45
|
withMeta
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-U6KN6OIP.js";
|
|
47
47
|
import {
|
|
48
48
|
normalizeErrorMessage
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-EU7MVORF.js";
|
|
50
50
|
|
|
51
51
|
// src/commands/layout.ts
|
|
52
52
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
@@ -690,7 +690,7 @@ async function collectTweenBoundaries(page) {
|
|
|
690
690
|
});
|
|
691
691
|
}
|
|
692
692
|
async function bundleProjectHtml(projectDir) {
|
|
693
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
693
|
+
const { bundleToSingleHtml } = await import("./compiler-PG4RKX6K.js");
|
|
694
694
|
return bundleToSingleHtml(projectDir);
|
|
695
695
|
}
|
|
696
696
|
async function alignViewportToComposition(page, url) {
|
|
@@ -707,15 +707,15 @@ async function alignViewportToComposition(page, url) {
|
|
|
707
707
|
await gotoWhenSent(page, url, pageNavigationTimeoutMs());
|
|
708
708
|
}
|
|
709
709
|
async function runLayoutAudit(projectDir, opts) {
|
|
710
|
-
const { ensureBrowser } = await import("./manager-
|
|
710
|
+
const { ensureBrowser } = await import("./manager-Z7W4GQGF.js");
|
|
711
711
|
const puppeteer = await import("puppeteer-core");
|
|
712
|
-
const { buildChromeArgs } = await import("./src-
|
|
712
|
+
const { buildChromeArgs } = await import("./src-6XOMREMS.js");
|
|
713
713
|
const {
|
|
714
714
|
assertWebGpuAdapterAvailable,
|
|
715
715
|
compositionRequiresWebGpu,
|
|
716
716
|
resolveLocalBrowserGpuMode,
|
|
717
717
|
resolveLocalWebGpu
|
|
718
|
-
} = await import("./gpuPolicy-
|
|
718
|
+
} = await import("./gpuPolicy-EYDAAPJF.js");
|
|
719
719
|
const html = await bundleProjectHtml(projectDir);
|
|
720
720
|
const server = await serveStaticProjectHtml(
|
|
721
721
|
projectDir,
|