hyperframes 0.9.16 → 0.9.18
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/README.md +3 -2
- package/dist/{add-GEGI5ERI.js → add-R3OQEWVP.js} +12 -12
- package/dist/{agentPromptGenerator-VV7UQDGL.js → agentPromptGenerator-53UGASPS.js} +6 -7
- package/dist/{animatedGifPrep-JTPCKJ44.js → animatedGifPrep-XTZ3NW4D.js} +6 -7
- package/dist/api.js +29 -30
- package/dist/{asset-ZTXZ6HGB.js → asset-7BXTM7P4.js} +2 -2
- package/dist/{assetCataloger-ATGUE5IY.js → assetCataloger-B6QCN7D4.js} +7 -8
- package/dist/{audio-5SBZBNSP.js → audio-6QT2263V.js} +16 -17
- package/dist/{auth-NDUIJ4HS.js → auth-JIVRJDOA.js} +2 -2
- package/dist/{autoUpdate-PZTBUAA5.js → autoUpdate-PL2F3J42.js} +2 -2
- package/dist/{avatars-YY7FU76E.js → avatars-3BH2GOU2.js} +10 -11
- package/dist/{backgroundChecks-6KERI5QL.js → backgroundChecks-MVBPFASG.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-L3IIY2FT.js → batchRender-MRZD6NEE.js} +3 -3
- package/dist/{beats-UBUJBSVD.js → beats-FSTI2GOV.js} +8 -9
- package/dist/{benchmark-YJ2U5KE3.js → benchmark-7RQP4OKL.js} +8 -8
- package/dist/{billing-YN35KTEH.js → billing-ERTIEJRM.js} +11 -11
- package/dist/{browser-NRDSXRX7.js → browser-SHRES7YO.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-5T25BRZU.js → bundleWithLocalizedFonts-FBN6DQG7.js} +1 -1
- package/dist/{capture-7K7VWXBQ.js → capture-FI236QMK.js} +13 -14
- package/dist/{capture-MP46JHB7.js → capture-JGEPACNE.js} +3 -3
- package/dist/{captureCompositionFrame-4VZCJGGD.js → captureCompositionFrame-G35BXLQV.js} +12 -13
- package/dist/{catalog-32CQF7IT.js → catalog-TASPLI6U.js} +12 -12
- package/dist/{catch-up-IVBUCPZM.js → catch-up-HGAVR2VQ.js} +4 -4
- package/dist/{check-U5PPKHG5.js → check-LOIL7QDO.js} +40 -41
- package/dist/{checkAudio-ZCRRON4E.js → checkAudio-GLG3SWWQ.js} +9 -10
- package/dist/{checkBrowser-MS5NKDXR.js → checkBrowser-YQETGZSL.js} +32 -33
- package/dist/{chunk-G4OGVFUJ.js → chunk-35STY5XW.js} +1 -1
- package/dist/{chunk-4FHTWYDZ.js → chunk-3ACGV3PF.js} +1 -1
- package/dist/{chunk-AD2T3VAJ.js → chunk-3OS2U5V2.js} +2 -2
- package/dist/{chunk-SE4WJJ43.js → chunk-4JI4P3J6.js} +1 -1
- package/dist/{chunk-5L2CII4L.js → chunk-4M42XMWZ.js} +1 -1
- package/dist/{chunk-S7UUJ77M.js → chunk-4WV3XDN4.js} +1 -1
- package/dist/{chunk-B2W2CPXF.js → chunk-53YFWZOA.js} +1 -1
- package/dist/{chunk-IR3JMMFT.js → chunk-56XJDA3H.js} +33 -2
- package/dist/{chunk-SREJU7NR.js → chunk-5IUSAGDH.js} +1 -1
- package/dist/{chunk-A4OX3TI6.js → chunk-5O4RH4G3.js} +1 -1
- package/dist/{chunk-YQ4LB3XC.js → chunk-6AFDBTX6.js} +1 -1
- package/dist/{chunk-TEEPLD64.js → chunk-6GJ7QJL7.js} +17 -8
- package/dist/{chunk-JCIPZMKD.js → chunk-6LMZ677L.js} +3 -3
- package/dist/{chunk-JWCMOC7O.js → chunk-6OBCXHIF.js} +1 -1
- package/dist/{chunk-BB5CZTGW.js → chunk-75AH7UVP.js} +1 -1
- package/dist/{chunk-U7MRV4RM.js → chunk-7NRTBDXX.js} +7 -7
- package/dist/{chunk-UXS7VE75.js → chunk-7PZLR2JZ.js} +1 -1
- package/dist/{chunk-J2I2LTJM.js → chunk-7WEOM6IL.js} +1 -1
- package/dist/{chunk-U7LBN2BQ.js → chunk-A64V7MWG.js} +7 -7
- package/dist/{chunk-S6AMEEGZ.js → chunk-AAEPGDLX.js} +3 -3
- package/dist/{chunk-TTEOPEJJ.js → chunk-AAQ32CJQ.js} +2 -2
- package/dist/{chunk-ZLWRAHBZ.js → chunk-AXCL2A3T.js} +10 -10
- package/dist/{chunk-344RFO72.js → chunk-C6GJQWRL.js} +32 -33
- package/dist/{chunk-VPBE4USM.js → chunk-CNCKUJSI.js} +38 -25
- package/dist/{chunk-Q5M3JAME.js → chunk-CQ7H3AHT.js} +13 -13
- package/dist/{chunk-PNZD5LZL.js → chunk-DGDTF64K.js} +47 -17
- package/dist/{chunk-ALQAHCK5.js → chunk-DNECYN6I.js} +1 -1
- package/dist/{chunk-G54QPS3F.js → chunk-DQ64M2ZV.js} +4 -4
- package/dist/chunk-DSSDDLGX.js +5035 -0
- package/dist/{chunk-R5LSL2C7.js → chunk-DUIVM4DL.js} +1 -1
- package/dist/{chunk-ZEOPRYFK.js → chunk-DXOAVIPV.js} +2 -2
- package/dist/{chunk-K2JGJUMR.js → chunk-EOIDKM7D.js} +3 -3
- package/dist/{chunk-LHRQP7TF.js → chunk-FDYNOOQZ.js} +5 -5
- package/dist/{chunk-NNXS4VBX.js → chunk-FSHSG2G5.js} +1 -1
- package/dist/{chunk-XS27ELRN.js → chunk-FUQPQDBA.js} +2 -2
- package/dist/{chunk-JPODNK2G.js → chunk-GBRXAHOL.js} +2 -2
- package/dist/{chunk-TNTQ7H24.js → chunk-GDQQ4U3L.js} +75 -9
- package/dist/{chunk-N32TVQYQ.js → chunk-GOLNW4NI.js} +2 -2
- package/dist/{chunk-GGSTJZQL.js → chunk-H3YLGOKX.js} +1 -1
- package/dist/{chunk-ZUZPIM6R.js → chunk-HEZYZUF5.js} +1 -1
- package/dist/{chunk-QXGT6KRX.js → chunk-HVACLBWZ.js} +25 -11
- package/dist/{chunk-IX5QY54Q.js → chunk-IJOCZ7ND.js} +2 -2
- package/dist/{chunk-L4ZMCB52.js → chunk-JALAIYCE.js} +9 -9
- package/dist/{chunk-YKAK4ALT.js → chunk-JQTQM6RE.js} +2 -2
- package/dist/{chunk-AKE744C5.js → chunk-JWORQ5WQ.js} +5 -1
- package/dist/{chunk-DM7WRHB5.js → chunk-K2KFYRVX.js} +1 -1
- package/dist/{chunk-W2BP25U5.js → chunk-K336C37N.js} +1 -1
- package/dist/{chunk-OIJHKOV2.js → chunk-KAUUM3TL.js} +2 -2
- package/dist/{chunk-PLVIN7X6.js → chunk-KWF5BWC7.js} +1 -1
- package/dist/{chunk-6H5KN7CJ.js → chunk-LFQLYI7R.js} +5 -5
- package/dist/{chunk-PWOMLJFV.js → chunk-LKT5BLRG.js} +2 -2
- package/dist/{chunk-XDT2DMH6.js → chunk-LPDYBJ2K.js} +2 -2
- package/dist/{chunk-UGYQBRHG.js → chunk-LPIHSJAU.js} +3 -3
- package/dist/{chunk-TABWG4IT.js → chunk-M7VAMZQW.js} +18 -11
- package/dist/{chunk-75PTCQAO.js → chunk-MBHKOK7C.js} +1 -1
- package/dist/{chunk-DV7RLE6B.js → chunk-MBZ56OAU.js} +2 -2
- package/dist/{chunk-M2Y245ET.js → chunk-MHSQBZQJ.js} +6 -3
- package/dist/{chunk-BSPE37DP.js → chunk-MQ3LHGNO.js} +2 -2
- package/dist/{chunk-YNAKUHSJ.js → chunk-N5U63MJG.js} +4 -4
- package/dist/{chunk-UK5DBUJX.js → chunk-NC7I6JJZ.js} +6 -6
- package/dist/{chunk-JFUXZERX.js → chunk-NTMMUK6Q.js} +113 -67
- package/dist/{chunk-KWORPYKW.js → chunk-NYN24QRB.js} +1 -1
- package/dist/chunk-ORM4MISE.js +59 -0
- package/dist/{chunk-OK3IQC32.js → chunk-P6QX426Y.js} +1 -1
- package/dist/{chunk-LOKTVSTM.js → chunk-PBKY4VTZ.js} +1 -1
- package/dist/{chunk-PC662ORN.js → chunk-PIPBEVLP.js} +2 -1
- package/dist/{chunk-5IVECOVN.js → chunk-PKUGO6D3.js} +1 -1
- package/dist/{chunk-4ECLIUTB.js → chunk-PPCD5YIU.js} +2 -2
- package/dist/{chunk-6M3TQUDF.js → chunk-PPWKGSEV.js} +2 -2
- package/dist/{chunk-L6X4ONBM.js → chunk-PX7EV4SO.js} +7 -7
- package/dist/{chunk-YFHOTWWE.js → chunk-QBV3XGXU.js} +1 -1
- package/dist/{chunk-SOQNCHO5.js → chunk-QT2SLY7N.js} +885 -516
- package/dist/{chunk-PWTWZF3F.js → chunk-QVPHMXKR.js} +1 -1
- package/dist/{chunk-HK4AN44J.js → chunk-QVR75TAB.js} +2 -2
- package/dist/{chunk-WWEFNXQI.js → chunk-T3K56YF2.js} +2 -2
- package/dist/{chunk-O2B3YNUH.js → chunk-T6CCPIDG.js} +3 -3
- package/dist/{chunk-HNZ2FZIB.js → chunk-TTCNUS5M.js} +3 -3
- package/dist/{chunk-6H5NILM5.js → chunk-UJOQZRIS.js} +1 -1
- package/dist/{chunk-65XOIIBM.js → chunk-UUZL4X3G.js} +1 -1
- package/dist/{chunk-AGQNRDYJ.js → chunk-VDQPHJVR.js} +1 -1
- package/dist/{chunk-PGM5YXBA.js → chunk-W3O7S7FC.js} +1 -1
- package/dist/{chunk-QCHPM3C2.js → chunk-WJBP3LIO.js} +1 -1
- package/dist/{chunk-LIUJRACZ.js → chunk-WPID5YHT.js} +15 -5
- package/dist/{chunk-ZAD422DC.js → chunk-WTOPHBYH.js} +4 -4
- package/dist/{chunk-BJAESOYP.js → chunk-X2TDLUIK.js} +4 -12
- package/dist/{chunk-72PVZ2A4.js → chunk-XJZR7MXG.js} +5 -5
- package/dist/{chunk-P2AOKCAC.js → chunk-Y3P26O7I.js} +3 -3
- package/dist/{chunk-SPJX4LQR.js → chunk-YJNI2NM7.js} +10 -10
- package/dist/{chunk-ZO5QD2FA.js → chunk-ZHP26FJS.js} +2 -2
- package/dist/{chunk-NPDBBMXX.js → chunk-ZII5GCHN.js} +1 -1
- package/dist/{clean-5K2KTH5M.js → clean-J6NG7RNU.js} +16 -17
- package/dist/cli.js +76 -68
- package/dist/{cloud-7O2Q7IHJ.js → cloud-LETWSUJR.js} +4 -4
- package/dist/{cloudrun-3HRDMWIS.js → cloudrun-RERXEEVM.js} +4 -4
- package/dist/commands/contrast-audit.browser.js +50 -14
- package/dist/commands/motion-signature.browser.js +8 -1
- package/dist/{compare-D22HJO5V.js → compare-ARPUHHYW.js} +29 -30
- package/dist/{compiler-RY6IVESI.js → compiler-DGB2I53W.js} +3 -4
- package/dist/{component-B7V7A5AP.js → component-2USQBQOH.js} +3 -3
- package/dist/{compositions-HFBRVNYW.js → compositions-X4GSF4RG.js} +11 -13
- package/dist/{curve-7PLN35CZ.js → curve-4OYTBAKF.js} +10 -11
- package/dist/{cuts-ZG7TBYVD.js → cuts-7MWGKKPB.js} +11 -12
- package/dist/{delete-YL4IMJJZ.js → delete-IY5EUCTR.js} +3 -3
- package/dist/{deploy-A6CDKFQZ.js → deploy-PEN3EL7H.js} +1 -1
- package/dist/{describeProject-VZCHDSWT.js → describeProject-STLWIUTD.js} +7 -8
- package/dist/{diff-PBVZRS5Z.js → diff-7T6PMH3C.js} +29 -30
- package/dist/{dist-BU547SVG.js → dist-7W5T76QK.js} +12 -2
- package/dist/{dist-HRK4GWLN.js → dist-K4BOTYAM.js} +9 -10
- package/dist/{dist-FPRADDH6.js → dist-URQMS2HM.js} +5 -4
- package/dist/{doctor-IFTYCM3E.js → doctor-65DXV54T.js} +10 -11
- package/dist/{energy-ENGAT6Z5.js → energy-BJVPUQDC.js} +11 -12
- package/dist/{events-AZ5XEDBE.js → events-FVEDX5PT.js} +13 -14
- package/dist/{events-CMAXQTDX.js → events-KLSIFOUP.js} +3 -3
- package/dist/{events-A6SBEKVH.js → events-MMV4IZQE.js} +2 -2
- package/dist/{extract-IE74J44O.js → extract-ZDOKCY4G.js} +11 -12
- package/dist/{face-JAPTS7VJ.js → face-SP6O3QUI.js} +11 -12
- package/dist/{feedback-QCFWXJCD.js → feedback-CCNOYJZG.js} +10 -7
- package/dist/{ffmpeg-4YMUUJP7.js → ffmpeg-2V25MA6C.js} +6 -7
- package/dist/{figma-C36IECKZ.js → figma-C7GSU5XD.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -10
- package/dist/{frames-ZW26G4UP.js → frames-GW7MG4PX.js} +12 -13
- package/dist/{generate-ZXR73M22.js → generate-TBA3D3BT.js} +21 -22
- package/dist/{get-3KICFW3X.js → get-EUPFU4PY.js} +3 -3
- package/dist/{gpuPolicy-SBYZLOAU.js → gpuPolicy-7WYJ73JK.js} +6 -7
- package/dist/{grade-compare-DCL3OPKF.js → grade-compare-V62HD24E.js} +30 -31
- package/dist/{heifImagePrep-YQWEIVTC.js → heifImagePrep-K2VOQAMS.js} +7 -8
- package/dist/{help-PUL7OS7X.js → help-WIRMKAY5.js} +1 -1
- package/dist/{history-GPBKC5DE.js → history-3JEFAPPA.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +62 -62
- package/dist/hyperframes-player.global.js +3 -3
- package/dist/{info-7I6ZVJ64.js → info-XD7XL4UA.js} +39 -11
- package/dist/{init-5MCEGVHR.js → init-OCITZW56.js} +27 -28
- package/dist/{ink-NLYWOBTK.js → ink-RIBPCBLJ.js} +11 -12
- package/dist/{inspect-52COR3TB.js → inspect-O3KNTVYU.js} +30 -31
- package/dist/{installer-ARMP4WLF.js → installer-JC737YVC.js} +4 -4
- package/dist/{keyframes-3UMSTEYW.js → keyframes-4YEMPCE3.js} +6 -6
- package/dist/{lambda-FYHLXH4H.js → lambda-6RI6AZCI.js} +10 -11
- package/dist/{layout-QKWAPDPV.js → layout-U323JUYY.js} +30 -31
- package/dist/{lint-WJCUB2CR.js → lint-HL2ZMYYD.js} +7 -8
- package/dist/{lintProject-FPLCK7VP.js → lintProject-6TML32JZ.js} +1 -2
- package/dist/{list-4FQ4BDXW.js → list-YVRLEZ5C.js} +3 -3
- package/dist/{localPage-YINL6OV7.js → localPage-Z4A2OOHF.js} +6 -7
- package/dist/{login-P74VBTVA.js → login-Z53XVXB2.js} +4 -4
- package/dist/{look-QCOMYMSD.js → look-QAEW6NLB.js} +11 -12
- package/dist/{manager-V2ZJSF3Q.js → manager-Y5JESME2.js} +7 -8
- package/dist/{measure-7IODZ7VY.js → measure-QAPM6I7P.js} +11 -11
- package/dist/{media-treatment-UJIFSAXV.js → media-treatment-QBSD7Z4H.js} +12 -13
- package/dist/{media-use-4Y5XRY6B.js → media-use-HWZY3QEN.js} +3 -3
- package/dist/{models-WPBGJ7K6.js → models-MKZN7KP3.js} +10 -11
- package/dist/{motionShot-DZZXLIIT.js → motionShot-EF2FD7HF.js} +15 -16
- package/dist/{normalize-audio-QS2GZ5IT.js → normalize-audio-UI7VGKNU.js} +31 -12
- package/dist/{open-SIWIC52J.js → open-PUWUKUNK.js} +12 -12
- package/dist/{parakeetRunner-YUUCCA3S.js → parakeetRunner-3XQTNEZS.js} +11 -12
- package/dist/{pipeline-AJKIZGUM.js → pipeline-UECOYEZ2.js} +9 -10
- package/dist/{play-4EF3JLTU.js → play-4KFBSJLJ.js} +20 -21
- package/dist/{preflight-LSDOTWZ5.js → preflight-NREEVZKH.js} +7 -8
- package/dist/{present-AOLHT3YC.js → present-5GDW3P4H.js} +15 -16
- package/dist/{preview-WP5VAX3M.js → preview-MU3SNNHO.js} +19 -20
- package/dist/{probe-WZ3OWMKG.js → probe-ZZ5F7LF4.js} +11 -12
- package/dist/{producer-C72VSLBR.js → producer-AMLHR4XV.js} +1 -1
- package/dist/{projectConfig-LPC7WK4W.js → projectConfig-LQDSRYHS.js} +7 -7
- package/dist/{publication-QGBUXKB2.js → publication-VFQY5MS4.js} +2 -2
- package/dist/{publish-KA2LPVL7.js → publish-KFUMQFD4.js} +11 -12
- package/dist/{remove-background-MC6HXEAW.js → remove-background-GXQLMKYN.js} +10 -11
- package/dist/{render-RPMLSL7M.js → render-5YMMU4K3.js} +5 -5
- package/dist/{render-IQUQ7EKS.js → render-U63G4NFP.js} +25 -26
- package/dist/{render-2STR3XR5.js → render-X2TJ52JS.js} +32 -33
- package/dist/{render-batch-2AWWGFNK.js → render-batch-EJCIXNZ4.js} +5 -5
- package/dist/renderSetupWorker.js +5 -3
- package/dist/{resolver-D3Q6LTIO.js → resolver-3AZ6BDNT.js} +5 -5
- package/dist/{reverse-62TKSQ7Q.js → reverse-SGQLQDPZ.js} +1 -1
- package/dist/{run-GQNVIYMD.js → run-WZP6HXIH.js} +2 -2
- package/dist/{screenshotCapture-MM5V4H7M.js → screenshotCapture-YHT6OFSL.js} +7 -8
- package/dist/{sherpa-ZHAABYE3.js → sherpa-DHJ4KV3O.js} +10 -11
- package/dist/skills/hyperframes-cli/SKILL.md +3 -1
- package/dist/{skills-BYABSOL3.js → skills-PSIYCWQF.js} +6 -6
- package/dist/{skillsUpdateCheck-FKOS3ME7.js → skillsUpdateCheck-INFQ6JY4.js} +3 -3
- package/dist/{snapshot-N5O5VEBT.js → snapshot-BRJWWBVL.js} +70 -54
- package/dist/{src-272JLFKW.js → src-4HGQRHW6.js} +5 -6
- package/dist/{src-O6ITP7WU.js → src-Q4HPEI72.js} +8 -9
- package/dist/{start-K2LGEUB5.js → start-BF77FALB.js} +19 -20
- package/dist/{staticProjectServer-C7A4W2B4.js → staticProjectServer-MJGRVAHU.js} +18 -19
- package/dist/{status-USHH6OD5.js → status-GKDPASRO.js} +11 -11
- package/dist/studio/assets/{hyperframes-player-Bb-Fbf5k.js → hyperframes-player-pLs7eSzg.js} +1 -1
- package/dist/studio/assets/{index-Cap2SGKw.js → index-DZ7OLB7p.js} +1 -1
- package/dist/studio/assets/{index-BZuKog_A.js → index-D_iVCwL3.js} +116 -116
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-FVBB2MVZ.js → studio-api-UOW3KWGH.js} +9 -10
- package/dist/{studioServer-SFN7YUNV.js → studioServer-6HZXHHM2.js} +50 -51
- package/dist/{sync-JUDSPP46.js → sync-STGNZI3G.js} +11 -12
- package/dist/{telemetry-3DEZK5Q3.js → telemetry-3CL4XRJJ.js} +3 -3
- package/dist/{templates-3FJRJ6KB.js → templates-GK4UAT6M.js} +11 -11
- package/dist/{timeline-P4CS4INR.js → timeline-QPB6QGXD.js} +19 -20
- package/dist/{tokens-EFAVVV56.js → tokens-S7IZD453.js} +2 -2
- package/dist/{transcribe-JKV42B3Q.js → transcribe-LPYK5H76.js} +23 -24
- package/dist/{transcribe-YTBSMCFG.js → transcribe-TL74MCTG.js} +9 -10
- package/dist/{update-6QVOSVBW.js → update-WXPQPKMO.js} +7 -7
- package/dist/{updateCheck-2FWJ2X62.js → updateCheck-QRNGICLU.js} +2 -2
- package/dist/{upgrade-AUHNDKNP.js → upgrade-NH3NQOMG.js} +3 -3
- package/dist/{upload-HMRWGZIO.js → upload-YQMBLKH5.js} +3 -1
- package/dist/{urlDownloader-6ZSSYTOY.js → urlDownloader-JELHNEVH.js} +5 -6
- package/dist/{validate-DKEWYJ3V.js → validate-SRIEIBQV.js} +23 -24
- package/dist/{video-N6AEYBUW.js → video-ZMNAGSOC.js} +7 -8
- package/dist/{voices-MT7CM6O5.js → voices-YVWEHLRS.js} +19 -20
- package/dist/warmCheck.js +40 -41
- package/package.json +1 -1
- package/dist/chunk-CAD6G75K.js +0 -29
- package/dist/chunk-CZGHFATT.js +0 -31
- package/dist/chunk-J3G5KEPY.js +0 -5035
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QBV3XGXU.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4WV3XDN4.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-HOCC4J5C.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-2V25MA6C.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -43,18 +43,25 @@ function closestNames(input, candidates, limit = 5) {
|
|
|
43
43
|
distance: editDistance(input, name)
|
|
44
44
|
})).filter(({ shared }) => shared > 0).sort((a, b) => b.shared - a.shared || a.distance - b.distance || a.name.localeCompare(b.name)).slice(0, limit).map(({ name }) => name);
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
search: "catalog",
|
|
48
|
-
find: "catalog",
|
|
49
|
-
browse: "catalog",
|
|
50
|
-
registry: "catalog",
|
|
51
|
-
list: "catalog",
|
|
52
|
-
install: "add"
|
|
46
|
+
var COMMAND_REDIRECTS = {
|
|
47
|
+
search: { command: "catalog" },
|
|
48
|
+
find: { command: "catalog" },
|
|
49
|
+
browse: { command: "catalog" },
|
|
50
|
+
registry: { command: "catalog" },
|
|
51
|
+
list: { command: "catalog" },
|
|
52
|
+
install: { command: "add" },
|
|
53
|
+
captions: {
|
|
54
|
+
command: "transcribe",
|
|
55
|
+
then: "then read ../hyperframes/references/captions.md"
|
|
56
|
+
}
|
|
53
57
|
};
|
|
54
|
-
function
|
|
55
|
-
const
|
|
56
|
-
return
|
|
58
|
+
function commandRedirect(input, candidates) {
|
|
59
|
+
const row = COMMAND_REDIRECTS[input];
|
|
60
|
+
return row !== void 0 && [...candidates].includes(row.command) ? row : void 0;
|
|
57
61
|
}
|
|
62
|
+
var REDIRECTS_WITH_NEXT_STEP = Object.keys(COMMAND_REDIRECTS).filter(
|
|
63
|
+
(word) => COMMAND_REDIRECTS[word].then
|
|
64
|
+
);
|
|
58
65
|
function fileHint(word, path, names) {
|
|
59
66
|
if (path.length === 0 || names.length === 0 || !existsSync(word)) return void 0;
|
|
60
67
|
const group = ["hyperframes", ...path].join(" ");
|
|
@@ -64,6 +71,6 @@ function fileHint(word, path, names) {
|
|
|
64
71
|
export {
|
|
65
72
|
closestMatch,
|
|
66
73
|
closestNames,
|
|
67
|
-
|
|
74
|
+
commandRedirect,
|
|
68
75
|
fileHint
|
|
69
76
|
};
|
|
@@ -6,7 +6,7 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
findCompositionDimensions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-35STY5XW.js";
|
|
10
10
|
import {
|
|
11
11
|
outputResolutionForSize
|
|
12
12
|
} from "./chunk-CUCP7FKH.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-TSYRN646.js";
|
|
12
12
|
import {
|
|
13
13
|
fetchLocalPageUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NYN24QRB.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureCaptureDirSync,
|
|
17
17
|
writeCaptureFileSync
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-AWDFDFI3.js";
|
|
26
26
|
import {
|
|
27
27
|
isBlockedNetworkHost
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HVACLBWZ.js";
|
|
29
29
|
import {
|
|
30
30
|
DOMParser,
|
|
31
31
|
parseHTML
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
jsonArg,
|
|
9
9
|
runMeasure,
|
|
10
10
|
videoArg
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PPWKGSEV.js";
|
|
12
12
|
import {
|
|
13
13
|
makeOutputFolder
|
|
14
14
|
} from "./chunk-3S27CPV7.js";
|
|
@@ -18,10 +18,13 @@ import {
|
|
|
18
18
|
probeVideo,
|
|
19
19
|
round,
|
|
20
20
|
runFfmpeg
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PIPBEVLP.js";
|
|
22
22
|
import {
|
|
23
23
|
defineCommand
|
|
24
24
|
} from "./chunk-DL4OD7IA.js";
|
|
25
|
+
import {
|
|
26
|
+
toneMapReferenceNits
|
|
27
|
+
} from "./chunk-56XJDA3H.js";
|
|
25
28
|
|
|
26
29
|
// src/commands/measure/probe.ts
|
|
27
30
|
import { execFileSync } from "child_process";
|
|
@@ -58,7 +61,7 @@ function normalize(info, out) {
|
|
|
58
61
|
"install an ffmpeg built with libzimg, e.g. brew install ffmpeg"
|
|
59
62
|
);
|
|
60
63
|
filters.push(
|
|
61
|
-
|
|
64
|
+
`zscale=t=linear:npl=${toneMapReferenceNits(info.transfer ? [info.transfer] : [])},format=gbrpf32le,zscale=p=bt709,tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv`
|
|
62
65
|
);
|
|
63
66
|
}
|
|
64
67
|
makeOutputFolder(dirname(out));
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
emitWords,
|
|
22
22
|
getPreparedWavDurationSeconds,
|
|
23
23
|
prepareWav
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6LMZ677L.js";
|
|
25
25
|
import {
|
|
26
26
|
stoppedByCancelSignal
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZII5GCHN.js";
|
|
28
28
|
import {
|
|
29
29
|
verifies
|
|
30
30
|
} from "./chunk-RZ6CXJ56.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-6BEFEWFB.js";
|
|
16
16
|
import {
|
|
17
17
|
trackSkillsInstallSkipped
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QBV3XGXU.js";
|
|
19
19
|
import {
|
|
20
20
|
diag
|
|
21
21
|
} from "./chunk-MCDNAIFF.js";
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
isCoreSkill,
|
|
37
37
|
presentSkills,
|
|
38
38
|
retiredSkillNotice
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-JQTQM6RE.js";
|
|
40
40
|
import {
|
|
41
41
|
NO_UPDATE_NOTICE,
|
|
42
42
|
withMeta
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6AFDBTX6.js";
|
|
44
44
|
import {
|
|
45
45
|
failureMessage,
|
|
46
46
|
jsonFailure
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
} from "./chunk-66W5IWLO.js";
|
|
52
52
|
import {
|
|
53
53
|
VERSION
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-GOLNW4NI.js";
|
|
55
55
|
|
|
56
56
|
// src/commands/skills.ts
|
|
57
57
|
import { execFileSync, spawn } from "child_process";
|
|
@@ -7,12 +7,12 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
findCuts,
|
|
9
9
|
signatures
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5IUSAGDH.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonArg,
|
|
13
13
|
num,
|
|
14
14
|
runMeasure
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PPWKGSEV.js";
|
|
16
16
|
import {
|
|
17
17
|
makeOutputFolder
|
|
18
18
|
} from "./chunk-3S27CPV7.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
publicVoices,
|
|
24
24
|
runJob,
|
|
25
25
|
senderScope
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KAUUM3TL.js";
|
|
27
27
|
import {
|
|
28
28
|
Fix,
|
|
29
29
|
probeSeconds,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
round,
|
|
33
33
|
runFfmpeg,
|
|
34
34
|
videoClip
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-PIPBEVLP.js";
|
|
36
36
|
import {
|
|
37
37
|
loadSharp
|
|
38
38
|
} from "./chunk-NL4RCLQF.js";
|
|
@@ -312,8 +312,8 @@ async function uploaded(paths) {
|
|
|
312
312
|
const ids = /* @__PURE__ */ new Map();
|
|
313
313
|
if (!paths.length) return ids;
|
|
314
314
|
const { createCloudClient } = await import("./cloud-D3WTNTF2.js");
|
|
315
|
-
const { uploadAssetViaDirectUpload } = await import("./upload-
|
|
316
|
-
const { getMimeType } = await import("./dist-
|
|
315
|
+
const { uploadAssetViaDirectUpload } = await import("./upload-YQMBLKH5.js");
|
|
316
|
+
const { getMimeType } = await import("./dist-K4BOTYAM.js");
|
|
317
317
|
const client = await createCloudClient();
|
|
318
318
|
for (const path of paths) {
|
|
319
319
|
const asset = await uploadAssetViaDirectUpload({
|
|
@@ -17,10 +17,6 @@ import {
|
|
|
17
17
|
resolveLocalAssetCandidates,
|
|
18
18
|
resolveProjectRelativeSrc
|
|
19
19
|
} from "./chunk-WVRAFHJU.js";
|
|
20
|
-
import {
|
|
21
|
-
TIMING_TOLERANCE_SECONDS,
|
|
22
|
-
resolveCompositionDuration
|
|
23
|
-
} from "./chunk-CZGHFATT.js";
|
|
24
20
|
import {
|
|
25
21
|
findFfBinary
|
|
26
22
|
} from "./chunk-HYRPH6LL.js";
|
|
@@ -3719,10 +3715,33 @@ import { parse } from "acorn";
|
|
|
3719
3715
|
var import_postcss_selector_parser = __toESM(require_dist(), 1);
|
|
3720
3716
|
import postcss from "postcss";
|
|
3721
3717
|
import { parse as parse2, parseExpressionAt } from "acorn";
|
|
3718
|
+
import postcss2 from "postcss";
|
|
3722
3719
|
import { parse as parse3 } from "acorn";
|
|
3723
3720
|
var import_postcss_selector_parser2 = __toESM(require_dist(), 1);
|
|
3724
|
-
|
|
3721
|
+
|
|
3722
|
+
// ../parsers/dist/compositionDuration.js
|
|
3723
|
+
var TIMING_TOLERANCE_SECONDS = 0.05;
|
|
3724
|
+
var isPositiveFinite = (value) => value !== null && Number.isFinite(value) && value > 0;
|
|
3725
|
+
function resolveCompositionDuration(input) {
|
|
3726
|
+
const pendingClips = input.clipEndsSeconds.filter((end) => end === null).length;
|
|
3727
|
+
if (isPositiveFinite(input.authoredDurationSeconds)) {
|
|
3728
|
+
return { seconds: input.authoredDurationSeconds, source: "authored", pendingClips };
|
|
3729
|
+
}
|
|
3730
|
+
const known = input.clipEndsSeconds.filter(isPositiveFinite);
|
|
3731
|
+
if (known.length > 0) {
|
|
3732
|
+
return { seconds: Math.max(...known), source: "derived", pendingClips };
|
|
3733
|
+
}
|
|
3734
|
+
return {
|
|
3735
|
+
seconds: null,
|
|
3736
|
+
source: "unresolved",
|
|
3737
|
+
pendingClips,
|
|
3738
|
+
reason: pendingClips > 0 ? "every clip's length is still pending" : "no authored duration and no clip with a length"
|
|
3739
|
+
};
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
// ../lint/dist/index.js
|
|
3725
3743
|
import postcss3 from "postcss";
|
|
3744
|
+
import postcss4 from "postcss";
|
|
3726
3745
|
|
|
3727
3746
|
// ../parsers/dist/topLevelElements.js
|
|
3728
3747
|
var NON_RENDERED_TAGS = /* @__PURE__ */ new Set(["script", "style", "template", "noscript", "link", "meta"]);
|
|
@@ -3760,8 +3779,11 @@ function trackKindOf(node) {
|
|
|
3760
3779
|
|
|
3761
3780
|
// ../lint/dist/index.js
|
|
3762
3781
|
import { createHash } from "crypto";
|
|
3763
|
-
import { existsSync as
|
|
3764
|
-
import {
|
|
3782
|
+
import { existsSync as existsSync3, readdirSync } from "fs";
|
|
3783
|
+
import { existsSync, readFileSync } from "fs";
|
|
3784
|
+
import { join } from "path";
|
|
3785
|
+
import ignore from "ignore";
|
|
3786
|
+
import { dirname as dirname2, extname, join as join4, relative as relative2, resolve } from "path";
|
|
3765
3787
|
|
|
3766
3788
|
// ../parsers/dist/referenceResolver.js
|
|
3767
3789
|
var COMPOSITION_ATTRIBUTES2 = Object.freeze({
|
|
@@ -3895,12 +3917,12 @@ function resolveReferencedDuration(doc, el, startCache, visiting) {
|
|
|
3895
3917
|
}
|
|
3896
3918
|
|
|
3897
3919
|
// ../lint/dist/index.js
|
|
3898
|
-
import
|
|
3920
|
+
import postcss5 from "postcss";
|
|
3899
3921
|
import { execFile } from "child_process";
|
|
3900
|
-
import { existsSync } from "fs";
|
|
3901
|
-
import { join } from "path";
|
|
3922
|
+
import { existsSync as existsSync2 } from "fs";
|
|
3923
|
+
import { join as join2 } from "path";
|
|
3902
3924
|
import { realpathSync } from "fs";
|
|
3903
|
-
import { dirname, join as
|
|
3925
|
+
import { dirname, join as join3, relative } from "path";
|
|
3904
3926
|
var COMPOSITION_ID_IN_CSS_PATTERN = /\[data-composition-id=["']([^"']+)["']\]/g;
|
|
3905
3927
|
var TIMELINE_REGISTRY_INIT_PATTERN = /window\.__timelines\s*=\s*window\.__timelines\s*\|\|\s*\{\}|window\.__timelines\s*=\s*\{\}|window\.__timelines\s*\?\?=\s*\{\}/i;
|
|
3906
3928
|
var TIMELINE_REGISTRY_OBJECT_LITERAL_PATTERN = /window\.__timelines\s*=\s*\{\s*(?:["'][^"']+["']|[A-Za-z_$][\w$]*)\s*:/i;
|
|
@@ -8766,17 +8788,30 @@ function indexInsideNonIifeRange(index, source, ranges) {
|
|
|
8766
8788
|
(range) => index > range.start && index < range.end && !isIifeBody(source, range)
|
|
8767
8789
|
);
|
|
8768
8790
|
}
|
|
8791
|
+
function cssRuleSubjects(styles) {
|
|
8792
|
+
const rules = [];
|
|
8793
|
+
for (const style of styles) {
|
|
8794
|
+
let root;
|
|
8795
|
+
try {
|
|
8796
|
+
root = postcss2.parse(style.content);
|
|
8797
|
+
} catch {
|
|
8798
|
+
continue;
|
|
8799
|
+
}
|
|
8800
|
+
root.walkRules((rule) => {
|
|
8801
|
+
const subjects = rule.selectors.flatMap(
|
|
8802
|
+
(selector) => /[#.][a-zA-Z0-9_-]+$/.exec(selector.trim())?.[0] ?? []
|
|
8803
|
+
);
|
|
8804
|
+
if (subjects.length) rules.push({ declarations: rule.nodes.map(String), subjects });
|
|
8805
|
+
});
|
|
8806
|
+
}
|
|
8807
|
+
return rules;
|
|
8808
|
+
}
|
|
8769
8809
|
function collectCssOpacityZeroSelectors(styles, tags) {
|
|
8770
8810
|
const selectors = /* @__PURE__ */ new Set();
|
|
8771
8811
|
const opacityExactlyZero = /opacity\s*:\s*0(?:\.0+)?\s*(?:;|$)/;
|
|
8772
|
-
for (const
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
)) {
|
|
8776
|
-
if (body && opacityExactlyZero.test(body)) {
|
|
8777
|
-
selectors.add((selector ?? "").trim());
|
|
8778
|
-
}
|
|
8779
|
-
}
|
|
8812
|
+
for (const { declarations, subjects } of cssRuleSubjects(styles)) {
|
|
8813
|
+
if (!declarations.some((declaration) => opacityExactlyZero.test(declaration))) continue;
|
|
8814
|
+
for (const subject of subjects) selectors.add(subject);
|
|
8780
8815
|
}
|
|
8781
8816
|
for (const tag of tags) {
|
|
8782
8817
|
const inlineStyle = readAttr(tag.raw, "style");
|
|
@@ -8984,17 +9019,13 @@ ${right.raw}`)
|
|
|
8984
9019
|
const findings = [];
|
|
8985
9020
|
const cssTranslateSelectors = /* @__PURE__ */ new Map();
|
|
8986
9021
|
const cssScaleSelectors = /* @__PURE__ */ new Map();
|
|
8987
|
-
for (const
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
)
|
|
8991
|
-
|
|
8992
|
-
if (
|
|
8993
|
-
|
|
8994
|
-
if (/translate/i.test(transformVal))
|
|
8995
|
-
cssTranslateSelectors.set((selector ?? "").trim(), transformVal);
|
|
8996
|
-
if (/scale/i.test(transformVal))
|
|
8997
|
-
cssScaleSelectors.set((selector ?? "").trim(), transformVal);
|
|
9022
|
+
for (const { declarations, subjects } of cssRuleSubjects(styles)) {
|
|
9023
|
+
const tMatch = declarations.join(";").match(/transform\s*:\s*([^;]+)/);
|
|
9024
|
+
if (!tMatch || !tMatch[1]) continue;
|
|
9025
|
+
const transformVal = tMatch[1].trim();
|
|
9026
|
+
for (const subject of subjects) {
|
|
9027
|
+
if (/translate/i.test(transformVal)) cssTranslateSelectors.set(subject, transformVal);
|
|
9028
|
+
if (/scale/i.test(transformVal)) cssScaleSelectors.set(subject, transformVal);
|
|
8998
9029
|
}
|
|
8999
9030
|
}
|
|
9000
9031
|
for (const tag of tags) {
|
|
@@ -10194,7 +10225,7 @@ function collectTextureCss(styles) {
|
|
|
10194
10225
|
for (const style of styles) {
|
|
10195
10226
|
let root;
|
|
10196
10227
|
try {
|
|
10197
|
-
root =
|
|
10228
|
+
root = postcss3.parse(style.content);
|
|
10198
10229
|
} catch {
|
|
10199
10230
|
continue;
|
|
10200
10231
|
}
|
|
@@ -10349,7 +10380,7 @@ var GENERIC_FAMILIES = /* @__PURE__ */ new Set([
|
|
|
10349
10380
|
]);
|
|
10350
10381
|
function parseFontCss(css) {
|
|
10351
10382
|
try {
|
|
10352
|
-
return
|
|
10383
|
+
return postcss4.parse(css);
|
|
10353
10384
|
} catch {
|
|
10354
10385
|
return null;
|
|
10355
10386
|
}
|
|
@@ -10391,7 +10422,7 @@ function collectFontCustomProperties(styles) {
|
|
|
10391
10422
|
return properties;
|
|
10392
10423
|
}
|
|
10393
10424
|
function resolveUsedFontNames(value, properties, resolving = /* @__PURE__ */ new Set()) {
|
|
10394
|
-
return
|
|
10425
|
+
return postcss4.list.comma(value).flatMap((part) => {
|
|
10395
10426
|
const variable = /^var\(\s*(--[^\s,()]+)\s*(?:,[\s\S]*)?\)$/i.exec(part.trim());
|
|
10396
10427
|
if (!variable) {
|
|
10397
10428
|
const name = normalizeUsedFontName(part);
|
|
@@ -10553,7 +10584,7 @@ function uniqueFontLocation(styles, families, locate) {
|
|
|
10553
10584
|
const properties = collectFontCustomProperties(styles);
|
|
10554
10585
|
for (const style of styles) {
|
|
10555
10586
|
try {
|
|
10556
|
-
|
|
10587
|
+
postcss4.parse(style.content).walkDecls(FONT_FAMILY_PROPS, (decl) => {
|
|
10557
10588
|
const named = resolveUsedFontNames(usedFamilyList(decl), properties);
|
|
10558
10589
|
if (!named.some((name) => families.includes(name))) return;
|
|
10559
10590
|
locations.push(locate(style, decl.source?.start?.offset));
|
|
@@ -11046,6 +11077,13 @@ async function lintMediaUrls(html, options = {}) {
|
|
|
11046
11077
|
function shouldBlockRender(strictErrors, strictAll, totalErrors, totalWarnings) {
|
|
11047
11078
|
return strictErrors && totalErrors > 0 || strictAll && (totalErrors > 0 || totalWarnings > 0);
|
|
11048
11079
|
}
|
|
11080
|
+
var DEFAULT_PROJECT_IGNORE = ["/renders/", "/snapshots/", ".*"];
|
|
11081
|
+
function projectIgnore(projectDir) {
|
|
11082
|
+
const matcher = ignore().add(DEFAULT_PROJECT_IGNORE);
|
|
11083
|
+
const ignorePath = join(projectDir, ".hyperframesignore");
|
|
11084
|
+
if (existsSync(ignorePath)) matcher.add(readFileSync(ignorePath, "utf-8"));
|
|
11085
|
+
return matcher;
|
|
11086
|
+
}
|
|
11049
11087
|
var PROBE_TIMEOUT_MS = 4e3;
|
|
11050
11088
|
var PROBE_CONCURRENCY = 8;
|
|
11051
11089
|
function execFileAsync(file, args) {
|
|
@@ -11075,7 +11113,7 @@ function resolveLocalVideoReference(projectDir, rawSrc, compSrcPath) {
|
|
|
11075
11113
|
if (isUnresolvedAssetPlaceholder(rawSrc)) return null;
|
|
11076
11114
|
const src = cleanAssetUrl(rawSrc);
|
|
11077
11115
|
if (!src || isRemoteOrInlineUrl(src)) return null;
|
|
11078
|
-
const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) =>
|
|
11116
|
+
const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) => existsSync2(join2(projectDir, path))) : src;
|
|
11079
11117
|
const asset = resolveExistingLocalAsset(projectDir, rootRelative);
|
|
11080
11118
|
return asset ? { resolved: asset.resolved, src } : null;
|
|
11081
11119
|
}
|
|
@@ -11271,7 +11309,7 @@ function isAuthoredScript(path) {
|
|
|
11271
11309
|
}
|
|
11272
11310
|
function localScript(projectDir, src, compSrcPath) {
|
|
11273
11311
|
if (/^(?:[a-z][a-z\d+.-]*:|\/\/|#)/i.test(src)) return;
|
|
11274
|
-
const besideFile = src.startsWith("/") ? src :
|
|
11312
|
+
const besideFile = src.startsWith("/") ? src : join3(dirname(compSrcPath ?? "index.html"), src);
|
|
11275
11313
|
const asset = resolveExistingLocalAsset(projectDir, besideFile);
|
|
11276
11314
|
if (!asset) return;
|
|
11277
11315
|
try {
|
|
@@ -11342,7 +11380,7 @@ function collectLocalStylesheets(projectDir, document, compSrcPath) {
|
|
|
11342
11380
|
if (!rel.split(/\s+/).some((part) => part.toLowerCase() === "stylesheet")) continue;
|
|
11343
11381
|
const href = link.getAttribute("href") ?? "";
|
|
11344
11382
|
if (!isLocalStylesheetHref(href)) continue;
|
|
11345
|
-
const besideFile = compSrcPath ?
|
|
11383
|
+
const besideFile = compSrcPath ? join4(dirname2(compSrcPath), href) : href;
|
|
11346
11384
|
const stylesheet = resolveExistingLocalAsset(projectDir, besideFile) ?? (compSrcPath && staysInsideProjectRoot(href) ? resolveExistingLocalAsset(projectDir, href) : null);
|
|
11347
11385
|
if (!stylesheet) continue;
|
|
11348
11386
|
const read = readProjectFile(stylesheet.resolved);
|
|
@@ -11359,11 +11397,17 @@ function collectExternalStyles(projectDir, html, compSrcPath) {
|
|
|
11359
11397
|
document,
|
|
11360
11398
|
compSrcPath
|
|
11361
11399
|
)) {
|
|
11362
|
-
styles.push({ href, content, file:
|
|
11400
|
+
styles.push({ href, content, file: join4(projectDir, rootRelativePath), rootRelativePath });
|
|
11363
11401
|
}
|
|
11364
11402
|
return styles;
|
|
11365
11403
|
}
|
|
11366
11404
|
var MAX_EXTERNAL_SCRIPT_BYTES = 1e6;
|
|
11405
|
+
function linkedSources(projectDir, html, compSrcPath) {
|
|
11406
|
+
return {
|
|
11407
|
+
externalStyles: collectExternalStyles(projectDir, html, compSrcPath),
|
|
11408
|
+
externalScripts: collectExternalScripts(projectDir, html, compSrcPath)
|
|
11409
|
+
};
|
|
11410
|
+
}
|
|
11367
11411
|
function collectExternalScripts(projectDir, html, compSrcPath) {
|
|
11368
11412
|
const scripts = [];
|
|
11369
11413
|
const { document } = parseHTML(html);
|
|
@@ -11371,7 +11415,7 @@ function collectExternalScripts(projectDir, html, compSrcPath) {
|
|
|
11371
11415
|
const src = element.getAttribute("src") ?? "";
|
|
11372
11416
|
if (!isLocalStylesheetHref(src) || /\.min\.m?js(?:[?#]|$)/i.test(src)) continue;
|
|
11373
11417
|
const path = src.split(/[?#]/)[0] ?? src;
|
|
11374
|
-
const besideFile = compSrcPath ?
|
|
11418
|
+
const besideFile = compSrcPath ? join4(dirname2(compSrcPath), path) : path;
|
|
11375
11419
|
const script = resolveExistingLocalAsset(projectDir, besideFile) ?? (compSrcPath && staysInsideProjectRoot(path) ? resolveExistingLocalAsset(projectDir, path) : null);
|
|
11376
11420
|
if (!script) continue;
|
|
11377
11421
|
const read = readProjectFile(script.resolved);
|
|
@@ -11381,7 +11425,7 @@ function collectExternalScripts(projectDir, html, compSrcPath) {
|
|
|
11381
11425
|
src,
|
|
11382
11426
|
attrs,
|
|
11383
11427
|
content: read.text,
|
|
11384
|
-
file:
|
|
11428
|
+
file: join4(projectDir, script.rootRelativePath),
|
|
11385
11429
|
rootRelativePath: script.rootRelativePath
|
|
11386
11430
|
});
|
|
11387
11431
|
}
|
|
@@ -11410,12 +11454,12 @@ function collectCssSources(projectDir, html, compSrcPath) {
|
|
|
11410
11454
|
function resolveCssAssetCandidates(projectDir, url, htmlCompSrcPath, cssRootRelativePath) {
|
|
11411
11455
|
if (url.startsWith("/")) return resolveLocalAssetCandidates(projectDir, url);
|
|
11412
11456
|
if (cssRootRelativePath) {
|
|
11413
|
-
return resolveLocalAssetCandidates(projectDir,
|
|
11457
|
+
return resolveLocalAssetCandidates(projectDir, join4(dirname2(cssRootRelativePath), url));
|
|
11414
11458
|
}
|
|
11415
11459
|
if (htmlCompSrcPath) {
|
|
11416
11460
|
return resolveLocalAssetCandidates(
|
|
11417
11461
|
projectDir,
|
|
11418
|
-
rewriteAssetPath(htmlCompSrcPath, url, (path) =>
|
|
11462
|
+
rewriteAssetPath(htmlCompSrcPath, url, (path) => existsSync3(join4(projectDir, path)))
|
|
11419
11463
|
);
|
|
11420
11464
|
}
|
|
11421
11465
|
return resolveLocalAssetCandidates(projectDir, url);
|
|
@@ -11476,9 +11520,8 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11476
11520
|
...hostOptions,
|
|
11477
11521
|
filePath: indexPath,
|
|
11478
11522
|
compSrcPath: rootFile,
|
|
11479
|
-
|
|
11480
|
-
projectFontFamilies
|
|
11481
|
-
externalScripts: collectExternalScripts(projectDir, rootHtml, rootCompSrcPath)
|
|
11523
|
+
...linkedSources(projectDir, rootHtml, rootCompSrcPath),
|
|
11524
|
+
projectFontFamilies
|
|
11482
11525
|
});
|
|
11483
11526
|
results.push({ file: rootFile, result: rootResult, contentHash: contentDigest(rootHtml) });
|
|
11484
11527
|
totalErrors += rootResult.errorCount;
|
|
@@ -11486,14 +11529,16 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11486
11529
|
totalInfos += rootResult.infoCount;
|
|
11487
11530
|
const allHtmlSources = [{ html: rootHtml, compSrcPath: rootCompSrcPath }];
|
|
11488
11531
|
const compositionsDir = resolve(projectDir, "compositions");
|
|
11489
|
-
if (!entryFile &&
|
|
11532
|
+
if (!entryFile && existsSync3(compositionsDir)) {
|
|
11533
|
+
const ignored = projectIgnore(projectDir);
|
|
11490
11534
|
const collectHtmlFiles = (dir, rel) => {
|
|
11491
11535
|
const out = [];
|
|
11492
11536
|
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
11493
11537
|
const relPath = rel ? `${rel}/${entry.name}` : entry.name;
|
|
11538
|
+
if (ignored.ignores(`compositions/${relPath}${entry.isDirectory() ? "/" : ""}`)) continue;
|
|
11494
11539
|
if (entry.isDirectory()) {
|
|
11495
11540
|
if (!rel && entry.name === "components") continue;
|
|
11496
|
-
out.push(...collectHtmlFiles(
|
|
11541
|
+
out.push(...collectHtmlFiles(join4(dir, entry.name), relPath));
|
|
11497
11542
|
} else if (entry.isFile() && entry.name.endsWith(".html") && !entry.name.startsWith("._")) {
|
|
11498
11543
|
out.push(relPath);
|
|
11499
11544
|
}
|
|
@@ -11502,7 +11547,7 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11502
11547
|
};
|
|
11503
11548
|
const files = collectHtmlFiles(compositionsDir, "").sort();
|
|
11504
11549
|
for (const file of files) {
|
|
11505
|
-
const filePath =
|
|
11550
|
+
const filePath = join4(compositionsDir, file);
|
|
11506
11551
|
const html = readTextFile(filePath);
|
|
11507
11552
|
const compSrcPath = `compositions/${file}`;
|
|
11508
11553
|
allHtmlSources.push({ html, compSrcPath });
|
|
@@ -11512,9 +11557,8 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11512
11557
|
filePath,
|
|
11513
11558
|
isSubComposition: true,
|
|
11514
11559
|
compSrcPath,
|
|
11515
|
-
|
|
11516
|
-
projectFontFamilies
|
|
11517
|
-
externalScripts: collectExternalScripts(projectDir, html, compSrcPath)
|
|
11560
|
+
...linkedSources(projectDir, html, compSrcPath),
|
|
11561
|
+
projectFontFamilies
|
|
11518
11562
|
});
|
|
11519
11563
|
results.push({
|
|
11520
11564
|
file: `compositions/${file}`,
|
|
@@ -11616,7 +11660,7 @@ function lintProjectAudioFiles(projectDir, htmlSources) {
|
|
|
11616
11660
|
function urlSafeSrcOf(projectDir, rootRelative) {
|
|
11617
11661
|
if (!/[?#]/.test(rootRelative)) return null;
|
|
11618
11662
|
const literal = resolve(projectDir, rootRelative.replace(/^\//, ""));
|
|
11619
|
-
if (!
|
|
11663
|
+
if (!existsSync3(literal)) return null;
|
|
11620
11664
|
return encodeUrlPath(rootRelative);
|
|
11621
11665
|
}
|
|
11622
11666
|
var urlSafeHint = (safe) => `The file exists, but a "#" or "?" in a src ends the file name there. Write the src as "${safe}".`;
|
|
@@ -11632,8 +11676,8 @@ function lintAudioSrcNotFound(projectDir, htmlSources) {
|
|
|
11632
11676
|
const src = mediaSrcOf(match);
|
|
11633
11677
|
if (/^(https?:|data:|blob:)/i.test(src)) continue;
|
|
11634
11678
|
if (isUnresolvedAssetPlaceholder(src)) continue;
|
|
11635
|
-
const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) =>
|
|
11636
|
-
if (!
|
|
11679
|
+
const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) => existsSync3(join4(projectDir, path))) : src;
|
|
11680
|
+
if (!existsSync3(resolveProjectRelativeSrc(rootRelative, projectDir))) {
|
|
11637
11681
|
const safe = urlSafeSrcOf(projectDir, rootRelative);
|
|
11638
11682
|
if (safe) urlSafe.set(src, safe);
|
|
11639
11683
|
const file = sourceFile(projectDir, compSrcPath);
|
|
@@ -11669,13 +11713,13 @@ function lintMissingLocalAsset(projectDir, htmlSources) {
|
|
|
11669
11713
|
const src = cleanAssetUrl(rawSrc);
|
|
11670
11714
|
if (!src) continue;
|
|
11671
11715
|
if (isRemoteOrInlineUrl(src)) continue;
|
|
11672
|
-
const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) =>
|
|
11716
|
+
const rootRelative = compSrcPath ? rewriteAssetPath(compSrcPath, src, (path) => existsSync3(join4(projectDir, path))) : src;
|
|
11673
11717
|
const resolvedAsset = resolveExistingLocalAsset(projectDir, rootRelative);
|
|
11674
11718
|
if (resolvedAsset) continue;
|
|
11675
11719
|
const rawRoot = rawSrc.trim();
|
|
11676
11720
|
const safe = urlSafeSrcOf(
|
|
11677
11721
|
projectDir,
|
|
11678
|
-
compSrcPath ? rewriteAssetPath(compSrcPath, rawRoot, (path) =>
|
|
11722
|
+
compSrcPath ? rewriteAssetPath(compSrcPath, rawRoot, (path) => existsSync3(join4(projectDir, path))) : rawRoot
|
|
11679
11723
|
);
|
|
11680
11724
|
if (safe) urlSafe.set(src, safe);
|
|
11681
11725
|
const resolvedKey = resolve(projectDir, rootRelative);
|
|
@@ -11708,11 +11752,11 @@ function lintTextureMaskAssetNotFound(projectDir, htmlSources) {
|
|
|
11708
11752
|
for (const cssSource of collectCssSources(projectDir, html, compSrcPath)) {
|
|
11709
11753
|
let matches = [];
|
|
11710
11754
|
try {
|
|
11711
|
-
|
|
11755
|
+
postcss5.parse(cssSource.content).walkDecls(/^(?:-webkit-)?mask-image$/i, (declaration) => {
|
|
11712
11756
|
matches.push(...declaration.value.matchAll(CSS_URL_RE));
|
|
11713
11757
|
});
|
|
11714
11758
|
} catch (error) {
|
|
11715
|
-
if (!(error instanceof
|
|
11759
|
+
if (!(error instanceof postcss5.CssSyntaxError)) throw error;
|
|
11716
11760
|
matches = [...cssSource.content.matchAll(MASK_IMAGE_URL_RE)];
|
|
11717
11761
|
}
|
|
11718
11762
|
for (const match of matches) {
|
|
@@ -11726,7 +11770,7 @@ function lintTextureMaskAssetNotFound(projectDir, htmlSources) {
|
|
|
11726
11770
|
compSrcPath,
|
|
11727
11771
|
cssSource.rootRelativePath
|
|
11728
11772
|
);
|
|
11729
|
-
if (candidates.some(
|
|
11773
|
+
if (candidates.some(existsSync3)) continue;
|
|
11730
11774
|
missingByFile.set(file, (missingByFile.get(file) ?? /* @__PURE__ */ new Set()).add(url));
|
|
11731
11775
|
}
|
|
11732
11776
|
}
|
|
@@ -11746,8 +11790,8 @@ function nearestAncestorMatch(projectDir, cssRootRelativePath, url) {
|
|
|
11746
11790
|
const root = resolve(projectDir);
|
|
11747
11791
|
for (let dir = resolve(root, dirname2(cssRootRelativePath), ".."); ; dir = dirname2(dir)) {
|
|
11748
11792
|
if (!isWithinProjectRoot(projectDir, dir)) return null;
|
|
11749
|
-
if (resolveLocalAssetCandidates(projectDir, relative2(root,
|
|
11750
|
-
return relative2(dirname2(resolve(root, cssRootRelativePath)),
|
|
11793
|
+
if (resolveLocalAssetCandidates(projectDir, relative2(root, join4(dir, url))).some(existsSync3)) {
|
|
11794
|
+
return relative2(dirname2(resolve(root, cssRootRelativePath)), join4(dir, url)).replace(
|
|
11751
11795
|
/\\/g,
|
|
11752
11796
|
"/"
|
|
11753
11797
|
);
|
|
@@ -11766,9 +11810,9 @@ function lintLinkedStylesheetAssets(projectDir, htmlSources) {
|
|
|
11766
11810
|
)) {
|
|
11767
11811
|
let root;
|
|
11768
11812
|
try {
|
|
11769
|
-
root =
|
|
11813
|
+
root = postcss5.parse(content);
|
|
11770
11814
|
} catch (error) {
|
|
11771
|
-
if (!(error instanceof
|
|
11815
|
+
if (!(error instanceof postcss5.CssSyntaxError)) throw error;
|
|
11772
11816
|
continue;
|
|
11773
11817
|
}
|
|
11774
11818
|
root.walkDecls((declaration) => {
|
|
@@ -11778,7 +11822,7 @@ function lintLinkedStylesheetAssets(projectDir, htmlSources) {
|
|
|
11778
11822
|
if (isUnresolvedAssetPlaceholder(rawUrl)) continue;
|
|
11779
11823
|
const url = cleanAssetUrl(rawUrl);
|
|
11780
11824
|
if (!url || isRemoteOrInlineUrl(url) || url.startsWith("/")) continue;
|
|
11781
|
-
if (resolveCssAssetCandidates(projectDir, url, void 0, rootRelativePath).some(
|
|
11825
|
+
if (resolveCssAssetCandidates(projectDir, url, void 0, rootRelativePath).some(existsSync3))
|
|
11782
11826
|
continue;
|
|
11783
11827
|
const key = `${rootRelativePath}\0${url}`;
|
|
11784
11828
|
if (seen.has(key)) continue;
|
|
@@ -11787,7 +11831,7 @@ function lintLinkedStylesheetAssets(projectDir, htmlSources) {
|
|
|
11787
11831
|
findings.push({
|
|
11788
11832
|
code: "missing_stylesheet_asset",
|
|
11789
11833
|
severity: "warning",
|
|
11790
|
-
file:
|
|
11834
|
+
file: join4(projectDir, rootRelativePath),
|
|
11791
11835
|
message: `${rootRelativePath} references url(${url}), which is not found beside the stylesheet (looked in ${dirname2(rootRelativePath)}/). The browser resolves url() from the stylesheet, so the file will 404.`,
|
|
11792
11836
|
fixHint: found ? `A file exists at "${found}" relative to the stylesheet. Change the url() to that path.` : `Add "${url}" beside the stylesheet, or point the url() at an existing file.`
|
|
11793
11837
|
});
|
|
@@ -11807,7 +11851,7 @@ function lintMultipleRootCompositions(projectDir) {
|
|
|
11807
11851
|
const rootCompositions = [];
|
|
11808
11852
|
for (const file of rootHtmlFiles) {
|
|
11809
11853
|
if (PAGES_OPENED_BESIDE_INDEX.has(file)) continue;
|
|
11810
|
-
const content = readTextFile(
|
|
11854
|
+
const content = readTextFile(join4(projectDir, file));
|
|
11811
11855
|
if (/data-composition-id/i.test(content)) {
|
|
11812
11856
|
rootCompositions.push(file);
|
|
11813
11857
|
}
|
|
@@ -11973,13 +12017,15 @@ export {
|
|
|
11973
12017
|
resolveReferencedStart,
|
|
11974
12018
|
resolveReferencedDuration,
|
|
11975
12019
|
require_dist,
|
|
12020
|
+
resolveCompositionDuration,
|
|
11976
12021
|
audioAttributeShapeError,
|
|
11977
12022
|
LINT_RULE_COUNT,
|
|
11978
12023
|
LINT_RULE_GROUP_COUNTS,
|
|
11979
12024
|
lintHyperframeHtml,
|
|
11980
12025
|
lintMediaUrls,
|
|
11981
12026
|
shouldBlockRender,
|
|
11982
|
-
|
|
12027
|
+
projectIgnore,
|
|
12028
|
+
linkedSources,
|
|
11983
12029
|
lintProject
|
|
11984
12030
|
};
|
|
11985
12031
|
/*! Bundled license information:
|