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) =>