diff --git a/frontend/src/features/agents/AgentsPanel.tsx b/frontend/src/features/agents/AgentsPanel.tsx index dcee13ed..eec05702 100644 --- a/frontend/src/features/agents/AgentsPanel.tsx +++ b/frontend/src/features/agents/AgentsPanel.tsx @@ -19,7 +19,6 @@ import { useEffect, useState } from "react"; import { Button, Input, Panel, SmallDropdown, Spinner, cn } from "@/shared"; import { TerminalView } from "@/features/terminals/TerminalView"; import { AnnouncementsPreview } from "@/features/announcements"; -import { AgentPluginCapabilities } from "@/features/plugins/AgentPluginCapabilities"; import { useDrift } from "@/features/templates/useDrift"; import { templateProfileLabel } from "@/features/templates/templatePresentation"; import { useGateways } from "@/app/di"; @@ -624,20 +623,6 @@ export function AgentsPanel({ projectId, projectRoot = "" }: AgentsPanelProps) { )} - {selectedAgent && gateways.plugin && ( -
{error}
+ +{plugins.error}
} + {plugins.installed.map((plugin) => { + const rows = (plugin.contributes.mcpServers ?? []).flatMap((server) => + (server.tools ?? []) + .filter((tool) => + matches(`${tool.name} ${tool.description ?? ""} ${server.displayName} ${plugin.displayName}`), + ) + .map((tool) => ({ server, tool })), + ); + if (rows.length === 0) return null; + const enabled = enabledPluginIds.has(plugin.id); + return ( +Aucun tool MCP plugin catalogué.
+ )} +
- Attribuez les skills et tools MCP disponibles pour cet agent. -
-- Relance requise pour appliquer ces changements à l’agent actif. -
- )} - {(nativeError || plugins.error) && ( -{nativeError ?? plugins.error}
- )} - -Aucun skill disponible.
- )} - {nativeSkills.map((skill) => { - const assigned = nativeAssignedKeys.has(`${skill.scope}:${skill.id}`); - return ( - - ); - })} - {staleNativeSkills.map((ref) => ( -Aucun tool MCP disponible.
- )} - {nativeTools.map((tool) => ( - - ))} - {staleNativeTools.map((name) => ( -Activez les plugins utilisés par ce projet. Les attributions se gèrent - depuis la fiche de chaque agent. + dans les panneaux Skills et MCP.
{onAssignAgents && ( )} diff --git a/frontend/src/features/plugins/index.ts b/frontend/src/features/plugins/index.ts index 9761c798..4e659ac8 100644 --- a/frontend/src/features/plugins/index.ts +++ b/frontend/src/features/plugins/index.ts @@ -1,7 +1,6 @@ export { PluginRuntimeProvider, usePluginRuntime, type PluginRuntimeContextValue } from "./PluginRuntimeProvider"; export { PluginsPanel } from "./PluginsPanel"; export { ProjectPluginsPanel } from "./ProjectPluginsPanel"; -export { AgentPluginCapabilities } from "./AgentPluginCapabilities"; export { usePlugins, type PluginsViewModel } from "./usePlugins"; export { resolveMenuItems, resolveTopLevelMenus, type ResolvedTopLevelMenu } from "./menus"; export { usePluginMenus, type UsePluginMenusResult } from "./usePluginMenus"; diff --git a/frontend/src/features/projects/ProjectsView.tsx b/frontend/src/features/projects/ProjectsView.tsx index a43c4476..2a86b7b2 100644 --- a/frontend/src/features/projects/ProjectsView.tsx +++ b/frontend/src/features/projects/ProjectsView.tsx @@ -96,6 +96,7 @@ const PANEL_SIZE: Record- {vm.error} + {vm.error ?? plugins.error ?? assignmentError}
)} +Skills IdeA et plugins disponibles.
+Aucun skill disponible.
+ )} +