@seed-ship/mcp-ui-solid 8.0.0-solid2.3 → 8.0.0-solid2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -1
- package/README.md +48 -46
- package/dist/components/ActionGroupRenderer.cjs +49 -49
- package/dist/components/ActionGroupRenderer.cjs.map +1 -1
- package/dist/components/ActionGroupRenderer.js +50 -50
- package/dist/components/ActionGroupRenderer.js.map +1 -1
- package/dist/components/AgentCard.cjs +58 -57
- package/dist/components/AgentCard.cjs.map +1 -1
- package/dist/components/AgentCard.js +59 -58
- package/dist/components/AgentCard.js.map +1 -1
- package/dist/components/AgentHandoff.cjs +21 -27
- package/dist/components/AgentHandoff.cjs.map +1 -1
- package/dist/components/AgentHandoff.js +22 -28
- package/dist/components/AgentHandoff.js.map +1 -1
- package/dist/components/ArtifactRenderer.cjs +0 -1
- package/dist/components/ArtifactRenderer.cjs.map +1 -1
- package/dist/components/ArtifactRenderer.js +0 -1
- package/dist/components/ArtifactRenderer.js.map +1 -1
- package/dist/components/AutocompleteDropdown.cjs +165 -161
- package/dist/components/AutocompleteDropdown.cjs.map +1 -1
- package/dist/components/AutocompleteDropdown.js +165 -161
- package/dist/components/AutocompleteDropdown.js.map +1 -1
- package/dist/components/AutocompleteFormField.cjs +220 -214
- package/dist/components/AutocompleteFormField.cjs.map +1 -1
- package/dist/components/AutocompleteFormField.js +222 -216
- package/dist/components/AutocompleteFormField.js.map +1 -1
- package/dist/components/BriefingDiff.cjs +156 -146
- package/dist/components/BriefingDiff.cjs.map +1 -1
- package/dist/components/BriefingDiff.js +156 -146
- package/dist/components/BriefingDiff.js.map +1 -1
- package/dist/components/ChartJSRenderer.cjs +263 -250
- package/dist/components/ChartJSRenderer.cjs.map +1 -1
- package/dist/components/ChartJSRenderer.js +263 -250
- package/dist/components/ChartJSRenderer.js.map +1 -1
- package/dist/components/ChatPrompt.cjs +70 -67
- package/dist/components/ChatPrompt.cjs.map +1 -1
- package/dist/components/ChatPrompt.js +70 -67
- package/dist/components/ChatPrompt.js.map +1 -1
- package/dist/components/CodeBlockRenderer.cjs +46 -46
- package/dist/components/CodeBlockRenderer.cjs.map +1 -1
- package/dist/components/CodeBlockRenderer.js +48 -48
- package/dist/components/CodeBlockRenderer.js.map +1 -1
- package/dist/components/DataPreviewSection.cjs +187 -180
- package/dist/components/DataPreviewSection.cjs.map +1 -1
- package/dist/components/DataPreviewSection.js +188 -181
- package/dist/components/DataPreviewSection.js.map +1 -1
- package/dist/components/DegradedFallback.cjs +23 -26
- package/dist/components/DegradedFallback.cjs.map +1 -1
- package/dist/components/DegradedFallback.js +24 -27
- package/dist/components/DegradedFallback.js.map +1 -1
- package/dist/components/DraggableGridItem.cjs +32 -38
- package/dist/components/DraggableGridItem.cjs.map +1 -1
- package/dist/components/DraggableGridItem.js +33 -39
- package/dist/components/DraggableGridItem.js.map +1 -1
- package/dist/components/EditableUIResourceRenderer.cjs +115 -122
- package/dist/components/EditableUIResourceRenderer.cjs.map +1 -1
- package/dist/components/EditableUIResourceRenderer.js +116 -123
- package/dist/components/EditableUIResourceRenderer.js.map +1 -1
- package/dist/components/ExpandableWrapper.cjs +51 -52
- package/dist/components/ExpandableWrapper.cjs.map +1 -1
- package/dist/components/ExpandableWrapper.js +53 -54
- package/dist/components/ExpandableWrapper.js.map +1 -1
- package/dist/components/FeedbackInline.cjs +25 -26
- package/dist/components/FeedbackInline.cjs.map +1 -1
- package/dist/components/FeedbackInline.js +27 -28
- package/dist/components/FeedbackInline.js.map +1 -1
- package/dist/components/FooterRenderer.cjs +97 -89
- package/dist/components/FooterRenderer.cjs.map +1 -1
- package/dist/components/FooterRenderer.js +99 -91
- package/dist/components/FooterRenderer.js.map +1 -1
- package/dist/components/FormFieldRenderer.cjs +632 -599
- package/dist/components/FormFieldRenderer.cjs.map +1 -1
- package/dist/components/FormFieldRenderer.js +634 -601
- package/dist/components/FormFieldRenderer.js.map +1 -1
- package/dist/components/FormRenderer.cjs +100 -93
- package/dist/components/FormRenderer.cjs.map +1 -1
- package/dist/components/FormRenderer.js +100 -93
- package/dist/components/FormRenderer.js.map +1 -1
- package/dist/components/GenerativeUIErrorBoundary.cjs +34 -30
- package/dist/components/GenerativeUIErrorBoundary.cjs.map +1 -1
- package/dist/components/GenerativeUIErrorBoundary.js +34 -30
- package/dist/components/GenerativeUIErrorBoundary.js.map +1 -1
- package/dist/components/GhostText.cjs +52 -52
- package/dist/components/GhostText.cjs.map +1 -1
- package/dist/components/GhostText.js +53 -53
- package/dist/components/GhostText.js.map +1 -1
- package/dist/components/GraphRenderer.cjs +134 -140
- package/dist/components/GraphRenderer.cjs.map +1 -1
- package/dist/components/GraphRenderer.js +135 -141
- package/dist/components/GraphRenderer.js.map +1 -1
- package/dist/components/IframeFallbackLink.cjs +5 -6
- package/dist/components/IframeFallbackLink.cjs.map +1 -1
- package/dist/components/IframeFallbackLink.js +7 -8
- package/dist/components/IframeFallbackLink.js.map +1 -1
- package/dist/components/ImageGalleryRenderer.cjs +51 -49
- package/dist/components/ImageGalleryRenderer.cjs.map +1 -1
- package/dist/components/ImageGalleryRenderer.js +52 -50
- package/dist/components/ImageGalleryRenderer.js.map +1 -1
- package/dist/components/LightboxOverlay.cjs +127 -122
- package/dist/components/LightboxOverlay.cjs.map +1 -1
- package/dist/components/LightboxOverlay.js +129 -124
- package/dist/components/LightboxOverlay.js.map +1 -1
- package/dist/components/MapRenderer.cjs +54 -52
- package/dist/components/MapRenderer.cjs.map +1 -1
- package/dist/components/MapRenderer.js +55 -53
- package/dist/components/MapRenderer.js.map +1 -1
- package/dist/components/ModalRenderer.cjs +90 -87
- package/dist/components/ModalRenderer.cjs.map +1 -1
- package/dist/components/ModalRenderer.js +92 -89
- package/dist/components/ModalRenderer.js.map +1 -1
- package/dist/components/PortalDropdownMenu.cjs +28 -31
- package/dist/components/PortalDropdownMenu.cjs.map +1 -1
- package/dist/components/PortalDropdownMenu.js +30 -33
- package/dist/components/PortalDropdownMenu.js.map +1 -1
- package/dist/components/PresentationFeedback.cjs +133 -124
- package/dist/components/PresentationFeedback.cjs.map +1 -1
- package/dist/components/PresentationFeedback.js +135 -126
- package/dist/components/PresentationFeedback.js.map +1 -1
- package/dist/components/RenderContext.cjs +0 -1
- package/dist/components/RenderContext.cjs.map +1 -1
- package/dist/components/RenderContext.js +0 -1
- package/dist/components/RenderContext.js.map +1 -1
- package/dist/components/ScratchpadPanel.cjs +1487 -1443
- package/dist/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/components/ScratchpadPanel.js +1488 -1444
- package/dist/components/ScratchpadPanel.js.map +1 -1
- package/dist/components/SplitStepper.cjs +43 -39
- package/dist/components/SplitStepper.cjs.map +1 -1
- package/dist/components/SplitStepper.js +44 -40
- package/dist/components/SplitStepper.js.map +1 -1
- package/dist/components/StreamingUIRenderer.cjs +209 -203
- package/dist/components/StreamingUIRenderer.cjs.map +1 -1
- package/dist/components/StreamingUIRenderer.js +210 -204
- package/dist/components/StreamingUIRenderer.js.map +1 -1
- package/dist/components/UIResourceRenderer.cjs +994 -984
- package/dist/components/UIResourceRenderer.cjs.map +1 -1
- package/dist/components/UIResourceRenderer.js +995 -985
- package/dist/components/UIResourceRenderer.js.map +1 -1
- package/dist/components/VideoRenderer.cjs +96 -91
- package/dist/components/VideoRenderer.cjs.map +1 -1
- package/dist/components/VideoRenderer.js +98 -93
- package/dist/components/VideoRenderer.js.map +1 -1
- package/dist/server/components/ActionGroupRenderer.cjs +51 -106
- package/dist/server/components/ActionGroupRenderer.cjs.map +1 -1
- package/dist/server/components/ActionGroupRenderer.js +52 -107
- package/dist/server/components/ActionGroupRenderer.js.map +1 -1
- package/dist/server/components/AgentCard.cjs +53 -102
- package/dist/server/components/AgentCard.cjs.map +1 -1
- package/dist/server/components/AgentCard.js +54 -103
- package/dist/server/components/AgentCard.js.map +1 -1
- package/dist/server/components/AgentHandoff.cjs +18 -44
- package/dist/server/components/AgentHandoff.cjs.map +1 -1
- package/dist/server/components/AgentHandoff.js +19 -45
- package/dist/server/components/AgentHandoff.js.map +1 -1
- package/dist/server/components/AutocompleteDropdown.cjs +144 -263
- package/dist/server/components/AutocompleteDropdown.cjs.map +1 -1
- package/dist/server/components/AutocompleteDropdown.js +144 -263
- package/dist/server/components/AutocompleteDropdown.js.map +1 -1
- package/dist/server/components/AutocompleteFormField.cjs +168 -353
- package/dist/server/components/AutocompleteFormField.cjs.map +1 -1
- package/dist/server/components/AutocompleteFormField.js +169 -354
- package/dist/server/components/AutocompleteFormField.js.map +1 -1
- package/dist/server/components/BriefingDiff.cjs +139 -289
- package/dist/server/components/BriefingDiff.cjs.map +1 -1
- package/dist/server/components/BriefingDiff.js +139 -289
- package/dist/server/components/BriefingDiff.js.map +1 -1
- package/dist/server/components/ChartJSRenderer.cjs +290 -536
- package/dist/server/components/ChartJSRenderer.cjs.map +1 -1
- package/dist/server/components/ChartJSRenderer.js +290 -536
- package/dist/server/components/ChartJSRenderer.js.map +1 -1
- package/dist/server/components/ChatPrompt.cjs +102 -197
- package/dist/server/components/ChatPrompt.cjs.map +1 -1
- package/dist/server/components/ChatPrompt.js +102 -197
- package/dist/server/components/ChatPrompt.js.map +1 -1
- package/dist/server/components/CodeBlockRenderer.cjs +62 -101
- package/dist/server/components/CodeBlockRenderer.cjs.map +1 -1
- package/dist/server/components/CodeBlockRenderer.js +64 -103
- package/dist/server/components/CodeBlockRenderer.js.map +1 -1
- package/dist/server/components/DataPreviewSection.cjs +161 -298
- package/dist/server/components/DataPreviewSection.cjs.map +1 -1
- package/dist/server/components/DataPreviewSection.js +162 -299
- package/dist/server/components/DataPreviewSection.js.map +1 -1
- package/dist/server/components/DegradedFallback.cjs +65 -125
- package/dist/server/components/DegradedFallback.cjs.map +1 -1
- package/dist/server/components/DegradedFallback.js +66 -126
- package/dist/server/components/DegradedFallback.js.map +1 -1
- package/dist/server/components/DraggableGridItem.cjs +64 -115
- package/dist/server/components/DraggableGridItem.cjs.map +1 -1
- package/dist/server/components/DraggableGridItem.js +65 -116
- package/dist/server/components/DraggableGridItem.js.map +1 -1
- package/dist/server/components/EditableUIResourceRenderer.cjs +119 -142
- package/dist/server/components/EditableUIResourceRenderer.cjs.map +1 -1
- package/dist/server/components/EditableUIResourceRenderer.js +120 -143
- package/dist/server/components/EditableUIResourceRenderer.js.map +1 -1
- package/dist/server/components/ExpandableWrapper.cjs +49 -92
- package/dist/server/components/ExpandableWrapper.cjs.map +1 -1
- package/dist/server/components/ExpandableWrapper.js +51 -94
- package/dist/server/components/ExpandableWrapper.js.map +1 -1
- package/dist/server/components/FeedbackInline.cjs +28 -60
- package/dist/server/components/FeedbackInline.cjs.map +1 -1
- package/dist/server/components/FeedbackInline.js +29 -61
- package/dist/server/components/FeedbackInline.js.map +1 -1
- package/dist/server/components/FooterRenderer.cjs +73 -146
- package/dist/server/components/FooterRenderer.cjs.map +1 -1
- package/dist/server/components/FooterRenderer.js +75 -148
- package/dist/server/components/FooterRenderer.js.map +1 -1
- package/dist/server/components/FormFieldRenderer.cjs +806 -1200
- package/dist/server/components/FormFieldRenderer.cjs.map +1 -1
- package/dist/server/components/FormFieldRenderer.js +808 -1202
- package/dist/server/components/FormFieldRenderer.js.map +1 -1
- package/dist/server/components/FormRenderer.cjs +112 -179
- package/dist/server/components/FormRenderer.cjs.map +1 -1
- package/dist/server/components/FormRenderer.js +112 -179
- package/dist/server/components/FormRenderer.js.map +1 -1
- package/dist/server/components/GenerativeUIErrorBoundary.cjs +63 -92
- package/dist/server/components/GenerativeUIErrorBoundary.cjs.map +1 -1
- package/dist/server/components/GenerativeUIErrorBoundary.js +63 -92
- package/dist/server/components/GenerativeUIErrorBoundary.js.map +1 -1
- package/dist/server/components/GhostText.cjs +76 -125
- package/dist/server/components/GhostText.cjs.map +1 -1
- package/dist/server/components/GhostText.js +77 -126
- package/dist/server/components/GhostText.js.map +1 -1
- package/dist/server/components/GraphRenderer.cjs +99 -170
- package/dist/server/components/GraphRenderer.cjs.map +1 -1
- package/dist/server/components/GraphRenderer.js +100 -171
- package/dist/server/components/GraphRenderer.js.map +1 -1
- package/dist/server/components/IframeFallbackLink.cjs +10 -37
- package/dist/server/components/IframeFallbackLink.cjs.map +1 -1
- package/dist/server/components/IframeFallbackLink.js +12 -39
- package/dist/server/components/IframeFallbackLink.js.map +1 -1
- package/dist/server/components/ImageGalleryRenderer.cjs +81 -129
- package/dist/server/components/ImageGalleryRenderer.cjs.map +1 -1
- package/dist/server/components/ImageGalleryRenderer.js +82 -130
- package/dist/server/components/ImageGalleryRenderer.js.map +1 -1
- package/dist/server/components/LightboxOverlay.cjs +86 -180
- package/dist/server/components/LightboxOverlay.cjs.map +1 -1
- package/dist/server/components/LightboxOverlay.js +88 -182
- package/dist/server/components/LightboxOverlay.js.map +1 -1
- package/dist/server/components/MapRenderer.cjs +78 -121
- package/dist/server/components/MapRenderer.cjs.map +1 -1
- package/dist/server/components/MapRenderer.js +79 -122
- package/dist/server/components/MapRenderer.js.map +1 -1
- package/dist/server/components/ModalRenderer.cjs +72 -138
- package/dist/server/components/ModalRenderer.cjs.map +1 -1
- package/dist/server/components/ModalRenderer.js +74 -140
- package/dist/server/components/ModalRenderer.js.map +1 -1
- package/dist/server/components/PortalDropdownMenu.cjs +11 -14
- package/dist/server/components/PortalDropdownMenu.cjs.map +1 -1
- package/dist/server/components/PortalDropdownMenu.js +13 -16
- package/dist/server/components/PortalDropdownMenu.js.map +1 -1
- package/dist/server/components/PresentationFeedback.cjs +94 -173
- package/dist/server/components/PresentationFeedback.cjs.map +1 -1
- package/dist/server/components/PresentationFeedback.js +96 -175
- package/dist/server/components/PresentationFeedback.js.map +1 -1
- package/dist/server/components/ScratchpadPanel.cjs +1873 -3070
- package/dist/server/components/ScratchpadPanel.cjs.map +1 -1
- package/dist/server/components/ScratchpadPanel.js +1873 -3070
- package/dist/server/components/ScratchpadPanel.js.map +1 -1
- package/dist/server/components/SplitStepper.cjs +48 -90
- package/dist/server/components/SplitStepper.cjs.map +1 -1
- package/dist/server/components/SplitStepper.js +49 -91
- package/dist/server/components/SplitStepper.js.map +1 -1
- package/dist/server/components/StreamingUIRenderer.cjs +180 -344
- package/dist/server/components/StreamingUIRenderer.cjs.map +1 -1
- package/dist/server/components/StreamingUIRenderer.js +181 -345
- package/dist/server/components/StreamingUIRenderer.js.map +1 -1
- package/dist/server/components/UIResourceRenderer.cjs +1378 -2070
- package/dist/server/components/UIResourceRenderer.cjs.map +1 -1
- package/dist/server/components/UIResourceRenderer.js +1379 -2071
- package/dist/server/components/UIResourceRenderer.js.map +1 -1
- package/dist/server/components/VideoRenderer.cjs +95 -173
- package/dist/server/components/VideoRenderer.cjs.map +1 -1
- package/dist/server/components/VideoRenderer.js +97 -175
- package/dist/server/components/VideoRenderer.js.map +1 -1
- package/docs/SOLID2-PREVIEW.md +6 -1
- package/docs/SOLID2-STABLE-QUALIFICATION-2026-11-18.md +94 -0
- package/docs/SOLID2-STABLE-QUALIFICATION-2026-11-27.md +92 -0
- package/package.json +11 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionGroupRenderer.js","names":["{props.action.icon}","props.action.icon","<span class=\"text-current\">{props.action.icon}</span>","isExecuting() && isExecutable()","<span class=\"animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full\" />","props.action.icon && !(isExecuting() && isExecutable())","<a\n href={safeUrl(props.action.url ?? '') ?? '#'}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n class={`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 ${variantClass()} ${sizeClass()} ${\n isDisabled() ? 'opacity-50 cursor-not-allowed pointer-events-none' : ''\n }`}\n >\n <Show when={props.action.icon}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>\n {props.action.label}\n </a>","href={safeUrl(props.action.url ?? '') ?? '#'}","safeUrl(props.action.url ?? '') ?? '#'","<Show when={props.action.icon}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>","{props.action.label}","props.action.label","<button\n type=\"button\"\n onClick={handleClick}\n disabled={isDisabled()}\n class={`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 ${variantClass()} ${sizeClass()} ${\n isDisabled() ? 'opacity-50 cursor-not-allowed' : ''\n }`}\n >\n <Show when={isExecuting() && isExecutable()}>\n <span class=\"animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full\" />\n </Show>\n <Show when={props.action.icon && !(isExecuting() && isExecutable())}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>\n {props.action.label}\n </button>","disabled={isDisabled()}","isDisabled()","<Show when={isExecuting() && isExecutable()}>\n <span class=\"animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full\" />\n </Show>","<Show when={props.action.icon && !(isExecuting() && isExecutable())}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>","<div\n class={`${layoutClass()} ${gapClass()} ${params()?.fullWidth ? 'w-full' : ''}`}\n role=\"group\"\n aria-label={params()?.label || strings.actionGroupLabel}\n >\n <For each={params()?.actions || []}>\n {(action, index) => <ActionButton action={action} index={index()} />}\n </For>\n </div>","aria-label={params()?.label || strings.actionGroupLabel}","params()?.label || strings.actionGroupLabel","<For each={params()?.actions || []}>\n {(action, index) => <ActionButton action={action} index={index()} />}\n </For>","_$ssrHydrationKey","_$scope","_$escape","_$ssr","_$memo","_$ssrGroup","_$ssrAttribute","_$ssrClassName"],"sources":["../../../src/components/ActionGroupRenderer.tsx"],"sourcesContent":["/**\n * ActionGroupRenderer - Group of actions with layout options\n * Sprint 3: UX Improvements\n */\n\nimport { Component, For, Show } from 'solid-js'\nimport type { UIComponent, ActionGroupParams, ActionComponentParams } from '../types'\nimport { useAction } from '../hooks/useAction'\nimport { safeUrl } from '../utils/safe-url'\nimport { useMCPUIStrings } from '../context/MCPUIStringsContext'\n\nexport interface ActionGroupRendererProps {\n /**\n * UIComponent with action-group params (for declarative use)\n */\n component?: UIComponent\n\n /**\n * Direct action group params (alternative to component)\n */\n params?: ActionGroupParams\n}\n\n/**\n * Render a single action button with variants and click handling\n */\nconst ActionButton: Component<{\n action: ActionComponentParams\n index: number\n}> = (props) => {\n const { execute, executeAction, isExecuting } = useAction()\n\n // tool-call and submit both go through the host executor — they show a\n // loading state and gate disabled while running. link does neither.\n const isExecutable = () =>\n props.action.action === 'tool-call' || props.action.action === 'submit'\n\n const handleClick = async (e: MouseEvent) => {\n if (props.action.disabled) return\n\n if (props.action.action === 'tool-call' && props.action.toolName) {\n e.preventDefault()\n await execute(props.action.toolName, props.action.params || {})\n } else if (props.action.action === 'submit') {\n // submit is NOT a tool call — route it through the executor with the\n // `action: 'submit'` kind preserved so the host can POST to\n // params.submit_url etc. Works without a surrounding <form>.\n e.preventDefault()\n await executeAction({\n action: 'submit',\n toolName: props.action.toolName || 'submit',\n params: props.action.params || {},\n })\n } else if (props.action.action === 'link' && props.action.url) {\n window.open(props.action.url, '_blank', 'noopener,noreferrer')\n }\n }\n\n const isDisabled = () =>\n props.action.disabled || (isExecutable() && isExecuting())\n\n const variantClass = () => {\n switch (props.action.variant) {\n case 'primary':\n return 'bg-[color:var(--mcp-ui-accent,var(--color-blue-600))] text-[color:var(--mcp-ui-accent-fg,var(--color-white,#fff))] hover:bg-[color:var(--mcp-ui-accent-hover,var(--color-blue-700))] focus:ring-[color:var(--mcp-ui-focus,var(--color-blue-500))]'\n case 'secondary':\n return 'bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-200,#e5e7eb))] text-[color:var(--mcp-ui-fg,var(--color-gray-800,#1f2937))] hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-300,#d1d5db))] dark:bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-white,#fff))] dark:hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-600,#4b5563))] focus:ring-[color:var(--mcp-ui-focus,var(--color-gray-500,#6b7280))]'\n case 'outline':\n return 'border border-[color:var(--mcp-ui-border,var(--color-gray-300,#d1d5db))] dark:border-[color:var(--mcp-ui-border,var(--color-gray-600,#4b5563))] text-[color:var(--mcp-ui-fg,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-gray-300,#d1d5db))] hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-50,#f9fafb))] dark:hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-700,#374151))] focus:ring-[color:var(--mcp-ui-focus,var(--color-gray-500,#6b7280))]'\n case 'ghost':\n return 'text-[color:var(--mcp-ui-fg,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-gray-300,#d1d5db))] hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-100,#f3f4f6))] dark:hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-700,#374151))] focus:ring-[color:var(--mcp-ui-focus,var(--color-gray-500,#6b7280))]'\n case 'danger':\n return 'bg-[color:var(--mcp-ui-danger,var(--color-red-600))] text-[color:var(--mcp-ui-accent-fg,var(--color-white,#fff))] hover:bg-[color:var(--mcp-ui-danger-hover,var(--color-red-700))] focus:ring-[color:var(--mcp-ui-focus,var(--color-red-500))]'\n default:\n return 'bg-[color:var(--mcp-ui-accent,var(--color-blue-600))] text-[color:var(--mcp-ui-accent-fg,var(--color-white,#fff))] hover:bg-[color:var(--mcp-ui-accent-hover,var(--color-blue-700))] focus:ring-[color:var(--mcp-ui-focus,var(--color-blue-500))]'\n }\n }\n\n const sizeClass = () => {\n switch (props.action.size) {\n case 'sm':\n return 'px-2 py-1 text-xs'\n case 'lg':\n return 'px-6 py-3 text-base'\n default:\n return 'px-4 py-2 text-sm'\n }\n }\n\n // Render as link if it's a link action\n if (props.action.type === 'link' || (props.action.action === 'link' && props.action.url)) {\n return (\n <a\n href={safeUrl(props.action.url ?? '') ?? '#'}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n class={`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 ${variantClass()} ${sizeClass()} ${\n isDisabled() ? 'opacity-50 cursor-not-allowed pointer-events-none' : ''\n }`}\n >\n <Show when={props.action.icon}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>\n {props.action.label}\n </a>\n )\n }\n\n return (\n <button\n type=\"button\"\n onClick={handleClick}\n disabled={isDisabled()}\n class={`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 ${variantClass()} ${sizeClass()} ${\n isDisabled() ? 'opacity-50 cursor-not-allowed' : ''\n }`}\n >\n <Show when={isExecuting() && isExecutable()}>\n <span class=\"animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full\" />\n </Show>\n <Show when={props.action.icon && !(isExecuting() && isExecutable())}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>\n {props.action.label}\n </button>\n )\n}\n\n/**\n * Action group component for rendering multiple actions with consistent layout\n *\n * @example\n * ```tsx\n * const actionGroup: UIComponent = {\n * id: 'form-actions',\n * type: 'action-group',\n * position: { colStart: 1, colSpan: 12 },\n * params: {\n * layout: 'end',\n * gap: 'md',\n * actions: [\n * { label: 'Cancel', variant: 'outline', action: 'link', url: '/back' },\n * { label: 'Save', variant: 'primary', action: 'tool-call', toolName: 'save' },\n * ],\n * },\n * }\n * <ActionGroupRenderer component={actionGroup} />\n * ```\n */\nexport const ActionGroupRenderer: Component<ActionGroupRendererProps> = (props) => {\n const strings = useMCPUIStrings()\n const params = () => props.params || (props.component?.params as ActionGroupParams) || { actions: [] }\n\n const layoutClass = () => {\n switch (params()?.layout) {\n case 'vertical':\n return 'flex flex-col'\n case 'space-between':\n return 'flex justify-between'\n case 'end':\n return 'flex justify-end'\n case 'center':\n return 'flex justify-center'\n default: // horizontal\n return 'flex'\n }\n }\n\n const gapClass = () => {\n switch (params()?.gap) {\n case 'none':\n return 'gap-0'\n case 'sm':\n return 'gap-1'\n case 'lg':\n return 'gap-4'\n default: // md\n return 'gap-2'\n }\n }\n\n return (\n <div\n class={`${layoutClass()} ${gapClass()} ${params()?.fullWidth ? 'w-full' : ''}`}\n role=\"group\"\n aria-label={params()?.label || strings.actionGroupLabel}\n >\n <For each={params()?.actions || []}>\n {(action, index) => <ActionButton action={action} index={index()} />}\n </For>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoGc,O,SAAM,CAAM,OAAO;;;;;;;;E,WACvBqB,gBAAoD,G,OAAzBrB,YAAAA;GAACC,OAAAA,OAAAA,MAAM,OAAO,IAAG;EAAC,CAAA;EAA7C,OAAAC,IAAAA,QAAAA,MAA2BF,IAAyB;;;;;;;;;;;;;;;EAgBlD,OAAMG,WAAAA;GAAY,OAAA,CAAA,CAAA,YAAA;EAAkB,CAAA,CAAC,CAAD,IAAb,aAAa,IAA9B,YAAY;;;;;;;E,YACtBkB,gBAA8F;EAA9F,OAAAjB,IAAAA,SAAAA,KAA8F;;;;;;;;;;;;;;;;;EAE1F,OAAMC,WAAAA;GAAM,OAAA,CAAA,CAAA,MAAA,OAAO;EAAyC,CAAA,CAAC,CAAD,IAAjC,EAAE,YAAY,KAAK,aAAa,KAArD,MAAM,OAAO;;;;;;;;E,YACvBgB,gBAAoD,G,QAAzBrB,YAAAA;GAACC,OAAAA,OAAAA,MAAM,OAAO,IAAG;EAAC,CAAA;EAA7C,OAAAC,IAAAA,QAAAA,OAA2BF,KAAyB;;;;;;;;;;;;;;;;EAmEF,OAAO,MAAM;;;;;;;;;;;;;;EAD5D,OAAM,OAAO,CAAC,EAAE,WAAW,CAAC;;;;;;;;;;;;;;AAjKvC,IAAM,gBAGA,UAAU;CACd,MAAM,EAAE,SAAS,eAAe,gBAAgB,UAAU;CAI1D,MAAM,qBACJ,MAAM,OAAO,WAAW,eAAe,MAAM,OAAO,WAAW;CAuBjE,MAAM,mBACJ,MAAM,OAAO,YAAa,aAAa,KAAK,YAAY;CAE1D,MAAM,qBAAqB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version":3,"file":"ActionGroupRenderer.js","names":["<a\n href={safeUrl(props.action.url ?? '') ?? '#'}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n class={`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 ${variantClass()} ${sizeClass()} ${\n isDisabled() ? 'opacity-50 cursor-not-allowed pointer-events-none' : ''\n }`}\n >\n <Show when={props.action.icon}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>\n {props.action.label}\n </a>","href={safeUrl(props.action.url ?? '') ?? '#'}","safeUrl(props.action.url ?? '') ?? '#'","<Show when={props.action.icon}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>","{props.action.icon}","props.action.icon","<span class=\"text-current\">{props.action.icon}</span>","{props.action.label}","props.action.label","<button\n type=\"button\"\n onClick={handleClick}\n disabled={isDisabled()}\n class={`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 ${variantClass()} ${sizeClass()} ${\n isDisabled() ? 'opacity-50 cursor-not-allowed' : ''\n }`}\n >\n <Show when={isExecuting() && isExecutable()}>\n <span class=\"animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full\" />\n </Show>\n <Show when={props.action.icon && !(isExecuting() && isExecutable())}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>\n {props.action.label}\n </button>","disabled={isDisabled()}","isDisabled()","<Show when={isExecuting() && isExecutable()}>\n <span class=\"animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full\" />\n </Show>","<span class=\"animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full\" />","<Show when={props.action.icon && !(isExecuting() && isExecutable())}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>","<div\n class={`${layoutClass()} ${gapClass()} ${params()?.fullWidth ? 'w-full' : ''}`}\n role=\"group\"\n aria-label={params()?.label || strings.actionGroupLabel}\n >\n <For each={params()?.actions || []}>\n {(action, index) => <ActionButton action={action} index={index()} />}\n </For>\n </div>","aria-label={params()?.label || strings.actionGroupLabel}","params()?.label || strings.actionGroupLabel","<For each={params()?.actions || []}>\n {(action, index) => <ActionButton action={action} index={index()} />}\n </For>","_$ssrHydrationKey","_$ssrGroup","_$ssrAttribute","_$escape","_$ssrClassName","_$scope","_$memo","_$ssr"],"sources":["../../../src/components/ActionGroupRenderer.tsx"],"sourcesContent":["/**\n * ActionGroupRenderer - Group of actions with layout options\n * Sprint 3: UX Improvements\n */\n\nimport { Component, For, Show } from 'solid-js'\nimport type { UIComponent, ActionGroupParams, ActionComponentParams } from '../types'\nimport { useAction } from '../hooks/useAction'\nimport { safeUrl } from '../utils/safe-url'\nimport { useMCPUIStrings } from '../context/MCPUIStringsContext'\n\nexport interface ActionGroupRendererProps {\n /**\n * UIComponent with action-group params (for declarative use)\n */\n component?: UIComponent\n\n /**\n * Direct action group params (alternative to component)\n */\n params?: ActionGroupParams\n}\n\n/**\n * Render a single action button with variants and click handling\n */\nconst ActionButton: Component<{\n action: ActionComponentParams\n index: number\n}> = (props) => {\n const { execute, executeAction, isExecuting } = useAction()\n\n // tool-call and submit both go through the host executor — they show a\n // loading state and gate disabled while running. link does neither.\n const isExecutable = () =>\n props.action.action === 'tool-call' || props.action.action === 'submit'\n\n const handleClick = async (e: MouseEvent) => {\n if (props.action.disabled) return\n\n if (props.action.action === 'tool-call' && props.action.toolName) {\n e.preventDefault()\n await execute(props.action.toolName, props.action.params || {})\n } else if (props.action.action === 'submit') {\n // submit is NOT a tool call — route it through the executor with the\n // `action: 'submit'` kind preserved so the host can POST to\n // params.submit_url etc. Works without a surrounding <form>.\n e.preventDefault()\n await executeAction({\n action: 'submit',\n toolName: props.action.toolName || 'submit',\n params: props.action.params || {},\n })\n } else if (props.action.action === 'link' && props.action.url) {\n window.open(props.action.url, '_blank', 'noopener,noreferrer')\n }\n }\n\n const isDisabled = () =>\n props.action.disabled || (isExecutable() && isExecuting())\n\n const variantClass = () => {\n switch (props.action.variant) {\n case 'primary':\n return 'bg-[color:var(--mcp-ui-accent,var(--color-blue-600))] text-[color:var(--mcp-ui-accent-fg,var(--color-white,#fff))] hover:bg-[color:var(--mcp-ui-accent-hover,var(--color-blue-700))] focus:ring-[color:var(--mcp-ui-focus,var(--color-blue-500))]'\n case 'secondary':\n return 'bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-200,#e5e7eb))] text-[color:var(--mcp-ui-fg,var(--color-gray-800,#1f2937))] hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-300,#d1d5db))] dark:bg-[color:var(--mcp-ui-surface-muted,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-white,#fff))] dark:hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-600,#4b5563))] focus:ring-[color:var(--mcp-ui-focus,var(--color-gray-500,#6b7280))]'\n case 'outline':\n return 'border border-[color:var(--mcp-ui-border,var(--color-gray-300,#d1d5db))] dark:border-[color:var(--mcp-ui-border,var(--color-gray-600,#4b5563))] text-[color:var(--mcp-ui-fg,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-gray-300,#d1d5db))] hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-50,#f9fafb))] dark:hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-700,#374151))] focus:ring-[color:var(--mcp-ui-focus,var(--color-gray-500,#6b7280))]'\n case 'ghost':\n return 'text-[color:var(--mcp-ui-fg,var(--color-gray-700,#374151))] dark:text-[color:var(--mcp-ui-fg,var(--color-gray-300,#d1d5db))] hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-100,#f3f4f6))] dark:hover:bg-[color:var(--mcp-ui-surface-hover,var(--color-gray-700,#374151))] focus:ring-[color:var(--mcp-ui-focus,var(--color-gray-500,#6b7280))]'\n case 'danger':\n return 'bg-[color:var(--mcp-ui-danger,var(--color-red-600))] text-[color:var(--mcp-ui-accent-fg,var(--color-white,#fff))] hover:bg-[color:var(--mcp-ui-danger-hover,var(--color-red-700))] focus:ring-[color:var(--mcp-ui-focus,var(--color-red-500))]'\n default:\n return 'bg-[color:var(--mcp-ui-accent,var(--color-blue-600))] text-[color:var(--mcp-ui-accent-fg,var(--color-white,#fff))] hover:bg-[color:var(--mcp-ui-accent-hover,var(--color-blue-700))] focus:ring-[color:var(--mcp-ui-focus,var(--color-blue-500))]'\n }\n }\n\n const sizeClass = () => {\n switch (props.action.size) {\n case 'sm':\n return 'px-2 py-1 text-xs'\n case 'lg':\n return 'px-6 py-3 text-base'\n default:\n return 'px-4 py-2 text-sm'\n }\n }\n\n // Render as link if it's a link action\n if (props.action.type === 'link' || (props.action.action === 'link' && props.action.url)) {\n return (\n <a\n href={safeUrl(props.action.url ?? '') ?? '#'}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n class={`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 ${variantClass()} ${sizeClass()} ${\n isDisabled() ? 'opacity-50 cursor-not-allowed pointer-events-none' : ''\n }`}\n >\n <Show when={props.action.icon}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>\n {props.action.label}\n </a>\n )\n }\n\n return (\n <button\n type=\"button\"\n onClick={handleClick}\n disabled={isDisabled()}\n class={`inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 ${variantClass()} ${sizeClass()} ${\n isDisabled() ? 'opacity-50 cursor-not-allowed' : ''\n }`}\n >\n <Show when={isExecuting() && isExecutable()}>\n <span class=\"animate-spin h-4 w-4 border-2 border-current border-t-transparent rounded-full\" />\n </Show>\n <Show when={props.action.icon && !(isExecuting() && isExecutable())}>\n <span class=\"text-current\">{props.action.icon}</span>\n </Show>\n {props.action.label}\n </button>\n )\n}\n\n/**\n * Action group component for rendering multiple actions with consistent layout\n *\n * @example\n * ```tsx\n * const actionGroup: UIComponent = {\n * id: 'form-actions',\n * type: 'action-group',\n * position: { colStart: 1, colSpan: 12 },\n * params: {\n * layout: 'end',\n * gap: 'md',\n * actions: [\n * { label: 'Cancel', variant: 'outline', action: 'link', url: '/back' },\n * { label: 'Save', variant: 'primary', action: 'tool-call', toolName: 'save' },\n * ],\n * },\n * }\n * <ActionGroupRenderer component={actionGroup} />\n * ```\n */\nexport const ActionGroupRenderer: Component<ActionGroupRendererProps> = (props) => {\n const strings = useMCPUIStrings()\n const params = () => props.params || (props.component?.params as ActionGroupParams) || { actions: [] }\n\n const layoutClass = () => {\n switch (params()?.layout) {\n case 'vertical':\n return 'flex flex-col'\n case 'space-between':\n return 'flex justify-between'\n case 'end':\n return 'flex justify-end'\n case 'center':\n return 'flex justify-center'\n default: // horizontal\n return 'flex'\n }\n }\n\n const gapClass = () => {\n switch (params()?.gap) {\n case 'none':\n return 'gap-0'\n case 'sm':\n return 'gap-1'\n case 'lg':\n return 'gap-4'\n default: // md\n return 'gap-2'\n }\n }\n\n return (\n <div\n class={`${layoutClass()} ${gapClass()} ${params()?.fullWidth ? 'w-full' : ''}`}\n role=\"group\"\n aria-label={params()?.label || strings.actionGroupLabel}\n >\n <For each={params()?.actions || []}>\n {(action, index) => <ActionButton action={action} index={index()} />}\n </For>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4L0D,OAAO,MAAM;;;;;;;;;;;;;;EAD5D,OAAM,OAAO,CAAC,EAAE,WAAW,CAAC;;;;;;;;;;;;;;AAjKvC,IAAM,gBAGA,UAAU;CACd,MAAM,EAAE,SAAS,eAAe,gBAAgB,UAAU;CAI1D,MAAM,qBACJ,MAAM,OAAO,WAAW,eAAe,MAAM,OAAO,WAAW;CAuBjE,MAAM,mBACJ,MAAM,OAAO,YAAa,aAAa,KAAK,YAAY;CAE1D,MAAM,qBAAqB;EACzB,QAAQ,MAAM,OAAO,SAArB;GACE,KAAK,WACH,OAAO;GACT,KAAK,aACH,OAAO;GACT,KAAK,WACH,OAAO;GACT,KAAK,SAC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AA,eAAAA;EACE,OAAA,GAAA,UAAA,SAAA,OAAA,KAAAM,aAAA,SAAAE,aAAA,KAA8E,CAAA,EAAA,CAAvE,GAAG,YAAY,EAAE,GAAG,SAAS,EAAE,GAAG,OAAO,CAAC,EAAE,YAAY,WAAW,IAAI,GAE9EP,aAAAA,cAAYC,OAAAA,OAAO,CAAC,EAAE,SAAS,QAAQ,kBAA3B,IAA0C,CAAC,CAAA;CAHzDF,GAAAA,CAAAA,GAAAA,QAKEG,OAAAA,IAAAA,IAAAA,KAAW,SACP,QAAQ,UAAA,aAAU,IAAA,IAAqC,OAAf,MAAyB,CAAA,CAChE,CAAA,CAAA;CART,OACEH,IAAAA,SAAAA,OAAAA,MAAAA,MAKEG,KAGG;AAET"}
|
|
@@ -9,21 +9,6 @@ let solid_js = require("solid-js");
|
|
|
9
9
|
* @experimental
|
|
10
10
|
*/
|
|
11
11
|
var _tmpl$ = [
|
|
12
|
-
"<span",
|
|
13
|
-
" class=\"text-xs text-gray-400 dark:text-gray-500\">",
|
|
14
|
-
"</span>"
|
|
15
|
-
];
|
|
16
|
-
var _tmpl$2 = [
|
|
17
|
-
"<div",
|
|
18
|
-
" class=\"flex flex-wrap gap-1 mt-1.5\">",
|
|
19
|
-
"</div>"
|
|
20
|
-
];
|
|
21
|
-
var _tmpl$3 = [
|
|
22
|
-
"<div",
|
|
23
|
-
" class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\"><div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\"></div><!--$-->",
|
|
24
|
-
"<!--/--></div>"
|
|
25
|
-
];
|
|
26
|
-
var _tmpl$4 = [
|
|
27
12
|
"<div",
|
|
28
13
|
" class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\"><div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">",
|
|
29
14
|
"</div><div class=\"flex-1 min-w-0\"><div class=\"flex items-center gap-2\"><span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">",
|
|
@@ -35,11 +20,26 @@ var _tmpl$4 = [
|
|
|
35
20
|
"<!--/--><!--$-->",
|
|
36
21
|
"<!--/--></div></div>"
|
|
37
22
|
];
|
|
38
|
-
var _tmpl$
|
|
23
|
+
var _tmpl$2 = [
|
|
24
|
+
"<span",
|
|
25
|
+
" class=\"text-xs text-gray-400 dark:text-gray-500\">",
|
|
26
|
+
"</span>"
|
|
27
|
+
];
|
|
28
|
+
var _tmpl$3 = [
|
|
29
|
+
"<div",
|
|
30
|
+
" class=\"flex flex-wrap gap-1 mt-1.5\">",
|
|
31
|
+
"</div>"
|
|
32
|
+
];
|
|
33
|
+
var _tmpl$4 = [
|
|
39
34
|
"<span",
|
|
40
35
|
" class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">",
|
|
41
36
|
"</span>"
|
|
42
37
|
];
|
|
38
|
+
var _tmpl$5 = [
|
|
39
|
+
"<div",
|
|
40
|
+
" class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\"><div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\"></div><!--$-->",
|
|
41
|
+
"<!--/--></div>"
|
|
42
|
+
];
|
|
43
43
|
var _tmpl$6 = [
|
|
44
44
|
"<span",
|
|
45
45
|
" class=\"inline-flex items-center gap-1.5 text-xs\"><span",
|
|
@@ -51,97 +51,17 @@ var _m$ = Symbol();
|
|
|
51
51
|
var _d$ = {
|
|
52
52
|
get() {
|
|
53
53
|
const c = this[_m$];
|
|
54
|
-
return c().
|
|
55
|
-
},
|
|
56
|
-
enumerable: true,
|
|
57
|
-
configurable: true
|
|
58
|
-
};
|
|
59
|
-
var _d$2 = {
|
|
60
|
-
get() {
|
|
61
|
-
const c = this[_m$];
|
|
62
|
-
var _v$8 = (0, _solidjs_web.ssrHydrationKey)(), _v$9 = (0, _solidjs_web.scope)(() => {
|
|
63
|
-
return (0, _solidjs_web.escape)(c().model);
|
|
64
|
-
});
|
|
65
|
-
return (0, _solidjs_web.ssr)(_tmpl$, _v$8, _v$9);
|
|
54
|
+
return c().capabilities;
|
|
66
55
|
},
|
|
67
56
|
enumerable: true,
|
|
68
57
|
configurable: true
|
|
69
58
|
};
|
|
70
|
-
function _P$(_p) {
|
|
59
|
+
function _P$(_p, _p2) {
|
|
71
60
|
this[_m$] = _p;
|
|
72
|
-
Object.defineProperty(this, "
|
|
73
|
-
|
|
61
|
+
Object.defineProperty(this, "each", _d$);
|
|
62
|
+
this.children = _p2;
|
|
74
63
|
}
|
|
75
64
|
_P$.prototype = Object.prototype;
|
|
76
|
-
var _d$3 = {
|
|
77
|
-
get() {
|
|
78
|
-
const c = this[_m$];
|
|
79
|
-
return c().capabilities;
|
|
80
|
-
},
|
|
81
|
-
enumerable: true,
|
|
82
|
-
configurable: true
|
|
83
|
-
};
|
|
84
|
-
function _P$2(_p2, _p3) {
|
|
85
|
-
this[_m$] = _p2;
|
|
86
|
-
Object.defineProperty(this, "each", _d$3);
|
|
87
|
-
this.children = _p3;
|
|
88
|
-
}
|
|
89
|
-
_P$2.prototype = Object.prototype;
|
|
90
|
-
var _d$4 = {
|
|
91
|
-
get() {
|
|
92
|
-
const c = this[_m$];
|
|
93
|
-
return (0, _solidjs_web.memo)(() => {
|
|
94
|
-
return !!c().capabilities;
|
|
95
|
-
})() ? c().capabilities.length > 0 : c().capabilities;
|
|
96
|
-
},
|
|
97
|
-
enumerable: true,
|
|
98
|
-
configurable: true
|
|
99
|
-
};
|
|
100
|
-
var _d$5 = {
|
|
101
|
-
get() {
|
|
102
|
-
const c = this[_m$];
|
|
103
|
-
var _v$11 = (0, _solidjs_web.ssrHydrationKey)(), _v$12 = (0, _solidjs_web.escape)((0, solid_js.For)(new _P$2(c, (cap) => {
|
|
104
|
-
var _v$17 = (0, _solidjs_web.ssrHydrationKey)(), _v$18 = (0, _solidjs_web.escape)(cap);
|
|
105
|
-
return (0, _solidjs_web.ssr)(_tmpl$5, _v$17, _v$18);
|
|
106
|
-
})));
|
|
107
|
-
return (0, _solidjs_web.ssr)(_tmpl$2, _v$11, _v$12);
|
|
108
|
-
},
|
|
109
|
-
enumerable: true,
|
|
110
|
-
configurable: true
|
|
111
|
-
};
|
|
112
|
-
function _P$3(_p4) {
|
|
113
|
-
this[_m$] = _p4;
|
|
114
|
-
Object.defineProperty(this, "when", _d$4);
|
|
115
|
-
Object.defineProperty(this, "children", _d$5);
|
|
116
|
-
}
|
|
117
|
-
_P$3.prototype = Object.prototype;
|
|
118
|
-
var _d$6 = {
|
|
119
|
-
get() {
|
|
120
|
-
const c = this[_m$];
|
|
121
|
-
return (0, _solidjs_web.memo)(() => {
|
|
122
|
-
return !!c().currentStep;
|
|
123
|
-
})() ? c().status === "running" : c().currentStep;
|
|
124
|
-
},
|
|
125
|
-
enumerable: true,
|
|
126
|
-
configurable: true
|
|
127
|
-
};
|
|
128
|
-
var _d$7 = {
|
|
129
|
-
get() {
|
|
130
|
-
const c = this[_m$];
|
|
131
|
-
var _v$14 = (0, _solidjs_web.ssrHydrationKey)(), _v$15 = (0, _solidjs_web.scope)(() => {
|
|
132
|
-
return (0, _solidjs_web.escape)(c().currentStep.label);
|
|
133
|
-
});
|
|
134
|
-
return (0, _solidjs_web.ssr)(_tmpl$3, _v$14, _v$15);
|
|
135
|
-
},
|
|
136
|
-
enumerable: true,
|
|
137
|
-
configurable: true
|
|
138
|
-
};
|
|
139
|
-
function _P$4(_p5) {
|
|
140
|
-
this[_m$] = _p5;
|
|
141
|
-
Object.defineProperty(this, "when", _d$6);
|
|
142
|
-
Object.defineProperty(this, "children", _d$7);
|
|
143
|
-
}
|
|
144
|
-
_P$4.prototype = Object.prototype;
|
|
145
65
|
var AVATAR_MAP = {
|
|
146
66
|
scales: "⚖️",
|
|
147
67
|
chart: "📈",
|
|
@@ -197,8 +117,39 @@ function AgentCard(props) {
|
|
|
197
117
|
return [((_v$4) => _v$4 == null ? "" : (0, _solidjs_web.ssrAttribute)("class", (0, _solidjs_web.ssrClassName)(_v$4)))(`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? "animate-pulse" : ""}`), (0, _solidjs_web.ssrAttribute)("title", (0, _solidjs_web.escape)(strings[status().labelKey], true))];
|
|
198
118
|
}, 2), _v$7 = (0, _solidjs_web.scope)(() => {
|
|
199
119
|
return (0, _solidjs_web.escape)(strings[status().labelKey]);
|
|
200
|
-
}), _v$
|
|
201
|
-
|
|
120
|
+
}), _v$8 = (0, _solidjs_web.scope)((() => {
|
|
121
|
+
var _c$ = (0, _solidjs_web.memo)(() => {
|
|
122
|
+
return !!c().model;
|
|
123
|
+
});
|
|
124
|
+
return () => {
|
|
125
|
+
var _v$11, _v$12;
|
|
126
|
+
return _c$() ? (_v$11 = (0, _solidjs_web.ssrHydrationKey)(), _v$12 = (0, _solidjs_web.scope)(() => {
|
|
127
|
+
return (0, _solidjs_web.escape)(c().model);
|
|
128
|
+
}), (0, _solidjs_web.ssr)(_tmpl$2, _v$11, _v$12)) : void 0;
|
|
129
|
+
};
|
|
130
|
+
})()), _v$9 = (0, _solidjs_web.scope)((() => {
|
|
131
|
+
var _c$2 = (0, _solidjs_web.memo)(() => {
|
|
132
|
+
return !!(c().capabilities && c().capabilities.length > 0);
|
|
133
|
+
});
|
|
134
|
+
return () => {
|
|
135
|
+
var _v$13, _v$14;
|
|
136
|
+
return _c$2() ? (_v$13 = (0, _solidjs_web.ssrHydrationKey)(), _v$14 = (0, _solidjs_web.escape)((0, solid_js.For)(new _P$(c, (cap) => {
|
|
137
|
+
var _v$15 = (0, _solidjs_web.ssrHydrationKey)(), _v$16 = (0, _solidjs_web.escape)(cap);
|
|
138
|
+
return (0, _solidjs_web.ssr)(_tmpl$4, _v$15, _v$16);
|
|
139
|
+
}))), (0, _solidjs_web.ssr)(_tmpl$3, _v$13, _v$14)) : void 0;
|
|
140
|
+
};
|
|
141
|
+
})()), _v$10 = (0, _solidjs_web.scope)((() => {
|
|
142
|
+
var _c$3 = (0, _solidjs_web.memo)(() => {
|
|
143
|
+
return !!(c().currentStep && c().status === "running");
|
|
144
|
+
});
|
|
145
|
+
return () => {
|
|
146
|
+
var _v$17, _v$18;
|
|
147
|
+
return _c$3() ? (_v$17 = (0, _solidjs_web.ssrHydrationKey)(), _v$18 = (0, _solidjs_web.scope)(() => {
|
|
148
|
+
return (0, _solidjs_web.escape)(c().currentStep.label);
|
|
149
|
+
}), (0, _solidjs_web.ssr)(_tmpl$5, _v$17, _v$18)) : void 0;
|
|
150
|
+
};
|
|
151
|
+
})());
|
|
152
|
+
return (0, _solidjs_web.ssr)(_tmpl$, _v$, _v$2, _v$3, _g$, _g$, _v$7, _v$8, _v$9, _v$10);
|
|
202
153
|
}
|
|
203
154
|
function AgentStatusBadge(props) {
|
|
204
155
|
const strings = require_MCPUIStringsContext.useMCPUIStrings();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentCard.cjs","names":["{c().model}","c().model","<span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>","c().capabilities && c().capabilities!.length > 0","<For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>","cap","<span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>","{cap}","<div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>","c().currentStep && c().status === 'running'","{c().currentStep!.label}","c().currentStep!.label","<div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>","<div class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\">\n {/* Avatar */}\n <div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">\n {avatar()}\n </div>\n\n {/* Info */}\n <div class=\"flex-1 min-w-0\">\n <div class=\"flex items-center gap-2\">\n <span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">{c().name}</span>\n {/* Status dot */}\n <span class={`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} title={strings[status().labelKey]} />\n <span class=\"text-xs text-gray-500 dark:text-gray-400\">{strings[status().labelKey]}</span>\n </div>\n\n {/* Model */}\n <Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>\n\n {/* Capabilities */}\n <Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>\n\n {/* Current step */}\n <Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>\n </div>\n </div>","{avatar()}","avatar()","{c().name}","c().name","title={strings[status().labelKey]}","strings[status().labelKey]","{strings[status().labelKey]}","<Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>","<Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>","<Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>","<span class=\"inline-flex items-center gap-1.5 text-xs\">\n <span class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} />\n <span class=\"text-gray-600 dark:text-gray-300\">{props.agentName}</span>\n <span class=\"text-gray-400 dark:text-gray-500\">{strings[status().labelKey]}</span>\n </span>","{props.agentName}","props.agentName","class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`}","_$ssrHydrationKey","_$scope","_$escape","_$ssr","_$memo","For","useMCPUIStrings","_$ssrGroup","_$ssrAttribute","_$ssrClassName","Show"],"sources":["../../../src/components/AgentCard.tsx"],"sourcesContent":["/**\n * AgentCard — Agent identity + status display\n * v4.1.0: AITL sprint — shows avatar, name, status, capabilities, current step\n *\n * @experimental\n */\n\nimport { Show, For } from 'solid-js'\nimport type { AgentCardContent } from '../types/chat-bus'\nimport { useMCPUIStrings } from '../context/MCPUIStringsContext'\n\nexport interface AgentCardProps {\n content: AgentCardContent\n}\n\nconst AVATAR_MAP: Record<string, string> = {\n scales: '\\u2696\\uFE0F',\n chart: '\\uD83D\\uDCC8',\n search: '\\uD83D\\uDD0D',\n document: '\\uD83D\\uDCC4',\n brain: '\\uD83E\\uDDE0',\n shield: '\\uD83D\\uDEE1\\uFE0F',\n globe: '\\uD83C\\uDF10',\n robot: '\\uD83E\\uDD16',\n}\n\n/**\n * Status styling. The record stays module-level, but it carries a\n * `labelKey` rather than English: the label is resolved from\n * `useMCPUIStrings()` at render time so a host provider can localize it.\n */\ntype AgentStatusLabelKey =\n | 'agentStatusIdle'\n | 'agentStatusRunning'\n | 'agentStatusWaiting'\n | 'agentStatusDone'\n | 'agentStatusError'\n\nconst STATUS_CONFIG: Record<\n string,\n { labelKey: AgentStatusLabelKey; color: string; pulse: boolean }\n> = {\n idle: { labelKey: 'agentStatusIdle', color: 'bg-gray-400', pulse: false },\n running: { labelKey: 'agentStatusRunning', color: 'bg-blue-500', pulse: true },\n waiting: { labelKey: 'agentStatusWaiting', color: 'bg-amber-500', pulse: true },\n done: { labelKey: 'agentStatusDone', color: 'bg-green-500', pulse: false },\n error: { labelKey: 'agentStatusError', color: 'bg-red-500', pulse: false },\n}\n\nexport function AgentCard(props: AgentCardProps) {\n const strings = useMCPUIStrings()\n const c = () => props.content\n const status = () => STATUS_CONFIG[c().status] || STATUS_CONFIG.idle\n const avatar = () => AVATAR_MAP[c().avatar || ''] || c().avatar || '\\uD83E\\uDD16'\n\n if (typeof console !== 'undefined') {\n console.info('[MCP-UI:AgentCard] mounted', {\n agentId: c().agentId, status: c().status, capabilities: c().capabilities,\n })\n }\n\n return (\n <div class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\">\n {/* Avatar */}\n <div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">\n {avatar()}\n </div>\n\n {/* Info */}\n <div class=\"flex-1 min-w-0\">\n <div class=\"flex items-center gap-2\">\n <span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">{c().name}</span>\n {/* Status dot */}\n <span class={`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} title={strings[status().labelKey]} />\n <span class=\"text-xs text-gray-500 dark:text-gray-400\">{strings[status().labelKey]}</span>\n </div>\n\n {/* Model */}\n <Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>\n\n {/* Capabilities */}\n <Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>\n\n {/* Current step */}\n <Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>\n </div>\n </div>\n )\n}\n\n/**\n * AgentStatusBadge — compact pulse badge for scratchpad header\n */\nexport interface AgentStatusBadgeProps {\n agentName: string\n status: 'idle' | 'running' | 'waiting' | 'done' | 'error'\n}\n\nexport function AgentStatusBadge(props: AgentStatusBadgeProps) {\n const strings = useMCPUIStrings()\n const status = () => STATUS_CONFIG[props.status] || STATUS_CONFIG.idle\n\n return (\n <span class=\"inline-flex items-center gap-1.5 text-xs\">\n <span class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} />\n <span class=\"text-gray-600 dark:text-gray-300\">{props.agentName}</span>\n <span class=\"text-gray-400 dark:text-gray-500\">{strings[status().labelKey]}</span>\n </span>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Ec,OAAM,EAAE,CAAC,CAAC;;;;;;;;E,eACd4B,aAAAA,gBAAAA,CAAwE,G,WAAjB5B,aAAAA,MAAAA,OAAAA;GAACC,QAAAA,GAAAA,aAAAA,OAAAA,CAAAA,EAAE,CAAC,CAAC,KAAI;EAAC,CAAA;EAAjE,QAAA,GAAAC,aAAAA,IAAAA,CAAAA,QAAAA,MAAuDF,IAAiB;;;;;;;;;;;;;;EAMjE,OAAM,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OACAL,KAC3C;AAEV"}
|
|
1
|
+
{"version":3,"file":"AgentCard.cjs","names":["<div class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\">\n {/* Avatar */}\n <div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">\n {avatar()}\n </div>\n\n {/* Info */}\n <div class=\"flex-1 min-w-0\">\n <div class=\"flex items-center gap-2\">\n <span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">{c().name}</span>\n {/* Status dot */}\n <span class={`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} title={strings[status().labelKey]} />\n <span class=\"text-xs text-gray-500 dark:text-gray-400\">{strings[status().labelKey]}</span>\n </div>\n\n {/* Model */}\n <Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>\n\n {/* Capabilities */}\n <Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>\n\n {/* Current step */}\n <Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>\n </div>\n </div>","{avatar()}","avatar()","{c().name}","c().name","title={strings[status().labelKey]}","strings[status().labelKey]","{strings[status().labelKey]}","<Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>","{c().model}","c().model","<span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>","<Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>","<For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>","cap","<span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>","{cap}","<div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>","<Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>","{c().currentStep!.label}","c().currentStep!.label","<div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>","<span class=\"inline-flex items-center gap-1.5 text-xs\">\n <span class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} />\n <span class=\"text-gray-600 dark:text-gray-300\">{props.agentName}</span>\n <span class=\"text-gray-400 dark:text-gray-500\">{strings[status().labelKey]}</span>\n </span>","{props.agentName}","props.agentName","class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`}","useMCPUIStrings","_$ssrHydrationKey","_$scope","_$escape","_$ssrGroup","_$ssrAttribute","_$ssrClassName","_$memo","_$ssr","For"],"sources":["../../../src/components/AgentCard.tsx"],"sourcesContent":["/**\n * AgentCard — Agent identity + status display\n * v4.1.0: AITL sprint — shows avatar, name, status, capabilities, current step\n *\n * @experimental\n */\n\nimport { Show, For } from 'solid-js'\nimport type { AgentCardContent } from '../types/chat-bus'\nimport { useMCPUIStrings } from '../context/MCPUIStringsContext'\n\nexport interface AgentCardProps {\n content: AgentCardContent\n}\n\nconst AVATAR_MAP: Record<string, string> = {\n scales: '\\u2696\\uFE0F',\n chart: '\\uD83D\\uDCC8',\n search: '\\uD83D\\uDD0D',\n document: '\\uD83D\\uDCC4',\n brain: '\\uD83E\\uDDE0',\n shield: '\\uD83D\\uDEE1\\uFE0F',\n globe: '\\uD83C\\uDF10',\n robot: '\\uD83E\\uDD16',\n}\n\n/**\n * Status styling. The record stays module-level, but it carries a\n * `labelKey` rather than English: the label is resolved from\n * `useMCPUIStrings()` at render time so a host provider can localize it.\n */\ntype AgentStatusLabelKey =\n | 'agentStatusIdle'\n | 'agentStatusRunning'\n | 'agentStatusWaiting'\n | 'agentStatusDone'\n | 'agentStatusError'\n\nconst STATUS_CONFIG: Record<\n string,\n { labelKey: AgentStatusLabelKey; color: string; pulse: boolean }\n> = {\n idle: { labelKey: 'agentStatusIdle', color: 'bg-gray-400', pulse: false },\n running: { labelKey: 'agentStatusRunning', color: 'bg-blue-500', pulse: true },\n waiting: { labelKey: 'agentStatusWaiting', color: 'bg-amber-500', pulse: true },\n done: { labelKey: 'agentStatusDone', color: 'bg-green-500', pulse: false },\n error: { labelKey: 'agentStatusError', color: 'bg-red-500', pulse: false },\n}\n\nexport function AgentCard(props: AgentCardProps) {\n const strings = useMCPUIStrings()\n const c = () => props.content\n const status = () => STATUS_CONFIG[c().status] || STATUS_CONFIG.idle\n const avatar = () => AVATAR_MAP[c().avatar || ''] || c().avatar || '\\uD83E\\uDD16'\n\n if (typeof console !== 'undefined') {\n console.info('[MCP-UI:AgentCard] mounted', {\n agentId: c().agentId, status: c().status, capabilities: c().capabilities,\n })\n }\n\n return (\n <div class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\">\n {/* Avatar */}\n <div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">\n {avatar()}\n </div>\n\n {/* Info */}\n <div class=\"flex-1 min-w-0\">\n <div class=\"flex items-center gap-2\">\n <span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">{c().name}</span>\n {/* Status dot */}\n <span class={`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} title={strings[status().labelKey]} />\n <span class=\"text-xs text-gray-500 dark:text-gray-400\">{strings[status().labelKey]}</span>\n </div>\n\n {/* Model */}\n <Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>\n\n {/* Capabilities */}\n <Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>\n\n {/* Current step */}\n <Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>\n </div>\n </div>\n )\n}\n\n/**\n * AgentStatusBadge — compact pulse badge for scratchpad header\n */\nexport interface AgentStatusBadgeProps {\n agentName: string\n status: 'idle' | 'running' | 'waiting' | 'done' | 'error'\n}\n\nexport function AgentStatusBadge(props: AgentStatusBadgeProps) {\n const strings = useMCPUIStrings()\n const status = () => STATUS_CONFIG[props.status] || STATUS_CONFIG.idle\n\n return (\n <span class=\"inline-flex items-center gap-1.5 text-xs\">\n <span class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} />\n <span class=\"text-gray-600 dark:text-gray-300\">{props.agentName}</span>\n <span class=\"text-gray-400 dark:text-gray-500\">{strings[status().labelKey]}</span>\n </span>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFiB,OAAM,EAAE,CAAC,CAAC;;;;;;;;;;;AAtE3B,IAAM,aAAqC;CACzC,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,UAAU;CACV,OAAO;CACP,QAAQ;CACR,OAAO;CACP,OAAO;AACT;AAcA,IAAM,gBAGF;CACF,MAAM;EAAE,UAAU;EAAmB,OAAO;EAAe,OAAO;CAAM;CACxE,SAAS;EAAE,UAAU;EAAsB,OAAO;EAAe,OAAO;CAAK;CAC7E,SAAS;EAAE,UAAU;EAAsB,OAAO;EAAgB,OAAO;CAAK;CAC9E,MAAM;EAAE,UAAU;EAAmB,OAAO;EAAgB,OAAO;CAAM;CACzE,OAAO;EAAE,UAAU;EAAoB,OAAO;EAAc,OAAO;CAAM;AAC3E;AAEA,SAAgB,UAAU,OAAuB;CAC/C,MAAM,UAAU0B,4BAAAA,gBAAgB;CAChC,MAAM,UAAU,MAAM;CACtB,MAAM,eAAe,cAAc,EAAE,CAAC,CAAC,WAAW,cAAc;CAChE,MAAM,eAAe,WAAW,EAAE,CAAC,CAAC,UAAU,OAAO,EAAE,CAAC,CAAC,UAAU;CAEnE,IAAI,OAAO,YAAY,aACrB,QAAQ,KAAK,8BAA8B;EACzC,SAAS,EAAE,CAAC,CAAC;EAAS,QAAQ,EAAE,CAAC,CAAC;EAAQ,cAAc,EAAE,CAAC,CAAC;CAC9D,CAAC;CAID,IAAA,OAAA,GAAAC,aAAAA,gBAAAA,CAyCK,GAzCL3B,QAAAA,GA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aAAAA,aAAAA,CAAA,UAAA,GAAAC,aAAAA,aAAAA,CAAA,KAAA,CAAA,EAAA,CAAjF,wBAAwB,OAAO,CAAC,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,QAAQ,kBAAkB,IAAI;CADhGV,GAAAA,SAAAA,GAEiDC,aAAAA,MAAAA,OAAAA;EAACC,QAAAA,GAAAA,aAAAA,OAAAA,CAAAA,MAAM,SAAQ;CAAC,CAAA,GAFjEF,SAAAA,GAGiDf,aAAAA,MAAAA,OAAAA;EAACD,QAAAA,GAAAA,aAAAA,OAAAA,CAAAA,QAAQ,OAAO,CAAC,CAAC,SAAQ;CAAC,CAAA;CAJ9E,QAAA,GACEgB,aAAAA,IAAAA,CAAAA,SAAAA,OACQG,OACyCF,OACAhB,KAC3C;AAEV"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMCPUIStrings } from "../context/MCPUIStringsContext.js";
|
|
2
2
|
import { escape, memo, scope, ssr, ssrAttribute, ssrClassName, ssrGroup, ssrHydrationKey } from "@solidjs/web";
|
|
3
|
-
import { For
|
|
3
|
+
import { For } from "solid-js";
|
|
4
4
|
// src/components/AgentCard.tsx
|
|
5
5
|
/**
|
|
6
6
|
* AgentCard — Agent identity + status display
|
|
@@ -9,21 +9,6 @@ import { For, Show } from "solid-js";
|
|
|
9
9
|
* @experimental
|
|
10
10
|
*/
|
|
11
11
|
var _tmpl$ = [
|
|
12
|
-
"<span",
|
|
13
|
-
" class=\"text-xs text-gray-400 dark:text-gray-500\">",
|
|
14
|
-
"</span>"
|
|
15
|
-
];
|
|
16
|
-
var _tmpl$2 = [
|
|
17
|
-
"<div",
|
|
18
|
-
" class=\"flex flex-wrap gap-1 mt-1.5\">",
|
|
19
|
-
"</div>"
|
|
20
|
-
];
|
|
21
|
-
var _tmpl$3 = [
|
|
22
|
-
"<div",
|
|
23
|
-
" class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\"><div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\"></div><!--$-->",
|
|
24
|
-
"<!--/--></div>"
|
|
25
|
-
];
|
|
26
|
-
var _tmpl$4 = [
|
|
27
12
|
"<div",
|
|
28
13
|
" class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\"><div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">",
|
|
29
14
|
"</div><div class=\"flex-1 min-w-0\"><div class=\"flex items-center gap-2\"><span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">",
|
|
@@ -35,11 +20,26 @@ var _tmpl$4 = [
|
|
|
35
20
|
"<!--/--><!--$-->",
|
|
36
21
|
"<!--/--></div></div>"
|
|
37
22
|
];
|
|
38
|
-
var _tmpl$
|
|
23
|
+
var _tmpl$2 = [
|
|
24
|
+
"<span",
|
|
25
|
+
" class=\"text-xs text-gray-400 dark:text-gray-500\">",
|
|
26
|
+
"</span>"
|
|
27
|
+
];
|
|
28
|
+
var _tmpl$3 = [
|
|
29
|
+
"<div",
|
|
30
|
+
" class=\"flex flex-wrap gap-1 mt-1.5\">",
|
|
31
|
+
"</div>"
|
|
32
|
+
];
|
|
33
|
+
var _tmpl$4 = [
|
|
39
34
|
"<span",
|
|
40
35
|
" class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">",
|
|
41
36
|
"</span>"
|
|
42
37
|
];
|
|
38
|
+
var _tmpl$5 = [
|
|
39
|
+
"<div",
|
|
40
|
+
" class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\"><div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\"></div><!--$-->",
|
|
41
|
+
"<!--/--></div>"
|
|
42
|
+
];
|
|
43
43
|
var _tmpl$6 = [
|
|
44
44
|
"<span",
|
|
45
45
|
" class=\"inline-flex items-center gap-1.5 text-xs\"><span",
|
|
@@ -51,97 +51,17 @@ var _m$ = Symbol();
|
|
|
51
51
|
var _d$ = {
|
|
52
52
|
get() {
|
|
53
53
|
const c = this[_m$];
|
|
54
|
-
return c().
|
|
55
|
-
},
|
|
56
|
-
enumerable: true,
|
|
57
|
-
configurable: true
|
|
58
|
-
};
|
|
59
|
-
var _d$2 = {
|
|
60
|
-
get() {
|
|
61
|
-
const c = this[_m$];
|
|
62
|
-
var _v$8 = ssrHydrationKey(), _v$9 = scope(() => {
|
|
63
|
-
return escape(c().model);
|
|
64
|
-
});
|
|
65
|
-
return ssr(_tmpl$, _v$8, _v$9);
|
|
54
|
+
return c().capabilities;
|
|
66
55
|
},
|
|
67
56
|
enumerable: true,
|
|
68
57
|
configurable: true
|
|
69
58
|
};
|
|
70
|
-
function _P$(_p) {
|
|
59
|
+
function _P$(_p, _p2) {
|
|
71
60
|
this[_m$] = _p;
|
|
72
|
-
Object.defineProperty(this, "
|
|
73
|
-
|
|
61
|
+
Object.defineProperty(this, "each", _d$);
|
|
62
|
+
this.children = _p2;
|
|
74
63
|
}
|
|
75
64
|
_P$.prototype = Object.prototype;
|
|
76
|
-
var _d$3 = {
|
|
77
|
-
get() {
|
|
78
|
-
const c = this[_m$];
|
|
79
|
-
return c().capabilities;
|
|
80
|
-
},
|
|
81
|
-
enumerable: true,
|
|
82
|
-
configurable: true
|
|
83
|
-
};
|
|
84
|
-
function _P$2(_p2, _p3) {
|
|
85
|
-
this[_m$] = _p2;
|
|
86
|
-
Object.defineProperty(this, "each", _d$3);
|
|
87
|
-
this.children = _p3;
|
|
88
|
-
}
|
|
89
|
-
_P$2.prototype = Object.prototype;
|
|
90
|
-
var _d$4 = {
|
|
91
|
-
get() {
|
|
92
|
-
const c = this[_m$];
|
|
93
|
-
return memo(() => {
|
|
94
|
-
return !!c().capabilities;
|
|
95
|
-
})() ? c().capabilities.length > 0 : c().capabilities;
|
|
96
|
-
},
|
|
97
|
-
enumerable: true,
|
|
98
|
-
configurable: true
|
|
99
|
-
};
|
|
100
|
-
var _d$5 = {
|
|
101
|
-
get() {
|
|
102
|
-
const c = this[_m$];
|
|
103
|
-
var _v$11 = ssrHydrationKey(), _v$12 = escape(For(new _P$2(c, (cap) => {
|
|
104
|
-
var _v$17 = ssrHydrationKey(), _v$18 = escape(cap);
|
|
105
|
-
return ssr(_tmpl$5, _v$17, _v$18);
|
|
106
|
-
})));
|
|
107
|
-
return ssr(_tmpl$2, _v$11, _v$12);
|
|
108
|
-
},
|
|
109
|
-
enumerable: true,
|
|
110
|
-
configurable: true
|
|
111
|
-
};
|
|
112
|
-
function _P$3(_p4) {
|
|
113
|
-
this[_m$] = _p4;
|
|
114
|
-
Object.defineProperty(this, "when", _d$4);
|
|
115
|
-
Object.defineProperty(this, "children", _d$5);
|
|
116
|
-
}
|
|
117
|
-
_P$3.prototype = Object.prototype;
|
|
118
|
-
var _d$6 = {
|
|
119
|
-
get() {
|
|
120
|
-
const c = this[_m$];
|
|
121
|
-
return memo(() => {
|
|
122
|
-
return !!c().currentStep;
|
|
123
|
-
})() ? c().status === "running" : c().currentStep;
|
|
124
|
-
},
|
|
125
|
-
enumerable: true,
|
|
126
|
-
configurable: true
|
|
127
|
-
};
|
|
128
|
-
var _d$7 = {
|
|
129
|
-
get() {
|
|
130
|
-
const c = this[_m$];
|
|
131
|
-
var _v$14 = ssrHydrationKey(), _v$15 = scope(() => {
|
|
132
|
-
return escape(c().currentStep.label);
|
|
133
|
-
});
|
|
134
|
-
return ssr(_tmpl$3, _v$14, _v$15);
|
|
135
|
-
},
|
|
136
|
-
enumerable: true,
|
|
137
|
-
configurable: true
|
|
138
|
-
};
|
|
139
|
-
function _P$4(_p5) {
|
|
140
|
-
this[_m$] = _p5;
|
|
141
|
-
Object.defineProperty(this, "when", _d$6);
|
|
142
|
-
Object.defineProperty(this, "children", _d$7);
|
|
143
|
-
}
|
|
144
|
-
_P$4.prototype = Object.prototype;
|
|
145
65
|
var AVATAR_MAP = {
|
|
146
66
|
scales: "⚖️",
|
|
147
67
|
chart: "📈",
|
|
@@ -197,8 +117,39 @@ function AgentCard(props) {
|
|
|
197
117
|
return [((_v$4) => _v$4 == null ? "" : ssrAttribute("class", ssrClassName(_v$4)))(`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? "animate-pulse" : ""}`), ssrAttribute("title", escape(strings[status().labelKey], true))];
|
|
198
118
|
}, 2), _v$7 = scope(() => {
|
|
199
119
|
return escape(strings[status().labelKey]);
|
|
200
|
-
}), _v$
|
|
201
|
-
|
|
120
|
+
}), _v$8 = scope((() => {
|
|
121
|
+
var _c$ = memo(() => {
|
|
122
|
+
return !!c().model;
|
|
123
|
+
});
|
|
124
|
+
return () => {
|
|
125
|
+
var _v$11, _v$12;
|
|
126
|
+
return _c$() ? (_v$11 = ssrHydrationKey(), _v$12 = scope(() => {
|
|
127
|
+
return escape(c().model);
|
|
128
|
+
}), ssr(_tmpl$2, _v$11, _v$12)) : void 0;
|
|
129
|
+
};
|
|
130
|
+
})()), _v$9 = scope((() => {
|
|
131
|
+
var _c$2 = memo(() => {
|
|
132
|
+
return !!(c().capabilities && c().capabilities.length > 0);
|
|
133
|
+
});
|
|
134
|
+
return () => {
|
|
135
|
+
var _v$13, _v$14;
|
|
136
|
+
return _c$2() ? (_v$13 = ssrHydrationKey(), _v$14 = escape(For(new _P$(c, (cap) => {
|
|
137
|
+
var _v$15 = ssrHydrationKey(), _v$16 = escape(cap);
|
|
138
|
+
return ssr(_tmpl$4, _v$15, _v$16);
|
|
139
|
+
}))), ssr(_tmpl$3, _v$13, _v$14)) : void 0;
|
|
140
|
+
};
|
|
141
|
+
})()), _v$10 = scope((() => {
|
|
142
|
+
var _c$3 = memo(() => {
|
|
143
|
+
return !!(c().currentStep && c().status === "running");
|
|
144
|
+
});
|
|
145
|
+
return () => {
|
|
146
|
+
var _v$17, _v$18;
|
|
147
|
+
return _c$3() ? (_v$17 = ssrHydrationKey(), _v$18 = scope(() => {
|
|
148
|
+
return escape(c().currentStep.label);
|
|
149
|
+
}), ssr(_tmpl$5, _v$17, _v$18)) : void 0;
|
|
150
|
+
};
|
|
151
|
+
})());
|
|
152
|
+
return ssr(_tmpl$, _v$, _v$2, _v$3, _g$, _g$, _v$7, _v$8, _v$9, _v$10);
|
|
202
153
|
}
|
|
203
154
|
function AgentStatusBadge(props) {
|
|
204
155
|
const strings = useMCPUIStrings();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AgentCard.js","names":["{c().model}","c().model","<span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>","c().capabilities && c().capabilities!.length > 0","<For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>","cap","<span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>","{cap}","<div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>","c().currentStep && c().status === 'running'","{c().currentStep!.label}","c().currentStep!.label","<div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>","<div class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\">\n {/* Avatar */}\n <div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">\n {avatar()}\n </div>\n\n {/* Info */}\n <div class=\"flex-1 min-w-0\">\n <div class=\"flex items-center gap-2\">\n <span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">{c().name}</span>\n {/* Status dot */}\n <span class={`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} title={strings[status().labelKey]} />\n <span class=\"text-xs text-gray-500 dark:text-gray-400\">{strings[status().labelKey]}</span>\n </div>\n\n {/* Model */}\n <Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>\n\n {/* Capabilities */}\n <Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>\n\n {/* Current step */}\n <Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>\n </div>\n </div>","{avatar()}","avatar()","{c().name}","c().name","title={strings[status().labelKey]}","strings[status().labelKey]","{strings[status().labelKey]}","<Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>","<Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>","<Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>","<span class=\"inline-flex items-center gap-1.5 text-xs\">\n <span class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} />\n <span class=\"text-gray-600 dark:text-gray-300\">{props.agentName}</span>\n <span class=\"text-gray-400 dark:text-gray-500\">{strings[status().labelKey]}</span>\n </span>","{props.agentName}","props.agentName","class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`}","_$ssrHydrationKey","_$scope","_$escape","_$ssr","_$memo","_$ssrGroup","_$ssrAttribute","_$ssrClassName"],"sources":["../../../src/components/AgentCard.tsx"],"sourcesContent":["/**\n * AgentCard — Agent identity + status display\n * v4.1.0: AITL sprint — shows avatar, name, status, capabilities, current step\n *\n * @experimental\n */\n\nimport { Show, For } from 'solid-js'\nimport type { AgentCardContent } from '../types/chat-bus'\nimport { useMCPUIStrings } from '../context/MCPUIStringsContext'\n\nexport interface AgentCardProps {\n content: AgentCardContent\n}\n\nconst AVATAR_MAP: Record<string, string> = {\n scales: '\\u2696\\uFE0F',\n chart: '\\uD83D\\uDCC8',\n search: '\\uD83D\\uDD0D',\n document: '\\uD83D\\uDCC4',\n brain: '\\uD83E\\uDDE0',\n shield: '\\uD83D\\uDEE1\\uFE0F',\n globe: '\\uD83C\\uDF10',\n robot: '\\uD83E\\uDD16',\n}\n\n/**\n * Status styling. The record stays module-level, but it carries a\n * `labelKey` rather than English: the label is resolved from\n * `useMCPUIStrings()` at render time so a host provider can localize it.\n */\ntype AgentStatusLabelKey =\n | 'agentStatusIdle'\n | 'agentStatusRunning'\n | 'agentStatusWaiting'\n | 'agentStatusDone'\n | 'agentStatusError'\n\nconst STATUS_CONFIG: Record<\n string,\n { labelKey: AgentStatusLabelKey; color: string; pulse: boolean }\n> = {\n idle: { labelKey: 'agentStatusIdle', color: 'bg-gray-400', pulse: false },\n running: { labelKey: 'agentStatusRunning', color: 'bg-blue-500', pulse: true },\n waiting: { labelKey: 'agentStatusWaiting', color: 'bg-amber-500', pulse: true },\n done: { labelKey: 'agentStatusDone', color: 'bg-green-500', pulse: false },\n error: { labelKey: 'agentStatusError', color: 'bg-red-500', pulse: false },\n}\n\nexport function AgentCard(props: AgentCardProps) {\n const strings = useMCPUIStrings()\n const c = () => props.content\n const status = () => STATUS_CONFIG[c().status] || STATUS_CONFIG.idle\n const avatar = () => AVATAR_MAP[c().avatar || ''] || c().avatar || '\\uD83E\\uDD16'\n\n if (typeof console !== 'undefined') {\n console.info('[MCP-UI:AgentCard] mounted', {\n agentId: c().agentId, status: c().status, capabilities: c().capabilities,\n })\n }\n\n return (\n <div class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\">\n {/* Avatar */}\n <div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">\n {avatar()}\n </div>\n\n {/* Info */}\n <div class=\"flex-1 min-w-0\">\n <div class=\"flex items-center gap-2\">\n <span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">{c().name}</span>\n {/* Status dot */}\n <span class={`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} title={strings[status().labelKey]} />\n <span class=\"text-xs text-gray-500 dark:text-gray-400\">{strings[status().labelKey]}</span>\n </div>\n\n {/* Model */}\n <Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>\n\n {/* Capabilities */}\n <Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>\n\n {/* Current step */}\n <Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>\n </div>\n </div>\n )\n}\n\n/**\n * AgentStatusBadge — compact pulse badge for scratchpad header\n */\nexport interface AgentStatusBadgeProps {\n agentName: string\n status: 'idle' | 'running' | 'waiting' | 'done' | 'error'\n}\n\nexport function AgentStatusBadge(props: AgentStatusBadgeProps) {\n const strings = useMCPUIStrings()\n const status = () => STATUS_CONFIG[props.status] || STATUS_CONFIG.idle\n\n return (\n <span class=\"inline-flex items-center gap-1.5 text-xs\">\n <span class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} />\n <span class=\"text-gray-600 dark:text-gray-300\">{props.agentName}</span>\n <span class=\"text-gray-400 dark:text-gray-500\">{strings[status().labelKey]}</span>\n </span>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8Ec,OAAM,EAAE,CAAC,CAAC;;;;;;;;E,WACd4B,gBAAwE,G,OAAjB5B,YAAAA;GAACC,OAAAA,OAAAA,EAAE,CAAC,CAAC,KAAI;EAAC,CAAA;EAAjE,OAAAC,IAAAA,QAAAA,MAAuDF,IAAiB;;;;;;;;;;;;;;EAMjE,OAAM,EAAE,CAAC,CAAC;;;;;;;;;;;;;;EAFb,OAAMG,WAAAA;GAAE,OAAA,CAAA,CAAA,EAAA,CAAC,CAAC;EAA2C,CAAA,CAAC,CAAD,IAA3B,EAAE,CAAC,CAAC,aAAc,SAAS,IAA/C,EAAE,CAAC,CAAC;;;;;;;;E,YACdyB,gBAQK,G,QAPHxB,OAAAA,IAAAA,IAAAA,KAAW,IACP,QACA;G,YAEMwB,gBAAA,G,QADHvB,OAAAA,GAAE;GACC,OAFNC,IAAAA,SAAAA,OACEC,KACI;EAEL,CAAA,CAAA,CAAA;EAPP,OAAAC,IAAAA,SAAAA,OACEJ,KAOG;;;;;;;;;;;;;;EAID,OAAMK,WAAAA;G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{"version":3,"file":"AgentCard.js","names":["<div class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\">\n {/* Avatar */}\n <div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">\n {avatar()}\n </div>\n\n {/* Info */}\n <div class=\"flex-1 min-w-0\">\n <div class=\"flex items-center gap-2\">\n <span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">{c().name}</span>\n {/* Status dot */}\n <span class={`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} title={strings[status().labelKey]} />\n <span class=\"text-xs text-gray-500 dark:text-gray-400\">{strings[status().labelKey]}</span>\n </div>\n\n {/* Model */}\n <Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>\n\n {/* Capabilities */}\n <Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>\n\n {/* Current step */}\n <Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>\n </div>\n </div>","{avatar()}","avatar()","{c().name}","c().name","title={strings[status().labelKey]}","strings[status().labelKey]","{strings[status().labelKey]}","<Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>","{c().model}","c().model","<span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>","<Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>","<For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>","cap","<span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>","{cap}","<div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>","<Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>","{c().currentStep!.label}","c().currentStep!.label","<div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>","<span class=\"inline-flex items-center gap-1.5 text-xs\">\n <span class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} />\n <span class=\"text-gray-600 dark:text-gray-300\">{props.agentName}</span>\n <span class=\"text-gray-400 dark:text-gray-500\">{strings[status().labelKey]}</span>\n </span>","{props.agentName}","props.agentName","class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`}","_$ssrHydrationKey","_$scope","_$escape","_$ssrGroup","_$ssrAttribute","_$ssrClassName","_$memo","_$ssr"],"sources":["../../../src/components/AgentCard.tsx"],"sourcesContent":["/**\n * AgentCard — Agent identity + status display\n * v4.1.0: AITL sprint — shows avatar, name, status, capabilities, current step\n *\n * @experimental\n */\n\nimport { Show, For } from 'solid-js'\nimport type { AgentCardContent } from '../types/chat-bus'\nimport { useMCPUIStrings } from '../context/MCPUIStringsContext'\n\nexport interface AgentCardProps {\n content: AgentCardContent\n}\n\nconst AVATAR_MAP: Record<string, string> = {\n scales: '\\u2696\\uFE0F',\n chart: '\\uD83D\\uDCC8',\n search: '\\uD83D\\uDD0D',\n document: '\\uD83D\\uDCC4',\n brain: '\\uD83E\\uDDE0',\n shield: '\\uD83D\\uDEE1\\uFE0F',\n globe: '\\uD83C\\uDF10',\n robot: '\\uD83E\\uDD16',\n}\n\n/**\n * Status styling. The record stays module-level, but it carries a\n * `labelKey` rather than English: the label is resolved from\n * `useMCPUIStrings()` at render time so a host provider can localize it.\n */\ntype AgentStatusLabelKey =\n | 'agentStatusIdle'\n | 'agentStatusRunning'\n | 'agentStatusWaiting'\n | 'agentStatusDone'\n | 'agentStatusError'\n\nconst STATUS_CONFIG: Record<\n string,\n { labelKey: AgentStatusLabelKey; color: string; pulse: boolean }\n> = {\n idle: { labelKey: 'agentStatusIdle', color: 'bg-gray-400', pulse: false },\n running: { labelKey: 'agentStatusRunning', color: 'bg-blue-500', pulse: true },\n waiting: { labelKey: 'agentStatusWaiting', color: 'bg-amber-500', pulse: true },\n done: { labelKey: 'agentStatusDone', color: 'bg-green-500', pulse: false },\n error: { labelKey: 'agentStatusError', color: 'bg-red-500', pulse: false },\n}\n\nexport function AgentCard(props: AgentCardProps) {\n const strings = useMCPUIStrings()\n const c = () => props.content\n const status = () => STATUS_CONFIG[c().status] || STATUS_CONFIG.idle\n const avatar = () => AVATAR_MAP[c().avatar || ''] || c().avatar || '\\uD83E\\uDD16'\n\n if (typeof console !== 'undefined') {\n console.info('[MCP-UI:AgentCard] mounted', {\n agentId: c().agentId, status: c().status, capabilities: c().capabilities,\n })\n }\n\n return (\n <div class=\"flex items-start gap-3 p-3 rounded-lg bg-gradient-to-r from-gray-50 to-transparent dark:from-gray-800/50\">\n {/* Avatar */}\n <div class=\"flex-shrink-0 w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-xl\">\n {avatar()}\n </div>\n\n {/* Info */}\n <div class=\"flex-1 min-w-0\">\n <div class=\"flex items-center gap-2\">\n <span class=\"font-medium text-sm text-gray-900 dark:text-white truncate\">{c().name}</span>\n {/* Status dot */}\n <span class={`inline-block w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} title={strings[status().labelKey]} />\n <span class=\"text-xs text-gray-500 dark:text-gray-400\">{strings[status().labelKey]}</span>\n </div>\n\n {/* Model */}\n <Show when={c().model}>\n <span class=\"text-xs text-gray-400 dark:text-gray-500\">{c().model}</span>\n </Show>\n\n {/* Capabilities */}\n <Show when={c().capabilities && c().capabilities!.length > 0}>\n <div class=\"flex flex-wrap gap-1 mt-1.5\">\n <For each={c().capabilities}>\n {(cap) => (\n <span class=\"px-1.5 py-0.5 text-[10px] rounded bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300\">\n {cap}\n </span>\n )}\n </For>\n </div>\n </Show>\n\n {/* Current step */}\n <Show when={c().currentStep && c().status === 'running'}>\n <div class=\"mt-1.5 flex items-center gap-1.5 text-xs text-blue-600 dark:text-blue-400\">\n <div class=\"w-3 h-3 border-2 border-blue-500 border-t-transparent rounded-full animate-spin\" />\n {c().currentStep!.label}\n </div>\n </Show>\n </div>\n </div>\n )\n}\n\n/**\n * AgentStatusBadge — compact pulse badge for scratchpad header\n */\nexport interface AgentStatusBadgeProps {\n agentName: string\n status: 'idle' | 'running' | 'waiting' | 'done' | 'error'\n}\n\nexport function AgentStatusBadge(props: AgentStatusBadgeProps) {\n const strings = useMCPUIStrings()\n const status = () => STATUS_CONFIG[props.status] || STATUS_CONFIG.idle\n\n return (\n <span class=\"inline-flex items-center gap-1.5 text-xs\">\n <span class={`w-2 h-2 rounded-full ${status().color} ${status().pulse ? 'animate-pulse' : ''}`} />\n <span class=\"text-gray-600 dark:text-gray-300\">{props.agentName}</span>\n <span class=\"text-gray-400 dark:text-gray-500\">{strings[status().labelKey]}</span>\n </span>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqFiB,OAAM,EAAE,CAAC,CAAC;;;;;;;;;;;AAtE3B,IAAM,aAAqC;CACzC,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,UAAU;CACV,OAAO;CACP,QAAQ;CACR,OAAO;CACP,OAAO;AACT;AAcA,IAAM,gBAGF;CACF,MAAM;EAAE,UAAU;EAAmB,OAAO;EAAe,OAAO;CAAM;CACxE,SAAS;EAAE,UAAU;EAAsB,OAAO;EAAe,OAAO;CAAK;CAC7E,SAAS;EAAE,UAAU;EAAsB,OAAO;EAAgB,OAAO;CAAK;CAC9E,MAAM;EAAE,UAAU;EAAmB,OAAO;EAAgB,OAAO;CAAM;CACzE,OAAO;EAAE,UAAU;EAAoB,OAAO;EAAc,OAAO;CAAM;AAC3E;AAEA,SAAgB,UAAU,OAAuB;CAC/C,MAAM,UAAU,gBAAgB;CAChC,MAAM,UAAU,MAAM;CACtB,MAAM,eAAe,cAAc,EAAE,CAAC,CAAC,WAAW,cAAc;CAChE,MAAM,eAAe,WAAW,EAAE,CAAC,CAAC,UAAU,OAAO,EAAE,CAAC,CAAC,UAAU;CAEnE,IAAI,OAAO,YAAY,aACrB,QAAQ,KAAK,8BAA8B;EACzC,SAAS,EAAE,CAAC,CAAC;EAAS,QAAQ,EAAE,CAAC,CAAC;EAAQ,cAAc,EAAE,CAAC,CAAC;CAC9D,CAAC;CAID,IAAA,MAAA0B,gBAyCK,GAzCL1B,OAGIC,YAAAA;EAACC,OAAAA,OAAAA,OAAO,CAAA;CAAC,CAAA,GAHbF,OAS+EG,YAAAA;EAACC,OA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