@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,6 +1,7 @@
1
1
  import { findCatalogMcpServerCard } from "../../utils/mcp-server-catalog.js";
2
- import { $ as SquareIcon, C as FileIcon, E as InfoIcon, K as QueueIcon, L as MonitorIcon, N as McpIcon, P as MessageSquareIcon, R as MoonIcon, V as PencilIcon, Z as SpinnerIcon, c as BoxIcon, o as ArrowUpRightIcon, r as ArrowLeftIcon, rt as TerminalIcon, st as WarningIcon, tt as SunIcon, u as CalendarIcon, w as FolderIcon, x as EyeIcon, y as EllipsisIcon } from "../../icons-GoybMAB2.js";
3
- import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
2
+ import { $ as QueueIcon, B as McpIcon, E as EyeIcon, G as MoonIcon, J as PencilIcon, M as InfoIcon, O as FileIcon, V as MessageSquareIcon, W as MonitorIcon, ct as SunIcon, f as CalendarIcon, it as SpinnerIcon, k as FolderIcon, mt as WarningIcon, ot as SquareIcon, r as ArrowLeftIcon, s as ArrowUpRightIcon, u as BoxIcon, ut as TerminalIcon, w as EllipsisIcon } from "../../icons-nLTnB9kd.js";
3
+ import { t as attempt } from "../../attempt-CySQHJsF.js";
4
+ import { a as formatErrorMessage } from "../../format-DL7f2rqp.js";
4
5
  import { Button } from "../foundations/Button.js";
5
6
  import { Dialog } from "../foundations/Dialog.js";
6
7
  import { Tooltip } from "../foundations/Tooltip.js";
@@ -9,17 +10,18 @@ import { Menu } from "../foundations/Menu.js";
9
10
  import { BrandLoading } from "../general-purpose/BrandLoading.js";
10
11
  import { AgentChat } from "./AgentChat.js";
11
12
  import { EmptyState } from "../foundations/EmptyState.js";
13
+ import { Avatar } from "../foundations/Avatar.js";
12
14
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
13
- import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-kqMa81v5.js";
15
+ import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-DMmtdqsM.js";
14
16
  import { AgentChatStartScreen, AgentChatStartScreenComposer, AgentChatStartScreenPrimary, AgentChatStartScreenSuggestions, AgentChatStartScreenTray, AgentChatStarterList } from "../ai-sdk/AgentChatStartScreen.js";
15
- import { ChatGptSignInScreen } from "../extension/ChatGptSignInScreen.js";
16
- import { Avatar } from "../foundations/Avatar.js";
17
+ import { t as ChatGptSignInScreen } from "../../ChatGptSignInScreen-CmbBe09G.js";
17
18
  import { DescriptionList } from "../foundations/DescriptionList.js";
18
19
  import { useTheme } from "../foundations/ThemeProvider.js";
19
20
  import { ActionGuide, ActionGuideAction, ActionGuideList, ActionGuideSection } from "../general-purpose/ActionGuide.js";
20
21
  import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
21
22
  import { McpServerIcon } from "./McpServerIcon.js";
22
23
  import { ThinkThreadPicker, ThinkThreadStatusIndicators, summarizeThinkThreads } from "./ThinkThreadPicker.js";
24
+ import { c } from "react/compiler-runtime";
23
25
  import * as React from "react";
24
26
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
25
27
  //#region src/components/agents-sdk/EmployeeChrome.tsx
@@ -34,338 +36,720 @@ const WORKBENCH_NAVIGATION = [{
34
36
  description: "Connect apps and manage the tools this employee can use.",
35
37
  icon: /* @__PURE__ */ jsx(BoxIcon, {})
36
38
  }];
37
- function MenuHint({ hint, children }) {
39
+ function MenuHint(t0) {
40
+ const $ = c(11);
41
+ const { hint, children } = t0;
38
42
  const descriptionId = React.useId();
39
- return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [React.cloneElement(children, { "aria-describedby": descriptionId }), /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
40
- side: "left",
41
- align: "center",
42
- sideOffset: 8,
43
- children: /* @__PURE__ */ jsx(Tooltip.Popup, {
44
- id: descriptionId,
45
- children: hint
46
- })
47
- }) })] });
43
+ let t1;
44
+ if ($[0] !== children || $[1] !== descriptionId) {
45
+ let t2;
46
+ if ($[3] !== descriptionId) {
47
+ t2 = { "aria-describedby": descriptionId };
48
+ $[3] = descriptionId;
49
+ $[4] = t2;
50
+ } else t2 = $[4];
51
+ t1 = React.cloneElement(children, t2);
52
+ $[0] = children;
53
+ $[1] = descriptionId;
54
+ $[2] = t1;
55
+ } else t1 = $[2];
56
+ let t2;
57
+ if ($[5] !== descriptionId || $[6] !== hint) {
58
+ t2 = /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
59
+ side: "left",
60
+ align: "center",
61
+ sideOffset: 8,
62
+ children: /* @__PURE__ */ jsx(Tooltip.Popup, {
63
+ id: descriptionId,
64
+ children: hint
65
+ })
66
+ }) });
67
+ $[5] = descriptionId;
68
+ $[6] = hint;
69
+ $[7] = t2;
70
+ } else t2 = $[7];
71
+ let t3;
72
+ if ($[8] !== t1 || $[9] !== t2) {
73
+ t3 = /* @__PURE__ */ jsxs(Tooltip.Root, { children: [t1, t2] });
74
+ $[8] = t1;
75
+ $[9] = t2;
76
+ $[10] = t3;
77
+ } else t3 = $[10];
78
+ return t3;
48
79
  }
49
- function MenuSwitchItem({ label, hint, checked, onCheckedChange }) {
50
- return /* @__PURE__ */ jsx(MenuHint, {
51
- hint,
52
- children: /* @__PURE__ */ jsxs(Menu.CheckboxItem, {
80
+ function MenuSwitchItem(t0) {
81
+ const $ = c(14);
82
+ const { label, hint, checked, onCheckedChange } = t0;
83
+ let t1;
84
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
85
+ t1 = /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) });
86
+ $[0] = t1;
87
+ } else t1 = $[0];
88
+ let t2;
89
+ if ($[1] !== label) {
90
+ t2 = /* @__PURE__ */ jsx("span", {
91
+ className: "employee-menu__switch-label",
92
+ children: label
93
+ });
94
+ $[1] = label;
95
+ $[2] = t2;
96
+ } else t2 = $[2];
97
+ const t3 = checked ? "" : void 0;
98
+ let t4;
99
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
100
+ t4 = /* @__PURE__ */ jsx("span", { className: "switch__thumb" });
101
+ $[3] = t4;
102
+ } else t4 = $[3];
103
+ let t5;
104
+ if ($[4] !== t3) {
105
+ t5 = /* @__PURE__ */ jsx("span", {
106
+ className: "switch switch--sm",
107
+ "aria-hidden": "true",
108
+ "data-checked": t3,
109
+ children: t4
110
+ });
111
+ $[4] = t3;
112
+ $[5] = t5;
113
+ } else t5 = $[5];
114
+ let t6;
115
+ if ($[6] !== checked || $[7] !== onCheckedChange || $[8] !== t2 || $[9] !== t5) {
116
+ t6 = /* @__PURE__ */ jsxs(Menu.CheckboxItem, {
53
117
  className: "employee-menu__switch",
54
118
  checked,
55
119
  onCheckedChange,
56
120
  closeOnClick: false,
57
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
58
- children: [/* @__PURE__ */ jsx("span", {
59
- className: "employee-menu__switch-label",
60
- children: label
61
- }), /* @__PURE__ */ jsx("span", {
62
- className: "switch switch--sm",
63
- "aria-hidden": "true",
64
- "data-checked": checked ? "" : void 0,
65
- children: /* @__PURE__ */ jsx("span", { className: "switch__thumb" })
66
- })]
67
- })
68
- });
121
+ render: t1,
122
+ children: [t2, t5]
123
+ });
124
+ $[6] = checked;
125
+ $[7] = onCheckedChange;
126
+ $[8] = t2;
127
+ $[9] = t5;
128
+ $[10] = t6;
129
+ } else t6 = $[10];
130
+ let t7;
131
+ if ($[11] !== hint || $[12] !== t6) {
132
+ t7 = /* @__PURE__ */ jsx(MenuHint, {
133
+ hint,
134
+ children: t6
135
+ });
136
+ $[11] = hint;
137
+ $[12] = t6;
138
+ $[13] = t7;
139
+ } else t7 = $[13];
140
+ return t7;
69
141
  }
70
142
  /** Employee settings are host-owned state; the menu stores only dialog visibility. */
71
- function EmployeeMenu({ renderLink, view = "chat", identity, onAIProvider, onSignOut, display, companion, localAgents, passkeys, follow, workbenchNavigation = [], navigation }) {
143
+ function EmployeeMenu(t0) {
144
+ const $ = c(92);
145
+ const { renderLink, view: t1, threadId, identity, onAIProvider, onSignOut, display, companion, localAgents, passkeys, follow, workbenchNavigation: t2, navigation } = t0;
146
+ const view = t1 === void 0 ? "chat" : t1;
147
+ let t3;
148
+ if ($[0] !== t2) {
149
+ t3 = t2 === void 0 ? [] : t2;
150
+ $[0] = t2;
151
+ $[1] = t3;
152
+ } else t3 = $[1];
153
+ const workbenchNavigation = t3;
72
154
  const { preference, setPreference } = useTheme();
73
- const { restoreBarFocus, closeSidebarOnCompact } = useResponsiveSidebarShell();
74
- const [identityOpen, setIdentityOpen] = React.useState(false);
75
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Menu.Root, {
76
- onOpenChangeComplete: (open) => {
77
- if (!open) queueMicrotask(restoreBarFocus);
78
- },
79
- children: [/* @__PURE__ */ jsx(AppTopBar.Button, {
155
+ const { closeSidebarOnCompact } = useResponsiveSidebarShell();
156
+ let t4;
157
+ if ($[2] !== threadId || $[3] !== view) {
158
+ t4 = JSON.stringify([view, threadId]);
159
+ $[2] = threadId;
160
+ $[3] = view;
161
+ $[4] = t4;
162
+ } else t4 = $[4];
163
+ const location = t4;
164
+ const [identityOpenAt, setIdentityOpenAt] = React.useState(null);
165
+ const t5 = identity?.email ? "Signed in as " + identity.email : void 0;
166
+ let t6;
167
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
168
+ t6 = /* @__PURE__ */ jsx(Menu.Trigger, {});
169
+ $[5] = t6;
170
+ } else t6 = $[5];
171
+ let t7;
172
+ if ($[6] !== identity) {
173
+ t7 = identity?.email ? /* @__PURE__ */ jsx(Avatar.Root, {
174
+ size: "sm",
175
+ children: /* @__PURE__ */ jsx(Avatar.Fallback, { children: identity.email[0]?.toUpperCase() })
176
+ }) : /* @__PURE__ */ jsx(EllipsisIcon, {});
177
+ $[6] = identity;
178
+ $[7] = t7;
179
+ } else t7 = $[7];
180
+ let t8;
181
+ if ($[8] !== t5 || $[9] !== t7) {
182
+ t8 = /* @__PURE__ */ jsx(AppTopBar.Button, {
80
183
  label: "More actions",
81
- tooltip: identity?.email ? "Signed in as " + identity.email : void 0,
82
- render: /* @__PURE__ */ jsx(Menu.Trigger, {}),
83
- children: identity?.email ? /* @__PURE__ */ jsx(Avatar.Root, {
84
- size: "sm",
85
- children: /* @__PURE__ */ jsx(Avatar.Fallback, { children: identity.email[0]?.toUpperCase() })
86
- }) : /* @__PURE__ */ jsx(EllipsisIcon, {})
87
- }), /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
184
+ tooltip: t5,
185
+ render: t6,
186
+ children: t7
187
+ });
188
+ $[8] = t5;
189
+ $[9] = t7;
190
+ $[10] = t8;
191
+ } else t8 = $[10];
192
+ let t9;
193
+ if ($[11] !== closeSidebarOnCompact || $[12] !== renderLink || $[13] !== view) {
194
+ t9 = view !== "chat" ? /* @__PURE__ */ jsx(MenuHint, {
195
+ hint: "Return to this conversation.",
196
+ children: /* @__PURE__ */ jsxs(Menu.Item, {
197
+ onClick: closeSidebarOnCompact,
198
+ render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: renderLink({
199
+ kind: "view",
200
+ view: "chat"
201
+ }) }),
202
+ children: [/* @__PURE__ */ jsx(MessageSquareIcon, {}), "Chat"]
203
+ })
204
+ }) : null;
205
+ $[11] = closeSidebarOnCompact;
206
+ $[12] = renderLink;
207
+ $[13] = view;
208
+ $[14] = t9;
209
+ } else t9 = $[14];
210
+ let t10;
211
+ if ($[15] !== navigation || $[16] !== workbenchNavigation) {
212
+ t10 = navigation ?? [...WORKBENCH_NAVIGATION, ...workbenchNavigation];
213
+ $[15] = navigation;
214
+ $[16] = workbenchNavigation;
215
+ $[17] = t10;
216
+ } else t10 = $[17];
217
+ let t11;
218
+ if ($[18] !== closeSidebarOnCompact || $[19] !== renderLink || $[20] !== t10 || $[21] !== view) {
219
+ let t12;
220
+ if ($[23] !== closeSidebarOnCompact || $[24] !== renderLink || $[25] !== view) {
221
+ t12 = (item) => /* @__PURE__ */ jsx(MenuHint, {
222
+ hint: item.description,
223
+ children: /* @__PURE__ */ jsxs(Menu.Item, {
224
+ "aria-current": view === item.id ? "page" : void 0,
225
+ onClick: closeSidebarOnCompact,
226
+ render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: renderLink({
227
+ kind: "view",
228
+ view: item.id
229
+ }) }),
230
+ children: [item.icon, /* @__PURE__ */ jsx("span", {
231
+ className: "sigvelo-truncate",
232
+ children: item.label
233
+ })]
234
+ })
235
+ }, item.id);
236
+ $[23] = closeSidebarOnCompact;
237
+ $[24] = renderLink;
238
+ $[25] = view;
239
+ $[26] = t12;
240
+ } else t12 = $[26];
241
+ t11 = t10.map(t12);
242
+ $[18] = closeSidebarOnCompact;
243
+ $[19] = renderLink;
244
+ $[20] = t10;
245
+ $[21] = view;
246
+ $[22] = t11;
247
+ } else t11 = $[22];
248
+ const t12 = view === "schedules" ? "page" : void 0;
249
+ let t13;
250
+ if ($[27] !== renderLink) {
251
+ t13 = renderLink({
252
+ kind: "view",
253
+ view: "schedules"
254
+ });
255
+ $[27] = renderLink;
256
+ $[28] = t13;
257
+ } else t13 = $[28];
258
+ let t14;
259
+ if ($[29] !== t13) {
260
+ t14 = /* @__PURE__ */ jsx(Tooltip.Trigger, { render: t13 });
261
+ $[29] = t13;
262
+ $[30] = t14;
263
+ } else t14 = $[30];
264
+ let t15;
265
+ if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
266
+ t15 = /* @__PURE__ */ jsx(CalendarIcon, {});
267
+ $[31] = t15;
268
+ } else t15 = $[31];
269
+ let t16;
270
+ if ($[32] !== closeSidebarOnCompact || $[33] !== t12 || $[34] !== t14) {
271
+ t16 = /* @__PURE__ */ jsx(MenuHint, {
272
+ hint: "Run a prompt or an automation at set times, and review the runs.",
273
+ children: /* @__PURE__ */ jsxs(Menu.Item, {
274
+ "aria-current": t12,
275
+ onClick: closeSidebarOnCompact,
276
+ render: t14,
277
+ children: [t15, "Schedules"]
278
+ })
279
+ });
280
+ $[32] = closeSidebarOnCompact;
281
+ $[33] = t12;
282
+ $[34] = t14;
283
+ $[35] = t16;
284
+ } else t16 = $[35];
285
+ let t17;
286
+ if ($[36] !== follow) {
287
+ t17 = follow ? /* @__PURE__ */ jsx(MenuHint, {
288
+ hint: "Follow the browser tabs this employee uses for this conversation.",
289
+ children: /* @__PURE__ */ jsxs(Menu.CheckboxItem, {
290
+ checked: follow.followed,
291
+ onCheckedChange: follow.onCheckedChange,
292
+ render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
293
+ children: [/* @__PURE__ */ jsx(EyeIcon, {}), "Follow this conversation"]
294
+ })
295
+ }) : null;
296
+ $[36] = follow;
297
+ $[37] = t17;
298
+ } else t17 = $[37];
299
+ let t18;
300
+ if ($[38] !== identity || $[39] !== location) {
301
+ t18 = identity ? /* @__PURE__ */ jsx(MenuHint, {
302
+ hint: "Review the browser profile and account assigned to this employee.",
303
+ children: /* @__PURE__ */ jsxs(Menu.Item, {
304
+ onClick: () => setIdentityOpenAt(location),
305
+ render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
306
+ children: [/* @__PURE__ */ jsx(InfoIcon, {}), "Identity"]
307
+ })
308
+ }) : null;
309
+ $[38] = identity;
310
+ $[39] = location;
311
+ $[40] = t18;
312
+ } else t18 = $[40];
313
+ let t19;
314
+ if ($[41] !== onAIProvider) {
315
+ t19 = onAIProvider ? /* @__PURE__ */ jsx(MenuHint, {
316
+ hint: "Connect, change, or reconnect the AI provider for conversations.",
317
+ children: /* @__PURE__ */ jsxs(Menu.Item, {
318
+ onClick: onAIProvider,
319
+ render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
320
+ children: [/* @__PURE__ */ jsx(TerminalIcon, {}), "AI provider"]
321
+ })
322
+ }) : null;
323
+ $[41] = onAIProvider;
324
+ $[42] = t19;
325
+ } else t19 = $[42];
326
+ let t20;
327
+ if ($[43] !== companion) {
328
+ t20 = companion ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsxs(Menu.Group, { children: [
329
+ /* @__PURE__ */ jsx(Menu.GroupLabel, { children: "Companion app" }),
330
+ /* @__PURE__ */ jsx(MenuSwitchItem, {
331
+ label: /* @__PURE__ */ jsxs(Fragment, { children: ["Connect this browser", /* @__PURE__ */ jsx(InfoIcon, { "aria-hidden": "true" })] }),
332
+ hint: "To connect this browser for chatting with Rook, sign in with a Google Account. If your email is hosted by Microsoft, use a Google Account with that same email. If sign-in fails to open, check other Chrome windows and any blockers for accounts.google.com.",
333
+ checked: companion.enabled,
334
+ onCheckedChange: companion.setEnabled
335
+ }),
336
+ /* @__PURE__ */ jsx(MenuHint, {
337
+ hint: "Open the companion app in a new tab to chat with this employee remotely.",
338
+ children: /* @__PURE__ */ jsxs(Menu.Item, {
339
+ render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("a", {
340
+ href: companion.origin,
341
+ target: "_blank",
342
+ rel: "noreferrer",
343
+ "aria-label": companion.origin.replace(/^https?:\/\//, "")
344
+ }) }),
345
+ children: [/* @__PURE__ */ jsx(ArrowUpRightIcon, {}), /* @__PURE__ */ jsx("span", {
346
+ className: "sigvelo-truncate",
347
+ children: companion.origin.replace(/^https?:\/\//, "")
348
+ })]
349
+ })
350
+ })
351
+ ] })] }) : null;
352
+ $[43] = companion;
353
+ $[44] = t20;
354
+ } else t20 = $[44];
355
+ let t21;
356
+ if ($[45] !== localAgents) {
357
+ t21 = localAgents ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsxs(Menu.Group, { children: [/* @__PURE__ */ jsx(Menu.GroupLabel, { children: "Local agents" }), /* @__PURE__ */ jsx(MenuSwitchItem, {
358
+ label: "Allow local agents",
359
+ hint: "Let agents on this computer, such as Claude Code, use this employee's browser and workspace through the rook command.",
360
+ checked: localAgents.enabled,
361
+ onCheckedChange: localAgents.setEnabled
362
+ })] })] }) : null;
363
+ $[45] = localAgents;
364
+ $[46] = t21;
365
+ } else t21 = $[46];
366
+ let t22;
367
+ if ($[47] !== passkeys) {
368
+ t22 = passkeys ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsxs(Menu.Group, { children: [/* @__PURE__ */ jsx(Menu.GroupLabel, { children: "Passkeys" }), /* @__PURE__ */ jsx(MenuSwitchItem, {
369
+ label: "Use its own passkeys",
370
+ hint: "The employee saves and uses its own passkeys instead of the browser's.",
371
+ checked: passkeys.enabled,
372
+ onCheckedChange: passkeys.setEnabled
373
+ })] })] }) : null;
374
+ $[47] = passkeys;
375
+ $[48] = t22;
376
+ } else t22 = $[48];
377
+ let t23;
378
+ if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
379
+ t23 = /* @__PURE__ */ jsx(Menu.Separator, {});
380
+ $[49] = t23;
381
+ } else t23 = $[49];
382
+ let t24;
383
+ if ($[50] === Symbol.for("react.memo_cache_sentinel")) {
384
+ t24 = /* @__PURE__ */ jsx(Menu.GroupLabel, { children: "Appearance" });
385
+ $[50] = t24;
386
+ } else t24 = $[50];
387
+ let t25;
388
+ if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
389
+ t25 = /* @__PURE__ */ jsx("span", {
390
+ className: "employee-menu__appearance-label",
391
+ children: "Theme"
392
+ });
393
+ $[51] = t25;
394
+ } else t25 = $[51];
395
+ let t26;
396
+ if ($[52] !== setPreference) {
397
+ t26 = (value) => {
398
+ if (value === "light" || value === "dark" || value === "system") setPreference(value);
399
+ };
400
+ $[52] = setPreference;
401
+ $[53] = t26;
402
+ } else t26 = $[53];
403
+ let t27;
404
+ if ($[54] === Symbol.for("react.memo_cache_sentinel")) {
405
+ t27 = /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) });
406
+ $[54] = t27;
407
+ } else t27 = $[54];
408
+ let t28;
409
+ if ($[55] === Symbol.for("react.memo_cache_sentinel")) {
410
+ t28 = /* @__PURE__ */ jsx(MenuHint, {
411
+ hint: "Use a light appearance.",
412
+ children: /* @__PURE__ */ jsxs(Menu.RadioItem, {
413
+ value: "light",
414
+ className: "employee-menu__theme-option",
415
+ "aria-label": "Light",
416
+ render: t27,
417
+ closeOnClick: false,
418
+ children: [/* @__PURE__ */ jsx(SunIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
419
+ className: "sigvelo-visually-hidden",
420
+ children: "Light"
421
+ })]
422
+ })
423
+ });
424
+ $[55] = t28;
425
+ } else t28 = $[55];
426
+ let t29;
427
+ if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
428
+ t29 = /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) });
429
+ $[56] = t29;
430
+ } else t29 = $[56];
431
+ let t30;
432
+ if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
433
+ t30 = /* @__PURE__ */ jsx(MenuHint, {
434
+ hint: "Use a dark appearance.",
435
+ children: /* @__PURE__ */ jsxs(Menu.RadioItem, {
436
+ value: "dark",
437
+ className: "employee-menu__theme-option",
438
+ "aria-label": "Dark",
439
+ render: t29,
440
+ closeOnClick: false,
441
+ children: [/* @__PURE__ */ jsx(MoonIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
442
+ className: "sigvelo-visually-hidden",
443
+ children: "Dark"
444
+ })]
445
+ })
446
+ });
447
+ $[57] = t30;
448
+ } else t30 = $[57];
449
+ let t31;
450
+ if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
451
+ t31 = /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) });
452
+ $[58] = t31;
453
+ } else t31 = $[58];
454
+ let t32;
455
+ if ($[59] === Symbol.for("react.memo_cache_sentinel")) {
456
+ t32 = /* @__PURE__ */ jsx(MenuHint, {
457
+ hint: "Match your device’s light or dark appearance automatically.",
458
+ children: /* @__PURE__ */ jsxs(Menu.RadioItem, {
459
+ value: "system",
460
+ className: "employee-menu__theme-option",
461
+ "aria-label": "System",
462
+ render: t31,
463
+ closeOnClick: false,
464
+ children: [/* @__PURE__ */ jsx(MonitorIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
465
+ className: "sigvelo-visually-hidden",
466
+ children: "System"
467
+ })]
468
+ })
469
+ });
470
+ $[59] = t32;
471
+ } else t32 = $[59];
472
+ let t33;
473
+ if ($[60] !== preference || $[61] !== t26) {
474
+ t33 = /* @__PURE__ */ jsxs("div", {
475
+ className: "employee-menu__appearance-row",
476
+ children: [t25, /* @__PURE__ */ jsxs(Menu.RadioGroup, {
477
+ "aria-label": "Theme",
478
+ className: "employee-menu__appearance-options",
479
+ value: preference,
480
+ onValueChange: t26,
481
+ children: [
482
+ t28,
483
+ t30,
484
+ t32
485
+ ]
486
+ })]
487
+ });
488
+ $[60] = preference;
489
+ $[61] = t26;
490
+ $[62] = t33;
491
+ } else t33 = $[62];
492
+ let t34;
493
+ if ($[63] !== display) {
494
+ t34 = display ? /* @__PURE__ */ jsxs("div", {
495
+ className: "employee-menu__appearance-row",
496
+ children: [/* @__PURE__ */ jsx("span", {
497
+ className: "employee-menu__appearance-label",
498
+ children: "Display"
499
+ }), /* @__PURE__ */ jsxs(Menu.RadioGroup, {
500
+ "aria-label": "Display",
501
+ className: "employee-menu__appearance-options",
502
+ value: display.mode,
503
+ onValueChange: (value_0) => {
504
+ if (value_0 === "sidepanel" || value_0 === "tab") display.setMode(value_0);
505
+ },
506
+ children: [/* @__PURE__ */ jsx(MenuHint, {
507
+ hint: "Open Rook in the side panel when you click the extension icon.",
508
+ children: /* @__PURE__ */ jsx(Menu.RadioItem, {
509
+ value: "sidepanel",
510
+ className: "employee-menu__display-option",
511
+ closeOnClick: false,
512
+ render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
513
+ children: "Side panel"
514
+ })
515
+ }), /* @__PURE__ */ jsx(MenuHint, {
516
+ hint: "Open Rook in a full browser tab when you click the extension icon.",
517
+ children: /* @__PURE__ */ jsx(Menu.RadioItem, {
518
+ value: "tab",
519
+ className: "employee-menu__display-option",
520
+ closeOnClick: false,
521
+ render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
522
+ children: "Full tab"
523
+ })
524
+ })]
525
+ })]
526
+ }) : null;
527
+ $[63] = display;
528
+ $[64] = t34;
529
+ } else t34 = $[64];
530
+ let t35;
531
+ if ($[65] !== t33 || $[66] !== t34) {
532
+ t35 = /* @__PURE__ */ jsxs(Menu.Group, {
533
+ className: "employee-menu__appearance",
534
+ children: [
535
+ t24,
536
+ t33,
537
+ t34
538
+ ]
539
+ });
540
+ $[65] = t33;
541
+ $[66] = t34;
542
+ $[67] = t35;
543
+ } else t35 = $[67];
544
+ let t36;
545
+ if ($[68] !== onSignOut) {
546
+ t36 = onSignOut ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsx(MenuHint, {
547
+ hint: "Sign out of your account on this device.",
548
+ children: /* @__PURE__ */ jsxs(Menu.Item, {
549
+ onClick: onSignOut,
550
+ render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
551
+ children: [/* @__PURE__ */ jsx(ArrowUpRightIcon, {}), "Sign out"]
552
+ })
553
+ })] }) : null;
554
+ $[68] = onSignOut;
555
+ $[69] = t36;
556
+ } else t36 = $[69];
557
+ let t37;
558
+ if ($[70] !== t11 || $[71] !== t16 || $[72] !== t17 || $[73] !== t18 || $[74] !== t19 || $[75] !== t20 || $[76] !== t21 || $[77] !== t22 || $[78] !== t35 || $[79] !== t36 || $[80] !== t9) {
559
+ t37 = /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
88
560
  side: "bottom",
89
561
  align: "end",
90
562
  sideOffset: 4,
91
563
  children: /* @__PURE__ */ jsxs(Menu.Popup, {
92
564
  className: "employee-menu",
93
565
  children: [
94
- view !== "chat" ? /* @__PURE__ */ jsx(MenuHint, {
95
- hint: "Return to this conversation.",
96
- children: /* @__PURE__ */ jsxs(Menu.Item, {
97
- onClick: closeSidebarOnCompact,
98
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: renderLink({
99
- kind: "view",
100
- view: "chat"
101
- }) }),
102
- children: [/* @__PURE__ */ jsx(MessageSquareIcon, {}), "Chat"]
103
- })
104
- }) : null,
105
- (navigation ?? [...WORKBENCH_NAVIGATION, ...workbenchNavigation]).map((item) => /* @__PURE__ */ jsx(MenuHint, {
106
- hint: item.description,
107
- children: /* @__PURE__ */ jsxs(Menu.Item, {
108
- "aria-current": view === item.id ? "page" : void 0,
109
- onClick: closeSidebarOnCompact,
110
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: renderLink({
111
- kind: "view",
112
- view: item.id
113
- }) }),
114
- children: [item.icon, /* @__PURE__ */ jsx("span", {
115
- className: "sigvelo-truncate",
116
- children: item.label
117
- })]
118
- })
119
- }, item.id)),
120
- /* @__PURE__ */ jsx(MenuHint, {
121
- hint: "Run a prompt or an automation at set times, and review the runs.",
122
- children: /* @__PURE__ */ jsxs(Menu.Item, {
123
- "aria-current": view === "schedules" ? "page" : void 0,
124
- onClick: closeSidebarOnCompact,
125
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: renderLink({
126
- kind: "view",
127
- view: "schedules"
128
- }) }),
129
- children: [/* @__PURE__ */ jsx(CalendarIcon, {}), "Schedules"]
130
- })
131
- }),
132
- follow ? /* @__PURE__ */ jsx(MenuHint, {
133
- hint: "Follow the browser tabs this employee uses for this conversation.",
134
- children: /* @__PURE__ */ jsxs(Menu.CheckboxItem, {
135
- checked: follow.followed,
136
- onCheckedChange: follow.onCheckedChange,
137
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
138
- children: [/* @__PURE__ */ jsx(EyeIcon, {}), "Follow this conversation"]
139
- })
140
- }) : null,
141
- identity ? /* @__PURE__ */ jsx(MenuHint, {
142
- hint: "Review the browser profile and account assigned to this employee.",
143
- children: /* @__PURE__ */ jsxs(Menu.Item, {
144
- onClick: () => setIdentityOpen(true),
145
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
146
- children: [/* @__PURE__ */ jsx(InfoIcon, {}), "Identity"]
147
- })
148
- }) : null,
149
- onAIProvider ? /* @__PURE__ */ jsx(MenuHint, {
150
- hint: "Connect, change, or reconnect the AI provider for conversations.",
151
- children: /* @__PURE__ */ jsxs(Menu.Item, {
152
- onClick: onAIProvider,
153
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
154
- children: [/* @__PURE__ */ jsx(TerminalIcon, {}), "AI provider"]
155
- })
156
- }) : null,
157
- companion ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsxs(Menu.Group, { children: [
158
- /* @__PURE__ */ jsx(Menu.GroupLabel, { children: "Companion app" }),
159
- /* @__PURE__ */ jsx(MenuSwitchItem, {
160
- label: /* @__PURE__ */ jsxs(Fragment, { children: ["Connect this browser", /* @__PURE__ */ jsx(InfoIcon, { "aria-hidden": "true" })] }),
161
- hint: "To connect this browser for chatting with Rook, sign in with a Google Account. If your email is hosted by Microsoft, use a Google Account with that same email. If sign-in fails to open, check other Chrome windows and any blockers for accounts.google.com.",
162
- checked: companion.enabled,
163
- onCheckedChange: companion.setEnabled
164
- }),
165
- /* @__PURE__ */ jsx(MenuHint, {
166
- hint: "Open the companion app in a new tab to chat with this employee remotely.",
167
- children: /* @__PURE__ */ jsxs(Menu.Item, {
168
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("a", {
169
- href: companion.origin,
170
- target: "_blank",
171
- rel: "noreferrer",
172
- "aria-label": companion.origin.replace(/^https?:\/\//, "")
173
- }) }),
174
- children: [/* @__PURE__ */ jsx(ArrowUpRightIcon, {}), /* @__PURE__ */ jsx("span", {
175
- className: "sigvelo-truncate",
176
- children: companion.origin.replace(/^https?:\/\//, "")
177
- })]
178
- })
179
- })
180
- ] })] }) : null,
181
- localAgents ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsxs(Menu.Group, { children: [/* @__PURE__ */ jsx(Menu.GroupLabel, { children: "Local agents" }), /* @__PURE__ */ jsx(MenuSwitchItem, {
182
- label: "Allow local agents",
183
- hint: "Let agents on this computer, such as Claude Code, use this employee's browser and workspace through the rook command.",
184
- checked: localAgents.enabled,
185
- onCheckedChange: localAgents.setEnabled
186
- })] })] }) : null,
187
- passkeys ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsxs(Menu.Group, { children: [/* @__PURE__ */ jsx(Menu.GroupLabel, { children: "Passkeys" }), /* @__PURE__ */ jsx(MenuSwitchItem, {
188
- label: "Use its own passkeys",
189
- hint: "The employee saves and uses its own passkeys instead of the browser's.",
190
- checked: passkeys.enabled,
191
- onCheckedChange: passkeys.setEnabled
192
- })] })] }) : null,
193
- /* @__PURE__ */ jsx(Menu.Separator, {}),
194
- /* @__PURE__ */ jsxs(Menu.Group, {
195
- className: "employee-menu__appearance",
196
- children: [
197
- /* @__PURE__ */ jsx(Menu.GroupLabel, { children: "Appearance" }),
198
- /* @__PURE__ */ jsxs("div", {
199
- className: "employee-menu__appearance-row",
200
- children: [/* @__PURE__ */ jsx("span", {
201
- className: "employee-menu__appearance-label",
202
- children: "Theme"
203
- }), /* @__PURE__ */ jsxs(Menu.RadioGroup, {
204
- "aria-label": "Theme",
205
- className: "employee-menu__appearance-options",
206
- value: preference,
207
- onValueChange: (value) => {
208
- if (value === "light" || value === "dark" || value === "system") setPreference(value);
209
- },
210
- children: [
211
- /* @__PURE__ */ jsx(MenuHint, {
212
- hint: "Use a light appearance.",
213
- children: /* @__PURE__ */ jsxs(Menu.RadioItem, {
214
- value: "light",
215
- className: "employee-menu__theme-option",
216
- "aria-label": "Light",
217
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
218
- closeOnClick: false,
219
- children: [/* @__PURE__ */ jsx(SunIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
220
- className: "sigvelo-visually-hidden",
221
- children: "Light"
222
- })]
223
- })
224
- }),
225
- /* @__PURE__ */ jsx(MenuHint, {
226
- hint: "Use a dark appearance.",
227
- children: /* @__PURE__ */ jsxs(Menu.RadioItem, {
228
- value: "dark",
229
- className: "employee-menu__theme-option",
230
- "aria-label": "Dark",
231
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
232
- closeOnClick: false,
233
- children: [/* @__PURE__ */ jsx(MoonIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
234
- className: "sigvelo-visually-hidden",
235
- children: "Dark"
236
- })]
237
- })
238
- }),
239
- /* @__PURE__ */ jsx(MenuHint, {
240
- hint: "Match your device’s light or dark appearance automatically.",
241
- children: /* @__PURE__ */ jsxs(Menu.RadioItem, {
242
- value: "system",
243
- className: "employee-menu__theme-option",
244
- "aria-label": "System",
245
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
246
- closeOnClick: false,
247
- children: [/* @__PURE__ */ jsx(MonitorIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
248
- className: "sigvelo-visually-hidden",
249
- children: "System"
250
- })]
251
- })
252
- })
253
- ]
254
- })]
255
- }),
256
- display ? /* @__PURE__ */ jsxs("div", {
257
- className: "employee-menu__appearance-row",
258
- children: [/* @__PURE__ */ jsx("span", {
259
- className: "employee-menu__appearance-label",
260
- children: "Display"
261
- }), /* @__PURE__ */ jsxs(Menu.RadioGroup, {
262
- "aria-label": "Display",
263
- className: "employee-menu__appearance-options",
264
- value: display.mode,
265
- onValueChange: (value) => {
266
- if (value === "sidepanel" || value === "tab") display.setMode(value);
267
- },
268
- children: [/* @__PURE__ */ jsx(MenuHint, {
269
- hint: "Open Rook in the side panel when you click the extension icon.",
270
- children: /* @__PURE__ */ jsx(Menu.RadioItem, {
271
- value: "sidepanel",
272
- className: "employee-menu__display-option",
273
- closeOnClick: false,
274
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
275
- children: "Side panel"
276
- })
277
- }), /* @__PURE__ */ jsx(MenuHint, {
278
- hint: "Open Rook in a full browser tab when you click the extension icon.",
279
- children: /* @__PURE__ */ jsx(Menu.RadioItem, {
280
- value: "tab",
281
- className: "employee-menu__display-option",
282
- closeOnClick: false,
283
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
284
- children: "Full tab"
285
- })
286
- })]
287
- })]
288
- }) : null
289
- ]
290
- }),
291
- onSignOut ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsx(MenuHint, {
292
- hint: "Sign out of your account on this device.",
293
- children: /* @__PURE__ */ jsxs(Menu.Item, {
294
- onClick: onSignOut,
295
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
296
- children: [/* @__PURE__ */ jsx(ArrowUpRightIcon, {}), "Sign out"]
297
- })
298
- })] }) : null
566
+ t9,
567
+ t11,
568
+ t16,
569
+ t17,
570
+ t18,
571
+ t19,
572
+ t20,
573
+ t21,
574
+ t22,
575
+ t23,
576
+ t35,
577
+ t36
299
578
  ]
300
579
  })
301
- }) })]
302
- }), identity ? /* @__PURE__ */ jsx(IdentityDialog, {
303
- identity,
304
- open: identityOpen,
305
- onOpenChange: setIdentityOpen
306
- }) : null] });
580
+ }) });
581
+ $[70] = t11;
582
+ $[71] = t16;
583
+ $[72] = t17;
584
+ $[73] = t18;
585
+ $[74] = t19;
586
+ $[75] = t20;
587
+ $[76] = t21;
588
+ $[77] = t22;
589
+ $[78] = t35;
590
+ $[79] = t36;
591
+ $[80] = t9;
592
+ $[81] = t37;
593
+ } else t37 = $[81];
594
+ let t38;
595
+ if ($[82] !== t37 || $[83] !== t8) {
596
+ t38 = /* @__PURE__ */ jsxs(Menu.Root, { children: [t8, t37] });
597
+ $[82] = t37;
598
+ $[83] = t8;
599
+ $[84] = t38;
600
+ } else t38 = $[84];
601
+ let t39;
602
+ if ($[85] !== identity || $[86] !== identityOpenAt || $[87] !== location) {
603
+ t39 = identity ? /* @__PURE__ */ jsx(IdentityDialog, {
604
+ identity,
605
+ open: identityOpenAt === location,
606
+ onOpenChange: (open) => setIdentityOpenAt(open ? location : null)
607
+ }) : null;
608
+ $[85] = identity;
609
+ $[86] = identityOpenAt;
610
+ $[87] = location;
611
+ $[88] = t39;
612
+ } else t39 = $[88];
613
+ let t40;
614
+ if ($[89] !== t38 || $[90] !== t39) {
615
+ t40 = /* @__PURE__ */ jsxs(Fragment, { children: [t38, t39] });
616
+ $[89] = t38;
617
+ $[90] = t39;
618
+ $[91] = t40;
619
+ } else t40 = $[91];
620
+ return t40;
307
621
  }
308
- function IdentityDialog({ identity, open, onOpenChange }) {
622
+ function IdentityDialog(t0) {
623
+ const $ = c(33);
624
+ const { identity, open, onOpenChange } = t0;
309
625
  const [busy, setBusy] = React.useState(false);
310
626
  const [error, setError] = React.useState();
311
- const changeBinding = async (action) => {
312
- setBusy(true);
313
- setError(void 0);
314
- try {
315
- await action();
316
- onOpenChange(false);
317
- } catch (cause) {
318
- setError(formatErrorMessage(cause));
319
- } finally {
627
+ let t1;
628
+ if ($[0] !== onOpenChange) {
629
+ t1 = async (action) => {
630
+ setBusy(true);
631
+ setError(void 0);
632
+ const changed = await attempt(action);
633
+ if (changed.ok) onOpenChange(false);
634
+ else setError(formatErrorMessage(changed.error));
320
635
  setBusy(false);
321
- }
322
- };
323
- return /* @__PURE__ */ jsx(Dialog.Root, {
324
- open,
325
- onOpenChange: (next) => {
636
+ };
637
+ $[0] = onOpenChange;
638
+ $[1] = t1;
639
+ } else t1 = $[1];
640
+ const changeBinding = t1;
641
+ let t2;
642
+ if ($[2] !== onOpenChange) {
643
+ t2 = (next) => {
326
644
  setError(void 0);
327
645
  onOpenChange(next);
328
- },
329
- children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, { children: [
330
- /* @__PURE__ */ jsxs(Dialog.Header, { children: [/* @__PURE__ */ jsx(Dialog.Title, { children: "Operating identity" }), /* @__PURE__ */ jsx(Dialog.Description, { children: "This employee operates the live browser profile as its own identity. Assigning the account keeps it from signing in with another profile." })] }),
331
- /* @__PURE__ */ jsxs(DescriptionList.Root, {
332
- variant: "divided",
333
- children: [/* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: "Live profile" }), /* @__PURE__ */ jsx(DescriptionList.Details, { children: identity.liveProfile })] }), /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [/* @__PURE__ */ jsx(DescriptionList.Term, { children: "Assigned account" }), /* @__PURE__ */ jsxs(DescriptionList.Details, { children: [identity.assignedAccount, identity.managed ? " (managed by your organization)" : null] })] })]
334
- }),
335
- error ? /* @__PURE__ */ jsx("p", {
336
- role: "alert",
337
- children: error
338
- }) : null,
339
- /* @__PURE__ */ jsx(Dialog.Footer, { children: identity.managed ? /* @__PURE__ */ jsx("p", { children: "Organization policy controls this binding." }) : identity.onUnbind ? /* @__PURE__ */ jsx(Button, {
340
- type: "button",
341
- variant: "ghost",
342
- color: "destructive",
343
- disabled: busy,
344
- onClick: () => identity.onUnbind && void changeBinding(identity.onUnbind),
345
- children: "Remove binding"
346
- }) : /* @__PURE__ */ jsx(Button, {
347
- type: "button",
348
- color: "primary",
349
- disabled: busy || !identity.canBind || !identity.onBind,
350
- onClick: () => identity.onBind && void changeBinding(identity.onBind),
351
- children: "Assign this profile"
352
- }) })
353
- ] }) })] })
354
- });
355
- }
356
- function useEmployeeRunStopFocus() {
357
- const backRef = React.useRef(null);
358
- const focusedStop = React.useRef(null);
359
- React.useLayoutEffect(() => {
360
- const stop = focusedStop.current;
361
- if (!stop || stop.isConnected) return;
362
- focusedStop.current = null;
363
- if (document.activeElement === document.body) backRef.current?.focus({ preventScroll: true });
364
- });
365
- return {
366
- backRef,
367
- focusedStop
368
- };
646
+ };
647
+ $[2] = onOpenChange;
648
+ $[3] = t2;
649
+ } else t2 = $[3];
650
+ let t3;
651
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
652
+ t3 = /* @__PURE__ */ jsx(Dialog.Backdrop, {});
653
+ $[4] = t3;
654
+ } else t3 = $[4];
655
+ let t4;
656
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
657
+ t4 = /* @__PURE__ */ jsxs(Dialog.Header, { children: [/* @__PURE__ */ jsx(Dialog.Title, { children: "Operating identity" }), /* @__PURE__ */ jsx(Dialog.Description, { children: "This employee operates the live browser profile as its own identity. Assigning the account keeps it from signing in with another profile." })] });
658
+ $[5] = t4;
659
+ } else t4 = $[5];
660
+ let t5;
661
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
662
+ t5 = /* @__PURE__ */ jsx(DescriptionList.Term, { children: "Live profile" });
663
+ $[6] = t5;
664
+ } else t5 = $[6];
665
+ let t6;
666
+ if ($[7] !== identity.liveProfile) {
667
+ t6 = /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [t5, /* @__PURE__ */ jsx(DescriptionList.Details, { children: identity.liveProfile })] });
668
+ $[7] = identity.liveProfile;
669
+ $[8] = t6;
670
+ } else t6 = $[8];
671
+ let t7;
672
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
673
+ t7 = /* @__PURE__ */ jsx(DescriptionList.Term, { children: "Assigned account" });
674
+ $[9] = t7;
675
+ } else t7 = $[9];
676
+ const t8 = identity.managed ? " (managed by your organization)" : null;
677
+ let t9;
678
+ if ($[10] !== identity.assignedAccount || $[11] !== t8) {
679
+ t9 = /* @__PURE__ */ jsxs(DescriptionList.Item, { children: [t7, /* @__PURE__ */ jsxs(DescriptionList.Details, { children: [identity.assignedAccount, t8] })] });
680
+ $[10] = identity.assignedAccount;
681
+ $[11] = t8;
682
+ $[12] = t9;
683
+ } else t9 = $[12];
684
+ let t10;
685
+ if ($[13] !== t6 || $[14] !== t9) {
686
+ t10 = /* @__PURE__ */ jsxs(DescriptionList.Root, {
687
+ variant: "divided",
688
+ children: [t6, t9]
689
+ });
690
+ $[13] = t6;
691
+ $[14] = t9;
692
+ $[15] = t10;
693
+ } else t10 = $[15];
694
+ let t11;
695
+ if ($[16] !== error) {
696
+ t11 = error ? /* @__PURE__ */ jsx("p", {
697
+ role: "alert",
698
+ children: error
699
+ }) : null;
700
+ $[16] = error;
701
+ $[17] = t11;
702
+ } else t11 = $[17];
703
+ let t12;
704
+ if ($[18] !== busy || $[19] !== changeBinding || $[20] !== identity.canBind || $[21] !== identity.managed || $[22] !== identity.onBind || $[23] !== identity.onUnbind) {
705
+ t12 = /* @__PURE__ */ jsx(Dialog.Footer, { children: identity.managed ? /* @__PURE__ */ jsx("p", { children: "Organization policy controls this binding." }) : identity.onUnbind ? /* @__PURE__ */ jsx(Button, {
706
+ type: "button",
707
+ variant: "ghost",
708
+ color: "destructive",
709
+ disabled: busy,
710
+ onClick: () => identity.onUnbind && void changeBinding(identity.onUnbind),
711
+ children: "Remove binding"
712
+ }) : /* @__PURE__ */ jsx(Button, {
713
+ type: "button",
714
+ color: "primary",
715
+ disabled: busy || !identity.canBind || !identity.onBind,
716
+ onClick: () => identity.onBind && void changeBinding(identity.onBind),
717
+ children: "Assign this profile"
718
+ }) });
719
+ $[18] = busy;
720
+ $[19] = changeBinding;
721
+ $[20] = identity.canBind;
722
+ $[21] = identity.managed;
723
+ $[22] = identity.onBind;
724
+ $[23] = identity.onUnbind;
725
+ $[24] = t12;
726
+ } else t12 = $[24];
727
+ let t13;
728
+ if ($[25] !== t10 || $[26] !== t11 || $[27] !== t12) {
729
+ t13 = /* @__PURE__ */ jsxs(Dialog.Portal, { children: [t3, /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, { children: [
730
+ t4,
731
+ t10,
732
+ t11,
733
+ t12
734
+ ] }) })] });
735
+ $[25] = t10;
736
+ $[26] = t11;
737
+ $[27] = t12;
738
+ $[28] = t13;
739
+ } else t13 = $[28];
740
+ let t14;
741
+ if ($[29] !== open || $[30] !== t13 || $[31] !== t2) {
742
+ t14 = /* @__PURE__ */ jsx(Dialog.Root, {
743
+ open,
744
+ onOpenChange: t2,
745
+ children: t13
746
+ });
747
+ $[29] = open;
748
+ $[30] = t13;
749
+ $[31] = t2;
750
+ $[32] = t14;
751
+ } else t14 = $[32];
752
+ return t14;
369
753
  }
370
754
  function employeeShellTitle({ agentRun, threadTitle, view, destinationTitle }) {
371
755
  if (!agentRun) {
@@ -391,187 +775,571 @@ function employeeShellCompactSlots({ agentRun, view, title, threads, leading })
391
775
  if (agentRun || view !== "chat") return { compactLeading: leading };
392
776
  return { compactTitleTrigger: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", { children: title }), /* @__PURE__ */ jsx(ThinkThreadStatusIndicators, { summary: summarizeThinkThreads(threads) })] }) };
393
777
  }
394
- function employeeShellActions({ agentRun, focusedStop }) {
778
+ function employeeShellActions(agentRun) {
395
779
  if (agentRun?.state !== "ready" || !agentRun.onCancel) return null;
396
780
  return /* @__PURE__ */ jsx(AppTopBar.Button, {
397
781
  label: "Stop " + getSubagentRunName(agentRun.run),
398
782
  onClick: agentRun.onCancel,
399
783
  disabled: agentRun.cancelPending,
400
- onFocus: (event) => {
401
- focusedStop.current = event.currentTarget;
402
- },
403
- onBlur: () => {
404
- focusedStop.current = null;
405
- },
406
784
  children: /* @__PURE__ */ jsx(SquareIcon, {})
407
785
  });
408
786
  }
409
- function EmployeeNewThread({ renderLink }) {
787
+ function EmployeeNewThread(t0) {
788
+ const $ = c(8);
789
+ const { renderLink } = t0;
410
790
  const { closeSidebar } = useResponsiveSidebarShell();
411
- return /* @__PURE__ */ jsx(AppTopBar.Link, {
412
- label: "New thread",
413
- render: renderLink({ kind: "new-thread" }),
414
- onClick: (event) => {
791
+ let t1;
792
+ if ($[0] !== renderLink) {
793
+ t1 = renderLink({ kind: "new-thread" });
794
+ $[0] = renderLink;
795
+ $[1] = t1;
796
+ } else t1 = $[1];
797
+ let t2;
798
+ if ($[2] !== closeSidebar) {
799
+ t2 = (event) => {
415
800
  if (isPlainPrimaryLinkActivation(event)) closeSidebar();
416
- },
417
- children: /* @__PURE__ */ jsx(PencilIcon, {})
418
- });
801
+ };
802
+ $[2] = closeSidebar;
803
+ $[3] = t2;
804
+ } else t2 = $[3];
805
+ let t3;
806
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
807
+ t3 = /* @__PURE__ */ jsx(PencilIcon, {});
808
+ $[4] = t3;
809
+ } else t3 = $[4];
810
+ let t4;
811
+ if ($[5] !== t1 || $[6] !== t2) {
812
+ t4 = /* @__PURE__ */ jsx(AppTopBar.Link, {
813
+ label: "New thread",
814
+ render: t1,
815
+ onClick: t2,
816
+ children: t3
817
+ });
818
+ $[5] = t1;
819
+ $[6] = t2;
820
+ $[7] = t4;
821
+ } else t4 = $[7];
822
+ return t4;
419
823
  }
420
- function EmployeeThreadSidebar({ closeSidebarOnCompact, threads, renderLink, onDeleteThread }) {
421
- return /* @__PURE__ */ jsx(ThinkThreadPicker, {
422
- threads,
423
- renderThreadLink: (item) => renderLink({
824
+ function EmployeeThreadSidebar(t0) {
825
+ const $ = c(7);
826
+ const { threads, renderLink, onDeleteThread } = t0;
827
+ const { closeSidebarOnCompact } = useResponsiveSidebarShell();
828
+ let t1;
829
+ if ($[0] !== renderLink) {
830
+ t1 = (item) => renderLink({
424
831
  kind: "thread",
425
832
  threadId: item.id
426
- }),
427
- onSelect: closeSidebarOnCompact,
428
- onDelete: onDeleteThread
429
- });
833
+ });
834
+ $[0] = renderLink;
835
+ $[1] = t1;
836
+ } else t1 = $[1];
837
+ let t2;
838
+ if ($[2] !== closeSidebarOnCompact || $[3] !== onDeleteThread || $[4] !== t1 || $[5] !== threads) {
839
+ t2 = /* @__PURE__ */ jsx(ThinkThreadPicker, {
840
+ threads,
841
+ renderThreadLink: t1,
842
+ onSelect: closeSidebarOnCompact,
843
+ onDelete: onDeleteThread
844
+ });
845
+ $[2] = closeSidebarOnCompact;
846
+ $[3] = onDeleteThread;
847
+ $[4] = t1;
848
+ $[5] = threads;
849
+ $[6] = t2;
850
+ } else t2 = $[6];
851
+ return t2;
430
852
  }
431
- function EmployeeShellLeading({ agentRun, view, returnLink, back, appBarLeading, renderLink }) {
853
+ function EmployeeShellLeading(t0) {
854
+ const $ = c(5);
855
+ const { agentRun, view, returnLink, back, appBarLeading, renderLink } = t0;
432
856
  if (agentRun || view === "live") return returnLink;
433
857
  if (view !== "chat") return back ?? returnLink;
434
- return /* @__PURE__ */ jsxs(Fragment, { children: [appBarLeading, /* @__PURE__ */ jsx(EmployeeNewThread, { renderLink })] });
858
+ let t1;
859
+ if ($[0] !== renderLink) {
860
+ t1 = /* @__PURE__ */ jsx(EmployeeNewThread, { renderLink });
861
+ $[0] = renderLink;
862
+ $[1] = t1;
863
+ } else t1 = $[1];
864
+ let t2;
865
+ if ($[2] !== appBarLeading || $[3] !== t1) {
866
+ t2 = /* @__PURE__ */ jsxs(Fragment, { children: [appBarLeading, t1] });
867
+ $[2] = appBarLeading;
868
+ $[3] = t1;
869
+ $[4] = t2;
870
+ } else t2 = $[4];
871
+ return t2;
435
872
  }
436
- function EmployeeShell({ view, threads, threadId, agentRun, back, renderLink, appBarLeading, onDeleteThread, sidebar, sidebarLabel = "threads", navigation, children, ...menu }) {
873
+ function EmployeeShell(t0) {
874
+ const $ = c(98);
875
+ let agentRun;
876
+ let appBarLeading;
877
+ let back;
878
+ let children;
879
+ let menu;
880
+ let navigation;
881
+ let onDeleteThread;
882
+ let renderLink;
883
+ let sidebar;
884
+ let t1;
885
+ let threadId;
886
+ let threads;
887
+ let view;
888
+ if ($[0] !== t0) {
889
+ ({view, threads, threadId, agentRun, back, renderLink, appBarLeading, onDeleteThread, sidebar, sidebarLabel: t1, navigation, children, ...menu} = t0);
890
+ $[0] = t0;
891
+ $[1] = agentRun;
892
+ $[2] = appBarLeading;
893
+ $[3] = back;
894
+ $[4] = children;
895
+ $[5] = menu;
896
+ $[6] = navigation;
897
+ $[7] = onDeleteThread;
898
+ $[8] = renderLink;
899
+ $[9] = sidebar;
900
+ $[10] = t1;
901
+ $[11] = threadId;
902
+ $[12] = threads;
903
+ $[13] = view;
904
+ } else {
905
+ agentRun = $[1];
906
+ appBarLeading = $[2];
907
+ back = $[3];
908
+ children = $[4];
909
+ menu = $[5];
910
+ navigation = $[6];
911
+ onDeleteThread = $[7];
912
+ renderLink = $[8];
913
+ sidebar = $[9];
914
+ t1 = $[10];
915
+ threadId = $[11];
916
+ threads = $[12];
917
+ view = $[13];
918
+ }
919
+ const sidebarLabel = t1 === void 0 ? "threads" : t1;
437
920
  const history = threads ?? EMPTY_THREADS;
438
- const thread = history.find((candidate) => candidate.id === threadId);
439
- const destination = (navigation ?? [...WORKBENCH_NAVIGATION, ...menu.workbenchNavigation ?? []]).find((item) => item.id === view);
440
- const title = employeeShellTitle({
441
- agentRun,
442
- threadTitle: thread?.title,
443
- view,
444
- destinationTitle: destination?.label
445
- });
446
- const { backRef, focusedStop } = useEmployeeRunStopFocus();
447
- const returnLink = /* @__PURE__ */ jsx(AppTopBar.Link, {
448
- ref: backRef,
449
- label: agentRun ? "Back to parent conversation" : "Back to chat",
450
- render: agentRun && threadId ? renderLink({
451
- kind: "thread",
452
- threadId
453
- }) : renderLink({
454
- kind: "view",
455
- view: "chat"
456
- }),
457
- children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
458
- });
459
- const employeeMenu = /* @__PURE__ */ jsx(EmployeeMenu, {
460
- ...menu,
461
- view,
462
- navigation,
463
- renderLink,
464
- follow: agentRun ? void 0 : menu.follow
465
- }, JSON.stringify([view, threadId]));
466
- if (view === "live" && !sidebar) return /* @__PURE__ */ jsx("div", {
467
- className: "employee-shell",
468
- "data-view": view,
469
- children: /* @__PURE__ */ jsx(ResponsiveSidebarShell, {
470
- bar: {
471
- label: "Live view controls",
472
- title,
473
- leading: returnLink,
474
- primary: employeeMenu
475
- },
476
- children
477
- })
478
- });
479
- const leading = /* @__PURE__ */ jsx(EmployeeShellLeading, {
480
- agentRun,
481
- view,
482
- returnLink,
483
- back,
484
- appBarLeading,
485
- renderLink
486
- });
487
- return /* @__PURE__ */ jsx("div", {
488
- className: "employee-shell",
489
- "data-view": view,
490
- children: /* @__PURE__ */ jsx(ResponsiveSidebarShell, {
491
- className: "employee-shell__navigation",
492
- sidebarLabel,
493
- defaultSidebarOpen: sidebar ? void 0 : false,
494
- sidebarTogglePlacement: "main",
495
- showMainLabel: "Show selected thread",
496
- bar: {
497
- label: "Workbench controls",
498
- title,
499
- leading,
500
- ...employeeShellCompactSlots({
501
- agentRun,
921
+ let T0;
922
+ let employeeMenu;
923
+ let t10;
924
+ let t11;
925
+ let t12;
926
+ let t13;
927
+ let t2;
928
+ let t3;
929
+ let t4;
930
+ let t5;
931
+ let t6;
932
+ let t7;
933
+ let t8;
934
+ let t9;
935
+ if ($[14] !== agentRun || $[15] !== appBarLeading || $[16] !== back || $[17] !== children || $[18] !== history || $[19] !== menu || $[20] !== navigation || $[21] !== renderLink || $[22] !== sidebar || $[23] !== sidebarLabel || $[24] !== threadId || $[25] !== view) {
936
+ t13 = Symbol.for("react.early_return_sentinel");
937
+ bb0: {
938
+ let t14;
939
+ if ($[40] !== threadId) {
940
+ t14 = (candidate) => candidate.id === threadId;
941
+ $[40] = threadId;
942
+ $[41] = t14;
943
+ } else t14 = $[41];
944
+ const thread = history.find(t14);
945
+ let t15;
946
+ if ($[42] !== menu || $[43] !== navigation) {
947
+ t15 = navigation ?? [...WORKBENCH_NAVIGATION, ...menu.workbenchNavigation ?? []];
948
+ $[42] = menu;
949
+ $[43] = navigation;
950
+ $[44] = t15;
951
+ } else t15 = $[44];
952
+ let t16;
953
+ if ($[45] !== view) {
954
+ t16 = (item) => item.id === view;
955
+ $[45] = view;
956
+ $[46] = t16;
957
+ } else t16 = $[46];
958
+ const destination = t15.find(t16);
959
+ const title = employeeShellTitle({
960
+ agentRun,
961
+ threadTitle: thread?.title,
962
+ view,
963
+ destinationTitle: destination?.label
964
+ });
965
+ const t17 = agentRun ? "Back to parent conversation" : "Back to chat";
966
+ let t18;
967
+ if ($[47] !== agentRun || $[48] !== renderLink || $[49] !== threadId) {
968
+ t18 = agentRun && threadId ? renderLink({
969
+ kind: "thread",
970
+ threadId
971
+ }) : renderLink({
972
+ kind: "view",
973
+ view: "chat"
974
+ });
975
+ $[47] = agentRun;
976
+ $[48] = renderLink;
977
+ $[49] = threadId;
978
+ $[50] = t18;
979
+ } else t18 = $[50];
980
+ let t19;
981
+ if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
982
+ t19 = /* @__PURE__ */ jsx(ArrowLeftIcon, {});
983
+ $[51] = t19;
984
+ } else t19 = $[51];
985
+ let t20;
986
+ if ($[52] !== t17 || $[53] !== t18) {
987
+ t20 = /* @__PURE__ */ jsx(AppTopBar.Link, {
988
+ label: t17,
989
+ render: t18,
990
+ children: t19
991
+ });
992
+ $[52] = t17;
993
+ $[53] = t18;
994
+ $[54] = t20;
995
+ } else t20 = $[54];
996
+ const returnLink = t20;
997
+ const t21 = agentRun ? void 0 : menu.follow;
998
+ let t22;
999
+ if ($[55] !== menu || $[56] !== navigation || $[57] !== renderLink || $[58] !== t21 || $[59] !== threadId || $[60] !== view) {
1000
+ t22 = /* @__PURE__ */ jsx(EmployeeMenu, {
1001
+ ...menu,
502
1002
  view,
503
- title,
504
- threads: history,
505
- leading
506
- }),
507
- actions: employeeShellActions({
1003
+ threadId,
1004
+ navigation,
1005
+ renderLink,
1006
+ follow: t21
1007
+ });
1008
+ $[55] = menu;
1009
+ $[56] = navigation;
1010
+ $[57] = renderLink;
1011
+ $[58] = t21;
1012
+ $[59] = threadId;
1013
+ $[60] = view;
1014
+ $[61] = t22;
1015
+ } else t22 = $[61];
1016
+ employeeMenu = t22;
1017
+ if (view === "live" && !sidebar) {
1018
+ t13 = /* @__PURE__ */ jsx("div", {
1019
+ className: "employee-shell",
1020
+ "data-view": view,
1021
+ children: /* @__PURE__ */ jsx(ResponsiveSidebarShell, {
1022
+ bar: {
1023
+ label: "Live view controls",
1024
+ title,
1025
+ leading: returnLink,
1026
+ primary: employeeMenu
1027
+ },
1028
+ children
1029
+ })
1030
+ });
1031
+ break bb0;
1032
+ }
1033
+ let t23;
1034
+ if ($[62] !== agentRun || $[63] !== appBarLeading || $[64] !== back || $[65] !== renderLink || $[66] !== returnLink || $[67] !== view) {
1035
+ t23 = /* @__PURE__ */ jsx(EmployeeShellLeading, {
508
1036
  agentRun,
509
- focusedStop
510
- }),
511
- primary: employeeMenu
512
- },
513
- contentBar: true,
514
- sidebar: sidebar ?? (agentRun ? void 0 : ({ closeSidebarOnCompact }) => /* @__PURE__ */ jsx(EmployeeThreadSidebar, {
515
- closeSidebarOnCompact,
1037
+ view,
1038
+ returnLink,
1039
+ back,
1040
+ appBarLeading,
1041
+ renderLink
1042
+ });
1043
+ $[62] = agentRun;
1044
+ $[63] = appBarLeading;
1045
+ $[64] = back;
1046
+ $[65] = renderLink;
1047
+ $[66] = returnLink;
1048
+ $[67] = view;
1049
+ $[68] = t23;
1050
+ } else t23 = $[68];
1051
+ const leading = t23;
1052
+ t11 = "employee-shell";
1053
+ t12 = view;
1054
+ T0 = ResponsiveSidebarShell;
1055
+ t6 = "employee-shell__navigation";
1056
+ t7 = sidebarLabel;
1057
+ t8 = sidebar ? void 0 : false;
1058
+ t9 = "main";
1059
+ t10 = "Show selected thread";
1060
+ t2 = "Workbench controls";
1061
+ t3 = title;
1062
+ t4 = leading;
1063
+ t5 = employeeShellCompactSlots({
1064
+ agentRun,
1065
+ view,
1066
+ title,
516
1067
  threads: history,
517
- renderLink,
518
- onDeleteThread
519
- })),
1068
+ leading
1069
+ });
1070
+ }
1071
+ $[14] = agentRun;
1072
+ $[15] = appBarLeading;
1073
+ $[16] = back;
1074
+ $[17] = children;
1075
+ $[18] = history;
1076
+ $[19] = menu;
1077
+ $[20] = navigation;
1078
+ $[21] = renderLink;
1079
+ $[22] = sidebar;
1080
+ $[23] = sidebarLabel;
1081
+ $[24] = threadId;
1082
+ $[25] = view;
1083
+ $[26] = T0;
1084
+ $[27] = employeeMenu;
1085
+ $[28] = t10;
1086
+ $[29] = t11;
1087
+ $[30] = t12;
1088
+ $[31] = t13;
1089
+ $[32] = t2;
1090
+ $[33] = t3;
1091
+ $[34] = t4;
1092
+ $[35] = t5;
1093
+ $[36] = t6;
1094
+ $[37] = t7;
1095
+ $[38] = t8;
1096
+ $[39] = t9;
1097
+ } else {
1098
+ T0 = $[26];
1099
+ employeeMenu = $[27];
1100
+ t10 = $[28];
1101
+ t11 = $[29];
1102
+ t12 = $[30];
1103
+ t13 = $[31];
1104
+ t2 = $[32];
1105
+ t3 = $[33];
1106
+ t4 = $[34];
1107
+ t5 = $[35];
1108
+ t6 = $[36];
1109
+ t7 = $[37];
1110
+ t8 = $[38];
1111
+ t9 = $[39];
1112
+ }
1113
+ if (t13 !== Symbol.for("react.early_return_sentinel")) return t13;
1114
+ let t14;
1115
+ if ($[69] !== agentRun) {
1116
+ t14 = employeeShellActions(agentRun);
1117
+ $[69] = agentRun;
1118
+ $[70] = t14;
1119
+ } else t14 = $[70];
1120
+ let t15;
1121
+ if ($[71] !== employeeMenu || $[72] !== t14 || $[73] !== t2 || $[74] !== t3 || $[75] !== t4 || $[76] !== t5) {
1122
+ t15 = {
1123
+ label: t2,
1124
+ title: t3,
1125
+ leading: t4,
1126
+ ...t5,
1127
+ actions: t14,
1128
+ primary: employeeMenu
1129
+ };
1130
+ $[71] = employeeMenu;
1131
+ $[72] = t14;
1132
+ $[73] = t2;
1133
+ $[74] = t3;
1134
+ $[75] = t4;
1135
+ $[76] = t5;
1136
+ $[77] = t15;
1137
+ } else t15 = $[77];
1138
+ let t16;
1139
+ if ($[78] !== agentRun || $[79] !== history || $[80] !== onDeleteThread || $[81] !== renderLink || $[82] !== sidebar) {
1140
+ t16 = sidebar ?? (agentRun ? void 0 : /* @__PURE__ */ jsx(EmployeeThreadSidebar, {
1141
+ threads: history,
1142
+ renderLink,
1143
+ onDeleteThread
1144
+ }));
1145
+ $[78] = agentRun;
1146
+ $[79] = history;
1147
+ $[80] = onDeleteThread;
1148
+ $[81] = renderLink;
1149
+ $[82] = sidebar;
1150
+ $[83] = t16;
1151
+ } else t16 = $[83];
1152
+ let t17;
1153
+ if ($[84] !== T0 || $[85] !== children || $[86] !== t10 || $[87] !== t15 || $[88] !== t16 || $[89] !== t6 || $[90] !== t7 || $[91] !== t8 || $[92] !== t9) {
1154
+ t17 = /* @__PURE__ */ jsx(T0, {
1155
+ className: t6,
1156
+ sidebarLabel: t7,
1157
+ defaultSidebarOpen: t8,
1158
+ sidebarTogglePlacement: t9,
1159
+ showMainLabel: t10,
1160
+ bar: t15,
1161
+ contentBar: true,
1162
+ sidebar: t16,
520
1163
  children
521
- })
522
- });
1164
+ });
1165
+ $[84] = T0;
1166
+ $[85] = children;
1167
+ $[86] = t10;
1168
+ $[87] = t15;
1169
+ $[88] = t16;
1170
+ $[89] = t6;
1171
+ $[90] = t7;
1172
+ $[91] = t8;
1173
+ $[92] = t9;
1174
+ $[93] = t17;
1175
+ } else t17 = $[93];
1176
+ let t18;
1177
+ if ($[94] !== t11 || $[95] !== t12 || $[96] !== t17) {
1178
+ t18 = /* @__PURE__ */ jsx("div", {
1179
+ className: t11,
1180
+ "data-view": t12,
1181
+ children: t17
1182
+ });
1183
+ $[94] = t11;
1184
+ $[95] = t12;
1185
+ $[96] = t17;
1186
+ $[97] = t18;
1187
+ } else t18 = $[97];
1188
+ return t18;
523
1189
  }
524
1190
  const EMPTY_THREADS = [];
525
1191
  /** Policy and connection gates are host facts, not design-system presets. */
526
- function EmployeeGate({ status, connectingLabel, identity, brand, modelSetup }) {
1192
+ function EmployeeGate(t0) {
1193
+ const $ = c(33);
1194
+ const { status, connectingLabel, identity, brand, modelSetup } = t0;
527
1195
  switch (status) {
528
1196
  case "ready": return null;
529
- case "needs-model": return /* @__PURE__ */ jsx(ChatGptSignInScreen, {
530
- busy: modelSetup?.busy,
531
- error: modelSetup?.error,
532
- label: modelSetup?.label,
533
- title: "Meet " + brand.name,
534
- description: "Your new AI teammate.",
535
- brandName: "SigVelo",
536
- onSignIn: modelSetup?.onSignIn,
537
- secondaryAction: modelSetup?.onCustomEndpoint ? {
538
- label: "Choose an AI provider",
539
- onSelect: modelSetup.onCustomEndpoint
540
- } : void 0
541
- });
542
- case "connecting": return /* @__PURE__ */ jsx(BrandLoading, { label: connectingLabel ?? "Connecting…" });
543
- case "offline": return /* @__PURE__ */ jsx("div", {
544
- className: "employee-gate",
545
- role: "status",
546
- children: /* @__PURE__ */ jsx(EmptyState, {
547
- icon: /* @__PURE__ */ jsx(WarningIcon, {}),
548
- title: brand.name + " is offline",
549
- description: "Open the browser and turn the companion connection on. This screen reconnects on its own."
550
- })
551
- });
552
- case "identity-blocked":
1197
+ case "needs-model": {
1198
+ const t1 = modelSetup?.busy;
1199
+ const t2 = modelSetup?.error;
1200
+ const t3 = modelSetup?.label;
1201
+ const t4 = "Meet " + brand.name;
1202
+ const t5 = modelSetup?.onSignIn;
1203
+ let t6;
1204
+ if ($[0] !== modelSetup) {
1205
+ t6 = modelSetup?.onCustomEndpoint ? {
1206
+ label: "Choose an AI provider",
1207
+ onSelect: modelSetup.onCustomEndpoint
1208
+ } : void 0;
1209
+ $[0] = modelSetup;
1210
+ $[1] = t6;
1211
+ } else t6 = $[1];
1212
+ let t7;
1213
+ if ($[2] !== t1 || $[3] !== t2 || $[4] !== t3 || $[5] !== t4 || $[6] !== t5 || $[7] !== t6) {
1214
+ t7 = /* @__PURE__ */ jsx(ChatGptSignInScreen, {
1215
+ busy: t1,
1216
+ error: t2,
1217
+ label: t3,
1218
+ title: t4,
1219
+ description: "Your new AI teammate.",
1220
+ brandName: "SigVelo",
1221
+ onSignIn: t5,
1222
+ secondaryAction: t6
1223
+ });
1224
+ $[2] = t1;
1225
+ $[3] = t2;
1226
+ $[4] = t3;
1227
+ $[5] = t4;
1228
+ $[6] = t5;
1229
+ $[7] = t6;
1230
+ $[8] = t7;
1231
+ } else t7 = $[8];
1232
+ return t7;
1233
+ }
1234
+ case "connecting": {
1235
+ const t1 = connectingLabel ?? "Connecting…";
1236
+ let t2;
1237
+ if ($[9] !== t1) {
1238
+ t2 = /* @__PURE__ */ jsx(BrandLoading, { label: t1 });
1239
+ $[9] = t1;
1240
+ $[10] = t2;
1241
+ } else t2 = $[10];
1242
+ return t2;
1243
+ }
1244
+ case "offline": {
1245
+ let t1;
1246
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
1247
+ t1 = /* @__PURE__ */ jsx(WarningIcon, {});
1248
+ $[11] = t1;
1249
+ } else t1 = $[11];
1250
+ const t2 = brand.name + " is offline";
1251
+ let t3;
1252
+ if ($[12] !== t2) {
1253
+ t3 = /* @__PURE__ */ jsx("div", {
1254
+ className: "employee-gate",
1255
+ role: "status",
1256
+ children: /* @__PURE__ */ jsx(EmptyState, {
1257
+ icon: t1,
1258
+ title: t2,
1259
+ description: "Open the browser and turn the companion connection on. This screen reconnects on its own."
1260
+ })
1261
+ });
1262
+ $[12] = t2;
1263
+ $[13] = t3;
1264
+ } else t3 = $[13];
1265
+ return t3;
1266
+ }
1267
+ case "identity-blocked": {
553
1268
  if (!identity) return null;
554
- return /* @__PURE__ */ jsxs("div", {
555
- className: "employee-gate",
556
- role: "alert",
557
- children: [/* @__PURE__ */ jsx(EmptyState, {
558
- icon: /* @__PURE__ */ jsx(WarningIcon, {}),
1269
+ let t1;
1270
+ if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
1271
+ t1 = /* @__PURE__ */ jsx(WarningIcon, {});
1272
+ $[14] = t1;
1273
+ } else t1 = $[14];
1274
+ let t2;
1275
+ if ($[15] !== identity.assignedAccount) {
1276
+ t2 = /* @__PURE__ */ jsx("strong", { children: identity.assignedAccount });
1277
+ $[15] = identity.assignedAccount;
1278
+ $[16] = t2;
1279
+ } else t2 = $[16];
1280
+ let t3;
1281
+ if ($[17] !== identity.liveProfile) {
1282
+ t3 = /* @__PURE__ */ jsx("strong", { children: identity.liveProfile });
1283
+ $[17] = identity.liveProfile;
1284
+ $[18] = t3;
1285
+ } else t3 = $[18];
1286
+ let t4;
1287
+ if ($[19] !== t2 || $[20] !== t3) {
1288
+ t4 = /* @__PURE__ */ jsxs("p", { children: [
1289
+ "This installation is assigned to ",
1290
+ t2,
1291
+ ", but the live profile is ",
1292
+ t3,
1293
+ "."
1294
+ ] });
1295
+ $[19] = t2;
1296
+ $[20] = t3;
1297
+ $[21] = t4;
1298
+ } else t4 = $[21];
1299
+ const t5 = identity.managed ? "Open the assigned profile. Organization policy controls this assignment." : "Open the assigned profile, or remove the binding.";
1300
+ let t6;
1301
+ if ($[22] !== t5) {
1302
+ t6 = /* @__PURE__ */ jsx("p", { children: t5 });
1303
+ $[22] = t5;
1304
+ $[23] = t6;
1305
+ } else t6 = $[23];
1306
+ let t7;
1307
+ if ($[24] !== t4 || $[25] !== t6) {
1308
+ t7 = /* @__PURE__ */ jsx(EmptyState, {
1309
+ icon: t1,
559
1310
  title: "Wrong browser profile",
560
- description: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", { children: [
561
- "This installation is assigned to ",
562
- /* @__PURE__ */ jsx("strong", { children: identity.assignedAccount }),
563
- ", but the live profile is ",
564
- /* @__PURE__ */ jsx("strong", { children: identity.liveProfile }),
565
- "."
566
- ] }), /* @__PURE__ */ jsx("p", { children: identity.managed ? "Open the assigned profile. Organization policy controls this assignment." : "Open the assigned profile, or remove the binding." })] })
567
- }), !identity.managed && identity.onUnbind ? /* @__PURE__ */ jsx(Button, {
1311
+ description: /* @__PURE__ */ jsxs(Fragment, { children: [t4, t6] })
1312
+ });
1313
+ $[24] = t4;
1314
+ $[25] = t6;
1315
+ $[26] = t7;
1316
+ } else t7 = $[26];
1317
+ let t8;
1318
+ if ($[27] !== identity.managed || $[28] !== identity.onUnbind) {
1319
+ t8 = !identity.managed && identity.onUnbind ? /* @__PURE__ */ jsx(Button, {
568
1320
  type: "button",
569
1321
  variant: "ghost",
570
1322
  color: "destructive",
571
1323
  onClick: identity.onUnbind,
572
1324
  children: "Remove binding"
573
- }) : null]
574
- });
1325
+ }) : null;
1326
+ $[27] = identity.managed;
1327
+ $[28] = identity.onUnbind;
1328
+ $[29] = t8;
1329
+ } else t8 = $[29];
1330
+ let t9;
1331
+ if ($[30] !== t7 || $[31] !== t8) {
1332
+ t9 = /* @__PURE__ */ jsxs("div", {
1333
+ className: "employee-gate",
1334
+ role: "alert",
1335
+ children: [t7, t8]
1336
+ });
1337
+ $[30] = t7;
1338
+ $[31] = t8;
1339
+ $[32] = t9;
1340
+ } else t9 = $[32];
1341
+ return t9;
1342
+ }
575
1343
  }
576
1344
  }
577
1345
  function suggestionIcon(value) {
@@ -597,112 +1365,162 @@ function suggestionItemId(suggestion, index) {
597
1365
  ].join(":");
598
1366
  }
599
1367
  /** The composer remains under its existing prompt provider; connection controls are explicit slots. */
600
- function EmployeeWelcome({ brand, children, suggestions, suggestionsError, onRetrySuggestions, onSubmit, tray, setupActions, hasConnectedApps }) {
1368
+ function EmployeeWelcome(t0) {
1369
+ const $ = c(21);
1370
+ const { brand, children, suggestions, suggestionsError, onRetrySuggestions, onSubmit, tray, setupActions, hasConnectedApps } = t0;
601
1371
  const [guideOpen, setGuideOpen] = React.useState(false);
602
- const send = (text) => void onSubmit({
603
- text,
604
- files: []
605
- });
606
- return /* @__PURE__ */ jsxs(AgentChatStartScreen, { children: [/* @__PURE__ */ jsx(AgentChatStartScreenPrimary, { children: /* @__PURE__ */ jsxs(AgentChatStartScreenComposer, { children: [/* @__PURE__ */ jsx(AgentChat.Dock, { children }), tray ? /* @__PURE__ */ jsx(AgentChatStartScreenTray, { children: tray }) : null] }) }), /* @__PURE__ */ jsx(AgentChatStartScreenSuggestions, { children: guideOpen ? /* @__PURE__ */ jsxs(ActionGuide, {
607
- title: brand.name + " can work across your browser.",
608
- description: "They can act in signed-in tabs, keep workspace files, connect plugins, and run recurring work after this panel closes.",
609
- children: [
610
- /* @__PURE__ */ jsx(ActionGuideSection, {
611
- title: "Start with a quick browser job",
612
- children: /* @__PURE__ */ jsxs(ActionGuideList, { children: [
613
- /* @__PURE__ */ jsx(ActionGuideAction, {
614
- icon: /* @__PURE__ */ jsx(BoxIcon, {}),
615
- onClick: () => send("Organize this window’s tabs by task."),
616
- children: "Organize this window’s tabs by task"
617
- }),
618
- /* @__PURE__ */ jsx(ActionGuideAction, {
619
- icon: /* @__PURE__ */ jsx(EyeIcon, {}),
620
- onClick: () => send("Close duplicate tabs in this window."),
621
- children: "Close duplicate tabs in this window"
622
- }),
623
- /* @__PURE__ */ jsx(ActionGuideAction, {
624
- icon: /* @__PURE__ */ jsx(MonitorIcon, {}),
625
- onClick: () => send("Record a browser walkthrough as an MP4."),
626
- children: "Record a browser walkthrough as an MP4"
627
- })
628
- ] })
629
- }),
630
- /* @__PURE__ */ jsx(ActionGuideSection, {
631
- title: "Set up ongoing work",
632
- children: /* @__PURE__ */ jsxs(ActionGuideList, {
633
- layout: "cards",
634
- children: [
635
- /* @__PURE__ */ jsx(ActionGuideAction, {
636
- icon: /* @__PURE__ */ jsx(CalendarIcon, {}),
637
- onClick: () => send("Help me create a schedule."),
638
- children: "Create a schedule"
639
- }),
640
- setupActions,
641
- /* @__PURE__ */ jsx(ActionGuideAction, {
642
- icon: /* @__PURE__ */ jsx(McpIcon, {}),
643
- onClick: () => send(hasConnectedApps ? "Show me useful work I can do across my connected apps." : "Help me connect another app I use."),
644
- children: hasConnectedApps ? "Use my connected apps" : "Connect another app"
645
- })
646
- ]
647
- })
648
- }),
649
- /* @__PURE__ */ jsx(ActionGuideSection, {
650
- title: "Make an automation",
651
- children: /* @__PURE__ */ jsxs(ActionGuideList, {
652
- layout: "list",
653
- children: [
1372
+ let t1;
1373
+ if ($[0] !== onSubmit) {
1374
+ t1 = (text) => void onSubmit({
1375
+ text,
1376
+ files: []
1377
+ });
1378
+ $[0] = onSubmit;
1379
+ $[1] = t1;
1380
+ } else t1 = $[1];
1381
+ const send = t1;
1382
+ let t2;
1383
+ if ($[2] !== children) {
1384
+ t2 = /* @__PURE__ */ jsx(AgentChat.Dock, { children });
1385
+ $[2] = children;
1386
+ $[3] = t2;
1387
+ } else t2 = $[3];
1388
+ let t3;
1389
+ if ($[4] !== tray) {
1390
+ t3 = tray ? /* @__PURE__ */ jsx(AgentChatStartScreenTray, { children: tray }) : null;
1391
+ $[4] = tray;
1392
+ $[5] = t3;
1393
+ } else t3 = $[5];
1394
+ let t4;
1395
+ if ($[6] !== t2 || $[7] !== t3) {
1396
+ t4 = /* @__PURE__ */ jsx(AgentChatStartScreenPrimary, { children: /* @__PURE__ */ jsxs(AgentChatStartScreenComposer, { children: [t2, t3] }) });
1397
+ $[6] = t2;
1398
+ $[7] = t3;
1399
+ $[8] = t4;
1400
+ } else t4 = $[8];
1401
+ let t5;
1402
+ if ($[9] !== brand.name || $[10] !== guideOpen || $[11] !== hasConnectedApps || $[12] !== onRetrySuggestions || $[13] !== send || $[14] !== setupActions || $[15] !== suggestions || $[16] !== suggestionsError) {
1403
+ t5 = /* @__PURE__ */ jsx(AgentChatStartScreenSuggestions, { children: guideOpen ? /* @__PURE__ */ jsxs(ActionGuide, {
1404
+ title: brand.name + " can work across your browser.",
1405
+ description: "They can act in signed-in tabs, keep workspace files, connect plugins, and run recurring work after this panel closes.",
1406
+ children: [
1407
+ /* @__PURE__ */ jsx(ActionGuideSection, {
1408
+ title: "Start with a quick browser job",
1409
+ children: /* @__PURE__ */ jsxs(ActionGuideList, { children: [
654
1410
  /* @__PURE__ */ jsx(ActionGuideAction, {
655
- icon: /* @__PURE__ */ jsx(QueueIcon, {}),
656
- variant: "ghost",
657
- onClick: () => send("Help me make an automation."),
658
- children: "Save a job to run anytime"
1411
+ icon: /* @__PURE__ */ jsx(BoxIcon, {}),
1412
+ onClick: () => send("Organize this window’s tabs by task."),
1413
+ children: "Organize this window’s tabs by task"
659
1414
  }),
660
1415
  /* @__PURE__ */ jsx(ActionGuideAction, {
661
- icon: /* @__PURE__ */ jsx(TerminalIcon, {}),
662
- variant: "ghost",
663
- onClick: () => send("Help me make an automation that works across my signed-in browser tabs."),
664
- children: "Automate work across signed-in tabs"
1416
+ icon: /* @__PURE__ */ jsx(EyeIcon, {}),
1417
+ onClick: () => send("Close duplicate tabs in this window."),
1418
+ children: "Close duplicate tabs in this window"
665
1419
  }),
666
1420
  /* @__PURE__ */ jsx(ActionGuideAction, {
667
- icon: /* @__PURE__ */ jsx(FolderIcon, {}),
668
- variant: "ghost",
669
- onClick: () => send("Help me make an automation that moves files between a signed-in website and the workspace."),
670
- children: "Move files between a website and the workspace"
1421
+ icon: /* @__PURE__ */ jsx(MonitorIcon, {}),
1422
+ onClick: () => send("Record a browser walkthrough as an MP4."),
1423
+ children: "Record a browser walkthrough as an MP4"
671
1424
  })
672
- ]
1425
+ ] })
1426
+ }),
1427
+ /* @__PURE__ */ jsx(ActionGuideSection, {
1428
+ title: "Set up ongoing work",
1429
+ children: /* @__PURE__ */ jsxs(ActionGuideList, {
1430
+ layout: "cards",
1431
+ children: [
1432
+ /* @__PURE__ */ jsx(ActionGuideAction, {
1433
+ icon: /* @__PURE__ */ jsx(CalendarIcon, {}),
1434
+ onClick: () => send("Help me create a schedule."),
1435
+ children: "Create a schedule"
1436
+ }),
1437
+ setupActions,
1438
+ /* @__PURE__ */ jsx(ActionGuideAction, {
1439
+ icon: /* @__PURE__ */ jsx(McpIcon, {}),
1440
+ onClick: () => send(hasConnectedApps ? "Show me useful work I can do across my connected apps." : "Help me connect another app I use."),
1441
+ children: hasConnectedApps ? "Use my connected apps" : "Connect another app"
1442
+ })
1443
+ ]
1444
+ })
1445
+ }),
1446
+ /* @__PURE__ */ jsx(ActionGuideSection, {
1447
+ title: "Make an automation",
1448
+ children: /* @__PURE__ */ jsxs(ActionGuideList, {
1449
+ layout: "list",
1450
+ children: [
1451
+ /* @__PURE__ */ jsx(ActionGuideAction, {
1452
+ icon: /* @__PURE__ */ jsx(QueueIcon, {}),
1453
+ variant: "ghost",
1454
+ onClick: () => send("Help me make an automation."),
1455
+ children: "Save a job to run anytime"
1456
+ }),
1457
+ /* @__PURE__ */ jsx(ActionGuideAction, {
1458
+ icon: /* @__PURE__ */ jsx(TerminalIcon, {}),
1459
+ variant: "ghost",
1460
+ onClick: () => send("Help me make an automation that works across my signed-in browser tabs."),
1461
+ children: "Automate work across signed-in tabs"
1462
+ }),
1463
+ /* @__PURE__ */ jsx(ActionGuideAction, {
1464
+ icon: /* @__PURE__ */ jsx(FolderIcon, {}),
1465
+ variant: "ghost",
1466
+ onClick: () => send("Help me make an automation that moves files between a signed-in website and the workspace."),
1467
+ children: "Move files between a website and the workspace"
1468
+ })
1469
+ ]
1470
+ })
673
1471
  })
674
- })
675
- ]
676
- }) : /* @__PURE__ */ jsx(AgentChatStarterList, {
677
- "aria-label": "Suggested prompts",
678
- items: [
679
- {
680
- id: "capability-guide",
681
- label: "See what " + brand.name + " can do",
682
- icon: /* @__PURE__ */ jsx(InfoIcon, {}),
683
- muted: true
684
- },
685
- ...suggestionsError ? [{
686
- id: "retry-suggestions",
687
- label: "Try generating suggestions again",
688
- icon: /* @__PURE__ */ jsx(InfoIcon, {}),
689
- muted: true
690
- }] : [],
691
- ...suggestions?.map((suggestion, index) => ({
692
- id: suggestionItemId(suggestion, index),
693
- label: suggestion.label,
694
- icon: suggestionIcon(suggestion.value)
695
- })) ?? []
696
- ],
697
- onSelect: (item) => {
698
- if (item.id === "capability-guide") setGuideOpen(true);
699
- else if (item.id === "retry-suggestions") onRetrySuggestions?.();
700
- else {
701
- const suggestion = suggestions?.find((candidate, index) => item.id === suggestionItemId(candidate, index));
702
- if (suggestion) send(suggestion.value);
1472
+ ]
1473
+ }) : /* @__PURE__ */ jsx(AgentChatStarterList, {
1474
+ "aria-label": "Suggested prompts",
1475
+ items: [
1476
+ {
1477
+ id: "capability-guide",
1478
+ label: "See what " + brand.name + " can do",
1479
+ icon: /* @__PURE__ */ jsx(InfoIcon, {}),
1480
+ muted: true
1481
+ },
1482
+ ...suggestionsError ? [{
1483
+ id: "retry-suggestions",
1484
+ label: "Try generating suggestions again",
1485
+ icon: /* @__PURE__ */ jsx(InfoIcon, {}),
1486
+ muted: true
1487
+ }] : [],
1488
+ ...suggestions?.map(_temp) ?? []
1489
+ ],
1490
+ onSelect: (item) => {
1491
+ if (item.id === "capability-guide") setGuideOpen(true);
1492
+ else if (item.id === "retry-suggestions") onRetrySuggestions?.();
1493
+ else {
1494
+ const suggestion_0 = suggestions?.find((candidate, index_0) => item.id === suggestionItemId(candidate, index_0));
1495
+ if (suggestion_0) send(suggestion_0.value);
1496
+ }
703
1497
  }
704
- }
705
- }) })] });
1498
+ }) });
1499
+ $[9] = brand.name;
1500
+ $[10] = guideOpen;
1501
+ $[11] = hasConnectedApps;
1502
+ $[12] = onRetrySuggestions;
1503
+ $[13] = send;
1504
+ $[14] = setupActions;
1505
+ $[15] = suggestions;
1506
+ $[16] = suggestionsError;
1507
+ $[17] = t5;
1508
+ } else t5 = $[17];
1509
+ let t6;
1510
+ if ($[18] !== t4 || $[19] !== t5) {
1511
+ t6 = /* @__PURE__ */ jsxs(AgentChatStartScreen, { children: [t4, t5] });
1512
+ $[18] = t4;
1513
+ $[19] = t5;
1514
+ $[20] = t6;
1515
+ } else t6 = $[20];
1516
+ return t6;
1517
+ }
1518
+ function _temp(suggestion, index) {
1519
+ return {
1520
+ id: suggestionItemId(suggestion, index),
1521
+ label: suggestion.label,
1522
+ icon: suggestionIcon(suggestion.value)
1523
+ };
706
1524
  }
707
1525
  const EmployeeChrome = {
708
1526
  Shell: EmployeeShell,