@zero-library/chat-copilot 3.2.2 → 3.2.4

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/index.cjs.js CHANGED
@@ -2088,6 +2088,7 @@ function createChatStore() {
2088
2088
  }
2089
2089
  await getMessages(conversationId);
2090
2090
  await setPreview();
2091
+ closeSubAgent();
2091
2092
  config.hooks?.onAfterSwitchConversation?.(conversationId);
2092
2093
  };
2093
2094
  const updateConversations = (data) => {
@@ -6371,21 +6372,18 @@ var agentExecList_module_default = {
6371
6372
  execRow: "agentExecList_module_execRow",
6372
6373
  rowLine: "agentExecList_module_rowLine",
6373
6374
  rowIcon: "agentExecList_module_rowIcon",
6374
- rowLabel: "agentExecList_module_rowLabel",
6375
- rowLabelError: "agentExecList_module_rowLabelError",
6376
6375
  rowDetail: "agentExecList_module_rowDetail",
6377
6376
  rowDetailExpandable: "agentExecList_module_rowDetailExpandable",
6378
6377
  rowDetailAction: "agentExecList_module_rowDetailAction",
6379
6378
  rowBody: "agentExecList_module_rowBody"
6380
6379
  };
6381
- var AgentExecRow = React10.memo(({ icon, label, detail, status, content, onDetail }) => {
6380
+ var AgentExecRow = React10.memo(({ icon, detail, status, content, onDetail }) => {
6382
6381
  const { t: t11 } = common.useTranslation(NS_CHAT_COPILOT);
6383
6382
  const [open, setOpen] = React10.useState(false);
6384
6383
  const hasExpand = !!content;
6385
6384
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: agentExecList_module_default.execRow, children: [
6386
6385
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: agentExecList_module_default.rowLine, onClick: () => hasExpand && setOpen((o) => !o), children: [
6387
6386
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: agentExecList_module_default.rowIcon, children: icon }),
6388
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: `${agentExecList_module_default.rowLabel} ${status === "error" ? agentExecList_module_default.rowLabelError : ""}`, children: label }),
6389
6387
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: `${agentExecList_module_default.rowDetail} ${hasExpand ? agentExecList_module_default.rowDetailExpandable : ""}`, title: detail, children: detail || " " }),
6390
6388
  onDetail && /* @__PURE__ */ jsxRuntime.jsx(
6391
6389
  "span",
@@ -6409,7 +6407,7 @@ var agentExecSequence_module_default = {
6409
6407
  seq: "agentExecSequence_module_seq"
6410
6408
  };
6411
6409
  function renderRow(row, key) {
6412
- return /* @__PURE__ */ jsxRuntime.jsx(agentExecRow_default, { icon: row.icon, label: row.label, detail: row.detail, status: row.status, content: row.content, onDetail: row.onDetail }, key);
6410
+ return /* @__PURE__ */ jsxRuntime.jsx(agentExecRow_default, { icon: row.icon, detail: row.detail, status: row.status, content: row.content, onDetail: row.onDetail }, key);
6413
6411
  }
6414
6412
  var AgentExecSequence = React10.memo(({ content, message: message3, customComponents, messageIndex, role, onViewSubAgent }) => {
6415
6413
  const ctx = { message: message3, customComponents, onViewSubAgent };
@@ -7027,7 +7025,7 @@ var ChatSender_default2 = React10.forwardRef(
7027
7025
  sendBtnProps,
7028
7026
  footerBelow = false,
7029
7027
  reasonBtn = true,
7030
- resourceBtn = true,
7028
+ resourceBtn = false,
7031
7029
  // skillsBtn = false,
7032
7030
  // knowledgeBtn = false,
7033
7031
  modelSelect = false,
@@ -7975,7 +7973,6 @@ var ExecutionTracePanel_default = ExecutionTracePanel;
7975
7973
  // src/ui/layouts/components/styles.module.less
7976
7974
  var styles_module_default5 = {
7977
7975
  bodyWidth: "styles_module_bodyWidth",
7978
- mainTabs: "styles_module_mainTabs",
7979
7976
  inputContainer: "styles_module_inputContainer",
7980
7977
  disclaimerNotice: "styles_module_disclaimerNotice",
7981
7978
  previewHeader: "styles_module_previewHeader",
@@ -8027,7 +8024,7 @@ var ChatMainPanel = React10.memo(
8027
8024
  showDebugLog ? /* @__PURE__ */ jsxRuntime.jsx(
8028
8025
  antd.Tabs,
8029
8026
  {
8030
- className: classNames9__default.default(styles_module_default5.mainTabs),
8027
+ className: "full-tabs",
8031
8028
  defaultActiveKey: "chat",
8032
8029
  items: [
8033
8030
  { key: "chat", label: t11("chatTab"), children: /* @__PURE__ */ jsxRuntime.jsx(ChatContent, { senderRef }) },
@@ -8172,9 +8169,7 @@ var ChatSubAgentPanel_default = ChatSubAgentPanel;
8172
8169
  var index_module_default3 = {
8173
8170
  chatLayout: "index_module_chatLayout",
8174
8171
  animatedSplitter: "index_module_animatedSplitter",
8175
- hideSplitterBar: "index_module_hideSplitterBar",
8176
- rightTabs: "index_module_rightTabs"
8177
- };
8172
+ hideSplitterBar: "index_module_hideSplitterBar"};
8178
8173
  var layouts_default = React10.forwardRef(({ theme: theme3, params, hooks, layout, config, services }, _ref) => {
8179
8174
  const { t: t11 } = common.useTranslation(NS_CHAT_COPILOT);
8180
8175
  const chatStore = React10.useMemo(() => createChatStore(), []);
@@ -8314,7 +8309,7 @@ var layouts_default = React10.forwardRef(({ theme: theme3, params, hooks, layout
8314
8309
  hasRightPanel && /* @__PURE__ */ jsxRuntime.jsx(antd.Splitter.Panel, { collapsible: false, min: 360, size: sizes[1], children: /* @__PURE__ */ jsxRuntime.jsx(
8315
8310
  antd.Tabs,
8316
8311
  {
8317
- className: classNames9__default.default("height-full", index_module_default3.rightTabs),
8312
+ className: "full-tabs",
8318
8313
  activeKey: effectiveRightTab,
8319
8314
  onChange: (k) => setActiveRightTab(k),
8320
8315
  tabBarStyle: { marginBottom: 0 },