68 lines
1.2 KiB
Python
68 lines
1.2 KiB
Python
"""
|
|
MaiBot 插件系统
|
|
|
|
提供统一的插件开发和管理框架
|
|
"""
|
|
|
|
# 导出主要的公共接口
|
|
from .base import (
|
|
BasePlugin,
|
|
BaseAction,
|
|
BaseCommand,
|
|
ConfigField,
|
|
ComponentType,
|
|
ActionActivationType,
|
|
ChatMode,
|
|
ComponentInfo,
|
|
ActionInfo,
|
|
CommandInfo,
|
|
PluginInfo,
|
|
PythonDependency,
|
|
)
|
|
from .core.plugin_manager import (
|
|
plugin_manager,
|
|
component_registry,
|
|
dependency_manager,
|
|
)
|
|
|
|
# 导入工具模块
|
|
from .utils import (
|
|
ManifestValidator,
|
|
ManifestGenerator,
|
|
validate_plugin_manifest,
|
|
generate_plugin_manifest,
|
|
)
|
|
|
|
from .apis.plugin_register_api import register_plugin
|
|
|
|
|
|
__version__ = "1.0.0"
|
|
|
|
__all__ = [
|
|
# 基础类
|
|
"BasePlugin",
|
|
"BaseAction",
|
|
"BaseCommand",
|
|
# 类型定义
|
|
"ComponentType",
|
|
"ActionActivationType",
|
|
"ChatMode",
|
|
"ComponentInfo",
|
|
"ActionInfo",
|
|
"CommandInfo",
|
|
"PluginInfo",
|
|
"PythonDependency",
|
|
# 管理器
|
|
"plugin_manager",
|
|
"component_registry",
|
|
"dependency_manager",
|
|
# 装饰器
|
|
"register_plugin",
|
|
"ConfigField",
|
|
# 工具函数
|
|
"ManifestValidator",
|
|
"ManifestGenerator",
|
|
"validate_plugin_manifest",
|
|
"generate_plugin_manifest",
|
|
]
|