@yuku123/z-cognition-component 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{BaseInput-DHrGPDB9.js → BaseInput-rxw05EpT.js} +16 -16
- package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DqK04lTb.js} +2 -2
- package/dist-lib/{Collapse-B77SsmFh.js → Collapse-D9XOithE.js} +76 -76
- package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-DnGmqa7C.js} +1 -1
- package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-VzQrhleP.js} +144 -144
- package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-CIFgRd6d.js} +4 -4
- package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-Be44-JWT.js} +1 -1
- package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-BuFXTevS.js} +32 -32
- package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-CYlCNRvD.js} +1 -1
- package/dist-lib/{Table-J_7eBbi7.js → Table-D1RvQXGM.js} +9 -9
- package/dist-lib/{accessAk-CA30m5eX.js → accessAk-DlxcvD0O.js} +1 -1
- package/dist-lib/{agents-eZDKzePP.js → agents-CabJdV6W.js} +17 -17
- package/dist-lib/{ai-CNSn3-sd.js → ai-DZ6fqUyK.js} +1 -1
- package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-CYSU7UlK.js} +4 -4
- package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-MTp2UyyK.js} +12 -12
- package/dist-lib/{approval-B-bCSmfi.js → approval-F9OYS1Ov.js} +3 -3
- package/dist-lib/{approvals-B0ggYiyD.js → approvals-DDEl02-L.js} +2 -2
- package/dist-lib/{assistant-Of0mgMsM.js → assistant-CcC1rvys.js} +39 -39
- package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-fmy8IsJL.js} +5 -5
- package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-kuK5-mku.js} +1 -1
- package/dist-lib/{audit-wDNCfmOy.js → audit-C0GYByqU.js} +1 -1
- package/dist-lib/{bios-CIwO1AUK.js → bios-_axkM_DR.js} +11 -11
- package/dist-lib/{callSuper-CpMOVGin.js → callSuper-CuPJalb0.js} +1 -1
- package/dist-lib/{category-9gqNseEa.js → category-BPLw60Ia.js} +1 -1
- package/dist-lib/{causal-CzAYukj9.js → causal-CcWolsb5.js} +5 -5
- package/dist-lib/{changelog-CQfIMS51.js → changelog-BQdmpq5H.js} +2 -2
- package/dist-lib/{changelog-sKJMQrlV.js → changelog-DC6nlUDh.js} +1 -1
- package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-CgpP4Xf5.js} +28 -28
- package/dist-lib/{code-space-D_ZE966E.js → code-space-CZ3CzVcA.js} +9 -9
- package/dist-lib/{colors-DpKdb8L-.js → colors-BsFEfaVs.js} +3 -3
- package/dist-lib/{community-CfWXxujB.js → community-D9mD_Tq1.js} +3 -3
- package/dist-lib/{community-9_7ExHcm.js → community-ESJc4qtl.js} +1 -1
- package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-Ct5uMwhv.js} +19 -19
- package/dist-lib/{connections-Bcqsp11M.js → connections-DrxmCfe3.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-3K1vcDqi.js} +1 -1
- package/dist-lib/{detail-EyLdjGpX.js → detail-DXOJf57e.js} +37 -37
- package/dist-lib/{detail-CV6xp_Jp.js → detail-kPAVlzm3.js} +4 -4
- package/dist-lib/{detail-DioaWKWj.js → detail-lGslEB8s.js} +14 -14
- package/dist-lib/{development-CFcOIUKc.js → development-aLXXcLcF.js} +17 -17
- package/dist-lib/{downloads-DtV5hOQv.js → downloads-DFOEFvX6.js} +1 -1
- package/dist-lib/{edit-NtXUNj5N.js → edit-BbtVK23D.js} +88 -88
- package/dist-lib/{editor-KZhj-rwT.js → editor-DbLQFOUf.js} +16 -16
- package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-B_H0fRAI.js} +13 -13
- package/dist-lib/{embed-mf8t3QXh.js → embed-BUaR8PAn.js} +3930 -3955
- package/dist-lib/embed.css +1 -1
- package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-8Tx-3UQh.js} +2 -2
- package/dist-lib/{execution-B6HmOA2_.js → execution-Dz5dBEFl.js} +13 -13
- package/dist-lib/{graph-DHV-rdiK.js → graph-DacHEbKr.js} +5 -5
- package/dist-lib/{index-BoCtPJD4.js → index-B6G8CZ1v.js} +130 -130
- package/dist-lib/{index-DKAGVWMX.js → index-BDWjubAD.js} +6 -6
- package/dist-lib/{index-Bw4M9KLv.js → index-BI-rknta.js} +75 -75
- package/dist-lib/{index-QZ9JPfVR.js → index-BLGPH51v.js} +4 -4
- package/dist-lib/{index-BsoHetYT.js → index-BMv3kGDG.js} +20 -20
- package/dist-lib/{index-DgfIEgir.js → index-BOB3j3H_.js} +1 -1
- package/dist-lib/{index-BPbOPT2j.js → index-BU2GXuww.js} +2 -2
- package/dist-lib/{index-DU6bO95v.js → index-BWmgE7bB.js} +88 -88
- package/dist-lib/{index-CLhLA2ig.js → index-Be_iqVpx.js} +78 -78
- package/dist-lib/{index-CwyFMPcr.js → index-Bf8IQq4A.js} +15 -15
- package/dist-lib/{index-DGbjbjBY.js → index-Bi7O9pQv.js} +182 -182
- package/dist-lib/{index-BkTegt8T.js → index-Bt9F-2Fl.js} +100 -100
- package/dist-lib/{index-D6ns_Xmf.js → index-BtW_nQBU.js} +2 -2
- package/dist-lib/{index-CvxfA0ZK.js → index-BuGHtvxH.js} +16 -16
- package/dist-lib/{index-CtqUgNxs.js → index-CDxeB8C4.js} +24 -24
- package/dist-lib/{index-2SysmGHo.js → index-CNBwau86.js} +139 -139
- package/dist-lib/{index-BvJ35WL3.js → index-CS6H40rM.js} +15 -15
- package/dist-lib/{index--AI-htgA.js → index-CSoMwNHq.js} +45 -45
- package/dist-lib/{index-CgwK2maq.js → index-CdNxm2We.js} +38 -38
- package/dist-lib/{index-BqTsLClH.js → index-CjFA5T3K.js} +1 -1
- package/dist-lib/{index-3J47mTL1.js → index-D23tZfhi.js} +1 -1
- package/dist-lib/{index-BkJjYgKD.js → index-D7nLwQye.js} +486 -486
- package/dist-lib/{index-zXwXfn-X.js → index-DR9LGJpi.js} +23 -23
- package/dist-lib/{index-BEO8itgt.js → index-DTgboCiF.js} +13 -13
- package/dist-lib/{index-CSJA8wvL.js → index-Ddx6XQu5.js} +36 -36
- package/dist-lib/{index-C2CV4bte.js → index-Di2bQwQn.js} +2 -2
- package/dist-lib/{index-DhSCFLtV.js → index-DlqhOJnd.js} +98 -98
- package/dist-lib/{index-xQmDaKK3.js → index-GQGXGr9M.js} +1 -1
- package/dist-lib/{index-B7SfTpox.js → index-IB3GOib9.js} +8 -8
- package/dist-lib/{index-VeAMz0iC.js → index-Pcxp_AYe.js} +43 -43
- package/dist-lib/{index-CdJ5ggvp.js → index-QkktEus5.js} +17 -17
- package/dist-lib/{index-Bln3mJfp.js → index-fVCVIu8I.js} +2 -2
- package/dist-lib/{index-B5Roo82U.js → index-jHh-ITBK.js} +25 -25
- package/dist-lib/{index-DaMLYomP.js → index-keRQ37lH.js} +6 -6
- package/dist-lib/{index-CF0ucN_K.js → index-n6hK1r_G.js} +3 -3
- package/dist-lib/{index-Bd7AGv4a.js → index-qYfXuLnZ.js} +2 -2
- package/dist-lib/{index-B12ZggsE.js → index-yPMzsLHL.js} +3 -3
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-COcz5F2R.js → json-field-Bu-gFb6c.js} +2 -2
- package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-DsXpXfNT.js} +20 -19
- package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D8hsAHI5.js} +1 -1
- package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-D2XMD7iI.js} +21 -20
- package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-BoBR8-j-.js} +12 -12
- package/dist-lib/{login-56zv4aLO.js → login-B4C374Y_.js} +3 -3
- package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-ROKlyMXg.js} +55 -55
- package/dist-lib/{material-DtPASeqq.js → material-CqtPqoZj.js} +1 -1
- package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BKlKt3pc.js} +2 -2
- package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-pzANkVK5.js} +5 -5
- package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-BUpogooV.js} +1 -1
- package/dist-lib/{member-Cz-OIdj9.js → member-CCTFfLDC.js} +1 -1
- package/dist-lib/{memory-reorganization-DgJnWIrW.js → memory-reorganization-CBTDCRhV.js} +1 -1
- package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-CZGIBlz2.js} +19 -19
- package/dist-lib/{message-D6FhzB7J.js → message-Chq3cAdy.js} +3 -3
- package/dist-lib/{message-C9gfvpGg.js → message-Rz7LvGMk.js} +1 -1
- package/dist-lib/{messages-cctmEVcG.js → messages-DciGawgR.js} +2 -2
- package/dist-lib/{meta-DT_O4zM9.js → meta-BWgVxZgd.js} +2 -2
- package/dist-lib/{metrics-BNeVcI8-.js → metrics-iWreq4IL.js} +2 -2
- package/dist-lib/{mobile-D8kZjfQU.js → mobile-CNrK04Ak.js} +2 -2
- package/dist-lib/{monitor-DexMYjzF.js → monitor-BpUJZCht.js} +3 -3
- package/dist-lib/{monitor-DTUyqumg.js → monitor-CaTKbDI1.js} +3 -3
- package/dist-lib/{my-access-DWBV6ohp.js → my-access-ZH5CWVGF.js} +3 -3
- package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-edhi0lav.js} +4 -4
- package/dist-lib/{navigation-DVlyWnpD.js → navigation-2WdPUP2T.js} +1 -1
- package/dist-lib/{new-JmARyD88.js → new-Dq6mvU2w.js} +5 -5
- package/dist-lib/{ontology-B4rkO33J.js → ontology-BX6X1X2J.js} +5 -5
- package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-BjMnFRBG.js} +1 -1
- package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-B7AuwW8S.js} +63 -63
- package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-FpJ6K8z6.js} +1 -1
- package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-wbvBwGZO.js} +22 -22
- package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-CJsIvS35.js} +6 -6
- package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Cgi8Fk-i.js} +3 -3
- package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-C_6GvHBT.js} +33 -33
- package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-CeDS1-FE.js} +2 -2
- package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-4Ar7Y8Kt.js} +11 -11
- package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BaYN82pv.js} +392 -392
- package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-CDt7NdIq.js} +1 -1
- package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-CnFarWZX.js} +1 -1
- package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-CxTp2Dcq.js} +18 -18
- package/dist-lib/{permission-Dq1-AOQw.js → permission-CNqwhyF3.js} +2 -2
- package/dist-lib/{preset-DCNSE--Y.js → preset-CfByvcqu.js} +3 -3
- package/dist-lib/{progress-CZxOOnIs.js → progress-ImhDvynO.js} +2 -2
- package/dist-lib/{quota-oICQRHFU.js → quota-B38BWyPo.js} +7 -6
- package/dist-lib/{row-By17TCiW.js → row-DeVE0t_N.js} +2 -2
- package/dist-lib/{runs-DQTDpPaN.js → runs-ILSUwEOv.js} +6 -6
- package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-C5BbV45B.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-7v1SRE7V.js} +17 -17
- package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form-mFm6f2ho.js} +9 -9
- package/dist-lib/{schedule-CwkPPSuT.js → schedule-DzB9rZrm.js} +2 -2
- package/dist-lib/{script-gYJAFobb.js → script-CKdVDsYh.js} +14 -14
- package/dist-lib/{settings-CJd5Jj4y.js → settings-CaihqQtz.js} +71 -70
- package/dist-lib/{shared-DG5-VCDM.js → shared-B51Q5536.js} +1 -1
- package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-Ck5sql2m.js} +2 -2
- package/dist-lib/{skills-lxpJ5Lzx.js → skills-By3A0Dc1.js} +5 -5
- package/dist-lib/{source-selection-DJnQQckl.js → source-selection-sIKyG7xR.js} +1 -1
- package/dist-lib/{sources-C83LpCcV.js → sources-DvIMColY.js} +12 -12
- package/dist-lib/{style-B5THvtDY.js → style-BHQZmWlH.js} +8 -8
- package/dist-lib/{task-config-BNYoOb79.js → task-config-CoPFj_FN.js} +3 -3
- package/dist-lib/{tech-LuZvKDo6.js → tech-BJgEEFrT.js} +1 -1
- package/dist-lib/{templates-a-kbCamr.js → templates-CODaf2QI.js} +6 -6
- package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-DmN4qfah.js} +12 -12
- package/dist-lib/{tools-CrA6GrY6.js → tools-CyRz1Ofg.js} +4 -4
- package/dist-lib/use-current-tenant-otPCQ3X8.js +22 -0
- package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-BuD99GTw.js} +1 -1
- package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-C5h9frJM.js} +1 -1
- package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Cbd3Jggb.js} +9 -9
- package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-B8dF3ifo.js} +4 -4
- package/dist-lib/{useForm-B-dwOwJ8.js → useForm-BZkiMeaN.js} +6 -6
- package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-HdMlbpbO.js} +1 -1
- package/dist-lib/{version-management-nPlG7wQO.js → version-management-BYoxw4GV.js} +2 -2
- package/dist-lib/{welcome-Cqv1-rXT.js → welcome-CMNXQf8J.js} +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { I as m, t as E, k as me, g as Be, j as Re, z as Pe,
|
|
2
|
+
import { I as m, t as E, k as me, g as Be, j as Re, z as Pe, W as Oe, u as Ue, e as Fe, X as Ke, p as Ve, a2 as ve, T as _e, a1 as qe, a3 as Qe, a4 as Ge, N as Ye } from "./embed-BUaR8PAn.js";
|
|
3
|
+
import { u as He } from "./use-current-tenant-otPCQ3X8.js";
|
|
3
4
|
import { useState as h, useEffect as ee, useCallback as re, useMemo as De, Fragment as We } from "react";
|
|
4
5
|
import { createPortal as be } from "react-dom";
|
|
5
|
-
import { g as je, T as de, a as Je, n as ye, p as Xe } from "./index-
|
|
6
|
-
import { b as Ze, c as ea } from "./ai-
|
|
6
|
+
import { g as je, T as de, a as Je, n as ye, p as Xe } from "./index-BU2GXuww.js";
|
|
7
|
+
import { b as Ze, c as ea } from "./ai-DZ6fqUyK.js";
|
|
7
8
|
import { u as fe } from "./use-escape-key-4SZ4l7av.js";
|
|
8
9
|
import { f as ae } from "./format-CWI99NCN.js";
|
|
9
10
|
import { H as aa } from "./index-mmwKYfDC.js";
|
|
10
|
-
import { k as na, m as la, r as sa, G as ta, b as ra, a as ca, l as ge, t as $e, d as we, c as ia, s as da } from "./source-selection-
|
|
11
|
-
import { V as oa } from "./version-control-panel-
|
|
12
|
-
import { g as ha, l as ke, r as le, a as ue, R as pe, s as Ce, b as Ee, c as ma } from "./member-
|
|
13
|
-
import { l as Se } from "./kbTeam-
|
|
11
|
+
import { k as na, m as la, r as sa, G as ta, b as ra, a as ca, l as ge, t as $e, d as we, c as ia, s as da } from "./source-selection-sIKyG7xR.js";
|
|
12
|
+
import { V as oa } from "./version-control-panel-HdMlbpbO.js";
|
|
13
|
+
import { g as ha, l as ke, r as le, a as ue, R as pe, s as Ce, b as Ee, c as ma } from "./member-CCTFfLDC.js";
|
|
14
|
+
import { l as Se } from "./kbTeam-D8hsAHI5.js";
|
|
14
15
|
import { u as ua } from "./use-split-width-SsLqbGjr.js";
|
|
15
16
|
const pa = [
|
|
16
17
|
{
|
|
@@ -39,11 +40,11 @@ function va(n) {
|
|
|
39
40
|
return n && Object.keys(n).length ? JSON.stringify(n, null, 2) : "—";
|
|
40
41
|
}
|
|
41
42
|
function ba({ kbId: n, canManage: o }) {
|
|
42
|
-
const [c, v] = h(null), [g, t] = h(!0), [L, $] = h(""), [k, f] = h(null), [p, S] = h(null), [D, I] = h(""), [R, P] = h(!1), [
|
|
43
|
+
const [c, v] = h(null), [g, t] = h(!0), [L, $] = h(""), [k, f] = h(null), [p, S] = h(null), [D, I] = h(""), [R, P] = h(!1), [O, w] = h(!1), [N, V] = h([]), [M, G] = h([]);
|
|
43
44
|
fe(() => f(null), !!k), fe(() => S(null), !!p), ee(() => {
|
|
44
45
|
let r = !0;
|
|
45
46
|
return Promise.all([Ze(), ea()]).then(([x, A]) => {
|
|
46
|
-
r && (V(x || []),
|
|
47
|
+
r && (V(x || []), G(A || []));
|
|
47
48
|
}), () => {
|
|
48
49
|
r = !1;
|
|
49
50
|
};
|
|
@@ -101,9 +102,9 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
101
102
|
P(!0);
|
|
102
103
|
const F = await Xe(n, _);
|
|
103
104
|
P(!1), F && (v(F), S(null), E("已发布新版本", `${F.version} 只影响本库之后创建的任务`, "success"));
|
|
104
|
-
},
|
|
105
|
+
}, U = (r) => {
|
|
105
106
|
S((x) => x && { ...x, ...r });
|
|
106
|
-
},
|
|
107
|
+
}, Y = (r) => {
|
|
107
108
|
S({ ...r }), I(
|
|
108
109
|
r.extraParams && Object.keys(r.extraParams).length ? JSON.stringify(r.extraParams, null, 2) : ""
|
|
109
110
|
);
|
|
@@ -194,7 +195,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
194
195
|
{
|
|
195
196
|
className: "btn sm",
|
|
196
197
|
type: "button",
|
|
197
|
-
onClick: () =>
|
|
198
|
+
onClick: () => Y(A),
|
|
198
199
|
children: [
|
|
199
200
|
/* @__PURE__ */ e(m, { name: "edit", size: 12 }),
|
|
200
201
|
"编辑"
|
|
@@ -206,7 +207,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
206
207
|
] }) })
|
|
207
208
|
] }, r.code);
|
|
208
209
|
}),
|
|
209
|
-
|
|
210
|
+
O ? /* @__PURE__ */ e(
|
|
210
211
|
Je,
|
|
211
212
|
{
|
|
212
213
|
kind: "kb",
|
|
@@ -325,7 +326,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
325
326
|
{
|
|
326
327
|
className: "select",
|
|
327
328
|
value: p.executionMode,
|
|
328
|
-
onChange: (r) =>
|
|
329
|
+
onChange: (r) => U({ executionMode: r.target.value }),
|
|
329
330
|
children: Object.keys(de).map((r) => /* @__PURE__ */ e("option", { value: r, children: de[r] }, r))
|
|
330
331
|
}
|
|
331
332
|
)
|
|
@@ -337,7 +338,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
337
338
|
{
|
|
338
339
|
className: "input",
|
|
339
340
|
value: p.executor,
|
|
340
|
-
onChange: (r) =>
|
|
341
|
+
onChange: (r) => U({ executor: r.target.value })
|
|
341
342
|
}
|
|
342
343
|
)
|
|
343
344
|
] }),
|
|
@@ -348,7 +349,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
348
349
|
{
|
|
349
350
|
className: "select",
|
|
350
351
|
value: p.agentCode || "",
|
|
351
|
-
onChange: (r) =>
|
|
352
|
+
onChange: (r) => U({ agentCode: r.target.value }),
|
|
352
353
|
children: [
|
|
353
354
|
/* @__PURE__ */ e("option", { value: "", children: "不指定智能体" }),
|
|
354
355
|
p.agentCode && !N.some((r) => r.code === p.agentCode) ? /* @__PURE__ */ a("option", { value: p.agentCode, children: [
|
|
@@ -371,7 +372,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
371
372
|
{
|
|
372
373
|
className: "select",
|
|
373
374
|
value: p.model || "",
|
|
374
|
-
onChange: (r) =>
|
|
375
|
+
onChange: (r) => U({ model: r.target.value }),
|
|
375
376
|
children: [
|
|
376
377
|
/* @__PURE__ */ e("option", { value: "", children: "跟随默认模型" }),
|
|
377
378
|
p.model && !M.some((r) => r.service === p.model) ? /* @__PURE__ */ a("option", { value: p.model, children: [
|
|
@@ -401,7 +402,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
401
402
|
{
|
|
402
403
|
className: "textarea",
|
|
403
404
|
value: p.boundaryNote || "",
|
|
404
|
-
onChange: (r) =>
|
|
405
|
+
onChange: (r) => U({ boundaryNote: r.target.value })
|
|
405
406
|
}
|
|
406
407
|
)
|
|
407
408
|
] })
|
|
@@ -416,7 +417,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
416
417
|
className: "textarea",
|
|
417
418
|
maxLength: 1e3,
|
|
418
419
|
value: p.extraRequirement || "",
|
|
419
|
-
onChange: (r) =>
|
|
420
|
+
onChange: (r) => U({ extraRequirement: r.target.value })
|
|
420
421
|
}
|
|
421
422
|
)
|
|
422
423
|
] }),
|
|
@@ -445,7 +446,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
445
446
|
min: 0,
|
|
446
447
|
max: 100,
|
|
447
448
|
value: p.priority ?? 0,
|
|
448
|
-
onChange: (r) =>
|
|
449
|
+
onChange: (r) => U({ priority: Number(r.target.value) })
|
|
449
450
|
}
|
|
450
451
|
)
|
|
451
452
|
] }),
|
|
@@ -459,7 +460,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
459
460
|
min: 1,
|
|
460
461
|
max: 86400,
|
|
461
462
|
value: p.timeoutSeconds,
|
|
462
|
-
onChange: (r) =>
|
|
463
|
+
onChange: (r) => U({ timeoutSeconds: Number(r.target.value) })
|
|
463
464
|
}
|
|
464
465
|
)
|
|
465
466
|
] }),
|
|
@@ -473,7 +474,7 @@ function ba({ kbId: n, canManage: o }) {
|
|
|
473
474
|
min: 0,
|
|
474
475
|
max: 5,
|
|
475
476
|
value: p.retryLimit,
|
|
476
|
-
onChange: (r) =>
|
|
477
|
+
onChange: (r) => U({ retryLimit: Number(r.target.value) })
|
|
477
478
|
}
|
|
478
479
|
)
|
|
479
480
|
] })
|
|
@@ -541,7 +542,7 @@ function fa({ kbId: n, canManage: o }) {
|
|
|
541
542
|
ee(() => {
|
|
542
543
|
R();
|
|
543
544
|
}, [R]);
|
|
544
|
-
const P = c ? p !== c.status || k.trim() !== (c.defaultAgentCode || "") : !1,
|
|
545
|
+
const P = c ? p !== c.status || k.trim() !== (c.defaultAgentCode || "") : !1, O = async () => {
|
|
545
546
|
I(!0);
|
|
546
547
|
const N = await la({
|
|
547
548
|
kbId: n,
|
|
@@ -611,7 +612,7 @@ function fa({ kbId: n, canManage: o }) {
|
|
|
611
612
|
className: "btn primary",
|
|
612
613
|
type: "button",
|
|
613
614
|
disabled: !o || !P || D,
|
|
614
|
-
onClick: () => void
|
|
615
|
+
onClick: () => void O(),
|
|
615
616
|
children: [
|
|
616
617
|
/* @__PURE__ */ e(m, { name: "check", size: 13 }),
|
|
617
618
|
D ? "保存中…" : "保存"
|
|
@@ -866,11 +867,11 @@ function Da({
|
|
|
866
867
|
saving: v,
|
|
867
868
|
onApply: g
|
|
868
869
|
}) {
|
|
869
|
-
const [t, L] = h(!1), [$, k] = h(null), [f, p] = h(null), [S, D] = h(!1), [I, R] = h({}), [P,
|
|
870
|
+
const [t, L] = h(!1), [$, k] = h(null), [f, p] = h(null), [S, D] = h(!1), [I, R] = h({}), [P, O] = h(""), [w, N] = h(""), V = () => o(null), M = (l) => {
|
|
870
871
|
o((i) => i && { ...i, draft: { ...i.draft, ...l } });
|
|
871
|
-
},
|
|
872
|
+
}, G = (l) => {
|
|
872
873
|
const i = K[l];
|
|
873
|
-
k(null), p(null), R({}),
|
|
874
|
+
k(null), p(null), R({}), O(""), N(""), o(
|
|
874
875
|
(C) => C && {
|
|
875
876
|
...C,
|
|
876
877
|
draft: {
|
|
@@ -901,12 +902,12 @@ function Da({
|
|
|
901
902
|
const J = i.draft.selection.some((q) => q.book === l.namespace) ? i.draft.selection.filter((q) => q.book !== l.namespace) : [...i.draft.selection, { book: l.namespace, name: l.name, docs: [] }];
|
|
902
903
|
return { ...i, draft: { ...i.draft, selection: J } };
|
|
903
904
|
});
|
|
904
|
-
},
|
|
905
|
+
}, U = async (l) => {
|
|
905
906
|
if (P === l) {
|
|
906
|
-
|
|
907
|
+
O("");
|
|
907
908
|
return;
|
|
908
909
|
}
|
|
909
|
-
if (
|
|
910
|
+
if (O(l), I[l] && !I[l].loading)
|
|
910
911
|
return;
|
|
911
912
|
R((C) => ({
|
|
912
913
|
...C,
|
|
@@ -917,10 +918,10 @@ function Da({
|
|
|
917
918
|
...C,
|
|
918
919
|
[l]: i ? { loading: !1, docs: i.docs, message: i.message } : { loading: !1, docs: [], message: "文章加载失败" }
|
|
919
920
|
})), i != null && i.message && E("文章未加载", i.message, "warn");
|
|
920
|
-
},
|
|
921
|
+
}, Y = async () => {
|
|
921
922
|
var q;
|
|
922
923
|
const l = te(n.draft);
|
|
923
|
-
D(!0), R({}),
|
|
924
|
+
D(!0), R({}), O("");
|
|
924
925
|
const i = await ge(c, l);
|
|
925
926
|
if (!i) {
|
|
926
927
|
D(!1);
|
|
@@ -1052,7 +1053,7 @@ function Da({
|
|
|
1052
1053
|
className: "select",
|
|
1053
1054
|
value: n.draft.provider,
|
|
1054
1055
|
disabled: n.index !== null,
|
|
1055
|
-
onChange: (l) =>
|
|
1056
|
+
onChange: (l) => G(l.target.value),
|
|
1056
1057
|
children: Ea.map((l) => /* @__PURE__ */ e("option", { value: l, children: K[l].label }, l))
|
|
1057
1058
|
}
|
|
1058
1059
|
),
|
|
@@ -1115,7 +1116,7 @@ function Da({
|
|
|
1115
1116
|
className: "btn",
|
|
1116
1117
|
type: "button",
|
|
1117
1118
|
disabled: S || !B,
|
|
1118
|
-
onClick: () => void
|
|
1119
|
+
onClick: () => void Y(),
|
|
1119
1120
|
children: [
|
|
1120
1121
|
/* @__PURE__ */ e(m, { name: "refresh", size: 12 }),
|
|
1121
1122
|
S ? "检测中…" : "检测连接并读取可见范围"
|
|
@@ -1185,7 +1186,7 @@ function Da({
|
|
|
1185
1186
|
{
|
|
1186
1187
|
className: "btn sm",
|
|
1187
1188
|
type: "button",
|
|
1188
|
-
onClick: () => void
|
|
1189
|
+
onClick: () => void U(l.namespace),
|
|
1189
1190
|
children: [
|
|
1190
1191
|
/* @__PURE__ */ e(
|
|
1191
1192
|
m,
|
|
@@ -1336,7 +1337,7 @@ function Da({
|
|
|
1336
1337
|
) });
|
|
1337
1338
|
}
|
|
1338
1339
|
function $a({ kbId: n, canManage: o }) {
|
|
1339
|
-
const [c, v] = h([]), [g, t] = h(!0), [L, $] = h(""), [k, f] = h(!1), [p, S] = h(!1), [D, I] = h({}), [R, P] = h(""), [
|
|
1340
|
+
const [c, v] = h([]), [g, t] = h(!0), [L, $] = h(""), [k, f] = h(!1), [p, S] = h(!1), [D, I] = h({}), [R, P] = h(""), [O, w] = h(""), [N, V] = h(null), M = re(async () => {
|
|
1340
1341
|
t(!0), $("");
|
|
1341
1342
|
const u = await we(n);
|
|
1342
1343
|
if (t(!1), !u) {
|
|
@@ -1348,7 +1349,7 @@ function $a({ kbId: n, canManage: o }) {
|
|
|
1348
1349
|
ee(() => {
|
|
1349
1350
|
(async () => await M())();
|
|
1350
1351
|
}, [M]);
|
|
1351
|
-
const
|
|
1352
|
+
const G = async () => {
|
|
1352
1353
|
k && !await me({
|
|
1353
1354
|
title: "重新加载接入源?",
|
|
1354
1355
|
sub: "有未保存的变更,重新加载会丢弃这些修改。",
|
|
@@ -1382,7 +1383,7 @@ function $a({ kbId: n, canManage: o }) {
|
|
|
1382
1383
|
return S(!1), T ? (v(T.map(Ie)), I({}), f(!1), E("已保存", `接入源已写入知识库,共 ${T.length} 条`, "success"), !0) : !1;
|
|
1383
1384
|
}, Q = async () => {
|
|
1384
1385
|
await z(c);
|
|
1385
|
-
},
|
|
1386
|
+
}, U = async (u) => {
|
|
1386
1387
|
if (!se.includes(u.provider)) {
|
|
1387
1388
|
E("暂不支持", "该供应商暂不支持连通性测试", "warn");
|
|
1388
1389
|
return;
|
|
@@ -1390,7 +1391,7 @@ function $a({ kbId: n, canManage: o }) {
|
|
|
1390
1391
|
P(u.localKey);
|
|
1391
1392
|
const d = await $e(n, te(u));
|
|
1392
1393
|
P(""), d && I((b) => ({ ...b, [u.localKey]: d }));
|
|
1393
|
-
},
|
|
1394
|
+
}, Y = async () => {
|
|
1394
1395
|
const u = await we(n);
|
|
1395
1396
|
if (!u)
|
|
1396
1397
|
return;
|
|
@@ -1437,7 +1438,7 @@ function $a({ kbId: n, canManage: o }) {
|
|
|
1437
1438
|
return;
|
|
1438
1439
|
w(u.localKey);
|
|
1439
1440
|
const b = await ia(n, u.sourceId);
|
|
1440
|
-
w(""), b && (
|
|
1441
|
+
w(""), b && (Y(), E(
|
|
1441
1442
|
b.reusing ? "已在同步中" : "已发起同步",
|
|
1442
1443
|
b.reusing ? "该接入源已有运行中的同步任务,本次未重复发起" : "采集同步任务已排入队列,可在任务管理查看进度与结果",
|
|
1443
1444
|
"success"
|
|
@@ -1507,7 +1508,7 @@ function $a({ kbId: n, canManage: o }) {
|
|
|
1507
1508
|
if (L)
|
|
1508
1509
|
return /* @__PURE__ */ e("div", { className: "panel", children: /* @__PURE__ */ a("div", { className: "panel-body row between", children: [
|
|
1509
1510
|
/* @__PURE__ */ e("span", { className: "note", children: L }),
|
|
1510
|
-
/* @__PURE__ */ a("button", { className: "btn sm", type: "button", onClick:
|
|
1511
|
+
/* @__PURE__ */ a("button", { className: "btn sm", type: "button", onClick: G, children: [
|
|
1511
1512
|
/* @__PURE__ */ e(m, { name: "refresh", size: 12 }),
|
|
1512
1513
|
"重试"
|
|
1513
1514
|
] })
|
|
@@ -1521,7 +1522,7 @@ function $a({ kbId: n, canManage: o }) {
|
|
|
1521
1522
|
/* @__PURE__ */ a("div", { className: "row between mb-12", children: [
|
|
1522
1523
|
/* @__PURE__ */ e("span", { className: "note", children: k ? "有未保存的变更 · 保存后生效" : o ? "" : "只读 · 修改需要库管理权限" }),
|
|
1523
1524
|
/* @__PURE__ */ a("div", { className: "row gap-6", children: [
|
|
1524
|
-
/* @__PURE__ */ a("button", { className: "btn sm", type: "button", onClick:
|
|
1525
|
+
/* @__PURE__ */ a("button", { className: "btn sm", type: "button", onClick: G, children: [
|
|
1525
1526
|
/* @__PURE__ */ e(m, { name: "refresh", size: 12 }),
|
|
1526
1527
|
"重新加载"
|
|
1527
1528
|
] }),
|
|
@@ -1641,7 +1642,7 @@ function $a({ kbId: n, canManage: o }) {
|
|
|
1641
1642
|
type: "button",
|
|
1642
1643
|
disabled: !l || R === d.localKey,
|
|
1643
1644
|
title: l ? "发一次只读请求验证连通" : "该供应商暂不支持连通性测试",
|
|
1644
|
-
onClick: () => void
|
|
1645
|
+
onClick: () => void U(d),
|
|
1645
1646
|
children: [
|
|
1646
1647
|
/* @__PURE__ */ e(m, { name: "link", size: 12 }),
|
|
1647
1648
|
R === d.localKey ? "测试中…" : "测试"
|
|
@@ -1653,12 +1654,12 @@ function $a({ kbId: n, canManage: o }) {
|
|
|
1653
1654
|
{
|
|
1654
1655
|
className: "btn sm",
|
|
1655
1656
|
type: "button",
|
|
1656
|
-
disabled: !o || !oe.includes(d.provider) || !d.sourceId ||
|
|
1657
|
+
disabled: !o || !oe.includes(d.provider) || !d.sourceId || O === d.localKey,
|
|
1657
1658
|
title: oe.includes(d.provider) ? d.sourceId ? "拉取一次目录并把文档登记为资料" : "请先保存这条接入源" : "该供应商暂不支持同步",
|
|
1658
1659
|
onClick: () => void r(d),
|
|
1659
1660
|
children: [
|
|
1660
1661
|
/* @__PURE__ */ e(m, { name: "refresh", size: 12 }),
|
|
1661
|
-
|
|
1662
|
+
O === d.localKey ? "已发起…" : "同步"
|
|
1662
1663
|
]
|
|
1663
1664
|
}
|
|
1664
1665
|
),
|
|
@@ -1704,7 +1705,7 @@ function Z(n) {
|
|
|
1704
1705
|
return n.name || `主体 #${n.principalId}`;
|
|
1705
1706
|
}
|
|
1706
1707
|
function La({ kbId: n, canManage: o }) {
|
|
1707
|
-
const [c, v] = h([]), [g, t] = h(null), [L, $] = h(!0), [k, f] = h(""), [p, S] = h("all"), [D, I] = h(!1), [R, P] = h(null), [
|
|
1708
|
+
const [c, v] = h([]), [g, t] = h(null), [L, $] = h(!0), [k, f] = h(""), [p, S] = h("all"), [D, I] = h(!1), [R, P] = h(null), [O, w] = h(!1), [N, V] = h([]), [M, G] = h(""), [z, Q] = h(null), [U, Y] = h("READER"), [r, x] = h(!1), [A, _] = h(null);
|
|
1708
1709
|
ee(() => {
|
|
1709
1710
|
let s = !0;
|
|
1710
1711
|
return (async () => {
|
|
@@ -1737,7 +1738,7 @@ function La({ kbId: n, canManage: o }) {
|
|
|
1737
1738
|
l.principalId
|
|
1738
1739
|
) : !0);
|
|
1739
1740
|
}, [c, k, p]), j = async () => {
|
|
1740
|
-
Q(null),
|
|
1741
|
+
Q(null), G(""), Y("READER"), w(!0), x(!0);
|
|
1741
1742
|
const s = await Ce(n, "");
|
|
1742
1743
|
V(s || []), x(!1);
|
|
1743
1744
|
}, u = async () => {
|
|
@@ -1750,7 +1751,7 @@ function La({ kbId: n, canManage: o }) {
|
|
|
1750
1751
|
return;
|
|
1751
1752
|
}
|
|
1752
1753
|
I(!0);
|
|
1753
|
-
const s = await Ee(n, z,
|
|
1754
|
+
const s = await Ee(n, z, U);
|
|
1754
1755
|
I(!1), s !== void 0 && (E("成员已加入", `${Z(s)} · ${le(s.role)}`, "success"), w(!1), await F());
|
|
1755
1756
|
}, b = async (s, l) => {
|
|
1756
1757
|
if (s.role === l)
|
|
@@ -1822,7 +1823,7 @@ function La({ kbId: n, canManage: o }) {
|
|
|
1822
1823
|
] })
|
|
1823
1824
|
] })
|
|
1824
1825
|
] }),
|
|
1825
|
-
|
|
1826
|
+
O ? /* @__PURE__ */ a("div", { className: "member-add", children: [
|
|
1826
1827
|
/* @__PURE__ */ a("div", { className: "row gap-6 member-add-bar", children: [
|
|
1827
1828
|
/* @__PURE__ */ a("div", { className: "input-icon", children: [
|
|
1828
1829
|
/* @__PURE__ */ e(m, { name: "search", size: 13 }),
|
|
@@ -1832,7 +1833,7 @@ function La({ kbId: n, canManage: o }) {
|
|
|
1832
1833
|
className: "input",
|
|
1833
1834
|
placeholder: "搜索姓名或工号",
|
|
1834
1835
|
value: M,
|
|
1835
|
-
onChange: (s) =>
|
|
1836
|
+
onChange: (s) => G(s.target.value),
|
|
1836
1837
|
onKeyDown: (s) => {
|
|
1837
1838
|
s.key === "Enter" && u();
|
|
1838
1839
|
}
|
|
@@ -1856,9 +1857,9 @@ function La({ kbId: n, canManage: o }) {
|
|
|
1856
1857
|
"select",
|
|
1857
1858
|
{
|
|
1858
1859
|
className: "select member-role-select",
|
|
1859
|
-
value:
|
|
1860
|
+
value: U,
|
|
1860
1861
|
"aria-label": "新成员角色",
|
|
1861
|
-
onChange: (s) =>
|
|
1862
|
+
onChange: (s) => Y(s.target.value),
|
|
1862
1863
|
children: ue.map((s) => /* @__PURE__ */ e("option", { value: s, children: pe[s].label }, s))
|
|
1863
1864
|
}
|
|
1864
1865
|
),
|
|
@@ -2040,11 +2041,11 @@ function Ma({
|
|
|
2040
2041
|
onClose: c,
|
|
2041
2042
|
onDone: v
|
|
2042
2043
|
}) {
|
|
2043
|
-
var P,
|
|
2044
|
+
var P, O;
|
|
2044
2045
|
const g = n.scopeType !== "TEAM", t = De(
|
|
2045
2046
|
() => o.filter((w) => g || w.teamId !== n.teamId),
|
|
2046
2047
|
[g, n.teamId, o]
|
|
2047
|
-
), L = g ? "个人知识库" : ((P = o.find((w) => w.teamId === n.teamId)) == null ? void 0 : P.name) || n.teamName || "当前团队", [$, k] = h(((
|
|
2048
|
+
), L = g ? "个人知识库" : ((P = o.find((w) => w.teamId === n.teamId)) == null ? void 0 : P.name) || n.teamName || "当前团队", [$, k] = h(((O = t[0]) == null ? void 0 : O.teamId) || ""), [f, p] = h(""), [S, D] = h(!1), I = t.find((w) => w.teamId === $), R = async () => {
|
|
2048
2049
|
if (I) {
|
|
2049
2050
|
D(!0);
|
|
2050
2051
|
try {
|
|
@@ -2147,11 +2148,11 @@ const xe = [
|
|
|
2147
2148
|
{ key: "ai", label: "AI 托管", icon: "sparkles", hint: "托管总闸与空间状态" },
|
|
2148
2149
|
{ key: "danger", label: "危险区", icon: "alert-triangle", hint: "归档、迁移与删除" }
|
|
2149
2150
|
];
|
|
2150
|
-
function
|
|
2151
|
-
const n =
|
|
2151
|
+
function Ja() {
|
|
2152
|
+
const n = Oe(), o = Ue(), [c] = Fe(), v = n.kbId || "", g = He(), [t, L] = h(null), [$, k] = h(!0), [f, p] = h(!1), [S, D] = h(() => {
|
|
2152
2153
|
const y = c.get("section");
|
|
2153
2154
|
return xe.some((H) => H.key === y) ? y : "basic";
|
|
2154
|
-
}), [I, R] = h(""), [P,
|
|
2155
|
+
}), [I, R] = h(""), [P, O] = h(""), [w, N] = h(!1), [V, M] = h(!1), [G, z] = h(!1), [Q, U] = h(""), [Y, r] = h(!1), [x, A] = h(!1), [_, F] = h([]), [B, j] = h(null), { width: u, containerRef: d, startResize: b, resetWidth: T } = ua({
|
|
2155
2156
|
storageKey: "kb.settingsNavWidth",
|
|
2156
2157
|
defaultWidth: 240,
|
|
2157
2158
|
minWidth: 200,
|
|
@@ -2162,12 +2163,12 @@ function ja() {
|
|
|
2162
2163
|
return;
|
|
2163
2164
|
}
|
|
2164
2165
|
k(!0);
|
|
2165
|
-
const y = await
|
|
2166
|
+
const y = await Ke(v);
|
|
2166
2167
|
if (k(!1), !y) {
|
|
2167
2168
|
p(!0), L(null);
|
|
2168
2169
|
return;
|
|
2169
2170
|
}
|
|
2170
|
-
p(!1), L(y), R(y.name),
|
|
2171
|
+
p(!1), L(y), R(y.name), O(y.description || "");
|
|
2171
2172
|
}, [v]);
|
|
2172
2173
|
ee(() => {
|
|
2173
2174
|
(async () => await s())();
|
|
@@ -2185,7 +2186,7 @@ function ja() {
|
|
|
2185
2186
|
if (!t)
|
|
2186
2187
|
return;
|
|
2187
2188
|
let y = !1;
|
|
2188
|
-
return
|
|
2189
|
+
return Ve({ view: "mine", status: "PENDING", size: 100 }).then((H) => {
|
|
2189
2190
|
if (y || !H)
|
|
2190
2191
|
return;
|
|
2191
2192
|
const he = (H.records || []).find(
|
|
@@ -2222,7 +2223,7 @@ function ja() {
|
|
|
2222
2223
|
return;
|
|
2223
2224
|
}
|
|
2224
2225
|
N(!0);
|
|
2225
|
-
const H = await
|
|
2226
|
+
const H = await qe({
|
|
2226
2227
|
kbId: t.kbId,
|
|
2227
2228
|
name: y,
|
|
2228
2229
|
description: P.trim()
|
|
@@ -2232,13 +2233,13 @@ function ja() {
|
|
|
2232
2233
|
if (!t)
|
|
2233
2234
|
return;
|
|
2234
2235
|
M(!0);
|
|
2235
|
-
const H = y === "archive" ? await
|
|
2236
|
+
const H = y === "archive" ? await Qe(t.kbId) : await Ge(t.kbId);
|
|
2236
2237
|
M(!1), H !== void 0 && (E(y === "archive" ? "已归档" : "已恢复", t.name, "success"), s());
|
|
2237
2238
|
}, J = async () => {
|
|
2238
2239
|
if (!t || Q.trim() !== t.code)
|
|
2239
2240
|
return;
|
|
2240
2241
|
r(!0);
|
|
2241
|
-
const y = await
|
|
2242
|
+
const y = await Ye(t.kbId);
|
|
2242
2243
|
r(!1), y !== void 0 && (E("知识库已删除", t.name, "success"), o("/knowledge-bases"));
|
|
2243
2244
|
};
|
|
2244
2245
|
if ($)
|
|
@@ -2351,7 +2352,7 @@ function ja() {
|
|
|
2351
2352
|
id: "kb-basic-description",
|
|
2352
2353
|
className: "textarea",
|
|
2353
2354
|
value: P,
|
|
2354
|
-
onChange: (y) =>
|
|
2355
|
+
onChange: (y) => O(y.target.value)
|
|
2355
2356
|
}
|
|
2356
2357
|
)
|
|
2357
2358
|
] })
|
|
@@ -2381,7 +2382,7 @@ function ja() {
|
|
|
2381
2382
|
] }),
|
|
2382
2383
|
/* @__PURE__ */ e("div", { className: "panel-body", children: /* @__PURE__ */ a("dl", { className: "kv", children: [
|
|
2383
2384
|
/* @__PURE__ */ e("dt", { children: "所属租户" }),
|
|
2384
|
-
/* @__PURE__ */ e("dd", { children: g ?
|
|
2385
|
+
/* @__PURE__ */ e("dd", { children: g ? _e(g) : "—" }),
|
|
2385
2386
|
/* @__PURE__ */ e("dt", { children: "负责人" }),
|
|
2386
2387
|
/* @__PURE__ */ e("dd", { children: t.ownerName || `actorId ${t.ownerId}` }),
|
|
2387
2388
|
/* @__PURE__ */ e("dt", { children: "创建时间" }),
|
|
@@ -2481,7 +2482,7 @@ function ja() {
|
|
|
2481
2482
|
type: "button",
|
|
2482
2483
|
disabled: !t.canManage || t.status !== "ARCHIVED",
|
|
2483
2484
|
onClick: () => {
|
|
2484
|
-
|
|
2485
|
+
U(""), z(!0);
|
|
2485
2486
|
},
|
|
2486
2487
|
children: [
|
|
2487
2488
|
/* @__PURE__ */ e(m, { name: "trash", size: 13 }),
|
|
@@ -2496,7 +2497,7 @@ function ja() {
|
|
|
2496
2497
|
]
|
|
2497
2498
|
}
|
|
2498
2499
|
),
|
|
2499
|
-
|
|
2500
|
+
G ? /* @__PURE__ */ e(
|
|
2500
2501
|
Re,
|
|
2501
2502
|
{
|
|
2502
2503
|
icon: "trash",
|
|
@@ -2511,7 +2512,7 @@ function ja() {
|
|
|
2511
2512
|
{
|
|
2512
2513
|
className: "btn danger",
|
|
2513
2514
|
type: "button",
|
|
2514
|
-
disabled: Q.trim() !== t.code ||
|
|
2515
|
+
disabled: Q.trim() !== t.code || Y,
|
|
2515
2516
|
onClick: () => void J(),
|
|
2516
2517
|
children: [
|
|
2517
2518
|
/* @__PURE__ */ e(m, { name: "trash", size: 12 }),
|
|
@@ -2533,7 +2534,7 @@ function ja() {
|
|
|
2533
2534
|
value: Q,
|
|
2534
2535
|
placeholder: t.code,
|
|
2535
2536
|
autoComplete: "off",
|
|
2536
|
-
onChange: (y) =>
|
|
2537
|
+
onChange: (y) => U(y.target.value)
|
|
2537
2538
|
}
|
|
2538
2539
|
)
|
|
2539
2540
|
] }) })
|
|
@@ -2556,5 +2557,5 @@ function ja() {
|
|
|
2556
2557
|
] });
|
|
2557
2558
|
}
|
|
2558
2559
|
export {
|
|
2559
|
-
|
|
2560
|
+
Ja as default
|
|
2560
2561
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { I as d } from "./embed-
|
|
2
|
+
import { I as d } from "./embed-BUaR8PAn.js";
|
|
3
3
|
function o({ enabled: e }) {
|
|
4
4
|
return /* @__PURE__ */ n("span", { className: `tag sm ${e ? "green" : "amber"}`, children: e ? "已启用" : "已停用" });
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as f } from "./embed-
|
|
2
|
-
import { O as u } from "./ai-
|
|
1
|
+
import { q as f } from "./embed-BUaR8PAn.js";
|
|
2
|
+
import { O as u } from "./ai-DZ6fqUyK.js";
|
|
3
3
|
import { useState as s, useEffect as l } from "react";
|
|
4
4
|
const d = /^[a-zA-Z][a-zA-Z0-9_-]{1,63}$/, m = "字母开头,仅字母、数字、下划线、连字符,2–64 位";
|
|
5
5
|
function _(e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { u as H, g as W, I as i, Q as R, t as f, k as G, j as J } from "./embed-
|
|
3
|
-
import { A as V, s as X } from "./save-blob-
|
|
4
|
-
import { j as Y, p as Z, q as ee, t as te, v as ne } from "./ai-
|
|
5
|
-
import { A as F, a as ae, b as se, c as le, d as ie } from "./shared-
|
|
6
|
-
import { u as ce, A as oe, f as de } from "./shared-utils-
|
|
2
|
+
import { u as H, g as W, I as i, Q as R, t as f, k as G, j as J } from "./embed-BUaR8PAn.js";
|
|
3
|
+
import { A as V, s as X } from "./save-blob-C5BbV45B.js";
|
|
4
|
+
import { j as Y, p as Z, q as ee, t as te, v as ne } from "./ai-DZ6fqUyK.js";
|
|
5
|
+
import { A as F, a as ae, b as se, c as le, d as ie } from "./shared-B51Q5536.js";
|
|
6
|
+
import { u as ce, A as oe, f as de } from "./shared-utils-Ck5sql2m.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import { useState as s, useEffect as O, useMemo as U } from "react";
|
|
9
9
|
const j = "/ai/skills/new";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as D, r as c, K as L, I as O } from "./embed-
|
|
1
|
+
import { t as D, r as c, K as L, I as O } from "./embed-BUaR8PAn.js";
|
|
2
2
|
import { jsxs as g, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { useState as f, useRef as x, useEffect as T } from "react";
|
|
4
4
|
const w = "/kb/v1/knowledgeBase/aiHosting", B = () => ({ "X-Tenant-Code": L() });
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as I } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f } from "react";
|
|
3
|
-
import { a as $, h as k, B as w, I as A } from "./embed-
|
|
4
|
-
import { u as B, E as D, e as F, s as Y, t as Z, g as ee, J as re, p as te, S as ae, a as ne, D as oe, b as ie, c as se, d as le, f as ce } from "./style-
|
|
5
|
-
import { i as O, J as de, p as R } from "./json-field-
|
|
6
|
-
import { D as _ } from "./index-
|
|
7
|
-
import { F as g } from "./index-
|
|
8
|
-
import { I as v } from "./index-
|
|
9
|
-
import { S as he } from "./index-
|
|
10
|
-
import { T as U } from "./index-
|
|
11
|
-
import { S as L } from "./index-
|
|
12
|
-
import { U as me } from "./index-
|
|
13
|
-
import { T as pe } from "./index-
|
|
14
|
-
import { P as ue } from "./index-
|
|
3
|
+
import { a as $, h as k, B as w, I as A } from "./embed-BUaR8PAn.js";
|
|
4
|
+
import { u as B, E as D, e as F, s as Y, t as Z, g as ee, J as re, p as te, S as ae, a as ne, D as oe, b as ie, c as se, d as le, f as ce } from "./style-BHQZmWlH.js";
|
|
5
|
+
import { i as O, J as de, p as R } from "./json-field-Bu-gFb6c.js";
|
|
6
|
+
import { D as _ } from "./index-DlqhOJnd.js";
|
|
7
|
+
import { F as g } from "./index-Bt9F-2Fl.js";
|
|
8
|
+
import { I as v } from "./index-CNBwau86.js";
|
|
9
|
+
import { S as he } from "./index-BDWjubAD.js";
|
|
10
|
+
import { T as U } from "./index-Be_iqVpx.js";
|
|
11
|
+
import { S as L } from "./index-BLGPH51v.js";
|
|
12
|
+
import { U as me } from "./index-Pcxp_AYe.js";
|
|
13
|
+
import { T as pe } from "./index-CDxeB8C4.js";
|
|
14
|
+
import { P as ue } from "./index-BuGHtvxH.js";
|
|
15
15
|
const q = 10 * 1024 * 1024, x = { INLINE: "内联数据", JDBC: "数据库 JDBC", HTTP: "HTTP 接口", FILE: "本地文件" };
|
|
16
16
|
function H(o) {
|
|
17
17
|
switch (o) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r, K as k, A as z, u as A, a as x, B as C,
|
|
2
|
-
import { useState as f, useCallback as
|
|
1
|
+
import { r, K as k, A as z, u as A, a as x, B as C, aa as $ } from "./embed-BUaR8PAn.js";
|
|
2
|
+
import { useState as f, useCallback as b, useEffect as y, useRef as w } from "react";
|
|
3
3
|
import { jsx as l } from "react/jsx-runtime";
|
|
4
|
-
import { T as N } from "./index-
|
|
4
|
+
import { T as N } from "./index-fVCVIu8I.js";
|
|
5
5
|
import { u as M } from "./use-resizable-columns-BpMCRKif.js";
|
|
6
|
-
import { A as j } from "./index-
|
|
7
|
-
import { F as q } from "./Table-
|
|
6
|
+
import { A as j } from "./index-IB3GOib9.js";
|
|
7
|
+
import { F as q } from "./Table-D1RvQXGM.js";
|
|
8
8
|
const s = "/kb/v1/etl", a = () => ({ "X-Tenant-Code": k() });
|
|
9
9
|
function L(e) {
|
|
10
10
|
return r(`${s}/source/page`, { method: "post", data: e, headers: a() });
|
|
@@ -73,7 +73,7 @@ function S(e) {
|
|
|
73
73
|
return e instanceof Error ? e.message : "请求失败,请重试";
|
|
74
74
|
}
|
|
75
75
|
function de(e, u) {
|
|
76
|
-
const [t, n] = f(u), [o, i] = f(0), [c, h] = f(), g =
|
|
76
|
+
const [t, n] = f(u), [o, i] = f(0), [c, h] = f(), g = b(() => i((m) => m + 1), []), p = (c == null ? void 0 : c.query) === t, d = !p || c.revision !== o, T = p ? c.page : { records: [], total: 0, current: t.current, size: t.size }, R = d ? "" : c.error;
|
|
77
77
|
return y(() => {
|
|
78
78
|
let m = !0;
|
|
79
79
|
return e(t).then((v) => {
|
|
@@ -86,11 +86,11 @@ function de(e, u) {
|
|
|
86
86
|
}, [e, t, o]), { page: T, query: t, setQuery: n, loading: d, error: R, refresh: g };
|
|
87
87
|
}
|
|
88
88
|
function pe() {
|
|
89
|
-
const { message: e } = z.useApp(), [u, t] = f(!1), [n, o] = f(""), i =
|
|
89
|
+
const { message: e } = z.useApp(), [u, t] = f(!1), [n, o] = f(""), i = w(!1), c = w(!0);
|
|
90
90
|
y(() => (c.current = !0, () => {
|
|
91
91
|
c.current = !1;
|
|
92
92
|
}), []);
|
|
93
|
-
const h =
|
|
93
|
+
const h = b(async (g, p) => {
|
|
94
94
|
if (!i.current) {
|
|
95
95
|
i.current = !0, t(!0), o("");
|
|
96
96
|
try {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { I as m, t as N, a as Q } from "./embed-
|
|
2
|
+
import { I as m, t as N, a as Q } from "./embed-BUaR8PAn.js";
|
|
3
3
|
import { createPortal as O } from "react-dom";
|
|
4
|
-
import { b as V, T as b, a as F, n as T, c as G } from "./index-
|
|
5
|
-
import { b as H, c as $ } from "./ai-
|
|
4
|
+
import { b as V, T as b, a as F, n as T, c as G } from "./index-BU2GXuww.js";
|
|
5
|
+
import { b as H, c as $ } from "./ai-DZ6fqUyK.js";
|
|
6
6
|
import { u as z } from "./use-escape-key-4SZ4l7av.js";
|
|
7
7
|
import { useState as d, useEffect as D, useCallback as K } from "react";
|
|
8
8
|
import { f as W } from "./format-CWI99NCN.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect as m } from "react";
|
|
3
|
-
import { L as l, I as n } from "./embed-
|
|
3
|
+
import { L as l, I as n } from "./embed-BUaR8PAn.js";
|
|
4
4
|
import { B as o } from "./brand-mark-CZN3BhGW.js";
|
|
5
5
|
const s = [
|
|
6
6
|
{
|