@mcp-b/react-components 0.43.0 → 0.44.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.
- package/dist/{CodeBlock-BjELA-_s.js → CodeBlock-Dl7a3Wqo.js} +1 -1
- package/dist/{FileTree-DMYRdT6R.js → FileTree-Uu3ZnW1u.js} +1 -1
- package/dist/{SetupChecklist-H1JRCIIe.js → SetupChecklist-DOp-zqjh.js} +1 -1
- package/dist/{Workspace-F3raHdYV.d.ts → Workspace-jdVZ9S0a.d.ts} +1 -1
- package/dist/{WorkspaceFile-BLaFmMrt.d.ts → WorkspaceFile-Dq-GC0_T.d.ts} +3 -1
- package/dist/{WorkspaceFileView-DWMKxX_u.js → WorkspaceFileView-BublZXky.js} +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.js +10 -10
- package/dist/components/agents-sdk/BrowserLiveScreen.js +4 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +4 -4
- 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 +2 -2
- 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/ThinkChatActivity.js +3 -3
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkFullApp.js +1 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +3 -2
- package/dist/components/agents-sdk/ThinkRoutine.d.ts +1 -7
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +34 -18
- package/dist/components/agents-sdk/ThinkRoutineForm.js +395 -110
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
- package/dist/components/agents-sdk/ThinkSidepanel.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkSidepanel.js +71 -16
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +13 -3
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- 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 +1 -1
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +18 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.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.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- 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/ConnectedAppCards.d.ts +106 -0
- package/dist/components/ai-sdk/ConnectedAppCards.js +416 -0
- 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.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 +2 -2
- package/dist/components/ai-sdk/Reasoning.js +2 -2
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/ai-sdk/ToolInvocation.js +1 -1
- package/dist/components/extension/ChatGptSignInScreen.d.ts +1 -3
- package/dist/components/extension/ChatGptSignInScreen.js +7 -20
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.js +2 -2
- 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/DescriptionList.d.ts +3 -0
- package/dist/components/foundations/DescriptionList.js +2 -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/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/Commit.js +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingPlanCard.js +1 -1
- package/dist/components/general-purpose/PricingUsageCalculator.js +1 -1
- 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 +2 -2
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.js +1 -1
- package/dist/{copy-button-lys9N_aI.js → copy-button-DHhf-J1d.js} +1 -1
- package/dist/{icons-0corjfxR.d.ts → icons-6ZnyZJiR.d.ts} +6 -1
- package/dist/{icons-CVFSeTJn.js → icons-Dw-im7lg.js} +4 -3
- package/dist/styles/browser-live-screen.css +3 -0
- package/dist/styles/button.css +1 -5
- package/dist/styles/chatgpt-sign-in-screen.css +87 -43
- package/dist/styles/connected-app-card.css +54 -0
- package/dist/styles/description-list.css +25 -0
- package/dist/styles/index.css +1 -0
- package/dist/styles/think-routine-library.css +28 -0
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
+
import { t as CopyButton } from "./copy-button-DHhf-J1d.js";
|
|
2
3
|
import { Select } from "./components/foundations/Select.js";
|
|
3
|
-
import { t as CopyButton } from "./copy-button-lys9N_aI.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 FolderIcon, S as FileIcon, p as ChevronRightIcon, w as FolderOpenIcon } from "./icons-
|
|
2
|
+
import { C as FolderIcon, S as FileIcon, p as ChevronRightIcon, w as FolderOpenIcon } from "./icons-Dw-im7lg.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,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { V as PlusIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon } from "./icons-Dw-im7lg.js";
|
|
3
3
|
import { Button } from "./components/foundations/Button.js";
|
|
4
4
|
import { Menu } from "./components/foundations/Menu.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as WorkspaceMediaInfo, i as WorkspaceFileState, r as WorkspaceFileAssetResolver, t as WorkspaceFileAsset } from "./WorkspaceFile-
|
|
1
|
+
import { a as WorkspaceMediaInfo, i as WorkspaceFileState, r as WorkspaceFileAssetResolver, t as WorkspaceFileAsset } from "./WorkspaceFile-Dq-GC0_T.js";
|
|
2
2
|
import { DataTag, QueryKey, UnusedSkipTokenOptions } from "@tanstack/react-query";
|
|
3
3
|
import { WorkspaceLike } from "@cloudflare/think";
|
|
4
4
|
import { FileInfo, Workspace } from "@cloudflare/shell";
|
|
@@ -114,9 +114,11 @@ declare function inferWorkspaceMedia(path: string, mimeType?: string | null): Wo
|
|
|
114
114
|
*/
|
|
115
115
|
declare function inferWorkspaceMimeType(path: string): string | null;
|
|
116
116
|
declare function isWorkspaceMediaPath(path: string, mimeType?: string | null): boolean;
|
|
117
|
+
/** Identify files that are safe to decode and render as text. */
|
|
118
|
+
declare function isWorkspaceTextPath(path: string, mimeType?: string | null): boolean;
|
|
117
119
|
/** Parse and validate a workspace skill with the canonical Agent Skills SDK. */
|
|
118
120
|
declare function parseWorkspaceSkill(content: string): WorkspaceSkillDocument;
|
|
119
121
|
/** Best-effort syntax-highlighting language from a file path; unknown extensions render as plain text. */
|
|
120
122
|
declare function inferWorkspaceLanguage(path: string): CodeBlockLanguage;
|
|
121
123
|
//#endregion
|
|
122
|
-
export {
|
|
124
|
+
export { isWorkspaceTextPath as _, WorkspaceMediaInfo as a, WorkspaceMediaTrackKind as c, inferWorkspaceLanguage as d, inferWorkspaceMedia as f, isWorkspaceSkillPath as g, isWorkspaceMediaPath as h, WorkspaceFileState as i, WorkspaceSkillDocument as l, isWorkspaceMarkdownPath as m, WorkspaceFileAssetRequest as n, WorkspaceMediaKind as o, inferWorkspaceMimeType as p, WorkspaceFileAssetResolver as r, WorkspaceMediaTrack as s, WorkspaceFileAsset as t, getWorkspaceBasename as u, parseWorkspaceSkill as v };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as EyeIcon, d as CheckIcon, et as WarningIcon, k as MaximizeIcon, m as CodeIcon, r as ArrowLeftIcon, v as DownloadIcon } from "./icons-Dw-im7lg.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-BjELA-_s.js";
|
|
4
3
|
import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
|
|
4
|
+
import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-Dl7a3Wqo.js";
|
|
5
5
|
import { inferWorkspaceLanguage, inferWorkspaceMedia, isWorkspaceMarkdownPath, isWorkspaceSkillPath, parseWorkspaceSkill } from "./components/agents-sdk/WorkspaceFile.js";
|
|
6
6
|
import { c as useWorkspaceNavigationContext, s as useWorkspaceNavigationRestoration } from "./WorkspaceLink-DtH66bAY.js";
|
|
7
7
|
import { n as createWorkspaceRehypePlugins, t as WorkspaceMessageResponse } from "./WorkspaceMessageResponse-CJCmGvTx.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canRequestFavicon, inferFaviconUrl } from "../../utils/favicon.js";
|
|
2
|
-
import {
|
|
2
|
+
import { D as LinkIcon, P as MonitorIcon, Q as TerminalIcon, S as FileIcon, T as InfoIcon, W as SearchIcon, et as WarningIcon, tt as WrenchIcon, z as PencilIcon } from "../../icons-Dw-im7lg.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,26 +1,26 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
3
|
-
import { B as PlusIcon, F as MoveToFrontIcon, H as RefreshIcon, K as SpinnerIcon, Q as TrashIcon, R as PencilIcon, V as QueueIcon, t as ArchiveIcon } from "../../icons-CVFSeTJn.js";
|
|
2
|
+
import { $ as TrashIcon, H as QueueIcon, I as MoveToFrontIcon, U as RefreshIcon, V as PlusIcon, q as SpinnerIcon, t as ArchiveIcon, z as PencilIcon } from "../../icons-Dw-im7lg.js";
|
|
4
3
|
import { Button } from "../foundations/Button.js";
|
|
5
|
-
import { AgentChatMessageEditor } from "../ai-sdk/AgentChatMessageEditor.js";
|
|
6
4
|
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";
|
|
10
5
|
import { Message, MessageAction, MessageActions, MessageMeta, MessageTimestamp } from "../ai-sdk/Message.js";
|
|
6
|
+
import { ExpansionStateProvider } from "../ai-sdk/ExpansionState.js";
|
|
11
7
|
import { AgentMessageParts } from "../ai-sdk/AgentMessageParts.js";
|
|
12
|
-
import { Marker, MarkerContent } from "../foundations/Marker.js";
|
|
13
|
-
import { t as CopyButton } from "../../copy-button-lys9N_aI.js";
|
|
14
8
|
import { Context, ContextContent, ContextContentBody, ContextContentHeader, ContextTrigger, getContextUsage, getContextUsedTokens } from "../ai-sdk/Context.js";
|
|
9
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
15
10
|
import { VirtualMessageScroller } from "../ai-sdk/MessageScrollerVirtual.js";
|
|
16
11
|
import { QueueItem, QueueItemActions, QueueItemContent } from "../ai-sdk/Queue.js";
|
|
17
|
-
import {
|
|
12
|
+
import { Menu } from "../foundations/Menu.js";
|
|
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";
|
|
18
17
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
19
18
|
import { PromptInputApproval, getApprovalRequestId, getApprovalStateKey, getPendingToolApprovals } from "./PromptInputApproval.js";
|
|
19
|
+
import { t as CopyButton } from "../../copy-button-DHhf-J1d.js";
|
|
20
20
|
import * as React from "react";
|
|
21
21
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
-
import { isTextUIPart } from "ai";
|
|
23
22
|
import { isCompactionMessage } from "agents/experimental/memory/utils";
|
|
23
|
+
import { isTextUIPart } from "ai";
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { E as KeyboardIcon,
|
|
1
|
+
import { E as KeyboardIcon, U as RefreshIcon, r as ArrowLeftIcon } from "../../icons-Dw-im7lg.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
3
|
import { WebPreviewNavigationButton } from "../general-purpose/WebPreview.js";
|
|
4
4
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
@@ -423,6 +423,7 @@ function BrowserLiveScreen({ sendSignal: sendHostSignal, subscribeSignals, proto
|
|
|
423
423
|
}]);
|
|
424
424
|
},
|
|
425
425
|
onKeyDown: (event) => {
|
|
426
|
+
event.currentTarget.removeAttribute("data-pointer-focus");
|
|
426
427
|
if (event.nativeEvent.isComposing) return;
|
|
427
428
|
if (event.key === "Enter") event.preventDefault();
|
|
428
429
|
sendInput([{
|
|
@@ -457,7 +458,9 @@ function BrowserLiveScreen({ sendSignal: sendHostSignal, subscribeSignals, proto
|
|
|
457
458
|
onContextMenu: (event) => {
|
|
458
459
|
event.preventDefault();
|
|
459
460
|
},
|
|
461
|
+
onBlur: (event) => event.currentTarget.removeAttribute("data-pointer-focus"),
|
|
460
462
|
onPointerDown: (event) => {
|
|
463
|
+
event.currentTarget.dataset.pointerFocus = "";
|
|
461
464
|
if (event.pointerType === "touch") {
|
|
462
465
|
beginTouch(event);
|
|
463
466
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as DotIcon, k as MaximizeIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { Dialog } from "../foundations/Dialog.js";
|
|
5
5
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as PlayIcon, R as PauseIcon } from "../../icons-Dw-im7lg.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,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { nt as XIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
|
|
3
3
|
import { Tabs } from "../foundations/Tabs.js";
|
|
4
4
|
import { WebPreview, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl } from "../general-purpose/WebPreview.js";
|
|
5
5
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as WarningIcon, A as MessageSquareIcon, B as PlusIcon, C as FolderIcon, D as LinkIcon, H as RefreshIcon, K as SpinnerIcon, L as PauseIcon, N as MonitorIcon, R as PencilIcon, T as InfoIcon, _ as DotIcon, a as ArrowUpIcon, d as CheckIcon, f as ChevronDownIcon, n as ArrowDownIcon, p as ChevronRightIcon, tt as XIcon, u as CalendarIcon } from "../../icons-CVFSeTJn.js";
|
|
2
|
+
import { C as FolderIcon, D as LinkIcon, P as MonitorIcon, R as PauseIcon, T as InfoIcon, U as RefreshIcon, V as PlusIcon, _ as DotIcon, a as ArrowUpIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, j as MessageSquareIcon, n as ArrowDownIcon, nt as XIcon, p as ChevronRightIcon, q as SpinnerIcon, u as CalendarIcon, z as PencilIcon } from "../../icons-Dw-im7lg.js";
|
|
4
3
|
import { Button } from "../foundations/Button.js";
|
|
5
|
-
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
|
|
6
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
7
|
-
import {
|
|
5
|
+
import { Collapsible } from "../foundations/Collapsible.js";
|
|
8
6
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
|
+
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
|
|
8
|
+
import { Avatar } from "../foundations/Avatar.js";
|
|
9
9
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
10
10
|
import { LinkButton } from "../foundations/LinkButton.js";
|
|
11
11
|
import "../foundations/icons.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { A as McpIcon, d as CheckIcon, et as WarningIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
-
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
|
|
5
4
|
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
5
|
+
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.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";
|
|
4
5
|
import { Field } from "../foundations/Field.js";
|
|
5
6
|
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";
|
|
@@ -1,12 +1,12 @@
|
|
|
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 {
|
|
3
|
+
import { V as PlusIcon, et as WarningIcon, nt as XIcon, o as ArrowUpRightIcon, q as SpinnerIcon, y as EllipsisIcon } from "../../icons-Dw-im7lg.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 { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
9
8
|
import { Separator } from "../foundations/Separator.js";
|
|
9
|
+
import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
|
|
10
10
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
11
11
|
import { n as getMcpServerProjection, t as McpServerIcon } from "../../mcp-server-SD_S-IpB.js";
|
|
12
12
|
import { SearchField } from "../foundations/SearchField.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { N as MinusIcon, d as CheckIcon, et as WarningIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.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 { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
6
|
+
import { Menu } from "../foundations/Menu.js";
|
|
7
7
|
import { PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger } from "../ai-sdk/PromptInput.js";
|
|
8
8
|
import { n as getMcpServerProjection, t as McpServerIcon } from "../../mcp-server-SD_S-IpB.js";
|
|
9
9
|
import { McpConnectorForm } from "./McpConnectorForm.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { W as SearchIcon, f as ChevronDownIcon } from "../../icons-Dw-im7lg.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 { o as titleCase } from "../../format-DB2mX9DA.js";
|
|
7
6
|
import { Separator } from "../foundations/Separator.js";
|
|
7
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
8
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
9
|
+
import { Autocomplete } from "../foundations/Autocomplete.js";
|
|
9
10
|
import { t as ProviderLogo } from "../../provider-logos-zjZycgV6.js";
|
|
10
|
-
import { EmptyState } from "../foundations/EmptyState.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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as McpIcon, c as BoxIcon } from "../../icons-Dw-im7lg.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/agents-sdk/PromptInputCommands.tsx
|
|
4
4
|
/** Project whole upstream Agents MCP state into composer mention commands. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Y as StopIcon, d as CheckIcon, et as WarningIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/agents-sdk/SubagentRunIndicator.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Activity, ActivityContent, ActivityItem, ActivityItemGroup, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
1
|
+
import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
|
|
3
2
|
import { Button } from "../foundations/Button.js";
|
|
4
3
|
import { MessageResponse } from "../ai-sdk/Message.js";
|
|
5
|
-
import {
|
|
4
|
+
import { useExpansionState } from "../ai-sdk/ExpansionState.js";
|
|
5
|
+
import { Activity, ActivityContent, ActivityItem, ActivityItemGroup, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
6
6
|
import { useOptionalAgentToolRuns } from "./AgentToolRunsContext.js";
|
|
7
7
|
import { SubagentRunList } from "./SubagentRunList.js";
|
|
8
8
|
import { useOptionalThinkChatLive } from "./ThinkChatContext.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { a as formatUnknownValue } from "../../format-DB2mX9DA.js";
|
|
1
2
|
import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
|
|
2
3
|
import { Tabs } from "../foundations/Tabs.js";
|
|
3
|
-
import { a as formatUnknownValue } from "../../format-DB2mX9DA.js";
|
|
4
|
-
import { t as CodeBlock } from "../../CodeBlock-BjELA-_s.js";
|
|
5
4
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
5
|
+
import { t as CodeBlock } from "../../CodeBlock-Dl7a3Wqo.js";
|
|
6
6
|
import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
|
|
7
7
|
import { displayUrl, isSessionContextToolFailure } from "./ThinkChatToolParts.js";
|
|
8
8
|
import * as React from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { S as FileIcon, T as InfoIcon } from "../../icons-
|
|
3
|
-
import { Activity, ActivityContent, ActivityItemGroup, ActivityOutput, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
2
|
+
import { S as FileIcon, T as InfoIcon } from "../../icons-Dw-im7lg.js";
|
|
4
3
|
import { a as formatUnknownValue } from "../../format-DB2mX9DA.js";
|
|
4
|
+
import { Activity, ActivityContent, ActivityItemGroup, ActivityOutput, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
5
5
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
6
6
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
7
7
|
import { formatThinkExecutionTimestamp, getThinkExecutionRunError, getThinkExecutionRunId, getThinkExecutionRunKindLabel, getThinkExecutionRunProgressedAt, getThinkExecutionRunProgressedLabel, getThinkExecutionRunTitle, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { R as PauseIcon, T as InfoIcon, d as CheckIcon, nt as XIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
|
|
3
3
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
4
4
|
import { formatThinkExecutionRunProgress, formatThinkExecutionStatus, getThinkExecutionRunKindLabel, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, getThinkExecutionRunTitle } from "./ThinkExecutionRun.js";
|
|
5
5
|
import "react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { U as RefreshIcon, et as WarningIcon, r as ArrowLeftIcon, y as EllipsisIcon } from "../../icons-Dw-im7lg.js";
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
|
-
import { Menu } from "../foundations/Menu.js";
|
|
6
5
|
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
7
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
8
6
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
|
+
import { Menu } from "../foundations/Menu.js";
|
|
8
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
9
9
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
10
10
|
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
11
11
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
@@ -4,8 +4,8 @@ import { n as McpPluginCatalogProps } from "../../McpPluginCatalog-mbGw8FTu.js";
|
|
|
4
4
|
import { ThinkChatMessagesProps } from "./ThinkChat.js";
|
|
5
5
|
import { n as ResponsiveSidebarShell, t as AppBarSlots } from "../../ResponsiveSidebarShell-DOXd5T-d.js";
|
|
6
6
|
import { ThinkThreadStatusSummary } from "./ThinkThreadPicker.js";
|
|
7
|
-
import { r as WorkspaceFileAssetResolver } from "../../WorkspaceFile-
|
|
8
|
-
import { v as WorkspaceSource } from "../../Workspace-
|
|
7
|
+
import { r as WorkspaceFileAssetResolver } from "../../WorkspaceFile-Dq-GC0_T.js";
|
|
8
|
+
import { v as WorkspaceSource } from "../../Workspace-jdVZ9S0a.js";
|
|
9
9
|
import { t as ThinkAgent } from "../../think-agent-Cip5KAPj.js";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { UIMessage } from "ai";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { S as FileIcon, c as BoxIcon } from "../../icons-
|
|
2
|
+
import { S as FileIcon, c as BoxIcon } from "../../icons-Dw-im7lg.js";
|
|
3
3
|
import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
4
4
|
import { ResizableSidePanel } from "../general-purpose/ResizableSidePanel.js";
|
|
5
5
|
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AgentChatTurnError } from "../ai-sdk/AgentChatTurnError.js";
|
|
2
1
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
2
|
+
import { AgentChatTurnError } from "../ai-sdk/AgentChatTurnError.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/agents-sdk/ThinkRecoveryNotice.tsx
|
|
5
5
|
function connectionReason(error) {
|
|
@@ -27,7 +27,8 @@ function ThinkRecoveryNotice({ chat }) {
|
|
|
27
27
|
}, "connection-error");
|
|
28
28
|
}
|
|
29
29
|
if (chat.error) {
|
|
30
|
-
const
|
|
30
|
+
const lastMessage = chat.messages.at(-1);
|
|
31
|
+
const retryMessageId = lastMessage?.role === "user" ? lastMessage.id : void 0;
|
|
31
32
|
return /* @__PURE__ */ jsx(TransitionSurface, {
|
|
32
33
|
className: "think-recovery-notice",
|
|
33
34
|
children: /* @__PURE__ */ jsx(AgentChatTurnError, {
|
|
@@ -25,12 +25,6 @@ interface ThinkRoutine {
|
|
|
25
25
|
}
|
|
26
26
|
/** Preserves an app-enriched native execution type carried by a routine subtype. */
|
|
27
27
|
type ThinkRoutineRunOf<TRoutine extends ThinkRoutine = ThinkRoutine> = TRoutine["runs"][number];
|
|
28
|
-
interface ThinkRoutineCreateRequest {
|
|
29
|
-
name: string;
|
|
30
|
-
ownerId: string;
|
|
31
|
-
/** Whole upstream task, including prompt functions and handler tasks. */
|
|
32
|
-
task: ThinkScheduledTask;
|
|
33
|
-
}
|
|
34
28
|
declare function getThinkRoutineNextRun(routine: ThinkRoutine): string | null;
|
|
35
29
|
//#endregion
|
|
36
|
-
export { ThinkRoutine,
|
|
30
|
+
export { ThinkRoutine, ThinkRoutineOwner, ThinkRoutineRunOf, getThinkRoutineNextRun };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { V as PlusIcon } from "../../icons-Dw-im7lg.js";
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
5
|
import { t as capitalize } from "../../format-DB2mX9DA.js";
|
|
6
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
7
6
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
8
8
|
import { SearchField } from "../foundations/SearchField.js";
|
|
9
9
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
10
10
|
import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
|
|
@@ -1,33 +1,49 @@
|
|
|
1
|
-
import { ThinkRoutineCreateRequest, ThinkRoutineOwner } from "./ThinkRoutine.js";
|
|
2
1
|
import * as React from "react";
|
|
3
2
|
import { ThinkScheduledTaskSchedule } from "@cloudflare/think";
|
|
4
3
|
|
|
5
4
|
//#region src/components/agents-sdk/ThinkRoutineForm.d.ts
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
/** Parsed schedule fields required to prefill the editor. */
|
|
6
|
+
type ThinkRoutineFormSchedule = {
|
|
7
|
+
kind: "interval";
|
|
8
|
+
intervalMs: number;
|
|
9
|
+
} | {
|
|
10
|
+
kind: "wall-clock";
|
|
11
|
+
timezone: string;
|
|
12
|
+
hour: number;
|
|
13
|
+
minute: number;
|
|
14
|
+
days: "daily" | "weekday" | readonly number[];
|
|
15
|
+
};
|
|
16
|
+
/** Existing routine fields required by the edit form. */
|
|
17
|
+
interface ThinkRoutineFormRoutine {
|
|
18
|
+
name: string;
|
|
19
|
+
task: {
|
|
20
|
+
prompt: string;
|
|
21
|
+
};
|
|
22
|
+
parsedSchedule: ThinkRoutineFormSchedule;
|
|
23
|
+
}
|
|
24
|
+
/** Prompt routine draft emitted by the routine form. */
|
|
25
|
+
interface ThinkRoutineFormValue {
|
|
26
|
+
name: string;
|
|
27
|
+
prompt: string;
|
|
28
|
+
schedule: ThinkScheduledTaskSchedule;
|
|
29
|
+
}
|
|
30
|
+
interface ThinkRoutineFormProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSubmit"> {
|
|
31
|
+
/** Existing routine projected through Think's schedule parser. Omit when creating. */
|
|
32
|
+
routine?: ThinkRoutineFormRoutine;
|
|
15
33
|
/** App-authored TanStack Router Link to the routine catalog. */
|
|
16
34
|
cancelLink?: React.ReactElement;
|
|
17
|
-
|
|
35
|
+
onSubmit: (value: ThinkRoutineFormValue) => void | Promise<void>;
|
|
18
36
|
}
|
|
19
|
-
/**
|
|
37
|
+
/** Complete create/edit surface for a prompt-based Think scheduled task. */
|
|
20
38
|
declare function ThinkRoutineForm({
|
|
21
|
-
busy,
|
|
22
39
|
cancelLink,
|
|
23
40
|
className,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
schedules,
|
|
41
|
+
routine,
|
|
42
|
+
onSubmit,
|
|
27
43
|
ref,
|
|
28
44
|
...props
|
|
29
45
|
}: ThinkRoutineFormProps & {
|
|
30
|
-
ref?: React.Ref<
|
|
46
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
31
47
|
}): React.JSX.Element;
|
|
32
48
|
//#endregion
|
|
33
|
-
export { ThinkRoutineForm, ThinkRoutineFormProps };
|
|
49
|
+
export { ThinkRoutineForm, ThinkRoutineFormProps, ThinkRoutineFormRoutine, ThinkRoutineFormSchedule, ThinkRoutineFormValue };
|