@mcp-b/react-components 0.74.0 → 0.75.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/ConversationTabPicker-C_hMt0GY.d.ts +28 -0
- package/dist/{ThinkChatActivity-C7xnO0Fx.d.ts → ThinkChatActivity-Cb47dKAW.d.ts} +2 -2
- package/dist/{ThinkChatActivitySummary-Dh4Av7x_.d.ts → ThinkChatActivitySummary-Hvur11FV.d.ts} +1 -1
- package/dist/{ThinkChatToolParts-BrntWlpa.d.ts → ThinkChatToolParts-vSzcCbQW.d.ts} +144 -25
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +13 -4
- package/dist/components/agents-sdk/PromptInputCommands.js +4 -6
- package/dist/components/agents-sdk/ThinkChat.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +17 -10
- package/dist/components/agents-sdk/ThinkChatToolPanels.d.ts +5 -5
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +498 -254
- package/dist/components/agents-sdk/ThinkChatToolParts.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChatToolParts.js +13 -4
- package/dist/components/extension/ConversationTabPicker.d.ts +2 -27
- package/dist/components/extension/FirstRunSetup.d.ts +2 -2
- package/package.json +16 -11
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { BrowserToolPart, ExecuteToolPart, FetchToolPart, FollowUpReceipt, SessionContextToolName, SessionContextToolPart,
|
|
1
|
+
import { C as isWorkspaceToolPart, E as workspaceToolError, S as isThinkChatActivityPart, T as thinkToolOutcome, _ as isPartFailed, a as SessionContextToolName, b as isSessionContextToolPart, c as SkillToolPart, d as ThinkWorkspaceToolName, f as WorkspaceToolPart, g as isFetchToolPart, h as isExecuteToolPart, i as FollowUpReceipt, l as ThinkChatPart, m as isBrowserToolPart, n as ExecuteToolPart, o as SessionContextToolPart, p as displayUrl, r as FetchToolPart, s as ShellToolPart, t as BrowserToolPart, u as ThinkToolOutcome, v as isPartWorking, w as readFollowUpReceipt, x as isSkillToolPart, y as isSessionContextToolFailure } from "../../ThinkChatToolParts-vSzcCbQW.js";
|
|
2
|
+
export { BrowserToolPart, ExecuteToolPart, FetchToolPart, FollowUpReceipt, SessionContextToolName, SessionContextToolPart, ShellToolPart, SkillToolPart, ThinkChatPart, ThinkToolOutcome, ThinkWorkspaceToolName, WorkspaceToolPart, displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart, readFollowUpReceipt, thinkToolOutcome, workspaceToolError };
|
|
@@ -3,17 +3,25 @@ import { getStaticToolName, getToolName, isReasoningUIPart, isStaticToolUIPart,
|
|
|
3
3
|
//#region src/components/agents-sdk/ThinkChatToolParts.ts
|
|
4
4
|
const WORKSPACE_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
5
5
|
"read",
|
|
6
|
-
"
|
|
7
|
-
"edit",
|
|
8
|
-
"list",
|
|
6
|
+
"ls",
|
|
9
7
|
"find",
|
|
10
8
|
"grep",
|
|
9
|
+
"write",
|
|
10
|
+
"edit",
|
|
11
11
|
"delete",
|
|
12
|
+
"exec",
|
|
13
|
+
"publish",
|
|
12
14
|
"bash"
|
|
13
15
|
]);
|
|
14
16
|
function isWorkspaceToolPart(part) {
|
|
15
17
|
return isStaticToolUIPart(part) && WORKSPACE_TOOL_NAMES.has(getStaticToolName(part));
|
|
16
18
|
}
|
|
19
|
+
/** The `{ error }` (or publish's `{ ok: false, error }`) a settled workspace tool returned. */
|
|
20
|
+
function workspaceToolError(part) {
|
|
21
|
+
if (part.state !== "output-available" || part.preliminary) return void 0;
|
|
22
|
+
const output = part.output;
|
|
23
|
+
return isRecord(output) && typeof output.error === "string" ? output.error : void 0;
|
|
24
|
+
}
|
|
17
25
|
const SKILL_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
18
26
|
"activate_skill",
|
|
19
27
|
"read_skill_resource",
|
|
@@ -138,6 +146,7 @@ function thinkToolOutcome(part) {
|
|
|
138
146
|
const output = part.output;
|
|
139
147
|
if (!isRecord(output)) return void 0;
|
|
140
148
|
if (name === "execute" || name === "browser_execute") return output.status === "error" ? "failed" : void 0;
|
|
149
|
+
if (isWorkspaceToolPart(part)) return workspaceToolError(part) === void 0 ? void 0 : "failed";
|
|
141
150
|
if (name === "read_active_tab") return typeof output.error === "string" ? "failed" : void 0;
|
|
142
151
|
if ((name === "follow_up" || name === "scheduled_tasks" || name === "search_history" || name === "set_thread_title") && isThinkActionError(output)) return "failed";
|
|
143
152
|
}
|
|
@@ -145,4 +154,4 @@ function displayUrl(url) {
|
|
|
145
154
|
return url ? url.replace(/^https?:\/\//, "") : "";
|
|
146
155
|
}
|
|
147
156
|
//#endregion
|
|
148
|
-
export { displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart, readFollowUpReceipt, thinkToolOutcome };
|
|
157
|
+
export { displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart, readFollowUpReceipt, thinkToolOutcome, workspaceToolError };
|
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export type ConversationTabId = string | number;
|
|
4
|
-
export interface ConversationTabPickerItem {
|
|
5
|
-
id: ConversationTabId;
|
|
6
|
-
title?: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
iconSrc?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ConversationTabPickerProps<Tab extends ConversationTabPickerItem = ConversationTabPickerItem> {
|
|
11
|
-
/** Browser-enriched tabs already scoped to the current conversation. */
|
|
12
|
-
tabs: readonly Tab[];
|
|
13
|
-
/** Host-owned activation, such as Chrome tab/window focus. */
|
|
14
|
-
onSelect: (tab: Tab) => void | Promise<void>;
|
|
15
|
-
/** Maximum site marks shown in the collapsed trigger. */
|
|
16
|
-
maxVisible?: number;
|
|
17
|
-
/** Visible heading for the tab choices in the menu. */
|
|
18
|
-
groupLabel?: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Shared tab-menu presentation over host-resolved browser data.
|
|
22
|
-
*
|
|
23
|
-
* The browser adapter owns tab lookup and activation. This component owns URL
|
|
24
|
-
* labels, favicon fallbacks, menu state, and async activation feedback.
|
|
25
|
-
*/
|
|
26
|
-
export declare function ConversationTabPicker<Tab extends ConversationTabPickerItem>({ tabs, ...props }: ConversationTabPickerProps<Tab>): React.JSX.Element | null;
|
|
27
|
-
//#endregion
|
|
1
|
+
import { i as ConversationTabPickerProps, n as ConversationTabPicker, r as ConversationTabPickerItem, t as ConversationTabId } from "../../ConversationTabPicker-C_hMt0GY.js";
|
|
2
|
+
export { ConversationTabId, ConversationTabPicker, ConversationTabPickerItem, ConversationTabPickerProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l as WorkspaceAutomationSource, t as WorkspaceAutomation } from "../../WorkspaceAutomation-Dugk4RkK.js";
|
|
2
2
|
import { t as ThinkSchedule } from "../../ThinkSchedule-gDwDmWOF.js";
|
|
3
|
+
import { SkillSummary } from "../agents-sdk/PromptInputCommands.js";
|
|
3
4
|
import { WorkspaceCorrespondence } from "../agents-sdk/WorkspaceCorrespondence.js";
|
|
4
5
|
import { WorkspacePersonSource } from "../agents-sdk/WorkspacePerson.js";
|
|
5
6
|
import { WorkspaceProjectSource } from "../agents-sdk/WorkspaceProject.js";
|
|
6
7
|
import * as React from "react";
|
|
7
|
-
import { SkillDescriptor } from "agents/skills";
|
|
8
8
|
//#region src/components/extension/first-run/flow.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* Every screen of the first run, in order. `FirstRunStep` is derived from this
|
|
@@ -236,7 +236,7 @@ export interface FirstRunSetupProps extends Omit<React.HTMLAttributes<HTMLElemen
|
|
|
236
236
|
};
|
|
237
237
|
/** The skills the agent wrote during setup, from the person and their recurring work. */
|
|
238
238
|
skills: FirstRunWork<{
|
|
239
|
-
list: readonly
|
|
239
|
+
list: readonly SkillSummary[];
|
|
240
240
|
}>;
|
|
241
241
|
/** Whether the product is pinned to Chrome's toolbar. Pinning moves on by itself. */
|
|
242
242
|
pinned: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
4
4
|
"description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
|
|
5
5
|
"homepage": "https://design-system.sigvelo.com",
|
|
6
6
|
"bugs": {
|
|
@@ -55,13 +55,14 @@
|
|
|
55
55
|
"streamdown": "^2.7.0",
|
|
56
56
|
"unist-util-visit": "^5.1.0",
|
|
57
57
|
"yet-another-react-lightbox": "^3.32.2",
|
|
58
|
-
"@mcp-b/design-tokens": "0.
|
|
58
|
+
"@mcp-b/design-tokens": "0.75.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@ai-sdk/react": "^4.0.136",
|
|
62
|
-
"@cloudflare/codemode": "https://github.com/WebMCP-org/do-runtime/releases/download/rook-sdk-
|
|
63
|
-
"@cloudflare/
|
|
64
|
-
"@cloudflare/
|
|
62
|
+
"@cloudflare/codemode": "https://github.com/WebMCP-org/do-runtime/releases/download/rook-sdk-69eb6a0040fe/cloudflare-codemode-0.5.6.tgz",
|
|
63
|
+
"@cloudflare/computer": "0.8.0",
|
|
64
|
+
"@cloudflare/shell": "https://github.com/WebMCP-org/do-runtime/releases/download/rook-sdk-69eb6a0040fe/cloudflare-shell-0.5.0.tgz",
|
|
65
|
+
"@cloudflare/think": "https://github.com/WebMCP-org/do-runtime/releases/download/rook-sdk-69eb6a0040fe/cloudflare-think-0.23.0.tgz",
|
|
65
66
|
"@cloudflare/workers-types": "^5.20261008.1",
|
|
66
67
|
"@storybook/addon-a11y": "10.5.7",
|
|
67
68
|
"@storybook/addon-docs": "10.5.7",
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"@vitest/browser-playwright": "^4.1.11",
|
|
82
83
|
"@vitest/coverage-v8": "^4.1.11",
|
|
83
84
|
"@vitest/mocker": "^4.1.11",
|
|
84
|
-
"agents": "https://github.com/WebMCP-org/do-runtime/releases/download/rook-sdk-
|
|
85
|
+
"agents": "https://github.com/WebMCP-org/do-runtime/releases/download/rook-sdk-69eb6a0040fe/agents-0.32.0.tgz",
|
|
85
86
|
"ai": "^7.0.133",
|
|
86
87
|
"axe-core": "^4.13.0",
|
|
87
88
|
"cloudflare": "^7.3.0",
|
|
@@ -99,12 +100,13 @@
|
|
|
99
100
|
},
|
|
100
101
|
"peerDependencies": {
|
|
101
102
|
"@ai-sdk/react": "^4.0.136",
|
|
102
|
-
"@cloudflare/codemode": "^0.5.
|
|
103
|
-
"@cloudflare/
|
|
104
|
-
"@cloudflare/
|
|
105
|
-
"@cloudflare/
|
|
103
|
+
"@cloudflare/codemode": "^0.5.6",
|
|
104
|
+
"@cloudflare/computer": "^0.8.0",
|
|
105
|
+
"@cloudflare/shell": "^0.5.0",
|
|
106
|
+
"@cloudflare/think": "^0.23.0",
|
|
107
|
+
"@cloudflare/workers-types": "^5.20260921.1",
|
|
106
108
|
"@tanstack/react-query": "^5.101.2",
|
|
107
|
-
"agents": "^0.
|
|
109
|
+
"agents": "^0.32.0",
|
|
108
110
|
"ai": "^7.0.133",
|
|
109
111
|
"cloudflare": "^7.0.0",
|
|
110
112
|
"react": "19.3.0 || 19.3.0-canary-711c445b-20260722",
|
|
@@ -117,6 +119,9 @@
|
|
|
117
119
|
"@cloudflare/codemode": {
|
|
118
120
|
"optional": true
|
|
119
121
|
},
|
|
122
|
+
"@cloudflare/computer": {
|
|
123
|
+
"optional": true
|
|
124
|
+
},
|
|
120
125
|
"@cloudflare/shell": {
|
|
121
126
|
"optional": true
|
|
122
127
|
},
|