@mcp-b/react-components 0.63.0 → 0.64.1

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 (484) hide show
  1. package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
  2. package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
  3. package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
  4. package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
  5. package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
  6. package/dist/CodeBlock-dt0L8md0.js +892 -0
  7. package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
  8. package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
  9. package/dist/ExecutionResult-CXnGcmM4.js +671 -0
  10. package/dist/FileTree-CjfzpN6X.js +968 -0
  11. package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
  12. package/dist/ManagerOffice-T79utm-P.js +2469 -0
  13. package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
  14. package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
  15. package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
  16. package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
  17. package/dist/SetupChecklist-DwscX3Bw.js +230 -0
  18. package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
  19. package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
  20. package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
  21. package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
  22. package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
  23. package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
  24. package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
  25. package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
  26. package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
  27. package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
  28. package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
  29. package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
  30. package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
  31. package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
  32. package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
  33. package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
  34. package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
  35. package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
  36. package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
  37. package/dist/assets/desktop/README.md +43 -0
  38. package/dist/assets/desktop/automations.svg +19 -0
  39. package/dist/assets/desktop/document.svg +24 -0
  40. package/dist/assets/desktop/folder.png +0 -0
  41. package/dist/assets/desktop/mail.svg +31 -0
  42. package/dist/assets/desktop/settings.svg +9 -0
  43. package/dist/assets/desktop/trash-full.svg +23 -0
  44. package/dist/assets/desktop/trash.svg +19 -0
  45. package/dist/attachment-preview-DeRqFjdz.js +68 -0
  46. package/dist/attempt-CySQHJsF.js +21 -0
  47. package/dist/command-search-1fjmCBBo.js +34 -0
  48. package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
  49. package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
  50. package/dist/components/agents-sdk/AgentActivity.js +78 -31
  51. package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
  52. package/dist/components/agents-sdk/AgentChat.js +1113 -386
  53. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  54. package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
  55. package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
  56. package/dist/components/agents-sdk/AgentComputer.js +8045 -0
  57. package/dist/components/agents-sdk/AgentEvent.js +164 -21
  58. package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
  59. package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
  60. package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
  61. package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
  62. package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
  63. package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
  64. package/dist/components/agents-sdk/BrowserReplay.js +298 -133
  65. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
  66. package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
  67. package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
  68. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  69. package/dist/components/agents-sdk/EmployeeApp.js +108 -46
  70. package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
  71. package/dist/components/agents-sdk/EmployeeChat.js +500 -99
  72. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  73. package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
  74. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  75. package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
  76. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  77. package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
  78. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  79. package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
  80. package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
  81. package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
  82. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  83. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  84. package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
  85. package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
  86. package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
  87. package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
  88. package/dist/components/agents-sdk/McpServerIcon.js +57 -14
  89. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  90. package/dist/components/agents-sdk/McpServerPicker.js +542 -158
  91. package/dist/components/agents-sdk/ModelSelector.js +1151 -253
  92. package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
  93. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  94. package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
  95. package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
  96. package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
  97. package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
  98. package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
  99. package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
  100. package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
  101. package/dist/components/agents-sdk/ThinkChat.js +321 -132
  102. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  103. package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
  104. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  105. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
  106. package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
  107. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
  108. package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
  109. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  110. package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
  111. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
  112. package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
  113. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
  114. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
  115. package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
  116. package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
  117. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
  118. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
  119. package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
  120. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
  121. package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
  122. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  123. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
  124. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  125. package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
  126. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
  127. package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
  128. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  129. package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
  130. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
  131. package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
  132. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  133. package/dist/components/agents-sdk/Workspace.js +491 -166
  134. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  135. package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
  136. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  137. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
  138. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
  139. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
  140. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  141. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  142. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
  143. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
  144. package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
  145. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
  146. package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
  147. package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
  148. package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
  149. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
  150. package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
  151. package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
  152. package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
  153. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
  154. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
  155. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
  156. package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
  157. package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
  158. package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
  159. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  160. package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
  161. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
  162. package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
  163. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  164. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  165. package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
  166. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
  167. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  168. package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
  169. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  170. package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
  171. package/dist/components/ai-sdk/Activity.js +768 -192
  172. package/dist/components/ai-sdk/AgentAttention.js +286 -58
  173. package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
  174. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
  175. package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
  176. package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
  177. package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
  178. package/dist/components/ai-sdk/Approval.js +574 -172
  179. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  180. package/dist/components/ai-sdk/Artifact.js +535 -128
  181. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  182. package/dist/components/ai-sdk/ChainOfThought.js +404 -80
  183. package/dist/components/ai-sdk/Checkpoint.js +229 -45
  184. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  185. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  186. package/dist/components/ai-sdk/ComposerLink.js +216 -48
  187. package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
  188. package/dist/components/ai-sdk/Context.js +737 -178
  189. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  190. package/dist/components/ai-sdk/Conversation.js +305 -68
  191. package/dist/components/ai-sdk/ExpansionState.js +74 -15
  192. package/dist/components/ai-sdk/Goal.js +435 -116
  193. package/dist/components/ai-sdk/InlineCitation.js +313 -76
  194. package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
  195. package/dist/components/ai-sdk/Message.d.ts +1 -1
  196. package/dist/components/ai-sdk/Message.js +1010 -195
  197. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  198. package/dist/components/ai-sdk/MessageScroller.js +264 -46
  199. package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
  200. package/dist/components/ai-sdk/Plan.js +639 -128
  201. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  202. package/dist/components/ai-sdk/PromptInput.js +2735 -794
  203. package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
  204. package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
  205. package/dist/components/ai-sdk/Queue.js +792 -154
  206. package/dist/components/ai-sdk/Reasoning.js +268 -69
  207. package/dist/components/ai-sdk/Sources.js +226 -63
  208. package/dist/components/ai-sdk/Task.js +294 -71
  209. package/dist/components/ai-sdk/ToolApproval.js +126 -26
  210. package/dist/components/ai-sdk/ToolInvocation.js +112 -22
  211. package/dist/components/extension/ChatGptSignInScreen.js +1 -82
  212. package/dist/components/extension/CodexModelSelector.d.ts +1 -1
  213. package/dist/components/extension/CodexModelSelector.js +467 -146
  214. package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
  215. package/dist/components/extension/ConversationTabPicker.js +254 -76
  216. package/dist/components/extension/FirstRunSetup.d.ts +100 -36
  217. package/dist/components/extension/FirstRunSetup.js +3974 -1016
  218. package/dist/components/foundations/Accordion.js +186 -41
  219. package/dist/components/foundations/AlertDialog.js +425 -97
  220. package/dist/components/foundations/AppIcon.d.ts +13 -13
  221. package/dist/components/foundations/AppIcon.js +183 -34
  222. package/dist/components/foundations/Autocomplete.js +408 -89
  223. package/dist/components/foundations/Avatar.d.ts +100 -2
  224. package/dist/components/foundations/Avatar.js +204 -44
  225. package/dist/components/foundations/Button.js +64 -13
  226. package/dist/components/foundations/Card.js +357 -63
  227. package/dist/components/foundations/Checkbox.js +82 -17
  228. package/dist/components/foundations/CheckboxGroup.js +266 -58
  229. package/dist/components/foundations/Collapsible.d.ts +2 -1
  230. package/dist/components/foundations/Collapsible.js +129 -26
  231. package/dist/components/foundations/Combobox.js +408 -89
  232. package/dist/components/foundations/ContextMenu.d.ts +2 -2
  233. package/dist/components/foundations/ContextMenu.js +591 -117
  234. package/dist/components/foundations/DescriptionList.js +159 -28
  235. package/dist/components/foundations/Dialog.js +373 -89
  236. package/dist/components/foundations/EmptyState.js +86 -23
  237. package/dist/components/foundations/Favicon.d.ts +17 -0
  238. package/dist/components/foundations/Favicon.js +62 -0
  239. package/dist/components/foundations/Field.js +525 -108
  240. package/dist/components/foundations/Fieldset.js +115 -23
  241. package/dist/components/foundations/Form.js +38 -9
  242. package/dist/components/foundations/FormattedDate.d.ts +19 -5
  243. package/dist/components/foundations/FormattedDate.js +82 -12
  244. package/dist/components/foundations/IconButton.d.ts +1 -1
  245. package/dist/components/foundations/IconButton.js +114 -17
  246. package/dist/components/foundations/Input.js +38 -9
  247. package/dist/components/foundations/Kbd.js +55 -10
  248. package/dist/components/foundations/Label.js +56 -12
  249. package/dist/components/foundations/LinkButton.js +67 -15
  250. package/dist/components/foundations/Marker.js +138 -29
  251. package/dist/components/foundations/Menu.d.ts +1 -1
  252. package/dist/components/foundations/Menu.js +634 -136
  253. package/dist/components/foundations/Menubar.d.ts +2 -2
  254. package/dist/components/foundations/Menubar.js +685 -130
  255. package/dist/components/foundations/Meter.js +186 -41
  256. package/dist/components/foundations/NavigationMenu.js +426 -95
  257. package/dist/components/foundations/NumberField.js +223 -49
  258. package/dist/components/foundations/Popover.js +398 -88
  259. package/dist/components/foundations/PreviewCard.js +234 -53
  260. package/dist/components/foundations/Progress.js +117 -25
  261. package/dist/components/foundations/RadioGroup.d.ts +13 -5
  262. package/dist/components/foundations/RadioGroup.js +132 -25
  263. package/dist/components/foundations/ScrollArea.js +230 -51
  264. package/dist/components/foundations/SearchField.d.ts +8 -3
  265. package/dist/components/foundations/SearchField.js +129 -28
  266. package/dist/components/foundations/Select.js +648 -145
  267. package/dist/components/foundations/Separator.js +61 -12
  268. package/dist/components/foundations/Slider.js +260 -57
  269. package/dist/components/foundations/Stepper.d.ts +1 -1
  270. package/dist/components/foundations/Stepper.js +561 -127
  271. package/dist/components/foundations/Switch.js +82 -18
  272. package/dist/components/foundations/Tabs.d.ts +2 -2
  273. package/dist/components/foundations/Tabs.js +282 -53
  274. package/dist/components/foundations/Textarea.js +43 -9
  275. package/dist/components/foundations/ThemeProvider.js +138 -52
  276. package/dist/components/foundations/Toast.d.ts +10 -2
  277. package/dist/components/foundations/Toast.js +322 -75
  278. package/dist/components/foundations/Toggle.d.ts +5 -2
  279. package/dist/components/foundations/Toggle.js +51 -10
  280. package/dist/components/foundations/ToggleGroup.d.ts +3 -3
  281. package/dist/components/foundations/ToggleGroup.js +215 -59
  282. package/dist/components/foundations/Toolbar.js +249 -61
  283. package/dist/components/foundations/Tooltip.d.ts +3 -3
  284. package/dist/components/foundations/Tooltip.js +311 -55
  285. package/dist/components/foundations/TransitionSurface.js +43 -9
  286. package/dist/components/foundations/icons.d.ts +2 -2
  287. package/dist/components/foundations/icons.js +2 -2
  288. package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
  289. package/dist/components/general-purpose/ActionGuide.js +290 -64
  290. package/dist/components/general-purpose/AppFrame.js +72 -14
  291. package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
  292. package/dist/components/general-purpose/AppTopBar.js +349 -60
  293. package/dist/components/general-purpose/BrandLoading.js +37 -9
  294. package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
  295. package/dist/components/general-purpose/CommandPalette.js +271 -0
  296. package/dist/components/general-purpose/Commit.d.ts +1 -1
  297. package/dist/components/general-purpose/Commit.js +937 -167
  298. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  299. package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
  300. package/dist/components/general-purpose/FileTree.d.ts +20 -7
  301. package/dist/components/general-purpose/FileTree.js +1 -1
  302. package/dist/components/general-purpose/ListDetail.d.ts +84 -0
  303. package/dist/components/general-purpose/ListDetail.js +423 -0
  304. package/dist/components/general-purpose/NotificationPrompt.js +20 -11
  305. package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
  306. package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
  307. package/dist/components/general-purpose/PricingFAQ.js +53 -12
  308. package/dist/components/general-purpose/PricingPage.js +376 -139
  309. package/dist/components/general-purpose/PricingPlanCard.js +209 -84
  310. package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
  311. package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
  312. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  313. package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
  314. package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
  315. package/dist/components/general-purpose/ScreenStack.js +427 -0
  316. package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
  317. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  318. package/dist/components/general-purpose/StatusScreen.js +82 -24
  319. package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
  320. package/dist/components/general-purpose/SwipeActions.js +357 -0
  321. package/dist/components/general-purpose/Terminal.d.ts +22 -48
  322. package/dist/components/general-purpose/Terminal.js +320 -174
  323. package/dist/components/general-purpose/TestResults.js +975 -196
  324. package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
  325. package/dist/components/general-purpose/ThemeModeControl.js +66 -23
  326. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
  327. package/dist/components/general-purpose/WallpaperPicker.js +180 -0
  328. package/dist/components/general-purpose/WebPreview.d.ts +5 -7
  329. package/dist/components/general-purpose/WebPreview.js +770 -203
  330. package/dist/components/nanites/AgentConnection.js +323 -84
  331. package/dist/components/nanites/AgentToolDetail.js +233 -53
  332. package/dist/components/nanites/GithubMotionMark.js +37 -9
  333. package/dist/components/nanites/NaniteScene.js +535 -323
  334. package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
  335. package/dist/container-width-C43ccJ84.js +17 -0
  336. package/dist/context-Ddsp8HgD.js +43 -0
  337. package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
  338. package/dist/copy-button-DWBVJR6D.js +118 -0
  339. package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
  340. package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
  341. package/dist/icons-nLTnB9kd.js +470 -0
  342. package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
  343. package/dist/motion-CGM3i6lX.js +319 -0
  344. package/dist/motion-preferences-6qsDIDvH.js +13 -0
  345. package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
  346. package/dist/progress-ring-BO649JA9.js +79 -0
  347. package/dist/provider-logos-Ceu7iYFx.js +362 -0
  348. package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
  349. package/dist/styles/accessibility.css +26 -0
  350. package/dist/styles/accordion.css +0 -2
  351. package/dist/styles/activity.css +20 -12
  352. package/dist/styles/agent-attention.css +31 -10
  353. package/dist/styles/agent-chat.css +7 -6
  354. package/dist/styles/agent-computer-motion-reduction.css +118 -0
  355. package/dist/styles/agent-computer-motion.css +127 -0
  356. package/dist/styles/agent-computer-phone.css +942 -0
  357. package/dist/styles/agent-computer.css +1764 -0
  358. package/dist/styles/agent-connection.css +5 -5
  359. package/dist/styles/agent-screen-switcher.css +313 -0
  360. package/dist/styles/app-icon.css +34 -30
  361. package/dist/styles/app-top-bar.css +33 -18
  362. package/dist/styles/approval.css +3 -3
  363. package/dist/styles/artifact.css +1 -1
  364. package/dist/styles/attachment-preview.css +2 -4
  365. package/dist/styles/avatar.css +12 -14
  366. package/dist/styles/base-ui-motion.css +84 -18
  367. package/dist/styles/base-ui-motion.test.tsx +305 -0
  368. package/dist/styles/base.css +16 -12
  369. package/dist/styles/brand.test.ts +7 -20
  370. package/dist/styles/browser-control-overlay.css +1 -1
  371. package/dist/styles/browser-live-screen.css +2 -2
  372. package/dist/styles/browser-live-view.css +1 -1
  373. package/dist/styles/browser-replay.css +0 -8
  374. package/dist/styles/browser-run-panel.css +275 -37
  375. package/dist/styles/button.css +52 -9
  376. package/dist/styles/card.css +6 -5
  377. package/dist/styles/chain-of-thought.css +0 -10
  378. package/dist/styles/checkpoint.css +2 -2
  379. package/dist/styles/codex-model-selector.css +2 -2
  380. package/dist/styles/color-contrast.test.ts +18 -1
  381. package/dist/styles/command-palette.css +110 -0
  382. package/dist/styles/composer-link.css +11 -7
  383. package/dist/styles/composition-motion.css +3 -14
  384. package/dist/styles/context.css +2 -2
  385. package/dist/styles/conversation-tab-picker.css +7 -0
  386. package/dist/styles/conversation.css +8 -2
  387. package/dist/styles/dialog.css +2 -2
  388. package/dist/styles/employee-app.css +8 -2
  389. package/dist/styles/employee-chrome.css +4 -4
  390. package/dist/styles/execution-board.css +206 -114
  391. package/dist/styles/execution-result.css +2 -2
  392. package/dist/styles/field.css +187 -4
  393. package/dist/styles/file-tree.css +218 -40
  394. package/dist/styles/first-run-setup.css +914 -187
  395. package/dist/styles/github-motion-mark.css +0 -8
  396. package/dist/styles/index.css +145 -133
  397. package/dist/styles/inline-citation.css +5 -4
  398. package/dist/styles/list-detail.css +57 -0
  399. package/dist/styles/manager-office.css +6 -8
  400. package/dist/styles/manager-work.css +4 -2
  401. package/dist/styles/mcp-plugin-catalog.css +2 -2
  402. package/dist/styles/mcp-server-picker.css +3 -6
  403. package/dist/styles/media-preview-card.css +2 -2
  404. package/dist/styles/menu.css +0 -9
  405. package/dist/styles/menubar.css +18 -6
  406. package/dist/styles/message-scroller.css +47 -9
  407. package/dist/styles/message.css +3 -3
  408. package/dist/styles/model-selector.css +1 -1
  409. package/dist/styles/motion-reduction.css +39 -6
  410. package/dist/styles/pricing-page.css +1 -1
  411. package/dist/styles/prompt-input.css +29 -29
  412. package/dist/styles/queue.css +1 -1
  413. package/dist/styles/recipes.css +212 -28
  414. package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
  415. package/dist/styles/responsive-sidebar-shell.css +40 -43
  416. package/dist/styles/screen-stack.css +123 -0
  417. package/dist/styles/search-field.css +80 -3
  418. package/dist/styles/stepper.css +0 -10
  419. package/dist/styles/streamdown.css +2 -2
  420. package/dist/styles/subagent-run.css +9 -5
  421. package/dist/styles/swipe-actions.css +158 -0
  422. package/dist/styles/tabs.css +80 -23
  423. package/dist/styles/task.css +7 -1
  424. package/dist/styles/terminal.css +66 -78
  425. package/dist/styles/test-results.css +1 -19
  426. package/dist/styles/textarea.css +2 -1
  427. package/dist/styles/theme-mode-control.css +154 -26
  428. package/dist/styles/think-chat-tool-panels.css +1 -1
  429. package/dist/styles/think-execution-workbench.css +0 -9
  430. package/dist/styles/think-full-app.css +7 -1
  431. package/dist/styles/think-schedule.css +81 -54
  432. package/dist/styles/think-thread-picker.css +28 -37
  433. package/dist/styles/toast.css +11 -0
  434. package/dist/styles/toggle-group.css +0 -10
  435. package/dist/styles/toggle.css +13 -0
  436. package/dist/styles/tooltip.css +12 -0
  437. package/dist/styles/transition-surface.css +1 -0
  438. package/dist/styles/wallpaper-picker.css +224 -0
  439. package/dist/styles/web-preview.css +47 -18
  440. package/dist/styles/workspace-automation.css +116 -17
  441. package/dist/styles/workspace-concepts.css +1 -1
  442. package/dist/styles/workspace-desktop.css +124 -0
  443. package/dist/styles/workspace-entity-card.css +3 -1
  444. package/dist/styles/workspace-explorer.css +499 -5
  445. package/dist/utils/brand-marks.d.ts +13 -0
  446. package/dist/utils/brand-marks.js +14 -0
  447. package/dist/utils/desktop-artwork.d.ts +17 -0
  448. package/dist/utils/desktop-artwork.js +18 -0
  449. package/dist/utils/favicon.d.ts +6 -2
  450. package/dist/utils/favicon.js +16 -4
  451. package/dist/utils/structured-code.d.ts +1 -1
  452. package/dist/workspace-assets-DdtnBDU3.js +213 -0
  453. package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
  454. package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
  455. package/dist/workspace-delete-BOY6CMBf.js +183 -0
  456. package/dist/workspace-drag-B6hMXUNt.js +304 -0
  457. package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
  458. package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
  459. package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
  460. package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
  461. package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
  462. package/package.json +9 -3
  463. package/dist/Avatar-t1YRzdwB.d.ts +0 -101
  464. package/dist/CodeBlock-DYQdZUH6.js +0 -318
  465. package/dist/ExecutionResult-2fBkpIGN.js +0 -279
  466. package/dist/FileTree-CDLOD643.js +0 -323
  467. package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
  468. package/dist/SetupChecklist-B-iEta9v.js +0 -78
  469. package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
  470. package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
  471. package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
  472. package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
  473. package/dist/attachment-preview-1CXJvrmb.js +0 -25
  474. package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
  475. package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
  476. package/dist/copy-button-DbR932tF.js +0 -45
  477. package/dist/icons-GoybMAB2.js +0 -141
  478. package/dist/progress-ring-L2bbF0ji.js +0 -40
  479. package/dist/provider-logos-DWYY8wNz.js +0 -99
  480. package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
  481. package/dist/workspace-assets-F3r6XltC.js +0 -107
  482. package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
  483. package/dist/workspace-delete-CQvv1eDE.js +0 -81
  484. package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
@@ -1,17 +1,20 @@
1
- import { C as FileIcon, U as PlayIcon, V as PencilIcon, Z as SpinnerIcon, ct as WrenchIcon, d as CheckIcon, et as StopIcon, h as CopyIcon, k as LinkIcon, r as ArrowLeftIcon, st as WarningIcon, u as CalendarIcon, w as FolderIcon } from "../../icons-GoybMAB2.js";
1
+ import { F as LinkIcon, J as PencilIcon, O as FileIcon, X as PlayIcon, b as CopyIcon, f as CalendarIcon, ht as WrenchIcon, it as SpinnerIcon, k as FolderIcon, mt as WarningIcon, p as CheckIcon, r as ArrowLeftIcon, st as StopIcon } from "../../icons-nLTnB9kd.js";
2
2
  import { Checkbox } from "../foundations/Checkbox.js";
3
3
  import { Field } from "../foundations/Field.js";
4
- import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
4
+ import { t as attempt } from "../../attempt-CySQHJsF.js";
5
+ import { a as formatErrorMessage } from "../../format-DL7f2rqp.js";
5
6
  import { Button } from "../foundations/Button.js";
6
7
  import { Collapsible } from "../foundations/Collapsible.js";
7
8
  import { IconButton } from "../foundations/IconButton.js";
8
9
  import { Textarea } from "../foundations/Textarea.js";
10
+ import { Favicon } from "../foundations/Favicon.js";
9
11
  import { a as executionResultSummary, n as executionErrorSummary, o as readExecutionResult } from "../../execution-result-DAuW4VWv.js";
10
- import { a as httpUrl, r as OutboundLink, t as FaviconMark } from "../../workspace-assets-F3r6XltC.js";
11
- import { n as executionResultLabel, t as ExecutionResult } from "../../ExecutionResult-2fBkpIGN.js";
12
+ import { i as httpUrl, n as OutboundLink } from "../../workspace-assets-DdtnBDU3.js";
13
+ import { n as executionResultLabel, t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
12
14
  import { ExecutionBoard } from "./ExecutionBoard.js";
13
- import { n as OptionSelect, t as scheduledTableSourceNote } from "../../scheduled-table-source-NZR1vFc_.js";
15
+ import { n as OptionSelect, t as scheduledTableSourceNote } from "../../scheduled-table-source-gGpVJ1TN.js";
14
16
  import { Progress } from "../foundations/Progress.js";
17
+ import { c } from "react/compiler-runtime";
15
18
  import * as React from "react";
16
19
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
20
  import { useMutation, useQuery } from "@tanstack/react-query";
@@ -38,181 +41,411 @@ const rowStatus = {
38
41
  aborted: "Stopped",
39
42
  interrupted: "Interrupted"
40
43
  };
41
- function TablePreview({ data, visibleRows, rowsByIndex, results, resultColumns, showResult, trace, onSelectRow }) {
42
- return /* @__PURE__ */ jsx("div", {
43
- className: "workspace-automation-table__scroll",
44
- role: "region",
45
- "aria-label": "Table rows",
46
- tabIndex: 0,
47
- children: /* @__PURE__ */ jsxs("table", {
48
- className: "workspace-automation-table__preview",
49
- style: { minInlineSize: `${(data.columns.length + resultColumns.length + Number(showResult)) * 5.5 + 2}rem` },
44
+ function TablePreview(t0) {
45
+ const $ = c(28);
46
+ const { data, visibleRows, rowsByIndex, results, resultColumns, showResult, trace, onSelectRow } = t0;
47
+ const t1 = `${(data.columns.length + resultColumns.length + Number(showResult)) * 5.5 + 2}rem`;
48
+ let t2;
49
+ if ($[0] !== t1) {
50
+ t2 = { minInlineSize: t1 };
51
+ $[0] = t1;
52
+ $[1] = t2;
53
+ } else t2 = $[1];
54
+ let t3;
55
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
56
+ t3 = /* @__PURE__ */ jsx("th", {
57
+ scope: "col",
58
+ className: "workspace-automation-table__row-number",
59
+ children: /* @__PURE__ */ jsx("span", {
60
+ className: "sigvelo-visually-hidden",
61
+ children: "Row"
62
+ })
63
+ });
64
+ $[2] = t3;
65
+ } else t3 = $[2];
66
+ let t4;
67
+ if ($[3] !== data.columns) {
68
+ t4 = data.columns.map(_temp);
69
+ $[3] = data.columns;
70
+ $[4] = t4;
71
+ } else t4 = $[4];
72
+ let t5;
73
+ if ($[5] !== resultColumns) {
74
+ t5 = resultColumns.map(_temp2);
75
+ $[5] = resultColumns;
76
+ $[6] = t5;
77
+ } else t5 = $[6];
78
+ let t6;
79
+ if ($[7] !== showResult) {
80
+ t6 = showResult ? /* @__PURE__ */ jsx("th", {
81
+ scope: "col",
82
+ "data-result": "",
83
+ children: "Result"
84
+ }) : null;
85
+ $[7] = showResult;
86
+ $[8] = t6;
87
+ } else t6 = $[8];
88
+ let t7;
89
+ if ($[9] !== t4 || $[10] !== t5 || $[11] !== t6) {
90
+ t7 = /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
91
+ t3,
92
+ t4,
93
+ t5,
94
+ t6
95
+ ] }) });
96
+ $[9] = t4;
97
+ $[10] = t5;
98
+ $[11] = t6;
99
+ $[12] = t7;
100
+ } else t7 = $[12];
101
+ let t8;
102
+ if ($[13] !== data.columns || $[14] !== onSelectRow || $[15] !== resultColumns || $[16] !== results || $[17] !== rowsByIndex || $[18] !== showResult || $[19] !== trace?.executionId || $[20] !== visibleRows) {
103
+ t8 = visibleRows?.map((t9) => {
104
+ const { row: cells, index } = t9;
105
+ const row = rowsByIndex.get(index);
106
+ const result = results.get(index);
107
+ const label = displayCell(cells.find(_temp3));
108
+ const RowIcon = row?.status === "completed" ? CheckIcon : row?.status === "running" ? SpinnerIcon : row?.status === "error" || row?.status === "interrupted" ? WarningIcon : row?.status === "aborted" ? StopIcon : void 0;
109
+ const status = row ? rowStatus[row.status] : "Waiting";
110
+ const canInspect = row?.tracePath || row?.executionId !== void 0 && row.executionId === trace?.executionId;
111
+ return /* @__PURE__ */ jsxs("tr", {
112
+ "data-status": row?.status,
113
+ children: [
114
+ /* @__PURE__ */ jsx("th", {
115
+ scope: "row",
116
+ className: "workspace-automation-table__row-number",
117
+ children: canInspect ? /* @__PURE__ */ jsx(IconButton, {
118
+ variant: "ghost",
119
+ color: "neutral",
120
+ label: `Open row ${index + 1}: ${label}`,
121
+ title: status,
122
+ "aria-description": status,
123
+ onClick: () => onSelectRow(index),
124
+ children: RowIcon ? /* @__PURE__ */ jsx(RowIcon, {}) : /* @__PURE__ */ jsx("span", { children: index + 1 })
125
+ }) : RowIcon ? /* @__PURE__ */ jsx("span", {
126
+ role: "img",
127
+ "aria-label": `Row ${index + 1}: ${status}`,
128
+ title: status,
129
+ children: /* @__PURE__ */ jsx(RowIcon, {})
130
+ }) : index + 1
131
+ }),
132
+ data.columns.map((column_1, columnIndex) => {
133
+ const value_0 = cells[columnIndex];
134
+ const link = typeof value_0 === "string" ? httpUrl(value_0) : void 0;
135
+ return /* @__PURE__ */ jsx("td", { children: link ? /* @__PURE__ */ jsx(OutboundLink, { href: link }) : displayCell(value_0) }, column_1);
136
+ }),
137
+ resultColumns.map((column_2) => /* @__PURE__ */ jsx("td", {
138
+ "data-result": "",
139
+ children: result != null && typeof result === "object" && Object.hasOwn(result, column_2) && (column_2 !== "summary" || typeof readExecutionResult(result[column_2]) !== "string") ? /* @__PURE__ */ jsx(ExecutionResult, {
140
+ result: result[column_2],
141
+ showSummary: false
142
+ }) : /* @__PURE__ */ jsx("span", {
143
+ className: "workspace-automation-table__hint",
144
+ children: "—"
145
+ })
146
+ }, column_2)),
147
+ showResult ? /* @__PURE__ */ jsx("td", {
148
+ "data-result": "",
149
+ children: row?.error ? executionErrorSummary(row.error) : result !== void 0 && (result == null || typeof result !== "object" || Array.isArray(result)) ? /* @__PURE__ */ jsx(ExecutionResult, {
150
+ result,
151
+ showSummary: false
152
+ }) : result != null && typeof result === "object" && Object.entries(result).every(_temp4) ? executionResultSummary(result) : row?.summary && result === void 0 ? executionResultSummary(row.summary) : status
153
+ }) : null
154
+ ]
155
+ }, index);
156
+ });
157
+ $[13] = data.columns;
158
+ $[14] = onSelectRow;
159
+ $[15] = resultColumns;
160
+ $[16] = results;
161
+ $[17] = rowsByIndex;
162
+ $[18] = showResult;
163
+ $[19] = trace?.executionId;
164
+ $[20] = visibleRows;
165
+ $[21] = t8;
166
+ } else t8 = $[21];
167
+ let t9;
168
+ if ($[22] !== t8) {
169
+ t9 = /* @__PURE__ */ jsx("tbody", { children: t8 });
170
+ $[22] = t8;
171
+ $[23] = t9;
172
+ } else t9 = $[23];
173
+ let t10;
174
+ if ($[24] !== t2 || $[25] !== t7 || $[26] !== t9) {
175
+ t10 = /* @__PURE__ */ jsx("div", {
176
+ className: "workspace-automation-table__scroll",
177
+ role: "region",
50
178
  "aria-label": "Table rows",
51
- children: [/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
52
- /* @__PURE__ */ jsx("th", {
53
- scope: "col",
54
- className: "workspace-automation-table__row-number",
55
- children: /* @__PURE__ */ jsx("span", {
56
- className: "sigvelo-visually-hidden",
57
- children: "Row"
58
- })
59
- }),
60
- data.columns.map((column) => /* @__PURE__ */ jsx("th", {
61
- scope: "col",
62
- children: column
63
- }, column)),
64
- resultColumns.map((column) => /* @__PURE__ */ jsx("th", {
65
- scope: "col",
66
- "data-result": "",
67
- children: executionResultLabel(column)
68
- }, column)),
69
- showResult ? /* @__PURE__ */ jsx("th", {
70
- scope: "col",
71
- "data-result": "",
72
- children: "Result"
73
- }) : null
74
- ] }) }), /* @__PURE__ */ jsx("tbody", { children: visibleRows?.map(({ row: cells, index }) => {
75
- const row = rowsByIndex.get(index);
76
- const result = results.get(index);
77
- const label = displayCell(cells.find((value) => !isBlankCell(value)));
78
- const RowIcon = row?.status === "completed" ? CheckIcon : row?.status === "running" ? SpinnerIcon : row?.status === "error" || row?.status === "interrupted" ? WarningIcon : row?.status === "aborted" ? StopIcon : void 0;
79
- const status = row ? rowStatus[row.status] : "Waiting";
80
- const canInspect = row?.tracePath || row?.executionId !== void 0 && row.executionId === trace?.executionId;
81
- return /* @__PURE__ */ jsxs("tr", {
82
- "data-status": row?.status,
83
- children: [
84
- /* @__PURE__ */ jsx("th", {
85
- scope: "row",
86
- className: "workspace-automation-table__row-number",
87
- children: canInspect ? /* @__PURE__ */ jsx(IconButton, {
88
- variant: "ghost",
89
- color: "neutral",
90
- label: `Open row ${index + 1}: ${label}`,
91
- title: status,
92
- "aria-description": status,
93
- onClick: () => onSelectRow(index),
94
- children: RowIcon ? /* @__PURE__ */ jsx(RowIcon, {}) : /* @__PURE__ */ jsx("span", { children: index + 1 })
95
- }) : RowIcon ? /* @__PURE__ */ jsx("span", {
96
- role: "img",
97
- "aria-label": `Row ${index + 1}: ${status}`,
98
- title: status,
99
- children: /* @__PURE__ */ jsx(RowIcon, {})
100
- }) : index + 1
101
- }),
102
- data.columns.map((column, columnIndex) => {
103
- const value = cells[columnIndex];
104
- const link = typeof value === "string" ? httpUrl(value) : void 0;
105
- return /* @__PURE__ */ jsx("td", { children: link ? /* @__PURE__ */ jsx(OutboundLink, { href: link }) : displayCell(value) }, column);
106
- }),
107
- resultColumns.map((column) => /* @__PURE__ */ jsx("td", {
108
- "data-result": "",
109
- children: result != null && typeof result === "object" && Object.hasOwn(result, column) && (column !== "summary" || typeof readExecutionResult(result[column]) !== "string") ? /* @__PURE__ */ jsx(ExecutionResult, {
110
- result: result[column],
111
- showSummary: false
112
- }) : /* @__PURE__ */ jsx("span", {
113
- className: "workspace-automation-table__hint",
114
- children: "—"
115
- })
116
- }, column)),
117
- showResult ? /* @__PURE__ */ jsx("td", {
118
- "data-result": "",
119
- children: row?.error ? executionErrorSummary(row.error) : result !== void 0 && (result == null || typeof result !== "object" || Array.isArray(result)) ? /* @__PURE__ */ jsx(ExecutionResult, {
120
- result,
121
- showSummary: false
122
- }) : result != null && typeof result === "object" && Object.entries(result).every(([key, value]) => key === "summary" && typeof readExecutionResult(value) === "string") ? executionResultSummary(result) : row?.summary && result === void 0 ? executionResultSummary(row.summary) : status
123
- }) : null
124
- ]
125
- }, index);
126
- }) })]
127
- })
128
- });
179
+ tabIndex: 0,
180
+ children: /* @__PURE__ */ jsxs("table", {
181
+ className: "workspace-automation-table__preview",
182
+ style: t2,
183
+ "aria-label": "Table rows",
184
+ children: [t7, t9]
185
+ })
186
+ });
187
+ $[24] = t2;
188
+ $[25] = t7;
189
+ $[26] = t9;
190
+ $[27] = t10;
191
+ } else t10 = $[27];
192
+ return t10;
129
193
  }
130
- function TableSourceSetup({ busy, paste, setPaste, workspacePath, setWorkspacePath, sourceRequest, setSourceRequest, requestPending, onRequestTableSource, onRequestSource, onLoad, path, args }) {
131
- return /* @__PURE__ */ jsxs("div", {
132
- className: "sigvelo-stack",
133
- children: [
134
- /* @__PURE__ */ jsxs(Field.Root, { children: [/* @__PURE__ */ jsxs(Field.Label, { children: [/* @__PURE__ */ jsx(FileIcon, {}), " Choose a table"] }), /* @__PURE__ */ jsx(Field.Control, {
135
- "aria-label": "Upload table",
136
- type: "file",
137
- accept: ".csv,.tsv,.xlsx,.xls,.ods",
138
- disabled: busy,
139
- onChange: (event) => {
140
- const file = event.currentTarget.files?.[0];
141
- if (file) onLoad({ input: { file } });
142
- }
143
- })] }),
144
- /* @__PURE__ */ jsxs(Collapsible.Root, { children: [/* @__PURE__ */ jsx(Collapsible.Trigger, { children: /* @__PURE__ */ jsxs("span", {
145
- className: "sigvelo-cluster",
146
- children: [/* @__PURE__ */ jsx(CopyIcon, {}), "Paste rows"]
147
- }) }), /* @__PURE__ */ jsx(Collapsible.Panel, {
148
- keepMounted: true,
149
- children: /* @__PURE__ */ jsxs("div", {
150
- className: "sigvelo-stack",
151
- children: [/* @__PURE__ */ jsxs(Field.Root, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "Rows copied from a spreadsheet" }), /* @__PURE__ */ jsx(Field.Control, {
152
- render: /* @__PURE__ */ jsx(Textarea, { rows: 5 }),
153
- value: paste,
154
- onChange: (event) => setPaste(event.currentTarget.value)
155
- })] }), /* @__PURE__ */ jsx(Button, {
156
- type: "button",
157
- size: "sm",
158
- disabled: busy || !paste.trim(),
159
- onClick: () => onLoad({ input: { text: paste } }),
160
- children: "Use rows"
161
- })]
162
- })
163
- })] }),
164
- onRequestTableSource ? /* @__PURE__ */ jsxs(Collapsible.Root, { children: [/* @__PURE__ */ jsx(Collapsible.Trigger, { children: /* @__PURE__ */ jsxs("span", {
165
- className: "sigvelo-cluster",
166
- children: [/* @__PURE__ */ jsx(LinkIcon, {}), "Use a sheet or app"]
167
- }) }), /* @__PURE__ */ jsx(Collapsible.Panel, {
168
- keepMounted: true,
169
- children: /* @__PURE__ */ jsxs("div", {
170
- className: "sigvelo-stack",
171
- children: [/* @__PURE__ */ jsxs(Field.Root, { children: [
172
- /* @__PURE__ */ jsx(Field.Label, { children: "Sheet link or description" }),
173
- /* @__PURE__ */ jsx(Field.Control, {
174
- value: sourceRequest,
175
- placeholder: "Paste a sheet link or describe the table in an open app",
176
- onChange: (event) => setSourceRequest(event.currentTarget.value)
177
- }),
178
- /* @__PURE__ */ jsx(Field.Description, { children: "Rook will open a conversation to prepare a preview for you to review." })
179
- ] }), /* @__PURE__ */ jsxs(Button, {
180
- type: "button",
181
- size: "sm",
182
- disabled: busy || !sourceRequest.trim(),
183
- onClick: () => void onRequestSource({
184
- request: sourceRequest.trim(),
185
- invocation: {
186
- path,
187
- args
188
- }
189
- }),
190
- children: [requestPending ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : /* @__PURE__ */ jsx(LinkIcon, {}), requestPending ? "Opening…" : "Ask Rook"]
191
- })]
192
- })
193
- })] }) : null,
194
- /* @__PURE__ */ jsxs(Collapsible.Root, { children: [/* @__PURE__ */ jsx(Collapsible.Trigger, { children: /* @__PURE__ */ jsxs("span", {
195
- className: "sigvelo-cluster",
196
- children: [/* @__PURE__ */ jsx(FolderIcon, {}), "Use a saved file"]
197
- }) }), /* @__PURE__ */ jsx(Collapsible.Panel, {
198
- keepMounted: true,
199
- children: /* @__PURE__ */ jsxs("div", {
200
- className: "sigvelo-stack",
201
- children: [/* @__PURE__ */ jsxs(Field.Root, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "Workspace file path" }), /* @__PURE__ */ jsx(Field.Control, {
202
- value: workspacePath,
203
- placeholder: "/workspace/customers.csv",
204
- onChange: (event) => setWorkspacePath(event.currentTarget.value)
205
- })] }), /* @__PURE__ */ jsx(Button, {
206
- type: "button",
207
- size: "sm",
208
- disabled: busy || !workspacePath.trim(),
209
- onClick: () => onLoad({ input: { path: workspacePath.trim() } }),
210
- children: "Use table"
211
- })]
212
- })
213
- })] })
214
- ]
215
- });
194
+ function _temp4(t0) {
195
+ const [key, value_1] = t0;
196
+ return key === "summary" && typeof readExecutionResult(value_1) === "string";
197
+ }
198
+ function _temp3(value) {
199
+ return !isBlankCell(value);
200
+ }
201
+ function _temp2(column_0) {
202
+ return /* @__PURE__ */ jsx("th", {
203
+ scope: "col",
204
+ "data-result": "",
205
+ children: executionResultLabel(column_0)
206
+ }, column_0);
207
+ }
208
+ function _temp(column) {
209
+ return /* @__PURE__ */ jsx("th", {
210
+ scope: "col",
211
+ children: column
212
+ }, column);
213
+ }
214
+ function TableSourceSetup(t0) {
215
+ const $ = c(59);
216
+ const { busy, paste, setPaste, workspacePath, setWorkspacePath, sourceRequest, setSourceRequest, requestPending, onRequestTableSource, onRequestSource, onLoad, path, args } = t0;
217
+ let t1;
218
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
219
+ t1 = /* @__PURE__ */ jsxs(Field.Label, { children: [/* @__PURE__ */ jsx(FileIcon, {}), " Choose a table"] });
220
+ $[0] = t1;
221
+ } else t1 = $[0];
222
+ let t2;
223
+ if ($[1] !== onLoad) {
224
+ t2 = (event) => {
225
+ const file = event.currentTarget.files?.[0];
226
+ if (file) onLoad({ input: { file } });
227
+ };
228
+ $[1] = onLoad;
229
+ $[2] = t2;
230
+ } else t2 = $[2];
231
+ let t3;
232
+ if ($[3] !== busy || $[4] !== t2) {
233
+ t3 = /* @__PURE__ */ jsxs(Field.Root, { children: [t1, /* @__PURE__ */ jsx(Field.Control, {
234
+ "aria-label": "Upload table",
235
+ type: "file",
236
+ accept: ".csv,.tsv,.xlsx,.xls,.ods",
237
+ disabled: busy,
238
+ onChange: t2
239
+ })] });
240
+ $[3] = busy;
241
+ $[4] = t2;
242
+ $[5] = t3;
243
+ } else t3 = $[5];
244
+ let t4;
245
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
246
+ t4 = /* @__PURE__ */ jsx(Collapsible.Trigger, { children: /* @__PURE__ */ jsxs("span", {
247
+ className: "sigvelo-cluster",
248
+ children: [/* @__PURE__ */ jsx(CopyIcon, {}), "Paste rows"]
249
+ }) });
250
+ $[6] = t4;
251
+ } else t4 = $[6];
252
+ let t5;
253
+ if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
254
+ t5 = /* @__PURE__ */ jsx(Field.Label, { children: "Rows copied from a spreadsheet" });
255
+ $[7] = t5;
256
+ } else t5 = $[7];
257
+ let t6;
258
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
259
+ t6 = /* @__PURE__ */ jsx(Textarea, { rows: 5 });
260
+ $[8] = t6;
261
+ } else t6 = $[8];
262
+ let t7;
263
+ if ($[9] !== setPaste) {
264
+ t7 = (event_0) => setPaste(event_0.currentTarget.value);
265
+ $[9] = setPaste;
266
+ $[10] = t7;
267
+ } else t7 = $[10];
268
+ let t8;
269
+ if ($[11] !== paste || $[12] !== t7) {
270
+ t8 = /* @__PURE__ */ jsxs(Field.Root, { children: [t5, /* @__PURE__ */ jsx(Field.Control, {
271
+ render: t6,
272
+ value: paste,
273
+ onChange: t7
274
+ })] });
275
+ $[11] = paste;
276
+ $[12] = t7;
277
+ $[13] = t8;
278
+ } else t8 = $[13];
279
+ let t9;
280
+ if ($[14] !== busy || $[15] !== paste) {
281
+ t9 = busy || !paste.trim();
282
+ $[14] = busy;
283
+ $[15] = paste;
284
+ $[16] = t9;
285
+ } else t9 = $[16];
286
+ let t10;
287
+ if ($[17] !== onLoad || $[18] !== paste) {
288
+ t10 = () => onLoad({ input: { text: paste } });
289
+ $[17] = onLoad;
290
+ $[18] = paste;
291
+ $[19] = t10;
292
+ } else t10 = $[19];
293
+ let t11;
294
+ if ($[20] !== t10 || $[21] !== t9) {
295
+ t11 = /* @__PURE__ */ jsx(Button, {
296
+ type: "button",
297
+ size: "sm",
298
+ disabled: t9,
299
+ onClick: t10,
300
+ children: "Use rows"
301
+ });
302
+ $[20] = t10;
303
+ $[21] = t9;
304
+ $[22] = t11;
305
+ } else t11 = $[22];
306
+ let t12;
307
+ if ($[23] !== t11 || $[24] !== t8) {
308
+ t12 = /* @__PURE__ */ jsxs(Collapsible.Root, { children: [t4, /* @__PURE__ */ jsx(Collapsible.Panel, {
309
+ keepMounted: true,
310
+ children: /* @__PURE__ */ jsxs("div", {
311
+ className: "sigvelo-stack",
312
+ children: [t8, t11]
313
+ })
314
+ })] });
315
+ $[23] = t11;
316
+ $[24] = t8;
317
+ $[25] = t12;
318
+ } else t12 = $[25];
319
+ let t13;
320
+ if ($[26] !== args || $[27] !== busy || $[28] !== onRequestSource || $[29] !== onRequestTableSource || $[30] !== path || $[31] !== requestPending || $[32] !== setSourceRequest || $[33] !== sourceRequest) {
321
+ t13 = onRequestTableSource ? /* @__PURE__ */ jsxs(Collapsible.Root, { children: [/* @__PURE__ */ jsx(Collapsible.Trigger, { children: /* @__PURE__ */ jsxs("span", {
322
+ className: "sigvelo-cluster",
323
+ children: [/* @__PURE__ */ jsx(LinkIcon, {}), "Use a sheet or app"]
324
+ }) }), /* @__PURE__ */ jsx(Collapsible.Panel, {
325
+ keepMounted: true,
326
+ children: /* @__PURE__ */ jsxs("div", {
327
+ className: "sigvelo-stack",
328
+ children: [/* @__PURE__ */ jsxs(Field.Root, { children: [
329
+ /* @__PURE__ */ jsx(Field.Label, { children: "Sheet link or description" }),
330
+ /* @__PURE__ */ jsx(Field.Control, {
331
+ value: sourceRequest,
332
+ placeholder: "Paste a sheet link or describe the table in an open app",
333
+ onChange: (event_1) => setSourceRequest(event_1.currentTarget.value)
334
+ }),
335
+ /* @__PURE__ */ jsx(Field.Description, { children: "Rook will open a conversation to prepare a preview for you to review." })
336
+ ] }), /* @__PURE__ */ jsxs(Button, {
337
+ type: "button",
338
+ size: "sm",
339
+ disabled: busy || !sourceRequest.trim(),
340
+ onClick: () => void onRequestSource({
341
+ request: sourceRequest.trim(),
342
+ invocation: {
343
+ path,
344
+ args
345
+ }
346
+ }),
347
+ children: [requestPending ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : /* @__PURE__ */ jsx(LinkIcon, {}), requestPending ? "Opening…" : "Ask Rook"]
348
+ })]
349
+ })
350
+ })] }) : null;
351
+ $[26] = args;
352
+ $[27] = busy;
353
+ $[28] = onRequestSource;
354
+ $[29] = onRequestTableSource;
355
+ $[30] = path;
356
+ $[31] = requestPending;
357
+ $[32] = setSourceRequest;
358
+ $[33] = sourceRequest;
359
+ $[34] = t13;
360
+ } else t13 = $[34];
361
+ let t14;
362
+ if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
363
+ t14 = /* @__PURE__ */ jsx(Collapsible.Trigger, { children: /* @__PURE__ */ jsxs("span", {
364
+ className: "sigvelo-cluster",
365
+ children: [/* @__PURE__ */ jsx(FolderIcon, {}), "Use a saved file"]
366
+ }) });
367
+ $[35] = t14;
368
+ } else t14 = $[35];
369
+ let t15;
370
+ if ($[36] === Symbol.for("react.memo_cache_sentinel")) {
371
+ t15 = /* @__PURE__ */ jsx(Field.Label, { children: "Workspace file path" });
372
+ $[36] = t15;
373
+ } else t15 = $[36];
374
+ let t16;
375
+ if ($[37] !== setWorkspacePath) {
376
+ t16 = (event_2) => setWorkspacePath(event_2.currentTarget.value);
377
+ $[37] = setWorkspacePath;
378
+ $[38] = t16;
379
+ } else t16 = $[38];
380
+ let t17;
381
+ if ($[39] !== t16 || $[40] !== workspacePath) {
382
+ t17 = /* @__PURE__ */ jsxs(Field.Root, { children: [t15, /* @__PURE__ */ jsx(Field.Control, {
383
+ value: workspacePath,
384
+ placeholder: "/workspace/customers.csv",
385
+ onChange: t16
386
+ })] });
387
+ $[39] = t16;
388
+ $[40] = workspacePath;
389
+ $[41] = t17;
390
+ } else t17 = $[41];
391
+ let t18;
392
+ if ($[42] !== busy || $[43] !== workspacePath) {
393
+ t18 = busy || !workspacePath.trim();
394
+ $[42] = busy;
395
+ $[43] = workspacePath;
396
+ $[44] = t18;
397
+ } else t18 = $[44];
398
+ let t19;
399
+ if ($[45] !== onLoad || $[46] !== workspacePath) {
400
+ t19 = () => onLoad({ input: { path: workspacePath.trim() } });
401
+ $[45] = onLoad;
402
+ $[46] = workspacePath;
403
+ $[47] = t19;
404
+ } else t19 = $[47];
405
+ let t20;
406
+ if ($[48] !== t18 || $[49] !== t19) {
407
+ t20 = /* @__PURE__ */ jsx(Button, {
408
+ type: "button",
409
+ size: "sm",
410
+ disabled: t18,
411
+ onClick: t19,
412
+ children: "Use table"
413
+ });
414
+ $[48] = t18;
415
+ $[49] = t19;
416
+ $[50] = t20;
417
+ } else t20 = $[50];
418
+ let t21;
419
+ if ($[51] !== t17 || $[52] !== t20) {
420
+ t21 = /* @__PURE__ */ jsxs(Collapsible.Root, { children: [t14, /* @__PURE__ */ jsx(Collapsible.Panel, {
421
+ keepMounted: true,
422
+ children: /* @__PURE__ */ jsxs("div", {
423
+ className: "sigvelo-stack",
424
+ children: [t17, t20]
425
+ })
426
+ })] });
427
+ $[51] = t17;
428
+ $[52] = t20;
429
+ $[53] = t21;
430
+ } else t21 = $[53];
431
+ let t22;
432
+ if ($[54] !== t12 || $[55] !== t13 || $[56] !== t21 || $[57] !== t3) {
433
+ t22 = /* @__PURE__ */ jsxs("div", {
434
+ className: "sigvelo-stack",
435
+ children: [
436
+ t3,
437
+ t12,
438
+ t13,
439
+ t21
440
+ ]
441
+ });
442
+ $[54] = t12;
443
+ $[55] = t13;
444
+ $[56] = t21;
445
+ $[57] = t3;
446
+ $[58] = t22;
447
+ } else t22 = $[58];
448
+ return t22;
216
449
  }
217
450
  function tableView({ prepared, loaded, data, source, parameters, columns, args }) {
218
451
  const rowCount = prepared && !loaded ? prepared.rows.length : data?.rows.filter((row) => row.some((cell) => !isBlankCell(cell))).length ?? 0;
@@ -252,154 +485,252 @@ function tableView({ prepared, loaded, data, source, parameters, columns, args }
252
485
  })
253
486
  };
254
487
  }
255
- function TableReadOptions({ loaded, loadInput, loadOptions, setLoadOptions, busy, onLoad }) {
488
+ function TableReadOptions(t0) {
489
+ const $ = c(17);
490
+ const { loaded, loadInput, loadOptions, setLoadOptions, busy, onLoad } = t0;
256
491
  const headerId = React.useId();
257
- return /* @__PURE__ */ jsxs(Fragment, { children: [loaded?.sheets && loaded.sheets.length > 1 && loadInput ? /* @__PURE__ */ jsx(OptionSelect, {
258
- "aria-label": "Worksheet",
259
- value: "path" in loaded.source ? loaded.source.sheet ?? loaded.sheets[0] : loaded.sheets[0],
260
- options: loaded.sheets.map((sheet) => ({
261
- value: sheet,
262
- label: sheet
263
- })),
264
- disabled: busy,
265
- onValueChange: (sheet) => onLoad({
266
- input: loadInput,
267
- options: {
268
- ...loadOptions,
269
- sheet
270
- }
271
- })
272
- }) : null, loadInput ? /* @__PURE__ */ jsxs(Collapsible.Root, { children: [/* @__PURE__ */ jsx(Collapsible.Trigger, { children: /* @__PURE__ */ jsxs("span", {
273
- className: "sigvelo-cluster",
274
- children: [/* @__PURE__ */ jsx(WrenchIcon, {}), "Reading options"]
275
- }) }), /* @__PURE__ */ jsx(Collapsible.Panel, {
276
- keepMounted: true,
277
- children: /* @__PURE__ */ jsxs("div", {
278
- className: "sigvelo-stack",
279
- children: [
280
- /* @__PURE__ */ jsxs("div", {
281
- className: "sigvelo-cluster",
282
- children: [/* @__PURE__ */ jsx(Checkbox.Root, {
283
- id: headerId,
284
- checked: loadOptions.header !== false,
492
+ let t1;
493
+ if ($[0] !== busy || $[1] !== loadInput || $[2] !== loadOptions || $[3] !== loaded || $[4] !== onLoad) {
494
+ t1 = loaded?.sheets && loaded.sheets.length > 1 && loadInput ? /* @__PURE__ */ jsx(OptionSelect, {
495
+ "aria-label": "Worksheet",
496
+ value: "path" in loaded.source ? loaded.source.sheet ?? loaded.sheets[0] : loaded.sheets[0],
497
+ options: loaded.sheets.map(_temp5),
498
+ disabled: busy,
499
+ onValueChange: (sheet_0) => onLoad({
500
+ input: loadInput,
501
+ options: {
502
+ ...loadOptions,
503
+ sheet: sheet_0
504
+ }
505
+ })
506
+ }) : null;
507
+ $[0] = busy;
508
+ $[1] = loadInput;
509
+ $[2] = loadOptions;
510
+ $[3] = loaded;
511
+ $[4] = onLoad;
512
+ $[5] = t1;
513
+ } else t1 = $[5];
514
+ let t2;
515
+ if ($[6] !== busy || $[7] !== headerId || $[8] !== loadInput || $[9] !== loadOptions || $[10] !== loaded?.sheets?.length || $[11] !== onLoad || $[12] !== setLoadOptions) {
516
+ t2 = loadInput ? /* @__PURE__ */ jsxs(Collapsible.Root, { children: [/* @__PURE__ */ jsx(Collapsible.Trigger, { children: /* @__PURE__ */ jsxs("span", {
517
+ className: "sigvelo-cluster",
518
+ children: [/* @__PURE__ */ jsx(WrenchIcon, {}), "Reading options"]
519
+ }) }), /* @__PURE__ */ jsx(Collapsible.Panel, {
520
+ keepMounted: true,
521
+ children: /* @__PURE__ */ jsxs("div", {
522
+ className: "sigvelo-stack",
523
+ children: [
524
+ /* @__PURE__ */ jsxs("div", {
525
+ className: "sigvelo-cluster",
526
+ children: [/* @__PURE__ */ jsx(Checkbox.Root, {
527
+ id: headerId,
528
+ checked: loadOptions.header !== false,
529
+ disabled: busy,
530
+ onCheckedChange: (header) => {
531
+ if (typeof header === "boolean") onLoad({
532
+ input: loadInput,
533
+ options: {
534
+ ...loadOptions,
535
+ header
536
+ }
537
+ });
538
+ },
539
+ children: /* @__PURE__ */ jsx(Checkbox.Indicator, {})
540
+ }), /* @__PURE__ */ jsx("label", {
541
+ htmlFor: headerId,
542
+ children: "First row contains column names"
543
+ })]
544
+ }),
545
+ loadInput && ("file" in loadInput ? /\.(?:xlsx?|ods)$/iu.test(loadInput.file.name) : "path" in loadInput && /\.(?:xlsx?|ods)$/iu.test(loadInput.path)) && !loaded?.sheets?.length ? /* @__PURE__ */ jsxs(Field.Root, { children: [
546
+ /* @__PURE__ */ jsx(Field.Label, { children: "Worksheet" }),
547
+ /* @__PURE__ */ jsx(Field.Control, {
548
+ "aria-label": "Worksheet",
549
+ placeholder: "First worksheet",
550
+ value: loadOptions.sheet ?? "",
551
+ disabled: busy,
552
+ onChange: (event) => {
553
+ const sheet_1 = event.currentTarget.value;
554
+ setLoadOptions((current) => ({
555
+ ...current,
556
+ sheet: sheet_1 || void 0
557
+ }));
558
+ }
559
+ }),
560
+ /* @__PURE__ */ jsx(Button, {
561
+ type: "button",
562
+ size: "sm",
563
+ disabled: busy,
564
+ onClick: () => onLoad({
565
+ input: loadInput,
566
+ options: loadOptions
567
+ }),
568
+ children: "Read table"
569
+ })
570
+ ] }) : null,
571
+ /* @__PURE__ */ jsx(OptionSelect, {
572
+ "aria-label": "Column separator",
573
+ value: loadOptions.delimiter ?? "default",
285
574
  disabled: busy,
286
- onCheckedChange: (header) => {
287
- if (typeof header === "boolean") onLoad({
575
+ options: [
576
+ {
577
+ value: "default",
578
+ label: "Default separator"
579
+ },
580
+ {
581
+ value: ",",
582
+ label: "Comma"
583
+ },
584
+ {
585
+ value: " ",
586
+ label: "Tab"
587
+ },
588
+ {
589
+ value: ";",
590
+ label: "Semicolon"
591
+ }
592
+ ],
593
+ onValueChange: (delimiter) => {
594
+ if (delimiter === "," || delimiter === " " || delimiter === ";") onLoad({
288
595
  input: loadInput,
289
596
  options: {
290
597
  ...loadOptions,
291
- header
598
+ delimiter
292
599
  }
293
600
  });
294
- },
295
- children: /* @__PURE__ */ jsx(Checkbox.Indicator, {})
296
- }), /* @__PURE__ */ jsx("label", {
297
- htmlFor: headerId,
298
- children: "First row contains column names"
299
- })]
300
- }),
301
- loadInput && ("file" in loadInput ? /\.(?:xlsx?|ods)$/iu.test(loadInput.file.name) : "path" in loadInput && /\.(?:xlsx?|ods)$/iu.test(loadInput.path)) && !loaded?.sheets?.length ? /* @__PURE__ */ jsxs(Field.Root, { children: [
302
- /* @__PURE__ */ jsx(Field.Label, { children: "Worksheet" }),
303
- /* @__PURE__ */ jsx(Field.Control, {
304
- "aria-label": "Worksheet",
305
- placeholder: "First worksheet",
306
- value: loadOptions.sheet ?? "",
307
- disabled: busy,
308
- onChange: (event) => {
309
- const sheet = event.currentTarget.value;
310
- setLoadOptions((current) => ({
311
- ...current,
312
- sheet: sheet || void 0
313
- }));
314
- }
315
- }),
316
- /* @__PURE__ */ jsx(Button, {
317
- type: "button",
318
- size: "sm",
319
- disabled: busy,
320
- onClick: () => onLoad({
321
- input: loadInput,
322
- options: loadOptions
323
- }),
324
- children: "Read table"
325
- })
326
- ] }) : null,
327
- /* @__PURE__ */ jsx(OptionSelect, {
328
- "aria-label": "Column separator",
329
- value: loadOptions.delimiter ?? "default",
330
- disabled: busy,
331
- options: [
332
- {
333
- value: "default",
334
- label: "Default separator"
335
- },
336
- {
337
- value: ",",
338
- label: "Comma"
339
- },
340
- {
341
- value: " ",
342
- label: "Tab"
343
- },
344
- {
345
- value: ";",
346
- label: "Semicolon"
347
- }
348
- ],
349
- onValueChange: (delimiter) => {
350
- if (delimiter === "," || delimiter === " " || delimiter === ";") onLoad({
351
- input: loadInput,
352
- options: {
353
- ...loadOptions,
354
- delimiter
601
+ else {
602
+ const options = { ...loadOptions };
603
+ delete options.delimiter;
604
+ onLoad({
605
+ input: loadInput,
606
+ options
607
+ });
355
608
  }
356
- });
357
- else {
358
- const options = { ...loadOptions };
359
- delete options.delimiter;
360
- onLoad({
361
- input: loadInput,
362
- options
363
- });
364
609
  }
365
- }
366
- })
367
- ]
368
- })
369
- })] }) : null] });
610
+ })
611
+ ]
612
+ })
613
+ })] }) : null;
614
+ $[6] = busy;
615
+ $[7] = headerId;
616
+ $[8] = loadInput;
617
+ $[9] = loadOptions;
618
+ $[10] = loaded?.sheets?.length;
619
+ $[11] = onLoad;
620
+ $[12] = setLoadOptions;
621
+ $[13] = t2;
622
+ } else t2 = $[13];
623
+ let t3;
624
+ if ($[14] !== t1 || $[15] !== t2) {
625
+ t3 = /* @__PURE__ */ jsxs(Fragment, { children: [t1, t2] });
626
+ $[14] = t1;
627
+ $[15] = t2;
628
+ $[16] = t3;
629
+ } else t3 = $[16];
630
+ return t3;
631
+ }
632
+ function _temp5(sheet) {
633
+ return {
634
+ value: sheet,
635
+ label: sheet
636
+ };
370
637
  }
371
- function TableSelectedRow({ selectedRow, rowCount, selectedTrace, graph, fetching, onClose }) {
372
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
373
- className: "workspace-automation-table__source",
374
- children: [/* @__PURE__ */ jsxs(Button, {
638
+ function TableSelectedRow(t0) {
639
+ const $ = c(19);
640
+ const { selectedRow, rowCount, selectedTrace, graph, fetching, onClose } = t0;
641
+ let t1;
642
+ if ($[0] !== onClose) {
643
+ t1 = () => onClose();
644
+ $[0] = onClose;
645
+ $[1] = t1;
646
+ } else t1 = $[1];
647
+ let t2;
648
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
649
+ t2 = /* @__PURE__ */ jsx(ArrowLeftIcon, {});
650
+ $[2] = t2;
651
+ } else t2 = $[2];
652
+ let t3;
653
+ if ($[3] !== rowCount || $[4] !== t1) {
654
+ t3 = /* @__PURE__ */ jsxs(Button, {
375
655
  type: "button",
376
656
  variant: "ghost",
377
657
  color: "neutral",
378
- onClick: () => onClose(),
658
+ onClick: t1,
379
659
  children: [
380
- /* @__PURE__ */ jsx(ArrowLeftIcon, {}),
660
+ t2,
381
661
  "All ",
382
662
  rowCount,
383
663
  " rows"
384
664
  ]
385
- }), /* @__PURE__ */ jsxs("span", { children: ["Row ", selectedRow.index + 1] })]
386
- }), selectedTrace ? /* @__PURE__ */ jsx(ExecutionBoard, {
387
- className: "workspace-automation-workbench__board",
388
- graph: selectedTrace.graph,
389
- trace: selectedTrace
390
- }) : graph && selectedRow.status === "waiting" ? /* @__PURE__ */ jsx(ExecutionBoard, {
391
- className: "workspace-automation-workbench__board",
392
- graph
393
- }) : /* @__PURE__ */ jsx("p", {
394
- role: "status",
395
- children: fetching ? "Loading row steps…" : "This row’s steps are not available yet."
396
- })] });
665
+ });
666
+ $[3] = rowCount;
667
+ $[4] = t1;
668
+ $[5] = t3;
669
+ } else t3 = $[5];
670
+ const t4 = selectedRow.index + 1;
671
+ let t5;
672
+ if ($[6] !== t4) {
673
+ t5 = /* @__PURE__ */ jsxs("span", { children: ["Row ", t4] });
674
+ $[6] = t4;
675
+ $[7] = t5;
676
+ } else t5 = $[7];
677
+ let t6;
678
+ if ($[8] !== t3 || $[9] !== t5) {
679
+ t6 = /* @__PURE__ */ jsxs("div", {
680
+ className: "workspace-automation-table__source",
681
+ children: [t3, t5]
682
+ });
683
+ $[8] = t3;
684
+ $[9] = t5;
685
+ $[10] = t6;
686
+ } else t6 = $[10];
687
+ let t7;
688
+ if ($[11] !== fetching || $[12] !== graph || $[13] !== selectedRow.status || $[14] !== selectedTrace) {
689
+ t7 = selectedTrace ? /* @__PURE__ */ jsx(ExecutionBoard, {
690
+ className: "workspace-automation-workbench__board",
691
+ graph: selectedTrace.graph,
692
+ trace: selectedTrace
693
+ }) : graph && selectedRow.status === "waiting" ? /* @__PURE__ */ jsx(ExecutionBoard, {
694
+ className: "workspace-automation-workbench__board",
695
+ graph
696
+ }) : /* @__PURE__ */ jsx("p", {
697
+ role: "status",
698
+ children: fetching ? "Loading row steps…" : "This row’s steps are not available yet."
699
+ });
700
+ $[11] = fetching;
701
+ $[12] = graph;
702
+ $[13] = selectedRow.status;
703
+ $[14] = selectedTrace;
704
+ $[15] = t7;
705
+ } else t7 = $[15];
706
+ let t8;
707
+ if ($[16] !== t6 || $[17] !== t7) {
708
+ t8 = /* @__PURE__ */ jsxs(Fragment, { children: [t6, t7] });
709
+ $[16] = t6;
710
+ $[17] = t7;
711
+ $[18] = t8;
712
+ } else t8 = $[18];
713
+ return t8;
397
714
  }
398
715
  /** Table form state, seeded from the host's receipt. A receipt for another automation resets it. */
399
716
  function useTableReceipt(execution, parameters) {
717
+ const $ = c(11);
400
718
  const [loaded, setLoaded] = React.useState();
401
- const [columns, setColumns] = React.useState(() => execution?.invocation.table?.columns ?? {});
402
- const [args, setArgs] = React.useState(() => execution?.invocation.args ?? Object.fromEntries(parameters.flatMap((parameter) => parameter.value === void 0 ? [] : [[parameter.name, parameter.value]])));
719
+ let t0;
720
+ if ($[0] !== execution?.invocation) {
721
+ t0 = () => execution?.invocation.table?.columns ?? {};
722
+ $[0] = execution?.invocation;
723
+ $[1] = t0;
724
+ } else t0 = $[1];
725
+ const [columns, setColumns] = React.useState(t0);
726
+ let t1;
727
+ if ($[2] !== execution?.invocation || $[3] !== parameters) {
728
+ t1 = () => execution?.invocation.args ?? Object.fromEntries(parameters.flatMap(_temp6));
729
+ $[2] = execution?.invocation;
730
+ $[3] = parameters;
731
+ $[4] = t1;
732
+ } else t1 = $[4];
733
+ const [args, setArgs] = React.useState(t1);
403
734
  const [prepared, setPrepared] = React.useState(execution);
404
735
  const [seenExecution, setSeenExecution] = React.useState(execution);
405
736
  const [selectedIndex, setSelectedIndex] = React.useState();
@@ -415,23 +746,43 @@ function useTableReceipt(execution, parameters) {
415
746
  }
416
747
  }
417
748
  }
418
- return {
419
- loaded,
420
- setLoaded,
421
- columns,
422
- setColumns,
423
- args,
424
- setArgs,
425
- prepared,
426
- setPrepared,
427
- selectedIndex,
428
- setSelectedIndex
429
- };
749
+ let t2;
750
+ if ($[5] !== args || $[6] !== columns || $[7] !== loaded || $[8] !== prepared || $[9] !== selectedIndex) {
751
+ t2 = {
752
+ loaded,
753
+ setLoaded,
754
+ columns,
755
+ setColumns,
756
+ args,
757
+ setArgs,
758
+ prepared,
759
+ setPrepared,
760
+ selectedIndex,
761
+ setSelectedIndex
762
+ };
763
+ $[5] = args;
764
+ $[6] = columns;
765
+ $[7] = loaded;
766
+ $[8] = prepared;
767
+ $[9] = selectedIndex;
768
+ $[10] = t2;
769
+ } else t2 = $[10];
770
+ return t2;
771
+ }
772
+ function _temp6(parameter) {
773
+ return parameter.value === void 0 ? [] : [[parameter.name, parameter.value]];
430
774
  }
431
- function useTableExecution({ path, parameters, execution, trace, onLoadTable, onRequestTableSource, onPrepareTable, onRunTable, onStopTable, onLoadTableTrace, onScheduleTable }) {
775
+ function useTableExecution(t0) {
776
+ const $ = c(105);
777
+ const { path, parameters, execution, trace, onLoadTable, onRequestTableSource, onPrepareTable, onRunTable, onStopTable, onLoadTableTrace, onScheduleTable } = t0;
432
778
  const { loaded, setLoaded, columns, setColumns, args, setArgs, prepared, setPrepared, selectedIndex, setSelectedIndex } = useTableReceipt(execution, parameters);
433
779
  const [loadInput, setLoadInput] = React.useState();
434
- const [loadOptions, setLoadOptions] = React.useState({});
780
+ let t1;
781
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
782
+ t1 = {};
783
+ $[0] = t1;
784
+ } else t1 = $[0];
785
+ const [loadOptions, setLoadOptions] = React.useState(t1);
435
786
  const [paste, setPaste] = React.useState("");
436
787
  const [workspacePath, setWorkspacePath] = React.useState("");
437
788
  const [sourceRequest, setSourceRequest] = React.useState("");
@@ -442,60 +793,133 @@ function useTableExecution({ path, parameters, execution, trace, onLoadTable, on
442
793
  const source = loaded?.source ?? prepared?.invocation.table?.source;
443
794
  const active = prepared?.status === "running";
444
795
  const hasRun = prepared !== void 0 && prepared.status !== "ready" && !loaded;
445
- const selectedRow = selectedIndex === void 0 ? void 0 : prepared?.rows.find((row) => row.index === selectedIndex);
796
+ let t2;
797
+ if ($[1] !== prepared?.rows || $[2] !== selectedIndex) {
798
+ t2 = selectedIndex === void 0 ? void 0 : prepared?.rows.find((row) => row.index === selectedIndex);
799
+ $[1] = prepared?.rows;
800
+ $[2] = selectedIndex;
801
+ $[3] = t2;
802
+ } else t2 = $[3];
803
+ const selectedRow = t2;
446
804
  const selectedLive = selectedRow?.executionId === trace?.executionId ? trace : void 0;
447
- const savedTrace = useQuery({
448
- queryKey: [
805
+ const t3 = prepared?.path;
806
+ const t4 = selectedRow?.tracePath;
807
+ let t5;
808
+ if ($[4] !== t3 || $[5] !== t4) {
809
+ t5 = [
449
810
  "workspace-table-row",
450
- prepared?.path,
451
- selectedRow?.tracePath
452
- ],
453
- enabled: Boolean(selectedRow?.tracePath && onLoadTableTrace && !selectedLive),
454
- queryFn: async () => {
811
+ t3,
812
+ t4
813
+ ];
814
+ $[4] = t3;
815
+ $[5] = t4;
816
+ $[6] = t5;
817
+ } else t5 = $[6];
818
+ const t6 = Boolean(selectedRow?.tracePath && onLoadTableTrace && !selectedLive);
819
+ let t7;
820
+ if ($[7] !== onLoadTableTrace || $[8] !== selectedRow) {
821
+ t7 = async () => {
455
822
  if (!selectedRow?.tracePath || !onLoadTableTrace) throw new Error("This row’s steps are not available yet.");
456
823
  return onLoadTableTrace(selectedRow.tracePath);
457
- }
458
- });
824
+ };
825
+ $[7] = onLoadTableTrace;
826
+ $[8] = selectedRow;
827
+ $[9] = t7;
828
+ } else t7 = $[9];
829
+ let t8;
830
+ if ($[10] !== t5 || $[11] !== t6 || $[12] !== t7) {
831
+ t8 = {
832
+ queryKey: t5,
833
+ enabled: t6,
834
+ queryFn: t7
835
+ };
836
+ $[10] = t5;
837
+ $[11] = t6;
838
+ $[12] = t7;
839
+ $[13] = t8;
840
+ } else t8 = $[13];
841
+ const savedTrace = useQuery(t8);
459
842
  const selectedTrace = selectedLive ?? savedTrace.data;
460
- const load = useMutation({
461
- onMutate: ({ input, options }) => {
843
+ let t9;
844
+ if ($[14] !== setLoaded || $[15] !== setPrepared) {
845
+ t9 = (t10) => {
846
+ const { input, options } = t10;
462
847
  setLoadInput(input);
463
848
  setLoadOptions(options ?? {});
464
849
  setLoaded(void 0);
465
850
  setPrepared(void 0);
466
851
  setSourceChanged(false);
467
- },
468
- mutationFn: async ({ input, options }) => {
852
+ };
853
+ $[14] = setLoaded;
854
+ $[15] = setPrepared;
855
+ $[16] = t9;
856
+ } else t9 = $[16];
857
+ let t10;
858
+ if ($[17] !== onLoadTable) {
859
+ t10 = async (t11) => {
860
+ const { input: input_0, options: options_0 } = t11;
469
861
  if (!onLoadTable) throw new Error("Table loading is unavailable.");
470
- return onLoadTable(input, options);
471
- },
472
- onSuccess: (value) => {
862
+ return onLoadTable(input_0, options_0);
863
+ };
864
+ $[17] = onLoadTable;
865
+ $[18] = t10;
866
+ } else t10 = $[18];
867
+ let t11;
868
+ if ($[19] !== parameters || $[20] !== setArgs || $[21] !== setColumns || $[22] !== setLoaded || $[23] !== setPrepared || $[24] !== setSelectedIndex) {
869
+ t11 = (value) => {
473
870
  setLoaded(value);
474
871
  if ("path" in value.source) setLoadInput({ path: value.source.path });
475
872
  const matched = defaultColumns(value.data, parameters);
476
873
  setColumns(matched);
477
- setArgs((current) => Object.fromEntries(Object.entries(current).filter(([name]) => !matched[name])));
874
+ setArgs((current) => Object.fromEntries(Object.entries(current).filter((t12) => {
875
+ const [name] = t12;
876
+ return !matched[name];
877
+ })));
478
878
  setPrepared(void 0);
479
879
  setSelectedIndex(void 0);
480
- }
481
- });
482
- async function requestSource(input) {
483
- if (!onRequestTableSource) return;
484
- setRequestPending(true);
485
- setRequestError(void 0);
486
- try {
487
- await onRequestTableSource({
880
+ };
881
+ $[19] = parameters;
882
+ $[20] = setArgs;
883
+ $[21] = setColumns;
884
+ $[22] = setLoaded;
885
+ $[23] = setPrepared;
886
+ $[24] = setSelectedIndex;
887
+ $[25] = t11;
888
+ } else t11 = $[25];
889
+ let t12;
890
+ if ($[26] !== t10 || $[27] !== t11 || $[28] !== t9) {
891
+ t12 = {
892
+ onMutate: t9,
893
+ mutationFn: t10,
894
+ onSuccess: t11
895
+ };
896
+ $[26] = t10;
897
+ $[27] = t11;
898
+ $[28] = t9;
899
+ $[29] = t12;
900
+ } else t12 = $[29];
901
+ const load = useMutation(t12);
902
+ let t13;
903
+ if ($[30] !== onRequestTableSource || $[31] !== path) {
904
+ t13 = async function requestSource(input_1) {
905
+ if (!onRequestTableSource) return;
906
+ setRequestPending(true);
907
+ setRequestError(void 0);
908
+ const requested = await attempt(() => onRequestTableSource({
488
909
  path,
489
- ...input
490
- });
491
- } catch (error) {
492
- setRequestError(error);
493
- } finally {
910
+ ...input_1
911
+ }));
912
+ if (!requested.ok) setRequestError(requested.error);
494
913
  setRequestPending(false);
495
- }
496
- }
497
- const run = useMutation({
498
- mutationFn: async () => {
914
+ };
915
+ $[30] = onRequestTableSource;
916
+ $[31] = path;
917
+ $[32] = t13;
918
+ } else t13 = $[32];
919
+ const requestSource = t13;
920
+ let t14;
921
+ if ($[33] !== args || $[34] !== columns || $[35] !== data || $[36] !== loaded || $[37] !== onPrepareTable || $[38] !== onRunTable || $[39] !== path || $[40] !== prepared || $[41] !== setLoaded || $[42] !== setPrepared || $[43] !== source) {
922
+ t14 = async () => {
499
923
  if (!onRunTable) throw new Error("Running is no longer available.");
500
924
  let next = prepared;
501
925
  const refreshing = next !== void 0 && next.status !== "ready" && !loaded;
@@ -518,64 +942,92 @@ function useTableExecution({ path, parameters, execution, trace, onLoadTable, on
518
942
  }
519
943
  setSourceChanged(false);
520
944
  return onRunTable(next.path);
521
- },
522
- onSuccess: (next) => setPrepared((current) => current?.path === next.path && current.status !== "ready" && next.status === "running" ? current : next)
523
- });
524
- const stop = useMutation({ mutationFn: async () => {
525
- if (prepared && onStopTable) await onStopTable(prepared.path);
526
- } });
527
- const schedule = useMutation({ mutationFn: async () => {
528
- if (!source || !onScheduleTable) throw new Error("Choose a table first.");
529
- await onScheduleTable({
530
- path,
531
- args,
532
- table: {
533
- source,
534
- columns
535
- }
536
- });
537
- } });
538
- return {
539
- loaded,
540
- setLoaded,
541
- loadInput,
542
- loadOptions,
543
- setLoadOptions,
544
- columns,
545
- args,
546
- prepared,
547
- setPrepared,
548
- selectedRow,
549
- selectedTrace,
550
- savedTrace,
551
- setSelectedIndex,
552
- paste,
553
- setPaste,
554
- workspacePath,
555
- setWorkspacePath,
556
- sourceRequest,
557
- setSourceRequest,
558
- requestPending,
559
- sourceChanged,
560
- data,
561
- source,
562
- active,
563
- hasRun,
564
- load,
565
- run,
566
- stop,
567
- schedule,
568
- busy: active || load.isPending || run.isPending || requestPending,
569
- error: [
945
+ };
946
+ $[33] = args;
947
+ $[34] = columns;
948
+ $[35] = data;
949
+ $[36] = loaded;
950
+ $[37] = onPrepareTable;
951
+ $[38] = onRunTable;
952
+ $[39] = path;
953
+ $[40] = prepared;
954
+ $[41] = setLoaded;
955
+ $[42] = setPrepared;
956
+ $[43] = source;
957
+ $[44] = t14;
958
+ } else t14 = $[44];
959
+ let t15;
960
+ if ($[45] !== setPrepared) {
961
+ t15 = (next_0) => setPrepared((current_0) => current_0?.path === next_0.path && current_0.status !== "ready" && next_0.status === "running" ? current_0 : next_0);
962
+ $[45] = setPrepared;
963
+ $[46] = t15;
964
+ } else t15 = $[46];
965
+ let t16;
966
+ if ($[47] !== t14 || $[48] !== t15) {
967
+ t16 = {
968
+ mutationFn: t14,
969
+ onSuccess: t15
970
+ };
971
+ $[47] = t14;
972
+ $[48] = t15;
973
+ $[49] = t16;
974
+ } else t16 = $[49];
975
+ const run = useMutation(t16);
976
+ let t17;
977
+ if ($[50] !== onStopTable || $[51] !== prepared) {
978
+ t17 = { mutationFn: async () => {
979
+ if (prepared && onStopTable) await onStopTable(prepared.path);
980
+ } };
981
+ $[50] = onStopTable;
982
+ $[51] = prepared;
983
+ $[52] = t17;
984
+ } else t17 = $[52];
985
+ const stop = useMutation(t17);
986
+ let t18;
987
+ if ($[53] !== args || $[54] !== columns || $[55] !== onScheduleTable || $[56] !== path || $[57] !== source) {
988
+ t18 = { mutationFn: async () => {
989
+ if (!source || !onScheduleTable) throw new Error("Choose a table first.");
990
+ await onScheduleTable({
991
+ path,
992
+ args,
993
+ table: {
994
+ source,
995
+ columns
996
+ }
997
+ });
998
+ } };
999
+ $[53] = args;
1000
+ $[54] = columns;
1001
+ $[55] = onScheduleTable;
1002
+ $[56] = path;
1003
+ $[57] = source;
1004
+ $[58] = t18;
1005
+ } else t18 = $[58];
1006
+ const schedule = useMutation(t18);
1007
+ const busy = active || load.isPending || run.isPending || requestPending;
1008
+ let t19;
1009
+ if ($[59] !== load.error || $[60] !== prepared || $[61] !== requestError || $[62] !== run.error || $[63] !== savedTrace.error || $[64] !== schedule.error || $[65] !== stop.error) {
1010
+ t19 = [
570
1011
  load.error,
571
1012
  requestError,
572
1013
  run.error,
573
1014
  stop.error,
574
1015
  schedule.error,
575
1016
  savedTrace.error
576
- ].filter(Boolean).map((value) => executionErrorSummary(formatErrorMessage(value))).join(" ") || (prepared?.error ? executionErrorSummary(prepared.error) : ""),
577
- requestSource,
578
- view: tableView({
1017
+ ].filter(Boolean).map(_temp7).join(" ") || (prepared?.error ? executionErrorSummary(prepared.error) : "");
1018
+ $[59] = load.error;
1019
+ $[60] = prepared;
1020
+ $[61] = requestError;
1021
+ $[62] = run.error;
1022
+ $[63] = savedTrace.error;
1023
+ $[64] = schedule.error;
1024
+ $[65] = stop.error;
1025
+ $[66] = t19;
1026
+ } else t19 = $[66];
1027
+ const error = t19;
1028
+ let t20;
1029
+ if ($[67] !== args || $[68] !== columns || $[69] !== data || $[70] !== loaded || $[71] !== parameters || $[72] !== prepared || $[73] !== source) {
1030
+ t20 = tableView({
579
1031
  prepared,
580
1032
  loaded,
581
1033
  data,
@@ -583,86 +1035,265 @@ function useTableExecution({ path, parameters, execution, trace, onLoadTable, on
583
1035
  parameters,
584
1036
  columns,
585
1037
  args
586
- })
587
- };
1038
+ });
1039
+ $[67] = args;
1040
+ $[68] = columns;
1041
+ $[69] = data;
1042
+ $[70] = loaded;
1043
+ $[71] = parameters;
1044
+ $[72] = prepared;
1045
+ $[73] = source;
1046
+ $[74] = t20;
1047
+ } else t20 = $[74];
1048
+ const view = t20;
1049
+ let t21;
1050
+ if ($[75] !== active || $[76] !== args || $[77] !== busy || $[78] !== columns || $[79] !== data || $[80] !== error || $[81] !== hasRun || $[82] !== load || $[83] !== loadInput || $[84] !== loadOptions || $[85] !== loaded || $[86] !== paste || $[87] !== prepared || $[88] !== requestPending || $[89] !== requestSource || $[90] !== run || $[91] !== savedTrace || $[92] !== schedule || $[93] !== selectedRow || $[94] !== selectedTrace || $[95] !== setLoaded || $[96] !== setPrepared || $[97] !== setSelectedIndex || $[98] !== source || $[99] !== sourceChanged || $[100] !== sourceRequest || $[101] !== stop || $[102] !== view || $[103] !== workspacePath) {
1051
+ t21 = {
1052
+ loaded,
1053
+ setLoaded,
1054
+ loadInput,
1055
+ loadOptions,
1056
+ setLoadOptions,
1057
+ columns,
1058
+ args,
1059
+ prepared,
1060
+ setPrepared,
1061
+ selectedRow,
1062
+ selectedTrace,
1063
+ savedTrace,
1064
+ setSelectedIndex,
1065
+ paste,
1066
+ setPaste,
1067
+ workspacePath,
1068
+ setWorkspacePath,
1069
+ sourceRequest,
1070
+ setSourceRequest,
1071
+ requestPending,
1072
+ sourceChanged,
1073
+ data,
1074
+ source,
1075
+ active,
1076
+ hasRun,
1077
+ load,
1078
+ run,
1079
+ stop,
1080
+ schedule,
1081
+ busy,
1082
+ error,
1083
+ requestSource,
1084
+ view
1085
+ };
1086
+ $[75] = active;
1087
+ $[76] = args;
1088
+ $[77] = busy;
1089
+ $[78] = columns;
1090
+ $[79] = data;
1091
+ $[80] = error;
1092
+ $[81] = hasRun;
1093
+ $[82] = load;
1094
+ $[83] = loadInput;
1095
+ $[84] = loadOptions;
1096
+ $[85] = loaded;
1097
+ $[86] = paste;
1098
+ $[87] = prepared;
1099
+ $[88] = requestPending;
1100
+ $[89] = requestSource;
1101
+ $[90] = run;
1102
+ $[91] = savedTrace;
1103
+ $[92] = schedule;
1104
+ $[93] = selectedRow;
1105
+ $[94] = selectedTrace;
1106
+ $[95] = setLoaded;
1107
+ $[96] = setPrepared;
1108
+ $[97] = setSelectedIndex;
1109
+ $[98] = source;
1110
+ $[99] = sourceChanged;
1111
+ $[100] = sourceRequest;
1112
+ $[101] = stop;
1113
+ $[102] = view;
1114
+ $[103] = workspacePath;
1115
+ $[104] = t21;
1116
+ } else t21 = $[104];
1117
+ return t21;
1118
+ }
1119
+ function _temp7(value_0) {
1120
+ return executionErrorSummary(formatErrorMessage(value_0));
588
1121
  }
589
- function TableSourceSection({ session, actions }) {
590
- const { data, source, active, busy, paste, setPaste, workspacePath, setWorkspacePath, sourceRequest, setSourceRequest, requestPending, requestSource, load, setLoaded, setPrepared, args, view: { rowCount, href, sourceDescription } } = session;
1122
+ function TableSourceSection(t0) {
1123
+ const $ = c(41);
1124
+ const { session, actions } = t0;
1125
+ const { data, source, active, busy, paste, setPaste, workspacePath, setWorkspacePath, sourceRequest, setSourceRequest, requestPending, requestSource, load, setLoaded, setPrepared, args, view: t1 } = session;
1126
+ const { rowCount, href, sourceDescription } = t1;
591
1127
  const { path, onLoadTable, onRequestTableSource } = actions;
592
- if (data) return /* @__PURE__ */ jsxs("div", {
593
- className: "workspace-automation-table__source-section",
594
- children: [/* @__PURE__ */ jsxs("div", {
595
- className: "workspace-automation-table__source-line",
596
- children: [
597
- /* @__PURE__ */ jsx(FaviconMark, {
598
- href,
599
- fallback: /* @__PURE__ */ jsx(FileIcon, {})
600
- }),
601
- href ? /* @__PURE__ */ jsx("a", {
602
- className: "sigvelo-truncate-grow",
603
- href,
604
- target: "_blank",
605
- rel: "noreferrer",
606
- children: data.source?.label ?? "Source table"
607
- }) : /* @__PURE__ */ jsx("span", {
608
- className: "sigvelo-truncate-grow",
609
- children: tableSourceLabel(data, source)
610
- }),
611
- /* @__PURE__ */ jsxs("span", {
612
- className: "workspace-automation-table__hint",
613
- children: [
614
- rowCount,
615
- " ",
616
- rowCount === 1 ? "row" : "rows"
617
- ]
618
- }),
619
- !active && (onLoadTable || onRequestTableSource) ? /* @__PURE__ */ jsx(IconButton, {
620
- label: "Change table source",
621
- variant: "ghost",
622
- color: "neutral",
623
- onClick: () => {
624
- setLoaded(void 0);
625
- setPrepared(void 0);
626
- },
627
- children: /* @__PURE__ */ jsx(PencilIcon, {})
628
- }) : null
629
- ]
630
- }), /* @__PURE__ */ jsx("p", {
631
- className: "workspace-automation-table__hint",
632
- children: sourceDescription
633
- })]
634
- });
635
- if (!onLoadTable) return /* @__PURE__ */ jsx("p", { children: "Ask Rook to prepare a table for this automation." });
636
- return /* @__PURE__ */ jsx(TableSourceSetup, {
637
- busy,
638
- paste,
639
- setPaste,
640
- workspacePath,
641
- setWorkspacePath,
642
- sourceRequest,
643
- setSourceRequest,
644
- requestPending,
645
- onRequestTableSource,
646
- onRequestSource: requestSource,
647
- onLoad: load.mutate,
648
- path,
649
- args
650
- });
1128
+ if (data) {
1129
+ let t2;
1130
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1131
+ t2 = /* @__PURE__ */ jsx(FileIcon, {});
1132
+ $[0] = t2;
1133
+ } else t2 = $[0];
1134
+ let t3;
1135
+ if ($[1] !== href) {
1136
+ t3 = /* @__PURE__ */ jsx(Favicon, {
1137
+ href,
1138
+ fallback: t2
1139
+ });
1140
+ $[1] = href;
1141
+ $[2] = t3;
1142
+ } else t3 = $[2];
1143
+ let t4;
1144
+ if ($[3] !== data || $[4] !== href || $[5] !== source) {
1145
+ t4 = href ? /* @__PURE__ */ jsx("a", {
1146
+ className: "sigvelo-truncate-grow",
1147
+ href,
1148
+ target: "_blank",
1149
+ rel: "noreferrer",
1150
+ children: data.source?.label ?? "Source table"
1151
+ }) : /* @__PURE__ */ jsx("span", {
1152
+ className: "sigvelo-truncate-grow",
1153
+ children: tableSourceLabel(data, source)
1154
+ });
1155
+ $[3] = data;
1156
+ $[4] = href;
1157
+ $[5] = source;
1158
+ $[6] = t4;
1159
+ } else t4 = $[6];
1160
+ const t5 = rowCount === 1 ? "row" : "rows";
1161
+ let t6;
1162
+ if ($[7] !== rowCount || $[8] !== t5) {
1163
+ t6 = /* @__PURE__ */ jsxs("span", {
1164
+ className: "workspace-automation-table__hint",
1165
+ children: [
1166
+ rowCount,
1167
+ " ",
1168
+ t5
1169
+ ]
1170
+ });
1171
+ $[7] = rowCount;
1172
+ $[8] = t5;
1173
+ $[9] = t6;
1174
+ } else t6 = $[9];
1175
+ let t7;
1176
+ if ($[10] !== active || $[11] !== onLoadTable || $[12] !== onRequestTableSource || $[13] !== setLoaded || $[14] !== setPrepared) {
1177
+ t7 = !active && (onLoadTable || onRequestTableSource) ? /* @__PURE__ */ jsx(IconButton, {
1178
+ label: "Change table source",
1179
+ variant: "ghost",
1180
+ color: "neutral",
1181
+ onClick: () => {
1182
+ setLoaded(void 0);
1183
+ setPrepared(void 0);
1184
+ },
1185
+ children: /* @__PURE__ */ jsx(PencilIcon, {})
1186
+ }) : null;
1187
+ $[10] = active;
1188
+ $[11] = onLoadTable;
1189
+ $[12] = onRequestTableSource;
1190
+ $[13] = setLoaded;
1191
+ $[14] = setPrepared;
1192
+ $[15] = t7;
1193
+ } else t7 = $[15];
1194
+ let t8;
1195
+ if ($[16] !== t3 || $[17] !== t4 || $[18] !== t6 || $[19] !== t7) {
1196
+ t8 = /* @__PURE__ */ jsxs("div", {
1197
+ className: "workspace-automation-table__source-line",
1198
+ children: [
1199
+ t3,
1200
+ t4,
1201
+ t6,
1202
+ t7
1203
+ ]
1204
+ });
1205
+ $[16] = t3;
1206
+ $[17] = t4;
1207
+ $[18] = t6;
1208
+ $[19] = t7;
1209
+ $[20] = t8;
1210
+ } else t8 = $[20];
1211
+ let t9;
1212
+ if ($[21] !== sourceDescription) {
1213
+ t9 = /* @__PURE__ */ jsx("p", {
1214
+ className: "workspace-automation-table__hint",
1215
+ children: sourceDescription
1216
+ });
1217
+ $[21] = sourceDescription;
1218
+ $[22] = t9;
1219
+ } else t9 = $[22];
1220
+ let t10;
1221
+ if ($[23] !== t8 || $[24] !== t9) {
1222
+ t10 = /* @__PURE__ */ jsxs("div", {
1223
+ className: "workspace-automation-table__source-section",
1224
+ children: [t8, t9]
1225
+ });
1226
+ $[23] = t8;
1227
+ $[24] = t9;
1228
+ $[25] = t10;
1229
+ } else t10 = $[25];
1230
+ return t10;
1231
+ }
1232
+ if (!onLoadTable) {
1233
+ let t2;
1234
+ if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
1235
+ t2 = /* @__PURE__ */ jsx("p", { children: "Ask Rook to prepare a table for this automation." });
1236
+ $[26] = t2;
1237
+ } else t2 = $[26];
1238
+ return t2;
1239
+ }
1240
+ let t2;
1241
+ if ($[27] !== args || $[28] !== busy || $[29] !== load.mutate || $[30] !== onRequestTableSource || $[31] !== paste || $[32] !== path || $[33] !== requestPending || $[34] !== requestSource || $[35] !== setPaste || $[36] !== setSourceRequest || $[37] !== setWorkspacePath || $[38] !== sourceRequest || $[39] !== workspacePath) {
1242
+ t2 = /* @__PURE__ */ jsx(TableSourceSetup, {
1243
+ busy,
1244
+ paste,
1245
+ setPaste,
1246
+ workspacePath,
1247
+ setWorkspacePath,
1248
+ sourceRequest,
1249
+ setSourceRequest,
1250
+ requestPending,
1251
+ onRequestTableSource,
1252
+ onRequestSource: requestSource,
1253
+ onLoad: load.mutate,
1254
+ path,
1255
+ args
1256
+ });
1257
+ $[27] = args;
1258
+ $[28] = busy;
1259
+ $[29] = load.mutate;
1260
+ $[30] = onRequestTableSource;
1261
+ $[31] = paste;
1262
+ $[32] = path;
1263
+ $[33] = requestPending;
1264
+ $[34] = requestSource;
1265
+ $[35] = setPaste;
1266
+ $[36] = setSourceRequest;
1267
+ $[37] = setWorkspacePath;
1268
+ $[38] = sourceRequest;
1269
+ $[39] = workspacePath;
1270
+ $[40] = t2;
1271
+ } else t2 = $[40];
1272
+ return t2;
651
1273
  }
652
1274
  function tableSourceLabel(data, source) {
653
1275
  if (data.source?.label !== void 0) return data.source.label;
654
1276
  if (source && "path" in source) return source.path.split("/").at(-1) ?? "Table";
655
1277
  return "Table";
656
1278
  }
657
- function TableRunStatus({ session, actions }) {
658
- const { sourceChanged, active, run, schedule, source, busy, requestSource, requestPending, args, columns, hasRun, view: { requiredError, finished, rowCount } } = session;
1279
+ function TableRunStatus(t0) {
1280
+ const $ = c(23);
1281
+ const { session, actions } = t0;
1282
+ const { sourceChanged, active, run, schedule, source, busy, requestSource, requestPending, args, columns, hasRun, view: t1 } = session;
1283
+ const { requiredError, finished, rowCount } = t1;
659
1284
  const { path, onRequestTableSource } = actions;
660
- return /* @__PURE__ */ jsxs(Fragment, { children: [
661
- sourceChanged ? /* @__PURE__ */ jsx("p", {
1285
+ let t2;
1286
+ if ($[0] !== sourceChanged) {
1287
+ t2 = sourceChanged ? /* @__PURE__ */ jsx("p", {
662
1288
  role: "status",
663
1289
  children: "The source changed. Review these rows before running."
664
- }) : null,
665
- !active && (requiredError || run.error || schedule.error) ? /* @__PURE__ */ jsxs("div", {
1290
+ }) : null;
1291
+ $[0] = sourceChanged;
1292
+ $[1] = t2;
1293
+ } else t2 = $[1];
1294
+ let t3;
1295
+ if ($[2] !== active || $[3] !== args || $[4] !== busy || $[5] !== columns || $[6] !== onRequestTableSource || $[7] !== path || $[8] !== requestPending || $[9] !== requestSource || $[10] !== requiredError || $[11] !== run || $[12] !== schedule || $[13] !== source) {
1296
+ t3 = !active && (requiredError || run.error || schedule.error) ? /* @__PURE__ */ jsxs("div", {
666
1297
  className: "sigvelo-stack",
667
1298
  role: "status",
668
1299
  children: [/* @__PURE__ */ jsx("p", {
@@ -686,8 +1317,24 @@ function TableRunStatus({ session, actions }) {
686
1317
  }),
687
1318
  children: [requestPending ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : /* @__PURE__ */ jsx(WrenchIcon, {}), "Ask Rook to prepare"]
688
1319
  }) : null]
689
- }) : null,
690
- hasRun ? /* @__PURE__ */ jsxs("div", {
1320
+ }) : null;
1321
+ $[2] = active;
1322
+ $[3] = args;
1323
+ $[4] = busy;
1324
+ $[5] = columns;
1325
+ $[6] = onRequestTableSource;
1326
+ $[7] = path;
1327
+ $[8] = requestPending;
1328
+ $[9] = requestSource;
1329
+ $[10] = requiredError;
1330
+ $[11] = run;
1331
+ $[12] = schedule;
1332
+ $[13] = source;
1333
+ $[14] = t3;
1334
+ } else t3 = $[14];
1335
+ let t4;
1336
+ if ($[15] !== finished || $[16] !== hasRun || $[17] !== rowCount) {
1337
+ t4 = hasRun ? /* @__PURE__ */ jsxs("div", {
691
1338
  className: "sigvelo-stack",
692
1339
  role: "status",
693
1340
  children: [/* @__PURE__ */ jsxs("span", { children: [
@@ -701,64 +1348,167 @@ function TableRunStatus({ session, actions }) {
701
1348
  "aria-label": "Rows finished",
702
1349
  children: /* @__PURE__ */ jsx(Progress.Track, { children: /* @__PURE__ */ jsx(Progress.Indicator, {}) })
703
1350
  })]
704
- }) : null
705
- ] });
1351
+ }) : null;
1352
+ $[15] = finished;
1353
+ $[16] = hasRun;
1354
+ $[17] = rowCount;
1355
+ $[18] = t4;
1356
+ } else t4 = $[18];
1357
+ let t5;
1358
+ if ($[19] !== t2 || $[20] !== t3 || $[21] !== t4) {
1359
+ t5 = /* @__PURE__ */ jsxs(Fragment, { children: [
1360
+ t2,
1361
+ t3,
1362
+ t4
1363
+ ] });
1364
+ $[19] = t2;
1365
+ $[20] = t3;
1366
+ $[21] = t4;
1367
+ $[22] = t5;
1368
+ } else t5 = $[22];
1369
+ return t5;
706
1370
  }
707
- function TablePrimaryAction({ session, actions }) {
708
- const { active, stop, selectedRow, data, busy, run, hasRun, view: { rowCount, requiredError } } = session;
709
- if (active && actions.onStopTable) return /* @__PURE__ */ jsxs(Button, {
710
- type: "button",
711
- size: "sm",
712
- color: "neutral",
713
- disabled: stop.isPending,
714
- onClick: () => stop.mutate(),
715
- children: [stop.isPending ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : /* @__PURE__ */ jsx(StopIcon, {}), stop.isPending ? "Stopping…" : "Stop"]
716
- });
1371
+ function TablePrimaryAction(t0) {
1372
+ const $ = c(18);
1373
+ const { session, actions } = t0;
1374
+ const { active, stop, selectedRow, data, busy, run, hasRun, view: t1 } = session;
1375
+ const { rowCount, requiredError } = t1;
1376
+ if (active && actions.onStopTable) {
1377
+ let t2;
1378
+ if ($[0] !== stop) {
1379
+ t2 = () => stop.mutate();
1380
+ $[0] = stop;
1381
+ $[1] = t2;
1382
+ } else t2 = $[1];
1383
+ let t3;
1384
+ if ($[2] !== stop.isPending) {
1385
+ t3 = stop.isPending ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : /* @__PURE__ */ jsx(StopIcon, {});
1386
+ $[2] = stop.isPending;
1387
+ $[3] = t3;
1388
+ } else t3 = $[3];
1389
+ const t4 = stop.isPending ? "Stopping…" : "Stop";
1390
+ let t5;
1391
+ if ($[4] !== stop.isPending || $[5] !== t2 || $[6] !== t3 || $[7] !== t4) {
1392
+ t5 = /* @__PURE__ */ jsxs(Button, {
1393
+ type: "button",
1394
+ size: "sm",
1395
+ color: "neutral",
1396
+ disabled: stop.isPending,
1397
+ onClick: t2,
1398
+ children: [t3, t4]
1399
+ });
1400
+ $[4] = stop.isPending;
1401
+ $[5] = t2;
1402
+ $[6] = t3;
1403
+ $[7] = t4;
1404
+ $[8] = t5;
1405
+ } else t5 = $[8];
1406
+ return t5;
1407
+ }
717
1408
  if (selectedRow || !data || !actions.onRunTable) return null;
718
1409
  let label = `Run ${rowCount} ${rowCount === 1 ? "row" : "rows"}`;
719
1410
  if (hasRun) label = "Prepare another run";
720
1411
  if (run.isPending) label = "Preparing…";
721
- return /* @__PURE__ */ jsxs(Button, {
722
- type: "button",
723
- size: "sm",
724
- disabled: busy || rowCount === 0 || Boolean(requiredError),
725
- onClick: () => run.mutate(),
726
- children: [run.isPending ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : /* @__PURE__ */ jsx(PlayIcon, {}), label]
727
- });
1412
+ const t2 = busy || rowCount === 0 || Boolean(requiredError);
1413
+ let t3;
1414
+ if ($[9] !== run) {
1415
+ t3 = () => run.mutate();
1416
+ $[9] = run;
1417
+ $[10] = t3;
1418
+ } else t3 = $[10];
1419
+ let t4;
1420
+ if ($[11] !== run.isPending) {
1421
+ t4 = run.isPending ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : /* @__PURE__ */ jsx(PlayIcon, {});
1422
+ $[11] = run.isPending;
1423
+ $[12] = t4;
1424
+ } else t4 = $[12];
1425
+ let t5;
1426
+ if ($[13] !== label || $[14] !== t2 || $[15] !== t3 || $[16] !== t4) {
1427
+ t5 = /* @__PURE__ */ jsxs(Button, {
1428
+ type: "button",
1429
+ size: "sm",
1430
+ disabled: t2,
1431
+ onClick: t3,
1432
+ children: [t4, label]
1433
+ });
1434
+ $[13] = label;
1435
+ $[14] = t2;
1436
+ $[15] = t3;
1437
+ $[16] = t4;
1438
+ $[17] = t5;
1439
+ } else t5 = $[17];
1440
+ return t5;
728
1441
  }
729
- function TableActionBar({ session, actions }) {
730
- const { error, active, selectedRow, data, busy, schedule, view: { requiredError } } = session;
1442
+ function TableActionBar(t0) {
1443
+ const $ = c(17);
1444
+ const { session, actions } = t0;
1445
+ const { error, active, selectedRow, data, busy, schedule, view: t1 } = session;
1446
+ const { requiredError } = t1;
731
1447
  const { onScheduleTable } = actions;
732
- return /* @__PURE__ */ jsxs("div", {
733
- className: "workspace-automation-table__footer",
734
- children: [
735
- error ? /* @__PURE__ */ jsx(Field.Errors, { errors: [error] }) : null,
736
- /* @__PURE__ */ jsx(TablePrimaryAction, {
737
- session,
738
- actions
739
- }),
740
- data && onScheduleTable && !selectedRow && !active ? /* @__PURE__ */ jsxs(Button, {
741
- type: "button",
742
- "aria-label": "Schedule table automation",
743
- size: "sm",
744
- variant: "surface",
745
- color: "neutral",
746
- disabled: busy || schedule.isPending || Boolean(requiredError),
747
- onClick: () => schedule.mutate(),
748
- children: [/* @__PURE__ */ jsx(CalendarIcon, {}), "Schedule"]
749
- }) : null
750
- ]
751
- });
1448
+ let t2;
1449
+ if ($[0] !== error) {
1450
+ t2 = error ? /* @__PURE__ */ jsx(Field.Errors, { errors: [error] }) : null;
1451
+ $[0] = error;
1452
+ $[1] = t2;
1453
+ } else t2 = $[1];
1454
+ let t3;
1455
+ if ($[2] !== actions || $[3] !== session) {
1456
+ t3 = /* @__PURE__ */ jsx(TablePrimaryAction, {
1457
+ session,
1458
+ actions
1459
+ });
1460
+ $[2] = actions;
1461
+ $[3] = session;
1462
+ $[4] = t3;
1463
+ } else t3 = $[4];
1464
+ let t4;
1465
+ if ($[5] !== active || $[6] !== busy || $[7] !== data || $[8] !== onScheduleTable || $[9] !== requiredError || $[10] !== schedule || $[11] !== selectedRow) {
1466
+ t4 = data && onScheduleTable && !selectedRow && !active ? /* @__PURE__ */ jsxs(Button, {
1467
+ type: "button",
1468
+ "aria-label": "Schedule table automation",
1469
+ size: "sm",
1470
+ variant: "surface",
1471
+ color: "neutral",
1472
+ disabled: busy || schedule.isPending || Boolean(requiredError),
1473
+ onClick: () => schedule.mutate(),
1474
+ children: [/* @__PURE__ */ jsx(CalendarIcon, {}), "Schedule"]
1475
+ }) : null;
1476
+ $[5] = active;
1477
+ $[6] = busy;
1478
+ $[7] = data;
1479
+ $[8] = onScheduleTable;
1480
+ $[9] = requiredError;
1481
+ $[10] = schedule;
1482
+ $[11] = selectedRow;
1483
+ $[12] = t4;
1484
+ } else t4 = $[12];
1485
+ let t5;
1486
+ if ($[13] !== t2 || $[14] !== t3 || $[15] !== t4) {
1487
+ t5 = /* @__PURE__ */ jsxs("div", {
1488
+ className: "workspace-automation-table__footer",
1489
+ children: [
1490
+ t2,
1491
+ t3,
1492
+ t4
1493
+ ]
1494
+ });
1495
+ $[13] = t2;
1496
+ $[14] = t3;
1497
+ $[15] = t4;
1498
+ $[16] = t5;
1499
+ } else t5 = $[16];
1500
+ return t5;
752
1501
  }
753
1502
  /** Run one existing automation for each row, then inspect each row on the same execution board. */
754
1503
  function WorkspaceAutomationTable(props) {
1504
+ const $ = c(28);
755
1505
  const { trace, graph } = props;
756
1506
  const session = useTableExecution(props);
757
- const { selectedRow, selectedTrace, savedTrace, setSelectedIndex, data, loaded, loadInput, loadOptions, setLoadOptions, busy, load, view: { rowCount, visibleRows, rowsByIndex, results, resultColumns, showResult } } = session;
758
- return /* @__PURE__ */ jsxs("div", {
759
- className: "workspace-automation-table",
760
- "data-slot": "workspace-automation-table",
761
- children: [selectedRow ? /* @__PURE__ */ jsx(TableSelectedRow, {
1507
+ const { selectedRow, selectedTrace, savedTrace, setSelectedIndex, data, loaded, loadInput, loadOptions, setLoadOptions, busy, load, view: t0 } = session;
1508
+ const { rowCount, visibleRows, rowsByIndex, results, resultColumns, showResult } = t0;
1509
+ let t1;
1510
+ if ($[0] !== busy || $[1] !== data || $[2] !== graph || $[3] !== load || $[4] !== loadInput || $[5] !== loadOptions || $[6] !== loaded || $[7] !== props || $[8] !== resultColumns || $[9] !== results || $[10] !== rowCount || $[11] !== rowsByIndex || $[12] !== savedTrace || $[13] !== selectedRow || $[14] !== selectedTrace || $[15] !== session || $[16] !== setLoadOptions || $[17] !== setSelectedIndex || $[18] !== showResult || $[19] !== trace || $[20] !== visibleRows) {
1511
+ t1 = selectedRow ? /* @__PURE__ */ jsx(TableSelectedRow, {
762
1512
  selectedRow,
763
1513
  rowCount,
764
1514
  selectedTrace,
@@ -794,11 +1544,52 @@ function WorkspaceAutomationTable(props) {
794
1544
  onSelectRow: setSelectedIndex
795
1545
  })] }) : null
796
1546
  ]
797
- }), /* @__PURE__ */ jsx(TableActionBar, {
1547
+ });
1548
+ $[0] = busy;
1549
+ $[1] = data;
1550
+ $[2] = graph;
1551
+ $[3] = load;
1552
+ $[4] = loadInput;
1553
+ $[5] = loadOptions;
1554
+ $[6] = loaded;
1555
+ $[7] = props;
1556
+ $[8] = resultColumns;
1557
+ $[9] = results;
1558
+ $[10] = rowCount;
1559
+ $[11] = rowsByIndex;
1560
+ $[12] = savedTrace;
1561
+ $[13] = selectedRow;
1562
+ $[14] = selectedTrace;
1563
+ $[15] = session;
1564
+ $[16] = setLoadOptions;
1565
+ $[17] = setSelectedIndex;
1566
+ $[18] = showResult;
1567
+ $[19] = trace;
1568
+ $[20] = visibleRows;
1569
+ $[21] = t1;
1570
+ } else t1 = $[21];
1571
+ let t2;
1572
+ if ($[22] !== props || $[23] !== session) {
1573
+ t2 = /* @__PURE__ */ jsx(TableActionBar, {
798
1574
  session,
799
1575
  actions: props
800
- })]
801
- });
1576
+ });
1577
+ $[22] = props;
1578
+ $[23] = session;
1579
+ $[24] = t2;
1580
+ } else t2 = $[24];
1581
+ let t3;
1582
+ if ($[25] !== t1 || $[26] !== t2) {
1583
+ t3 = /* @__PURE__ */ jsxs("div", {
1584
+ className: "workspace-automation-table",
1585
+ "data-slot": "workspace-automation-table",
1586
+ children: [t1, t2]
1587
+ });
1588
+ $[25] = t1;
1589
+ $[26] = t2;
1590
+ $[27] = t3;
1591
+ } else t3 = $[27];
1592
+ return t3;
802
1593
  }
803
1594
  //#endregion
804
1595
  export { WorkspaceAutomationTable };