From 006ef674f49654f66445d53317a7365f94bea881 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Mon, 10 Aug 2026 00:35:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=90=8D=E7=A7=B0=E5=92=8C=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/agent/AgentChatArea.vue | 4 + app/components/agent/AgentSidebar.vue | 52 +++++-- app/components/agent/AgentSwitcher.vue | 247 +++++++++++++++++++++++++++++++++ app/components/agent/AgentWelcome.vue | 24 +++- app/pages/chat/[agentSlug]/index.vue | 18 ++- packages/drizzle-pkg/db.sqlite | Bin 1220608 -> 1220608 bytes 6 files changed, 324 insertions(+), 21 deletions(-) create mode 100644 app/components/agent/AgentSwitcher.vue diff --git a/app/components/agent/AgentChatArea.vue b/app/components/agent/AgentChatArea.vue index 6783ec2..bb713d1 100644 --- a/app/components/agent/AgentChatArea.vue +++ b/app/components/agent/AgentChatArea.vue @@ -33,6 +33,8 @@ const props = defineProps<{ systemPrompt?: string; sessionId?: string | null; agentTools?: ToolInfo[]; + agentName?: string; + agentDescription?: string; }>(); const emit = defineEmits<{ @@ -112,6 +114,8 @@ watch( diff --git a/app/components/agent/AgentSidebar.vue b/app/components/agent/AgentSidebar.vue index 7d3ee9e..d66c249 100644 --- a/app/components/agent/AgentSidebar.vue +++ b/app/components/agent/AgentSidebar.vue @@ -8,6 +8,7 @@ const props = defineProps<{ user: { name?: string | null; email?: string | null; role?: string | null } | null; collapsed: boolean; mobile?: boolean; + currentAgentSlug?: string; }>(); const emit = defineEmits<{ @@ -20,6 +21,7 @@ const emit = defineEmits<{ toggle: []; close: []; showDocuments: []; + switchAgent: [slug: string]; }>(); const isAdmin = computed(() => props.user?.role === "admin"); @@ -29,13 +31,20 @@ const isAdmin = computed(() => props.user?.role === "admin");