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
|
@@ -48,7 +48,10 @@ import {
|
|
|
48
48
|
rewriteAssetPath,
|
|
49
49
|
spansOverlap,
|
|
50
50
|
validateColorGradingContract
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-SE2MXV2N.js";
|
|
52
|
+
import {
|
|
53
|
+
encodeUrlPath
|
|
54
|
+
} from "./chunk-NHA4NRBE.js";
|
|
52
55
|
import {
|
|
53
56
|
parseHTML
|
|
54
57
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -64,7 +67,7 @@ import {
|
|
|
64
67
|
base,
|
|
65
68
|
recursive,
|
|
66
69
|
simple
|
|
67
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-WC4MTXGN.js";
|
|
68
71
|
import {
|
|
69
72
|
__commonJS,
|
|
70
73
|
__require,
|
|
@@ -7962,6 +7965,23 @@ ${allInlineStyles}`.replace(/\/\*[\s\S]*?\*\//g, "");
|
|
|
7962
7965
|
snippet: truncateSnippet(rootTag.raw)
|
|
7963
7966
|
}
|
|
7964
7967
|
];
|
|
7968
|
+
},
|
|
7969
|
+
// subcomposition_linked_style_names_root_id
|
|
7970
|
+
// The compiler flattens a sub-composition root into its host and rewrites inline <style>
|
|
7971
|
+
// selectors to match; a linked stylesheet is not rewritten, so `#root-id` in it matches nothing.
|
|
7972
|
+
({ styles, rootTag, options }) => {
|
|
7973
|
+
if (!options.isSubComposition || !rootTag) return [];
|
|
7974
|
+
const rootId = readAttr(rootTag.raw, "id");
|
|
7975
|
+
if (!rootId) return [];
|
|
7976
|
+
const escaped = rootId.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
7977
|
+
const names = new RegExp(`#${escaped}(?![\\w-])`);
|
|
7978
|
+
return styles.filter((style) => style.index === -1 && names.test(stripCssComments(style.content))).map((style) => ({
|
|
7979
|
+
code: "subcomposition_linked_style_names_root_id",
|
|
7980
|
+
severity: "warning",
|
|
7981
|
+
message: `The linked stylesheet "${style.rootRelativePath ?? style.file}" has a rule on #${rootId}, the id of this sub-composition's root. The root is merged into its host when the composition is compiled, so that selector matches nothing (the same rule in an inline <style> is rewritten and works).`,
|
|
7982
|
+
fixHint: `Move the #${rootId} rules into a <style> inside the <template>, where they are rewritten for the merged root, or select a child element of the root in the linked file instead of the root itself.`,
|
|
7983
|
+
snippet: truncateSnippet(style.content.slice(0, 120))
|
|
7984
|
+
}));
|
|
7965
7985
|
}
|
|
7966
7986
|
];
|
|
7967
7987
|
var CLIP_MEDIA_TAGS = /* @__PURE__ */ new Set(["img", "video", "audio"]);
|
|
@@ -7994,11 +8014,11 @@ function deriveDurationFromClips(tags, rootTag) {
|
|
|
7994
8014
|
return resolveCompositionDuration({ authoredDurationSeconds: null, clipEndsSeconds: clipEnds });
|
|
7995
8015
|
}
|
|
7996
8016
|
async function loadParseGsapScript() {
|
|
7997
|
-
const mod = await import("./gsapParserAcorn-
|
|
8017
|
+
const mod = await import("./gsapParserAcorn-5YD4N6HQ.js");
|
|
7998
8018
|
return mod.parseGsapScriptAcorn;
|
|
7999
8019
|
}
|
|
8000
8020
|
async function loadGsapScriptMotionPathFirstUseIndex() {
|
|
8001
|
-
const mod = await import("./gsapParserAcorn-
|
|
8021
|
+
const mod = await import("./gsapParserAcorn-5YD4N6HQ.js");
|
|
8002
8022
|
return mod.gsapScriptMotionPathFirstUseIndex;
|
|
8003
8023
|
}
|
|
8004
8024
|
var SCENE_BOUNDARY_EPSILON_SECONDS = 0.05;
|
|
@@ -10684,6 +10704,66 @@ var shaderRules = [
|
|
|
10684
10704
|
}));
|
|
10685
10705
|
})
|
|
10686
10706
|
];
|
|
10707
|
+
var URL_ATTRS = ["src", "href", "poster", "xlink:href"];
|
|
10708
|
+
var ROOT_PATH = /^\/(?!\/)/;
|
|
10709
|
+
var CSS_ROOT_URL = /\burl\(\s*["']?(\/(?!\/)[^"')\s]*)/g;
|
|
10710
|
+
var SCRIPT_ROOT_URL = /\b(?:fetch|new\s+URL)\(\s*(["'`])(\/(?!\/)[^"'`$]*)\1/g;
|
|
10711
|
+
function relativeForm(path, cssFile) {
|
|
10712
|
+
const depth = (cssFile ?? "").split("/").filter(Boolean).length - 1;
|
|
10713
|
+
return `${"../".repeat(Math.max(depth, 0))}${path.slice(1)}`;
|
|
10714
|
+
}
|
|
10715
|
+
function rootPathFinding(path, cssFile, snippet) {
|
|
10716
|
+
return {
|
|
10717
|
+
code: "root_path_missing_in_preview",
|
|
10718
|
+
severity: "warning",
|
|
10719
|
+
message: `"${path}" starts at the server's root. Render and snapshot serve the project there, but Studio's preview serves it under the project's own path, so the preview cannot find this file.`,
|
|
10720
|
+
fixHint: `Use "${relativeForm(path, cssFile)}" instead.`,
|
|
10721
|
+
snippet: truncateSnippet(snippet)
|
|
10722
|
+
};
|
|
10723
|
+
}
|
|
10724
|
+
function cssRootPaths(css, cssFile) {
|
|
10725
|
+
return [...css.matchAll(CSS_ROOT_URL)].map(
|
|
10726
|
+
(match) => rootPathFinding(match[1] ?? "", cssFile, match[0])
|
|
10727
|
+
);
|
|
10728
|
+
}
|
|
10729
|
+
function tagRootPaths(tag) {
|
|
10730
|
+
if (tag.name === "a" || tag.name === "base") return [];
|
|
10731
|
+
const paths = URL_ATTRS.map((attr) => readAttr(tag.raw, attr)?.trim() ?? "").filter(
|
|
10732
|
+
(value) => ROOT_PATH.test(value)
|
|
10733
|
+
);
|
|
10734
|
+
return [
|
|
10735
|
+
...paths.map((path) => rootPathFinding(path, void 0, tag.raw)),
|
|
10736
|
+
...cssRootPaths(readAttr(tag.raw, "style") ?? "")
|
|
10737
|
+
];
|
|
10738
|
+
}
|
|
10739
|
+
var scriptRootPaths = (script) => [...script.matchAll(SCRIPT_ROOT_URL)].map(
|
|
10740
|
+
(match) => rootPathFinding(match[2] ?? "", void 0, match[0])
|
|
10741
|
+
);
|
|
10742
|
+
function invalidImportMap(script) {
|
|
10743
|
+
if (!/\btype\s*=\s*["']?importmap\b/i.test(script.attrs)) return [];
|
|
10744
|
+
try {
|
|
10745
|
+
JSON.parse(script.content);
|
|
10746
|
+
return [];
|
|
10747
|
+
} catch (error) {
|
|
10748
|
+
return [
|
|
10749
|
+
{
|
|
10750
|
+
code: "import_map_invalid",
|
|
10751
|
+
severity: "warning",
|
|
10752
|
+
message: `This import map is not valid JSON (${error instanceof Error ? error.message : String(error)}). The browser ignores it, and preview cannot map root module paths ("/assets/x.js") to the project.`,
|
|
10753
|
+
fixHint: "Make the import map valid JSON: double-quoted keys and values, no trailing commas.",
|
|
10754
|
+
snippet: truncateSnippet(script.content)
|
|
10755
|
+
}
|
|
10756
|
+
];
|
|
10757
|
+
}
|
|
10758
|
+
}
|
|
10759
|
+
var rootPathRules = [
|
|
10760
|
+
(ctx) => [
|
|
10761
|
+
...ctx.tags.flatMap(tagRootPaths),
|
|
10762
|
+
...ctx.styles.flatMap((style) => cssRootPaths(style.content, style.rootRelativePath)),
|
|
10763
|
+
...ctx.scripts.flatMap((script) => scriptRootPaths(script.content)),
|
|
10764
|
+
...ctx.scripts.flatMap(invalidImportMap)
|
|
10765
|
+
]
|
|
10766
|
+
];
|
|
10687
10767
|
var RULE_GROUPS = [
|
|
10688
10768
|
{ group: "core", rules: coreRules },
|
|
10689
10769
|
{ group: "media", rules: mediaRules },
|
|
@@ -10695,7 +10775,8 @@ var RULE_GROUPS = [
|
|
|
10695
10775
|
{ group: "fonts", rules: fontRules },
|
|
10696
10776
|
{ group: "slideshow", rules: slideshowRules },
|
|
10697
10777
|
{ group: "structure", rules: structureRules },
|
|
10698
|
-
{ group: "shaders", rules: shaderRules }
|
|
10778
|
+
{ group: "shaders", rules: shaderRules },
|
|
10779
|
+
{ group: "rootPaths", rules: rootPathRules }
|
|
10699
10780
|
];
|
|
10700
10781
|
var LINT_RULE_COUNT = RULE_GROUPS.reduce((n, g) => n + g.rules.length, 0);
|
|
10701
10782
|
var LINT_RULE_GROUP_COUNTS = Object.fromEntries(
|
|
@@ -11334,10 +11415,18 @@ function lintProjectAudioFiles(projectDir, htmlSources) {
|
|
|
11334
11415
|
}
|
|
11335
11416
|
return findings;
|
|
11336
11417
|
}
|
|
11418
|
+
function urlSafeSrcOf(projectDir, rootRelative) {
|
|
11419
|
+
if (!/[?#]/.test(rootRelative)) return null;
|
|
11420
|
+
const literal = resolve(projectDir, rootRelative.replace(/^\//, ""));
|
|
11421
|
+
if (!existsSync2(literal)) return null;
|
|
11422
|
+
return encodeUrlPath(rootRelative);
|
|
11423
|
+
}
|
|
11424
|
+
var urlSafeHint = (safe) => `The file exists, but a "#" or "?" in a src ends the file name there. Write the src as "${safe}".`;
|
|
11337
11425
|
function lintAudioSrcNotFound(projectDir, htmlSources) {
|
|
11338
11426
|
const findings = [];
|
|
11339
11427
|
const audioSrcRe = mediaSrcTagRe("audio");
|
|
11340
11428
|
const missingByFile = /* @__PURE__ */ new Map();
|
|
11429
|
+
const urlSafe = /* @__PURE__ */ new Map();
|
|
11341
11430
|
for (const { html, compSrcPath } of htmlSources) {
|
|
11342
11431
|
const scannable = maskNonScannableRanges(html);
|
|
11343
11432
|
let match;
|
|
@@ -11347,6 +11436,8 @@ function lintAudioSrcNotFound(projectDir, htmlSources) {
|
|
|
11347
11436
|
if (isUnresolvedAssetPlaceholder(src)) continue;
|
|
11348
11437
|
const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) => existsSync2(join3(projectDir, path))) : src;
|
|
11349
11438
|
if (!existsSync2(resolveProjectRelativeSrc(rootRelative, projectDir))) {
|
|
11439
|
+
const safe = urlSafeSrcOf(projectDir, rootRelative);
|
|
11440
|
+
if (safe) urlSafe.set(src, safe);
|
|
11350
11441
|
const file = sourceFile(projectDir, compSrcPath);
|
|
11351
11442
|
missingByFile.set(file, (missingByFile.get(file) ?? /* @__PURE__ */ new Set()).add(src));
|
|
11352
11443
|
}
|
|
@@ -11359,7 +11450,7 @@ function lintAudioSrcNotFound(projectDir, htmlSources) {
|
|
|
11359
11450
|
severity: "error",
|
|
11360
11451
|
file,
|
|
11361
11452
|
message: `<audio> element references file(s) not found in the project: ${unique.join(", ")}. The rendered video will be silent.`,
|
|
11362
|
-
fixHint: unique.length === 1 ? `Add the file "${unique[0]}" to the project directory, or update the src attribute to point to an existing file.` : `Add the missing files to the project directory, or update the src attributes to point to existing files.`
|
|
11453
|
+
fixHint: unique.length === 1 && urlSafe.has(unique[0]) ? urlSafeHint(urlSafe.get(unique[0])) : unique.length === 1 ? `Add the file "${unique[0]}" to the project directory, or update the src attribute to point to an existing file.` : `Add the missing files to the project directory, or update the src attributes to point to existing files.`
|
|
11363
11454
|
});
|
|
11364
11455
|
}
|
|
11365
11456
|
return findings;
|
|
@@ -11368,6 +11459,7 @@ function lintMissingLocalAsset(projectDir, htmlSources) {
|
|
|
11368
11459
|
const findings = [];
|
|
11369
11460
|
const localAssetSrcRe = mediaSrcTagRe("video|img|source");
|
|
11370
11461
|
const missingByTag = /* @__PURE__ */ new Map();
|
|
11462
|
+
const urlSafe = /* @__PURE__ */ new Map();
|
|
11371
11463
|
for (const { html, compSrcPath } of htmlSources) {
|
|
11372
11464
|
const scannable = maskNonScannableRanges(html);
|
|
11373
11465
|
const re = new RegExp(localAssetSrcRe.source, localAssetSrcRe.flags);
|
|
@@ -11382,6 +11474,12 @@ function lintMissingLocalAsset(projectDir, htmlSources) {
|
|
|
11382
11474
|
const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) => existsSync2(join3(projectDir, path))) : src;
|
|
11383
11475
|
const resolvedAsset = resolveExistingLocalAsset(projectDir, rootRelative);
|
|
11384
11476
|
if (resolvedAsset) continue;
|
|
11477
|
+
const rawRoot = rawSrc.trim();
|
|
11478
|
+
const safe = urlSafeSrcOf(
|
|
11479
|
+
projectDir,
|
|
11480
|
+
compSrcPath ? rewriteAssetPath(compSrcPath, rawRoot, (path) => existsSync2(join3(projectDir, path))) : rawRoot
|
|
11481
|
+
);
|
|
11482
|
+
if (safe) urlSafe.set(src, safe);
|
|
11385
11483
|
const resolvedKey = resolve(projectDir, rootRelative);
|
|
11386
11484
|
const file = sourceFile(projectDir, compSrcPath);
|
|
11387
11485
|
const bucketKey = `${file}\0${tagName}`;
|
|
@@ -11400,7 +11498,7 @@ function lintMissingLocalAsset(projectDir, htmlSources) {
|
|
|
11400
11498
|
severity: "error",
|
|
11401
11499
|
file,
|
|
11402
11500
|
message: `<${tagName}> element references local file(s) not found in the project: ${unique.join(", ")}. The renderer will silently skip these and produce a video with missing visuals.`,
|
|
11403
|
-
fixHint: unique.length === 1 ? `Add "${unique[0]}" to the project directory, or update the src attribute to point to an existing file. Common cause: captured asset filenames are unreliable (heygen-logo.svg often contains Google, nvidia-logo.svg may contain Autodesk, etc.). Open the contact sheets and verify the file actually exists at this path before referencing it.` : "Add the missing files to the project directory, or update the src attributes to point to existing files. Captured asset filenames are unreliable. Verify against capture/contact-sheets/ and capture/extracted/asset-descriptions.md."
|
|
11501
|
+
fixHint: unique.length === 1 && urlSafe.has(unique[0]) ? urlSafeHint(urlSafe.get(unique[0])) : unique.length === 1 ? `Add "${unique[0]}" to the project directory, or update the src attribute to point to an existing file. Common cause: captured asset filenames are unreliable (heygen-logo.svg often contains Google, nvidia-logo.svg may contain Autodesk, etc.). Open the contact sheets and verify the file actually exists at this path before referencing it.` : "Add the missing files to the project directory, or update the src attributes to point to existing files. Captured asset filenames are unreliable. Verify against capture/contact-sheets/ and capture/extracted/asset-descriptions.md."
|
|
11404
11502
|
});
|
|
11405
11503
|
}
|
|
11406
11504
|
return findings;
|
|
@@ -4,6 +4,9 @@ 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
|
+
createFileAtomically
|
|
9
|
+
} from "./chunk-EOVYQ3IG.js";
|
|
7
10
|
|
|
8
11
|
// src/utils/pngDimensions.ts
|
|
9
12
|
import { readFileSync } from "fs";
|
|
@@ -91,7 +94,7 @@ function reportArtifacts(command, role, paths, context = readToolContext()) {
|
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
// src/utils/projectLock.ts
|
|
94
|
-
import {
|
|
97
|
+
import { mkdirSync, readFileSync as readFileSync2, unlinkSync } from "fs";
|
|
95
98
|
import { dirname, join } from "path";
|
|
96
99
|
import { setTimeout as sleep } from "timers/promises";
|
|
97
100
|
var ProjectLockTimeout = class extends Error {
|
|
@@ -116,16 +119,8 @@ function alive(pid) {
|
|
|
116
119
|
var sameHolder = (a, b) => a?.pid === b.pid && a.startedAt === b.startedAt && a.command === b.command;
|
|
117
120
|
function breakStaleHolder(path, current, holder) {
|
|
118
121
|
const breakPath = `${path}.break`;
|
|
119
|
-
|
|
120
|
-
let acquired = false;
|
|
121
|
-
writeFileSync(breakDraft, JSON.stringify(holder), { flag: "wx" });
|
|
122
|
+
if (!createNew(breakPath, holder)) return false;
|
|
122
123
|
try {
|
|
123
|
-
try {
|
|
124
|
-
linkSync(breakDraft, breakPath);
|
|
125
|
-
} catch (error) {
|
|
126
|
-
if (error.code === "EEXIST") return false;
|
|
127
|
-
throw error;
|
|
128
|
-
}
|
|
129
124
|
if (sameHolder(readHolder(path), current)) {
|
|
130
125
|
try {
|
|
131
126
|
unlinkSync(path);
|
|
@@ -133,24 +128,22 @@ function breakStaleHolder(path, current, holder) {
|
|
|
133
128
|
if (error.code !== "ENOENT") throw error;
|
|
134
129
|
}
|
|
135
130
|
}
|
|
136
|
-
|
|
131
|
+
return tryAcquire(path, holder);
|
|
137
132
|
} finally {
|
|
138
|
-
unlinkSync(breakDraft);
|
|
139
133
|
if (sameHolder(readHolder(breakPath), holder)) unlinkSync(breakPath);
|
|
140
134
|
}
|
|
141
|
-
return acquired;
|
|
142
135
|
}
|
|
143
|
-
function
|
|
144
|
-
const draft = `${path}.${holder.pid}.${holder.startedAt}`;
|
|
145
|
-
writeFileSync(draft, JSON.stringify(holder), { flag: "wx" });
|
|
136
|
+
function createNew(path, holder) {
|
|
146
137
|
try {
|
|
147
|
-
|
|
138
|
+
createFileAtomically(path, JSON.stringify(holder));
|
|
148
139
|
return true;
|
|
149
140
|
} catch (error) {
|
|
150
|
-
if (error.code
|
|
151
|
-
|
|
152
|
-
unlinkSync(draft);
|
|
141
|
+
if (error.code === "EEXIST") return false;
|
|
142
|
+
throw error;
|
|
153
143
|
}
|
|
144
|
+
}
|
|
145
|
+
function tryAcquire(path, holder) {
|
|
146
|
+
if (createNew(path, holder)) return true;
|
|
154
147
|
const current = readHolder(path);
|
|
155
148
|
if (current && !alive(current.pid)) return breakStaleHolder(path, current, holder);
|
|
156
149
|
return false;
|
|
@@ -185,9 +178,32 @@ async function withProjectLock(projectDir, command, run, context = readToolConte
|
|
|
185
178
|
}
|
|
186
179
|
}
|
|
187
180
|
|
|
181
|
+
// src/utils/timeoutArg.ts
|
|
182
|
+
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4 };
|
|
183
|
+
function parseTimeoutMs(raw, fallback, floorMs = 0, warn = console.error) {
|
|
184
|
+
if (raw === void 0 || raw === null || raw === "") return fallback;
|
|
185
|
+
const text = String(raw).trim();
|
|
186
|
+
const match = /^(\d+(?:\.\d+)?)\s*(ms|s|m)?$/i.exec(text);
|
|
187
|
+
if (!match) {
|
|
188
|
+
warn(`[hyperframes] --timeout "${text}" is not a duration; using ${fallback} ms.`);
|
|
189
|
+
return fallback;
|
|
190
|
+
}
|
|
191
|
+
const unit = match[2]?.toLowerCase();
|
|
192
|
+
const ms = Math.round(Number(match[1]) * UNIT_MS[unit ?? "ms"]);
|
|
193
|
+
if (ms <= 0) return fallback;
|
|
194
|
+
const used = Math.max(ms, floorMs);
|
|
195
|
+
if (!unit && ms < 1e3) {
|
|
196
|
+
warn(
|
|
197
|
+
`[hyperframes] --timeout ${text} is ${ms} ms, so ${used} ms is used. Write ${text}s for seconds.`
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
return used;
|
|
201
|
+
}
|
|
202
|
+
|
|
188
203
|
export {
|
|
189
204
|
pngDimensions,
|
|
190
205
|
readToolContext,
|
|
191
206
|
reportArtifacts,
|
|
192
|
-
withProjectLock
|
|
207
|
+
withProjectLock,
|
|
208
|
+
parseTimeoutMs
|
|
193
209
|
};
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PWEOSJ3E.js";
|
|
23
23
|
import {
|
|
24
24
|
MEDIA_LINK_ATTR,
|
|
25
25
|
relinkSplitHalves
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VQB7G5BM.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_TARGET_LUFS,
|
|
29
29
|
absoluteLoudnessPlan,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
requestedProjectPath,
|
|
33
33
|
requiredFfmpeg,
|
|
34
34
|
resolveLocalAudioPath
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-IL2TMC6F.js";
|
|
36
36
|
import {
|
|
37
37
|
HistoryBusyError,
|
|
38
38
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
resolveProjectAndSignature,
|
|
47
47
|
resolveProjectSignature,
|
|
48
48
|
settledFileTag
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-3O2E4Q66.js";
|
|
50
50
|
import {
|
|
51
51
|
PROXY_PARAMS_VERSION,
|
|
52
52
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
scanProjectMedia,
|
|
71
71
|
shouldPrewarmProxy,
|
|
72
72
|
waitForProxy
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-PKVA6MPV.js";
|
|
74
74
|
import {
|
|
75
75
|
STUDIO_MOTION_PATH,
|
|
76
76
|
createStudioMotionRenderBodyScript,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
import {
|
|
86
86
|
findTimelineScript,
|
|
87
87
|
parseGsapScriptAcorn
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-W4DMQZL5.js";
|
|
89
89
|
import {
|
|
90
90
|
atomicTempPath,
|
|
91
91
|
createFileAtomically,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
} from "./chunk-EOVYQ3IG.js";
|
|
94
94
|
import {
|
|
95
95
|
parseEncoderOptions
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-5YHQBCWH.js";
|
|
97
97
|
import {
|
|
98
98
|
STUDIO_MANUAL_EDITS_PATH
|
|
99
99
|
} from "./chunk-EVMY7IPL.js";
|
|
@@ -103,6 +103,12 @@ import {
|
|
|
103
103
|
fontDirectories,
|
|
104
104
|
locateSystemFont
|
|
105
105
|
} from "./chunk-7FMUTGOH.js";
|
|
106
|
+
import {
|
|
107
|
+
addScenePartsManifest,
|
|
108
|
+
ensureHfIds,
|
|
109
|
+
stampHfIdsInPlace,
|
|
110
|
+
stripSdrPngColourTags
|
|
111
|
+
} from "./chunk-GHSO62LK.js";
|
|
106
112
|
import {
|
|
107
113
|
GSAP_BASE_URL_META,
|
|
108
114
|
PREVIEW_PROXY_BOX_PARAM,
|
|
@@ -118,13 +124,7 @@ import {
|
|
|
118
124
|
normalizeGsapLocalRoot,
|
|
119
125
|
parseFps,
|
|
120
126
|
parsePreviewProxyBox
|
|
121
|
-
} from "./chunk-
|
|
122
|
-
import {
|
|
123
|
-
addScenePartsManifest,
|
|
124
|
-
ensureHfIds,
|
|
125
|
-
stampHfIdsInPlace,
|
|
126
|
-
stripSdrPngColourTags
|
|
127
|
-
} from "./chunk-MFHYBSJC.js";
|
|
127
|
+
} from "./chunk-QWBVPWUI.js";
|
|
128
128
|
import {
|
|
129
129
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
130
130
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -138,15 +138,7 @@ import {
|
|
|
138
138
|
resolveRateSpec,
|
|
139
139
|
sourceTimeAt,
|
|
140
140
|
stripEmbeddedRuntimeScripts
|
|
141
|
-
} from "./chunk-
|
|
142
|
-
import {
|
|
143
|
-
HTML_ATTRIBUTE_ENTITIES,
|
|
144
|
-
MagicString,
|
|
145
|
-
VALID_CANVAS_RESOLUTIONS,
|
|
146
|
-
decodeAuthoredAttribute,
|
|
147
|
-
scanHtmlOpeningTags,
|
|
148
|
-
unrollComputedTimeline
|
|
149
|
-
} from "./chunk-OFRRUYBA.js";
|
|
141
|
+
} from "./chunk-BQMAPNDA.js";
|
|
150
142
|
import {
|
|
151
143
|
ProjectRootMissingError,
|
|
152
144
|
folderGone,
|
|
@@ -173,7 +165,15 @@ import {
|
|
|
173
165
|
rewriteCssAssetUrls,
|
|
174
166
|
rewriteInlineStyleAssetUrls,
|
|
175
167
|
sameInstant
|
|
176
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-SE2MXV2N.js";
|
|
169
|
+
import {
|
|
170
|
+
HTML_ATTRIBUTE_ENTITIES,
|
|
171
|
+
MagicString,
|
|
172
|
+
VALID_CANVAS_RESOLUTIONS,
|
|
173
|
+
decodeAuthoredAttribute,
|
|
174
|
+
scanHtmlOpeningTags,
|
|
175
|
+
unrollComputedTimeline
|
|
176
|
+
} from "./chunk-NHA4NRBE.js";
|
|
177
177
|
import {
|
|
178
178
|
parseHTML
|
|
179
179
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
ancestor,
|
|
182
182
|
full,
|
|
183
183
|
simple
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-WC4MTXGN.js";
|
|
185
185
|
|
|
186
186
|
// ../studio-server/dist/chunk-FJBJJURY.js
|
|
187
187
|
import { createHash } from "crypto";
|
|
@@ -367,6 +367,7 @@ var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
|
|
|
367
367
|
var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
368
368
|
var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
369
369
|
var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
370
|
+
var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
|
|
370
371
|
|
|
371
372
|
// ../studio-server/dist/chunk-UEEXAVOA.js
|
|
372
373
|
function findUnsafeMutationValues(value, path = "body", options = {}) {
|
|
@@ -5551,7 +5552,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5551
5552
|
let block = extractGsapScriptBlock(html);
|
|
5552
5553
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5553
5554
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5554
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5555
|
+
const { GSAP_CDN } = await import("./dist-23AAB5X2.js");
|
|
5555
5556
|
const bootstrap = [
|
|
5556
5557
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5557
5558
|
"<script>",
|
|
@@ -7281,6 +7282,44 @@ function registerFileRoutes(api, adapter) {
|
|
|
7281
7282
|
return c.json({ ok: true, restored: true, conflict: false });
|
|
7282
7283
|
});
|
|
7283
7284
|
}
|
|
7285
|
+
var ROOT_PATH = /^\/(?!\/)/;
|
|
7286
|
+
var IMPORT_MAP_TYPE = /\btype\s*=\s*["']?importmap["']?(?=[\s/>])/i;
|
|
7287
|
+
function findImportMap(html) {
|
|
7288
|
+
for (const at of findStartTags(html, "script")) {
|
|
7289
|
+
const open2 = /^<script\b[^>]*>/i.exec(html.slice(at));
|
|
7290
|
+
if (!open2 || !IMPORT_MAP_TYPE.test(open2[0])) continue;
|
|
7291
|
+
const start = at + open2[0].length;
|
|
7292
|
+
const end = html.toLowerCase().indexOf("</script", start);
|
|
7293
|
+
if (end !== -1) return { start, end, json: html.slice(start, end) };
|
|
7294
|
+
}
|
|
7295
|
+
return null;
|
|
7296
|
+
}
|
|
7297
|
+
function withRootImportMap(html, base) {
|
|
7298
|
+
const ours = { "/": base, [base]: base };
|
|
7299
|
+
const own = findImportMap(html);
|
|
7300
|
+
if (!own)
|
|
7301
|
+
return injectTagsAtHeadStart(
|
|
7302
|
+
html,
|
|
7303
|
+
`<script type="importmap">${JSON.stringify({ imports: ours })}</script>`
|
|
7304
|
+
);
|
|
7305
|
+
let map;
|
|
7306
|
+
try {
|
|
7307
|
+
map = JSON.parse(own.json);
|
|
7308
|
+
} catch {
|
|
7309
|
+
return html;
|
|
7310
|
+
}
|
|
7311
|
+
if (!map || typeof map !== "object") return html;
|
|
7312
|
+
const under = (path) => ROOT_PATH.test(path) && !path.startsWith(base) ? base + path.slice(1) : path;
|
|
7313
|
+
const moved = (entries = {}) => Object.fromEntries(
|
|
7314
|
+
Object.entries(entries).map(([key, target]) => [key, under(String(target))])
|
|
7315
|
+
);
|
|
7316
|
+
const merged = { ...map, imports: { ...ours, ...moved(map.imports) } };
|
|
7317
|
+
if (map.scopes)
|
|
7318
|
+
merged.scopes = Object.fromEntries(
|
|
7319
|
+
Object.entries(map.scopes).map(([scope, entries]) => [under(scope), moved(entries)])
|
|
7320
|
+
);
|
|
7321
|
+
return html.slice(0, own.start) + JSON.stringify(merged) + html.slice(own.end);
|
|
7322
|
+
}
|
|
7284
7323
|
var ALWAYS_AFFECTS = ["hyperframes.json", ...STUDIO_SIGNATURE_MANIFEST_PATHS];
|
|
7285
7324
|
var MAX_PREVIEW_PATH_LENGTH = 4096;
|
|
7286
7325
|
var SHOW_ELEMENT = 1;
|
|
@@ -7667,7 +7706,11 @@ var PREVIEW_BUNDLE_OPTIONS = {
|
|
|
7667
7706
|
sceneParts: true
|
|
7668
7707
|
};
|
|
7669
7708
|
var previewBaseHref = (projectId) => `/api/projects/${encodeURIComponent(projectId)}/preview/`;
|
|
7670
|
-
var withPreviewBase = (html, projectId) =>
|
|
7709
|
+
var withPreviewBase = (html, projectId) => {
|
|
7710
|
+
const base = previewBaseHref(projectId);
|
|
7711
|
+
const mapped = withRootImportMap(html, base);
|
|
7712
|
+
return hasBaseElement(mapped) ? mapped : injectTagsAtHeadStart(mapped, `<base href="${base}">`);
|
|
7713
|
+
};
|
|
7671
7714
|
function resolvePreviewGsapBaseUrl(adapter) {
|
|
7672
7715
|
const configured = process.env.HYPERFRAMES_GSAP_BASE_URL;
|
|
7673
7716
|
if (configured?.trim() || !adapter.gsapLocalRoot) {
|
|
@@ -7842,6 +7885,7 @@ ${etag}`;
|
|
|
7842
7885
|
gsapBaseUrl
|
|
7843
7886
|
);
|
|
7844
7887
|
if (!html) return c.text("not found", 404);
|
|
7888
|
+
html = withRootImportMap(html, baseHref);
|
|
7845
7889
|
recordPreviewReferences(project.dir, html);
|
|
7846
7890
|
html = ensureHfIds(await transformPreviewHtml(html, adapter, project, compPath));
|
|
7847
7891
|
html = injectStudioPreviewAugmentations(html, adapter, project.dir, compPath, {
|
|
@@ -9930,7 +9974,7 @@ function registerHistoryRoutes(api, adapter) {
|
|
|
9930
9974
|
);
|
|
9931
9975
|
}
|
|
9932
9976
|
function previewErrorPage(status) {
|
|
9933
|
-
const message =
|
|
9977
|
+
const message = refusedPreviewMessage(status);
|
|
9934
9978
|
return `<!doctype html><meta charset="utf-8"><script>window.${STUDIO_PREVIEW_ERRORS}=[${JSON.stringify(message)}]</script><p>${message}</p>`;
|
|
9935
9979
|
}
|
|
9936
9980
|
async function answerRefusedFrameWithPage(c, next) {
|
|
@@ -35,8 +35,14 @@ function longFlagName(tok) {
|
|
|
35
35
|
const name = tok.slice(2).split("=")[0] ?? "";
|
|
36
36
|
return name.startsWith("no-") ? name.slice(3) : name;
|
|
37
37
|
}
|
|
38
|
+
function isNegativeNumber(tok) {
|
|
39
|
+
return /^-(\d+\.?\d*|\.\d+)$/.test(tok);
|
|
40
|
+
}
|
|
41
|
+
function canNameFlag(tok) {
|
|
42
|
+
return tok.startsWith("-") && tok !== "-" && !isNegativeNumber(tok);
|
|
43
|
+
}
|
|
38
44
|
function unknownFlagIn(tok, known) {
|
|
39
|
-
if (
|
|
45
|
+
if (!canNameFlag(tok)) return null;
|
|
40
46
|
if (tok.startsWith("--")) {
|
|
41
47
|
const name = longFlagName(tok);
|
|
42
48
|
return name && !known.has(name) ? `--${name}` : null;
|
|
@@ -94,7 +100,7 @@ function throwSwallowedFlagError(flagName, next) {
|
|
|
94
100
|
throw new CliUsageError(message, { presented: true });
|
|
95
101
|
}
|
|
96
102
|
function looksLikeSwallowedFlag(next, known) {
|
|
97
|
-
if (next === void 0 || next === "-") return false;
|
|
103
|
+
if (next === void 0 || next === "-" || isNegativeNumber(next)) return false;
|
|
98
104
|
return next === "--" || next.startsWith("-") && unknownFlagIn(next, known) === null;
|
|
99
105
|
}
|
|
100
106
|
function swallowingArgName(tok, next, owners, known) {
|