@mcp-b/react-components 0.63.0 → 0.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (484) hide show
  1. package/dist/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
  2. package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
  3. package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
  4. package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
  5. package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
  6. package/dist/CodeBlock-dt0L8md0.js +892 -0
  7. package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
  8. package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
  9. package/dist/ExecutionResult-CXnGcmM4.js +671 -0
  10. package/dist/FileTree-CjfzpN6X.js +968 -0
  11. package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
  12. package/dist/ManagerOffice-T79utm-P.js +2469 -0
  13. package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
  14. package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
  15. package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
  16. package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
  17. package/dist/SetupChecklist-DwscX3Bw.js +230 -0
  18. package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
  19. package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
  20. package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
  21. package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
  22. package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
  23. package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
  24. package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
  25. package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
  26. package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
  27. package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
  28. package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
  29. package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
  30. package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
  31. package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
  32. package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
  33. package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
  34. package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
  35. package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
  36. package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
  37. package/dist/assets/desktop/README.md +43 -0
  38. package/dist/assets/desktop/automations.svg +19 -0
  39. package/dist/assets/desktop/document.svg +24 -0
  40. package/dist/assets/desktop/folder.png +0 -0
  41. package/dist/assets/desktop/mail.svg +31 -0
  42. package/dist/assets/desktop/settings.svg +9 -0
  43. package/dist/assets/desktop/trash-full.svg +23 -0
  44. package/dist/assets/desktop/trash.svg +19 -0
  45. package/dist/attachment-preview-DeRqFjdz.js +68 -0
  46. package/dist/attempt-CySQHJsF.js +21 -0
  47. package/dist/command-search-1fjmCBBo.js +34 -0
  48. package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
  49. package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
  50. package/dist/components/agents-sdk/AgentActivity.js +78 -31
  51. package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
  52. package/dist/components/agents-sdk/AgentChat.js +1113 -386
  53. package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
  54. package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
  55. package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
  56. package/dist/components/agents-sdk/AgentComputer.js +8045 -0
  57. package/dist/components/agents-sdk/AgentEvent.js +164 -21
  58. package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
  59. package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
  60. package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
  61. package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
  62. package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
  63. package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
  64. package/dist/components/agents-sdk/BrowserReplay.js +298 -133
  65. package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
  66. package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
  67. package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
  68. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  69. package/dist/components/agents-sdk/EmployeeApp.js +108 -46
  70. package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
  71. package/dist/components/agents-sdk/EmployeeChat.js +500 -99
  72. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  73. package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
  74. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  75. package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
  76. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
  77. package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
  78. package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
  79. package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
  80. package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
  81. package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
  82. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  83. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  84. package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
  85. package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
  86. package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
  87. package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
  88. package/dist/components/agents-sdk/McpServerIcon.js +57 -14
  89. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  90. package/dist/components/agents-sdk/McpServerPicker.js +542 -158
  91. package/dist/components/agents-sdk/ModelSelector.js +1151 -253
  92. package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
  93. package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
  94. package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
  95. package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
  96. package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
  97. package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
  98. package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
  99. package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
  100. package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
  101. package/dist/components/agents-sdk/ThinkChat.js +321 -132
  102. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  103. package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
  104. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  105. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
  106. package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
  107. package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
  108. package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
  109. package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
  110. package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
  111. package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
  112. package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
  113. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
  114. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
  115. package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
  116. package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
  117. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
  118. package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
  119. package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
  120. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
  121. package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
  122. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  123. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
  124. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  125. package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
  126. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
  127. package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
  128. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  129. package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
  130. package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
  131. package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
  132. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  133. package/dist/components/agents-sdk/Workspace.js +491 -166
  134. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  135. package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
  136. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  137. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
  138. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
  139. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
  140. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  141. package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
  142. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
  143. package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
  144. package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
  145. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
  146. package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
  147. package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
  148. package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
  149. package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
  150. package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
  151. package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
  152. package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
  153. package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
  154. package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
  155. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
  156. package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
  157. package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
  158. package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
  159. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  160. package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
  161. package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
  162. package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
  163. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  164. package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
  165. package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
  166. package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
  167. package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
  168. package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
  169. package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
  170. package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
  171. package/dist/components/ai-sdk/Activity.js +768 -192
  172. package/dist/components/ai-sdk/AgentAttention.js +286 -58
  173. package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
  174. package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
  175. package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
  176. package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
  177. package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
  178. package/dist/components/ai-sdk/Approval.js +574 -172
  179. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  180. package/dist/components/ai-sdk/Artifact.js +535 -128
  181. package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
  182. package/dist/components/ai-sdk/ChainOfThought.js +404 -80
  183. package/dist/components/ai-sdk/Checkpoint.js +229 -45
  184. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  185. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  186. package/dist/components/ai-sdk/ComposerLink.js +216 -48
  187. package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
  188. package/dist/components/ai-sdk/Context.js +737 -178
  189. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  190. package/dist/components/ai-sdk/Conversation.js +305 -68
  191. package/dist/components/ai-sdk/ExpansionState.js +74 -15
  192. package/dist/components/ai-sdk/Goal.js +435 -116
  193. package/dist/components/ai-sdk/InlineCitation.js +313 -76
  194. package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
  195. package/dist/components/ai-sdk/Message.d.ts +1 -1
  196. package/dist/components/ai-sdk/Message.js +1010 -195
  197. package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
  198. package/dist/components/ai-sdk/MessageScroller.js +264 -46
  199. package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
  200. package/dist/components/ai-sdk/Plan.js +639 -128
  201. package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
  202. package/dist/components/ai-sdk/PromptInput.js +2735 -794
  203. package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
  204. package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
  205. package/dist/components/ai-sdk/Queue.js +792 -154
  206. package/dist/components/ai-sdk/Reasoning.js +268 -69
  207. package/dist/components/ai-sdk/Sources.js +226 -63
  208. package/dist/components/ai-sdk/Task.js +294 -71
  209. package/dist/components/ai-sdk/ToolApproval.js +126 -26
  210. package/dist/components/ai-sdk/ToolInvocation.js +112 -22
  211. package/dist/components/extension/ChatGptSignInScreen.js +1 -82
  212. package/dist/components/extension/CodexModelSelector.d.ts +1 -1
  213. package/dist/components/extension/CodexModelSelector.js +467 -146
  214. package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
  215. package/dist/components/extension/ConversationTabPicker.js +254 -76
  216. package/dist/components/extension/FirstRunSetup.d.ts +100 -36
  217. package/dist/components/extension/FirstRunSetup.js +3974 -1016
  218. package/dist/components/foundations/Accordion.js +186 -41
  219. package/dist/components/foundations/AlertDialog.js +425 -97
  220. package/dist/components/foundations/AppIcon.d.ts +13 -13
  221. package/dist/components/foundations/AppIcon.js +183 -34
  222. package/dist/components/foundations/Autocomplete.js +408 -89
  223. package/dist/components/foundations/Avatar.d.ts +100 -2
  224. package/dist/components/foundations/Avatar.js +204 -44
  225. package/dist/components/foundations/Button.js +64 -13
  226. package/dist/components/foundations/Card.js +357 -63
  227. package/dist/components/foundations/Checkbox.js +82 -17
  228. package/dist/components/foundations/CheckboxGroup.js +266 -58
  229. package/dist/components/foundations/Collapsible.d.ts +2 -1
  230. package/dist/components/foundations/Collapsible.js +129 -26
  231. package/dist/components/foundations/Combobox.js +408 -89
  232. package/dist/components/foundations/ContextMenu.d.ts +2 -2
  233. package/dist/components/foundations/ContextMenu.js +591 -117
  234. package/dist/components/foundations/DescriptionList.js +159 -28
  235. package/dist/components/foundations/Dialog.js +373 -89
  236. package/dist/components/foundations/EmptyState.js +86 -23
  237. package/dist/components/foundations/Favicon.d.ts +17 -0
  238. package/dist/components/foundations/Favicon.js +62 -0
  239. package/dist/components/foundations/Field.js +525 -108
  240. package/dist/components/foundations/Fieldset.js +115 -23
  241. package/dist/components/foundations/Form.js +38 -9
  242. package/dist/components/foundations/FormattedDate.d.ts +19 -5
  243. package/dist/components/foundations/FormattedDate.js +82 -12
  244. package/dist/components/foundations/IconButton.d.ts +1 -1
  245. package/dist/components/foundations/IconButton.js +114 -17
  246. package/dist/components/foundations/Input.js +38 -9
  247. package/dist/components/foundations/Kbd.js +55 -10
  248. package/dist/components/foundations/Label.js +56 -12
  249. package/dist/components/foundations/LinkButton.js +67 -15
  250. package/dist/components/foundations/Marker.js +138 -29
  251. package/dist/components/foundations/Menu.d.ts +1 -1
  252. package/dist/components/foundations/Menu.js +634 -136
  253. package/dist/components/foundations/Menubar.d.ts +2 -2
  254. package/dist/components/foundations/Menubar.js +685 -130
  255. package/dist/components/foundations/Meter.js +186 -41
  256. package/dist/components/foundations/NavigationMenu.js +426 -95
  257. package/dist/components/foundations/NumberField.js +223 -49
  258. package/dist/components/foundations/Popover.js +398 -88
  259. package/dist/components/foundations/PreviewCard.js +234 -53
  260. package/dist/components/foundations/Progress.js +117 -25
  261. package/dist/components/foundations/RadioGroup.d.ts +13 -5
  262. package/dist/components/foundations/RadioGroup.js +132 -25
  263. package/dist/components/foundations/ScrollArea.js +230 -51
  264. package/dist/components/foundations/SearchField.d.ts +8 -3
  265. package/dist/components/foundations/SearchField.js +129 -28
  266. package/dist/components/foundations/Select.js +648 -145
  267. package/dist/components/foundations/Separator.js +61 -12
  268. package/dist/components/foundations/Slider.js +260 -57
  269. package/dist/components/foundations/Stepper.d.ts +1 -1
  270. package/dist/components/foundations/Stepper.js +561 -127
  271. package/dist/components/foundations/Switch.js +82 -18
  272. package/dist/components/foundations/Tabs.d.ts +2 -2
  273. package/dist/components/foundations/Tabs.js +282 -53
  274. package/dist/components/foundations/Textarea.js +43 -9
  275. package/dist/components/foundations/ThemeProvider.js +138 -52
  276. package/dist/components/foundations/Toast.d.ts +10 -2
  277. package/dist/components/foundations/Toast.js +322 -75
  278. package/dist/components/foundations/Toggle.d.ts +5 -2
  279. package/dist/components/foundations/Toggle.js +51 -10
  280. package/dist/components/foundations/ToggleGroup.d.ts +3 -3
  281. package/dist/components/foundations/ToggleGroup.js +215 -59
  282. package/dist/components/foundations/Toolbar.js +249 -61
  283. package/dist/components/foundations/Tooltip.d.ts +3 -3
  284. package/dist/components/foundations/Tooltip.js +311 -55
  285. package/dist/components/foundations/TransitionSurface.js +43 -9
  286. package/dist/components/foundations/icons.d.ts +2 -2
  287. package/dist/components/foundations/icons.js +2 -2
  288. package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
  289. package/dist/components/general-purpose/ActionGuide.js +290 -64
  290. package/dist/components/general-purpose/AppFrame.js +72 -14
  291. package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
  292. package/dist/components/general-purpose/AppTopBar.js +349 -60
  293. package/dist/components/general-purpose/BrandLoading.js +37 -9
  294. package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
  295. package/dist/components/general-purpose/CommandPalette.js +271 -0
  296. package/dist/components/general-purpose/Commit.d.ts +1 -1
  297. package/dist/components/general-purpose/Commit.js +937 -167
  298. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  299. package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
  300. package/dist/components/general-purpose/FileTree.d.ts +20 -7
  301. package/dist/components/general-purpose/FileTree.js +1 -1
  302. package/dist/components/general-purpose/ListDetail.d.ts +84 -0
  303. package/dist/components/general-purpose/ListDetail.js +423 -0
  304. package/dist/components/general-purpose/NotificationPrompt.js +20 -11
  305. package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
  306. package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
  307. package/dist/components/general-purpose/PricingFAQ.js +53 -12
  308. package/dist/components/general-purpose/PricingPage.js +376 -139
  309. package/dist/components/general-purpose/PricingPlanCard.js +209 -84
  310. package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
  311. package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
  312. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  313. package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
  314. package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
  315. package/dist/components/general-purpose/ScreenStack.js +427 -0
  316. package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
  317. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  318. package/dist/components/general-purpose/StatusScreen.js +82 -24
  319. package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
  320. package/dist/components/general-purpose/SwipeActions.js +357 -0
  321. package/dist/components/general-purpose/Terminal.d.ts +22 -48
  322. package/dist/components/general-purpose/Terminal.js +320 -174
  323. package/dist/components/general-purpose/TestResults.js +975 -196
  324. package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
  325. package/dist/components/general-purpose/ThemeModeControl.js +66 -23
  326. package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
  327. package/dist/components/general-purpose/WallpaperPicker.js +180 -0
  328. package/dist/components/general-purpose/WebPreview.d.ts +5 -7
  329. package/dist/components/general-purpose/WebPreview.js +770 -203
  330. package/dist/components/nanites/AgentConnection.js +323 -84
  331. package/dist/components/nanites/AgentToolDetail.js +233 -53
  332. package/dist/components/nanites/GithubMotionMark.js +37 -9
  333. package/dist/components/nanites/NaniteScene.js +535 -323
  334. package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
  335. package/dist/container-width-C43ccJ84.js +17 -0
  336. package/dist/context-Ddsp8HgD.js +43 -0
  337. package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
  338. package/dist/copy-button-DWBVJR6D.js +118 -0
  339. package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
  340. package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
  341. package/dist/icons-nLTnB9kd.js +470 -0
  342. package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
  343. package/dist/motion-CGM3i6lX.js +319 -0
  344. package/dist/motion-preferences-6qsDIDvH.js +13 -0
  345. package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
  346. package/dist/progress-ring-BO649JA9.js +79 -0
  347. package/dist/provider-logos-Ceu7iYFx.js +362 -0
  348. package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
  349. package/dist/styles/accessibility.css +26 -0
  350. package/dist/styles/accordion.css +0 -2
  351. package/dist/styles/activity.css +20 -12
  352. package/dist/styles/agent-attention.css +31 -10
  353. package/dist/styles/agent-chat.css +7 -6
  354. package/dist/styles/agent-computer-motion-reduction.css +118 -0
  355. package/dist/styles/agent-computer-motion.css +127 -0
  356. package/dist/styles/agent-computer-phone.css +942 -0
  357. package/dist/styles/agent-computer.css +1764 -0
  358. package/dist/styles/agent-connection.css +5 -5
  359. package/dist/styles/agent-screen-switcher.css +313 -0
  360. package/dist/styles/app-icon.css +34 -30
  361. package/dist/styles/app-top-bar.css +33 -18
  362. package/dist/styles/approval.css +3 -3
  363. package/dist/styles/artifact.css +1 -1
  364. package/dist/styles/attachment-preview.css +2 -4
  365. package/dist/styles/avatar.css +12 -14
  366. package/dist/styles/base-ui-motion.css +84 -18
  367. package/dist/styles/base-ui-motion.test.tsx +305 -0
  368. package/dist/styles/base.css +16 -12
  369. package/dist/styles/brand.test.ts +7 -20
  370. package/dist/styles/browser-control-overlay.css +1 -1
  371. package/dist/styles/browser-live-screen.css +2 -2
  372. package/dist/styles/browser-live-view.css +1 -1
  373. package/dist/styles/browser-replay.css +0 -8
  374. package/dist/styles/browser-run-panel.css +275 -37
  375. package/dist/styles/button.css +52 -9
  376. package/dist/styles/card.css +6 -5
  377. package/dist/styles/chain-of-thought.css +0 -10
  378. package/dist/styles/checkpoint.css +2 -2
  379. package/dist/styles/codex-model-selector.css +2 -2
  380. package/dist/styles/color-contrast.test.ts +18 -1
  381. package/dist/styles/command-palette.css +110 -0
  382. package/dist/styles/composer-link.css +11 -7
  383. package/dist/styles/composition-motion.css +3 -14
  384. package/dist/styles/context.css +2 -2
  385. package/dist/styles/conversation-tab-picker.css +7 -0
  386. package/dist/styles/conversation.css +8 -2
  387. package/dist/styles/dialog.css +2 -2
  388. package/dist/styles/employee-app.css +8 -2
  389. package/dist/styles/employee-chrome.css +4 -4
  390. package/dist/styles/execution-board.css +206 -114
  391. package/dist/styles/execution-result.css +2 -2
  392. package/dist/styles/field.css +187 -4
  393. package/dist/styles/file-tree.css +218 -40
  394. package/dist/styles/first-run-setup.css +914 -187
  395. package/dist/styles/github-motion-mark.css +0 -8
  396. package/dist/styles/index.css +145 -133
  397. package/dist/styles/inline-citation.css +5 -4
  398. package/dist/styles/list-detail.css +57 -0
  399. package/dist/styles/manager-office.css +6 -8
  400. package/dist/styles/manager-work.css +4 -2
  401. package/dist/styles/mcp-plugin-catalog.css +2 -2
  402. package/dist/styles/mcp-server-picker.css +3 -6
  403. package/dist/styles/media-preview-card.css +2 -2
  404. package/dist/styles/menu.css +0 -9
  405. package/dist/styles/menubar.css +18 -6
  406. package/dist/styles/message-scroller.css +47 -9
  407. package/dist/styles/message.css +3 -3
  408. package/dist/styles/model-selector.css +1 -1
  409. package/dist/styles/motion-reduction.css +39 -6
  410. package/dist/styles/pricing-page.css +1 -1
  411. package/dist/styles/prompt-input.css +29 -29
  412. package/dist/styles/queue.css +1 -1
  413. package/dist/styles/recipes.css +212 -28
  414. package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
  415. package/dist/styles/responsive-sidebar-shell.css +40 -43
  416. package/dist/styles/screen-stack.css +123 -0
  417. package/dist/styles/search-field.css +80 -3
  418. package/dist/styles/stepper.css +0 -10
  419. package/dist/styles/streamdown.css +2 -2
  420. package/dist/styles/subagent-run.css +9 -5
  421. package/dist/styles/swipe-actions.css +158 -0
  422. package/dist/styles/tabs.css +80 -23
  423. package/dist/styles/task.css +7 -1
  424. package/dist/styles/terminal.css +66 -78
  425. package/dist/styles/test-results.css +1 -19
  426. package/dist/styles/textarea.css +2 -1
  427. package/dist/styles/theme-mode-control.css +154 -26
  428. package/dist/styles/think-chat-tool-panels.css +1 -1
  429. package/dist/styles/think-execution-workbench.css +0 -9
  430. package/dist/styles/think-full-app.css +7 -1
  431. package/dist/styles/think-schedule.css +81 -54
  432. package/dist/styles/think-thread-picker.css +28 -37
  433. package/dist/styles/toast.css +11 -0
  434. package/dist/styles/toggle-group.css +0 -10
  435. package/dist/styles/toggle.css +13 -0
  436. package/dist/styles/tooltip.css +12 -0
  437. package/dist/styles/transition-surface.css +1 -0
  438. package/dist/styles/wallpaper-picker.css +224 -0
  439. package/dist/styles/web-preview.css +47 -18
  440. package/dist/styles/workspace-automation.css +116 -17
  441. package/dist/styles/workspace-concepts.css +1 -1
  442. package/dist/styles/workspace-desktop.css +124 -0
  443. package/dist/styles/workspace-entity-card.css +3 -1
  444. package/dist/styles/workspace-explorer.css +499 -5
  445. package/dist/utils/brand-marks.d.ts +13 -0
  446. package/dist/utils/brand-marks.js +14 -0
  447. package/dist/utils/desktop-artwork.d.ts +17 -0
  448. package/dist/utils/desktop-artwork.js +18 -0
  449. package/dist/utils/favicon.d.ts +6 -2
  450. package/dist/utils/favicon.js +16 -4
  451. package/dist/utils/structured-code.d.ts +1 -1
  452. package/dist/workspace-assets-DdtnBDU3.js +213 -0
  453. package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
  454. package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
  455. package/dist/workspace-delete-BOY6CMBf.js +183 -0
  456. package/dist/workspace-drag-B6hMXUNt.js +304 -0
  457. package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
  458. package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
  459. package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
  460. package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
  461. package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
  462. package/package.json +9 -3
  463. package/dist/Avatar-t1YRzdwB.d.ts +0 -101
  464. package/dist/CodeBlock-DYQdZUH6.js +0 -318
  465. package/dist/ExecutionResult-2fBkpIGN.js +0 -279
  466. package/dist/FileTree-CDLOD643.js +0 -323
  467. package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
  468. package/dist/SetupChecklist-B-iEta9v.js +0 -78
  469. package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
  470. package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
  471. package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
  472. package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
  473. package/dist/attachment-preview-1CXJvrmb.js +0 -25
  474. package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
  475. package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
  476. package/dist/copy-button-DbR932tF.js +0 -45
  477. package/dist/icons-GoybMAB2.js +0 -141
  478. package/dist/progress-ring-L2bbF0ji.js +0 -40
  479. package/dist/provider-logos-DWYY8wNz.js +0 -99
  480. package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
  481. package/dist/workspace-assets-F3r6XltC.js +0 -107
  482. package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
  483. package/dist/workspace-delete-CQvv1eDE.js +0 -81
  484. package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
@@ -1,13 +1,14 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { J as SearchIcon, f as ChevronDownIcon } from "../../icons-GoybMAB2.js";
3
- import { c as titleCase } from "../../format-CWaZEp5o.js";
2
+ import { m as ChevronDownIcon, tt as SearchIcon } from "../../icons-nLTnB9kd.js";
3
+ import { l as titleCase } from "../../format-DL7f2rqp.js";
4
4
  import { Button } from "../foundations/Button.js";
5
5
  import { Dialog } from "../foundations/Dialog.js";
6
6
  import { ScrollArea } from "../foundations/ScrollArea.js";
7
7
  import { Autocomplete } from "../foundations/Autocomplete.js";
8
8
  import { EmptyState } from "../foundations/EmptyState.js";
9
- import { t as ProviderLogo } from "../../provider-logos-DWYY8wNz.js";
9
+ import { t as ProviderLogo } from "../../provider-logos-Ceu7iYFx.js";
10
10
  import { Separator } from "../foundations/Separator.js";
11
+ import { c } from "react/compiler-runtime";
11
12
  import * as React from "react";
12
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
14
  import { createPortal } from "react-dom";
@@ -198,39 +199,125 @@ function useModelSelectorContext() {
198
199
  * </ModelSelector>
199
200
  * ```
200
201
  */
201
- function ModelSelector({ open, defaultOpen = false, onOpenChange, children, className, ref, ...props }) {
202
+ function ModelSelector(t0) {
203
+ const $ = c(34);
204
+ let children;
205
+ let className;
206
+ let onOpenChange;
207
+ let open;
208
+ let props;
209
+ let ref;
210
+ let t1;
211
+ if ($[0] !== t0) {
212
+ ({open, defaultOpen: t1, onOpenChange, children, className, ref, ...props} = t0);
213
+ $[0] = t0;
214
+ $[1] = children;
215
+ $[2] = className;
216
+ $[3] = onOpenChange;
217
+ $[4] = open;
218
+ $[5] = props;
219
+ $[6] = ref;
220
+ $[7] = t1;
221
+ } else {
222
+ children = $[1];
223
+ className = $[2];
224
+ onOpenChange = $[3];
225
+ open = $[4];
226
+ props = $[5];
227
+ ref = $[6];
228
+ t1 = $[7];
229
+ }
230
+ const defaultOpen = t1 === void 0 ? false : t1;
202
231
  const [query, setQuery] = React.useState("");
203
- const [registeredGroups, setRegisteredGroups] = React.useState(() => /* @__PURE__ */ new Map());
204
- const handleOpenChange = React.useCallback((...args) => {
205
- const [next, eventDetails] = args;
206
- onOpenChange?.(...args);
207
- if (!eventDetails.isCanceled && !next) setQuery("");
208
- }, [onOpenChange]);
209
- const registerGroup = React.useCallback((id, items) => {
210
- setRegisteredGroups((current) => {
211
- if (equalItems(current.get(id), items)) return current;
212
- const next = new Map(current);
213
- next.set(id, items);
214
- return next;
215
- });
216
- return () => {
232
+ const [registeredGroups, setRegisteredGroups] = React.useState(_temp);
233
+ let t2;
234
+ if ($[8] !== onOpenChange) {
235
+ t2 = (...t3) => {
236
+ const args = t3;
237
+ const [next, eventDetails] = args;
238
+ onOpenChange?.(...args);
239
+ if (!eventDetails.isCanceled && !next) setQuery("");
240
+ };
241
+ $[8] = onOpenChange;
242
+ $[9] = t2;
243
+ } else t2 = $[9];
244
+ const handleOpenChange = t2;
245
+ let t3;
246
+ if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
247
+ t3 = (id, items) => {
217
248
  setRegisteredGroups((current) => {
218
- if (!current.has(id)) return current;
219
- const next = new Map(current);
220
- next.delete(id);
221
- return next;
249
+ if (equalItems(current.get(id), items)) return current;
250
+ const next_0 = new Map(current);
251
+ next_0.set(id, items);
252
+ return next_0;
222
253
  });
254
+ return () => {
255
+ setRegisteredGroups((current_0) => {
256
+ if (!current_0.has(id)) return current_0;
257
+ const next_1 = new Map(current_0);
258
+ next_1.delete(id);
259
+ return next_1;
260
+ });
261
+ };
223
262
  };
224
- }, []);
225
- const autocompleteItems = React.useMemo(() => Array.from(registeredGroups.values()).flat(), [registeredGroups]);
226
- const ctxValue = React.useMemo(() => ({
227
- query,
228
- registerGroup,
229
- setQuery
230
- }), [query, registerGroup]);
231
- return /* @__PURE__ */ jsx(ModelSelectorContext.Provider, {
232
- value: ctxValue,
233
- children: /* @__PURE__ */ jsx(Autocomplete.Root, {
263
+ $[10] = t3;
264
+ } else t3 = $[10];
265
+ const registerGroup = t3;
266
+ let t4;
267
+ if ($[11] !== registeredGroups) {
268
+ t4 = Array.from(registeredGroups.values()).flat();
269
+ $[11] = registeredGroups;
270
+ $[12] = t4;
271
+ } else t4 = $[12];
272
+ const autocompleteItems = t4;
273
+ let t5;
274
+ if ($[13] !== query) {
275
+ t5 = {
276
+ query,
277
+ registerGroup,
278
+ setQuery
279
+ };
280
+ $[13] = query;
281
+ $[14] = t5;
282
+ } else t5 = $[14];
283
+ const ctxValue = t5;
284
+ let t6;
285
+ if ($[15] !== className) {
286
+ t6 = cx("model-selector", className);
287
+ $[15] = className;
288
+ $[16] = t6;
289
+ } else t6 = $[16];
290
+ let t7;
291
+ if ($[17] !== children || $[18] !== defaultOpen || $[19] !== handleOpenChange || $[20] !== open) {
292
+ t7 = /* @__PURE__ */ jsx(Dialog.Root, {
293
+ open,
294
+ defaultOpen,
295
+ onOpenChange: handleOpenChange,
296
+ children
297
+ });
298
+ $[17] = children;
299
+ $[18] = defaultOpen;
300
+ $[19] = handleOpenChange;
301
+ $[20] = open;
302
+ $[21] = t7;
303
+ } else t7 = $[21];
304
+ let t8;
305
+ if ($[22] !== props || $[23] !== ref || $[24] !== t6 || $[25] !== t7) {
306
+ t8 = /* @__PURE__ */ jsx("div", {
307
+ ref,
308
+ className: t6,
309
+ ...props,
310
+ children: t7
311
+ });
312
+ $[22] = props;
313
+ $[23] = ref;
314
+ $[24] = t6;
315
+ $[25] = t7;
316
+ $[26] = t8;
317
+ } else t8 = $[26];
318
+ let t9;
319
+ if ($[27] !== autocompleteItems || $[28] !== query || $[29] !== t8) {
320
+ t9 = /* @__PURE__ */ jsx(Autocomplete.Root, {
234
321
  open: true,
235
322
  inline: true,
236
323
  items: autocompleteItems,
@@ -239,254 +326,1032 @@ function ModelSelector({ open, defaultOpen = false, onOpenChange, children, clas
239
326
  onValueChange: setQuery,
240
327
  autoHighlight: "always",
241
328
  keepHighlight: true,
242
- children: /* @__PURE__ */ jsx("div", {
243
- ref,
244
- className: cx("model-selector", className),
245
- ...props,
246
- children: /* @__PURE__ */ jsx(Dialog.Root, {
247
- open,
248
- defaultOpen,
249
- onOpenChange: handleOpenChange,
250
- children
251
- })
252
- })
253
- })
254
- });
255
- }
256
- function CloudflareModelSelector({ models, selectedModelId = null, onSelectModel, disabled = false, placeholder = "Search or paste an AI Gateway model id...", triggerLabel = "Select a model", emptyLabel = "No models found", allowTypedModel = true, onOpenChange, ...props }) {
257
- const options = React.useMemo(() => normalizeCloudflareModelSelectorModels(models), [models]);
258
- const groups = React.useMemo(() => groupCloudflareModelOptions(options), [options]);
259
- const selectedOption = selectedModelId ? options.find((option) => option.id === selectedModelId) ?? {
260
- id: selectedModelId,
261
- provider: getCloudflareModelProvider(selectedModelId),
262
- providerLabel: formatCloudflareModelProvider(getCloudflareModelProvider(selectedModelId)),
263
- source: selectedModelId.startsWith("@") ? "workers-ai" : "ai-gateway",
264
- description: null
265
- } : null;
266
- return /* @__PURE__ */ jsxs(ModelSelector, {
267
- onOpenChange,
268
- ...props,
269
- children: [/* @__PURE__ */ jsx(ModelSelectorTrigger, {
329
+ children: t8
330
+ });
331
+ $[27] = autocompleteItems;
332
+ $[28] = query;
333
+ $[29] = t8;
334
+ $[30] = t9;
335
+ } else t9 = $[30];
336
+ let t10;
337
+ if ($[31] !== ctxValue || $[32] !== t9) {
338
+ t10 = /* @__PURE__ */ jsx(ModelSelectorContext.Provider, {
339
+ value: ctxValue,
340
+ children: t9
341
+ });
342
+ $[31] = ctxValue;
343
+ $[32] = t9;
344
+ $[33] = t10;
345
+ } else t10 = $[33];
346
+ return t10;
347
+ }
348
+ function _temp() {
349
+ return /* @__PURE__ */ new Map();
350
+ }
351
+ function CloudflareModelSelector(t0) {
352
+ const $ = c(52);
353
+ let models;
354
+ let onOpenChange;
355
+ let onSelectModel;
356
+ let props;
357
+ let t1;
358
+ let t2;
359
+ let t3;
360
+ let t4;
361
+ let t5;
362
+ let t6;
363
+ if ($[0] !== t0) {
364
+ ({models, selectedModelId: t1, onSelectModel, disabled: t2, placeholder: t3, triggerLabel: t4, emptyLabel: t5, allowTypedModel: t6, onOpenChange, ...props} = t0);
365
+ $[0] = t0;
366
+ $[1] = models;
367
+ $[2] = onOpenChange;
368
+ $[3] = onSelectModel;
369
+ $[4] = props;
370
+ $[5] = t1;
371
+ $[6] = t2;
372
+ $[7] = t3;
373
+ $[8] = t4;
374
+ $[9] = t5;
375
+ $[10] = t6;
376
+ } else {
377
+ models = $[1];
378
+ onOpenChange = $[2];
379
+ onSelectModel = $[3];
380
+ props = $[4];
381
+ t1 = $[5];
382
+ t2 = $[6];
383
+ t3 = $[7];
384
+ t4 = $[8];
385
+ t5 = $[9];
386
+ t6 = $[10];
387
+ }
388
+ const selectedModelId = t1 === void 0 ? null : t1;
389
+ const disabled = t2 === void 0 ? false : t2;
390
+ const placeholder = t3 === void 0 ? "Search or paste an AI Gateway model id..." : t3;
391
+ const triggerLabel = t4 === void 0 ? "Select a model" : t4;
392
+ const emptyLabel = t5 === void 0 ? "No models found" : t5;
393
+ const allowTypedModel = t6 === void 0 ? true : t6;
394
+ let t7;
395
+ if ($[11] !== models) {
396
+ t7 = normalizeCloudflareModelSelectorModels(models);
397
+ $[11] = models;
398
+ $[12] = t7;
399
+ } else t7 = $[12];
400
+ const options = t7;
401
+ let t8;
402
+ if ($[13] !== options) {
403
+ t8 = groupCloudflareModelOptions(options);
404
+ $[13] = options;
405
+ $[14] = t8;
406
+ } else t8 = $[14];
407
+ const groups = t8;
408
+ let t9;
409
+ if ($[15] !== options || $[16] !== selectedModelId) {
410
+ t9 = selectedModelId ? options.find((option) => option.id === selectedModelId) ?? {
411
+ id: selectedModelId,
412
+ provider: getCloudflareModelProvider(selectedModelId),
413
+ providerLabel: formatCloudflareModelProvider(getCloudflareModelProvider(selectedModelId)),
414
+ source: selectedModelId.startsWith("@") ? "workers-ai" : "ai-gateway",
415
+ description: null
416
+ } : null;
417
+ $[15] = options;
418
+ $[16] = selectedModelId;
419
+ $[17] = t9;
420
+ } else t9 = $[17];
421
+ const selectedOption = t9;
422
+ let t10;
423
+ if ($[18] !== selectedOption || $[19] !== triggerLabel) {
424
+ t10 = selectedOption ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ModelSelectorLogo, { provider: selectedOption.provider }), /* @__PURE__ */ jsx(ModelSelectorName, { children: selectedOption.id })] }) : /* @__PURE__ */ jsx(ModelSelectorName, { children: triggerLabel });
425
+ $[18] = selectedOption;
426
+ $[19] = triggerLabel;
427
+ $[20] = t10;
428
+ } else t10 = $[20];
429
+ let t11;
430
+ if ($[21] !== disabled || $[22] !== t10) {
431
+ t11 = /* @__PURE__ */ jsx(ModelSelectorTrigger, {
270
432
  disabled,
271
- children: selectedOption ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ModelSelectorLogo, { provider: selectedOption.provider }), /* @__PURE__ */ jsx(ModelSelectorName, { children: selectedOption.id })] }) : /* @__PURE__ */ jsx(ModelSelectorName, { children: triggerLabel })
272
- }), /* @__PURE__ */ jsx(ModelSelectorContent, {
433
+ children: t10
434
+ });
435
+ $[21] = disabled;
436
+ $[22] = t10;
437
+ $[23] = t11;
438
+ } else t11 = $[23];
439
+ let t12;
440
+ if ($[24] !== placeholder) {
441
+ t12 = /* @__PURE__ */ jsx(ModelSelectorInput, {
442
+ "aria-label": "Search Cloudflare AI models",
443
+ placeholder
444
+ });
445
+ $[24] = placeholder;
446
+ $[25] = t12;
447
+ } else t12 = $[25];
448
+ let t13;
449
+ if ($[26] !== allowTypedModel || $[27] !== onSelectModel || $[28] !== options || $[29] !== selectedModelId) {
450
+ t13 = /* @__PURE__ */ jsx(CloudflareTypedModelOption, {
451
+ allowTypedModel,
452
+ onSelectModel,
453
+ options,
454
+ selectedModelId
455
+ });
456
+ $[26] = allowTypedModel;
457
+ $[27] = onSelectModel;
458
+ $[28] = options;
459
+ $[29] = selectedModelId;
460
+ $[30] = t13;
461
+ } else t13 = $[30];
462
+ let t14;
463
+ if ($[31] !== groups || $[32] !== onSelectModel || $[33] !== selectedModelId) {
464
+ let t15;
465
+ if ($[35] !== onSelectModel || $[36] !== selectedModelId) {
466
+ t15 = (group) => /* @__PURE__ */ jsx(ModelSelectorGroup, {
467
+ label: group.providerLabel,
468
+ children: group.options.map((option_0) => /* @__PURE__ */ jsxs(ModelSelectorItem, {
469
+ value: option_0.id,
470
+ keywords: `${option_0.provider} ${option_0.providerLabel} ${option_0.source} ${option_0.description ?? ""}`,
471
+ selected: option_0.id === selectedModelId,
472
+ onSelect: onSelectModel,
473
+ children: [
474
+ /* @__PURE__ */ jsx(ModelSelectorLogo, { provider: option_0.provider }),
475
+ /* @__PURE__ */ jsx(ModelSelectorName, { children: option_0.id }),
476
+ /* @__PURE__ */ jsx(ModelSelectorSource, { children: option_0.source === "workers-ai" ? "Workers AI" : "Gateway" })
477
+ ]
478
+ }, option_0.id))
479
+ }, group.providerLabel);
480
+ $[35] = onSelectModel;
481
+ $[36] = selectedModelId;
482
+ $[37] = t15;
483
+ } else t15 = $[37];
484
+ t14 = groups.map(t15);
485
+ $[31] = groups;
486
+ $[32] = onSelectModel;
487
+ $[33] = selectedModelId;
488
+ $[34] = t14;
489
+ } else t14 = $[34];
490
+ let t15;
491
+ if ($[38] !== emptyLabel) {
492
+ t15 = /* @__PURE__ */ jsx(ModelSelectorEmpty, { children: emptyLabel });
493
+ $[38] = emptyLabel;
494
+ $[39] = t15;
495
+ } else t15 = $[39];
496
+ let t16;
497
+ if ($[40] !== t13 || $[41] !== t14 || $[42] !== t15) {
498
+ t16 = /* @__PURE__ */ jsxs(ModelSelectorList, { children: [
499
+ t13,
500
+ t14,
501
+ t15
502
+ ] });
503
+ $[40] = t13;
504
+ $[41] = t14;
505
+ $[42] = t15;
506
+ $[43] = t16;
507
+ } else t16 = $[43];
508
+ let t17;
509
+ if ($[44] !== t12 || $[45] !== t16) {
510
+ t17 = /* @__PURE__ */ jsx(ModelSelectorContent, {
273
511
  title: "Cloudflare model selector",
274
- children: /* @__PURE__ */ jsxs(ModelSelectorDialog, { children: [/* @__PURE__ */ jsx(ModelSelectorInput, {
275
- "aria-label": "Search Cloudflare AI models",
276
- placeholder
277
- }), /* @__PURE__ */ jsxs(ModelSelectorList, { children: [
278
- /* @__PURE__ */ jsx(CloudflareTypedModelOption, {
279
- allowTypedModel,
280
- onSelectModel,
281
- options,
282
- selectedModelId
283
- }),
284
- groups.map((group) => /* @__PURE__ */ jsx(ModelSelectorGroup, {
285
- label: group.providerLabel,
286
- children: group.options.map((option) => /* @__PURE__ */ jsxs(ModelSelectorItem, {
287
- value: option.id,
288
- keywords: `${option.provider} ${option.providerLabel} ${option.source} ${option.description ?? ""}`,
289
- selected: option.id === selectedModelId,
290
- onSelect: onSelectModel,
291
- children: [
292
- /* @__PURE__ */ jsx(ModelSelectorLogo, { provider: option.provider }),
293
- /* @__PURE__ */ jsx(ModelSelectorName, { children: option.id }),
294
- /* @__PURE__ */ jsx(ModelSelectorSource, { children: option.source === "workers-ai" ? "Workers AI" : "Gateway" })
295
- ]
296
- }, option.id))
297
- }, group.providerLabel)),
298
- /* @__PURE__ */ jsx(ModelSelectorEmpty, { children: emptyLabel })
299
- ] })] })
300
- })]
301
- });
302
- }
303
- function CloudflareTypedModelOption({ allowTypedModel, onSelectModel, options, selectedModelId }) {
512
+ children: /* @__PURE__ */ jsxs(ModelSelectorDialog, { children: [t12, t16] })
513
+ });
514
+ $[44] = t12;
515
+ $[45] = t16;
516
+ $[46] = t17;
517
+ } else t17 = $[46];
518
+ let t18;
519
+ if ($[47] !== onOpenChange || $[48] !== props || $[49] !== t11 || $[50] !== t17) {
520
+ t18 = /* @__PURE__ */ jsxs(ModelSelector, {
521
+ onOpenChange,
522
+ ...props,
523
+ children: [t11, t17]
524
+ });
525
+ $[47] = onOpenChange;
526
+ $[48] = props;
527
+ $[49] = t11;
528
+ $[50] = t17;
529
+ $[51] = t18;
530
+ } else t18 = $[51];
531
+ return t18;
532
+ }
533
+ function CloudflareTypedModelOption(t0) {
534
+ const $ = c(30);
535
+ const { allowTypedModel, onSelectModel, options, selectedModelId } = t0;
304
536
  const { query } = useModelSelectorContext();
305
- const typedModelId = query.trim();
306
- if (!allowTypedModel || !isCloudflareRunnableModelId(typedModelId) || typedModelId === selectedModelId || options.some((option) => option.id === typedModelId)) return null;
307
- return /* @__PURE__ */ jsx(ModelSelectorGroup, {
308
- label: "AI Gateway",
309
- children: /* @__PURE__ */ jsxs(ModelSelectorItem, {
310
- value: typedModelId,
311
- onSelect: onSelectModel,
537
+ let T0;
538
+ let T1;
539
+ let T2;
540
+ let t1;
541
+ let t2;
542
+ let t3;
543
+ let t4;
544
+ let t5;
545
+ let typedModelId;
546
+ if ($[0] !== allowTypedModel || $[1] !== onSelectModel || $[2] !== options || $[3] !== query || $[4] !== selectedModelId) {
547
+ t5 = Symbol.for("react.early_return_sentinel");
548
+ bb0: {
549
+ typedModelId = query.trim();
550
+ if (!allowTypedModel || !isCloudflareRunnableModelId(typedModelId) || typedModelId === selectedModelId || options.some((option) => option.id === typedModelId)) {
551
+ t5 = null;
552
+ break bb0;
553
+ }
554
+ T2 = ModelSelectorGroup;
555
+ t4 = "AI Gateway";
556
+ T1 = ModelSelectorItem;
557
+ t2 = typedModelId;
558
+ t3 = onSelectModel;
559
+ T0 = ModelSelectorLogo;
560
+ t1 = getCloudflareModelProvider(typedModelId);
561
+ }
562
+ $[0] = allowTypedModel;
563
+ $[1] = onSelectModel;
564
+ $[2] = options;
565
+ $[3] = query;
566
+ $[4] = selectedModelId;
567
+ $[5] = T0;
568
+ $[6] = T1;
569
+ $[7] = T2;
570
+ $[8] = t1;
571
+ $[9] = t2;
572
+ $[10] = t3;
573
+ $[11] = t4;
574
+ $[12] = t5;
575
+ $[13] = typedModelId;
576
+ } else {
577
+ T0 = $[5];
578
+ T1 = $[6];
579
+ T2 = $[7];
580
+ t1 = $[8];
581
+ t2 = $[9];
582
+ t3 = $[10];
583
+ t4 = $[11];
584
+ t5 = $[12];
585
+ typedModelId = $[13];
586
+ }
587
+ if (t5 !== Symbol.for("react.early_return_sentinel")) return t5;
588
+ let t6;
589
+ if ($[14] !== T0 || $[15] !== t1) {
590
+ t6 = /* @__PURE__ */ jsx(T0, { provider: t1 });
591
+ $[14] = T0;
592
+ $[15] = t1;
593
+ $[16] = t6;
594
+ } else t6 = $[16];
595
+ let t7;
596
+ if ($[17] !== typedModelId) {
597
+ t7 = /* @__PURE__ */ jsx(ModelSelectorName, { children: typedModelId });
598
+ $[17] = typedModelId;
599
+ $[18] = t7;
600
+ } else t7 = $[18];
601
+ let t8;
602
+ if ($[19] === Symbol.for("react.memo_cache_sentinel")) {
603
+ t8 = /* @__PURE__ */ jsx(ModelSelectorSource, { children: "Use" });
604
+ $[19] = t8;
605
+ } else t8 = $[19];
606
+ let t9;
607
+ if ($[20] !== T1 || $[21] !== t2 || $[22] !== t3 || $[23] !== t6 || $[24] !== t7) {
608
+ t9 = /* @__PURE__ */ jsxs(T1, {
609
+ value: t2,
610
+ onSelect: t3,
312
611
  children: [
313
- /* @__PURE__ */ jsx(ModelSelectorLogo, { provider: getCloudflareModelProvider(typedModelId) }),
314
- /* @__PURE__ */ jsx(ModelSelectorName, { children: typedModelId }),
315
- /* @__PURE__ */ jsx(ModelSelectorSource, { children: "Use" })
612
+ t6,
613
+ t7,
614
+ t8
316
615
  ]
317
- })
318
- });
319
- }
320
- function ModelSelectorTrigger({ className, children, ...props }) {
321
- return /* @__PURE__ */ jsx(Dialog.Trigger, { render: /* @__PURE__ */ jsxs(Button, {
322
- variant: "surface",
323
- color: "neutral",
324
- className: cx("model-selector__trigger", className),
325
- ...props,
326
- children: [children, /* @__PURE__ */ jsx("span", {
616
+ });
617
+ $[20] = T1;
618
+ $[21] = t2;
619
+ $[22] = t3;
620
+ $[23] = t6;
621
+ $[24] = t7;
622
+ $[25] = t9;
623
+ } else t9 = $[25];
624
+ let t10;
625
+ if ($[26] !== T2 || $[27] !== t4 || $[28] !== t9) {
626
+ t10 = /* @__PURE__ */ jsx(T2, {
627
+ label: t4,
628
+ children: t9
629
+ });
630
+ $[26] = T2;
631
+ $[27] = t4;
632
+ $[28] = t9;
633
+ $[29] = t10;
634
+ } else t10 = $[29];
635
+ return t10;
636
+ }
637
+ function ModelSelectorTrigger(t0) {
638
+ const $ = c(11);
639
+ let children;
640
+ let className;
641
+ let props;
642
+ if ($[0] !== t0) {
643
+ ({className, children, ...props} = t0);
644
+ $[0] = t0;
645
+ $[1] = children;
646
+ $[2] = className;
647
+ $[3] = props;
648
+ } else {
649
+ children = $[1];
650
+ className = $[2];
651
+ props = $[3];
652
+ }
653
+ let t1;
654
+ if ($[4] !== className) {
655
+ t1 = cx("model-selector__trigger", className);
656
+ $[4] = className;
657
+ $[5] = t1;
658
+ } else t1 = $[5];
659
+ let t2;
660
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
661
+ t2 = /* @__PURE__ */ jsx("span", {
327
662
  className: "model-selector__trigger-chevron",
328
663
  "aria-hidden": "true",
329
664
  children: /* @__PURE__ */ jsx(ChevronDownIcon, {})
330
- })]
331
- }) });
332
- }
333
- function ModelSelectorContent({ children, className, title = "Model Selector", ...props }) {
334
- return /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, {
335
- className: cx("model-selector__popup", className),
336
- ...props,
337
- children: [/* @__PURE__ */ jsx(Dialog.Title, {
665
+ });
666
+ $[6] = t2;
667
+ } else t2 = $[6];
668
+ let t3;
669
+ if ($[7] !== children || $[8] !== props || $[9] !== t1) {
670
+ t3 = /* @__PURE__ */ jsx(Dialog.Trigger, { render: /* @__PURE__ */ jsxs(Button, {
671
+ variant: "surface",
672
+ color: "neutral",
673
+ className: t1,
674
+ ...props,
675
+ children: [children, t2]
676
+ }) });
677
+ $[7] = children;
678
+ $[8] = props;
679
+ $[9] = t1;
680
+ $[10] = t3;
681
+ } else t3 = $[10];
682
+ return t3;
683
+ }
684
+ function ModelSelectorContent(t0) {
685
+ const $ = c(15);
686
+ let children;
687
+ let className;
688
+ let props;
689
+ let t1;
690
+ if ($[0] !== t0) {
691
+ ({children, className, title: t1, ...props} = t0);
692
+ $[0] = t0;
693
+ $[1] = children;
694
+ $[2] = className;
695
+ $[3] = props;
696
+ $[4] = t1;
697
+ } else {
698
+ children = $[1];
699
+ className = $[2];
700
+ props = $[3];
701
+ t1 = $[4];
702
+ }
703
+ const title = t1 === void 0 ? "Model Selector" : t1;
704
+ let t2;
705
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
706
+ t2 = /* @__PURE__ */ jsx(Dialog.Backdrop, {});
707
+ $[5] = t2;
708
+ } else t2 = $[5];
709
+ let t3;
710
+ if ($[6] !== className) {
711
+ t3 = cx("model-selector__popup", className);
712
+ $[6] = className;
713
+ $[7] = t3;
714
+ } else t3 = $[7];
715
+ let t4;
716
+ if ($[8] !== title) {
717
+ t4 = /* @__PURE__ */ jsx(Dialog.Title, {
338
718
  className: "model-selector__title sigvelo-visually-hidden",
339
719
  children: title
340
- }), children]
341
- }) })] });
342
- }
343
- function ModelSelectorDialog({ className, children, ref, ...props }) {
344
- return /* @__PURE__ */ jsx("div", {
345
- ref,
346
- className: cx("model-selector__dialog", className),
347
- ...props,
348
- children
349
- });
350
- }
351
- function ModelSelectorInput({ className, placeholder = "Search models…", ref, ...props }) {
352
- return /* @__PURE__ */ jsxs("div", {
353
- className: "model-selector__search",
354
- children: [/* @__PURE__ */ jsx("span", {
720
+ });
721
+ $[8] = title;
722
+ $[9] = t4;
723
+ } else t4 = $[9];
724
+ let t5;
725
+ if ($[10] !== children || $[11] !== props || $[12] !== t3 || $[13] !== t4) {
726
+ t5 = /* @__PURE__ */ jsxs(Dialog.Portal, { children: [t2, /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, {
727
+ className: t3,
728
+ ...props,
729
+ children: [t4, children]
730
+ }) })] });
731
+ $[10] = children;
732
+ $[11] = props;
733
+ $[12] = t3;
734
+ $[13] = t4;
735
+ $[14] = t5;
736
+ } else t5 = $[14];
737
+ return t5;
738
+ }
739
+ function ModelSelectorDialog(t0) {
740
+ const $ = c(12);
741
+ let children;
742
+ let className;
743
+ let props;
744
+ let ref;
745
+ if ($[0] !== t0) {
746
+ ({className, children, ref, ...props} = t0);
747
+ $[0] = t0;
748
+ $[1] = children;
749
+ $[2] = className;
750
+ $[3] = props;
751
+ $[4] = ref;
752
+ } else {
753
+ children = $[1];
754
+ className = $[2];
755
+ props = $[3];
756
+ ref = $[4];
757
+ }
758
+ let t1;
759
+ if ($[5] !== className) {
760
+ t1 = cx("model-selector__dialog", className);
761
+ $[5] = className;
762
+ $[6] = t1;
763
+ } else t1 = $[6];
764
+ let t2;
765
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
766
+ t2 = /* @__PURE__ */ jsx("div", {
767
+ ref,
768
+ className: t1,
769
+ ...props,
770
+ children
771
+ });
772
+ $[7] = children;
773
+ $[8] = props;
774
+ $[9] = ref;
775
+ $[10] = t1;
776
+ $[11] = t2;
777
+ } else t2 = $[11];
778
+ return t2;
779
+ }
780
+ function ModelSelectorInput(t0) {
781
+ const $ = c(13);
782
+ let className;
783
+ let props;
784
+ let ref;
785
+ let t1;
786
+ if ($[0] !== t0) {
787
+ ({className, placeholder: t1, ref, ...props} = t0);
788
+ $[0] = t0;
789
+ $[1] = className;
790
+ $[2] = props;
791
+ $[3] = ref;
792
+ $[4] = t1;
793
+ } else {
794
+ className = $[1];
795
+ props = $[2];
796
+ ref = $[3];
797
+ t1 = $[4];
798
+ }
799
+ const placeholder = t1 === void 0 ? "Search models…" : t1;
800
+ let t2;
801
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
802
+ t2 = /* @__PURE__ */ jsx("span", {
355
803
  className: "model-selector__search-icon",
356
804
  "aria-hidden": "true",
357
805
  children: /* @__PURE__ */ jsx(SearchIcon, {})
358
- }), /* @__PURE__ */ jsx(Autocomplete.Input, {
359
- ref,
360
- type: "search",
361
- placeholder,
362
- className: cx("model-selector__input", className),
363
- autoFocus: true,
364
- "aria-expanded": "true",
365
- ...props
366
- })]
367
- });
806
+ });
807
+ $[5] = t2;
808
+ } else t2 = $[5];
809
+ let t3;
810
+ if ($[6] !== className) {
811
+ t3 = cx("model-selector__input", className);
812
+ $[6] = className;
813
+ $[7] = t3;
814
+ } else t3 = $[7];
815
+ let t4;
816
+ if ($[8] !== placeholder || $[9] !== props || $[10] !== ref || $[11] !== t3) {
817
+ t4 = /* @__PURE__ */ jsxs("div", {
818
+ className: "model-selector__search",
819
+ children: [t2, /* @__PURE__ */ jsx(Autocomplete.Input, {
820
+ ref,
821
+ type: "search",
822
+ placeholder,
823
+ className: t3,
824
+ autoFocus: true,
825
+ "aria-expanded": "true",
826
+ ...props
827
+ })]
828
+ });
829
+ $[8] = placeholder;
830
+ $[9] = props;
831
+ $[10] = ref;
832
+ $[11] = t3;
833
+ $[12] = t4;
834
+ } else t4 = $[12];
835
+ return t4;
368
836
  }
369
- function ModelSelectorList({ className, children, ref, ...props }) {
837
+ function ModelSelectorList(t0) {
838
+ const $ = c(20);
839
+ let children;
840
+ let className;
841
+ let props;
842
+ let ref;
843
+ if ($[0] !== t0) {
844
+ ({className, children, ref, ...props} = t0);
845
+ $[0] = t0;
846
+ $[1] = children;
847
+ $[2] = className;
848
+ $[3] = props;
849
+ $[4] = ref;
850
+ } else {
851
+ children = $[1];
852
+ className = $[2];
853
+ props = $[3];
854
+ ref = $[4];
855
+ }
370
856
  const [contentElement, setContentElement] = React.useState(null);
371
- return /* @__PURE__ */ jsxs(ScrollArea.Root, {
372
- className: "model-selector__list",
373
- children: [/* @__PURE__ */ jsx(ScrollArea.Viewport, {
857
+ let t1;
858
+ if ($[5] !== className) {
859
+ t1 = cx("model-selector__list-viewport", className);
860
+ $[5] = className;
861
+ $[6] = t1;
862
+ } else t1 = $[6];
863
+ let t2;
864
+ if ($[7] !== children) {
865
+ t2 = /* @__PURE__ */ jsx(Autocomplete.List, {
866
+ className: "model-selector__options",
867
+ children
868
+ });
869
+ $[7] = children;
870
+ $[8] = t2;
871
+ } else t2 = $[8];
872
+ let t3;
873
+ if ($[9] !== contentElement || $[10] !== t2) {
874
+ t3 = /* @__PURE__ */ jsx(ScrollArea.Content, {
875
+ ref: setContentElement,
876
+ className: "model-selector__list-content",
877
+ children: /* @__PURE__ */ jsx(ModelSelectorEmptyContainerContext.Provider, {
878
+ value: contentElement,
879
+ children: t2
880
+ })
881
+ });
882
+ $[9] = contentElement;
883
+ $[10] = t2;
884
+ $[11] = t3;
885
+ } else t3 = $[11];
886
+ let t4;
887
+ if ($[12] !== props || $[13] !== ref || $[14] !== t1 || $[15] !== t3) {
888
+ t4 = /* @__PURE__ */ jsx(ScrollArea.Viewport, {
374
889
  ref,
375
- className: cx("model-selector__list-viewport", className),
890
+ className: t1,
376
891
  ...props,
377
- children: /* @__PURE__ */ jsx(ScrollArea.Content, {
378
- ref: setContentElement,
379
- className: "model-selector__list-content",
380
- children: /* @__PURE__ */ jsx(ModelSelectorEmptyContainerContext.Provider, {
381
- value: contentElement,
382
- children: /* @__PURE__ */ jsx(Autocomplete.List, {
383
- className: "model-selector__options",
384
- children
385
- })
386
- })
387
- })
388
- }), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
892
+ children: t3
893
+ });
894
+ $[12] = props;
895
+ $[13] = ref;
896
+ $[14] = t1;
897
+ $[15] = t3;
898
+ $[16] = t4;
899
+ } else t4 = $[16];
900
+ let t5;
901
+ if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
902
+ t5 = /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
389
903
  orientation: "vertical",
390
904
  children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {})
391
- })]
392
- });
905
+ });
906
+ $[17] = t5;
907
+ } else t5 = $[17];
908
+ let t6;
909
+ if ($[18] !== t4) {
910
+ t6 = /* @__PURE__ */ jsxs(ScrollArea.Root, {
911
+ className: "model-selector__list",
912
+ children: [t4, t5]
913
+ });
914
+ $[18] = t4;
915
+ $[19] = t6;
916
+ } else t6 = $[19];
917
+ return t6;
393
918
  }
394
- function ModelSelectorGroup({ className, label, children, ref, ...props }) {
919
+ function ModelSelectorGroup(t0) {
920
+ const $ = c(28);
921
+ let children;
922
+ let className;
923
+ let label;
924
+ let props;
925
+ let ref;
926
+ if ($[0] !== t0) {
927
+ ({className, label, children, ref, ...props} = t0);
928
+ $[0] = t0;
929
+ $[1] = children;
930
+ $[2] = className;
931
+ $[3] = label;
932
+ $[4] = props;
933
+ $[5] = ref;
934
+ } else {
935
+ children = $[1];
936
+ className = $[2];
937
+ label = $[3];
938
+ props = $[4];
939
+ ref = $[5];
940
+ }
395
941
  const { query, registerGroup } = useModelSelectorContext();
396
942
  const groupId = React.useId();
397
- const childArray = React.useMemo(() => React.Children.toArray(children).filter((child) => React.isValidElement(child)), [children]);
398
- const items = React.useMemo(() => childArray.map((child) => modelSelectorItemSearchValue(child.props)), [childArray]);
399
- React.useEffect(() => registerGroup(groupId, items), [
400
- groupId,
401
- items,
402
- registerGroup
403
- ]);
404
- const q = query.trim().toLowerCase();
405
- const filtered = q ? childArray.filter((child) => {
406
- const value = String(child.props.value ?? "").toLowerCase();
407
- const keywords = String(child.props.keywords ?? "").toLowerCase();
408
- return value.includes(q) || keywords.includes(q);
409
- }) : childArray;
943
+ let t1;
944
+ if ($[6] !== children) {
945
+ t1 = React.Children.toArray(children).filter(_temp2);
946
+ $[6] = children;
947
+ $[7] = t1;
948
+ } else t1 = $[7];
949
+ const childArray = t1;
950
+ let t2;
951
+ if ($[8] !== childArray) {
952
+ t2 = childArray.map(_temp3);
953
+ $[8] = childArray;
954
+ $[9] = t2;
955
+ } else t2 = $[9];
956
+ const items = t2;
957
+ let t3;
958
+ let t4;
959
+ if ($[10] !== groupId || $[11] !== items || $[12] !== registerGroup) {
960
+ t3 = () => registerGroup(groupId, items);
961
+ t4 = [
962
+ groupId,
963
+ items,
964
+ registerGroup
965
+ ];
966
+ $[10] = groupId;
967
+ $[11] = items;
968
+ $[12] = registerGroup;
969
+ $[13] = t3;
970
+ $[14] = t4;
971
+ } else {
972
+ t3 = $[13];
973
+ t4 = $[14];
974
+ }
975
+ React.useEffect(t3, t4);
976
+ let t5;
977
+ if ($[15] !== childArray || $[16] !== query) {
978
+ const q = query.trim().toLowerCase();
979
+ t5 = q ? childArray.filter((child_1) => {
980
+ const value = String(child_1.props.value ?? "").toLowerCase();
981
+ const keywords = String(child_1.props.keywords ?? "").toLowerCase();
982
+ return value.includes(q) || keywords.includes(q);
983
+ }) : childArray;
984
+ $[15] = childArray;
985
+ $[16] = query;
986
+ $[17] = t5;
987
+ } else t5 = $[17];
988
+ const filtered = t5;
410
989
  if (filtered.length === 0) return null;
411
- return /* @__PURE__ */ jsxs(Autocomplete.Group, {
412
- ref,
413
- className: cx("model-selector__group", className),
414
- ...props,
415
- children: [/* @__PURE__ */ jsx(Autocomplete.GroupLabel, {
990
+ let t6;
991
+ if ($[18] !== className) {
992
+ t6 = cx("model-selector__group", className);
993
+ $[18] = className;
994
+ $[19] = t6;
995
+ } else t6 = $[19];
996
+ let t7;
997
+ if ($[20] !== label) {
998
+ t7 = /* @__PURE__ */ jsx(Autocomplete.GroupLabel, {
416
999
  className: "model-selector__group-label",
417
1000
  children: label
418
- }), filtered]
419
- });
1001
+ });
1002
+ $[20] = label;
1003
+ $[21] = t7;
1004
+ } else t7 = $[21];
1005
+ let t8;
1006
+ if ($[22] !== filtered || $[23] !== props || $[24] !== ref || $[25] !== t6 || $[26] !== t7) {
1007
+ t8 = /* @__PURE__ */ jsxs(Autocomplete.Group, {
1008
+ ref,
1009
+ className: t6,
1010
+ ...props,
1011
+ children: [t7, filtered]
1012
+ });
1013
+ $[22] = filtered;
1014
+ $[23] = props;
1015
+ $[24] = ref;
1016
+ $[25] = t6;
1017
+ $[26] = t7;
1018
+ $[27] = t8;
1019
+ } else t8 = $[27];
1020
+ return t8;
420
1021
  }
421
- function ModelSelectorItem({ className, value, keywords, selected, onSelect, children, onClick, ref, disabled, ...props }) {
422
- return /* @__PURE__ */ jsx(Autocomplete.Item, {
423
- value: modelSelectorItemSearchValue({
1022
+ function _temp3(child_0) {
1023
+ return modelSelectorItemSearchValue(child_0.props);
1024
+ }
1025
+ function _temp2(child) {
1026
+ return React.isValidElement(child);
1027
+ }
1028
+ function ModelSelectorItem(t0) {
1029
+ const $ = c(36);
1030
+ let children;
1031
+ let className;
1032
+ let disabled;
1033
+ let keywords;
1034
+ let onClick;
1035
+ let onSelect;
1036
+ let props;
1037
+ let ref;
1038
+ let selected;
1039
+ let value;
1040
+ if ($[0] !== t0) {
1041
+ ({className, value, keywords, selected, onSelect, children, onClick, ref, disabled, ...props} = t0);
1042
+ $[0] = t0;
1043
+ $[1] = children;
1044
+ $[2] = className;
1045
+ $[3] = disabled;
1046
+ $[4] = keywords;
1047
+ $[5] = onClick;
1048
+ $[6] = onSelect;
1049
+ $[7] = props;
1050
+ $[8] = ref;
1051
+ $[9] = selected;
1052
+ $[10] = value;
1053
+ } else {
1054
+ children = $[1];
1055
+ className = $[2];
1056
+ disabled = $[3];
1057
+ keywords = $[4];
1058
+ onClick = $[5];
1059
+ onSelect = $[6];
1060
+ props = $[7];
1061
+ ref = $[8];
1062
+ selected = $[9];
1063
+ value = $[10];
1064
+ }
1065
+ let t1;
1066
+ if ($[11] !== keywords || $[12] !== value) {
1067
+ t1 = modelSelectorItemSearchValue({
424
1068
  keywords,
425
1069
  value
426
- }),
427
- disabled,
428
- nativeButton: true,
429
- "aria-selected": selected ? "true" : "false",
430
- "data-selected": selected ? "" : void 0,
431
- tabIndex: -1,
432
- onClick: () => onSelect?.(value),
433
- render: /* @__PURE__ */ jsx(Dialog.Close, {
1070
+ });
1071
+ $[11] = keywords;
1072
+ $[12] = value;
1073
+ $[13] = t1;
1074
+ } else t1 = $[13];
1075
+ const t2 = selected ? "true" : "false";
1076
+ const t3 = selected ? "" : void 0;
1077
+ let t4;
1078
+ if ($[14] !== onSelect || $[15] !== value) {
1079
+ t4 = () => onSelect?.(value);
1080
+ $[14] = onSelect;
1081
+ $[15] = value;
1082
+ $[16] = t4;
1083
+ } else t4 = $[16];
1084
+ let t5;
1085
+ if ($[17] !== className) {
1086
+ t5 = cx("model-selector__item", className);
1087
+ $[17] = className;
1088
+ $[18] = t5;
1089
+ } else t5 = $[18];
1090
+ let t6;
1091
+ if ($[19] !== children || $[20] !== disabled || $[21] !== onClick || $[22] !== props || $[23] !== ref || $[24] !== t5) {
1092
+ t6 = /* @__PURE__ */ jsx(Button, {
1093
+ ref,
1094
+ variant: "ghost",
1095
+ color: "neutral",
434
1096
  disabled,
435
- render: /* @__PURE__ */ jsx(Button, {
436
- ref,
437
- variant: "ghost",
438
- color: "neutral",
439
- disabled,
440
- className: cx("model-selector__item", className),
441
- onClick,
442
- ...props,
443
- children
444
- })
445
- })
446
- });
1097
+ className: t5,
1098
+ onClick,
1099
+ ...props,
1100
+ children
1101
+ });
1102
+ $[19] = children;
1103
+ $[20] = disabled;
1104
+ $[21] = onClick;
1105
+ $[22] = props;
1106
+ $[23] = ref;
1107
+ $[24] = t5;
1108
+ $[25] = t6;
1109
+ } else t6 = $[25];
1110
+ let t7;
1111
+ if ($[26] !== disabled || $[27] !== t6) {
1112
+ t7 = /* @__PURE__ */ jsx(Dialog.Close, {
1113
+ disabled,
1114
+ render: t6
1115
+ });
1116
+ $[26] = disabled;
1117
+ $[27] = t6;
1118
+ $[28] = t7;
1119
+ } else t7 = $[28];
1120
+ let t8;
1121
+ if ($[29] !== disabled || $[30] !== t1 || $[31] !== t2 || $[32] !== t3 || $[33] !== t4 || $[34] !== t7) {
1122
+ t8 = /* @__PURE__ */ jsx(Autocomplete.Item, {
1123
+ value: t1,
1124
+ disabled,
1125
+ nativeButton: true,
1126
+ "aria-selected": t2,
1127
+ "data-selected": t3,
1128
+ tabIndex: -1,
1129
+ onClick: t4,
1130
+ render: t7
1131
+ });
1132
+ $[29] = disabled;
1133
+ $[30] = t1;
1134
+ $[31] = t2;
1135
+ $[32] = t3;
1136
+ $[33] = t4;
1137
+ $[34] = t7;
1138
+ $[35] = t8;
1139
+ } else t8 = $[35];
1140
+ return t8;
447
1141
  }
448
- function ModelSelectorEmpty({ className, children = "No models found", ref, ...props }) {
1142
+ function ModelSelectorEmpty(t0) {
1143
+ const $ = c(15);
1144
+ let className;
1145
+ let props;
1146
+ let ref;
1147
+ let t1;
1148
+ if ($[0] !== t0) {
1149
+ ({className, children: t1, ref, ...props} = t0);
1150
+ $[0] = t0;
1151
+ $[1] = className;
1152
+ $[2] = props;
1153
+ $[3] = ref;
1154
+ $[4] = t1;
1155
+ } else {
1156
+ className = $[1];
1157
+ props = $[2];
1158
+ ref = $[3];
1159
+ t1 = $[4];
1160
+ }
1161
+ const children = t1 === void 0 ? "No models found" : t1;
449
1162
  const container = React.useContext(ModelSelectorEmptyContainerContext);
450
- const empty = /* @__PURE__ */ jsx(Autocomplete.Empty, { children: /* @__PURE__ */ jsx(EmptyState, {
451
- ref,
452
- className: cx("model-selector__empty", className),
453
- ...props,
454
- children
455
- }) });
1163
+ let t2;
1164
+ if ($[5] !== className) {
1165
+ t2 = cx("model-selector__empty", className);
1166
+ $[5] = className;
1167
+ $[6] = t2;
1168
+ } else t2 = $[6];
1169
+ let t3;
1170
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t2) {
1171
+ t3 = /* @__PURE__ */ jsx(Autocomplete.Empty, { children: /* @__PURE__ */ jsx(EmptyState, {
1172
+ ref,
1173
+ className: t2,
1174
+ ...props,
1175
+ children
1176
+ }) });
1177
+ $[7] = children;
1178
+ $[8] = props;
1179
+ $[9] = ref;
1180
+ $[10] = t2;
1181
+ $[11] = t3;
1182
+ } else t3 = $[11];
1183
+ const empty = t3;
456
1184
  if (container === null) return null;
457
- return container ? createPortal(empty, container) : empty;
458
- }
459
- function ModelSelectorSeparator({ className, ref, ...props }) {
460
- return /* @__PURE__ */ jsx(Separator, {
461
- ref,
462
- className: cx("model-selector__separator", className),
463
- ...props
464
- });
465
- }
466
- function ModelSelectorLogo({ className, provider, ...props }) {
467
- return /* @__PURE__ */ jsx("span", {
468
- className: cx("model-selector__logo", className),
469
- children: /* @__PURE__ */ jsx(ProviderLogo, {
1185
+ let t4;
1186
+ if ($[12] !== container || $[13] !== empty) {
1187
+ t4 = container ? createPortal(empty, container) : empty;
1188
+ $[12] = container;
1189
+ $[13] = empty;
1190
+ $[14] = t4;
1191
+ } else t4 = $[14];
1192
+ return t4;
1193
+ }
1194
+ function ModelSelectorSeparator(t0) {
1195
+ const $ = c(10);
1196
+ let className;
1197
+ let props;
1198
+ let ref;
1199
+ if ($[0] !== t0) {
1200
+ ({className, ref, ...props} = t0);
1201
+ $[0] = t0;
1202
+ $[1] = className;
1203
+ $[2] = props;
1204
+ $[3] = ref;
1205
+ } else {
1206
+ className = $[1];
1207
+ props = $[2];
1208
+ ref = $[3];
1209
+ }
1210
+ let t1;
1211
+ if ($[4] !== className) {
1212
+ t1 = cx("model-selector__separator", className);
1213
+ $[4] = className;
1214
+ $[5] = t1;
1215
+ } else t1 = $[5];
1216
+ let t2;
1217
+ if ($[6] !== props || $[7] !== ref || $[8] !== t1) {
1218
+ t2 = /* @__PURE__ */ jsx(Separator, {
1219
+ ref,
1220
+ className: t1,
1221
+ ...props
1222
+ });
1223
+ $[6] = props;
1224
+ $[7] = ref;
1225
+ $[8] = t1;
1226
+ $[9] = t2;
1227
+ } else t2 = $[9];
1228
+ return t2;
1229
+ }
1230
+ function ModelSelectorLogo(t0) {
1231
+ const $ = c(12);
1232
+ let className;
1233
+ let props;
1234
+ let provider;
1235
+ if ($[0] !== t0) {
1236
+ ({className, provider, ...props} = t0);
1237
+ $[0] = t0;
1238
+ $[1] = className;
1239
+ $[2] = props;
1240
+ $[3] = provider;
1241
+ } else {
1242
+ className = $[1];
1243
+ props = $[2];
1244
+ provider = $[3];
1245
+ }
1246
+ let t1;
1247
+ if ($[4] !== className) {
1248
+ t1 = cx("model-selector__logo", className);
1249
+ $[4] = className;
1250
+ $[5] = t1;
1251
+ } else t1 = $[5];
1252
+ let t2;
1253
+ if ($[6] !== props || $[7] !== provider) {
1254
+ t2 = /* @__PURE__ */ jsx(ProviderLogo, {
470
1255
  provider,
471
1256
  ...props
472
- })
473
- });
474
- }
475
- function ModelSelectorLogoGroup({ className, children, ref, ...props }) {
476
- return /* @__PURE__ */ jsx("div", {
477
- ref,
478
- className: cx("model-selector__logo-group", className),
479
- ...props,
480
- children
481
- });
482
- }
483
- function ModelSelectorName({ className, children, ref, ...props }) {
484
- return /* @__PURE__ */ jsx("span", {
485
- ref,
486
- className: cx("model-selector__name", "sigvelo-truncate", "sigvelo-truncate-grow", className),
487
- ...props,
488
- children
489
- });
1257
+ });
1258
+ $[6] = props;
1259
+ $[7] = provider;
1260
+ $[8] = t2;
1261
+ } else t2 = $[8];
1262
+ let t3;
1263
+ if ($[9] !== t1 || $[10] !== t2) {
1264
+ t3 = /* @__PURE__ */ jsx("span", {
1265
+ className: t1,
1266
+ children: t2
1267
+ });
1268
+ $[9] = t1;
1269
+ $[10] = t2;
1270
+ $[11] = t3;
1271
+ } else t3 = $[11];
1272
+ return t3;
1273
+ }
1274
+ function ModelSelectorLogoGroup(t0) {
1275
+ const $ = c(12);
1276
+ let children;
1277
+ let className;
1278
+ let props;
1279
+ let ref;
1280
+ if ($[0] !== t0) {
1281
+ ({className, children, ref, ...props} = t0);
1282
+ $[0] = t0;
1283
+ $[1] = children;
1284
+ $[2] = className;
1285
+ $[3] = props;
1286
+ $[4] = ref;
1287
+ } else {
1288
+ children = $[1];
1289
+ className = $[2];
1290
+ props = $[3];
1291
+ ref = $[4];
1292
+ }
1293
+ let t1;
1294
+ if ($[5] !== className) {
1295
+ t1 = cx("model-selector__logo-group", className);
1296
+ $[5] = className;
1297
+ $[6] = t1;
1298
+ } else t1 = $[6];
1299
+ let t2;
1300
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
1301
+ t2 = /* @__PURE__ */ jsx("div", {
1302
+ ref,
1303
+ className: t1,
1304
+ ...props,
1305
+ children
1306
+ });
1307
+ $[7] = children;
1308
+ $[8] = props;
1309
+ $[9] = ref;
1310
+ $[10] = t1;
1311
+ $[11] = t2;
1312
+ } else t2 = $[11];
1313
+ return t2;
1314
+ }
1315
+ function ModelSelectorName(t0) {
1316
+ const $ = c(12);
1317
+ let children;
1318
+ let className;
1319
+ let props;
1320
+ let ref;
1321
+ if ($[0] !== t0) {
1322
+ ({className, children, ref, ...props} = t0);
1323
+ $[0] = t0;
1324
+ $[1] = children;
1325
+ $[2] = className;
1326
+ $[3] = props;
1327
+ $[4] = ref;
1328
+ } else {
1329
+ children = $[1];
1330
+ className = $[2];
1331
+ props = $[3];
1332
+ ref = $[4];
1333
+ }
1334
+ let t1;
1335
+ if ($[5] !== className) {
1336
+ t1 = cx("model-selector__name", "sigvelo-truncate", "sigvelo-truncate-grow", className);
1337
+ $[5] = className;
1338
+ $[6] = t1;
1339
+ } else t1 = $[6];
1340
+ let t2;
1341
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
1342
+ t2 = /* @__PURE__ */ jsx("span", {
1343
+ ref,
1344
+ className: t1,
1345
+ ...props,
1346
+ children
1347
+ });
1348
+ $[7] = children;
1349
+ $[8] = props;
1350
+ $[9] = ref;
1351
+ $[10] = t1;
1352
+ $[11] = t2;
1353
+ } else t2 = $[11];
1354
+ return t2;
490
1355
  }
491
1356
  /**
492
1357
  * Where a model comes from — "Workers AI", "Gateway" — shown at the end of its
@@ -494,13 +1359,46 @@ function ModelSelectorName({ className, children, ref, ...props }) {
494
1359
  * "Workers AI" to a screen reader as keyboard input and offered a shortcut
495
1360
  * that does not exist.
496
1361
  */
497
- function ModelSelectorSource({ className, children, ref, ...props }) {
498
- return /* @__PURE__ */ jsx("span", {
499
- ref,
500
- className: cx("model-selector__source", className),
501
- ...props,
502
- children
503
- });
1362
+ function ModelSelectorSource(t0) {
1363
+ const $ = c(12);
1364
+ let children;
1365
+ let className;
1366
+ let props;
1367
+ let ref;
1368
+ if ($[0] !== t0) {
1369
+ ({className, children, ref, ...props} = t0);
1370
+ $[0] = t0;
1371
+ $[1] = children;
1372
+ $[2] = className;
1373
+ $[3] = props;
1374
+ $[4] = ref;
1375
+ } else {
1376
+ children = $[1];
1377
+ className = $[2];
1378
+ props = $[3];
1379
+ ref = $[4];
1380
+ }
1381
+ let t1;
1382
+ if ($[5] !== className) {
1383
+ t1 = cx("model-selector__source", className);
1384
+ $[5] = className;
1385
+ $[6] = t1;
1386
+ } else t1 = $[6];
1387
+ let t2;
1388
+ if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
1389
+ t2 = /* @__PURE__ */ jsx("span", {
1390
+ ref,
1391
+ className: t1,
1392
+ ...props,
1393
+ children
1394
+ });
1395
+ $[7] = children;
1396
+ $[8] = props;
1397
+ $[9] = ref;
1398
+ $[10] = t1;
1399
+ $[11] = t2;
1400
+ } else t2 = $[11];
1401
+ return t2;
504
1402
  }
505
1403
  //#endregion
506
1404
  export { CloudflareModelSelector, ModelSelector, ModelSelectorContent, ModelSelectorDialog, ModelSelectorEmpty, ModelSelectorGroup, ModelSelectorInput, ModelSelectorItem, ModelSelectorList, ModelSelectorLogo, ModelSelectorLogoGroup, ModelSelectorName, ModelSelectorSeparator, ModelSelectorSource, ModelSelectorTrigger, formatCloudflareModelProvider, getCloudflareModelProvider, isCloudflareRunnableModelId, listCloudflareModelSelectorOptions, normalizeCloudflareModelSelectorModels, readCloudflareModelId };