🤖 自动格式化代码 [skip ci]

This commit is contained in:
github-actions[bot]
2025-06-12 14:08:19 +00:00
parent 49f2e91abb
commit 8c3e5bb1f0
2 changed files with 12 additions and 5 deletions

View File

@@ -123,8 +123,9 @@ class ActionManager:
try:
# 从组件注册中心获取所有已注册的action
from src.plugin_system.core.component_registry import component_registry
action_registry = component_registry.get_action_registry()
# 从action_registry获取所有已注册动作
for action_name, action_class in action_registry.items():
# 获取动作相关信息
@@ -316,6 +317,7 @@ class ActionManager:
# 旧系统的动作创建逻辑
from src.plugin_system.core.component_registry import component_registry
action_registry = component_registry.get_action_registry()
handler_class = action_registry.get(action_name)
if not handler_class:
@@ -582,5 +584,6 @@ class ActionManager:
Optional[Type[BaseAction]]: 动作处理器类如果不存在则返回None
"""
from src.plugin_system.core.component_registry import component_registry
action_registry = component_registry.get_action_registry()
return action_registry.get(action_name)