@mcp-b/react-components 0.63.0 → 0.64.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (484) hide show
  1. package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
  2. package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
  3. package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
  4. package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
  5. package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
  6. package/dist/CodeBlock-dt0L8md0.js +892 -0
  7. package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
  8. package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
  9. package/dist/ExecutionResult-CXnGcmM4.js +671 -0
  10. package/dist/FileTree-CjfzpN6X.js +968 -0
  11. package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
  12. package/dist/ManagerOffice-T79utm-P.js +2469 -0
  13. package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
  14. package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
  15. package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
  16. package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
  17. package/dist/SetupChecklist-DwscX3Bw.js +230 -0
  18. package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
  19. package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
  20. package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
  21. package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
  22. package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
  23. package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
  24. package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
  25. package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
  26. package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
  27. package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
  28. package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
  29. package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
  30. package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
  31. package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
  32. package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
  33. package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
  34. package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
  35. package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
  36. package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
  37. package/dist/assets/desktop/README.md +43 -0
  38. package/dist/assets/desktop/automations.svg +19 -0
  39. package/dist/assets/desktop/document.svg +24 -0
  40. package/dist/assets/desktop/folder.png +0 -0
  41. package/dist/assets/desktop/mail.svg +31 -0
  42. package/dist/assets/desktop/settings.svg +9 -0
  43. package/dist/assets/desktop/trash-full.svg +23 -0
  44. package/dist/assets/desktop/trash.svg +19 -0
  45. package/dist/attachment-preview-DeRqFjdz.js +68 -0
  46. package/dist/attempt-CySQHJsF.js +21 -0
  47. package/dist/command-search-1fjmCBBo.js +34 -0
  48. package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
  49. package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
  50. package/dist/components/agents-sdk/AgentActivity.js +78 -31
  51. package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
  52. package/dist/components/agents-sdk/AgentChat.js +1113 -386
  53. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  54. package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
  55. package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
  56. package/dist/components/agents-sdk/AgentComputer.js +8045 -0
  57. package/dist/components/agents-sdk/AgentEvent.js +164 -21
  58. package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
  59. package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
  60. package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
  61. package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
  62. package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
  63. package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
  64. package/dist/components/agents-sdk/BrowserReplay.js +298 -133
  65. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
  66. package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
  67. package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
  68. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  69. package/dist/components/agents-sdk/EmployeeApp.js +108 -46
  70. package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
  71. package/dist/components/agents-sdk/EmployeeChat.js +500 -99
  72. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  73. package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
  74. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  75. package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
  76. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  77. package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
  78. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  79. package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
  80. package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
  81. package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
  82. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  83. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  84. package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
  85. package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
  86. package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
  87. package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
  88. package/dist/components/agents-sdk/McpServerIcon.js +57 -14
  89. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  90. package/dist/components/agents-sdk/McpServerPicker.js +542 -158
  91. package/dist/components/agents-sdk/ModelSelector.js +1151 -253
  92. package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
  93. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  94. package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
  95. package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
  96. package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
  97. package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
  98. package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
  99. package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
  100. package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
  101. package/dist/components/agents-sdk/ThinkChat.js +321 -132
  102. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  103. package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
  104. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  105. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
  106. package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
  107. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
  108. package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
  109. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  110. package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
  111. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
  112. package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
  113. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
  114. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
  115. package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
  116. package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
  117. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
  118. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
  119. package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
  120. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
  121. package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
  122. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  123. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
  124. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  125. package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
  126. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
  127. package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
  128. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  129. package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
  130. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
  131. package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
  132. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  133. package/dist/components/agents-sdk/Workspace.js +491 -166
  134. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  135. package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
  136. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  137. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
  138. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
  139. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
  140. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  141. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  142. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
  143. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
  144. package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
  145. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
  146. package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
  147. package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
  148. package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
  149. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
  150. package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
  151. package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
  152. package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
  153. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
  154. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
  155. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
  156. package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
  157. package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
  158. package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
  159. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  160. package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
  161. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
  162. package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
  163. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  164. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  165. package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
  166. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
  167. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  168. package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
  169. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  170. package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
  171. package/dist/components/ai-sdk/Activity.js +768 -192
  172. package/dist/components/ai-sdk/AgentAttention.js +286 -58
  173. package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
  174. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
  175. package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
  176. package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
  177. package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
  178. package/dist/components/ai-sdk/Approval.js +574 -172
  179. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  180. package/dist/components/ai-sdk/Artifact.js +535 -128
  181. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  182. package/dist/components/ai-sdk/ChainOfThought.js +404 -80
  183. package/dist/components/ai-sdk/Checkpoint.js +229 -45
  184. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  185. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  186. package/dist/components/ai-sdk/ComposerLink.js +216 -48
  187. package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
  188. package/dist/components/ai-sdk/Context.js +737 -178
  189. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  190. package/dist/components/ai-sdk/Conversation.js +305 -68
  191. package/dist/components/ai-sdk/ExpansionState.js +74 -15
  192. package/dist/components/ai-sdk/Goal.js +435 -116
  193. package/dist/components/ai-sdk/InlineCitation.js +313 -76
  194. package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
  195. package/dist/components/ai-sdk/Message.d.ts +1 -1
  196. package/dist/components/ai-sdk/Message.js +1010 -195
  197. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  198. package/dist/components/ai-sdk/MessageScroller.js +264 -46
  199. package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
  200. package/dist/components/ai-sdk/Plan.js +639 -128
  201. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  202. package/dist/components/ai-sdk/PromptInput.js +2735 -794
  203. package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
  204. package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
  205. package/dist/components/ai-sdk/Queue.js +792 -154
  206. package/dist/components/ai-sdk/Reasoning.js +268 -69
  207. package/dist/components/ai-sdk/Sources.js +226 -63
  208. package/dist/components/ai-sdk/Task.js +294 -71
  209. package/dist/components/ai-sdk/ToolApproval.js +126 -26
  210. package/dist/components/ai-sdk/ToolInvocation.js +112 -22
  211. package/dist/components/extension/ChatGptSignInScreen.js +1 -82
  212. package/dist/components/extension/CodexModelSelector.d.ts +1 -1
  213. package/dist/components/extension/CodexModelSelector.js +467 -146
  214. package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
  215. package/dist/components/extension/ConversationTabPicker.js +254 -76
  216. package/dist/components/extension/FirstRunSetup.d.ts +61 -35
  217. package/dist/components/extension/FirstRunSetup.js +3834 -1012
  218. package/dist/components/foundations/Accordion.js +186 -41
  219. package/dist/components/foundations/AlertDialog.js +425 -97
  220. package/dist/components/foundations/AppIcon.d.ts +13 -13
  221. package/dist/components/foundations/AppIcon.js +183 -34
  222. package/dist/components/foundations/Autocomplete.js +408 -89
  223. package/dist/components/foundations/Avatar.d.ts +100 -2
  224. package/dist/components/foundations/Avatar.js +204 -44
  225. package/dist/components/foundations/Button.js +64 -13
  226. package/dist/components/foundations/Card.js +357 -63
  227. package/dist/components/foundations/Checkbox.js +82 -17
  228. package/dist/components/foundations/CheckboxGroup.js +266 -58
  229. package/dist/components/foundations/Collapsible.d.ts +2 -1
  230. package/dist/components/foundations/Collapsible.js +129 -26
  231. package/dist/components/foundations/Combobox.js +408 -89
  232. package/dist/components/foundations/ContextMenu.d.ts +2 -2
  233. package/dist/components/foundations/ContextMenu.js +591 -117
  234. package/dist/components/foundations/DescriptionList.js +159 -28
  235. package/dist/components/foundations/Dialog.js +373 -89
  236. package/dist/components/foundations/EmptyState.js +86 -23
  237. package/dist/components/foundations/Favicon.d.ts +17 -0
  238. package/dist/components/foundations/Favicon.js +62 -0
  239. package/dist/components/foundations/Field.js +525 -108
  240. package/dist/components/foundations/Fieldset.js +115 -23
  241. package/dist/components/foundations/Form.js +38 -9
  242. package/dist/components/foundations/FormattedDate.d.ts +19 -5
  243. package/dist/components/foundations/FormattedDate.js +82 -12
  244. package/dist/components/foundations/IconButton.d.ts +1 -1
  245. package/dist/components/foundations/IconButton.js +114 -17
  246. package/dist/components/foundations/Input.js +38 -9
  247. package/dist/components/foundations/Kbd.js +55 -10
  248. package/dist/components/foundations/Label.js +56 -12
  249. package/dist/components/foundations/LinkButton.js +67 -15
  250. package/dist/components/foundations/Marker.js +138 -29
  251. package/dist/components/foundations/Menu.d.ts +1 -1
  252. package/dist/components/foundations/Menu.js +634 -136
  253. package/dist/components/foundations/Menubar.d.ts +2 -2
  254. package/dist/components/foundations/Menubar.js +685 -130
  255. package/dist/components/foundations/Meter.js +186 -41
  256. package/dist/components/foundations/NavigationMenu.js +426 -95
  257. package/dist/components/foundations/NumberField.js +223 -49
  258. package/dist/components/foundations/Popover.js +398 -88
  259. package/dist/components/foundations/PreviewCard.js +234 -53
  260. package/dist/components/foundations/Progress.js +117 -25
  261. package/dist/components/foundations/RadioGroup.d.ts +13 -5
  262. package/dist/components/foundations/RadioGroup.js +132 -25
  263. package/dist/components/foundations/ScrollArea.js +230 -51
  264. package/dist/components/foundations/SearchField.d.ts +8 -3
  265. package/dist/components/foundations/SearchField.js +129 -28
  266. package/dist/components/foundations/Select.js +648 -145
  267. package/dist/components/foundations/Separator.js +61 -12
  268. package/dist/components/foundations/Slider.js +260 -57
  269. package/dist/components/foundations/Stepper.d.ts +1 -1
  270. package/dist/components/foundations/Stepper.js +561 -127
  271. package/dist/components/foundations/Switch.js +82 -18
  272. package/dist/components/foundations/Tabs.d.ts +2 -2
  273. package/dist/components/foundations/Tabs.js +282 -53
  274. package/dist/components/foundations/Textarea.js +43 -9
  275. package/dist/components/foundations/ThemeProvider.js +138 -52
  276. package/dist/components/foundations/Toast.d.ts +10 -2
  277. package/dist/components/foundations/Toast.js +322 -75
  278. package/dist/components/foundations/Toggle.d.ts +5 -2
  279. package/dist/components/foundations/Toggle.js +51 -10
  280. package/dist/components/foundations/ToggleGroup.d.ts +3 -3
  281. package/dist/components/foundations/ToggleGroup.js +215 -59
  282. package/dist/components/foundations/Toolbar.js +249 -61
  283. package/dist/components/foundations/Tooltip.d.ts +3 -3
  284. package/dist/components/foundations/Tooltip.js +311 -55
  285. package/dist/components/foundations/TransitionSurface.js +43 -9
  286. package/dist/components/foundations/icons.d.ts +2 -2
  287. package/dist/components/foundations/icons.js +2 -2
  288. package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
  289. package/dist/components/general-purpose/ActionGuide.js +290 -64
  290. package/dist/components/general-purpose/AppFrame.js +72 -14
  291. package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
  292. package/dist/components/general-purpose/AppTopBar.js +349 -60
  293. package/dist/components/general-purpose/BrandLoading.js +37 -9
  294. package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
  295. package/dist/components/general-purpose/CommandPalette.js +271 -0
  296. package/dist/components/general-purpose/Commit.d.ts +1 -1
  297. package/dist/components/general-purpose/Commit.js +937 -167
  298. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  299. package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
  300. package/dist/components/general-purpose/FileTree.d.ts +20 -7
  301. package/dist/components/general-purpose/FileTree.js +1 -1
  302. package/dist/components/general-purpose/ListDetail.d.ts +84 -0
  303. package/dist/components/general-purpose/ListDetail.js +423 -0
  304. package/dist/components/general-purpose/NotificationPrompt.js +20 -11
  305. package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
  306. package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
  307. package/dist/components/general-purpose/PricingFAQ.js +53 -12
  308. package/dist/components/general-purpose/PricingPage.js +376 -139
  309. package/dist/components/general-purpose/PricingPlanCard.js +209 -84
  310. package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
  311. package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
  312. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  313. package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
  314. package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
  315. package/dist/components/general-purpose/ScreenStack.js +427 -0
  316. package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
  317. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  318. package/dist/components/general-purpose/StatusScreen.js +82 -24
  319. package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
  320. package/dist/components/general-purpose/SwipeActions.js +357 -0
  321. package/dist/components/general-purpose/Terminal.d.ts +22 -48
  322. package/dist/components/general-purpose/Terminal.js +320 -174
  323. package/dist/components/general-purpose/TestResults.js +975 -196
  324. package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
  325. package/dist/components/general-purpose/ThemeModeControl.js +66 -23
  326. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
  327. package/dist/components/general-purpose/WallpaperPicker.js +180 -0
  328. package/dist/components/general-purpose/WebPreview.d.ts +5 -7
  329. package/dist/components/general-purpose/WebPreview.js +770 -203
  330. package/dist/components/nanites/AgentConnection.js +323 -84
  331. package/dist/components/nanites/AgentToolDetail.js +233 -53
  332. package/dist/components/nanites/GithubMotionMark.js +37 -9
  333. package/dist/components/nanites/NaniteScene.js +535 -323
  334. package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
  335. package/dist/container-width-C43ccJ84.js +17 -0
  336. package/dist/context-Ddsp8HgD.js +43 -0
  337. package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
  338. package/dist/copy-button-DWBVJR6D.js +118 -0
  339. package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
  340. package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
  341. package/dist/icons-nLTnB9kd.js +470 -0
  342. package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
  343. package/dist/motion-CGM3i6lX.js +319 -0
  344. package/dist/motion-preferences-6qsDIDvH.js +13 -0
  345. package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
  346. package/dist/progress-ring-BO649JA9.js +79 -0
  347. package/dist/provider-logos-Ceu7iYFx.js +362 -0
  348. package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
  349. package/dist/styles/accessibility.css +26 -0
  350. package/dist/styles/accordion.css +0 -2
  351. package/dist/styles/activity.css +20 -12
  352. package/dist/styles/agent-attention.css +31 -10
  353. package/dist/styles/agent-chat.css +7 -6
  354. package/dist/styles/agent-computer-motion-reduction.css +118 -0
  355. package/dist/styles/agent-computer-motion.css +127 -0
  356. package/dist/styles/agent-computer-phone.css +942 -0
  357. package/dist/styles/agent-computer.css +1764 -0
  358. package/dist/styles/agent-connection.css +5 -5
  359. package/dist/styles/agent-screen-switcher.css +313 -0
  360. package/dist/styles/app-icon.css +34 -30
  361. package/dist/styles/app-top-bar.css +33 -18
  362. package/dist/styles/approval.css +3 -3
  363. package/dist/styles/artifact.css +1 -1
  364. package/dist/styles/attachment-preview.css +2 -4
  365. package/dist/styles/avatar.css +12 -14
  366. package/dist/styles/base-ui-motion.css +84 -18
  367. package/dist/styles/base-ui-motion.test.tsx +305 -0
  368. package/dist/styles/base.css +16 -12
  369. package/dist/styles/brand.test.ts +7 -20
  370. package/dist/styles/browser-control-overlay.css +1 -1
  371. package/dist/styles/browser-live-screen.css +2 -2
  372. package/dist/styles/browser-live-view.css +1 -1
  373. package/dist/styles/browser-replay.css +0 -8
  374. package/dist/styles/browser-run-panel.css +275 -37
  375. package/dist/styles/button.css +52 -9
  376. package/dist/styles/card.css +6 -5
  377. package/dist/styles/chain-of-thought.css +0 -10
  378. package/dist/styles/checkpoint.css +2 -2
  379. package/dist/styles/codex-model-selector.css +2 -2
  380. package/dist/styles/color-contrast.test.ts +18 -1
  381. package/dist/styles/command-palette.css +110 -0
  382. package/dist/styles/composer-link.css +11 -7
  383. package/dist/styles/composition-motion.css +3 -14
  384. package/dist/styles/context.css +2 -2
  385. package/dist/styles/conversation-tab-picker.css +7 -0
  386. package/dist/styles/conversation.css +8 -2
  387. package/dist/styles/dialog.css +2 -2
  388. package/dist/styles/employee-app.css +8 -2
  389. package/dist/styles/employee-chrome.css +4 -4
  390. package/dist/styles/execution-board.css +206 -114
  391. package/dist/styles/execution-result.css +2 -2
  392. package/dist/styles/field.css +187 -4
  393. package/dist/styles/file-tree.css +218 -40
  394. package/dist/styles/first-run-setup.css +914 -187
  395. package/dist/styles/github-motion-mark.css +0 -8
  396. package/dist/styles/index.css +145 -133
  397. package/dist/styles/inline-citation.css +5 -4
  398. package/dist/styles/list-detail.css +57 -0
  399. package/dist/styles/manager-office.css +6 -8
  400. package/dist/styles/manager-work.css +4 -2
  401. package/dist/styles/mcp-plugin-catalog.css +2 -2
  402. package/dist/styles/mcp-server-picker.css +3 -6
  403. package/dist/styles/media-preview-card.css +2 -2
  404. package/dist/styles/menu.css +0 -9
  405. package/dist/styles/menubar.css +18 -6
  406. package/dist/styles/message-scroller.css +47 -9
  407. package/dist/styles/message.css +3 -3
  408. package/dist/styles/model-selector.css +1 -1
  409. package/dist/styles/motion-reduction.css +39 -6
  410. package/dist/styles/pricing-page.css +1 -1
  411. package/dist/styles/prompt-input.css +29 -29
  412. package/dist/styles/queue.css +1 -1
  413. package/dist/styles/recipes.css +212 -28
  414. package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
  415. package/dist/styles/responsive-sidebar-shell.css +40 -43
  416. package/dist/styles/screen-stack.css +123 -0
  417. package/dist/styles/search-field.css +80 -3
  418. package/dist/styles/stepper.css +0 -10
  419. package/dist/styles/streamdown.css +2 -2
  420. package/dist/styles/subagent-run.css +9 -5
  421. package/dist/styles/swipe-actions.css +158 -0
  422. package/dist/styles/tabs.css +80 -23
  423. package/dist/styles/task.css +7 -1
  424. package/dist/styles/terminal.css +66 -78
  425. package/dist/styles/test-results.css +1 -19
  426. package/dist/styles/textarea.css +2 -1
  427. package/dist/styles/theme-mode-control.css +154 -26
  428. package/dist/styles/think-chat-tool-panels.css +1 -1
  429. package/dist/styles/think-execution-workbench.css +0 -9
  430. package/dist/styles/think-full-app.css +7 -1
  431. package/dist/styles/think-schedule.css +81 -54
  432. package/dist/styles/think-thread-picker.css +28 -37
  433. package/dist/styles/toast.css +11 -0
  434. package/dist/styles/toggle-group.css +0 -10
  435. package/dist/styles/toggle.css +13 -0
  436. package/dist/styles/tooltip.css +12 -0
  437. package/dist/styles/transition-surface.css +1 -0
  438. package/dist/styles/wallpaper-picker.css +224 -0
  439. package/dist/styles/web-preview.css +47 -18
  440. package/dist/styles/workspace-automation.css +116 -17
  441. package/dist/styles/workspace-concepts.css +1 -1
  442. package/dist/styles/workspace-desktop.css +124 -0
  443. package/dist/styles/workspace-entity-card.css +3 -1
  444. package/dist/styles/workspace-explorer.css +499 -5
  445. package/dist/utils/brand-marks.d.ts +13 -0
  446. package/dist/utils/brand-marks.js +14 -0
  447. package/dist/utils/desktop-artwork.d.ts +17 -0
  448. package/dist/utils/desktop-artwork.js +18 -0
  449. package/dist/utils/favicon.d.ts +6 -2
  450. package/dist/utils/favicon.js +16 -4
  451. package/dist/utils/structured-code.d.ts +1 -1
  452. package/dist/workspace-assets-DdtnBDU3.js +213 -0
  453. package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
  454. package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
  455. package/dist/workspace-delete-BOY6CMBf.js +183 -0
  456. package/dist/workspace-drag-B6hMXUNt.js +304 -0
  457. package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
  458. package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
  459. package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
  460. package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
  461. package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
  462. package/package.json +9 -3
  463. package/dist/Avatar-t1YRzdwB.d.ts +0 -101
  464. package/dist/CodeBlock-DYQdZUH6.js +0 -318
  465. package/dist/ExecutionResult-2fBkpIGN.js +0 -279
  466. package/dist/FileTree-CDLOD643.js +0 -323
  467. package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
  468. package/dist/SetupChecklist-B-iEta9v.js +0 -78
  469. package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
  470. package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
  471. package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
  472. package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
  473. package/dist/attachment-preview-1CXJvrmb.js +0 -25
  474. package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
  475. package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
  476. package/dist/copy-button-DbR932tF.js +0 -45
  477. package/dist/icons-GoybMAB2.js +0 -141
  478. package/dist/progress-ring-L2bbF0ji.js +0 -40
  479. package/dist/provider-logos-DWYY8wNz.js +0 -99
  480. package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
  481. package/dist/workspace-assets-F3r6XltC.js +0 -107
  482. package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
  483. package/dist/workspace-delete-CQvv1eDE.js +0 -81
  484. package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
@@ -1,9 +1,10 @@
1
- import { E as InfoIcon, d as CheckIcon, st as WarningIcon } from "../../icons-GoybMAB2.js";
1
+ import { M as InfoIcon, mt as WarningIcon, p as CheckIcon } from "../../icons-nLTnB9kd.js";
2
2
  import { Checkbox } from "../foundations/Checkbox.js";
3
3
  import { Select } from "../foundations/Select.js";
4
4
  import { Field } from "../foundations/Field.js";
5
5
  import { SettingsFormDialog } from "../general-purpose/SettingsFormDialog.js";
6
- import { useEffect, useReducer, useState } from "react";
6
+ import { c } from "react/compiler-runtime";
7
+ import { useEffect, useState } from "react";
7
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
9
  //#region src/components/agents-sdk/AIProviderDialog.tsx
9
10
  const MODEL_APIS = [{
@@ -28,58 +29,141 @@ const PROVIDERS = [
28
29
  }
29
30
  ];
30
31
  /** One provider settings flow for ChatGPT accounts, remote endpoints, and local models. */
31
- function AIProviderDialog({ open, onOpenChange, source, onSubmit, onSignIn, onSignOut, managed: managedSetting = false }) {
32
- const managed = managedSetting && source.kind !== "chatgpt";
32
+ function AIProviderDialog(t0) {
33
+ const $ = c(42);
34
+ const { open, onOpenChange, source, onSubmit, onSignIn, onSignOut, managed: t1 } = t0;
35
+ const managed = (t1 === void 0 ? false : t1) && source.kind !== "chatgpt";
33
36
  const [choice, setChoice] = useState(null);
34
37
  const action = useProviderAction();
35
38
  const selected = choice ?? source.kind;
36
39
  const configured = source.kind !== "chatgpt" && selected === source.kind ? source : void 0;
37
40
  const usageLimit = useActiveUsageLimit(source.kind === selected ? source.usageLimit : void 0, open);
38
- const footer = providerFooter({
39
- source,
40
- selected,
41
- managed,
42
- onSignIn,
43
- onSignOut
44
- });
45
- const signOut = footer.onSignOut;
46
- return /* @__PURE__ */ jsxs(SettingsFormDialog, {
47
- open,
48
- onOpenChange: (next, details) => {
49
- if (!next) setChoice(null);
50
- onOpenChange(next, details);
51
- },
52
- title: "AI provider",
53
- size: selected === "chatgpt" ? "sm" : "md",
54
- formKey: selected,
55
- cancelLabel: footer.cancelLabel,
56
- removeLabel: signOut ? "Sign out" : void 0,
57
- removingLabel: "Signing out…",
58
- onRemove: signOut ? () => action.run(signOut) : void 0,
59
- closeOnRemove: false,
60
- submitLabel: footer.submitLabel,
61
- submittingLabel: selected === "chatgpt" ? "Opening ChatGPT…" : "Saving…",
62
- externalError: usageLimit ? void 0 : configured?.error,
63
- onFormSubmit: (...args) => action.run(() => submitProvider({
41
+ let t2;
42
+ if ($[0] !== managed || $[1] !== onSignIn || $[2] !== onSignOut || $[3] !== selected || $[4] !== source) {
43
+ t2 = providerFooter({
64
44
  source,
65
45
  selected,
66
46
  managed,
67
- onSubmit,
68
- onSignIn
69
- }, args)),
70
- children: [/* @__PURE__ */ jsx(ProviderPicker, {
47
+ onSignIn,
48
+ onSignOut
49
+ });
50
+ $[0] = managed;
51
+ $[1] = onSignIn;
52
+ $[2] = onSignOut;
53
+ $[3] = selected;
54
+ $[4] = source;
55
+ $[5] = t2;
56
+ } else t2 = $[5];
57
+ const footer = t2;
58
+ const signOut = footer.onSignOut;
59
+ let t3;
60
+ if ($[6] !== onOpenChange) {
61
+ t3 = (next, details) => {
62
+ if (!next) setChoice(null);
63
+ onOpenChange(next, details);
64
+ };
65
+ $[6] = onOpenChange;
66
+ $[7] = t3;
67
+ } else t3 = $[7];
68
+ const t4 = selected === "chatgpt" ? "sm" : "md";
69
+ const t5 = footer.cancelLabel;
70
+ const t6 = signOut ? "Sign out" : void 0;
71
+ let t7;
72
+ if ($[8] !== action || $[9] !== signOut) {
73
+ t7 = signOut ? () => action.run(signOut) : void 0;
74
+ $[8] = action;
75
+ $[9] = signOut;
76
+ $[10] = t7;
77
+ } else t7 = $[10];
78
+ const t8 = footer.submitLabel;
79
+ const t9 = selected === "chatgpt" ? "Opening ChatGPT…" : "Saving…";
80
+ const t10 = usageLimit ? void 0 : configured?.error;
81
+ let t11;
82
+ if ($[11] !== action || $[12] !== managed || $[13] !== onSignIn || $[14] !== onSubmit || $[15] !== selected || $[16] !== source) {
83
+ t11 = (...t12) => {
84
+ const args = t12;
85
+ return action.run(() => submitProvider({
86
+ source,
87
+ selected,
88
+ managed,
89
+ onSubmit,
90
+ onSignIn
91
+ }, args));
92
+ };
93
+ $[11] = action;
94
+ $[12] = managed;
95
+ $[13] = onSignIn;
96
+ $[14] = onSubmit;
97
+ $[15] = selected;
98
+ $[16] = source;
99
+ $[17] = t11;
100
+ } else t11 = $[17];
101
+ const t12 = managed || action.busy;
102
+ let t13;
103
+ if ($[18] !== selected || $[19] !== t12) {
104
+ t13 = /* @__PURE__ */ jsx(ProviderPicker, {
71
105
  value: selected,
72
- disabled: managed || action.busy,
106
+ disabled: t12,
73
107
  onChange: setChoice
74
- }), /* @__PURE__ */ jsx(ProviderSettings, {
108
+ });
109
+ $[18] = selected;
110
+ $[19] = t12;
111
+ $[20] = t13;
112
+ } else t13 = $[20];
113
+ const t14 = Boolean(onSignIn);
114
+ let t15;
115
+ if ($[21] !== configured || $[22] !== managed || $[23] !== selected || $[24] !== source || $[25] !== t14 || $[26] !== usageLimit) {
116
+ t15 = /* @__PURE__ */ jsx(ProviderSettings, {
75
117
  source,
76
118
  selected,
77
119
  managed,
78
120
  configured,
79
121
  usageLimit,
80
- canSignIn: Boolean(onSignIn)
81
- })]
82
- });
122
+ canSignIn: t14
123
+ });
124
+ $[21] = configured;
125
+ $[22] = managed;
126
+ $[23] = selected;
127
+ $[24] = source;
128
+ $[25] = t14;
129
+ $[26] = usageLimit;
130
+ $[27] = t15;
131
+ } else t15 = $[27];
132
+ let t16;
133
+ if ($[28] !== footer.cancelLabel || $[29] !== footer.submitLabel || $[30] !== open || $[31] !== selected || $[32] !== t10 || $[33] !== t11 || $[34] !== t13 || $[35] !== t15 || $[36] !== t3 || $[37] !== t4 || $[38] !== t6 || $[39] !== t7 || $[40] !== t9) {
134
+ t16 = /* @__PURE__ */ jsxs(SettingsFormDialog, {
135
+ open,
136
+ onOpenChange: t3,
137
+ title: "AI provider",
138
+ size: t4,
139
+ formKey: selected,
140
+ cancelLabel: t5,
141
+ removeLabel: t6,
142
+ removingLabel: "Signing out…",
143
+ onRemove: t7,
144
+ closeOnRemove: false,
145
+ submitLabel: t8,
146
+ submittingLabel: t9,
147
+ externalError: t10,
148
+ onFormSubmit: t11,
149
+ children: [t13, t15]
150
+ });
151
+ $[28] = footer.cancelLabel;
152
+ $[29] = footer.submitLabel;
153
+ $[30] = open;
154
+ $[31] = selected;
155
+ $[32] = t10;
156
+ $[33] = t11;
157
+ $[34] = t13;
158
+ $[35] = t15;
159
+ $[36] = t3;
160
+ $[37] = t4;
161
+ $[38] = t6;
162
+ $[39] = t7;
163
+ $[40] = t9;
164
+ $[41] = t16;
165
+ } else t16 = $[41];
166
+ return t16;
83
167
  }
84
168
  function providerFooter({ source, selected, managed, onSignIn, onSignOut }) {
85
169
  if (managed) return {
@@ -129,67 +213,216 @@ function useProviderAction() {
129
213
  run
130
214
  };
131
215
  }
132
- function ProviderPicker({ value, disabled, onChange }) {
133
- return /* @__PURE__ */ jsxs(Field.Root, {
134
- name: "provider",
135
- children: [/* @__PURE__ */ jsx(Field.Label, {
216
+ function ProviderPicker(t0) {
217
+ const $ = c(9);
218
+ const { value, disabled, onChange } = t0;
219
+ let t1;
220
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
221
+ t1 = /* @__PURE__ */ jsx(Field.Label, {
136
222
  className: "sigvelo-visually-hidden",
137
223
  children: "Provider"
138
- }), /* @__PURE__ */ jsxs(Select.Root, {
139
- value,
140
- items: PROVIDERS,
141
- disabled,
142
- onValueChange: (next) => {
143
- if (next === "chatgpt" || next === "custom" || next === "local") onChange(next);
144
- },
145
- children: [/* @__PURE__ */ jsxs(Select.Trigger, {
146
- autoFocus: true,
147
- children: [/* @__PURE__ */ jsx(Select.Value, {}), /* @__PURE__ */ jsx(Select.Icon, {})]
148
- }), /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, { children: /* @__PURE__ */ jsx(Select.Popup, { children: /* @__PURE__ */ jsx(Select.List, { children: PROVIDERS.map(({ value: option, label }) => /* @__PURE__ */ jsx(Select.Item, {
149
- value: option,
150
- children: /* @__PURE__ */ jsx(Select.ItemText, { children: label })
151
- }, option)) }) }) }) })]
152
- })]
153
- });
224
+ });
225
+ $[0] = t1;
226
+ } else t1 = $[0];
227
+ let t2;
228
+ if ($[1] !== onChange) {
229
+ t2 = (next) => {
230
+ if (next === "chatgpt" || next === "custom" || next === "local") onChange(next);
231
+ };
232
+ $[1] = onChange;
233
+ $[2] = t2;
234
+ } else t2 = $[2];
235
+ let t3;
236
+ if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
237
+ t3 = /* @__PURE__ */ jsxs(Select.Trigger, {
238
+ autoFocus: true,
239
+ children: [/* @__PURE__ */ jsx(Select.Value, {}), /* @__PURE__ */ jsx(Select.Icon, {})]
240
+ });
241
+ $[3] = t3;
242
+ } else t3 = $[3];
243
+ let t4;
244
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
245
+ t4 = /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, { children: /* @__PURE__ */ jsx(Select.Popup, { children: /* @__PURE__ */ jsx(Select.List, { children: PROVIDERS.map(_temp) }) }) }) });
246
+ $[4] = t4;
247
+ } else t4 = $[4];
248
+ let t5;
249
+ if ($[5] !== disabled || $[6] !== t2 || $[7] !== value) {
250
+ t5 = /* @__PURE__ */ jsxs(Field.Root, {
251
+ name: "provider",
252
+ children: [t1, /* @__PURE__ */ jsxs(Select.Root, {
253
+ value,
254
+ items: PROVIDERS,
255
+ disabled,
256
+ onValueChange: t2,
257
+ children: [t3, t4]
258
+ })]
259
+ });
260
+ $[5] = disabled;
261
+ $[6] = t2;
262
+ $[7] = value;
263
+ $[8] = t5;
264
+ } else t5 = $[8];
265
+ return t5;
266
+ }
267
+ function _temp(t0) {
268
+ const { value: option, label } = t0;
269
+ return /* @__PURE__ */ jsx(Select.Item, {
270
+ value: option,
271
+ children: /* @__PURE__ */ jsx(Select.ItemText, { children: label })
272
+ }, option);
154
273
  }
155
- function ProviderSettings({ source, selected, managed, configured, usageLimit, canSignIn }) {
156
- if (managed && source.kind !== "chatgpt") return /* @__PURE__ */ jsxs(Fragment, { children: [usageLimit ? /* @__PURE__ */ jsx(UsageLimitStatus, {
157
- limit: usageLimit,
158
- managed: true
159
- }) : /* @__PURE__ */ jsx(ProviderNotice, { title: "Managed by your organization" }), /* @__PURE__ */ jsxs("dl", { children: [
160
- /* @__PURE__ */ jsx("dt", { children: "Endpoint" }),
161
- /* @__PURE__ */ jsx("dd", { children: source.baseUrl }),
162
- /* @__PURE__ */ jsx("dt", { children: "Model" }),
163
- /* @__PURE__ */ jsx("dd", { children: source.modelId })
164
- ] })] });
165
- if (selected === "chatgpt") return /* @__PURE__ */ jsx(ChatGptProvider, {
166
- status: source.kind === "chatgpt" ? source.status : "signed-out",
167
- account: source.kind === "chatgpt" ? source.account : void 0,
168
- usageLimit,
169
- canSignIn
170
- });
171
- return /* @__PURE__ */ jsxs(Fragment, { children: [
172
- /* @__PURE__ */ jsx("p", { children: selected === "local" ? "Connect to a model running on this computer. Keep your local model server running while Rook is working." : "Connect to an OpenAI-compatible endpoint using Chat Completions or Responses. The API key is stored by your employee and used for model requests; leave it blank for endpoints without auth." }),
173
- /* @__PURE__ */ jsx(UsageLimitStatus, { limit: usageLimit }),
174
- /* @__PURE__ */ jsx(EndpointFields, {
274
+ function ProviderSettings(t0) {
275
+ const $ = c(31);
276
+ const { source, selected, managed, configured, usageLimit, canSignIn } = t0;
277
+ if (managed && source.kind !== "chatgpt") {
278
+ let t1;
279
+ if ($[0] !== usageLimit) {
280
+ t1 = usageLimit ? /* @__PURE__ */ jsx(UsageLimitStatus, {
281
+ limit: usageLimit,
282
+ managed: true
283
+ }) : /* @__PURE__ */ jsx(ProviderNotice, { title: "Managed by your organization" });
284
+ $[0] = usageLimit;
285
+ $[1] = t1;
286
+ } else t1 = $[1];
287
+ let t2;
288
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
289
+ t2 = /* @__PURE__ */ jsx("dt", { children: "Endpoint" });
290
+ $[2] = t2;
291
+ } else t2 = $[2];
292
+ let t3;
293
+ if ($[3] !== source.baseUrl) {
294
+ t3 = /* @__PURE__ */ jsx("dd", { children: source.baseUrl });
295
+ $[3] = source.baseUrl;
296
+ $[4] = t3;
297
+ } else t3 = $[4];
298
+ let t4;
299
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
300
+ t4 = /* @__PURE__ */ jsx("dt", { children: "Model" });
301
+ $[5] = t4;
302
+ } else t4 = $[5];
303
+ let t5;
304
+ if ($[6] !== source.modelId) {
305
+ t5 = /* @__PURE__ */ jsx("dd", { children: source.modelId });
306
+ $[6] = source.modelId;
307
+ $[7] = t5;
308
+ } else t5 = $[7];
309
+ let t6;
310
+ if ($[8] !== t3 || $[9] !== t5) {
311
+ t6 = /* @__PURE__ */ jsxs("dl", { children: [
312
+ t2,
313
+ t3,
314
+ t4,
315
+ t5
316
+ ] });
317
+ $[8] = t3;
318
+ $[9] = t5;
319
+ $[10] = t6;
320
+ } else t6 = $[10];
321
+ let t7;
322
+ if ($[11] !== t1 || $[12] !== t6) {
323
+ t7 = /* @__PURE__ */ jsxs(Fragment, { children: [t1, t6] });
324
+ $[11] = t1;
325
+ $[12] = t6;
326
+ $[13] = t7;
327
+ } else t7 = $[13];
328
+ return t7;
329
+ }
330
+ if (selected === "chatgpt") {
331
+ const t1 = source.kind === "chatgpt" ? source.status : "signed-out";
332
+ const t2 = source.kind === "chatgpt" ? source.account : void 0;
333
+ let t3;
334
+ if ($[14] !== canSignIn || $[15] !== t1 || $[16] !== t2 || $[17] !== usageLimit) {
335
+ t3 = /* @__PURE__ */ jsx(ChatGptProvider, {
336
+ status: t1,
337
+ account: t2,
338
+ usageLimit,
339
+ canSignIn
340
+ });
341
+ $[14] = canSignIn;
342
+ $[15] = t1;
343
+ $[16] = t2;
344
+ $[17] = usageLimit;
345
+ $[18] = t3;
346
+ } else t3 = $[18];
347
+ return t3;
348
+ }
349
+ const t1 = selected === "local" ? "Connect to a model running on this computer. Keep your local model server running while Rook is working." : "Connect to an OpenAI-compatible endpoint using Chat Completions or Responses. The API key is stored by your employee and used for model requests; leave it blank for endpoints without auth.";
350
+ let t2;
351
+ if ($[19] !== t1) {
352
+ t2 = /* @__PURE__ */ jsx("p", { children: t1 });
353
+ $[19] = t1;
354
+ $[20] = t2;
355
+ } else t2 = $[20];
356
+ let t3;
357
+ if ($[21] !== usageLimit) {
358
+ t3 = /* @__PURE__ */ jsx(UsageLimitStatus, { limit: usageLimit });
359
+ $[21] = usageLimit;
360
+ $[22] = t3;
361
+ } else t3 = $[22];
362
+ const t4 = selected === "local";
363
+ let t5;
364
+ if ($[23] !== configured || $[24] !== selected || $[25] !== t4) {
365
+ t5 = /* @__PURE__ */ jsx(EndpointFields, {
175
366
  configured,
176
- local: selected === "local"
177
- }, selected)
178
- ] });
367
+ local: t4
368
+ }, selected);
369
+ $[23] = configured;
370
+ $[24] = selected;
371
+ $[25] = t4;
372
+ $[26] = t5;
373
+ } else t5 = $[26];
374
+ let t6;
375
+ if ($[27] !== t2 || $[28] !== t3 || $[29] !== t5) {
376
+ t6 = /* @__PURE__ */ jsxs(Fragment, { children: [
377
+ t2,
378
+ t3,
379
+ t5
380
+ ] });
381
+ $[27] = t2;
382
+ $[28] = t3;
383
+ $[29] = t5;
384
+ $[30] = t6;
385
+ } else t6 = $[30];
386
+ return t6;
179
387
  }
180
388
  const CHATGPT_STATUS = {
181
389
  "signed-in": "Signed in",
182
390
  "signed-out": "Not signed in",
183
391
  error: "Session expired"
184
392
  };
185
- function ChatGptProvider({ account, usageLimit, status, canSignIn }) {
186
- return /* @__PURE__ */ jsxs(Fragment, { children: [status !== "signed-out" ? /* @__PURE__ */ jsx("p", {
187
- className: "ai-provider__account",
188
- children: /* @__PURE__ */ jsx("strong", { children: account?.email ?? account?.name ?? "Account details unavailable" })
189
- }) : null, status === "signed-in" && usageLimit ? /* @__PURE__ */ jsx(UsageLimitStatus, { limit: usageLimit }) : /* @__PURE__ */ jsx(ProviderNotice, {
190
- tone: status === "error" ? "warning" : status === "signed-in" ? "success" : "info",
191
- title: !canSignIn && status !== "signed-in" ? "Sign in from the Rook browser extension" : CHATGPT_STATUS[status]
192
- })] });
393
+ function ChatGptProvider(t0) {
394
+ const $ = c(11);
395
+ const { account, usageLimit, status, canSignIn } = t0;
396
+ let t1;
397
+ if ($[0] !== account?.email || $[1] !== account?.name || $[2] !== status) {
398
+ t1 = status !== "signed-out" ? /* @__PURE__ */ jsx("p", {
399
+ className: "ai-provider__account",
400
+ children: /* @__PURE__ */ jsx("strong", { children: account?.email ?? account?.name ?? "Account details unavailable" })
401
+ }) : null;
402
+ $[0] = account?.email;
403
+ $[1] = account?.name;
404
+ $[2] = status;
405
+ $[3] = t1;
406
+ } else t1 = $[3];
407
+ let t2;
408
+ if ($[4] !== canSignIn || $[5] !== status || $[6] !== usageLimit) {
409
+ t2 = status === "signed-in" && usageLimit ? /* @__PURE__ */ jsx(UsageLimitStatus, { limit: usageLimit }) : /* @__PURE__ */ jsx(ProviderNotice, {
410
+ tone: status === "error" ? "warning" : status === "signed-in" ? "success" : "info",
411
+ title: !canSignIn && status !== "signed-in" ? "Sign in from the Rook browser extension" : CHATGPT_STATUS[status]
412
+ });
413
+ $[4] = canSignIn;
414
+ $[5] = status;
415
+ $[6] = usageLimit;
416
+ $[7] = t2;
417
+ } else t2 = $[7];
418
+ let t3;
419
+ if ($[8] !== t1 || $[9] !== t2) {
420
+ t3 = /* @__PURE__ */ jsxs(Fragment, { children: [t1, t2] });
421
+ $[8] = t1;
422
+ $[9] = t2;
423
+ $[10] = t3;
424
+ } else t3 = $[10];
425
+ return t3;
193
426
  }
194
427
  const usageResetFormat = new Intl.DateTimeFormat(void 0, {
195
428
  month: "short",
@@ -197,173 +430,473 @@ const usageResetFormat = new Intl.DateTimeFormat(void 0, {
197
430
  hour: "numeric",
198
431
  minute: "2-digit"
199
432
  });
200
- function UsageLimitStatus({ limit, managed = false }) {
433
+ function UsageLimitStatus(t0) {
434
+ const $ = c(13);
435
+ const { limit, managed: t1 } = t0;
436
+ const managed = t1 === void 0 ? false : t1;
201
437
  if (!limit) return null;
202
- const reset = limit.resetsAt === void 0 ? void 0 : /* @__PURE__ */ new Date(limit.resetsAt * 1e3);
203
- return /* @__PURE__ */ jsxs(ProviderNotice, {
204
- tone: "warning",
205
- title: "Usage limit reached",
206
- children: [reset && Number.isFinite(reset.getTime()) ? /* @__PURE__ */ jsxs("p", { children: ["Resets ", /* @__PURE__ */ jsx("time", {
438
+ let T0;
439
+ let t2;
440
+ let t3;
441
+ let t4;
442
+ if ($[0] !== limit.resetsAt) {
443
+ const reset = limit.resetsAt === void 0 ? void 0 : /* @__PURE__ */ new Date(limit.resetsAt * 1e3);
444
+ T0 = ProviderNotice;
445
+ t2 = "warning";
446
+ t3 = "Usage limit reached";
447
+ t4 = reset && Number.isFinite(reset.getTime()) ? /* @__PURE__ */ jsxs("p", { children: ["Resets ", /* @__PURE__ */ jsx("time", {
207
448
  dateTime: reset.toISOString(),
208
449
  children: usageResetFormat.format(reset)
209
- })] }) : /* @__PURE__ */ jsx("p", { children: "Reset time unavailable" }), managed ? /* @__PURE__ */ jsx("p", { children: "Managed by your organization" }) : null]
210
- });
450
+ })] }) : /* @__PURE__ */ jsx("p", { children: "Reset time unavailable" });
451
+ $[0] = limit.resetsAt;
452
+ $[1] = T0;
453
+ $[2] = t2;
454
+ $[3] = t3;
455
+ $[4] = t4;
456
+ } else {
457
+ T0 = $[1];
458
+ t2 = $[2];
459
+ t3 = $[3];
460
+ t4 = $[4];
461
+ }
462
+ let t5;
463
+ if ($[5] !== managed) {
464
+ t5 = managed ? /* @__PURE__ */ jsx("p", { children: "Managed by your organization" }) : null;
465
+ $[5] = managed;
466
+ $[6] = t5;
467
+ } else t5 = $[6];
468
+ let t6;
469
+ if ($[7] !== T0 || $[8] !== t2 || $[9] !== t3 || $[10] !== t4 || $[11] !== t5) {
470
+ t6 = /* @__PURE__ */ jsxs(T0, {
471
+ tone: t2,
472
+ title: t3,
473
+ children: [t4, t5]
474
+ });
475
+ $[7] = T0;
476
+ $[8] = t2;
477
+ $[9] = t3;
478
+ $[10] = t4;
479
+ $[11] = t5;
480
+ $[12] = t6;
481
+ } else t6 = $[12];
482
+ return t6;
211
483
  }
212
484
  function useActiveUsageLimit(limit, open) {
213
- const [tick, update] = useReducer((value) => value + 1, 0);
485
+ const $ = c(5);
486
+ const [now, setNow] = useState(_temp2);
214
487
  const resetsAt = limit?.resetsAt;
215
- useEffect(() => {
216
- if (!open || resetsAt === void 0) return;
217
- const remaining = resetsAt * 1e3 - Date.now();
218
- if (!Number.isFinite(remaining) || remaining <= 0) return;
219
- const timer = setTimeout(update, Math.min(remaining + 1, 2147483647));
220
- return () => clearTimeout(timer);
221
- }, [
222
- open,
223
- resetsAt,
224
- tick
225
- ]);
226
- return resetsAt !== void 0 && resetsAt * 1e3 <= Date.now() ? void 0 : limit;
488
+ let t0;
489
+ let t1;
490
+ if ($[0] !== now || $[1] !== open || $[2] !== resetsAt) {
491
+ t0 = () => {
492
+ if (!open || resetsAt === void 0) return;
493
+ const resetAt = resetsAt * 1e3;
494
+ if (!Number.isFinite(resetAt) || resetAt <= now) return;
495
+ const timer = setTimeout(() => setNow(Date.now()), Math.max(0, Math.min(resetAt - Date.now() + 1, 2147483647)));
496
+ return () => clearTimeout(timer);
497
+ };
498
+ t1 = [
499
+ open,
500
+ resetsAt,
501
+ now
502
+ ];
503
+ $[0] = now;
504
+ $[1] = open;
505
+ $[2] = resetsAt;
506
+ $[3] = t0;
507
+ $[4] = t1;
508
+ } else {
509
+ t0 = $[3];
510
+ t1 = $[4];
511
+ }
512
+ useEffect(t0, t1);
513
+ return resetsAt !== void 0 && resetsAt * 1e3 <= now ? void 0 : limit;
514
+ }
515
+ function _temp2() {
516
+ return Date.now();
227
517
  }
228
518
  const providerNoticeIcons = {
229
519
  success: CheckIcon,
230
520
  info: InfoIcon,
231
521
  warning: WarningIcon
232
522
  };
233
- function ProviderNotice({ title, tone = "info", children }) {
523
+ function ProviderNotice(t0) {
524
+ const $ = c(13);
525
+ const { title, tone: t1, children } = t0;
526
+ const tone = t1 === void 0 ? "info" : t1;
234
527
  const Icon = providerNoticeIcons[tone];
235
- return /* @__PURE__ */ jsxs("div", {
236
- className: "ai-provider-notice",
237
- "data-tone": tone,
238
- role: "status",
239
- children: [/* @__PURE__ */ jsx(Icon, {
528
+ let t2;
529
+ if ($[0] !== Icon) {
530
+ t2 = /* @__PURE__ */ jsx(Icon, {
240
531
  className: "ai-provider-notice__icon",
241
532
  "aria-hidden": "true"
242
- }), /* @__PURE__ */ jsxs("div", {
533
+ });
534
+ $[0] = Icon;
535
+ $[1] = t2;
536
+ } else t2 = $[1];
537
+ let t3;
538
+ if ($[2] !== title) {
539
+ t3 = /* @__PURE__ */ jsx("p", {
540
+ className: "ai-provider-notice__title",
541
+ children: title
542
+ });
543
+ $[2] = title;
544
+ $[3] = t3;
545
+ } else t3 = $[3];
546
+ let t4;
547
+ if ($[4] !== children) {
548
+ t4 = children ? /* @__PURE__ */ jsx("div", {
549
+ className: "ai-provider-notice__description",
550
+ children
551
+ }) : null;
552
+ $[4] = children;
553
+ $[5] = t4;
554
+ } else t4 = $[5];
555
+ let t5;
556
+ if ($[6] !== t3 || $[7] !== t4) {
557
+ t5 = /* @__PURE__ */ jsxs("div", {
243
558
  className: "ai-provider-notice__content",
244
- children: [/* @__PURE__ */ jsx("p", {
245
- className: "ai-provider-notice__title",
246
- children: title
247
- }), children ? /* @__PURE__ */ jsx("div", {
248
- className: "ai-provider-notice__description",
249
- children
250
- }) : null]
251
- })]
252
- });
559
+ children: [t3, t4]
560
+ });
561
+ $[6] = t3;
562
+ $[7] = t4;
563
+ $[8] = t5;
564
+ } else t5 = $[8];
565
+ let t6;
566
+ if ($[9] !== t2 || $[10] !== t5 || $[11] !== tone) {
567
+ t6 = /* @__PURE__ */ jsxs("div", {
568
+ className: "ai-provider-notice",
569
+ "data-tone": tone,
570
+ role: "status",
571
+ children: [t2, t5]
572
+ });
573
+ $[9] = t2;
574
+ $[10] = t5;
575
+ $[11] = tone;
576
+ $[12] = t6;
577
+ } else t6 = $[12];
578
+ return t6;
253
579
  }
254
- function EndpointFields({ configured, local }) {
255
- return /* @__PURE__ */ jsxs(Fragment, { children: [
256
- /* @__PURE__ */ jsxs(Field.Root, {
580
+ function EndpointFields(t0) {
581
+ const $ = c(56);
582
+ const { configured, local } = t0;
583
+ let t1;
584
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
585
+ t1 = /* @__PURE__ */ jsx(Field.Label, { children: "Base URL" });
586
+ $[0] = t1;
587
+ } else t1 = $[0];
588
+ const t2 = local ? "http://localhost:11434/v1" : "https://gateway.example.com/v1";
589
+ const t3 = configured?.baseUrl ?? (local ? "http://localhost:11434/v1" : void 0);
590
+ let t4;
591
+ if ($[1] !== t2 || $[2] !== t3) {
592
+ t4 = /* @__PURE__ */ jsx(Field.Control, {
593
+ type: "url",
594
+ placeholder: t2,
595
+ autoComplete: "off",
596
+ defaultValue: t3,
597
+ required: true
598
+ });
599
+ $[1] = t2;
600
+ $[2] = t3;
601
+ $[3] = t4;
602
+ } else t4 = $[3];
603
+ let t5;
604
+ let t6;
605
+ if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
606
+ t5 = /* @__PURE__ */ jsx(Field.Error, {
607
+ match: "valueMissing",
608
+ children: "Base URL is required."
609
+ });
610
+ t6 = /* @__PURE__ */ jsx(Field.Error, {
611
+ match: "typeMismatch",
612
+ children: "Enter a valid URL."
613
+ });
614
+ $[4] = t5;
615
+ $[5] = t6;
616
+ } else {
617
+ t5 = $[4];
618
+ t6 = $[5];
619
+ }
620
+ let t7;
621
+ if ($[6] !== t4) {
622
+ t7 = /* @__PURE__ */ jsxs(Field.Root, {
257
623
  name: "baseUrl",
258
624
  children: [
259
- /* @__PURE__ */ jsx(Field.Label, { children: "Base URL" }),
260
- /* @__PURE__ */ jsx(Field.Control, {
261
- type: "url",
262
- placeholder: local ? "http://localhost:11434/v1" : "https://gateway.example.com/v1",
263
- autoComplete: "off",
264
- defaultValue: configured?.baseUrl ?? (local ? "http://localhost:11434/v1" : void 0),
265
- required: true
266
- }),
267
- /* @__PURE__ */ jsx(Field.Error, {
268
- match: "valueMissing",
269
- children: "Base URL is required."
270
- }),
271
- /* @__PURE__ */ jsx(Field.Error, {
272
- match: "typeMismatch",
273
- children: "Enter a valid URL."
274
- })
625
+ t1,
626
+ t4,
627
+ t5,
628
+ t6
275
629
  ]
276
- }),
277
- /* @__PURE__ */ jsxs(Field.Root, {
630
+ });
631
+ $[6] = t4;
632
+ $[7] = t7;
633
+ } else t7 = $[7];
634
+ let t8;
635
+ if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
636
+ t8 = /* @__PURE__ */ jsx(Field.Label, { children: "API" });
637
+ $[8] = t8;
638
+ } else t8 = $[8];
639
+ const t9 = configured?.api ?? "chat-completions";
640
+ let t10;
641
+ if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
642
+ t10 = /* @__PURE__ */ jsxs(Select.Trigger, { children: [/* @__PURE__ */ jsx(Select.Value, {}), /* @__PURE__ */ jsx(Select.Icon, {})] });
643
+ $[9] = t10;
644
+ } else t10 = $[9];
645
+ let t11;
646
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
647
+ t11 = /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, { children: /* @__PURE__ */ jsx(Select.Popup, { children: /* @__PURE__ */ jsx(Select.List, { children: MODEL_APIS.map(_temp3) }) }) }) });
648
+ $[10] = t11;
649
+ } else t11 = $[10];
650
+ let t12;
651
+ if ($[11] !== t9) {
652
+ t12 = /* @__PURE__ */ jsxs(Select.Root, {
653
+ defaultValue: t9,
654
+ items: MODEL_APIS,
655
+ children: [t10, t11]
656
+ });
657
+ $[11] = t9;
658
+ $[12] = t12;
659
+ } else t12 = $[12];
660
+ let t13;
661
+ if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
662
+ t13 = /* @__PURE__ */ jsx(Field.Description, { children: "Choose the API your endpoint supports. Codex uses Responses." });
663
+ $[13] = t13;
664
+ } else t13 = $[13];
665
+ let t14;
666
+ if ($[14] !== t12) {
667
+ t14 = /* @__PURE__ */ jsxs(Field.Root, {
278
668
  name: "api",
279
669
  children: [
280
- /* @__PURE__ */ jsx(Field.Label, { children: "API" }),
281
- /* @__PURE__ */ jsxs(Select.Root, {
282
- defaultValue: configured?.api ?? "chat-completions",
283
- items: MODEL_APIS,
284
- children: [/* @__PURE__ */ jsxs(Select.Trigger, { children: [/* @__PURE__ */ jsx(Select.Value, {}), /* @__PURE__ */ jsx(Select.Icon, {})] }), /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, { children: /* @__PURE__ */ jsx(Select.Popup, { children: /* @__PURE__ */ jsx(Select.List, { children: MODEL_APIS.map(({ value, label }) => /* @__PURE__ */ jsx(Select.Item, {
285
- value,
286
- children: /* @__PURE__ */ jsx(Select.ItemText, { children: label })
287
- }, value)) }) }) }) })]
288
- }),
289
- /* @__PURE__ */ jsx(Field.Description, { children: "Choose the API your endpoint supports. Codex uses Responses." })
670
+ t8,
671
+ t12,
672
+ t13
290
673
  ]
291
- }),
292
- /* @__PURE__ */ jsxs(Field.Root, {
674
+ });
675
+ $[14] = t12;
676
+ $[15] = t14;
677
+ } else t14 = $[15];
678
+ let t15;
679
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
680
+ t15 = /* @__PURE__ */ jsx(Field.Label, { children: "Model id" });
681
+ $[16] = t15;
682
+ } else t15 = $[16];
683
+ const t16 = configured?.modelId;
684
+ let t17;
685
+ if ($[17] !== t16) {
686
+ t17 = /* @__PURE__ */ jsx(Field.Control, {
687
+ placeholder: "qwen3-coder",
688
+ autoComplete: "off",
689
+ defaultValue: t16,
690
+ required: true
691
+ });
692
+ $[17] = t16;
693
+ $[18] = t17;
694
+ } else t17 = $[18];
695
+ let t18;
696
+ if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
697
+ t18 = /* @__PURE__ */ jsx(Field.Error, {
698
+ match: "valueMissing",
699
+ children: "Model id is required."
700
+ });
701
+ $[19] = t18;
702
+ } else t18 = $[19];
703
+ let t19;
704
+ if ($[20] !== t17) {
705
+ t19 = /* @__PURE__ */ jsxs(Field.Root, {
293
706
  name: "modelId",
294
707
  children: [
295
- /* @__PURE__ */ jsx(Field.Label, { children: "Model id" }),
296
- /* @__PURE__ */ jsx(Field.Control, {
297
- placeholder: "qwen3-coder",
298
- autoComplete: "off",
299
- defaultValue: configured?.modelId,
300
- required: true
301
- }),
302
- /* @__PURE__ */ jsx(Field.Error, {
303
- match: "valueMissing",
304
- children: "Model id is required."
305
- })
708
+ t15,
709
+ t17,
710
+ t18
306
711
  ]
307
- }),
308
- /* @__PURE__ */ jsxs(Field.Root, {
712
+ });
713
+ $[20] = t17;
714
+ $[21] = t19;
715
+ } else t19 = $[21];
716
+ const t20 = configured ? "API key (leave blank to keep saved key)" : "API key (optional)";
717
+ let t21;
718
+ if ($[22] !== t20) {
719
+ t21 = /* @__PURE__ */ jsx(Field.Label, { children: t20 });
720
+ $[22] = t20;
721
+ $[23] = t21;
722
+ } else t21 = $[23];
723
+ let t22;
724
+ if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
725
+ t22 = /* @__PURE__ */ jsx(Field.Control, {
726
+ type: "password",
727
+ autoComplete: "off"
728
+ });
729
+ $[24] = t22;
730
+ } else t22 = $[24];
731
+ let t23;
732
+ if ($[25] !== t21) {
733
+ t23 = /* @__PURE__ */ jsxs(Field.Root, {
309
734
  name: "apiKey",
310
- children: [/* @__PURE__ */ jsx(Field.Label, { children: configured ? "API key (leave blank to keep saved key)" : "API key (optional)" }), /* @__PURE__ */ jsx(Field.Control, {
311
- type: "password",
312
- autoComplete: "off"
313
- })]
314
- }),
315
- /* @__PURE__ */ jsxs(Field.Root, {
735
+ children: [t21, t22]
736
+ });
737
+ $[25] = t21;
738
+ $[26] = t23;
739
+ } else t23 = $[26];
740
+ const t24 = !configured;
741
+ let t25;
742
+ if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
743
+ t25 = /* @__PURE__ */ jsx(Checkbox.Indicator, {});
744
+ $[27] = t25;
745
+ } else t25 = $[27];
746
+ let t26;
747
+ if ($[28] !== t24) {
748
+ t26 = /* @__PURE__ */ jsx(Checkbox.Root, {
749
+ defaultChecked: t24,
750
+ children: t25
751
+ });
752
+ $[28] = t24;
753
+ $[29] = t26;
754
+ } else t26 = $[29];
755
+ let t27;
756
+ if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
757
+ t27 = /* @__PURE__ */ jsx(Field.Label, { children: "Detect capabilities automatically" });
758
+ $[30] = t27;
759
+ } else t27 = $[30];
760
+ let t28;
761
+ if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
762
+ t28 = /* @__PURE__ */ jsxs(Field.Content, { children: [t27, /* @__PURE__ */ jsxs(Field.Description, { children: [
763
+ "Looks up the model id in the open",
764
+ " ",
765
+ /* @__PURE__ */ jsx("a", {
766
+ href: "https://models.dev",
767
+ target: "_blank",
768
+ rel: "noreferrer",
769
+ children: "models.dev"
770
+ }),
771
+ " ",
772
+ "registry (or your Ollama) and ignores the boxes below. Uncheck to declare capabilities yourself."
773
+ ] })] });
774
+ $[31] = t28;
775
+ } else t28 = $[31];
776
+ let t29;
777
+ if ($[32] !== t26) {
778
+ t29 = /* @__PURE__ */ jsxs(Field.Root, {
316
779
  name: "autoCapabilities",
317
780
  orientation: "horizontal",
318
- children: [/* @__PURE__ */ jsx(Checkbox.Root, {
319
- defaultChecked: !configured,
320
- children: /* @__PURE__ */ jsx(Checkbox.Indicator, {})
321
- }), /* @__PURE__ */ jsxs(Field.Content, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "Detect capabilities automatically" }), /* @__PURE__ */ jsxs(Field.Description, { children: [
322
- "Looks up the model id in the open",
323
- " ",
324
- /* @__PURE__ */ jsx("a", {
325
- href: "https://models.dev",
326
- target: "_blank",
327
- rel: "noreferrer",
328
- children: "models.dev"
329
- }),
330
- " ",
331
- "registry (or your Ollama) and ignores the boxes below. Uncheck to declare capabilities yourself."
332
- ] })] })]
333
- }),
334
- /* @__PURE__ */ jsxs(Field.Root, {
781
+ children: [t26, t28]
782
+ });
783
+ $[32] = t26;
784
+ $[33] = t29;
785
+ } else t29 = $[33];
786
+ const t30 = configured?.acceptsImages ?? false;
787
+ let t31;
788
+ if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
789
+ t31 = /* @__PURE__ */ jsx(Checkbox.Indicator, {});
790
+ $[34] = t31;
791
+ } else t31 = $[34];
792
+ let t32;
793
+ if ($[35] !== t30) {
794
+ t32 = /* @__PURE__ */ jsx(Checkbox.Root, {
795
+ defaultChecked: t30,
796
+ children: t31
797
+ });
798
+ $[35] = t30;
799
+ $[36] = t32;
800
+ } else t32 = $[36];
801
+ let t33;
802
+ if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
803
+ t33 = /* @__PURE__ */ jsx(Field.Label, { children: "This model reads images" });
804
+ $[37] = t33;
805
+ } else t33 = $[37];
806
+ let t34;
807
+ if ($[38] === Symbol.for("react.memo_cache_sentinel")) {
808
+ t34 = /* @__PURE__ */ jsxs(Field.Content, { children: [t33, /* @__PURE__ */ jsxs(Field.Description, { children: [
809
+ "Leave this off and screenshots are named, not sent — the agent reads the DOM instead.",
810
+ " ",
811
+ /* @__PURE__ */ jsx("a", {
812
+ href: "https://openrouter.ai/models?input_modalities=image",
813
+ target: "_blank",
814
+ rel: "noreferrer",
815
+ children: "OpenRouter"
816
+ }),
817
+ " ",
818
+ "lists which models take image input."
819
+ ] })] });
820
+ $[38] = t34;
821
+ } else t34 = $[38];
822
+ let t35;
823
+ if ($[39] !== t32) {
824
+ t35 = /* @__PURE__ */ jsxs(Field.Root, {
335
825
  name: "acceptsImages",
336
826
  orientation: "horizontal",
337
- children: [/* @__PURE__ */ jsx(Checkbox.Root, {
338
- defaultChecked: configured?.acceptsImages ?? false,
339
- children: /* @__PURE__ */ jsx(Checkbox.Indicator, {})
340
- }), /* @__PURE__ */ jsxs(Field.Content, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "This model reads images" }), /* @__PURE__ */ jsxs(Field.Description, { children: [
341
- "Leave this off and screenshots are named, not sent — the agent reads the DOM instead.",
342
- " ",
343
- /* @__PURE__ */ jsx("a", {
344
- href: "https://openrouter.ai/models?input_modalities=image",
345
- target: "_blank",
346
- rel: "noreferrer",
347
- children: "OpenRouter"
348
- }),
349
- " ",
350
- "lists which models take image input."
351
- ] })] })]
352
- }),
353
- /* @__PURE__ */ jsxs(Field.Root, {
827
+ children: [t32, t34]
828
+ });
829
+ $[39] = t32;
830
+ $[40] = t35;
831
+ } else t35 = $[40];
832
+ const t36 = configured?.acceptsPdfs ?? false;
833
+ let t37;
834
+ if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
835
+ t37 = /* @__PURE__ */ jsx(Checkbox.Indicator, {});
836
+ $[41] = t37;
837
+ } else t37 = $[41];
838
+ let t38;
839
+ if ($[42] !== t36) {
840
+ t38 = /* @__PURE__ */ jsx(Checkbox.Root, {
841
+ defaultChecked: t36,
842
+ children: t37
843
+ });
844
+ $[42] = t36;
845
+ $[43] = t38;
846
+ } else t38 = $[43];
847
+ let t39;
848
+ if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
849
+ t39 = /* @__PURE__ */ jsx(Field.Label, { children: "This model reads PDFs" });
850
+ $[44] = t39;
851
+ } else t39 = $[44];
852
+ let t40;
853
+ if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
854
+ t40 = /* @__PURE__ */ jsxs(Field.Content, { children: [t39, /* @__PURE__ */ jsxs(Field.Description, { children: [
855
+ "Leave this off and workspace PDFs are named, not sent — the agent routes documents through browser tools instead. Requires the endpoint to accept OpenAI-style",
856
+ " ",
857
+ /* @__PURE__ */ jsx("code", { children: "file" }),
858
+ " content parts."
859
+ ] })] });
860
+ $[45] = t40;
861
+ } else t40 = $[45];
862
+ let t41;
863
+ if ($[46] !== t38) {
864
+ t41 = /* @__PURE__ */ jsxs(Field.Root, {
354
865
  name: "acceptsPdfs",
355
866
  orientation: "horizontal",
356
- children: [/* @__PURE__ */ jsx(Checkbox.Root, {
357
- defaultChecked: configured?.acceptsPdfs ?? false,
358
- children: /* @__PURE__ */ jsx(Checkbox.Indicator, {})
359
- }), /* @__PURE__ */ jsxs(Field.Content, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "This model reads PDFs" }), /* @__PURE__ */ jsxs(Field.Description, { children: [
360
- "Leave this off and workspace PDFs are named, not sent — the agent routes documents through browser tools instead. Requires the endpoint to accept OpenAI-style",
361
- " ",
362
- /* @__PURE__ */ jsx("code", { children: "file" }),
363
- " content parts."
364
- ] })] })]
365
- })
366
- ] });
867
+ children: [t38, t40]
868
+ });
869
+ $[46] = t38;
870
+ $[47] = t41;
871
+ } else t41 = $[47];
872
+ let t42;
873
+ if ($[48] !== t14 || $[49] !== t19 || $[50] !== t23 || $[51] !== t29 || $[52] !== t35 || $[53] !== t41 || $[54] !== t7) {
874
+ t42 = /* @__PURE__ */ jsxs(Fragment, { children: [
875
+ t7,
876
+ t14,
877
+ t19,
878
+ t23,
879
+ t29,
880
+ t35,
881
+ t41
882
+ ] });
883
+ $[48] = t14;
884
+ $[49] = t19;
885
+ $[50] = t23;
886
+ $[51] = t29;
887
+ $[52] = t35;
888
+ $[53] = t41;
889
+ $[54] = t7;
890
+ $[55] = t42;
891
+ } else t42 = $[55];
892
+ return t42;
893
+ }
894
+ function _temp3(t0) {
895
+ const { value, label } = t0;
896
+ return /* @__PURE__ */ jsx(Select.Item, {
897
+ value,
898
+ children: /* @__PURE__ */ jsx(Select.ItemText, { children: label })
899
+ }, value);
367
900
  }
368
901
  //#endregion
369
902
  export { AIProviderDialog };