✨ 添加对主流框架的消息io支持
This commit is contained in:
@ -117,7 +117,7 @@ def format_display_name(display_name: str, plugin_type: PluginType) -> str:
|
||||
match plugin_type:
|
||||
case PluginType.APPLICATION:
|
||||
color = "m"
|
||||
case PluginType.IMPLEMENTATION:
|
||||
case PluginType.TEST:
|
||||
color = "g"
|
||||
case PluginType.MODULE:
|
||||
color = "e"
|
||||
|
@ -25,15 +25,15 @@ class PluginType(Enum):
|
||||
SERVICE = "service"
|
||||
"""服务端:例如AI绘画后端"""
|
||||
|
||||
IMPLEMENTATION = "implementation"
|
||||
"""实现端:例如与聊天平台的协议实现"""
|
||||
|
||||
MODULE = "module"
|
||||
"""模块:导出对象给其他插件使用"""
|
||||
|
||||
UNCLASSIFIED = "unclassified"
|
||||
"""未分类:默认值"""
|
||||
|
||||
TEST = "test"
|
||||
"""测试:测试插件"""
|
||||
|
||||
|
||||
class PluginMetadata(BaseModel):
|
||||
"""
|
||||
@ -47,7 +47,7 @@ class PluginMetadata(BaseModel):
|
||||
插件描述
|
||||
usage: str
|
||||
插件使用方法
|
||||
type_: str
|
||||
type: str
|
||||
插件类型
|
||||
author: str
|
||||
插件作者
|
||||
|
Reference in New Issue
Block a user