@flowdrop/flowdrop 2.11.0 → 2.12.0

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.
Files changed (455) hide show
  1. package/CHANGELOG.md +223 -0
  2. package/dist/adapters/agentspec/autoLayout.d.ts +18 -36
  3. package/dist/adapters/agentspec/autoLayout.js +75 -93
  4. package/dist/chat/activity.d.ts +49 -0
  5. package/dist/chat/activity.js +65 -0
  6. package/dist/chat/commandClassifier.js +2 -1
  7. package/dist/commands/executor.js +186 -27
  8. package/dist/commands/index.d.ts +2 -1
  9. package/dist/commands/index.js +2 -0
  10. package/dist/commands/parser.js +43 -3
  11. package/dist/commands/session.d.ts +60 -0
  12. package/dist/commands/session.js +332 -0
  13. package/dist/commands/storeIntegration.svelte.js +18 -1
  14. package/dist/commands/types.d.ts +77 -4
  15. package/dist/components/App.svelte +966 -226
  16. package/dist/components/App.svelte.d.ts +26 -2
  17. package/dist/components/BindablePortListbox.svelte +68 -369
  18. package/dist/components/Button.svelte +17 -14
  19. package/dist/components/Button.svelte.d.ts +2 -2
  20. package/dist/components/CanvasContextMenu.svelte +31 -10
  21. package/dist/components/CanvasController.svelte +146 -3
  22. package/dist/components/CanvasController.svelte.d.ts +25 -33
  23. package/dist/components/CanvasIconButton.svelte +6 -6
  24. package/dist/components/CanvasToolbar.svelte +103 -0
  25. package/dist/components/CanvasToolbar.svelte.d.ts +23 -0
  26. package/dist/components/CanvasZoomControls.svelte +122 -0
  27. package/dist/components/CanvasZoomControls.svelte.d.ts +15 -0
  28. package/dist/components/ConfigForm.svelte +159 -121
  29. package/dist/components/ConfigModal.svelte +11 -54
  30. package/dist/components/ConfigPanel.svelte +98 -228
  31. package/dist/components/ConfigPanel.svelte.d.ts +2 -2
  32. package/dist/components/ConnectPortPicker.svelte +153 -0
  33. package/dist/components/ConnectPortPicker.svelte.d.ts +22 -0
  34. package/dist/components/DoctorMenu.svelte +422 -0
  35. package/dist/components/DoctorMenu.svelte.d.ts +7 -0
  36. package/dist/components/ExternalLinkRow.svelte +82 -0
  37. package/dist/components/ExternalLinkRow.svelte.d.ts +14 -0
  38. package/dist/components/FlowDropEdge.svelte +52 -2
  39. package/dist/components/FlowDropEdge.svelte.d.ts +5 -1
  40. package/dist/components/InterfaceNameInput.svelte +103 -0
  41. package/dist/components/InterfaceNameInput.svelte.d.ts +13 -0
  42. package/dist/components/InterfaceTag.svelte +215 -0
  43. package/dist/components/InterfaceTag.svelte.d.ts +20 -0
  44. package/dist/components/InterfaceTagAnchor.svelte +103 -0
  45. package/dist/components/InterfaceTagAnchor.svelte.d.ts +12 -0
  46. package/dist/components/InterfaceTagLayer.svelte +314 -0
  47. package/dist/components/InterfaceTagLayer.svelte.d.ts +28 -0
  48. package/dist/components/LogsSidebar.svelte +43 -43
  49. package/dist/components/LoopbackLanes.svelte +54 -0
  50. package/dist/components/LoopbackLanes.svelte.d.ts +8 -0
  51. package/dist/components/Navbar.svelte +539 -169
  52. package/dist/components/Navbar.svelte.d.ts +20 -1
  53. package/dist/components/NodeInspector.svelte +153 -0
  54. package/dist/components/NodeInspector.svelte.d.ts +19 -0
  55. package/dist/components/NodeLastRun.svelte +212 -0
  56. package/dist/components/NodeLastRun.svelte.d.ts +13 -0
  57. package/dist/components/NodeSidebar.svelte +279 -23
  58. package/dist/components/NodeSidebar.svelte.d.ts +11 -0
  59. package/dist/components/NodeStatusOverlay.svelte +144 -353
  60. package/dist/components/NodeStatusOverlay.svelte.d.ts +4 -1
  61. package/dist/components/PortMappingRow.svelte +28 -44
  62. package/dist/components/PortPickerListbox.svelte +475 -0
  63. package/dist/components/PortPickerListbox.svelte.d.ts +73 -0
  64. package/dist/components/ReadOnlyDetails.svelte +52 -89
  65. package/dist/components/RunBar.svelte +222 -0
  66. package/dist/components/RunBar.svelte.d.ts +20 -0
  67. package/dist/components/RunsMenu.svelte +649 -0
  68. package/dist/components/RunsMenu.svelte.d.ts +14 -0
  69. package/dist/components/SettingsModal.svelte +27 -59
  70. package/dist/components/SettingsPanel.svelte +515 -241
  71. package/dist/components/StraightGuides.svelte +46 -0
  72. package/dist/components/StraightGuides.svelte.d.ts +7 -0
  73. package/dist/components/ThemeToggle.svelte +14 -4
  74. package/dist/components/UniversalNode.svelte +152 -51
  75. package/dist/components/WebMCPBridgeMenu.svelte +336 -0
  76. package/dist/components/WebMCPBridgeMenu.svelte.d.ts +3 -0
  77. package/dist/components/WorkflowEditor.svelte +789 -136
  78. package/dist/components/WorkflowEditor.svelte.d.ts +43 -1
  79. package/dist/components/WorkflowInterfaceEditor.svelte +63 -92
  80. package/dist/components/WorkflowInterfaceEntryCard.svelte +478 -549
  81. package/dist/components/WorkflowInterfaceEntryComposer.svelte +23 -67
  82. package/dist/components/WorkflowPlaygroundSettings.svelte +48 -85
  83. package/dist/components/WorkflowSettingsPanel.svelte +311 -0
  84. package/dist/components/WorkflowSettingsPanel.svelte.d.ts +20 -0
  85. package/dist/components/ZoomTier.svelte +56 -0
  86. package/dist/components/ZoomTier.svelte.d.ts +4 -0
  87. package/dist/components/chat/AIChatPanel.svelte +463 -312
  88. package/dist/components/chat/ActivityList.svelte +130 -0
  89. package/dist/components/chat/ActivityList.svelte.d.ts +11 -0
  90. package/dist/components/chat/ActivityRow.svelte +179 -0
  91. package/dist/components/chat/ActivityRow.svelte.d.ts +16 -0
  92. package/dist/components/chat/CommandPreview.svelte +42 -64
  93. package/dist/components/console/CommandConsole.svelte +106 -41
  94. package/dist/components/console/CommandConsole.svelte.d.ts +2 -0
  95. package/dist/components/console/ConsoleAutocomplete.svelte +14 -13
  96. package/dist/components/console/ConsoleInput.svelte +60 -27
  97. package/dist/components/console/ConsoleOutput.svelte +86 -24
  98. package/dist/components/console/ConsoleStrip.svelte +80 -0
  99. package/dist/components/console/ConsoleStrip.svelte.d.ts +13 -0
  100. package/dist/components/form/FieldFactory.svelte +30 -4
  101. package/dist/components/form/FormArray.svelte +306 -339
  102. package/dist/components/form/FormArray.svelte.d.ts +10 -0
  103. package/dist/components/form/FormArrayRows.svelte +443 -0
  104. package/dist/components/form/FormArrayRows.svelte.d.ts +18 -0
  105. package/dist/components/form/FormAutocomplete.svelte +2 -2
  106. package/dist/components/form/FormCheckboxGroup.svelte +10 -85
  107. package/dist/components/form/FormCodeEditor.svelte +3 -3
  108. package/dist/components/form/FormFieldWrapper.svelte +98 -18
  109. package/dist/components/form/FormFieldWrapper.svelte.d.ts +10 -0
  110. package/dist/components/form/FormFieldset.svelte +44 -28
  111. package/dist/components/form/FormMarkdownEditor.svelte +6 -6
  112. package/dist/components/form/FormPorts.svelte +437 -141
  113. package/dist/components/form/FormSelect.svelte +1 -1
  114. package/dist/components/form/FormTemplateEditor.svelte +22 -26
  115. package/dist/components/form/FormToggle.svelte +15 -106
  116. package/dist/components/form/FormToggle.svelte.d.ts +3 -2
  117. package/dist/components/form/FormUISchemaRenderer.svelte +38 -3
  118. package/dist/components/form/humanizeKey.d.ts +7 -0
  119. package/dist/components/form/humanizeKey.js +21 -0
  120. package/dist/components/form/types.d.ts +6 -0
  121. package/dist/components/icons/MenuOpenIcon.svelte +8 -1
  122. package/dist/components/interrupt/ChoicePrompt.svelte +51 -152
  123. package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +0 -2
  124. package/dist/components/interrupt/ConfirmationPrompt.svelte +18 -201
  125. package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +0 -4
  126. package/dist/components/interrupt/FormPrompt.svelte +22 -147
  127. package/dist/components/interrupt/FormPrompt.svelte.d.ts +0 -4
  128. package/dist/components/interrupt/InterruptBubble.svelte +198 -355
  129. package/dist/components/interrupt/InterruptBubble.svelte.d.ts +0 -2
  130. package/dist/components/interrupt/ReviewPrompt.svelte +0 -10
  131. package/dist/components/interrupt/TextInputPrompt.svelte +23 -120
  132. package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +0 -2
  133. package/dist/components/layouts/MainLayout.svelte +110 -75
  134. package/dist/components/layouts/MainLayout.svelte.d.ts +17 -0
  135. package/dist/components/nodes/CaptionNode.svelte +7 -0
  136. package/dist/components/nodes/GatewayNode.svelte +66 -431
  137. package/dist/components/nodes/IdeaNode.svelte +6 -5
  138. package/dist/components/nodes/NodeCard.svelte +1051 -0
  139. package/dist/components/nodes/NodeCard.svelte.d.ts +30 -0
  140. package/dist/components/nodes/NodeConfigButton.svelte +28 -9
  141. package/dist/components/nodes/NodeProblemMark.svelte +113 -0
  142. package/dist/components/nodes/NodeProblemMark.svelte.d.ts +8 -0
  143. package/dist/components/nodes/NodeTip.svelte +104 -0
  144. package/dist/components/nodes/NodeTip.svelte.d.ts +15 -0
  145. package/dist/components/nodes/NotesNode.svelte +183 -150
  146. package/dist/components/nodes/SimpleNode.svelte +176 -44
  147. package/dist/components/nodes/SquareNode.svelte +127 -34
  148. package/dist/components/nodes/TerminalNode.svelte +232 -88
  149. package/dist/components/nodes/ToolNode.svelte +49 -381
  150. package/dist/components/nodes/WorkflowNode.svelte +40 -399
  151. package/dist/components/playground/ChatBubble.svelte +248 -62
  152. package/dist/components/playground/ChatInput.svelte +134 -297
  153. package/dist/components/playground/ChatInput.svelte.d.ts +17 -0
  154. package/dist/components/playground/ControlPanel.svelte +290 -190
  155. package/dist/components/playground/ControlPanel.svelte.d.ts +10 -2
  156. package/dist/components/playground/DockedPlayground.svelte +75 -0
  157. package/dist/components/playground/DockedPlayground.svelte.d.ts +24 -0
  158. package/dist/components/playground/ExecutionConsole.svelte +54 -36
  159. package/dist/components/playground/ExecutionConsole.svelte.d.ts +12 -0
  160. package/dist/components/playground/ExecutionLogs.svelte +4 -0
  161. package/dist/components/playground/HeaderMenu.svelte +170 -0
  162. package/dist/components/playground/HeaderMenu.svelte.d.ts +22 -0
  163. package/dist/components/playground/InputCollector.svelte +8 -32
  164. package/dist/components/playground/InputFields.svelte +246 -0
  165. package/dist/components/playground/InputFields.svelte.d.ts +16 -0
  166. package/dist/components/playground/InterfaceInputForm.svelte +285 -30
  167. package/dist/components/playground/InterfaceInputForm.svelte.d.ts +20 -0
  168. package/dist/components/playground/InterfaceJsonInput.svelte +92 -0
  169. package/dist/components/playground/InterfaceJsonInput.svelte.d.ts +10 -0
  170. package/dist/components/playground/LogRow.svelte +12 -12
  171. package/dist/components/playground/MessageMarkdown.svelte +11 -11
  172. package/dist/components/playground/MessageStream.svelte +154 -182
  173. package/dist/components/playground/Playground.svelte +17 -1139
  174. package/dist/components/playground/PlaygroundApp.svelte +12 -2
  175. package/dist/components/playground/PlaygroundApp.svelte.d.ts +2 -1
  176. package/dist/components/playground/PlaygroundHeader.svelte +309 -0
  177. package/dist/components/playground/PlaygroundHeader.svelte.d.ts +22 -0
  178. package/dist/components/playground/PlaygroundModal.svelte +6 -0
  179. package/dist/components/playground/PlaygroundStudio.svelte +30 -32
  180. package/dist/components/playground/PlaygroundSurface.svelte +648 -0
  181. package/dist/components/playground/PlaygroundSurface.svelte.d.ts +79 -0
  182. package/dist/components/playground/StepsSummary.svelte +312 -0
  183. package/dist/components/playground/StepsSummary.svelte.d.ts +11 -0
  184. package/dist/components/playground/messageDisplay.d.ts +9 -0
  185. package/dist/components/playground/messageDisplay.js +24 -2
  186. package/dist/components/playground/stepSummary.d.ts +71 -0
  187. package/dist/components/playground/stepSummary.js +152 -0
  188. package/dist/components/ports/PortTypeBadge.svelte +13 -1
  189. package/dist/components/primitives/Button.svelte +226 -0
  190. package/dist/components/primitives/Button.svelte.d.ts +31 -0
  191. package/dist/components/primitives/Card.svelte +110 -0
  192. package/dist/components/primitives/Card.svelte.d.ts +20 -0
  193. package/dist/components/primitives/Checkbox.svelte +126 -0
  194. package/dist/components/primitives/Checkbox.svelte.d.ts +15 -0
  195. package/dist/components/primitives/Chip.svelte +143 -0
  196. package/dist/components/primitives/Chip.svelte.d.ts +22 -0
  197. package/dist/components/primitives/Combobox.svelte +444 -0
  198. package/dist/components/primitives/Combobox.svelte.d.ts +22 -0
  199. package/dist/components/primitives/Composer.svelte +293 -0
  200. package/dist/components/primitives/Composer.svelte.d.ts +47 -0
  201. package/dist/components/primitives/EmptyState.svelte +113 -0
  202. package/dist/components/primitives/EmptyState.svelte.d.ts +18 -0
  203. package/dist/components/primitives/Field.svelte +178 -0
  204. package/dist/components/primitives/Field.svelte.d.ts +30 -0
  205. package/dist/components/primitives/IconButton.svelte +156 -0
  206. package/dist/components/primitives/IconButton.svelte.d.ts +27 -0
  207. package/dist/components/primitives/Menu.svelte +435 -0
  208. package/dist/components/primitives/Menu.svelte.d.ts +61 -0
  209. package/dist/components/primitives/Notice.svelte +161 -0
  210. package/dist/components/primitives/Notice.svelte.d.ts +22 -0
  211. package/dist/components/primitives/PanelHeader.svelte +134 -0
  212. package/dist/components/primitives/PanelHeader.svelte.d.ts +23 -0
  213. package/dist/components/primitives/Segmented.svelte +198 -0
  214. package/dist/components/primitives/Segmented.svelte.d.ts +32 -0
  215. package/dist/components/primitives/Select.svelte +130 -0
  216. package/dist/components/primitives/Select.svelte.d.ts +26 -0
  217. package/dist/components/primitives/StatusPill.svelte +218 -0
  218. package/dist/components/primitives/StatusPill.svelte.d.ts +24 -0
  219. package/dist/components/primitives/Switch.svelte +113 -0
  220. package/dist/components/primitives/Switch.svelte.d.ts +14 -0
  221. package/dist/components/primitives/Tabs.svelte +209 -0
  222. package/dist/components/primitives/Tabs.svelte.d.ts +32 -0
  223. package/dist/components/primitives/Toolbar.svelte +94 -0
  224. package/dist/components/primitives/Toolbar.svelte.d.ts +14 -0
  225. package/dist/components/primitives/ToolbarSeparator.svelte +40 -0
  226. package/dist/components/primitives/ToolbarSeparator.svelte.d.ts +7 -0
  227. package/dist/components/surfaces/SurfaceOverlay.svelte +10 -40
  228. package/dist/components/surfaces/TabbedSurface.svelte +49 -39
  229. package/dist/components/surfaces/TabbedSurface.svelte.d.ts +8 -0
  230. package/dist/components/toast/DismissibleToast.svelte +94 -32
  231. package/dist/components/toast/DismissibleToast.svelte.d.ts +17 -7
  232. package/dist/config/endpoints.d.ts +43 -1
  233. package/dist/config/endpoints.js +21 -3
  234. package/dist/core/index.d.ts +8 -5
  235. package/dist/core/index.js +1 -1
  236. package/dist/editor/connectCandidates.d.ts +56 -0
  237. package/dist/editor/connectCandidates.js +131 -0
  238. package/dist/editor/contextMenu.d.ts +31 -2
  239. package/dist/editor/contextMenu.js +96 -9
  240. package/dist/editor/index.d.ts +3 -1
  241. package/dist/editor/index.js +1 -0
  242. package/dist/editor/interfaceMenu.d.ts +35 -0
  243. package/dist/editor/interfaceMenu.js +47 -0
  244. package/dist/editor/portMenu.d.ts +23 -0
  245. package/dist/editor/portMenu.js +34 -0
  246. package/dist/editor/tidy.d.ts +30 -0
  247. package/dist/editor/tidy.js +66 -0
  248. package/dist/helpers/workflowEditorHelper.d.ts +3 -0
  249. package/dist/helpers/workflowEditorHelper.js +8 -3
  250. package/dist/layout/fromWorkflow.d.ts +42 -0
  251. package/dist/layout/fromWorkflow.js +135 -0
  252. package/dist/layout/geometry.d.ts +102 -0
  253. package/dist/layout/geometry.js +317 -0
  254. package/dist/layout/index.d.ts +21 -0
  255. package/dist/layout/index.js +14 -0
  256. package/dist/layout/inspect.d.ts +18 -0
  257. package/dist/layout/inspect.js +81 -0
  258. package/dist/layout/lanePath.d.ts +23 -0
  259. package/dist/layout/lanePath.js +47 -0
  260. package/dist/layout/measure.d.ts +141 -0
  261. package/dist/layout/measure.js +477 -0
  262. package/dist/layout/primitives.d.ts +124 -0
  263. package/dist/layout/primitives.js +461 -0
  264. package/dist/layout/sweep.d.ts +59 -0
  265. package/dist/layout/sweep.js +257 -0
  266. package/dist/layout/toWorkflow.d.ts +43 -0
  267. package/dist/layout/toWorkflow.js +131 -0
  268. package/dist/layout/types.d.ts +93 -0
  269. package/dist/layout/types.js +35 -0
  270. package/dist/messages/defaults.d.ts +641 -26
  271. package/dist/messages/defaults.js +578 -25
  272. package/dist/messages/types.d.ts +21 -1
  273. package/dist/openapi/v1/openapi.yaml +109 -0
  274. package/dist/playground/index.d.ts +28 -1
  275. package/dist/playground/index.js +29 -0
  276. package/dist/playground/mount.d.ts +28 -2
  277. package/dist/playground/mount.js +41 -15
  278. package/dist/playground/runAction.d.ts +29 -0
  279. package/dist/playground/runAction.js +38 -0
  280. package/dist/services/doctorService.d.ts +52 -0
  281. package/dist/services/doctorService.js +113 -0
  282. package/dist/services/globalSave.js +12 -29
  283. package/dist/services/nodeExecutionService.d.ts +12 -1
  284. package/dist/services/nodeExecutionService.js +58 -58
  285. package/dist/services/playgroundService.d.ts +17 -2
  286. package/dist/services/playgroundService.js +48 -5
  287. package/dist/services/runsService.d.ts +42 -0
  288. package/dist/services/runsService.js +87 -0
  289. package/dist/services/toastQueue.d.ts +33 -0
  290. package/dist/services/toastQueue.js +38 -0
  291. package/dist/services/toastService.d.ts +30 -9
  292. package/dist/services/toastService.js +81 -46
  293. package/dist/settings/index.d.ts +1 -0
  294. package/dist/skins/graphite.d.ts +26 -0
  295. package/dist/skins/graphite.js +473 -0
  296. package/dist/skins/index.d.ts +2 -1
  297. package/dist/skins/index.js +4 -2
  298. package/dist/skins/slate.js +4 -4
  299. package/dist/stores/attachedRunStore.svelte.d.ts +35 -0
  300. package/dist/stores/attachedRunStore.svelte.js +47 -0
  301. package/dist/stores/connectDragStore.svelte.d.ts +39 -0
  302. package/dist/stores/connectDragStore.svelte.js +42 -0
  303. package/dist/stores/doctorStore.svelte.d.ts +79 -0
  304. package/dist/stores/doctorStore.svelte.js +244 -0
  305. package/dist/stores/editedNodesStore.svelte.d.ts +42 -0
  306. package/dist/stores/editedNodesStore.svelte.js +84 -0
  307. package/dist/stores/editorModeStore.svelte.d.ts +34 -0
  308. package/dist/stores/editorModeStore.svelte.js +55 -0
  309. package/dist/stores/instanceContainer.svelte.d.ts +53 -0
  310. package/dist/stores/instanceContainer.svelte.js +38 -1
  311. package/dist/stores/loopbackLanesStore.svelte.d.ts +18 -0
  312. package/dist/stores/loopbackLanesStore.svelte.js +25 -0
  313. package/dist/stores/nodeHighlightStore.svelte.d.ts +34 -0
  314. package/dist/stores/nodeHighlightStore.svelte.js +56 -0
  315. package/dist/stores/playgroundStore.svelte.d.ts +66 -2
  316. package/dist/stores/playgroundStore.svelte.js +164 -2
  317. package/dist/stores/runController.svelte.d.ts +382 -0
  318. package/dist/stores/runController.svelte.js +1217 -0
  319. package/dist/stores/settingsStore.svelte.d.ts +80 -18
  320. package/dist/stores/settingsStore.svelte.js +180 -62
  321. package/dist/stores/workflowStore.svelte.d.ts +14 -0
  322. package/dist/stores/workflowStore.svelte.js +22 -1
  323. package/dist/styles/base.css +286 -25
  324. package/dist/styles/fonts/Inter-LICENSE.txt +93 -0
  325. package/dist/styles/fonts/inter-latin-wght-normal.woff2 +0 -0
  326. package/dist/styles/fonts/inter.css +19 -0
  327. package/dist/styles/toast.css +100 -20
  328. package/dist/styles/tokenAliases.js +118 -1
  329. package/dist/styles/tokens.css +586 -14
  330. package/dist/svelte-app.d.ts +38 -5
  331. package/dist/svelte-app.js +14 -3
  332. package/dist/themes/graphite.d.ts +2 -0
  333. package/dist/themes/graphite.js +15 -0
  334. package/dist/themes/index.d.ts +2 -1
  335. package/dist/themes/index.js +22 -3
  336. package/dist/themes/minimal.js +10 -0
  337. package/dist/themes/scopedSkinCss.d.ts +22 -5
  338. package/dist/themes/scopedSkinCss.js +136 -11
  339. package/dist/types/chat.d.ts +6 -0
  340. package/dist/types/doctor.d.ts +82 -0
  341. package/dist/types/doctor.js +11 -0
  342. package/dist/types/events.d.ts +35 -0
  343. package/dist/types/events.js +4 -1
  344. package/dist/types/index.d.ts +17 -2
  345. package/dist/types/navbar.d.ts +36 -0
  346. package/dist/types/playground.d.ts +66 -0
  347. package/dist/types/settings.d.ts +120 -7
  348. package/dist/types/settings.js +35 -3
  349. package/dist/types/skin.d.ts +21 -8
  350. package/dist/types/theme.d.ts +40 -2
  351. package/dist/utils/appearance.d.ts +19 -0
  352. package/dist/utils/appearance.js +13 -0
  353. package/dist/utils/canvasFit.d.ts +41 -0
  354. package/dist/utils/canvasFit.js +44 -0
  355. package/dist/utils/chipTitles.d.ts +9 -0
  356. package/dist/utils/chipTitles.js +19 -0
  357. package/dist/utils/connections.js +8 -0
  358. package/dist/utils/consoleHighlight.d.ts +28 -0
  359. package/dist/utils/consoleHighlight.js +269 -0
  360. package/dist/utils/deprecation.d.ts +17 -0
  361. package/dist/utils/deprecation.js +29 -0
  362. package/dist/utils/doctorOperations.d.ts +40 -0
  363. package/dist/utils/doctorOperations.js +237 -0
  364. package/dist/utils/duration.d.ts +13 -0
  365. package/dist/utils/duration.js +40 -0
  366. package/dist/utils/inspectorContext.d.ts +19 -0
  367. package/dist/utils/inspectorContext.js +12 -0
  368. package/dist/utils/inspectorSections.d.ts +20 -0
  369. package/dist/utils/inspectorSections.js +44 -0
  370. package/dist/utils/inspectorSurface.d.ts +46 -0
  371. package/dist/utils/inspectorSurface.js +51 -0
  372. package/dist/utils/interfaceTags.d.ts +102 -0
  373. package/dist/utils/interfaceTags.js +211 -0
  374. package/dist/utils/itemRef.d.ts +86 -0
  375. package/dist/utils/itemRef.js +106 -0
  376. package/dist/utils/lastRun.d.ts +35 -0
  377. package/dist/utils/lastRun.js +73 -0
  378. package/dist/utils/messageNodeLink.d.ts +17 -0
  379. package/dist/utils/messageNodeLink.js +16 -0
  380. package/dist/utils/minimapVisibility.d.ts +28 -0
  381. package/dist/utils/minimapVisibility.js +34 -0
  382. package/dist/utils/nodeAriaLabel.d.ts +12 -0
  383. package/dist/utils/nodeAriaLabel.js +17 -0
  384. package/dist/utils/nodeFingerprint.d.ts +27 -0
  385. package/dist/utils/nodeFingerprint.js +66 -0
  386. package/dist/utils/nodeFormSchema.d.ts +10 -0
  387. package/dist/utils/nodeFormSchema.js +2 -2
  388. package/dist/utils/nodeGeometry.d.ts +168 -0
  389. package/dist/utils/nodeGeometry.js +204 -0
  390. package/dist/utils/nodeProblem.d.ts +19 -0
  391. package/dist/utils/nodeProblem.js +9 -0
  392. package/dist/utils/nodeStatus.d.ts +38 -3
  393. package/dist/utils/nodeStatus.js +67 -39
  394. package/dist/utils/nodeSwap.js +9 -1
  395. package/dist/utils/nodeWrapper.d.ts +1 -0
  396. package/dist/utils/playgroundHistory.d.ts +48 -0
  397. package/dist/utils/playgroundHistory.js +38 -0
  398. package/dist/utils/playgroundInputRuns.d.ts +26 -0
  399. package/dist/utils/playgroundInputRuns.js +50 -0
  400. package/dist/utils/portExposure.d.ts +49 -0
  401. package/dist/utils/portExposure.js +122 -0
  402. package/dist/utils/portUtils.d.ts +16 -0
  403. package/dist/utils/portUtils.js +37 -0
  404. package/dist/utils/portal.d.ts +0 -19
  405. package/dist/utils/portal.js +8 -1
  406. package/dist/utils/reservedPorts.d.ts +59 -0
  407. package/dist/utils/reservedPorts.js +60 -0
  408. package/dist/utils/runEdges.d.ts +24 -0
  409. package/dist/utils/runEdges.js +35 -0
  410. package/dist/utils/runsList.d.ts +69 -0
  411. package/dist/utils/runsList.js +134 -0
  412. package/dist/utils/selectOptions.d.ts +62 -0
  413. package/dist/utils/selectOptions.js +137 -0
  414. package/dist/utils/sessionRuns.d.ts +62 -0
  415. package/dist/utils/sessionRuns.js +123 -0
  416. package/dist/utils/sheetWidths.d.ts +29 -0
  417. package/dist/utils/sheetWidths.js +41 -0
  418. package/dist/utils/sidebarWidths.d.ts +34 -0
  419. package/dist/utils/sidebarWidths.js +47 -0
  420. package/dist/utils/straightWires.d.ts +73 -0
  421. package/dist/utils/straightWires.js +99 -0
  422. package/dist/utils/themeScope.svelte.d.ts +10 -0
  423. package/dist/utils/themeScope.svelte.js +80 -0
  424. package/dist/utils/wiredHandles.d.ts +10 -0
  425. package/dist/utils/wiredHandles.js +14 -0
  426. package/dist/utils/workflowDraft.d.ts +9 -0
  427. package/dist/utils/workflowDraft.js +39 -0
  428. package/dist/utils/workflowInterface.d.ts +40 -7
  429. package/dist/utils/workflowInterface.js +66 -16
  430. package/dist/utils/zoomTier.d.ts +43 -0
  431. package/dist/utils/zoomTier.js +107 -0
  432. package/dist/utils/zoomTierRows.d.ts +41 -0
  433. package/dist/utils/zoomTierRows.js +103 -0
  434. package/dist/webmcp/WebMCPConfirm.svelte +1 -1
  435. package/dist/webmcp/bridge.d.ts +5 -0
  436. package/dist/webmcp/bridge.js +8 -0
  437. package/dist/webmcp/bridgeController.svelte.d.ts +84 -0
  438. package/dist/webmcp/bridgeController.svelte.js +224 -0
  439. package/dist/webmcp/descriptors.d.ts +1 -1
  440. package/dist/webmcp/descriptors.js +66 -5
  441. package/dist/webmcp/fakeWidget.d.ts +34 -0
  442. package/dist/webmcp/fakeWidget.js +75 -0
  443. package/dist/webmcp/gate.js +4 -0
  444. package/dist/webmcp/index.d.ts +2 -0
  445. package/dist/webmcp/index.js +1 -0
  446. package/dist/webmcp/runtime.js +4 -1
  447. package/dist/webmcp/types.d.ts +2 -0
  448. package/dist/webmcp/validate.js +5 -1
  449. package/package.json +8 -2
  450. package/dist/components/Select.svelte +0 -53
  451. package/dist/components/Select.svelte.d.ts +0 -15
  452. package/dist/components/icons/CommandLineIcon.svelte +0 -15
  453. package/dist/components/icons/CommandLineIcon.svelte.d.ts +0 -26
  454. package/dist/components/toast/WarningIcon.svelte +0 -28
  455. package/dist/components/toast/WarningIcon.svelte.d.ts +0 -26
@@ -24,10 +24,19 @@
24
24
  // itself (dialog included) stays behind a dynamic import in ensureRuntime.
25
25
  import { describeCommand, summarizeCommands } from '../../webmcp/descriptors.js';
26
26
  import CommandPreview from './CommandPreview.svelte';
27
+ import Composer from '../primitives/Composer.svelte';
28
+ import Button from '../primitives/Button.svelte';
29
+ import IconButton from '../primitives/IconButton.svelte';
27
30
  import MarkdownDisplay from '../MarkdownDisplay.svelte';
31
+ import { chipTitles } from '../../utils/chipTitles.js';
28
32
  import { onDestroy, tick } from 'svelte';
29
33
  import Icon from '@iconify/svelte';
30
34
  import { getMessages, m } from '../../messages/index.js';
35
+ import { isRunStale } from '../../utils/sessionRuns.js';
36
+ import { formatClock, formatTimestamp } from '../playground/messageDisplay.js';
37
+ import { describeArgs, toolVerb, type ActivityRow as ToolLine } from '../../chat/activity.js';
38
+ import ActivityList from './ActivityList.svelte';
39
+ import ActivityRow from './ActivityRow.svelte';
31
40
 
32
41
  // =========================================================================
33
42
  // Internal Display Message Type
@@ -52,6 +61,10 @@
52
61
  commandsDismissed?: boolean;
53
62
  /** Tools mode: one compact status line per tool call of this turn */
54
63
  toolLines?: ToolLine[];
64
+ /** How long the turn took, wall-clock, for the fold of its activity rows. */
65
+ elapsedMs?: number;
66
+ /** When the message was made (ISO), for the meta line under it. */
67
+ at?: string;
55
68
  /** Set on the assistant placeholder while its reply is still coming */
56
69
  inProgress?: boolean;
57
70
  /** Tools mode: a muted notice (legacy fallback, abort) rather than a reply */
@@ -60,12 +73,6 @@
60
73
  warning?: string;
61
74
  }
62
75
 
63
- /** One tool call as the transcript shows it: what ran and how it ended. */
64
- interface ToolLine {
65
- status: 'running' | 'ok' | 'rejected' | 'failed' | 'note';
66
- text: string;
67
- }
68
-
69
76
  interface Props {
70
77
  nodeTypes: NodeMetadata[];
71
78
  workflowId?: string;
@@ -151,11 +158,60 @@
151
158
  // Derived State
152
159
  // =========================================================================
153
160
 
161
+ // ---- the attached run -----------------------------------------------------
162
+
163
+ const attachedId = $derived(fd.attachedRun.id);
164
+ const sessionRuns = $derived(fd.playground.sessionRuns);
165
+ /** The attached run as the session's runs list knows it (absent: a run it does not list). */
166
+ const attachedRun = $derived(
167
+ attachedId ? (sessionRuns?.runs.find((r) => r.id === attachedId) ?? null) : null
168
+ );
169
+ const attachedStatus = $derived(attachedRun?.status ?? fd.attachedRun.hint.status ?? null);
170
+ const attachedStale = $derived(
171
+ attachedRun
172
+ ? isRunStale(attachedRun.workflowVersion, sessionRuns?.workflowVersion ?? null)
173
+ : false
174
+ );
175
+
176
+ /** The list of attachable runs is open. */
177
+ let attachOpen = $state(false);
178
+ /** Set once the runs request answered, so the list can tell "none" from "not loaded yet". */
179
+ let attachLoaded = $state(false);
180
+
181
+ function statusLabel(status: string | null): string {
182
+ if (!status) return '';
183
+ const known = t.attach.statuses as Record<string, string>;
184
+ return known[status] ?? status;
185
+ }
186
+
187
+ function runTime(run: { startedAt: string | null }): string {
188
+ return run.startedAt ? formatTimestamp(run.startedAt) : '';
189
+ }
190
+
191
+ async function toggleAttachList(): Promise<void> {
192
+ attachOpen = !attachOpen;
193
+ if (!attachOpen) return;
194
+ // The list is not refreshed per turn: load it when it opens.
195
+ attachLoaded = false;
196
+ await fd.runs.loadSessionRuns();
197
+ attachLoaded = true;
198
+ }
199
+
200
+ function attachRun(id: string, status: string): void {
201
+ fd.attachedRun.attach(id, { status });
202
+ attachOpen = false;
203
+ }
204
+
205
+ // A run belongs to its workflow: another workflow's chat starts without one.
206
+ let attachedFor: string | undefined;
207
+ $effect(() => {
208
+ const id = workflowId;
209
+ if (attachedFor !== undefined && attachedFor !== id) fd.attachedRun.detach();
210
+ attachedFor = id;
211
+ });
212
+
154
213
  const isDisabled = $derived(!workflowId);
155
214
  const isChatConfigured = $derived(endpointConfig?.endpoints?.chat !== undefined);
156
- const canSend = $derived(
157
- inputValue.trim().length > 0 && !isLoading && !isDisabled && isChatConfigured
158
- );
159
215
 
160
216
  // =========================================================================
161
217
  // Auto-scroll
@@ -246,18 +302,6 @@
246
302
  return runtime;
247
303
  }
248
304
 
249
- /** Primitive argument values of a call, for a status line: `describe_type http_request`. */
250
- function argsDetail(args: Record<string, unknown>): string {
251
- const parts: string[] = [];
252
- for (const value of Object.values(args)) {
253
- if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
254
- parts.push(String(value));
255
- }
256
- }
257
- const text = parts.join(' ');
258
- return text.length > 60 ? `${text.slice(0, 57)}…` : text;
259
- }
260
-
261
305
  /**
262
306
  * What a call changed, for the transcript, in the dialog's own words: the
263
307
  * batch summary for several commands, the one-line description for one,
@@ -275,57 +319,86 @@
275
319
  return msg.toolLines?.[msg.toolLines.length - 1];
276
320
  }
277
321
 
322
+ /** When the running call of each line started, and which lines waited on the person (no honest duration). */
323
+ const lineStart = new WeakMap<ToolLine, number>();
324
+ const lineAsked = new WeakSet<ToolLine>();
325
+
326
+ /** Close a running line: how long it took, unless it waited on the person. */
327
+ function finishLine(line: ToolLine): void {
328
+ const started = lineStart.get(line);
329
+ if (started !== undefined && !lineAsked.has(line)) {
330
+ line.ms = Math.round(performance.now() - started);
331
+ }
332
+ }
333
+
334
+ /** A tool label that 2.11.0 hosts may still supply as `({ tool }) => string`. */
335
+ function toolLabel(label: string | ((params: { tool: string }) => string), tool: string): string {
336
+ return typeof label === 'function' ? label({ tool }) : label;
337
+ }
338
+
278
339
  /**
279
340
  * Render a driver event onto the in-progress assistant message. Synchronous
280
341
  * on purpose: events arrive in order and land in order.
281
342
  */
282
343
  function renderEvent(msg: DisplayMessage, event: TurnEvent): void {
283
344
  const tt = t.tools;
345
+ const verb = (tool: string, phase: 'running' | 'done') =>
346
+ toolVerb(tool, phase, tt.verbs, (name, p) => tt.verbFallback({ tool: name, phase: p }));
284
347
  switch (event.type) {
285
348
  case 'note':
286
- msg.toolLines?.push({ status: 'note', text: event.content });
349
+ msg.toolLines?.push({ status: 'note', verb: event.content, detail: '' });
287
350
  break;
288
351
  case 'reading':
352
+ case 'awaiting-approval': {
289
353
  msg.toolLines?.push({
290
354
  status: 'running',
291
- text: tt.reading({ tool: event.call.name, detail: argsDetail(event.call.args) })
292
- });
293
- break;
294
- case 'awaiting-approval':
295
- msg.toolLines?.push({
296
- status: 'running',
297
- text: tt.awaitingApproval({ tool: event.call.name })
355
+ verb:
356
+ event.type === 'awaiting-approval'
357
+ ? toolLabel(tt.awaitingApproval, event.call.name)
358
+ : verb(event.call.name, 'running'),
359
+ detail:
360
+ event.type === 'awaiting-approval'
361
+ ? verb(event.call.name, 'running')
362
+ : describeArgs(event.call.name, event.call.args)
298
363
  });
364
+ // The pushed object is proxied by the state array; track the proxy.
365
+ const line = lastLine(msg);
366
+ if (line) {
367
+ lineStart.set(line, performance.now());
368
+ if (event.type === 'awaiting-approval') lineAsked.add(line);
369
+ }
299
370
  break;
371
+ }
300
372
  case 'applied': {
301
373
  const line = lastLine(msg);
302
374
  if (line) {
375
+ finishLine(line);
303
376
  line.status = 'ok';
304
- line.text = event.preview?.mutating
305
- ? tt.applied({
306
- tool: event.call.name,
307
- detail: appliedDetail(event.preview, event.outcome)
308
- })
309
- : tt.read({ tool: event.call.name, detail: argsDetail(event.call.args) });
377
+ line.verb = verb(event.call.name, 'done');
378
+ line.detail =
379
+ event.call.name === 'batch' && event.preview?.mutating
380
+ ? appliedDetail(event.preview, event.outcome)
381
+ : describeArgs(event.call.name, event.call.args);
310
382
  }
311
383
  break;
312
384
  }
313
385
  case 'rejected': {
314
386
  const line = lastLine(msg);
315
387
  if (line) {
388
+ finishLine(line);
316
389
  line.status = 'rejected';
317
- line.text = tt.rejected({ tool: event.call.name });
390
+ line.verb = toolLabel(tt.rejected, event.call.name);
391
+ line.detail = verb(event.call.name, 'running');
318
392
  }
319
393
  break;
320
394
  }
321
395
  case 'failed': {
322
396
  const line = lastLine(msg);
323
397
  if (line) {
398
+ finishLine(line);
324
399
  line.status = 'failed';
325
- line.text = tt.failed({
326
- tool: event.call.name,
327
- error: event.outcome.error ?? event.outcome.code ?? 'error'
328
- });
400
+ line.verb = tt.failed({ action: verb(event.call.name, 'running') });
401
+ line.detail = event.outcome.error ?? event.outcome.code ?? 'error';
329
402
  }
330
403
  break;
331
404
  }
@@ -337,14 +410,16 @@
337
410
 
338
411
  /** One user message as a tool-calling turn. */
339
412
  async function sendToolTurn(text: string): Promise<void> {
340
- displayMessages.push({ role: 'user', content: text });
413
+ displayMessages.push({ role: 'user', content: text, at: new Date().toISOString() });
341
414
  isLoading = true;
342
415
 
416
+ const turnStart = performance.now();
343
417
  const progress: DisplayMessage = {
344
418
  role: 'assistant',
345
419
  content: '',
346
420
  toolLines: [],
347
- inProgress: true
421
+ inProgress: true,
422
+ at: new Date().toISOString()
348
423
  };
349
424
  displayMessages.push(progress);
350
425
  // The pushed object is proxied by the state array; mutate the proxy.
@@ -358,7 +433,9 @@
358
433
  message: text,
359
434
  workflowState: getWorkflowState(),
360
435
  history: history.slice(0, -2), // all except this message and the placeholder
361
- tools: toToolDefinitions(rt)
436
+ tools: toToolDefinitions(rt),
437
+ // The run the person attached, only while one is attached.
438
+ ...(attachedId ? { attachedRunId: attachedId } : {})
362
439
  },
363
440
  {
364
441
  send: (request) =>
@@ -397,6 +474,7 @@
397
474
  } catch (err) {
398
475
  msg.content = `Error: ${err instanceof Error ? err.message : 'Failed to send message'}`;
399
476
  } finally {
477
+ msg.elapsedMs = Math.round(performance.now() - turnStart);
400
478
  msg.inProgress = false;
401
479
  isLoading = false;
402
480
  if (destroyed) releaseRuntime();
@@ -417,7 +495,11 @@
417
495
 
418
496
  // No commands — pure chat message
419
497
  if (commands.length === 0) {
420
- return { role: 'assistant', content: explanation || responseContent };
498
+ return {
499
+ role: 'assistant',
500
+ content: explanation || responseContent,
501
+ at: new Date().toISOString()
502
+ };
421
503
  }
422
504
 
423
505
  const context = getCommandContext();
@@ -452,7 +534,8 @@
452
534
  const msg: DisplayMessage = {
453
535
  role: 'assistant',
454
536
  content: explanation || responseContent,
455
- rawContent: responseContent
537
+ rawContent: responseContent,
538
+ at: new Date().toISOString()
456
539
  };
457
540
 
458
541
  if (readOnlyResults.length > 0) {
@@ -650,7 +733,8 @@
650
733
  function appendErrorToHistory(errorMessage: string) {
651
734
  displayMessages.push({
652
735
  role: 'assistant',
653
- content: `Error: ${errorMessage}`
736
+ content: `Error: ${errorMessage}`,
737
+ at: new Date().toISOString()
654
738
  });
655
739
  }
656
740
 
@@ -662,7 +746,12 @@
662
746
  async function sendMessageInternal(text: string, retryAttempt?: number) {
663
747
  if (!text || isLoading || !workflowId) return;
664
748
 
665
- displayMessages.push({ role: 'user', content: text, retryAttempt });
749
+ displayMessages.push({
750
+ role: 'user',
751
+ content: text,
752
+ retryAttempt,
753
+ at: new Date().toISOString()
754
+ });
666
755
  isLoading = true;
667
756
 
668
757
  // The reply's place in the log, shown as thinking until it arrives — the
@@ -671,7 +760,8 @@
671
760
  displayMessages.push({
672
761
  role: 'assistant',
673
762
  content: '',
674
- inProgress: true
763
+ inProgress: true,
764
+ at: new Date().toISOString()
675
765
  }) - 1;
676
766
 
677
767
  try {
@@ -693,7 +783,8 @@
693
783
  const errorMessage = err instanceof Error ? err.message : 'Failed to send message';
694
784
  displayMessages[placeholderIndex] = {
695
785
  role: 'assistant',
696
- content: `Error: ${errorMessage}`
786
+ content: `Error: ${errorMessage}`,
787
+ at: new Date().toISOString()
697
788
  };
698
789
  } finally {
699
790
  isLoading = false;
@@ -712,13 +803,6 @@
712
803
  await sendMessageInternal(text);
713
804
  }
714
805
  }
715
-
716
- function handleKeydown(event: KeyboardEvent) {
717
- if (event.key === 'Enter' && !event.shiftKey) {
718
- event.preventDefault();
719
- sendMessage();
720
- }
721
- }
722
806
  </script>
723
807
 
724
808
  <div class="flowdrop-scope ai-chat-panel" role="region" aria-label={t.aiAssistant}>
@@ -739,19 +823,34 @@
739
823
  <div class="ai-chat-panel__messages" bind:this={messagesElement} role="log" aria-live="polite">
740
824
  {#if displayMessages.length === 0}
741
825
  <div class="ai-chat-panel__empty">
742
- <Icon icon="mdi:chat-outline" />
743
- <span>{t.helpBuild}</span>
826
+ <p class="ai-chat-panel__empty-title">{t.helpBuild}</p>
827
+ <div class="ai-chat-panel__suggestions" role="group" aria-label={t.suggestionsLabel}>
828
+ {#each t.suggestions as suggestion (suggestion)}
829
+ <Button
830
+ size="md"
831
+ variant="secondary"
832
+ class="ai-chat-panel__suggestion"
833
+ disabled={isLoading}
834
+ onclick={() => {
835
+ inputValue = suggestion;
836
+ void sendMessage();
837
+ }}
838
+ >
839
+ {suggestion}
840
+ </Button>
841
+ {/each}
842
+ </div>
744
843
  </div>
745
844
  {/if}
746
845
  <!-- Append-only chat log without stable IDs — index is the identity -->
747
846
  {#each displayMessages as message, msgIndex (msgIndex)}
748
847
  {#if message.retryAttempt !== undefined}
749
- <div
750
- class="ai-chat-panel__retry-notice"
751
- class:ai-chat-panel__retry-notice--active={displayMessages[msgIndex + 1]?.inProgress}
752
- >
753
- <Icon icon="mdi:autorenew" />
754
- <span>{t.autoRetry({ attempt: message.retryAttempt, max: MAX_AUTO_RETRIES })}</span>
848
+ <div class="ai-chat-panel__retry-notice">
849
+ <ActivityRow
850
+ status="retry"
851
+ active={displayMessages[msgIndex + 1]?.inProgress === true}
852
+ label={t.autoRetry({ attempt: message.retryAttempt, max: MAX_AUTO_RETRIES })}
853
+ />
755
854
  </div>
756
855
  {:else}
757
856
  <div
@@ -759,45 +858,40 @@
759
858
  class:ai-chat-panel__bubble--notice={message.notice}
760
859
  >
761
860
  {#if message.toolLines && message.toolLines.length > 0}
762
- <ul
763
- class="ai-chat-panel__tool-lines"
764
- aria-label={t.tools.rounds({ count: message.toolLines.length })}
765
- >
766
- {#each message.toolLines as line (line)}
767
- <li class="ai-chat-panel__tool-line ai-chat-panel__tool-line--{line.status}">
768
- {#if line.status === 'running'}
769
- <Icon icon="mdi:loading" class="ai-chat-panel__tool-line-spin" />
770
- {:else if line.status === 'ok'}
771
- <Icon icon="mdi:check" />
772
- {:else if line.status === 'rejected'}
773
- <Icon icon="mdi:cancel" />
774
- {:else if line.status === 'note'}
775
- <Icon icon="mdi:comment-text-outline" />
776
- {:else}
777
- <Icon icon="mdi:alert-circle-outline" />
778
- {/if}
779
- <span>{line.text}</span>
780
- </li>
781
- {/each}
782
- </ul>
861
+ <div class="ai-chat-panel__activity">
862
+ <ActivityList
863
+ rows={message.toolLines}
864
+ live={message.inProgress === true}
865
+ elapsedMs={message.elapsedMs}
866
+ />
867
+ </div>
783
868
  {/if}
784
869
  {#if message.role === 'user'}
785
870
  <div class="ai-chat-panel__bubble-content">{message.content}</div>
786
871
  {:else if message.inProgress && !message.content}
787
- <div class="ai-chat-panel__thinking">
788
- <span class="ai-chat-panel__dot"></span>
789
- <span class="ai-chat-panel__dot"></span>
790
- <span class="ai-chat-panel__dot"></span>
791
- </div>
872
+ {#if message.toolLines?.[message.toolLines.length - 1]?.status !== 'running'}
873
+ <div class="ai-chat-panel__activity">
874
+ <ActivityRow status="running" label={t.tools.thinking} />
875
+ </div>
876
+ {/if}
792
877
  {:else if message.notice}
793
- <div class="ai-chat-panel__bubble-content ai-chat-panel__notice-text">
794
- {message.content}
878
+ <div class="ai-chat-panel__activity">
879
+ <ActivityRow status="note" label={message.content} />
795
880
  </div>
796
881
  {:else}
797
- <div class="ai-chat-panel__bubble-content">
882
+ <div
883
+ class="ai-chat-panel__bubble-content"
884
+ title={message.at ? formatTimestamp(message.at) : undefined}
885
+ use:chipTitles={message.content}
886
+ >
798
887
  <MarkdownDisplay content={message.content} />
799
888
  </div>
800
889
  {/if}
890
+ {#if message.role === 'user' && message.at}
891
+ <div class="ai-chat-panel__meta">
892
+ <time datetime={message.at}>{formatClock(message.at)}</time>
893
+ </div>
894
+ {/if}
801
895
  {#if message.warning}
802
896
  <div class="ai-chat-panel__turn-warning" role="status">
803
897
  <Icon icon="mdi:alert-circle-outline" />
@@ -825,30 +919,210 @@
825
919
  {/each}
826
920
  </div>
827
921
 
828
- <!-- Input area -->
829
- <div class="ai-chat-panel__input-area">
830
- <textarea
831
- bind:this={inputElement}
922
+ <!-- The composer, with the attached run as a chip above it and the way to attach one inside it -->
923
+ <div class="ai-chat-panel__attach" data-testid="assistant-attach">
924
+ {#if attachedId}
925
+ <span
926
+ class="ai-chat-panel__run-chip"
927
+ class:ai-chat-panel__run-chip--failed={attachedStatus === 'failed'}
928
+ data-testid="assistant-run-chip"
929
+ data-run-id={attachedId}
930
+ role="group"
931
+ aria-label={t.attach.chipLabel}
932
+ >
933
+ <span class="ai-chat-panel__run-chip-text">
934
+ {t.attach.run({ id: attachedId })}
935
+ {#if attachedStatus}
936
+ <span class="ai-chat-panel__run-chip-status" data-testid="assistant-run-chip-status">
937
+ · {statusLabel(attachedStatus)}
938
+ </span>
939
+ {/if}
940
+ {#if attachedRun && runTime(attachedRun)}
941
+ <span class="ai-chat-panel__run-chip-time">· {runTime(attachedRun)}</span>
942
+ {/if}
943
+ </span>
944
+ {#if attachedStale}
945
+ <span
946
+ class="ai-chat-panel__run-chip-stale"
947
+ data-testid="assistant-run-chip-stale"
948
+ title={t.attach.staleTitle}
949
+ >
950
+ {t.attach.stale}
951
+ </span>
952
+ {/if}
953
+ <button
954
+ type="button"
955
+ class="ai-chat-panel__run-chip-remove"
956
+ aria-label={t.attach.detach}
957
+ data-testid="assistant-run-detach"
958
+ onclick={() => fd.attachedRun.detach()}
959
+ >
960
+ <Icon icon="mdi:close" />
961
+ </button>
962
+ </span>
963
+ {/if}
964
+ {#if attachOpen && !attachedId}
965
+ <ul
966
+ class="ai-chat-panel__attach-list"
967
+ aria-label={t.attach.listLabel}
968
+ data-testid="assistant-attach-list"
969
+ >
970
+ {#each sessionRuns ? [...sessionRuns.runs].reverse() : [] as run (run.id)}
971
+ <li>
972
+ <button
973
+ type="button"
974
+ class="ai-chat-panel__attach-item"
975
+ onclick={() => attachRun(run.id, run.status)}
976
+ >
977
+ <span>
978
+ {t.attach.run({ id: run.id })} · {statusLabel(run.status)}
979
+ {#if isRunStale(run.workflowVersion, sessionRuns?.workflowVersion ?? null)}
980
+ · {t.attach.stale}
981
+ {/if}
982
+ </span>
983
+ <small>{runTime(run)}{run.message ? ` · ${run.message}` : ''}</small>
984
+ </button>
985
+ </li>
986
+ {:else}
987
+ {#if attachLoaded}
988
+ <li class="ai-chat-panel__attach-empty" data-testid="assistant-attach-empty">
989
+ {sessionRuns ? t.attach.empty : t.attach.unavailable}
990
+ </li>
991
+ {/if}
992
+ {/each}
993
+ </ul>
994
+ {/if}
995
+ <Composer
832
996
  bind:value={inputValue}
833
- onkeydown={handleKeydown}
834
- class="ai-chat-panel__input"
997
+ bind:element={inputElement}
835
998
  placeholder={t.placeholder}
836
- rows="1"
837
999
  disabled={isLoading}
838
- ></textarea>
839
- <button
840
- class="ai-chat-panel__send"
841
- onclick={sendMessage}
842
- disabled={!canSend}
843
- aria-label={t.send}
1000
+ onsubmit={sendMessage}
844
1001
  >
845
- <Icon icon="mdi:send" />
846
- </button>
1002
+ {#snippet attach()}
1003
+ {#if !attachedId}
1004
+ <IconButton
1005
+ ariaLabel={t.attach.add}
1006
+ title={t.attach.add}
1007
+ active={attachOpen}
1008
+ aria-expanded={attachOpen}
1009
+ data-testid="assistant-attach-add"
1010
+ onclick={toggleAttachList}
1011
+ >
1012
+ <Icon icon="heroicons:paper-clip" />
1013
+ </IconButton>
1014
+ {/if}
1015
+ {/snippet}
1016
+ </Composer>
847
1017
  </div>
848
1018
  {/if}
849
1019
  </div>
850
1020
 
851
1021
  <style>
1022
+ /* The composer's frame: the attached-run chip above it, the run list popping up over it. */
1023
+ .ai-chat-panel__attach {
1024
+ position: relative;
1025
+ display: flex;
1026
+ flex-direction: column;
1027
+ align-items: flex-start;
1028
+ gap: var(--fd-space-xs);
1029
+ padding: var(--fd-space-xs) var(--fd-space-sm) var(--fd-space-sm);
1030
+ background: var(--fd-background);
1031
+ font-size: var(--fd-text-xs);
1032
+ }
1033
+
1034
+ .ai-chat-panel__run-chip {
1035
+ display: inline-flex;
1036
+ align-items: center;
1037
+ gap: var(--fd-space-xs);
1038
+ max-width: 100%;
1039
+ padding: 0.125rem 0.25rem 0.125rem 0.625rem;
1040
+ border: 1px solid var(--fd-border);
1041
+ border-radius: 999px;
1042
+ background: var(--fd-muted);
1043
+ font-family: var(--fd-font-mono, monospace);
1044
+ }
1045
+
1046
+ .ai-chat-panel__run-chip--failed {
1047
+ border-color: var(--fd-error, #b03a2e);
1048
+ }
1049
+
1050
+ .ai-chat-panel__run-chip-text {
1051
+ overflow: hidden;
1052
+ text-overflow: ellipsis;
1053
+ white-space: nowrap;
1054
+ }
1055
+
1056
+ .ai-chat-panel__run-chip-stale {
1057
+ flex-shrink: 0;
1058
+ padding: 0 0.375rem;
1059
+ border-radius: 999px;
1060
+ background: var(--fd-warning-muted, var(--fd-background));
1061
+ color: var(--fd-warning, #a8650c);
1062
+ }
1063
+
1064
+ .ai-chat-panel__run-chip-remove {
1065
+ display: inline-grid;
1066
+ place-items: center;
1067
+ flex-shrink: 0;
1068
+ width: 1.25rem;
1069
+ height: 1.25rem;
1070
+ border: 0;
1071
+ border-radius: 50%;
1072
+ background: none;
1073
+ color: var(--fd-muted-foreground);
1074
+ cursor: pointer;
1075
+ }
1076
+
1077
+ .ai-chat-panel__run-chip-remove:hover {
1078
+ color: var(--fd-foreground);
1079
+ background: var(--fd-background);
1080
+ }
1081
+
1082
+ .ai-chat-panel__attach-list {
1083
+ position: absolute;
1084
+ left: var(--fd-space-sm);
1085
+ right: var(--fd-space-sm);
1086
+ bottom: 100%;
1087
+ z-index: 5;
1088
+ margin: 0;
1089
+ padding: 0.25rem;
1090
+ list-style: none;
1091
+ max-height: 14rem;
1092
+ overflow-y: auto;
1093
+ background: var(--fd-background);
1094
+ border: 1px solid var(--fd-border);
1095
+ border-radius: var(--fd-radius-md, 0.5rem);
1096
+ box-shadow: var(--fd-shadow-md);
1097
+ }
1098
+
1099
+ .ai-chat-panel__attach-item {
1100
+ display: flex;
1101
+ flex-direction: column;
1102
+ width: 100%;
1103
+ padding: 0.25rem 0.5rem;
1104
+ border: 0;
1105
+ border-radius: 0.25rem;
1106
+ background: none;
1107
+ color: var(--fd-foreground);
1108
+ font: inherit;
1109
+ text-align: left;
1110
+ cursor: pointer;
1111
+ }
1112
+
1113
+ .ai-chat-panel__attach-item:hover {
1114
+ background: var(--fd-muted);
1115
+ }
1116
+
1117
+ .ai-chat-panel__attach-item small,
1118
+ .ai-chat-panel__attach-empty {
1119
+ color: var(--fd-muted-foreground);
1120
+ }
1121
+
1122
+ .ai-chat-panel__attach-empty {
1123
+ padding: 0.25rem 0.5rem;
1124
+ }
1125
+
852
1126
  .ai-chat-panel {
853
1127
  display: flex;
854
1128
  flex-direction: column;
@@ -882,10 +1156,10 @@
882
1156
  .ai-chat-panel__messages {
883
1157
  flex: 1;
884
1158
  overflow-y: auto;
885
- padding: var(--fd-space-sm);
1159
+ padding: var(--fd-msg-stream-pad, var(--fd-space-sm));
886
1160
  display: flex;
887
1161
  flex-direction: column;
888
- gap: var(--fd-space-xs);
1162
+ gap: var(--fd-msg-gap, var(--fd-space-xs));
889
1163
  scrollbar-width: thin;
890
1164
  scrollbar-color: var(--fd-scrollbar-thumb) var(--fd-scrollbar-track);
891
1165
  }
@@ -911,44 +1185,54 @@
911
1185
  .ai-chat-panel__empty {
912
1186
  display: flex;
913
1187
  flex-direction: column;
914
- align-items: center;
915
- justify-content: center;
916
- gap: var(--fd-space-xs);
917
- height: 100%;
918
- color: var(--fd-muted-foreground);
919
- font-size: var(--fd-text-sm);
920
- opacity: 0.6;
1188
+ align-items: flex-start;
1189
+ gap: var(--fd-space-sm);
1190
+ padding: var(--fd-space-md) var(--fd-space-xs);
921
1191
  }
922
1192
 
923
- .ai-chat-panel__empty :global(svg) {
924
- font-size: 1.5rem;
1193
+ .ai-chat-panel__empty-title {
1194
+ margin: 0;
1195
+ color: var(--fd-muted-foreground);
1196
+ font-size: var(--fd-text-body);
925
1197
  }
926
1198
 
927
- /* Auto-retry notice */
928
- .ai-chat-panel__retry-notice {
1199
+ .ai-chat-panel__suggestions {
929
1200
  display: flex;
930
- align-items: center;
931
- justify-content: center;
1201
+ flex-wrap: wrap;
932
1202
  gap: var(--fd-space-xs);
933
- font-size: var(--fd-text-xs);
934
- color: var(--fd-muted-foreground);
935
- opacity: 0.7;
1203
+ }
1204
+
1205
+ /* A suggestion: a quiet pill that sends its own label. */
1206
+ .ai-chat-panel__suggestions :global(.ai-chat-panel__suggestion) {
1207
+ border-radius: var(--fd-radius-full);
1208
+ font-size: var(--fd-text-meta);
1209
+ }
1210
+
1211
+ /* Activity: tool rows, notices, retries and "Thinking…" share one row (ActivityRow). */
1212
+ .ai-chat-panel__activity {
936
1213
  padding: var(--fd-space-3xs) 0;
937
- animation: fadeIn 0.15s ease-out;
938
1214
  }
939
1215
 
940
- .ai-chat-panel__retry-notice--active :global(svg) {
941
- animation: spin 1s linear infinite;
1216
+ /* One step of room between the activity and the reply under it. */
1217
+ .ai-chat-panel__activity + .ai-chat-panel__bubble-content {
1218
+ margin-top: var(--fd-space-xs);
1219
+ }
1220
+
1221
+ .ai-chat-panel__retry-notice {
1222
+ padding: var(--fd-space-3xs) 0;
1223
+ animation: fadeIn 0.15s ease-out;
942
1224
  }
943
1225
 
944
1226
  /* Message bubbles */
1227
+ /* The same anatomy as the Playground (`--fd-msg-*`, see ChatBubble); the fallbacks are this panel's own look. */
945
1228
  .ai-chat-panel__bubble {
946
- max-width: 80%;
1229
+ max-width: var(--fd-msg-reply-max, 80%);
947
1230
  animation: fadeIn 0.15s ease-out;
948
1231
  }
949
1232
 
950
1233
  .ai-chat-panel__bubble--user {
951
1234
  align-self: flex-end;
1235
+ max-width: var(--fd-msg-user-max, 80%);
952
1236
  }
953
1237
 
954
1238
  .ai-chat-panel__bubble--assistant {
@@ -956,24 +1240,47 @@
956
1240
  }
957
1241
 
958
1242
  .ai-chat-panel__bubble-content {
959
- padding: var(--fd-space-xs) var(--fd-space-sm);
1243
+ padding: var(--fd-msg-reply-pad, var(--fd-space-xs) var(--fd-space-sm));
960
1244
  border-radius: var(--fd-radius-md);
961
- font-size: var(--fd-text-sm);
962
- line-height: 1.5;
1245
+ font-size: var(--fd-msg-text-size, var(--fd-text-sm));
1246
+ line-height: var(--fd-msg-text-leading, 1.5);
963
1247
  word-break: break-word;
964
1248
  }
965
1249
 
966
1250
  .ai-chat-panel__bubble--user .ai-chat-panel__bubble-content {
967
- background: var(--fd-primary);
968
- color: var(--fd-primary-foreground);
969
- border-bottom-right-radius: var(--fd-radius-xs);
1251
+ padding: var(--fd-msg-user-pad, var(--fd-space-xs) var(--fd-space-sm));
1252
+ background: var(--fd-msg-user-bg, var(--fd-primary));
1253
+ color: var(--fd-msg-user-fg, var(--fd-primary-foreground));
1254
+ border-radius: var(--fd-msg-user-radius, var(--fd-radius-md));
1255
+ border-bottom-right-radius: var(--fd-msg-tail-radius, var(--fd-radius-xs));
970
1256
  white-space: pre-wrap;
971
1257
  }
972
1258
 
973
1259
  .ai-chat-panel__bubble--assistant .ai-chat-panel__bubble-content {
974
- background: var(--fd-muted);
1260
+ background: var(--fd-msg-reply-bg, var(--fd-muted));
975
1261
  color: var(--fd-foreground);
976
- border-bottom-left-radius: var(--fd-radius-xs);
1262
+ border-radius: var(--fd-msg-reply-radius, var(--fd-radius-md));
1263
+ border-bottom-left-radius: var(--fd-msg-reply-tail-radius, var(--fd-radius-xs));
1264
+ }
1265
+
1266
+ /* The time under your own message, shown on hover; a reply carries its time as a tooltip. */
1267
+ .ai-chat-panel__meta {
1268
+ display: var(--fd-msg-meta-display, none);
1269
+ gap: var(--fd-space-3xs);
1270
+ margin-top: var(--fd-space-3xs);
1271
+ font-size: var(--fd-text-meta);
1272
+ color: var(--fd-muted-foreground);
1273
+ }
1274
+
1275
+ .ai-chat-panel__bubble--user .ai-chat-panel__meta {
1276
+ justify-content: flex-end;
1277
+ opacity: 0;
1278
+ transition: opacity var(--fd-transition-fast);
1279
+ }
1280
+
1281
+ .ai-chat-panel__bubble--user:hover .ai-chat-panel__meta,
1282
+ .ai-chat-panel__bubble--user:focus-within .ai-chat-panel__meta {
1283
+ opacity: 1;
977
1284
  }
978
1285
 
979
1286
  /* Markdown typography inside assistant bubbles */
@@ -1006,15 +1313,26 @@
1006
1313
  .ai-chat-panel__bubble--assistant .ai-chat-panel__bubble-content :global(code) {
1007
1314
  font-family: var(--fd-font-mono);
1008
1315
  font-size: 0.875em;
1009
- background: var(--fd-background);
1316
+ background: var(--fd-msg-code-bg, var(--fd-background));
1010
1317
  padding: 0.1em 0.3em;
1011
1318
  border-radius: var(--fd-radius-xs);
1012
1319
  }
1013
1320
 
1321
+ /* Node references are inline code, drawn as chips: a long id ends in an
1322
+ ellipsis (the full text is the title) instead of widening the panel. */
1323
+ .ai-chat-panel__bubble--assistant .ai-chat-panel__bubble-content :global(:not(pre) > code) {
1324
+ display: inline-block;
1325
+ max-width: 100%;
1326
+ overflow: hidden;
1327
+ text-overflow: ellipsis;
1328
+ white-space: nowrap;
1329
+ vertical-align: bottom;
1330
+ }
1331
+
1014
1332
  .ai-chat-panel__bubble--assistant .ai-chat-panel__bubble-content :global(pre) {
1015
- background: var(--fd-background);
1016
- border: 1px solid var(--fd-border);
1017
- border-radius: var(--fd-radius-sm);
1333
+ background: var(--fd-msg-pre-bg, var(--fd-background));
1334
+ border: var(--fd-msg-pre-border-width, 1px) solid var(--fd-border);
1335
+ border-radius: var(--fd-msg-pre-radius, var(--fd-radius-sm));
1018
1336
  padding: var(--fd-space-xs) var(--fd-space-sm);
1019
1337
  overflow-x: auto;
1020
1338
  margin: 0.5em 0;
@@ -1034,54 +1352,6 @@
1034
1352
  font-style: italic;
1035
1353
  }
1036
1354
 
1037
- /* Tools mode: one status line per tool call */
1038
- .ai-chat-panel__tool-lines {
1039
- list-style: none;
1040
- margin: 0 0 var(--fd-space-3xs);
1041
- padding: 0;
1042
- display: flex;
1043
- flex-direction: column;
1044
- gap: 2px;
1045
- }
1046
-
1047
- .ai-chat-panel__tool-line {
1048
- display: flex;
1049
- align-items: flex-start;
1050
- gap: var(--fd-space-3xs);
1051
- font-size: var(--fd-text-xs);
1052
- color: var(--fd-muted-foreground);
1053
- line-height: 1.4;
1054
- }
1055
-
1056
- .ai-chat-panel__tool-line :global(svg) {
1057
- flex-shrink: 0;
1058
- font-size: 0.9rem;
1059
- margin-top: 0.1em;
1060
- }
1061
-
1062
- .ai-chat-panel__tool-line--ok :global(svg) {
1063
- color: var(--fd-success, var(--fd-primary));
1064
- }
1065
-
1066
- .ai-chat-panel__tool-line--rejected,
1067
- .ai-chat-panel__tool-line--failed {
1068
- color: var(--fd-destructive, var(--fd-foreground));
1069
- }
1070
-
1071
- .ai-chat-panel__tool-line :global(.ai-chat-panel__tool-line-spin) {
1072
- animation: spin 1s linear infinite;
1073
- }
1074
-
1075
- .ai-chat-panel__tool-line--note {
1076
- color: var(--fd-foreground);
1077
- font-style: italic;
1078
- white-space: pre-wrap;
1079
- }
1080
-
1081
- .ai-chat-panel__tool-line--note :global(svg) {
1082
- color: var(--fd-muted-foreground);
1083
- }
1084
-
1085
1355
  /* Deterministic warning under the reply (e.g. tool calls failed this turn) */
1086
1356
  .ai-chat-panel__turn-warning {
1087
1357
  display: flex;
@@ -1089,25 +1359,17 @@
1089
1359
  gap: var(--fd-space-3xs);
1090
1360
  margin-top: var(--fd-space-3xs);
1091
1361
  font-size: var(--fd-text-xs);
1092
- color: var(--fd-destructive, var(--fd-foreground));
1362
+ color: var(--fd-error);
1093
1363
  }
1094
1364
 
1095
1365
  .ai-chat-panel__turn-warning :global(svg) {
1096
1366
  flex-shrink: 0;
1097
1367
  }
1098
1368
 
1099
- /* Notices (legacy fallback, aborted turn) */
1369
+ /* Notices (legacy fallback, aborted turn) are activity rows, centred in the log. */
1100
1370
  .ai-chat-panel__bubble--notice {
1101
1371
  max-width: 100%;
1102
- align-self: center;
1103
- }
1104
-
1105
- .ai-chat-panel__bubble--notice .ai-chat-panel__notice-text {
1106
- background: none;
1107
- color: var(--fd-muted-foreground);
1108
- font-size: var(--fd-text-xs);
1109
- text-align: center;
1110
- opacity: 0.8;
1372
+ align-self: stretch;
1111
1373
  }
1112
1374
 
1113
1375
  /* Read-only command results */
@@ -1148,115 +1410,4 @@
1148
1410
  transform: translateY(0);
1149
1411
  }
1150
1412
  }
1151
-
1152
- /* Thinking indicator */
1153
- .ai-chat-panel__thinking {
1154
- display: flex;
1155
- gap: 4px;
1156
- padding: var(--fd-space-xs) var(--fd-space-sm);
1157
- background: var(--fd-muted);
1158
- border-radius: var(--fd-radius-md);
1159
- border-bottom-left-radius: var(--fd-radius-xs);
1160
- }
1161
-
1162
- .ai-chat-panel__dot {
1163
- width: 6px;
1164
- height: 6px;
1165
- border-radius: 50%;
1166
- background: var(--fd-muted-foreground);
1167
- animation: bounce 1.4s ease-in-out infinite;
1168
- }
1169
-
1170
- .ai-chat-panel__dot:nth-child(2) {
1171
- animation-delay: 0.2s;
1172
- }
1173
-
1174
- .ai-chat-panel__dot:nth-child(3) {
1175
- animation-delay: 0.4s;
1176
- }
1177
-
1178
- @keyframes spin {
1179
- from {
1180
- transform: rotate(0deg);
1181
- }
1182
- to {
1183
- transform: rotate(360deg);
1184
- }
1185
- }
1186
-
1187
- @keyframes bounce {
1188
- 0%,
1189
- 60%,
1190
- 100% {
1191
- transform: translateY(0);
1192
- }
1193
- 30% {
1194
- transform: translateY(-4px);
1195
- }
1196
- }
1197
-
1198
- /* Input area */
1199
- .ai-chat-panel__input-area {
1200
- display: flex;
1201
- align-items: flex-end;
1202
- gap: var(--fd-space-xs);
1203
- padding: var(--fd-space-xs) var(--fd-space-sm);
1204
- border-top: 1px solid var(--fd-border);
1205
- background: var(--fd-background);
1206
- }
1207
-
1208
- .ai-chat-panel__input {
1209
- flex: 1;
1210
- resize: none;
1211
- border: 1px solid var(--fd-border);
1212
- border-radius: var(--fd-radius-md);
1213
- padding: var(--fd-space-xs) var(--fd-space-sm);
1214
- font-family: var(--fd-font-sans, inherit);
1215
- font-size: var(--fd-text-sm);
1216
- line-height: 1.4;
1217
- color: var(--fd-foreground);
1218
- background: var(--fd-card);
1219
- outline: none;
1220
- max-height: 80px;
1221
- overflow-y: auto;
1222
- }
1223
-
1224
- .ai-chat-panel__input:focus {
1225
- border-color: var(--fd-primary);
1226
- }
1227
-
1228
- .ai-chat-panel__input:disabled {
1229
- opacity: 0.5;
1230
- cursor: not-allowed;
1231
- }
1232
-
1233
- .ai-chat-panel__input::placeholder {
1234
- color: var(--fd-muted-foreground);
1235
- }
1236
-
1237
- .ai-chat-panel__send {
1238
- display: flex;
1239
- align-items: center;
1240
- justify-content: center;
1241
- width: 32px;
1242
- height: 32px;
1243
- border: none;
1244
- border-radius: var(--fd-radius-md);
1245
- background: var(--fd-primary);
1246
- color: var(--fd-primary-foreground);
1247
- cursor: pointer;
1248
- flex-shrink: 0;
1249
- transition:
1250
- background-color var(--fd-transition-fast),
1251
- opacity var(--fd-transition-fast);
1252
- }
1253
-
1254
- .ai-chat-panel__send:hover:not(:disabled) {
1255
- background: var(--fd-primary-hover);
1256
- }
1257
-
1258
- .ai-chat-panel__send:disabled {
1259
- opacity: 0.4;
1260
- cursor: not-allowed;
1261
- }
1262
1413
  </style>