@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,13 +1,12 @@
|
|
|
1
|
+
import { n as ResponsiveSidebarShell } from "../../ResponsiveSidebarShell-BTVPxLJK.js";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/agents-sdk/ManagerOffice.d.ts
|
|
4
5
|
type ManagerOfficeWorkStatus = "idle" | "running" | "attention" | "error" | "interrupted";
|
|
5
|
-
/**
|
|
6
|
-
* The rail already lists every employee, so there is no separate roster view:
|
|
7
|
-
* the office opens on the one thing that needs a person, and an employee is a
|
|
8
|
-
* selection in the rail rather than a page reached through a second list.
|
|
9
|
-
*/
|
|
6
|
+
/** The app-owned projection currently shown by the manager office. */
|
|
10
7
|
type ManagerOfficeView = {
|
|
8
|
+
kind: "dashboard";
|
|
9
|
+
} | {
|
|
11
10
|
kind: "attention";
|
|
12
11
|
} | {
|
|
13
12
|
kind: "employee";
|
|
@@ -40,6 +39,8 @@ interface ManagerOfficeWork {
|
|
|
40
39
|
title: string;
|
|
41
40
|
/** Canonical thread lifecycle status. */
|
|
42
41
|
status: ManagerOfficeWorkStatus;
|
|
42
|
+
/** Concise result shown to managers when the work is ready for review. */
|
|
43
|
+
summary?: string;
|
|
43
44
|
/** Unix timestamp in milliseconds of the latest lifecycle transition. */
|
|
44
45
|
updatedAt: number;
|
|
45
46
|
}
|
|
@@ -75,6 +76,30 @@ interface ManagerOfficeChannel {
|
|
|
75
76
|
*/
|
|
76
77
|
icon?: React.ReactNode;
|
|
77
78
|
}
|
|
79
|
+
interface ManagerOfficeBrowserPreview {
|
|
80
|
+
/** Title of the tab currently visible on the employee's browser. */
|
|
81
|
+
title: string;
|
|
82
|
+
/** Display-safe URL supplied by the host. */
|
|
83
|
+
url: string;
|
|
84
|
+
}
|
|
85
|
+
interface ManagerOfficeAnalyticsPoint {
|
|
86
|
+
/** Start of the reporting bucket as a Unix timestamp in milliseconds. */
|
|
87
|
+
timestamp: number;
|
|
88
|
+
/** Outcomes completed during this bucket. */
|
|
89
|
+
completed: number;
|
|
90
|
+
/** Employee runtime consumed during this bucket. */
|
|
91
|
+
workloadHours: number;
|
|
92
|
+
/** Host-estimated inference and tool cost during this bucket. */
|
|
93
|
+
estimatedCost: number;
|
|
94
|
+
}
|
|
95
|
+
interface ManagerOfficeEmployeeAnalytics {
|
|
96
|
+
employeeId: string;
|
|
97
|
+
points: readonly ManagerOfficeAnalyticsPoint[];
|
|
98
|
+
}
|
|
99
|
+
interface ManagerOfficeReportSelection {
|
|
100
|
+
employeeIds: readonly string[];
|
|
101
|
+
rangeDays: 7 | 30 | 90;
|
|
102
|
+
}
|
|
78
103
|
interface ManagerOfficeEmployeeBase {
|
|
79
104
|
/** Stable employee identity used by routes and list keys. */
|
|
80
105
|
id: string;
|
|
@@ -94,6 +119,8 @@ interface ManagerOfficeConnectedEmployee extends ManagerOfficeEmployeeBase {
|
|
|
94
119
|
routines: readonly ManagerOfficeRoutine[];
|
|
95
120
|
/** Every service the employee reads from or acts on. Empty is meaningful. */
|
|
96
121
|
channels: readonly ManagerOfficeChannel[];
|
|
122
|
+
/** The live tab the manager can glance at from the office. */
|
|
123
|
+
browserPreview?: ManagerOfficeBrowserPreview;
|
|
97
124
|
}
|
|
98
125
|
interface ManagerOfficeDisconnectedEmployee extends ManagerOfficeEmployeeBase {
|
|
99
126
|
status: "offline" | "connecting" | "unavailable";
|
|
@@ -127,6 +154,9 @@ type ManagerOfficeDestination = {
|
|
|
127
154
|
} | {
|
|
128
155
|
kind: "new-work";
|
|
129
156
|
employee: ManagerOfficeConnectedEmployee;
|
|
157
|
+
} | {
|
|
158
|
+
kind: "new-routine";
|
|
159
|
+
employee: ManagerOfficeConnectedEmployee;
|
|
130
160
|
} | {
|
|
131
161
|
kind: "workspace";
|
|
132
162
|
employee: ManagerOfficeConnectedEmployee;
|
|
@@ -138,8 +168,10 @@ interface ManagerOfficeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
138
168
|
employees: readonly ManagerOfficeEmployee[];
|
|
139
169
|
/** Returns an app-owned route element for every office destination. */
|
|
140
170
|
renderLink: (destination: ManagerOfficeDestination) => React.ReactElement;
|
|
141
|
-
/** Add/sign-out controls rendered in the office rail. */
|
|
171
|
+
/** Add/sign-out controls rendered in the app bar or office rail. */
|
|
142
172
|
officeActions?: React.ReactNode;
|
|
173
|
+
/** Place the wide-layout Workforce toggle. Defaults to the Workforce sidebar. */
|
|
174
|
+
sidebarTogglePlacement?: React.ComponentProps<typeof ResponsiveSidebarShell>["sidebarTogglePlacement"];
|
|
143
175
|
/**
|
|
144
176
|
* Actions rendered for the selected connected employee. Compose interactive
|
|
145
177
|
* controls through `AppTopBar.Control` so they join the toolbar.
|
|
@@ -147,22 +179,84 @@ interface ManagerOfficeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
147
179
|
renderEmployeeActions?: (employee: ManagerOfficeConnectedEmployee) => React.ReactNode;
|
|
148
180
|
/** Action shown in the empty office. */
|
|
149
181
|
emptyOfficeAction?: React.ReactNode;
|
|
182
|
+
/** Per-employee reporting buckets used by the executive analytics view. */
|
|
183
|
+
analytics?: readonly ManagerOfficeEmployeeAnalytics[];
|
|
184
|
+
/** Currency used for cost estimates. Defaults to USD. */
|
|
185
|
+
analyticsCurrency?: string;
|
|
186
|
+
/** Export the exact filtered portfolio and time range currently on screen. */
|
|
187
|
+
onExportReport?: (selection: ManagerOfficeReportSelection) => void;
|
|
150
188
|
}
|
|
189
|
+
interface ManagerOfficeSidebarProps extends Omit<React.HTMLAttributes<HTMLElement>, "content"> {
|
|
190
|
+
/** Close the office drawer after a compact-width selection. */
|
|
191
|
+
closeSidebarOnCompact?: () => void;
|
|
192
|
+
/** Employees projected from their owning runtimes. */
|
|
193
|
+
employees: readonly ManagerOfficeEmployee[];
|
|
194
|
+
/** App-owned route element for an employee selection. */
|
|
195
|
+
renderLink: ManagerOfficeProps["renderLink"];
|
|
196
|
+
/** Add/sign-out/toggle controls rendered beside Workforce. */
|
|
197
|
+
officeActions?: React.ReactNode;
|
|
198
|
+
/** Employee whose row and optional nested content are active. */
|
|
199
|
+
selectedEmployeeId?: string | null;
|
|
200
|
+
/** App-specific selected-employee content shown after the switcher. */
|
|
201
|
+
content?: React.ReactNode;
|
|
202
|
+
/** Persistent sidebar action, such as starting a conversation with the selected employee. */
|
|
203
|
+
footer?: React.ReactNode;
|
|
204
|
+
}
|
|
205
|
+
type ManagerOfficeSidebarAlertProps = {
|
|
206
|
+
"aria-label"?: string;
|
|
207
|
+
className?: string;
|
|
208
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>; /** Primary actionable issue title. */
|
|
209
|
+
title: React.ReactNode; /** Quiet owning-work or source context. */
|
|
210
|
+
detail?: React.ReactNode;
|
|
211
|
+
} & ({
|
|
212
|
+
href: string;
|
|
213
|
+
render?: never;
|
|
214
|
+
} | {
|
|
215
|
+
render: React.ReactElement;
|
|
216
|
+
href?: never;
|
|
217
|
+
});
|
|
218
|
+
/** Dense nested action for an employee alert already signalled by the roster status. */
|
|
219
|
+
declare function ManagerOfficeSidebarAlert({
|
|
220
|
+
className,
|
|
221
|
+
detail,
|
|
222
|
+
title,
|
|
223
|
+
...props
|
|
224
|
+
}: ManagerOfficeSidebarAlertProps): React.JSX.Element;
|
|
225
|
+
/**
|
|
226
|
+
* Shared Manager Office rail. Stories and host shells may add employee-owned
|
|
227
|
+
* content, but the Workforce header, roster identity, status language, scrolling,
|
|
228
|
+
* and footer placement stay component-owned and therefore cannot drift.
|
|
229
|
+
*/
|
|
230
|
+
declare function ManagerOfficeSidebar({
|
|
231
|
+
className,
|
|
232
|
+
closeSidebarOnCompact,
|
|
233
|
+
content,
|
|
234
|
+
employees,
|
|
235
|
+
renderLink,
|
|
236
|
+
footer,
|
|
237
|
+
officeActions,
|
|
238
|
+
selectedEmployeeId,
|
|
239
|
+
...props
|
|
240
|
+
}: ManagerOfficeSidebarProps): React.JSX.Element;
|
|
151
241
|
/**
|
|
152
|
-
* Multi-employee manager office: aggregate handoffs, employee
|
|
153
|
-
* employee dossier. The consuming app owns authentication,
|
|
154
|
-
* routing, and the selected employee's full work surface.
|
|
242
|
+
* Multi-employee manager office: a dashboard, aggregate handoffs, employee
|
|
243
|
+
* roster, and one employee dossier. The consuming app owns authentication,
|
|
244
|
+
* Agent connections, routing, and the selected employee's full work surface.
|
|
155
245
|
*/
|
|
156
246
|
declare function ManagerOffice({
|
|
247
|
+
analytics,
|
|
248
|
+
analyticsCurrency,
|
|
157
249
|
className,
|
|
158
250
|
emptyOfficeAction,
|
|
159
251
|
employees,
|
|
160
252
|
renderLink,
|
|
161
253
|
officeActions,
|
|
254
|
+
onExportReport,
|
|
162
255
|
renderEmployeeActions,
|
|
256
|
+
sidebarTogglePlacement,
|
|
163
257
|
style,
|
|
164
258
|
view,
|
|
165
259
|
...props
|
|
166
260
|
}: ManagerOfficeProps): React.JSX.Element;
|
|
167
261
|
//#endregion
|
|
168
|
-
export { ManagerOffice, ManagerOfficeChannel, ManagerOfficeChannelDirection, ManagerOfficeChannelStatus, ManagerOfficeConnectedEmployee, ManagerOfficeDestination, ManagerOfficeDisconnectedEmployee, ManagerOfficeEmployee, ManagerOfficeEmployeeStatus, ManagerOfficeHandoff, ManagerOfficeProps, ManagerOfficeRoutine, ManagerOfficeView, ManagerOfficeWork, ManagerOfficeWorkStatus };
|
|
262
|
+
export { ManagerOffice, ManagerOfficeAnalyticsPoint, ManagerOfficeBrowserPreview, ManagerOfficeChannel, ManagerOfficeChannelDirection, ManagerOfficeChannelStatus, ManagerOfficeConnectedEmployee, ManagerOfficeDestination, ManagerOfficeDisconnectedEmployee, ManagerOfficeEmployee, ManagerOfficeEmployeeAnalytics, ManagerOfficeEmployeeStatus, ManagerOfficeHandoff, ManagerOfficeProps, ManagerOfficeReportSelection, ManagerOfficeRoutine, ManagerOfficeSidebar, ManagerOfficeSidebarAlert, ManagerOfficeSidebarAlertProps, ManagerOfficeSidebarProps, ManagerOfficeView, ManagerOfficeWork, ManagerOfficeWorkStatus };
|