@yuku123/z-cognition-component 2.0.0 → 2.0.1

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 (174) hide show
  1. package/dist-lib/ApartmentOutlined-M6qSurnE.js +12 -0
  2. package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
  3. package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
  4. package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
  5. package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
  6. package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
  7. package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
  8. package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
  9. package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
  10. package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
  11. package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
  12. package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
  13. package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
  14. package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
  15. package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
  16. package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
  17. package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
  18. package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
  19. package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
  20. package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
  21. package/dist-lib/Skeleton-DXcERb5r.js +557 -0
  22. package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
  23. package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
  24. package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
  25. package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
  26. package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
  27. package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
  28. package/dist-lib/{agents-DS0rPJGV.js → agents-mAJW3cEN.js} +46 -46
  29. package/dist-lib/{ai-CQ67aRC4.js → ai-BcYmZiRo.js} +30 -30
  30. package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DO7GXjG4.js} +14 -13
  31. package/dist-lib/{approval-LLVR3fMa.js → approval-RPDUKg9-.js} +26 -25
  32. package/dist-lib/{approvals-D1DSA-Mw.js → approvals-CNjxJUpR.js} +43 -42
  33. package/dist-lib/{assistant-DpabpWKV.js → assistant-FIQQziCn.js} +50 -49
  34. package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-DsEGBJnq.js} +5 -5
  35. package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-B-f3k55y.js} +1 -1
  36. package/dist-lib/{audit-DeU1XEgQ.js → audit-NwnH1hm5.js} +1 -1
  37. package/dist-lib/{bios-Bk36bVhw.js → bios-CRwKtcit.js} +130 -125
  38. package/dist-lib/callSuper-DZEfdkXG.js +7 -0
  39. package/dist-lib/{changelog-CCMDMI4R.js → changelog-Dj_Pv2nc.js} +1 -1
  40. package/dist-lib/{changelog-xEt2qnho.js → changelog-DlL5u9o4.js} +2 -2
  41. package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
  42. package/dist-lib/colors-sdAcAcU3.js +24 -0
  43. package/dist-lib/context-Buz0ggsK.js +710 -0
  44. package/dist-lib/context-DpmyNOn3.js +21 -0
  45. package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
  46. package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
  47. package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
  48. package/dist-lib/{detail-Xtof0GoK.js → detail-Cfb-zdr9.js} +50 -49
  49. package/dist-lib/{detail-BW6dD_YP.js → detail-Dcfg3W8B.js} +89 -88
  50. package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
  51. package/dist-lib/{downloads-Dj4DgBSS.js → downloads-MkyxiHxi.js} +4 -3
  52. package/dist-lib/{edit-nZ7siGuW.js → edit-DLGAM-Vo.js} +265 -259
  53. package/dist-lib/{editor-BuhZwEsv.js → editor-BtiheUpe.js} +21 -20
  54. package/dist-lib/embed-DwLg9RDW.js +31148 -0
  55. package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-Dz9bUuhS.js} +15 -14
  56. package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
  57. package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
  58. package/dist-lib/index-9aQ4BzIK.js +500 -0
  59. package/dist-lib/index-B57Fj7Y0.js +1169 -0
  60. package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
  61. package/dist-lib/{index-BJ2Gpcbi.js → index-BGB6NawZ.js} +2 -2
  62. package/dist-lib/index-Bc-Vin3j.js +256 -0
  63. package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
  64. package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
  65. package/dist-lib/{index-SAPKyv8e.js → index-CJSTTgTM.js} +10 -10
  66. package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
  67. package/dist-lib/index-Cfu1W1H6.js +535 -0
  68. package/dist-lib/index-CrMcNEAZ.js +9656 -0
  69. package/dist-lib/index-Cy9i4Kx7.js +699 -0
  70. package/dist-lib/index-CyKWCYMK.js +218 -0
  71. package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
  72. package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
  73. package/dist-lib/index-DBtGE89a.js +168 -0
  74. package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
  75. package/dist-lib/{index-rtSfQuYs.js → index-D_Qey9G8.js} +12 -12
  76. package/dist-lib/index-DjFPRXl5.js +1484 -0
  77. package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
  78. package/dist-lib/{index-B5jr3A7f.js → index-DuI4K5e1.js} +19 -19
  79. package/dist-lib/index-DvWHYX81.js +450 -0
  80. package/dist-lib/{index-D5V4bZ4e.js → index-HieOUSwH.js} +8 -8
  81. package/dist-lib/index-Vu6sPBci.js +1884 -0
  82. package/dist-lib/index-bOY1cBol.js +4890 -0
  83. package/dist-lib/{index-DzrH4RQ7.js → index-c2HokEFp.js} +11 -10
  84. package/dist-lib/{index-BFRg0cn3.js → index-g16g7A4k.js} +6 -6
  85. package/dist-lib/index-nQSVLWfW.js +356 -0
  86. package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
  87. package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
  88. package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
  89. package/dist-lib/index.js +3 -1
  90. package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
  91. package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-BNoIhw6B.js} +71 -71
  92. package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-EgcbWseM.js} +3 -3
  93. package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-C023dnJ-.js} +104 -103
  94. package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-B4fGCn8m.js} +52 -51
  95. package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-EvJ9Fw7X.js} +181 -177
  96. package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
  97. package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
  98. package/dist-lib/{member-B5WF3FCj.js → member-BUg2QYlE.js} +1 -1
  99. package/dist-lib/{message-kHyjuooj.js → message-Cwj8dO78.js} +25 -24
  100. package/dist-lib/{message-D2MSaOMq.js → message-GF-w8HuR.js} +1 -1
  101. package/dist-lib/{messages-D_VDuKK7.js → messages-JID13L8-.js} +16 -15
  102. package/dist-lib/{meta-CEf_DYcU.js → meta-DPp5L3Uc.js} +1 -1
  103. package/dist-lib/{metrics-hONGW0KG.js → metrics-CT4eLzrq.js} +2 -2
  104. package/dist-lib/{monitor-DFmEu6rH.js → monitor-Bs9BfJOj.js} +4 -4
  105. package/dist-lib/{monitor-DF3WVsVV.js → monitor-CmS65YSu.js} +8 -8
  106. package/dist-lib/{my-access-j53lA6T6.js → my-access-1Yj7UloI.js} +3 -3
  107. package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-yQDHPLYI.js} +23 -22
  108. package/dist-lib/{new-DfZ61nMQ.js → new-BgkoBnZV.js} +14 -12
  109. package/dist-lib/{ontology-CUH5qslO.js → ontology-BPrbXPor.js} +145 -142
  110. package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-Cbqnm-po.js} +88 -84
  111. package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-6k-m8fzr.js} +2125 -2117
  112. package/dist-lib/ontology-modeling-BT-EuDCs.js +1039 -0
  113. package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-D3xy6IZL.js} +703 -712
  114. package/dist-lib/ontology-scenarios-DWYC2yxd.js +660 -0
  115. package/dist-lib/pages-CsexFuEz.js +73 -0
  116. package/dist-lib/pages.js +3 -3
  117. package/dist-lib/{permission-CklDU2kO.js → permission-fTfxpEhV.js} +31 -31
  118. package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
  119. package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
  120. package/dist-lib/{quota-DLe9so2b.js → quota-BlHnhkAT.js} +4 -4
  121. package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
  122. package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-B-pzX8eT.js} +2 -2
  123. package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DByQXh0y.js} +48 -46
  124. package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-Bw-6n9Kh.js} +425 -423
  125. package/dist-lib/{schedule-B_ujtL3h.js → schedule-H4_9KnRj.js} +8 -8
  126. package/dist-lib/{settings-BIkKTQjc.js → settings-C3PI8KYa.js} +147 -146
  127. package/dist-lib/{shared-Dfz1X4Mq.js → shared-DqeN-Wbb.js} +1 -1
  128. package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-DN3zT9P-.js} +2 -2
  129. package/dist-lib/{skills-BzpcX5fN.js → skills-eGlCExr0.js} +40 -39
  130. package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-BCvClzc-.js} +16 -16
  131. package/dist-lib/{task-config-D0a7TOYt.js → task-config-DEJVJ7zK.js} +4 -4
  132. package/dist-lib/{tech-CH01ekZ5.js → tech-C-4uM9bS.js} +4 -3
  133. package/dist-lib/{tools-YnTN61uE.js → tools-le6miafZ.js} +14 -14
  134. package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-B3pDp3s5.js} +13 -13
  135. package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
  136. package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-Dmp7uMHO.js} +50 -48
  137. package/dist-lib/useClosable-BY7FgWKy.js +59 -0
  138. package/dist-lib/useForm-Byp1LopG.js +145 -0
  139. package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-WT1PobuV.js} +27 -26
  140. package/dist-lib/{version-management-C_v8w1E4.js → version-management-DC0k1DRg.js} +7 -6
  141. package/dist-lib/{welcome-ChEcA4Ej.js → welcome-VyWLrbth.js} +4 -3
  142. package/package.json +2 -3
  143. package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
  144. package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
  145. package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
  146. package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
  147. package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
  148. package/dist-lib/Skeleton-CxFsInYI.js +0 -671
  149. package/dist-lib/Table-Civ838nE.js +0 -20514
  150. package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
  151. package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
  152. package/dist-lib/callSuper-CwIeyYoc.js +0 -7
  153. package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
  154. package/dist-lib/context-T27uno74.js +0 -54
  155. package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
  156. package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
  157. package/dist-lib/index-0TvzCTD7.js +0 -2336
  158. package/dist-lib/index-4tbtbcAt.js +0 -550
  159. package/dist-lib/index-B1wh6i1C.js +0 -1308
  160. package/dist-lib/index-BVgdmf6r.js +0 -2487
  161. package/dist-lib/index-CSnvcFg-.js +0 -543
  162. package/dist-lib/index-D35Ry0PG.js +0 -1162
  163. package/dist-lib/index-DC57_dnh.js +0 -604
  164. package/dist-lib/index-DQ16Zb7x.js +0 -546
  165. package/dist-lib/index-DRcTwC17.js +0 -418
  166. package/dist-lib/index-Dd9pPAT3.js +0 -2192
  167. package/dist-lib/index-DxzorPvG.js +0 -13960
  168. package/dist-lib/index-If4xc1-H.js +0 -559
  169. package/dist-lib/index-R71k3nB_.js +0 -710
  170. package/dist-lib/index-mUlorJxp.js +0 -3279
  171. package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
  172. package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
  173. package/dist-lib/pages-CticGC6S.js +0 -512
  174. package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
@@ -0,0 +1,20 @@
1
+ import { I as c, _ as a } from "./SearchOutlined-puH6bCY6.js";
2
+ import * as e from "react";
3
+ var l = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, name: "check-circle", theme: "outlined" }, i = function(t, r) {
4
+ return /* @__PURE__ */ e.createElement(c, a({}, t, {
5
+ ref: r,
6
+ icon: l
7
+ }));
8
+ }, o = /* @__PURE__ */ e.forwardRef(i);
9
+ process.env.NODE_ENV !== "production" && (o.displayName = "CheckCircleOutlined");
10
+ var d = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z" } }] }, name: "thunderbolt", theme: "outlined" }, s = function(t, r) {
11
+ return /* @__PURE__ */ e.createElement(c, a({}, t, {
12
+ ref: r,
13
+ icon: d
14
+ }));
15
+ }, u = /* @__PURE__ */ e.forwardRef(s);
16
+ process.env.NODE_ENV !== "production" && (u.displayName = "ThunderboltOutlined");
17
+ export {
18
+ o as R,
19
+ u as a
20
+ };
@@ -1,24 +1,24 @@
1
- import { jsx as e, jsxs as s, Fragment as Y } from "react/jsx-runtime";
2
- import { I as N, W as ae, g as oe, Q as ne, t as Q, k as de, j as ue } from "./embed-Bs3Hmsyy.js";
3
- import { A as me, s as he } from "./save-blob-qKrc8-z6.js";
4
- import { e as pe, f as be, h as fe, b as Ne, j as ge, k as ve, m as ye, n as we, o as ke, u as Ae } from "./ai-CQ67aRC4.js";
5
- import { A as Ce, a as xe, b as Se, c as Te, d as qe, M as ze } from "./shared-Dfz1X4Mq.js";
6
- import { a as J, t as D, u as Me, A as Ie, f as Ee } from "./shared-utils-BeRiAkbe.js";
7
- import { M as Re } from "./markdown-lite-BABX4bcl.js";
8
- import { useState as h, useRef as G, useEffect as W, Fragment as De, useMemo as X } from "react";
1
+ import { jsx as e, jsxs as s, Fragment as V } from "react/jsx-runtime";
2
+ import { I as N, O as ae, d as oe, J as ne, t as B, g as de, e as ue } from "./embed-DwLg9RDW.js";
3
+ import { A as me, s as he } from "./save-blob-B-pzX8eT.js";
4
+ import { e as pe, f as be, h as fe, b as Ne, j as ge, k as ve, m as ye, n as we, o as ke, u as Ae } from "./ai-BcYmZiRo.js";
5
+ import { A as Ce, a as xe, b as Se, c as Te, d as qe, M as ze } from "./shared-DqeN-Wbb.js";
6
+ import { a as Y, t as D, u as Me, A as Ie, f as Ee } from "./shared-utils-DN3zT9P-.js";
7
+ import { M as Re } from "./markdown-lite-EvJ9Fw7X.js";
8
+ import { useState as h, useRef as G, useEffect as Q, Fragment as De, useMemo as X } from "react";
9
9
  import { u as _e } from "./use-escape-key-4SZ4l7av.js";
10
10
  /* empty css */
11
11
  import { createPortal as $e } from "react-dom";
12
12
  const Oe = "c2f_question", te = 160, Pe = 24, Ke = 80;
13
13
  function Fe(n) {
14
- let t = J(n);
14
+ let t = Y(n);
15
15
  if (!t && typeof n == "string" && n.trim())
16
16
  try {
17
- t = J(JSON.parse(n));
17
+ t = Y(JSON.parse(n));
18
18
  } catch {
19
19
  t = null;
20
20
  }
21
- const o = t ? J(t.request) : null;
21
+ const o = t ? Y(t.request) : null;
22
22
  return {
23
23
  question: t ? D(t.question) : "",
24
24
  requestKeys: o ? Object.keys(o) : []
@@ -54,7 +54,7 @@ function Le(n) {
54
54
  }
55
55
  return null;
56
56
  }
57
- function V(n) {
57
+ function U(n) {
58
58
  return {
59
59
  ...n,
60
60
  segments: n.segments.map((t) => t.kind !== "thought" && t.kind !== "answer" ? t : (t.shown ?? 0) < t.content.length ? { ...t, shown: t.content.length } : t)
@@ -67,17 +67,17 @@ function ie(n) {
67
67
  }
68
68
  function je(n) {
69
69
  const [t, o] = h(""), [g, k] = h("creating"), [v, T] = h([]), [E, R] = h(!1), [$, C] = h(0), A = G(null), S = G(""), u = G(0);
70
- W(() => {
70
+ Q(() => {
71
71
  let c = !0;
72
72
  return k("creating"), pe(n).then((p) => {
73
73
  c && (p != null && p.id ? (S.current = p.id, o(p.id), k("ready")) : k("failed"));
74
74
  }), () => {
75
75
  c = !1;
76
76
  };
77
- }, [n, $]), W(() => () => {
77
+ }, [n, $]), Q(() => () => {
78
78
  var c;
79
79
  (c = A.current) == null || c.abort();
80
- }, []), W(() => {
80
+ }, []), Q(() => {
81
81
  if (!v.some(ie))
82
82
  return;
83
83
  const c = window.setInterval(() => {
@@ -97,7 +97,7 @@ function je(n) {
97
97
  (a) => a.map((f) => f.id === c ? p(f) : f)
98
98
  );
99
99
  }, P = (c, p) => {
100
- const a = J(p.data), f = (r, d) => ({
100
+ const a = Y(p.data), f = (r, d) => ({
101
101
  ...r,
102
102
  segments: [...r.segments, { ...d, id: `seg-${u.current++}` }]
103
103
  }), b = (r, d, z) => {
@@ -165,7 +165,7 @@ function je(n) {
165
165
  }
166
166
  case "error":
167
167
  return {
168
- ...V(_(c)),
168
+ ...U(_(c)),
169
169
  status: "error",
170
170
  error: D(a == null ? void 0 : a.message) || "调用出错"
171
171
  };
@@ -188,7 +188,7 @@ function je(n) {
188
188
  {
189
189
  onEvent: (b) => y(a, (r) => P(r, b)),
190
190
  onError: (b) => y(a, (r) => ({
191
- ...V(_(r)),
191
+ ...U(_(r)),
192
192
  status: "error",
193
193
  error: b
194
194
  }))
@@ -198,7 +198,7 @@ function je(n) {
198
198
  A.current === f && (A.current = null, R(!1)), y(
199
199
  a,
200
200
  (b) => b.status === "streaming" ? {
201
- ...V(_(b)),
201
+ ...U(_(b)),
202
202
  status: "error",
203
203
  error: "流式连接已结束但未收到完成事件"
204
204
  } : b
@@ -208,7 +208,7 @@ function je(n) {
208
208
  const c = A.current;
209
209
  A.current = null, c == null || c.abort(), R(!1), T(
210
210
  (p) => p.map(
211
- (a) => a.status === "streaming" ? { ...V(_(a)), status: "stopped" } : a
211
+ (a) => a.status === "streaming" ? { ...U(_(a)), status: "stopped" } : a
212
212
  )
213
213
  );
214
214
  };
@@ -233,7 +233,7 @@ function je(n) {
233
233
  }
234
234
  };
235
235
  }
236
- function Qe({
236
+ function Be({
237
237
  segment: n,
238
238
  onSubmit: t
239
239
  }) {
@@ -282,7 +282,7 @@ function Qe({
282
282
  function le(n) {
283
283
  return n.kind !== "thought" && n.kind !== "answer" ? n.content : n.content.slice(0, n.shown ?? 0);
284
284
  }
285
- function We({
285
+ function Qe({
286
286
  segment: n,
287
287
  onAnswer: t
288
288
  }) {
@@ -321,7 +321,7 @@ function We({
321
321
  ] });
322
322
  case "question":
323
323
  return /* @__PURE__ */ e(
324
- Qe,
324
+ Be,
325
325
  {
326
326
  segment: n,
327
327
  onSubmit: (g) => t(n.id, g)
@@ -334,7 +334,7 @@ function We({
334
334
  ] });
335
335
  }
336
336
  }
337
- function Be({
337
+ function We({
338
338
  agent: n,
339
339
  onClose: t
340
340
  }) {
@@ -350,7 +350,7 @@ function Be({
350
350
  } = je(n.code), [C, A] = h(""), S = G(null);
351
351
  return _e(() => {
352
352
  E(), t();
353
- }), W(() => {
353
+ }), Q(() => {
354
354
  const u = S.current;
355
355
  u && (u.scrollTop = u.scrollHeight);
356
356
  }, [k]), $e(
@@ -395,10 +395,10 @@ function Be({
395
395
  }
396
396
  ) })
397
397
  ] }) }),
398
- /* @__PURE__ */ e("div", { className: "drawer-body agent-debug-body", children: g !== "ready" ? /* @__PURE__ */ e("div", { className: "agent-debug-empty", children: g === "creating" ? /* @__PURE__ */ s(Y, { children: [
398
+ /* @__PURE__ */ e("div", { className: "drawer-body agent-debug-body", children: g !== "ready" ? /* @__PURE__ */ e("div", { className: "agent-debug-empty", children: g === "creating" ? /* @__PURE__ */ s(V, { children: [
399
399
  /* @__PURE__ */ e("p", { children: "正在准备调试环境…" }),
400
400
  /* @__PURE__ */ e("p", { className: "note", children: "会话 ID 仅本次调试期间在前端持有,关闭抽屉即丢弃。" })
401
- ] }) : /* @__PURE__ */ s(Y, { children: [
401
+ ] }) : /* @__PURE__ */ s(V, { children: [
402
402
  /* @__PURE__ */ e("p", { children: "调试环境准备失败,请重试。" }),
403
403
  /* @__PURE__ */ s(
404
404
  "button",
@@ -412,7 +412,7 @@ function Be({
412
412
  ]
413
413
  }
414
414
  )
415
- ] }) }) : /* @__PURE__ */ s(Y, { children: [
415
+ ] }) }) : /* @__PURE__ */ s(V, { children: [
416
416
  /* @__PURE__ */ s("div", { className: "ai-thread", ref: S, children: [
417
417
  k.length ? null : /* @__PURE__ */ e("div", { className: "agent-debug-empty", children: /* @__PURE__ */ e("p", { children: "会话已就绪,输入问题发起第一轮调用。" }) }),
418
418
  k.map((u) => /* @__PURE__ */ s(De, { children: [
@@ -424,7 +424,7 @@ function Be({
424
424
  /* @__PURE__ */ e("div", { className: "ai-avatar", children: /* @__PURE__ */ e(N, { name: "sparkles", size: 14 }) }),
425
425
  /* @__PURE__ */ s("div", { className: "ai-bubble", children: [
426
426
  u.segments.map((y) => /* @__PURE__ */ e(
427
- We,
427
+ Qe,
428
428
  {
429
429
  segment: y,
430
430
  onAnswer: (P, M) => R(u.id, P, M)
@@ -480,7 +480,7 @@ function Be({
480
480
  document.body
481
481
  );
482
482
  }
483
- function Ue({
483
+ function Je({
484
484
  mode: n,
485
485
  agent: t,
486
486
  skills: o,
@@ -499,7 +499,7 @@ function Ue({
499
499
  }), [F, L] = h(
500
500
  (t == null ? void 0 : t.skillCodes) || []
501
501
  ), [c, p] = h(!1), [a, f] = h(""), b = (i) => {
502
- f(i), Q(n === "create" ? "无法创建" : "无法保存", i, "warn");
502
+ f(i), B(n === "create" ? "无法创建" : "无法保存", i, "warn");
503
503
  }, r = (() => {
504
504
  const i = M.trim();
505
505
  if (!i)
@@ -544,7 +544,7 @@ function Ue({
544
544
  return;
545
545
  }
546
546
  O && (j = { temperature: Number(O) }), p(!0), f("");
547
- const B = {
547
+ const W = {
548
548
  code: i,
549
549
  name: x,
550
550
  description: w,
@@ -553,8 +553,8 @@ function Ue({
553
553
  llm: d(y, g),
554
554
  expand: j,
555
555
  skillCodes: F
556
- }, U = n === "create" ? await ke(B) : await Ae(B);
557
- p(!1), U && v(U);
556
+ }, J = n === "create" ? await ke(W) : await Ae(W);
557
+ p(!1), J && v(J);
558
558
  };
559
559
  return /* @__PURE__ */ e(
560
560
  ue,
@@ -689,7 +689,7 @@ function Ue({
689
689
  ] }),
690
690
  a ? /* @__PURE__ */ e("div", { className: "field span-2", children: /* @__PURE__ */ e("span", { className: "error", children: a }) }) : null
691
691
  ] }),
692
- footRight: /* @__PURE__ */ s(Y, { children: [
692
+ footRight: /* @__PURE__ */ s(V, { children: [
693
693
  /* @__PURE__ */ e("button", { className: "btn", type: "button", onClick: k, children: "取消" }),
694
694
  /* @__PURE__ */ s(
695
695
  "button",
@@ -710,7 +710,7 @@ function Ue({
710
710
  }
711
711
  function ln() {
712
712
  const [n, t] = h([]), [o, g] = h([]), [k, v] = h([]), [T, E] = h(!0), [R, $] = h(!1), [C, A] = h(""), [S, u] = h("all"), [y, P] = h(0), [M, K] = h(null), [F, L] = h(!1), [c, p] = h(null), [a, f] = h([]), [b, r] = h(!1), [d, z] = h(null), i = Me();
713
- W(() => {
713
+ Q(() => {
714
714
  let l = !0;
715
715
  return (async () => {
716
716
  E(!0), $(!1);
@@ -734,9 +734,9 @@ function ln() {
734
734
  }), [n]), I = X(() => {
735
735
  const l = C.trim();
736
736
  return n.filter((m) => S === "enabled" && !m.enabled || S === "disabled" && m.enabled ? !1 : oe(l, m.code, m.name, m.description));
737
- }, [C, n, S]), O = () => P((l) => l + 1), j = I.length > 0 && I.every((l) => a.includes(l.code)), B = () => {
737
+ }, [C, n, S]), O = () => P((l) => l + 1), j = I.length > 0 && I.every((l) => a.includes(l.code)), W = () => {
738
738
  f(j ? [] : I.map((l) => l.code));
739
- }, U = (l) => {
739
+ }, J = (l) => {
740
740
  f(
741
741
  (m) => m.includes(l) ? m.filter((q) => q !== l) : [...m, l]
742
742
  );
@@ -749,7 +749,7 @@ function ln() {
749
749
  q && (he(
750
750
  q,
751
751
  m.length === 1 ? `${m[0]}-agent-export.zip` : "agents-export.zip"
752
- ), Q(
752
+ ), B(
753
753
  "已导出智能体迁移包",
754
754
  m.length === 1 ? l[0].name : `共 ${m.length} 个智能体`,
755
755
  "success"
@@ -762,10 +762,10 @@ function ln() {
762
762
  const q = await l();
763
763
  if (q !== void 0) {
764
764
  const H = typeof q == "boolean" ? "" : q.name || q.code;
765
- Q(m, H, "success"), O();
765
+ B(m, H, "success"), O();
766
766
  }
767
767
  }, re = (l) => {
768
- z(null), Q(
768
+ z(null), B(
769
769
  (d == null ? void 0 : d.mode) === "create" ? "已新建智能体" : "已保存智能体",
770
770
  l.name,
771
771
  "success"
@@ -821,7 +821,7 @@ function ln() {
821
821
  disabled: b || c !== null,
822
822
  onClick: () => {
823
823
  if (!a.length) {
824
- Q("无法导出", "请先勾选目标智能体", "warn");
824
+ B("无法导出", "请先勾选目标智能体", "warn");
825
825
  return;
826
826
  }
827
827
  Z(
@@ -883,7 +883,7 @@ function ln() {
883
883
  type: "checkbox",
884
884
  checked: j,
885
885
  "aria-label": "全选智能体",
886
- onChange: B
886
+ onChange: W
887
887
  }
888
888
  ) }),
889
889
  /* @__PURE__ */ e("th", { children: "智能体" }),
@@ -899,7 +899,7 @@ function ln() {
899
899
  type: "checkbox",
900
900
  checked: a.includes(l.code),
901
901
  "aria-label": `选择 ${l.name}`,
902
- onChange: () => U(l.code)
902
+ onChange: () => J(l.code)
903
903
  }
904
904
  ) }),
905
905
  /* @__PURE__ */ e("td", { children: /* @__PURE__ */ s("div", { className: "ai-name-cell", children: [
@@ -1018,7 +1018,7 @@ function ln() {
1018
1018
  )
1019
1019
  ] }),
1020
1020
  d ? /* @__PURE__ */ e(
1021
- Ue,
1021
+ Je,
1022
1022
  {
1023
1023
  mode: d.mode,
1024
1024
  agent: d.agent,
@@ -1029,7 +1029,7 @@ function ln() {
1029
1029
  }
1030
1030
  ) : null,
1031
1031
  M ? /* @__PURE__ */ e(
1032
- Be,
1032
+ We,
1033
1033
  {
1034
1034
  agent: M,
1035
1035
  onClose: () => K(null)
@@ -1,4 +1,4 @@
1
- import { r as f, t as W, K as Ee, V as de } from "./embed-Bs3Hmsyy.js";
1
+ import { r as f, t as W, C as Ee, N as de } from "./embed-DwLg9RDW.js";
2
2
  var S = Uint8Array, z = Uint16Array, Me = Int32Array, ve = new S([
3
3
  0,
4
4
  0,
@@ -112,7 +112,7 @@ for (var p = 280; p < 288; ++p)
112
112
  var ye = new S(32);
113
113
  for (var p = 0; p < 32; ++p)
114
114
  ye[p] = 5;
115
- var Be = /* @__PURE__ */ q(G, 9, 1), Ne = /* @__PURE__ */ q(ye, 5, 1), X = function(e) {
115
+ var Ne = /* @__PURE__ */ q(G, 9, 1), Be = /* @__PURE__ */ q(ye, 5, 1), X = function(e) {
116
116
  for (var r = e[0], t = 1; t < e.length; ++t)
117
117
  e[t] > r && (r = e[t]);
118
118
  return r;
@@ -167,11 +167,11 @@ var Be = /* @__PURE__ */ q(G, 9, 1), Ne = /* @__PURE__ */ q(ye, 5, 1), X = funct
167
167
  var O = w(e, o + 1, 3);
168
168
  if (o += 3, O)
169
169
  if (O == 1)
170
- y = Be, E = Ne, $ = 9, x = 5;
170
+ y = Ne, E = Be, $ = 9, x = 5;
171
171
  else if (O == 2) {
172
172
  var P = w(e, o, 31) + 257, te = w(e, o + 10, 15) + 4, ne = P + w(e, o + 5, 31) + 1;
173
173
  o += 14;
174
- for (var B = new S(ne), K = new S(19), T = 0; T < te; ++T)
174
+ for (var N = new S(ne), K = new S(19), T = 0; T < te; ++T)
175
175
  K[Fe[T]] = w(e, o + T * 3, 7);
176
176
  o += te * 3;
177
177
  for (var ae = X(K), we = (1 << ae) - 1, $e = q(K, ae, 1), T = 0; T < ne; ) {
@@ -179,14 +179,14 @@ var Be = /* @__PURE__ */ q(G, 9, 1), Ne = /* @__PURE__ */ q(ye, 5, 1), X = funct
179
179
  o += oe & 15;
180
180
  var R = oe >> 4;
181
181
  if (R < 16)
182
- B[T++] = R;
182
+ N[T++] = R;
183
183
  else {
184
184
  var b = 0, J = 0;
185
- for (R == 16 ? (J = 3 + w(e, o, 3), o += 2, b = B[T - 1]) : R == 17 ? (J = 3 + w(e, o, 7), o += 3) : R == 18 && (J = 11 + w(e, o, 127), o += 7); J--; )
186
- B[T++] = b;
185
+ for (R == 16 ? (J = 3 + w(e, o, 3), o += 2, b = N[T - 1]) : R == 17 ? (J = 3 + w(e, o, 7), o += 3) : R == 18 && (J = 11 + w(e, o, 127), o += 7); J--; )
186
+ N[T++] = b;
187
187
  }
188
188
  }
189
- var se = B.subarray(0, P), M = B.subarray(P);
189
+ var se = N.subarray(0, P), M = N.subarray(P);
190
190
  $ = X(se), x = X(M), y = q(se, $, 1), E = q(M, x, 1);
191
191
  } else
192
192
  C(1);
@@ -205,7 +205,7 @@ var Be = /* @__PURE__ */ q(G, 9, 1), Ne = /* @__PURE__ */ q(ye, 5, 1), X = funct
205
205
  }
206
206
  }
207
207
  g && v(l + 131072);
208
- for (var xe = (1 << $) - 1, Re = (1 << x) - 1, V = o; ; V = o) {
208
+ for (var xe = (1 << $) - 1, Re = (1 << x) - 1, L = o; ; L = o) {
209
209
  var b = y[Y(e, o) & xe], D = b >> 4;
210
210
  if (o += b & 15, o > j) {
211
211
  m && C(0);
@@ -214,20 +214,20 @@ var Be = /* @__PURE__ */ q(G, 9, 1), Ne = /* @__PURE__ */ q(ye, 5, 1), X = funct
214
214
  if (b || C(2), D < 256)
215
215
  t[l++] = D;
216
216
  else if (D == 256) {
217
- V = o, y = null;
217
+ L = o, y = null;
218
218
  break;
219
219
  } else {
220
220
  var ie = D - 254;
221
221
  if (D > 264) {
222
- var T = D - 257, N = ve[T];
223
- ie = w(e, o, (1 << N) - 1) + ke[T], o += N;
222
+ var T = D - 257, B = ve[T];
223
+ ie = w(e, o, (1 << B) - 1) + ke[T], o += B;
224
224
  }
225
- var L = E[Y(e, o) & Re], Q = L >> 4;
226
- L || C(3), o += L & 15;
227
- var M = ze[Q];
228
- if (Q > 3) {
229
- var N = ge[Q];
230
- M += Y(e, o) & (1 << N) - 1, o += N;
225
+ var Q = E[Y(e, o) & Re], V = Q >> 4;
226
+ Q || C(3), o += Q & 15;
227
+ var M = ze[V];
228
+ if (V > 3) {
229
+ var B = ge[V];
230
+ M += Y(e, o) & (1 << B) - 1, o += B;
231
231
  }
232
232
  if (o > j) {
233
233
  m && C(0);
@@ -244,7 +244,7 @@ var Be = /* @__PURE__ */ q(G, 9, 1), Ne = /* @__PURE__ */ q(ye, 5, 1), X = funct
244
244
  t[l] = t[l - M];
245
245
  }
246
246
  }
247
- r.l = y, r.p = V, r.b = l, r.f = k, y && (k = 1, r.m = $, r.d = E, r.n = x);
247
+ r.l = y, r.p = L, r.b = l, r.f = k, y && (k = 1, r.m = $, r.d = E, r.n = x);
248
248
  } while (!k);
249
249
  return l != t.length && c ? re(t, 0, l) : t.subarray(0, l);
250
250
  }, We = /* @__PURE__ */ new S(0), U = function(e, r) {
@@ -302,7 +302,7 @@ var Ie = function(e, r) {
302
302
  }
303
303
  return [a, u, c, 0];
304
304
  };
305
- function Ve(e, r) {
305
+ function Le(e, r) {
306
306
  for (var t = {}, n = e.length - 22; A(e, n) != 101010256; --n)
307
307
  (!n || e.length - n > 65558) && C(13);
308
308
  var a = U(e, n + 8);
@@ -436,7 +436,7 @@ async function fr(e) {
436
436
  const u = JSON.parse(await r.text());
437
437
  throw new Error((u == null ? void 0 : u.message) || "技能存档下载失败");
438
438
  }
439
- const t = new Uint8Array(await r.arrayBuffer()), n = Ve(t), a = [];
439
+ const t = new Uint8Array(await r.arrayBuffer()), n = Le(t), a = [];
440
440
  for (const [u, c] of Object.entries(n))
441
441
  u.endsWith("/") || a.push({ path: u, content: Ce(c) });
442
442
  return a;
@@ -621,7 +621,7 @@ async function $r(e, r) {
621
621
  }
622
622
  a += n.decode(), a.trim() && u(a);
623
623
  }
624
- function Le(e) {
624
+ function Qe(e) {
625
625
  return e instanceof Error && e.message ? e.message : "问答执行失败";
626
626
  }
627
627
  function Ae(e, r, t) {
@@ -678,7 +678,7 @@ function Ae(e, r, t) {
678
678
  } catch (c) {
679
679
  if (n.signal.aborted)
680
680
  return;
681
- (u = t.onError) == null || u.call(t, Le(c));
681
+ (u = t.onError) == null || u.call(t, Qe(c));
682
682
  }
683
683
  })();
684
684
  return {
@@ -750,7 +750,7 @@ function s(e) {
750
750
  const r = typeof e == "number" ? e : Number(e);
751
751
  return Number.isFinite(r) ? r : 0;
752
752
  }
753
- function Qe(e) {
753
+ function Ve(e) {
754
754
  return {
755
755
  requestCount: s(e.requestCount),
756
756
  successCount: s(e.successCount),
@@ -819,7 +819,7 @@ function Dr(e, r) {
819
819
  `${i}/gateway-usage/summary`,
820
820
  { method: "get", params: { startTime: e, endTime: r } }
821
821
  );
822
- return Qe(t);
822
+ return Ve(t);
823
823
  });
824
824
  }
825
825
  function zr(e, r, t) {
@@ -831,7 +831,7 @@ function zr(e, r, t) {
831
831
  return Xe(n);
832
832
  });
833
833
  }
834
- function Br(e, r, t) {
834
+ function Nr(e, r, t) {
835
835
  return d(async () => {
836
836
  const n = await f(
837
837
  `${i}/gateway-usage/group`,
@@ -840,7 +840,7 @@ function Br(e, r, t) {
840
840
  return Ye(n);
841
841
  });
842
842
  }
843
- function Nr(e) {
843
+ function Br(e) {
844
844
  return d(async () => {
845
845
  const r = await f(`${i}/gateway-usage/page`, {
846
846
  method: "get",
@@ -895,8 +895,8 @@ export {
895
895
  Sr as J,
896
896
  Dr as K,
897
897
  zr as L,
898
- Br as M,
899
- Nr as N,
898
+ Nr as M,
899
+ Br as N,
900
900
  br as O,
901
901
  Te as P,
902
902
  $r as Q,
@@ -924,6 +924,6 @@ export {
924
924
  cr as v,
925
925
  vr as w,
926
926
  gr as x,
927
- Ve as y,
927
+ Le as y,
928
928
  Ce as z
929
929
  };
@@ -1,9 +1,10 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { Y as g, I as r } from "./embed-Bs3Hmsyy.js";
3
- import { M as f } from "./markdown-lite-BABX4bcl.js";
4
- import { g as v } from "./ai-CQ67aRC4.js";
5
- import { t as p, c as w, C as $ } from "./assistant-history-ChvhtZwX.js";
6
- import { useState as b, useEffect as M } from "react";
2
+ import { I as r } from "./embed-DwLg9RDW.js";
3
+ import { M as f } from "./markdown-lite-EvJ9Fw7X.js";
4
+ import { g } from "./ai-BcYmZiRo.js";
5
+ import { t as v, c as p, C as w } from "./assistant-history-DsEGBJnq.js";
6
+ import { useState as b, useEffect as $ } from "react";
7
+ import { c as M } from "./chunk-YDNE64FV-DGyyfCo0.js";
7
8
  function k(s) {
8
9
  return s === "kb_hub_assistant" ? "知识中台助手" : s === "kb_qa_assistant" ? "知识库助手" : s || "AI 助手";
9
10
  }
@@ -13,18 +14,18 @@ function x(s) {
13
14
  const a = new Date(s);
14
15
  return Number.isNaN(a.getTime()) ? "" : `${a.getFullYear()}年${a.getMonth() + 1}月${a.getDate()}日`;
15
16
  }
16
- function y() {
17
+ function I() {
17
18
  var m, o, d, h;
18
- const { shareToken: s = "" } = g(), [a, u] = b(null), [l, N] = b(!0);
19
- M(() => {
19
+ const { shareToken: s = "" } = M(), [a, u] = b(null), [l, N] = b(!0);
20
+ $(() => {
20
21
  let i = !0;
21
- return v(s).then((n) => {
22
+ return g(s).then((n) => {
22
23
  i && (u(n ?? null), N(!1));
23
24
  }), () => {
24
25
  i = !1;
25
26
  };
26
27
  }, [s]);
27
- const c = a ? p(a.rounds || []) : [];
28
+ const c = a ? v(a.rounds || []) : [];
28
29
  return /* @__PURE__ */ t("div", { className: "view kb-ai-page share-page", children: [
29
30
  /* @__PURE__ */ t("header", { className: "kba-head", children: [
30
31
  /* @__PURE__ */ e("div", { className: "kba-orb", children: /* @__PURE__ */ e(r, { name: "link", size: 18 }) }),
@@ -48,10 +49,10 @@ function y() {
48
49
  f,
49
50
  {
50
51
  content: i.content,
51
- cite: (n) => w(n, i.citations)
52
+ cite: (n) => p(n, i.citations)
52
53
  }
53
54
  ),
54
- i.citations.length ? /* @__PURE__ */ e($, { citations: i.citations }) : null
55
+ i.citations.length ? /* @__PURE__ */ e(w, { citations: i.citations }) : null
55
56
  ] }, i.id)
56
57
  ) }) : /* @__PURE__ */ t("div", { className: "kba-welcome", children: [
57
58
  /* @__PURE__ */ e("div", { className: "kba-welcome-orb", children: /* @__PURE__ */ e(r, { name: "message-square", size: 22 }) }),
@@ -66,5 +67,5 @@ function y() {
66
67
  ] });
67
68
  }
68
69
  export {
69
- y as default
70
+ I as default
70
71
  };