@mcp-b/react-components 0.74.0 → 0.75.1

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.
@@ -1,2 +1,2 @@
1
- import { C as isThinkChatActivityPart, E as thinkToolOutcome, S as isSkillToolPart, T as readFollowUpReceipt, _ as isFetchToolPart, a as SessionContextToolName, b as isSessionContextToolFailure, c as ThinkBashToolOutput, d as ThinkToolOutcome, f as ThinkWorkspaceToolName, g as isExecuteToolPart, h as isBrowserToolPart, i as FollowUpReceipt, l as ThinkBashToolPart, m as displayUrl, n as ExecuteToolPart, o as SessionContextToolPart, p as WorkspaceToolPart, r as FetchToolPart, s as SkillToolPart, t as BrowserToolPart, u as ThinkChatPart, v as isPartFailed, w as isWorkspaceToolPart, x as isSessionContextToolPart, y as isPartWorking } from "../../ThinkChatToolParts-BrntWlpa.js";
2
- export { BrowserToolPart, ExecuteToolPart, FetchToolPart, FollowUpReceipt, SessionContextToolName, SessionContextToolPart, SkillToolPart, ThinkBashToolOutput, ThinkBashToolPart, ThinkChatPart, ThinkToolOutcome, ThinkWorkspaceToolName, WorkspaceToolPart, displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart, readFollowUpReceipt, thinkToolOutcome };
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-kV8Ayg16.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,22 +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
- "write",
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
  }
17
- const SKILL_TOOL_NAMES = /* @__PURE__ */ new Set([
18
- "activate_skill",
19
- "read_skill_resource",
20
- "run_skill_script"
21
- ]);
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
+ return "error" in part.output ? part.output.error : void 0;
23
+ }
24
+ const SKILL_TOOL_NAMES = /* @__PURE__ */ new Set(["activate_skill", "read_skill_resource"]);
22
25
  function isSkillToolPart(part) {
23
26
  return isStaticToolUIPart(part) && SKILL_TOOL_NAMES.has(getStaticToolName(part));
24
27
  }
@@ -134,6 +137,7 @@ function thinkToolOutcome(part) {
134
137
  if (part.state === "output-denied" || part.state === "approval-responded" && !part.approval.approved) return "denied";
135
138
  if (!isStaticToolUIPart(part)) return void 0;
136
139
  if (part.state !== "output-available" || part.preliminary) return void 0;
140
+ if (isWorkspaceToolPart(part)) return workspaceToolError(part) === void 0 ? void 0 : "failed";
137
141
  const name = getToolName(part);
138
142
  const output = part.output;
139
143
  if (!isRecord(output)) return void 0;
@@ -145,4 +149,4 @@ function displayUrl(url) {
145
149
  return url ? url.replace(/^https?:\/\//, "") : "";
146
150
  }
147
151
  //#endregion
148
- export { displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart, readFollowUpReceipt, thinkToolOutcome };
152
+ export { displayUrl, isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartFailed, isPartWorking, isSessionContextToolFailure, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart, readFollowUpReceipt, thinkToolOutcome, workspaceToolError };
@@ -1,27 +1,2 @@
1
- import * as React from "react";
2
- //#region src/components/extension/ConversationTabPicker.d.ts
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 SkillDescriptor[];
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.74.0",
3
+ "version": "0.75.1",
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.74.0"
58
+ "@mcp-b/design-tokens": "0.75.1"
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-fce39aefd5b8/cloudflare-codemode-0.5.3.tgz",
63
- "@cloudflare/shell": "https://github.com/WebMCP-org/do-runtime/releases/download/rook-sdk-fce39aefd5b8/cloudflare-shell-0.4.3.tgz",
64
- "@cloudflare/think": "https://github.com/WebMCP-org/do-runtime/releases/download/rook-sdk-fce39aefd5b8/cloudflare-think-0.20.1.tgz",
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-fce39aefd5b8/agents-0.27.0.tgz",
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.3",
103
- "@cloudflare/shell": "^0.4.3",
104
- "@cloudflare/think": "^0.20.1",
105
- "@cloudflare/workers-types": "^5.20260715.1",
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.27.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
  },