[PR #584] feat: plugin package clean command line tool #599

Open
opened 2026-02-16 01:16:27 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/584
Author: @fatelei
Created: 1/26/2026
Status: 🔄 Open

Base: mainHead: package_clean


📝 Commits (1)

  • a0ef691 feat: plugin package clean command line

📊 Changes

6 files changed (+379 additions, -33 deletions)

View changed files

📝 cmd/commandline/plugin.go (+20 -0)
cmd/commandline/plugin/cleanup.go (+350 -0)
📝 internal/core/plugin_manager/manager.go (+4 -0)
📝 internal/tasks/install_plugin_utils.go (+3 -1)
internal/tasks/install_plugin_utils_test.go (+0 -30)
📝 internal/types/app/config.go (+2 -2)

📄 Description

Description

fix https://github.com/langgenius/dify/issues/31518

use command line, keep the latest version, delete the old version

  • go run ./cmd/commandline plugin cleanup -p ./cwd -y
  • go run ./cmd/commandline plugin cleanup -p ./cwd --dry-run

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.


🔄 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/584 **Author:** [@fatelei](https://github.com/fatelei) **Created:** 1/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `package_clean` --- ### 📝 Commits (1) - [`a0ef691`](https://github.com/langgenius/dify-plugin-daemon/commit/a0ef6915f2b5dbd7dcfbcd5b9b69f1262ef14683) feat: plugin package clean command line ### 📊 Changes **6 files changed** (+379 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `cmd/commandline/plugin.go` (+20 -0) ➕ `cmd/commandline/plugin/cleanup.go` (+350 -0) 📝 `internal/core/plugin_manager/manager.go` (+4 -0) 📝 `internal/tasks/install_plugin_utils.go` (+3 -1) ➖ `internal/tasks/install_plugin_utils_test.go` (+0 -30) 📝 `internal/types/app/config.go` (+2 -2) </details> ### 📄 Description ## Description fix https://github.com/langgenius/dify/issues/31518 use command line, keep the latest version, delete the old version - go run ./cmd/commandline plugin cleanup -p ./cwd -y - go run ./cmd/commandline plugin cleanup -p ./cwd --dry-run ## Type of Change - [ ] Bug fix - [x] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [x] I have tested the changes locally and confirmed they work as expected - [x] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [x] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information Please provide any additional context that would help reviewers understand the changes. --- <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:16:27 -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#599