@blade-hq/agent-react 2612.0.0-beta.26 → 2612.0.0-beta.27

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.
@@ -49426,7 +49426,7 @@ function useTopicAssetSubmissionAccess(sessionId) {
49426
49426
  client.sessions.getSession(sessionId, { signal }),
49427
49427
  client.chatGroups.list()
49428
49428
  ]);
49429
- if (session.runtime_type !== "sandbox" || !session.chat_group_id || session.viewer_role === "viewer") return null;
49429
+ if (!session.chat_group_id || session.viewer_role === "viewer") return null;
49430
49430
  const group = groups.find((item) => item.id === session.chat_group_id);
49431
49431
  return group && (group.role === "owner" || group.role === "editor") ? group : null;
49432
49432
  });
@@ -49446,7 +49446,7 @@ function TopicAssetSubmitDialog({ sessionId, topicId, path: path2, onClose, onSu
49446
49446
  client.chatGroups.listAssets(topicId)
49447
49447
  ]);
49448
49448
  const role = groups.find((item) => item.id === topicId)?.role;
49449
- if (session.runtime_type !== "sandbox" || session.chat_group_id !== topicId || session.viewer_role === "viewer") throw new Error("\u8FD9\u4E2A\u4F1A\u8BDD\u4E0D\u80FD\u63D0\u4EA4\u5230\u8BE5\u4E3B\u9898");
49449
+ 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");
49450
49450
  if (role !== "owner" && role !== "editor") throw new Error("\u4F60\u5728\u8FD9\u4E2A\u4E3B\u9898\u6CA1\u6709\u63D0\u4EA4\u6743\u9650");
49451
49451
  const folders = /* @__PURE__ */ new Set();
49452
49452
  for (const asset of result.items) {
@@ -49562,4 +49562,4 @@ use-stick-to-bottom/dist/StickToBottom.js:
49562
49562
  js-yaml/dist/js-yaml.mjs:
49563
49563
  (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
49564
49564
  */
49565
- //# sourceMappingURL=chunk-GSKRNKEI.js.map
49565
+ //# sourceMappingURL=chunk-66V4EOSO.js.map