@mcp-b/react-components 0.51.1 → 0.52.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 (198) hide show
  1. package/dist/{CodeBlock-BMK6CW9D.js → CodeBlock-Bl-q7wMc.js} +2 -1
  2. package/dist/{CodeBlock--r6GS8YV.d.ts → CodeBlock-DJ99TQWy.d.ts} +1 -1
  3. package/dist/EmployeeChrome-C8eTGJWn.d.ts +231 -0
  4. package/dist/{FileTree-okaLnS5j.js → FileTree-DruTQ-oa.js} +1 -1
  5. package/dist/{IconButton-ByiyjkYE.d.ts → IconButton-CAlFVb2L.d.ts} +3 -0
  6. package/dist/{ManagerOffice-5pEFpoV3.js → ManagerOffice-CMJ7laGe.js} +17 -12
  7. package/dist/McpPluginCatalog-DNeHDrts.d.ts +94 -0
  8. package/dist/{Message-DyaTBiV7.d.ts → Message-COsMPZSC.d.ts} +2 -2
  9. package/dist/{ResponsiveSidebarShell-CAmmtQTR.d.ts → ResponsiveSidebarShell-BUBQa_IV.d.ts} +3 -1
  10. package/dist/{SetupChecklist-O6qmgwz4.js → SetupChecklist-BiWQkKEq.js} +6 -5
  11. package/dist/{ThinkThreadPicker-yetGX_s5.d.ts → ThinkThreadPicker-DX0lL-P7.d.ts} +3 -0
  12. package/dist/{Workspace-HzGrWDX3.d.ts → Workspace-mzMZSdts.d.ts} +1 -1
  13. package/dist/WorkspaceConceptPanel-97ZyVpZI.js +20 -0
  14. package/dist/{WorkspaceFile-Bouauobc.d.ts → WorkspaceFile-19WP0EU1.d.ts} +1 -1
  15. package/dist/{WorkspaceFileView-ncZuIWhC.js → WorkspaceFileView-DXgTljKV.js} +3 -2
  16. package/dist/{WorkspaceMessageResponse-8lOSAbw_.d.ts → WorkspaceMessageResponse-BApg8KZv.d.ts} +1 -1
  17. package/dist/WorkspaceMountManager-CkLI1B-G.d.ts +33 -0
  18. package/dist/assets/sigvelo-logo.svg +54 -0
  19. package/dist/components/agents-sdk/AgentActivity.js +1 -1
  20. package/dist/components/agents-sdk/AgentChat.d.ts +6 -2
  21. package/dist/components/agents-sdk/AgentChat.js +12 -16
  22. package/dist/components/agents-sdk/AgentEvent.js +2 -2
  23. package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +2 -1
  24. package/dist/components/agents-sdk/BrowserLiveScreen.js +9 -1
  25. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  26. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  27. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  28. package/dist/components/agents-sdk/EmployeeApp.d.ts +43 -30
  29. package/dist/components/agents-sdk/EmployeeApp.js +47 -34
  30. package/dist/components/agents-sdk/EmployeeChat.d.ts +28 -8
  31. package/dist/components/agents-sdk/EmployeeChat.js +33 -5
  32. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -219
  33. package/dist/components/agents-sdk/EmployeeChrome.js +106 -107
  34. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +1 -1
  35. package/dist/components/agents-sdk/EmployeeSchedules.js +3 -4
  36. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +12 -11
  37. package/dist/components/agents-sdk/EmployeeStartScreen.js +23 -16
  38. package/dist/components/agents-sdk/ManagerAccountActions.js +3 -4
  39. package/dist/components/agents-sdk/ManagerOffice.js +1 -2
  40. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +2 -2
  41. package/dist/components/agents-sdk/ManagerOfficeScreens.js +30 -13
  42. package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
  43. package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
  44. package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -93
  45. package/dist/components/agents-sdk/McpPluginCatalog.js +6 -6
  46. package/dist/components/agents-sdk/McpServerPicker.js +5 -5
  47. package/dist/components/agents-sdk/ModelEndpointDialog.js +1 -1
  48. package/dist/components/agents-sdk/ModelSelector.js +4 -4
  49. package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
  50. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  51. package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
  52. package/dist/components/agents-sdk/SubagentRunPanel.d.ts +3 -0
  53. package/dist/components/agents-sdk/SubagentRunPanel.js +67 -47
  54. package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
  55. package/dist/components/agents-sdk/ThinkChat.d.ts +1 -1
  56. package/dist/components/agents-sdk/ThinkChatActivity.js +3 -3
  57. package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
  58. package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
  59. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  60. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +7 -14
  61. package/dist/components/agents-sdk/ThinkFullApp.d.ts +2 -0
  62. package/dist/components/agents-sdk/ThinkFullApp.js +2 -0
  63. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
  64. package/dist/components/agents-sdk/ThinkRoutineActions.js +2 -2
  65. package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
  66. package/dist/components/agents-sdk/ThinkRoutineForm.js +4 -4
  67. package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
  68. package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
  69. package/dist/components/agents-sdk/ThinkThreadPicker.js +33 -20
  70. package/dist/components/agents-sdk/WorkbenchBack.d.ts +18 -0
  71. package/dist/components/agents-sdk/WorkbenchBack.js +27 -0
  72. package/dist/components/agents-sdk/Workspace.d.ts +1 -1
  73. package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
  74. package/dist/components/agents-sdk/WorkspaceBrowser.js +3 -1
  75. package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
  76. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +6 -6
  77. package/dist/components/agents-sdk/WorkspaceExecution.js +13 -10
  78. package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +4 -1
  79. package/dist/components/agents-sdk/WorkspaceExplorer.js +13 -4
  80. package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
  81. package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
  82. package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
  83. package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
  84. package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
  85. package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
  86. package/dist/components/agents-sdk/WorkspaceMountManager.d.ts +1 -32
  87. package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
  88. package/dist/components/agents-sdk/WorkspaceProject.js +7 -5
  89. package/dist/components/agents-sdk/WorkspaceUserScript.js +7 -5
  90. package/dist/components/ai-sdk/Activity.js +1 -1
  91. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  92. package/dist/components/ai-sdk/Approval.js +2 -2
  93. package/dist/components/ai-sdk/Artifact.d.ts +1 -1
  94. package/dist/components/ai-sdk/Artifact.js +1 -1
  95. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  96. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  97. package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
  98. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  99. package/dist/components/ai-sdk/ComposerLink.js +1 -1
  100. package/dist/components/ai-sdk/ConnectedAppCards.js +3 -3
  101. package/dist/components/ai-sdk/Context.js +1 -1
  102. package/dist/components/ai-sdk/Conversation.d.ts +1 -1
  103. package/dist/components/ai-sdk/Conversation.js +1 -1
  104. package/dist/components/ai-sdk/Goal.js +1 -1
  105. package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
  106. package/dist/components/ai-sdk/Message.d.ts +1 -1
  107. package/dist/components/ai-sdk/Message.js +2 -2
  108. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  109. package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
  110. package/dist/components/ai-sdk/Plan.js +1 -1
  111. package/dist/components/ai-sdk/PromptInput.js +7 -7
  112. package/dist/components/ai-sdk/Queue.js +1 -1
  113. package/dist/components/ai-sdk/Reasoning.js +1 -1
  114. package/dist/components/ai-sdk/Sources.js +1 -1
  115. package/dist/components/ai-sdk/Task.js +1 -1
  116. package/dist/components/extension/ChatGptSignInScreen.d.ts +1 -1
  117. package/dist/components/extension/ChatGptSignInScreen.js +61 -186
  118. package/dist/components/extension/CodexModelSelector.js +4 -8
  119. package/dist/components/extension/ConversationTabPicker.js +2 -2
  120. package/dist/components/foundations/Checkbox.js +1 -1
  121. package/dist/components/foundations/Collapsible.js +1 -1
  122. package/dist/components/foundations/ContextMenu.js +1 -1
  123. package/dist/components/foundations/IconButton.d.ts +1 -1
  124. package/dist/components/foundations/IconButton.js +7 -4
  125. package/dist/components/foundations/Menubar.js +1 -1
  126. package/dist/components/foundations/SearchField.js +1 -1
  127. package/dist/components/foundations/Select.js +1 -1
  128. package/dist/components/foundations/Stepper.js +1 -1
  129. package/dist/components/foundations/Toast.js +1 -1
  130. package/dist/components/foundations/ToggleGroup.d.ts +1 -1
  131. package/dist/components/foundations/ToggleGroup.js +1 -1
  132. package/dist/components/foundations/icons.js +1 -1
  133. package/dist/components/general-purpose/AccountSignInDialog.d.ts +5 -9
  134. package/dist/components/general-purpose/AccountSignInDialog.js +13 -5
  135. package/dist/components/general-purpose/BrandLoading.d.ts +14 -0
  136. package/dist/components/general-purpose/BrandLoading.js +25 -0
  137. package/dist/components/general-purpose/Commit.d.ts +1 -1
  138. package/dist/components/general-purpose/Commit.js +2 -2
  139. package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
  140. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  141. package/dist/components/general-purpose/FileTree.js +1 -1
  142. package/dist/components/general-purpose/PricingPlanCard.js +2 -2
  143. package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
  144. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
  145. package/dist/components/general-purpose/ResponsiveSidebarShell.js +59 -27
  146. package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
  147. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  148. package/dist/components/general-purpose/StatusScreen.d.ts +13 -2
  149. package/dist/components/general-purpose/StatusScreen.js +27 -3
  150. package/dist/components/general-purpose/Terminal.d.ts +2 -2
  151. package/dist/components/general-purpose/Terminal.js +2 -2
  152. package/dist/components/general-purpose/TestResults.js +1 -1
  153. package/dist/components/general-purpose/ThemeModeControl.js +2 -2
  154. package/dist/components/general-purpose/WebPreview.d.ts +1 -1
  155. package/dist/components/general-purpose/WebPreview.js +2 -2
  156. package/dist/components/nanites/AgentConnection.js +2 -2
  157. package/dist/components/nanites/AgentToolDetail.js +5 -5
  158. package/dist/{copy-button-OUwOdgEm.d.ts → copy-button-CJYYgCIU.d.ts} +1 -1
  159. package/dist/{copy-button-Dk2vRe9j.js → copy-button-CSDuDfdP.js} +1 -1
  160. package/dist/styles/activity.css +2 -2
  161. package/dist/styles/agent-chat.css +6 -105
  162. package/dist/styles/app-root.css +9 -0
  163. package/dist/styles/app-top-bar.css +10 -4
  164. package/dist/styles/avatar.css +2 -2
  165. package/dist/styles/base.css +6 -2
  166. package/dist/styles/brand-loading.css +58 -0
  167. package/dist/styles/brand.test.ts +158 -0
  168. package/dist/styles/browser-control-overlay.css +22 -0
  169. package/dist/styles/button.css +22 -1
  170. package/dist/styles/chatgpt-sign-in-screen.css +111 -225
  171. package/dist/styles/code-block.css +5 -0
  172. package/dist/styles/codex-model-selector.css +2 -12
  173. package/dist/styles/description-list.css +9 -2
  174. package/dist/styles/employee-app.css +19 -1
  175. package/dist/styles/employee-chrome.css +35 -5
  176. package/dist/styles/file-tree.css +15 -2
  177. package/dist/styles/index.css +1 -0
  178. package/dist/styles/manager-office.css +80 -55
  179. package/dist/styles/manager-work.css +5 -11
  180. package/dist/styles/mcp-plugin-catalog.css +29 -34
  181. package/dist/styles/mcp-server-picker.css +13 -5
  182. package/dist/styles/prompt-input.css +3 -13
  183. package/dist/styles/queue.css +1 -1
  184. package/dist/styles/recipes.css +9 -2
  185. package/dist/styles/responsive-sidebar-shell-motion.test.ts +67 -0
  186. package/dist/styles/responsive-sidebar-shell.css +70 -25
  187. package/dist/styles/search-field.css +8 -6
  188. package/dist/styles/subagent-run.css +81 -0
  189. package/dist/styles/think-execution-workbench.css +0 -17
  190. package/dist/styles/think-full-app.css +11 -4
  191. package/dist/styles/think-thread-picker.css +16 -38
  192. package/dist/styles/workspace-concepts.css +29 -2
  193. package/dist/styles/workspace-explorer.css +6 -48
  194. package/dist/utils/structured-code.d.ts +1 -1
  195. package/dist/{workspace-assets-wW_lQLYK.js → workspace-assets-Bg7XhPsk.js} +2 -2
  196. package/package.json +2 -2
  197. package/dist/styles/extension-status.css +0 -46
  198. package/dist/{icons-CeGfXO21.js → icons-cuEtsgj9.js} +1 -1
@@ -1,14 +1,13 @@
1
- import { C as FolderIcon, G as SlackIcon, I as PaperclipIcon, c as BoxIcon, g as DiscordIcon } from "../../icons-CeGfXO21.js";
2
- import { Button } from "../foundations/Button.js";
1
+ import { C as FolderIcon, G as SlackIcon, I as PaperclipIcon, c as BoxIcon, g as DiscordIcon } from "../../icons-cuEtsgj9.js";
2
+ import { IconButton } from "../foundations/IconButton.js";
3
3
  import { Menu } from "../foundations/Menu.js";
4
- import { AppIcon } from "../foundations/AppIcon.js";
5
- import "../foundations/icons.js";
6
4
  import { ActionGuideAction } from "../general-purpose/ActionGuide.js";
7
- import { t as SetupChecklistAction } from "../../SetupChecklist-O6qmgwz4.js";
5
+ import { AppIcon } from "../foundations/AppIcon.js";
8
6
  import { EmployeeChrome } from "./EmployeeChrome.js";
7
+ import { t as SetupChecklistAction } from "../../SetupChecklist-BiWQkKEq.js";
9
8
  import { McpServerPickerAction, McpServerPickerItems } from "./McpServerPicker.js";
10
9
  import { WorkspaceMountManager } from "./WorkspaceMountManager.js";
11
- import "react";
10
+ import * as React from "react";
12
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
12
  //#region src/components/agents-sdk/EmployeeStartScreen.tsx
14
13
  function SetupActions({ start }) {
@@ -32,6 +31,8 @@ function SetupActions({ start }) {
32
31
  ] });
33
32
  }
34
33
  function StartComposerTray({ plugins, renderLink, start }) {
34
+ const [pluginTrigger, setPluginTrigger] = React.useState(null);
35
+ const menuBoundary = pluginTrigger?.closest(".agent-chat") ?? void 0;
35
36
  const connections = [{
36
37
  id: "discord",
37
38
  name: "Discord",
@@ -59,21 +60,25 @@ function StartComposerTray({ plugins, renderLink, start }) {
59
60
  }) : null,
60
61
  start.mounts ? /* @__PURE__ */ jsx(WorkspaceMountManager, {
61
62
  ...start.mounts,
62
- trigger: /* @__PURE__ */ jsxs(Button, {
63
+ trigger: /* @__PURE__ */ jsx(IconButton, {
63
64
  variant: "ghost",
64
65
  color: "neutral",
65
66
  size: "sm",
66
- children: [/* @__PURE__ */ jsx(PaperclipIcon, {}), "Attach folder"]
67
+ label: "Attach folder",
68
+ responsiveLabel: "Attach folder",
69
+ children: /* @__PURE__ */ jsx(PaperclipIcon, {})
67
70
  })
68
71
  }) : null,
69
- hasPluginMenu ? /* @__PURE__ */ jsxs(Menu.Root, { children: [/* @__PURE__ */ jsxs(Button, {
72
+ hasPluginMenu ? /* @__PURE__ */ jsxs(Menu.Root, { children: [/* @__PURE__ */ jsx(IconButton, {
70
73
  type: "button",
71
74
  variant: "ghost",
72
75
  color: "neutral",
73
76
  size: "sm",
74
77
  render: /* @__PURE__ */ jsx(Menu.Trigger, { unstyled: true }),
75
- "aria-label": "Connect plugins",
76
- children: [/* @__PURE__ */ jsx("span", { children: "Connect plugins" }), /* @__PURE__ */ jsxs(AppIcon.Stack, {
78
+ label: "Connect plugins",
79
+ responsiveLabel: "Plugins",
80
+ ref: setPluginTrigger,
81
+ children: /* @__PURE__ */ jsxs(AppIcon.Stack, {
77
82
  "aria-hidden": "true",
78
83
  children: [/* @__PURE__ */ jsx(AppIcon.Root, {
79
84
  size: "xs",
@@ -84,14 +89,16 @@ function StartComposerTray({ plugins, renderLink, start }) {
84
89
  variant: "surface",
85
90
  children: /* @__PURE__ */ jsx(DiscordIcon, {})
86
91
  })]
87
- })]
92
+ })
88
93
  }), /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
89
- side: "bottom",
90
- align: "start",
91
- sideOffset: 4,
94
+ side: "top",
95
+ align: "end",
96
+ sideOffset: 8,
97
+ collisionBoundary: menuBoundary,
98
+ collisionPadding: 8,
92
99
  children: /* @__PURE__ */ jsxs(Menu.Popup, {
93
100
  "aria-label": "Plugins",
94
- "data-recipe": "wide-scroll-picker",
101
+ className: "employee-start__plugins",
95
102
  children: [/* @__PURE__ */ jsx(McpServerPickerItems, {
96
103
  actions: connections,
97
104
  servers: plugins?.servers ?? [],
@@ -1,10 +1,9 @@
1
- import { B as PlusIcon, y as EllipsisIcon } from "../../icons-CeGfXO21.js";
2
- import { Menu } from "../foundations/Menu.js";
1
+ import { B as PlusIcon, y as EllipsisIcon } from "../../icons-cuEtsgj9.js";
3
2
  import { IconButton } from "../foundations/IconButton.js";
4
3
  import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
5
- import { Toast } from "../foundations/Toast.js";
6
- import "../foundations/icons.js";
4
+ import { Menu } from "../foundations/Menu.js";
7
5
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
6
+ import { Toast } from "../foundations/Toast.js";
8
7
  import "react";
9
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
9
  //#region src/components/agents-sdk/ManagerAccountActions.tsx
@@ -1,3 +1,2 @@
1
- import "../foundations/icons.js";
2
- import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-5pEFpoV3.js";
1
+ import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-CMJ7laGe.js";
3
2
  export { ManagerOffice, ManagerOfficeSidebar, ManagerOfficeSidebarAlert };
@@ -1,4 +1,4 @@
1
- import { EmployeeShellProps } from "./EmployeeChrome.js";
1
+ import { f as EmployeeShellProps } from "../../EmployeeChrome-C8eTGJWn.js";
2
2
  import { ManagerOfficeConnectedEmployee, ManagerOfficeDestination, ManagerOfficeEmployee } from "./ManagerOffice.js";
3
3
  import * as React from "react";
4
4
 
@@ -9,7 +9,7 @@ type ManagerOfficeView = {
9
9
  kind: "employee";
10
10
  employeeId: string;
11
11
  };
12
- interface ManagerWorkShellProps extends EmployeeShellProps {
12
+ interface ManagerWorkShellProps extends Omit<EmployeeShellProps, "appBarLeading"> {
13
13
  employees: readonly ManagerOfficeEmployee[];
14
14
  employee: ManagerOfficeEmployee;
15
15
  renderOfficeLink: (destination: ManagerOfficeDestination) => React.ReactElement;
@@ -1,11 +1,11 @@
1
- import { B as PlusIcon, C as FolderIcon, G as SlackIcon, P as MonitorIcon, R as PencilIcon, et as WarningIcon, j as MessageSquareIcon } from "../../icons-CeGfXO21.js";
1
+ import { B as PlusIcon, C as FolderIcon, G as SlackIcon, P as MonitorIcon, R as PencilIcon, W as SidebarIcon, et as WarningIcon, r as ArrowLeftIcon } from "../../icons-cuEtsgj9.js";
2
+ import { IconButton } from "../foundations/IconButton.js";
2
3
  import { EmptyState } from "../foundations/EmptyState.js";
3
- import "../foundations/icons.js";
4
4
  import { AppTopBar } from "../general-purpose/AppTopBar.js";
5
5
  import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
6
6
  import { ThinkThreadPicker } from "./ThinkThreadPicker.js";
7
7
  import { EmployeeChrome } from "./EmployeeChrome.js";
8
- import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-5pEFpoV3.js";
8
+ import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-CMJ7laGe.js";
9
9
  import "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region src/components/agents-sdk/ManagerOfficeScreens.tsx
@@ -16,20 +16,23 @@ function ManagerWorkShell({ employees, employee, renderOfficeLink, officeActions
16
16
  renderLink: renderOfficeLink,
17
17
  children: /* @__PURE__ */ jsx(EmployeeChrome.Shell, {
18
18
  ...chrome,
19
+ appBarLeading: /* @__PURE__ */ jsx(AppTopBar.Link, {
20
+ label: "Back to office",
21
+ render: renderOfficeLink({
22
+ kind: "employee",
23
+ employee
24
+ }),
25
+ children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
26
+ }),
19
27
  sidebarLabel: "employees",
20
28
  navigation: [
21
- {
22
- id: "chat",
23
- label: "Chat",
24
- icon: /* @__PURE__ */ jsx(MessageSquareIcon, {})
25
- },
26
29
  {
27
30
  id: "files",
28
31
  label: "Files",
29
32
  icon: /* @__PURE__ */ jsx(FolderIcon, {})
30
33
  },
31
34
  {
32
- id: "live",
35
+ id: "browser",
33
36
  label: "Browser",
34
37
  icon: /* @__PURE__ */ jsx(MonitorIcon, {})
35
38
  },
@@ -39,12 +42,18 @@ function ManagerWorkShell({ employees, employee, renderOfficeLink, officeActions
39
42
  icon: /* @__PURE__ */ jsx(SlackIcon, {})
40
43
  }
41
44
  ],
42
- sidebar: ({ closeSidebarOnCompact }) => /* @__PURE__ */ jsx(ManagerOfficeSidebar, {
45
+ sidebar: ({ closeSidebar, closeSidebarOnCompact }) => /* @__PURE__ */ jsx(ManagerOfficeSidebar, {
43
46
  layout: "chat",
44
47
  employees,
45
48
  selectedEmployeeId: employee.id,
46
49
  closeSidebarOnCompact,
47
- officeActions,
50
+ officeActions: /* @__PURE__ */ jsxs(Fragment, { children: [officeActions, /* @__PURE__ */ jsx(IconButton, {
51
+ label: "Hide workforce",
52
+ variant: "ghost",
53
+ size: "sm",
54
+ onClick: closeSidebar,
55
+ children: /* @__PURE__ */ jsx(SidebarIcon, {})
56
+ })] }),
48
57
  renderLink: (destination) => {
49
58
  if (destination.kind === "employee" && "work" in destination.employee) {
50
59
  const first = destination.employee.work[0];
@@ -127,18 +136,26 @@ function ManagerOfficeScreen({ employees, renderLink, view, emptyOfficeAction, o
127
136
  employees,
128
137
  renderLink,
129
138
  render: /* @__PURE__ */ jsx(ResponsiveSidebarShell, {
139
+ className: "employee-shell__navigation",
130
140
  sidebarLabel: "employees",
131
141
  showMainLabel: "Show workforce",
132
- sidebar: ({ closeSidebarOnCompact }) => /* @__PURE__ */ jsx(ManagerOfficeSidebar, {
142
+ sidebar: ({ closeSidebar, closeSidebarOnCompact }) => /* @__PURE__ */ jsx(ManagerOfficeSidebar, {
133
143
  employees,
134
144
  renderLink,
135
145
  selectedEmployeeId: employee?.id ?? null,
136
146
  closeSidebarOnCompact,
137
- officeActions
147
+ officeActions: /* @__PURE__ */ jsxs(Fragment, { children: [officeActions, /* @__PURE__ */ jsx(IconButton, {
148
+ label: "Hide workforce",
149
+ variant: "ghost",
150
+ size: "sm",
151
+ onClick: closeSidebar,
152
+ children: /* @__PURE__ */ jsx(SidebarIcon, {})
153
+ })] })
138
154
  }),
139
155
  bar: {
140
156
  label: "Workforce controls",
141
157
  title,
158
+ compactTitleTrigger: /* @__PURE__ */ jsx("span", { children: title }),
142
159
  titleRender: (props) => /* @__PURE__ */ jsx("h1", {
143
160
  ...props,
144
161
  children: props.children
@@ -1,11 +1,11 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { K as SpinnerIcon, d as CheckIcon, et as WarningIcon } from "../../icons-CeGfXO21.js";
2
+ import { K as SpinnerIcon, d as CheckIcon, et as WarningIcon } from "../../icons-cuEtsgj9.js";
3
3
  import { Button } from "../foundations/Button.js";
4
- import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
5
4
  import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
6
5
  import { DescriptionList } from "../foundations/DescriptionList.js";
7
6
  import { McpServerIcon } from "./McpServerIcon.js";
8
7
  import { t as getMcpServerProjection } from "../../mcp-server-mAErsxHU.js";
8
+ import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
9
9
  import * as React from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import { getToolPartState } from "@cloudflare/think/react";
@@ -1,9 +1,9 @@
1
1
  import { CUSTOM_MCP_SERVER_CARD } from "../../utils/mcp-server-catalog.js";
2
2
  import { t as cx } from "../../class-names-BiMDVpUo.js";
3
3
  import { Button } from "../foundations/Button.js";
4
+ import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
4
5
  import { Field } from "../foundations/Field.js";
5
6
  import { Form } from "../foundations/Form.js";
6
- import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
7
7
  import { Fieldset } from "../foundations/Fieldset.js";
8
8
  import * as React from "react";
9
9
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,94 +1,2 @@
1
- import { l as DialogProps } from "../../Dialog-88GF7_Th.js";
2
- import { o as McpServerCard } from "../../mcp-server-catalog-D9p4gGeJ.js";
3
- import { r as McpConnectorFormValues } from "../../McpConnectorForm--HB0MEGC.js";
4
- import * as React from "react";
5
- import { MCPServersState } from "agents";
6
-
7
- //#region src/components/agents-sdk/McpPluginCatalog.d.ts
8
- /** Optional plugin-specific copy layered over the canonical MCP server card. */
9
- interface McpPluginDetails {
10
- developerName?: string;
11
- marketplaceName?: string;
12
- longDescription?: string;
13
- capabilities?: readonly string[];
14
- skills?: readonly string[];
15
- }
16
- interface McpPluginCatalogProps extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
17
- /** Canonical connector cards. The directory does not create a second plugin registry. */
18
- servers: readonly McpServerCard[];
19
- /** Upstream Agents MCP state used to project connected and recovery states. */
20
- mcp?: MCPServersState;
21
- /** Optional plugin metadata keyed by the canonical server ID. */
22
- detailsByServerId?: Readonly<Record<string, McpPluginDetails | undefined>>;
23
- /** Server IDs promoted into the Featured section, in display order. */
24
- featuredServerIds?: readonly string[];
25
- /** Host product name paired with the plugin in the connection dialog. */
26
- brandName?: string;
27
- /** Host product mark paired with the plugin in the connection dialog. */
28
- brandLogo?: React.ReactNode;
29
- /** Product-authored trust and data-sharing copy. Pass null to omit it. */
30
- disclosure?: React.ReactNode;
31
- /** Starts or recovers the existing MCP connection path. */
32
- onConnect?: (server: McpServerCard) => void | Promise<void>;
33
- /** Removes the exact upstream MCP entry. */
34
- onDisconnect?: (serverId: string) => void | Promise<void>;
35
- /**
36
- * Connects a user-supplied MCP server. Providing it puts the "Custom
37
- * plugin" action in the bar, opening the shared connector setup dialog.
38
- */
39
- onAddCustom?: (values: McpConnectorFormValues) => void | Promise<void>;
40
- /** Accessible name only — the hosting tab or icon is the visible title. */
41
- heading?: React.ReactNode;
42
- /** Accessible label and placeholder for the plugin filter. */
43
- searchLabel?: string;
44
- /** Content shown when no plugins match the current filter. */
45
- emptyMessage?: React.ReactNode;
46
- }
47
- interface McpPluginDetailsDialogProps {
48
- /** Selected canonical server card. Passing null closes the dialog. */
49
- server: McpServerCard | null;
50
- details?: McpPluginDetails;
51
- mcp?: MCPServersState;
52
- brandName?: string;
53
- brandLogo?: React.ReactNode;
54
- disclosure?: React.ReactNode;
55
- onConnect?: (server: McpServerCard) => void | Promise<void>;
56
- onDisconnect?: (serverId: string) => void | Promise<void>;
57
- onOpenChange: NonNullable<DialogProps["onOpenChange"]>;
58
- }
59
- /**
60
- * Searchable plugin directory backed by the same MCP cards and live Agents
61
- * state as {@link McpServerPicker}. Selecting a row opens the shared details
62
- * dialog; connecting still delegates to the host's existing MCP/OAuth path.
63
- */
64
- declare function McpPluginCatalog({
65
- servers,
66
- mcp,
67
- detailsByServerId,
68
- featuredServerIds,
69
- brandName,
70
- brandLogo,
71
- disclosure,
72
- onConnect,
73
- onDisconnect,
74
- onAddCustom,
75
- heading,
76
- searchLabel,
77
- emptyMessage,
78
- className,
79
- ...props
80
- }: McpPluginCatalogProps): React.JSX.Element;
81
- /** Reference-derived plugin detail surface without a parallel install state. */
82
- declare function McpPluginDetailsDialog({
83
- server,
84
- details,
85
- mcp,
86
- brandName,
87
- brandLogo,
88
- disclosure,
89
- onConnect,
90
- onDisconnect,
91
- onOpenChange
92
- }: McpPluginDetailsDialogProps): React.JSX.Element;
93
- //#endregion
1
+ import { a as McpPluginDetailsDialogProps, i as McpPluginDetailsDialog, n as McpPluginCatalogProps, r as McpPluginDetails, t as McpPluginCatalog } from "../../McpPluginCatalog-DNeHDrts.js";
94
2
  export { McpPluginCatalog, McpPluginCatalogProps, McpPluginDetails, McpPluginDetailsDialog, McpPluginDetailsDialogProps };
@@ -1,17 +1,17 @@
1
1
  import { CUSTOM_MCP_SERVER_CARD } from "../../utils/mcp-server-catalog.js";
2
2
  import { t as cx } from "../../class-names-BiMDVpUo.js";
3
- import { B as PlusIcon, K as SpinnerIcon, et as WarningIcon, nt as XIcon, o as ArrowUpRightIcon, y as EllipsisIcon } from "../../icons-CeGfXO21.js";
3
+ import { B as PlusIcon, K as SpinnerIcon, et as WarningIcon, nt as XIcon, o as ArrowUpRightIcon, y as EllipsisIcon } from "../../icons-cuEtsgj9.js";
4
4
  import { Button } from "../foundations/Button.js";
5
- import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
6
5
  import { IconButton } from "../foundations/IconButton.js";
7
6
  import { Dialog } from "../foundations/Dialog.js";
8
7
  import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
9
8
  import { Separator } from "../foundations/Separator.js";
10
9
  import { AppIcon } from "../foundations/AppIcon.js";
11
- import { SearchField } from "../foundations/SearchField.js";
12
10
  import { McpServerIcon } from "./McpServerIcon.js";
11
+ import { SearchField } from "../foundations/SearchField.js";
13
12
  import { t as getMcpServerProjection } from "../../mcp-server-mAErsxHU.js";
14
13
  import { McpServerSetupDialog } from "./McpServerPicker.js";
14
+ import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
15
15
  import * as React from "react";
16
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
17
  //#region src/components/agents-sdk/McpPluginCatalog.tsx
@@ -35,7 +35,7 @@ function McpPluginCatalog({ servers, mcp, detailsByServerId, featuredServerIds =
35
35
  className: "mcp-plugin-catalog__header",
36
36
  children: [
37
37
  /* @__PURE__ */ jsx("h1", {
38
- className: "sigvelo-visually-hidden",
38
+ className: "mcp-plugin-catalog__title",
39
39
  children: heading
40
40
  }),
41
41
  /* @__PURE__ */ jsxs(SearchField.Root, {
@@ -131,7 +131,7 @@ function McpPluginCatalog({ servers, mcp, detailsByServerId, featuredServerIds =
131
131
  function McpPluginDetailsDialog({ server, details, mcp, brandName = "your AI", brandLogo = /* @__PURE__ */ jsx("img", {
132
132
  alt: "",
133
133
  className: "sigvelo-brand-mark sigvelo-brand-mark--colorful",
134
- src: new URL("../../assets/think-browser-host.png", import.meta.url).href,
134
+ src: new URL("../../assets/sigvelo-logo.svg", import.meta.url).href,
135
135
  width: 128,
136
136
  height: 128
137
137
  }), disclosure = /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -227,7 +227,7 @@ function McpPluginCard({ server, details, mcp, onSelect }) {
227
227
  onClick: onSelect,
228
228
  children: [/* @__PURE__ */ jsx(McpServerIcon, {
229
229
  server,
230
- size: "md"
230
+ size: "sm"
231
231
  }), /* @__PURE__ */ jsxs("span", {
232
232
  className: "mcp-plugin-catalog__card-copy",
233
233
  children: [/* @__PURE__ */ jsx("span", {
@@ -1,9 +1,9 @@
1
1
  import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
2
- import { K as SpinnerIcon, N as MinusIcon, d as CheckIcon, et as WarningIcon } from "../../icons-CeGfXO21.js";
2
+ import { K as SpinnerIcon, N as MinusIcon, d as CheckIcon, et as WarningIcon } from "../../icons-cuEtsgj9.js";
3
3
  import { buttonVariants } from "../foundations/Button.js";
4
- import { Menu } from "../foundations/Menu.js";
5
4
  import { Dialog } from "../foundations/Dialog.js";
6
5
  import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
6
+ import { Menu } from "../foundations/Menu.js";
7
7
  import { PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger } from "../ai-sdk/PromptInput.js";
8
8
  import { McpServerIcon } from "./McpServerIcon.js";
9
9
  import { t as getMcpServerProjection } from "../../mcp-server-mAErsxHU.js";
@@ -30,7 +30,7 @@ function McpServerSetupDialog({ server, defaults, onOpenChange, onSubmit, redire
30
30
  open: server !== null,
31
31
  onOpenChange,
32
32
  children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [/* @__PURE__ */ jsx(Dialog.Backdrop, {}), /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, { children: [
33
- /* @__PURE__ */ jsxs(Dialog.Header, { children: [/* @__PURE__ */ jsx(Dialog.Title, { children: server ? server.name.endsWith("MCP") ? server.name : `${server.name} MCP` : "MCP connectors" }), /* @__PURE__ */ jsx(Dialog.Description, { children: server?.manualSetup?.description ?? "Connect a remote MCP server the model can call." })] }),
33
+ /* @__PURE__ */ jsxs(Dialog.Header, { children: [/* @__PURE__ */ jsx(Dialog.Title, { children: server ? server.name.endsWith("MCP") ? server.name : `${server.name} MCP` : "Plugins" }), /* @__PURE__ */ jsx(Dialog.Description, { children: server?.manualSetup?.description ?? "Connect a remote MCP server the model can call." })] }),
34
34
  server?.manualSetup?.links.length ? /* @__PURE__ */ jsx("div", {
35
35
  className: "mcp-server-setup-dialog__links",
36
36
  children: server.manualSetup.links.map((link) => /* @__PURE__ */ jsx("a", {
@@ -262,14 +262,14 @@ function getPickerRows(servers, mcp) {
262
262
  function groupPickerRows(rows) {
263
263
  const groups = /* @__PURE__ */ new Map();
264
264
  for (const row of rows) {
265
- const key = row.projection.connectionKind === "connected" ? "Connected" : row.server.category === "Auto" ? "MCP connectors" : row.server.category === "Manual" ? "Manual setup" : row.server.category ?? "Other";
265
+ const key = row.projection.connectionKind === "connected" ? "Connected" : row.server.category === "Auto" ? "Plugins" : row.server.category === "Manual" ? "Manual setup" : row.server.category ?? "Other";
266
266
  const group = groups.get(key) ?? [];
267
267
  group.push(row);
268
268
  groups.set(key, group);
269
269
  }
270
270
  const order = [
271
271
  "Connected",
272
- "MCP connectors",
272
+ "Plugins",
273
273
  "Manual setup",
274
274
  "Other"
275
275
  ];
@@ -1,6 +1,6 @@
1
1
  import { Field } from "../foundations/Field.js";
2
- import { Checkbox } from "../foundations/Checkbox.js";
3
2
  import { SettingsFormDialog } from "../general-purpose/SettingsFormDialog.js";
3
+ import { Checkbox } from "../foundations/Checkbox.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region src/components/agents-sdk/ModelEndpointDialog.tsx
6
6
  /** Shared connection form; the host owns validation, credentials and persistence. */
@@ -1,13 +1,13 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { U as SearchIcon, f as ChevronDownIcon } from "../../icons-CeGfXO21.js";
2
+ import { U as SearchIcon, f as ChevronDownIcon } from "../../icons-cuEtsgj9.js";
3
3
  import { Button } from "../foundations/Button.js";
4
- import { Autocomplete } from "../foundations/Autocomplete.js";
5
4
  import { Dialog } from "../foundations/Dialog.js";
6
5
  import { c as titleCase } from "../../format-COCyV98Z.js";
7
- import { Separator } from "../foundations/Separator.js";
6
+ import { Autocomplete } from "../foundations/Autocomplete.js";
8
7
  import { ScrollArea } from "../foundations/ScrollArea.js";
9
- import { t as ProviderLogo } from "../../provider-logos-DWYY8wNz.js";
10
8
  import { EmptyState } from "../foundations/EmptyState.js";
9
+ import { t as ProviderLogo } from "../../provider-logos-DWYY8wNz.js";
10
+ import { Separator } from "../foundations/Separator.js";
11
11
  import * as React from "react";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
13
  import { createPortal } from "react-dom";
@@ -1,6 +1,6 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { ToolApproval } from "../ai-sdk/ToolApproval.js";
3
2
  import { ThinkExecutionApproval, ThinkPendingApproval, getPausedExecution } from "./ThinkPendingApproval.js";
3
+ import { ToolApproval } from "../ai-sdk/ToolApproval.js";
4
4
  import "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { isToolUIPart } from "ai";
@@ -1,6 +1,6 @@
1
1
  import { composerLinkHref } from "../../utils/composer-link.js";
2
2
  import { findCatalogMcpServerCard, getMcpServerIconSrc } from "../../utils/mcp-server-catalog.js";
3
- import { A as McpIcon, c as BoxIcon } from "../../icons-CeGfXO21.js";
3
+ import { A as McpIcon, c as BoxIcon } from "../../icons-cuEtsgj9.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/agents-sdk/PromptInputCommands.tsx
6
6
  function mcpServerCommandIcon(server) {
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
- import { J as StopIcon, K as SpinnerIcon, d as CheckIcon, et as WarningIcon } from "../../icons-CeGfXO21.js";
2
+ import { J as StopIcon, K as SpinnerIcon, d as CheckIcon, et as WarningIcon } from "../../icons-cuEtsgj9.js";
3
3
  import { r as firstLine, s as textLines } from "../../format-COCyV98Z.js";
4
4
  import "react";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -15,6 +15,8 @@ interface SubagentRunCollectionState {
15
15
  error?: string;
16
16
  }
17
17
  interface SubagentRunPanelProviderProps {
18
+ /** Conversation identity; changing it resets transient controls without remounting children. */
19
+ scopeKey: string;
18
20
  /** The one upstream event-hook value from the parent connection. */
19
21
  agentTools: AgentToolEventsValue<AgentToolRunPart>;
20
22
  collection: SubagentRunCollectionState;
@@ -39,6 +41,7 @@ interface SubagentRunPanelValue extends Pick<SubagentRunPanelProviderProps, "age
39
41
  }
40
42
  /** A thread's transient controls/disclosure state; run facts remain in the SDK value. */
41
43
  declare function SubagentRunPanelProvider({
44
+ scopeKey,
42
45
  agentTools,
43
46
  collection,
44
47
  mayExecute,