feat: 更新了异步上下文压缩插件版本,并优化了发布工作流以直接上传插件文件,同时排除了新的插件模板文件。

This commit is contained in:
fujie
2026-01-03 11:54:17 +08:00
parent b9d8100cdb
commit ac2cf00807
6 changed files with 24 additions and 42 deletions

View File

@@ -175,10 +175,7 @@ jobs:
id: plugins id: plugins
run: | run: |
python scripts/extract_plugin_versions.py --json --output plugin_versions.json python scripts/extract_plugin_versions.py --json --output plugin_versions.json
python scripts/extract_plugin_versions.py --markdown --output plugin_table.md python scripts/extract_plugin_versions.py --json --output plugin_versions.json
echo "=== Plugin Versions ==="
cat plugin_table.md
- name: Collect plugin files for release - name: Collect plugin files for release
id: collect_files id: collect_files
@@ -198,28 +195,12 @@ jobs:
fi fi
done done
else else
echo "Collecting all plugin files..." echo "No changed plugins detected. Skipping file collection."
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
fi fi
# Create a zip file with error handling # Create a zip file with error handling
cd release_plugins # cd release_plugins
if [ -n "$(ls -A . 2>/dev/null)" ]; then # Zip step removed as per user request
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 ..
echo "=== Collected Files ===" echo "=== Collected Files ==="
find release_plugins -name "*.py" -type f | head -20 find release_plugins -name "*.py" -type f | head -20
@@ -280,16 +261,13 @@ jobs:
echo "" >> release_notes.md echo "" >> release_notes.md
fi 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' cat >> release_notes.md << 'EOF'
## Download / 下载 ## Download / 下载
📦 **plugins_release.zip** - 包含本次更新的所有插件文件 / Contains all updated plugin files 📦 **Download the updated plugin files below** / 请在下方下载更新的插件文件
### Installation / 安装 ### Installation / 安装
@@ -323,7 +301,7 @@ jobs:
prerelease: ${{ github.event.inputs.prerelease || false }} prerelease: ${{ github.event.inputs.prerelease || false }}
files: | files: |
plugin_versions.json plugin_versions.json
plugins_release.zip release_plugins/**/*.py
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -336,5 +314,4 @@ jobs:
echo "### Updated Plugins" >> $GITHUB_STEP_SUMMARY echo "### Updated Plugins" >> $GITHUB_STEP_SUMMARY
echo "${{ needs.check-changes.outputs.release_notes }}" >> $GITHUB_STEP_SUMMARY echo "${{ needs.check-changes.outputs.release_notes }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY
echo "### All Plugin Versions" >> $GITHUB_STEP_SUMMARY
cat plugin_table.md >> $GITHUB_STEP_SUMMARY

View File

@@ -1,7 +1,7 @@
# Async Context Compression # Async Context Compression
<span class="category-badge filter">Filter</span> <span class="category-badge filter">Filter</span>
<span class="version-badge">v1.0.0</span> <span class="version-badge">v1.1.0</span>
Reduces token consumption in long conversations through intelligent summarization while maintaining conversational coherence. Reduces token consumption in long conversations through intelligent summarization while maintaining conversational coherence.

View File

@@ -1,7 +1,7 @@
# Async Context Compression异步上下文压缩 # Async Context Compression异步上下文压缩
<span class="category-badge filter">Filter</span> <span class="category-badge filter">Filter</span>
<span class="version-badge">v1.0.0</span> <span class="version-badge">v1.1.0</span>
通过智能摘要减少长对话的 token 消耗,同时保持对话连贯。 通过智能摘要减少长对话的 token 消耗,同时保持对话连贯。

View File

@@ -16,17 +16,17 @@ Filters act as middleware in the message pipeline:
<div class="grid cards" markdown> <div class="grid cards" markdown>
- :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. 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) [: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) [:octicons-arrow-right-24: Documentation](context-enhancement.md)
- :material-google: { .lg .middle } **Gemini Manifold Companion** - :material-google:{ .lg .middle } **Gemini Manifold Companion**
--- ---

View File

@@ -16,17 +16,17 @@ Filter 充当消息管线中的中间件:
<div class="grid cards" markdown> <div class="grid cards" markdown>
- :material-compress: { .lg .middle } **Async Context Compression** - :material-compress:{ .lg .middle } **Async Context Compression**
--- ---
通过智能总结减少长对话的 token 消耗,同时保持连贯性。 通过智能总结减少长对话的 token 消耗,同时保持连贯性。
**版本:** 1.0.0 **版本:** 1.1.0
[:octicons-arrow-right-24: 查看文档](async-context-compression.md) [: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) [:octicons-arrow-right-24: 查看文档](context-enhancement.md)
- :material-google: { .lg .middle } **Gemini Manifold Companion** - :material-google:{ .lg .middle } **Gemini Manifold Companion**
--- ---

View File

@@ -97,7 +97,12 @@ def scan_plugins_directory(plugins_dir: str) -> list[dict[str, Any]]:
for file in files: for file in files:
if file.endswith(".py") and not file.startswith("__"): if file.endswith(".py") and not file.startswith("__"):
# Skip specific files that should not trigger release # 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 continue
file_path = os.path.join(root, file) file_path = os.path.join(root, file)