Commit Graph

27 Commits

Author SHA1 Message Date
Byron.wang 2a722a22ed refactor: remove unused code and deprecated features (#422)
* clean up unused code

* fix sign_with_key test
2026-03-30 14:36:12 +08:00
wangxiaolei d9fe93f1f9 feat: plugin package clean command line (#584) 2026-03-08 10:20:13 +08:00
kenwoodjw bb83075acd feat: add max-size flag (#445)
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
2025-09-12 19:26:29 +08:00
Yeuoly 7f463e32f6 feat(plugin_decoder): add support for internationalized readme files (#393)
* feat(plugin_decoder): add support for internationalized readme files

- Introduced the AvailableI18nReadme method in the PluginDecoder interface to retrieve available readme files in multiple languages.
- Implemented the method in FSPluginDecoder and ZipPluginDecoder to read localized readme files from the filesystem and zip archives.
- Enhanced UnixPluginDecoder to handle readme files in a structured manner, including support for reading from a dedicated "readme" directory.
- Added unit tests to verify the functionality of the AvailableI18nReadme method and ensure correct retrieval of localized readme content.

* feat(plugin): add support for multilingual README generation

- Introduced functionality to create README files in multiple languages (Simplified Chinese, Japanese, Portuguese) based on user selection.
- Enhanced the profile management to include options for enabling internationalized README and selecting languages.
- Added new language choice structure to manage language options and their selection state.
- Implemented rendering and writing of language-specific README files during plugin creation.
- Included new README template files for each supported language.

* feat(plugin): add README command and list functionality

- Introduced a new `readme` command to the plugin CLI for managing README files.
- Added `list` subcommand to display available README languages for a specified plugin path.
- Implemented functionality to read and list supported README languages in a tabular format.
- Enhanced error handling for plugin file reading and decoding processes.
2025-07-21 16:02:26 +08:00
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