hyperframes 0.9.56 → 0.9.58
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-KW7OTOWF.js → add-JQUKPSEZ.js} +30 -28
- package/dist/{agentPromptGenerator-NNXUWNU4.js → agentPromptGenerator-3NEY7FPP.js} +15 -14
- package/dist/{animatedGifPrep-6ATQHQON.js → animatedGifPrep-VMUZ6IVJ.js} +17 -15
- package/dist/api.js +60 -59
- package/dist/{appHistory-KHX53SGI.js → appHistory-JNI6IOR6.js} +5 -4
- package/dist/{asset-QVINGJRK.js → asset-ZT3VXZ67.js} +3 -2
- package/dist/{assetCataloger-DENJPUBH.js → assetCataloger-D2DV65BA.js} +16 -15
- package/dist/{audio-LB7HQYPJ.js → audio-LD5H2R5V.js} +37 -36
- package/dist/{auth-7AGRVI5A.js → auth-4FPYYMSH.js} +4 -4
- package/dist/{autoUpdate-ITCP2JDM.js → autoUpdate-5ZKSFCG4.js} +5 -5
- package/dist/{avatars-2K2C74EQ.js → avatars-DCLFE7VG.js} +25 -24
- package/dist/{backgroundChecks-UOTBCWPN.js → backgroundChecks-UZA3F46H.js} +6 -6
- package/dist/backgroundChecksWorker.js +6 -6
- package/dist/{batchRender-Z7ESYQDS.js → batchRender-TAUW3CT2.js} +11 -8
- package/dist/{beats-TG6ZB3XH.js → beats-X3LCR6OG.js} +16 -15
- package/dist/{benchmark-RU5MLZHE.js → benchmark-DNZQT3YQ.js} +23 -22
- package/dist/{billing-VB5PYYSN.js → billing-4BFUAHWX.js} +44 -29
- package/dist/{browser-VSQRY5GG.js → browser-5J2MTDB6.js} +13 -12
- package/dist/{bundleWithLocalizedFonts-XDPJE355.js → bundleWithLocalizedFonts-XWK47ZVF.js} +1 -1
- package/dist/{capture-M4FL7MWI.js → capture-2YSVFKWV.js} +39 -38
- package/dist/{capture-TQCFWPAT.js → capture-TVYTKWTG.js} +4 -4
- package/dist/{captureCompositionFrame-XF67Q6YK.js → captureCompositionFrame-L765HLCT.js} +21 -20
- package/dist/{captureFile-F254H22J.js → captureFile-DOCK42K3.js} +4 -3
- package/dist/{catalog-24EGH662.js → catalog-CHGGRRQX.js} +30 -28
- package/dist/{catch-up-L23HGDLB.js → catch-up-OCFU6ZR3.js} +16 -15
- package/dist/{check-F4HQVV2M.js → check-LWK4Z7FI.js} +64 -63
- package/dist/{checkAudio-6DT3ONR7.js → checkAudio-R5ORBXBO.js} +26 -23
- package/dist/{checkBrowser-S7P4X7QV.js → checkBrowser-6SH73T47.js} +55 -54
- package/dist/{chunk-MK4RH5L7.js → chunk-23SG3B6M.js} +1 -1
- package/dist/{chunk-QBADK3LD.js → chunk-2GRCLLKU.js} +1 -1
- package/dist/chunk-2RUCE54M.js +5083 -0
- package/dist/{chunk-SGWDJLFL.js → chunk-2SJNGWSY.js} +1 -1
- package/dist/{chunk-RFULFCYW.js → chunk-2WA62M3B.js} +3 -3
- package/dist/{chunk-FGGRBKWL.js → chunk-37VS6QY6.js} +1 -1
- package/dist/{chunk-ZIF44RW2.js → chunk-37Y334MN.js} +11 -8
- package/dist/{chunk-3GVHDPEP.js → chunk-3GKGBYW3.js} +7 -27
- package/dist/{chunk-BZXW5QU7.js → chunk-3VMZQQUI.js} +1 -1
- package/dist/{chunk-B6BWLFAF.js → chunk-4LZSNWFJ.js} +2 -2
- package/dist/{chunk-L5NPBGQB.js → chunk-4N3WOFP3.js} +21 -21
- package/dist/{chunk-7DKWEIH4.js → chunk-4NNYYCJN.js} +15 -15
- package/dist/{chunk-5GSCSZOS.js → chunk-4QPT3IEL.js} +5 -5
- package/dist/{chunk-JQKCRTVQ.js → chunk-5IUVWP3A.js} +2 -2
- package/dist/{chunk-APCVZGU6.js → chunk-5SGGOZNL.js} +84 -46
- package/dist/{chunk-T5HYPGST.js → chunk-7ECPFKQV.js} +4 -4
- package/dist/{chunk-BZULWFMJ.js → chunk-7FIJRDUG.js} +45 -10
- package/dist/{chunk-BA33QNKK.js → chunk-7IMHPBSH.js} +51 -19
- package/dist/{chunk-TVZTTWU7.js → chunk-7WAWUQDQ.js} +3 -3
- package/dist/{chunk-QNIID7EN.js → chunk-7WYJXKIG.js} +17 -7
- package/dist/{chunk-CZCZ5YXT.js → chunk-7ZHBY7T5.js} +1 -1
- package/dist/{chunk-WHX2OV4C.js → chunk-A4L7G74T.js} +1 -1
- package/dist/{chunk-LK7F7P2X.js → chunk-A4YRESMH.js} +2 -2
- package/dist/{chunk-MDRLJ737.js → chunk-AJ7YRQS4.js} +1 -1
- package/dist/{chunk-CBG6MIT2.js → chunk-ALD7JBPV.js} +2 -2
- package/dist/{chunk-7F4RAWDS.js → chunk-AM4Y3XMR.js} +2 -2
- package/dist/{chunk-D3WRRPHI.js → chunk-AM6UYKVR.js} +10 -10
- package/dist/{chunk-YDNBMPP3.js → chunk-AMS7Q7P7.js} +4 -4
- package/dist/{chunk-VC4YMXUQ.js → chunk-BSDUTNFX.js} +1 -1
- package/dist/{chunk-IRZUZ32B.js → chunk-BSFTB6AM.js} +4 -4
- package/dist/{chunk-XKNNZ4WR.js → chunk-CGJIMWNU.js} +5 -2
- package/dist/{chunk-WFB4XPJR.js → chunk-CGODFJZ7.js} +9 -9
- package/dist/{chunk-BMVUB2CY.js → chunk-CPDPSNSB.js} +8 -8
- package/dist/{chunk-OXT2LXZB.js → chunk-CRPLPK6J.js} +8 -8
- package/dist/{chunk-PPLFDG7N.js → chunk-CVTIGS5K.js} +3 -3
- package/dist/{chunk-IDGWNOBX.js → chunk-D2LSYXLW.js} +1 -1
- package/dist/{chunk-5ZDNSYTO.js → chunk-D3M5VOC5.js} +3 -3
- package/dist/{chunk-PGHROSLJ.js → chunk-DH3M5X3Y.js} +4 -4
- package/dist/{chunk-LRQEIKFT.js → chunk-DHVRVI7F.js} +5 -5
- package/dist/{chunk-PUTPYYE4.js → chunk-DL6PEJWH.js} +5 -2
- package/dist/{chunk-DDCXMXAD.js → chunk-DWFWF6IR.js} +30 -22
- package/dist/{chunk-BUG5AOPJ.js → chunk-DX5Y3L5B.js} +2 -2
- package/dist/{chunk-52XHPMCX.js → chunk-E26Z73S3.js} +1 -1
- package/dist/{chunk-YWH7HWDP.js → chunk-E4IR34CF.js} +332 -328
- package/dist/{chunk-BTJYK56C.js → chunk-ELRE6LVJ.js} +3 -3
- package/dist/{chunk-XLP34AJR.js → chunk-EOXNEA4Z.js} +2 -2
- package/dist/{chunk-7E7VKASF.js → chunk-ERDQIRUL.js} +4 -4
- package/dist/{chunk-MPOWSPBD.js → chunk-EWKJDXH6.js} +3 -3
- package/dist/{chunk-MVLAPENI.js → chunk-EZJHKHWU.js} +3 -3
- package/dist/{chunk-TY7EHE4Q.js → chunk-FFOFGL2O.js} +2 -2
- package/dist/{chunk-UHVKV5IF.js → chunk-FNXU56VT.js} +1 -1
- package/dist/{chunk-PHAZT6EB.js → chunk-G3U5CUF3.js} +1 -1
- package/dist/{chunk-ON3CGL3V.js → chunk-GDIBE57N.js} +2 -2
- package/dist/{chunk-VVXSMYXQ.js → chunk-GEOJA37C.js} +3 -3
- package/dist/{chunk-CUO2HF4M.js → chunk-GIVMQDSK.js} +2 -2
- package/dist/{chunk-NFST2HIM.js → chunk-GRSZAGJB.js} +2 -2
- package/dist/{chunk-AGTBMLNM.js → chunk-GVIJFPZV.js} +2 -2
- package/dist/{chunk-CKIYT34K.js → chunk-H3LEOZVK.js} +1 -1
- package/dist/{chunk-UIMXEY4U.js → chunk-H7DTMLAR.js} +7 -7
- package/dist/{chunk-7HQC5MDZ.js → chunk-HFIVZJJD.js} +1 -1
- package/dist/{chunk-IT2QBRVS.js → chunk-HFUI6LVF.js} +1 -1
- package/dist/chunk-HOIEN7O4.js +31 -0
- package/dist/{chunk-WGWKT7ME.js → chunk-HTGJOOXE.js} +12 -4
- package/dist/{chunk-GWSMTN55.js → chunk-IE6BIB3L.js} +53 -1
- package/dist/{chunk-YFWFCKKF.js → chunk-IGZQYMZA.js} +7638 -7451
- package/dist/{chunk-IO7PRQQC.js → chunk-J6VYWZSO.js} +1 -1
- package/dist/{chunk-OZDELWQP.js → chunk-JKLWQUSV.js} +1 -1
- package/dist/{chunk-WUY74LHU.js → chunk-JOOKM2NC.js} +2 -2
- package/dist/{chunk-BR7GOCQJ.js → chunk-JQZ5WP7L.js} +1 -1
- package/dist/{chunk-EBRN4YJH.js → chunk-JZVI2TMX.js} +3 -3
- package/dist/{chunk-R2LP7QPB.js → chunk-K2EJQ44S.js} +1 -1
- package/dist/{chunk-YOMFN6HH.js → chunk-KYKQO4VN.js} +2 -2
- package/dist/{chunk-QJDMX53S.js → chunk-LO5USUM4.js} +1 -1
- package/dist/{chunk-L5CBCPUH.js → chunk-M3IHARIW.js} +13 -13
- package/dist/{chunk-664QGMR4.js → chunk-M5TTYUZM.js} +2 -2
- package/dist/{chunk-IJYIIHGK.js → chunk-MK23FXLH.js} +1 -1
- package/dist/{chunk-7QFLMCTD.js → chunk-MPC3OODR.js} +36 -5
- package/dist/{chunk-DUZ6Z2ZN.js → chunk-MSC5KBCE.js} +1 -1
- package/dist/{chunk-KRYXZVA2.js → chunk-N6PAWR5C.js} +3 -3
- package/dist/{chunk-RRT6URIP.js → chunk-NJPLH762.js} +2 -2
- package/dist/{chunk-Q2TT62RQ.js → chunk-NLVIE7VN.js} +4 -4
- package/dist/{chunk-XD5T43S7.js → chunk-O2BLY7PO.js} +1 -1
- package/dist/{chunk-SEC76O65.js → chunk-O2INZCGB.js} +1 -1
- package/dist/{chunk-NCJSN6SV.js → chunk-O4K22EFS.js} +5 -5
- package/dist/{chunk-L27Z3PZT.js → chunk-O5U3Y5DX.js} +1 -1
- package/dist/{chunk-MP52CUHL.js → chunk-OD7XWF5T.js} +2 -2
- package/dist/{chunk-7QFFS657.js → chunk-OEGWTN6N.js} +1 -1
- package/dist/{chunk-2GRCTZNS.js → chunk-OL7RHRNJ.js} +1 -1
- package/dist/{chunk-EKSS3KI7.js → chunk-OMZSPAK5.js} +1 -1
- package/dist/{chunk-RCGNYXWK.js → chunk-OPSGEOCO.js} +27 -19
- package/dist/{chunk-IHX3AFTY.js → chunk-PGITR2WX.js} +7 -4
- package/dist/{chunk-XEVAW42J.js → chunk-PS7WBIPK.js} +10 -10
- package/dist/{chunk-HVG656G6.js → chunk-PYTF6VHF.js} +6 -4
- package/dist/{chunk-OIO7YMBP.js → chunk-QGQCWG7F.js} +1 -1
- package/dist/{chunk-CXFW7YPT.js → chunk-ROESFEBP.js} +62 -47
- package/dist/{chunk-VCSQLM36.js → chunk-RV3HR3BZ.js} +5 -5
- package/dist/{chunk-UVPLW55S.js → chunk-SALNTRJA.js} +10 -2
- package/dist/{chunk-LKWWY6WN.js → chunk-SE4NOUB6.js} +1 -1
- package/dist/{chunk-JPEIUGS5.js → chunk-SM5PNCDI.js} +1 -1
- package/dist/{chunk-W4AR7UZH.js → chunk-SNKBI4YB.js} +2 -2
- package/dist/{chunk-43CQTZGB.js → chunk-SV72WLBE.js} +2 -2
- package/dist/{chunk-JDXALWOM.js → chunk-SYKUNH25.js} +1 -1
- package/dist/{chunk-CNXZCMJZ.js → chunk-TAXMLPTE.js} +2 -2
- package/dist/{chunk-QTZICZWT.js → chunk-TLDIP7Y3.js} +16 -12
- package/dist/{chunk-EGR2ZFFP.js → chunk-TLGQQ324.js} +4 -4
- package/dist/{chunk-CWIOKI2R.js → chunk-U5MILT4G.js} +1 -1
- package/dist/{chunk-YQSVPHOS.js → chunk-UDLWVQ74.js} +8 -5
- package/dist/{chunk-6XRXUMFG.js → chunk-UGKUGYHD.js} +1 -1
- package/dist/{chunk-EUP7ODOV.js → chunk-UJTLTFB6.js} +1 -1
- package/dist/{chunk-4GPKDDQZ.js → chunk-V3O4AFO3.js} +9 -9
- package/dist/{chunk-2ZOJCSLJ.js → chunk-VBEDZGBW.js} +3 -3
- package/dist/{chunk-PVF32NRA.js → chunk-VI2LLFW6.js} +2 -2
- package/dist/{chunk-6LONEKJR.js → chunk-VLFBOKZX.js} +5743 -5615
- package/dist/{chunk-Z72VXQPN.js → chunk-VSM7OIG2.js} +2 -2
- package/dist/{chunk-4RPIEGL3.js → chunk-VXE46PXX.js} +1 -1
- package/dist/{chunk-LH5FRVAO.js → chunk-W2OXNTHG.js} +3 -3
- package/dist/{chunk-4DJGUZJR.js → chunk-WEU6WLVT.js} +2 -2
- package/dist/{chunk-BPYNILOZ.js → chunk-WGHJUGNU.js} +11 -9
- package/dist/{chunk-HOCV5AW6.js → chunk-WJIWXHXK.js} +8 -4
- package/dist/{chunk-CPSD7337.js → chunk-WLNHZ2OM.js} +9 -9
- package/dist/{chunk-HCQXGGVY.js → chunk-WQZQMADW.js} +14 -14
- package/dist/{chunk-DY7PQLIE.js → chunk-WTJZ5QFR.js} +42 -5
- package/dist/{chunk-CKIVYAKG.js → chunk-X3IVUSOX.js} +2 -2
- package/dist/{chunk-LRWWCTSJ.js → chunk-X3UXEB2U.js} +2 -2
- package/dist/{chunk-ICDGP335.js → chunk-XMT4MG6W.js} +9 -9
- package/dist/{chunk-4WSJ5MUN.js → chunk-XYP4T6TQ.js} +1 -1
- package/dist/{chunk-PGJYA6I3.js → chunk-Y6CZFX5X.js} +65 -20
- package/dist/{chunk-GTC2STHN.js → chunk-Z642P33A.js} +4 -4
- package/dist/{chunk-CLRHKYOK.js → chunk-ZAWQJOTW.js} +8 -8
- package/dist/{chunk-BW4H55SU.js → chunk-ZCLC3KVY.js} +1 -1
- package/dist/{chunk-PCKKKICA.js → chunk-ZFOV3R2L.js} +4 -4
- package/dist/{chunk-ANYW22IT.js → chunk-ZO5NHAF3.js} +1 -1
- package/dist/{chunk-AN6KWGYI.js → chunk-ZYNNZ5DE.js} +2 -2
- package/dist/{clean-VB6BH3FV.js → clean-6ODSABBF.js} +34 -32
- package/dist/cli.js +70 -70
- package/dist/{cloud-7KRPD2K4.js → cloud-IMYQB5RC.js} +4 -4
- package/dist/{cloud-A67BW6OH.js → cloud-NTKLXMBS.js} +9 -8
- package/dist/{cloudrun-VKBARVVT.js → cloudrun-JNLDP33J.js} +12 -11
- package/dist/{compare-SE55PMC3.js → compare-VLYZ6ZS4.js} +54 -52
- package/dist/{compiler-WK7ABGRW.js → compiler-7M2UCEWG.js} +7 -6
- package/dist/{component-XT2AT3RY.js → component-KMUHKZ4R.js} +4 -3
- package/dist/{compositions-ZZWLQNDQ.js → compositions-ESLWNOMS.js} +23 -23
- package/dist/{contactSheet-MXOASCDR.js → contactSheet-4YF7U6U7.js} +5 -4
- package/dist/contract/path-policy.json +12 -2
- package/dist/{curve-4RQQKZ2K.js → curve-7RPSNRPE.js} +21 -20
- package/dist/{cuts-M3QU2CBE.js → cuts-KBAAZSPS.js} +22 -21
- package/dist/{delete-5ZZNPK5G.js → delete-EP5Z7HKF.js} +14 -13
- package/dist/{deploy-VR5SQP4U.js → deploy-MVR63JLD.js} +14 -13
- package/dist/{describeProject-NU5BVVIA.js → describeProject-NBVZT5EN.js} +15 -14
- package/dist/{destroy-FFS62PAW.js → destroy-DQKIT574.js} +13 -12
- package/dist/{deterministicFonts-FQQNGORI.js → deterministicFonts-LYBMXXBW.js} +5 -4
- package/dist/{diff-NQGTF6GR.js → diff-RI3FTMOZ.js} +57 -56
- package/dist/{dist-6GYOC3BU.js → dist-G7VFX23I.js} +8 -4
- package/dist/{dist-APXZ5EN2.js → dist-LRGTXDSM.js} +3 -3
- package/dist/{dist-B7IBHWIW.js → dist-TOOMD57O.js} +19 -17
- package/dist/{doctor-FATJGTPD.js → doctor-43YNRCRB.js} +24 -23
- package/dist/{energy-PHDK6SKL.js → energy-YCH36KCC.js} +22 -21
- package/dist/{events-OIWXSBZA.js → events-6RJBITYN.js} +24 -23
- package/dist/{events-RXVHG2NT.js → events-JCPYG3CD.js} +6 -6
- package/dist/{events-25VQ2O66.js → events-VUR27EF6.js} +12 -11
- package/dist/{execute-MKP4Z573.js → execute-OXMKWIFI.js} +44 -43
- package/dist/{extract-YYNYXPOC.js → extract-XGD2RDEX.js} +24 -23
- package/dist/{face-JSTMFQRM.js → face-XCNWNTGN.js} +23 -22
- package/dist/{feedback-PY6LMZCX.js → feedback-JNFDVBFV.js} +27 -26
- package/dist/{ffmpeg-KLIB55FK.js → ffmpeg-YQLAJUEA.js} +14 -13
- package/dist/{figma-ACFOXVPM.js → figma-XXGHYEB3.js} +3 -3
- package/dist/fontLocalizeCli.js +22 -20
- package/dist/{frames-BLZCBXO7.js → frames-PEMWFRRY.js} +24 -23
- package/dist/{generate-DMVEKZEV.js → generate-H5M4QSJR.js} +41 -40
- package/dist/{get-3WZDQ5YM.js → get-R6Y2OE5P.js} +14 -13
- package/dist/{gpuPolicy-TT6UCOLQ.js → gpuPolicy-2WVDQYZA.js} +14 -13
- package/dist/{grade-compare-F5DJ53XH.js → grade-compare-KFXPZFDL.js} +54 -52
- package/dist/{gsapParserAcorn-SKGP4R4N.js → gsapParserAcorn-RODCGO2L.js} +1 -1
- package/dist/hangReport.js +2 -2
- package/dist/{heifImagePrep-UV23RWOG.js → heifImagePrep-VLKYA5QZ.js} +18 -16
- package/dist/{help-QMP5KFYW.js → help-T3XUX5RI.js} +2 -2
- package/dist/{history-UOZ4RDEZ.js → history-QJPUCUUC.js} +25 -23
- 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/{index-gen-OPMQ5WSN.js → index-gen-3DWPA4FO.js} +14 -12
- package/dist/{info-A6KSO64E.js → info-556DHJHJ.js} +25 -25
- package/dist/{init-OQU46K3Q.js → init-P62TPWR3.js} +46 -45
- package/dist/{ink-HGRKLGII.js → ink-SRN65OZH.js} +22 -21
- package/dist/{inspect-BKENKUXF.js → inspect-U5FWQQFB.js} +53 -52
- package/dist/{installer-Z6FTR7BJ.js → installer-3TNMANQV.js} +9 -8
- package/dist/{keyframes-UDQGWKPW.js → keyframes-FPGEFGCH.js} +63 -28
- package/dist/{lambda-SHXQFHLE.js → lambda-YJY2MYWL.js} +24 -23
- package/dist/{layout-CJAVQ4D3.js → layout-QIKSVA44.js} +53 -52
- package/dist/{lint-RAPNYPWS.js → lint-RD33ESM5.js} +20 -20
- package/dist/{lintProject-JZRM7UKH.js → lintProject-ZWLXB3A2.js} +3 -3
- package/dist/{list-4BKFMJQN.js → list-FFO3WOB2.js} +14 -13
- package/dist/{localPage-BJW2TP77.js → localPage-DHIBMNJH.js} +15 -14
- package/dist/{login-S5VZAGCI.js → login-IMFRQOEQ.js} +8 -8
- package/dist/{logout-CCATTNTL.js → logout-SLBKP67J.js} +4 -4
- package/dist/{look-V2I6BGUY.js → look-ZZHJYSPC.js} +22 -21
- package/dist/{manager-WQWU5VJ4.js → manager-U4WEPCLV.js} +4 -4
- package/dist/{manager-OS2FYJI5.js → manager-V4LGD4HB.js} +15 -14
- package/dist/{manifest-QSJYVERU.js → manifest-TSKRUXZ5.js} +5 -1
- package/dist/{measure-RO5R2SUZ.js → measure-ZRBVN45B.js} +11 -11
- package/dist/{media-treatment-CS7BVMJW.js → media-treatment-3I2CMQJZ.js} +29 -24
- package/dist/{media-use-W3DGCKFB.js → media-use-2OYJ3CCN.js} +8 -8
- package/dist/{models-ZOGYW2SC.js → models-PRW7EWSV.js} +19 -18
- package/dist/{motionShot-IMRI7W7T.js → motionShot-VWILMLHQ.js} +38 -29
- package/dist/{normalize-audio-HXTFAZUK.js → normalize-audio-42XMF35K.js} +19 -17
- package/dist/{oauth-SAVP2YM4.js → oauth-V3HSFZRE.js} +2 -2
- package/dist/{open-LJDQ37KV.js → open-D52MJZQA.js} +29 -27
- package/dist/{parakeetRunner-CKMSKDH6.js → parakeetRunner-ZR2JWQZH.js} +22 -21
- package/dist/{pipeline-ZNCYOTUH.js → pipeline-W3H4JA6H.js} +17 -16
- package/dist/{plan-NCFS5T6W.js → plan-2HQOFJO7.js} +33 -32
- package/dist/{play-5UZDFFXJ.js → play-G5XDRDIZ.js} +46 -44
- package/dist/{preflight-H5XYFKFF.js → preflight-W2JDYF3T.js} +17 -16
- package/dist/{present-EFXUFT5Y.js → present-CYMTHQFM.js} +36 -34
- package/dist/{preview-RV7ALGDQ.js → preview-DTQPQZTK.js} +46 -45
- package/dist/{probe-UB6DM2Q3.js → probe-WZJK3YQI.js} +22 -21
- package/dist/{producer-2PKB5CW5.js → producer-2BSMSO6I.js} +1 -1
- package/dist/{progress-S36VQBQW.js → progress-KRDVC24C.js} +4 -3
- package/dist/{projectConfig-EUH5DILC.js → projectConfig-BYRVYLCC.js} +12 -11
- package/dist/{publication-VI2AXXKR.js → publication-UCFJLELD.js} +7 -6
- package/dist/{publish-225GB7R4.js → publish-KXVPSWCO.js} +36 -35
- package/dist/{refresh-X5ZLKQO5.js → refresh-2GVNKDQE.js} +4 -4
- package/dist/{remove-background-W2RLEQHJ.js → remove-background-O7BZNS3X.js} +18 -17
- package/dist/{render-WMWCCMWI.js → render-DGAP4Q2Z.js} +69 -67
- package/dist/{render-Y3JKWEN4.js → render-QOWXGWQZ.js} +54 -53
- package/dist/{render-KXKBSNOQ.js → render-TYS3LCIQ.js} +10 -9
- package/dist/{render-batch-GK6CDHKN.js → render-batch-TEQRGAUC.js} +10 -9
- package/dist/renderSetupWorker.js +7 -7
- package/dist/{resolver-5CRZD5XB.js → resolver-RN2JGGQL.js} +9 -8
- package/dist/{reverse-YPYKKQSJ.js → reverse-FUARFEG2.js} +1 -1
- package/dist/{run-FQ76QNES.js → run-V722HMUG.js} +12 -11
- package/dist/{sam-A4NXDWSU.js → sam-KHLM2DJA.js} +4 -4
- package/dist/{screenshotCapture-R6VE66NR.js → screenshotCapture-4BB4LUMX.js} +17 -16
- package/dist/{service-P3IKHZFC.js → service-ZPCHJY6B.js} +23 -22
- package/dist/{share-BU4VQL3B.js → share-PXUN7AH7.js} +28 -27
- package/dist/{sherpa-44GLXY3A.js → sherpa-LT6Y7IGM.js} +21 -20
- package/dist/sherpaWorker.js +6 -5
- package/dist/{sites-TAX3JLNX.js → sites-WWCABDSX.js} +4 -3
- package/dist/skills/hyperframes/references/plugin-installation.md +12 -0
- package/dist/skills/hyperframes/scripts/plugin-cli.mjs +47 -9
- package/dist/skills/media-use/audio/scripts/audio.mjs +24 -7
- package/dist/skills/media-use/audio/scripts/carve.mjs +10 -82
- package/dist/skills/media-use/audio/scripts/lib/audio-carve.mjs +4 -0
- package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +25 -7
- package/dist/skills/media-use/audio/scripts/lib/project-path.mjs +56 -0
- package/dist/skills/media-use/audio/scripts/lib/recording.mjs +66 -3
- package/dist/skills/media-use/audio/scripts/wait-bgm.mjs +12 -7
- package/dist/skills/media-use/references/audio.md +2 -2
- package/dist/skills/media-use/references/mixing.md +1 -1
- package/dist/skills/media-use/scripts/lib/index-gen.mjs +13 -11
- package/dist/skills/media-use/scripts/lib/manifest.mjs +51 -4
- package/dist/{skills-H4OZQ6VR.js → skills-G63W5GD5.js} +17 -16
- package/dist/{skillsUpdateCheck-U3XZX7UE.js → skillsUpdateCheck-2T3JVDAA.js} +6 -6
- package/dist/{snapshot-FJQVXBFB.js → snapshot-EVSKTVDG.js} +89 -78
- package/dist/{src-O6BHCR4O.js → src-K5FSMLTB.js} +22 -20
- package/dist/{src-PAM5LJ6K.js → src-R57EQQSI.js} +28 -19
- package/dist/{start-R7CYOQ5S.js → start-XBCYKGBV.js} +40 -39
- package/dist/{state-YFRV6TQH.js → state-FO64CPYE.js} +4 -3
- package/dist/{staticProjectServer-4X2OSUN4.js → staticProjectServer-Q6VR7CXT.js} +32 -30
- package/dist/{status-VN3FAN4M.js → status-E5XIWRCQ.js} +37 -34
- package/dist/studio/assets/{hyperframes-player-SRLbmEDB.js → hyperframes-player-B78JDyI_.js} +1 -1
- package/dist/studio/assets/{index-CgyBYe2L.js → index-D7ICtobF.js} +178 -178
- package/dist/studio/assets/{index-yuN1pZrv.js → index-ww7-RmuM.js} +1 -1
- package/dist/studio/assets/{pausedVideoDecoder-DtvSF8bV.js → pausedVideoDecoder-Dbe8Cmab.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-V3TMIWFB.js → studio-api-GMJVYGET.js} +19 -17
- package/dist/{studioServer-GY2ZTR2E.js → studioServer-MIQCMK6U.js} +117 -101
- package/dist/subCompositionWorker.js +1162 -0
- package/dist/{sync-2V3JYCDE.js → sync-WJOFN6VN.js} +22 -21
- package/dist/{synthesize-TQELPMS5.js → synthesize-FXM7ZD6J.js} +6 -5
- package/dist/{system-2YOII5LZ.js → system-DBUN5UDD.js} +3 -3
- package/dist/{telemetry-KMRZ3IJV.js → telemetry-HZ4P4DMC.js} +12 -11
- package/dist/{templates-EEFY4FPS.js → templates-KFZZSSKW.js} +29 -28
- package/dist/{timeline-HSRGYZ3Q.js → timeline-5M6DPCXF.js} +37 -35
- package/dist/{tokens-NYFORL53.js → tokens-H4NPNRFR.js} +3 -2
- package/dist/{transcribe-CNIQYQ52.js → transcribe-6STI2ALX.js} +47 -46
- package/dist/{transcribe-GFFWRWK3.js → transcribe-7PE5UH7J.js} +18 -17
- package/dist/{tts-NPMDYSXP.js → tts-D7CLD3AD.js} +1 -1
- package/dist/{update-BDMPUNNA.js → update-H3T3AVVG.js} +19 -18
- package/dist/{updateCheck-43UZ2USJ.js → updateCheck-TLCXUNBV.js} +5 -5
- package/dist/{upgrade-Z5B57UWL.js → upgrade-BZVTMCQU.js} +9 -8
- package/dist/{urlDownloader-KDZ76BKM.js → urlDownloader-FJXNC3IM.js} +13 -12
- package/dist/{validate-UQKZNR5K.js → validate-WTRVCEL5.js} +39 -37
- package/dist/{video-VR4363OG.js → video-TVO2U5F2.js} +17 -16
- package/dist/{voices-GUWAM3TH.js → voices-F3EW43LX.js} +39 -38
- package/dist/warmCheck.js +64 -63
- package/dist/warmCheckClient.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-56T2OGYR.js +0 -5085
- package/dist/skills/hyperframes/scripts/lib/main-module.test.mjs +0 -46
- package/dist/skills/hyperframes/scripts/lib/windows-exe-search.test.mjs +0 -149
- package/dist/skills/hyperframes/scripts/plugin-cli.test.mjs +0 -231
- package/dist/skills/media-use/audio/scripts/audio.test.mjs +0 -166
- package/dist/skills/media-use/audio/scripts/carve.test.mjs +0 -254
- package/dist/skills/media-use/audio/scripts/gemini-pipeline.test.mjs +0 -131
- package/dist/skills/media-use/audio/scripts/heygen-tts.test.mjs +0 -38
- package/dist/skills/media-use/audio/scripts/heygen-voice.test.mjs +0 -233
- package/dist/skills/media-use/audio/scripts/lib/audio-meta.test.mjs +0 -136
- package/dist/skills/media-use/audio/scripts/lib/bgm.test.mjs +0 -135
- package/dist/skills/media-use/audio/scripts/lib/concurrency.test.mjs +0 -41
- package/dist/skills/media-use/audio/scripts/lib/gemini-auth.test.mjs +0 -86
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +0 -253
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +0 -627
- package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +0 -239
- package/dist/skills/media-use/audio/scripts/lib/python.test.mjs +0 -198
- package/dist/skills/media-use/audio/scripts/lib/sfx.test.mjs +0 -331
- package/dist/skills/media-use/audio/scripts/lib/tts.cleanup.test.mjs +0 -181
- package/dist/skills/media-use/audio/scripts/lib/tts.spawn.test.mjs +0 -183
- package/dist/skills/media-use/audio/scripts/lib/tts.test.mjs +0 -280
- package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +0 -21
- package/dist/skills/media-use/audio/scripts/recording.test.mjs +0 -139
- package/dist/skills/media-use/audio/scripts/trusted-program.test.mjs +0 -106
- package/dist/skills/media-use/audio/scripts/wait-bgm.test.mjs +0 -108
- package/dist/skills/media-use/scripts/compatibility.test.mjs +0 -41
- package/dist/skills/media-use/scripts/dither.test.mjs +0 -176
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +0 -143
- package/dist/skills/media-use/scripts/lib/bundled-sfx-provider.test.mjs +0 -178
- package/dist/skills/media-use/scripts/lib/cache.test.mjs +0 -110
- package/dist/skills/media-use/scripts/lib/candidates.test.mjs +0 -155
- package/dist/skills/media-use/scripts/lib/codex-provider.test.mjs +0 -34
- package/dist/skills/media-use/scripts/lib/config-lock.test.mjs +0 -79
- package/dist/skills/media-use/scripts/lib/coverage.test.mjs +0 -136
- package/dist/skills/media-use/scripts/lib/credit-limit.test.mjs +0 -39
- package/dist/skills/media-use/scripts/lib/cube-build.test.mjs +0 -80
- package/dist/skills/media-use/scripts/lib/cube-validate.test.mjs +0 -130
- package/dist/skills/media-use/scripts/lib/cutlist.test.mjs +0 -174
- package/dist/skills/media-use/scripts/lib/duck.test.mjs +0 -319
- package/dist/skills/media-use/scripts/lib/error-diffusion.test.mjs +0 -102
- package/dist/skills/media-use/scripts/lib/freeze.test.mjs +0 -138
- package/dist/skills/media-use/scripts/lib/grade-analyzer.test.mjs +0 -285
- package/dist/skills/media-use/scripts/lib/heygen-cli.test.mjs +0 -315
- package/dist/skills/media-use/scripts/lib/heygen-search.test.mjs +0 -49
- package/dist/skills/media-use/scripts/lib/heygen-video-provider.test.mjs +0 -435
- package/dist/skills/media-use/scripts/lib/local-media-search.test.mjs +0 -92
- package/dist/skills/media-use/scripts/lib/local-models.test.mjs +0 -220
- package/dist/skills/media-use/scripts/lib/local-run.test.mjs +0 -121
- package/dist/skills/media-use/scripts/lib/logo-provider.test.mjs +0 -312
- package/dist/skills/media-use/scripts/lib/ltx-video-provider.test.mjs +0 -331
- package/dist/skills/media-use/scripts/lib/lut-preset-provider.test.mjs +0 -199
- package/dist/skills/media-use/scripts/lib/manifest.test.mjs +0 -397
- package/dist/skills/media-use/scripts/lib/media-fetch.test.mjs +0 -197
- package/dist/skills/media-use/scripts/lib/media-home.test.mjs +0 -61
- package/dist/skills/media-use/scripts/lib/mflux-provider.test.mjs +0 -174
- package/dist/skills/media-use/scripts/lib/misses.test.mjs +0 -89
- package/dist/skills/media-use/scripts/lib/npx-sync.test.mjs +0 -41
- package/dist/skills/media-use/scripts/lib/openverse.test.mjs +0 -219
- package/dist/skills/media-use/scripts/lib/parakeet-words.test.mjs +0 -44
- package/dist/skills/media-use/scripts/lib/prefs-store.concurrent.test.mjs +0 -173
- package/dist/skills/media-use/scripts/lib/prefs-store.test.mjs +0 -245
- package/dist/skills/media-use/scripts/lib/probe.test.mjs +0 -221
- package/dist/skills/media-use/scripts/lib/recipe-store.test.mjs +0 -391
- package/dist/skills/media-use/scripts/lib/registry.test.mjs +0 -261
- package/dist/skills/media-use/scripts/lib/search.test.mjs +0 -32
- package/dist/skills/media-use/scripts/lib/specs.test.mjs +0 -157
- package/dist/skills/media-use/scripts/lib/stats.test.mjs +0 -165
- package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +0 -550
- package/dist/skills/media-use/scripts/lib/test-home.test.mjs +0 -10
- package/dist/skills/media-use/scripts/lib/transcriptCutFade.test.mjs +0 -33
- package/dist/skills/media-use/scripts/lib/tts-local-provider.test.mjs +0 -59
- package/dist/skills/media-use/scripts/lib/usage.test.mjs +0 -54
- package/dist/skills/media-use/scripts/lib/voice-provider.test.mjs +0 -46
- package/dist/skills/media-use/scripts/resolve-plugin.test.mjs +0 -86
- package/dist/skills/media-use/scripts/transcribe.test.mjs +0 -215
- package/dist/skills/media-use/scripts/transcript-cut.test.mjs +0 -341
- package/dist/{chunk-BAWGEGKD.js → chunk-XMAU5ZQX.js} +3 -3
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
// release in its manifest; a standalone skill install takes the newest release from npm.
|
|
4
4
|
import "./lib/windows-exe-search.mjs";
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
6
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
6
|
+
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
7
7
|
import { homedir } from "node:os";
|
|
8
|
-
import { join, win32 } from "node:path";
|
|
8
|
+
import { basename, isAbsolute, join, relative, resolve, sep, win32 } from "node:path";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
10
10
|
import { isMainModule } from "./lib/main-module.mjs";
|
|
11
11
|
|
|
@@ -18,7 +18,45 @@ const manifests = [
|
|
|
18
18
|
"gemini-extension.json",
|
|
19
19
|
];
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
// The first release whose bin moves into HYPERFRAMES_PLUGIN_CWD. An older one would run the
|
|
22
|
+
// command in the home folder.
|
|
23
|
+
const CLI_FLOOR = "0.9.34";
|
|
24
|
+
export const STANDALONE_CLI = `hyperframes@>=${CLI_FLOOR}`;
|
|
25
|
+
|
|
26
|
+
const realOrResolved = (path) => {
|
|
27
|
+
try {
|
|
28
|
+
return realpathSync.native(path);
|
|
29
|
+
} catch {
|
|
30
|
+
return resolve(path);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const isOutside = (from, to) => {
|
|
35
|
+
const path = relative(from, to);
|
|
36
|
+
return path === ".." || path.startsWith(`..${sep}`) || isAbsolute(path);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// Plugin managers keep bundles in their own folders, such as ~/.claude/plugins or ~/.gemini/extensions.
|
|
40
|
+
// Skills in a dot folder (.agents, .claude) or in the working folder's own tree are project content.
|
|
41
|
+
function isPluginBundle(pluginRoot, workDir) {
|
|
42
|
+
const bundle = realOrResolved(pluginRoot);
|
|
43
|
+
const work = realOrResolved(workDir);
|
|
44
|
+
if (basename(bundle).startsWith(".") || !isOutside(bundle, work)) return false;
|
|
45
|
+
if (isOutside(work, bundle)) return true;
|
|
46
|
+
return relative(work, bundle)
|
|
47
|
+
.split(sep)
|
|
48
|
+
.some((segment) => segment.startsWith("."));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function isBelowFloor(version) {
|
|
52
|
+
const parts = (text) => text.split("-")[0].split(".").map(Number);
|
|
53
|
+
const [have, floor] = [parts(version), parts(CLI_FLOOR)];
|
|
54
|
+
const at = have.findIndex((part, index) => part !== floor[index]);
|
|
55
|
+
return at === -1 ? version.includes("-") : have[at] < floor[at];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function pluginVersion(pluginRoot = root, workDir = process.cwd()) {
|
|
59
|
+
if (!isPluginBundle(pluginRoot, workDir)) return undefined;
|
|
22
60
|
for (const path of manifests) {
|
|
23
61
|
const file = join(pluginRoot, path);
|
|
24
62
|
if (!existsSync(file)) continue;
|
|
@@ -29,15 +67,15 @@ export function pluginVersion(pluginRoot = root) {
|
|
|
29
67
|
) {
|
|
30
68
|
throw new Error(`Invalid HyperFrames plugin release: ${file}`);
|
|
31
69
|
}
|
|
70
|
+
if (isBelowFloor(manifest.version))
|
|
71
|
+
throw new Error(
|
|
72
|
+
`${file} pins HyperFrames ${manifest.version}; this launcher runs ${CLI_FLOOR} or newer.`,
|
|
73
|
+
);
|
|
32
74
|
return manifest.version;
|
|
33
75
|
}
|
|
34
76
|
return undefined;
|
|
35
77
|
}
|
|
36
78
|
|
|
37
|
-
// The first release whose bin moves into HYPERFRAMES_PLUGIN_CWD. An older one would run the
|
|
38
|
-
// command in the home folder.
|
|
39
|
-
export const STANDALONE_CLI = "hyperframes@>=0.9.34";
|
|
40
|
-
|
|
41
79
|
// npm takes the package, bin links and .npmrc from the folder it starts in, so npx starts
|
|
42
80
|
// in the home folder and the CLI moves into the project before it runs a command. A shared
|
|
43
81
|
// folder such as the temp folder is no substitute, so there is no fallback.
|
|
@@ -49,12 +87,12 @@ export function npmFolder(home = homedir(), pathExists = existsSync) {
|
|
|
49
87
|
export function invocation(
|
|
50
88
|
args,
|
|
51
89
|
{
|
|
52
|
-
|
|
90
|
+
cwd = process.cwd(),
|
|
91
|
+
version = pluginVersion(root, cwd),
|
|
53
92
|
env = process.env,
|
|
54
93
|
platform = process.platform,
|
|
55
94
|
node = process.execPath,
|
|
56
95
|
pathExists = existsSync,
|
|
57
|
-
cwd = process.cwd(),
|
|
58
96
|
npmCwd,
|
|
59
97
|
launcher = fileURLToPath(import.meta.url),
|
|
60
98
|
} = {},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
// before assembling.
|
|
40
40
|
|
|
41
41
|
import { existsSync, mkdirSync, readFileSync } from "node:fs";
|
|
42
|
-
import { dirname, join, resolve } from "node:path";
|
|
42
|
+
import { dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
43
43
|
import { fileURLToPath } from "node:url";
|
|
44
44
|
import { heygenAuthHeaders, heygenCredential, loadEnvFromDir } from "./lib/heygen.mjs";
|
|
45
45
|
import {
|
|
@@ -53,10 +53,11 @@ import {
|
|
|
53
53
|
import { generateBgmDetached, inferBgmPrompt, retrieveBgm } from "./lib/bgm.mjs";
|
|
54
54
|
import { BUNDLED_SFX_DIR, resolveSfx } from "./lib/sfx.mjs";
|
|
55
55
|
import { voiceCredit } from "./lib/voice-credit.mjs";
|
|
56
|
-
import { parseWords, scaleWords, stretchToWav } from "./lib/recording.mjs";
|
|
56
|
+
import { parseWords, recordingSource, scaleWords, stretchToWav } from "./lib/recording.mjs";
|
|
57
57
|
import { mapWithConcurrency } from "./lib/concurrency.mjs";
|
|
58
58
|
import { openAudioMeta } from "./lib/audio-meta.mjs";
|
|
59
59
|
import { recordInManifest, voicePaths, writtenAssets } from "./lib/media-record.mjs";
|
|
60
|
+
import { engineBgmLog, projectPath } from "./lib/project-path.mjs";
|
|
60
61
|
|
|
61
62
|
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
62
63
|
const argv = process.argv.slice(2);
|
|
@@ -120,6 +121,11 @@ loadEnvFromDir(hyperframesDir);
|
|
|
120
121
|
const heygenOK = heygenCredential() !== null;
|
|
121
122
|
|
|
122
123
|
// ── merge base: preserve sections not selected by --only ──────────────────────
|
|
124
|
+
// An output inside the project must stay there: a link planted at audio_meta.json must not lead outside.
|
|
125
|
+
const outRel = relative(hyperframesDir, outPath);
|
|
126
|
+
const outInProject = outRel !== ".." && !outRel.startsWith(`..${sep}`) && !isAbsolute(outRel);
|
|
127
|
+
if (outInProject && !projectPath(hyperframesDir, outRel))
|
|
128
|
+
die(`${outPath} leads outside the project folder; replace it with a regular file`);
|
|
123
129
|
const audioMeta = openAudioMeta(outPath);
|
|
124
130
|
const prev = audioMeta.value;
|
|
125
131
|
const anomalies = [];
|
|
@@ -129,6 +135,16 @@ let voices = prev.voices ?? [];
|
|
|
129
135
|
let ttsProvider = prev.tts_provider ?? null;
|
|
130
136
|
let voiceId = prev.voice_id ?? null;
|
|
131
137
|
if (only.has("tts") && lines.length) {
|
|
138
|
+
// Every voice file and recording path is checked before any TTS runs.
|
|
139
|
+
let paths;
|
|
140
|
+
const recordings = new Map();
|
|
141
|
+
try {
|
|
142
|
+
paths = voicePaths(hyperframesDir, lines, anomalies);
|
|
143
|
+
for (const line of lines.filter((l) => l.audio))
|
|
144
|
+
recordings.set(String(line.id), recordingSource(hyperframesDir, line.audio));
|
|
145
|
+
} catch (e) {
|
|
146
|
+
die(e.message);
|
|
147
|
+
}
|
|
132
148
|
if (lines.some((l) => !l.audio)) {
|
|
133
149
|
try {
|
|
134
150
|
ttsProvider = pickProvider(
|
|
@@ -147,11 +163,10 @@ if (only.has("tts") && lines.length) {
|
|
|
147
163
|
voiceId = null;
|
|
148
164
|
}
|
|
149
165
|
console.error(`· tts: ${ttsProvider} · voice ${voiceId} · ${lines.length} line(s)`);
|
|
150
|
-
|
|
151
|
-
// A line with `audio` is the person's own recording (path relative to the project), with optional
|
|
166
|
+
// A line with `audio` is the person's own recording (path inside the project), with optional
|
|
152
167
|
// `words`; `speed` applies to it like to a generated voice. Returns synthesizeOne's shape.
|
|
153
168
|
const useRecording = (line, abs) => {
|
|
154
|
-
const made = stretchToWav(
|
|
169
|
+
const made = stretchToWav(recordings.get(String(line.id)), abs, speed);
|
|
155
170
|
if (!made.ok) return made;
|
|
156
171
|
try {
|
|
157
172
|
const given = parseWords(line.words);
|
|
@@ -213,11 +228,13 @@ const totalDuration = r3(voices.reduce((a, v) => a + (v.duration_s || 0), 0));
|
|
|
213
228
|
|
|
214
229
|
// ── BGM ─────────────────────────────────────────────────────────────────────
|
|
215
230
|
let bgm = prev.bgm ?? null;
|
|
231
|
+
// A running job's pid and log carry over only with the engine's own log in assets/bgm.
|
|
232
|
+
const ownJob = engineBgmLog(hyperframesDir, prev.bgm_log) !== null;
|
|
216
233
|
const bgmFields = {
|
|
217
234
|
bgm_pending: prev.bgm_pending ?? false,
|
|
218
235
|
bgm_provider: prev.bgm_provider ?? null,
|
|
219
|
-
bgm_pid: prev.bgm_pid ?? null,
|
|
220
|
-
bgm_log: prev.bgm_log
|
|
236
|
+
bgm_pid: ownJob ? (prev.bgm_pid ?? null) : null,
|
|
237
|
+
bgm_log: ownJob ? prev.bgm_log : null,
|
|
221
238
|
bgm_mode: prev.bgm_mode ?? null,
|
|
222
239
|
bgm_target_duration_s: prev.bgm_target_duration_s ?? null,
|
|
223
240
|
bgm_seed_duration_s: prev.bgm_seed_duration_s ?? null,
|
|
@@ -18,18 +18,16 @@
|
|
|
18
18
|
* voice is analysed together, so a bed running under a narrator and an answer makes
|
|
19
19
|
* room for both.
|
|
20
20
|
*
|
|
21
|
-
* Needs `ffmpeg` on PATH (to decode the audio)
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* there.
|
|
21
|
+
* Needs `ffmpeg` on PATH (to decode the audio). The analysis ships beside this
|
|
22
|
+
* script (`lib/audio-carve.mjs`, generated from core), so nothing in the
|
|
23
|
+
* composition's project is loaded.
|
|
25
24
|
*/
|
|
26
25
|
|
|
27
26
|
import "../../scripts/lib/windows-exe-search.mjs";
|
|
28
27
|
import { execFileSync } from "node:child_process";
|
|
29
|
-
import { createRequire } from "node:module";
|
|
30
28
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
31
29
|
import { dirname, resolve } from "node:path";
|
|
32
|
-
import
|
|
30
|
+
import * as carveApi from "./lib/audio-carve.mjs";
|
|
33
31
|
import { isMainModule } from "./lib/main-module.mjs";
|
|
34
32
|
|
|
35
33
|
/** Sample rate the analysis runs at. Matches Studio's own decode rate, so the
|
|
@@ -40,13 +38,12 @@ const SAMPLE_RATE = 48000;
|
|
|
40
38
|
export const DEFAULT_STRENGTH = 0.8;
|
|
41
39
|
|
|
42
40
|
const usage = `carve.mjs --comp <file.html> [--bed <elementId>] [--voice <elementId> ...]
|
|
43
|
-
[--strength 0..1] [--dry-run]
|
|
41
|
+
[--strength 0..1] [--dry-run]
|
|
44
42
|
|
|
45
43
|
--bed id of the music track that gets carved (detected if omitted)
|
|
46
44
|
--voice id of a voice to make room for; repeatable (detected if omitted)
|
|
47
45
|
--strength how hard to carve, 0..1 (default ${DEFAULT_STRENGTH})
|
|
48
|
-
--dry-run report what it would write, touch nothing
|
|
49
|
-
--core directory to resolve @hyperframes/core from (default: the comp's)`;
|
|
46
|
+
--dry-run report what it would write, touch nothing`;
|
|
50
47
|
|
|
51
48
|
export function parseArgs(argv) {
|
|
52
49
|
const args = { strength: DEFAULT_STRENGTH, dryRun: false, voices: [] };
|
|
@@ -62,7 +59,6 @@ export function parseArgs(argv) {
|
|
|
62
59
|
else if (flag === "--bed") args.bed = next();
|
|
63
60
|
else if (flag === "--voice") args.voices.push(next());
|
|
64
61
|
else if (flag === "--strength") args.strength = Number(next());
|
|
65
|
-
else if (flag === "--core") args.core = next();
|
|
66
62
|
else if (flag === "--dry-run") args.dryRun = true;
|
|
67
63
|
else if (flag === "-h" || flag === "--help") fail(usage, 0);
|
|
68
64
|
else fail(`unknown flag: ${flag}\n\n${usage}`);
|
|
@@ -79,73 +75,6 @@ function fail(message, code = 1) {
|
|
|
79
75
|
process.exit(code);
|
|
80
76
|
}
|
|
81
77
|
|
|
82
|
-
/**
|
|
83
|
-
* Load the carve analysis out of `@hyperframes/core`.
|
|
84
|
-
*
|
|
85
|
-
* Resolved from the project rather than from this script, which lives wherever
|
|
86
|
-
* the skill was installed — a sibling of the composition is what has the
|
|
87
|
-
* dependency.
|
|
88
|
-
*/
|
|
89
|
-
export async function loadCore(fromDir) {
|
|
90
|
-
const require = createRequire(pathToFileURL(resolve(fromDir, "package.json")));
|
|
91
|
-
|
|
92
|
-
/*
|
|
93
|
-
* Two constraints at once, and satisfying either alone is broken:
|
|
94
|
-
*
|
|
95
|
-
* 1. Anchored at the PROJECT, not at this script. This file lives wherever
|
|
96
|
-
* the skill was installed, which has no @hyperframes/core; the
|
|
97
|
-
* composition's project is what holds the dependency. So a bare
|
|
98
|
-
* `import("@hyperframes/core/audio-carve")` from here cannot work — bare
|
|
99
|
-
* specifiers resolve relative to the importing module.
|
|
100
|
-
* 2. Honouring the package's export CONDITIONS. `require.resolve` asks for
|
|
101
|
-
* "require"/"node". The workspace manifest declares `node`, so this
|
|
102
|
-
* resolved fine inside the monorepo — but the PUBLISHED manifest carries
|
|
103
|
-
* only `import` + `types`, so every consumer of the released package got
|
|
104
|
-
* ERR_PACKAGE_PATH_NOT_EXPORTED for a package that ships the file. That
|
|
105
|
-
* is the audience this skill is shipped to, so the script was broken
|
|
106
|
-
* everywhere except where it was developed.
|
|
107
|
-
*
|
|
108
|
-
* Keep the project anchor; fall back to the package's declared `import`
|
|
109
|
-
* target when no require-resolvable condition exists.
|
|
110
|
-
*/
|
|
111
|
-
const load = async (subpath) => {
|
|
112
|
-
const spec = `@hyperframes/core/${subpath}`;
|
|
113
|
-
try {
|
|
114
|
-
return await import(pathToFileURL(require.resolve(spec)).href);
|
|
115
|
-
} catch (error) {
|
|
116
|
-
if (error?.code !== "ERR_PACKAGE_PATH_NOT_EXPORTED") throw error;
|
|
117
|
-
// `./package.json` is exported by every manifest, so this always resolves
|
|
118
|
-
// and gives us the package root without guessing at node_modules layout.
|
|
119
|
-
const pkgPath = require.resolve("@hyperframes/core/package.json");
|
|
120
|
-
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
121
|
-
const entry = pkg.exports?.[`./${subpath}`];
|
|
122
|
-
const target = typeof entry === "string" ? entry : (entry?.import ?? entry?.default ?? null);
|
|
123
|
-
if (!target) {
|
|
124
|
-
fail(
|
|
125
|
-
`@hyperframes/core does not export ./${subpath}\n` +
|
|
126
|
-
` found at: ${pkgPath} (version ${pkg.version})\n` +
|
|
127
|
-
` update it: npm i -D @hyperframes/core`,
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
return import(pathToFileURL(resolve(dirname(pkgPath), target)).href);
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
try {
|
|
135
|
-
return {
|
|
136
|
-
carve: await load("audio-carve"),
|
|
137
|
-
fx: await load("audio-fx"),
|
|
138
|
-
};
|
|
139
|
-
} catch (error) {
|
|
140
|
-
fail(
|
|
141
|
-
`cannot load @hyperframes/core from ${fromDir}\n` +
|
|
142
|
-
` is it installed there? npm i -D @hyperframes/core\n` +
|
|
143
|
-
` or point at one: --core <dir containing node_modules/@hyperframes/core>\n` +
|
|
144
|
-
` (${error.code ?? "error"}: ${error.message.split("\n")[0]})`,
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
78
|
/**
|
|
150
79
|
* The `sources` a carve should record for these voices, on this bed.
|
|
151
80
|
*
|
|
@@ -383,7 +312,6 @@ async function main() {
|
|
|
383
312
|
const args = parseArgs(process.argv.slice(2));
|
|
384
313
|
const compPath = resolve(args.comp);
|
|
385
314
|
const compDir = dirname(compPath);
|
|
386
|
-
const { carve: carveApi, fx: fxApi } = await loadCore(args.core ? resolve(args.core) : compDir);
|
|
387
315
|
|
|
388
316
|
const html = readFileSync(compPath, "utf-8");
|
|
389
317
|
const {
|
|
@@ -433,7 +361,7 @@ async function main() {
|
|
|
433
361
|
// carve's own nodes are replaced. That is what `fromCarve` is for.
|
|
434
362
|
const existingChain = attrOf(bedTag, "data-fx-chain");
|
|
435
363
|
const existingNodes = existingChain
|
|
436
|
-
?
|
|
364
|
+
? carveApi.parseAudioFxChain(unescapeAttr(existingChain)).nodes
|
|
437
365
|
: [];
|
|
438
366
|
const kept = existingNodes.filter((n) => !n.fromCarve);
|
|
439
367
|
// Lanes belonging to the carve being replaced, addressed by the ids the OLD
|
|
@@ -444,7 +372,7 @@ async function main() {
|
|
|
444
372
|
|
|
445
373
|
let claimed = { version: 1, nodes: kept };
|
|
446
374
|
const mint = (node) => {
|
|
447
|
-
const withId = { ...node, id:
|
|
375
|
+
const withId = { ...node, id: carveApi.mintAudioFxNodeId(claimed), fromCarve: true };
|
|
448
376
|
claimed = { version: 1, nodes: [...claimed.nodes, withId] };
|
|
449
377
|
return withId;
|
|
450
378
|
};
|
|
@@ -456,7 +384,7 @@ async function main() {
|
|
|
456
384
|
type: "gain",
|
|
457
385
|
enabled: true,
|
|
458
386
|
params: {
|
|
459
|
-
...
|
|
387
|
+
...carveApi.defaultAudioFxParams("gain"),
|
|
460
388
|
gain: 0,
|
|
461
389
|
},
|
|
462
390
|
})
|
|
@@ -522,7 +450,7 @@ async function main() {
|
|
|
522
450
|
}
|
|
523
451
|
const written =
|
|
524
452
|
` data-fx-carve="${escapeAttr(JSON.stringify(settings))}"` +
|
|
525
|
-
` data-fx-chain="${escapeAttr(
|
|
453
|
+
` data-fx-chain="${escapeAttr(carveApi.serializeAudioFxChain(chain))}"` +
|
|
526
454
|
(lanes.length > 0
|
|
527
455
|
? ` data-automation="${escapeAttr(JSON.stringify({ version: 1, lanes }))}"`
|
|
528
456
|
: "");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// GENERATED: do not hand-edit. Source: packages/core/src/audioCarve.ts and audioFx.ts, bundled by
|
|
2
|
+
// scripts/generate-media-use-audio-carve.mjs so carve.mjs runs the same analysis as Studio without
|
|
3
|
+
// loading @hyperframes/core from the project. Regenerate: node scripts/generate-media-use-audio-carve.mjs
|
|
4
|
+
var Z="data-fx-chain",Ne=Z.slice(5),D=1,C=(e="frequency",n="Frequency",t=1e3,a=20,r=2e4)=>({kind:"number",key:e,label:n,unit:"Hz",min:a,max:r,step:1,default:t,scale:"log",automatable:!0}),I=(e=.707,n="Bandwidth: higher is narrower.")=>({kind:"number",key:"q",label:"Q",unit:"",min:.1,max:20,step:.01,default:e,scale:"log",automatable:!0,hint:n}),E=(e=-40,n=40,t=0)=>({kind:"number",key:"gain",label:"Gain",unit:"dB",min:e,max:n,step:.1,default:t,automatable:!0}),L={kind:"enum",key:"poles",label:"Slope",options:[{value:"1",label:"6 dB/oct"},{value:"2",label:"12 dB/oct"}],default:"2",hint:"Two poles is the usual biquad; one pole is gentler."},V=[{id:"gain",label:"Gain",group:"dynamics",description:"Raise or lower the whole signal. Automate it to duck under something else.",params:[E(-60,12,0)],web:"gain-node"},{id:"peaking",label:"Peaking EQ",group:"filter",description:"Boost or cut a band, leaving everything either side alone.",params:[C("frequency","Frequency",1e3),E(-40,40,0),I(1)],web:"biquad-peaking"},{id:"lowshelf",label:"Low Shelf",group:"filter",description:"Lift or drop everything below the corner frequency.",params:[C("frequency","Frequency",200,20,2e3),E(-40,40,0)],web:"biquad-lowshelf"},{id:"highshelf",label:"High Shelf",group:"filter",description:"Lift or drop everything above the corner frequency.",params:[C("frequency","Frequency",4e3,500,2e4),E(-40,40,0)],web:"biquad-highshelf"},{id:"highpass",label:"High-pass",group:"filter",description:"Remove low frequencies: the usual fix for rumble on a voice.",params:[C("frequency","Cutoff",300,20,2e4),I(.707),L],web:"biquad-highpass"},{id:"lowpass",label:"Low-pass",group:"filter",description:"Remove high frequencies, which darkens or muffles a track.",params:[C("frequency","Cutoff",8e3,100,2e4),I(.707),L],web:"biquad-lowpass"},{id:"compressor",label:"Compressor",group:"dynamics",description:"Pull loud parts down so the quiet ones can come up.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-60,max:0,step:.5,default:-24,hint:"Level above which the compressor starts working."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:4},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:2e3,step:.1,default:20,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:250,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83,hint:"1 is a hard corner; higher eases into it."},{kind:"number",key:"makeup",label:"Makeup",unit:"dB",min:0,max:36,step:.1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1,hint:"Below 1 blends the dry signal back in."}],web:"worklet-compressor"},{id:"limiter",label:"Limiter",group:"dynamics",description:"Peak limiter that follows the signal's level. It has no lookahead, so a fast peak or an inter-sample peak can pass the ceiling; use the true-peak limiter for a delivery limit.",params:[{kind:"number",key:"limit",label:"Ceiling",unit:"dB",min:-24,max:0,step:.1,default:-1},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.1,max:80,step:.1,default:5},{kind:"number",key:"release",label:"Release",unit:"ms",min:1,max:8e3,step:1,default:50,scale:"log"},{kind:"number",key:"level_out",label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0}],web:"worklet-limiter"},{id:"truepeak",label:"True-peak limiter",group:"dynamics",description:"Lookahead limiter that holds a 4x estimate of the inter-sample peak at a dBTP ceiling; full-band noise can land up to about 1.7 dB above it. Adds lookahead plus about 0.3 ms of latency.",params:[{kind:"number",key:"ceiling",label:"Ceiling",unit:"dBTP",min:-24,max:0,step:.1,default:-1,hint:"Target true peak, measured on a 4x oversampled signal. Dense full-band sound can end up to about 1.7 dB above it."},{kind:"number",key:"lookahead",label:"Lookahead",unit:"ms",min:.5,max:10,step:.1,default:3,hint:"How far ahead the gain starts falling. Longer is smoother and adds the same latency."},{kind:"number",key:"release",label:"Release",unit:"ms",min:10,max:2e3,step:1,default:80,scale:"log"}],web:"worklet-truepeak"},{id:"gate",label:"Noise Gate",group:"dynamics",description:"Silence the track when it drops below the threshold.",params:[{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-80,max:0,step:.5,default:-35},{kind:"number",key:"range",label:"Range",unit:"dB",min:-80,max:0,step:.5,default:-24,hint:"How far down the gate pulls when closed."},{kind:"number",key:"ratio",label:"Ratio",unit:":1",min:1,max:20,step:.1,default:10},{kind:"number",key:"attack",label:"Attack",unit:"ms",min:.01,max:9e3,step:.1,default:1,scale:"log"},{kind:"number",key:"release",label:"Release",unit:"ms",min:.01,max:9e3,step:1,default:100,scale:"log"},{kind:"number",key:"knee",label:"Knee",unit:"",min:1,max:8,step:.01,default:2.83}],web:"worklet-gate"},{id:"saturate",label:"Saturation",group:"nonlinear",description:"Soft-clip the waveform for warmth or outright distortion.",params:[{kind:"enum",key:"type",label:"Curve",options:[{value:"tanh",label:"Tanh"},{value:"atan",label:"Arctan"},{value:"cubic",label:"Cubic"},{value:"exp",label:"Exponential"},{value:"alg",label:"Algebraic"},{value:"quintic",label:"Quintic"},{value:"sin",label:"Sine"},{value:"erf",label:"Error function"},{value:"hard",label:"Hard clip"}],default:"tanh"},{kind:"number",key:"threshold",label:"Threshold",unit:"dB",min:-40,max:0,step:.1,default:-6},{kind:"number",key:"output",automatable:!0,label:"Output",unit:"dB",min:-24,max:24,step:.1,default:0},{kind:"number",key:"oversample",label:"Oversample",unit:"x",min:1,max:8,step:1,default:4,hint:"Higher costs more but keeps aliasing down."}],web:"waveshaper"},{id:"bitcrush",label:"Bitcrush",group:"nonlinear",description:"Drop bit depth and sample rate for a lo-fi, digital sound.",params:[{kind:"number",key:"bits",label:"Bit depth",unit:"bit",min:1,max:32,step:.1,default:8},{kind:"number",key:"samples",label:"Sample hold",unit:"x",min:1,max:250,step:1,default:1,hint:"Repeats each sample N times, a crude downsample."},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-bitcrush"},{id:"pitchshift",label:"Pitch shift",group:"time",description:"Shifts pitch up or down without changing playback speed. Adds ~50 ms of latency.",params:[{kind:"number",key:"semitones",label:"Semitones",unit:"st",min:-12,max:12,step:1,default:0},{kind:"number",key:"mix",label:"Mix",unit:"",min:0,max:1,step:.01,default:1}],web:"worklet-pitchshift"},{id:"delay",label:"Delay",group:"time",description:"Repeating echoes behind the dry signal.",params:[{kind:"number",key:"time",automatable:!0,label:"Time",unit:"ms",min:1,max:5e3,step:1,default:250,scale:"log"},{kind:"number",key:"feedback",automatable:!0,label:"Feedback",unit:"",min:.01,max:.95,step:.01,default:.35},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.4}],web:"delay-feedback"},{id:"chorus",label:"Chorus",group:"time",description:"Detuned copies of the signal for width and thickness.",params:[{kind:"number",key:"delay",automatable:!0,label:"Delay",unit:"ms",min:1,max:100,step:.1,default:7},{kind:"number",key:"depth",automatable:!0,label:"Depth",unit:"ms",min:0,max:10,step:.01,default:2},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.01,max:10,step:.01,default:1},{kind:"number",key:"mix",automatable:!0,label:"Mix",unit:"",min:0,max:1,step:.01,default:.5}],web:"chorus-lfo"},{id:"phaser",label:"Phaser",group:"time",description:"Sweeping notches moving through the spectrum.",params:[{kind:"number",key:"in_gain",automatable:!0,label:"Input",unit:"",min:0,max:1,step:.01,default:.4},{kind:"number",key:"out_gain",automatable:!0,label:"Output",unit:"",min:0,max:2,step:.01,default:.74},{kind:"number",key:"delay",label:"Delay",unit:"ms",min:.1,max:5,step:.1,default:3},{kind:"number",key:"decay",label:"Decay",unit:"",min:0,max:.99,step:.01,default:.4},{kind:"number",key:"speed",automatable:!0,label:"Rate",unit:"Hz",min:.1,max:2,step:.01,default:.5},{kind:"enum",key:"type",label:"Waveform",options:[{value:"0",label:"Triangular"},{value:"1",label:"Sinusoidal"}],default:"0"}],web:"allpass-phaser"},{id:"reverb",label:"Reverb",group:"time",description:"Room tail. Both ends convolve the same generated impulse, so preview matches render.",params:[{kind:"number",key:"size",label:"Room size",unit:"",min:.05,max:1,step:.01,default:.7},{kind:"number",key:"damping",label:"Damping",unit:"",min:0,max:1,step:.01,default:.5,hint:"Higher rolls the top off the tail faster."},{kind:"number",key:"wet",automatable:!0,label:"Wet",unit:"",min:0,max:1,step:.01,default:.35},{kind:"number",key:"dry",automatable:!0,label:"Dry",unit:"",min:0,max:1,step:.01,default:.7}],web:"convolver"}],T=new Map(V.map(e=>[e.id,e]));var He=V.map(e=>e.id);function B(e){let n=T.get(e);if(!n)return{};let t={};for(let a of n.params)t[a.key]=a.default;return t}function U(e,n){let t=T.get(e);if(!t)return{};let a={};for(let r of t.params){let o=n?.[r.key];if(r.kind==="enum"){let i=r.options.some(u=>u.value===o);a[r.key]=i?o:r.default;continue}let s=typeof o=="number"?o:typeof o=="string"&&o.trim()!==""?Number(o):Number.NaN;a[r.key]=Number.isFinite(s)?Math.min(r.max,Math.max(r.min,s)):r.default}return a}var y=class extends Error{constructor(n){super(n),this.name="AudioFxChainError"}};function ee(e){let n;try{n=JSON.parse(e)}catch(r){throw new y(`Chain file is not valid JSON: ${r.message}`)}if(typeof n!="object"||n===null)throw new y("Chain file must be a JSON object.");let t=n;if(t.version!==D)throw new y(`Unsupported chain version: ${String(t.version)}`);if(!Array.isArray(t.nodes))throw new y("Chain file is missing a `nodes` array.");let a=t.nodes.map(ae);return{version:D,nodes:a}}function te(e){return JSON.stringify({version:D,nodes:e.nodes.map(re)})}function ne(e){let n=new Set(e.nodes.map(t=>t.id).filter(Boolean));for(let t=1;;t+=1){let a=`n${t}`;if(!n.has(a))return a}}function ae(e,n){if(typeof e!="object"||e===null)throw new y(`Node ${n} is not an object.`);let t=e;if(typeof t.type!="string"||!T.has(t.type))throw new y(`Node ${n} has unknown effect type: ${String(t.type)}`);return z({type:t.type,id:A(t.id),fromCarve:S(t.fromCarve),fromPreset:A(t.fromPreset),label:A(t.label),fromEq:A(t.fromEq),fromLeveller:S(t.fromLeveller),presetAmount:$(t.presetAmount),enabled:t.enabled!==!1,params:U(t.type,t.params??void 0)})}function re(e){return z({type:e.type,id:A(e.id),fromCarve:S(e.fromCarve),fromPreset:A(e.fromPreset),label:A(e.label),fromEq:A(e.fromEq),fromLeveller:S(e.fromLeveller),presetAmount:e.presetAmount===1?void 0:$(e.presetAmount),enabled:e.enabled===!1?!1:void 0,params:U(e.type,e.params)})}function A(e){return typeof e=="string"&&e?e:void 0}function S(e){return e===!0?!0:void 0}function $(e){if(!(typeof e!="number"||!Number.isFinite(e)))return Math.min(1,Math.max(0,e))}function z(e){for(let n of Object.keys(e))e[n]===void 0&&delete e[n];return e}function O(e,n){let t=e.length;for(let a=1,r=0;a<t;a++){let o=t>>1;for(;r&o;o>>=1)r^=o;r^=o,a<r&&([e[a],e[r]]=[e[r],e[a]],[n[a],n[r]]=[n[r],n[a]])}for(let a=2;a<=t;a<<=1){let r=-2*Math.PI/a,o=Math.cos(r),s=Math.sin(r);for(let i=0;i<t;i+=a){let u=1,l=0;for(let f=0;f<a/2;f++){let h=e[i+f],c=n[i+f],b=e[i+f+a/2]*u-n[i+f+a/2]*l,m=e[i+f+a/2]*l+n[i+f+a/2]*u;e[i+f]=h+b,n[i+f]=c+m,e[i+f+a/2]=h-b,n[i+f+a/2]=c-m;let x=u*o-l*s;l=u*s+l*o,u=x}}}}var oe=[160,250,400,630,1e3,1600,2500,4e3,6e3],d=4096,ie=2048,se=/sfx|foley|whoosh|impact|riser|stinger|swoosh|thud|boom|click|ding|beep|ambien|room[-_ ]?tone/i,ue="(?<![a-z0-9])",le="(?![a-z0-9])",M=e=>`${ue}${e}${le}`,me=new RegExp(`music|bgm|${M("bed")}|soundtrack|score|${M("song")}|theme|instrumental|track\\d`,"i"),de=new RegExp(`voice|${M("vo")}|${M("vox")}|narrat|speech|dialog|monolog|announce|${M("tts")}|talk|interview|podcast|recap|script`,"i");function fe(...e){let n=e.filter(Boolean).join(" ");return de.test(n)?"voice":se.test(n)?"sfx":me.test(n)?"music":"unknown"}function ce(e,n){let t=a=>typeof a.duration=="number"&&Number.isFinite(a.duration)?a.start+Math.max(0,a.duration):Number.POSITIVE_INFINITY;return e.start<t(n)&&n.start<t(e)}function be(e){let n=Number.isFinite(e)?Math.min(1,Math.max(0,e)):.5;return{maxCutDb:Number((2+n*16).toFixed(2)),bands:Math.max(1,Math.min(6,Math.round(1+n*6))),q:Number((1.1+n*1.2).toFixed(2)),intelligibilityBias:Number(Math.min(1,.6+n*.4).toFixed(2)),duckDb:Number((n*24).toFixed(2)),headroomDb:Number((6+n*12).toFixed(2))}}function pe(e,n){let t=e.map(o=>({samples:o.samples,at:Math.round(o.offsetSeconds*n)})),a=t.reduce((o,s)=>Math.max(o,s.at+s.samples.length),0);if(a<=0)return new Float32Array(0);let r=new Float32Array(a);for(let{samples:o,at:s}of t){let i=s<0?-s:0;for(let u=i;u<o.length;u+=1){let l=s+u;l<0||l>=a||(r[l]=(r[l]??0)+(o[u]??0))}}return r}function he(e,n){let t=Math.max(e.length,d),a=e.length>=d?e:(()=>{let c=new Float32Array(d);return c.set(e),c})(),r=new Float32Array(d);for(let c=0;c<d;c++)r[c]=.5-.5*Math.cos(2*Math.PI*c/(d-1));let o=d/2+1,s=new Float64Array(o),i=new Float64Array(d),u=new Float64Array(d),l=0;for(let c=0;c+d<=t;c+=ie){u.fill(0);for(let b=0;b<d;b++)i[b]=(a[c+b]??0)*r[b];O(i,u);for(let b=0;b<o;b++)s[b]+=i[b]*i[b]+u[b]*u[b];l++}l===0&&(l=1);let f=[],h=[];for(let c=0;c<o;c++)f.push(c*n/d),h.push(s[c]/l);return{freqs:f,power:h}}function Y(e,n,t){let a=t/Math.pow(2,.16666666666666666),r=t*Math.pow(2,1/6),o=0,s=0;for(let i=0;i<e.length;i++)e[i]>=a&&e[i]<r&&(o+=n[i],s++);return s>0?o/s:0}var xe=30;function ke(e,n){let t=Math.log2(e/2e3),a=Math.exp(-(t*t)/2);return n*xe*(1-a)}function ge(e,n,t){if(e.length===0)return[];let{freqs:a,power:r}=he(e,n),s=oe.map(u=>{let l=Y(a,r,u);return{center:u,hasEnergy:l>0,scoreDb:l>0?10*Math.log10(l)-ke(u,t.intelligibilityBias):Number.NEGATIVE_INFINITY}}).sort((u,l)=>l.scoreDb-u.scoreDb).slice(0,Math.max(1,t.bands)).filter(u=>u.hasEnergy);if(s.length===0)return[];let i=s[0].scoreDb;return s.map(({center:u,scoreDb:l})=>{let f=Math.pow(10,(l-i)/10),h=Math.min(t.maxCutDb,Math.max(t.maxCutDb/2,t.maxCutDb*f));return{freq:u,gainDb:-Number(h.toFixed(2)),q:t.q}}).sort((u,l)=>u.freq-l.freq)}var K=30,X=.05,ye=.25,Ae=2.4,j=400,_=.2,J=.5;function W(e,n){let t=[{t:0,v:0}],a=0,r=-1;return e.forEach((o,s)=>{s!==e.length-1&&Math.abs(o.v-a)<n||(s>0&&r!==s-1&&t.push(e[s-1]),t.push(o),a=o.v,r=s)}),t}function we(e,n,t){if(e.length===0||t.length===0)return[];let a=new Float32Array(d);for(let m=0;m<d;m++)a[m]=.5-.5*Math.cos(2*Math.PI*m/(d-1));let r=Math.max(d,Math.ceil(e.length/j)),o=d/2+1,s=[];for(let m=0;m<o;m++)s.push(m*n/d);let i=[],u=t.map(()=>[]),l=new Float64Array(d),f=new Float64Array(d);for(let m=0;m<e.length;m+=r){f.fill(0);for(let p=0;p<d;p++)l[p]=(e[m+p]??0)*a[p];O(l,f);let x=[];for(let p=0;p<o;p++)x.push(l[p]*l[p]+f[p]*f[p]);i.push((m+d/2)/n),t.forEach((p,w)=>u[w].push(Y(s,x,p.freq)))}let h=e.length/n,c=1-Math.exp(-(r/n)/X),b=1-Math.exp(-(r/n)/ye);return t.map((m,x)=>{let p=u[x],w=Math.max(...p),g=0,P=[];p.forEach((F,k)=>{let N=F>0&&w>0?Math.max(0,1+10*Math.log10(F/w)/K):0;g+=(N>g?c:b)*(N-g);let H=m.gainDb*g,q=Math.abs(H)<_?0:Number(H.toFixed(1));P.push({t:Number(i[k].toFixed(3)),v:q})});let v=W(P,J);return v.push({t:Number(Math.max(h,v.at(-1).t).toFixed(3)),v:0}),{freq:m.freq,points:v}})}function G(e,n,t){let a=0,r=0;for(let s=n;s<n+t;s++){let i=e[s];if(i===void 0)break;a+=i*i,r+=1}if(r===0)return Number.NEGATIVE_INFINITY;let o=Math.sqrt(a/r);return o>0?20*Math.log10(o):Number.NEGATIVE_INFINITY}function ve(e,n,t,a,r){if(e.length===0||a.duckDb<=0)return[];let o=Math.max(d,Math.ceil(e.length/j)),s=Math.round(r*t),i=[],u=[],l=[];for(let k=0;k<e.length;k+=o)i.push(G(e,k,d)),u.push(G(n,k+s,d)),l.push((k+d/2)/t);let h=Math.max(...i)-K,c=1-Math.exp(-(o/t)/X),b=1-Math.exp(-(o/t)/Ae),m=0,x=[];i.forEach((k,N)=>{let H=u[N]??Number.NEGATIVE_INFINITY,q=k>h&&Number.isFinite(H)?H-(k-a.headroomDb):0,R=Math.min(a.duckDb,Math.max(0,q));m+=(R>m?c:b)*(R-m);let Q=m<_?0:-Number(m.toFixed(1));x.push({t:Number(l[N].toFixed(3)),v:Q})});let p=o/t,w=l.at(-1)??0;for(;m>=_;)m+=b*-m,w+=p,x.push({t:Number(w.toFixed(3)),v:m<_?0:-Number(m.toFixed(1))});let g=W(x,J),P=e.length/t,v=g.at(-1),F=Number(Math.max(P,v.t).toFixed(3));return v.v===0&&v.t>=F||g.push({t:F,v:0}),g}function Fe(e){let n=e.map(t=>({type:"peaking",enabled:!0,params:{...B("peaking"),frequency:t.freq,gain:t.gainDb,q:t.q}}));return{version:D,nodes:n}}export{ge as analyseCarveBands,ve as analyseCarveDuck,we as analyseCarveDynamics,Fe as carveBandsToChain,be as carveProfile,fe as classifyAudioName,ce as clipsOverlap,B as defaultAudioFxParams,ne as mintAudioFxNodeId,pe as mixCarveSources,ee as parseAudioFxChain,te as serializeAudioFxChain};
|
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import { existsSync } from "node:fs";
|
|
2
|
-
import { extname, join } from "node:path";
|
|
1
|
+
import { existsSync, lstatSync } from "node:fs";
|
|
2
|
+
import { dirname, extname, join } from "node:path";
|
|
3
3
|
import { AGENT_SOURCES, latestRecordFor, recordInPlace } from "../../../scripts/lib/manifest.mjs";
|
|
4
4
|
import { regenerateIndex } from "../../../scripts/lib/index-gen.mjs";
|
|
5
|
+
import { isPlainProjectPath } from "./project-path.mjs";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
|
-
* Where the engine may write `rel`: there, unless another file of this run has `taken` it
|
|
8
|
-
* the person's (not `reusable` and not recorded as agent-made). Then the first free
|
|
8
|
+
* Where the engine may write `rel`: there, unless another file of this run has `taken` it, a link sits there, or
|
|
9
|
+
* the file there is the person's (not `reusable` and not recorded as agent-made). Then the first free
|
|
10
|
+
* `name-2.ext`, with an anomaly. Throws when `rel`'s folder is not its own real folder in the project.
|
|
9
11
|
*/
|
|
10
12
|
export function agentWritePath(
|
|
11
13
|
hyperframesDir,
|
|
12
14
|
rel,
|
|
13
15
|
{ anomalies, taken = new Set(), reusable = () => false },
|
|
14
16
|
) {
|
|
17
|
+
if (!isPlainProjectPath(hyperframesDir, dirname(rel))) {
|
|
18
|
+
throw new Error(`${dirname(rel)} leads outside the project folder; nothing was written there`);
|
|
19
|
+
}
|
|
15
20
|
const free = (path) =>
|
|
16
21
|
!taken.has(path) &&
|
|
22
|
+
!lstatSync(join(hyperframesDir, path), { throwIfNoEntry: false })?.isSymbolicLink() &&
|
|
17
23
|
(!existsSync(join(hyperframesDir, path)) ||
|
|
18
24
|
reusable(path) ||
|
|
19
25
|
AGENT_SOURCES.includes(latestRecordFor(hyperframesDir, path)?.source));
|
|
@@ -31,14 +37,26 @@ export function agentWritePath(
|
|
|
31
37
|
return path;
|
|
32
38
|
}
|
|
33
39
|
|
|
34
|
-
|
|
40
|
+
// A line id names its voice file, so it must be one plain file name: no folder, drive or `..`.
|
|
41
|
+
const isPlainFileName = (id) => id !== "" && id !== "." && id !== ".." && !/[/\\:]/.test(id);
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Each spoken line's file, picked before lines synthesize concurrently so two never land on one free name.
|
|
45
|
+
* Throws for a line whose id is not a plain file name.
|
|
46
|
+
*/
|
|
35
47
|
export function voicePaths(hyperframesDir, lines, anomalies) {
|
|
36
48
|
const taken = new Set();
|
|
37
49
|
const paths = new Map();
|
|
38
50
|
for (const line of lines.filter((l) => String(l.text ?? "").trim() || l.audio)) {
|
|
39
|
-
const
|
|
51
|
+
const id = String(line.id);
|
|
52
|
+
if (!isPlainFileName(id)) {
|
|
53
|
+
throw new Error(
|
|
54
|
+
`line id ${JSON.stringify(id)} names its voice file, so it must be a plain name: no "/", "\\" or ":", and not empty, "." or ".."`,
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
const rel = agentWritePath(hyperframesDir, `assets/voice/${id}.wav`, { anomalies, taken });
|
|
40
58
|
taken.add(rel);
|
|
41
|
-
paths.set(
|
|
59
|
+
paths.set(id, rel);
|
|
42
60
|
}
|
|
43
61
|
return paths;
|
|
44
62
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Paths taken from project files (audio_request.json, audio_meta.json), resolved the way the
|
|
2
|
+
// filesystem will: through every link, so a name inside the project cannot lead outside it.
|
|
3
|
+
import { lstatSync, realpathSync } from "node:fs";
|
|
4
|
+
import { basename, dirname, isAbsolute, join, resolve, sep, win32 } from "node:path";
|
|
5
|
+
|
|
6
|
+
// Where `abs` lands: its nearest existing part resolved through links, plus the parts not made
|
|
7
|
+
// yet. Null when a link on the way leads nowhere.
|
|
8
|
+
function realLocation(abs) {
|
|
9
|
+
const missing = [];
|
|
10
|
+
let at = abs;
|
|
11
|
+
while (!lstatSync(at, { throwIfNoEntry: false })) {
|
|
12
|
+
missing.unshift(basename(at));
|
|
13
|
+
at = dirname(at);
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
return join(realpathSync(at), ...missing);
|
|
17
|
+
} catch {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const within = (dir, path) => path === dir || path.startsWith(dir + sep);
|
|
23
|
+
|
|
24
|
+
/** `rel` (relative to the project) where it really lands, or null when it is absolute or lands outside the project. */
|
|
25
|
+
export function projectPath(hyperframesDir, rel) {
|
|
26
|
+
if (typeof rel !== "string" || isAbsolute(rel) || win32.isAbsolute(rel)) return null;
|
|
27
|
+
const root = realpathSync(hyperframesDir);
|
|
28
|
+
const real = realLocation(resolve(root, rel));
|
|
29
|
+
return real && within(root, real) ? real : null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** True when `rel` reaches its own place in the project with no link on the way. */
|
|
33
|
+
export function isPlainProjectPath(hyperframesDir, rel) {
|
|
34
|
+
return projectPath(hyperframesDir, rel) === join(realpathSync(hyperframesDir), rel);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const BGM_LOG_NAME = /^bgm-\d+\.log$/;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The detached BGM renderer's log named by `value` (audio_meta.json `bgm_log`), or null. Only a
|
|
41
|
+
* regular file directly in <project>/assets/bgm named bgm-<digits>.log counts: the engine writes
|
|
42
|
+
* its logs there and nowhere else.
|
|
43
|
+
*/
|
|
44
|
+
export function engineBgmLog(hyperframesDir, value) {
|
|
45
|
+
if (typeof value !== "string" || !BGM_LOG_NAME.test(basename(value))) return null;
|
|
46
|
+
const bgmDir = join("assets", "bgm");
|
|
47
|
+
if (!isPlainProjectPath(hyperframesDir, bgmDir)) return null;
|
|
48
|
+
const abs = resolve(hyperframesDir, value);
|
|
49
|
+
if (!lstatSync(abs, { throwIfNoEntry: false })?.isFile()) return null;
|
|
50
|
+
const expected = join(realpathSync(hyperframesDir), bgmDir, basename(value));
|
|
51
|
+
try {
|
|
52
|
+
return realpathSync(abs) === expected ? expected : null;
|
|
53
|
+
} catch {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// time-stretched by `speed` with the pitch kept, with word timings scaled to match.
|
|
3
3
|
import "../../../scripts/lib/windows-exe-search.mjs";
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
|
-
import { existsSync, mkdirSync } from "node:fs";
|
|
5
|
+
import { existsSync, mkdirSync, statSync } from "node:fs";
|
|
6
6
|
import { dirname } from "node:path";
|
|
7
|
+
import { projectPath } from "./project-path.mjs";
|
|
7
8
|
|
|
8
9
|
// ffmpeg's atempo takes 0.5..2 per stage; chain stages for the rest of the 0.1..3 speed range.
|
|
9
10
|
export function atempoChain(speed) {
|
|
@@ -21,14 +22,76 @@ export function atempoChain(speed) {
|
|
|
21
22
|
return stages.map((s) => `atempo=${Number(s.toFixed(6))}`).join(",");
|
|
22
23
|
}
|
|
23
24
|
|
|
25
|
+
/** The recording a request line names, as a path inside the project. Throws when it is absolute or leads outside. */
|
|
26
|
+
export function recordingSource(hyperframesDir, audio) {
|
|
27
|
+
const src = projectPath(hyperframesDir, String(audio));
|
|
28
|
+
if (src) return src;
|
|
29
|
+
throw new Error(
|
|
30
|
+
`recording ${JSON.stringify(String(audio))} is outside the project folder; copy it into the project and give its path there`,
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Formats whose file is a list, playlist or script naming other media or programs, which ffmpeg would then
|
|
35
|
+
// open. A recording must be the audio itself, so these are refused.
|
|
36
|
+
const INDIRECT_FORMATS = new Set([
|
|
37
|
+
"hls",
|
|
38
|
+
"applehttp",
|
|
39
|
+
"concat",
|
|
40
|
+
"dash",
|
|
41
|
+
"webm_dash_manifest",
|
|
42
|
+
"imf",
|
|
43
|
+
"sdp",
|
|
44
|
+
"rtp",
|
|
45
|
+
"rtsp",
|
|
46
|
+
"ffmetadata",
|
|
47
|
+
"image2",
|
|
48
|
+
"avisynth",
|
|
49
|
+
"vapoursynth",
|
|
50
|
+
]);
|
|
51
|
+
|
|
52
|
+
// The demuxer name for src, such as "mp3" or "mov,mp4,m4a,3gp,3g2,mj2"; null when it cannot tell. Some
|
|
53
|
+
// Windows installs ship ffmpeg without ffprobe, so ffmpeg's input banner is the fallback.
|
|
54
|
+
function probeFormat(src) {
|
|
55
|
+
const r = spawnSync(
|
|
56
|
+
"ffprobe",
|
|
57
|
+
["-v", "error", "-protocol_whitelist", "file", "-show_entries", "format=format_name"].concat([
|
|
58
|
+
"-of",
|
|
59
|
+
"default=nw=1:nk=1",
|
|
60
|
+
"--",
|
|
61
|
+
src,
|
|
62
|
+
]),
|
|
63
|
+
{ encoding: "utf8" },
|
|
64
|
+
);
|
|
65
|
+
if (r.error?.code === "ENOENT") {
|
|
66
|
+
const banner = spawnSync("ffmpeg", ["-hide_banner", "-protocol_whitelist", "file", "-i", src], {
|
|
67
|
+
encoding: "utf8",
|
|
68
|
+
});
|
|
69
|
+
return /^Input #0, (.+?), from /m.exec(banner.stderr ?? "")?.[1] ?? null;
|
|
70
|
+
}
|
|
71
|
+
const name = r.status === 0 ? String(r.stdout).trim() : "";
|
|
72
|
+
return name || null;
|
|
73
|
+
}
|
|
74
|
+
|
|
24
75
|
/** src -> 44.1k mono wav at wavAbs, played `speed` times faster. Returns { ok, error? }. */
|
|
25
76
|
export function stretchToWav(src, wavAbs, speed = 1) {
|
|
26
|
-
|
|
77
|
+
const stat = statSync(src, { throwIfNoEntry: false });
|
|
78
|
+
if (!stat) return { ok: false, error: `recording not found: ${src}` };
|
|
79
|
+
if (!stat.isFile()) return { ok: false, error: `recording is not a file: ${src}` };
|
|
80
|
+
const format = probeFormat(src);
|
|
81
|
+
if (!format) return { ok: false, error: `ffmpeg cannot read ${src} as audio` };
|
|
82
|
+
if (format.split(",").some((name) => INDIRECT_FORMATS.has(name))) {
|
|
83
|
+
return {
|
|
84
|
+
ok: false,
|
|
85
|
+
error: `${src} is a ${format} list that points at other files; give the audio file itself`,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
27
88
|
mkdirSync(dirname(wavAbs), { recursive: true });
|
|
28
89
|
const filter = speed === 1 ? [] : ["-af", atempoChain(speed)];
|
|
90
|
+
// The probed format pins the input: ffmpeg opens only that one local file, with no nested inputs.
|
|
91
|
+
const input = ["-format_whitelist", format, "-protocol_whitelist", "file", "-i", src];
|
|
29
92
|
const r = spawnSync(
|
|
30
93
|
"ffmpeg",
|
|
31
|
-
["-y", "-loglevel", "error",
|
|
94
|
+
["-y", "-loglevel", "error", ...input, ...filter, "-ar", "44100", "-ac", "1", wavAbs],
|
|
32
95
|
{ encoding: "utf8" },
|
|
33
96
|
);
|
|
34
97
|
if (r.error || r.status !== 0 || !existsSync(wavAbs)) {
|
|
@@ -13,9 +13,11 @@
|
|
|
13
13
|
// node wait-bgm.mjs --audio-meta ./audio_meta.json --hyperframes . \
|
|
14
14
|
// [--timeout-ms 120000] [--interval-ms 2000] [--out ./bgm_status.json]
|
|
15
15
|
|
|
16
|
-
import { existsSync, readFileSync, statSync
|
|
16
|
+
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
17
17
|
import { join, resolve } from "node:path";
|
|
18
|
+
import { replaceFile } from "../../scripts/lib/manifest.mjs";
|
|
18
19
|
import { recordInManifest } from "./lib/media-record.mjs";
|
|
20
|
+
import { engineBgmLog, projectPath } from "./lib/project-path.mjs";
|
|
19
21
|
|
|
20
22
|
const argv = process.argv.slice(2);
|
|
21
23
|
const flag = (name, def) => {
|
|
@@ -80,17 +82,20 @@ function writeStatus(status) {
|
|
|
80
82
|
generated_at: new Date().toISOString(),
|
|
81
83
|
...status,
|
|
82
84
|
};
|
|
83
|
-
|
|
85
|
+
// Renamed into place, so a link planted at the status file is replaced, never written through.
|
|
86
|
+
replaceFile(outPath, JSON.stringify(payload, null, 2) + "\n");
|
|
84
87
|
return payload;
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
if (!existsSync(audioMetaPath)) die(`audio_meta.json missing at ${audioMetaPath}`);
|
|
88
91
|
|
|
89
92
|
const audioMeta = JSON.parse(readFileSync(audioMetaPath, "utf8"));
|
|
90
|
-
|
|
91
|
-
const bgmAbsPath =
|
|
92
|
-
const
|
|
93
|
-
|
|
93
|
+
// A track path that leads outside the project counts as no track.
|
|
94
|
+
const bgmAbsPath = (audioMeta.bgm?.path && projectPath(hyperframesDir, audioMeta.bgm.path)) || "";
|
|
95
|
+
const bgmPath = bgmAbsPath ? audioMeta.bgm.path : "";
|
|
96
|
+
// Only the engine's own log in assets/bgm is read; any other bgm_log counts as no log, and its pid goes with it.
|
|
97
|
+
const logPath = engineBgmLog(hyperframesDir, audioMeta.bgm_log) || "";
|
|
98
|
+
const pid = (logPath && audioMeta.bgm_pid) || null;
|
|
94
99
|
|
|
95
100
|
const base = {
|
|
96
101
|
enabled: Boolean(audioMeta.bgm_pending && bgmPath),
|
|
@@ -153,7 +158,7 @@ while (Date.now() - started <= timeoutMs) {
|
|
|
153
158
|
waited_ms: Date.now() - started,
|
|
154
159
|
process_alive: alive,
|
|
155
160
|
message,
|
|
156
|
-
error_tail: lastFailure || lastTail.slice(-2000),
|
|
161
|
+
error_tail: (lastFailure || lastTail).slice(-2000),
|
|
157
162
|
});
|
|
158
163
|
console.log(`! bgm: failed (${status.message})`);
|
|
159
164
|
process.exit(0);
|