@yuku123/z-cognition-component 2.0.3 → 2.0.5

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 (160) hide show
  1. package/dist-lib/{BaseInput-DHrGPDB9.js → BaseInput-BYGhTvYI.js} +1 -1
  2. package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DACEazDR.js} +1 -1
  3. package/dist-lib/{Collapse-B77SsmFh.js → Collapse-CZbXdmBX.js} +85 -85
  4. package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-CtmAIIV3.js} +4 -4
  5. package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-pgnttbec.js} +94 -94
  6. package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-WKo_SfEi.js} +1 -1
  7. package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-B79bB1ZG.js} +1 -1
  8. package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-CFhUxTf8.js} +4 -4
  9. package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-TrlUrEUZ.js} +1 -1
  10. package/dist-lib/{Table-J_7eBbi7.js → Table-BF9fhMoT.js} +120 -120
  11. package/dist-lib/{accessAk-CA30m5eX.js → accessAk-BKnWRdnG.js} +1 -1
  12. package/dist-lib/{agents-eZDKzePP.js → agents-B5wsLzS-.js} +17 -17
  13. package/dist-lib/{ai-CNSn3-sd.js → ai-CccmxFWN.js} +1 -1
  14. package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-BjZFvUph.js} +4 -4
  15. package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-DD_F6560.js} +12 -12
  16. package/dist-lib/{approval-B-bCSmfi.js → approval-a4d4zlUd.js} +3 -3
  17. package/dist-lib/{approvals-B0ggYiyD.js → approvals-DnwdMEU5.js} +2 -2
  18. package/dist-lib/{assistant-Of0mgMsM.js → assistant-BA6oeNSC.js} +39 -39
  19. package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-Dfykk2a4.js} +5 -5
  20. package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-BkmSqskU.js} +1 -1
  21. package/dist-lib/{audit-wDNCfmOy.js → audit-ZZhtw95x.js} +1 -1
  22. package/dist-lib/{bios-CIwO1AUK.js → bios-CSjjJ5Bc.js} +11 -11
  23. package/dist-lib/{callSuper-CpMOVGin.js → callSuper-Bk-mj4By.js} +1 -1
  24. package/dist-lib/{category-9gqNseEa.js → category-9CorlqP4.js} +1 -1
  25. package/dist-lib/{causal-CzAYukj9.js → causal-CYR-CTQK.js} +5 -5
  26. package/dist-lib/{changelog-CQfIMS51.js → changelog-BcZ6KQ3C.js} +2 -2
  27. package/dist-lib/{changelog-sKJMQrlV.js → changelog-Bqm52V9T.js} +1 -1
  28. package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-Ctr_CdZu.js} +28 -28
  29. package/dist-lib/{code-space-D_ZE966E.js → code-space-DG83npvh.js} +9 -9
  30. package/dist-lib/{colors-DpKdb8L-.js → colors-DJzrNkCt.js} +3 -3
  31. package/dist-lib/{community-9_7ExHcm.js → community-CXEbdg7X.js} +1 -1
  32. package/dist-lib/{community-CfWXxujB.js → community-Cmx4qRHG.js} +3 -3
  33. package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-jguoD9kV.js} +19 -19
  34. package/dist-lib/{connections-Bcqsp11M.js → connections-DJAsz2Hb.js} +6 -6
  35. package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-BArIG0W5.js} +1 -1
  36. package/dist-lib/{detail-CV6xp_Jp.js → detail-BWBtDkWH.js} +4 -4
  37. package/dist-lib/{detail-EyLdjGpX.js → detail-CLqCbf3i.js} +37 -37
  38. package/dist-lib/{detail-DioaWKWj.js → detail-DKLwIzyI.js} +14 -14
  39. package/dist-lib/{development-CFcOIUKc.js → development-DG37KZEV.js} +17 -17
  40. package/dist-lib/{downloads-DtV5hOQv.js → downloads-Cg8PCqDp.js} +1 -1
  41. package/dist-lib/{edit-NtXUNj5N.js → edit-Cfv83zho.js} +24 -24
  42. package/dist-lib/{editor-KZhj-rwT.js → editor-BriqrlTB.js} +16 -16
  43. package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-p2TQlJtq.js} +13 -13
  44. package/dist-lib/{embed-mf8t3QXh.js → embed-CoEyJMJx.js} +3236 -3245
  45. package/dist-lib/embed.css +2 -2
  46. package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-C6CAwoWp.js} +2 -2
  47. package/dist-lib/{execution-B6HmOA2_.js → execution-BMkglxKG.js} +13 -13
  48. package/dist-lib/{graph-DHV-rdiK.js → graph-DkaHV2AX.js} +5 -5
  49. package/dist-lib/{index-BvJ35WL3.js → index-B21fkm-c.js} +9 -9
  50. package/dist-lib/{index-B5Roo82U.js → index-B2Hx9Q2V.js} +20 -20
  51. package/dist-lib/{index-CSJA8wvL.js → index-BMVRmc79.js} +36 -36
  52. package/dist-lib/{index-CdJ5ggvp.js → index-BQnPPCKW.js} +15 -15
  53. package/dist-lib/{index-BqTsLClH.js → index-BRyPjc2E.js} +1 -1
  54. package/dist-lib/{index-BkTegt8T.js → index-BeejupFS.js} +150 -150
  55. package/dist-lib/{index-BEO8itgt.js → index-BelOhXK9.js} +11 -11
  56. package/dist-lib/{index-DU6bO95v.js → index-Bqkx1OMz.js} +70 -70
  57. package/dist-lib/{index--AI-htgA.js → index-Bqpk0cSp.js} +11 -11
  58. package/dist-lib/{index-BoCtPJD4.js → index-BqvwZwaa.js} +181 -181
  59. package/dist-lib/{index-DaMLYomP.js → index-BwkQzFNo.js} +9 -9
  60. package/dist-lib/{index-BPbOPT2j.js → index-By7lJ7OM.js} +2 -2
  61. package/dist-lib/{index-B7SfTpox.js → index-C0bjp6yU.js} +19 -19
  62. package/dist-lib/{index-B12ZggsE.js → index-C8VIE0cr.js} +6 -6
  63. package/dist-lib/{index-C2CV4bte.js → index-CAk-RbBL.js} +2 -2
  64. package/dist-lib/{index-3J47mTL1.js → index-CFMm6EBU.js} +1 -1
  65. package/dist-lib/{index-zXwXfn-X.js → index-CkrD_v5E.js} +12 -12
  66. package/dist-lib/{index-DhSCFLtV.js → index-Ct0MiSE7.js} +81 -81
  67. package/dist-lib/{index-DKAGVWMX.js → index-D1vltZIy.js} +56 -56
  68. package/dist-lib/{index-BsoHetYT.js → index-DQ1YCU_6.js} +38 -38
  69. package/dist-lib/{index-xQmDaKK3.js → index-DQL0rlRD.js} +1 -1
  70. package/dist-lib/{index-DgfIEgir.js → index-Dfpj76EP.js} +1 -1
  71. package/dist-lib/{index-Bw4M9KLv.js → index-DljgNXFS.js} +73 -73
  72. package/dist-lib/{index-CgwK2maq.js → index-DrC19OH2.js} +38 -38
  73. package/dist-lib/{index-CLhLA2ig.js → index-DvdRKgvN.js} +64 -64
  74. package/dist-lib/{index-DGbjbjBY.js → index-EoyTsMVR.js} +2 -2
  75. package/dist-lib/{index-Bln3mJfp.js → index-MN71_qSy.js} +2 -2
  76. package/dist-lib/{index-CwyFMPcr.js → index-MrasjwT1.js} +10 -10
  77. package/dist-lib/{index-VeAMz0iC.js → index-TVyOVj_f.js} +39 -39
  78. package/dist-lib/{index-D6ns_Xmf.js → index-cWJDD_7e.js} +2 -2
  79. package/dist-lib/{index-QZ9JPfVR.js → index-fSzyAUm4.js} +10 -10
  80. package/dist-lib/{index-CF0ucN_K.js → index-gSQpnDVD.js} +3 -3
  81. package/dist-lib/{index-BkJjYgKD.js → index-jfZsBNfr.js} +262 -262
  82. package/dist-lib/{index-Bd7AGv4a.js → index-lpiHPbbx.js} +2 -2
  83. package/dist-lib/{index-CvxfA0ZK.js → index-ly9q05gX.js} +14 -14
  84. package/dist-lib/{index-CtqUgNxs.js → index-mANVYpNc.js} +14 -14
  85. package/dist-lib/{index-2SysmGHo.js → index-o4EXX17N.js} +73 -73
  86. package/dist-lib/index.js +1 -1
  87. package/dist-lib/{json-field-COcz5F2R.js → json-field-BqyYVncd.js} +2 -2
  88. package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-B9_s7HKJ.js} +20 -19
  89. package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D_xeQOnk.js} +1 -1
  90. package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-BIlYHNX_.js} +21 -20
  91. package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-DS9jz2ml.js} +12 -12
  92. package/dist-lib/{login-56zv4aLO.js → login-81vYOi7C.js} +6 -6
  93. package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-C0TxiY46.js} +30 -30
  94. package/dist-lib/{material-DtPASeqq.js → material-0d6ENLyU.js} +1 -1
  95. package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BqqPZtbw.js} +2 -2
  96. package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-BDeVDdfb.js} +5 -5
  97. package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-DPaWrRpo.js} +1 -1
  98. package/dist-lib/{member-Cz-OIdj9.js → member-Dc8Fi9Yt.js} +1 -1
  99. package/dist-lib/memory-reorganization-DN4oUE9r.js +1007 -0
  100. package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-BJp4AIUb.js} +19 -19
  101. package/dist-lib/{message-C9gfvpGg.js → message-C6yBkCNm.js} +1 -1
  102. package/dist-lib/{message-D6FhzB7J.js → message-DPeo_cTR.js} +3 -3
  103. package/dist-lib/{messages-cctmEVcG.js → messages-DdfLmuQI.js} +2 -2
  104. package/dist-lib/{meta-DT_O4zM9.js → meta-CBLO5qXw.js} +2 -2
  105. package/dist-lib/{metrics-BNeVcI8-.js → metrics-7ptCjiKn.js} +2 -2
  106. package/dist-lib/{mobile-D8kZjfQU.js → mobile-DC0hcQji.js} +2 -2
  107. package/dist-lib/{monitor-DexMYjzF.js → monitor-DX1u-yHi.js} +3 -3
  108. package/dist-lib/{monitor-DTUyqumg.js → monitor-DoWMKmYn.js} +3 -3
  109. package/dist-lib/{my-access-DWBV6ohp.js → my-access-64Rn1HXY.js} +3 -3
  110. package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-DKjDBIjY.js} +4 -4
  111. package/dist-lib/{navigation-DVlyWnpD.js → navigation-B_vBrx_f.js} +1 -1
  112. package/dist-lib/{new-JmARyD88.js → new-D3Q8_hzT.js} +5 -5
  113. package/dist-lib/{ontology-B4rkO33J.js → ontology-Ct7a7W50.js} +5 -5
  114. package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-DhZWKCnw.js} +1 -1
  115. package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-BG6ZPWXm.js} +35 -35
  116. package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-53pAcKaP.js} +22 -22
  117. package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-D9RViy3r.js} +1 -1
  118. package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Dx_5Dv1S.js} +3 -3
  119. package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-cbGY8kOV.js} +6 -6
  120. package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-9beSFK8t.js} +2 -2
  121. package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-BkFq7sU1.js} +33 -33
  122. package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-ANZMjyMB.js} +1 -1
  123. package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BC1UBvtT.js} +350 -350
  124. package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-dDFRrWtJ.js} +1 -1
  125. package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-B9H9VcuR.js} +18 -18
  126. package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-BcXCuUsy.js} +1 -1
  127. package/dist-lib/{permission-Dq1-AOQw.js → permission-pETAJZl6.js} +2 -2
  128. package/dist-lib/{preset-DCNSE--Y.js → preset-5F2VcdUE.js} +3 -3
  129. package/dist-lib/{progress-CZxOOnIs.js → progress-COKT887h.js} +31 -31
  130. package/dist-lib/{quota-oICQRHFU.js → quota-BzWY9oeV.js} +7 -6
  131. package/dist-lib/{row-By17TCiW.js → row-BFBgIphS.js} +2 -2
  132. package/dist-lib/{runs-DQTDpPaN.js → runs-7LWS6iAN.js} +6 -6
  133. package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-D_q2LunT.js} +2 -2
  134. package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-CDg3_f0U.js} +5 -5
  135. package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form--KSAzRS6.js} +9 -9
  136. package/dist-lib/{schedule-CwkPPSuT.js → schedule-BDrhhUsA.js} +2 -2
  137. package/dist-lib/{script-gYJAFobb.js → script-CtLQ-RSy.js} +14 -14
  138. package/dist-lib/{settings-CJd5Jj4y.js → settings--NTE0Hux.js} +71 -70
  139. package/dist-lib/{shared-DG5-VCDM.js → shared-BJA7rkgy.js} +1 -1
  140. package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-E5RBBDWx.js} +2 -2
  141. package/dist-lib/{skills-lxpJ5Lzx.js → skills-IziqBZOm.js} +5 -5
  142. package/dist-lib/{source-selection-DJnQQckl.js → source-selection-WsUOEBKN.js} +1 -1
  143. package/dist-lib/{sources-C83LpCcV.js → sources-D7ViKZtA.js} +12 -12
  144. package/dist-lib/{style-B5THvtDY.js → style-B7phAB4-.js} +8 -8
  145. package/dist-lib/{task-config-BNYoOb79.js → task-config-BhVD-uNg.js} +3 -3
  146. package/dist-lib/{tech-LuZvKDo6.js → tech-C2bOwBWk.js} +1 -1
  147. package/dist-lib/{templates-a-kbCamr.js → templates-Bh3ryZxt.js} +6 -6
  148. package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-D3193dIQ.js} +30 -30
  149. package/dist-lib/{tools-CrA6GrY6.js → tools-DCLdtvbE.js} +56 -56
  150. package/dist-lib/use-current-tenant-KGbU5HpT.js +22 -0
  151. package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-CcPd_gzX.js} +1 -1
  152. package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-CPKL_pXo.js} +1 -1
  153. package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Bi90s60B.js} +9 -9
  154. package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-SG_cMfLJ.js} +8 -8
  155. package/dist-lib/{useForm-B-dwOwJ8.js → useForm-Cp45oXOc.js} +14 -14
  156. package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-Db_RP6gX.js} +1 -1
  157. package/dist-lib/{version-management-nPlG7wQO.js → version-management-DuCdU_fJ.js} +2 -2
  158. package/dist-lib/{welcome-Cqv1-rXT.js → welcome-DLcdZGtl.js} +1 -1
  159. package/package.json +1 -1
  160. package/dist-lib/memory-reorganization-DgJnWIrW.js +0 -8
@@ -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-CoEyJMJx.js";
3
+ import { M as de } from "./markdown-lite-C0TxiY46.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-9beSFK8t.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 { ao as Ge, ap as ze, aq as we, ar as He, as as Ve, at as Ue, au as We, av as je, a8 as $e, aw as Qe, ax as Je, B as T, I as V, h as Xe, aa as D, L as Ye, ay as Te, u as Ze } from "./embed-CoEyJMJx.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-CkrD_v5E.js";
8
+ import { D as ea } from "./index-Bqkx1OMz.js";
9
+ import { I as de } from "./index-o4EXX17N.js";
10
+ import { F as Pe } from "./Table-BF9fhMoT.js";
11
+ import { T as aa } from "./index-mANVYpNc.js";
12
+ import { C as me } from "./Collapse-CZbXdmBX.js";
13
+ import { T as na } from "./index-EoyTsMVR.js";
14
+ import { D as Ie } from "./index-Ct0MiSE7.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, as as n } from "./embed-CoEyJMJx.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,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-CoEyJMJx.js";
2
2
  const e = "/kb/v1/community", n = () => ({ "X-Tenant-Code": d() });
3
3
  async function r(t) {
4
4
  try {
@@ -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-CoEyJMJx.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-DPaWrRpo.js";
5
+ import { p as D } from "./community-CXEbdg7X.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,14 +1,14 @@
1
1
  import { jsx as n, jsxs as f, Fragment as Mt } from "react/jsx-runtime";
2
- import { Component as Ft, useState as C, useRef as W, useCallback as J, useLayoutEffect as Tt, useEffect as et } from "react";
3
- import { I as R, V as jt, X as Pt, u as Rt, t as Wt } from "./embed-mf8t3QXh.js";
2
+ import { Component as Ft, useState as C, useRef as R, useCallback as J, useLayoutEffect as Tt, useEffect as et } from "react";
3
+ import { I as W, U as jt, W as Pt, u as Wt, t as Rt } from "./embed-CoEyJMJx.js";
4
4
  import { a as bt, f as Kt, b as Vt } from "./format-CWI99NCN.js";
5
5
  import { createPortal as _t } from "react-dom";
6
- import { M as Gt } from "./material-draft-markdown-281d5_GN.js";
7
- import { h as gt, M as Ht } from "./material-original-preview-CPGjdmbe.js";
8
- import { g as Xt, d as vt, a as Qt, r as Yt, c as Jt, l as Zt } from "./community-9_7ExHcm.js";
9
- import { a as tn } from "./useBreakpoint-Cul9y9Cu.js";
10
- import { T as nn } from "./index-CSJA8wvL.js";
11
- import { D as en } from "./index-DhSCFLtV.js";
6
+ import { M as Gt } from "./material-draft-markdown-BqqPZtbw.js";
7
+ import { h as gt, M as Ht } from "./material-original-preview-BDeVDdfb.js";
8
+ import { g as Xt, d as vt, a as Qt, r as Yt, c as Jt, l as Zt } from "./community-CXEbdg7X.js";
9
+ import { a as tn } from "./useBreakpoint-SG_cMfLJ.js";
10
+ import { T as nn } from "./index-BMVRmc79.js";
11
+ import { D as en } from "./index-Ct0MiSE7.js";
12
12
  function an() {
13
13
  return tn();
14
14
  }
@@ -222,7 +222,7 @@ function mn({
222
222
  onClick: (c) => {
223
223
  c.stopPropagation(), s(u.id);
224
224
  },
225
- children: /* @__PURE__ */ n(R, { name: "trash", size: 12 })
225
+ children: /* @__PURE__ */ n(W, { name: "trash", size: 12 })
226
226
  }
227
227
  ) : null
228
228
  ] })
@@ -287,7 +287,7 @@ function hn({
287
287
  onMouseDown: (k) => k.preventDefault(),
288
288
  onClick: d,
289
289
  children: [
290
- /* @__PURE__ */ n(R, { name: "message-square", size: 13 }),
290
+ /* @__PURE__ */ n(W, { name: "message-square", size: 13 }),
291
291
  "引用",
292
292
  w
293
293
  ]
@@ -343,7 +343,7 @@ function fn({
343
343
  onRevealRail: g,
344
344
  label: w = "批注"
345
345
  }) {
346
- const [k, m] = C([]), [u, c] = C(!1), [I, O] = C(""), [_, v] = C(""), [G, L] = C(0), [H, P] = C(""), q = W(""), A = W(0), [F, E] = C(null), [lt, X] = C([]), [S, T] = C(null), [Q, K] = C(null), [x, $] = C(""), [M, V] = C(""), Y = W(""), at = W({ id: "", until: 0 }), ot = J(() => {
346
+ const [k, m] = C([]), [u, c] = C(!1), [I, O] = C(""), [_, v] = C(""), [G, L] = C(0), [H, P] = C(""), q = R(""), A = R(0), [F, E] = C(null), [lt, X] = C([]), [S, T] = C(null), [Q, K] = C(null), [x, $] = C(""), [M, V] = C(""), Y = R(""), at = R({ id: "", until: 0 }), ot = J(() => {
347
347
  T(null), K(null), $(""), E(null), v("");
348
348
  }, []);
349
349
  Tt(() => {
@@ -557,7 +557,7 @@ function $n() {
557
557
  }
558
558
  function wn({ materialId: t }) {
559
559
  var K;
560
- const e = Rt(), r = on.useBreakpoint().xl, [l, p] = C(!0), [d, s] = C(!1), y = W(null), b = W(null), g = W(null), w = W(""), k = J(() => {
560
+ const e = Wt(), r = on.useBreakpoint().xl, [l, p] = C(!0), [d, s] = C(!1), y = R(null), b = R(null), g = R(null), w = R(""), k = J(() => {
561
561
  p(!0), s(!0);
562
562
  }, []), [m, u] = C(null), [c, I] = C(""), [O, _] = C(!1), [v, G] = C("draft");
563
563
  et(() => {
@@ -604,7 +604,7 @@ function wn({ materialId: t }) {
604
604
  ), $ = URL.createObjectURL(x), M = document.createElement("a");
605
605
  M.href = $, M.download = L.fileName || L.title, document.body.appendChild(M), M.click(), M.remove(), window.setTimeout(() => URL.revokeObjectURL($), 1e3);
606
606
  } catch (x) {
607
- Wt("下载失败", x.message, "error");
607
+ Rt("下载失败", x.message, "error");
608
608
  } finally {
609
609
  _(!1);
610
610
  }
@@ -613,7 +613,7 @@ function wn({ materialId: t }) {
613
613
  return /* @__PURE__ */ f("div", { className: "view community-article-view", children: [
614
614
  /* @__PURE__ */ f("div", { className: "community-article-bar", children: [
615
615
  /* @__PURE__ */ f("button", { className: "btn sm ghost", type: "button", "aria-label": "返回社区", onClick: () => e("/community"), children: [
616
- /* @__PURE__ */ n(R, { name: "arrow-left", size: 13 }),
616
+ /* @__PURE__ */ n(W, { name: "arrow-left", size: 13 }),
617
617
  /* @__PURE__ */ n("span", { className: "community-article-action-text", children: "返回社区" })
618
618
  ] }),
619
619
  m ? /* @__PURE__ */ n(
@@ -639,7 +639,7 @@ function wn({ materialId: t }) {
639
639
  "aria-expanded": r ? l : d,
640
640
  onClick: () => r ? p(!l) : s(!d),
641
641
  children: [
642
- /* @__PURE__ */ n(R, { name: "message-square", size: 13 }),
642
+ /* @__PURE__ */ n(W, { name: "message-square", size: 13 }),
643
643
  "评论",
644
644
  E.annotations.length ? ` · ${E.annotations.length}` : ""
645
645
  ]
@@ -654,7 +654,7 @@ function wn({ materialId: t }) {
654
654
  "aria-label": O ? "下载中…" : "下载原件",
655
655
  onClick: () => void Q(),
656
656
  children: [
657
- /* @__PURE__ */ n(R, { name: "download", size: 13 }),
657
+ /* @__PURE__ */ n(W, { name: "download", size: 13 }),
658
658
  /* @__PURE__ */ n("span", { className: "community-article-action-text", children: O ? "下载中…" : "下载原件" })
659
659
  ]
660
660
  }
@@ -666,7 +666,7 @@ function wn({ materialId: t }) {
666
666
  /* @__PURE__ */ n("circle", { cx: x.sx, cy: x.sy, r: 2.4 })
667
667
  ] }, x.id)) }) : null,
668
668
  /* @__PURE__ */ n("div", { "data-annotation-scroll": !0, className: `community-article-scroll${A ? " community-article-original-mode" : ""}`, children: c ? /* @__PURE__ */ f("div", { className: "empty", children: [
669
- /* @__PURE__ */ n("div", { className: "empty-icon", children: /* @__PURE__ */ n(R, { name: "alert-triangle", size: 22 }) }),
669
+ /* @__PURE__ */ n("div", { className: "empty-icon", children: /* @__PURE__ */ n(W, { name: "alert-triangle", size: 22 }) }),
670
670
  /* @__PURE__ */ n("b", { children: "资料详情加载失败" }),
671
671
  /* @__PURE__ */ n("p", { children: c }),
672
672
  /* @__PURE__ */ n("button", { className: "btn primary", type: "button", onClick: () => e("/community"), children: "回到社区列表" })
@@ -707,7 +707,7 @@ function wn({ materialId: t }) {
707
707
  )
708
708
  }
709
709
  ) : /* @__PURE__ */ f("div", { className: "empty", children: [
710
- /* @__PURE__ */ n("div", { className: "empty-icon", children: /* @__PURE__ */ n(R, { name: "file-text", size: 22 }) }),
710
+ /* @__PURE__ */ n("div", { className: "empty-icon", children: /* @__PURE__ */ n(W, { name: "file-text", size: 22 }) }),
711
711
  /* @__PURE__ */ n("b", { children: F === "原文" ? "原文为空" : "暂无解析稿" }),
712
712
  q ? /* @__PURE__ */ n("button", { className: "btn sm", type: "button", onClick: () => G("original"), children: "查看原件" }) : null
713
713
  ] }) })
@@ -721,7 +721,7 @@ function wn({ materialId: t }) {
721
721
  "评论 · ",
722
722
  E.annotations.length
723
723
  ] }),
724
- /* @__PURE__ */ n("button", { className: "btn xs ghost", type: "button", "aria-label": "关闭评论栏", onClick: () => p(!1), children: /* @__PURE__ */ n(R, { name: "chevron-right", size: 13 }) })
724
+ /* @__PURE__ */ n("button", { className: "btn xs ghost", type: "button", "aria-label": "关闭评论栏", onClick: () => p(!1), children: /* @__PURE__ */ n(W, { name: "chevron-right", size: 13 }) })
725
725
  ] }),
726
726
  T
727
727
  ] }) : null
@@ -1,13 +1,13 @@
1
1
  import { jsx as e, jsxs as a, Fragment as G } from "react/jsx-runtime";
2
- import { t as L, r as R, I as z, j as ie, k as K, A as ce, B as X, df as re } from "./embed-mf8t3QXh.js";
2
+ import { t as L, r as R, I as z, j as ie, k as K, A as ce, B as X, df as re } from "./embed-CoEyJMJx.js";
3
3
  import { c as de } from "./clipboard-CbytnWlq.js";
4
- import { A as oe, a as me, c as ue } from "./shared-DG5-VCDM.js";
5
- import { f as Z } from "./shared-utils-CFHws1DA.js";
4
+ import { A as oe, a as me, c as ue } from "./shared-BJA7rkgy.js";
5
+ import { f as Z } from "./shared-utils-E5RBBDWx.js";
6
6
  /* empty css */
7
7
  import { useState as r, useEffect as Q } from "react";
8
- import { D as he } from "./index-DhSCFLtV.js";
9
- import { P as pe } from "./Pagination-BJ8wnqAa.js";
10
- import { I as W } from "./index-2SysmGHo.js";
8
+ import { D as he } from "./index-Ct0MiSE7.js";
9
+ import { P as pe } from "./Pagination-CFhUxTf8.js";
10
+ import { I as W } from "./index-o4EXX17N.js";
11
11
  const H = "/future-brain/v1/mcp-service";
12
12
  async function F(n, l) {
13
13
  try {
@@ -1,4 +1,4 @@
1
- import { cS as c } from "./embed-mf8t3QXh.js";
1
+ import { cS as c } from "./embed-CoEyJMJx.js";
2
2
  function y(t, l) {
3
3
  var e = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
4
4
  if (!e) {
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import { X as h, e as u, d9 as p, dh as k, S as b, L as c, B as m, I as g } from "./embed-mf8t3QXh.js";
3
- import { P as v } from "./index-Bd7AGv4a.js";
4
- import { u as N, b as w, a as y, F as P, f as I } from "./ontology-flow-CW0SzeK7.js";
5
- import { R as S } from "./index-DaMLYomP.js";
2
+ import { W as h, e as u, d9 as p, dh as k, S as b, L as c, B as m, I as g } from "./embed-CoEyJMJx.js";
3
+ import { P as v } from "./index-lpiHPbbx.js";
4
+ import { u as N, b as w, a as y, F as P, f as I } from "./ontology-flow-cbGY8kOV.js";
5
+ import { R as S } from "./index-BwkQzFNo.js";
6
6
  const T = {
7
7
  done: "green",
8
8
  active: "blue",