hyperframes 0.8.183 → 0.8.185
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-HW3ZGR36.js → add-ODTNPRGG.js} +14 -14
- package/dist/{agentPromptGenerator-VIIPZCJ3.js → agentPromptGenerator-KYO5MKTW.js} +1 -1
- package/dist/{animatedGifPrep-EPLN37ZN.js → animatedGifPrep-PEP5GWOJ.js} +10 -9
- package/dist/api.js +18 -17
- package/dist/{asset-TOASKL3Z.js → asset-EZG42XPA.js} +2 -2
- package/dist/{assetCataloger-PZN5HYG2.js → assetCataloger-OHAJFCA7.js} +10 -9
- package/dist/{audio-F5OIQVJO.js → audio-65R4T74I.js} +18 -16
- package/dist/{auth-YVQLRS3T.js → auth-VP2SIZFN.js} +1 -1
- package/dist/{autoUpdate-EG4ZFW4D.js → autoUpdate-RVSUX4SS.js} +2 -2
- package/dist/{backgroundChecks-WINNQVR2.js → backgroundChecks-LEHK74NS.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-PASZTMEE.js → batchRender-3X6CL7PK.js} +5 -5
- package/dist/{beats-KGIOEBLW.js → beats-66VPQLSC.js} +6 -6
- package/dist/{benchmark-ZNY2L7HN.js → benchmark-PBJVTOJP.js} +10 -10
- package/dist/{browser-REAO7RU4.js → browser-TPL5MWGC.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-OAYLYC4W.js → bundleWithLocalizedFonts-67MLTHKM.js} +2 -2
- package/dist/{capture-WOSF276U.js → capture-F3GNMRZM.js} +14 -13
- package/dist/{capture-IK6GWQDD.js → capture-YYRE7EV3.js} +2 -2
- package/dist/{captureCompositionFrame-DDZNKYRE.js → captureCompositionFrame-PXV2ISHD.js} +14 -13
- package/dist/{catalog-AKTXS7OJ.js → catalog-6SDD3OHF.js} +14 -14
- package/dist/{catch-up-O3VZMPVE.js → catch-up-CWIVA5VG.js} +4 -4
- package/dist/{check-6E46NIWI.js → check-YQ6REK2S.js} +35 -34
- package/dist/{checkBrowser-UNZHQFNH.js → checkBrowser-5XZCBRXM.js} +32 -31
- package/dist/{chunk-TOHA5NAU.js → chunk-2TAS5O4P.js} +56 -11
- package/dist/{chunk-3Q47QC46.js → chunk-37CNYTQQ.js} +2 -2
- package/dist/chunk-3NPOFC43.js +3805 -0
- package/dist/{chunk-EEP5Y5IE.js → chunk-46HEFGXJ.js} +1 -1
- package/dist/{chunk-GAGMLVCV.js → chunk-4CTNDBE3.js} +2 -2
- package/dist/{chunk-CGK4XZ2J.js → chunk-55YELV7B.js} +1 -1
- package/dist/{chunk-TJB4GAV6.js → chunk-5GUKZRQN.js} +1 -1
- package/dist/{chunk-J4L5TPLS.js → chunk-5UDRPPN2.js} +48 -6
- package/dist/{chunk-SAQYJLI6.js → chunk-6ASIXMFP.js} +1 -1
- package/dist/{chunk-GPE3WWTO.js → chunk-6GPR3G3C.js} +14 -11
- package/dist/{chunk-MIZDJVPZ.js → chunk-6RIZY7OP.js} +1 -1
- package/dist/{chunk-5CS4T6C6.js → chunk-7L37AB57.js} +1 -1
- package/dist/{chunk-VH5KESLX.js → chunk-7PS6RVWD.js} +1 -1
- package/dist/{chunk-U5YVWG5W.js → chunk-7RAY4WZP.js} +3 -3
- package/dist/{chunk-COTLNID2.js → chunk-A6QCO474.js} +5 -5
- package/dist/{chunk-YMS5FOMC.js → chunk-B2A56S5C.js} +1 -1
- package/dist/{chunk-4FQKS7BJ.js → chunk-BH7TTIPN.js} +11 -13
- package/dist/{chunk-LBWRQ4XA.js → chunk-BRAPBUPQ.js} +1 -1
- package/dist/{chunk-IC2WYONA.js → chunk-CX3USX23.js} +3 -3
- package/dist/{chunk-ITSLKUQM.js → chunk-D42NU3DZ.js} +1 -1
- package/dist/{chunk-Q6UYKWBG.js → chunk-EMAWIZ54.js} +481 -36
- package/dist/{chunk-ZFO3A3QL.js → chunk-EMSDWBG3.js} +2 -2
- package/dist/{chunk-KRFAX5JK.js → chunk-ESBMUZXZ.js} +1 -1
- package/dist/{chunk-CAHTO62O.js → chunk-F3OPUWQX.js} +7 -7
- package/dist/{chunk-R6OV4J4K.js → chunk-FX6RUJUY.js} +3 -3
- package/dist/{chunk-F6WHPHLF.js → chunk-G2UANIDX.js} +1 -1
- package/dist/{chunk-DEORFAWP.js → chunk-H5SM5PJI.js} +1 -1
- package/dist/{chunk-5OGDBU4G.js → chunk-H6UY725W.js} +2 -2
- package/dist/{chunk-K2Z5DZBS.js → chunk-HDIRZGK4.js} +1 -1
- package/dist/{chunk-TXGZZKDF.js → chunk-HHSJJFVM.js} +2 -2
- package/dist/{chunk-VDJO4DJ7.js → chunk-HXUTX5GR.js} +3 -3
- package/dist/{chunk-73LTCCZI.js → chunk-I3IH5MV5.js} +19 -23
- package/dist/{chunk-3OLIGYWN.js → chunk-I45HL3VP.js} +3 -3
- package/dist/{chunk-TYXH3EKP.js → chunk-I5JRXMCV.js} +16 -1
- package/dist/{chunk-RZXUQR42.js → chunk-I7QMXZSB.js} +2 -2
- package/dist/{chunk-XOVHO3TT.js → chunk-IDFNKFPL.js} +7 -7
- package/dist/{chunk-QX4GGPMY.js → chunk-IDGLGXPA.js} +1 -1
- package/dist/{chunk-5MBLWFLM.js → chunk-IPDKZ5IN.js} +33 -6
- package/dist/{chunk-ANR6WOC3.js → chunk-ISTRDGIX.js} +1 -1
- package/dist/{chunk-4UFJWRHG.js → chunk-IVEFOUZI.js} +211 -83
- package/dist/chunk-IZCW2NKT.js +29 -0
- package/dist/{chunk-X3IA5RYH.js → chunk-J36JVBLR.js} +9 -2
- package/dist/{chunk-Z4R35NJS.js → chunk-J5XEZ24I.js} +3 -3
- package/dist/{chunk-OH56PXFH.js → chunk-K2ZKXTVL.js} +1 -1
- package/dist/{chunk-ATMDOUNN.js → chunk-K73RJB23.js} +2 -2
- package/dist/{chunk-NZ3BE2QE.js → chunk-KQ4JEJLF.js} +10 -10
- package/dist/{chunk-VFBAKPRC.js → chunk-KROXPHXX.js} +9 -3
- package/dist/{chunk-QGOYNPQT.js → chunk-LLFQA7XF.js} +48 -5
- package/dist/chunk-LLMSX6V6.js +17 -0
- package/dist/{chunk-XR5BSEUF.js → chunk-LYKSTRAY.js} +3 -3
- package/dist/{chunk-UNOSCGBG.js → chunk-OAG47RE6.js} +1 -1
- package/dist/{chunk-O7N3A7PE.js → chunk-PHMBMOXF.js} +1 -1
- package/dist/{chunk-BP4VNTZL.js → chunk-PMMQRJDE.js} +1 -1
- package/dist/{chunk-ADDHW2FS.js → chunk-Q447CX26.js} +82 -12
- package/dist/{chunk-WT4PYV2J.js → chunk-Q47FAYYK.js} +202 -55
- package/dist/{chunk-AKFADCMS.js → chunk-RTBSA3EA.js} +1 -1
- package/dist/{chunk-VAK7A2N6.js → chunk-RUEGYANA.js} +11 -11
- package/dist/{chunk-OYLO6TYK.js → chunk-RUOG4VB7.js} +1 -1
- package/dist/{chunk-EVAQPW6O.js → chunk-SKYPMHQC.js} +4 -4
- package/dist/{chunk-B2SZZFWW.js → chunk-SQVRXHOW.js} +3 -3
- package/dist/{chunk-CJYAJ3QM.js → chunk-TAX2ZJAP.js} +24 -16
- package/dist/{chunk-GTE5WZAM.js → chunk-TOI35GN2.js} +1 -1
- package/dist/{chunk-XJHKJXT4.js → chunk-UPR3MU6Z.js} +1 -1
- package/dist/{chunk-DLC2FICN.js → chunk-WQLKDL35.js} +2 -1
- package/dist/{chunk-3BA2GP4H.js → chunk-X6L6MD5B.js} +5 -5
- package/dist/{chunk-XAQDR5Y5.js → chunk-XGHHVYC7.js} +94 -32
- package/dist/{chunk-HLBODNGW.js → chunk-XWC7CNPY.js} +1 -1
- package/dist/{clean-WNEIVBF3.js → clean-7J6ZCCGV.js} +19 -18
- package/dist/cli.js +53 -53
- package/dist/{cloud-6GSSDCJL.js → cloud-7IJCJCDD.js} +4 -4
- package/dist/{cloudrun-4NEJRE4T.js → cloudrun-UNZRIIDB.js} +7 -7
- package/dist/commands/contrast-audit.browser.js +1 -2
- package/dist/commands/layout-audit.browser.js +196 -0
- package/dist/{compare-2JWQ5ABA.js → compare-Q7VW5JZT.js} +29 -28
- package/dist/{compiler-27KQD7KW.js → compiler-KPHYGFXL.js} +6 -6
- package/dist/{component-HCRET3MH.js → component-UUBREJKN.js} +3 -3
- package/dist/{compositions-HTSQ6SUJ.js → compositions-T4FTKIDP.js} +14 -13
- package/dist/{delete-GHQ5UYM7.js → delete-WZQF2IIA.js} +3 -3
- package/dist/{deploy-I3Z3NAVA.js → deploy-JU7A3XNC.js} +1 -1
- package/dist/{deterministicFonts-JFLSSKRB.js → deterministicFonts-EGAAE7QL.js} +3 -3
- package/dist/{dist-SENYPQGW.js → dist-LM7AVHOU.js} +3 -3
- package/dist/{dist-WRDLWRMS.js → dist-ULGTPSU4.js} +8 -4
- package/dist/docs/data-attributes.md +1 -1
- package/dist/{doctor-UGFVQZHI.js → doctor-VSNGRKXJ.js} +14 -13
- package/dist/{events-YS4OVX3I.js → events-CRW2DYUT.js} +3 -3
- package/dist/{events-BLJGWMNP.js → events-E63YBUL2.js} +3 -3
- package/dist/{feedback-AZ3SJ5HF.js → feedback-OSZWVR6N.js} +9 -9
- package/dist/{ffmpeg-2AECXG7V.js → ffmpeg-JLH3Z7G7.js} +10 -9
- package/dist/{figma-DRYIJQHV.js → figma-2BQNNR53.js} +3 -3
- package/dist/fontLocalizeCli.js +13 -12
- package/dist/{get-DDEAOFPB.js → get-P2XI53QW.js} +3 -3
- package/dist/{gpuPolicy-UDJT2MQK.js → gpuPolicy-NTKQJY75.js} +10 -9
- package/dist/{grade-compare-LJKK5NSY.js → grade-compare-OYASIHIB.js} +30 -29
- package/dist/{gsapParserAcorn-7NCK2LVT.js → gsapParserAcorn-SKODXC2N.js} +2 -2
- package/dist/{help-TQBGYOID.js → help-HK6K2N4G.js} +1 -1
- package/dist/{history-5TOOCF2Y.js → history-JMTYKLXW.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-ENI5MP4W.js → info-AW7CIVRE.js} +9 -9
- package/dist/{init-JXPXWV3G.js → init-6KIDG4LB.js} +31 -30
- package/dist/{inspect-WZNYQ5AB.js → inspect-B7BLYMRZ.js} +30 -29
- package/dist/{installer-3SGRBLJW.js → installer-ZP2LQZUQ.js} +7 -7
- package/dist/{keyframes-HEOC4CT4.js → keyframes-EQ36A5JE.js} +7 -7
- package/dist/{lambda-2VHQ4AL2.js → lambda-E6VURLIS.js} +9 -9
- package/dist/{layout-7WEUNO6T.js → layout-XYC64QQQ.js} +30 -29
- package/dist/{lint-5YMAF3L7.js → lint-V5DJYWBX.js} +9 -9
- package/dist/{lintProject-C2ONSH2U.js → lintProject-JATQKR64.js} +3 -3
- package/dist/{list-BIE3X7CO.js → list-RUGVRTVD.js} +3 -3
- package/dist/{login-YDIGJWCG.js → login-ZTKGKXGS.js} +4 -4
- package/dist/{manager-D2UV6RDQ.js → manager-JUP7PM6N.js} +11 -10
- package/dist/{media-treatment-FSKHPMWA.js → media-treatment-VIUPK4OR.js} +16 -15
- package/dist/{models-COEK6LXG.js → models-LJS2HBOZ.js} +14 -13
- package/dist/{motionShot-HYZ2ZGJQ.js → motionShot-3UAXZ7SN.js} +17 -16
- package/dist/{normalize-audio-UXR6WQ7Q.js → normalize-audio-SBYI4YIH.js} +4 -4
- package/dist/{open-OFT2GIDG.js → open-S27TUD3A.js} +14 -14
- package/dist/{parakeetRunner-4NZ3QXS3.js → parakeetRunner-ETLMLJ4L.js} +15 -14
- package/dist/{pipeline-ZKE54JMG.js → pipeline-I2M22M24.js} +11 -10
- package/dist/{play-2VG77FT6.js → play-COJU6VJK.js} +22 -21
- package/dist/{preflight-QTWDIM5C.js → preflight-FZ24NCHH.js} +11 -10
- package/dist/{present-OONXQLJG.js → present-YAHKLC5D.js} +18 -17
- package/dist/{preview-6RZJFU76.js → preview-KQOEU5YE.js} +27 -26
- package/dist/{producer-6YM3UH3B.js → producer-DTNNG4T6.js} +1 -1
- package/dist/{projectConfig-YMW4P2X6.js → projectConfig-4A76VYUP.js} +9 -9
- package/dist/{publication-SEINUAPZ.js → publication-SQPMC2W3.js} +4 -4
- package/dist/{publish-KZBTBWFO.js → publish-QUEJBGGT.js} +13 -12
- package/dist/{remove-background-BIQNMIR7.js → remove-background-FP2ETAQH.js} +12 -11
- package/dist/{render-FIH37HJA.js → render-BIFIL4U6.js} +32 -31
- package/dist/render-GQFXJWLV.js +1504 -0
- package/dist/{render-LW76HOMJ.js → render-P664SMC7.js} +5 -5
- package/dist/{render-batch-POLEEYD4.js → render-batch-ZCPMYH6Z.js} +5 -5
- package/dist/renderSetupWorker.js +3 -3
- package/dist/{resolver-O2SED3XB.js → resolver-BUC2GFZQ.js} +6 -6
- package/dist/{sherpa-HTFFFTVQ.js → sherpa-HFT6XEP6.js} +14 -13
- package/dist/skills/hyperframes/SKILL.md +52 -174
- package/dist/skills/hyperframes/assets/frame-presets/biennale-yellow/FRAME.md +289 -0
- package/dist/skills/hyperframes/assets/frame-presets/biennale-yellow/caption-skin.html +220 -0
- package/dist/skills/hyperframes/assets/frame-presets/biennale-yellow/frame-showcase.html +1214 -0
- package/dist/skills/hyperframes/assets/frame-presets/blockframe/FRAME.md +275 -0
- package/dist/skills/hyperframes/assets/frame-presets/blockframe/caption-skin.html +223 -0
- package/dist/skills/hyperframes/assets/frame-presets/blockframe/frame-showcase.html +1347 -0
- package/dist/skills/hyperframes/assets/frame-presets/blue-professional/FRAME.md +307 -0
- package/dist/skills/hyperframes/assets/frame-presets/blue-professional/caption-skin.html +222 -0
- package/dist/skills/hyperframes/assets/frame-presets/blue-professional/frame-showcase.html +1372 -0
- package/dist/skills/hyperframes/assets/frame-presets/bold-poster/FRAME.md +275 -0
- package/dist/skills/hyperframes/assets/frame-presets/bold-poster/caption-skin.html +229 -0
- package/dist/skills/hyperframes/assets/frame-presets/bold-poster/frame-showcase.html +1140 -0
- package/dist/skills/hyperframes/assets/frame-presets/broadside/FRAME.md +284 -0
- package/dist/skills/hyperframes/assets/frame-presets/broadside/caption-skin.html +224 -0
- package/dist/skills/hyperframes/assets/frame-presets/broadside/frame-showcase.html +1166 -0
- package/dist/skills/hyperframes/assets/frame-presets/capsule/FRAME.md +284 -0
- package/dist/skills/hyperframes/assets/frame-presets/capsule/caption-skin.html +223 -0
- package/dist/skills/hyperframes/assets/frame-presets/capsule/frame-showcase.html +1465 -0
- package/dist/skills/hyperframes/assets/frame-presets/cartesian/FRAME.md +278 -0
- package/dist/skills/hyperframes/assets/frame-presets/cartesian/caption-skin.html +221 -0
- package/dist/skills/hyperframes/assets/frame-presets/cartesian/frame-showcase.html +1263 -0
- package/dist/skills/hyperframes/assets/frame-presets/cobalt-grid/FRAME.md +265 -0
- package/dist/skills/hyperframes/assets/frame-presets/cobalt-grid/caption-skin.html +237 -0
- package/dist/skills/hyperframes/assets/frame-presets/cobalt-grid/frame-showcase.html +1468 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/FRAME.md +277 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/caption-skin.html +223 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/fonts/EBGaramond-400.woff2 +0 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/fonts/EBGaramond-700.woff2 +0 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/fonts/Inter-400.woff2 +0 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/fonts/Inter-700.woff2 +0 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/fonts/JetBrainsMono-400.woff2 +0 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/fonts/JetBrainsMono-700.woff2 +0 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/fonts/OFL-eb-garamond.txt +93 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/fonts/OFL-inter.txt +93 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/fonts/OFL-jetbrains-mono.txt +93 -0
- package/dist/skills/hyperframes/assets/frame-presets/code-editorial/frame-showcase.html +1438 -0
- package/dist/skills/hyperframes/assets/frame-presets/coral/FRAME.md +314 -0
- package/dist/skills/hyperframes/assets/frame-presets/coral/caption-skin.html +225 -0
- package/dist/skills/hyperframes/assets/frame-presets/coral/frame-showcase.html +1268 -0
- package/dist/skills/hyperframes/assets/frame-presets/creative-mode/FRAME.md +333 -0
- package/dist/skills/hyperframes/assets/frame-presets/creative-mode/caption-skin.html +226 -0
- package/dist/skills/hyperframes/assets/frame-presets/creative-mode/frame-showcase.html +1330 -0
- package/dist/skills/hyperframes/assets/frame-presets/daisy-days/FRAME.md +274 -0
- package/dist/skills/hyperframes/assets/frame-presets/daisy-days/caption-skin.html +229 -0
- package/dist/skills/hyperframes/assets/frame-presets/daisy-days/frame-showcase.html +1444 -0
- package/dist/skills/hyperframes/assets/frame-presets/editorial-forest/FRAME.md +265 -0
- package/dist/skills/hyperframes/assets/frame-presets/editorial-forest/caption-skin.html +222 -0
- package/dist/skills/hyperframes/assets/frame-presets/editorial-forest/frame-showcase.html +1273 -0
- package/dist/skills/hyperframes/references/captions.md +46 -0
- package/dist/skills/hyperframes/references/film.md +47 -0
- package/dist/skills/hyperframes/references/format.md +157 -0
- package/dist/skills/hyperframes/references/look.md +69 -0
- package/dist/skills/hyperframes/references/motion.md +94 -0
- package/dist/skills/hyperframes/references/overlays.md +39 -0
- package/dist/skills/hyperframes/references/plugin-installation.md +3 -3
- package/dist/skills/hyperframes/references/review.md +51 -0
- package/dist/skills/hyperframes/references/runtimes.md +43 -0
- package/dist/skills/hyperframes/references/skill-lifecycle.md +21 -13
- package/dist/skills/hyperframes/references/sound.md +43 -0
- package/dist/skills/hyperframes/references/spec.md +76 -0
- package/dist/skills/hyperframes/references/story.md +103 -0
- package/dist/skills/hyperframes/references/storyboard-format.md +30 -22
- package/dist/skills/hyperframes/references/storyboard.md +36 -0
- package/dist/skills/hyperframes/references/types/3d.md +25 -0
- package/dist/skills/hyperframes/references/types/character.md +20 -0
- package/dist/skills/hyperframes/references/types/data.md +19 -0
- package/dist/skills/hyperframes/references/types/explainer.md +34 -0
- package/dist/skills/hyperframes/references/types/launch.md +31 -0
- package/dist/skills/hyperframes/references/types/music.md +24 -0
- package/dist/skills/hyperframes/references/types/vertical.md +23 -0
- package/dist/skills/hyperframes/scripts/bake-basemap.mjs +324 -0
- package/dist/skills/hyperframes/scripts/lib/main-module.test.mjs +1 -6
- package/dist/skills/hyperframes/scripts/locate.mjs +228 -0
- package/dist/skills/hyperframes-cli/SKILL.md +76 -179
- package/dist/skills/hyperframes-cli/references/beats.md +1 -1
- package/dist/skills/hyperframes-cli/references/cloud.md +2 -2
- package/dist/skills/hyperframes-cli/references/cloudrun.md +1 -1
- package/dist/skills/hyperframes-cli/references/conventions.md +17 -0
- package/dist/skills/hyperframes-cli/references/feedback.md +14 -0
- package/dist/skills/hyperframes-cli/references/init-and-scaffold.md +11 -7
- package/dist/skills/hyperframes-cli/references/lambda.md +1 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +19 -8
- package/dist/skills/hyperframes-cli/references/preview-render.md +8 -2
- package/dist/skills/hyperframes-cli/references/upgrade-info-misc.md +8 -0
- package/dist/skills/media-use/SKILL.md +47 -91
- package/dist/skills/media-use/audio/references/bgm.md +1 -1
- package/dist/skills/media-use/audio/references/captions/authoring.md +1 -2
- package/dist/skills/media-use/audio/references/captions/motion.md +5 -5
- package/dist/skills/media-use/audio/references/tts.md +0 -3
- package/dist/skills/media-use/audio/scripts/audio.mjs +5 -6
- package/dist/skills/media-use/audio/scripts/carve.mjs +560 -0
- package/dist/skills/media-use/audio/scripts/carve.test.mjs +254 -0
- package/dist/skills/media-use/audio/scripts/extract-audio-data.py +199 -0
- package/dist/skills/media-use/references/local.md +24 -0
- package/dist/skills/media-use/references/memory.md +4 -4
- package/dist/skills/media-use/references/mixing.md +71 -0
- package/dist/skills/media-use/references/operations.md +1 -1
- package/dist/skills/media-use/scripts/compatibility.test.mjs +1 -56
- package/dist/skills/media-use/scripts/lib/prefs-store.mjs +1 -1
- package/dist/skills/media-use/scripts/lib/recipe-store.mjs +1 -1
- package/dist/skills/media-use/scripts/prefs.mjs +2 -3
- package/dist/skills/media-use/scripts/recipe.mjs +1 -3
- package/dist/{skills-J6MBGS5O.js → skills-3WEVO3NU.js} +20 -13
- package/dist/{skillsUpdateCheck-ZAXNLBF3.js → skillsUpdateCheck-BFPWFOK5.js} +3 -3
- package/dist/{snapshot-TL7TTFS6.js → snapshot-WDQ6S7CJ.js} +458 -98
- package/dist/{src-Z5H5N5T4.js → src-NPR2JZOJ.js} +15 -11
- package/dist/{src-EL6HGIS4.js → src-RZ574OKP.js} +9 -8
- package/dist/{staticProjectServer-EO7X7RAY.js → staticProjectServer-FTGTEZI4.js} +18 -17
- package/dist/studio/assets/{hyperframes-player-hz_VqxBZ.js → hyperframes-player-CoOdf435.js} +1 -1
- package/dist/studio/assets/{index-CV_ojgp5.js → index-CR85xg2x.js} +1 -1
- package/dist/studio/assets/{index-S1ceEagc.js → index-C_6rTpaB.js} +5 -5
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-CUZDC5B3.js → studio-api-TAWB7B23.js} +12 -11
- package/dist/{studioServer-EZPRV43Y.js → studioServer-HRQGJTBU.js} +49 -48
- package/dist/{telemetry-LFUVHARP.js → telemetry-QZ6HJF4W.js} +3 -3
- package/dist/templates/_shared/AGENTS.md +14 -19
- package/dist/templates/_shared/CLAUDE.md +14 -19
- package/dist/templates/blank/index.html +10 -4
- package/dist/{timeline-GSH743JE.js → timeline-IKUEW42T.js} +21 -19
- package/dist/{tokens-3ZMPSH7B.js → tokens-AUGUEWHS.js} +2 -2
- package/dist/{transcribe-4SHNDPWW.js → transcribe-7734CG3N.js} +19 -18
- package/dist/{transcribe-TV7JBZQS.js → transcribe-FWU6EMEO.js} +13 -12
- package/dist/{updateCheck-W7FTFOQF.js → updateCheck-VIPQ3FPW.js} +2 -2
- package/dist/{upgrade-7YYYNAPF.js → upgrade-4VNDQTVO.js} +2 -2
- package/dist/{urlDownloader-PQSUS2CP.js → urlDownloader-6CXL4CL7.js} +9 -8
- package/dist/{validate-GCHAEVXM.js → validate-QWCMVWID.js} +24 -23
- package/dist/{video-KGN7NJS5.js → video-245Q5WN4.js} +10 -9
- package/dist/warmCheck.js +37 -36
- package/package.json +1 -1
- package/dist/chunk-GMNHAOMJ.js +0 -3805
- package/dist/render-65K3K6SD.js +0 -719
- package/dist/skills/hyperframes/references/brief-contract.md +0 -108
- package/dist/skills/hyperframes/references/brief-format.md +0 -72
- package/dist/skills/hyperframes/references/capability-menu.md +0 -47
- package/dist/skills/hyperframes/references/frame-worker-core.md +0 -82
- package/dist/skills/hyperframes/references/intent-interview.md +0 -73
- package/dist/skills/hyperframes/references/pitch-round.md +0 -40
- package/dist/skills/hyperframes/references/production-loop.md +0 -26
- package/dist/skills/hyperframes/references/review-loop.md +0 -37
- package/dist/skills/hyperframes/references/route-briefs.md +0 -11
- package/dist/skills/hyperframes/references/routes/embedded-captions.md +0 -11
- package/dist/skills/hyperframes/references/routes/faceless-explainer.md +0 -12
- package/dist/skills/hyperframes/references/routes/general-video.md +0 -12
- package/dist/skills/hyperframes/references/routes/motion-graphics.md +0 -11
- package/dist/skills/hyperframes/references/routes/music-to-video.md +0 -12
- package/dist/skills/hyperframes/references/routes/pr-to-video.md +0 -28
- package/dist/skills/hyperframes/references/routes/product-launch-video.md +0 -13
- package/dist/skills/hyperframes/references/routes/remotion-to-hyperframes.md +0 -9
- package/dist/skills/hyperframes/references/routes/slideshow.md +0 -11
- package/dist/skills/hyperframes/references/routes/talking-head-recut.md +0 -11
- package/dist/skills/hyperframes/references/script-format.md +0 -52
- package/dist/skills/hyperframes/references/subagent-dispatch.md +0 -35
- package/dist/skills/hyperframes/references/workflow-catalog.md +0 -10
- package/dist/skills/hyperframes/scripts/lib/frame-packets-core.mjs +0 -176
- package/dist/skills/media-use/audio/scripts/lib/host-audio.mjs +0 -28
- package/dist/skills/media-use/audio/scripts/lib/host-audio.test.mjs +0 -106
|
@@ -6,27 +6,27 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
resolveProject
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5GUKZRQN.js";
|
|
10
10
|
import {
|
|
11
11
|
serveStaticProjectHtml
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-J5XEZ24I.js";
|
|
13
13
|
import {
|
|
14
14
|
AUDIT_SEEK_OPTIONS,
|
|
15
15
|
installPageFunctionGuard,
|
|
16
16
|
seekCompositionTimeline,
|
|
17
17
|
waitForCompositionFonts,
|
|
18
18
|
waitForRuntimeReady
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-IDFNKFPL.js";
|
|
20
20
|
import {
|
|
21
21
|
launchManagedBrowser,
|
|
22
22
|
resolveManagedGpuMode
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TOI35GN2.js";
|
|
24
24
|
import {
|
|
25
25
|
gotoWhenSent
|
|
26
26
|
} from "./chunk-MOEGCMKI.js";
|
|
27
27
|
import {
|
|
28
28
|
pageNavigationTimeoutMs
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SQVRXHOW.js";
|
|
30
30
|
import {
|
|
31
31
|
defineCommand
|
|
32
32
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
import {
|
|
41
41
|
printDeprecationNotice,
|
|
42
42
|
withMeta
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-ISTRDGIX.js";
|
|
44
44
|
import {
|
|
45
45
|
normalizeErrorMessage
|
|
46
46
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -345,6 +345,7 @@ function roundTime(value) {
|
|
|
345
345
|
var APPEAR_OPACITY = 0.5;
|
|
346
346
|
var FRAME_TOLERANCE = 1;
|
|
347
347
|
var DEFAULT_MAX_STATIC_SEC = 2;
|
|
348
|
+
var END_CARD_HOLD_SEC = 3;
|
|
348
349
|
var ZERO_RECT = { left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0 };
|
|
349
350
|
function ambiguousIssue(selector) {
|
|
350
351
|
return {
|
|
@@ -448,13 +449,14 @@ function staysInFrame(frames, selector, canvas) {
|
|
|
448
449
|
}
|
|
449
450
|
return [];
|
|
450
451
|
}
|
|
451
|
-
function frozenSpans(frames, scope, maxStaticSec) {
|
|
452
|
+
function frozenSpans(frames, scope, maxStaticSec, endCardStart = Number.POSITIVE_INFINITY) {
|
|
452
453
|
const spans = [];
|
|
453
454
|
const first = frames[0];
|
|
454
455
|
if (!first) return spans;
|
|
455
456
|
let runStart = first.time;
|
|
456
457
|
let runSig = first.liveness[scope] ?? "";
|
|
457
|
-
const flush = (
|
|
458
|
+
const flush = (runEnd) => {
|
|
459
|
+
const end = Math.min(runEnd, endCardStart);
|
|
458
460
|
if (end - runStart > maxStaticSec) spans.push({ start: runStart, end });
|
|
459
461
|
};
|
|
460
462
|
let lastTime = runStart;
|
|
@@ -470,12 +472,12 @@ function frozenSpans(frames, scope, maxStaticSec) {
|
|
|
470
472
|
flush(lastTime);
|
|
471
473
|
return spans;
|
|
472
474
|
}
|
|
473
|
-
function keepsMoving(frames, within, maxStaticSec) {
|
|
475
|
+
function keepsMoving(frames, within, maxStaticSec, endCardStart) {
|
|
474
476
|
const scope = within ?? "*";
|
|
475
477
|
if (within && frames.every((frame) => !frame.liveness[scope])) {
|
|
476
478
|
return [missingIssue(within, 0)];
|
|
477
479
|
}
|
|
478
|
-
return frozenSpans(frames, scope, maxStaticSec).map(({ start, end }) => ({
|
|
480
|
+
return frozenSpans(frames, scope, maxStaticSec, endCardStart).map(({ start, end }) => ({
|
|
479
481
|
code: "motion_frozen",
|
|
480
482
|
severity: "error",
|
|
481
483
|
time: start,
|
|
@@ -485,8 +487,9 @@ function keepsMoving(frames, within, maxStaticSec) {
|
|
|
485
487
|
fixHint: "Add or extend motion so no shot freezes for this long, or shorten the static hold."
|
|
486
488
|
}));
|
|
487
489
|
}
|
|
488
|
-
function evaluateMotion(frames, assertions, canvas) {
|
|
490
|
+
function evaluateMotion(frames, assertions, canvas, filmDuration) {
|
|
489
491
|
if (frames.length === 0) return [];
|
|
492
|
+
const endCardStart = filmDuration !== void 0 && filmDuration > 0 ? filmDuration - END_CARD_HOLD_SEC : Number.POSITIVE_INFINITY;
|
|
490
493
|
return assertions.flatMap((assertion) => {
|
|
491
494
|
switch (assertion.kind) {
|
|
492
495
|
case "appearsBy":
|
|
@@ -499,7 +502,8 @@ function evaluateMotion(frames, assertions, canvas) {
|
|
|
499
502
|
return keepsMoving(
|
|
500
503
|
frames,
|
|
501
504
|
assertion.withinSelector,
|
|
502
|
-
assertion.maxStaticSec ?? DEFAULT_MAX_STATIC_SEC
|
|
505
|
+
assertion.maxStaticSec ?? DEFAULT_MAX_STATIC_SEC,
|
|
506
|
+
endCardStart
|
|
503
507
|
);
|
|
504
508
|
}
|
|
505
509
|
});
|
|
@@ -711,7 +715,7 @@ async function collectTweenBoundaries(page) {
|
|
|
711
715
|
});
|
|
712
716
|
}
|
|
713
717
|
async function bundleProjectHtml(projectDir) {
|
|
714
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
718
|
+
const { bundleToSingleHtml } = await import("./compiler-KPHYGFXL.js");
|
|
715
719
|
return bundleToSingleHtml(projectDir);
|
|
716
720
|
}
|
|
717
721
|
async function alignViewportToComposition(page, url) {
|
|
@@ -730,13 +734,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
730
734
|
async function runLayoutAudit(projectDir, opts) {
|
|
731
735
|
const { ensureBrowser } = await import("./manager-UHWEKPXC.js");
|
|
732
736
|
const puppeteer = await import("puppeteer-core");
|
|
733
|
-
const { buildChromeArgs } = await import("./src-
|
|
737
|
+
const { buildChromeArgs } = await import("./src-RZ574OKP.js");
|
|
734
738
|
const {
|
|
735
739
|
assertWebGpuAdapterAvailable,
|
|
736
740
|
compositionRequiresWebGpu,
|
|
737
741
|
resolveLocalBrowserGpuMode,
|
|
738
742
|
resolveLocalWebGpu
|
|
739
|
-
} = await import("./gpuPolicy-
|
|
743
|
+
} = await import("./gpuPolicy-NTKQJY75.js");
|
|
740
744
|
const html = await bundleProjectHtml(projectDir);
|
|
741
745
|
const server = await serveStaticProjectHtml(
|
|
742
746
|
projectDir,
|
|
@@ -872,7 +876,10 @@ async function runMotionPass(page, spec, duration) {
|
|
|
872
876
|
await page.addScriptTag({ content: loadBrowserScript("motion-signature.browser.js") });
|
|
873
877
|
await page.addScriptTag({ content: loadBrowserScript("motion-sample.browser.js") });
|
|
874
878
|
const frames = await collectMotionFrames(page, times, selectors, livenessScopes);
|
|
875
|
-
return {
|
|
879
|
+
return {
|
|
880
|
+
issues: evaluateMotion(frames, spec.assertions, canvas, duration),
|
|
881
|
+
sampleCount: frames.length
|
|
882
|
+
};
|
|
876
883
|
}
|
|
877
884
|
function resolveMotionSpec(specPath, json) {
|
|
878
885
|
const parsed = readMotionSpec(specPath);
|
|
@@ -1110,6 +1117,7 @@ export {
|
|
|
1110
1117
|
buildTransitionSampleTimes,
|
|
1111
1118
|
mergeSampleTimes,
|
|
1112
1119
|
DEFAULT_MAX_STATIC_SEC,
|
|
1120
|
+
END_CARD_HOLD_SEC,
|
|
1113
1121
|
ambiguousIssue,
|
|
1114
1122
|
frozenSpans,
|
|
1115
1123
|
evaluateMotion,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
flush,
|
|
9
9
|
shouldTrack,
|
|
10
10
|
trackEvent
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-H5SM5PJI.js";
|
|
12
12
|
import {
|
|
13
13
|
CliRuntimeError
|
|
14
14
|
} from "./chunk-JVBRJMOP.js";
|
|
@@ -550,6 +550,7 @@ function trackCheckReport(props) {
|
|
|
550
550
|
motion_warnings: props.motionWarnings,
|
|
551
551
|
contrast_errors: props.contrastErrors,
|
|
552
552
|
contrast_warnings: props.contrastWarnings,
|
|
553
|
+
craft_warnings: props.craftWarnings,
|
|
553
554
|
launch_settle_ms: props.launchSettleMs,
|
|
554
555
|
seek_loop_ms: props.seekLoopMs,
|
|
555
556
|
contrast_ms: props.contrastMs,
|
|
@@ -6,26 +6,26 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
parakeetRunner
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XWC7CNPY.js";
|
|
10
10
|
import {
|
|
11
11
|
DecodeCancelled,
|
|
12
12
|
prepareSherpaWav,
|
|
13
13
|
sherpaUnsupportedReason,
|
|
14
14
|
transcribeWithSherpa
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CX3USX23.js";
|
|
16
16
|
import {
|
|
17
17
|
initialModelForLanguage,
|
|
18
18
|
transcribe
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7RAY4WZP.js";
|
|
20
20
|
import {
|
|
21
21
|
createRenderCancellationScope,
|
|
22
22
|
stoppedByCancelSignal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IDGLGXPA.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_MODEL,
|
|
26
26
|
findWhisper,
|
|
27
27
|
isWhisperUnavailable
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6ASIXMFP.js";
|
|
29
29
|
import {
|
|
30
30
|
formatSrt,
|
|
31
31
|
formatVtt,
|
|
@@ -107,7 +107,15 @@ function writeTeamProject(projectDir, team) {
|
|
|
107
107
|
|
|
108
108
|
// src/utils/publishProject.ts
|
|
109
109
|
import { basename, dirname, join as join2, posix, relative, resolve as resolve2 } from "path";
|
|
110
|
-
import {
|
|
110
|
+
import {
|
|
111
|
+
closeSync,
|
|
112
|
+
existsSync as existsSync2,
|
|
113
|
+
fstatSync,
|
|
114
|
+
openSync,
|
|
115
|
+
readdirSync,
|
|
116
|
+
readFileSync as readFileSync2,
|
|
117
|
+
statSync
|
|
118
|
+
} from "fs";
|
|
111
119
|
import AdmZip from "adm-zip";
|
|
112
120
|
import ignore from "ignore";
|
|
113
121
|
var IGNORED_DIRS = /* @__PURE__ */ new Set([".git", "node_modules", "dist", ".next", "coverage"]);
|
|
@@ -182,18 +190,19 @@ function getUploadHeaders(data, uploadUrl, contentType, archiveByteLength) {
|
|
|
182
190
|
}
|
|
183
191
|
}
|
|
184
192
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
if (signedHeaders?.split(";").includes("x-amz-server-side-encryption") && !Object.keys(headers).some((key) => key.toLowerCase() === "x-amz-server-side-encryption")) {
|
|
190
|
-
headers["x-amz-server-side-encryption"] = "AES256";
|
|
193
|
+
setHeaderIfAbsent(headers, "content-type", contentType);
|
|
194
|
+
const signedHeaders = new URL(uploadUrl).searchParams.get("X-Amz-SignedHeaders")?.split(";") ?? [];
|
|
195
|
+
if (signedHeaders.includes("x-amz-server-side-encryption")) {
|
|
196
|
+
setHeaderIfAbsent(headers, "x-amz-server-side-encryption", "AES256");
|
|
191
197
|
}
|
|
192
|
-
if (signedHeaders
|
|
193
|
-
headers
|
|
198
|
+
if (signedHeaders.includes("content-length")) {
|
|
199
|
+
setHeaderIfAbsent(headers, "content-length", String(archiveByteLength));
|
|
194
200
|
}
|
|
195
201
|
return headers;
|
|
196
202
|
}
|
|
203
|
+
function setHeaderIfAbsent(headers, name, value) {
|
|
204
|
+
if (!Object.keys(headers).some((key) => key.toLowerCase() === name)) headers[name] = value;
|
|
205
|
+
}
|
|
197
206
|
async function readJson(response) {
|
|
198
207
|
return response.clone().json().catch(() => null);
|
|
199
208
|
}
|
|
@@ -330,6 +339,43 @@ function collectProjectFiles(rootDir, currentDir, paths, matcher) {
|
|
|
330
339
|
}
|
|
331
340
|
}
|
|
332
341
|
var EXT_ASSETS_PREFIX = "_ext";
|
|
342
|
+
var TEXT_FILE_EXTS = /\.(html?|css|m?js|cjs|json|svg|xml|txt)$/i;
|
|
343
|
+
function stagedSize(file) {
|
|
344
|
+
return Buffer.isBuffer(file) ? file.byteLength : file.size;
|
|
345
|
+
}
|
|
346
|
+
function assertSame(file, now) {
|
|
347
|
+
if (now?.size !== file.size || now.mtimeMs !== file.mtimeMs) {
|
|
348
|
+
throw new Error(`${file.absPath} changed on disk while it was being prepared. Run it again.`);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
function assertUnchanged(file) {
|
|
352
|
+
assertSame(file, statSync(file.absPath, { throwIfNoEntry: false }));
|
|
353
|
+
}
|
|
354
|
+
function readChecked(path, check) {
|
|
355
|
+
const fd = openSync(path, "r");
|
|
356
|
+
try {
|
|
357
|
+
check(fstatSync(fd));
|
|
358
|
+
const bytes = readFileSync2(fd);
|
|
359
|
+
check(fstatSync(fd));
|
|
360
|
+
return bytes;
|
|
361
|
+
} finally {
|
|
362
|
+
closeSync(fd);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
function readStaged(file) {
|
|
366
|
+
if (Buffer.isBuffer(file)) return file;
|
|
367
|
+
return readChecked(file.absPath, (stat) => assertSame(file, stat));
|
|
368
|
+
}
|
|
369
|
+
function stageFile(absPath, onDiskMinBytes) {
|
|
370
|
+
const fd = openSync(absPath, "r");
|
|
371
|
+
try {
|
|
372
|
+
const { size, mtimeMs } = fstatSync(fd);
|
|
373
|
+
if (size < onDiskMinBytes || TEXT_FILE_EXTS.test(absPath)) return readFileSync2(fd);
|
|
374
|
+
return { absPath, size, mtimeMs };
|
|
375
|
+
} finally {
|
|
376
|
+
closeSync(fd);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
333
379
|
function addExternalAsset(ctx, absPath) {
|
|
334
380
|
const existing = ctx.externalMap.get(absPath);
|
|
335
381
|
if (existing) return existing;
|
|
@@ -343,7 +389,7 @@ function addExternalAsset(ctx, absPath) {
|
|
|
343
389
|
while (ctx.usedArchivePaths.has(`${base}_${i}${ext}`)) i++;
|
|
344
390
|
archivePath = `${base}_${i}${ext}`;
|
|
345
391
|
}
|
|
346
|
-
ctx.fileContents.set(archivePath,
|
|
392
|
+
ctx.fileContents.set(archivePath, stageFile(absPath, ctx.onDiskMinBytes));
|
|
347
393
|
ctx.externalMap.set(absPath, archivePath);
|
|
348
394
|
ctx.usedArchivePaths.add(archivePath);
|
|
349
395
|
return archivePath;
|
|
@@ -359,13 +405,16 @@ function tryResolveExternal(ctx, rawPath, referrerAbsDir) {
|
|
|
359
405
|
}
|
|
360
406
|
return addExternalAsset(ctx, absPath);
|
|
361
407
|
}
|
|
362
|
-
function
|
|
408
|
+
function referenceFrom(entryPath, target) {
|
|
409
|
+
return isNonRelativeUrl(target) ? target : posix.relative(posix.dirname(entryPath), target);
|
|
410
|
+
}
|
|
411
|
+
function rewriteCssUrls(css, referrerAbsDir, entryPath, resolveTarget) {
|
|
363
412
|
let modified = false;
|
|
364
413
|
const rewritten = css.replace(CSS_URL_RE, (full, quote, rawUrl) => {
|
|
365
|
-
const
|
|
366
|
-
if (!
|
|
414
|
+
const target = resolveTarget((rawUrl || "").trim(), referrerAbsDir);
|
|
415
|
+
if (!target) return full;
|
|
367
416
|
modified = true;
|
|
368
|
-
return `url(${quote || ""}${
|
|
417
|
+
return `url(${quote || ""}${referenceFrom(entryPath, target)}${quote || ""})`;
|
|
369
418
|
});
|
|
370
419
|
return { css: rewritten, modified };
|
|
371
420
|
}
|
|
@@ -377,20 +426,20 @@ function rewriteHtmlAttributes(document, referrerAbsDir, entryPath, resolveTarge
|
|
|
377
426
|
for (const attr of attrs) {
|
|
378
427
|
const val = (el.getAttribute(attr) || "").trim();
|
|
379
428
|
if (!val) continue;
|
|
380
|
-
const
|
|
381
|
-
if (!
|
|
382
|
-
el.setAttribute(attr,
|
|
429
|
+
const target = resolveTarget(val, referrerAbsDir);
|
|
430
|
+
if (!target) continue;
|
|
431
|
+
el.setAttribute(attr, referenceFrom(entryPath, target));
|
|
383
432
|
modified = true;
|
|
384
433
|
}
|
|
385
434
|
}
|
|
386
435
|
return modified;
|
|
387
436
|
}
|
|
388
|
-
function rewriteStyleBlocks(
|
|
437
|
+
function rewriteStyleBlocks(document, referrerAbsDir, entryPath, resolveTarget) {
|
|
389
438
|
let modified = false;
|
|
390
439
|
for (const styleEl of document.querySelectorAll("style")) {
|
|
391
440
|
const css = styleEl.textContent || "";
|
|
392
441
|
if (!css.includes("url(")) continue;
|
|
393
|
-
const result = rewriteCssUrls(
|
|
442
|
+
const result = rewriteCssUrls(css, referrerAbsDir, entryPath, resolveTarget);
|
|
394
443
|
if (result.modified) {
|
|
395
444
|
styleEl.textContent = result.css;
|
|
396
445
|
modified = true;
|
|
@@ -399,7 +448,7 @@ function rewriteStyleBlocks(ctx, document, referrerAbsDir, entryPath) {
|
|
|
399
448
|
for (const el of document.querySelectorAll("[style]")) {
|
|
400
449
|
const style = el.getAttribute("style") || "";
|
|
401
450
|
if (!style.includes("url(")) continue;
|
|
402
|
-
const result = rewriteCssUrls(
|
|
451
|
+
const result = rewriteCssUrls(style, referrerAbsDir, entryPath, resolveTarget);
|
|
403
452
|
if (result.modified) {
|
|
404
453
|
el.setAttribute("style", result.css);
|
|
405
454
|
modified = true;
|
|
@@ -410,13 +459,9 @@ function rewriteStyleBlocks(ctx, document, referrerAbsDir, entryPath) {
|
|
|
410
459
|
function localizeHtmlEntry(ctx, entryPath, content) {
|
|
411
460
|
const referrerAbsDir = resolve2(ctx.absProjectDir, dirname(entryPath));
|
|
412
461
|
const { document } = parseHTML(content.toString("utf-8"));
|
|
413
|
-
const
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
entryPath,
|
|
417
|
-
(val, dir) => tryResolveExternal(ctx, val, dir)
|
|
418
|
-
);
|
|
419
|
-
const stylesChanged = rewriteStyleBlocks(ctx, document, referrerAbsDir, entryPath);
|
|
462
|
+
const resolveTarget = (val, dir) => tryResolveExternal(ctx, val, dir);
|
|
463
|
+
const attrsChanged = rewriteHtmlAttributes(document, referrerAbsDir, entryPath, resolveTarget);
|
|
464
|
+
const stylesChanged = rewriteStyleBlocks(document, referrerAbsDir, entryPath, resolveTarget);
|
|
420
465
|
if (attrsChanged || stylesChanged) {
|
|
421
466
|
ctx.fileContents.set(entryPath, Buffer.from(document.toString(), "utf-8"));
|
|
422
467
|
}
|
|
@@ -425,20 +470,26 @@ function localizeCssEntry(ctx, entryPath, content) {
|
|
|
425
470
|
const referrerAbsDir = resolve2(ctx.absProjectDir, dirname(entryPath));
|
|
426
471
|
const css = content.toString("utf-8");
|
|
427
472
|
if (!css.includes("url(")) return;
|
|
428
|
-
const result = rewriteCssUrls(
|
|
473
|
+
const result = rewriteCssUrls(
|
|
474
|
+
css,
|
|
475
|
+
referrerAbsDir,
|
|
476
|
+
entryPath,
|
|
477
|
+
(val, dir) => tryResolveExternal(ctx, val, dir)
|
|
478
|
+
);
|
|
429
479
|
if (result.modified) {
|
|
430
480
|
ctx.fileContents.set(entryPath, Buffer.from(result.css, "utf-8"));
|
|
431
481
|
}
|
|
432
482
|
}
|
|
433
|
-
function localizeExternalAssets(absProjectDir, fileContents) {
|
|
483
|
+
function localizeExternalAssets(absProjectDir, fileContents, onDiskMinBytes = Infinity) {
|
|
434
484
|
const ctx = {
|
|
435
485
|
absProjectDir,
|
|
436
486
|
fileContents,
|
|
487
|
+
onDiskMinBytes,
|
|
437
488
|
externalMap: /* @__PURE__ */ new Map(),
|
|
438
489
|
usedArchivePaths: /* @__PURE__ */ new Set()
|
|
439
490
|
};
|
|
440
491
|
for (const [entryPath, content] of [...fileContents.entries()]) {
|
|
441
|
-
if (entryPath.startsWith(EXT_ASSETS_PREFIX + "/")) continue;
|
|
492
|
+
if (entryPath.startsWith(EXT_ASSETS_PREFIX + "/") || !Buffer.isBuffer(content)) continue;
|
|
442
493
|
if (entryPath.endsWith(".html") || entryPath.endsWith(".htm")) {
|
|
443
494
|
localizeHtmlEntry(ctx, entryPath, content);
|
|
444
495
|
} else if (entryPath.endsWith(".css")) {
|
|
@@ -448,6 +499,9 @@ function localizeExternalAssets(absProjectDir, fileContents) {
|
|
|
448
499
|
return ctx.externalMap.size;
|
|
449
500
|
}
|
|
450
501
|
function buildPublishFileMap(projectDir) {
|
|
502
|
+
return stagePublishFiles(projectDir, Infinity);
|
|
503
|
+
}
|
|
504
|
+
function stagePublishFiles(projectDir, onDiskMinBytes) {
|
|
451
505
|
const absProjectDir = resolve2(projectDir);
|
|
452
506
|
const filePaths = [];
|
|
453
507
|
collectProjectFiles(absProjectDir, absProjectDir, filePaths, createProjectIgnore(absProjectDir));
|
|
@@ -458,9 +512,9 @@ function buildPublishFileMap(projectDir) {
|
|
|
458
512
|
}
|
|
459
513
|
const fileContents = /* @__PURE__ */ new Map();
|
|
460
514
|
for (const filePath of filePaths) {
|
|
461
|
-
fileContents.set(filePath,
|
|
515
|
+
fileContents.set(filePath, stageFile(join2(absProjectDir, filePath), onDiskMinBytes));
|
|
462
516
|
}
|
|
463
|
-
localizeExternalAssets(absProjectDir, fileContents);
|
|
517
|
+
localizeExternalAssets(absProjectDir, fileContents, onDiskMinBytes);
|
|
464
518
|
return fileContents;
|
|
465
519
|
}
|
|
466
520
|
var ARCHIVE_ENTRY_TIME = new Date(1980, 0, 1, 0, 0, 0, 0);
|
|
@@ -637,8 +691,16 @@ export {
|
|
|
637
691
|
readTeamProject,
|
|
638
692
|
writeTeamProject,
|
|
639
693
|
resolvePublishCredential,
|
|
694
|
+
TEXT_FILE_EXTS,
|
|
695
|
+
stagedSize,
|
|
696
|
+
assertUnchanged,
|
|
697
|
+
readChecked,
|
|
698
|
+
readStaged,
|
|
699
|
+
rewriteCssUrls,
|
|
640
700
|
rewriteHtmlAttributes,
|
|
701
|
+
rewriteStyleBlocks,
|
|
641
702
|
buildPublishFileMap,
|
|
703
|
+
stagePublishFiles,
|
|
642
704
|
zipPublishFileMap,
|
|
643
705
|
getPublishApiBaseUrl,
|
|
644
706
|
publishProjectArchive
|
|
@@ -6,18 +6,18 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
redactHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A6QCO474.js";
|
|
10
10
|
import "./chunk-Z27A7NUB.js";
|
|
11
11
|
import "./chunk-5ETJX6WM.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-6RIZY7OP.js";
|
|
13
13
|
import "./chunk-QH3T4WI2.js";
|
|
14
14
|
import "./chunk-6BEFEWFB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-K2ZKXTVL.js";
|
|
16
16
|
import {
|
|
17
17
|
loadProducer
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-7PS6RVWD.js";
|
|
19
|
+
import "./chunk-KQ4JEJLF.js";
|
|
20
|
+
import "./chunk-SKYPMHQC.js";
|
|
21
21
|
import "./chunk-6JR2XUEE.js";
|
|
22
22
|
import "./chunk-TTVHYD5R.js";
|
|
23
23
|
import {
|
|
@@ -28,12 +28,12 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
CACHE_DIR_NAME,
|
|
30
30
|
cleanupProxyCache
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-6GPR3G3C.js";
|
|
32
32
|
import "./chunk-ALVXFXUG.js";
|
|
33
33
|
import {
|
|
34
34
|
formatBytes
|
|
35
35
|
} from "./chunk-K2FLNJVB.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-7L37AB57.js";
|
|
37
37
|
import "./chunk-EOVYQ3IG.js";
|
|
38
38
|
import {
|
|
39
39
|
defineCommand
|
|
@@ -52,14 +52,15 @@ import {
|
|
|
52
52
|
directorySizeBytes,
|
|
53
53
|
gcExtractionCache,
|
|
54
54
|
resolveExtractCacheDir
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-I3IH5MV5.js";
|
|
56
|
+
import "./chunk-IZCW2NKT.js";
|
|
57
|
+
import "./chunk-KROXPHXX.js";
|
|
57
58
|
import "./chunk-RQVDTPGD.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-Q47FAYYK.js";
|
|
60
|
+
import "./chunk-3NPOFC43.js";
|
|
60
61
|
import "./chunk-VC76R6W2.js";
|
|
61
62
|
import "./chunk-UJKQWGFF.js";
|
|
62
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-B2A56S5C.js";
|
|
63
64
|
import "./chunk-OFQWTKPW.js";
|
|
64
65
|
import "./chunk-DPVXBVLL.js";
|
|
65
66
|
import "./chunk-3GXQPCJC.js";
|
|
@@ -70,24 +71,24 @@ import "./chunk-DYAPHNV6.js";
|
|
|
70
71
|
import "./chunk-T6AGUTZJ.js";
|
|
71
72
|
import "./chunk-XT6MXC7A.js";
|
|
72
73
|
import "./chunk-4UMPIPCQ.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-Q447CX26.js";
|
|
74
75
|
import "./chunk-VAS6HQX3.js";
|
|
75
76
|
import "./chunk-6BNTGNGD.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-RUOG4VB7.js";
|
|
77
78
|
import "./chunk-MMQ52NIZ.js";
|
|
78
79
|
import "./chunk-BSQ7XANM.js";
|
|
79
80
|
import "./chunk-SDYDNHEE.js";
|
|
80
81
|
import "./chunk-IXLUTE6N.js";
|
|
81
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-I5JRXMCV.js";
|
|
82
83
|
import "./chunk-W2LGJSEN.js";
|
|
83
84
|
import {
|
|
84
85
|
withMeta
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-ISTRDGIX.js";
|
|
86
87
|
import "./chunk-K4WIOZFP.js";
|
|
87
88
|
import "./chunk-XUXGIA7H.js";
|
|
88
89
|
import "./chunk-WERLJGIC.js";
|
|
89
90
|
import "./chunk-ISN5GRYI.js";
|
|
90
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-I7QMXZSB.js";
|
|
91
92
|
import "./chunk-KNU5COPB.js";
|
|
92
93
|
import "./chunk-KGPLIH7B.js";
|
|
93
94
|
import "./chunk-M2WBOQ2Q.js";
|