From ac2cf00807204a482dd2988e0bf5ec45e230285a Mon Sep 17 00:00:00 2001 From: fujie Date: Sat, 3 Jan 2026 11:54:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E4=BA=86=E5=BC=82?= =?UTF-8?q?=E6=AD=A5=E4=B8=8A=E4=B8=8B=E6=96=87=E5=8E=8B=E7=BC=A9=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E7=89=88=E6=9C=AC=EF=BC=8C=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BA=86=E5=8F=91=E5=B8=83=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=BB=A5?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E4=B8=8A=E4=BC=A0=E6=8F=92=E4=BB=B6=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E5=90=8C=E6=97=B6=E6=8E=92=E9=99=A4=E4=BA=86?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E6=8F=92=E4=BB=B6=E6=A8=A1=E6=9D=BF=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 39 ++++--------------- .../filters/async-context-compression.md | 2 +- .../filters/async-context-compression.zh.md | 2 +- docs/plugins/filters/index.md | 8 ++-- docs/plugins/filters/index.zh.md | 8 ++-- scripts/extract_plugin_versions.py | 7 +++- 6 files changed, 24 insertions(+), 42 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a17ebc9..c8e5c20 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -175,10 +175,7 @@ jobs: id: plugins run: | python scripts/extract_plugin_versions.py --json --output plugin_versions.json - python scripts/extract_plugin_versions.py --markdown --output plugin_table.md - - echo "=== Plugin Versions ===" - cat plugin_table.md + python scripts/extract_plugin_versions.py --json --output plugin_versions.json - name: Collect plugin files for release id: collect_files @@ -198,28 +195,12 @@ jobs: fi done else - echo "Collecting all plugin files..." - find plugins -name "*.py" -type f ! -name "__*" | while read -r file; do - dir=$(dirname "$file") - mkdir -p "release_plugins/$dir" - cp "$file" "release_plugins/$file" - done + echo "No changed plugins detected. Skipping file collection." fi # Create a zip file with error handling - cd release_plugins - if [ -n "$(ls -A . 2>/dev/null)" ]; then - if zip -r ../plugins_release.zip .; then - echo "Successfully created plugins_release.zip" - else - echo "Warning: Failed to create zip file, creating empty placeholder" - touch ../plugins_release.zip - fi - else - echo "No plugin files to zip, creating empty placeholder" - touch ../plugins_release.zip - fi - cd .. + # cd release_plugins + # Zip step removed as per user request echo "=== Collected Files ===" find release_plugins -name "*.py" -type f | head -20 @@ -280,16 +261,13 @@ jobs: echo "" >> release_notes.md fi - echo "## All Plugin Versions / 所有插件版本" >> release_notes.md - echo "" >> release_notes.md - cat plugin_table.md >> release_notes.md - echo "" >> release_notes.md + cat >> release_notes.md << 'EOF' ## Download / 下载 - 📦 **plugins_release.zip** - 包含本次更新的所有插件文件 / Contains all updated plugin files + 📦 **Download the updated plugin files below** / 请在下方下载更新的插件文件 ### Installation / 安装 @@ -323,7 +301,7 @@ jobs: prerelease: ${{ github.event.inputs.prerelease || false }} files: | plugin_versions.json - plugins_release.zip + release_plugins/**/*.py env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -336,5 +314,4 @@ jobs: echo "### Updated Plugins" >> $GITHUB_STEP_SUMMARY echo "${{ needs.check-changes.outputs.release_notes }}" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY - echo "### All Plugin Versions" >> $GITHUB_STEP_SUMMARY - cat plugin_table.md >> $GITHUB_STEP_SUMMARY + diff --git a/docs/plugins/filters/async-context-compression.md b/docs/plugins/filters/async-context-compression.md index 3498585..9dcb78c 100644 --- a/docs/plugins/filters/async-context-compression.md +++ b/docs/plugins/filters/async-context-compression.md @@ -1,7 +1,7 @@ # Async Context Compression Filter -v1.0.0 +v1.1.0 Reduces token consumption in long conversations through intelligent summarization while maintaining conversational coherence. diff --git a/docs/plugins/filters/async-context-compression.zh.md b/docs/plugins/filters/async-context-compression.zh.md index 3043866..c5600d0 100644 --- a/docs/plugins/filters/async-context-compression.zh.md +++ b/docs/plugins/filters/async-context-compression.zh.md @@ -1,7 +1,7 @@ # Async Context Compression(异步上下文压缩) Filter -v1.0.0 +v1.1.0 通过智能摘要减少长对话的 token 消耗,同时保持对话连贯。 diff --git a/docs/plugins/filters/index.md b/docs/plugins/filters/index.md index 516f309..a0a8a44 100644 --- a/docs/plugins/filters/index.md +++ b/docs/plugins/filters/index.md @@ -16,17 +16,17 @@ Filters act as middleware in the message pipeline:
-- :material-compress: { .lg .middle } **Async Context Compression** +- :material-compress:{ .lg .middle } **Async Context Compression** --- Reduces token consumption in long conversations through intelligent summarization while maintaining coherence. - **Version:** 1.0.0 + **Version:** 1.1.0 [:octicons-arrow-right-24: Documentation](async-context-compression.md) -- :material-text-box-plus: { .lg .middle } **Context Enhancement** +- :material-text-box-plus:{ .lg .middle } **Context Enhancement** --- @@ -36,7 +36,7 @@ Filters act as middleware in the message pipeline: [:octicons-arrow-right-24: Documentation](context-enhancement.md) -- :material-google: { .lg .middle } **Gemini Manifold Companion** +- :material-google:{ .lg .middle } **Gemini Manifold Companion** --- diff --git a/docs/plugins/filters/index.zh.md b/docs/plugins/filters/index.zh.md index e91dec6..739a4c2 100644 --- a/docs/plugins/filters/index.zh.md +++ b/docs/plugins/filters/index.zh.md @@ -16,17 +16,17 @@ Filter 充当消息管线中的中间件:
-- :material-compress: { .lg .middle } **Async Context Compression** +- :material-compress:{ .lg .middle } **Async Context Compression** --- 通过智能总结减少长对话的 token 消耗,同时保持连贯性。 - **版本:** 1.0.0 + **版本:** 1.1.0 [:octicons-arrow-right-24: 查看文档](async-context-compression.md) -- :material-text-box-plus: { .lg .middle } **Context Enhancement** +- :material-text-box-plus:{ .lg .middle } **Context Enhancement** --- @@ -36,7 +36,7 @@ Filter 充当消息管线中的中间件: [:octicons-arrow-right-24: 查看文档](context-enhancement.md) -- :material-google: { .lg .middle } **Gemini Manifold Companion** +- :material-google:{ .lg .middle } **Gemini Manifold Companion** --- diff --git a/scripts/extract_plugin_versions.py b/scripts/extract_plugin_versions.py index 0ae9fc4..f4727ad 100644 --- a/scripts/extract_plugin_versions.py +++ b/scripts/extract_plugin_versions.py @@ -97,7 +97,12 @@ def scan_plugins_directory(plugins_dir: str) -> list[dict[str, Any]]: for file in files: if file.endswith(".py") and not file.startswith("__"): # Skip specific files that should not trigger release - if file in ["gemini_manifold.py", "gemini_manifold_companion.py"]: + if file in [ + "gemini_manifold.py", + "gemini_manifold_companion.py", + "ACTION_PLUGIN_TEMPLATE.py", + "ACTION_PLUGIN_TEMPLATE_CN.py", + ]: continue file_path = os.path.join(root, file)