@mcp-b/react-components 0.63.0 → 0.64.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 (484) hide show
  1. package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
  2. package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
  3. package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
  4. package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
  5. package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
  6. package/dist/CodeBlock-dt0L8md0.js +892 -0
  7. package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
  8. package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
  9. package/dist/ExecutionResult-CXnGcmM4.js +671 -0
  10. package/dist/FileTree-CjfzpN6X.js +968 -0
  11. package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
  12. package/dist/ManagerOffice-T79utm-P.js +2469 -0
  13. package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
  14. package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
  15. package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
  16. package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
  17. package/dist/SetupChecklist-DwscX3Bw.js +230 -0
  18. package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
  19. package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
  20. package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
  21. package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
  22. package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
  23. package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
  24. package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
  25. package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
  26. package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
  27. package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
  28. package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
  29. package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
  30. package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
  31. package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
  32. package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
  33. package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
  34. package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
  35. package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
  36. package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
  37. package/dist/assets/desktop/README.md +43 -0
  38. package/dist/assets/desktop/automations.svg +19 -0
  39. package/dist/assets/desktop/document.svg +24 -0
  40. package/dist/assets/desktop/folder.png +0 -0
  41. package/dist/assets/desktop/mail.svg +31 -0
  42. package/dist/assets/desktop/settings.svg +9 -0
  43. package/dist/assets/desktop/trash-full.svg +23 -0
  44. package/dist/assets/desktop/trash.svg +19 -0
  45. package/dist/attachment-preview-DeRqFjdz.js +68 -0
  46. package/dist/attempt-CySQHJsF.js +21 -0
  47. package/dist/command-search-1fjmCBBo.js +34 -0
  48. package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
  49. package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
  50. package/dist/components/agents-sdk/AgentActivity.js +78 -31
  51. package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
  52. package/dist/components/agents-sdk/AgentChat.js +1113 -386
  53. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  54. package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
  55. package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
  56. package/dist/components/agents-sdk/AgentComputer.js +8045 -0
  57. package/dist/components/agents-sdk/AgentEvent.js +164 -21
  58. package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
  59. package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
  60. package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
  61. package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
  62. package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
  63. package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
  64. package/dist/components/agents-sdk/BrowserReplay.js +298 -133
  65. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
  66. package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
  67. package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
  68. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  69. package/dist/components/agents-sdk/EmployeeApp.js +108 -46
  70. package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
  71. package/dist/components/agents-sdk/EmployeeChat.js +500 -99
  72. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  73. package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
  74. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  75. package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
  76. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  77. package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
  78. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  79. package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
  80. package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
  81. package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
  82. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  83. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  84. package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
  85. package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
  86. package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
  87. package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
  88. package/dist/components/agents-sdk/McpServerIcon.js +57 -14
  89. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  90. package/dist/components/agents-sdk/McpServerPicker.js +542 -158
  91. package/dist/components/agents-sdk/ModelSelector.js +1151 -253
  92. package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
  93. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  94. package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
  95. package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
  96. package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
  97. package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
  98. package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
  99. package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
  100. package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
  101. package/dist/components/agents-sdk/ThinkChat.js +321 -132
  102. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  103. package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
  104. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  105. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
  106. package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
  107. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
  108. package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
  109. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  110. package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
  111. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
  112. package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
  113. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
  114. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
  115. package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
  116. package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
  117. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
  118. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
  119. package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
  120. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
  121. package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
  122. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  123. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
  124. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  125. package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
  126. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
  127. package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
  128. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  129. package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
  130. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
  131. package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
  132. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  133. package/dist/components/agents-sdk/Workspace.js +491 -166
  134. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  135. package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
  136. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  137. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
  138. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
  139. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
  140. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  141. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  142. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
  143. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
  144. package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
  145. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
  146. package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
  147. package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
  148. package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
  149. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
  150. package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
  151. package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
  152. package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
  153. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
  154. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
  155. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
  156. package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
  157. package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
  158. package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
  159. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  160. package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
  161. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
  162. package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
  163. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  164. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  165. package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
  166. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
  167. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  168. package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
  169. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  170. package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
  171. package/dist/components/ai-sdk/Activity.js +768 -192
  172. package/dist/components/ai-sdk/AgentAttention.js +286 -58
  173. package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
  174. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
  175. package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
  176. package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
  177. package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
  178. package/dist/components/ai-sdk/Approval.js +574 -172
  179. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  180. package/dist/components/ai-sdk/Artifact.js +535 -128
  181. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  182. package/dist/components/ai-sdk/ChainOfThought.js +404 -80
  183. package/dist/components/ai-sdk/Checkpoint.js +229 -45
  184. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  185. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  186. package/dist/components/ai-sdk/ComposerLink.js +216 -48
  187. package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
  188. package/dist/components/ai-sdk/Context.js +737 -178
  189. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  190. package/dist/components/ai-sdk/Conversation.js +305 -68
  191. package/dist/components/ai-sdk/ExpansionState.js +74 -15
  192. package/dist/components/ai-sdk/Goal.js +435 -116
  193. package/dist/components/ai-sdk/InlineCitation.js +313 -76
  194. package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
  195. package/dist/components/ai-sdk/Message.d.ts +1 -1
  196. package/dist/components/ai-sdk/Message.js +1010 -195
  197. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  198. package/dist/components/ai-sdk/MessageScroller.js +264 -46
  199. package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
  200. package/dist/components/ai-sdk/Plan.js +639 -128
  201. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  202. package/dist/components/ai-sdk/PromptInput.js +2735 -794
  203. package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
  204. package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
  205. package/dist/components/ai-sdk/Queue.js +792 -154
  206. package/dist/components/ai-sdk/Reasoning.js +268 -69
  207. package/dist/components/ai-sdk/Sources.js +226 -63
  208. package/dist/components/ai-sdk/Task.js +294 -71
  209. package/dist/components/ai-sdk/ToolApproval.js +126 -26
  210. package/dist/components/ai-sdk/ToolInvocation.js +112 -22
  211. package/dist/components/extension/ChatGptSignInScreen.js +1 -82
  212. package/dist/components/extension/CodexModelSelector.d.ts +1 -1
  213. package/dist/components/extension/CodexModelSelector.js +467 -146
  214. package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
  215. package/dist/components/extension/ConversationTabPicker.js +254 -76
  216. package/dist/components/extension/FirstRunSetup.d.ts +61 -35
  217. package/dist/components/extension/FirstRunSetup.js +3834 -1012
  218. package/dist/components/foundations/Accordion.js +186 -41
  219. package/dist/components/foundations/AlertDialog.js +425 -97
  220. package/dist/components/foundations/AppIcon.d.ts +13 -13
  221. package/dist/components/foundations/AppIcon.js +183 -34
  222. package/dist/components/foundations/Autocomplete.js +408 -89
  223. package/dist/components/foundations/Avatar.d.ts +100 -2
  224. package/dist/components/foundations/Avatar.js +204 -44
  225. package/dist/components/foundations/Button.js +64 -13
  226. package/dist/components/foundations/Card.js +357 -63
  227. package/dist/components/foundations/Checkbox.js +82 -17
  228. package/dist/components/foundations/CheckboxGroup.js +266 -58
  229. package/dist/components/foundations/Collapsible.d.ts +2 -1
  230. package/dist/components/foundations/Collapsible.js +129 -26
  231. package/dist/components/foundations/Combobox.js +408 -89
  232. package/dist/components/foundations/ContextMenu.d.ts +2 -2
  233. package/dist/components/foundations/ContextMenu.js +591 -117
  234. package/dist/components/foundations/DescriptionList.js +159 -28
  235. package/dist/components/foundations/Dialog.js +373 -89
  236. package/dist/components/foundations/EmptyState.js +86 -23
  237. package/dist/components/foundations/Favicon.d.ts +17 -0
  238. package/dist/components/foundations/Favicon.js +62 -0
  239. package/dist/components/foundations/Field.js +525 -108
  240. package/dist/components/foundations/Fieldset.js +115 -23
  241. package/dist/components/foundations/Form.js +38 -9
  242. package/dist/components/foundations/FormattedDate.d.ts +19 -5
  243. package/dist/components/foundations/FormattedDate.js +82 -12
  244. package/dist/components/foundations/IconButton.d.ts +1 -1
  245. package/dist/components/foundations/IconButton.js +114 -17
  246. package/dist/components/foundations/Input.js +38 -9
  247. package/dist/components/foundations/Kbd.js +55 -10
  248. package/dist/components/foundations/Label.js +56 -12
  249. package/dist/components/foundations/LinkButton.js +67 -15
  250. package/dist/components/foundations/Marker.js +138 -29
  251. package/dist/components/foundations/Menu.d.ts +1 -1
  252. package/dist/components/foundations/Menu.js +634 -136
  253. package/dist/components/foundations/Menubar.d.ts +2 -2
  254. package/dist/components/foundations/Menubar.js +685 -130
  255. package/dist/components/foundations/Meter.js +186 -41
  256. package/dist/components/foundations/NavigationMenu.js +426 -95
  257. package/dist/components/foundations/NumberField.js +223 -49
  258. package/dist/components/foundations/Popover.js +398 -88
  259. package/dist/components/foundations/PreviewCard.js +234 -53
  260. package/dist/components/foundations/Progress.js +117 -25
  261. package/dist/components/foundations/RadioGroup.d.ts +13 -5
  262. package/dist/components/foundations/RadioGroup.js +132 -25
  263. package/dist/components/foundations/ScrollArea.js +230 -51
  264. package/dist/components/foundations/SearchField.d.ts +8 -3
  265. package/dist/components/foundations/SearchField.js +129 -28
  266. package/dist/components/foundations/Select.js +648 -145
  267. package/dist/components/foundations/Separator.js +61 -12
  268. package/dist/components/foundations/Slider.js +260 -57
  269. package/dist/components/foundations/Stepper.d.ts +1 -1
  270. package/dist/components/foundations/Stepper.js +561 -127
  271. package/dist/components/foundations/Switch.js +82 -18
  272. package/dist/components/foundations/Tabs.d.ts +2 -2
  273. package/dist/components/foundations/Tabs.js +282 -53
  274. package/dist/components/foundations/Textarea.js +43 -9
  275. package/dist/components/foundations/ThemeProvider.js +138 -52
  276. package/dist/components/foundations/Toast.d.ts +10 -2
  277. package/dist/components/foundations/Toast.js +322 -75
  278. package/dist/components/foundations/Toggle.d.ts +5 -2
  279. package/dist/components/foundations/Toggle.js +51 -10
  280. package/dist/components/foundations/ToggleGroup.d.ts +3 -3
  281. package/dist/components/foundations/ToggleGroup.js +215 -59
  282. package/dist/components/foundations/Toolbar.js +249 -61
  283. package/dist/components/foundations/Tooltip.d.ts +3 -3
  284. package/dist/components/foundations/Tooltip.js +311 -55
  285. package/dist/components/foundations/TransitionSurface.js +43 -9
  286. package/dist/components/foundations/icons.d.ts +2 -2
  287. package/dist/components/foundations/icons.js +2 -2
  288. package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
  289. package/dist/components/general-purpose/ActionGuide.js +290 -64
  290. package/dist/components/general-purpose/AppFrame.js +72 -14
  291. package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
  292. package/dist/components/general-purpose/AppTopBar.js +349 -60
  293. package/dist/components/general-purpose/BrandLoading.js +37 -9
  294. package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
  295. package/dist/components/general-purpose/CommandPalette.js +271 -0
  296. package/dist/components/general-purpose/Commit.d.ts +1 -1
  297. package/dist/components/general-purpose/Commit.js +937 -167
  298. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  299. package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
  300. package/dist/components/general-purpose/FileTree.d.ts +20 -7
  301. package/dist/components/general-purpose/FileTree.js +1 -1
  302. package/dist/components/general-purpose/ListDetail.d.ts +84 -0
  303. package/dist/components/general-purpose/ListDetail.js +423 -0
  304. package/dist/components/general-purpose/NotificationPrompt.js +20 -11
  305. package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
  306. package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
  307. package/dist/components/general-purpose/PricingFAQ.js +53 -12
  308. package/dist/components/general-purpose/PricingPage.js +376 -139
  309. package/dist/components/general-purpose/PricingPlanCard.js +209 -84
  310. package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
  311. package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
  312. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  313. package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
  314. package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
  315. package/dist/components/general-purpose/ScreenStack.js +427 -0
  316. package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
  317. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  318. package/dist/components/general-purpose/StatusScreen.js +82 -24
  319. package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
  320. package/dist/components/general-purpose/SwipeActions.js +357 -0
  321. package/dist/components/general-purpose/Terminal.d.ts +22 -48
  322. package/dist/components/general-purpose/Terminal.js +320 -174
  323. package/dist/components/general-purpose/TestResults.js +975 -196
  324. package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
  325. package/dist/components/general-purpose/ThemeModeControl.js +66 -23
  326. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
  327. package/dist/components/general-purpose/WallpaperPicker.js +180 -0
  328. package/dist/components/general-purpose/WebPreview.d.ts +5 -7
  329. package/dist/components/general-purpose/WebPreview.js +770 -203
  330. package/dist/components/nanites/AgentConnection.js +323 -84
  331. package/dist/components/nanites/AgentToolDetail.js +233 -53
  332. package/dist/components/nanites/GithubMotionMark.js +37 -9
  333. package/dist/components/nanites/NaniteScene.js +535 -323
  334. package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
  335. package/dist/container-width-C43ccJ84.js +17 -0
  336. package/dist/context-Ddsp8HgD.js +43 -0
  337. package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
  338. package/dist/copy-button-DWBVJR6D.js +118 -0
  339. package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
  340. package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
  341. package/dist/icons-nLTnB9kd.js +470 -0
  342. package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
  343. package/dist/motion-CGM3i6lX.js +319 -0
  344. package/dist/motion-preferences-6qsDIDvH.js +13 -0
  345. package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
  346. package/dist/progress-ring-BO649JA9.js +79 -0
  347. package/dist/provider-logos-Ceu7iYFx.js +362 -0
  348. package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
  349. package/dist/styles/accessibility.css +26 -0
  350. package/dist/styles/accordion.css +0 -2
  351. package/dist/styles/activity.css +20 -12
  352. package/dist/styles/agent-attention.css +31 -10
  353. package/dist/styles/agent-chat.css +7 -6
  354. package/dist/styles/agent-computer-motion-reduction.css +118 -0
  355. package/dist/styles/agent-computer-motion.css +127 -0
  356. package/dist/styles/agent-computer-phone.css +942 -0
  357. package/dist/styles/agent-computer.css +1764 -0
  358. package/dist/styles/agent-connection.css +5 -5
  359. package/dist/styles/agent-screen-switcher.css +313 -0
  360. package/dist/styles/app-icon.css +34 -30
  361. package/dist/styles/app-top-bar.css +33 -18
  362. package/dist/styles/approval.css +3 -3
  363. package/dist/styles/artifact.css +1 -1
  364. package/dist/styles/attachment-preview.css +2 -4
  365. package/dist/styles/avatar.css +12 -14
  366. package/dist/styles/base-ui-motion.css +84 -18
  367. package/dist/styles/base-ui-motion.test.tsx +305 -0
  368. package/dist/styles/base.css +16 -12
  369. package/dist/styles/brand.test.ts +7 -20
  370. package/dist/styles/browser-control-overlay.css +1 -1
  371. package/dist/styles/browser-live-screen.css +2 -2
  372. package/dist/styles/browser-live-view.css +1 -1
  373. package/dist/styles/browser-replay.css +0 -8
  374. package/dist/styles/browser-run-panel.css +275 -37
  375. package/dist/styles/button.css +52 -9
  376. package/dist/styles/card.css +6 -5
  377. package/dist/styles/chain-of-thought.css +0 -10
  378. package/dist/styles/checkpoint.css +2 -2
  379. package/dist/styles/codex-model-selector.css +2 -2
  380. package/dist/styles/color-contrast.test.ts +18 -1
  381. package/dist/styles/command-palette.css +110 -0
  382. package/dist/styles/composer-link.css +11 -7
  383. package/dist/styles/composition-motion.css +3 -14
  384. package/dist/styles/context.css +2 -2
  385. package/dist/styles/conversation-tab-picker.css +7 -0
  386. package/dist/styles/conversation.css +8 -2
  387. package/dist/styles/dialog.css +2 -2
  388. package/dist/styles/employee-app.css +8 -2
  389. package/dist/styles/employee-chrome.css +4 -4
  390. package/dist/styles/execution-board.css +206 -114
  391. package/dist/styles/execution-result.css +2 -2
  392. package/dist/styles/field.css +187 -4
  393. package/dist/styles/file-tree.css +218 -40
  394. package/dist/styles/first-run-setup.css +914 -187
  395. package/dist/styles/github-motion-mark.css +0 -8
  396. package/dist/styles/index.css +145 -133
  397. package/dist/styles/inline-citation.css +5 -4
  398. package/dist/styles/list-detail.css +57 -0
  399. package/dist/styles/manager-office.css +6 -8
  400. package/dist/styles/manager-work.css +4 -2
  401. package/dist/styles/mcp-plugin-catalog.css +2 -2
  402. package/dist/styles/mcp-server-picker.css +3 -6
  403. package/dist/styles/media-preview-card.css +2 -2
  404. package/dist/styles/menu.css +0 -9
  405. package/dist/styles/menubar.css +18 -6
  406. package/dist/styles/message-scroller.css +47 -9
  407. package/dist/styles/message.css +3 -3
  408. package/dist/styles/model-selector.css +1 -1
  409. package/dist/styles/motion-reduction.css +39 -6
  410. package/dist/styles/pricing-page.css +1 -1
  411. package/dist/styles/prompt-input.css +29 -29
  412. package/dist/styles/queue.css +1 -1
  413. package/dist/styles/recipes.css +212 -28
  414. package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
  415. package/dist/styles/responsive-sidebar-shell.css +40 -43
  416. package/dist/styles/screen-stack.css +123 -0
  417. package/dist/styles/search-field.css +80 -3
  418. package/dist/styles/stepper.css +0 -10
  419. package/dist/styles/streamdown.css +2 -2
  420. package/dist/styles/subagent-run.css +9 -5
  421. package/dist/styles/swipe-actions.css +158 -0
  422. package/dist/styles/tabs.css +80 -23
  423. package/dist/styles/task.css +7 -1
  424. package/dist/styles/terminal.css +66 -78
  425. package/dist/styles/test-results.css +1 -19
  426. package/dist/styles/textarea.css +2 -1
  427. package/dist/styles/theme-mode-control.css +154 -26
  428. package/dist/styles/think-chat-tool-panels.css +1 -1
  429. package/dist/styles/think-execution-workbench.css +0 -9
  430. package/dist/styles/think-full-app.css +7 -1
  431. package/dist/styles/think-schedule.css +81 -54
  432. package/dist/styles/think-thread-picker.css +28 -37
  433. package/dist/styles/toast.css +11 -0
  434. package/dist/styles/toggle-group.css +0 -10
  435. package/dist/styles/toggle.css +13 -0
  436. package/dist/styles/tooltip.css +12 -0
  437. package/dist/styles/transition-surface.css +1 -0
  438. package/dist/styles/wallpaper-picker.css +224 -0
  439. package/dist/styles/web-preview.css +47 -18
  440. package/dist/styles/workspace-automation.css +116 -17
  441. package/dist/styles/workspace-concepts.css +1 -1
  442. package/dist/styles/workspace-desktop.css +124 -0
  443. package/dist/styles/workspace-entity-card.css +3 -1
  444. package/dist/styles/workspace-explorer.css +499 -5
  445. package/dist/utils/brand-marks.d.ts +13 -0
  446. package/dist/utils/brand-marks.js +14 -0
  447. package/dist/utils/desktop-artwork.d.ts +17 -0
  448. package/dist/utils/desktop-artwork.js +18 -0
  449. package/dist/utils/favicon.d.ts +6 -2
  450. package/dist/utils/favicon.js +16 -4
  451. package/dist/utils/structured-code.d.ts +1 -1
  452. package/dist/workspace-assets-DdtnBDU3.js +213 -0
  453. package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
  454. package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
  455. package/dist/workspace-delete-BOY6CMBf.js +183 -0
  456. package/dist/workspace-drag-B6hMXUNt.js +304 -0
  457. package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
  458. package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
  459. package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
  460. package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
  461. package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
  462. package/package.json +9 -3
  463. package/dist/Avatar-t1YRzdwB.d.ts +0 -101
  464. package/dist/CodeBlock-DYQdZUH6.js +0 -318
  465. package/dist/ExecutionResult-2fBkpIGN.js +0 -279
  466. package/dist/FileTree-CDLOD643.js +0 -323
  467. package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
  468. package/dist/SetupChecklist-B-iEta9v.js +0 -78
  469. package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
  470. package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
  471. package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
  472. package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
  473. package/dist/attachment-preview-1CXJvrmb.js +0 -25
  474. package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
  475. package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
  476. package/dist/copy-button-DbR932tF.js +0 -45
  477. package/dist/icons-GoybMAB2.js +0 -141
  478. package/dist/progress-ring-L2bbF0ji.js +0 -40
  479. package/dist/provider-logos-DWYY8wNz.js +0 -99
  480. package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
  481. package/dist/workspace-assets-F3r6XltC.js +0 -107
  482. package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
  483. package/dist/workspace-delete-CQvv1eDE.js +0 -81
  484. package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
@@ -1,2 +1,2 @@
1
- import { a as ThinkChatToolRenderers, i as ThinkChatToolRenderer, n as ThinkChatActivityProps, o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, s as renderThinkChatActivityPart, t as ThinkChatActivity } from "../../ThinkChatActivity-zZaSsbC-.js";
1
+ import { a as ThinkChatToolRenderers, i as ThinkChatToolRenderer, n as ThinkChatActivityProps, o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, s as renderThinkChatActivityPart, t as ThinkChatActivity } from "../../ThinkChatActivity-C7xnO0Fx.js";
2
2
  export { ThinkChatActivity, ThinkChatActivityProps, ThinkChatActivityRendererOptions, ThinkChatToolRenderer, ThinkChatToolRenderers, createThinkChatActivityRenderer, renderThinkChatActivityPart };
@@ -1,22 +1,27 @@
1
1
  import { Button } from "../foundations/Button.js";
2
- import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
2
+ import { AgentActivityIcon } from "./AgentActivity.js";
3
3
  import { useExpansionNumber } from "../ai-sdk/ExpansionState.js";
4
4
  import { Activity, ActivityContent, ActivityItem, ActivityItemGroup, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
5
5
  import { MessageResponse } from "../ai-sdk/Message.js";
6
- import { d as useRunsStore, u as useRunsSelector } from "../../agent-tool-runs-DsOp_X2y.js";
6
+ import { d as useRunsStore, u as useRunsSelector } from "../../agent-tool-runs-BXKdcxl8.js";
7
7
  import { ToolInvocationDetails } from "../ai-sdk/ToolInvocation.js";
8
+ import { Favicon } from "../foundations/Favicon.js";
8
9
  import { SubagentRunLanes } from "./SubagentRunLanes.js";
9
10
  import { useOptionalThinkChatLive } from "./ThinkChatContext.js";
10
11
  import { isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartWorking, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart, thinkToolOutcome } from "./ThinkChatToolParts.js";
11
12
  import { ThinkChatBrowserPanel, ThinkChatExecutePanel, ThinkChatFetchPanel, ThinkChatFollowUpPanel, ThinkChatSessionContextPanel, ThinkChatSkillPanel, ThinkChatWorkspacePanel } from "./ThinkChatToolPanels.js";
12
13
  import { activityPartIconKind, activityPartUrl, deriveThinkChatActivityHeader, describeThinkChatActivityPart } from "./ThinkChatActivitySummary.js";
14
+ import { c } from "react/compiler-runtime";
13
15
  import * as React from "react";
14
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
17
  import { getStaticToolName, getToolName, isReasoningUIPart, isStaticToolUIPart, isToolUIPart } from "ai";
16
18
  //#region src/components/agents-sdk/ThinkChatActivity.tsx
17
19
  function activityPartIcon(part) {
18
20
  const url = activityPartUrl(part);
19
- return url ? /* @__PURE__ */ jsx(AgentActivityFavicon, { url }) : /* @__PURE__ */ jsx(AgentActivityIcon, { kind: activityPartIconKind(part, false) });
21
+ return url ? /* @__PURE__ */ jsx(Favicon, {
22
+ href: url,
23
+ fallback: /* @__PURE__ */ jsx(AgentActivityIcon, { kind: "web" })
24
+ }) : /* @__PURE__ */ jsx(AgentActivityIcon, { kind: activityPartIconKind(part, false) });
20
25
  }
21
26
  /**
22
27
  * The expanded run starts with this many trailing steps. Each "show earlier"
@@ -32,100 +37,237 @@ const VISIBLE_STEP_LIMIT = 100;
32
37
  * with per-tool panels. Normally reached through `ThinkChat.MessageContent`;
33
38
  * exported for apps that lay out messages themselves.
34
39
  */
35
- function ThinkChatActivity({ parts, defaultOpen, isStreaming, toolRenderers, settledAction, isTerminal, stateKey }) {
40
+ function ThinkChatActivity(t0) {
41
+ const $ = c(28);
42
+ const { parts, defaultOpen, isStreaming, toolRenderers, settledAction, isTerminal, stateKey } = t0;
36
43
  const scope = `run:${stateKey}`;
37
44
  const [visibleStartIndex, setVisibleStartIndex] = useExpansionNumber(`${scope}:visible-start-index`, -1);
38
45
  const hasTerminalSignal = isTerminal ?? settledAction !== void 0;
39
- const streaming = isStreaming ?? (!hasTerminalSignal && parts.some(isPartWorking));
40
- const header = deriveThinkChatActivityHeader(parts, {
41
- isStreaming: streaming,
42
- toolDescribers: toolRenderers
43
- });
46
+ let t1;
47
+ if ($[0] !== hasTerminalSignal || $[1] !== isStreaming || $[2] !== parts) {
48
+ t1 = isStreaming ?? (!hasTerminalSignal && parts.some(isPartWorking));
49
+ $[0] = hasTerminalSignal;
50
+ $[1] = isStreaming;
51
+ $[2] = parts;
52
+ $[3] = t1;
53
+ } else t1 = $[3];
54
+ const streaming = t1;
55
+ let t2;
56
+ if ($[4] !== parts || $[5] !== streaming || $[6] !== toolRenderers) {
57
+ t2 = deriveThinkChatActivityHeader(parts, {
58
+ isStreaming: streaming,
59
+ toolDescribers: toolRenderers
60
+ });
61
+ $[4] = parts;
62
+ $[5] = streaming;
63
+ $[6] = toolRenderers;
64
+ $[7] = t2;
65
+ } else t2 = $[7];
66
+ const header = t2;
44
67
  if (!header) return null;
45
68
  const isTerminalTurn = !streaming && hasTerminalSignal;
46
- return /* @__PURE__ */ jsxs(Activity, {
47
- isStreaming: streaming,
48
- defaultOpen,
49
- stateKey: scope,
50
- children: [/* @__PURE__ */ jsx(ActivityTrigger, {
51
- icon: header.url ? /* @__PURE__ */ jsx(AgentActivityFavicon, { url: header.url }) : /* @__PURE__ */ jsx(AgentActivityIcon, { kind: header.iconKind }),
52
- action: !streaming && settledAction ? settledAction : header.action,
53
- detail: !streaming && settledAction ? void 0 : header.detail
54
- }), /* @__PURE__ */ jsx(ActivityContent, { children: /* @__PURE__ */ jsx(ThinkChatActivitySteps, {
69
+ let t3;
70
+ if ($[8] !== header.iconKind || $[9] !== header.url) {
71
+ t3 = header.url ? /* @__PURE__ */ jsx(Favicon, {
72
+ href: header.url,
73
+ fallback: /* @__PURE__ */ jsx(AgentActivityIcon, { kind: "web" })
74
+ }) : /* @__PURE__ */ jsx(AgentActivityIcon, { kind: header.iconKind });
75
+ $[8] = header.iconKind;
76
+ $[9] = header.url;
77
+ $[10] = t3;
78
+ } else t3 = $[10];
79
+ const t4 = !streaming && settledAction ? settledAction : header.action;
80
+ const t5 = !streaming && settledAction ? void 0 : header.detail;
81
+ let t6;
82
+ if ($[11] !== t3 || $[12] !== t4 || $[13] !== t5) {
83
+ t6 = /* @__PURE__ */ jsx(ActivityTrigger, {
84
+ icon: t3,
85
+ action: t4,
86
+ detail: t5
87
+ });
88
+ $[11] = t3;
89
+ $[12] = t4;
90
+ $[13] = t5;
91
+ $[14] = t6;
92
+ } else t6 = $[14];
93
+ let t7;
94
+ if ($[15] !== isTerminalTurn || $[16] !== parts || $[17] !== scope || $[18] !== setVisibleStartIndex || $[19] !== toolRenderers || $[20] !== visibleStartIndex) {
95
+ t7 = /* @__PURE__ */ jsx(ActivityContent, { children: /* @__PURE__ */ jsx(ThinkChatActivitySteps, {
55
96
  parts,
56
97
  scope,
57
98
  isTerminalTurn,
58
99
  visibleStartIndex,
59
100
  setVisibleStartIndex,
60
101
  toolRenderers
61
- }) })]
62
- });
102
+ }) });
103
+ $[15] = isTerminalTurn;
104
+ $[16] = parts;
105
+ $[17] = scope;
106
+ $[18] = setVisibleStartIndex;
107
+ $[19] = toolRenderers;
108
+ $[20] = visibleStartIndex;
109
+ $[21] = t7;
110
+ } else t7 = $[21];
111
+ let t8;
112
+ if ($[22] !== defaultOpen || $[23] !== scope || $[24] !== streaming || $[25] !== t6 || $[26] !== t7) {
113
+ t8 = /* @__PURE__ */ jsxs(Activity, {
114
+ isStreaming: streaming,
115
+ defaultOpen,
116
+ stateKey: scope,
117
+ children: [t6, t7]
118
+ });
119
+ $[22] = defaultOpen;
120
+ $[23] = scope;
121
+ $[24] = streaming;
122
+ $[25] = t6;
123
+ $[26] = t7;
124
+ $[27] = t8;
125
+ } else t8 = $[27];
126
+ return t8;
63
127
  }
64
- function ThinkChatActivitySteps({ parts, scope, isTerminalTurn, visibleStartIndex: storedVisibleStart, setVisibleStartIndex: setStoredVisibleStart, toolRenderers }) {
65
- const steps = parts.flatMap((part, index) => {
66
- const description = describeThinkChatActivityPart(part, toolRenderers, isTerminalTurn);
67
- if (!description) return [];
68
- return [{
69
- key: isToolUIPart(part) ? part.toolCallId : `${part.type}-${index}`,
70
- description,
71
- part
72
- }];
73
- });
128
+ function ThinkChatActivitySteps(t0) {
129
+ const $ = c(16);
130
+ const { parts, scope, isTerminalTurn, visibleStartIndex: storedVisibleStart, setVisibleStartIndex: setStoredVisibleStart, toolRenderers } = t0;
131
+ let t1;
132
+ if ($[0] !== isTerminalTurn || $[1] !== toolRenderers) {
133
+ t1 = (part, index) => {
134
+ const description = describeThinkChatActivityPart(part, toolRenderers, isTerminalTurn);
135
+ if (!description) return [];
136
+ return [{
137
+ key: isToolUIPart(part) ? part.toolCallId : `${part.type}-${index}`,
138
+ description,
139
+ part
140
+ }];
141
+ };
142
+ $[0] = isTerminalTurn;
143
+ $[1] = toolRenderers;
144
+ $[2] = t1;
145
+ } else t1 = $[2];
146
+ const steps = parts.flatMap(t1);
74
147
  const visibleStart = storedVisibleStart < 0 ? Math.max(0, steps.length - VISIBLE_STEP_LIMIT) : Math.min(storedVisibleStart, Math.max(0, steps.length - VISIBLE_STEP_LIMIT));
75
148
  const pendingFocusList = React.useRef(null);
76
- React.useLayoutEffect(() => {
77
- const activityList = pendingFocusList.current;
78
- pendingFocusList.current = null;
79
- if (!activityList?.isConnected || document.activeElement !== document.body) return;
80
- const firstNewStep = activityList?.firstElementChild;
81
- if (!(firstNewStep instanceof HTMLElement)) return;
82
- const focusTarget = firstNewStep.querySelector(".activity__group-trigger") ?? firstNewStep;
83
- if (focusTarget === firstNewStep) focusTarget.tabIndex = -1;
84
- focusTarget.focus({ preventScroll: true });
85
- }, [visibleStart]);
149
+ let t2;
150
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
151
+ t2 = () => {
152
+ const activityList = pendingFocusList.current;
153
+ pendingFocusList.current = null;
154
+ if (!activityList?.isConnected || document.activeElement !== document.body) return;
155
+ const firstNewStep = activityList?.firstElementChild;
156
+ if (!(firstNewStep instanceof HTMLElement)) return;
157
+ const focusTarget = firstNewStep.querySelector(".activity__group-trigger") ?? firstNewStep;
158
+ if (focusTarget === firstNewStep) focusTarget.tabIndex = -1;
159
+ focusTarget.focus({ preventScroll: true });
160
+ };
161
+ $[3] = t2;
162
+ } else t2 = $[3];
163
+ let t3;
164
+ if ($[4] !== visibleStart) {
165
+ t3 = [visibleStart];
166
+ $[4] = visibleStart;
167
+ $[5] = t3;
168
+ } else t3 = $[5];
169
+ React.useLayoutEffect(t2, t3);
86
170
  if (steps.length === 0) return null;
87
171
  const hiddenStepCount = visibleStart;
88
172
  const visibleSteps = steps.slice(visibleStart);
89
- return /* @__PURE__ */ jsxs(Fragment, { children: [hiddenStepCount > 0 ? /* @__PURE__ */ jsxs(Button, {
90
- size: "sm",
91
- variant: "ghost",
92
- className: "think-chat-activity__show-earlier",
93
- onClick: (event) => {
94
- const nextVisibleStart = Math.max(0, visibleStart - VISIBLE_STEP_LIMIT);
95
- const activityList = event.currentTarget.parentElement;
96
- pendingFocusList.current = nextVisibleStart === 0 && document.activeElement === event.currentTarget && activityList instanceof HTMLElement ? activityList : null;
97
- setStoredVisibleStart(nextVisibleStart);
98
- },
99
- children: [
100
- "Show ",
101
- Math.min(VISIBLE_STEP_LIMIT, hiddenStepCount),
102
- " earlier",
103
- " ",
104
- Math.min(VISIBLE_STEP_LIMIT, hiddenStepCount) === 1 ? "step" : "steps"
105
- ]
106
- }) : null, visibleSteps.map((step) => /* @__PURE__ */ jsx(MemoizedThinkChatActivityStep, {
107
- stateKey: `${scope}:${step.key}`,
108
- description: step.description,
109
- part: step.part,
110
- panelRenderer: isToolUIPart(step.part) ? toolRenderers?.[getToolName(step.part)]?.panel : void 0
111
- }, step.key))] });
173
+ let t4;
174
+ if ($[6] !== hiddenStepCount || $[7] !== setStoredVisibleStart || $[8] !== visibleStart) {
175
+ t4 = hiddenStepCount > 0 ? /* @__PURE__ */ jsxs(Button, {
176
+ size: "sm",
177
+ variant: "ghost",
178
+ className: "think-chat-activity__show-earlier",
179
+ onClick: (event) => {
180
+ const nextVisibleStart = Math.max(0, visibleStart - VISIBLE_STEP_LIMIT);
181
+ const activityList_0 = event.currentTarget.parentElement;
182
+ pendingFocusList.current = nextVisibleStart === 0 && document.activeElement === event.currentTarget && activityList_0 instanceof HTMLElement ? activityList_0 : null;
183
+ setStoredVisibleStart(nextVisibleStart);
184
+ },
185
+ children: [
186
+ "Show ",
187
+ Math.min(VISIBLE_STEP_LIMIT, hiddenStepCount),
188
+ " earlier",
189
+ " ",
190
+ Math.min(VISIBLE_STEP_LIMIT, hiddenStepCount) === 1 ? "step" : "steps"
191
+ ]
192
+ }) : null;
193
+ $[6] = hiddenStepCount;
194
+ $[7] = setStoredVisibleStart;
195
+ $[8] = visibleStart;
196
+ $[9] = t4;
197
+ } else t4 = $[9];
198
+ let t5;
199
+ if ($[10] !== scope || $[11] !== toolRenderers) {
200
+ t5 = (step) => /* @__PURE__ */ jsx(MemoizedThinkChatActivityStep, {
201
+ stateKey: `${scope}:${step.key}`,
202
+ description: step.description,
203
+ part: step.part,
204
+ panelRenderer: isToolUIPart(step.part) ? toolRenderers?.[getToolName(step.part)]?.panel : void 0
205
+ }, step.key);
206
+ $[10] = scope;
207
+ $[11] = toolRenderers;
208
+ $[12] = t5;
209
+ } else t5 = $[12];
210
+ const t6 = visibleSteps.map(t5);
211
+ let t7;
212
+ if ($[13] !== t4 || $[14] !== t6) {
213
+ t7 = /* @__PURE__ */ jsxs(Fragment, { children: [t4, t6] });
214
+ $[13] = t4;
215
+ $[14] = t6;
216
+ $[15] = t7;
217
+ } else t7 = $[15];
218
+ return t7;
112
219
  }
113
- function ThinkChatActivityStep({ description, part, stateKey, panelRenderer }) {
114
- const icon = activityPartIcon(part);
220
+ function ThinkChatActivityStep(t0) {
221
+ const $ = c(15);
222
+ const { description, part, stateKey, panelRenderer } = t0;
223
+ let t1;
224
+ if ($[0] !== part) {
225
+ t1 = activityPartIcon(part);
226
+ $[0] = part;
227
+ $[1] = t1;
228
+ } else t1 = $[1];
229
+ const icon = t1;
115
230
  const { action: text, detail } = description;
116
- const panel = activityStepPanel(part, panelRenderer);
117
- if (panel == null) return /* @__PURE__ */ jsx(ActivityItem, {
118
- icon,
119
- detail,
120
- children: text
121
- });
122
- return /* @__PURE__ */ jsx(ActivityItemGroup, {
123
- action: text,
124
- detail,
125
- icon,
126
- stateKey,
127
- children: panel
128
- });
231
+ let t2;
232
+ if ($[2] !== panelRenderer || $[3] !== part) {
233
+ t2 = activityStepPanel(part, panelRenderer);
234
+ $[2] = panelRenderer;
235
+ $[3] = part;
236
+ $[4] = t2;
237
+ } else t2 = $[4];
238
+ const panel = t2;
239
+ if (panel == null) {
240
+ let t3;
241
+ if ($[5] !== detail || $[6] !== icon || $[7] !== text) {
242
+ t3 = /* @__PURE__ */ jsx(ActivityItem, {
243
+ icon,
244
+ detail,
245
+ children: text
246
+ });
247
+ $[5] = detail;
248
+ $[6] = icon;
249
+ $[7] = text;
250
+ $[8] = t3;
251
+ } else t3 = $[8];
252
+ return t3;
253
+ }
254
+ let t3;
255
+ if ($[9] !== detail || $[10] !== icon || $[11] !== panel || $[12] !== stateKey || $[13] !== text) {
256
+ t3 = /* @__PURE__ */ jsx(ActivityItemGroup, {
257
+ action: text,
258
+ detail,
259
+ icon,
260
+ stateKey,
261
+ children: panel
262
+ });
263
+ $[9] = detail;
264
+ $[10] = icon;
265
+ $[11] = panel;
266
+ $[12] = stateKey;
267
+ $[13] = text;
268
+ $[14] = t3;
269
+ } else t3 = $[14];
270
+ return t3;
129
271
  }
130
272
  /** A step's disclosure body. Null keeps the step a plain row; a host panel
131
273
  renderer wins over the built-in tool panels. */
@@ -161,22 +303,60 @@ function terminalActivityAction(message) {
161
303
  if (status === "error") return `Response failed after ${duration}`;
162
304
  if (status === "aborted") return `You stopped after ${duration}`;
163
305
  }
164
- function ThinkChatActivityGroup({ message, parts, renderAgentToolRunLink, isTrailing, isTerminal, settledAction, toolRenderers, stateKey }) {
306
+ function ThinkChatActivityGroup(t0) {
307
+ const $ = c(20);
308
+ const { message, parts, renderAgentToolRunLink, isTrailing, isTerminal, settledAction, toolRenderers, stateKey } = t0;
165
309
  const live = useOptionalThinkChatLive();
166
310
  const messageLive = live ? live.isStreaming && live.lastMessageId === message.id : void 0;
167
- const streaming = isTrailing && (messageLive ?? (!isTerminal && parts.some(isPartWorking)));
168
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ThinkChatActivity, {
169
- parts,
170
- isStreaming: streaming,
171
- isTerminal,
172
- settledAction,
173
- toolRenderers,
174
- stateKey
175
- }), renderAgentToolRunLink ? /* @__PURE__ */ jsx(ThinkChatActivityLanes, {
176
- parts,
177
- renderRunLink: renderAgentToolRunLink,
178
- waiting: messageLive ?? streaming
179
- }) : null] });
311
+ let t1;
312
+ if ($[0] !== isTerminal || $[1] !== isTrailing || $[2] !== messageLive || $[3] !== parts) {
313
+ t1 = isTrailing && (messageLive ?? (!isTerminal && parts.some(isPartWorking)));
314
+ $[0] = isTerminal;
315
+ $[1] = isTrailing;
316
+ $[2] = messageLive;
317
+ $[3] = parts;
318
+ $[4] = t1;
319
+ } else t1 = $[4];
320
+ const streaming = t1;
321
+ let t2;
322
+ if ($[5] !== isTerminal || $[6] !== parts || $[7] !== settledAction || $[8] !== stateKey || $[9] !== streaming || $[10] !== toolRenderers) {
323
+ t2 = /* @__PURE__ */ jsx(ThinkChatActivity, {
324
+ parts,
325
+ isStreaming: streaming,
326
+ isTerminal,
327
+ settledAction,
328
+ toolRenderers,
329
+ stateKey
330
+ });
331
+ $[5] = isTerminal;
332
+ $[6] = parts;
333
+ $[7] = settledAction;
334
+ $[8] = stateKey;
335
+ $[9] = streaming;
336
+ $[10] = toolRenderers;
337
+ $[11] = t2;
338
+ } else t2 = $[11];
339
+ let t3;
340
+ if ($[12] !== messageLive || $[13] !== parts || $[14] !== renderAgentToolRunLink || $[15] !== streaming) {
341
+ t3 = renderAgentToolRunLink ? /* @__PURE__ */ jsx(ThinkChatActivityLanes, {
342
+ parts,
343
+ renderRunLink: renderAgentToolRunLink,
344
+ waiting: messageLive ?? streaming
345
+ }) : null;
346
+ $[12] = messageLive;
347
+ $[13] = parts;
348
+ $[14] = renderAgentToolRunLink;
349
+ $[15] = streaming;
350
+ $[16] = t3;
351
+ } else t3 = $[16];
352
+ let t4;
353
+ if ($[17] !== t2 || $[18] !== t3) {
354
+ t4 = /* @__PURE__ */ jsxs(Fragment, { children: [t2, t3] });
355
+ $[17] = t2;
356
+ $[18] = t3;
357
+ $[19] = t4;
358
+ } else t4 = $[19];
359
+ return t4;
180
360
  }
181
361
  const NO_RUNS = [];
182
362
  const sameRuns = (a, b) => a.length === b.length && a.every((run, index) => run === b[index]);
@@ -185,16 +365,42 @@ const sameRuns = (a, b) => a.length === b.length && a.every((run, index) => run
185
365
  * and only its own, so a child's chunk re-renders that child's group and not
186
366
  * the activity above it or any other group.
187
367
  */
188
- function ThinkChatActivityLanes({ parts, renderRunLink, waiting }) {
368
+ function ThinkChatActivityLanes(t0) {
369
+ const $ = c(7);
370
+ const { parts, renderRunLink, waiting } = t0;
189
371
  const store = useRunsStore();
190
- const toolCallIds = React.useMemo(() => parts.flatMap((part) => isToolUIPart(part) ? [part.toolCallId] : []), [parts]);
191
- const select = React.useCallback((state) => [...new Map(toolCallIds.flatMap((id) => state.agentTools.getRunsForToolCall(id)).map((run) => [run.runId, run])).values()], [toolCallIds]);
192
- const runs = useRunsSelector(select, NO_RUNS, sameRuns);
372
+ let t1;
373
+ if ($[0] !== parts) {
374
+ t1 = parts.flatMap(_temp);
375
+ $[0] = parts;
376
+ $[1] = t1;
377
+ } else t1 = $[1];
378
+ const toolCallIds = t1;
379
+ let t2;
380
+ if ($[2] !== toolCallIds) {
381
+ t2 = (state) => [...new Map(toolCallIds.flatMap((id) => state.agentTools.getRunsForToolCall(id)).map(_temp2)).values()];
382
+ $[2] = toolCallIds;
383
+ $[3] = t2;
384
+ } else t2 = $[3];
385
+ const runs = useRunsSelector(t2, NO_RUNS, sameRuns);
193
386
  if (!store || runs.length === 0 && !waiting) return null;
194
- return /* @__PURE__ */ jsx(SubagentRunLanes, {
195
- runs,
196
- renderRunLink
197
- });
387
+ let t3;
388
+ if ($[4] !== renderRunLink || $[5] !== runs) {
389
+ t3 = /* @__PURE__ */ jsx(SubagentRunLanes, {
390
+ runs,
391
+ renderRunLink
392
+ });
393
+ $[4] = renderRunLink;
394
+ $[5] = runs;
395
+ $[6] = t3;
396
+ } else t3 = $[6];
397
+ return t3;
398
+ }
399
+ function _temp2(run) {
400
+ return [run.runId, run];
401
+ }
402
+ function _temp(part) {
403
+ return isToolUIPart(part) ? [part.toolCallId] : [];
198
404
  }
199
405
  /**
200
406
  * Builds a renderPart handler that folds every run of consecutive activity
@@ -1,2 +1,2 @@
1
- import { a as ThinkChatToolLifecycleSnapshot, c as deriveThinkChatActivityHeader, d as summarizeActivitySteps, i as ThinkChatToolDescribers, l as deriveThinkChatToolLifecycleHeader, n as ThinkChatActivityHeader, o as activityPartIconKind, r as ThinkChatToolDescriber, s as activityPartUrl, t as ThinkChatActivityDescription, u as describeThinkChatActivityPart } from "../../ThinkChatActivitySummary-8MO1VjAJ.js";
1
+ import { a as ThinkChatToolLifecycleSnapshot, c as deriveThinkChatActivityHeader, d as summarizeActivitySteps, i as ThinkChatToolDescribers, l as deriveThinkChatToolLifecycleHeader, n as ThinkChatActivityHeader, o as activityPartIconKind, r as ThinkChatToolDescriber, s as activityPartUrl, t as ThinkChatActivityDescription, u as describeThinkChatActivityPart } from "../../ThinkChatActivitySummary-Dh4Av7x_.js";
2
2
  export { ThinkChatActivityDescription, ThinkChatActivityHeader, ThinkChatToolDescriber, ThinkChatToolDescribers, ThinkChatToolLifecycleSnapshot, activityPartIconKind, activityPartUrl, deriveThinkChatActivityHeader, deriveThinkChatToolLifecycleHeader, describeThinkChatActivityPart, summarizeActivitySteps };
@@ -1,7 +1,9 @@
1
- import { t as capitalize } from "../../format-CWaZEp5o.js";
1
+ import { t as capitalize } from "../../format-DL7f2rqp.js";
2
2
  import { getToolDisplayName } from "../ai-sdk/ToolPart.js";
3
3
  import { t as summarizeToolInput } from "../../summarize-tool-input-CqTcGRYy.js";
4
+ import { i as workspaceBasename } from "../../workspace-path-TZggP-u4.js";
4
5
  import { displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isWorkspaceToolPart, readFollowUpReceipt, thinkToolOutcome } from "./ThinkChatToolParts.js";
6
+ import { formatThinkExecutionShortTimestamp } from "./ThinkExecutionRun.js";
5
7
  import { getStaticToolName, getToolName, isReasoningUIPart, isStaticToolUIPart, isToolUIPart } from "ai";
6
8
  //#region src/components/agents-sdk/ThinkChatActivitySummary.ts
7
9
  function described(action, detail) {
@@ -142,6 +144,10 @@ function readString(value, key) {
142
144
  const item = value[key];
143
145
  return typeof item === "string" ? item : void 0;
144
146
  }
147
+ /** The requested wake time as the viewer's clock reads it, never the raw ISO string. */
148
+ function formatFollowUpAt(at) {
149
+ return at ? formatThinkExecutionShortTimestamp(Date.parse(at), "") || void 0 : void 0;
150
+ }
145
151
  function describeFollowUpPart(part) {
146
152
  const outcome = thinkToolOutcome(part);
147
153
  if (outcome === "failed") return described("Follow-up failed");
@@ -150,7 +156,7 @@ function describeFollowUpPart(part) {
150
156
  const operation = input?.operation;
151
157
  if (operation !== "schedule" && operation !== "list" && operation !== "cancel") return describeGenericToolPart(part);
152
158
  if (part.state === "approval-requested") return described("Follow-up awaiting approval");
153
- if (isPartWorking(part)) return described(operation === "schedule" ? "Scheduling follow-up" : operation === "list" ? "Listing follow-ups" : "Cancelling follow-up", operation === "schedule" ? readString(input, "at") : operation === "cancel" ? readString(input, "id") : void 0);
159
+ if (isPartWorking(part)) return described(operation === "schedule" ? "Scheduling follow-up" : operation === "list" ? "Listing follow-ups" : "Cancelling follow-up", operation === "schedule" ? formatFollowUpAt(readString(input, "at")) : void 0);
154
160
  if (part.state !== "output-available" || part.preliminary) return described("Follow-up result unavailable");
155
161
  const receipt = readFollowUpReceipt(part);
156
162
  if (!receipt) return described("Follow-up result unavailable");
@@ -304,9 +310,6 @@ function describeBuiltInThinkChatActivityPart(part) {
304
310
  }
305
311
  return null;
306
312
  }
307
- function basename(path) {
308
- return path?.split("/").filter(Boolean).at(-1) ?? null;
309
- }
310
313
  function describeWorkspaceToolPart(part) {
311
314
  const working = isPartWorking(part);
312
315
  const failed = isPartFailed(part);
@@ -318,9 +321,9 @@ function describeWorkspaceToolPart(part) {
318
321
  }
319
322
  const { action, detail } = (() => {
320
323
  switch (part.type) {
321
- case "tool-read": return described(working ? "Reading" : "Read", basename(part.input?.path) ?? "a file");
322
- case "tool-write": return described(working ? "Writing" : "Wrote", basename(part.input?.path) ?? "a file");
323
- case "tool-edit": return described(working ? "Editing" : "Edited", basename(part.input?.path) ?? "a file");
324
+ case "tool-read": return described(working ? "Reading" : "Read", part.input?.path ? workspaceBasename(part.input.path) : "a file");
325
+ case "tool-write": return described(working ? "Writing" : "Wrote", part.input?.path ? workspaceBasename(part.input.path) : "a file");
326
+ case "tool-edit": return described(working ? "Editing" : "Edited", part.input?.path ? workspaceBasename(part.input.path) : "a file");
324
327
  case "tool-delete": return described(working ? "Deleting" : "Deleted", part.input?.path || "a file");
325
328
  case "tool-list": {
326
329
  const path = part.input?.path;
@@ -430,7 +433,10 @@ function summarizeActivitySteps(parts) {
430
433
  else if (isFetchToolPart(part)) fetches++;
431
434
  else if (isBrowserToolPart(part)) browses++;
432
435
  else if (isExecuteToolPart(part)) codeRuns++;
433
- else if (isToolUIPart(part)) genericSegments.add(genericToolPresentation(part, activityPartUrl(part) !== null).summary);
436
+ else if (isStaticToolUIPart(part) && (getStaticToolName(part) === "follow_up" || getStaticToolName(part) === "scheduled_tasks")) {
437
+ const action = describeBuiltInThinkChatActivityPart(part)?.action;
438
+ if (action) genericSegments.add(action.charAt(0).toLowerCase() + action.slice(1));
439
+ } else if (isToolUIPart(part)) genericSegments.add(genericToolPresentation(part, activityPartUrl(part) !== null).summary);
434
440
  const count = (name) => byTool.get(name) ?? 0;
435
441
  const files = (n) => n === 1 ? "a file" : `${n} files`;
436
442
  const reads = count("read");