@yuku123/z-cognition-component 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/ApartmentOutlined-M6qSurnE.js +12 -0
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +12 -0
- package/dist-lib/{ConceptsPage-DOf_CJlz.js → ConceptsPage-BOeKdDKI.js} +16 -13
- package/dist-lib/{DocsPage-CiC7TU96.js → DocsPage-BZOBFp3c.js} +4 -4
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +91 -0
- package/dist-lib/{EyeOutlined-CH-5UdnC.js → EyeOutlined-DGSrX-0M.js} +1 -1
- package/dist-lib/ImpactPage-DyhUR6fT.js +71 -0
- package/dist-lib/{LeftOutlined-DQTflZ6D.js → LeftOutlined-Cgo6Izj-.js} +1 -1
- package/dist-lib/{OntologyDetailPage-mgK_NQxP.js → OntologyDetailPage-B8DyU8WW.js} +93 -99
- package/dist-lib/{OntologyInferPage-NUaoaQpN.js → OntologyInferPage-CvcjxpBB.js} +40 -38
- package/dist-lib/{OntologyListPage-C9wH01y0.js → OntologyListPage-Cb0XfpWE.js} +49 -47
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +136 -0
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +1268 -0
- package/dist-lib/{OntologyValidatePage-DtkYK_l4.js → OntologyValidatePage-abQVJwzV.js} +52 -49
- package/dist-lib/{Pagination-Ds8VKQIT.js → Pagination-Dxslodkq.js} +258 -260
- package/dist-lib/PlusOutlined-B_dXo_97.js +12 -0
- package/dist-lib/{ReloadOutlined-B26pDoyV.js → ReloadOutlined-CS-e-TmN.js} +10 -19
- package/dist-lib/{ResolvePage-Cz9HORZ3.js → ResolvePage-rbQ-8nNZ.js} +33 -31
- package/dist-lib/{RotateRightOutlined-B575hEBK.js → RotateRightOutlined-q7zp2e47.js} +1 -1
- package/dist-lib/SearchOutlined-puH6bCY6.js +979 -0
- package/dist-lib/Skeleton-DXcERb5r.js +557 -0
- package/dist-lib/{Table-D8pPXolZ.js → Table-CDagah-g.js} +452 -450
- package/dist-lib/TagsOutlined-B4_qkn6-.js +20 -0
- package/dist-lib/TermDetailPage-CP0D6OvA.js +242 -0
- package/dist-lib/{TermsPage-BuzCMYov.js → TermsPage-CuufAyuL.js} +31 -28
- package/dist-lib/TextArea-DTpTS5HL.js +1897 -0
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +20 -0
- package/dist-lib/{agents-DS0rPJGV.js → agents-CvgRLQw2.js} +46 -46
- package/dist-lib/{ai-CQ67aRC4.js → ai-DYDhijtn.js} +30 -30
- package/dist-lib/{ai-chat-share-AOB7rEOb.js → ai-chat-share-DJnybJtS.js} +14 -13
- package/dist-lib/{approval-LLVR3fMa.js → approval-3IbhY8Lp.js} +26 -25
- package/dist-lib/{approvals-D1DSA-Mw.js → approvals-Cd6CVzz4.js} +43 -42
- package/dist-lib/{assistant-DpabpWKV.js → assistant-cIXgilaE.js} +50 -49
- package/dist-lib/{assistant-history-ChvhtZwX.js → assistant-history-BQzH4ChB.js} +5 -5
- package/dist-lib/{assistant-summary-B0ksF8CX.js → assistant-summary-LKTj_HKM.js} +1 -1
- package/dist-lib/{audit-DeU1XEgQ.js → audit-CxuJ5unU.js} +1 -1
- package/dist-lib/{bios-Bk36bVhw.js → bios-BplnCOF4.js} +130 -125
- package/dist-lib/callSuper-DZEfdkXG.js +7 -0
- package/dist-lib/{changelog-xEt2qnho.js → changelog-BoGqt_81.js} +2 -2
- package/dist-lib/{changelog-CCMDMI4R.js → changelog-Cn81Dvgk.js} +1 -1
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +2004 -0
- package/dist-lib/colors-sdAcAcU3.js +24 -0
- package/dist-lib/context-Buz0ggsK.js +710 -0
- package/dist-lib/context-DpmyNOn3.js +21 -0
- package/dist-lib/createForOfIteratorHelper-DEx_aTey.js +51 -0
- package/dist-lib/d3-force-CZK-Rgd6.js +598 -0
- package/dist-lib/{dayjs.min-DoEf5yCX.js → dayjs.min-BauDENhn.js} +1 -1
- package/dist-lib/{detail-Xtof0GoK.js → detail-BaX7WiWV.js} +51 -50
- package/dist-lib/{detail-BW6dD_YP.js → detail-Cx5c4KJH.js} +89 -88
- package/dist-lib/{docx-preview-D4v2g8Yg.js → docx-preview-B5nQuTwk.js} +1 -1
- package/dist-lib/{downloads-Dj4DgBSS.js → downloads-C3Oz04OW.js} +4 -3
- package/dist-lib/{edit-nZ7siGuW.js → edit-Cbn2eJaJ.js} +265 -259
- package/dist-lib/{editor-BuhZwEsv.js → editor-mtaJBQXz.js} +21 -20
- package/dist-lib/embed-CR8XVkMy.js +31148 -0
- package/dist-lib/{evaluation-B-igEqQ9.js → evaluation-BoHiY8yT.js} +15 -14
- package/dist-lib/{focus-set-DfRWcq91.js → focus-set-h0YtOUB2.js} +34 -33
- package/dist-lib/{format-CWI99NCN.js → format-UGmYKemG.js} +1 -1
- package/dist-lib/index-9aQ4BzIK.js +500 -0
- package/dist-lib/{index-BJ2Gpcbi.js → index-B22_2Dzh.js} +2 -2
- package/dist-lib/index-B57Fj7Y0.js +1169 -0
- package/dist-lib/{index-D_-8dmug.js → index-BEjXaDfk.js} +23 -22
- package/dist-lib/{index-rtSfQuYs.js → index-BSlCGnzo.js} +12 -12
- package/dist-lib/index-Bc-Vin3j.js +256 -0
- package/dist-lib/{index-SAPKyv8e.js → index-Bm1sK-VN.js} +10 -10
- package/dist-lib/{index-g9uC_rON.js → index-BwVZgt5s.js} +129 -146
- package/dist-lib/{index-CZipVp1G.js → index-C3AMwzIi.js} +1 -1
- package/dist-lib/{index-B5jr3A7f.js → index-CHBNrCMy.js} +19 -19
- package/dist-lib/{index-BFRg0cn3.js → index-CLTfICbf.js} +6 -6
- package/dist-lib/{index-CnLkqTRm.js → index-CaXylbQR.js} +175 -173
- package/dist-lib/index-Cfu1W1H6.js +535 -0
- package/dist-lib/{index-DzrH4RQ7.js → index-Cj4DDWyj.js} +11 -10
- package/dist-lib/index-CrMcNEAZ.js +9656 -0
- package/dist-lib/index-Cy9i4Kx7.js +699 -0
- package/dist-lib/index-CyKWCYMK.js +218 -0
- package/dist-lib/{index-CjwzwBTy.js → index-D3GHtSlM.js} +94 -93
- package/dist-lib/{index-B8l4PAGJ.js → index-DBlG9uXV.js} +112 -108
- package/dist-lib/index-DBtGE89a.js +168 -0
- package/dist-lib/{index-CS5YTpdI.js → index-DMTPsTna.js} +4 -3
- package/dist-lib/index-DjFPRXl5.js +1484 -0
- package/dist-lib/{index-Bu6udiyN.js → index-DsuUGhTA.js} +123 -121
- package/dist-lib/index-DvWHYX81.js +450 -0
- package/dist-lib/{index-D5V4bZ4e.js → index-PBT9GksC.js} +8 -8
- package/dist-lib/index-Vu6sPBci.js +1884 -0
- package/dist-lib/index-bOY1cBol.js +4890 -0
- package/dist-lib/index-nQSVLWfW.js +356 -0
- package/dist-lib/{index-pcUZcUIA.js → index-o65vKUwa.js} +48 -47
- package/dist-lib/{index-K7z38Ybg.js → index-ounfql2z.js} +33 -31
- package/dist-lib/{index-B1rpIXU7.js → index-y7jVGGI0.js} +23 -21
- package/dist-lib/index.js +3 -1
- package/dist-lib/{jszip.min-dcaDnWUw.js → jszip.min-DcEHhn-b.js} +1 -1
- package/dist-lib/{kb-form-modal-9L0AUHVG.js → kb-form-modal-B0rM1ZvV.js} +71 -71
- package/dist-lib/{kbTeam-BECePvJe.js → kbTeam-Bh_FQH28.js} +3 -3
- package/dist-lib/{knowledge-base-C8gHP0dj.js → knowledge-base-Cl1Ka1e6.js} +104 -103
- package/dist-lib/{knowledge-hub-C9KkDv1A.js → knowledge-hub-CPuzdRiq.js} +52 -51
- package/dist-lib/{markdown-lite-BABX4bcl.js → markdown-lite-Cu62Fl7J.js} +181 -177
- package/dist-lib/{material-preview-docx-lp_xPipj.js → material-preview-docx-CH-09KeC.js} +1 -1
- package/dist-lib/{material-preview-pdf-CKAovvpc.js → material-preview-pdf-CTSo215V.js} +7 -7
- package/dist-lib/{material-preview-pptx-6Byitp0J.js → material-preview-pptx-D8XGDF-u.js} +1 -1
- package/dist-lib/{member-B5WF3FCj.js → member-DKDx77PD.js} +1 -1
- package/dist-lib/{message-kHyjuooj.js → message-BrooQ3Q7.js} +25 -24
- package/dist-lib/{message-D2MSaOMq.js → message-Dievi8Jw.js} +1 -1
- package/dist-lib/{messages-D_VDuKK7.js → messages-xTNmTS9g.js} +16 -15
- package/dist-lib/{meta-CEf_DYcU.js → meta-BD_qYTZu.js} +1 -1
- package/dist-lib/{metrics-hONGW0KG.js → metrics-DiHYqBKB.js} +2 -2
- package/dist-lib/{monitor-DF3WVsVV.js → monitor-BBCu3zRe.js} +8 -8
- package/dist-lib/{monitor-DFmEu6rH.js → monitor-BXsdMJSV.js} +4 -4
- package/dist-lib/{my-access-j53lA6T6.js → my-access-CEGErUgv.js} +4 -4
- package/dist-lib/{my-permissions-C5L8ZN2d.js → my-permissions-wSr5zv7g.js} +23 -22
- package/dist-lib/{new-DfZ61nMQ.js → new-BevAuTe5.js} +14 -12
- package/dist-lib/{ontology-CUH5qslO.js → ontology-DXGSJC-y.js} +145 -142
- package/dist-lib/{ontology-domains-CRC1ZRit.js → ontology-domains-jTG7CZm8.js} +88 -84
- package/dist-lib/ontology-modeling-CjRsa-DR.js +1039 -0
- package/dist-lib/{ontology-modeling-DaSk5fsh.js → ontology-modeling-DOj68TuI.js} +2125 -2117
- package/dist-lib/ontology-scenarios-CcAagMiP.js +660 -0
- package/dist-lib/{ontology-scenarios-DAbyoKV6.js → ontology-scenarios-J5kw6xgi.js} +703 -712
- package/dist-lib/pages-CsexFuEz.js +73 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-CklDU2kO.js → permission-BUXo69Ne.js} +31 -31
- package/dist-lib/{pptx-preview.es-D4ODiBv2.js → pptx-preview.es-AUrdYKu3.js} +2 -2
- package/dist-lib/{preset-Bp_mvsJm.js → preset-gh5SGoYT.js} +9810 -10199
- package/dist-lib/{quota-DLe9so2b.js → quota-D31cXjul.js} +4 -4
- package/dist-lib/{row-CE051ClO.js → row-B5MnGm9M.js} +63 -61
- package/dist-lib/{save-blob-qKrc8-z6.js → save-blob-CiWNK-cX.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-CSDqIN3R.js → scenario-mapping-preview-DQ_OBV4Z.js} +48 -46
- package/dist-lib/{scenario-simple-form-CAkhVgeV.js → scenario-simple-form-DESMvU7A.js} +425 -423
- package/dist-lib/{schedule-B_ujtL3h.js → schedule-BktxwX3S.js} +8 -8
- package/dist-lib/{settings-BIkKTQjc.js → settings-dsB3H65I.js} +147 -146
- package/dist-lib/{shared-Dfz1X4Mq.js → shared-CTCzvhyE.js} +1 -1
- package/dist-lib/{shared-utils-BeRiAkbe.js → shared-utils-BstybhBG.js} +2 -2
- package/dist-lib/{skills-BzpcX5fN.js → skills-CHPlMsgO.js} +40 -39
- package/dist-lib/{source-selection-DOL5LBrV.js → source-selection-tXqc855k.js} +16 -16
- package/dist-lib/{task-config-D0a7TOYt.js → task-config-BiTOiZj0.js} +4 -4
- package/dist-lib/{tech-CH01ekZ5.js → tech-BKlGPkV0.js} +4 -3
- package/dist-lib/{tools-YnTN61uE.js → tools-CouQ4FWk.js} +14 -14
- package/dist-lib/{use-domain-access-CXx1YzE5.js → use-domain-access-BPlNfoiP.js} +13 -13
- package/dist-lib/use-g6-graph-WLX0PweO.js +1119 -0
- package/dist-lib/{use-graph-layers-CowyyYcb.js → use-graph-layers-ja-ZIC_R.js} +50 -48
- package/dist-lib/useClosable-BY7FgWKy.js +59 -0
- package/dist-lib/useForm-Byp1LopG.js +145 -0
- package/dist-lib/{version-control-panel-CLy2ZXI_.js → version-control-panel-CkBm36Yk.js} +27 -26
- package/dist-lib/{version-management-C_v8w1E4.js → version-management-B4kIbdVc.js} +7 -6
- package/dist-lib/{welcome-ChEcA4Ej.js → welcome-F5iZoFB1.js} +4 -3
- package/package.json +2 -3
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +0 -90
- package/dist-lib/ImpactPage-CYiuqy0S.js +0 -68
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +0 -134
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +0 -2844
- package/dist-lib/PlusOutlined-BSTPGLOH.js +0 -21
- package/dist-lib/Skeleton-CxFsInYI.js +0 -671
- package/dist-lib/Table-Civ838nE.js +0 -20514
- package/dist-lib/TermDetailPage-BtkOpbPT.js +0 -263
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist-lib/callSuper-CwIeyYoc.js +0 -7
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +0 -1627
- package/dist-lib/context-T27uno74.js +0 -54
- package/dist-lib/d3-force-Cr_oBTiR.js +0 -647
- package/dist-lib/embed-Bs3Hmsyy.js +0 -51377
- package/dist-lib/index-0TvzCTD7.js +0 -2336
- package/dist-lib/index-4tbtbcAt.js +0 -550
- package/dist-lib/index-B1wh6i1C.js +0 -1308
- package/dist-lib/index-BVgdmf6r.js +0 -2487
- package/dist-lib/index-CSnvcFg-.js +0 -543
- package/dist-lib/index-D35Ry0PG.js +0 -1162
- package/dist-lib/index-DC57_dnh.js +0 -604
- package/dist-lib/index-DQ16Zb7x.js +0 -546
- package/dist-lib/index-DRcTwC17.js +0 -418
- package/dist-lib/index-Dd9pPAT3.js +0 -2192
- package/dist-lib/index-DxzorPvG.js +0 -13960
- package/dist-lib/index-If4xc1-H.js +0 -559
- package/dist-lib/index-R71k3nB_.js +0 -710
- package/dist-lib/index-mUlorJxp.js +0 -3279
- package/dist-lib/ontology-modeling-CvJIImxt.js +0 -3612
- package/dist-lib/ontology-scenarios-BRDkk3uA.js +0 -675
- package/dist-lib/pages-CticGC6S.js +0 -512
- package/dist-lib/use-g6-graph-SwJtPLce.js +0 -57552
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as Te } from "react/jsx-runtime";
|
|
2
|
-
import { t as ae, r as pe,
|
|
3
|
-
import { A as
|
|
4
|
-
import { g as kl, s as
|
|
5
|
-
import { l as kn, a as
|
|
6
|
-
import { e as
|
|
7
|
-
import { useState as m, useCallback as Ce, useMemo as Ae, useEffect as se, createContext as Sl, useContext as
|
|
2
|
+
import { t as ae, r as pe, C as Lt, N as zi, I as h, g as Gn, d as Cn, e as Rt, O as Va, P as Pi, Q as Oi, S as ps } from "./embed-CR8XVkMy.js";
|
|
3
|
+
import { A as Ui } from "./index-CHBNrCMy.js";
|
|
4
|
+
import { g as kl, s as Bi } from "./assistant-summary-LKTj_HKM.js";
|
|
5
|
+
import { l as kn, a as Fi, t as wl, s as Cl, G as _i, b as Gi, r as Qa, c as Wi, d as El, e as Ki, f as qi, g as Hi, h as ji, i as Yi, j as Vi, k as Qi } from "./source-selection-tXqc855k.js";
|
|
6
|
+
import { e as Xi, K as Ji } from "./kb-form-modal-B0rM1ZvV.js";
|
|
7
|
+
import { useState as m, useCallback as Ce, useMemo as Ae, useEffect as se, createContext as Sl, useContext as Xa, useRef as ve, Fragment as Wn, Suspense as Ln, lazy as Jn, useLayoutEffect as Zi } from "react";
|
|
8
8
|
import { createPortal as Kt } from "react-dom";
|
|
9
9
|
import { u as dn } from "./use-split-width-SsLqbGjr.js";
|
|
10
|
-
import { a as Oe, b as At, f as ln } from "./format-
|
|
10
|
+
import { a as Oe, b as At, f as ln } from "./format-UGmYKemG.js";
|
|
11
11
|
import { H as Gt } from "./index-mmwKYfDC.js";
|
|
12
|
-
import { T as
|
|
12
|
+
import { T as er } from "./index-BwVZgt5s.js";
|
|
13
|
+
import { u as Zn, b as Ja, c as tr } from "./chunk-YDNE64FV-DGyyfCo0.js";
|
|
13
14
|
import { u as Il } from "./use-escape-key-4SZ4l7av.js";
|
|
14
|
-
import { d as Ut } from "./dayjs.min-
|
|
15
|
-
import { f as Tl, M as ea } from "./markdown-lite-
|
|
15
|
+
import { d as Ut } from "./dayjs.min-BauDENhn.js";
|
|
16
|
+
import { f as Tl, M as ea } from "./markdown-lite-Cu62Fl7J.js";
|
|
16
17
|
/* empty css */
|
|
17
|
-
import { l as fs, a as gs } from "./ai-
|
|
18
|
-
import { u as nr, t as bs, a as ar, h as sr, s as lr, f as ir, b as Ns, c as rr, C as cr } from "./assistant-history-
|
|
18
|
+
import { l as fs, a as gs } from "./ai-DYDhijtn.js";
|
|
19
|
+
import { u as nr, t as bs, a as ar, h as sr, s as lr, f as ir, b as Ns, c as rr, C as cr } from "./assistant-history-BQzH4ChB.js";
|
|
19
20
|
const ut = "/kb/v1/wiki", mt = () => ({ "X-Tenant-Code": Lt() });
|
|
20
21
|
async function Nt(t) {
|
|
21
22
|
try {
|
|
@@ -1286,7 +1287,7 @@ function gc(t) {
|
|
|
1286
1287
|
}
|
|
1287
1288
|
const Wl = Sl(/* @__PURE__ */ new Map());
|
|
1288
1289
|
function bc(t) {
|
|
1289
|
-
return
|
|
1290
|
+
return Xa(Wl).get(t);
|
|
1290
1291
|
}
|
|
1291
1292
|
const Kl = Sl({
|
|
1292
1293
|
blocked: null,
|
|
@@ -1297,7 +1298,7 @@ const Kl = Sl({
|
|
|
1297
1298
|
}
|
|
1298
1299
|
});
|
|
1299
1300
|
function ql() {
|
|
1300
|
-
return
|
|
1301
|
+
return Xa(Kl);
|
|
1301
1302
|
}
|
|
1302
1303
|
function Oa(t, n) {
|
|
1303
1304
|
t.preventDefault(), window.open(n, "_blank", "noopener,noreferrer");
|
|
@@ -2245,7 +2246,7 @@ const Mc = [
|
|
|
2245
2246
|
"redo"
|
|
2246
2247
|
];
|
|
2247
2248
|
function zc() {
|
|
2248
|
-
return `${"
|
|
2249
|
+
return `${"./".replace(/\/$/, "")}/vditor`;
|
|
2249
2250
|
}
|
|
2250
2251
|
function Pc(t, n, s, l, i, r) {
|
|
2251
2252
|
const c = t.slice(n, s) || r, o = l + c + i;
|
|
@@ -2303,7 +2304,7 @@ function Uc({
|
|
|
2303
2304
|
if (!N)
|
|
2304
2305
|
return;
|
|
2305
2306
|
let C = !1, f = null;
|
|
2306
|
-
return import("./index-
|
|
2307
|
+
return import("./index-C3AMwzIi.js").then((w) => w.i).then(({ default: w }) => {
|
|
2307
2308
|
C || (f = new w(N, {
|
|
2308
2309
|
cdn: zc(),
|
|
2309
2310
|
mode: "ir",
|
|
@@ -2456,7 +2457,7 @@ function kt({
|
|
|
2456
2457
|
onClick: n,
|
|
2457
2458
|
children: s
|
|
2458
2459
|
}) {
|
|
2459
|
-
return /* @__PURE__ */ e(
|
|
2460
|
+
return /* @__PURE__ */ e(er, { title: t, children: /* @__PURE__ */ e("button", { className: "md-editor-tool", type: "button", onClick: n, children: s }) });
|
|
2460
2461
|
}
|
|
2461
2462
|
function Xl({ url: t, compact: n = !1 }) {
|
|
2462
2463
|
return /* @__PURE__ */ a(
|
|
@@ -2657,7 +2658,7 @@ function Gc(t) {
|
|
|
2657
2658
|
const n = (t || "").trim().toLowerCase().replace(/^\./, "");
|
|
2658
2659
|
return n === "pdf" ? "pdf" : n === "docx" ? "docx" : n === "doc" ? "doc" : Fc.has(n) ? "sheet" : n === "pptx" ? "pptx" : Bc.has(n) ? "image" : n === "md" || n === "markdown" ? "markdown" : _c.has(n) ? "text" : "unsupported";
|
|
2659
2660
|
}
|
|
2660
|
-
const Wc =
|
|
2661
|
+
const Wc = Jn(() => import("./material-preview-pdf-CTSo215V.js")), Kc = Jn(() => import("./material-preview-docx-CH-09KeC.js")), qc = Jn(() => import("./material-preview-sheet-DjnALVxs.js")), Hc = Jn(() => import("./material-preview-pptx-D8XGDF-u.js")), jc = {
|
|
2661
2662
|
png: "image/png",
|
|
2662
2663
|
jpg: "image/jpeg",
|
|
2663
2664
|
jpeg: "image/jpeg",
|
|
@@ -3095,7 +3096,7 @@ function so({
|
|
|
3095
3096
|
kbId: t,
|
|
3096
3097
|
materialId: n
|
|
3097
3098
|
}) {
|
|
3098
|
-
const s =
|
|
3099
|
+
const s = Zn(), [l, i] = m(null);
|
|
3099
3100
|
return se(() => {
|
|
3100
3101
|
let r = !1;
|
|
3101
3102
|
return (async () => {
|
|
@@ -5283,7 +5284,7 @@ function ed({
|
|
|
5283
5284
|
if (G && !G.loading)
|
|
5284
5285
|
return G.docs;
|
|
5285
5286
|
L(z, { loading: !0, docs: [] });
|
|
5286
|
-
const ce = await
|
|
5287
|
+
const ce = await Fi(
|
|
5287
5288
|
t,
|
|
5288
5289
|
Vt(n),
|
|
5289
5290
|
M
|
|
@@ -5776,11 +5777,11 @@ function nd(t) {
|
|
|
5776
5777
|
const u = typeof ((i = t.scope) == null ? void 0 : i.repo) == "string" ? t.scope.repo.trim() : "", p = typeof ((r = t.scope) == null ? void 0 : r.branch) == "string" ? t.scope.branch.trim() : "", g = typeof ((c = t.scope) == null ? void 0 : c.path) == "string" ? t.scope.path.trim() : "", b = [u || "未填仓库地址"];
|
|
5777
5778
|
return p && b.push(p), g && b.push(g), b.join(" · ");
|
|
5778
5779
|
}
|
|
5779
|
-
const n = typeof ((o = t.scope) == null ? void 0 : o.apiBaseUrl) == "string" ? t.scope.apiBaseUrl : "", s =
|
|
5780
|
+
const n = typeof ((o = t.scope) == null ? void 0 : o.apiBaseUrl) == "string" ? t.scope.apiBaseUrl : "", s = Qa(t.scope), l = n ? cs(n) : "语雀";
|
|
5780
5781
|
return s.length ? `${l} · ${s.length} 个知识库` : `${l} · 未选同步范围`;
|
|
5781
5782
|
}
|
|
5782
5783
|
function ad(t) {
|
|
5783
|
-
return t.enabled === !1 ? "已停用" : t.hasSecret === !1 ? "缺少访问令牌" : t.provider === "YUQUE" &&
|
|
5784
|
+
return t.enabled === !1 ? "已停用" : t.hasSecret === !1 ? "缺少访问令牌" : t.provider === "YUQUE" && Qa(t.scope).length === 0 ? "未选同步范围" : "";
|
|
5784
5785
|
}
|
|
5785
5786
|
function sd({
|
|
5786
5787
|
kbId: t,
|
|
@@ -5799,7 +5800,7 @@ function sd({
|
|
|
5799
5800
|
var d, P, W, ge;
|
|
5800
5801
|
ne(), p(R.name), R.provider === "GIT" ? (b(typeof ((d = R.scope) == null ? void 0 : d.repo) == "string" ? R.scope.repo : ""), k(typeof ((P = R.scope) == null ? void 0 : P.branch) == "string" ? R.scope.branch : ""), E(typeof ((W = R.scope) == null ? void 0 : W.path) == "string" ? R.scope.path : "")) : ($(
|
|
5801
5802
|
typeof ((ge = R.scope) == null ? void 0 : ge.apiBaseUrl) == "string" ? R.scope.apiBaseUrl : Dt
|
|
5802
|
-
), w(
|
|
5803
|
+
), w(Qa(R.scope))), o({ mode: "edit", provider: R.provider === "GIT" ? "GIT" : "YUQUE", sourceId: R.sourceId });
|
|
5803
5804
|
}, v = () => {
|
|
5804
5805
|
o(null), ne();
|
|
5805
5806
|
}, M = (R) => {
|
|
@@ -5881,7 +5882,7 @@ function sd({
|
|
|
5881
5882
|
V(null), d && L(d);
|
|
5882
5883
|
}, me = async (R, d) => {
|
|
5883
5884
|
J(R);
|
|
5884
|
-
const P = await
|
|
5885
|
+
const P = await Wi(t, R);
|
|
5885
5886
|
J(""), P && (ae(
|
|
5886
5887
|
P.reusing ? "已在同步中" : "已发起同步",
|
|
5887
5888
|
P.reusing ? "该接入源已有运行中的同步任务,本次未重复发起" : `「${d}」的同步任务已排入队列,可在资料列表查看进度`,
|
|
@@ -6006,7 +6007,7 @@ function sd({
|
|
|
6006
6007
|
/* @__PURE__ */ e("span", { className: "req", children: "*" })
|
|
6007
6008
|
] }),
|
|
6008
6009
|
/* @__PURE__ */ e(
|
|
6009
|
-
|
|
6010
|
+
_i,
|
|
6010
6011
|
{
|
|
6011
6012
|
value: g,
|
|
6012
6013
|
onChange: (R, d) => {
|
|
@@ -6032,7 +6033,7 @@ function sd({
|
|
|
6032
6033
|
/* @__PURE__ */ a("div", { className: "field", style: { flex: 1 }, children: [
|
|
6033
6034
|
/* @__PURE__ */ e("label", { children: "分支" }),
|
|
6034
6035
|
/* @__PURE__ */ e(
|
|
6035
|
-
|
|
6036
|
+
Gi,
|
|
6036
6037
|
{
|
|
6037
6038
|
kbId: t,
|
|
6038
6039
|
repo: g,
|
|
@@ -8231,7 +8232,7 @@ function Ad({
|
|
|
8231
8232
|
kbId: t,
|
|
8232
8233
|
onAsk: n
|
|
8233
8234
|
}) {
|
|
8234
|
-
const s =
|
|
8235
|
+
const s = Zn(), [l] = Ja(), i = l.get("query") || "", r = ve(!1), [c] = m(() => Gs(t)), [o, u] = m(i || (c == null ? void 0 : c.query) || ""), [p, g] = m((c == null ? void 0 : c.activeQuery) || ""), [b, S] = m((c == null ? void 0 : c.mode) ?? "dense"), [k, y] = m((c == null ? void 0 : c.topK) ?? 10), [E, T] = m((c == null ? void 0 : c.minScore) ?? 0.1), [$, N] = m((c == null ? void 0 : c.spaceCode) ?? bn), [C, f] = m([]), [w, A] = m(!1), [x, I] = m((c == null ? void 0 : c.searched) ?? !1), [X, U] = m((c == null ? void 0 : c.items) ?? []), [K, F] = m((c == null ? void 0 : c.stats) ?? null), [L, D] = m(null), [V, te] = m(null), [J, _] = m(""), [ne, q] = m(null), [B, v] = m(!1);
|
|
8235
8236
|
Il(() => {
|
|
8236
8237
|
D(null), te(null);
|
|
8237
8238
|
}, !!L || !!V);
|
|
@@ -10911,7 +10912,7 @@ function fu({
|
|
|
10911
10912
|
u.preventDefault(), o();
|
|
10912
10913
|
return;
|
|
10913
10914
|
}
|
|
10914
|
-
u.key === "Enter" && !u.shiftKey && !
|
|
10915
|
+
u.key === "Enter" && !u.shiftKey && !Va(u) && (u.preventDefault(), c());
|
|
10915
10916
|
}
|
|
10916
10917
|
}
|
|
10917
10918
|
),
|
|
@@ -12181,7 +12182,7 @@ function qu({
|
|
|
12181
12182
|
reloadTick: n = 0,
|
|
12182
12183
|
onActiveWikiChange: s
|
|
12183
12184
|
}) {
|
|
12184
|
-
const [l, i] = m([]), [r, c] = m(""), [o, u] = m(""), [p, g] = m("all"), [b, S] = m(!0), [k, y] = m([]), [E, T] = m(null), [$, N] = m(null), [C, f] = m([]), [w, A] = m(null), [x, I] = m(/* @__PURE__ */ new Set()), [X, U] = m(""), [K, F] = m(!0), [L, D] = m(!0), [V, te] = m(null), [J, _] =
|
|
12185
|
+
const [l, i] = m([]), [r, c] = m(""), [o, u] = m(""), [p, g] = m("all"), [b, S] = m(!0), [k, y] = m([]), [E, T] = m(null), [$, N] = m(null), [C, f] = m([]), [w, A] = m(null), [x, I] = m(/* @__PURE__ */ new Set()), [X, U] = m(""), [K, F] = m(!0), [L, D] = m(!0), [V, te] = m(null), [J, _] = Ja(), ne = J.get("page") || "", q = J.get("space") || vn, B = k.find((H) => H.code === q) || null, [v, M] = m(
|
|
12185
12186
|
() => ne ? [{ key: Nn(ne), kind: "wiki", wikiId: ne, title: "" }] : []
|
|
12186
12187
|
), [z, G] = m(ne ? Nn(ne) : bt), [ce, de] = m(
|
|
12187
12188
|
null
|
|
@@ -14504,7 +14505,7 @@ const Gm = {
|
|
|
14504
14505
|
};
|
|
14505
14506
|
function Wm({ kbId: t }) {
|
|
14506
14507
|
var L, D, V, te, J, _;
|
|
14507
|
-
const n =
|
|
14508
|
+
const n = Zn(), [s, l] = m(), [i, r] = m(!0), [c, o] = m(!1), [u, p] = m(!1), [g, b] = m(!1), S = Ce(async () => {
|
|
14508
14509
|
r(!0);
|
|
14509
14510
|
const ne = await fm(t);
|
|
14510
14511
|
l(ne), r(!1);
|
|
@@ -14679,7 +14680,7 @@ function jm({
|
|
|
14679
14680
|
onClose: c
|
|
14680
14681
|
}) {
|
|
14681
14682
|
var R;
|
|
14682
|
-
const { turns: o, streaming: u, ask: p, answerLocally: g, stop: b, openConversation: S } = nr(t, l), [k, y] = m(""), E = ve(null), T =
|
|
14683
|
+
const { turns: o, streaming: u, ask: p, answerLocally: g, stop: b, openConversation: S } = nr(t, l), [k, y] = m(""), E = ve(null), T = Xa(Pi), $ = (R = T == null ? void 0 : T.context) != null && R.authenticated ? T.context.principalId : void 0, N = $ !== void 0 ? String($) : void 0, C = (T == null ? void 0 : T.loading) ?? !1, f = ve(!1), w = ve(!1), A = ve(null), x = ve(0), I = ve(0), [X, U] = m(!1), [K, F] = m(!1), [L, D] = m([]), [V, te] = m(""), [J, _] = m(!1), [ne, q] = m(""), B = ve(null), v = (l == null ? void 0 : l.wikiSpaceName) || "", M = (l == null ? void 0 : l.wikiPageTitle) || "", z = M ? `Wiki · ${v} · ${M}` : `Wiki · ${v}`, G = (d) => {
|
|
14683
14684
|
y((P) => P.trim() ? `${P}
|
|
14684
14685
|
${d}` : d), window.setTimeout(() => {
|
|
14685
14686
|
var P;
|
|
@@ -14966,7 +14967,7 @@ ${d}` : d), window.setTimeout(() => {
|
|
|
14966
14967
|
"button",
|
|
14967
14968
|
{
|
|
14968
14969
|
type: "button",
|
|
14969
|
-
onClick: () => g("还差什么",
|
|
14970
|
+
onClick: () => g("还差什么", Bi(s)),
|
|
14970
14971
|
children: "还差什么"
|
|
14971
14972
|
}
|
|
14972
14973
|
)
|
|
@@ -14981,7 +14982,7 @@ ${d}` : d), window.setTimeout(() => {
|
|
|
14981
14982
|
placeholder: "问这个库,例如:排班规则有哪些限制?",
|
|
14982
14983
|
onChange: (d) => y(d.target.value),
|
|
14983
14984
|
onKeyDown: (d) => {
|
|
14984
|
-
d.key === "Enter" && !d.shiftKey && !
|
|
14985
|
+
d.key === "Enter" && !d.shiftKey && !Va(d) && (d.preventDefault(), j());
|
|
14985
14986
|
}
|
|
14986
14987
|
}
|
|
14987
14988
|
),
|
|
@@ -15399,17 +15400,17 @@ function rh({
|
|
|
15399
15400
|
o(W), k(W.agentCode || ""), E(W.status), $(!!W.autoTrigger);
|
|
15400
15401
|
}, z = Ce(async () => {
|
|
15401
15402
|
L(!0);
|
|
15402
|
-
const W = await
|
|
15403
|
+
const W = await Ki(t, n);
|
|
15403
15404
|
L(!1), W !== void 0 && K(W);
|
|
15404
15405
|
}, [t, n]), G = Ce(async () => {
|
|
15405
|
-
const W = D.current.reduce((xe, we) => Math.max(xe, we.seq), 0), ge = await
|
|
15406
|
+
const W = D.current.reduce((xe, we) => Math.max(xe, we.seq), 0), ge = await qi(t, n, W, 200);
|
|
15406
15407
|
!ge || ge.length === 0 || K((xe) => {
|
|
15407
15408
|
const we = new Set(xe.map((Be) => Be.seq)), fe = ge.filter((Be) => !we.has(Be.seq));
|
|
15408
15409
|
return fe.length ? [...xe, ...fe] : xe;
|
|
15409
15410
|
});
|
|
15410
15411
|
}, [t, n]), ce = Ce(async () => {
|
|
15411
15412
|
p(!0), b("");
|
|
15412
|
-
const W = await
|
|
15413
|
+
const W = await Hi(t, n);
|
|
15413
15414
|
if (p(!1), !W) {
|
|
15414
15415
|
b("托管设置读取失败");
|
|
15415
15416
|
return;
|
|
@@ -15432,7 +15433,7 @@ function rh({
|
|
|
15432
15433
|
}, [U]);
|
|
15433
15434
|
const me = c ? y !== c.status || T !== c.autoTrigger || S.trim() !== (c.agentCode || "") : !1, le = async () => {
|
|
15434
15435
|
C(!0);
|
|
15435
|
-
const W = await
|
|
15436
|
+
const W = await ji({
|
|
15436
15437
|
kbId: t,
|
|
15437
15438
|
spaceCode: n,
|
|
15438
15439
|
status: y,
|
|
@@ -15442,14 +15443,14 @@ function rh({
|
|
|
15442
15443
|
C(!1), W && (M(W), ae("已保存", y === "ENABLED" ? "本空间托管已开启" : "本空间托管已关闭", "success"), W.status === "ENABLED" && z());
|
|
15443
15444
|
}, ke = async () => {
|
|
15444
15445
|
w(!0);
|
|
15445
|
-
const W = await
|
|
15446
|
+
const W = await Yi(t, n);
|
|
15446
15447
|
w(!1), W && (M(W), ae("已发起", "本空间固定会话已收到一轮托管消息", "success"), z());
|
|
15447
15448
|
}, Ie = async () => {
|
|
15448
15449
|
const W = A.trim();
|
|
15449
15450
|
if (!W)
|
|
15450
15451
|
return;
|
|
15451
15452
|
X(!0);
|
|
15452
|
-
const ge = await
|
|
15453
|
+
const ge = await Vi(t, W, n);
|
|
15453
15454
|
X(!1), ge && (M(ge), x(""), ae("已发起", "智能体正在按指令调整本空间已发布页", "success"), z());
|
|
15454
15455
|
}, j = async () => {
|
|
15455
15456
|
te(!0);
|
|
@@ -15827,12 +15828,12 @@ function mh() {
|
|
|
15827
15828
|
return [];
|
|
15828
15829
|
}
|
|
15829
15830
|
}
|
|
15830
|
-
function
|
|
15831
|
-
const t =
|
|
15831
|
+
function Rh() {
|
|
15832
|
+
const t = tr(), n = Zn(), s = t.kbId || "", l = t.tab === "observability", i = t.tab === "tasks" ? "governance" : t.tab, r = l ? "governance" : i && oh[i] ? i : "workspace";
|
|
15832
15833
|
se(() => {
|
|
15833
15834
|
t.tab === "members" && n(`/knowledge-bases/${s}/settings?section=access`, { replace: !0 });
|
|
15834
15835
|
}, [s, n, t.tab]);
|
|
15835
|
-
const [c, o] =
|
|
15836
|
+
const [c, o] = Ja(), u = c.get("view"), p = u === "wikiNext" || u === "wiki" || u === "lineage" || u === "concepts" ? "wiki" : u === "retrieval" ? "retrieval" : u ? "materials" : dh();
|
|
15836
15837
|
se(() => {
|
|
15837
15838
|
if (u !== "lineage" && u !== "concepts" && u !== "wikiNext")
|
|
15838
15839
|
return;
|
|
@@ -15854,7 +15855,7 @@ function Dh() {
|
|
|
15854
15855
|
minOtherWidth: 420,
|
|
15855
15856
|
side: "right"
|
|
15856
15857
|
});
|
|
15857
|
-
|
|
15858
|
+
Zi(() => {
|
|
15858
15859
|
tt(document.getElementById("page-tabs"));
|
|
15859
15860
|
}, []), se(() => {
|
|
15860
15861
|
if (at.current)
|
|
@@ -15883,12 +15884,12 @@ function Dh() {
|
|
|
15883
15884
|
return;
|
|
15884
15885
|
}
|
|
15885
15886
|
y(!0);
|
|
15886
|
-
const ee = await
|
|
15887
|
+
const ee = await Oi(s);
|
|
15887
15888
|
if (y(!1), !ee) {
|
|
15888
15889
|
T(!0), S(null);
|
|
15889
15890
|
return;
|
|
15890
15891
|
}
|
|
15891
|
-
T(!1), S(ee),
|
|
15892
|
+
T(!1), S(ee), Xi();
|
|
15892
15893
|
}, [s]);
|
|
15893
15894
|
se(() => {
|
|
15894
15895
|
(async () => await ye())();
|
|
@@ -15907,7 +15908,7 @@ function Dh() {
|
|
|
15907
15908
|
return;
|
|
15908
15909
|
}
|
|
15909
15910
|
let ee = !1;
|
|
15910
|
-
return
|
|
15911
|
+
return Qi(b.kbId).then((oe) => {
|
|
15911
15912
|
ee || I((oe == null ? void 0 : oe.status) === "ENABLED");
|
|
15912
15913
|
}), () => {
|
|
15913
15914
|
ee = !0;
|
|
@@ -16364,7 +16365,7 @@ function Dh() {
|
|
|
16364
16365
|
},
|
|
16365
16366
|
initialTab: l ? "obs" : void 0
|
|
16366
16367
|
}
|
|
16367
|
-
) : r === "logs" ? ft = /* @__PURE__ */ e(
|
|
16368
|
+
) : r === "logs" ? ft = /* @__PURE__ */ e(Ui, { type: "KB", bizRef: b.kbId }) : r === "agent-workspace" ? ft = /* @__PURE__ */ e(rm, { kbId: b.kbId }) : r === "execution-chain" && (ft = /* @__PURE__ */ e(Wm, { kbId: b.kbId })), /* @__PURE__ */ a(
|
|
16368
16369
|
"div",
|
|
16369
16370
|
{
|
|
16370
16371
|
className: `view kb-detail-view${lt ? " fill-viewport" : ""}${Ye ? " tabs-in-topbar" : ""}`,
|
|
@@ -16469,7 +16470,7 @@ function Dh() {
|
|
|
16469
16470
|
}
|
|
16470
16471
|
) : null,
|
|
16471
16472
|
$ ? /* @__PURE__ */ e(
|
|
16472
|
-
|
|
16473
|
+
Ji,
|
|
16473
16474
|
{
|
|
16474
16475
|
mode: "edit",
|
|
16475
16476
|
kb: b,
|
|
@@ -16498,7 +16499,7 @@ function Dh() {
|
|
|
16498
16499
|
maxLength: 32,
|
|
16499
16500
|
onChange: (ee) => R(ee.target.value),
|
|
16500
16501
|
onKeyDown: (ee) => {
|
|
16501
|
-
ee.key === "Enter" && !
|
|
16502
|
+
ee.key === "Enter" && !Va(ee) && (ee.preventDefault(), st());
|
|
16502
16503
|
}
|
|
16503
16504
|
}
|
|
16504
16505
|
),
|
|
@@ -16573,5 +16574,5 @@ function Dh() {
|
|
|
16573
16574
|
);
|
|
16574
16575
|
}
|
|
16575
16576
|
export {
|
|
16576
|
-
|
|
16577
|
+
Rh as default
|
|
16577
16578
|
};
|