hyperframes 0.9.26 → 0.9.28-alpha.0
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-WBZDU6CI.js → add-WSGJ42KQ.js} +24 -25
- package/dist/{agentPromptGenerator-HOH4K2AF.js → agentPromptGenerator-JTMVHRZN.js} +10 -10
- package/dist/{animatedGifPrep-HEQTZMPU.js → animatedGifPrep-V3FJENRD.js} +9 -9
- package/dist/api.js +53 -52
- package/dist/{appHistory-FVDSCS64.js → appHistory-DLDRURHW.js} +2 -3
- package/dist/{asset-N2BCPNT3.js → asset-6LZTBFS7.js} +6 -6
- package/dist/{assetCataloger-25DZ4ODD.js → assetCataloger-GRGAUHXL.js} +11 -11
- package/dist/{audio-3KDOOANX.js → audio-QCMSKGKQ.js} +39 -38
- package/dist/{auth-JPNSO223.js → auth-TB7AUPRE.js} +7 -7
- package/dist/{autoUpdate-SVH5VA46.js → autoUpdate-G3G7WBJF.js} +6 -6
- package/dist/{avatars-UC6PUVKF.js → avatars-6ILGXRFF.js} +22 -21
- package/dist/{backgroundChecks-R7JQPFEL.js → backgroundChecks-E3VZ7KZN.js} +7 -7
- package/dist/backgroundChecksWorker.js +7 -7
- package/dist/{batchRender-QB3UD3S3.js → batchRender-KWIPFU5Q.js} +9 -9
- package/dist/{beats-4LQCQYU4.js → beats-OBIGBNZA.js} +18 -18
- package/dist/{benchmark-NNGNQLPH.js → benchmark-64IXFBPC.js} +19 -19
- package/dist/{billing-EKSG2MIB.js → billing-3X5BWBTI.js} +26 -26
- package/dist/{browser-3CMPDGDK.js → browser-DZ3XIEFA.js} +17 -17
- package/dist/{bundleWithLocalizedFonts-F6WSRFC6.js → bundleWithLocalizedFonts-PKQN5CMM.js} +4 -4
- package/dist/{capture-PIRDJMFL.js → capture-NTN7O6RZ.js} +28 -29
- package/dist/{capture-RRIOSJI7.js → capture-V7RAUBMG.js} +6 -6
- package/dist/{captureCompositionFrame-PHZ6UESC.js → captureCompositionFrame-KMMB3FVD.js} +20 -20
- package/dist/{captureFile-VIVGKFY4.js → captureFile-O7JMINHC.js} +3 -1
- package/dist/{catalog-6U6DBW2A.js → catalog-YIGPXM7Q.js} +25 -26
- package/dist/{catch-up-CXGXBI5D.js → catch-up-LOGK3VIS.js} +18 -19
- package/dist/{check-4YZZDHXU.js → check-FVXJBA5U.js} +56 -57
- package/dist/{checkAudio-WOI7A4XF.js → checkAudio-FSIRCDM6.js} +21 -21
- package/dist/{checkBrowser-ITUJDOQK.js → checkBrowser-NXRXF73I.js} +49 -50
- package/dist/{chunk-CV3U4IKB.js → chunk-3DVDIXOZ.js} +2 -2
- package/dist/{chunk-6YPQSVVR.js → chunk-3LIMD4YP.js} +1 -1
- package/dist/{chunk-Q6HWIM5T.js → chunk-3MYEF34S.js} +1 -1
- package/dist/{chunk-7N5GNBYP.js → chunk-3Q7LAXFJ.js} +4 -4
- package/dist/chunk-3T6BFAKZ.js +5049 -0
- package/dist/{chunk-KGDXQ7KV.js → chunk-3YP3OQVH.js} +1 -1
- package/dist/{chunk-CP7UNNLN.js → chunk-4OZVFZCO.js} +9 -6
- package/dist/{chunk-CXUT4XVT.js → chunk-54FVSPRH.js} +1 -1
- package/dist/{chunk-BGCZSSZN.js → chunk-5BIHQCC2.js} +4 -4
- package/dist/{chunk-I7P3G2EK.js → chunk-5EYQ222G.js} +3 -3
- package/dist/{chunk-Y7N65M2H.js → chunk-5FI52L2T.js} +7 -3
- package/dist/{chunk-O2YBW4AN.js → chunk-5RETZFNG.js} +8 -8
- package/dist/{chunk-Z4GE5BXC.js → chunk-5SDUQLZ3.js} +4 -3
- package/dist/{chunk-5FFQ7YED.js → chunk-6EZ76UBP.js} +20 -20
- package/dist/{chunk-OHQRQE7F.js → chunk-6MKM2RVL.js} +8 -1
- package/dist/{chunk-Q4IDT5XZ.js → chunk-6NG6PATW.js} +1 -1
- package/dist/{chunk-ADJCNH7M.js → chunk-6ODX6SHY.js} +2 -2
- package/dist/{chunk-LISUH6KH.js → chunk-6OQPKRPJ.js} +1 -1
- package/dist/{chunk-WW7Z2W73.js → chunk-72GTIFAI.js} +20 -1
- package/dist/{chunk-NZTYGWRK.js → chunk-7DGBOZ4N.js} +1 -1
- package/dist/{chunk-VK4PVFTZ.js → chunk-7U2B7OF6.js} +2 -2
- package/dist/{chunk-52YPYXJT.js → chunk-7XHVHBFV.js} +4 -4
- package/dist/{chunk-SDNHWXXF.js → chunk-7ZKUPLMN.js} +18 -18
- package/dist/{chunk-SYYF5SUA.js → chunk-A5CTI6RW.js} +3 -3
- package/dist/{chunk-BPFUMJPR.js → chunk-AHRX3FHF.js} +4 -4
- package/dist/{chunk-4RPJGXWI.js → chunk-AJVYQVDB.js} +2 -2
- package/dist/{chunk-RKIRQ73U.js → chunk-ASMDPTT3.js} +2 -2
- package/dist/{chunk-B2RMMRJB.js → chunk-B4TLQLGI.js} +1 -1
- package/dist/{chunk-PKNU4DEG.js → chunk-BF6RWOUF.js} +5 -7
- package/dist/{chunk-EOVICFGB.js → chunk-BFDNZ2JT.js} +3 -3
- package/dist/{chunk-CYTQNTZM.js → chunk-BI33G4XD.js} +8 -8
- package/dist/{chunk-AZO2YY3U.js → chunk-BIQJKM2O.js} +2 -2
- package/dist/{chunk-P7DCQJ6N.js → chunk-BMDABBHG.js} +1 -1
- package/dist/{chunk-46KZHKVZ.js → chunk-BP75ZLZ5.js} +2 -2
- package/dist/{chunk-ZERXFV4P.js → chunk-C756HYL7.js} +3 -3
- package/dist/{chunk-DIUV6JDR.js → chunk-C7ME7Y45.js} +3 -3
- package/dist/{chunk-54Q3H2UQ.js → chunk-CDNVZEGQ.js} +9 -2
- package/dist/{chunk-C5JKRCSG.js → chunk-CHCMXYER.js} +1 -1
- package/dist/{chunk-WEH3EHVB.js → chunk-CJC6U3E7.js} +4 -4
- package/dist/chunk-DDCFX533.js +387 -0
- package/dist/{chunk-6FDVPIOO.js → chunk-DONVZZLV.js} +1 -1
- package/dist/{chunk-BWRANVIS.js → chunk-DPAC75N5.js} +4 -4
- package/dist/{chunk-AIJMFLLS.js → chunk-E3EIKMUU.js} +3 -3
- package/dist/{chunk-YTF6LBWN.js → chunk-E7YPIP42.js} +2 -2
- package/dist/chunk-EKT2P27A.js +538 -0
- package/dist/chunk-F2FRUMWN.js +3699 -0
- package/dist/{chunk-T2WJO4XM.js → chunk-F2GWIWHN.js} +4 -3
- package/dist/{chunk-CMQZP52Y.js → chunk-F5QBIIFT.js} +6 -1
- package/dist/{chunk-M3JU24AI.js → chunk-FGFVUKPP.js} +1 -1
- package/dist/{chunk-LP7B3JLC.js → chunk-FID757D3.js} +1 -0
- package/dist/{chunk-LAGZGKKN.js → chunk-FOZBANEN.js} +3 -2
- package/dist/{chunk-5YPMCCCA.js → chunk-FRBQ3FIM.js} +1 -1
- package/dist/{chunk-I3XU2Q6N.js → chunk-FW7MDSCQ.js} +5 -5
- package/dist/{chunk-RTV6SDAW.js → chunk-G6CN5UWR.js} +2 -2
- package/dist/{chunk-HW4BZHWD.js → chunk-GN3CCXVU.js} +1 -1
- package/dist/{chunk-ANV4RVES.js → chunk-H3MJLPAC.js} +1 -1
- package/dist/{chunk-UPPOSWBD.js → chunk-HP6IDD33.js} +8 -8
- package/dist/{chunk-52C62IQX.js → chunk-HW325JBH.js} +6 -6
- package/dist/{chunk-SMR2QBOB.js → chunk-HWQ6SNLY.js} +1 -1
- package/dist/{chunk-7H5SDDTD.js → chunk-HYXSD2UA.js} +1 -1
- package/dist/{chunk-33HKMP6U.js → chunk-IEB4IKXF.js} +2 -2
- package/dist/{chunk-A4ZTSQLW.js → chunk-IEXRKKHC.js} +119 -4
- package/dist/{chunk-NBR3RFOK.js → chunk-IMSLXLUI.js} +1 -1
- package/dist/{chunk-IOPE4LJ2.js → chunk-J3X2RZON.js} +1 -1
- package/dist/chunk-JE2YBPC5.js +152 -0
- package/dist/{chunk-DJVONYVS.js → chunk-JEVWAGQP.js} +2 -2
- package/dist/chunk-JJ47LVJ7.js +58 -0
- package/dist/{chunk-M7VAMZQW.js → chunk-JNHJX2BZ.js} +4 -2
- package/dist/{chunk-Y5IO3G5V.js → chunk-JX4BEVC3.js} +35 -35
- package/dist/{chunk-RANSC2AP.js → chunk-K2OQYSDS.js} +14 -14
- package/dist/{chunk-4KQ53P4K.js → chunk-KBF2DIZX.js} +9 -9
- package/dist/{chunk-6DEXJHPV.js → chunk-KFU75UXA.js} +2 -2
- package/dist/{chunk-ETD6Z4CT.js → chunk-KJ5QBEMN.js} +9 -7
- package/dist/{chunk-G7VEYUZ2.js → chunk-LW33P24U.js} +210 -51
- package/dist/{chunk-RCK5GLYA.js → chunk-M7U6JTXF.js} +3 -3
- package/dist/{chunk-RG32F3XB.js → chunk-MBRBEXMF.js} +1 -1
- package/dist/{chunk-TPMBPH73.js → chunk-ME6L6GUF.js} +2 -2
- package/dist/{chunk-BO3R523I.js → chunk-MEVLYDL2.js} +1 -1
- package/dist/{chunk-4H65D2CK.js → chunk-MFSQZ2PR.js} +51 -11
- package/dist/{chunk-CT4R6NKU.js → chunk-MWBRY5HN.js} +3 -3
- package/dist/{chunk-XRLVFSPS.js → chunk-N6NB2WZ4.js} +3 -3
- package/dist/{chunk-XNEAYK2D.js → chunk-NKWJNDKO.js} +6 -6
- package/dist/{chunk-RXRL5CFO.js → chunk-O5G2LEUB.js} +3 -3
- package/dist/{chunk-U6JW263W.js → chunk-PG26KCBX.js} +2 -2
- package/dist/{chunk-FYZFURBN.js → chunk-PQYICV7O.js} +1 -1
- package/dist/{chunk-FLRTT7XS.js → chunk-PWW2DKGL.js} +5 -5
- package/dist/{chunk-W62GJ6S2.js → chunk-Q5J4OO7N.js} +22 -23
- package/dist/{chunk-CF2MLHZJ.js → chunk-Q6TVZY36.js} +3 -3
- package/dist/{chunk-E3V2WHNZ.js → chunk-QMGFXL43.js} +3 -3
- package/dist/{chunk-H6676SHA.js → chunk-QTDTCTGB.js} +6 -4
- package/dist/{chunk-KVVFSUMG.js → chunk-RERVXE6J.js} +5 -9
- package/dist/{chunk-6ELGYAFD.js → chunk-RGINHOAX.js} +23 -5
- package/dist/{chunk-QNV4S6LE.js → chunk-RNUIFYO6.js} +1 -1
- package/dist/{chunk-Y5NX2ID5.js → chunk-RO74CZMK.js} +2 -2
- package/dist/{chunk-3PSPF7V7.js → chunk-RPMPHUOS.js} +7 -7
- package/dist/{chunk-GS4EXK5R.js → chunk-RSZWWTQN.js} +25 -7
- package/dist/{chunk-EQBDKYXR.js → chunk-SWOAB4GM.js} +5 -2
- package/dist/{chunk-MFDNMTOP.js → chunk-T37WJWV2.js} +1 -1
- package/dist/{chunk-TAJ4PPMZ.js → chunk-TF7VWCJM.js} +1 -1
- package/dist/{chunk-SXYRNJBG.js → chunk-U2NESB4H.js} +1 -1
- package/dist/{chunk-WEWXIQPN.js → chunk-U46YQL7E.js} +1 -1
- package/dist/{chunk-CIB4TEE4.js → chunk-UDEFHX4Z.js} +17 -17
- package/dist/{chunk-MAU4K3YN.js → chunk-UF6C3CCP.js} +1 -1
- package/dist/{chunk-IV3JATWQ.js → chunk-UGX3IARM.js} +37 -37
- package/dist/{chunk-FQSX2Y2N.js → chunk-UO6DALBR.js} +10 -6
- package/dist/{chunk-7PZLR2JZ.js → chunk-UPR5TMLG.js} +2 -2
- package/dist/chunk-USTPTY7P.js +51 -0
- package/dist/{chunk-LSAZKSQW.js → chunk-UVZDPGZR.js} +1 -1
- package/dist/{chunk-N66SKEU4.js → chunk-VCNPBW4L.js} +2 -2
- package/dist/chunk-VHXIMBTF.js +343 -0
- package/dist/{chunk-I2I3ARUF.js → chunk-VNKPEYMW.js} +1 -1
- package/dist/{chunk-PZ23EDA5.js → chunk-VSQ5NWCF.js} +24 -2
- package/dist/{chunk-HOCC4J5C.js → chunk-VU4EPKFI.js} +1 -1
- package/dist/{chunk-6YYNEN54.js → chunk-VVGNWH2J.js} +269 -272
- package/dist/{chunk-XH34R2CM.js → chunk-WIJGRX5X.js} +2 -2
- package/dist/{chunk-ZNFYQMFN.js → chunk-WOSVLHQH.js} +1 -1
- package/dist/{chunk-M56EN5Z5.js → chunk-WRN3ZY5P.js} +8 -8
- package/dist/{chunk-YNYNZ36R.js → chunk-WUOMBLQL.js} +2 -2
- package/dist/{chunk-KBHBSWEE.js → chunk-WXEXQLVV.js} +217 -345
- package/dist/{chunk-4FNJ2QNP.js → chunk-WYA575QX.js} +11 -5
- package/dist/{chunk-OHN3OJQQ.js → chunk-X7NFWMWW.js} +1 -1
- package/dist/{chunk-FRBQYFUV.js → chunk-XEPGN46Q.js} +1 -1
- package/dist/{chunk-63SZ5FQL.js → chunk-XGRXNWDK.js} +4 -4
- package/dist/{chunk-52VJYQB4.js → chunk-XMHYE6XY.js} +3 -3
- package/dist/{chunk-QAH3I2PN.js → chunk-YJBGA3W6.js} +5 -5
- package/dist/{chunk-S73RS3QS.js → chunk-YOUHA4KP.js} +11 -9
- package/dist/{chunk-ZUGSYS6H.js → chunk-YPPJJ5ZH.js} +1 -1
- package/dist/{chunk-6AKETDJH.js → chunk-Z2N7XOOB.js} +7 -4
- package/dist/{chunk-OSMSO25W.js → chunk-ZEKQATYP.js} +6 -6
- package/dist/{chunk-VI5AG2YK.js → chunk-ZQLJLORI.js} +8 -8
- package/dist/{clean-CESNOFW4.js → clean-6YCVFT7D.js} +32 -33
- package/dist/cli.js +106 -72
- package/dist/{cloud-KNNA5NNC.js → cloud-BPWS4GJS.js} +7 -7
- package/dist/{cloud-D7DFYONW.js → cloud-TEJ6UVBU.js} +11 -11
- package/dist/{cloudrun-VHHNITZU.js → cloudrun-A7DU7DQE.js} +13 -13
- package/dist/{colors-CRTWLZ5S.js → colors-SS2KTOKM.js} +3 -3
- package/dist/{compare-XWGZQA3A.js → compare-HELNXJLM.js} +48 -49
- package/dist/{compiler-FQXZ5JHO.js → compiler-J43BE6LC.js} +5 -5
- package/dist/{component-B6LFSLBU.js → component-WEC4QGT3.js} +7 -7
- package/dist/{compositions-525OPGMN.js → compositions-RSUPWPK6.js} +21 -21
- package/dist/{contactSheet-RWRMLRZI.js → contactSheet-PZXG3REG.js} +4 -2
- 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-DJ7O5S2Z.js → curve-OK5TBGXV.js} +20 -20
- package/dist/{cuts-3FEOKZF4.js → cuts-S5WHYQZZ.js} +21 -21
- package/dist/{delete-NYTX5VAV.js → delete-5NHJKNWL.js} +18 -18
- package/dist/{deploy-FMWJCCAE.js → deploy-7PLBBXNB.js} +10 -10
- package/dist/{describeProject-73BHU64A.js → describeProject-WVLTYWPG.js} +14 -14
- package/dist/{destroy-6XY4WQWY.js → destroy-IWHFUGJL.js} +7 -7
- package/dist/{deterministicFonts-CEHTAMC7.js → deterministicFonts-UZIF5XZW.js} +4 -2
- package/dist/{diff-23KDGJCM.js → diff-W4EXKV5Q.js} +52 -52
- package/dist/{dist-AOXZZPN7.js → dist-4JHP47NU.js} +3 -3
- package/dist/{dist-GQVNNVG3.js → dist-AUYCAQMA.js} +17 -18
- package/dist/{dist-6FQKCYPL.js → dist-F3Y2XHZL.js} +4 -4
- package/dist/docs/motion-blur.md +1 -1
- package/dist/{docs-WYJSJGSF.js → docs-ZSVK3VZD.js} +3 -3
- package/dist/{doctor-XZ5HNJ6Q.js → doctor-7Y75ZXTU.js} +20 -20
- package/dist/{energy-HGHY2XGU.js → energy-Y4KYLWLZ.js} +19 -19
- package/dist/{events-MLOHGLUP.js → events-3LAHSBBF.js} +16 -14
- package/dist/{events-UFPWOQGG.js → events-67Q5DIRC.js} +9 -9
- package/dist/{events-EWQD3H2H.js → events-TQD3L5FS.js} +23 -23
- package/dist/execute-GFHAD3L6.js +109 -0
- package/dist/{extract-HMDTHBPW.js → extract-6KGIEC76.js} +23 -23
- package/dist/{face-63Y52JXT.js → face-OBEAPOZR.js} +21 -22
- package/dist/{feedback-NX2BHXLA.js → feedback-QTB2UH3Q.js} +22 -21
- package/dist/{ffmpeg-Z5LJ5LYM.js → ffmpeg-4CMA6M2L.js} +9 -9
- package/dist/{figma-KRBH6NCD.js → figma-4ZKDJA4R.js} +6 -6
- package/dist/fontLocalizeCli.js +15 -15
- package/dist/{frames-L4GO5IOK.js → frames-OFLJT4D5.js} +31 -24
- package/dist/{generate-FYK2JEF7.js → generate-LHRF4A3Z.js} +37 -37
- package/dist/{get-6DBWZJIS.js → get-56RYQ7KG.js} +18 -18
- package/dist/{gpuPolicy-IZK7ETZ6.js → gpuPolicy-35XK273G.js} +9 -9
- package/dist/{grade-compare-DMFIEWKO.js → grade-compare-GQVODT4T.js} +49 -50
- package/dist/{heifImagePrep-WT26IRKU.js → heifImagePrep-7WN2QNQM.js} +10 -10
- package/dist/{help-7GR3533A.js → help-E2TKPNJJ.js} +4 -4
- package/dist/{history-OMOIUDSV.js → history-AJ2MSBW6.js} +20 -21
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-E5AMEBHN.js → info-HV43ZADN.js} +23 -23
- package/dist/{init-DRZP3T3W.js → init-OHVVGDSF.js} +44 -42
- package/dist/{ink-63PXDACB.js → ink-IESBIGOE.js} +19 -19
- package/dist/{inspect-XKB4JFEJ.js → inspect-Y7YS3ILY.js} +46 -47
- package/dist/{installer-D7OH77IN.js → installer-AJESSC5Y.js} +8 -8
- package/dist/{keyframes-D4YUT6E3.js → keyframes-XSL7JGAF.js} +18 -18
- package/dist/{lambda-S5GFZOKF.js → lambda-KU65SSVE.js} +23 -23
- package/dist/{layout-4N6AIQJB.js → layout-ORX7QBGL.js} +46 -47
- package/dist/{lint-7I6I4UHH.js → lint-KUGT5YHK.js} +20 -20
- package/dist/{lintProject-KXOX5QXB.js → lintProject-Z6TG3Z34.js} +3 -3
- package/dist/{list-5PWGI2AA.js → list-EB3WYTHH.js} +21 -21
- package/dist/{localPage-OGQ4OTTG.js → localPage-QLGKJQ6X.js} +10 -10
- package/dist/{login-AT3RGU2L.js → login-O5HWEYI4.js} +12 -11
- package/dist/{logout-EKDVIU6Y.js → logout-AHGR3X5U.js} +9 -7
- package/dist/{look-GDIIZRBH.js → look-BPSKQDST.js} +21 -21
- package/dist/{manager-MKDNQ5KZ.js → manager-IAXYSRG5.js} +3 -3
- package/dist/{manager-3VDQLCQM.js → manager-MNOR566P.js} +11 -10
- package/dist/{measure-KWM2A5QD.js → measure-USYFR5EK.js} +16 -13
- package/dist/{media-treatment-4QBXQ3D7.js → media-treatment-5YATQA5D.js} +25 -25
- package/dist/{media-use-LMCTTAMZ.js → media-use-BA245HF5.js} +12 -10
- package/dist/{models-C2DQQIH3.js → models-ST3IIAN2.js} +18 -18
- package/dist/{motionShot-NUX22LWA.js → motionShot-DOIU74HO.js} +26 -26
- package/dist/{normalize-MBNGRVQA.js → normalize-PGMS24I2.js} +3 -1
- package/dist/{normalize-audio-K6LDICR5.js → normalize-audio-PPSCFVKC.js} +19 -19
- package/dist/oauth-KUPQUH6E.js +40 -0
- package/dist/{open-VPKHBPWT.js → open-R2EPWLS6.js} +27 -28
- package/dist/{parakeetRunner-E4534WW7.js → parakeetRunner-Q2SYZVYV.js} +19 -17
- package/dist/{pipeline-JUVHGTAC.js → pipeline-NQ4BI2D7.js} +12 -12
- package/dist/plan-CN2TTIAA.js +88 -0
- package/dist/{play-KBMGOUFL.js → play-J3DJBBXW.js} +38 -39
- package/dist/{policies-EV7XPSQC.js → policies-5G7G26ZX.js} +3 -3
- package/dist/{preflight-2R2MAQIC.js → preflight-DLO6LHGO.js} +13 -13
- package/dist/{present-MS6QCPUK.js → present-MIWYYTIE.js} +31 -32
- package/dist/{preview-BDQMRB6I.js → preview-DEGHLTT6.js} +37 -38
- package/dist/{probe-2OXPOPVD.js → probe-63RJNPIB.js} +19 -19
- package/dist/{producer-PECYJ4WO.js → producer-H7L5TBE4.js} +1 -1
- package/dist/{progress-FWJJMPIQ.js → progress-OOEHTBBU.js} +3 -3
- package/dist/{projectConfig-CZYM3VZF.js → projectConfig-GJL2ZGOU.js} +12 -13
- package/dist/{prompts-27EPTM64.js → prompts-RYVLXI7Q.js} +3 -3
- package/dist/{publication-JIWSYWXN.js → publication-BLLVTVD6.js} +6 -6
- package/dist/{publish-ZKNUSOPR.js → publish-CYPJA7T7.js} +93 -34
- package/dist/{refresh-ZHLUUENK.js → refresh-TB4TNH7R.js} +7 -6
- package/dist/{remove-background-VQ7SFKC5.js → remove-background-KX574FQY.js} +17 -17
- package/dist/{render-JIQF7TIY.js → render-N7PKCVEP.js} +59 -59
- package/dist/{render-753ERHTH.js → render-RUEXLOWE.js} +11 -11
- package/dist/{render-4UHIUXYW.js → render-SHUBWBK4.js} +108 -950
- package/dist/{render-batch-7ZOJOEPJ.js → render-batch-QFGQD5FM.js} +11 -11
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-QQOL74GH.js → resolver-HQIDF3TF.js} +9 -9
- package/dist/{reverse-CC3GYBFW.js → reverse-D2XWX6FV.js} +1 -1
- package/dist/{run-IQLZHH6D.js → run-EVZGKUEX.js} +9 -7
- package/dist/{screenshotCapture-2IJOZZTG.js → screenshotCapture-4JLD2OQZ.js} +11 -11
- package/dist/service-L3K45WOD.js +68 -0
- package/dist/share-7G44HDSY.js +226 -0
- package/dist/{sherpa-GISX4B24.js → sherpa-LU5AOQHV.js} +18 -16
- package/dist/{sites-O7A7G3ZQ.js → sites-NWEJJNAZ.js} +3 -3
- package/dist/skills/hyperframes/SKILL.md +4 -1
- package/dist/skills/hyperframes/references/motion.md +1 -1
- package/dist/skills/hyperframes/references/skill-lifecycle.md +2 -2
- package/dist/skills/hyperframes-cli/SKILL.md +3 -3
- package/dist/skills/hyperframes-cli/references/preview-render.md +20 -0
- package/dist/{skills-VIC2VZZQ.js → skills-KVQ2G6P5.js} +19 -18
- package/dist/{skillsUpdateCheck-SM7RAGJI.js → skillsUpdateCheck-EB54PRMT.js} +7 -7
- package/dist/{snapshot-2ABRVH76.js → snapshot-QWO6OXG3.js} +65 -66
- package/dist/{src-7HHPSUSN.js → src-I3B7LYZM.js} +8 -8
- package/dist/{src-OZI5O5QD.js → src-WMZX5C4A.js} +14 -14
- package/dist/{start-OJ2I4XZP.js → start-ACVZUBZX.js} +50 -37
- package/dist/{staticProjectServer-4YDXULWX.js → staticProjectServer-C6KEOAYY.js} +25 -26
- package/dist/{status-DJEV6OOU.js → status-RYI42XDB.js} +38 -31
- package/dist/studio/assets/{codec-BxQIoYb1.js → codec-D6qbrtZY.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-CPnasNX6.js → hyperframes-player-BVe9IO80.js} +1 -1
- package/dist/studio/assets/{index-BDQdyS01.js → index-BZu8x7Q5.js} +1 -1
- package/dist/studio/assets/{index-QCoqIBrS.js → index-Cl9fSd9I.js} +184 -184
- package/dist/studio/assets/{index-dsfjBidg.css → index-Cq2w6U13.css} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-CUTtHVKV.js → pausedVideoDecoder-DfnHfnL7.js} +1 -1
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-Z3ZDQMO7.js → studio-api-RBURPKYX.js} +17 -18
- package/dist/{studioServer-AYXFWMY2.js → studioServer-J5DYNR6R.js} +445 -78
- package/dist/{sync-ASO6S77T.js → sync-MUKE7NSP.js} +21 -21
- package/dist/{synthesize-GX74JPPZ.js → synthesize-NJKCIPKW.js} +7 -8
- package/dist/{system-FDPS57FU.js → system-W2ZTDOLV.js} +2 -2
- package/dist/{telemetry-BMPRZBBX.js → telemetry-5CLJMTHU.js} +4 -4
- package/dist/{telemetry-AFCV2QLQ.js → telemetry-6MDOWNLT.js} +14 -14
- package/dist/templates/_shared/AGENTS.md +2 -2
- package/dist/templates/_shared/CLAUDE.md +2 -2
- package/dist/{templates-CII6AG7E.js → templates-LWPXN7M2.js} +56 -40
- package/dist/{timeline-DQ5DZUFL.js → timeline-WTBC3J7O.js} +33 -34
- package/dist/{tokens-JS2IMFGF.js → tokens-4NPCCANL.js} +6 -6
- package/dist/{transcribe-WWKYZLEO.js → transcribe-NZJPYTM7.js} +43 -42
- package/dist/{transcribe-LH7S5HSM.js → transcribe-RL7LGXU6.js} +15 -12
- package/dist/{tts-QW53FBKW.js → tts-NANTORLP.js} +6 -6
- package/dist/{update-EE7PVVJY.js → update-DZCGNNOU.js} +20 -19
- package/dist/{updateCheck-KY2HRZZA.js → updateCheck-N3C56RNJ.js} +6 -6
- package/dist/{upgrade-H266K5KB.js → upgrade-RCV7ZF5Z.js} +9 -9
- package/dist/{urlDownloader-TRUJTJTT.js → urlDownloader-SSPDDS4Y.js} +8 -8
- package/dist/{validate-6RDVENOL.js → validate-HQDRN6T3.js} +37 -38
- package/dist/{video-B6HLIKGZ.js → video-FPDBQAXL.js} +14 -14
- package/dist/{voices-RQXHSMIG.js → voices-PMLIXQT4.js} +34 -34
- package/dist/warmCheck.js +56 -57
- package/package.json +2 -1
- package/dist/chunk-ITTVMZ32.js +0 -5035
- package/dist/chunk-YWRUQ7XZ.js +0 -107
- /package/dist/{chunk-43G3Z3HJ.js → chunk-AAENGP3S.js} +0 -0
|
@@ -4,46 +4,41 @@ 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-DJVONYVS.js";
|
|
11
|
-
import {
|
|
12
|
-
hasExplicitCompositionArg,
|
|
13
|
-
resolveCompositionEntryArg
|
|
14
|
-
} from "./chunk-IOPE4LJ2.js";
|
|
15
|
-
import {
|
|
16
|
-
parseEnumFlag
|
|
17
|
-
} from "./chunk-WEWXIQPN.js";
|
|
18
7
|
import {
|
|
19
8
|
maybePromptRenderFeedback
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
reportVariableIssues,
|
|
23
|
-
resolveVariablesArg,
|
|
24
|
-
validateVariablesAgainstProject
|
|
25
|
-
} from "./chunk-7N5GNBYP.js";
|
|
26
|
-
import "./chunk-ZBAF6L74.js";
|
|
9
|
+
} from "./chunk-RPMPHUOS.js";
|
|
27
10
|
import {
|
|
28
11
|
renderJobObservabilityTelemetryPayload,
|
|
29
12
|
startRenderCpuSampler
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
formatLintStartupMessage
|
|
33
|
-
} from "./chunk-B2RMMRJB.js";
|
|
13
|
+
} from "./chunk-U2NESB4H.js";
|
|
34
14
|
import {
|
|
35
15
|
desktopHint
|
|
36
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YJBGA3W6.js";
|
|
37
17
|
import {
|
|
38
18
|
runEnvironmentChecks
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-CXUT4XVT.js";
|
|
19
|
+
} from "./chunk-QMGFXL43.js";
|
|
41
20
|
import {
|
|
42
|
-
|
|
43
|
-
|
|
21
|
+
executeRenderPlan,
|
|
22
|
+
renderLintContinuationHint,
|
|
23
|
+
runRenderLint
|
|
24
|
+
} from "./chunk-DDCFX533.js";
|
|
25
|
+
import "./chunk-B4TLQLGI.js";
|
|
26
|
+
import "./chunk-3Q7LAXFJ.js";
|
|
27
|
+
import {
|
|
28
|
+
createRenderPlan,
|
|
29
|
+
resolveBrowserGpuForCli
|
|
30
|
+
} from "./chunk-EKT2P27A.js";
|
|
31
|
+
import "./chunk-J3X2RZON.js";
|
|
32
|
+
import "./chunk-U46YQL7E.js";
|
|
33
|
+
import {
|
|
34
|
+
deliveryFlagArgs
|
|
35
|
+
} from "./chunk-JEVWAGQP.js";
|
|
36
|
+
import "./chunk-ZBAF6L74.js";
|
|
37
|
+
import "./chunk-54FVSPRH.js";
|
|
38
|
+
import "./chunk-3S27CPV7.js";
|
|
44
39
|
import {
|
|
45
40
|
createRenderCancellationScope
|
|
46
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GN3CCXVU.js";
|
|
47
42
|
import {
|
|
48
43
|
H264EncoderUnavailableError,
|
|
49
44
|
chromeLaunchRemediation,
|
|
@@ -51,51 +46,44 @@ import {
|
|
|
51
46
|
findFFmpeg,
|
|
52
47
|
findFFprobe,
|
|
53
48
|
getFFmpegInstallHint
|
|
54
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-H3MJLPAC.js";
|
|
55
50
|
import {
|
|
56
51
|
markRenderSucceeded,
|
|
57
52
|
runPostRenderStep,
|
|
58
53
|
runPostRenderStepAsync
|
|
59
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-CHCMXYER.js";
|
|
60
55
|
import {
|
|
61
56
|
RenderQualityError,
|
|
62
57
|
extractSafeRenderErrorCode
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-CP7UNNLN.js";
|
|
65
|
-
import "./chunk-ZERXFV4P.js";
|
|
66
|
-
import "./chunk-XRLVFSPS.js";
|
|
58
|
+
} from "./chunk-VVGNWH2J.js";
|
|
67
59
|
import "./chunk-X7MTZ4T2.js";
|
|
68
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-4OZVFZCO.js";
|
|
69
61
|
import "./chunk-FI4I7CME.js";
|
|
62
|
+
import "./chunk-C756HYL7.js";
|
|
63
|
+
import "./chunk-N6NB2WZ4.js";
|
|
64
|
+
import "./chunk-BZ56MTDX.js";
|
|
70
65
|
import {
|
|
71
66
|
alive,
|
|
72
67
|
captureArtifactRevision,
|
|
73
68
|
readHolder,
|
|
74
69
|
release
|
|
75
|
-
} from "./chunk-
|
|
76
|
-
import "./chunk-
|
|
70
|
+
} from "./chunk-5EYQ222G.js";
|
|
71
|
+
import "./chunk-ASMDPTT3.js";
|
|
77
72
|
import "./chunk-X7MTZ4T2.js";
|
|
78
|
-
import {
|
|
79
|
-
loadProducer
|
|
80
|
-
} from "./chunk-SMR2QBOB.js";
|
|
81
|
-
import {
|
|
82
|
-
resolveProject
|
|
83
|
-
} from "./chunk-33HKMP6U.js";
|
|
84
73
|
import {
|
|
85
74
|
windowsChromeCrashRemediation
|
|
86
75
|
} from "./chunk-262C25DQ.js";
|
|
87
76
|
import {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
import "./chunk-4RPJGXWI.js";
|
|
77
|
+
loadProducer
|
|
78
|
+
} from "./chunk-HWQ6SNLY.js";
|
|
79
|
+
import "./chunk-IEB4IKXF.js";
|
|
80
|
+
import "./chunk-DPAC75N5.js";
|
|
81
|
+
import "./chunk-AJVYQVDB.js";
|
|
94
82
|
import "./chunk-3L2POG2J.js";
|
|
95
83
|
import {
|
|
96
84
|
recordRenderSuccess,
|
|
97
85
|
registerRenderOutput
|
|
98
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-BF6RWOUF.js";
|
|
99
87
|
import "./chunk-ALVXFXUG.js";
|
|
100
88
|
import {
|
|
101
89
|
errorBox,
|
|
@@ -104,118 +92,91 @@ import {
|
|
|
104
92
|
formatRenderSummaryDetail,
|
|
105
93
|
formatScreenshotFallbackHint,
|
|
106
94
|
resolvePrintedCaptureMode
|
|
107
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-FGFVUKPP.js";
|
|
108
96
|
import "./chunk-EHZESMRB.js";
|
|
109
97
|
import {
|
|
110
|
-
loadProjectConfig,
|
|
111
|
-
readProjectConfigWithStatus,
|
|
112
98
|
seedProjectAuthoringSkill
|
|
113
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-WIJGRX5X.js";
|
|
114
100
|
import "./chunk-XT7X6QCP.js";
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import
|
|
117
|
-
|
|
118
|
-
} from "./chunk-A4ZTSQLW.js";
|
|
119
|
-
import {
|
|
120
|
-
normalizeSkillSlug
|
|
121
|
-
} from "./chunk-HVW7ABXD.js";
|
|
122
|
-
import "./chunk-TPMBPH73.js";
|
|
101
|
+
import "./chunk-FRBQ3FIM.js";
|
|
102
|
+
import "./chunk-HVW7ABXD.js";
|
|
103
|
+
import "./chunk-ME6L6GUF.js";
|
|
123
104
|
import "./chunk-JHOCK3DG.js";
|
|
124
|
-
import "./chunk-
|
|
125
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-XGRXNWDK.js";
|
|
106
|
+
import "./chunk-7U2B7OF6.js";
|
|
126
107
|
import "./chunk-AWDFDFI3.js";
|
|
127
108
|
import "./chunk-P6LJ4Y32.js";
|
|
128
109
|
import "./chunk-D3UCUI7G.js";
|
|
129
|
-
import "./chunk-
|
|
110
|
+
import "./chunk-F2GWIWHN.js";
|
|
130
111
|
import {
|
|
131
112
|
renderMotionBlurTelemetryPayload,
|
|
132
113
|
trackRenderComplete,
|
|
133
114
|
trackRenderError,
|
|
134
|
-
trackRenderObservation
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
import "./chunk-FLRTT7XS.js";
|
|
115
|
+
trackRenderObservation
|
|
116
|
+
} from "./chunk-RGINHOAX.js";
|
|
117
|
+
import "./chunk-PWW2DKGL.js";
|
|
138
118
|
import "./chunk-PXVQOMKL.js";
|
|
139
119
|
import "./chunk-MCDNAIFF.js";
|
|
140
|
-
import "./chunk-
|
|
120
|
+
import "./chunk-FID757D3.js";
|
|
141
121
|
import {
|
|
142
122
|
defineCommand
|
|
143
123
|
} from "./chunk-DL4OD7IA.js";
|
|
144
124
|
import "./chunk-S3S4TGEH.js";
|
|
145
|
-
import "./chunk-
|
|
125
|
+
import "./chunk-JNHJX2BZ.js";
|
|
146
126
|
import "./chunk-54HJ63Q2.js";
|
|
147
127
|
import {
|
|
148
128
|
c
|
|
149
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-VU4EPKFI.js";
|
|
150
130
|
import "./chunk-VEIGTKYZ.js";
|
|
151
131
|
import "./chunk-EVMY7IPL.js";
|
|
152
132
|
import "./chunk-ZB2XGJSP.js";
|
|
153
133
|
import {
|
|
154
134
|
CaptureFailure,
|
|
155
135
|
EXTRACT_CACHE_DIR_DISABLED_ALIASES,
|
|
156
|
-
MAX_VP9_CPU_USED,
|
|
157
|
-
MIN_VP9_CPU_USED,
|
|
158
|
-
PRORES_PROFILES,
|
|
159
|
-
REFERENCE_BACKGROUND_FIELD,
|
|
160
136
|
audioFailureDiagnostics,
|
|
161
|
-
isVideoFrameFormat,
|
|
162
|
-
referenceBackgroundResult,
|
|
163
137
|
sandboxDeniedRemediation
|
|
164
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-Q5J4OO7N.js";
|
|
165
139
|
import "./chunk-Z5J67X44.js";
|
|
166
140
|
import "./chunk-5S7W3TUO.js";
|
|
167
141
|
import "./chunk-D3MUHMFG.js";
|
|
168
|
-
import "./chunk-
|
|
169
|
-
import
|
|
142
|
+
import "./chunk-RERVXE6J.js";
|
|
143
|
+
import {
|
|
144
|
+
createFileAtomically
|
|
145
|
+
} from "./chunk-IEXRKKHC.js";
|
|
170
146
|
import "./chunk-3GXQPCJC.js";
|
|
171
147
|
import {
|
|
172
|
-
DISTRIBUTED_FPS,
|
|
173
|
-
formatRenderOutputTimestamp,
|
|
174
148
|
fpsToFfmpegArg,
|
|
175
|
-
fpsToNumber
|
|
176
|
-
|
|
177
|
-
parseFps
|
|
178
|
-
} from "./chunk-CF2MLHZJ.js";
|
|
149
|
+
fpsToNumber
|
|
150
|
+
} from "./chunk-Q6TVZY36.js";
|
|
179
151
|
import "./chunk-FXMKHHPO.js";
|
|
180
|
-
import "./chunk-
|
|
152
|
+
import "./chunk-3T6BFAKZ.js";
|
|
181
153
|
import "./chunk-VC76R6W2.js";
|
|
182
154
|
import "./chunk-OFQWTKPW.js";
|
|
183
155
|
import "./chunk-RQVDTPGD.js";
|
|
184
|
-
import "./chunk-
|
|
156
|
+
import "./chunk-BMDABBHG.js";
|
|
185
157
|
import {
|
|
186
158
|
killOrphanedProcessesForRender,
|
|
187
159
|
processIdentity
|
|
188
160
|
} from "./chunk-PV4XID2A.js";
|
|
189
|
-
import
|
|
190
|
-
|
|
191
|
-
} from "./chunk-X6JUUQCM.js";
|
|
192
|
-
import {
|
|
193
|
-
hasDefinitiveEntryMismatch
|
|
194
|
-
} from "./chunk-Q5X2B5WT.js";
|
|
161
|
+
import "./chunk-X6JUUQCM.js";
|
|
162
|
+
import "./chunk-Q5X2B5WT.js";
|
|
195
163
|
import "./chunk-KGPLIH7B.js";
|
|
196
164
|
import {
|
|
197
165
|
bytesToMb
|
|
198
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-FOZBANEN.js";
|
|
199
167
|
import "./chunk-K4MJX7SR.js";
|
|
200
168
|
import "./chunk-WE42NVH7.js";
|
|
201
|
-
import
|
|
202
|
-
|
|
203
|
-
shouldBlockRender
|
|
204
|
-
} from "./chunk-PZ23EDA5.js";
|
|
205
|
-
import {
|
|
206
|
-
collectSubCompositionSrcs
|
|
207
|
-
} from "./chunk-WVRAFHJU.js";
|
|
169
|
+
import "./chunk-VSQ5NWCF.js";
|
|
170
|
+
import "./chunk-WVRAFHJU.js";
|
|
208
171
|
import {
|
|
209
172
|
FFMPEG_PATH_ENV
|
|
210
173
|
} from "./chunk-HYRPH6LL.js";
|
|
211
174
|
import "./chunk-FBN2M2HK.js";
|
|
212
|
-
import "./chunk-
|
|
175
|
+
import "./chunk-6MKM2RVL.js";
|
|
213
176
|
import {
|
|
214
177
|
checkOutputResolutionCompatibility,
|
|
215
|
-
isAspectAgnosticResolutionAlias,
|
|
216
|
-
normalizeResolutionFlag,
|
|
217
178
|
suggestMatchingPreset
|
|
218
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-AAENGP3S.js";
|
|
219
180
|
import "./chunk-FR7YBU3H.js";
|
|
220
181
|
import "./chunk-DPVXBVLL.js";
|
|
221
182
|
import "./chunk-GWTIFRF5.js";
|
|
@@ -232,511 +193,36 @@ import {
|
|
|
232
193
|
releaseDeParallelRouterLatch,
|
|
233
194
|
writeConfig,
|
|
234
195
|
writeConfigWithResult
|
|
235
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-F5QBIIFT.js";
|
|
236
197
|
import {
|
|
237
198
|
isDevMode
|
|
238
199
|
} from "./chunk-ISN5GRYI.js";
|
|
239
|
-
import "./chunk-GR2E54E6.js";
|
|
240
200
|
import "./chunk-ADVVQX4I.js";
|
|
201
|
+
import "./chunk-GR2E54E6.js";
|
|
241
202
|
import {
|
|
242
203
|
failCommand,
|
|
243
|
-
failUsage,
|
|
244
204
|
requestCliExit,
|
|
245
|
-
scheduleCliExit
|
|
246
|
-
setCommandExitCode
|
|
205
|
+
scheduleCliExit
|
|
247
206
|
} from "./chunk-66W5IWLO.js";
|
|
248
|
-
import "./chunk-
|
|
207
|
+
import "./chunk-PQYICV7O.js";
|
|
249
208
|
import "./chunk-QBXDU24O.js";
|
|
250
209
|
import {
|
|
251
210
|
VERSION
|
|
252
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-E7YPIP42.js";
|
|
253
212
|
import {
|
|
254
213
|
normalizeErrorMessage
|
|
255
214
|
} from "./chunk-E63BDV4Z.js";
|
|
256
|
-
import "./chunk-
|
|
215
|
+
import "./chunk-LW33P24U.js";
|
|
257
216
|
import "./chunk-XT6MXC7A.js";
|
|
258
217
|
import "./chunk-7KDQAD2W.js";
|
|
259
218
|
import "./chunk-M2WBOQ2Q.js";
|
|
260
219
|
|
|
261
220
|
// src/commands/render.ts
|
|
262
|
-
import { mkdtempSync, readdirSync as readdirSync2, readFileSync as
|
|
263
|
-
|
|
264
|
-
// src/commands/render/plan.ts
|
|
265
|
-
import { statSync } from "fs";
|
|
266
|
-
import { dirname, join, resolve as resolve2 } from "path";
|
|
267
|
-
|
|
268
|
-
// src/utils/catalogUsage.ts
|
|
269
|
-
import { readFileSync } from "fs";
|
|
270
|
-
import { isAbsolute, relative, resolve } from "path";
|
|
271
|
-
var EMPTY = Object.freeze({
|
|
272
|
-
installed: [],
|
|
273
|
-
usedBlocks: [],
|
|
274
|
-
manifestUnreadable: false
|
|
275
|
-
});
|
|
276
|
-
var UNREADABLE = Object.freeze({
|
|
277
|
-
installed: [],
|
|
278
|
-
usedBlocks: [],
|
|
279
|
-
manifestUnreadable: true
|
|
280
|
-
});
|
|
281
|
-
var MAX_VISITED_FILES = 250;
|
|
282
|
-
var MAX_HTML_BYTES = 20 * 1024 * 1024;
|
|
283
|
-
var REGISTRY_ITEM_NAME = /^[a-z0-9][a-z0-9-]{0,63}$/;
|
|
284
|
-
function reachableCompositions(projectDir, entryPath) {
|
|
285
|
-
const seen = /* @__PURE__ */ new Set();
|
|
286
|
-
const queue = [resolve(entryPath)];
|
|
287
|
-
while (queue.length > 0 && seen.size < MAX_VISITED_FILES) {
|
|
288
|
-
const current = queue.shift();
|
|
289
|
-
if (seen.has(current)) continue;
|
|
290
|
-
seen.add(current);
|
|
291
|
-
let html;
|
|
292
|
-
try {
|
|
293
|
-
html = readFileSync(current, "utf-8");
|
|
294
|
-
} catch {
|
|
295
|
-
continue;
|
|
296
|
-
}
|
|
297
|
-
if (html.length > MAX_HTML_BYTES) continue;
|
|
298
|
-
for (const src of collectSubCompositionSrcs(html)) {
|
|
299
|
-
queue.push(resolve(projectDir, src));
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
return seen;
|
|
303
|
-
}
|
|
304
|
-
function isReached(projectDir, target, reachable) {
|
|
305
|
-
if (isAbsolute(target)) return false;
|
|
306
|
-
const abs = resolve(projectDir, target);
|
|
307
|
-
if (relative(projectDir, abs).startsWith("..")) return false;
|
|
308
|
-
return reachable.has(abs);
|
|
309
|
-
}
|
|
310
|
-
function reportableNames(names) {
|
|
311
|
-
return [...new Set(names.filter((name) => REGISTRY_ITEM_NAME.test(name)))].sort();
|
|
312
|
-
}
|
|
313
|
-
function summarizeCatalogUsage(projectDir, entryPath) {
|
|
314
|
-
const { status, config } = readProjectConfigWithStatus(projectDir);
|
|
315
|
-
if (status === "unreadable") return UNREADABLE;
|
|
316
|
-
const items = config?.registryItems ?? [];
|
|
317
|
-
if (items.length === 0) return EMPTY;
|
|
318
|
-
const installed = reportableNames(items.map((item) => item.name));
|
|
319
|
-
if (installed.length === 0) return EMPTY;
|
|
320
|
-
const reachable = reachableCompositions(projectDir, entryPath);
|
|
321
|
-
const usedBlocks = reportableNames(
|
|
322
|
-
items.filter(
|
|
323
|
-
(item) => item.type === "hyperframes:block" && isReached(projectDir, item.target, reachable)
|
|
324
|
-
).map((item) => item.name)
|
|
325
|
-
);
|
|
326
|
-
return { installed, usedBlocks, manifestUnreadable: false };
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
// src/commands/render/plan.ts
|
|
330
|
-
var QUALITY_ALIASES = {
|
|
331
|
-
draft: { quality: "draft" },
|
|
332
|
-
standard: { quality: "standard" },
|
|
333
|
-
high: { quality: "high" },
|
|
334
|
-
looks: { quality: "standard", crf: 16 },
|
|
335
|
-
delivery: { quality: "high" }
|
|
336
|
-
};
|
|
337
|
-
var RENDER_FORMATS = ["mp4", "webm", "mov", "png-sequence", "gif", "hls"];
|
|
338
|
-
var VALID_FORMAT = new Set(RENDER_FORMATS);
|
|
339
|
-
var RENDER_FORMAT_LABEL = "mp4, webm, mov, png-sequence, gif, or hls";
|
|
340
|
-
var DEFAULT_HLS_SEGMENT_SECONDS = 4;
|
|
341
|
-
var FORMAT_EXT = {
|
|
342
|
-
mp4: ".mp4",
|
|
343
|
-
webm: ".webm",
|
|
344
|
-
mov: ".mov",
|
|
345
|
-
"png-sequence": "",
|
|
346
|
-
gif: ".gif",
|
|
347
|
-
// Directory output, like png-sequence: playlists and .ts segments go inside.
|
|
348
|
-
hls: ""
|
|
349
|
-
};
|
|
350
|
-
function formatFpsParseError(input, reason) {
|
|
351
|
-
switch (reason) {
|
|
352
|
-
case "empty":
|
|
353
|
-
return "Frame rate must not be empty.";
|
|
354
|
-
case "not-a-number":
|
|
355
|
-
return `Got "${input}". Frame rate must be an integer (e.g. 30) or a rational (e.g. 30000/1001 for NTSC).`;
|
|
356
|
-
case "non-positive":
|
|
357
|
-
return `Got "${input}". Frame rate must be greater than zero.`;
|
|
358
|
-
case "out-of-range":
|
|
359
|
-
return `Got "${input}". Frame rate must be in the range 1\u2013240.`;
|
|
360
|
-
case "invalid-fraction":
|
|
361
|
-
return `Got "${input}". Rational frame rates must be two positive integers separated by '/' (e.g. 30000/1001).`;
|
|
362
|
-
case "ambiguous-decimal":
|
|
363
|
-
return `Got "${input}". Decimal frame rates are ambiguous \u2014 use the exact rational form instead (e.g. 30000/1001 for 29.97).`;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
function parseRenderFormat(input) {
|
|
367
|
-
if (!VALID_FORMAT.has(input)) return void 0;
|
|
368
|
-
return RENDER_FORMATS.find((format) => format === input);
|
|
369
|
-
}
|
|
370
|
-
function parseRenderRange(args, format, fps, hdr) {
|
|
371
|
-
if (args.start === void 0 && args.end === void 0) return void 0;
|
|
372
|
-
const seconds = (flag, raw) => {
|
|
373
|
-
const parsed = raw.trim() === "" ? Number.NaN : Number(raw);
|
|
374
|
-
if (!Number.isFinite(parsed) || parsed < 0) {
|
|
375
|
-
errorBox(`Invalid ${flag}`, `Got "${raw}". Must be a number of seconds, 0 or more.`);
|
|
376
|
-
failUsage();
|
|
377
|
-
}
|
|
378
|
-
return parsed;
|
|
379
|
-
};
|
|
380
|
-
const startSeconds = args.start === void 0 ? 0 : seconds("--start", args.start);
|
|
381
|
-
const endSeconds = args.end === void 0 ? void 0 : seconds("--end", args.end);
|
|
382
|
-
if (endSeconds !== void 0 && endSeconds <= startSeconds) {
|
|
383
|
-
errorBox("Invalid range", `--end (${endSeconds}) must be after --start (${startSeconds}).`);
|
|
384
|
-
failUsage();
|
|
385
|
-
}
|
|
386
|
-
const limit = rangeLimit(format, fps, hdr);
|
|
387
|
-
if (limit) {
|
|
388
|
-
errorBox(
|
|
389
|
-
"A range renders what chunked renders can",
|
|
390
|
-
limit,
|
|
391
|
-
"Remove --start/--end to render the whole film."
|
|
392
|
-
);
|
|
393
|
-
failUsage();
|
|
394
|
-
}
|
|
395
|
-
return { startSeconds, endSeconds };
|
|
396
|
-
}
|
|
397
|
-
function rangeLimit(format, fps, hdr) {
|
|
398
|
-
if (format !== "mp4") return `--start/--end render MP4 only, not ${format}.`;
|
|
399
|
-
if (fps.den !== 1 || !isDistributedFps(fps.num)) {
|
|
400
|
-
return `--start/--end need a whole frame rate in ${DISTRIBUTED_FPS.join(", ")}, not ${fps.num}/${fps.den}.`;
|
|
401
|
-
}
|
|
402
|
-
if (hdr) return "--start/--end render SDR only, not --hdr.";
|
|
403
|
-
return void 0;
|
|
404
|
-
}
|
|
405
|
-
function positiveInteger(raw, title, message, min = 1) {
|
|
406
|
-
const parsed = Number(raw);
|
|
407
|
-
if (!Number.isInteger(parsed) || parsed < min) {
|
|
408
|
-
errorBox(title, message);
|
|
409
|
-
failUsage();
|
|
410
|
-
}
|
|
411
|
-
return parsed;
|
|
412
|
-
}
|
|
413
|
-
var HF_ENV_OVERRIDE_RE = /^(HF|HYPERFRAMES)_/;
|
|
414
|
-
var MAX_REPORTED_ENV_OVERRIDES = 20;
|
|
415
|
-
var CLI_INTERNAL_HF_ENV_KEYS = /* @__PURE__ */ new Set(["HF_SHADER_WORKER_ENTRY"]);
|
|
416
|
-
function resolveHfEnvOverrides() {
|
|
417
|
-
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);
|
|
418
|
-
}
|
|
419
|
-
function createRenderPlan(args, now = /* @__PURE__ */ new Date()) {
|
|
420
|
-
const pageMotionBlur = parseEnumFlag(args["page-motion-blur"], ["off"], {
|
|
421
|
-
flag: "--page-motion-blur"
|
|
422
|
-
});
|
|
423
|
-
const hfEnvOverrides = resolveHfEnvOverrides();
|
|
424
|
-
const hasExplicitComposition = hasExplicitCompositionArg(args.composition);
|
|
425
|
-
const project = resolveProject(args.dir, { requireIndex: !hasExplicitComposition });
|
|
426
|
-
const entryFile = resolveCompositionEntryArg(args.composition, project.dir, statSync);
|
|
427
|
-
const renderTarget = entryFile ? resolve2(project.dir, entryFile) : project.indexPath;
|
|
428
|
-
const fpsArg = resolveDefaultFpsArg(args.fps, project.dir, project.indexPath, entryFile);
|
|
429
|
-
const fpsParse = parseFps(fpsArg ?? "30");
|
|
430
|
-
if (!fpsParse.ok) {
|
|
431
|
-
errorBox("Invalid fps", formatFpsParseError(fpsArg ?? "30", fpsParse.reason));
|
|
432
|
-
failUsage();
|
|
433
|
-
}
|
|
434
|
-
let fps = fpsParse.value;
|
|
435
|
-
const qualityRaw = args.quality ?? "looks";
|
|
436
|
-
if (!(qualityRaw in QUALITY_ALIASES)) {
|
|
437
|
-
errorBox(
|
|
438
|
-
"Invalid quality",
|
|
439
|
-
`Got "${qualityRaw}". Must be draft, looks, delivery, standard, or high.`
|
|
440
|
-
);
|
|
441
|
-
failUsage();
|
|
442
|
-
}
|
|
443
|
-
const qualityAlias = QUALITY_ALIASES[qualityRaw];
|
|
444
|
-
const quality = qualityAlias.quality;
|
|
445
|
-
const flagSkill = normalizeSkillSlug(args.skill);
|
|
446
|
-
const projectConfigSkill = loadProjectConfig(project.dir).authoringSkill;
|
|
447
|
-
const authoringSkill = flagSkill ?? projectConfigSkill;
|
|
448
|
-
const invalidAuthoringSkill = typeof args.skill === "string" && args.skill.trim() !== "" && !flagSkill ? args.skill : void 0;
|
|
449
|
-
const authoringSkillSource = flagSkill ? "flag" : projectConfigSkill ? "project-config" : void 0;
|
|
450
|
-
const catalogUsage = summarizeCatalogUsage(project.dir, renderTarget);
|
|
451
|
-
const formatRaw = args.format ?? "mp4";
|
|
452
|
-
const format = parseRenderFormat(formatRaw);
|
|
453
|
-
if (!format) {
|
|
454
|
-
errorBox("Invalid format", `Got "${formatRaw}". Must be ${RENDER_FORMAT_LABEL}.`);
|
|
455
|
-
failUsage();
|
|
456
|
-
}
|
|
457
|
-
let gifFpsCapped = false;
|
|
458
|
-
if (format === "gif" && fpsToNumber(fps) > 30) {
|
|
459
|
-
fps = { num: 30, den: 1 };
|
|
460
|
-
gifFpsCapped = true;
|
|
461
|
-
}
|
|
462
|
-
const gifLoopParse = parseGifLoopArg(args["gif-loop"]);
|
|
463
|
-
if (!gifLoopParse.ok) {
|
|
464
|
-
errorBox("Invalid gif-loop", gifLoopParse.message);
|
|
465
|
-
failUsage();
|
|
466
|
-
}
|
|
467
|
-
const gifLoop = gifLoopParse.value ?? (format === "gif" ? 0 : void 0);
|
|
468
|
-
const hlsSegmentParse = parseHlsSegmentSecondsArg(args["hls-segment-seconds"]);
|
|
469
|
-
if (!hlsSegmentParse.ok) {
|
|
470
|
-
errorBox("Invalid hls-segment-seconds", hlsSegmentParse.message);
|
|
471
|
-
failUsage();
|
|
472
|
-
}
|
|
473
|
-
const hlsSegmentSeconds = format === "hls" ? hlsSegmentParse.value ?? DEFAULT_HLS_SEGMENT_SECONDS : void 0;
|
|
474
|
-
const videoFrameFormatRaw = args["video-frame-format"] ?? "auto";
|
|
475
|
-
if (!isVideoFrameFormat(videoFrameFormatRaw)) {
|
|
476
|
-
errorBox(
|
|
477
|
-
"Invalid video-frame-format",
|
|
478
|
-
`Got "${videoFrameFormatRaw}". Must be auto, jpg, or png.`
|
|
479
|
-
);
|
|
480
|
-
failUsage();
|
|
481
|
-
}
|
|
482
|
-
let outputResolution;
|
|
483
|
-
let outputResolutionAspectAgnostic = false;
|
|
484
|
-
if (args.resolution !== void 0) {
|
|
485
|
-
outputResolution = normalizeResolutionFlag(args.resolution);
|
|
486
|
-
if (!outputResolution) {
|
|
487
|
-
errorBox(
|
|
488
|
-
"Invalid resolution",
|
|
489
|
-
`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).`
|
|
490
|
-
);
|
|
491
|
-
failUsage();
|
|
492
|
-
}
|
|
493
|
-
outputResolutionAspectAgnostic = isAspectAgnosticResolutionAlias(args.resolution);
|
|
494
|
-
if (args.hdr) {
|
|
495
|
-
errorBox(
|
|
496
|
-
"Conflicting flags",
|
|
497
|
-
"--resolution cannot be combined with --hdr. The HDR pipeline composites at composition dimensions and does not yet support supersampling.",
|
|
498
|
-
"Render in two passes: HDR at composition resolution, then upscale separately with ffmpeg."
|
|
499
|
-
);
|
|
500
|
-
failUsage();
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
if (args.hdr && args.sdr) {
|
|
504
|
-
errorBox("Conflicting flags", "--hdr and --sdr are mutually exclusive.");
|
|
505
|
-
failUsage();
|
|
506
|
-
}
|
|
507
|
-
if (format === "hls" && args.hdr) {
|
|
508
|
-
errorBox(
|
|
509
|
-
"Unsupported HLS output",
|
|
510
|
-
"--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.",
|
|
511
|
-
"Render HDR to MP4, or drop --hdr."
|
|
512
|
-
);
|
|
513
|
-
failUsage();
|
|
514
|
-
}
|
|
515
|
-
if (format === "hls" && args.gpu) {
|
|
516
|
-
errorBox(
|
|
517
|
-
"Unsupported HLS output",
|
|
518
|
-
"--gpu cannot be combined with --format hls. Fixed-length segments require the software encoder's forced-keyframe lock, which GPU encoders ignore.",
|
|
519
|
-
"Re-run without --gpu."
|
|
520
|
-
);
|
|
521
|
-
failUsage();
|
|
522
|
-
}
|
|
523
|
-
const workers = args.workers != null && args.workers !== "auto" ? positiveInteger(
|
|
524
|
-
args.workers,
|
|
525
|
-
"Invalid workers",
|
|
526
|
-
`Got "${args.workers}". Must be a positive number or "auto".`
|
|
527
|
-
) : void 0;
|
|
528
|
-
const protocolTimeout = args["protocol-timeout"] != null ? positiveInteger(
|
|
529
|
-
args["protocol-timeout"],
|
|
530
|
-
"Invalid protocol-timeout",
|
|
531
|
-
`Got "${args["protocol-timeout"]}". Must be a number >= 1000 (ms).`,
|
|
532
|
-
1e3
|
|
533
|
-
) : void 0;
|
|
534
|
-
const playerReadyTimeout = args["player-ready-timeout"] != null ? positiveInteger(
|
|
535
|
-
args["player-ready-timeout"],
|
|
536
|
-
"Invalid player-ready-timeout",
|
|
537
|
-
`Got "${args["player-ready-timeout"]}". Must be a number >= 1000 (ms).`,
|
|
538
|
-
1e3
|
|
539
|
-
) : void 0;
|
|
540
|
-
const environment = {};
|
|
541
|
-
if (args["page-side-compositing"] === false) environment.HF_PAGE_SIDE_COMPOSITING = "false";
|
|
542
|
-
if (args["low-memory-mode"] != null) {
|
|
543
|
-
environment.PRODUCER_LOW_MEMORY_MODE = args["low-memory-mode"] ? "true" : "false";
|
|
544
|
-
}
|
|
545
|
-
if (args["experimental-fast-capture"] != null) {
|
|
546
|
-
environment.PRODUCER_EXPERIMENTAL_FAST_CAPTURE = args["experimental-fast-capture"] ? "true" : "false";
|
|
547
|
-
}
|
|
548
|
-
if (typeof args["frames-cache-dir"] === "string" && args["frames-cache-dir"].trim() !== "") {
|
|
549
|
-
const raw = args["frames-cache-dir"].trim();
|
|
550
|
-
const normalized = raw.toLowerCase();
|
|
551
|
-
const isDisableAlias = EXTRACT_CACHE_DIR_DISABLED_ALIASES.includes(normalized);
|
|
552
|
-
environment.HYPERFRAMES_EXTRACT_CACHE_DIR = isDisableAlias ? raw : resolve2(raw);
|
|
553
|
-
}
|
|
554
|
-
if (args["max-concurrent-renders"] != null) {
|
|
555
|
-
const parsed = positiveInteger(
|
|
556
|
-
args["max-concurrent-renders"],
|
|
557
|
-
"Invalid max-concurrent-renders",
|
|
558
|
-
`Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
|
|
559
|
-
);
|
|
560
|
-
if (parsed > 10) {
|
|
561
|
-
errorBox(
|
|
562
|
-
"Invalid max-concurrent-renders",
|
|
563
|
-
`Got "${args["max-concurrent-renders"]}". Must be a number between 1 and 10.`
|
|
564
|
-
);
|
|
565
|
-
failUsage();
|
|
566
|
-
}
|
|
567
|
-
environment.PRODUCER_MAX_CONCURRENT_RENDERS = String(parsed);
|
|
568
|
-
}
|
|
569
|
-
const batchPath = typeof args.batch === "string" && args.batch.trim() !== "" ? args.batch.trim() : void 0;
|
|
570
|
-
if (batchPath && (args.variables != null || args["variables-file"] != null)) {
|
|
571
|
-
errorBox(
|
|
572
|
-
"Conflicting variables flags",
|
|
573
|
-
"Use either --batch or --variables/--variables-file, not both."
|
|
574
|
-
);
|
|
575
|
-
failUsage();
|
|
576
|
-
}
|
|
577
|
-
if (!batchPath && args["batch-concurrency"] != null) {
|
|
578
|
-
errorBox("Invalid batch-concurrency", "--batch-concurrency requires --batch.");
|
|
579
|
-
failUsage();
|
|
580
|
-
}
|
|
581
|
-
if (!batchPath && args["batch-fail-fast"]) {
|
|
582
|
-
errorBox("Invalid batch-fail-fast", "--batch-fail-fast requires --batch.");
|
|
583
|
-
failUsage();
|
|
584
|
-
}
|
|
585
|
-
const batchConcurrency = args["batch-concurrency"] != null ? positiveInteger(
|
|
586
|
-
args["batch-concurrency"],
|
|
587
|
-
"Invalid batch-concurrency",
|
|
588
|
-
`Got "${args["batch-concurrency"]}". Must be a positive integer.`
|
|
589
|
-
) : 1;
|
|
590
|
-
const rendersDir = join(project.dir, "renders");
|
|
591
|
-
const ext = FORMAT_EXT[format];
|
|
592
|
-
const timestamp = formatRenderOutputTimestamp(now);
|
|
593
|
-
const batchOutputTemplate = args.output ? args.output : join(rendersDir, `${project.name}_${timestamp}_{index}${ext}`);
|
|
594
|
-
const outputPath = args.output ? resolve2(args.output) : join(rendersDir, `${project.name}_${timestamp}${ext}`);
|
|
595
|
-
const useDocker = args.docker ?? false;
|
|
596
|
-
const useGpu = args.gpu ?? false;
|
|
597
|
-
const browserGpuMode = resolveBrowserGpuForCli(useDocker, args["browser-gpu"]);
|
|
598
|
-
if (useDocker && args["browser-gpu"] === true) {
|
|
599
|
-
errorBox(
|
|
600
|
-
"Browser GPU is local-only",
|
|
601
|
-
"--browser-gpu uses the host Chrome GPU backend. Docker mode keeps browser rendering deterministic and does not expose a cross-platform Chrome GPU backend.",
|
|
602
|
-
"Run without --docker, or use --gpu for Docker GPU encoding where your Docker host supports GPU passthrough."
|
|
603
|
-
);
|
|
604
|
-
failUsage();
|
|
605
|
-
}
|
|
606
|
-
const videoBitrate = args["video-bitrate"]?.trim();
|
|
607
|
-
if (args.crf != null && videoBitrate) {
|
|
608
|
-
errorBox("Conflicting encoder settings", "Use either --crf or --video-bitrate, not both.");
|
|
609
|
-
failUsage();
|
|
610
|
-
}
|
|
611
|
-
const crf = args.crf != null ? positiveInteger(
|
|
612
|
-
args.crf,
|
|
613
|
-
"Invalid crf",
|
|
614
|
-
`Got "${args.crf}". Must be a non-negative integer.`,
|
|
615
|
-
0
|
|
616
|
-
) : format === "mov" || args["video-bitrate"] ? void 0 : "crf" in qualityAlias ? qualityAlias.crf : void 0;
|
|
617
|
-
let vp9CpuUsed;
|
|
618
|
-
if (args["vp9-cpu-used"] != null) {
|
|
619
|
-
const parsed = Number(args["vp9-cpu-used"]);
|
|
620
|
-
if (!Number.isInteger(parsed) || parsed < MIN_VP9_CPU_USED || parsed > MAX_VP9_CPU_USED) {
|
|
621
|
-
errorBox(
|
|
622
|
-
"Invalid vp9-cpu-used",
|
|
623
|
-
`Got "${args["vp9-cpu-used"]}". Must be an integer between ${MIN_VP9_CPU_USED} and ${MAX_VP9_CPU_USED}.`
|
|
624
|
-
);
|
|
625
|
-
failUsage();
|
|
626
|
-
}
|
|
627
|
-
vp9CpuUsed = parsed;
|
|
628
|
-
}
|
|
629
|
-
if (args["video-bitrate"] != null && !videoBitrate) {
|
|
630
|
-
errorBox(
|
|
631
|
-
"Invalid video-bitrate",
|
|
632
|
-
`Got "${args["video-bitrate"]}". Must be a non-empty bitrate such as "10M".`
|
|
633
|
-
);
|
|
634
|
-
failUsage();
|
|
635
|
-
}
|
|
636
|
-
if (format === "mov" && (crf !== void 0 || videoBitrate !== void 0)) {
|
|
637
|
-
const flag = crf !== void 0 ? "--crf" : "--video-bitrate";
|
|
638
|
-
errorBox(
|
|
639
|
-
"Unsupported ProRes rate control",
|
|
640
|
-
`${flag} does not apply to MOV. MOV rate is set by the ProRes profile; see --prores-profile.`,
|
|
641
|
-
`Remove ${flag}, or choose MP4/WebM when you need CRF or target-bitrate control.`
|
|
642
|
-
);
|
|
643
|
-
failUsage();
|
|
644
|
-
}
|
|
645
|
-
const delivery = parseDeliveryFlags(args);
|
|
646
|
-
const { proresProfile, ...mp4Delivery } = delivery;
|
|
647
|
-
if (proresProfile !== void 0 && format !== "mov") {
|
|
648
|
-
errorBox(
|
|
649
|
-
"ProRes profile applies to MOV",
|
|
650
|
-
`--prores-profile sets the ProRes profile of a MOV file, not ${format}.`,
|
|
651
|
-
"Remove it, or render --format mov."
|
|
652
|
-
);
|
|
653
|
-
failUsage();
|
|
654
|
-
}
|
|
655
|
-
if (Object.keys(mp4Delivery).length > 0 && format !== "mp4") {
|
|
656
|
-
errorBox(
|
|
657
|
-
"Delivery options apply to MP4",
|
|
658
|
-
"--keyframe-interval, --max-bitrate and --buffer-size set how the MP4 encoder delivers the file.",
|
|
659
|
-
"Remove them, or render --format mp4."
|
|
660
|
-
);
|
|
661
|
-
failUsage();
|
|
662
|
-
}
|
|
663
|
-
const range = parseRenderRange(args, format, fps, args.hdr);
|
|
664
|
-
const quiet = args.quiet ?? false;
|
|
665
|
-
const batchJson = args.json ?? false;
|
|
666
|
-
return Object.freeze({
|
|
667
|
-
project,
|
|
668
|
-
entryFile,
|
|
669
|
-
renderTarget,
|
|
670
|
-
fps,
|
|
671
|
-
quality,
|
|
672
|
-
authoringSkill,
|
|
673
|
-
invalidAuthoringSkill,
|
|
674
|
-
authoringSkillSource,
|
|
675
|
-
catalogUsage,
|
|
676
|
-
format,
|
|
677
|
-
gifLoop,
|
|
678
|
-
gifFpsCapped,
|
|
679
|
-
hlsSegmentSeconds,
|
|
680
|
-
videoFrameFormat: videoFrameFormatRaw,
|
|
681
|
-
pageMotionBlur,
|
|
682
|
-
outputResolution,
|
|
683
|
-
outputResolutionAspectAgnostic,
|
|
684
|
-
outputResolutionRaw: args.resolution,
|
|
685
|
-
workers,
|
|
686
|
-
protocolTimeout,
|
|
687
|
-
playerReadyTimeout,
|
|
688
|
-
pageNavigationTimeoutMs: resolveBrowserTimeoutMsArg(args["browser-timeout"]),
|
|
689
|
-
batchPath,
|
|
690
|
-
batchConcurrency,
|
|
691
|
-
batchFailFast: args["batch-fail-fast"] ?? false,
|
|
692
|
-
batchOutputTemplate,
|
|
693
|
-
outputPath,
|
|
694
|
-
useDocker,
|
|
695
|
-
useGpu,
|
|
696
|
-
browserGpuMode,
|
|
697
|
-
quiet,
|
|
698
|
-
lintVerbose: args["lint-verbose"] ?? false,
|
|
699
|
-
debug: args.debug ?? false,
|
|
700
|
-
resumeSegments: args.resume ?? false,
|
|
701
|
-
keepSegments: args["keep-segments"] ?? false,
|
|
702
|
-
bestEffort: args["best-effort"] ?? true,
|
|
703
|
-
waitForRenderSlot: args.wait ?? true,
|
|
704
|
-
batchJson,
|
|
705
|
-
effectiveQuiet: quiet || batchJson,
|
|
706
|
-
strictAll: args["strict-all"] ?? false,
|
|
707
|
-
strictErrors: (args.strict ?? false) || (args["strict-all"] ?? false),
|
|
708
|
-
crf,
|
|
709
|
-
vp9CpuUsed,
|
|
710
|
-
videoBitrate,
|
|
711
|
-
...delivery,
|
|
712
|
-
range,
|
|
713
|
-
hdrMode: args.sdr ? "force-sdr" : args.hdr ? "force-hdr" : "auto",
|
|
714
|
-
pageSideCompositing: args["page-side-compositing"] !== false,
|
|
715
|
-
experimentalFastCapture: args["experimental-fast-capture"] === true,
|
|
716
|
-
variablesArg: args.variables,
|
|
717
|
-
variablesFileArg: args["variables-file"],
|
|
718
|
-
strictVariables: args["strict-variables"] ?? false,
|
|
719
|
-
environment: Object.freeze(environment),
|
|
720
|
-
hfEnvOverrides
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
function applyRenderEnvironment(plan) {
|
|
724
|
-
for (const [key, value] of Object.entries(plan.environment)) process.env[key] = value;
|
|
725
|
-
}
|
|
726
|
-
function renderOutputDirectory(plan) {
|
|
727
|
-
return dirname(plan.outputPath);
|
|
728
|
-
}
|
|
729
|
-
function resolveBrowserGpuForCli(useDocker, browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
730
|
-
if (useDocker) return "software";
|
|
731
|
-
if (browserGpuArg === true) return "hardware";
|
|
732
|
-
if (browserGpuArg === false) return "software";
|
|
733
|
-
if (envMode === "hardware" || envMode === "software" || envMode === "auto") return envMode;
|
|
734
|
-
return "auto";
|
|
735
|
-
}
|
|
221
|
+
import { mkdtempSync, readdirSync as readdirSync2, readFileSync as readFileSync3, statSync, writeFileSync as writeFileSync2, rmSync } from "fs";
|
|
736
222
|
|
|
737
223
|
// src/commands/render/present.ts
|
|
738
224
|
import { cpus } from "os";
|
|
739
|
-
import { readFileSync
|
|
225
|
+
import { readFileSync } from "fs";
|
|
740
226
|
async function presentRenderPlan(plan) {
|
|
741
227
|
await presentRenderWarnings(plan);
|
|
742
228
|
if (plan.effectiveQuiet || plan.batchPath) return;
|
|
@@ -784,7 +270,7 @@ function formatGpuModes(plan) {
|
|
|
784
270
|
async function warnForSlideshow(plan) {
|
|
785
271
|
try {
|
|
786
272
|
const { slideshowIslandRegex } = await import("./slideshow-ARJR22W4.js");
|
|
787
|
-
if (!slideshowIslandRegex("i").test(
|
|
273
|
+
if (!slideshowIslandRegex("i").test(readFileSync(plan.renderTarget, "utf8"))) return;
|
|
788
274
|
console.log(
|
|
789
275
|
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."
|
|
790
276
|
);
|
|
@@ -795,15 +281,15 @@ async function warnForSlideshow(plan) {
|
|
|
795
281
|
|
|
796
282
|
// src/utils/renderLock.ts
|
|
797
283
|
import { existsSync as existsSync2 } from "fs";
|
|
798
|
-
import { dirname as
|
|
284
|
+
import { dirname as dirname2 } from "path";
|
|
799
285
|
|
|
800
286
|
// src/utils/renderLockClaim.ts
|
|
801
287
|
import { chmodSync, existsSync, mkdirSync, unlinkSync as unlinkSync2 } from "fs";
|
|
802
288
|
|
|
803
289
|
// src/utils/renderLockOwners.ts
|
|
804
290
|
import { randomBytes } from "crypto";
|
|
805
|
-
import { readdirSync, readFileSync as
|
|
806
|
-
import { basename, dirname
|
|
291
|
+
import { readdirSync, readFileSync as readFileSync2, unlinkSync, writeFileSync } from "fs";
|
|
292
|
+
import { basename, dirname, join } from "path";
|
|
807
293
|
var markerPrefix = (lockPath) => `${basename(lockPath)}.owner-`;
|
|
808
294
|
var HELD_CODES = new Set(process.platform === "win32" ? ["EPERM", "EBUSY", "EACCES"] : ["EBUSY"]);
|
|
809
295
|
var UNREMOVABLE_CODES = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "EBUSY"]);
|
|
@@ -816,7 +302,7 @@ function startToken(pid) {
|
|
|
816
302
|
}
|
|
817
303
|
function writeOwnerMarker(lockPath, owner) {
|
|
818
304
|
const name = `${markerPrefix(lockPath)}${owner.pid}-${randomBytes(6).toString("hex")}`;
|
|
819
|
-
const marker =
|
|
305
|
+
const marker = join(dirname(lockPath), name);
|
|
820
306
|
writeFileSync(marker, JSON.stringify(owner), { flag: "wx" });
|
|
821
307
|
return marker;
|
|
822
308
|
}
|
|
@@ -829,7 +315,7 @@ function removeIfPresent(marker) {
|
|
|
829
315
|
}
|
|
830
316
|
function recordedIdentity(marker) {
|
|
831
317
|
try {
|
|
832
|
-
const owner = JSON.parse(
|
|
318
|
+
const owner = JSON.parse(readFileSync2(marker, "utf8"));
|
|
833
319
|
return typeof owner.identity === "string" ? owner.identity : null;
|
|
834
320
|
} catch {
|
|
835
321
|
return null;
|
|
@@ -841,12 +327,12 @@ function sameProcess(pid, identity) {
|
|
|
841
327
|
return !identity || !current || current === identity;
|
|
842
328
|
}
|
|
843
329
|
function liveOtherOwners(lockPath, own) {
|
|
844
|
-
const dir =
|
|
330
|
+
const dir = dirname(lockPath);
|
|
845
331
|
const prefix = markerPrefix(lockPath);
|
|
846
332
|
let live = 0;
|
|
847
333
|
for (const name of readdirSync(dir)) {
|
|
848
334
|
if (!name.startsWith(prefix)) continue;
|
|
849
|
-
const marker =
|
|
335
|
+
const marker = join(dir, name);
|
|
850
336
|
if (marker === own) continue;
|
|
851
337
|
if (sameProcess(Number(name.slice(prefix.length).split("-")[0]), recordedIdentity(marker))) {
|
|
852
338
|
live += 1;
|
|
@@ -941,7 +427,7 @@ function describeRenderLockHolder(holder, now) {
|
|
|
941
427
|
return `pid ${holder.pid}, project ${holder.project}, running ${running}`;
|
|
942
428
|
}
|
|
943
429
|
function pause(ms, signal) {
|
|
944
|
-
return new Promise((
|
|
430
|
+
return new Promise((resolve2, reject) => {
|
|
945
431
|
if (signal?.aborted) return reject(signal.reason);
|
|
946
432
|
const onAbort = () => {
|
|
947
433
|
clearTimeout(timer);
|
|
@@ -949,7 +435,7 @@ function pause(ms, signal) {
|
|
|
949
435
|
};
|
|
950
436
|
const timer = setTimeout(() => {
|
|
951
437
|
signal?.removeEventListener("abort", onAbort);
|
|
952
|
-
|
|
438
|
+
resolve2();
|
|
953
439
|
}, ms);
|
|
954
440
|
signal?.addEventListener("abort", onAbort, { once: true });
|
|
955
441
|
});
|
|
@@ -979,7 +465,7 @@ async function acquireRenderLock(options) {
|
|
|
979
465
|
}
|
|
980
466
|
function prepareContender(options) {
|
|
981
467
|
const path = options.path ?? renderLockPath();
|
|
982
|
-
ensureLockDir(
|
|
468
|
+
ensureLockDir(dirname2(path));
|
|
983
469
|
liveOtherOwners(path);
|
|
984
470
|
const pid = options.pid ?? process.pid;
|
|
985
471
|
const identity = startToken(pid);
|
|
@@ -996,13 +482,13 @@ async function claimOnce({ path, holder, owner, claim }) {
|
|
|
996
482
|
try {
|
|
997
483
|
marker = writeOwnerMarker(path, owner);
|
|
998
484
|
} catch (error) {
|
|
999
|
-
throw notWritable(error) ? new RenderLockUnwritable(
|
|
485
|
+
throw notWritable(error) ? new RenderLockUnwritable(dirname2(path), error) : error;
|
|
1000
486
|
}
|
|
1001
487
|
let held = false;
|
|
1002
488
|
try {
|
|
1003
489
|
held = await claim(path, holder, marker);
|
|
1004
490
|
} catch (error) {
|
|
1005
|
-
if (notWritable(error)) throw new RenderLockUnwritable(
|
|
491
|
+
if (notWritable(error)) throw new RenderLockUnwritable(dirname2(path), error);
|
|
1006
492
|
if (!isHeldError(error)) throw error;
|
|
1007
493
|
} finally {
|
|
1008
494
|
if (!held) removeIfPresent(marker);
|
|
@@ -1044,337 +530,9 @@ async function acquireRenderSlot(plan, signal, lock = {}) {
|
|
|
1044
530
|
}
|
|
1045
531
|
}
|
|
1046
532
|
|
|
1047
|
-
// src/commands/render/execute.ts
|
|
1048
|
-
import { readFileSync as readFileSync4 } from "fs";
|
|
1049
|
-
import { tmpdir } from "os";
|
|
1050
|
-
|
|
1051
|
-
// src/ui/renderResult.ts
|
|
1052
|
-
function renderMachineResult(result, quiet) {
|
|
1053
|
-
if (quiet || process.stdout.isTTY || process.env.HYPERFRAMES_STDOUT_IS_TTY === "1") return;
|
|
1054
|
-
if (!(REFERENCE_BACKGROUND_FIELD in result)) return;
|
|
1055
|
-
const line = {
|
|
1056
|
-
version: 1,
|
|
1057
|
-
operation: "render",
|
|
1058
|
-
...referenceBackgroundResult(result[REFERENCE_BACKGROUND_FIELD])
|
|
1059
|
-
};
|
|
1060
|
-
process.stdout.write(`@hf-result ${JSON.stringify(line)}
|
|
1061
|
-
`);
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
// src/commands/render/execute.ts
|
|
1065
|
-
function renderLintContinuationHint(strictErrors) {
|
|
1066
|
-
return strictErrors ? " Continuing render despite lint warnings. Use --strict-all to block warnings." : " Continuing render despite lint issues. Use --strict to block errors.";
|
|
1067
|
-
}
|
|
1068
|
-
function renderLintShouldAbort(strictErrors, strictAll, lintResult, definitiveEntryMismatch) {
|
|
1069
|
-
return definitiveEntryMismatch || shouldBlockRender(strictErrors, strictAll, lintResult.totalErrors, lintResult.totalWarnings);
|
|
1070
|
-
}
|
|
1071
|
-
async function executeRenderPlan(plan, dependencies, cancellation) {
|
|
1072
|
-
assertRenderActive(cancellation);
|
|
1073
|
-
applyRenderEnvironment(plan);
|
|
1074
|
-
if (!plan.batchPath) makeOutputFolder(renderOutputDirectory(plan));
|
|
1075
|
-
let batchModule;
|
|
1076
|
-
let preparedBatch;
|
|
1077
|
-
if (plan.batchPath) {
|
|
1078
|
-
batchModule = await import("./batchRender-QB3UD3S3.js");
|
|
1079
|
-
try {
|
|
1080
|
-
preparedBatch = batchModule.prepareBatchRender({
|
|
1081
|
-
batchPath: plan.batchPath,
|
|
1082
|
-
outputTemplate: plan.batchOutputTemplate,
|
|
1083
|
-
indexPath: plan.renderTarget,
|
|
1084
|
-
strictVariables: plan.strictVariables,
|
|
1085
|
-
quiet: plan.quiet || plan.batchJson,
|
|
1086
|
-
json: plan.batchJson
|
|
1087
|
-
});
|
|
1088
|
-
} catch (error) {
|
|
1089
|
-
batchModule.exitBatchRenderInputError(error);
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
const variables = plan.batchPath ? void 0 : resolveVariablesArg(plan.variablesArg, plan.variablesFileArg);
|
|
1093
|
-
await runRenderLint(plan, lintProject, cancellation?.signal);
|
|
1094
|
-
assertRenderActive(cancellation);
|
|
1095
|
-
if (!plan.useDocker) await refuseLowDiskBeforeBrowserDownload(plan);
|
|
1096
|
-
const browserPath = plan.useDocker ? void 0 : await ensureRenderBrowser(plan, cancellation?.signal);
|
|
1097
|
-
assertRenderActive(cancellation);
|
|
1098
|
-
await runResolutionPreflight(plan, dependencies.checkResolution);
|
|
1099
|
-
assertRenderActive(cancellation);
|
|
1100
|
-
const releaseSlot = await dependencies.acquireRenderSlot?.(plan, cancellation?.signal);
|
|
1101
|
-
try {
|
|
1102
|
-
assertRenderActive(cancellation);
|
|
1103
|
-
await executeHeldRender(plan, browserPath, variables, dependencies, cancellation, {
|
|
1104
|
-
batchModule,
|
|
1105
|
-
preparedBatch
|
|
1106
|
-
});
|
|
1107
|
-
} finally {
|
|
1108
|
-
releaseSlot?.();
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
async function executeHeldRender(plan, browserPath, variables, dependencies, cancellation, batch) {
|
|
1112
|
-
const { batchModule, preparedBatch } = batch;
|
|
1113
|
-
if (plan.batchPath && batchModule && preparedBatch) {
|
|
1114
|
-
await executeBatchRender(
|
|
1115
|
-
plan,
|
|
1116
|
-
browserPath,
|
|
1117
|
-
batchModule,
|
|
1118
|
-
preparedBatch,
|
|
1119
|
-
dependencies,
|
|
1120
|
-
cancellation
|
|
1121
|
-
);
|
|
1122
|
-
return;
|
|
1123
|
-
}
|
|
1124
|
-
reportSingleRenderNotes(plan, variables);
|
|
1125
|
-
const options = renderOptionsFromPlan(plan, browserPath, variables);
|
|
1126
|
-
const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
|
|
1127
|
-
const result = await execute(plan.project.dir, plan.outputPath, options, cancellation);
|
|
1128
|
-
renderMachineResult(result, plan.effectiveQuiet);
|
|
1129
|
-
}
|
|
1130
|
-
function reportSingleRenderNotes(plan, variables) {
|
|
1131
|
-
if (variables && Object.keys(variables).length > 0) {
|
|
1132
|
-
const issues = validateVariablesAgainstProject(plan.renderTarget, variables);
|
|
1133
|
-
reportVariableIssues(issues, { strict: plan.strictVariables, quiet: plan.effectiveQuiet });
|
|
1134
|
-
}
|
|
1135
|
-
if (plan.proresProfile && !PRORES_PROFILES[plan.proresProfile].alpha && !plan.effectiveQuiet) {
|
|
1136
|
-
console.log(
|
|
1137
|
-
c.dim(`ProRes ${plan.proresProfile} has no alpha channel: transparent areas render black.`)
|
|
1138
|
-
);
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
function renderOptionsFromPlan(plan, browserPath, variables) {
|
|
1142
|
-
const options = {
|
|
1143
|
-
fps: plan.fps,
|
|
1144
|
-
quality: plan.quality,
|
|
1145
|
-
authoringSkill: plan.authoringSkill,
|
|
1146
|
-
authoringSkillSource: plan.authoringSkillSource,
|
|
1147
|
-
authoringSkillInvalid: plan.invalidAuthoringSkill,
|
|
1148
|
-
hfEnvOverrides: plan.hfEnvOverrides,
|
|
1149
|
-
catalogUsage: plan.catalogUsage,
|
|
1150
|
-
format: plan.format,
|
|
1151
|
-
gifLoop: plan.gifLoop,
|
|
1152
|
-
gifFpsCapped: plan.gifFpsCapped,
|
|
1153
|
-
hlsSegmentSeconds: plan.hlsSegmentSeconds,
|
|
1154
|
-
workers: plan.workers,
|
|
1155
|
-
gpu: plan.useGpu,
|
|
1156
|
-
browserGpuMode: plan.browserGpuMode,
|
|
1157
|
-
hdrMode: plan.hdrMode,
|
|
1158
|
-
crf: plan.crf,
|
|
1159
|
-
vp9CpuUsed: plan.vp9CpuUsed,
|
|
1160
|
-
videoBitrate: plan.videoBitrate,
|
|
1161
|
-
keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
|
|
1162
|
-
range: plan.range,
|
|
1163
|
-
proresProfile: plan.proresProfile,
|
|
1164
|
-
maxBitrate: plan.maxBitrate,
|
|
1165
|
-
bufferSize: plan.bufferSize,
|
|
1166
|
-
videoFrameFormat: plan.videoFrameFormat,
|
|
1167
|
-
pageMotionBlur: plan.pageMotionBlur,
|
|
1168
|
-
quiet: plan.effectiveQuiet,
|
|
1169
|
-
browserPath,
|
|
1170
|
-
debug: plan.debug,
|
|
1171
|
-
resumeSegments: plan.resumeSegments,
|
|
1172
|
-
keepSegments: plan.keepSegments,
|
|
1173
|
-
bestEffort: plan.bestEffort,
|
|
1174
|
-
variables,
|
|
1175
|
-
entryFile: plan.entryFile,
|
|
1176
|
-
outputResolution: plan.outputResolution,
|
|
1177
|
-
outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
|
|
1178
|
-
outputResolutionRaw: plan.outputResolutionRaw,
|
|
1179
|
-
pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
|
|
1180
|
-
protocolTimeout: plan.protocolTimeout,
|
|
1181
|
-
playerReadyTimeout: plan.playerReadyTimeout,
|
|
1182
|
-
exitAfterComplete: true,
|
|
1183
|
-
manageDeParallelRouterBreaker: true
|
|
1184
|
-
};
|
|
1185
|
-
if (plan.useDocker) {
|
|
1186
|
-
options.pageSideCompositing = plan.pageSideCompositing;
|
|
1187
|
-
options.experimentalFastCapture = plan.experimentalFastCapture;
|
|
1188
|
-
}
|
|
1189
|
-
return options;
|
|
1190
|
-
}
|
|
1191
|
-
function assertRenderActive(cancellation) {
|
|
1192
|
-
cancellation?.checkAncestors();
|
|
1193
|
-
cancellation?.signal.throwIfAborted();
|
|
1194
|
-
}
|
|
1195
|
-
async function refuseLowDiskBeforeBrowserDownload(plan) {
|
|
1196
|
-
const { checkDisk } = await import("./preflight-2R2MAQIC.js");
|
|
1197
|
-
await (await import("./manager-MKDNQ5KZ.js")).sweepKilledInstalls();
|
|
1198
|
-
const paths = /* @__PURE__ */ new Set([tmpdir(), renderOutputDirectory(plan)]);
|
|
1199
|
-
const low = [...paths].map((path) => checkDisk(path)).filter((outcome) => !outcome.ok);
|
|
1200
|
-
if (low.length === 0) return;
|
|
1201
|
-
for (const check of low) errorBox(check.title ?? "Low disk space", check.detail, check.hint);
|
|
1202
|
-
failCommand();
|
|
1203
|
-
}
|
|
1204
|
-
async function ensureRenderBrowser(plan, signal) {
|
|
1205
|
-
const { ensureBrowser } = await import("./manager-MKDNQ5KZ.js");
|
|
1206
|
-
let browserSpinner;
|
|
1207
|
-
try {
|
|
1208
|
-
if (plan.effectiveQuiet) {
|
|
1209
|
-
return (await ensureBrowser({ preferManagedChrome: true, signal })).executablePath;
|
|
1210
|
-
}
|
|
1211
|
-
const clack = await import("./prompts-27EPTM64.js");
|
|
1212
|
-
browserSpinner = clack.spinner();
|
|
1213
|
-
browserSpinner.start("Checking browser...");
|
|
1214
|
-
const info = await ensureBrowser({
|
|
1215
|
-
preferManagedChrome: true,
|
|
1216
|
-
signal,
|
|
1217
|
-
onProgress: (downloaded, total) => {
|
|
1218
|
-
if (total <= 0) return;
|
|
1219
|
-
const pct = Math.floor(downloaded / total * 100);
|
|
1220
|
-
browserSpinner?.message(
|
|
1221
|
-
`Downloading Chrome... ${c.progress(pct + "%")} ${c.dim("(" + formatBytes(downloaded) + " / " + formatBytes(total) + ")")}`
|
|
1222
|
-
);
|
|
1223
|
-
}
|
|
1224
|
-
});
|
|
1225
|
-
browserSpinner.stop(c.dim(`Browser: ${info.source}`));
|
|
1226
|
-
return info.executablePath;
|
|
1227
|
-
} catch (error) {
|
|
1228
|
-
browserSpinner?.stop(c.error("Browser not available"));
|
|
1229
|
-
if (signal?.aborted) signal.throwIfAborted();
|
|
1230
|
-
errorBox(
|
|
1231
|
-
"Chrome not found",
|
|
1232
|
-
normalizeErrorMessage(error),
|
|
1233
|
-
"Run: npx hyperframes browser ensure"
|
|
1234
|
-
);
|
|
1235
|
-
failCommand();
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
async function runRenderLint(plan, runLint = lintProject, signal) {
|
|
1239
|
-
const explicitEntry = plan.entryFile ? plan.renderTarget : void 0;
|
|
1240
|
-
const lintResult = signal && runLint === lintProject ? await runRenderLintInOwnedProcess(plan.project.dir, explicitEntry, signal) : await runLint(plan.project.dir, explicitEntry);
|
|
1241
|
-
if (lintResult.totalErrors === 0 && lintResult.totalWarnings === 0) return;
|
|
1242
|
-
const definitiveEntryMismatch = hasDefinitiveEntryMismatch(lintResult);
|
|
1243
|
-
const willAbort = renderLintShouldAbort(
|
|
1244
|
-
plan.strictErrors,
|
|
1245
|
-
plan.strictAll,
|
|
1246
|
-
lintResult,
|
|
1247
|
-
definitiveEntryMismatch
|
|
1248
|
-
);
|
|
1249
|
-
presentRenderLintFindings(lintResult, plan.effectiveQuiet, plan.lintVerbose || willAbort);
|
|
1250
|
-
if (willAbort) {
|
|
1251
|
-
presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch);
|
|
1252
|
-
failCommand();
|
|
1253
|
-
}
|
|
1254
|
-
presentRenderLintContinuation(plan);
|
|
1255
|
-
}
|
|
1256
|
-
async function runRenderLintInOwnedProcess(projectDir, entryFile, signal) {
|
|
1257
|
-
return runRenderSetupWorker(
|
|
1258
|
-
"lint",
|
|
1259
|
-
{ projectDir, entryFile },
|
|
1260
|
-
{
|
|
1261
|
-
signal,
|
|
1262
|
-
maxBufferBytes: 8 * 1024 * 1024
|
|
1263
|
-
}
|
|
1264
|
-
);
|
|
1265
|
-
}
|
|
1266
|
-
function presentRenderLintFindings(lintResult, quiet, lintVerbose) {
|
|
1267
|
-
if (quiet) return;
|
|
1268
|
-
console.log("");
|
|
1269
|
-
for (const line of formatLintStartupMessage(
|
|
1270
|
-
lintResult,
|
|
1271
|
-
lintVerbose ? { kind: "verbose", options: { errorsFirst: true } } : { kind: "summary" }
|
|
1272
|
-
))
|
|
1273
|
-
console.log(line);
|
|
1274
|
-
}
|
|
1275
|
-
function presentRenderLintAbort(plan, lintResult, definitiveEntryMismatch) {
|
|
1276
|
-
const mode = plan.strictAll ? "--strict-all" : "--strict";
|
|
1277
|
-
const counts = `${lintResult.totalErrors} error(s), ${lintResult.totalWarnings} warning(s)`;
|
|
1278
|
-
const findings = lintResult.results.flatMap((entry) => entry.result.findings);
|
|
1279
|
-
const first = findings.find((finding) => finding.severity === "error") ?? findings[0];
|
|
1280
|
-
errorBox(
|
|
1281
|
-
definitiveEntryMismatch ? "Aborting render because the default index.html entry is blank." : `Aborting render due to lint issues in ${mode} mode: ${counts}`,
|
|
1282
|
-
first ? `${first.code}: ${first.message}` : void 0,
|
|
1283
|
-
"Run hyperframes lint for the full list."
|
|
1284
|
-
);
|
|
1285
|
-
}
|
|
1286
|
-
function presentRenderLintContinuation(plan) {
|
|
1287
|
-
if (plan.effectiveQuiet) return;
|
|
1288
|
-
console.log(c.dim(renderLintContinuationHint(plan.strictErrors)));
|
|
1289
|
-
console.log("");
|
|
1290
|
-
}
|
|
1291
|
-
async function runResolutionPreflight(plan, checkResolution) {
|
|
1292
|
-
if (!plan.outputResolution) return;
|
|
1293
|
-
let issue;
|
|
1294
|
-
try {
|
|
1295
|
-
issue = await checkResolution(readFileSync4(plan.renderTarget, "utf8"), plan.outputResolution, {
|
|
1296
|
-
alphaRequested: plan.format === "webm" || plan.format === "mov" || plan.format === "png-sequence",
|
|
1297
|
-
hdrRequested: plan.hdrMode === "force-hdr",
|
|
1298
|
-
aspectAgnostic: plan.outputResolutionAspectAgnostic
|
|
1299
|
-
});
|
|
1300
|
-
} catch {
|
|
1301
|
-
}
|
|
1302
|
-
if (!issue) return;
|
|
1303
|
-
trackRenderPreflightRejected({ kind: issue.kind });
|
|
1304
|
-
errorBox("Output resolution incompatible", issue.message);
|
|
1305
|
-
failCommand();
|
|
1306
|
-
}
|
|
1307
|
-
function batchRowRenderOptions(plan, browserPath) {
|
|
1308
|
-
const batchQuiet = plan.quiet || plan.batchJson;
|
|
1309
|
-
return {
|
|
1310
|
-
fps: plan.fps,
|
|
1311
|
-
quality: plan.quality,
|
|
1312
|
-
authoringSkill: plan.authoringSkill,
|
|
1313
|
-
authoringSkillSource: plan.authoringSkillSource,
|
|
1314
|
-
authoringSkillInvalid: plan.invalidAuthoringSkill,
|
|
1315
|
-
hfEnvOverrides: plan.hfEnvOverrides,
|
|
1316
|
-
catalogUsage: plan.catalogUsage,
|
|
1317
|
-
format: plan.format,
|
|
1318
|
-
gifLoop: plan.gifLoop,
|
|
1319
|
-
gifFpsCapped: plan.gifFpsCapped,
|
|
1320
|
-
hlsSegmentSeconds: plan.hlsSegmentSeconds,
|
|
1321
|
-
workers: plan.workers,
|
|
1322
|
-
gpu: plan.useGpu,
|
|
1323
|
-
browserGpuMode: plan.browserGpuMode,
|
|
1324
|
-
hdrMode: plan.hdrMode,
|
|
1325
|
-
crf: plan.crf,
|
|
1326
|
-
vp9CpuUsed: plan.vp9CpuUsed,
|
|
1327
|
-
videoBitrate: plan.videoBitrate,
|
|
1328
|
-
keyframeIntervalSeconds: plan.keyframeIntervalSeconds,
|
|
1329
|
-
range: plan.range,
|
|
1330
|
-
proresProfile: plan.proresProfile,
|
|
1331
|
-
maxBitrate: plan.maxBitrate,
|
|
1332
|
-
bufferSize: plan.bufferSize,
|
|
1333
|
-
videoFrameFormat: plan.videoFrameFormat,
|
|
1334
|
-
pageMotionBlur: plan.pageMotionBlur,
|
|
1335
|
-
quiet: batchQuiet,
|
|
1336
|
-
browserPath,
|
|
1337
|
-
entryFile: plan.entryFile,
|
|
1338
|
-
outputResolution: plan.outputResolution,
|
|
1339
|
-
outputResolutionAspectAgnostic: plan.outputResolutionAspectAgnostic,
|
|
1340
|
-
outputResolutionRaw: plan.outputResolutionRaw,
|
|
1341
|
-
pageNavigationTimeoutMs: plan.pageNavigationTimeoutMs,
|
|
1342
|
-
protocolTimeout: plan.protocolTimeout,
|
|
1343
|
-
playerReadyTimeout: plan.playerReadyTimeout,
|
|
1344
|
-
debug: plan.debug,
|
|
1345
|
-
resumeSegments: plan.resumeSegments,
|
|
1346
|
-
keepSegments: plan.keepSegments,
|
|
1347
|
-
bestEffort: plan.bestEffort,
|
|
1348
|
-
exitAfterComplete: false,
|
|
1349
|
-
throwOnError: true,
|
|
1350
|
-
skipFeedback: true,
|
|
1351
|
-
desktopHint: false,
|
|
1352
|
-
manageDeParallelRouterBreaker: plan.batchConcurrency <= 1
|
|
1353
|
-
};
|
|
1354
|
-
}
|
|
1355
|
-
async function executeBatchRender(plan, browserPath, batchModule, preparedBatch, dependencies, cancellation) {
|
|
1356
|
-
const batchQuiet = plan.quiet || plan.batchJson;
|
|
1357
|
-
const renderOptionsBase = batchRowRenderOptions(plan, browserPath);
|
|
1358
|
-
const manifest = await batchModule.runBatchRender({
|
|
1359
|
-
prepared: preparedBatch,
|
|
1360
|
-
concurrency: plan.batchConcurrency,
|
|
1361
|
-
failFast: plan.batchFailFast,
|
|
1362
|
-
quiet: batchQuiet,
|
|
1363
|
-
json: plan.batchJson,
|
|
1364
|
-
renderOne: (row) => {
|
|
1365
|
-
assertRenderActive(cancellation);
|
|
1366
|
-
const options = { ...renderOptionsBase, variables: row.variables };
|
|
1367
|
-
if (plan.useDocker) options.pageSideCompositing = plan.pageSideCompositing;
|
|
1368
|
-
const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal;
|
|
1369
|
-
return execute(plan.project.dir, row.outputPath, options, cancellation);
|
|
1370
|
-
}
|
|
1371
|
-
});
|
|
1372
|
-
if (manifest.failed > 0) setCommandExitCode(1);
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
533
|
// src/commands/render.ts
|
|
1376
|
-
import { freemem, tmpdir
|
|
1377
|
-
import { resolve
|
|
534
|
+
import { freemem, tmpdir } from "os";
|
|
535
|
+
import { resolve, dirname as dirname3, join as join2, basename as basename2 } from "path";
|
|
1378
536
|
import { execFileSync as execFileSync2, spawn } from "child_process";
|
|
1379
537
|
|
|
1380
538
|
// src/utils/webmAlphaCheck.ts
|
|
@@ -2134,11 +1292,11 @@ function dockerImageTag(version) {
|
|
|
2134
1292
|
return `${DOCKER_IMAGE_PREFIX}:${version}`;
|
|
2135
1293
|
}
|
|
2136
1294
|
function resolveDockerfilePath() {
|
|
2137
|
-
const builtPath =
|
|
2138
|
-
const devPath =
|
|
1295
|
+
const builtPath = resolve(__dirname, "docker", "Dockerfile.render");
|
|
1296
|
+
const devPath = resolve(__dirname, "..", "src", "docker", "Dockerfile.render");
|
|
2139
1297
|
for (const p of [builtPath, devPath]) {
|
|
2140
1298
|
try {
|
|
2141
|
-
|
|
1299
|
+
statSync(p);
|
|
2142
1300
|
return p;
|
|
2143
1301
|
} catch {
|
|
2144
1302
|
continue;
|
|
@@ -2166,8 +1324,8 @@ function ensureDockerImage(version, platform, quiet) {
|
|
|
2166
1324
|
}
|
|
2167
1325
|
if (!quiet) console.log(c.dim(` Building Docker image: ${tag} (${platform})...`));
|
|
2168
1326
|
const dockerfilePath = resolveDockerfilePath();
|
|
2169
|
-
const tmpDir = mkdtempSync(
|
|
2170
|
-
writeFileSync2(
|
|
1327
|
+
const tmpDir = mkdtempSync(join2(tmpdir(), "hyperframes-docker-"));
|
|
1328
|
+
writeFileSync2(join2(tmpDir, "Dockerfile"), readFileSync3(dockerfilePath));
|
|
2171
1329
|
const targetArch = platform === "linux/arm64" ? "arm64" : "amd64";
|
|
2172
1330
|
try {
|
|
2173
1331
|
execFileSync2(
|
|
@@ -2238,12 +1396,12 @@ async function renderDocker(projectDir, outputPath, options) {
|
|
|
2238
1396
|
errorBox(failure.title, failure.message, failure.hint);
|
|
2239
1397
|
failCommand();
|
|
2240
1398
|
}
|
|
2241
|
-
const outputDir =
|
|
1399
|
+
const outputDir = dirname3(outputPath);
|
|
2242
1400
|
const outputFilename = basename2(outputPath);
|
|
2243
1401
|
const dockerArgs = buildDockerRunArgs({
|
|
2244
1402
|
imageTag,
|
|
2245
|
-
projectDir:
|
|
2246
|
-
outputDir:
|
|
1403
|
+
projectDir: resolve(projectDir),
|
|
1404
|
+
outputDir: resolve(outputDir),
|
|
2247
1405
|
outputFilename,
|
|
2248
1406
|
platform,
|
|
2249
1407
|
hostStdoutIsTty: process.stdout.isTTY === true,
|
|
@@ -2305,7 +1463,7 @@ async function renderDocker(projectDir, outputPath, options) {
|
|
|
2305
1463
|
}
|
|
2306
1464
|
const elapsed = Date.now() - startTime;
|
|
2307
1465
|
const cpuUsage = cpu.stop();
|
|
2308
|
-
markRenderSucceeded();
|
|
1466
|
+
if (!options.embedded) markRenderSucceeded();
|
|
2309
1467
|
await runPostRenderStepAsync(
|
|
2310
1468
|
"recordRenderSuccess",
|
|
2311
1469
|
() => recordRenderSuccess(projectDir, outputPath, "completed", capture).then(() => {
|
|
@@ -2346,7 +1504,7 @@ async function renderDocker(projectDir, outputPath, options) {
|
|
|
2346
1504
|
"warnIfWebmAlphaDropped",
|
|
2347
1505
|
() => warnIfWebmAlphaDropped(outputPath, options.format, options.quiet)
|
|
2348
1506
|
);
|
|
2349
|
-
if (options.exitAfterComplete) scheduleCliExit();
|
|
1507
|
+
if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
|
|
2350
1508
|
return { renderTimeMs: elapsed };
|
|
2351
1509
|
}
|
|
2352
1510
|
async function renderLocal(projectDir, outputPath, options, commandCancellation) {
|
|
@@ -2379,7 +1537,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
|
|
|
2379
1537
|
}
|
|
2380
1538
|
const preflight = await runEnvironmentChecks({
|
|
2381
1539
|
projectDir,
|
|
2382
|
-
diskPaths: [
|
|
1540
|
+
diskPaths: [tmpdir(), dirname3(outputPath)],
|
|
2383
1541
|
browserPath: options.browserPath,
|
|
2384
1542
|
includeBrowser: true,
|
|
2385
1543
|
includeDisk: true,
|
|
@@ -2559,7 +1717,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
|
|
|
2559
1717
|
job
|
|
2560
1718
|
);
|
|
2561
1719
|
}
|
|
2562
|
-
markRenderSucceeded();
|
|
1720
|
+
if (!options.embedded) markRenderSucceeded();
|
|
2563
1721
|
await runPostRenderStepAsync(
|
|
2564
1722
|
"recordRenderSuccess",
|
|
2565
1723
|
() => recordRenderSuccess(
|
|
@@ -2610,7 +1768,7 @@ async function executeLocalRender(projectDir, outputPath, options, cancellation)
|
|
|
2610
1768
|
})
|
|
2611
1769
|
);
|
|
2612
1770
|
}
|
|
2613
|
-
if (options.exitAfterComplete) scheduleCliExit();
|
|
1771
|
+
if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
|
|
2614
1772
|
const durationMs = job.perfSummary ? Math.round(job.perfSummary.compositionDurationSeconds * 1e3) : void 0;
|
|
2615
1773
|
const outcome = job.outcome === "completed_with_warnings" ? "completed_with_warnings" : "completed";
|
|
2616
1774
|
return {
|
|
@@ -2644,7 +1802,7 @@ async function renderRange(input) {
|
|
|
2644
1802
|
} catch (error) {
|
|
2645
1803
|
handleRenderError(error, options, input.startTime, input.cpu, false, "");
|
|
2646
1804
|
}
|
|
2647
|
-
markRenderSucceeded();
|
|
1805
|
+
if (!options.embedded) markRenderSucceeded();
|
|
2648
1806
|
const elapsed = Date.now() - input.startTime;
|
|
2649
1807
|
input.cpu.stop();
|
|
2650
1808
|
printRenderComplete({
|
|
@@ -2655,7 +1813,7 @@ async function renderRange(input) {
|
|
|
2655
1813
|
quiet: options.quiet,
|
|
2656
1814
|
format: options.format
|
|
2657
1815
|
});
|
|
2658
|
-
if (options.exitAfterComplete) scheduleCliExit();
|
|
1816
|
+
if (options.exitAfterComplete && !options.embedded) scheduleCliExit();
|
|
2659
1817
|
return {
|
|
2660
1818
|
renderTimeMs: elapsed,
|
|
2661
1819
|
...reference,
|
|
@@ -3127,13 +2285,13 @@ function trackRenderMetrics(job, elapsedMs, options, docker, cpuUsage) {
|
|
|
3127
2285
|
}
|
|
3128
2286
|
function readOutputFootprint(outputPath) {
|
|
3129
2287
|
try {
|
|
3130
|
-
const stat =
|
|
2288
|
+
const stat = statSync(outputPath);
|
|
3131
2289
|
if (!stat.isDirectory()) return { fileSize: formatBytes(stat.size), isDirectory: false };
|
|
3132
2290
|
let total = 0;
|
|
3133
2291
|
for (const entry of readdirSync2(outputPath, { withFileTypes: true })) {
|
|
3134
2292
|
if (!entry.isFile()) continue;
|
|
3135
2293
|
try {
|
|
3136
|
-
total +=
|
|
2294
|
+
total += statSync(join2(outputPath, entry.name)).size;
|
|
3137
2295
|
} catch {
|
|
3138
2296
|
}
|
|
3139
2297
|
}
|