@mcp-b/react-components 0.36.0 → 0.38.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.
- package/dist/{AgentActivity-SP1WfLDW.d.ts → AgentActivity-Cc_oDYum.d.ts} +1 -1
- package/dist/{CodeBlock-Bk4nn7l-.js → CodeBlock-DO4Hdu1R.js} +1 -1
- package/dist/{FileTree-4WP4Uc_m.js → FileTree-DbQMpvxV.js} +1 -1
- package/dist/Message-DBsHHhcM.d.ts +228 -0
- package/dist/{ThinkChat-ByR-QT_D.js → ThinkChat-DkA4Wr71.js} +9 -4
- package/dist/{ThinkChatActivity-Dkmm2pIj.d.ts → ThinkChatActivity-D6-_5Phw.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-teRjrPxW.d.ts → ThinkChatActivitySummary-BtBQgMg6.d.ts} +1 -1
- package/dist/{ToggleGroup-BrQZOQn_.d.ts → ToggleGroup-_pQMyHGM.d.ts} +1 -1
- package/dist/{WorkspaceFileView-DTHJLKW_.js → WorkspaceFileView-DeGzWwhK.js} +5 -5
- package/dist/{WorkspaceLink-DQogVe8E.d.ts → WorkspaceLink-Bh9-Jo1r.d.ts} +1 -1
- package/dist/{WorkspaceLink-DZeLe_jN.js → WorkspaceLink-DtH66bAY.js} +4 -3
- package/dist/{WorkspaceMessageResponse-BWbkIELl.js → WorkspaceMessageResponse-CJCmGvTx.js} +64 -7
- package/dist/WorkspaceMessageResponse-Cy28WGSz.d.ts +24 -0
- package/dist/components/agents-sdk/AgentActivity.d.ts +1 -1
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentActivityPreview.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivityPreview.js +3 -3
- package/dist/components/agents-sdk/AgentChat.js +9 -9
- package/dist/components/agents-sdk/BrowserLiveView.js +2 -2
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +2 -2
- package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +4 -4
- package/dist/components/agents-sdk/McpServerPicker.js +2 -2
- package/dist/components/agents-sdk/ModelSelector.js +3 -3
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.js +2 -2
- package/dist/components/agents-sdk/ThinkChat.d.ts +5 -2
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +4 -4
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkFullApp.js +6 -6
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +1 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +4 -4
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +2 -2
- package/dist/components/agents-sdk/ThinkThreadPicker.js +4 -4
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +2 -2
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLink.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +2 -12
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +2 -2
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.d.ts +44 -1
- package/dist/components/ai-sdk/Artifact.js +79 -3
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/InlineCitation.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.d.ts +1 -227
- package/dist/components/ai-sdk/Message.js +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +3 -3
- package/dist/components/ai-sdk/Queue.js +1 -1
- package/dist/components/ai-sdk/Reasoning.js +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/extension/ChatGptSignInScreen.js +1 -1
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.js +3 -3
- package/dist/components/foundations/Card.d.ts +3 -3
- package/dist/components/foundations/Card.js +3 -3
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/Collapsible.js +1 -1
- package/dist/components/foundations/ContextMenu.js +1 -1
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/Commit.js +3 -3
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.js +1 -1
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/Terminal.js +2 -2
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WebPreview.js +1 -1
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.js +4 -4
- package/dist/{copy-button-CsNSSKYG.js → copy-button-4YvddK4e.js} +1 -1
- package/dist/styles/artifact.css +65 -0
- package/package.json +3 -3
- package/dist/{icons-B1Qw05te.js → icons-B4mGvCvc.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-CsNSSKYG.js";
|
|
3
2
|
import { Select } from "./components/foundations/Select.js";
|
|
3
|
+
import { t as CopyButton } from "./copy-button-4YvddK4e.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { createHighlighter } from "shiki";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import { C as FileIcon, T as FolderOpenIcon, m as ChevronRightIcon, w as FolderIcon } from "./icons-
|
|
2
|
+
import { C as FileIcon, T as FolderOpenIcon, m as ChevronRightIcon, w as FolderIcon } from "./icons-B4mGvCvc.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";
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { n as IconButtonProps } from "./IconButton-BAUFhUk8.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { FileUIPart, UIMessage } from "ai";
|
|
4
|
+
import { StreamdownProps } from "streamdown";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ai-sdk/Message.d.ts
|
|
7
|
+
type MessageRole = UIMessage["role"];
|
|
8
|
+
interface MessageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
/**
|
|
10
|
+
* The originating role of the message. Controls alignment and styling via
|
|
11
|
+
* the `data-from` attribute (e.g. user messages align end).
|
|
12
|
+
*/
|
|
13
|
+
from?: MessageRole;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A chat message row. Aligns and styles itself based on {@link from}.
|
|
17
|
+
* Adapted from Vercel AI Elements and restyled with Sigvelo CSS tokens.
|
|
18
|
+
*
|
|
19
|
+
* Compose with {@link MessageContent} for the bubble, {@link MessageActions}
|
|
20
|
+
* for toolbar actions, and {@link MessageBranch} for multi-version responses.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Message from="assistant">
|
|
25
|
+
* <MessageContent>Hello there!</MessageContent>
|
|
26
|
+
* <MessageActions>
|
|
27
|
+
* <MessageAction label="Copy" tooltip="Copy to clipboard">
|
|
28
|
+
* <CopyIcon />
|
|
29
|
+
* </MessageAction>
|
|
30
|
+
* </MessageActions>
|
|
31
|
+
* </Message>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @see {@link https://elements.ai-sdk.dev/components/message | AI Elements Message}
|
|
35
|
+
*/
|
|
36
|
+
declare function Message({
|
|
37
|
+
className,
|
|
38
|
+
from,
|
|
39
|
+
children,
|
|
40
|
+
ref,
|
|
41
|
+
...props
|
|
42
|
+
}: MessageProps & {
|
|
43
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
44
|
+
}): React.JSX.Element;
|
|
45
|
+
interface MessageContentProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
46
|
+
/**
|
|
47
|
+
* The visible bubble/body of a message. Styled differently based on the
|
|
48
|
+
* parent {@link Message}'s `from` attribute.
|
|
49
|
+
*/
|
|
50
|
+
declare function MessageContent({
|
|
51
|
+
className,
|
|
52
|
+
children,
|
|
53
|
+
ref,
|
|
54
|
+
...props
|
|
55
|
+
}: MessageContentProps & {
|
|
56
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
57
|
+
}): React.JSX.Element;
|
|
58
|
+
type MessageResponseProps = StreamdownProps;
|
|
59
|
+
declare const MessageResponse: React.MemoExoticComponent<({
|
|
60
|
+
className,
|
|
61
|
+
components,
|
|
62
|
+
...props
|
|
63
|
+
}: MessageResponseProps) => React.JSX.Element>;
|
|
64
|
+
interface MessageAttachmentProps extends Omit<React.HTMLAttributes<HTMLElement>, "color" | "part"> {
|
|
65
|
+
/** The AI SDK `file` part, taken whole. */
|
|
66
|
+
part: FileUIPart;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A `file` part inside a message: images render inline (click to zoom),
|
|
70
|
+
* anything else becomes a download chip. Covers both directions — files the
|
|
71
|
+
* user attached and files the agent emitted.
|
|
72
|
+
*/
|
|
73
|
+
declare function MessageAttachment({
|
|
74
|
+
part,
|
|
75
|
+
className,
|
|
76
|
+
...props
|
|
77
|
+
}: MessageAttachmentProps): React.JSX.Element;
|
|
78
|
+
interface MessageActionsProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
79
|
+
/**
|
|
80
|
+
* Horizontal list of action buttons (copy, retry, thumbs-up, etc.) shown
|
|
81
|
+
* alongside or beneath a message.
|
|
82
|
+
*/
|
|
83
|
+
declare function MessageActions({
|
|
84
|
+
className,
|
|
85
|
+
children,
|
|
86
|
+
ref,
|
|
87
|
+
...props
|
|
88
|
+
}: MessageActionsProps & {
|
|
89
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
90
|
+
}): React.JSX.Element;
|
|
91
|
+
interface MessageActionProps extends Omit<IconButtonProps, "children"> {
|
|
92
|
+
children?: React.ReactNode;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A single icon button inside {@link MessageActions}. Always has an accessible
|
|
96
|
+
* name; shows a tooltip on hover/focus when {@link tooltip} is set.
|
|
97
|
+
*/
|
|
98
|
+
declare function MessageAction({
|
|
99
|
+
className,
|
|
100
|
+
label,
|
|
101
|
+
tooltip,
|
|
102
|
+
variant,
|
|
103
|
+
color,
|
|
104
|
+
size,
|
|
105
|
+
children,
|
|
106
|
+
ref,
|
|
107
|
+
...props
|
|
108
|
+
}: MessageActionProps & {
|
|
109
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
110
|
+
}): React.JSX.Element;
|
|
111
|
+
interface MessageToolbarProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
112
|
+
/**
|
|
113
|
+
* Horizontal container that places children in a row with space between —
|
|
114
|
+
* typically a {@link MessageBranchSelector} on one side and
|
|
115
|
+
* {@link MessageActions} on the other.
|
|
116
|
+
*/
|
|
117
|
+
declare function MessageToolbar({
|
|
118
|
+
className,
|
|
119
|
+
children,
|
|
120
|
+
ref,
|
|
121
|
+
...props
|
|
122
|
+
}: MessageToolbarProps & {
|
|
123
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
124
|
+
}): React.JSX.Element;
|
|
125
|
+
interface MessageBranchProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
126
|
+
/** Number of response branches rendered by MessageBranchContent. */
|
|
127
|
+
branchCount: number;
|
|
128
|
+
/** Zero-based index of the initially selected branch. */
|
|
129
|
+
defaultBranch?: number;
|
|
130
|
+
/** Controlled branch index. */
|
|
131
|
+
branch?: number;
|
|
132
|
+
/** Called when the selected branch changes. */
|
|
133
|
+
onBranchChange?: (branchIndex: number) => void;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Container for a message response with multiple versions. Tracks which
|
|
137
|
+
* branch is active and exposes navigation through {@link MessageBranchSelector},
|
|
138
|
+
* {@link MessageBranchPrevious}, {@link MessageBranchNext}, and {@link MessageBranchPage}.
|
|
139
|
+
*/
|
|
140
|
+
declare function MessageBranch({
|
|
141
|
+
className,
|
|
142
|
+
branchCount,
|
|
143
|
+
defaultBranch,
|
|
144
|
+
branch,
|
|
145
|
+
onBranchChange,
|
|
146
|
+
children,
|
|
147
|
+
ref,
|
|
148
|
+
...props
|
|
149
|
+
}: MessageBranchProps & {
|
|
150
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
151
|
+
}): React.JSX.Element;
|
|
152
|
+
interface MessageBranchContentProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
153
|
+
/**
|
|
154
|
+
* Renders only the active branch's child. Expects siblings to represent
|
|
155
|
+
* alternative versions of the same response.
|
|
156
|
+
*/
|
|
157
|
+
declare function MessageBranchContent({
|
|
158
|
+
className,
|
|
159
|
+
children,
|
|
160
|
+
ref,
|
|
161
|
+
...props
|
|
162
|
+
}: MessageBranchContentProps & {
|
|
163
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
164
|
+
}): React.JSX.Element;
|
|
165
|
+
interface MessageBranchSelectorProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
166
|
+
/**
|
|
167
|
+
* Inline group containing branch navigation controls (previous / page /
|
|
168
|
+
* next). Hidden automatically when there is only one branch.
|
|
169
|
+
*/
|
|
170
|
+
declare function MessageBranchSelector({
|
|
171
|
+
className,
|
|
172
|
+
children,
|
|
173
|
+
ref,
|
|
174
|
+
...props
|
|
175
|
+
}: MessageBranchSelectorProps & {
|
|
176
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
177
|
+
}): React.JSX.Element | null;
|
|
178
|
+
interface MessageBranchPreviousProps extends Omit<IconButtonProps, "children" | "label"> {
|
|
179
|
+
label?: string;
|
|
180
|
+
children?: React.ReactNode;
|
|
181
|
+
}
|
|
182
|
+
/** Button that selects the previous branch. Disabled at the first branch. */
|
|
183
|
+
declare function MessageBranchPrevious({
|
|
184
|
+
className,
|
|
185
|
+
label,
|
|
186
|
+
variant,
|
|
187
|
+
color,
|
|
188
|
+
size,
|
|
189
|
+
children,
|
|
190
|
+
onClick,
|
|
191
|
+
ref,
|
|
192
|
+
...props
|
|
193
|
+
}: MessageBranchPreviousProps & {
|
|
194
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
195
|
+
}): React.JSX.Element;
|
|
196
|
+
interface MessageBranchNextProps extends Omit<IconButtonProps, "children" | "label"> {
|
|
197
|
+
label?: string;
|
|
198
|
+
children?: React.ReactNode;
|
|
199
|
+
}
|
|
200
|
+
/** Button that selects the next branch. Disabled at the last branch. */
|
|
201
|
+
declare function MessageBranchNext({
|
|
202
|
+
className,
|
|
203
|
+
label,
|
|
204
|
+
variant,
|
|
205
|
+
color,
|
|
206
|
+
size,
|
|
207
|
+
children,
|
|
208
|
+
onClick,
|
|
209
|
+
ref,
|
|
210
|
+
...props
|
|
211
|
+
}: MessageBranchNextProps & {
|
|
212
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
213
|
+
}): React.JSX.Element;
|
|
214
|
+
interface MessageBranchPageProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
215
|
+
/** Customize the displayed text. Defaults to `{index} / {count}`. */
|
|
216
|
+
format?: (currentIndex: number, total: number) => React.ReactNode;
|
|
217
|
+
}
|
|
218
|
+
/** Page indicator (e.g. "1 / 3") for the current branch selection. */
|
|
219
|
+
declare function MessageBranchPage({
|
|
220
|
+
className,
|
|
221
|
+
format,
|
|
222
|
+
ref,
|
|
223
|
+
...props
|
|
224
|
+
}: MessageBranchPageProps & {
|
|
225
|
+
ref?: React.Ref<HTMLSpanElement>;
|
|
226
|
+
}): React.JSX.Element;
|
|
227
|
+
//#endregion
|
|
228
|
+
export { MessageResponse as C, MessageToolbarProps as D, MessageToolbar as E, MessageProps as S, MessageRole as T, MessageBranchProps as _, MessageActionsProps as a, MessageContent as b, MessageBranch as c, MessageBranchNext as d, MessageBranchNextProps as f, MessageBranchPreviousProps as g, MessageBranchPrevious as h, MessageActions as i, MessageBranchContent as l, MessageBranchPageProps as m, MessageAction as n, MessageAttachment as o, MessageBranchPage as p, MessageActionProps as r, MessageAttachmentProps as s, Message as t, MessageBranchContentProps as u, MessageBranchSelector as v, MessageResponseProps as w, MessageContentProps as x, MessageBranchSelectorProps as y };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TransitionSurface } from "./components/foundations/TransitionSurface.js";
|
|
2
|
-
import { AgentChat, compactingNotice } from "./components/agents-sdk/AgentChat.js";
|
|
3
2
|
import { AgentToolRunsProvider, useOptionalAgentToolRuns, useSourceScopedAgentToolEvents } from "./components/agents-sdk/AgentToolRunsContext.js";
|
|
3
|
+
import { AgentChat, compactingNotice } from "./components/agents-sdk/AgentChat.js";
|
|
4
4
|
import { SubagentRunList } from "./components/agents-sdk/SubagentRunList.js";
|
|
5
5
|
import { ThinkChatContext, ThinkChatLiveContext, useOptionalThinkChatContext, useThinkChatContext } from "./components/agents-sdk/ThinkChatContext.js";
|
|
6
6
|
import { ThinkChatActivity, createThinkChatActivityRenderer, renderThinkChatActivityPart } from "./components/agents-sdk/ThinkChatActivity.js";
|
|
7
7
|
import { ThinkRecoveryNotice } from "./components/agents-sdk/ThinkRecoveryNotice.js";
|
|
8
|
-
import { t as WorkspaceMessageResponse } from "./WorkspaceMessageResponse-
|
|
8
|
+
import { t as WorkspaceMessageResponse } from "./WorkspaceMessageResponse-CJCmGvTx.js";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { isTextUIPart } from "ai";
|
|
@@ -195,7 +195,7 @@ const ThinkChatApprovalsContext = React.createContext(null);
|
|
|
195
195
|
* inside the log) or `excludeTools` + your own `renderPart` (standalone
|
|
196
196
|
* card) — see README "App-specific tools" and the Custom Tool Panel story.
|
|
197
197
|
*/
|
|
198
|
-
function ThinkChatMessages({ composerHeader, draft, loading, renderPart, excludeTools, renderAgentToolRunLink, toolRenderers, thinkStub, onExecutionSettled, pendingApprovals, notice, sessionCompaction, ...props }) {
|
|
198
|
+
function ThinkChatMessages({ composerHeader, draft, loading, renderPart, excludeTools, renderAgentToolRunLink, renderWorkspaceHtmlArtifact, toolRenderers, thinkStub, onExecutionSettled, pendingApprovals, notice, sessionCompaction, ...props }) {
|
|
199
199
|
const chat = useOptionalThinkChatContext();
|
|
200
200
|
const agentTools = useOptionalAgentToolRuns();
|
|
201
201
|
const approvals = React.useContext(ThinkChatApprovalsContext);
|
|
@@ -224,9 +224,14 @@ function ThinkChatMessages({ composerHeader, draft, loading, renderPart, exclude
|
|
|
224
224
|
return isTextUIPart(context.part) && context.part.text ? /* @__PURE__ */ jsx(WorkspaceMessageResponse, {
|
|
225
225
|
animated: STREAMED_TEXT_ANIMATION,
|
|
226
226
|
isAnimating: context.message.role === "assistant" && context.message.id === streamingMessageId && context.part.state === "streaming",
|
|
227
|
+
renderWorkspaceHtmlArtifact: context.message.role === "assistant" ? renderWorkspaceHtmlArtifact : void 0,
|
|
227
228
|
children: context.part.text
|
|
228
229
|
}) : void 0;
|
|
229
|
-
}, [
|
|
230
|
+
}, [
|
|
231
|
+
activityRenderPart,
|
|
232
|
+
renderWorkspaceHtmlArtifact,
|
|
233
|
+
streamingMessageId
|
|
234
|
+
]);
|
|
230
235
|
const resolvedRenderPart = React.useMemo(() => renderPart ? (context) => {
|
|
231
236
|
const renderBuiltIn = () => {
|
|
232
237
|
const builtIn = defaultRenderPart(context);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as AgentMessageRenderPartContext } from "./AgentMessageParts-C7L-Mv9U.js";
|
|
2
2
|
import { r as AgentChatProps } from "./AgentChat-CVO7xyLC.js";
|
|
3
3
|
import { l as ThinkChatPart } from "./ThinkChatToolParts-D4qcnnxt.js";
|
|
4
|
-
import { t as ThinkChatActivityDescription } from "./ThinkChatActivitySummary-
|
|
4
|
+
import { t as ThinkChatActivityDescription } from "./ThinkChatActivitySummary-BtBQgMg6.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { DynamicToolUIPart, ToolUIPart, UIMessage } from "ai";
|
|
7
7
|
import { AgentToolRunState } from "agents/agent-tools";
|
package/dist/{ThinkChatActivitySummary-teRjrPxW.d.ts → ThinkChatActivitySummary-BtBQgMg6.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as AgentActivityIconKind, s as AgentActivitySummary } from "./AgentActivity-
|
|
1
|
+
import { i as AgentActivityIconKind, s as AgentActivitySummary } from "./AgentActivity-Cc_oDYum.js";
|
|
2
2
|
import { l as ThinkChatPart } from "./ThinkChatToolParts-D4qcnnxt.js";
|
|
3
3
|
import { DynamicToolUIPart, ToolUIPart } from "ai";
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as ToggleVariantsOptions } from "./Toggle-DLrIf5YH.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { ToggleGroup } from "@base-ui/react/toggle-group";
|
|
4
3
|
import { Toggle } from "@base-ui/react/toggle";
|
|
4
|
+
import { ToggleGroup } from "@base-ui/react/toggle-group";
|
|
5
5
|
|
|
6
6
|
//#region src/components/foundations/ToggleGroup.d.ts
|
|
7
7
|
type ToggleGroupSize = ToggleVariantsOptions["size"];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as MaximizeIcon, d as CheckIcon, h as CodeIcon, r as ArrowLeftIcon, tt as WarningIcon, x as EyeIcon, y as DownloadIcon } from "./icons-
|
|
1
|
+
import { A as MaximizeIcon, d as CheckIcon, h as CodeIcon, r as ArrowLeftIcon, tt as WarningIcon, x as EyeIcon, y as DownloadIcon } from "./icons-B4mGvCvc.js";
|
|
2
2
|
import { r as formatClock } from "./format-DB2mX9DA.js";
|
|
3
|
-
import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-
|
|
4
|
-
import { inferWorkspaceLanguage, inferWorkspaceMedia, isWorkspaceMarkdownPath, isWorkspaceSkillPath, parseWorkspaceSkill } from "./components/agents-sdk/WorkspaceFile.js";
|
|
5
|
-
import { c as useWorkspaceNavigationContext, s as useWorkspaceNavigationRestoration } from "./WorkspaceLink-DZeLe_jN.js";
|
|
6
|
-
import { n as createWorkspaceRehypePlugins, t as WorkspaceMessageResponse } from "./WorkspaceMessageResponse-BWbkIELl.js";
|
|
3
|
+
import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-DO4Hdu1R.js";
|
|
7
4
|
import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
|
|
5
|
+
import { inferWorkspaceLanguage, inferWorkspaceMedia, isWorkspaceMarkdownPath, isWorkspaceSkillPath, parseWorkspaceSkill } from "./components/agents-sdk/WorkspaceFile.js";
|
|
6
|
+
import { c as useWorkspaceNavigationContext, s as useWorkspaceNavigationRestoration } from "./WorkspaceLink-DtH66bAY.js";
|
|
7
|
+
import { n as createWorkspaceRehypePlugins, t as WorkspaceMessageResponse } from "./WorkspaceMessageResponse-CJCmGvTx.js";
|
|
8
8
|
import { WorkspaceHeader } from "./components/agents-sdk/WorkspaceHeader.js";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -233,11 +233,12 @@ function UnavailableWorkspaceLink({ children, className }) {
|
|
|
233
233
|
* Markdown-compatible anchor that resolves local files through the nearest
|
|
234
234
|
* workspace navigation provider while preserving native link behavior.
|
|
235
235
|
*/
|
|
236
|
-
function WorkspaceFileLink({ children, className, download, href = "", node
|
|
236
|
+
function WorkspaceFileLink({ children, className, download, href = "", node, onClick, rel, target, ...props }) {
|
|
237
237
|
const workspace = useWorkspaceNavigationContext();
|
|
238
238
|
const restoration = useWorkspaceNavigationRestoration();
|
|
239
239
|
if (!workspace) return /* @__PURE__ */ jsx("a", {
|
|
240
240
|
className,
|
|
241
|
+
"data-streamdown": node ? "link" : void 0,
|
|
241
242
|
download,
|
|
242
243
|
href,
|
|
243
244
|
onClick,
|
|
@@ -259,7 +260,7 @@ function WorkspaceFileLink({ children, className, download, href = "", node: _no
|
|
|
259
260
|
const externalTarget = target ?? "_blank";
|
|
260
261
|
return /* @__PURE__ */ jsxs("a", {
|
|
261
262
|
className: cx("workspace-link workspace-link--external", className),
|
|
262
|
-
"data-streamdown": "link",
|
|
263
|
+
"data-streamdown": node ? "link" : void 0,
|
|
263
264
|
download,
|
|
264
265
|
href: resolved.href,
|
|
265
266
|
onClick,
|
|
@@ -285,7 +286,7 @@ function WorkspaceFileLink({ children, className, download, href = "", node: _no
|
|
|
285
286
|
return /* @__PURE__ */ jsx(NavigationLink, {
|
|
286
287
|
render: workspace.navigation.renderLink(resolved),
|
|
287
288
|
className: cx("workspace-link workspace-link--file", className),
|
|
288
|
-
"data-streamdown": "link",
|
|
289
|
+
"data-streamdown": node ? "link" : void 0,
|
|
289
290
|
"data-workspace-link": "file",
|
|
290
291
|
"data-workspace-destination-fragment": resolved.fragment ?? "",
|
|
291
292
|
"data-workspace-path": resolved.path,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MessageResponse } from "./components/ai-sdk/Message.js";
|
|
2
|
-
import { c as useWorkspaceNavigationContext, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "./WorkspaceLink-
|
|
2
|
+
import { c as useWorkspaceNavigationContext, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "./WorkspaceLink-DtH66bAY.js";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { defaultRehypePlugins } from "streamdown";
|
|
6
6
|
import { visit } from "unist-util-visit";
|
|
7
7
|
//#region src/components/_internal/workspace-markdown.ts
|
|
@@ -84,17 +84,74 @@ const workspaceComponents = {
|
|
|
84
84
|
a: WorkspaceFileLink
|
|
85
85
|
};
|
|
86
86
|
/** Adds workspace-aware Markdown links when rendered inside a workspace provider. */
|
|
87
|
-
const WorkspaceMessageResponse = React.memo(function WorkspaceMessageResponse({ components, rehypePlugins, ...props }) {
|
|
87
|
+
const WorkspaceMessageResponse = React.memo(function WorkspaceMessageResponse({ components, rehypePlugins, renderWorkspaceHtmlArtifact, ...props }) {
|
|
88
88
|
const workspace = useWorkspaceNavigationContext();
|
|
89
89
|
const resolvedRehypePlugins = React.useMemo(() => rehypePlugins ?? (workspace ? createWorkspaceRehypePlugins(workspace.root, workspace.base) : void 0), [rehypePlugins, workspace]);
|
|
90
90
|
return /* @__PURE__ */ jsx(MessageResponse, {
|
|
91
|
-
components:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
components: React.useMemo(() => {
|
|
92
|
+
const merged = components ? {
|
|
93
|
+
...workspaceComponents,
|
|
94
|
+
...components
|
|
95
|
+
} : workspaceComponents;
|
|
96
|
+
if (!workspace || !renderWorkspaceHtmlArtifact) return merged;
|
|
97
|
+
const FallbackParagraph = components?.p ?? "p";
|
|
98
|
+
return {
|
|
99
|
+
...merged,
|
|
100
|
+
p: function WorkspaceHtmlArtifactParagraph({ node, children, ...paragraphProps }) {
|
|
101
|
+
const renderFallbackParagraph = (content) => React.createElement(FallbackParagraph, typeof FallbackParagraph === "string" ? paragraphProps : {
|
|
102
|
+
node,
|
|
103
|
+
...paragraphProps
|
|
104
|
+
}, content);
|
|
105
|
+
const artifact = getWorkspaceHtmlArtifactParagraph(node, workspace.root, workspace.base);
|
|
106
|
+
if (!artifact) return renderFallbackParagraph(children);
|
|
107
|
+
const remainingChildren = React.Children.toArray(children).filter((_child, index) => index !== artifact.childIndex);
|
|
108
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [artifact.showRemainingChildren ? renderFallbackParagraph(remainingChildren) : null, renderWorkspaceHtmlArtifact({
|
|
109
|
+
label: artifact.label,
|
|
110
|
+
path: artifact.path,
|
|
111
|
+
sourceLink: /* @__PURE__ */ jsx(WorkspaceFileLink, { href: artifact.path })
|
|
112
|
+
})] });
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}, [
|
|
116
|
+
components,
|
|
117
|
+
renderWorkspaceHtmlArtifact,
|
|
118
|
+
workspace
|
|
119
|
+
]),
|
|
95
120
|
rehypePlugins: resolvedRehypePlugins,
|
|
96
121
|
...props
|
|
97
122
|
});
|
|
98
123
|
});
|
|
124
|
+
function getWorkspaceHtmlArtifactParagraph(node, root, base) {
|
|
125
|
+
if (!node || node.tagName !== "p") return null;
|
|
126
|
+
const children = node.children;
|
|
127
|
+
const matches = children.flatMap((child, childIndex) => {
|
|
128
|
+
if (child.type !== "element" || child.tagName !== "a") return [];
|
|
129
|
+
const href = child.properties?.href;
|
|
130
|
+
if (typeof href !== "string") return [];
|
|
131
|
+
const destination = resolveWorkspaceLink({
|
|
132
|
+
href,
|
|
133
|
+
root,
|
|
134
|
+
base
|
|
135
|
+
});
|
|
136
|
+
if (destination.kind !== "file" || destination.fragment !== null || !destination.path.toLowerCase().endsWith(".html")) return [];
|
|
137
|
+
return [{
|
|
138
|
+
anchor: child,
|
|
139
|
+
childIndex,
|
|
140
|
+
path: destination.path
|
|
141
|
+
}];
|
|
142
|
+
});
|
|
143
|
+
if (matches.length !== 1) return null;
|
|
144
|
+
const [{ anchor, childIndex, path }] = matches;
|
|
145
|
+
return {
|
|
146
|
+
childIndex,
|
|
147
|
+
path,
|
|
148
|
+
label: markdownText(anchor).trim() || path.split("/").at(-1) || "Interactive UI",
|
|
149
|
+
showRemainingChildren: children.some((child, index) => index !== childIndex && (child.type !== "text" || child.value.trim()))
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function markdownText(node) {
|
|
153
|
+
if (node.type === "text") return node.value;
|
|
154
|
+
return node.type === "element" ? node.children.map(markdownText).join("") : "";
|
|
155
|
+
}
|
|
99
156
|
//#endregion
|
|
100
157
|
export { createWorkspaceRehypePlugins as n, WorkspaceMessageResponse as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { w as MessageResponseProps } from "./Message-DBsHHhcM.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/agents-sdk/WorkspaceMessageResponse.d.ts
|
|
5
|
+
interface WorkspaceHtmlArtifactRenderInput {
|
|
6
|
+
label: string;
|
|
7
|
+
path: string;
|
|
8
|
+
/** Shared workspace link element; hosts pass it through to the preview unchanged. */
|
|
9
|
+
sourceLink: React.ReactElement;
|
|
10
|
+
}
|
|
11
|
+
type WorkspaceHtmlArtifactRenderer = (artifact: WorkspaceHtmlArtifactRenderInput) => React.ReactNode;
|
|
12
|
+
interface WorkspaceMessageResponseProps extends MessageResponseProps {
|
|
13
|
+
/** Promotes one standalone workspace HTML link into host-hydrated shared UI. */
|
|
14
|
+
renderWorkspaceHtmlArtifact?: WorkspaceHtmlArtifactRenderer;
|
|
15
|
+
}
|
|
16
|
+
/** Adds workspace-aware Markdown links when rendered inside a workspace provider. */
|
|
17
|
+
declare const WorkspaceMessageResponse: React.MemoExoticComponent<({
|
|
18
|
+
components,
|
|
19
|
+
rehypePlugins,
|
|
20
|
+
renderWorkspaceHtmlArtifact,
|
|
21
|
+
...props
|
|
22
|
+
}: WorkspaceMessageResponseProps) => React.JSX.Element>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { WorkspaceMessageResponseProps as i, WorkspaceHtmlArtifactRenderer as n, WorkspaceMessageResponse as r, WorkspaceHtmlArtifactRenderInput as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AgentActivityIconProps, i as AgentActivityIconKind, n as AgentActivityFaviconProps, o as AgentActivityMode, r as AgentActivityIcon, s as AgentActivitySummary, t as AgentActivityFavicon } from "../../AgentActivity-
|
|
1
|
+
import { a as AgentActivityIconProps, i as AgentActivityIconKind, n as AgentActivityFaviconProps, o as AgentActivityMode, r as AgentActivityIcon, s as AgentActivitySummary, t as AgentActivityFavicon } from "../../AgentActivity-Cc_oDYum.js";
|
|
2
2
|
export { AgentActivityFavicon, AgentActivityFaviconProps, AgentActivityIcon, AgentActivityIconKind, AgentActivityIconProps, AgentActivityMode, AgentActivitySummary };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inferFaviconUrl } from "../../utils/favicon.js";
|
|
2
|
-
import { $ as TerminalIcon, B as PencilIcon, C as FileIcon, F as MonitorIcon, G as SearchIcon, O as InfoIcon, k as LinkIcon, nt as WrenchIcon, tt as WarningIcon } from "../../icons-
|
|
2
|
+
import { $ as TerminalIcon, B as PencilIcon, C as FileIcon, F as MonitorIcon, G as SearchIcon, O as InfoIcon, k as LinkIcon, nt as WrenchIcon, tt as WarningIcon } from "../../icons-B4mGvCvc.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,5 +1,5 @@
|
|
|
1
|
-
import { n as WorkspaceDestination } from "../../WorkspaceLink-
|
|
2
|
-
import { s as AgentActivitySummary } from "../../AgentActivity-
|
|
1
|
+
import { n as WorkspaceDestination } from "../../WorkspaceLink-Bh9-Jo1r.js";
|
|
2
|
+
import { s as AgentActivitySummary } from "../../AgentActivity-Cc_oDYum.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/agents-sdk/AgentActivityPreview.d.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { C as FileIcon, J as SpinnerIcon, j as McpIcon, rt as XIcon, tt as WarningIcon } from "../../icons-
|
|
3
|
-
import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
|
|
2
|
+
import { C as FileIcon, J as SpinnerIcon, j as McpIcon, rt as XIcon, tt as WarningIcon } from "../../icons-B4mGvCvc.js";
|
|
4
3
|
import { ActivityHeader } from "../ai-sdk/Activity.js";
|
|
4
|
+
import { Button } from "../foundations/Button.js";
|
|
5
5
|
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
6
6
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
7
|
-
import {
|
|
7
|
+
import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
//#region src/components/agents-sdk/AgentActivityPreview.tsx
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { B as PencilIcon, H as PlusIcon, J as SpinnerIcon, L as MoveToFrontIcon, U as QueueIcon, W as RefreshIcon, et as TrashIcon, t as ArchiveIcon } from "../../icons-B1Qw05te.js";
|
|
3
2
|
import { ExpansionStateProvider } from "../ai-sdk/ExpansionState.js";
|
|
3
|
+
import { B as PencilIcon, H as PlusIcon, J as SpinnerIcon, L as MoveToFrontIcon, U as QueueIcon, W as RefreshIcon, et as TrashIcon, t as ArchiveIcon } from "../../icons-B4mGvCvc.js";
|
|
4
4
|
import { Button } from "../foundations/Button.js";
|
|
5
|
+
import { AgentChatMessageEditor } from "../ai-sdk/AgentChatMessageEditor.js";
|
|
5
6
|
import { IconButton } from "../foundations/IconButton.js";
|
|
7
|
+
import { Menu } from "../foundations/Menu.js";
|
|
8
|
+
import { PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputCommandComposer, PromptInputContextSelector, PromptInputDictation, PromptInputFooter, PromptInputHeader, PromptInputPermissionSelector, PromptInputReferences, PromptInputSubmit, PromptInputTextarea, PromptInputTools, PromptInputTray, usePromptInputAttachments } from "../ai-sdk/PromptInput.js";
|
|
9
|
+
import { AgentChatStartScreen } from "../ai-sdk/AgentChatStartScreen.js";
|
|
6
10
|
import { Message, MessageAction, MessageActions } from "../ai-sdk/Message.js";
|
|
7
11
|
import { AgentMessageParts } from "../ai-sdk/AgentMessageParts.js";
|
|
12
|
+
import { Marker, MarkerContent } from "../foundations/Marker.js";
|
|
13
|
+
import { t as CopyButton } from "../../copy-button-4YvddK4e.js";
|
|
8
14
|
import { Context, ContextContent, ContextContentBody, ContextContentHeader, ContextTrigger, getContextUsage, getContextUsedTokens } from "../ai-sdk/Context.js";
|
|
9
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
10
15
|
import { VirtualMessageScroller } from "../ai-sdk/MessageScrollerVirtual.js";
|
|
11
16
|
import { QueueItem, QueueItemActions, QueueItemContent } from "../ai-sdk/Queue.js";
|
|
12
|
-
import {
|
|
13
|
-
import { PromptInput, PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger, PromptInputAttachments, PromptInputBody, PromptInputButton, PromptInputCommandComposer, PromptInputContextSelector, PromptInputDictation, PromptInputFooter, PromptInputHeader, PromptInputPermissionSelector, PromptInputReferences, PromptInputSubmit, PromptInputTextarea, PromptInputTools, PromptInputTray, usePromptInputAttachments } from "../ai-sdk/PromptInput.js";
|
|
14
|
-
import { AgentChatStartScreen } from "../ai-sdk/AgentChatStartScreen.js";
|
|
15
|
-
import { AgentChatMessageEditor } from "../ai-sdk/AgentChatMessageEditor.js";
|
|
16
|
-
import { Marker, MarkerContent } from "../foundations/Marker.js";
|
|
17
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
17
18
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
18
19
|
import { PromptInputApproval, getApprovalRequestId, getApprovalStateKey, getPendingToolApprovals } from "./PromptInputApproval.js";
|
|
19
|
-
import { t as CopyButton } from "../../copy-button-CsNSSKYG.js";
|
|
20
20
|
import * as React from "react";
|
|
21
21
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
-
import { isCompactionMessage } from "agents/experimental/memory/utils";
|
|
23
22
|
import { isTextUIPart } from "ai";
|
|
23
|
+
import { isCompactionMessage } from "agents/experimental/memory/utils";
|
|
24
24
|
//#region src/components/agents-sdk/AgentChat.tsx
|
|
25
25
|
/**
|
|
26
26
|
* Agents exports this helper from `agents/sessions` after cloudflare/agents#1896;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { A as MaximizeIcon, J as SpinnerIcon } from "../../icons-
|
|
2
|
+
import { A as MaximizeIcon, J as SpinnerIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { Dialog } from "../foundations/Dialog.js";
|
|
5
|
-
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
6
5
|
import { StatusPill } from "../foundations/StatusPill.js";
|
|
6
|
+
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/agents-sdk/BrowserLiveView.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { V as PlayIcon, z as PauseIcon } from "../../icons-
|
|
2
|
+
import { V as PlayIcon, z as PauseIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
4
|
import { r as formatClock } from "../../format-DB2mX9DA.js";
|
|
5
5
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { J as SpinnerIcon, rt as XIcon } from "../../icons-
|
|
2
|
+
import { J as SpinnerIcon, rt as XIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { Tabs } from "../foundations/Tabs.js";
|
|
5
|
-
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
6
5
|
import { WebPreview, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl } from "../general-purpose/WebPreview.js";
|
|
6
|
+
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/agents-sdk/BrowserRunPanel.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { J as SpinnerIcon, d as CheckIcon, j as McpIcon, tt as WarningIcon } from "../../icons-
|
|
2
|
+
import { J as SpinnerIcon, d as CheckIcon, j as McpIcon, tt as WarningIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
-
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
5
4
|
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
|
|
5
|
+
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
6
6
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
7
7
|
import { n as getMcpServerProjection } from "../../mcp-server-SD_S-IpB.js";
|
|
8
8
|
import * as React from "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 { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
5
4
|
import { Field } from "../foundations/Field.js";
|
|
6
5
|
import { Form } from "../foundations/Form.js";
|
|
6
|
+
import { i as formatErrorMessage } from "../../format-DB2mX9DA.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";
|