hyperframes 0.9.7 → 0.9.9
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-WLXYFHMC.js → add-FQX5F6PC.js} +12 -12
- package/dist/{agentPromptGenerator-2SMADJAL.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
- package/dist/{animatedGifPrep-4WCFONEJ.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
- package/dist/api.js +29 -28
- package/dist/{asset-UQBTWAMJ.js → asset-X5GG5TTP.js} +2 -2
- package/dist/{assetCataloger-GOUD7VDG.js → assetCataloger-SDFP4DWL.js} +10 -10
- package/dist/{audio-LDVXMRHU.js → audio-DDTYFS23.js} +28 -28
- package/dist/{auth-6LVATNTF.js → auth-OAWLDT3A.js} +2 -2
- package/dist/{autoUpdate-X6KZRI5E.js → autoUpdate-BWIPXW2W.js} +23 -16
- package/dist/{backgroundChecks-3HGGWYLY.js → backgroundChecks-YJ5NRMBA.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-4ISYYVPQ.js → batchRender-ZDL65J7N.js} +4 -4
- package/dist/{beats-WN2KYIK3.js → beats-Q2TIAA7S.js} +11 -11
- package/dist/{benchmark-HZPGQ2MP.js → benchmark-I3GRHFIN.js} +9 -9
- package/dist/{billing-3Q2EAZFJ.js → billing-W224NIAM.js} +12 -2
- package/dist/{browser-6XC7MTQL.js → browser-F24WMZ52.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-ZZ6Y4CEO.js → bundleWithLocalizedFonts-K5CQPNIZ.js} +2 -2
- package/dist/{capture-46LJ2VU2.js → capture-HLC6I4RE.js} +3 -3
- package/dist/{capture-FCLAEX5L.js → capture-UKWY3SZQ.js} +22 -22
- package/dist/{captureCompositionFrame-SMUDCZ2L.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
- package/dist/{catalog-72AEDDEG.js → catalog-H7SOITD6.js} +12 -12
- package/dist/{catch-up-6WIX7SWV.js → catch-up-YRGPVEM6.js} +4 -4
- package/dist/{check-R2G5OYIA.js → check-BPQZZ2MO.js} +44 -44
- package/dist/{checkAudio-2RP7BNQ3.js → checkAudio-4NRQ3WGS.js} +17 -17
- package/dist/{checkBrowser-OWLF2BT4.js → checkBrowser-S66AHKW3.js} +37 -37
- package/dist/{chunk-Y2R4N6HQ.js → chunk-2NGBIAUF.js} +25 -20
- package/dist/{chunk-SXGXJAA7.js → chunk-2QMEP4LR.js} +1 -1
- package/dist/{chunk-PYWJGSWO.js → chunk-2ROPUTCS.js} +1 -1
- package/dist/{chunk-FLDSZTHP.js → chunk-2Y575PWJ.js} +2 -2
- package/dist/{chunk-PG356QHK.js → chunk-322AG75G.js} +2 -2
- package/dist/{chunk-CUCDUPTA.js → chunk-3DWH6Z5U.js} +1 -1
- package/dist/{chunk-6A45RKAK.js → chunk-3XJM7XZN.js} +136 -35
- package/dist/{chunk-LIA4GZ4F.js → chunk-42TYQPES.js} +2 -2
- package/dist/{chunk-V6MZZEA7.js → chunk-4W5X4S47.js} +48 -49
- package/dist/{chunk-3Q7UFKFN.js → chunk-5YIZRU2L.js} +3 -3
- package/dist/{chunk-X3DTUYKZ.js → chunk-62ATHBDS.js} +27 -17
- package/dist/{chunk-PPNA6EBI.js → chunk-63GTSNMY.js} +6 -6
- package/dist/{chunk-46HMQ4I3.js → chunk-6DKWOG7L.js} +1 -1
- package/dist/{chunk-C3FKYBZ4.js → chunk-6HO6QKYG.js} +9 -9
- package/dist/{chunk-X2PPRHKO.js → chunk-6KV3CMY2.js} +1 -1
- package/dist/{chunk-P7CVKVPD.js → chunk-6UZLHLFP.js} +2 -2
- package/dist/{chunk-PUMQDN2T.js → chunk-7RM3TB62.js} +29 -2
- package/dist/{chunk-UQH3MOES.js → chunk-7W5ZDOLW.js} +2 -2
- package/dist/{chunk-YHO5SKUR.js → chunk-A2NFFVWH.js} +5 -5
- package/dist/{chunk-RJ6LXDUC.js → chunk-A33GFLPY.js} +22 -2
- package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
- package/dist/{chunk-T252SG67.js → chunk-AH6MUQQC.js} +2 -2
- package/dist/{chunk-QXVW22VM.js → chunk-ASGRVFQ3.js} +1 -0
- package/dist/{chunk-HZG42ZYW.js → chunk-AUYRWWFL.js} +3 -3
- package/dist/{chunk-DZNJD7BH.js → chunk-AVNF52HR.js} +1 -1
- package/dist/{chunk-WAURLEUO.js → chunk-B5GWDPUO.js} +3 -3
- package/dist/{chunk-XFA6NPMP.js → chunk-BBP5KGYS.js} +3 -3
- package/dist/{chunk-TBCRTIXP.js → chunk-BHL4KN3H.js} +2 -2
- package/dist/{chunk-OO7U23BR.js → chunk-BX2JB24X.js} +1 -1
- package/dist/{chunk-CTPYBHF3.js → chunk-BXYB5NGT.js} +2 -2
- package/dist/{chunk-QXUDHDJU.js → chunk-BYC4C4YY.js} +9 -9
- package/dist/{chunk-RWHCRVZV.js → chunk-C3NC67BB.js} +8 -8
- package/dist/{chunk-CX6MGY2B.js → chunk-CBPBTQBH.js} +13 -13
- package/dist/{chunk-IXGZ6YFZ.js → chunk-CNX3WKQ5.js} +30 -8
- package/dist/{chunk-NEI65CWG.js → chunk-CPMTEWQM.js} +3 -3
- package/dist/{chunk-P73MHFBX.js → chunk-CUYVIDGF.js} +4 -3
- package/dist/{chunk-XKTLYF4N.js → chunk-DIKIN4BA.js} +29 -29
- package/dist/{chunk-KD22R2UE.js → chunk-E2YXF2EP.js} +3 -3
- package/dist/{chunk-NFNYH6VQ.js → chunk-EBUA6NWH.js} +2 -2
- package/dist/{chunk-RY7Z6KFS.js → chunk-EN6MPNZT.js} +4 -4
- package/dist/{chunk-CE7EQUBV.js → chunk-G3ERWPNV.js} +1 -1
- package/dist/{chunk-DOS6S7HW.js → chunk-GAKRZZHQ.js} +2 -2
- package/dist/{chunk-X4K7Q5PT.js → chunk-GIYZMGYT.js} +1 -1
- package/dist/{chunk-WZGVBZY6.js → chunk-H534266X.js} +2 -2
- package/dist/{chunk-7XRS2NDR.js → chunk-HBHLCMOQ.js} +7 -7
- package/dist/{chunk-FYR2GKAA.js → chunk-HUJMTTKR.js} +163 -32
- package/dist/{chunk-LFDPOL45.js → chunk-JZPUXDQE.js} +4 -4
- package/dist/{chunk-TSCO4XR4.js → chunk-LR5NVYZT.js} +1 -1
- package/dist/{chunk-XEP7PGXS.js → chunk-LTBBFLOM.js} +1 -1
- package/dist/{chunk-LCDXHXYH.js → chunk-LV5SL4YW.js} +2 -2
- package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
- package/dist/{chunk-2BARV2ZU.js → chunk-MDMQD6BV.js} +6 -6
- package/dist/{chunk-3LHJHMFK.js → chunk-MWHTLXG4.js} +4 -54
- package/dist/{chunk-3YJB4QVS.js → chunk-MY4PAH7C.js} +1 -1
- package/dist/{chunk-IAZ2A7D6.js → chunk-N6FGHJ7X.js} +53 -29
- package/dist/{chunk-GK3OROLS.js → chunk-N74N2I2K.js} +1 -1
- package/dist/{chunk-3AH6KE6F.js → chunk-NCP3JQ6S.js} +109 -96
- package/dist/{chunk-E3IBPTX7.js → chunk-NNF6G2UH.js} +1 -1
- package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
- package/dist/{chunk-UDY3FS6G.js → chunk-NX2X326Z.js} +9 -9
- package/dist/{chunk-7LCZBNX7.js → chunk-OAFGA2FR.js} +4 -3
- package/dist/{chunk-FYDFHW22.js → chunk-OYAZODSP.js} +28 -28
- package/dist/{chunk-SE6O4APZ.js → chunk-PPMCILED.js} +37 -5
- package/dist/{chunk-E4XS2M2E.js → chunk-Q3IT7I2K.js} +1 -1
- package/dist/{chunk-SIJYH7XM.js → chunk-QOF7XZEI.js} +1 -1
- package/dist/{chunk-SEJ7UBR2.js → chunk-QRCORKYC.js} +2 -2
- package/dist/{chunk-YTWTG67C.js → chunk-QUBVGS27.js} +6 -6
- package/dist/{chunk-IOECRDWX.js → chunk-R7EKEIAK.js} +1 -1
- package/dist/{chunk-HRSZOW3U.js → chunk-S2UKSI3C.js} +1 -1
- package/dist/{chunk-C7XW5WPZ.js → chunk-SG4YBQPY.js} +2 -2
- package/dist/chunk-SRVAYGTN.js +62 -0
- package/dist/{chunk-2X43RFKM.js → chunk-SSZTRWKQ.js} +2 -2
- package/dist/{chunk-ULH6TLE3.js → chunk-TJ2USKCK.js} +1 -1
- package/dist/{chunk-6IW2HWYI.js → chunk-TZBJEKKU.js} +1 -1
- package/dist/{chunk-HBCY63DS.js → chunk-UWYHZCEQ.js} +2 -2
- package/dist/{chunk-XXEOJXXY.js → chunk-V74HSKGY.js} +1 -1
- package/dist/{chunk-EG7FZSEF.js → chunk-VM6T3Z6B.js} +1 -1
- package/dist/{chunk-IX3R4BKU.js → chunk-VNR7LSN4.js} +50 -11
- package/dist/{chunk-ZVERYNYS.js → chunk-VZ5O7A77.js} +1 -1
- package/dist/{chunk-N6O2RQLQ.js → chunk-W5AUD5OL.js} +2 -2
- package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
- package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
- package/dist/{chunk-KDTOB4TD.js → chunk-XTYNW745.js} +1 -1
- package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
- package/dist/chunk-Y3ICFPFK.js +5035 -0
- package/dist/{chunk-AWQE37H3.js → chunk-YTNHZT47.js} +2 -2
- package/dist/{chunk-LAZREIJF.js → chunk-ZD3MK4H5.js} +1 -1
- package/dist/{chunk-GBEGZOP3.js → chunk-ZLN3AJKT.js} +1 -1
- package/dist/{clean-52TVJH4U.js → clean-RCXKQNFM.js} +23 -23
- package/dist/cli.js +61 -60
- package/dist/{cloud-FEPPMA5F.js → cloud-TQPQZRC5.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +39 -0
- package/dist/{cloudrun-DFWQ7ZJW.js → cloudrun-N737TJRC.js} +6 -6
- package/dist/{compare-UBQUKWOB.js → compare-EO32AASM.js} +34 -34
- package/dist/{compiler-UCJ4KC75.js → compiler-NAIDMQFU.js} +6 -6
- package/dist/{component-6YUQ2XAM.js → component-S3TYNVCR.js} +3 -3
- package/dist/{compositions-KGZO4UYR.js → compositions-4TXRLZ3M.js} +15 -15
- package/dist/{curve-VISYHZKL.js → curve-HGLOP2GY.js} +13 -13
- package/dist/{cuts-HCWYCBI2.js → cuts-VNFIISLL.js} +14 -14
- package/dist/{delete-CNKHLEDS.js → delete-TIWI3G7X.js} +7 -5
- package/dist/{deploy-TS3R7DTD.js → deploy-EHPNOGSY.js} +6 -6
- package/dist/{describeProject-6TNE4FY4.js → describeProject-DN6YQU3X.js} +10 -10
- package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
- package/dist/{diff-YRBYR56R.js → diff-46JK5ZCL.js} +156 -75
- package/dist/dist-CCPYPKOC.js +197 -0
- package/dist/{dist-T57O7KXT.js → dist-GUX66F7V.js} +3 -3
- package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
- package/dist/{doctor-PLA77GFC.js → doctor-LD23DW4N.js} +13 -13
- package/dist/{energy-7BTNGNR7.js → energy-YZ3DB6AI.js} +14 -14
- package/dist/{events-IMWCEFSZ.js → events-3OWNDNJX.js} +3 -3
- package/dist/{events-QTM2OEFB.js → events-DRTMYSQ6.js} +2 -2
- package/dist/{events-25FIG2O6.js → events-MQIKCKA5.js} +16 -16
- package/dist/{extract-C66C5A22.js → extract-F3NBE3X5.js} +14 -14
- package/dist/{face-MDOI2JO5.js → face-ZU7ZDYGO.js} +14 -14
- package/dist/{feedback-26OSAZF3.js → feedback-37M37Y4F.js} +8 -8
- package/dist/{ffmpeg-R5ND25AV.js → ffmpeg-PERZ6YHQ.js} +9 -9
- package/dist/{figma-276JAPS4.js → figma-55AG42NN.js} +3 -3
- package/dist/fontLocalizeCli.js +15 -15
- package/dist/{frames-AMLBNI5B.js → frames-DJA3CFSY.js} +19 -16
- package/dist/{generate-YIZS4JFA.js → generate-BVJ5XNWP.js} +18 -17
- package/dist/{get-HFEFIRAJ.js → get-PGLCWEBG.js} +7 -5
- package/dist/{gpuPolicy-7JA66MJG.js → gpuPolicy-DUNSQM6M.js} +9 -9
- package/dist/{grade-compare-7NH6XYIY.js → grade-compare-R6Q6G6WP.js} +34 -34
- package/dist/{heifImagePrep-WCL36MHY.js → heifImagePrep-YNPHFR6W.js} +10 -10
- package/dist/{help-HHIAUMBQ.js → help-4SNDXHWQ.js} +2 -1
- package/dist/{history-SLWPRU6Q.js → history-NKRHKIE2.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-MIPROXSM.js → info-U4VDKU2Y.js} +8 -8
- package/dist/{init-T56UGI6Z.js → init-2RUVBHQO.js} +29 -29
- package/dist/{ink-TY7CKC6Q.js → ink-TX3USU7X.js} +14 -14
- package/dist/{inspect-TIF7YHGN.js → inspect-MAGHXEWS.js} +34 -34
- package/dist/{installer-72QUKTPE.js → installer-PUQYKLXZ.js} +5 -5
- package/dist/{keyframes-I4JRA37J.js → keyframes-2TDECIQZ.js} +6 -6
- package/dist/{lambda-VGFSEG56.js → lambda-CRVYDETX.js} +15 -15
- package/dist/{layout-K776Z2IS.js → layout-I3VNHWJH.js} +34 -34
- package/dist/{lint-XLTSC66T.js → lint-MCVWXDJX.js} +10 -10
- package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
- package/dist/{list-6V3IKLXF.js → list-FJJNWPM6.js} +7 -5
- package/dist/{localPage-RM6EXBBT.js → localPage-6MQ6YFER.js} +9 -9
- package/dist/{login-HD47X3JE.js → login-YAZZWYFK.js} +4 -4
- package/dist/{look-KUDJYDTK.js → look-U5UHXPUQ.js} +14 -14
- package/dist/{manager-TUKVGY7O.js → manager-ARXEX6OP.js} +10 -10
- package/dist/{measure-6BRNY3II.js → measure-JAPDVQ5X.js} +11 -11
- package/dist/{media-treatment-MLME5LNQ.js → media-treatment-A4Z32NGP.js} +15 -15
- package/dist/{media-use-3YTDQKGR.js → media-use-6HX7JHRD.js} +17 -11
- package/dist/{models-IUX642FY.js → models-GMJODMZ5.js} +13 -13
- package/dist/{motionShot-INNVFSPU.js → motionShot-Z63I3GO7.js} +17 -17
- package/dist/{normalize-audio-ZMJIN2OV.js → normalize-audio-45CHOWKY.js} +10 -10
- package/dist/{open-FDQ3NDSX.js → open-RSTNLDYI.js} +12 -12
- package/dist/{parakeetRunner-WZ6JW3QQ.js → parakeetRunner-K4EGDDVH.js} +14 -14
- package/dist/{pipeline-V3TOATHS.js → pipeline-EKLTELWF.js} +12 -12
- package/dist/{play-5WIU4CZL.js → play-BYIEIRQQ.js} +25 -25
- package/dist/{preflight-JXEVL63B.js → preflight-TC6ZW3GB.js} +10 -10
- package/dist/{present-UHWGVCP4.js → present-5B5VQKT5.js} +20 -20
- package/dist/{preview-W75P6D7E.js → preview-5O2HT2WF.js} +23 -23
- package/dist/{probe-O2ADL5FX.js → probe-ZGK6DBAR.js} +14 -14
- package/dist/{producer-6GQQQT7M.js → producer-RFTB2APL.js} +1 -1
- package/dist/{projectConfig-FQ7CAOXL.js → projectConfig-PUAOWUNS.js} +7 -7
- package/dist/{publication-YRVC6D56.js → publication-K4XAMUI6.js} +3 -3
- package/dist/{publish-4IN3WW5G.js → publish-7W46NJFT.js} +13 -13
- package/dist/{remove-background-L4KWXVMH.js → remove-background-LURZDSDJ.js} +13 -13
- package/dist/{render-IP7KBRD7.js → render-7HIEI7QP.js} +46 -46
- package/dist/{render-73VGDCCH.js → render-EF7Y6YYC.js} +6 -6
- package/dist/{render-GZ4DBQ5E.js → render-ETZ3WAJO.js} +39 -37
- package/dist/{render-batch-RX3TJ4NY.js → render-batch-JYYP4RXA.js} +6 -6
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-SNTBG6O2.js → resolver-BKFLETMU.js} +5 -5
- package/dist/{reverse-5SHT4TC6.js → reverse-VPBNBP2Q.js} +1 -1
- package/dist/{run-GV6MEM2M.js → run-XER4YJY5.js} +3 -3
- package/dist/{sherpa-LJJHQNQ6.js → sherpa-D6FQ3CHN.js} +13 -13
- package/dist/skills/media-use/SKILL.md +2 -2
- package/dist/skills/media-use/references/heygen.md +17 -9
- package/dist/skills/media-use/references/operations.md +14 -13
- package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
- package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
- package/dist/skills/media-use/scripts/resolve.mjs +3 -1
- package/dist/{skills-NVNRQU7K.js → skills-EBVQSIK4.js} +22 -12
- package/dist/{skillsUpdateCheck-QNFIPFLX.js → skillsUpdateCheck-7VXK4R4J.js} +3 -3
- package/dist/{snapshot-75S4SIRK.js → snapshot-PJUNSMDS.js} +49 -46
- package/dist/{src-MTLH4YHV.js → src-RL6YEPTD.js} +10 -10
- package/dist/{src-KS6W3WRC.js → src-SMIMKSHZ.js} +18 -18
- package/dist/{start-4UCLBL76.js → start-5ZDH643Z.js} +32 -25
- package/dist/{staticProjectServer-USD7TCZH.js → staticProjectServer-BX4RWEY5.js} +21 -21
- package/dist/{status-MPCREDMQ.js → status-4LLUW5YT.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-CQLtM2zB.js → hyperframes-player-CcNGHTev.js} +1 -1
- package/dist/studio/assets/{index-CKnGNPHF.js → index-D9uDed3x.js} +1 -1
- package/dist/studio/assets/{index-CdWK2GVp.js → index-DSRgrCDX.js} +118 -118
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-447CJUUM.js → studio-api-PEUXVD7P.js} +17 -17
- package/dist/{studioServer-TMPKQRQA.js → studioServer-2WIQBEQC.js} +61 -61
- package/dist/{sync-V456U5AA.js → sync-P3O3WZWT.js} +19 -16
- package/dist/{telemetry-NK6K3VRH.js → telemetry-267LV4SC.js} +3 -3
- package/dist/templates/_shared/AGENTS.md +1 -0
- package/dist/templates/_shared/CLAUDE.md +1 -0
- package/dist/templates-MQ742KVZ.js +173 -0
- package/dist/{timeline-M5URP7QS.js → timeline-WP7AZAQC.js} +24 -24
- package/dist/{tokens-5OIFB4MD.js → tokens-ROFKR7AE.js} +2 -2
- package/dist/{transcribe-ON5WTZV3.js → transcribe-N66QUYCS.js} +12 -12
- package/dist/{transcribe-N3E7T7AW.js → transcribe-WS2STSCJ.js} +23 -22
- package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
- package/dist/{updateCheck-JQOAKPNR.js → updateCheck-M2SMSDIO.js} +2 -2
- package/dist/{upgrade-737POFN4.js → upgrade-ZUWFB2QM.js} +2 -2
- package/dist/upload-L5TSWWIU.js +16 -0
- package/dist/{urlDownloader-ZIPT6PZC.js → urlDownloader-YNI3Y3IE.js} +8 -8
- package/dist/{validate-6IPCQFXI.js → validate-M2M37G47.js} +28 -28
- package/dist/{video-BEZHDPH2.js → video-2OEOTSPQ.js} +10 -10
- package/dist/warmCheck.js +44 -44
- package/package.json +1 -1
- package/dist/chunk-OUZSRPKC.js +0 -5035
- package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
- package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
- package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
shouldTrack
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-V74HSKGY.js";
|
|
10
10
|
|
|
11
11
|
// src/telemetry/renderObservability.ts
|
|
12
12
|
function renderObservabilityTelemetryPayload(observability) {
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
renderFrameIdForRenderId,
|
|
43
43
|
resolveAuthoredTimingWindow,
|
|
44
44
|
toFps
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-W5AUD5OL.js";
|
|
46
46
|
import {
|
|
47
47
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
48
48
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
sourceTimeAt,
|
|
86
86
|
timeAtSourceTime,
|
|
87
87
|
volumeSegmentSampleCount
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-Y3ICFPFK.js";
|
|
89
89
|
import {
|
|
90
90
|
redactTelemetryString,
|
|
91
91
|
redactUrlQueryStrings
|
|
@@ -103,16 +103,16 @@ import {
|
|
|
103
103
|
} from "./chunk-WE42NVH7.js";
|
|
104
104
|
import {
|
|
105
105
|
resolveReferencedStart
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-XX77LLFJ.js";
|
|
107
|
+
import {
|
|
108
|
+
isWithinProjectRoot,
|
|
109
|
+
resolveProjectRelativeSrc
|
|
110
|
+
} from "./chunk-WVRAFHJU.js";
|
|
107
111
|
import {
|
|
108
112
|
FFMPEG_PATH_ENV,
|
|
109
113
|
FFPROBE_PATH_ENV,
|
|
110
114
|
findFfBinary
|
|
111
115
|
} from "./chunk-HYRPH6LL.js";
|
|
112
|
-
import {
|
|
113
|
-
isWithinProjectRoot,
|
|
114
|
-
resolveProjectRelativeSrc
|
|
115
|
-
} from "./chunk-WVRAFHJU.js";
|
|
116
116
|
import {
|
|
117
117
|
isPathInside
|
|
118
118
|
} from "./chunk-C2KEGBR3.js";
|
|
@@ -6753,6 +6753,7 @@ function recordSubTimelineWarning(session, timeoutMs) {
|
|
|
6753
6753
|
const threwThenTimedOut = session.pageErrors.length > 0 && session.scriptLoadFailures.length === 0;
|
|
6754
6754
|
const scriptFailure = isScriptFailure(session);
|
|
6755
6755
|
const sources = [...session.scriptLoadFailures, ...session.pageErrors];
|
|
6756
|
+
const loadCauses = session.scriptLoadCauses ?? [];
|
|
6756
6757
|
const pending = session.pendingTimelineIds ?? [];
|
|
6757
6758
|
const pendingSuffix = pending.length > 0 ? ` (still unregistered: ${pending.join(", ")})` : "";
|
|
6758
6759
|
const isolated = session.isolatedCompositions ?? [];
|
|
@@ -6774,7 +6775,7 @@ function recordSubTimelineWarning(session, timeoutMs) {
|
|
|
6774
6775
|
recordCaptureWarnings(session, [
|
|
6775
6776
|
{
|
|
6776
6777
|
code: scriptFailure ? "sub_timeline_script_failure" : "sub_timeline_readiness_timeout",
|
|
6777
|
-
message: threwThenTimedOut ? `A composition script threw before its timeline registered${pendingSuffix} (${sources.join(", ")}). Fix the error; a composition animated by CSS or rAF rather than a GSAP timeline must mark its host with data-no-timeline.` : scriptFailure ? `A sub-composition timeline script failed to load (${sources.join(", ")})` : `Sub-composition timelines did not become ready within ${timeoutMs}ms${pendingSuffix}. This can be intentional: a composition driven by CSS animations or rAF never registers window.__timelines[id], and marking its host with data-no-timeline skips the wait entirely. Otherwise, a composition that sets up asynchronously must register window.__timelines[id] once setup completes.`,
|
|
6778
|
+
message: threwThenTimedOut ? `A composition script threw before its timeline registered${pendingSuffix} (${sources.join(", ")}). Fix the error; a composition animated by CSS or rAF rather than a GSAP timeline must mark its host with data-no-timeline.` : scriptFailure ? `A sub-composition timeline script failed to load (${sources.join(", ")})` + scriptLoadCauseSuffix(loadCauses) : `Sub-composition timelines did not become ready within ${timeoutMs}ms${pendingSuffix}. This can be intentional: a composition driven by CSS animations or rAF never registers window.__timelines[id], and marking its host with data-no-timeline skips the wait entirely. Otherwise, a composition that sets up asynchronously must register window.__timelines[id] once setup completes.`,
|
|
6778
6779
|
details: {
|
|
6779
6780
|
timeoutMs,
|
|
6780
6781
|
sources,
|
|
@@ -6897,10 +6898,43 @@ function loggedEarlierInRender(session, text) {
|
|
|
6897
6898
|
function recordPageError(session, error) {
|
|
6898
6899
|
if (error && !session.pageErrors.includes(error)) session.pageErrors.push(error);
|
|
6899
6900
|
}
|
|
6900
|
-
function recordScriptLoadFailure(session, url) {
|
|
6901
|
+
function recordScriptLoadFailure(session, url, cause) {
|
|
6901
6902
|
if (!session.scriptLoadFailures.includes(url)) {
|
|
6902
6903
|
session.scriptLoadFailures.push(url);
|
|
6904
|
+
(session.scriptLoadCauses ??= []).push(cause);
|
|
6905
|
+
}
|
|
6906
|
+
}
|
|
6907
|
+
var CDN_HOSTS = /^(?:cdn\.jsdelivr\.net|unpkg\.com|cdnjs\.cloudflare\.com)$/;
|
|
6908
|
+
function classifyScriptLoadCause(url, serverUrl, failure) {
|
|
6909
|
+
let origin = "unknown";
|
|
6910
|
+
if (url.startsWith(`${serverUrl}/`)) origin = "local";
|
|
6911
|
+
else if (/^https?:\/\//.test(url)) {
|
|
6912
|
+
origin = CDN_HOSTS.test(new URL(url).hostname) ? "cdn" : "remote";
|
|
6913
|
+
}
|
|
6914
|
+
const code = typeof failure === "number" ? `http-${failure}` : /^net::ERR_[A-Z0-9_]{1,40}$/.test(failure) ? failure : "unknown";
|
|
6915
|
+
return { origin, code };
|
|
6916
|
+
}
|
|
6917
|
+
function scriptLoadCauseSuffix(causes) {
|
|
6918
|
+
const shown = causes.slice(0, 4).map((c) => `${c.origin}/${c.code}`);
|
|
6919
|
+
return shown.length === 0 ? "" : ` [script_load: ${shown.join(", ")}]`;
|
|
6920
|
+
}
|
|
6921
|
+
var CANCELLED_BY_THE_PAGE_NOT_REFUSED = "net::ERR_ABORTED";
|
|
6922
|
+
function recordFailedRequest(session, request) {
|
|
6923
|
+
const resourceType = request.resourceType();
|
|
6924
|
+
const url = request.url();
|
|
6925
|
+
const failureText = request.failure()?.errorText ?? "unknown";
|
|
6926
|
+
if (resourceType === "script" && failureText !== CANCELLED_BY_THE_PAGE_NOT_REFUSED) {
|
|
6927
|
+
recordScriptLoadFailure(
|
|
6928
|
+
session,
|
|
6929
|
+
url,
|
|
6930
|
+
classifyScriptLoadCause(url, session.serverUrl, failureText)
|
|
6931
|
+
);
|
|
6903
6932
|
}
|
|
6933
|
+
if (shouldIgnoreRequestFailureDiagnostic({ resourceType, url, failureText })) return;
|
|
6934
|
+
appendBrowserDiagnostic(
|
|
6935
|
+
session,
|
|
6936
|
+
formatRequestFailureDiagnostic({ method: request.method(), resourceType, url, failureText })
|
|
6937
|
+
);
|
|
6904
6938
|
}
|
|
6905
6939
|
var SCRIPT_ERROR_LABEL = "[HyperFrames] composition script error:";
|
|
6906
6940
|
function classifyConsoleScriptError(type, text) {
|
|
@@ -6964,7 +6998,8 @@ async function initializeSession(session) {
|
|
|
6964
6998
|
}
|
|
6965
6999
|
appendBrowserDiagnostic(session, diagnostic.text);
|
|
6966
7000
|
const scriptFailure = classifyConsoleScriptFailure(type, text);
|
|
6967
|
-
if (scriptFailure)
|
|
7001
|
+
if (scriptFailure)
|
|
7002
|
+
recordScriptLoadFailure(session, scriptFailure, { origin: "unknown", code: "unknown" });
|
|
6968
7003
|
recordConsoleScriptError(session, classifyConsoleScriptError(type, text));
|
|
6969
7004
|
});
|
|
6970
7005
|
page.on("pageerror", (err) => {
|
|
@@ -6973,24 +7008,7 @@ async function initializeSession(session) {
|
|
|
6973
7008
|
if (!isPlayPauseAbort(message)) console.error(text);
|
|
6974
7009
|
appendBrowserDiagnostic(session, text);
|
|
6975
7010
|
});
|
|
6976
|
-
page.on("requestfailed", (request) =>
|
|
6977
|
-
const resourceType = request.resourceType();
|
|
6978
|
-
const url2 = request.url();
|
|
6979
|
-
const failureText = request.failure()?.errorText ?? "unknown";
|
|
6980
|
-
if (resourceType === "script") {
|
|
6981
|
-
recordScriptLoadFailure(session, request.url());
|
|
6982
|
-
}
|
|
6983
|
-
if (shouldIgnoreRequestFailureDiagnostic({ resourceType, url: url2, failureText })) return;
|
|
6984
|
-
appendBrowserDiagnostic(
|
|
6985
|
-
session,
|
|
6986
|
-
formatRequestFailureDiagnostic({
|
|
6987
|
-
method: request.method(),
|
|
6988
|
-
resourceType,
|
|
6989
|
-
url: url2,
|
|
6990
|
-
failureText
|
|
6991
|
-
})
|
|
6992
|
-
);
|
|
6993
|
-
});
|
|
7011
|
+
page.on("requestfailed", (request) => recordFailedRequest(session, request));
|
|
6994
7012
|
const projectScripts = /* @__PURE__ */ new Set();
|
|
6995
7013
|
page.on("response", (response) => {
|
|
6996
7014
|
const status = response.status();
|
|
@@ -7001,7 +7019,13 @@ async function initializeSession(session) {
|
|
|
7001
7019
|
if (isScript && responseUrl.startsWith(`${serverUrl}/`)) projectScripts.add(responseUrl);
|
|
7002
7020
|
return;
|
|
7003
7021
|
}
|
|
7004
|
-
if (isScript)
|
|
7022
|
+
if (isScript) {
|
|
7023
|
+
recordScriptLoadFailure(
|
|
7024
|
+
session,
|
|
7025
|
+
responseUrl,
|
|
7026
|
+
classifyScriptLoadCause(responseUrl, serverUrl, status)
|
|
7027
|
+
);
|
|
7028
|
+
}
|
|
7005
7029
|
appendBrowserDiagnostic(
|
|
7006
7030
|
session,
|
|
7007
7031
|
formatHttpErrorDiagnostic({
|
|
@@ -19,7 +19,11 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JZPUXDQE.js";
|
|
23
|
+
import {
|
|
24
|
+
MEDIA_LINK_ATTR,
|
|
25
|
+
relinkSplitHalves
|
|
26
|
+
} from "./chunk-AW3XJY4S.js";
|
|
23
27
|
import {
|
|
24
28
|
DEFAULT_TARGET_LUFS,
|
|
25
29
|
absoluteLoudnessPlan,
|
|
@@ -28,11 +32,22 @@ import {
|
|
|
28
32
|
requestedProjectPath,
|
|
29
33
|
requiredFfmpeg,
|
|
30
34
|
resolveLocalAudioPath
|
|
31
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CPMTEWQM.js";
|
|
32
36
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
HistoryBusyError,
|
|
38
|
+
MAX_WINDOW_IDLE_MS,
|
|
39
|
+
STUDIO_SIGNATURE_MANIFEST_PATHS,
|
|
40
|
+
UNDO_MODES,
|
|
41
|
+
clearFileWriteReceipt,
|
|
42
|
+
createProjectSignatureAsync,
|
|
43
|
+
createWriteToken,
|
|
44
|
+
fileContentVersion,
|
|
45
|
+
recordFileWriteReceipt,
|
|
46
|
+
resolveProjectAndSignature,
|
|
47
|
+
resolveProjectSignature,
|
|
48
|
+
serveWhileOpen,
|
|
49
|
+
settledFileTag
|
|
50
|
+
} from "./chunk-XLPCBE2Q.js";
|
|
36
51
|
import {
|
|
37
52
|
PROXY_PARAMS_VERSION,
|
|
38
53
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -56,26 +71,11 @@ import {
|
|
|
56
71
|
scanProjectMedia,
|
|
57
72
|
shouldPrewarmProxy,
|
|
58
73
|
waitForProxy
|
|
59
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-MDMQD6BV.js";
|
|
60
75
|
import {
|
|
61
76
|
probeAudioTrack,
|
|
62
77
|
probeMediaMetadata
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import {
|
|
65
|
-
HistoryBusyError,
|
|
66
|
-
MAX_WINDOW_IDLE_MS,
|
|
67
|
-
STUDIO_SIGNATURE_MANIFEST_PATHS,
|
|
68
|
-
UNDO_MODES,
|
|
69
|
-
clearFileWriteReceipt,
|
|
70
|
-
createProjectSignature,
|
|
71
|
-
createWriteToken,
|
|
72
|
-
fileContentVersion,
|
|
73
|
-
recordFileWriteReceipt,
|
|
74
|
-
resolveProjectAndSignature,
|
|
75
|
-
resolveProjectSignature,
|
|
76
|
-
serveWhileOpen,
|
|
77
|
-
settledFileTag
|
|
78
|
-
} from "./chunk-UGUYWTWD.js";
|
|
78
|
+
} from "./chunk-2QMEP4LR.js";
|
|
79
79
|
import {
|
|
80
80
|
STUDIO_MOTION_PATH,
|
|
81
81
|
createStudioMotionRenderBodyScript,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
ensureHfIds,
|
|
118
118
|
stampHfIdsInPlace,
|
|
119
119
|
stripSdrPngColourTags
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-PPMCILED.js";
|
|
121
121
|
import {
|
|
122
122
|
PREVIEW_PROXY_BOX_PARAM,
|
|
123
123
|
PREVIEW_PROXY_LIGHT_PARAM,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
fpsToNumber,
|
|
131
131
|
parseFps,
|
|
132
132
|
parsePreviewProxyBox
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-W5AUD5OL.js";
|
|
134
134
|
import {
|
|
135
135
|
GSAP_BASE_URL_META,
|
|
136
136
|
gsapCdnDist,
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
resolveRateSpec,
|
|
153
153
|
sourceTimeAt,
|
|
154
154
|
stripEmbeddedRuntimeScripts
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-Y3ICFPFK.js";
|
|
156
156
|
import {
|
|
157
157
|
ProjectRootMissingError,
|
|
158
158
|
folderGone,
|
|
@@ -161,14 +161,14 @@ import {
|
|
|
161
161
|
mkdirWithinProject,
|
|
162
162
|
realpath
|
|
163
163
|
} from "./chunk-OFQWTKPW.js";
|
|
164
|
-
import {
|
|
165
|
-
FFPROBE_PATH_ENV,
|
|
166
|
-
findFfBinary
|
|
167
|
-
} from "./chunk-HYRPH6LL.js";
|
|
168
164
|
import {
|
|
169
165
|
isWithinProjectRoot,
|
|
170
166
|
readProjectFile
|
|
171
167
|
} from "./chunk-WVRAFHJU.js";
|
|
168
|
+
import {
|
|
169
|
+
FFPROBE_PATH_ENV,
|
|
170
|
+
findFfBinary
|
|
171
|
+
} from "./chunk-HYRPH6LL.js";
|
|
172
172
|
import {
|
|
173
173
|
decodeCssEscapes,
|
|
174
174
|
decodeWellFormedEscapes,
|
|
@@ -187,7 +187,7 @@ import {
|
|
|
187
187
|
decodeAuthoredAttribute,
|
|
188
188
|
scanHtmlOpeningTags,
|
|
189
189
|
unrollComputedTimeline
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-JHILL4BN.js";
|
|
191
191
|
import {
|
|
192
192
|
parseHTML
|
|
193
193
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -197,6 +197,31 @@ import {
|
|
|
197
197
|
simple
|
|
198
198
|
} from "./chunk-WC4MTXGN.js";
|
|
199
199
|
|
|
200
|
+
// ../studio-server/dist/chunk-UEEXAVOA.js
|
|
201
|
+
function findUnsafeMutationValues(value, path = "body", options = {}) {
|
|
202
|
+
if (value === null) {
|
|
203
|
+
return options.allowNullPath?.(path) ? [] : [{ path, reason: "null" }];
|
|
204
|
+
}
|
|
205
|
+
if (typeof value === "number") {
|
|
206
|
+
return Number.isFinite(value) ? [] : [{ path, reason: "non-finite-number" }];
|
|
207
|
+
}
|
|
208
|
+
if (!value || typeof value !== "object") return [];
|
|
209
|
+
if (Array.isArray(value)) {
|
|
210
|
+
return value.flatMap(
|
|
211
|
+
(item, index) => findUnsafeMutationValues(item, `${path}[${index}]`, options)
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
return Object.entries(value).flatMap(
|
|
215
|
+
([key, item]) => findUnsafeMutationValues(item, `${path}.${key}`, options)
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
var DOM_PATCH_NULL_VALUE_PATH = /^body\.operations\[\d+\]\.value$/;
|
|
219
|
+
function findUnsafeDomPatchValues(value) {
|
|
220
|
+
return findUnsafeMutationValues(value, "body", {
|
|
221
|
+
allowNullPath: (path) => DOM_PATCH_NULL_VALUE_PATH.test(path)
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
|
|
200
225
|
// ../studio-server/dist/chunk-7ROCGO5U.js
|
|
201
226
|
import { createHash } from "crypto";
|
|
202
227
|
import { closeSync, constants, fstatSync, openSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -391,38 +416,6 @@ async function injectMediaCodecMap(html, adapter, projectDir, compSrcPath, probe
|
|
|
391
416
|
return injectMediaCodecMapIntoHtml(html, projectDir, [{ html, compSrcPath }], probeCache, false);
|
|
392
417
|
}
|
|
393
418
|
|
|
394
|
-
// ../core/dist/studioPreviewMark.js
|
|
395
|
-
var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
|
|
396
|
-
var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
397
|
-
var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
398
|
-
var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
399
|
-
var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
|
|
400
|
-
|
|
401
|
-
// ../studio-server/dist/chunk-UEEXAVOA.js
|
|
402
|
-
function findUnsafeMutationValues(value, path = "body", options = {}) {
|
|
403
|
-
if (value === null) {
|
|
404
|
-
return options.allowNullPath?.(path) ? [] : [{ path, reason: "null" }];
|
|
405
|
-
}
|
|
406
|
-
if (typeof value === "number") {
|
|
407
|
-
return Number.isFinite(value) ? [] : [{ path, reason: "non-finite-number" }];
|
|
408
|
-
}
|
|
409
|
-
if (!value || typeof value !== "object") return [];
|
|
410
|
-
if (Array.isArray(value)) {
|
|
411
|
-
return value.flatMap(
|
|
412
|
-
(item, index) => findUnsafeMutationValues(item, `${path}[${index}]`, options)
|
|
413
|
-
);
|
|
414
|
-
}
|
|
415
|
-
return Object.entries(value).flatMap(
|
|
416
|
-
([key, item]) => findUnsafeMutationValues(item, `${path}.${key}`, options)
|
|
417
|
-
);
|
|
418
|
-
}
|
|
419
|
-
var DOM_PATCH_NULL_VALUE_PATH = /^body\.operations\[\d+\]\.value$/;
|
|
420
|
-
function findUnsafeDomPatchValues(value) {
|
|
421
|
-
return findUnsafeMutationValues(value, "body", {
|
|
422
|
-
allowNullPath: (path) => DOM_PATCH_NULL_VALUE_PATH.test(path)
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
|
|
426
419
|
// ../studio-server/dist/index.js
|
|
427
420
|
import { Hono } from "hono";
|
|
428
421
|
import { readFile } from "fs/promises";
|
|
@@ -3684,6 +3677,16 @@ import { createReadStream, existsSync as existsSync5, readFileSync as readFileSy
|
|
|
3684
3677
|
import { Readable } from "stream";
|
|
3685
3678
|
import { join as join8, resolve as resolve4 } from "path";
|
|
3686
3679
|
import { createHash as createHash3 } from "crypto";
|
|
3680
|
+
|
|
3681
|
+
// ../core/dist/studioPreviewMark.js
|
|
3682
|
+
var STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
|
|
3683
|
+
var STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
3684
|
+
var STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
3685
|
+
var STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
3686
|
+
var STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
|
|
3687
|
+
var refusedPreviewMessage = (status) => `The preview page could not be loaded (HTTP ${status}).`;
|
|
3688
|
+
|
|
3689
|
+
// ../studio-server/dist/index.js
|
|
3687
3690
|
import { readlinkSync as readlinkSync2 } from "fs";
|
|
3688
3691
|
import { dirname as dirname4, join as join7, parse as parse2, relative as relative3, resolve as resolve32 } from "path";
|
|
3689
3692
|
import { readFileSync as readFileSync7 } from "fs";
|
|
@@ -3768,7 +3771,7 @@ function registerProjectRoutes(api, adapter) {
|
|
|
3768
3771
|
api.get("/projects/:id/signature", async (c) => {
|
|
3769
3772
|
const project = await adapter.resolveProject(c.req.param("id"));
|
|
3770
3773
|
if (!project) return c.json({ error: "not found" }, 404);
|
|
3771
|
-
return c.json({ signature: resolveProjectSignature(adapter, project.dir) });
|
|
3774
|
+
return c.json({ signature: await resolveProjectSignature(adapter, project.dir) });
|
|
3772
3775
|
});
|
|
3773
3776
|
api.get("/projects/:id", async (c) => {
|
|
3774
3777
|
const project = await adapter.resolveProject(c.req.param("id"));
|
|
@@ -4061,7 +4064,7 @@ ${rewrittenContent}
|
|
|
4061
4064
|
</html>`;
|
|
4062
4065
|
}
|
|
4063
4066
|
function hasBaseElement(html) {
|
|
4064
|
-
return
|
|
4067
|
+
return findStartTags(html, "base").length > 0;
|
|
4065
4068
|
}
|
|
4066
4069
|
var CompositionInsertionError = class extends Error {
|
|
4067
4070
|
constructor(message, status) {
|
|
@@ -4323,7 +4326,7 @@ function rootHashes(read) {
|
|
|
4323
4326
|
const source = read(ROOT_COMPOSITION) ?? "";
|
|
4324
4327
|
return { root: sha1(source), head: sha1(rootHeadContent(source)) };
|
|
4325
4328
|
}
|
|
4326
|
-
function compositionInputSignature(projectDir, compPath, projectSignature) {
|
|
4329
|
+
async function compositionInputSignature(projectDir, compPath, projectSignature) {
|
|
4327
4330
|
const key = `${projectDir}\0${compPath}`;
|
|
4328
4331
|
const known = inputSignatures.get(key);
|
|
4329
4332
|
if (known?.projectSignature === projectSignature) return known.inputSignature;
|
|
@@ -4335,11 +4338,12 @@ function compositionInputSignature(projectDir, compPath, projectSignature) {
|
|
|
4335
4338
|
);
|
|
4336
4339
|
let inputSignature;
|
|
4337
4340
|
if (comp === ROOT_COMPOSITION) {
|
|
4338
|
-
inputSignature =
|
|
4341
|
+
inputSignature = await createProjectSignatureAsync(projectDir, excluded);
|
|
4339
4342
|
} else {
|
|
4340
4343
|
const hashes = rootHashes(read);
|
|
4341
4344
|
if (!rootMemos.has(projectDir)) rootMemos.set(projectDir, { ...hashes, affected: null });
|
|
4342
|
-
|
|
4345
|
+
const rest = await createProjectSignatureAsync(projectDir, excluded.add(ROOT_COMPOSITION));
|
|
4346
|
+
inputSignature = `${rest}:${hashes.head}`;
|
|
4343
4347
|
}
|
|
4344
4348
|
inputSignatures.set(key, { projectSignature, inputSignature });
|
|
4345
4349
|
return inputSignature;
|
|
@@ -5619,7 +5623,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5619
5623
|
let block = extractGsapScriptBlock(html);
|
|
5620
5624
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5621
5625
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5622
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5626
|
+
const { GSAP_CDN } = await import("./dist-GUX66F7V.js");
|
|
5623
5627
|
const bootstrap = [
|
|
5624
5628
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5625
5629
|
"<script>",
|
|
@@ -7516,8 +7520,9 @@ function startsAfterZero(el) {
|
|
|
7516
7520
|
var hasLoading = (img) => Array.from(img.attributes).some((attr) => attr.name.toLowerCase() === "loading");
|
|
7517
7521
|
function lazyPreviewImages(html) {
|
|
7518
7522
|
if (!/<!doctype|<html[\s>]/i.test(html)) return html;
|
|
7519
|
-
const images = [...parseHTML(html).document.querySelectorAll("img")];
|
|
7520
7523
|
const tags = findStartTags(html, "img");
|
|
7524
|
+
if (tags.length === 0) return html;
|
|
7525
|
+
const images = [...parseHTML(html).document.querySelectorAll("img")];
|
|
7521
7526
|
if (tags.length !== images.length) return html;
|
|
7522
7527
|
const parts = [];
|
|
7523
7528
|
let from = 0;
|
|
@@ -7654,7 +7659,7 @@ var GSAP_FALLBACK_ATTR = "data-hf-gsap-fallback";
|
|
|
7654
7659
|
function gsapCdnFallbackScript(baseUrl) {
|
|
7655
7660
|
return `<script ${GSAP_FALLBACK_ATTR}>
|
|
7656
7661
|
(function(){
|
|
7657
|
-
var cdnBase=${
|
|
7662
|
+
var cdnBase=${scriptJson(gsapCdnDist(void 0, baseUrl))};
|
|
7658
7663
|
var loaded={};
|
|
7659
7664
|
function loadFallback(file){
|
|
7660
7665
|
if(loaded[file])return loaded[file];
|
|
@@ -7704,15 +7709,21 @@ function previewVariablesFromRequest(rawVariables) {
|
|
|
7704
7709
|
return { raw: rawVariables, values: parse22.values };
|
|
7705
7710
|
}
|
|
7706
7711
|
var PREVIEW_CAPTURE_PARAM = "hf-capture";
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7712
|
+
function scriptJson(value) {
|
|
7713
|
+
return JSON.stringify(value).replace(/</g, "\\u003c").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
7714
|
+
}
|
|
7715
|
+
var earlyErrorsScript = (runtimeUrl) => `<script>(function(){var seen=window.${STUDIO_PREVIEW_ERRORS}=[],kinds=window.${STUDIO_PREVIEW_ERROR_KINDS}=[],known={SyntaxError:1,TypeError:1,ReferenceError:1,RangeError:1},runtime=${scriptJson(new URL(runtimeUrl, "http://x").pathname)};
|
|
7716
|
+
addEventListener("error",function(e){seen.push(e.message||String(e));
|
|
7717
|
+
var name=e.error&&e.error.constructor&&e.error.constructor.name,path="";
|
|
7718
|
+
try{var url=e.filename&&new URL(e.filename,window.location.href);if(url&&url.origin===window.location.origin)path=url.pathname}catch(_){}
|
|
7719
|
+
kinds.push({name:known[name]===1?name:"other",origin:!path?"unknown":path===runtime?"runtime":path.indexOf("/api/projects/")===0?"project":"studio"})});})();</script>`;
|
|
7720
|
+
function injectStudioPreviewAugmentations(html, adapter, signature, projectDir, activeCompositionPath, options) {
|
|
7710
7721
|
const marked = options.capture ? injectTagsAtHeadStart(
|
|
7711
7722
|
html,
|
|
7712
7723
|
`<meta name="${STUDIO_PREVIEW_MARK_META}" content="${STUDIO_PREVIEW_CAPTURE_MODE}">`
|
|
7713
7724
|
) : injectTagsAtHeadStart(
|
|
7714
7725
|
lazyPreviewImages(html),
|
|
7715
|
-
`<meta name="${STUDIO_PREVIEW_MARK_META}">${
|
|
7726
|
+
`<meta name="${STUDIO_PREVIEW_MARK_META}">${earlyErrorsScript(adapter.runtimeUrl)}`
|
|
7716
7727
|
);
|
|
7717
7728
|
const withFallback = injectGsapCdnFallback(
|
|
7718
7729
|
injectProjectSignature(
|
|
@@ -7720,7 +7731,7 @@ function injectStudioPreviewAugmentations(html, adapter, projectDir, activeCompo
|
|
|
7720
7731
|
marked,
|
|
7721
7732
|
`<meta name="${GSAP_BASE_URL_META}" content="${escapeGsapUrl(options.gsapBaseUrl)}">`
|
|
7722
7733
|
),
|
|
7723
|
-
|
|
7734
|
+
signature
|
|
7724
7735
|
),
|
|
7725
7736
|
options.gsapBaseUrl
|
|
7726
7737
|
);
|
|
@@ -7825,6 +7836,7 @@ function registerPreviewRoutes(api, adapter) {
|
|
|
7825
7836
|
bundled = injectStudioPreviewAugmentations(
|
|
7826
7837
|
ensureHfIds(await transformPreviewHtml(bundled, adapter, project, mainCompositionPath)),
|
|
7827
7838
|
adapter,
|
|
7839
|
+
signature,
|
|
7828
7840
|
project.dir,
|
|
7829
7841
|
mainCompositionPath,
|
|
7830
7842
|
{ capture, gsapBaseUrl }
|
|
@@ -7838,7 +7850,7 @@ function registerPreviewRoutes(api, adapter) {
|
|
|
7838
7850
|
mediaCodecProbeCache
|
|
7839
7851
|
);
|
|
7840
7852
|
bundled = addScenePartsManifest(bundled, [`meta[name="${PROJECT_SIGNATURE_META}"]`]);
|
|
7841
|
-
if (
|
|
7853
|
+
if (await createProjectSignatureAsync(project.dir) === signature) {
|
|
7842
7854
|
rememberPreview(builtKey, bundled);
|
|
7843
7855
|
if (!capture) adapter.previewDocuments?.write(builtKey, bundled);
|
|
7844
7856
|
}
|
|
@@ -7853,6 +7865,7 @@ function registerPreviewRoutes(api, adapter) {
|
|
|
7853
7865
|
let fallbackAugmented = injectStudioPreviewAugmentations(
|
|
7854
7866
|
await transformPreviewHtml(fallbackHtml, adapter, project, fallback.compositionPath),
|
|
7855
7867
|
adapter,
|
|
7868
|
+
signature,
|
|
7856
7869
|
project.dir,
|
|
7857
7870
|
fallback.compositionPath,
|
|
7858
7871
|
{ capture, gsapBaseUrl }
|
|
@@ -7953,7 +7966,7 @@ ${etag}`;
|
|
|
7953
7966
|
html = withRootImportMap(html, baseHref);
|
|
7954
7967
|
recordPreviewReferences(project.dir, html);
|
|
7955
7968
|
html = ensureHfIds(await transformPreviewHtml(html, adapter, project, compPath));
|
|
7956
|
-
html = injectStudioPreviewAugmentations(html, adapter, project.dir, compPath, {
|
|
7969
|
+
html = injectStudioPreviewAugmentations(html, adapter, signature, project.dir, compPath, {
|
|
7957
7970
|
capture,
|
|
7958
7971
|
gsapBaseUrl
|
|
7959
7972
|
});
|
|
@@ -8151,6 +8164,15 @@ function registerLintRoutes(api, adapter) {
|
|
|
8151
8164
|
}
|
|
8152
8165
|
});
|
|
8153
8166
|
}
|
|
8167
|
+
var firstSeenFinishedAt = /* @__PURE__ */ new WeakMap();
|
|
8168
|
+
function forgetJobsFinishedLongerThan(ttlMs, jobs, isFinished, now = Date.now()) {
|
|
8169
|
+
for (const [id, job] of jobs) {
|
|
8170
|
+
if (!isFinished(job)) continue;
|
|
8171
|
+
const finishedAt = firstSeenFinishedAt.get(job) ?? now;
|
|
8172
|
+
firstSeenFinishedAt.set(job, finishedAt);
|
|
8173
|
+
if (now - finishedAt > ttlMs) jobs.delete(id);
|
|
8174
|
+
}
|
|
8175
|
+
}
|
|
8154
8176
|
var VALID_RESOLUTIONS = new Set(VALID_CANVAS_RESOLUTIONS);
|
|
8155
8177
|
var RENDER_MIME = {
|
|
8156
8178
|
".mp4": "video/mp4",
|
|
@@ -8190,12 +8212,7 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8190
8212
|
let cleanupTimer = null;
|
|
8191
8213
|
const cleanupEnabled = () => typeof process !== "undefined" && process.env.NODE_ENV !== "production" && !process.argv.includes("build");
|
|
8192
8214
|
const cleanupFinishedJobs = () => {
|
|
8193
|
-
|
|
8194
|
-
for (const [key, job] of renderJobs) {
|
|
8195
|
-
if (job.status !== "rendering" && now - job.createdAt > TTL_MS) {
|
|
8196
|
-
renderJobs.delete(key);
|
|
8197
|
-
}
|
|
8198
|
-
}
|
|
8215
|
+
forgetJobsFinishedLongerThan(TTL_MS, renderJobs, (job) => job.status !== "rendering");
|
|
8199
8216
|
if (renderJobs.size === 0 && cleanupTimer) {
|
|
8200
8217
|
clearInterval(cleanupTimer);
|
|
8201
8218
|
cleanupTimer = null;
|
|
@@ -8273,7 +8290,6 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8273
8290
|
telemetryOptOut: body.telemetryOptOut === true,
|
|
8274
8291
|
...pageMotionBlur === void 0 ? {} : { pageMotionBlur }
|
|
8275
8292
|
});
|
|
8276
|
-
jobState.createdAt = Date.now();
|
|
8277
8293
|
renderJobs.set(jobId, jobState);
|
|
8278
8294
|
ensureCleanupTimer();
|
|
8279
8295
|
return c.json({ jobId, status: "rendering" });
|
|
@@ -8423,8 +8439,7 @@ function registerRenderRoutes(api, adapter) {
|
|
|
8423
8439
|
id: file.id,
|
|
8424
8440
|
status: file.status,
|
|
8425
8441
|
progress: 100,
|
|
8426
|
-
outputPath: file.path
|
|
8427
|
-
createdAt: file.createdAt
|
|
8442
|
+
outputPath: file.path
|
|
8428
8443
|
});
|
|
8429
8444
|
}
|
|
8430
8445
|
}
|
|
@@ -8718,7 +8733,7 @@ function registerThumbnailRoutes(api, adapter) {
|
|
|
8718
8733
|
const htmlFile = resolveWithinProject(project.dir, compPath);
|
|
8719
8734
|
const source = htmlFile ? readFileOnce(htmlFile) : "not-a-file";
|
|
8720
8735
|
if (source === "not-a-file") return c.json({ error: "not found" }, 404);
|
|
8721
|
-
const inputSignature = compositionInputSignature(project.dir, compPath, projectSignature);
|
|
8736
|
+
const inputSignature = await compositionInputSignature(project.dir, compPath, projectSignature);
|
|
8722
8737
|
const url = new URL(c.req.url, `http://${c.req.header("host") || "localhost"}`);
|
|
8723
8738
|
const rawSeekTime = url.searchParams.get("t");
|
|
8724
8739
|
const parsedSeekTime = rawSeekTime == null ? Number.NaN : parseFloat(rawSeekTime);
|
|
@@ -8801,8 +8816,8 @@ function registerThumbnailRoutes(api, adapter) {
|
|
|
8801
8816
|
if (!generated) return null;
|
|
8802
8817
|
const previewCopiesAtEnd = proxyActivityMark(project.dir);
|
|
8803
8818
|
const afterGeneration = await resolveProjectAndSignature(adapter, project.id);
|
|
8804
|
-
const inputsUnchanged = (signature) => compositionInputSignature(project.dir, compPath, signature) === inputSignature;
|
|
8805
|
-
if (previewCopiesAtStart === null || previewCopiesAtEnd !== previewCopiesAtStart || afterGeneration?.project.dir !== project.dir || !inputsUnchanged(afterGeneration.signature) || !inputsUnchanged(
|
|
8819
|
+
const inputsUnchanged = async (signature) => await compositionInputSignature(project.dir, compPath, signature) === inputSignature;
|
|
8820
|
+
if (previewCopiesAtStart === null || previewCopiesAtEnd !== previewCopiesAtStart || afterGeneration?.project.dir !== project.dir || !await inputsUnchanged(afterGeneration.signature) || !await inputsUnchanged(await createProjectSignatureAsync(project.dir))) {
|
|
8806
8821
|
return generated;
|
|
8807
8822
|
}
|
|
8808
8823
|
mkdirWithinProject(project.dir, cacheDir);
|
|
@@ -9684,12 +9699,11 @@ function registerMediaRoutes(api, adapter, options = {}) {
|
|
|
9684
9699
|
const TTL_MS = 3e5;
|
|
9685
9700
|
const readMediaMetadata = options.probeMediaMetadata ?? probeMediaMetadata;
|
|
9686
9701
|
function cleanupFinishedJobs() {
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
}
|
|
9702
|
+
forgetJobsFinishedLongerThan(
|
|
9703
|
+
TTL_MS,
|
|
9704
|
+
mediaJobs,
|
|
9705
|
+
(job) => job.status === "complete" || job.status === "failed"
|
|
9706
|
+
);
|
|
9693
9707
|
}
|
|
9694
9708
|
api.get("/projects/:id/media/metadata", async (c) => {
|
|
9695
9709
|
const project = await adapter.resolveProject(c.req.param("id"));
|
|
@@ -9775,7 +9789,6 @@ function registerMediaRoutes(api, adapter, options = {}) {
|
|
|
9775
9789
|
device: normalizeDevice(body.device),
|
|
9776
9790
|
jobId
|
|
9777
9791
|
});
|
|
9778
|
-
state.createdAt = Date.now();
|
|
9779
9792
|
mediaJobs.set(jobId, state);
|
|
9780
9793
|
return c.json({
|
|
9781
9794
|
jobId,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AH6MUQQC.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|