Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7619566
feat: add shengsuanyun as new models provider.
coohu Nov 18, 2025
ad3c62c
fix: clear code.
coohu Nov 18, 2025
55f0792
feat: add text-embedding for ShengSuanYun.
coohu Nov 18, 2025
a5abb2b
fix: Maintain model list.
coohu Dec 4, 2025
5fa5541
Merge branch 'main' of https://github.com/langgenius/dify-official-pl…
coohu Dec 4, 2025
dcd1ee2
fix: Maintain publish config.
coohu Dec 4, 2025
b41626a
fix: improve the robustness and correctness of the ShengSuanYun provi…
coohu Dec 4, 2025
6f30d01
fix: Correct Manifest.
coohu Dec 5, 2025
a10c18a
Merge branch 'main' of https://github.com/langgenius/dify-official-pl…
coohu Dec 8, 2025
2f53563
feat: add TTS support for ShengSuanYun.
coohu Dec 9, 2025
75b2aaf
fix: complete dependencies.
coohu Dec 10, 2025
d3adaff
Merge branch 'main' of https://github.com/langgenius/dify-official-pl…
coohu Dec 10, 2025
f687e2e
Merge branch 'main' of https://github.com/langgenius/dify-official-pl…
coohu Dec 15, 2025
27ad22b
Merge branch 'main' of https://github.com/langgenius/dify-official-pl…
coohu Dec 24, 2025
265a7c9
Merge branch 'main' of https://github.com/langgenius/dify-official-pl…
coohu Jan 4, 2026
33ed95a
Prolong timeout for ShengSuanYun models.
coohu Jan 6, 2026
fd012a3
Merge branch 'main' of https://github.com/langgenius/dify-official-pl…
coohu Jan 22, 2026
4527de2
Merge branch 'main' of https://github.com/langgenius/dify-official-pl…
coohu Jan 26, 2026
4a6c605
fix: update ShengSuanYun models list.
coohu Jan 26, 2026
1e8ca35
Merge branch 'main' of https://github.com/langgenius/dify-official-pl…
coohu Apr 1, 2026
f2b5792
fix: update ShengSuanYun model list.
coohu Apr 2, 2026
da6b7ab
fix: workflow.
coohu Apr 2, 2026
4c64aa7
...
coohu Apr 2, 2026
32c4c06
...
coohu Apr 2, 2026
25be2c9
fix: add pyproject.toml.
coohu Apr 2, 2026
9e82d74
...
coohu Apr 2, 2026
b0d5845
...
coohu Apr 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 143 additions & 0 deletions .github/workflows/plugin-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
name: Auto Create PR on Main Push

on:
push:
branches: [ main ] # Trigger on push to main

jobs:
create_pr: # Renamed job for clarity
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Print working directory # Kept for debugging
run: |
pwd
ls -la

- name: Download CLI tool
run: |
# Create bin directory in runner temp
mkdir -p $RUNNER_TEMP/bin
cd $RUNNER_TEMP/bin

# Download CLI tool
wget https://github.com/langgenius/dify-plugin-daemon/releases/download/0.0.6/dify-plugin-linux-amd64
chmod +x dify-plugin-linux-amd64

# Show download location and file
echo "CLI tool location:"
pwd
ls -la dify-plugin-linux-amd64

- name: Get basic info from manifest # Changed step name and content
id: get_basic_info
run: |
PLUGIN_NAME=$(grep "^name:" models/shengsuanyun/manifest.yaml | cut -d' ' -f2)
echo "Plugin name: $PLUGIN_NAME"
echo "plugin_name=$PLUGIN_NAME" >> $GITHUB_OUTPUT

VERSION=$(grep "^version:" models/shengsuanyun/manifest.yaml | cut -d' ' -f2)
echo "Plugin version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT

# If the author's name is not your github username, you can change the author here
AUTHOR=$(grep "^author:" models/shengsuanyun/manifest.yaml | cut -d' ' -f2)
echo "Plugin author: $AUTHOR"
echo "author=$AUTHOR" >> $GITHUB_OUTPUT


- name: Package Plugin
id: package
run: |
# Use the downloaded CLI tool to package
cd $GITHUB_WORKSPACE/models/shengsuanyun
# Use variables for package name
PACKAGE_NAME="${{ steps.get_basic_info.outputs.plugin_name }}-${{ steps.get_basic_info.outputs.version }}.difypkg"
# Use CLI from runner temp
$RUNNER_TEMP/bin/dify-plugin-linux-amd64 plugin package . -o "$PACKAGE_NAME"

# Show packaging result
echo "Package result:"
ls -la "$PACKAGE_NAME"
echo "package_name=$PACKAGE_NAME" >> $GITHUB_OUTPUT

# Show full file path and directory structure (kept for debugging)
echo "\\nFull file path:"
pwd
echo "\\nDirectory structure:"
tree || ls -R

- name: Checkout target repo
uses: actions/checkout@v4
with:
# Use author variable for repository
repository: shengsuan/dify-plugins
path: dify-plugins
token: ${{ secrets.PLUGIN_ACTION }}
fetch-depth: 1 # Fetch only the last commit to speed up checkout
persist-credentials: true # Persist credentials for subsequent git operations

- name: Prepare and create PR
run: |
# Debug info (kept)
echo "Debug: Current directory $(pwd)"
# Use variable for package name
PACKAGE_NAME="${{ steps.get_basic_info.outputs.plugin_name }}-${{ steps.get_basic_info.outputs.version }}.difypkg"
echo "Debug: Package name: $PACKAGE_NAME"
ls -la

# Move the packaged file to the target directory using variables
mkdir -p dify-plugins/${{ steps.get_basic_info.outputs.author }}/${{ steps.get_basic_info.outputs.plugin_name }}
mv "models/shengsuanyun/$PACKAGE_NAME" dify-plugins/${{ steps.get_basic_info.outputs.author }}/${{ steps.get_basic_info.outputs.plugin_name }}/

# Enter the target repository directory
cd dify-plugins

# Configure git
git config user.name "GitHub Actions"
git config user.email "actions@github.com"

# Ensure we are on the latest main branch
git fetch origin main
git checkout main
git pull origin main

# Create and switch to a new branch using variables and new naming convention
BRANCH_NAME="bump-${{ steps.get_basic_info.outputs.plugin_name }}-plugin-${{ steps.get_basic_info.outputs.version }}"
git checkout -b "$BRANCH_NAME"

# Add and commit changes (using git add .)
git add .
git status # for debugging
# Use variables in commit message
git commit -m "bump ${{ steps.get_basic_info.outputs.plugin_name }} plugin to version ${{ steps.get_basic_info.outputs.version }}"

# Push to remote (use force just in case the branch existed before from a failed run)
git push -u origin "$BRANCH_NAME" --force

# Confirm branch has been pushed and wait for sync (GitHub API might need a moment)
git branch -a
echo "Waiting for branch to sync..."
sleep 10 # Wait 10 seconds for branch sync

- name: Create PR via GitHub API
env:
GH_TOKEN: ${{ secrets.PLUGIN_ACTION }} # Use the provided token for authentication
run: |
gh pr create \
--repo langgenius/dify-plugins \
--head "${{ steps.get_basic_info.outputs.author }}:${{ steps.get_basic_info.outputs.plugin_name }}-${{ steps.get_basic_info.outputs.version }}" \
--base main \
--title "bump ${{ steps.get_basic_info.outputs.plugin_name }} plugin to version ${{ steps.get_basic_info.outputs.version }}" \
--body "bump ${{ steps.get_basic_info.outputs.plugin_name }} plugin package to version ${{ steps.get_basic_info.outputs.version }}

Changes:
- Updated plugin package file" || echo "PR already exists or creation skipped." # Handle cases where PR already exists

- name: Print environment info # Kept for debugging
run: |
echo "GITHUB_WORKSPACE: $GITHUB_WORKSPACE"
echo "Current directory contents:"
ls -R
6 changes: 6 additions & 0 deletions .github/workflows/pre-pr-check-per-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
branches:
- main

workflow_dispatch:
inputs:
plugin_path:
description: '手动指定要检查的插件路径 (例如: plugins/my_plugin)'
required: false
default: ''
jobs:
detect-changes:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ parts/
sdist/
var/
wheels/
test/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand Down
184 changes: 184 additions & 0 deletions models/shengsuanyun/.difyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
Pipfile.lock

# UV
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
uv.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/

# Vscode
.vscode/

# Git
.git/
.gitignore
.github/

# Mac
.DS_Store

# Windows
Thumbs.db

# Dify plugin packages
# To prevent packaging repetitively
*.difypkg

3 changes: 3 additions & 0 deletions models/shengsuanyun/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
INSTALL_METHOD=remote
REMOTE_INSTALL_URL=debug.dify.ai:5003
REMOTE_INSTALL_KEY=********-****-****-****-************
Loading
Loading