hyperframes 0.8.222 → 0.8.224
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-6MPLIWVP.js → add-JEPKJ2F4.js} +15 -15
- package/dist/{agentPromptGenerator-X7SQPCXZ.js → agentPromptGenerator-ZBNWLX5D.js} +7 -7
- package/dist/{animatedGifPrep-ESOJ4FQ7.js → animatedGifPrep-43LLMTN5.js} +7 -7
- package/dist/api.d.ts +5 -3
- package/dist/api.js +33 -22
- package/dist/{asset-Y735VQV6.js → asset-M6SH6PUW.js} +5 -5
- package/dist/{assetCataloger-AOJAUEZW.js → assetCataloger-BLQ7UVJ5.js} +8 -8
- package/dist/{audio-VMMCGPOV.js → audio-J3QREJK4.js} +150 -1158
- package/dist/{auth-BD5NHYRA.js → auth-7TRCBCKA.js} +5 -5
- package/dist/{autoUpdate-VTMNHOAJ.js → autoUpdate-WTFSYLTK.js} +4 -4
- package/dist/{backgroundChecks-SUDYQZSW.js → backgroundChecks-YZW7AMMJ.js} +5 -5
- package/dist/backgroundChecksWorker.js +5 -5
- package/dist/{batchRender-4NR7RMT7.js → batchRender-LDZ6NO2X.js} +11 -11
- package/dist/{beats-PKEHQHBY.js → beats-JWUADKHV.js} +14 -14
- package/dist/{benchmark-K55DDFHG.js → benchmark-QOQZ7UGD.js} +13 -13
- package/dist/billing-3GVNEE56.js +86 -0
- package/dist/{browser-G2WFWJJ3.js → browser-4HNCSPUR.js} +8 -8
- package/dist/{bundleWithLocalizedFonts-MNG2UVH3.js → bundleWithLocalizedFonts-GTKHB45M.js} +2 -2
- package/dist/{capture-24PIC3TZ.js → capture-5OYZNIOR.js} +31 -31
- package/dist/{capture-U3EEAPI6.js → capture-XSRWYHAM.js} +7 -7
- package/dist/{captureCompositionFrame-KL4V6ORD.js → captureCompositionFrame-4F7PPQKB.js} +17 -17
- package/dist/{captureTimeout-RIMG6IYH.js → captureTimeout-7Y2RUBCU.js} +3 -1
- package/dist/{catalog-J3BU4TFW.js → catalog-4FVQSID5.js} +16 -16
- package/dist/{catch-up-LDGNMEGL.js → catch-up-KQVK2QZC.js} +8 -8
- package/dist/{check-J6HG6EKE.js → check-3YHLB6FM.js} +47 -46
- package/dist/{checkAudio-MAX7JUYG.js → checkAudio-7ZSZVBSJ.js} +15 -15
- package/dist/{checkBrowser-3W74WJ26.js → checkBrowser-VX5CHNQS.js} +40 -39
- package/dist/{chunk-L55LAERP.js → chunk-2KDHJCH2.js} +2 -2
- package/dist/{chunk-CVY6OIKN.js → chunk-2M6B2JKZ.js} +73 -39
- package/dist/{chunk-OROHGC7W.js → chunk-2QQO3J3B.js} +7 -7
- package/dist/chunk-2WVQ3CCN.js +113 -0
- package/dist/{chunk-RRPO44PE.js → chunk-34GAW4GO.js} +5 -5
- package/dist/{chunk-WWT6ETQA.js → chunk-35NDLXHZ.js} +50 -55
- package/dist/{chunk-YHL4CVTF.js → chunk-3NHCTTLP.js} +15 -15
- package/dist/chunk-3ZDOAVZM.js +570 -0
- package/dist/{chunk-6ZLDIMPL.js → chunk-4H4DR36N.js} +2 -2
- package/dist/{chunk-IB7UYGXR.js → chunk-4ZAOAPWP.js} +17 -11
- package/dist/{chunk-GOWU3NCE.js → chunk-52B3AOIV.js} +1 -1
- package/dist/{chunk-F6QV5N3A.js → chunk-53JEHQBW.js} +2 -2
- package/dist/{chunk-YEKJOA47.js → chunk-53TKUWDX.js} +3 -3
- package/dist/{chunk-6MUI2H6P.js → chunk-54Q3H2UQ.js} +5 -2
- package/dist/chunk-5KAGTSLY.js +205 -0
- package/dist/{chunk-5ZBMHUY2.js → chunk-5LOZWO2M.js} +1 -1
- package/dist/{chunk-DSHFKKSZ.js → chunk-5N5FYE5K.js} +2 -2
- package/dist/{chunk-ZBNK6X5O.js → chunk-652ERUZD.js} +2 -2
- package/dist/{chunk-DP5LF7GF.js → chunk-66W5IWLO.js} +12 -0
- package/dist/{chunk-JQWITWVC.js → chunk-6QIYQ43G.js} +2 -2
- package/dist/chunk-6UWSEXQ3.js +5030 -0
- package/dist/{chunk-35JKCWYI.js → chunk-7HSV5SJ4.js} +3 -3
- package/dist/{chunk-3RXZZIDQ.js → chunk-7RTPHNOO.js} +2 -2
- package/dist/{chunk-6CFBFWLF.js → chunk-A25SCSOK.js} +1 -1
- package/dist/{chunk-SJGE5I5F.js → chunk-ADVVQX4I.js} +1 -1
- package/dist/{chunk-GHEYGMKD.js → chunk-AMQFGICP.js} +1 -1
- package/dist/chunk-BAXL3U3T.js +312 -0
- package/dist/{chunk-YSTBSLWY.js → chunk-BEMGUGGJ.js} +1 -1
- package/dist/chunk-BTK3T4HJ.js +250 -0
- package/dist/{chunk-UBDO4EHA.js → chunk-C5JKRCSG.js} +1 -1
- package/dist/{chunk-ZLXWRYOO.js → chunk-CGX4EOGT.js} +3 -3
- package/dist/{chunk-ZPTNLDOB.js → chunk-D4M37ATV.js} +2 -2
- package/dist/chunk-DY7PQLIE.js +248 -0
- package/dist/{chunk-DNTPNSH5.js → chunk-E2ZY4GWH.js} +5 -5
- package/dist/{chunk-QYRMR45H.js → chunk-E47ZWDMH.js} +1 -1
- package/dist/{chunk-EGJ4UECR.js → chunk-EHZESMRB.js} +8 -2
- package/dist/{chunk-VJVVWYP6.js → chunk-EQFDOQTG.js} +1 -1
- package/dist/{chunk-42Q3VX34.js → chunk-F34GYYXO.js} +5 -5
- package/dist/{chunk-7IH3RSSG.js → chunk-F3CTUCFD.js} +12 -12
- package/dist/chunk-F7T57BZZ.js +95 -0
- package/dist/{chunk-BDZSH6P3.js → chunk-FJ3KUOUZ.js} +1 -1
- package/dist/{chunk-7KBS6ZLB.js → chunk-FPR57WRR.js} +2 -2
- package/dist/{chunk-BPIY5LB3.js → chunk-G45NYKSM.js} +39 -4
- package/dist/{chunk-AXVTL7B6.js → chunk-GE4ABM5K.js} +2 -2
- package/dist/{chunk-HQDHMAUI.js → chunk-GLTSINRP.js} +1 -1
- package/dist/chunk-GQ2QER6M.js +70 -0
- package/dist/{chunk-Y7IV5MAK.js → chunk-H6APAFKE.js} +2 -2
- package/dist/{chunk-5GSEM63G.js → chunk-HANNA5JJ.js} +1 -1
- package/dist/{chunk-RIGSGNDQ.js → chunk-HDPW7THH.js} +30 -21
- package/dist/{chunk-L37AZWB2.js → chunk-HIPW4JXL.js} +3 -3
- package/dist/{chunk-VQMHDS2V.js → chunk-HT3D5AKG.js} +52 -12
- package/dist/{chunk-K5UCRKUK.js → chunk-IORJ42GY.js} +2 -2
- package/dist/{chunk-OAXWHPNS.js → chunk-IYYQRNIZ.js} +1 -1
- package/dist/{chunk-G675S644.js → chunk-J7FVF73D.js} +33 -31
- package/dist/{chunk-S2HWGG5O.js → chunk-JHOPRAJN.js} +1 -1
- package/dist/{chunk-WJYFJGYT.js → chunk-JIF347PW.js} +3 -3
- package/dist/{chunk-XHD7RKEZ.js → chunk-JK2KNL6F.js} +2 -2
- package/dist/{chunk-CZOC7WY7.js → chunk-JKLWWGE6.js} +1 -1
- package/dist/{chunk-SKCS4SUZ.js → chunk-JMP52GTN.js} +44 -19
- package/dist/chunk-JUF43Q7Q.js +59 -0
- package/dist/chunk-K3QT232E.js +71 -0
- package/dist/chunk-KEDN4LSV.js +1048 -0
- package/dist/{chunk-G2EY3MVW.js → chunk-L4ULTWCD.js} +1 -1
- package/dist/{chunk-7D2LTSNV.js → chunk-LRS4FV5W.js} +3 -3
- package/dist/{chunk-VMRQDPFL.js → chunk-M336YVCP.js} +1 -1
- package/dist/{chunk-6W3DY5BP.js → chunk-MA5AQK7T.js} +2 -2
- package/dist/{chunk-EQGKUPBJ.js → chunk-MCDNAIFF.js} +1 -1
- package/dist/{chunk-EOUKB53E.js → chunk-MOXNAVCW.js} +1 -1
- package/dist/{chunk-AIXH3V5A.js → chunk-NFUR6NNT.js} +20 -5
- package/dist/{chunk-AN4USOFT.js → chunk-NI35PAVN.js} +2 -2
- package/dist/{chunk-E5IIR67Q.js → chunk-O2VKGYSK.js} +1 -1
- package/dist/chunk-ODJ2WBZX.js +288 -0
- package/dist/{chunk-52VXA3SC.js → chunk-OZMZFJDW.js} +1 -1
- package/dist/{chunk-EE7YWKDY.js → chunk-PKMAWQUI.js} +4 -4
- package/dist/{chunk-D6LGD472.js → chunk-POOLZTMZ.js} +6 -4
- package/dist/chunk-QK6ZNEBW.js +46 -0
- package/dist/{chunk-NUE44RN2.js → chunk-QOI46C6F.js} +17 -4
- package/dist/{chunk-MESSJFK3.js → chunk-QOYZ3U6G.js} +39 -29
- package/dist/{chunk-ZAJQFY5Q.js → chunk-QU5OYMTB.js} +15 -2
- package/dist/{chunk-HOTXWVVP.js → chunk-R2C5EON5.js} +2 -6
- package/dist/{chunk-FMKI7ZLM.js → chunk-RR5QE7DB.js} +2 -2
- package/dist/{chunk-OQLYKDL5.js → chunk-RU7KMDFL.js} +1 -1
- package/dist/{chunk-ONMTNYGR.js → chunk-RXJUMVCA.js} +1 -1
- package/dist/chunk-RZ6CXJ56.js +24 -0
- package/dist/{chunk-GODT7QDZ.js → chunk-SGMCQAYU.js} +3 -3
- package/dist/{chunk-QOZPWIYV.js → chunk-THL3N377.js} +19 -16
- package/dist/{chunk-IGBOFU2Y.js → chunk-UCPEABYK.js} +2 -2
- package/dist/{chunk-AOHG22HQ.js → chunk-UZ5AWZCA.js} +6 -6
- package/dist/{chunk-4VEXJTUT.js → chunk-VCJE7IMY.js} +2 -2
- package/dist/{chunk-Z5VQBRU2.js → chunk-VPMHRLJH.js} +3 -3
- package/dist/{chunk-FT3CNACL.js → chunk-VXRBPWVW.js} +144 -41
- package/dist/{chunk-537WSYHU.js → chunk-W7MJPKBJ.js} +1 -1
- package/dist/{chunk-26AQTUU4.js → chunk-WJD3GVAA.js} +1 -1
- package/dist/{chunk-DS372VSV.js → chunk-WW7Z2W73.js} +2 -2
- package/dist/{chunk-DC26QLB7.js → chunk-X5BSSPC2.js} +1 -1
- package/dist/{chunk-DIXTEVWQ.js → chunk-Y5HVDK7X.js} +3 -3
- package/dist/{chunk-EHSBBBR2.js → chunk-YGGZ23BB.js} +2 -0
- package/dist/{chunk-NHXGFQWQ.js → chunk-Z7GIHPAZ.js} +1 -1
- package/dist/{chunk-XC3BGWCJ.js → chunk-ZFQSXMX6.js} +1 -1
- package/dist/{chunk-P5M3AXEP.js → chunk-ZGQC6IU7.js} +1 -1
- package/dist/{chunk-KEY2VA65.js → chunk-ZLZXGJ63.js} +6 -20
- package/dist/{clean-K6IM3LC4.js → clean-SXEI6FT4.js} +24 -24
- package/dist/cli.js +73 -63
- package/dist/{cloud-OV7EA4BJ.js → cloud-SKN6FWAZ.js} +4 -4
- package/dist/{cloudrun-ZEMODIOP.js → cloudrun-RHPVVXCR.js} +9 -9
- package/dist/{compare-MJZ3D3HA.js → compare-RTXF2NSK.js} +36 -36
- package/dist/{compiler-6KKETX77.js → compiler-SKRY6FPA.js} +4 -4
- package/dist/{component-EVXMYIP3.js → component-2NPF5PA6.js} +6 -6
- package/dist/{compositions-PZ7FQ7WN.js → compositions-AZRVHGBT.js} +17 -17
- package/dist/curve-QSFEGBUH.js +329 -0
- package/dist/cuts-6AWEJH2H.js +123 -0
- package/dist/{delete-DL3XA4QV.js → delete-NOHFVICL.js} +9 -9
- package/dist/{deploy-VEYP3IP5.js → deploy-UFRADJOA.js} +10 -10
- package/dist/describeProject-F43LI3YQ.js +56 -0
- package/dist/{destroy-BQ5R7LUF.js → destroy-IQLGADZM.js} +6 -6
- package/dist/diff-3WS6NMSE.js +1825 -0
- package/dist/{dist-SHMQOKMF.js → dist-24QQO5IL.js} +2 -2
- package/dist/{dist-M77KFAYW.js → dist-YEYUGCOR.js} +2 -2
- package/dist/{docs-VAF5NM5B.js → docs-IB3KETC6.js} +1 -1
- package/dist/{doctor-JM2WHH7Y.js → doctor-F4VJYQXC.js} +13 -13
- package/dist/energy-BN3QD6Y7.js +134 -0
- package/dist/events-5W7ETFWR.js +221 -0
- package/dist/{events-GW5I5RCG.js → events-PZH4C7VA.js} +5 -5
- package/dist/{events-S7KVBRSL.js → events-YJ3XSIPL.js} +6 -6
- package/dist/extract-S34DWGAD.js +309 -0
- package/dist/face-3SCJADG4.js +171 -0
- package/dist/{feedback-7OR5FVTX.js → feedback-3K6NSKIC.js} +16 -16
- package/dist/{ffmpeg-A7CSIX3U.js → ffmpeg-2RBDDMHU.js} +7 -7
- package/dist/{figma-444HKFX5.js → figma-NWAJYMAI.js} +3 -3
- package/dist/fontLocalizeCli.js +10 -10
- package/dist/frames-6UARLPLK.js +352 -0
- package/dist/generate-KBVWFVXN.js +74 -0
- package/dist/{get-6UTF3225.js → get-SEZZMLQ3.js} +8 -8
- package/dist/{gpuPolicy-ORPUS5Z2.js → gpuPolicy-VIZAJ3GY.js} +7 -7
- package/dist/{grade-compare-UCTAYN3B.js → grade-compare-PMAK4PJD.js} +40 -37
- package/dist/{heifImagePrep-ED6V6RFN.js → heifImagePrep-6NYIR7WN.js} +8 -8
- package/dist/{help-HZR32XWP.js → help-4UPSHWI2.js} +7 -1
- package/dist/{history-TQ56MZIA.js → history-VNAZEQDE.js} +11 -11
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +70 -70
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/index-gen-OPMQ5WSN.js +61 -0
- package/dist/{info-RPIIP7RN.js → info-OREET5PM.js} +11 -11
- package/dist/{init-ONAWKHFW.js → init-K7AEJBAL.js} +33 -32
- package/dist/{inspect-A75PYOWJ.js → inspect-STME5DNY.js} +37 -36
- package/dist/{installer-ISMCCFBZ.js → installer-NQA4KXRP.js} +4 -4
- package/dist/{keyframes-2I75DP3O.js → keyframes-JQWZ235Q.js} +10 -10
- package/dist/{lambda-4QIHGPGJ.js → lambda-RJNLW2EO.js} +21 -21
- package/dist/{layout-GW7WE7RT.js → layout-MTZWBPNZ.js} +37 -36
- package/dist/{lint-OWP72OZQ.js → lint-AQWTSL75.js} +12 -12
- package/dist/{lintProject-XYQ5L7RQ.js → lintProject-6H64SX3V.js} +2 -2
- package/dist/{list-WVK7ZCPW.js → list-ZEBZ5DB5.js} +9 -9
- package/dist/{localPage-IQWHN7BH.js → localPage-CQ3H4N2N.js} +7 -7
- package/dist/{login-Q5CNHYWU.js → login-VHCZHENV.js} +17 -11
- package/dist/{logout-6VFJ7WMW.js → logout-LHTQV2BZ.js} +3 -3
- package/dist/look-25TSRPSV.js +180 -0
- package/dist/{manager-JCYVNEWH.js → manager-57SX7D5G.js} +9 -8
- package/dist/manifest-QSJYVERU.js +49 -0
- package/dist/measure-Y2R3G5OJ.js +46 -0
- package/dist/{media-treatment-M5IUP7H4.js → media-treatment-3G2IVS64.js} +20 -20
- package/dist/{media-use-ZNTB7W6N.js → media-use-LUAOZJNV.js} +10 -6
- package/dist/{models-CFXKDYZ3.js → models-NT56FKRG.js} +15 -15
- package/dist/{motionShot-CWUEI4ZM.js → motionShot-P4NTFKYS.js} +20 -20
- package/dist/{normalize-QJVXFMWO.js → normalize-MBNGRVQA.js} +2 -1
- package/dist/{normalize-audio-FASY33LR.js → normalize-audio-2DUTZ6QK.js} +12 -12
- package/dist/{open-KOVVESYN.js → open-OATYOOR7.js} +15 -15
- package/dist/{parakeetRunner-E4IP5SL4.js → parakeetRunner-UASHW3A4.js} +13 -12
- package/dist/{pipeline-C6EZVV43.js → pipeline-GGAYP5Q6.js} +11 -11
- package/dist/{play-MZJI6SMH.js → play-GHXBJS3T.js} +28 -28
- package/dist/{policies-J5BWAZHM.js → policies-EERREOZJ.js} +6 -4
- package/dist/{preflight-K4SPUWXP.js → preflight-6VOP3IOI.js} +8 -8
- package/dist/{present-7L7ZTG7F.js → present-M7UYHVEZ.js} +23 -23
- package/dist/{preview-QGDVMR3X.js → preview-YWT5WA3W.js} +26 -26
- package/dist/probe-CQAGZJLP.js +178 -0
- package/dist/{producer-EJPNNY3E.js → producer-OU2BCMLY.js} +1 -1
- package/dist/{progress-X3QFO3FE.js → progress-STSH2JRY.js} +2 -2
- package/dist/{projectConfig-EEF6OPXO.js → projectConfig-UI4NZDN7.js} +6 -6
- package/dist/{prompts-VAO7RDKX.js → prompts-ZEVFT7US.js} +2 -2
- package/dist/{publication-5KF44AKQ.js → publication-VPJZQCLA.js} +2 -2
- package/dist/{publish-SSKWZ5TE.js → publish-7RA2MK2M.js} +18 -18
- package/dist/{refresh-I6ITGHKL.js → refresh-AM2ULRRV.js} +3 -3
- package/dist/{remove-background-PCL6I5SZ.js → remove-background-A5KJUH6W.js} +14 -14
- package/dist/{render-UPRWOGLS.js → render-EMW4I6C6.js} +45 -45
- package/dist/{render-DH4UA7KW.js → render-IYV73CG6.js} +10 -10
- package/dist/{render-DRWQ6F37.js → render-Z5IS4AUP.js} +39 -39
- package/dist/{render-batch-EBW5WHB5.js → render-batch-IN2ZXPS7.js} +10 -10
- package/dist/renderSetupWorker.js +2 -2
- package/dist/{resolver-ZSZXNRFP.js → resolver-DIXFK5ZR.js} +4 -4
- package/dist/run-MCVU7AZX.js +31 -0
- package/dist/{sam-QA7JT7IM.js → sam-EGFXZF56.js} +2 -2
- package/dist/{screenshotCapture-4THETOMD.js → screenshotCapture-RUDON2HB.js} +2 -2
- package/dist/{sherpa-IKVUCBOW.js → sherpa-SAY3I7PK.js} +12 -11
- package/dist/{sites-MTLVMYJ6.js → sites-EAGXQOKI.js} +2 -2
- package/dist/skills/hyperframes-cli/SKILL.md +4 -4
- package/dist/skills/hyperframes-cli/references/cloud.md +3 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/skills/media-use/SKILL.md +20 -21
- package/dist/skills/media-use/audio/scripts/lib/heygen.mjs +26 -1
- package/dist/skills/media-use/audio/scripts/lib/heygen.test.mjs +33 -0
- package/dist/skills/media-use/references/heygen.md +58 -0
- package/dist/skills/media-use/references/operations.md +9 -6
- package/dist/skills/media-use/references/setup-providers.md +11 -12
- package/dist/skills/media-use/scripts/lib/index-gen.d.mts +1 -0
- package/dist/skills/media-use/scripts/lib/manifest.d.mts +21 -0
- package/dist/{skills-ZREHX3TU.js → skills-YWQ5XKH6.js} +9 -9
- package/dist/{skillsUpdateCheck-PPJ5NGAL.js → skillsUpdateCheck-ST5ZFEET.js} +5 -5
- package/dist/{snapshot-KPFLZNEL.js → snapshot-57YYYE5J.js} +43 -42
- package/dist/{src-QRV3466B.js → src-7MEBCSTP.js} +9 -9
- package/dist/{src-EPOGDJTT.js → src-LNSJHD25.js} +10 -6
- package/dist/{state-6QHNNHDA.js → state-W3AS6O2J.js} +2 -2
- package/dist/{staticProjectServer-ERKLMZVM.js → staticProjectServer-TTJSAB2Q.js} +19 -19
- package/dist/{status-4AAPTTRW.js → status-FGXBUX2T.js} +36 -11
- package/dist/studio/assets/hyperframes-player-Bzcd9O2g.js +478 -0
- package/dist/studio/assets/{index-C8VIUiGz.js → index-CZI-XmnO.js} +119 -119
- package/dist/studio/assets/{index-CVPNbydK.js → index-LW6kxYVF.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-7WFZIIPL.js → studio-api-57E36S5N.js} +15 -15
- package/dist/{studioServer-3XZTLI26.js → studioServer-2AIRUNBA.js} +55 -55
- package/dist/sync-52GUXEYZ.js +115 -0
- package/dist/{telemetry-BMLI4TMC.js → telemetry-RVY6RSCD.js} +6 -6
- package/dist/{telemetry-QHYJJAJU.js → telemetry-T73TKZOL.js} +1 -1
- package/dist/{timeline-EDCDO2ZR.js → timeline-MMZF4AX3.js} +31 -27
- package/dist/{tokens-2ZFLFO3K.js → tokens-WGWCYFTY.js} +5 -5
- package/dist/{transcribe-Y2LPBT7I.js → transcribe-6BF5FFPV.js} +39 -22
- package/dist/{transcribe-3WMH62HH.js → transcribe-YYDHXRQW.js} +11 -10
- package/dist/{tts-BVTJEP72.js → tts-ZLNNIS6W.js} +5 -5
- package/dist/{updateCheck-5LFZGC3P.js → updateCheck-AAR5LLUF.js} +4 -4
- package/dist/{upgrade-X7QVSEKP.js → upgrade-Y7CIRL4B.js} +5 -5
- package/dist/{urlDownloader-TYD6ROKL.js → urlDownloader-KZOD7EWX.js} +6 -6
- package/dist/{validate-26KQ5VX7.js → validate-K3PHAA2E.js} +30 -30
- package/dist/{video-BPKLZIJK.js → video-Z6EBVCAT.js} +9 -9
- package/dist/warmCheck.js +47 -46
- package/package.json +1 -1
- package/dist/chunk-LL3VMDAC.js +0 -5013
- package/dist/studio/assets/hyperframes-player-Dka6e1BG.js +0 -478
- package/dist/{chunk-NOH32H42.js → chunk-HBAUU3IK.js} +124 -124
- package/dist/{synthesize-4JC74JW5.js → synthesize-DIT2SR3D.js} +5 -5
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/media-use/lib/manifest.mjs
|
|
9
|
+
import {
|
|
10
|
+
readFileSync,
|
|
11
|
+
appendFileSync,
|
|
12
|
+
mkdirSync,
|
|
13
|
+
existsSync,
|
|
14
|
+
readdirSync,
|
|
15
|
+
openSync,
|
|
16
|
+
closeSync,
|
|
17
|
+
writeFileSync,
|
|
18
|
+
rmSync,
|
|
19
|
+
statSync
|
|
20
|
+
} from "fs";
|
|
21
|
+
import { randomBytes } from "crypto";
|
|
22
|
+
import { basename, join } from "path";
|
|
23
|
+
var MANIFEST_FILE = "manifest.jsonl";
|
|
24
|
+
var INDEX_FILE = "index.md";
|
|
25
|
+
var TYPE_DIRS = {
|
|
26
|
+
bgm: "audio/bgm",
|
|
27
|
+
sfx: "audio/sfx",
|
|
28
|
+
voice: "audio/voice",
|
|
29
|
+
image: "images",
|
|
30
|
+
icon: "images",
|
|
31
|
+
logo: "images",
|
|
32
|
+
brand: "images",
|
|
33
|
+
video: "video",
|
|
34
|
+
grade: "luts",
|
|
35
|
+
lut: "luts",
|
|
36
|
+
recipe: "recipes"
|
|
37
|
+
};
|
|
38
|
+
function mediaDir(projectDir) {
|
|
39
|
+
return join(projectDir, ".media");
|
|
40
|
+
}
|
|
41
|
+
function manifestPath(projectDir) {
|
|
42
|
+
return join(mediaDir(projectDir), MANIFEST_FILE);
|
|
43
|
+
}
|
|
44
|
+
function indexPath(projectDir) {
|
|
45
|
+
return join(mediaDir(projectDir), INDEX_FILE);
|
|
46
|
+
}
|
|
47
|
+
function typeSubdir(type) {
|
|
48
|
+
const sub = TYPE_DIRS[type];
|
|
49
|
+
if (!sub) throw new Error(`unknown media type: ${type}`);
|
|
50
|
+
return sub;
|
|
51
|
+
}
|
|
52
|
+
function typeDirPath(projectDir, type) {
|
|
53
|
+
return join(mediaDir(projectDir), typeSubdir(type));
|
|
54
|
+
}
|
|
55
|
+
function readManifest(projectDir) {
|
|
56
|
+
const p = manifestPath(projectDir);
|
|
57
|
+
if (!existsSync(p)) return [];
|
|
58
|
+
const raw = readFileSync(p, "utf8");
|
|
59
|
+
const records = [];
|
|
60
|
+
for (const line of raw.split(/\r?\n/)) {
|
|
61
|
+
const trimmed = line.trim();
|
|
62
|
+
if (!trimmed) continue;
|
|
63
|
+
try {
|
|
64
|
+
records.push(JSON.parse(trimmed));
|
|
65
|
+
} catch {
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return records;
|
|
69
|
+
}
|
|
70
|
+
function appendRecord(projectDir, record) {
|
|
71
|
+
const dir = mediaDir(projectDir);
|
|
72
|
+
mkdirSync(dir, { recursive: true });
|
|
73
|
+
const typeDir = typeDirPath(projectDir, record.type);
|
|
74
|
+
mkdirSync(typeDir, { recursive: true });
|
|
75
|
+
const p = manifestPath(projectDir);
|
|
76
|
+
const line = JSON.stringify(record) + "\n";
|
|
77
|
+
appendFileSync(p, line);
|
|
78
|
+
}
|
|
79
|
+
var AGENT_SOURCES = ["generated", "search", "bundled"];
|
|
80
|
+
function latestRecordFor(projectDir, path) {
|
|
81
|
+
return readManifest(projectDir).findLast((record) => record.path === path);
|
|
82
|
+
}
|
|
83
|
+
function currentRecords(projectDir) {
|
|
84
|
+
const records = readManifest(projectDir);
|
|
85
|
+
const last = new Map(records.map((record, index) => [record.path, index]));
|
|
86
|
+
return records.filter((record, index) => !record.path || last.get(record.path) === index);
|
|
87
|
+
}
|
|
88
|
+
function recordInPlace(projectDir, { type, path, source, description, duration, provenance }) {
|
|
89
|
+
const fields = {
|
|
90
|
+
type,
|
|
91
|
+
path,
|
|
92
|
+
source,
|
|
93
|
+
description: description || basename(path),
|
|
94
|
+
...duration != null && { duration: Math.round(duration * 10) / 10 }
|
|
95
|
+
};
|
|
96
|
+
return withMediaLock(projectDir, () => {
|
|
97
|
+
const latest = latestRecordFor(projectDir, path);
|
|
98
|
+
const same = ["source", "description", "duration"].every(
|
|
99
|
+
(key) => latest?.[key] === fields[key]
|
|
100
|
+
);
|
|
101
|
+
if (latest && same) return latest;
|
|
102
|
+
const record = { id: nextFreeId(projectDir, type), ...fields, provenance };
|
|
103
|
+
appendRecord(projectDir, record);
|
|
104
|
+
return record;
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function normalizePrompt(prompt) {
|
|
108
|
+
return String(prompt ?? "").trim().toLowerCase().replace(/\s+/g, " ");
|
|
109
|
+
}
|
|
110
|
+
function findByPrompt(projectDir, prompt, type) {
|
|
111
|
+
const key = normalizePrompt(prompt);
|
|
112
|
+
if (!key) return null;
|
|
113
|
+
const records = currentRecords(projectDir);
|
|
114
|
+
return records.find(
|
|
115
|
+
(r) => normalizePrompt(r.provenance?.prompt) === key && (type == null || r.type === type)
|
|
116
|
+
) || null;
|
|
117
|
+
}
|
|
118
|
+
function findByEntity(projectDir, entity) {
|
|
119
|
+
const lower = entity.toLowerCase();
|
|
120
|
+
const records = currentRecords(projectDir);
|
|
121
|
+
return records.find((r) => r.entity && r.entity.toLowerCase() === lower) || null;
|
|
122
|
+
}
|
|
123
|
+
function nextId(projectDir, type) {
|
|
124
|
+
const records = readManifest(projectDir);
|
|
125
|
+
const prefix = type;
|
|
126
|
+
let max = 0;
|
|
127
|
+
for (const r of records) {
|
|
128
|
+
if (r.type !== type) continue;
|
|
129
|
+
const m = r.id?.match(new RegExp(`^${prefix}_(\\d+)$`));
|
|
130
|
+
if (m) max = Math.max(max, parseInt(m[1], 10));
|
|
131
|
+
}
|
|
132
|
+
return `${prefix}_${String(max + 1).padStart(3, "0")}`;
|
|
133
|
+
}
|
|
134
|
+
function sleepMs(ms) {
|
|
135
|
+
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
136
|
+
}
|
|
137
|
+
var LOCK_STALE_MS = 15e3;
|
|
138
|
+
var LOCK_TIMEOUT_MS = 2e4;
|
|
139
|
+
function withLock(dir, fn) {
|
|
140
|
+
const lock = join(dir, ".lock");
|
|
141
|
+
const start = Date.now();
|
|
142
|
+
for (; ; ) {
|
|
143
|
+
try {
|
|
144
|
+
closeSync(openSync(lock, "wx"));
|
|
145
|
+
break;
|
|
146
|
+
} catch (err) {
|
|
147
|
+
if (err.code !== "EEXIST") throw err;
|
|
148
|
+
try {
|
|
149
|
+
if (Date.now() - statSync(lock).mtimeMs > LOCK_STALE_MS) {
|
|
150
|
+
rmSync(lock, { force: true });
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
} catch {
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
if (Date.now() - start > LOCK_TIMEOUT_MS) {
|
|
157
|
+
throw new Error("media-use: timed out acquiring .media/.lock");
|
|
158
|
+
}
|
|
159
|
+
sleepMs(25);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
try {
|
|
163
|
+
return fn();
|
|
164
|
+
} finally {
|
|
165
|
+
rmSync(lock, { force: true });
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function withMediaLock(projectDir, fn) {
|
|
169
|
+
mkdirSync(mediaDir(projectDir), { recursive: true });
|
|
170
|
+
return withLock(mediaDir(projectDir), fn);
|
|
171
|
+
}
|
|
172
|
+
function allocateId(projectDir, type, ext) {
|
|
173
|
+
mkdirSync(typeDirPath(projectDir, type), { recursive: true });
|
|
174
|
+
return withMediaLock(projectDir, () => {
|
|
175
|
+
const id = nextFreeId(projectDir, type);
|
|
176
|
+
const localPath = `.media/${typeSubdir(type)}/${id}${ext}`;
|
|
177
|
+
const markerPath = `${join(projectDir, localPath)}.hf${randomBytes(3).toString("hex")}.tmp`;
|
|
178
|
+
writeFileSync(markerPath, "", { flag: "wx" });
|
|
179
|
+
return { id, localPath, markerPath };
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function nextFreeId(projectDir, type) {
|
|
183
|
+
const re = new RegExp(`^${type}_(\\d+)`);
|
|
184
|
+
let max = 0;
|
|
185
|
+
for (const r of readManifest(projectDir)) {
|
|
186
|
+
if (r.type !== type) continue;
|
|
187
|
+
const m = r.id?.match(re);
|
|
188
|
+
if (m) max = Math.max(max, parseInt(m[1], 10));
|
|
189
|
+
}
|
|
190
|
+
const typeDir = typeDirPath(projectDir, type);
|
|
191
|
+
for (const f of existsSync(typeDir) ? readdirSync(typeDir) : []) {
|
|
192
|
+
const m = f.match(re);
|
|
193
|
+
if (m) max = Math.max(max, parseInt(m[1], 10));
|
|
194
|
+
}
|
|
195
|
+
return `${type}_${String(max + 1).padStart(3, "0")}`;
|
|
196
|
+
}
|
|
197
|
+
function reservedFile(projectDir, type, ext) {
|
|
198
|
+
const allocation = allocateId(projectDir, type, ext);
|
|
199
|
+
return { ...allocation, fullPath: join(projectDir, allocation.localPath) };
|
|
200
|
+
}
|
|
201
|
+
function releaseReservation(reservation, committed) {
|
|
202
|
+
if (!committed) rmSync(reservation.fullPath, { force: true });
|
|
203
|
+
rmSync(reservation.markerPath, { force: true });
|
|
204
|
+
}
|
|
205
|
+
function withReservedFileSync(projectDir, type, ext, populate) {
|
|
206
|
+
const reservation = reservedFile(projectDir, type, ext);
|
|
207
|
+
try {
|
|
208
|
+
const result = populate(reservation);
|
|
209
|
+
releaseReservation(reservation, result != null);
|
|
210
|
+
return result;
|
|
211
|
+
} catch (error) {
|
|
212
|
+
releaseReservation(reservation, false);
|
|
213
|
+
throw error;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
async function withReservedFile(projectDir, type, ext, populate) {
|
|
217
|
+
const reservation = reservedFile(projectDir, type, ext);
|
|
218
|
+
try {
|
|
219
|
+
const result = await populate(reservation);
|
|
220
|
+
releaseReservation(reservation, result != null);
|
|
221
|
+
return result;
|
|
222
|
+
} catch (error) {
|
|
223
|
+
releaseReservation(reservation, false);
|
|
224
|
+
throw error;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export {
|
|
229
|
+
mediaDir,
|
|
230
|
+
manifestPath,
|
|
231
|
+
indexPath,
|
|
232
|
+
typeSubdir,
|
|
233
|
+
typeDirPath,
|
|
234
|
+
readManifest,
|
|
235
|
+
appendRecord,
|
|
236
|
+
AGENT_SOURCES,
|
|
237
|
+
latestRecordFor,
|
|
238
|
+
currentRecords,
|
|
239
|
+
recordInPlace,
|
|
240
|
+
normalizePrompt,
|
|
241
|
+
findByPrompt,
|
|
242
|
+
findByEntity,
|
|
243
|
+
nextId,
|
|
244
|
+
withMediaLock,
|
|
245
|
+
allocateId,
|
|
246
|
+
withReservedFileSync,
|
|
247
|
+
withReservedFile
|
|
248
|
+
};
|
|
@@ -6,20 +6,20 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
readCompositionFps
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X5BSSPC2.js";
|
|
10
10
|
import {
|
|
11
11
|
errorBox
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5LOZWO2M.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_CONFIG,
|
|
15
15
|
resolvePageNavigationTimeout
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NFUR6NNT.js";
|
|
17
17
|
import {
|
|
18
18
|
parseFps
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FJ3KUOUZ.js";
|
|
20
20
|
import {
|
|
21
21
|
failUsage
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-66W5IWLO.js";
|
|
23
23
|
|
|
24
24
|
// src/browser/windowsCrash.ts
|
|
25
25
|
var STATUS_STACK_BUFFER_OVERRUN_DEC = "3221225595";
|
|
@@ -17,6 +17,8 @@ var defaultIO = {
|
|
|
17
17
|
readFile: (path) => decodeJsonText(readFileSync(resolve(path))),
|
|
18
18
|
readStdin: () => decodeJsonText(readFileSync(0))
|
|
19
19
|
};
|
|
20
|
+
var readJsonFileText = (path) => defaultIO.readFile(path);
|
|
21
|
+
var readJsonStdinText = () => defaultIO.readStdin();
|
|
20
22
|
var JsonFlagReadError = class extends Error {
|
|
21
23
|
constructor(path, cause) {
|
|
22
24
|
super(`${path}: ${cause}`);
|
|
@@ -44,7 +46,10 @@ function readJsonFlagText(value, partialIo = {}) {
|
|
|
44
46
|
if (trimmed.startsWith("{") || trimmed.startsWith("[") || isJsonScalar(trimmed)) return value;
|
|
45
47
|
const source = trimmed === "-" ? "stdin" : value;
|
|
46
48
|
try {
|
|
47
|
-
|
|
49
|
+
if (trimmed !== "-") return io.readFile(value);
|
|
50
|
+
const piped = io.readStdin();
|
|
51
|
+
if (!piped.trim()) throw new Error("nothing was piped in");
|
|
52
|
+
return piped;
|
|
48
53
|
} catch (error) {
|
|
49
54
|
throw new JsonFlagReadError(source, errorText(error));
|
|
50
55
|
}
|
|
@@ -68,7 +73,8 @@ function readJsonFlag(flag, value, io) {
|
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
export {
|
|
71
|
-
|
|
76
|
+
readJsonFileText,
|
|
77
|
+
readJsonStdinText,
|
|
72
78
|
JsonFlagReadError,
|
|
73
79
|
readJsonFlagText,
|
|
74
80
|
inlineJsonHint,
|
|
@@ -14,28 +14,28 @@ import {
|
|
|
14
14
|
} from "./chunk-AW3XJY4S.js";
|
|
15
15
|
import {
|
|
16
16
|
readCompositionFps
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X5BSSPC2.js";
|
|
18
18
|
import {
|
|
19
19
|
HF_AUDIO_GROUP_ATTR,
|
|
20
20
|
extractAudioMetadata,
|
|
21
21
|
extractMediaMetadata
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NFUR6NNT.js";
|
|
23
23
|
import {
|
|
24
24
|
byStart,
|
|
25
25
|
fpsToNumber,
|
|
26
26
|
parseFpsWithDefault
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-FJ3KUOUZ.js";
|
|
28
28
|
import {
|
|
29
29
|
HF_AUDIO_AUTOMATION_ATTR,
|
|
30
30
|
HF_AUDIO_FX_ATTR,
|
|
31
31
|
parseAudioFxChain,
|
|
32
32
|
parseAutomation,
|
|
33
33
|
resolveAutomation
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6UWSEXQ3.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveReferencedDuration,
|
|
37
37
|
resolveReferencedStart
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-HT3D5AKG.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveAuthoredAssetFile
|
|
41
41
|
} from "./chunk-AKMY4QVI.js";
|
|
@@ -4,35 +4,35 @@ import { dirname as __hf_dirname } from "node:path";
|
|
|
4
4
|
var require = __hf_createRequire(import.meta.url);
|
|
5
5
|
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
|
-
import {
|
|
8
|
-
readJsonFlag
|
|
9
|
-
} from "./chunk-EGJ4UECR.js";
|
|
10
7
|
import {
|
|
11
8
|
RegistryCompatibilityError,
|
|
12
9
|
gateRegistryItemsCompatibility
|
|
13
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GLTSINRP.js";
|
|
14
11
|
import {
|
|
15
12
|
DEFAULT_PROJECT_CONFIG,
|
|
16
13
|
createProjectConfig,
|
|
17
14
|
loadProjectConfig,
|
|
18
15
|
projectConfigPath,
|
|
19
16
|
recordProjectRegistryItems
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZGQC6IU7.js";
|
|
21
18
|
import {
|
|
22
19
|
resolveItemWithDependencies,
|
|
23
20
|
resolveItemsByTag
|
|
24
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-A25SCSOK.js";
|
|
25
22
|
import {
|
|
26
23
|
InvalidVariableValuesError,
|
|
27
24
|
prepareItem,
|
|
28
25
|
publishItem
|
|
29
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UCPEABYK.js";
|
|
30
27
|
import {
|
|
31
28
|
DEFAULT_REGISTRY_URL
|
|
32
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-EQFDOQTG.js";
|
|
30
|
+
import {
|
|
31
|
+
readJsonFlag
|
|
32
|
+
} from "./chunk-EHZESMRB.js";
|
|
33
33
|
import {
|
|
34
34
|
trackRegistryItemAdded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-NI35PAVN.js";
|
|
36
36
|
import {
|
|
37
37
|
defineCommand
|
|
38
38
|
} from "./chunk-DL4OD7IA.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-2GICKZ3I.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-FJ3KUOUZ.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -51,10 +51,10 @@ import {
|
|
|
51
51
|
} from "./chunk-GWTIFRF5.js";
|
|
52
52
|
import {
|
|
53
53
|
failCaught
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ADVVQX4I.js";
|
|
55
55
|
import {
|
|
56
56
|
failCommand
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-66W5IWLO.js";
|
|
58
58
|
|
|
59
59
|
// src/commands/add.ts
|
|
60
60
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { createRequire as __hf_createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath as __hf_fileURLToPath } from "node:url";
|
|
3
|
+
import { dirname as __hf_dirname } from "node:path";
|
|
4
|
+
var require = __hf_createRequire(import.meta.url);
|
|
5
|
+
var __filename = __hf_fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __hf_dirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
Fix,
|
|
9
|
+
formatJson,
|
|
10
|
+
parseNumbers,
|
|
11
|
+
parseRoi,
|
|
12
|
+
probeVideo
|
|
13
|
+
} from "./chunk-BTK3T4HJ.js";
|
|
14
|
+
import {
|
|
15
|
+
c
|
|
16
|
+
} from "./chunk-2GICKZ3I.js";
|
|
17
|
+
import {
|
|
18
|
+
withMeta
|
|
19
|
+
} from "./chunk-2KDHJCH2.js";
|
|
20
|
+
import {
|
|
21
|
+
failCommand
|
|
22
|
+
} from "./chunk-66W5IWLO.js";
|
|
23
|
+
import {
|
|
24
|
+
normalizeErrorMessage
|
|
25
|
+
} from "./chunk-E63BDV4Z.js";
|
|
26
|
+
|
|
27
|
+
// src/measure/command.ts
|
|
28
|
+
async function runMeasure(work) {
|
|
29
|
+
try {
|
|
30
|
+
console.log(formatJson(withMeta({ ok: true, ...await work() })));
|
|
31
|
+
} catch (err) {
|
|
32
|
+
const fix = err instanceof Fix ? err.fix : void 0;
|
|
33
|
+
console.log(
|
|
34
|
+
formatJson(
|
|
35
|
+
withMeta({ ok: false, error: normalizeErrorMessage(err), ...fix ? { fix } : {} })
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
if (process.stdout.isTTY) console.error(`${c.error("\u2717")} ${normalizeErrorMessage(err)}`);
|
|
39
|
+
failCommand();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
var videoArg = {
|
|
43
|
+
type: "positional",
|
|
44
|
+
description: "The video file",
|
|
45
|
+
required: true
|
|
46
|
+
};
|
|
47
|
+
var roiArg = {
|
|
48
|
+
type: "string",
|
|
49
|
+
description: "Region x,y,w,h in the video's pixels (default: whole frame)"
|
|
50
|
+
};
|
|
51
|
+
var outArg = {
|
|
52
|
+
type: "string",
|
|
53
|
+
description: "Folder for pictures (default .hyperframes/measure/<op>)"
|
|
54
|
+
};
|
|
55
|
+
var jsonArg = {
|
|
56
|
+
type: "boolean",
|
|
57
|
+
description: "Accepted for symmetry; output is always JSON",
|
|
58
|
+
default: false
|
|
59
|
+
};
|
|
60
|
+
var compareWindowArgs = {
|
|
61
|
+
"compare-start": { type: "string", description: "Its window start (default: --start)" },
|
|
62
|
+
"compare-roi": { type: "string", description: "Its region (default: --roi)" }
|
|
63
|
+
};
|
|
64
|
+
function videoAndRoi(video, roi) {
|
|
65
|
+
const info = probeVideo(String(video));
|
|
66
|
+
return {
|
|
67
|
+
info,
|
|
68
|
+
roi: roi === void 0 ? [0, 0, info.width, info.height] : parseRoi(roi, info.width, info.height)
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function num(value, flag, fallback) {
|
|
72
|
+
return value === void 0 ? fallback : parseNumbers(value, flag)[0];
|
|
73
|
+
}
|
|
74
|
+
function window(info, start, end, flags = ["--start", "--end"]) {
|
|
75
|
+
const a = num(start, flags[0], 0);
|
|
76
|
+
const b = Math.min(info.duration, num(end, flags[1], info.duration));
|
|
77
|
+
if (!(b > a))
|
|
78
|
+
throw new Fix(
|
|
79
|
+
`${flags[1]} ${b} is not after ${flags[0]} ${a}`,
|
|
80
|
+
`${flags[0]} 0 ${flags[1]} ${Math.min(6, info.duration)}`
|
|
81
|
+
);
|
|
82
|
+
return [a, b];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
runMeasure,
|
|
87
|
+
videoArg,
|
|
88
|
+
roiArg,
|
|
89
|
+
outArg,
|
|
90
|
+
jsonArg,
|
|
91
|
+
compareWindowArgs,
|
|
92
|
+
videoAndRoi,
|
|
93
|
+
num,
|
|
94
|
+
window
|
|
95
|
+
};
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
errorBox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5LOZWO2M.js";
|
|
10
10
|
import {
|
|
11
11
|
failUsage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-66W5IWLO.js";
|
|
13
13
|
|
|
14
14
|
// src/cloud/parsing.ts
|
|
15
15
|
var INTEGER_RE = /^-?\d+$/;
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
ensureHfIds,
|
|
13
13
|
mintHfId,
|
|
14
14
|
walkCompositionDescendants
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7RTPHNOO.js";
|
|
16
16
|
import {
|
|
17
17
|
isAllowedHtmlAttribute,
|
|
18
18
|
isSafeAttributeValue,
|
|
19
19
|
sanitizeRichTextChildren
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FJ3KUOUZ.js";
|
|
21
21
|
import {
|
|
22
22
|
require_dist
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HT3D5AKG.js";
|
|
24
24
|
import {
|
|
25
25
|
SPLIT_BOUNDARY_EPSILON_S,
|
|
26
26
|
readClipTiming,
|
|
@@ -137,7 +137,7 @@ function replacementTimelineAssetId(document, element, newSrc) {
|
|
|
137
137
|
return buildTimelineAssetId(decodedUrlPath(newSrc), ids);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
// ../studio-server/dist/chunk-
|
|
140
|
+
// ../studio-server/dist/chunk-LRTNNDXS.js
|
|
141
141
|
var import_postcss_selector_parser = __toESM(require_dist(), 1);
|
|
142
142
|
import postcss from "postcss";
|
|
143
143
|
function parseStyleDecls(style) {
|
|
@@ -199,7 +199,40 @@ function parseSourceDocument(raw) {
|
|
|
199
199
|
);
|
|
200
200
|
return { document, wrappedFragment: !hasDocumentShell };
|
|
201
201
|
}
|
|
202
|
+
function dropCssRulesForId(document, id) {
|
|
203
|
+
const idToken = `#${id}`;
|
|
204
|
+
const namesId = (selector) => {
|
|
205
|
+
let found = false;
|
|
206
|
+
(0, import_postcss_selector_parser.default)((selectors) => {
|
|
207
|
+
selectors.walkIds((node) => {
|
|
208
|
+
let up = node.parent;
|
|
209
|
+
while (up && !(up.type === "pseudo" && up.value === ":not")) up = up.parent;
|
|
210
|
+
if (node.value === id && !up) found = true;
|
|
211
|
+
});
|
|
212
|
+
}).processSync(selector);
|
|
213
|
+
return found;
|
|
214
|
+
};
|
|
215
|
+
for (const styleEl of document.querySelectorAll("style")) {
|
|
216
|
+
const css = styleEl.textContent ?? "";
|
|
217
|
+
if (!css.includes(idToken)) continue;
|
|
218
|
+
let root;
|
|
219
|
+
try {
|
|
220
|
+
root = postcss.parse(css);
|
|
221
|
+
} catch {
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
let dropped = false;
|
|
225
|
+
root.walkRules((rule) => {
|
|
226
|
+
if (rule.selectors.length > 0 && rule.selectors.every(namesId)) {
|
|
227
|
+
rule.remove();
|
|
228
|
+
dropped = true;
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
if (dropped) styleEl.textContent = root.toString();
|
|
232
|
+
}
|
|
233
|
+
}
|
|
202
234
|
function duplicateCssRulesForId(document, originalId, newId) {
|
|
235
|
+
dropCssRulesForId(document, newId);
|
|
203
236
|
const idToken = `#${originalId}`;
|
|
204
237
|
const transform = (0, import_postcss_selector_parser.default)((selectors) => {
|
|
205
238
|
selectors.walkIds((node) => {
|
|
@@ -282,7 +315,9 @@ function removeElementsFromHtml(source, targets) {
|
|
|
282
315
|
for (const target of targets) {
|
|
283
316
|
const element = findTargetElement(document, target);
|
|
284
317
|
if (!element) continue;
|
|
318
|
+
const id = element.getAttribute("id");
|
|
285
319
|
removeElementWithGsapCascade(document, element);
|
|
320
|
+
if (id && !document.getElementById(id)) dropCssRulesForId(document, id);
|
|
286
321
|
removed = true;
|
|
287
322
|
}
|
|
288
323
|
if (!removed) return source;
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
probeFirstFrameColour,
|
|
9
9
|
probeMediaMetadata
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-E47ZWDMH.js";
|
|
11
11
|
import {
|
|
12
12
|
alphaDecoderFor
|
|
13
13
|
} from "./chunk-5S7W3TUO.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
formatPreviewProxyBox,
|
|
16
16
|
hdrToSdrToneMapFilter,
|
|
17
17
|
isHeavyForPreview
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FJ3KUOUZ.js";
|
|
19
19
|
import {
|
|
20
20
|
mkdirWithinProject,
|
|
21
21
|
realProjectRoot,
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MA5AQK7T.js";
|
|
10
10
|
|
|
11
11
|
// src/registry/compatibility.ts
|
|
12
12
|
import { compareVersions } from "compare-versions";
|