[PR #313] [MERGED] refactor: streamline plugin initialization and update YAML templates … #440

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

📋 Pull Request Information

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

Base: mainHead: fix/cmd


📝 Commits (1)

  • f53bca6 refactor: streamline plugin initialization and update YAML templates for consistency

📊 Changes

7 files changed (+67 additions, -70 deletions)

View changed files

📝 cmd/commandline/plugin.go (+0 -22)
📝 cmd/commandline/plugin/init.go (+33 -14)
📝 cmd/commandline/plugin/templates/python/agent_provider.yaml (+2 -2)
📝 cmd/commandline/plugin/templates/python/agent_strategy.yaml (+2 -2)
📝 cmd/commandline/plugin/templates/python/model_provider.yaml (+8 -8)
📝 cmd/commandline/plugin/templates/python/tool.yaml (+13 -13)
📝 cmd/commandline/plugin/templates/python/tool_provider.yaml (+9 -9)

📄 Description

…for consistency

  • Removed redundant flag retrieval in the plugin initialization process, simplifying the code.
  • Updated permission handling to use a single permissionRequirement structure for better clarity and maintainability.
  • Enhanced YAML templates by adding quotes around dynamic values to ensure proper formatting and prevent potential parsing issues.

🔄 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/313 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 5/27/2025 **Status:** ✅ Merged **Merged:** 5/27/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `fix/cmd` --- ### 📝 Commits (1) - [`f53bca6`](https://github.com/langgenius/dify-plugin-daemon/commit/f53bca638c9b6d05b89494fa4acbe4fded16bab9) refactor: streamline plugin initialization and update YAML templates for consistency ### 📊 Changes **7 files changed** (+67 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `cmd/commandline/plugin.go` (+0 -22) 📝 `cmd/commandline/plugin/init.go` (+33 -14) 📝 `cmd/commandline/plugin/templates/python/agent_provider.yaml` (+2 -2) 📝 `cmd/commandline/plugin/templates/python/agent_strategy.yaml` (+2 -2) 📝 `cmd/commandline/plugin/templates/python/model_provider.yaml` (+8 -8) 📝 `cmd/commandline/plugin/templates/python/tool.yaml` (+13 -13) 📝 `cmd/commandline/plugin/templates/python/tool_provider.yaml` (+9 -9) </details> ### 📄 Description …for consistency - Removed redundant flag retrieval in the plugin initialization process, simplifying the code. - Updated permission handling to use a single `permissionRequirement` structure for better clarity and maintainability. - Enhanced YAML templates by adding quotes around dynamic values to ensure proper formatting and prevent potential parsing issues. --- <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:58 -05:00
yindo closed this issue 2026-02-16 01:15:58 -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#440