[PR #283] [MERGED] feat[0.1.0]: introduce 'run' command for local plugin execution #423

Closed
opened 2026-02-16 01:15:55 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/283
Author: @Yeuoly
Created: 5/13/2025
Status: Merged
Merged: 5/16/2025
Merged by: @Yeuoly

Base: mainHead: feat/run-plugin-cli


📝 Commits (8)

  • 488f3ed feat: introduce 'run' command for local plugin execution
  • 9abc227 feat: enhance 'run' command with TCP support
  • a574e76 docs: improve comments in RunPlugin function for clarity
  • a083832 refactor: update command structure and enhance plugin invocation handling
  • f73cfdb feat: enhance plugin response handling and logging capabilities
  • 15af749 feat: enhance plugin response structure and logging
  • 70bd2da feat: add plugin invoke end response type and logging
  • 85b9264 chore: remove fullfeature tags

📊 Changes

12 files changed (+493 additions, -130 deletions)

View changed files

cmd/commandline/run.go (+43 -0)
cmd/commandline/run/entities.go (+57 -0)
cmd/commandline/run/logger.go (+8 -0)
cmd/commandline/run/run.go (+290 -0)
cmd/commandline/run/server.go (+59 -0)
cmd/commandline/test.go (+0 -45)
📝 integration/agent_integration_test.go (+6 -2)
📝 internal/cluster/clutser_test.go (+1 -1)
📝 internal/core/plugin_daemon/generic.go (+0 -1)
📝 internal/core/plugin_manager/local_runtime_benchmark_test.go (+1 -1)
📝 internal/core/plugin_manager/test_utils/runtime.go (+27 -79)
📝 internal/utils/log/log.go (+1 -1)

📄 Description

  • Added a new command run to launch plugins locally, allowing communication through stdin/stdout.
  • Removed the previous test command and its associated functionality to streamline the plugin testing process.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/283 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 5/13/2025 **Status:** ✅ Merged **Merged:** 5/16/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `feat/run-plugin-cli` --- ### 📝 Commits (8) - [`488f3ed`](https://github.com/langgenius/dify-plugin-daemon/commit/488f3ed2d6c14cddb554e830589e2aa491f80988) feat: introduce 'run' command for local plugin execution - [`9abc227`](https://github.com/langgenius/dify-plugin-daemon/commit/9abc227e7862f2d7c22a476f008691c9370e89ce) feat: enhance 'run' command with TCP support - [`a574e76`](https://github.com/langgenius/dify-plugin-daemon/commit/a574e767e49ea42212c7aba93e06a5772d30c4f7) docs: improve comments in RunPlugin function for clarity - [`a083832`](https://github.com/langgenius/dify-plugin-daemon/commit/a0838323c385466abe7bc7b4d5285ff6202644cd) refactor: update command structure and enhance plugin invocation handling - [`f73cfdb`](https://github.com/langgenius/dify-plugin-daemon/commit/f73cfdb8ad1ac69af6642ca4b78db19710cf97bc) feat: enhance plugin response handling and logging capabilities - [`15af749`](https://github.com/langgenius/dify-plugin-daemon/commit/15af749e047051d5529867f7dcf0f657ee9bf6ae) feat: enhance plugin response structure and logging - [`70bd2da`](https://github.com/langgenius/dify-plugin-daemon/commit/70bd2da31305b1e8ba028aeea8a260b422119837) feat: add plugin invoke end response type and logging - [`85b9264`](https://github.com/langgenius/dify-plugin-daemon/commit/85b92646041cd14b1196d4e09701515bbbf439b2) chore: remove fullfeature tags ### 📊 Changes **12 files changed** (+493 additions, -130 deletions) <details> <summary>View changed files</summary> ➕ `cmd/commandline/run.go` (+43 -0) ➕ `cmd/commandline/run/entities.go` (+57 -0) ➕ `cmd/commandline/run/logger.go` (+8 -0) ➕ `cmd/commandline/run/run.go` (+290 -0) ➕ `cmd/commandline/run/server.go` (+59 -0) ➖ `cmd/commandline/test.go` (+0 -45) 📝 `integration/agent_integration_test.go` (+6 -2) 📝 `internal/cluster/clutser_test.go` (+1 -1) 📝 `internal/core/plugin_daemon/generic.go` (+0 -1) 📝 `internal/core/plugin_manager/local_runtime_benchmark_test.go` (+1 -1) 📝 `internal/core/plugin_manager/test_utils/runtime.go` (+27 -79) 📝 `internal/utils/log/log.go` (+1 -1) </details> ### 📄 Description - Added a new command `run` to launch plugins locally, allowing communication through stdin/stdout. - Removed the previous `test` command and its associated functionality to streamline the plugin testing process. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:55 -05:00
yindo closed this issue 2026-02-16 01:15:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#423