diff --git a/config/external-sources.json b/config/external-sources.json index 6eceef9ed..2dc0072fb 100644 --- a/config/external-sources.json +++ b/config/external-sources.json @@ -289,6 +289,19 @@ "README.md", "README.zh-CN.md", "LICENSE" + ], + "excludePaths": [ + "docs/readme", + "scripts/verify-output" + ], + "readmeImageExcludes": [ + "docs/readme" + ], + "readmeLineExcludes": [ + "Every preview above", + "上图里的每一个预览", + "scripts/verify-output/", + "verify-output/" ] }, { diff --git a/plugins/codex/plugins/html-ppt/README.md b/plugins/codex/plugins/html-ppt/README.md index fe3b522ad..a30a84a3a 100644 --- a/plugins/codex/plugins/html-ppt/README.md +++ b/plugins/codex/plugins/html-ppt/README.md @@ -10,9 +10,7 @@ **License:** MIT **中文文档:** [README.zh-CN.md](README.zh-CN.md) -![html-ppt — cover with live previews](docs/readme/hero.gif) -> One command installs **36 themes × 20 canvas FX × 31 layouts × 15 full decks + presenter mode**. Every preview above is a live iframe of a real template file rendering inside the deck — no screenshots, no mock-ups. ## 🎤 Presenter Mode (new!) @@ -21,7 +19,6 @@ draggable, resizable **magnetic cards**: current slide, next slide preview, speaker script (逐字稿), and timer. Two windows stay in sync via `BroadcastChannel`. -![Presenter mode with 4 magnetic cards](docs/readme/presenter-mode.png) **Why previews are pixel-perfect:** each card is an `minimal-white -
tokyo-night
-
aurora
-
xiaohongshu-white
-
cyberpunk-neon
-
dracula
-
soft-pastel
-
magazine-bold
- - - diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/docs/readme/presenter-mode.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/docs/readme/presenter-mode.png deleted file mode 100644 index 5c2460e6e..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/docs/readme/presenter-mode.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/docs/readme/templates.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/docs/readme/templates.png deleted file mode 100644 index 6b5b37078..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/docs/readme/templates.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/docs/readme/themes.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/docs/readme/themes.png deleted file mode 100644 index 0dd930228..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/docs/readme/themes.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_01.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_01.png deleted file mode 100644 index 1548c85e7..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_01.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_02.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_02.png deleted file mode 100644 index 76dfeca58..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_02.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_03.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_03.png deleted file mode 100644 index 92a82eeae..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_03.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_04.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_04.png deleted file mode 100644 index edad97572..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_04.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_05.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_05.png deleted file mode 100644 index edeb82cb1..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_05.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_06.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_06.png deleted file mode 100644 index d12693cc4..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_06.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_07.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_07.png deleted file mode 100644 index 09822856e..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_07.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_08.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_08.png deleted file mode 100644 index 590389de1..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_08.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_09.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_09.png deleted file mode 100644 index 2cb32e30c..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_09.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_10.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_10.png deleted file mode 100644 index 1207dc222..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_10.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_11.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_11.png deleted file mode 100644 index 40a1142e9..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_11.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_12.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_12.png deleted file mode 100644 index e61068594..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_12.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_13.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_13.png deleted file mode 100644 index 1b9d10164..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_13.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_14.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_14.png deleted file mode 100644 index baf30b14d..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_14.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_15.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_15.png deleted file mode 100644 index 275af5195..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_15.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_16.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_16.png deleted file mode 100644 index 54cf78114..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_16.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_17.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_17.png deleted file mode 100644 index 564233863..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_17.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_18.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_18.png deleted file mode 100644 index bc5e8e3de..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_18.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_19.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_19.png deleted file mode 100644 index 60b87831c..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_19.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_20.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_20.png deleted file mode 100644 index 7c479048f..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/animation-showcase/animation-showcase_20.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_01.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_01.png deleted file mode 100644 index 26411078c..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_01.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_02.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_02.png deleted file mode 100644 index 70827a655..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_02.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_03.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_03.png deleted file mode 100644 index bf4b2fdfa..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_03.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_04.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_04.png deleted file mode 100644 index 72c1bb7e7..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_04.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_05.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_05.png deleted file mode 100644 index 25b97410d..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_05.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_06.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_06.png deleted file mode 100644 index 31c7210f6..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_06.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_07.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_07.png deleted file mode 100644 index 9dc2324a9..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_07.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_08.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_08.png deleted file mode 100644 index 18d46e07c..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_08.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_09.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_09.png deleted file mode 100644 index 87b7fb0de..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_09.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_10.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_10.png deleted file mode 100644 index 506b57d05..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_10.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_11.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_11.png deleted file mode 100644 index d4c924f45..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_11.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_12.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_12.png deleted file mode 100644 index e9e2db0fe..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_12.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_13.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_13.png deleted file mode 100644 index 00276c387..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_13.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_14.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_14.png deleted file mode 100644 index 10c5cbd6d..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_14.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_15.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_15.png deleted file mode 100644 index a662def3f..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_15.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_16.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_16.png deleted file mode 100644 index aaadd4ff4..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_16.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_17.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_17.png deleted file mode 100644 index 59a0c785c..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_17.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_18.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_18.png deleted file mode 100644 index 89c3bf89b..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_18.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_19.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_19.png deleted file mode 100644 index 78879a123..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_19.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_20.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_20.png deleted file mode 100644 index bf7213258..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_20.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_21.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_21.png deleted file mode 100644 index d3cc2b468..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_21.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_22.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_22.png deleted file mode 100644 index e3c675c03..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_22.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_23.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_23.png deleted file mode 100644 index ea2b5b307..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_23.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_24.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_24.png deleted file mode 100644 index c32bfa1a7..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_24.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_25.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_25.png deleted file mode 100644 index 0ac63dd89..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_25.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_26.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_26.png deleted file mode 100644 index 8387e3572..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_26.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_27.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_27.png deleted file mode 100644 index cf6a056d3..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_27.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_28.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_28.png deleted file mode 100644 index 0e3c78987..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_28.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_29.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_29.png deleted file mode 100644 index 2eb92535a..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_29.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_30.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_30.png deleted file mode 100644 index 0032fd3cd..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_30.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_31.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_31.png deleted file mode 100644 index 69999f30d..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_31.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_32.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_32.png deleted file mode 100644 index 18f6cb99a..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_32.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_33.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_33.png deleted file mode 100644 index 0ca7725c6..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_33.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_34.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_34.png deleted file mode 100644 index ed4bb5376..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_34.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_35.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_35.png deleted file mode 100644 index e40c0d3f0..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_35.png and /dev/null differ diff --git a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_36.png b/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_36.png deleted file mode 100644 index 2cfef8a8b..000000000 Binary files a/plugins/codex/plugins/html-ppt/skills/html-ppt/scripts/verify-output/theme-showcase/theme-showcase_36.png and /dev/null differ diff --git a/scripts/sync_external_plugins.ps1 b/scripts/sync_external_plugins.ps1 index 2f48b7225..d7e83f2fd 100644 --- a/scripts/sync_external_plugins.ps1 +++ b/scripts/sync_external_plugins.ps1 @@ -89,6 +89,132 @@ function Copy-DirectoryFiltered { } } +function Assert-RelativePathValue { + param([string]$Path) + $trimmed = $Path.Trim() + if ([string]::IsNullOrWhiteSpace($Path) -or $trimmed -eq "." -or [System.IO.Path]::IsPathRooted($Path)) { + throw "Invalid external source exclude path: $Path" + } + $parts = $trimmed -split '[\\/]' + if ($parts -contains "..") { + throw "Invalid external source exclude path: $Path" + } +} + +function Remove-ConfiguredExcludes { + param( + [string]$Root, + [object]$ExcludePaths, + [string]$Within + ) + if ($null -eq $ExcludePaths) { + return + } + foreach ($exclude in @($ExcludePaths)) { + $relative = [string]$exclude + Assert-RelativePathValue -Path $relative + Remove-PathIfExists -Path (Join-Path $Root $relative) -Within $Within + } +} + +function Get-MarkdownImageTarget { + param([string]$Line) + $match = [regex]::Match($Line, '^\s*!\[[^\]]*\]\(([^)\s]+)(?:\s+"[^"]*")?\)\s*$') + if (-not $match.Success) { + return $null + } + return $match.Groups[1].Value.Trim().Trim("<", ">").Replace("\", "/").TrimStart([char[]]@(".", "/")) +} + +function Remove-ReadmeImageReferences { + param( + [string]$Root, + [object]$ImagePathPrefixes + ) + if ($null -eq $ImagePathPrefixes) { + return + } + $prefixes = @( + foreach ($prefix in @($ImagePathPrefixes)) { + $normalized = ([string]$prefix).Trim().Replace("\", "/").Trim("/") + if ($normalized) { + $normalized + } + } + ) + if ($prefixes.Count -eq 0) { + return + } + foreach ($readme in Get-ChildItem -LiteralPath $Root -Recurse -Filter "README*.md" | Where-Object { -not $_.PSIsContainer }) { + $lines = @([System.IO.File]::ReadAllLines($readme.FullName, [System.Text.Encoding]::UTF8)) + $updated = New-Object System.Collections.Generic.List[string] + $changed = $false + foreach ($line in $lines) { + $target = Get-MarkdownImageTarget -Line $line + $strip = $false + if ($target) { + foreach ($prefix in $prefixes) { + if ($target -eq $prefix -or $target.StartsWith("$prefix/")) { + $strip = $true + break + } + } + } + if ($strip) { + $changed = $true + } else { + $updated.Add($line) + } + } + if ($changed) { + Write-Utf8NoBomText -Path $readme.FullName -Text (($updated -join "`n").TrimEnd() + "`n") + } + } +} + +function Remove-ReadmeLines { + param( + [string]$Root, + [object]$LineExcludes + ) + if ($null -eq $LineExcludes) { + return + } + $needles = @( + foreach ($lineExclude in @($LineExcludes)) { + $needle = [string]$lineExclude + if ($needle) { + $needle + } + } + ) + if ($needles.Count -eq 0) { + return + } + foreach ($readme in Get-ChildItem -LiteralPath $Root -Recurse -Filter "README*.md" | Where-Object { -not $_.PSIsContainer }) { + $lines = @([System.IO.File]::ReadAllLines($readme.FullName, [System.Text.Encoding]::UTF8)) + $updated = New-Object System.Collections.Generic.List[string] + $changed = $false + foreach ($line in $lines) { + $strip = $false + foreach ($needle in $needles) { + if ($line.Contains($needle)) { + $strip = $true + break + } + } + if ($strip) { + $changed = $true + } else { + $updated.Add($line) + } + } + if ($changed) { + Write-Utf8NoBomText -Path $readme.FullName -Text (($updated -join "`n").TrimEnd() + "`n") + } + } +} + function Read-JsonFile { param([string]$Path) $resolvedPath = (Resolve-Path -LiteralPath $Path).Path @@ -350,6 +476,9 @@ function Sync-CodexPlugin { $dst = Join-Path $pluginDir $include Copy-PathIfExists -Source $src -Destination $dst -Within $RepoRoot } + Remove-ConfiguredExcludes -Root $pluginDir -ExcludePaths $Source.excludePaths -Within $RepoRoot + Remove-ReadmeImageReferences -Root $pluginDir -ImagePathPrefixes $Source.readmeImageExcludes + Remove-ReadmeLines -Root $pluginDir -LineExcludes $Source.readmeLineExcludes Apply-LocalOverrides -PluginDir $pluginDir -Source $Source Write-Provenance -PluginDir $pluginDir -Source $Source -Commit $Commit -SyncedAt $SyncedAt -SourcePath $relativeSourcePath } @@ -407,6 +536,9 @@ function Sync-ClaudeSkill { foreach ($rootFile in $includeRootFiles) { Copy-PathIfExists -Source (Join-Path $ClonePath $rootFile) -Destination (Join-Path $pluginDir $rootFile) -Within $RepoRoot } + Remove-ConfiguredExcludes -Root $skillDest -ExcludePaths $Source.excludePaths -Within $RepoRoot + Remove-ReadmeImageReferences -Root $pluginDir -ImagePathPrefixes $Source.readmeImageExcludes + Remove-ReadmeLines -Root $pluginDir -LineExcludes $Source.readmeLineExcludes $description = $metadata.description if (-not $description) {