@mcp-b/react-components 0.60.0 → 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-B4K656LO.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-Wd1sKAvD.js → ExecutionResult-DmC21cll.js} +4 -4
  11. package/dist/{FileTree-BpCJuvji.js → FileTree-H31EVRv_.js} +1 -1
  12. package/dist/{IconButton-43ggXEuf.d.ts → IconButton-FWsa9562.d.ts} +1 -1
  13. package/dist/{ManagerOffice-BaHSBcSF.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-BNK2XFaI.js → SetupChecklist-Wo4akaSG.js} +2 -2
  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-5SHsjamf.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/components/agents-sdk/AgentActivity.d.ts +1 -1
  44. package/dist/components/agents-sdk/AgentActivity.js +5 -4
  45. package/dist/components/agents-sdk/AgentChat.d.ts +4 -4
  46. package/dist/components/agents-sdk/AgentChat.js +7 -7
  47. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  48. package/dist/components/agents-sdk/AgentEvent.js +4 -4
  49. package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +2 -2
  50. package/dist/components/agents-sdk/AgentToolRunsContext.js +78 -8
  51. package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
  52. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  53. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  54. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  55. package/dist/components/agents-sdk/EmployeeApp.d.ts +4 -3
  56. package/dist/components/agents-sdk/EmployeeApp.js +1 -1
  57. package/dist/components/agents-sdk/EmployeeChat.d.ts +9 -2
  58. package/dist/components/agents-sdk/EmployeeChat.js +14 -10
  59. package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
  60. package/dist/components/agents-sdk/EmployeeChrome.js +45 -33
  61. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +10 -10
  62. package/dist/components/agents-sdk/EmployeeSchedules.js +39 -39
  63. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +3 -3
  64. package/dist/components/agents-sdk/EmployeeStartScreen.js +4 -4
  65. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  66. package/dist/components/agents-sdk/ExecutionBoard.js +7 -33
  67. package/dist/components/agents-sdk/ManagerAccountActions.js +2 -2
  68. package/dist/components/agents-sdk/ManagerOffice.d.ts +10 -14
  69. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  70. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  71. package/dist/components/agents-sdk/ManagerOfficeScreens.js +3 -3
  72. package/dist/components/agents-sdk/McpConnectionRequest.d.ts +1 -1
  73. package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
  74. package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -1
  75. package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
  76. package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
  77. package/dist/components/agents-sdk/McpPluginCatalog.js +3 -3
  78. package/dist/components/agents-sdk/McpServerIcon.d.ts +1 -1
  79. package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
  80. package/dist/components/agents-sdk/McpServerPicker.js +2 -2
  81. package/dist/components/agents-sdk/ModelEndpointDialog.js +1 -1
  82. package/dist/components/agents-sdk/ModelSelector.d.ts +2 -2
  83. package/dist/components/agents-sdk/ModelSelector.js +7 -6
  84. package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
  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 +145 -190
  93. package/dist/components/agents-sdk/SubagentRunSelector.d.ts +1 -1
  94. package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
  95. package/dist/components/agents-sdk/ThinkChat.d.ts +4 -7
  96. package/dist/components/agents-sdk/ThinkChat.js +5 -8
  97. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  98. package/dist/components/agents-sdk/ThinkChatActivity.js +27 -26
  99. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  100. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +28 -28
  101. package/dist/components/agents-sdk/ThinkChatToolPanels.js +13 -28
  102. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +1 -1
  103. package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
  104. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +1 -1
  105. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +1 -1
  106. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  107. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +3 -16
  108. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +4 -4
  109. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
  110. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -0
  111. package/dist/components/agents-sdk/ThinkSchedule.js +9 -0
  112. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +42 -0
  113. package/dist/components/agents-sdk/{ThinkRoutineActions.js → ThinkScheduleActions.js} +35 -35
  114. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +24 -0
  115. package/dist/components/agents-sdk/{ThinkRoutineBrowser.js → ThinkScheduleBrowser.js} +47 -45
  116. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +19 -0
  117. package/dist/components/agents-sdk/ThinkScheduleDetail.js +139 -0
  118. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +58 -0
  119. package/dist/components/agents-sdk/ThinkScheduleForm.js +686 -0
  120. package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
  121. package/dist/components/agents-sdk/WorkbenchBack.d.ts +1 -1
  122. package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
  123. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  124. package/dist/components/agents-sdk/Workspace.js +1 -1
  125. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +2 -0
  126. package/dist/components/agents-sdk/WorkspaceAutomation.js +791 -0
  127. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +2 -0
  128. package/dist/components/agents-sdk/{WorkspaceExecutionTable.js → WorkspaceAutomationTable.js} +45 -65
  129. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  130. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  131. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +2 -2
  132. package/dist/components/agents-sdk/WorkspaceConcept.js +1 -1
  133. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +28 -8
  134. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +104 -254
  135. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +2 -2
  136. package/dist/components/agents-sdk/WorkspaceExplorer.js +4 -4
  137. package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
  138. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
  139. package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
  140. package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
  141. package/dist/components/agents-sdk/WorkspaceLink.d.ts +3 -2
  142. package/dist/components/agents-sdk/WorkspaceLink.js +2 -1
  143. package/dist/components/agents-sdk/WorkspaceLive.d.ts +13 -6
  144. package/dist/components/agents-sdk/WorkspaceLive.js +2 -0
  145. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +37 -2
  146. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  147. package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
  148. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.d.ts +1 -1
  149. package/dist/components/agents-sdk/WorkspacePerson.d.ts +30 -0
  150. package/dist/components/agents-sdk/WorkspacePerson.js +100 -0
  151. package/dist/components/agents-sdk/WorkspaceProject.d.ts +24 -60
  152. package/dist/components/agents-sdk/WorkspaceProject.js +82 -184
  153. package/dist/components/ai-sdk/Activity.js +1 -1
  154. package/dist/components/ai-sdk/AgentAttention.d.ts +1 -1
  155. package/dist/components/ai-sdk/AgentChatMessageEditor.js +1 -1
  156. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +2 -2
  157. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  158. package/dist/components/ai-sdk/Approval.js +2 -2
  159. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  160. package/dist/components/ai-sdk/Artifact.js +2 -2
  161. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  162. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  163. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  164. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  165. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  166. package/dist/components/ai-sdk/ComposerLink.js +1 -1
  167. package/dist/components/ai-sdk/ConnectedAppCards.d.ts +51 -63
  168. package/dist/components/ai-sdk/ConnectedAppCards.js +42 -365
  169. package/dist/components/ai-sdk/Context.js +1 -1
  170. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  171. package/dist/components/ai-sdk/Conversation.js +3 -3
  172. package/dist/components/ai-sdk/Goal.js +1 -1
  173. package/dist/components/ai-sdk/MediaPreviewCard.d.ts +1 -1
  174. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  175. package/dist/components/ai-sdk/Message.d.ts +1 -1
  176. package/dist/components/ai-sdk/Message.js +12 -4
  177. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  178. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  179. package/dist/components/ai-sdk/MessageScrollerVirtual.d.ts +1 -1
  180. package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
  181. package/dist/components/ai-sdk/Plan.js +1 -1
  182. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  183. package/dist/components/ai-sdk/PromptInput.js +6 -6
  184. package/dist/components/ai-sdk/Queue.d.ts +1 -1
  185. package/dist/components/ai-sdk/Queue.js +1 -1
  186. package/dist/components/ai-sdk/Reasoning.js +1 -1
  187. package/dist/components/ai-sdk/Sources.js +1 -1
  188. package/dist/components/ai-sdk/Task.js +1 -1
  189. package/dist/components/extension/ChatGptSignInScreen.d.ts +17 -4
  190. package/dist/components/extension/ChatGptSignInScreen.js +32 -32
  191. package/dist/components/extension/CodexModelSelector.js +2 -2
  192. package/dist/components/extension/ConversationTabPicker.js +2 -2
  193. package/dist/components/extension/FirstRunSetup.d.ts +117 -0
  194. package/dist/components/extension/FirstRunSetup.js +1175 -0
  195. package/dist/components/foundations/AlertDialog.d.ts +1 -1
  196. package/dist/components/foundations/AppIcon.d.ts +5 -2
  197. package/dist/components/foundations/Button.d.ts +1 -1
  198. package/dist/components/foundations/Button.js +1 -1
  199. package/dist/components/foundations/Card.d.ts +1 -1
  200. package/dist/components/foundations/Card.js +2 -2
  201. package/dist/components/foundations/Checkbox.js +1 -1
  202. package/dist/components/foundations/Collapsible.js +1 -1
  203. package/dist/components/foundations/ContextMenu.js +1 -1
  204. package/dist/components/foundations/DescriptionList.d.ts +3 -1
  205. package/dist/components/foundations/DescriptionList.js +2 -1
  206. package/dist/components/foundations/IconButton.d.ts +1 -1
  207. package/dist/components/foundations/LinkButton.d.ts +1 -1
  208. package/dist/components/foundations/Menubar.js +1 -1
  209. package/dist/components/foundations/Popover.js +1 -1
  210. package/dist/components/foundations/SearchField.js +1 -1
  211. package/dist/components/foundations/Select.js +1 -1
  212. package/dist/components/foundations/Stepper.js +1 -1
  213. package/dist/components/foundations/Toast.js +1 -1
  214. package/dist/components/foundations/Toggle.d.ts +2 -4
  215. package/dist/components/foundations/Toggle.js +3 -7
  216. package/dist/components/foundations/ToggleGroup.d.ts +2 -4
  217. package/dist/components/foundations/ToggleGroup.js +4 -16
  218. package/dist/components/foundations/icons.d.ts +2 -2
  219. package/dist/components/foundations/icons.js +2 -2
  220. package/dist/components/general-purpose/AccountSignInDialog.js +1 -1
  221. package/dist/components/general-purpose/ActionGuide.d.ts +1 -1
  222. package/dist/components/general-purpose/Commit.d.ts +1 -1
  223. package/dist/components/general-purpose/Commit.js +2 -2
  224. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  225. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  226. package/dist/components/general-purpose/FileTree.js +1 -1
  227. package/dist/components/general-purpose/PricingBillingToggle.js +1 -1
  228. package/dist/components/general-purpose/PricingPlanCard.js +3 -3
  229. package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
  230. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  231. package/dist/components/general-purpose/ResponsiveSidebarShell.js +2 -2
  232. package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
  233. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  234. package/dist/components/general-purpose/Terminal.d.ts +2 -2
  235. package/dist/components/general-purpose/Terminal.js +2 -2
  236. package/dist/components/general-purpose/TestResults.js +1 -1
  237. package/dist/components/general-purpose/ThemeModeControl.js +2 -2
  238. package/dist/components/general-purpose/WebPreview.d.ts +1 -1
  239. package/dist/components/general-purpose/WebPreview.js +1 -1
  240. package/dist/components/nanites/AgentConnection.js +3 -3
  241. package/dist/components/nanites/AgentToolDetail.d.ts +1 -1
  242. package/dist/components/nanites/AgentToolDetail.js +3 -3
  243. package/dist/connected-app-drafts-B9i69bkj.js +283 -0
  244. package/dist/{copy-button-BIfY5M-D.d.ts → copy-button-B09hHWd1.d.ts} +1 -1
  245. package/dist/{copy-button-BsmxSSeD.js → copy-button-z20VEXRF.js} +1 -1
  246. package/dist/{execution-result-DWVmm-bL.js → execution-result-DAuW4VWv.js} +30 -2
  247. package/dist/{icons-Dj6id76o.d.ts → icons-CReP3qYl.d.ts} +7 -1
  248. package/dist/{icons-Cn3vWZRs.js → icons-Yp99gmMC.js} +9 -3
  249. package/dist/{mcp-server-catalog-kaMWaSAL.d.ts → mcp-server-catalog-Di4N46H9.d.ts} +9 -3
  250. package/dist/navigation-link-zK6z8Gn3.d.ts +18 -0
  251. package/dist/scheduled-table-source-NZR1vFc_.js +38 -0
  252. package/dist/styles/accessibility.css +22 -9
  253. package/dist/styles/accordion.css +2 -2
  254. package/dist/styles/activity-header.css +14 -11
  255. package/dist/styles/activity.css +6 -13
  256. package/dist/styles/agent-attention.css +0 -23
  257. package/dist/styles/agent-chat.css +8 -3
  258. package/dist/styles/agent-connection.css +2 -2
  259. package/dist/styles/app-icon.css +7 -0
  260. package/dist/styles/app-top-bar.css +3 -11
  261. package/dist/styles/approval.css +2 -2
  262. package/dist/styles/base.css +3 -1
  263. package/dist/styles/browser-live-screen.css +3 -1
  264. package/dist/styles/browser-run-panel.css +2 -2
  265. package/dist/styles/button.css +13 -44
  266. package/dist/styles/card.css +42 -5
  267. package/dist/styles/chain-of-thought.css +2 -8
  268. package/dist/styles/chatgpt-sign-in-screen.css +91 -83
  269. package/dist/styles/checkbox-group.css +2 -1
  270. package/dist/styles/checkbox.css +4 -6
  271. package/dist/styles/code-block.css +2 -1
  272. package/dist/styles/codex-model-selector.css +2 -2
  273. package/dist/styles/collapsible.css +2 -2
  274. package/dist/styles/color-contrast.test.ts +1 -0
  275. package/dist/styles/combobox.css +5 -9
  276. package/dist/styles/commit.css +2 -7
  277. package/dist/styles/composer-link.css +0 -10
  278. package/dist/styles/connected-app-card.css +32 -32
  279. package/dist/styles/context-menu.css +2 -2
  280. package/dist/styles/description-list.css +14 -0
  281. package/dist/styles/execution-board.css +1 -1
  282. package/dist/styles/execution-result.css +161 -0
  283. package/dist/styles/file-tree.css +5 -9
  284. package/dist/styles/first-run-setup.css +751 -0
  285. package/dist/styles/index.css +5 -2
  286. package/dist/styles/inline-citation.css +2 -10
  287. package/dist/styles/manager-office.css +16 -43
  288. package/dist/styles/marker.css +2 -2
  289. package/dist/styles/media-preview-card.css +2 -7
  290. package/dist/styles/message-scroller.css +3 -2
  291. package/dist/styles/model-selector.css +19 -15
  292. package/dist/styles/navigation-menu.css +4 -4
  293. package/dist/styles/number-field.css +2 -3
  294. package/dist/styles/preview-card.css +2 -2
  295. package/dist/styles/prompt-input.css +5 -15
  296. package/dist/styles/queue.css +2 -7
  297. package/dist/styles/radio.css +4 -6
  298. package/dist/styles/recipes.css +25 -52
  299. package/dist/styles/resizable-side-panel.css +3 -2
  300. package/dist/styles/responsive-sidebar-shell.css +1 -6
  301. package/dist/styles/scroll-area.css +3 -2
  302. package/dist/styles/scrollbars.css +2 -0
  303. package/dist/styles/search-field.css +1 -2
  304. package/dist/styles/slider.css +4 -5
  305. package/dist/styles/sources.css +2 -7
  306. package/dist/styles/stepper.css +4 -4
  307. package/dist/styles/streamdown.css +8 -1
  308. package/dist/styles/subagent-run.css +123 -12
  309. package/dist/styles/switch.css +4 -7
  310. package/dist/styles/tabs.css +5 -4
  311. package/dist/styles/task.css +2 -7
  312. package/dist/styles/test-results.css +2 -7
  313. package/dist/styles/theme-mode-control.css +0 -6
  314. package/dist/styles/think-chat-activity.css +0 -8
  315. package/dist/styles/think-execution-status.css +1 -1
  316. package/dist/styles/think-execution-workbench.css +3 -3
  317. package/dist/styles/think-full-app.css +3 -2
  318. package/dist/styles/{think-routine.css → think-schedule.css} +64 -80
  319. package/dist/styles/toggle-group.css +9 -6
  320. package/dist/styles/toggle.css +23 -15
  321. package/dist/styles/toolbar.css +0 -6
  322. package/dist/styles/workspace-automation.css +233 -0
  323. package/dist/styles/workspace-concepts.css +18 -412
  324. package/dist/styles/workspace-entity-card.css +146 -0
  325. package/dist/styles/workspace-explorer.css +4 -3
  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-RD6IhOyh.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-CrNGUuBp.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 +2 -2
  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,32 +1,32 @@
1
- import { $ as TrashIcon, K as SpinnerIcon, z as PlayIcon } from "../../icons-Cn3vWZRs.js";
1
+ import { U as PlayIcon, Z as SpinnerIcon, it as TrashIcon } from "../../icons-Yp99gmMC.js";
2
2
  import { Button } from "../foundations/Button.js";
3
3
  import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
4
4
  import { n as mergeRefs } from "../../merge-refs-DAh6reu8.js";
5
+ import { n as executionErrorSummary } from "../../execution-result-DAuW4VWv.js";
5
6
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
6
7
  import { AlertDialog } from "../foundations/AlertDialog.js";
7
- import { t as executionErrorSummary } from "../../execution-result-DWVmm-bL.js";
8
8
  import * as React from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  import { mergeProps } from "@base-ui/react/merge-props";
11
- //#region src/components/agents-sdk/ThinkRoutineActions.tsx
12
- const RoutineActionsContext = React.createContext(null);
13
- /** Selected-routine mutation state for explicitly composed detail and controls. */
14
- function useRoutineActions() {
15
- const value = React.useContext(RoutineActionsContext);
16
- if (!value) throw new Error("Routine actions require ThinkRoutineActions.Root.");
11
+ //#region src/components/agents-sdk/ThinkScheduleActions.tsx
12
+ const ScheduleActionsContext = React.createContext(null);
13
+ /** Selected-schedule mutation state for explicitly composed detail and controls. */
14
+ function useScheduleActions() {
15
+ const value = React.useContext(ScheduleActionsContext);
16
+ if (!value) throw new Error("Schedule actions require ThinkScheduleActions.Root.");
17
17
  return value;
18
18
  }
19
- /** Connect an independently mounted detail to its selected routine action scope. */
20
- function useThinkRoutineActions() {
21
- const { busy, onEnabledChange } = useRoutineActions();
19
+ /** Connect an independently mounted detail to its selected schedule action scope. */
20
+ function useThinkScheduleActions() {
21
+ const { busy, onEnabledChange } = useScheduleActions();
22
22
  return {
23
23
  busy,
24
24
  onEnabledChange
25
25
  };
26
26
  }
27
- /** No layout or routing. Source/routine changes reset actions without remounting caller navigation. */
28
- function ThinkRoutineActionsRoot({ routine, sourceKey, onRun, onEnabledChange, onDelete, children }) {
29
- const identity = JSON.stringify([sourceKey, routine.id]);
27
+ /** No layout or routing. Source/schedule changes reset actions without remounting caller navigation. */
28
+ function ThinkScheduleActionsRoot({ schedule, sourceKey, onRun, onEnabledChange, onDelete, children }) {
29
+ const identity = JSON.stringify([sourceKey, schedule.id]);
30
30
  const initial = () => ({
31
31
  scope: { identity },
32
32
  busy: false,
@@ -72,32 +72,32 @@ function ThinkRoutineActionsRoot({ routine, sourceKey, onRun, onEnabledChange, o
72
72
  };
73
73
  return {
74
74
  scope: state.scope,
75
- name: routine.name,
75
+ name: schedule.name,
76
76
  busy: state.busy,
77
77
  error: state.action === "delete" ? null : state.error,
78
78
  deleteError: state.action === "delete" ? state.error : null,
79
79
  announcement: state.announcement,
80
- run: onRun ? () => perform("run", () => onRun(routine), `Started ${routine.name}.`) : void 0,
81
- remove: onDelete ? () => perform("delete", () => onDelete(routine), `Deleted ${routine.name}.`) : void 0,
80
+ run: onRun ? () => perform("run", () => onRun(schedule), `Started ${schedule.name}.`) : void 0,
81
+ remove: onDelete ? () => perform("delete", () => onDelete(schedule), `Deleted ${schedule.name}.`) : void 0,
82
82
  onEnabledChange: onEnabledChange ? (enabled) => {
83
- perform("enable", () => onEnabledChange(routine, enabled), `${routine.name} ${enabled ? "activated" : "paused"}.`);
83
+ perform("enable", () => onEnabledChange(schedule, enabled), `${schedule.name} ${enabled ? "activated" : "paused"}.`);
84
84
  } : void 0
85
85
  };
86
86
  }, [
87
87
  state,
88
- routine,
88
+ schedule,
89
89
  onRun,
90
90
  onDelete,
91
91
  onEnabledChange
92
92
  ]);
93
- return /* @__PURE__ */ jsx(RoutineActionsContext.Provider, {
93
+ return /* @__PURE__ */ jsx(ScheduleActionsContext.Provider, {
94
94
  value,
95
95
  children
96
96
  });
97
97
  }
98
98
  /** Explicit run control; preserves the complete shared button composition contract. */
99
- function ThinkRoutineRun({ label = "Run now", tooltip = label, children, ...props }) {
100
- const { busy, run } = useRoutineActions();
99
+ function ThinkScheduleRun({ label = "Run now", tooltip = label, children, ...props }) {
100
+ const { busy, run } = useScheduleActions();
101
101
  if (!run) return null;
102
102
  return /* @__PURE__ */ jsx(AppTopBar.Button, {
103
103
  ...mergeProps({
@@ -113,8 +113,8 @@ function ThinkRoutineRun({ label = "Run now", tooltip = label, children, ...prop
113
113
  });
114
114
  }
115
115
  /** Delete confirmation stays open on failure; only its source-scoped action can settle it. */
116
- function ThinkRoutineDelete(props) {
117
- const { scope, name, busy, deleteError: error, remove } = useRoutineActions();
116
+ function ThinkScheduleDelete(props) {
117
+ const { scope, name, busy, deleteError: error, remove } = useScheduleActions();
118
118
  const [dialog, setDialog] = React.useState({
119
119
  scope,
120
120
  open: false
@@ -174,16 +174,16 @@ function ThinkRoutineDelete(props) {
174
174
  }) })] })
175
175
  })] });
176
176
  }
177
- function ThinkRoutineError(props) {
178
- const { error } = useRoutineActions();
177
+ function ThinkScheduleError(props) {
178
+ const { error } = useScheduleActions();
179
179
  return error ? /* @__PURE__ */ jsx("div", {
180
180
  role: "alert",
181
181
  ...props,
182
182
  children: error
183
183
  }) : null;
184
184
  }
185
- function ThinkRoutineStatus(props) {
186
- const { announcement } = useRoutineActions();
185
+ function ThinkScheduleStatus(props) {
186
+ const { announcement } = useScheduleActions();
187
187
  return /* @__PURE__ */ jsx("div", {
188
188
  role: "status",
189
189
  "aria-atomic": "true",
@@ -192,12 +192,12 @@ function ThinkRoutineStatus(props) {
192
192
  children: announcement
193
193
  });
194
194
  }
195
- const ThinkRoutineActions = {
196
- Root: ThinkRoutineActionsRoot,
197
- Run: ThinkRoutineRun,
198
- Delete: ThinkRoutineDelete,
199
- Error: ThinkRoutineError,
200
- Status: ThinkRoutineStatus
195
+ const ThinkScheduleActions = {
196
+ Root: ThinkScheduleActionsRoot,
197
+ Run: ThinkScheduleRun,
198
+ Delete: ThinkScheduleDelete,
199
+ Error: ThinkScheduleError,
200
+ Status: ThinkScheduleStatus
201
201
  };
202
202
  //#endregion
203
- export { ThinkRoutineActions, useThinkRoutineActions };
203
+ export { ThinkScheduleActions, useThinkScheduleActions };
@@ -0,0 +1,24 @@
1
+ import { t as ThinkSchedule } from "../../ThinkSchedule-5S834QKW.js";
2
+ import * as React from "react";
3
+ //#region src/components/agents-sdk/ThinkScheduleBrowser.d.ts
4
+ export interface ThinkScheduleBrowserProps<TSchedule extends ThinkSchedule = ThinkSchedule> extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
5
+ schedules: readonly TSchedule[];
6
+ /** Schedule selected by the current application route. */
7
+ selectedScheduleId?: string | null;
8
+ /** Whether owner names are displayed and included in search. Defaults to true. */
9
+ showOwner?: boolean;
10
+ /** App-authored TanStack Router Link for each durable schedule destination. */
11
+ renderScheduleLink: (schedule: TSchedule) => React.ReactElement;
12
+ /** App-authored TanStack Router Link to the new-schedule route. */
13
+ newScheduleLink?: React.ReactElement;
14
+ /** UI-only response to ordinary same-tab activation, including keyboard clicks.
15
+ * Modified, non-primary, download, and other-target clicks leave this UI unchanged.
16
+ * Receives the original React anchor event; routing remains with the rendered link.
17
+ */
18
+ onScheduleLinkClick?: React.MouseEventHandler<HTMLAnchorElement>;
19
+ }
20
+ /** Searchable, filterable navigation for an app-owned collection of Think schedules. */
21
+ export declare function ThinkScheduleBrowser<TSchedule extends ThinkSchedule = ThinkSchedule>({ className, schedules, selectedScheduleId, showOwner, renderScheduleLink, newScheduleLink, onScheduleLinkClick, ref, ...props }: ThinkScheduleBrowserProps<TSchedule> & {
22
+ ref?: React.Ref<HTMLElement>;
23
+ }): React.JSX.Element;
24
+ //#endregion
@@ -1,33 +1,38 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { B as PlusIcon } from "../../icons-Cn3vWZRs.js";
2
+ import { W as PlusIcon } from "../../icons-Yp99gmMC.js";
3
3
  import { buttonVariants } from "../foundations/Button.js";
4
4
  import { Tooltip } from "../foundations/Tooltip.js";
5
5
  import { t as capitalize } from "../../format-CWaZEp5o.js";
6
- import { EmptyState } from "../foundations/EmptyState.js";
7
6
  import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
7
+ import { getThinkScheduleNextRun } from "./ThinkSchedule.js";
8
+ import { EmptyState } from "../foundations/EmptyState.js";
8
9
  import { SearchField } from "../foundations/SearchField.js";
9
10
  import { ToggleGroup } from "../foundations/ToggleGroup.js";
10
- import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
11
11
  import * as React from "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
- //#region src/components/agents-sdk/ThinkRoutineBrowser.tsx
14
- function filterRoutines(routines, filter, query, showOwner) {
13
+ //#region src/components/agents-sdk/ThinkScheduleBrowser.tsx
14
+ const SCHEDULE_FILTERS = [
15
+ "all",
16
+ "active",
17
+ "paused"
18
+ ];
19
+ function filterSchedules(schedules, filter, query, showOwner) {
15
20
  const normalizedQuery = query.trim().toLocaleLowerCase();
16
- return routines.filter((routine) => {
17
- if (filter === "active" && !routine.enabled) return false;
18
- if (filter === "paused" && routine.enabled) return false;
21
+ return schedules.filter((schedule) => {
22
+ if (filter === "active" && !schedule.enabled) return false;
23
+ if (filter === "paused" && schedule.enabled) return false;
19
24
  if (!normalizedQuery) return true;
20
- return `${routine.name} ${routine.description ?? ""}${showOwner ? ` ${routine.owner.name}` : ""}`.toLocaleLowerCase().includes(normalizedQuery);
25
+ return `${schedule.name} ${schedule.description ?? ""}${showOwner ? ` ${schedule.owner.name}` : ""}`.toLocaleLowerCase().includes(normalizedQuery);
21
26
  });
22
27
  }
23
- /** Searchable, filterable navigation for an app-owned collection of Think routines. */
24
- function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner = true, renderRoutineLink, createRoutineLink, onRoutineLinkClick, ref, ...props }) {
28
+ /** Searchable, filterable navigation for an app-owned collection of Think schedules. */
29
+ function ThinkScheduleBrowser({ className, schedules, selectedScheduleId, showOwner = true, renderScheduleLink, newScheduleLink, onScheduleLinkClick, ref, ...props }) {
25
30
  const [filter, setFilter] = React.useState("all");
26
31
  const [query, setQuery] = React.useState("");
27
- const visibleRoutines = filterRoutines(routines, filter, query, showOwner);
32
+ const visibleSchedules = filterSchedules(schedules, filter, query, showOwner);
28
33
  return /* @__PURE__ */ jsxs("nav", {
29
34
  ref,
30
- className: cx("think-routine-browser", "think-routine__browser", className),
35
+ className: cx("think-schedule__browser", className),
31
36
  ...props,
32
37
  children: [
33
38
  /* @__PURE__ */ jsx("h2", {
@@ -35,10 +40,10 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
35
40
  children: "Schedules"
36
41
  }),
37
42
  /* @__PURE__ */ jsxs("div", {
38
- className: "think-routine__browser-toolbar",
43
+ className: "think-schedule__browser-toolbar",
39
44
  children: [/* @__PURE__ */ jsx(ToggleGroup.Root, {
40
45
  segmented: true,
41
- className: "think-routine__filters",
46
+ className: "think-schedule__filters",
42
47
  size: "sm",
43
48
  "aria-label": "Filter schedules",
44
49
  value: [filter],
@@ -47,18 +52,14 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
47
52
  if (!nextFilter) return;
48
53
  setFilter(nextFilter);
49
54
  },
50
- children: [
51
- "all",
52
- "active",
53
- "paused"
54
- ].map((value) => /* @__PURE__ */ jsx(ToggleGroup.Item, {
55
+ children: SCHEDULE_FILTERS.map((value) => /* @__PURE__ */ jsx(ToggleGroup.Item, {
55
56
  type: "button",
56
57
  value,
57
58
  children: capitalize(value)
58
59
  }, value))
59
- }), createRoutineLink ? /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, {
60
+ }), newScheduleLink ? /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, {
60
61
  render: /* @__PURE__ */ jsx(NavigationLink, {
61
- render: createRoutineLink,
62
+ render: newScheduleLink,
62
63
  className: buttonVariants({
63
64
  variant: "ghost",
64
65
  color: "neutral",
@@ -75,8 +76,8 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
75
76
  }) })] }) : null]
76
77
  }),
77
78
  /* @__PURE__ */ jsxs(SearchField.Root, {
78
- className: "think-routine__search",
79
- name: "routine-search",
79
+ className: "think-schedule__search",
80
+ name: "schedule-search",
80
81
  children: [/* @__PURE__ */ jsx(SearchField.Label, {
81
82
  className: "sigvelo-visually-hidden",
82
83
  children: "Search schedules"
@@ -91,56 +92,57 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
91
92
  role: "status",
92
93
  "aria-atomic": "true",
93
94
  children: [
94
- visibleRoutines.length,
95
+ visibleSchedules.length,
95
96
  " ",
96
- visibleRoutines.length === 1 ? "schedule" : "schedules",
97
+ visibleSchedules.length === 1 ? "schedule" : "schedules",
97
98
  " shown."
98
99
  ]
99
100
  }),
100
- visibleRoutines.length ? /* @__PURE__ */ jsx("ul", {
101
- className: "think-routine__routine-list",
101
+ visibleSchedules.length ? /* @__PURE__ */ jsx("ul", {
102
+ className: "think-schedule__schedule-list",
102
103
  role: "list",
103
- children: visibleRoutines.map((routine) => {
104
- const selected = routine.id === selectedRoutineId;
104
+ children: visibleSchedules.map((schedule) => {
105
+ const selected = schedule.id === selectedScheduleId;
106
+ const nextRun = schedule.enabled ? getThinkScheduleNextRun(schedule) : null;
105
107
  return /* @__PURE__ */ jsx("li", {
106
108
  "data-selected": selected || void 0,
107
109
  children: /* @__PURE__ */ jsxs(NavigationLink, {
108
- render: renderRoutineLink(routine),
110
+ render: renderScheduleLink(schedule),
109
111
  className: buttonVariants({
110
112
  variant: "ghost",
111
113
  color: "neutral",
112
114
  size: "sm",
113
- className: "think-routine-browser__routine"
115
+ className: "think-schedule__schedule-link"
114
116
  }),
115
117
  "aria-current": selected ? "page" : void 0,
116
118
  onClick: (event) => {
117
- if (isPlainPrimaryLinkActivation(event)) onRoutineLinkClick?.(event);
119
+ if (isPlainPrimaryLinkActivation(event)) onScheduleLinkClick?.(event);
118
120
  },
119
121
  children: [
120
122
  /* @__PURE__ */ jsx("span", {
121
- className: "think-routine__routine-status",
122
- "data-enabled": routine.enabled || void 0,
123
+ className: "think-schedule__schedule-status",
124
+ "data-enabled": schedule.enabled || void 0,
123
125
  "aria-hidden": "true"
124
126
  }),
125
127
  /* @__PURE__ */ jsx("span", {
126
128
  className: "sigvelo-visually-hidden",
127
- children: routine.enabled ? "Active" : "Paused"
129
+ children: schedule.enabled ? "Active" : "Paused"
128
130
  }),
129
131
  /* @__PURE__ */ jsxs("span", {
130
- className: "think-routine__routine-copy",
132
+ className: "think-schedule__schedule-copy",
131
133
  children: [
132
- /* @__PURE__ */ jsx("strong", { children: routine.name }),
133
- /* @__PURE__ */ jsx("span", { children: routine.task.schedule }),
134
- showOwner || routine.schedule ? /* @__PURE__ */ jsxs("small", { children: [
135
- showOwner ? routine.owner.name : null,
136
- showOwner && routine.schedule ? " · " : null,
137
- routine.schedule ? /* @__PURE__ */ jsxs(Fragment, { children: ["Next ", getThinkRoutineNextRun(routine)] }) : null
134
+ /* @__PURE__ */ jsx("strong", { children: schedule.name }),
135
+ /* @__PURE__ */ jsx("span", { children: schedule.task.schedule }),
136
+ showOwner || nextRun ? /* @__PURE__ */ jsxs("small", { children: [
137
+ showOwner ? schedule.owner.name : null,
138
+ showOwner && nextRun ? " · " : null,
139
+ nextRun ? /* @__PURE__ */ jsxs(Fragment, { children: ["Next ", nextRun] }) : null
138
140
  ] }) : null
139
141
  ]
140
142
  })
141
143
  ]
142
144
  })
143
- }, routine.id);
145
+ }, schedule.id);
144
146
  })
145
147
  }) : /* @__PURE__ */ jsx(EmptyState, {
146
148
  title: "No matching schedules",
@@ -150,4 +152,4 @@ function ThinkRoutineBrowser({ className, routines, selectedRoutineId, showOwner
150
152
  });
151
153
  }
152
154
  //#endregion
153
- export { ThinkRoutineBrowser };
155
+ export { ThinkScheduleBrowser };
@@ -0,0 +1,19 @@
1
+ import { t as WorkspaceAutomation } from "../../WorkspaceAutomation-B2Pdz_SU.js";
2
+ import { r as ThinkScheduleRunOf, t as ThinkSchedule } from "../../ThinkSchedule-5S834QKW.js";
3
+ import * as React from "react";
4
+ //#region src/components/agents-sdk/ThinkScheduleDetail.d.ts
5
+ export interface ThinkScheduleDetailProps<TSchedule extends ThinkSchedule = ThinkSchedule> extends React.HTMLAttributes<HTMLElement> {
6
+ schedule: TSchedule;
7
+ /** Saved automation metadata, including friendly input labels. */
8
+ automation?: WorkspaceAutomation;
9
+ busy?: boolean;
10
+ showOwner?: boolean;
11
+ onEnabledChange?: (enabled: boolean) => void;
12
+ /** App-authored TanStack Router Link for each recent run. */
13
+ renderRunLink?: (run: ThinkScheduleRunOf<TSchedule>) => React.ReactElement;
14
+ }
15
+ /** Readable definition, schedule settings, and recent runs for one schedule. */
16
+ export declare function ThinkScheduleDetail<TSchedule extends ThinkSchedule = ThinkSchedule>({ busy, className, schedule, automation, showOwner, onEnabledChange, renderRunLink, ref, ...props }: ThinkScheduleDetailProps<TSchedule> & {
17
+ ref?: React.Ref<HTMLElement>;
18
+ }): React.JSX.Element;
19
+ //#endregion
@@ -0,0 +1,139 @@
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
+ import { buttonVariants } from "../foundations/Button.js";
3
+ import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
4
+ import { DescriptionList } from "../foundations/DescriptionList.js";
5
+ import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
6
+ import { getThinkScheduleNextRun } from "./ThinkSchedule.js";
7
+ import { n as executionResultLabel, t as ExecutionResult } from "../../ExecutionResult-DmC21cll.js";
8
+ import { EmptyState } from "../foundations/EmptyState.js";
9
+ import { Switch } from "../foundations/Switch.js";
10
+ import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
11
+ import * as React from "react";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ //#region src/components/agents-sdk/ThinkScheduleDetail.tsx
14
+ function ScheduleRuns({ runs, renderRunLink }) {
15
+ const titleId = React.useId();
16
+ return /* @__PURE__ */ jsxs("section", {
17
+ className: "think-schedule__runs",
18
+ "aria-labelledby": titleId,
19
+ children: [/* @__PURE__ */ jsx("div", {
20
+ className: "think-schedule__section-heading",
21
+ children: /* @__PURE__ */ jsx("h2", {
22
+ id: titleId,
23
+ children: "Recent runs"
24
+ })
25
+ }), runs.length ? /* @__PURE__ */ jsx("ol", {
26
+ className: "think-schedule__run-list",
27
+ children: runs.map((run) => {
28
+ const kind = isThinkSubmissionRun(run) ? "submission" : "workflow";
29
+ const content = /* @__PURE__ */ jsx(ThinkExecutionRunSummary, { run });
30
+ const runClassName = buttonVariants({
31
+ variant: "ghost",
32
+ color: "neutral",
33
+ size: "sm",
34
+ className: "think-schedule__run"
35
+ });
36
+ return /* @__PURE__ */ jsx("li", { children: renderRunLink ? /* @__PURE__ */ jsx(NavigationLink, {
37
+ render: renderRunLink(run),
38
+ className: runClassName,
39
+ "aria-label": getThinkExecutionRunAccessibleName(run),
40
+ children: content
41
+ }) : /* @__PURE__ */ jsx("div", {
42
+ className: "think-schedule__run",
43
+ children: content
44
+ }) }, `${kind}:${getThinkExecutionRunId(run)}`);
45
+ })
46
+ }) : /* @__PURE__ */ jsx(EmptyState, {
47
+ className: "think-schedule__empty-runs",
48
+ description: "Run this schedule now or wait for its next occurrence."
49
+ })]
50
+ });
51
+ }
52
+ /** Readable definition, schedule settings, and recent runs for one schedule. */
53
+ function ThinkScheduleDetail({ busy = false, className, schedule, automation, showOwner = true, onEnabledChange, renderRunLink, ref, ...props }) {
54
+ const titleId = React.useId();
55
+ const definitionId = React.useId();
56
+ const settingsId = React.useId();
57
+ const enabledLabelId = React.useId();
58
+ return /* @__PURE__ */ jsxs("article", {
59
+ ref,
60
+ className: cx("think-schedule__detail", className),
61
+ "aria-labelledby": titleId,
62
+ ...props,
63
+ children: [
64
+ /* @__PURE__ */ jsx("header", {
65
+ className: "think-schedule__detail-header",
66
+ children: /* @__PURE__ */ jsxs("div", {
67
+ className: "think-schedule__detail-heading",
68
+ children: [/* @__PURE__ */ jsx("h1", {
69
+ id: titleId,
70
+ children: schedule.name
71
+ }), schedule.description ? /* @__PURE__ */ jsx("p", { children: schedule.description }) : null]
72
+ })
73
+ }),
74
+ /* @__PURE__ */ jsxs("div", {
75
+ className: "think-schedule__detail-grid",
76
+ children: [/* @__PURE__ */ jsxs("section", {
77
+ className: "think-schedule__definition",
78
+ "aria-labelledby": definitionId,
79
+ children: [/* @__PURE__ */ jsx("div", {
80
+ className: "think-schedule__section-heading",
81
+ children: /* @__PURE__ */ jsx("h2", {
82
+ id: definitionId,
83
+ children: "automation" in schedule.task ? automation?.name ?? "Automation" : "Instructions"
84
+ })
85
+ }), "automation" in schedule.task ? /* @__PURE__ */ jsx(DescriptionList.Root, {
86
+ align: "start",
87
+ variant: "divided",
88
+ children: Object.entries(schedule.task.automation.args ?? {}).map(([name, value]) => /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: automation?.parameters.find((parameter) => parameter.name === name)?.label ?? executionResultLabel(name) }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: /* @__PURE__ */ jsx(ExecutionResult, {
89
+ result: value,
90
+ showSummary: false
91
+ }) })] }, name))
92
+ }) : /* @__PURE__ */ jsx("p", {
93
+ className: "think-schedule__instructions",
94
+ children: typeof schedule.task.prompt === "string" ? schedule.task.prompt : "Runs an app-defined scheduled handler."
95
+ })]
96
+ }), /* @__PURE__ */ jsxs("aside", {
97
+ className: "think-schedule__settings",
98
+ "aria-labelledby": settingsId,
99
+ children: [
100
+ /* @__PURE__ */ jsx("div", {
101
+ className: "think-schedule__section-heading",
102
+ children: /* @__PURE__ */ jsx("h2", {
103
+ id: settingsId,
104
+ children: "Schedule"
105
+ })
106
+ }),
107
+ /* @__PURE__ */ jsxs("dl", {
108
+ className: "think-schedule__facts",
109
+ children: [
110
+ /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: schedule.task.schedule })] }),
111
+ schedule.alarm ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Next run" }), /* @__PURE__ */ jsx("dd", { children: getThinkScheduleNextRun(schedule) })] }) : null,
112
+ showOwner ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Agent" }), /* @__PURE__ */ jsx("dd", { children: schedule.owner.name })] }) : null
113
+ ]
114
+ }),
115
+ /* @__PURE__ */ jsxs("div", {
116
+ className: "think-schedule__status-control",
117
+ children: [/* @__PURE__ */ jsx("div", {
118
+ id: enabledLabelId,
119
+ children: /* @__PURE__ */ jsx("strong", { children: "Enabled" })
120
+ }), onEnabledChange ? /* @__PURE__ */ jsx(Switch.Root, {
121
+ "aria-labelledby": enabledLabelId,
122
+ checked: schedule.enabled,
123
+ disabled: busy,
124
+ onCheckedChange: onEnabledChange,
125
+ children: /* @__PURE__ */ jsx(Switch.Thumb, {})
126
+ }) : /* @__PURE__ */ jsx("span", { children: schedule.enabled ? "On" : "Off" })]
127
+ })
128
+ ]
129
+ })]
130
+ }),
131
+ /* @__PURE__ */ jsx(ScheduleRuns, {
132
+ runs: schedule.runs,
133
+ renderRunLink
134
+ })
135
+ ]
136
+ });
137
+ }
138
+ //#endregion
139
+ export { ThinkScheduleDetail };
@@ -0,0 +1,58 @@
1
+ import { i as WorkspaceAutomationInvocation, t as WorkspaceAutomation } from "../../WorkspaceAutomation-B2Pdz_SU.js";
2
+ import * as React from "react";
3
+ import { ThinkScheduledTaskSchedule } from "@cloudflare/think";
4
+ //#region src/components/agents-sdk/ThinkScheduleForm.d.ts
5
+ /** Parsed schedule fields required to prefill the editor. */
6
+ export type ThinkScheduleFormTiming = {
7
+ kind: "interval";
8
+ intervalMs: number;
9
+ } | {
10
+ kind: "wall-clock";
11
+ timezone: string;
12
+ hour: number;
13
+ minute: number;
14
+ days: "daily" | "weekday" | readonly number[];
15
+ };
16
+ /** Existing schedule fields required by the edit form. */
17
+ export interface ThinkScheduleFormSchedule {
18
+ name: string;
19
+ task: {
20
+ prompt: string;
21
+ } | {
22
+ automation: WorkspaceAutomationInvocation;
23
+ };
24
+ parsedSchedule: ThinkScheduleFormTiming;
25
+ }
26
+ /** Schedule draft emitted by the schedule form. */
27
+ export type ThinkScheduleFormValue = {
28
+ name: string;
29
+ schedule: ThinkScheduledTaskSchedule;
30
+ } & ({
31
+ prompt: string;
32
+ } | {
33
+ automation: WorkspaceAutomationInvocation;
34
+ });
35
+ export interface ThinkScheduleFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSubmit"> {
36
+ /** Existing schedule projected through Think's schedule parser. Omit when creating. */
37
+ schedule?: ThinkScheduleFormSchedule;
38
+ /** Selects an automation when creating a schedule. Existing schedules take precedence. */
39
+ initialAutomation?: WorkspaceAutomationInvocation;
40
+ /** Saved automations with the same input metadata used by the execution board. */
41
+ automations?: readonly WorkspaceAutomation[];
42
+ /** Keeps the automation chooser unavailable while its catalog loads. */
43
+ automationsLoading?: boolean;
44
+ /** Readable catalog loading failure; existing schedule values remain available. */
45
+ automationsError?: string;
46
+ /** App-authored link back to the schedule or automation that opened this form. */
47
+ cancelLink?: React.ReactElement;
48
+ /** Accessible name for the back link, matching its actual destination. */
49
+ cancelLabel?: string;
50
+ /** Receives the validated schedule fields when the user creates or updates the schedule. */
51
+ onSubmit: (value: ThinkScheduleFormValue) => void | Promise<void>;
52
+ }
53
+ /** Create/edit surface for scheduled instructions or an automation. */
54
+ export declare function ThinkScheduleForm({ cancelLink, cancelLabel, className, schedule, initialAutomation, automations, automationsLoading, automationsError, onSubmit, ref, ...props }: ThinkScheduleFormProps & {
55
+ /** Ref forwarded to the component's rendered root element. */
56
+ ref?: React.Ref<HTMLDivElement>;
57
+ }): React.JSX.Element;
58
+ //#endregion