@yuku123/z-cognition-component 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{BaseInput-DHrGPDB9.js → BaseInput-BYGhTvYI.js} +1 -1
- package/dist-lib/{ClockCircleOutlined-DP6fSLgk.js → ClockCircleOutlined-DACEazDR.js} +1 -1
- package/dist-lib/{Collapse-B77SsmFh.js → Collapse-CZbXdmBX.js} +85 -85
- package/dist-lib/{DeleteOutlined-BAZSAooQ.js → DeleteOutlined-CtmAIIV3.js} +4 -4
- package/dist-lib/{EllipsisOutlined-Dr4orLLw.js → EllipsisOutlined-pgnttbec.js} +94 -94
- package/dist-lib/{EyeOutlined-CudyDdjH.js → EyeOutlined-WKo_SfEi.js} +1 -1
- package/dist-lib/{LeftOutlined-CJasZIyX.js → LeftOutlined-B79bB1ZG.js} +1 -1
- package/dist-lib/{Pagination-BJ8wnqAa.js → Pagination-CFhUxTf8.js} +4 -4
- package/dist-lib/{RotateRightOutlined-DqyspFCO.js → RotateRightOutlined-TrlUrEUZ.js} +1 -1
- package/dist-lib/{Table-J_7eBbi7.js → Table-BF9fhMoT.js} +120 -120
- package/dist-lib/{accessAk-CA30m5eX.js → accessAk-BKnWRdnG.js} +1 -1
- package/dist-lib/{agents-eZDKzePP.js → agents-B5wsLzS-.js} +17 -17
- package/dist-lib/{ai-CNSn3-sd.js → ai-CccmxFWN.js} +1 -1
- package/dist-lib/{ai-chat-share-Yrqt_J6a.js → ai-chat-share-BjZFvUph.js} +4 -4
- package/dist-lib/{ak-manage-DklVFT5I.js → ak-manage-DD_F6560.js} +12 -12
- package/dist-lib/{approval-B-bCSmfi.js → approval-a4d4zlUd.js} +3 -3
- package/dist-lib/{approvals-B0ggYiyD.js → approvals-DnwdMEU5.js} +2 -2
- package/dist-lib/{assistant-Of0mgMsM.js → assistant-BA6oeNSC.js} +39 -39
- package/dist-lib/{assistant-history-DcyDhUzJ.js → assistant-history-Dfykk2a4.js} +5 -5
- package/dist-lib/{assistant-summary-CjLaTyFz.js → assistant-summary-BkmSqskU.js} +1 -1
- package/dist-lib/{audit-wDNCfmOy.js → audit-ZZhtw95x.js} +1 -1
- package/dist-lib/{bios-CIwO1AUK.js → bios-CSjjJ5Bc.js} +11 -11
- package/dist-lib/{callSuper-CpMOVGin.js → callSuper-Bk-mj4By.js} +1 -1
- package/dist-lib/{category-9gqNseEa.js → category-9CorlqP4.js} +1 -1
- package/dist-lib/{causal-CzAYukj9.js → causal-CYR-CTQK.js} +5 -5
- package/dist-lib/{changelog-CQfIMS51.js → changelog-BcZ6KQ3C.js} +2 -2
- package/dist-lib/{changelog-sKJMQrlV.js → changelog-Bqm52V9T.js} +1 -1
- package/dist-lib/{chat-panel-BPbqKckR.js → chat-panel-Ctr_CdZu.js} +28 -28
- package/dist-lib/{code-space-D_ZE966E.js → code-space-DG83npvh.js} +9 -9
- package/dist-lib/{colors-DpKdb8L-.js → colors-DJzrNkCt.js} +3 -3
- package/dist-lib/{community-9_7ExHcm.js → community-CXEbdg7X.js} +1 -1
- package/dist-lib/{community-CfWXxujB.js → community-Cmx4qRHG.js} +3 -3
- package/dist-lib/{community-material-page-Z_EZuBPl.js → community-material-page-jguoD9kV.js} +19 -19
- package/dist-lib/{connections-Bcqsp11M.js → connections-DJAsz2Hb.js} +6 -6
- package/dist-lib/{createForOfIteratorHelper-CasBzL_Q.js → createForOfIteratorHelper-BArIG0W5.js} +1 -1
- package/dist-lib/{detail-CV6xp_Jp.js → detail-BWBtDkWH.js} +4 -4
- package/dist-lib/{detail-EyLdjGpX.js → detail-CLqCbf3i.js} +37 -37
- package/dist-lib/{detail-DioaWKWj.js → detail-DKLwIzyI.js} +14 -14
- package/dist-lib/{development-CFcOIUKc.js → development-DG37KZEV.js} +17 -17
- package/dist-lib/{downloads-DtV5hOQv.js → downloads-Cg8PCqDp.js} +1 -1
- package/dist-lib/{edit-NtXUNj5N.js → edit-Cfv83zho.js} +24 -24
- package/dist-lib/{editor-KZhj-rwT.js → editor-BriqrlTB.js} +16 -16
- package/dist-lib/{editor-page-BaxK_OYm.js → editor-page-p2TQlJtq.js} +13 -13
- package/dist-lib/{embed-mf8t3QXh.js → embed-CoEyJMJx.js} +3236 -3245
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-CZTpC9v3.js → evaluation-C6CAwoWp.js} +2 -2
- package/dist-lib/{execution-B6HmOA2_.js → execution-BMkglxKG.js} +13 -13
- package/dist-lib/{graph-DHV-rdiK.js → graph-DkaHV2AX.js} +5 -5
- package/dist-lib/{index-BvJ35WL3.js → index-B21fkm-c.js} +9 -9
- package/dist-lib/{index-B5Roo82U.js → index-B2Hx9Q2V.js} +20 -20
- package/dist-lib/{index-CSJA8wvL.js → index-BMVRmc79.js} +36 -36
- package/dist-lib/{index-CdJ5ggvp.js → index-BQnPPCKW.js} +15 -15
- package/dist-lib/{index-BqTsLClH.js → index-BRyPjc2E.js} +1 -1
- package/dist-lib/{index-BkTegt8T.js → index-BeejupFS.js} +150 -150
- package/dist-lib/{index-BEO8itgt.js → index-BelOhXK9.js} +11 -11
- package/dist-lib/{index-DU6bO95v.js → index-Bqkx1OMz.js} +70 -70
- package/dist-lib/{index--AI-htgA.js → index-Bqpk0cSp.js} +11 -11
- package/dist-lib/{index-BoCtPJD4.js → index-BqvwZwaa.js} +181 -181
- package/dist-lib/{index-DaMLYomP.js → index-BwkQzFNo.js} +9 -9
- package/dist-lib/{index-BPbOPT2j.js → index-By7lJ7OM.js} +2 -2
- package/dist-lib/{index-B7SfTpox.js → index-C0bjp6yU.js} +19 -19
- package/dist-lib/{index-B12ZggsE.js → index-C8VIE0cr.js} +6 -6
- package/dist-lib/{index-C2CV4bte.js → index-CAk-RbBL.js} +2 -2
- package/dist-lib/{index-3J47mTL1.js → index-CFMm6EBU.js} +1 -1
- package/dist-lib/{index-zXwXfn-X.js → index-CkrD_v5E.js} +12 -12
- package/dist-lib/{index-DhSCFLtV.js → index-Ct0MiSE7.js} +81 -81
- package/dist-lib/{index-DKAGVWMX.js → index-D1vltZIy.js} +56 -56
- package/dist-lib/{index-BsoHetYT.js → index-DQ1YCU_6.js} +38 -38
- package/dist-lib/{index-xQmDaKK3.js → index-DQL0rlRD.js} +1 -1
- package/dist-lib/{index-DgfIEgir.js → index-Dfpj76EP.js} +1 -1
- package/dist-lib/{index-Bw4M9KLv.js → index-DljgNXFS.js} +73 -73
- package/dist-lib/{index-CgwK2maq.js → index-DrC19OH2.js} +38 -38
- package/dist-lib/{index-CLhLA2ig.js → index-DvdRKgvN.js} +64 -64
- package/dist-lib/{index-DGbjbjBY.js → index-EoyTsMVR.js} +2 -2
- package/dist-lib/{index-Bln3mJfp.js → index-MN71_qSy.js} +2 -2
- package/dist-lib/{index-CwyFMPcr.js → index-MrasjwT1.js} +10 -10
- package/dist-lib/{index-VeAMz0iC.js → index-TVyOVj_f.js} +39 -39
- package/dist-lib/{index-D6ns_Xmf.js → index-cWJDD_7e.js} +2 -2
- package/dist-lib/{index-QZ9JPfVR.js → index-fSzyAUm4.js} +10 -10
- package/dist-lib/{index-CF0ucN_K.js → index-gSQpnDVD.js} +3 -3
- package/dist-lib/{index-BkJjYgKD.js → index-jfZsBNfr.js} +262 -262
- package/dist-lib/{index-Bd7AGv4a.js → index-lpiHPbbx.js} +2 -2
- package/dist-lib/{index-CvxfA0ZK.js → index-ly9q05gX.js} +14 -14
- package/dist-lib/{index-CtqUgNxs.js → index-mANVYpNc.js} +14 -14
- package/dist-lib/{index-2SysmGHo.js → index-o4EXX17N.js} +73 -73
- package/dist-lib/index.js +1 -1
- package/dist-lib/{json-field-COcz5F2R.js → json-field-BqyYVncd.js} +2 -2
- package/dist-lib/{kb-form-modal-D9gnvXbE.js → kb-form-modal-B9_s7HKJ.js} +20 -19
- package/dist-lib/{kbTeam-CorrPJFr.js → kbTeam-D_xeQOnk.js} +1 -1
- package/dist-lib/{knowledge-base-DJkjMFHW.js → knowledge-base-BIlYHNX_.js} +21 -20
- package/dist-lib/{knowledge-hub-DKiDlaZz.js → knowledge-hub-DS9jz2ml.js} +12 -12
- package/dist-lib/{login-56zv4aLO.js → login-81vYOi7C.js} +6 -6
- package/dist-lib/{markdown-lite-p1tiuSZM.js → markdown-lite-C0TxiY46.js} +30 -30
- package/dist-lib/{material-DtPASeqq.js → material-0d6ENLyU.js} +1 -1
- package/dist-lib/{material-draft-markdown-281d5_GN.js → material-draft-markdown-BqqPZtbw.js} +2 -2
- package/dist-lib/{material-original-preview-CPGjdmbe.js → material-original-preview-BDeVDdfb.js} +5 -5
- package/dist-lib/{material-workspace-model-QLsU5qUO.js → material-workspace-model-DPaWrRpo.js} +1 -1
- package/dist-lib/{member-Cz-OIdj9.js → member-Dc8Fi9Yt.js} +1 -1
- package/dist-lib/memory-reorganization-DN4oUE9r.js +1007 -0
- package/dist-lib/{memory-spaces-D-orVNR7.js → memory-spaces-BJp4AIUb.js} +19 -19
- package/dist-lib/{message-C9gfvpGg.js → message-C6yBkCNm.js} +1 -1
- package/dist-lib/{message-D6FhzB7J.js → message-DPeo_cTR.js} +3 -3
- package/dist-lib/{messages-cctmEVcG.js → messages-DdfLmuQI.js} +2 -2
- package/dist-lib/{meta-DT_O4zM9.js → meta-CBLO5qXw.js} +2 -2
- package/dist-lib/{metrics-BNeVcI8-.js → metrics-7ptCjiKn.js} +2 -2
- package/dist-lib/{mobile-D8kZjfQU.js → mobile-DC0hcQji.js} +2 -2
- package/dist-lib/{monitor-DexMYjzF.js → monitor-DX1u-yHi.js} +3 -3
- package/dist-lib/{monitor-DTUyqumg.js → monitor-DoWMKmYn.js} +3 -3
- package/dist-lib/{my-access-DWBV6ohp.js → my-access-64Rn1HXY.js} +3 -3
- package/dist-lib/{my-permissions-B-gJZQYM.js → my-permissions-DKjDBIjY.js} +4 -4
- package/dist-lib/{navigation-DVlyWnpD.js → navigation-B_vBrx_f.js} +1 -1
- package/dist-lib/{new-JmARyD88.js → new-D3Q8_hzT.js} +5 -5
- package/dist-lib/{ontology-B4rkO33J.js → ontology-Ct7a7W50.js} +5 -5
- package/dist-lib/{ontology-dataprep-BwD5TKs2.js → ontology-dataprep-DhZWKCnw.js} +1 -1
- package/dist-lib/{ontology-domains-zxFrjn0v.js → ontology-domains-BG6ZPWXm.js} +35 -35
- package/dist-lib/{ontology-extract-BHOxruRO.js → ontology-extract-53pAcKaP.js} +22 -22
- package/dist-lib/{ontology-extract-iR_rXxFe.js → ontology-extract-D9RViy3r.js} +1 -1
- package/dist-lib/{ontology-flow-Dv5iQ20f.js → ontology-flow-Dx_5Dv1S.js} +3 -3
- package/dist-lib/{ontology-flow-CW0SzeK7.js → ontology-flow-cbGY8kOV.js} +6 -6
- package/dist-lib/{ontology-modeling-B9wswveh.js → ontology-modeling-9beSFK8t.js} +2 -2
- package/dist-lib/{ontology-modeling-hakCluBi.js → ontology-modeling-BkFq7sU1.js} +33 -33
- package/dist-lib/{ontology-scenarios-DKnfydG6.js → ontology-scenarios-ANZMjyMB.js} +1 -1
- package/dist-lib/{ontology-scenarios-C2kp7Rs-.js → ontology-scenarios-BC1UBvtT.js} +350 -350
- package/dist-lib/{ontology-task-config-DmnWyCCB.js → ontology-task-config-dDFRrWtJ.js} +1 -1
- package/dist-lib/{ontology-terms-C-NhpcIZ.js → ontology-terms-B9H9VcuR.js} +18 -18
- package/dist-lib/{ontology-terms-BoNB-5ar.js → ontology-terms-BcXCuUsy.js} +1 -1
- package/dist-lib/{permission-Dq1-AOQw.js → permission-pETAJZl6.js} +2 -2
- package/dist-lib/{preset-DCNSE--Y.js → preset-5F2VcdUE.js} +3 -3
- package/dist-lib/{progress-CZxOOnIs.js → progress-COKT887h.js} +31 -31
- package/dist-lib/{quota-oICQRHFU.js → quota-BzWY9oeV.js} +7 -6
- package/dist-lib/{row-By17TCiW.js → row-BFBgIphS.js} +2 -2
- package/dist-lib/{runs-DQTDpPaN.js → runs-7LWS6iAN.js} +6 -6
- package/dist-lib/{save-blob-CwCZE1Dn.js → save-blob-D_q2LunT.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-sJtjgmry.js → scenario-mapping-preview-CDg3_f0U.js} +5 -5
- package/dist-lib/{scenario-simple-form-BvKSPFzw.js → scenario-simple-form--KSAzRS6.js} +9 -9
- package/dist-lib/{schedule-CwkPPSuT.js → schedule-BDrhhUsA.js} +2 -2
- package/dist-lib/{script-gYJAFobb.js → script-CtLQ-RSy.js} +14 -14
- package/dist-lib/{settings-CJd5Jj4y.js → settings--NTE0Hux.js} +71 -70
- package/dist-lib/{shared-DG5-VCDM.js → shared-BJA7rkgy.js} +1 -1
- package/dist-lib/{shared-utils-CFHws1DA.js → shared-utils-E5RBBDWx.js} +2 -2
- package/dist-lib/{skills-lxpJ5Lzx.js → skills-IziqBZOm.js} +5 -5
- package/dist-lib/{source-selection-DJnQQckl.js → source-selection-WsUOEBKN.js} +1 -1
- package/dist-lib/{sources-C83LpCcV.js → sources-D7ViKZtA.js} +12 -12
- package/dist-lib/{style-B5THvtDY.js → style-B7phAB4-.js} +8 -8
- package/dist-lib/{task-config-BNYoOb79.js → task-config-BhVD-uNg.js} +3 -3
- package/dist-lib/{tech-LuZvKDo6.js → tech-C2bOwBWk.js} +1 -1
- package/dist-lib/{templates-a-kbCamr.js → templates-Bh3ryZxt.js} +6 -6
- package/dist-lib/{tenant-login-COB-5h_2.js → tenant-login-D3193dIQ.js} +30 -30
- package/dist-lib/{tools-CrA6GrY6.js → tools-DCLdtvbE.js} +56 -56
- package/dist-lib/use-current-tenant-KGbU5HpT.js +22 -0
- package/dist-lib/{use-domain-access-ehGJBGvU.js → use-domain-access-CcPd_gzX.js} +1 -1
- package/dist-lib/{use-g6-graph-DfRnsBS6.js → use-g6-graph-CPKL_pXo.js} +1 -1
- package/dist-lib/{use-graph-layers-CrhEeHfD.js → use-graph-layers-Bi90s60B.js} +9 -9
- package/dist-lib/{useBreakpoint-Cul9y9Cu.js → useBreakpoint-SG_cMfLJ.js} +8 -8
- package/dist-lib/{useForm-B-dwOwJ8.js → useForm-Cp45oXOc.js} +14 -14
- package/dist-lib/{version-control-panel-mWXkC-uB.js → version-control-panel-Db_RP6gX.js} +1 -1
- package/dist-lib/{version-management-nPlG7wQO.js → version-management-DuCdU_fJ.js} +2 -2
- package/dist-lib/{welcome-Cqv1-rXT.js → welcome-DLcdZGtl.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/memory-reorganization-DgJnWIrW.js +0 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as o, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { u as h, a as y, B as i, I as d } from "./embed-
|
|
3
|
-
import { a as f, u as g, D as b, E as C, b as k, h as I, r as T, i as v } from "./style-
|
|
4
|
-
import { I as z } from "./index-
|
|
5
|
-
import { T as E } from "./index-
|
|
6
|
-
import { S } from "./index-
|
|
7
|
-
import { P as p } from "./index-
|
|
2
|
+
import { u as h, a as y, B as i, I as d } from "./embed-CoEyJMJx.js";
|
|
3
|
+
import { a as f, u as g, D as b, E as C, b as k, h as I, r as T, i as v } from "./style-B7phAB4-.js";
|
|
4
|
+
import { I as z } from "./index-o4EXX17N.js";
|
|
5
|
+
import { T as E } from "./index-mANVYpNc.js";
|
|
6
|
+
import { S } from "./index-fSzyAUm4.js";
|
|
7
|
+
import { P as p } from "./index-ly9q05gX.js";
|
|
8
8
|
function U() {
|
|
9
9
|
const n = h(), { can: c } = y(), r = f(I, { current: 1, size: 20 }), s = g(), m = (t) => n(`/data-space/templates/editor?code=${encodeURIComponent(t)}`), u = [
|
|
10
10
|
{ title: "模板", dataIndex: "name", width: 250, sorter: (t, e) => t.name.localeCompare(e.name), ellipsis: !0, render: (t, e) => /* @__PURE__ */ a(i, { className: "etl-cell-link", title: e.name, type: "link", onClick: () => m(e.code), children: e.name }) },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as a, jsxs as p, Fragment as V } from "react/jsx-runtime";
|
|
2
|
-
import { a as Y, g as ge, s as W, n as he, r as pe, L as we, b as
|
|
3
|
-
import { S as
|
|
4
|
-
import { F as
|
|
5
|
-
import { I as R } from "./index-
|
|
6
|
-
import { B as m,
|
|
2
|
+
import { a as Y, g as ge, s as W, n as he, r as pe, L as we, b as ye } from "./navigation-B_vBrx_f.js";
|
|
3
|
+
import { S as be } from "./index-B2Hx9Q2V.js";
|
|
4
|
+
import { F as b } from "./index-BeejupFS.js";
|
|
5
|
+
import { I as R } from "./index-o4EXX17N.js";
|
|
6
|
+
import { B as m, aa as j, r as Ce, R as ke, Z as Se, dh as ve, ay as Me } from "./embed-CoEyJMJx.js";
|
|
7
7
|
import { useState as d, useRef as G, useEffect as H } from "react";
|
|
8
|
-
import { A } from "./index-
|
|
8
|
+
import { A } from "./index-C0bjp6yU.js";
|
|
9
9
|
function Ne({ value: e, disabled: n, onChange: t }) {
|
|
10
10
|
return /* @__PURE__ */ a(
|
|
11
|
-
|
|
11
|
+
be,
|
|
12
12
|
{
|
|
13
13
|
className: "future-brain-tenant-login-mode",
|
|
14
14
|
block: !0,
|
|
@@ -20,8 +20,8 @@ function Ne({ value: e, disabled: n, onChange: t }) {
|
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
function Te({ loading: e, initialValue: n, cooldown: t = 0, onSubmit: i }) {
|
|
23
|
-
return /* @__PURE__ */ p(
|
|
24
|
-
/* @__PURE__ */ a(
|
|
23
|
+
return /* @__PURE__ */ p(b, { layout: "vertical", requiredMark: !1, initialValues: { identifier: n }, onFinish: i, children: [
|
|
24
|
+
/* @__PURE__ */ a(b.Item, { label: "手机号", name: "identifier", validateFirst: !0, rules: [
|
|
25
25
|
{ required: !0, whitespace: !0, message: "请输入手机号" },
|
|
26
26
|
{ validator: (o, u) => /^1[3-9]\d{9}$/.test((u ?? "").trim()) ? Promise.resolve() : Promise.reject(new Error("请输入正确的手机号")) }
|
|
27
27
|
], children: /* @__PURE__ */ a(R, { autoFocus: !0, size: "large", placeholder: "请输入手机号", autoComplete: "username", inputMode: "numeric", maxLength: 11 }) }),
|
|
@@ -34,9 +34,9 @@ function Te({ loading: e, initialValue: n, cooldown: t = 0, onSubmit: i }) {
|
|
|
34
34
|
] });
|
|
35
35
|
}
|
|
36
36
|
function Le({ loading: e, resending: n, mobileMask: t, cooldown: i, onResend: o, onSubmit: u }) {
|
|
37
|
-
return /* @__PURE__ */ p(
|
|
37
|
+
return /* @__PURE__ */ p(b, { layout: "vertical", requiredMark: !1, onFinish: u, children: [
|
|
38
38
|
/* @__PURE__ */ a("p", { className: "future-brain-tenant-login-hint", children: t ? `验证码已发送至 ${t}` : "验证码已发送至该手机号" }),
|
|
39
|
-
/* @__PURE__ */ a(
|
|
39
|
+
/* @__PURE__ */ a(b.Item, { label: "短信验证码", name: "code", rules: [
|
|
40
40
|
{ required: !0, whitespace: !0, message: "请输入验证码" },
|
|
41
41
|
{ pattern: /^\d{4,8}$/, message: "验证码为 4-8 位数字" }
|
|
42
42
|
], children: /* @__PURE__ */ a(R, { autoFocus: !0, size: "large", placeholder: "请输入短信验证码", autoComplete: "one-time-code", inputMode: "numeric", maxLength: 8 }) }),
|
|
@@ -45,20 +45,20 @@ function Le({ loading: e, resending: n, mobileMask: t, cooldown: i, onResend: o,
|
|
|
45
45
|
] });
|
|
46
46
|
}
|
|
47
47
|
function Ee({ loading: e, accountNo: n, tenantLabel: t, onSubmit: i }) {
|
|
48
|
-
return /* @__PURE__ */ p(
|
|
48
|
+
return /* @__PURE__ */ p(b, { layout: "vertical", requiredMark: !1, onFinish: i, children: [
|
|
49
49
|
/* @__PURE__ */ p("p", { className: "future-brain-tenant-login-hint", children: [
|
|
50
50
|
"登录账号:",
|
|
51
51
|
n,
|
|
52
52
|
t ? ` · 组织:${t}` : ""
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */ a(
|
|
54
|
+
/* @__PURE__ */ a(b.Item, { label: "密码", name: "password", rules: [{ required: !0, message: "请输入密码" }], children: /* @__PURE__ */ a(R.Password, { autoFocus: !0, size: "large", placeholder: "请输入密码", autoComplete: "current-password" }) }),
|
|
55
55
|
/* @__PURE__ */ a(m, { type: "primary", size: "large", block: !0, htmlType: "submit", loading: e, children: "登录" })
|
|
56
56
|
] });
|
|
57
57
|
}
|
|
58
58
|
function Ie({ loading: e, sending: n, mobile: t, onSend: i, onSubmit: o }) {
|
|
59
|
-
return /* @__PURE__ */ p(
|
|
59
|
+
return /* @__PURE__ */ p(b, { layout: "vertical", requiredMark: !1, onFinish: o, children: [
|
|
60
60
|
/* @__PURE__ */ a("p", { className: "future-brain-tenant-login-hint", children: t ? `为保障账号安全,请输入发送至 ${t} 的验证码` : "为保障账号安全,请输入短信验证码" }),
|
|
61
|
-
/* @__PURE__ */ a(
|
|
61
|
+
/* @__PURE__ */ a(b.Item, { label: "短信验证码", name: "smsCode", rules: [
|
|
62
62
|
{ required: !0, whitespace: !0, message: "请输入验证码" },
|
|
63
63
|
{ pattern: /^\d{4,8}$/, message: "验证码为 4-8 位数字" }
|
|
64
64
|
], children: /* @__PURE__ */ a(R, { autoFocus: !0, size: "large", placeholder: "请输入短信验证码", autoComplete: "one-time-code", inputMode: "numeric", maxLength: 8 }) }),
|
|
@@ -124,7 +124,7 @@ function Ue(e) {
|
|
|
124
124
|
const { accountNo: n, orgId: t, tenantCode: i } = e;
|
|
125
125
|
return w("/loginOrg", { accountNo: n, orgId: t }, i);
|
|
126
126
|
}
|
|
127
|
-
const
|
|
127
|
+
const Z = "future-brain.tenantLogin.smsCooldownUntil", X = 60, Be = {
|
|
128
128
|
"changePassword-pwdStrength": "当前密码强度不足,请前往统一登录页修改密码后登录。",
|
|
129
129
|
"changePassword-pwdExpire": "当前密码已过期,请前往统一登录页修改密码后登录。",
|
|
130
130
|
lockScreenOrg: "该账号需要先完成锁屏机构登录,请前往统一登录页。",
|
|
@@ -133,7 +133,7 @@ const J = "future-brain.tenantLogin.smsCooldownUntil", X = 60, Be = {
|
|
|
133
133
|
};
|
|
134
134
|
function Ve() {
|
|
135
135
|
try {
|
|
136
|
-
const e = Number(sessionStorage.getItem(
|
|
136
|
+
const e = Number(sessionStorage.getItem(Z));
|
|
137
137
|
return Number.isFinite(e) ? e : 0;
|
|
138
138
|
} catch {
|
|
139
139
|
return 0;
|
|
@@ -149,18 +149,18 @@ function We() {
|
|
|
149
149
|
const u = Date.now() + X * 1e3;
|
|
150
150
|
n(u);
|
|
151
151
|
try {
|
|
152
|
-
sessionStorage.setItem(
|
|
152
|
+
sessionStorage.setItem(Z, String(u));
|
|
153
153
|
} catch {
|
|
154
154
|
}
|
|
155
155
|
i(X);
|
|
156
156
|
} };
|
|
157
157
|
}
|
|
158
158
|
function je(e) {
|
|
159
|
-
const [n, t] = d("sms"), [i, o] = d("identify"), [u, T] = d(""), [k, M] = d(), [L, q] = d(), [
|
|
159
|
+
const [n, t] = d("sms"), [i, o] = d("identify"), [u, T] = d(""), [k, M] = d(), [L, q] = d(), [J, E] = d([]), [l, C] = d(), [P, I] = d(), [h, z] = d(), [Q, ee] = d([]), [ne, D] = d(), [te, S] = d(), [re, ae] = d(), f = G(!0), v = G(!1), N = We();
|
|
160
160
|
H(() => (f.current = !0, () => {
|
|
161
161
|
f.current = !1;
|
|
162
162
|
}), []);
|
|
163
|
-
async function
|
|
163
|
+
async function y(r, s) {
|
|
164
164
|
if (!v.current) {
|
|
165
165
|
v.current = !0, D(r), S(void 0);
|
|
166
166
|
try {
|
|
@@ -214,7 +214,7 @@ function je(e) {
|
|
|
214
214
|
const c = await ze({ identifier: u, selectTicket: s, tenantCode: r.tenantCode });
|
|
215
215
|
await x(c, r.tenantCode);
|
|
216
216
|
}
|
|
217
|
-
const ie = (r) =>
|
|
217
|
+
const ie = (r) => y("hint", async () => {
|
|
218
218
|
var g;
|
|
219
219
|
const s = r.identifier.trim();
|
|
220
220
|
if (I(void 0), C(void 0), E([]), n === "sms") {
|
|
@@ -230,9 +230,9 @@ function je(e) {
|
|
|
230
230
|
}
|
|
231
231
|
const c = await Pe(s);
|
|
232
232
|
f.current && (T(s), E(c.tenants ?? []), I(c.selectTicket), c.state === "DIRECT" ? (c.tenantCode && c.selectTicket && C({ tenantCode: c.tenantCode }), o("password")) : (((g = c.tenants) == null ? void 0 : g.length) ?? 0) > 1 ? o("tenant") : o("fallback"));
|
|
233
|
-
}), oe = () =>
|
|
233
|
+
}), oe = () => y("resend", async () => {
|
|
234
234
|
!k || N.left > 0 || (await Ae(k), f.current && N.start());
|
|
235
|
-
}), se = (r) =>
|
|
235
|
+
}), se = (r) => y("code", async () => {
|
|
236
236
|
if (!k)
|
|
237
237
|
throw o("identify"), new Error("验证信息已失效,请重新输入手机号");
|
|
238
238
|
const s = await qe(k, r.code.trim());
|
|
@@ -242,19 +242,19 @@ function je(e) {
|
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
function ce(r) {
|
|
245
|
-
v.current || (C(r), S(void 0), P ? n === "sms" ?
|
|
245
|
+
v.current || (C(r), S(void 0), P ? n === "sms" ? y("login", () => B(r, P)) : o("password") : (S("选择租户的验证已失效,请重新输入手机号"), o("identify")));
|
|
246
246
|
}
|
|
247
|
-
const le = (r) =>
|
|
247
|
+
const le = (r) => y("password", async () => {
|
|
248
248
|
const s = await De({ accountNo: u, password: r.password, tenantCode: l == null ? void 0 : l.tenantCode, selectTicket: P });
|
|
249
249
|
await x(s, l == null ? void 0 : l.tenantCode);
|
|
250
|
-
}), ue = (r) =>
|
|
250
|
+
}), ue = (r) => y("org", () => $(r, l == null ? void 0 : l.tenantCode)), de = () => y("send", async () => {
|
|
251
251
|
const r = h == null ? void 0 : h.mobile;
|
|
252
252
|
if (!r) {
|
|
253
253
|
O("未获取到接收短信的手机号,请前往统一登录页完成验证。");
|
|
254
254
|
return;
|
|
255
255
|
}
|
|
256
256
|
await _e({ accountNo: (h == null ? void 0 : h.accountNo) || u, telephone: r, tenantCode: l == null ? void 0 : l.tenantCode });
|
|
257
|
-
}), fe = (r) =>
|
|
257
|
+
}), fe = (r) => y("mfa", async () => {
|
|
258
258
|
const s = await $e({ accountNo: (h == null ? void 0 : h.accountNo) || u, smsCode: r.smsCode.trim(), tenantCode: l == null ? void 0 : l.tenantCode });
|
|
259
259
|
await x(s, l == null ? void 0 : l.tenantCode);
|
|
260
260
|
});
|
|
@@ -266,10 +266,10 @@ function je(e) {
|
|
|
266
266
|
step: i,
|
|
267
267
|
identifier: u,
|
|
268
268
|
mobileMask: L,
|
|
269
|
-
tenants:
|
|
269
|
+
tenants: J,
|
|
270
270
|
selectedTenant: l,
|
|
271
271
|
mfaInfo: h,
|
|
272
|
-
orgs:
|
|
272
|
+
orgs: Q,
|
|
273
273
|
busy: ne,
|
|
274
274
|
error: te,
|
|
275
275
|
degradedReason: re,
|
|
@@ -288,7 +288,7 @@ function je(e) {
|
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
function en() {
|
|
291
|
-
const e = Me(), n = je(pe(e.search, e.state)), { step: t, mode: i, busy: o } = n, u = () =>
|
|
291
|
+
const e = Me(), n = je(pe(e.search, e.state)), { step: t, mode: i, busy: o } = n, u = () => ye(e.search, e.state), T = t === "password" ? "" : t === "org" ? "该账号关联了多个机构,请选择登录机构" : t === "tenant" ? "该手机号在多个组织下有账号,请选择登录组织" : t === "mfa" ? "请完成短信二次验证" : t === "code" ? "验证码验证通过后选择组织即可进入" : i === "sms" ? "使用手机号接收验证码,验证后选择组织进入" : "使用手机号登录,选择组织后输入密码";
|
|
292
292
|
function k() {
|
|
293
293
|
var M, L;
|
|
294
294
|
switch (t) {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as D } from "react/jsx-runtime";
|
|
2
|
-
import { g as ue, I as b, t as R, k as he, j as te } from "./embed-
|
|
3
|
-
import { D as oe, E as pe, F as be, G as Ne, H as ve, I as ge, J as fe } from "./ai-
|
|
4
|
-
import { A as re, a as ye, b as ke, c as Ce, d as ce, K as Te } from "./shared-
|
|
5
|
-
import { u as we, i as xe, A as Se, f as Ae, c as ne, d as
|
|
2
|
+
import { g as ue, I as b, t as R, k as he, j as te } from "./embed-CoEyJMJx.js";
|
|
3
|
+
import { D as oe, E as pe, F as be, G as Ne, H as ve, I as ge, J as fe } from "./ai-CccmxFWN.js";
|
|
4
|
+
import { A as re, a as ye, b as ke, c as Ce, d as ce, K as Te } from "./shared-BJA7rkgy.js";
|
|
5
|
+
import { u as we, i as xe, A as Se, f as Ae, c as ne, d as Me, a as se, t as J, e as ze } from "./shared-utils-E5RBBDWx.js";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { u as Ee } from "./use-escape-key-4SZ4l7av.js";
|
|
8
8
|
import { useState as r, useEffect as de, useMemo as le } from "react";
|
|
9
|
-
const
|
|
9
|
+
const Pe = ["string", "integer", "number", "boolean", "object"], qe = ["GET", "POST", "PUT", "PATCH", "DELETE"], ie = {
|
|
10
10
|
name: "",
|
|
11
11
|
type: "string",
|
|
12
12
|
description: "",
|
|
13
13
|
required: !1
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function Fe({
|
|
16
16
|
mode: t,
|
|
17
17
|
tool: n,
|
|
18
18
|
remote: d,
|
|
19
19
|
onClose: T,
|
|
20
20
|
onSaved: w
|
|
21
21
|
}) {
|
|
22
|
-
const o = d || (n == null ? void 0 : n.kind) === "http", [N, f] = r((n == null ? void 0 : n.code) || ""), [u,
|
|
22
|
+
const o = d || (n == null ? void 0 : n.kind) === "http", [N, f] = r((n == null ? void 0 : n.code) || ""), [u, F] = r((n == null ? void 0 : n.name) || ""), [v, U] = r((n == null ? void 0 : n.description) || ""), [z, x] = r((n == null ? void 0 : n.method) || "POST"), [E, y] = r((n == null ? void 0 : n.url) || ""), [A, $] = r((n == null ? void 0 : n.baseUrl) || ""), [l, h] = r(
|
|
23
23
|
(n == null ? void 0 : n.timeoutMs) != null ? String(n.timeoutMs) : ""
|
|
24
|
-
), [c,
|
|
24
|
+
), [c, M] = r(
|
|
25
25
|
(n == null ? void 0 : n.retryCount) != null ? String(n.retryCount) : ""
|
|
26
26
|
), [k, K] = r((n == null ? void 0 : n.bizSource) || ""), [j, s] = r(
|
|
27
27
|
((n == null ? void 0 : n.headerNames) || []).map((i) => ({
|
|
28
28
|
name: i,
|
|
29
29
|
value: ""
|
|
30
30
|
}))
|
|
31
|
-
), [p,
|
|
31
|
+
), [p, P] = r(
|
|
32
32
|
n != null && n.parameters.length ? n.parameters.map((i) => ({ ...i })) : [{ ...ie }]
|
|
33
33
|
), [B, L] = r(!1), [V, O] = r(""), _ = (i, g) => {
|
|
34
|
-
|
|
34
|
+
P(
|
|
35
35
|
(m) => m.map((C, S) => S === i ? { ...C, ...g } : C)
|
|
36
36
|
);
|
|
37
37
|
}, G = (i, g) => {
|
|
@@ -44,24 +44,24 @@ function Pe({
|
|
|
44
44
|
O("编码与名称必填");
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
const m =
|
|
47
|
+
const m = ze(i);
|
|
48
48
|
if (m) {
|
|
49
49
|
O(m);
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
const C = p.map((
|
|
53
|
-
...
|
|
54
|
-
name:
|
|
55
|
-
description: (
|
|
56
|
-
})).filter((
|
|
57
|
-
if (new Set(C.map((
|
|
52
|
+
const C = p.map((q) => ({
|
|
53
|
+
...q,
|
|
54
|
+
name: q.name.trim(),
|
|
55
|
+
description: (q.description || "").trim()
|
|
56
|
+
})).filter((q) => q.name);
|
|
57
|
+
if (new Set(C.map((q) => q.name)).size !== C.length) {
|
|
58
58
|
O("参数名不能重复");
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
let H;
|
|
62
62
|
if (o) {
|
|
63
|
-
const
|
|
64
|
-
if (Q ? !W.test(Q) : !W.test(
|
|
63
|
+
const q = E.trim(), Q = A.trim(), W = /^https?:\/\//i;
|
|
64
|
+
if (Q ? !W.test(Q) : !W.test(q)) {
|
|
65
65
|
O("请求地址需要以 http:// 或 https:// 开头");
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
@@ -87,7 +87,7 @@ function Pe({
|
|
|
87
87
|
name: g,
|
|
88
88
|
description: v.trim() || void 0,
|
|
89
89
|
kind: o ? "http" : "builtin",
|
|
90
|
-
method: o ?
|
|
90
|
+
method: o ? z : void 0,
|
|
91
91
|
url: o ? E.trim() : void 0,
|
|
92
92
|
baseUrl: o && A.trim() ? A.trim() : void 0,
|
|
93
93
|
headers: H,
|
|
@@ -134,7 +134,7 @@ function Pe({
|
|
|
134
134
|
className: "input",
|
|
135
135
|
value: u,
|
|
136
136
|
placeholder: "如 订单查询",
|
|
137
|
-
onChange: (i) =>
|
|
137
|
+
onChange: (i) => F(i.target.value)
|
|
138
138
|
}
|
|
139
139
|
)
|
|
140
140
|
] }),
|
|
@@ -157,9 +157,9 @@ function Pe({
|
|
|
157
157
|
"select",
|
|
158
158
|
{
|
|
159
159
|
className: "select",
|
|
160
|
-
value:
|
|
160
|
+
value: z,
|
|
161
161
|
onChange: (i) => x(i.target.value),
|
|
162
|
-
children:
|
|
162
|
+
children: qe.map((i) => /* @__PURE__ */ e("option", { value: i, children: i }, i))
|
|
163
163
|
}
|
|
164
164
|
)
|
|
165
165
|
] }),
|
|
@@ -215,7 +215,7 @@ function Pe({
|
|
|
215
215
|
min: 0,
|
|
216
216
|
value: c,
|
|
217
217
|
placeholder: "留空默认 1",
|
|
218
|
-
onChange: (i) =>
|
|
218
|
+
onChange: (i) => M(i.target.value)
|
|
219
219
|
}
|
|
220
220
|
)
|
|
221
221
|
] }),
|
|
@@ -307,7 +307,7 @@ function Pe({
|
|
|
307
307
|
className: "select",
|
|
308
308
|
value: i.type,
|
|
309
309
|
onChange: (m) => _(g, { type: m.target.value }),
|
|
310
|
-
children:
|
|
310
|
+
children: Pe.map((m) => /* @__PURE__ */ e("option", { value: m, children: m }, m))
|
|
311
311
|
}
|
|
312
312
|
),
|
|
313
313
|
/* @__PURE__ */ e(
|
|
@@ -336,7 +336,7 @@ function Pe({
|
|
|
336
336
|
className: "icon-btn",
|
|
337
337
|
type: "button",
|
|
338
338
|
title: "移除参数",
|
|
339
|
-
onClick: () =>
|
|
339
|
+
onClick: () => P(
|
|
340
340
|
(m) => m.length <= 1 ? m : m.filter((C, S) => S !== g)
|
|
341
341
|
),
|
|
342
342
|
children: /* @__PURE__ */ e(b, { name: "x", size: 12 })
|
|
@@ -349,7 +349,7 @@ function Pe({
|
|
|
349
349
|
className: "btn xs",
|
|
350
350
|
type: "button",
|
|
351
351
|
style: { alignSelf: "flex-start" },
|
|
352
|
-
onClick: () =>
|
|
352
|
+
onClick: () => P((i) => [...i, { ...ie }]),
|
|
353
353
|
children: [
|
|
354
354
|
/* @__PURE__ */ e(b, { name: "plus", size: 11 }),
|
|
355
355
|
"添加参数"
|
|
@@ -414,7 +414,7 @@ function $e({
|
|
|
414
414
|
tool: t,
|
|
415
415
|
onClose: n
|
|
416
416
|
}) {
|
|
417
|
-
const { kbs: d, loading: T } =
|
|
417
|
+
const { kbs: d, loading: T } = Me(), [w, o] = r(""), [N, f] = r({}), [u, F] = r(!1), [v, U] = r(null), [z, x] = r(""), E = t.code === "knowledge_search", y = v ? Oe(v.content) : null;
|
|
418
418
|
Ee(n);
|
|
419
419
|
const A = (l, h) => {
|
|
420
420
|
f((c) => ({ ...c, [l]: h }));
|
|
@@ -425,8 +425,8 @@ function $e({
|
|
|
425
425
|
}
|
|
426
426
|
const l = {};
|
|
427
427
|
for (const c of t.parameters) {
|
|
428
|
-
const
|
|
429
|
-
if (!
|
|
428
|
+
const M = (N[c.name] || "").trim();
|
|
429
|
+
if (!M) {
|
|
430
430
|
if (c.required) {
|
|
431
431
|
x(`参数 ${c.name} 必填`);
|
|
432
432
|
return;
|
|
@@ -434,31 +434,31 @@ function $e({
|
|
|
434
434
|
continue;
|
|
435
435
|
}
|
|
436
436
|
if (c.type === "integer" || c.type === "number") {
|
|
437
|
-
const k = Number(
|
|
437
|
+
const k = Number(M);
|
|
438
438
|
if (!Number.isFinite(k)) {
|
|
439
439
|
x(`参数 ${c.name} 需要是数字`);
|
|
440
440
|
return;
|
|
441
441
|
}
|
|
442
442
|
l[c.name] = c.type === "integer" ? Math.trunc(k) : k;
|
|
443
443
|
} else if (c.type === "boolean")
|
|
444
|
-
l[c.name] =
|
|
444
|
+
l[c.name] = M === "true";
|
|
445
445
|
else if (c.type === "object")
|
|
446
446
|
try {
|
|
447
|
-
l[c.name] = JSON.parse(
|
|
447
|
+
l[c.name] = JSON.parse(M);
|
|
448
448
|
} catch {
|
|
449
449
|
x(`参数 ${c.name} 不是合法 JSON`);
|
|
450
450
|
return;
|
|
451
451
|
}
|
|
452
452
|
else
|
|
453
|
-
l[c.name] =
|
|
453
|
+
l[c.name] = M;
|
|
454
454
|
}
|
|
455
|
-
x(""),
|
|
455
|
+
x(""), F(!0);
|
|
456
456
|
const h = await ge({
|
|
457
457
|
code: t.code,
|
|
458
458
|
kbId: E ? w : void 0,
|
|
459
459
|
arguments: l
|
|
460
460
|
});
|
|
461
|
-
|
|
461
|
+
F(!1), h && U(h);
|
|
462
462
|
};
|
|
463
463
|
return /* @__PURE__ */ e(
|
|
464
464
|
"div",
|
|
@@ -484,7 +484,7 @@ function $e({
|
|
|
484
484
|
/* @__PURE__ */ a("div", { className: "d-sub", children: [
|
|
485
485
|
/* @__PURE__ */ e("span", { className: "mono", children: t.code }),
|
|
486
486
|
/* @__PURE__ */ e("span", { children: "·" }),
|
|
487
|
-
/* @__PURE__ */ e("span", { children: t.executable ? t.kind === "http" ? "HTTP 实现" : "builtin 实现" : "未接入实现" })
|
|
487
|
+
/* @__PURE__ */ e("span", { children: t.executable ? t.kind === "http" ? "HTTP 实现" : t.kind === "mcp" ? "MCP 实现" : "builtin 实现" : "未接入实现" })
|
|
488
488
|
] })
|
|
489
489
|
] }),
|
|
490
490
|
/* @__PURE__ */ e("div", { className: "d-actions", children: /* @__PURE__ */ e(
|
|
@@ -558,7 +558,7 @@ function $e({
|
|
|
558
558
|
),
|
|
559
559
|
l.description ? /* @__PURE__ */ e("span", { className: "help", children: l.description }) : null
|
|
560
560
|
] }, l.name)) }) : /* @__PURE__ */ e("p", { className: "note", children: "该工具没有参数。" }),
|
|
561
|
-
|
|
561
|
+
z ? /* @__PURE__ */ e("p", { className: "field error", style: { marginTop: 8 }, children: z }) : null,
|
|
562
562
|
v ? /* @__PURE__ */ a("div", { className: "ai-invoke-result", children: [
|
|
563
563
|
/* @__PURE__ */ a("div", { className: "row between mb-12", children: [
|
|
564
564
|
/* @__PURE__ */ e("b", { children: "调用结果" }),
|
|
@@ -670,18 +670,18 @@ function Re({
|
|
|
670
670
|
);
|
|
671
671
|
}
|
|
672
672
|
function Be() {
|
|
673
|
-
const [t, n] = r([]), [d, T] = r(!0), [w, o] = r(!1), [N, f] = r(""), [u,
|
|
673
|
+
const [t, n] = r([]), [d, T] = r(!0), [w, o] = r(!1), [N, f] = r(""), [u, F] = r("all"), [v, U] = r(0), [z, x] = r(null), [E, y] = r(null), [A, $] = r(null), l = we(), h = xe(l);
|
|
674
674
|
de(() => {
|
|
675
675
|
let s = !0;
|
|
676
676
|
return (async () => {
|
|
677
677
|
T(!0), o(!1);
|
|
678
|
-
const
|
|
678
|
+
const P = await oe();
|
|
679
679
|
if (s) {
|
|
680
|
-
if (T(!1),
|
|
680
|
+
if (T(!1), P === void 0) {
|
|
681
681
|
o(!0), n([]);
|
|
682
682
|
return;
|
|
683
683
|
}
|
|
684
|
-
n(
|
|
684
|
+
n(P);
|
|
685
685
|
}
|
|
686
686
|
})(), () => {
|
|
687
687
|
s = !1;
|
|
@@ -694,7 +694,7 @@ function Be() {
|
|
|
694
694
|
disabled: t.filter((s) => !s.enabled).length
|
|
695
695
|
}),
|
|
696
696
|
[t]
|
|
697
|
-
),
|
|
697
|
+
), M = le(() => {
|
|
698
698
|
const s = N.trim();
|
|
699
699
|
return t.filter((p) => u === "enabled" && !p.enabled || u === "disabled" && p.enabled ? !1 : ue(s, p.code, p.name, p.description));
|
|
700
700
|
}, [N, t, u]), k = () => U((s) => s + 1), K = async (s) => {
|
|
@@ -715,8 +715,8 @@ function Be() {
|
|
|
715
715
|
);
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
const
|
|
719
|
-
|
|
718
|
+
const P = await pe(s.code, p);
|
|
719
|
+
P && (R(p ? "已启用工具" : "已停用工具", P.name, "success"), k());
|
|
720
720
|
}, j = async (s) => {
|
|
721
721
|
if (h) {
|
|
722
722
|
R(
|
|
@@ -747,7 +747,7 @@ function Be() {
|
|
|
747
747
|
/* @__PURE__ */ e(b, { name: "workflow", size: 14 }),
|
|
748
748
|
"工具",
|
|
749
749
|
/* @__PURE__ */ a("span", { className: "hint", children: [
|
|
750
|
-
|
|
750
|
+
M.length,
|
|
751
751
|
" / ",
|
|
752
752
|
t.length
|
|
753
753
|
] })
|
|
@@ -792,7 +792,7 @@ function Be() {
|
|
|
792
792
|
{
|
|
793
793
|
type: "button",
|
|
794
794
|
className: u === s.value ? "active" : "",
|
|
795
|
-
onClick: () =>
|
|
795
|
+
onClick: () => F(s.value),
|
|
796
796
|
children: [
|
|
797
797
|
s.label,
|
|
798
798
|
/* @__PURE__ */ e("span", { className: "tnum", children: s.value === "all" ? c.all : c[s.value] })
|
|
@@ -808,7 +808,7 @@ function Be() {
|
|
|
808
808
|
c.disabled
|
|
809
809
|
] }) })
|
|
810
810
|
] }),
|
|
811
|
-
|
|
811
|
+
M.length ? /* @__PURE__ */ e("div", { className: "table-wrap", children: /* @__PURE__ */ a("table", { className: "list-table", children: [
|
|
812
812
|
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ a("tr", { children: [
|
|
813
813
|
/* @__PURE__ */ e("th", { children: "工具" }),
|
|
814
814
|
/* @__PURE__ */ e("th", { children: "状态" }),
|
|
@@ -817,7 +817,7 @@ function Be() {
|
|
|
817
817
|
/* @__PURE__ */ e("th", { children: "更新时间" }),
|
|
818
818
|
/* @__PURE__ */ e("th", { style: { textAlign: "right" }, children: "操作" })
|
|
819
819
|
] }) }),
|
|
820
|
-
/* @__PURE__ */ e("tbody", { children:
|
|
820
|
+
/* @__PURE__ */ e("tbody", { children: M.map((s) => /* @__PURE__ */ a("tr", { children: [
|
|
821
821
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ a("div", { className: "ai-name-cell", children: [
|
|
822
822
|
/* @__PURE__ */ e("b", { children: s.name }),
|
|
823
823
|
/* @__PURE__ */ e("small", { children: s.code }),
|
|
@@ -827,7 +827,7 @@ function Be() {
|
|
|
827
827
|
/* @__PURE__ */ e("td", { children: s.kind === "http" ? /* @__PURE__ */ a("div", { className: "ai-name-cell", children: [
|
|
828
828
|
/* @__PURE__ */ e("span", { className: "tag blue sm", children: s.method || "HTTP" }),
|
|
829
829
|
/* @__PURE__ */ e("small", { title: s.url, children: s.url || "未配置地址" })
|
|
830
|
-
] }) : s.executable ? /* @__PURE__ */ e("span", { className: "tag blue sm", children: "builtin" }) : /* @__PURE__ */ e("span", { className: "tag amber sm", children: "未接入实现" }) }),
|
|
830
|
+
] }) : s.kind === "mcp" ? /* @__PURE__ */ e("span", { className: "tag blue sm", children: "MCP" }) : s.executable ? /* @__PURE__ */ e("span", { className: "tag blue sm", children: "builtin" }) : /* @__PURE__ */ e("span", { className: "tag amber sm", children: "未接入实现" }) }),
|
|
831
831
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("div", { className: "ai-binding", children: s.parameters.length ? s.parameters.map((p) => /* @__PURE__ */ a("span", { className: "tag gray sm", children: [
|
|
832
832
|
p.name,
|
|
833
833
|
p.required ? "*" : ""
|
|
@@ -905,7 +905,7 @@ function Be() {
|
|
|
905
905
|
className: "btn",
|
|
906
906
|
type: "button",
|
|
907
907
|
onClick: () => {
|
|
908
|
-
f(""),
|
|
908
|
+
f(""), F("all");
|
|
909
909
|
},
|
|
910
910
|
children: "清空筛选"
|
|
911
911
|
}
|
|
@@ -913,16 +913,16 @@ function Be() {
|
|
|
913
913
|
}
|
|
914
914
|
)
|
|
915
915
|
] }),
|
|
916
|
-
|
|
917
|
-
|
|
916
|
+
z ? /* @__PURE__ */ e(
|
|
917
|
+
Fe,
|
|
918
918
|
{
|
|
919
|
-
mode:
|
|
920
|
-
tool:
|
|
919
|
+
mode: z.mode,
|
|
920
|
+
tool: z.tool,
|
|
921
921
|
remote: h,
|
|
922
922
|
onClose: () => x(null),
|
|
923
923
|
onSaved: (s) => {
|
|
924
924
|
x(null), R(
|
|
925
|
-
|
|
925
|
+
z.mode === "create" ? "已登记工具" : "已保存工具",
|
|
926
926
|
s.name,
|
|
927
927
|
"success"
|
|
928
928
|
), k();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useState as l, useEffect as s } from "react";
|
|
2
|
+
import { a as f, Z as u, cE as C } from "./embed-CoEyJMJx.js";
|
|
3
|
+
function m() {
|
|
4
|
+
var o;
|
|
5
|
+
const e = (o = f().context) == null ? void 0 : o.tenantCode, [n, c] = l(null);
|
|
6
|
+
s(() => {
|
|
7
|
+
if (e || n)
|
|
8
|
+
return;
|
|
9
|
+
let r = !0;
|
|
10
|
+
return u().then((t) => {
|
|
11
|
+
r && (t != null && t.tenantCode) && c(t.tenantCode);
|
|
12
|
+
}).catch(() => {
|
|
13
|
+
}), () => {
|
|
14
|
+
r = !1;
|
|
15
|
+
};
|
|
16
|
+
}, [e, n]);
|
|
17
|
+
const a = e || n;
|
|
18
|
+
return a ? C(a) : null;
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
m as u
|
|
22
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as n, useEffect as a, useCallback as c } from "react";
|
|
2
|
-
import { d9 as d, da as b, db as C, dc as D } from "./embed-
|
|
2
|
+
import { d9 as d, da as b, db as C, dc as D } from "./embed-CoEyJMJx.js";
|
|
3
3
|
function p() {
|
|
4
4
|
const [t, l] = n(d()), [e, o] = n(null), [u, i] = n(0);
|
|
5
5
|
a(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as ot } from "./preset-
|
|
1
|
+
import { G as ot } from "./preset-5F2VcdUE.js";
|
|
2
2
|
import { useRef as w, useState as ke, useEffect as J, useCallback as C } from "react";
|
|
3
3
|
import { s as Ce, l as Ae, m as Pe, x as He, y as Fe, c as We } from "./d3-force-CZK-Rgd6.js";
|
|
4
4
|
const xe = "#3d7dd4", st = "#89b4e8", Oe = "#1e4f8f", ct = "#94a3b8", at = "#64748b", it = "#94a3b8", Ie = "#64748b", ze = "#0052d9", Ge = "#003cab", lt = "rgba(0, 82, 217, 0.25)", he = 52, dt = "#fff", ut = 11, ce = "__uncategorized__", we = [
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as D, jsx as b, Fragment as Hi } from "react/jsx-runtime";
|
|
2
|
-
import { I as Fe, B as si, dI as yv, dJ as hn,
|
|
2
|
+
import { I as Fe, B as si, dI as yv, dJ as hn, bs as Sv, j as Rv, d4 as kp, d5 as Fv, g as Ev, dK as Pv, dx as Ud } from "./embed-CoEyJMJx.js";
|
|
3
3
|
import H, { useState as A, useMemo as le, useCallback as ne, Component as xv, useContext as Ye, useRef as L, useEffect as De, memo as dt, forwardRef as ac, useImperativeHandle as lc, useLayoutEffect as at, createElement as Tv, createContext as Dv, Suspense as Iv } from "react";
|
|
4
4
|
import Av, { createPortal as Lp } from "react-dom";
|
|
5
|
-
import { T as Ds } from "./index-
|
|
6
|
-
import { a as nl } from "./index-
|
|
7
|
-
import { I as cc } from "./index-
|
|
8
|
-
import { P as yr } from "./index-
|
|
9
|
-
import { T as Mv } from "./index-
|
|
5
|
+
import { T as Ds } from "./index-CkrD_v5E.js";
|
|
6
|
+
import { a as nl } from "./index-DQ1YCU_6.js";
|
|
7
|
+
import { I as cc } from "./index-o4EXX17N.js";
|
|
8
|
+
import { P as yr } from "./index-MrasjwT1.js";
|
|
9
|
+
import { T as Mv } from "./index-DvdRKgvN.js";
|
|
10
10
|
import { c as Xe } from "./format-CWI99NCN.js";
|
|
11
|
-
import { U as Si, b as $d, t as kv, a as Lv, u as Nv } from "./use-g6-graph-
|
|
11
|
+
import { U as Si, b as $d, t as kv, a as Lv, u as Nv } from "./use-g6-graph-CPKL_pXo.js";
|
|
12
12
|
import { e as Vv } from "./focus-set-lt52maBX.js";
|
|
13
|
-
import { D as Kd } from "./index-
|
|
14
|
-
import { F as Hv } from "./Table-
|
|
13
|
+
import { D as Kd } from "./index-Bqkx1OMz.js";
|
|
14
|
+
import { F as Hv } from "./Table-BF9fhMoT.js";
|
|
15
15
|
const Ov = 8, eo = (e) => (e ?? "").trim().toUpperCase();
|
|
16
16
|
function Gv(e, t) {
|
|
17
17
|
const s = new Map(e.map((r) => [eo(r.domainCode), r])), i = [], n = /* @__PURE__ */ new Set([eo(t)]);
|