@blade-hq/agent-react 2612.0.0-beta.41 → 2612.0.0-beta.44

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.
@@ -39834,8 +39834,8 @@ function UserMessageBubble({ message, className }) {
39834
39834
  } = extractTextAttachments(message.content);
39835
39835
  const trimmedClean = cleanText.trim();
39836
39836
  const pluginPills = message.refs?.length ? /* @__PURE__ */ jsx36("div", { className: "flex flex-wrap justify-end gap-1.5", "aria-label": "\u6D88\u606F\u5F15\u7528", children: message.refs.map((ref) => /* @__PURE__ */ jsx36("span", { className: "max-w-full truncate rounded-full border border-border bg-muted px-2.5 py-1 text-xs", children: ref.provider === "skill" ? `\u6280\u80FD \xB7 ${ref.label}` : ref.label }, ref.provider === "skill" ? `skill:${ref.id}` : `${ref.plugin}:${ref.server}:${ref.id}`)) }) : null;
39837
- const topicAssetPills = message.topic_asset_refs?.length ? /* @__PURE__ */ jsx36("div", { className: "flex max-w-full flex-wrap justify-end gap-1.5", "aria-label": "\u5F15\u7528\u7684\u4E3B\u9898\u8D44\u4EA7", children: message.topic_asset_refs.map((ref) => /* @__PURE__ */ jsxs31("span", { title: ref.path, className: "max-w-full truncate rounded-full border border-border bg-muted px-2.5 py-1 text-xs text-foreground", children: [
39838
- "\u4E3B\u9898\u8D44\u4EA7 \xB7 ",
39837
+ const topicAssetPills = message.topic_asset_refs?.length ? /* @__PURE__ */ jsx36("div", { className: "flex max-w-full flex-wrap justify-end gap-1.5", "aria-label": "\u5F15\u7528\u7684\u5DE5\u4F5C\u7A7A\u95F4\u8D44\u4EA7", children: message.topic_asset_refs.map((ref) => /* @__PURE__ */ jsxs31("span", { title: ref.path, className: "max-w-full truncate rounded-full border border-border bg-muted px-2.5 py-1 text-xs text-foreground", children: [
39838
+ "\u5DE5\u4F5C\u7A7A\u95F4\u8D44\u4EA7 \xB7 ",
39839
39839
  ref.path
39840
39840
  ] }, `${ref.topic_id}:${ref.path}`)) }) : null;
39841
39841
  const whatifParsed = trimmedClean && imageParts.length === 0 && fileParts.length === 0 && textAttachments.length === 0 ? parseWhatIfPrompt(cleanText) : null;
@@ -50277,8 +50277,8 @@ function TopicAssetSubmitDialog({ sessionId, topicId, path: path2, onClose, onSu
50277
50277
  client.chatGroups.listAssets(topicId)
50278
50278
  ]);
50279
50279
  const role = groups.find((item) => item.id === topicId)?.role;
50280
- if (session.chat_group_id !== topicId || session.viewer_role === "viewer") throw new Error("\u8FD9\u4E2A\u4F1A\u8BDD\u4E0D\u80FD\u63D0\u4EA4\u5230\u8BE5\u4E3B\u9898");
50281
- if (role !== "owner" && role !== "editor") throw new Error("\u4F60\u5728\u8FD9\u4E2A\u4E3B\u9898\u6CA1\u6709\u63D0\u4EA4\u6743\u9650");
50280
+ if (session.chat_group_id !== topicId || session.viewer_role === "viewer") throw new Error("\u8FD9\u4E2A\u4F1A\u8BDD\u4E0D\u80FD\u63D0\u4EA4\u5230\u8BE5\u5DE5\u4F5C\u7A7A\u95F4");
50281
+ if (role !== "owner" && role !== "editor") throw new Error("\u4F60\u5728\u8FD9\u4E2A\u5DE5\u4F5C\u7A7A\u95F4\u6CA1\u6709\u63D0\u4EA4\u6743\u9650");
50282
50282
  const folders = /* @__PURE__ */ new Set();
50283
50283
  for (const asset of result.items) {
50284
50284
  if (asset.is_dir) folders.add(asset.path);
@@ -50308,7 +50308,7 @@ function TopicAssetSubmitDialog({ sessionId, topicId, path: path2, onClose, onSu
50308
50308
  if (!open2 && !busy) onClose();
50309
50309
  }, children: /* @__PURE__ */ jsxs49(DialogContent, { className: "max-w-md", children: [
50310
50310
  /* @__PURE__ */ jsx56(DialogTitle, { children: "\u63D0\u4EA4\u5230\u8D44\u4EA7" }),
50311
- /* @__PURE__ */ jsx56(DialogDescription, { children: "\u5C06\u6587\u4EF6\u590D\u5236\u5230\u4E3B\u9898\u4F9B\u6210\u5458\u4F7F\u7528\uFF0C\u5DE5\u4F5C\u533A\u539F\u6587\u4EF6\u4F1A\u4FDD\u7559\u3002\u540C\u540D\u8D44\u4EA7\u4F1A\u88AB\u66FF\u6362\u3002" }),
50311
+ /* @__PURE__ */ jsx56(DialogDescription, { children: "\u5C06\u6587\u4EF6\u590D\u5236\u5230\u5DE5\u4F5C\u7A7A\u95F4\u4F9B\u6210\u5458\u4F7F\u7528\uFF0C\u5DE5\u4F5C\u533A\u539F\u6587\u4EF6\u4F1A\u4FDD\u7559\u3002\u540C\u540D\u8D44\u4EA7\u4F1A\u88AB\u66FF\u6362\u3002" }),
50312
50312
  /* @__PURE__ */ jsxs49("form", { onSubmit: (event) => {
50313
50313
  event.preventDefault();
50314
50314
  void submit();
@@ -50393,4 +50393,4 @@ use-stick-to-bottom/dist/StickToBottom.js:
50393
50393
  js-yaml/dist/js-yaml.mjs:
50394
50394
  (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
50395
50395
  */
50396
- //# sourceMappingURL=chunk-F7BR2KMK.js.map
50396
+ //# sourceMappingURL=chunk-TB2MEMX6.js.map