@mcp-b/react-components 0.44.0 → 0.45.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/{AgentToolRunsContext-daY67hFM.d.ts → AgentToolRunsContext-jtmveaRE.d.ts} +8 -7
- package/dist/{CodeBlock-Dl7a3Wqo.js → CodeBlock-8K1p1BDU.js} +1 -1
- package/dist/{FileTree-Uu3ZnW1u.js → FileTree-QTP57Qz4.js} +1 -1
- package/dist/{ResponsiveSidebarShell-DOXd5T-d.d.ts → ResponsiveSidebarShell-BTVPxLJK.d.ts} +12 -0
- package/dist/{SetupChecklist-DOp-zqjh.js → SetupChecklist-CZeToAbu.js} +1 -1
- package/dist/{ThinkChat-BES_3Mb-.js → ThinkChat-CWMcl79Q.js} +3 -21
- 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-BublZXky.js → WorkspaceFileView-DJ8Oxz57.js} +3 -3
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.js +18 -13
- package/dist/components/agents-sdk/AgentEvent.d.ts +42 -0
- package/dist/components/agents-sdk/AgentEvent.js +96 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.d.ts +1 -1
- package/dist/components/agents-sdk/AgentToolRunsContext.js +11 -7
- package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +2 -2
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.d.ts +104 -10
- package/dist/components/agents-sdk/ManagerOffice.js +1171 -147
- package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +4 -4
- package/dist/components/agents-sdk/McpServerPicker.js +3 -3
- package/dist/components/agents-sdk/ModelSelector.js +4 -4
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunDetails.js +1 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.d.ts +21 -3
- package/dist/components/agents-sdk/SubagentRunIndicator.js +56 -6
- package/dist/components/agents-sdk/SubagentRunSelector.js +5 -12
- package/dist/components/agents-sdk/ThinkChat.d.ts +1 -2
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +3 -3
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +3 -3
- package/dist/components/agents-sdk/ThinkExecutionRun.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 +15 -5
- package/dist/components/agents-sdk/ThinkFullApp.js +51 -5
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +1 -1
- package/dist/components/agents-sdk/ThinkPendingApproval.js +1 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +4 -4
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +4 -4
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
- package/dist/components/agents-sdk/ThinkSidepanel.d.ts +22 -4
- package/dist/components/agents-sdk/ThinkSidepanel.js +69 -30
- package/dist/components/agents-sdk/ThinkThreadPicker.js +5 -5
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +14 -4
- 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 +4 -21
- 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.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.js +3 -3
- package/dist/components/ai-sdk/Context.js +1 -1
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +2 -2
- 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 -2
- 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 +2 -2
- 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.js +1 -1
- 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/Menubar.js +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/Commit.js +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/PricingBillingToggle.js +1 -1
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResizableSidePanel.js +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +72 -22
- 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 +2 -2
- package/dist/components/general-purpose/WebPreview.js +3 -3
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.js +4 -4
- package/dist/{copy-button-DHhf-J1d.js → copy-button-BpA7wQva.js} +1 -1
- package/dist/{format-DB2mX9DA.js → format-COCyV98Z.js} +23 -1
- package/dist/{progress-ring-BEocM1e3.js → progress-ring-Cgii90dC.js} +1 -1
- package/dist/styles/agent-event.css +14 -0
- package/dist/styles/avatar.css +2 -1
- package/dist/styles/base.css +4 -0
- package/dist/styles/button.css +10 -0
- package/dist/styles/index.css +1 -0
- package/dist/styles/manager-office.css +1303 -70
- package/dist/styles/message-scroller.css +5 -0
- package/dist/styles/responsive-sidebar-shell.css +47 -0
- package/dist/styles/subagent-run.css +29 -19
- package/dist/styles/think-full-app.css +139 -4
- package/dist/styles/think-sidepanel.css +0 -5
- package/dist/styles/think-thread-picker.css +13 -12
- package/dist/styles/workspace-mount-manager.css +0 -22
- package/package.json +8 -8
- package/dist/{icons-Dw-im7lg.js → icons-DbrksZyY.js} +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { buttonVariants } from "../foundations/Button.js";
|
|
3
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
4
3
|
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
4
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
5
5
|
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
6
6
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
7
7
|
import * as React from "react";
|
|
@@ -5,6 +5,7 @@ import { ThinkRoutine } from "./ThinkRoutine.js";
|
|
|
5
5
|
import { SetupChecklistEntry } from "../general-purpose/SetupChecklist.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { UIMessage } from "ai";
|
|
8
|
+
import { AgentToolRunState } from "agents/agent-tools";
|
|
8
9
|
|
|
9
10
|
//#region src/components/agents-sdk/ThinkSidepanel.d.ts
|
|
10
11
|
type ThinkSidepanelView = "chat" | "files" | "plugins" | "schedules" | "live";
|
|
@@ -86,11 +87,28 @@ interface ThinkSidepanelSchedules<TRoutine extends ThinkRoutine = ThinkRoutine>
|
|
|
86
87
|
/** Host-owned create/edit form. The side panel only frames it. */
|
|
87
88
|
editor?: React.ReactNode;
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
/**
|
|
91
|
+
* The delegated run the panel is drilled into, in one of the three states a
|
|
92
|
+
* drill-in can be in. A `ready` run carries the whole retained record out of
|
|
93
|
+
* the dispatching thread's `useAgentToolEvents` projection
|
|
94
|
+
* (`runsById[runId]`), which the host keeps mounted beside the run's own
|
|
95
|
+
* socket: status, progress, and report are the dispatching thread's facts,
|
|
96
|
+
* never the child's own state.
|
|
97
|
+
*
|
|
98
|
+
* The host decides which state applies. Detecting an `unavailable` run is the
|
|
99
|
+
* host's concern — the run's transcript load throws above this panel, in
|
|
100
|
+
* whatever boundary the host mounts around it — so the host maps that failure
|
|
101
|
+
* onto this state, and the panel owns only what it looks like.
|
|
102
|
+
*/
|
|
103
|
+
type ThinkSidepanelAgentRun = {
|
|
104
|
+
state: "ready";
|
|
105
|
+
run: AgentToolRunState; /** Cancels the run. The bar shows it only while `run.status` is `running`. */
|
|
92
106
|
onCancel?: () => void;
|
|
93
|
-
}
|
|
107
|
+
} /** The dispatching thread's replay has not seeded this run yet. */ | {
|
|
108
|
+
state: "loading";
|
|
109
|
+
} /** The run's transcript could not be loaded: it was retired or never existed. */ | {
|
|
110
|
+
state: "unavailable";
|
|
111
|
+
};
|
|
94
112
|
interface ThinkSidepanelIdentity {
|
|
95
113
|
email?: string;
|
|
96
114
|
liveProfile: string;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { A as McpIcon, C as FolderIcon, H as QueueIcon, J as SquareIcon, K as SlackIcon, L as PaperclipIcon, Q as TerminalIcon, S as FileIcon, T as InfoIcon, b as EyeIcon, c as BoxIcon, et as WarningIcon, g as DiscordIcon, o as ArrowUpRightIcon, q as SpinnerIcon, r as ArrowLeftIcon, y as EllipsisIcon, z as PencilIcon } from "../../icons-
|
|
2
|
+
import { A as McpIcon, C as FolderIcon, H as QueueIcon, J as SquareIcon, K as SlackIcon, L as PaperclipIcon, Q as TerminalIcon, S as FileIcon, T as InfoIcon, b as EyeIcon, c as BoxIcon, et as WarningIcon, g as DiscordIcon, o as ArrowUpRightIcon, q as SpinnerIcon, r as ArrowLeftIcon, y as EllipsisIcon, z as PencilIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
|
-
import { Dialog } from "../foundations/Dialog.js";
|
|
6
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
5
|
import { Menu } from "../foundations/Menu.js";
|
|
6
|
+
import { Dialog } from "../foundations/Dialog.js";
|
|
7
|
+
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
8
|
+
import { ChatGptSignInScreen } from "../extension/ChatGptSignInScreen.js";
|
|
8
9
|
import { Avatar } from "../foundations/Avatar.js";
|
|
9
10
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
11
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
12
|
+
import { Switch } from "../foundations/Switch.js";
|
|
13
|
+
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
10
14
|
import "../foundations/icons.js";
|
|
15
|
+
import { ActionGuide } from "../general-purpose/ActionGuide.js";
|
|
11
16
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
12
|
-
import {
|
|
13
|
-
import { McpServerPickerAction, McpServerPickerItems } from "./McpServerPicker.js";
|
|
17
|
+
import { t as SetupChecklistAction } from "../../SetupChecklist-CZeToAbu.js";
|
|
14
18
|
import { NaniteMark } from "../nanites/NaniteScene.js";
|
|
19
|
+
import { SubagentRunLabel } from "./SubagentRunIndicator.js";
|
|
20
|
+
import { McpServerPickerAction, McpServerPickerItems } from "./McpServerPicker.js";
|
|
15
21
|
import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
|
|
16
22
|
import { ThinkThreadPicker, summarizeThinkThreads } from "./ThinkThreadPicker.js";
|
|
17
23
|
import { ThinkFullApp } from "./ThinkFullApp.js";
|
|
18
|
-
import { Switch } from "../foundations/Switch.js";
|
|
19
24
|
import { ThinkRoutineLibrary } from "./ThinkRoutineLibrary.js";
|
|
20
|
-
import { ActionGuide } from "../general-purpose/ActionGuide.js";
|
|
21
|
-
import { t as SetupChecklistAction } from "../../SetupChecklist-DOp-zqjh.js";
|
|
22
|
-
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
23
|
-
import { ChatGptSignInScreen } from "../extension/ChatGptSignInScreen.js";
|
|
24
25
|
import * as React from "react";
|
|
25
26
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
26
27
|
//#region src/components/agents-sdk/ThinkSidepanel.tsx
|
|
@@ -535,6 +536,22 @@ function employeeMessages({ agentRun, brandName, guideOpen, hasConversation, hos
|
|
|
535
536
|
};
|
|
536
537
|
}
|
|
537
538
|
/**
|
|
539
|
+
* The drilled-in run's name over its live status line — the same label its
|
|
540
|
+
* selector chip wears in the parent transcript, so what the person clicked
|
|
541
|
+
* and what they land on read the same. Before the replay seeds the run there
|
|
542
|
+
* is only the fact that it is a run.
|
|
543
|
+
*/
|
|
544
|
+
function ThinkSidepanelRunTitle({ agentRun }) {
|
|
545
|
+
return /* @__PURE__ */ jsx("span", {
|
|
546
|
+
"data-slot": "think-sidepanel-run-title",
|
|
547
|
+
className: "think-sidepanel__run-title",
|
|
548
|
+
children: agentRun.state === "ready" ? /* @__PURE__ */ jsx(SubagentRunLabel, { run: agentRun.run }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(NaniteMark, {}), /* @__PURE__ */ jsx("span", {
|
|
549
|
+
className: "sigvelo-truncate",
|
|
550
|
+
children: "Delegated run"
|
|
551
|
+
})] })
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
538
555
|
* The employee side panel: icon-and-tooltip chrome, start screen, schedules,
|
|
539
556
|
* conversation plus workbench. Hosts hydrate conversation, workspace,
|
|
540
557
|
* plugins, and callables. Storybook is the place to iterate the chrome.
|
|
@@ -650,6 +667,44 @@ function ThinkSidepanel({ agentRun, appBarLeading, brand, className, companion,
|
|
|
650
667
|
}), identityDialog]
|
|
651
668
|
});
|
|
652
669
|
const workbenchView = view === "plugins" ? "plugins" : view === "files" ? "files" : "chat";
|
|
670
|
+
const cancelRun = agentRun?.state === "ready" && agentRun.run.status === "running" ? agentRun.onCancel : void 0;
|
|
671
|
+
const backToThread = agentRun ? /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
672
|
+
label: "Back to parent conversation",
|
|
673
|
+
render: thread ? renderLink({
|
|
674
|
+
kind: "thread",
|
|
675
|
+
threadId: thread.id
|
|
676
|
+
}) : renderLink({
|
|
677
|
+
kind: "view",
|
|
678
|
+
view: "chat"
|
|
679
|
+
}),
|
|
680
|
+
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
681
|
+
}) : null;
|
|
682
|
+
if (agentRun?.state === "unavailable") return /* @__PURE__ */ jsxs("div", {
|
|
683
|
+
ref: rootRef,
|
|
684
|
+
className: cx("think-sidepanel", className),
|
|
685
|
+
"data-view": view,
|
|
686
|
+
...props,
|
|
687
|
+
children: [
|
|
688
|
+
/* @__PURE__ */ jsxs(AppTopBar.Root, {
|
|
689
|
+
"aria-label": "Delegated run controls",
|
|
690
|
+
children: [
|
|
691
|
+
/* @__PURE__ */ jsx(AppTopBar.Leading, { children: backToThread }),
|
|
692
|
+
/* @__PURE__ */ jsx(AppTopBar.Title, { children: "Delegated run" }),
|
|
693
|
+
/* @__PURE__ */ jsx(AppTopBar.Trailing, { children: overflow })
|
|
694
|
+
]
|
|
695
|
+
}),
|
|
696
|
+
/* @__PURE__ */ jsx("div", {
|
|
697
|
+
className: "think-sidepanel__gate",
|
|
698
|
+
role: "alert",
|
|
699
|
+
children: /* @__PURE__ */ jsx(EmptyState, {
|
|
700
|
+
icon: /* @__PURE__ */ jsx(WarningIcon, {}),
|
|
701
|
+
title: "Run unavailable",
|
|
702
|
+
description: "This delegated run is no longer available. Its report stays in the parent conversation."
|
|
703
|
+
})
|
|
704
|
+
}),
|
|
705
|
+
identityDialog
|
|
706
|
+
]
|
|
707
|
+
});
|
|
653
708
|
return /* @__PURE__ */ jsxs("div", {
|
|
654
709
|
ref: rootRef,
|
|
655
710
|
className: cx("think-sidepanel", className),
|
|
@@ -662,27 +717,11 @@ function ThinkSidepanel({ agentRun, appBarLeading, brand, className, companion,
|
|
|
662
717
|
runId: run.runId
|
|
663
718
|
}),
|
|
664
719
|
bar: {
|
|
665
|
-
title: agentRun ? /* @__PURE__ */
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
className: "sigvelo-truncate",
|
|
669
|
-
children: agentRun.title
|
|
670
|
-
})]
|
|
671
|
-
}) : thread?.title ?? "New chat",
|
|
672
|
-
leading: agentRun ? /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
673
|
-
label: "Back to parent conversation",
|
|
674
|
-
render: thread ? renderLink({
|
|
675
|
-
kind: "thread",
|
|
676
|
-
threadId: thread.id
|
|
677
|
-
}) : renderLink({
|
|
678
|
-
kind: "view",
|
|
679
|
-
view: "chat"
|
|
680
|
-
}),
|
|
681
|
-
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
682
|
-
}) : workbenchLeading,
|
|
683
|
-
actions: agentRun?.running && agentRun.onCancel ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
720
|
+
title: agentRun ? /* @__PURE__ */ jsx(ThinkSidepanelRunTitle, { agentRun }) : thread?.title ?? "New chat",
|
|
721
|
+
leading: agentRun ? backToThread : workbenchLeading,
|
|
722
|
+
actions: cancelRun ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
684
723
|
label: "Cancel run",
|
|
685
|
-
onClick:
|
|
724
|
+
onClick: cancelRun,
|
|
686
725
|
children: /* @__PURE__ */ jsx(SquareIcon, {})
|
|
687
726
|
}), workspaceLinks] }) : workspaceLinks,
|
|
688
727
|
primary: overflow,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { V as PlusIcon, _ as DotIcon, et as WarningIcon, q as SpinnerIcon, t as ArchiveIcon } from "../../icons-
|
|
2
|
+
import { V as PlusIcon, _ as DotIcon, et as WarningIcon, q as SpinnerIcon, t as ArchiveIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button, buttonVariants } from "../foundations/Button.js";
|
|
4
|
-
import {
|
|
5
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
6
|
-
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
4
|
+
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
7
5
|
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
6
|
+
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
7
|
+
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
8
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
9
|
import { LinkButton } from "../foundations/LinkButton.js";
|
|
9
10
|
import { SearchField } from "../foundations/SearchField.js";
|
|
10
|
-
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/agents-sdk/ThinkThreadPicker.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as workspaceQueryKey, C as workspaceBinaryFileQueryOptions, D as workspaceFileAssetQueryOptions, E as workspaceDirectoryQueryPrefix, O as workspaceFileStatQueryOptions, S as useWorkspace, T as workspaceDirectoryQueryOptions, _ as WorkspaceResolvedAsset, a as WorkspaceDirectoryQueryOptions, b as WorkspaceTextFileQueryKey, c as WorkspaceFileQueryKey, d as WorkspaceFileStatQueryOptions, f as WorkspaceFileVersion, g as WorkspaceQueryKey, h as WorkspaceInfoQueryOptions, i as WorkspaceDirectoryQueryKey, j as workspaceTextFileQueryOptions, k as workspaceInfoQueryOptions, l as WorkspaceFileReadTarget, m as WorkspaceInfoQueryKey, n as WorkspaceBinaryFileQueryKey, o as WorkspaceFileAssetQueryKey, p as WorkspaceInfo, r as WorkspaceBinaryFileQueryOptions, s as WorkspaceFileAssetQueryOptions, t as UseWorkspaceOptions, u as WorkspaceFileStatQueryKey, v as WorkspaceSource, w as workspaceDirectoryQueryKey, x as WorkspaceTextFileQueryOptions, y as WorkspaceState } from "../../Workspace-
|
|
1
|
+
import { A as workspaceQueryKey, C as workspaceBinaryFileQueryOptions, D as workspaceFileAssetQueryOptions, E as workspaceDirectoryQueryPrefix, O as workspaceFileStatQueryOptions, S as useWorkspace, T as workspaceDirectoryQueryOptions, _ as WorkspaceResolvedAsset, a as WorkspaceDirectoryQueryOptions, b as WorkspaceTextFileQueryKey, c as WorkspaceFileQueryKey, d as WorkspaceFileStatQueryOptions, f as WorkspaceFileVersion, g as WorkspaceQueryKey, h as WorkspaceInfoQueryOptions, i as WorkspaceDirectoryQueryKey, j as workspaceTextFileQueryOptions, k as workspaceInfoQueryOptions, l as WorkspaceFileReadTarget, m as WorkspaceInfoQueryKey, n as WorkspaceBinaryFileQueryKey, o as WorkspaceFileAssetQueryKey, p as WorkspaceInfo, r as WorkspaceBinaryFileQueryOptions, s as WorkspaceFileAssetQueryOptions, t as UseWorkspaceOptions, u as WorkspaceFileStatQueryKey, v as WorkspaceSource, w as workspaceDirectoryQueryKey, x as WorkspaceTextFileQueryOptions, y as WorkspaceState } from "../../Workspace-jdVZ9S0a.js";
|
|
2
2
|
export { UseWorkspaceOptions, WorkspaceBinaryFileQueryKey, WorkspaceBinaryFileQueryOptions, WorkspaceDirectoryQueryKey, WorkspaceDirectoryQueryOptions, WorkspaceFileAssetQueryKey, WorkspaceFileAssetQueryOptions, WorkspaceFileQueryKey, WorkspaceFileReadTarget, WorkspaceFileStatQueryKey, WorkspaceFileStatQueryOptions, WorkspaceFileVersion, WorkspaceInfo, WorkspaceInfoQueryKey, WorkspaceInfoQueryOptions, WorkspaceQueryKey, WorkspaceResolvedAsset, WorkspaceSource, WorkspaceState, WorkspaceTextFileQueryKey, WorkspaceTextFileQueryOptions, useWorkspace, workspaceBinaryFileQueryOptions, workspaceDirectoryQueryKey, workspaceDirectoryQueryOptions, workspaceDirectoryQueryPrefix, workspaceFileAssetQueryOptions, workspaceFileStatQueryOptions, workspaceInfoQueryOptions, workspaceQueryKey, workspaceTextFileQueryOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getWorkspaceBasename, inferWorkspaceMedia } from "./WorkspaceFile.js";
|
|
1
|
+
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
2
|
+
import { getWorkspaceBasename, inferWorkspaceMedia, isWorkspaceTextPath } from "./WorkspaceFile.js";
|
|
3
3
|
import { n as isWorkspacePathWithinRoot, t as canonicalizeAbsoluteWorkspacePath } from "../../workspace-path-L_KmjRjq.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { queryOptions, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
@@ -245,6 +245,7 @@ async function refreshWorkspaceFile(queryClient, { source, sourceKey, root, sele
|
|
|
245
245
|
});
|
|
246
246
|
return;
|
|
247
247
|
}
|
|
248
|
+
if (!isWorkspaceTextPath(target.readPath, target.info.mimeType)) return;
|
|
248
249
|
const options = workspaceTextFileQueryOptions(source, sourceKey, root, target);
|
|
249
250
|
if (queryClient.getQueryState(options.queryKey)) await queryClient.fetchQuery({
|
|
250
251
|
...options,
|
|
@@ -284,6 +285,7 @@ function useWorkspace({ source, sourceKey, root = "/", selectedPath, onSelectedP
|
|
|
284
285
|
info: INACTIVE_FILE_INFO,
|
|
285
286
|
media: null
|
|
286
287
|
};
|
|
288
|
+
const targetIsText = target ? isWorkspaceTextPath(target.readPath, target.info.mimeType) : false;
|
|
287
289
|
const assetQuery = useQuery({
|
|
288
290
|
...workspaceFileAssetQueryOptions(sourceKey, root, queryTarget, resolveFileAsset ?? INACTIVE_FILE_ASSET_RESOLVER),
|
|
289
291
|
enabled: statSettled && resolveFileAsset !== void 0
|
|
@@ -292,7 +294,7 @@ function useWorkspace({ source, sourceKey, root = "/", selectedPath, onSelectedP
|
|
|
292
294
|
const resolverSettled = !resolveFileAsset || assetQuery.isSuccess && !assetQuery.isFetching;
|
|
293
295
|
const textQuery = useQuery({
|
|
294
296
|
...workspaceTextFileQueryOptions(source, sourceKey, root, queryTarget),
|
|
295
|
-
enabled: statSettled && resolverSettled && !resolvedAsset && !target.media
|
|
297
|
+
enabled: statSettled && resolverSettled && !resolvedAsset && !target.media && targetIsText
|
|
296
298
|
});
|
|
297
299
|
const binaryQuery = useQuery({
|
|
298
300
|
...workspaceBinaryFileQueryOptions(source, sourceKey, root, queryTarget, normalizedMaxInlineAssetBytes),
|
|
@@ -349,7 +351,7 @@ function useWorkspace({ source, sourceKey, root = "/", selectedPath, onSelectedP
|
|
|
349
351
|
info: target.info,
|
|
350
352
|
error: null
|
|
351
353
|
};
|
|
352
|
-
else if (
|
|
354
|
+
else if (targetIsText && textQuery.isSuccess) selectedFile = {
|
|
353
355
|
path: selectedPath,
|
|
354
356
|
name: getWorkspaceBasename(selectedPath),
|
|
355
357
|
content: textQuery.data,
|
|
@@ -357,6 +359,14 @@ function useWorkspace({ source, sourceKey, root = "/", selectedPath, onSelectedP
|
|
|
357
359
|
info: target.info,
|
|
358
360
|
error: null
|
|
359
361
|
};
|
|
362
|
+
else if (!target.media && !targetIsText) selectedFile = {
|
|
363
|
+
path: selectedPath,
|
|
364
|
+
name: getWorkspaceBasename(selectedPath),
|
|
365
|
+
content: null,
|
|
366
|
+
asset: null,
|
|
367
|
+
info: target.info,
|
|
368
|
+
error: null
|
|
369
|
+
};
|
|
360
370
|
}
|
|
361
371
|
const loadingPaths = React.useMemo(() => {
|
|
362
372
|
const paths = /* @__PURE__ */ new Set();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchField } from "../foundations/SearchField.js";
|
|
2
|
-
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../../FileTree-
|
|
2
|
+
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../../FileTree-QTP57Qz4.js";
|
|
3
3
|
import { WorkspaceHeader } from "./WorkspaceHeader.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as WorkspaceNavigationAdapter } from "../../WorkspaceLink-Bh9-Jo1r.js";
|
|
2
|
-
import { y as WorkspaceState } from "../../Workspace-
|
|
2
|
+
import { y as WorkspaceState } from "../../Workspace-jdVZ9S0a.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/agents-sdk/WorkspaceExplorer.d.ts
|
|
@@ -2,7 +2,7 @@ import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
|
2
2
|
import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
3
3
|
import { a as WorkspaceNavigationRestorationBoundary, n as WorkspaceNavigationProvider, o as useRequiredWorkspaceNavigationRestoration, r as resolveWorkspaceLink } from "../../WorkspaceLink-DtH66bAY.js";
|
|
4
4
|
import { WorkspaceBrowser } from "./WorkspaceBrowser.js";
|
|
5
|
-
import { t as WorkspaceFileView } from "../../WorkspaceFileView-
|
|
5
|
+
import { t as WorkspaceFileView } from "../../WorkspaceFileView-DJ8Oxz57.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/agents-sdk/WorkspaceExplorer.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { WorkspaceFileAsset, WorkspaceFileAssetRequest, WorkspaceFileAssetResolver, WorkspaceFileState, WorkspaceMediaInfo, WorkspaceMediaKind, WorkspaceMediaTrack, WorkspaceMediaTrackKind, WorkspaceSkillDocument, getWorkspaceBasename, inferWorkspaceLanguage, inferWorkspaceMedia, inferWorkspaceMimeType, isWorkspaceMarkdownPath, isWorkspaceMediaPath, isWorkspaceSkillPath, parseWorkspaceSkill };
|
|
1
|
+
import { _ as isWorkspaceTextPath, a as WorkspaceMediaInfo, c as WorkspaceMediaTrackKind, d as inferWorkspaceLanguage, f as inferWorkspaceMedia, g as isWorkspaceSkillPath, h as isWorkspaceMediaPath, i as WorkspaceFileState, l as WorkspaceSkillDocument, m as isWorkspaceMarkdownPath, n as WorkspaceFileAssetRequest, o as WorkspaceMediaKind, p as inferWorkspaceMimeType, r as WorkspaceFileAssetResolver, s as WorkspaceMediaTrack, t as WorkspaceFileAsset, u as getWorkspaceBasename, v as parseWorkspaceSkill } from "../../WorkspaceFile-Dq-GC0_T.js";
|
|
2
|
+
export { WorkspaceFileAsset, WorkspaceFileAssetRequest, WorkspaceFileAssetResolver, WorkspaceFileState, WorkspaceMediaInfo, WorkspaceMediaKind, WorkspaceMediaTrack, WorkspaceMediaTrackKind, WorkspaceSkillDocument, getWorkspaceBasename, inferWorkspaceLanguage, inferWorkspaceMedia, inferWorkspaceMimeType, isWorkspaceMarkdownPath, isWorkspaceMediaPath, isWorkspaceSkillPath, isWorkspaceTextPath, parseWorkspaceSkill };
|
|
@@ -135,6 +135,17 @@ const GENERIC_MEDIA_MIME_TYPES = /* @__PURE__ */ new Set([
|
|
|
135
135
|
"application/binary",
|
|
136
136
|
"binary/octet-stream"
|
|
137
137
|
]);
|
|
138
|
+
const TEXT_APPLICATION_MIME_TYPES = /* @__PURE__ */ new Set([
|
|
139
|
+
"application/ecmascript",
|
|
140
|
+
"application/javascript",
|
|
141
|
+
"application/json",
|
|
142
|
+
"application/sql",
|
|
143
|
+
"application/toml",
|
|
144
|
+
"application/x-sh",
|
|
145
|
+
"application/x-yaml",
|
|
146
|
+
"application/xml",
|
|
147
|
+
"application/yaml"
|
|
148
|
+
]);
|
|
138
149
|
function normalizeWorkspaceMimeType(mimeType) {
|
|
139
150
|
return mimeType?.split(";", 1)[0]?.trim().toLowerCase() || null;
|
|
140
151
|
}
|
|
@@ -209,6 +220,12 @@ function inferWorkspaceMimeType(path) {
|
|
|
209
220
|
function isWorkspaceMediaPath(path, mimeType) {
|
|
210
221
|
return inferWorkspaceMedia(path, mimeType) !== null;
|
|
211
222
|
}
|
|
223
|
+
/** Identify files that are safe to decode and render as text. */
|
|
224
|
+
function isWorkspaceTextPath(path, mimeType) {
|
|
225
|
+
const normalizedMimeType = normalizeWorkspaceMimeType(mimeType);
|
|
226
|
+
if (!normalizedMimeType || GENERIC_MEDIA_MIME_TYPES.has(normalizedMimeType)) return LANGUAGE_BY_EXTENSION[workspaceExtension(path)] !== void 0;
|
|
227
|
+
return normalizedMimeType.startsWith("text/") || TEXT_APPLICATION_MIME_TYPES.has(normalizedMimeType) || normalizedMimeType.endsWith("+json") || normalizedMimeType.endsWith("+xml");
|
|
228
|
+
}
|
|
212
229
|
/** Parse and validate a workspace skill with the canonical Agent Skills SDK. */
|
|
213
230
|
function parseWorkspaceSkill(content) {
|
|
214
231
|
const validationErrors = validateSkillContent(content);
|
|
@@ -229,4 +246,4 @@ function inferWorkspaceLanguage(path) {
|
|
|
229
246
|
return LANGUAGE_BY_EXTENSION[workspaceExtension(path)] ?? "text";
|
|
230
247
|
}
|
|
231
248
|
//#endregion
|
|
232
|
-
export { getWorkspaceBasename, inferWorkspaceLanguage, inferWorkspaceMedia, inferWorkspaceMimeType, isWorkspaceMarkdownPath, isWorkspaceMediaPath, isWorkspaceSkillPath, parseWorkspaceSkill };
|
|
249
|
+
export { getWorkspaceBasename, inferWorkspaceLanguage, inferWorkspaceMedia, inferWorkspaceMimeType, isWorkspaceMarkdownPath, isWorkspaceMediaPath, isWorkspaceSkillPath, isWorkspaceTextPath, parseWorkspaceSkill };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WorkspaceFileView } from "../../WorkspaceFileView-
|
|
1
|
+
import { t as WorkspaceFileView } from "../../WorkspaceFileView-DJ8Oxz57.js";
|
|
2
2
|
export { WorkspaceFileView };
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
import { L as PaperclipIcon
|
|
1
|
+
import { L as PaperclipIcon } from "../../icons-DbrksZyY.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
|
+
import { Card, CardFooter, CardHeader, CardTitle } from "../foundations/Card.js";
|
|
3
4
|
import { Popover } from "../foundations/Popover.js";
|
|
4
5
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
5
6
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
6
|
-
import { Card, CardAction, CardFooter, CardHeader, CardTitle } from "../foundations/Card.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/agents-sdk/WorkspaceMountManager.tsx
|
|
10
|
-
function permissionLabel(permission) {
|
|
11
|
-
if (permission === "granted") return "Read/write connected";
|
|
12
|
-
if (permission === "prompt") return "Permission needed";
|
|
13
|
-
if (permission === "denied") return "Access denied";
|
|
14
|
-
return "Unavailable";
|
|
15
|
-
}
|
|
16
|
-
function permissionIcon(permission) {
|
|
17
|
-
if (permission === "granted") return /* @__PURE__ */ jsx(CheckIcon, {});
|
|
18
|
-
if (permission === "prompt") return /* @__PURE__ */ jsx(InfoIcon, {});
|
|
19
|
-
if (permission === "denied") return /* @__PURE__ */ jsx(XIcon, {});
|
|
20
|
-
return /* @__PURE__ */ jsx(WarningIcon, {});
|
|
21
|
-
}
|
|
22
10
|
/** Controlled local-mount presentation; native handles and persistence stay in the host. */
|
|
23
11
|
function WorkspaceMountManager({ mounts, adding = false, busyMountId = null, error, onAdd, onReconnect, onRemove, triggerLabel = "Attach local folders" }) {
|
|
24
12
|
const busy = adding || busyMountId !== null;
|
|
@@ -51,15 +39,10 @@ function WorkspaceMountManager({ mounts, adding = false, busyMountId = null, err
|
|
|
51
39
|
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Card, {
|
|
52
40
|
size: "sm",
|
|
53
41
|
"aria-busy": busyMountId === mount.id || void 0,
|
|
54
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, {
|
|
55
43
|
className: "workspace-mount-manager__path",
|
|
56
44
|
children: /* @__PURE__ */ jsx("code", { children: mount.path })
|
|
57
|
-
}), /* @__PURE__ */
|
|
58
|
-
className: "workspace-mount-manager__permission",
|
|
59
|
-
"data-permission": mount.permission,
|
|
60
|
-
role: "status",
|
|
61
|
-
children: [permissionIcon(mount.permission), permissionLabel(mount.permission)]
|
|
62
|
-
}) })] }), /* @__PURE__ */ jsxs(CardFooter, { children: [mount.permission !== "granted" ? /* @__PURE__ */ jsx(Button, {
|
|
45
|
+
}) }), /* @__PURE__ */ jsxs(CardFooter, { children: [mount.permission !== "granted" ? /* @__PURE__ */ jsx(Button, {
|
|
63
46
|
type: "button",
|
|
64
47
|
size: "sm",
|
|
65
48
|
disabled: busy,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { p as ChevronRightIcon } from "../../icons-Dw-im7lg.js";
|
|
3
2
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
4
3
|
import { useExpansionState } from "./ExpansionState.js";
|
|
4
|
+
import { p as ChevronRightIcon } from "../../icons-DbrksZyY.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ai-sdk/Activity.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { nt as XIcon } from "../../icons-
|
|
2
|
+
import { nt as XIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
5
|
import { PromptInputTray } from "./PromptInput.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { z as PencilIcon } from "../../icons-
|
|
2
|
+
import { z as PencilIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
-
import { a as formatUnknownValue } from "../../format-DB2mX9DA.js";
|
|
5
4
|
import { Kbd } from "../foundations/Kbd.js";
|
|
5
|
+
import { o as formatUnknownValue } from "../../format-COCyV98Z.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/ai-sdk/Approval.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { et as WarningIcon, nt as XIcon, q as SpinnerIcon } from "../../icons-
|
|
2
|
+
import { et as WarningIcon, nt as XIcon, q as SpinnerIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button, buttonVariants } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
5
|
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { _ as DotIcon, d as CheckIcon, p as ChevronRightIcon, q as SpinnerIcon } from "../../icons-Dw-im7lg.js";
|
|
3
2
|
import { Collapsible } from "../foundations/Collapsible.js";
|
|
3
|
+
import { _ as DotIcon, d as CheckIcon, p as ChevronRightIcon, q as SpinnerIcon } from "../../icons-DbrksZyY.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai-sdk/ChainOfThought.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { s as BookmarkIcon } from "../../icons-
|
|
2
|
+
import { s as BookmarkIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Marker, MarkerIcon } from "../foundations/Marker.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as CODE_BLOCK_LANGUAGES, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../../CodeBlock-
|
|
1
|
+
import { a as CodeBlockCopyButton, c as CodeBlockLanguageSelector, d as CodeBlockLanguageSelectorTrigger, f as CodeBlockLanguageSelectorValue, i as CodeBlockContent, l as CodeBlockLanguageSelectorContent, m as CODE_BLOCK_LANGUAGES, n as CodeBlockActions, o as CodeBlockFilename, p as CodeBlockTitle, r as CodeBlockContainer, s as CodeBlockHeader, t as CodeBlock, u as CodeBlockLanguageSelectorItem } from "../../CodeBlock-8K1p1BDU.js";
|
|
2
2
|
export { CODE_BLOCK_LANGUAGES, CodeBlock, CodeBlockActions, CodeBlockContainer, CodeBlockContent, CodeBlockCopyButton, CodeBlockFilename, CodeBlockHeader, CodeBlockLanguageSelector, CodeBlockLanguageSelectorContent, CodeBlockLanguageSelectorItem, CodeBlockLanguageSelectorTrigger, CodeBlockLanguageSelectorValue, CodeBlockTitle };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SlackIcon, O as MailIcon, _ as DotIcon, d as CheckIcon, nt as XIcon, u as CalendarIcon } from "../../icons-
|
|
2
|
+
import { K as SlackIcon, O as MailIcon, _ as DotIcon, d as CheckIcon, nt as XIcon, u as CalendarIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { Field } from "../foundations/Field.js";
|
|
5
5
|
import { Textarea } from "../foundations/Textarea.js";
|
|
6
|
-
import { Input } from "../foundations/Input.js";
|
|
7
|
-
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
8
6
|
import { Card, CardAction, CardContent, CardFooter, CardHeader, CardTitle } from "../foundations/Card.js";
|
|
7
|
+
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
8
|
+
import { Input } from "../foundations/Input.js";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region src/components/ai-sdk/ConnectedAppCards.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { Popover } from "../foundations/Popover.js";
|
|
3
3
|
import { Separator } from "../foundations/Separator.js";
|
|
4
|
-
import { t as ProgressRing } from "../../progress-ring-
|
|
4
|
+
import { t as ProgressRing } from "../../progress-ring-Cgii90dC.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ai-sdk/Context.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { n as ArrowDownIcon, v as DownloadIcon } from "../../icons-
|
|
2
|
+
import { n as ArrowDownIcon, v as DownloadIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
4
|
import { t as assignRef } from "../../merge-refs-DF_7w2x_.js";
|
|
5
5
|
import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport } from "./MessageScroller.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { $ as TrashIcon, B as PlayIcon, R as PauseIcon, Z as TargetIcon } from "../../icons-
|
|
2
|
+
import { $ as TrashIcon, B as PlayIcon, R as PauseIcon, Z as TargetIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ai-sdk/Goal.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { Popover } from "../foundations/Popover.js";
|
|
3
2
|
import { PreviewCard } from "../foundations/PreviewCard.js";
|
|
3
|
+
import { Popover } from "../foundations/Popover.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai-sdk/InlineCitation.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { B as PlayIcon } from "../../icons-
|
|
2
|
+
import { B as PlayIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
4
4
|
import { Card } from "../foundations/Card.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { S as FileIcon, i as ArrowRightIcon, r as ArrowLeftIcon } from "../../icons-
|
|
2
|
+
import { S as FileIcon, i as ArrowRightIcon, r as ArrowLeftIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
5
|
import { t as AttachmentPreview } from "../../attachment-preview-1CXJvrmb.js";
|
|
6
|
-
import { n as clamp } from "../../format-
|
|
6
|
+
import { n as clamp } from "../../format-COCyV98Z.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { cjk } from "@streamdown/cjk";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { n as ArrowDownIcon } from "../../icons-
|
|
2
|
+
import { n as ArrowDownIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { t as messageScrollerContract } from "../../message-scroller-C8cplcQO.js";
|
|
5
5
|
import "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { n as ArrowDownIcon } from "../../icons-
|
|
2
|
+
import { n as ArrowDownIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { t as messageScrollerContract } from "../../message-scroller-C8cplcQO.js";
|
|
5
5
|
import * as React from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { _ as DotIcon, d as CheckIcon, i as ArrowRightIcon } from "../../icons-
|
|
2
|
+
import { _ as DotIcon, d as CheckIcon, i as ArrowRightIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Popover } from "../foundations/Popover.js";
|
|
4
|
-
import { t as ProgressRing } from "../../progress-ring-
|
|
4
|
+
import { t as ProgressRing } from "../../progress-ring-Cgii90dC.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ai-sdk/Plan.tsx
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { n as mergeBaseClassName, t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { C as FolderIcon, J as SquareIcon, L as PaperclipIcon, M as MicrophoneIcon, P as MonitorIcon, S as FileIcon, V as PlusIcon, Y as StopIcon, a as ArrowUpIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, nt as XIcon, q as SpinnerIcon, tt as WrenchIcon } from "../../icons-
|
|
2
|
+
import { C as FolderIcon, J as SquareIcon, L as PaperclipIcon, M as MicrophoneIcon, P as MonitorIcon, S as FileIcon, V as PlusIcon, Y as StopIcon, a as ArrowUpIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, nt as XIcon, q as SpinnerIcon, tt as WrenchIcon } from "../../icons-DbrksZyY.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
5
|
import { IconButton } from "../foundations/IconButton.js";
|
|
6
|
-
import { t as AttachmentPreview } from "../../attachment-preview-1CXJvrmb.js";
|
|
7
|
-
import { i as formatErrorMessage, n as clamp, r as formatClock } from "../../format-DB2mX9DA.js";
|
|
8
6
|
import { Autocomplete } from "../foundations/Autocomplete.js";
|
|
9
7
|
import { Kbd } from "../foundations/Kbd.js";
|
|
10
8
|
import { Menu } from "../foundations/Menu.js";
|
|
11
9
|
import { PreviewCard } from "../foundations/PreviewCard.js";
|
|
12
10
|
import { Tabs } from "../foundations/Tabs.js";
|
|
11
|
+
import { t as AttachmentPreview } from "../../attachment-preview-1CXJvrmb.js";
|
|
12
|
+
import { a as formatErrorMessage, i as formatClock, n as clamp } from "../../format-COCyV98Z.js";
|
|
13
13
|
import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
14
14
|
import * as React from "react";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|