- 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.
42 lines
1.0 KiB
JSON
42 lines
1.0 KiB
JSON
{
|
|
"manifest_version": 2,
|
|
"version": "2.0.0",
|
|
"name": "Hello World 示例插件 (Hello World Plugin)",
|
|
"description": "我的第一个 MaiCore 插件,包含问候功能和时间查询等基础示例",
|
|
"author": {
|
|
"name": "MaiBot开发团队",
|
|
"url": "https://github.com/MaiM-with-u"
|
|
},
|
|
"license": "GPL-v3.0-or-later",
|
|
"urls": {
|
|
"repository": "https://github.com/MaiM-with-u/maibot",
|
|
"homepage": "https://github.com/MaiM-with-u/maibot",
|
|
"documentation": "https://github.com/MaiM-with-u/maibot",
|
|
"issues": "https://github.com/MaiM-with-u/maibot/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": [
|
|
"send.text",
|
|
"send.forward",
|
|
"send.hybrid",
|
|
"emoji.get_random",
|
|
"config.get"
|
|
],
|
|
"i18n": {
|
|
"default_locale": "zh-CN",
|
|
"locales_path": "_locales",
|
|
"supported_locales": [
|
|
"zh-CN"
|
|
]
|
|
},
|
|
"id": "maibot-team.hello-world-plugin"
|
|
}
|