From 772ab53d1a8b9210905b0246e445c3db313516d1 Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Fri, 20 Mar 2026 17:51:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=20AttachmentInpu?= =?UTF-8?q?tPanel=20=E7=BB=84=E4=BB=B6=E5=B9=B6=E5=9C=A8=20MessageInputCom?= =?UTF-8?q?ponent=20=E4=B8=AD=E9=9B=86=E6=88=90=20subagent=20mention=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了 AttachmentInputPanel.vue 组件。 - 增强了 MessageInputComponent.vue,新增了一个用于子代理的提及组。 - 更新了提及逻辑以在提及功能中支持子代理。 - 引入 useAgentMentionConfig.js 来管理代理提及配置。 - 添加 useAgentRunStream.js 用于处理代理运行流逻辑。 - 创建 useAgentThreadState.js 来管理线程状态和正在进行的对话。 - 清理了 AgentView.vue,移除了未使用的样式和配置。 --- web/src/components/AgentChatComponent.vue | 698 ++----------------- web/src/components/AgentInputArea.vue | 69 +- web/src/components/AttachmentInputPanel.vue | 166 ----- web/src/components/MessageInputComponent.vue | 80 ++- web/src/composables/useAgentMentionConfig.js | 114 +++ web/src/composables/useAgentRunStream.js | 342 +++++++++ web/src/composables/useAgentThreadState.js | 82 +++ web/src/views/AgentView.vue | 488 ------------- 8 files changed, 656 insertions(+), 1383 deletions(-) delete mode 100644 web/src/components/AttachmentInputPanel.vue create mode 100644 web/src/composables/useAgentMentionConfig.js create mode 100644 web/src/composables/useAgentRunStream.js create mode 100644 web/src/composables/useAgentThreadState.js diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue index f334da94..4f41df8b 100644 --- a/web/src/components/AgentChatComponent.vue +++ b/web/src/components/AgentChatComponent.vue @@ -26,7 +26,7 @@
- +
-
-
+
+