@mcp-b/react-components 0.59.2 → 0.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/dist/{AgentActivity-DSObWhDU.d.ts → AgentActivity-DptCj8XQ.d.ts} +2 -2
  2. package/dist/{AgentChatQueue-CGR4hd7D.d.ts → AgentChatQueue-DG2rGyCI.d.ts} +1 -1
  3. package/dist/AgentToolRunsContext-Br3jZ6Up.d.ts +74 -0
  4. package/dist/{Button-ClRxb8tM.d.ts → Button-DIn-0P-0.d.ts} +4 -5
  5. package/dist/{Card-BPkXIkBz.d.ts → Card-DkGZ3jKQ.d.ts} +7 -1
  6. package/dist/{CodeBlock-DYp5V_4O.d.ts → CodeBlock-BTkag9ms.d.ts} +1 -1
  7. package/dist/{CodeBlock-Bs_Z03eC.js → CodeBlock-CNvOYR0Q.js} +1 -1
  8. package/dist/{EmployeeChrome-QSki0QT4.d.ts → EmployeeChrome-D3IgFX22.d.ts} +12 -34
  9. package/dist/{ExecutionBoard-DHfMvKlB.d.ts → ExecutionBoard-DvPGdn4F.d.ts} +2 -2
  10. package/dist/{ExecutionResult-BSZsUbrL.js → ExecutionResult-DmC21cll.js} +4 -4
  11. package/dist/{FileTree-DyLBn7O_.js → FileTree-H31EVRv_.js} +1 -1
  12. package/dist/{IconButton-43ggXEuf.d.ts → IconButton-FWsa9562.d.ts} +1 -1
  13. package/dist/{ManagerOffice-BxBKEb_j.js → ManagerOffice-B3X3iZV9.js} +27 -34
  14. package/dist/{McpConnectorForm-D4bY-lm_.d.ts → McpConnectorForm-BLsQt_er.d.ts} +1 -1
  15. package/dist/{McpPluginCatalog-2FZDLCeK.d.ts → McpPluginCatalog-SQNOytXQ.d.ts} +2 -2
  16. package/dist/{Message-CwCqa90H.d.ts → Message-BUedRDN1.d.ts} +2 -2
  17. package/dist/{MessageScrollerVirtual-DVQeEkNy.d.ts → MessageScrollerVirtual-DxL6XKq9.d.ts} +1 -1
  18. package/dist/{PromptInput-C3adKglc.d.ts → PromptInput-Dbe6WgWA.d.ts} +1 -1
  19. package/dist/{ResponsiveSidebarShell-DzBGlRJF.d.ts → ResponsiveSidebarShell-DSAMNDdg.d.ts} +1 -1
  20. package/dist/{SetupChecklist-CKQ-mKYt.js → SetupChecklist-Wo4akaSG.js} +1 -1
  21. package/dist/{ThinkChatActivity-C4_hPEmb.d.ts → ThinkChatActivity-zZaSsbC-.d.ts} +7 -3
  22. package/dist/{ThinkChatActivitySummary-ChJ8Iu2T.d.ts → ThinkChatActivitySummary-8MO1VjAJ.d.ts} +1 -1
  23. package/dist/{ThinkExecutionRun-CPeYVneQ.d.ts → ThinkExecutionRun-DJ2TFDmZ.d.ts} +1 -1
  24. package/dist/ThinkSchedule-5S834QKW.d.ts +34 -0
  25. package/dist/{Workspace-iCkXvQRJ.d.ts → Workspace-42LA9Zrb.d.ts} +1 -1
  26. package/dist/WorkspaceAutomation-B2Pdz_SU.d.ts +215 -0
  27. package/dist/{WorkspaceConcept-ByaG-kBq.d.ts → WorkspaceConcept-BjrgGE1w.d.ts} +2 -3
  28. package/dist/{WorkspaceFile-DkIZKoK6.d.ts → WorkspaceFile-nK2n0i4S.d.ts} +1 -1
  29. package/dist/{WorkspaceFileView-CsWwQA1U.js → WorkspaceFileView-BWI_AJlV.js} +8 -8
  30. package/dist/{WorkspaceLink-Buo6gKj2.d.ts → WorkspaceLink-C8HH2fMT.d.ts} +1 -0
  31. package/dist/{WorkspaceMessageResponse-DnsdpaGU.js → WorkspaceMessageResponse-BZ-_I18b.js} +3 -7
  32. package/dist/agent-tool-runs-DsOp_X2y.js +133 -0
  33. package/dist/assets/chrome.svg +1 -0
  34. package/dist/assets/plugins/plugin-github.svg +8 -0
  35. package/dist/assets/plugins/plugin-gmail.svg +1 -0
  36. package/dist/assets/plugins/plugin-google-drive.svg +1 -0
  37. package/dist/assets/plugins/plugin-google.svg +1 -0
  38. package/dist/assets/plugins/plugin-linear.svg +1 -0
  39. package/dist/assets/plugins/plugin-notion.svg +25 -0
  40. package/dist/assets/plugins/plugin-salesforce.svg +31 -0
  41. package/dist/assets/plugins/plugin-slack.svg +6 -0
  42. package/dist/chatgpt-sign-in-button-DNchrZHs.js +32 -0
  43. package/dist/{codex-model-catalog-CReSIBpd.d.ts → codex-model-catalog-CFEGgUAj.d.ts} +68 -20
  44. package/dist/components/agents-sdk/AgentActivity.d.ts +1 -1
  45. package/dist/components/agents-sdk/AgentActivity.js +5 -4
  46. package/dist/components/agents-sdk/AgentChat.d.ts +4 -4
  47. package/dist/components/agents-sdk/AgentChat.js +1 -1
  48. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  49. package/dist/components/agents-sdk/AgentEvent.js +5 -5
  50. package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +2 -2
  51. package/dist/components/agents-sdk/AgentToolRunsContext.js +78 -8
  52. package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
  53. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  54. package/dist/components/agents-sdk/BrowserReplay.js +2 -2
  55. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  56. package/dist/components/agents-sdk/EmployeeApp.d.ts +4 -3
  57. package/dist/components/agents-sdk/EmployeeApp.js +1 -1
  58. package/dist/components/agents-sdk/EmployeeChat.d.ts +9 -2
  59. package/dist/components/agents-sdk/EmployeeChat.js +13 -9
  60. package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
  61. package/dist/components/agents-sdk/EmployeeChrome.js +42 -30
  62. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +10 -10
  63. package/dist/components/agents-sdk/EmployeeSchedules.js +39 -39
  64. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +3 -3
  65. package/dist/components/agents-sdk/EmployeeStartScreen.js +3 -3
  66. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  67. package/dist/components/agents-sdk/ExecutionBoard.js +6 -32
  68. package/dist/components/agents-sdk/ManagerAccountActions.js +2 -2
  69. package/dist/components/agents-sdk/ManagerOffice.d.ts +10 -14
  70. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  71. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  72. package/dist/components/agents-sdk/ManagerOfficeScreens.js +3 -3
  73. package/dist/components/agents-sdk/McpConnectionRequest.d.ts +1 -1
  74. package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
  75. package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -1
  76. package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
  77. package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
  78. package/dist/components/agents-sdk/McpPluginCatalog.js +3 -3
  79. package/dist/components/agents-sdk/McpServerIcon.d.ts +1 -1
  80. package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
  81. package/dist/components/agents-sdk/McpServerPicker.js +2 -2
  82. package/dist/components/agents-sdk/ModelEndpointDialog.js +1 -1
  83. package/dist/components/agents-sdk/ModelSelector.d.ts +2 -2
  84. package/dist/components/agents-sdk/ModelSelector.js +7 -6
  85. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  86. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  87. package/dist/components/agents-sdk/SubagentRunIndicator.d.ts +4 -2
  88. package/dist/components/agents-sdk/SubagentRunIndicator.js +4 -3
  89. package/dist/components/agents-sdk/SubagentRunLanes.d.ts +38 -0
  90. package/dist/components/agents-sdk/SubagentRunLanes.js +160 -0
  91. package/dist/components/agents-sdk/SubagentRunPanel.d.ts +3 -28
  92. package/dist/components/agents-sdk/SubagentRunPanel.js +143 -188
  93. package/dist/components/agents-sdk/SubagentRunSelector.d.ts +1 -1
  94. package/dist/components/agents-sdk/ThinkChat.d.ts +4 -7
  95. package/dist/components/agents-sdk/ThinkChat.js +5 -8
  96. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  97. package/dist/components/agents-sdk/ThinkChatActivity.js +27 -26
  98. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  99. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +28 -28
  100. package/dist/components/agents-sdk/ThinkChatToolPanels.js +12 -27
  101. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +1 -1
  102. package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
  103. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +1 -1
  104. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +1 -1
  105. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  106. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +3 -16
  107. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
  108. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -0
  109. package/dist/components/agents-sdk/ThinkSchedule.js +9 -0
  110. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +42 -0
  111. package/dist/components/agents-sdk/{ThinkRoutineActions.js → ThinkScheduleActions.js} +35 -35
  112. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +24 -0
  113. package/dist/components/agents-sdk/{ThinkRoutineBrowser.js → ThinkScheduleBrowser.js} +46 -44
  114. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +19 -0
  115. package/dist/components/agents-sdk/ThinkScheduleDetail.js +139 -0
  116. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +58 -0
  117. package/dist/components/agents-sdk/ThinkScheduleForm.js +686 -0
  118. package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
  119. package/dist/components/agents-sdk/WorkbenchBack.d.ts +1 -1
  120. package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
  121. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  122. package/dist/components/agents-sdk/Workspace.js +1 -1
  123. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +2 -0
  124. package/dist/components/agents-sdk/WorkspaceAutomation.js +791 -0
  125. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +2 -0
  126. package/dist/components/agents-sdk/{WorkspaceExecutionTable.js → WorkspaceAutomationTable.js} +45 -65
  127. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  128. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  129. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +2 -2
  130. package/dist/components/agents-sdk/WorkspaceConcept.js +1 -1
  131. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +28 -8
  132. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +104 -254
  133. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -2
  134. package/dist/components/agents-sdk/WorkspaceExplorer.js +4 -4
  135. package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
  136. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
  137. package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
  138. package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
  139. package/dist/components/agents-sdk/WorkspaceLink.d.ts +3 -2
  140. package/dist/components/agents-sdk/WorkspaceLink.js +2 -1
  141. package/dist/components/agents-sdk/WorkspaceLive.d.ts +13 -6
  142. package/dist/components/agents-sdk/WorkspaceLive.js +2 -0
  143. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +37 -2
  144. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  145. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.d.ts +1 -1
  146. package/dist/components/agents-sdk/WorkspacePerson.d.ts +30 -0
  147. package/dist/components/agents-sdk/WorkspacePerson.js +100 -0
  148. package/dist/components/agents-sdk/WorkspaceProject.d.ts +24 -60
  149. package/dist/components/agents-sdk/WorkspaceProject.js +82 -184
  150. package/dist/components/ai-sdk/Activity.js +1 -1
  151. package/dist/components/ai-sdk/AgentAttention.d.ts +1 -1
  152. package/dist/components/ai-sdk/AgentChatMessageEditor.js +1 -1
  153. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +2 -2
  154. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  155. package/dist/components/ai-sdk/Approval.js +2 -2
  156. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  157. package/dist/components/ai-sdk/Artifact.js +2 -2
  158. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  159. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  160. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  161. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  162. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  163. package/dist/components/ai-sdk/ComposerLink.js +1 -1
  164. package/dist/components/ai-sdk/ConnectedAppCards.d.ts +51 -63
  165. package/dist/components/ai-sdk/ConnectedAppCards.js +42 -365
  166. package/dist/components/ai-sdk/Context.js +2 -2
  167. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  168. package/dist/components/ai-sdk/Conversation.js +3 -3
  169. package/dist/components/ai-sdk/Goal.js +2 -2
  170. package/dist/components/ai-sdk/MediaPreviewCard.d.ts +1 -1
  171. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  172. package/dist/components/ai-sdk/Message.d.ts +1 -1
  173. package/dist/components/ai-sdk/Message.js +13 -5
  174. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  175. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  176. package/dist/components/ai-sdk/MessageScrollerVirtual.d.ts +1 -1
  177. package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
  178. package/dist/components/ai-sdk/Plan.js +1 -1
  179. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  180. package/dist/components/ai-sdk/PromptInput.js +4 -4
  181. package/dist/components/ai-sdk/Queue.d.ts +1 -1
  182. package/dist/components/ai-sdk/Queue.js +2 -2
  183. package/dist/components/ai-sdk/Reasoning.js +1 -1
  184. package/dist/components/ai-sdk/Sources.js +1 -1
  185. package/dist/components/ai-sdk/Task.js +1 -1
  186. package/dist/components/ai-sdk/ToolInvocation.js +1 -1
  187. package/dist/components/extension/ChatGptSignInScreen.d.ts +17 -4
  188. package/dist/components/extension/ChatGptSignInScreen.js +32 -32
  189. package/dist/components/extension/CodexModelSelector.d.ts +1 -1
  190. package/dist/components/extension/CodexModelSelector.js +1 -1
  191. package/dist/components/extension/ConversationTabPicker.js +1 -1
  192. package/dist/components/extension/FirstRunSetup.d.ts +117 -0
  193. package/dist/components/extension/FirstRunSetup.js +1175 -0
  194. package/dist/components/foundations/AlertDialog.d.ts +1 -1
  195. package/dist/components/foundations/AppIcon.d.ts +5 -2
  196. package/dist/components/foundations/Button.d.ts +1 -1
  197. package/dist/components/foundations/Button.js +2 -2
  198. package/dist/components/foundations/Card.d.ts +1 -1
  199. package/dist/components/foundations/Card.js +2 -2
  200. package/dist/components/foundations/Checkbox.js +1 -1
  201. package/dist/components/foundations/Collapsible.js +1 -1
  202. package/dist/components/foundations/ContextMenu.js +1 -1
  203. package/dist/components/foundations/DescriptionList.d.ts +3 -1
  204. package/dist/components/foundations/DescriptionList.js +2 -1
  205. package/dist/components/foundations/IconButton.d.ts +1 -1
  206. package/dist/components/foundations/LinkButton.d.ts +1 -1
  207. package/dist/components/foundations/Menubar.js +1 -1
  208. package/dist/components/foundations/Popover.js +1 -1
  209. package/dist/components/foundations/SearchField.js +1 -1
  210. package/dist/components/foundations/Select.js +1 -1
  211. package/dist/components/foundations/Stepper.js +1 -1
  212. package/dist/components/foundations/Toast.js +1 -1
  213. package/dist/components/foundations/Toggle.d.ts +2 -4
  214. package/dist/components/foundations/Toggle.js +3 -7
  215. package/dist/components/foundations/ToggleGroup.d.ts +2 -4
  216. package/dist/components/foundations/ToggleGroup.js +4 -16
  217. package/dist/components/foundations/icons.d.ts +2 -2
  218. package/dist/components/foundations/icons.js +2 -2
  219. package/dist/components/general-purpose/ActionGuide.d.ts +1 -1
  220. package/dist/components/general-purpose/Commit.d.ts +1 -1
  221. package/dist/components/general-purpose/Commit.js +3 -3
  222. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  223. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  224. package/dist/components/general-purpose/FileTree.js +1 -1
  225. package/dist/components/general-purpose/PricingBillingToggle.js +1 -1
  226. package/dist/components/general-purpose/PricingPlanCard.js +2 -2
  227. package/dist/components/general-purpose/PricingUsageCalculator.js +1 -1
  228. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  229. package/dist/components/general-purpose/ResponsiveSidebarShell.js +2 -2
  230. package/dist/components/general-purpose/SettingsFormDialog.js +1 -1
  231. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  232. package/dist/components/general-purpose/Terminal.d.ts +2 -2
  233. package/dist/components/general-purpose/Terminal.js +2 -2
  234. package/dist/components/general-purpose/TestResults.js +1 -1
  235. package/dist/components/general-purpose/ThemeModeControl.js +2 -2
  236. package/dist/components/general-purpose/WebPreview.d.ts +1 -1
  237. package/dist/components/general-purpose/WebPreview.js +1 -1
  238. package/dist/components/nanites/AgentConnection.js +3 -3
  239. package/dist/components/nanites/AgentToolDetail.d.ts +1 -1
  240. package/dist/components/nanites/AgentToolDetail.js +3 -3
  241. package/dist/connected-app-drafts-B9i69bkj.js +283 -0
  242. package/dist/{copy-button-BIfY5M-D.d.ts → copy-button-B09hHWd1.d.ts} +1 -1
  243. package/dist/{copy-button-M4sAp9xS.js → copy-button-z20VEXRF.js} +1 -1
  244. package/dist/{execution-result-DWVmm-bL.js → execution-result-DAuW4VWv.js} +30 -2
  245. package/dist/{icons-Dj6id76o.d.ts → icons-CReP3qYl.d.ts} +7 -1
  246. package/dist/{icons-DvlrWt54.js → icons-Yp99gmMC.js} +8 -2
  247. package/dist/{mcp-server-catalog-kaMWaSAL.d.ts → mcp-server-catalog-Di4N46H9.d.ts} +9 -3
  248. package/dist/navigation-link-zK6z8Gn3.d.ts +18 -0
  249. package/dist/scheduled-table-source-NZR1vFc_.js +38 -0
  250. package/dist/styles/accessibility.css +22 -9
  251. package/dist/styles/accordion.css +2 -2
  252. package/dist/styles/activity-header.css +14 -11
  253. package/dist/styles/activity.css +6 -13
  254. package/dist/styles/agent-attention.css +0 -23
  255. package/dist/styles/agent-chat.css +8 -3
  256. package/dist/styles/agent-connection.css +2 -2
  257. package/dist/styles/app-icon.css +7 -0
  258. package/dist/styles/app-top-bar.css +3 -11
  259. package/dist/styles/approval.css +2 -2
  260. package/dist/styles/base.css +3 -1
  261. package/dist/styles/browser-live-screen.css +3 -1
  262. package/dist/styles/browser-run-panel.css +2 -2
  263. package/dist/styles/button.css +13 -44
  264. package/dist/styles/card.css +42 -5
  265. package/dist/styles/chain-of-thought.css +2 -8
  266. package/dist/styles/chatgpt-sign-in-screen.css +91 -83
  267. package/dist/styles/checkbox-group.css +2 -1
  268. package/dist/styles/checkbox.css +4 -6
  269. package/dist/styles/code-block.css +2 -1
  270. package/dist/styles/codex-model-selector.css +2 -2
  271. package/dist/styles/collapsible.css +2 -2
  272. package/dist/styles/color-contrast.test.ts +1 -0
  273. package/dist/styles/combobox.css +5 -9
  274. package/dist/styles/commit.css +2 -7
  275. package/dist/styles/composer-link.css +0 -10
  276. package/dist/styles/connected-app-card.css +32 -32
  277. package/dist/styles/context-menu.css +2 -2
  278. package/dist/styles/description-list.css +14 -0
  279. package/dist/styles/execution-board.css +1 -1
  280. package/dist/styles/execution-result.css +161 -0
  281. package/dist/styles/file-tree.css +5 -9
  282. package/dist/styles/first-run-setup.css +751 -0
  283. package/dist/styles/index.css +5 -2
  284. package/dist/styles/inline-citation.css +2 -10
  285. package/dist/styles/manager-office.css +16 -43
  286. package/dist/styles/marker.css +2 -2
  287. package/dist/styles/media-preview-card.css +2 -7
  288. package/dist/styles/message-scroller.css +3 -2
  289. package/dist/styles/model-selector.css +19 -15
  290. package/dist/styles/navigation-menu.css +4 -4
  291. package/dist/styles/number-field.css +2 -3
  292. package/dist/styles/preview-card.css +2 -2
  293. package/dist/styles/prompt-input.css +5 -15
  294. package/dist/styles/queue.css +2 -7
  295. package/dist/styles/radio.css +4 -6
  296. package/dist/styles/recipes.css +25 -52
  297. package/dist/styles/resizable-side-panel.css +3 -2
  298. package/dist/styles/responsive-sidebar-shell.css +1 -6
  299. package/dist/styles/scroll-area.css +3 -2
  300. package/dist/styles/scrollbars.css +2 -0
  301. package/dist/styles/search-field.css +1 -2
  302. package/dist/styles/slider.css +4 -5
  303. package/dist/styles/sources.css +2 -7
  304. package/dist/styles/stepper.css +4 -4
  305. package/dist/styles/streamdown.css +8 -1
  306. package/dist/styles/subagent-run.css +123 -12
  307. package/dist/styles/switch.css +4 -7
  308. package/dist/styles/tabs.css +5 -4
  309. package/dist/styles/task.css +2 -7
  310. package/dist/styles/test-results.css +2 -7
  311. package/dist/styles/theme-mode-control.css +0 -6
  312. package/dist/styles/think-chat-activity.css +0 -8
  313. package/dist/styles/think-execution-status.css +1 -1
  314. package/dist/styles/think-execution-workbench.css +3 -3
  315. package/dist/styles/think-full-app.css +3 -2
  316. package/dist/styles/{think-routine.css → think-schedule.css} +64 -80
  317. package/dist/styles/toggle-group.css +9 -6
  318. package/dist/styles/toggle.css +23 -15
  319. package/dist/styles/toolbar.css +0 -6
  320. package/dist/styles/workspace-automation.css +233 -0
  321. package/dist/styles/workspace-concepts.css +18 -412
  322. package/dist/styles/workspace-entity-card.css +146 -0
  323. package/dist/styles/workspace-explorer.css +4 -3
  324. package/dist/utils/codex-model-catalog.d.ts +1 -1
  325. package/dist/utils/codex-model-catalog.js +51 -19
  326. package/dist/utils/mcp-server-catalog.d.ts +2 -2
  327. package/dist/utils/mcp-server-catalog.js +108 -21
  328. package/dist/utils/structured-code.d.ts +1 -1
  329. package/dist/{workspace-assets-DVn0d-fN.js → workspace-assets-Dq5toMQc.js} +34 -38
  330. package/dist/workspace-concept-panel-CxZfmFkP.js +66 -0
  331. package/dist/workspace-concept-panel-CxuqDi4m.d.ts +21 -0
  332. package/dist/{workspace-delete-CMY1kPkq.js → workspace-delete-CoB0l6ZU.js} +2 -1
  333. package/dist/workspace-entity-card-2TC3RPKh.d.ts +7 -0
  334. package/dist/workspace-entity-card-B1aV-jBj.js +61 -0
  335. package/dist/workspace-person-BSgvRjZE.d.ts +24 -0
  336. package/dist/workspace-person-BVkYb3dv.js +116 -0
  337. package/package.json +28 -28
  338. package/dist/AgentToolRunsContext-DniwGn96.d.ts +0 -18
  339. package/dist/Correspondent-ANkZHGEa.d.ts +0 -60
  340. package/dist/ThinkRoutine-DoZjbzyn.d.ts +0 -41
  341. package/dist/WorkspaceConceptPanel-D21iRsWm.js +0 -23
  342. package/dist/WorkspaceExecutionTable-DNhj6YDX.d.ts +0 -239
  343. package/dist/WorkspaceMessageResponse-D8FGgIQU.d.ts +0 -39
  344. package/dist/components/agents-sdk/SubagentRunList.d.ts +0 -17
  345. package/dist/components/agents-sdk/SubagentRunList.js +0 -26
  346. package/dist/components/agents-sdk/ThinkRoutine.d.ts +0 -2
  347. package/dist/components/agents-sdk/ThinkRoutine.js +0 -9
  348. package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +0 -42
  349. package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +0 -25
  350. package/dist/components/agents-sdk/ThinkRoutineDetail.d.ts +0 -19
  351. package/dist/components/agents-sdk/ThinkRoutineDetail.js +0 -97
  352. package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +0 -59
  353. package/dist/components/agents-sdk/ThinkRoutineForm.js +0 -744
  354. package/dist/components/agents-sdk/ThinkRoutineRuns.d.ts +0 -15
  355. package/dist/components/agents-sdk/ThinkRoutineRuns.js +0 -52
  356. package/dist/components/agents-sdk/WorkspaceExecution.d.ts +0 -2
  357. package/dist/components/agents-sdk/WorkspaceExecution.js +0 -843
  358. package/dist/components/agents-sdk/WorkspaceExecutionTable.d.ts +0 -2
  359. package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +0 -36
  360. package/dist/components/agents-sdk/WorkspaceUserScript.js +0 -153
  361. package/dist/components/ai-sdk/Correspondent.d.ts +0 -2
  362. package/dist/components/ai-sdk/Correspondent.js +0 -145
  363. package/dist/styles/correspondent.css +0 -73
@@ -1,239 +0,0 @@
1
- import { a as ExecutionTrace, r as ExecutionGraph } from "./ExecutionBoard-DHfMvKlB.js";
2
- import { f as CardProps } from "./Card-BPkXIkBz.js";
3
- import { r as WorkspaceConceptQueryOptions } from "./WorkspaceConcept-ByaG-kBq.js";
4
- import * as React from "react";
5
- import { MutationKey } from "@tanstack/react-query";
6
- //#region src/components/agents-sdk/WorkspaceExecution.d.ts
7
- type WorkspaceExecutionParamType = "string" | "number" | "boolean";
8
- interface WorkspaceExecutionParam {
9
- name: string;
10
- label: string;
11
- /** Optional help text, kept separate from the concise field label. */
12
- description?: string;
13
- type: WorkspaceExecutionParamType;
14
- /**
15
- * Whether the module's schema lists this property as required. This is a
16
- * presentation hint only; the execution runtime owns argument validation.
17
- */
18
- required: boolean;
19
- value?: string | number | boolean;
20
- }
21
- interface WorkspaceExecutionRun {
22
- path: string;
23
- label: string;
24
- }
25
- interface WorkspaceExecutionRunView extends WorkspaceExecutionRun {
26
- onOpen?: () => void;
27
- }
28
- interface WorkspaceExecutionOutcome {
29
- /** Matches this outcome to its synchronized trace when the host publishes one. */
30
- executionId?: string;
31
- /** Serialized return value from the existing execution runtime. */
32
- result: unknown;
33
- logs: readonly string[];
34
- /** Result and log files emitted when the runtime overflowed its inline bounds. */
35
- runs: readonly WorkspaceExecutionRun[];
36
- }
37
- interface WorkspaceExecutionViewOutcome extends Omit<WorkspaceExecutionOutcome, "runs"> {
38
- runs: readonly WorkspaceExecutionRunView[];
39
- }
40
- interface WorkspaceExecution {
41
- graph?: ExecutionGraph;
42
- /** Workspace path of the module file. */
43
- path: string;
44
- name: string;
45
- description?: string;
46
- /** Brand mark. Defaults to `QueueIcon`. */
47
- icon?: React.ReactNode;
48
- parameters: readonly WorkspaceExecutionParam[];
49
- /** Recent result peeks, newest first. Not a results directory. */
50
- runs?: readonly WorkspaceExecutionRun[];
51
- }
52
- /** Data-only execution projection hydrated with card actions outside Query. */
53
- interface WorkspaceExecutionView extends WorkspaceExecution, WorkspaceExecutionTableActions {
54
- /** Prepared or retained table execution for this workflow. */
55
- tableExecution?: WorkspaceExecutionTableRun;
56
- /** TanStack identity shared by inline and workbench run controls. */
57
- mutationKey?: MutationKey;
58
- trace?: ExecutionTrace;
59
- onStop?: () => Promise<void>;
60
- runs?: readonly WorkspaceExecutionRunView[];
61
- /**
62
- * Runs the module with the submitted values. Shared mutation state keeps the
63
- * lifecycle visible when an inline card opens its workbench.
64
- */
65
- onRun?: (parameters: readonly WorkspaceExecutionParam[]) => Promise<WorkspaceExecutionViewOutcome>;
66
- onOpen?: () => void;
67
- /** Opens the host-owned execution workbench without starting a run. */
68
- onOpenBoard?: () => void;
69
- /** Opens the host-owned schedule form with this saved workflow selected. */
70
- onSchedule?: () => void;
71
- onDelete?: () => void | Promise<void>;
72
- }
73
- interface WorkspaceExecutionSource extends WorkspaceExecutionTableActions {
74
- /** Live host-owned table receipt; its workflow path scopes it to one workbench. */
75
- tableExecution?: WorkspaceExecutionTableRun;
76
- trace?: ExecutionTrace;
77
- onStop?: (executionId: string) => Promise<void>;
78
- queryOptions: WorkspaceConceptQueryOptions<readonly WorkspaceExecution[]>;
79
- /** Runs the module with the submitted values and returns its visible outcome. */
80
- onRun?: (path: string, parameters: readonly WorkspaceExecutionParam[]) => Promise<WorkspaceExecutionOutcome>;
81
- onOpen?: (path: string) => void;
82
- /** Selects the script in the host-owned execution workbench. */
83
- onOpenBoard?: (path: string) => void;
84
- /** Starts a new schedule using the existing saved-workflow catalog. */
85
- onSchedule?: (path: string) => void;
86
- onDelete?: (path: string) => void | Promise<void>;
87
- }
88
- interface WorkspaceExecutionCardProps extends Omit<CardProps, "children" | "hover" | "size" | "title"> {
89
- module: WorkspaceExecutionView;
90
- }
91
- interface WorkspaceExecutionFileProps extends Omit<WorkspaceExecutionCardProps, "module"> {
92
- path: string;
93
- source: WorkspaceExecutionSource;
94
- fallback?: React.ReactNode;
95
- }
96
- interface WorkspaceExecutionsPanelProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
97
- /** Shared workspace query and host actions, also used by inline module cards. */
98
- source: WorkspaceExecutionSource;
99
- /** Route-owned selection; absent means the script library. */
100
- selectedPath?: string;
101
- /** Lazily loaded outline for the selected script. Trace graphs take precedence. */
102
- selectedGraph?: ExecutionGraph;
103
- /** Saved run loaded by the host for the selected trace file. */
104
- selectedTrace?: ExecutionTrace;
105
- /** Returns from the selected script to the library. */
106
- onBack?: () => void;
107
- }
108
- declare function WorkspaceExecutionCard({ module, ...props }: WorkspaceExecutionCardProps & {
109
- ref?: React.Ref<HTMLDivElement>;
110
- }): React.JSX.Element;
111
- /**
112
- * Compact inline card for one queried execution module.
113
- */
114
- declare function WorkspaceExecutionFile({ fallback, path, source, ...props }: WorkspaceExecutionFileProps & {
115
- ref?: React.Ref<HTMLDivElement>;
116
- }): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
117
- /**
118
- * Route-owned script workbench: compact discovery cards or one selected board.
119
- * A query failure with nothing loaded is an error, never an empty library.
120
- */
121
- declare function WorkspaceExecutionsPanel({ className, source, selectedPath, selectedTrace, selectedGraph, onBack, ref, ...props }: WorkspaceExecutionsPanelProps & {
122
- /** Ref forwarded to the component's rendered root element. */
123
- ref?: React.Ref<HTMLElement>;
124
- }): React.JSX.Element;
125
- //#endregion
126
- //#region src/components/agents-sdk/WorkspaceExecutionTable.d.ts
127
- type WorkspaceExecutionTableValue = string | number | boolean;
128
- /** Provider-neutral table. Blank cells retain their column positions. */
129
- interface WorkspaceExecutionTableData {
130
- columns: string[];
131
- rows: (WorkspaceExecutionTableValue | null)[][];
132
- source?: {
133
- label: string;
134
- href?: string;
135
- };
136
- }
137
- /** The host owns loading and parsing; the component never connects to a provider. */
138
- type WorkspaceExecutionTableSource = {
139
- data: WorkspaceExecutionTableData;
140
- } | {
141
- path: string;
142
- sheet?: string;
143
- header?: boolean;
144
- delimiter?: "," | "\t" | ";";
145
- } | {
146
- script: {
147
- path: string;
148
- args?: Record<string, unknown>;
149
- };
150
- };
151
- interface WorkspaceExecutionTableInvocation {
152
- path: string;
153
- args?: Record<string, unknown>;
154
- table?: {
155
- source: WorkspaceExecutionTableSource;
156
- columns: Record<string, string>;
157
- };
158
- }
159
- interface WorkspaceExecutionTableRow {
160
- /** Zero-based position in the snapshotted data, including any omitted blank rows. */
161
- index: number;
162
- args: Record<string, unknown>;
163
- status: "waiting" | "running" | "completed" | "error" | "aborted" | "interrupted";
164
- executionId?: string;
165
- tracePath?: string;
166
- summary?: string;
167
- /** Actual output retained by the host; presentation never predicts result fields. */
168
- result?: unknown;
169
- error?: string;
170
- }
171
- /** Retained host-owned receipt. The data and each row's inputs are fixed before execution. */
172
- interface WorkspaceExecutionTableRun {
173
- path: string;
174
- threadId: string;
175
- id: string;
176
- name: string;
177
- invocation: WorkspaceExecutionTableInvocation;
178
- data: WorkspaceExecutionTableData;
179
- rows: WorkspaceExecutionTableRow[];
180
- status: "ready" | "running" | "completed" | "error" | "aborted" | "interrupted";
181
- createdAt: number;
182
- startedAt?: number;
183
- completedAt?: number;
184
- error?: string;
185
- }
186
- type WorkspaceExecutionTableInput = {
187
- file: File;
188
- } | {
189
- text: string;
190
- } | {
191
- path: string;
192
- };
193
- interface WorkspaceExecutionTableLoadOptions {
194
- sheet?: string;
195
- header?: boolean;
196
- delimiter?: "," | "\t" | ";";
197
- }
198
- interface WorkspaceExecutionTableLoaded {
199
- data: WorkspaceExecutionTableData;
200
- source: WorkspaceExecutionTableSource;
201
- sheets?: string[];
202
- }
203
- /** Shared table actions; the host persists receipts and supplies live updates. */
204
- interface WorkspaceExecutionTableActions {
205
- /** Loads a file, pasted rows, or workspace source without executing the workflow. */
206
- onLoadTable?: (input: WorkspaceExecutionTableInput, options?: WorkspaceExecutionTableLoadOptions) => Promise<WorkspaceExecutionTableLoaded>;
207
- /** Opens a host conversation to prepare a table from a sheet, app, or description. */
208
- onRequestTableSource?: (input: {
209
- path: string;
210
- request: string;
211
- invocation?: WorkspaceExecutionTableInvocation;
212
- }) => Promise<void>;
213
- /** Validates and retains the exact rows and workflow before any row effects. */
214
- onPrepareTable?: (invocation: WorkspaceExecutionTableInvocation) => Promise<WorkspaceExecutionTableRun>;
215
- /** Starts the retained receipt identified by its workspace path. */
216
- onRunTable?: (path: string) => Promise<WorkspaceExecutionTableRun>;
217
- /** Stops the active row and leaves the remaining rows unstarted. */
218
- onStopTable?: (path: string) => Promise<void>;
219
- /** Reads one row's saved observations for the existing execution board. */
220
- onLoadTableTrace?: (path: string) => Promise<ExecutionTrace>;
221
- /** Saves the same table source and mapping in the host's existing schedule form. */
222
- onScheduleTable?: (invocation: WorkspaceExecutionTableInvocation) => void | Promise<void>;
223
- }
224
- interface WorkspaceExecutionTableProps extends WorkspaceExecutionTableActions {
225
- /** Workspace path of the existing single-row workflow. */
226
- path: string;
227
- /** Existing workflow fields used to infer exact column matches without exposing script inputs. */
228
- parameters: readonly WorkspaceExecutionParam[];
229
- /** Retained receipt refreshed by the host as rows progress. */
230
- execution?: WorkspaceExecutionTableRun;
231
- /** Current row's live observations, matched by execution identity. */
232
- trace?: ExecutionTrace;
233
- /** Existing workflow outline for rows that have not started. */
234
- graph?: ExecutionGraph;
235
- }
236
- /** Run one existing workflow for each row, then inspect each row on the same execution board. */
237
- declare function WorkspaceExecutionTable(props: WorkspaceExecutionTableProps): React.JSX.Element;
238
- //#endregion
239
- export { WorkspaceExecutionSource as C, WorkspaceExecutionsPanelProps as D, WorkspaceExecutionsPanel as E, WorkspaceExecutionRunView as S, WorkspaceExecutionViewOutcome as T, WorkspaceExecutionFileProps as _, WorkspaceExecutionTableInvocation as a, WorkspaceExecutionParamType as b, WorkspaceExecutionTableProps as c, WorkspaceExecutionTableSource as d, WorkspaceExecutionTableValue as f, WorkspaceExecutionFile as g, WorkspaceExecutionCardProps as h, WorkspaceExecutionTableInput as i, WorkspaceExecutionTableRow as l, WorkspaceExecutionCard as m, WorkspaceExecutionTableActions as n, WorkspaceExecutionTableLoadOptions as o, WorkspaceExecution as p, WorkspaceExecutionTableData as r, WorkspaceExecutionTableLoaded as s, WorkspaceExecutionTable as t, WorkspaceExecutionTableRun as u, WorkspaceExecutionOutcome as v, WorkspaceExecutionView as w, WorkspaceExecutionRun as x, WorkspaceExecutionParam as y };
@@ -1,39 +0,0 @@
1
- import { O as MessageResponseProps } from "./Message-CwCqa90H.js";
2
- import * as React from "react";
3
- //#region src/components/agents-sdk/WorkspaceMessageResponse.d.ts
4
- interface WorkspaceFileRenderInput {
5
- label: string;
6
- path: string;
7
- /** Shared workspace link element; hosts pass it through to the preview unchanged. */
8
- sourceLink: React.ReactElement;
9
- }
10
- /**
11
- * Host callback for one standalone workspace file link in an assistant
12
- * paragraph. Return a node to replace the link, or `null` to keep it.
13
- */
14
- type WorkspaceFileRenderer = (file: WorkspaceFileRenderInput) => React.ReactNode;
15
- /**
16
- * Ambient workspace-file renderer for every `WorkspaceMessageResponse` below,
17
- * and the only way to supply one. The value is read inside the promoted
18
- * paragraph, not by the response component, so a host handing down a fresh
19
- * callback every render re-renders only the paragraphs — the memoized Markdown
20
- * pipeline is untouched and promoted cards keep their state.
21
- * `ThinkChat.MessageContent` provides it from its `renderWorkspaceFile` prop; hosts
22
- * composing `WorkspaceMessageResponse` directly provide it once at their
23
- * conversation root.
24
- */
25
- declare function WorkspaceFileRendererProvider({ children, renderWorkspaceFile }: {
26
- children: React.ReactNode;
27
- renderWorkspaceFile: WorkspaceFileRenderer | undefined;
28
- }): React.JSX.Element;
29
- interface WorkspaceMessageResponseProps extends MessageResponseProps {
30
- /**
31
- * Whether standalone workspace file links may be promoted. `ThinkChat`
32
- * passes `false` for user messages: user links remain ordinary navigation.
33
- */
34
- promoteWorkspaceFiles?: boolean;
35
- }
36
- /** Adds workspace-aware Markdown links when rendered inside a workspace provider. */
37
- declare const WorkspaceMessageResponse: React.MemoExoticComponent<({ components, rehypePlugins, promoteWorkspaceFiles, ...props }: WorkspaceMessageResponseProps) => React.JSX.Element>;
38
- //#endregion
39
- export { WorkspaceMessageResponseProps as a, WorkspaceMessageResponse as i, WorkspaceFileRenderer as n, WorkspaceFileRendererProvider as r, WorkspaceFileRenderInput as t };
@@ -1,17 +0,0 @@
1
- import { n as AgentToolRunValue } from "../../AgentToolRunsContext-DniwGn96.js";
2
- import * as React from "react";
3
- import { UIMessage } from "ai";
4
- import { AgentToolRunPart } from "agents/agent-tools";
5
- //#region src/components/agents-sdk/SubagentRunList.d.ts
6
- export interface SubagentRunListProps<Part extends AgentToolRunPart = UIMessage["parts"][number]> extends Omit<React.HTMLAttributes<HTMLUListElement>, "children" | "onSelect"> {
7
- /** Complete retained runs returned by `useAgentToolEvents()`, in display order. */
8
- runs: readonly AgentToolRunValue<Part>[];
9
- /** App-authored TanStack Router Link for every retained run destination. */
10
- renderRunLink: (run: AgentToolRunValue<Part>) => React.ReactElement;
11
- selectedRunId?: string;
12
- }
13
- /** Semantic, wrapping list of retained-run selectors. */
14
- export declare function SubagentRunList<Part extends AgentToolRunPart = UIMessage["parts"][number]>({ className, renderRunLink, selectedRunId, runs, ref, ...props }: SubagentRunListProps<Part> & {
15
- ref?: React.Ref<HTMLUListElement>;
16
- }): React.JSX.Element;
17
- //#endregion
@@ -1,26 +0,0 @@
1
- import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { SubagentRunSelector } from "./SubagentRunSelector.js";
3
- import "react";
4
- import { jsx } from "react/jsx-runtime";
5
- //#region src/components/agents-sdk/SubagentRunList.tsx
6
- /** Semantic, wrapping list of retained-run selectors. */
7
- function SubagentRunList({ className, renderRunLink, selectedRunId, runs, ref, ...props }) {
8
- return /* @__PURE__ */ jsx("ul", {
9
- ref,
10
- "data-slot": "subagent-run-list",
11
- className: cx("subagent-run__list", className),
12
- ...props,
13
- role: "list",
14
- children: runs.map((run) => /* @__PURE__ */ jsx("li", {
15
- className: "subagent-run__list-item",
16
- "data-run-id": run.runId,
17
- children: /* @__PURE__ */ jsx(SubagentRunSelector, {
18
- run,
19
- render: renderRunLink(run),
20
- "aria-current": run.runId === selectedRunId ? "page" : void 0
21
- })
22
- }, run.runId))
23
- });
24
- }
25
- //#endregion
26
- export { SubagentRunList };
@@ -1,2 +0,0 @@
1
- import { a as getThinkRoutineNextRun, i as ThinkRoutineScript, n as ThinkRoutineOwner, r as ThinkRoutineRunOf, t as ThinkRoutine } from "../../ThinkRoutine-DoZjbzyn.js";
2
- export { ThinkRoutine, ThinkRoutineOwner, ThinkRoutineRunOf, ThinkRoutineScript, getThinkRoutineNextRun };
@@ -1,9 +0,0 @@
1
- import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
2
- //#region src/components/agents-sdk/ThinkRoutine.ts
3
- function getThinkRoutineNextRun(routine) {
4
- if (!routine.schedule) return null;
5
- if (!routine.enabled) return "Paused";
6
- return formatThinkExecutionShortTimestamp(routine.schedule.time * 1e3, "Not scheduled");
7
- }
8
- //#endregion
9
- export { getThinkRoutineNextRun };
@@ -1,42 +0,0 @@
1
- import { t as AppTopBar } from "../../AppTopBar-DwzydmXu.js";
2
- import { t as ThinkRoutine } from "../../ThinkRoutine-DoZjbzyn.js";
3
- import * as React from "react";
4
- //#region src/components/agents-sdk/ThinkRoutineActions.d.ts
5
- export interface ThinkRoutineActionsRootProps<TRoutine extends ThinkRoutine = ThinkRoutine> {
6
- /** Whole selected routine, including app-owned extensions and native task/run values. */
7
- routine: TRoutine;
8
- /** Stable non-secret identity of the source backing this routine. */
9
- sourceKey: string;
10
- /** Host mutation that runs the whole selected routine; its promise controls pending and error feedback. */
11
- onRun?: (routine: TRoutine) => void | Promise<void>;
12
- /** Host mutation for the requested enabled state; the host supplies the updated routine after success. */
13
- onEnabledChange?: (routine: TRoutine, enabled: boolean) => void | Promise<void>;
14
- /** Host removal invoked after confirmation; rejection keeps the confirmation open with its error. */
15
- onDelete?: (routine: TRoutine) => void | Promise<void>;
16
- /** Caller-composed controls and detail sharing this source/routine mutation scope; no layout is inserted. */
17
- children: React.ReactNode;
18
- }
19
- /** Connect an independently mounted detail to its selected routine action scope. */
20
- export declare function useThinkRoutineActions(): {
21
- busy: boolean;
22
- onEnabledChange: ((enabled: boolean) => void) | undefined;
23
- };
24
- /** No layout or routing. Source/routine changes reset actions without remounting caller navigation. */
25
- declare function ThinkRoutineActionsRoot<TRoutine extends ThinkRoutine>({ routine, sourceKey, onRun, onEnabledChange, onDelete, children }: ThinkRoutineActionsRootProps<TRoutine>): React.JSX.Element;
26
- export type ThinkRoutineActionProps = Omit<React.ComponentProps<typeof AppTopBar.Button>, "label"> & {
27
- label?: string;
28
- };
29
- /** Explicit run control; preserves the complete shared button composition contract. */
30
- declare function ThinkRoutineRun({ label, tooltip, children, ...props }: ThinkRoutineActionProps): React.JSX.Element | null;
31
- /** Delete confirmation stays open on failure; only its source-scoped action can settle it. */
32
- declare function ThinkRoutineDelete(props: ThinkRoutineActionProps): React.JSX.Element | null;
33
- declare function ThinkRoutineError(props: React.ComponentPropsWithRef<"div">): React.JSX.Element | null;
34
- declare function ThinkRoutineStatus(props: React.ComponentPropsWithRef<"div">): React.JSX.Element;
35
- export declare const ThinkRoutineActions: {
36
- Root: typeof ThinkRoutineActionsRoot;
37
- Run: typeof ThinkRoutineRun;
38
- Delete: typeof ThinkRoutineDelete;
39
- Error: typeof ThinkRoutineError;
40
- Status: typeof ThinkRoutineStatus;
41
- };
42
- //#endregion
@@ -1,25 +0,0 @@
1
- import { t as ThinkRoutine } from "../../ThinkRoutine-DoZjbzyn.js";
2
- import * as React from "react";
3
- //#region src/components/agents-sdk/ThinkRoutineBrowser.d.ts
4
- export type ThinkRoutineFilter = "all" | "active" | "paused";
5
- export interface ThinkRoutineBrowserProps<TRoutine extends ThinkRoutine = ThinkRoutine> extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
6
- routines: readonly TRoutine[];
7
- /** Routine selected by the current application route. */
8
- selectedRoutineId?: string | null;
9
- /** Whether owner names are displayed and included in search. Defaults to true. */
10
- showOwner?: boolean;
11
- /** App-authored TanStack Router Link for each durable routine destination. */
12
- renderRoutineLink: (routine: TRoutine) => React.ReactElement;
13
- /** App-authored TanStack Router Link to the routine creation route. */
14
- createRoutineLink?: React.ReactElement;
15
- /** UI-only response to ordinary same-tab activation, including keyboard clicks.
16
- * Modified, non-primary, download, and other-target clicks leave this UI unchanged.
17
- * Receives the original React anchor event; routing remains with the rendered link.
18
- */
19
- onRoutineLinkClick?: React.MouseEventHandler<HTMLAnchorElement>;
20
- }
21
- /** Searchable, filterable navigation for an app-owned collection of Think routines. */
22
- export declare function ThinkRoutineBrowser<TRoutine extends ThinkRoutine = ThinkRoutine>({ className, routines, selectedRoutineId, showOwner, renderRoutineLink, createRoutineLink, onRoutineLinkClick, ref, ...props }: ThinkRoutineBrowserProps<TRoutine> & {
23
- ref?: React.Ref<HTMLElement>;
24
- }): React.JSX.Element;
25
- //#endregion
@@ -1,19 +0,0 @@
1
- import { p as WorkspaceExecution } from "../../WorkspaceExecutionTable-DNhj6YDX.js";
2
- import { r as ThinkRoutineRunOf, t as ThinkRoutine } from "../../ThinkRoutine-DoZjbzyn.js";
3
- import * as React from "react";
4
- //#region src/components/agents-sdk/ThinkRoutineDetail.d.ts
5
- export interface ThinkRoutineDetailProps<TRoutine extends ThinkRoutine = ThinkRoutine> extends React.HTMLAttributes<HTMLElement> {
6
- routine: TRoutine;
7
- /** Saved workflow metadata, including friendly input labels. */
8
- script?: WorkspaceExecution;
9
- busy?: boolean;
10
- showOwner?: boolean;
11
- onEnabledChange?: (enabled: boolean) => void;
12
- /** App-authored TanStack Router Link for each recent execution. */
13
- renderRunLink?: (run: ThinkRoutineRunOf<TRoutine>) => React.ReactElement;
14
- }
15
- /** Readable definition, schedule settings, and recent executions for one routine. */
16
- export declare function ThinkRoutineDetail<TRoutine extends ThinkRoutine = ThinkRoutine>({ busy, className, routine, script, showOwner, onEnabledChange, renderRunLink, ref, ...props }: ThinkRoutineDetailProps<TRoutine> & {
17
- ref?: React.Ref<HTMLElement>;
18
- }): React.JSX.Element;
19
- //#endregion
@@ -1,97 +0,0 @@
1
- import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { DescriptionList } from "../foundations/DescriptionList.js";
3
- import { t as ExecutionResult } from "../../ExecutionResult-BSZsUbrL.js";
4
- import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
5
- import { Switch } from "../foundations/Switch.js";
6
- import { ThinkRoutineRuns } from "./ThinkRoutineRuns.js";
7
- import * as React from "react";
8
- import { jsx, jsxs } from "react/jsx-runtime";
9
- //#region src/components/agents-sdk/ThinkRoutineDetail.tsx
10
- /** Readable definition, schedule settings, and recent executions for one routine. */
11
- function ThinkRoutineDetail({ busy = false, className, routine, script, showOwner = true, onEnabledChange, renderRunLink, ref, ...props }) {
12
- const titleId = React.useId();
13
- const definitionId = React.useId();
14
- const settingsId = React.useId();
15
- const enabledLabelId = React.useId();
16
- return /* @__PURE__ */ jsxs("article", {
17
- ref,
18
- className: cx("think-routine-detail", "think-routine__detail", className),
19
- "aria-labelledby": titleId,
20
- ...props,
21
- children: [
22
- /* @__PURE__ */ jsx("header", {
23
- className: "think-routine__detail-header",
24
- children: /* @__PURE__ */ jsxs("div", {
25
- className: "think-routine__detail-heading",
26
- children: [/* @__PURE__ */ jsx("h1", {
27
- id: titleId,
28
- children: routine.name
29
- }), routine.description ? /* @__PURE__ */ jsx("p", { children: routine.description }) : null]
30
- })
31
- }),
32
- /* @__PURE__ */ jsxs("div", {
33
- className: "think-routine__detail-grid",
34
- children: [/* @__PURE__ */ jsxs("section", {
35
- className: "think-routine__definition",
36
- "aria-labelledby": definitionId,
37
- children: [/* @__PURE__ */ jsx("div", {
38
- className: "think-routine__section-heading",
39
- children: /* @__PURE__ */ jsx("h2", {
40
- id: definitionId,
41
- children: "script" in routine.task ? script?.name ?? "Saved workflow" : "Instructions"
42
- })
43
- }), "script" in routine.task ? /* @__PURE__ */ jsx(DescriptionList.Root, {
44
- align: "start",
45
- variant: "divided",
46
- children: Object.entries(routine.task.script.args ?? {}).map(([name, value]) => /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: script?.parameters.find((parameter) => parameter.name === name)?.label ?? name.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ") }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: /* @__PURE__ */ jsx(ExecutionResult, {
47
- result: value,
48
- showSummary: false
49
- }) })] }, name))
50
- }) : /* @__PURE__ */ jsx("p", {
51
- className: "think-routine__instructions",
52
- children: typeof routine.task.prompt === "string" ? routine.task.prompt : "Runs an app-defined scheduled handler."
53
- })]
54
- }), /* @__PURE__ */ jsxs("aside", {
55
- className: "think-routine__settings",
56
- "aria-labelledby": settingsId,
57
- children: [
58
- /* @__PURE__ */ jsx("div", {
59
- className: "think-routine__section-heading",
60
- children: /* @__PURE__ */ jsx("h2", {
61
- id: settingsId,
62
- children: "Schedule"
63
- })
64
- }),
65
- /* @__PURE__ */ jsxs("dl", {
66
- className: "think-routine__facts",
67
- children: [
68
- /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: routine.task.schedule })] }),
69
- routine.schedule ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Next run" }), /* @__PURE__ */ jsx("dd", { children: getThinkRoutineNextRun(routine) })] }) : null,
70
- showOwner ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Agent" }), /* @__PURE__ */ jsx("dd", { children: routine.owner.name })] }) : null
71
- ]
72
- }),
73
- /* @__PURE__ */ jsxs("div", {
74
- className: "think-routine__status-control",
75
- children: [/* @__PURE__ */ jsx("div", {
76
- id: enabledLabelId,
77
- children: /* @__PURE__ */ jsx("strong", { children: "Enabled" })
78
- }), onEnabledChange ? /* @__PURE__ */ jsx(Switch.Root, {
79
- "aria-labelledby": enabledLabelId,
80
- checked: routine.enabled,
81
- disabled: busy,
82
- onCheckedChange: onEnabledChange,
83
- children: /* @__PURE__ */ jsx(Switch.Thumb, {})
84
- }) : /* @__PURE__ */ jsx("span", { children: routine.enabled ? "On" : "Off" })]
85
- })
86
- ]
87
- })]
88
- }),
89
- /* @__PURE__ */ jsx(ThinkRoutineRuns, {
90
- runs: routine.runs,
91
- renderRunLink
92
- })
93
- ]
94
- });
95
- }
96
- //#endregion
97
- export { ThinkRoutineDetail };
@@ -1,59 +0,0 @@
1
- import { p as WorkspaceExecution } from "../../WorkspaceExecutionTable-DNhj6YDX.js";
2
- import { i as ThinkRoutineScript } from "../../ThinkRoutine-DoZjbzyn.js";
3
- import * as React from "react";
4
- import { ThinkScheduledTaskSchedule } from "@cloudflare/think";
5
- //#region src/components/agents-sdk/ThinkRoutineForm.d.ts
6
- /** Parsed schedule fields required to prefill the editor. */
7
- export type ThinkRoutineFormSchedule = {
8
- kind: "interval";
9
- intervalMs: number;
10
- } | {
11
- kind: "wall-clock";
12
- timezone: string;
13
- hour: number;
14
- minute: number;
15
- days: "daily" | "weekday" | readonly number[];
16
- };
17
- /** Existing routine fields required by the edit form. */
18
- export interface ThinkRoutineFormRoutine {
19
- name: string;
20
- task: {
21
- prompt: string;
22
- } | {
23
- script: ThinkRoutineScript;
24
- };
25
- parsedSchedule: ThinkRoutineFormSchedule;
26
- }
27
- /** Prompt routine draft emitted by the routine form. */
28
- export type ThinkRoutineFormValue = {
29
- name: string;
30
- schedule: ThinkScheduledTaskSchedule;
31
- } & ({
32
- prompt: string;
33
- } | {
34
- script: ThinkRoutineScript;
35
- });
36
- export interface ThinkRoutineFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSubmit"> {
37
- /** Existing routine projected through Think's schedule parser. Omit when creating. */
38
- routine?: ThinkRoutineFormRoutine;
39
- /** Selects a saved workflow when creating a schedule. Existing routines take precedence. */
40
- initialScript?: ThinkRoutineScript;
41
- /** Saved workflows with the same input metadata used by the execution board. */
42
- scripts?: readonly WorkspaceExecution[];
43
- /** Keeps the workflow chooser unavailable while its catalog loads. */
44
- scriptsLoading?: boolean;
45
- /** Readable catalog loading failure; existing schedule values remain available. */
46
- scriptsError?: string;
47
- /** App-authored link back to the schedule or workflow that opened this form. */
48
- cancelLink?: React.ReactElement;
49
- /** Accessible name for the back link, matching its actual destination. */
50
- cancelLabel?: string;
51
- /** Receives the validated routine fields when the user creates or updates the schedule. */
52
- onSubmit: (value: ThinkRoutineFormValue) => void | Promise<void>;
53
- }
54
- /** Create/edit surface for scheduled instructions or a saved workflow. */
55
- export declare function ThinkRoutineForm({ cancelLink, cancelLabel, className, routine, initialScript, scripts, scriptsLoading, scriptsError, onSubmit, ref, ...props }: ThinkRoutineFormProps & {
56
- /** Ref forwarded to the component's rendered root element. */
57
- ref?: React.Ref<HTMLDivElement>;
58
- }): React.JSX.Element;
59
- //#endregion