diff --git a/src/components/discussion/composer/ComposerInput.tsx b/src/components/discussion/composer/ComposerInput.tsx index 43d51466..4fef311c 100644 --- a/src/components/discussion/composer/ComposerInput.tsx +++ b/src/components/discussion/composer/ComposerInput.tsx @@ -1,5 +1,5 @@ -import type { SwarmWorkCommand } from '../../../lib/forge-agent-protocol'; -import { SWARM_WORK_COMMAND_LABELS } from '../../../lib/forge-agent-protocol'; +import type { SwarmWorkCommand } from "../../../lib/forge-agent-protocol"; +import { SWARM_WORK_COMMAND_LABELS } from "../../../lib/forge-agent-protocol"; interface Props { message: string; @@ -10,19 +10,44 @@ interface Props { agentId: string; send: () => Promise; applySwarmCommand: (cmd: SwarmWorkCommand) => void; - swarmCommandMode: 'direct' | 'leader'; - setSwarmCommandMode: (mode: 'direct' | 'leader' | ((prev: 'direct' | 'leader') => 'direct' | 'leader')) => void; + swarmCommandMode: "direct" | "leader"; + setSwarmCommandMode: ( + mode: + | "direct" + | "leader" + | ((prev: "direct" | "leader") => "direct" | "leader"), + ) => void; } export default function ComposerInput({ - message, setMessage, sending, historyLoading, sessionUnavailable, agentId, - send, applySwarmCommand, swarmCommandMode, setSwarmCommandMode + message, + setMessage, + sending, + historyLoading, + sessionUnavailable, + agentId, + send, + applySwarmCommand, + swarmCommandMode, + setSwarmCommandMode, }: Props) { return ( -
+
- Commandes - {(['start_work', 'pause_work', 'resume_work', 'stop_work'] as SwarmWorkCommand[]).map((cmd) => ( + + Commandes + + {( + [ + "start_work", + "pause_work", + "resume_work", + "stop_work", + ] as SwarmWorkCommand[] + ).map((cmd) => (