import type { Meta, StoryObj } from "@storybook/nextjs-vite"; import type React from "react"; import { ToolExecutionDisplay } from "../components/chat/tool-execution-display"; import type { ToolExecutionData } from "../components/chat/types"; /** * CLIENT (Fae) variant of the standalone tool-execution card. Same component * and props as the Admin card, gated by `assistantType="fae"` — the only * visual difference is that the tool icon next to the command is hidden. */ const executingMessage: ToolExecutionData = { type: "EXECUTING_TOOL", integratedToolType: "OPENFRAME_RMM", toolFunction: "run_script", parameters: { RunAsUser: "False", timeoutSeconds: 60 }, }; const executedSuccessMessage: ToolExecutionData = { type: "EXECUTED_TOOL", integratedToolType: "OPENFRAME_RMM", toolFunction: "run_script", parameters: { RunAsUser: "False", timeoutSeconds: 60 }, result: `pid | name | path | cmdline 4821 | suspicious.exe | C:\\Users\\Public\\suspicious.exe | suspicious.exe --hidden --connect 185.220.101.45`, success: true, }; const constrainedDecorator = (width?: number) => (Story: React.ComponentType) => (