From 041964132a59a5a0a03fa88effeb0cb99310c62a Mon Sep 17 00:00:00 2001 From: baiyanyun Date: Mon, 13 Jul 2026 15:31:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=89=A9=E5=B1=95=E5=B8=82?= =?UTF-8?q?=E5=9C=BA=E4=B8=BB=E8=8F=9C=E5=8D=95=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/renderer/App.tsx | 14 +++++++--- .../renderer/components/layout/AppSidebar.tsx | 26 +++++++++++++------ 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/qimingclaw/crates/agent-electron-client/src/renderer/App.tsx b/qimingclaw/crates/agent-electron-client/src/renderer/App.tsx index 83ea4b26..ae098e3e 100644 --- a/qimingclaw/crates/agent-electron-client/src/renderer/App.tsx +++ b/qimingclaw/crates/agent-electron-client/src/renderer/App.tsx @@ -1094,6 +1094,16 @@ function App() { return; } + if ( + key === "skills" || + key === "agents" || + key === "mcpLibrary" || + key === "workflow" + ) { + setActiveTab(key); + return; + } + if (key === "toolIntegration" || key === "systemSettings") { setActiveTab("settings"); return; @@ -1114,10 +1124,6 @@ function App() { client: "overview", sessions: "aiChat", automation: "automation", - skills: "overview", - agents: "overview", - mcpLibrary: "overview", - workflow: "overview", mcp: "systemSettings", settings: "systemSettings", dependencies: "systemSettings", diff --git a/qimingclaw/crates/agent-electron-client/src/renderer/components/layout/AppSidebar.tsx b/qimingclaw/crates/agent-electron-client/src/renderer/components/layout/AppSidebar.tsx index 3c148dac..97a9c9c0 100644 --- a/qimingclaw/crates/agent-electron-client/src/renderer/components/layout/AppSidebar.tsx +++ b/qimingclaw/crates/agent-electron-client/src/renderer/components/layout/AppSidebar.tsx @@ -32,6 +32,10 @@ export type NavKey = | "knowledge" | "document" | "dataFetch" + | "skills" + | "agents" + | "mcpLibrary" + | "workflow" | "toolIntegration" | "systemSettings"; @@ -39,10 +43,6 @@ export type LegacyTabKey = | "client" | "sessions" | "automation" - | "skills" - | "agents" - | "mcpLibrary" - | "workflow" | "mcp" | "settings" | "dependencies" @@ -96,6 +96,13 @@ const workspaceItems: NavItem[] = [ { key: "dataFetch", label: "智能取数", icon: }, ]; +const marketplaceItems: NavItem[] = [ + { key: "skills", label: "技能库", icon: }, + { key: "agents", label: "智能体", icon: }, + { key: "mcpLibrary", label: "MCP 库", icon: }, + { key: "workflow", label: "工作流", icon: }, +]; + const settingItems: NavItem[] = [ { key: "toolIntegration", label: "工具集成", icon: }, { key: "systemSettings", label: "系统设置", icon: }, @@ -105,10 +112,6 @@ function getLegacyItems(isMacOS: boolean): LegacyItem[] { const items: LegacyItem[] = [ { key: "client", label: "客户端", icon: }, { key: "sessions", label: "会话", icon: }, - { key: "skills", label: "技能库", icon: }, - { key: "agents", label: "智能体", icon: }, - { key: "mcpLibrary", label: "MCP 库", icon: }, - { key: "workflow", label: "工作流", icon: }, { key: "mcp", label: "MCP", icon: }, { key: "settings", label: "设置", icon: }, { key: "dependencies", label: "依赖", icon: }, @@ -240,6 +243,13 @@ export default function AppSidebar({ )} +
+
扩展市场
+ {marketplaceItems.map((item) => + renderNavItem(item, activeNavKey, onNavSelect), + )} +
+
设置
{settingItems.map((item) =>