hyperframes 0.8.221 → 0.8.222
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-7CVO7K6M.js → add-6MPLIWVP.js} +16 -15
- package/dist/{agentPromptGenerator-YFC2SJLF.js → agentPromptGenerator-X7SQPCXZ.js} +12 -11
- package/dist/{animatedGifPrep-YSMY5GU2.js → animatedGifPrep-ESOJ4FQ7.js} +12 -11
- package/dist/api.js +23 -22
- package/dist/{asset-ZVKHSO3M.js → asset-Y735VQV6.js} +2 -2
- package/dist/{assetCataloger-6IBSEOK7.js → assetCataloger-AOJAUEZW.js} +13 -12
- package/dist/{audio-JUV3TVSW.js → audio-VMMCGPOV.js} +20 -19
- package/dist/{auth-2J6FP462.js → auth-BD5NHYRA.js} +1 -1
- package/dist/{autoUpdate-ML6EZK6D.js → autoUpdate-VTMNHOAJ.js} +2 -2
- package/dist/{backgroundChecks-MAWP2REX.js → backgroundChecks-SUDYQZSW.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-Z7MGNJZH.js → batchRender-4NR7RMT7.js} +11 -8
- package/dist/{beats-LRZOZUUQ.js → beats-PKEHQHBY.js} +53 -21
- package/dist/{benchmark-XJWLDTIL.js → benchmark-K55DDFHG.js} +12 -11
- package/dist/{browser-STEVEWWA.js → browser-G2WFWJJ3.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-WH63ZWUT.js → bundleWithLocalizedFonts-MNG2UVH3.js} +2 -2
- package/dist/{capture-U3ZT3GNI.js → capture-24PIC3TZ.js} +67 -25
- package/dist/{capture-VB5ID7HT.js → capture-U3EEAPI6.js} +3 -3
- package/dist/{captureCompositionFrame-MXJ3WO2R.js → captureCompositionFrame-KL4V6ORD.js} +18 -17
- package/dist/{catalog-ICGHSRPZ.js → catalog-J3BU4TFW.js} +16 -15
- package/dist/{catch-up-DJPQKXQB.js → catch-up-LDGNMEGL.js} +4 -4
- package/dist/{check-TL7AGWPO.js → check-J6HG6EKE.js} +45 -44
- package/dist/{checkAudio-GPTU6EGB.js → checkAudio-MAX7JUYG.js} +17 -16
- package/dist/{checkBrowser-FG5DAW2R.js → checkBrowser-3W74WJ26.js} +43 -38
- package/dist/{chunk-4ZM727AO.js → chunk-3RXZZIDQ.js} +5 -5
- package/dist/{chunk-ZOLKM3VZ.js → chunk-42Q3VX34.js} +9 -9
- package/dist/{chunk-OOEOJPFY.js → chunk-4VEXJTUT.js} +2 -2
- package/dist/{chunk-NYOQP6DO.js → chunk-52VXA3SC.js} +1 -1
- package/dist/{chunk-AZI2T2KO.js → chunk-537WSYHU.js} +1 -1
- package/dist/{chunk-QYUXDFJY.js → chunk-5GSEM63G.js} +12 -10
- package/dist/{chunk-MYNBV7WG.js → chunk-6CFBFWLF.js} +1 -1
- package/dist/{chunk-5YT2KHPO.js → chunk-6W3DY5BP.js} +2 -2
- package/dist/{chunk-TNQCXU37.js → chunk-7D2LTSNV.js} +1 -1
- package/dist/{chunk-3STL4WJ6.js → chunk-7IH3RSSG.js} +17 -8
- package/dist/{chunk-M2F6VGCP.js → chunk-AIXH3V5A.js} +85 -50
- package/dist/{chunk-PBNWRWKA.js → chunk-AKMY4QVI.js} +2 -1
- package/dist/{chunk-F6WHVEUS.js → chunk-AN4USOFT.js} +5 -1
- package/dist/{chunk-OMLDAF44.js → chunk-AOHG22HQ.js} +6 -5
- package/dist/{chunk-VZBJ5BQF.js → chunk-AW3XJY4S.js} +1 -1
- package/dist/{chunk-P6FGS4U6.js → chunk-AXVTL7B6.js} +6 -6
- package/dist/{chunk-DWTFLQ3P.js → chunk-B2ZZYISD.js} +4 -2
- package/dist/{chunk-MXVH6UW6.js → chunk-BDZSH6P3.js} +6 -57
- package/dist/{chunk-6YW3FEHC.js → chunk-BPIY5LB3.js} +9 -8
- package/dist/{chunk-KSC4O2RY.js → chunk-C2KEGBR3.js} +53 -4
- package/dist/{chunk-YISDQ7YP.js → chunk-CVY6OIKN.js} +4 -4
- package/dist/{chunk-I45R2REQ.js → chunk-CZOC7WY7.js} +1 -1
- package/dist/{chunk-HSHKLYDI.js → chunk-D6LGD472.js} +4 -4
- package/dist/{chunk-Z7YQEDA5.js → chunk-DC26QLB7.js} +1 -1
- package/dist/{chunk-DMCU2ELU.js → chunk-DIXTEVWQ.js} +3 -3
- package/dist/{chunk-322M35EB.js → chunk-DNTPNSH5.js} +3 -3
- package/dist/{chunk-GSCFMG4C.js → chunk-DSHFKKSZ.js} +3 -3
- package/dist/{chunk-3PJ3HVLG.js → chunk-E5IIR67Q.js} +1 -1
- package/dist/{chunk-D2RQVJLZ.js → chunk-EE7YWKDY.js} +3 -27
- package/dist/{chunk-XFMO3BEN.js → chunk-EGJ4UECR.js} +11 -5
- package/dist/{chunk-MYXFBIJO.js → chunk-EOUKB53E.js} +1 -1
- package/dist/{chunk-3422KMTD.js → chunk-EPQC3FGZ.js} +4 -0
- package/dist/{chunk-625I5VBE.js → chunk-F6QV5N3A.js} +2 -2
- package/dist/{chunk-6HKUUBAV.js → chunk-FMKI7ZLM.js} +2 -2
- package/dist/{chunk-TVT465RJ.js → chunk-FT3CNACL.js} +5 -5
- package/dist/{chunk-L63FJVSC.js → chunk-G2EY3MVW.js} +1 -1
- package/dist/{chunk-UNQ3CVKW.js → chunk-G675S644.js} +20 -21
- package/dist/{chunk-XETZLYGW.js → chunk-GHEYGMKD.js} +2 -2
- package/dist/{chunk-RVCWVOXM.js → chunk-GODT7QDZ.js} +3 -3
- package/dist/{chunk-74E7EHVH.js → chunk-GOWU3NCE.js} +1 -1
- package/dist/{chunk-SGTEKMJW.js → chunk-HOTXWVVP.js} +93 -5
- package/dist/{chunk-AW7A27JM.js → chunk-HQDHMAUI.js} +1 -1
- package/dist/{chunk-BIROA7JM.js → chunk-HYRPH6LL.js} +7 -6
- package/dist/{chunk-TMK3MW7B.js → chunk-IB7UYGXR.js} +10 -10
- package/dist/{chunk-SAKL7SZH.js → chunk-IGBOFU2Y.js} +3 -3
- package/dist/{chunk-KQPP4NIZ.js → chunk-JQWITWVC.js} +2 -2
- package/dist/{chunk-AZXDEC2G.js → chunk-K5UCRKUK.js} +4 -6
- package/dist/{chunk-M2BCU4Y5.js → chunk-KEY2VA65.js} +1 -1
- package/dist/{chunk-JGZUG5V4.js → chunk-L37AZWB2.js} +2 -2
- package/dist/{chunk-YSZ4VMXI.js → chunk-L55LAERP.js} +1 -1
- package/dist/chunk-LL3VMDAC.js +5013 -0
- package/dist/chunk-MEJH7VEA.js +63 -0
- package/dist/{chunk-ZBLSSWSE.js → chunk-NUE44RN2.js} +1 -1
- package/dist/{chunk-MEB6HWBM.js → chunk-OAXWHPNS.js} +2 -2
- package/dist/{chunk-Y4GLFHO5.js → chunk-OQLYKDL5.js} +1 -1
- package/dist/{chunk-7DVR3DL3.js → chunk-OROHGC7W.js} +8 -8
- package/dist/{chunk-YKMFCE5B.js → chunk-P5M3AXEP.js} +1 -1
- package/dist/{chunk-N4XNRHFM.js → chunk-QNW43LWB.js} +1 -1
- package/dist/{chunk-H3HC6U4I.js → chunk-QOZPWIYV.js} +10 -10
- package/dist/{chunk-XDTCPMR3.js → chunk-QYRMR45H.js} +2 -2
- package/dist/{chunk-RVIMLJXC.js → chunk-RIGSGNDQ.js} +54 -18
- package/dist/{chunk-U6WH572X.js → chunk-RRPO44PE.js} +5 -5
- package/dist/{chunk-YBNF5ZOC.js → chunk-SFS5BTQ3.js} +1 -1
- package/dist/{chunk-2ZNURTH5.js → chunk-SKCS4SUZ.js} +4455 -4312
- package/dist/{chunk-J74ZUXVU.js → chunk-SWC3QIEH.js} +1 -1
- package/dist/{chunk-S5GOFDX5.js → chunk-VJVVWYP6.js} +1 -1
- package/dist/{chunk-5SKC4G26.js → chunk-VMRQDPFL.js} +1 -1
- package/dist/{chunk-LYZB5CJN.js → chunk-VQMHDS2V.js} +110 -9
- package/dist/{chunk-NQOCM4KQ.js → chunk-WJYFJGYT.js} +3 -3
- package/dist/{chunk-ZKPRJPWN.js → chunk-WWT6ETQA.js} +43 -43
- package/dist/{chunk-IDWJJ7PP.js → chunk-XHD7RKEZ.js} +2 -2
- package/dist/{chunk-OPKSVV4G.js → chunk-Y7IV5MAK.js} +2 -2
- package/dist/{chunk-67CALYTU.js → chunk-YEKJOA47.js} +1 -1
- package/dist/{chunk-O7WR4AHX.js → chunk-YHL4CVTF.js} +14 -14
- package/dist/{chunk-BQNTY7J5.js → chunk-Z5VQBRU2.js} +1 -1
- package/dist/{chunk-24F7TOW2.js → chunk-ZAJQFY5Q.js} +126 -53
- package/dist/{chunk-ROVRC3CG.js → chunk-ZBNK6X5O.js} +5 -5
- package/dist/{chunk-QLQVQQP6.js → chunk-ZLXWRYOO.js} +3 -3
- package/dist/{chunk-YV2QQUTL.js → chunk-ZPTNLDOB.js} +2 -2
- package/dist/{clean-3NMJWZXK.js → clean-K6IM3LC4.js} +24 -23
- package/dist/cli.js +54 -54
- package/dist/{cloud-CB3NYNUR.js → cloud-OV7EA4BJ.js} +4 -4
- package/dist/{cloudrun-2CTKCIXV.js → cloudrun-ZEMODIOP.js} +10 -9
- package/dist/commands/layout-audit.browser.js +19 -3
- package/dist/commands/motion-signature.browser.js +8 -4
- package/dist/{compare-FVY3AMTT.js → compare-MJZ3D3HA.js} +36 -35
- package/dist/{compiler-SEQRWEEN.js → compiler-6KKETX77.js} +8 -8
- package/dist/{component-AEMJRROX.js → component-EVXMYIP3.js} +3 -3
- package/dist/{compositions-NRBSIBGZ.js → compositions-PZ7FQ7WN.js} +16 -15
- package/dist/{delete-T4E53ELR.js → delete-DL3XA4QV.js} +2 -2
- package/dist/{deploy-PUF2DW3H.js → deploy-VEYP3IP5.js} +1 -1
- package/dist/{deterministicFonts-2ISM3LMW.js → deterministicFonts-LV2JMOJL.js} +2 -2
- package/dist/{dist-B6C3DU6I.js → dist-M77KFAYW.js} +7 -6
- package/dist/{dist-VARV35QH.js → dist-SHMQOKMF.js} +6 -6
- package/dist/{doctor-FVBU575B.js → doctor-JM2WHH7Y.js} +16 -15
- package/dist/{dotEnv-BGFXSQOA.js → dotEnv-33RDHX7P.js} +1 -1
- package/dist/{events-DZ5PRR6F.js → events-GW5I5RCG.js} +2 -2
- package/dist/{events-RSPDI7FX.js → events-S7KVBRSL.js} +3 -3
- package/dist/{feedback-AALA3OA7.js → feedback-7OR5FVTX.js} +11 -10
- package/dist/{ffmpeg-YXKE5CUE.js → ffmpeg-A7CSIX3U.js} +12 -11
- package/dist/{figma-37R727XZ.js → figma-444HKFX5.js} +3 -3
- package/dist/fontLocalizeCli.js +16 -15
- package/dist/{get-L3VKJ6JF.js → get-6UTF3225.js} +2 -2
- package/dist/{gpuPolicy-6QIFFWAI.js → gpuPolicy-ORPUS5Z2.js} +12 -11
- package/dist/{grade-compare-7IN5QDJD.js → grade-compare-UCTAYN3B.js} +37 -36
- package/dist/{heifImagePrep-AWII25PM.js → heifImagePrep-ED6V6RFN.js} +13 -12
- package/dist/{help-B4MB7MWW.js → help-HZR32XWP.js} +1 -1
- package/dist/{history-TQO6AWEQ.js → history-TQ56MZIA.js} +17 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +67 -67
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/hyperframes-slideshow.global.js +8 -8
- package/dist/{info-7CBHVXSG.js → info-RPIIP7RN.js} +11 -10
- package/dist/{init-D7HKPQ5A.js → init-ONAWKHFW.js} +33 -32
- package/dist/{inspect-VHDQL55M.js → inspect-A75PYOWJ.js} +37 -36
- package/dist/{installer-EJNLL6SV.js → installer-ISMCCFBZ.js} +8 -7
- package/dist/{keyframes-IFLBMAJP.js → keyframes-2I75DP3O.js} +7 -7
- package/dist/{lambda-I7EQULHC.js → lambda-4QIHGPGJ.js} +17 -16
- package/dist/{layout-MOCEANRO.js → layout-GW7WE7RT.js} +37 -36
- package/dist/{lint-HFXGSQKN.js → lint-OWP72OZQ.js} +12 -12
- package/dist/{lintProject-VCDI6A2W.js → lintProject-XYQ5L7RQ.js} +6 -6
- package/dist/{list-OFYIXVON.js → list-WVK7ZCPW.js} +2 -2
- package/dist/{localPage-QOOQ5YA2.js → localPage-IQWHN7BH.js} +12 -11
- package/dist/{login-WAG7B4PM.js → login-Q5CNHYWU.js} +4 -4
- package/dist/{manager-34U5CEFB.js → manager-JCYVNEWH.js} +13 -12
- package/dist/{media-treatment-2TLX6NKS.js → media-treatment-M5IUP7H4.js} +21 -20
- package/dist/{models-M2F4WTAR.js → models-CFXKDYZ3.js} +16 -15
- package/dist/{motionShot-6WCTCV4W.js → motionShot-CWUEI4ZM.js} +21 -20
- package/dist/{normalize-audio-T6PIPWOT.js → normalize-audio-FASY33LR.js} +15 -14
- package/dist/{open-BC5METIY.js → open-KOVVESYN.js} +15 -14
- package/dist/{parakeetRunner-UXVY7PV2.js → parakeetRunner-E4IP5SL4.js} +18 -17
- package/dist/{pipeline-GJAJPWPB.js → pipeline-C6EZVV43.js} +15 -14
- package/dist/{play-UCIRUHCU.js → play-MZJI6SMH.js} +27 -26
- package/dist/{preflight-GVRYYIH5.js → preflight-K4SPUWXP.js} +13 -12
- package/dist/{present-46QLZOK4.js → present-7L7ZTG7F.js} +24 -23
- package/dist/{preview-HWXMP7WL.js → preview-QGDVMR3X.js} +23 -22
- package/dist/{producer-2PBHUE5O.js → producer-EJPNNY3E.js} +1 -1
- package/dist/{projectConfig-C4S3LBBX.js → projectConfig-EEF6OPXO.js} +10 -9
- package/dist/{publication-GESNVVMS.js → publication-5KF44AKQ.js} +6 -5
- package/dist/{publish-IBY26S3T.js → publish-SSKWZ5TE.js} +16 -15
- package/dist/{remove-background-3OBWOHVZ.js → remove-background-PCL6I5SZ.js} +16 -15
- package/dist/{render-LSI5WXS7.js → render-DH4UA7KW.js} +10 -9
- package/dist/{render-3F6GQ5WW.js → render-DRWQ6F37.js} +22 -21
- package/dist/{render-SR5RISLU.js → render-UPRWOGLS.js} +156 -42
- package/dist/{render-batch-HV4W3PZM.js → render-batch-EBW5WHB5.js} +10 -9
- package/dist/renderSetupWorker.js +6 -6
- package/dist/{resolver-R5X3HAPE.js → resolver-ZSZXNRFP.js} +8 -7
- package/dist/{screenshotCapture-U3IYWTDB.js → screenshotCapture-4THETOMD.js} +2 -1
- package/dist/{sherpa-2Q6U4ZFY.js → sherpa-IKVUCBOW.js} +17 -16
- package/dist/skills/hyperframes-cli/references/beats.md +1 -1
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.mjs +13 -1
- package/dist/skills/media-use/audio/scripts/lib/gemini-tts.test.mjs +10 -0
- package/dist/{skills-FSGXQSHA.js → skills-ZREHX3TU.js} +5 -5
- package/dist/{skillsUpdateCheck-UW6643XX.js → skillsUpdateCheck-PPJ5NGAL.js} +3 -3
- package/dist/{slideshow-SJGK4RQS.js → slideshow-ARJR22W4.js} +1 -1
- package/dist/{snapshot-HFPB34Y7.js → snapshot-KPFLZNEL.js} +57 -45
- package/dist/{src-ROWFWCEN.js → src-EPOGDJTT.js} +11 -10
- package/dist/{src-VMTQQUUP.js → src-QRV3466B.js} +21 -14
- package/dist/{staticProjectServer-4TGZJIWN.js → staticProjectServer-ERKLMZVM.js} +25 -24
- package/dist/studio/assets/{hyperframes-player-B_wvwarc.js → hyperframes-player-Dka6e1BG.js} +1 -1
- package/dist/studio/assets/{index-BDE7dwov.js → index-C8VIUiGz.js} +117 -117
- package/dist/studio/assets/{index-D0jGq2dS.js → index-CVPNbydK.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-TSHXVZ6R.js → studio-api-7WFZIIPL.js} +21 -16
- package/dist/{studioServer-74ZBLNP2.js → studioServer-3XZTLI26.js} +76 -113
- package/dist/{telemetry-3NDLZOPR.js → telemetry-BMLI4TMC.js} +3 -3
- package/dist/templates/blank/index.html +1 -1
- package/dist/templates/from-file/index.html +1 -1
- package/dist/{timeline-5IFZJU7M.js → timeline-EDCDO2ZR.js} +25 -24
- package/dist/{tokens-UFNPQVLS.js → tokens-2ZFLFO3K.js} +2 -2
- package/dist/{transcribe-7KQAUHEN.js → transcribe-3WMH62HH.js} +16 -15
- package/dist/{transcribe-NAXKBIPW.js → transcribe-Y2LPBT7I.js} +22 -21
- package/dist/{updateCheck-KDSFL3XX.js → updateCheck-5LFZGC3P.js} +2 -2
- package/dist/{upgrade-EXX4C35N.js → upgrade-X7QVSEKP.js} +2 -2
- package/dist/{urlDownloader-4UFCIAPH.js → urlDownloader-TYD6ROKL.js} +11 -10
- package/dist/{validate-QYOHY3N6.js → validate-26KQ5VX7.js} +31 -30
- package/dist/{video-HRL3V2R5.js → video-BPKLZIJK.js} +13 -12
- package/dist/warmCheck.js +45 -44
- package/package.json +1 -1
- package/dist/chunk-Q3PPGPEA.js +0 -5061
- /package/dist/{chunk-NHA4NRBE.js → chunk-T5ELONXY.js} +0 -0
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-CZGHFATT.js";
|
|
11
11
|
import {
|
|
12
12
|
findFfBinary
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HYRPH6LL.js";
|
|
14
14
|
import {
|
|
15
15
|
cleanAssetUrl,
|
|
16
16
|
collectSubCompositionSrcs,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveExistingLocalAsset,
|
|
23
23
|
resolveLocalAssetCandidates,
|
|
24
24
|
resolveProjectRelativeSrc
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-AKMY4QVI.js";
|
|
26
26
|
import {
|
|
27
27
|
COLOR_GRADING_SOURCE_TAGS,
|
|
28
28
|
COLOR_GROUP_TAG,
|
|
@@ -49,10 +49,10 @@ import {
|
|
|
49
49
|
rewriteAssetPath,
|
|
50
50
|
spansOverlap,
|
|
51
51
|
validateColorGradingContract
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-C2KEGBR3.js";
|
|
53
53
|
import {
|
|
54
54
|
encodeUrlPath
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-T5ELONXY.js";
|
|
56
56
|
import {
|
|
57
57
|
parseHTML
|
|
58
58
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
isSceneLikeCompositionId,
|
|
64
64
|
parseSlideshowManifest,
|
|
65
65
|
resolveSlideshow
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-EPQC3FGZ.js";
|
|
67
67
|
import {
|
|
68
68
|
base,
|
|
69
69
|
recursive,
|
|
@@ -10274,6 +10274,9 @@ function extractFontFaceFamilies(styles) {
|
|
|
10274
10274
|
}
|
|
10275
10275
|
return families;
|
|
10276
10276
|
}
|
|
10277
|
+
function declaredFontFamilies(styles, options) {
|
|
10278
|
+
return /* @__PURE__ */ new Set([...extractFontFaceFamilies(styles), ...options.projectFontFamilies ?? []]);
|
|
10279
|
+
}
|
|
10277
10280
|
function normalizeUsedFontName(part) {
|
|
10278
10281
|
const name = part.trim().replace(/\s*!important\s*$/i, "").replace(/^['"]|['"]$/g, "").trim().toLowerCase();
|
|
10279
10282
|
if (!name || name.includes("(") || name.includes(")")) return null;
|
|
@@ -10383,7 +10386,7 @@ var fontRules = [
|
|
|
10383
10386
|
// so there is nothing for the author to act on.
|
|
10384
10387
|
({ styles, options }) => {
|
|
10385
10388
|
if (!options.distributed) return [];
|
|
10386
|
-
const declared =
|
|
10389
|
+
const declared = declaredFontFamilies(styles, options);
|
|
10387
10390
|
const used = extractUsedFontFamilies(styles);
|
|
10388
10391
|
const aliased = collectAliasedFonts(used, declared);
|
|
10389
10392
|
if (aliased.length === 0) return [];
|
|
@@ -10399,7 +10402,7 @@ var fontRules = [
|
|
|
10399
10402
|
({ styles, source, rawSource, options, locate }) => {
|
|
10400
10403
|
if (isRegistrySourceFile(options.filePath) || isRegistryInstalledFile(rawSource)) return [];
|
|
10401
10404
|
const findings = [];
|
|
10402
|
-
const declared =
|
|
10405
|
+
const declared = declaredFontFamilies(styles, options);
|
|
10403
10406
|
const used = extractUsedFontFamilies(styles);
|
|
10404
10407
|
const googleFonts = collectGoogleFontFamilies(source, styles);
|
|
10405
10408
|
const undeclared = used.filter(
|
|
@@ -11265,6 +11268,42 @@ function resolveCssAssetCandidates(projectDir, url, htmlCompSrcPath, cssRootRela
|
|
|
11265
11268
|
}
|
|
11266
11269
|
return resolveLocalAssetCandidates(projectDir, url);
|
|
11267
11270
|
}
|
|
11271
|
+
function mountedSources(projectDir, rootHtml, rootCompSrcPath) {
|
|
11272
|
+
const sources = [{ html: rootHtml, compSrcPath: rootCompSrcPath }];
|
|
11273
|
+
const seen = /* @__PURE__ */ new Set();
|
|
11274
|
+
for (const source of sources) {
|
|
11275
|
+
const { document } = parseHTML(source.html);
|
|
11276
|
+
for (const host of querySelectorAllIncludingTemplates(document, "[data-composition-src]")) {
|
|
11277
|
+
const src = host.getAttribute("data-composition-src")?.trim();
|
|
11278
|
+
if (!src || isUnresolvedAssetPlaceholder(src) || isRemoteOrInlineUrl(src)) continue;
|
|
11279
|
+
const path = resolve(projectDir, src);
|
|
11280
|
+
if (seen.has(path) || !isWithinProjectRoot(projectDir, path)) continue;
|
|
11281
|
+
seen.add(path);
|
|
11282
|
+
const read = readProjectFile(path);
|
|
11283
|
+
if (read.kind !== "file") continue;
|
|
11284
|
+
sources.push({
|
|
11285
|
+
html: read.text,
|
|
11286
|
+
compSrcPath: relative2(resolve(projectDir), path).replace(/\\/g, "/")
|
|
11287
|
+
});
|
|
11288
|
+
}
|
|
11289
|
+
}
|
|
11290
|
+
return sources;
|
|
11291
|
+
}
|
|
11292
|
+
function declaredProjectFontFamilies(projectDir, sources) {
|
|
11293
|
+
const families = /* @__PURE__ */ new Set();
|
|
11294
|
+
for (const { html, compSrcPath } of sources) {
|
|
11295
|
+
const { document } = parseHTML(html);
|
|
11296
|
+
const styles = [
|
|
11297
|
+
...querySelectorAllIncludingTemplates(document, "style").map((style) => ({
|
|
11298
|
+
content: style.textContent ?? ""
|
|
11299
|
+
})),
|
|
11300
|
+
...collectLocalStylesheets(projectDir, document, compSrcPath)
|
|
11301
|
+
];
|
|
11302
|
+
for (const family of extractFontFaceFamilies(styles)) families.add(family);
|
|
11303
|
+
for (const family of collectGoogleFontFamilies(html, styles)) families.add(family);
|
|
11304
|
+
}
|
|
11305
|
+
return [...families];
|
|
11306
|
+
}
|
|
11268
11307
|
async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
11269
11308
|
const indexPath = entryFile ? resolve(entryFile) : resolve(projectDir, "index.html");
|
|
11270
11309
|
if (entryFile && !isWithinProjectRoot(projectDir, indexPath)) {
|
|
@@ -11277,11 +11316,16 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11277
11316
|
let totalWarnings = 0;
|
|
11278
11317
|
let totalInfos = 0;
|
|
11279
11318
|
const rootHtml = readFileSync(indexPath, "utf-8");
|
|
11319
|
+
const projectFontFamilies = declaredProjectFontFamilies(
|
|
11320
|
+
projectDir,
|
|
11321
|
+
mountedSources(projectDir, rootHtml, rootCompSrcPath)
|
|
11322
|
+
);
|
|
11280
11323
|
const rootResult = await lintHyperframeHtml(rootHtml, {
|
|
11281
11324
|
...hostOptions,
|
|
11282
11325
|
filePath: indexPath,
|
|
11283
11326
|
compSrcPath: rootFile,
|
|
11284
|
-
externalStyles: collectExternalStyles(projectDir, rootHtml, rootCompSrcPath)
|
|
11327
|
+
externalStyles: collectExternalStyles(projectDir, rootHtml, rootCompSrcPath),
|
|
11328
|
+
projectFontFamilies
|
|
11285
11329
|
});
|
|
11286
11330
|
results.push({ file: rootFile, result: rootResult, contentHash: contentDigest(rootHtml) });
|
|
11287
11331
|
totalErrors += rootResult.errorCount;
|
|
@@ -11315,7 +11359,8 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11315
11359
|
filePath,
|
|
11316
11360
|
isSubComposition: true,
|
|
11317
11361
|
compSrcPath,
|
|
11318
|
-
externalStyles: collectExternalStyles(projectDir, html, compSrcPath)
|
|
11362
|
+
externalStyles: collectExternalStyles(projectDir, html, compSrcPath),
|
|
11363
|
+
projectFontFamilies
|
|
11319
11364
|
});
|
|
11320
11365
|
results.push({
|
|
11321
11366
|
file: `compositions/${file}`,
|
|
@@ -11333,6 +11378,7 @@ async function lintProject(projectDir, entryFile, hostOptions = {}) {
|
|
|
11333
11378
|
...lintAudioSrcNotFound(projectDir, allHtmlSources),
|
|
11334
11379
|
...lintMissingLocalAsset(projectDir, allHtmlSources),
|
|
11335
11380
|
...lintTextureMaskAssetNotFound(projectDir, allHtmlSources),
|
|
11381
|
+
...lintLinkedStylesheetAssets(projectDir, allHtmlSources),
|
|
11336
11382
|
...!entryFile ? lintMultipleRootCompositions(projectDir) : [],
|
|
11337
11383
|
...!entryFile ? lintBlankRootWithStandaloneComposition(rootHtml, allHtmlSources) : [],
|
|
11338
11384
|
...lintDuplicateAudioTracks(projectDir, rootHtml),
|
|
@@ -11542,6 +11588,61 @@ function lintTextureMaskAssetNotFound(projectDir, htmlSources) {
|
|
|
11542
11588
|
};
|
|
11543
11589
|
});
|
|
11544
11590
|
}
|
|
11591
|
+
function nearestAncestorMatch(projectDir, cssRootRelativePath, url) {
|
|
11592
|
+
const root = resolve(projectDir);
|
|
11593
|
+
for (let dir = resolve(root, dirname2(cssRootRelativePath), ".."); ; dir = dirname2(dir)) {
|
|
11594
|
+
if (!isWithinProjectRoot(projectDir, dir)) return null;
|
|
11595
|
+
if (resolveLocalAssetCandidates(projectDir, relative2(root, join3(dir, url))).some(existsSync2)) {
|
|
11596
|
+
return relative2(dirname2(resolve(root, cssRootRelativePath)), join3(dir, url)).replace(
|
|
11597
|
+
/\\/g,
|
|
11598
|
+
"/"
|
|
11599
|
+
);
|
|
11600
|
+
}
|
|
11601
|
+
if (dir === root) return null;
|
|
11602
|
+
}
|
|
11603
|
+
}
|
|
11604
|
+
function lintLinkedStylesheetAssets(projectDir, htmlSources) {
|
|
11605
|
+
const seen = /* @__PURE__ */ new Set();
|
|
11606
|
+
const findings = [];
|
|
11607
|
+
for (const { html, compSrcPath } of htmlSources) {
|
|
11608
|
+
for (const { content, rootRelativePath } of collectLocalStylesheets(
|
|
11609
|
+
projectDir,
|
|
11610
|
+
parseHTML(html).document,
|
|
11611
|
+
compSrcPath
|
|
11612
|
+
)) {
|
|
11613
|
+
let root;
|
|
11614
|
+
try {
|
|
11615
|
+
root = postcss4.parse(content);
|
|
11616
|
+
} catch (error) {
|
|
11617
|
+
if (!(error instanceof postcss4.CssSyntaxError)) throw error;
|
|
11618
|
+
continue;
|
|
11619
|
+
}
|
|
11620
|
+
root.walkDecls((declaration) => {
|
|
11621
|
+
if (/^(?:-webkit-)?mask-image$/i.test(declaration.prop)) return;
|
|
11622
|
+
for (const match of declaration.value.matchAll(CSS_URL_RE)) {
|
|
11623
|
+
const rawUrl = match[1] ?? match[2] ?? match[3] ?? "";
|
|
11624
|
+
if (isUnresolvedAssetPlaceholder(rawUrl)) continue;
|
|
11625
|
+
const url = cleanAssetUrl(rawUrl);
|
|
11626
|
+
if (!url || isRemoteOrInlineUrl(url) || url.startsWith("/")) continue;
|
|
11627
|
+
if (resolveCssAssetCandidates(projectDir, url, void 0, rootRelativePath).some(existsSync2))
|
|
11628
|
+
continue;
|
|
11629
|
+
const key = `${rootRelativePath}\0${url}`;
|
|
11630
|
+
if (seen.has(key)) continue;
|
|
11631
|
+
seen.add(key);
|
|
11632
|
+
const found = nearestAncestorMatch(projectDir, rootRelativePath, url);
|
|
11633
|
+
findings.push({
|
|
11634
|
+
code: "missing_stylesheet_asset",
|
|
11635
|
+
severity: "warning",
|
|
11636
|
+
file: join3(projectDir, rootRelativePath),
|
|
11637
|
+
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.`,
|
|
11638
|
+
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.`
|
|
11639
|
+
});
|
|
11640
|
+
}
|
|
11641
|
+
});
|
|
11642
|
+
}
|
|
11643
|
+
}
|
|
11644
|
+
return findings;
|
|
11645
|
+
}
|
|
11545
11646
|
function lintMultipleRootCompositions(projectDir) {
|
|
11546
11647
|
const findings = [];
|
|
11547
11648
|
try {
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AN4USOFT.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NUE44RN2.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-2GICKZ3I.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-FDPS57FU.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-A7CSIX3U.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
splitElementInHtml,
|
|
20
20
|
unwrapElementsFromHtml,
|
|
21
21
|
wrapElementsInHtml
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BPIY5LB3.js";
|
|
23
23
|
import {
|
|
24
24
|
MEDIA_LINK_ATTR,
|
|
25
25
|
relinkSplitHalves
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AW3XJY4S.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_TARGET_LUFS,
|
|
29
29
|
absoluteLoudnessPlan,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
requestedProjectPath,
|
|
33
33
|
requiredFfmpeg,
|
|
34
34
|
resolveLocalAudioPath
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZBNK6X5O.js";
|
|
36
36
|
import {
|
|
37
37
|
HistoryBusyError,
|
|
38
38
|
MAX_WINDOW_IDLE_MS,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
resolveProjectSignature,
|
|
48
48
|
serveWhileOpen,
|
|
49
49
|
settledFileTag
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-ZAJQFY5Q.js";
|
|
51
51
|
import {
|
|
52
52
|
PROXY_PARAMS_VERSION,
|
|
53
53
|
PROXY_PENDING_RETRY_AFTER_SECONDS,
|
|
@@ -70,11 +70,11 @@ import {
|
|
|
70
70
|
scanProjectMedia,
|
|
71
71
|
shouldPrewarmProxy,
|
|
72
72
|
waitForProxy
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AXVTL7B6.js";
|
|
74
74
|
import {
|
|
75
75
|
probeAudioTrack,
|
|
76
76
|
probeMediaMetadata
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-QYRMR45H.js";
|
|
78
78
|
import {
|
|
79
79
|
STUDIO_MOTION_PATH,
|
|
80
80
|
createStudioMotionRenderBodyScript,
|
|
@@ -115,9 +115,8 @@ import {
|
|
|
115
115
|
ensureHfIds,
|
|
116
116
|
stampHfIdsInPlace,
|
|
117
117
|
stripSdrPngColourTags
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-3RXZZIDQ.js";
|
|
119
119
|
import {
|
|
120
|
-
GSAP_BASE_URL_META,
|
|
121
120
|
PREVIEW_PROXY_BOX_PARAM,
|
|
122
121
|
PREVIEW_PROXY_LIGHT_PARAM,
|
|
123
122
|
PREVIEW_PROXY_PRIORITY_HEADER,
|
|
@@ -126,13 +125,16 @@ import {
|
|
|
126
125
|
formatPreviewProxyBox,
|
|
127
126
|
formatRenderOutputTimestamp,
|
|
128
127
|
fpsToNumber,
|
|
128
|
+
parseFps,
|
|
129
|
+
parsePreviewProxyBox
|
|
130
|
+
} from "./chunk-BDZSH6P3.js";
|
|
131
|
+
import {
|
|
132
|
+
GSAP_BASE_URL_META,
|
|
129
133
|
gsapCdnDist,
|
|
130
134
|
motionPathPluginUrl,
|
|
131
135
|
normalizeGsapBaseUrl,
|
|
132
|
-
normalizeGsapLocalRoot
|
|
133
|
-
|
|
134
|
-
parsePreviewProxyBox
|
|
135
|
-
} from "./chunk-MXVH6UW6.js";
|
|
136
|
+
normalizeGsapLocalRoot
|
|
137
|
+
} from "./chunk-MEJH7VEA.js";
|
|
136
138
|
import {
|
|
137
139
|
AFTER_FONTS_SCRIPT_TYPE,
|
|
138
140
|
RUNTIME_BOOTSTRAP_ATTR,
|
|
@@ -147,7 +149,7 @@ import {
|
|
|
147
149
|
resolveRateSpec,
|
|
148
150
|
sourceTimeAt,
|
|
149
151
|
stripEmbeddedRuntimeScripts
|
|
150
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-LL3VMDAC.js";
|
|
151
153
|
import {
|
|
152
154
|
ProjectRootMissingError,
|
|
153
155
|
folderGone,
|
|
@@ -159,11 +161,11 @@ import {
|
|
|
159
161
|
import {
|
|
160
162
|
FFPROBE_PATH_ENV,
|
|
161
163
|
findFfBinary
|
|
162
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-HYRPH6LL.js";
|
|
163
165
|
import {
|
|
164
166
|
isWithinProjectRoot,
|
|
165
167
|
readProjectFile
|
|
166
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-AKMY4QVI.js";
|
|
167
169
|
import {
|
|
168
170
|
decodeCssEscapes,
|
|
169
171
|
decodeWellFormedEscapes,
|
|
@@ -174,7 +176,7 @@ import {
|
|
|
174
176
|
rewriteCssAssetUrls,
|
|
175
177
|
rewriteInlineStyleAssetUrls,
|
|
176
178
|
sameInstant
|
|
177
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-C2KEGBR3.js";
|
|
178
180
|
import {
|
|
179
181
|
HTML_ATTRIBUTE_ENTITIES,
|
|
180
182
|
MagicString,
|
|
@@ -182,7 +184,7 @@ import {
|
|
|
182
184
|
decodeAuthoredAttribute,
|
|
183
185
|
scanHtmlOpeningTags,
|
|
184
186
|
unrollComputedTimeline
|
|
185
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-T5ELONXY.js";
|
|
186
188
|
import {
|
|
187
189
|
parseHTML
|
|
188
190
|
} from "./chunk-GWTIFRF5.js";
|
|
@@ -449,6 +451,7 @@ import { tmpdir } from "os";
|
|
|
449
451
|
import { basename, join as join4 } from "path";
|
|
450
452
|
import { readdirSync, readFileSync as readFileSync32, unlinkSync, writeFileSync as writeFileSync3 } from "fs";
|
|
451
453
|
import { Buffer as Buffer2 } from "buffer";
|
|
454
|
+
import { createHash as createHash22 } from "crypto";
|
|
452
455
|
import { join as join5, relative as relative2 } from "path";
|
|
453
456
|
import { readFileSync as readFileSync4, statSync as statSync2 } from "fs";
|
|
454
457
|
|
|
@@ -3662,7 +3665,7 @@ function unrollDynamicAnimations(script, animationId, elements) {
|
|
|
3662
3665
|
import { createReadStream, existsSync as existsSync5, readFileSync as readFileSync6, statSync as statSync4 } from "fs";
|
|
3663
3666
|
import { Readable } from "stream";
|
|
3664
3667
|
import { join as join8, resolve as resolve4 } from "path";
|
|
3665
|
-
import { createHash as
|
|
3668
|
+
import { createHash as createHash3 } from "crypto";
|
|
3666
3669
|
import { readlinkSync as readlinkSync2 } from "fs";
|
|
3667
3670
|
import { dirname as dirname4, join as join7, parse as parse2, relative as relative3, resolve as resolve32 } from "path";
|
|
3668
3671
|
import { readFileSync as readFileSync7 } from "fs";
|
|
@@ -3672,7 +3675,7 @@ import { existsSync as existsSync6, lstatSync as lstatSync3, readFileSync as rea
|
|
|
3672
3675
|
import { dirname as dirname5, join as join10 } from "path";
|
|
3673
3676
|
import { HTTPException } from "hono/http-exception";
|
|
3674
3677
|
import { open, stat } from "fs/promises";
|
|
3675
|
-
import { createHash as
|
|
3678
|
+
import { createHash as createHash4 } from "crypto";
|
|
3676
3679
|
import {
|
|
3677
3680
|
closeSync as closeSync22,
|
|
3678
3681
|
fstatSync as fstatSync22,
|
|
@@ -3686,13 +3689,13 @@ import {
|
|
|
3686
3689
|
writeFileSync as writeFileSync4
|
|
3687
3690
|
} from "fs";
|
|
3688
3691
|
import { join as join11 } from "path";
|
|
3689
|
-
import { createHash as
|
|
3692
|
+
import { createHash as createHash5, randomUUID as randomUUID2 } from "crypto";
|
|
3690
3693
|
import { existsSync as existsSync7, readFileSync as readFileSync10, statSync as statSync7 } from "fs";
|
|
3691
3694
|
import { join as join12, resolve as resolve5 } from "path";
|
|
3692
3695
|
import { execFile } from "child_process";
|
|
3693
3696
|
import { readFileSync as readFileSync11, rmSync as rmSync5, statSync as statSync8 } from "fs";
|
|
3694
3697
|
import { basename as basename2, dirname as dirname6, join as join13, relative as relative4, sep as sep3 } from "path";
|
|
3695
|
-
import { createHash as
|
|
3698
|
+
import { createHash as createHash6, randomBytes } from "crypto";
|
|
3696
3699
|
import { existsSync as existsSync8 } from "fs";
|
|
3697
3700
|
import { existsSync as existsSync9, readFileSync as readFileSync12, statSync as statSync9 } from "fs";
|
|
3698
3701
|
import { join as join14, resolve as resolve6 } from "path";
|
|
@@ -3704,7 +3707,7 @@ import { basename as basename3, dirname as dirname7, extname, join as join15, po
|
|
|
3704
3707
|
import { existsSync as existsSync11, readFileSync as readFileSync13 } from "fs";
|
|
3705
3708
|
import { homedir } from "os";
|
|
3706
3709
|
import { join as join16 } from "path";
|
|
3707
|
-
import { createHash as
|
|
3710
|
+
import { createHash as createHash7 } from "crypto";
|
|
3708
3711
|
import { readFileSync as readFileSync14, readdirSync as readdirSync5, rmSync as rmSync6 } from "fs";
|
|
3709
3712
|
import { join as join17 } from "path";
|
|
3710
3713
|
async function filterCompositionFiles(projectDir, files) {
|
|
@@ -3861,7 +3864,7 @@ function withRootPathsRelative(html, base) {
|
|
|
3861
3864
|
function rewriteRelativePaths(root, compPath, projectDir) {
|
|
3862
3865
|
const assetExists = (path) => existsSync(join22(projectDir, path));
|
|
3863
3866
|
rewriteAssetPaths(
|
|
3864
|
-
root.querySelectorAll("[src], [href]"),
|
|
3867
|
+
root.querySelectorAll("[src], [href], [srcset]"),
|
|
3865
3868
|
compPath,
|
|
3866
3869
|
(el, attr) => el.getAttribute(attr),
|
|
3867
3870
|
(el, attr, value) => el.setAttribute(attr, value),
|
|
@@ -4491,9 +4494,6 @@ function validateUploadedMediaBuffer(fileName, buffer, runner = defaultRunner) {
|
|
|
4491
4494
|
}
|
|
4492
4495
|
}
|
|
4493
4496
|
var DEFAULT_KEEP_PER_FILE = 10;
|
|
4494
|
-
function backupKeyForPath(path) {
|
|
4495
|
-
return Buffer2.from(path, "utf-8").toString("base64url");
|
|
4496
|
-
}
|
|
4497
4497
|
function timestampPrefix() {
|
|
4498
4498
|
return (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
|
|
4499
4499
|
}
|
|
@@ -4510,10 +4510,11 @@ function snapshotBeforeWrite(projectDir, absPath, options = {}) {
|
|
|
4510
4510
|
const relativePath = relative2(projectDir, absPath);
|
|
4511
4511
|
const backupDir = join5(projectDir, ".hyperframes", "backup");
|
|
4512
4512
|
mkdirWithinProject(projectDir, backupDir);
|
|
4513
|
-
const
|
|
4513
|
+
const pathKey2 = Buffer2.from(relativePath, "utf-8").toString("base64url");
|
|
4514
|
+
const backupKey = pathKey2.length <= 200 ? pathKey2 : `sha256~${createHash22("sha256").update(relativePath).digest("hex")}`;
|
|
4514
4515
|
const backupPath = nextBackupPath(backupDir, backupKey);
|
|
4515
4516
|
writeFileSync3(backupPath, content);
|
|
4516
|
-
pruneBackups(backupDir, backupKey, options.keepPerFile ?? DEFAULT_KEEP_PER_FILE);
|
|
4517
|
+
pruneBackups(backupDir, [pathKey2, backupKey], options.keepPerFile ?? DEFAULT_KEEP_PER_FILE);
|
|
4517
4518
|
return { backupPath };
|
|
4518
4519
|
} catch (error) {
|
|
4519
4520
|
if (isProjectRootMissing(error)) throw error;
|
|
@@ -4540,11 +4541,10 @@ function nextBackupPath(backupDir, backupKey) {
|
|
|
4540
4541
|
counter += 1;
|
|
4541
4542
|
}
|
|
4542
4543
|
}
|
|
4543
|
-
function pruneBackups(backupDir,
|
|
4544
|
+
function pruneBackups(backupDir, backupKeys, keepPerFile) {
|
|
4544
4545
|
const keep = Math.max(1, Math.floor(keepPerFile));
|
|
4545
|
-
const suffix =
|
|
4546
|
-
const
|
|
4547
|
-
const matches = readdirSync(backupDir).filter((name) => name.endsWith(suffix) || numberedSuffix.test(name)).map((name) => join5(backupDir, name)).sort((a, b) => {
|
|
4546
|
+
const suffix = new RegExp(`-(?:${backupKeys.join("|")})(?:-\\d+)?$`);
|
|
4547
|
+
const matches = readdirSync(backupDir).filter((name) => suffix.test(name)).map((name) => join5(backupDir, name)).sort((a, b) => {
|
|
4548
4548
|
return b.localeCompare(a);
|
|
4549
4549
|
});
|
|
4550
4550
|
for (const file of matches.slice(keep)) {
|
|
@@ -5592,7 +5592,7 @@ async function prepareGsapMutationScript(c, res, firstMutation) {
|
|
|
5592
5592
|
let block = extractGsapScriptBlock(html);
|
|
5593
5593
|
if (!block && (firstMutation.type === "add" || firstMutation.type === "add-with-keyframes")) {
|
|
5594
5594
|
const compId = html.match(/data-composition-id="([^"]+)"/)?.[1] ?? "main";
|
|
5595
|
-
const { GSAP_CDN } = await import("./dist-
|
|
5595
|
+
const { GSAP_CDN } = await import("./dist-M77KFAYW.js");
|
|
5596
5596
|
const bootstrap = [
|
|
5597
5597
|
`<script src="${GSAP_CDN}"></script>`,
|
|
5598
5598
|
"<script>",
|
|
@@ -7669,7 +7669,7 @@ function parsePreviewVariablesParam(raw) {
|
|
|
7669
7669
|
}
|
|
7670
7670
|
function variablesEtagSalt(raw) {
|
|
7671
7671
|
if (!raw) return "";
|
|
7672
|
-
return `:vars:${
|
|
7672
|
+
return `:vars:${createHash3("sha1").update(raw).digest("hex").slice(0, 12)}`;
|
|
7673
7673
|
}
|
|
7674
7674
|
function previewVariablesFromRequest(rawVariables) {
|
|
7675
7675
|
const parse22 = parsePreviewVariablesParam(rawVariables);
|
|
@@ -7766,7 +7766,7 @@ function resolvePreviewGsapBaseUrl(adapter) {
|
|
|
7766
7766
|
}
|
|
7767
7767
|
function registerPreviewRoutes(api, adapter) {
|
|
7768
7768
|
const gsapBaseUrl = resolvePreviewGsapBaseUrl(adapter);
|
|
7769
|
-
const gsapEtagSalt = `:gsap:${
|
|
7769
|
+
const gsapEtagSalt = `:gsap:${createHash3("sha1").update(gsapBaseUrl).digest("hex").slice(0, 12)}`;
|
|
7770
7770
|
const previewCacheHeaders = (etag) => ({
|
|
7771
7771
|
"Cache-Control": "private, no-cache",
|
|
7772
7772
|
ETag: etag
|
|
@@ -7901,7 +7901,7 @@ ${etag}`;
|
|
|
7901
7901
|
if (!compFile || !existsSync5(compFile) || !statSync4(compFile).isFile()) {
|
|
7902
7902
|
return c.text("not found", 404);
|
|
7903
7903
|
}
|
|
7904
|
-
const compPathHash =
|
|
7904
|
+
const compPathHash = createHash3("sha1").update(compPath).digest("hex");
|
|
7905
7905
|
const capture = c.req.query(PREVIEW_CAPTURE_PARAM) !== void 0;
|
|
7906
7906
|
const etag = `"comp:v2:${compPathHash}:${signature}${gsapEtagSalt}${variablesEtagSalt(vars.raw)}${capture ? ":capture" : ""}"`;
|
|
7907
7907
|
const ifNoneMatch = c.req.header("If-None-Match");
|
|
@@ -8564,7 +8564,7 @@ function registerImageThumbnailRoutes(api, adapter) {
|
|
|
8564
8564
|
api.get("/projects/:id/image-thumbnail/*", async (c) => {
|
|
8565
8565
|
try {
|
|
8566
8566
|
const { path, info } = await resolveSource(adapter, c.req.param("id"), c.req.url);
|
|
8567
|
-
const key =
|
|
8567
|
+
const key = createHash4("sha256").update(JSON.stringify([path, info.dev, info.ino, info.size, info.mtimeMs, info.ctimeMs])).digest("hex");
|
|
8568
8568
|
const etag = `"${key}"`;
|
|
8569
8569
|
c.header("ETag", etag);
|
|
8570
8570
|
c.header("Cache-Control", "private, no-cache");
|
|
@@ -8662,7 +8662,7 @@ function readFileOnce(file) {
|
|
|
8662
8662
|
function manifestKey(file) {
|
|
8663
8663
|
const manifest = readFileOnce(file);
|
|
8664
8664
|
if (typeof manifest === "string") return { key: "", mtimeMs: -Infinity };
|
|
8665
|
-
const hash =
|
|
8665
|
+
const hash = createHash5("sha1").update(manifest.data).digest("hex").slice(0, 16);
|
|
8666
8666
|
return { key: `_${hash}`, mtimeMs: Math.round(manifest.mtimeMs) };
|
|
8667
8667
|
}
|
|
8668
8668
|
function registerThumbnailRoutes(api, adapter) {
|
|
@@ -8699,7 +8699,7 @@ function registerThumbnailRoutes(api, adapter) {
|
|
|
8699
8699
|
let sourceKey = "";
|
|
8700
8700
|
if (source !== "missing") {
|
|
8701
8701
|
const html = source.data.toString("utf-8");
|
|
8702
|
-
sourceKey = `_${
|
|
8702
|
+
sourceKey = `_${createHash5("sha1").update(html).digest("hex").slice(0, 16)}`;
|
|
8703
8703
|
sourceMtime = Math.round(source.mtimeMs);
|
|
8704
8704
|
if (!vpWidth) {
|
|
8705
8705
|
const wMatch = html.match(/data-width=["'](\d+)["']/);
|
|
@@ -8715,9 +8715,9 @@ function registerThumbnailRoutes(api, adapter) {
|
|
|
8715
8715
|
const previewPath = compPath === "index.html" ? `${projectUrl}/preview` : `${projectUrl}/preview/comp/${compPath.split("/").map(encodeURIComponent).join("/")}`;
|
|
8716
8716
|
const previewUrl = `${previewPath}?${PREVIEW_CAPTURE_PARAM}=1`;
|
|
8717
8717
|
const cacheDir = join11(project.dir, ".thumbnails");
|
|
8718
|
-
const selectorKey = selector ? `_${
|
|
8718
|
+
const selectorKey = selector ? `_${createHash5("sha1").update(selector).digest("hex").slice(0, 16)}_${selectorIndex ?? 0}` : "";
|
|
8719
8719
|
const urlVersionKey = urlVersion ? `_${urlVersion.replace(/[^a-zA-Z0-9_-]+/g, "_").slice(0, 32)}` : "";
|
|
8720
|
-
const inputSignatureKey = `_${
|
|
8720
|
+
const inputSignatureKey = `_${createHash5("sha1").update(inputSignature).digest("hex").slice(0, 16)}`;
|
|
8721
8721
|
const outputScale = outputMode === "source" ? 1 : Math.min(1, THUMBNAIL_MAX_OUTPUT_WIDTH / compW, THUMBNAIL_MAX_OUTPUT_HEIGHT / compH);
|
|
8722
8722
|
const outputWidth = Math.max(1, Math.round(compW * outputScale));
|
|
8723
8723
|
const outputHeight = Math.max(1, Math.round(compH * outputScale));
|
|
@@ -8860,7 +8860,7 @@ function freezeExtractArgs(src, mediaTime, output) {
|
|
|
8860
8860
|
var randomStillToken = () => randomBytes(4).toString("hex");
|
|
8861
8861
|
function freezeStillFileName(clipId, playhead, token = randomStillToken()) {
|
|
8862
8862
|
const stem = clipId.replace(/[^A-Za-z0-9_-]/g, "_").slice(0, 48) || "clip";
|
|
8863
|
-
const idHash =
|
|
8863
|
+
const idHash = createHash6("sha256").update(clipId).digest("hex").slice(0, 10);
|
|
8864
8864
|
return `${stem}-${idHash}-${Math.round(playhead * 1e3)}-${token}.png`;
|
|
8865
8865
|
}
|
|
8866
8866
|
function readFreezeSource(html, target, playhead) {
|
|
@@ -10112,7 +10112,7 @@ function numericAttribute(element, name) {
|
|
|
10112
10112
|
}
|
|
10113
10113
|
function createPreviewDocumentStore(projectDir, salt) {
|
|
10114
10114
|
const dir = join17(projectDir, ".hyperframes", "preview");
|
|
10115
|
-
const fileFor = (key) => join17(dir, `${
|
|
10115
|
+
const fileFor = (key) => join17(dir, `${createHash7("sha256").update(`${salt}
|
|
10116
10116
|
${key}`).digest("hex").slice(0, 32)}.html`);
|
|
10117
10117
|
return {
|
|
10118
10118
|
read(key) {
|
|
@@ -6,11 +6,11 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
withOwner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4VEXJTUT.js";
|
|
10
10
|
import {
|
|
11
11
|
HistoryBusyError,
|
|
12
12
|
beginArtifactCapture
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZAJQFY5Q.js";
|
|
14
14
|
|
|
15
15
|
// src/utils/artifactCapture.ts
|
|
16
16
|
var SKIP_BUSY_HISTORY = { ownerWaitMs: 0 };
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
normalizeRelPath,
|
|
9
9
|
resolveLocalImageSourcePath,
|
|
10
10
|
splitUrlSuffix
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZPTNLDOB.js";
|
|
12
12
|
import {
|
|
13
13
|
runFfmpeg,
|
|
14
14
|
runFfprobe
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AIXH3V5A.js";
|
|
16
16
|
import {
|
|
17
17
|
renameWithRetry
|
|
18
18
|
} from "./chunk-YWRUQ7XZ.js";
|