- 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.
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"manifest_version": 2,
|
|
"version": "2.0.0",
|
|
"name": "发言频率控制插件|BetterFrequency Plugin",
|
|
"description": "控制聊天频率,支持设置 focus_value 和 talk_frequency 调整值,并提供命令入口。",
|
|
"author": {
|
|
"name": "SengokuCola",
|
|
"url": "https://github.com/MaiM-with-u"
|
|
},
|
|
"license": "GPL-v3.0-or-later",
|
|
"urls": {
|
|
"repository": "https://github.com/SengokuCola/BetterFrequency",
|
|
"homepage": "https://github.com/SengokuCola/BetterFrequency",
|
|
"documentation": "https://github.com/SengokuCola/BetterFrequency",
|
|
"issues": "https://github.com/SengokuCola/BetterFrequency/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",
|
|
"frequency.set_adjust",
|
|
"frequency.get_current_talk_value",
|
|
"frequency.get_adjust"
|
|
],
|
|
"i18n": {
|
|
"default_locale": "zh-CN",
|
|
"locales_path": "_locales",
|
|
"supported_locales": [
|
|
"zh-CN"
|
|
]
|
|
},
|
|
"id": "sengokucola.betterfrequency"
|
|
}
|