@mcp-b/react-components 0.62.0 → 0.63.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 (158) hide show
  1. package/dist/{CodeBlock-CNvOYR0Q.js → CodeBlock-DYQdZUH6.js} +1 -1
  2. package/dist/{EmployeeChrome-D5x4EM9y.d.ts → EmployeeChrome--PWdtg4B.d.ts} +10 -4
  3. package/dist/{ExecutionResult-DmC21cll.js → ExecutionResult-2fBkpIGN.js} +2 -2
  4. package/dist/{FileTree-H31EVRv_.js → FileTree-CDLOD643.js} +1 -1
  5. package/dist/{ManagerOffice-B3X3iZV9.js → ManagerOffice-CvVSHnOM.js} +6 -6
  6. package/dist/{SetupChecklist-Wo4akaSG.js → SetupChecklist-B-iEta9v.js} +2 -2
  7. package/dist/{ThinkSchedule-CSuDGrZ9.d.ts → ThinkSchedule-DPoOYWTQ.d.ts} +1 -1
  8. package/dist/{WorkspaceAutomation-CMvICi-p.d.ts → WorkspaceAutomation-yDZorXla.d.ts} +1 -1
  9. package/dist/{WorkspaceFileView-BWI_AJlV.js → WorkspaceFileView-DwIkehSM.js} +7 -7
  10. package/dist/{chatgpt-sign-in-button-DNchrZHs.js → chatgpt-sign-in-button-D8AT6x4c.js} +1 -1
  11. package/dist/{codex-model-catalog-18yO7dln.d.ts → codex-model-catalog-CFEGgUAj.d.ts} +8 -8
  12. package/dist/components/agents-sdk/AIProviderDialog.d.ts +53 -0
  13. package/dist/components/agents-sdk/AIProviderDialog.js +369 -0
  14. package/dist/components/agents-sdk/AgentActivity.js +1 -1
  15. package/dist/components/agents-sdk/AgentChat.js +8 -8
  16. package/dist/components/agents-sdk/AgentEvent.js +3 -3
  17. package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
  18. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  19. package/dist/components/agents-sdk/BrowserReplay.js +2 -2
  20. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  21. package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
  22. package/dist/components/agents-sdk/EmployeeApp.js +2 -2
  23. package/dist/components/agents-sdk/EmployeeChat.js +5 -5
  24. package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
  25. package/dist/components/agents-sdk/EmployeeChrome.js +113 -70
  26. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
  27. package/dist/components/agents-sdk/EmployeeSchedules.js +3 -3
  28. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +1 -1
  29. package/dist/components/agents-sdk/EmployeeStartScreen.js +4 -4
  30. package/dist/components/agents-sdk/ExecutionBoard.js +4 -4
  31. package/dist/components/agents-sdk/ManagerAccountActions.js +3 -3
  32. package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
  33. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  34. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  35. package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
  36. package/dist/components/agents-sdk/McpConnectionRequest.js +3 -3
  37. package/dist/components/agents-sdk/McpConnectorForm.js +2 -2
  38. package/dist/components/agents-sdk/McpPluginCatalog.js +6 -6
  39. package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
  40. package/dist/components/agents-sdk/McpServerPicker.js +3 -3
  41. package/dist/components/agents-sdk/ModelSelector.d.ts +1 -1
  42. package/dist/components/agents-sdk/ModelSelector.js +6 -6
  43. package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
  44. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  45. package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
  46. package/dist/components/agents-sdk/SubagentRunLanes.js +2 -2
  47. package/dist/components/agents-sdk/SubagentRunPanel.js +4 -4
  48. package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
  49. package/dist/components/agents-sdk/ThinkChat.d.ts +3 -1
  50. package/dist/components/agents-sdk/ThinkChat.js +5 -2
  51. package/dist/components/agents-sdk/ThinkChatActivity.js +3 -3
  52. package/dist/components/agents-sdk/ThinkChatToolPanels.js +6 -6
  53. package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
  54. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  55. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +5 -5
  56. package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +3 -1
  57. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +3 -2
  58. package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
  59. package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
  60. package/dist/components/agents-sdk/ThinkScheduleActions.js +3 -3
  61. package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
  62. package/dist/components/agents-sdk/ThinkScheduleBrowser.js +4 -4
  63. package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
  64. package/dist/components/agents-sdk/ThinkScheduleDetail.js +2 -2
  65. package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +1 -1
  66. package/dist/components/agents-sdk/ThinkScheduleForm.js +11 -11
  67. package/dist/components/agents-sdk/ThinkThreadPicker.js +4 -4
  68. package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
  69. package/dist/components/agents-sdk/Workspace.js +1 -1
  70. package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
  71. package/dist/components/agents-sdk/WorkspaceAutomation.js +11 -11
  72. package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
  73. package/dist/components/agents-sdk/WorkspaceAutomationTable.js +8 -8
  74. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  75. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +3 -3
  76. package/dist/components/agents-sdk/WorkspaceExplorer.js +4 -4
  77. package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
  78. package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
  79. package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
  80. package/dist/components/agents-sdk/WorkspacePerson.d.ts +1 -1
  81. package/dist/components/agents-sdk/WorkspacePerson.js +3 -3
  82. package/dist/components/agents-sdk/WorkspaceProject.d.ts +1 -1
  83. package/dist/components/agents-sdk/WorkspaceProject.js +4 -4
  84. package/dist/components/ai-sdk/Activity.js +1 -1
  85. package/dist/components/ai-sdk/AgentChatMessageEditor.js +1 -1
  86. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  87. package/dist/components/ai-sdk/AgentChatTurnError.d.ts +6 -1
  88. package/dist/components/ai-sdk/AgentChatTurnError.js +6 -4
  89. package/dist/components/ai-sdk/Approval.js +2 -2
  90. package/dist/components/ai-sdk/Artifact.js +1 -1
  91. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  92. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  93. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  94. package/dist/components/ai-sdk/ComposerLink.js +1 -1
  95. package/dist/components/ai-sdk/ConnectedAppCards.js +2 -2
  96. package/dist/components/ai-sdk/Context.js +1 -1
  97. package/dist/components/ai-sdk/Conversation.js +1 -1
  98. package/dist/components/ai-sdk/Goal.js +2 -2
  99. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  100. package/dist/components/ai-sdk/Message.js +3 -3
  101. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  102. package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
  103. package/dist/components/ai-sdk/Plan.js +1 -1
  104. package/dist/components/ai-sdk/PromptInput.js +7 -7
  105. package/dist/components/ai-sdk/Queue.js +2 -2
  106. package/dist/components/ai-sdk/Reasoning.js +1 -1
  107. package/dist/components/ai-sdk/Sources.js +1 -1
  108. package/dist/components/ai-sdk/Task.js +1 -1
  109. package/dist/components/ai-sdk/ToolInvocation.js +1 -1
  110. package/dist/components/extension/ChatGptSignInScreen.js +1 -1
  111. package/dist/components/extension/CodexModelSelector.d.ts +1 -1
  112. package/dist/components/extension/CodexModelSelector.js +3 -3
  113. package/dist/components/extension/ConversationTabPicker.js +2 -2
  114. package/dist/components/extension/FirstRunSetup.d.ts +2 -2
  115. package/dist/components/extension/FirstRunSetup.js +7 -7
  116. package/dist/components/foundations/Checkbox.js +2 -2
  117. package/dist/components/foundations/Collapsible.js +1 -1
  118. package/dist/components/foundations/ContextMenu.js +1 -1
  119. package/dist/components/foundations/Menubar.js +1 -1
  120. package/dist/components/foundations/SearchField.js +1 -1
  121. package/dist/components/foundations/Select.js +1 -1
  122. package/dist/components/foundations/Stepper.js +1 -1
  123. package/dist/components/foundations/Toast.js +1 -1
  124. package/dist/components/foundations/ToggleGroup.d.ts +1 -1
  125. package/dist/components/foundations/ToggleGroup.js +1 -1
  126. package/dist/components/foundations/icons.js +1 -1
  127. package/dist/components/general-purpose/Commit.js +2 -2
  128. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  129. package/dist/components/general-purpose/FileTree.js +1 -1
  130. package/dist/components/general-purpose/PricingBillingToggle.js +1 -1
  131. package/dist/components/general-purpose/PricingPlanCard.js +2 -2
  132. package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
  133. package/dist/components/general-purpose/ResponsiveSidebarShell.js +3 -3
  134. package/dist/components/general-purpose/SettingsFormDialog.d.ts +10 -2
  135. package/dist/components/general-purpose/SettingsFormDialog.js +18 -12
  136. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  137. package/dist/components/general-purpose/Terminal.js +2 -2
  138. package/dist/components/general-purpose/TestResults.js +1 -1
  139. package/dist/components/general-purpose/ThemeModeControl.js +2 -2
  140. package/dist/components/general-purpose/WebPreview.js +1 -1
  141. package/dist/components/nanites/AgentConnection.js +2 -2
  142. package/dist/components/nanites/AgentToolDetail.js +5 -5
  143. package/dist/{connected-app-drafts-B9i69bkj.js → connected-app-drafts-DtA2fBK5.js} +5 -5
  144. package/dist/{copy-button-z20VEXRF.js → copy-button-DbR932tF.js} +1 -1
  145. package/dist/styles/ai-provider-dialog.css +46 -0
  146. package/dist/styles/employee-chrome.css +12 -3
  147. package/dist/styles/index.css +1 -0
  148. package/dist/utils/codex-model-catalog.d.ts +1 -1
  149. package/dist/utils/model-provider-error.d.ts +17 -0
  150. package/dist/utils/model-provider-error.js +76 -0
  151. package/dist/{workspace-assets-Dq5toMQc.js → workspace-assets-F3r6XltC.js} +1 -1
  152. package/dist/{workspace-concept-panel-KpMmznB_.d.ts → workspace-concept-panel-C_oYhPSx.d.ts} +1 -1
  153. package/dist/{workspace-concept-panel-CxZfmFkP.js → workspace-concept-panel-D8oEvR0n.js} +2 -2
  154. package/dist/{workspace-delete-CoB0l6ZU.js → workspace-delete-CQvv1eDE.js} +1 -1
  155. package/package.json +2 -2
  156. package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +0 -31
  157. package/dist/components/agents-sdk/ModelEndpointDialog.js +0 -141
  158. package/dist/{icons-Yp99gmMC.js → icons-GoybMAB2.js} +1 -1
@@ -1,6 +1,6 @@
1
1
  import { t as cx } from "./class-names-BiMDVpUo.js";
2
- import { t as CopyButton } from "./copy-button-z20VEXRF.js";
3
2
  import { Select } from "./components/foundations/Select.js";
3
+ import { t as CopyButton } from "./copy-button-DbR932tF.js";
4
4
  import * as React from "react";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { createHighlighter } from "shiki";
@@ -88,6 +88,7 @@ interface EmployeeWorkbenchItem {
88
88
  description: string;
89
89
  icon: React.ReactNode;
90
90
  }
91
+ type EmployeeDisplayMode = "sidepanel" | "tab";
91
92
  interface EmployeeMenuProps {
92
93
  /** Overrides the default Files/Plugins navigation for shared host shells. */
93
94
  navigation?: readonly EmployeeWorkbenchItem[];
@@ -96,10 +97,15 @@ interface EmployeeMenuProps {
96
97
  renderLink: EmployeeRenderLink;
97
98
  /** Identity assignment and bind/unbind operations behind the account dialog. */
98
99
  identity?: EmployeeIdentity;
99
- /** Opens the host's model-selection surface. */
100
- onModel?: () => void;
100
+ /** Opens the host's AI provider settings. */
101
+ onAIProvider?: () => void;
101
102
  /** Requests host sign-out; session teardown stays host-owned. */
102
103
  onSignOut?: () => void;
104
+ /** Browser-owned preference for opening Rook from its extension toolbar icon. */
105
+ display?: {
106
+ mode: EmployeeDisplayMode;
107
+ setMode: (mode: EmployeeDisplayMode) => void;
108
+ };
103
109
  companion?: EmployeeCompanion;
104
110
  localAgents?: EmployeeLocalAgents;
105
111
  passkeys?: EmployeePasskeyVault;
@@ -109,7 +115,7 @@ interface EmployeeMenuProps {
109
115
  workbenchNavigation?: readonly EmployeeWorkbenchItem[];
110
116
  }
111
117
  /** Employee settings are host-owned state; the menu stores only dialog visibility. */
112
- declare function EmployeeMenu({ renderLink, view, identity, onModel, onSignOut, companion, localAgents, passkeys, follow, workbenchNavigation, navigation }: EmployeeMenuProps): React.JSX.Element;
118
+ declare function EmployeeMenu({ renderLink, view, identity, onAIProvider, onSignOut, display, companion, localAgents, passkeys, follow, workbenchNavigation, navigation }: EmployeeMenuProps): React.JSX.Element;
113
119
  interface EmployeeShellProps<Thread extends ThinkThreadItem = ThinkThreadItem> extends EmployeeMenuProps {
114
120
  view: EmployeeView;
115
121
  /** Replaces the default Back to chat link in every layout. */
@@ -162,4 +168,4 @@ declare const EmployeeChrome: {
162
168
  Welcome: typeof EmployeeWelcome;
163
169
  };
164
170
  //#endregion
165
- export { EmployeeFollow as a, EmployeeMenuProps as c, EmployeeRenderLink as d, EmployeeShellProps as f, EmployeeWorkbenchItem as h, EmployeeDestination as i, EmployeeModelSetup as l, EmployeeView as m, EmployeeChrome as n, EmployeeIdentity as o, EmployeeStatus as p, EmployeeCompanion as r, EmployeeLocalAgents as s, EmployeeBrand as t, EmployeePasskeyVault as u };
171
+ export { EmployeeDisplayMode as a, EmployeeLocalAgents as c, EmployeePasskeyVault as d, EmployeeRenderLink as f, EmployeeWorkbenchItem as g, EmployeeView as h, EmployeeDestination as i, EmployeeMenuProps as l, EmployeeStatus as m, EmployeeChrome as n, EmployeeFollow as o, EmployeeShellProps as p, EmployeeCompanion as r, EmployeeIdentity as s, EmployeeBrand as t, EmployeeModelSetup as u };
@@ -1,8 +1,8 @@
1
- import { p as ChevronRightIcon } from "./icons-Yp99gmMC.js";
1
+ import { p as ChevronRightIcon } from "./icons-GoybMAB2.js";
2
2
  import { IconButton } from "./components/foundations/IconButton.js";
3
3
  import { DescriptionList } from "./components/foundations/DescriptionList.js";
4
- import { a as httpUrl, i as WorkspaceComposerLink, r as OutboundLink } from "./workspace-assets-Dq5toMQc.js";
5
4
  import { a as executionResultSummary, i as executionResultPath, o as readExecutionResult, r as executionResultFiles } from "./execution-result-DAuW4VWv.js";
5
+ import { a as httpUrl, i as WorkspaceComposerLink, r as OutboundLink } from "./workspace-assets-F3r6XltC.js";
6
6
  import { t as WorkspaceFileLink } from "./WorkspaceLink-BeFAXpbI.js";
7
7
  import { useId, useState } from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "./class-names-BiMDVpUo.js";
2
- import { C as FileIcon, T as FolderOpenIcon, p as ChevronRightIcon, w as FolderIcon } from "./icons-Yp99gmMC.js";
2
+ import { C as FileIcon, T as FolderOpenIcon, p as ChevronRightIcon, w as FolderIcon } from "./icons-GoybMAB2.js";
3
3
  import { t as NavigationLink } from "./navigation-link-kqMa81v5.js";
4
4
  import * as React from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,16 +1,16 @@
1
1
  import { findCatalogMcpServerCard, getMcpServerIconSrc, providerCardForHref } from "./utils/mcp-server-catalog.js";
2
2
  import { t as cx } from "./class-names-BiMDVpUo.js";
3
- import { Collapsible } from "./components/foundations/Collapsible.js";
4
- import { B as PauseIcon, C as FileIcon, E as InfoIcon, L as MonitorIcon, P as MessageSquareIcon, Z as SpinnerIcon, _ as DotIcon, d as CheckIcon, f as ChevronDownIcon, k as LinkIcon, lt as XIcon, p as ChevronRightIcon, st as WarningIcon, u as CalendarIcon, w as FolderIcon } from "./icons-Yp99gmMC.js";
3
+ import { B as PauseIcon, C as FileIcon, E as InfoIcon, L as MonitorIcon, P as MessageSquareIcon, Z as SpinnerIcon, _ as DotIcon, d as CheckIcon, f as ChevronDownIcon, k as LinkIcon, lt as XIcon, p as ChevronRightIcon, st as WarningIcon, u as CalendarIcon, w as FolderIcon } from "./icons-GoybMAB2.js";
5
4
  import { Button } from "./components/foundations/Button.js";
6
- import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./components/ai-sdk/AgentAttention.js";
5
+ import { Collapsible } from "./components/foundations/Collapsible.js";
7
6
  import { Tooltip } from "./components/foundations/Tooltip.js";
8
- import { Avatar } from "./components/foundations/Avatar.js";
9
- import { AppIcon } from "./components/foundations/AppIcon.js";
10
- import { getThinkExecutionRunStatus } from "./components/agents-sdk/ThinkExecutionRun.js";
11
7
  import { EmptyState } from "./components/foundations/EmptyState.js";
12
8
  import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
9
+ import { Avatar } from "./components/foundations/Avatar.js";
10
+ import { AppIcon } from "./components/foundations/AppIcon.js";
13
11
  import { LinkButton } from "./components/foundations/LinkButton.js";
12
+ import { getThinkExecutionRunStatus } from "./components/agents-sdk/ThinkExecutionRun.js";
13
+ import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./components/ai-sdk/AgentAttention.js";
14
14
  import * as React from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
16
  import { useRender } from "@base-ui/react/use-render";
@@ -1,7 +1,7 @@
1
1
  import { n as mergeBaseClassName } from "./class-names-BiMDVpUo.js";
2
- import { W as PlusIcon, d as CheckIcon, f as ChevronDownIcon, st as WarningIcon } from "./icons-Yp99gmMC.js";
3
- import { Menu } from "./components/foundations/Menu.js";
2
+ import { W as PlusIcon, d as CheckIcon, f as ChevronDownIcon, st as WarningIcon } from "./icons-GoybMAB2.js";
4
3
  import { IconButton } from "./components/foundations/IconButton.js";
4
+ import { Menu } from "./components/foundations/Menu.js";
5
5
  import * as React from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/components/_internal/menu-disclosure-group.tsx
@@ -1,5 +1,5 @@
1
1
  import { t as ThinkExecutionRun } from "./ThinkExecutionRun-DJ2TFDmZ.js";
2
- import { i as WorkspaceAutomationInvocation } from "./WorkspaceAutomation-CMvICi-p.js";
2
+ import { i as WorkspaceAutomationInvocation } from "./WorkspaceAutomation-yDZorXla.js";
3
3
  import { ThinkScheduledTask, ThinkScheduledTaskSchedule } from "@cloudflare/think";
4
4
  import { Schedule } from "agents";
5
5
  //#region src/components/agents-sdk/ThinkSchedule.d.ts
@@ -1,5 +1,5 @@
1
1
  import { t as WorkspaceConceptQueryOptions } from "./WorkspaceConcept-BjrgGE1w.js";
2
- import { n as WorkspaceConceptPanelProps, t as WorkspaceConceptFileProps } from "./workspace-concept-panel-KpMmznB_.js";
2
+ import { n as WorkspaceConceptPanelProps, t as WorkspaceConceptFileProps } from "./workspace-concept-panel-C_oYhPSx.js";
3
3
  import { a as ExecutionTrace, r as ExecutionGraph } from "./ExecutionBoard-DvPGdn4F.js";
4
4
  import * as React from "react";
5
5
  import { JSONValue } from "ai";
@@ -1,13 +1,13 @@
1
- import { M as MaximizeIcon, d as CheckIcon, m as CodeIcon, r as ArrowLeftIcon, st as WarningIcon, v as DownloadIcon, x as EyeIcon } from "./icons-Yp99gmMC.js";
1
+ import { M as MaximizeIcon, d as CheckIcon, m as CodeIcon, r as ArrowLeftIcon, st as WarningIcon, v as DownloadIcon, x as EyeIcon } from "./icons-GoybMAB2.js";
2
2
  import { i as formatClock } from "./format-CWaZEp5o.js";
3
- import { t as CopyButton } from "./copy-button-z20VEXRF.js";
4
- import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-CNvOYR0Q.js";
5
- import { i as useWorkspaceNavigationContext } from "./WorkspaceLink-BeFAXpbI.js";
6
- import { useWorkspaceNavigationRestoration } from "./components/agents-sdk/WorkspaceNavigationRestoration.js";
7
- import { t as ExecutionResult } from "./ExecutionResult-DmC21cll.js";
8
- import { t as ContentAppBarOutletContext } from "./app-bar-outlet-CNfNzY4Y.js";
3
+ import { t as CopyButton } from "./copy-button-DbR932tF.js";
9
4
  import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
5
+ import { t as ContentAppBarOutletContext } from "./app-bar-outlet-CNfNzY4Y.js";
6
+ import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-DYQdZUH6.js";
10
7
  import { inferWorkspaceLanguage, inferWorkspaceMedia, isWorkspaceMarkdownPath, isWorkspaceSkillPath, parseWorkspaceSkill } from "./components/agents-sdk/WorkspaceFile.js";
8
+ import { i as useWorkspaceNavigationContext } from "./WorkspaceLink-BeFAXpbI.js";
9
+ import { useWorkspaceNavigationRestoration } from "./components/agents-sdk/WorkspaceNavigationRestoration.js";
10
+ import { t as ExecutionResult } from "./ExecutionResult-2fBkpIGN.js";
11
11
  import { n as WorkspaceMessageResponse, r as createWorkspaceRehypePlugins } from "./WorkspaceMessageResponse-BZ-_I18b.js";
12
12
  import { WorkspaceHeader } from "./components/agents-sdk/WorkspaceHeader.js";
13
13
  import * as React from "react";
@@ -1,4 +1,4 @@
1
- import { Z as SpinnerIcon, d as CheckIcon } from "./icons-Yp99gmMC.js";
1
+ import { Z as SpinnerIcon, d as CheckIcon } from "./icons-GoybMAB2.js";
2
2
  import { Button } from "./components/foundations/Button.js";
3
3
  import { t as ProviderLogo } from "./provider-logos-DWYY8wNz.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -76,7 +76,7 @@ declare const CHECKED_IN_CODEX_MODELS: readonly [{
76
76
  readonly upgradeInfo: null;
77
77
  readonly availabilityNux: null;
78
78
  readonly hidden: boolean;
79
- readonly inputModalities: ("image" | "text")[];
79
+ readonly inputModalities: ("text" | "image")[];
80
80
  readonly supportsPersonality: boolean;
81
81
  readonly additionalSpeedTiers: never[];
82
82
  readonly serviceTiers: never[];
@@ -93,7 +93,7 @@ declare const CHECKED_IN_CODEX_MODELS: readonly [{
93
93
  readonly upgradeInfo: null;
94
94
  readonly availabilityNux: null;
95
95
  readonly hidden: boolean;
96
- readonly inputModalities: ("image" | "text")[];
96
+ readonly inputModalities: ("text" | "image")[];
97
97
  readonly supportsPersonality: boolean;
98
98
  readonly additionalSpeedTiers: never[];
99
99
  readonly serviceTiers: never[];
@@ -110,7 +110,7 @@ declare const CHECKED_IN_CODEX_MODELS: readonly [{
110
110
  readonly upgradeInfo: null;
111
111
  readonly availabilityNux: null;
112
112
  readonly hidden: boolean;
113
- readonly inputModalities: ("image" | "text")[];
113
+ readonly inputModalities: ("text" | "image")[];
114
114
  readonly supportsPersonality: boolean;
115
115
  readonly additionalSpeedTiers: never[];
116
116
  readonly serviceTiers: never[];
@@ -127,7 +127,7 @@ declare const CHECKED_IN_CODEX_MODELS: readonly [{
127
127
  readonly upgradeInfo: null;
128
128
  readonly availabilityNux: null;
129
129
  readonly hidden: boolean;
130
- readonly inputModalities: ("image" | "text")[];
130
+ readonly inputModalities: ("text" | "image")[];
131
131
  readonly supportsPersonality: boolean;
132
132
  readonly additionalSpeedTiers: never[];
133
133
  readonly serviceTiers: never[];
@@ -144,7 +144,7 @@ declare const CHECKED_IN_CODEX_MODELS: readonly [{
144
144
  readonly upgradeInfo: null;
145
145
  readonly availabilityNux: null;
146
146
  readonly hidden: boolean;
147
- readonly inputModalities: ("image" | "text")[];
147
+ readonly inputModalities: ("text" | "image")[];
148
148
  readonly supportsPersonality: boolean;
149
149
  readonly additionalSpeedTiers: never[];
150
150
  readonly serviceTiers: never[];
@@ -161,7 +161,7 @@ declare const CHECKED_IN_CODEX_MODELS: readonly [{
161
161
  readonly upgradeInfo: null;
162
162
  readonly availabilityNux: null;
163
163
  readonly hidden: boolean;
164
- readonly inputModalities: ("image" | "text")[];
164
+ readonly inputModalities: ("text" | "image")[];
165
165
  readonly supportsPersonality: boolean;
166
166
  readonly additionalSpeedTiers: never[];
167
167
  readonly serviceTiers: never[];
@@ -178,7 +178,7 @@ declare const CHECKED_IN_CODEX_MODELS: readonly [{
178
178
  readonly upgradeInfo: null;
179
179
  readonly availabilityNux: null;
180
180
  readonly hidden: boolean;
181
- readonly inputModalities: ("image" | "text")[];
181
+ readonly inputModalities: ("text" | "image")[];
182
182
  readonly supportsPersonality: boolean;
183
183
  readonly additionalSpeedTiers: never[];
184
184
  readonly serviceTiers: never[];
@@ -195,7 +195,7 @@ declare const CHECKED_IN_CODEX_MODELS: readonly [{
195
195
  readonly upgradeInfo: null;
196
196
  readonly availabilityNux: null;
197
197
  readonly hidden: boolean;
198
- readonly inputModalities: ("image" | "text")[];
198
+ readonly inputModalities: ("text" | "image")[];
199
199
  readonly supportsPersonality: boolean;
200
200
  readonly additionalSpeedTiers: never[];
201
201
  readonly serviceTiers: never[];
@@ -0,0 +1,53 @@
1
+ import { ModelProviderUsageLimit } from "../../utils/model-provider-error.js";
2
+ import { SettingsFormDialogProps } from "../general-purpose/SettingsFormDialog.js";
3
+ //#region src/components/agents-sdk/AIProviderDialog.d.ts
4
+ declare const MODEL_APIS: readonly [{
5
+ readonly value: "chat-completions";
6
+ readonly label: "Chat Completions";
7
+ }, {
8
+ readonly value: "responses";
9
+ readonly label: "Responses";
10
+ }];
11
+ type EndpointSettings = {
12
+ api: (typeof MODEL_APIS)[number]["value"];
13
+ baseUrl: string;
14
+ modelId: string;
15
+ acceptsImages: boolean;
16
+ acceptsPdfs: boolean;
17
+ error?: string;
18
+ };
19
+ /** Safe display identity supplied by the host’s ChatGPT OAuth session. */
20
+ export interface ChatGptAccount {
21
+ id: string;
22
+ email?: string;
23
+ name?: string;
24
+ }
25
+ export type AIProviderSource = ({
26
+ kind: "chatgpt";
27
+ status: "signed-in" | "signed-out" | "error";
28
+ error?: string;
29
+ account?: ChatGptAccount;
30
+ } | ({
31
+ kind: "custom" | "local";
32
+ } & EndpointSettings)) & {
33
+ usageLimit?: ModelProviderUsageLimit;
34
+ };
35
+ export interface AIProviderDialogProps {
36
+ /** Whether the existing provider settings destination is open. */
37
+ open: boolean;
38
+ /** Update host-owned visibility on dismissal or a successful change. */
39
+ onOpenChange: SettingsFormDialogProps["onOpenChange"];
40
+ /** The effective provider and its connection state; credentials stay host-owned. */
41
+ source: AIProviderSource;
42
+ /** Validate and persist custom or local endpoint form values. */
43
+ onSubmit: SettingsFormDialogProps["onFormSubmit"];
44
+ /** Open ChatGPT authorization; reject to keep the failure visible in this dialog. */
45
+ onSignIn?: () => Promise<void>;
46
+ /** Disconnect only ChatGPT credentials while preserving local chats and files. */
47
+ onSignOut?: () => Promise<void>;
48
+ /** An organization-selected endpoint can be inspected but not changed here. */
49
+ managed?: boolean;
50
+ }
51
+ /** One provider settings flow for ChatGPT accounts, remote endpoints, and local models. */
52
+ export declare function AIProviderDialog({ open, onOpenChange, source, onSubmit, onSignIn, onSignOut, managed: managedSetting }: AIProviderDialogProps): import("react").JSX.Element;
53
+ //#endregion
@@ -0,0 +1,369 @@
1
+ import { E as InfoIcon, d as CheckIcon, st as WarningIcon } from "../../icons-GoybMAB2.js";
2
+ import { Checkbox } from "../foundations/Checkbox.js";
3
+ import { Select } from "../foundations/Select.js";
4
+ import { Field } from "../foundations/Field.js";
5
+ import { SettingsFormDialog } from "../general-purpose/SettingsFormDialog.js";
6
+ import { useEffect, useReducer, useState } from "react";
7
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
+ //#region src/components/agents-sdk/AIProviderDialog.tsx
9
+ const MODEL_APIS = [{
10
+ value: "chat-completions",
11
+ label: "Chat Completions"
12
+ }, {
13
+ value: "responses",
14
+ label: "Responses"
15
+ }];
16
+ const PROVIDERS = [
17
+ {
18
+ value: "chatgpt",
19
+ label: "ChatGPT"
20
+ },
21
+ {
22
+ value: "custom",
23
+ label: "Custom endpoint"
24
+ },
25
+ {
26
+ value: "local",
27
+ label: "Local model"
28
+ }
29
+ ];
30
+ /** 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";
33
+ const [choice, setChoice] = useState(null);
34
+ const action = useProviderAction();
35
+ const selected = choice ?? source.kind;
36
+ const configured = source.kind !== "chatgpt" && selected === source.kind ? source : void 0;
37
+ 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({
64
+ source,
65
+ selected,
66
+ managed,
67
+ onSubmit,
68
+ onSignIn
69
+ }, args)),
70
+ children: [/* @__PURE__ */ jsx(ProviderPicker, {
71
+ value: selected,
72
+ disabled: managed || action.busy,
73
+ onChange: setChoice
74
+ }), /* @__PURE__ */ jsx(ProviderSettings, {
75
+ source,
76
+ selected,
77
+ managed,
78
+ configured,
79
+ usageLimit,
80
+ canSignIn: Boolean(onSignIn)
81
+ })]
82
+ });
83
+ }
84
+ function providerFooter({ source, selected, managed, onSignIn, onSignOut }) {
85
+ if (managed) return {
86
+ cancelLabel: null,
87
+ submitLabel: "Done"
88
+ };
89
+ if (selected !== "chatgpt") return {
90
+ cancelLabel: "Cancel",
91
+ submitLabel: source.kind === selected ? "Save changes" : "Use this provider"
92
+ };
93
+ if (source.kind === "chatgpt" && source.status === "signed-in") return {
94
+ cancelLabel: null,
95
+ submitLabel: "Done",
96
+ onSignOut
97
+ };
98
+ if (!onSignIn) return {
99
+ cancelLabel: null,
100
+ submitLabel: "Done"
101
+ };
102
+ return {
103
+ cancelLabel: "Cancel",
104
+ submitLabel: "Sign in"
105
+ };
106
+ }
107
+ async function submitProvider({ source, selected, managed, onSubmit, onSignIn }, args) {
108
+ if (managed) return;
109
+ if (selected !== "chatgpt") {
110
+ await Promise.resolve(onSubmit(...args));
111
+ return;
112
+ }
113
+ if (source.kind === "chatgpt" && source.status === "signed-in") return;
114
+ if (!onSignIn) return;
115
+ await onSignIn();
116
+ }
117
+ function useProviderAction() {
118
+ const [busy, setBusy] = useState(false);
119
+ const run = async (callback) => {
120
+ setBusy(true);
121
+ try {
122
+ await callback();
123
+ } finally {
124
+ setBusy(false);
125
+ }
126
+ };
127
+ return {
128
+ busy,
129
+ run
130
+ };
131
+ }
132
+ function ProviderPicker({ value, disabled, onChange }) {
133
+ return /* @__PURE__ */ jsxs(Field.Root, {
134
+ name: "provider",
135
+ children: [/* @__PURE__ */ jsx(Field.Label, {
136
+ className: "sigvelo-visually-hidden",
137
+ 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
+ });
154
+ }
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, {
175
+ configured,
176
+ local: selected === "local"
177
+ }, selected)
178
+ ] });
179
+ }
180
+ const CHATGPT_STATUS = {
181
+ "signed-in": "Signed in",
182
+ "signed-out": "Not signed in",
183
+ error: "Session expired"
184
+ };
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
+ })] });
193
+ }
194
+ const usageResetFormat = new Intl.DateTimeFormat(void 0, {
195
+ month: "short",
196
+ day: "numeric",
197
+ hour: "numeric",
198
+ minute: "2-digit"
199
+ });
200
+ function UsageLimitStatus({ limit, managed = false }) {
201
+ 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", {
207
+ dateTime: reset.toISOString(),
208
+ children: usageResetFormat.format(reset)
209
+ })] }) : /* @__PURE__ */ jsx("p", { children: "Reset time unavailable" }), managed ? /* @__PURE__ */ jsx("p", { children: "Managed by your organization" }) : null]
210
+ });
211
+ }
212
+ function useActiveUsageLimit(limit, open) {
213
+ const [tick, update] = useReducer((value) => value + 1, 0);
214
+ 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;
227
+ }
228
+ const providerNoticeIcons = {
229
+ success: CheckIcon,
230
+ info: InfoIcon,
231
+ warning: WarningIcon
232
+ };
233
+ function ProviderNotice({ title, tone = "info", children }) {
234
+ 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, {
240
+ className: "ai-provider-notice__icon",
241
+ "aria-hidden": "true"
242
+ }), /* @__PURE__ */ jsxs("div", {
243
+ 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
+ });
253
+ }
254
+ function EndpointFields({ configured, local }) {
255
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
256
+ /* @__PURE__ */ jsxs(Field.Root, {
257
+ name: "baseUrl",
258
+ 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
+ })
275
+ ]
276
+ }),
277
+ /* @__PURE__ */ jsxs(Field.Root, {
278
+ name: "api",
279
+ 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." })
290
+ ]
291
+ }),
292
+ /* @__PURE__ */ jsxs(Field.Root, {
293
+ name: "modelId",
294
+ 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
+ })
306
+ ]
307
+ }),
308
+ /* @__PURE__ */ jsxs(Field.Root, {
309
+ 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, {
316
+ name: "autoCapabilities",
317
+ 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, {
335
+ name: "acceptsImages",
336
+ 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, {
354
+ name: "acceptsPdfs",
355
+ 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
+ ] });
367
+ }
368
+ //#endregion
369
+ export { AIProviderDialog };
@@ -1,6 +1,6 @@
1
1
  import { canRequestFavicon } from "../../utils/favicon.js";
2
2
  import { markSrcForHref } from "../../utils/mcp-server-catalog.js";
3
- import { C as FileIcon, E as InfoIcon, J as SearchIcon, L as MonitorIcon, V as PencilIcon, ct as WrenchIcon, k as LinkIcon, rt as TerminalIcon, st as WarningIcon } from "../../icons-Yp99gmMC.js";
3
+ import { C as FileIcon, E as InfoIcon, J as SearchIcon, L as MonitorIcon, V as PencilIcon, ct as WrenchIcon, k as LinkIcon, rt as TerminalIcon, st as WarningIcon } from "../../icons-GoybMAB2.js";
4
4
  import * as React from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  //#region src/components/agents-sdk/AgentActivity.tsx