hyperframes 0.9.13 → 0.9.14
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-PXF5OGLI.js → add-JNKCTPWJ.js} +16 -16
- package/dist/{agentPromptGenerator-DWNK722M.js → agentPromptGenerator-DSF7AEVE.js} +8 -8
- package/dist/{animatedGifPrep-FFBCFFIY.js → animatedGifPrep-BIEUMGB3.js} +8 -8
- package/dist/api.js +45 -23
- package/dist/{asset-FZVMLDSY.js → asset-V6JAJRCF.js} +2 -2
- package/dist/{assetCataloger-FXBZK55R.js → assetCataloger-SCLH2WAC.js} +9 -9
- package/dist/{audio-QYNPBNZQ.js → audio-JX76VDCY.js} +15 -15
- package/dist/{auth-2FBS4QC4.js → auth-TRE4ASYT.js} +2 -2
- package/dist/{autoUpdate-VFGRGQTO.js → autoUpdate-D5UUCIOR.js} +2 -2
- package/dist/{avatars-UVZFK2JR.js → avatars-26EUVWXR.js} +12 -12
- package/dist/{backgroundChecks-FN53YXTW.js → backgroundChecks-RM5GWZIW.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-JB3D6X7U.js → batchRender-5ZEQ6U4N.js} +5 -5
- package/dist/{beats-5BJMEGGA.js → beats-3YW7MGZY.js} +22 -14
- package/dist/{benchmark-MP4JGPYM.js → benchmark-MYQTWUO3.js} +10 -10
- package/dist/{billing-XSPWEAYT.js → billing-2X3JNNM4.js} +95 -19
- package/dist/{browser-V4EB7UNU.js → browser-CQSY36GL.js} +3 -3
- package/dist/bundleWithLocalizedFonts-Z6KCDBP2.js +23 -0
- package/dist/{capture-L5TGT4SW.js → capture-IK5GIWOS.js} +20 -23
- package/dist/{capture-SQHH4HBC.js → capture-NWBNWBIX.js} +3 -3
- package/dist/{captureCompositionFrame-BAYKFJMM.js → captureCompositionFrame-KR3PELMO.js} +13 -13
- package/dist/{catalog-OLP2O5W6.js → catalog-2Q73F42B.js} +16 -16
- package/dist/{catch-up-LJWHENVV.js → catch-up-JP3FL3FX.js} +4 -4
- package/dist/{check-KGAKP3H5.js → check-UIMXDUPK.js} +46 -46
- package/dist/{checkAudio-QWBAUBJ2.js → checkAudio-CSX4G35O.js} +12 -12
- package/dist/{checkBrowser-J5UUWIPK.js → checkBrowser-MTCJVJYJ.js} +39 -39
- package/dist/{chunk-5Z7YSZRF.js → chunk-2BDSLTEG.js} +9 -9
- package/dist/{chunk-NXQMN7YC.js → chunk-2L4HQ5K4.js} +1 -1
- package/dist/{chunk-SGLX72IQ.js → chunk-2NHPNI42.js} +10 -10
- package/dist/{chunk-2WGAXAM7.js → chunk-2OIONPKY.js} +3 -3
- package/dist/{chunk-MJEE2WSS.js → chunk-2SYOEZ2Z.js} +2 -2
- package/dist/{chunk-O4Q44I77.js → chunk-2YT656R2.js} +6 -6
- package/dist/{chunk-VIEMTLSI.js → chunk-35RZMUTX.js} +7 -7
- package/dist/{chunk-U7AB4D6T.js → chunk-3B7TDQEW.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-Z23O7MZ3.js → chunk-3BHDAXDA.js} +4 -8
- package/dist/{chunk-BYWQQMTB.js → chunk-3CXUZSLE.js} +2 -2
- package/dist/{chunk-EP6GCDZ6.js → chunk-4MY6FPX4.js} +1 -1
- package/dist/{chunk-6U6KMYIV.js → chunk-4NE6CBMW.js} +1 -1
- package/dist/{chunk-N2SXD5EG.js → chunk-53UV2EUT.js} +3 -3
- package/dist/{chunk-AR6IO4RY.js → chunk-5ENBFVPD.js} +2 -2
- package/dist/{chunk-AW3XJY4S.js → chunk-6FDVPIOO.js} +1 -1
- package/dist/{chunk-NW5QHUZO.js → chunk-6FOO4QTU.js} +1 -1
- package/dist/{chunk-WCNUB6WU.js → chunk-6OSVMSGV.js} +9 -9
- package/dist/{chunk-XHY36WZF.js → chunk-6UM5C4R6.js} +2 -2
- package/dist/{chunk-SFS5BTQ3.js → chunk-6YPQSVVR.js} +1 -1
- package/dist/{chunk-AB6DKVKC.js → chunk-6ZRGEVAM.js} +85 -25
- package/dist/{chunk-2QMEP4LR.js → chunk-7AVR3VZE.js} +1 -1
- package/dist/{chunk-3BLPPIJA.js → chunk-7LQVFIO4.js} +4 -4
- package/dist/{chunk-4HGTJHKB.js → chunk-7NPHPQH5.js} +2 -2
- package/dist/{chunk-CLT3CJKG.js → chunk-AOJBIFKU.js} +1 -1
- package/dist/{chunk-MDMQD6BV.js → chunk-B6C33MNL.js} +41 -17
- package/dist/{chunk-QVW57TUW.js → chunk-BNUN7KXZ.js} +2 -2
- package/dist/{chunk-2YVIA2BX.js → chunk-BXCPOMS3.js} +9 -7
- package/dist/{chunk-H6FRRSHM.js → chunk-CMPHS5E6.js} +2 -2
- package/dist/{chunk-JHILL4BN.js → chunk-CUCP7FKH.js} +461 -1
- package/dist/{chunk-CKZVLS3K.js → chunk-CZ5NNJ6H.js} +50 -20
- package/dist/{chunk-F6PFZMQU.js → chunk-D3FZQL5R.js} +8 -8
- package/dist/{chunk-TX3JT67F.js → chunk-DD47NQJZ.js} +1 -1
- package/dist/{chunk-EQSUX64Q.js → chunk-DSIGJUNY.js} +1 -1
- package/dist/{chunk-ZPJVKYDL.js → chunk-DTU4XJNP.js} +3 -3
- package/dist/{chunk-BE7Y3PJZ.js → chunk-DTZSKJV5.js} +3 -3
- package/dist/{chunk-6PGTJG3M.js → chunk-DVJUBMS7.js} +1 -1
- package/dist/{chunk-KUXOAS4Z.js → chunk-DX4OFRBN.js} +41 -37
- package/dist/{chunk-Y3ICFPFK.js → chunk-EAO46VPT.js} +3 -3
- package/dist/{chunk-M6JFR7KF.js → chunk-EOCFNE53.js} +21 -32
- package/dist/{chunk-LTBBFLOM.js → chunk-FC2OXEBQ.js} +1 -1
- package/dist/{chunk-N43XGFAZ.js → chunk-FF3VKFCN.js} +126 -66
- package/dist/{chunk-WSZWPYRG.js → chunk-FQFWGAON.js} +2 -2
- package/dist/{chunk-OPOYDJEW.js → chunk-FZRTCVU6.js} +1 -1
- package/dist/{chunk-FJIN5OWZ.js → chunk-GY7D2OEQ.js} +2 -2
- package/dist/chunk-HNZ2FZIB.js +45 -0
- package/dist/{chunk-7S2LS53F.js → chunk-HVIQQCLM.js} +13 -13
- package/dist/{chunk-7WSL3PT3.js → chunk-HZSAOL5O.js} +2 -2
- package/dist/{chunk-UPI2MZ5L.js → chunk-I5PI43EI.js} +1 -1
- package/dist/{chunk-MGAGDEBC.js → chunk-IO3BC2ZK.js} +1 -1
- package/dist/{chunk-JGTJEQ5X.js → chunk-IPZ3QGDO.js} +2 -2
- package/dist/{chunk-GPHY5R35.js → chunk-K5CK4G75.js} +3 -3
- package/dist/{chunk-RBF3AF7R.js → chunk-L24GJQNZ.js} +16 -12
- package/dist/chunk-LSUM6RTW.js +20 -0
- package/dist/{chunk-KHF5WT6E.js → chunk-LZYXYJMX.js} +1 -1
- package/dist/{chunk-H4VII7WN.js → chunk-M34AOUVK.js} +5 -5
- package/dist/{chunk-ITDHT7AO.js → chunk-MWPPZOY5.js} +4 -4
- package/dist/{chunk-2IB3XVAR.js → chunk-MY2W7VWC.js} +14 -14
- package/dist/{chunk-W5AUD5OL.js → chunk-N7ZKI2CE.js} +5 -5
- package/dist/{chunk-3SZZLHHM.js → chunk-NBUPR3ZF.js} +1 -1
- package/dist/{chunk-YHID4CM3.js → chunk-NLEIM52W.js} +83 -21
- package/dist/{chunk-TBXV7O3Z.js → chunk-NWFIYKEI.js} +4 -4
- package/dist/{chunk-N7EA7GWU.js → chunk-O4ONYFY3.js} +1 -1
- package/dist/{chunk-AIK4ETUZ.js → chunk-O4ZD7TVR.js} +17 -1
- package/dist/{chunk-C2KEGBR3.js → chunk-OHQRQE7F.js} +1 -394
- package/dist/{chunk-ZMRRTWKP.js → chunk-PA27AW3Y.js} +1 -1
- package/dist/{chunk-YMP5FTA3.js → chunk-PCY67JUL.js} +303 -29
- package/dist/{chunk-RADODJYB.js → chunk-PYPW33ET.js} +2 -2
- package/dist/{chunk-C5VZTKW2.js → chunk-QSEHVJFA.js} +67 -211
- package/dist/{chunk-CPMTEWQM.js → chunk-RX2PFZ5W.js} +4 -4
- package/dist/{chunk-MBX3BHW3.js → chunk-SAAJ2O7A.js} +1 -1
- package/dist/{chunk-GAKRZZHQ.js → chunk-SQC4CTD2.js} +2 -2
- package/dist/{chunk-WGQW65DO.js → chunk-SSBAETRX.js} +5 -5
- package/dist/{chunk-LGVUQ4GC.js → chunk-T32JKZX3.js} +3 -3
- package/dist/{chunk-NR2W7HUH.js → chunk-T4FLVFQE.js} +1 -1
- package/dist/{chunk-KWGOABKQ.js → chunk-TESXTEV5.js} +1 -1
- package/dist/{chunk-2IATDUYU.js → chunk-TRK77R5G.js} +1 -1
- package/dist/{chunk-T5ZEMZ3K.js → chunk-TTBCQFRY.js} +2 -2
- package/dist/{chunk-7AMCGJDM.js → chunk-U22NZEQV.js} +1 -1
- package/dist/{chunk-2ASPXS4U.js → chunk-VD5G4Y6U.js} +1 -1
- package/dist/{chunk-RL52TNCM.js → chunk-W7ITBVJE.js} +2 -2
- package/dist/{chunk-SXAZR7M4.js → chunk-WAH2X7FF.js} +2 -2
- package/dist/{chunk-HTSVFS4G.js → chunk-WXYV47JX.js} +2 -2
- package/dist/{chunk-NWQFOHXF.js → chunk-WYXBJVM2.js} +1 -1
- package/dist/{chunk-SM4F4H3T.js → chunk-X46MRJYK.js} +1 -1
- package/dist/{chunk-EZCMP7NJ.js → chunk-XMOWL46H.js} +1 -1
- package/dist/{chunk-SFO4FLUG.js → chunk-YBR4L5JA.js} +1 -1
- package/dist/{chunk-7FMUTGOH.js → chunk-ZB2XGJSP.js} +152 -5
- package/dist/{chunk-7Z7SREEU.js → chunk-ZE2QZHUH.js} +1 -1
- package/dist/{chunk-RWQEWEOV.js → chunk-ZNHWAGMH.js} +1 -1
- package/dist/{chunk-NMYRVKIL.js → chunk-ZSAKJRZB.js} +5 -5
- package/dist/{chunk-472XCBCV.js → chunk-ZZBO3GF5.js} +2 -2
- package/dist/{clean-NNYMY7FD.js → clean-P3SZCIFU.js} +20 -20
- package/dist/cli.js +60 -60
- package/dist/{cloud-6FBCPI3B.js → cloud-G7YQIVI7.js} +4 -4
- package/dist/{cloudrun-D4V4TV6S.js → cloudrun-LXZT5UDK.js} +7 -7
- package/dist/{compare-J3JV4AZ3.js → compare-BHQHEOMX.js} +35 -35
- package/dist/{compiler-5ANBCHB7.js → compiler-V72QWKGC.js} +5 -5
- package/dist/{component-QFREWBT5.js → component-6GDCT3GK.js} +3 -3
- package/dist/{compositions-NUTRZGAZ.js → compositions-JM6HKCRF.js} +12 -12
- package/dist/{curve-LR4THVRF.js → curve-Y7JRXLIJ.js} +12 -12
- package/dist/{cuts-5WPLSRM2.js → cuts-LDVDQTRL.js} +13 -13
- package/dist/{delete-KLIVMSTG.js → delete-NCZIKWHU.js} +2 -2
- package/dist/{deploy-CDWKRTWY.js → deploy-R4OEJEB6.js} +5 -2
- package/dist/{describeProject-YJEOPIW7.js → describeProject-4GKZTYHA.js} +10 -10
- package/dist/{deterministicFonts-GQMT52JQ.js → deterministicFonts-HY5GWGQQ.js} +3 -3
- package/dist/{diff-KY6T2E32.js → diff-C53GPSNU.js} +42 -24
- package/dist/{dist-GUX66F7V.js → dist-R7SPMKEZ.js} +4 -4
- package/dist/{dist-TQKOMXXI.js → dist-TI44VPHO.js} +3 -3
- package/dist/{dist-GVCHAZJU.js → dist-TJZSSDR2.js} +13 -13
- package/dist/{doctor-HLG4AP3Q.js → doctor-V4RICWU2.js} +12 -12
- package/dist/{energy-3T3DDIEN.js → energy-S5Z7CGSB.js} +13 -13
- package/dist/{events-LB2RDZX3.js → events-6HROTYLC.js} +11 -3
- package/dist/{events-HZG5BWCQ.js → events-QKJE5XRN.js} +2 -2
- package/dist/{events-ZZNUYUCY.js → events-RAJGQK7Y.js} +14 -14
- package/dist/{extract-7STXIEDI.js → extract-RYGWEC5V.js} +13 -13
- package/dist/{face-3DWRLSWO.js → face-IWRDW2QO.js} +13 -13
- package/dist/{feedback-4V2HGHTZ.js → feedback-HQTDLLPE.js} +9 -9
- package/dist/{ffmpeg-5BWHEWVW.js → ffmpeg-BX334YEK.js} +8 -8
- package/dist/{figma-4SSCW6YU.js → figma-P6U76KGI.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -13
- package/dist/{frames-V3OUCXX6.js → frames-G2WYTVWV.js} +14 -14
- package/dist/{generate-W4HW4MJQ.js → generate-ZUE2AVOB.js} +35 -16
- package/dist/{get-FXFV3VDQ.js → get-7C3UC46A.js} +2 -2
- package/dist/{gpuPolicy-X4BOE2HD.js → gpuPolicy-5ZVYYWXN.js} +8 -8
- package/dist/{grade-compare-PV62LISL.js → grade-compare-IS3OVI7R.js} +39 -39
- package/dist/{heifImagePrep-2K2I4SCP.js → heifImagePrep-FBLLKI3P.js} +9 -9
- package/dist/{help-R2ASMVJB.js → help-2MPB27YU.js} +1 -1
- package/dist/{history-X24EZSOO.js → history-Q5EBBFPW.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +7 -7
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-DJ6TZSEF.js → info-TNG5QGFC.js} +9 -9
- package/dist/{init-GQ2GRVQS.js → init-UFPBBWC7.js} +37 -32
- package/dist/{ink-L4VRIFJ7.js → ink-UTPJHGZR.js} +13 -13
- package/dist/{inspect-5IXDDOJN.js → inspect-KXKKPWKX.js} +37 -37
- package/dist/{installer-ZIBXFENP.js → installer-UTFXM6KP.js} +7 -7
- package/dist/{keyframes-ASFH5XYJ.js → keyframes-S6V36BW6.js} +6 -6
- package/dist/{lambda-ELYE5XIZ.js → lambda-XWHALRKM.js} +13 -13
- package/dist/{layout-NNGVQWY4.js → layout-SSVKZKCZ.js} +37 -37
- package/dist/{lint-GYJFRDI2.js → lint-OQWGRKG5.js} +9 -9
- package/dist/{lintProject-NGMRZDNT.js → lintProject-Z2TEXMY4.js} +3 -3
- package/dist/{list-UBFDCTVO.js → list-FYLBMEL7.js} +2 -2
- package/dist/{localPage-DHAVU3EM.js → localPage-4GSU6N3J.js} +8 -8
- package/dist/{login-OKJT7QWG.js → login-JKFCYHRS.js} +4 -4
- package/dist/{look-4GINLBBO.js → look-WQ2DOKXH.js} +13 -13
- package/dist/{manager-Q5X74T5D.js → manager-F4F4A734.js} +9 -9
- package/dist/{measure-LICRA4FH.js → measure-XIFLTAMC.js} +11 -11
- package/dist/{media-treatment-PM3WLJZ4.js → media-treatment-S3LHQSQQ.js} +16 -16
- package/dist/{media-use-NUORYIBQ.js → media-use-NFM3ZXCF.js} +3 -3
- package/dist/{models-V2XJYFY5.js → models-G4KNLV66.js} +12 -12
- package/dist/{motionShot-YBJB6L3C.js → motionShot-IJGA5CBH.js} +16 -16
- package/dist/{normalize-audio-LUAEDEUM.js → normalize-audio-UP54N6J4.js} +11 -11
- package/dist/{open-RTL2AU5C.js → open-TAEKCYDB.js} +16 -16
- package/dist/{parakeetRunner-FBEL64JM.js → parakeetRunner-WFA4K7BH.js} +13 -13
- package/dist/{pipeline-2VN2FDAL.js → pipeline-SNENB5MZ.js} +11 -11
- package/dist/{play-U3EXVEC7.js → play-QTYMY453.js} +27 -27
- package/dist/{preflight-Z3U5OGW3.js → preflight-CZUKW3CW.js} +9 -9
- package/dist/{present-NXEDFMC4.js → present-KVHQECWG.js} +19 -19
- package/dist/{preview-AUDJW3KE.js → preview-6U62DM4P.js} +24 -24
- package/dist/{probe-QQXAWDZG.js → probe-UCVL3JDC.js} +13 -13
- package/dist/{producer-DNWWPGFA.js → producer-A4RPG3XL.js} +1 -1
- package/dist/{projectConfig-FMXOJBJY.js → projectConfig-FIW6FPZW.js} +10 -10
- package/dist/{publication-K4XAMUI6.js → publication-CCIGDK2X.js} +4 -4
- package/dist/{publish-7HSXMQEF.js → publish-VKSABRA4.js} +18 -15
- package/dist/{remove-background-AIYMKXZW.js → remove-background-CJJ54SHA.js} +12 -12
- package/dist/{render-RMPWJTY4.js → render-2YY64XPU.js} +346 -64
- package/dist/{render-SAAQKFHE.js → render-G54RA46B.js} +202 -35
- package/dist/{render-FD7LHCCC.js → render-I2MWX5GH.js} +7 -7
- package/dist/{render-batch-WPHP27VT.js → render-batch-X562GNRH.js} +10 -10
- package/dist/renderSetupWorker.js +3 -3
- package/dist/{resolver-E7IHSWCQ.js → resolver-GC4ZLQPV.js} +7 -7
- package/dist/{reverse-GHX5LUSV.js → reverse-2KZQ65Y7.js} +1 -1
- package/dist/{sherpa-QQZMXXO5.js → sherpa-SLRKS4SR.js} +12 -12
- package/dist/skills/hyperframes/SKILL.md +3 -1
- package/dist/skills/hyperframes/references/format.md +1 -1
- package/dist/skills/hyperframes-cli/SKILL.md +2 -0
- package/dist/skills/media-use/SKILL.md +2 -0
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +2 -2
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +2 -2
- package/dist/{skills-WCXVUM6C.js → skills-SOXKW42T.js} +6 -6
- package/dist/{skillsUpdateCheck-PEVW2JO6.js → skillsUpdateCheck-4RUEBT6B.js} +3 -3
- package/dist/{snapshot-2ACZXDLZ.js → snapshot-KIWJWZGW.js} +48 -48
- package/dist/{src-WISBTYBV.js → src-ABVBEVVK.js} +12 -12
- package/dist/{src-DA2HOM3K.js → src-DYWF24IK.js} +7 -7
- package/dist/{start-DDOWW7K5.js → start-EADJCDST.js} +49 -27
- package/dist/{staticProjectServer-MQ7H4MGQ.js → staticProjectServer-UCHJYCR6.js} +24 -24
- package/dist/{status-74IZXJKQ.js → status-E4OUQSHN.js} +45 -2
- package/dist/studio/assets/{hyperframes-player-B2_9tPTr.js → hyperframes-player-CfYFgHV8.js} +1 -1
- package/dist/studio/assets/{index-DToBQdGg.js → index-COfhX0Gz.js} +4 -4
- package/dist/studio/assets/{index-BHe_y2lu.js → index-Cj5x3rVD.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-UABUZ3PZ.js → studio-api-RGOTUJXP.js} +13 -13
- package/dist/{studioServer-FGXZA75B.js → studioServer-72COILB5.js} +61 -61
- package/dist/{sync-AVGYYG4D.js → sync-5Z5OQFB3.js} +13 -13
- package/dist/{telemetry-7IM2NV22.js → telemetry-OQ2JM37Y.js} +3 -3
- package/dist/{templates-5CWKOSBX.js → templates-YH5CUHHN.js} +45 -2
- package/dist/{timeline-A7R54T7C.js → timeline-IWU2T2BX.js} +21 -21
- package/dist/{tokens-W6RQVKWV.js → tokens-F7IBDWGE.js} +2 -2
- package/dist/{transcribe-N2C2MYCG.js → transcribe-GL3J3JB3.js} +11 -11
- package/dist/{transcribe-GPOMREHS.js → transcribe-YXDOCF32.js} +32 -20
- package/dist/{update-X643YOPS.js → update-MR5NL567.js} +7 -7
- package/dist/{updateCheck-O7IUSOXN.js → updateCheck-ONT2ZVAF.js} +2 -2
- package/dist/{upgrade-6NWYJUFT.js → upgrade-BJEGLKQS.js} +3 -3
- package/dist/{urlDownloader-PFHIVGDF.js → urlDownloader-3PV5WURP.js} +7 -7
- package/dist/{validate-IIFU6OEG.js → validate-GTTWJYCS.js} +26 -26
- package/dist/{video-R6TSXZMN.js → video-VP6X6YL5.js} +9 -9
- package/dist/{voices-Y572PKNN.js → voices-3EO2NQ5Q.js} +33 -14
- package/dist/warmCheck.js +46 -46
- package/package.json +1 -1
- package/dist/chunk-TSCUYZ4B.js +0 -29
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
iterateFontFamilyDeclarations,
|
|
12
12
|
normalizeSystemFontPrimaryFamilies,
|
|
13
13
|
resolveFontFamilyDeclarationFamilies
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EOCFNE53.js";
|
|
15
15
|
import {
|
|
16
16
|
Semaphore,
|
|
17
17
|
prepareHeifImageInputs,
|
|
18
18
|
withMediaProbeSlot
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TTBCQFRY.js";
|
|
20
20
|
import {
|
|
21
21
|
EncoderInterruptedError,
|
|
22
22
|
encoderFailureError,
|
|
23
23
|
prepareAnimatedGifInputs
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CMPHS5E6.js";
|
|
25
25
|
import {
|
|
26
26
|
openRangeEnd,
|
|
27
27
|
parseEncoderOptions
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
videoAudioId,
|
|
186
186
|
videoStartOnMediaTimeline,
|
|
187
187
|
writeCapturedFrame
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-6ZRGEVAM.js";
|
|
189
189
|
import {
|
|
190
190
|
assignBundledRuntimeCompositionIds,
|
|
191
191
|
emitMountedModuleScripts,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
parsesAsScript,
|
|
198
198
|
prepareFlattenedInnerRoot,
|
|
199
199
|
stripSdrPngColourTags
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-53UV2EUT.js";
|
|
201
201
|
import {
|
|
202
202
|
collectScratchLeftovers,
|
|
203
203
|
removeScratch,
|
|
@@ -216,7 +216,7 @@ import {
|
|
|
216
216
|
parseVfxChain,
|
|
217
217
|
resolveAuthoredTimingWindow,
|
|
218
218
|
toFps
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-N7ZKI2CE.js";
|
|
220
220
|
import {
|
|
221
221
|
gsapCdnDist,
|
|
222
222
|
normalizeGsapBaseUrl
|
|
@@ -255,7 +255,7 @@ import {
|
|
|
255
255
|
sourceTimeAt,
|
|
256
256
|
styleElementsFor,
|
|
257
257
|
timeAtSourceTime
|
|
258
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-EAO46VPT.js";
|
|
259
259
|
import {
|
|
260
260
|
TRANSITIONS,
|
|
261
261
|
convertTransfer,
|
|
@@ -271,7 +271,7 @@ import {
|
|
|
271
271
|
import {
|
|
272
272
|
lintHyperframeHtml,
|
|
273
273
|
resolveReferencedStart
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-CZ5NNJ6H.js";
|
|
275
275
|
import {
|
|
276
276
|
isUnresolvedAssetPlaceholder,
|
|
277
277
|
readProjectFile,
|
|
@@ -294,7 +294,7 @@ import {
|
|
|
294
294
|
rewriteAssetPaths,
|
|
295
295
|
rewriteCssAssetUrls,
|
|
296
296
|
rewriteInlineStyleAssetUrls
|
|
297
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-OHQRQE7F.js";
|
|
298
298
|
import {
|
|
299
299
|
CANVAS_DIMENSIONS,
|
|
300
300
|
HTML_BODY_CSS_HEIGHT_FIRST_RE,
|
|
@@ -305,7 +305,7 @@ import {
|
|
|
305
305
|
isAspectAgnosticResolutionAlias,
|
|
306
306
|
normalizeResolutionFlag,
|
|
307
307
|
suggestMatchingPreset
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-CUCP7FKH.js";
|
|
309
309
|
import {
|
|
310
310
|
parseHTML
|
|
311
311
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -3879,6 +3879,7 @@ function createStallClock(now = () => Date.now()) {
|
|
|
3879
3879
|
|
|
3880
3880
|
// ../producer/src/services/render/stages/captureStreamingStage.ts
|
|
3881
3881
|
var DEFAULT_CAPTURE_STALL_MS = 6e4;
|
|
3882
|
+
var SESSION_INIT_STALL_MS = 3e5;
|
|
3882
3883
|
var DE_STALL_POLL_MS = 5e3;
|
|
3883
3884
|
var STALL_ADVICE = "Chrome stopped answering. If another app is keeping the GPU or CPU busy (a 3D render, a game, another export), let it finish or render one job at a time, then retry.";
|
|
3884
3885
|
function poolFailure(error, probeSession) {
|
|
@@ -3909,6 +3910,14 @@ function captureModeLabel(mode) {
|
|
|
3909
3910
|
if (mode === "beginframe") return "BeginFrame";
|
|
3910
3911
|
return "screenshot";
|
|
3911
3912
|
}
|
|
3913
|
+
var OPENING_CAPTURE_SESSION = {
|
|
3914
|
+
captureMode: "screenshot",
|
|
3915
|
+
captureStep: "opening the capture session"
|
|
3916
|
+
};
|
|
3917
|
+
var OPENING_RISK_SESSION = {
|
|
3918
|
+
captureMode: "screenshot",
|
|
3919
|
+
captureStep: "opening the screenshot session for effect frames"
|
|
3920
|
+
};
|
|
3912
3921
|
var SequentialCaptureStallError = class extends Error {
|
|
3913
3922
|
captureMode;
|
|
3914
3923
|
constructor(session, stallTimeoutMs, frameIndex, totalFrames) {
|
|
@@ -4058,7 +4067,12 @@ async function runWorkerEncodePipelineLoop(session, totalFrames, job, currentEnc
|
|
|
4058
4067
|
const guard = createDrainFrameGuard({ log, stats, frameTime });
|
|
4059
4068
|
const guardFrame = (item, buf) => item.trusted ? Promise.resolve(buf) : guard(session, item.idx, buf);
|
|
4060
4069
|
const captureRisk = async (idx) => {
|
|
4061
|
-
await
|
|
4070
|
+
await raceAgainstStall(
|
|
4071
|
+
risk.open(),
|
|
4072
|
+
stallTimeoutMs - quiet.idle(0),
|
|
4073
|
+
{ session: OPENING_RISK_SESSION, frameIndex: idx, totalFrames, stallTimeoutMs },
|
|
4074
|
+
abortSignal
|
|
4075
|
+
);
|
|
4062
4076
|
quiet.reset();
|
|
4063
4077
|
return raceAgainstStall(
|
|
4064
4078
|
risk.capture(idx, frameTime(idx)),
|
|
@@ -4417,19 +4431,38 @@ async function runCaptureStreamingStage(input) {
|
|
|
4417
4431
|
let resumes = 0;
|
|
4418
4432
|
for (; ; ) {
|
|
4419
4433
|
const videoInjector = createRenderVideoFrameInjector();
|
|
4420
|
-
const
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4434
|
+
const initStallMs = Math.max(SESSION_INIT_STALL_MS, resolveCaptureStallTimeoutMs());
|
|
4435
|
+
const setup = createStallClock();
|
|
4436
|
+
const withinInitBudget = (work, stalled) => raceAgainstStall(
|
|
4437
|
+
work,
|
|
4438
|
+
initStallMs - setup.idle(0),
|
|
4439
|
+
{ session: stalled, frameIndex: resume.from, totalFrames, stallTimeoutMs: initStallMs },
|
|
4440
|
+
abortSignal
|
|
4426
4441
|
);
|
|
4442
|
+
const openSession = async () => {
|
|
4443
|
+
const opening = createCaptureSession(
|
|
4444
|
+
fileServer.url,
|
|
4445
|
+
framesDir,
|
|
4446
|
+
buildCaptureOptions(),
|
|
4447
|
+
videoInjector,
|
|
4448
|
+
captureCfg
|
|
4449
|
+
);
|
|
4450
|
+
try {
|
|
4451
|
+
return await withinInitBudget(opening, OPENING_CAPTURE_SESSION);
|
|
4452
|
+
} catch (error) {
|
|
4453
|
+
void opening.then(closeCaptureSession, () => {
|
|
4454
|
+
});
|
|
4455
|
+
throw error;
|
|
4456
|
+
}
|
|
4457
|
+
};
|
|
4458
|
+
const session = probeSession ?? await openSession();
|
|
4427
4459
|
captureBeyondViewport = session.options.captureBeyondViewport;
|
|
4428
4460
|
if (probeSession) {
|
|
4429
4461
|
prepareCaptureSessionForReuse(session, framesDir, videoInjector);
|
|
4430
4462
|
probeSession = null;
|
|
4431
4463
|
}
|
|
4432
4464
|
let riskSession = null;
|
|
4465
|
+
let attemptClosed = false;
|
|
4433
4466
|
const openRiskSession = async () => {
|
|
4434
4467
|
const opened = await createCaptureSession(
|
|
4435
4468
|
fileServer.url,
|
|
@@ -4443,6 +4476,10 @@ async function runCaptureStreamingStage(input) {
|
|
|
4443
4476
|
enableBrowserPool: false
|
|
4444
4477
|
}
|
|
4445
4478
|
);
|
|
4479
|
+
if (attemptClosed) {
|
|
4480
|
+
await closeCaptureSession(opened);
|
|
4481
|
+
throw new Error("[Render] Capture attempt ended while its screenshot session opened");
|
|
4482
|
+
}
|
|
4446
4483
|
riskSession = opened;
|
|
4447
4484
|
await initializeSession(opened);
|
|
4448
4485
|
return opened;
|
|
@@ -4450,9 +4487,9 @@ async function runCaptureStreamingStage(input) {
|
|
|
4450
4487
|
let resumed = false;
|
|
4451
4488
|
try {
|
|
4452
4489
|
if (!session.isInitialized) {
|
|
4453
|
-
await initializeSession(session);
|
|
4490
|
+
await withinInitBudget(initializeSession(session), session);
|
|
4454
4491
|
}
|
|
4455
|
-
await completeDeferredDrawElementInit(session);
|
|
4492
|
+
await withinInitBudget(completeDeferredDrawElementInit(session), session);
|
|
4456
4493
|
assertNotAborted();
|
|
4457
4494
|
lastBrowserConsole = session.browserConsoleBuffer;
|
|
4458
4495
|
if (session.workerEncodeEnabled) {
|
|
@@ -4535,6 +4572,7 @@ async function runCaptureStreamingStage(input) {
|
|
|
4535
4572
|
resumes++;
|
|
4536
4573
|
resumed = true;
|
|
4537
4574
|
} finally {
|
|
4575
|
+
attemptClosed = true;
|
|
4538
4576
|
lastBrowserConsole = session.browserConsoleBuffer;
|
|
4539
4577
|
await closeCaptureSession(session);
|
|
4540
4578
|
if (riskSession) await closeCaptureSession(riskSession);
|
|
@@ -5968,7 +6006,7 @@ import { join as join14 } from "path";
|
|
|
5968
6006
|
|
|
5969
6007
|
// ../producer/src/services/htmlCompiler.ts
|
|
5970
6008
|
import { createHash as createHash4 } from "crypto";
|
|
5971
|
-
import { createReadStream as createReadStream2, existsSync as existsSync9, mkdirSync as mkdirSync5 } from "fs";
|
|
6009
|
+
import { createReadStream as createReadStream2, existsSync as existsSync9, mkdirSync as mkdirSync5, readFileSync as readFileSync5 } from "fs";
|
|
5972
6010
|
import { join as join13, dirname as dirname5, resolve as resolve5, basename as basename4, relative as relative2 } from "path";
|
|
5973
6011
|
|
|
5974
6012
|
// ../producer/src/services/renderMediaCollector.ts
|
|
@@ -7204,6 +7242,25 @@ ${fontFaceBlocks.join("\n")}
|
|
|
7204
7242
|
}
|
|
7205
7243
|
return result;
|
|
7206
7244
|
}
|
|
7245
|
+
function projectStylesheetFontFamilies(html, projectDir) {
|
|
7246
|
+
const families = [];
|
|
7247
|
+
for (const [tag] of html.matchAll(/<link\b[^>]*\brel=["']stylesheet["'][^>]*>/gi)) {
|
|
7248
|
+
const href = /\bhref=["']([^"']+)["']/i.exec(tag)?.[1];
|
|
7249
|
+
if (!href || /^(?:[a-z][a-z\d+.-]*:|\/\/)/i.test(href)) continue;
|
|
7250
|
+
const sheet = resolve5(projectDir, decodedUrlPath(href).replace(/^(?:\.?\/)+/, ""));
|
|
7251
|
+
if (!isPathInside2(sheet, projectDir) || !existsSync9(sheet)) continue;
|
|
7252
|
+
for (const face of extractFontFaceBlocks(readFileSync5(sheet, "utf8"))) {
|
|
7253
|
+
const family = /font-family\s*:\s*([^;}]+)/i.exec(face)?.[1]?.trim().replace(/^['"]|['"]$/g, "");
|
|
7254
|
+
const shipsFile = [...face.matchAll(LOCAL_FONTFACE_URL_RE)].some(([, url = ""]) => {
|
|
7255
|
+
const path = decodedUrlPath(url);
|
|
7256
|
+
const file = path.startsWith("/") ? resolve5(projectDir, `.${path}`) : resolve5(dirname5(sheet), path);
|
|
7257
|
+
return isPathInside2(file, projectDir) && existsSync9(file);
|
|
7258
|
+
});
|
|
7259
|
+
if (family && shipsFile) families.push(family);
|
|
7260
|
+
}
|
|
7261
|
+
}
|
|
7262
|
+
return families;
|
|
7263
|
+
}
|
|
7207
7264
|
function collectFontFaceUrls(html) {
|
|
7208
7265
|
const styleBlockRe = /<style\b[^>]*>([\s\S]*?)<\/style>/gi;
|
|
7209
7266
|
const urlSet = /* @__PURE__ */ new Set();
|
|
@@ -7235,11 +7292,12 @@ function collectFontFaceUrls(html) {
|
|
|
7235
7292
|
return urlSet;
|
|
7236
7293
|
}
|
|
7237
7294
|
async function localizeRemoteFontFaces(html, downloadDir) {
|
|
7238
|
-
|
|
7239
|
-
|
|
7295
|
+
return localizeFontFaceUrls(await inlineExternalFontStylesheets(html), downloadDir);
|
|
7296
|
+
}
|
|
7297
|
+
function localizeFontFaceUrls(html, downloadDir) {
|
|
7240
7298
|
return downloadAndRewriteUrls(
|
|
7241
|
-
|
|
7242
|
-
|
|
7299
|
+
collectFontFaceUrls(html),
|
|
7300
|
+
html,
|
|
7243
7301
|
join13(downloadDir, REMOTE_MEDIA_SUBDIR),
|
|
7244
7302
|
"Remote font download failed",
|
|
7245
7303
|
"Localized remote font face(s)",
|
|
@@ -7266,7 +7324,7 @@ async function readLocalFont(absPath) {
|
|
|
7266
7324
|
return { kind: "inline", buffer: Buffer.concat(chunks, totalBytes) };
|
|
7267
7325
|
}
|
|
7268
7326
|
async function embedLocalFontFaces(html, projectDir) {
|
|
7269
|
-
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-
|
|
7327
|
+
const { fontToDataUri: toDataUri } = await import("./deterministicFonts-HY5GWGQQ.js");
|
|
7270
7328
|
const styleBlockRe = /<style\b[^>]*>([\s\S]*?)<\/style>/gi;
|
|
7271
7329
|
const fontFaceRe = /@font-face\s*\{([^}]*)\}/gi;
|
|
7272
7330
|
let result = html;
|
|
@@ -7407,15 +7465,17 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
7407
7465
|
const hasShaderTransitions = detectShaderTransitionUsage(sanitizedHtml);
|
|
7408
7466
|
const usesThreeDTransforms = detectThreeDTransformUsage(sanitizedHtml);
|
|
7409
7467
|
const hasAncestorBackgroundImage = detectAncestorBackgroundImage(sanitizedHtml);
|
|
7468
|
+
const fontSheetHtml = await inlineExternalFontStylesheets(
|
|
7469
|
+
promoteCssImportsToLinkTags(sanitizedHtml)
|
|
7470
|
+
);
|
|
7410
7471
|
const normalizedFontHtml = normalizeSystemFontPrimaryFamilies(
|
|
7411
|
-
injectTextRenderingRule(
|
|
7412
|
-
coalesceHeadStylesAndBodyScripts(promoteCssImportsToLinkTags(sanitizedHtml))
|
|
7413
|
-
)
|
|
7472
|
+
injectTextRenderingRule(coalesceHeadStylesAndBodyScripts(fontSheetHtml))
|
|
7414
7473
|
);
|
|
7415
7474
|
const coalescedHtml = await injectDeterministicFontFaces(normalizedFontHtml, {
|
|
7416
7475
|
logger: defaultLogger,
|
|
7417
7476
|
failClosedFontFetch: options.failClosedFontFetch === true,
|
|
7418
7477
|
allowSystemFontCapture: options.allowSystemFontCapture,
|
|
7478
|
+
projectFontFamilies: projectStylesheetFontFamilies(fontSheetHtml, projectDir),
|
|
7419
7479
|
abortSignal: options.abortSignal
|
|
7420
7480
|
});
|
|
7421
7481
|
const assembledHtml = await inlineExternalScripts(coalescedHtml);
|
|
@@ -7441,7 +7501,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
|
|
|
7441
7501
|
);
|
|
7442
7502
|
const { html: htmlWithLocalImages, remoteMediaAssets: remoteImageAssets } = await localizeRemoteImageSources(htmlWithLocalMedia, downloadDir);
|
|
7443
7503
|
const { html: htmlWithLocalBg, remoteMediaAssets: remoteBgAssets } = await localizeRemoteBackgroundImages(htmlWithLocalImages, downloadDir);
|
|
7444
|
-
const { html: htmlWithLocalizedFonts, remoteMediaAssets: remoteFontAssets } = await
|
|
7504
|
+
const { html: htmlWithLocalizedFonts, remoteMediaAssets: remoteFontAssets } = await localizeFontFaceUrls(htmlWithLocalBg, downloadDir);
|
|
7445
7505
|
const {
|
|
7446
7506
|
html: htmlWithJpegs,
|
|
7447
7507
|
preparedAssets: preparedHeifAssets,
|
|
@@ -11190,7 +11250,7 @@ import {
|
|
|
11190
11250
|
existsSync as existsSync16,
|
|
11191
11251
|
mkdirSync as mkdirSync7,
|
|
11192
11252
|
readdirSync as readdirSync4,
|
|
11193
|
-
readFileSync as
|
|
11253
|
+
readFileSync as readFileSync6,
|
|
11194
11254
|
rmSync as rmSync7,
|
|
11195
11255
|
statSync as statSync5,
|
|
11196
11256
|
writeFileSync as writeFileSync4
|
|
@@ -11269,7 +11329,7 @@ async function reencodeWithClearedWholeFrames(argsInput, run, startTime) {
|
|
|
11269
11329
|
const error = formatFfmpegError(result.exitCode, result.stderr);
|
|
11270
11330
|
return gifEncodeFailure(startTime, outputPath, error, result.failureReason);
|
|
11271
11331
|
}
|
|
11272
|
-
const gif =
|
|
11332
|
+
const gif = readFileSync6(outputPath);
|
|
11273
11333
|
if (!clearGifFramesBeforeNext(gif)) {
|
|
11274
11334
|
const error = "[FFmpeg] GIF output could not be parsed to clear its frames";
|
|
11275
11335
|
return gifEncodeFailure(startTime, outputPath, error);
|
|
@@ -11302,7 +11362,7 @@ async function encodeGifFromDir(framesDir, framePattern, outputPath, input) {
|
|
|
11302
11362
|
return gifEncodeFailure(startTime, outputPath, error, result.failureReason);
|
|
11303
11363
|
}
|
|
11304
11364
|
}
|
|
11305
|
-
if (input.preserveAlpha && gifClearsAfterLeavingFrameInPlace(
|
|
11365
|
+
if (input.preserveAlpha && gifClearsAfterLeavingFrameInPlace(readFileSync6(outputPath)) !== false) {
|
|
11306
11366
|
const failure = await reencodeWithClearedWholeFrames(argsInput, run, startTime);
|
|
11307
11367
|
if (failure) return failure;
|
|
11308
11368
|
}
|
|
@@ -14701,7 +14761,7 @@ async function executeRenderPipeline(input) {
|
|
|
14701
14761
|
}
|
|
14702
14762
|
|
|
14703
14763
|
// ../producer/src/services/distributed/renderSpan.ts
|
|
14704
|
-
import { mkdirSync as mkdirSync16, mkdtempSync as mkdtempSync7, readFileSync as
|
|
14764
|
+
import { mkdirSync as mkdirSync16, mkdtempSync as mkdtempSync7, readFileSync as readFileSync12, rmSync as rmSync14 } from "fs";
|
|
14705
14765
|
import { join as join40 } from "path";
|
|
14706
14766
|
import { tmpdir as tmpdir4 } from "os";
|
|
14707
14767
|
|
|
@@ -15109,7 +15169,7 @@ import { extname as extname4, join as join29 } from "path";
|
|
|
15109
15169
|
// ../producer/src/services/distributed/shared.ts
|
|
15110
15170
|
import { execFile as execFileCallback } from "child_process";
|
|
15111
15171
|
import { dirname as dirname12, join as join28 } from "path";
|
|
15112
|
-
import { existsSync as existsSync18, readFileSync as
|
|
15172
|
+
import { existsSync as existsSync18, readFileSync as readFileSync7 } from "fs";
|
|
15113
15173
|
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
15114
15174
|
import { promisify as promisify2 } from "util";
|
|
15115
15175
|
var PLAN_VIDEOS_META_RELATIVE_PATH = "meta/videos.json";
|
|
@@ -15384,7 +15444,7 @@ function readProducerVersion() {
|
|
|
15384
15444
|
const candidate = join28(current, "package.json");
|
|
15385
15445
|
if (existsSync18(candidate)) {
|
|
15386
15446
|
try {
|
|
15387
|
-
const pkg = JSON.parse(
|
|
15447
|
+
const pkg = JSON.parse(readFileSync7(candidate, "utf-8"));
|
|
15388
15448
|
if (pkg.name === "@hyperframes/producer" && typeof pkg.version === "string") {
|
|
15389
15449
|
cachedProducerVersion = pkg.version;
|
|
15390
15450
|
return pkg.version;
|
|
@@ -15763,7 +15823,7 @@ async function readPlanReferenceBackground(input) {
|
|
|
15763
15823
|
}
|
|
15764
15824
|
|
|
15765
15825
|
// ../producer/src/services/render/stages/freezePlan.ts
|
|
15766
|
-
import { existsSync as existsSync20, mkdirSync as mkdirSync10, readFileSync as
|
|
15826
|
+
import { existsSync as existsSync20, mkdirSync as mkdirSync10, readFileSync as readFileSync8, readdirSync as readdirSync7, writeFileSync as writeFileSync6 } from "fs";
|
|
15767
15827
|
import { join as join32, relative as relative3, resolve as resolve7 } from "path";
|
|
15768
15828
|
|
|
15769
15829
|
// ../producer/src/services/distributed/planProtocol.ts
|
|
@@ -15999,7 +16059,7 @@ function collectPlanAssetShas(planDir, digests) {
|
|
|
15999
16059
|
const assets = [];
|
|
16000
16060
|
for (const file of files) {
|
|
16001
16061
|
if (file.planRelativePath === COMPILED_INDEX_RELATIVE_PATH) {
|
|
16002
|
-
compositionHtml =
|
|
16062
|
+
compositionHtml = readFileSync8(file.absolutePath);
|
|
16003
16063
|
continue;
|
|
16004
16064
|
}
|
|
16005
16065
|
if (HASH_EXCLUDED_PLAN_FILES.has(file.planRelativePath)) continue;
|
|
@@ -16023,7 +16083,7 @@ function writePlanRemoteFiles(planDir, files) {
|
|
|
16023
16083
|
}
|
|
16024
16084
|
function readPlanRemoteFiles(planDir) {
|
|
16025
16085
|
const path = join32(planDir, PLAN_REMOTE_FILES_RELATIVE_PATH);
|
|
16026
|
-
return existsSync20(path) ? JSON.parse(
|
|
16086
|
+
return existsSync20(path) ? JSON.parse(readFileSync8(path, "utf-8")) : [];
|
|
16027
16087
|
}
|
|
16028
16088
|
function recomputePlanHashFromPlanDir(planDir, digests) {
|
|
16029
16089
|
const planJsonPath = join32(planDir, "plan.json");
|
|
@@ -16034,8 +16094,8 @@ function recomputePlanHashFromPlanDir(planDir, digests) {
|
|
|
16034
16094
|
if (!existsSync20(encoderJsonPath)) {
|
|
16035
16095
|
throw new Error(`[freezePlan] meta/encoder.json missing: ${encoderJsonPath}`);
|
|
16036
16096
|
}
|
|
16037
|
-
const planJson = JSON.parse(
|
|
16038
|
-
const encoderConfigCanonicalJson =
|
|
16097
|
+
const planJson = JSON.parse(readFileSync8(planJsonPath, "utf-8"));
|
|
16098
|
+
const encoderConfigCanonicalJson = readFileSync8(encoderJsonPath, "utf-8");
|
|
16039
16099
|
const { compositionHtml, assets } = collectPlanAssetShas(planDir, digests);
|
|
16040
16100
|
return computePlanHash({
|
|
16041
16101
|
compositionHtml,
|
|
@@ -16142,7 +16202,7 @@ function applyRuntimeEnvSnapshot(snapshot, env = process.env) {
|
|
|
16142
16202
|
}
|
|
16143
16203
|
|
|
16144
16204
|
// ../producer/src/services/distributed/chunkAudio.ts
|
|
16145
|
-
import { closeSync as closeSync5, existsSync as existsSync21, ftruncateSync, mkdirSync as mkdirSync11, openSync as openSync5, readFileSync as
|
|
16205
|
+
import { closeSync as closeSync5, existsSync as existsSync21, ftruncateSync, mkdirSync as mkdirSync11, openSync as openSync5, readFileSync as readFileSync9 } from "fs";
|
|
16146
16206
|
import { writeFileSync as writeFileSync7, writeSync } from "fs";
|
|
16147
16207
|
import { join as join33 } from "path";
|
|
16148
16208
|
function audioCutForChunk(grid, chunks, index, fps) {
|
|
@@ -16229,7 +16289,7 @@ async function writeChunkAudioSlices(input) {
|
|
|
16229
16289
|
offset += track.sizes[offsets.length - 1];
|
|
16230
16290
|
}
|
|
16231
16291
|
});
|
|
16232
|
-
const bytes =
|
|
16292
|
+
const bytes = readFileSync9(input.audioPath);
|
|
16233
16293
|
const layout = { sizeBytes: bytes.length, payloadStart, payloadEnd, partStarts: {} };
|
|
16234
16294
|
mkdirSync11(join33(input.planDir, SLICE_DIR), { recursive: true });
|
|
16235
16295
|
input.chunks.forEach((_, index) => {
|
|
@@ -16248,8 +16308,8 @@ async function writeChunkAudioSlices(input) {
|
|
|
16248
16308
|
function chunkAudioSource(planDir, chunkIndex, scratchPath) {
|
|
16249
16309
|
const layoutPath = join33(planDir, SLICE_LAYOUT);
|
|
16250
16310
|
if (!existsSync21(layoutPath)) return resolvePlanAudioPath(planDir);
|
|
16251
|
-
const layout = JSON.parse(
|
|
16252
|
-
const frame =
|
|
16311
|
+
const layout = JSON.parse(readFileSync9(layoutPath, "utf-8"));
|
|
16312
|
+
const frame = readFileSync9(join33(planDir, SLICE_FRAME));
|
|
16253
16313
|
const fd = openSync5(scratchPath, "w");
|
|
16254
16314
|
try {
|
|
16255
16315
|
writeSync(fd, frame, 0, layout.payloadStart, 0);
|
|
@@ -16262,7 +16322,7 @@ function chunkAudioSource(planDir, chunkIndex, scratchPath) {
|
|
|
16262
16322
|
);
|
|
16263
16323
|
const start = layout.partStarts[chunkIndex];
|
|
16264
16324
|
if (start !== void 0) {
|
|
16265
|
-
const part =
|
|
16325
|
+
const part = readFileSync9(join33(planDir, chunkAudioSlicePath(chunkIndex)));
|
|
16266
16326
|
writeSync(fd, part, 0, part.length, start);
|
|
16267
16327
|
}
|
|
16268
16328
|
ftruncateSync(fd, layout.sizeBytes);
|
|
@@ -16985,7 +17045,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
16985
17045
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
16986
17046
|
if (probeResult.probeSession) {
|
|
16987
17047
|
try {
|
|
16988
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
17048
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-DYWF24IK.js");
|
|
16989
17049
|
await closeCaptureSession2(probeResult.probeSession);
|
|
16990
17050
|
} catch (err) {
|
|
16991
17051
|
log.warn("[plan] probe session close failed", {
|
|
@@ -17343,7 +17403,7 @@ async function plan(projectDir, config, planDir, options = {}) {
|
|
|
17343
17403
|
|
|
17344
17404
|
// ../producer/src/services/distributed/renderChunk.ts
|
|
17345
17405
|
import { randomBytes } from "crypto";
|
|
17346
|
-
import { existsSync as existsSync25, mkdirSync as mkdirSync15, readFileSync as
|
|
17406
|
+
import { existsSync as existsSync25, mkdirSync as mkdirSync15, readFileSync as readFileSync11, readdirSync as readdirSync10, rmSync as rmSync13, writeFileSync as writeFileSync11 } from "fs";
|
|
17347
17407
|
import { cpus as cpus3 } from "os";
|
|
17348
17408
|
import { join as join39 } from "path";
|
|
17349
17409
|
|
|
@@ -17354,7 +17414,7 @@ import {
|
|
|
17354
17414
|
lstatSync as lstatSync3,
|
|
17355
17415
|
mkdirSync as mkdirSync14,
|
|
17356
17416
|
mkdtempSync as mkdtempSync6,
|
|
17357
|
-
readFileSync as
|
|
17417
|
+
readFileSync as readFileSync10,
|
|
17358
17418
|
readdirSync as readdirSync9,
|
|
17359
17419
|
rmSync as rmSync12,
|
|
17360
17420
|
statSync as statSync8,
|
|
@@ -17500,7 +17560,7 @@ function isNonNegativeIntegerArray(value) {
|
|
|
17500
17560
|
return Array.isArray(value) && value.every((item) => typeof item === "number" && Number.isInteger(item) && item >= 0);
|
|
17501
17561
|
}
|
|
17502
17562
|
function readJsonFile(path, label) {
|
|
17503
|
-
const contents =
|
|
17563
|
+
const contents = readFileSync10(path, "utf-8");
|
|
17504
17564
|
try {
|
|
17505
17565
|
const parsed = JSON.parse(contents);
|
|
17506
17566
|
return parsed;
|
|
@@ -18333,10 +18393,10 @@ async function beginFrameSessionNeedsScreenshotFallback(session, probe = probeBe
|
|
|
18333
18393
|
return !await probe(session.page, timeoutMs, probeTick, session.beginFrameIntervalMs);
|
|
18334
18394
|
}
|
|
18335
18395
|
function hashChunkOutput(outputPath, kind) {
|
|
18336
|
-
if (kind === "file") return sha256Hex(
|
|
18396
|
+
if (kind === "file") return sha256Hex(readFileSync11(outputPath));
|
|
18337
18397
|
const entries = readdirSync10(outputPath).filter((name) => /\.(png|jpg|jpeg)$/i.test(name)).sort();
|
|
18338
18398
|
const lines = entries.map(
|
|
18339
|
-
(name) => `${name}\0${sha256Hex(
|
|
18399
|
+
(name) => `${name}\0${sha256Hex(readFileSync11(join39(outputPath, name)))}`
|
|
18340
18400
|
);
|
|
18341
18401
|
return sha256Hex(lines.join("\0"));
|
|
18342
18402
|
}
|
|
@@ -18362,7 +18422,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
|
|
|
18362
18422
|
`[renderChunk] planDir is missing required artifact: ${planJsonPath}`
|
|
18363
18423
|
);
|
|
18364
18424
|
}
|
|
18365
|
-
const plan2 = JSON.parse(
|
|
18425
|
+
const plan2 = JSON.parse(readFileSync11(planJsonPath, "utf-8"));
|
|
18366
18426
|
readPlanProtocolV1(plan2, DISTRIBUTED_RENDER_CAPABILITIES.roles.chunk);
|
|
18367
18427
|
const planHashStarted = Date.now();
|
|
18368
18428
|
const v2Materialization = readValidatedPlanV2Materialization(planDir, {
|
|
@@ -18379,13 +18439,13 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
|
|
|
18379
18439
|
);
|
|
18380
18440
|
}
|
|
18381
18441
|
}
|
|
18382
|
-
const encoder = JSON.parse(
|
|
18383
|
-
const chunks = JSON.parse(
|
|
18442
|
+
const encoder = JSON.parse(readFileSync11(encoderJsonPath, "utf-8"));
|
|
18443
|
+
const chunks = JSON.parse(readFileSync11(chunksJsonPath, "utf-8"));
|
|
18384
18444
|
const videosJsonPath = join39(planDir, PLAN_VIDEOS_META_RELATIVE_PATH);
|
|
18385
18445
|
let planVideos = null;
|
|
18386
18446
|
if (existsSync25(videosJsonPath)) {
|
|
18387
18447
|
try {
|
|
18388
|
-
planVideos = validatePlanVideosForChunk(JSON.parse(
|
|
18448
|
+
planVideos = validatePlanVideosForChunk(JSON.parse(readFileSync11(videosJsonPath, "utf-8")));
|
|
18389
18449
|
} catch (err) {
|
|
18390
18450
|
if (err instanceof RenderChunkValidationError) throw err;
|
|
18391
18451
|
throw new RenderChunkValidationError(
|
|
@@ -18496,7 +18556,7 @@ async function renderChunk(planDir, chunkIndex, outputChunkPath, options) {
|
|
|
18496
18556
|
dimensions: plan2.dimensions,
|
|
18497
18557
|
encoder,
|
|
18498
18558
|
videoCount: planVideos?.videos.length ?? 0,
|
|
18499
|
-
html:
|
|
18559
|
+
html: readFileSync11(join39(compiledDir, "index.html"), "utf-8"),
|
|
18500
18560
|
// The plan ships a deferred source only to chunks that show it; don't wait on the rest.
|
|
18501
18561
|
skipReadinessVideoIds: deferredVideos.filter(
|
|
18502
18562
|
(video) => !shownFrames.get(video.videoId)?.size || remoteVideoIds.has(video.videoId)
|
|
@@ -18958,7 +19018,7 @@ async function renderSpan(projectDir, config, span, outputPath) {
|
|
|
18958
19018
|
planned.totalFrames
|
|
18959
19019
|
);
|
|
18960
19020
|
const slices = JSON.parse(
|
|
18961
|
-
|
|
19021
|
+
readFileSync12(join40(planDir, "meta", "chunks.json"), "utf-8")
|
|
18962
19022
|
);
|
|
18963
19023
|
const parts = [];
|
|
18964
19024
|
for (const slice of slices) {
|
|
@@ -19546,7 +19606,7 @@ import { serve as serve2 } from "@hono/node-server";
|
|
|
19546
19606
|
// ../producer/src/services/hyperframeLint.ts
|
|
19547
19607
|
import {
|
|
19548
19608
|
existsSync as existsSync26,
|
|
19549
|
-
readFileSync as
|
|
19609
|
+
readFileSync as readFileSync13,
|
|
19550
19610
|
statSync as statSync9,
|
|
19551
19611
|
openSync as openSync6,
|
|
19552
19612
|
fstatSync as fstatSync3,
|
|
@@ -19591,7 +19651,7 @@ function readEntryHtml(filePath) {
|
|
|
19591
19651
|
}
|
|
19592
19652
|
try {
|
|
19593
19653
|
if (!fstatSync3(fd).isFile()) return null;
|
|
19594
|
-
return
|
|
19654
|
+
return readFileSync13(fd, "utf-8");
|
|
19595
19655
|
} finally {
|
|
19596
19656
|
closeSync6(fd);
|
|
19597
19657
|
}
|
|
@@ -20372,7 +20432,7 @@ function startServer(options = {}) {
|
|
|
20372
20432
|
});
|
|
20373
20433
|
async function shutdown(signal) {
|
|
20374
20434
|
log.info(`Received ${signal}, shutting down`);
|
|
20375
|
-
const { drainBrowserPool } = await import("./src-
|
|
20435
|
+
const { drainBrowserPool } = await import("./src-DYWF24IK.js");
|
|
20376
20436
|
await drainBrowserPool().catch(() => {
|
|
20377
20437
|
});
|
|
20378
20438
|
const handle = await Promise.race([
|
|
@@ -20418,7 +20478,7 @@ import {
|
|
|
20418
20478
|
existsSync as existsSync29,
|
|
20419
20479
|
mkdirSync as mkdirSync18,
|
|
20420
20480
|
mkdtempSync as mkdtempSync9,
|
|
20421
|
-
readFileSync as
|
|
20481
|
+
readFileSync as readFileSync14,
|
|
20422
20482
|
readdirSync as readdirSync11,
|
|
20423
20483
|
rmSync as rmSync16,
|
|
20424
20484
|
statSync as statSync11,
|
|
@@ -20514,13 +20574,13 @@ function readAssemblePlan(planDir, chunkPaths) {
|
|
|
20514
20574
|
if (!existsSync29(planJsonPath)) {
|
|
20515
20575
|
throw new Error(`[assemble] planDir missing plan.json: ${planJsonPath}`);
|
|
20516
20576
|
}
|
|
20517
|
-
const plan2 = JSON.parse(
|
|
20577
|
+
const plan2 = JSON.parse(readFileSync14(planJsonPath, "utf-8"));
|
|
20518
20578
|
readPlanProtocolV1(plan2, DISTRIBUTED_RENDER_CAPABILITIES.roles.assembler);
|
|
20519
20579
|
validatePlanV2MaterializedTarget(planDir, { role: "assembler" });
|
|
20520
20580
|
if (!existsSync29(chunksJsonPath)) {
|
|
20521
20581
|
throw new Error(`[assemble] planDir missing meta/chunks.json: ${chunksJsonPath}`);
|
|
20522
20582
|
}
|
|
20523
|
-
const chunks = JSON.parse(
|
|
20583
|
+
const chunks = JSON.parse(readFileSync14(chunksJsonPath, "utf-8"));
|
|
20524
20584
|
if (chunkPaths.length !== chunks.length) {
|
|
20525
20585
|
throw new Error(
|
|
20526
20586
|
`[assemble] chunkPaths length (${chunkPaths.length}) does not match chunks.json length (${chunks.length}). Adapters must pass one path per chunk, ordered by index.`
|
|
@@ -20666,13 +20726,13 @@ function stitchesSeparateAudio(planDir) {
|
|
|
20666
20726
|
return lockedAudio(planDir).separateAudio === true;
|
|
20667
20727
|
}
|
|
20668
20728
|
function planFormat(planDir) {
|
|
20669
|
-
const plan2 = JSON.parse(
|
|
20729
|
+
const plan2 = JSON.parse(readFileSync14(join44(planDir, "plan.json"), "utf-8"));
|
|
20670
20730
|
return plan2.dimensions.format;
|
|
20671
20731
|
}
|
|
20672
20732
|
function lockedAudio(planDir) {
|
|
20673
20733
|
const encoderJsonPath = join44(planDir, "meta", "encoder.json");
|
|
20674
20734
|
if (!existsSync29(encoderJsonPath)) return {};
|
|
20675
|
-
return JSON.parse(
|
|
20735
|
+
return JSON.parse(readFileSync14(encoderJsonPath, "utf-8"));
|
|
20676
20736
|
}
|
|
20677
20737
|
function readCfrEncoder(planDir, format) {
|
|
20678
20738
|
if (format !== "mp4") {
|
|
@@ -20684,7 +20744,7 @@ function readCfrEncoder(planDir, format) {
|
|
|
20684
20744
|
if (!existsSync29(encoderJsonPath)) {
|
|
20685
20745
|
throw new Error(`[assemble] planDir missing meta/encoder.json: ${encoderJsonPath}`);
|
|
20686
20746
|
}
|
|
20687
|
-
const encoderJson = JSON.parse(
|
|
20747
|
+
const encoderJson = JSON.parse(readFileSync14(encoderJsonPath, "utf-8"));
|
|
20688
20748
|
if (encoderJson.encoder === "libx265-software") {
|
|
20689
20749
|
throw new Error(
|
|
20690
20750
|
`[assemble] cfr=true is not yet supported with codec: "h265". The cfr re-encode pass uses libx264 and would silently transcode the h265 chunks. Either disable cfr or render with codec: "h264".`
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.9.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.9.
|
|
9
|
+
var VERSION = true ? "0.9.14" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.9.14" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
parseNumbers,
|
|
11
11
|
parseRoi,
|
|
12
12
|
probeVideo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-T4FLVFQE.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-HOCC4J5C.js";
|
|
17
17
|
import {
|
|
18
18
|
withMeta
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IO3BC2ZK.js";
|
|
20
20
|
import {
|
|
21
21
|
failCommand
|
|
22
22
|
} from "./chunk-66W5IWLO.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
|
|
8
|
+
// src/utils/pngDimensions.ts
|
|
9
|
+
import { readFileSync } from "fs";
|
|
10
|
+
function pngDimensions(path) {
|
|
11
|
+
try {
|
|
12
|
+
const png = readFileSync(path);
|
|
13
|
+
if (png.length < 24) return {};
|
|
14
|
+
return { width: png.readUInt32BE(16), height: png.readUInt32BE(20) };
|
|
15
|
+
} catch {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// src/utils/timeoutArg.ts
|
|
21
|
+
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4 };
|
|
22
|
+
function parseTimeoutMs(raw, fallback, floorMs = 0, warn = console.error) {
|
|
23
|
+
if (raw === void 0 || raw === null || raw === "") return fallback;
|
|
24
|
+
const text = String(raw).trim();
|
|
25
|
+
const match = /^(\d+(?:\.\d+)?)\s*(ms|s|m)?$/i.exec(text);
|
|
26
|
+
if (!match) {
|
|
27
|
+
warn(`[hyperframes] --timeout "${text}" is not a duration; using ${fallback} ms.`);
|
|
28
|
+
return fallback;
|
|
29
|
+
}
|
|
30
|
+
const unit = match[2]?.toLowerCase();
|
|
31
|
+
const ms = Math.round(Number(match[1]) * UNIT_MS[unit ?? "ms"]);
|
|
32
|
+
if (ms <= 0) return fallback;
|
|
33
|
+
const used = Math.max(ms, floorMs);
|
|
34
|
+
if (!unit && ms < 1e3) {
|
|
35
|
+
warn(
|
|
36
|
+
`[hyperframes] --timeout ${text} is ${ms} ms, so ${used} ms is used. Write ${text}s for seconds.`
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
return used;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
pngDimensions,
|
|
44
|
+
parseTimeoutMs
|
|
45
|
+
};
|