@flowdrop/flowdrop 1.5.0 → 1.7.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 (435) hide show
  1. package/README.md +46 -47
  2. package/dist/adapters/WorkflowAdapter.d.ts +1 -1
  3. package/dist/adapters/WorkflowAdapter.js +26 -26
  4. package/dist/adapters/agentspec/AgentSpecAdapter.d.ts +2 -2
  5. package/dist/adapters/agentspec/AgentSpecAdapter.js +122 -133
  6. package/dist/adapters/agentspec/agentAdapter.d.ts +2 -2
  7. package/dist/adapters/agentspec/agentAdapter.js +10 -10
  8. package/dist/adapters/agentspec/autoLayout.d.ts +1 -1
  9. package/dist/adapters/agentspec/autoLayout.js +7 -9
  10. package/dist/adapters/agentspec/componentTypeDefaults.d.ts +1 -1
  11. package/dist/adapters/agentspec/componentTypeDefaults.js +120 -120
  12. package/dist/adapters/agentspec/defaultNodeTypes.d.ts +2 -2
  13. package/dist/adapters/agentspec/defaultNodeTypes.js +307 -307
  14. package/dist/adapters/agentspec/index.d.ts +10 -10
  15. package/dist/adapters/agentspec/index.js +6 -6
  16. package/dist/adapters/agentspec/validator.d.ts +2 -2
  17. package/dist/adapters/agentspec/validator.js +20 -22
  18. package/dist/api/enhanced-client.d.ts +3 -3
  19. package/dist/api/enhanced-client.js +72 -73
  20. package/dist/chat/commandClassifier.js +6 -6
  21. package/dist/chat/index.d.ts +5 -5
  22. package/dist/chat/index.js +4 -4
  23. package/dist/chat/responseParser.d.ts +6 -6
  24. package/dist/chat/responseParser.js +28 -24
  25. package/dist/commands/batch.d.ts +1 -1
  26. package/dist/commands/batch.js +5 -7
  27. package/dist/commands/executor.d.ts +2 -2
  28. package/dist/commands/executor.js +320 -231
  29. package/dist/commands/index.d.ts +6 -6
  30. package/dist/commands/index.js +5 -5
  31. package/dist/commands/parser.d.ts +1 -1
  32. package/dist/commands/parser.js +91 -74
  33. package/dist/commands/positioner.d.ts +2 -2
  34. package/dist/commands/positioner.js +1 -1
  35. package/dist/commands/storeIntegration.svelte.d.ts +2 -2
  36. package/dist/commands/storeIntegration.svelte.js +5 -5
  37. package/dist/commands/types.d.ts +42 -42
  38. package/dist/commands/types.js +2 -2
  39. package/dist/components/App.svelte +280 -303
  40. package/dist/components/App.svelte.d.ts +11 -9
  41. package/dist/components/CanvasBanner.stories.svelte +10 -16
  42. package/dist/components/CanvasBanner.stories.svelte.d.ts +1 -1
  43. package/dist/components/CanvasBanner.svelte +2 -2
  44. package/dist/components/CanvasBanner.svelte.d.ts +1 -1
  45. package/dist/components/CanvasController.svelte +3 -4
  46. package/dist/components/ConfigForm.svelte +118 -256
  47. package/dist/components/ConfigForm.svelte.d.ts +2 -2
  48. package/dist/components/ConfigMappingRow.svelte +7 -9
  49. package/dist/components/ConfigMappingRow.svelte.d.ts +1 -1
  50. package/dist/components/ConfigModal.svelte +3 -3
  51. package/dist/components/ConfigModal.svelte.d.ts +1 -1
  52. package/dist/components/ConfigPanel.stories.svelte +19 -19
  53. package/dist/components/ConfigPanel.stories.svelte.d.ts +1 -1
  54. package/dist/components/ConfigPanel.svelte +9 -20
  55. package/dist/components/ConfigPanel.svelte.d.ts +1 -1
  56. package/dist/components/ConnectionLine.svelte +4 -4
  57. package/dist/components/EdgeRefresher.svelte +1 -1
  58. package/dist/components/FlowDropEdge.stories.svelte +110 -110
  59. package/dist/components/FlowDropEdge.svelte +9 -9
  60. package/dist/components/FlowDropEdge.svelte.d.ts +1 -1
  61. package/dist/components/FlowDropZone.svelte +6 -9
  62. package/dist/components/FlowDropZone.svelte.d.ts +1 -1
  63. package/dist/components/LoadingSpinner.stories.svelte +13 -13
  64. package/dist/components/LoadingSpinner.stories.svelte.d.ts +1 -1
  65. package/dist/components/LoadingSpinner.svelte +3 -3
  66. package/dist/components/LoadingSpinner.svelte.d.ts +1 -1
  67. package/dist/components/Logo.stories.svelte +4 -4
  68. package/dist/components/Logo.stories.svelte.d.ts +1 -1
  69. package/dist/components/Logo.svelte +3 -9
  70. package/dist/components/LogsSidebar.svelte +41 -48
  71. package/dist/components/LogsSidebar.svelte.d.ts +1 -1
  72. package/dist/components/MarkdownDisplay.stories.svelte +10 -14
  73. package/dist/components/MarkdownDisplay.stories.svelte.d.ts +1 -1
  74. package/dist/components/MarkdownDisplay.svelte +4 -6
  75. package/dist/components/Navbar.stories.svelte +19 -19
  76. package/dist/components/Navbar.stories.svelte.d.ts +1 -1
  77. package/dist/components/Navbar.svelte +28 -49
  78. package/dist/components/Navbar.svelte.d.ts +2 -2
  79. package/dist/components/NodeSidebar.svelte +42 -88
  80. package/dist/components/NodeSidebar.svelte.d.ts +1 -1
  81. package/dist/components/NodeStatusOverlay.stories.svelte +19 -31
  82. package/dist/components/NodeStatusOverlay.stories.svelte.d.ts +1 -1
  83. package/dist/components/NodeStatusOverlay.svelte +40 -55
  84. package/dist/components/NodeStatusOverlay.svelte.d.ts +3 -3
  85. package/dist/components/NodeSwapPicker.svelte +20 -64
  86. package/dist/components/NodeSwapPicker.svelte.d.ts +1 -1
  87. package/dist/components/PipelineStatus.svelte +63 -89
  88. package/dist/components/PipelineStatus.svelte.d.ts +4 -4
  89. package/dist/components/PortCoordinateTracker.svelte +5 -7
  90. package/dist/components/PortCoordinateTracker.svelte.d.ts +1 -1
  91. package/dist/components/PortMappingRow.svelte +20 -24
  92. package/dist/components/PortMappingRow.svelte.d.ts +2 -2
  93. package/dist/components/ReadOnlyDetails.svelte +1 -1
  94. package/dist/components/SchemaForm.stories.svelte +53 -53
  95. package/dist/components/SchemaForm.stories.svelte.d.ts +1 -1
  96. package/dist/components/SchemaForm.svelte +24 -51
  97. package/dist/components/SchemaForm.svelte.d.ts +2 -2
  98. package/dist/components/SettingsModal.svelte +6 -9
  99. package/dist/components/SettingsModal.svelte.d.ts +1 -1
  100. package/dist/components/SettingsPanel.svelte +138 -158
  101. package/dist/components/SettingsPanel.svelte.d.ts +1 -1
  102. package/dist/components/StatusIcon.stories.svelte +16 -29
  103. package/dist/components/StatusIcon.stories.svelte.d.ts +1 -1
  104. package/dist/components/StatusIcon.svelte +19 -19
  105. package/dist/components/StatusIcon.svelte.d.ts +2 -2
  106. package/dist/components/StatusLabel.stories.svelte +8 -8
  107. package/dist/components/StatusLabel.stories.svelte.d.ts +1 -1
  108. package/dist/components/SwapMappingEditor.svelte +35 -56
  109. package/dist/components/SwapMappingEditor.svelte.d.ts +2 -2
  110. package/dist/components/ThemeToggle.stories.svelte +10 -10
  111. package/dist/components/ThemeToggle.stories.svelte.d.ts +1 -1
  112. package/dist/components/ThemeToggle.svelte +22 -33
  113. package/dist/components/ThemeToggle.svelte.d.ts +1 -1
  114. package/dist/components/UniversalNode.svelte +29 -41
  115. package/dist/components/UniversalNode.svelte.d.ts +3 -3
  116. package/dist/components/WorkflowEditor.svelte +113 -168
  117. package/dist/components/WorkflowEditor.svelte.d.ts +4 -4
  118. package/dist/components/chat/AIChatPanel.svelte +272 -133
  119. package/dist/components/chat/AIChatPanel.svelte.d.ts +3 -3
  120. package/dist/components/chat/CommandPreview.svelte +74 -24
  121. package/dist/components/chat/CommandPreview.svelte.d.ts +1 -1
  122. package/dist/components/console/CommandConsole.stories.svelte +71 -53
  123. package/dist/components/console/CommandConsole.stories.svelte.d.ts +1 -1
  124. package/dist/components/console/CommandConsole.svelte +39 -35
  125. package/dist/components/console/CommandConsole.svelte.d.ts +2 -2
  126. package/dist/components/console/ConsoleAutocomplete.svelte +6 -3
  127. package/dist/components/console/ConsoleInput.svelte +148 -89
  128. package/dist/components/console/ConsoleInput.svelte.d.ts +1 -1
  129. package/dist/components/console/ConsoleOutput.svelte +5 -10
  130. package/dist/components/console/ConsoleOutput.svelte.d.ts +1 -1
  131. package/dist/components/console/formatters.d.ts +1 -1
  132. package/dist/components/console/formatters.js +27 -29
  133. package/dist/components/form/FormArray.svelte +75 -132
  134. package/dist/components/form/FormArray.svelte.d.ts +1 -1
  135. package/dist/components/form/FormAutocomplete.svelte +65 -108
  136. package/dist/components/form/FormAutocomplete.svelte.d.ts +1 -1
  137. package/dist/components/form/FormCheckboxGroup.stories.svelte +13 -16
  138. package/dist/components/form/FormCheckboxGroup.stories.svelte.d.ts +1 -1
  139. package/dist/components/form/FormCheckboxGroup.svelte +2 -2
  140. package/dist/components/form/FormCodeEditor.svelte +46 -59
  141. package/dist/components/form/FormField.svelte +79 -90
  142. package/dist/components/form/FormField.svelte.d.ts +2 -2
  143. package/dist/components/form/FormFieldLight.svelte +72 -88
  144. package/dist/components/form/FormFieldLight.svelte.d.ts +1 -1
  145. package/dist/components/form/FormFieldWrapper.stories.svelte +14 -14
  146. package/dist/components/form/FormFieldWrapper.stories.svelte.d.ts +1 -1
  147. package/dist/components/form/FormFieldWrapper.svelte +2 -9
  148. package/dist/components/form/FormFieldWrapper.svelte.d.ts +1 -1
  149. package/dist/components/form/FormFieldset.svelte +3 -3
  150. package/dist/components/form/FormFieldset.svelte.d.ts +2 -2
  151. package/dist/components/form/FormMarkdownEditor.svelte +123 -156
  152. package/dist/components/form/FormNumberField.stories.svelte +18 -18
  153. package/dist/components/form/FormNumberField.stories.svelte.d.ts +1 -1
  154. package/dist/components/form/FormNumberField.svelte +6 -6
  155. package/dist/components/form/FormRangeField.stories.svelte +13 -13
  156. package/dist/components/form/FormRangeField.stories.svelte.d.ts +1 -1
  157. package/dist/components/form/FormRangeField.svelte +4 -12
  158. package/dist/components/form/FormSelect.stories.svelte +21 -21
  159. package/dist/components/form/FormSelect.stories.svelte.d.ts +1 -1
  160. package/dist/components/form/FormSelect.svelte +5 -5
  161. package/dist/components/form/FormSelect.svelte.d.ts +1 -1
  162. package/dist/components/form/FormTemplateEditor.svelte +126 -175
  163. package/dist/components/form/FormTemplateEditor.svelte.d.ts +1 -1
  164. package/dist/components/form/FormTextField.stories.svelte +17 -23
  165. package/dist/components/form/FormTextField.stories.svelte.d.ts +1 -1
  166. package/dist/components/form/FormTextField.svelte +4 -4
  167. package/dist/components/form/FormTextarea.stories.svelte +18 -21
  168. package/dist/components/form/FormTextarea.stories.svelte.d.ts +1 -1
  169. package/dist/components/form/FormTextarea.svelte +4 -4
  170. package/dist/components/form/FormToggle.stories.svelte +13 -16
  171. package/dist/components/form/FormToggle.stories.svelte.d.ts +1 -1
  172. package/dist/components/form/FormToggle.svelte +3 -3
  173. package/dist/components/form/FormUISchemaRenderer.svelte +12 -19
  174. package/dist/components/form/FormUISchemaRenderer.svelte.d.ts +3 -3
  175. package/dist/components/form/index.d.ts +19 -19
  176. package/dist/components/form/index.js +18 -18
  177. package/dist/components/form/templateAutocomplete.d.ts +2 -2
  178. package/dist/components/form/templateAutocomplete.js +55 -64
  179. package/dist/components/form/types.d.ts +6 -6
  180. package/dist/components/form/types.js +4 -9
  181. package/dist/components/icons/AlertCircleIcon.svelte +1 -6
  182. package/dist/components/icons/CogIcon.svelte +1 -6
  183. package/dist/components/interrupt/ChoicePrompt.stories.svelte +27 -27
  184. package/dist/components/interrupt/ChoicePrompt.stories.svelte.d.ts +1 -1
  185. package/dist/components/interrupt/ChoicePrompt.svelte +17 -41
  186. package/dist/components/interrupt/ChoicePrompt.svelte.d.ts +1 -1
  187. package/dist/components/interrupt/ConfirmationPrompt.stories.svelte +17 -17
  188. package/dist/components/interrupt/ConfirmationPrompt.stories.svelte.d.ts +1 -1
  189. package/dist/components/interrupt/ConfirmationPrompt.svelte +10 -16
  190. package/dist/components/interrupt/ConfirmationPrompt.svelte.d.ts +1 -1
  191. package/dist/components/interrupt/FormPrompt.svelte +10 -15
  192. package/dist/components/interrupt/FormPrompt.svelte.d.ts +1 -1
  193. package/dist/components/interrupt/InterruptBubble.svelte +87 -121
  194. package/dist/components/interrupt/InterruptBubble.svelte.d.ts +2 -2
  195. package/dist/components/interrupt/ReviewPrompt.stories.svelte +37 -37
  196. package/dist/components/interrupt/ReviewPrompt.stories.svelte.d.ts +1 -1
  197. package/dist/components/interrupt/ReviewPrompt.svelte +55 -75
  198. package/dist/components/interrupt/ReviewPrompt.svelte.d.ts +1 -1
  199. package/dist/components/interrupt/TextInputPrompt.stories.svelte +16 -17
  200. package/dist/components/interrupt/TextInputPrompt.stories.svelte.d.ts +1 -1
  201. package/dist/components/interrupt/TextInputPrompt.svelte +13 -18
  202. package/dist/components/interrupt/TextInputPrompt.svelte.d.ts +1 -1
  203. package/dist/components/interrupt/index.d.ts +6 -6
  204. package/dist/components/interrupt/index.js +6 -6
  205. package/dist/components/layouts/MainLayout.svelte +46 -84
  206. package/dist/components/layouts/MainLayout.svelte.d.ts +6 -6
  207. package/dist/components/nodes/GatewayNode.stories.svelte +64 -65
  208. package/dist/components/nodes/GatewayNode.svelte +37 -70
  209. package/dist/components/nodes/GatewayNode.svelte.d.ts +3 -3
  210. package/dist/components/nodes/IdeaNode.stories.svelte +25 -26
  211. package/dist/components/nodes/IdeaNode.svelte +22 -36
  212. package/dist/components/nodes/IdeaNode.svelte.d.ts +1 -1
  213. package/dist/components/nodes/NotesNode.stories.svelte +37 -38
  214. package/dist/components/nodes/NotesNode.svelte +28 -39
  215. package/dist/components/nodes/NotesNode.svelte.d.ts +1 -1
  216. package/dist/components/nodes/SimpleNode.stories.svelte +137 -138
  217. package/dist/components/nodes/SimpleNode.svelte +51 -81
  218. package/dist/components/nodes/SimpleNode.svelte.d.ts +1 -1
  219. package/dist/components/nodes/SquareNode.stories.svelte +75 -75
  220. package/dist/components/nodes/SquareNode.svelte +42 -68
  221. package/dist/components/nodes/SquareNode.svelte.d.ts +1 -1
  222. package/dist/components/nodes/TerminalNode.stories.svelte +10 -10
  223. package/dist/components/nodes/TerminalNode.svelte +74 -112
  224. package/dist/components/nodes/TerminalNode.svelte.d.ts +1 -1
  225. package/dist/components/nodes/ToolNode.stories.svelte +115 -116
  226. package/dist/components/nodes/ToolNode.svelte +31 -64
  227. package/dist/components/nodes/ToolNode.svelte.d.ts +1 -1
  228. package/dist/components/nodes/WorkflowNode.stories.svelte +84 -89
  229. package/dist/components/nodes/WorkflowNode.svelte +50 -103
  230. package/dist/components/nodes/WorkflowNode.svelte.d.ts +3 -3
  231. package/dist/components/playground/ChatPanel.svelte +47 -103
  232. package/dist/components/playground/ExecutionLogs.svelte +45 -68
  233. package/dist/components/playground/InputCollector.svelte +32 -51
  234. package/dist/components/playground/MessageBubble.stories.svelte +25 -25
  235. package/dist/components/playground/MessageBubble.stories.svelte.d.ts +1 -1
  236. package/dist/components/playground/MessageBubble.svelte +54 -70
  237. package/dist/components/playground/MessageBubble.svelte.d.ts +1 -1
  238. package/dist/components/playground/Playground.svelte +60 -91
  239. package/dist/components/playground/Playground.svelte.d.ts +3 -3
  240. package/dist/components/playground/PlaygroundModal.svelte +8 -12
  241. package/dist/components/playground/PlaygroundModal.svelte.d.ts +3 -3
  242. package/dist/components/playground/SessionManager.svelte +34 -40
  243. package/dist/components/playground/SessionManager.svelte.d.ts +1 -1
  244. package/dist/config/agentSpecEndpoints.d.ts +1 -1
  245. package/dist/config/agentSpecEndpoints.js +20 -20
  246. package/dist/config/constants.js +2 -2
  247. package/dist/config/defaultCategories.d.ts +1 -1
  248. package/dist/config/defaultCategories.js +86 -86
  249. package/dist/config/defaultPortConfig.d.ts +1 -1
  250. package/dist/config/defaultPortConfig.js +144 -144
  251. package/dist/config/endpoints.d.ts +4 -4
  252. package/dist/config/endpoints.js +68 -68
  253. package/dist/config/runtimeConfig.d.ts +2 -2
  254. package/dist/config/runtimeConfig.js +8 -8
  255. package/dist/core/index.d.ts +68 -68
  256. package/dist/core/index.js +38 -38
  257. package/dist/display/index.d.ts +2 -2
  258. package/dist/display/index.js +2 -2
  259. package/dist/editor/index.d.ts +64 -64
  260. package/dist/editor/index.js +54 -54
  261. package/dist/form/code.d.ts +5 -5
  262. package/dist/form/code.js +14 -14
  263. package/dist/form/fieldRegistry.d.ts +3 -3
  264. package/dist/form/fieldRegistry.js +9 -11
  265. package/dist/form/full.d.ts +8 -8
  266. package/dist/form/full.js +9 -9
  267. package/dist/form/index.d.ts +18 -18
  268. package/dist/form/index.js +16 -16
  269. package/dist/form/markdown.d.ts +4 -4
  270. package/dist/form/markdown.js +8 -8
  271. package/dist/helpers/proximityConnect.d.ts +3 -3
  272. package/dist/helpers/proximityConnect.js +32 -34
  273. package/dist/helpers/workflowEditorHelper.d.ts +6 -6
  274. package/dist/helpers/workflowEditorHelper.js +64 -68
  275. package/dist/index.d.ts +6 -6
  276. package/dist/index.js +6 -6
  277. package/dist/mocks/app-environment.js +2 -2
  278. package/dist/mocks/app-forms.js +1 -1
  279. package/dist/mocks/app-navigation.js +2 -2
  280. package/dist/mocks/app-stores.js +3 -3
  281. package/dist/playground/index.d.ts +19 -19
  282. package/dist/playground/index.js +16 -16
  283. package/dist/playground/mount.d.ts +3 -3
  284. package/dist/playground/mount.js +24 -24
  285. package/dist/registry/builtinFormats.js +13 -13
  286. package/dist/registry/builtinNodes.d.ts +2 -2
  287. package/dist/registry/builtinNodes.js +77 -77
  288. package/dist/registry/index.d.ts +4 -4
  289. package/dist/registry/index.js +4 -4
  290. package/dist/registry/nodeComponentRegistry.d.ts +8 -8
  291. package/dist/registry/nodeComponentRegistry.js +9 -11
  292. package/dist/registry/plugin.d.ts +2 -2
  293. package/dist/registry/plugin.js +11 -11
  294. package/dist/registry/workflowFormatRegistry.d.ts +3 -3
  295. package/dist/registry/workflowFormatRegistry.js +2 -2
  296. package/dist/schema/index.d.ts +1 -1
  297. package/dist/schema/index.js +2 -2
  298. package/dist/schemas/v1/workflow.schema.json +5 -0
  299. package/dist/services/agentSpecExecutionService.d.ts +3 -3
  300. package/dist/services/agentSpecExecutionService.js +55 -56
  301. package/dist/services/api.d.ts +2 -2
  302. package/dist/services/api.js +37 -37
  303. package/dist/services/apiVariableService.d.ts +1 -1
  304. package/dist/services/apiVariableService.js +34 -41
  305. package/dist/services/autoSaveService.js +8 -8
  306. package/dist/services/categoriesApi.d.ts +2 -2
  307. package/dist/services/categoriesApi.js +8 -8
  308. package/dist/services/chatService.d.ts +1 -1
  309. package/dist/services/chatService.js +18 -18
  310. package/dist/services/draftStorage.d.ts +1 -1
  311. package/dist/services/draftStorage.js +11 -11
  312. package/dist/services/dynamicSchemaService.d.ts +1 -1
  313. package/dist/services/dynamicSchemaService.js +39 -41
  314. package/dist/services/globalSave.d.ts +2 -2
  315. package/dist/services/globalSave.js +38 -41
  316. package/dist/services/historyService.d.ts +1 -1
  317. package/dist/services/historyService.js +10 -10
  318. package/dist/services/interruptService.d.ts +1 -1
  319. package/dist/services/interruptService.js +29 -35
  320. package/dist/services/nodeExecutionService.d.ts +1 -1
  321. package/dist/services/nodeExecutionService.js +44 -45
  322. package/dist/services/playgroundService.d.ts +1 -1
  323. package/dist/services/playgroundService.js +29 -29
  324. package/dist/services/portConfigApi.d.ts +2 -2
  325. package/dist/services/portConfigApi.js +8 -8
  326. package/dist/services/settingsService.d.ts +2 -2
  327. package/dist/services/settingsService.js +19 -25
  328. package/dist/services/toastService.d.ts +4 -4
  329. package/dist/services/toastService.js +33 -33
  330. package/dist/services/variableService.d.ts +1 -1
  331. package/dist/services/variableService.js +36 -36
  332. package/dist/services/workflowStorage.d.ts +2 -2
  333. package/dist/services/workflowStorage.js +13 -13
  334. package/dist/settings/index.d.ts +7 -7
  335. package/dist/settings/index.js +6 -6
  336. package/dist/skins/default.d.ts +1 -1
  337. package/dist/skins/default.js +1 -1
  338. package/dist/skins/index.d.ts +3 -3
  339. package/dist/skins/index.js +7 -7
  340. package/dist/skins/slate.d.ts +1 -1
  341. package/dist/skins/slate.js +69 -69
  342. package/dist/stores/categoriesStore.svelte.d.ts +1 -1
  343. package/dist/stores/categoriesStore.svelte.js +5 -5
  344. package/dist/stores/editorStateMachine.svelte.d.ts +2 -2
  345. package/dist/stores/editorStateMachine.svelte.js +34 -34
  346. package/dist/stores/historyStore.svelte.d.ts +4 -4
  347. package/dist/stores/historyStore.svelte.js +4 -4
  348. package/dist/stores/interruptStore.svelte.d.ts +3 -3
  349. package/dist/stores/interruptStore.svelte.js +21 -21
  350. package/dist/stores/playgroundStore.svelte.d.ts +2 -2
  351. package/dist/stores/playgroundStore.svelte.js +18 -21
  352. package/dist/stores/portCoordinateStore.svelte.d.ts +2 -2
  353. package/dist/stores/portCoordinateStore.svelte.js +10 -13
  354. package/dist/stores/settingsStore.svelte.d.ts +2 -2
  355. package/dist/stores/settingsStore.svelte.js +57 -62
  356. package/dist/stores/workflowStore.svelte.d.ts +4 -3
  357. package/dist/stores/workflowStore.svelte.js +47 -47
  358. package/dist/stories/CanvasDecorator.svelte +7 -10
  359. package/dist/stories/CanvasDecorator.svelte.d.ts +2 -2
  360. package/dist/stories/EdgeDecorator.svelte +28 -31
  361. package/dist/stories/EdgeDecorator.svelte.d.ts +1 -1
  362. package/dist/stories/NodeDecorator.svelte +14 -20
  363. package/dist/stories/NodeDecorator.svelte.d.ts +1 -1
  364. package/dist/stories/utils.d.ts +2 -2
  365. package/dist/stories/utils.js +89 -93
  366. package/dist/styles/base.css +16 -50
  367. package/dist/styles/tokens.css +10 -28
  368. package/dist/svelte-app.d.ts +10 -10
  369. package/dist/svelte-app.js +39 -39
  370. package/dist/themes/default.d.ts +1 -1
  371. package/dist/themes/default.js +4 -4
  372. package/dist/themes/index.d.ts +3 -3
  373. package/dist/themes/index.js +11 -11
  374. package/dist/themes/minimal.d.ts +1 -1
  375. package/dist/themes/minimal.js +5 -5
  376. package/dist/types/agentspec.d.ts +18 -18
  377. package/dist/types/agentspec.js +2 -2
  378. package/dist/types/auth.d.ts +1 -1
  379. package/dist/types/auth.js +6 -6
  380. package/dist/types/chat.d.ts +2 -2
  381. package/dist/types/config.d.ts +6 -6
  382. package/dist/types/events.d.ts +3 -3
  383. package/dist/types/events.js +2 -2
  384. package/dist/types/index.d.ts +34 -32
  385. package/dist/types/index.js +6 -6
  386. package/dist/types/interrupt.d.ts +6 -6
  387. package/dist/types/interrupt.js +21 -21
  388. package/dist/types/interruptState.d.ts +12 -12
  389. package/dist/types/interruptState.js +66 -66
  390. package/dist/types/playground.d.ts +7 -7
  391. package/dist/types/playground.js +14 -14
  392. package/dist/types/settings.d.ts +7 -5
  393. package/dist/types/settings.js +19 -24
  394. package/dist/types/skin.d.ts +1 -1
  395. package/dist/types/theme.d.ts +2 -2
  396. package/dist/types/uischema.d.ts +4 -4
  397. package/dist/types/uischema.js +3 -3
  398. package/dist/utils/colors.d.ts +1 -1
  399. package/dist/utils/colors.js +95 -97
  400. package/dist/utils/config.d.ts +2 -2
  401. package/dist/utils/config.js +48 -48
  402. package/dist/utils/connections.d.ts +6 -2
  403. package/dist/utils/connections.js +21 -15
  404. package/dist/utils/edgeStyling.d.ts +2 -2
  405. package/dist/utils/edgeStyling.js +36 -39
  406. package/dist/utils/errors.js +3 -3
  407. package/dist/utils/fetchWithAuth.d.ts +1 -1
  408. package/dist/utils/fetchWithAuth.js +2 -2
  409. package/dist/utils/handleIds.d.ts +2 -2
  410. package/dist/utils/handleIds.js +8 -8
  411. package/dist/utils/handlePositioning.d.ts +1 -1
  412. package/dist/utils/handlePositioning.js +2 -2
  413. package/dist/utils/icons.d.ts +1 -1
  414. package/dist/utils/icons.js +74 -74
  415. package/dist/utils/logger.d.ts +1 -1
  416. package/dist/utils/logger.js +7 -7
  417. package/dist/utils/nodeIds.d.ts +1 -1
  418. package/dist/utils/nodeIds.js +1 -1
  419. package/dist/utils/nodeStatus.d.ts +1 -1
  420. package/dist/utils/nodeStatus.js +48 -48
  421. package/dist/utils/nodeSwap.d.ts +9 -9
  422. package/dist/utils/nodeSwap.js +52 -58
  423. package/dist/utils/nodeTypes.d.ts +1 -1
  424. package/dist/utils/nodeTypes.js +20 -21
  425. package/dist/utils/nodeWrapper.d.ts +7 -7
  426. package/dist/utils/nodeWrapper.js +19 -21
  427. package/dist/utils/performanceUtils.d.ts +1 -1
  428. package/dist/utils/performanceUtils.js +1 -2
  429. package/dist/utils/portUtils.d.ts +2 -2
  430. package/dist/utils/portUtils.js +1 -1
  431. package/dist/utils/sanitize.js +1 -1
  432. package/dist/utils/uischema.d.ts +2 -2
  433. package/dist/utils/uischema.js +8 -8
  434. package/dist/utils/validation.js +8 -8
  435. package/package.json +7 -11
@@ -110,22 +110,22 @@
110
110
  * );
111
111
  * ```
112
112
  */
113
- export { default as Playground } from "../components/playground/Playground.svelte";
114
- export { default as PlaygroundModal } from "../components/playground/PlaygroundModal.svelte";
115
- export { default as ChatPanel } from "../components/playground/ChatPanel.svelte";
116
- export { default as SessionManager } from "../components/playground/SessionManager.svelte";
117
- export { default as InputCollector } from "../components/playground/InputCollector.svelte";
118
- export { default as ExecutionLogs } from "../components/playground/ExecutionLogs.svelte";
119
- export { default as MessageBubble } from "../components/playground/MessageBubble.svelte";
120
- export { InterruptBubble, ConfirmationPrompt, ChoicePrompt, TextInputPrompt, FormPrompt, ReviewPrompt, } from "../components/interrupt/index.js";
121
- export { PlaygroundService, playgroundService, } from "../services/playgroundService.js";
122
- export { InterruptService, interruptService, } from "../services/interruptService.js";
123
- export { getCurrentSession, getSessions, getMessages, getIsExecuting, getIsLoading, getError as getPlaygroundError, getCurrentWorkflow, getLastPollTimestamp, getSessionStatus, getMessageCount, getChatMessages, getLogMessages, getLatestMessage, getInputFields, getHasChatInput, getSessionCount, playgroundActions, createPollingCallback, subscribeToSessionStatus, getCurrentSessionId, isSessionSelected, getMessagesSnapshot, getLatestMessageTimestamp, } from "../stores/playgroundStore.svelte.js";
124
- export type { PlaygroundSession, PlaygroundMessage, PlaygroundInputField, PlaygroundMessageRequest, PlaygroundMessagesResult, PlaygroundConfig, PlaygroundMode, PlaygroundSessionStatus, PlaygroundMessageRole, PlaygroundMessageLevel, PlaygroundMessageMetadata, PlaygroundApiResponse, PlaygroundSessionsResponse, PlaygroundSessionResponse, PlaygroundMessageResponse, PlaygroundMessagesApiResponse, } from "../types/playground.js";
125
- export { isChatInputNode, CHAT_INPUT_PATTERNS, defaultShouldStopPolling, defaultIsTerminalStatus, DEFAULT_STOP_POLLING_STATUSES, DEFAULT_TERMINAL_STATUSES, } from "../types/playground.js";
126
- export type { InterruptType, InterruptStatus, Interrupt, InterruptChoice, InterruptConfig, ConfirmationConfig, ChoiceConfig, TextConfig, FormConfig, ReviewConfig, ReviewChange, ReviewFieldDecision, ReviewResolution, InterruptResolution, InterruptApiResponse, InterruptListResponse, InterruptResponse, InterruptMessageMetadata, InterruptPollingConfig, } from "../types/interrupt.js";
127
- export { isInterruptMetadata, extractInterruptMetadata, metadataToInterrupt, defaultInterruptPollingConfig, } from "../types/interrupt.js";
128
- export { getInterruptsMap, getPendingInterruptIds, getPendingInterrupts, getPendingInterruptCount, getResolvedInterrupts, getIsAnySubmitting, interruptActions, getInterrupt, isInterruptPending, isInterruptSubmitting, getInterruptError, getInterruptByMessageId, interruptHasError, } from "../stores/interruptStore.svelte.js";
129
- export type { InterruptWithState } from "../stores/interruptStore.svelte.js";
130
- export { mountPlayground, unmountPlayground, type PlaygroundMountOptions, type MountedPlayground, } from "./mount.js";
131
- export { createEndpointConfig, defaultEndpointConfig, buildEndpointUrl, type EndpointConfig, } from "../config/endpoints.js";
113
+ export { default as Playground } from '../components/playground/Playground.svelte';
114
+ export { default as PlaygroundModal } from '../components/playground/PlaygroundModal.svelte';
115
+ export { default as ChatPanel } from '../components/playground/ChatPanel.svelte';
116
+ export { default as SessionManager } from '../components/playground/SessionManager.svelte';
117
+ export { default as InputCollector } from '../components/playground/InputCollector.svelte';
118
+ export { default as ExecutionLogs } from '../components/playground/ExecutionLogs.svelte';
119
+ export { default as MessageBubble } from '../components/playground/MessageBubble.svelte';
120
+ export { InterruptBubble, ConfirmationPrompt, ChoicePrompt, TextInputPrompt, FormPrompt, ReviewPrompt } from '../components/interrupt/index.js';
121
+ export { PlaygroundService, playgroundService } from '../services/playgroundService.js';
122
+ export { InterruptService, interruptService } from '../services/interruptService.js';
123
+ export { getCurrentSession, getSessions, getMessages, getIsExecuting, getIsLoading, getError as getPlaygroundError, getCurrentWorkflow, getLastPollTimestamp, getSessionStatus, getMessageCount, getChatMessages, getLogMessages, getLatestMessage, getInputFields, getHasChatInput, getSessionCount, playgroundActions, createPollingCallback, subscribeToSessionStatus, getCurrentSessionId, isSessionSelected, getMessagesSnapshot, getLatestMessageTimestamp } from '../stores/playgroundStore.svelte.js';
124
+ export type { PlaygroundSession, PlaygroundMessage, PlaygroundInputField, PlaygroundMessageRequest, PlaygroundMessagesResult, PlaygroundConfig, PlaygroundMode, PlaygroundSessionStatus, PlaygroundMessageRole, PlaygroundMessageLevel, PlaygroundMessageMetadata, PlaygroundApiResponse, PlaygroundSessionsResponse, PlaygroundSessionResponse, PlaygroundMessageResponse, PlaygroundMessagesApiResponse } from '../types/playground.js';
125
+ export { isChatInputNode, CHAT_INPUT_PATTERNS, defaultShouldStopPolling, defaultIsTerminalStatus, DEFAULT_STOP_POLLING_STATUSES, DEFAULT_TERMINAL_STATUSES } from '../types/playground.js';
126
+ export type { InterruptType, InterruptStatus, Interrupt, InterruptChoice, InterruptConfig, ConfirmationConfig, ChoiceConfig, TextConfig, FormConfig, ReviewConfig, ReviewChange, ReviewFieldDecision, ReviewResolution, InterruptResolution, InterruptApiResponse, InterruptListResponse, InterruptResponse, InterruptMessageMetadata, InterruptPollingConfig } from '../types/interrupt.js';
127
+ export { isInterruptMetadata, extractInterruptMetadata, metadataToInterrupt, defaultInterruptPollingConfig } from '../types/interrupt.js';
128
+ export { getInterruptsMap, getPendingInterruptIds, getPendingInterrupts, getPendingInterruptCount, getResolvedInterrupts, getIsAnySubmitting, interruptActions, getInterrupt, isInterruptPending, isInterruptSubmitting, getInterruptError, getInterruptByMessageId, interruptHasError } from '../stores/interruptStore.svelte.js';
129
+ export type { InterruptWithState } from '../stores/interruptStore.svelte.js';
130
+ export { mountPlayground, unmountPlayground, type PlaygroundMountOptions, type MountedPlayground } from './mount.js';
131
+ export { createEndpointConfig, defaultEndpointConfig, buildEndpointUrl, type EndpointConfig } from '../config/endpoints.js';
@@ -113,25 +113,25 @@
113
113
  // ============================================================================
114
114
  // Playground Components
115
115
  // ============================================================================
116
- export { default as Playground } from "../components/playground/Playground.svelte";
117
- export { default as PlaygroundModal } from "../components/playground/PlaygroundModal.svelte";
118
- export { default as ChatPanel } from "../components/playground/ChatPanel.svelte";
119
- export { default as SessionManager } from "../components/playground/SessionManager.svelte";
120
- export { default as InputCollector } from "../components/playground/InputCollector.svelte";
121
- export { default as ExecutionLogs } from "../components/playground/ExecutionLogs.svelte";
122
- export { default as MessageBubble } from "../components/playground/MessageBubble.svelte";
116
+ export { default as Playground } from '../components/playground/Playground.svelte';
117
+ export { default as PlaygroundModal } from '../components/playground/PlaygroundModal.svelte';
118
+ export { default as ChatPanel } from '../components/playground/ChatPanel.svelte';
119
+ export { default as SessionManager } from '../components/playground/SessionManager.svelte';
120
+ export { default as InputCollector } from '../components/playground/InputCollector.svelte';
121
+ export { default as ExecutionLogs } from '../components/playground/ExecutionLogs.svelte';
122
+ export { default as MessageBubble } from '../components/playground/MessageBubble.svelte';
123
123
  // ============================================================================
124
124
  // Interrupt Components (Human-in-the-Loop)
125
125
  // ============================================================================
126
- export { InterruptBubble, ConfirmationPrompt, ChoicePrompt, TextInputPrompt, FormPrompt, ReviewPrompt, } from "../components/interrupt/index.js";
126
+ export { InterruptBubble, ConfirmationPrompt, ChoicePrompt, TextInputPrompt, FormPrompt, ReviewPrompt } from '../components/interrupt/index.js';
127
127
  // ============================================================================
128
128
  // Playground Service
129
129
  // ============================================================================
130
- export { PlaygroundService, playgroundService, } from "../services/playgroundService.js";
130
+ export { PlaygroundService, playgroundService } from '../services/playgroundService.js';
131
131
  // ============================================================================
132
132
  // Interrupt Service (Human-in-the-Loop)
133
133
  // ============================================================================
134
- export { InterruptService, interruptService, } from "../services/interruptService.js";
134
+ export { InterruptService, interruptService } from '../services/interruptService.js';
135
135
  // ============================================================================
136
136
  // Playground Store
137
137
  // ============================================================================
@@ -147,9 +147,9 @@ createPollingCallback,
147
147
  // Subscription utility
148
148
  subscribeToSessionStatus,
149
149
  // Utilities
150
- getCurrentSessionId, isSessionSelected, getMessagesSnapshot, getLatestMessageTimestamp, } from "../stores/playgroundStore.svelte.js";
151
- export { isChatInputNode, CHAT_INPUT_PATTERNS, defaultShouldStopPolling, defaultIsTerminalStatus, DEFAULT_STOP_POLLING_STATUSES, DEFAULT_TERMINAL_STATUSES, } from "../types/playground.js";
152
- export { isInterruptMetadata, extractInterruptMetadata, metadataToInterrupt, defaultInterruptPollingConfig, } from "../types/interrupt.js";
150
+ getCurrentSessionId, isSessionSelected, getMessagesSnapshot, getLatestMessageTimestamp } from '../stores/playgroundStore.svelte.js';
151
+ export { isChatInputNode, CHAT_INPUT_PATTERNS, defaultShouldStopPolling, defaultIsTerminalStatus, DEFAULT_STOP_POLLING_STATUSES, DEFAULT_TERMINAL_STATUSES } from '../types/playground.js';
152
+ export { isInterruptMetadata, extractInterruptMetadata, metadataToInterrupt, defaultInterruptPollingConfig } from '../types/interrupt.js';
153
153
  // ============================================================================
154
154
  // Interrupt Store (Human-in-the-Loop)
155
155
  // ============================================================================
@@ -161,12 +161,12 @@ getPendingInterruptIds, getPendingInterrupts, getPendingInterruptCount, getResol
161
161
  // Actions
162
162
  interruptActions,
163
163
  // Utilities
164
- getInterrupt, isInterruptPending, isInterruptSubmitting, getInterruptError, getInterruptByMessageId, interruptHasError, } from "../stores/interruptStore.svelte.js";
164
+ getInterrupt, isInterruptPending, isInterruptSubmitting, getInterruptError, getInterruptByMessageId, interruptHasError } from '../stores/interruptStore.svelte.js';
165
165
  // ============================================================================
166
166
  // Playground Mount Functions (for vanilla JS / Drupal / IIFE integration)
167
167
  // ============================================================================
168
- export { mountPlayground, unmountPlayground, } from "./mount.js";
168
+ export { mountPlayground, unmountPlayground } from './mount.js';
169
169
  // ============================================================================
170
170
  // Endpoint Configuration (re-exported for convenience)
171
171
  // ============================================================================
172
- export { createEndpointConfig, defaultEndpointConfig, buildEndpointUrl, } from "../config/endpoints.js";
172
+ export { createEndpointConfig, defaultEndpointConfig, buildEndpointUrl } from '../config/endpoints.js';
@@ -43,9 +43,9 @@
43
43
  * })(Drupal, window.FlowDrop);
44
44
  * ```
45
45
  */
46
- import type { Workflow } from "../types/index.js";
47
- import type { EndpointConfig } from "../config/endpoints.js";
48
- import type { PlaygroundMode, PlaygroundConfig, PlaygroundSession, PlaygroundMessagesApiResponse, PlaygroundSessionStatus } from "../types/playground.js";
46
+ import type { Workflow } from '../types/index.js';
47
+ import type { EndpointConfig } from '../config/endpoints.js';
48
+ import type { PlaygroundMode, PlaygroundConfig, PlaygroundSession, PlaygroundMessagesApiResponse, PlaygroundSessionStatus } from '../types/playground.js';
49
49
  /**
50
50
  * Mount options for Playground component
51
51
  */
@@ -43,12 +43,12 @@
43
43
  * })(Drupal, window.FlowDrop);
44
44
  * ```
45
45
  */
46
- import { mount, unmount } from "svelte";
47
- import Playground from "../components/playground/Playground.svelte";
48
- import PlaygroundModal from "../components/playground/PlaygroundModal.svelte";
49
- import { setEndpointConfig } from "../services/api.js";
50
- import { playgroundService } from "../services/playgroundService.js";
51
- import { getCurrentSession, getSessions, getMessages, playgroundActions, createPollingCallback, subscribeToSessionStatus, } from "../stores/playgroundStore.svelte.js";
46
+ import { mount, unmount } from 'svelte';
47
+ import Playground from '../components/playground/Playground.svelte';
48
+ import PlaygroundModal from '../components/playground/PlaygroundModal.svelte';
49
+ import { setEndpointConfig } from '../services/api.js';
50
+ import { playgroundService } from '../services/playgroundService.js';
51
+ import { getCurrentSession, getSessions, getMessages, playgroundActions, createPollingCallback, subscribeToSessionStatus } from '../stores/playgroundStore.svelte.js';
52
52
  /**
53
53
  * Mount the Playground component in a container
54
54
  *
@@ -79,30 +79,30 @@ import { getCurrentSession, getSessions, getMessages, playgroundActions, createP
79
79
  * ```
80
80
  */
81
81
  export async function mountPlayground(container, options) {
82
- const { workflowId, workflow, mode = "standalone", initialSessionId, endpointConfig, config = {}, height = "100%", width = "100%", onClose, onSessionStatusChange, } = options;
82
+ const { workflowId, workflow, mode = 'standalone', initialSessionId, endpointConfig, config = {}, height = '100%', width = '100%', onClose, onSessionStatusChange } = options;
83
83
  // Validate required parameters
84
84
  if (!workflowId) {
85
- throw new Error("workflowId is required for mountPlayground()");
85
+ throw new Error('workflowId is required for mountPlayground()');
86
86
  }
87
87
  if (!container) {
88
- throw new Error("container element is required for mountPlayground()");
88
+ throw new Error('container element is required for mountPlayground()');
89
89
  }
90
90
  // Validate onClose for modal mode
91
- if (mode === "modal" && !onClose) {
92
- throw new Error("onClose callback is required for modal mode");
91
+ if (mode === 'modal' && !onClose) {
92
+ throw new Error('onClose callback is required for modal mode');
93
93
  }
94
94
  // Set endpoint configuration if provided
95
95
  let finalEndpointConfig;
96
96
  if (endpointConfig) {
97
97
  // Merge with default configuration to ensure all required endpoints are present
98
- const { defaultEndpointConfig } = await import("../config/endpoints.js");
98
+ const { defaultEndpointConfig } = await import('../config/endpoints.js');
99
99
  finalEndpointConfig = {
100
100
  ...defaultEndpointConfig,
101
101
  ...endpointConfig,
102
102
  endpoints: {
103
103
  ...defaultEndpointConfig.endpoints,
104
- ...endpointConfig.endpoints,
105
- },
104
+ ...endpointConfig.endpoints
105
+ }
106
106
  };
107
107
  setEndpointConfig(finalEndpointConfig);
108
108
  }
@@ -110,7 +110,7 @@ export async function mountPlayground(container, options) {
110
110
  // For modal mode, PlaygroundModal creates its own backdrop, so we mount directly to body
111
111
  // For other modes, use the provided container
112
112
  let targetContainer = container;
113
- if (mode === "modal") {
113
+ if (mode === 'modal') {
114
114
  // For modal mode, create a container in the body
115
115
  // PlaygroundModal will handle the backdrop itself
116
116
  targetContainer = document.body;
@@ -123,7 +123,7 @@ export async function mountPlayground(container, options) {
123
123
  // Mount the appropriate component
124
124
  // Separate the mount calls to avoid TypeScript inference issues with different props types
125
125
  let svelteApp;
126
- if (mode === "modal") {
126
+ if (mode === 'modal') {
127
127
  svelteApp = mount(PlaygroundModal, {
128
128
  target: targetContainer,
129
129
  props: {
@@ -137,8 +137,8 @@ export async function mountPlayground(container, options) {
137
137
  if (onClose) {
138
138
  onClose();
139
139
  }
140
- },
141
- },
140
+ }
141
+ }
142
142
  });
143
143
  }
144
144
  else {
@@ -151,16 +151,16 @@ export async function mountPlayground(container, options) {
151
151
  initialSessionId,
152
152
  endpointConfig: finalEndpointConfig,
153
153
  config,
154
- onClose,
155
- },
154
+ onClose
155
+ }
156
156
  });
157
157
  }
158
158
  // Store state for cleanup
159
159
  const state = {
160
160
  svelteApp,
161
161
  container: targetContainer,
162
- originalContainer: mode === "modal" ? container : undefined,
163
- workflowId,
162
+ originalContainer: mode === 'modal' ? container : undefined,
163
+ workflowId
164
164
  };
165
165
  // Create shared polling callback using lifecycle hooks from config
166
166
  const pollingCallback = createPollingCallback(config.isTerminalStatus);
@@ -209,7 +209,7 @@ export async function mountPlayground(container, options) {
209
209
  reset: () => {
210
210
  playgroundService.stopPolling();
211
211
  playgroundActions.reset();
212
- },
212
+ }
213
213
  };
214
214
  return mountedPlayground;
215
215
  }
@@ -229,7 +229,7 @@ export async function mountPlayground(container, options) {
229
229
  * ```
230
230
  */
231
231
  export function unmountPlayground(app) {
232
- if (app && typeof app.destroy === "function") {
232
+ if (app && typeof app.destroy === 'function') {
233
233
  app.destroy();
234
234
  }
235
235
  }
@@ -7,9 +7,9 @@
7
7
  * This module is automatically loaded when imported,
8
8
  * ensuring built-in formats are available without user action.
9
9
  */
10
- import { workflowFormatRegistry } from "./workflowFormatRegistry.js";
11
- import { AgentSpecAdapter } from "../adapters/agentspec/AgentSpecAdapter.js";
12
- import { validateForAgentSpecExport } from "../adapters/agentspec/validator.js";
10
+ import { workflowFormatRegistry } from './workflowFormatRegistry.js';
11
+ import { AgentSpecAdapter } from '../adapters/agentspec/AgentSpecAdapter.js';
12
+ import { validateForAgentSpecExport } from '../adapters/agentspec/validator.js';
13
13
  /**
14
14
  * Track whether built-in formats have been registered.
15
15
  * Prevents duplicate registration on hot reload.
@@ -24,13 +24,13 @@ export function registerBuiltinFormats() {
24
24
  return;
25
25
  // FlowDrop native — passthrough (StandardWorkflow ↔ JSON)
26
26
  const flowdropAdapter = {
27
- id: "flowdrop",
28
- name: "FlowDrop",
29
- description: "FlowDrop native workflow format",
30
- version: "1.0.0",
27
+ id: 'flowdrop',
28
+ name: 'FlowDrop',
29
+ description: 'FlowDrop native workflow format',
30
+ version: '1.0.0',
31
31
  // No nodes — FlowDrop nodes are universal (no formats restriction)
32
32
  export: (workflow) => JSON.stringify(workflow, null, 2),
33
- import: (data) => JSON.parse(data),
33
+ import: (data) => JSON.parse(data)
34
34
  };
35
35
  workflowFormatRegistry.register(flowdropAdapter);
36
36
  // Agent Spec — wraps existing AgentSpecAdapter
@@ -38,13 +38,13 @@ export function registerBuiltinFormats() {
38
38
  // getDefaultAgentSpecNodeTypes() or custom definitions passed to mountFlowDropApp()
39
39
  const agentSpecAdapter = new AgentSpecAdapter();
40
40
  const agentSpecFormatAdapter = {
41
- id: "agentspec",
42
- name: "Agent Spec (Oracle)",
43
- description: "Oracle Open Agent Spec format",
44
- version: "1.0.0",
41
+ id: 'agentspec',
42
+ name: 'Agent Spec (Oracle)',
43
+ description: 'Oracle Open Agent Spec format',
44
+ version: '1.0.0',
45
45
  export: (workflow) => agentSpecAdapter.exportJSON(workflow),
46
46
  import: (data) => agentSpecAdapter.importJSON(data),
47
- validate: (workflow) => validateForAgentSpecExport(workflow),
47
+ validate: (workflow) => validateForAgentSpecExport(workflow)
48
48
  };
49
49
  workflowFormatRegistry.register(agentSpecFormatAdapter);
50
50
  registered = true;
@@ -5,7 +5,7 @@
5
5
  * This module is automatically loaded when the library initializes,
6
6
  * ensuring all built-in node types are available without user action.
7
7
  */
8
- import { type NodeComponentRegistration } from "./nodeComponentRegistry.js";
8
+ import { type NodeComponentRegistration } from './nodeComponentRegistry.js';
9
9
  /**
10
10
  * Source identifier for built-in FlowDrop components
11
11
  */
@@ -70,7 +70,7 @@ export declare function getBuiltinTypes(): string[];
70
70
  * Type for built-in node types.
71
71
  * Use this when you specifically need a built-in type.
72
72
  */
73
- export type BuiltinNodeType = "workflowNode" | "simple" | "square" | "tool" | "gateway" | "note" | "terminal" | "idea";
73
+ export type BuiltinNodeType = 'workflowNode' | 'simple' | 'square' | 'tool' | 'gateway' | 'note' | 'terminal' | 'idea';
74
74
  /**
75
75
  * Array of built-in type strings for runtime validation.
76
76
  */
@@ -5,119 +5,119 @@
5
5
  * This module is automatically loaded when the library initializes,
6
6
  * ensuring all built-in node types are available without user action.
7
7
  */
8
- import { nodeComponentRegistry, } from "./nodeComponentRegistry.js";
9
- import WorkflowNode from "../components/nodes/WorkflowNode.svelte";
10
- import SimpleNode from "../components/nodes/SimpleNode.svelte";
11
- import SquareNode from "../components/nodes/SquareNode.svelte";
12
- import ToolNode from "../components/nodes/ToolNode.svelte";
13
- import GatewayNode from "../components/nodes/GatewayNode.svelte";
14
- import NotesNode from "../components/nodes/NotesNode.svelte";
15
- import TerminalNode from "../components/nodes/TerminalNode.svelte";
16
- import IdeaNode from "../components/nodes/IdeaNode.svelte";
8
+ import { nodeComponentRegistry } from './nodeComponentRegistry.js';
9
+ import WorkflowNode from '../components/nodes/WorkflowNode.svelte';
10
+ import SimpleNode from '../components/nodes/SimpleNode.svelte';
11
+ import SquareNode from '../components/nodes/SquareNode.svelte';
12
+ import ToolNode from '../components/nodes/ToolNode.svelte';
13
+ import GatewayNode from '../components/nodes/GatewayNode.svelte';
14
+ import NotesNode from '../components/nodes/NotesNode.svelte';
15
+ import TerminalNode from '../components/nodes/TerminalNode.svelte';
16
+ import IdeaNode from '../components/nodes/IdeaNode.svelte';
17
17
  /**
18
18
  * Source identifier for built-in FlowDrop components
19
19
  */
20
- export const FLOWDROP_SOURCE = "flowdrop";
20
+ export const FLOWDROP_SOURCE = 'flowdrop';
21
21
  /**
22
22
  * Built-in FlowDrop node component registrations.
23
23
  * These are the default node types that ship with FlowDrop.
24
24
  */
25
25
  export const BUILTIN_NODE_COMPONENTS = [
26
26
  {
27
- type: "workflowNode",
28
- displayName: "Default (Standard Workflow Node)",
29
- description: "Full-featured workflow node with inputs/outputs display",
27
+ type: 'workflowNode',
28
+ displayName: 'Default (Standard Workflow Node)',
29
+ description: 'Full-featured workflow node with inputs/outputs display',
30
30
  component: WorkflowNode,
31
- icon: "mdi:vector-square",
32
- category: "visual",
31
+ icon: 'mdi:vector-square',
32
+ category: 'visual',
33
33
  source: FLOWDROP_SOURCE,
34
- statusPosition: "top-right",
35
- statusSize: "md",
34
+ statusPosition: 'top-right',
35
+ statusSize: 'md'
36
36
  },
37
37
  {
38
- type: "simple",
39
- displayName: "Simple (Compact Layout)",
40
- description: "Compact node with header, icon, and description",
38
+ type: 'simple',
39
+ displayName: 'Simple (Compact Layout)',
40
+ description: 'Compact node with header, icon, and description',
41
41
  component: SimpleNode,
42
- icon: "mdi:card-outline",
43
- category: "visual",
42
+ icon: 'mdi:card-outline',
43
+ category: 'visual',
44
44
  source: FLOWDROP_SOURCE,
45
- statusPosition: "top-right",
46
- statusSize: "md",
45
+ statusPosition: 'top-right',
46
+ statusSize: 'md'
47
47
  },
48
48
  {
49
- type: "square",
50
- displayName: "Square (Minimal Icon)",
51
- description: "Minimal square node showing only an icon",
49
+ type: 'square',
50
+ displayName: 'Square (Minimal Icon)',
51
+ description: 'Minimal square node showing only an icon',
52
52
  component: SquareNode,
53
- icon: "mdi:square",
54
- category: "visual",
53
+ icon: 'mdi:square',
54
+ category: 'visual',
55
55
  source: FLOWDROP_SOURCE,
56
- statusPosition: "top-right",
57
- statusSize: "sm",
56
+ statusPosition: 'top-right',
57
+ statusSize: 'sm'
58
58
  },
59
59
  {
60
- type: "tool",
61
- displayName: "Tool (Agent Tool)",
62
- description: "Specialized node for agent tools with tool metadata",
60
+ type: 'tool',
61
+ displayName: 'Tool (Agent Tool)',
62
+ description: 'Specialized node for agent tools with tool metadata',
63
63
  component: ToolNode,
64
- icon: "mdi:tools",
65
- category: "functional",
64
+ icon: 'mdi:tools',
65
+ category: 'functional',
66
66
  source: FLOWDROP_SOURCE,
67
- statusPosition: "top-left",
68
- statusSize: "sm",
67
+ statusPosition: 'top-left',
68
+ statusSize: 'sm'
69
69
  },
70
70
  {
71
- type: "gateway",
72
- displayName: "Gateway (Branching)",
73
- description: "Branching control flow node with multiple output branches",
71
+ type: 'gateway',
72
+ displayName: 'Gateway (Branching)',
73
+ description: 'Branching control flow node with multiple output branches',
74
74
  component: GatewayNode,
75
- icon: "mdi:source-branch",
76
- category: "functional",
75
+ icon: 'mdi:source-branch',
76
+ category: 'functional',
77
77
  source: FLOWDROP_SOURCE,
78
- statusPosition: "top-right",
79
- statusSize: "md",
78
+ statusPosition: 'top-right',
79
+ statusSize: 'md'
80
80
  },
81
81
  {
82
- type: "note",
83
- displayName: "Note (Sticky Note)",
84
- description: "Documentation note with markdown support",
82
+ type: 'note',
83
+ displayName: 'Note (Sticky Note)',
84
+ description: 'Documentation note with markdown support',
85
85
  component: NotesNode,
86
- icon: "mdi:note-text",
87
- category: "layout",
86
+ icon: 'mdi:note-text',
87
+ category: 'layout',
88
88
  source: FLOWDROP_SOURCE,
89
- statusPosition: "bottom-right",
90
- statusSize: "sm",
89
+ statusPosition: 'bottom-right',
90
+ statusSize: 'sm'
91
91
  },
92
92
  {
93
- type: "terminal",
94
- displayName: "Terminal (Start/End/Exit)",
95
- description: "Circular terminal node for workflow start, end, or exit points",
93
+ type: 'terminal',
94
+ displayName: 'Terminal (Start/End/Exit)',
95
+ description: 'Circular terminal node for workflow start, end, or exit points',
96
96
  component: TerminalNode,
97
- icon: "mdi:circle-double",
98
- category: "functional",
97
+ icon: 'mdi:circle-double',
98
+ category: 'functional',
99
99
  source: FLOWDROP_SOURCE,
100
- statusPosition: "top-right",
101
- statusSize: "sm",
100
+ statusPosition: 'top-right',
101
+ statusSize: 'sm'
102
102
  },
103
103
  {
104
- type: "idea",
105
- displayName: "Idea (Conceptual Flow)",
106
- description: "Conceptual idea node for BPMN-like flow diagrams",
104
+ type: 'idea',
105
+ displayName: 'Idea (Conceptual Flow)',
106
+ description: 'Conceptual idea node for BPMN-like flow diagrams',
107
107
  component: IdeaNode,
108
- icon: "mdi:lightbulb-outline",
109
- category: "layout",
108
+ icon: 'mdi:lightbulb-outline',
109
+ category: 'layout',
110
110
  source: FLOWDROP_SOURCE,
111
- statusPosition: "top-right",
112
- statusSize: "sm",
113
- },
111
+ statusPosition: 'top-right',
112
+ statusSize: 'sm'
113
+ }
114
114
  ];
115
115
  /**
116
116
  * Alias mapping for type resolution.
117
117
  * Maps alternative type names to their canonical registration.
118
118
  */
119
119
  export const BUILTIN_TYPE_ALIASES = {
120
- default: "workflowNode",
120
+ default: 'workflowNode'
121
121
  };
122
122
  /**
123
123
  * Track whether built-in nodes have been registered.
@@ -144,7 +144,7 @@ export function registerBuiltinNodes() {
144
144
  // Register all built-in components
145
145
  nodeComponentRegistry.registerAll(BUILTIN_NODE_COMPONENTS, true);
146
146
  // Set the default type
147
- nodeComponentRegistry.setDefaultType("workflowNode");
147
+ nodeComponentRegistry.setDefaultType('workflowNode');
148
148
  builtinsRegistered = true;
149
149
  }
150
150
  /**
@@ -194,14 +194,14 @@ export function getBuiltinTypes() {
194
194
  * Array of built-in type strings for runtime validation.
195
195
  */
196
196
  export const BUILTIN_NODE_TYPES = [
197
- "workflowNode",
198
- "simple",
199
- "square",
200
- "tool",
201
- "gateway",
202
- "note",
203
- "terminal",
204
- "idea",
197
+ 'workflowNode',
198
+ 'simple',
199
+ 'square',
200
+ 'tool',
201
+ 'gateway',
202
+ 'note',
203
+ 'terminal',
204
+ 'idea'
205
205
  ];
206
206
  // Sync registration flag with registry.clear() for test isolation
207
207
  nodeComponentRegistry.onClear(() => {
@@ -2,7 +2,7 @@
2
2
  * Node Component Registry Module
3
3
  * Exports all registry-related functionality.
4
4
  */
5
- export { BaseRegistry } from "./BaseRegistry.js";
6
- export { nodeComponentRegistry, createNamespacedType, parseNamespacedType, type NodeComponentProps, type NodeTypeInfo, type NodeComponentRegistration, type NodeComponentCategory, type StatusPosition, type StatusSize, type NodeRegistrationFilter, } from "./nodeComponentRegistry.js";
7
- export { BUILTIN_NODE_COMPONENTS, BUILTIN_NODE_TYPES, FLOWDROP_SOURCE, registerBuiltinNodes, areBuiltinsRegistered, resetBuiltinRegistration, resolveBuiltinAlias, isBuiltinType, getBuiltinTypes, type BuiltinNodeType, } from "./builtinNodes.js";
8
- export { registerFlowDropPlugin, unregisterFlowDropPlugin, registerCustomNode, createPlugin, isValidNamespace, getRegisteredPlugins, getPluginNodeCount, type FlowDropPluginConfig, type PluginNodeDefinition, type PluginRegistrationResult, } from "./plugin.js";
5
+ export { BaseRegistry } from './BaseRegistry.js';
6
+ export { nodeComponentRegistry, createNamespacedType, parseNamespacedType, type NodeComponentProps, type NodeTypeInfo, type NodeComponentRegistration, type NodeComponentCategory, type StatusPosition, type StatusSize, type NodeRegistrationFilter } from './nodeComponentRegistry.js';
7
+ export { BUILTIN_NODE_COMPONENTS, BUILTIN_NODE_TYPES, FLOWDROP_SOURCE, registerBuiltinNodes, areBuiltinsRegistered, resetBuiltinRegistration, resolveBuiltinAlias, isBuiltinType, getBuiltinTypes, type BuiltinNodeType } from './builtinNodes.js';
8
+ export { registerFlowDropPlugin, unregisterFlowDropPlugin, registerCustomNode, createPlugin, isValidNamespace, getRegisteredPlugins, getPluginNodeCount, type FlowDropPluginConfig, type PluginNodeDefinition, type PluginRegistrationResult } from './plugin.js';
@@ -3,10 +3,10 @@
3
3
  * Exports all registry-related functionality.
4
4
  */
5
5
  // Base registry
6
- export { BaseRegistry } from "./BaseRegistry.js";
6
+ export { BaseRegistry } from './BaseRegistry.js';
7
7
  // Core registry
8
- export { nodeComponentRegistry, createNamespacedType, parseNamespacedType, } from "./nodeComponentRegistry.js";
8
+ export { nodeComponentRegistry, createNamespacedType, parseNamespacedType } from './nodeComponentRegistry.js';
9
9
  // Built-in nodes
10
- export { BUILTIN_NODE_COMPONENTS, BUILTIN_NODE_TYPES, FLOWDROP_SOURCE, registerBuiltinNodes, areBuiltinsRegistered, resetBuiltinRegistration, resolveBuiltinAlias, isBuiltinType, getBuiltinTypes, } from "./builtinNodes.js";
10
+ export { BUILTIN_NODE_COMPONENTS, BUILTIN_NODE_TYPES, FLOWDROP_SOURCE, registerBuiltinNodes, areBuiltinsRegistered, resetBuiltinRegistration, resolveBuiltinAlias, isBuiltinType, getBuiltinTypes } from './builtinNodes.js';
11
11
  // Plugin system
12
- export { registerFlowDropPlugin, unregisterFlowDropPlugin, registerCustomNode, createPlugin, isValidNamespace, getRegisteredPlugins, getPluginNodeCount, } from "./plugin.js";
12
+ export { registerFlowDropPlugin, unregisterFlowDropPlugin, registerCustomNode, createPlugin, isValidNamespace, getRegisteredPlugins, getPluginNodeCount } from './plugin.js';
@@ -8,21 +8,21 @@
8
8
  * - External libraries to contribute node types via plugins
9
9
  * - Runtime switching between different node visualizations
10
10
  */
11
- import type { Component } from "svelte";
12
- import type { WorkflowNode } from "../types/index.js";
13
- import { BaseRegistry } from "./BaseRegistry.js";
11
+ import type { Component } from 'svelte';
12
+ import type { WorkflowNode } from '../types/index.js';
13
+ import { BaseRegistry } from './BaseRegistry.js';
14
14
  /**
15
15
  * Props interface that all node components must accept.
16
16
  * Any component registered in the registry must be compatible with these props.
17
17
  */
18
18
  export interface NodeComponentProps {
19
19
  /** Node data containing label, config, metadata, executionInfo */
20
- data: WorkflowNode["data"] & {
20
+ data: WorkflowNode['data'] & {
21
21
  nodeId?: string;
22
22
  onConfigOpen?: (node: {
23
23
  id: string;
24
24
  type: string;
25
- data: WorkflowNode["data"];
25
+ data: WorkflowNode['data'];
26
26
  }) => void;
27
27
  };
28
28
  /** Whether the node is currently selected */
@@ -35,15 +35,15 @@ export interface NodeComponentProps {
35
35
  /**
36
36
  * Position options for the status overlay on nodes
37
37
  */
38
- export type StatusPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
38
+ export type StatusPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
39
39
  /**
40
40
  * Size options for the status overlay on nodes
41
41
  */
42
- export type StatusSize = "sm" | "md" | "lg";
42
+ export type StatusSize = 'sm' | 'md' | 'lg';
43
43
  /**
44
44
  * Category for organizing node types in the UI
45
45
  */
46
- export type NodeComponentCategory = "visual" | "functional" | "layout" | "custom";
46
+ export type NodeComponentCategory = 'visual' | 'functional' | 'layout' | 'custom';
47
47
  /**
48
48
  * Framework-agnostic metadata for a node type.
49
49
  * Contains all display/organizational information without any Svelte dependency.