mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
[PR #144] [MERGED] feat[0.3.0]: add plugin runner functionality #180
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/144
Author: @Yeuoly
Created: 5/15/2025
Status: ✅ Merged
Merged: 5/19/2025
Merged by: @Yeuoly
Base:
main← Head:feat/runner📝 Commits (10+)
381c94cfeat: add integration configuration and plugin runner functionality132042dapply ruff8b177d8feat: enhance plugin runner with new response handling and exception management00870d8refactor: rename PluginStopped exception to PluginStoppedError0fdfd40fix: update version check for dify CLI in IntegrationConfig84ed8a4chore: update dependencies and lock file9438259feat: enhance IntegrationConfig with improved CLI path validation10b3f61feat: add setup script for dify-plugin-cli installationbb1bf11feat: add integration test for invoking LLM with mocked OpenAI server2853a7dfix: add timeout to requests in LLM integration test📊 Changes
13 files changed (+572 additions, -2 deletions)
View changed files
📝
.github/workflows/pull-request.yaml(+9 -0)➕
python/dify_plugin/config/integration_config.py(+55 -0)📝
python/dify_plugin/core/entities/plugin/request.py(+7 -0)➕
python/dify_plugin/integration/entities.py(+37 -0)➕
python/dify_plugin/integration/exc.py(+6 -0)➕
python/dify_plugin/integration/run.py(+242 -0)📝
python/pdm.lock(+2 -2)📝
python/pyproject.toml(+1 -0)➕
python/scripts/launch_mock_server.sh(+14 -0)➕
python/tests/__mock_server/__init__.py(+8 -0)➕
python/tests/__mock_server/openai.py(+43 -0)➕
python/tests/integration/test_invoke_llm.py(+53 -0)➕
scripts/setup-dify-plugin-cli.sh(+95 -0)📄 Description
IntegrationConfigclass for managing plugin testing configurations, including validation for thedify_cli_path.PluginInvokeRequestandPluginGenericResponsemodels to handle plugin invocation requests and responses.PluginRunnerclass to facilitate running plugins locally, including asynchronous message handling and process management.PluginAccessActionfor streamlined access control.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.