@flowdrop/flowdrop 2.11.0 → 2.13.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 +233 -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 +976 -226
  16. package/dist/components/App.svelte.d.ts +34 -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 +82 -0
  157. package/dist/components/playground/DockedPlayground.svelte.d.ts +30 -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 +4 -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 +47 -5
  331. package/dist/svelte-app.js +15 -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 +75 -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
@@ -40,7 +40,7 @@
40
40
  *
41
41
  * Dark mode support
42
42
  * -----------------
43
- * FlowDrop respects `data-theme="dark"` on the <html> element. Override the
43
+ * The resolved scheme is `data-theme` on each editor scope element (the source); `<html data-theme>` is a deprecated mirror (removed in 3.0). Override the
44
44
  * same @public tokens inside `[data-theme="dark"]` to customise dark mode:
45
45
  *
46
46
  * [data-theme="dark"] {
@@ -186,6 +186,29 @@
186
186
  --fd-note-border: var(--fd-node-border); /* @public notes-node outline */
187
187
  --fd-note-border-hover: var(--fd-node-border-hover); /* @public notes-node outline (hover) */
188
188
 
189
+ /* ----- NOTES (annotations: paper surface, tinted inset edge, capped markdown scale) ----- */
190
+ --fd-note-radius: 4px; /* @internal notes are not nodes: a tighter corner */
191
+ --fd-note-padding: 20px; /* @internal keep a multiple of the 20px grid */
192
+ --fd-note-bg: var(--fd-muted); /* @internal plain "note" paper */
193
+ --fd-note-edge: var(--fd-node-border); /* @internal plain "note" inset edge */
194
+ --fd-note-info-bg: var(--fd-info-muted); /* @internal info paper */
195
+ --fd-note-warning-bg: var(--fd-warning-muted); /* @internal */
196
+ --fd-note-success-bg: var(--fd-success-muted); /* @internal */
197
+ --fd-note-error-bg: var(--fd-error-muted); /* @internal */
198
+ --fd-note-edge-mix: 22%; /* @internal share of the type accent in the inset edge of tinted notes */
199
+ --fd-note-shadow: none; /* @internal resting lift; the edge is an inset shadow */
200
+ --fd-note-fg: var(--fd-foreground); /* @internal note text */
201
+ --fd-note-meta: var(--fd-muted-foreground); /* @internal footer word */
202
+ --fd-note-h1-size: 15px; /* @internal markdown h1, capped for the canvas */
203
+ --fd-note-h2-size: 13px; /* @internal markdown h2 and smaller headings */
204
+ --fd-note-heading-weight: 600; /* @internal */
205
+ --fd-note-body-size: 12.5px; /* @internal */
206
+ --fd-note-line: 20px; /* @internal line height; every text line is one grid row */
207
+ --fd-note-meta-size: 11px; /* @internal footer word */
208
+ --fd-note-zoom-outline-size: 20px; /* @internal first heading in the outline tier, flow px */
209
+ --fd-note-zoom-size: 30px; /* @internal first heading in the glyph tier, flow px */
210
+ --fd-note-zoom-map-mix: 60%; /* @internal map: how much of the note's edge tint fills it */
211
+
189
212
  /* ----- CANVAS GRID (pattern color for the editor background grid; any theme
190
213
  can recolor whichever grid variant it picks via config.canvas.grid).
191
214
  Default matches xyflow's dot-grid color so the default theme is unchanged. */
@@ -232,14 +255,29 @@
232
255
  --fd-info-foreground: #ffffff; /* @public */
233
256
  --fd-info-muted: var(--_blue-1); /* @public */
234
257
 
235
- /* ----- SPACING SCALE (Named sizes) ----- */
258
+ /* ----- RUN STATUS ROLES -----
259
+ What a node or run is doing, named by status rather than by hue, so a theme
260
+ can recolour "running" without touching "info". `-soft` is the tinted
261
+ background behind the status colour. */
262
+ --fd-status-running: var(--fd-info); /* @public */
263
+ --fd-status-running-soft: var(--fd-info-muted); /* @public */
264
+ --fd-status-completed: var(--fd-success); /* @public */
265
+ --fd-status-completed-soft: var(--fd-success-muted); /* @public */
266
+ --fd-status-waiting: var(--fd-warning); /* @public */
267
+ --fd-status-waiting-soft: var(--fd-warning-muted); /* @public */
268
+ --fd-status-failed: var(--fd-error); /* @public */
269
+ --fd-status-failed-soft: var(--fd-error-muted); /* @public */
270
+ --fd-status-skipped: var(--fd-muted-foreground); /* @public */
271
+ --fd-status-skipped-soft: var(--fd-muted); /* @public */
272
+
273
+ /* ----- SPACING SCALE (4px grid; 2xs/sm/lg collapsed onto it) ----- */
236
274
  --fd-space-0: 0; /* @public */
237
275
  --fd-space-3xs: 0.25rem; /* @public 4px */
238
- --fd-space-2xs: 0.375rem; /* @public 6px */
276
+ --fd-space-2xs: 0.25rem; /* @public 4px (was 6px) */
239
277
  --fd-space-xs: 0.5rem; /* @public 8px */
240
- --fd-space-sm: 0.625rem; /* @public 10px */
278
+ --fd-space-sm: 0.5rem; /* @public 8px (was 10px) */
241
279
  --fd-space-md: 0.75rem; /* @public 12px */
242
- --fd-space-lg: 0.875rem; /* @public 14px */
280
+ --fd-space-lg: 0.75rem; /* @public 12px (was 14px) */
243
281
  --fd-space-xl: 1rem; /* @public 16px */
244
282
  --fd-space-2xl: 1.25rem; /* @public 20px */
245
283
  --fd-space-3xl: 1.5rem; /* @public 24px */
@@ -251,7 +289,7 @@
251
289
  /* ----- BORDER RADIUS ----- */
252
290
  --fd-radius-none: 0; /* @public */
253
291
  --fd-radius-sm: 0.25rem; /* @public 4px */
254
- --fd-radius-md: 0.375rem; /* @public 6px */
292
+ --fd-radius-md: 0.25rem; /* @public 4px (was 6px) */
255
293
  --fd-radius-lg: 0.5rem; /* @public 8px */
256
294
  --fd-radius-xl: 0.75rem; /* @public 12px */
257
295
  --fd-radius-2xl: 1rem; /* @public 16px */
@@ -269,14 +307,16 @@
269
307
  --fd-shadow-lg: 0 10px 20px rgb(0 0 0 / 0.08), 0 4px 8px rgb(0 0 0 / 0.04); /* @public */
270
308
  --fd-shadow-xl: 0 20px 30px rgb(0 0 0 / 0.1), 0 8px 16px rgb(0 0 0 / 0.06); /* @public */
271
309
 
272
- /* ----- FONT SIZES ----- */
310
+ /* ----- FONT SIZES -----
311
+ Six steps: 11 meta, 12 small, 13 body, 15 title, 20 heading, 24 display.
312
+ Names are kept; sm/base/lg moved onto the steps (xsm=sm, md=base, lg=xl). */
273
313
  --fd-text-2xs: 0.6875rem; /* @public 11px */
274
314
  --fd-text-xs: 0.75rem; /* @public 12px */
275
315
  --fd-text-xsm: 0.8125rem; /* @public 13px */
276
- --fd-text-sm: 0.875rem; /* @public 14px */
316
+ --fd-text-sm: 0.8125rem; /* @public 13px (was 14px) */
277
317
  --fd-text-md: 0.9375rem; /* @public 15px */
278
- --fd-text-base: 1rem; /* @public 16px */
279
- --fd-text-lg: 1.125rem; /* @public 18px */
318
+ --fd-text-base: 0.9375rem; /* @public 15px (was 16px) */
319
+ --fd-text-lg: 1.25rem; /* @public 20px (was 18px) */
280
320
  --fd-text-xl: 1.25rem; /* @public 20px */
281
321
  --fd-text-2xl: 1.5rem; /* @public 24px */
282
322
 
@@ -286,7 +326,8 @@
286
326
  --fd-leading-relaxed: 1.6; /* @public */
287
327
 
288
328
  /* ----- FONT FAMILIES ----- */
289
- /* The editor inherits the host page's font. This stack is for UI the
329
+ /* A skin may name a font (FlowDropSkin.font): the scoped skin rule then sets this token and
330
+ font-family on the editor root. Without one, the editor inherits the host page's font. This stack is for UI the
290
331
  library mounts outside the editor's subtree (the WebMCP confirm dialog
291
332
  on document.body), where "inherit" means whatever the host's body has —
292
333
  on Drupal admin themes, the browser's serif fallback. */
@@ -295,6 +336,210 @@
295
336
  --fd-font-mono:
296
337
  ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace; /* @public */
297
338
 
339
+ /* ----- CONTROL AND PANEL HEIGHTS ----- */
340
+ --fd-control-sm: 1.5rem; /* @public 24px */
341
+ --fd-control-md: 1.75rem; /* @public 28px */
342
+ --fd-control-lg: 2rem; /* @public 32px */
343
+ --fd-panel-header: 2.5rem; /* @public 40px */
344
+
345
+ /* ----- ROLE TOKENS (shape, elevation, text) -----
346
+ What a piece of UI is, not which step of a scale it uses, so a theme can
347
+ move one role without moving the scale. Defaults keep the look each
348
+ component had before the roles existed. */
349
+ --fd-radius-surface: var(--fd-radius-lg); /* @internal cards, nodes, floating controls, sheets */
350
+ --fd-radius-bubble: var(--fd-radius-xl); /* @internal message bubbles and the composer */
351
+ --fd-elevation-float: var(--fd-shadow-md); /* @internal anything floating over the canvas */
352
+ --fd-float-border: var(--fd-border); /* @internal rule around floating controls */
353
+ --fd-text-body: var(--fd-text-base); /* @internal running text in panels and messages */
354
+ --fd-text-meta: var(--fd-text-xs); /* @internal timestamps, origins, help text */
355
+ --fd-scrollbar-size: 10px; /* @internal scrollbar width in the editor */
356
+
357
+ /* ----- FORM CONTROL, BUTTON, MENU, SHEET AND MODAL KNOBS -----
358
+ Defaults reproduce the Default theme; Graphite sets its own (skins/graphite.ts). */
359
+ --fd-field-height: auto; /* @internal input/select height; auto = padding + line */
360
+ --fd-field-height-sm: auto; /* @internal small input/select height */
361
+ --fd-field-padding: 0.625rem 0.875rem; /* @internal input/select padding */
362
+ --fd-field-padding-multiline: 0.625rem 0.875rem; /* @internal textarea padding */
363
+ --fd-field-min-height-multiline: 5rem; /* @internal textarea min height */
364
+ --fd-field-border-color: var(--fd-border); /* @internal resting control rule */
365
+ --fd-field-shadow: var(--fd-shadow-sm); /* @internal resting control shadow */
366
+ --fd-field-focus-shadow: var(
367
+ --fd-shadow-sm
368
+ ); /* @internal control shadow while focused (accent ring) */
369
+ --fd-field-focus-outline: var(--fd-ring-width) solid var(--fd-ring); /* @internal focus-visible outline on text controls */
370
+ --fd-field-label-size: 0.8125rem; /* @internal label above a form control */
371
+ --fd-field-label-weight: 600; /* @internal label above a form control */
372
+ --fd-field-help-size: var(--fd-text-meta); /* @internal help text under a form control (12px) */
373
+ --fd-switch-width: 1.75rem; /* @internal switch track width (28px) */
374
+ --fd-switch-height: 1rem; /* @internal switch track height (16px) */
375
+ --fd-switch-inset: 0.125rem; /* @internal gap between switch track and thumb */
376
+ --fd-switch-off-bg: var(--fd-border-strong); /* @internal switch track, off */
377
+ --fd-switch-on-bg: var(--fd-primary); /* @internal switch track, on */
378
+ --fd-switch-thumb-bg: var(--fd-background); /* @internal switch thumb */
379
+ --fd-checkbox-size: 1rem; /* @internal checkbox box (16px) */
380
+ --fd-checkbox-radius: 0.25rem; /* @internal checkbox corner (4px) */
381
+ --fd-checkbox-on-bg: var(--fd-primary); /* @internal checkbox fill when checked */
382
+ --fd-checkbox-on-fg: var(--fd-primary-foreground); /* @internal check mark */
383
+ --fd-button-secondary-border: var(--fd-border); /* @internal secondary button rule */
384
+ --fd-button-ghost-hover: var(--fd-muted); /* @internal ghost button/icon hover fill */
385
+ --fd-button-danger-bg: var(--fd-error); /* @internal danger button fill */
386
+ --fd-button-danger-fg: var(--fd-error-foreground); /* @internal danger button text */
387
+ --fd-button-danger-border: var(--fd-error); /* @internal danger button rule */
388
+ --fd-button-danger-hover-bg: var(--fd-error-hover); /* @internal danger button hover fill */
389
+ --fd-button-danger-hover-fg: var(--fd-error-foreground); /* @internal danger button hover text */
390
+ --fd-button-font-weight: 500; /* @internal button label weight */
391
+ --fd-menu-radius: var(--fd-radius-lg); /* @internal context menu and dropdown radius */
392
+ --fd-menu-shadow: var(--fd-shadow-lg); /* @internal context menu and dropdown shadow */
393
+ --fd-menu-item-radius: var(--fd-radius-sm); /* @internal menu item radius */
394
+ --fd-menu-item-height: auto; /* @internal menu item min height */
395
+ --fd-toast-top: calc(
396
+ var(--fd-navbar-height) + 12px
397
+ ); /* @internal toast stack offset from the viewport top: just under the navbar */
398
+ --fd-toast-width: 380px; /* @internal width of an error or warning toast */
399
+ --fd-sheet-inset: 0px; /* @internal gap between the Test-mode inspector sheet and the canvas edge */
400
+ --fd-sheet-radius: 0; /* @internal inspector sheet corners */
401
+ --fd-sheet-border-width: 0 0 0 1px; /* @internal inspector sheet rule widths (top right bottom left) */
402
+ --fd-sheet-border: var(--fd-border); /* @internal inspector sheet rule */
403
+ --fd-inspector-details-bg: var(--fd-card); /* @internal inspector meta band fill */
404
+ --fd-inspector-details-rule: var(
405
+ --fd-border-muted
406
+ ); /* @internal rule under the inspector meta */
407
+ --fd-inspector-link-color: var(--fd-primary); /* @internal workflow link in the inspector meta */
408
+ --fd-inspector-title-size: var(--fd-text-sm); /* @internal inspector header title */
409
+ --fd-inspector-meta-size: 0.8125rem; /* @internal value text in the inspector meta list */
410
+ --fd-code-block-bg: var(--fd-muted); /* @internal fill of a code/payload block */
411
+ --fd-code-block-border: 1px solid var(--fd-border); /* @internal rule around a code/payload block */
412
+ --fd-code-block-radius: var(--fd-radius-md); /* @internal code/payload block corners */
413
+ --fd-id-chip-bg: var(--fd-subtle); /* @internal fill behind a mono id */
414
+ --fd-id-chip-padding: 0.125rem 0.375rem; /* @internal padding of a mono id */
415
+ --fd-modal-radius: var(--fd-radius-lg); /* @internal settings modal radius */
416
+ --fd-modal-header-height: var(--fd-panel-header); /* @internal settings modal header */
417
+ --fd-modal-title-size: var(--fd-text-sm); /* @internal settings modal title */
418
+
419
+ /* ----- CANVAS CONTROLS (toolbar, zoom, minimap) ----- */
420
+ --fd-tab-underline-off: inset 0 -2px 0 transparent; /* @internal unselected view tab: the underline's room, so selecting never shifts layout */
421
+ --fd-tab-underline: inset 0 -2px 0 var(--fd-foreground); /* @internal selected view tab underline */
422
+ --fd-canvas-inset: 0.75rem; /* @internal distance of every floating canvas control from the canvas edge (12px) */
423
+ --fd-canvas-control: var(
424
+ --fd-control-lg
425
+ ); /* @internal height of every floating canvas control (32px) */
426
+ --fd-minimap-attribution-clearance: 1rem; /* @internal lift of the minimap above the attribution label, which stays */
427
+ --fd-toolbar-segmented-bg: var(
428
+ --fd-muted
429
+ ); /* @internal track of the floating Edit | Test switch */
430
+ --fd-toolbar-segmented-border: var(--fd-border-muted); /* @internal */
431
+ --fd-toolbar-segmented-selected-bg: var(--fd-background); /* @internal selected segment fill */
432
+ --fd-toolbar-segmented-selected-fg: var(--fd-foreground); /* @internal */
433
+ --fd-toolbar-segmented-selected-shadow: var(--fd-shadow-sm); /* @internal */
434
+ --fd-toolbar-segmented-radius: var(--fd-control-radius); /* @internal radius of the switch */
435
+ --fd-toolbar-segment-radius: var(--fd-radius-md); /* @internal radius of one segment */
436
+ --fd-console-strip-height: 2rem; /* @internal the Console's bottom strip / panel header */
437
+ /* Command Console terminal surface: dark ink in every app theme and colour scheme, so the
438
+ console reads apart from the chat and the Playground. Output stays quiet: one accent for
439
+ ids, green strings, amber numbers, everything else greys. */
440
+ --fd-console-bg: #17191e; /* @internal panel body */
441
+ --fd-console-fg: #d9dce1; /* @internal plain output text */
442
+ --fd-console-prompt: #5d6470; /* @internal the > prompt */
443
+ --fd-console-verb: #ffffff; /* @internal command verb (bold) */
444
+ --fd-console-arg: #c4c9d1; /* @internal command arguments */
445
+ --fd-console-id: #8fb0ff; /* @internal node and type ids */
446
+ --fd-console-header: #8a919c; /* @internal table header and section headings */
447
+ --fd-console-rule: #3a3f48; /* @internal the dashes under a table header */
448
+ --fd-console-key: #8a919c; /* @internal config keys, field names */
449
+ --fd-console-eq: #5d6470; /* @internal the = between key and value */
450
+ --fd-console-string: #8fd6a8; /* @internal string values */
451
+ --fd-console-number: #f0b46a; /* @internal number values */
452
+ --fd-console-punct: #5d6470; /* @internal brackets, commas, colons, arrows */
453
+ --fd-console-error: #ff8a8a; /* @internal error lines */
454
+ --fd-console-muted: #8a919c; /* @internal last table column, hints, placeholder */
455
+ --fd-console-line: #2e323a; /* @internal input frame and popover border */
456
+ --fd-console-focus: #8fb0ff; /* @internal input frame while focused */
457
+ --fd-console-raised: #20232a; /* @internal autocomplete popover */
458
+ --fd-console-hover: #292d36; /* @internal hovered row (popover, example buttons) */
459
+ --fd-console-selected: #2b3550; /* @internal highlighted suggestion */
460
+ --fd-console-selection: #34416b; /* @internal text selection */
461
+ --fd-console-caret: #ffffff; /* @internal text caret */
462
+ --fd-console-scroll-thumb: #3a3f48; /* @internal scrollbar thumb */
463
+ --fd-console-scroll-thumb-hover: #4b515c; /* @internal */
464
+ --fd-console-entry-gap: 8px; /* @internal space before each input entry after the first */
465
+ --fd-zoom-group-bg: var(--fd-card); /* @internal zoom controls group */
466
+ --fd-zoom-group-border: none; /* @internal shorthand */
467
+ --fd-zoom-group-radius: var(--fd-radius-md); /* @internal */
468
+ --fd-zoom-group-padding: 0px; /* @internal */
469
+ --fd-zoom-button-size: 32px; /* @internal Default: borderless group, so the button is the control height */
470
+ --fd-zoom-button-radius: 0px; /* @internal */
471
+ --fd-zoom-icon-size: 12px; /* @internal */
472
+ --fd-zoom-group-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08); /* @internal */
473
+ --fd-zoom-button-border: 1px solid var(--fd-border); /* @internal rule between zoom buttons */
474
+ --fd-minimap-radius: var(--fd-radius-md); /* @internal */
475
+ --fd-minimap-shadow: var(--fd-shadow-md); /* @internal */
476
+ --fd-minimap-border: var(--fd-border-strong); /* @internal */
477
+
478
+ /* ----- RUN STATUS PILL (node status, canvas toolbar) ----- */
479
+ --fd-status-pill-height: var(--fd-control-md); /* @internal */
480
+ --fd-status-pill-size: var(--fd-text-xs); /* @internal */
481
+ --fd-status-pill-weight: 500; /* @internal */
482
+ --fd-status-pill-padding: 0 var(--fd-space-xs); /* @internal */
483
+ --fd-status-pill-border-width: 1px; /* @internal */
484
+ --fd-status-pill-icon-size: var(--fd-text-sm); /* @internal */
485
+ --fd-status-pill-icon-display: inline-flex; /* @internal icon-set glyph (circled) */
486
+ --fd-status-pill-glyph-display: none; /* @internal plain inline glyph, no circle */
487
+ /* The count after the label: left at `initial` it is a filled chip; a theme may set
488
+ bg / fg / font / opacity / rule / pad / min / radius / prefix to make it a "×3" suffix. */
489
+ --fd-status-pill-count-bg: initial; /* @internal */
490
+ --fd-status-pill-count-fg: initial; /* @internal */
491
+ --fd-status-pill-count-font: initial; /* @internal */
492
+ --fd-status-pill-count-opacity: initial; /* @internal */
493
+ --fd-status-pill-count-rule: initial; /* @internal */
494
+ --fd-status-pill-count-pad: initial; /* @internal */
495
+ --fd-status-pill-count-min: initial; /* @internal */
496
+ --fd-status-pill-count-radius: initial; /* @internal */
497
+ --fd-status-pill-count-prefix: initial; /* @internal */
498
+ /* Terminal (start / end / exit) circle. Left at `initial`, the border takes the variant colour and the
499
+ variant glows apply; a theme sets them to match the other nodes. */
500
+ --fd-node-terminal-bg: var(--fd-background); /* @internal */
501
+ --fd-node-terminal-border-width: 3px; /* @internal */
502
+ --fd-node-terminal-border-color: initial; /* @internal */
503
+ --fd-node-terminal-shadow: initial; /* @internal */
504
+ --fd-node-terminal-shadow-hover: initial; /* @internal */
505
+ --fd-node-terminal-ring: color-mix(
506
+ in srgb,
507
+ var(--fd-node-selected-border) 50%,
508
+ transparent
509
+ ); /* @internal */
510
+ --fd-node-terminal-ring-width: 3px; /* @internal */
511
+ --fd-node-terminal-icon-bg: initial; /* @internal tinted squircle unless set */
512
+ --fd-node-terminal-icon-color: initial; /* @internal */
513
+ --fd-node-terminal-icon-size: 24px; /* @internal */
514
+ --fd-node-terminal-label-bg: var(--fd-backdrop); /* @internal */
515
+ --fd-node-terminal-label-shadow: var(--fd-shadow-sm); /* @internal */
516
+ --fd-node-terminal-label-weight: 500; /* @internal */
517
+ --fd-node-dim-opacity: 1; /* @internal Test mode: nodes without a status in the shown run */
518
+ --fd-node-status-edge: 0px; /* @internal extra thickness of a status-coloured node border */
519
+ --fd-node-problem-size: 16px; /* @internal the Doctor's status glyph on a node */
520
+ --fd-node-status-ring: 0px; /* @internal soft halo of a node that waits for you */
521
+
522
+ /* ----- CONVERSATION TOKENS (@internal) -----
523
+ Deliberately NOT declared here. The Playground and the AI Assistant read each of
524
+ these as var(--fd-msg-*, <the look the component always had>), so an unset token is
525
+ today's bubbles. `FlowDropDisplayConfig.messages: 'document'` (themes/scopedSkinCss.ts,
526
+ DOCUMENT_MESSAGE_TOKENS) sets them: avatar/header/meta display, reply and user
527
+ bubble shape, gutters, the interrupt card (--fd-interrupt-card-*), the composer
528
+ (--fd-composer-*) and quiet markdown. The Graphite skin sets the colours
529
+ (--fd-msg-user-bg/fg) and the form-first field look (--fd-inputs-frame-*,
530
+ --fd-field-*). */
531
+
532
+ /* ----- ASSISTANT ACTIVITY ROWS (tool calls, notices, retries, "Thinking…") ----- */
533
+ --fd-activity-running: var(
534
+ --fd-status-running
535
+ ); /* @internal the breathing dot of a running row */
536
+ --fd-activity-text: var(--fd-text-meta); /* @internal row text size */
537
+ --fd-activity-slot: 0.875rem; /* @internal width of the status slot (check, dot, mark) */
538
+ --fd-activity-dot-size: 0.4375rem; /* @internal the running dot */
539
+ --fd-activity-row-gap: 2px; /* @internal space between rows */
540
+ --fd-activity-pulse-duration: 1.2s; /* @internal one breath of the dot */
541
+ --fd-activity-shimmer-duration: 1.8s; /* @internal one pass of light over a running label */
542
+
298
543
  /* ----- COMPONENT SIZES ----- */
299
544
  --fd-size-icon-btn: 1.75rem; /* @internal 28px — may change with component redesigns */
300
545
  --fd-size-btn-min: 2.5rem; /* @internal 40px — may change with component redesigns */
@@ -315,9 +560,30 @@
315
560
 
316
561
  /* ----- LAYOUT ----- */
317
562
  --fd-sidebar-width: 320px; /* @internal — controlled programmatically */
318
- --fd-navbar-height: 60px; /* @internal — controlled programmatically */
563
+ --fd-navbar-height: 48px; /* @internal — controlled programmatically */
319
564
  --fd-toolbar-height: 40px; /* @internal — controlled programmatically */
320
565
 
566
+ /* ----- NAVBAR (defaults reproduce the Default look; Graphite sets quiet values) ----- */
567
+ --fd-navbar-start-width: 240px; /* @internal width of the logo column */
568
+ --fd-navbar-logo-height: 24px; /* @internal wordmark lockup height */
569
+ --fd-navbar-rule-display: none; /* @internal 1px x 16px rule between logo and workflow name */
570
+ --fd-navbar-title-size: 1rem; /* @internal workflow name */
571
+ --fd-navbar-status-bg: var(--fd-success-muted); /* @internal connection chip fill */
572
+ --fd-navbar-status-fg: var(--fd-success-hover); /* @internal connection chip text */
573
+ --fd-navbar-action-height: var(--fd-size-btn-min); /* @internal Save split button height */
574
+ --fd-navbar-action-bg: var(--fd-background); /* @internal Save button fill */
575
+ --fd-navbar-action-fg: var(--fd-foreground); /* @internal Save button text */
576
+ --fd-navbar-action-hover-bg: var(--fd-muted); /* @internal Save button hover fill */
577
+ --fd-navbar-action-border: var(--fd-border-strong); /* @internal Save button outline */
578
+ --fd-navbar-action-divider: transparent; /* @internal inner divider of the split button */
579
+ --fd-navbar-chevron-width: 2rem; /* @internal chevron half of the split button */
580
+ --fd-navbar-icon-bg: var(--fd-background); /* @internal settings button fill */
581
+ --fd-navbar-icon-border: var(--fd-border); /* @internal settings button outline */
582
+ --fd-navbar-icon-border-hover: var(
583
+ --fd-border-strong
584
+ ); /* @internal settings button outline on hover */
585
+ --fd-navbar-status-order: 0; /* @internal flex order of the connection chip next to the title */
586
+
321
587
  /* ----- NODE COLORS (for workflow editor) ----- */
322
588
  --fd-node-emerald: #10b981; /* @public */
323
589
  --fd-node-blue: #2563eb; /* @public */
@@ -398,6 +664,18 @@
398
664
  -1 * var(--fd-handle-size) / 2
399
665
  ); /* @internal — half handle size for edge positioning */
400
666
 
667
+ /* ----- INTERFACE TAG (the `[id · Type>` drawn beside a published port) ----- */
668
+ --fd-iface-tag-height: 18px; /* @internal */
669
+ --fd-iface-tag-gap: 20px; /* @internal free space between a port and its tag */
670
+ --fd-iface-tag-bg: var(--fd-node-bg); /* @internal */
671
+ --fd-iface-tag-border: color-mix(
672
+ in srgb,
673
+ var(--fd-foreground) 45%,
674
+ transparent
675
+ ); /* @internal ink outline; amber on a type mismatch, the ring colour while naming */
676
+ --fd-iface-tag-id-size: 10px; /* @internal the id, mono */
677
+ --fd-iface-tag-type-size: 9px; /* @internal the type, muted */
678
+
401
679
  /* ----- NODE LAYOUT (Dimensions and port alignment; multiples of 10 for grid) ----- */
402
680
  --fd-node-grid-step: 10; /* @internal — layout algorithm detail */
403
681
  --fd-node-default-width: 280px; /* @public */
@@ -412,6 +690,156 @@
412
690
  --fd-border-muted
413
691
  ); /* @public — header bottom divider color */
414
692
  --fd-node-port-row-height: 20px; /* @internal */
693
+ /* Node anatomy knobs (defaults = the card look with a header band). */
694
+ --fd-node-header-min-height: calc(
695
+ var(--fd-node-header-gap) * 4 + var(--fd-node-header-title-height) +
696
+ var(--fd-node-header-desc-line) - var(--fd-node-border-width)
697
+ ); /* @internal 60px-grid header; compact nodes drop it */
698
+ --fd-node-header-padding-x: 20px; /* @internal */
699
+ --fd-node-header-row-gap: 20px; /* @internal title row to description */
700
+ --fd-node-title-line: 20px; /* @internal */
701
+ --fd-node-title-size: var(--fd-text-sm); /* @internal */
702
+ --fd-node-title-weight: 500; /* @internal */
703
+ --fd-node-title-clamp: 2; /* @internal title lines before an ellipsis */
704
+
705
+ /* ----- NODE CARD v2 (G8): category wash header, icon tile, half-pill ports -----
706
+ Geometry (60px header, 20/40px grid, 280/320 width) is fixed in utils/nodeGeometry.ts and is
707
+ not a token: only the look is. Defaults are the Default theme's look; Graphite sets its own. */
708
+ --fd-node-header-wash: 8%; /* @internal how much of the category colour the header surface takes */
709
+ --fd-node-header-pad-x: 16px; /* @internal header and description-band side padding */
710
+ --fd-node-tile-size: 32px; /* @internal solid icon tile edge */
711
+ --fd-node-tile-radius: 8px; /* @internal */
712
+ --fd-node-tile-glyph: 16px; /* @internal glyph inside the tile */
713
+ --fd-node-tile-fg: #ffffff; /* @internal glyph colour on the solid tile */
714
+ --fd-node-tile-shadow: 0 1px 2px rgb(16 24 40 / 0.12); /* @internal */
715
+ --fd-node-kind-size: 11px; /* @internal the "kind · id" line */
716
+ --fd-node-kind-fg: var(--fd-muted-foreground); /* @internal */
717
+ --fd-node-desc-rule: var(--fd-border-muted); /* @internal hairline under the description band */
718
+ --fd-node-pill-height: 24px; /* @internal port pill */
719
+ --fd-node-pill-max-width: 128px; /* @internal longer names end in an ellipsis (mirrors NODE_PILL_MAX_WIDTH) */
720
+ --fd-node-pill-size: var(--fd-text-xs); /* @internal */
721
+ --fd-node-pill-weight: 500; /* @internal */
722
+ --fd-node-pill-radius: 12px; /* @internal the free end of the half-pill */
723
+ --fd-node-pill-pad-edge: 14px; /* @internal padding on the card-edge side (clears the handle) */
724
+ --fd-node-pill-pad-inner: 12px; /* @internal padding on the free side */
725
+ --fd-node-pill-wired-mix: 13%; /* @internal type colour in a wired pill's tint */
726
+ --fd-node-pill-open-fg: var(
727
+ --fd-muted-foreground
728
+ ); /* @internal open port text, at least 4.5:1 on the card */
729
+ --fd-node-pill-open-border: var(--fd-border); /* @internal open port outline */
730
+ --fd-node-pill-open-ring-input:
731
+ inset 0 1px 0 var(--fd-node-pill-open-border), inset 0 -1px 0 var(--fd-node-pill-open-border),
732
+ inset -1px 0 0 var(--fd-node-pill-open-border); /* @internal open input outline: top, bottom and free end (not the card edge) */
733
+ --fd-node-pill-open-ring-output:
734
+ inset 0 1px 0 var(--fd-node-pill-open-border), inset 0 -1px 0 var(--fd-node-pill-open-border),
735
+ inset 1px 0 0 var(--fd-node-pill-open-border); /* @internal open output outline */
736
+ --fd-node-pill-target-mix: 10%; /* @internal type colour in an open pill's tint while a dragged wire can land on it */
737
+ --fd-node-pill-sym-size: 10px; /* @internal port shape glyph */
738
+ --fd-node-pill-sym-weight: 600; /* @internal */
739
+ --fd-node-pill-sym-min: 11px; /* @internal so S and {} take the same room */
740
+ --fd-node-pill-sym-gap: 6px; /* @internal glyph to name */
741
+ --fd-node-pill-sym-mix: 82%; /* @internal type colour in a wired glyph, the rest foreground */
742
+ --fd-node-pill-required: var(--fd-error-hover); /* @internal the "*" on a required open input */
743
+ --fd-node-pill-hover-filter: brightness(0.97); /* @internal */
744
+ --fd-node-pin-size: 11px; /* @internal the exec pin (a blank interface tag) height */
745
+ --fd-node-pin-width: 16px; /* @internal the exec pin length, tip included */
746
+ --fd-node-halo-size: 22px; /* @internal the halo behind a round handle ready to receive */
747
+ --fd-node-halo-pad: 8px; /* @internal how much larger than the pin its tag-shaped halo is */
748
+ --fd-node-halo-mix: 28%; /* @internal port colour in the halo, the rest transparent */
749
+ --fd-node-halo-breath: 1.8s; /* @internal one breath in (or out) of a port ready to receive */
750
+ --fd-node-drag-dull-opacity: 0.35; /* @internal a port that does not take the dragged type */
751
+ --fd-node-config-btn-bg: var(--fd-backdrop); /* @internal the gear on a hovered card */
752
+ --fd-node-config-btn-border: var(--fd-border); /* @internal */
753
+ --fd-node-config-btn-radius: var(--fd-radius-sm); /* @internal */
754
+ --fd-node-config-btn-blur: var(--fd-backdrop-blur); /* @internal */
755
+ --fd-node-config-btn-hover-bg: var(--fd-muted); /* @internal */
756
+ --fd-node-config-btn-hover-border: var(--fd-border-strong); /* @internal */
757
+ --fd-node-config-btn-hover-scale: 1.05; /* @internal */
758
+ /* Zoom tiers (editor.zoomTiers): fixed sizes in flow px, never divided by the zoom.
759
+ Svelte Flow scales them; the drawing changes only at a tier boundary. */
760
+ --fd-node-zoom-outline-title-size: 20px; /* @internal outline: one-line title */
761
+ --fd-node-zoom-outline-title-line: 24px; /* @internal */
762
+ --fd-node-zoom-outline-gap: 12px; /* @internal outline: tile to title */
763
+ --fd-node-zoom-outline-pad-end: 16px; /* @internal outline: header right padding (no config button) */
764
+ --fd-node-zoom-bar-height: 12px; /* @internal outline: an unlabelled port bar */
765
+ --fd-node-zoom-bar-radius: 6px; /* @internal */
766
+ --fd-node-zoom-bar-wired-width: 72px; /* @internal */
767
+ --fd-node-zoom-bar-open-width: 48px; /* @internal */
768
+ --fd-node-zoom-bar-wired-mix: 24%; /* @internal type tint of a wired bar */
769
+ --fd-node-zoom-bar-open-bg: color-mix(
770
+ in srgb,
771
+ var(--fd-foreground) 8%,
772
+ var(--fd-node-bg)
773
+ ); /* @internal an open bar, neutral grey */
774
+ --fd-node-zoom-stub-width: 6px; /* @internal outline and glyph: a wired port as a stub on the card edge */
775
+ --fd-node-zoom-stub-height: 18px; /* @internal */
776
+ --fd-node-zoom-stub-radius: 3px; /* @internal */
777
+ --fd-node-zoom-tile-size: 56px; /* @internal glyph: solid category tile */
778
+ --fd-node-zoom-tile-radius: 14px; /* @internal */
779
+ --fd-node-zoom-tile-glyph: 34px; /* @internal glyph: white glyph in the tile */
780
+ --fd-node-zoom-tile-gap: 14px; /* @internal glyph: tile to title */
781
+ --fd-node-zoom-tile-pad: 20px; /* @internal glyph: card side padding */
782
+ --fd-node-zoom-title-size: 30px; /* @internal glyph: title, two lines at most */
783
+ --fd-node-zoom-title-leading: 1.15; /* @internal */
784
+ --fd-node-zoom-title-tracking: -0.01em; /* @internal */
785
+ --fd-node-zoom-title-max: 170px; /* @internal */
786
+ --fd-node-zoom-map-mix: 86%; /* @internal map: how much of the category colour fills the card */
787
+ --fd-node-zoom-map-glyph: 72px; /* @internal map: white glyph on the solid block */
788
+ --fd-node-zoom-map-shadow: none; /* @internal map: card shadow (Default draws flat blocks) */
789
+ --fd-node-zoom-map-tile-mix: 0%; /* @internal map: how much of the category colour fills the tile */
790
+ --fd-node-zoom-map-tile-size: 72px; /* @internal map: the tile that holds the glyph */
791
+ --fd-node-zoom-map-tile-radius: 0px; /* @internal map: tile corner radius */
792
+ --fd-node-zoom-edge-width-glyph: 2.5px; /* @internal glyph: wire thickness */
793
+ --fd-node-zoom-edge-width-map: 5px; /* @internal map: wire thickness */
794
+ --fd-node-zoom-edge-map: var(--fd-edge-data); /* @internal map: wire colour */
795
+ --fd-node-zoom-mark-scale-outline: 1.5; /* @internal the Doctor's mark, per tier (a pure multiplier, no zoom maths) */
796
+ --fd-node-zoom-mark-scale-glyph: 2.5; /* @internal */
797
+ --fd-node-zoom-mark-scale-map: 4; /* @internal */
798
+ --fd-node-zoom-status-scale-outline: 1.5; /* @internal the run-status pill, per tier */
799
+ --fd-node-zoom-status-scale-glyph: 2.4; /* @internal */
800
+ --fd-node-zoom-status-stroke-map: 6px; /* @internal map: status outline thickness */
801
+ --fd-node-zoom-badge-scale-map: 3.5; /* @internal map: status badge */
802
+ --fd-node-pin-wired: var(--fd-node-ink); /* @internal wired exec pin fill */
803
+ --fd-node-pin-open: #8a919c; /* @internal open exec pin outline and chevron, at least 3:1 on the card */
804
+ --fd-node-icon-size: 36px; /* @internal squircle edge */
805
+ --fd-node-icon-glyph-size: 20px; /* @internal */
806
+ --fd-node-icon-radius: 8px; /* @internal */
807
+ --fd-node-desc-display: -webkit-box; /* @internal description under the title ('none' = compact) */
808
+ --fd-node-desc-block-display: block; /* @internal same for nodes that draw it as a block */
809
+ --fd-node-port-help-display: block; /* @internal per-port help line ('none' = compact) */
810
+ --fd-node-port-height: 60px; /* @internal one port block */
811
+ --fd-node-port-handle-top: 20px; /* @internal handle y inside a port block */
812
+ --fd-node-port-pad: 10px 20px 0; /* @internal padding of a port's label block */
813
+ --fd-node-port-align: flex-start; /* @internal */
814
+ --fd-node-ports-first-pad: 20px; /* @internal clearance under the header rule */
815
+ --fd-node-ports-end-pad: 0px; /* @internal clearance under the last port */
816
+ --fd-node-group-rule: var(
817
+ --fd-border-muted
818
+ ); /* @internal hairline between the input and output port groups ('transparent' = none) */
819
+ --fd-node-group-rule-inset: 20px; /* @internal its inset from each node edge */
820
+ --fd-node-port-name-weight: 500; /* @internal */
821
+ --fd-node-port-chip-font: inherit; /* @internal type tag font */
822
+ --fd-node-port-chip-size: 10px; /* @internal */
823
+ --fd-node-port-chip-border: var(--fd-border); /* @internal */
824
+ --fd-node-port-chip-pad: 0 4px; /* @internal */
825
+ /* "Required" on an input port: the badge by default; a theme may show an asterisk after the
826
+ name instead and visually hide the word (it stays for screen readers). The word-* tokens
827
+ are left at `initial` unless hidden. */
828
+ --fd-node-port-required-mark-display: none; /* @internal */
829
+ --fd-node-port-required-mark-size: 11px; /* @internal */
830
+ --fd-node-port-required-word-position: initial; /* @internal */
831
+ --fd-node-port-required-word-size: initial; /* @internal */
832
+ --fd-node-port-required-word-overflow: initial; /* @internal */
833
+ --fd-node-port-required-word-clip: initial; /* @internal */
834
+ --fd-node-port-symbol-display: inline-flex; /* @internal shape glyph beside the name */
835
+ --fd-node-port-out-name-order: 0; /* @internal output row: name, type tag, glyph order */
836
+ --fd-node-port-out-chip-order: 0; /* @internal */
837
+ --fd-node-port-out-symbol-order: 0; /* @internal */
838
+ --fd-node-port-out-name-align: right; /* @internal */
839
+ --fd-node-selected-border: var(--fd-primary); /* @internal border of a selected node */
840
+ --fd-node-selected-ring: var(--fd-primary-muted); /* @internal halo of a selected node */
841
+ --fd-node-selected-edge: 0px; /* @internal extra border thickness, drawn as a shadow */
842
+ --fd-node-selected-ring-width: 2px; /* @internal */
415
843
  --fd-node-terminal-size: 80px; /* @public */
416
844
  --fd-node-square-size: 80px; /* @public */
417
845
  --fd-node-simple-height: 80px; /* @public */
@@ -426,11 +854,16 @@
426
854
  ); /* @public */
427
855
 
428
856
  /* ----- SKIN DISPLAY CONTROL TOKENS ----- */
429
- /* @public — override these in a skin's tokens dict to toggle visual variants */
857
+ /* @public @deprecated — set FlowDropThemeConfig.display (nodeIcon, sidebarList, sidebarSearch,
858
+ sidebarHeader, navbarActions) instead. These tokens remain a fallback until 3.0: the theme
859
+ config wins when it sets a value, a token set in CSS or in a skin's tokens applies otherwise. */
430
860
  --fd-node-icon-display: flex; /* @public show squircle icon wrapper */
431
861
  --fd-node-circle-display: none; /* @public hide circle dot */
432
862
  --fd-sidebar-search-display: flex; /* @public show sidebar search input */
433
863
  --fd-sidebar-header-display: flex; /* @public show sidebar "Components" header */
864
+ --fd-sidebar-chevron-size: 0.875rem; /* @internal rows sidebar: group chevron, 14px */
865
+ --fd-sidebar-child-indent: 1.5625rem; /* @internal rows sidebar: children indent from the group edge, 25px */
866
+ --fd-sidebar-child-text: 0.84375rem; /* @internal rows sidebar: child label size, 13.5px */
434
867
  --fd-sidebar-card-display: block; /* @public show accordion card node list */
435
868
  --fd-sidebar-flat-display: none; /* @public hide flat dot-name node list */
436
869
  --fd-sidebar-category-color: var(--fd-muted-foreground); /* @public category header text color */
@@ -441,7 +874,7 @@
441
874
 
442
875
  /* =========================================================================
443
876
  DARK MODE
444
- Users enable with: <html data-theme="dark">
877
+ Applied by the editor scope element: data-theme="dark" (a host ancestor also works)
445
878
  Designed for softer contrast and reduced eye strain
446
879
  ========================================================================= */
447
880
 
@@ -481,6 +914,11 @@
481
914
  --fd-node-border: #4a4a52;
482
915
  --fd-node-border-hover: #5a5a62;
483
916
 
917
+ /* ----- NODE CARD v2 (dark) ----- */
918
+ --fd-node-header-wash: 16%;
919
+ --fd-node-tile-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
920
+ --fd-node-pin-open: #7d8594;
921
+
484
922
  /* ----- CANVAS GRID (matches xyflow's dark dot-grid color) ----- */
485
923
  --fd-grid-pattern-color: #777;
486
924
 
@@ -580,3 +1018,137 @@
580
1018
  /* ----- LAYOUT BACKGROUND (darker gradient for dark mode) ----- */
581
1019
  --fd-layout-background: linear-gradient(135deg, #141418 0%, #1a1a2e 50%, #16162a 100%);
582
1020
  }
1021
+
1022
+ /* BEGIN GENERATED dark aliases (pnpm run generate:token-aliases) */
1023
+ /* The aliases the dark palette changes underneath, declared again on the themed
1024
+ element (see scripts/parse-token-aliases.mjs renderDarkAliasBlock). Generated
1025
+ text, so Prettier leaves it as written. */
1026
+ /* prettier-ignore */
1027
+ [data-theme='dark'] {
1028
+ --fd-activity-running: var(--fd-status-running);
1029
+ --fd-button-danger-bg: var(--fd-error);
1030
+ --fd-button-danger-border: var(--fd-error);
1031
+ --fd-button-danger-fg: var(--fd-error-foreground);
1032
+ --fd-button-danger-hover-bg: var(--fd-error-hover);
1033
+ --fd-button-danger-hover-fg: var(--fd-error-foreground);
1034
+ --fd-button-ghost-hover: var(--fd-muted);
1035
+ --fd-button-secondary-border: var(--fd-border);
1036
+ --fd-canvas-bg: var(--fd-background);
1037
+ --fd-checkbox-on-bg: var(--fd-primary);
1038
+ --fd-checkbox-on-fg: var(--fd-primary-foreground);
1039
+ --fd-code-block-bg: var(--fd-muted);
1040
+ --fd-code-block-border: 1px solid var(--fd-border);
1041
+ --fd-elevation-float: var(--fd-shadow-md);
1042
+ --fd-field-border-color: var(--fd-border);
1043
+ --fd-field-focus-outline: var(--fd-ring-width) solid var(--fd-ring);
1044
+ --fd-field-focus-shadow: var(--fd-shadow-sm);
1045
+ --fd-field-shadow: var(--fd-shadow-sm);
1046
+ --fd-float-border: var(--fd-border);
1047
+ --fd-id-chip-bg: var(--fd-subtle);
1048
+ --fd-iface-tag-bg: var(--fd-node-bg);
1049
+ --fd-iface-tag-border: color-mix(in srgb, var(--fd-foreground) 45%, transparent);
1050
+ --fd-inspector-details-bg: var(--fd-card);
1051
+ --fd-inspector-details-rule: var(--fd-border-muted);
1052
+ --fd-inspector-link-color: var(--fd-primary);
1053
+ --fd-interrupt-btn-primary-bg: linear-gradient(135deg, var(--fd-primary) 0%, var(--fd-primary-hover) 100%);
1054
+ --fd-interrupt-btn-primary-bg-hover: linear-gradient(135deg, var(--fd-primary-hover) 0%, var(--fd-primary-hover) 100%);
1055
+ --fd-interrupt-cancelled-avatar: var(--fd-muted-foreground);
1056
+ --fd-interrupt-cancelled-bg: linear-gradient(135deg, var(--fd-muted) 0%, var(--fd-subtle) 100%);
1057
+ --fd-interrupt-cancelled-border: var(--fd-muted-foreground);
1058
+ --fd-interrupt-cancelled-text: var(--fd-muted-foreground);
1059
+ --fd-interrupt-cancelled-text-light: var(--fd-muted-foreground);
1060
+ --fd-interrupt-completed-avatar: var(--fd-primary);
1061
+ --fd-interrupt-completed-bg: linear-gradient(135deg, var(--fd-info-muted) 0%, var(--fd-primary-muted) 100%);
1062
+ --fd-interrupt-completed-border: var(--fd-primary);
1063
+ --fd-interrupt-completed-text: var(--fd-primary-hover);
1064
+ --fd-interrupt-completed-text-light: var(--fd-primary);
1065
+ --fd-interrupt-error-avatar: var(--fd-error);
1066
+ --fd-interrupt-error-bg: linear-gradient(135deg, var(--fd-error-muted) 0%, var(--fd-error-muted) 100%);
1067
+ --fd-interrupt-error-border: var(--fd-error);
1068
+ --fd-interrupt-error-text: var(--fd-error-hover);
1069
+ --fd-interrupt-error-text-light: var(--fd-error);
1070
+ --fd-interrupt-pending-avatar: var(--fd-warning);
1071
+ --fd-interrupt-pending-bg: linear-gradient(135deg, var(--fd-warning-muted) 0%, var(--fd-warning-muted) 100%);
1072
+ --fd-interrupt-pending-border: var(--fd-warning);
1073
+ --fd-interrupt-pending-text: var(--fd-warning-hover);
1074
+ --fd-interrupt-pending-text-light: var(--fd-warning-hover);
1075
+ --fd-interrupt-selected-confirm-bg: var(--fd-interrupt-btn-primary-bg);
1076
+ --fd-interrupt-selected-confirm-border: var(--fd-primary-hover);
1077
+ --fd-interrupt-selected-decline-border: var(--fd-error);
1078
+ --fd-interrupt-selected-decline-text: var(--fd-error);
1079
+ --fd-menu-shadow: var(--fd-shadow-lg);
1080
+ --fd-minimap-border: var(--fd-border-strong);
1081
+ --fd-minimap-shadow: var(--fd-shadow-md);
1082
+ --fd-navbar-action-bg: var(--fd-background);
1083
+ --fd-navbar-action-border: var(--fd-border-strong);
1084
+ --fd-navbar-action-fg: var(--fd-foreground);
1085
+ --fd-navbar-action-hover-bg: var(--fd-muted);
1086
+ --fd-navbar-icon-bg: var(--fd-background);
1087
+ --fd-navbar-icon-border: var(--fd-border);
1088
+ --fd-navbar-icon-border-hover: var(--fd-border-strong);
1089
+ --fd-navbar-status-bg: var(--fd-success-muted);
1090
+ --fd-navbar-status-fg: var(--fd-success-hover);
1091
+ --fd-node-bg: var(--fd-card);
1092
+ --fd-node-config-btn-bg: var(--fd-backdrop);
1093
+ --fd-node-config-btn-border: var(--fd-border);
1094
+ --fd-node-config-btn-hover-bg: var(--fd-muted);
1095
+ --fd-node-config-btn-hover-border: var(--fd-border-strong);
1096
+ --fd-node-desc-rule: var(--fd-border-muted);
1097
+ --fd-node-group-rule: var(--fd-border-muted);
1098
+ --fd-node-header-bg: var(--fd-header);
1099
+ --fd-node-header-divider-color: var(--fd-border-muted);
1100
+ --fd-node-kind-fg: var(--fd-muted-foreground);
1101
+ --fd-node-pill-open-border: var(--fd-border);
1102
+ --fd-node-pill-open-fg: var(--fd-muted-foreground);
1103
+ --fd-node-pill-open-ring-input: inset 0 1px 0 var(--fd-node-pill-open-border), inset 0 -1px 0 var(--fd-node-pill-open-border), inset -1px 0 0 var(--fd-node-pill-open-border);
1104
+ --fd-node-pill-open-ring-output: inset 0 1px 0 var(--fd-node-pill-open-border), inset 0 -1px 0 var(--fd-node-pill-open-border), inset 1px 0 0 var(--fd-node-pill-open-border);
1105
+ --fd-node-pill-required: var(--fd-error-hover);
1106
+ --fd-node-pin-wired: var(--fd-node-ink);
1107
+ --fd-node-port-chip-border: var(--fd-border);
1108
+ --fd-node-selected-border: var(--fd-primary);
1109
+ --fd-node-selected-ring: var(--fd-primary-muted);
1110
+ --fd-node-shadow: var(--fd-shadow-md);
1111
+ --fd-node-shadow-hover: var(--fd-shadow-lg);
1112
+ --fd-node-terminal-bg: var(--fd-background);
1113
+ --fd-node-terminal-label-bg: var(--fd-backdrop);
1114
+ --fd-node-terminal-label-shadow: var(--fd-shadow-sm);
1115
+ --fd-node-terminal-ring: color-mix(in srgb, var(--fd-node-selected-border) 50%, transparent);
1116
+ --fd-node-zoom-bar-open-bg: color-mix(in srgb, var(--fd-foreground) 8%, var(--fd-node-bg));
1117
+ --fd-node-zoom-edge-map: var(--fd-edge-data);
1118
+ --fd-note-bg: var(--fd-muted);
1119
+ --fd-note-border: var(--fd-node-border);
1120
+ --fd-note-border-hover: var(--fd-node-border-hover);
1121
+ --fd-note-edge: var(--fd-node-border);
1122
+ --fd-note-error-bg: var(--fd-error-muted);
1123
+ --fd-note-fg: var(--fd-foreground);
1124
+ --fd-note-info-bg: var(--fd-info-muted);
1125
+ --fd-note-meta: var(--fd-muted-foreground);
1126
+ --fd-note-success-bg: var(--fd-success-muted);
1127
+ --fd-note-warning-bg: var(--fd-warning-muted);
1128
+ --fd-panel-bg: var(--fd-background);
1129
+ --fd-sheet-border: var(--fd-border);
1130
+ --fd-sidebar-category-color: var(--fd-muted-foreground);
1131
+ --fd-sidebar-flat-item-color: var(--fd-foreground);
1132
+ --fd-status-completed: var(--fd-success);
1133
+ --fd-status-completed-soft: var(--fd-success-muted);
1134
+ --fd-status-failed: var(--fd-error);
1135
+ --fd-status-failed-soft: var(--fd-error-muted);
1136
+ --fd-status-running: var(--fd-info);
1137
+ --fd-status-running-soft: var(--fd-info-muted);
1138
+ --fd-status-skipped: var(--fd-muted-foreground);
1139
+ --fd-status-skipped-soft: var(--fd-muted);
1140
+ --fd-status-waiting: var(--fd-warning);
1141
+ --fd-status-waiting-soft: var(--fd-warning-muted);
1142
+ --fd-switch-off-bg: var(--fd-border-strong);
1143
+ --fd-switch-on-bg: var(--fd-primary);
1144
+ --fd-switch-thumb-bg: var(--fd-background);
1145
+ --fd-tab-underline: inset 0 -2px 0 var(--fd-foreground);
1146
+ --fd-toolbar-segmented-bg: var(--fd-muted);
1147
+ --fd-toolbar-segmented-border: var(--fd-border-muted);
1148
+ --fd-toolbar-segmented-selected-bg: var(--fd-background);
1149
+ --fd-toolbar-segmented-selected-fg: var(--fd-foreground);
1150
+ --fd-toolbar-segmented-selected-shadow: var(--fd-shadow-sm);
1151
+ --fd-zoom-button-border: 1px solid var(--fd-border);
1152
+ --fd-zoom-group-bg: var(--fd-card);
1153
+ }
1154
+ /* END GENERATED dark aliases */