refactor(plugin_system): 移除静态PlusCommandAdapter并优化命令注册逻辑

移除了不再需要的静态`PlusCommandAdapter`类,该类最初用于将`PlusCommand`适配到旧的`BaseCommand`系统。

随着插件系统重构,所有命令(包括旧版命令)现在都统一通过动态创建的适配器在`ComponentRegistry`中转换为`PlusCommand`进行注册和处理。此更改简化了`plus_command.py`模块,消除了冗余代码,并使命令注册流程更加清晰和一致。

主要变更:
- 从`plus_command.py`中删除了`PlusCommandAdapter`类。
- 调整了`ComponentRegistry`中的日志记录逻辑,现在所有旧版命令都会被明确标记并适配,无需之前的条件检查。
- 相应地更新了相关模块的导入语句。
This commit is contained in:
minecraft1024a
2025-11-01 17:14:37 +08:00
committed by Windpicker-owo
parent 141ef2d6ab
commit 2f22246829
4 changed files with 8 additions and 60 deletions

View File

@@ -43,7 +43,6 @@ from .base import (
PluginInfo,
# 新增的增强命令系统
PlusCommand,
PlusCommandAdapter,
PythonDependency,
ToolInfo,
ToolParamType,