@yuku123/z-cognition-component 2.0.3 → 2.0.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.
Files changed (159) hide show
  1. package/dist-lib/{BaseInput-DHrGPDB9.js → BaseInput-rxw05EpT.js} +16 -16
  2. package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DqK04lTb.js} +2 -2
  3. package/dist-lib/{Collapse-B77SsmFh.js → Collapse-D9XOithE.js} +76 -76
  4. package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-DnGmqa7C.js} +1 -1
  5. package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-VzQrhleP.js} +144 -144
  6. package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-CIFgRd6d.js} +4 -4
  7. package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-Be44-JWT.js} +1 -1
  8. package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-BuFXTevS.js} +32 -32
  9. package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-CYlCNRvD.js} +1 -1
  10. package/dist-lib/{Table-J_7eBbi7.js → Table-D1RvQXGM.js} +9 -9
  11. package/dist-lib/{accessAk-CA30m5eX.js → accessAk-DlxcvD0O.js} +1 -1
  12. package/dist-lib/{agents-eZDKzePP.js → agents-CabJdV6W.js} +17 -17
  13. package/dist-lib/{ai-CNSn3-sd.js → ai-DZ6fqUyK.js} +1 -1
  14. package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-CYSU7UlK.js} +4 -4
  15. package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-MTp2UyyK.js} +12 -12
  16. package/dist-lib/{approval-B-bCSmfi.js → approval-F9OYS1Ov.js} +3 -3
  17. package/dist-lib/{approvals-B0ggYiyD.js → approvals-DDEl02-L.js} +2 -2
  18. package/dist-lib/{assistant-Of0mgMsM.js → assistant-CcC1rvys.js} +39 -39
  19. package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-fmy8IsJL.js} +5 -5
  20. package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-kuK5-mku.js} +1 -1
  21. package/dist-lib/{audit-wDNCfmOy.js → audit-C0GYByqU.js} +1 -1
  22. package/dist-lib/{bios-CIwO1AUK.js → bios-_axkM_DR.js} +11 -11
  23. package/dist-lib/{callSuper-CpMOVGin.js → callSuper-CuPJalb0.js} +1 -1
  24. package/dist-lib/{category-9gqNseEa.js → category-BPLw60Ia.js} +1 -1
  25. package/dist-lib/{causal-CzAYukj9.js → causal-CcWolsb5.js} +5 -5
  26. package/dist-lib/{changelog-CQfIMS51.js → changelog-BQdmpq5H.js} +2 -2
  27. package/dist-lib/{changelog-sKJMQrlV.js → changelog-DC6nlUDh.js} +1 -1
  28. package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-CgpP4Xf5.js} +28 -28
  29. package/dist-lib/{code-space-D_ZE966E.js → code-space-CZ3CzVcA.js} +9 -9
  30. package/dist-lib/{colors-DpKdb8L-.js → colors-BsFEfaVs.js} +3 -3
  31. package/dist-lib/{community-CfWXxujB.js → community-D9mD_Tq1.js} +3 -3
  32. package/dist-lib/{community-9_7ExHcm.js → community-ESJc4qtl.js} +1 -1
  33. package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-Ct5uMwhv.js} +19 -19
  34. package/dist-lib/{connections-Bcqsp11M.js → connections-DrxmCfe3.js} +6 -6
  35. package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-3K1vcDqi.js} +1 -1
  36. package/dist-lib/{detail-EyLdjGpX.js → detail-DXOJf57e.js} +37 -37
  37. package/dist-lib/{detail-CV6xp_Jp.js → detail-kPAVlzm3.js} +4 -4
  38. package/dist-lib/{detail-DioaWKWj.js → detail-lGslEB8s.js} +14 -14
  39. package/dist-lib/{development-CFcOIUKc.js → development-aLXXcLcF.js} +17 -17
  40. package/dist-lib/{downloads-DtV5hOQv.js → downloads-DFOEFvX6.js} +1 -1
  41. package/dist-lib/{edit-NtXUNj5N.js → edit-BbtVK23D.js} +88 -88
  42. package/dist-lib/{editor-KZhj-rwT.js → editor-DbLQFOUf.js} +16 -16
  43. package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-B_H0fRAI.js} +13 -13
  44. package/dist-lib/{embed-mf8t3QXh.js → embed-BUaR8PAn.js} +3930 -3955
  45. package/dist-lib/embed.css +1 -1
  46. package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-8Tx-3UQh.js} +2 -2
  47. package/dist-lib/{execution-B6HmOA2_.js → execution-Dz5dBEFl.js} +13 -13
  48. package/dist-lib/{graph-DHV-rdiK.js → graph-DacHEbKr.js} +5 -5
  49. package/dist-lib/{index-BoCtPJD4.js → index-B6G8CZ1v.js} +130 -130
  50. package/dist-lib/{index-DKAGVWMX.js → index-BDWjubAD.js} +6 -6
  51. package/dist-lib/{index-Bw4M9KLv.js → index-BI-rknta.js} +75 -75
  52. package/dist-lib/{index-QZ9JPfVR.js → index-BLGPH51v.js} +4 -4
  53. package/dist-lib/{index-BsoHetYT.js → index-BMv3kGDG.js} +20 -20
  54. package/dist-lib/{index-DgfIEgir.js → index-BOB3j3H_.js} +1 -1
  55. package/dist-lib/{index-BPbOPT2j.js → index-BU2GXuww.js} +2 -2
  56. package/dist-lib/{index-DU6bO95v.js → index-BWmgE7bB.js} +88 -88
  57. package/dist-lib/{index-CLhLA2ig.js → index-Be_iqVpx.js} +78 -78
  58. package/dist-lib/{index-CwyFMPcr.js → index-Bf8IQq4A.js} +15 -15
  59. package/dist-lib/{index-DGbjbjBY.js → index-Bi7O9pQv.js} +182 -182
  60. package/dist-lib/{index-BkTegt8T.js → index-Bt9F-2Fl.js} +100 -100
  61. package/dist-lib/{index-D6ns_Xmf.js → index-BtW_nQBU.js} +2 -2
  62. package/dist-lib/{index-CvxfA0ZK.js → index-BuGHtvxH.js} +16 -16
  63. package/dist-lib/{index-CtqUgNxs.js → index-CDxeB8C4.js} +24 -24
  64. package/dist-lib/{index-2SysmGHo.js → index-CNBwau86.js} +139 -139
  65. package/dist-lib/{index-BvJ35WL3.js → index-CS6H40rM.js} +15 -15
  66. package/dist-lib/{index--AI-htgA.js → index-CSoMwNHq.js} +45 -45
  67. package/dist-lib/{index-CgwK2maq.js → index-CdNxm2We.js} +38 -38
  68. package/dist-lib/{index-BqTsLClH.js → index-CjFA5T3K.js} +1 -1
  69. package/dist-lib/{index-3J47mTL1.js → index-D23tZfhi.js} +1 -1
  70. package/dist-lib/{index-BkJjYgKD.js → index-D7nLwQye.js} +486 -486
  71. package/dist-lib/{index-zXwXfn-X.js → index-DR9LGJpi.js} +23 -23
  72. package/dist-lib/{index-BEO8itgt.js → index-DTgboCiF.js} +13 -13
  73. package/dist-lib/{index-CSJA8wvL.js → index-Ddx6XQu5.js} +36 -36
  74. package/dist-lib/{index-C2CV4bte.js → index-Di2bQwQn.js} +2 -2
  75. package/dist-lib/{index-DhSCFLtV.js → index-DlqhOJnd.js} +98 -98
  76. package/dist-lib/{index-xQmDaKK3.js → index-GQGXGr9M.js} +1 -1
  77. package/dist-lib/{index-B7SfTpox.js → index-IB3GOib9.js} +8 -8
  78. package/dist-lib/{index-VeAMz0iC.js → index-Pcxp_AYe.js} +43 -43
  79. package/dist-lib/{index-CdJ5ggvp.js → index-QkktEus5.js} +17 -17
  80. package/dist-lib/{index-Bln3mJfp.js → index-fVCVIu8I.js} +2 -2
  81. package/dist-lib/{index-B5Roo82U.js → index-jHh-ITBK.js} +25 -25
  82. package/dist-lib/{index-DaMLYomP.js → index-keRQ37lH.js} +6 -6
  83. package/dist-lib/{index-CF0ucN_K.js → index-n6hK1r_G.js} +3 -3
  84. package/dist-lib/{index-Bd7AGv4a.js → index-qYfXuLnZ.js} +2 -2
  85. package/dist-lib/{index-B12ZggsE.js → index-yPMzsLHL.js} +3 -3
  86. package/dist-lib/index.js +1 -1
  87. package/dist-lib/{json-field-COcz5F2R.js → json-field-Bu-gFb6c.js} +2 -2
  88. package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-DsXpXfNT.js} +20 -19
  89. package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D8hsAHI5.js} +1 -1
  90. package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-D2XMD7iI.js} +21 -20
  91. package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-BoBR8-j-.js} +12 -12
  92. package/dist-lib/{login-56zv4aLO.js → login-B4C374Y_.js} +3 -3
  93. package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-ROKlyMXg.js} +55 -55
  94. package/dist-lib/{material-DtPASeqq.js → material-CqtPqoZj.js} +1 -1
  95. package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BKlKt3pc.js} +2 -2
  96. package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-pzANkVK5.js} +5 -5
  97. package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-BUpogooV.js} +1 -1
  98. package/dist-lib/{member-Cz-OIdj9.js → member-CCTFfLDC.js} +1 -1
  99. package/dist-lib/{memory-reorganization-DgJnWIrW.js → memory-reorganization-CBTDCRhV.js} +1 -1
  100. package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-CZGIBlz2.js} +19 -19
  101. package/dist-lib/{message-D6FhzB7J.js → message-Chq3cAdy.js} +3 -3
  102. package/dist-lib/{message-C9gfvpGg.js → message-Rz7LvGMk.js} +1 -1
  103. package/dist-lib/{messages-cctmEVcG.js → messages-DciGawgR.js} +2 -2
  104. package/dist-lib/{meta-DT_O4zM9.js → meta-BWgVxZgd.js} +2 -2
  105. package/dist-lib/{metrics-BNeVcI8-.js → metrics-iWreq4IL.js} +2 -2
  106. package/dist-lib/{mobile-D8kZjfQU.js → mobile-CNrK04Ak.js} +2 -2
  107. package/dist-lib/{monitor-DexMYjzF.js → monitor-BpUJZCht.js} +3 -3
  108. package/dist-lib/{monitor-DTUyqumg.js → monitor-CaTKbDI1.js} +3 -3
  109. package/dist-lib/{my-access-DWBV6ohp.js → my-access-ZH5CWVGF.js} +3 -3
  110. package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-edhi0lav.js} +4 -4
  111. package/dist-lib/{navigation-DVlyWnpD.js → navigation-2WdPUP2T.js} +1 -1
  112. package/dist-lib/{new-JmARyD88.js → new-Dq6mvU2w.js} +5 -5
  113. package/dist-lib/{ontology-B4rkO33J.js → ontology-BX6X1X2J.js} +5 -5
  114. package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-BjMnFRBG.js} +1 -1
  115. package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-B7AuwW8S.js} +63 -63
  116. package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-FpJ6K8z6.js} +1 -1
  117. package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-wbvBwGZO.js} +22 -22
  118. package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-CJsIvS35.js} +6 -6
  119. package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Cgi8Fk-i.js} +3 -3
  120. package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-C_6GvHBT.js} +33 -33
  121. package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-CeDS1-FE.js} +2 -2
  122. package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-4Ar7Y8Kt.js} +11 -11
  123. package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BaYN82pv.js} +392 -392
  124. package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-CDt7NdIq.js} +1 -1
  125. package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-CnFarWZX.js} +1 -1
  126. package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-CxTp2Dcq.js} +18 -18
  127. package/dist-lib/{permission-Dq1-AOQw.js → permission-CNqwhyF3.js} +2 -2
  128. package/dist-lib/{preset-DCNSE--Y.js → preset-CfByvcqu.js} +3 -3
  129. package/dist-lib/{progress-CZxOOnIs.js → progress-ImhDvynO.js} +2 -2
  130. package/dist-lib/{quota-oICQRHFU.js → quota-B38BWyPo.js} +7 -6
  131. package/dist-lib/{row-By17TCiW.js → row-DeVE0t_N.js} +2 -2
  132. package/dist-lib/{runs-DQTDpPaN.js → runs-ILSUwEOv.js} +6 -6
  133. package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-C5BbV45B.js} +2 -2
  134. package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-7v1SRE7V.js} +17 -17
  135. package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form-mFm6f2ho.js} +9 -9
  136. package/dist-lib/{schedule-CwkPPSuT.js → schedule-DzB9rZrm.js} +2 -2
  137. package/dist-lib/{script-gYJAFobb.js → script-CKdVDsYh.js} +14 -14
  138. package/dist-lib/{settings-CJd5Jj4y.js → settings-CaihqQtz.js} +71 -70
  139. package/dist-lib/{shared-DG5-VCDM.js → shared-B51Q5536.js} +1 -1
  140. package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-Ck5sql2m.js} +2 -2
  141. package/dist-lib/{skills-lxpJ5Lzx.js → skills-By3A0Dc1.js} +5 -5
  142. package/dist-lib/{source-selection-DJnQQckl.js → source-selection-sIKyG7xR.js} +1 -1
  143. package/dist-lib/{sources-C83LpCcV.js → sources-DvIMColY.js} +12 -12
  144. package/dist-lib/{style-B5THvtDY.js → style-BHQZmWlH.js} +8 -8
  145. package/dist-lib/{task-config-BNYoOb79.js → task-config-CoPFj_FN.js} +3 -3
  146. package/dist-lib/{tech-LuZvKDo6.js → tech-BJgEEFrT.js} +1 -1
  147. package/dist-lib/{templates-a-kbCamr.js → templates-CODaf2QI.js} +6 -6
  148. package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-DmN4qfah.js} +12 -12
  149. package/dist-lib/{tools-CrA6GrY6.js → tools-CyRz1Ofg.js} +4 -4
  150. package/dist-lib/use-current-tenant-otPCQ3X8.js +22 -0
  151. package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-BuD99GTw.js} +1 -1
  152. package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-C5h9frJM.js} +1 -1
  153. package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Cbd3Jggb.js} +9 -9
  154. package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-B8dF3ifo.js} +4 -4
  155. package/dist-lib/{useForm-B-dwOwJ8.js → useForm-BZkiMeaN.js} +6 -6
  156. package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-HdMlbpbO.js} +1 -1
  157. package/dist-lib/{version-management-nPlG7wQO.js → version-management-BYoxw4GV.js} +2 -2
  158. package/dist-lib/{welcome-Cqv1-rXT.js → welcome-CMNXQf8J.js} +1 -1
  159. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  import { jsx as e, jsxs as i, Fragment as ae } from "react/jsx-runtime";
2
- import { X as cn, u as dn, a as hn, Y as un, I as r, O as mn, V as pn } from "./embed-mf8t3QXh.js";
3
- import { M as bn } from "./markdown-lite-p1tiuSZM.js";
2
+ import { W as cn, u as dn, a as hn, X as un, I as r, O as mn, U as pn } from "./embed-BUaR8PAn.js";
3
+ import { M as bn } from "./markdown-lite-ROKlyMXg.js";
4
4
  /* empty css */
5
- import { g as kn, s as gn } from "./assistant-summary-CjLaTyFz.js";
5
+ import { g as kn, s as gn } from "./assistant-summary-kuK5-mku.js";
6
6
  import { useState as h, useRef as z, useEffect as R, useCallback as Re } from "react";
7
7
  import { createPortal as fn } from "react-dom";
8
- import { u as yn, a as vn, d as $e, t as De, h as wn, s as Nn, f as Cn, b as Le, c as In, C as Sn } from "./assistant-history-DcyDhUzJ.js";
9
- import { l as Te, a as Ae } from "./ai-CNSn3-sd.js";
8
+ import { u as yn, a as vn, d as $e, t as De, h as wn, s as Nn, f as Cn, b as Le, c as In, C as Sn } from "./assistant-history-fmy8IsJL.js";
9
+ import { l as Te, a as Ae } from "./ai-DZ6fqUyK.js";
10
10
  import { a as se } from "./format-CWI99NCN.js";
11
11
  import { u as zn } from "./use-split-width-SsLqbGjr.js";
12
12
  const Rn = [
@@ -31,12 +31,12 @@ const Rn = [
31
31
  hint: "最近更新了什么,影响哪些知识",
32
32
  question: "最近更新了哪些资料,对知识覆盖有什么影响?"
33
33
  }
34
- ], xe = "kb-assistant-rail:";
34
+ ], We = "kb-assistant-rail:";
35
35
  function re(b) {
36
36
  if (!b || typeof window > "u")
37
37
  return {};
38
38
  try {
39
- const a = window.localStorage.getItem(`${xe}${b}`);
39
+ const a = window.localStorage.getItem(`${We}${b}`);
40
40
  if (!a)
41
41
  return {};
42
42
  const c = JSON.parse(a);
@@ -54,9 +54,9 @@ const oe = {
54
54
  recent: { icon: "clock", title: "最近资料" },
55
55
  profile: { icon: "info", title: "库档案" },
56
56
  entry: { icon: "grid", title: "快捷入口" }
57
- }, We = Object.keys(oe), Oe = "kb-assistant-rail-layout:";
57
+ }, xe = Object.keys(oe), Oe = "kb-assistant-rail-layout:";
58
58
  function Me() {
59
- return { order: [...We], hidden: [] };
59
+ return { order: [...xe], hidden: [] };
60
60
  }
61
61
  function le(b) {
62
62
  return typeof b == "string" && b in oe;
@@ -72,7 +72,7 @@ function Ee(b) {
72
72
  const o = JSON.parse(c), g = [];
73
73
  Array.isArray(o == null ? void 0 : o.order) && o.order.forEach((k) => {
74
74
  le(k) && !g.includes(k) && g.push(k);
75
- }), We.forEach((k) => {
75
+ }), xe.forEach((k) => {
76
76
  g.includes(k) || g.push(k);
77
77
  });
78
78
  const $ = Array.isArray(o == null ? void 0 : o.hidden) ? Array.from(new Set(o.hidden.filter(le))) : [];
@@ -92,7 +92,7 @@ function w({
92
92
  dropTarget: G,
93
93
  onToggle: B,
94
94
  onGripDragStart: s,
95
- onDragOver: j,
95
+ onDragOver: U,
96
96
  onDrop: D,
97
97
  onDragEnd: L,
98
98
  children: N
@@ -103,7 +103,7 @@ function w({
103
103
  className: `kba-rail-card${o ? " collapsed" : ""}${k ? " dragging" : ""}${G ? " drop-on" : ""}`,
104
104
  style: { order: g },
105
105
  "data-rail-card": b,
106
- onDragOver: j,
106
+ onDragOver: U,
107
107
  onDrop: D,
108
108
  onDragEnd: L,
109
109
  children: [
@@ -148,17 +148,17 @@ function w({
148
148
  }
149
149
  function Hn() {
150
150
  var Se;
151
- const a = cn().kbId || "", c = dn(), [o, g] = h(null), [$, k] = h(!!a), [G, B] = h(!a), [s, j] = h(null), [D, L] = h(""), { turns: N, streaming: C, ask: ce, answerLocally: Pe, stop: He, reset: Ke, openConversation: J } = yn(a, { view: "assistant" }), { context: W, loading: de } = hn(), he = z(null), O = z(null), U = z(null), [T, A] = h(!1), [X, Fe] = h([]), [Y, _e] = h(""), [qe, ue] = h(!1), [me, pe] = h(""), [M, Ge] = h(() => ({ kbId: a, collapsed: re(a) })), f = M.kbId === a ? M.collapsed : re(a), y = (n) => {
151
+ const a = cn().kbId || "", c = dn(), [o, g] = h(null), [$, k] = h(!!a), [G, B] = h(!a), [s, U] = h(null), [D, L] = h(""), { turns: N, streaming: C, ask: ce, answerLocally: Pe, stop: He, reset: Ke, openConversation: j } = yn(a, { view: "assistant" }), { context: x, loading: de } = hn(), he = z(null), O = z(null), J = z(null), [T, A] = h(!1), [X, Fe] = h([]), [Y, _e] = h(""), [qe, ue] = h(!1), [me, pe] = h(""), [M, Ge] = h(() => ({ kbId: a, collapsed: re(a) })), f = M.kbId === a ? M.collapsed : re(a), y = (n) => {
152
152
  const t = M.kbId === a ? M.collapsed : re(a), l = { ...t, [n]: !t[n] };
153
153
  if (Ge({ kbId: a, collapsed: l }), !(!a || typeof window > "u"))
154
154
  try {
155
155
  window.localStorage.setItem(
156
- `${xe}${a}`,
156
+ `${We}${a}`,
157
157
  JSON.stringify(l)
158
158
  );
159
159
  } catch {
160
160
  }
161
- }, [be, Be] = h(() => ({ kbId: a, layout: Ee(a) })), u = be.kbId === a ? be.layout : Ee(a), V = z(null), ke = z(null), [I, E] = h(!1), [P, je] = h(null), H = (n) => {
161
+ }, [be, Be] = h(() => ({ kbId: a, layout: Ee(a) })), u = be.kbId === a ? be.layout : Ee(a), Q = z(null), ke = z(null), [I, E] = h(!1), [P, Ue] = h(null), H = (n) => {
162
162
  if (Be({ kbId: a, layout: n }), !(!a || typeof window > "u"))
163
163
  try {
164
164
  window.localStorage.setItem(
@@ -167,7 +167,7 @@ function Hn() {
167
167
  );
168
168
  } catch {
169
169
  }
170
- }, Je = (n) => {
170
+ }, je = (n) => {
171
171
  const t = u.hidden.includes(n) ? u.hidden.filter((l) => l !== n) : [...u.hidden, n];
172
172
  H({ ...u, hidden: t });
173
173
  }, ge = (n, t) => {
@@ -176,34 +176,34 @@ function Hn() {
176
176
  return;
177
177
  const p = [...u.order];
178
178
  [p[l], p[d]] = [p[d], p[l]], H({ ...u, order: p });
179
- }, Ue = () => H(Me()), [x, Q] = h(""), [Xe, Z] = h(""), { width: Ye, containerRef: Ve, startResize: Qe, resetWidth: Ze } = zn({
179
+ }, Je = () => H(Me()), [W, V] = h(""), [Xe, Z] = h(""), { width: Ye, containerRef: Qe, startResize: Ve, resetWidth: Ze } = zn({
180
180
  storageKey: "kb.assistantRailWidth",
181
181
  defaultWidth: 236,
182
182
  minWidth: 200,
183
183
  maxWidth: 340
184
184
  }), en = (n, t) => {
185
- if (Q(""), Z(""), !le(t) || t === n)
185
+ if (V(""), Z(""), !le(t) || t === n)
186
186
  return;
187
187
  const l = u.order.filter((p) => p !== t), d = l.indexOf(n);
188
188
  d < 0 || (l.splice(d, 0, t), H({ ...u, order: l }));
189
189
  }, v = (n) => ({
190
190
  order: u.order.indexOf(n),
191
191
  hidden: u.hidden.includes(n),
192
- dragging: x === n,
193
- dropTarget: Xe === n && x !== n,
192
+ dragging: W === n,
193
+ dropTarget: Xe === n && W !== n,
194
194
  onGripDragStart: (t) => {
195
195
  t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", n);
196
196
  const l = t.currentTarget.closest(".kba-rail-card");
197
- l && t.dataTransfer.setDragImage(l, 24, 24), Q(n);
197
+ l && t.dataTransfer.setDragImage(l, 24, 24), V(n);
198
198
  },
199
199
  onDragOver: (t) => {
200
- !x || x === n || (t.preventDefault(), t.dataTransfer.dropEffect = "move", Z(n));
200
+ !W || W === n || (t.preventDefault(), t.dataTransfer.dropEffect = "move", Z(n));
201
201
  },
202
202
  onDrop: (t) => {
203
- t.preventDefault(), en(n, t.dataTransfer.getData("text/plain") || x);
203
+ t.preventDefault(), en(n, t.dataTransfer.getData("text/plain") || W);
204
204
  },
205
205
  onDragEnd: () => {
206
- Q(""), Z("");
206
+ V(""), Z("");
207
207
  }
208
208
  }), nn = () => {
209
209
  var t;
@@ -211,8 +211,8 @@ function Hn() {
211
211
  E(!1);
212
212
  return;
213
213
  }
214
- const n = (t = V.current) == null ? void 0 : t.getBoundingClientRect();
215
- n && je({
214
+ const n = (t = Q.current) == null ? void 0 : t.getBoundingClientRect();
215
+ n && Ue({
216
216
  left: n.left,
217
217
  bottom: window.innerHeight - n.top + 8,
218
218
  width: Math.max(n.width, 248)
@@ -224,7 +224,7 @@ function Hn() {
224
224
  const n = (d) => {
225
225
  var S, ze;
226
226
  const p = d.target;
227
- (S = ke.current) != null && S.contains(p) || (ze = V.current) != null && ze.contains(p) || E(!1);
227
+ (S = ke.current) != null && S.contains(p) || (ze = Q.current) != null && ze.contains(p) || E(!1);
228
228
  }, t = (d) => {
229
229
  d.key === "Escape" && E(!1);
230
230
  }, l = () => E(!1);
@@ -243,7 +243,7 @@ function Hn() {
243
243
  }, [a]);
244
244
  const ee = Re(() => {
245
245
  a && kn(a).then((n) => {
246
- n && j(n);
246
+ n && U(n);
247
247
  });
248
248
  }, [a]);
249
249
  R(() => {
@@ -252,7 +252,7 @@ function Hn() {
252
252
  if (!T)
253
253
  return;
254
254
  const n = (t) => {
255
- U.current && !U.current.contains(t.target) && A(!1);
255
+ J.current && !J.current.contains(t.target) && A(!1);
256
256
  };
257
257
  return document.addEventListener("mousedown", n), () => document.removeEventListener("mousedown", n);
258
258
  }, [T]);
@@ -272,8 +272,8 @@ function Hn() {
272
272
  var l;
273
273
  pe(n.conversationId);
274
274
  const t = await Ae(a, n.conversationId);
275
- pe(""), t && (J(n.conversationId, De(t)), A(!1), (l = O.current) == null || l.focus());
276
- }, ne = z(""), ye = W != null && W.authenticated ? W.principalId : void 0, ie = $e(ye) ?? void 0;
275
+ pe(""), t && (j(n.conversationId, De(t)), A(!1), (l = O.current) == null || l.focus());
276
+ }, ne = z(""), ye = x != null && x.authenticated ? x.principalId : void 0, ie = $e(ye) ?? void 0;
277
277
  R(() => {
278
278
  if (!a || de || ne.current === a)
279
279
  return;
@@ -290,11 +290,11 @@ function Hn() {
290
290
  if (!n || !d)
291
291
  return;
292
292
  const p = await Ae(a, d.conversationId);
293
- !n || !p || J(d.conversationId, De(p));
293
+ !n || !p || j(d.conversationId, De(p));
294
294
  })(), () => {
295
295
  n = !1;
296
296
  };
297
- }, [a, de, ie, N.length, C, J]);
297
+ }, [a, de, ie, N.length, C, j]);
298
298
  const ve = wn(X), K = Nn(
299
299
  Cn(X, Y),
300
300
  ye
@@ -358,7 +358,7 @@ function Hn() {
358
358
  /* @__PURE__ */ e("small", { children: "AI 知识助手 · 只读本库,回答带引用" })
359
359
  ] }),
360
360
  /* @__PURE__ */ i("div", { className: "kba-head-actions", children: [
361
- /* @__PURE__ */ i("div", { className: "kba-history-wrap", ref: U, children: [
361
+ /* @__PURE__ */ i("div", { className: "kba-history-wrap", ref: J, children: [
362
362
  /* @__PURE__ */ i(
363
363
  "button",
364
364
  {
@@ -489,7 +489,7 @@ function Hn() {
489
489
  "div",
490
490
  {
491
491
  className: "kba-body split-layout",
492
- ref: Ve,
492
+ ref: Qe,
493
493
  style: { "--split-w": `${Ye}px` },
494
494
  children: [
495
495
  /* @__PURE__ */ i("aside", { className: "kba-rail", children: [
@@ -819,7 +819,7 @@ function Hn() {
819
819
  /* @__PURE__ */ e("div", { className: "kba-rail-foot", children: /* @__PURE__ */ i(
820
820
  "button",
821
821
  {
822
- ref: V,
822
+ ref: Q,
823
823
  className: "kba-rail-settings",
824
824
  type: "button",
825
825
  "aria-expanded": I,
@@ -847,7 +847,7 @@ function Hn() {
847
847
  "aria-orientation": "vertical",
848
848
  "aria-label": "调整库状态栏宽度",
849
849
  title: "拖动调整库状态栏宽度,双击复位",
850
- onPointerDown: Qe,
850
+ onPointerDown: Ve,
851
851
  onDoubleClick: Ze
852
852
  }
853
853
  ),
@@ -868,7 +868,7 @@ function Hn() {
868
868
  children: [
869
869
  /* @__PURE__ */ i("div", { className: "kba-rail-settings-head", children: [
870
870
  /* @__PURE__ */ e("b", { children: "显示的卡片" }),
871
- /* @__PURE__ */ e("button", { type: "button", onClick: Ue, children: "恢复默认" })
871
+ /* @__PURE__ */ e("button", { type: "button", onClick: Je, children: "恢复默认" })
872
872
  ] }),
873
873
  /* @__PURE__ */ e("div", { className: "kba-rail-settings-list", children: u.order.map((n, t) => {
874
874
  const l = oe[n], d = u.hidden.includes(n);
@@ -879,7 +879,7 @@ function Hn() {
879
879
  {
880
880
  type: "checkbox",
881
881
  checked: !d,
882
- onChange: () => Je(n)
882
+ onChange: () => je(n)
883
883
  }
884
884
  ),
885
885
  /* @__PURE__ */ e(r, { name: l.icon, size: 12 }),
@@ -1,12 +1,12 @@
1
1
  import { jsx as w, jsxs as b } from "react/jsx-runtime";
2
- import { I as q } from "./embed-mf8t3QXh.js";
3
- import { P as F } from "./index-CwyFMPcr.js";
2
+ import { I as q } from "./embed-BUaR8PAn.js";
3
+ import { P as F } from "./index-Bf8IQq4A.js";
4
4
  import { useState as C, useRef as S, useEffect as $, useCallback as T } from "react";
5
- import "./markdown-lite-p1tiuSZM.js";
5
+ import "./markdown-lite-ROKlyMXg.js";
6
6
  /* empty css */
7
7
  import "react-dom";
8
- import { a as M, t as g } from "./shared-utils-CFHws1DA.js";
9
- import { s as z, i as G } from "./ai-CNSn3-sd.js";
8
+ import { a as M, t as g } from "./shared-utils-Ck5sql2m.js";
9
+ import { s as z, i as G } from "./ai-DZ6fqUyK.js";
10
10
  const J = "kb_qa_assistant";
11
11
  function H(t) {
12
12
  const e = M(t), s = e == null ? void 0 : e.hits;
@@ -1,4 +1,4 @@
1
- import { r as e, t as u, K as r } from "./embed-mf8t3QXh.js";
1
+ import { r as e, t as u, K as r } from "./embed-BUaR8PAn.js";
2
2
  const t = "/kb/v1/overview", C = () => ({ "X-Tenant-Code": r() });
3
3
  function i(o) {
4
4
  const n = Number(o);
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { A as t } from "./index-DgfIEgir.js";
2
+ import { A as t } from "./index-BOB3j3H_.js";
3
3
  function o() {
4
4
  return /* @__PURE__ */ e("div", { className: "view audit-list-page", children: /* @__PURE__ */ e(t, { showType: !0 }) });
5
5
  }
@@ -1,16 +1,16 @@
1
1
  import { jsxs as i, jsx as e, Fragment as q } from "react/jsx-runtime";
2
2
  import { useState as m, useRef as Qe, useEffect as F, useCallback as x, useMemo as ce } from "react";
3
- import { r as R, g as Ve, S as Xe, B as k, I as E, h as ge, A as Ce, i as Ze } from "./embed-mf8t3QXh.js";
4
- import { A as M } from "./index-B7SfTpox.js";
5
- import { F as O } from "./index-BkTegt8T.js";
6
- import { I as V } from "./index-2SysmGHo.js";
7
- import { F as be } from "./Table-J_7eBbi7.js";
8
- import { T as z } from "./index-CtqUgNxs.js";
9
- import { P as Je } from "./index-CvxfA0ZK.js";
10
- import { B as ve } from "./index--AI-htgA.js";
11
- import { D as et } from "./index-BvJ35WL3.js";
12
- import { M as Te } from "./index-B12ZggsE.js";
13
- import { T as $e } from "./index-CLhLA2ig.js";
3
+ import { r as R, g as Ve, S as Xe, B as k, I as E, h as ge, A as Ce, i as Ze } from "./embed-BUaR8PAn.js";
4
+ import { A as M } from "./index-IB3GOib9.js";
5
+ import { F as O } from "./index-Bt9F-2Fl.js";
6
+ import { I as V } from "./index-CNBwau86.js";
7
+ import { F as be } from "./Table-D1RvQXGM.js";
8
+ import { T as z } from "./index-CDxeB8C4.js";
9
+ import { P as Je } from "./index-BuGHtvxH.js";
10
+ import { B as ve } from "./index-CSoMwNHq.js";
11
+ import { D as et } from "./index-CS6H40rM.js";
12
+ import { M as Te } from "./index-yPMzsLHL.js";
13
+ import { T as $e } from "./index-Be_iqVpx.js";
14
14
  const tt = "X-FB-BIOS", A = "/kb/v1/bios";
15
15
  function D(t) {
16
16
  return { [tt]: t };
@@ -1,4 +1,4 @@
1
- import { cg as e, ch as s, ci as o } from "./embed-mf8t3QXh.js";
1
+ import { cf as e, cg as s, ch as o } from "./embed-BUaR8PAn.js";
2
2
  function u(r, t, c) {
3
3
  return t = e(t), s(r, o() ? Reflect.construct(t, c || [], e(r).constructor) : t.apply(r, c));
4
4
  }
@@ -1,4 +1,4 @@
1
- import { t as s, r, K as u } from "./embed-mf8t3QXh.js";
1
+ import { t as s, r, K as u } from "./embed-BUaR8PAn.js";
2
2
  const a = "/kb/v1/materialCategory", o = () => ({ "X-Tenant-Code": u() });
3
3
  async function n(e) {
4
4
  try {
@@ -2,11 +2,11 @@ import { jsxs as r, jsx as n, Fragment as Q } from "react/jsx-runtime";
2
2
  import { useRef as de, useId as Ie, useMemo as le, useState as E, useCallback as ke, useEffect as he } from "react";
3
3
  import { u as Te } from "./use-split-width-SsLqbGjr.js";
4
4
  import { H as X } from "./index-mmwKYfDC.js";
5
- import { S as xe } from "./index-QZ9JPfVR.js";
6
- import { B as P, ab as ue, S as Ne, h as be, r as J, R as ze, A as Le } from "./embed-mf8t3QXh.js";
7
- import { T as ge } from "./index-CtqUgNxs.js";
8
- import { T as Ue } from "./index-CLhLA2ig.js";
9
- import { D as Oe } from "./index-DhSCFLtV.js";
5
+ import { S as xe } from "./index-BLGPH51v.js";
6
+ import { B as P, aa as ue, S as Ne, h as be, r as J, R as ze, A as Le } from "./embed-BUaR8PAn.js";
7
+ import { T as ge } from "./index-CDxeB8C4.js";
8
+ import { T as Ue } from "./index-Be_iqVpx.js";
9
+ import { D as Oe } from "./index-DlqhOJnd.js";
10
10
  const $e = { drive: "动力", action: "动作", seam: "接口缝", artifact: "产物" };
11
11
  function Z(e) {
12
12
  return JSON.stringify([e.from, e.to, e.kind, e.when, e.evidence, e.derived, e.source]);
@@ -1,6 +1,6 @@
1
1
  import { jsxs as c, jsx as a, Fragment as $ } from "react/jsx-runtime";
2
- import { I as p } from "./embed-mf8t3QXh.js";
3
- import { c as N, a as v, b as x, d as w, m as z } from "./changelog-sKJMQrlV.js";
2
+ import { I as p } from "./embed-BUaR8PAn.js";
3
+ import { c as N, a as v, b as x, d as w, m as z } from "./changelog-DC6nlUDh.js";
4
4
  import { useState as d, useEffect as S } from "react";
5
5
  const I = "2026.10.21 – 2026.11.16", g = [
6
6
  {
@@ -1,4 +1,4 @@
1
- import { t as f, r as i } from "./embed-mf8t3QXh.js";
1
+ import { t as f, r as i } from "./embed-BUaR8PAn.js";
2
2
  const s = "/z-team/api/change-log", l = "z-cognition";
3
3
  async function u(t, n = {}) {
4
4
  try {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as m, jsx as c, Fragment as lt } from "react/jsx-runtime";
2
- import { A as ue, R as ae, I as B, V as Mt } from "./embed-mf8t3QXh.js";
3
- import { M as de } from "./markdown-lite-p1tiuSZM.js";
4
- import { O as zt, i as At, a as he, s as pe, B as Lt, c as fe, b as me, A as ge, p as Ne } from "./ontology-modeling-B9wswveh.js";
2
+ import { A as ue, R as ae, I as B, U as Mt } from "./embed-BUaR8PAn.js";
3
+ import { M as de } from "./markdown-lite-ROKlyMXg.js";
4
+ import { O as zt, i as At, a as he, s as pe, B as Lt, c as fe, b as me, A as ge, p as Ne } from "./ontology-modeling-CeDS1-FE.js";
5
5
  import { useState as w, useRef as T, useEffect as D, useCallback as R, useMemo as ve } from "react";
6
6
  function Yt(t) {
7
7
  return typeof t == "object" && t !== null && !Array.isArray(t) ? t : null;
@@ -95,7 +95,7 @@ function Xt(t) {
95
95
  } : null;
96
96
  }
97
97
  const Kt = 9e4, Ct = "c2f_question";
98
- function Vt(t) {
98
+ function Zt(t) {
99
99
  let e = ut(t);
100
100
  !e && typeof t == "string" && t.trim() && (e = Tt(t));
101
101
  const n = e ? ut(e.request) : null;
@@ -186,7 +186,7 @@ function _t(t) {
186
186
  n[r] = Ce.test(r) ? "***" : _t(o);
187
187
  return n;
188
188
  }
189
- function Zt(t) {
189
+ function Vt(t) {
190
190
  if (typeof t != "string")
191
191
  return O(t);
192
192
  const e = Tt(t);
@@ -292,7 +292,7 @@ function _e(t, e) {
292
292
  status: "done"
293
293
  }), (t.toolCalls || []).forEach((i, l) => {
294
294
  if (i.toolName === Ct) {
295
- const u = Vt(i.arguments), h = !!i.result && !i.isError;
295
+ const u = Zt(i.arguments), h = !!i.result && !i.isError;
296
296
  r.push({
297
297
  id: `${n}-question-${l}`,
298
298
  turnId: n,
@@ -311,7 +311,7 @@ function _e(t, e) {
311
311
  turnId: n,
312
312
  role: "tool",
313
313
  kind: "tool_call",
314
- content: Zt(i.arguments) || "",
314
+ content: Vt(i.arguments) || "",
315
315
  toolName: i.toolName,
316
316
  isError: i.isError || void 0,
317
317
  result: i.result ? Te(i.result) : void 0,
@@ -344,7 +344,7 @@ function _e(t, e) {
344
344
  }), r;
345
345
  }
346
346
  function sn(t, e, n, r) {
347
- const { message: o } = ue.useApp(), [i, l] = w([]), [u, h] = w(!1), [f, p] = w(!1), [A, g] = w(/* @__PURE__ */ new Set()), b = T(null), M = T(!1), x = T(""), G = T(null), [at, P] = w(""), [I, rt] = w(""), [$t, J] = w("ready"), X = T(0), z = T(null), V = T(0), Z = T(""), tt = T(0), dt = T(!1), ht = T(0), et = T(Promise.resolve()), F = T(0), q = T(0), U = T(/* @__PURE__ */ new Map()), ot = T(() => {
347
+ const { message: o } = ue.useApp(), [i, l] = w([]), [u, h] = w(!1), [f, p] = w(!1), [A, g] = w(/* @__PURE__ */ new Set()), b = T(null), M = T(!1), x = T(""), G = T(null), [at, P] = w(""), [I, rt] = w(""), [$t, J] = w("ready"), X = T(0), z = T(null), Z = T(0), V = T(""), tt = T(0), dt = T(!1), ht = T(0), et = T(Promise.resolve()), F = T(0), q = T(0), U = T(/* @__PURE__ */ new Map()), ot = T(() => {
348
348
  }), mt = T(/* @__PURE__ */ new Map()), d = T(null), j = T(e);
349
349
  D(() => {
350
350
  j.current = e;
@@ -535,9 +535,9 @@ function sn(t, e, n, r) {
535
535
  }
536
536
  case "token": {
537
537
  const k = O(s == null ? void 0 : s.text);
538
- if (!k || !k.trim() && !Z.current)
538
+ if (!k || !k.trim() && !V.current)
539
539
  return;
540
- Q(), Z.current += k, It(a, Z.current);
540
+ Q(), V.current += k, It(a, V.current);
541
541
  return;
542
542
  }
543
543
  case "tool_call": {
@@ -545,7 +545,7 @@ function sn(t, e, n, r) {
545
545
  const k = O(s == null ? void 0 : s.name) || O(s == null ? void 0 : s.toolName) || "工具调用", $ = O(s == null ? void 0 : s.id) || void 0;
546
546
  if (k === Ct) {
547
547
  ot.current();
548
- const S = Vt(s == null ? void 0 : s.arguments), st = tt.current;
548
+ const S = Zt(s == null ? void 0 : s.arguments), st = tt.current;
549
549
  l((W) => [
550
550
  ...W,
551
551
  {
@@ -573,7 +573,7 @@ function sn(t, e, n, r) {
573
573
  turnId: a,
574
574
  role: "tool",
575
575
  kind: "tool_call",
576
- content: Zt(s == null ? void 0 : s.arguments) || "",
576
+ content: Vt(s == null ? void 0 : s.arguments) || "",
577
577
  toolName: k,
578
578
  toolCallId: $,
579
579
  status: "done",
@@ -616,8 +616,8 @@ function sn(t, e, n, r) {
616
616
  }
617
617
  case "done": {
618
618
  Q(), dt.current = !0;
619
- const k = Se(Z.current, O(s == null ? void 0 : s.content));
620
- Z.current = k, It(a, k), _(a, ($) => ({ ...$, status: "done" }));
619
+ const k = Se(V.current, O(s == null ? void 0 : s.content));
620
+ V.current = k, It(a, k), _(a, ($) => ({ ...$, status: "done" }));
621
621
  return;
622
622
  }
623
623
  case "error": {
@@ -638,7 +638,7 @@ function sn(t, e, n, r) {
638
638
  if (!v || b.current || !t)
639
639
  return;
640
640
  const y = Date.now() + X.current++, E = `assistant-${y}`, k = q.current + 1;
641
- q.current = k, Z.current = "", tt.current = 0, ht.current = 0, dt.current = !1, et.current = Promise.resolve(), F.current = 0, yt(), l((L) => [
641
+ q.current = k, V.current = "", tt.current = 0, ht.current = 0, dt.current = !1, et.current = Promise.resolve(), F.current = 0, yt(), l((L) => [
642
642
  ...L,
643
643
  { id: `user-${y}`, turnId: E, role: "user", content: v, status: "done" },
644
644
  { id: E, turnId: E, role: "assistant", content: "", status: "streaming" }
@@ -722,7 +722,7 @@ function sn(t, e, n, r) {
722
722
  M.current = !0, (a = b.current) == null || a.abort(), b.current = null, ot.current(), x.current && !((N = K.current) != null && N.serverManaged) && At(
723
723
  pt.current,
724
724
  x.current
725
- ), V.current += 1, q.current += 1, Z.current = "", tt.current = 0, ht.current = 0, dt.current = !1, mt.current.clear(), d.current = null, et.current = Promise.resolve(), F.current = 0, yt(), z.current = null, x.current = "", P(""), rt(""), J("ready"), l([]), h(!1), p(!1), Y(((s = K.current) == null ? void 0 : s.agentCode) ?? zt);
725
+ ), Z.current += 1, q.current += 1, V.current = "", tt.current = 0, ht.current = 0, dt.current = !1, mt.current.clear(), d.current = null, et.current = Promise.resolve(), F.current = 0, yt(), z.current = null, x.current = "", P(""), rt(""), J("ready"), l([]), h(!1), p(!1), Y(((s = K.current) == null ? void 0 : s.agentCode) ?? zt);
726
726
  }, [yt, Y]), St = R(async () => {
727
727
  if (x.current)
728
728
  return x.current;
@@ -753,11 +753,11 @@ function sn(t, e, n, r) {
753
753
  }, [t, Y]), le = R(
754
754
  (a, N, s) => {
755
755
  Ot(), Y(s), x.current = a, P(a), rt(N || "");
756
- const v = ++V.current;
756
+ const v = ++Z.current;
757
757
  p(!0), me(a).then((y) => {
758
- v === V.current && l((y.rounds || []).flatMap(_e));
758
+ v === Z.current && l((y.rounds || []).flatMap(_e));
759
759
  }).catch((y) => {
760
- if (v === V.current) {
760
+ if (v === Z.current) {
761
761
  if (!Me(y)) {
762
762
  o.warning("历史加载失败");
763
763
  return;
@@ -769,7 +769,7 @@ function sn(t, e, n, r) {
769
769
  });
770
770
  }
771
771
  }).finally(() => {
772
- v === V.current && p(!1);
772
+ v === Z.current && p(!1);
773
773
  });
774
774
  },
775
775
  [Ot, o, St, Y]
@@ -1318,7 +1318,7 @@ function Xe({ content: t }) {
1318
1318
  /* @__PURE__ */ c("div", { className: "om-thought-body", ref: n, children: e || "正在思考…" })
1319
1319
  ] });
1320
1320
  }
1321
- function Ve({ steps: t, live: e }) {
1321
+ function Ze({ steps: t, live: e }) {
1322
1322
  var P;
1323
1323
  const n = ve(() => qe(t), [t]), r = n[n.length - 1], o = e && (r == null ? void 0 : r.kind) === "thought" && r.status === "streaming" ? r : void 0, i = o ? n.slice(0, -1) : n, l = e, u = i.some((I) => I.kind === "tool" && I.isError === !0), h = u || l, [f, p] = w(h), [A, g] = w(h);
1324
1324
  h !== A && (g(h), p(h));
@@ -1350,7 +1350,7 @@ function Ve({ steps: t, live: e }) {
1350
1350
  o ? /* @__PURE__ */ c(Xe, { content: o.content }, o.id) : null
1351
1351
  ] });
1352
1352
  }
1353
- function Ze({
1353
+ function Ve({
1354
1354
  blocks: t,
1355
1355
  answer: e,
1356
1356
  live: n,
@@ -1365,7 +1365,7 @@ function Ze({
1365
1365
  /* @__PURE__ */ m("div", { className: "om-msg-main", children: [
1366
1366
  t.map((i, l) => {
1367
1367
  const u = n && l === t.length - 1;
1368
- return i.kind === "process" ? /* @__PURE__ */ c(Ve, { steps: i.steps, live: u }, i.key) : e ? /* @__PURE__ */ c(
1368
+ return i.kind === "process" ? /* @__PURE__ */ c(Ze, { steps: i.steps, live: u }, i.key) : e ? /* @__PURE__ */ c(
1369
1369
  ne,
1370
1370
  {
1371
1371
  message: e,
@@ -1406,8 +1406,8 @@ function cn({
1406
1406
  compact: J = !1,
1407
1407
  readOnly: X = !1
1408
1408
  }) {
1409
- const [z, V] = w(f ?? ""), [Z, tt] = w(f);
1410
- f !== Z && (tt(f), f !== void 0 && V(f));
1409
+ const [z, Z] = w(f ?? ""), [V, tt] = w(f);
1410
+ f !== V && (tt(f), f !== void 0 && Z(f));
1411
1411
  const dt = T(null), ht = T(null), et = T(null), F = e || n, q = Qe(t), U = Ye(t);
1412
1412
  let ot;
1413
1413
  if (e) {
@@ -1439,7 +1439,7 @@ function cn({
1439
1439
  }, [z]);
1440
1440
  const mt = () => {
1441
1441
  const d = z.trim();
1442
- !d || F || (r == null || r(d), V(""));
1442
+ !d || F || (r == null || r(d), Z(""));
1443
1443
  };
1444
1444
  return /* @__PURE__ */ m("div", { className: "om-chat-panel", children: [
1445
1445
  J ? null : x || /* @__PURE__ */ m("div", { className: "om-chat-head", children: [
@@ -1471,7 +1471,7 @@ function cn({
1471
1471
  );
1472
1472
  const vt = K && (!d.answer || d.answer.status === "streaming");
1473
1473
  return /* @__PURE__ */ c(
1474
- Ze,
1474
+ Ve,
1475
1475
  {
1476
1476
  blocks: d.blocks,
1477
1477
  answer: d.answer,
@@ -1497,7 +1497,7 @@ function cn({
1497
1497
  placeholder: U ? "请先回答上方提问(或停止本轮)" : $t,
1498
1498
  value: z,
1499
1499
  disabled: F,
1500
- onChange: (d) => V(d.target.value),
1500
+ onChange: (d) => Z(d.target.value),
1501
1501
  onKeyDown: (d) => {
1502
1502
  d.key === "Enter" && !d.shiftKey && !Mt(d) && (d.preventDefault(), mt());
1503
1503
  }
@@ -1,17 +1,17 @@
1
1
  import { jsxs as d, jsx as n, Fragment as G } from "react/jsx-runtime";
2
2
  import z, { useContext as he, useState as F, useMemo as ue, useId as De, useRef as Se, useLayoutEffect as Ke } from "react";
3
- import { ad as Ge, ae as ze, af as we, ag as He, ah as Ve, ai as Ue, aj as We, ak as je, a9 as $e, al as Qe, am as Je, B as T, I as V, h as Xe, ab as D, L as Ye, an as Te, u as Ze } from "./embed-mf8t3QXh.js";
3
+ import { ac as Ge, ad as ze, ae as we, af as He, ag as Ve, ah as Ue, ai as We, aj as je, a8 as $e, ak as Qe, al as Je, B as T, I as V, h as Xe, aa as D, L as Ye, am as Te, u as Ze } from "./embed-BUaR8PAn.js";
4
4
  import { u as Ae } from "./use-resizable-columns-BpMCRKif.js";
5
5
  import { u as _e } from "./use-split-width-SsLqbGjr.js";
6
6
  import { c as Fe } from "./clipboard-CbytnWlq.js";
7
- import { T as _ } from "./index-zXwXfn-X.js";
8
- import { D as ea } from "./index-DU6bO95v.js";
9
- import { I as de } from "./index-2SysmGHo.js";
10
- import { F as Pe } from "./Table-J_7eBbi7.js";
11
- import { T as aa } from "./index-CtqUgNxs.js";
12
- import { C as me } from "./Collapse-B77SsmFh.js";
13
- import { T as na } from "./index-DGbjbjBY.js";
14
- import { D as Ie } from "./index-DhSCFLtV.js";
7
+ import { T as _ } from "./index-DR9LGJpi.js";
8
+ import { D as ea } from "./index-BWmgE7bB.js";
9
+ import { I as de } from "./index-CNBwau86.js";
10
+ import { F as Pe } from "./Table-D1RvQXGM.js";
11
+ import { T as aa } from "./index-CDxeB8C4.js";
12
+ import { C as me } from "./Collapse-D9XOithE.js";
13
+ import { T as na } from "./index-Bi7O9pQv.js";
14
+ import { D as Ie } from "./index-DlqhOJnd.js";
15
15
  let O = null, W = (a) => a(), re = [], te = {};
16
16
  function ke() {
17
17
  const {
@@ -1,5 +1,5 @@
1
- import { cd as t, ah as n } from "./embed-mf8t3QXh.js";
2
- function g(s, e) {
1
+ import { cc as t, ag as n } from "./embed-BUaR8PAn.js";
2
+ function d(s, e) {
3
3
  return t.reduce((o, r) => {
4
4
  const i = s[`${r}1`], a = s[`${r}3`], u = s[`${r}6`], c = s[`${r}7`];
5
5
  return Object.assign(Object.assign({}, o), e(r, {
@@ -19,6 +19,6 @@ function p(s) {
19
19
  }
20
20
  export {
21
21
  p as a,
22
- g,
22
+ d as g,
23
23
  f as i
24
24
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import { I as f, u as M } from "./embed-mf8t3QXh.js";
2
+ import { I as f, u as M } from "./embed-BUaR8PAn.js";
3
3
  import { f as O } from "./format-CWI99NCN.js";
4
- import { m as _ } from "./material-workspace-model-QLsU5qUO.js";
5
- import { p as D } from "./community-9_7ExHcm.js";
4
+ import { m as _ } from "./material-workspace-model-BUpogooV.js";
5
+ import { p as D } from "./community-ESJc4qtl.js";
6
6
  import { useState as h, useCallback as T, useEffect as L } from "react";
7
7
  const K = /* @__PURE__ */ new Set(["xls", "xlsx", "csv", "tsv", "ods"]), P = /* @__PURE__ */ new Set(["ppt", "pptx", "odp"]), W = /* @__PURE__ */ new Set(["zip", "rar", "7z", "gz", "tar"]), j = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "webp", "bmp", "svg"]);
8
8
  function X(n) {
@@ -1,4 +1,4 @@
1
- import { t as i, r as o, cG as m, K as d } from "./embed-mf8t3QXh.js";
1
+ import { t as i, r as o, cG as m, K as d } from "./embed-BUaR8PAn.js";
2
2
  const e = "/kb/v1/community", n = () => ({ "X-Tenant-Code": d() });
3
3
  async function r(t) {
4
4
  try {