plugin_name不再受文件夹名称限制

This commit is contained in:
UnCLAS-Prommer
2025-07-18 19:25:06 +08:00
parent 8b21b7cc77
commit 063382862a
7 changed files with 103 additions and 58 deletions

View File

@@ -18,11 +18,16 @@ from .base import (
CommandInfo,
PluginInfo,
PythonDependency,
BaseEventHandler,
EventHandlerInfo,
EventType,
BaseEventPlugin,
)
from .core.plugin_manager import (
from .core import (
plugin_manager,
component_registry,
dependency_manager,
events_manager,
)
# 导入工具模块
@@ -43,6 +48,8 @@ __all__ = [
"BasePlugin",
"BaseAction",
"BaseCommand",
"BaseEventPlugin",
"BaseEventHandler",
# 类型定义
"ComponentType",
"ActionActivationType",
@@ -52,10 +59,13 @@ __all__ = [
"CommandInfo",
"PluginInfo",
"PythonDependency",
"EventHandlerInfo",
"EventType",
# 管理器
"plugin_manager",
"component_registry",
"dependency_manager",
"events_manager",
# 装饰器
"register_plugin",
"ConfigField",