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

@@ -7,6 +7,8 @@
from .base_plugin import BasePlugin
from .base_action import BaseAction
from .base_command import BaseCommand
from .base_event_plugin import BaseEventPlugin
from .base_events_handler import BaseEventHandler
from .component_types import (
ComponentType,
ActionActivationType,
@@ -16,6 +18,8 @@ from .component_types import (
CommandInfo,
PluginInfo,
PythonDependency,
EventHandlerInfo,
EventType,
)
from .config_types import ConfigField
@@ -32,4 +36,8 @@ __all__ = [
"PluginInfo",
"PythonDependency",
"ConfigField",
"EventHandlerInfo",
"EventType",
"BaseEventPlugin",
"BaseEventHandler",
]

View File

@@ -1,12 +1,10 @@
from abc import abstractmethod
from typing import List, Tuple, Type, TYPE_CHECKING
from typing import List, Tuple, Type
from src.common.logger import get_logger
from .plugin_base import PluginBase
from .component_types import EventHandlerInfo
if TYPE_CHECKING:
from src.plugin_system.base.base_events_handler import BaseEventHandler
from .base_events_handler import BaseEventHandler
logger = get_logger("base_event_plugin")