hyperframes 0.9.55 → 0.9.56
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-2LZ5XA27.js → add-KW7OTOWF.js} +19 -19
- package/dist/{agentPromptGenerator-RSFEFNFL.js → agentPromptGenerator-NNXUWNU4.js} +11 -11
- package/dist/{animatedGifPrep-AX4MK2QD.js → animatedGifPrep-6ATQHQON.js} +12 -12
- package/dist/api.js +40 -39
- package/dist/{appHistory-T3ZLA7QN.js → appHistory-KHX53SGI.js} +6 -4
- package/dist/{asset-XYQJVHR2.js → asset-QVINGJRK.js} +2 -2
- package/dist/{assetCataloger-WTFR2Z5Q.js → assetCataloger-DENJPUBH.js} +12 -12
- package/dist/{audio-U2OIHTUI.js → audio-LB7HQYPJ.js} +21 -21
- package/dist/{auth-DXESNULL.js → auth-7AGRVI5A.js} +2 -2
- package/dist/{autoUpdate-DWT4YYU2.js → autoUpdate-ITCP2JDM.js} +2 -2
- package/dist/{avatars-EL5RBI4P.js → avatars-2K2C74EQ.js} +15 -14
- package/dist/{backgroundChecks-T2DL425O.js → backgroundChecks-UOTBCWPN.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-CMG4SVBX.js → batchRender-Z7ESYQDS.js} +9 -7
- package/dist/{beats-HU756KUO.js → beats-TG6ZB3XH.js} +10 -10
- package/dist/{benchmark-HBNCPXH5.js → benchmark-RU5MLZHE.js} +16 -16
- package/dist/{billing-LGHM3LC7.js → billing-VB5PYYSN.js} +15 -15
- package/dist/{browser-XIFUT5OB.js → browser-VSQRY5GG.js} +9 -9
- package/dist/{bundleWithLocalizedFonts-JPPBCCVV.js → bundleWithLocalizedFonts-XDPJE355.js} +1 -1
- package/dist/{capture-ZY7G3QSM.js → capture-M4FL7MWI.js} +22 -22
- package/dist/{capture-B6DSZD2P.js → capture-TQCFWPAT.js} +4 -4
- package/dist/{captureCompositionFrame-2WRG6SNW.js → captureCompositionFrame-XF67Q6YK.js} +17 -17
- package/dist/{captureFile-LXMDM5TD.js → captureFile-F254H22J.js} +3 -3
- package/dist/{catalog-CUEOQ4PJ.js → catalog-24EGH662.js} +19 -19
- package/dist/catalog-artifact/media-vectors.json +205 -0
- package/dist/{catch-up-BAYJTXAL.js → catch-up-L23HGDLB.js} +13 -13
- package/dist/{check-KGXBQPRZ.js → check-F4HQVV2M.js} +50 -48
- package/dist/{checkAudio-6PI7DJLP.js → checkAudio-6DT3ONR7.js} +13 -13
- package/dist/{checkBrowser-4SGXUL27.js → checkBrowser-S7P4X7QV.js} +40 -40
- package/dist/{chunk-Q42L7V5T.js → chunk-2GRCTZNS.js} +1 -1
- package/dist/{chunk-FMYXLRJN.js → chunk-2ZOJCSLJ.js} +3 -3
- package/dist/{chunk-ER22SVLT.js → chunk-3GVHDPEP.js} +1 -1
- package/dist/{chunk-EXEX7TSU.js → chunk-43CQTZGB.js} +11 -12
- package/dist/{chunk-ND5SQJAB.js → chunk-4DJGUZJR.js} +2 -2
- package/dist/{chunk-J424KJXV.js → chunk-4GPKDDQZ.js} +7 -7
- package/dist/{chunk-KHEOHL5O.js → chunk-4WSJ5MUN.js} +1 -1
- package/dist/{chunk-T5S7U5C6.js → chunk-52XHPMCX.js} +1 -1
- package/dist/chunk-56T2OGYR.js +5085 -0
- package/dist/{chunk-TMLKMCZK.js → chunk-5GSCSZOS.js} +2 -2
- package/dist/{chunk-3L2POG2J.js → chunk-5IE5ZI66.js} +37 -8
- package/dist/{chunk-CHQWDBUM.js → chunk-5ZDNSYTO.js} +8 -13
- package/dist/{chunk-N7M2SNAF.js → chunk-664QGMR4.js} +2 -2
- package/dist/chunk-677JGYQL.js +91 -0
- package/dist/{chunk-PCNNMAUX.js → chunk-6LONEKJR.js} +211 -155
- package/dist/{chunk-LEIR7IDJ.js → chunk-6LU6JICP.js} +80 -1
- package/dist/{chunk-AHXRYOTC.js → chunk-6XRXUMFG.js} +1 -1
- package/dist/{chunk-W2GXQ3CR.js → chunk-7DKWEIH4.js} +9 -9
- package/dist/{chunk-QGQYMSYM.js → chunk-7E7VKASF.js} +2 -2
- package/dist/{chunk-5HJZGP54.js → chunk-7F4RAWDS.js} +2 -2
- package/dist/{chunk-OYEGPK3Q.js → chunk-7HQC5MDZ.js} +1 -1
- package/dist/{chunk-AYESPEPQ.js → chunk-7QFLMCTD.js} +6 -1
- package/dist/{chunk-4ZQG3Z3J.js → chunk-AN6KWGYI.js} +2 -2
- package/dist/{chunk-JAAIW4JR.js → chunk-ANYW22IT.js} +1 -1
- package/dist/{chunk-3USMIMBB.js → chunk-APCVZGU6.js} +395 -109
- package/dist/{chunk-NUGAYGT3.js → chunk-B6BWLFAF.js} +1 -1
- package/dist/{chunk-VCKUDUPN.js → chunk-BA33QNKK.js} +199 -15
- package/dist/{chunk-JS7UI73E.js → chunk-BMVUB2CY.js} +6 -6
- package/dist/{chunk-E7GHBT2M.js → chunk-BPYNILOZ.js} +4 -4
- package/dist/{chunk-XFSZ3IXC.js → chunk-BR7GOCQJ.js} +1 -1
- package/dist/{chunk-32IRBM3V.js → chunk-BTJYK56C.js} +3 -3
- package/dist/{chunk-KVYHRUZX.js → chunk-BUG5AOPJ.js} +3 -3
- package/dist/{chunk-FLQT2FVH.js → chunk-BW4H55SU.js} +1 -1
- package/dist/{chunk-SDFGDNWV.js → chunk-BZXW5QU7.js} +1 -1
- package/dist/{chunk-WPD7JH6F.js → chunk-CBG6MIT2.js} +2 -2
- package/dist/{chunk-O7TIBLSJ.js → chunk-CKIVYAKG.js} +80 -15
- package/dist/{chunk-YVCPUVHV.js → chunk-CKIYT34K.js} +1 -1
- package/dist/{chunk-6EG3W5AD.js → chunk-CLRHKYOK.js} +5 -5
- package/dist/{chunk-MDOMSEK2.js → chunk-CNXZCMJZ.js} +2 -2
- package/dist/{chunk-NISP57R3.js → chunk-CPSD7337.js} +51 -28
- package/dist/{chunk-MO5NTFSC.js → chunk-CUO2HF4M.js} +2 -2
- package/dist/{chunk-5LSMAWK5.js → chunk-CWIOKI2R.js} +1 -1
- package/dist/{chunk-TFVIXR6V.js → chunk-CXFW7YPT.js} +42 -48
- package/dist/{chunk-OWQWMQTY.js → chunk-CZCZ5YXT.js} +1 -1
- package/dist/{chunk-7DJCG5ED.js → chunk-D3WRRPHI.js} +5 -5
- package/dist/{chunk-LGYCWN3Q.js → chunk-DDCXMXAD.js} +11 -11
- package/dist/{chunk-K2VFTUAA.js → chunk-DUZ6Z2ZN.js} +1 -1
- package/dist/{chunk-XLQUCTC2.js → chunk-EBRN4YJH.js} +3 -3
- package/dist/{chunk-HLDUHLYO.js → chunk-EGR2ZFFP.js} +4 -4
- package/dist/{chunk-AU4ZBCR3.js → chunk-EKSS3KI7.js} +1 -1
- package/dist/{chunk-E2DHBP6C.js → chunk-FGGRBKWL.js} +1 -1
- package/dist/{chunk-QX4TZ2RK.js → chunk-GTC2STHN.js} +72 -54
- package/dist/{chunk-X4KIL5BW.js → chunk-HCQXGGVY.js} +14 -14
- package/dist/{chunk-OOWZ6M75.js → chunk-HOCV5AW6.js} +2 -2
- package/dist/{chunk-TN3WGE3L.js → chunk-HVG656G6.js} +3 -3
- package/dist/{chunk-NFLH3TQ5.js → chunk-ICDGP335.js} +13 -10
- package/dist/{chunk-NKAW4RVE.js → chunk-IDGWNOBX.js} +1 -1
- package/dist/{chunk-YU5LSWA2.js → chunk-IHX3AFTY.js} +2 -2
- package/dist/{chunk-CAYQATCT.js → chunk-IO7PRQQC.js} +1 -1
- package/dist/{chunk-6BGTTCKN.js → chunk-IRZUZ32B.js} +3 -3
- package/dist/{chunk-RBOKZ5ED.js → chunk-IT2QBRVS.js} +1 -1
- package/dist/{chunk-PXLGDX2S.js → chunk-JDXALWOM.js} +39 -24
- package/dist/{chunk-BOEEHWDX.js → chunk-JPEIUGS5.js} +1 -1
- package/dist/{chunk-4IUOWNDS.js → chunk-JQKCRTVQ.js} +2 -2
- package/dist/{chunk-VPX4GVGQ.js → chunk-KRYXZVA2.js} +3 -3
- package/dist/{chunk-TEA4ZEHB.js → chunk-L5CBCPUH.js} +7 -7
- package/dist/{chunk-JVA3SAGB.js → chunk-L5NPBGQB.js} +15 -22
- package/dist/{chunk-B5HSHXE2.js → chunk-LH5FRVAO.js} +12 -7
- package/dist/{chunk-NHNFBLBM.js → chunk-LK7F7P2X.js} +5 -2
- package/dist/{chunk-WQGQCSRY.js → chunk-LRQEIKFT.js} +4 -4
- package/dist/{chunk-2LQJHVI7.js → chunk-LRWWCTSJ.js} +2 -2
- package/dist/{chunk-VK3MQSA2.js → chunk-MK4RH5L7.js} +5 -2
- package/dist/{chunk-KD33HZPP.js → chunk-MP52CUHL.js} +2 -2
- package/dist/{chunk-ATKA5KHE.js → chunk-MPOWSPBD.js} +3 -3
- package/dist/{chunk-FLHL32SV.js → chunk-MVLAPENI.js} +36 -8
- package/dist/{chunk-2PASB3PC.js → chunk-NCJSN6SV.js} +5 -5
- package/dist/{chunk-UCLUH5AG.js → chunk-NFST2HIM.js} +2 -2
- package/dist/{chunk-NMQCIUBE.js → chunk-OXT2LXZB.js} +8 -6
- package/dist/{chunk-CRRVULYR.js → chunk-PCKKKICA.js} +15 -3
- package/dist/{chunk-TPLO6NJI.js → chunk-PGHROSLJ.js} +4 -4
- package/dist/{chunk-4S53OP2C.js → chunk-PGJYA6I3.js} +11 -11
- package/dist/{chunk-BMJGWQ5X.js → chunk-PHAZT6EB.js} +1 -1
- package/dist/{chunk-KCF6Q54R.js → chunk-PUTPYYE4.js} +1 -1
- package/dist/{chunk-NRGNEP3R.js → chunk-PVF32NRA.js} +2 -2
- package/dist/{chunk-DQHFS4AE.js → chunk-Q2TT62RQ.js} +3 -3
- package/dist/{chunk-EXXIFMUX.js → chunk-QBADK3LD.js} +13 -5
- package/dist/{chunk-2XZ76TF4.js → chunk-QJDMX53S.js} +1 -1
- package/dist/{chunk-F7B2YDPM.js → chunk-QNIID7EN.js} +6 -8
- package/dist/{chunk-5BWIBP2F.js → chunk-QTZICZWT.js} +4 -4
- package/dist/{chunk-NFNYYBD6.js → chunk-R2LP7QPB.js} +1 -1
- package/dist/{chunk-3ANC4SO2.js → chunk-RCGNYXWK.js} +14 -14
- package/dist/{chunk-FPRHOB5W.js → chunk-RFULFCYW.js} +2 -2
- package/dist/{chunk-26RTKW2U.js → chunk-RRT6URIP.js} +2 -2
- package/dist/{chunk-PLFOZIEH.js → chunk-SGWDJLFL.js} +1 -1
- package/dist/{chunk-QWBJABCA.js → chunk-T5HYPGST.js} +3 -3
- package/dist/{chunk-OM2WIZOR.js → chunk-TVZTTWU7.js} +2 -2
- package/dist/{chunk-QQLVSUO7.js → chunk-TY7EHE4Q.js} +2 -2
- package/dist/{chunk-OAV5ESA6.js → chunk-UIMXEY4U.js} +4 -4
- package/dist/{chunk-KWTTELUY.js → chunk-UVPLW55S.js} +37 -1
- package/dist/{chunk-EKZ5FGV7.js → chunk-VC4YMXUQ.js} +1 -1
- package/dist/{chunk-YY7ZJHL3.js → chunk-VCSQLM36.js} +4 -4
- package/dist/{chunk-MWTOYGIJ.js → chunk-VVXSMYXQ.js} +3 -3
- package/dist/{chunk-ZLG2E7GC.js → chunk-W4AR7UZH.js} +1 -1
- package/dist/{chunk-TULCSCC4.js → chunk-WFB4XPJR.js} +9 -9
- package/dist/{chunk-UHE44FC4.js → chunk-WGWKT7ME.js} +3 -3
- package/dist/{chunk-GKOF2RS3.js → chunk-WHX2OV4C.js} +1 -1
- package/dist/{chunk-27YDEBOP.js → chunk-WUY74LHU.js} +1 -1
- package/dist/{chunk-3WG7IC5Z.js → chunk-XD5T43S7.js} +1 -1
- package/dist/{chunk-RIAH7WEL.js → chunk-XEVAW42J.js} +9 -9
- package/dist/{chunk-NCSBBZQ5.js → chunk-XKNNZ4WR.js} +1 -1
- package/dist/{chunk-EUJSQHIL.js → chunk-XLP34AJR.js} +1 -1
- package/dist/{chunk-FOKS5HQ2.js → chunk-YDNBMPP3.js} +4 -4
- package/dist/{chunk-UHVB2TVW.js → chunk-YFWFCKKF.js} +149 -129
- package/dist/{chunk-N4CJSWTO.js → chunk-YOMFN6HH.js} +1 -1
- package/dist/{chunk-UV3I2TND.js → chunk-YQSVPHOS.js} +26 -36
- package/dist/{chunk-OTWFSHYH.js → chunk-YWH7HWDP.js} +269 -145
- package/dist/{chunk-YSN6HPD3.js → chunk-Z72VXQPN.js} +2 -2
- package/dist/{chunk-KG24ATFM.js → chunk-ZIF44RW2.js} +9 -10
- package/dist/{clean-SXRW77YG.js → clean-VB6BH3FV.js} +23 -23
- package/dist/cli.js +64 -64
- package/dist/{cloud-PUCWVAS2.js → cloud-7KRPD2K4.js} +4 -4
- package/dist/{cloud-LU4FVT33.js → cloud-A67BW6OH.js} +3 -3
- package/dist/{cloudrun-SXXONVD6.js → cloudrun-VKBARVVT.js} +11 -9
- package/dist/{compare-K65FNAEA.js → compare-SE55PMC3.js} +39 -39
- package/dist/{compiler-QISQISFV.js → compiler-WK7ABGRW.js} +5 -5
- package/dist/{component-YYCDOLP2.js → component-XT2AT3RY.js} +3 -3
- package/dist/{compositions-LCQTIYIU.js → compositions-ZZWLQNDQ.js} +20 -19
- package/dist/{contactSheet-CCHQAZLA.js → contactSheet-MXOASCDR.js} +4 -4
- package/dist/{curve-T7JAY3EM.js → curve-4RQQKZ2K.js} +15 -14
- package/dist/{cuts-E54SOAWH.js → cuts-M3QU2CBE.js} +16 -15
- package/dist/{delete-GLQNSOWH.js → delete-5ZZNPK5G.js} +5 -5
- package/dist/{deploy-SPMSEG67.js → deploy-VR5SQP4U.js} +5 -3
- package/dist/{describeProject-YPTJWL3O.js → describeProject-NU5BVVIA.js} +11 -11
- package/dist/{destroy-FMAAH4KQ.js → destroy-FFS62PAW.js} +5 -3
- package/dist/{deterministicFonts-OXGNMVJE.js → deterministicFonts-FQQNGORI.js} +4 -4
- package/dist/{diff-OT5SHVFD.js → diff-NQGTF6GR.js} +52 -47
- package/dist/{dist-T62DJJZX.js → dist-6GYOC3BU.js} +4 -4
- package/dist/{dist-RYTNYHMF.js → dist-APXZ5EN2.js} +2 -2
- package/dist/{dist-EO7BILWH.js → dist-B7IBHWIW.js} +16 -14
- package/dist/{doctor-L4SNKUBM.js → doctor-FATJGTPD.js} +15 -15
- package/dist/{energy-AXQGYZF6.js → energy-PHDK6SKL.js} +16 -15
- package/dist/{events-EBA6KHJV.js → events-25VQ2O66.js} +7 -7
- package/dist/{events-7QP5H6PW.js → events-OIWXSBZA.js} +21 -19
- package/dist/{events-5T25R4EH.js → events-RXVHG2NT.js} +2 -2
- package/dist/{execute-PTHC7Y5Q.js → execute-MKP4Z573.js} +31 -31
- package/dist/{extract-76UPXPJC.js → extract-YYNYXPOC.js} +16 -15
- package/dist/{face-YZON2N2E.js → face-JSTMFQRM.js} +17 -16
- package/dist/{feedback-KAYKPPHI.js → feedback-PY6LMZCX.js} +16 -16
- package/dist/{ffmpeg-T3KK5XKT.js → ffmpeg-KLIB55FK.js} +10 -10
- package/dist/{figma-NJ6CAJGV.js → figma-ACFOXVPM.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -16
- package/dist/{frames-KNR4CSB4.js → frames-BLZCBXO7.js} +18 -17
- package/dist/{generate-ISCPAKHT.js → generate-DMVEKZEV.js} +27 -26
- package/dist/{get-X7QNC3PE.js → get-3WZDQ5YM.js} +5 -5
- package/dist/{gpuPolicy-ZXN5S3HE.js → gpuPolicy-TT6UCOLQ.js} +10 -10
- package/dist/{grade-compare-XD3IONCL.js → grade-compare-F5DJ53XH.js} +41 -39
- package/dist/{heifImagePrep-EFBHDH4Z.js → heifImagePrep-UV23RWOG.js} +13 -13
- package/dist/{help-VUFIY5X4.js → help-QMP5KFYW.js} +1 -1
- package/dist/{history-OM3MHRB2.js → history-UOZ4RDEZ.js} +17 -14
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +76 -76
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-G64344ST.js → info-A6KSO64E.js} +16 -16
- package/dist/{init-2N6SDLZB.js → init-OQU46K3Q.js} +46 -42
- package/dist/{ink-T5BJE4D2.js → ink-HGRKLGII.js} +16 -15
- package/dist/{inspect-6I4YSARX.js → inspect-BKENKUXF.js} +38 -38
- package/dist/{installer-JNQKFCTN.js → installer-Z6FTR7BJ.js} +8 -8
- package/dist/{keyframes-PT3H7WHD.js → keyframes-UDQGWKPW.js} +10 -10
- package/dist/{lambda-NEQXIHUM.js → lambda-SHXQFHLE.js} +19 -19
- package/dist/{layout-FRWUKOGX.js → layout-CJAVQ4D3.js} +38 -38
- package/dist/{lint-GXPONOPU.js → lint-RAPNYPWS.js} +11 -11
- package/dist/{lintProject-J4YTLKPW.js → lintProject-JZRM7UKH.js} +2 -2
- package/dist/{list-JO7WSM6Y.js → list-4BKFMJQN.js} +5 -5
- package/dist/{localPage-XDWFSE4K.js → localPage-BJW2TP77.js} +11 -11
- package/dist/{login-XMFEIEXG.js → login-S5VZAGCI.js} +4 -4
- package/dist/{look-U77ADJ4V.js → look-V2I6BGUY.js} +16 -15
- package/dist/{manager-RNMX2WTR.js → manager-OS2FYJI5.js} +11 -11
- package/dist/{manager-ZRETV4LQ.js → manager-WQWU5VJ4.js} +2 -2
- package/dist/{measure-JNJAPVVN.js → measure-RO5R2SUZ.js} +11 -11
- package/dist/{media-treatment-MFNKKPM7.js → media-treatment-CS7BVMJW.js} +16 -16
- package/dist/{media-use-ZKHL2IN2.js → media-use-W3DGCKFB.js} +3 -3
- package/dist/{models-PGO2ERAU.js → models-ZOGYW2SC.js} +15 -15
- package/dist/{motionShot-AG4LR5Q5.js → motionShot-IMRI7W7T.js} +21 -21
- package/dist/{normalize-audio-FO3JCPD3.js → normalize-audio-HXTFAZUK.js} +11 -11
- package/dist/{open-ZI6KK3GM.js → open-LJDQ37KV.js} +21 -20
- package/dist/{parakeetRunner-CBO3HRL6.js → parakeetRunner-CKMSKDH6.js} +17 -17
- package/dist/{pipeline-VWVNH5ZC.js → pipeline-ZNCYOTUH.js} +13 -13
- package/dist/{plan-UHZYW3K2.js → plan-NCFS5T6W.js} +23 -23
- package/dist/{play-IVTXE4JW.js → play-5UZDFFXJ.js} +34 -28
- package/dist/{preflight-QJNKKMPE.js → preflight-H5XYFKFF.js} +12 -12
- package/dist/{present-NB6DAJ6K.js → present-EFXUFT5Y.js} +58 -43
- package/dist/{preview-FIWAZ5PX.js → preview-RV7ALGDQ.js} +30 -29
- package/dist/{probe-VQJOUG65.js → probe-UB6DM2Q3.js} +16 -15
- package/dist/{producer-NP6X5UBL.js → producer-2PKB5CW5.js} +1 -1
- package/dist/{progress-IY6U35WH.js → progress-S36VQBQW.js} +3 -1
- package/dist/{projectConfig-UVA26HJW.js → projectConfig-EUH5DILC.js} +11 -11
- package/dist/{publication-LYPU7NTZ.js → publication-VI2AXXKR.js} +6 -6
- package/dist/{publish-MRQ2K62E.js → publish-225GB7R4.js} +21 -21
- package/dist/{remove-background-RG6DCWOW.js → remove-background-W2RLEQHJ.js} +14 -14
- package/dist/{render-CM4MCNVA.js → render-KXKBSNOQ.js} +9 -8
- package/dist/{render-XWBMMSC5.js → render-WMWCCMWI.js} +61 -49
- package/dist/{render-6B7YPN7H.js → render-Y3JKWEN4.js} +33 -33
- package/dist/{render-batch-Y3RRNDNJ.js → render-batch-GK6CDHKN.js} +9 -8
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-K6VAEZVH.js → resolver-5CRZD5XB.js} +8 -8
- package/dist/{reverse-5RDRLKAP.js → reverse-YPYKKQSJ.js} +1 -1
- package/dist/{run-OQK3QU4I.js → run-FQ76QNES.js} +4 -4
- package/dist/{screenshotCapture-VDITRAK2.js → screenshotCapture-R6VE66NR.js} +13 -13
- package/dist/{service-C3UT4LYP.js → service-P3IKHZFC.js} +14 -14
- package/dist/{share-JU3IDHUV.js → share-BU4VQL3B.js} +17 -17
- package/dist/{sherpa-Z2Z4XLXV.js → sherpa-44GLXY3A.js} +16 -16
- package/dist/sherpaWorker.js +3 -1
- package/dist/{sites-QK3F4AUS.js → sites-TAX3JLNX.js} +3 -1
- package/dist/skills/hyperframes/SKILL.md +2 -2
- package/dist/skills/hyperframes/references/format.md +11 -2
- package/dist/skills/hyperframes/references/overlays.md +1 -1
- package/dist/skills/hyperframes/references/plugin-installation.md +33 -22
- package/dist/skills/hyperframes/references/sound.md +1 -0
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +18 -13
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +64 -40
- package/dist/skills/hyperframes-cli/SKILL.md +2 -2
- package/dist/skills/media-use/SKILL.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/bgm.mjs +4 -1
- package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +62 -1
- package/dist/skills/media-use/audio/scripts/lib/python.mjs +9 -1
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +16 -0
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.mjs +27 -2
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +40 -1
- package/dist/skills/media-use/scripts/lib/local-media-search.mjs +52 -23
- package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +73 -4
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.mjs +3 -1
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +16 -1
- package/dist/skills/media-use/scripts/resolve.mjs +4 -14
- package/dist/skills/media-use/scripts/transcribe.mjs +19 -3
- package/dist/skills/media-use/scripts/transcribe.test.mjs +60 -0
- package/dist/{skills-24YEOJGP.js → skills-H4OZQ6VR.js} +10 -10
- package/dist/{skillsUpdateCheck-5R4JJ27G.js → skillsUpdateCheck-U3XZX7UE.js} +3 -3
- package/dist/{snapshot-T4REEKFX.js → snapshot-FJQVXBFB.js} +53 -51
- package/dist/{src-RMJVAEKT.js → src-O6BHCR4O.js} +15 -15
- package/dist/{src-EKGFNTTY.js → src-PAM5LJ6K.js} +9 -9
- package/dist/{start-E5RIH3KS.js → start-R7CYOQ5S.js} +25 -24
- package/dist/{state-7OIPR4BG.js → state-YFRV6TQH.js} +3 -1
- package/dist/{staticProjectServer-LEM5W3S5.js → staticProjectServer-4X2OSUN4.js} +25 -25
- package/dist/{status-CSHJWWOP.js → status-VN3FAN4M.js} +15 -15
- package/dist/studio/assets/{hyperframes-player-BroIQA4E.js → hyperframes-player-SRLbmEDB.js} +1 -1
- package/dist/studio/assets/{index-Be7DZynj.js → index-CgyBYe2L.js} +130 -130
- package/dist/studio/assets/{index-CiF0D62S.js → index-yuN1pZrv.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-RXcvblHS.js → pausedVideoDecoder-DtvSF8bV.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-COJYCMRI.js → studio-api-V3TMIWFB.js} +16 -14
- package/dist/{studioSelectionClient-W2S3H2VO.js → studioSelectionClient-S46TNAAZ.js} +2 -1
- package/dist/{studioServer-62ZTBLFM.js → studioServer-GY2ZTR2E.js} +85 -73
- package/dist/{sync-CLRYHWYE.js → sync-2V3JYCDE.js} +16 -15
- package/dist/{synthesize-Z2H32QPU.js → synthesize-TQELPMS5.js} +3 -3
- package/dist/{telemetry-DWA36DFX.js → telemetry-KMRZ3IJV.js} +7 -7
- package/dist/{templates-LXMQR35F.js → templates-EEFY4FPS.js} +125 -33
- package/dist/{timeline-LMKTDKRT.js → timeline-HSRGYZ3Q.js} +23 -23
- package/dist/{tokens-VJ765KFG.js → tokens-NYFORL53.js} +2 -2
- package/dist/{transcribe-TICRK4IY.js → transcribe-CNIQYQ52.js} +31 -30
- package/dist/{transcribe-3WASFP7Z.js → transcribe-GFFWRWK3.js} +13 -13
- package/dist/{tts-5YJV6UXX.js → tts-NPMDYSXP.js} +1 -1
- package/dist/{update-Q26QGCBW.js → update-BDMPUNNA.js} +12 -12
- package/dist/{updateCheck-7R4S46TT.js → updateCheck-43UZ2USJ.js} +2 -2
- package/dist/{upgrade-76TFHAGI.js → upgrade-Z5B57UWL.js} +5 -5
- package/dist/{urlDownloader-AE4UQI5A.js → urlDownloader-KDZ76BKM.js} +9 -9
- package/dist/{validate-BEYREWEL.js → validate-UQKZNR5K.js} +30 -30
- package/dist/{video-47AVLNWM.js → video-VR4363OG.js} +12 -12
- package/dist/{voices-5O6OAL6H.js → voices-GUWAM3TH.js} +25 -24
- package/dist/warmCheck.js +50 -48
- package/package.json +2 -1
- package/dist/chunk-XGEJPKRY.js +0 -5069
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
removeScratch,
|
|
37
37
|
renameWithRetry,
|
|
38
38
|
renameWithRetryAsync
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PUTPYYE4.js";
|
|
40
40
|
import {
|
|
41
41
|
DISTRIBUTED_FPS,
|
|
42
42
|
HF_COLOR_GROUP_ATTR,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
resolveAuthoredTimingWindow,
|
|
67
67
|
toFps,
|
|
68
68
|
validateVariables
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-JQKCRTVQ.js";
|
|
70
70
|
import {
|
|
71
71
|
AUDIO_GROUP_RENDER_ID_ATTR,
|
|
72
72
|
AUTHORED_SOURCE_BEGIN,
|
|
@@ -111,12 +111,12 @@ import {
|
|
|
111
111
|
sourceTimeAt,
|
|
112
112
|
timeAtSourceTime,
|
|
113
113
|
volumeSegmentSampleCount
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-56T2OGYR.js";
|
|
115
115
|
import {
|
|
116
116
|
isPrivateFileUnder,
|
|
117
117
|
isSafePath,
|
|
118
118
|
isStudioPrivatePath
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-UVPLW55S.js";
|
|
120
120
|
import {
|
|
121
121
|
browserPathFromEnv,
|
|
122
122
|
buildChromeLaunchEnv,
|
|
@@ -124,11 +124,12 @@ import {
|
|
|
124
124
|
compareBrowserVersionsDescending,
|
|
125
125
|
exceedsChromeCeiling,
|
|
126
126
|
isManagedChromeDir,
|
|
127
|
+
isPinnedHeadlessShell,
|
|
127
128
|
pickSharedShell
|
|
128
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-6LU6JICP.js";
|
|
129
130
|
import {
|
|
130
131
|
resolveReferencedStart
|
|
131
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-YQSVPHOS.js";
|
|
132
133
|
import {
|
|
133
134
|
isWithinProjectRoot,
|
|
134
135
|
resolveProjectRelativeSrc
|
|
@@ -147,7 +148,7 @@ import {
|
|
|
147
148
|
} from "./chunk-IH2C53YV.js";
|
|
148
149
|
import {
|
|
149
150
|
readCompositionVariables
|
|
150
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-BA33QNKK.js";
|
|
151
152
|
import {
|
|
152
153
|
parseHTML
|
|
153
154
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -1034,7 +1035,7 @@ function scanHtmlOpeningTags(html) {
|
|
|
1034
1035
|
|
|
1035
1036
|
// ../engine/src/services/browserManager.ts
|
|
1036
1037
|
import { execFileSync } from "child_process";
|
|
1037
|
-
import { existsSync as existsSync2, readdirSync
|
|
1038
|
+
import { existsSync as existsSync2, readdirSync } from "fs";
|
|
1038
1039
|
import { join as join3 } from "path";
|
|
1039
1040
|
import { homedir } from "os";
|
|
1040
1041
|
|
|
@@ -1348,16 +1349,9 @@ function isSoftwareWebGlRenderer(rendererInfo) {
|
|
|
1348
1349
|
const renderer = rendererInfo.trim().toLowerCase();
|
|
1349
1350
|
return SOFTWARE_WEBGL_RENDERER_TOKENS.some((token) => renderer.includes(token));
|
|
1350
1351
|
}
|
|
1351
|
-
async function
|
|
1352
|
+
async function getPuppeteerCore() {
|
|
1352
1353
|
if (_puppeteer) return _puppeteer;
|
|
1353
|
-
|
|
1354
|
-
const mod = await import("puppeteer");
|
|
1355
|
-
_puppeteer = mod.default;
|
|
1356
|
-
} catch {
|
|
1357
|
-
const mod = await import("puppeteer-core");
|
|
1358
|
-
_puppeteer = mod.default;
|
|
1359
|
-
}
|
|
1360
|
-
if (!_puppeteer) throw new Error("Neither puppeteer nor puppeteer-core found");
|
|
1354
|
+
_puppeteer = (await import("puppeteer-core")).default;
|
|
1361
1355
|
return _puppeteer;
|
|
1362
1356
|
}
|
|
1363
1357
|
var GPU_PROBE_TIMEOUT_MS = 15e3;
|
|
@@ -1423,14 +1417,6 @@ var CACHED_HEADLESS_SHELL_EXECUTABLES = {
|
|
|
1423
1417
|
function cachedHeadlessShellExecutable(hostPlatform = process.platform, hostArch = process.arch) {
|
|
1424
1418
|
return CACHED_HEADLESS_SHELL_EXECUTABLES[`${hostPlatform}/${hostArch}`];
|
|
1425
1419
|
}
|
|
1426
|
-
function isNonEmptyFile(path) {
|
|
1427
|
-
try {
|
|
1428
|
-
const stat = statSync(path, { throwIfNoEntry: false });
|
|
1429
|
-
return stat?.isFile() === true && stat.size > 0;
|
|
1430
|
-
} catch {
|
|
1431
|
-
return false;
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
1420
|
function findCachedHeadlessShell(baseDir) {
|
|
1435
1421
|
if (!existsSync2(baseDir)) return void 0;
|
|
1436
1422
|
const executable = cachedHeadlessShellExecutable();
|
|
@@ -1441,7 +1427,7 @@ function findCachedHeadlessShell(baseDir) {
|
|
|
1441
1427
|
for (const version of versions) {
|
|
1442
1428
|
if (exceedsChromeCeiling(version, ceiling)) continue;
|
|
1443
1429
|
const binary = join3(baseDir, version, ...executable);
|
|
1444
|
-
if (
|
|
1430
|
+
if (isPinnedHeadlessShell(binary)) return binary;
|
|
1445
1431
|
}
|
|
1446
1432
|
} catch {
|
|
1447
1433
|
}
|
|
@@ -1453,7 +1439,7 @@ function findSharedHeadlessShell(baseDir) {
|
|
|
1453
1439
|
try {
|
|
1454
1440
|
return pickSharedShell(readdirSync(baseDir), (version) => {
|
|
1455
1441
|
const binary = join3(baseDir, version, ...executable);
|
|
1456
|
-
return
|
|
1442
|
+
return isPinnedHeadlessShell(binary) ? binary : void 0;
|
|
1457
1443
|
});
|
|
1458
1444
|
} catch {
|
|
1459
1445
|
return void 0;
|
|
@@ -1465,7 +1451,7 @@ function findManagedHeadlessShell(baseDir) {
|
|
|
1465
1451
|
try {
|
|
1466
1452
|
const version = readdirSync(baseDir).find(isManagedChromeDir);
|
|
1467
1453
|
const binary = version && join3(baseDir, version, ...executable);
|
|
1468
|
-
return binary &&
|
|
1454
|
+
return binary && isPinnedHeadlessShell(binary) ? binary : void 0;
|
|
1469
1455
|
} catch {
|
|
1470
1456
|
return void 0;
|
|
1471
1457
|
}
|
|
@@ -1487,42 +1473,16 @@ function resolveHeadlessShellPath(config) {
|
|
|
1487
1473
|
const shared = join3(homedir(), ".cache", "puppeteer", "chrome-headless-shell");
|
|
1488
1474
|
return findManagedHeadlessShell(ours) ?? findSharedHeadlessShell(shared) ?? findCachedHeadlessShell(ours);
|
|
1489
1475
|
}
|
|
1476
|
+
function launchableBrowserPath(config) {
|
|
1477
|
+
const path = resolveHeadlessShellPath(config);
|
|
1478
|
+
if (path) return path;
|
|
1479
|
+
throw new Error(
|
|
1480
|
+
"[BrowserManager] No verified browser to render with. Run `npx hyperframes browser ensure`, or name one in PRODUCER_HEADLESS_SHELL_PATH."
|
|
1481
|
+
);
|
|
1482
|
+
}
|
|
1490
1483
|
function resolveFullChromePath() {
|
|
1491
|
-
const
|
|
1492
|
-
|
|
1493
|
-
try {
|
|
1494
|
-
versions = readdirSync(baseDir).sort(compareBrowserVersionsDescending);
|
|
1495
|
-
} catch {
|
|
1496
|
-
return void 0;
|
|
1497
|
-
}
|
|
1498
|
-
for (const version of versions) {
|
|
1499
|
-
const candidates = [
|
|
1500
|
-
join3(
|
|
1501
|
-
baseDir,
|
|
1502
|
-
version,
|
|
1503
|
-
"chrome-mac-arm64",
|
|
1504
|
-
"Google Chrome for Testing.app",
|
|
1505
|
-
"Contents",
|
|
1506
|
-
"MacOS",
|
|
1507
|
-
"Google Chrome for Testing"
|
|
1508
|
-
),
|
|
1509
|
-
join3(
|
|
1510
|
-
baseDir,
|
|
1511
|
-
version,
|
|
1512
|
-
"chrome-mac-x64",
|
|
1513
|
-
"Google Chrome for Testing.app",
|
|
1514
|
-
"Contents",
|
|
1515
|
-
"MacOS",
|
|
1516
|
-
"Google Chrome for Testing"
|
|
1517
|
-
),
|
|
1518
|
-
join3(baseDir, version, "chrome-linux64", "chrome"),
|
|
1519
|
-
join3(baseDir, version, "chrome-win64", "chrome.exe")
|
|
1520
|
-
];
|
|
1521
|
-
for (const binary of candidates) {
|
|
1522
|
-
if (existsSync2(binary)) return binary;
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
return void 0;
|
|
1484
|
+
const named = browserPathFromEnv();
|
|
1485
|
+
return named && existsSync2(named.path) ? named.path : void 0;
|
|
1526
1486
|
}
|
|
1527
1487
|
var ENABLE_BROWSER_POOL = DEFAULT_CONFIG.enableBrowserPool;
|
|
1528
1488
|
var BEGINFRAME_ONLY_FLAGS = /* @__PURE__ */ new Set([
|
|
@@ -1683,7 +1643,7 @@ async function probeBeginFrameSupport(browser, timeoutMs = BEGINFRAME_PROBE_TIME
|
|
|
1683
1643
|
var _autoBrowserGpuModeCache;
|
|
1684
1644
|
async function getPuppeteerOrNull() {
|
|
1685
1645
|
try {
|
|
1686
|
-
return await
|
|
1646
|
+
return await getPuppeteerCore();
|
|
1687
1647
|
} catch {
|
|
1688
1648
|
return null;
|
|
1689
1649
|
}
|
|
@@ -1730,7 +1690,7 @@ async function probeWebGlMode(ppt, options, env, label = "") {
|
|
|
1730
1690
|
const info = await probeHardwareWebGlInfo(ppt, {
|
|
1731
1691
|
args: getHardwareGpuProbeArgs(options.platform ?? process.platform),
|
|
1732
1692
|
browserTimeout: options.browserTimeout ?? DEFAULT_CONFIG.browserTimeout,
|
|
1733
|
-
executablePath: options.chromePath
|
|
1693
|
+
executablePath: launchableBrowserPath({ chromePath: options.chromePath }),
|
|
1734
1694
|
probeLifecycle: options.probeLifecycle,
|
|
1735
1695
|
env
|
|
1736
1696
|
});
|
|
@@ -1827,7 +1787,7 @@ function createBrowserLaunchFingerprint(chromeArgs, config) {
|
|
|
1827
1787
|
forceScreenshot: DEFAULT_CONFIG.forceScreenshot,
|
|
1828
1788
|
...config
|
|
1829
1789
|
};
|
|
1830
|
-
const headlessShell =
|
|
1790
|
+
const headlessShell = launchableBrowserPath(launchConfig);
|
|
1831
1791
|
const beginFrameControlEnabled = chromeArgs.includes("--enable-begin-frame-control");
|
|
1832
1792
|
const requestedCaptureMode = headlessShell && process.platform === "linux" && !launchConfig.forceScreenshot && beginFrameControlEnabled ? "beginframe" : "screenshot";
|
|
1833
1793
|
return {
|
|
@@ -1875,7 +1835,7 @@ async function publicOnlyNetwork(pageServerHost) {
|
|
|
1875
1835
|
}
|
|
1876
1836
|
}
|
|
1877
1837
|
async function launchBrowser(fingerprint) {
|
|
1878
|
-
const ppt = await
|
|
1838
|
+
const ppt = await getPuppeteerCore();
|
|
1879
1839
|
const env = launchEnv(fingerprint);
|
|
1880
1840
|
let captureMode = fingerprint.requestedCaptureMode;
|
|
1881
1841
|
let browser;
|
|
@@ -3045,6 +3005,8 @@ function chunkCrc32(chunkType, chunkData) {
|
|
|
3045
3005
|
}
|
|
3046
3006
|
|
|
3047
3007
|
// ../engine/src/utils/alphaBlit.ts
|
|
3008
|
+
var MAX_RGB48LE_PIXELS = 8192 * 8192;
|
|
3009
|
+
var MAX_SCREENSHOT_PIXELS = 16384 * 16384;
|
|
3048
3010
|
function paeth(a, b, c) {
|
|
3049
3011
|
const p = a + b - c;
|
|
3050
3012
|
const pa = Math.abs(p - a);
|
|
@@ -3054,7 +3016,37 @@ function paeth(a, b, c) {
|
|
|
3054
3016
|
if (pb <= pc) return b;
|
|
3055
3017
|
return c;
|
|
3056
3018
|
}
|
|
3057
|
-
function
|
|
3019
|
+
function inflateScanlines(idatChunks, header, caller, maxPixels) {
|
|
3020
|
+
const { width, height, bitDepth, colorType } = header;
|
|
3021
|
+
if (bitDepth !== 8 && bitDepth !== 16) {
|
|
3022
|
+
throw new Error(`${caller}: unsupported bit depth ${bitDepth} (expected 8 or 16)`);
|
|
3023
|
+
}
|
|
3024
|
+
if (width === 0 || height === 0 || width * height > maxPixels) {
|
|
3025
|
+
throw new Error(
|
|
3026
|
+
`${caller}: ${width}x${height} PNG is outside the supported size (max ${maxPixels} pixels)`
|
|
3027
|
+
);
|
|
3028
|
+
}
|
|
3029
|
+
const channels = colorType === 6 ? 4 : 3;
|
|
3030
|
+
const bpp = channels * (bitDepth / 8);
|
|
3031
|
+
const stride = width * bpp;
|
|
3032
|
+
const expectedLength = height * (stride + 1);
|
|
3033
|
+
let decompressed;
|
|
3034
|
+
try {
|
|
3035
|
+
decompressed = inflateSync(Buffer.concat(idatChunks), { maxOutputLength: expectedLength });
|
|
3036
|
+
} catch (err) {
|
|
3037
|
+
throw new Error(
|
|
3038
|
+
`${caller}: image data does not inflate to ${expectedLength} bytes for ${width}x${height}`,
|
|
3039
|
+
{ cause: err }
|
|
3040
|
+
);
|
|
3041
|
+
}
|
|
3042
|
+
if (decompressed.length !== expectedLength) {
|
|
3043
|
+
throw new Error(
|
|
3044
|
+
`${caller}: image data inflates to ${decompressed.length} bytes, expected ${expectedLength}`
|
|
3045
|
+
);
|
|
3046
|
+
}
|
|
3047
|
+
return { decompressed, bpp, stride };
|
|
3048
|
+
}
|
|
3049
|
+
function decodePngRaw(buf, caller, maxPixels) {
|
|
3058
3050
|
if (buf[0] !== 137 || buf[1] !== 80 || buf[2] !== 78 || buf[3] !== 71 || buf[4] !== 13 || buf[5] !== 10 || buf[6] !== 26 || buf[7] !== 10) {
|
|
3059
3051
|
throw new Error(`${caller}: not a PNG file`);
|
|
3060
3052
|
}
|
|
@@ -3095,11 +3087,12 @@ function decodePngRaw(buf, caller) {
|
|
|
3095
3087
|
`${caller}: Adam7-interlaced PNGs are not supported (interlace method ${interlace})`
|
|
3096
3088
|
);
|
|
3097
3089
|
}
|
|
3098
|
-
const
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3090
|
+
const { decompressed, bpp, stride } = inflateScanlines(
|
|
3091
|
+
idatChunks,
|
|
3092
|
+
{ width, height, bitDepth, colorType },
|
|
3093
|
+
caller,
|
|
3094
|
+
maxPixels
|
|
3095
|
+
);
|
|
3103
3096
|
const rawPixels = Buffer.allocUnsafe(height * stride);
|
|
3104
3097
|
const prevRow = new Uint8Array(stride);
|
|
3105
3098
|
const currRow = new Uint8Array(stride);
|
|
@@ -3146,7 +3139,11 @@ function decodePngRaw(buf, caller) {
|
|
|
3146
3139
|
return { width, height, bitDepth, colorType, rawPixels };
|
|
3147
3140
|
}
|
|
3148
3141
|
function decodePng(buf) {
|
|
3149
|
-
const { width, height, bitDepth, colorType, rawPixels } = decodePngRaw(
|
|
3142
|
+
const { width, height, bitDepth, colorType, rawPixels } = decodePngRaw(
|
|
3143
|
+
buf,
|
|
3144
|
+
"decodePng",
|
|
3145
|
+
MAX_SCREENSHOT_PIXELS
|
|
3146
|
+
);
|
|
3150
3147
|
if (bitDepth !== 8) {
|
|
3151
3148
|
throw new Error(`decodePng: unsupported bit depth ${bitDepth} (expected 8)`);
|
|
3152
3149
|
}
|
|
@@ -3198,7 +3195,11 @@ function encodePng(width, height, rgba) {
|
|
|
3198
3195
|
]);
|
|
3199
3196
|
}
|
|
3200
3197
|
function decodePngToRgb48le(buf) {
|
|
3201
|
-
const { width, height, bitDepth, colorType, rawPixels } = decodePngRaw(
|
|
3198
|
+
const { width, height, bitDepth, colorType, rawPixels } = decodePngRaw(
|
|
3199
|
+
buf,
|
|
3200
|
+
"decodePngToRgb48le",
|
|
3201
|
+
MAX_RGB48LE_PIXELS
|
|
3202
|
+
);
|
|
3202
3203
|
if (bitDepth !== 16) {
|
|
3203
3204
|
throw new Error(`decodePngToRgb48le: unsupported bit depth ${bitDepth} (expected 16)`);
|
|
3204
3205
|
}
|
|
@@ -3523,6 +3524,11 @@ function resampleRgb48leObjectFit(source, srcW, srcH, dstW, dstH, fit = "fill",
|
|
|
3523
3524
|
if (fit === "fill" && srcW === dstW && srcH === dstH) {
|
|
3524
3525
|
return source;
|
|
3525
3526
|
}
|
|
3527
|
+
if (dstW * dstH > MAX_RGB48LE_PIXELS) {
|
|
3528
|
+
throw new Error(
|
|
3529
|
+
`resampleRgb48leObjectFit: ${dstW}x${dstH} target exceeds the ${MAX_RGB48LE_PIXELS}-pixel limit`
|
|
3530
|
+
);
|
|
3531
|
+
}
|
|
3526
3532
|
const pos = parseObjectPosition(objectPosition);
|
|
3527
3533
|
const rect = computeObjectFitRect(srcW, srcH, dstW, dstH, fit, pos);
|
|
3528
3534
|
const dst = Buffer.alloc(dstW * dstH * 6);
|
|
@@ -5494,7 +5500,7 @@ import { fileURLToPath as fileURLToPath2 } from "url";
|
|
|
5494
5500
|
|
|
5495
5501
|
// ../engine/src/utils/ffprobe.ts
|
|
5496
5502
|
import { spawn as spawn3 } from "child_process";
|
|
5497
|
-
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync as readFileSync2, rmSync, statSync
|
|
5503
|
+
import { createReadStream, mkdtempSync as mkdtempSync2, readFileSync as readFileSync2, rmSync, statSync } from "fs";
|
|
5498
5504
|
import { StringDecoder as StringDecoder2 } from "string_decoder";
|
|
5499
5505
|
import { tmpdir as tmpdir3 } from "os";
|
|
5500
5506
|
import { basename, join as join5 } from "path";
|
|
@@ -6025,7 +6031,7 @@ function mediaFileIdentity(filePath) {
|
|
|
6025
6031
|
return sha256 ? `sha256:${sha256}` : null;
|
|
6026
6032
|
}
|
|
6027
6033
|
try {
|
|
6028
|
-
const stat =
|
|
6034
|
+
const stat = statSync(filePath, { bigint: true });
|
|
6029
6035
|
return [stat.dev, stat.ino, stat.size, stat.mtimeNs, stat.ctimeNs].join(":");
|
|
6030
6036
|
} catch {
|
|
6031
6037
|
return null;
|
|
@@ -6180,7 +6186,7 @@ async function readFileRange(filePath, start, length, signal) {
|
|
|
6180
6186
|
async function hasCompletePngStructure(filePath, signal) {
|
|
6181
6187
|
try {
|
|
6182
6188
|
signal?.throwIfAborted();
|
|
6183
|
-
const fileSize =
|
|
6189
|
+
const fileSize = statSync(filePath).size;
|
|
6184
6190
|
const signature = await readFileRange(filePath, 0, 8, signal);
|
|
6185
6191
|
signal?.throwIfAborted();
|
|
6186
6192
|
if (signature.length !== 8 || !signature.equals(Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]))) {
|
|
@@ -7704,7 +7710,11 @@ async function initDrawElementOrTransparentBackground(session, page, logInitPhas
|
|
|
7704
7710
|
}
|
|
7705
7711
|
if (!forceDE && process.env.HF_FAST_CAPTURE_INTERVAL_SS !== "false") {
|
|
7706
7712
|
const fps = fpsToNumber(session.options.fps);
|
|
7707
|
-
const { frames: atRisk, totalFrames } = await computeTimelineAtRiskFrames(
|
|
7713
|
+
const { frames: atRisk, totalFrames } = await computeTimelineAtRiskFrames(
|
|
7714
|
+
page,
|
|
7715
|
+
fps,
|
|
7716
|
+
session.options.compositionDurationSeconds
|
|
7717
|
+
);
|
|
7708
7718
|
const atRiskFraction = atRisk.size / totalFrames;
|
|
7709
7719
|
const fractionFloor = Number(process.env.HF_FAST_CAPTURE_INTERVAL_FRACTION ?? "0");
|
|
7710
7720
|
logInitPhase(
|
|
@@ -9281,6 +9291,28 @@ var MAX_STATIC_DEDUP_ANALYSIS_FRAMES = 1e6;
|
|
|
9281
9291
|
function isStaticDedupFrameAnalysisSafe(totalFrames) {
|
|
9282
9292
|
return Number.isFinite(totalFrames) && Number.isSafeInteger(totalFrames) && totalFrames > 0 && totalFrames <= MAX_STATIC_DEDUP_ANALYSIS_FRAMES;
|
|
9283
9293
|
}
|
|
9294
|
+
var MAX_TIMELINE_FRAME_INTERVALS = 1e5;
|
|
9295
|
+
function tweenFrameRange(start, end, fps, margin, maxFrame) {
|
|
9296
|
+
const lo = Math.max(0, Math.floor(start * fps) - margin);
|
|
9297
|
+
const hi = Math.min(maxFrame, Math.ceil(end * fps) + margin);
|
|
9298
|
+
if (Number.isNaN(lo) || Number.isNaN(hi) || lo > hi) return null;
|
|
9299
|
+
return [lo, hi];
|
|
9300
|
+
}
|
|
9301
|
+
function mergeFrameRanges(ranges) {
|
|
9302
|
+
const sorted = [...ranges].sort((a, b) => a[0] - b[0]);
|
|
9303
|
+
const merged = [];
|
|
9304
|
+
for (const [lo, hi] of sorted) {
|
|
9305
|
+
const last = merged[merged.length - 1];
|
|
9306
|
+
if (last && lo <= last[1] + 1) last[1] = Math.max(last[1], hi);
|
|
9307
|
+
else merged.push([lo, hi]);
|
|
9308
|
+
}
|
|
9309
|
+
return merged;
|
|
9310
|
+
}
|
|
9311
|
+
function addFrameRanges(target, ranges) {
|
|
9312
|
+
for (const [lo, hi] of mergeFrameRanges(ranges)) {
|
|
9313
|
+
for (let f = lo; f <= hi; f++) target.add(f);
|
|
9314
|
+
}
|
|
9315
|
+
}
|
|
9284
9316
|
async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
9285
9317
|
const result = await page.evaluate(
|
|
9286
9318
|
(spatialProps, ignored) => {
|
|
@@ -9389,16 +9421,31 @@ async function computeStaticFrameSet(page, fps, ignoredVideoIds = []) {
|
|
|
9389
9421
|
reason: `static-dedup frame analysis limit (${MAX_STATIC_DEDUP_ANALYSIS_FRAMES})`
|
|
9390
9422
|
};
|
|
9391
9423
|
}
|
|
9392
|
-
|
|
9393
|
-
|
|
9424
|
+
if (intervals.length > MAX_TIMELINE_FRAME_INTERVALS) {
|
|
9425
|
+
return {
|
|
9426
|
+
totalFrames,
|
|
9427
|
+
staticFrameSet: /* @__PURE__ */ new Set(),
|
|
9428
|
+
nonSpatialOnlyFrameSet: /* @__PURE__ */ new Set(),
|
|
9429
|
+
hasVideo,
|
|
9430
|
+
hasCanvas,
|
|
9431
|
+
hasNonGsapAnim,
|
|
9432
|
+
tweenCount,
|
|
9433
|
+
eligible: false,
|
|
9434
|
+
reason: `static-dedup tween interval limit (${MAX_TIMELINE_FRAME_INTERVALS})`
|
|
9435
|
+
};
|
|
9436
|
+
}
|
|
9437
|
+
const animatedRanges = [];
|
|
9438
|
+
const spatialRanges = [];
|
|
9394
9439
|
for (const { start, end, spatial } of intervals) {
|
|
9395
|
-
const
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
|
|
9399
|
-
if (spatial) spatialFrameSet.add(f);
|
|
9400
|
-
}
|
|
9440
|
+
const range = tweenFrameRange(start, end, fps, 0, totalFrames - 1);
|
|
9441
|
+
if (!range) continue;
|
|
9442
|
+
animatedRanges.push(range);
|
|
9443
|
+
if (spatial) spatialRanges.push(range);
|
|
9401
9444
|
}
|
|
9445
|
+
const animated = /* @__PURE__ */ new Set();
|
|
9446
|
+
const spatialFrameSet = /* @__PURE__ */ new Set();
|
|
9447
|
+
addFrameRanges(animated, animatedRanges);
|
|
9448
|
+
addFrameRanges(spatialFrameSet, spatialRanges);
|
|
9402
9449
|
for (const f of await computeClipBoundaryFrames(page, fps)) animated.add(f);
|
|
9403
9450
|
const reasons = [];
|
|
9404
9451
|
if (!(duration > 0)) reasons.push("unknown/zero duration");
|
|
@@ -9895,7 +9942,7 @@ async function verifyAndArmStaticDedup(session, stats, fps, samples, logInitPhas
|
|
|
9895
9942
|
`static-frame dedup: ${verdict.verifiedFrames.size}/${stats.staticFrameSet.size} predicted frame(s) reusable (outcome=${verdict.outcome}, runs=${verdict.stats.completedRuns}/${verdict.stats.plannedRuns}, screenshots=${verdict.stats.screenshots}, seeks=${verdict.stats.seeks}, elapsedMs=${verdict.stats.elapsedMs})`
|
|
9896
9943
|
);
|
|
9897
9944
|
}
|
|
9898
|
-
async function computeTimelineAtRiskFrames(page, fps) {
|
|
9945
|
+
async function computeTimelineAtRiskFrames(page, fps, renderDurationSeconds) {
|
|
9899
9946
|
const result = await page.evaluate(() => {
|
|
9900
9947
|
const AT_RISK_PROPS = /* @__PURE__ */ new Set([
|
|
9901
9948
|
"backdropFilter",
|
|
@@ -9940,15 +9987,19 @@ async function computeTimelineAtRiskFrames(page, fps) {
|
|
|
9940
9987
|
return { intervals: intervals2, duration: duration2 };
|
|
9941
9988
|
});
|
|
9942
9989
|
const { intervals, duration } = result;
|
|
9990
|
+
const totalFrames = Math.max(1, Math.ceil(duration * fps));
|
|
9991
|
+
const lastFrame = Math.max(1, Math.ceil((renderDurationSeconds ?? duration) * fps)) - 1;
|
|
9943
9992
|
const frames = /* @__PURE__ */ new Set();
|
|
9993
|
+
if (intervals.length > MAX_TIMELINE_FRAME_INTERVALS) {
|
|
9994
|
+
addFrameRanges(frames, [[0, lastFrame]]);
|
|
9995
|
+
return { frames, totalFrames };
|
|
9996
|
+
}
|
|
9997
|
+
const ranges = [];
|
|
9944
9998
|
for (const { start, end } of intervals) {
|
|
9945
|
-
const
|
|
9946
|
-
|
|
9947
|
-
for (let f = Math.max(0, lo); f <= hi; f++) {
|
|
9948
|
-
frames.add(f);
|
|
9949
|
-
}
|
|
9999
|
+
const range = tweenFrameRange(start, end, fps, 1, lastFrame);
|
|
10000
|
+
if (range) ranges.push(range);
|
|
9950
10001
|
}
|
|
9951
|
-
|
|
10002
|
+
addFrameRanges(frames, ranges);
|
|
9952
10003
|
return { frames, totalFrames };
|
|
9953
10004
|
}
|
|
9954
10005
|
function isNoCachedPaintRecordError(err) {
|
|
@@ -10801,7 +10852,7 @@ import {
|
|
|
10801
10852
|
openSync,
|
|
10802
10853
|
readFileSync as readFileSync4,
|
|
10803
10854
|
readdirSync as readdirSync3,
|
|
10804
|
-
statSync as
|
|
10855
|
+
statSync as statSync2,
|
|
10805
10856
|
writeFileSync as writeFileSync2,
|
|
10806
10857
|
writeSync
|
|
10807
10858
|
} from "fs";
|
|
@@ -11492,7 +11543,7 @@ async function encodeFramesFromDir(framesDir, framePattern, outputPath, options,
|
|
|
11492
11543
|
failureReason: isExternalFfmpegInterruption(result) ? "external_interruption" : void 0
|
|
11493
11544
|
};
|
|
11494
11545
|
}
|
|
11495
|
-
const fileSize = existsSync6(outputPath) ?
|
|
11546
|
+
const fileSize = existsSync6(outputPath) ? statSync2(outputPath).size : 0;
|
|
11496
11547
|
return {
|
|
11497
11548
|
success: true,
|
|
11498
11549
|
outputPath,
|
|
@@ -11635,7 +11686,7 @@ async function encodeFramesChunkedConcat(framesDir, framePattern, outputPath, op
|
|
|
11635
11686
|
failureReason: concatResult.externalInterruption ? "external_interruption" : void 0
|
|
11636
11687
|
};
|
|
11637
11688
|
}
|
|
11638
|
-
const fileSize = existsSync6(outputPath) ?
|
|
11689
|
+
const fileSize = existsSync6(outputPath) ? statSync2(outputPath).size : 0;
|
|
11639
11690
|
return {
|
|
11640
11691
|
success: true,
|
|
11641
11692
|
outputPath,
|
|
@@ -11868,7 +11919,7 @@ function quantizationTableError(buffer, start, end) {
|
|
|
11868
11919
|
// ../engine/src/services/streamingEncoder.ts
|
|
11869
11920
|
import { spawn as spawn5 } from "child_process";
|
|
11870
11921
|
import { once } from "events";
|
|
11871
|
-
import { existsSync as existsSync7, mkdirSync as mkdirSync3, statSync as
|
|
11922
|
+
import { existsSync as existsSync7, mkdirSync as mkdirSync3, statSync as statSync3 } from "fs";
|
|
11872
11923
|
import { dirname as dirname4 } from "path";
|
|
11873
11924
|
function createFrameReorderBuffer(startFrame, endFrame) {
|
|
11874
11925
|
let cursor = startFrame;
|
|
@@ -12272,7 +12323,7 @@ FFmpeg stopped after ${streamingTimeout} ms without consuming a frame.` : "";
|
|
|
12272
12323
|
}) ? "external_interruption" : void 0
|
|
12273
12324
|
};
|
|
12274
12325
|
}
|
|
12275
|
-
const fileSize = existsSync7(outputPath) ?
|
|
12326
|
+
const fileSize = existsSync7(outputPath) ? statSync3(outputPath).size : 0;
|
|
12276
12327
|
return { success: true, durationMs, fileSize, drainWaitMs };
|
|
12277
12328
|
},
|
|
12278
12329
|
getExitStatus: () => exitStatus,
|
|
@@ -12424,7 +12475,7 @@ function isMemberGroupHidden(groupsById, el) {
|
|
|
12424
12475
|
|
|
12425
12476
|
// ../engine/src/services/videoFrameExtractor.ts
|
|
12426
12477
|
import { copyFileSync as copyFileSync2, existsSync as existsSync11, linkSync as linkSync2, mkdirSync as mkdirSync6, rmSync as rmSync5 } from "fs";
|
|
12427
|
-
import { basename as
|
|
12478
|
+
import { basename as basename3, isAbsolute as isAbsolute2, join as join13, normalize, relative as relative2, win32 } from "path";
|
|
12428
12479
|
|
|
12429
12480
|
// ../engine/src/utils/concurrencyLimit.ts
|
|
12430
12481
|
function createConcurrencyLimit(limit) {
|
|
@@ -12829,7 +12880,7 @@ import {
|
|
|
12829
12880
|
readdirSync as readdirSync4,
|
|
12830
12881
|
rmdirSync,
|
|
12831
12882
|
rmSync as rmSync3,
|
|
12832
|
-
statSync as
|
|
12883
|
+
statSync as statSync4,
|
|
12833
12884
|
statfsSync,
|
|
12834
12885
|
unlinkSync
|
|
12835
12886
|
} from "fs";
|
|
@@ -13432,7 +13483,7 @@ var DiskHeadroomGuard = class {
|
|
|
13432
13483
|
device = 0;
|
|
13433
13484
|
claim(declaredBytes) {
|
|
13434
13485
|
if (this.minFreeBytes === 0) return true;
|
|
13435
|
-
this.device =
|
|
13486
|
+
this.device = statSync4(this.dir).dev;
|
|
13436
13487
|
this.adjustUnreceived(declaredBytes);
|
|
13437
13488
|
return this.keepsMinimum();
|
|
13438
13489
|
}
|
|
@@ -13639,7 +13690,7 @@ async function fetchToPartial(url, partialPath, controller, options, onBodyBytes
|
|
|
13639
13690
|
const readableStream = Readable.fromWeb(response.body);
|
|
13640
13691
|
const fileStream = createWriteStream(partialPath, { flags: "wx" });
|
|
13641
13692
|
await pipeline(readableStream, inspector, fileStream, { signal: controller.signal });
|
|
13642
|
-
const localSize =
|
|
13693
|
+
const localSize = statSync4(partialPath).size;
|
|
13643
13694
|
const sha256Bytes = sha256.digest();
|
|
13644
13695
|
const localSha256 = sha256Bytes.toString("hex");
|
|
13645
13696
|
const md5Base64 = md5.digest("base64");
|
|
@@ -14144,7 +14195,7 @@ function truncateUtf8(text, maxBytes) {
|
|
|
14144
14195
|
}
|
|
14145
14196
|
|
|
14146
14197
|
// ../engine/src/services/extractionCache.ts
|
|
14147
|
-
import { createHash as createHash4
|
|
14198
|
+
import { createHash as createHash4 } from "crypto";
|
|
14148
14199
|
import {
|
|
14149
14200
|
chmodSync,
|
|
14150
14201
|
createReadStream as createReadStream3,
|
|
@@ -14153,11 +14204,11 @@ import {
|
|
|
14153
14204
|
mkdirSync as mkdirSync5,
|
|
14154
14205
|
readdirSync as readdirSync5,
|
|
14155
14206
|
rmSync as rmSync4,
|
|
14156
|
-
statSync as
|
|
14207
|
+
statSync as statSync5,
|
|
14157
14208
|
utimesSync,
|
|
14158
14209
|
writeFileSync as writeFileSync3
|
|
14159
14210
|
} from "fs";
|
|
14160
|
-
import { join as join12 } from "path";
|
|
14211
|
+
import { basename as basename2, dirname as dirname7, join as join12 } from "path";
|
|
14161
14212
|
var COMPLETE_SENTINEL = ".hf-complete";
|
|
14162
14213
|
var GC_MARKER = ".hf-last-gc";
|
|
14163
14214
|
function privateCacheRoot(root, uid = process.getuid?.()) {
|
|
@@ -14181,7 +14232,7 @@ async function readContentSha256(path, signal) {
|
|
|
14181
14232
|
}
|
|
14182
14233
|
function readKeyStat(videoPath) {
|
|
14183
14234
|
try {
|
|
14184
|
-
const stat =
|
|
14235
|
+
const stat = statSync5(videoPath);
|
|
14185
14236
|
return { mtimeMs: Math.floor(stat.mtimeMs), size: stat.size };
|
|
14186
14237
|
} catch {
|
|
14187
14238
|
return null;
|
|
@@ -14220,8 +14271,15 @@ function lookupCacheEntry(rootDir, input) {
|
|
|
14220
14271
|
const complete = existsSync10(join12(dir, COMPLETE_SENTINEL)) && hasFrameFiles(dir);
|
|
14221
14272
|
return { entry: { dir, keyHash }, hit: complete };
|
|
14222
14273
|
}
|
|
14223
|
-
function
|
|
14224
|
-
return
|
|
14274
|
+
function createPartialCacheEntryDir(entry) {
|
|
14275
|
+
return createPartialDir(dirname7(entry.dir), basename2(entry.dir));
|
|
14276
|
+
}
|
|
14277
|
+
function createPartialDir(parent, name) {
|
|
14278
|
+
mkdirSync5(parent, { recursive: true });
|
|
14279
|
+
return createStagingDir(parent, `${name}.partial-${process.pid}-`);
|
|
14280
|
+
}
|
|
14281
|
+
function frameFileCount(dir) {
|
|
14282
|
+
return readdirSync5(dir).filter((file) => file.startsWith(FRAME_FILENAME_PREFIX)).length;
|
|
14225
14283
|
}
|
|
14226
14284
|
function isTargetExistsRenameError(err) {
|
|
14227
14285
|
const code = err.code;
|
|
@@ -14232,8 +14290,9 @@ function adoptPublishedWinner(entry, partialDir) {
|
|
|
14232
14290
|
removeDir(partialDir);
|
|
14233
14291
|
return { dir: entry.dir, published: true };
|
|
14234
14292
|
}
|
|
14235
|
-
function publishCacheEntry(entry, partialDir) {
|
|
14293
|
+
function publishCacheEntry(entry, partialDir, expectedFrames) {
|
|
14236
14294
|
try {
|
|
14295
|
+
if (frameFileCount(partialDir) !== expectedFrames) return { dir: partialDir, published: false };
|
|
14237
14296
|
writeFileSync3(join12(partialDir, COMPLETE_SENTINEL), "", "utf-8");
|
|
14238
14297
|
} catch {
|
|
14239
14298
|
return { dir: partialDir, published: false };
|
|
@@ -14315,7 +14374,7 @@ function removeDir(path) {
|
|
|
14315
14374
|
}
|
|
14316
14375
|
function collectGcEntry(dir, name, now, minAgeMs, stats, remove) {
|
|
14317
14376
|
try {
|
|
14318
|
-
const dirStat =
|
|
14377
|
+
const dirStat = statSync5(dir);
|
|
14319
14378
|
if (isPartialChild(name) && now - dirStat.mtimeMs >= minAgeMs) {
|
|
14320
14379
|
remove(dir);
|
|
14321
14380
|
stats.agedPartialsRemoved += 1;
|
|
@@ -14323,7 +14382,7 @@ function collectGcEntry(dir, name, now, minAgeMs, stats, remove) {
|
|
|
14323
14382
|
}
|
|
14324
14383
|
let lastUseMs = dirStat.mtimeMs;
|
|
14325
14384
|
try {
|
|
14326
|
-
lastUseMs =
|
|
14385
|
+
lastUseMs = statSync5(join12(dir, COMPLETE_SENTINEL)).mtimeMs;
|
|
14327
14386
|
} catch {
|
|
14328
14387
|
}
|
|
14329
14388
|
return { dir, size: directorySizeBytes(dir), lastUseMs, ageMs: now - lastUseMs };
|
|
@@ -14333,7 +14392,7 @@ function collectGcEntry(dir, name, now, minAgeMs, stats, remove) {
|
|
|
14333
14392
|
}
|
|
14334
14393
|
function gcSweepDue(rootDir, maxAgeMs) {
|
|
14335
14394
|
try {
|
|
14336
|
-
return Date.now() -
|
|
14395
|
+
return Date.now() - statSync5(join12(rootDir, GC_MARKER)).mtimeMs > maxAgeMs;
|
|
14337
14396
|
} catch {
|
|
14338
14397
|
return true;
|
|
14339
14398
|
}
|
|
@@ -14503,13 +14562,13 @@ function videoExtractionSourceLabel(src, baseDir) {
|
|
|
14503
14562
|
if (/^(data|blob):/i.test(src)) return "inline video";
|
|
14504
14563
|
if (URL_SCHEME.test(src)) {
|
|
14505
14564
|
try {
|
|
14506
|
-
return
|
|
14565
|
+
return basename3(decodeURIComponent(new URL(src).pathname)) || "remote video";
|
|
14507
14566
|
} catch {
|
|
14508
14567
|
return "remote video";
|
|
14509
14568
|
}
|
|
14510
14569
|
}
|
|
14511
14570
|
const path = src.split(/[?#]/)[0];
|
|
14512
|
-
const lib = WINDOWS_ABSOLUTE.test(path) ? win32 : { isAbsolute: isAbsolute2, relative: relative2, basename:
|
|
14571
|
+
const lib = WINDOWS_ABSOLUTE.test(path) ? win32 : { isAbsolute: isAbsolute2, relative: relative2, basename: basename3, normalize };
|
|
14513
14572
|
const relativePath = lib.isAbsolute(path) ? lib.relative(baseDir, path) : lib.normalize(path);
|
|
14514
14573
|
const label = relativePath.startsWith("..") || lib.isAbsolute(relativePath) ? lib.basename(path) : relativePath;
|
|
14515
14574
|
return label.replace(/\\/g, "/");
|
|
@@ -15246,7 +15305,7 @@ async function extractVideoFramesRangeUnredacted(videoPath, videoId, startTime,
|
|
|
15246
15305
|
const diagnostic = `${hdrPrefix}FFmpeg exited with code ${processResult.exitCode}${timeoutSuffix}: ` + processResult.stderr.slice(-500);
|
|
15247
15306
|
const ffmpegReason = ffmpegReasonFrom(processResult.stderr, [
|
|
15248
15307
|
videoPath,
|
|
15249
|
-
|
|
15308
|
+
basename3(videoPath),
|
|
15250
15309
|
videoOutputDir
|
|
15251
15310
|
]);
|
|
15252
15311
|
if (timedOut) {
|
|
@@ -15647,8 +15706,6 @@ function planSupersetGroups(misses, fps) {
|
|
|
15647
15706
|
}
|
|
15648
15707
|
function sliceSupersetMember(member, superset, outputDir, fps, configuredFps) {
|
|
15649
15708
|
const { work } = member.miss;
|
|
15650
|
-
rmSync5(outputDir, { recursive: true, force: true });
|
|
15651
|
-
mkdirSync6(outputDir, { recursive: true });
|
|
15652
15709
|
const requestedFrames = extractionFrameCountForDuration(
|
|
15653
15710
|
work.videoDuration,
|
|
15654
15711
|
configuredFps,
|
|
@@ -15661,7 +15718,11 @@ function sliceSupersetMember(member, superset, outputDir, fps, configuredFps) {
|
|
|
15661
15718
|
if (!sourceFrame) throw new Error(`superset frame ${member.offsetFrames + i} missing`);
|
|
15662
15719
|
linkOrCopyFrame(sourceFrame, join13(outputDir, frameFileName(i + 1, work.format)));
|
|
15663
15720
|
}
|
|
15664
|
-
|
|
15721
|
+
const sliced = extractedFramesFromDirectory(work, outputDir, work.videoPath, fps);
|
|
15722
|
+
if (sliced.totalFrames !== frameCount) {
|
|
15723
|
+
throw new Error(`superset slice holds ${sliced.totalFrames} frames, not ${frameCount}`);
|
|
15724
|
+
}
|
|
15725
|
+
return sliced;
|
|
15665
15726
|
}
|
|
15666
15727
|
async function extractAllVideoFrames(videos, baseDir, options, signal, config, compiledDir) {
|
|
15667
15728
|
if (options.timelineEnd !== void 0 && !Number.isFinite(options.timelineEnd)) {
|
|
@@ -15998,9 +16059,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
15998
16059
|
);
|
|
15999
16060
|
return attempted2.result;
|
|
16000
16061
|
}
|
|
16001
|
-
|
|
16002
|
-
rmSync5(partialDir, { recursive: true, force: true });
|
|
16003
|
-
mkdirSync6(partialDir, { recursive: true });
|
|
16062
|
+
let partialDir = createPartialCacheEntryDir(cacheTarget.entry);
|
|
16004
16063
|
const attempted = await runVideoExtractionWithRetry(
|
|
16005
16064
|
() => extractVideoFramesRange(
|
|
16006
16065
|
work.videoPath,
|
|
@@ -16018,12 +16077,12 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
16018
16077
|
onRetry: () => {
|
|
16019
16078
|
recordTransientRetries(1);
|
|
16020
16079
|
rmSync5(partialDir, { recursive: true, force: true });
|
|
16021
|
-
|
|
16080
|
+
partialDir = createPartialCacheEntryDir(cacheTarget.entry);
|
|
16022
16081
|
}
|
|
16023
16082
|
}
|
|
16024
16083
|
);
|
|
16025
16084
|
const result = attempted.result;
|
|
16026
|
-
const published = publishCacheEntry(cacheTarget.entry, partialDir);
|
|
16085
|
+
const published = publishCacheEntry(cacheTarget.entry, partialDir, result.totalFrames);
|
|
16027
16086
|
if (!published.published) {
|
|
16028
16087
|
breakdown.cachePublishFailures += 1;
|
|
16029
16088
|
return { ...result, ownedByLookup: false };
|
|
@@ -16115,17 +16174,14 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
16115
16174
|
const { miss } = member;
|
|
16116
16175
|
const { work, cacheTarget } = miss;
|
|
16117
16176
|
if (!cacheTarget) {
|
|
16118
|
-
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
|
|
16122
|
-
fps,
|
|
16123
|
-
configuredFps
|
|
16124
|
-
);
|
|
16177
|
+
const outputDir = join13(options.outputDir, mediaIdPathSegment(work.video.id));
|
|
16178
|
+
rmSync5(outputDir, { recursive: true, force: true });
|
|
16179
|
+
mkdirSync6(outputDir, { recursive: true });
|
|
16180
|
+
return sliceSupersetMember(member, superset, outputDir, fps, configuredFps);
|
|
16125
16181
|
}
|
|
16126
|
-
const partialDir =
|
|
16182
|
+
const partialDir = createPartialCacheEntryDir(cacheTarget.entry);
|
|
16127
16183
|
const sliced = sliceSupersetMember(member, superset, partialDir, fps, configuredFps);
|
|
16128
|
-
const published = publishCacheEntry(cacheTarget.entry, partialDir);
|
|
16184
|
+
const published = publishCacheEntry(cacheTarget.entry, partialDir, sliced.totalFrames);
|
|
16129
16185
|
if (!published.published) {
|
|
16130
16186
|
breakdown.cachePublishFailures += 1;
|
|
16131
16187
|
return { ...sliced, ownedByLookup: false };
|
|
@@ -16135,9 +16191,9 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
16135
16191
|
async function executeSupersetGroup(group) {
|
|
16136
16192
|
const first = group.members[0]?.miss.work;
|
|
16137
16193
|
if (!first) return [];
|
|
16138
|
-
|
|
16194
|
+
let tempDir;
|
|
16139
16195
|
try {
|
|
16140
|
-
|
|
16196
|
+
tempDir = createPartialDir(cacheRootDir ?? options.outputDir, group.groupId);
|
|
16141
16197
|
const superset = await extractVideoFramesRange(
|
|
16142
16198
|
first.videoPath,
|
|
16143
16199
|
group.groupId,
|
|
@@ -16170,7 +16226,7 @@ async function extractAllVideoFrames(videos, baseDir, options, signal, config, c
|
|
|
16170
16226
|
);
|
|
16171
16227
|
return fallback;
|
|
16172
16228
|
} finally {
|
|
16173
|
-
rmSync5(tempDir, { recursive: true, force: true });
|
|
16229
|
+
if (tempDir) rmSync5(tempDir, { recursive: true, force: true });
|
|
16174
16230
|
}
|
|
16175
16231
|
}
|
|
16176
16232
|
const preparedExtractions = await Promise.all(
|
|
@@ -17026,7 +17082,7 @@ async function queryElementStacking(page, nativeHdrIds) {
|
|
|
17026
17082
|
|
|
17027
17083
|
// ../engine/src/services/audioMixer.ts
|
|
17028
17084
|
import { closeSync as closeSync4, existsSync as existsSync13, mkdirSync as mkdirSync7, openSync as openSync4, rmSync as rmSync7, writeFileSync as writeFileSync7 } from "fs";
|
|
17029
|
-
import { join as join17, dirname as
|
|
17085
|
+
import { join as join17, dirname as dirname10, isAbsolute as isAbsolute3, relative as relative3 } from "path";
|
|
17030
17086
|
|
|
17031
17087
|
// ../core/dist/audioFade.js
|
|
17032
17088
|
var HF_AUDIO_FADE_IN_ATTR = "data-fade-in";
|
|
@@ -17063,7 +17119,7 @@ function clampFadesToDuration(fades, duration) {
|
|
|
17063
17119
|
// ../engine/src/services/aacEncode.ts
|
|
17064
17120
|
import { execFile as execFile3 } from "child_process";
|
|
17065
17121
|
import { readFileSync as readFileSync6, writeFileSync as writeFileSync4 } from "fs";
|
|
17066
|
-
import { dirname as
|
|
17122
|
+
import { dirname as dirname8, join as join14 } from "path";
|
|
17067
17123
|
var SAMPLE_RATE = 48e3;
|
|
17068
17124
|
var FRAME_SAMPLES = 1024;
|
|
17069
17125
|
var MIN_SEGMENT_SECONDS = 60;
|
|
@@ -17131,7 +17187,7 @@ async function encodeAac(input, outputPath, totalDuration, {
|
|
|
17131
17187
|
if (!await supportsSettsDuration()) {
|
|
17132
17188
|
return encodeInOnePass(input, outputPath, { signal, timeout, filter });
|
|
17133
17189
|
}
|
|
17134
|
-
const dir = createStagingDir(
|
|
17190
|
+
const dir = createStagingDir(dirname8(outputPath), ".aac-segments-");
|
|
17135
17191
|
try {
|
|
17136
17192
|
const segments = planSegments(totalDuration, count).map((segment, k) => ({
|
|
17137
17193
|
...segment,
|
|
@@ -17297,7 +17353,7 @@ function audioFailureDiagnostics(values) {
|
|
|
17297
17353
|
|
|
17298
17354
|
// ../engine/src/services/audioVolumeEnvelope.ts
|
|
17299
17355
|
import { readFileSync as readFileSync7, rmSync as rmSync6, writeFileSync as writeFileSync5 } from "fs";
|
|
17300
|
-
import { dirname as
|
|
17356
|
+
import { dirname as dirname9, join as join15 } from "path";
|
|
17301
17357
|
|
|
17302
17358
|
// ../core/dist/runtime/mediaVolumeEnvelope.js
|
|
17303
17359
|
function normaliseEnvelope(keyframes, trackStart, baseVolume) {
|
|
@@ -17423,7 +17479,7 @@ function applyVolumeEnvelopeToWav(wavPath, keyframes, trackStart, baseVolume) {
|
|
|
17423
17479
|
const layout = parseWavLayout(buffer);
|
|
17424
17480
|
if (!layout) return false;
|
|
17425
17481
|
scaleSamples(buffer, layout, gainAt);
|
|
17426
|
-
stagingDir = createStagingDir(
|
|
17482
|
+
stagingDir = createStagingDir(dirname9(wavPath), ".hf-volume-");
|
|
17427
17483
|
const tempPath = join15(stagingDir, "audio.wav");
|
|
17428
17484
|
writeFileSync5(tempPath, buffer, { flag: "wx" });
|
|
17429
17485
|
renameWithRetry(tempPath, wavPath);
|
|
@@ -17658,7 +17714,7 @@ import {
|
|
|
17658
17714
|
openSync as openSync3,
|
|
17659
17715
|
readFileSync as readFileSync8,
|
|
17660
17716
|
readSync,
|
|
17661
|
-
statSync as
|
|
17717
|
+
statSync as statSync6,
|
|
17662
17718
|
writeFileSync as writeFileSync6,
|
|
17663
17719
|
writeSync as writeSync2
|
|
17664
17720
|
} from "fs";
|
|
@@ -17743,7 +17799,7 @@ function readWavHeader(path) {
|
|
|
17743
17799
|
if (buf.length < 44 || buf.toString("ascii", 0, 4) !== "RIFF") return null;
|
|
17744
17800
|
const { format, channels, sampleRate, bits, dataBody, dataSize } = readWavChunks(buf);
|
|
17745
17801
|
if (dataBody === void 0 || dataSize === void 0) return null;
|
|
17746
|
-
const dataBytes = resolveDataBytes(dataSize,
|
|
17802
|
+
const dataBytes = resolveDataBytes(dataSize, statSync6(path).size - dataBody);
|
|
17747
17803
|
return {
|
|
17748
17804
|
format,
|
|
17749
17805
|
channels,
|
|
@@ -17983,7 +18039,7 @@ async function applyAudioFxChain(inputWav, chain, outputWav, options) {
|
|
|
17983
18039
|
)
|
|
17984
18040
|
}));
|
|
17985
18041
|
}
|
|
17986
|
-
if (
|
|
18042
|
+
if (statSync6(inputWav).size > MAX_WHOLE_FILE_BYTES) {
|
|
17987
18043
|
const why = options.automation ? "parameter automation is not supported on inputs over 2 GiB" : "the WAV header of an input over 2 GiB could not be read";
|
|
17988
18044
|
throw new AudioFxRenderError(`Audio FX for track ${options.trackId}: ${why} (${inputWav})`);
|
|
17989
18045
|
}
|
|
@@ -18499,7 +18555,7 @@ var FAIL_ON_READ_ERROR_INSTEAD_OF_ENDING_THERE = ["-xerror"];
|
|
|
18499
18555
|
var SIDECAR_WARM_UP_SECONDS = 1;
|
|
18500
18556
|
async function extractAudioSegment(srcPath, outputPath, stage, mediaStart, duration, playbackRate = 1, signal, config, audioSidecarUrl, options) {
|
|
18501
18557
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18502
|
-
const outputDir =
|
|
18558
|
+
const outputDir = dirname10(outputPath);
|
|
18503
18559
|
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18504
18560
|
const normalizedPlaybackRate = normalizeRateSpec(playbackRate);
|
|
18505
18561
|
const sourceDuration = sourceTimeAt(normalizedPlaybackRate, duration);
|
|
@@ -18645,7 +18701,7 @@ function isRemoteElement(element, baseDir, compiledDir, config) {
|
|
|
18645
18701
|
}
|
|
18646
18702
|
async function generateSilence(outputPath, duration, signal, config) {
|
|
18647
18703
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18648
|
-
const outputDir =
|
|
18704
|
+
const outputDir = dirname10(outputPath);
|
|
18649
18705
|
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18650
18706
|
const args = [
|
|
18651
18707
|
"-f",
|
|
@@ -18699,7 +18755,7 @@ async function mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, con
|
|
|
18699
18755
|
failures: result2.failure ? [result2.failure] : void 0
|
|
18700
18756
|
};
|
|
18701
18757
|
}
|
|
18702
|
-
const outputDir =
|
|
18758
|
+
const outputDir = dirname10(outputPath);
|
|
18703
18759
|
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18704
18760
|
const buildFilterComplex = (ignoreAutomation, useNormalize2) => {
|
|
18705
18761
|
const filterParts = [];
|
|
@@ -18808,7 +18864,7 @@ function groupNormalizeOptionUnsupported(stderr) {
|
|
|
18808
18864
|
}
|
|
18809
18865
|
async function mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config) {
|
|
18810
18866
|
const ffmpegProcessTimeout = config?.ffmpegProcessTimeout ?? DEFAULT_CONFIG.ffmpegProcessTimeout;
|
|
18811
|
-
const outputDir =
|
|
18867
|
+
const outputDir = dirname10(outputPath);
|
|
18812
18868
|
if (!existsSync13(outputDir)) mkdirSync7(outputDir, { recursive: true });
|
|
18813
18869
|
const buildInputFilters = (ignoreKeyframes, padMembers) => memberTracks.map((track, i) => {
|
|
18814
18870
|
const volumeFilter = buildVolumeExpression(track, ignoreKeyframes);
|
|
@@ -18941,8 +18997,8 @@ async function mixGroupMembers(memberTracks, outputPath, totalDuration, signal,
|
|
|
18941
18997
|
if (memberTracks.length <= MAX_MIX_INPUTS) {
|
|
18942
18998
|
return mixGroupMembersFlat(memberTracks, outputPath, totalDuration, signal, config);
|
|
18943
18999
|
}
|
|
18944
|
-
mkdirSync7(
|
|
18945
|
-
const scratchDir = createStagingDir(
|
|
19000
|
+
mkdirSync7(dirname10(outputPath), { recursive: true });
|
|
19001
|
+
const scratchDir = createStagingDir(dirname10(outputPath), ".mix-batches-");
|
|
18946
19002
|
try {
|
|
18947
19003
|
const summed = await sumInSlices(memberTracks, scratchDir, totalDuration, signal, config);
|
|
18948
19004
|
if (!summed.success) return summed;
|
|
@@ -18956,8 +19012,8 @@ async function mixAudioTracks(tracks, outputPath, totalDuration, signal, config)
|
|
|
18956
19012
|
if (tracks.length <= MAX_MIX_INPUTS) {
|
|
18957
19013
|
return mixAudioTracksFlat(tracks, outputPath, totalDuration, signal, config);
|
|
18958
19014
|
}
|
|
18959
|
-
mkdirSync7(
|
|
18960
|
-
const scratchDir = createStagingDir(
|
|
19015
|
+
mkdirSync7(dirname10(outputPath), { recursive: true });
|
|
19016
|
+
const scratchDir = createStagingDir(dirname10(outputPath), ".mix-batches-");
|
|
18961
19017
|
try {
|
|
18962
19018
|
const summed = await sumInSlices(tracks, scratchDir, totalDuration, signal, config);
|
|
18963
19019
|
if (!summed.success) {
|
|
@@ -20252,7 +20308,7 @@ function getSystemResources() {
|
|
|
20252
20308
|
// ../engine/src/services/fileServer.ts
|
|
20253
20309
|
import { Hono } from "hono";
|
|
20254
20310
|
import { serve } from "@hono/node-server";
|
|
20255
|
-
import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as
|
|
20311
|
+
import { readFileSync as readFileSync9, openSync as openSync5, fstatSync, closeSync as closeSync5, statSync as statSync7, constants as constants2 } from "fs";
|
|
20256
20312
|
import { join as join20, extname as extname3 } from "path";
|
|
20257
20313
|
import { hostname as machineName, networkInterfaces } from "os";
|
|
20258
20314
|
|
|
@@ -20311,7 +20367,7 @@ function readRegularFile(filePath) {
|
|
|
20311
20367
|
} catch (error) {
|
|
20312
20368
|
if (error instanceof Error && "code" in error && (error.code === "ENOENT" || error.code === "ENOTDIR"))
|
|
20313
20369
|
return null;
|
|
20314
|
-
if (!
|
|
20370
|
+
if (!statSync7(filePath, { throwIfNoEntry: false })?.isFile()) return null;
|
|
20315
20371
|
throw error;
|
|
20316
20372
|
}
|
|
20317
20373
|
try {
|
|
@@ -20700,7 +20756,7 @@ async function launchHdrBrowser(width, height) {
|
|
|
20700
20756
|
const chromePath = resolveFullChromePath();
|
|
20701
20757
|
if (!chromePath) {
|
|
20702
20758
|
throw new Error(
|
|
20703
|
-
"[HDR]
|
|
20759
|
+
"[HDR] Name a full Chrome in HYPERFRAMES_BROWSER_PATH: HDR capture does not start a cached browser."
|
|
20704
20760
|
);
|
|
20705
20761
|
}
|
|
20706
20762
|
const browser = await ppt.launch({
|