暴露全部api,解决循环import问题

This commit is contained in:
UnCLAS-Prommer
2025-07-08 00:10:31 +08:00
parent 6633d5e273
commit 36974197a8
14 changed files with 89 additions and 702 deletions

View File

@@ -4,10 +4,10 @@
提供插件开发的基础类和类型定义
"""
from src.plugin_system.base.base_plugin import BasePlugin, register_plugin
from src.plugin_system.base.base_action import BaseAction
from src.plugin_system.base.base_command import BaseCommand
from src.plugin_system.base.component_types import (
from .base_plugin import BasePlugin
from .base_action import BaseAction
from .base_command import BaseCommand
from .component_types import (
ComponentType,
ActionActivationType,
ChatMode,
@@ -15,13 +15,14 @@ from src.plugin_system.base.component_types import (
ActionInfo,
CommandInfo,
PluginInfo,
PythonDependency,
)
from .config_types import ConfigField
__all__ = [
"BasePlugin",
"BaseAction",
"BaseCommand",
"register_plugin",
"ComponentType",
"ActionActivationType",
"ChatMode",
@@ -29,4 +30,6 @@ __all__ = [
"ActionInfo",
"CommandInfo",
"PluginInfo",
"PythonDependency",
"ConfigField",
]