@fluidgrids/fe-sdk 0.0.0-stage → 2026.1203.8

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 (323) hide show
  1. package/README.md +564 -2
  2. package/dist/ActivityOptionsFields-C2u-hY2U.js +142 -0
  3. package/dist/AiStudioPage-B_hNTj-_.js +1137 -0
  4. package/dist/ApprovalInboxPage-ClITra3n.js +1312 -0
  5. package/dist/ChoiceSelect-LkK-uS9J.js +65 -0
  6. package/dist/ConfirmActionDialog-DHWTDRbp.js +31 -0
  7. package/dist/ConnectionFormDialog-C0kDgcrZ.js +153 -0
  8. package/dist/CreateFluidgridsTagDocument-Dtp9KPLJ.js +1055 -0
  9. package/dist/DataSinkDashboardPage-b4ezeqa6.js +278 -0
  10. package/dist/DataTablesPage-C1d9YGHz.js +5575 -0
  11. package/dist/DateTimeField-B1qR4ruo.js +51 -0
  12. package/dist/Disclosure-BNKij7-v.js +45 -0
  13. package/dist/ElementLibraryPage-8jNO6YmE.js +2256 -0
  14. package/dist/ElementLibrarySequenceDocument-B-W8SPzn.js +3979 -0
  15. package/dist/EnsureThemeProvider-BvlNjAd0.js +24 -0
  16. package/dist/EntityTagBadge-1OlP6p0c.js +25 -0
  17. package/dist/EntityTagPicker-BBrU5cE0.js +137 -0
  18. package/dist/ExecuteStepDocument-B4j1mdRT.js +189 -0
  19. package/dist/ExecutionDetailDocument-D6QuM-kp.js +875 -0
  20. package/dist/ExecutionDetailPage-D4CBtFdo.js +12217 -0
  21. package/dist/ExecutionDetailPage-DvQ667OE.d.ts +10 -0
  22. package/dist/ExecutionStatusBadge-BsDVor9t.js +221 -0
  23. package/dist/ExecutionsListDocument-Dan7ZiqB.js +459 -0
  24. package/dist/ExecutionsListPage-B3XT8ITL.js +4307 -0
  25. package/dist/FailureTriagePanel-DOJMaJ0n.js +1285 -0
  26. package/dist/FileDownloadUrlDocument-CVOYKcL5.js +92 -0
  27. package/dist/FluidGridsDocsLink-bX0Hnhxr.js +66 -0
  28. package/dist/FluidGridsMark-CE2blT7K.js +74 -0
  29. package/dist/HeldLoadRegion-BtTxbvOW.js +34 -0
  30. package/dist/HistoryPage-BLoRpJ1R.d.ts +6 -0
  31. package/dist/HistoryPage-BSBISXoj.js +2835 -0
  32. package/dist/Icon-BtQ0HXLh.js +160 -0
  33. package/dist/InsightsPage-D7ybj8N9.js +11245 -0
  34. package/dist/IsolationSetting-vy911E8b.js +1153 -0
  35. package/dist/LibraryParts-DOeNgR8A.js +413 -0
  36. package/dist/ManagedAiPolicyAuthority-BxwJ3ptd.js +40 -0
  37. package/dist/ManagedAiPolicyAuthority-DM3t3wNr.d.ts +18 -0
  38. package/dist/ManagedAiPolicyAuthorityContext-CNkxIOZ1.js +10 -0
  39. package/dist/McpTriggerServers-BCPCAOWB.js +459 -0
  40. package/dist/MissingNodesInstallModal-rO_SEDrC.js +224 -0
  41. package/dist/NavigationV2Provider-DCDt35eG.js +17 -0
  42. package/dist/NodeSchemaIntrospectionDocument-C1vAIcHd.js +95 -0
  43. package/dist/NodesPage-DEbnz9iU.d.ts +6 -0
  44. package/dist/NodesPage-O7KeeKtd.js +653 -0
  45. package/dist/OfflineIcon-TwMKYWjA.js +207 -0
  46. package/dist/OpenTemplateAsCodeButton-BhWJWIF3.js +94 -0
  47. package/dist/PaidTemplateConfirm-_G3ag6S4.js +28 -0
  48. package/dist/PublishCustomNodeAction-CIySbK4c.js +134 -0
  49. package/dist/RecordTaskDialog-BkpCDvhR.js +2078 -0
  50. package/dist/RunActionsMenu-DodOgIQm.js +59 -0
  51. package/dist/RunnerStatusPill-C1v967iq.js +24 -0
  52. package/dist/RunnersPage-dB0RSdY_.js +1929 -0
  53. package/dist/SandboxRuntimeExhaustedNotice-BFOIF93C.js +120 -0
  54. package/dist/SchedulesPage-DPWr1yvf.js +1607 -0
  55. package/dist/SearchBox-BGtYjvfs.js +49 -0
  56. package/dist/SequenceEditor-CFiHeHkR.js +497 -0
  57. package/dist/SettingsPage-0CQBNPZV.js +8695 -0
  58. package/dist/StewardPages-DAJhepen.js +47 -0
  59. package/dist/StewardRunImportPanel-Kva2DO0u.js +2844 -0
  60. package/dist/StoreTemplateCardCompact-CHn5kP7A.js +2166 -0
  61. package/dist/TagFilterSelect-CyA8QrS7.js +42 -0
  62. package/dist/TaskQueuesPage-DdnDCyat.js +3571 -0
  63. package/dist/TechnicalDetails-B0Oi4aZw.js +19 -0
  64. package/dist/TemplateConfigurationModal-CdvCYJLM.js +332 -0
  65. package/dist/TemplateDetailPanel-CbiKciuB.js +222 -0
  66. package/dist/TemplatePreview-cx7-NOeG.js +868 -0
  67. package/dist/TemplatesPage-BG3H-6v6.d.ts +10 -0
  68. package/dist/TemplatesPage-BVQpGYIV.js +3251 -0
  69. package/dist/TerminateExecutionDocument-B_HKNVrN.js +581 -0
  70. package/dist/TranslationBridge-Bd4aJKMs.d.ts +11 -0
  71. package/dist/TranslationBridge-Da-TPgQm.js +68 -0
  72. package/dist/TriggerWorkflowDocument-D9Km2Vv2.js +460 -0
  73. package/dist/UiSequencePickerSequenceDocument-BSYnSDV7.js +607 -0
  74. package/dist/UiStepScreenshot-Qh4QMyUp.js +146 -0
  75. package/dist/UsageTimeSeriesDocument-DcInx9-z.js +177 -0
  76. package/dist/VariablesPage-ChfGuW22.js +2243 -0
  77. package/dist/VersionDiffDialog-Bd2AeUwf.js +1702 -0
  78. package/dist/VersionLifecycleBar-BBeWVtz-.js +143 -0
  79. package/dist/WebhookDeliveriesPage-D66bua0j.js +1563 -0
  80. package/dist/WorkflowBuilder-B6wQD1TK.js +539 -0
  81. package/dist/WorkflowBuilder-DR4ku8Tr.js +1611 -0
  82. package/dist/WorkflowDefinitionDocument-DZLbTPUZ.js +321 -0
  83. package/dist/WorkflowEmbed-BXfFGy0i.js +708 -0
  84. package/dist/WorkflowEmbed-Cbqe1s1z.d.ts +6 -0
  85. package/dist/WorkflowPinnedDataDocument-BODT5omd.js +782 -0
  86. package/dist/WorkflowProposalCard-BruukdeF.js +96 -0
  87. package/dist/WorkflowProposalDocument-BdUbsrd0.js +620 -0
  88. package/dist/WorkflowSearchRedirect-C7zJ2MKH.js +40 -0
  89. package/dist/WorkflowSettingsDrawer-MVU1BKfY.d.ts +18 -0
  90. package/dist/WorkflowSettingsDrawer-gazs97WR.js +196 -0
  91. package/dist/WorkflowShareDialog-e8jJtLjU.js +469 -0
  92. package/dist/WorkflowVersionsDocument-DRVOp8Uj.js +3213 -0
  93. package/dist/WorkflowsList--hR2_8gf.js +4593 -0
  94. package/dist/WorkflowsList-CcNDQge5.d.ts +6 -0
  95. package/dist/WorkflowsListPageDocument-CnzcQm_o.js +934 -0
  96. package/dist/addonCatalog-CbZS4deh.js +58 -0
  97. package/dist/addonCatalog-sjlonAmR.d.ts +15 -0
  98. package/dist/addons.d.ts +3 -0
  99. package/dist/addons.js +4 -0
  100. package/dist/agent-form-Bfvm32j1.js +83 -0
  101. package/dist/agent-tools.d.ts +3 -0
  102. package/dist/agent-tools.js +5 -0
  103. package/dist/agentTools-CyL7DLOF.js +320 -0
  104. package/dist/ai-usage-BrxDgvdR.js +240 -0
  105. package/dist/aiCreditsBridge-BuE92tKo.js +49 -0
  106. package/dist/api-BKq-nIOZ.js +2286 -0
  107. package/dist/api-Ol7I8NxE.js +8289 -0
  108. package/dist/apollo-type-policies.d.ts +11 -0
  109. package/dist/apollo-type-policies.js +64 -0
  110. package/dist/askAboutBridge-ByYsQams.js +106 -0
  111. package/dist/askQuestions-Cmx7VnMm.js +742 -0
  112. package/dist/assert-rules-lfYEMc99.js +318 -0
  113. package/dist/assistant.d.ts +94 -0
  114. package/dist/assistant.js +99 -0
  115. package/dist/attach-node-helpers-HDKQOtrD.js +32 -0
  116. package/dist/badge-CXfPhoMH.js +26 -0
  117. package/dist/basil.generated-BK-EHbwN.js +10 -0
  118. package/dist/browser-steps-DMpS5TyB.js +533 -0
  119. package/dist/builderTimings-pvGnK1m-.js +510 -0
  120. package/dist/button-DG7y_FVJ.js +48 -0
  121. package/dist/canvasNoteTools-BxuP_AYO.js +137 -0
  122. package/dist/card-Bomy_1UG.js +44 -0
  123. package/dist/catalogGrid-BOrfMgi-.js +41 -0
  124. package/dist/channel-CPyQ1NR1.js +212 -0
  125. package/dist/chips-CvNrYJZa.js +27 -0
  126. package/dist/client-holder-C0M5Cfwl.js +68 -0
  127. package/dist/cn-QqidFIgr.js +10 -0
  128. package/dist/code-editor-diagnostics-Zr0cIcx1.js +46 -0
  129. package/dist/code-editor-field-x_JrY8KR.js +113 -0
  130. package/dist/codec-client-DPuD6mw7.js +515 -0
  131. package/dist/conditionBuilder-DwfEF0Q-.js +1144 -0
  132. package/dist/config-DO68jw5k.js +322 -0
  133. package/dist/constants-DgbVc24O.d.ts +296 -0
  134. package/dist/constants-DlRnHBfQ.js +217 -0
  135. package/dist/convert-browser-action-pfecelF7.js +347 -0
  136. package/dist/convert-dialog-B_o22NiJ.js +382 -0
  137. package/dist/create-workflow-first-Azg3JUdX.js +120 -0
  138. package/dist/definition-canvas-Bsda-rDT.js +31 -0
  139. package/dist/dialog-BVd152GS.js +94 -0
  140. package/dist/durable-nodes-BXyYCLxT.js +91 -0
  141. package/dist/duration-CDb7-mT_.js +33 -0
  142. package/dist/edge-mapper-wEAdGVU2.js +4477 -0
  143. package/dist/element-library-DkSlg_VE.js +727 -0
  144. package/dist/entities-I_0kio3q.js +38 -0
  145. package/dist/error-advice-QLr5NCm7.js +65 -0
  146. package/dist/errors-ClKb5sEt.js +188 -0
  147. package/dist/executions.d.ts +3 -0
  148. package/dist/executions.js +5 -0
  149. package/dist/feature-flags-B2qetXKd.js +385 -0
  150. package/dist/field-label-DPZRmE_B.js +153 -0
  151. package/dist/firstWorkflow-C_h0KMB2.js +133 -0
  152. package/dist/flags.d.ts +3 -0
  153. package/dist/flags.js +4 -0
  154. package/dist/flow-builder-DIvLOhz0.js +28038 -0
  155. package/dist/flow-store-holder-CUN7Terz.js +52 -0
  156. package/dist/fluent.generated-CA_e6-4l.js +14 -0
  157. package/dist/fluidgridsEvents-bbEQbwU6.js +175 -0
  158. package/dist/fluidgridsTheme-DUhvOgoy.js +297 -0
  159. package/dist/global-client-BQPuFrFa.js +433 -0
  160. package/dist/global-operations-BG6YgxrM.js +136 -0
  161. package/dist/graphql-types-UTYtujY9.js +21358 -0
  162. package/dist/history.d.ts +3 -0
  163. package/dist/history.js +4 -0
  164. package/dist/index-AoJAa5vU.d.ts +164958 -0
  165. package/dist/index-DEMT3iAM.d.ts +120 -0
  166. package/dist/index-ROZzNGyY.d.ts +76 -0
  167. package/dist/index.d.ts +20 -0
  168. package/dist/index.js +8123 -0
  169. package/dist/ion.generated-mbajjcAg.js +10 -0
  170. package/dist/label-Lzb8ZXf_.js +29 -0
  171. package/dist/labels-rXd9gYQz.js +1236 -0
  172. package/dist/liveCanvas-D5ytXDp8.js +103 -0
  173. package/dist/logos.generated-X6_0kjVR.js +21 -0
  174. package/dist/logs-panel-Cw0DkG0l.js +468 -0
  175. package/dist/lucide.generated-B6NVd3GT.js +29 -0
  176. package/dist/marksStore-a9oIMMot.js +175 -0
  177. package/dist/mcp-trigger-D0nRdvq5.js +307 -0
  178. package/dist/mdi.generated-D1BV74d6.js +292 -0
  179. package/dist/menus-CU3hDGYl.js +160 -0
  180. package/dist/mynaui.generated-DMWr5cXz.js +66 -0
  181. package/dist/navigation-v2.d.ts +3 -0
  182. package/dist/navigation-v2.js +5 -0
  183. package/dist/node-detail-view-Cgm5H1P-.js +1372 -0
  184. package/dist/node-editor-tab-body-CZ0fVuVP.js +187 -0
  185. package/dist/node-operation-selection-CdV3KI_V.js +3534 -0
  186. package/dist/node-registry-refresh-s3okf83X.js +27 -0
  187. package/dist/node-role-TMbnkmeP.js +132 -0
  188. package/dist/node-type-icon-BZa8n4iG.js +33 -0
  189. package/dist/nodes.d.ts +3 -0
  190. package/dist/nodes.js +4 -0
  191. package/dist/notesKey-5EaREBGA.js +12 -0
  192. package/dist/observability.d.ts +3 -0
  193. package/dist/observability.js +5 -0
  194. package/dist/offset-pages-zghoClB3.js +55 -0
  195. package/dist/operations-BBmT9ToP.js +663 -0
  196. package/dist/operations-WxRJWeqO.js +3133 -0
  197. package/dist/output-files-Ba8bu5lv.js +196 -0
  198. package/dist/page-operation-DrWuhd6Y.js +129 -0
  199. package/dist/page-twins.d.ts +13 -0
  200. package/dist/page-twins.js +186 -0
  201. package/dist/pageControlSpecs-DZJ9K37m.js +134 -0
  202. package/dist/pageControlsBridge-0pX9s-3k.js +54 -0
  203. package/dist/pageControlsBridge-DAuT3w7L.d.ts +36 -0
  204. package/dist/panels-PfBBAToE.js +346 -0
  205. package/dist/parts-B7fBcw-B.js +346 -0
  206. package/dist/popover-Dms9Vz3j.js +3389 -0
  207. package/dist/preloadable-lazy-Pp47mqQ9.js +65 -0
  208. package/dist/proactive.d.ts +66 -0
  209. package/dist/proactive.js +237 -0
  210. package/dist/quick-config-panel-DFd77xho.js +451 -0
  211. package/dist/quota-DeA_CJ2e.js +175 -0
  212. package/dist/quota.d.ts +3 -0
  213. package/dist/quota.js +4 -0
  214. package/dist/read-only-context-Dt9N9SIG.js +18 -0
  215. package/dist/relative-time-Dxt8ZIIu.js +55 -0
  216. package/dist/results-CwK_yDxK.js +325 -0
  217. package/dist/rolldown-runtime-hDbaFkMy.js +18 -0
  218. package/dist/route-data.d.ts +12 -0
  219. package/dist/route-data.js +69 -0
  220. package/dist/route-match-C-0_EnAt.d.ts +5 -0
  221. package/dist/route-match-DMkUICYV.js +41 -0
  222. package/dist/route-preload-C4DlGoCd.js +120 -0
  223. package/dist/run-display-UjLAoYqQ.js +81 -0
  224. package/dist/run-history-arGiHzGU.js +285 -0
  225. package/dist/run-list-links-DJn4Mf1T.js +98 -0
  226. package/dist/run-mode-USmM0-Uo.js +82 -0
  227. package/dist/run-parity-CWXqEJqM.js +144 -0
  228. package/dist/runsQuota-B6SyTbne.js +100 -0
  229. package/dist/runsQuota-DsniKiSg.d.ts +20 -0
  230. package/dist/safe-expression-Cw7-SCsm.js +1251 -0
  231. package/dist/save-status-store-C7nEYpfb.js +631 -0
  232. package/dist/schedule-panel-B4GYXzXQ.js +13774 -0
  233. package/dist/schedule-rules-ggVKRkBH.js +358 -0
  234. package/dist/secrets-Re_wSiE3.js +153 -0
  235. package/dist/settings.d.ts +4 -0
  236. package/dist/settings.js +6 -0
  237. package/dist/shared-DAWGGMSM.js +177 -0
  238. package/dist/sidebar-node-editor-6eSSgCzc.js +178 -0
  239. package/dist/solar.generated-CGYuUQAC.js +10 -0
  240. package/dist/stableTabbedDialog-BBhrfXGe.js +20 -0
  241. package/dist/start-url-CT6Yz96K.js +24 -0
  242. package/dist/status-CessxGpm.js +55 -0
  243. package/dist/store-icon-OctYp5zP.js +155 -0
  244. package/dist/styles-WGmTnZ2n.js +26 -0
  245. package/dist/styles.css +139 -0
  246. package/dist/svg-spinners.generated-CIPT7IhM.js +10 -0
  247. package/dist/template-code-CzN6JWNV.js +191 -0
  248. package/dist/template-graph-DLF9dygU.js +20 -0
  249. package/dist/template-preview-DcIIKOOL.js +32 -0
  250. package/dist/template-price-CdUHZRMF.js +40 -0
  251. package/dist/templates.d.ts +3 -0
  252. package/dist/templates.js +5 -0
  253. package/dist/theme-provider-CntfC4_i.js +23 -0
  254. package/dist/transient-DgZfhDfN.js +57 -0
  255. package/dist/typed-calls-C5tO03wq.js +26 -0
  256. package/dist/ui-script-By74Guk3.js +1094 -0
  257. package/dist/ui-script-editor-CqPu2bCN.js +2447 -0
  258. package/dist/ui-step-fix-8uM2_Hft.js +67 -0
  259. package/dist/ui-step-fix-store-CcO1FdRx.js +19 -0
  260. package/dist/ui-step-run-context-o7bLE6KP.js +46 -0
  261. package/dist/ui-target-editor-D2JhB_lD.js +673 -0
  262. package/dist/uiMarkTools-CSznnO1i.js +1054 -0
  263. package/dist/upgradePrompt-BAFBKKW5.js +72 -0
  264. package/dist/use-bare-node-registry-O6mKJO_n.js +11498 -0
  265. package/dist/use-browser-available-hj8wc3Kb.js +241 -0
  266. package/dist/use-edge-mapper-schemas-Bonofxow.js +496 -0
  267. package/dist/use-extension-bridge-B9ZreOkQ.js +608 -0
  268. package/dist/use-mobile-BTqCUjzS.js +27 -0
  269. package/dist/use-sdk-query-C697xZVv.js +116 -0
  270. package/dist/use-workflow-code-editor-CFoRFrZ5.js +753 -0
  271. package/dist/useActionParam-B2tU2BlY.js +85 -0
  272. package/dist/useAgentTokenStream-Bko_J0d0.js +4217 -0
  273. package/dist/useBrowserClients-3v95-gSh.js +103 -0
  274. package/dist/useCodeWorkflowInsights-w0tz9Ap_.js +600 -0
  275. package/dist/useConnections-DsgEJs05.js +439 -0
  276. package/dist/useDebouncedValue-BFekcv6n.js +18 -0
  277. package/dist/useDurableParity-8fnMZmBc.js +1787 -0
  278. package/dist/useEntityTags-D0spL6Ut.js +460 -0
  279. package/dist/useExecutions-2u5nGJJk.js +681 -0
  280. package/dist/useFluidGridsAnalytics-VM8lAi2x.js +238 -0
  281. package/dist/useGlobalStoreClient-BTdhkA2I.js +24 -0
  282. package/dist/useHumanRequests-zlYDp3l1.js +221 -0
  283. package/dist/useNavigationV2-C2WeqN7d.js +29 -0
  284. package/dist/useNavigationV2-DANUmg12.d.ts +9 -0
  285. package/dist/useObservability-BRlQ0tOA.js +285 -0
  286. package/dist/useRequestedProposal-B7uPXfZB.js +51 -0
  287. package/dist/useRunHistory-CXCMUPyf.js +2759 -0
  288. package/dist/useRunLive-D0JvVZT2.js +1060 -0
  289. package/dist/useRunnerList-Dbi59i1K.js +446 -0
  290. package/dist/useRunners-URUc5quU.js +173 -0
  291. package/dist/useRunsPage-DG656UCK.js +2709 -0
  292. package/dist/useVariables-BIelxcWr.js +463 -0
  293. package/dist/useVersionHistoryData-CTjqVw7l.js +292 -0
  294. package/dist/useWorkflowCodeExport-pqxyLHD1.js +522 -0
  295. package/dist/useWorkflowListExport-hcZNvTaB.js +232 -0
  296. package/dist/useWorkflowOrganization-CpBbOrs7.js +1772 -0
  297. package/dist/useWorkflowProposal-BH0VdNMA.js +3280 -0
  298. package/dist/useWorkflows-Cvg-Z_IE.js +1606 -0
  299. package/dist/utils-fvBb5qOD.js +89 -0
  300. package/dist/webhook-deliveries-AvQujaZy.js +99 -0
  301. package/dist/workflow-builder-CJygVkVv.d.ts +2 -0
  302. package/dist/workflow-builder.d.ts +3 -0
  303. package/dist/workflow-builder.js +8 -0
  304. package/dist/workflow-code-transfer-Bsy0JKAZ.js +323 -0
  305. package/dist/workflow-embed.d.ts +3 -0
  306. package/dist/workflow-embed.js +4 -0
  307. package/dist/workflow-git-sync--K9ZsPDC.js +263 -0
  308. package/dist/workflow-host.d.ts +6 -0
  309. package/dist/workflow-host.js +11 -0
  310. package/dist/workflow-pages-D-7ByLTB.d.ts +68 -0
  311. package/dist/workflow-pages.d.ts +3 -0
  312. package/dist/workflow-pages.js +115 -0
  313. package/dist/workflow-preview-canvas-CO8yzdE3.js +848 -0
  314. package/dist/workflow-preview.d.ts +65 -0
  315. package/dist/workflow-preview.js +4 -0
  316. package/dist/workflow-route.d.ts +33 -0
  317. package/dist/workflow-route.js +4 -0
  318. package/dist/workflow-save-state-D0l-DkLf.js +767 -0
  319. package/dist/workflow-transfer-CQnQC-ke.js +104 -0
  320. package/dist/workflowRouteData-BkfVOc-O.js +169 -0
  321. package/dist/workflows-list.d.ts +10 -0
  322. package/dist/workflows-list.js +5 -0
  323. package/package.json +320 -4
@@ -0,0 +1,96 @@
1
+ "use client";
2
+ import { t as __exportAll } from "./rolldown-runtime-hDbaFkMy.js";
3
+ import { r as useTr } from "./TranslationBridge-Da-TPgQm.js";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { AiDecisionCard } from "@burdenoff/fe-libs/shared/proactive";
6
+
7
+ // src/components/shared/WorkflowProposalCard.tsx
8
+ /**
9
+ * WorkflowProposalCard — review an AI workflow proposal before it changes
10
+ * anything (BOFF-3662, migrated to shared fe-libs AiDecisionCard in BOFF-9989).
11
+ *
12
+ * Shows what the model proposes (explanation, a node and connection diff
13
+ * against the version it was made from, validation errors and the settings the
14
+ * user still has to fill in) with Apply / Reject while it is PROPOSED, a
15
+ * Cancel while it is still running, and once applied a link to the new draft
16
+ * plus a one-click revert to the version it was made from (a restore, which
17
+ * creates another version and never deletes one).
18
+ */
19
+ var WorkflowProposalCard_exports = /* @__PURE__ */ __exportAll({ WorkflowProposalCard: () => WorkflowProposalCard });
20
+ function edgeLabel(edge) {
21
+ return `${edge.sourceHandle ? `${edge.source} (${edge.sourceHandle})` : edge.source} → ${edge.target}`;
22
+ }
23
+ function nodeLine(node, withFields) {
24
+ const base = `${node.label} · ${node.type}`;
25
+ return withFields && node.fields.length > 0 ? `${base} — ${node.fields.join(", ")}` : base;
26
+ }
27
+ function WorkflowProposalCard({ proposal, isDeciding = false, onOpenWorkflow, onApply, onReject, onCancel, onRevert }) {
28
+ const tr = useTr();
29
+ const status = String(proposal.status);
30
+ const diff = proposal.diff;
31
+ const warnings = proposal.validation?.warnings ?? [];
32
+ const errors = proposal.validation?.valid === false ? proposal.validation.errors : [];
33
+ const revertTarget = proposal.baseVersion && proposal.workflowKey && proposal.appliedWorkflowKey === proposal.workflowKey ? {
34
+ workflowKey: proposal.workflowKey,
35
+ version: proposal.baseVersion
36
+ } : null;
37
+ const diffSections = diff ? [
38
+ {
39
+ id: "added",
40
+ testId: "workflow-proposal-added",
41
+ tone: "added",
42
+ title: tr("fluidgrids.ai.proposal.added", "Added nodes"),
43
+ items: diff.addedNodes.map((node) => nodeLine(node, false))
44
+ },
45
+ {
46
+ id: "changed",
47
+ testId: "workflow-proposal-changed",
48
+ tone: "changed",
49
+ title: tr("fluidgrids.ai.proposal.changed", "Changed nodes"),
50
+ items: diff.changedNodes.map((node) => nodeLine(node, true))
51
+ },
52
+ {
53
+ id: "removed",
54
+ testId: "workflow-proposal-removed",
55
+ tone: "removed",
56
+ title: tr("fluidgrids.ai.proposal.removed", "Removed nodes"),
57
+ items: diff.removedNodes.map((node) => nodeLine(node, false))
58
+ },
59
+ {
60
+ id: "edges",
61
+ testId: "workflow-proposal-edges",
62
+ tone: "neutral",
63
+ title: tr("fluidgrids.ai.proposal.connections", "Connection changes"),
64
+ items: [...diff.addedEdges.map((edge) => `+ ${edgeLabel(edge)}`), ...diff.removedEdges.map((edge) => `− ${edgeLabel(edge)}`)]
65
+ }
66
+ ] : [];
67
+ return /* @__PURE__ */ jsx(AiDecisionCard, {
68
+ status,
69
+ title: proposal.name ?? tr("fluidgrids.ai.proposal.title", "AI proposal"),
70
+ baseVersionLabel: proposal.baseVersion ? tr("fluidgrids.ai.proposal.against", "against version {{version}}", { version: proposal.baseVersion }) : null,
71
+ explanation: proposal.explanation,
72
+ message: proposal.message,
73
+ progressStage: proposal.progress?.stage ?? "prompting",
74
+ diffSummary: diff?.summary ?? null,
75
+ diffSections,
76
+ errors,
77
+ warnings,
78
+ warningsLabel: tr("fluidgrids.ai.proposal.todo", "Still to set up"),
79
+ neverActivatesNotice: tr("fluidgrids.ai.proposal.neverActivates", "Nothing goes live: the result is a draft you can review, run as a test and activate yourself."),
80
+ restoreHint: proposal.restoreHint,
81
+ isDeciding,
82
+ onApply,
83
+ applyLabel: proposal.baseVersion ? tr("fluidgrids.ai.proposal.applyVersion", "Apply as a new draft version") : tr("fluidgrids.ai.proposal.applyNew", "Create as a draft workflow"),
84
+ onReject,
85
+ rejectLabel: tr("fluidgrids.ai.proposal.reject", "Reject"),
86
+ onCancel,
87
+ cancelLabel: tr("fluidgrids.ai.proposal.cancel", "Cancel"),
88
+ onOpenApplied: onOpenWorkflow && proposal.appliedWorkflowKey && proposal.appliedVersion ? () => onOpenWorkflow(proposal.appliedWorkflowKey ?? "", proposal.appliedVersion ?? "") : void 0,
89
+ openAppliedLabel: proposal.appliedVersion ? tr("fluidgrids.ai.proposal.open", "Open draft {{version}}", { version: proposal.appliedVersion }) : void 0,
90
+ onRevert: onRevert && revertTarget ? () => onRevert(revertTarget.workflowKey, revertTarget.version) : void 0,
91
+ revertLabel: revertTarget ? tr("fluidgrids.ai.proposal.revert", "Revert to {{version}}", { version: revertTarget.version }) : void 0,
92
+ testIdPrefix: "workflow-proposal"
93
+ });
94
+ }
95
+
96
+ export { WorkflowProposalCard_exports as n, WorkflowProposalCard as t };
@@ -0,0 +1,620 @@
1
+ "use client";
2
+ // src/generated/documents/wspace/WorkflowProposalDocument.ts
3
+ const WorkflowProposalDocument = {
4
+ "kind": "Document",
5
+ "definitions": [{
6
+ "kind": "OperationDefinition",
7
+ "operation": "query",
8
+ "name": {
9
+ "kind": "Name",
10
+ "value": "WorkflowProposal"
11
+ },
12
+ "variableDefinitions": [{
13
+ "kind": "VariableDefinition",
14
+ "variable": {
15
+ "kind": "Variable",
16
+ "name": {
17
+ "kind": "Name",
18
+ "value": "id"
19
+ }
20
+ },
21
+ "type": {
22
+ "kind": "NonNullType",
23
+ "type": {
24
+ "kind": "NamedType",
25
+ "name": {
26
+ "kind": "Name",
27
+ "value": "ID"
28
+ }
29
+ }
30
+ },
31
+ "directives": []
32
+ }],
33
+ "directives": [],
34
+ "selectionSet": {
35
+ "kind": "SelectionSet",
36
+ "selections": [{
37
+ "kind": "Field",
38
+ "name": {
39
+ "kind": "Name",
40
+ "value": "workflowProposal"
41
+ },
42
+ "arguments": [{
43
+ "kind": "Argument",
44
+ "name": {
45
+ "kind": "Name",
46
+ "value": "id"
47
+ },
48
+ "value": {
49
+ "kind": "Variable",
50
+ "name": {
51
+ "kind": "Name",
52
+ "value": "id"
53
+ }
54
+ }
55
+ }],
56
+ "directives": [],
57
+ "selectionSet": {
58
+ "kind": "SelectionSet",
59
+ "selections": [
60
+ {
61
+ "kind": "Field",
62
+ "name": {
63
+ "kind": "Name",
64
+ "value": "id"
65
+ },
66
+ "arguments": [],
67
+ "directives": []
68
+ },
69
+ {
70
+ "kind": "Field",
71
+ "name": {
72
+ "kind": "Name",
73
+ "value": "kind"
74
+ },
75
+ "arguments": [],
76
+ "directives": []
77
+ },
78
+ {
79
+ "kind": "Field",
80
+ "name": {
81
+ "kind": "Name",
82
+ "value": "status"
83
+ },
84
+ "arguments": [],
85
+ "directives": []
86
+ },
87
+ {
88
+ "kind": "Field",
89
+ "name": {
90
+ "kind": "Name",
91
+ "value": "prompt"
92
+ },
93
+ "arguments": [],
94
+ "directives": []
95
+ },
96
+ {
97
+ "kind": "Field",
98
+ "name": {
99
+ "kind": "Name",
100
+ "value": "message"
101
+ },
102
+ "arguments": [],
103
+ "directives": []
104
+ },
105
+ {
106
+ "kind": "Field",
107
+ "name": {
108
+ "kind": "Name",
109
+ "value": "workflowId"
110
+ },
111
+ "arguments": [],
112
+ "directives": []
113
+ },
114
+ {
115
+ "kind": "Field",
116
+ "name": {
117
+ "kind": "Name",
118
+ "value": "workflowKey"
119
+ },
120
+ "arguments": [],
121
+ "directives": []
122
+ },
123
+ {
124
+ "kind": "Field",
125
+ "name": {
126
+ "kind": "Name",
127
+ "value": "baseVersion"
128
+ },
129
+ "arguments": [],
130
+ "directives": []
131
+ },
132
+ {
133
+ "kind": "Field",
134
+ "name": {
135
+ "kind": "Name",
136
+ "value": "runId"
137
+ },
138
+ "arguments": [],
139
+ "directives": []
140
+ },
141
+ {
142
+ "kind": "Field",
143
+ "name": {
144
+ "kind": "Name",
145
+ "value": "afterNodeId"
146
+ },
147
+ "arguments": [],
148
+ "directives": []
149
+ },
150
+ {
151
+ "kind": "Field",
152
+ "name": {
153
+ "kind": "Name",
154
+ "value": "name"
155
+ },
156
+ "arguments": [],
157
+ "directives": []
158
+ },
159
+ {
160
+ "kind": "Field",
161
+ "name": {
162
+ "kind": "Name",
163
+ "value": "description"
164
+ },
165
+ "arguments": [],
166
+ "directives": []
167
+ },
168
+ {
169
+ "kind": "Field",
170
+ "name": {
171
+ "kind": "Name",
172
+ "value": "explanation"
173
+ },
174
+ "arguments": [],
175
+ "directives": []
176
+ },
177
+ {
178
+ "kind": "Field",
179
+ "name": {
180
+ "kind": "Name",
181
+ "value": "definitionJson"
182
+ },
183
+ "arguments": [],
184
+ "directives": []
185
+ },
186
+ {
187
+ "kind": "Field",
188
+ "name": {
189
+ "kind": "Name",
190
+ "value": "modelUsed"
191
+ },
192
+ "arguments": [],
193
+ "directives": []
194
+ },
195
+ {
196
+ "kind": "Field",
197
+ "name": {
198
+ "kind": "Name",
199
+ "value": "attempts"
200
+ },
201
+ "arguments": [],
202
+ "directives": []
203
+ },
204
+ {
205
+ "kind": "Field",
206
+ "name": {
207
+ "kind": "Name",
208
+ "value": "appliedWorkflowId"
209
+ },
210
+ "arguments": [],
211
+ "directives": []
212
+ },
213
+ {
214
+ "kind": "Field",
215
+ "name": {
216
+ "kind": "Name",
217
+ "value": "appliedWorkflowKey"
218
+ },
219
+ "arguments": [],
220
+ "directives": []
221
+ },
222
+ {
223
+ "kind": "Field",
224
+ "name": {
225
+ "kind": "Name",
226
+ "value": "appliedVersion"
227
+ },
228
+ "arguments": [],
229
+ "directives": []
230
+ },
231
+ {
232
+ "kind": "Field",
233
+ "name": {
234
+ "kind": "Name",
235
+ "value": "restoreHint"
236
+ },
237
+ "arguments": [],
238
+ "directives": []
239
+ },
240
+ {
241
+ "kind": "Field",
242
+ "name": {
243
+ "kind": "Name",
244
+ "value": "createdAt"
245
+ },
246
+ "arguments": [],
247
+ "directives": []
248
+ },
249
+ {
250
+ "kind": "Field",
251
+ "name": {
252
+ "kind": "Name",
253
+ "value": "updatedAt"
254
+ },
255
+ "arguments": [],
256
+ "directives": []
257
+ },
258
+ {
259
+ "kind": "Field",
260
+ "name": {
261
+ "kind": "Name",
262
+ "value": "progress"
263
+ },
264
+ "arguments": [],
265
+ "directives": [],
266
+ "selectionSet": {
267
+ "kind": "SelectionSet",
268
+ "selections": [
269
+ {
270
+ "kind": "Field",
271
+ "name": {
272
+ "kind": "Name",
273
+ "value": "stage"
274
+ },
275
+ "arguments": [],
276
+ "directives": []
277
+ },
278
+ {
279
+ "kind": "Field",
280
+ "name": {
281
+ "kind": "Name",
282
+ "value": "attempt"
283
+ },
284
+ "arguments": [],
285
+ "directives": []
286
+ },
287
+ {
288
+ "kind": "Field",
289
+ "name": {
290
+ "kind": "Name",
291
+ "value": "updatedAt"
292
+ },
293
+ "arguments": [],
294
+ "directives": []
295
+ }
296
+ ]
297
+ }
298
+ },
299
+ {
300
+ "kind": "Field",
301
+ "name": {
302
+ "kind": "Name",
303
+ "value": "validation"
304
+ },
305
+ "arguments": [],
306
+ "directives": [],
307
+ "selectionSet": {
308
+ "kind": "SelectionSet",
309
+ "selections": [
310
+ {
311
+ "kind": "Field",
312
+ "name": {
313
+ "kind": "Name",
314
+ "value": "valid"
315
+ },
316
+ "arguments": [],
317
+ "directives": []
318
+ },
319
+ {
320
+ "kind": "Field",
321
+ "name": {
322
+ "kind": "Name",
323
+ "value": "errors"
324
+ },
325
+ "arguments": [],
326
+ "directives": []
327
+ },
328
+ {
329
+ "kind": "Field",
330
+ "name": {
331
+ "kind": "Name",
332
+ "value": "warnings"
333
+ },
334
+ "arguments": [],
335
+ "directives": []
336
+ }
337
+ ]
338
+ }
339
+ },
340
+ {
341
+ "kind": "Field",
342
+ "name": {
343
+ "kind": "Name",
344
+ "value": "diff"
345
+ },
346
+ "arguments": [],
347
+ "directives": [],
348
+ "selectionSet": {
349
+ "kind": "SelectionSet",
350
+ "selections": [
351
+ {
352
+ "kind": "Field",
353
+ "name": {
354
+ "kind": "Name",
355
+ "value": "summary"
356
+ },
357
+ "arguments": [],
358
+ "directives": []
359
+ },
360
+ {
361
+ "kind": "Field",
362
+ "name": {
363
+ "kind": "Name",
364
+ "value": "addedNodes"
365
+ },
366
+ "arguments": [],
367
+ "directives": [],
368
+ "selectionSet": {
369
+ "kind": "SelectionSet",
370
+ "selections": [
371
+ {
372
+ "kind": "Field",
373
+ "name": {
374
+ "kind": "Name",
375
+ "value": "id"
376
+ },
377
+ "arguments": [],
378
+ "directives": []
379
+ },
380
+ {
381
+ "kind": "Field",
382
+ "name": {
383
+ "kind": "Name",
384
+ "value": "type"
385
+ },
386
+ "arguments": [],
387
+ "directives": []
388
+ },
389
+ {
390
+ "kind": "Field",
391
+ "name": {
392
+ "kind": "Name",
393
+ "value": "label"
394
+ },
395
+ "arguments": [],
396
+ "directives": []
397
+ },
398
+ {
399
+ "kind": "Field",
400
+ "name": {
401
+ "kind": "Name",
402
+ "value": "fields"
403
+ },
404
+ "arguments": [],
405
+ "directives": []
406
+ }
407
+ ]
408
+ }
409
+ },
410
+ {
411
+ "kind": "Field",
412
+ "name": {
413
+ "kind": "Name",
414
+ "value": "removedNodes"
415
+ },
416
+ "arguments": [],
417
+ "directives": [],
418
+ "selectionSet": {
419
+ "kind": "SelectionSet",
420
+ "selections": [
421
+ {
422
+ "kind": "Field",
423
+ "name": {
424
+ "kind": "Name",
425
+ "value": "id"
426
+ },
427
+ "arguments": [],
428
+ "directives": []
429
+ },
430
+ {
431
+ "kind": "Field",
432
+ "name": {
433
+ "kind": "Name",
434
+ "value": "type"
435
+ },
436
+ "arguments": [],
437
+ "directives": []
438
+ },
439
+ {
440
+ "kind": "Field",
441
+ "name": {
442
+ "kind": "Name",
443
+ "value": "label"
444
+ },
445
+ "arguments": [],
446
+ "directives": []
447
+ },
448
+ {
449
+ "kind": "Field",
450
+ "name": {
451
+ "kind": "Name",
452
+ "value": "fields"
453
+ },
454
+ "arguments": [],
455
+ "directives": []
456
+ }
457
+ ]
458
+ }
459
+ },
460
+ {
461
+ "kind": "Field",
462
+ "name": {
463
+ "kind": "Name",
464
+ "value": "changedNodes"
465
+ },
466
+ "arguments": [],
467
+ "directives": [],
468
+ "selectionSet": {
469
+ "kind": "SelectionSet",
470
+ "selections": [
471
+ {
472
+ "kind": "Field",
473
+ "name": {
474
+ "kind": "Name",
475
+ "value": "id"
476
+ },
477
+ "arguments": [],
478
+ "directives": []
479
+ },
480
+ {
481
+ "kind": "Field",
482
+ "name": {
483
+ "kind": "Name",
484
+ "value": "type"
485
+ },
486
+ "arguments": [],
487
+ "directives": []
488
+ },
489
+ {
490
+ "kind": "Field",
491
+ "name": {
492
+ "kind": "Name",
493
+ "value": "label"
494
+ },
495
+ "arguments": [],
496
+ "directives": []
497
+ },
498
+ {
499
+ "kind": "Field",
500
+ "name": {
501
+ "kind": "Name",
502
+ "value": "fields"
503
+ },
504
+ "arguments": [],
505
+ "directives": []
506
+ }
507
+ ]
508
+ }
509
+ },
510
+ {
511
+ "kind": "Field",
512
+ "name": {
513
+ "kind": "Name",
514
+ "value": "addedEdges"
515
+ },
516
+ "arguments": [],
517
+ "directives": [],
518
+ "selectionSet": {
519
+ "kind": "SelectionSet",
520
+ "selections": [
521
+ {
522
+ "kind": "Field",
523
+ "name": {
524
+ "kind": "Name",
525
+ "value": "source"
526
+ },
527
+ "arguments": [],
528
+ "directives": []
529
+ },
530
+ {
531
+ "kind": "Field",
532
+ "name": {
533
+ "kind": "Name",
534
+ "value": "target"
535
+ },
536
+ "arguments": [],
537
+ "directives": []
538
+ },
539
+ {
540
+ "kind": "Field",
541
+ "name": {
542
+ "kind": "Name",
543
+ "value": "sourceHandle"
544
+ },
545
+ "arguments": [],
546
+ "directives": []
547
+ },
548
+ {
549
+ "kind": "Field",
550
+ "name": {
551
+ "kind": "Name",
552
+ "value": "targetHandle"
553
+ },
554
+ "arguments": [],
555
+ "directives": []
556
+ }
557
+ ]
558
+ }
559
+ },
560
+ {
561
+ "kind": "Field",
562
+ "name": {
563
+ "kind": "Name",
564
+ "value": "removedEdges"
565
+ },
566
+ "arguments": [],
567
+ "directives": [],
568
+ "selectionSet": {
569
+ "kind": "SelectionSet",
570
+ "selections": [
571
+ {
572
+ "kind": "Field",
573
+ "name": {
574
+ "kind": "Name",
575
+ "value": "source"
576
+ },
577
+ "arguments": [],
578
+ "directives": []
579
+ },
580
+ {
581
+ "kind": "Field",
582
+ "name": {
583
+ "kind": "Name",
584
+ "value": "target"
585
+ },
586
+ "arguments": [],
587
+ "directives": []
588
+ },
589
+ {
590
+ "kind": "Field",
591
+ "name": {
592
+ "kind": "Name",
593
+ "value": "sourceHandle"
594
+ },
595
+ "arguments": [],
596
+ "directives": []
597
+ },
598
+ {
599
+ "kind": "Field",
600
+ "name": {
601
+ "kind": "Name",
602
+ "value": "targetHandle"
603
+ },
604
+ "arguments": [],
605
+ "directives": []
606
+ }
607
+ ]
608
+ }
609
+ }
610
+ ]
611
+ }
612
+ }
613
+ ]
614
+ }
615
+ }]
616
+ }
617
+ }]
618
+ };
619
+
620
+ export { WorkflowProposalDocument as t };