- Updated the PluginMeta class to utilize a strongly typed PluginManifest, improving type safety and clarity. - Refactored dependency extraction logic to streamline the handling of plugin dependencies. - Modified the PluginLoader to accommodate new manifest versioning and validation processes. - Enhanced the PluginRunner to work with a dictionary for external available plugins, allowing for version mapping. - Updated built-in plugins' manifest files to version 2, adding URLs and SDK versioning for better integration and documentation. - Improved error handling and logging for plugin loading and dependency resolution processes.
45 lines
1.0 KiB
JSON
45 lines
1.0 KiB
JSON
{
|
|
"manifest_version": 2,
|
|
"version": "2.0.0",
|
|
"name": "BetterEmoji",
|
|
"description": "更好的表情包管理插件",
|
|
"author": {
|
|
"name": "SengokuCola",
|
|
"url": "https://github.com/SengokuCola"
|
|
},
|
|
"license": "GPL-v3.0-or-later",
|
|
"urls": {
|
|
"repository": "https://github.com/SengokuCola/BetterEmoji",
|
|
"homepage": "https://github.com/SengokuCola/BetterEmoji",
|
|
"documentation": "https://github.com/SengokuCola/BetterEmoji",
|
|
"issues": "https://github.com/SengokuCola/BetterEmoji/issues"
|
|
},
|
|
"host_application": {
|
|
"min_version": "1.0.0",
|
|
"max_version": "1.0.0"
|
|
},
|
|
"sdk": {
|
|
"min_version": "2.0.0",
|
|
"max_version": "2.99.99"
|
|
},
|
|
"dependencies": [],
|
|
"capabilities": [
|
|
"emoji.get_random",
|
|
"emoji.get_count",
|
|
"emoji.get_info",
|
|
"emoji.get_all",
|
|
"emoji.register_emoji",
|
|
"emoji.delete_emoji",
|
|
"send.text",
|
|
"send.forward"
|
|
],
|
|
"i18n": {
|
|
"default_locale": "zh-CN",
|
|
"locales_path": "_locales",
|
|
"supported_locales": [
|
|
"zh-CN"
|
|
]
|
|
},
|
|
"id": "sengokucola.betteremoji"
|
|
}
|