@mcp-b/react-components 0.63.0 → 0.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (484) hide show
  1. package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
  2. package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
  3. package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
  4. package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
  5. package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
  6. package/dist/CodeBlock-dt0L8md0.js +892 -0
  7. package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
  8. package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
  9. package/dist/ExecutionResult-CXnGcmM4.js +671 -0
  10. package/dist/FileTree-CjfzpN6X.js +968 -0
  11. package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
  12. package/dist/ManagerOffice-T79utm-P.js +2469 -0
  13. package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
  14. package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
  15. package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
  16. package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
  17. package/dist/SetupChecklist-DwscX3Bw.js +230 -0
  18. package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
  19. package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
  20. package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
  21. package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
  22. package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
  23. package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
  24. package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
  25. package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
  26. package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
  27. package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
  28. package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
  29. package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
  30. package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
  31. package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
  32. package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
  33. package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
  34. package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
  35. package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
  36. package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
  37. package/dist/assets/desktop/README.md +43 -0
  38. package/dist/assets/desktop/automations.svg +19 -0
  39. package/dist/assets/desktop/document.svg +24 -0
  40. package/dist/assets/desktop/folder.png +0 -0
  41. package/dist/assets/desktop/mail.svg +31 -0
  42. package/dist/assets/desktop/settings.svg +9 -0
  43. package/dist/assets/desktop/trash-full.svg +23 -0
  44. package/dist/assets/desktop/trash.svg +19 -0
  45. package/dist/attachment-preview-DeRqFjdz.js +68 -0
  46. package/dist/attempt-CySQHJsF.js +21 -0
  47. package/dist/command-search-1fjmCBBo.js +34 -0
  48. package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
  49. package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
  50. package/dist/components/agents-sdk/AgentActivity.js +78 -31
  51. package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
  52. package/dist/components/agents-sdk/AgentChat.js +1113 -386
  53. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  54. package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
  55. package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
  56. package/dist/components/agents-sdk/AgentComputer.js +8045 -0
  57. package/dist/components/agents-sdk/AgentEvent.js +164 -21
  58. package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
  59. package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
  60. package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
  61. package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
  62. package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
  63. package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
  64. package/dist/components/agents-sdk/BrowserReplay.js +298 -133
  65. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
  66. package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
  67. package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
  68. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  69. package/dist/components/agents-sdk/EmployeeApp.js +108 -46
  70. package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
  71. package/dist/components/agents-sdk/EmployeeChat.js +500 -99
  72. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  73. package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
  74. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  75. package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
  76. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  77. package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
  78. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  79. package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
  80. package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
  81. package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
  82. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  83. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  84. package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
  85. package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
  86. package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
  87. package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
  88. package/dist/components/agents-sdk/McpServerIcon.js +57 -14
  89. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  90. package/dist/components/agents-sdk/McpServerPicker.js +542 -158
  91. package/dist/components/agents-sdk/ModelSelector.js +1151 -253
  92. package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
  93. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  94. package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
  95. package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
  96. package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
  97. package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
  98. package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
  99. package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
  100. package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
  101. package/dist/components/agents-sdk/ThinkChat.js +321 -132
  102. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  103. package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
  104. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  105. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
  106. package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
  107. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
  108. package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
  109. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  110. package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
  111. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
  112. package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
  113. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
  114. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
  115. package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
  116. package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
  117. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
  118. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
  119. package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
  120. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
  121. package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
  122. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  123. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
  124. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  125. package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
  126. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
  127. package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
  128. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  129. package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
  130. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
  131. package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
  132. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  133. package/dist/components/agents-sdk/Workspace.js +491 -166
  134. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  135. package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
  136. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  137. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
  138. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
  139. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
  140. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  141. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  142. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
  143. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
  144. package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
  145. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
  146. package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
  147. package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
  148. package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
  149. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
  150. package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
  151. package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
  152. package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
  153. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
  154. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
  155. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
  156. package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
  157. package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
  158. package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
  159. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  160. package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
  161. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
  162. package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
  163. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  164. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  165. package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
  166. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
  167. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  168. package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
  169. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  170. package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
  171. package/dist/components/ai-sdk/Activity.js +768 -192
  172. package/dist/components/ai-sdk/AgentAttention.js +286 -58
  173. package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
  174. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
  175. package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
  176. package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
  177. package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
  178. package/dist/components/ai-sdk/Approval.js +574 -172
  179. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  180. package/dist/components/ai-sdk/Artifact.js +535 -128
  181. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  182. package/dist/components/ai-sdk/ChainOfThought.js +404 -80
  183. package/dist/components/ai-sdk/Checkpoint.js +229 -45
  184. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  185. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  186. package/dist/components/ai-sdk/ComposerLink.js +216 -48
  187. package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
  188. package/dist/components/ai-sdk/Context.js +737 -178
  189. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  190. package/dist/components/ai-sdk/Conversation.js +305 -68
  191. package/dist/components/ai-sdk/ExpansionState.js +74 -15
  192. package/dist/components/ai-sdk/Goal.js +435 -116
  193. package/dist/components/ai-sdk/InlineCitation.js +313 -76
  194. package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
  195. package/dist/components/ai-sdk/Message.d.ts +1 -1
  196. package/dist/components/ai-sdk/Message.js +1010 -195
  197. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  198. package/dist/components/ai-sdk/MessageScroller.js +264 -46
  199. package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
  200. package/dist/components/ai-sdk/Plan.js +639 -128
  201. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  202. package/dist/components/ai-sdk/PromptInput.js +2735 -794
  203. package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
  204. package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
  205. package/dist/components/ai-sdk/Queue.js +792 -154
  206. package/dist/components/ai-sdk/Reasoning.js +268 -69
  207. package/dist/components/ai-sdk/Sources.js +226 -63
  208. package/dist/components/ai-sdk/Task.js +294 -71
  209. package/dist/components/ai-sdk/ToolApproval.js +126 -26
  210. package/dist/components/ai-sdk/ToolInvocation.js +112 -22
  211. package/dist/components/extension/ChatGptSignInScreen.js +1 -82
  212. package/dist/components/extension/CodexModelSelector.d.ts +1 -1
  213. package/dist/components/extension/CodexModelSelector.js +467 -146
  214. package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
  215. package/dist/components/extension/ConversationTabPicker.js +254 -76
  216. package/dist/components/extension/FirstRunSetup.d.ts +100 -36
  217. package/dist/components/extension/FirstRunSetup.js +3974 -1016
  218. package/dist/components/foundations/Accordion.js +186 -41
  219. package/dist/components/foundations/AlertDialog.js +425 -97
  220. package/dist/components/foundations/AppIcon.d.ts +13 -13
  221. package/dist/components/foundations/AppIcon.js +183 -34
  222. package/dist/components/foundations/Autocomplete.js +408 -89
  223. package/dist/components/foundations/Avatar.d.ts +100 -2
  224. package/dist/components/foundations/Avatar.js +204 -44
  225. package/dist/components/foundations/Button.js +64 -13
  226. package/dist/components/foundations/Card.js +357 -63
  227. package/dist/components/foundations/Checkbox.js +82 -17
  228. package/dist/components/foundations/CheckboxGroup.js +266 -58
  229. package/dist/components/foundations/Collapsible.d.ts +2 -1
  230. package/dist/components/foundations/Collapsible.js +129 -26
  231. package/dist/components/foundations/Combobox.js +408 -89
  232. package/dist/components/foundations/ContextMenu.d.ts +2 -2
  233. package/dist/components/foundations/ContextMenu.js +591 -117
  234. package/dist/components/foundations/DescriptionList.js +159 -28
  235. package/dist/components/foundations/Dialog.js +373 -89
  236. package/dist/components/foundations/EmptyState.js +86 -23
  237. package/dist/components/foundations/Favicon.d.ts +17 -0
  238. package/dist/components/foundations/Favicon.js +62 -0
  239. package/dist/components/foundations/Field.js +525 -108
  240. package/dist/components/foundations/Fieldset.js +115 -23
  241. package/dist/components/foundations/Form.js +38 -9
  242. package/dist/components/foundations/FormattedDate.d.ts +19 -5
  243. package/dist/components/foundations/FormattedDate.js +82 -12
  244. package/dist/components/foundations/IconButton.d.ts +1 -1
  245. package/dist/components/foundations/IconButton.js +114 -17
  246. package/dist/components/foundations/Input.js +38 -9
  247. package/dist/components/foundations/Kbd.js +55 -10
  248. package/dist/components/foundations/Label.js +56 -12
  249. package/dist/components/foundations/LinkButton.js +67 -15
  250. package/dist/components/foundations/Marker.js +138 -29
  251. package/dist/components/foundations/Menu.d.ts +1 -1
  252. package/dist/components/foundations/Menu.js +634 -136
  253. package/dist/components/foundations/Menubar.d.ts +2 -2
  254. package/dist/components/foundations/Menubar.js +685 -130
  255. package/dist/components/foundations/Meter.js +186 -41
  256. package/dist/components/foundations/NavigationMenu.js +426 -95
  257. package/dist/components/foundations/NumberField.js +223 -49
  258. package/dist/components/foundations/Popover.js +398 -88
  259. package/dist/components/foundations/PreviewCard.js +234 -53
  260. package/dist/components/foundations/Progress.js +117 -25
  261. package/dist/components/foundations/RadioGroup.d.ts +13 -5
  262. package/dist/components/foundations/RadioGroup.js +132 -25
  263. package/dist/components/foundations/ScrollArea.js +230 -51
  264. package/dist/components/foundations/SearchField.d.ts +8 -3
  265. package/dist/components/foundations/SearchField.js +129 -28
  266. package/dist/components/foundations/Select.js +648 -145
  267. package/dist/components/foundations/Separator.js +61 -12
  268. package/dist/components/foundations/Slider.js +260 -57
  269. package/dist/components/foundations/Stepper.d.ts +1 -1
  270. package/dist/components/foundations/Stepper.js +561 -127
  271. package/dist/components/foundations/Switch.js +82 -18
  272. package/dist/components/foundations/Tabs.d.ts +2 -2
  273. package/dist/components/foundations/Tabs.js +282 -53
  274. package/dist/components/foundations/Textarea.js +43 -9
  275. package/dist/components/foundations/ThemeProvider.js +138 -52
  276. package/dist/components/foundations/Toast.d.ts +10 -2
  277. package/dist/components/foundations/Toast.js +322 -75
  278. package/dist/components/foundations/Toggle.d.ts +5 -2
  279. package/dist/components/foundations/Toggle.js +51 -10
  280. package/dist/components/foundations/ToggleGroup.d.ts +3 -3
  281. package/dist/components/foundations/ToggleGroup.js +215 -59
  282. package/dist/components/foundations/Toolbar.js +249 -61
  283. package/dist/components/foundations/Tooltip.d.ts +3 -3
  284. package/dist/components/foundations/Tooltip.js +311 -55
  285. package/dist/components/foundations/TransitionSurface.js +43 -9
  286. package/dist/components/foundations/icons.d.ts +2 -2
  287. package/dist/components/foundations/icons.js +2 -2
  288. package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
  289. package/dist/components/general-purpose/ActionGuide.js +290 -64
  290. package/dist/components/general-purpose/AppFrame.js +72 -14
  291. package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
  292. package/dist/components/general-purpose/AppTopBar.js +349 -60
  293. package/dist/components/general-purpose/BrandLoading.js +37 -9
  294. package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
  295. package/dist/components/general-purpose/CommandPalette.js +271 -0
  296. package/dist/components/general-purpose/Commit.d.ts +1 -1
  297. package/dist/components/general-purpose/Commit.js +937 -167
  298. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  299. package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
  300. package/dist/components/general-purpose/FileTree.d.ts +20 -7
  301. package/dist/components/general-purpose/FileTree.js +1 -1
  302. package/dist/components/general-purpose/ListDetail.d.ts +84 -0
  303. package/dist/components/general-purpose/ListDetail.js +423 -0
  304. package/dist/components/general-purpose/NotificationPrompt.js +20 -11
  305. package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
  306. package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
  307. package/dist/components/general-purpose/PricingFAQ.js +53 -12
  308. package/dist/components/general-purpose/PricingPage.js +376 -139
  309. package/dist/components/general-purpose/PricingPlanCard.js +209 -84
  310. package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
  311. package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
  312. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  313. package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
  314. package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
  315. package/dist/components/general-purpose/ScreenStack.js +427 -0
  316. package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
  317. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  318. package/dist/components/general-purpose/StatusScreen.js +82 -24
  319. package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
  320. package/dist/components/general-purpose/SwipeActions.js +357 -0
  321. package/dist/components/general-purpose/Terminal.d.ts +22 -48
  322. package/dist/components/general-purpose/Terminal.js +320 -174
  323. package/dist/components/general-purpose/TestResults.js +975 -196
  324. package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
  325. package/dist/components/general-purpose/ThemeModeControl.js +66 -23
  326. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
  327. package/dist/components/general-purpose/WallpaperPicker.js +180 -0
  328. package/dist/components/general-purpose/WebPreview.d.ts +5 -7
  329. package/dist/components/general-purpose/WebPreview.js +770 -203
  330. package/dist/components/nanites/AgentConnection.js +323 -84
  331. package/dist/components/nanites/AgentToolDetail.js +233 -53
  332. package/dist/components/nanites/GithubMotionMark.js +37 -9
  333. package/dist/components/nanites/NaniteScene.js +535 -323
  334. package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
  335. package/dist/container-width-C43ccJ84.js +17 -0
  336. package/dist/context-Ddsp8HgD.js +43 -0
  337. package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
  338. package/dist/copy-button-DWBVJR6D.js +118 -0
  339. package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
  340. package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
  341. package/dist/icons-nLTnB9kd.js +470 -0
  342. package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
  343. package/dist/motion-CGM3i6lX.js +319 -0
  344. package/dist/motion-preferences-6qsDIDvH.js +13 -0
  345. package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
  346. package/dist/progress-ring-BO649JA9.js +79 -0
  347. package/dist/provider-logos-Ceu7iYFx.js +362 -0
  348. package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
  349. package/dist/styles/accessibility.css +26 -0
  350. package/dist/styles/accordion.css +0 -2
  351. package/dist/styles/activity.css +20 -12
  352. package/dist/styles/agent-attention.css +31 -10
  353. package/dist/styles/agent-chat.css +7 -6
  354. package/dist/styles/agent-computer-motion-reduction.css +118 -0
  355. package/dist/styles/agent-computer-motion.css +127 -0
  356. package/dist/styles/agent-computer-phone.css +942 -0
  357. package/dist/styles/agent-computer.css +1764 -0
  358. package/dist/styles/agent-connection.css +5 -5
  359. package/dist/styles/agent-screen-switcher.css +313 -0
  360. package/dist/styles/app-icon.css +34 -30
  361. package/dist/styles/app-top-bar.css +33 -18
  362. package/dist/styles/approval.css +3 -3
  363. package/dist/styles/artifact.css +1 -1
  364. package/dist/styles/attachment-preview.css +2 -4
  365. package/dist/styles/avatar.css +12 -14
  366. package/dist/styles/base-ui-motion.css +84 -18
  367. package/dist/styles/base-ui-motion.test.tsx +305 -0
  368. package/dist/styles/base.css +16 -12
  369. package/dist/styles/brand.test.ts +7 -20
  370. package/dist/styles/browser-control-overlay.css +1 -1
  371. package/dist/styles/browser-live-screen.css +2 -2
  372. package/dist/styles/browser-live-view.css +1 -1
  373. package/dist/styles/browser-replay.css +0 -8
  374. package/dist/styles/browser-run-panel.css +275 -37
  375. package/dist/styles/button.css +52 -9
  376. package/dist/styles/card.css +6 -5
  377. package/dist/styles/chain-of-thought.css +0 -10
  378. package/dist/styles/checkpoint.css +2 -2
  379. package/dist/styles/codex-model-selector.css +2 -2
  380. package/dist/styles/color-contrast.test.ts +18 -1
  381. package/dist/styles/command-palette.css +110 -0
  382. package/dist/styles/composer-link.css +11 -7
  383. package/dist/styles/composition-motion.css +3 -14
  384. package/dist/styles/context.css +2 -2
  385. package/dist/styles/conversation-tab-picker.css +7 -0
  386. package/dist/styles/conversation.css +8 -2
  387. package/dist/styles/dialog.css +2 -2
  388. package/dist/styles/employee-app.css +8 -2
  389. package/dist/styles/employee-chrome.css +4 -4
  390. package/dist/styles/execution-board.css +206 -114
  391. package/dist/styles/execution-result.css +2 -2
  392. package/dist/styles/field.css +187 -4
  393. package/dist/styles/file-tree.css +218 -40
  394. package/dist/styles/first-run-setup.css +914 -187
  395. package/dist/styles/github-motion-mark.css +0 -8
  396. package/dist/styles/index.css +145 -133
  397. package/dist/styles/inline-citation.css +5 -4
  398. package/dist/styles/list-detail.css +57 -0
  399. package/dist/styles/manager-office.css +6 -8
  400. package/dist/styles/manager-work.css +4 -2
  401. package/dist/styles/mcp-plugin-catalog.css +2 -2
  402. package/dist/styles/mcp-server-picker.css +3 -6
  403. package/dist/styles/media-preview-card.css +2 -2
  404. package/dist/styles/menu.css +0 -9
  405. package/dist/styles/menubar.css +18 -6
  406. package/dist/styles/message-scroller.css +47 -9
  407. package/dist/styles/message.css +3 -3
  408. package/dist/styles/model-selector.css +1 -1
  409. package/dist/styles/motion-reduction.css +39 -6
  410. package/dist/styles/pricing-page.css +1 -1
  411. package/dist/styles/prompt-input.css +29 -29
  412. package/dist/styles/queue.css +1 -1
  413. package/dist/styles/recipes.css +212 -28
  414. package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
  415. package/dist/styles/responsive-sidebar-shell.css +40 -43
  416. package/dist/styles/screen-stack.css +123 -0
  417. package/dist/styles/search-field.css +80 -3
  418. package/dist/styles/stepper.css +0 -10
  419. package/dist/styles/streamdown.css +2 -2
  420. package/dist/styles/subagent-run.css +9 -5
  421. package/dist/styles/swipe-actions.css +158 -0
  422. package/dist/styles/tabs.css +80 -23
  423. package/dist/styles/task.css +7 -1
  424. package/dist/styles/terminal.css +66 -78
  425. package/dist/styles/test-results.css +1 -19
  426. package/dist/styles/textarea.css +2 -1
  427. package/dist/styles/theme-mode-control.css +154 -26
  428. package/dist/styles/think-chat-tool-panels.css +1 -1
  429. package/dist/styles/think-execution-workbench.css +0 -9
  430. package/dist/styles/think-full-app.css +7 -1
  431. package/dist/styles/think-schedule.css +81 -54
  432. package/dist/styles/think-thread-picker.css +28 -37
  433. package/dist/styles/toast.css +11 -0
  434. package/dist/styles/toggle-group.css +0 -10
  435. package/dist/styles/toggle.css +13 -0
  436. package/dist/styles/tooltip.css +12 -0
  437. package/dist/styles/transition-surface.css +1 -0
  438. package/dist/styles/wallpaper-picker.css +224 -0
  439. package/dist/styles/web-preview.css +47 -18
  440. package/dist/styles/workspace-automation.css +116 -17
  441. package/dist/styles/workspace-concepts.css +1 -1
  442. package/dist/styles/workspace-desktop.css +124 -0
  443. package/dist/styles/workspace-entity-card.css +3 -1
  444. package/dist/styles/workspace-explorer.css +499 -5
  445. package/dist/utils/brand-marks.d.ts +13 -0
  446. package/dist/utils/brand-marks.js +14 -0
  447. package/dist/utils/desktop-artwork.d.ts +17 -0
  448. package/dist/utils/desktop-artwork.js +18 -0
  449. package/dist/utils/favicon.d.ts +6 -2
  450. package/dist/utils/favicon.js +16 -4
  451. package/dist/utils/structured-code.d.ts +1 -1
  452. package/dist/workspace-assets-DdtnBDU3.js +213 -0
  453. package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
  454. package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
  455. package/dist/workspace-delete-BOY6CMBf.js +183 -0
  456. package/dist/workspace-drag-B6hMXUNt.js +304 -0
  457. package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
  458. package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
  459. package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
  460. package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
  461. package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
  462. package/package.json +9 -3
  463. package/dist/Avatar-t1YRzdwB.d.ts +0 -101
  464. package/dist/CodeBlock-DYQdZUH6.js +0 -318
  465. package/dist/ExecutionResult-2fBkpIGN.js +0 -279
  466. package/dist/FileTree-CDLOD643.js +0 -323
  467. package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
  468. package/dist/SetupChecklist-B-iEta9v.js +0 -78
  469. package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
  470. package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
  471. package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
  472. package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
  473. package/dist/attachment-preview-1CXJvrmb.js +0 -25
  474. package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
  475. package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
  476. package/dist/copy-button-DbR932tF.js +0 -45
  477. package/dist/icons-GoybMAB2.js +0 -141
  478. package/dist/progress-ring-L2bbF0ji.js +0 -40
  479. package/dist/provider-logos-DWYY8wNz.js +0 -99
  480. package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
  481. package/dist/workspace-assets-F3r6XltC.js +0 -107
  482. package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
  483. package/dist/workspace-delete-CQvv1eDE.js +0 -81
  484. package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
@@ -1,11 +1,11 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { r as firstLine } from "../../format-CWaZEp5o.js";
2
+ import { r as firstLine } from "../../format-DL7f2rqp.js";
3
3
  import { Activity, ActivityContent, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
4
4
  import { MessageResponse } from "../ai-sdk/Message.js";
5
- import { u as useRunsSelector } from "../../agent-tool-runs-DsOp_X2y.js";
5
+ import { u as useRunsSelector } from "../../agent-tool-runs-BXKdcxl8.js";
6
6
  import { getSubagentRunName } from "./SubagentRunIndicator.js";
7
7
  import { NaniteMark } from "../nanites/NaniteScene.js";
8
- import * as React from "react";
8
+ import { c } from "react/compiler-runtime";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
10
10
  import { isTextUIPart } from "ai";
11
11
  //#region src/components/agents-sdk/AgentEvent.tsx
@@ -72,25 +72,168 @@ function agentEventPreview(text) {
72
72
  * from the parent's retained-run projection when the row is inside an
73
73
  * `AgentToolRunsProvider`.
74
74
  */
75
- function AgentEventRow({ className, event, message, ref, ...props }) {
75
+ function AgentEventRow(t0) {
76
+ const $ = c(55);
77
+ let className;
78
+ let event;
79
+ let message;
80
+ let props;
81
+ let ref;
82
+ if ($[0] !== t0) {
83
+ ({className, event, message, ref, ...props} = t0);
84
+ $[0] = t0;
85
+ $[1] = className;
86
+ $[2] = event;
87
+ $[3] = message;
88
+ $[4] = props;
89
+ $[5] = ref;
90
+ } else {
91
+ className = $[1];
92
+ event = $[2];
93
+ message = $[3];
94
+ props = $[4];
95
+ ref = $[5];
96
+ }
76
97
  const { runId } = event;
77
- const run = useRunsSelector(React.useCallback((state) => runId ? state.agentTools.runsById[runId] : void 0, [runId]), void 0);
78
- const name = run ? getSubagentRunName(run) : "Background task";
79
- const text = message.parts.filter(isTextUIPart).map((part) => part.text).join("\n").trim();
80
- return /* @__PURE__ */ jsxs(Activity, {
81
- ref,
82
- "data-slot": "agent-event",
83
- "data-source": event.source,
84
- "data-status": event.status,
85
- className: cx("agent-event", className),
86
- stateKey: `agent-event:${message.id}`,
87
- ...props,
88
- children: [/* @__PURE__ */ jsx(ActivityTrigger, {
89
- icon: /* @__PURE__ */ jsx(NaniteMark, { index: run?.order }),
90
- action: `${name} ${eventVerb(event)}`,
91
- detail: agentEventPreview(text)
92
- }), /* @__PURE__ */ jsx(ActivityContent, { children: /* @__PURE__ */ jsx(ActivityText, { children: /* @__PURE__ */ jsx(MessageResponse, { children: text }) }) })]
93
- });
98
+ let t1;
99
+ if ($[6] !== runId) {
100
+ t1 = (state) => runId ? state.agentTools.runsById[runId] : void 0;
101
+ $[6] = runId;
102
+ $[7] = t1;
103
+ } else t1 = $[7];
104
+ const run = useRunsSelector(t1, void 0);
105
+ let t2;
106
+ if ($[8] !== run) {
107
+ t2 = run ? getSubagentRunName(run) : "Background task";
108
+ $[8] = run;
109
+ $[9] = t2;
110
+ } else t2 = $[9];
111
+ const name = t2;
112
+ let T0;
113
+ let T1;
114
+ let t10;
115
+ let t11;
116
+ let t12;
117
+ let t3;
118
+ let t4;
119
+ let t5;
120
+ let t6;
121
+ let t7;
122
+ let t8;
123
+ let t9;
124
+ let text;
125
+ if ($[10] !== className || $[11] !== event || $[12] !== message.id || $[13] !== message.parts || $[14] !== name || $[15] !== props || $[16] !== ref || $[17] !== run?.order) {
126
+ text = message.parts.filter(isTextUIPart).map(_temp).join("\n").trim();
127
+ T1 = Activity;
128
+ t6 = ref;
129
+ t7 = "agent-event";
130
+ t8 = event.source;
131
+ t9 = event.status;
132
+ if ($[31] !== className) {
133
+ t10 = cx("agent-event", className);
134
+ $[31] = className;
135
+ $[32] = t10;
136
+ } else t10 = $[32];
137
+ t11 = `agent-event:${message.id}`;
138
+ t12 = props;
139
+ T0 = ActivityTrigger;
140
+ const t13 = run?.order;
141
+ if ($[33] !== t13) {
142
+ t3 = /* @__PURE__ */ jsx(NaniteMark, { index: t13 });
143
+ $[33] = t13;
144
+ $[34] = t3;
145
+ } else t3 = $[34];
146
+ let t14;
147
+ if ($[35] !== event) {
148
+ t14 = eventVerb(event);
149
+ $[35] = event;
150
+ $[36] = t14;
151
+ } else t14 = $[36];
152
+ t4 = `${name} ${t14}`;
153
+ t5 = agentEventPreview(text);
154
+ $[10] = className;
155
+ $[11] = event;
156
+ $[12] = message.id;
157
+ $[13] = message.parts;
158
+ $[14] = name;
159
+ $[15] = props;
160
+ $[16] = ref;
161
+ $[17] = run?.order;
162
+ $[18] = T0;
163
+ $[19] = T1;
164
+ $[20] = t10;
165
+ $[21] = t11;
166
+ $[22] = t12;
167
+ $[23] = t3;
168
+ $[24] = t4;
169
+ $[25] = t5;
170
+ $[26] = t6;
171
+ $[27] = t7;
172
+ $[28] = t8;
173
+ $[29] = t9;
174
+ $[30] = text;
175
+ } else {
176
+ T0 = $[18];
177
+ T1 = $[19];
178
+ t10 = $[20];
179
+ t11 = $[21];
180
+ t12 = $[22];
181
+ t3 = $[23];
182
+ t4 = $[24];
183
+ t5 = $[25];
184
+ t6 = $[26];
185
+ t7 = $[27];
186
+ t8 = $[28];
187
+ t9 = $[29];
188
+ text = $[30];
189
+ }
190
+ let t13;
191
+ if ($[37] !== T0 || $[38] !== t3 || $[39] !== t4 || $[40] !== t5) {
192
+ t13 = /* @__PURE__ */ jsx(T0, {
193
+ icon: t3,
194
+ action: t4,
195
+ detail: t5
196
+ });
197
+ $[37] = T0;
198
+ $[38] = t3;
199
+ $[39] = t4;
200
+ $[40] = t5;
201
+ $[41] = t13;
202
+ } else t13 = $[41];
203
+ let t14;
204
+ if ($[42] !== text) {
205
+ t14 = /* @__PURE__ */ jsx(ActivityContent, { children: /* @__PURE__ */ jsx(ActivityText, { children: /* @__PURE__ */ jsx(MessageResponse, { children: text }) }) });
206
+ $[42] = text;
207
+ $[43] = t14;
208
+ } else t14 = $[43];
209
+ let t15;
210
+ if ($[44] !== T1 || $[45] !== t10 || $[46] !== t11 || $[47] !== t12 || $[48] !== t13 || $[49] !== t14 || $[50] !== t6 || $[51] !== t7 || $[52] !== t8 || $[53] !== t9) {
211
+ t15 = /* @__PURE__ */ jsxs(T1, {
212
+ ref: t6,
213
+ "data-slot": t7,
214
+ "data-source": t8,
215
+ "data-status": t9,
216
+ className: t10,
217
+ stateKey: t11,
218
+ ...t12,
219
+ children: [t13, t14]
220
+ });
221
+ $[44] = T1;
222
+ $[45] = t10;
223
+ $[46] = t11;
224
+ $[47] = t12;
225
+ $[48] = t13;
226
+ $[49] = t14;
227
+ $[50] = t6;
228
+ $[51] = t7;
229
+ $[52] = t8;
230
+ $[53] = t9;
231
+ $[54] = t15;
232
+ } else t15 = $[54];
233
+ return t15;
234
+ }
235
+ function _temp(part) {
236
+ return part.text;
94
237
  }
95
238
  //#endregion
96
239
  export { AgentEventRow, getAgentEvent };
@@ -0,0 +1,46 @@
1
+ import { BrowserRunPanelTab } from "./BrowserRunPanel.js";
2
+ import { AgentHandoff } from "./ManagerOffice.js";
3
+ import * as React from "react";
4
+ //#region src/components/agents-sdk/AgentScreenSwitcher.d.ts
5
+ /** One claimed browser tab with its last observed still. */
6
+ export interface AgentScreenSwitcherTab extends BrowserRunPanelTab {
7
+ /** Last observed still for this exact tab. The host owns capture and its lifetime. */
8
+ thumbnail?: {
9
+ src: string;
10
+ alt: string;
11
+ /** Capture time in epoch milliseconds. */
12
+ capturedAt: number;
13
+ };
14
+ }
15
+ /** One conversation's claimed tabs and any human handoff waiting on them. */
16
+ export interface AgentScreenSwitcherThread {
17
+ id: string;
18
+ title: string;
19
+ /** Current work or status, available by expanding the thread's details. */
20
+ description?: string;
21
+ tabs: readonly AgentScreenSwitcherTab[];
22
+ /**
23
+ * A human handoff belongs to an exact claimed tab, independent of card
24
+ * selection. Its `tabId` matches the tab whose `id` is that number stringified.
25
+ */
26
+ handoff?: AgentHandoff;
27
+ }
28
+ /** Props for {@link AgentScreenSwitcher}. */
29
+ export interface AgentScreenSwitcherProps extends Omit<React.ComponentPropsWithRef<"div">, "children"> {
30
+ /** Host-owned thread identities, claimed tabs, and exact-tab handoffs. */
31
+ threads: readonly AgentScreenSwitcherThread[];
32
+ /** Open the host's live viewer for this exact thread and tab. Browsing stills never calls it. */
33
+ onWatch: (threadId: string, tabId: string) => void;
34
+ /** Offer a new page for an empty context when the host can create one. */
35
+ onNewTab?: (threadId: string) => void;
36
+ }
37
+ /**
38
+ * Thread browser windows as last-seen stills: a grid in a wide pane and one
39
+ * column of full-width threads in a narrow one, which also takes iOS's type
40
+ * ramp and lays each thread's pages out as a segmented control. Native tabs
41
+ * inspect each thread's claimed pages.
42
+ * Only Watch or an exact-tab handoff opens the host's live viewer; this
43
+ * component never starts a stream or captures a screenshot.
44
+ */
45
+ export declare function AgentScreenSwitcher({ threads, onWatch, onNewTab, className, ref, ...props }: AgentScreenSwitcherProps): React.JSX.Element;
46
+ //#endregion
@@ -0,0 +1,409 @@
1
+ import { t as cx } from "../../class-names-BiMDVpUo.js";
2
+ import { F as LinkIcon, M as InfoIcon, W as MonitorIcon, Z as PlusIcon, s as ArrowUpRightIcon } from "../../icons-nLTnB9kd.js";
3
+ import { IconButton } from "../foundations/IconButton.js";
4
+ import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
5
+ import { Tabs } from "../foundations/Tabs.js";
6
+ import { n as rootRem } from "../../container-width-C43ccJ84.js";
7
+ import { EmptyState } from "../foundations/EmptyState.js";
8
+ import { Favicon } from "../foundations/Favicon.js";
9
+ import { FormattedDate } from "../foundations/FormattedDate.js";
10
+ import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
11
+ import { c } from "react/compiler-runtime";
12
+ import * as React from "react";
13
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
+ //#region src/components/agents-sdk/AgentScreenSwitcher.tsx
15
+ /** The pane width at and below which a thread's pages become a segmented
16
+ * control; `styles/agent-screen-switcher.css` queries the same width. */
17
+ const NARROW_REM = 30;
18
+ /** Whether the switcher's own pane is narrow, so the tabs' arrow keys follow
19
+ * the axis the container query lays them out on. */
20
+ function useNarrowPane() {
21
+ const $ = c(3);
22
+ const [narrow, setNarrow] = React.useState(false);
23
+ let t0;
24
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
25
+ t0 = (root) => {
26
+ if (!root) return;
27
+ const observer = new ResizeObserver((t1) => {
28
+ const [entry] = t1;
29
+ setNarrow(entry.contentBoxSize[0].inlineSize <= NARROW_REM * rootRem(root.ownerDocument));
30
+ });
31
+ observer.observe(root);
32
+ return () => observer.disconnect();
33
+ };
34
+ $[0] = t0;
35
+ } else t0 = $[0];
36
+ const ref = t0;
37
+ let t1;
38
+ if ($[1] !== narrow) {
39
+ t1 = [narrow, ref];
40
+ $[1] = narrow;
41
+ $[2] = t1;
42
+ } else t1 = $[2];
43
+ return t1;
44
+ }
45
+ function ScreenCard(t0) {
46
+ const $ = c(65);
47
+ const { thread, onWatch, onNewTab, narrow } = t0;
48
+ const titleId = React.useId();
49
+ const [selectedTabId, setSelectedTabId] = React.useState();
50
+ const [failedImage, setFailedImage] = React.useState();
51
+ let t1;
52
+ if ($[0] !== selectedTabId || $[1] !== thread.tabs) {
53
+ t1 = thread.tabs.find((tab) => tab.id === selectedTabId) ?? thread.tabs[0];
54
+ $[0] = selectedTabId;
55
+ $[1] = thread.tabs;
56
+ $[2] = t1;
57
+ } else t1 = $[2];
58
+ const selectedTab = t1;
59
+ const thumbnail = selectedTab?.thumbnail;
60
+ const hasThumbnail = thumbnail !== void 0 && thumbnail.src !== failedImage;
61
+ const handoff = thread.handoff;
62
+ let t2;
63
+ if ($[3] !== handoff || $[4] !== thread.tabs) {
64
+ t2 = handoff ? thread.tabs.find((tab_0) => tab_0.id === String(handoff.tabId)) : void 0;
65
+ $[3] = handoff;
66
+ $[4] = thread.tabs;
67
+ $[5] = t2;
68
+ } else t2 = $[5];
69
+ const waitingTab = t2;
70
+ const t3 = !selectedTab && onNewTab ? `Open a new tab for ${thread.title}` : `Watch screen for ${thread.title}`;
71
+ const t4 = !selectedTab && !onNewTab;
72
+ let t5;
73
+ if ($[6] !== onNewTab || $[7] !== onWatch || $[8] !== selectedTab || $[9] !== thread.id) {
74
+ t5 = () => {
75
+ if (selectedTab) onWatch(thread.id, selectedTab.id);
76
+ else onNewTab?.(thread.id);
77
+ };
78
+ $[6] = onNewTab;
79
+ $[7] = onWatch;
80
+ $[8] = selectedTab;
81
+ $[9] = thread.id;
82
+ $[10] = t5;
83
+ } else t5 = $[10];
84
+ let t6;
85
+ if ($[11] !== hasThumbnail || $[12] !== onNewTab || $[13] !== selectedTab || $[14] !== thumbnail) {
86
+ t6 = hasThumbnail ? /* @__PURE__ */ jsx("img", {
87
+ src: thumbnail.src,
88
+ alt: thumbnail.alt,
89
+ loading: "lazy",
90
+ decoding: "async",
91
+ onError: () => setFailedImage(thumbnail.src)
92
+ }) : /* @__PURE__ */ jsxs("span", {
93
+ className: "agent-screen-switcher__placeholder",
94
+ children: [!selectedTab && onNewTab ? /* @__PURE__ */ jsx(PlusIcon, {}) : /* @__PURE__ */ jsx(MonitorIcon, {}), selectedTab ? "No preview yet" : onNewTab ? "Open a new tab" : "No claimed tabs"]
95
+ });
96
+ $[11] = hasThumbnail;
97
+ $[12] = onNewTab;
98
+ $[13] = selectedTab;
99
+ $[14] = thumbnail;
100
+ $[15] = t6;
101
+ } else t6 = $[15];
102
+ let t7;
103
+ if ($[16] !== selectedTab) {
104
+ t7 = selectedTab ? /* @__PURE__ */ jsx("span", {
105
+ className: "agent-screen-switcher__open",
106
+ "aria-hidden": "true",
107
+ children: /* @__PURE__ */ jsx(ArrowUpRightIcon, {})
108
+ }) : null;
109
+ $[16] = selectedTab;
110
+ $[17] = t7;
111
+ } else t7 = $[17];
112
+ let t8;
113
+ if ($[18] !== t3 || $[19] !== t4 || $[20] !== t5 || $[21] !== t6 || $[22] !== t7) {
114
+ t8 = /* @__PURE__ */ jsxs("button", {
115
+ type: "button",
116
+ className: "agent-screen-switcher__still",
117
+ "aria-label": t3,
118
+ disabled: t4,
119
+ onClick: t5,
120
+ children: [t6, t7]
121
+ });
122
+ $[18] = t3;
123
+ $[19] = t4;
124
+ $[20] = t5;
125
+ $[21] = t6;
126
+ $[22] = t7;
127
+ $[23] = t8;
128
+ } else t8 = $[23];
129
+ const still = t8;
130
+ let t9;
131
+ if ($[24] !== titleId) {
132
+ t9 = /* @__PURE__ */ jsx("article", { "aria-labelledby": titleId });
133
+ $[24] = titleId;
134
+ $[25] = t9;
135
+ } else t9 = $[25];
136
+ const t10 = narrow ? "horizontal" : "vertical";
137
+ const t11 = selectedTab?.id ?? null;
138
+ let t12;
139
+ if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
140
+ t12 = (value) => {
141
+ if (typeof value === "string") setSelectedTabId(value);
142
+ };
143
+ $[26] = t12;
144
+ } else t12 = $[26];
145
+ let t13;
146
+ if ($[27] !== thread.title || $[28] !== titleId) {
147
+ t13 = /* @__PURE__ */ jsx("span", {
148
+ id: titleId,
149
+ children: thread.title
150
+ });
151
+ $[27] = thread.title;
152
+ $[28] = titleId;
153
+ $[29] = t13;
154
+ } else t13 = $[29];
155
+ let t14;
156
+ if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
157
+ t14 = /* @__PURE__ */ jsx(InfoIcon, {});
158
+ $[30] = t14;
159
+ } else t14 = $[30];
160
+ let t15;
161
+ if ($[31] !== t13) {
162
+ t15 = /* @__PURE__ */ jsxs("summary", { children: [t13, t14] });
163
+ $[31] = t13;
164
+ $[32] = t15;
165
+ } else t15 = $[32];
166
+ let t16;
167
+ if ($[33] !== thread.description) {
168
+ t16 = thread.description ? /* @__PURE__ */ jsx("p", { children: thread.description }) : null;
169
+ $[33] = thread.description;
170
+ $[34] = t16;
171
+ } else t16 = $[34];
172
+ let t17;
173
+ if ($[35] !== selectedTab) {
174
+ t17 = selectedTab?.url ? /* @__PURE__ */ jsx("p", { children: selectedTab.url }) : null;
175
+ $[35] = selectedTab;
176
+ $[36] = t17;
177
+ } else t17 = $[36];
178
+ let t18;
179
+ if ($[37] !== t15 || $[38] !== t16 || $[39] !== t17) {
180
+ t18 = /* @__PURE__ */ jsxs("details", {
181
+ className: "agent-screen-switcher__details",
182
+ children: [
183
+ t15,
184
+ t16,
185
+ t17
186
+ ]
187
+ });
188
+ $[37] = t15;
189
+ $[38] = t16;
190
+ $[39] = t17;
191
+ $[40] = t18;
192
+ } else t18 = $[40];
193
+ let t19;
194
+ if ($[41] !== narrow || $[42] !== selectedTab || $[43] !== still || $[44] !== thread.tabs) {
195
+ t19 = selectedTab ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Tabs.List, {
196
+ className: "agent-screen-switcher__tabs",
197
+ "aria-label": "Open browser pages",
198
+ activateOnFocus: true,
199
+ variant: narrow ? "segmented" : void 0,
200
+ unstyled: !narrow,
201
+ children: thread.tabs.map((tab_1) => /* @__PURE__ */ jsxs(Tabs.Tab, {
202
+ value: tab_1.id,
203
+ className: "agent-screen-switcher__tab",
204
+ unstyled: !narrow,
205
+ children: [/* @__PURE__ */ jsx(Favicon, {
206
+ href: tab_1.url,
207
+ fallback: /* @__PURE__ */ jsx(LinkIcon, {})
208
+ }), /* @__PURE__ */ jsx("span", {
209
+ className: "sigvelo-truncate",
210
+ children: tab_1.title || tab_1.url || tab_1.id
211
+ })]
212
+ }, tab_1.id))
213
+ }), thread.tabs.map((tab_2) => /* @__PURE__ */ jsx(Tabs.Panel, {
214
+ value: tab_2.id,
215
+ unstyled: true,
216
+ keepMounted: true,
217
+ children: selectedTab.id === tab_2.id ? still : null
218
+ }, tab_2.id))] }) : still;
219
+ $[41] = narrow;
220
+ $[42] = selectedTab;
221
+ $[43] = still;
222
+ $[44] = thread.tabs;
223
+ $[45] = t19;
224
+ } else t19 = $[45];
225
+ let t20;
226
+ if ($[46] !== hasThumbnail || $[47] !== thumbnail) {
227
+ t20 = hasThumbnail && Number.isFinite(thumbnail.capturedAt) ? /* @__PURE__ */ jsxs(Fragment, { children: [
228
+ /* @__PURE__ */ jsx("span", {
229
+ "aria-hidden": "true",
230
+ children: "Snapshot · "
231
+ }),
232
+ /* @__PURE__ */ jsx("span", {
233
+ className: "sigvelo-visually-hidden",
234
+ children: "Last seen "
235
+ }),
236
+ /* @__PURE__ */ jsx(FormattedDate, {
237
+ date: new Date(thumbnail.capturedAt),
238
+ time: true,
239
+ zone: "local"
240
+ })
241
+ ] }) : "Not streaming";
242
+ $[46] = hasThumbnail;
243
+ $[47] = thumbnail;
244
+ $[48] = t20;
245
+ } else t20 = $[48];
246
+ let t21;
247
+ if ($[49] !== t20) {
248
+ t21 = /* @__PURE__ */ jsx("div", {
249
+ className: "agent-screen-switcher__footer",
250
+ children: /* @__PURE__ */ jsx("span", {
251
+ className: "agent-screen-switcher__caption",
252
+ children: t20
253
+ })
254
+ });
255
+ $[49] = t20;
256
+ $[50] = t21;
257
+ } else t21 = $[50];
258
+ let t22;
259
+ if ($[51] !== handoff || $[52] !== onWatch || $[53] !== thread.id || $[54] !== thread.title || $[55] !== waitingTab) {
260
+ t22 = handoff ? /* @__PURE__ */ jsxs(AgentAttention, {
261
+ tone: "attention",
262
+ className: "agent-screen-switcher__handoff",
263
+ children: [
264
+ /* @__PURE__ */ jsx(AgentAttentionHeader, {
265
+ className: "agent-screen-switcher__handoff-header",
266
+ icon: /* @__PURE__ */ jsx(InfoIcon, {}),
267
+ title: waitingTab ? handoff.reason : "The waiting tab is no longer available.",
268
+ description: waitingTab ? waitingTab.title || waitingTab.url : void 0
269
+ }),
270
+ waitingTab && handoff.request ? /* @__PURE__ */ jsx(AgentAttentionBody, {
271
+ className: "agent-screen-switcher__handoff-ask",
272
+ children: handoff.request
273
+ }) : null,
274
+ waitingTab ? /* @__PURE__ */ jsx(AgentAttentionActions, {
275
+ className: "agent-screen-switcher__handoff-actions",
276
+ children: /* @__PURE__ */ jsx(IconButton, {
277
+ variant: "ghost",
278
+ color: "neutral",
279
+ size: "sm",
280
+ label: `Open waiting tab for ${thread.title}`,
281
+ onClick: () => onWatch(thread.id, waitingTab.id),
282
+ children: /* @__PURE__ */ jsx(ArrowUpRightIcon, {})
283
+ })
284
+ }) : null
285
+ ]
286
+ }) : null;
287
+ $[51] = handoff;
288
+ $[52] = onWatch;
289
+ $[53] = thread.id;
290
+ $[54] = thread.title;
291
+ $[55] = waitingTab;
292
+ $[56] = t22;
293
+ } else t22 = $[56];
294
+ let t23;
295
+ if ($[57] !== t10 || $[58] !== t11 || $[59] !== t18 || $[60] !== t19 || $[61] !== t21 || $[62] !== t22 || $[63] !== t9) {
296
+ t23 = /* @__PURE__ */ jsxs(Tabs.Root, {
297
+ unstyled: true,
298
+ className: "agent-screen-switcher__card",
299
+ render: t9,
300
+ orientation: t10,
301
+ value: t11,
302
+ onValueChange: t12,
303
+ children: [
304
+ t18,
305
+ t19,
306
+ t21,
307
+ t22
308
+ ]
309
+ });
310
+ $[57] = t10;
311
+ $[58] = t11;
312
+ $[59] = t18;
313
+ $[60] = t19;
314
+ $[61] = t21;
315
+ $[62] = t22;
316
+ $[63] = t9;
317
+ $[64] = t23;
318
+ } else t23 = $[64];
319
+ return t23;
320
+ }
321
+ /**
322
+ * Thread browser windows as last-seen stills: a grid in a wide pane and one
323
+ * column of full-width threads in a narrow one, which also takes iOS's type
324
+ * ramp and lays each thread's pages out as a segmented control. Native tabs
325
+ * inspect each thread's claimed pages.
326
+ * Only Watch or an exact-tab handoff opens the host's live viewer; this
327
+ * component never starts a stream or captures a screenshot.
328
+ */
329
+ function AgentScreenSwitcher(t0) {
330
+ const $ = c(22);
331
+ let className;
332
+ let onNewTab;
333
+ let onWatch;
334
+ let props;
335
+ let ref;
336
+ let threads;
337
+ if ($[0] !== t0) {
338
+ ({threads, onWatch, onNewTab, className, ref, ...props} = t0);
339
+ $[0] = t0;
340
+ $[1] = className;
341
+ $[2] = onNewTab;
342
+ $[3] = onWatch;
343
+ $[4] = props;
344
+ $[5] = ref;
345
+ $[6] = threads;
346
+ } else {
347
+ className = $[1];
348
+ onNewTab = $[2];
349
+ onWatch = $[3];
350
+ props = $[4];
351
+ ref = $[5];
352
+ threads = $[6];
353
+ }
354
+ const [narrow, narrowRef] = useNarrowPane();
355
+ let t1;
356
+ if ($[7] !== narrowRef || $[8] !== ref) {
357
+ t1 = mergeRefs(ref, narrowRef);
358
+ $[7] = narrowRef;
359
+ $[8] = ref;
360
+ $[9] = t1;
361
+ } else t1 = $[9];
362
+ let t2;
363
+ if ($[10] !== className) {
364
+ t2 = cx("agent-screen-switcher", className);
365
+ $[10] = className;
366
+ $[11] = t2;
367
+ } else t2 = $[11];
368
+ let t3;
369
+ if ($[12] !== narrow || $[13] !== onNewTab || $[14] !== onWatch || $[15] !== threads) {
370
+ t3 = threads.length ? /* @__PURE__ */ jsx("ul", {
371
+ className: "agent-screen-switcher__list",
372
+ role: "list",
373
+ "aria-label": "Thread screens",
374
+ children: threads.map((thread) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(ScreenCard, {
375
+ thread,
376
+ onWatch,
377
+ onNewTab,
378
+ narrow
379
+ }) }, thread.id))
380
+ }) : /* @__PURE__ */ jsx(EmptyState, {
381
+ icon: /* @__PURE__ */ jsx(MonitorIcon, {}),
382
+ title: "No thread screens",
383
+ description: "A thread's claimed browser tabs will appear here."
384
+ });
385
+ $[12] = narrow;
386
+ $[13] = onNewTab;
387
+ $[14] = onWatch;
388
+ $[15] = threads;
389
+ $[16] = t3;
390
+ } else t3 = $[16];
391
+ let t4;
392
+ if ($[17] !== props || $[18] !== t1 || $[19] !== t2 || $[20] !== t3) {
393
+ t4 = /* @__PURE__ */ jsx("div", {
394
+ ref: t1,
395
+ className: t2,
396
+ "data-slot": "agent-screen-switcher",
397
+ ...props,
398
+ children: t3
399
+ });
400
+ $[17] = props;
401
+ $[18] = t1;
402
+ $[19] = t2;
403
+ $[20] = t3;
404
+ $[21] = t4;
405
+ } else t4 = $[21];
406
+ return t4;
407
+ }
408
+ //#endregion
409
+ export { AgentScreenSwitcher };