hyperframes 0.8.213 → 0.8.216
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-GRJ6BQMO.js → add-2RWN7JAI.js} +18 -15
- package/dist/{agentPromptGenerator-2HTUGEKK.js → agentPromptGenerator-RVE5RWTH.js} +9 -8
- package/dist/{animatedGifPrep-7KPZBZXD.js → animatedGifPrep-I32BS5HI.js} +9 -8
- package/dist/api.js +20 -19
- package/dist/{asset-YVIFFWCU.js → asset-YLZ5UGVE.js} +2 -2
- package/dist/{assetCataloger-IZW7LPCT.js → assetCataloger-B4KOZO3V.js} +10 -9
- package/dist/{audio-X7274SUF.js → audio-VUOJ7MOJ.js} +180 -64
- package/dist/{auth-II6SIDJD.js → auth-3UL65CN7.js} +4 -4
- package/dist/{autoUpdate-WJIT74BG.js → autoUpdate-FEK5AHLP.js} +4 -3
- package/dist/{backgroundChecks-NMKJAES7.js → backgroundChecks-VJSQ3REH.js} +5 -4
- package/dist/backgroundChecksWorker.js +6 -5
- package/dist/{batchRender-I7GRY73M.js → batchRender-NC6SUDYN.js} +4 -4
- package/dist/{beats-6VXALJZT.js → beats-KSUZ23LE.js} +25 -19
- package/dist/{benchmark-RLIRA74V.js → benchmark-TRVQ7EPQ.js} +15 -12
- package/dist/{browser-7T3JMNTR.js → browser-3LJ3SLQ4.js} +10 -7
- package/dist/{bundleWithLocalizedFonts-C2LP6QZZ.js → bundleWithLocalizedFonts-Y7VGIRFK.js} +2 -2
- package/dist/{capture-V4HWHG7C.js → capture-NC5OO4D2.js} +3 -3
- package/dist/{capture-OZFDTN4A.js → capture-NT2SOO5J.js} +17 -16
- package/dist/{captureCompositionFrame-WZAVXCRQ.js → captureCompositionFrame-PAJRNURH.js} +15 -14
- package/dist/{catalog-UFC7JS4T.js → catalog-BOGZ2BQD.js} +19 -16
- package/dist/{catch-up-YBNKJDWJ.js → catch-up-FGF5SAEW.js} +10 -7
- package/dist/{check-ESQJHRGA.js → check-IG6NIMSC.js} +46 -43
- package/dist/{checkAudio-OIIBWFBF.js → checkAudio-6B2FKTIU.js} +14 -13
- package/dist/{checkBrowser-WAWL6TKX.js → checkBrowser-D6MZRCTH.js} +39 -36
- package/dist/{chunk-7LOVQRUJ.js → chunk-2JV6FKNZ.js} +3 -3
- package/dist/{chunk-WSEPFRJV.js → chunk-3AOXAXTA.js} +1 -1
- package/dist/{chunk-6LDHXB4Z.js → chunk-3F2DTPBD.js} +3 -2
- package/dist/{chunk-V2H5UABS.js → chunk-3S2WWGJJ.js} +3 -3
- package/dist/{chunk-ENE4IKFX.js → chunk-43USF7JF.js} +11 -11
- package/dist/{chunk-VTX27LET.js → chunk-4EEVTNDU.js} +3 -3
- package/dist/{chunk-MFC2PE7D.js → chunk-4MWUMT3T.js} +2 -2
- package/dist/chunk-4WEWHZZO.js +24 -0
- package/dist/{chunk-7JWRVKN4.js → chunk-4YIKQM4K.js} +1 -1
- package/dist/{chunk-SZOCI3JJ.js → chunk-557ZJMFI.js} +2 -2
- package/dist/{chunk-DQ26IA5P.js → chunk-5XTOAZMR.js} +1 -1
- package/dist/{chunk-LGDRKQKL.js → chunk-6HJUC2VX.js} +3 -3
- package/dist/{chunk-MBSESQED.js → chunk-6LQL2BVD.js} +1 -1
- package/dist/{chunk-F4EX52FU.js → chunk-7P76YIVS.js} +1 -1
- package/dist/{chunk-3OYLHBQZ.js → chunk-7RPXLY6U.js} +1 -1
- package/dist/{chunk-KSMCX5EP.js → chunk-ACAU2AK2.js} +4 -4
- package/dist/{chunk-I3G45TWG.js → chunk-BHWXSO6T.js} +1 -1
- package/dist/{chunk-K4WIOZFP.js → chunk-BR2JQQC5.js} +3 -5
- package/dist/{chunk-5ODMV7X6.js → chunk-BTYR7Y3Z.js} +2 -2
- package/dist/{chunk-PAZ7WUYZ.js → chunk-BYHG2T5X.js} +2 -2
- package/dist/{chunk-G6HUXX3L.js → chunk-CBCZBHGK.js} +4 -2
- package/dist/{chunk-ISMOBMWF.js → chunk-CX4TSC7T.js} +98 -37
- package/dist/{chunk-DJFEYX23.js → chunk-DFA5GTRJ.js} +1 -1
- package/dist/{chunk-KY67MTBH.js → chunk-DYHAZFK3.js} +336 -3
- package/dist/{chunk-TCCCAEZD.js → chunk-EB44YMQO.js} +3 -3
- package/dist/{chunk-LYON3VGF.js → chunk-EJTVBW42.js} +2 -2
- package/dist/{chunk-32NEJ553.js → chunk-FBN2M2HK.js} +28 -0
- package/dist/{chunk-QHWVCKC5.js → chunk-FUSUFW2L.js} +1 -1
- package/dist/{chunk-L72RQ45A.js → chunk-G3AG7A42.js} +1 -1
- package/dist/{chunk-FKFGGAXN.js → chunk-GLC5XHN5.js} +13 -0
- package/dist/{chunk-NGJS5H5E.js → chunk-GTKUQUZ6.js} +1 -1
- package/dist/{chunk-ZGG53XZX.js → chunk-I3VXWMQW.js} +7 -7
- package/dist/chunk-IVRKWQTX.js +5061 -0
- package/dist/{chunk-4645UHJF.js → chunk-JF3RF6GS.js} +3 -2
- package/dist/{chunk-FGIMC5I4.js → chunk-JFFQWMNE.js} +5 -5
- package/dist/{chunk-EQ66MVWZ.js → chunk-JOZQFSOV.js} +1 -1
- package/dist/{chunk-STK62RL7.js → chunk-KBTXAUCZ.js} +1 -1
- package/dist/{chunk-X4SBDDLS.js → chunk-KSC4O2RY.js} +4 -0
- package/dist/{chunk-FHO3FXTW.js → chunk-KYXBPFI7.js} +8 -6
- package/dist/{chunk-5766TK7Q.js → chunk-LAGZGKKN.js} +1 -1
- package/dist/{chunk-CLA4XSBO.js → chunk-LGZP4IR2.js} +3 -3
- package/dist/{chunk-TLXK5A2N.js → chunk-MKL6JGDL.js} +35 -30
- package/dist/{chunk-IHYWP4V5.js → chunk-MO6DJMZP.js} +1 -1
- package/dist/{chunk-2GS2RUVI.js → chunk-MU66MHZB.js} +2 -2
- package/dist/{chunk-Z7QHOT65.js → chunk-MYHAS5U2.js} +13 -17
- package/dist/{chunk-6CGYINE7.js → chunk-NOH32H42.js} +25 -0
- package/dist/{chunk-S3ZWVEGQ.js → chunk-NWYJZAPP.js} +1 -1
- package/dist/{chunk-2WELGDXU.js → chunk-OFJTXNRS.js} +5 -5
- package/dist/{chunk-TWCICOCI.js → chunk-OPLEWQHF.js} +1 -1
- package/dist/{chunk-BVHNFPRF.js → chunk-OWU2BURB.js} +2 -2
- package/dist/{chunk-HWHPYCBZ.js → chunk-PNE2Y42T.js} +1 -1
- package/dist/{chunk-VVDHSRKD.js → chunk-PPMLF76Z.js} +1 -1
- package/dist/chunk-PXVQOMKL.js +39 -0
- package/dist/{chunk-AJ3QW6RX.js → chunk-Q3OKLJ34.js} +3 -3
- package/dist/chunk-QBXDU24O.js +20 -0
- package/dist/{chunk-L34IH4SH.js → chunk-QETCWXRM.js} +5 -5
- package/dist/{chunk-H3I2VLLL.js → chunk-QGMRSNG5.js} +8 -4
- package/dist/{chunk-ZE57TSS6.js → chunk-QRIC4WOO.js} +1 -1
- package/dist/{chunk-FJ646TIT.js → chunk-R4EWRIDL.js} +161 -21
- package/dist/{chunk-53VXGZ3L.js → chunk-RH5Y75UX.js} +2 -2
- package/dist/{chunk-ZTCILR3V.js → chunk-RIGQABEL.js} +1 -1
- package/dist/{chunk-ZSRNM6LP.js → chunk-RKS7GO4O.js} +1 -1
- package/dist/{chunk-7I5N36JA.js → chunk-RN7RQBW3.js} +2 -2
- package/dist/{chunk-N3MOQTRS.js → chunk-ROUK3OL2.js} +8 -8
- package/dist/{chunk-BE6XXZAR.js → chunk-RXQU3QM4.js} +11 -11
- package/dist/{chunk-XNY2KI2Z.js → chunk-SBBYMUWY.js} +1 -1
- package/dist/{chunk-7J6LQ3SQ.js → chunk-SGTEKMJW.js} +19 -4
- package/dist/{chunk-GNSNCIHF.js → chunk-SPFTXNKQ.js} +20 -15
- package/dist/{chunk-46HYDDZ5.js → chunk-TBEU55KU.js} +1 -1
- package/dist/{chunk-76T7KAYD.js → chunk-TQSKEMSL.js} +48 -9
- package/dist/{chunk-O63A26XQ.js → chunk-U54ZBLTF.js} +2 -2
- package/dist/{chunk-Q55JNFDV.js → chunk-UGQFQDSV.js} +1 -1
- package/dist/{chunk-D3Q2TABU.js → chunk-UIETUYFT.js} +1 -1
- package/dist/{chunk-4BXPCS5B.js → chunk-UJEEURID.js} +15 -15
- package/dist/{chunk-DKEZSH6M.js → chunk-URUUGFZD.js} +3 -3
- package/dist/{chunk-LTQXIYNL.js → chunk-USQTLRSD.js} +3 -3
- package/dist/{chunk-7TWX4Y7I.js → chunk-UVXIJYZY.js} +3 -15
- package/dist/{chunk-NP4G4WPP.js → chunk-VDFY4FE5.js} +12 -11
- package/dist/{chunk-KL2UJXCY.js → chunk-VPA5YKEY.js} +2 -2
- package/dist/{chunk-CTZJSMGU.js → chunk-VZBJ5BQF.js} +1 -1
- package/dist/{chunk-KVFOQ3EM.js → chunk-VZENYSX7.js} +103 -13
- package/dist/{chunk-DW35FX4I.js → chunk-X5EOH44V.js} +1 -1
- package/dist/{chunk-CCLBOLYU.js → chunk-YBNF5ZOC.js} +1 -1
- package/dist/{chunk-TDNPJHEQ.js → chunk-YT4DR2UT.js} +7 -7
- package/dist/{chunk-LALMFSLB.js → chunk-Z4W7ND2L.js} +7 -7
- package/dist/{chunk-Z65ZQYBW.js → chunk-ZRK7ZEWI.js} +3 -3
- package/dist/{clean-XBQ54UZX.js → clean-WPLBDRSW.js} +23 -22
- package/dist/cli.js +61 -59
- package/dist/{cloud-E2GUGXXL.js → cloud-VMSG2SJB.js} +4 -4
- package/dist/{cloudrun-IAPFT66T.js → cloudrun-AXB4G6X2.js} +5 -5
- package/dist/commands/layout-audit.browser.js +37 -0
- package/dist/{compare-2VPIOCLV.js → compare-NVW3E74E.js} +36 -33
- package/dist/{compiler-3ED6KJYN.js → compiler-GHX7QLHL.js} +4 -4
- package/dist/{component-IH2KSDNM.js → component-ZQAP7CBI.js} +3 -3
- package/dist/{compositions-MIMF2GM3.js → compositions-FKHNCB6H.js} +17 -14
- package/dist/{delete-5H5EYSYK.js → delete-XYC7FN6A.js} +8 -6
- package/dist/{deploy-DMQT34K2.js → deploy-DOJS666X.js} +2 -2
- package/dist/{dist-ANQ2CIIO.js → dist-3Q2DNDSR.js} +17 -3
- package/dist/{dist-OKQM7BQ3.js → dist-KXFW5H5Q.js} +2 -2
- package/dist/{doctor-MTRZJQZZ.js → doctor-7CUFMW3Y.js} +16 -15
- package/dist/{events-2GNMM2YS.js → events-K7HUJ4DO.js} +9 -6
- package/dist/{events-TBKM6B5H.js → events-KGXVDZV7.js} +9 -6
- package/dist/{feedback-6NNSKXQP.js → feedback-F7WLYJGJ.js} +17 -14
- package/dist/{ffmpeg-622QCJLB.js → ffmpeg-ZFHN4YZ2.js} +9 -8
- package/dist/{figma-TFHZ3N5A.js → figma-7QKRKT5Q.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -12
- package/dist/{get-P6RA7MAU.js → get-XKPYG6IC.js} +8 -6
- package/dist/{gpuPolicy-CK2XDEAM.js → gpuPolicy-A74BROG6.js} +9 -8
- package/dist/{grade-compare-LK6U7OJD.js → grade-compare-7SR62TE5.js} +37 -34
- package/dist/hangReport.js +1 -1
- package/dist/{heifImagePrep-3OXKQUEZ.js → heifImagePrep-XTCBHE3B.js} +10 -9
- package/dist/{help-YENCFXYK.js → help-B7CXC4J5.js} +3 -3
- package/dist/{history-V3E4UCMY.js → history-3INEHHZ4.js} +12 -9
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +71 -71
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-ZGKQMX3Z.js → info-J3U63EFT.js} +14 -11
- package/dist/{init-D6PJI2TA.js → init-2IEXXRG2.js} +35 -32
- package/dist/{inspect-UCHLILOX.js → inspect-IRJABR66.js} +37 -34
- package/dist/{installer-CV2OKJFW.js → installer-6JLQM6OJ.js} +5 -5
- package/dist/{keyframes-2IJTDJ7K.js → keyframes-G2TSKZRL.js} +12 -9
- package/dist/{lambda-GKZBKWTK.js → lambda-QFFFCFK3.js} +13 -12
- package/dist/{layout-KKPRCTME.js → layout-INRUYIDJ.js} +37 -34
- package/dist/{lint-NAC6M4NT.js → lint-BHPBD7Z3.js} +15 -12
- package/dist/{lintProject-MSATZIK7.js → lintProject-SZIPPOJR.js} +2 -2
- package/dist/{list-QRMXOTNB.js → list-BGL5PH6J.js} +8 -6
- package/dist/{localPage-KMXALM7A.js → localPage-MLFDX4Y6.js} +9 -8
- package/dist/{login-GBN5ZMEA.js → login-ABDL65L6.js} +19 -18
- package/dist/{logout-C6P6ERZ3.js → logout-CXGSSQ4Q.js} +6 -4
- package/dist/{manager-GPDDRQIW.js → manager-DEKPCPWH.js} +11 -10
- package/dist/{manager-IZIK7BHN.js → manager-LXWVBDLM.js} +3 -3
- package/dist/{media-treatment-4Q7G27JJ.js → media-treatment-BQDTCBIT.js} +31 -19
- package/dist/{models-7KJF4LYJ.js → models-SJIA5QDV.js} +13 -12
- package/dist/{motionShot-DQAX2QTZ.js → motionShot-46J3W5UJ.js} +19 -18
- package/dist/{normalize-audio-K7VCJQYJ.js → normalize-audio-UXAJSQKI.js} +16 -13
- package/dist/{open-ZSBVR3KC.js → open-DHRYP3N3.js} +18 -15
- package/dist/{parakeetRunner-XXZHJYKO.js → parakeetRunner-WKMM4TYU.js} +15 -14
- package/dist/{pipeline-KNLOS5CL.js → pipeline-EIVKRUX2.js} +13 -12
- package/dist/{play-GQWF7MU5.js → play-J5A7KHNF.js} +27 -24
- package/dist/{preflight-UMKQ5C5W.js → preflight-GKIQIXFQ.js} +12 -11
- package/dist/{present-X7BPH35M.js → present-ZDXILGQJ.js} +23 -20
- package/dist/{preview-5Q7HPEOF.js → preview-A2MLHZFF.js} +25 -22
- package/dist/{producer-IXOPGETH.js → producer-NYWYRG4X.js} +1 -1
- package/dist/{projectConfig-YGI5AINR.js → projectConfig-DY6FHC7A.js} +7 -7
- package/dist/{publication-ZSDCS2ST.js → publication-N4WHPZOW.js} +3 -3
- package/dist/{publish-S2IIRPFZ.js → publish-26W6VDND.js} +17 -15
- package/dist/{refresh-IYRGLHG5.js → refresh-VJ4FQVH2.js} +3 -2
- package/dist/{remove-background-F2WFDCNM.js → remove-background-JYUB75RB.js} +14 -13
- package/dist/{render-CHRSSQNM.js → render-AQH2VMHO.js} +125 -72
- package/dist/{render-NVHUPEDG.js → render-JZWO3VX3.js} +25 -22
- package/dist/{render-WYBQO4SR.js → render-YPI6CDRS.js} +6 -6
- package/dist/{render-batch-SDGA2643.js → render-batch-GR2Y3F2S.js} +6 -6
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-3W2OPVGC.js → resolver-LTLSX6DR.js} +5 -5
- package/dist/{screenshotCapture-HDRHY4NN.js → screenshotCapture-U3IYWTDB.js} +1 -1
- package/dist/{sherpa-HCPAOYGA.js → sherpa-2DJ33LQP.js} +14 -13
- package/dist/sherpaWorker.js +1 -1
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +1 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +9 -0
- package/dist/skills/hyperframes-cli/references/preview-render.md +2 -2
- package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +2 -2
- package/dist/skills/media-use/references/meta.md +6 -5
- package/dist/skills/media-use/scripts/lib/telemetry.mjs +49 -15
- package/dist/skills/media-use/scripts/lib/telemetry.test.mjs +19 -5
- package/dist/{skills-KOVM4OP5.js → skills-OF7XMPKX.js} +11 -8
- package/dist/{skillsUpdateCheck-ISMQFMPY.js → skillsUpdateCheck-E3HPT4PS.js} +5 -4
- package/dist/{snapshot-K7LVZDHG.js → snapshot-6F5XK22M.js} +60 -40
- package/dist/{src-QEFKMRH7.js → src-JUJFZ6GC.js} +12 -7
- package/dist/{src-FUMXFZYG.js → src-UNN3TXHH.js} +11 -10
- package/dist/{staticProjectServer-MF57NBIU.js → staticProjectServer-DLSH7DHS.js} +21 -20
- package/dist/{status-SLILCDBZ.js → status-TJFZFDGS.js} +5 -4
- package/dist/studio/assets/{hyperframes-player-Bb6n05RB.js → hyperframes-player-D38lr2hR.js} +3 -3
- package/dist/studio/assets/{index-pq574E5O.js → index-C-DCQ7nQ.js} +121 -121
- package/dist/studio/assets/{index-DOtf09XR.js → index-CJ28BLvq.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-Y4S3W7XE.js → studio-api-5YATSN7H.js} +11 -11
- package/dist/{studioServer-5LUZQOQV.js → studioServer-O3FSLOUF.js} +58 -55
- package/dist/{synthesize-FQML2LN2.js → synthesize-IKSZPKFJ.js} +2 -2
- package/dist/{system-MVRF5UM2.js → system-FDPS57FU.js} +2 -2
- package/dist/{telemetry-NTO4FJFN.js → telemetry-CY7V7FIN.js} +6 -5
- package/dist/{telemetry-TJMB5BTF.js → telemetry-MMCJ2ORL.js} +9 -6
- package/dist/{timeline-CU6CIWYL.js → timeline-ZBJTZK6E.js} +26 -23
- package/dist/{tokens-7P4N2FWN.js → tokens-JFYRYRDK.js} +2 -2
- package/dist/{transcribe-TFDEQFMG.js → transcribe-QUMMQM34.js} +13 -12
- package/dist/{transcribe-FZ7JK6QS.js → transcribe-UVQQ3OMR.js} +23 -20
- package/dist/{tts-K5HRN6NQ.js → tts-MQNOBHLH.js} +3 -3
- package/dist/{updateCheck-HUDVZHVM.js → updateCheck-VMMBGLTI.js} +4 -3
- package/dist/{upgrade-KP4RQZKY.js → upgrade-4VYNPIFQ.js} +4 -3
- package/dist/{urlDownloader-5SHSHWMB.js → urlDownloader-EAPV3CZL.js} +8 -7
- package/dist/{validate-VWX423M4.js → validate-JJG6Q6IH.js} +31 -28
- package/dist/{video-K4L2YFU2.js → video-7MJZ7IYL.js} +10 -9
- package/dist/warmCheck.js +47 -44
- package/dist/warmCheckClient.js +1 -1
- package/package.json +2 -1
- package/dist/chunk-N3ZAIZF3.js +0 -4870
|
@@ -12,12 +12,14 @@ import {
|
|
|
12
12
|
} from "./chunk-6A45RKAK.js";
|
|
13
13
|
import {
|
|
14
14
|
describeProject
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I3VXWMQW.js";
|
|
16
16
|
import "./chunk-LLMSX6V6.js";
|
|
17
17
|
import {
|
|
18
18
|
PITCH_RATE,
|
|
19
|
+
STEADY_BEAT_CONFIDENCE,
|
|
19
20
|
bandFramesOf,
|
|
20
21
|
envelope,
|
|
22
|
+
localBeatEvidence,
|
|
21
23
|
loudness,
|
|
22
24
|
medianInterval,
|
|
23
25
|
pitchTrack,
|
|
@@ -25,20 +27,21 @@ import {
|
|
|
25
27
|
runLadder,
|
|
26
28
|
signalDuration,
|
|
27
29
|
signalProvider,
|
|
30
|
+
silence,
|
|
28
31
|
snapper,
|
|
29
32
|
tempoOf
|
|
30
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-NOH32H42.js";
|
|
31
34
|
import {
|
|
32
35
|
ensureDOMParser
|
|
33
36
|
} from "./chunk-ZBAF6L74.js";
|
|
34
37
|
import {
|
|
35
38
|
refreshIfNeeded,
|
|
36
39
|
resolveCloudBaseUrl
|
|
37
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-PPMLF76Z.js";
|
|
38
41
|
import {
|
|
39
42
|
buildAuthHeaders,
|
|
40
43
|
tryResolveCredential
|
|
41
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-UVXIJYZY.js";
|
|
42
45
|
import {
|
|
43
46
|
downloadToFile
|
|
44
47
|
} from "./chunk-NO6F7CLR.js";
|
|
@@ -51,41 +54,43 @@ import {
|
|
|
51
54
|
} from "./chunk-6MUI2H6P.js";
|
|
52
55
|
import {
|
|
53
56
|
resolveProject
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
+
} from "./chunk-RIGQABEL.js";
|
|
58
|
+
import "./chunk-VZBJ5BQF.js";
|
|
59
|
+
import "./chunk-6LQL2BVD.js";
|
|
57
60
|
import "./chunk-5ZBMHUY2.js";
|
|
58
61
|
import "./chunk-A4ZTSQLW.js";
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-QGMRSNG5.js";
|
|
63
|
+
import "./chunk-TQSKEMSL.js";
|
|
64
|
+
import "./chunk-PXVQOMKL.js";
|
|
61
65
|
import "./chunk-EQGKUPBJ.js";
|
|
66
|
+
import "./chunk-4WEWHZZO.js";
|
|
62
67
|
import {
|
|
63
68
|
assertKnownFlags
|
|
64
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-GLC5XHN5.js";
|
|
65
70
|
import {
|
|
66
71
|
defineCommand
|
|
67
72
|
} from "./chunk-DL4OD7IA.js";
|
|
68
73
|
import "./chunk-S3S4TGEH.js";
|
|
69
74
|
import "./chunk-54HJ63Q2.js";
|
|
70
75
|
import "./chunk-2GICKZ3I.js";
|
|
71
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-VZENYSX7.js";
|
|
72
77
|
import "./chunk-Z5J67X44.js";
|
|
73
78
|
import "./chunk-5S7W3TUO.js";
|
|
74
79
|
import "./chunk-D3MUHMFG.js";
|
|
75
|
-
import "./chunk-
|
|
80
|
+
import "./chunk-Q3OKLJ34.js";
|
|
76
81
|
import "./chunk-YWRUQ7XZ.js";
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-DYHAZFK3.js";
|
|
83
|
+
import "./chunk-IVRKWQTX.js";
|
|
79
84
|
import "./chunk-VC76R6W2.js";
|
|
80
85
|
import "./chunk-OFQWTKPW.js";
|
|
81
86
|
import "./chunk-RQVDTPGD.js";
|
|
82
87
|
import "./chunk-3GXQPCJC.js";
|
|
83
88
|
import "./chunk-634HSJ3J.js";
|
|
84
89
|
import "./chunk-FXMKHHPO.js";
|
|
85
|
-
import "./chunk-
|
|
90
|
+
import "./chunk-LAGZGKKN.js";
|
|
86
91
|
import "./chunk-K4MJX7SR.js";
|
|
87
92
|
import "./chunk-WE42NVH7.js";
|
|
88
|
-
import "./chunk-
|
|
93
|
+
import "./chunk-JF3RF6GS.js";
|
|
89
94
|
import "./chunk-CZGHFATT.js";
|
|
90
95
|
import {
|
|
91
96
|
findFfBinary
|
|
@@ -93,7 +98,7 @@ import {
|
|
|
93
98
|
import {
|
|
94
99
|
resolveAuthoredAssetFile
|
|
95
100
|
} from "./chunk-PBNWRWKA.js";
|
|
96
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-KSC4O2RY.js";
|
|
97
102
|
import "./chunk-NHA4NRBE.js";
|
|
98
103
|
import "./chunk-FR7YBU3H.js";
|
|
99
104
|
import "./chunk-DPVXBVLL.js";
|
|
@@ -101,11 +106,11 @@ import "./chunk-GWTIFRF5.js";
|
|
|
101
106
|
import "./chunk-2RY2LWAA.js";
|
|
102
107
|
import "./chunk-3422KMTD.js";
|
|
103
108
|
import "./chunk-WC4MTXGN.js";
|
|
104
|
-
import "./chunk-
|
|
109
|
+
import "./chunk-FBN2M2HK.js";
|
|
105
110
|
import {
|
|
106
111
|
withMeta
|
|
107
|
-
} from "./chunk-
|
|
108
|
-
import "./chunk-
|
|
112
|
+
} from "./chunk-U54ZBLTF.js";
|
|
113
|
+
import "./chunk-BR2JQQC5.js";
|
|
109
114
|
import "./chunk-ZCHULPJZ.js";
|
|
110
115
|
import "./chunk-ISN5GRYI.js";
|
|
111
116
|
import "./chunk-SJGE5I5F.js";
|
|
@@ -113,7 +118,8 @@ import {
|
|
|
113
118
|
CliUsageError
|
|
114
119
|
} from "./chunk-DP5LF7GF.js";
|
|
115
120
|
import "./chunk-J3RXEDR2.js";
|
|
116
|
-
import "./chunk-
|
|
121
|
+
import "./chunk-QBXDU24O.js";
|
|
122
|
+
import "./chunk-VPA5YKEY.js";
|
|
117
123
|
import "./chunk-E63BDV4Z.js";
|
|
118
124
|
import "./chunk-G7VEYUZ2.js";
|
|
119
125
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -368,25 +374,12 @@ function answerFor(signal, capability) {
|
|
|
368
374
|
if (!request) requests.set(key, request = perSignal((s3) => ask(s3, together)));
|
|
369
375
|
return request(signal);
|
|
370
376
|
}
|
|
371
|
-
function beatSnapper(signal
|
|
377
|
+
function beatSnapper(signal) {
|
|
372
378
|
const measured3 = rhythm(signal).beats.times;
|
|
373
|
-
|
|
374
|
-
return snapper(measured3, period / 4, "signal beats");
|
|
375
|
-
}
|
|
376
|
-
function snappedBeats(signal, body) {
|
|
377
|
-
const times = body.beats.times;
|
|
378
|
-
const onBeat2 = beatSnapper(signal, medianInterval(times));
|
|
379
|
-
return { times: rounded(times.map(onBeat2.snap)), snap: onBeat2.report() };
|
|
380
|
-
}
|
|
381
|
-
function snappedDownbeats(signal, body) {
|
|
382
|
-
const { times, meter = null } = body.downbeats;
|
|
383
|
-
const beat = body.beats ? medianInterval(body.beats.times) : null;
|
|
384
|
-
const bar = medianInterval(times);
|
|
385
|
-
const onBeat2 = beatSnapper(signal, beat ?? (bar && meter ? bar / meter : null));
|
|
386
|
-
return { times: rounded(times.map(onBeat2.snap)), meter, snap: onBeat2.report() };
|
|
379
|
+
return snapper(measured3, (medianInterval(measured3) ?? 0) / 4, "signal beats");
|
|
387
380
|
}
|
|
388
381
|
function snappedSections(signal, body) {
|
|
389
|
-
const onBeat2 = beatSnapper(signal
|
|
382
|
+
const onBeat2 = beatSnapper(signal);
|
|
390
383
|
const end = (signal.channels[0]?.length ?? 0) / signal.sampleRate;
|
|
391
384
|
const move = (t) => t <= 0 || t >= end ? t : onBeat2.snap(t);
|
|
392
385
|
const spans = body.sections.spans.map((s3) => ({
|
|
@@ -397,7 +390,7 @@ function snappedSections(signal, body) {
|
|
|
397
390
|
return { spans, snap: onBeat2.report() };
|
|
398
391
|
}
|
|
399
392
|
function measured(capability, signal, body) {
|
|
400
|
-
const value = capability === "beats" ?
|
|
393
|
+
const value = capability === "beats" ? { times: rounded(body.beats.times) } : capability === "downbeats" ? { times: rounded(body.downbeats.times), meter: body.downbeats.meter ?? null } : capability === "sections" ? snappedSections(signal, body) : body.describe;
|
|
401
394
|
return body.source ? { ...value, source: body.source } : value;
|
|
402
395
|
}
|
|
403
396
|
var API_CAPABILITIES = ["beats", "downbeats", "sections", "describe"];
|
|
@@ -724,11 +717,12 @@ async function analyzeSignal(signal, request, providers = audioAnalysisProviders
|
|
|
724
717
|
let result = ladders.get(capability);
|
|
725
718
|
if (!result) {
|
|
726
719
|
const withContext = capability === "onsets" && framing.cut;
|
|
727
|
-
|
|
720
|
+
const input = withContext ? signal : framing.windowed;
|
|
721
|
+
result = runLadder(capability, input, providers, {
|
|
728
722
|
quality,
|
|
729
723
|
provider: capability === "beats" ? beatProvider : request.provider?.[capability],
|
|
730
724
|
options: optionsFor(capability, request, analysis.analyzed)
|
|
731
|
-
});
|
|
725
|
+
}).then((answer) => settled(capability, answer, input));
|
|
732
726
|
ladders.set(capability, result);
|
|
733
727
|
}
|
|
734
728
|
return result;
|
|
@@ -751,6 +745,39 @@ function serviceHint(quality, analysis, capabilities2) {
|
|
|
751
745
|
const leftToService = (capability) => analysis.values[capability] == null && (analysis.ladder[capability] ?? []).some((s3) => s3.outcome === "excluded");
|
|
752
746
|
return quality === "local" && capabilities2.some(leftToService) ? ["a service could have answered what is missing: --quality best uploads the audio to HeyGen"] : [];
|
|
753
747
|
}
|
|
748
|
+
var DIGITAL_SILENCE_DB = -80;
|
|
749
|
+
var HEARD_LIFT = 1.5;
|
|
750
|
+
var roundTime = (t) => Math.round(t * 1e3) / 1e3;
|
|
751
|
+
function settled(capability, result, signal) {
|
|
752
|
+
if (capability !== "beats" && capability !== "downbeats") return result;
|
|
753
|
+
const value = result.value;
|
|
754
|
+
if (!value?.times) return result;
|
|
755
|
+
const beat = beatOf(capability, value, signal);
|
|
756
|
+
const onSignal = result.provenance === "signal" ? value : snappedToSignal(value, signal, beat);
|
|
757
|
+
const quiet = silence(signal, { thresholdDb: DIGITAL_SILENCE_DB });
|
|
758
|
+
const evidence = localBeatEvidence(
|
|
759
|
+
signal,
|
|
760
|
+
onSignal.times,
|
|
761
|
+
capability === "downbeats" ? beat : void 0
|
|
762
|
+
);
|
|
763
|
+
const unheard = onSignal.times.map(
|
|
764
|
+
(t, i) => quiet.some((span) => t >= span.start && t < span.end) || evidence[i].confidence < STEADY_BEAT_CONFIDENCE && evidence[i].lift < HEARD_LIFT
|
|
765
|
+
);
|
|
766
|
+
return { ...result, value: { ...onSignal, unheard } };
|
|
767
|
+
}
|
|
768
|
+
function beatOf(capability, value, signal) {
|
|
769
|
+
const interval = medianInterval(value.times);
|
|
770
|
+
const own = capability === "beats" ? interval : interval && value.meter ? interval / value.meter : null;
|
|
771
|
+
return own ?? medianInterval(rhythm(signal).beats.times) ?? 0;
|
|
772
|
+
}
|
|
773
|
+
function snappedToSignal(value, signal, beat) {
|
|
774
|
+
const onBeat2 = snapper(rhythm(signal).beats.times, beat / 4, "signal beats");
|
|
775
|
+
return {
|
|
776
|
+
...value,
|
|
777
|
+
times: value.times.map((t) => roundTime(onBeat2.snap(t))),
|
|
778
|
+
snap: onBeat2.report()
|
|
779
|
+
};
|
|
780
|
+
}
|
|
754
781
|
function tempoFromBeats(beats) {
|
|
755
782
|
const times = beats.value?.times;
|
|
756
783
|
return { ...beats, value: times ? tempoOf(times) : null };
|
|
@@ -856,8 +883,8 @@ function loudnessLine(loudness2, at) {
|
|
|
856
883
|
const clip = count && firstAt !== null ? `, clips ${count}\xD7 from ${at(firstAt)}` : "";
|
|
857
884
|
return ` loudness ${lufs2}, true peak ${loudness2.truePeakDb} dBTP${clip}`;
|
|
858
885
|
}
|
|
859
|
-
function silenceLine(
|
|
860
|
-
return
|
|
886
|
+
function silenceLine(silence2, at) {
|
|
887
|
+
return silence2.length ? ` silent ${silence2.map((g) => `${at(g.start)}\u2013${at(g.end)}`).join(" ")}` : null;
|
|
861
888
|
}
|
|
862
889
|
function snapNote(snap) {
|
|
863
890
|
if (!snap) return "";
|
|
@@ -1007,6 +1034,8 @@ var round5 = (t) => Math.round(t * 1e3) / 1e3;
|
|
|
1007
1034
|
var EDGE_CONTEXT_SECONDS = 0.1;
|
|
1008
1035
|
var KIND_SAMPLE_RATE = 16e3;
|
|
1009
1036
|
var KIND_DECODE_BYTES = 256 * 1024 * 1024;
|
|
1037
|
+
var RHYTHM_SAMPLE_RATE = 22050;
|
|
1038
|
+
var RHYTHM = ["beats", "downbeats", "bpm", "sections"];
|
|
1010
1039
|
async function previewTarget(path, file, at, mediaStart = 0) {
|
|
1011
1040
|
if (at === null) return { path, file, ref: null, kind: "file", placement: null };
|
|
1012
1041
|
const stream = existsSync3(path) ? await probeAudio(path) : null;
|
|
@@ -1088,11 +1117,11 @@ function clipKindRate(target, stream) {
|
|
|
1088
1117
|
const bytes = seconds * stream.sampleRate * stream.channels * 4;
|
|
1089
1118
|
return bytes <= KIND_DECODE_BYTES ? stream.sampleRate : Math.min(stream.sampleRate, KIND_SAMPLE_RATE);
|
|
1090
1119
|
}
|
|
1091
|
-
async function clipKindSignal(target, stream, sampleRate, windowSignal) {
|
|
1120
|
+
async function clipKindSignal(target, stream, sampleRate, windowSignal, purpose = "kind") {
|
|
1092
1121
|
if (windowSignal) return windowSignal;
|
|
1093
1122
|
const seconds = Math.min(target.clip.seconds, Math.max(0, stream.duration - target.clip.from));
|
|
1094
1123
|
if (seconds * sampleRate * stream.channels * 4 > KIND_DECODE_BYTES)
|
|
1095
|
-
throw new Error(
|
|
1124
|
+
throw new Error(`whole clip exceeds the ${purpose} analysis decode limit`);
|
|
1096
1125
|
return (await decodeAudio(target.path, target.clip, stream, { sampleRate }))?.signal;
|
|
1097
1126
|
}
|
|
1098
1127
|
async function clipKind(target, request, stream, cache, windowSignal) {
|
|
@@ -1112,30 +1141,117 @@ async function clipKind(target, request, stream, cache, windowSignal) {
|
|
|
1112
1141
|
cacheKindAnalysis(file, analysis);
|
|
1113
1142
|
return analysis;
|
|
1114
1143
|
}
|
|
1115
|
-
async function
|
|
1116
|
-
const kindApart = request.capabilities.includes("kind") && target.clip !== void 0;
|
|
1117
|
-
if (!kindApart) return analyzeSignal(signal, request);
|
|
1118
|
-
const analysis = await analyzeSignal(signal, {
|
|
1119
|
-
...request,
|
|
1120
|
-
capabilities: request.capabilities.filter((capability) => capability !== "kind")
|
|
1121
|
-
});
|
|
1122
|
-
let kind;
|
|
1144
|
+
async function wholeClipKind(target, signal, request, stream, cache) {
|
|
1123
1145
|
try {
|
|
1124
|
-
kind = await clipKind(
|
|
1146
|
+
const kind = await clipKind(
|
|
1147
|
+
target,
|
|
1148
|
+
request,
|
|
1149
|
+
stream,
|
|
1150
|
+
cache,
|
|
1151
|
+
coversPart(target) ? void 0 : signal
|
|
1152
|
+
);
|
|
1125
1153
|
if (!kind) throw new Error("no audio stream");
|
|
1154
|
+
return kind;
|
|
1126
1155
|
} catch (error) {
|
|
1127
|
-
kind = await analyzeSignal(signal, { ...request, capabilities: ["kind"] });
|
|
1128
|
-
const reason = error instanceof Error ? error.message.split("\n")[0] : String(error);
|
|
1156
|
+
const kind = await analyzeSignal(signal, { ...request, capabilities: ["kind"] });
|
|
1129
1157
|
kind.warnings.push(
|
|
1130
|
-
`kind uses only the selected range: could not analyze the whole clip (${
|
|
1158
|
+
`kind uses only the selected range: could not analyze the whole clip (${firstLine2(error)})`
|
|
1159
|
+
);
|
|
1160
|
+
return kind;
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
var firstLine2 = (error) => error instanceof Error ? error.message.split("\n")[0] : String(error);
|
|
1164
|
+
var between = (from, to) => (t) => t >= from && t < to;
|
|
1165
|
+
function beatsBetween(value, from, to) {
|
|
1166
|
+
const keep = value.times.map(between(from, to));
|
|
1167
|
+
return {
|
|
1168
|
+
...value,
|
|
1169
|
+
times: value.times.filter((_, i) => keep[i]),
|
|
1170
|
+
unheard: value.unheard.filter((_, i) => keep[i])
|
|
1171
|
+
};
|
|
1172
|
+
}
|
|
1173
|
+
var PULSE_BEATS = 2;
|
|
1174
|
+
var heardTimes = (beats) => beats.times.filter((_, i) => !beats.unheard[i]);
|
|
1175
|
+
var CUTS = {
|
|
1176
|
+
beats: (_value, { beats, pulse }) => pulse ? beats : { times: [], unheard: [], confidence: 0, reason: "no steady beat" },
|
|
1177
|
+
downbeats: (value, { from, to, pulse }) => pulse ? beatsBetween(value, from, to) : { times: [], unheard: [], meter: null, confidence: "low" },
|
|
1178
|
+
bpm: (value, { from, to, beats, pulse }) => pulse && beats ? {
|
|
1179
|
+
value: tempoOf(heardTimes(beats)).value,
|
|
1180
|
+
curve: value.curve.filter((point) => between(from, to)(point.t))
|
|
1181
|
+
} : { value: null, curve: [] },
|
|
1182
|
+
sections: (value, { from, to }) => {
|
|
1183
|
+
const sections = value;
|
|
1184
|
+
return { ...sections, spans: sections.spans.filter((s3) => s3.end > from && s3.start < to) };
|
|
1185
|
+
}
|
|
1186
|
+
};
|
|
1187
|
+
var beatsIn = (values, from, to) => values.beats ? beatsBetween(values.beats, from, to) : null;
|
|
1188
|
+
var pulseIn = (beats) => !!beats && heardTimes(beats).length >= Math.max(PULSE_BEATS, beats.times.length / 2);
|
|
1189
|
+
function rhythmBetween(values, asked, from, to) {
|
|
1190
|
+
const beats = beatsIn(values, from, to);
|
|
1191
|
+
const window = { from, to, beats, pulse: pulseIn(beats) };
|
|
1192
|
+
return Object.fromEntries(
|
|
1193
|
+
asked.map((capability) => {
|
|
1194
|
+
const value = values[capability];
|
|
1195
|
+
return [capability, value == null ? value : CUTS[capability]?.(value, window) ?? value];
|
|
1196
|
+
})
|
|
1197
|
+
);
|
|
1198
|
+
}
|
|
1199
|
+
async function wholeClipRhythm(target, signal, request, stream) {
|
|
1200
|
+
const asked = request.capabilities.filter((capability) => RHYTHM.includes(capability));
|
|
1201
|
+
try {
|
|
1202
|
+
const rate = Math.min(stream.sampleRate, RHYTHM_SAMPLE_RATE);
|
|
1203
|
+
const clip = await clipKindSignal(target, stream, rate, void 0, "rhythm");
|
|
1204
|
+
if (!clip) throw new Error("no audio stream");
|
|
1205
|
+
const needsBeats = asked.some((c) => c === "bpm" || c === "downbeats");
|
|
1206
|
+
const measure = needsBeats && !asked.includes("beats") ? [...asked, "beats"] : asked;
|
|
1207
|
+
const whole = await analyzeSignal(clip, {
|
|
1208
|
+
...request,
|
|
1209
|
+
capabilities: measure,
|
|
1210
|
+
fileOffset: target.clip.from,
|
|
1211
|
+
context: void 0
|
|
1212
|
+
});
|
|
1213
|
+
const from = request.fileOffset ?? 0;
|
|
1214
|
+
const to = from + target.window.seconds;
|
|
1215
|
+
const cut = rhythmBetween(whole.values, asked, from, to);
|
|
1216
|
+
const beatAnswers = asked.filter((capability) => capability !== "sections");
|
|
1217
|
+
if (!beatAnswers.length || pulseIn(beatsIn(whole.values, from, to)))
|
|
1218
|
+
return { ...whole, values: cut };
|
|
1219
|
+
const own = await analyzeSignal(signal, { ...request, capabilities: beatAnswers });
|
|
1220
|
+
return {
|
|
1221
|
+
...own,
|
|
1222
|
+
values: { ...cut, ...own.values },
|
|
1223
|
+
provenance: { ...whole.provenance, ...own.provenance },
|
|
1224
|
+
ladder: { ...whole.ladder, ...own.ladder },
|
|
1225
|
+
warnings: [.../* @__PURE__ */ new Set([...whole.warnings, ...own.warnings])]
|
|
1226
|
+
};
|
|
1227
|
+
} catch (error) {
|
|
1228
|
+
const rhythm2 = await analyzeSignal(signal, { ...request, capabilities: asked });
|
|
1229
|
+
rhythm2.warnings.push(
|
|
1230
|
+
`beats, bars and sections use only the selected range: could not analyze the whole clip (${firstLine2(error)})`
|
|
1131
1231
|
);
|
|
1232
|
+
return rhythm2;
|
|
1132
1233
|
}
|
|
1234
|
+
}
|
|
1235
|
+
async function analyzeWindow(target, signal, request, stream, cache) {
|
|
1236
|
+
const kindApart = request.capabilities.includes("kind") && target.clip !== void 0;
|
|
1237
|
+
const rhythmApart = coversPart(target) && request.capabilities.some((capability) => RHYTHM.includes(capability));
|
|
1238
|
+
if (!kindApart && !rhythmApart) return analyzeSignal(signal, request);
|
|
1239
|
+
const apart = (capability) => kindApart && capability === "kind" || rhythmApart && RHYTHM.includes(capability);
|
|
1240
|
+
const parts = [
|
|
1241
|
+
await analyzeSignal(signal, {
|
|
1242
|
+
...request,
|
|
1243
|
+
capabilities: request.capabilities.filter((capability) => !apart(capability))
|
|
1244
|
+
}),
|
|
1245
|
+
...kindApart ? [await wholeClipKind(target, signal, request, stream, cache)] : [],
|
|
1246
|
+
...rhythmApart ? [await wholeClipRhythm(target, signal, request, stream)] : []
|
|
1247
|
+
];
|
|
1248
|
+
const [window] = parts;
|
|
1133
1249
|
return {
|
|
1134
|
-
...
|
|
1135
|
-
values: { ...
|
|
1136
|
-
provenance: { ...
|
|
1137
|
-
ladder: { ...
|
|
1138
|
-
warnings: [
|
|
1250
|
+
...window,
|
|
1251
|
+
values: Object.assign({}, ...parts.map((part) => part.values)),
|
|
1252
|
+
provenance: Object.assign({}, ...parts.map((part) => part.provenance)),
|
|
1253
|
+
ladder: Object.assign({}, ...parts.map((part) => part.ladder)),
|
|
1254
|
+
warnings: [...new Set(parts.flatMap((part) => part.warnings))]
|
|
1139
1255
|
};
|
|
1140
1256
|
}
|
|
1141
1257
|
async function analyzeTarget(target, request, full, cacheDir) {
|
|
@@ -1837,10 +1953,10 @@ function runs(db) {
|
|
|
1837
1953
|
const merged = candidates(quiet, 0, db.length).flatMap(
|
|
1838
1954
|
(span) => span.quiet && !holdsUp(db, span) ? silencesIn(db, span) : [span]
|
|
1839
1955
|
);
|
|
1840
|
-
const
|
|
1956
|
+
const settled2 = joined(merged, (s3) => !s3.quiet && s3.end - s3.start < SHORTEST_SEGMENT);
|
|
1841
1957
|
return {
|
|
1842
|
-
segments:
|
|
1843
|
-
breaks:
|
|
1958
|
+
segments: settled2.filter((s3) => !s3.quiet),
|
|
1959
|
+
breaks: settled2.filter((s3) => s3.quiet && s3.start > 0 && s3.end < db.length * HOP2)
|
|
1844
1960
|
};
|
|
1845
1961
|
}
|
|
1846
1962
|
function soundShare(fine, run) {
|
|
@@ -51,10 +51,10 @@ ${c.bold("ENV VARS:")}
|
|
|
51
51
|
var auth_default = defineCommand({
|
|
52
52
|
meta: { name: "auth", description: "Sign in to HeyGen and manage credentials" },
|
|
53
53
|
subCommands: {
|
|
54
|
-
login: () => import("./login-
|
|
55
|
-
status: () => import("./status-
|
|
56
|
-
logout: () => import("./logout-
|
|
57
|
-
refresh: () => import("./refresh-
|
|
54
|
+
login: () => import("./login-ABDL65L6.js").then((m) => m.default),
|
|
55
|
+
status: () => import("./status-TJFZFDGS.js").then((m) => m.default),
|
|
56
|
+
logout: () => import("./logout-CXGSSQ4Q.js").then((m) => m.default),
|
|
57
|
+
refresh: () => import("./refresh-VJ4FQVH2.js").then((m) => m.default)
|
|
58
58
|
},
|
|
59
59
|
async run({ args }) {
|
|
60
60
|
if (!args._?.[0]) console.log(HELP);
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
detectInstaller,
|
|
13
13
|
installInvocation,
|
|
14
14
|
updateCheckDisabled
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-U54ZBLTF.js";
|
|
16
|
+
import "./chunk-BR2JQQC5.js";
|
|
17
17
|
import {
|
|
18
18
|
readConfig,
|
|
19
19
|
withFileLock,
|
|
@@ -25,7 +25,8 @@ import "./chunk-DP5LF7GF.js";
|
|
|
25
25
|
import {
|
|
26
26
|
isUnattended
|
|
27
27
|
} from "./chunk-J3RXEDR2.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QBXDU24O.js";
|
|
29
|
+
import "./chunk-VPA5YKEY.js";
|
|
29
30
|
import "./chunk-E63BDV4Z.js";
|
|
30
31
|
import "./chunk-G7VEYUZ2.js";
|
|
31
32
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
skillsCheckDue
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4MWUMT3T.js";
|
|
10
10
|
import {
|
|
11
11
|
updateCheckDue
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-U54ZBLTF.js";
|
|
13
|
+
import "./chunk-BR2JQQC5.js";
|
|
14
14
|
import {
|
|
15
15
|
readConfig,
|
|
16
16
|
readConfigFresh,
|
|
@@ -20,7 +20,8 @@ import "./chunk-ISN5GRYI.js";
|
|
|
20
20
|
import "./chunk-SJGE5I5F.js";
|
|
21
21
|
import "./chunk-DP5LF7GF.js";
|
|
22
22
|
import "./chunk-J3RXEDR2.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-QBXDU24O.js";
|
|
24
|
+
import "./chunk-VPA5YKEY.js";
|
|
24
25
|
import "./chunk-E63BDV4Z.js";
|
|
25
26
|
import "./chunk-G7VEYUZ2.js";
|
|
26
27
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -6,22 +6,23 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
refreshSkillsCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4MWUMT3T.js";
|
|
10
10
|
import {
|
|
11
11
|
checkForUpdate
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-U54ZBLTF.js";
|
|
13
|
+
import "./chunk-BR2JQQC5.js";
|
|
14
14
|
import "./chunk-ZCHULPJZ.js";
|
|
15
15
|
import "./chunk-ISN5GRYI.js";
|
|
16
16
|
import "./chunk-SJGE5I5F.js";
|
|
17
17
|
import "./chunk-DP5LF7GF.js";
|
|
18
18
|
import "./chunk-J3RXEDR2.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-QBXDU24O.js";
|
|
20
|
+
import "./chunk-VPA5YKEY.js";
|
|
20
21
|
import "./chunk-E63BDV4Z.js";
|
|
21
22
|
import "./chunk-G7VEYUZ2.js";
|
|
22
23
|
import "./chunk-XT6MXC7A.js";
|
|
23
24
|
import "./chunk-7KDQAD2W.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-3F2DTPBD.js";
|
|
25
26
|
import "./chunk-M2WBOQ2Q.js";
|
|
26
27
|
|
|
27
28
|
// src/backgroundChecksWorker.ts
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
loadProjectVariableSchema,
|
|
9
9
|
reportVariableIssues,
|
|
10
10
|
validateVariablesAgainstSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4YIKQM4K.js";
|
|
12
12
|
import "./chunk-ZBAF6L74.js";
|
|
13
13
|
import "./chunk-XFMO3BEN.js";
|
|
14
14
|
import {
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
c
|
|
19
19
|
} from "./chunk-2GICKZ3I.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-DYHAZFK3.js";
|
|
21
|
+
import "./chunk-IVRKWQTX.js";
|
|
22
22
|
import "./chunk-VC76R6W2.js";
|
|
23
23
|
import "./chunk-OFQWTKPW.js";
|
|
24
24
|
import "./chunk-RQVDTPGD.js";
|
|
25
25
|
import "./chunk-634HSJ3J.js";
|
|
26
26
|
import "./chunk-FXMKHHPO.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-KSC4O2RY.js";
|
|
28
28
|
import "./chunk-NHA4NRBE.js";
|
|
29
29
|
import "./chunk-FR7YBU3H.js";
|
|
30
30
|
import "./chunk-DPVXBVLL.js";
|
|
@@ -9,17 +9,19 @@ import {
|
|
|
9
9
|
finish,
|
|
10
10
|
rhythmSteps,
|
|
11
11
|
tempoOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NOH32H42.js";
|
|
13
13
|
import {
|
|
14
14
|
decodeAudio
|
|
15
15
|
} from "./chunk-7VZEOCUY.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveProject
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RIGQABEL.js";
|
|
19
19
|
import "./chunk-5ZBMHUY2.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-QGMRSNG5.js";
|
|
21
|
+
import "./chunk-TQSKEMSL.js";
|
|
22
|
+
import "./chunk-PXVQOMKL.js";
|
|
22
23
|
import "./chunk-EQGKUPBJ.js";
|
|
24
|
+
import "./chunk-4WEWHZZO.js";
|
|
23
25
|
import {
|
|
24
26
|
defineCommand
|
|
25
27
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -29,11 +31,11 @@ import {
|
|
|
29
31
|
c
|
|
30
32
|
} from "./chunk-2GICKZ3I.js";
|
|
31
33
|
import "./chunk-D3MUHMFG.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-Q3OKLJ34.js";
|
|
35
|
+
import "./chunk-DYHAZFK3.js";
|
|
34
36
|
import {
|
|
35
37
|
parseHTMLContent
|
|
36
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-IVRKWQTX.js";
|
|
37
39
|
import "./chunk-VC76R6W2.js";
|
|
38
40
|
import {
|
|
39
41
|
isSafePath,
|
|
@@ -42,12 +44,12 @@ import {
|
|
|
42
44
|
import "./chunk-RQVDTPGD.js";
|
|
43
45
|
import "./chunk-634HSJ3J.js";
|
|
44
46
|
import "./chunk-FXMKHHPO.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-LAGZGKKN.js";
|
|
48
|
+
import "./chunk-JF3RF6GS.js";
|
|
47
49
|
import "./chunk-CZGHFATT.js";
|
|
48
50
|
import "./chunk-VAS6HQX3.js";
|
|
49
51
|
import "./chunk-PBNWRWKA.js";
|
|
50
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-KSC4O2RY.js";
|
|
51
53
|
import {
|
|
52
54
|
decodeAuthoredAttribute,
|
|
53
55
|
decodedUrlPath,
|
|
@@ -60,8 +62,8 @@ import "./chunk-GWTIFRF5.js";
|
|
|
60
62
|
import "./chunk-2RY2LWAA.js";
|
|
61
63
|
import "./chunk-3422KMTD.js";
|
|
62
64
|
import "./chunk-WC4MTXGN.js";
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-FBN2M2HK.js";
|
|
66
|
+
import "./chunk-BR2JQQC5.js";
|
|
65
67
|
import "./chunk-ZCHULPJZ.js";
|
|
66
68
|
import "./chunk-ISN5GRYI.js";
|
|
67
69
|
import "./chunk-SJGE5I5F.js";
|
|
@@ -69,7 +71,8 @@ import {
|
|
|
69
71
|
failCommand
|
|
70
72
|
} from "./chunk-DP5LF7GF.js";
|
|
71
73
|
import "./chunk-J3RXEDR2.js";
|
|
72
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-QBXDU24O.js";
|
|
75
|
+
import "./chunk-VPA5YKEY.js";
|
|
73
76
|
import "./chunk-E63BDV4Z.js";
|
|
74
77
|
import "./chunk-G7VEYUZ2.js";
|
|
75
78
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -228,13 +231,10 @@ function findMusicSrc(html) {
|
|
|
228
231
|
});
|
|
229
232
|
return findMusicAudioSrc(document.toString());
|
|
230
233
|
}
|
|
234
|
+
var NO_MUSIC_TRACK = 'No music track found. Add data-timeline-role="music" to the <audio> element, or to a <video data-has-audio="true"> whose own sound is the music (or give it an id like music/bgm/soundtrack).';
|
|
231
235
|
function resolveMusicTarget(project) {
|
|
232
236
|
const src = findMusicSrc(readFileSync(project.indexPath, "utf-8"));
|
|
233
|
-
if (!src)
|
|
234
|
-
fail(
|
|
235
|
-
'No music track found. Add data-timeline-role="music" to the <audio> element, or to a <video data-has-audio="true"> whose own sound is the music (or give it an id like music/bgm/soundtrack).'
|
|
236
|
-
);
|
|
237
|
-
}
|
|
237
|
+
if (!src) return null;
|
|
238
238
|
const rel = audioRelPathForSrc(src);
|
|
239
239
|
if (!rel) fail(`Cannot derive a beat-file path for music src: ${src}`);
|
|
240
240
|
const audioPath = resolveWithinProject(project.dir, rel);
|
|
@@ -242,6 +242,10 @@ function resolveMusicTarget(project) {
|
|
|
242
242
|
if (!existsSync(audioPath)) fail(`Audio file not found: ${rel}`);
|
|
243
243
|
return { rel, audioPath };
|
|
244
244
|
}
|
|
245
|
+
function answerNoTrack(json) {
|
|
246
|
+
if (!json) fail(NO_MUSIC_TRACK);
|
|
247
|
+
console.log(JSON.stringify({ ok: true, track: null, file: null, count: 0, bpm: null }, null, 2));
|
|
248
|
+
}
|
|
245
249
|
async function decode(audioPath) {
|
|
246
250
|
try {
|
|
247
251
|
const decoded = await decodeAudio(audioPath);
|
|
@@ -281,7 +285,9 @@ var beats_default = defineCommand({
|
|
|
281
285
|
);
|
|
282
286
|
}
|
|
283
287
|
const project = resolveProject(args.dir);
|
|
284
|
-
const
|
|
288
|
+
const target = resolveMusicTarget(project);
|
|
289
|
+
if (!target) return answerNoTrack(Boolean(args.json));
|
|
290
|
+
const { rel, audioPath } = target;
|
|
285
291
|
if (!args.json) console.log(c.dim(`Analyzing ${rel}\u2026`));
|
|
286
292
|
const result = await analyzeMusicFromSignal(await decode(audioPath));
|
|
287
293
|
if (result.beatTimes.length === 0) {
|