Commit Graph

23 Commits

Author SHA1 Message Date
Yeuoly 3918b377f2 refactor: streamline plugin initialization and update YAML templates for consistency (#313)
- 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.
2025-05-27 19:48:11 +08:00
Yeuoly d02885674a feat: add repository URL support for plugin manifest (#262)
* feat: add repository URL support for plugin manifest

- Introduced a new optional flag for specifying the plugin repository URL during initialization.
- Updated the InitPluginWithFlags function to handle the new repository parameter.
- Enhanced profile management to include repository input.
- Modified related tests to validate the new repository functionality.

* fix: improve input validation in profile checkRule method

- Updated the checkRule method to ensure cursor is within valid range before checking for empty input values. This change prevents potential out-of-bounds errors and enhances the robustness of the input validation process.
2025-05-07 18:35:38 +08:00
Yeuoly ee540bc220 feat: enhance plugin initialization with configurable parameters (#248)
* feat: enhance plugin initialization with configurable parameters

- Added new flags for plugin initialization, allowing users to specify author, name, description, and various permissions.
- Implemented InitPluginWithFlags function to handle the new parameters and validate input.
- Introduced methods to set category, language, and minimal Dify version within the plugin model.
- Enhanced profile management by adding methods to set author and name directly.
- Improved category and language selection with dedicated setter methods.

* add enum

* add tests
2025-04-27 17:29:26 +08:00
Yeuoly 5349e3ebda feat: add permission editor 2024-11-28 21:50:24 +08:00
Yeuoly 5fa8950077 fix: clean relative path of packing 2024-11-21 15:06:38 +08:00
Yeuoly 2d24fc8835 feat: support list models 2024-11-19 18:28:15 +08:00
Yeuoly be34b659ab fix: package command 2024-11-15 17:33:21 +08:00
Yeuoly e54b307a4d refactor: plugin and bundle command, support version command 2024-11-15 17:21:02 +08:00
Yeuoly b195b93ae3 refactor: commandline 2024-11-13 20:38:47 +08:00
Yeuoly 26fd94ebcd refactor: convert snakecase to camelcase 2024-11-12 21:24:41 +08:00
Yeuoly 84703ef1b4 refactor: uni storage 2024-11-08 19:17:19 +08:00
Yeuoly 69dfe0d8f8 enhancement: remove force reloading process of each time process launched 2024-11-06 13:58:53 +08:00
Yeuoly 79b6e0450c refactor: install plugin to locals 2024-10-29 17:04:03 +08:00
Yeuoly 6920804382 fix: processes manager error messages 2024-09-19 16:48:36 +08:00
Yeuoly 267d016d3a feat: support cmdline test 2024-09-19 15:57:07 +08:00
Yeuoly fefd3ef53e feat: support cli testing 2024-09-18 17:04:40 +08:00
Yeuoly 26c98695fb feat: support install pkg 2024-09-12 00:59:06 +08:00
Yeuoly 9a3fb75a5b fix: package 2024-09-11 17:35:54 +08:00
Yeuoly 3abfa02471 feat: checksum 2024-09-03 16:58:00 +08:00
Yeuoly de7c82ec62 fix 2024-09-03 16:08:28 +08:00
Yeuoly dc72adc2dc refactor: remove model cli 2024-09-03 15:41:27 +08:00
Yeuoly 8eb3c7a0dd feat: add model templates 2024-09-03 12:31:16 +08:00
Yeuoly 0cfa74115f feat: cli permission helper 2024-09-02 21:17:15 +08:00