@mcp-b/react-components 0.58.1 → 0.59.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 (164) hide show
  1. package/dist/{CodeBlock-Bs_Z03eC.js → CodeBlock-B4K656LO.js} +1 -1
  2. package/dist/{EmployeeChrome-DsdIek0l.d.ts → EmployeeChrome-QSki0QT4.d.ts} +4 -4
  3. package/dist/{ExecutionResult-BSZsUbrL.js → ExecutionResult-Wd1sKAvD.js} +2 -2
  4. package/dist/{FileTree-DyLBn7O_.js → FileTree-BpCJuvji.js} +1 -1
  5. package/dist/{ManagerOffice-C8AQcaXs.js → ManagerOffice-BaHSBcSF.js} +4 -4
  6. package/dist/{ResponsiveSidebarShell-DoZlSP30.d.ts → ResponsiveSidebarShell-DzBGlRJF.d.ts} +23 -8
  7. package/dist/{SetupChecklist-CKQ-mKYt.js → SetupChecklist-BNK2XFaI.js} +2 -2
  8. package/dist/{ThinkChatActivity-BkGjTY4r.d.ts → ThinkChatActivity-C4_hPEmb.d.ts} +20 -4
  9. package/dist/{ThinkChatActivitySummary-DZVy3uQV.d.ts → ThinkChatActivitySummary-ChJ8Iu2T.d.ts} +3 -3
  10. package/dist/{ThinkChatToolParts-BucHi63O.d.ts → ThinkChatToolParts-BrntWlpa.d.ts} +29 -3
  11. package/dist/{WorkspaceConceptPanel-97ZyVpZI.js → WorkspaceConceptPanel-D21iRsWm.js} +7 -4
  12. package/dist/{WorkspaceFileView-M2jC2P4p.js → WorkspaceFileView-5SHsjamf.js} +84 -78
  13. package/dist/app-bar-outlet-CNfNzY4Y.js +6 -0
  14. package/dist/components/agents-sdk/AgentActivity.js +1 -1
  15. package/dist/components/agents-sdk/AgentChat.js +7 -7
  16. package/dist/components/agents-sdk/BrowserLiveScreen.js +50 -12
  17. package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
  18. package/dist/components/agents-sdk/BrowserReplay.js +1 -1
  19. package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
  20. package/dist/components/agents-sdk/EmployeeApp.d.ts +2 -3
  21. package/dist/components/agents-sdk/EmployeeApp.js +5 -5
  22. package/dist/components/agents-sdk/EmployeeChat.js +4 -4
  23. package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
  24. package/dist/components/agents-sdk/EmployeeChrome.js +219 -207
  25. package/dist/components/agents-sdk/EmployeeSchedules.d.ts +1 -1
  26. package/dist/components/agents-sdk/EmployeeSchedules.js +7 -7
  27. package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +1 -1
  28. package/dist/components/agents-sdk/EmployeeStartScreen.js +3 -3
  29. package/dist/components/agents-sdk/ExecutionBoard.js +4 -4
  30. package/dist/components/agents-sdk/ManagerAccountActions.js +2 -2
  31. package/dist/components/agents-sdk/ManagerOffice.js +1 -1
  32. package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
  33. package/dist/components/agents-sdk/ManagerOfficeScreens.js +6 -19
  34. package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
  35. package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
  36. package/dist/components/agents-sdk/McpPluginCatalog.js +2 -2
  37. package/dist/components/agents-sdk/McpServerPicker.js +2 -2
  38. package/dist/components/agents-sdk/ModelEndpointDialog.js +1 -1
  39. package/dist/components/agents-sdk/ModelSelector.js +5 -5
  40. package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
  41. package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
  42. package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
  43. package/dist/components/agents-sdk/SubagentRunPanel.d.ts +8 -9
  44. package/dist/components/agents-sdk/SubagentRunPanel.js +133 -122
  45. package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
  46. package/dist/components/agents-sdk/ThinkChat.d.ts +1 -1
  47. package/dist/components/agents-sdk/ThinkChat.js +26 -3
  48. package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
  49. package/dist/components/agents-sdk/ThinkChatActivity.js +110 -110
  50. package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
  51. package/dist/components/agents-sdk/ThinkChatActivitySummary.js +183 -40
  52. package/dist/components/agents-sdk/ThinkChatToolPanels.d.ts +8 -4
  53. package/dist/components/agents-sdk/ThinkChatToolPanels.js +310 -64
  54. package/dist/components/agents-sdk/ThinkChatToolParts.d.ts +2 -2
  55. package/dist/components/agents-sdk/ThinkChatToolParts.js +71 -1
  56. package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
  57. package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
  58. package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +3 -4
  59. package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +8 -8
  60. package/dist/components/agents-sdk/ThinkFullApp.d.ts +1 -1
  61. package/dist/components/agents-sdk/ThinkFullApp.js +6 -1
  62. package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
  63. package/dist/components/agents-sdk/ThinkRoutineActions.js +15 -23
  64. package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
  65. package/dist/components/agents-sdk/ThinkRoutineDetail.js +1 -1
  66. package/dist/components/agents-sdk/ThinkRoutineForm.js +6 -6
  67. package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
  68. package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
  69. package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
  70. package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
  71. package/dist/components/agents-sdk/WorkspaceCorrespondence.js +7 -7
  72. package/dist/components/agents-sdk/WorkspaceExecution.js +146 -139
  73. package/dist/components/agents-sdk/WorkspaceExecutionTable.js +5 -5
  74. package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -3
  75. package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
  76. package/dist/components/agents-sdk/WorkspaceHeader.js +27 -29
  77. package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
  78. package/dist/components/agents-sdk/WorkspaceProject.js +6 -6
  79. package/dist/components/agents-sdk/WorkspaceUserScript.js +6 -6
  80. package/dist/components/ai-sdk/Activity.d.ts +1 -1
  81. package/dist/components/ai-sdk/Activity.js +85 -7
  82. package/dist/components/ai-sdk/AgentChatMessageEditor.js +1 -1
  83. package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
  84. package/dist/components/ai-sdk/Approval.js +4 -3
  85. package/dist/components/ai-sdk/Artifact.js +1 -1
  86. package/dist/components/ai-sdk/ChainOfThought.js +1 -1
  87. package/dist/components/ai-sdk/Checkpoint.js +1 -1
  88. package/dist/components/ai-sdk/CodeBlock.js +1 -1
  89. package/dist/components/ai-sdk/ComposerLink.js +2 -2
  90. package/dist/components/ai-sdk/ConnectedAppCards.js +66 -48
  91. package/dist/components/ai-sdk/Context.js +1 -1
  92. package/dist/components/ai-sdk/Conversation.js +2 -2
  93. package/dist/components/ai-sdk/ExpansionState.d.ts +16 -6
  94. package/dist/components/ai-sdk/ExpansionState.js +25 -7
  95. package/dist/components/ai-sdk/Goal.js +1 -1
  96. package/dist/components/ai-sdk/MediaPreviewCard.js +2 -2
  97. package/dist/components/ai-sdk/Message.js +2 -2
  98. package/dist/components/ai-sdk/MessageScroller.js +1 -1
  99. package/dist/components/ai-sdk/MessageScrollerVirtual.js +99 -12
  100. package/dist/components/ai-sdk/Plan.js +1 -1
  101. package/dist/components/ai-sdk/PromptInput.js +13 -9
  102. package/dist/components/ai-sdk/PromptInputComposerEditor.js +2 -2
  103. package/dist/components/ai-sdk/Queue.js +2 -2
  104. package/dist/components/ai-sdk/Reasoning.js +1 -1
  105. package/dist/components/ai-sdk/Sources.js +1 -1
  106. package/dist/components/ai-sdk/Task.js +1 -1
  107. package/dist/components/ai-sdk/ToolInvocation.d.ts +8 -0
  108. package/dist/components/ai-sdk/ToolInvocation.js +45 -19
  109. package/dist/components/extension/ChatGptSignInScreen.js +1 -1
  110. package/dist/components/extension/CodexModelSelector.js +2 -2
  111. package/dist/components/extension/ConversationTabPicker.js +2 -2
  112. package/dist/components/foundations/Checkbox.js +1 -1
  113. package/dist/components/foundations/Collapsible.js +1 -1
  114. package/dist/components/foundations/ContextMenu.js +1 -1
  115. package/dist/components/foundations/Menubar.js +1 -1
  116. package/dist/components/foundations/SearchField.js +1 -1
  117. package/dist/components/foundations/Select.js +1 -1
  118. package/dist/components/foundations/Stepper.js +1 -1
  119. package/dist/components/foundations/Toast.js +1 -1
  120. package/dist/components/foundations/ToggleGroup.js +1 -1
  121. package/dist/components/foundations/icons.js +1 -1
  122. package/dist/components/general-purpose/AccountSignInDialog.js +1 -1
  123. package/dist/components/general-purpose/Commit.js +2 -2
  124. package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
  125. package/dist/components/general-purpose/FileTree.js +1 -1
  126. package/dist/components/general-purpose/PricingPlanCard.js +2 -2
  127. package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
  128. package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +2 -2
  129. package/dist/components/general-purpose/ResponsiveSidebarShell.js +163 -88
  130. package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
  131. package/dist/components/general-purpose/SetupChecklist.js +1 -1
  132. package/dist/components/general-purpose/Terminal.js +3 -3
  133. package/dist/components/general-purpose/TestResults.js +1 -1
  134. package/dist/components/general-purpose/ThemeModeControl.js +1 -1
  135. package/dist/components/general-purpose/WebPreview.js +2 -2
  136. package/dist/components/nanites/AgentConnection.js +2 -2
  137. package/dist/components/nanites/AgentToolDetail.d.ts +1 -3
  138. package/dist/components/nanites/AgentToolDetail.js +30 -39
  139. package/dist/{copy-button-M4sAp9xS.js → copy-button-BsmxSSeD.js} +1 -1
  140. package/dist/merge-refs-DAh6reu8.js +26 -0
  141. package/dist/styles/activity.css +74 -0
  142. package/dist/styles/agent-chat.css +8 -1
  143. package/dist/styles/agent-tool-detail.css +2 -17
  144. package/dist/styles/app-top-bar.css +6 -7
  145. package/dist/styles/base.css +1 -1
  146. package/dist/styles/employee-chrome.css +0 -7
  147. package/dist/styles/message.css +1 -1
  148. package/dist/styles/responsive-sidebar-shell.css +10 -25
  149. package/dist/styles/scroll-area.css +16 -0
  150. package/dist/styles/scrollbars.css +55 -41
  151. package/dist/styles/search-field.css +0 -1
  152. package/dist/styles/subagent-run.css +36 -196
  153. package/dist/styles/think-chat-tool-panels.css +38 -5
  154. package/dist/styles/think-execution-workbench.css +4 -0
  155. package/dist/styles/think-full-app.css +1 -6
  156. package/dist/styles/workspace-concepts.css +6 -39
  157. package/dist/styles/workspace-explorer.css +4 -11
  158. package/dist/{workspace-assets-DVn0d-fN.js → workspace-assets-RD6IhOyh.js} +1 -1
  159. package/dist/{workspace-delete-DfloiBWp.js → workspace-delete-CrNGUuBp.js} +1 -1
  160. package/package.json +2 -2
  161. package/dist/components/agents-sdk/SubagentRunDetails.d.ts +0 -40
  162. package/dist/components/agents-sdk/SubagentRunDetails.js +0 -98
  163. package/dist/merge-refs-DF_7w2x_.js +0 -18
  164. package/dist/{icons-DvlrWt54.js → icons-Cn3vWZRs.js} +1 -1
@@ -1,5 +1,5 @@
1
1
  import { t as cx } from "./class-names-BiMDVpUo.js";
2
- import { t as CopyButton } from "./copy-button-M4sAp9xS.js";
2
+ import { t as CopyButton } from "./copy-button-BsmxSSeD.js";
3
3
  import { Select } from "./components/foundations/Select.js";
4
4
  import * as React from "react";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import { J as PromptInputMessage } from "./PromptInput-C3adKglc.js";
2
2
  import { n as AgentToolRunValue } from "./AgentToolRunsContext-DniwGn96.js";
3
- import { n as ResponsiveSidebarShell } from "./ResponsiveSidebarShell-DoZlSP30.js";
3
+ import { i as ResponsiveSidebarShell } from "./ResponsiveSidebarShell-DzBGlRJF.js";
4
4
  import { t as ThinkThreadItem } from "./ThinkThreadPicker-BmIZmpae.js";
5
5
  import * as React from "react";
6
6
  //#region src/components/agents-sdk/EmployeeChrome.d.ts
@@ -128,8 +128,8 @@ interface EmployeeMenuProps {
128
128
  declare function EmployeeMenu({ renderLink, view, identity, onModel, onSignOut, companion, passkeys, follow, workbenchNavigation, navigation }: EmployeeMenuProps): React.JSX.Element;
129
129
  interface EmployeeShellProps<Thread extends ThinkThreadItem = ThinkThreadItem> extends EmployeeMenuProps {
130
130
  view: EmployeeView;
131
- /** Compact workbench back control; the host can return from a file to its workspace. */
132
- compactBack?: React.ReactNode;
131
+ /** Replaces the default Back to chat link in every layout. */
132
+ back?: React.ReactNode;
133
133
  /** Host-projected thread history; the chrome neither fetches nor persists it. */
134
134
  threads?: readonly Thread[];
135
135
  /** Selected thread, used for the title, the picker, and the return link. */
@@ -146,7 +146,7 @@ interface EmployeeShellProps<Thread extends ThinkThreadItem = ThinkThreadItem> e
146
146
  navigation?: readonly EmployeeWorkbenchItem[];
147
147
  children: React.ReactNode;
148
148
  }
149
- declare function EmployeeShell<Thread extends ThinkThreadItem = ThinkThreadItem>({ view, threads, threadId, agentRun, renderLink, appBarLeading, compactBack, onDeleteThread, sidebar, sidebarLabel, navigation, children, ...menu }: EmployeeShellProps<Thread>): React.JSX.Element;
149
+ declare function EmployeeShell<Thread extends ThinkThreadItem = ThinkThreadItem>({ view, threads, threadId, agentRun, back, renderLink, appBarLeading, onDeleteThread, sidebar, sidebarLabel, navigation, children, ...menu }: EmployeeShellProps<Thread>): React.JSX.Element;
150
150
  /** Policy and connection gates are host facts, not design-system presets. */
151
151
  declare function EmployeeGate({ status, connectingLabel, identity, brand, modelSetup }: {
152
152
  status: EmployeeStatus;
@@ -1,8 +1,8 @@
1
- import { p as ChevronRightIcon } from "./icons-DvlrWt54.js";
1
+ import { p as ChevronRightIcon } from "./icons-Cn3vWZRs.js";
2
2
  import { IconButton } from "./components/foundations/IconButton.js";
3
3
  import { DescriptionList } from "./components/foundations/DescriptionList.js";
4
4
  import { a as readExecutionResult, i as executionResultSummary, n as executionResultFiles, r as executionResultPath } from "./execution-result-DWVmm-bL.js";
5
- import { a as httpUrl, i as WorkspaceComposerLink, r as WebsiteLink } from "./workspace-assets-DVn0d-fN.js";
5
+ import { a as httpUrl, i as WorkspaceComposerLink, r as WebsiteLink } from "./workspace-assets-RD6IhOyh.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 FolderIcon, S as FileIcon, p as ChevronRightIcon, w as FolderOpenIcon } from "./icons-DvlrWt54.js";
2
+ import { C as FolderIcon, S as FileIcon, p as ChevronRightIcon, w as FolderOpenIcon } from "./icons-Cn3vWZRs.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,17 +1,17 @@
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 { C as FolderIcon, D as LinkIcon, K as SpinnerIcon, L as PauseIcon, P as MonitorIcon, S as FileIcon, T as InfoIcon, _ as DotIcon, d as CheckIcon, f as ChevronDownIcon, j as MessageSquareIcon, p as ChevronRightIcon, rt as XIcon, tt as WarningIcon, u as CalendarIcon } from "./icons-Cn3vWZRs.js";
3
4
  import { Collapsible } from "./components/foundations/Collapsible.js";
4
- import { C as FolderIcon, D as LinkIcon, K as SpinnerIcon, L as PauseIcon, P as MonitorIcon, S as FileIcon, T as InfoIcon, _ as DotIcon, d as CheckIcon, f as ChevronDownIcon, j as MessageSquareIcon, p as ChevronRightIcon, rt as XIcon, tt as WarningIcon, u as CalendarIcon } from "./icons-DvlrWt54.js";
5
5
  import { Button } from "./components/foundations/Button.js";
6
- import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./components/ai-sdk/AgentAttention.js";
7
6
  import { Tooltip } from "./components/foundations/Tooltip.js";
8
- import { Avatar } from "./components/foundations/Avatar.js";
9
- import { CorrespondentName, correspondentHandleLabel } from "./components/ai-sdk/Correspondent.js";
10
7
  import { EmptyState } from "./components/foundations/EmptyState.js";
11
8
  import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
9
+ import { Avatar } from "./components/foundations/Avatar.js";
12
10
  import { AppIcon } from "./components/foundations/AppIcon.js";
13
11
  import { LinkButton } from "./components/foundations/LinkButton.js";
14
12
  import { getThinkExecutionRunStatus } from "./components/agents-sdk/ThinkExecutionRun.js";
13
+ import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./components/ai-sdk/AgentAttention.js";
14
+ import { CorrespondentName, correspondentHandleLabel } from "./components/ai-sdk/Correspondent.js";
15
15
  import * as React from "react";
16
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
17
  import { useRender } from "@base-ui/react/use-render";
@@ -10,6 +10,8 @@ interface ResponsiveSidebarShellControls {
10
10
  closeSidebar: () => void;
11
11
  /** Close only when the shell is currently using its compact drawer layout. */
12
12
  closeSidebarOnCompact: () => void;
13
+ /** Recover a replaced toolbar control after a menu's closing animation completes. */
14
+ restoreBarFocus: () => void;
13
15
  }
14
16
  /** Reuse the shell's measured layout and drawer controls instead of observing it again. */
15
17
  declare function useResponsiveSidebarShell(): ResponsiveSidebarShellControls;
@@ -20,10 +22,8 @@ declare function useResponsiveSidebarShell(): ResponsiveSidebarShellControls;
20
22
  */
21
23
  interface AppBarSlots {
22
24
  /**
23
- * App-owned route element rendered as a labelled back control. Back owns
24
- * the leading slot the same way `leading` does: the shell's own sidebar
25
- * toggle stands down and compact sidebars stay reachable through
26
- * `compactTitleTrigger`.
25
+ * App-owned route element rendered as a labelled back control in the
26
+ * leading group, beside the sidebar toggle when no other trigger owns it.
27
27
  */
28
28
  back?: {
29
29
  label: string;
@@ -70,8 +70,11 @@ interface ResponsiveSidebarShellProps extends Omit<React.HTMLAttributes<HTMLDivE
70
70
  * Omit for a shell that is only a bar row over content — the app bar then
71
71
  * has one mount point whether or not a sidebar exists.
72
72
  *
73
- * Open/closed is shell-internal: it is ephemeral presentation state, not a
74
- * route, so no host controls it and no resize ever writes into a router.
73
+ * Open/closed is ephemeral presentation state, not a route. It is
74
+ * uncontrolled by default and can be controlled with `sidebarOpen` and
75
+ * `onSidebarOpenChange`; the shell never writes resize changes into a router.
76
+ * If `bar.hidden` is used with a sidebar, the host-owned bar must provide a
77
+ * control that can open the sidebar.
75
78
  */
76
79
  sidebar?: React.ReactNode | ((controls: ResponsiveSidebarShellControls) => React.ReactNode);
77
80
  /** Main content. */
@@ -90,6 +93,8 @@ interface ResponsiveSidebarShellProps extends Omit<React.HTMLAttributes<HTMLDivE
90
93
  defaultSidebarWidth?: number;
91
94
  /** Shell-owned application bar composed from slots. */
92
95
  bar?: ResponsiveSidebarShellBar;
96
+ /** Let the active ThinkFullApp workbench compose its controls into this bar row. */
97
+ contentBar?: boolean;
93
98
  /**
94
99
  * Host-owned error shown in the main column above the content, without
95
100
  * replacing it. The shell renders the alert anatomy; pass the message.
@@ -106,9 +111,19 @@ interface ResponsiveSidebarShellProps extends Omit<React.HTMLAttributes<HTMLDivE
106
111
  * hook, and its container name `responsive-sidebar-shell` is public contract:
107
112
  * surfaces that compose the shell size themselves against it.
108
113
  */
109
- declare function ResponsiveSidebarShell({ sidebar, sidebarLabel, sidebarOpen, sidebarTogglePlacement, defaultSidebarOpen, defaultSidebarWidth, onSidebarOpenChange, bar, error, showMainLabel, className, children, ref, style, ...props }: ResponsiveSidebarShellProps & {
114
+ declare function ResponsiveSidebarShell({ sidebar, sidebarLabel, sidebarOpen, sidebarTogglePlacement, defaultSidebarOpen, defaultSidebarWidth, onSidebarOpenChange, bar, contentBar, error, showMainLabel, className, children, ref, style, ...props }: ResponsiveSidebarShellProps & {
110
115
  /** Ref forwarded to the component's rendered root element. */
111
116
  ref?: React.Ref<HTMLDivElement>;
112
117
  }): React.JSX.Element;
118
+ /** Pane-owned slots; the enclosing shell retains its own title renderer. */
119
+ type ResponsiveSidebarAppBarProps = Pick<ResponsiveSidebarShellBar, "title" | "titleRender" | "leading" | "actions" | "primary" | "label" | "className">;
120
+ /**
121
+ * A pane's title, Back control and actions share its enclosing shell's bar.
122
+ * Outside an opted-in workbench this renders a standalone application bar.
123
+ * A portal preserves the pane's state and providers without registering
124
+ * React nodes in ancestor state or rerendering the conversation on each action.
125
+ * Submit controls moved here must name their owning form with `form`.
126
+ */
127
+ declare function ResponsiveSidebarAppBar(props: ResponsiveSidebarAppBarProps): React.JSX.Element;
113
128
  //#endregion
114
- export { ResponsiveSidebarShellProps as a, ResponsiveSidebarShellControls as i, ResponsiveSidebarShell as n, useResponsiveSidebarShell as o, ResponsiveSidebarShellBar as r, AppBarSlots as t };
129
+ export { ResponsiveSidebarShellBar as a, useResponsiveSidebarShell as c, ResponsiveSidebarShell as i, ResponsiveSidebarAppBar as n, ResponsiveSidebarShellControls as o, ResponsiveSidebarAppBarProps as r, ResponsiveSidebarShellProps as s, AppBarSlots as t };
@@ -1,7 +1,7 @@
1
1
  import { n as mergeBaseClassName } from "./class-names-BiMDVpUo.js";
2
- import { B as PlusIcon, d as CheckIcon, f as ChevronDownIcon, tt as WarningIcon } from "./icons-DvlrWt54.js";
3
- import { Menu } from "./components/foundations/Menu.js";
2
+ import { B as PlusIcon, d as CheckIcon, f as ChevronDownIcon, tt as WarningIcon } from "./icons-Cn3vWZRs.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,8 +1,8 @@
1
1
  import { i as AgentMessageRenderPartContext } from "./AgentMessageParts-BtWwiE4f.js";
2
2
  import { AgentChatMessageContentProps } from "./components/agents-sdk/AgentChat.js";
3
3
  import { n as AgentToolRunValue } from "./AgentToolRunsContext-DniwGn96.js";
4
- import { l as ThinkChatPart } from "./ThinkChatToolParts-BucHi63O.js";
5
- import { t as ThinkChatActivityDescription } from "./ThinkChatActivitySummary-DZVy3uQV.js";
4
+ import { u as ThinkChatPart } from "./ThinkChatToolParts-BrntWlpa.js";
5
+ import { t as ThinkChatActivityDescription } from "./ThinkChatActivitySummary-ChJ8Iu2T.js";
6
6
  import * as React from "react";
7
7
  import { DynamicToolUIPart, ToolUIPart, UIMessage } from "ai";
8
8
  //#region src/components/agents-sdk/ThinkChatActivity.d.ts
@@ -34,13 +34,22 @@ interface ThinkChatActivityRendererOptions<MessageT extends UIMessage = UIMessag
34
34
  interface ThinkChatActivityProps {
35
35
  /** Render with the log expanded. */
36
36
  defaultOpen?: boolean;
37
+ /** Consecutive reasoning and tool parts to summarize and inspect, in recorded order. */
37
38
  parts: readonly ThinkChatPart[];
38
- /** Defaults to deriving from part states (reasoning streaming, tool awaiting output). */
39
+ /**
40
+ * Explicit streaming state. When omitted, terminal metadata or a settled action
41
+ * takes precedence over stale part states before streaming is inferred.
42
+ */
39
43
  isStreaming?: boolean;
40
44
  /** Per-tool action/panel overrides, keyed by tool name. */
41
45
  toolRenderers?: ThinkChatToolRenderers;
42
46
  /** Replaces the summary action after the activity settles. */
43
47
  settledAction?: string;
48
+ /**
49
+ * Marks step states as terminal even when this run does not show the message
50
+ * summary. Defaults to whether `settledAction` is provided.
51
+ */
52
+ isTerminal?: boolean;
44
53
  /**
45
54
  * Uniquely identifies this run across the whole transcript for persisted
46
55
  * disclosure state (the activity renderer passes `${message.id}:${runStart}`).
@@ -50,7 +59,14 @@ interface ThinkChatActivityProps {
50
59
  */
51
60
  stateKey: string;
52
61
  }
53
- declare function ThinkChatActivity({ parts, defaultOpen, isStreaming, toolRenderers, settledAction, stateKey }: ThinkChatActivityProps): React.JSX.Element | null;
62
+ /**
63
+ * One run of agent work as a collapsed Activity block: while streaming the
64
+ * action shimmers with the live step; settled, it becomes a short summary
65
+ * ("Thought, read 2 files and ran a command") over an expandable step log
66
+ * with per-tool panels. Normally reached through `ThinkChat.MessageContent`;
67
+ * exported for apps that lay out messages themselves.
68
+ */
69
+ declare function ThinkChatActivity({ parts, defaultOpen, isStreaming, toolRenderers, settledAction, isTerminal, stateKey }: ThinkChatActivityProps): React.JSX.Element | null;
54
70
  /**
55
71
  * Builds a renderPart handler that folds every run of consecutive activity
56
72
  * parts (reasoning + tool calls) into one collapsed Activity box. Everything
@@ -1,5 +1,5 @@
1
1
  import { i as AgentActivityIconKind, s as AgentActivitySummary } from "./AgentActivity-DSObWhDU.js";
2
- import { l as ThinkChatPart } from "./ThinkChatToolParts-BucHi63O.js";
2
+ import { u as ThinkChatPart } from "./ThinkChatToolParts-BrntWlpa.js";
3
3
  import { DynamicToolUIPart, ToolUIPart } from "ai";
4
4
  //#region src/components/agents-sdk/ThinkChatActivitySummary.d.ts
5
5
  interface ThinkChatToolDescriber {
@@ -17,14 +17,14 @@ interface ThinkChatActivityDescription {
17
17
  detail?: string;
18
18
  }
19
19
  declare function activityPartUrl(part: ThinkChatPart): string | null;
20
- declare function activityPartIconKind(part: ThinkChatPart): AgentActivityIconKind;
20
+ declare function activityPartIconKind(part: ThinkChatPart, hasUrl?: boolean): AgentActivityIconKind;
21
21
  /**
22
22
  * One-line natural-language action for an activity part ("Ran vp test",
23
23
  * "Fetched developers.cloudflare.com/agents/"); `null` for boundaries that
24
24
  * aren't steps (step-start). Exported so a custom `renderPart` can reuse the
25
25
  * built-in labels for tools it doesn't override.
26
26
  */
27
- declare function describeThinkChatActivityPart(part: ThinkChatPart, toolRenderers?: ThinkChatToolDescribers): ThinkChatActivityDescription | null;
27
+ declare function describeThinkChatActivityPart(part: ThinkChatPart, toolRenderers?: ThinkChatToolDescribers, isTerminalTurn?: boolean): ThinkChatActivityDescription | null;
28
28
  declare function summarizeActivitySteps(parts: readonly ThinkChatPart[]): string;
29
29
  interface ThinkChatToolLifecycleSnapshot {
30
30
  toolName: string;
@@ -141,8 +141,8 @@ type BrowserToolPart = ToolUIPart<BrowserUITools>;
141
141
  declare function isBrowserToolPart(part: ThinkChatPart): part is BrowserToolPart;
142
142
  type ExecuteToolPart = ToolUIPart<{
143
143
  execute: {
144
- input: ProxyToolInput;
145
- output: ProxyToolOutput;
144
+ input: unknown;
145
+ output: unknown;
146
146
  };
147
147
  }>;
148
148
  declare function isExecuteToolPart(part: ThinkChatPart): part is ExecuteToolPart;
@@ -152,6 +152,32 @@ declare function isThinkChatActivityPart(part: ThinkChatPart | undefined, exclud
152
152
  declare function isPartWorking(part: ThinkChatPart): boolean;
153
153
  /** Errored or denied — upstream's simplified tool-part state vocabulary. */
154
154
  declare function isPartFailed(part: ThinkChatPart): boolean;
155
+ /** Known outcome envelopes from Think actions and Rook's static tools. */
156
+ type ThinkToolOutcome = "failed" | "denied" | undefined;
157
+ type FollowUpReceipt = {
158
+ operation: "schedule";
159
+ id: string;
160
+ scheduledFor: string;
161
+ prompt: string;
162
+ } | {
163
+ operation: "list";
164
+ followUps: {
165
+ id: string;
166
+ scheduledFor: string;
167
+ prompt: string;
168
+ }[];
169
+ } | {
170
+ operation: "cancel";
171
+ id: string;
172
+ cancelled: boolean;
173
+ };
174
+ /** Validated final receipt for the static Rook follow-up action only. */
175
+ declare function readFollowUpReceipt(part: ThinkChatPart): FollowUpReceipt | undefined;
176
+ /**
177
+ * Interpret only contracts known to return error envelopes. Dynamic/MCP
178
+ * results may have an ordinary `error` field and remain generic data.
179
+ */
180
+ declare function thinkToolOutcome(part: ThinkChatPart): ThinkToolOutcome;
155
181
  declare function displayUrl(url: string | undefined): string;
156
182
  //#endregion
157
- export { isWorkspaceToolPart as S, isPartWorking as _, SessionContextToolPart as a, isSkillToolPart as b, ThinkBashToolPart as c, WorkspaceToolPart as d, displayUrl as f, isPartFailed as g, isFetchToolPart as h, SessionContextToolName as i, ThinkChatPart as l, isExecuteToolPart as m, ExecuteToolPart as n, SkillToolPart as o, isBrowserToolPart as p, FetchToolPart as r, ThinkBashToolOutput as s, BrowserToolPart as t, ThinkWorkspaceToolName as u, isSessionContextToolFailure as v, isThinkChatActivityPart as x, isSessionContextToolPart as y };
183
+ export { isThinkChatActivityPart as C, thinkToolOutcome as E, isSkillToolPart as S, readFollowUpReceipt as T, isFetchToolPart as _, SessionContextToolName as a, isSessionContextToolFailure as b, ThinkBashToolOutput as c, ThinkToolOutcome as d, ThinkWorkspaceToolName as f, isExecuteToolPart as g, isBrowserToolPart as h, FollowUpReceipt as i, ThinkBashToolPart as l, displayUrl as m, ExecuteToolPart as n, SessionContextToolPart as o, WorkspaceToolPart as p, FetchToolPart as r, SkillToolPart as s, BrowserToolPart as t, ThinkChatPart as u, isPartFailed as v, isWorkspaceToolPart as w, isSessionContextToolPart as x, isPartWorking as y };
@@ -1,14 +1,17 @@
1
+ import { ResponsiveSidebarAppBar } from "./components/general-purpose/ResponsiveSidebarShell.js";
1
2
  import { jsx, jsxs } from "react/jsx-runtime";
2
3
  //#region src/components/_internal/WorkspaceConceptPanel.tsx
3
4
  /** Shared workbench chrome keeps the title visible while its content scrolls. */
4
5
  function WorkspaceConceptPanel({ heading, children, ...props }) {
5
6
  return /* @__PURE__ */ jsxs("section", {
6
7
  ...props,
7
- children: [/* @__PURE__ */ jsx("header", {
8
+ children: [/* @__PURE__ */ jsx(ResponsiveSidebarAppBar, {
8
9
  className: "workspace-concept-panel__header",
9
- children: /* @__PURE__ */ jsx("h2", {
10
- className: "workspace-concept-panel__title",
11
- children: heading
10
+ label: `${heading} controls`,
11
+ title: heading,
12
+ titleRender: (props) => /* @__PURE__ */ jsx("h2", {
13
+ ...props,
14
+ children: props.children
12
15
  })
13
16
  }), /* @__PURE__ */ jsx("div", {
14
17
  className: "workspace-concept-panel__body",
@@ -1,12 +1,13 @@
1
- import { b as EyeIcon, d as CheckIcon, k as MaximizeIcon, m as CodeIcon, r as ArrowLeftIcon, tt as WarningIcon, v as DownloadIcon } from "./icons-DvlrWt54.js";
1
+ import { b as EyeIcon, d as CheckIcon, k as MaximizeIcon, m as CodeIcon, r as ArrowLeftIcon, tt as WarningIcon, v as DownloadIcon } from "./icons-Cn3vWZRs.js";
2
+ import { t as CopyButton } from "./copy-button-BsmxSSeD.js";
2
3
  import { i as formatClock } from "./format-CWaZEp5o.js";
3
- import { t as CopyButton } from "./copy-button-M4sAp9xS.js";
4
- import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-Bs_Z03eC.js";
5
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-B4K656LO.js";
6
7
  import { inferWorkspaceLanguage, inferWorkspaceMedia, isWorkspaceMarkdownPath, isWorkspaceSkillPath, parseWorkspaceSkill } from "./components/agents-sdk/WorkspaceFile.js";
7
8
  import { i as useWorkspaceNavigationContext } from "./WorkspaceLink-BeFAXpbI.js";
8
9
  import { useWorkspaceNavigationRestoration } from "./components/agents-sdk/WorkspaceNavigationRestoration.js";
9
- import { t as ExecutionResult } from "./ExecutionResult-BSZsUbrL.js";
10
+ import { t as ExecutionResult } from "./ExecutionResult-Wd1sKAvD.js";
10
11
  import { n as WorkspaceMessageResponse, r as createWorkspaceRehypePlugins } from "./WorkspaceMessageResponse-DnsdpaGU.js";
11
12
  import { WorkspaceHeader } from "./components/agents-sdk/WorkspaceHeader.js";
12
13
  import * as React from "react";
@@ -603,11 +604,7 @@ function useWorkspaceFileNavigation(path, file, isLoading, isPreparingAsset) {
603
604
  }
604
605
  /** Workspace file preview composed from CodeBlock and AppTopBar. */
605
606
  function WorkspaceFileView({ preview, appearance = "contained", file, path, isLoading, isRefreshing, leading, actions, showSkillIdentity = true, onRefresh }) {
606
- const [markdownViewState, setMarkdownViewState] = React.useState(() => ({
607
- path,
608
- view: "preview"
609
- }));
610
- const markdownView = markdownViewState.path === path ? markdownViewState.view : "preview";
607
+ const [markdownView, toggleMarkdownView] = useWorkspaceFileViewMode(path);
611
608
  const isMarkdown = isWorkspaceMarkdownPath(path);
612
609
  const headingPrefix = React.useId().replaceAll(":", "");
613
610
  const media = inferWorkspaceMedia(path, file?.asset?.mimeType ?? file?.info?.mimeType);
@@ -629,87 +626,96 @@ function WorkspaceFileView({ preview, appearance = "contained", file, path, isLo
629
626
  downloadUrl: assetUrl.downloadUrl,
630
627
  allowOpen: media?.mimeType !== "image/svg+xml"
631
628
  }) : null;
632
- const headerProps = {
633
- path,
634
- leading: workspaceNavigation ? /* @__PURE__ */ jsx(AppTopBar.Link, {
635
- label: "Back to workspace",
636
- "data-workspace-back": "",
637
- render: workspaceNavigation.navigation.renderLink({ kind: "files" }),
638
- children: /* @__PURE__ */ jsx(ArrowLeftIcon, { "aria-hidden": "true" })
639
- }) : leading,
640
- actions: /* @__PURE__ */ jsxs(Fragment, { children: [
641
- actions,
642
- assetActions,
643
- isMarkdown || preview ? /* @__PURE__ */ jsx(WorkspaceViewToggle, {
644
- view: markdownView,
645
- isMarkdown,
646
- onToggle: () => setMarkdownViewState({
647
- path,
648
- view: markdownView === "preview" ? "source" : "preview"
649
- })
650
- }) : null
651
- ] }),
652
- isRefreshing,
653
- onRefresh
654
- };
655
- const unavailable = filePreviewStatus(file, isLoading, assetUrl.error, isPreparingAsset, media);
656
- if (!file || unavailable) return /* @__PURE__ */ jsxs("div", {
657
- ref: fileViewRef,
658
- className: "workspace-explorer__file",
659
- "data-appearance": appearance,
660
- "data-workspace-restoration-scope": "file",
661
- children: [/* @__PURE__ */ jsx(WorkspaceHeader, { ...headerProps }), /* @__PURE__ */ jsx("div", {
662
- className: "workspace-explorer__empty",
663
- "data-workspace-file-content": "",
664
- "data-workspace-focus-target": "",
665
- role: unavailable?.role,
666
- children: unavailable?.message ?? "File preview is unavailable."
667
- })]
668
- });
669
- if (file.asset && media && assetUrl.url) return /* @__PURE__ */ jsxs("div", {
670
- ref: fileViewRef,
671
- className: "workspace-explorer__file",
672
- "data-appearance": appearance,
673
- "data-workspace-restoration-scope": "file",
674
- children: [/* @__PURE__ */ jsx(WorkspaceHeader, { ...headerProps }), /* @__PURE__ */ jsx(WorkspaceMediaPreview, {
675
- asset: file.asset,
676
- fileName: file.name,
677
- media,
678
- url: assetUrl.url,
679
- downloadUrl: assetUrl.downloadUrl,
680
- onScroll: handleScroll
681
- })]
682
- });
683
- if (preview && markdownView === "preview") return /* @__PURE__ */ jsxs("div", {
684
- ref: fileViewRef,
685
- className: "workspace-explorer__file",
686
- "data-appearance": appearance,
687
- "data-workspace-restoration-scope": "file",
688
- children: [/* @__PURE__ */ jsx(WorkspaceHeader, { ...headerProps }), /* @__PURE__ */ jsx("div", {
689
- className: "workspace-explorer__preview",
690
- "data-workspace-file-content": "",
691
- "data-workspace-focus-target": "",
692
- onScroll: handleScroll,
693
- children: preview
694
- })]
695
- });
629
+ const resolvedLeading = workspaceNavigation ? /* @__PURE__ */ jsx(AppTopBar.Link, {
630
+ label: "Back to workspace",
631
+ "data-workspace-back": "",
632
+ render: workspaceNavigation.navigation.renderLink({ kind: "files" }),
633
+ children: /* @__PURE__ */ jsx(ArrowLeftIcon, { "aria-hidden": "true" })
634
+ }) : leading;
635
+ const viewActions = /* @__PURE__ */ jsxs(Fragment, { children: [
636
+ actions,
637
+ assetActions,
638
+ isMarkdown || preview ? /* @__PURE__ */ jsx(WorkspaceViewToggle, {
639
+ view: markdownView,
640
+ isMarkdown,
641
+ onToggle: toggleMarkdownView
642
+ }) : null
643
+ ] });
644
+ const previewing = markdownView === "preview";
696
645
  return /* @__PURE__ */ jsx("div", {
697
646
  ref: fileViewRef,
698
647
  className: "workspace-explorer__file",
699
648
  "data-appearance": appearance,
700
649
  "data-workspace-restoration-scope": "file",
701
- children: /* @__PURE__ */ jsx(WorkspaceTextFile, {
650
+ children: /* @__PURE__ */ jsx(WorkspaceFileBody, {
702
651
  file,
703
- headerProps,
704
- handleScroll,
705
- markdown: isMarkdown && markdownView === "preview" ? /* @__PURE__ */ jsx(WorkspaceMarkdownArticle, {
652
+ unavailable: filePreviewStatus(file, isLoading, assetUrl.error, isPreparingAsset, media),
653
+ media,
654
+ assetUrl,
655
+ preview: previewing ? preview : void 0,
656
+ markdown: file && isMarkdown && previewing ? /* @__PURE__ */ jsx(WorkspaceMarkdownArticle, {
706
657
  file,
707
658
  path,
708
659
  showSkillIdentity,
709
660
  components: markdownComponents,
710
661
  rehypePlugins: workspaceRehypePlugins
711
- }) : void 0
662
+ }) : void 0,
663
+ headerProps: {
664
+ path,
665
+ leading: resolvedLeading,
666
+ actions: viewActions,
667
+ isRefreshing,
668
+ onRefresh
669
+ },
670
+ handleScroll
671
+ })
672
+ });
673
+ }
674
+ /** Markdown and host previews open rendered for each path; source is one toggle away. */
675
+ function useWorkspaceFileViewMode(path) {
676
+ const [state, setState] = React.useState(() => ({
677
+ path,
678
+ view: "preview"
679
+ }));
680
+ const view = state.path === path ? state.view : "preview";
681
+ const toggle = () => setState({
682
+ path,
683
+ view: view === "preview" ? "source" : "preview"
684
+ });
685
+ return [view, toggle];
686
+ }
687
+ /** The status, media, host preview, or text body under the file's header. */
688
+ function WorkspaceFileBody({ file, unavailable, media, assetUrl, preview, markdown, headerProps, handleScroll }) {
689
+ if (!file || unavailable) return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(WorkspaceHeader, { ...headerProps }), /* @__PURE__ */ jsx("div", {
690
+ className: "workspace-explorer__empty",
691
+ "data-workspace-file-content": "",
692
+ "data-workspace-focus-target": "",
693
+ role: unavailable?.role,
694
+ children: unavailable?.message ?? "File preview is unavailable."
695
+ })] });
696
+ if (file.asset && media && assetUrl.url) return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(WorkspaceHeader, { ...headerProps }), /* @__PURE__ */ jsx(WorkspaceMediaPreview, {
697
+ asset: file.asset,
698
+ fileName: file.name,
699
+ media,
700
+ url: assetUrl.url,
701
+ downloadUrl: assetUrl.downloadUrl,
702
+ onScroll: handleScroll
703
+ })] });
704
+ if (preview) return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(WorkspaceHeader, { ...headerProps }), /* @__PURE__ */ jsx("div", {
705
+ className: "workspace-explorer__preview",
706
+ "data-workspace-file-content": "",
707
+ "data-workspace-focus-target": "",
708
+ onScroll: handleScroll,
709
+ children: /* @__PURE__ */ jsx(ContentAppBarOutletContext.Provider, {
710
+ value: null,
711
+ children: preview
712
712
  })
713
+ })] });
714
+ return /* @__PURE__ */ jsx(WorkspaceTextFile, {
715
+ file,
716
+ headerProps,
717
+ handleScroll,
718
+ markdown
713
719
  });
714
720
  }
715
721
  function WorkspaceTextFile({ file, headerProps, handleScroll, markdown }) {
@@ -0,0 +1,6 @@
1
+ import { createContext } from "react";
2
+ //#region src/components/_internal/app-bar-outlet.ts
3
+ const ShellAppBarOutletContext = createContext(null);
4
+ const ContentAppBarOutletContext = createContext(null);
5
+ //#endregion
6
+ export { ShellAppBarOutletContext as n, ContentAppBarOutletContext as t };
@@ -1,5 +1,5 @@
1
1
  import { canRequestFavicon, inferFaviconUrl } from "../../utils/favicon.js";
2
- import { D as LinkIcon, P as MonitorIcon, Q as TerminalIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, U as SearchIcon, nt as WrenchIcon, tt as WarningIcon } from "../../icons-DvlrWt54.js";
2
+ import { D as LinkIcon, P as MonitorIcon, Q as TerminalIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, U as SearchIcon, nt as WrenchIcon, tt as WarningIcon } from "../../icons-Cn3vWZRs.js";
3
3
  import * as React from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region src/components/agents-sdk/AgentActivity.tsx
@@ -1,23 +1,23 @@
1
1
  import { t as cx } from "../../class-names-BiMDVpUo.js";
2
+ import { $ as TrashIcon, H as RefreshIcon, K as SpinnerIcon, R as PencilIcon, t as ArchiveIcon } from "../../icons-Cn3vWZRs.js";
2
3
  import { ExpansionStateProvider } from "../ai-sdk/ExpansionState.js";
3
- import { $ as TrashIcon, H as RefreshIcon, K as SpinnerIcon, R as PencilIcon, t as ArchiveIcon } from "../../icons-DvlrWt54.js";
4
- import { AgentChatMessageEditor } from "../ai-sdk/AgentChatMessageEditor.js";
5
- import { PromptInput, PromptInputSubmit, PromptInputTray, composerLinksToReferences, usePromptInputController } from "../ai-sdk/PromptInput.js";
6
4
  import { Message, MessageAction, MessageActions, MessageCopyAction, MessageMeta, MessageTimestamp } from "../ai-sdk/Message.js";
5
+ import { AgentEventRow, getAgentEvent } from "./AgentEvent.js";
6
+ import { AgentChatQueueProvider, useOptionalAgentChatQueue } from "./AgentChatQueue.js";
7
7
  import { AgentMessageParts } from "../ai-sdk/AgentMessageParts.js";
8
- import { Marker, MarkerContent } from "../foundations/Marker.js";
8
+ import { AgentChatMessageEditor } from "../ai-sdk/AgentChatMessageEditor.js";
9
9
  import { VirtualMessageScroller } from "../ai-sdk/MessageScrollerVirtual.js";
10
+ import { PromptInput, PromptInputSubmit, PromptInputTray, composerLinksToReferences, usePromptInputController } from "../ai-sdk/PromptInput.js";
10
11
  import { Queue, QueueItem, QueueItemAction, QueueItemActions, QueueItemContent, QueueItemIndicator, QueueList } from "../ai-sdk/Queue.js";
11
- import { AgentEventRow, getAgentEvent } from "./AgentEvent.js";
12
- import { AgentChatQueueProvider, useOptionalAgentChatQueue } from "./AgentChatQueue.js";
13
12
  import { PromptInputApproval, getApprovalStateKey, getPendingToolApprovals } from "./PromptInputApproval.js";
14
13
  import { BrandLoading } from "../general-purpose/BrandLoading.js";
14
+ import { Marker, MarkerContent } from "../foundations/Marker.js";
15
15
  import * as React from "react";
16
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
17
  import { useRender } from "@base-ui/react/use-render";
18
18
  import { mergeProps } from "@base-ui/react/merge-props";
19
- import { isTextUIPart } from "ai";
20
19
  import { isCompactionMessage } from "agents/sessions";
20
+ import { isTextUIPart } from "ai";
21
21
  //#region src/components/agents-sdk/AgentChat.tsx
22
22
  function observeAgentChatDock(element) {
23
23
  if (!element || typeof ResizeObserver === "undefined") return;