@mcp-b/react-components 0.51.2 → 0.53.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/{CodeBlock--r6GS8YV.d.ts → CodeBlock-DJ99TQWy.d.ts} +1 -1
- package/dist/{CodeBlock-g8sADidM.js → CodeBlock-Dw1z6jc8.js} +2 -1
- package/dist/EmployeeChrome-B605rpVz.d.ts +233 -0
- package/dist/{FileTree-DruTQ-oa.js → FileTree-okaLnS5j.js} +1 -1
- package/dist/{IconButton-ByiyjkYE.d.ts → IconButton-CAlFVb2L.d.ts} +3 -0
- package/dist/{ManagerOffice-D-7SOJ4x.js → ManagerOffice-CJwBAEMv.js} +17 -12
- package/dist/McpPluginCatalog-DNeHDrts.d.ts +94 -0
- package/dist/{Message-DyaTBiV7.d.ts → Message-COsMPZSC.d.ts} +2 -2
- package/dist/{ResponsiveSidebarShell-CAmmtQTR.d.ts → ResponsiveSidebarShell-BUBQa_IV.d.ts} +3 -1
- package/dist/{SetupChecklist-Btmy3-_C.js → SetupChecklist-DWyifWWg.js} +6 -5
- package/dist/{ThinkThreadPicker-yetGX_s5.d.ts → ThinkThreadPicker-DX0lL-P7.d.ts} +3 -0
- package/dist/{Workspace-HzGrWDX3.d.ts → Workspace-mzMZSdts.d.ts} +1 -1
- package/dist/WorkspaceConceptPanel-97ZyVpZI.js +20 -0
- package/dist/{WorkspaceFile-Bouauobc.d.ts → WorkspaceFile-19WP0EU1.d.ts} +1 -1
- package/dist/{WorkspaceFileView-DYPtRVpM.js → WorkspaceFileView-DQDWUpAH.js} +3 -2
- package/dist/{WorkspaceMessageResponse-8lOSAbw_.d.ts → WorkspaceMessageResponse-BApg8KZv.d.ts} +1 -1
- package/dist/WorkspaceMountManager-CkLI1B-G.d.ts +33 -0
- package/dist/assets/sigvelo-logo.svg +54 -0
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.d.ts +6 -2
- package/dist/components/agents-sdk/AgentChat.js +12 -18
- 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 +43 -30
- package/dist/components/agents-sdk/EmployeeApp.js +47 -34
- package/dist/components/agents-sdk/EmployeeChat.d.ts +31 -10
- package/dist/components/agents-sdk/EmployeeChat.js +35 -7
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -219
- package/dist/components/agents-sdk/EmployeeChrome.js +219 -162
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeSchedules.js +2 -3
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +12 -11
- package/dist/components/agents-sdk/EmployeeStartScreen.js +22 -15
- package/dist/components/agents-sdk/ManagerAccountActions.js +2 -3
- package/dist/components/agents-sdk/ManagerOffice.js +1 -2
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +2 -2
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +33 -13
- package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -93
- package/dist/components/agents-sdk/McpPluginCatalog.js +5 -5
- package/dist/components/agents-sdk/McpServerPicker.js +5 -5
- 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.d.ts +3 -0
- package/dist/components/agents-sdk/SubagentRunPanel.js +67 -47
- package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +2 -2
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +7 -14
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +2 -0
- package/dist/components/agents-sdk/ThinkFullApp.js +2 -0
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineActions.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +32 -19
- package/dist/components/agents-sdk/WorkbenchBack.d.ts +18 -0
- package/dist/components/agents-sdk/WorkbenchBack.js +27 -0
- 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 +3 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +6 -6
- package/dist/components/agents-sdk/WorkspaceExecution.js +13 -10
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +4 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +13 -4
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.d.ts +1 -32
- package/dist/components/agents-sdk/WorkspaceMountManager.js +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +7 -5
- package/dist/components/agents-sdk/WorkspaceUserScript.js +7 -5
- 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.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.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.d.ts +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.js +1 -1
- package/dist/components/ai-sdk/Message.d.ts +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 +46 -43
- 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.d.ts +1 -1
- package/dist/components/extension/ChatGptSignInScreen.js +61 -186
- package/dist/components/extension/CodexModelSelector.js +4 -8
- 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/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +7 -4
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/AccountSignInDialog.d.ts +5 -9
- package/dist/components/general-purpose/AccountSignInDialog.js +13 -5
- package/dist/components/general-purpose/BrandLoading.d.ts +14 -0
- package/dist/components/general-purpose/BrandLoading.js +25 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- 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.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +59 -27
- package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.d.ts +13 -2
- package/dist/components/general-purpose/StatusScreen.js +27 -3
- package/dist/components/general-purpose/Terminal.d.ts +2 -2
- package/dist/components/general-purpose/Terminal.js +2 -2
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WebPreview.d.ts +1 -1
- package/dist/components/general-purpose/WebPreview.js +2 -2
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.js +2 -2
- package/dist/{copy-button-OUwOdgEm.d.ts → copy-button-CJYYgCIU.d.ts} +1 -1
- package/dist/{copy-button-CSDuDfdP.js → copy-button-Dk2vRe9j.js} +1 -1
- package/dist/styles/activity.css +2 -2
- package/dist/styles/agent-chat.css +6 -105
- package/dist/styles/app-root.css +9 -0
- package/dist/styles/app-top-bar.css +10 -4
- package/dist/styles/avatar.css +2 -2
- package/dist/styles/base.css +6 -2
- package/dist/styles/brand-loading.css +58 -0
- package/dist/styles/brand.test.ts +158 -0
- package/dist/styles/browser-control-overlay.css +22 -0
- package/dist/styles/button.css +22 -1
- package/dist/styles/chatgpt-sign-in-screen.css +111 -225
- package/dist/styles/code-block.css +5 -0
- package/dist/styles/codex-model-selector.css +2 -12
- package/dist/styles/description-list.css +9 -2
- package/dist/styles/employee-app.css +19 -1
- package/dist/styles/employee-chrome.css +39 -5
- package/dist/styles/file-tree.css +15 -2
- package/dist/styles/index.css +1 -0
- package/dist/styles/manager-office.css +80 -55
- package/dist/styles/manager-work.css +5 -11
- package/dist/styles/mcp-plugin-catalog.css +29 -34
- package/dist/styles/mcp-server-picker.css +13 -5
- package/dist/styles/prompt-input.css +3 -13
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +9 -2
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +67 -0
- package/dist/styles/responsive-sidebar-shell.css +70 -25
- package/dist/styles/search-field.css +8 -6
- package/dist/styles/subagent-run.css +81 -0
- package/dist/styles/switch.css +7 -0
- package/dist/styles/think-execution-workbench.css +0 -17
- package/dist/styles/think-full-app.css +11 -4
- package/dist/styles/think-thread-picker.css +16 -38
- package/dist/styles/workspace-concepts.css +29 -2
- package/dist/styles/workspace-explorer.css +6 -48
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/{workspace-assets-Bg7XhPsk.js → workspace-assets-C3QT6UlQ.js} +1 -1
- package/package.json +2 -2
- package/dist/styles/extension-status.css +0 -46
- package/dist/{icons-cuEtsgj9.js → icons-CeGfXO21.js} +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as CopyButtonProps } from "./copy-button-
|
|
1
|
+
import { t as CopyButtonProps } from "./copy-button-CJYYgCIU.js";
|
|
2
2
|
import { m as SelectProps, t as Select } from "./Select-RrceeEIe.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { BundledLanguage } from "shiki";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import { t as CopyButton } from "./copy-button-
|
|
2
|
+
import { t as CopyButton } from "./copy-button-Dk2vRe9j.js";
|
|
3
3
|
import { Select } from "./components/foundations/Select.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -239,6 +239,7 @@ function CodeBlockLanguageSelectorItem({ children, ...props }) {
|
|
|
239
239
|
function CodeBlockContainer({ className, children, ref, ...props }) {
|
|
240
240
|
return /* @__PURE__ */ jsx("div", {
|
|
241
241
|
ref,
|
|
242
|
+
tabIndex: 0,
|
|
242
243
|
className: cx("code-block__container", className),
|
|
243
244
|
...props,
|
|
244
245
|
children
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { J as PromptInputMessage } from "./PromptInput-DGPrCTPl.js";
|
|
2
|
+
import { n as AgentToolRunValue } from "./AgentToolRunsContext-GMe_hSnD.js";
|
|
3
|
+
import { n as ResponsiveSidebarShell } from "./ResponsiveSidebarShell-BUBQa_IV.js";
|
|
4
|
+
import { t as ThinkThreadItem } from "./ThinkThreadPicker-DX0lL-P7.js";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
|
|
7
|
+
//#region src/components/agents-sdk/EmployeeChrome.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Chat, the two exclusive full-screen surfaces (`live`, `schedules`), or an
|
|
10
|
+
* opaque workbench panel id. Built-in workbench destinations are `files` and
|
|
11
|
+
* `plugins`; hosts append more through `workbenchNavigation`. An unknown id
|
|
12
|
+
* keeps the conversation visible without rewriting the host's destination.
|
|
13
|
+
*/
|
|
14
|
+
type EmployeeView = string;
|
|
15
|
+
type EmployeeDestination = {
|
|
16
|
+
kind: "thread";
|
|
17
|
+
threadId: string;
|
|
18
|
+
} | {
|
|
19
|
+
kind: "new-thread";
|
|
20
|
+
} | {
|
|
21
|
+
kind: "view";
|
|
22
|
+
view: EmployeeView;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "agent-run";
|
|
25
|
+
runId: string;
|
|
26
|
+
} | {
|
|
27
|
+
kind: "routine";
|
|
28
|
+
routineId: string;
|
|
29
|
+
} | {
|
|
30
|
+
kind: "create-routine";
|
|
31
|
+
} | {
|
|
32
|
+
kind: "edit-routine";
|
|
33
|
+
routineId: string;
|
|
34
|
+
} | {
|
|
35
|
+
kind: "routine-run";
|
|
36
|
+
routineId: string;
|
|
37
|
+
runId: string;
|
|
38
|
+
};
|
|
39
|
+
/** Host-owned router link for a destination; the chrome has no route vocabulary. */
|
|
40
|
+
type EmployeeRenderLink = (destination: EmployeeDestination) => React.ReactElement;
|
|
41
|
+
type EmployeeStatus = "ready" | "connecting" | "offline" | "identity-blocked" | "needs-model";
|
|
42
|
+
interface EmployeeBrand {
|
|
43
|
+
logo: React.ReactNode;
|
|
44
|
+
name: string;
|
|
45
|
+
}
|
|
46
|
+
interface EmployeeIdentity {
|
|
47
|
+
email?: string;
|
|
48
|
+
liveProfile: string;
|
|
49
|
+
assignedAccount: string;
|
|
50
|
+
managed?: boolean;
|
|
51
|
+
canBind?: boolean;
|
|
52
|
+
onBind?: () => void | Promise<void>;
|
|
53
|
+
onUnbind?: () => void | Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
/** Host-owned follow preference for the selected conversation. */
|
|
56
|
+
interface EmployeeFollow {
|
|
57
|
+
followed: boolean;
|
|
58
|
+
onCheckedChange: (followed: boolean) => void;
|
|
59
|
+
}
|
|
60
|
+
/** Companion availability and its destination, both host-owned. */
|
|
61
|
+
interface EmployeeCompanion {
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
origin: string;
|
|
64
|
+
setEnabled: (enabled: boolean) => void;
|
|
65
|
+
}
|
|
66
|
+
/** Host-owned passkey-vault preference; credential storage stays outside the chrome. */
|
|
67
|
+
interface EmployeePasskeyVault {
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
setEnabled: (enabled: boolean) => void;
|
|
70
|
+
}
|
|
71
|
+
/** Host sign-in and endpoint-setup controls behind the `needs-model` gate. */
|
|
72
|
+
interface EmployeeModelSetup {
|
|
73
|
+
onSignIn?: () => void;
|
|
74
|
+
busy?: boolean;
|
|
75
|
+
error?: React.ReactNode;
|
|
76
|
+
label?: string;
|
|
77
|
+
onCustomEndpoint?: () => void;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The delegated run the chrome is drilled into. A `ready` run carries the whole
|
|
81
|
+
* retained record out of the dispatching thread's projection, so status,
|
|
82
|
+
* progress, and report are the dispatching thread's facts, never the child's.
|
|
83
|
+
* The host decides which state applies and whether the run may still be
|
|
84
|
+
* stopped — `onCancel` is the whole Stop affordance's condition.
|
|
85
|
+
*/
|
|
86
|
+
type EmployeeAgentRun = {
|
|
87
|
+
state: "loading";
|
|
88
|
+
} | {
|
|
89
|
+
state: "unavailable";
|
|
90
|
+
} | {
|
|
91
|
+
state: "error";
|
|
92
|
+
error: string;
|
|
93
|
+
} | {
|
|
94
|
+
state: "ready";
|
|
95
|
+
run: AgentToolRunValue; /** Stops the run. Omit while the run cannot be stopped; the bar follows. */
|
|
96
|
+
onCancel?: () => void; /** A stop already in flight, so the control reads as busy rather than dead. */
|
|
97
|
+
cancelPending?: boolean;
|
|
98
|
+
};
|
|
99
|
+
/** One host view following Files and Plugins in the bar and the compact overflow. */
|
|
100
|
+
interface EmployeeWorkbenchItem {
|
|
101
|
+
id: string;
|
|
102
|
+
label: string;
|
|
103
|
+
/** Explains the destination on hover and keyboard focus. */
|
|
104
|
+
description: string;
|
|
105
|
+
icon: React.ReactNode;
|
|
106
|
+
}
|
|
107
|
+
interface EmployeeMenuProps {
|
|
108
|
+
/** Overrides the default Files/Plugins navigation for shared host shells. */
|
|
109
|
+
navigation?: readonly EmployeeWorkbenchItem[];
|
|
110
|
+
/** Active view; selecting it again returns to chat. */
|
|
111
|
+
view?: EmployeeView;
|
|
112
|
+
renderLink: EmployeeRenderLink;
|
|
113
|
+
/** Identity assignment and bind/unbind operations behind the account dialog. */
|
|
114
|
+
identity?: EmployeeIdentity;
|
|
115
|
+
/** Opens the host's model-selection surface. */
|
|
116
|
+
onModel?: () => void;
|
|
117
|
+
/** Requests host sign-out; session teardown stays host-owned. */
|
|
118
|
+
onSignOut?: () => void;
|
|
119
|
+
companion?: EmployeeCompanion;
|
|
120
|
+
passkeys?: EmployeePasskeyVault;
|
|
121
|
+
/** Shown for a selected conversation; omit when there is nothing to follow. */
|
|
122
|
+
follow?: EmployeeFollow;
|
|
123
|
+
/** Additional host views, following Files and Plugins. */
|
|
124
|
+
workbenchNavigation?: readonly EmployeeWorkbenchItem[];
|
|
125
|
+
}
|
|
126
|
+
/** Employee settings are host-owned state; the menu stores only dialog visibility. */
|
|
127
|
+
declare function EmployeeMenu({
|
|
128
|
+
renderLink,
|
|
129
|
+
view,
|
|
130
|
+
identity,
|
|
131
|
+
onModel,
|
|
132
|
+
onSignOut,
|
|
133
|
+
companion,
|
|
134
|
+
passkeys,
|
|
135
|
+
follow,
|
|
136
|
+
workbenchNavigation,
|
|
137
|
+
navigation
|
|
138
|
+
}: EmployeeMenuProps): React.JSX.Element;
|
|
139
|
+
/** Bar links to Files, Plugins, and host views; the compact overflow carries them instead. */
|
|
140
|
+
declare function EmployeeWorkbenchLinks({
|
|
141
|
+
view,
|
|
142
|
+
renderLink,
|
|
143
|
+
workbenchNavigation,
|
|
144
|
+
navigation
|
|
145
|
+
}: {
|
|
146
|
+
view: EmployeeView;
|
|
147
|
+
renderLink: EmployeeRenderLink;
|
|
148
|
+
workbenchNavigation?: readonly EmployeeWorkbenchItem[];
|
|
149
|
+
navigation?: readonly EmployeeWorkbenchItem[];
|
|
150
|
+
}): React.JSX.Element | null;
|
|
151
|
+
interface EmployeeShellProps<Thread extends ThinkThreadItem = ThinkThreadItem> extends EmployeeMenuProps {
|
|
152
|
+
view: EmployeeView;
|
|
153
|
+
/** Compact workbench back control; the host can return from a file to its workspace. */
|
|
154
|
+
compactBack?: React.ReactNode;
|
|
155
|
+
/** Host-projected thread history; the chrome neither fetches nor persists it. */
|
|
156
|
+
threads?: readonly Thread[];
|
|
157
|
+
/** Selected thread, used for the title, the picker, and the return link. */
|
|
158
|
+
threadId?: string;
|
|
159
|
+
/** The delegated run this chrome is drilled into, when it is drilled into one. */
|
|
160
|
+
agentRun?: EmployeeAgentRun;
|
|
161
|
+
/** Caller-owned leading bar content, such as the extension's navigation control. */
|
|
162
|
+
appBarLeading?: React.ReactNode;
|
|
163
|
+
/** Passed the whole history item after the thread picker confirms removal. */
|
|
164
|
+
onDeleteThread?: (thread: Thread) => void | Promise<void>;
|
|
165
|
+
/** Shared manager shell supplies workforce navigation in place of thread-only navigation. */
|
|
166
|
+
sidebar?: React.ComponentProps<typeof ResponsiveSidebarShell>["sidebar"];
|
|
167
|
+
sidebarLabel?: string;
|
|
168
|
+
navigation?: readonly EmployeeWorkbenchItem[];
|
|
169
|
+
children: React.ReactNode;
|
|
170
|
+
}
|
|
171
|
+
declare function EmployeeShell<Thread extends ThinkThreadItem = ThinkThreadItem>({
|
|
172
|
+
view,
|
|
173
|
+
threads,
|
|
174
|
+
threadId,
|
|
175
|
+
agentRun,
|
|
176
|
+
renderLink,
|
|
177
|
+
appBarLeading,
|
|
178
|
+
compactBack,
|
|
179
|
+
onDeleteThread,
|
|
180
|
+
sidebar,
|
|
181
|
+
sidebarLabel,
|
|
182
|
+
navigation,
|
|
183
|
+
children,
|
|
184
|
+
...menu
|
|
185
|
+
}: EmployeeShellProps<Thread>): React.JSX.Element;
|
|
186
|
+
/** Policy and connection gates are host facts, not design-system presets. */
|
|
187
|
+
declare function EmployeeGate({
|
|
188
|
+
status,
|
|
189
|
+
connectingLabel,
|
|
190
|
+
identity,
|
|
191
|
+
brand,
|
|
192
|
+
modelSetup
|
|
193
|
+
}: {
|
|
194
|
+
status: EmployeeStatus;
|
|
195
|
+
connectingLabel?: string;
|
|
196
|
+
identity?: EmployeeIdentity;
|
|
197
|
+
brand: EmployeeBrand;
|
|
198
|
+
modelSetup?: EmployeeModelSetup;
|
|
199
|
+
}): React.JSX.Element | null;
|
|
200
|
+
/** The composer remains under its existing prompt provider; connection controls are explicit slots. */
|
|
201
|
+
declare function EmployeeWelcome({
|
|
202
|
+
brand,
|
|
203
|
+
children,
|
|
204
|
+
suggestions,
|
|
205
|
+
suggestionsError,
|
|
206
|
+
onRetrySuggestions,
|
|
207
|
+
onSubmit,
|
|
208
|
+
tray,
|
|
209
|
+
setupActions,
|
|
210
|
+
hasConnectedApps
|
|
211
|
+
}: {
|
|
212
|
+
brand: EmployeeBrand;
|
|
213
|
+
children: React.ReactNode;
|
|
214
|
+
suggestions?: readonly {
|
|
215
|
+
label: string;
|
|
216
|
+
value: string;
|
|
217
|
+
}[];
|
|
218
|
+
suggestionsError?: boolean;
|
|
219
|
+
onRetrySuggestions?: () => void;
|
|
220
|
+
onSubmit: (message: PromptInputMessage) => void | Promise<void>;
|
|
221
|
+
tray?: React.ReactNode; /** Slack, Discord, and local-folder actions composed by the host. */
|
|
222
|
+
setupActions?: React.ReactNode;
|
|
223
|
+
hasConnectedApps?: boolean;
|
|
224
|
+
}): React.JSX.Element;
|
|
225
|
+
declare const EmployeeChrome: {
|
|
226
|
+
Shell: typeof EmployeeShell;
|
|
227
|
+
Menu: typeof EmployeeMenu;
|
|
228
|
+
WorkbenchLinks: typeof EmployeeWorkbenchLinks;
|
|
229
|
+
Gate: typeof EmployeeGate;
|
|
230
|
+
Welcome: typeof EmployeeWelcome;
|
|
231
|
+
};
|
|
232
|
+
//#endregion
|
|
233
|
+
export { EmployeeDestination as a, EmployeeMenuProps as c, EmployeeRenderLink as d, EmployeeShellProps as f, EmployeeWorkbenchItem as h, EmployeeCompanion as i, EmployeeModelSetup as l, EmployeeView as m, EmployeeBrand as n, EmployeeFollow as o, EmployeeStatus as p, EmployeeChrome as r, EmployeeIdentity as s, EmployeeAgentRun as t, EmployeePasskeyVault as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import { C as FolderIcon, S as FileIcon, p as ChevronRightIcon, w as FolderOpenIcon } from "./icons-
|
|
2
|
+
import { C as FolderIcon, S as FileIcon, p as ChevronRightIcon, w as FolderOpenIcon } from "./icons-CeGfXO21.js";
|
|
3
3
|
import { t as NavigationLink } from "./navigation-link-kqMa81v5.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -7,6 +7,8 @@ interface IconButtonProps extends Omit<ButtonProps, "aria-label" | "children" |
|
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
/** Accessible name and default tooltip text for the icon-only control. */
|
|
9
9
|
label: string;
|
|
10
|
+
/** Optional visible label, hidden at widths of 36rem or less (including narrow containers). */
|
|
11
|
+
responsiveLabel?: string;
|
|
10
12
|
/** Tooltip content when it should differ from the accessible name. */
|
|
11
13
|
tooltip?: React.ReactNode;
|
|
12
14
|
/** Preferred side for the tooltip. */
|
|
@@ -22,6 +24,7 @@ interface IconButtonProps extends Omit<ButtonProps, "aria-label" | "children" |
|
|
|
22
24
|
declare function IconButton({
|
|
23
25
|
children,
|
|
24
26
|
label,
|
|
27
|
+
responsiveLabel,
|
|
25
28
|
size,
|
|
26
29
|
tooltip,
|
|
27
30
|
tooltipSide,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { findCatalogMcpServerCard, getMcpServerIconSrc } from "./utils/mcp-server-catalog.js";
|
|
2
2
|
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
3
|
-
import { C as FolderIcon, D as LinkIcon, K as SpinnerIcon, L as PauseIcon, P as MonitorIcon, S as FileIcon, T as InfoIcon, _ as DotIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, j as MessageSquareIcon, p as ChevronRightIcon, u as CalendarIcon } from "./icons-cuEtsgj9.js";
|
|
4
3
|
import { Collapsible } from "./components/foundations/Collapsible.js";
|
|
4
|
+
import { C as FolderIcon, D as LinkIcon, K as SpinnerIcon, L as PauseIcon, P as MonitorIcon, S as FileIcon, T as InfoIcon, _ as DotIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, j as MessageSquareIcon, nt as XIcon, p as ChevronRightIcon, u as CalendarIcon } from "./icons-CeGfXO21.js";
|
|
5
5
|
import { Button } from "./components/foundations/Button.js";
|
|
6
|
+
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./components/ai-sdk/AgentAttention.js";
|
|
6
7
|
import { Tooltip } from "./components/foundations/Tooltip.js";
|
|
7
|
-
import { EmptyState } from "./components/foundations/EmptyState.js";
|
|
8
8
|
import { Avatar } from "./components/foundations/Avatar.js";
|
|
9
|
+
import { CorrespondentName, correspondentHandleLabel } from "./components/ai-sdk/Correspondent.js";
|
|
10
|
+
import { EmptyState } from "./components/foundations/EmptyState.js";
|
|
11
|
+
import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
|
|
9
12
|
import { AppIcon } from "./components/foundations/AppIcon.js";
|
|
10
13
|
import { LinkButton } from "./components/foundations/LinkButton.js";
|
|
11
14
|
import { getThinkExecutionRunStatus } from "./components/agents-sdk/ThinkExecutionRun.js";
|
|
12
|
-
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./components/ai-sdk/AgentAttention.js";
|
|
13
|
-
import { CorrespondentName, correspondentHandleLabel } from "./components/ai-sdk/Correspondent.js";
|
|
14
15
|
import * as React from "react";
|
|
15
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
17
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -137,7 +138,8 @@ function EmployeePresence({ employee }) {
|
|
|
137
138
|
return /* @__PURE__ */ jsx("span", {
|
|
138
139
|
className: "manager-office__nav-status",
|
|
139
140
|
"data-status": employee.status,
|
|
140
|
-
"aria-hidden": "true"
|
|
141
|
+
"aria-hidden": "true",
|
|
142
|
+
children: employee.status === "needs-you" || employee.status === "issue" ? /* @__PURE__ */ jsx(WarningIcon, {}) : employee.status === "unavailable" ? /* @__PURE__ */ jsx(XIcon, {}) : employee.status === "working" || employee.status === "connecting" ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : employee.status === "offline" ? /* @__PURE__ */ jsx(MonitorIcon, {}) : /* @__PURE__ */ jsx(PauseIcon, {})
|
|
141
143
|
});
|
|
142
144
|
}
|
|
143
145
|
/**
|
|
@@ -520,7 +522,7 @@ function ManagerOfficeSidebar({ className, closeSidebarOnCompact, content, emplo
|
|
|
520
522
|
children: [
|
|
521
523
|
/* @__PURE__ */ jsxs("div", {
|
|
522
524
|
className: "manager-office__sidebar-heading",
|
|
523
|
-
children: [
|
|
525
|
+
children: [/* @__PURE__ */ jsx("strong", { children: "Workforce" }), officeActions ? /* @__PURE__ */ jsx("span", {
|
|
524
526
|
className: "manager-office__sidebar-actions",
|
|
525
527
|
children: officeActions
|
|
526
528
|
}) : null]
|
|
@@ -1044,12 +1046,15 @@ function ManagerOfficeChannels({ className, ...props }) {
|
|
|
1044
1046
|
const employee = useEmployee();
|
|
1045
1047
|
return /* @__PURE__ */ jsxs("section", {
|
|
1046
1048
|
...props,
|
|
1047
|
-
className: cx("manager-office__section", className),
|
|
1048
|
-
children: [/* @__PURE__ */ jsx(
|
|
1049
|
-
className: "manager-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1049
|
+
className: cx("manager-office__section", "manager-office__channels", className),
|
|
1050
|
+
children: [/* @__PURE__ */ jsx(AppTopBar.Root, {
|
|
1051
|
+
className: "manager-office__channels-header",
|
|
1052
|
+
"aria-label": "Channels controls",
|
|
1053
|
+
titleAlign: "start",
|
|
1054
|
+
children: /* @__PURE__ */ jsxs(AppTopBar.Title, {
|
|
1055
|
+
className: "manager-office__channels-title",
|
|
1056
|
+
render: /* @__PURE__ */ jsx("h2", { "aria-label": "Channels" }),
|
|
1057
|
+
children: [/* @__PURE__ */ jsx(LinkIcon, { "aria-hidden": "true" }), "Channels"]
|
|
1053
1058
|
})
|
|
1054
1059
|
}), /* @__PURE__ */ jsx("div", {
|
|
1055
1060
|
className: "manager-office__section-content",
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { l as DialogProps } from "./Dialog-88GF7_Th.js";
|
|
2
|
+
import { o as McpServerCard } from "./mcp-server-catalog-D9p4gGeJ.js";
|
|
3
|
+
import { r as McpConnectorFormValues } from "./McpConnectorForm--HB0MEGC.js";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { MCPServersState } from "agents";
|
|
6
|
+
|
|
7
|
+
//#region src/components/agents-sdk/McpPluginCatalog.d.ts
|
|
8
|
+
/** Optional plugin-specific copy layered over the canonical MCP server card. */
|
|
9
|
+
interface McpPluginDetails {
|
|
10
|
+
developerName?: string;
|
|
11
|
+
marketplaceName?: string;
|
|
12
|
+
longDescription?: string;
|
|
13
|
+
capabilities?: readonly string[];
|
|
14
|
+
skills?: readonly string[];
|
|
15
|
+
}
|
|
16
|
+
interface McpPluginCatalogProps extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
|
|
17
|
+
/** Canonical connector cards. The directory does not create a second plugin registry. */
|
|
18
|
+
servers: readonly McpServerCard[];
|
|
19
|
+
/** Upstream Agents MCP state used to project connected and recovery states. */
|
|
20
|
+
mcp?: MCPServersState;
|
|
21
|
+
/** Optional plugin metadata keyed by the canonical server ID. */
|
|
22
|
+
detailsByServerId?: Readonly<Record<string, McpPluginDetails | undefined>>;
|
|
23
|
+
/** Server IDs promoted into the Featured section, in display order. */
|
|
24
|
+
featuredServerIds?: readonly string[];
|
|
25
|
+
/** Host product name paired with the plugin in the connection dialog. */
|
|
26
|
+
brandName?: string;
|
|
27
|
+
/** Host product mark paired with the plugin in the connection dialog. */
|
|
28
|
+
brandLogo?: React.ReactNode;
|
|
29
|
+
/** Product-authored trust and data-sharing copy. Pass null to omit it. */
|
|
30
|
+
disclosure?: React.ReactNode;
|
|
31
|
+
/** Starts or recovers the existing MCP connection path. */
|
|
32
|
+
onConnect?: (server: McpServerCard) => void | Promise<void>;
|
|
33
|
+
/** Removes the exact upstream MCP entry. */
|
|
34
|
+
onDisconnect?: (serverId: string) => void | Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* Connects a user-supplied MCP server. Providing it puts the "Custom
|
|
37
|
+
* plugin" action in the bar, opening the shared connector setup dialog.
|
|
38
|
+
*/
|
|
39
|
+
onAddCustom?: (values: McpConnectorFormValues) => void | Promise<void>;
|
|
40
|
+
/** Accessible name only — the hosting tab or icon is the visible title. */
|
|
41
|
+
heading?: React.ReactNode;
|
|
42
|
+
/** Accessible label and placeholder for the plugin filter. */
|
|
43
|
+
searchLabel?: string;
|
|
44
|
+
/** Content shown when no plugins match the current filter. */
|
|
45
|
+
emptyMessage?: React.ReactNode;
|
|
46
|
+
}
|
|
47
|
+
interface McpPluginDetailsDialogProps {
|
|
48
|
+
/** Selected canonical server card. Passing null closes the dialog. */
|
|
49
|
+
server: McpServerCard | null;
|
|
50
|
+
details?: McpPluginDetails;
|
|
51
|
+
mcp?: MCPServersState;
|
|
52
|
+
brandName?: string;
|
|
53
|
+
brandLogo?: React.ReactNode;
|
|
54
|
+
disclosure?: React.ReactNode;
|
|
55
|
+
onConnect?: (server: McpServerCard) => void | Promise<void>;
|
|
56
|
+
onDisconnect?: (serverId: string) => void | Promise<void>;
|
|
57
|
+
onOpenChange: NonNullable<DialogProps["onOpenChange"]>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Searchable plugin directory backed by the same MCP cards and live Agents
|
|
61
|
+
* state as {@link McpServerPicker}. Selecting a row opens the shared details
|
|
62
|
+
* dialog; connecting still delegates to the host's existing MCP/OAuth path.
|
|
63
|
+
*/
|
|
64
|
+
declare function McpPluginCatalog({
|
|
65
|
+
servers,
|
|
66
|
+
mcp,
|
|
67
|
+
detailsByServerId,
|
|
68
|
+
featuredServerIds,
|
|
69
|
+
brandName,
|
|
70
|
+
brandLogo,
|
|
71
|
+
disclosure,
|
|
72
|
+
onConnect,
|
|
73
|
+
onDisconnect,
|
|
74
|
+
onAddCustom,
|
|
75
|
+
heading,
|
|
76
|
+
searchLabel,
|
|
77
|
+
emptyMessage,
|
|
78
|
+
className,
|
|
79
|
+
...props
|
|
80
|
+
}: McpPluginCatalogProps): React.JSX.Element;
|
|
81
|
+
/** Reference-derived plugin detail surface without a parallel install state. */
|
|
82
|
+
declare function McpPluginDetailsDialog({
|
|
83
|
+
server,
|
|
84
|
+
details,
|
|
85
|
+
mcp,
|
|
86
|
+
brandName,
|
|
87
|
+
brandLogo,
|
|
88
|
+
disclosure,
|
|
89
|
+
onConnect,
|
|
90
|
+
onDisconnect,
|
|
91
|
+
onOpenChange
|
|
92
|
+
}: McpPluginDetailsDialogProps): React.JSX.Element;
|
|
93
|
+
//#endregion
|
|
94
|
+
export { McpPluginDetailsDialogProps as a, McpPluginDetailsDialog as i, McpPluginCatalogProps as n, McpPluginDetails as r, McpPluginCatalog as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as IconButtonProps } from "./IconButton-
|
|
2
|
-
import { t as CopyButtonProps } from "./copy-button-
|
|
1
|
+
import { n as IconButtonProps } from "./IconButton-CAlFVb2L.js";
|
|
2
|
+
import { t as CopyButtonProps } from "./copy-button-CJYYgCIU.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { FileUIPart, UIMessage } from "ai";
|
|
5
5
|
import { StreamdownProps } from "streamdown";
|
|
@@ -5,6 +5,8 @@ import * as React from "react";
|
|
|
5
5
|
interface ResponsiveSidebarShellControls {
|
|
6
6
|
/** The shell's current container layout, shared by in-shell and portalled controls. */
|
|
7
7
|
compact: boolean;
|
|
8
|
+
/** Whether the main content needs compact controls after accounting for the sidebar. */
|
|
9
|
+
contentCompact: boolean;
|
|
8
10
|
/** Close the sidebar and move focus to the main content. */
|
|
9
11
|
closeSidebar: () => void;
|
|
10
12
|
/** Close only when the shell is currently using its compact drawer layout. */
|
|
@@ -30,7 +32,7 @@ interface AppBarSlots {
|
|
|
30
32
|
};
|
|
31
33
|
/** App-owned leading navigation that owns the leading slot at every width. */
|
|
32
34
|
leading?: React.ReactNode;
|
|
33
|
-
/**
|
|
35
|
+
/** Navigation for compact main content. Replaces back/leading and the drawer trigger only while the main column is compact. */
|
|
34
36
|
compactLeading?: React.ReactNode;
|
|
35
37
|
/** Bar title content. Hidden at compact widths when `compactTitleTrigger` stands in. */
|
|
36
38
|
title?: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import { B as PlusIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon } from "./icons-
|
|
3
|
-
import { Button } from "./components/foundations/Button.js";
|
|
2
|
+
import { B as PlusIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon } from "./icons-CeGfXO21.js";
|
|
4
3
|
import { Menu } from "./components/foundations/Menu.js";
|
|
4
|
+
import { IconButton } from "./components/foundations/IconButton.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/_internal/menu-disclosure-group.tsx
|
|
@@ -53,14 +53,15 @@ function SetupChecklistGroup({ label, entries, defaultOpen = false, onSelect })
|
|
|
53
53
|
/** Progress-aware tray trigger opening the checklist in its own menu. */
|
|
54
54
|
function SetupChecklistAction({ actionLabel, label, entries, onSelect }) {
|
|
55
55
|
const completed = entries.filter((entry) => entry.complete).length;
|
|
56
|
-
return /* @__PURE__ */ jsxs(Menu.Root, { children: [/* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ jsxs(Menu.Root, { children: [/* @__PURE__ */ jsx(IconButton, {
|
|
57
57
|
type: "button",
|
|
58
58
|
variant: "ghost",
|
|
59
59
|
color: "neutral",
|
|
60
60
|
size: "sm",
|
|
61
|
-
|
|
61
|
+
label: `${actionLabel} — ${completed} of ${entries.length} set up`,
|
|
62
|
+
responsiveLabel: actionLabel,
|
|
62
63
|
render: /* @__PURE__ */ jsx(Menu.Trigger, { unstyled: true }),
|
|
63
|
-
children:
|
|
64
|
+
children: completed === entries.length ? /* @__PURE__ */ jsx(CheckIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx(WarningIcon, { "aria-hidden": "true" })
|
|
64
65
|
}), /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
65
66
|
side: "bottom",
|
|
66
67
|
align: "start",
|
|
@@ -56,6 +56,8 @@ interface ThinkThreadPickerProps<Thread extends ThinkThreadItem = ThinkThreadIte
|
|
|
56
56
|
onDelete?: (thread: Thread) => void | Promise<void>;
|
|
57
57
|
/** Visible heading for the roster. */
|
|
58
58
|
title?: React.ReactNode;
|
|
59
|
+
/** Controls placed after the new-thread action in the shared roster header. */
|
|
60
|
+
headerActions?: React.ReactNode;
|
|
59
61
|
/** Accessible label for the list navigation. */
|
|
60
62
|
"aria-label"?: string;
|
|
61
63
|
}
|
|
@@ -81,6 +83,7 @@ declare function ThinkThreadPicker<Thread extends ThinkThreadItem>({
|
|
|
81
83
|
onDelete,
|
|
82
84
|
className,
|
|
83
85
|
title,
|
|
86
|
+
headerActions,
|
|
84
87
|
"aria-label": ariaLabel,
|
|
85
88
|
ref,
|
|
86
89
|
...props
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as WorkspaceMediaInfo, i as WorkspaceFileState, r as WorkspaceFileAssetResolver, t as WorkspaceFileAsset } from "./WorkspaceFile-
|
|
1
|
+
import { a as WorkspaceMediaInfo, i as WorkspaceFileState, r as WorkspaceFileAssetResolver, t as WorkspaceFileAsset } from "./WorkspaceFile-19WP0EU1.js";
|
|
2
2
|
import { DataTag, QueryClient, QueryKey, UnusedSkipTokenOptions } from "@tanstack/react-query";
|
|
3
3
|
import { FileInfo, Workspace, WorkspaceFsLike } from "@cloudflare/shell";
|
|
4
4
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/_internal/WorkspaceConceptPanel.tsx
|
|
3
|
+
/** Shared workbench chrome keeps the title visible while its content scrolls. */
|
|
4
|
+
function WorkspaceConceptPanel({ heading, children, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
6
|
+
...props,
|
|
7
|
+
children: [/* @__PURE__ */ jsx("header", {
|
|
8
|
+
className: "workspace-concept-panel__header",
|
|
9
|
+
children: /* @__PURE__ */ jsx("h2", {
|
|
10
|
+
className: "workspace-concept-panel__title",
|
|
11
|
+
children: heading
|
|
12
|
+
})
|
|
13
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
14
|
+
className: "workspace-concept-panel__body",
|
|
15
|
+
children
|
|
16
|
+
})]
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { WorkspaceConceptPanel as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as EyeIcon, d as CheckIcon, et as WarningIcon, k as MaximizeIcon, m as CodeIcon, r as ArrowLeftIcon, v as DownloadIcon } from "./icons-
|
|
1
|
+
import { b as EyeIcon, d as CheckIcon, et as WarningIcon, k as MaximizeIcon, m as CodeIcon, r as ArrowLeftIcon, v as DownloadIcon } from "./icons-CeGfXO21.js";
|
|
2
2
|
import { i as formatClock } from "./format-COCyV98Z.js";
|
|
3
|
+
import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-Dw1z6jc8.js";
|
|
3
4
|
import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
|
|
4
|
-
import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "./CodeBlock-g8sADidM.js";
|
|
5
5
|
import { inferWorkspaceLanguage, inferWorkspaceMedia, isWorkspaceMarkdownPath, isWorkspaceSkillPath, parseWorkspaceSkill } from "./components/agents-sdk/WorkspaceFile.js";
|
|
6
6
|
import { i as useWorkspaceNavigationContext } from "./WorkspaceLink-BYZG-V_I.js";
|
|
7
7
|
import { useWorkspaceNavigationRestoration } from "./components/agents-sdk/WorkspaceNavigationRestoration.js";
|
|
@@ -546,6 +546,7 @@ function WorkspaceFileView({ appearance = "contained", file, path, isLoading, is
|
|
|
546
546
|
path,
|
|
547
547
|
leading: workspaceNavigation ? /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
548
548
|
label: "Back to workspace",
|
|
549
|
+
"data-workspace-back": "",
|
|
549
550
|
render: workspaceNavigation.navigation.renderLink({ kind: "files" }),
|
|
550
551
|
children: /* @__PURE__ */ jsx(ArrowLeftIcon, { "aria-hidden": "true" })
|
|
551
552
|
}) : leading,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/agents-sdk/WorkspaceMountManager.d.ts
|
|
4
|
+
type WorkspaceMountPermission = "granted" | "prompt" | "denied" | "unavailable";
|
|
5
|
+
interface WorkspaceMountItem {
|
|
6
|
+
id: string;
|
|
7
|
+
path: string;
|
|
8
|
+
permission: WorkspaceMountPermission;
|
|
9
|
+
}
|
|
10
|
+
interface WorkspaceMountManagerProps {
|
|
11
|
+
mounts: readonly WorkspaceMountItem[];
|
|
12
|
+
adding?: boolean;
|
|
13
|
+
busyMountId?: string | null;
|
|
14
|
+
error?: React.ReactNode;
|
|
15
|
+
onAdd: () => void;
|
|
16
|
+
onReconnect: (mount: WorkspaceMountItem) => void;
|
|
17
|
+
onRemove: (mount: WorkspaceMountItem) => void;
|
|
18
|
+
/** Caller-owned button, including its accessible name and optional toolbar composition. */
|
|
19
|
+
trigger: React.ReactElement;
|
|
20
|
+
}
|
|
21
|
+
/** Controlled local-mount presentation; native handles and persistence stay in the host. */
|
|
22
|
+
declare function WorkspaceMountManager({
|
|
23
|
+
mounts,
|
|
24
|
+
adding,
|
|
25
|
+
busyMountId,
|
|
26
|
+
error,
|
|
27
|
+
onAdd,
|
|
28
|
+
onReconnect,
|
|
29
|
+
onRemove,
|
|
30
|
+
trigger
|
|
31
|
+
}: WorkspaceMountManagerProps): React.JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { WorkspaceMountPermission as i, WorkspaceMountManager as n, WorkspaceMountManagerProps as r, WorkspaceMountItem as t };
|