@mcp-b/react-components 0.35.0 → 0.37.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/{AgentChat-mpacmRU1.d.ts → AgentChat-CVO7xyLC.d.ts} +1 -1
- package/dist/{CodeBlock-DzGhYyNe.d.ts → CodeBlock-C380GD5t.d.ts} +2 -5
- package/dist/{CodeBlock-CM5gfmdq.js → CodeBlock-DO4Hdu1R.js} +4 -3
- package/dist/{Dialog-DeOSJ0Oy.d.ts → Dialog-B_FhRWaz.d.ts} +22 -37
- package/dist/{FileTree-4WP4Uc_m.js → FileTree-DbQMpvxV.js} +1 -1
- package/dist/{Menu-DVmjBIuM.d.ts → Menu-yb6QXWA3.d.ts} +64 -75
- package/dist/{PromptInput-DOyee1kM.d.ts → PromptInput-BRX7FhjH.d.ts} +7 -272
- package/dist/ResponsiveSidebarShell-DWjULskY.d.ts +68 -0
- package/dist/{Select-D96d09ww.d.ts → Select-RrceeEIe.d.ts} +17 -52
- package/dist/{ThinkChat-DbzqSTBt.js → ThinkChat-DQh59CeC.js} +6 -8
- package/dist/{ThinkChatActivity-BZyN5MBg.d.ts → ThinkChatActivity-Dkmm2pIj.d.ts} +1 -1
- package/dist/{ToggleGroup-CSBWfPXo.d.ts → ToggleGroup-_pQMyHGM.d.ts} +5 -7
- package/dist/{WorkspaceFile-CVAzjTt6.d.ts → WorkspaceFile-BLaFmMrt.d.ts} +1 -1
- package/dist/{WorkspaceFileView-BmxSbhRu.js → WorkspaceFileView-Cu_ZG6HJ.js} +11 -17
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentActivityPreview.js +4 -4
- package/dist/components/agents-sdk/AgentChat.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChat.js +36 -30
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +47 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +2 -2
- package/dist/components/agents-sdk/BrowserReplay.d.ts +40 -1
- 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 +15 -16
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +19 -26
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +20 -18
- package/dist/components/agents-sdk/ModelSelector.d.ts +9 -9
- package/dist/components/agents-sdk/ModelSelector.js +504 -1
- 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 +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 +17 -107
- package/dist/components/agents-sdk/ThinkChat.js +2 -12
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +2 -4
- package/dist/components/agents-sdk/ThinkChatActivity.js +2 -2
- 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 +3 -3
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkFullApp.js +10 -14
- 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 +3 -3
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +2 -3
- 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 +6 -7
- package/dist/components/agents-sdk/ThinkThreadShell.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.d.ts +140 -2
- 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 +32 -5
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -5
- 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/WorkspaceMountManager.js +2 -2
- package/dist/components/ai-sdk/Activity.d.ts +5 -0
- package/dist/components/ai-sdk/Activity.js +34 -14
- 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.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/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 +2 -6
- package/dist/components/ai-sdk/MessageScroller.d.ts +5 -0
- package/dist/components/ai-sdk/MessageScroller.js +19 -13
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +19 -11
- 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 +126 -129
- package/dist/components/ai-sdk/Queue.js +2 -2
- package/dist/components/ai-sdk/Reasoning.d.ts +3 -4
- package/dist/components/ai-sdk/Reasoning.js +30 -14
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/ai-sdk/ToolInvocation.d.ts +3 -5
- package/dist/components/extension/ChatGptSignInScreen.js +3 -3
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.js +3 -3
- package/dist/components/foundations/Accordion.d.ts +1 -3
- package/dist/components/foundations/Accordion.js +1 -3
- package/dist/components/foundations/AlertDialog.d.ts +16 -36
- package/dist/components/foundations/Autocomplete.d.ts +12 -33
- package/dist/components/foundations/Autocomplete.js +2 -1
- 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/Combobox.d.ts +119 -2
- package/dist/components/foundations/Combobox.js +6 -23
- package/dist/components/foundations/ContextMenu.d.ts +50 -57
- package/dist/components/foundations/ContextMenu.js +5 -29
- package/dist/components/foundations/DescriptionList.d.ts +34 -2
- package/dist/components/foundations/DescriptionList.js +33 -2
- package/dist/components/foundations/Dialog.d.ts +1 -1
- package/dist/components/foundations/Dialog.js +2 -1
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +3 -21
- package/dist/components/foundations/Menubar.d.ts +35 -64
- package/dist/components/foundations/Menubar.js +4 -23
- package/dist/components/foundations/Popover.d.ts +8 -21
- package/dist/components/foundations/Popover.js +3 -48
- package/dist/components/foundations/PreviewCard.d.ts +44 -29
- package/dist/components/foundations/PreviewCard.js +3 -6
- package/dist/components/foundations/RadioGroup.d.ts +4 -6
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.d.ts +1 -1
- package/dist/components/foundations/Select.js +8 -22
- package/dist/components/foundations/Slider.d.ts +31 -44
- package/dist/components/foundations/Slider.js +26 -25
- package/dist/components/foundations/Stepper.d.ts +3 -3
- package/dist/components/foundations/Stepper.js +6 -7
- 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/Tooltip.d.ts +6 -8
- package/dist/components/foundations/Tooltip.js +4 -3
- 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.d.ts +2 -3
- package/dist/components/general-purpose/PricingBillingToggle.js +5 -23
- package/dist/components/general-purpose/PricingPage.d.ts +3 -4
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -67
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +7 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +19 -4
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/Terminal.js +4 -4
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +2 -2
- package/dist/components/general-purpose/WebPreview.js +5 -5
- package/dist/components/nanites/AgentConnection.js +17 -12
- package/dist/components/nanites/AgentToolDetail.js +4 -4
- package/dist/{copy-button-CsNSSKYG.js → copy-button-4YvddK4e.js} +1 -1
- package/dist/{mcp-server-U71zhxFF.js → mcp-server-SD_S-IpB.js} +18 -2
- package/dist/message-scroller-C8cplcQO.js +32 -0
- package/dist/provider-logos-zjZycgV6.js +74 -0
- package/dist/styles/agent-chat.css +9 -0
- package/dist/styles/agent-connection.css +4 -31
- package/dist/styles/alert-dialog.css +0 -2
- package/dist/styles/base-ui-motion.css +7 -5
- package/dist/styles/chatgpt-sign-in-screen.css +5 -3
- package/dist/styles/dialog.css +0 -2
- package/dist/styles/model-selector.css +30 -12
- package/dist/styles/popover.css +0 -1
- package/dist/styles/preview-card.css +0 -4
- package/dist/styles/pricing-page.css +1 -13
- package/dist/styles/prompt-input.css +12 -10
- package/dist/styles/recipes.css +22 -14
- package/dist/styles/slider.css +2 -2
- package/dist/styles/tooltip.css +0 -1
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +18 -8
- package/dist/BrowserLiveView-tJTWkoyu.d.ts +0 -48
- package/dist/BrowserReplay-B0BQZr-N.d.ts +0 -41
- package/dist/Combobox-WrrDDaEv.d.ts +0 -154
- package/dist/ModelSelector-DtBxWqRn.js +0 -504
- package/dist/Workspace-GTlqvcIn.d.ts +0 -278
- package/dist/WorkspaceExplorer-Cu044amt.d.ts +0 -32
- package/dist/components/foundations/DescriptionListParts.d.ts +0 -37
- package/dist/components/foundations/DescriptionListParts.js +0 -35
- package/dist/{icons-B1Qw05te.js → icons-B4mGvCvc.js} +1 -1
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
import { i as AgentMessageRenderPartContext } from "../../AgentMessageParts-C7L-Mv9U.js";
|
|
2
|
-
import {
|
|
3
|
-
import { r as AgentChatProps } from "../../AgentChat-
|
|
4
|
-
import {
|
|
5
|
-
import { n as BrowserLiveViewProps, t as BrowserLiveView } from "../../BrowserLiveView-tJTWkoyu.js";
|
|
6
|
-
import { n as BrowserReplayProps, t as BrowserReplay } from "../../BrowserReplay-B0BQZr-N.js";
|
|
2
|
+
import { K as PromptInputMessage } from "../../PromptInput-BRX7FhjH.js";
|
|
3
|
+
import { r as AgentChatProps } from "../../AgentChat-CVO7xyLC.js";
|
|
4
|
+
import { n as AgentToolEventsValue } from "../../AgentToolRunsContext-BCVqCtJ1.js";
|
|
7
5
|
import { o as UseSessionCompactionResult } from "../../SessionCompaction-CmTJFpzj.js";
|
|
8
|
-
import {
|
|
9
|
-
import { u as describeThinkChatActivityPart } from "../../ThinkChatActivitySummary-teRjrPxW.js";
|
|
10
|
-
import { a as ThinkChatToolRenderers, i as ThinkChatToolRenderer, n as ThinkChatActivityProps, o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, s as renderThinkChatActivityPart, t as ThinkChatActivity } from "../../ThinkChatActivity-BZyN5MBg.js";
|
|
6
|
+
import { o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, t as ThinkChatActivity } from "../../ThinkChatActivity-Dkmm2pIj.js";
|
|
11
7
|
import { i as ThinkChatValue } from "../../ThinkChatContext-COIgzkYp.js";
|
|
12
|
-
import {
|
|
13
|
-
import { d as inferWorkspaceLanguage, i as WorkspaceFileState } from "../../WorkspaceFile-CVAzjTt6.js";
|
|
14
|
-
import { a as WorkspaceSource, c as workspaceBinaryFileQueryOptions, d as workspaceDirectoryQueryPrefix, f as workspaceFileAssetQueryOptions, g as workspaceTextFileQueryOptions, h as workspaceQueryKey, i as WorkspaceQueryKey, l as workspaceDirectoryQueryKey, m as workspaceInfoQueryOptions, n as WorkspaceFileReadTarget, o as WorkspaceState, p as workspaceFileStatQueryOptions, r as WorkspaceInfo, s as useWorkspace, t as UseWorkspaceOptions, u as workspaceDirectoryQueryOptions } from "../../Workspace-GTlqvcIn.js";
|
|
15
|
-
import { n as WorkspaceExplorerProps, t as WorkspaceExplorer } from "../../WorkspaceExplorer-Cu044amt.js";
|
|
8
|
+
import { t as ThinkRecoveryNotice } from "../../ThinkRecoveryNotice-DGWr94rk.js";
|
|
16
9
|
import * as React from "react";
|
|
17
10
|
import { UIMessage } from "ai";
|
|
18
11
|
import { UseAgentOptions } from "agents/react";
|
|
19
12
|
import { DataTag, UndefinedInitialDataOptions } from "@tanstack/react-query";
|
|
20
13
|
import { PendingApproval, Think } from "@cloudflare/think";
|
|
21
14
|
import { AgentStub } from "agents/client";
|
|
22
|
-
import { UseVoiceInputReturn } from "@cloudflare/voice/react";
|
|
23
15
|
|
|
24
16
|
//#region src/components/agents-sdk/ThinkChat.d.ts
|
|
25
17
|
type ThinkPendingExecutionApprovalsQueryKey = readonly ["think", sourceKey: string, "pending-approvals"];
|
|
@@ -63,102 +55,20 @@ interface ThinkChatDraft<MessageT extends UIMessage = UIMessage> {
|
|
|
63
55
|
/** Set while the app is creating the conversation, so the composer reads busy. */
|
|
64
56
|
status?: AgentChatProps<MessageT>["status"];
|
|
65
57
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/** Disable the composer (e.g. while the agent is unreachable). */
|
|
74
|
-
disabled?: boolean;
|
|
75
|
-
/** Hide the composer while retaining the normal Think transcript rendering. */
|
|
76
|
-
showComposer?: AgentChatProps<MessageT>["showComposer"];
|
|
77
|
-
/** Shown in place of the list while there are no messages. */
|
|
78
|
-
emptyState?: React.ReactNode;
|
|
79
|
-
/**
|
|
80
|
-
* Renders the transcript lane as loading, with neither a chat provider nor a
|
|
81
|
-
* `draft`. This is what a host's Suspense fallback renders while an existing
|
|
82
|
-
* conversation hydrates: the surrounding shell stays mounted and interactive,
|
|
83
|
-
* so a transcript read that never resolves still leaves every exit reachable
|
|
84
|
-
* instead of replacing the whole app with a spinner.
|
|
85
|
-
*
|
|
86
|
-
* The composer stays visible but inert. This lane is a conversation that
|
|
87
|
-
* exists and has not arrived, so it keeps its shape, offers no start screen,
|
|
88
|
-
* and cannot begin a second conversation.
|
|
89
|
-
*/
|
|
90
|
-
loading?: boolean;
|
|
91
|
-
/** Welcoming first-turn layout with the live composer centered above starter actions. */
|
|
92
|
-
startScreen?: AgentChatProps<MessageT>["startScreen"];
|
|
93
|
-
/** Extra controls rendered inside the composer, next to the send button. */
|
|
94
|
-
composerTools?: React.ReactNode;
|
|
95
|
-
/** Host-owned slash-command catalog and selection policy. */
|
|
96
|
-
slashCommands?: AgentChatProps<MessageT>["slashCommands"];
|
|
97
|
-
/** App compaction callable behind the built-in `/compact` slash entry. */
|
|
98
|
-
onCompact?: AgentChatProps<MessageT>["onCompact"];
|
|
99
|
-
/** Controlled MCP catalog revealed by `@`; selections become composer references. */
|
|
100
|
-
mentionCommands?: AgentChatProps<MessageT>["mentionCommands"];
|
|
101
|
-
/** Controlled folder or working-context picker in the composer footer. */
|
|
102
|
-
contextSelector?: AgentChatProps<MessageT>["contextSelector"];
|
|
103
|
-
/** Extra controls rendered at the trailing edge, before dictation and submit. */
|
|
104
|
-
composerEndTools?: React.ReactNode;
|
|
105
|
-
/** Whole upstream `useVoiceInput` result for the built-in microphone recorder. */
|
|
106
|
-
voiceInput?: UseVoiceInputReturn;
|
|
107
|
-
/** Host prerequisite run before the built-in recorder calls `voiceInput.start()`. */
|
|
108
|
-
beforeVoiceStart?: AgentChatProps<MessageT>["beforeVoiceStart"];
|
|
109
|
-
/** Optional product state rendered in the PromptInput header, such as an Activity. */
|
|
110
|
-
composerHeader?: AgentChatProps<MessageT>["composerHeader"];
|
|
111
|
-
/** Persistent context (e.g. the Goal banner) in the tray above the composer. */
|
|
112
|
-
composerTray?: AgentChatProps<MessageT>["composerTray"];
|
|
113
|
-
/** Called when a submission is queued behind a busy turn; see AgentChat. */
|
|
114
|
-
onPromptQueued?: AgentChatProps<MessageT>["onPromptQueued"];
|
|
115
|
-
/** Extra rows rendered in the built-in plus menu after files. */
|
|
116
|
-
composerAddMenuItems?: AgentChatProps<MessageT>["composerAddMenuItems"];
|
|
117
|
-
/** Composer placeholder text. */
|
|
118
|
-
placeholder?: string;
|
|
119
|
-
/** Rendered after each message (e.g. per-message actions). */
|
|
120
|
-
renderMessageAfter?: AgentChatProps<MessageT>["renderMessageAfter"];
|
|
121
|
-
/** Per-message policy for AgentChat's built-in assistant copy/retry toolbar. */
|
|
122
|
-
showAssistantActions?: AgentChatProps<MessageT>["showAssistantActions"];
|
|
123
|
-
/**
|
|
124
|
-
* Durable backend edit/resend operation. Think does not synchronize
|
|
125
|
-
* `setMessages`, so wire this to an agent callable that creates the branch.
|
|
126
|
-
*/
|
|
127
|
-
onEditAndResend?: AgentChatProps<MessageT>["onEditAndResend"];
|
|
58
|
+
type ThinkChatManagedAgentChatProp = "messages" | "onApprovalResponse" | "onRegenerate" | "onStop" | "onSubmit" | "status";
|
|
59
|
+
/**
|
|
60
|
+
* The AgentChat composition surface, minus the live values ThinkChat supplies
|
|
61
|
+
* from `useAgentChat`. Think-specific activity and draft/session inputs extend
|
|
62
|
+
* that owner instead of mirroring every AgentChat prop here.
|
|
63
|
+
*/
|
|
64
|
+
type ThinkChatMessagesProps<MessageT extends UIMessage = UIMessage> = Omit<AgentChatProps<MessageT>, ThinkChatManagedAgentChatProp> & ThinkChatActivityRendererOptions<MessageT> & {
|
|
128
65
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
66
|
+
* Renders without a chat provider, for the first turn of a conversation
|
|
67
|
+
* that does not exist yet.
|
|
131
68
|
*/
|
|
132
|
-
|
|
133
|
-
/** Whole `useSessionCompaction` result for built-in progress and error notices. */
|
|
69
|
+
draft?: ThinkChatDraft<MessageT>; /** Whole `useSessionCompaction` result for built-in progress and error notices. */
|
|
134
70
|
sessionCompaction?: UseSessionCompactionResult;
|
|
135
|
-
|
|
136
|
-
* Extends the built-in Think activity renderer. Returning `undefined` keeps
|
|
137
|
-
* the built-in result; `defaultRender()` renders that same result on demand.
|
|
138
|
-
* Return `null` only when the part should be intentionally hidden.
|
|
139
|
-
*/
|
|
140
|
-
renderPart?: AgentChatProps<MessageT>["renderPart"];
|
|
141
|
-
/** Whole upstream Think stub. `ThinkChat.Root` wires `agent.stub` automatically. */
|
|
142
|
-
thinkStub?: AgentStub<Think>;
|
|
143
|
-
/**
|
|
144
|
-
* Disable transcript approval scanning, automatic responses, cards, and
|
|
145
|
-
* composer controls. Set the matching prop on `ThinkChat.Root` to also skip
|
|
146
|
-
* durable pending-approval discovery; `ThinkFullApp` wires both from here.
|
|
147
|
-
*/
|
|
148
|
-
approvalsEnabled?: AgentChatProps<MessageT>["approvalsEnabled"];
|
|
149
|
-
/** Parent-owned Ask/Bypass policy; omit to keep AgentChat's session-local mode. */
|
|
150
|
-
permissionModeControl?: AgentChatProps<MessageT>["permissionModeControl"];
|
|
151
|
-
/** Called after a Think approve/reject RPC settles. Root uses this to refresh approvals. */
|
|
152
|
-
onExecutionSettled?: AgentChatProps<MessageT>["onExecutionSettled"];
|
|
153
|
-
/** Think durable-pause approvals from `pendingApprovals()`. */
|
|
154
|
-
pendingApprovals?: AgentChatProps<MessageT>["pendingApprovals"];
|
|
155
|
-
/**
|
|
156
|
-
* Shows a Context ring in the composer footer — how much of the model's
|
|
157
|
-
* window the conversation occupies, from `metadata.usage` on the newest
|
|
158
|
-
* message that reports it.
|
|
159
|
-
*/
|
|
160
|
-
contextWindow?: AgentChatProps<MessageT>["contextWindow"];
|
|
161
|
-
}
|
|
71
|
+
};
|
|
162
72
|
/** Shared pending-approval options for components and TanStack Router loaders. */
|
|
163
73
|
declare function thinkPendingExecutionApprovalsQueryOptions(stub: AgentStub<Think>, sourceKey: string): ThinkPendingExecutionApprovalsQueryOptions;
|
|
164
74
|
declare function useThinkPendingExecutionApprovals(stub: AgentStub<Think>, sourceKey: string, refreshSignal?: unknown, enabled?: boolean): {
|
|
@@ -266,4 +176,4 @@ declare const ThinkChat: {
|
|
|
266
176
|
createActivityRenderer: typeof createThinkChatActivityRenderer;
|
|
267
177
|
};
|
|
268
178
|
//#endregion
|
|
269
|
-
export {
|
|
179
|
+
export { ThinkChat, ThinkChatDraft, ThinkChatMessages, ThinkChatMessagesProps, ThinkChatProvider, ThinkChatProviderProps, ThinkChatRoot, ThinkChatRootProps, ThinkPendingExecutionApprovalsQueryKey, ThinkPendingExecutionApprovalsQueryOptions, thinkPendingExecutionApprovalsQueryOptions, useThinkChat, useThinkPendingExecutionApprovals };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { BrowserReplay } from "./BrowserReplay.js";
|
|
4
|
-
import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
|
|
5
|
-
import { isThinkChatActivityPart } from "./ThinkChatToolParts.js";
|
|
6
|
-
import { describeThinkChatActivityPart } from "./ThinkChatActivitySummary.js";
|
|
7
|
-
import { ThinkChatActivity, createThinkChatActivityRenderer, renderThinkChatActivityPart } from "./ThinkChatActivity.js";
|
|
8
|
-
import { ThinkRecoveryNotice } from "./ThinkRecoveryNotice.js";
|
|
9
|
-
import { a as thinkPendingExecutionApprovalsQueryOptions, i as ThinkChatRoot, n as ThinkChatMessages, o as useThinkChat, r as ThinkChatProvider, s as useThinkPendingExecutionApprovals, t as ThinkChat } from "../../ThinkChat-DbzqSTBt.js";
|
|
10
|
-
import { useWorkspace, workspaceBinaryFileQueryOptions, workspaceDirectoryQueryKey, workspaceDirectoryQueryOptions, workspaceDirectoryQueryPrefix, workspaceFileAssetQueryOptions, workspaceFileStatQueryOptions, workspaceInfoQueryOptions, workspaceQueryKey, workspaceTextFileQueryOptions } from "./Workspace.js";
|
|
11
|
-
import { WorkspaceExplorer } from "./WorkspaceExplorer.js";
|
|
12
|
-
export { AgentToolRunsProvider, BrowserLiveView, BrowserReplay, ThinkChat, ThinkChatActivity, ThinkChatMessages, ThinkChatProvider, ThinkChatRoot, ThinkRecoveryNotice, WorkspaceExplorer, createThinkChatActivityRenderer, describeThinkChatActivityPart, inferWorkspaceLanguage, isThinkChatActivityPart, renderThinkChatActivityPart, thinkPendingExecutionApprovalsQueryOptions, useOptionalAgentToolRuns, useSourceScopedAgentToolEvents, useThinkChat, useThinkPendingExecutionApprovals, useWorkspace, workspaceBinaryFileQueryOptions, workspaceDirectoryQueryKey, workspaceDirectoryQueryOptions, workspaceDirectoryQueryPrefix, workspaceFileAssetQueryOptions, workspaceFileStatQueryOptions, workspaceInfoQueryOptions, workspaceQueryKey, workspaceTextFileQueryOptions };
|
|
1
|
+
import { a as thinkPendingExecutionApprovalsQueryOptions, i as ThinkChatRoot, n as ThinkChatMessages, o as useThinkChat, r as ThinkChatProvider, s as useThinkPendingExecutionApprovals, t as ThinkChat } from "../../ThinkChat-DQh59CeC.js";
|
|
2
|
+
export { ThinkChat, ThinkChatMessages, ThinkChatProvider, ThinkChatRoot, thinkPendingExecutionApprovalsQueryOptions, useThinkChat, useThinkPendingExecutionApprovals };
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { a as ThinkChatToolRenderers, i as ThinkChatToolRenderer, n as ThinkChatActivityProps, o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, s as renderThinkChatActivityPart, t as ThinkChatActivity } from "../../ThinkChatActivity-BZyN5MBg.js";
|
|
4
|
-
export { ThinkChatActivity, ThinkChatActivityProps, ThinkChatActivityRendererOptions, ThinkChatToolRenderer, ThinkChatToolRenderers, createThinkChatActivityRenderer, describeThinkChatActivityPart, isThinkChatActivityPart, renderThinkChatActivityPart };
|
|
1
|
+
import { a as ThinkChatToolRenderers, i as ThinkChatToolRenderer, n as ThinkChatActivityProps, o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, s as renderThinkChatActivityPart, t as ThinkChatActivity } from "../../ThinkChatActivity-Dkmm2pIj.js";
|
|
2
|
+
export { ThinkChatActivity, ThinkChatActivityProps, ThinkChatActivityRendererOptions, ThinkChatToolRenderer, ThinkChatToolRenderers, createThinkChatActivityRenderer, renderThinkChatActivityPart };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
|
|
2
1
|
import { useExpansionState } from "../ai-sdk/ExpansionState.js";
|
|
3
2
|
import { Activity, ActivityContent, ActivityItem, ActivityItemGroup, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
4
3
|
import { Button } from "../foundations/Button.js";
|
|
5
4
|
import { MessageResponse } from "../ai-sdk/Message.js";
|
|
6
5
|
import { useOptionalAgentToolRuns } from "./AgentToolRunsContext.js";
|
|
7
6
|
import { SubagentRunList } from "./SubagentRunList.js";
|
|
7
|
+
import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
|
|
8
8
|
import { useOptionalThinkChatLive } from "./ThinkChatContext.js";
|
|
9
9
|
import { isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartWorking, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart } from "./ThinkChatToolParts.js";
|
|
10
10
|
import { ThinkChatBrowserPanel, ThinkChatExecutePanel, ThinkChatFetchPanel, ThinkChatSessionContextPanel, ThinkChatSkillPanel, ThinkChatWorkspacePanel } from "./ThinkChatToolPanels.js";
|
|
@@ -225,4 +225,4 @@ function createThinkChatActivityRenderer({ excludeTools, renderAgentToolRunLink,
|
|
|
225
225
|
/** Default activity renderer — `createThinkChatActivityRenderer()` with no overrides. */
|
|
226
226
|
const renderThinkChatActivityPart = createThinkChatActivityRenderer();
|
|
227
227
|
//#endregion
|
|
228
|
-
export { ThinkChatActivity, createThinkChatActivityRenderer,
|
|
228
|
+
export { ThinkChatActivity, createThinkChatActivityRenderer, renderThinkChatActivityPart };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
|
|
2
|
-
import { a as formatUnknownValue } from "../../format-DB2mX9DA.js";
|
|
3
2
|
import { Tabs } from "../foundations/Tabs.js";
|
|
3
|
+
import { a as formatUnknownValue } from "../../format-DB2mX9DA.js";
|
|
4
|
+
import { t as CodeBlock } from "../../CodeBlock-DO4Hdu1R.js";
|
|
4
5
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
5
|
-
import { t as CodeBlock } from "../../CodeBlock-CM5gfmdq.js";
|
|
6
6
|
import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
|
|
7
7
|
import { displayUrl, isSessionContextToolFailure } from "./ThinkChatToolParts.js";
|
|
8
8
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { $ as TerminalIcon, C as FileIcon, O as InfoIcon, W as RefreshIcon, d as CheckIcon, n as ArrowDownIcon, rt as XIcon } from "../../icons-
|
|
2
|
+
import { $ as TerminalIcon, C as FileIcon, O as InfoIcon, W as RefreshIcon, d as CheckIcon, n as ArrowDownIcon, rt as XIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Activity, ActivityContent, ActivityItem, ActivityItemGroup, ActivityOutput, ActivityPanel, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
4
4
|
import { a as formatUnknownValue } 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 { J as SpinnerIcon, O as InfoIcon, d as CheckIcon, rt as XIcon, z as PauseIcon } from "../../icons-
|
|
2
|
+
import { J as SpinnerIcon, O as InfoIcon, d as CheckIcon, rt as XIcon, z as PauseIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
4
4
|
import { formatThinkExecutionRunProgress, formatThinkExecutionStatus, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, getThinkExecutionRunSubtitle, getThinkExecutionRunTitle } from "./ThinkExecutionRun.js";
|
|
5
5
|
import "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { W as RefreshIcon, b as EllipsisIcon } from "../../icons-
|
|
3
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
2
|
+
import { W as RefreshIcon, b as EllipsisIcon } from "../../icons-B4mGvCvc.js";
|
|
4
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
5
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
|
+
import { Menu } from "../foundations/Menu.js";
|
|
6
6
|
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
7
7
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
|
-
import { Menu } from "../foundations/Menu.js";
|
|
9
8
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
9
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
10
10
|
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, isSameThinkExecutionRun, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
11
11
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
12
12
|
import { ThinkExecutionDetail } from "./ThinkExecutionDetail.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { l as WorkspaceNavigationAdapter } from "../../WorkspaceLink-DQogVe8E.js";
|
|
2
2
|
import { n as AgentToolEventsValue } from "../../AgentToolRunsContext-BCVqCtJ1.js";
|
|
3
3
|
import { McpPluginCatalogProps } from "./McpPluginCatalog.js";
|
|
4
|
-
import { r as WorkspaceFileAssetResolver } from "../../WorkspaceFile-CVAzjTt6.js";
|
|
5
|
-
import { a as WorkspaceSource } from "../../Workspace-GTlqvcIn.js";
|
|
6
4
|
import { ThinkChatMessagesProps } from "./ThinkChat.js";
|
|
7
5
|
import { t as ThinkExecutionRun } from "../../ThinkExecutionRun-lYYgyeE1.js";
|
|
8
6
|
import { ThinkExecutionWorkbenchProps } from "./ThinkExecutionWorkbench.js";
|
|
9
|
-
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
10
7
|
import { ThinkFullAppView } from "./ThinkFullAppViewSwitch.js";
|
|
11
8
|
import { ThinkThreadStatusSummary } from "./ThinkThreadPicker.js";
|
|
9
|
+
import { ThinkThreadShell } from "./ThinkThreadShell.js";
|
|
10
|
+
import { r as WorkspaceFileAssetResolver } from "../../WorkspaceFile-BLaFmMrt.js";
|
|
11
|
+
import { WorkspaceSource } from "./Workspace.js";
|
|
12
12
|
import { t as ThinkAgent } from "../../think-agent-Cip5KAPj.js";
|
|
13
13
|
import * as React from "react";
|
|
14
14
|
import { UIMessage } from "ai";
|
|
@@ -100,7 +100,7 @@ interface ThinkFullAppProps<AgentT extends ThinkFullAppAgent<State>, State = unk
|
|
|
100
100
|
* Optional parent-owned thread picker/sidebar rendered beside the selected child app.
|
|
101
101
|
* Use the render form to close the compact drawer after selecting a thread.
|
|
102
102
|
*/
|
|
103
|
-
threadSidebar?: React.ComponentProps<typeof
|
|
103
|
+
threadSidebar?: React.ComponentProps<typeof ThinkThreadShell>["sidebar"];
|
|
104
104
|
/** Whether the thread sidebar is open. Omit for internal state. */
|
|
105
105
|
threadSidebarOpen?: boolean;
|
|
106
106
|
/** Initial thread sidebar state when `threadSidebarOpen` is uncontrolled. */
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { $ as TerminalIcon, C as FileIcon, J as SpinnerIcon, c as BoxIcon, f as ChevronDownIcon } from "../../icons-
|
|
2
|
+
import { $ as TerminalIcon, C as FileIcon, J as SpinnerIcon, c as BoxIcon, f as ChevronDownIcon } from "../../icons-B4mGvCvc.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
5
5
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
6
|
-
import { McpPluginCatalog } from "./McpPluginCatalog.js";
|
|
7
|
-
import { a as WorkspaceNavigationRestorationBoundary, i as WorkspaceNavigationFocusRestorer, n as WorkspaceNavigationProvider } from "../../WorkspaceLink-DZeLe_jN.js";
|
|
8
|
-
import { c as resolveThinkApprovalProps, s as useThinkPendingExecutionApprovals, t as ThinkChat } from "../../ThinkChat-DbzqSTBt.js";
|
|
9
6
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
10
|
-
import { useWorkspace } from "./Workspace.js";
|
|
11
|
-
import { WorkspaceExplorer } from "./WorkspaceExplorer.js";
|
|
12
|
-
import { ThinkExecutionWorkbench } from "./ThinkExecutionWorkbench.js";
|
|
13
7
|
import { ResizableSidePanel } from "../general-purpose/ResizableSidePanel.js";
|
|
14
|
-
import {
|
|
8
|
+
import { a as WorkspaceNavigationRestorationBoundary, i as WorkspaceNavigationFocusRestorer, n as WorkspaceNavigationProvider } from "../../WorkspaceLink-DZeLe_jN.js";
|
|
9
|
+
import { c as resolveThinkApprovalProps, s as useThinkPendingExecutionApprovals, t as ThinkChat } from "../../ThinkChat-DQh59CeC.js";
|
|
10
|
+
import { McpPluginCatalog } from "./McpPluginCatalog.js";
|
|
11
|
+
import { ThinkExecutionWorkbench } from "./ThinkExecutionWorkbench.js";
|
|
15
12
|
import { ThinkFullAppViewSwitch } from "./ThinkFullAppViewSwitch.js";
|
|
16
13
|
import { ThinkThreadStatusIndicators } from "./ThinkThreadPicker.js";
|
|
14
|
+
import { ThinkThreadShell } from "./ThinkThreadShell.js";
|
|
15
|
+
import { useWorkspace } from "./Workspace.js";
|
|
16
|
+
import { WorkspaceExplorer } from "./WorkspaceExplorer.js";
|
|
17
17
|
import * as React from "react";
|
|
18
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
//#region src/components/agents-sdk/ThinkFullApp.tsx
|
|
@@ -42,7 +42,7 @@ function WorkspacePanel({ config }) {
|
|
|
42
42
|
function PluginsPanel({ config }) {
|
|
43
43
|
return /* @__PURE__ */ jsxs(ScrollArea.Root, {
|
|
44
44
|
className: "think-full-app__workbench",
|
|
45
|
-
children: [/* @__PURE__ */ jsx(ScrollArea.Viewport, { children: /* @__PURE__ */ jsx(McpPluginCatalog, { ...config }) }), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, { children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {}) })]
|
|
45
|
+
children: [/* @__PURE__ */ jsx(ScrollArea.Viewport, { children: /* @__PURE__ */ jsx(ScrollArea.Content, { children: /* @__PURE__ */ jsx(McpPluginCatalog, { ...config }) }) }), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, { children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {}) })]
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
@@ -313,17 +313,13 @@ function ThinkFullApp({ appBarActions, appBarLeading, appBarTitle, className, co
|
|
|
313
313
|
}), appContent] })
|
|
314
314
|
}) : appContent;
|
|
315
315
|
if (!threadSidebar) return app;
|
|
316
|
-
return /* @__PURE__ */ jsx(
|
|
317
|
-
className: "think-thread-shell",
|
|
316
|
+
return /* @__PURE__ */ jsx(ThinkThreadShell, {
|
|
318
317
|
sidebar: threadSidebar,
|
|
319
|
-
sidebarLabel: "threads",
|
|
320
318
|
sidebarOpen: threadSidebarOpen,
|
|
321
319
|
defaultSidebarOpen: defaultThreadSidebarOpen,
|
|
322
320
|
onSidebarOpenChange: onThreadSidebarOpenChange,
|
|
323
321
|
"data-hide-app-bar-in-workbench": hideAppBarInWorkbench ? "" : void 0,
|
|
324
322
|
topBar: (controls) => renderAppTopBar(controls),
|
|
325
|
-
toolbarLabel: "Thread controls",
|
|
326
|
-
showMainLabel: "Show selected thread",
|
|
327
323
|
children: app
|
|
328
324
|
});
|
|
329
325
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
3
2
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
3
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/agents-sdk/ThinkFullAppViewSwitch.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
2
1
|
import { AgentChatTurnError } from "../ai-sdk/AgentChatTurnError.js";
|
|
2
|
+
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/agents-sdk/ThinkRecoveryNotice.tsx
|
|
5
5
|
function connectionReason(error) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { H as PlusIcon } from "../../icons-
|
|
3
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
2
|
+
import { H as PlusIcon } from "../../icons-B4mGvCvc.js";
|
|
4
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
5
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
6
5
|
import { t as capitalize } from "../../format-DB2mX9DA.js";
|
|
7
6
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
7
|
import { SearchField } from "../foundations/SearchField.js";
|
|
9
8
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
9
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
10
10
|
import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Badge } from "../foundations/Badge.js";
|
|
3
|
-
import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
|
|
4
3
|
import { Switch } from "../foundations/Switch.js";
|
|
4
|
+
import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
|
|
5
5
|
import { ThinkRoutineRuns } from "./ThinkRoutineRuns.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { J as SpinnerIcon } from "../../icons-
|
|
3
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
2
|
+
import { J as SpinnerIcon } from "../../icons-B4mGvCvc.js";
|
|
4
3
|
import { Button, buttonVariants } from "../foundations/Button.js";
|
|
5
|
-
import { Select } from "../foundations/Select.js";
|
|
6
4
|
import { Field } from "../foundations/Field.js";
|
|
7
5
|
import { Form } from "../foundations/Form.js";
|
|
8
6
|
import { Textarea } from "../foundations/Textarea.js";
|
|
7
|
+
import { Select } from "../foundations/Select.js";
|
|
8
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/agents-sdk/ThinkRoutineForm.tsx
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ThinkRoutine, ThinkRoutineCreateRequest, ThinkRoutineOwner, ThinkRoutineRunOf } from "./ThinkRoutine.js";
|
|
1
|
+
import { ThinkRoutine, ThinkRoutineRunOf } from "./ThinkRoutine.js";
|
|
3
2
|
import * as React from "react";
|
|
4
3
|
|
|
5
4
|
//#region src/components/agents-sdk/ThinkRoutineLibrary.d.ts
|
|
@@ -76,4 +75,4 @@ declare function ThinkRoutineLibrary<TRoutine extends ThinkRoutine = ThinkRoutin
|
|
|
76
75
|
ref?: React.Ref<HTMLDivElement>;
|
|
77
76
|
}): React.JSX.Element;
|
|
78
77
|
//#endregion
|
|
79
|
-
export {
|
|
78
|
+
export { ThinkRoutineLibrary, ThinkRoutineLibraryDetailRenderProps, ThinkRoutineLibraryProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { J as SpinnerIcon, V as PlayIcon, b as EllipsisIcon, f as ChevronDownIcon, tt as WarningIcon } from "../../icons-
|
|
3
|
-
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
2
|
+
import { J as SpinnerIcon, V as PlayIcon, b as EllipsisIcon, f as ChevronDownIcon, tt as WarningIcon } from "../../icons-B4mGvCvc.js";
|
|
4
3
|
import { Button, buttonVariants } from "../foundations/Button.js";
|
|
4
|
+
import { Menu } from "../foundations/Menu.js";
|
|
5
5
|
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
6
|
+
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
6
7
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
|
-
import { Menu } from "../foundations/Menu.js";
|
|
8
8
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
9
|
+
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
9
10
|
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
10
|
-
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
11
11
|
import { ThinkRoutineBrowser } from "./ThinkRoutineBrowser.js";
|
|
12
12
|
import { ThinkRoutineDetail } from "./ThinkRoutineDetail.js";
|
|
13
13
|
import * as React from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
3
2
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
5
3
|
import { Badge } from "../foundations/Badge.js";
|
|
4
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
5
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
6
6
|
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
7
7
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
8
8
|
import * as React from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { H as PlusIcon, J as SpinnerIcon, t as ArchiveIcon, tt as WarningIcon, v as DotIcon } from "../../icons-
|
|
3
|
-
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
2
|
+
import { H as PlusIcon, J as SpinnerIcon, t as ArchiveIcon, tt as WarningIcon, v as DotIcon } from "../../icons-B4mGvCvc.js";
|
|
4
3
|
import { Button, buttonVariants } from "../foundations/Button.js";
|
|
5
4
|
import { i as formatErrorMessage } from "../../format-DB2mX9DA.js";
|
|
6
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
5
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
8
|
-
import { SearchField } from "../foundations/SearchField.js";
|
|
9
6
|
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
7
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
|
+
import { SearchField } from "../foundations/SearchField.js";
|
|
9
|
+
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/agents-sdk/ThinkThreadPicker.tsx
|
|
@@ -186,8 +186,7 @@ function ThinkThreadPicker({ threads, renderThreadLink, onCreate, onSelect, onDe
|
|
|
186
186
|
className: "think-thread-picker__scroll",
|
|
187
187
|
children: [/* @__PURE__ */ jsx(ScrollArea.Viewport, {
|
|
188
188
|
className: "think-thread-picker__viewport",
|
|
189
|
-
|
|
190
|
-
children: visibleThreads.length ? /* @__PURE__ */ jsx("ul", {
|
|
189
|
+
children: /* @__PURE__ */ jsx(ScrollArea.Content, { children: visibleThreads.length ? /* @__PURE__ */ jsx("ul", {
|
|
191
190
|
className: "think-thread-picker__list",
|
|
192
191
|
children: visibleThreads.map((thread) => {
|
|
193
192
|
const timestamp = formatThreadTimestamp(thread);
|
|
@@ -251,7 +250,7 @@ function ThinkThreadPicker({ threads, renderThreadLink, onCreate, onSelect, onDe
|
|
|
251
250
|
}) : /* @__PURE__ */ jsx(EmptyState, {
|
|
252
251
|
className: "think-thread-picker__empty",
|
|
253
252
|
description: threads.length ? "No matching threads." : "No threads yet."
|
|
254
|
-
})
|
|
253
|
+
}) })
|
|
255
254
|
}), /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
|
|
256
255
|
orientation: "vertical",
|
|
257
256
|
children: /* @__PURE__ */ jsx(ScrollArea.Thumb, {})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResponsiveSidebarShell } from "
|
|
1
|
+
import { t as ResponsiveSidebarShell } from "../../ResponsiveSidebarShell-DWjULskY.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/agents-sdk/ThinkThreadShell.d.ts
|