refactor: hook_dispatcher相关的修改

This commit is contained in:
UnCLAS-Prommer
2026-03-19 00:35:19 +08:00
committed by DrSmoothl
parent 593400c0aa
commit 310d7798ba
7 changed files with 193 additions and 442 deletions

View File

@@ -134,9 +134,9 @@ class ComponentDeclaration(BaseModel):
name: str = Field(description="组件名称")
"""组件名称"""
component_type: str = Field(
description="组件类型action/command/tool/event_handler/workflow_handler/message_gateway"
description="组件类型action/command/tool/event_handler/hook_handler/message_gateway"
)
"""组件类型:`action`/`command`/`tool`/`event_handler`/`workflow_handler`/`message_gateway`"""
"""组件类型:`action`/`command`/`tool`/`event_handler`/`hook_handler`/`message_gateway`"""
plugin_id: str = Field(description="所属插件 ID")
"""所属插件 ID"""
metadata: Dict[str, Any] = Field(default_factory=dict, description="组件元数据")