From ef41f4eaf7a7abd98c6c6af587871b5d22217b57 Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Sat, 6 Sep 2025 20:58:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(plugin=5Fsystem):=20=E6=B7=BB=E5=8A=A0ON?= =?UTF-8?q?=5FSTOP=E4=BA=8B=E4=BB=B6=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为插件系统增加ON_STOP事件,用于处理程序停止时的任务。 --- src/plugin_system/base/component_types.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugin_system/base/component_types.py b/src/plugin_system/base/component_types.py index f740d0c96..5737b4fb6 100644 --- a/src/plugin_system/base/component_types.py +++ b/src/plugin_system/base/component_types.py @@ -80,6 +80,7 @@ class EventType(Enum): """ ON_START = "on_start" # 启动事件,用于调用按时任务 + ON_STOP ="on_stop" ON_MESSAGE = "on_message" ON_PLAN = "on_plan" POST_LLM = "post_llm"