hyperframes 0.9.11 → 0.9.13
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-IAFJH5RC.js → add-PXF5OGLI.js} +13 -12
- package/dist/{agentPromptGenerator-S3GWYMVC.js → agentPromptGenerator-DWNK722M.js} +5 -5
- package/dist/{animatedGifPrep-YU7IOD5D.js → animatedGifPrep-FFBCFFIY.js} +5 -5
- package/dist/api.js +29 -27
- package/dist/{asset-UR4PH6KJ.js → asset-FZVMLDSY.js} +5 -5
- package/dist/{assetCataloger-VKJIQCYP.js → assetCataloger-FXBZK55R.js} +6 -6
- package/dist/{audio-HZJ7QZQR.js → audio-QYNPBNZQ.js} +23 -21
- package/dist/{auth-UBNAW62X.js → auth-2FBS4QC4.js} +6 -6
- package/dist/{autoUpdate-DDFTFHRP.js → autoUpdate-VFGRGQTO.js} +4 -4
- package/dist/avatars-UVZFK2JR.js +168 -0
- package/dist/{backgroundChecks-H3TNVYJV.js → backgroundChecks-FN53YXTW.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-ZDL65J7N.js → batchRender-JB3D6X7U.js} +10 -7
- package/dist/{beats-HOIQSFFP.js → beats-5BJMEGGA.js} +11 -11
- package/dist/{benchmark-ZYOQV7DK.js → benchmark-MP4JGPYM.js} +11 -11
- package/dist/{billing-5YSYJJ2V.js → billing-XSPWEAYT.js} +6 -5
- package/dist/{browser-PLFK53IZ.js → browser-V4EB7UNU.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-TH5SLG6O.js → bundleWithLocalizedFonts-Z23O7MZ3.js} +4 -4
- package/dist/{capture-MICLAF6V.js → capture-L5TGT4SW.js} +18 -18
- package/dist/{capture-R77HOGLQ.js → capture-SQHH4HBC.js} +5 -5
- package/dist/{captureCompositionFrame-WBMFZHEF.js → captureCompositionFrame-BAYKFJMM.js} +12 -12
- package/dist/{catalog-CGT32566.js → catalog-OLP2O5W6.js} +14 -13
- package/dist/{catch-up-TMYPXRKC.js → catch-up-LJWHENVV.js} +8 -8
- package/dist/{check-4O5J4OWS.js → check-KGAKP3H5.js} +38 -37
- package/dist/{checkAudio-AAVDZFIQ.js → checkAudio-QWBAUBJ2.js} +10 -10
- package/dist/{checkBrowser-3OCZBJC7.js → checkBrowser-J5UUWIPK.js} +31 -30
- package/dist/{chunk-R7EKEIAK.js → chunk-2ASPXS4U.js} +1 -1
- package/dist/{chunk-Q3IT7I2K.js → chunk-2IATDUYU.js} +1 -1
- package/dist/{chunk-WJ7E5J77.js → chunk-2IB3XVAR.js} +12 -12
- package/dist/{chunk-EPCVE3OX.js → chunk-2WGAXAM7.js} +2 -2
- package/dist/{chunk-H7H7XNYY.js → chunk-2YVIA2BX.js} +4 -4
- package/dist/{chunk-6KV3CMY2.js → chunk-3BLPPIJA.js} +3 -15
- package/dist/chunk-3S27CPV7.js +17 -0
- package/dist/{chunk-ZUACTOAB.js → chunk-3SZZLHHM.js} +1 -1
- package/dist/{chunk-7W5ZDOLW.js → chunk-472XCBCV.js} +14 -3
- package/dist/{chunk-YTNHZT47.js → chunk-4HGTJHKB.js} +3 -3
- package/dist/{chunk-4ILKN2MX.js → chunk-5Z7YSZRF.js} +10 -10
- package/dist/{chunk-7RM3TB62.js → chunk-6PGTJG3M.js} +1 -1
- package/dist/{chunk-V6HV2IDT.js → chunk-6U6KMYIV.js} +1 -1
- package/dist/{chunk-LR5NVYZT.js → chunk-7AMCGJDM.js} +1 -1
- package/dist/{chunk-4J4EGANW.js → chunk-7S2LS53F.js} +6 -6
- package/dist/{chunk-PKLZ5PV2.js → chunk-7WSL3PT3.js} +2 -2
- package/dist/{chunk-OJTXXFYO.js → chunk-7X3UDKJK.js} +1 -1
- package/dist/{chunk-QOF7XZEI.js → chunk-7Z7SREEU.js} +2 -2
- package/dist/{chunk-N6FGHJ7X.js → chunk-AB6DKVKC.js} +13 -2
- package/dist/{chunk-6DHC3MVK.js → chunk-AIK4ETUZ.js} +2 -2
- package/dist/{chunk-SRVAYGTN.js → chunk-AKE744C5.js} +6 -5
- package/dist/{chunk-MZHCA5KY.js → chunk-AR6IO4RY.js} +5 -5
- package/dist/{chunk-LNTUFRZD.js → chunk-AWV4F5TS.js} +3 -3
- package/dist/{chunk-X5EOH44V.js → chunk-B2RMMRJB.js} +1 -1
- package/dist/{chunk-MWHTLXG4.js → chunk-B3CSMKM7.js} +1 -1
- package/dist/{chunk-SUM3VFPQ.js → chunk-BE7Y3PJZ.js} +3 -3
- package/dist/{chunk-TSQZ3DSC.js → chunk-BY7PZB6H.js} +1 -1
- package/dist/{chunk-OQHC5YIB.js → chunk-BYWQQMTB.js} +2 -2
- package/dist/{chunk-6Y7WZTHJ.js → chunk-C5VZTKW2.js} +26 -26
- package/dist/{chunk-BONBJJ35.js → chunk-CKEOCCMK.js} +1 -1
- package/dist/{chunk-XX77LLFJ.js → chunk-CKZVLS3K.js} +70 -5
- package/dist/{chunk-BBMMVLA3.js → chunk-CLT3CJKG.js} +2 -2
- package/dist/chunk-D3UCUI7G.js +68 -0
- package/dist/{chunk-XTYNW745.js → chunk-EP6GCDZ6.js} +1 -1
- package/dist/{chunk-2VZVMCV6.js → chunk-EQSUX64Q.js} +1 -1
- package/dist/{chunk-JT2ZGKKB.js → chunk-EZCMP7NJ.js} +3 -3
- package/dist/{chunk-C3NC67BB.js → chunk-F6PFZMQU.js} +3 -3
- package/dist/{chunk-VWUUNGSV.js → chunk-FJIN5OWZ.js} +3 -3
- package/dist/{chunk-J3RXEDR2.js → chunk-FYZFURBN.js} +2 -2
- package/dist/{chunk-LV5SL4YW.js → chunk-GPHY5R35.js} +1 -1
- package/dist/{chunk-OQGA4QBD.js → chunk-H4VII7WN.js} +7 -7
- package/dist/{chunk-42TYQPES.js → chunk-H6FRRSHM.js} +1 -1
- package/dist/{chunk-2GICKZ3I.js → chunk-HOCC4J5C.js} +1 -1
- package/dist/{chunk-SSZTRWKQ.js → chunk-HTSVFS4G.js} +2 -2
- package/dist/{chunk-4H4DR36N.js → chunk-IOPE4LJ2.js} +1 -1
- package/dist/{chunk-NQYW4IYN.js → chunk-ITDHT7AO.js} +4 -4
- package/dist/{chunk-QRCORKYC.js → chunk-JGTJEQ5X.js} +2 -2
- package/dist/{chunk-ZD3MK4H5.js → chunk-KHF5WT6E.js} +1 -1
- package/dist/{chunk-CUYVIDGF.js → chunk-KWGOABKQ.js} +2 -2
- package/dist/{chunk-AUYRWWFL.js → chunk-LGVUQ4GC.js} +3 -3
- package/dist/{chunk-WJD3GVAA.js → chunk-LISUH6KH.js} +1 -1
- package/dist/{chunk-5LOZWO2M.js → chunk-M3JU24AI.js} +1 -1
- package/dist/{chunk-OAFGA2FR.js → chunk-MBX3BHW3.js} +1 -1
- package/dist/{chunk-4YCNVKJX.js → chunk-MGAGDEBC.js} +3 -3
- package/dist/{chunk-IQ5OMRLK.js → chunk-MJEE2WSS.js} +5 -5
- package/dist/{chunk-JS6ZTPYC.js → chunk-N2SXD5EG.js} +1 -1
- package/dist/{chunk-KNOIX2U5.js → chunk-N43XGFAZ.js} +279 -231
- package/dist/{chunk-N74N2I2K.js → chunk-N7EA7GWU.js} +1 -1
- package/dist/{chunk-T4ELNOK6.js → chunk-NMYRVKIL.js} +4 -4
- package/dist/{chunk-A33GFLPY.js → chunk-NR2W7HUH.js} +1 -1
- package/dist/{chunk-6JDNEQV5.js → chunk-NW5QHUZO.js} +2 -2
- package/dist/{chunk-EL2DMHA5.js → chunk-NXQMN7YC.js} +1 -1
- package/dist/{chunk-2P5DTXUN.js → chunk-NZTYGWRK.js} +1 -1
- package/dist/{chunk-HY64QA63.js → chunk-O4Q44I77.js} +18 -6
- package/dist/{chunk-FLXZ4GZI.js → chunk-OHN3OJQQ.js} +1 -1
- package/dist/{chunk-ZLN3AJKT.js → chunk-OPOYDJEW.js} +1 -1
- package/dist/{chunk-DI3ZFBZ3.js → chunk-QVW57TUW.js} +6 -4
- package/dist/{chunk-SG4YBQPY.js → chunk-RADODJYB.js} +2 -2
- package/dist/{chunk-2VYAX3ZD.js → chunk-RBF3AF7R.js} +4 -4
- package/dist/{chunk-ABI256T5.js → chunk-RL52TNCM.js} +2 -2
- package/dist/{chunk-AVNF52HR.js → chunk-RWQEWEOV.js} +1 -1
- package/dist/{chunk-CD65TPHT.js → chunk-SFO4FLUG.js} +1 -1
- package/dist/{chunk-7ZBMUKHY.js → chunk-SGLX72IQ.js} +7 -7
- package/dist/{chunk-LWFXO732.js → chunk-SM4F4H3T.js} +1 -1
- package/dist/{chunk-FC4WF2VQ.js → chunk-SXAZR7M4.js} +2 -2
- package/dist/{chunk-EBUA6NWH.js → chunk-T5ZEMZ3K.js} +2 -2
- package/dist/{chunk-IMK55N3Z.js → chunk-TBXV7O3Z.js} +10 -10
- package/dist/{chunk-G3ERWPNV.js → chunk-TNTQ7H24.js} +15 -1
- package/dist/{chunk-OKD2LP73.js → chunk-TSCUYZ4B.js} +1 -1
- package/dist/{chunk-VM6T3Z6B.js → chunk-TX3JT67F.js} +1 -1
- package/dist/{chunk-37537KOL.js → chunk-U7AB4D6T.js} +5 -5
- package/dist/{chunk-3DWH6Z5U.js → chunk-UPI2MZ5L.js} +1 -1
- package/dist/{chunk-WWBEAKTO.js → chunk-UXS7VE75.js} +1 -1
- package/dist/{chunk-YJZYUXHQ.js → chunk-VIEMTLSI.js} +7 -7
- package/dist/{chunk-6R2PED3X.js → chunk-WCNUB6WU.js} +9 -9
- package/dist/{chunk-FPR57WRR.js → chunk-WEWXIQPN.js} +1 -1
- package/dist/{chunk-CN3Q4CDK.js → chunk-WGQW65DO.js} +12 -17
- package/dist/{chunk-I4XTKG2B.js → chunk-WSZWPYRG.js} +2 -2
- package/dist/{chunk-33K2UZBX.js → chunk-XHY36WZF.js} +2 -2
- package/dist/{chunk-AHLDGEH5.js → chunk-YHID4CM3.js} +1 -1
- package/dist/{chunk-QM4OL5MZ.js → chunk-YMP5FTA3.js} +11 -11
- package/dist/{chunk-NO6F7CLR.js → chunk-Z4GE5BXC.js} +5 -2
- package/dist/{chunk-ETYQYG6Q.js → chunk-ZFZXGZTX.js} +27 -18
- package/dist/{chunk-S2UKSI3C.js → chunk-ZMRRTWKP.js} +1 -1
- package/dist/{chunk-E2YXF2EP.js → chunk-ZPJVKYDL.js} +3 -3
- package/dist/{clean-2FWZPS4J.js → clean-NNYMY7FD.js} +17 -17
- package/dist/cli.js +69 -68
- package/dist/{cloud-2UFI7NLD.js → cloud-6FBCPI3B.js} +6 -6
- package/dist/{cloud-Z3FNCC4T.js → cloud-RFM3PYTR.js} +8 -6
- package/dist/{cloudrun-N737TJRC.js → cloudrun-D4V4TV6S.js} +6 -6
- package/dist/{colors-HRL7QSVG.js → colors-CRTWLZ5S.js} +2 -2
- package/dist/{compare-HKRLSFTU.js → compare-J3JV4AZ3.js} +32 -28
- package/dist/{compiler-KKIYPREA.js → compiler-5ANBCHB7.js} +3 -3
- package/dist/{component-F43F3363.js → component-QFREWBT5.js} +6 -6
- package/dist/{compositions-FFXCISLD.js → compositions-NUTRZGAZ.js} +15 -15
- package/dist/{curve-RHSJUG5P.js → curve-LR4THVRF.js} +12 -12
- package/dist/{cuts-KVFY3U6C.js → cuts-5WPLSRM2.js} +13 -13
- package/dist/{delete-O7IZKKUN.js → delete-KLIVMSTG.js} +14 -12
- package/dist/{deploy-PZAAUW75.js → deploy-CDWKRTWY.js} +6 -6
- package/dist/{describeProject-E44RWBJL.js → describeProject-YJEOPIW7.js} +8 -8
- package/dist/{destroy-IQLGADZM.js → destroy-6XY4WQWY.js} +2 -2
- package/dist/{diff-OMNILRNN.js → diff-KY6T2E32.js} +35 -33
- package/dist/{dist-PUHEYGA5.js → dist-GVCHAZJU.js} +6 -6
- package/dist/{dist-PCVNVAVC.js → dist-TQKOMXXI.js} +4 -2
- package/dist/{docs-D22SOQEZ.js → docs-WYJSJGSF.js} +2 -2
- package/dist/{doctor-4HZN7ZVI.js → doctor-HLG4AP3Q.js} +12 -12
- package/dist/{energy-N3ZIPHTP.js → energy-3T3DDIEN.js} +13 -13
- package/dist/{events-VAJ4Y6XF.js → events-HZG5BWCQ.js} +5 -5
- package/dist/{events-56A5D6DK.js → events-LB2RDZX3.js} +6 -6
- package/dist/{events-TUTAERAN.js → events-ZZNUYUCY.js} +15 -15
- package/dist/{extract-NJMZEOLG.js → extract-7STXIEDI.js} +18 -15
- package/dist/{face-KLV4W6CP.js → face-3DWRLSWO.js} +15 -14
- package/dist/{feedback-4VEKGVLN.js → feedback-4V2HGHTZ.js} +13 -12
- package/dist/{ffmpeg-A2O4HSRD.js → ffmpeg-5BWHEWVW.js} +5 -5
- package/dist/{figma-6XDKKOA6.js → figma-4SSCW6YU.js} +5 -5
- package/dist/fontLocalizeCli.js +8 -8
- package/dist/{frames-IAMGMNCA.js → frames-V3OUCXX6.js} +14 -14
- package/dist/{generate-FMATRA3L.js → generate-W4HW4MJQ.js} +20 -18
- package/dist/{get-JKA3APWR.js → get-FXFV3VDQ.js} +14 -12
- package/dist/{gpuPolicy-TKHFDEH2.js → gpuPolicy-X4BOE2HD.js} +5 -5
- package/dist/{grade-compare-TCLCDUG5.js → grade-compare-PV62LISL.js} +33 -30
- package/dist/{heifImagePrep-L2EY67F2.js → heifImagePrep-2K2I4SCP.js} +6 -6
- package/dist/{help-TWDOQJDN.js → help-R2ASMVJB.js} +3 -3
- package/dist/{history-SOWVZUAB.js → history-X24EZSOO.js} +10 -10
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-JDINBZLH.js → info-DJ6TZSEF.js} +9 -9
- package/dist/{init-ACNL6AFC.js → init-GQ2GRVQS.js} +34 -31
- package/dist/{ink-WNEJROFH.js → ink-L4VRIFJ7.js} +13 -13
- package/dist/{inspect-37AMWUW3.js → inspect-5IXDDOJN.js} +29 -28
- package/dist/{installer-PUQYKLXZ.js → installer-ZIBXFENP.js} +3 -2
- package/dist/{keyframes-LMUFQW4Z.js → keyframes-ASFH5XYJ.js} +10 -10
- package/dist/{lambda-DRGDNEW6.js → lambda-ELYE5XIZ.js} +17 -17
- package/dist/{layout-E63HPSXW.js → layout-NNGVQWY4.js} +29 -28
- package/dist/{lint-HNZPRCXH.js → lint-GYJFRDI2.js} +13 -13
- package/dist/{lintProject-EV3EEBY3.js → lintProject-NGMRZDNT.js} +2 -2
- package/dist/{list-UMR5VN2M.js → list-UBFDCTVO.js} +15 -13
- package/dist/{localPage-KIFKMB2B.js → localPage-DHAVU3EM.js} +5 -5
- package/dist/{login-OXOPCSUY.js → login-OKJT7QWG.js} +10 -9
- package/dist/{logout-UMDA3HDE.js → logout-YACQMRZN.js} +5 -4
- package/dist/{look-DFQJP2LY.js → look-4GINLBBO.js} +13 -13
- package/dist/{manager-T633Z2L4.js → manager-Q5X74T5D.js} +6 -6
- package/dist/{measure-Y2VXF6LJ.js → measure-LICRA4FH.js} +11 -11
- package/dist/{media-treatment-U2PDH4P3.js → media-treatment-PM3WLJZ4.js} +15 -15
- package/dist/{media-use-KGNGAQQP.js → media-use-NUORYIBQ.js} +7 -5
- package/dist/{models-HATSG3VK.js → models-V2XJYFY5.js} +13 -13
- package/dist/{motionShot-45M7MSFQ.js → motionShot-YBJB6L3C.js} +20 -17
- package/dist/{normalize-audio-SOXEVIKM.js → normalize-audio-LUAEDEUM.js} +8 -8
- package/dist/{open-LRPNBFRW.js → open-RTL2AU5C.js} +14 -13
- package/dist/{parakeetRunner-A7Z6CQOT.js → parakeetRunner-FBEL64JM.js} +12 -11
- package/dist/{pipeline-N3M6VXBC.js → pipeline-2VN2FDAL.js} +8 -8
- package/dist/{play-HTHDFMOU.js → play-U3EXVEC7.js} +22 -21
- package/dist/{policies-EERREOZJ.js → policies-EV7XPSQC.js} +2 -2
- package/dist/{preflight-XZZXHV42.js → preflight-Z3U5OGW3.js} +6 -6
- package/dist/{present-LQ4PJTP4.js → present-NXEDFMC4.js} +17 -17
- package/dist/{preview-CTEDNFN3.js → preview-AUDJW3KE.js} +23 -22
- package/dist/{probe-6IZD5TPR.js → probe-QQXAWDZG.js} +14 -13
- package/dist/{producer-4CR46ON4.js → producer-DNWWPGFA.js} +1 -1
- package/dist/{progress-STSH2JRY.js → progress-FWJJMPIQ.js} +2 -2
- package/dist/{projectConfig-PUAOWUNS.js → projectConfig-FMXOJBJY.js} +5 -4
- package/dist/{prompts-ZEVFT7US.js → prompts-27EPTM64.js} +2 -2
- package/dist/{publish-7W46NJFT.js → publish-7HSXMQEF.js} +15 -14
- package/dist/{refresh-4FQFQ2SW.js → refresh-L5C2HPMC.js} +5 -4
- package/dist/{remove-background-SYHNGASQ.js → remove-background-AIYMKXZW.js} +12 -12
- package/dist/{render-EF7Y6YYC.js → render-FD7LHCCC.js} +4 -4
- package/dist/{render-VZLEKSHR.js → render-RMPWJTY4.js} +44 -40
- package/dist/{render-JHSMAWED.js → render-SAAQKFHE.js} +129 -64
- package/dist/{render-batch-JYYP4RXA.js → render-batch-WPHP27VT.js} +4 -4
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-BKFLETMU.js → resolver-E7IHSWCQ.js} +3 -2
- package/dist/{reverse-SCXEQVRH.js → reverse-GHX5LUSV.js} +1 -1
- package/dist/{run-GRCZ6JO5.js → run-65M6ECM2.js} +7 -6
- package/dist/{sherpa-EENLR3RM.js → sherpa-QQZMXXO5.js} +11 -10
- package/dist/{sites-EAGXQOKI.js → sites-O7A7G3ZQ.js} +2 -2
- package/dist/skills/hyperframes/SKILL.md +2 -2
- package/dist/skills/hyperframes/references/plugin-installation.md +5 -6
- package/dist/skills/hyperframes/references/skill-lifecycle.md +15 -10
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +2 -2
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/cloud.md +10 -10
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +10 -14
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/sfx.mjs +2 -2
- package/dist/skills/media-use/references/resolve.md +2 -0
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +1 -1
- package/dist/skills/media-use/scripts/lib/heygen-search.mjs +4 -2
- package/dist/skills/media-use/scripts/lib/match.mjs +17 -0
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +20 -2
- package/dist/skills/media-use/scripts/resolve.mjs +52 -9
- package/dist/{skills-4TSYBAGW.js → skills-WCXVUM6C.js} +10 -10
- package/dist/{skillsUpdateCheck-MGXL5VXL.js → skillsUpdateCheck-PEVW2JO6.js} +5 -5
- package/dist/{snapshot-P27Y3NJE.js → snapshot-2ACZXDLZ.js} +36 -35
- package/dist/{src-L7UBHHKB.js → src-DA2HOM3K.js} +4 -4
- package/dist/{src-MWO2XBSA.js → src-WISBTYBV.js} +7 -7
- package/dist/{start-L5M26YD5.js → start-DDOWW7K5.js} +22 -20
- package/dist/{staticProjectServer-2JYB7RLI.js → staticProjectServer-MQ7H4MGQ.js} +14 -13
- package/dist/{status-SUK4I7TS.js → status-74IZXJKQ.js} +24 -8
- package/dist/studio/assets/{hyperframes-player-BbRz52ui.js → hyperframes-player-B2_9tPTr.js} +1 -1
- package/dist/studio/assets/{index-CCSgOq2L.js → index-BHe_y2lu.js} +1 -1
- package/dist/studio/assets/{index-D3y5mWmH.js → index-DToBQdGg.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-MEZKFJBY.js → studio-api-UABUZ3PZ.js} +6 -6
- package/dist/{studioServer-J5RPUMHP.js → studioServer-FGXZA75B.js} +54 -47
- package/dist/{sync-FHT2CHKU.js → sync-AVGYYG4D.js} +13 -13
- package/dist/{synthesize-YYT7UON6.js → synthesize-S3FF5KXC.js} +4 -1
- package/dist/{telemetry-WGNNQUSF.js → telemetry-5WZGQCKA.js} +3 -3
- package/dist/{telemetry-JWEOBK3Q.js → telemetry-7IM2NV22.js} +6 -6
- package/dist/templates/_shared/AGENTS.md +7 -6
- package/dist/templates/_shared/CLAUDE.md +7 -6
- package/dist/{templates-7DIQ52Y4.js → templates-5CWKOSBX.js} +106 -27
- package/dist/{timeline-ZO3PNIET.js → timeline-A7R54T7C.js} +19 -19
- package/dist/{tokens-X6OTCQCV.js → tokens-W6RQVKWV.js} +5 -5
- package/dist/{transcribe-KNO3BK5S.js → transcribe-GPOMREHS.js} +26 -24
- package/dist/{transcribe-QIZGXMR5.js → transcribe-N2C2MYCG.js} +8 -8
- package/dist/{tts-JHGGL7GL.js → tts-QRQEYR3Q.js} +5 -5
- package/dist/{update-WXGSPMEG.js → update-X643YOPS.js} +15 -13
- package/dist/{updateCheck-OBYSCTWV.js → updateCheck-O7IUSOXN.js} +4 -4
- package/dist/{upgrade-YCCIVSI6.js → upgrade-6NWYJUFT.js} +7 -7
- package/dist/{upload-L5TSWWIU.js → upload-HMRWGZIO.js} +1 -1
- package/dist/{urlDownloader-FOXK4FYP.js → urlDownloader-PFHIVGDF.js} +4 -4
- package/dist/{validate-TDVQ2B6Y.js → validate-IIFU6OEG.js} +22 -22
- package/dist/{video-AVEGMBDM.js → video-R6TSXZMN.js} +8 -8
- package/dist/{voices-2LIY4CYK.js → voices-Y572PKNN.js} +17 -16
- package/dist/warmCheck.js +38 -37
- package/package.json +1 -1
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
Semaphore,
|
|
17
17
|
prepareHeifImageInputs,
|
|
18
18
|
withMediaProbeSlot
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-T5ZEMZ3K.js";
|
|
20
20
|
import {
|
|
21
21
|
EncoderInterruptedError,
|
|
22
22
|
encoderFailureError,
|
|
23
23
|
prepareAnimatedGifInputs
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-H6FRRSHM.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-AB6DKVKC.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-N2SXD5EG.js";
|
|
201
201
|
import {
|
|
202
202
|
collectScratchLeftovers,
|
|
203
203
|
removeScratch,
|
|
@@ -271,7 +271,7 @@ import {
|
|
|
271
271
|
import {
|
|
272
272
|
lintHyperframeHtml,
|
|
273
273
|
resolveReferencedStart
|
|
274
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-CKZVLS3K.js";
|
|
275
275
|
import {
|
|
276
276
|
isUnresolvedAssetPlaceholder,
|
|
277
277
|
readProjectFile,
|
|
@@ -1466,27 +1466,25 @@ function createMemorySampler(intervalMs = 250) {
|
|
|
1466
1466
|
};
|
|
1467
1467
|
}
|
|
1468
1468
|
var warnedSymlinkFallback = false;
|
|
1469
|
+
var copyCannotFix = (error) => ["ENOSPC", "EDQUOT", "EEXIST", "ENOENT"].includes(
|
|
1470
|
+
error?.code ?? ""
|
|
1471
|
+
);
|
|
1469
1472
|
function tryWindowsFrameJunction(fileSystem, src, dest) {
|
|
1470
1473
|
if (process.platform !== "win32") return false;
|
|
1471
1474
|
try {
|
|
1472
1475
|
fileSystem.symlinkSync(src, dest, "junction");
|
|
1473
1476
|
return true;
|
|
1474
1477
|
} catch (error) {
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
code ?? ""
|
|
1478
|
-
)) {
|
|
1479
|
-
return false;
|
|
1480
|
-
}
|
|
1481
|
-
throw error;
|
|
1478
|
+
if (copyCannotFix(error)) throw error;
|
|
1479
|
+
return false;
|
|
1482
1480
|
}
|
|
1483
1481
|
}
|
|
1484
1482
|
function linkOrCopyFrameDir(fileSystem, src, dest) {
|
|
1485
1483
|
try {
|
|
1486
1484
|
fileSystem.symlinkSync(src, dest, "dir");
|
|
1487
1485
|
} catch (err) {
|
|
1486
|
+
if (copyCannotFix(err)) throw err;
|
|
1488
1487
|
const code = err?.code;
|
|
1489
|
-
if (code !== "EPERM" && code !== "EACCES" && code !== "UNKNOWN") throw err;
|
|
1490
1488
|
if (tryWindowsFrameJunction(fileSystem, src, dest)) return;
|
|
1491
1489
|
if (!warnedSymlinkFallback) {
|
|
1492
1490
|
warnedSymlinkFallback = true;
|
|
@@ -4995,194 +4993,8 @@ function startRenderEtaGuard(options) {
|
|
|
4995
4993
|
return stop;
|
|
4996
4994
|
}
|
|
4997
4995
|
|
|
4998
|
-
// ../producer/src/services/render/segmentManifest.ts
|
|
4999
|
-
import { createHash as createHash2 } from "crypto";
|
|
5000
|
-
import { existsSync as existsSync7, mkdirSync as mkdirSync4, readFileSync as readFileSync4, statSync as statSync4, writeFileSync as writeFileSync3 } from "fs";
|
|
5001
|
-
import { join as join11 } from "path";
|
|
5002
|
-
var MANIFEST_FILENAME = "segments.json";
|
|
5003
|
-
function computeSegmentPlanHash(input) {
|
|
5004
|
-
const ordered = [
|
|
5005
|
-
input.compositionHash,
|
|
5006
|
-
input.cliVersion,
|
|
5007
|
-
String(input.totalFrames),
|
|
5008
|
-
String(input.segmentFrames),
|
|
5009
|
-
`${input.fps.num}/${input.fps.den}`,
|
|
5010
|
-
`${input.width}x${input.height}`,
|
|
5011
|
-
input.codec,
|
|
5012
|
-
input.preset,
|
|
5013
|
-
input.quality === void 0 ? "" : String(input.quality),
|
|
5014
|
-
input.bitrate ?? "",
|
|
5015
|
-
input.pixelFormat ?? "",
|
|
5016
|
-
input.imageFormat,
|
|
5017
|
-
input.useGpu ? "gpu" : "cpu",
|
|
5018
|
-
`${input.outputWidth}x${input.outputHeight}`,
|
|
5019
|
-
input.motionBlur,
|
|
5020
|
-
input.pageMotionBlur ?? "",
|
|
5021
|
-
input.captureQuality === void 0 ? "" : String(input.captureQuality)
|
|
5022
|
-
];
|
|
5023
|
-
const delivery = [input.maxBitrate, input.bufferSize, input.gopSize].map((v) => v ?? "");
|
|
5024
|
-
if (delivery.some((v) => v !== "")) ordered.push(...delivery.map(String));
|
|
5025
|
-
return createHash2("sha256").update(ordered.join(" ")).digest("hex").slice(0, 16);
|
|
5026
|
-
}
|
|
5027
|
-
function segmentDirFor(projectRendersDir, planHash) {
|
|
5028
|
-
return join11(projectRendersDir, ".hf-segments", planHash);
|
|
5029
|
-
}
|
|
5030
|
-
function hasNumber(value, key) {
|
|
5031
|
-
return key in value && typeof Reflect.get(value, key) === "number";
|
|
5032
|
-
}
|
|
5033
|
-
function hasString(value, key) {
|
|
5034
|
-
return key in value && typeof Reflect.get(value, key) === "string";
|
|
5035
|
-
}
|
|
5036
|
-
function isEntry(value) {
|
|
5037
|
-
if (typeof value !== "object" || value === null) return false;
|
|
5038
|
-
return hasNumber(value, "index") && hasNumber(value, "startFrame") && hasNumber(value, "endFrame") && hasString(value, "path") && hasNumber(value, "bytes") && hasString(value, "completedAt");
|
|
5039
|
-
}
|
|
5040
|
-
function isManifest(value) {
|
|
5041
|
-
if (typeof value !== "object" || value === null) return false;
|
|
5042
|
-
const completed = Reflect.get(value, "completed");
|
|
5043
|
-
return Reflect.get(value, "version") === 1 && hasString(value, "planHash") && hasNumber(value, "totalFrames") && hasNumber(value, "segmentFrames") && Array.isArray(completed) && completed.every(isEntry);
|
|
5044
|
-
}
|
|
5045
|
-
function readSegmentManifest(segmentDir) {
|
|
5046
|
-
const path = join11(segmentDir, MANIFEST_FILENAME);
|
|
5047
|
-
if (!existsSync7(path)) return null;
|
|
5048
|
-
try {
|
|
5049
|
-
const parsed = JSON.parse(readFileSync4(path, "utf-8"));
|
|
5050
|
-
return isManifest(parsed) ? parsed : null;
|
|
5051
|
-
} catch {
|
|
5052
|
-
return null;
|
|
5053
|
-
}
|
|
5054
|
-
}
|
|
5055
|
-
function writeSegmentManifest(segmentDir, manifest) {
|
|
5056
|
-
mkdirSync4(segmentDir, { recursive: true });
|
|
5057
|
-
const tmp = join11(segmentDir, `${MANIFEST_FILENAME}.${process.pid}.tmp`);
|
|
5058
|
-
writeFileSync3(tmp, JSON.stringify(manifest, null, 2), "utf-8");
|
|
5059
|
-
renameWithRetry(tmp, join11(segmentDir, MANIFEST_FILENAME));
|
|
5060
|
-
}
|
|
5061
|
-
async function probeSegmentFrameCount(path, probe) {
|
|
5062
|
-
try {
|
|
5063
|
-
const meta = await probe(path);
|
|
5064
|
-
if (!Number.isFinite(meta.videoStreamDurationSeconds) || !Number.isFinite(meta.fps))
|
|
5065
|
-
return null;
|
|
5066
|
-
if (meta.fps <= 0) return null;
|
|
5067
|
-
return Math.round(meta.videoStreamDurationSeconds * meta.fps);
|
|
5068
|
-
} catch {
|
|
5069
|
-
return null;
|
|
5070
|
-
}
|
|
5071
|
-
}
|
|
5072
|
-
async function validateCompletedSegments(manifest, expectedHash, probeFrames) {
|
|
5073
|
-
const ok = /* @__PURE__ */ new Set();
|
|
5074
|
-
if (manifest.planHash !== expectedHash) return ok;
|
|
5075
|
-
for (const entry of manifest.completed) {
|
|
5076
|
-
if (!existsSync7(entry.path)) continue;
|
|
5077
|
-
const size = statSync4(entry.path).size;
|
|
5078
|
-
if (size <= 0 || size !== entry.bytes) continue;
|
|
5079
|
-
const frames = await probeFrames(entry.path);
|
|
5080
|
-
if (frames !== entry.endFrame - entry.startFrame) continue;
|
|
5081
|
-
ok.add(entry.index);
|
|
5082
|
-
}
|
|
5083
|
-
return ok;
|
|
5084
|
-
}
|
|
5085
|
-
|
|
5086
|
-
// ../producer/src/services/render/hdrMode.ts
|
|
5087
|
-
function formatDowngradeWarning(outputFormat, forcedHdrWithoutSources) {
|
|
5088
|
-
const hdrSourceReason = forcedHdrWithoutSources ? "HDR was forced without detected HDR sources" : "HDR source detected";
|
|
5089
|
-
const formatReason = outputFormat === "hls" ? "HLS output is SDR-only (H.264 in MPEG-TS)" : "HDR + alpha is not supported";
|
|
5090
|
-
return `[Render] ${hdrSourceReason}, but format is "${outputFormat}", so falling back to SDR. ${formatReason}. Use --format mp4 for HDR10 output.`;
|
|
5091
|
-
}
|
|
5092
|
-
function findRenderHdrAutoPromotionTrigger(input) {
|
|
5093
|
-
for (const extracted of input.extractionResult?.extracted ?? []) {
|
|
5094
|
-
if (!isHdrColorSpace(extracted.metadata.colorSpace)) continue;
|
|
5095
|
-
const source = input.videos.find(({ id }) => id === extracted.videoId)?.src;
|
|
5096
|
-
if (source) return source;
|
|
5097
|
-
}
|
|
5098
|
-
return input.images.find(({ id }) => input.nativeHdrImageIds.has(id))?.src;
|
|
5099
|
-
}
|
|
5100
|
-
function logGradingResolution(input, hdrMode, effectiveHdr, hasHdrSource) {
|
|
5101
|
-
const keptSdr = hasHdrSource && gradingKeepsSdr(hdrMode, input.media);
|
|
5102
|
-
if (keptSdr) {
|
|
5103
|
-
input.log.warn(
|
|
5104
|
-
"[Render] HDR source detected, but color grading is SDR-only, so rendering SDR: HDR sources are tone-mapped before the grade. Use --hdr to force HDR output (grades stay SDR)."
|
|
5105
|
-
);
|
|
5106
|
-
} else if (effectiveHdr && [...input.media.videos, ...input.media.images].some((m) => m.graded)) {
|
|
5107
|
-
input.log.warn(
|
|
5108
|
-
"[Render] HDR output with graded media: color grading is SDR-only, so graded elements are graded in SDR and placed in the HDR output."
|
|
5109
|
-
);
|
|
5110
|
-
}
|
|
5111
|
-
return keptSdr;
|
|
5112
|
-
}
|
|
5113
|
-
function logHdrResolution(input, hdrMode, effectiveHdr, forcedHdrWithoutSources, hasHdrSource) {
|
|
5114
|
-
const keptSdrForGrading = logGradingResolution(input, hdrMode, effectiveHdr, hasHdrSource);
|
|
5115
|
-
if (forcedHdrWithoutSources) {
|
|
5116
|
-
input.log.warn(
|
|
5117
|
-
"[Render] HDR forced by --hdr flag, but no HDR sources were detected, defaulting to HLG. SDR-only compositions may look perceptually wrong on HDR displays."
|
|
5118
|
-
);
|
|
5119
|
-
}
|
|
5120
|
-
if (!effectiveHdr) {
|
|
5121
|
-
if (keptSdrForGrading) return;
|
|
5122
|
-
input.log.info(
|
|
5123
|
-
hdrMode === "force-sdr" ? "[Render] SDR forced by --sdr flag" : "[Render] No HDR sources detected, rendering SDR"
|
|
5124
|
-
);
|
|
5125
|
-
return;
|
|
5126
|
-
}
|
|
5127
|
-
if (hdrMode === "auto") {
|
|
5128
|
-
input.log.warn(
|
|
5129
|
-
formatHdrAutoPromotionWarning({
|
|
5130
|
-
triggeringAsset: sanitizeHdrAutoPromotionAsset(
|
|
5131
|
-
input.autoPromotionTrigger ?? "an HDR-tagged asset"
|
|
5132
|
-
),
|
|
5133
|
-
output: HDR_AUTO_PROMOTION_PIPELINE
|
|
5134
|
-
})
|
|
5135
|
-
);
|
|
5136
|
-
return;
|
|
5137
|
-
}
|
|
5138
|
-
const reason = forcedHdrWithoutSources ? "forced by --hdr flag (no HDR sources detected, defaulting to HLG)" : "forced by --hdr flag";
|
|
5139
|
-
input.log.info(
|
|
5140
|
-
`[Render] HDR ${reason}, output: ${effectiveHdr.transfer.toUpperCase()} (BT.2020, 10-bit H.265)`
|
|
5141
|
-
);
|
|
5142
|
-
}
|
|
5143
|
-
function formatCarriesHdr(format) {
|
|
5144
|
-
return format === "mp4";
|
|
5145
|
-
}
|
|
5146
|
-
function rendersSdrOnly(config, media) {
|
|
5147
|
-
return config.hdrMode === "force-sdr" || gradingKeepsSdr(config.hdrMode, media) || !formatCarriesHdr(config.format ?? "mp4");
|
|
5148
|
-
}
|
|
5149
|
-
function resolveEffectiveHdrMode(input) {
|
|
5150
|
-
const hdrMode = input.hdrMode ?? "auto";
|
|
5151
|
-
const videoColorSpaces = (input.extractionResult?.extracted ?? []).map(
|
|
5152
|
-
(ext) => ext.metadata.colorSpace
|
|
5153
|
-
);
|
|
5154
|
-
const allColorSpaces = [...videoColorSpaces, ...input.imageColorSpaces];
|
|
5155
|
-
const info = allColorSpaces.length > 0 ? analyzeCompositionHdr(allColorSpaces) : null;
|
|
5156
|
-
let effectiveHdr;
|
|
5157
|
-
let forcedHdrWithoutSources = false;
|
|
5158
|
-
if (hdrMode === "force-sdr" || gradingKeepsSdr(hdrMode, input.media)) {
|
|
5159
|
-
effectiveHdr = void 0;
|
|
5160
|
-
} else if (hdrMode === "force-hdr") {
|
|
5161
|
-
if (info?.hasHdr && info.dominantTransfer) {
|
|
5162
|
-
effectiveHdr = { transfer: info.dominantTransfer };
|
|
5163
|
-
} else {
|
|
5164
|
-
effectiveHdr = { transfer: "hlg" };
|
|
5165
|
-
forcedHdrWithoutSources = true;
|
|
5166
|
-
}
|
|
5167
|
-
} else if (info?.hasHdr && info.dominantTransfer) {
|
|
5168
|
-
effectiveHdr = { transfer: info.dominantTransfer };
|
|
5169
|
-
}
|
|
5170
|
-
if (effectiveHdr && !formatCarriesHdr(input.outputFormat)) {
|
|
5171
|
-
input.log.warn(formatDowngradeWarning(input.outputFormat, forcedHdrWithoutSources));
|
|
5172
|
-
effectiveHdr = void 0;
|
|
5173
|
-
}
|
|
5174
|
-
logHdrResolution(input, hdrMode, effectiveHdr, forcedHdrWithoutSources, info?.hasHdr === true);
|
|
5175
|
-
return effectiveHdr;
|
|
5176
|
-
}
|
|
5177
|
-
|
|
5178
|
-
// ../producer/src/services/render/captureBeyondViewport.ts
|
|
5179
|
-
function resolveVideoCaptureBeyondViewport(videoCount) {
|
|
5180
|
-
if (videoCount <= 0) return void 0;
|
|
5181
|
-
return true;
|
|
5182
|
-
}
|
|
5183
|
-
|
|
5184
4996
|
// ../producer/src/services/render/captureCost.ts
|
|
5185
|
-
import { join as
|
|
4997
|
+
import { join as join11 } from "path";
|
|
5186
4998
|
var CAPTURE_CALIBRATION_TARGET_MS = 600;
|
|
5187
4999
|
var MAX_MEASURED_CAPTURE_COST_MULTIPLIER = 8;
|
|
5188
5000
|
var CAPTURE_CALIBRATION_PROTOCOL_TIMEOUT_MS = 3e4;
|
|
@@ -5378,6 +5190,7 @@ async function runCaptureCalibration(input) {
|
|
|
5378
5190
|
let probeSession = input.probeSession;
|
|
5379
5191
|
let forceScreenshot = input.forceScreenshot;
|
|
5380
5192
|
let lastBrowserConsole = [];
|
|
5193
|
+
let calibrationEvaluateTimedOut = false;
|
|
5381
5194
|
const fps = fpsToNumber(job.config.fps);
|
|
5382
5195
|
const sessionRef = { current: null };
|
|
5383
5196
|
const runOneCalibration = async (sessionDir, sessionCfg) => {
|
|
@@ -5418,11 +5231,12 @@ async function runCaptureCalibration(input) {
|
|
|
5418
5231
|
});
|
|
5419
5232
|
let calibration;
|
|
5420
5233
|
try {
|
|
5421
|
-
calibration = await runOneCalibration(
|
|
5234
|
+
calibration = await runOneCalibration(join11(workDir, "capture-calibration"), calibrationCfg);
|
|
5422
5235
|
} catch (error) {
|
|
5423
5236
|
const shouldFallback = !forceScreenshot && shouldFallbackToScreenshotAfterCalibrationError(error);
|
|
5424
5237
|
if (!shouldFallback) {
|
|
5425
5238
|
calibration = createFailedCaptureCalibrationEstimate("calibration-failed");
|
|
5239
|
+
calibrationEvaluateTimedOut = isEvaluateTimeout(error);
|
|
5426
5240
|
log.warn("[Render] Auto-worker calibration failed; using conservative worker budget.", {
|
|
5427
5241
|
protocolTimeout: calibrationCfg.protocolTimeout,
|
|
5428
5242
|
error: error instanceof Error ? error.message : String(error)
|
|
@@ -5451,11 +5265,12 @@ async function runCaptureCalibration(input) {
|
|
|
5451
5265
|
const screenshotCfg = createCaptureCalibrationConfig({ ...cfg, forceScreenshot: true });
|
|
5452
5266
|
try {
|
|
5453
5267
|
calibration = await runOneCalibration(
|
|
5454
|
-
|
|
5268
|
+
join11(workDir, "capture-calibration-screenshot"),
|
|
5455
5269
|
screenshotCfg
|
|
5456
5270
|
);
|
|
5457
5271
|
} catch (fallbackError) {
|
|
5458
5272
|
calibration = createFailedCaptureCalibrationEstimate("calibration-screenshot-failed");
|
|
5273
|
+
calibrationEvaluateTimedOut = isEvaluateTimeout(fallbackError);
|
|
5459
5274
|
log.warn(
|
|
5460
5275
|
"[Render] Screenshot auto-worker calibration failed after BeginFrame fallback; using conservative worker budget.",
|
|
5461
5276
|
{
|
|
@@ -5472,7 +5287,16 @@ async function runCaptureCalibration(input) {
|
|
|
5472
5287
|
});
|
|
5473
5288
|
}
|
|
5474
5289
|
}
|
|
5475
|
-
return {
|
|
5290
|
+
return {
|
|
5291
|
+
calibration,
|
|
5292
|
+
forceScreenshot,
|
|
5293
|
+
probeSession,
|
|
5294
|
+
lastBrowserConsole,
|
|
5295
|
+
calibrationEvaluateTimedOut
|
|
5296
|
+
};
|
|
5297
|
+
}
|
|
5298
|
+
function isEvaluateTimeout(error) {
|
|
5299
|
+
return /Runtime\.evaluate timed out/i.test(normalizeErrorMessage(error));
|
|
5476
5300
|
}
|
|
5477
5301
|
function shouldFallbackToScreenshotAfterCalibrationError(error) {
|
|
5478
5302
|
const message = normalizeErrorMessage(error);
|
|
@@ -5481,6 +5305,215 @@ function shouldFallbackToScreenshotAfterCalibrationError(error) {
|
|
|
5481
5305
|
);
|
|
5482
5306
|
}
|
|
5483
5307
|
|
|
5308
|
+
// ../producer/src/services/render/pageNeverReady.ts
|
|
5309
|
+
var PAGE_NEVER_READY = "PAGE_NEVER_READY";
|
|
5310
|
+
var PageNeverReadyError = class extends Error {
|
|
5311
|
+
code = PAGE_NEVER_READY;
|
|
5312
|
+
// The producer server reads these off the error for the wire envelope.
|
|
5313
|
+
owner = "user";
|
|
5314
|
+
retryable = false;
|
|
5315
|
+
constructor(cause) {
|
|
5316
|
+
super(
|
|
5317
|
+
"The composition page never became ready: it did not answer browser commands during calibration or capture, and no frame was captured. Its script may never return.",
|
|
5318
|
+
{ cause }
|
|
5319
|
+
);
|
|
5320
|
+
this.name = "PageNeverReadyError";
|
|
5321
|
+
}
|
|
5322
|
+
};
|
|
5323
|
+
function checkPageNeverReady(input) {
|
|
5324
|
+
const { calibrationEvaluateTimedOut, framesRendered, error } = input;
|
|
5325
|
+
if (!calibrationEvaluateTimedOut || framesRendered > 0 || !isEvaluateTimeout(error)) {
|
|
5326
|
+
return void 0;
|
|
5327
|
+
}
|
|
5328
|
+
return new PageNeverReadyError(error);
|
|
5329
|
+
}
|
|
5330
|
+
|
|
5331
|
+
// ../producer/src/services/render/segmentManifest.ts
|
|
5332
|
+
import { createHash as createHash2 } from "crypto";
|
|
5333
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync4, readFileSync as readFileSync4, statSync as statSync4, writeFileSync as writeFileSync3 } from "fs";
|
|
5334
|
+
import { join as join12 } from "path";
|
|
5335
|
+
var MANIFEST_FILENAME = "segments.json";
|
|
5336
|
+
function computeSegmentPlanHash(input) {
|
|
5337
|
+
const ordered = [
|
|
5338
|
+
input.compositionHash,
|
|
5339
|
+
input.cliVersion,
|
|
5340
|
+
String(input.totalFrames),
|
|
5341
|
+
String(input.segmentFrames),
|
|
5342
|
+
`${input.fps.num}/${input.fps.den}`,
|
|
5343
|
+
`${input.width}x${input.height}`,
|
|
5344
|
+
input.codec,
|
|
5345
|
+
input.preset,
|
|
5346
|
+
input.quality === void 0 ? "" : String(input.quality),
|
|
5347
|
+
input.bitrate ?? "",
|
|
5348
|
+
input.pixelFormat ?? "",
|
|
5349
|
+
input.imageFormat,
|
|
5350
|
+
input.useGpu ? "gpu" : "cpu",
|
|
5351
|
+
`${input.outputWidth}x${input.outputHeight}`,
|
|
5352
|
+
input.motionBlur,
|
|
5353
|
+
input.pageMotionBlur ?? "",
|
|
5354
|
+
input.captureQuality === void 0 ? "" : String(input.captureQuality)
|
|
5355
|
+
];
|
|
5356
|
+
const delivery = [input.maxBitrate, input.bufferSize, input.gopSize].map((v) => v ?? "");
|
|
5357
|
+
if (delivery.some((v) => v !== "")) ordered.push(...delivery.map(String));
|
|
5358
|
+
return createHash2("sha256").update(ordered.join(" ")).digest("hex").slice(0, 16);
|
|
5359
|
+
}
|
|
5360
|
+
function segmentDirFor(projectRendersDir, planHash) {
|
|
5361
|
+
return join12(projectRendersDir, ".hf-segments", planHash);
|
|
5362
|
+
}
|
|
5363
|
+
function hasNumber(value, key) {
|
|
5364
|
+
return key in value && typeof Reflect.get(value, key) === "number";
|
|
5365
|
+
}
|
|
5366
|
+
function hasString(value, key) {
|
|
5367
|
+
return key in value && typeof Reflect.get(value, key) === "string";
|
|
5368
|
+
}
|
|
5369
|
+
function isEntry(value) {
|
|
5370
|
+
if (typeof value !== "object" || value === null) return false;
|
|
5371
|
+
return hasNumber(value, "index") && hasNumber(value, "startFrame") && hasNumber(value, "endFrame") && hasString(value, "path") && hasNumber(value, "bytes") && hasString(value, "completedAt");
|
|
5372
|
+
}
|
|
5373
|
+
function isManifest(value) {
|
|
5374
|
+
if (typeof value !== "object" || value === null) return false;
|
|
5375
|
+
const completed = Reflect.get(value, "completed");
|
|
5376
|
+
return Reflect.get(value, "version") === 1 && hasString(value, "planHash") && hasNumber(value, "totalFrames") && hasNumber(value, "segmentFrames") && Array.isArray(completed) && completed.every(isEntry);
|
|
5377
|
+
}
|
|
5378
|
+
function readSegmentManifest(segmentDir) {
|
|
5379
|
+
const path = join12(segmentDir, MANIFEST_FILENAME);
|
|
5380
|
+
if (!existsSync7(path)) return null;
|
|
5381
|
+
try {
|
|
5382
|
+
const parsed = JSON.parse(readFileSync4(path, "utf-8"));
|
|
5383
|
+
return isManifest(parsed) ? parsed : null;
|
|
5384
|
+
} catch {
|
|
5385
|
+
return null;
|
|
5386
|
+
}
|
|
5387
|
+
}
|
|
5388
|
+
function writeSegmentManifest(segmentDir, manifest) {
|
|
5389
|
+
mkdirSync4(segmentDir, { recursive: true });
|
|
5390
|
+
const tmp = join12(segmentDir, `${MANIFEST_FILENAME}.${process.pid}.tmp`);
|
|
5391
|
+
writeFileSync3(tmp, JSON.stringify(manifest, null, 2), "utf-8");
|
|
5392
|
+
renameWithRetry(tmp, join12(segmentDir, MANIFEST_FILENAME));
|
|
5393
|
+
}
|
|
5394
|
+
async function probeSegmentFrameCount(path, probe) {
|
|
5395
|
+
try {
|
|
5396
|
+
const meta = await probe(path);
|
|
5397
|
+
if (!Number.isFinite(meta.videoStreamDurationSeconds) || !Number.isFinite(meta.fps))
|
|
5398
|
+
return null;
|
|
5399
|
+
if (meta.fps <= 0) return null;
|
|
5400
|
+
return Math.round(meta.videoStreamDurationSeconds * meta.fps);
|
|
5401
|
+
} catch {
|
|
5402
|
+
return null;
|
|
5403
|
+
}
|
|
5404
|
+
}
|
|
5405
|
+
async function validateCompletedSegments(manifest, expectedHash, probeFrames) {
|
|
5406
|
+
const ok = /* @__PURE__ */ new Set();
|
|
5407
|
+
if (manifest.planHash !== expectedHash) return ok;
|
|
5408
|
+
for (const entry of manifest.completed) {
|
|
5409
|
+
if (!existsSync7(entry.path)) continue;
|
|
5410
|
+
const size = statSync4(entry.path).size;
|
|
5411
|
+
if (size <= 0 || size !== entry.bytes) continue;
|
|
5412
|
+
const frames = await probeFrames(entry.path);
|
|
5413
|
+
if (frames !== entry.endFrame - entry.startFrame) continue;
|
|
5414
|
+
ok.add(entry.index);
|
|
5415
|
+
}
|
|
5416
|
+
return ok;
|
|
5417
|
+
}
|
|
5418
|
+
|
|
5419
|
+
// ../producer/src/services/render/hdrMode.ts
|
|
5420
|
+
function formatDowngradeWarning(outputFormat, forcedHdrWithoutSources) {
|
|
5421
|
+
const hdrSourceReason = forcedHdrWithoutSources ? "HDR was forced without detected HDR sources" : "HDR source detected";
|
|
5422
|
+
const formatReason = outputFormat === "hls" ? "HLS output is SDR-only (H.264 in MPEG-TS)" : "HDR + alpha is not supported";
|
|
5423
|
+
return `[Render] ${hdrSourceReason}, but format is "${outputFormat}", so falling back to SDR. ${formatReason}. Use --format mp4 for HDR10 output.`;
|
|
5424
|
+
}
|
|
5425
|
+
function findRenderHdrAutoPromotionTrigger(input) {
|
|
5426
|
+
for (const extracted of input.extractionResult?.extracted ?? []) {
|
|
5427
|
+
if (!isHdrColorSpace(extracted.metadata.colorSpace)) continue;
|
|
5428
|
+
const source = input.videos.find(({ id }) => id === extracted.videoId)?.src;
|
|
5429
|
+
if (source) return source;
|
|
5430
|
+
}
|
|
5431
|
+
return input.images.find(({ id }) => input.nativeHdrImageIds.has(id))?.src;
|
|
5432
|
+
}
|
|
5433
|
+
function logGradingResolution(input, hdrMode, effectiveHdr, hasHdrSource) {
|
|
5434
|
+
const keptSdr = hasHdrSource && gradingKeepsSdr(hdrMode, input.media);
|
|
5435
|
+
if (keptSdr) {
|
|
5436
|
+
input.log.warn(
|
|
5437
|
+
"[Render] HDR source detected, but color grading is SDR-only, so rendering SDR: HDR sources are tone-mapped before the grade. Use --hdr to force HDR output (grades stay SDR)."
|
|
5438
|
+
);
|
|
5439
|
+
} else if (effectiveHdr && [...input.media.videos, ...input.media.images].some((m) => m.graded)) {
|
|
5440
|
+
input.log.warn(
|
|
5441
|
+
"[Render] HDR output with graded media: color grading is SDR-only, so graded elements are graded in SDR and placed in the HDR output."
|
|
5442
|
+
);
|
|
5443
|
+
}
|
|
5444
|
+
return keptSdr;
|
|
5445
|
+
}
|
|
5446
|
+
function logHdrResolution(input, hdrMode, effectiveHdr, forcedHdrWithoutSources, hasHdrSource) {
|
|
5447
|
+
const keptSdrForGrading = logGradingResolution(input, hdrMode, effectiveHdr, hasHdrSource);
|
|
5448
|
+
if (forcedHdrWithoutSources) {
|
|
5449
|
+
input.log.warn(
|
|
5450
|
+
"[Render] HDR forced by --hdr flag, but no HDR sources were detected, defaulting to HLG. SDR-only compositions may look perceptually wrong on HDR displays."
|
|
5451
|
+
);
|
|
5452
|
+
}
|
|
5453
|
+
if (!effectiveHdr) {
|
|
5454
|
+
if (keptSdrForGrading) return;
|
|
5455
|
+
input.log.info(
|
|
5456
|
+
hdrMode === "force-sdr" ? "[Render] SDR forced by --sdr flag" : "[Render] No HDR sources detected, rendering SDR"
|
|
5457
|
+
);
|
|
5458
|
+
return;
|
|
5459
|
+
}
|
|
5460
|
+
if (hdrMode === "auto") {
|
|
5461
|
+
input.log.warn(
|
|
5462
|
+
formatHdrAutoPromotionWarning({
|
|
5463
|
+
triggeringAsset: sanitizeHdrAutoPromotionAsset(
|
|
5464
|
+
input.autoPromotionTrigger ?? "an HDR-tagged asset"
|
|
5465
|
+
),
|
|
5466
|
+
output: HDR_AUTO_PROMOTION_PIPELINE
|
|
5467
|
+
})
|
|
5468
|
+
);
|
|
5469
|
+
return;
|
|
5470
|
+
}
|
|
5471
|
+
const reason = forcedHdrWithoutSources ? "forced by --hdr flag (no HDR sources detected, defaulting to HLG)" : "forced by --hdr flag";
|
|
5472
|
+
input.log.info(
|
|
5473
|
+
`[Render] HDR ${reason}, output: ${effectiveHdr.transfer.toUpperCase()} (BT.2020, 10-bit H.265)`
|
|
5474
|
+
);
|
|
5475
|
+
}
|
|
5476
|
+
function formatCarriesHdr(format) {
|
|
5477
|
+
return format === "mp4";
|
|
5478
|
+
}
|
|
5479
|
+
function rendersSdrOnly(config, media) {
|
|
5480
|
+
return config.hdrMode === "force-sdr" || gradingKeepsSdr(config.hdrMode, media) || !formatCarriesHdr(config.format ?? "mp4");
|
|
5481
|
+
}
|
|
5482
|
+
function resolveEffectiveHdrMode(input) {
|
|
5483
|
+
const hdrMode = input.hdrMode ?? "auto";
|
|
5484
|
+
const videoColorSpaces = (input.extractionResult?.extracted ?? []).map(
|
|
5485
|
+
(ext) => ext.metadata.colorSpace
|
|
5486
|
+
);
|
|
5487
|
+
const allColorSpaces = [...videoColorSpaces, ...input.imageColorSpaces];
|
|
5488
|
+
const info = allColorSpaces.length > 0 ? analyzeCompositionHdr(allColorSpaces) : null;
|
|
5489
|
+
let effectiveHdr;
|
|
5490
|
+
let forcedHdrWithoutSources = false;
|
|
5491
|
+
if (hdrMode === "force-sdr" || gradingKeepsSdr(hdrMode, input.media)) {
|
|
5492
|
+
effectiveHdr = void 0;
|
|
5493
|
+
} else if (hdrMode === "force-hdr") {
|
|
5494
|
+
if (info?.hasHdr && info.dominantTransfer) {
|
|
5495
|
+
effectiveHdr = { transfer: info.dominantTransfer };
|
|
5496
|
+
} else {
|
|
5497
|
+
effectiveHdr = { transfer: "hlg" };
|
|
5498
|
+
forcedHdrWithoutSources = true;
|
|
5499
|
+
}
|
|
5500
|
+
} else if (info?.hasHdr && info.dominantTransfer) {
|
|
5501
|
+
effectiveHdr = { transfer: info.dominantTransfer };
|
|
5502
|
+
}
|
|
5503
|
+
if (effectiveHdr && !formatCarriesHdr(input.outputFormat)) {
|
|
5504
|
+
input.log.warn(formatDowngradeWarning(input.outputFormat, forcedHdrWithoutSources));
|
|
5505
|
+
effectiveHdr = void 0;
|
|
5506
|
+
}
|
|
5507
|
+
logHdrResolution(input, hdrMode, effectiveHdr, forcedHdrWithoutSources, info?.hasHdr === true);
|
|
5508
|
+
return effectiveHdr;
|
|
5509
|
+
}
|
|
5510
|
+
|
|
5511
|
+
// ../producer/src/services/render/captureBeyondViewport.ts
|
|
5512
|
+
function resolveVideoCaptureBeyondViewport(videoCount) {
|
|
5513
|
+
if (videoCount <= 0) return void 0;
|
|
5514
|
+
return true;
|
|
5515
|
+
}
|
|
5516
|
+
|
|
5484
5517
|
// ../producer/src/services/render/observability.ts
|
|
5485
5518
|
import { createHash as createHash3 } from "crypto";
|
|
5486
5519
|
var MAX_EVENTS = 160;
|
|
@@ -8808,17 +8841,24 @@ var VideoExtractionStageError = class extends Error {
|
|
|
8808
8841
|
publicMetadata;
|
|
8809
8842
|
};
|
|
8810
8843
|
function assertVideoExtractionSucceeded(result) {
|
|
8811
|
-
|
|
8844
|
+
throwIfHostFailure(result);
|
|
8812
8845
|
const error = buildVideoExtractionStageError(result);
|
|
8813
8846
|
if (error) throw error;
|
|
8814
8847
|
}
|
|
8815
|
-
function
|
|
8848
|
+
function throwIfHostFailure(result) {
|
|
8816
8849
|
const interrupted = result.errors.find((failure) => failure.kind === "external_interruption");
|
|
8817
|
-
if (
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8850
|
+
if (interrupted) {
|
|
8851
|
+
throw encoderFailureError("Video frame extraction failed", {
|
|
8852
|
+
error: String(interrupted.error),
|
|
8853
|
+
failureReason: "external_interruption"
|
|
8854
|
+
});
|
|
8855
|
+
}
|
|
8856
|
+
const full = result.errors.filter((failure) => failure.kind === "disk_full").length;
|
|
8857
|
+
if (full === 0) return;
|
|
8858
|
+
throw Object.assign(
|
|
8859
|
+
new Error(`ENOSPC: no space left on device, extracting the frames of ${full} video source(s)`),
|
|
8860
|
+
{ code: "ENOSPC" }
|
|
8861
|
+
);
|
|
8822
8862
|
}
|
|
8823
8863
|
function buildVideoExtractionStageError(result) {
|
|
8824
8864
|
if (result.success && result.errors.length === 0) return null;
|
|
@@ -9033,7 +9073,7 @@ async function runExtractVideosStage(input) {
|
|
|
9033
9073
|
);
|
|
9034
9074
|
extractionResult.phaseBreakdown.transientRetries = (extractionResult.phaseBreakdown.transientRetries ?? 0) + hdrProbeTransientRetries;
|
|
9035
9075
|
assertNotAborted();
|
|
9036
|
-
|
|
9076
|
+
throwIfHostFailure(extractionResult);
|
|
9037
9077
|
failureToEnforce = applyVideoExtractionFailurePolicy(extractionResult, extractionPolicy, log);
|
|
9038
9078
|
materializeExtractedFramesForCompiledDir(extractionResult.extracted, compiledDir, {
|
|
9039
9079
|
materializeSymlinks
|
|
@@ -12080,6 +12120,22 @@ async function executeDiskCaptureWithAdaptiveRetry(options) {
|
|
|
12080
12120
|
}
|
|
12081
12121
|
const remainingCount = countFrameRanges(remaining);
|
|
12082
12122
|
const madeProgress = captureAttemptMadeProgress(frameCount, remainingCount);
|
|
12123
|
+
if (options.allowRetry && !madeProgress && (currentWorkers > 1 || initializationRetriesUsed === 0 && failure.kind === "protocol_timeout") && /\bNetwork\.enable timed out|Navigation timeout of \d+ ms exceeded/i.test(failure.message)) {
|
|
12124
|
+
initializationRetriesUsed++;
|
|
12125
|
+
const nextWorkers2 = getNextRetryWorkerCount(currentWorkers);
|
|
12126
|
+
options.log.warn(
|
|
12127
|
+
"[Render] Browser initialization timed out; retrying with fewer workers.",
|
|
12128
|
+
{
|
|
12129
|
+
fromWorkers: currentWorkers,
|
|
12130
|
+
toWorkers: nextWorkers2,
|
|
12131
|
+
error: failure.message
|
|
12132
|
+
}
|
|
12133
|
+
);
|
|
12134
|
+
currentWorkers = nextWorkers2;
|
|
12135
|
+
missingRanges = remaining;
|
|
12136
|
+
attempt++;
|
|
12137
|
+
continue;
|
|
12138
|
+
}
|
|
12083
12139
|
if (options.allowRetry && isTransientCaptureRetryEligible(failure.kind, remaining, transientRetriesUsed)) {
|
|
12084
12140
|
transientRetriesUsed++;
|
|
12085
12141
|
options.log.warn(
|
|
@@ -12097,22 +12153,6 @@ async function executeDiskCaptureWithAdaptiveRetry(options) {
|
|
|
12097
12153
|
pendingTransientRetry = true;
|
|
12098
12154
|
continue;
|
|
12099
12155
|
}
|
|
12100
|
-
if (options.allowRetry && !madeProgress && initializationRetriesUsed === 0 && failure.kind === "protocol_timeout" && /\bNetwork\.enable timed out/i.test(failure.message)) {
|
|
12101
|
-
initializationRetriesUsed++;
|
|
12102
|
-
const nextWorkers2 = getNextRetryWorkerCount(currentWorkers);
|
|
12103
|
-
options.log.warn(
|
|
12104
|
-
"[Render] Browser initialization timed out; retrying once with fresh sessions.",
|
|
12105
|
-
{
|
|
12106
|
-
fromWorkers: currentWorkers,
|
|
12107
|
-
toWorkers: nextWorkers2,
|
|
12108
|
-
error: failure.message
|
|
12109
|
-
}
|
|
12110
|
-
);
|
|
12111
|
-
currentWorkers = nextWorkers2;
|
|
12112
|
-
missingRanges = remaining;
|
|
12113
|
-
attempt++;
|
|
12114
|
-
continue;
|
|
12115
|
-
}
|
|
12116
12156
|
if (!madeProgress) {
|
|
12117
12157
|
options.log.warn(
|
|
12118
12158
|
"[Render] Capture attempt made no forward progress; composition is likely structurally broken, not retrying.",
|
|
@@ -12670,6 +12710,7 @@ async function executeRenderPipeline(input) {
|
|
|
12670
12710
|
const onProgress = execution.onProgress;
|
|
12671
12711
|
const tooSlow = new AbortController();
|
|
12672
12712
|
let tooSlowError;
|
|
12713
|
+
let calibrationEvaluateTimedOut = false;
|
|
12673
12714
|
const executionSignal = job.config.maxRenderMs ? AbortSignal.any([tooSlow.signal, ...execution.signal ? [execution.signal] : []]) : execution.signal;
|
|
12674
12715
|
let fileServer = null;
|
|
12675
12716
|
let probeSession = null;
|
|
@@ -13412,6 +13453,7 @@ async function executeRenderPipeline(input) {
|
|
|
13412
13453
|
{ heartbeatMessage: "browser calibrating (frames not started)" }
|
|
13413
13454
|
);
|
|
13414
13455
|
captureCalibration = outcome.calibration;
|
|
13456
|
+
calibrationEvaluateTimedOut = outcome.calibrationEvaluateTimedOut;
|
|
13415
13457
|
captureForceScreenshot = outcome.forceScreenshot;
|
|
13416
13458
|
updateCaptureObservability({ forceScreenshot: captureForceScreenshot });
|
|
13417
13459
|
probeSession = outcome.probeSession;
|
|
@@ -14562,7 +14604,12 @@ async function executeRenderPipeline(input) {
|
|
|
14562
14604
|
await eventPublisher.flush();
|
|
14563
14605
|
} catch (caught) {
|
|
14564
14606
|
await pendingAudio;
|
|
14565
|
-
const
|
|
14607
|
+
const pageNeverReady = checkPageNeverReady({
|
|
14608
|
+
calibrationEvaluateTimedOut,
|
|
14609
|
+
framesRendered: job.framesRendered ?? 0,
|
|
14610
|
+
error: caught
|
|
14611
|
+
});
|
|
14612
|
+
const error = surfaceScriptFailure(tooSlowError ?? pageNeverReady ?? caught, job);
|
|
14566
14613
|
if (!tooSlowError && (error instanceof RenderCancelledError || executionSignal?.aborted)) {
|
|
14567
14614
|
job.error = error instanceof Error ? error.message : "render_cancelled";
|
|
14568
14615
|
updateJobStatus(job, "cancelled", "Render cancelled", job.progress, onProgress);
|
|
@@ -16938,7 +16985,7 @@ async function compilePlanComposition(projectDir, config, planDir, options) {
|
|
|
16938
16985
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
16939
16986
|
if (probeResult.probeSession) {
|
|
16940
16987
|
try {
|
|
16941
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
16988
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-DA2HOM3K.js");
|
|
16942
16989
|
await closeCaptureSession2(probeResult.probeSession);
|
|
16943
16990
|
} catch (err) {
|
|
16944
16991
|
log.warn("[plan] probe session close failed", {
|
|
@@ -18949,7 +18996,8 @@ var SAFE_RENDER_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
|
18949
18996
|
"VIDEO_EXTRACTION_FAILED",
|
|
18950
18997
|
"ENCODER_INTERRUPTED",
|
|
18951
18998
|
"RENDER_TOO_SLOW",
|
|
18952
|
-
"RENDER_STAGE_STALLED"
|
|
18999
|
+
"RENDER_STAGE_STALLED",
|
|
19000
|
+
"PAGE_NEVER_READY"
|
|
18953
19001
|
]);
|
|
18954
19002
|
function extractSafeRenderErrorCode(error) {
|
|
18955
19003
|
if (typeof error !== "object" || error === null || !("code" in error)) return void 0;
|
|
@@ -20324,7 +20372,7 @@ function startServer(options = {}) {
|
|
|
20324
20372
|
});
|
|
20325
20373
|
async function shutdown(signal) {
|
|
20326
20374
|
log.info(`Received ${signal}, shutting down`);
|
|
20327
|
-
const { drainBrowserPool } = await import("./src-
|
|
20375
|
+
const { drainBrowserPool } = await import("./src-DA2HOM3K.js");
|
|
20328
20376
|
await drainBrowserPool().catch(() => {
|
|
20329
20377
|
});
|
|
20330
20378
|
const handle = await Promise.race([
|