@mcp-b/react-components 0.48.0 → 0.49.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/AgentChatQueue-v5890eA1.d.ts +48 -0
- package/dist/AgentToolRunsContext-GMe_hSnD.d.ts +35 -0
- package/dist/Avatar-o2NO1fCG.d.ts +124 -0
- package/dist/{Button-CZt3yywF.d.ts → Button-DjONW5UW.d.ts} +1 -1
- package/dist/{CodeBlock-C380GD5t.d.ts → CodeBlock--r6GS8YV.d.ts} +8 -2
- package/dist/{CodeBlock-BSJl682D.js → CodeBlock-g8sADidM.js} +8 -8
- package/dist/{FileTree-DvE0hNZu.js → FileTree-DruTQ-oa.js} +38 -36
- package/dist/{IconButton-BAUFhUk8.d.ts → IconButton-ByiyjkYE.d.ts} +2 -2
- package/dist/{Menu-yb6QXWA3.d.ts → Menu-CgfUZhZd.d.ts} +1 -1
- package/dist/{Message-D_vCVEGB.d.ts → Message-DyaTBiV7.d.ts} +17 -4
- package/dist/MessageScrollerVirtual-D4afYwVB.d.ts +84 -0
- package/dist/{PromptInput-DtJHyp0S.d.ts → PromptInput-4kCz3T9P.d.ts} +45 -32
- package/dist/PromptInputApproval-D2hpn54U.d.ts +44 -0
- package/dist/Separator-CzhtLYE1.d.ts +41 -0
- package/dist/Toolbar-CGY004u0.d.ts +155 -0
- package/dist/{Workspace-LIoU30n7.d.ts → Workspace-HzGrWDX3.d.ts} +1 -1
- package/dist/{WorkspaceFile-Dq-GC0_T.d.ts → WorkspaceFile-Bouauobc.d.ts} +1 -1
- package/dist/{WorkspaceFileView-C_WnYm-a.js → WorkspaceFileView-DYPtRVpM.js} +5 -4
- package/dist/{WorkspaceLink-B1d2GIGl.js → WorkspaceLink-BYZG-V_I.js} +8 -91
- package/dist/{WorkspaceMessageResponse-BqOezptB.js → WorkspaceMessageResponse-CUJk9_P5.js} +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.d.ts +198 -2
- package/dist/components/agents-sdk/AgentChat.js +527 -672
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +2 -0
- package/dist/components/agents-sdk/AgentChatQueue.js +206 -0
- package/dist/components/agents-sdk/AgentEvent.js +2 -2
- package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +2 -2
- package/dist/components/agents-sdk/AgentToolRunsContext.js +1 -36
- package/dist/components/agents-sdk/BrowserLiveScreen.js +22 -14
- package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +3 -0
- package/dist/components/agents-sdk/BrowserRunPanel.js +32 -31
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +212 -0
- package/dist/components/agents-sdk/EmployeeChrome.js +555 -0
- package/dist/components/agents-sdk/ManagerOffice.d.ts +79 -40
- package/dist/components/agents-sdk/ManagerOffice.js +291 -281
- package/dist/components/agents-sdk/McpConnectionRequest.d.ts +4 -4
- package/dist/components/agents-sdk/McpConnectionRequest.js +4 -3
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +38 -1
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +93 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +5 -4
- package/dist/components/agents-sdk/McpServerIcon.d.ts +17 -0
- package/dist/components/agents-sdk/McpServerIcon.js +25 -0
- package/dist/components/agents-sdk/McpServerPicker.d.ts +5 -4
- package/dist/components/agents-sdk/McpServerPicker.js +4 -3
- package/dist/components/agents-sdk/ModelSelector.d.ts +4 -4
- package/dist/components/agents-sdk/ModelSelector.js +4 -4
- package/dist/components/agents-sdk/PromptInputApproval.d.ts +1 -43
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +2 -3
- package/dist/components/agents-sdk/SessionCompaction.d.ts +88 -1
- package/dist/components/agents-sdk/SessionCompaction.js +2 -2
- package/dist/components/agents-sdk/SubagentRunDetails.d.ts +30 -1
- package/dist/components/agents-sdk/SubagentRunDetails.js +57 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.d.ts +9 -9
- package/dist/components/agents-sdk/SubagentRunIndicator.js +19 -24
- package/dist/components/agents-sdk/SubagentRunList.d.ts +6 -3
- package/dist/components/agents-sdk/SubagentRunList.js +4 -2
- package/dist/components/agents-sdk/SubagentRunPanel.d.ts +60 -0
- package/dist/components/agents-sdk/SubagentRunPanel.js +255 -0
- package/dist/components/agents-sdk/SubagentRunSelector.d.ts +8 -4
- package/dist/components/agents-sdk/SubagentRunSelector.js +5 -3
- package/dist/components/agents-sdk/ThinkChat.d.ts +102 -2
- package/dist/components/agents-sdk/ThinkChat.js +233 -2
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +76 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +18 -10
- package/dist/components/agents-sdk/ThinkChatContext.d.ts +27 -1
- package/dist/components/agents-sdk/ThinkChatContext.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +24 -19
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +85 -28
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +159 -102
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +40 -158
- package/dist/components/agents-sdk/ThinkFullApp.js +71 -290
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +18 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +51 -0
- package/dist/components/agents-sdk/ThinkRoutineActions.js +201 -0
- package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +4 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +17 -15
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +11 -11
- package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +2 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +14 -14
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +7 -7
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +90 -1
- 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 +7 -13
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +10 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +10 -7
- package/dist/components/agents-sdk/WorkspaceExecution.d.ts +5 -14
- package/dist/components/agents-sdk/WorkspaceExecution.js +24 -38
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +5 -2
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -2
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -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/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +60 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +47 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.d.ts +3 -2
- package/dist/components/agents-sdk/WorkspaceMountManager.js +6 -9
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.d.ts +38 -0
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +86 -0
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +5 -14
- package/dist/components/agents-sdk/WorkspaceProject.js +21 -35
- package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceUserScript.js +8 -5
- package/dist/components/ai-sdk/Activity.d.ts +1 -1
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentAttention.d.ts +2 -2
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +5 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +89 -2
- package/dist/components/ai-sdk/AgentChatStartScreen.js +64 -43
- package/dist/components/ai-sdk/AgentMessageParts.d.ts +45 -1
- package/dist/components/ai-sdk/Approval.d.ts +1 -1
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.d.ts +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.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +2 -3
- package/dist/components/ai-sdk/ConnectedAppCards.d.ts +9 -1
- package/dist/components/ai-sdk/ConnectedAppCards.js +28 -21
- package/dist/components/ai-sdk/Context.d.ts +7 -3
- package/dist/components/ai-sdk/Context.js +7 -17
- package/dist/components/ai-sdk/Conversation.d.ts +2 -2
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.d.ts +3 -3
- package/dist/components/ai-sdk/Goal.js +3 -3
- package/dist/components/ai-sdk/InlineCitation.d.ts +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.d.ts +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.d.ts +2 -2
- package/dist/components/ai-sdk/Message.js +12 -3
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.d.ts +2 -76
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +40 -5
- package/dist/components/ai-sdk/Plan.d.ts +1 -1
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.d.ts +2 -2
- package/dist/components/ai-sdk/PromptInput.js +175 -231
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +32 -9
- package/dist/components/ai-sdk/Queue.d.ts +28 -5
- package/dist/components/ai-sdk/Queue.js +20 -5
- package/dist/components/ai-sdk/Reasoning.d.ts +1 -1
- package/dist/components/ai-sdk/Reasoning.js +5 -5
- package/dist/components/ai-sdk/Sources.d.ts +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.d.ts +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/extension/ChatGptSignInScreen.d.ts +1 -1
- package/dist/components/extension/ChatGptSignInScreen.js +1 -1
- package/dist/components/extension/CodexModelSelector.d.ts +6 -1
- package/dist/components/extension/CodexModelSelector.js +3 -3
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -0
- package/dist/components/extension/ConversationTabPicker.js +2 -2
- package/dist/components/foundations/AlertDialog.d.ts +1 -1
- package/dist/components/foundations/AppIcon.d.ts +3 -2
- package/dist/components/foundations/Autocomplete.js +6 -1
- package/dist/components/foundations/Avatar.d.ts +1 -121
- package/dist/components/foundations/Button.d.ts +1 -1
- package/dist/components/foundations/Card.d.ts +22 -27
- package/dist/components/foundations/Card.js +51 -32
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/CheckboxGroup.d.ts +1 -1
- package/dist/components/foundations/Collapsible.d.ts +1 -1
- package/dist/components/foundations/Collapsible.js +1 -1
- package/dist/components/foundations/Combobox.js +6 -1
- package/dist/components/foundations/ContextMenu.d.ts +10 -23
- package/dist/components/foundations/ContextMenu.js +3 -2
- package/dist/components/foundations/Dialog.d.ts +106 -1
- package/dist/components/foundations/EmptyState.d.ts +1 -1
- package/dist/components/foundations/Field.d.ts +2 -1
- package/dist/components/foundations/Fieldset.d.ts +1 -1
- package/dist/components/foundations/Form.d.ts +4 -4
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/Label.d.ts +1 -1
- package/dist/components/foundations/LinkButton.d.ts +2 -2
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menubar.d.ts +1 -1
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/Meter.d.ts +1 -1
- package/dist/components/foundations/NumberField.d.ts +1 -1
- package/dist/components/foundations/PreviewCard.d.ts +1 -1
- package/dist/components/foundations/ScrollArea.d.ts +1 -1
- package/dist/components/foundations/SearchField.d.ts +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +7 -2
- package/dist/components/foundations/Separator.d.ts +1 -40
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Textarea.d.ts +1 -1
- package/dist/components/foundations/Toast.d.ts +5 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/Toggle.d.ts +70 -1
- package/dist/components/foundations/ToggleGroup.d.ts +4 -3
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/Toolbar.d.ts +1 -151
- package/dist/components/foundations/Tooltip.d.ts +1 -1
- package/dist/components/foundations/TransitionSurface.d.ts +1 -1
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/ActionGuide.d.ts +10 -26
- package/dist/components/general-purpose/ActionGuide.js +4 -18
- package/dist/components/general-purpose/AppTopBar.d.ts +4 -2
- package/dist/components/general-purpose/Commit.d.ts +2 -2
- package/dist/components/general-purpose/Commit.js +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.d.ts +1 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingPlanCard.d.ts +4 -0
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResizableSidePanel.d.ts +2 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +128 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +120 -102
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +14 -27
- package/dist/components/general-purpose/SettingsFormDialog.js +42 -72
- package/dist/components/general-purpose/SetupChecklist.d.ts +1 -0
- package/dist/components/general-purpose/SetupChecklist.js +76 -1
- package/dist/components/general-purpose/Terminal.d.ts +3 -3
- package/dist/components/general-purpose/Terminal.js +11 -6
- package/dist/components/general-purpose/TestResults.d.ts +23 -11
- package/dist/components/general-purpose/TestResults.js +49 -51
- package/dist/components/general-purpose/ThemeModeControl.d.ts +2 -0
- package/dist/components/general-purpose/ThemeModeControl.js +2 -2
- package/dist/components/general-purpose/WebPreview.d.ts +29 -4
- package/dist/components/general-purpose/WebPreview.js +39 -14
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.d.ts +13 -11
- package/dist/components/nanites/AgentToolDetail.js +21 -42
- package/dist/{copy-button-Dk2vRe9j.js → copy-button-CSDuDfdP.js} +1 -1
- package/dist/{copy-button-C0JyjClr.d.ts → copy-button-OUwOdgEm.d.ts} +1 -1
- package/dist/mcp-server-mAErsxHU.js +27 -0
- package/dist/styles/accessibility.css +20 -0
- package/dist/styles/activity.css +1 -96
- package/dist/styles/agent-chat.css +75 -102
- package/dist/styles/agent-tool-detail.css +0 -16
- package/dist/styles/base.css +1 -9
- package/dist/styles/browser-run-panel.css +1 -15
- package/dist/styles/button.css +7 -1
- package/dist/styles/code-block.css +12 -0
- package/dist/styles/codex-model-selector.css +4 -0
- package/dist/styles/color-contrast.test.ts +212 -0
- package/dist/styles/composition-motion.css +0 -2
- package/dist/styles/employee-chrome.css +43 -0
- package/dist/styles/file-tree.css +10 -1
- package/dist/styles/index.css +4 -2
- package/dist/styles/manager-office.css +5 -5
- package/dist/styles/message.css +2 -10
- package/dist/styles/queue.css +71 -0
- package/dist/styles/responsive-sidebar-shell.css +1 -1
- package/dist/styles/subagent-run.css +122 -6
- package/dist/styles/test-results.css +2 -5
- package/dist/styles/think-chat-activity.css +13 -0
- package/dist/styles/think-chat-tool-panels.css +81 -0
- package/dist/styles/think-execution-workbench.css +2 -8
- package/dist/styles/think-full-app.css +42 -251
- package/dist/styles/{think-routine-library.css → think-routine.css} +64 -80
- package/dist/styles/web-preview.css +15 -1
- package/dist/utils/codex-model-catalog.d.ts +25 -6
- package/dist/utils/codex-model-catalog.js +22 -5
- package/dist/utils/mcp-server-catalog.d.ts +1112 -2
- package/dist/utils/mcp-server-catalog.js +28 -9
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/{workspace-assets-GqsCYxqT.js → workspace-assets-Bg7XhPsk.js} +2 -2
- package/package.json +8 -4
- package/dist/AgentChat-BLmQghkt.d.ts +0 -327
- package/dist/AgentChatStartScreen-Bkv7Avni.d.ts +0 -84
- package/dist/AgentMessageParts-C7L-Mv9U.d.ts +0 -46
- package/dist/AgentToolRunsContext-jtmveaRE.d.ts +0 -57
- package/dist/Dialog-B_FhRWaz.d.ts +0 -107
- package/dist/McpConnectorForm-CeYNY0MI.d.ts +0 -39
- package/dist/McpPluginCatalog-3qWu8oK1.d.ts +0 -92
- package/dist/ResponsiveSidebarShell-BTVPxLJK.d.ts +0 -123
- package/dist/SessionCompaction-CmTJFpzj.d.ts +0 -89
- package/dist/SetupChecklist-DeTU9YpW.js +0 -77
- package/dist/ThinkChat-CwMdEum8.d.ts +0 -185
- package/dist/ThinkChat-DiI6hhDP.js +0 -332
- package/dist/ThinkChatActivity-B3lGVS-6.d.ts +0 -77
- package/dist/ThinkChatContext-COIgzkYp.d.ts +0 -28
- package/dist/ThinkRecoveryNotice-DGWr94rk.d.ts +0 -19
- package/dist/ThinkThreadPicker-yFz4vvIf.d.ts +0 -91
- package/dist/Toggle-DLrIf5YH.d.ts +0 -69
- package/dist/WorkspaceLive-DfjH1Ypm.d.ts +0 -61
- package/dist/WorkspaceMessageResponse-kJYU8Onj.d.ts +0 -48
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +0 -31
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +0 -34
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +0 -80
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +0 -159
- package/dist/components/agents-sdk/ThinkSidepanel.d.ts +0 -200
- package/dist/components/agents-sdk/ThinkSidepanel.js +0 -775
- package/dist/mcp-server-7NR24ASj.js +0 -69
- package/dist/mcp-server-catalog-C_g7C-9o.d.ts +0 -1108
- package/dist/styles/think-sidepanel.css +0 -78
- package/dist/think-agent-Cip5KAPj.d.ts +0 -7
- package/dist/{icons-CeGfXO21.js → icons-cuEtsgj9.js} +1 -1
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { n as AgentToolRunValue } from "../../AgentToolRunsContext-GMe_hSnD.js";
|
|
2
|
+
import { SubagentRunMetadataProps } from "../agents-sdk/SubagentRunDetails.js";
|
|
3
|
+
import { ThinkChatValue } from "../agents-sdk/ThinkChatContext.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { UIMessage } from "ai";
|
|
6
6
|
import { UseAgentOptions, useAgent } from "agents/react";
|
|
7
|
-
import {
|
|
7
|
+
import { Think } from "@cloudflare/think";
|
|
8
8
|
|
|
9
|
+
//#region src/components/_internal/think-agent.d.ts
|
|
10
|
+
/** Shared complete Think specialization for stateful React agent hooks. */
|
|
11
|
+
type ThinkAgent<State = unknown> = Think<object, State>;
|
|
12
|
+
//#endregion
|
|
9
13
|
//#region src/components/nanites/AgentToolDetail.d.ts
|
|
10
14
|
interface AgentToolDetailProps<State = unknown, MessageT extends UIMessage = UIMessage> extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
15
|
/** Whole retained run selected from the parent `useAgentToolEvents` result. */
|
|
12
|
-
run:
|
|
16
|
+
run: AgentToolRunValue<MessageT["parts"][number]>;
|
|
13
17
|
/**
|
|
14
18
|
* Whole child Think chat hook result; it owns the stored child transcript.
|
|
15
19
|
* Optional because the run's chrome is parent-side data: while the child
|
|
@@ -17,7 +21,6 @@ interface AgentToolDetailProps<State = unknown, MessageT extends UIMessage = UIM
|
|
|
17
21
|
* region shows a loading status instead.
|
|
18
22
|
*/
|
|
19
23
|
chat?: ThinkChatValue<State, MessageT>;
|
|
20
|
-
messages?: ThinkChatMessagesProps<MessageT>;
|
|
21
24
|
/** App-authored TanStack Router Link to the parent conversation. */
|
|
22
25
|
backLink?: React.ReactElement;
|
|
23
26
|
/**
|
|
@@ -25,6 +28,7 @@ interface AgentToolDetailProps<State = unknown, MessageT extends UIMessage = UIM
|
|
|
25
28
|
* rendered in the top bar's trailing slot after the status mark.
|
|
26
29
|
*/
|
|
27
30
|
actions?: React.ReactNode;
|
|
31
|
+
renderMilestone?: SubagentRunMetadataProps["renderMilestone"];
|
|
28
32
|
}
|
|
29
33
|
/**
|
|
30
34
|
* Live retained-child detail composed from upstream connection and chat values.
|
|
@@ -36,15 +40,15 @@ declare function AgentToolDetail<State = unknown, MessageT extends UIMessage = U
|
|
|
36
40
|
backLink,
|
|
37
41
|
chat,
|
|
38
42
|
className,
|
|
39
|
-
messages,
|
|
40
43
|
ref,
|
|
41
44
|
run,
|
|
45
|
+
renderMilestone,
|
|
42
46
|
...props
|
|
43
47
|
}: AgentToolDetailProps<State, MessageT> & {
|
|
44
48
|
ref?: React.Ref<HTMLDivElement>;
|
|
45
49
|
}): React.JSX.Element;
|
|
46
50
|
interface SelectedAgentToolChildProps<ParentAgentT extends ThinkAgent<ParentState>, ParentState = unknown, ChildState = unknown, MessageT extends UIMessage = UIMessage> {
|
|
47
|
-
run:
|
|
51
|
+
run: AgentToolRunValue<MessageT["parts"][number]>;
|
|
48
52
|
/** Whole parent `useAgent` result used to derive the standard root-first route. */
|
|
49
53
|
parentAgent: ReturnType<typeof useAgent<ParentAgentT, ParentState>>;
|
|
50
54
|
/**
|
|
@@ -59,7 +63,6 @@ interface SelectedAgentToolChildProps<ParentAgentT extends ThinkAgent<ParentStat
|
|
|
59
63
|
* wired into `useAgentChat({ getInitialMessages })`.
|
|
60
64
|
*/
|
|
61
65
|
getInitialMessages?: (childAgent: ReturnType<typeof useAgent<ThinkAgent<ChildState>, ChildState>>) => Promise<MessageT[]>;
|
|
62
|
-
messages?: ThinkChatMessagesProps<MessageT>;
|
|
63
66
|
/** App-authored TanStack Router Link to the parent conversation. */
|
|
64
67
|
backLink?: React.ReactElement;
|
|
65
68
|
/**
|
|
@@ -84,7 +87,7 @@ declare function selectedAgentToolChildOptions<ChildState = unknown>(parentAgent
|
|
|
84
87
|
agent: string;
|
|
85
88
|
name: string;
|
|
86
89
|
}>;
|
|
87
|
-
}, run: Pick<
|
|
90
|
+
}, run: Pick<AgentToolRunValue, "subAgent">, connectionOptions?: UseAgentOptions<ChildState>): UseAgentOptions<ChildState>;
|
|
88
91
|
/**
|
|
89
92
|
* Lazily connects one selected retained child and renders its real Think chat.
|
|
90
93
|
*
|
|
@@ -101,7 +104,6 @@ declare function SelectedAgentToolChild<ParentAgentT extends ThinkAgent<ParentSt
|
|
|
101
104
|
connectionOptions,
|
|
102
105
|
fallback,
|
|
103
106
|
getInitialMessages,
|
|
104
|
-
messages,
|
|
105
107
|
parentAgent,
|
|
106
108
|
run
|
|
107
109
|
}: SelectedAgentToolChildProps<ParentAgentT, ParentState, ChildState, MessageT>): React.JSX.Element;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { r as ArrowLeftIcon } from "../../icons-
|
|
2
|
+
import { r as ArrowLeftIcon } from "../../icons-cuEtsgj9.js";
|
|
3
|
+
import { MessageActions } from "../ai-sdk/Message.js";
|
|
4
|
+
import { SubagentRunIndicator, getSubagentRunName } from "../agents-sdk/SubagentRunIndicator.js";
|
|
5
|
+
import { NaniteMark } from "./NaniteScene.js";
|
|
3
6
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
7
|
+
import { AgentChat } from "../agents-sdk/AgentChat.js";
|
|
4
8
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress } from "../agents-sdk/SubagentRunDetails.js";
|
|
8
|
-
import { t as ThinkChat } from "../../ThinkChat-DiI6hhDP.js";
|
|
9
|
+
import { SubagentRunMetadata } from "../agents-sdk/SubagentRunDetails.js";
|
|
10
|
+
import { ThinkChat } from "../agents-sdk/ThinkChat.js";
|
|
9
11
|
import * as React from "react";
|
|
10
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
13
|
import { useAgentChat } from "@cloudflare/think/react";
|
|
@@ -16,10 +18,9 @@ import { useAgent } from "agents/react";
|
|
|
16
18
|
* The full child transcript comes from `chat.messages`; `run.parts` remains a
|
|
17
19
|
* compact parent-side stream projection and is never promoted to fake history.
|
|
18
20
|
*/
|
|
19
|
-
function AgentToolDetail({ actions, backLink, chat, className,
|
|
21
|
+
function AgentToolDetail({ actions, backLink, chat, className, ref, run, renderMilestone, ...props }) {
|
|
20
22
|
const backRef = React.useRef(null);
|
|
21
23
|
const name = getSubagentRunName(run);
|
|
22
|
-
const progressLabel = run.progress?.message ?? run.progress?.phase;
|
|
23
24
|
React.useEffect(() => {
|
|
24
25
|
backRef.current?.focus();
|
|
25
26
|
}, [run.runId]);
|
|
@@ -48,40 +49,21 @@ function AgentToolDetail({ actions, backLink, chat, className, messages, ref, ru
|
|
|
48
49
|
/* @__PURE__ */ jsxs(AppTopBar.Trailing, { children: [/* @__PURE__ */ jsx(SubagentRunIndicator, { run }), actions] })
|
|
49
50
|
]
|
|
50
51
|
}),
|
|
51
|
-
|
|
52
|
+
/* @__PURE__ */ jsx(SubagentRunMetadata, {
|
|
52
53
|
className: "agent-tool-detail__run-state",
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
value: run.progress?.fraction
|
|
57
|
-
}) : null,
|
|
58
|
-
run.milestones?.length ? /* @__PURE__ */ jsx(SubagentRunMilestones, {
|
|
59
|
-
"aria-label": `${name} milestones`,
|
|
60
|
-
children: run.milestones.map((milestone) => /* @__PURE__ */ jsx(SubagentRunMilestone, { children: milestone.name }, milestone.sequence))
|
|
61
|
-
}) : null,
|
|
62
|
-
run.error ? /* @__PURE__ */ jsx("p", {
|
|
63
|
-
className: "agent-tool-detail__error",
|
|
64
|
-
children: run.error
|
|
65
|
-
}) : null,
|
|
66
|
-
!run.error && run.summary ? /* @__PURE__ */ jsx("p", {
|
|
67
|
-
className: "agent-tool-detail__summary",
|
|
68
|
-
children: run.summary
|
|
69
|
-
}) : null
|
|
70
|
-
]
|
|
71
|
-
}) : null,
|
|
54
|
+
run,
|
|
55
|
+
renderMilestone
|
|
56
|
+
}),
|
|
72
57
|
/* @__PURE__ */ jsx("div", {
|
|
73
58
|
className: "agent-tool-detail__chat",
|
|
74
|
-
children: chat ? /* @__PURE__ */
|
|
59
|
+
children: chat ? /* @__PURE__ */ jsxs(ThinkChat.Root, {
|
|
75
60
|
chat,
|
|
76
|
-
children: /* @__PURE__ */ jsx(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
showComposer: false,
|
|
83
|
-
loading: true
|
|
84
|
-
})
|
|
61
|
+
children: [/* @__PURE__ */ jsx(AgentChat.Transcript, { children: ({ message, messageIndex }) => /* @__PURE__ */ jsxs(AgentChat.Message, {
|
|
62
|
+
message,
|
|
63
|
+
messageIndex,
|
|
64
|
+
children: [/* @__PURE__ */ jsx(ThinkChat.MessageContent, { message }), /* @__PURE__ */ jsx(MessageActions, { children: /* @__PURE__ */ jsx(AgentChat.CopyAction, {}) })]
|
|
65
|
+
}) }), /* @__PURE__ */ jsx(AgentChat.Dock, { children: /* @__PURE__ */ jsx(ThinkChat.RecoveryNotice, {}) })]
|
|
66
|
+
}) : /* @__PURE__ */ jsx(AgentChat.Loading, {})
|
|
85
67
|
})
|
|
86
68
|
]
|
|
87
69
|
});
|
|
@@ -111,12 +93,11 @@ function selectedAgentToolChildOptions(parentAgent, run, connectionOptions) {
|
|
|
111
93
|
* this component holds the connection and always commits, while the chat
|
|
112
94
|
* suspends behind the internal boundary.
|
|
113
95
|
*/
|
|
114
|
-
function SelectedAgentToolChild({ actions, backLink, connectionOptions, fallback, getInitialMessages,
|
|
96
|
+
function SelectedAgentToolChild({ actions, backLink, connectionOptions, fallback, getInitialMessages, parentAgent, run }) {
|
|
115
97
|
const childAgent = useAgent(selectedAgentToolChildOptions(parentAgent, run, connectionOptions));
|
|
116
98
|
return /* @__PURE__ */ jsx(React.Suspense, {
|
|
117
99
|
fallback: fallback ?? /* @__PURE__ */ jsx(AgentToolDetail, {
|
|
118
100
|
run,
|
|
119
|
-
messages,
|
|
120
101
|
backLink,
|
|
121
102
|
actions
|
|
122
103
|
}),
|
|
@@ -125,19 +106,17 @@ function SelectedAgentToolChild({ actions, backLink, connectionOptions, fallback
|
|
|
125
106
|
backLink,
|
|
126
107
|
childAgent,
|
|
127
108
|
getInitialMessages,
|
|
128
|
-
messages,
|
|
129
109
|
run
|
|
130
110
|
}, run.runId)
|
|
131
111
|
});
|
|
132
112
|
}
|
|
133
|
-
function SelectedAgentToolChildChat({ actions, backLink, childAgent, getInitialMessages,
|
|
113
|
+
function SelectedAgentToolChildChat({ actions, backLink, childAgent, getInitialMessages, run }) {
|
|
134
114
|
return /* @__PURE__ */ jsx(AgentToolDetail, {
|
|
135
115
|
run,
|
|
136
116
|
chat: useAgentChat({
|
|
137
117
|
agent: childAgent,
|
|
138
118
|
...getInitialMessages ? { getInitialMessages: () => getInitialMessages(childAgent) } : {}
|
|
139
119
|
}),
|
|
140
|
-
messages,
|
|
141
120
|
backLink,
|
|
142
121
|
actions
|
|
143
122
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CheckIcon, h as CopyIcon } from "./icons-
|
|
1
|
+
import { d as CheckIcon, h as CopyIcon } from "./icons-cuEtsgj9.js";
|
|
2
2
|
import { IconButton } from "./components/foundations/IconButton.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getMcpServerEntry, getMcpServerRuntimeState } from "./utils/mcp-server-catalog.js";
|
|
2
|
+
//#region src/components/_internal/mcp-server.tsx
|
|
3
|
+
function getMcpServerConnectionKind(server) {
|
|
4
|
+
if (!server) return "available";
|
|
5
|
+
const state = getMcpServerRuntimeState(server);
|
|
6
|
+
if (state === "ready") return "connected";
|
|
7
|
+
if (state === "connecting" || state === "discovering" || state === "connected" && !server.error) return "connecting";
|
|
8
|
+
return "reconnect";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Resolve one catalog card to the exact Agents SDK entry that owns its live
|
|
12
|
+
* connection state. An explicit server ID is authoritative for authorization
|
|
13
|
+
* flows and deliberately never falls back to a matching catalog entry.
|
|
14
|
+
*/
|
|
15
|
+
function getMcpServerProjection(card, mcp, serverId) {
|
|
16
|
+
const assignedServer = serverId === void 0 ? void 0 : mcp?.servers[serverId];
|
|
17
|
+
const entry = serverId === void 0 ? getMcpServerEntry(card, mcp) : assignedServer ? [serverId, assignedServer] : void 0;
|
|
18
|
+
const server = entry?.[1];
|
|
19
|
+
return {
|
|
20
|
+
connectionKind: getMcpServerConnectionKind(server),
|
|
21
|
+
runtimeState: server ? getMcpServerRuntimeState(server) : void 0,
|
|
22
|
+
server,
|
|
23
|
+
serverId: entry?.[0]
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { getMcpServerProjection as t };
|
|
@@ -11,4 +11,24 @@
|
|
|
11
11
|
border-color: GrayText;
|
|
12
12
|
color: GrayText;
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
:where([data-slot="meter-track"], [data-slot="progress-track"], [data-slot="slider-track"]) {
|
|
16
|
+
background-color: Canvas;
|
|
17
|
+
outline: var(--sigvelo-border-width) solid CanvasText;
|
|
18
|
+
outline-offset: calc(-1 * var(--sigvelo-border-width));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:where(
|
|
22
|
+
[data-slot="meter-indicator"],
|
|
23
|
+
[data-slot="progress-indicator"],
|
|
24
|
+
[data-slot="slider-indicator"]
|
|
25
|
+
) {
|
|
26
|
+
background-color: Highlight;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Base UI focuses the hidden range input inside the visible thumb. */
|
|
30
|
+
.slider__thumb:has(:focus-visible) {
|
|
31
|
+
outline: var(--sigvelo-focus-ring-forced);
|
|
32
|
+
outline-offset: var(--sigvelo-focus-offset);
|
|
33
|
+
}
|
|
14
34
|
}
|
package/dist/styles/activity.css
CHANGED
|
@@ -77,12 +77,6 @@
|
|
|
77
77
|
padding-inline: 0;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
/* Reveal row for step logs capped at the trailing window. */
|
|
81
|
-
.activity__show-earlier {
|
|
82
|
-
align-self: flex-start;
|
|
83
|
-
color: var(--sigvelo-color-text-muted);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
80
|
.activity__item {
|
|
87
81
|
display: flex;
|
|
88
82
|
align-items: baseline;
|
|
@@ -214,102 +208,13 @@
|
|
|
214
208
|
color: var(--sigvelo-color-danger-text-on-subtle);
|
|
215
209
|
}
|
|
216
210
|
|
|
217
|
-
.activity__call-audit {
|
|
218
|
-
display: flex;
|
|
219
|
-
min-inline-size: 0;
|
|
220
|
-
flex-direction: column;
|
|
221
|
-
gap: var(--sigvelo-spacing-1);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.activity__call-audit-label {
|
|
225
|
-
font-size: var(--sigvelo-text-meta);
|
|
226
|
-
font-weight: var(--sigvelo-font-weight-normal);
|
|
227
|
-
color: var(--sigvelo-color-text-muted);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.activity__call-audit-list {
|
|
231
|
-
display: flex;
|
|
232
|
-
min-inline-size: 0;
|
|
233
|
-
flex-direction: column;
|
|
234
|
-
gap: var(--sigvelo-spacing-1);
|
|
235
|
-
margin: 0;
|
|
236
|
-
padding-inline-start: 0;
|
|
237
|
-
list-style: none;
|
|
238
|
-
font-size: var(--sigvelo-text-code);
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
.activity__call-audit-item {
|
|
242
|
-
min-inline-size: 0;
|
|
243
|
-
padding-inline-start: 0;
|
|
244
|
-
color: var(--sigvelo-color-text);
|
|
245
|
-
overflow-wrap: anywhere;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
.activity__call-audit-code,
|
|
249
|
-
.activity__call-audit-result {
|
|
250
|
-
font-family: var(--sigvelo-font-mono);
|
|
251
|
-
white-space: pre-wrap;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.activity__call-audit-state {
|
|
255
|
-
margin-inline-start: var(--sigvelo-spacing-1);
|
|
256
|
-
color: var(--sigvelo-color-text-muted);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.activity__call-audit-item[data-state="error"] .activity__call-audit-state {
|
|
260
|
-
color: var(--sigvelo-color-danger-text-on-subtle);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.activity__call-audit-item[data-state="reverted"] .activity__call-audit-state {
|
|
264
|
-
text-decoration: line-through;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/* Keep nested browser content compact without restyling the Tabs primitive. */
|
|
268
|
-
.activity__browser-panel {
|
|
269
|
-
padding-block: var(--sigvelo-spacing-2) 0;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/* Blend nested code into the quiet shell fill — no panel-in-panel */
|
|
273
|
-
.activity__shell .code-block {
|
|
274
|
-
background-color: transparent;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
211
|
/* Bounded so one long detail cannot swallow the activity list. */
|
|
278
212
|
.activity__group-text,
|
|
279
|
-
.activity__shell-output
|
|
280
|
-
.activity__code-block {
|
|
213
|
+
.activity__shell-output {
|
|
281
214
|
max-block-size: 12rem;
|
|
282
215
|
overflow-block: auto;
|
|
283
216
|
}
|
|
284
217
|
|
|
285
|
-
.activity__code-block .code-block__content,
|
|
286
|
-
.activity__code-block .code-block__content--highlighted pre.shiki,
|
|
287
|
-
.activity__code-block .code-block__content--highlighted pre.shiki code {
|
|
288
|
-
white-space: pre-wrap;
|
|
289
|
-
word-break: break-word;
|
|
290
|
-
overflow-wrap: anywhere;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.activity__browser-screenshot {
|
|
294
|
-
display: block;
|
|
295
|
-
inline-size: 100%;
|
|
296
|
-
/* Screenshot well. Not --sigvelo-layout-sidebar. */
|
|
297
|
-
max-block-size: 16rem;
|
|
298
|
-
aspect-ratio: 16 / 10;
|
|
299
|
-
object-fit: contain;
|
|
300
|
-
border-radius: var(--sigvelo-radius-md);
|
|
301
|
-
background-color: var(--sigvelo-color-surface);
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
/* Mini diff inside an edit panel */
|
|
305
|
-
.activity__diff-del {
|
|
306
|
-
color: var(--sigvelo-color-danger-text-on-subtle);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.activity__diff-add {
|
|
310
|
-
color: var(--sigvelo-color-success-text-on-subtle);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
218
|
.activity__favicon {
|
|
314
219
|
display: block;
|
|
315
220
|
inline-size: var(--sigvelo-control-icon-size-md);
|