hyperframes 0.9.32 → 0.9.33
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-HYI4YJC5.js → add-GDXM36YQ.js} +13 -13
- package/dist/{agentPromptGenerator-JAQNBEUZ.js → agentPromptGenerator-KPNDH2EI.js} +7 -7
- package/dist/{animatedGifPrep-DVYRCZVR.js → animatedGifPrep-SAKETEZ2.js} +7 -7
- package/dist/api.js +39 -38
- package/dist/{asset-7FG3M3FQ.js → asset-KOJC72AQ.js} +2 -2
- package/dist/{assetCataloger-QDQZYHUC.js → assetCataloger-Q4ZFUI6G.js} +8 -8
- package/dist/{audio-R6ZG62DU.js → audio-XZBBXKQC.js} +25 -24
- package/dist/{auth-IPDYZXOG.js → auth-X45YSZGE.js} +4 -4
- package/dist/{autoUpdate-GAEDDZRN.js → autoUpdate-77XWQ564.js} +3 -3
- package/dist/{avatars-A45VFUZ4.js → avatars-D3D22TI2.js} +16 -15
- package/dist/{backgroundChecks-US74BS6V.js → backgroundChecks-2L2RWFJ3.js} +4 -4
- package/dist/backgroundChecksWorker.js +4 -4
- package/dist/{batchRender-VBSYVQA7.js → batchRender-O7J47H2Z.js} +3 -3
- package/dist/{beats-UPJ3KANG.js → beats-6RVVU56H.js} +11 -11
- package/dist/{benchmark-2RWYJGL2.js → benchmark-D5JRNAVQ.js} +10 -10
- package/dist/{billing-MD66MJTA.js → billing-WT4DGZII.js} +15 -14
- package/dist/{browser-JXCS62NX.js → browser-2OR737P4.js} +7 -7
- package/dist/{bundleWithLocalizedFonts-RAD7BNJF.js → bundleWithLocalizedFonts-VBET4RVR.js} +1 -1
- package/dist/{capture-DJ4WRP62.js → capture-23X2CK56.js} +44 -24
- package/dist/{capture-M6DT5WZT.js → capture-B34FTO6G.js} +3 -3
- package/dist/{captureCompositionFrame-IRXG7ZFU.js → captureCompositionFrame-TPZKEVKN.js} +15 -15
- package/dist/{catalog-GW45OWKU.js → catalog-ACHSYU5Z.js} +13 -13
- package/dist/{catch-up-YKJQ4IYC.js → catch-up-FGANS2BB.js} +8 -8
- package/dist/{check-7QTKMPGA.js → check-DXK4L5WP.js} +44 -44
- package/dist/{checkAudio-7WHUYGUZ.js → checkAudio-4ISYJED3.js} +15 -15
- package/dist/{checkBrowser-USAOWTAF.js → checkBrowser-5ECMULMP.js} +37 -37
- package/dist/{chunk-5VN7ZXJR.js → chunk-23354HMA.js} +1 -1
- package/dist/{chunk-GCJRV7LU.js → chunk-2I4DQZLQ.js} +1 -1
- package/dist/{chunk-WTO4DHBH.js → chunk-2KYLVWLO.js} +1 -1
- package/dist/{chunk-3R2X2VKB.js → chunk-2LMCARA5.js} +1 -1
- package/dist/{chunk-TVQNABOI.js → chunk-2QTGQGYA.js} +1 -1
- package/dist/{chunk-TLUDJLBN.js → chunk-2RBQLV6B.js} +1 -1
- package/dist/{chunk-EJPWGGPK.js → chunk-2TBW7UOF.js} +5150 -4985
- package/dist/{chunk-P5E3RHW3.js → chunk-3J32XVJ6.js} +1 -1
- package/dist/{chunk-LHFBKUVY.js → chunk-45ZQI734.js} +2 -2
- package/dist/{chunk-G7NKYELQ.js → chunk-4CHGNFCS.js} +4 -4
- package/dist/{chunk-34S7GYVK.js → chunk-4DLYTSWQ.js} +15 -8
- package/dist/{chunk-WAXPM7TK.js → chunk-4RPIEGL3.js} +2 -2
- package/dist/{chunk-SXOIG6VG.js → chunk-4US5QCXR.js} +231 -176
- package/dist/{chunk-XH6LGDIB.js → chunk-4WZU4FYS.js} +3 -3
- package/dist/{chunk-NNOAOQLT.js → chunk-5GYTBKZA.js} +2 -2
- package/dist/{chunk-K72X2YXR.js → chunk-5RVPI6QL.js} +4 -4
- package/dist/{chunk-M6FNCANA.js → chunk-6QEEF5RR.js} +1 -1
- package/dist/{chunk-MYFAVVA6.js → chunk-6RV2QY4K.js} +29 -29
- package/dist/{chunk-LXIEKLAC.js → chunk-6ZVUTYNB.js} +5 -5
- package/dist/{chunk-JMV63CNH.js → chunk-76KUCQXD.js} +1 -1
- package/dist/{chunk-GWSCUFGL.js → chunk-7LTXT7ME.js} +11 -9
- package/dist/{chunk-LBQQNNRC.js → chunk-7UUUV4PN.js} +1 -1
- package/dist/{chunk-6BI6URO2.js → chunk-A4VXOJZO.js} +4 -3
- package/dist/{chunk-2W4VQ3YZ.js → chunk-ADYMQM7T.js} +2 -2
- package/dist/{chunk-PXY3JZP2.js → chunk-AIC7T7CC.js} +2 -2
- package/dist/{chunk-KG3TONXU.js → chunk-B66UZ2YK.js} +9 -9
- package/dist/{chunk-7NDF2MO3.js → chunk-BAWGEGKD.js} +216 -344
- package/dist/{chunk-SIRYW7SY.js → chunk-BBL6STGK.js} +2 -2
- package/dist/{chunk-GTHRXU37.js → chunk-C2VZ7UPE.js} +18 -18
- package/dist/{chunk-I3QXWJ7V.js → chunk-CDI3CCAU.js} +5 -5
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-4CSZZXL6.js → chunk-CHM3QYLF.js} +3 -3
- package/dist/{chunk-VB3JZKMN.js → chunk-CNJLBAKM.js} +29 -8
- package/dist/chunk-DDDSTRHU.js +3890 -0
- package/dist/{chunk-GJUL3PRV.js → chunk-DGC2RIQE.js} +3 -3
- package/dist/{chunk-LP7B3JLC.js → chunk-DMW5SSUN.js} +2 -1
- package/dist/{chunk-HXQDDCGY.js → chunk-DMZER7D5.js} +1 -1
- package/dist/{chunk-XPT4GC6X.js → chunk-ERJBWDPM.js} +6 -6
- package/dist/{chunk-NXSKZE3C.js → chunk-ETWXZQN5.js} +1 -1
- package/dist/{chunk-E5S4QMX7.js → chunk-EX533ULK.js} +1 -1
- package/dist/{chunk-3367VNGK.js → chunk-EX7WPDFA.js} +1 -1
- package/dist/{chunk-JHX76QFC.js → chunk-FRH3CPW5.js} +1 -1
- package/dist/{chunk-EXW2LV4K.js → chunk-G55YEL2L.js} +24 -24
- package/dist/{chunk-WLNQAJQC.js → chunk-GHLLC6LJ.js} +2 -2
- package/dist/{chunk-SFPIVVUE.js → chunk-HEXTAQYG.js} +1 -1
- package/dist/{chunk-ADP2GIBS.js → chunk-HMB3IAVP.js} +1 -1
- package/dist/{chunk-Z6X64P6C.js → chunk-HPKW6UVW.js} +6 -6
- package/dist/{chunk-BA3EQ2KL.js → chunk-I35B5RWZ.js} +3 -3
- package/dist/{chunk-2NMBD5AH.js → chunk-I3PA54IU.js} +1 -1
- package/dist/{chunk-AOQRVS63.js → chunk-IYLGUQFR.js} +7 -5
- package/dist/chunk-JCJJCYCP.js +392 -0
- package/dist/{chunk-G6JLFSII.js → chunk-JSVCF4A6.js} +4 -4
- package/dist/{chunk-WVRAFHJU.js → chunk-K2Z6OXEI.js} +33 -5
- package/dist/{chunk-YIE5FU73.js → chunk-KIAY63AB.js} +37 -3
- package/dist/{chunk-X6DWLN55.js → chunk-L6BFXQ6S.js} +7 -3
- package/dist/chunk-M3BJEZ7E.js +152 -0
- package/dist/{chunk-M6LAGO6O.js → chunk-MA35E5OY.js} +3 -3
- package/dist/{chunk-XB7HE2R5.js → chunk-MDBEAWP2.js} +3 -3
- package/dist/{chunk-3HT3UGF2.js → chunk-MDGNQWFN.js} +1 -1
- package/dist/{chunk-3YNJAXA5.js → chunk-MOR3H5FK.js} +1 -1
- package/dist/{chunk-5FFYMVRD.js → chunk-MP36L7OJ.js} +1 -1
- package/dist/{chunk-YCTWMO3G.js → chunk-MVIUSNPZ.js} +1 -1
- package/dist/{chunk-6SNGKC6B.js → chunk-N2C7WJDG.js} +1 -1
- package/dist/{chunk-3PHCFSPD.js → chunk-NQFIMBXS.js} +2 -2
- package/dist/{chunk-AZ2QJETV.js → chunk-O2T6ZTLN.js} +1 -1
- package/dist/{chunk-2T7EDEKE.js → chunk-O5CNNVRY.js} +7 -7
- package/dist/{chunk-5GXMZIQZ.js → chunk-OD7PLYYX.js} +7 -7
- package/dist/{chunk-TZH6HNZH.js → chunk-PNP2BO3U.js} +1 -1
- package/dist/{chunk-ZLDYDO64.js → chunk-QUUZ2BGC.js} +6 -4
- package/dist/{chunk-P7TCIUP2.js → chunk-QWM3NY2E.js} +3 -3
- package/dist/{chunk-Y3YHDU7T.js → chunk-R45WFVRA.js} +1 -1
- package/dist/{chunk-UWMOMAYI.js → chunk-RCB4SGTB.js} +2 -2
- package/dist/{chunk-W3HNLDK6.js → chunk-RGYOCAHC.js} +2 -2
- package/dist/{chunk-CMYUPVMI.js → chunk-ROXILOZ6.js} +2 -2
- package/dist/{chunk-EBG5RCPM.js → chunk-SIGASWB7.js} +4 -4
- package/dist/{chunk-KFXHBP2E.js → chunk-SOAQ3XXB.js} +1 -1
- package/dist/{chunk-LJMTEZOP.js → chunk-SUXEL7G4.js} +15 -15
- package/dist/{chunk-6MTSP2XE.js → chunk-SWPI27QV.js} +7 -7
- package/dist/{chunk-RCRUWNQ4.js → chunk-T3GSTIBS.js} +2 -2
- package/dist/{chunk-L72MPEM2.js → chunk-U77L3ZQZ.js} +1 -1
- package/dist/{chunk-6NNLDCX4.js → chunk-UE2WSWNA.js} +1 -1
- package/dist/{chunk-YMIEJZB6.js → chunk-VKZSAAXZ.js} +2 -2
- package/dist/chunk-VQJLTYEK.js +453 -0
- package/dist/{chunk-TTSLKH63.js → chunk-VZQXHYEI.js} +2 -2
- package/dist/{chunk-D7NNNL2K.js → chunk-W2FSQBUR.js} +17 -17
- package/dist/{chunk-AWT5FHTN.js → chunk-W5PW26KE.js} +1 -1
- package/dist/{chunk-KXOKZJBZ.js → chunk-WIMVXPYG.js} +12 -12
- package/dist/{chunk-KAG5KXNO.js → chunk-WYPRTHXQ.js} +1 -1
- package/dist/{chunk-YAZQBB2S.js → chunk-XDDBSGBD.js} +1 -1
- package/dist/{chunk-6RFCS4IU.js → chunk-XFXCI4IP.js} +7 -5
- package/dist/{chunk-2Z42EUHG.js → chunk-XQWWFIBR.js} +1 -1
- package/dist/{chunk-H7AJLEBR.js → chunk-XSHJ37U3.js} +3 -3
- package/dist/{chunk-HWMNSWEA.js → chunk-XUDJ5XSQ.js} +2 -2
- package/dist/{chunk-D6BV6TTI.js → chunk-XVVPEWNX.js} +1 -1
- package/dist/chunk-Y5DOT5NQ.js +57 -0
- package/dist/{chunk-HDCVU64B.js → chunk-YDG3OXH3.js} +3 -2
- package/dist/{chunk-H4C3P2KV.js → chunk-YNFHZ4RI.js} +2 -2
- package/dist/{chunk-PVSRPNIV.js → chunk-YSHUIQ3I.js} +2 -2
- package/dist/chunk-YTUPQTXA.js +560 -0
- package/dist/{chunk-262ADJJN.js → chunk-ZOAANTVI.js} +1 -1
- package/dist/{clean-MJBET4EN.js → clean-3IN64RHM.js} +21 -21
- package/dist/cli.js +68 -66
- package/dist/{cloud-WEDQYHZE.js → cloud-LBUZBUP6.js} +4 -4
- package/dist/{cloud-Z4Q76MLS.js → cloud-SVYXHFEG.js} +6 -5
- package/dist/{cloudrun-2KGSRAKA.js → cloudrun-PZOF2QGL.js} +5 -5
- package/dist/{compare-MJKWQOD7.js → compare-UOJ3LXQQ.js} +35 -35
- package/dist/{compiler-ETXRTUQC.js → compiler-5ZDHBKBQ.js} +6 -4
- package/dist/{component-PZGKEJ6L.js → component-EVIPLTTJ.js} +3 -3
- package/dist/{compositions-N3FEEWH7.js → compositions-R4GG5FBO.js} +13 -13
- package/dist/contract/LICENSE-Unicode.txt +39 -0
- package/dist/contract/path-policy.json +311 -0
- package/dist/contract/unicode-15.1.0.json +6179 -0
- package/dist/{curve-MWABBM7Q.js → curve-LR3PSRW3.js} +12 -12
- package/dist/{cuts-BQFSSNY7.js → cuts-DHCOBAFT.js} +13 -13
- package/dist/{delete-HPHGJABK.js → delete-MMGGU3QP.js} +9 -8
- package/dist/{deploy-JY2QOB5F.js → deploy-SKIGUTM2.js} +7 -7
- package/dist/{describeProject-S6AGYZWL.js → describeProject-L7HNTBPV.js} +8 -8
- package/dist/{destroy-AZK7J4IR.js → destroy-5HSMMDH7.js} +6 -6
- package/dist/{diff-XDNFCAU4.js → diff-KR7VKPYL.js} +40 -39
- package/dist/{dist-6EE3Y4M7.js → dist-3MFNUZSN.js} +2 -2
- package/dist/{dist-EYEYDD4F.js → dist-HK3AZNNL.js} +13 -13
- package/dist/{dist-TYGDYK56.js → dist-ZGYPFYOH.js} +2 -2
- package/dist/{doctor-6IRSMKZD.js → doctor-G7VGNSA5.js} +12 -12
- package/dist/{energy-VCJ2FJEF.js → energy-H7EEH6WO.js} +13 -13
- package/dist/{events-QQYBD7JM.js → events-5ATZCZTK.js} +4 -4
- package/dist/{events-DNTIMCUM.js → events-ASG27IXP.js} +15 -15
- package/dist/{events-M6A7BT3V.js → events-YD6N7OPQ.js} +7 -7
- package/dist/execute-OAS454OB.js +109 -0
- package/dist/{extract-X3IVXYHX.js → extract-645SENLA.js} +16 -16
- package/dist/{face-MZHXKBDB.js → face-WRT5XH4I.js} +14 -14
- package/dist/{feedback-TAMGYFUO.js → feedback-3LKLR5MV.js} +15 -14
- package/dist/{ffmpeg-XWPYYYB6.js → ffmpeg-PXKIZL2X.js} +7 -7
- package/dist/{figma-WMD7AR2S.js → figma-RIEVJJBW.js} +3 -3
- package/dist/fontLocalizeCli.js +12 -12
- package/dist/{frames-OU2UOLBU.js → frames-OTB3J5W3.js} +14 -14
- package/dist/{generate-6F6QEFXW.js → generate-IUKCZW2D.js} +27 -26
- package/dist/{get-VVDO7DXG.js → get-6WVQ7TBV.js} +9 -8
- package/dist/{gpuPolicy-CVNSHXHJ.js → gpuPolicy-HXSVAEU4.js} +7 -7
- package/dist/{grade-compare-O6LY2U73.js → grade-compare-TCAYHDEF.js} +37 -37
- package/dist/{heifImagePrep-J6TILZTM.js → heifImagePrep-GXIMK4HK.js} +8 -8
- package/dist/{help-XLSTTDHR.js → help-RGOL5EJD.js} +2 -1
- package/dist/{history-DBCCWBDG.js → history-XKPRGJGS.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +42 -42
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-E46BWAQ7.js → info-EYBBC42V.js} +15 -15
- package/dist/{init-23TG5W7S.js → init-F2FWPSMA.js} +29 -29
- package/dist/{ink-6UFSNJRW.js → ink-BWFERAAT.js} +13 -13
- package/dist/{inspect-RKI6XACH.js → inspect-74N7L3BW.js} +34 -34
- package/dist/{installer-JWPK75BR.js → installer-LOUR7G4R.js} +4 -4
- package/dist/{keyframes-J65V5A2G.js → keyframes-WB5PTKFE.js} +13 -11
- package/dist/{lambda-RZSXXBJU.js → lambda-JYCNXUKB.js} +12 -12
- package/dist/{layout-RJQUOYWB.js → layout-P52EVR24.js} +34 -34
- package/dist/{lint-4TUHKKA2.js → lint-SL55KAS2.js} +12 -12
- package/dist/{lintProject-R6RTBSCZ.js → lintProject-46WU53VC.js} +2 -2
- package/dist/{list-HOD2N4VS.js → list-LN6CQH52.js} +11 -10
- package/dist/{localPage-TC4NC3VL.js → localPage-L6OJU3UH.js} +7 -7
- package/dist/{login-NTOS3HKD.js → login-WTOAMDID.js} +8 -7
- package/dist/{logout-7SMEH7JL.js → logout-QGNBUJKS.js} +14 -5
- package/dist/{look-GC63E2I7.js → look-O6ESLJRP.js} +13 -13
- package/dist/{manager-FICBET24.js → manager-CMEZWENF.js} +8 -8
- package/dist/{measure-WTQCSQ55.js → measure-NEIXU53P.js} +11 -11
- package/dist/{media-treatment-KTZ6X2P2.js → media-treatment-6CAQG7MU.js} +15 -15
- package/dist/{media-use-K75FDXJ3.js → media-use-IXJFMKU7.js} +9 -7
- package/dist/{models-JKOA542M.js → models-TZALWUEY.js} +11 -11
- package/dist/{motionShot-A3TYKTQU.js → motionShot-OQYK6G6M.js} +20 -20
- package/dist/{normalize-audio-7JUM42YB.js → normalize-audio-43PJLOBY.js} +11 -11
- package/dist/oauth-SAVP2YM4.js +40 -0
- package/dist/{open-F6GI4TRA.js → open-EOX6QY4M.js} +13 -13
- package/dist/{parakeetRunner-6XIAKJLS.js → parakeetRunner-STHAXQAF.js} +13 -13
- package/dist/{pipeline-7P7LGGQG.js → pipeline-RRWZHFBQ.js} +10 -10
- package/dist/plan-JWUSMF4W.js +88 -0
- package/dist/{play-DYOZLKWX.js → play-TUKTST32.js} +25 -25
- package/dist/{preflight-VM4HSRBY.js → preflight-L42JKT6F.js} +8 -8
- package/dist/{present-IINIEZJC.js → present-Z7HRDXPV.js} +20 -20
- package/dist/{preview-NJO2UXWJ.js → preview-HGTIRAV3.js} +23 -23
- package/dist/{probe-LQQHFX5Q.js → probe-RXK44FY7.js} +13 -13
- package/dist/{producer-LH2SZHJ2.js → producer-KJ2RZDJ3.js} +1 -1
- package/dist/{projectConfig-BLACFLUW.js → projectConfig-K36NTJXP.js} +6 -6
- package/dist/{publication-NFF2BXIE.js → publication-OZWLT6K6.js} +2 -2
- package/dist/{publish-JST5Y4UR.js → publish-CRUTXNYM.js} +84 -24
- package/dist/{refresh-47T6Z2PK.js → refresh-6ONVQ3WV.js} +4 -3
- package/dist/{remove-background-WUBESLWN.js → remove-background-R37HZPCG.js} +11 -11
- package/dist/{render-R4VNR4E2.js → render-EZMKBT7V.js} +45 -44
- package/dist/{render-DA4V7CEE.js → render-SU2XTMJL.js} +5 -5
- package/dist/{render-4KWUUC5H.js → render-ZHCPCISN.js} +82 -948
- package/dist/{render-batch-JMPG4RLT.js → render-batch-YIUOEAAL.js} +5 -5
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-PNIFIDIE.js → resolver-DLCKRKQR.js} +4 -4
- package/dist/{reverse-4NI7D2C3.js → reverse-4FAVXIER.js} +1 -1
- package/dist/{run-FWBIBLYE.js → run-H4GVEJVS.js} +5 -4
- package/dist/{screenshotCapture-KOLNFU7W.js → screenshotCapture-CQF5FYVI.js} +9 -9
- package/dist/service-XDQOULGD.js +68 -0
- package/dist/share-CUCQALE7.js +274 -0
- package/dist/{sherpa-W3BMN67E.js → sherpa-WZNRQUVC.js} +12 -12
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
- package/dist/{skills-KQQVUFGO.js → skills-J52DBZAK.js} +10 -10
- package/dist/{skillsUpdateCheck-VY5PS46S.js → skillsUpdateCheck-26DJHBTC.js} +4 -4
- package/dist/{snapshot-VIEJQAUB.js → snapshot-ZIRQFDA7.js} +50 -50
- package/dist/{src-MQU5F7GJ.js → src-7BGBN6SS.js} +11 -11
- package/dist/{src-HHPRCLEW.js → src-C3XYMTF4.js} +6 -6
- package/dist/{start-ZBNNVFMU.js → start-QG2XNMYN.js} +25 -24
- package/dist/{staticProjectServer-VPGZWJF4.js → staticProjectServer-TWMEFK3T.js} +18 -18
- package/dist/{status-RBZJYT7T.js → status-3UPA5WPI.js} +19 -17
- package/dist/studio/assets/{codec-Bz1jsLs8.js → codec-qz1-OXLj.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-cdH5Sz_t.js → hyperframes-player-2eG1zFX5.js} +1 -1
- package/dist/studio/assets/{index-dsfjBidg.css → index-BJTCbv8z.css} +1 -1
- package/dist/studio/assets/{index-D1l7izdf.js → index-DDmhnfrS.js} +166 -166
- package/dist/studio/assets/{index-DFRbcd5J.js → index-DUveJ_YP.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-CgV8YB6S.js → pausedVideoDecoder-CoHTKUjM.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-EPZGLIWW.js → studio-api-Z42OO4JJ.js} +13 -13
- package/dist/{studioServer-YFQQ2ESJ.js → studioServer-SMN3RMVL.js} +437 -59
- package/dist/{sync-FRT55PVW.js → sync-ONTI2WSI.js} +13 -13
- package/dist/{telemetry-HAPPFR7P.js → telemetry-RRXALB5D.js} +7 -7
- package/dist/{templates-2IHYIWMA.js → templates-BHFOSD6F.js} +18 -17
- package/dist/{timeline-AY2F7BJF.js → timeline-Z5IHY5TN.js} +20 -20
- package/dist/{tokens-B3G257V3.js → tokens-MZVEPARM.js} +2 -2
- package/dist/{transcribe-RJCILGPA.js → transcribe-5IZS4BGW.js} +29 -28
- package/dist/{transcribe-EGQD32PT.js → transcribe-M5N3YZZU.js} +10 -10
- package/dist/{update-XTFIGQKW.js → update-EVPWBIKY.js} +11 -11
- package/dist/{updateCheck-M6YC52A4.js → updateCheck-2UUEF6TC.js} +5 -3
- package/dist/{upgrade-AKLIZKAO.js → upgrade-DK45FD4K.js} +4 -4
- package/dist/{urlDownloader-57A7Q7FC.js → urlDownloader-3MPHIDSA.js} +6 -6
- package/dist/{validate-YWSXJL54.js → validate-W27TQ367.js} +28 -28
- package/dist/{video-I5DDNK3Y.js → video-TI372QGV.js} +8 -8
- package/dist/{voices-IBMJU73H.js → voices-FZV4PGT6.js} +24 -23
- package/dist/warmCheck.js +44 -44
- package/package.json +2 -1
|
@@ -4,26 +4,9 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
deliveryFlagArgs,
|
|
9
|
-
parseDeliveryFlags
|
|
10
|
-
} from "./chunk-Y3YHDU7T.js";
|
|
11
|
-
import {
|
|
12
|
-
hasExplicitCompositionArg,
|
|
13
|
-
resolveCompositionEntryArg
|
|
14
|
-
} from "./chunk-G7PITEUH.js";
|
|
15
|
-
import {
|
|
16
|
-
parseEnumFlag
|
|
17
|
-
} from "./chunk-2B2IMLUQ.js";
|
|
18
7
|
import {
|
|
19
8
|
maybePromptRenderFeedback
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
reportVariableIssues,
|
|
23
|
-
resolveVariablesArg,
|
|
24
|
-
validateVariablesAgainstProject
|
|
25
|
-
} from "./chunk-TZH6HNZH.js";
|
|
26
|
-
import "./chunk-ZBAF6L74.js";
|
|
9
|
+
} from "./chunk-MDBEAWP2.js";
|
|
27
10
|
import {
|
|
28
11
|
RenderLockBusy,
|
|
29
12
|
RenderLockStaleBreak,
|
|
@@ -32,23 +15,35 @@ import {
|
|
|
32
15
|
describeRenderLockHolder,
|
|
33
16
|
renderJobObservabilityTelemetryPayload,
|
|
34
17
|
startRenderCpuSampler
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import {
|
|
37
|
-
formatLintStartupMessage
|
|
38
|
-
} from "./chunk-T6VQGCN3.js";
|
|
18
|
+
} from "./chunk-23354HMA.js";
|
|
39
19
|
import {
|
|
40
20
|
desktopHint
|
|
41
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VZQXHYEI.js";
|
|
42
22
|
import {
|
|
43
23
|
runEnvironmentChecks
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-ZIYXPDKY.js";
|
|
24
|
+
} from "./chunk-3J32XVJ6.js";
|
|
46
25
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
26
|
+
executeRenderPlan,
|
|
27
|
+
renderLintContinuationHint,
|
|
28
|
+
runRenderLint
|
|
29
|
+
} from "./chunk-JCJJCYCP.js";
|
|
30
|
+
import "./chunk-T6VQGCN3.js";
|
|
31
|
+
import "./chunk-PNP2BO3U.js";
|
|
32
|
+
import {
|
|
33
|
+
createRenderPlan,
|
|
34
|
+
resolveBrowserGpuForCli
|
|
35
|
+
} from "./chunk-YTUPQTXA.js";
|
|
36
|
+
import "./chunk-G7PITEUH.js";
|
|
37
|
+
import "./chunk-2B2IMLUQ.js";
|
|
38
|
+
import {
|
|
39
|
+
deliveryFlagArgs
|
|
40
|
+
} from "./chunk-R45WFVRA.js";
|
|
41
|
+
import "./chunk-ZBAF6L74.js";
|
|
42
|
+
import "./chunk-ZIYXPDKY.js";
|
|
43
|
+
import "./chunk-3S27CPV7.js";
|
|
49
44
|
import {
|
|
50
45
|
createRenderCancellationScope
|
|
51
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-XVVPEWNX.js";
|
|
52
47
|
import {
|
|
53
48
|
H264EncoderUnavailableError,
|
|
54
49
|
chromeLaunchRemediation,
|
|
@@ -56,47 +51,40 @@ import {
|
|
|
56
51
|
findFFmpeg,
|
|
57
52
|
findFFprobe,
|
|
58
53
|
getFFmpegInstallHint
|
|
59
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-MP36L7OJ.js";
|
|
60
55
|
import {
|
|
61
56
|
markRenderSucceeded,
|
|
62
57
|
runPostRenderStep,
|
|
63
58
|
runPostRenderStepAsync
|
|
64
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-CHCMXYER.js";
|
|
65
60
|
import {
|
|
66
61
|
RenderQualityError,
|
|
67
62
|
extractSafeRenderErrorCode
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-4FTJE22M.js";
|
|
70
|
-
import "./chunk-RCRUWNQ4.js";
|
|
71
|
-
import "./chunk-X6DWLN55.js";
|
|
63
|
+
} from "./chunk-4US5QCXR.js";
|
|
72
64
|
import "./chunk-X7MTZ4T2.js";
|
|
73
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-4FTJE22M.js";
|
|
74
66
|
import "./chunk-FI4I7CME.js";
|
|
67
|
+
import "./chunk-T3GSTIBS.js";
|
|
68
|
+
import "./chunk-L6BFXQ6S.js";
|
|
69
|
+
import "./chunk-BZ56MTDX.js";
|
|
75
70
|
import {
|
|
76
71
|
captureArtifactRevision
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-
|
|
72
|
+
} from "./chunk-HMB3IAVP.js";
|
|
73
|
+
import "./chunk-XQWWFIBR.js";
|
|
79
74
|
import "./chunk-X7MTZ4T2.js";
|
|
80
|
-
import {
|
|
81
|
-
loadProducer
|
|
82
|
-
} from "./chunk-6NNLDCX4.js";
|
|
83
75
|
import "./chunk-REJ4NIBY.js";
|
|
84
|
-
import {
|
|
85
|
-
resolveProject
|
|
86
|
-
} from "./chunk-HDCVU64B.js";
|
|
87
76
|
import {
|
|
88
77
|
windowsChromeCrashRemediation
|
|
89
78
|
} from "./chunk-262C25DQ.js";
|
|
90
|
-
import {
|
|
91
|
-
parseGifLoopArg,
|
|
92
|
-
parseHlsSegmentSecondsArg,
|
|
93
|
-
resolveBrowserTimeoutMsArg,
|
|
94
|
-
resolveDefaultFpsArg
|
|
95
|
-
} from "./chunk-BA3EQ2KL.js";
|
|
96
79
|
import {
|
|
97
80
|
resolveGsapVendorDir
|
|
98
|
-
} from "./chunk-
|
|
99
|
-
import
|
|
81
|
+
} from "./chunk-2QTGQGYA.js";
|
|
82
|
+
import {
|
|
83
|
+
loadProducer
|
|
84
|
+
} from "./chunk-UE2WSWNA.js";
|
|
85
|
+
import "./chunk-YDG3OXH3.js";
|
|
86
|
+
import "./chunk-I35B5RWZ.js";
|
|
87
|
+
import "./chunk-2KYLVWLO.js";
|
|
100
88
|
import "./chunk-3L2POG2J.js";
|
|
101
89
|
import {
|
|
102
90
|
recordRenderSuccess,
|
|
@@ -113,35 +101,29 @@ import {
|
|
|
113
101
|
import "./chunk-WXOOAAT4.js";
|
|
114
102
|
import "./chunk-EHZESMRB.js";
|
|
115
103
|
import {
|
|
116
|
-
loadProjectConfig,
|
|
117
|
-
readProjectConfigWithStatus,
|
|
118
104
|
seedProjectAuthoringSkill
|
|
119
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-SOAQ3XXB.js";
|
|
120
106
|
import "./chunk-XT7X6QCP.js";
|
|
121
107
|
import "./chunk-GBIASKIH.js";
|
|
122
|
-
import
|
|
123
|
-
|
|
124
|
-
} from "./chunk-HVW7ABXD.js";
|
|
125
|
-
import "./chunk-AWT5FHTN.js";
|
|
108
|
+
import "./chunk-HVW7ABXD.js";
|
|
109
|
+
import "./chunk-W5PW26KE.js";
|
|
126
110
|
import "./chunk-JHOCK3DG.js";
|
|
127
|
-
import "./chunk-
|
|
128
|
-
import "./chunk-
|
|
111
|
+
import "./chunk-RCB4SGTB.js";
|
|
112
|
+
import "./chunk-76KUCQXD.js";
|
|
129
113
|
import "./chunk-AWDFDFI3.js";
|
|
130
114
|
import "./chunk-P6LJ4Y32.js";
|
|
131
115
|
import "./chunk-D3UCUI7G.js";
|
|
132
116
|
import "./chunk-G2XAFJ2B.js";
|
|
133
117
|
import {
|
|
134
|
-
renderMotionBlurResult,
|
|
135
118
|
renderMotionBlurTelemetryPayload,
|
|
136
119
|
trackRenderComplete,
|
|
137
120
|
trackRenderError,
|
|
138
|
-
trackRenderObservation
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
import "./chunk-PVSRPNIV.js";
|
|
121
|
+
trackRenderObservation
|
|
122
|
+
} from "./chunk-ADYMQM7T.js";
|
|
123
|
+
import "./chunk-YSHUIQ3I.js";
|
|
142
124
|
import "./chunk-PXVQOMKL.js";
|
|
143
125
|
import "./chunk-MCDNAIFF.js";
|
|
144
|
-
import "./chunk-
|
|
126
|
+
import "./chunk-DMW5SSUN.js";
|
|
145
127
|
import {
|
|
146
128
|
defineCommand
|
|
147
129
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -157,31 +139,21 @@ import "./chunk-EVMY7IPL.js";
|
|
|
157
139
|
import {
|
|
158
140
|
CaptureFailure,
|
|
159
141
|
EXTRACT_CACHE_DIR_DISABLED_ALIASES,
|
|
160
|
-
MAX_VP9_CPU_USED,
|
|
161
|
-
MIN_VP9_CPU_USED,
|
|
162
|
-
PRORES_PROFILES,
|
|
163
|
-
REFERENCE_BACKGROUND_FIELD,
|
|
164
142
|
audioFailureDiagnostics,
|
|
165
|
-
isVideoFrameFormat,
|
|
166
|
-
referenceBackgroundResult,
|
|
167
143
|
sandboxDeniedRemediation
|
|
168
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-2TBW7UOF.js";
|
|
169
145
|
import "./chunk-Z5J67X44.js";
|
|
170
146
|
import "./chunk-5S7W3TUO.js";
|
|
171
147
|
import "./chunk-D3MUHMFG.js";
|
|
172
|
-
import "./chunk-
|
|
148
|
+
import "./chunk-KIAY63AB.js";
|
|
173
149
|
import "./chunk-IEEIPTDW.js";
|
|
174
150
|
import "./chunk-3GXQPCJC.js";
|
|
175
151
|
import {
|
|
176
|
-
DISTRIBUTED_FPS,
|
|
177
|
-
formatRenderOutputTimestamp,
|
|
178
152
|
fpsToFfmpegArg,
|
|
179
|
-
fpsToNumber
|
|
180
|
-
|
|
181
|
-
parseFps
|
|
182
|
-
} from "./chunk-3367VNGK.js";
|
|
153
|
+
fpsToNumber
|
|
154
|
+
} from "./chunk-EX7WPDFA.js";
|
|
183
155
|
import "./chunk-FXMKHHPO.js";
|
|
184
|
-
import "./chunk-
|
|
156
|
+
import "./chunk-XDDBSGBD.js";
|
|
185
157
|
import "./chunk-VC76R6W2.js";
|
|
186
158
|
import "./chunk-HZTRKUKE.js";
|
|
187
159
|
import "./chunk-RQVDTPGD.js";
|
|
@@ -189,25 +161,16 @@ import "./chunk-BMDABBHG.js";
|
|
|
189
161
|
import {
|
|
190
162
|
killOrphanedProcessesForRender
|
|
191
163
|
} from "./chunk-PV4XID2A.js";
|
|
192
|
-
import
|
|
193
|
-
|
|
194
|
-
} from "./chunk-X6JUUQCM.js";
|
|
195
|
-
import {
|
|
196
|
-
hasDefinitiveEntryMismatch
|
|
197
|
-
} from "./chunk-Q5X2B5WT.js";
|
|
164
|
+
import "./chunk-X6JUUQCM.js";
|
|
165
|
+
import "./chunk-Q5X2B5WT.js";
|
|
198
166
|
import "./chunk-KGPLIH7B.js";
|
|
199
167
|
import {
|
|
200
168
|
bytesToMb
|
|
201
169
|
} from "./chunk-FOZBANEN.js";
|
|
202
170
|
import "./chunk-K4MJX7SR.js";
|
|
203
171
|
import "./chunk-WE42NVH7.js";
|
|
204
|
-
import
|
|
205
|
-
|
|
206
|
-
shouldBlockRender
|
|
207
|
-
} from "./chunk-VB3JZKMN.js";
|
|
208
|
-
import {
|
|
209
|
-
collectSubCompositionSrcs
|
|
210
|
-
} from "./chunk-WVRAFHJU.js";
|
|
172
|
+
import "./chunk-CNJLBAKM.js";
|
|
173
|
+
import "./chunk-K2Z6OXEI.js";
|
|
211
174
|
import {
|
|
212
175
|
FFMPEG_PATH_ENV
|
|
213
176
|
} from "./chunk-KRWPTZBY.js";
|
|
@@ -215,8 +178,6 @@ import "./chunk-FBN2M2HK.js";
|
|
|
215
178
|
import "./chunk-6MKM2RVL.js";
|
|
216
179
|
import {
|
|
217
180
|
checkOutputResolutionCompatibility,
|
|
218
|
-
isAspectAgnosticResolutionAlias,
|
|
219
|
-
normalizeResolutionFlag,
|
|
220
181
|
suggestMatchingPreset
|
|
221
182
|
} from "./chunk-N7C7U3ZR.js";
|
|
222
183
|
import "./chunk-FR7YBU3H.js";
|
|
@@ -237,20 +198,18 @@ import {
|
|
|
237
198
|
import {
|
|
238
199
|
isDevMode
|
|
239
200
|
} from "./chunk-ISN5GRYI.js";
|
|
240
|
-
import "./chunk-GR2E54E6.js";
|
|
241
201
|
import "./chunk-ADVVQX4I.js";
|
|
202
|
+
import "./chunk-GR2E54E6.js";
|
|
242
203
|
import {
|
|
243
204
|
failCommand,
|
|
244
|
-
failUsage,
|
|
245
205
|
requestCliExit,
|
|
246
|
-
scheduleCliExit
|
|
247
|
-
setCommandExitCode
|
|
206
|
+
scheduleCliExit
|
|
248
207
|
} from "./chunk-66W5IWLO.js";
|
|
249
208
|
import "./chunk-CPHQTXP5.js";
|
|
250
209
|
import "./chunk-QBXDU24O.js";
|
|
251
210
|
import {
|
|
252
211
|
VERSION
|
|
253
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-45ZQI734.js";
|
|
254
213
|
import {
|
|
255
214
|
normalizeErrorMessage
|
|
256
215
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -260,504 +219,11 @@ import "./chunk-7KDQAD2W.js";
|
|
|
260
219
|
import "./chunk-M2WBOQ2Q.js";
|
|
261
220
|
|
|
262
221
|
// src/commands/render.ts
|
|
263
|
-
import { mkdtempSync, readdirSync, readFileSync as
|
|
264
|
-
|
|
265
|
-
// src/commands/render/plan.ts
|
|
266
|
-
import { statSync } from "fs";
|
|
267
|
-
import { dirname, join, resolve as resolve2 } from "path";
|
|
268
|
-
|
|
269
|
-
// src/utils/catalogUsage.ts
|
|
270
|
-
import { readFileSync } from "fs";
|
|
271
|
-
import { isAbsolute, relative, resolve } from "path";
|
|
272
|
-
var EMPTY = Object.freeze({
|
|
273
|
-
installed: [],
|
|
274
|
-
usedBlocks: [],
|
|
275
|
-
manifestUnreadable: false
|
|
276
|
-
});
|
|
277
|
-
var UNREADABLE = Object.freeze({
|
|
278
|
-
installed: [],
|
|
279
|
-
usedBlocks: [],
|
|
280
|
-
manifestUnreadable: true
|
|
281
|
-
});
|
|
282
|
-
var MAX_VISITED_FILES = 250;
|
|
283
|
-
var MAX_HTML_BYTES = 20 * 1024 * 1024;
|
|
284
|
-
var REGISTRY_ITEM_NAME = /^[a-z0-9][a-z0-9-]{0,63}$/;
|
|
285
|
-
function reachableCompositions(projectDir, entryPath) {
|
|
286
|
-
const seen = /* @__PURE__ */ new Set();
|
|
287
|
-
const queue = [resolve(entryPath)];
|
|
288
|
-
while (queue.length > 0 && seen.size < MAX_VISITED_FILES) {
|
|
289
|
-
const current = queue.shift();
|
|
290
|
-
if (seen.has(current)) continue;
|
|
291
|
-
seen.add(current);
|
|
292
|
-
let html;
|
|
293
|
-
try {
|
|
294
|
-
html = readFileSync(current, "utf-8");
|
|
295
|
-
} catch {
|
|
296
|
-
continue;
|
|
297
|
-
}
|
|
298
|
-
if (html.length > MAX_HTML_BYTES) continue;
|
|
299
|
-
for (const src of collectSubCompositionSrcs(html)) {
|
|
300
|
-
queue.push(resolve(projectDir, src));
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
return seen;
|
|
304
|
-
}
|
|
305
|
-
function isReached(projectDir, target, reachable) {
|
|
306
|
-
if (isAbsolute(target)) return false;
|
|
307
|
-
const abs = resolve(projectDir, target);
|
|
308
|
-
if (relative(projectDir, abs).startsWith("..")) return false;
|
|
309
|
-
return reachable.has(abs);
|
|
310
|
-
}
|
|
311
|
-
function reportableNames(names) {
|
|
312
|
-
return [...new Set(names.filter((name) => REGISTRY_ITEM_NAME.test(name)))].sort();
|
|
313
|
-
}
|
|
314
|
-
function summarizeCatalogUsage(projectDir, entryPath) {
|
|
315
|
-
const { status, config } = readProjectConfigWithStatus(projectDir);
|
|
316
|
-
if (status === "unreadable") return UNREADABLE;
|
|
317
|
-
const items = config?.registryItems ?? [];
|
|
318
|
-
if (items.length === 0) return EMPTY;
|
|
319
|
-
const installed = reportableNames(items.map((item) => item.name));
|
|
320
|
-
if (installed.length === 0) return EMPTY;
|
|
321
|
-
const reachable = reachableCompositions(projectDir, entryPath);
|
|
322
|
-
const usedBlocks = reportableNames(
|
|
323
|
-
items.filter(
|
|
324
|
-
(item) => item.type === "hyperframes:block" && isReached(projectDir, item.target, reachable)
|
|
325
|
-
).map((item) => item.name)
|
|
326
|
-
);
|
|
327
|
-
return { installed, usedBlocks, manifestUnreadable: false };
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
// src/commands/render/plan.ts
|
|
331
|
-
var QUALITY_ALIASES = {
|
|
332
|
-
draft: { quality: "draft" },
|
|
333
|
-
standard: { quality: "standard" },
|
|
334
|
-
high: { quality: "high" },
|
|
335
|
-
looks: { quality: "standard", crf: 16 },
|
|
336
|
-
delivery: { quality: "high" }
|
|
337
|
-
};
|
|
338
|
-
var RENDER_FORMATS = ["mp4", "webm", "mov", "png-sequence", "gif", "hls"];
|
|
339
|
-
var VALID_FORMAT = new Set(RENDER_FORMATS);
|
|
340
|
-
var RENDER_FORMAT_LABEL = "mp4, webm, mov, png-sequence, gif, or hls";
|
|
341
|
-
var DEFAULT_HLS_SEGMENT_SECONDS = 4;
|
|
342
|
-
var FORMAT_EXT = {
|
|
343
|
-
mp4: ".mp4",
|
|
344
|
-
webm: ".webm",
|
|
345
|
-
mov: ".mov",
|
|
346
|
-
"png-sequence": "",
|
|
347
|
-
gif: ".gif",
|
|
348
|
-
// Directory output, like png-sequence: playlists and .ts segments go inside.
|
|
349
|
-
hls: ""
|
|
350
|
-
};
|
|
351
|
-
function formatFpsParseError(input, reason) {
|
|
352
|
-
switch (reason) {
|
|
353
|
-
case "empty":
|
|
354
|
-
return "Frame rate must not be empty.";
|
|
355
|
-
case "not-a-number":
|
|
356
|
-
return `Got "${input}". Frame rate must be an integer (e.g. 30) or a rational (e.g. 30000/1001 for NTSC).`;
|
|
357
|
-
case "non-positive":
|
|
358
|
-
return `Got "${input}". Frame rate must be greater than zero.`;
|
|
359
|
-
case "out-of-range":
|
|
360
|
-
return `Got "${input}". Frame rate must be in the range 1\u2013240.`;
|
|
361
|
-
case "invalid-fraction":
|
|
362
|
-
return `Got "${input}". Rational frame rates must be two positive integers separated by '/' (e.g. 30000/1001).`;
|
|
363
|
-
case "ambiguous-decimal":
|
|
364
|
-
return `Got "${input}". Decimal frame rates are ambiguous \u2014 use the exact rational form instead (e.g. 30000/1001 for 29.97).`;
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
function parseRenderFormat(input) {
|
|
368
|
-
if (!VALID_FORMAT.has(input)) return void 0;
|
|
369
|
-
return RENDER_FORMATS.find((format) => format === input);
|
|
370
|
-
}
|
|
371
|
-
function parseRenderRange(args, format, fps, hdr) {
|
|
372
|
-
if (args.start === void 0 && args.end === void 0) return void 0;
|
|
373
|
-
const seconds = (flag, raw) => {
|
|
374
|
-
const parsed = raw.trim() === "" ? Number.NaN : Number(raw);
|
|
375
|
-
if (!Number.isFinite(parsed) || parsed < 0) {
|
|
376
|
-
errorBox(`Invalid ${flag}`, `Got "${raw}". Must be a number of seconds, 0 or more.`);
|
|
377
|
-
failUsage();
|
|
378
|
-
}
|
|
379
|
-
return parsed;
|
|
380
|
-
};
|
|
381
|
-
const startSeconds = args.start === void 0 ? 0 : seconds("--start", args.start);
|
|
382
|
-
const endSeconds = args.end === void 0 ? void 0 : seconds("--end", args.end);
|
|
383
|
-
if (endSeconds !== void 0 && endSeconds <= startSeconds) {
|
|
384
|
-
errorBox("Invalid range", `--end (${endSeconds}) must be after --start (${startSeconds}).`);
|
|
385
|
-
failUsage();
|
|
386
|
-
}
|
|
387
|
-
const limit = rangeLimit(format, fps, hdr);
|
|
388
|
-
if (limit) {
|
|
389
|
-
errorBox(
|
|
390
|
-
"A range renders what chunked renders can",
|
|
391
|
-
limit,
|
|
392
|
-
"Remove --start/--end to render the whole film."
|
|
393
|
-
);
|
|
394
|
-
failUsage();
|
|
395
|
-
}
|
|
396
|
-
return { startSeconds, endSeconds };
|
|
397
|
-
}
|
|
398
|
-
function rangeLimit(format, fps, hdr) {
|
|
399
|
-
if (format !== "mp4") return `--start/--end render MP4 only, not ${format}.`;
|
|
400
|
-
if (fps.den !== 1 || !isDistributedFps(fps.num)) {
|
|
401
|
-
return `--start/--end need a whole frame rate in ${DISTRIBUTED_FPS.join(", ")}, not ${fps.num}/${fps.den}.`;
|
|
402
|
-
}
|
|
403
|
-
if (hdr) return "--start/--end render SDR only, not --hdr.";
|
|
404
|
-
return void 0;
|
|
405
|
-
}
|
|
406
|
-
function positiveInteger(raw, title, message, min = 1) {
|
|
407
|
-
const parsed = Number(raw);
|
|
408
|
-
if (!Number.isInteger(parsed) || parsed < min) {
|
|
409
|
-
errorBox(title, message);
|
|
410
|
-
failUsage();
|
|
411
|
-
}
|
|
412
|
-
return parsed;
|
|
413
|
-
}
|
|
414
|
-
var HF_ENV_OVERRIDE_RE = /^(HF|HYPERFRAMES)_/;
|
|
415
|
-
var MAX_REPORTED_ENV_OVERRIDES = 20;
|
|
416
|
-
var CLI_INTERNAL_HF_ENV_KEYS = /* @__PURE__ */ new Set(["HF_SHADER_WORKER_ENTRY"]);
|
|
417
|
-
function resolveHfEnvOverrides() {
|
|
418
|
-
return Object.keys(process.env).filter((name) => HF_ENV_OVERRIDE_RE.test(name) && !CLI_INTERNAL_HF_ENV_KEYS.has(name)).sort().slice(0, MAX_REPORTED_ENV_OVERRIDES);
|
|
419
|
-
}
|
|
420
|
-
function parseChromaSubsamplingArg(args, format) {
|
|
421
|
-
const raw = args["chroma-subsampling"] ?? "420";
|
|
422
|
-
if (raw !== "420" && raw !== "444") {
|
|
423
|
-
errorBox("Invalid chroma-subsampling", `Got "${raw}". Must be 420 or 444.`);
|
|
424
|
-
failUsage();
|
|
425
|
-
}
|
|
426
|
-
if (raw === "420") return raw;
|
|
427
|
-
const conflict = format !== "mp4" ? `--format ${format}` : args.gpu ? "--gpu" : args.hdr ? "--hdr" : void 0;
|
|
428
|
-
if (conflict) {
|
|
429
|
-
errorBox(
|
|
430
|
-
"Unsupported 4:4:4 output",
|
|
431
|
-
`--chroma-subsampling 444 cannot be combined with ${conflict}. 4:4:4 needs SDR MP4 from the software encoder (libx264).`,
|
|
432
|
-
`Drop ${conflict}, or drop --chroma-subsampling 444.`
|
|
433
|
-
);
|
|
434
|
-
failUsage();
|
|
435
|
-
}
|
|
436
|
-
return raw;
|
|
437
|
-
}
|
|
438
|
-
function createRenderPlan(args, now = /* @__PURE__ */ new Date()) {
|
|
439
|
-
const pageMotionBlur = parseEnumFlag(args["page-motion-blur"], ["off"], {
|
|
440
|
-
flag: "--page-motion-blur"
|
|
441
|
-
});
|
|
442
|
-
const hfEnvOverrides = resolveHfEnvOverrides();
|
|
443
|
-
const hasExplicitComposition = hasExplicitCompositionArg(args.composition);
|
|
444
|
-
const project = resolveProject(args.dir, { requireIndex: !hasExplicitComposition });
|
|
445
|
-
const entryFile = resolveCompositionEntryArg(args.composition, project.dir, statSync);
|
|
446
|
-
const renderTarget = entryFile ? resolve2(project.dir, entryFile) : project.indexPath;
|
|
447
|
-
const fpsArg = resolveDefaultFpsArg(args.fps, project.dir, project.indexPath, entryFile);
|
|
448
|
-
const fpsParse = parseFps(fpsArg ?? "30");
|
|
449
|
-
if (!fpsParse.ok) {
|
|
450
|
-
errorBox("Invalid fps", formatFpsParseError(fpsArg ?? "30", fpsParse.reason));
|
|
451
|
-
failUsage();
|
|
452
|
-
}
|
|
453
|
-
let fps = fpsParse.value;
|
|
454
|
-
const qualityRaw = args.quality ?? "looks";
|
|
455
|
-
if (!(qualityRaw in QUALITY_ALIASES)) {
|
|
456
|
-
errorBox(
|
|
457
|
-
"Invalid quality",
|
|
458
|
-
`Got "${qualityRaw}". Must be draft, looks, delivery, standard, or high.`
|
|
459
|
-
);
|
|
460
|
-
failUsage();
|
|
461
|
-
}
|
|
462
|
-
const qualityAlias = QUALITY_ALIASES[qualityRaw];
|
|
463
|
-
const quality = qualityAlias.quality;
|
|
464
|
-
const flagSkill = normalizeSkillSlug(args.skill);
|
|
465
|
-
const projectConfigSkill = loadProjectConfig(project.dir).authoringSkill;
|
|
466
|
-
const authoringSkill = flagSkill ?? projectConfigSkill;
|
|
467
|
-
const invalidAuthoringSkill = typeof args.skill === "string" && args.skill.trim() !== "" && !flagSkill ? args.skill : void 0;
|
|
468
|
-
const authoringSkillSource = flagSkill ? "flag" : projectConfigSkill ? "project-config" : void 0;
|
|
469
|
-
const catalogUsage = summarizeCatalogUsage(project.dir, renderTarget);
|
|
470
|
-
const formatRaw = args.format ?? "mp4";
|
|
471
|
-
const format = parseRenderFormat(formatRaw);
|
|
472
|
-
if (!format) {
|
|
473
|
-
errorBox("Invalid format", `Got "${formatRaw}". Must be ${RENDER_FORMAT_LABEL}.`);
|
|
474
|
-
failUsage();
|
|
475
|
-
}
|
|
476
|
-
let gifFpsCapped = false;
|
|
477
|
-
if (format === "gif" && fpsToNumber(fps) > 30) {
|
|
478
|
-
fps = { num: 30, den: 1 };
|
|
479
|
-
gifFpsCapped = true;
|
|
480
|
-
}
|
|
481
|
-
const gifLoopParse = parseGifLoopArg(args["gif-loop"]);
|
|
482
|
-
if (!gifLoopParse.ok) {
|
|
483
|
-
errorBox("Invalid gif-loop", gifLoopParse.message);
|
|
484
|
-
failUsage();
|
|
485
|
-
}
|
|
486
|
-
const gifLoop = gifLoopParse.value ?? (format === "gif" ? 0 : void 0);
|
|
487
|
-
const hlsSegmentParse = parseHlsSegmentSecondsArg(args["hls-segment-seconds"]);
|
|
488
|
-
if (!hlsSegmentParse.ok) {
|
|
489
|
-
errorBox("Invalid hls-segment-seconds", hlsSegmentParse.message);
|
|
490
|
-
failUsage();
|
|
491
|
-
}
|
|
492
|
-
const hlsSegmentSeconds = format === "hls" ? hlsSegmentParse.value ?? DEFAULT_HLS_SEGMENT_SECONDS : void 0;
|
|
493
|
-
const chromaSubsampling = parseChromaSubsamplingArg(args, format);
|
|
494
|
-
const videoFrameFormatRaw = args["video-frame-format"] ?? "auto";
|
|
495
|
-
if (!isVideoFrameFormat(videoFrameFormatRaw)) {
|
|
496
|
-
errorBox(
|
|
497
|
-
"Invalid video-frame-format",
|
|
498
|
-
`Got "${videoFrameFormatRaw}". Must be auto, jpg, or png.`
|
|
499
|
-
);
|
|
500
|
-
failUsage();
|
|
501
|
-
}
|
|
502
|
-
let outputResolution;
|
|
503
|
-
let outputResolutionAspectAgnostic = false;
|
|
504
|
-
if (args.resolution !== void 0) {
|
|
505
|
-
outputResolution = normalizeResolutionFlag(args.resolution);
|
|
506
|
-
if (!outputResolution) {
|
|
507
|
-
errorBox(
|
|
508
|
-
"Invalid resolution",
|
|
509
|
-
`Got "${args.resolution}". Must be one of: landscape, portrait, landscape-4k, portrait-4k, square, square-4k, landscape-1440p, portrait-1440p, square-1440p (or aliases 1080p, 4k, uhd, 1440p, qhd, 1080p-square, square-1080p, 4k-square, 1440p-portrait, 1440p-square).`
|
|
510
|
-
);
|
|
511
|
-
failUsage();
|
|
512
|
-
}
|
|
513
|
-
outputResolutionAspectAgnostic = isAspectAgnosticResolutionAlias(args.resolution);
|
|
514
|
-
if (args.hdr) {
|
|
515
|
-
errorBox(
|
|
516
|
-
"Conflicting flags",
|
|
517
|
-
"--resolution cannot be combined with --hdr. The HDR pipeline composites at composition dimensions and does not yet support supersampling.",
|
|
518
|
-
"Render in two passes: HDR at composition resolution, then upscale separately with ffmpeg."
|
|
519
|
-
);
|
|
520
|
-
failUsage();
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
if (args.hdr && args.sdr) {
|
|
524
|
-
errorBox("Conflicting flags", "--hdr and --sdr are mutually exclusive.");
|
|
525
|
-
failUsage();
|
|
526
|
-
}
|
|
527
|
-
if (format === "hls" && args.hdr) {
|
|
528
|
-
errorBox(
|
|
529
|
-
"Unsupported HLS output",
|
|
530
|
-
"--hdr cannot be combined with --format hls. HLS output is SDR only (H.264 + AAC in MPEG-TS); HDR10 would need fMP4 segments and HEVC.",
|
|
531
|
-
"Render HDR to MP4, or drop --hdr."
|
|
532
|
-
);
|
|
533
|
-
failUsage();
|
|
534
|
-
}
|
|
535
|
-
if (format === "hls" && args.gpu) {
|
|
536
|
-
errorBox(
|
|
537
|
-
"Unsupported HLS output",
|
|
538
|
-
"--gpu cannot be combined with --format hls. Fixed-length segments require the software encoder's forced-keyframe lock, which GPU encoders ignore.",
|
|
539
|
-
"Re-run without --gpu."
|
|
540
|
-
);
|
|
541
|
-
failUsage();
|
|
542
|
-
}
|
|
543
|
-
const workers = args.workers != null && args.workers !== "auto" ? positiveInteger(
|
|
544
|
-
args.workers,
|
|
545
|
-
"Invalid workers",
|
|
546
|
-
`Got "${args.workers}". Must be a positive number or "auto".`
|
|
547
|
-
) : void 0;
|
|
548
|
-
const protocolTimeout = args["protocol-timeout"] != null ? positiveInteger(
|
|
549
|
-
args["protocol-timeout"],
|
|
550
|
-
"Invalid protocol-timeout",
|
|
551
|
-
`Got "${args["protocol-timeout"]}". Must be a number >= 1000 (ms).`,
|
|
552
|
-
1e3
|
|
553
|
-
) : void 0;
|
|
554
|
-
const playerReadyTimeout = args["player-ready-timeout"] != null ? positiveInteger(
|
|
555
|
-
args["player-ready-timeout"],
|
|
556
|
-
"Invalid player-ready-timeout",
|
|
557
|
-
`Got "${args["player-ready-timeout"]}". Must be a number >= 1000 (ms).`,
|
|
558
|
-
1e3
|
|
559
|
-
) : void 0;
|
|
560
|
-
const environment = {};
|
|
561
|
-
if (args["page-side-compositing"] === false) environment.HF_PAGE_SIDE_COMPOSITING = "false";
|
|
562
|
-
if (args["low-memory-mode"] != null) {
|
|
563
|
-
environment.PRODUCER_LOW_MEMORY_MODE = args["low-memory-mode"] ? "true" : "false";
|
|
564
|
-
}
|
|
565
|
-
if (args["experimental-fast-capture"] != null) {
|
|
566
|
-
environment.PRODUCER_EXPERIMENTAL_FAST_CAPTURE = args["experimental-fast-capture"] ? "true" : "false";
|
|
567
|
-
}
|
|
568
|
-
if (typeof args["frames-cache-dir"] === "string" && args["frames-cache-dir"].trim() !== "") {
|
|
569
|
-
const raw = args["frames-cache-dir"].trim();
|
|
570
|
-
const normalized = raw.toLowerCase();
|
|
571
|
-
const isDisableAlias = EXTRACT_CACHE_DIR_DISABLED_ALIASES.includes(normalized);
|
|
572
|
-
environment.HYPERFRAMES_EXTRACT_CACHE_DIR = isDisableAlias ? raw : resolve2(raw);
|
|
573
|
-
}
|
|
574
|
-
if (args["max-concurrent-renders"] != null) {
|
|
575
|
-
const parsed = positiveInteger(
|
|
576
|
-
args["max-concurrent-renders"],
|
|
577
|
-
"Invalid max-concurrent-renders",
|
|
578
|
-
`Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
|
|
579
|
-
);
|
|
580
|
-
if (parsed > 10) {
|
|
581
|
-
errorBox(
|
|
582
|
-
"Invalid max-concurrent-renders",
|
|
583
|
-
`Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
|
|
584
|
-
);
|
|
585
|
-
failUsage();
|
|
586
|
-
}
|
|
587
|
-
environment.PRODUCER_MAX_CONCURRENT_RENDERS = String(parsed);
|
|
588
|
-
}
|
|
589
|
-
const batchPath = typeof args.batch === "string" && args.batch.trim() !== "" ? args.batch.trim() : void 0;
|
|
590
|
-
if (batchPath && (args.variables != null || args["variables-file"] != null)) {
|
|
591
|
-
errorBox(
|
|
592
|
-
"Conflicting variables flags",
|
|
593
|
-
"Use either --batch or --variables/--variables-file, not both."
|
|
594
|
-
);
|
|
595
|
-
failUsage();
|
|
596
|
-
}
|
|
597
|
-
if (!batchPath && args["batch-concurrency"] != null) {
|
|
598
|
-
errorBox("Invalid batch-concurrency", "--batch-concurrency requires --batch.");
|
|
599
|
-
failUsage();
|
|
600
|
-
}
|
|
601
|
-
if (!batchPath && args["batch-fail-fast"]) {
|
|
602
|
-
errorBox("Invalid batch-fail-fast", "--batch-fail-fast requires --batch.");
|
|
603
|
-
failUsage();
|
|
604
|
-
}
|
|
605
|
-
const batchConcurrency = args["batch-concurrency"] != null ? positiveInteger(
|
|
606
|
-
args["batch-concurrency"],
|
|
607
|
-
"Invalid batch-concurrency",
|
|
608
|
-
`Got "${args["batch-concurrency"]}". Must be a positive integer.`
|
|
609
|
-
) : 1;
|
|
610
|
-
const rendersDir = join(project.dir, "renders");
|
|
611
|
-
const ext = FORMAT_EXT[format];
|
|
612
|
-
const timestamp = formatRenderOutputTimestamp(now);
|
|
613
|
-
const batchOutputTemplate = args.output ? args.output : join(rendersDir, `${project.name}_${timestamp}_{index}${ext}`);
|
|
614
|
-
const outputPath = args.output ? resolve2(args.output) : join(rendersDir, `${project.name}_${timestamp}${ext}`);
|
|
615
|
-
const useDocker = args.docker ?? false;
|
|
616
|
-
const useGpu = args.gpu ?? false;
|
|
617
|
-
const browserGpuMode = resolveBrowserGpuForCli(useDocker, args["browser-gpu"]);
|
|
618
|
-
if (useDocker && args["browser-gpu"] === true) {
|
|
619
|
-
errorBox(
|
|
620
|
-
"Browser GPU is local-only",
|
|
621
|
-
"--browser-gpu uses the host Chrome GPU backend. Docker mode keeps browser rendering deterministic and does not expose a cross-platform Chrome GPU backend.",
|
|
622
|
-
"Run without --docker, or use --gpu for Docker GPU encoding where your Docker host supports GPU passthrough."
|
|
623
|
-
);
|
|
624
|
-
failUsage();
|
|
625
|
-
}
|
|
626
|
-
const videoBitrate = args["video-bitrate"]?.trim();
|
|
627
|
-
if (args.crf != null && videoBitrate) {
|
|
628
|
-
errorBox("Conflicting encoder settings", "Use either --crf or --video-bitrate, not both.");
|
|
629
|
-
failUsage();
|
|
630
|
-
}
|
|
631
|
-
const crf = args.crf != null ? positiveInteger(
|
|
632
|
-
args.crf,
|
|
633
|
-
"Invalid crf",
|
|
634
|
-
`Got "${args.crf}". Must be a non-negative integer.`,
|
|
635
|
-
0
|
|
636
|
-
) : format === "mov" || args["video-bitrate"] ? void 0 : "crf" in qualityAlias ? qualityAlias.crf : void 0;
|
|
637
|
-
let vp9CpuUsed;
|
|
638
|
-
if (args["vp9-cpu-used"] != null) {
|
|
639
|
-
const parsed = Number(args["vp9-cpu-used"]);
|
|
640
|
-
if (!Number.isInteger(parsed) || parsed < MIN_VP9_CPU_USED || parsed > MAX_VP9_CPU_USED) {
|
|
641
|
-
errorBox(
|
|
642
|
-
"Invalid vp9-cpu-used",
|
|
643
|
-
`Got "${args["vp9-cpu-used"]}". Must be an integer between ${MIN_VP9_CPU_USED} and ${MAX_VP9_CPU_USED}.`
|
|
644
|
-
);
|
|
645
|
-
failUsage();
|
|
646
|
-
}
|
|
647
|
-
vp9CpuUsed = parsed;
|
|
648
|
-
}
|
|
649
|
-
if (args["video-bitrate"] != null && !videoBitrate) {
|
|
650
|
-
errorBox(
|
|
651
|
-
"Invalid video-bitrate",
|
|
652
|
-
`Got "${args["video-bitrate"]}". Must be a non-empty bitrate such as "10M".`
|
|
653
|
-
);
|
|
654
|
-
failUsage();
|
|
655
|
-
}
|
|
656
|
-
if (format === "mov" && (crf !== void 0 || videoBitrate !== void 0)) {
|
|
657
|
-
const flag = crf !== void 0 ? "--crf" : "--video-bitrate";
|
|
658
|
-
errorBox(
|
|
659
|
-
"Unsupported ProRes rate control",
|
|
660
|
-
`${flag} does not apply to MOV. MOV rate is set by the ProRes profile; see --prores-profile.`,
|
|
661
|
-
`Remove ${flag}, or choose MP4/WebM when you need CRF or target-bitrate control.`
|
|
662
|
-
);
|
|
663
|
-
failUsage();
|
|
664
|
-
}
|
|
665
|
-
const delivery = parseDeliveryFlags(args);
|
|
666
|
-
const { proresProfile, ...mp4Delivery } = delivery;
|
|
667
|
-
if (proresProfile !== void 0 && format !== "mov") {
|
|
668
|
-
errorBox(
|
|
669
|
-
"ProRes profile applies to MOV",
|
|
670
|
-
`--prores-profile sets the ProRes profile of a MOV file, not ${format}.`,
|
|
671
|
-
"Remove it, or render --format mov."
|
|
672
|
-
);
|
|
673
|
-
failUsage();
|
|
674
|
-
}
|
|
675
|
-
if (Object.keys(mp4Delivery).length > 0 && format !== "mp4") {
|
|
676
|
-
errorBox(
|
|
677
|
-
"Delivery options apply to MP4",
|
|
678
|
-
"--keyframe-interval, --max-bitrate and --buffer-size set how the MP4 encoder delivers the file.",
|
|
679
|
-
"Remove them, or render --format mp4."
|
|
680
|
-
);
|
|
681
|
-
failUsage();
|
|
682
|
-
}
|
|
683
|
-
const range = parseRenderRange(args, format, fps, args.hdr);
|
|
684
|
-
const quiet = args.quiet ?? false;
|
|
685
|
-
const batchJson = args.json ?? false;
|
|
686
|
-
return Object.freeze({
|
|
687
|
-
project,
|
|
688
|
-
entryFile,
|
|
689
|
-
renderTarget,
|
|
690
|
-
fps,
|
|
691
|
-
quality,
|
|
692
|
-
authoringSkill,
|
|
693
|
-
invalidAuthoringSkill,
|
|
694
|
-
authoringSkillSource,
|
|
695
|
-
catalogUsage,
|
|
696
|
-
format,
|
|
697
|
-
gifLoop,
|
|
698
|
-
gifFpsCapped,
|
|
699
|
-
hlsSegmentSeconds,
|
|
700
|
-
videoFrameFormat: videoFrameFormatRaw,
|
|
701
|
-
pageMotionBlur,
|
|
702
|
-
outputResolution,
|
|
703
|
-
outputResolutionAspectAgnostic,
|
|
704
|
-
outputResolutionRaw: args.resolution,
|
|
705
|
-
workers,
|
|
706
|
-
protocolTimeout,
|
|
707
|
-
playerReadyTimeout,
|
|
708
|
-
pageNavigationTimeoutMs: resolveBrowserTimeoutMsArg(args["browser-timeout"]),
|
|
709
|
-
batchPath,
|
|
710
|
-
batchConcurrency,
|
|
711
|
-
batchFailFast: args["batch-fail-fast"] ?? false,
|
|
712
|
-
batchOutputTemplate,
|
|
713
|
-
outputPath,
|
|
714
|
-
useDocker,
|
|
715
|
-
useGpu,
|
|
716
|
-
browserGpuMode,
|
|
717
|
-
quiet,
|
|
718
|
-
lintVerbose: args["lint-verbose"] ?? false,
|
|
719
|
-
debug: args.debug ?? false,
|
|
720
|
-
resumeSegments: args.resume ?? false,
|
|
721
|
-
keepSegments: args["keep-segments"] ?? false,
|
|
722
|
-
bestEffort: args["best-effort"] ?? true,
|
|
723
|
-
waitForRenderSlot: args.wait ?? true,
|
|
724
|
-
batchJson,
|
|
725
|
-
effectiveQuiet: quiet || batchJson,
|
|
726
|
-
strictAll: args["strict-all"] ?? false,
|
|
727
|
-
strictErrors: (args.strict ?? false) || (args["strict-all"] ?? false),
|
|
728
|
-
crf,
|
|
729
|
-
vp9CpuUsed,
|
|
730
|
-
videoBitrate,
|
|
731
|
-
...delivery,
|
|
732
|
-
range,
|
|
733
|
-
chromaSubsampling,
|
|
734
|
-
hdrMode: args.sdr ? "force-sdr" : args.hdr ? "force-hdr" : "auto",
|
|
735
|
-
pageSideCompositing: args["page-side-compositing"] !== false,
|
|
736
|
-
experimentalFastCapture: args["experimental-fast-capture"] === true,
|
|
737
|
-
variablesArg: args.variables,
|
|
738
|
-
variablesFileArg: args["variables-file"],
|
|
739
|
-
strictVariables: args["strict-variables"] ?? false,
|
|
740
|
-
environment: Object.freeze(environment),
|
|
741
|
-
hfEnvOverrides
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
function applyRenderEnvironment(plan) {
|
|
745
|
-
for (const [key, value] of Object.entries(plan.environment)) process.env[key] = value;
|
|
746
|
-
}
|
|
747
|
-
function renderOutputDirectory(plan) {
|
|
748
|
-
return dirname(plan.outputPath);
|
|
749
|
-
}
|
|
750
|
-
function resolveBrowserGpuForCli(useDocker, browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
751
|
-
if (useDocker) return "software";
|
|
752
|
-
if (browserGpuArg === true) return "hardware";
|
|
753
|
-
if (browserGpuArg === false) return "software";
|
|
754
|
-
if (envMode === "hardware" || envMode === "software" || envMode === "auto") return envMode;
|
|
755
|
-
return "auto";
|
|
756
|
-
}
|
|
222
|
+
import { mkdtempSync, readdirSync, readFileSync as readFileSync2, statSync, writeFileSync, rmSync } from "fs";
|
|
757
223
|
|
|
758
224
|
// src/commands/render/present.ts
|
|
759
225
|
import { cpus } from "os";
|
|
760
|
-
import { readFileSync
|
|
226
|
+
import { readFileSync } from "fs";
|
|
761
227
|
async function presentRenderPlan(plan) {
|
|
762
228
|
await presentRenderWarnings(plan);
|
|
763
229
|
if (plan.effectiveQuiet || plan.batchPath) return;
|
|
@@ -805,7 +271,7 @@ function formatGpuModes(plan) {
|
|
|
805
271
|
async function warnForSlideshow(plan) {
|
|
806
272
|
try {
|
|
807
273
|
const { slideshowIslandRegex } = await import("./slideshow-ARJR22W4.js");
|
|
808
|
-
if (!slideshowIslandRegex("i").test(
|
|
274
|
+
if (!slideshowIslandRegex("i").test(readFileSync(plan.renderTarget, "utf8"))) return;
|
|
809
275
|
console.log(
|
|
810
276
|
c.warn("\u26A0") + " This composition carries a slideshow island \u2014 `render` captures only the first scene, so the MP4 will be truncated to slide 1. Use " + c.accent("hyperframes present") + " for the deck; a linear main-line MP4 export is not yet available."
|
|
811
277
|
);
|
|
@@ -844,341 +310,9 @@ async function acquireRenderSlot(plan, signal, lock = {}) {
|
|
|
844
310
|
}
|
|
845
311
|
}
|
|
846
312
|
|
|
847
|
-
// src/commands/render/execute.ts
|
|
848
|
-
import { readFileSync as readFileSync3 } from "fs";
|
|
849
|
-
import { tmpdir } from "os";
|
|
850
|
-
|
|
851
|
-
// src/ui/renderResult.ts
|
|
852
|
-
function renderMachineResult(result, quiet) {
|
|
853
|
-
if (quiet || process.stdout.isTTY || process.env.HYPERFRAMES_STDOUT_IS_TTY === "1") return;
|
|
854
|
-
const hasBackground = REFERENCE_BACKGROUND_FIELD in result;
|
|
855
|
-
if (!hasBackground && !result.motionBlur) return;
|
|
856
|
-
const line = {
|
|
857
|
-
version: 1,
|
|
858
|
-
operation: "render",
|
|
859
|
-
...hasBackground ? referenceBackgroundResult(result[REFERENCE_BACKGROUND_FIELD]) : {},
|
|
860
|
-
...result.motionBlur ? { motion_blur: renderMotionBlurResult(result.motionBlur) } : {}
|
|
861
|
-
};
|
|
862
|
-
process.stdout.write(`@hf-result ${JSON.stringify(line)}
|
|
863
|
-
`);
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
// src/commands/render/execute.ts
|
|
867
|
-
function renderLintContinuationHint(strictErrors) {
|
|
868
|
-
return strictErrors ? " Continuing render despite lint warnings. Use --strict-all to block warnings." : " Continuing render despite lint issues. Use --strict to block errors.";
|
|
869
|
-
}
|
|
870
|
-
function renderLintShouldAbort(strictErrors, strictAll, lintResult, definitiveEntryMismatch) {
|
|
871
|
-
return definitiveEntryMismatch || shouldBlockRender(strictErrors, strictAll, lintResult.totalErrors, lintResult.totalWarnings);
|
|
872
|
-
}
|
|
873
|
-
async function executeRenderPlan(plan, dependencies, cancellation) {
|
|
874
|
-
assertRenderActive(cancellation);
|
|
875
|
-
applyRenderEnvironment(plan);
|
|
876
|
-
if (!plan.batchPath) makeOutputFolder(renderOutputDirectory(plan));
|
|
877
|
-
let batchModule;
|
|
878
|
-
let preparedBatch;
|
|
879
|
-
if (plan.batchPath) {
|
|
880
|
-
batchModule = await import("./batchRender-VBSYVQA7.js");
|
|
881
|
-
try {
|
|
882
|
-
preparedBatch = batchModule.prepareBatchRender({
|
|
883
|
-
batchPath: plan.batchPath,
|
|
884
|
-
outputTemplate: plan.batchOutputTemplate,
|
|
885
|
-
indexPath: plan.renderTarget,
|
|
886
|
-
strictVariables: plan.strictVariables,
|
|
887
|
-
quiet: plan.quiet || plan.batchJson,
|
|
888
|
-
json: plan.batchJson
|
|
889
|
-
});
|
|
890
|
-
} catch (error) {
|
|
891
|
-
batchModule.exitBatchRenderInputError(error);
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
const variables = plan.batchPath ? void 0 : resolveVariablesArg(plan.variablesArg, plan.variablesFileArg);
|
|
895
|
-
await runRenderLint(plan, lintProject, cancellation?.signal);
|
|
896
|
-
assertRenderActive(cancellation);
|
|
897
|
-
if (!plan.useDocker) await refuseLowDiskBeforeBrowserDownload(plan);
|
|
898
|
-
const browserPath = plan.useDocker ? void 0 : await ensureRenderBrowser(plan, cancellation?.signal);
|
|
899
|
-
assertRenderActive(cancellation);
|
|
900
|
-
await runResolutionPreflight(plan, dependencies.checkResolution);
|
|
901
|
-
assertRenderActive(cancellation);
|
|
902
|
-
const releaseSlot = await dependencies.acquireRenderSlot?.(plan, cancellation?.signal);
|
|
903
|
-
try {
|
|
904
|
-
assertRenderActive(cancellation);
|
|
905
|
-
await executeHeldRender(plan, browserPath, variables, dependencies, cancellation, {
|
|
906
|
-
batchModule,
|
|
907
|
-
preparedBatch
|
|
908
|
-
});
|
|
909
|
-
} finally {
|
|
910
|
-
releaseSlot?.();
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
async function executeHeldRender(plan, browserPath, variables, dependencies, cancellation, batch) {
|
|
914
|
-
const { batchModule, preparedBatch } = batch;
|
|
915
|
-
if (plan.batchPath && batchModule && preparedBatch) {
|
|
916
|
-
await executeBatchRender(
|
|
917
|
-
plan,
|
|
918
|
-
browserPath,
|
|
919
|
-
batchModule,
|
|
920
|
-
preparedBatch,
|
|
921
|
-
dependencies,
|
|
922
|
-
cancellation
|
|
923
|
-
);
|
|
924
|
-
return;
|
|
925
|
-
}
|
|
926
|
-
reportSingleRenderNotes(plan, variables);
|
|
927
|
-
const options = renderOptionsFromPlan(plan, browserPath, variables);
|
|
928
|
-
const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
|
|
929
|
-
const result = await execute(plan.project.dir, plan.outputPath, options, cancellation);
|
|
930
|
-
renderMachineResult(result, plan.effectiveQuiet);
|
|
931
|
-
}
|
|
932
|
-
function reportSingleRenderNotes(plan, variables) {
|
|
933
|
-
if (variables && Object.keys(variables).length > 0) {
|
|
934
|
-
const issues = validateVariablesAgainstProject(plan.renderTarget, variables);
|
|
935
|
-
reportVariableIssues(issues, { strict: plan.strictVariables, quiet: plan.effectiveQuiet });
|
|
936
|
-
}
|
|
937
|
-
if (plan.proresProfile && !PRORES_PROFILES[plan.proresProfile].alpha && !plan.effectiveQuiet) {
|
|
938
|
-
console.log(
|
|
939
|
-
c.dim(`ProRes ${plan.proresProfile} has no alpha channel: transparent areas render black.`)
|
|
940
|
-
);
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
function renderOptionsFromPlan(plan, browserPath, variables) {
|
|
944
|
-
const options = {
|
|
945
|
-
fps: plan.fps,
|
|
946
|
-
quality: plan.quality,
|
|
947
|
-
authoringSkill: plan.authoringSkill,
|
|
948
|
-
authoringSkillSource: plan.authoringSkillSource,
|
|
949
|
-
authoringSkillInvalid: plan.invalidAuthoringSkill,
|
|
950
|
-
hfEnvOverrides: plan.hfEnvOverrides,
|
|
951
|
-
catalogUsage: plan.catalogUsage,
|
|
952
|
-
format: plan.format,
|
|
953
|
-
gifLoop: plan.gifLoop,
|
|
954
|
-
gifFpsCapped: plan.gifFpsCapped,
|
|
955
|
-
hlsSegmentSeconds: plan.hlsSegmentSeconds,
|
|
956
|
-
workers: plan.workers,
|
|
957
|
-
gpu: plan.useGpu,
|
|
958
|
-
browserGpuMode: plan.browserGpuMode,
|
|
959
|
-
hdrMode: plan.hdrMode,
|
|
960
|
-
crf: plan.crf,
|
|
961
|
-
vp9CpuUsed: plan.vp9CpuUsed,
|
|
962
|
-
videoBitrate: plan.videoBitrate,
|
|
963
|
-
keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
|
|
964
|
-
range: plan.range,
|
|
965
|
-
proresProfile: plan.proresProfile,
|
|
966
|
-
maxBitrate: plan.maxBitrate,
|
|
967
|
-
bufferSize: plan.bufferSize,
|
|
968
|
-
videoFrameFormat: plan.videoFrameFormat,
|
|
969
|
-
chromaSubsampling: plan.chromaSubsampling,
|
|
970
|
-
pageMotionBlur: plan.pageMotionBlur,
|
|
971
|
-
quiet: plan.effectiveQuiet,
|
|
972
|
-
browserPath,
|
|
973
|
-
debug: plan.debug,
|
|
974
|
-
resumeSegments: plan.resumeSegments,
|
|
975
|
-
keepSegments: plan.keepSegments,
|
|
976
|
-
bestEffort: plan.bestEffort,
|
|
977
|
-
variables,
|
|
978
|
-
entryFile: plan.entryFile,
|
|
979
|
-
outputResolution: plan.outputResolution,
|
|
980
|
-
outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
|
|
981
|
-
outputResolutionRaw: plan.outputResolutionRaw,
|
|
982
|
-
pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
|
|
983
|
-
protocolTimeout: plan.protocolTimeout,
|
|
984
|
-
playerReadyTimeout: plan.playerReadyTimeout,
|
|
985
|
-
exitAfterComplete: true,
|
|
986
|
-
manageDeParallelRouterBreaker: true
|
|
987
|
-
};
|
|
988
|
-
if (plan.useDocker) {
|
|
989
|
-
options.pageSideCompositing = plan.pageSideCompositing;
|
|
990
|
-
options.experimentalFastCapture = plan.experimentalFastCapture;
|
|
991
|
-
}
|
|
992
|
-
return options;
|
|
993
|
-
}
|
|
994
|
-
function assertRenderActive(cancellation) {
|
|
995
|
-
cancellation?.checkAncestors();
|
|
996
|
-
cancellation?.signal.throwIfAborted();
|
|
997
|
-
}
|
|
998
|
-
async function refuseLowDiskBeforeBrowserDownload(plan) {
|
|
999
|
-
const { checkDisk } = await import("./preflight-VM4HSRBY.js");
|
|
1000
|
-
await (await import("./manager-IAXYSRG5.js")).sweepKilledInstalls();
|
|
1001
|
-
const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
|
|
1002
|
-
const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
|
|
1003
|
-
if (low.length === 0) return;
|
|
1004
|
-
for (const check of low) errorBox(check.title ?? "Low disk space", check.detail, check.hint);
|
|
1005
|
-
failCommand();
|
|
1006
|
-
}
|
|
1007
|
-
async function ensureRenderBrowser(plan, signal) {
|
|
1008
|
-
const { ensureBrowser } = await import("./manager-IAXYSRG5.js");
|
|
1009
|
-
let browserSpinner;
|
|
1010
|
-
try {
|
|
1011
|
-
if (plan.effectiveQuiet) {
|
|
1012
|
-
return (await ensureBrowser({ preferManagedChrome: true, signal })).executablePath;
|
|
1013
|
-
}
|
|
1014
|
-
const clack = await import("./prompts-7VQEH645.js");
|
|
1015
|
-
browserSpinner = clack.spinner();
|
|
1016
|
-
browserSpinner.start("Checking browser...");
|
|
1017
|
-
const info = await ensureBrowser({
|
|
1018
|
-
preferManagedChrome: true,
|
|
1019
|
-
signal,
|
|
1020
|
-
onProgress: (downloaded, total) => {
|
|
1021
|
-
if (total <= 0) return;
|
|
1022
|
-
const pct = Math.floor(downloaded / total * 100);
|
|
1023
|
-
browserSpinner?.message(
|
|
1024
|
-
`Downloading Chrome... ${c.progress(pct + "%")} ${c.dim("(" + formatBytes(downloaded) + " / " + formatBytes(total) + ")")}`
|
|
1025
|
-
);
|
|
1026
|
-
}
|
|
1027
|
-
});
|
|
1028
|
-
browserSpinner.stop(c.dim(`Browser: ${info.source}`));
|
|
1029
|
-
return info.executablePath;
|
|
1030
|
-
} catch (error) {
|
|
1031
|
-
browserSpinner?.stop(c.error("Browser not available"));
|
|
1032
|
-
if (signal?.aborted) signal.throwIfAborted();
|
|
1033
|
-
errorBox(
|
|
1034
|
-
"Chrome not found",
|
|
1035
|
-
normalizeErrorMessage(error),
|
|
1036
|
-
"Run: npx hyperframes browser ensure"
|
|
1037
|
-
);
|
|
1038
|
-
failCommand();
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
async function runRenderLint(plan, runLint = lintProject, signal) {
|
|
1042
|
-
const explicitEntry = plan.entryFile ? plan.renderTarget : void 0;
|
|
1043
|
-
const lintResult = signal && runLint === lintProject ? await runRenderLintInOwnedProcess(plan.project.dir, explicitEntry, signal) : await runLint(plan.project.dir, explicitEntry);
|
|
1044
|
-
if (lintResult.totalErrors === 0 && lintResult.totalWarnings === 0) return;
|
|
1045
|
-
const definitiveEntryMismatch = hasDefinitiveEntryMismatch(lintResult);
|
|
1046
|
-
const willAbort = renderLintShouldAbort(
|
|
1047
|
-
plan.strictErrors,
|
|
1048
|
-
plan.strictAll,
|
|
1049
|
-
lintResult,
|
|
1050
|
-
definitiveEntryMismatch
|
|
1051
|
-
);
|
|
1052
|
-
presentRenderLintFindings(lintResult, plan.effectiveQuiet, plan.lintVerbose || willAbort);
|
|
1053
|
-
if (willAbort) {
|
|
1054
|
-
presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch);
|
|
1055
|
-
failCommand();
|
|
1056
|
-
}
|
|
1057
|
-
presentRenderLintContinuation(plan);
|
|
1058
|
-
}
|
|
1059
|
-
async function runRenderLintInOwnedProcess(projectDir, entryFile, signal) {
|
|
1060
|
-
return runRenderSetupWorker(
|
|
1061
|
-
"lint",
|
|
1062
|
-
{ projectDir, entryFile },
|
|
1063
|
-
{
|
|
1064
|
-
signal,
|
|
1065
|
-
maxBufferBytes: 8 * 1024 * 1024
|
|
1066
|
-
}
|
|
1067
|
-
);
|
|
1068
|
-
}
|
|
1069
|
-
function presentRenderLintFindings(lintResult, quiet, lintVerbose) {
|
|
1070
|
-
if (quiet) return;
|
|
1071
|
-
console.log("");
|
|
1072
|
-
for (const line of formatLintStartupMessage(
|
|
1073
|
-
lintResult,
|
|
1074
|
-
lintVerbose ? { kind: "verbose", options: { errorsFirst: true } } : { kind: "summary" }
|
|
1075
|
-
))
|
|
1076
|
-
console.log(line);
|
|
1077
|
-
}
|
|
1078
|
-
function presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch) {
|
|
1079
|
-
const mode = plan.strictAll ? "--strict-all" : "--strict";
|
|
1080
|
-
const counts = `${lintResult.totalErrors} error(s), ${lintResult.totalWarnings} warning(s)`;
|
|
1081
|
-
const findings = lintResult.results.flatMap((entry) => entry.result.findings);
|
|
1082
|
-
const first = findings.find((finding) => finding.severity === "error") ?? findings[0];
|
|
1083
|
-
errorBox(
|
|
1084
|
-
definitiveEntryMismatch ? "Aborting render because the default index.html entry is blank." : `Aborting render due to lint issues in ${mode} mode: ${counts}`,
|
|
1085
|
-
first ? `${first.code}: ${first.message}` : void 0,
|
|
1086
|
-
"Run hyperframes lint for the full list."
|
|
1087
|
-
);
|
|
1088
|
-
}
|
|
1089
|
-
function presentRenderLintContinuation(plan) {
|
|
1090
|
-
if (plan.effectiveQuiet) return;
|
|
1091
|
-
console.log(c.dim(renderLintContinuationHint(plan.strictErrors)));
|
|
1092
|
-
console.log("");
|
|
1093
|
-
}
|
|
1094
|
-
async function runResolutionPreflight(plan, checkResolution) {
|
|
1095
|
-
if (!plan.outputResolution) return;
|
|
1096
|
-
let issue;
|
|
1097
|
-
try {
|
|
1098
|
-
issue = await checkResolution(readFileSync3(plan.renderTarget, "utf8"), plan.outputResolution, {
|
|
1099
|
-
alphaRequested: plan.format === "webm" || plan.format === "mov" || plan.format === "png-sequence",
|
|
1100
|
-
hdrRequested: plan.hdrMode === "force-hdr",
|
|
1101
|
-
aspectAgnostic: plan.outputResolutionAspectAgnostic
|
|
1102
|
-
});
|
|
1103
|
-
} catch {
|
|
1104
|
-
}
|
|
1105
|
-
if (!issue) return;
|
|
1106
|
-
trackRenderPreflightRejected({ kind: issue.kind });
|
|
1107
|
-
errorBox("Output resolution incompatible", issue.message);
|
|
1108
|
-
failCommand();
|
|
1109
|
-
}
|
|
1110
|
-
function batchRowRenderOptions(plan, browserPath) {
|
|
1111
|
-
const batchQuiet = plan.quiet || plan.batchJson;
|
|
1112
|
-
return {
|
|
1113
|
-
fps: plan.fps,
|
|
1114
|
-
quality: plan.quality,
|
|
1115
|
-
authoringSkill: plan.authoringSkill,
|
|
1116
|
-
authoringSkillSource: plan.authoringSkillSource,
|
|
1117
|
-
authoringSkillInvalid: plan.invalidAuthoringSkill,
|
|
1118
|
-
hfEnvOverrides: plan.hfEnvOverrides,
|
|
1119
|
-
catalogUsage: plan.catalogUsage,
|
|
1120
|
-
format: plan.format,
|
|
1121
|
-
gifLoop: plan.gifLoop,
|
|
1122
|
-
gifFpsCapped: plan.gifFpsCapped,
|
|
1123
|
-
hlsSegmentSeconds: plan.hlsSegmentSeconds,
|
|
1124
|
-
workers: plan.workers,
|
|
1125
|
-
gpu: plan.useGpu,
|
|
1126
|
-
browserGpuMode: plan.browserGpuMode,
|
|
1127
|
-
hdrMode: plan.hdrMode,
|
|
1128
|
-
crf: plan.crf,
|
|
1129
|
-
vp9CpuUsed: plan.vp9CpuUsed,
|
|
1130
|
-
videoBitrate: plan.videoBitrate,
|
|
1131
|
-
keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
|
|
1132
|
-
range: plan.range,
|
|
1133
|
-
proresProfile: plan.proresProfile,
|
|
1134
|
-
maxBitrate: plan.maxBitrate,
|
|
1135
|
-
bufferSize: plan.bufferSize,
|
|
1136
|
-
videoFrameFormat: plan.videoFrameFormat,
|
|
1137
|
-
chromaSubsampling: plan.chromaSubsampling,
|
|
1138
|
-
pageMotionBlur: plan.pageMotionBlur,
|
|
1139
|
-
quiet: batchQuiet,
|
|
1140
|
-
browserPath,
|
|
1141
|
-
entryFile: plan.entryFile,
|
|
1142
|
-
outputResolution: plan.outputResolution,
|
|
1143
|
-
outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
|
|
1144
|
-
outputResolutionRaw: plan.outputResolutionRaw,
|
|
1145
|
-
pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
|
|
1146
|
-
protocolTimeout: plan.protocolTimeout,
|
|
1147
|
-
playerReadyTimeout: plan.playerReadyTimeout,
|
|
1148
|
-
debug: plan.debug,
|
|
1149
|
-
resumeSegments: plan.resumeSegments,
|
|
1150
|
-
keepSegments: plan.keepSegments,
|
|
1151
|
-
bestEffort: plan.bestEffort,
|
|
1152
|
-
exitAfterComplete: false,
|
|
1153
|
-
throwOnError: true,
|
|
1154
|
-
skipFeedback: true,
|
|
1155
|
-
desktopHint: false,
|
|
1156
|
-
manageDeParallelRouterBreaker: plan.batchConcurrency <= 1
|
|
1157
|
-
};
|
|
1158
|
-
}
|
|
1159
|
-
async function executeBatchRender(plan, browserPath, batchModule, preparedBatch, dependencies, cancellation) {
|
|
1160
|
-
const batchQuiet = plan.quiet || plan.batchJson;
|
|
1161
|
-
const renderOptionsBase = batchRowRenderOptions(plan, browserPath);
|
|
1162
|
-
const manifest = await batchModule.runBatchRender({
|
|
1163
|
-
prepared: preparedBatch,
|
|
1164
|
-
concurrency: plan.batchConcurrency,
|
|
1165
|
-
failFast: plan.batchFailFast,
|
|
1166
|
-
quiet: batchQuiet,
|
|
1167
|
-
json: plan.batchJson,
|
|
1168
|
-
renderOne: (row) => {
|
|
1169
|
-
assertRenderActive(cancellation);
|
|
1170
|
-
const options = { ...renderOptionsBase, variables: row.variables };
|
|
1171
|
-
if (plan.useDocker) options.pageSideCompositing = plan.pageSideCompositing;
|
|
1172
|
-
const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
|
|
1173
|
-
return execute(plan.project.dir, row.outputPath, options, cancellation);
|
|
1174
|
-
}
|
|
1175
|
-
});
|
|
1176
|
-
if (manifest.failed > 0) setCommandExitCode(1);
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
313
|
// src/commands/render.ts
|
|
1180
|
-
import { freemem, tmpdir
|
|
1181
|
-
import { resolve
|
|
314
|
+
import { freemem, tmpdir } from "os";
|
|
315
|
+
import { resolve, dirname, join, basename } from "path";
|
|
1182
316
|
import { execFileSync as execFileSync2, spawn } from "child_process";
|
|
1183
317
|
|
|
1184
318
|
// src/utils/webmAlphaCheck.ts
|
|
@@ -1944,11 +1078,11 @@ function dockerImageTag(version) {
|
|
|
1944
1078
|
return `${DOCKER_IMAGE_PREFIX}:${version}`;
|
|
1945
1079
|
}
|
|
1946
1080
|
function resolveDockerfilePath() {
|
|
1947
|
-
const builtPath =
|
|
1948
|
-
const devPath =
|
|
1081
|
+
const builtPath = resolve(__dirname, "docker", "Dockerfile.render");
|
|
1082
|
+
const devPath = resolve(__dirname, "..", "src", "docker", "Dockerfile.render");
|
|
1949
1083
|
for (const p of [builtPath, devPath]) {
|
|
1950
1084
|
try {
|
|
1951
|
-
|
|
1085
|
+
statSync(p);
|
|
1952
1086
|
return p;
|
|
1953
1087
|
} catch {
|
|
1954
1088
|
continue;
|
|
@@ -1976,8 +1110,8 @@ function ensureDockerImage(version, platform, quiet) {
|
|
|
1976
1110
|
}
|
|
1977
1111
|
if (!quiet) console.log(c.dim(` Building Docker image: ${tag} (${platform})...`));
|
|
1978
1112
|
const dockerfilePath = resolveDockerfilePath();
|
|
1979
|
-
const tmpDir = mkdtempSync(
|
|
1980
|
-
writeFileSync(
|
|
1113
|
+
const tmpDir = mkdtempSync(join(tmpdir(), "hyperframes-docker-"));
|
|
1114
|
+
writeFileSync(join(tmpDir, "Dockerfile"), readFileSync2(dockerfilePath));
|
|
1981
1115
|
const targetArch = platform === "linux/arm64" ? "arm64" : "amd64";
|
|
1982
1116
|
try {
|
|
1983
1117
|
execFileSync2(
|
|
@@ -2048,12 +1182,12 @@ async function renderDocker(projectDir, outputPath, options) {
|
|
|
2048
1182
|
errorBox(failure.title, failure.message, failure.hint);
|
|
2049
1183
|
failCommand();
|
|
2050
1184
|
}
|
|
2051
|
-
const outputDir =
|
|
1185
|
+
const outputDir = dirname(outputPath);
|
|
2052
1186
|
const outputFilename = basename(outputPath);
|
|
2053
1187
|
const dockerArgs = buildDockerRunArgs({
|
|
2054
1188
|
imageTag,
|
|
2055
|
-
projectDir:
|
|
2056
|
-
outputDir:
|
|
1189
|
+
projectDir: resolve(projectDir),
|
|
1190
|
+
outputDir: resolve(outputDir),
|
|
2057
1191
|
outputFilename,
|
|
2058
1192
|
platform,
|
|
2059
1193
|
hostStdoutIsTty: process.stdout.isTTY === true,
|
|
@@ -2116,7 +1250,7 @@ async function renderDocker(projectDir, outputPath, options) {
|
|
|
2116
1250
|
}
|
|
2117
1251
|
const elapsed = Date.now() - startTime;
|
|
2118
1252
|
const cpuUsage = cpu.stop();
|
|
2119
|
-
markRenderSucceeded();
|
|
1253
|
+
if (!options.embedded) markRenderSucceeded();
|
|
2120
1254
|
await runPostRenderStepAsync(
|
|
2121
1255
|
"recordRenderSuccess",
|
|
2122
1256
|
() => recordRenderSuccess(projectDir, outputPath, "completed", capture).then(() => {
|
|
@@ -2157,7 +1291,7 @@ async function renderDocker(projectDir, outputPath, options) {
|
|
|
2157
1291
|
"warnIfWebmAlphaDropped",
|
|
2158
1292
|
() => warnIfWebmAlphaDropped(outputPath, options.format, options.quiet)
|
|
2159
1293
|
);
|
|
2160
|
-
if (options.exitAfterComplete) scheduleCliExit();
|
|
1294
|
+
if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
|
|
2161
1295
|
return { renderTimeMs: elapsed };
|
|
2162
1296
|
}
|
|
2163
1297
|
async function renderLocal(projectDir, outputPath, options, commandCancellation) {
|
|
@@ -2190,7 +1324,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
|
|
|
2190
1324
|
}
|
|
2191
1325
|
const preflight = await runEnvironmentChecks({
|
|
2192
1326
|
projectDir,
|
|
2193
|
-
diskPaths: [
|
|
1327
|
+
diskPaths: [tmpdir(), dirname(outputPath)],
|
|
2194
1328
|
browserPath: options.browserPath,
|
|
2195
1329
|
includeBrowser: true,
|
|
2196
1330
|
includeDisk: true,
|
|
@@ -2375,7 +1509,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
|
|
|
2375
1509
|
job
|
|
2376
1510
|
);
|
|
2377
1511
|
}
|
|
2378
|
-
markRenderSucceeded();
|
|
1512
|
+
if (!options.embedded) markRenderSucceeded();
|
|
2379
1513
|
await runPostRenderStepAsync(
|
|
2380
1514
|
"recordRenderSuccess",
|
|
2381
1515
|
() => recordRenderSuccess(
|
|
@@ -2426,7 +1560,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
|
|
|
2426
1560
|
})
|
|
2427
1561
|
);
|
|
2428
1562
|
}
|
|
2429
|
-
if (options.exitAfterComplete) scheduleCliExit();
|
|
1563
|
+
if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
|
|
2430
1564
|
const durationMs = job.perfSummary ? Math.round(job.perfSummary.compositionDurationSeconds * 1e3) : void 0;
|
|
2431
1565
|
const outcome = job.outcome === "completed_with_warnings" ? "completed_with_warnings" : "completed";
|
|
2432
1566
|
return {
|
|
@@ -2461,7 +1595,7 @@ async function renderRange(input) {
|
|
|
2461
1595
|
} catch (error) {
|
|
2462
1596
|
handleRenderError(error, options, input.startTime, input.cpu, false, "");
|
|
2463
1597
|
}
|
|
2464
|
-
markRenderSucceeded();
|
|
1598
|
+
if (!options.embedded) markRenderSucceeded();
|
|
2465
1599
|
const elapsed = Date.now() - input.startTime;
|
|
2466
1600
|
input.cpu.stop();
|
|
2467
1601
|
printRenderComplete({
|
|
@@ -2472,7 +1606,7 @@ async function renderRange(input) {
|
|
|
2472
1606
|
quiet: options.quiet,
|
|
2473
1607
|
format: options.format
|
|
2474
1608
|
});
|
|
2475
|
-
if (options.exitAfterComplete) scheduleCliExit();
|
|
1609
|
+
if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
|
|
2476
1610
|
return {
|
|
2477
1611
|
renderTimeMs: elapsed,
|
|
2478
1612
|
...reference,
|
|
@@ -2944,13 +2078,13 @@ function trackRenderMetrics(job, elapsedMs, options, docker, cpuUsage) {
|
|
|
2944
2078
|
}
|
|
2945
2079
|
function readOutputFootprint(outputPath) {
|
|
2946
2080
|
try {
|
|
2947
|
-
const stat =
|
|
2081
|
+
const stat = statSync(outputPath);
|
|
2948
2082
|
if (!stat.isDirectory()) return { fileSize: formatBytes(stat.size), isDirectory: false };
|
|
2949
2083
|
let total = 0;
|
|
2950
2084
|
for (const entry of readdirSync(outputPath, { withFileTypes: true })) {
|
|
2951
2085
|
if (!entry.isFile()) continue;
|
|
2952
2086
|
try {
|
|
2953
|
-
total +=
|
|
2087
|
+
total += statSync(join(outputPath, entry.name)).size;
|
|
2954
2088
|
} catch {
|
|
2955
2089
|
}
|
|
2956
2090
|
}
|