@mcp-b/react-components 0.62.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 (496) 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-D5x4EM9y.d.ts → EmployeeChrome-kegSASjC.d.ts} +15 -8
  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-CMvICi-p.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/{codex-model-catalog-18yO7dln.d.ts → codex-model-catalog-CFEGgUAj.d.ts} +8 -8
  48. package/dist/command-search-1fjmCBBo.js +34 -0
  49. package/dist/components/agents-sdk/AIProviderDialog.d.ts +53 -0
  50. package/dist/components/agents-sdk/AIProviderDialog.js +902 -0
  51. package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
  52. package/dist/components/agents-sdk/AgentActivity.js +78 -31
  53. package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
  54. package/dist/components/agents-sdk/AgentChat.js +1120 -393
  55. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  56. package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
  57. package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
  58. package/dist/components/agents-sdk/AgentComputer.js +8045 -0
  59. package/dist/components/agents-sdk/AgentEvent.js +165 -22
  60. package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
  61. package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
  62. package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
  63. package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
  64. package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
  65. package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
  66. package/dist/components/agents-sdk/BrowserReplay.js +298 -133
  67. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
  68. package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
  69. package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
  70. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  71. package/dist/components/agents-sdk/EmployeeApp.js +109 -47
  72. package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
  73. package/dist/components/agents-sdk/EmployeeChat.js +504 -103
  74. package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
  75. package/dist/components/agents-sdk/EmployeeChrome.js +1383 -522
  76. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  77. package/dist/components/agents-sdk/EmployeeSchedules.js +283 -66
  78. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  79. package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
  80. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  81. package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
  82. package/dist/components/agents-sdk/ManagerAccountActions.js +143 -36
  83. package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
  84. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  85. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  86. package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
  87. package/dist/components/agents-sdk/McpConnectionRequest.js +331 -116
  88. package/dist/components/agents-sdk/McpConnectorForm.js +321 -101
  89. package/dist/components/agents-sdk/McpPluginCatalog.js +698 -250
  90. package/dist/components/agents-sdk/McpServerIcon.js +57 -14
  91. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  92. package/dist/components/agents-sdk/McpServerPicker.js +543 -159
  93. package/dist/components/agents-sdk/ModelSelector.d.ts +1 -1
  94. package/dist/components/agents-sdk/ModelSelector.js +1154 -256
  95. package/dist/components/agents-sdk/PromptInputApproval.js +116 -28
  96. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  97. package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
  98. package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
  99. package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
  100. package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
  101. package/dist/components/agents-sdk/SubagentRunPanel.js +359 -131
  102. package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
  103. package/dist/components/agents-sdk/ThinkChat.d.ts +5 -3
  104. package/dist/components/agents-sdk/ThinkChat.js +321 -129
  105. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  106. package/dist/components/agents-sdk/ThinkChatActivity.js +307 -101
  107. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  108. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
  109. package/dist/components/agents-sdk/ThinkChatToolPanels.js +1389 -407
  110. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
  111. package/dist/components/agents-sdk/ThinkExecutionDetail.js +220 -46
  112. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  113. package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
  114. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
  115. package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
  116. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
  117. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +506 -125
  118. package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
  119. package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
  120. package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +3 -1
  121. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +72 -26
  122. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
  123. package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
  124. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
  125. package/dist/components/agents-sdk/ThinkScheduleActions.js +364 -133
  126. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  127. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
  128. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  129. package/dist/components/agents-sdk/ThinkScheduleDetail.js +312 -91
  130. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
  131. package/dist/components/agents-sdk/ThinkScheduleForm.js +1324 -481
  132. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  133. package/dist/components/agents-sdk/ThinkThreadPicker.js +435 -215
  134. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
  135. package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
  136. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  137. package/dist/components/agents-sdk/Workspace.js +491 -166
  138. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  139. package/dist/components/agents-sdk/WorkspaceAutomation.js +1496 -419
  140. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  141. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1320 -529
  142. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
  143. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
  144. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  145. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  146. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
  147. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
  148. package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
  149. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
  150. package/dist/components/agents-sdk/WorkspaceExplorer.js +268 -86
  151. package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
  152. package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
  153. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
  154. package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
  155. package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
  156. package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
  157. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
  158. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
  159. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
  160. package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
  161. package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
  162. package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
  163. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  164. package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
  165. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
  166. package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
  167. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  168. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  169. package/dist/components/agents-sdk/WorkspaceMountManager.js +119 -59
  170. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
  171. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  172. package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
  173. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  174. package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
  175. package/dist/components/ai-sdk/Activity.js +768 -192
  176. package/dist/components/ai-sdk/AgentAttention.js +286 -58
  177. package/dist/components/ai-sdk/AgentChatMessageEditor.js +194 -69
  178. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
  179. package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
  180. package/dist/components/ai-sdk/AgentChatTurnError.d.ts +6 -1
  181. package/dist/components/ai-sdk/AgentChatTurnError.js +77 -25
  182. package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
  183. package/dist/components/ai-sdk/Approval.js +574 -172
  184. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  185. package/dist/components/ai-sdk/Artifact.js +535 -128
  186. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  187. package/dist/components/ai-sdk/ChainOfThought.js +404 -80
  188. package/dist/components/ai-sdk/Checkpoint.js +229 -45
  189. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  190. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  191. package/dist/components/ai-sdk/ComposerLink.js +216 -48
  192. package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
  193. package/dist/components/ai-sdk/Context.js +738 -179
  194. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  195. package/dist/components/ai-sdk/Conversation.js +305 -68
  196. package/dist/components/ai-sdk/ExpansionState.js +74 -15
  197. package/dist/components/ai-sdk/Goal.js +435 -116
  198. package/dist/components/ai-sdk/InlineCitation.js +313 -76
  199. package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
  200. package/dist/components/ai-sdk/Message.d.ts +1 -1
  201. package/dist/components/ai-sdk/Message.js +1010 -195
  202. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  203. package/dist/components/ai-sdk/MessageScroller.js +264 -46
  204. package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
  205. package/dist/components/ai-sdk/Plan.js +639 -128
  206. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  207. package/dist/components/ai-sdk/PromptInput.js +2738 -797
  208. package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
  209. package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
  210. package/dist/components/ai-sdk/Queue.js +793 -155
  211. package/dist/components/ai-sdk/Reasoning.js +268 -69
  212. package/dist/components/ai-sdk/Sources.js +226 -63
  213. package/dist/components/ai-sdk/Task.js +294 -71
  214. package/dist/components/ai-sdk/ToolApproval.js +126 -26
  215. package/dist/components/ai-sdk/ToolInvocation.js +112 -22
  216. package/dist/components/extension/ChatGptSignInScreen.js +1 -82
  217. package/dist/components/extension/CodexModelSelector.d.ts +2 -2
  218. package/dist/components/extension/CodexModelSelector.js +468 -147
  219. package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
  220. package/dist/components/extension/ConversationTabPicker.js +254 -76
  221. package/dist/components/extension/FirstRunSetup.d.ts +61 -35
  222. package/dist/components/extension/FirstRunSetup.js +3833 -1011
  223. package/dist/components/foundations/Accordion.js +186 -41
  224. package/dist/components/foundations/AlertDialog.js +425 -97
  225. package/dist/components/foundations/AppIcon.d.ts +13 -13
  226. package/dist/components/foundations/AppIcon.js +183 -34
  227. package/dist/components/foundations/Autocomplete.js +408 -89
  228. package/dist/components/foundations/Avatar.d.ts +100 -2
  229. package/dist/components/foundations/Avatar.js +204 -44
  230. package/dist/components/foundations/Button.js +64 -13
  231. package/dist/components/foundations/Card.js +357 -63
  232. package/dist/components/foundations/Checkbox.js +83 -18
  233. package/dist/components/foundations/CheckboxGroup.js +266 -58
  234. package/dist/components/foundations/Collapsible.d.ts +2 -1
  235. package/dist/components/foundations/Collapsible.js +130 -27
  236. package/dist/components/foundations/Combobox.js +408 -89
  237. package/dist/components/foundations/ContextMenu.d.ts +2 -2
  238. package/dist/components/foundations/ContextMenu.js +591 -117
  239. package/dist/components/foundations/DescriptionList.js +159 -28
  240. package/dist/components/foundations/Dialog.js +373 -89
  241. package/dist/components/foundations/EmptyState.js +86 -23
  242. package/dist/components/foundations/Favicon.d.ts +17 -0
  243. package/dist/components/foundations/Favicon.js +62 -0
  244. package/dist/components/foundations/Field.js +525 -108
  245. package/dist/components/foundations/Fieldset.js +115 -23
  246. package/dist/components/foundations/Form.js +38 -9
  247. package/dist/components/foundations/FormattedDate.d.ts +19 -5
  248. package/dist/components/foundations/FormattedDate.js +82 -12
  249. package/dist/components/foundations/IconButton.d.ts +1 -1
  250. package/dist/components/foundations/IconButton.js +114 -17
  251. package/dist/components/foundations/Input.js +38 -9
  252. package/dist/components/foundations/Kbd.js +55 -10
  253. package/dist/components/foundations/Label.js +56 -12
  254. package/dist/components/foundations/LinkButton.js +67 -15
  255. package/dist/components/foundations/Marker.js +138 -29
  256. package/dist/components/foundations/Menu.d.ts +1 -1
  257. package/dist/components/foundations/Menu.js +634 -136
  258. package/dist/components/foundations/Menubar.d.ts +2 -2
  259. package/dist/components/foundations/Menubar.js +685 -130
  260. package/dist/components/foundations/Meter.js +186 -41
  261. package/dist/components/foundations/NavigationMenu.js +426 -95
  262. package/dist/components/foundations/NumberField.js +223 -49
  263. package/dist/components/foundations/Popover.js +398 -88
  264. package/dist/components/foundations/PreviewCard.js +234 -53
  265. package/dist/components/foundations/Progress.js +117 -25
  266. package/dist/components/foundations/RadioGroup.d.ts +13 -5
  267. package/dist/components/foundations/RadioGroup.js +132 -25
  268. package/dist/components/foundations/ScrollArea.js +230 -51
  269. package/dist/components/foundations/SearchField.d.ts +8 -3
  270. package/dist/components/foundations/SearchField.js +129 -28
  271. package/dist/components/foundations/Select.js +648 -145
  272. package/dist/components/foundations/Separator.js +61 -12
  273. package/dist/components/foundations/Slider.js +260 -57
  274. package/dist/components/foundations/Stepper.d.ts +1 -1
  275. package/dist/components/foundations/Stepper.js +561 -127
  276. package/dist/components/foundations/Switch.js +82 -18
  277. package/dist/components/foundations/Tabs.d.ts +2 -2
  278. package/dist/components/foundations/Tabs.js +282 -53
  279. package/dist/components/foundations/Textarea.js +43 -9
  280. package/dist/components/foundations/ThemeProvider.js +138 -52
  281. package/dist/components/foundations/Toast.d.ts +10 -2
  282. package/dist/components/foundations/Toast.js +322 -75
  283. package/dist/components/foundations/Toggle.d.ts +5 -2
  284. package/dist/components/foundations/Toggle.js +51 -10
  285. package/dist/components/foundations/ToggleGroup.d.ts +4 -4
  286. package/dist/components/foundations/ToggleGroup.js +216 -60
  287. package/dist/components/foundations/Toolbar.js +249 -61
  288. package/dist/components/foundations/Tooltip.d.ts +3 -3
  289. package/dist/components/foundations/Tooltip.js +311 -55
  290. package/dist/components/foundations/TransitionSurface.js +43 -9
  291. package/dist/components/foundations/icons.d.ts +2 -2
  292. package/dist/components/foundations/icons.js +2 -2
  293. package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
  294. package/dist/components/general-purpose/ActionGuide.js +290 -64
  295. package/dist/components/general-purpose/AppFrame.js +72 -14
  296. package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
  297. package/dist/components/general-purpose/AppTopBar.js +349 -60
  298. package/dist/components/general-purpose/BrandLoading.js +37 -9
  299. package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
  300. package/dist/components/general-purpose/CommandPalette.js +271 -0
  301. package/dist/components/general-purpose/Commit.d.ts +1 -1
  302. package/dist/components/general-purpose/Commit.js +937 -167
  303. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  304. package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
  305. package/dist/components/general-purpose/FileTree.d.ts +20 -7
  306. package/dist/components/general-purpose/FileTree.js +1 -1
  307. package/dist/components/general-purpose/ListDetail.d.ts +84 -0
  308. package/dist/components/general-purpose/ListDetail.js +423 -0
  309. package/dist/components/general-purpose/NotificationPrompt.js +20 -11
  310. package/dist/components/general-purpose/PricingBillingToggle.js +34 -7
  311. package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
  312. package/dist/components/general-purpose/PricingFAQ.js +53 -12
  313. package/dist/components/general-purpose/PricingPage.js +376 -139
  314. package/dist/components/general-purpose/PricingPlanCard.js +210 -85
  315. package/dist/components/general-purpose/PricingUsageCalculator.js +233 -83
  316. package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
  317. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  318. package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
  319. package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
  320. package/dist/components/general-purpose/ScreenStack.js +427 -0
  321. package/dist/components/general-purpose/SettingsFormDialog.d.ts +10 -2
  322. package/dist/components/general-purpose/SettingsFormDialog.js +238 -74
  323. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  324. package/dist/components/general-purpose/StatusScreen.js +82 -24
  325. package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
  326. package/dist/components/general-purpose/SwipeActions.js +357 -0
  327. package/dist/components/general-purpose/Terminal.d.ts +22 -48
  328. package/dist/components/general-purpose/Terminal.js +320 -174
  329. package/dist/components/general-purpose/TestResults.js +975 -196
  330. package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
  331. package/dist/components/general-purpose/ThemeModeControl.js +67 -24
  332. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
  333. package/dist/components/general-purpose/WallpaperPicker.js +180 -0
  334. package/dist/components/general-purpose/WebPreview.d.ts +5 -7
  335. package/dist/components/general-purpose/WebPreview.js +770 -203
  336. package/dist/components/nanites/AgentConnection.js +323 -84
  337. package/dist/components/nanites/AgentToolDetail.js +237 -57
  338. package/dist/components/nanites/GithubMotionMark.js +37 -9
  339. package/dist/components/nanites/NaniteScene.js +535 -323
  340. package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
  341. package/dist/container-width-C43ccJ84.js +17 -0
  342. package/dist/context-Ddsp8HgD.js +43 -0
  343. package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
  344. package/dist/copy-button-DWBVJR6D.js +118 -0
  345. package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
  346. package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
  347. package/dist/icons-nLTnB9kd.js +470 -0
  348. package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
  349. package/dist/motion-CGM3i6lX.js +319 -0
  350. package/dist/motion-preferences-6qsDIDvH.js +13 -0
  351. package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
  352. package/dist/progress-ring-BO649JA9.js +79 -0
  353. package/dist/provider-logos-Ceu7iYFx.js +362 -0
  354. package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
  355. package/dist/styles/accessibility.css +26 -0
  356. package/dist/styles/accordion.css +0 -2
  357. package/dist/styles/activity.css +20 -12
  358. package/dist/styles/agent-attention.css +31 -10
  359. package/dist/styles/agent-chat.css +7 -6
  360. package/dist/styles/agent-computer-motion-reduction.css +118 -0
  361. package/dist/styles/agent-computer-motion.css +127 -0
  362. package/dist/styles/agent-computer-phone.css +942 -0
  363. package/dist/styles/agent-computer.css +1764 -0
  364. package/dist/styles/agent-connection.css +5 -5
  365. package/dist/styles/agent-screen-switcher.css +313 -0
  366. package/dist/styles/ai-provider-dialog.css +46 -0
  367. package/dist/styles/app-icon.css +34 -30
  368. package/dist/styles/app-top-bar.css +33 -18
  369. package/dist/styles/approval.css +3 -3
  370. package/dist/styles/artifact.css +1 -1
  371. package/dist/styles/attachment-preview.css +2 -4
  372. package/dist/styles/avatar.css +12 -14
  373. package/dist/styles/base-ui-motion.css +84 -18
  374. package/dist/styles/base-ui-motion.test.tsx +305 -0
  375. package/dist/styles/base.css +16 -12
  376. package/dist/styles/brand.test.ts +7 -20
  377. package/dist/styles/browser-control-overlay.css +1 -1
  378. package/dist/styles/browser-live-screen.css +2 -2
  379. package/dist/styles/browser-live-view.css +1 -1
  380. package/dist/styles/browser-replay.css +0 -8
  381. package/dist/styles/browser-run-panel.css +275 -37
  382. package/dist/styles/button.css +52 -9
  383. package/dist/styles/card.css +6 -5
  384. package/dist/styles/chain-of-thought.css +0 -10
  385. package/dist/styles/checkpoint.css +2 -2
  386. package/dist/styles/codex-model-selector.css +2 -2
  387. package/dist/styles/color-contrast.test.ts +18 -1
  388. package/dist/styles/command-palette.css +110 -0
  389. package/dist/styles/composer-link.css +11 -7
  390. package/dist/styles/composition-motion.css +3 -14
  391. package/dist/styles/context.css +2 -2
  392. package/dist/styles/conversation-tab-picker.css +7 -0
  393. package/dist/styles/conversation.css +8 -2
  394. package/dist/styles/dialog.css +2 -2
  395. package/dist/styles/employee-app.css +8 -2
  396. package/dist/styles/employee-chrome.css +15 -6
  397. package/dist/styles/execution-board.css +206 -114
  398. package/dist/styles/execution-result.css +2 -2
  399. package/dist/styles/field.css +187 -4
  400. package/dist/styles/file-tree.css +218 -40
  401. package/dist/styles/first-run-setup.css +914 -187
  402. package/dist/styles/github-motion-mark.css +0 -8
  403. package/dist/styles/index.css +145 -132
  404. package/dist/styles/inline-citation.css +5 -4
  405. package/dist/styles/list-detail.css +57 -0
  406. package/dist/styles/manager-office.css +6 -8
  407. package/dist/styles/manager-work.css +4 -2
  408. package/dist/styles/mcp-plugin-catalog.css +2 -2
  409. package/dist/styles/mcp-server-picker.css +3 -6
  410. package/dist/styles/media-preview-card.css +2 -2
  411. package/dist/styles/menu.css +0 -9
  412. package/dist/styles/menubar.css +18 -6
  413. package/dist/styles/message-scroller.css +47 -9
  414. package/dist/styles/message.css +3 -3
  415. package/dist/styles/model-selector.css +1 -1
  416. package/dist/styles/motion-reduction.css +39 -6
  417. package/dist/styles/pricing-page.css +1 -1
  418. package/dist/styles/prompt-input.css +29 -29
  419. package/dist/styles/queue.css +1 -1
  420. package/dist/styles/recipes.css +212 -28
  421. package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
  422. package/dist/styles/responsive-sidebar-shell.css +40 -43
  423. package/dist/styles/screen-stack.css +123 -0
  424. package/dist/styles/search-field.css +80 -3
  425. package/dist/styles/stepper.css +0 -10
  426. package/dist/styles/streamdown.css +2 -2
  427. package/dist/styles/subagent-run.css +9 -5
  428. package/dist/styles/swipe-actions.css +158 -0
  429. package/dist/styles/tabs.css +80 -23
  430. package/dist/styles/task.css +7 -1
  431. package/dist/styles/terminal.css +66 -78
  432. package/dist/styles/test-results.css +1 -19
  433. package/dist/styles/textarea.css +2 -1
  434. package/dist/styles/theme-mode-control.css +154 -26
  435. package/dist/styles/think-chat-tool-panels.css +1 -1
  436. package/dist/styles/think-execution-workbench.css +0 -9
  437. package/dist/styles/think-full-app.css +7 -1
  438. package/dist/styles/think-schedule.css +81 -54
  439. package/dist/styles/think-thread-picker.css +28 -37
  440. package/dist/styles/toast.css +11 -0
  441. package/dist/styles/toggle-group.css +0 -10
  442. package/dist/styles/toggle.css +13 -0
  443. package/dist/styles/tooltip.css +12 -0
  444. package/dist/styles/transition-surface.css +1 -0
  445. package/dist/styles/wallpaper-picker.css +224 -0
  446. package/dist/styles/web-preview.css +47 -18
  447. package/dist/styles/workspace-automation.css +116 -17
  448. package/dist/styles/workspace-concepts.css +1 -1
  449. package/dist/styles/workspace-desktop.css +124 -0
  450. package/dist/styles/workspace-entity-card.css +3 -1
  451. package/dist/styles/workspace-explorer.css +499 -5
  452. package/dist/utils/brand-marks.d.ts +13 -0
  453. package/dist/utils/brand-marks.js +14 -0
  454. package/dist/utils/codex-model-catalog.d.ts +1 -1
  455. package/dist/utils/desktop-artwork.d.ts +17 -0
  456. package/dist/utils/desktop-artwork.js +18 -0
  457. package/dist/utils/favicon.d.ts +6 -2
  458. package/dist/utils/favicon.js +16 -4
  459. package/dist/utils/model-provider-error.d.ts +17 -0
  460. package/dist/utils/model-provider-error.js +76 -0
  461. package/dist/utils/structured-code.d.ts +1 -1
  462. package/dist/workspace-assets-DdtnBDU3.js +213 -0
  463. package/dist/{workspace-concept-panel-KpMmznB_.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
  464. package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
  465. package/dist/workspace-delete-BOY6CMBf.js +183 -0
  466. package/dist/workspace-drag-B6hMXUNt.js +304 -0
  467. package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
  468. package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
  469. package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
  470. package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
  471. package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
  472. package/package.json +9 -3
  473. package/dist/Avatar-t1YRzdwB.d.ts +0 -101
  474. package/dist/CodeBlock-CNvOYR0Q.js +0 -318
  475. package/dist/ExecutionResult-DmC21cll.js +0 -279
  476. package/dist/FileTree-H31EVRv_.js +0 -323
  477. package/dist/ManagerOffice-B3X3iZV9.js +0 -1129
  478. package/dist/SetupChecklist-Wo4akaSG.js +0 -78
  479. package/dist/ThinkSchedule-CSuDGrZ9.d.ts +0 -34
  480. package/dist/WorkspaceFileView-BWI_AJlV.js +0 -783
  481. package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
  482. package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
  483. package/dist/attachment-preview-1CXJvrmb.js +0 -25
  484. package/dist/chatgpt-sign-in-button-DNchrZHs.js +0 -32
  485. package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +0 -31
  486. package/dist/components/agents-sdk/ModelEndpointDialog.js +0 -141
  487. package/dist/connected-app-drafts-B9i69bkj.js +0 -283
  488. package/dist/copy-button-z20VEXRF.js +0 -45
  489. package/dist/icons-Yp99gmMC.js +0 -141
  490. package/dist/progress-ring-L2bbF0ji.js +0 -40
  491. package/dist/provider-logos-DWYY8wNz.js +0 -99
  492. package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
  493. package/dist/workspace-assets-Dq5toMQc.js +0 -107
  494. package/dist/workspace-concept-panel-CxZfmFkP.js +0 -66
  495. package/dist/workspace-delete-CoB0l6ZU.js +0 -81
  496. package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
@@ -1,25 +1,27 @@
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-Yp99gmMC.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";
3
5
  import { Button } from "../foundations/Button.js";
4
- import { Menu } from "../foundations/Menu.js";
5
- import { Tooltip } from "../foundations/Tooltip.js";
6
6
  import { Dialog } from "../foundations/Dialog.js";
7
- import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
8
- import { AgentChatStartScreen, AgentChatStartScreenComposer, AgentChatStartScreenPrimary, AgentChatStartScreenSuggestions, AgentChatStartScreenTray, AgentChatStarterList } from "../ai-sdk/AgentChatStartScreen.js";
9
- import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-kqMa81v5.js";
10
- import { DescriptionList } from "../foundations/DescriptionList.js";
11
- import { Avatar } from "../foundations/Avatar.js";
12
- import { ChatGptSignInScreen } from "../extension/ChatGptSignInScreen.js";
7
+ import { Tooltip } from "../foundations/Tooltip.js";
8
+ import { SubagentRunLabel, getSubagentRunName } from "./SubagentRunIndicator.js";
9
+ import { Menu } from "../foundations/Menu.js";
10
+ import { BrandLoading } from "../general-purpose/BrandLoading.js";
11
+ import { AgentChat } from "./AgentChat.js";
13
12
  import { EmptyState } from "../foundations/EmptyState.js";
13
+ import { Avatar } from "../foundations/Avatar.js";
14
14
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
15
- import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
15
+ import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-DMmtdqsM.js";
16
+ import { AgentChatStartScreen, AgentChatStartScreenComposer, AgentChatStartScreenPrimary, AgentChatStartScreenSuggestions, AgentChatStartScreenTray, AgentChatStarterList } from "../ai-sdk/AgentChatStartScreen.js";
17
+ import { t as ChatGptSignInScreen } from "../../ChatGptSignInScreen-CmbBe09G.js";
18
+ import { DescriptionList } from "../foundations/DescriptionList.js";
16
19
  import { useTheme } from "../foundations/ThemeProvider.js";
17
20
  import { ActionGuide, ActionGuideAction, ActionGuideList, ActionGuideSection } from "../general-purpose/ActionGuide.js";
18
- import { BrandLoading } from "../general-purpose/BrandLoading.js";
19
- import { SubagentRunLabel, getSubagentRunName } from "./SubagentRunIndicator.js";
20
- import { AgentChat } from "./AgentChat.js";
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,295 +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, onModel, onSignOut, 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
- onModel ? /* @__PURE__ */ jsx(MenuHint, {
150
- hint: "Choose the model this employee uses for conversations.",
151
- children: /* @__PURE__ */ jsxs(Menu.Item, {
152
- onClick: onModel,
153
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
154
- children: [/* @__PURE__ */ jsx(TerminalIcon, {}), "Model"]
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: [/* @__PURE__ */ jsx(Menu.GroupLabel, { children: "Appearance" }), /* @__PURE__ */ jsxs(Menu.RadioGroup, {
197
- className: "employee-menu__theme-options",
198
- value: preference,
199
- onValueChange: (value) => {
200
- if (value === "light" || value === "dark" || value === "system") setPreference(value);
201
- },
202
- children: [
203
- /* @__PURE__ */ jsx(MenuHint, {
204
- hint: "Use a light appearance.",
205
- children: /* @__PURE__ */ jsxs(Menu.RadioItem, {
206
- value: "light",
207
- className: "employee-menu__theme-option",
208
- "aria-label": "Light",
209
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
210
- closeOnClick: false,
211
- children: [/* @__PURE__ */ jsx(SunIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
212
- className: "sigvelo-visually-hidden",
213
- children: "Light"
214
- })]
215
- })
216
- }),
217
- /* @__PURE__ */ jsx(MenuHint, {
218
- hint: "Use a dark appearance.",
219
- children: /* @__PURE__ */ jsxs(Menu.RadioItem, {
220
- value: "dark",
221
- className: "employee-menu__theme-option",
222
- "aria-label": "Dark",
223
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
224
- closeOnClick: false,
225
- children: [/* @__PURE__ */ jsx(MoonIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
226
- className: "sigvelo-visually-hidden",
227
- children: "Dark"
228
- })]
229
- })
230
- }),
231
- /* @__PURE__ */ jsx(MenuHint, {
232
- hint: "Match your device’s light or dark appearance automatically.",
233
- children: /* @__PURE__ */ jsxs(Menu.RadioItem, {
234
- value: "system",
235
- className: "employee-menu__theme-option",
236
- "aria-label": "System",
237
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
238
- closeOnClick: false,
239
- children: [/* @__PURE__ */ jsx(MonitorIcon, { "aria-hidden": "true" }), /* @__PURE__ */ jsx("span", {
240
- className: "sigvelo-visually-hidden",
241
- children: "System"
242
- })]
243
- })
244
- })
245
- ]
246
- })]
247
- }),
248
- onSignOut ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsx(MenuHint, {
249
- hint: "Sign out of your account on this device.",
250
- children: /* @__PURE__ */ jsxs(Menu.Item, {
251
- onClick: onSignOut,
252
- render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
253
- children: [/* @__PURE__ */ jsx(ArrowUpRightIcon, {}), "Sign out"]
254
- })
255
- })] }) : 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
256
578
  ]
257
579
  })
258
- }) })]
259
- }), identity ? /* @__PURE__ */ jsx(IdentityDialog, {
260
- identity,
261
- open: identityOpen,
262
- onOpenChange: setIdentityOpen
263
- }) : 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;
264
621
  }
265
- function IdentityDialog({ identity, open, onOpenChange }) {
622
+ function IdentityDialog(t0) {
623
+ const $ = c(33);
624
+ const { identity, open, onOpenChange } = t0;
266
625
  const [busy, setBusy] = React.useState(false);
267
626
  const [error, setError] = React.useState();
268
- const changeBinding = async (action) => {
269
- setBusy(true);
270
- setError(void 0);
271
- try {
272
- await action();
273
- onOpenChange(false);
274
- } catch (cause) {
275
- setError(formatErrorMessage(cause));
276
- } 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));
277
635
  setBusy(false);
278
- }
279
- };
280
- return /* @__PURE__ */ jsx(Dialog.Root, {
281
- open,
282
- 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) => {
283
644
  setError(void 0);
284
645
  onOpenChange(next);
285
- },
286
- children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, { children: [
287
- /* @__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." })] }),
288
- /* @__PURE__ */ jsxs(DescriptionList.Root, {
289
- variant: "divided",
290
- 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] })] })]
291
- }),
292
- error ? /* @__PURE__ */ jsx("p", {
293
- role: "alert",
294
- children: error
295
- }) : null,
296
- /* @__PURE__ */ jsx(Dialog.Footer, { children: identity.managed ? /* @__PURE__ */ jsx("p", { children: "Organization policy controls this binding." }) : identity.onUnbind ? /* @__PURE__ */ jsx(Button, {
297
- type: "button",
298
- variant: "ghost",
299
- color: "destructive",
300
- disabled: busy,
301
- onClick: () => identity.onUnbind && void changeBinding(identity.onUnbind),
302
- children: "Remove binding"
303
- }) : /* @__PURE__ */ jsx(Button, {
304
- type: "button",
305
- color: "primary",
306
- disabled: busy || !identity.canBind || !identity.onBind,
307
- onClick: () => identity.onBind && void changeBinding(identity.onBind),
308
- children: "Assign this profile"
309
- }) })
310
- ] }) })] })
311
- });
312
- }
313
- function useEmployeeRunStopFocus() {
314
- const backRef = React.useRef(null);
315
- const focusedStop = React.useRef(null);
316
- React.useLayoutEffect(() => {
317
- const stop = focusedStop.current;
318
- if (!stop || stop.isConnected) return;
319
- focusedStop.current = null;
320
- if (document.activeElement === document.body) backRef.current?.focus({ preventScroll: true });
321
- });
322
- return {
323
- backRef,
324
- focusedStop
325
- };
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;
326
753
  }
327
754
  function employeeShellTitle({ agentRun, threadTitle, view, destinationTitle }) {
328
755
  if (!agentRun) {
@@ -348,187 +775,571 @@ function employeeShellCompactSlots({ agentRun, view, title, threads, leading })
348
775
  if (agentRun || view !== "chat") return { compactLeading: leading };
349
776
  return { compactTitleTrigger: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", { children: title }), /* @__PURE__ */ jsx(ThinkThreadStatusIndicators, { summary: summarizeThinkThreads(threads) })] }) };
350
777
  }
351
- function employeeShellActions({ agentRun, focusedStop }) {
778
+ function employeeShellActions(agentRun) {
352
779
  if (agentRun?.state !== "ready" || !agentRun.onCancel) return null;
353
780
  return /* @__PURE__ */ jsx(AppTopBar.Button, {
354
781
  label: "Stop " + getSubagentRunName(agentRun.run),
355
782
  onClick: agentRun.onCancel,
356
783
  disabled: agentRun.cancelPending,
357
- onFocus: (event) => {
358
- focusedStop.current = event.currentTarget;
359
- },
360
- onBlur: () => {
361
- focusedStop.current = null;
362
- },
363
784
  children: /* @__PURE__ */ jsx(SquareIcon, {})
364
785
  });
365
786
  }
366
- function EmployeeNewThread({ renderLink }) {
787
+ function EmployeeNewThread(t0) {
788
+ const $ = c(8);
789
+ const { renderLink } = t0;
367
790
  const { closeSidebar } = useResponsiveSidebarShell();
368
- return /* @__PURE__ */ jsx(AppTopBar.Link, {
369
- label: "New thread",
370
- render: renderLink({ kind: "new-thread" }),
371
- 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) => {
372
800
  if (isPlainPrimaryLinkActivation(event)) closeSidebar();
373
- },
374
- children: /* @__PURE__ */ jsx(PencilIcon, {})
375
- });
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;
376
823
  }
377
- function EmployeeThreadSidebar({ closeSidebarOnCompact, threads, renderLink, onDeleteThread }) {
378
- return /* @__PURE__ */ jsx(ThinkThreadPicker, {
379
- threads,
380
- 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({
381
831
  kind: "thread",
382
832
  threadId: item.id
383
- }),
384
- onSelect: closeSidebarOnCompact,
385
- onDelete: onDeleteThread
386
- });
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;
387
852
  }
388
- 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;
389
856
  if (agentRun || view === "live") return returnLink;
390
857
  if (view !== "chat") return back ?? returnLink;
391
- 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;
392
872
  }
393
- 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;
394
920
  const history = threads ?? EMPTY_THREADS;
395
- const thread = history.find((candidate) => candidate.id === threadId);
396
- const destination = (navigation ?? [...WORKBENCH_NAVIGATION, ...menu.workbenchNavigation ?? []]).find((item) => item.id === view);
397
- const title = employeeShellTitle({
398
- agentRun,
399
- threadTitle: thread?.title,
400
- view,
401
- destinationTitle: destination?.label
402
- });
403
- const { backRef, focusedStop } = useEmployeeRunStopFocus();
404
- const returnLink = /* @__PURE__ */ jsx(AppTopBar.Link, {
405
- ref: backRef,
406
- label: agentRun ? "Back to parent conversation" : "Back to chat",
407
- render: agentRun && threadId ? renderLink({
408
- kind: "thread",
409
- threadId
410
- }) : renderLink({
411
- kind: "view",
412
- view: "chat"
413
- }),
414
- children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
415
- });
416
- const employeeMenu = /* @__PURE__ */ jsx(EmployeeMenu, {
417
- ...menu,
418
- view,
419
- navigation,
420
- renderLink,
421
- follow: agentRun ? void 0 : menu.follow
422
- }, JSON.stringify([view, threadId]));
423
- if (view === "live" && !sidebar) return /* @__PURE__ */ jsx("div", {
424
- className: "employee-shell",
425
- "data-view": view,
426
- children: /* @__PURE__ */ jsx(ResponsiveSidebarShell, {
427
- bar: {
428
- label: "Live view controls",
429
- title,
430
- leading: returnLink,
431
- primary: employeeMenu
432
- },
433
- children
434
- })
435
- });
436
- const leading = /* @__PURE__ */ jsx(EmployeeShellLeading, {
437
- agentRun,
438
- view,
439
- returnLink,
440
- back,
441
- appBarLeading,
442
- renderLink
443
- });
444
- return /* @__PURE__ */ jsx("div", {
445
- className: "employee-shell",
446
- "data-view": view,
447
- children: /* @__PURE__ */ jsx(ResponsiveSidebarShell, {
448
- className: "employee-shell__navigation",
449
- sidebarLabel,
450
- defaultSidebarOpen: sidebar ? void 0 : false,
451
- sidebarTogglePlacement: "main",
452
- showMainLabel: "Show selected thread",
453
- bar: {
454
- label: "Workbench controls",
455
- title,
456
- leading,
457
- ...employeeShellCompactSlots({
458
- 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,
459
1002
  view,
460
- title,
461
- threads: history,
462
- leading
463
- }),
464
- 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, {
465
1036
  agentRun,
466
- focusedStop
467
- }),
468
- primary: employeeMenu
469
- },
470
- contentBar: true,
471
- sidebar: sidebar ?? (agentRun ? void 0 : ({ closeSidebarOnCompact }) => /* @__PURE__ */ jsx(EmployeeThreadSidebar, {
472
- 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,
473
1067
  threads: history,
474
- renderLink,
475
- onDeleteThread
476
- })),
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,
477
1163
  children
478
- })
479
- });
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;
480
1189
  }
481
1190
  const EMPTY_THREADS = [];
482
1191
  /** Policy and connection gates are host facts, not design-system presets. */
483
- function EmployeeGate({ status, connectingLabel, identity, brand, modelSetup }) {
1192
+ function EmployeeGate(t0) {
1193
+ const $ = c(33);
1194
+ const { status, connectingLabel, identity, brand, modelSetup } = t0;
484
1195
  switch (status) {
485
1196
  case "ready": return null;
486
- case "needs-model": return /* @__PURE__ */ jsx(ChatGptSignInScreen, {
487
- busy: modelSetup?.busy,
488
- error: modelSetup?.error,
489
- label: modelSetup?.label,
490
- title: "Meet " + brand.name,
491
- description: "Your new AI teammate.",
492
- brandName: "SigVelo",
493
- onSignIn: modelSetup?.onSignIn,
494
- secondaryAction: modelSetup?.onCustomEndpoint ? {
495
- label: "Set up a custom model endpoint",
496
- onSelect: modelSetup.onCustomEndpoint
497
- } : void 0
498
- });
499
- case "connecting": return /* @__PURE__ */ jsx(BrandLoading, { label: connectingLabel ?? "Connecting…" });
500
- case "offline": return /* @__PURE__ */ jsx("div", {
501
- className: "employee-gate",
502
- role: "status",
503
- children: /* @__PURE__ */ jsx(EmptyState, {
504
- icon: /* @__PURE__ */ jsx(WarningIcon, {}),
505
- title: brand.name + " is offline",
506
- description: "Open the browser and turn the companion connection on. This screen reconnects on its own."
507
- })
508
- });
509
- 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": {
510
1268
  if (!identity) return null;
511
- return /* @__PURE__ */ jsxs("div", {
512
- className: "employee-gate",
513
- role: "alert",
514
- children: [/* @__PURE__ */ jsx(EmptyState, {
515
- 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,
516
1310
  title: "Wrong browser profile",
517
- description: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", { children: [
518
- "This installation is assigned to ",
519
- /* @__PURE__ */ jsx("strong", { children: identity.assignedAccount }),
520
- ", but the live profile is ",
521
- /* @__PURE__ */ jsx("strong", { children: identity.liveProfile }),
522
- "."
523
- ] }), /* @__PURE__ */ jsx("p", { children: identity.managed ? "Open the assigned profile. Organization policy controls this assignment." : "Open the assigned profile, or remove the binding." })] })
524
- }), !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, {
525
1320
  type: "button",
526
1321
  variant: "ghost",
527
1322
  color: "destructive",
528
1323
  onClick: identity.onUnbind,
529
1324
  children: "Remove binding"
530
- }) : null]
531
- });
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
+ }
532
1343
  }
533
1344
  }
534
1345
  function suggestionIcon(value) {
@@ -554,112 +1365,162 @@ function suggestionItemId(suggestion, index) {
554
1365
  ].join(":");
555
1366
  }
556
1367
  /** The composer remains under its existing prompt provider; connection controls are explicit slots. */
557
- 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;
558
1371
  const [guideOpen, setGuideOpen] = React.useState(false);
559
- const send = (text) => void onSubmit({
560
- text,
561
- files: []
562
- });
563
- 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, {
564
- title: brand.name + " can work across your browser.",
565
- description: "They can act in signed-in tabs, keep workspace files, connect plugins, and run recurring work after this panel closes.",
566
- children: [
567
- /* @__PURE__ */ jsx(ActionGuideSection, {
568
- title: "Start with a quick browser job",
569
- children: /* @__PURE__ */ jsxs(ActionGuideList, { children: [
570
- /* @__PURE__ */ jsx(ActionGuideAction, {
571
- icon: /* @__PURE__ */ jsx(BoxIcon, {}),
572
- onClick: () => send("Organize this window’s tabs by task."),
573
- children: "Organize this window’s tabs by task"
574
- }),
575
- /* @__PURE__ */ jsx(ActionGuideAction, {
576
- icon: /* @__PURE__ */ jsx(EyeIcon, {}),
577
- onClick: () => send("Close duplicate tabs in this window."),
578
- children: "Close duplicate tabs in this window"
579
- }),
580
- /* @__PURE__ */ jsx(ActionGuideAction, {
581
- icon: /* @__PURE__ */ jsx(MonitorIcon, {}),
582
- onClick: () => send("Record a browser walkthrough as an MP4."),
583
- children: "Record a browser walkthrough as an MP4"
584
- })
585
- ] })
586
- }),
587
- /* @__PURE__ */ jsx(ActionGuideSection, {
588
- title: "Set up ongoing work",
589
- children: /* @__PURE__ */ jsxs(ActionGuideList, {
590
- layout: "cards",
591
- children: [
592
- /* @__PURE__ */ jsx(ActionGuideAction, {
593
- icon: /* @__PURE__ */ jsx(CalendarIcon, {}),
594
- onClick: () => send("Help me create a schedule."),
595
- children: "Create a schedule"
596
- }),
597
- setupActions,
598
- /* @__PURE__ */ jsx(ActionGuideAction, {
599
- icon: /* @__PURE__ */ jsx(McpIcon, {}),
600
- onClick: () => send(hasConnectedApps ? "Show me useful work I can do across my connected apps." : "Help me connect another app I use."),
601
- children: hasConnectedApps ? "Use my connected apps" : "Connect another app"
602
- })
603
- ]
604
- })
605
- }),
606
- /* @__PURE__ */ jsx(ActionGuideSection, {
607
- title: "Make an automation",
608
- children: /* @__PURE__ */ jsxs(ActionGuideList, {
609
- layout: "list",
610
- 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: [
611
1410
  /* @__PURE__ */ jsx(ActionGuideAction, {
612
- icon: /* @__PURE__ */ jsx(QueueIcon, {}),
613
- variant: "ghost",
614
- onClick: () => send("Help me make an automation."),
615
- 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"
616
1414
  }),
617
1415
  /* @__PURE__ */ jsx(ActionGuideAction, {
618
- icon: /* @__PURE__ */ jsx(TerminalIcon, {}),
619
- variant: "ghost",
620
- onClick: () => send("Help me make an automation that works across my signed-in browser tabs."),
621
- 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"
622
1419
  }),
623
1420
  /* @__PURE__ */ jsx(ActionGuideAction, {
624
- icon: /* @__PURE__ */ jsx(FolderIcon, {}),
625
- variant: "ghost",
626
- onClick: () => send("Help me make an automation that moves files between a signed-in website and the workspace."),
627
- 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"
628
1424
  })
629
- ]
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
+ })
630
1471
  })
631
- })
632
- ]
633
- }) : /* @__PURE__ */ jsx(AgentChatStarterList, {
634
- "aria-label": "Suggested prompts",
635
- items: [
636
- {
637
- id: "capability-guide",
638
- label: "See what " + brand.name + " can do",
639
- icon: /* @__PURE__ */ jsx(InfoIcon, {}),
640
- muted: true
641
- },
642
- ...suggestionsError ? [{
643
- id: "retry-suggestions",
644
- label: "Try generating suggestions again",
645
- icon: /* @__PURE__ */ jsx(InfoIcon, {}),
646
- muted: true
647
- }] : [],
648
- ...suggestions?.map((suggestion, index) => ({
649
- id: suggestionItemId(suggestion, index),
650
- label: suggestion.label,
651
- icon: suggestionIcon(suggestion.value)
652
- })) ?? []
653
- ],
654
- onSelect: (item) => {
655
- if (item.id === "capability-guide") setGuideOpen(true);
656
- else if (item.id === "retry-suggestions") onRetrySuggestions?.();
657
- else {
658
- const suggestion = suggestions?.find((candidate, index) => item.id === suggestionItemId(candidate, index));
659
- 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
+ }
660
1497
  }
661
- }
662
- }) })] });
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
+ };
663
1524
  }
664
1525
  const EmployeeChrome = {
665
1526
  Shell: EmployeeShell,