hyperframes 0.9.7 → 0.9.9
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-WLXYFHMC.js → add-FQX5F6PC.js} +12 -12
- package/dist/{agentPromptGenerator-2SMADJAL.js → agentPromptGenerator-XNGPKVEX.js} +9 -9
- package/dist/{animatedGifPrep-4WCFONEJ.js → animatedGifPrep-E3PYKFJ3.js} +9 -9
- package/dist/api.js +29 -28
- package/dist/{asset-UQBTWAMJ.js → asset-X5GG5TTP.js} +2 -2
- package/dist/{assetCataloger-GOUD7VDG.js → assetCataloger-SDFP4DWL.js} +10 -10
- package/dist/{audio-LDVXMRHU.js → audio-DDTYFS23.js} +28 -28
- package/dist/{auth-6LVATNTF.js → auth-OAWLDT3A.js} +2 -2
- package/dist/{autoUpdate-X6KZRI5E.js → autoUpdate-BWIPXW2W.js} +23 -16
- package/dist/{backgroundChecks-3HGGWYLY.js → backgroundChecks-YJ5NRMBA.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-4ISYYVPQ.js → batchRender-ZDL65J7N.js} +4 -4
- package/dist/{beats-WN2KYIK3.js → beats-Q2TIAA7S.js} +11 -11
- package/dist/{benchmark-HZPGQ2MP.js → benchmark-I3GRHFIN.js} +9 -9
- package/dist/{billing-3Q2EAZFJ.js → billing-W224NIAM.js} +12 -2
- package/dist/{browser-6XC7MTQL.js → browser-F24WMZ52.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-ZZ6Y4CEO.js → bundleWithLocalizedFonts-K5CQPNIZ.js} +2 -2
- package/dist/{capture-46LJ2VU2.js → capture-HLC6I4RE.js} +3 -3
- package/dist/{capture-FCLAEX5L.js → capture-UKWY3SZQ.js} +22 -22
- package/dist/{captureCompositionFrame-SMUDCZ2L.js → captureCompositionFrame-YMB3CKSP.js} +14 -14
- package/dist/{catalog-72AEDDEG.js → catalog-H7SOITD6.js} +12 -12
- package/dist/{catch-up-6WIX7SWV.js → catch-up-YRGPVEM6.js} +4 -4
- package/dist/{check-R2G5OYIA.js → check-BPQZZ2MO.js} +44 -44
- package/dist/{checkAudio-2RP7BNQ3.js → checkAudio-4NRQ3WGS.js} +17 -17
- package/dist/{checkBrowser-OWLF2BT4.js → checkBrowser-S66AHKW3.js} +37 -37
- package/dist/{chunk-Y2R4N6HQ.js → chunk-2NGBIAUF.js} +25 -20
- package/dist/{chunk-SXGXJAA7.js → chunk-2QMEP4LR.js} +1 -1
- package/dist/{chunk-PYWJGSWO.js → chunk-2ROPUTCS.js} +1 -1
- package/dist/{chunk-FLDSZTHP.js → chunk-2Y575PWJ.js} +2 -2
- package/dist/{chunk-PG356QHK.js → chunk-322AG75G.js} +2 -2
- package/dist/{chunk-CUCDUPTA.js → chunk-3DWH6Z5U.js} +1 -1
- package/dist/{chunk-6A45RKAK.js → chunk-3XJM7XZN.js} +136 -35
- package/dist/{chunk-LIA4GZ4F.js → chunk-42TYQPES.js} +2 -2
- package/dist/{chunk-V6MZZEA7.js → chunk-4W5X4S47.js} +48 -49
- package/dist/{chunk-3Q7UFKFN.js → chunk-5YIZRU2L.js} +3 -3
- package/dist/{chunk-X3DTUYKZ.js → chunk-62ATHBDS.js} +27 -17
- package/dist/{chunk-PPNA6EBI.js → chunk-63GTSNMY.js} +6 -6
- package/dist/{chunk-46HMQ4I3.js → chunk-6DKWOG7L.js} +1 -1
- package/dist/{chunk-C3FKYBZ4.js → chunk-6HO6QKYG.js} +9 -9
- package/dist/{chunk-X2PPRHKO.js → chunk-6KV3CMY2.js} +1 -1
- package/dist/{chunk-P7CVKVPD.js → chunk-6UZLHLFP.js} +2 -2
- package/dist/{chunk-PUMQDN2T.js → chunk-7RM3TB62.js} +29 -2
- package/dist/{chunk-UQH3MOES.js → chunk-7W5ZDOLW.js} +2 -2
- package/dist/{chunk-YHO5SKUR.js → chunk-A2NFFVWH.js} +5 -5
- package/dist/{chunk-RJ6LXDUC.js → chunk-A33GFLPY.js} +22 -2
- package/dist/{chunk-74VSOKKS.js → chunk-ABI256T5.js} +1 -1
- package/dist/{chunk-T252SG67.js → chunk-AH6MUQQC.js} +2 -2
- package/dist/{chunk-QXVW22VM.js → chunk-ASGRVFQ3.js} +1 -0
- package/dist/{chunk-HZG42ZYW.js → chunk-AUYRWWFL.js} +3 -3
- package/dist/{chunk-DZNJD7BH.js → chunk-AVNF52HR.js} +1 -1
- package/dist/{chunk-WAURLEUO.js → chunk-B5GWDPUO.js} +3 -3
- package/dist/{chunk-XFA6NPMP.js → chunk-BBP5KGYS.js} +3 -3
- package/dist/{chunk-TBCRTIXP.js → chunk-BHL4KN3H.js} +2 -2
- package/dist/{chunk-OO7U23BR.js → chunk-BX2JB24X.js} +1 -1
- package/dist/{chunk-CTPYBHF3.js → chunk-BXYB5NGT.js} +2 -2
- package/dist/{chunk-QXUDHDJU.js → chunk-BYC4C4YY.js} +9 -9
- package/dist/{chunk-RWHCRVZV.js → chunk-C3NC67BB.js} +8 -8
- package/dist/{chunk-CX6MGY2B.js → chunk-CBPBTQBH.js} +13 -13
- package/dist/{chunk-IXGZ6YFZ.js → chunk-CNX3WKQ5.js} +30 -8
- package/dist/{chunk-NEI65CWG.js → chunk-CPMTEWQM.js} +3 -3
- package/dist/{chunk-P73MHFBX.js → chunk-CUYVIDGF.js} +4 -3
- package/dist/{chunk-XKTLYF4N.js → chunk-DIKIN4BA.js} +29 -29
- package/dist/{chunk-KD22R2UE.js → chunk-E2YXF2EP.js} +3 -3
- package/dist/{chunk-NFNYH6VQ.js → chunk-EBUA6NWH.js} +2 -2
- package/dist/{chunk-RY7Z6KFS.js → chunk-EN6MPNZT.js} +4 -4
- package/dist/{chunk-CE7EQUBV.js → chunk-G3ERWPNV.js} +1 -1
- package/dist/{chunk-DOS6S7HW.js → chunk-GAKRZZHQ.js} +2 -2
- package/dist/{chunk-X4K7Q5PT.js → chunk-GIYZMGYT.js} +1 -1
- package/dist/{chunk-WZGVBZY6.js → chunk-H534266X.js} +2 -2
- package/dist/{chunk-7XRS2NDR.js → chunk-HBHLCMOQ.js} +7 -7
- package/dist/{chunk-FYR2GKAA.js → chunk-HUJMTTKR.js} +163 -32
- package/dist/{chunk-LFDPOL45.js → chunk-JZPUXDQE.js} +4 -4
- package/dist/{chunk-TSCO4XR4.js → chunk-LR5NVYZT.js} +1 -1
- package/dist/{chunk-XEP7PGXS.js → chunk-LTBBFLOM.js} +1 -1
- package/dist/{chunk-LCDXHXYH.js → chunk-LV5SL4YW.js} +2 -2
- package/dist/{chunk-Q3SKYJGG.js → chunk-M6JFR7KF.js} +18 -5
- package/dist/{chunk-2BARV2ZU.js → chunk-MDMQD6BV.js} +6 -6
- package/dist/{chunk-3LHJHMFK.js → chunk-MWHTLXG4.js} +4 -54
- package/dist/{chunk-3YJB4QVS.js → chunk-MY4PAH7C.js} +1 -1
- package/dist/{chunk-IAZ2A7D6.js → chunk-N6FGHJ7X.js} +53 -29
- package/dist/{chunk-GK3OROLS.js → chunk-N74N2I2K.js} +1 -1
- package/dist/{chunk-3AH6KE6F.js → chunk-NCP3JQ6S.js} +109 -96
- package/dist/{chunk-E3IBPTX7.js → chunk-NNF6G2UH.js} +1 -1
- package/dist/{chunk-M336YVCP.js → chunk-NWQFOHXF.js} +1 -1
- package/dist/{chunk-UDY3FS6G.js → chunk-NX2X326Z.js} +9 -9
- package/dist/{chunk-7LCZBNX7.js → chunk-OAFGA2FR.js} +4 -3
- package/dist/{chunk-FYDFHW22.js → chunk-OYAZODSP.js} +28 -28
- package/dist/{chunk-SE6O4APZ.js → chunk-PPMCILED.js} +37 -5
- package/dist/{chunk-E4XS2M2E.js → chunk-Q3IT7I2K.js} +1 -1
- package/dist/{chunk-SIJYH7XM.js → chunk-QOF7XZEI.js} +1 -1
- package/dist/{chunk-SEJ7UBR2.js → chunk-QRCORKYC.js} +2 -2
- package/dist/{chunk-YTWTG67C.js → chunk-QUBVGS27.js} +6 -6
- package/dist/{chunk-IOECRDWX.js → chunk-R7EKEIAK.js} +1 -1
- package/dist/{chunk-HRSZOW3U.js → chunk-S2UKSI3C.js} +1 -1
- package/dist/{chunk-C7XW5WPZ.js → chunk-SG4YBQPY.js} +2 -2
- package/dist/chunk-SRVAYGTN.js +62 -0
- package/dist/{chunk-2X43RFKM.js → chunk-SSZTRWKQ.js} +2 -2
- package/dist/{chunk-ULH6TLE3.js → chunk-TJ2USKCK.js} +1 -1
- package/dist/{chunk-6IW2HWYI.js → chunk-TZBJEKKU.js} +1 -1
- package/dist/{chunk-HBCY63DS.js → chunk-UWYHZCEQ.js} +2 -2
- package/dist/{chunk-XXEOJXXY.js → chunk-V74HSKGY.js} +1 -1
- package/dist/{chunk-EG7FZSEF.js → chunk-VM6T3Z6B.js} +1 -1
- package/dist/{chunk-IX3R4BKU.js → chunk-VNR7LSN4.js} +50 -11
- package/dist/{chunk-ZVERYNYS.js → chunk-VZ5O7A77.js} +1 -1
- package/dist/{chunk-N6O2RQLQ.js → chunk-W5AUD5OL.js} +2 -2
- package/dist/{chunk-BGHKFD3T.js → chunk-WWBEAKTO.js} +10 -2
- package/dist/{chunk-UGUYWTWD.js → chunk-XLPCBE2Q.js} +4 -4
- package/dist/{chunk-KDTOB4TD.js → chunk-XTYNW745.js} +1 -1
- package/dist/{chunk-BGMMC352.js → chunk-XX77LLFJ.js} +6 -6
- package/dist/chunk-Y3ICFPFK.js +5035 -0
- package/dist/{chunk-AWQE37H3.js → chunk-YTNHZT47.js} +2 -2
- package/dist/{chunk-LAZREIJF.js → chunk-ZD3MK4H5.js} +1 -1
- package/dist/{chunk-GBEGZOP3.js → chunk-ZLN3AJKT.js} +1 -1
- package/dist/{clean-52TVJH4U.js → clean-RCXKQNFM.js} +23 -23
- package/dist/cli.js +61 -60
- package/dist/{cloud-FEPPMA5F.js → cloud-TQPQZRC5.js} +4 -4
- package/dist/cloud-Z3FNCC4T.js +39 -0
- package/dist/{cloudrun-DFWQ7ZJW.js → cloudrun-N737TJRC.js} +6 -6
- package/dist/{compare-UBQUKWOB.js → compare-EO32AASM.js} +34 -34
- package/dist/{compiler-UCJ4KC75.js → compiler-NAIDMQFU.js} +6 -6
- package/dist/{component-6YUQ2XAM.js → component-S3TYNVCR.js} +3 -3
- package/dist/{compositions-KGZO4UYR.js → compositions-4TXRLZ3M.js} +15 -15
- package/dist/{curve-VISYHZKL.js → curve-HGLOP2GY.js} +13 -13
- package/dist/{cuts-HCWYCBI2.js → cuts-VNFIISLL.js} +14 -14
- package/dist/{delete-CNKHLEDS.js → delete-TIWI3G7X.js} +7 -5
- package/dist/{deploy-TS3R7DTD.js → deploy-EHPNOGSY.js} +6 -6
- package/dist/{describeProject-6TNE4FY4.js → describeProject-DN6YQU3X.js} +10 -10
- package/dist/{deterministicFonts-H4RC6TOJ.js → deterministicFonts-GQMT52JQ.js} +2 -2
- package/dist/{diff-YRBYR56R.js → diff-46JK5ZCL.js} +156 -75
- package/dist/dist-CCPYPKOC.js +197 -0
- package/dist/{dist-T57O7KXT.js → dist-GUX66F7V.js} +3 -3
- package/dist/{dist-H4C7ZCFU.js → dist-PCVNVAVC.js} +4 -4
- package/dist/{doctor-PLA77GFC.js → doctor-LD23DW4N.js} +13 -13
- package/dist/{energy-7BTNGNR7.js → energy-YZ3DB6AI.js} +14 -14
- package/dist/{events-IMWCEFSZ.js → events-3OWNDNJX.js} +3 -3
- package/dist/{events-QTM2OEFB.js → events-DRTMYSQ6.js} +2 -2
- package/dist/{events-25FIG2O6.js → events-MQIKCKA5.js} +16 -16
- package/dist/{extract-C66C5A22.js → extract-F3NBE3X5.js} +14 -14
- package/dist/{face-MDOI2JO5.js → face-ZU7ZDYGO.js} +14 -14
- package/dist/{feedback-26OSAZF3.js → feedback-37M37Y4F.js} +8 -8
- package/dist/{ffmpeg-R5ND25AV.js → ffmpeg-PERZ6YHQ.js} +9 -9
- package/dist/{figma-276JAPS4.js → figma-55AG42NN.js} +3 -3
- package/dist/fontLocalizeCli.js +15 -15
- package/dist/{frames-AMLBNI5B.js → frames-DJA3CFSY.js} +19 -16
- package/dist/{generate-YIZS4JFA.js → generate-BVJ5XNWP.js} +18 -17
- package/dist/{get-HFEFIRAJ.js → get-PGLCWEBG.js} +7 -5
- package/dist/{gpuPolicy-7JA66MJG.js → gpuPolicy-DUNSQM6M.js} +9 -9
- package/dist/{grade-compare-7NH6XYIY.js → grade-compare-R6Q6G6WP.js} +34 -34
- package/dist/{heifImagePrep-WCL36MHY.js → heifImagePrep-YNPHFR6W.js} +10 -10
- package/dist/{help-HHIAUMBQ.js → help-4SNDXHWQ.js} +2 -1
- package/dist/{history-SLWPRU6Q.js → history-NKRHKIE2.js} +10 -10
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-MIPROXSM.js → info-U4VDKU2Y.js} +8 -8
- package/dist/{init-T56UGI6Z.js → init-2RUVBHQO.js} +29 -29
- package/dist/{ink-TY7CKC6Q.js → ink-TX3USU7X.js} +14 -14
- package/dist/{inspect-TIF7YHGN.js → inspect-MAGHXEWS.js} +34 -34
- package/dist/{installer-72QUKTPE.js → installer-PUQYKLXZ.js} +5 -5
- package/dist/{keyframes-I4JRA37J.js → keyframes-2TDECIQZ.js} +6 -6
- package/dist/{lambda-VGFSEG56.js → lambda-CRVYDETX.js} +15 -15
- package/dist/{layout-K776Z2IS.js → layout-I3VNHWJH.js} +34 -34
- package/dist/{lint-XLTSC66T.js → lint-MCVWXDJX.js} +10 -10
- package/dist/{lintProject-NZADSVSU.js → lintProject-EV3EEBY3.js} +4 -4
- package/dist/{list-6V3IKLXF.js → list-FJJNWPM6.js} +7 -5
- package/dist/{localPage-RM6EXBBT.js → localPage-6MQ6YFER.js} +9 -9
- package/dist/{login-HD47X3JE.js → login-YAZZWYFK.js} +4 -4
- package/dist/{look-KUDJYDTK.js → look-U5UHXPUQ.js} +14 -14
- package/dist/{manager-TUKVGY7O.js → manager-ARXEX6OP.js} +10 -10
- package/dist/{measure-6BRNY3II.js → measure-JAPDVQ5X.js} +11 -11
- package/dist/{media-treatment-MLME5LNQ.js → media-treatment-A4Z32NGP.js} +15 -15
- package/dist/{media-use-3YTDQKGR.js → media-use-6HX7JHRD.js} +17 -11
- package/dist/{models-IUX642FY.js → models-GMJODMZ5.js} +13 -13
- package/dist/{motionShot-INNVFSPU.js → motionShot-Z63I3GO7.js} +17 -17
- package/dist/{normalize-audio-ZMJIN2OV.js → normalize-audio-45CHOWKY.js} +10 -10
- package/dist/{open-FDQ3NDSX.js → open-RSTNLDYI.js} +12 -12
- package/dist/{parakeetRunner-WZ6JW3QQ.js → parakeetRunner-K4EGDDVH.js} +14 -14
- package/dist/{pipeline-V3TOATHS.js → pipeline-EKLTELWF.js} +12 -12
- package/dist/{play-5WIU4CZL.js → play-BYIEIRQQ.js} +25 -25
- package/dist/{preflight-JXEVL63B.js → preflight-TC6ZW3GB.js} +10 -10
- package/dist/{present-UHWGVCP4.js → present-5B5VQKT5.js} +20 -20
- package/dist/{preview-W75P6D7E.js → preview-5O2HT2WF.js} +23 -23
- package/dist/{probe-O2ADL5FX.js → probe-ZGK6DBAR.js} +14 -14
- package/dist/{producer-6GQQQT7M.js → producer-RFTB2APL.js} +1 -1
- package/dist/{projectConfig-FQ7CAOXL.js → projectConfig-PUAOWUNS.js} +7 -7
- package/dist/{publication-YRVC6D56.js → publication-K4XAMUI6.js} +3 -3
- package/dist/{publish-4IN3WW5G.js → publish-7W46NJFT.js} +13 -13
- package/dist/{remove-background-L4KWXVMH.js → remove-background-LURZDSDJ.js} +13 -13
- package/dist/{render-IP7KBRD7.js → render-7HIEI7QP.js} +46 -46
- package/dist/{render-73VGDCCH.js → render-EF7Y6YYC.js} +6 -6
- package/dist/{render-GZ4DBQ5E.js → render-ETZ3WAJO.js} +39 -37
- package/dist/{render-batch-RX3TJ4NY.js → render-batch-JYYP4RXA.js} +6 -6
- package/dist/renderSetupWorker.js +4 -4
- package/dist/{resolver-SNTBG6O2.js → resolver-BKFLETMU.js} +5 -5
- package/dist/{reverse-5SHT4TC6.js → reverse-VPBNBP2Q.js} +1 -1
- package/dist/{run-GV6MEM2M.js → run-XER4YJY5.js} +3 -3
- package/dist/{sherpa-LJJHQNQ6.js → sherpa-D6FQ3CHN.js} +13 -13
- package/dist/skills/media-use/SKILL.md +2 -2
- package/dist/skills/media-use/references/heygen.md +17 -9
- package/dist/skills/media-use/references/operations.md +14 -13
- package/dist/skills/media-use/scripts/lib/adopt.mjs +11 -0
- package/dist/skills/media-use/scripts/lib/adopt.test.mjs +26 -0
- package/dist/skills/media-use/scripts/lib/registry.mjs +2 -1
- package/dist/skills/media-use/scripts/lib/registry.test.mjs +5 -6
- package/dist/skills/media-use/scripts/lib/sfx-provider.mjs +23 -0
- package/dist/skills/media-use/scripts/resolve.mjs +3 -1
- package/dist/{skills-NVNRQU7K.js → skills-EBVQSIK4.js} +22 -12
- package/dist/{skillsUpdateCheck-QNFIPFLX.js → skillsUpdateCheck-7VXK4R4J.js} +3 -3
- package/dist/{snapshot-75S4SIRK.js → snapshot-PJUNSMDS.js} +49 -46
- package/dist/{src-MTLH4YHV.js → src-RL6YEPTD.js} +10 -10
- package/dist/{src-KS6W3WRC.js → src-SMIMKSHZ.js} +18 -18
- package/dist/{start-4UCLBL76.js → start-5ZDH643Z.js} +32 -25
- package/dist/{staticProjectServer-USD7TCZH.js → staticProjectServer-BX4RWEY5.js} +21 -21
- package/dist/{status-MPCREDMQ.js → status-4LLUW5YT.js} +1 -1
- package/dist/studio/assets/{hyperframes-player-CQLtM2zB.js → hyperframes-player-CcNGHTev.js} +1 -1
- package/dist/studio/assets/{index-CKnGNPHF.js → index-D9uDed3x.js} +1 -1
- package/dist/studio/assets/{index-CdWK2GVp.js → index-DSRgrCDX.js} +118 -118
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-447CJUUM.js → studio-api-PEUXVD7P.js} +17 -17
- package/dist/{studioServer-TMPKQRQA.js → studioServer-2WIQBEQC.js} +61 -61
- package/dist/{sync-V456U5AA.js → sync-P3O3WZWT.js} +19 -16
- package/dist/{telemetry-NK6K3VRH.js → telemetry-267LV4SC.js} +3 -3
- package/dist/templates/_shared/AGENTS.md +1 -0
- package/dist/templates/_shared/CLAUDE.md +1 -0
- package/dist/templates-MQ742KVZ.js +173 -0
- package/dist/{timeline-M5URP7QS.js → timeline-WP7AZAQC.js} +24 -24
- package/dist/{tokens-5OIFB4MD.js → tokens-ROFKR7AE.js} +2 -2
- package/dist/{transcribe-ON5WTZV3.js → transcribe-N66QUYCS.js} +12 -12
- package/dist/{transcribe-N3E7T7AW.js → transcribe-WS2STSCJ.js} +23 -22
- package/dist/{tts-JHGGL7GL.js → tts-HIQMJU6O.js} +1 -1
- package/dist/{updateCheck-JQOAKPNR.js → updateCheck-M2SMSDIO.js} +2 -2
- package/dist/{upgrade-737POFN4.js → upgrade-ZUWFB2QM.js} +2 -2
- package/dist/upload-L5TSWWIU.js +16 -0
- package/dist/{urlDownloader-ZIPT6PZC.js → urlDownloader-YNI3Y3IE.js} +8 -8
- package/dist/{validate-6IPCQFXI.js → validate-M2M37G47.js} +28 -28
- package/dist/{video-BEZHDPH2.js → video-2OEOTSPQ.js} +10 -10
- package/dist/warmCheck.js +44 -44
- package/package.json +1 -1
- package/dist/chunk-OUZSRPKC.js +0 -5035
- package/dist/{chunk-T5ELONXY.js → chunk-JHILL4BN.js} +0 -0
- package/dist/{destroy-IQLGADZM.js → destroy-C5GQLZVZ.js} +4 -4
- package/dist/{synthesize-YYT7UON6.js → synthesize-YK3WLOEQ.js} +5 -5
|
@@ -6,15 +6,19 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
pageUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ASGRVFQ3.js";
|
|
10
10
|
import {
|
|
11
11
|
Fix
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A33GFLPY.js";
|
|
13
13
|
import {
|
|
14
14
|
refreshIfNeeded,
|
|
15
15
|
resolveCloudAuthHeaders,
|
|
16
16
|
resolveCloudBaseUrl
|
|
17
17
|
} from "./chunk-TSQZ3DSC.js";
|
|
18
|
+
import {
|
|
19
|
+
HyperframesApiError,
|
|
20
|
+
HyperframesCloudClient
|
|
21
|
+
} from "./chunk-3XJM7XZN.js";
|
|
18
22
|
import {
|
|
19
23
|
AuthClient,
|
|
20
24
|
buildAuthHeaders,
|
|
@@ -115,42 +119,29 @@ function refusal(status, body, estimate) {
|
|
|
115
119
|
"fix the request it names, then run again"
|
|
116
120
|
);
|
|
117
121
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (body !== void 0) headers["content-type"] = "application/json";
|
|
124
|
-
if (key) headers["Idempotency-Key"] = key;
|
|
125
|
-
let res;
|
|
122
|
+
var clientFor = (auth) => new HyperframesCloudClient({ baseUrl: resolveCloudBaseUrl(), getAuthHeaders: () => auth });
|
|
123
|
+
var resume = "run the same command again: it resumes the same job";
|
|
124
|
+
async function call(route, send, timeoutMs, estimate, auth) {
|
|
125
|
+
const client = clientFor(auth ?? await resolveCloudAuthHeaders().catch(noSignIn));
|
|
126
|
+
let data;
|
|
126
127
|
try {
|
|
127
|
-
|
|
128
|
-
method,
|
|
129
|
-
headers,
|
|
130
|
-
...body !== void 0 ? { body: JSON.stringify(body) } : {},
|
|
131
|
-
signal: AbortSignal.timeout(method === "POST" ? 18e4 : 3e4)
|
|
132
|
-
});
|
|
128
|
+
data = await send(client, AbortSignal.timeout(timeoutMs));
|
|
133
129
|
} catch (err) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"run the same command again: it resumes the same job"
|
|
144
|
-
);
|
|
145
|
-
if (!res.ok) {
|
|
146
|
-
const refused = refusal(res.status, value, estimate);
|
|
147
|
-
refused.status = res.status;
|
|
130
|
+
if (!(err instanceof HyperframesApiError))
|
|
131
|
+
throw new Fix(
|
|
132
|
+
`no answer from HeyGen for ${route} (${err instanceof Error ? err.message : String(err)})`,
|
|
133
|
+
resume
|
|
134
|
+
);
|
|
135
|
+
if (err.status >= 500 || err.status < 300 || err.raw == null)
|
|
136
|
+
throw new Fix(`HeyGen ${err.status} for ${route} with no readable answer`, resume);
|
|
137
|
+
const refused = refusal(err.status, err.raw, estimate);
|
|
138
|
+
refused.status = err.status;
|
|
148
139
|
throw refused;
|
|
149
140
|
}
|
|
150
|
-
|
|
141
|
+
if (data == null) throw new Fix(`HeyGen answered ${route} with no readable answer`, resume);
|
|
151
142
|
if (!isRecord(data))
|
|
152
143
|
throw new Fix(`HeyGen answered ${route} with no job`, "run the same command again");
|
|
153
|
-
const id = data.id ?? data.job_id ?? data.video_id ?? data.generation_id;
|
|
144
|
+
const id = data.id ?? data.job_id ?? data.video_id ?? data.generation_id ?? data.lipsync_id;
|
|
154
145
|
return {
|
|
155
146
|
...data,
|
|
156
147
|
id: typeof id === "string" ? id : "",
|
|
@@ -167,19 +158,28 @@ function log(entry, record) {
|
|
|
167
158
|
`
|
|
168
159
|
);
|
|
169
160
|
}
|
|
170
|
-
async function runJob(
|
|
161
|
+
async function runJob(jobRoute, body, key, opts = {}) {
|
|
171
162
|
const started = Date.now();
|
|
163
|
+
const route = jobRoute.path;
|
|
172
164
|
const { auth, scope } = await jobSender();
|
|
173
165
|
const sent = liveKey(key, scope);
|
|
174
166
|
let job;
|
|
175
167
|
try {
|
|
176
|
-
job = await call(
|
|
168
|
+
job = await call(
|
|
169
|
+
route,
|
|
170
|
+
(client, signal) => jobRoute.start(client, body, sent, signal),
|
|
171
|
+
18e4,
|
|
172
|
+
opts.credits,
|
|
173
|
+
auth
|
|
174
|
+
);
|
|
177
175
|
} catch (err) {
|
|
178
176
|
if (err instanceof Refused && !KEEPS_KEY.has(err.status)) markFailed(sent, scope);
|
|
179
177
|
throw err;
|
|
180
178
|
}
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
const waits = RUNNING.has(job.status.toLowerCase());
|
|
180
|
+
if (opts.log && waits) log(opts.log, { route, id: job.id, key: sent, status: job.status });
|
|
181
|
+
const status = jobRoute.status;
|
|
182
|
+
while (status && RUNNING.has(job.status.toLowerCase())) {
|
|
183
183
|
if (Date.now() - started > (opts.timeoutMs ?? 15 * 6e4))
|
|
184
184
|
throw new Fix(
|
|
185
185
|
`HeyGen job ${job.id} is still ${job.status}`,
|
|
@@ -187,7 +187,12 @@ async function runJob(route, body, key, pollRoute, opts = {}) {
|
|
|
187
187
|
);
|
|
188
188
|
opts.onWait?.(job);
|
|
189
189
|
await new Promise((r) => setTimeout(r, opts.intervalMs ?? 5e3));
|
|
190
|
-
|
|
190
|
+
const id = job.id;
|
|
191
|
+
job = await call(
|
|
192
|
+
`${route}/${encodeURIComponent(id)}`,
|
|
193
|
+
(client, signal) => status(client, id, signal),
|
|
194
|
+
3e4
|
|
195
|
+
);
|
|
191
196
|
}
|
|
192
197
|
if (opts.log) log(opts.log, { route, id: job.id, key: sent, status: job.status });
|
|
193
198
|
if (!/^(completed|succeeded|success|done)$/i.test(job.status)) {
|
|
@@ -200,23 +205,17 @@ async function runJob(route, body, key, pollRoute, opts = {}) {
|
|
|
200
205
|
}
|
|
201
206
|
var isVoice = (v) => isRecord(v) && typeof v.voice_id === "string" && typeof v.name === "string";
|
|
202
207
|
async function publicVoices(language, limit) {
|
|
203
|
-
const
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
const query = new URLSearchParams({ type: "public", language, limit: String(limit) });
|
|
208
|
-
const res = await fetch(`${resolveCloudBaseUrl()}/v3/voices?${query}`, {
|
|
209
|
-
headers,
|
|
210
|
-
signal: AbortSignal.timeout(3e4)
|
|
211
|
-
}).catch((err) => {
|
|
208
|
+
const client = clientFor(await resolveCloudAuthHeaders().catch(noSignIn));
|
|
209
|
+
const value = await client.listVoicesV3({ type: "public", language, limit, signal: AbortSignal.timeout(3e4) }).catch((err) => {
|
|
210
|
+
if (err instanceof HyperframesApiError)
|
|
211
|
+
throw new Fix(`HeyGen ${err.status} listing its voices`, "run the same command again");
|
|
212
212
|
throw new Fix(
|
|
213
213
|
`no answer from HeyGen for its voices (${err instanceof Error ? err.message : String(err)})`,
|
|
214
214
|
"run the same command again"
|
|
215
215
|
);
|
|
216
216
|
});
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
throw new Fix(`HeyGen ${res.status} listing its voices`, "run the same command again");
|
|
217
|
+
if (!isRecord(value) || !Array.isArray(value.data))
|
|
218
|
+
throw new Fix("HeyGen answered its voices with no list", "run the same command again");
|
|
220
219
|
return value.data.filter(isVoice).map(({ voice_id, name, language: language2, gender }) => ({ voice_id, name, language: language2, gender }));
|
|
221
220
|
}
|
|
222
221
|
async function senderScope() {
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2ROPUTCS.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V74HSKGY.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-FDPS57FU.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-PERZ6YHQ.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -6,33 +6,34 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XTYNW745.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YTNHZT47.js";
|
|
16
16
|
import {
|
|
17
17
|
idempotencyKey,
|
|
18
18
|
runJob
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4W5X4S47.js";
|
|
20
20
|
import {
|
|
21
|
+
projectOf,
|
|
21
22
|
runFfmpeg
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-A33GFLPY.js";
|
|
23
24
|
import {
|
|
24
25
|
initialModelForLanguage,
|
|
25
26
|
transcribe
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AUYRWWFL.js";
|
|
27
28
|
import {
|
|
28
29
|
createRenderCancellationScope,
|
|
29
30
|
stoppedByCancelSignal
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VM6T3Z6B.js";
|
|
31
32
|
import {
|
|
32
33
|
DEFAULT_MODEL,
|
|
33
34
|
findWhisper,
|
|
34
35
|
isWhisperUnavailable
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ZLN3AJKT.js";
|
|
36
37
|
import {
|
|
37
38
|
formatSrt,
|
|
38
39
|
formatVtt,
|
|
@@ -54,13 +55,21 @@ import {
|
|
|
54
55
|
|
|
55
56
|
// src/api/transcribe.ts
|
|
56
57
|
import { existsSync, realpathSync, rmSync as rmSync2, statSync, writeFileSync as writeFileSync2 } from "fs";
|
|
57
|
-
import { basename, dirname, extname, join as join2, resolve } from "path";
|
|
58
|
+
import { basename, dirname as dirname2, extname, join as join2, resolve } from "path";
|
|
58
59
|
|
|
59
60
|
// src/heygen/transcribe.ts
|
|
60
61
|
import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
61
62
|
import { tmpdir } from "os";
|
|
62
|
-
import { join } from "path";
|
|
63
|
-
var ROUTE =
|
|
63
|
+
import { dirname, join } from "path";
|
|
64
|
+
var ROUTE = {
|
|
65
|
+
path: "/v3/audio/transcriptions",
|
|
66
|
+
start: (c, body, key, signal) => c.createTranscription({
|
|
67
|
+
body,
|
|
68
|
+
idempotencyKey: key,
|
|
69
|
+
signal
|
|
70
|
+
}),
|
|
71
|
+
status: (c, id, signal) => c.getTranscription({ transcription_id: id, signal })
|
|
72
|
+
};
|
|
64
73
|
var MODEL = "scribe-v2";
|
|
65
74
|
var isRecord = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
66
75
|
var list = (v) => Array.isArray(v) ? v.filter(isRecord) : [];
|
|
@@ -111,10 +120,12 @@ async function transcribeWithHeygen(inputPath, transcriptPath, opts = {}) {
|
|
|
111
120
|
audio: { type: "base64", media_type: "audio/mpeg", data: audio.toString("base64") },
|
|
112
121
|
diarize
|
|
113
122
|
},
|
|
114
|
-
idempotencyKey(ROUTE, [audio, String(diarize)]),
|
|
115
|
-
(id) => `${ROUTE}/${encodeURIComponent(id)}`,
|
|
123
|
+
idempotencyKey(ROUTE.path, [audio, String(diarize)]),
|
|
116
124
|
{
|
|
117
|
-
log: {
|
|
125
|
+
log: {
|
|
126
|
+
projectDir: projectOf(dirname(transcriptPath)) ?? process.cwd(),
|
|
127
|
+
what: `transcribe ${inputPath}`
|
|
128
|
+
},
|
|
118
129
|
timeoutMs: 10 * 6e4
|
|
119
130
|
}
|
|
120
131
|
);
|
|
@@ -158,7 +169,7 @@ async function runTranscribe(options) {
|
|
|
158
169
|
if (!existsSync(inputPath)) {
|
|
159
170
|
throw new TranscribeError("input_not_found", `File not found: ${options.input}`);
|
|
160
171
|
}
|
|
161
|
-
const dir = resolve(options.dir ??
|
|
172
|
+
const dir = resolve(options.dir ?? dirname2(inputPath));
|
|
162
173
|
const ext = extname(inputPath).toLowerCase();
|
|
163
174
|
const isImport = ext === ".json" || ext === ".srt" || ext === ".vtt";
|
|
164
175
|
const sidecar = parseSidecar(options.captions, inputPath, dir);
|
|
@@ -194,7 +205,7 @@ function parseSidecar(captions, inputPath, dir) {
|
|
|
194
205
|
}
|
|
195
206
|
function outputProblem(output, outPath, to) {
|
|
196
207
|
if (!output) return "--output needs a file path";
|
|
197
|
-
const folder =
|
|
208
|
+
const folder = dirname2(outPath);
|
|
198
209
|
if (!existsSync(folder) || !statSync(folder).isDirectory()) {
|
|
199
210
|
return `Output folder not found: ${folder}`;
|
|
200
211
|
}
|
|
@@ -213,7 +224,7 @@ function sameFile(out, file) {
|
|
|
213
224
|
if (a.ino !== 0n && b.ino !== 0n) return a.dev === b.dev && a.ino === b.ino;
|
|
214
225
|
return realpathSync.native(out) === realpathSync.native(file);
|
|
215
226
|
}
|
|
216
|
-
const realDir = (p) => existsSync(
|
|
227
|
+
const realDir = (p) => existsSync(dirname2(p)) ? realpathSync.native(dirname2(p)) : dirname2(p);
|
|
217
228
|
return realDir(out) === realDir(file) && basename(out).toLowerCase() === basename(file).toLowerCase();
|
|
218
229
|
}
|
|
219
230
|
function readTranscript(inputPath) {
|
|
@@ -313,7 +324,6 @@ async function transcribeOnHeygen(inputPath, dir, sidecar, options) {
|
|
|
313
324
|
try {
|
|
314
325
|
const result = await transcribeWithHeygen(inputPath, join2(dir, TRANSCRIPT_FILE), {
|
|
315
326
|
diarize: options.speakers,
|
|
316
|
-
projectDir: dir,
|
|
317
327
|
onStatus: options.onStatus
|
|
318
328
|
});
|
|
319
329
|
return finishTranscript(result, "heygen", dir, sidecar);
|
|
@@ -6,18 +6,18 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6DKWOG7L.js";
|
|
10
|
+
import {
|
|
11
|
+
findPreviewServerForProject,
|
|
12
|
+
studioApiUrl
|
|
13
|
+
} from "./chunk-US4BCRYB.js";
|
|
10
14
|
import {
|
|
11
15
|
DEFAULT_HISTORY_ROOT,
|
|
12
16
|
HistoryBusyError,
|
|
13
17
|
MAX_WINDOW_IDLE_MS,
|
|
14
18
|
openProjectHistory,
|
|
15
19
|
readProjectHistory
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
findPreviewServerForProject,
|
|
19
|
-
studioApiUrl
|
|
20
|
-
} from "./chunk-US4BCRYB.js";
|
|
20
|
+
} from "./chunk-XLPCBE2Q.js";
|
|
21
21
|
|
|
22
22
|
// src/utils/historyOwner.ts
|
|
23
23
|
import { randomUUID } from "crypto";
|
|
@@ -12,22 +12,22 @@ import {
|
|
|
12
12
|
} from "./chunk-262C25DQ.js";
|
|
13
13
|
import {
|
|
14
14
|
pageNavigationTimeoutMs
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-E2YXF2EP.js";
|
|
16
16
|
import {
|
|
17
17
|
SEEK_SETTLES_BEFORE_PROTOCOL_TIMEOUT_MS
|
|
18
18
|
} from "./chunk-YGGZ23BB.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveCompositionViewportFromHtml
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LTBBFLOM.js";
|
|
22
22
|
import {
|
|
23
23
|
launchManagedBrowser,
|
|
24
24
|
resolveManagedGpuMode,
|
|
25
25
|
rethrowAfterBrowserCleanup
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BHL4KN3H.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveLocalBrowserGpuMode,
|
|
29
29
|
resolveLocalWebGpu
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6UZLHLFP.js";
|
|
31
31
|
import {
|
|
32
32
|
c
|
|
33
33
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
assertWebGpuAdapterAvailable,
|
|
36
36
|
compositionRequiresWebGpu,
|
|
37
37
|
oneProcessOverPipe
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
39
39
|
import {
|
|
40
40
|
normalizeErrorMessage
|
|
41
41
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -143,7 +143,7 @@ async function waitForCompositionSettle(page, options) {
|
|
|
143
143
|
console.warn(` ${c.warn("\u26A0")} Shader transitions did not finish pre-rendering`);
|
|
144
144
|
});
|
|
145
145
|
await waitForLateSubresources(page, options.lateSubresourceTimeoutMs ?? CAPTURE_SETTLE_MS);
|
|
146
|
-
const { resolveConfig, waitForImagesReady } = await import("./src-
|
|
146
|
+
const { resolveConfig, waitForImagesReady } = await import("./src-RL6YEPTD.js");
|
|
147
147
|
const imageTimeoutMs = resolveConfig().playerReadyTimeout;
|
|
148
148
|
await waitForImagesReady(
|
|
149
149
|
page,
|
|
@@ -192,7 +192,7 @@ async function installPageFunctionGuard(page) {
|
|
|
192
192
|
async function openSettledCompositionPage(html, url, options) {
|
|
193
193
|
const viewport = resolveCompositionViewportFromHtml(html);
|
|
194
194
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
195
|
-
const answer = (await import("./staticProjectServer-
|
|
195
|
+
const answer = (await import("./staticProjectServer-BX4RWEY5.js")).inProcessAnswer(url);
|
|
196
196
|
const noListen = answer !== void 0;
|
|
197
197
|
let chromeBrowser;
|
|
198
198
|
try {
|
|
@@ -203,7 +203,7 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
203
203
|
options.onBrowserReady?.();
|
|
204
204
|
const page = await chromeBrowser.newPage();
|
|
205
205
|
await installPageFunctionGuard(page);
|
|
206
|
-
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-
|
|
206
|
+
const { installMediaRenderIdBridge, forcePreservedDrawingBuffer } = await import("./src-RL6YEPTD.js");
|
|
207
207
|
await installMediaRenderIdBridge(page);
|
|
208
208
|
await page.evaluateOnNewDocument(forcePreservedDrawingBuffer);
|
|
209
209
|
await page.evaluateOnNewDocument("window.__HF_REPLAY_SKIPPED_FRAMES = true");
|
|
@@ -225,7 +225,7 @@ async function launchCompositionBrowser(html, noListen, options) {
|
|
|
225
225
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-SAXHANEY.js");
|
|
226
226
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
227
227
|
const puppeteer = await import("puppeteer-core");
|
|
228
|
-
const { buildChromeArgs } = await import("./src-
|
|
228
|
+
const { buildChromeArgs } = await import("./src-RL6YEPTD.js");
|
|
229
229
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
230
230
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
231
231
|
let softwareWebGpu = false;
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-RL6YEPTD.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
decode,
|
|
9
9
|
meanAbsDiff
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A33GFLPY.js";
|
|
11
11
|
|
|
12
12
|
// src/measure/cuts.ts
|
|
13
13
|
var SIG_W = 64;
|
|
@@ -28,6 +28,7 @@ var MAX_CUT_FRAMES = 3;
|
|
|
28
28
|
var FLASH_FRAMES = 4;
|
|
29
29
|
var RETURNED = 0.4;
|
|
30
30
|
var SAME_TONES = 0.8;
|
|
31
|
+
var IN_MOTION = 0.3;
|
|
31
32
|
function signatures(input, filters = []) {
|
|
32
33
|
return decode(input, [...filters, `scale=${SIG_W}:${SIG_H}:flags=area`], SIG_W, SIG_H, true);
|
|
33
34
|
}
|
|
@@ -74,6 +75,31 @@ var sharedTones = (a, b) => {
|
|
|
74
75
|
const after = tones(b);
|
|
75
76
|
return tones(a).reduce((sum, share, bin) => sum + Math.min(share, after[bin]), 0);
|
|
76
77
|
};
|
|
78
|
+
function moved(f, s, dx, dy) {
|
|
79
|
+
const out = new Uint8Array(f.length);
|
|
80
|
+
const cx = (SIG_W - 1) / 2;
|
|
81
|
+
const cy = (SIG_H - 1) / 2;
|
|
82
|
+
for (let y = 0; y < SIG_H; y++) {
|
|
83
|
+
const sy = Math.min(SIG_H - 1, Math.max(0, Math.round((y - cy - dy) / s + cy)));
|
|
84
|
+
for (let x = 0; x < SIG_W; x++) {
|
|
85
|
+
const sx = Math.min(SIG_W - 1, Math.max(0, Math.round((x - cx - dx) / s + cx)));
|
|
86
|
+
out[y * SIG_W + x] = f[sy * SIG_W + sx];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
91
|
+
function movedChange(before, after) {
|
|
92
|
+
let least = meanAbsDiff(before, after);
|
|
93
|
+
for (let s = 0.8; s <= 1.25; s += 0.025)
|
|
94
|
+
for (let dx = -6; dx <= 6; dx++)
|
|
95
|
+
for (let dy = -4; dy <= 4; dy++)
|
|
96
|
+
least = Math.min(least, meanAbsDiff(moved(before, s, dx, dy), after));
|
|
97
|
+
return least;
|
|
98
|
+
}
|
|
99
|
+
function isMove(frames, diffs, c, end) {
|
|
100
|
+
const inMotion = Math.min(diffs[c.frame - 1] ?? 0, diffs[end] ?? 0) >= IN_MOTION * c.change;
|
|
101
|
+
return inMotion && movedChange(frames[c.frame - 1], frames[end - 1]) < RETURNED * c.change;
|
|
102
|
+
}
|
|
77
103
|
function classifiedCuts(frames) {
|
|
78
104
|
const diffs = frameChanges(frames);
|
|
79
105
|
return cutsIn(diffs).map((c) => {
|
|
@@ -88,7 +114,8 @@ function classifiedCuts(frames) {
|
|
|
88
114
|
const returns = Array.from({ length: FLASH_FRAMES }, (_, k) => k + 1).some(
|
|
89
115
|
(k) => back(c.frame - 1, end - 1 + k) || back(c.frame - k, end)
|
|
90
116
|
);
|
|
91
|
-
|
|
117
|
+
if (returns) return { ...c, kind: "flash" };
|
|
118
|
+
return isMove(frames, diffs, c, end) ? { ...c, kind: "fast" } : c;
|
|
92
119
|
});
|
|
93
120
|
}
|
|
94
121
|
function findCuts(frames) {
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-XQ26I3PL.js";
|
|
14
14
|
import {
|
|
15
15
|
createProjectConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-S2UKSI3C.js";
|
|
17
17
|
import {
|
|
18
18
|
isHyperframesProject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W5AUD5OL.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/desktopApp.ts
|
|
22
22
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-J3OVTOVC.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VZ5O7A77.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-2GICKZ3I.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-N6FGHJ7X.js";
|
|
33
33
|
import {
|
|
34
34
|
getFreeDiskMb,
|
|
35
35
|
getShmSizeMb,
|
|
@@ -41,14 +41,14 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getUpdateMeta,
|
|
43
43
|
withMeta
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TZBJEKKU.js";
|
|
45
45
|
import {
|
|
46
46
|
CONFIG_PATH,
|
|
47
47
|
withFileLock
|
|
48
48
|
} from "./chunk-BLBMPEBX.js";
|
|
49
49
|
import {
|
|
50
50
|
VERSION
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-AH6MUQQC.js";
|
|
52
52
|
import {
|
|
53
53
|
normalizeErrorMessage
|
|
54
54
|
} from "./chunk-E63BDV4Z.js";
|
|
@@ -240,7 +240,7 @@ function checkEnvironment() {
|
|
|
240
240
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
241
241
|
}
|
|
242
242
|
async function checkWhisper() {
|
|
243
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
243
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-ARXEX6OP.js");
|
|
244
244
|
const result = findWhisper();
|
|
245
245
|
if (result) {
|
|
246
246
|
return { ok: true, detail: result.executablePath };
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
findFFmpeg,
|
|
9
9
|
findFFprobe,
|
|
10
10
|
getFFmpegInstallHint
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AVNF52HR.js";
|
|
12
12
|
|
|
13
13
|
// src/measure/media.ts
|
|
14
14
|
import { execFileSync } from "child_process";
|
|
@@ -34,6 +34,11 @@ function ffprobeBin() {
|
|
|
34
34
|
if (!bin) throw new Fix("ffprobe is not installed", getFFmpegInstallHint());
|
|
35
35
|
return bin;
|
|
36
36
|
}
|
|
37
|
+
function sumOf(terms) {
|
|
38
|
+
if (terms.length <= 50) return terms.join("+");
|
|
39
|
+
const half = terms.length >> 1;
|
|
40
|
+
return `(${sumOf(terms.slice(0, half))})+(${sumOf(terms.slice(half))})`;
|
|
41
|
+
}
|
|
37
42
|
function runFfmpeg(args, input, cwd) {
|
|
38
43
|
return execFileSync(ffmpegBin(), [...FFMPEG_QUIET, ...args], {
|
|
39
44
|
maxBuffer: MAX_BUFFER,
|
|
@@ -46,9 +51,22 @@ var rate = (text) => {
|
|
|
46
51
|
const [a, b] = String(text ?? "0/1").split("/").map(Number);
|
|
47
52
|
return b ? (a ?? 0) / b : a ?? 0;
|
|
48
53
|
};
|
|
54
|
+
function probeSeconds(path) {
|
|
55
|
+
if (!existsSync(path)) throw new Fix(`no file at ${path}`, "pass a sound from the project");
|
|
56
|
+
const text = execFileSync(
|
|
57
|
+
ffprobeBin(),
|
|
58
|
+
["-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", "--", path],
|
|
59
|
+
{ maxBuffer: MAX_BUFFER, windowsHide: true }
|
|
60
|
+
).toString();
|
|
61
|
+
return Number(text) || 0;
|
|
62
|
+
}
|
|
49
63
|
function probeVideo(path) {
|
|
50
64
|
if (!existsSync(path))
|
|
51
|
-
throw new Fix(
|
|
65
|
+
throw new Fix(
|
|
66
|
+
`no file at ${path}`,
|
|
67
|
+
// `D:video\clip.mp4` reached us as `D:videoclip.mp4`: an unquoted Windows path in bash.
|
|
68
|
+
/^[A-Za-z]:[^\\/]/.test(path) ? "the shell dropped the backslashes: quote the path or write it with / (D:/video/clip.mp4)" : "pass the video's path from the project folder"
|
|
69
|
+
);
|
|
52
70
|
let json;
|
|
53
71
|
try {
|
|
54
72
|
json = JSON.parse(
|
|
@@ -234,7 +252,9 @@ function projectOf(from) {
|
|
|
234
252
|
export {
|
|
235
253
|
Fix,
|
|
236
254
|
ffmpegBin,
|
|
255
|
+
sumOf,
|
|
237
256
|
runFfmpeg,
|
|
257
|
+
probeSeconds,
|
|
238
258
|
probeVideo,
|
|
239
259
|
videoClip,
|
|
240
260
|
readClip,
|
|
@@ -6,8 +6,8 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var VERSION = true ? "0.9.
|
|
10
|
-
var PRODUCER_VERSION = true ? "0.9.
|
|
9
|
+
var VERSION = true ? "0.9.9" : "0.0.0-dev";
|
|
10
|
+
var PRODUCER_VERSION = true ? "0.9.9" : "0.0.0-dev";
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
13
|
VERSION,
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
} from "./chunk-SWC3QIEH.js";
|
|
10
10
|
import {
|
|
11
11
|
stoppedByCancelSignal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VM6T3Z6B.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_MODEL,
|
|
15
15
|
ensureModel,
|
|
16
16
|
ensureWhisper,
|
|
17
17
|
hasFFmpeg,
|
|
18
18
|
pinnedWhisperModel
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZLN3AJKT.js";
|
|
20
20
|
import {
|
|
21
21
|
sha256File
|
|
22
22
|
} from "./chunk-RZ6CXJ56.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
findFFmpeg,
|
|
25
25
|
findFFprobe,
|
|
26
26
|
getFFmpegInstallHint
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AVNF52HR.js";
|
|
28
28
|
import {
|
|
29
29
|
findWavChunk
|
|
30
30
|
} from "./chunk-UOFAE5RF.js";
|