@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,753 @@
1
+ "use client";
2
+ import { n as getFluidGridsClient } from "./client-holder-C0M5Cfwl.js";
3
+ import { h as fetchCodeBundleSdk } from "./api-Ol7I8NxE.js";
4
+ import { s as throwIfResultError, t as describeOperationError } from "./errors-ClKb5sEt.js";
5
+ import { a as changedSourceFiles, d as isEditableSourcePath, f as projectLanguage, s as defaultSourcePath } from "./node-operation-selection-CdV3KI_V.js";
6
+ import { useCallback, useEffect, useMemo, useRef, useState } from "react";
7
+
8
+ // src/generated/documents/wspace/BuildWorkflowCodeDocument.ts
9
+ const BuildWorkflowCodeDocument = {
10
+ "kind": "Document",
11
+ "definitions": [{
12
+ "kind": "OperationDefinition",
13
+ "operation": "mutation",
14
+ "name": {
15
+ "kind": "Name",
16
+ "value": "BuildWorkflowCode"
17
+ },
18
+ "variableDefinitions": [{
19
+ "kind": "VariableDefinition",
20
+ "variable": {
21
+ "kind": "Variable",
22
+ "name": {
23
+ "kind": "Name",
24
+ "value": "input"
25
+ }
26
+ },
27
+ "type": {
28
+ "kind": "NonNullType",
29
+ "type": {
30
+ "kind": "NamedType",
31
+ "name": {
32
+ "kind": "Name",
33
+ "value": "BuildWorkflowCodeInput"
34
+ }
35
+ }
36
+ },
37
+ "directives": []
38
+ }],
39
+ "directives": [],
40
+ "selectionSet": {
41
+ "kind": "SelectionSet",
42
+ "selections": [{
43
+ "kind": "Field",
44
+ "name": {
45
+ "kind": "Name",
46
+ "value": "buildWorkflowCode"
47
+ },
48
+ "arguments": [{
49
+ "kind": "Argument",
50
+ "name": {
51
+ "kind": "Name",
52
+ "value": "input"
53
+ },
54
+ "value": {
55
+ "kind": "Variable",
56
+ "name": {
57
+ "kind": "Name",
58
+ "value": "input"
59
+ }
60
+ }
61
+ }],
62
+ "directives": [],
63
+ "selectionSet": {
64
+ "kind": "SelectionSet",
65
+ "selections": [
66
+ {
67
+ "kind": "Field",
68
+ "name": {
69
+ "kind": "Name",
70
+ "value": "success"
71
+ },
72
+ "arguments": [],
73
+ "directives": []
74
+ },
75
+ {
76
+ "kind": "Field",
77
+ "name": {
78
+ "kind": "Name",
79
+ "value": "buildId"
80
+ },
81
+ "arguments": [],
82
+ "directives": []
83
+ },
84
+ {
85
+ "kind": "Field",
86
+ "name": {
87
+ "kind": "Name",
88
+ "value": "exports"
89
+ },
90
+ "arguments": [],
91
+ "directives": []
92
+ },
93
+ {
94
+ "kind": "Field",
95
+ "name": {
96
+ "kind": "Name",
97
+ "value": "sdkVersion"
98
+ },
99
+ "arguments": [],
100
+ "directives": []
101
+ },
102
+ {
103
+ "kind": "Field",
104
+ "name": {
105
+ "kind": "Name",
106
+ "value": "version"
107
+ },
108
+ "arguments": [],
109
+ "directives": []
110
+ },
111
+ {
112
+ "kind": "Field",
113
+ "name": {
114
+ "kind": "Name",
115
+ "value": "diagnostics"
116
+ },
117
+ "arguments": [],
118
+ "directives": [],
119
+ "selectionSet": {
120
+ "kind": "SelectionSet",
121
+ "selections": [
122
+ {
123
+ "kind": "Field",
124
+ "name": {
125
+ "kind": "Name",
126
+ "value": "path"
127
+ },
128
+ "arguments": [],
129
+ "directives": []
130
+ },
131
+ {
132
+ "kind": "Field",
133
+ "name": {
134
+ "kind": "Name",
135
+ "value": "line"
136
+ },
137
+ "arguments": [],
138
+ "directives": []
139
+ },
140
+ {
141
+ "kind": "Field",
142
+ "name": {
143
+ "kind": "Name",
144
+ "value": "column"
145
+ },
146
+ "arguments": [],
147
+ "directives": []
148
+ },
149
+ {
150
+ "kind": "Field",
151
+ "name": {
152
+ "kind": "Name",
153
+ "value": "severity"
154
+ },
155
+ "arguments": [],
156
+ "directives": []
157
+ },
158
+ {
159
+ "kind": "Field",
160
+ "name": {
161
+ "kind": "Name",
162
+ "value": "code"
163
+ },
164
+ "arguments": [],
165
+ "directives": []
166
+ },
167
+ {
168
+ "kind": "Field",
169
+ "name": {
170
+ "kind": "Name",
171
+ "value": "message"
172
+ },
173
+ "arguments": [],
174
+ "directives": []
175
+ }
176
+ ]
177
+ }
178
+ }
179
+ ]
180
+ }
181
+ }]
182
+ }
183
+ }]
184
+ };
185
+
186
+ // src/generated/documents/wspace/WorkflowCodeSourceDocument.ts
187
+ const WorkflowCodeSourceDocument = {
188
+ "kind": "Document",
189
+ "definitions": [{
190
+ "kind": "OperationDefinition",
191
+ "operation": "query",
192
+ "name": {
193
+ "kind": "Name",
194
+ "value": "WorkflowCodeSource"
195
+ },
196
+ "variableDefinitions": [{
197
+ "kind": "VariableDefinition",
198
+ "variable": {
199
+ "kind": "Variable",
200
+ "name": {
201
+ "kind": "Name",
202
+ "value": "workflowKey"
203
+ }
204
+ },
205
+ "type": {
206
+ "kind": "NonNullType",
207
+ "type": {
208
+ "kind": "NamedType",
209
+ "name": {
210
+ "kind": "Name",
211
+ "value": "String"
212
+ }
213
+ }
214
+ },
215
+ "directives": []
216
+ }, {
217
+ "kind": "VariableDefinition",
218
+ "variable": {
219
+ "kind": "Variable",
220
+ "name": {
221
+ "kind": "Name",
222
+ "value": "version"
223
+ }
224
+ },
225
+ "type": {
226
+ "kind": "NonNullType",
227
+ "type": {
228
+ "kind": "NamedType",
229
+ "name": {
230
+ "kind": "Name",
231
+ "value": "String"
232
+ }
233
+ }
234
+ },
235
+ "directives": []
236
+ }],
237
+ "directives": [],
238
+ "selectionSet": {
239
+ "kind": "SelectionSet",
240
+ "selections": [{
241
+ "kind": "Field",
242
+ "name": {
243
+ "kind": "Name",
244
+ "value": "workflowCodeSource"
245
+ },
246
+ "arguments": [{
247
+ "kind": "Argument",
248
+ "name": {
249
+ "kind": "Name",
250
+ "value": "workflowKey"
251
+ },
252
+ "value": {
253
+ "kind": "Variable",
254
+ "name": {
255
+ "kind": "Name",
256
+ "value": "workflowKey"
257
+ }
258
+ }
259
+ }, {
260
+ "kind": "Argument",
261
+ "name": {
262
+ "kind": "Name",
263
+ "value": "version"
264
+ },
265
+ "value": {
266
+ "kind": "Variable",
267
+ "name": {
268
+ "kind": "Name",
269
+ "value": "version"
270
+ }
271
+ }
272
+ }],
273
+ "directives": [],
274
+ "selectionSet": {
275
+ "kind": "SelectionSet",
276
+ "selections": [
277
+ {
278
+ "kind": "Field",
279
+ "name": {
280
+ "kind": "Name",
281
+ "value": "buildId"
282
+ },
283
+ "arguments": [],
284
+ "directives": []
285
+ },
286
+ {
287
+ "kind": "Field",
288
+ "name": {
289
+ "kind": "Name",
290
+ "value": "sourceHash"
291
+ },
292
+ "arguments": [],
293
+ "directives": []
294
+ },
295
+ {
296
+ "kind": "Field",
297
+ "name": {
298
+ "kind": "Name",
299
+ "value": "files"
300
+ },
301
+ "arguments": [],
302
+ "directives": [],
303
+ "selectionSet": {
304
+ "kind": "SelectionSet",
305
+ "selections": [{
306
+ "kind": "Field",
307
+ "name": {
308
+ "kind": "Name",
309
+ "value": "path"
310
+ },
311
+ "arguments": [],
312
+ "directives": []
313
+ }, {
314
+ "kind": "Field",
315
+ "name": {
316
+ "kind": "Name",
317
+ "value": "content"
318
+ },
319
+ "arguments": [],
320
+ "directives": []
321
+ }]
322
+ }
323
+ }
324
+ ]
325
+ }
326
+ }, {
327
+ "kind": "Field",
328
+ "name": {
329
+ "kind": "Name",
330
+ "value": "workflowDefinition"
331
+ },
332
+ "arguments": [{
333
+ "kind": "Argument",
334
+ "name": {
335
+ "kind": "Name",
336
+ "value": "workflowKey"
337
+ },
338
+ "value": {
339
+ "kind": "Variable",
340
+ "name": {
341
+ "kind": "Name",
342
+ "value": "workflowKey"
343
+ }
344
+ }
345
+ }, {
346
+ "kind": "Argument",
347
+ "name": {
348
+ "kind": "Name",
349
+ "value": "version"
350
+ },
351
+ "value": {
352
+ "kind": "Variable",
353
+ "name": {
354
+ "kind": "Name",
355
+ "value": "version"
356
+ }
357
+ }
358
+ }],
359
+ "directives": [],
360
+ "selectionSet": {
361
+ "kind": "SelectionSet",
362
+ "selections": [
363
+ {
364
+ "kind": "Field",
365
+ "name": {
366
+ "kind": "Name",
367
+ "value": "id"
368
+ },
369
+ "arguments": [],
370
+ "directives": []
371
+ },
372
+ {
373
+ "kind": "Field",
374
+ "name": {
375
+ "kind": "Name",
376
+ "value": "workflowKey"
377
+ },
378
+ "arguments": [],
379
+ "directives": []
380
+ },
381
+ {
382
+ "kind": "Field",
383
+ "name": {
384
+ "kind": "Name",
385
+ "value": "version"
386
+ },
387
+ "arguments": [],
388
+ "directives": []
389
+ },
390
+ {
391
+ "kind": "Field",
392
+ "name": {
393
+ "kind": "Name",
394
+ "value": "revision"
395
+ },
396
+ "arguments": [],
397
+ "directives": []
398
+ },
399
+ {
400
+ "kind": "Field",
401
+ "name": {
402
+ "kind": "Name",
403
+ "value": "definitionJson"
404
+ },
405
+ "arguments": [],
406
+ "directives": []
407
+ }
408
+ ]
409
+ }
410
+ }]
411
+ }
412
+ }]
413
+ };
414
+
415
+ // src/generated/documents/wspace/WorkflowEditLeaseStatusDocument.ts
416
+ const WorkflowEditLeaseStatusDocument = {
417
+ "kind": "Document",
418
+ "definitions": [{
419
+ "kind": "OperationDefinition",
420
+ "operation": "query",
421
+ "name": {
422
+ "kind": "Name",
423
+ "value": "WorkflowEditLeaseStatus"
424
+ },
425
+ "variableDefinitions": [{
426
+ "kind": "VariableDefinition",
427
+ "variable": {
428
+ "kind": "Variable",
429
+ "name": {
430
+ "kind": "Name",
431
+ "value": "workflowKey"
432
+ }
433
+ },
434
+ "type": {
435
+ "kind": "NonNullType",
436
+ "type": {
437
+ "kind": "NamedType",
438
+ "name": {
439
+ "kind": "Name",
440
+ "value": "String"
441
+ }
442
+ }
443
+ },
444
+ "directives": []
445
+ }],
446
+ "directives": [],
447
+ "selectionSet": {
448
+ "kind": "SelectionSet",
449
+ "selections": [{
450
+ "kind": "Field",
451
+ "name": {
452
+ "kind": "Name",
453
+ "value": "workflowEditLease"
454
+ },
455
+ "arguments": [{
456
+ "kind": "Argument",
457
+ "name": {
458
+ "kind": "Name",
459
+ "value": "workflowKey"
460
+ },
461
+ "value": {
462
+ "kind": "Variable",
463
+ "name": {
464
+ "kind": "Name",
465
+ "value": "workflowKey"
466
+ }
467
+ }
468
+ }],
469
+ "directives": [],
470
+ "selectionSet": {
471
+ "kind": "SelectionSet",
472
+ "selections": [
473
+ {
474
+ "kind": "Field",
475
+ "name": {
476
+ "kind": "Name",
477
+ "value": "workflowKey"
478
+ },
479
+ "arguments": [],
480
+ "directives": []
481
+ },
482
+ {
483
+ "kind": "Field",
484
+ "name": {
485
+ "kind": "Name",
486
+ "value": "available"
487
+ },
488
+ "arguments": [],
489
+ "directives": []
490
+ },
491
+ {
492
+ "kind": "Field",
493
+ "name": {
494
+ "kind": "Name",
495
+ "value": "held"
496
+ },
497
+ "arguments": [],
498
+ "directives": []
499
+ },
500
+ {
501
+ "kind": "Field",
502
+ "name": {
503
+ "kind": "Name",
504
+ "value": "heldByCaller"
505
+ },
506
+ "arguments": [],
507
+ "directives": []
508
+ },
509
+ {
510
+ "kind": "Field",
511
+ "name": {
512
+ "kind": "Name",
513
+ "value": "holderActorId"
514
+ },
515
+ "arguments": [],
516
+ "directives": []
517
+ },
518
+ {
519
+ "kind": "Field",
520
+ "name": {
521
+ "kind": "Name",
522
+ "value": "holderVersion"
523
+ },
524
+ "arguments": [],
525
+ "directives": []
526
+ },
527
+ {
528
+ "kind": "Field",
529
+ "name": {
530
+ "kind": "Name",
531
+ "value": "expiresAt"
532
+ },
533
+ "arguments": [],
534
+ "directives": []
535
+ }
536
+ ]
537
+ }
538
+ }]
539
+ }
540
+ }]
541
+ };
542
+
543
+ // src/builder/components/code-workflow/use-workflow-code-editor.ts
544
+ /**
545
+ * In-browser editing of tier-2 workflow source (BOFF-9905, spec code-first
546
+ * 07 §5): load the version's project files, check them with the managed
547
+ * build, and save them as a new version.
548
+ *
549
+ * - **Load.** `workflowCodeSource` (project files only; vendored files stay
550
+ * on the service so a rebuild gives the CLI's `buildId`) together with the
551
+ * version's `revision` (BOFF-9725) and definition.
552
+ * - **Edit lease.** While another person holds the workflow's edit lease the
553
+ * editor is read-only and Save is off, as the canvas is. When the lease
554
+ * store is unavailable editing is not coordinated and the revision check
555
+ * still protects the save.
556
+ * - **Check.** `buildWorkflowCode(commit: false)`: the same toolchain as
557
+ * `fluidgrids push`, type errors returned as diagnostics.
558
+ * - **Save.** `buildWorkflowCode(commit: true, revision)`: the service
559
+ * builds, stores the bundle and creates a new version from the loaded
560
+ * revision, refusing a save made after someone else changed the version.
561
+ *
562
+ * Python projects are read-only (Python in-browser builds are Phase C).
563
+ */
564
+ function entryOf(definitionJson) {
565
+ if (typeof definitionJson !== "object" || definitionJson === null || Array.isArray(definitionJson)) return void 0;
566
+ const code = definitionJson.code;
567
+ if (typeof code !== "object" || code === null || Array.isArray(code)) return void 0;
568
+ const entry = code.entry;
569
+ return typeof entry === "string" ? entry : void 0;
570
+ }
571
+ async function fetchWorkflowCodeSource(workflowKey, version) {
572
+ const result = await getFluidGridsClient().query({
573
+ query: WorkflowCodeSourceDocument,
574
+ variables: {
575
+ workflowKey,
576
+ version
577
+ },
578
+ fetchPolicy: "network-only"
579
+ });
580
+ throwIfResultError(result);
581
+ const source = result.data?.workflowCodeSource;
582
+ if (!source) return null;
583
+ const definition = result.data?.workflowDefinition;
584
+ return {
585
+ buildId: source.buildId,
586
+ files: source.files.map((file) => ({
587
+ path: file.path,
588
+ content: file.content
589
+ })),
590
+ revision: definition?.revision ?? null,
591
+ entry: entryOf(definition?.definitionJson)
592
+ };
593
+ }
594
+ /** Lease of the workflow, or null when it cannot be read (not coordinated). */
595
+ async function fetchEditLease(workflowKey) {
596
+ try {
597
+ const result = await getFluidGridsClient().query({
598
+ query: WorkflowEditLeaseStatusDocument,
599
+ variables: { workflowKey },
600
+ fetchPolicy: "network-only"
601
+ });
602
+ throwIfResultError(result);
603
+ return result.data?.workflowEditLease ?? null;
604
+ } catch {
605
+ return null;
606
+ }
607
+ }
608
+ async function runWorkflowCodeBuild(variables) {
609
+ const result = await getFluidGridsClient().mutate({
610
+ mutation: BuildWorkflowCodeDocument,
611
+ variables
612
+ });
613
+ throwIfResultError(result);
614
+ const data = result.data?.buildWorkflowCode;
615
+ if (!data) throw new Error("The build returned no result");
616
+ return data;
617
+ }
618
+ /** True when someone other than the caller holds the lease. */
619
+ function leaseBlocksEditing(lease) {
620
+ return !!lease && lease.available && lease.held && !lease.heldByCaller;
621
+ }
622
+ function useWorkflowCodeEditor({ workflowKey, version, enabled, canEdit, onSaved, pythonEnabled = false }) {
623
+ const [loading, setLoading] = useState(false);
624
+ const [loadError, setLoadError] = useState(null);
625
+ const [source, setSource] = useState(null);
626
+ const [contents, setContents] = useState({});
627
+ const [selectedPath, setSelectedPath] = useState();
628
+ const [lease, setLease] = useState(null);
629
+ const [building, setBuilding] = useState(null);
630
+ const [buildError, setBuildError] = useState(null);
631
+ const [lastBuild, setLastBuild] = useState(null);
632
+ const request = useRef(0);
633
+ const onSavedRef = useRef(onSaved);
634
+ onSavedRef.current = onSaved;
635
+ const reload = useCallback(async () => {
636
+ if (!enabled || !workflowKey || !version) return;
637
+ const id = ++request.current;
638
+ setLoading(true);
639
+ setLoadError(null);
640
+ try {
641
+ const [loaded, currentLease] = await Promise.all([fetchWorkflowCodeSource(workflowKey, version), fetchEditLease(workflowKey)]);
642
+ if (id !== request.current) return;
643
+ setSource(loaded);
644
+ setLease(currentLease);
645
+ setContents(Object.fromEntries((loaded?.files ?? []).map((file) => [file.path, file.content])));
646
+ setSelectedPath(loaded ? defaultSourcePath(loaded.files, loaded.entry, { python: pythonEnabled && projectLanguage(loaded.files) === "python" }) : void 0);
647
+ setLastBuild(null);
648
+ setBuildError(null);
649
+ } catch (err) {
650
+ if (id !== request.current) return;
651
+ setLoadError(describeOperationError(err));
652
+ } finally {
653
+ if (id === request.current) setLoading(false);
654
+ }
655
+ }, [
656
+ enabled,
657
+ workflowKey,
658
+ version,
659
+ pythonEnabled
660
+ ]);
661
+ useEffect(() => {
662
+ reload();
663
+ }, [reload]);
664
+ const [baseSdk, setBaseSdk] = useState(null);
665
+ useEffect(() => {
666
+ setBaseSdk(null);
667
+ if (!pythonEnabled || !enabled || !workflowKey || !version) return;
668
+ let cancelled = false;
669
+ fetchCodeBundleSdk(workflowKey, version).then((bundle) => {
670
+ if (!cancelled) setBaseSdk(bundle?.sdkVersion ?? null);
671
+ }).catch(() => void 0);
672
+ return () => {
673
+ cancelled = true;
674
+ };
675
+ }, [
676
+ pythonEnabled,
677
+ enabled,
678
+ workflowKey,
679
+ version
680
+ ]);
681
+ const language = useMemo(() => projectLanguage(source?.files ?? []), [source]);
682
+ const pythonEditable = pythonEnabled && language === "python";
683
+ const readOnlyReason = language === "python" && !pythonEnabled ? "python" : !canEdit ? "permission" : leaseBlocksEditing(lease) ? "lease" : null;
684
+ const changed = useMemo(() => changedSourceFiles(source?.files ?? [], contents), [source, contents]);
685
+ const build = useCallback(async (commit, description) => {
686
+ if (!source || readOnlyReason) return null;
687
+ setBuilding(commit ? "save" : "check");
688
+ setBuildError(null);
689
+ try {
690
+ const result = await runWorkflowCodeBuild({ input: {
691
+ workflowKey,
692
+ baseVersion: version,
693
+ files: changed.length ? changed : selectedPath && contents[selectedPath] !== void 0 ? [{
694
+ path: selectedPath,
695
+ content: contents[selectedPath]
696
+ }] : [],
697
+ commit,
698
+ ...commit && source.revision !== null ? { revision: source.revision } : {},
699
+ ...commit && description ? { description } : {}
700
+ } });
701
+ setLastBuild(result);
702
+ if (commit && result.success && result.version) onSavedRef.current?.(result.version, result);
703
+ return result;
704
+ } catch (err) {
705
+ setBuildError(describeOperationError(err));
706
+ return null;
707
+ } finally {
708
+ setBuilding(null);
709
+ }
710
+ }, [
711
+ source,
712
+ readOnlyReason,
713
+ changed,
714
+ selectedPath,
715
+ contents,
716
+ workflowKey,
717
+ version
718
+ ]);
719
+ const check = useCallback(() => build(false), [build]);
720
+ const save = useCallback((description) => build(true, description), [build]);
721
+ return {
722
+ loading,
723
+ loadError,
724
+ source,
725
+ contents,
726
+ selectedPath,
727
+ select: setSelectedPath,
728
+ setContent: useCallback((path, content) => {
729
+ setContents((current) => current[path] === content ? current : {
730
+ ...current,
731
+ [path]: content
732
+ });
733
+ }, []),
734
+ changed,
735
+ language,
736
+ lease,
737
+ readOnlyReason,
738
+ rebuildSdk: baseSdk && lastBuild?.sdkVersion && baseSdk !== lastBuild.sdkVersion ? {
739
+ from: baseSdk,
740
+ to: lastBuild.sdkVersion
741
+ } : null,
742
+ isEditable: (path) => !readOnlyReason && isEditableSourcePath(path, { python: pythonEditable }),
743
+ building,
744
+ buildError,
745
+ lastBuild,
746
+ diagnostics: lastBuild?.diagnostics ?? [],
747
+ check,
748
+ save,
749
+ reload
750
+ };
751
+ }
752
+
753
+ export { BuildWorkflowCodeDocument as a, WorkflowCodeSourceDocument as i, useWorkflowCodeEditor as n, WorkflowEditLeaseStatusDocument as r, fetchWorkflowCodeSource as t };