@mcp-b/react-components 0.57.1 → 0.58.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/Card-BPkXIkBz.d.ts +46 -0
- package/dist/{CodeBlock-Bl-q7wMc.js → CodeBlock-Bs_Z03eC.js} +2 -1
- package/dist/{CodeBlock-CPotpyyM.d.ts → CodeBlock-DYp5V_4O.d.ts} +1 -1
- package/dist/{EmployeeChrome-CN99SVfF.d.ts → EmployeeChrome-DsdIek0l.d.ts} +2 -10
- package/dist/ExecutionBoard-DHfMvKlB.d.ts +64 -0
- package/dist/ExecutionResult-BSZsUbrL.js +279 -0
- package/dist/{FileTree-CfOhUyp3.js → FileTree-DyLBn7O_.js} +1 -1
- package/dist/{ManagerOffice-CMJ7laGe.js → ManagerOffice-DHcLRhFu.js} +6 -21
- package/dist/{McpConnectorForm-BPWCo9bU.d.ts → McpConnectorForm-D4bY-lm_.d.ts} +1 -1
- package/dist/{McpPluginCatalog-uSh0gGeY.d.ts → McpPluginCatalog-2FZDLCeK.d.ts} +2 -2
- package/dist/{SetupChecklist-BiWQkKEq.js → SetupChecklist-CKQ-mKYt.js} +2 -2
- package/dist/{ThinkRoutine-DGlKJbIy.d.ts → ThinkRoutine-DoZjbzyn.d.ts} +15 -3
- package/dist/{Workspace-Cr-aGDfx.d.ts → Workspace-iCkXvQRJ.d.ts} +1 -1
- package/dist/WorkspaceConcept-ByaG-kBq.d.ts +38 -0
- package/dist/WorkspaceExecutionTable-DNhj6YDX.d.ts +239 -0
- package/dist/{WorkspaceFile-DiwiJEwO.d.ts → WorkspaceFile-DkIZKoK6.d.ts} +1 -1
- package/dist/{WorkspaceFileView-CCe_o79q.js → WorkspaceFileView-M2jC2P4p.js} +217 -139
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.js +11 -11
- package/dist/components/agents-sdk/AgentEvent.js +2 -2
- 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 +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +4 -8
- package/dist/components/agents-sdk/EmployeeChat.js +5 -5
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +81 -66
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +6 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +14 -12
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +4 -4
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +2 -0
- package/dist/components/agents-sdk/ExecutionBoard.js +648 -0
- package/dist/components/agents-sdk/ManagerAccountActions.js +3 -3
- package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +4 -3
- package/dist/components/agents-sdk/McpConnectionRequest.d.ts +1 -1
- package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -1
- 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 +18 -9
- package/dist/components/agents-sdk/McpServerIcon.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +2 -2
- package/dist/components/agents-sdk/ModelEndpointDialog.js +1 -1
- 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/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunPanel.js +2 -2
- package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +3 -3
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +238 -209
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +14 -35
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutine.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkRoutineActions.js +26 -16
- package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineDetail.d.ts +5 -2
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +14 -8
- package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +23 -6
- package/dist/components/agents-sdk/ThinkRoutineForm.js +522 -215
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.d.ts +10 -0
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +34 -0
- package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +2 -37
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +7 -6
- package/dist/components/agents-sdk/WorkspaceExecution.d.ts +2 -92
- package/dist/components/agents-sdk/WorkspaceExecution.js +651 -134
- package/dist/components/agents-sdk/WorkspaceExecutionTable.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceExecutionTable.js +824 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +3 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +5 -4
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +4 -2
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +6 -5
- package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceUserScript.js +5 -4
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +1 -1
- package/dist/components/ai-sdk/ConnectedAppCards.d.ts +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 +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.d.ts +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.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 +1 -1
- package/dist/components/ai-sdk/PromptInput.js +6 -6
- package/dist/components/ai-sdk/Queue.js +1 -1
- package/dist/components/ai-sdk/Reasoning.js +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/extension/ChatGptSignInScreen.js +2 -2
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.js +2 -2
- package/dist/components/foundations/Card.d.ts +2 -45
- 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.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.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/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/Terminal.js +2 -2
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +2 -2
- package/dist/components/general-purpose/WebPreview.js +2 -2
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.js +5 -5
- package/dist/{copy-button-CSDuDfdP.js → copy-button-M4sAp9xS.js} +1 -1
- package/dist/execution-result-DWVmm-bL.js +80 -0
- package/dist/{icons-CUuD7iEh.d.ts → icons-Dj6id76o.d.ts} +2 -1
- package/dist/{icons-cuEtsgj9.js → icons-DvlrWt54.js} +4 -3
- package/dist/{mcp-server-catalog-DgA9BnL0.d.ts → mcp-server-catalog-kaMWaSAL.d.ts} +3 -1
- package/dist/styles/app-top-bar.css +2 -1
- package/dist/styles/base.css +1 -0
- package/dist/styles/chatgpt-sign-in-screen.css +8 -14
- package/dist/styles/description-list.css +12 -9
- package/dist/styles/execution-board.css +383 -0
- package/dist/styles/index.css +3 -0
- package/dist/styles/mcp-plugin-catalog.css +8 -7
- package/dist/styles/think-chat-tool-panels.css +1 -2
- package/dist/styles/think-execution-workbench.css +1 -12
- package/dist/styles/think-routine.css +39 -41
- package/dist/styles/workspace-concepts.css +441 -17
- package/dist/styles/workspace-explorer.css +18 -4
- package/dist/utils/mcp-server-catalog.d.ts +2 -2
- package/dist/utils/mcp-server-catalog.js +18 -1
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/{workspace-assets-Bg7XhPsk.js → workspace-assets-DVn0d-fN.js} +24 -81
- package/dist/workspace-delete-DfloiBWp.js +80 -0
- package/package.json +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { canRequestFavicon, inferFaviconUrl } from "../../utils/favicon.js";
|
|
2
|
-
import { D as LinkIcon, P as MonitorIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, U as SearchIcon,
|
|
2
|
+
import { D as LinkIcon, P as MonitorIcon, Q as TerminalIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, U as SearchIcon, nt as WrenchIcon, tt as WarningIcon } from "../../icons-DvlrWt54.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/agents-sdk/AgentActivity.tsx
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { H as RefreshIcon, K as SpinnerIcon, Q as TrashIcon, R as PencilIcon, t as ArchiveIcon } from "../../icons-cuEtsgj9.js";
|
|
3
2
|
import { ExpansionStateProvider } from "../ai-sdk/ExpansionState.js";
|
|
3
|
+
import { $ as TrashIcon, H as RefreshIcon, K as SpinnerIcon, R as PencilIcon, t as ArchiveIcon } from "../../icons-DvlrWt54.js";
|
|
4
|
+
import { AgentChatMessageEditor } from "../ai-sdk/AgentChatMessageEditor.js";
|
|
5
|
+
import { PromptInput, PromptInputSubmit, PromptInputTray, composerLinksToReferences, usePromptInputController } from "../ai-sdk/PromptInput.js";
|
|
4
6
|
import { Message, MessageAction, MessageActions, MessageCopyAction, MessageMeta, MessageTimestamp } from "../ai-sdk/Message.js";
|
|
5
|
-
import { AgentEventRow, getAgentEvent } from "./AgentEvent.js";
|
|
6
|
-
import { AgentChatQueueProvider, useOptionalAgentChatQueue } from "./AgentChatQueue.js";
|
|
7
7
|
import { AgentMessageParts } from "../ai-sdk/AgentMessageParts.js";
|
|
8
|
-
import {
|
|
8
|
+
import { Marker, MarkerContent } from "../foundations/Marker.js";
|
|
9
9
|
import { VirtualMessageScroller } from "../ai-sdk/MessageScrollerVirtual.js";
|
|
10
|
-
import { PromptInput, PromptInputSubmit, PromptInputTray, composerLinksToReferences, usePromptInputController } from "../ai-sdk/PromptInput.js";
|
|
11
10
|
import { Queue, QueueItem, QueueItemAction, QueueItemActions, QueueItemContent, QueueItemIndicator, QueueList } from "../ai-sdk/Queue.js";
|
|
12
|
-
import { PromptInputApproval, getApprovalStateKey, getPendingToolApprovals } from "./PromptInputApproval.js";
|
|
13
11
|
import { BrandLoading } from "../general-purpose/BrandLoading.js";
|
|
14
|
-
import {
|
|
12
|
+
import { AgentEventRow, getAgentEvent } from "./AgentEvent.js";
|
|
13
|
+
import { AgentChatQueueProvider, useOptionalAgentChatQueue } from "./AgentChatQueue.js";
|
|
14
|
+
import { PromptInputApproval, getApprovalStateKey, getPendingToolApprovals } from "./PromptInputApproval.js";
|
|
15
15
|
import * as React from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
import { useRender } from "@base-ui/react/use-render";
|
|
18
18
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
19
|
-
import { isCompactionMessage } from "agents/sessions";
|
|
20
19
|
import { isTextUIPart } from "ai";
|
|
20
|
+
import { isCompactionMessage } from "agents/sessions";
|
|
21
21
|
//#region src/components/agents-sdk/AgentChat.tsx
|
|
22
22
|
function observeAgentChatDock(element) {
|
|
23
23
|
if (!element || typeof ResizeObserver === "undefined") return;
|
|
@@ -299,7 +299,7 @@ function AgentChatCopyAction() {
|
|
|
299
299
|
disabled: busy && message.id === lastMessageId,
|
|
300
300
|
tooltip: message.role === "assistant" ? "Copy response" : "Copy message",
|
|
301
301
|
text,
|
|
302
|
-
size: "
|
|
302
|
+
size: "sm",
|
|
303
303
|
onCopy: () => announce(`${label.replace("Copy response", "Response").replace("Copy message", "Message")} copied.`),
|
|
304
304
|
onError: () => announce("Could not copy. Try again.")
|
|
305
305
|
}) });
|
|
@@ -312,7 +312,7 @@ function AgentChatRetryAction() {
|
|
|
312
312
|
disabled: busy,
|
|
313
313
|
label: "Retry",
|
|
314
314
|
tooltip: "Regenerate response",
|
|
315
|
-
size: "
|
|
315
|
+
size: "sm",
|
|
316
316
|
onClick: () => onRegenerate(message.id),
|
|
317
317
|
children: /* @__PURE__ */ jsx(RefreshIcon, { size: 14 })
|
|
318
318
|
});
|
|
@@ -326,7 +326,7 @@ function AgentChatEditAction() {
|
|
|
326
326
|
disabled: busy,
|
|
327
327
|
label: "Edit message",
|
|
328
328
|
tooltip: "Edit and resend",
|
|
329
|
-
size: "
|
|
329
|
+
size: "sm",
|
|
330
330
|
onClick: startEdit,
|
|
331
331
|
children: /* @__PURE__ */ jsx(PencilIcon, {})
|
|
332
332
|
});
|
|
@@ -2,9 +2,9 @@ import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
|
2
2
|
import { Activity, ActivityContent, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
3
3
|
import { r as firstLine } from "../../format-CWaZEp5o.js";
|
|
4
4
|
import { MessageResponse } from "../ai-sdk/Message.js";
|
|
5
|
-
import { useOptionalAgentToolRuns } from "./AgentToolRunsContext.js";
|
|
6
|
-
import { getSubagentRunName } from "./SubagentRunIndicator.js";
|
|
7
5
|
import { NaniteMark } from "../nanites/NaniteScene.js";
|
|
6
|
+
import { getSubagentRunName } from "./SubagentRunIndicator.js";
|
|
7
|
+
import { useOptionalAgentToolRuns } from "./AgentToolRunsContext.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { isTextUIPart } from "ai";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as KeyboardIcon, H as RefreshIcon, r as ArrowLeftIcon } from "../../icons-
|
|
1
|
+
import { E as KeyboardIcon, H as RefreshIcon, r as ArrowLeftIcon } from "../../icons-DvlrWt54.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
3
|
import { WebPreviewNavigationButton } from "../general-purpose/WebPreview.js";
|
|
4
4
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, _ as DotIcon, k as MaximizeIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon, _ as DotIcon, k as MaximizeIcon } from "../../icons-DvlrWt54.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { Dialog } from "../foundations/Dialog.js";
|
|
5
5
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { L as PauseIcon, z as PlayIcon } from "../../icons-
|
|
2
|
+
import { L as PauseIcon, z as PlayIcon } from "../../icons-DvlrWt54.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
4
|
import { i as formatClock } from "../../format-CWaZEp5o.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 { K as SpinnerIcon,
|
|
2
|
+
import { K as SpinnerIcon, rt as XIcon } from "../../icons-DvlrWt54.js";
|
|
3
3
|
import { Tabs } from "../foundations/Tabs.js";
|
|
4
4
|
import { WebPreview, WebPreviewEmpty, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl, WebPreviewViewport } from "../general-purpose/WebPreview.js";
|
|
5
5
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as WorkspaceNavigationAdapter } from "../../WorkspaceLink-Buo6gKj2.js";
|
|
2
|
-
import { f as EmployeeShellProps, l as EmployeeModelSetup, n as EmployeeBrand, p as EmployeeStatus, t as EmployeeAgentRun } from "../../EmployeeChrome-
|
|
2
|
+
import { f as EmployeeShellProps, l as EmployeeModelSetup, n as EmployeeBrand, p as EmployeeStatus, t as EmployeeAgentRun } from "../../EmployeeChrome-DsdIek0l.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
//#region src/components/agents-sdk/EmployeeApp.d.ts
|
|
5
5
|
export interface EmployeeAppRootProps extends EmployeeShellProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { WorkbenchBack } from "./WorkbenchBack.js";
|
|
1
|
+
import { tt as WarningIcon } from "../../icons-DvlrWt54.js";
|
|
3
2
|
import { StatusScreen } from "../general-purpose/StatusScreen.js";
|
|
3
|
+
import { WorkbenchBack } from "./WorkbenchBack.js";
|
|
4
4
|
import { EmployeeChrome } from "./EmployeeChrome.js";
|
|
5
5
|
import { ThinkFullApp } from "./ThinkFullApp.js";
|
|
6
6
|
import "react";
|
|
@@ -9,13 +9,9 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
/** Persistent admission and navigation frame. Put keyed runtimes and Suspense inside it. */
|
|
10
10
|
function EmployeeAppRoot({ status, workspaceNavigation, brand, modelSetup, schedules, shell, ref, children, ...chrome }) {
|
|
11
11
|
const admitted = status === "ready" || status === "connecting";
|
|
12
|
-
chrome.compactBack ??= /* @__PURE__ */ jsx(WorkbenchBack, {
|
|
12
|
+
if (chrome.view === "files" && workspaceNavigation?.current.destination.kind === "file") chrome.compactBack ??= /* @__PURE__ */ jsx(WorkbenchBack, {
|
|
13
13
|
navigation: workspaceNavigation,
|
|
14
|
-
filesOpen:
|
|
15
|
-
backToChatLink: chrome.renderLink({
|
|
16
|
-
kind: "view",
|
|
17
|
-
view: "chat"
|
|
18
|
-
})
|
|
14
|
+
filesOpen: true
|
|
19
15
|
});
|
|
20
16
|
return /* @__PURE__ */ jsx("div", {
|
|
21
17
|
className: "employee-app",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PromptInputActionAddAttachments, PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger, PromptInputAttachments, PromptInputBody, PromptInputCommandComposer, PromptInputContextSelector, PromptInputFooter, PromptInputFooterEnd, PromptInputTools } from "../ai-sdk/PromptInput.js";
|
|
2
|
-
import { AgentChat, useAgentChatCompaction } from "./AgentChat.js";
|
|
3
|
-
import { ConversationTabPicker } from "../extension/ConversationTabPicker.js";
|
|
4
|
-
import { n as SetupChecklistGroup } from "../../SetupChecklist-BiWQkKEq.js";
|
|
5
|
-
import { McpServerPickerItems } from "./McpServerPicker.js";
|
|
6
|
-
import { EmployeeStartScreen } from "./EmployeeStartScreen.js";
|
|
7
2
|
import { Context, ContextContent, ContextContentBody, ContextContentFooter, ContextContentHeader, ContextTrigger } from "../ai-sdk/Context.js";
|
|
8
3
|
import { CodexModelSelector } from "../extension/CodexModelSelector.js";
|
|
4
|
+
import { ConversationTabPicker } from "../extension/ConversationTabPicker.js";
|
|
5
|
+
import { n as SetupChecklistGroup } from "../../SetupChecklist-CKQ-mKYt.js";
|
|
6
|
+
import { AgentChat, useAgentChatCompaction } from "./AgentChat.js";
|
|
9
7
|
import { ThinkChat } from "./ThinkChat.js";
|
|
8
|
+
import { McpServerPickerItems } from "./McpServerPicker.js";
|
|
9
|
+
import { EmployeeStartScreen } from "./EmployeeStartScreen.js";
|
|
10
10
|
import * as React from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/agents-sdk/EmployeeChat.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as EmployeeDestination, c as EmployeeMenuProps, d as EmployeeRenderLink, f as EmployeeShellProps, h as EmployeeWorkbenchItem, i as EmployeeCompanion, l as EmployeeModelSetup, m as EmployeeView, n as EmployeeBrand, o as EmployeeFollow, p as EmployeeStatus, r as EmployeeChrome, s as EmployeeIdentity, t as EmployeeAgentRun, u as EmployeePasskeyVault } from "../../EmployeeChrome-
|
|
1
|
+
import { a as EmployeeDestination, c as EmployeeMenuProps, d as EmployeeRenderLink, f as EmployeeShellProps, h as EmployeeWorkbenchItem, i as EmployeeCompanion, l as EmployeeModelSetup, m as EmployeeView, n as EmployeeBrand, o as EmployeeFollow, p as EmployeeStatus, r as EmployeeChrome, s as EmployeeIdentity, t as EmployeeAgentRun, u as EmployeePasskeyVault } from "../../EmployeeChrome-DsdIek0l.js";
|
|
2
2
|
export { EmployeeAgentRun, EmployeeBrand, EmployeeChrome, EmployeeCompanion, EmployeeDestination, EmployeeFollow, EmployeeIdentity, EmployeeMenuProps, EmployeeModelSetup, EmployeePasskeyVault, EmployeeRenderLink, EmployeeShellProps, EmployeeStatus, EmployeeView, EmployeeWorkbenchItem };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { findCatalogMcpServerCard } from "../../utils/mcp-server-catalog.js";
|
|
2
|
-
import { A as McpIcon, C as FolderIcon, F as MoonIcon, K as SpinnerIcon, P as MonitorIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, V as QueueIcon, W as SidebarIcon,
|
|
2
|
+
import { A as McpIcon, C as FolderIcon, F as MoonIcon, J as SquareIcon, K as SpinnerIcon, P as MonitorIcon, Q as TerminalIcon, R as PencilIcon, S as FileIcon, T as InfoIcon, V as QueueIcon, W as SidebarIcon, X as SunIcon, b as EyeIcon, c as BoxIcon, j as MessageSquareIcon, o as ArrowUpRightIcon, r as ArrowLeftIcon, tt as WarningIcon, u as CalendarIcon, y as EllipsisIcon } from "../../icons-DvlrWt54.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
+
import { Menu } from "../foundations/Menu.js";
|
|
4
5
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
6
|
import { IconButton } from "../foundations/IconButton.js";
|
|
6
7
|
import { Dialog } from "../foundations/Dialog.js";
|
|
7
8
|
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
8
|
-
import { SubagentRunLabel, getSubagentRunName } from "./SubagentRunIndicator.js";
|
|
9
|
-
import { Menu } from "../foundations/Menu.js";
|
|
10
|
-
import { BrandLoading } from "../general-purpose/BrandLoading.js";
|
|
11
|
-
import { AgentChat } from "./AgentChat.js";
|
|
12
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
13
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
14
|
-
import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-kqMa81v5.js";
|
|
15
9
|
import { AgentChatStartScreen, AgentChatStartScreenComposer, AgentChatStartScreenPrimary, AgentChatStartScreenSuggestions, AgentChatStartScreenTray, AgentChatStarterList } from "../ai-sdk/AgentChatStartScreen.js";
|
|
16
|
-
import {
|
|
17
|
-
import { Avatar } from "../foundations/Avatar.js";
|
|
10
|
+
import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-kqMa81v5.js";
|
|
18
11
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
12
|
+
import { Avatar } from "../foundations/Avatar.js";
|
|
13
|
+
import { ChatGptSignInScreen } from "../extension/ChatGptSignInScreen.js";
|
|
14
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
19
15
|
import { useTheme } from "../foundations/ThemeProvider.js";
|
|
20
16
|
import { ActionGuide, ActionGuideAction, ActionGuideList, ActionGuideSection } from "../general-purpose/ActionGuide.js";
|
|
17
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
18
|
+
import { BrandLoading } from "../general-purpose/BrandLoading.js";
|
|
21
19
|
import { ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
20
|
+
import { SubagentRunLabel, getSubagentRunName } from "./SubagentRunIndicator.js";
|
|
21
|
+
import { AgentChat } from "./AgentChat.js";
|
|
22
22
|
import { McpServerIcon } from "./McpServerIcon.js";
|
|
23
23
|
import { ThinkThreadPicker, ThinkThreadStatusIndicators, summarizeThinkThreads } from "./ThinkThreadPicker.js";
|
|
24
24
|
import * as React from "react";
|
|
@@ -67,7 +67,6 @@ function MenuSwitchItem({ label, hint, checked, onCheckedChange }) {
|
|
|
67
67
|
}
|
|
68
68
|
/** Employee settings are host-owned state; the menu stores only dialog visibility. */
|
|
69
69
|
function EmployeeMenu({ renderLink, view = "chat", identity, onModel, onSignOut, companion, passkeys, follow, workbenchNavigation = [], navigation }) {
|
|
70
|
-
const { contentCompact: compact } = useResponsiveSidebarShell();
|
|
71
70
|
const { preference, setPreference } = useTheme();
|
|
72
71
|
const [identityOpen, setIdentityOpen] = React.useState(false);
|
|
73
72
|
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs(Menu.Root, { children: [/* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
@@ -85,27 +84,39 @@ function EmployeeMenu({ renderLink, view = "chat", identity, onModel, onSignOut,
|
|
|
85
84
|
children: /* @__PURE__ */ jsxs(Menu.Popup, {
|
|
86
85
|
className: "employee-menu",
|
|
87
86
|
children: [
|
|
88
|
-
|
|
87
|
+
view !== "chat" ? /* @__PURE__ */ jsx(MenuHint, {
|
|
88
|
+
hint: "Return to this conversation.",
|
|
89
|
+
children: /* @__PURE__ */ jsxs(Menu.Item, {
|
|
90
|
+
render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: renderLink({
|
|
91
|
+
kind: "view",
|
|
92
|
+
view: "chat"
|
|
93
|
+
}) }),
|
|
94
|
+
children: [/* @__PURE__ */ jsx(MessageSquareIcon, {}), "Chat"]
|
|
95
|
+
})
|
|
96
|
+
}) : null,
|
|
97
|
+
(navigation ?? [...WORKBENCH_NAVIGATION, ...workbenchNavigation]).map((item) => /* @__PURE__ */ jsx(MenuHint, {
|
|
89
98
|
hint: item.description,
|
|
90
99
|
children: /* @__PURE__ */ jsxs(Menu.Item, {
|
|
100
|
+
"aria-current": view === item.id ? "page" : void 0,
|
|
91
101
|
render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: renderLink({
|
|
92
102
|
kind: "view",
|
|
93
|
-
view:
|
|
103
|
+
view: item.id
|
|
94
104
|
}) }),
|
|
95
105
|
children: [item.icon, /* @__PURE__ */ jsx("span", {
|
|
96
106
|
className: "sigvelo-truncate",
|
|
97
107
|
children: item.label
|
|
98
108
|
})]
|
|
99
109
|
})
|
|
100
|
-
}, item.id))
|
|
110
|
+
}, item.id)),
|
|
101
111
|
/* @__PURE__ */ jsx(MenuHint, {
|
|
102
112
|
hint: "Create and manage recurring tasks and review their runs.",
|
|
103
113
|
children: /* @__PURE__ */ jsxs(Menu.Item, {
|
|
114
|
+
"aria-current": view === "schedules" ? "page" : void 0,
|
|
104
115
|
render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: renderLink({
|
|
105
116
|
kind: "view",
|
|
106
117
|
view: "schedules"
|
|
107
118
|
}) }),
|
|
108
|
-
children: [/* @__PURE__ */ jsx(
|
|
119
|
+
children: [/* @__PURE__ */ jsx(CalendarIcon, {}), "Schedules"]
|
|
109
120
|
})
|
|
110
121
|
}),
|
|
111
122
|
follow ? /* @__PURE__ */ jsx(MenuHint, {
|
|
@@ -282,22 +293,6 @@ function IdentityDialog({ identity, open, onOpenChange }) {
|
|
|
282
293
|
] }) })] })
|
|
283
294
|
});
|
|
284
295
|
}
|
|
285
|
-
/** Bar links to Files, Plugins, and host views; the compact overflow carries them instead. */
|
|
286
|
-
function EmployeeWorkbenchLinks({ view, renderLink, workbenchNavigation = [], navigation }) {
|
|
287
|
-
const { contentCompact: compact } = useResponsiveSidebarShell();
|
|
288
|
-
if (compact) return null;
|
|
289
|
-
return /* @__PURE__ */ jsx(Fragment, { children: (navigation ?? [...WORKBENCH_NAVIGATION, ...workbenchNavigation]).map((item) => /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
290
|
-
label: item.label,
|
|
291
|
-
tooltip: item.description,
|
|
292
|
-
"aria-current": view === item.id ? "page" : void 0,
|
|
293
|
-
"data-pressed": view === item.id ? "" : void 0,
|
|
294
|
-
render: renderLink({
|
|
295
|
-
kind: "view",
|
|
296
|
-
view: view === item.id ? "chat" : item.id
|
|
297
|
-
}),
|
|
298
|
-
children: item.icon
|
|
299
|
-
}, item.id)) });
|
|
300
|
-
}
|
|
301
296
|
function useEmployeeRunStopFocus() {
|
|
302
297
|
const backRef = React.useRef(null);
|
|
303
298
|
const focusedStop = React.useRef(null);
|
|
@@ -312,8 +307,12 @@ function useEmployeeRunStopFocus() {
|
|
|
312
307
|
focusedStop
|
|
313
308
|
};
|
|
314
309
|
}
|
|
315
|
-
function employeeShellTitle({ agentRun, threadTitle }) {
|
|
316
|
-
if (!agentRun)
|
|
310
|
+
function employeeShellTitle({ agentRun, threadTitle, view, destinationTitle }) {
|
|
311
|
+
if (!agentRun) {
|
|
312
|
+
if (view === "chat") return threadTitle ?? "New chat";
|
|
313
|
+
if (view === "live") return "Live view";
|
|
314
|
+
return destinationTitle ?? "Workspace";
|
|
315
|
+
}
|
|
317
316
|
const content = agentRun.state === "ready" ? /* @__PURE__ */ jsx(SubagentRunLabel, { run: agentRun.run }) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(SpinnerIcon, {}), /* @__PURE__ */ jsx("span", {
|
|
318
317
|
className: "sigvelo-truncate",
|
|
319
318
|
children: "Delegated run"
|
|
@@ -324,14 +323,8 @@ function employeeShellTitle({ agentRun, threadTitle }) {
|
|
|
324
323
|
children: content
|
|
325
324
|
});
|
|
326
325
|
}
|
|
327
|
-
function employeeShellActions({ agentRun,
|
|
328
|
-
if (
|
|
329
|
-
navigation,
|
|
330
|
-
view,
|
|
331
|
-
renderLink,
|
|
332
|
-
workbenchNavigation
|
|
333
|
-
});
|
|
334
|
-
if (agentRun.state !== "ready" || !agentRun.onCancel) return null;
|
|
326
|
+
function employeeShellActions({ agentRun, focusedStop }) {
|
|
327
|
+
if (agentRun?.state !== "ready" || !agentRun.onCancel) return null;
|
|
335
328
|
return /* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
336
329
|
label: "Stop " + getSubagentRunName(agentRun.run),
|
|
337
330
|
onClick: agentRun.onCancel,
|
|
@@ -356,9 +349,42 @@ function EmployeeNewThread({ renderLink }) {
|
|
|
356
349
|
children: /* @__PURE__ */ jsx(PencilIcon, {})
|
|
357
350
|
});
|
|
358
351
|
}
|
|
352
|
+
function EmployeeThreadSidebar({ closeSidebar, closeSidebarOnCompact, threads, renderLink, onDeleteThread }) {
|
|
353
|
+
return /* @__PURE__ */ jsx(ThinkThreadPicker, {
|
|
354
|
+
headerActions: /* @__PURE__ */ jsx(IconButton, {
|
|
355
|
+
label: "Hide threads",
|
|
356
|
+
variant: "ghost",
|
|
357
|
+
size: "sm",
|
|
358
|
+
onClick: closeSidebar,
|
|
359
|
+
children: /* @__PURE__ */ jsx(SidebarIcon, {})
|
|
360
|
+
}),
|
|
361
|
+
threads,
|
|
362
|
+
renderThreadLink: (item) => renderLink({
|
|
363
|
+
kind: "thread",
|
|
364
|
+
threadId: item.id
|
|
365
|
+
}),
|
|
366
|
+
onSelect: closeSidebarOnCompact,
|
|
367
|
+
onDelete: onDeleteThread
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
function EmployeeShellLeading({ agentRun, view, back, appBarLeading, renderLink }) {
|
|
371
|
+
if (agentRun || view === "live") return back;
|
|
372
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [appBarLeading, view === "chat" ? /* @__PURE__ */ jsx(EmployeeNewThread, { renderLink }) : null] });
|
|
373
|
+
}
|
|
374
|
+
function employeeCompactTitle(view, agentRun, thread, history) {
|
|
375
|
+
if (agentRun || view !== "chat") return void 0;
|
|
376
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", { children: thread?.title ?? "New chat" }), /* @__PURE__ */ jsx(ThinkThreadStatusIndicators, { summary: summarizeThinkThreads(history) })] });
|
|
377
|
+
}
|
|
359
378
|
function EmployeeShell({ view, threads, threadId, agentRun, renderLink, appBarLeading, compactBack, onDeleteThread, sidebar, sidebarLabel = "threads", navigation, children, ...menu }) {
|
|
360
379
|
const history = threads ?? EMPTY_THREADS;
|
|
361
380
|
const thread = history.find((candidate) => candidate.id === threadId);
|
|
381
|
+
const destination = (navigation ?? [...WORKBENCH_NAVIGATION, ...menu.workbenchNavigation ?? []]).find((item) => item.id === view);
|
|
382
|
+
const title = employeeShellTitle({
|
|
383
|
+
agentRun,
|
|
384
|
+
threadTitle: thread?.title,
|
|
385
|
+
view,
|
|
386
|
+
destinationTitle: destination?.label
|
|
387
|
+
});
|
|
362
388
|
const { backRef, focusedStop } = useEmployeeRunStopFocus();
|
|
363
389
|
const back = /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
364
390
|
ref: backRef,
|
|
@@ -395,20 +421,19 @@ function EmployeeShell({ view, threads, threadId, agentRun, renderLink, appBarLe
|
|
|
395
421
|
showMainLabel: "Show selected thread",
|
|
396
422
|
bar: {
|
|
397
423
|
label: "Workbench controls",
|
|
398
|
-
title
|
|
424
|
+
title,
|
|
425
|
+
compactTitleTrigger: employeeCompactTitle(view, agentRun, thread, history),
|
|
426
|
+
leading: /* @__PURE__ */ jsx(EmployeeShellLeading, {
|
|
399
427
|
agentRun,
|
|
400
|
-
|
|
428
|
+
view,
|
|
429
|
+
back,
|
|
430
|
+
appBarLeading,
|
|
431
|
+
renderLink
|
|
401
432
|
}),
|
|
402
|
-
|
|
403
|
-
leading: agentRun ? back : /* @__PURE__ */ jsxs(Fragment, { children: [appBarLeading, /* @__PURE__ */ jsx(EmployeeNewThread, { renderLink })] }),
|
|
404
|
-
compactLeading: !agentRun && view !== "chat" ? compactBack ?? back : void 0,
|
|
433
|
+
compactLeading: !agentRun && view !== "chat" ? compactBack : void 0,
|
|
405
434
|
actions: employeeShellActions({
|
|
406
435
|
agentRun,
|
|
407
|
-
|
|
408
|
-
renderLink,
|
|
409
|
-
workbenchNavigation: menu.workbenchNavigation,
|
|
410
|
-
focusedStop,
|
|
411
|
-
navigation
|
|
436
|
+
focusedStop
|
|
412
437
|
}),
|
|
413
438
|
primary: /* @__PURE__ */ jsx(EmployeeMenu, {
|
|
414
439
|
...menu,
|
|
@@ -418,21 +443,12 @@ function EmployeeShell({ view, threads, threadId, agentRun, renderLink, appBarLe
|
|
|
418
443
|
follow: agentRun ? void 0 : menu.follow
|
|
419
444
|
}, JSON.stringify([view, threadId]))
|
|
420
445
|
},
|
|
421
|
-
sidebar: sidebar ?? (agentRun ? void 0 : ({ closeSidebar, closeSidebarOnCompact }) => /* @__PURE__ */ jsx(
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
variant: "ghost",
|
|
425
|
-
size: "sm",
|
|
426
|
-
onClick: closeSidebar,
|
|
427
|
-
children: /* @__PURE__ */ jsx(SidebarIcon, {})
|
|
428
|
-
}),
|
|
446
|
+
sidebar: sidebar ?? (agentRun ? void 0 : ({ closeSidebar, closeSidebarOnCompact }) => /* @__PURE__ */ jsx(EmployeeThreadSidebar, {
|
|
447
|
+
closeSidebar,
|
|
448
|
+
closeSidebarOnCompact,
|
|
429
449
|
threads: history,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
threadId: item.id
|
|
433
|
-
}),
|
|
434
|
-
onSelect: closeSidebarOnCompact,
|
|
435
|
-
onDelete: onDeleteThread
|
|
450
|
+
renderLink,
|
|
451
|
+
onDeleteThread
|
|
436
452
|
})),
|
|
437
453
|
children
|
|
438
454
|
})
|
|
@@ -615,7 +631,6 @@ function EmployeeWelcome({ brand, children, suggestions, suggestionsError, onRet
|
|
|
615
631
|
const EmployeeChrome = {
|
|
616
632
|
Shell: EmployeeShell,
|
|
617
633
|
Menu: EmployeeMenu,
|
|
618
|
-
WorkbenchLinks: EmployeeWorkbenchLinks,
|
|
619
634
|
Gate: EmployeeGate,
|
|
620
635
|
Welcome: EmployeeWelcome
|
|
621
636
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { c as EmployeeMenuProps } from "../../EmployeeChrome-
|
|
2
|
-
import {
|
|
1
|
+
import { c as EmployeeMenuProps } from "../../EmployeeChrome-DsdIek0l.js";
|
|
2
|
+
import { p as WorkspaceExecution } from "../../WorkspaceExecutionTable-DNhj6YDX.js";
|
|
3
|
+
import { t as ThinkRoutine } from "../../ThinkRoutine-DoZjbzyn.js";
|
|
3
4
|
import { ThinkRoutineActionsRootProps } from "./ThinkRoutineActions.js";
|
|
4
5
|
import * as React from "react";
|
|
5
6
|
//#region src/components/agents-sdk/EmployeeSchedules.d.ts
|
|
6
7
|
export interface EmployeeSchedulesProps<Routine extends ThinkRoutine = ThinkRoutine> extends EmployeeMenuProps, Pick<ThinkRoutineActionsRootProps<Routine>, "sourceKey" | "onRun" | "onEnabledChange" | "onDelete"> {
|
|
7
8
|
routines: readonly Routine[];
|
|
9
|
+
/** Saved workflow metadata for readable names and inputs in schedule details. */
|
|
10
|
+
scripts?: readonly WorkspaceExecution[];
|
|
8
11
|
selectedRoutineId: string | null;
|
|
9
12
|
error?: React.ReactNode;
|
|
10
13
|
}
|
|
11
14
|
/** Schedule navigation, selection, empty states and controls shared by every host. */
|
|
12
|
-
export declare function EmployeeSchedules<Routine extends ThinkRoutine>({ routines, selectedRoutineId, error, sourceKey, onRun, onEnabledChange, onDelete, ...menu }: EmployeeSchedulesProps<Routine>): React.JSX.Element;
|
|
15
|
+
export declare function EmployeeSchedules<Routine extends ThinkRoutine>({ routines, scripts, selectedRoutineId, error, sourceKey, onRun, onEnabledChange, onDelete, ...menu }: EmployeeSchedulesProps<Routine>): React.JSX.Element;
|
|
13
16
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { R as PencilIcon, r as ArrowLeftIcon } from "../../icons-
|
|
1
|
+
import { R as PencilIcon, r as ArrowLeftIcon } from "../../icons-DvlrWt54.js";
|
|
2
|
+
import { LinkButton } from "../foundations/LinkButton.js";
|
|
2
3
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
3
|
-
import { StatusScreen } from "../general-purpose/StatusScreen.js";
|
|
4
4
|
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
5
|
-
import {
|
|
5
|
+
import { StatusScreen } from "../general-purpose/StatusScreen.js";
|
|
6
6
|
import { EmployeeChrome } from "./EmployeeChrome.js";
|
|
7
7
|
import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
|
|
8
8
|
import { ThinkRoutineActions, useThinkRoutineActions } from "./ThinkRoutineActions.js";
|
|
@@ -11,10 +11,11 @@ import { ThinkRoutineDetail } from "./ThinkRoutineDetail.js";
|
|
|
11
11
|
import "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
//#region src/components/agents-sdk/EmployeeSchedules.tsx
|
|
14
|
-
function SelectedRoutine({ routine, renderLink }) {
|
|
14
|
+
function SelectedRoutine({ routine, renderLink, script }) {
|
|
15
15
|
const actions = useThinkRoutineActions();
|
|
16
16
|
return /* @__PURE__ */ jsx(ThinkRoutineDetail, {
|
|
17
17
|
routine,
|
|
18
|
+
script,
|
|
18
19
|
showOwner: false,
|
|
19
20
|
...actions,
|
|
20
21
|
renderRunLink: (run) => renderLink({
|
|
@@ -25,8 +26,9 @@ function SelectedRoutine({ routine, renderLink }) {
|
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
/** Schedule navigation, selection, empty states and controls shared by every host. */
|
|
28
|
-
function EmployeeSchedules({ routines, selectedRoutineId, error, sourceKey, onRun, onEnabledChange, onDelete, ...menu }) {
|
|
29
|
+
function EmployeeSchedules({ routines, scripts, selectedRoutineId, error, sourceKey, onRun, onEnabledChange, onDelete, ...menu }) {
|
|
29
30
|
const selected = routines.find((routine) => routine.id === selectedRoutineId);
|
|
31
|
+
const selectedScriptPath = selected && "script" in selected.task ? selected.task.script.path : void 0;
|
|
30
32
|
const { renderLink } = menu;
|
|
31
33
|
const content = /* @__PURE__ */ jsx(ResponsiveSidebarShell, {
|
|
32
34
|
sidebarLabel: "schedules",
|
|
@@ -44,12 +46,11 @@ function EmployeeSchedules({ routines, selectedRoutineId, error, sourceKey, onRu
|
|
|
44
46
|
}),
|
|
45
47
|
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
46
48
|
}),
|
|
47
|
-
primary: /* @__PURE__ */ jsx(EmployeeChrome.Menu, {
|
|
48
|
-
|
|
49
|
-
view: "schedules"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}), selected ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49
|
+
primary: /* @__PURE__ */ jsx(EmployeeChrome.Menu, {
|
|
50
|
+
...menu,
|
|
51
|
+
view: "schedules"
|
|
52
|
+
}),
|
|
53
|
+
actions: /* @__PURE__ */ jsx(Fragment, { children: selected ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53
54
|
/* @__PURE__ */ jsx(ThinkRoutineActions.Run, {}),
|
|
54
55
|
/* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
55
56
|
label: "Edit schedule",
|
|
@@ -60,7 +61,7 @@ function EmployeeSchedules({ routines, selectedRoutineId, error, sourceKey, onRu
|
|
|
60
61
|
children: /* @__PURE__ */ jsx(PencilIcon, {})
|
|
61
62
|
}),
|
|
62
63
|
/* @__PURE__ */ jsx(ThinkRoutineActions.Delete, {})
|
|
63
|
-
] }) : null
|
|
64
|
+
] }) : null })
|
|
64
65
|
},
|
|
65
66
|
sidebar: ({ closeSidebarOnCompact }) => /* @__PURE__ */ jsx(ThinkRoutineBrowser, {
|
|
66
67
|
routines,
|
|
@@ -79,6 +80,7 @@ function EmployeeSchedules({ routines, selectedRoutineId, error, sourceKey, onRu
|
|
|
79
80
|
/* @__PURE__ */ jsx(ThinkRoutineActions.Error, {}),
|
|
80
81
|
/* @__PURE__ */ jsx(SelectedRoutine, {
|
|
81
82
|
routine: selected,
|
|
83
|
+
script: scripts?.find((script) => script.path === selectedScriptPath),
|
|
82
84
|
renderLink
|
|
83
85
|
}),
|
|
84
86
|
/* @__PURE__ */ jsx(ThinkRoutineActions.Status, {})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { J as PromptInputMessage } from "../../PromptInput-C3adKglc.js";
|
|
2
|
-
import { a as EmployeeDestination, n as EmployeeBrand } from "../../EmployeeChrome-
|
|
2
|
+
import { a as EmployeeDestination, n as EmployeeBrand } from "../../EmployeeChrome-DsdIek0l.js";
|
|
3
3
|
import { SetupChecklistGroupProps } from "../general-purpose/SetupChecklist.js";
|
|
4
|
-
import { n as McpPluginCatalogProps } from "../../McpPluginCatalog-
|
|
4
|
+
import { n as McpPluginCatalogProps } from "../../McpPluginCatalog-2FZDLCeK.js";
|
|
5
5
|
import { r as WorkspaceMountManagerProps } from "../../WorkspaceMountManager-DM384Cn6.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
//#region src/components/agents-sdk/EmployeeStartScreen.d.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C as FolderIcon, G as SlackIcon, I as PaperclipIcon, c as BoxIcon, g as DiscordIcon } from "../../icons-
|
|
2
|
-
import { IconButton } from "../foundations/IconButton.js";
|
|
1
|
+
import { C as FolderIcon, G as SlackIcon, I as PaperclipIcon, c as BoxIcon, g as DiscordIcon } from "../../icons-DvlrWt54.js";
|
|
3
2
|
import { Menu } from "../foundations/Menu.js";
|
|
4
|
-
import {
|
|
3
|
+
import { IconButton } from "../foundations/IconButton.js";
|
|
5
4
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
5
|
+
import { ActionGuideAction } from "../general-purpose/ActionGuide.js";
|
|
6
|
+
import { t as SetupChecklistAction } from "../../SetupChecklist-CKQ-mKYt.js";
|
|
6
7
|
import { EmployeeChrome } from "./EmployeeChrome.js";
|
|
7
|
-
import { t as SetupChecklistAction } from "../../SetupChecklist-BiWQkKEq.js";
|
|
8
8
|
import { McpServerPickerAction, McpServerPickerItems } from "./McpServerPicker.js";
|
|
9
9
|
import { WorkspaceMountManager } from "./WorkspaceMountManager.js";
|
|
10
10
|
import * as React from "react";
|