@yuku123/z-cognition-component 2.0.2 → 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-rxw05EpT.js +1096 -0
- package/dist-lib/ClockCircleOutlined-DqK04lTb.js +12 -0
- package/dist-lib/Collapse-D9XOithE.js +523 -0
- package/dist-lib/{ConceptsPage-BOeKdDKI.js → ConceptsPage-DOf_CJlz.js} +13 -16
- package/dist-lib/DeleteOutlined-DnGmqa7C.js +12 -0
- package/dist-lib/{DocsPage-BZOBFp3c.js → DocsPage-CiC7TU96.js} +4 -4
- package/dist-lib/EllipsisOutlined-VzQrhleP.js +1109 -0
- package/dist-lib/EvidenceFormList-CrE2FzHk.js +90 -0
- package/dist-lib/{EyeOutlined-DGSrX-0M.js → EyeOutlined-CIFgRd6d.js} +4 -4
- package/dist-lib/ImpactPage-CYiuqy0S.js +68 -0
- package/dist-lib/{LeftOutlined-Cgo6Izj-.js → LeftOutlined-Be44-JWT.js} +1 -1
- package/dist-lib/{OntologyDetailPage-B8DyU8WW.js → OntologyDetailPage-mgK_NQxP.js} +99 -93
- package/dist-lib/{OntologyInferPage-CvcjxpBB.js → OntologyInferPage-NUaoaQpN.js} +38 -40
- package/dist-lib/{OntologyListPage-Cb0XfpWE.js → OntologyListPage-C9wH01y0.js} +47 -49
- package/dist-lib/OntologyMaterializePage-D_fDqYHY.js +134 -0
- package/dist-lib/OntologyNodesPage-5kH7RHwE.js +2844 -0
- package/dist-lib/{OntologyValidatePage-abQVJwzV.js → OntologyValidatePage-DtkYK_l4.js} +49 -52
- package/dist-lib/Pagination-BuFXTevS.js +1112 -0
- package/dist-lib/PlusOutlined-BSTPGLOH.js +21 -0
- package/dist-lib/{ReloadOutlined-CS-e-TmN.js → ReloadOutlined-B26pDoyV.js} +19 -10
- package/dist-lib/{ResolvePage-rbQ-8nNZ.js → ResolvePage-Cz9HORZ3.js} +31 -33
- package/dist-lib/{RotateRightOutlined-q7zp2e47.js → RotateRightOutlined-CYlCNRvD.js} +1 -1
- package/dist-lib/Skeleton-CxFsInYI.js +671 -0
- package/dist-lib/Table-Civ838nE.js +20514 -0
- package/dist-lib/{Table-CDagah-g.js → Table-D1RvQXGM.js} +414 -414
- package/dist-lib/TermDetailPage-BtkOpbPT.js +263 -0
- package/dist-lib/{TermsPage-CuufAyuL.js → TermsPage-BuzCMYov.js} +28 -31
- package/dist-lib/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist-lib/accessAk-DlxcvD0O.js +64 -0
- package/dist-lib/{agents-CvgRLQw2.js → agents-CabJdV6W.js} +46 -46
- package/dist-lib/{ai-DYDhijtn.js → ai-DZ6fqUyK.js} +32 -32
- package/dist-lib/{ai-chat-share-DJnybJtS.js → ai-chat-share-CYSU7UlK.js} +13 -14
- package/dist-lib/ak-manage-MTp2UyyK.js +805 -0
- package/dist-lib/{approval-3IbhY8Lp.js → approval-F9OYS1Ov.js} +25 -26
- package/dist-lib/{approvals-Cd6CVzz4.js → approvals-DDEl02-L.js} +42 -43
- package/dist-lib/{assistant-cIXgilaE.js → assistant-CcC1rvys.js} +48 -49
- package/dist-lib/{assistant-history-BQzH4ChB.js → assistant-history-fmy8IsJL.js} +5 -5
- package/dist-lib/{assistant-summary-LKTj_HKM.js → assistant-summary-kuK5-mku.js} +1 -1
- package/dist-lib/{audit-CxuJ5unU.js → audit-C0GYByqU.js} +1 -1
- package/dist-lib/{bios-BplnCOF4.js → bios-_axkM_DR.js} +128 -130
- package/dist-lib/callSuper-CuPJalb0.js +7 -0
- package/dist-lib/callSuper-CwIeyYoc.js +7 -0
- package/dist-lib/category-BPLw60Ia.js +76 -0
- package/dist-lib/causal-CcWolsb5.js +789 -0
- package/dist-lib/{changelog-BoGqt_81.js → changelog-BQdmpq5H.js} +2 -2
- package/dist-lib/changelog-DC6nlUDh.js +103 -0
- package/dist-lib/chat-panel-CgpP4Xf5.js +1543 -0
- package/dist-lib/chunk-6KYCQHYJ-DcgZQlO5.js +1627 -0
- package/dist-lib/code-space-CZ3CzVcA.js +1070 -0
- package/dist-lib/{colors-sdAcAcU3.js → colors-BsFEfaVs.js} +1 -1
- package/dist-lib/community-D9mD_Tq1.js +217 -0
- package/dist-lib/community-ESJc4qtl.js +70 -0
- package/dist-lib/community-material-page-Ct5uMwhv.js +747 -0
- package/dist-lib/connections-DrxmCfe3.js +1065 -0
- package/dist-lib/context-T27uno74.js +54 -0
- package/dist-lib/{createForOfIteratorHelper-DEx_aTey.js → createForOfIteratorHelper-3K1vcDqi.js} +1 -1
- package/dist-lib/{dayjs.min-BauDENhn.js → dayjs.min-DoEf5yCX.js} +1 -1
- package/dist-lib/{detail-Cx5c4KJH.js → detail-DXOJf57e.js} +39 -40
- package/dist-lib/detail-kPAVlzm3.js +84 -0
- package/dist-lib/{detail-BaX7WiWV.js → detail-lGslEB8s.js} +5847 -7224
- package/dist-lib/development-aLXXcLcF.js +167 -0
- package/dist-lib/{docx-preview-B5nQuTwk.js → docx-preview-D4v2g8Yg.js} +1 -1
- package/dist-lib/{downloads-C3Oz04OW.js → downloads-DFOEFvX6.js} +3 -4
- package/dist-lib/{edit-Cbn2eJaJ.js → edit-BbtVK23D.js} +200 -204
- package/dist-lib/{editor-mtaJBQXz.js → editor-DbLQFOUf.js} +25 -26
- package/dist-lib/editor-page-B_H0fRAI.js +1169 -0
- package/dist-lib/embed-BUaR8PAn.js +51816 -0
- package/dist-lib/embed.css +2 -2
- package/dist-lib/{evaluation-BoHiY8yT.js → evaluation-8Tx-3UQh.js} +14 -15
- package/dist-lib/execution-Dz5dBEFl.js +159 -0
- package/dist-lib/focus-set-lt52maBX.js +38 -0
- package/dist-lib/{format-UGmYKemG.js → format-CWI99NCN.js} +1 -1
- package/dist-lib/graph-BllA9bmL.js +44 -0
- package/dist-lib/graph-DacHEbKr.js +640 -0
- package/dist-lib/index-4tbtbcAt.js +550 -0
- package/dist-lib/index-B6G8CZ1v.js +915 -0
- package/dist-lib/index-BDWjubAD.js +390 -0
- package/dist-lib/{index-BEjXaDfk.js → index-BI-rknta.js} +53 -54
- package/dist-lib/index-BLGPH51v.js +251 -0
- package/dist-lib/index-BMv3kGDG.js +236 -0
- package/dist-lib/{index-CHBNrCMy.js → index-BOB3j3H_.js} +29 -29
- package/dist-lib/index-BU2GXuww.js +413 -0
- package/dist-lib/index-BVgdmf6r.js +2487 -0
- package/dist-lib/index-BWmgE7bB.js +2075 -0
- package/dist-lib/{index-B57Fj7Y0.js → index-Be_iqVpx.js} +50 -52
- package/dist-lib/{index-y7jVGGI0.js → index-Bf8IQq4A.js} +21 -23
- package/dist-lib/{index-DsuUGhTA.js → index-Bi7O9pQv.js} +177 -179
- package/dist-lib/index-Bs4MevzC.js +16075 -0
- package/dist-lib/{index-DBlG9uXV.js → index-Bt9F-2Fl.js} +520 -597
- package/dist-lib/{index-Cj4DDWyj.js → index-BtW_nQBU.js} +10 -11
- package/dist-lib/{index-CyKWCYMK.js → index-BuGHtvxH.js} +81 -84
- package/dist-lib/{index-Bc-Vin3j.js → index-CDxeB8C4.js} +47 -49
- package/dist-lib/index-CNBwau86.js +1166 -0
- package/dist-lib/{index-9aQ4BzIK.js → index-CS6H40rM.js} +24 -25
- package/dist-lib/index-CSnvcFg-.js +543 -0
- package/dist-lib/{index-o65vKUwa.js → index-CSoMwNHq.js} +82 -83
- package/dist-lib/{index-C3AMwzIi.js → index-CZipVp1G.js} +1 -1
- package/dist-lib/index-CdNxm2We.js +1987 -0
- package/dist-lib/{index-DMTPsTna.js → index-CjFA5T3K.js} +3 -4
- package/dist-lib/{index-Bm1sK-VN.js → index-D23tZfhi.js} +10 -10
- package/dist-lib/index-D35Ry0PG.js +1162 -0
- package/dist-lib/index-D7nLwQye.js +5012 -0
- package/dist-lib/index-DQ16Zb7x.js +546 -0
- package/dist-lib/{index-BwVZgt5s.js → index-DR9LGJpi.js} +46 -48
- package/dist-lib/index-DRcTwC17.js +418 -0
- package/dist-lib/index-DTgboCiF.js +566 -0
- package/dist-lib/index-Dd9pPAT3.js +2192 -0
- package/dist-lib/{index-Vu6sPBci.js → index-Ddx6XQu5.js} +285 -280
- package/dist-lib/index-Di2bQwQn.js +242 -0
- package/dist-lib/{index-Cy9i4Kx7.js → index-DlqhOJnd.js} +101 -105
- package/dist-lib/index-DxzorPvG.js +13960 -0
- package/dist-lib/{index-CLTfICbf.js → index-GQGXGr9M.js} +6 -6
- package/dist-lib/{index-nQSVLWfW.js → index-IB3GOib9.js} +81 -83
- package/dist-lib/index-If4xc1-H.js +559 -0
- package/dist-lib/index-Pcxp_AYe.js +1719 -0
- package/dist-lib/{index-ounfql2z.js → index-QkktEus5.js} +25 -27
- package/dist-lib/{index-B22_2Dzh.js → index-fVCVIu8I.js} +2 -2
- package/dist-lib/{index-D3GHtSlM.js → index-jHh-ITBK.js} +28 -29
- package/dist-lib/index-keRQ37lH.js +853 -0
- package/dist-lib/index-mUlorJxp.js +3279 -0
- package/dist-lib/{index-BSlCGnzo.js → index-n6hK1r_G.js} +12 -12
- package/dist-lib/index-qYfXuLnZ.js +34 -0
- package/dist-lib/index-yPMzsLHL.js +77 -0
- package/dist-lib/index.js +3 -4
- package/dist-lib/json-field-Bu-gFb6c.js +196 -0
- package/dist-lib/{jszip.min-DcEHhn-b.js → jszip.min-dcaDnWUw.js} +1 -1
- package/dist-lib/{kb-form-modal-B0rM1ZvV.js → kb-form-modal-DsXpXfNT.js} +64 -63
- package/dist-lib/{kbTeam-Bh_FQH28.js → kbTeam-D8hsAHI5.js} +3 -3
- package/dist-lib/{knowledge-base-Cl1Ka1e6.js → knowledge-base-D2XMD7iI.js} +111 -111
- package/dist-lib/{knowledge-hub-CPuzdRiq.js → knowledge-hub-BoBR8-j-.js} +52 -53
- package/dist-lib/login-B4C374Y_.js +36 -0
- package/dist-lib/{markdown-lite-Cu62Fl7J.js → markdown-lite-ROKlyMXg.js} +156 -160
- package/dist-lib/material-CqtPqoZj.js +204 -0
- package/dist-lib/material-draft-markdown-BKlKt3pc.js +443 -0
- package/dist-lib/material-original-preview-pzANkVK5.js +214 -0
- package/dist-lib/{material-preview-docx-CH-09KeC.js → material-preview-docx-lp_xPipj.js} +1 -1
- package/dist-lib/{material-preview-pptx-D8XGDF-u.js → material-preview-pptx-6Byitp0J.js} +1 -1
- package/dist-lib/material-workspace-model-BUpogooV.js +328 -0
- package/dist-lib/{member-DKDx77PD.js → member-CCTFfLDC.js} +1 -1
- package/dist-lib/memory-reorganization-CBTDCRhV.js +8 -0
- package/dist-lib/memory-spaces-CZGIBlz2.js +2340 -0
- package/dist-lib/{message-BrooQ3Q7.js → message-Chq3cAdy.js} +24 -25
- package/dist-lib/{message-Dievi8Jw.js → message-Rz7LvGMk.js} +1 -1
- package/dist-lib/{messages-xTNmTS9g.js → messages-DciGawgR.js} +15 -16
- package/dist-lib/meta-BWgVxZgd.js +708 -0
- package/dist-lib/{metrics-DiHYqBKB.js → metrics-iWreq4IL.js} +2 -2
- package/dist-lib/mobile-CNrK04Ak.js +2413 -0
- package/dist-lib/{monitor-BBCu3zRe.js → monitor-BpUJZCht.js} +8 -8
- package/dist-lib/{monitor-BXsdMJSV.js → monitor-CaTKbDI1.js} +4 -4
- package/dist-lib/{my-access-CEGErUgv.js → my-access-ZH5CWVGF.js} +120 -132
- package/dist-lib/{my-permissions-wSr5zv7g.js → my-permissions-edhi0lav.js} +22 -23
- package/dist-lib/navigation-2WdPUP2T.js +102 -0
- package/dist-lib/{new-BevAuTe5.js → new-Dq6mvU2w.js} +14 -15
- package/dist-lib/{ontology-DXGSJC-y.js → ontology-BX6X1X2J.js} +50 -52
- package/dist-lib/ontology-dataprep-BjMnFRBG.js +322 -0
- package/dist-lib/{ontology-domains-jTG7CZm8.js → ontology-domains-B7AuwW8S.js} +100 -103
- package/dist-lib/ontology-extract-FpJ6K8z6.js +295 -0
- package/dist-lib/ontology-extract-wbvBwGZO.js +3199 -0
- package/dist-lib/ontology-flow-CJsIvS35.js +456 -0
- package/dist-lib/ontology-flow-Cgi8Fk-i.js +154 -0
- package/dist-lib/ontology-modeling-C_6GvHBT.js +15136 -0
- package/dist-lib/ontology-modeling-CeDS1-FE.js +510 -0
- package/dist-lib/ontology-scenarios-4Ar7Y8Kt.js +675 -0
- package/dist-lib/{ontology-scenarios-J5kw6xgi.js → ontology-scenarios-BaYN82pv.js} +1289 -1305
- package/dist-lib/ontology-task-config-CDt7NdIq.js +122 -0
- package/dist-lib/ontology-terms-CnFarWZX.js +66 -0
- package/dist-lib/ontology-terms-CxTp2Dcq.js +1195 -0
- package/dist-lib/pages-CticGC6S.js +512 -0
- package/dist-lib/pages.js +3 -3
- package/dist-lib/{permission-BUXo69Ne.js → permission-CNqwhyF3.js} +41 -41
- package/dist-lib/pipeline-layout-CJlOMXJF.js +70 -0
- package/dist-lib/{pptx-preview.es-AUrdYKu3.js → pptx-preview.es-D4ODiBv2.js} +2 -2
- package/dist-lib/preset-Bp_mvsJm.js +56827 -0
- package/dist-lib/{preset-gh5SGoYT.js → preset-CfByvcqu.js} +8 -8
- package/dist-lib/progress-ImhDvynO.js +778 -0
- package/dist-lib/{quota-D31cXjul.js → quota-B38BWyPo.js} +4 -3
- package/dist-lib/row-DeVE0t_N.js +154 -0
- package/dist-lib/runs-ILSUwEOv.js +565 -0
- package/dist-lib/{save-blob-CiWNK-cX.js → save-blob-C5BbV45B.js} +2 -2
- package/dist-lib/{scenario-mapping-preview-DQ_OBV4Z.js → scenario-mapping-preview-7v1SRE7V.js} +43 -45
- package/dist-lib/scenario-simple-form-mFm6f2ho.js +989 -0
- package/dist-lib/{schedule-BktxwX3S.js → schedule-DzB9rZrm.js} +8 -8
- package/dist-lib/script-CKdVDsYh.js +2709 -0
- package/dist-lib/{settings-dsB3H65I.js → settings-CaihqQtz.js} +121 -121
- package/dist-lib/{shared-CTCzvhyE.js → shared-B51Q5536.js} +1 -1
- package/dist-lib/{shared-utils-BstybhBG.js → shared-utils-Ck5sql2m.js} +2 -2
- package/dist-lib/{skills-CHPlMsgO.js → skills-By3A0Dc1.js} +39 -40
- package/dist-lib/{source-selection-tXqc855k.js → source-selection-sIKyG7xR.js} +16 -16
- package/dist-lib/sources-DvIMColY.js +279 -0
- package/dist-lib/style-BHQZmWlH.js +191 -0
- package/dist-lib/{task-config-BiTOiZj0.js → task-config-CoPFj_FN.js} +4 -4
- package/dist-lib/{tech-BKlGPkV0.js → tech-BJgEEFrT.js} +3 -4
- package/dist-lib/templates-CODaf2QI.js +58 -0
- package/dist-lib/tenant-login-DmN4qfah.js +338 -0
- package/dist-lib/{tools-CouQ4FWk.js → tools-CyRz1Ofg.js} +14 -14
- package/dist-lib/use-current-tenant-otPCQ3X8.js +22 -0
- package/dist-lib/{use-domain-access-BPlNfoiP.js → use-domain-access-BuD99GTw.js} +15 -15
- package/dist-lib/{use-g6-graph-WLX0PweO.js → use-g6-graph-C5h9frJM.js} +1 -1
- package/dist-lib/{use-graph-layers-ja-ZIC_R.js → use-graph-layers-Cbd3Jggb.js} +48 -50
- package/dist-lib/use-resizable-columns-BpMCRKif.js +59 -0
- package/dist-lib/useBreakpoint-B8dF3ifo.js +87 -0
- package/dist-lib/{useForm-Byp1LopG.js → useForm-BZkiMeaN.js} +9 -9
- package/dist-lib/{version-control-panel-CkBm36Yk.js → version-control-panel-HdMlbpbO.js} +26 -27
- package/dist-lib/{version-management-B4kIbdVc.js → version-management-BYoxw4GV.js} +6 -7
- package/dist-lib/{welcome-F5iZoFB1.js → welcome-CMNXQf8J.js} +3 -4
- package/package.json +1 -1
- package/dist-lib/ApartmentOutlined-M6qSurnE.js +0 -12
- package/dist-lib/ArrowLeftOutlined-DowsrSUj.js +0 -12
- package/dist-lib/EvidenceFormList-DXqqSpPV.js +0 -91
- package/dist-lib/ImpactPage-DyhUR6fT.js +0 -71
- package/dist-lib/OntologyMaterializePage-B0f9TnJa.js +0 -136
- package/dist-lib/OntologyNodesPage-D4MWlm6q.js +0 -1268
- package/dist-lib/Pagination-Dxslodkq.js +0 -1344
- package/dist-lib/PlusOutlined-B_dXo_97.js +0 -12
- package/dist-lib/SearchOutlined-puH6bCY6.js +0 -979
- package/dist-lib/Skeleton-DXcERb5r.js +0 -557
- package/dist-lib/TagsOutlined-B4_qkn6-.js +0 -20
- package/dist-lib/TermDetailPage-CP0D6OvA.js +0 -242
- package/dist-lib/TextArea-DTpTS5HL.js +0 -1897
- package/dist-lib/ThunderboltOutlined-Bf54AaFE.js +0 -20
- package/dist-lib/callSuper-DZEfdkXG.js +0 -7
- package/dist-lib/changelog-Cn81Dvgk.js +0 -69
- package/dist-lib/chunk-YDNE64FV-DGyyfCo0.js +0 -2004
- package/dist-lib/context-Buz0ggsK.js +0 -710
- package/dist-lib/context-DpmyNOn3.js +0 -21
- package/dist-lib/embed-CR8XVkMy.js +0 -31148
- package/dist-lib/focus-set-h0YtOUB2.js +0 -427
- package/dist-lib/index-CaXylbQR.js +0 -3419
- package/dist-lib/index-Cfu1W1H6.js +0 -535
- package/dist-lib/index-CrMcNEAZ.js +0 -9656
- package/dist-lib/index-DBtGE89a.js +0 -168
- package/dist-lib/index-DjFPRXl5.js +0 -1484
- package/dist-lib/index-DvWHYX81.js +0 -450
- package/dist-lib/index-PBT9GksC.js +0 -340
- package/dist-lib/index-bOY1cBol.js +0 -4890
- package/dist-lib/meta-BD_qYTZu.js +0 -540
- package/dist-lib/ontology-modeling-CjRsa-DR.js +0 -1039
- package/dist-lib/ontology-modeling-DOj68TuI.js +0 -38946
- package/dist-lib/ontology-scenarios-CcAagMiP.js +0 -660
- package/dist-lib/pages-CsexFuEz.js +0 -73
- package/dist-lib/row-B5MnGm9M.js +0 -156
- package/dist-lib/scenario-simple-form-DESMvU7A.js +0 -2396
- package/dist-lib/useClosable-BY7FgWKy.js +0 -59
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import { useState as h, useRef as
|
|
3
|
-
import { T as
|
|
4
|
-
import { r as
|
|
2
|
+
import { useState as h, useRef as _, useEffect as I, Fragment as Z, useLayoutEffect as ee } from "react";
|
|
3
|
+
import { T as ae } from "./index-fVCVIu8I.js";
|
|
4
|
+
import { r as z, I as u, t as C, R as te, j as ne } from "./embed-BUaR8PAn.js";
|
|
5
5
|
import { c as U } from "./clipboard-CbytnWlq.js";
|
|
6
|
-
import {
|
|
6
|
+
import { l as V, c as le } from "./accessAk-DlxcvD0O.js";
|
|
7
|
+
import { f as ie } from "./format-CWI99NCN.js";
|
|
7
8
|
const re = "/kb/v1/client/kb", ce = "/kb/v1/client/ontology", se = "/kb/v1/client/ak";
|
|
8
9
|
function oe(t, s, r) {
|
|
9
|
-
return
|
|
10
|
+
return z(`${re}${t}`, {
|
|
10
11
|
method: "POST",
|
|
11
12
|
data: s,
|
|
12
13
|
headers: { "X-AK": r },
|
|
@@ -15,7 +16,7 @@ function oe(t, s, r) {
|
|
|
15
16
|
}
|
|
16
17
|
function de(t, s, r, l) {
|
|
17
18
|
const n = { "X-AK": r };
|
|
18
|
-
return l && (n["X-Domain-Code"] = l),
|
|
19
|
+
return l && (n["X-Domain-Code"] = l), z(`${ce}${t}`, {
|
|
19
20
|
method: "POST",
|
|
20
21
|
data: s,
|
|
21
22
|
headers: n,
|
|
@@ -23,14 +24,14 @@ function de(t, s, r, l) {
|
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
26
|
function me(t, s) {
|
|
26
|
-
return
|
|
27
|
+
return z(`${se}${t}`, {
|
|
27
28
|
method: "POST",
|
|
28
29
|
data: s,
|
|
29
30
|
silent: !0
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
function f({ code: t, title: s }) {
|
|
33
|
-
const [r, l] = h(!1), n =
|
|
34
|
+
const [r, l] = h(!1), n = _(null);
|
|
34
35
|
I(
|
|
35
36
|
() => () => {
|
|
36
37
|
n.current && window.clearTimeout(n.current);
|
|
@@ -79,7 +80,7 @@ function F({ node: t }) {
|
|
|
79
80
|
}
|
|
80
81
|
function R({ ariaLabel: t, contexts: s, support: r }) {
|
|
81
82
|
return /* @__PURE__ */ a("figure", { className: "ma-domain", "aria-label": t, children: [
|
|
82
|
-
/* @__PURE__ */ e("div", { className: "ma-domain-flow", children: s.map((l, n) => /* @__PURE__ */ a(
|
|
83
|
+
/* @__PURE__ */ e("div", { className: "ma-domain-flow", children: s.map((l, n) => /* @__PURE__ */ a(Z, { children: [
|
|
83
84
|
/* @__PURE__ */ a("section", { className: "ma-domain-ctx", children: [
|
|
84
85
|
/* @__PURE__ */ a("header", { children: [
|
|
85
86
|
/* @__PURE__ */ e("b", { children: l.title }),
|
|
@@ -277,20 +278,7 @@ function Ae() {
|
|
|
277
278
|
function Ne() {
|
|
278
279
|
return /* @__PURE__ */ e(R, { ...ke });
|
|
279
280
|
}
|
|
280
|
-
|
|
281
|
-
function W(t = {}) {
|
|
282
|
-
return K(`${V}/list`, {
|
|
283
|
-
method: "POST",
|
|
284
|
-
data: t
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
function ye(t) {
|
|
288
|
-
return K(`${V}/create`, {
|
|
289
|
-
method: "POST",
|
|
290
|
-
data: t
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
function fe({
|
|
281
|
+
function ye({
|
|
294
282
|
endpoints: t,
|
|
295
283
|
prefix: s,
|
|
296
284
|
defaultPath: r,
|
|
@@ -300,12 +288,12 @@ function fe({
|
|
|
300
288
|
enableDomain: p = !1,
|
|
301
289
|
requireAk: d = !0
|
|
302
290
|
}) {
|
|
303
|
-
const k = c ?? r, [b, w] = h(k), [A, m] = h(() => l(k)), [i,
|
|
291
|
+
const k = c ?? r, [b, w] = h(k), [A, m] = h(() => l(k)), [i, W] = h(""), [B, q] = h(""), [H, X] = h(!1), [y, K] = h(null), $ = _(null);
|
|
304
292
|
I(() => {
|
|
305
293
|
if (!d)
|
|
306
294
|
return;
|
|
307
295
|
let o = !0;
|
|
308
|
-
return
|
|
296
|
+
return V().then((N) => {
|
|
309
297
|
o && (N != null && N.length) && q(N[0].akCode);
|
|
310
298
|
}).catch(() => {
|
|
311
299
|
}), () => {
|
|
@@ -315,9 +303,9 @@ function fe({
|
|
|
315
303
|
var o;
|
|
316
304
|
y && ((o = $.current) == null || o.scrollIntoView({ block: "start" }));
|
|
317
305
|
}, [y]);
|
|
318
|
-
const
|
|
319
|
-
w(o), m(l(o)),
|
|
320
|
-
},
|
|
306
|
+
const Y = (o) => {
|
|
307
|
+
w(o), m(l(o)), K(null);
|
|
308
|
+
}, J = async () => {
|
|
321
309
|
let o;
|
|
322
310
|
try {
|
|
323
311
|
o = JSON.parse(A);
|
|
@@ -330,23 +318,23 @@ function fe({
|
|
|
330
318
|
C("请填写接入 AK", "在「接入 AK」页申请后填入,租户由 AK 决定", "warn");
|
|
331
319
|
return;
|
|
332
320
|
}
|
|
333
|
-
X(!0),
|
|
321
|
+
X(!0), K(null);
|
|
334
322
|
const G = Date.now(), j = i.trim();
|
|
335
323
|
try {
|
|
336
324
|
const T = j ? await n(b, o, N, j) : await n(b, o, N);
|
|
337
|
-
|
|
325
|
+
K({
|
|
338
326
|
ok: !0,
|
|
339
327
|
status: "调用成功",
|
|
340
328
|
elapsedMs: Date.now() - G,
|
|
341
329
|
body: JSON.stringify(T, null, 2)
|
|
342
330
|
});
|
|
343
331
|
} catch (T) {
|
|
344
|
-
const v = T instanceof
|
|
345
|
-
|
|
332
|
+
const v = T instanceof te ? T : void 0, S = v == null ? void 0 : v.code, Q = (v == null ? void 0 : v.message) ?? (T instanceof Error ? T.message : "请求失败");
|
|
333
|
+
K({
|
|
346
334
|
ok: !1,
|
|
347
|
-
status:
|
|
335
|
+
status: S ? `失败 ${S}` : "请求失败",
|
|
348
336
|
elapsedMs: Date.now() - G,
|
|
349
|
-
body: JSON.stringify({ success: !1, code:
|
|
337
|
+
body: JSON.stringify({ success: !1, code: S ?? null, message: Q }, null, 2)
|
|
350
338
|
});
|
|
351
339
|
} finally {
|
|
352
340
|
X(!1);
|
|
@@ -361,7 +349,7 @@ function fe({
|
|
|
361
349
|
{
|
|
362
350
|
className: "input",
|
|
363
351
|
value: b,
|
|
364
|
-
onChange: (o) =>
|
|
352
|
+
onChange: (o) => Y(o.target.value),
|
|
365
353
|
children: t.map((o) => /* @__PURE__ */ a("option", { value: o.path, children: [
|
|
366
354
|
o.name,
|
|
367
355
|
" · ",
|
|
@@ -380,7 +368,7 @@ function fe({
|
|
|
380
368
|
placeholder: "留空=首根域,ALL=全域",
|
|
381
369
|
spellCheck: !1,
|
|
382
370
|
"aria-label": "域编码",
|
|
383
|
-
onChange: (o) =>
|
|
371
|
+
onChange: (o) => W(o.target.value)
|
|
384
372
|
}
|
|
385
373
|
)
|
|
386
374
|
] }) : null,
|
|
@@ -408,7 +396,7 @@ function fe({
|
|
|
408
396
|
{
|
|
409
397
|
type: "button",
|
|
410
398
|
className: "btn sm primary ma-try-send",
|
|
411
|
-
onClick: () => void
|
|
399
|
+
onClick: () => void J(),
|
|
412
400
|
disabled: H,
|
|
413
401
|
children: [
|
|
414
402
|
/* @__PURE__ */ e(u, { name: "send", size: 12 }),
|
|
@@ -439,7 +427,7 @@ function fe({
|
|
|
439
427
|
] }) : null
|
|
440
428
|
] });
|
|
441
429
|
}
|
|
442
|
-
const M = "http://kapi-base-prod.cfuture.shop/z-cognition",
|
|
430
|
+
const M = "http://kapi-base-prod.cfuture.shop/z-cognition", L = "/v1/client/kb", x = "/v1/client/ontology", D = "/v1/client/ak", fe = "downloads/fb-kb-knowledge-service.zip", O = "1.0.0-SNAPSHOT", ge = [
|
|
443
431
|
{
|
|
444
432
|
name: "分页查询知识库",
|
|
445
433
|
path: "/knowledgeBase/page",
|
|
@@ -518,7 +506,7 @@ const M = "http://kapi-base-prod.cfuture.shop/z-cognition", x = "/v1/client/kb",
|
|
|
518
506
|
params: "kbId 或 code(至少填一个)、query、topK、minScore、mode",
|
|
519
507
|
returns: "命中块、得分、来源与 Wiki 引用"
|
|
520
508
|
}
|
|
521
|
-
],
|
|
509
|
+
], Te = {
|
|
522
510
|
"/knowledgeBase/page": { current: 1, size: 10 },
|
|
523
511
|
"/knowledgeBase/detail": { kbId: "", code: "" },
|
|
524
512
|
"/knowledgeBase/config": { kbId: "", code: "" },
|
|
@@ -533,10 +521,10 @@ const M = "http://kapi-base-prod.cfuture.shop/z-cognition", x = "/v1/client/kb",
|
|
|
533
521
|
"/wiki/byMaterial": { materialId: "" },
|
|
534
522
|
"/knowledgeBase/retrieve": { kbId: "", code: "", query: "", topK: 5, minScore: 0.1, mode: "dense" }
|
|
535
523
|
};
|
|
536
|
-
function
|
|
537
|
-
return JSON.stringify({ ...
|
|
524
|
+
function ve(t) {
|
|
525
|
+
return JSON.stringify({ ...Te[t] ?? {} }, null, 2);
|
|
538
526
|
}
|
|
539
|
-
const
|
|
527
|
+
const Ce = [
|
|
540
528
|
{
|
|
541
529
|
name: "域清单",
|
|
542
530
|
path: "/domain/list",
|
|
@@ -585,7 +573,7 @@ const we = [
|
|
|
585
573
|
params: "scenarioCode、ngql、params",
|
|
586
574
|
returns: "渲染后 nGQL、列、行、耗时与数据水位;最多 200 行"
|
|
587
575
|
}
|
|
588
|
-
],
|
|
576
|
+
], we = {
|
|
589
577
|
"/domain/list": {},
|
|
590
578
|
"/info": {},
|
|
591
579
|
"/scenario/list": { current: 1, size: 10 },
|
|
@@ -599,10 +587,10 @@ const we = [
|
|
|
599
587
|
params: {}
|
|
600
588
|
}
|
|
601
589
|
};
|
|
602
|
-
function
|
|
603
|
-
return JSON.stringify(
|
|
590
|
+
function Ie(t) {
|
|
591
|
+
return JSON.stringify(we[t] ?? {}, null, 2);
|
|
604
592
|
}
|
|
605
|
-
const
|
|
593
|
+
const Ke = [
|
|
606
594
|
{
|
|
607
595
|
name: "新增接入 AK",
|
|
608
596
|
path: "/create",
|
|
@@ -621,7 +609,7 @@ const _e = [
|
|
|
621
609
|
params: "akCode(必填)",
|
|
622
610
|
returns: "AK 记录与绑定租户;不存在返回 30_028"
|
|
623
611
|
}
|
|
624
|
-
],
|
|
612
|
+
], _e = {
|
|
625
613
|
"/create": {
|
|
626
614
|
tenantCode: "",
|
|
627
615
|
name: "临床助手",
|
|
@@ -632,10 +620,10 @@ const _e = [
|
|
|
632
620
|
"/list": { tenantCode: "" },
|
|
633
621
|
"/verify": { akCode: "ak_z_xxx" }
|
|
634
622
|
};
|
|
635
|
-
function
|
|
636
|
-
return JSON.stringify(
|
|
623
|
+
function Oe(t) {
|
|
624
|
+
return JSON.stringify(_e[t] ?? {}, null, 2);
|
|
637
625
|
}
|
|
638
|
-
const
|
|
626
|
+
const Se = `curl -X POST '${M}${D}/create' \\
|
|
639
627
|
-H 'Content-Type: application/json' \\
|
|
640
628
|
-d '{
|
|
641
629
|
"tenantCode": "c2f",
|
|
@@ -643,7 +631,7 @@ const Pe = `curl -X POST '${M}${z}/create' \\
|
|
|
643
631
|
"ownerType": "APPLICATION",
|
|
644
632
|
"ownerId": 7,
|
|
645
633
|
"ownerName": "临床助手"
|
|
646
|
-
}'`,
|
|
634
|
+
}'`, Pe = `{
|
|
647
635
|
"success": true,
|
|
648
636
|
"code": 200,
|
|
649
637
|
"message": null,
|
|
@@ -656,11 +644,11 @@ const Pe = `curl -X POST '${M}${z}/create' \\
|
|
|
656
644
|
"ownerName": "临床助手",
|
|
657
645
|
"createTime": "2026-11-18T20:30:00"
|
|
658
646
|
}
|
|
659
|
-
}`,
|
|
647
|
+
}`, Ee = `<dependency>
|
|
660
648
|
<groupId>io.github.yuku123</groupId>
|
|
661
649
|
<artifactId>z-ak-client</artifactId>
|
|
662
|
-
<version>${
|
|
663
|
-
</dependency>`,
|
|
650
|
+
<version>${O}</version>
|
|
651
|
+
</dependency>`, Le = `import com.zifang.z.boot.base.meta.Result;
|
|
664
652
|
import com.zifang.z.ak.client.define.AkClient;
|
|
665
653
|
import com.zifang.z.ak.client.define.constant.AkConstants;
|
|
666
654
|
import com.zifang.z.ak.client.define.dto.AkDTO;
|
|
@@ -687,7 +675,7 @@ if (!created.isSuccess()) {
|
|
|
687
675
|
AkVerifyRequest verify = new AkVerifyRequest();
|
|
688
676
|
verify.setAkCode(created.getData().getAkCode());
|
|
689
677
|
Result<AkDTO> verified = client.verifyAk(verify);
|
|
690
|
-
System.out.println(verified.getData().getTenantCode());`,
|
|
678
|
+
System.out.println(verified.getData().getTenantCode());`, xe = `curl -X POST '${M}${L}/knowledgeBase/retrieve' \\
|
|
691
679
|
-H 'Content-Type: application/json' \\
|
|
692
680
|
-H 'X-AK: ak_z_xxx' \\
|
|
693
681
|
-d '{
|
|
@@ -697,7 +685,7 @@ System.out.println(verified.getData().getTenantCode());`, De = `curl -X POST '${
|
|
|
697
685
|
"topK": 5,
|
|
698
686
|
"minScore": 0.1,
|
|
699
687
|
"mode": "dense"
|
|
700
|
-
}'`,
|
|
688
|
+
}'`, De = `{
|
|
701
689
|
"success": true,
|
|
702
690
|
"code": 200,
|
|
703
691
|
"message": null,
|
|
@@ -726,11 +714,11 @@ System.out.println(verified.getData().getTenantCode());`, De = `curl -X POST '${
|
|
|
726
714
|
}
|
|
727
715
|
]
|
|
728
716
|
}
|
|
729
|
-
}`,
|
|
717
|
+
}`, ze = `<dependency>
|
|
730
718
|
<groupId>io.github.yuku123</groupId>
|
|
731
719
|
<artifactId>z-kb-client</artifactId>
|
|
732
|
-
<version>${
|
|
733
|
-
</dependency>`,
|
|
720
|
+
<version>${O}</version>
|
|
721
|
+
</dependency>`, Re = `import com.zifang.z.boot.base.meta.Result;
|
|
734
722
|
import com.zifang.z.kb.client.define.KnowledgeBaseClient;
|
|
735
723
|
import com.zifang.z.kb.client.define.dto.RetrievalHitDTO;
|
|
736
724
|
import com.zifang.z.kb.client.define.dto.RetrievalResultDTO;
|
|
@@ -761,7 +749,7 @@ RetrievalResultDTO data = result.getData();
|
|
|
761
749
|
for (RetrievalHitDTO hit : data.getHits()) {
|
|
762
750
|
System.out.println(hit.getRank() + ". " + hit.getMaterialTitle()
|
|
763
751
|
+ " - " + hit.getScore());
|
|
764
|
-
}`,
|
|
752
|
+
}`, Me = `curl -X POST '${M}${x}/scenario/ngql/execute' \\
|
|
765
753
|
-H 'Content-Type: application/json' \\
|
|
766
754
|
-H 'X-AK: ak_z_xxx' \\
|
|
767
755
|
-H 'X-Domain-Code: DOM_A' \\
|
|
@@ -769,7 +757,7 @@ for (RetrievalHitDTO hit : data.getHits()) {
|
|
|
769
757
|
"scenarioCode": "SCN-xxx",
|
|
770
758
|
"ngql": "MATCH (n:Drug) RETURN n LIMIT 10",
|
|
771
759
|
"params": {}
|
|
772
|
-
}'`,
|
|
760
|
+
}'`, Be = `{
|
|
773
761
|
"success": true,
|
|
774
762
|
"code": 200,
|
|
775
763
|
"message": null,
|
|
@@ -785,7 +773,7 @@ for (RetrievalHitDTO hit : data.getHits()) {
|
|
|
785
773
|
"dataAsOf": "2026-11-11T10:20:00",
|
|
786
774
|
"lagMs": 0
|
|
787
775
|
}
|
|
788
|
-
}`,
|
|
776
|
+
}`, qe = `./${fe}`, He = {
|
|
789
777
|
"kb-http": {
|
|
790
778
|
title: "HTTP 接入",
|
|
791
779
|
icon: "globe",
|
|
@@ -812,8 +800,8 @@ for (RetrievalHitDTO hit : data.getHits()) {
|
|
|
812
800
|
"ak-sdk": { title: "SDK 接入", icon: "package", hint: "z-ak-client" },
|
|
813
801
|
"ak-skill": { title: "Skill 接入", icon: "sparkles", hint: "AK 签发" }
|
|
814
802
|
};
|
|
815
|
-
function
|
|
816
|
-
const l =
|
|
803
|
+
function P({ config: t, tryPath: s, onTry: r }) {
|
|
804
|
+
const l = _(null);
|
|
817
805
|
return I(() => {
|
|
818
806
|
var n;
|
|
819
807
|
s && ((n = l.current) == null || n.scrollIntoView({ block: "start" }));
|
|
@@ -864,7 +852,7 @@ function E({ config: t, tryPath: s, onTry: r }) {
|
|
|
864
852
|
/* @__PURE__ */ e("span", { children: t.tryHint ?? "请求发往当前站点网关,已自动填入您的接入 AK" })
|
|
865
853
|
] }),
|
|
866
854
|
/* @__PURE__ */ e(
|
|
867
|
-
|
|
855
|
+
ye,
|
|
868
856
|
{
|
|
869
857
|
endpoints: t.endpoints,
|
|
870
858
|
prefix: t.prefix,
|
|
@@ -883,13 +871,13 @@ function E({ config: t, tryPath: s, onTry: r }) {
|
|
|
883
871
|
t.responseNotes
|
|
884
872
|
] });
|
|
885
873
|
}
|
|
886
|
-
const
|
|
874
|
+
const Xe = {
|
|
887
875
|
domain: /* @__PURE__ */ e(be, {}),
|
|
888
|
-
endpoints:
|
|
889
|
-
prefix:
|
|
876
|
+
endpoints: ge,
|
|
877
|
+
prefix: L,
|
|
890
878
|
listHint: /* @__PURE__ */ a(g, { children: [
|
|
891
879
|
"路径前缀 ",
|
|
892
|
-
/* @__PURE__ */ e("code", { children:
|
|
880
|
+
/* @__PURE__ */ e("code", { children: L }),
|
|
893
881
|
";请求头 ",
|
|
894
882
|
/* @__PURE__ */ e("code", { children: "X-AK" }),
|
|
895
883
|
" 必填,标识字段必填(",
|
|
@@ -898,7 +886,7 @@ const $e = {
|
|
|
898
886
|
/* @__PURE__ */ e("code", { children: "code" }),
|
|
899
887
|
" 至少填一个),其余选填"
|
|
900
888
|
] }),
|
|
901
|
-
curl:
|
|
889
|
+
curl: xe,
|
|
902
890
|
requestNotes: /* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
903
891
|
/* @__PURE__ */ a("li", { children: [
|
|
904
892
|
/* @__PURE__ */ e("code", { children: "X-AK" }),
|
|
@@ -929,9 +917,9 @@ const $e = {
|
|
|
929
917
|
] })
|
|
930
918
|
] }),
|
|
931
919
|
defaultPath: "/knowledgeBase/page",
|
|
932
|
-
sample:
|
|
920
|
+
sample: ve,
|
|
933
921
|
call: oe,
|
|
934
|
-
response:
|
|
922
|
+
response: De,
|
|
935
923
|
responseNotes: /* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
936
924
|
/* @__PURE__ */ a("li", { children: [
|
|
937
925
|
"业务失败通常仍返回 HTTP 200,以 ",
|
|
@@ -951,13 +939,13 @@ const $e = {
|
|
|
951
939
|
] }),
|
|
952
940
|
/* @__PURE__ */ e("li", { children: "时间字段为 ISO-8601 字符串,原样展示,不需要改格式。" })
|
|
953
941
|
] })
|
|
954
|
-
},
|
|
942
|
+
}, $e = {
|
|
955
943
|
domain: /* @__PURE__ */ e(Ae, {}),
|
|
956
|
-
endpoints:
|
|
957
|
-
prefix:
|
|
944
|
+
endpoints: Ce,
|
|
945
|
+
prefix: x,
|
|
958
946
|
listHint: /* @__PURE__ */ a(g, { children: [
|
|
959
947
|
"路径前缀 ",
|
|
960
|
-
/* @__PURE__ */ e("code", { children:
|
|
948
|
+
/* @__PURE__ */ e("code", { children: x }),
|
|
961
949
|
";请求头 ",
|
|
962
950
|
/* @__PURE__ */ e("code", { children: "X-AK" }),
|
|
963
951
|
" 必填,本体由租户决定; 可选 ",
|
|
@@ -970,7 +958,7 @@ const $e = {
|
|
|
970
958
|
/* @__PURE__ */ e("code", { children: "/scenario/**" }),
|
|
971
959
|
" 为场景查询与执行"
|
|
972
960
|
] }),
|
|
973
|
-
curl:
|
|
961
|
+
curl: Me,
|
|
974
962
|
requestNotes: /* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
975
963
|
/* @__PURE__ */ a("li", { children: [
|
|
976
964
|
/* @__PURE__ */ e("code", { children: "X-AK" }),
|
|
@@ -1009,10 +997,10 @@ const $e = {
|
|
|
1009
997
|
] })
|
|
1010
998
|
] }),
|
|
1011
999
|
defaultPath: "/scenario/list",
|
|
1012
|
-
sample:
|
|
1000
|
+
sample: Ie,
|
|
1013
1001
|
call: de,
|
|
1014
1002
|
enableDomain: !0,
|
|
1015
|
-
response:
|
|
1003
|
+
response: Be,
|
|
1016
1004
|
responseNotes: /* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
1017
1005
|
/* @__PURE__ */ a("li", { children: [
|
|
1018
1006
|
"业务失败通常仍返回 HTTP 200,以 ",
|
|
@@ -1052,16 +1040,16 @@ const $e = {
|
|
|
1052
1040
|
";点边类型须在场景投影范围内。"
|
|
1053
1041
|
] })
|
|
1054
1042
|
] })
|
|
1055
|
-
},
|
|
1043
|
+
}, Ge = {
|
|
1056
1044
|
domain: /* @__PURE__ */ e(Ne, {}),
|
|
1057
|
-
endpoints:
|
|
1058
|
-
prefix:
|
|
1045
|
+
endpoints: Ke,
|
|
1046
|
+
prefix: D,
|
|
1059
1047
|
listHint: /* @__PURE__ */ a(g, { children: [
|
|
1060
1048
|
"路径前缀 ",
|
|
1061
|
-
/* @__PURE__ */ e("code", { children:
|
|
1049
|
+
/* @__PURE__ */ e("code", { children: D }),
|
|
1062
1050
|
";免登录且不要求携带 AK——AK 是签发方,租户与归属主体由请求体显式声明"
|
|
1063
1051
|
] }),
|
|
1064
|
-
curl:
|
|
1052
|
+
curl: Se,
|
|
1065
1053
|
requestNotes: /* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
1066
1054
|
/* @__PURE__ */ a("li", { children: [
|
|
1067
1055
|
/* @__PURE__ */ e("code", { children: "tenantCode" }),
|
|
@@ -1108,11 +1096,11 @@ const $e = {
|
|
|
1108
1096
|
] })
|
|
1109
1097
|
] }),
|
|
1110
1098
|
defaultPath: "/verify",
|
|
1111
|
-
sample:
|
|
1099
|
+
sample: Oe,
|
|
1112
1100
|
call: me,
|
|
1113
1101
|
requireAk: !1,
|
|
1114
1102
|
tryHint: "请求发往当前站点网关;AK 门面免登不要求 AK,租户由请求体声明",
|
|
1115
|
-
response:
|
|
1103
|
+
response: Pe,
|
|
1116
1104
|
responseNotes: /* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
1117
1105
|
/* @__PURE__ */ a("li", { children: [
|
|
1118
1106
|
"业务失败通常仍返回 HTTP 200,以 ",
|
|
@@ -1126,14 +1114,14 @@ const $e = {
|
|
|
1126
1114
|
/* @__PURE__ */ e("li", { children: "时间字段为 ISO-8601 字符串,原样展示,不需要改格式。" })
|
|
1127
1115
|
] })
|
|
1128
1116
|
};
|
|
1129
|
-
function
|
|
1117
|
+
function je() {
|
|
1130
1118
|
return /* @__PURE__ */ a(g, { children: [
|
|
1131
1119
|
/* @__PURE__ */ e("h4", { className: "ma-block-label", children: "Maven 依赖" }),
|
|
1132
|
-
/* @__PURE__ */ e(f, { code:
|
|
1120
|
+
/* @__PURE__ */ e(f, { code: Ee, title: "pom.xml" }),
|
|
1133
1121
|
/* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
1134
1122
|
/* @__PURE__ */ a("li", { children: [
|
|
1135
1123
|
"示例版本 ",
|
|
1136
|
-
/* @__PURE__ */ e("code", { children:
|
|
1124
|
+
/* @__PURE__ */ e("code", { children: O }),
|
|
1137
1125
|
",与提供的 AI 接入技能包一致;依赖从内部 Maven 仓库解析。"
|
|
1138
1126
|
] }),
|
|
1139
1127
|
/* @__PURE__ */ a("li", { children: [
|
|
@@ -1145,7 +1133,7 @@ function Fe() {
|
|
|
1145
1133
|
/* @__PURE__ */ e("li", { children: "Maven 坐标可通过内部仓库搜索 z-ak-client 获取最新版本。" })
|
|
1146
1134
|
] }),
|
|
1147
1135
|
/* @__PURE__ */ e("h4", { className: "ma-block-label", children: "调用示例" }),
|
|
1148
|
-
/* @__PURE__ */ e(f, { code:
|
|
1136
|
+
/* @__PURE__ */ e(f, { code: Le, title: "AkClientExample.java" }),
|
|
1149
1137
|
/* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
1150
1138
|
/* @__PURE__ */ a("li", { children: [
|
|
1151
1139
|
"AK 门面是签发方入口:构建器不要求 AK,",
|
|
@@ -1179,14 +1167,14 @@ function Fe() {
|
|
|
1179
1167
|
] })
|
|
1180
1168
|
] });
|
|
1181
1169
|
}
|
|
1182
|
-
function
|
|
1170
|
+
function Fe() {
|
|
1183
1171
|
return /* @__PURE__ */ a(g, { children: [
|
|
1184
1172
|
/* @__PURE__ */ e("h4", { className: "ma-block-label", children: "Maven 依赖" }),
|
|
1185
|
-
/* @__PURE__ */ e(f, { code:
|
|
1173
|
+
/* @__PURE__ */ e(f, { code: ze, title: "pom.xml" }),
|
|
1186
1174
|
/* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
1187
1175
|
/* @__PURE__ */ a("li", { children: [
|
|
1188
1176
|
"示例版本 ",
|
|
1189
|
-
/* @__PURE__ */ e("code", { children:
|
|
1177
|
+
/* @__PURE__ */ e("code", { children: O }),
|
|
1190
1178
|
",与提供的 AI 接入技能包一致。"
|
|
1191
1179
|
] }),
|
|
1192
1180
|
/* @__PURE__ */ a("li", { children: [
|
|
@@ -1198,7 +1186,7 @@ function Ue() {
|
|
|
1198
1186
|
/* @__PURE__ */ e("li", { children: "Maven 坐标可通过内部仓库搜索 z-kb-client 获取最新版本。" })
|
|
1199
1187
|
] }),
|
|
1200
1188
|
/* @__PURE__ */ e("h4", { className: "ma-block-label", children: "调用示例" }),
|
|
1201
|
-
/* @__PURE__ */ e(f, { code:
|
|
1189
|
+
/* @__PURE__ */ e(f, { code: Re, title: "KnowledgeBaseQueryExample.java" }),
|
|
1202
1190
|
/* @__PURE__ */ a("ul", { className: "ma-notes compact", children: [
|
|
1203
1191
|
/* @__PURE__ */ a("li", { children: [
|
|
1204
1192
|
"AK 必填:在「接入 AK」页申请后用 ",
|
|
@@ -1233,7 +1221,7 @@ function Ue() {
|
|
|
1233
1221
|
] })
|
|
1234
1222
|
] });
|
|
1235
1223
|
}
|
|
1236
|
-
function
|
|
1224
|
+
function Ue() {
|
|
1237
1225
|
return /* @__PURE__ */ a("section", { className: "ma-skill", children: [
|
|
1238
1226
|
/* @__PURE__ */ a("div", { className: "ma-skill-main", children: [
|
|
1239
1227
|
/* @__PURE__ */ e("span", { className: "ma-skill-icon", children: /* @__PURE__ */ e(u, { name: "sparkles", size: 20 }) }),
|
|
@@ -1251,7 +1239,7 @@ function Ve() {
|
|
|
1251
1239
|
"a",
|
|
1252
1240
|
{
|
|
1253
1241
|
className: "btn primary",
|
|
1254
|
-
href:
|
|
1242
|
+
href: qe,
|
|
1255
1243
|
download: "fb-kb-knowledge-service.zip",
|
|
1256
1244
|
children: [
|
|
1257
1245
|
/* @__PURE__ */ e(u, { name: "download", size: 13 }),
|
|
@@ -1263,23 +1251,23 @@ function Ve() {
|
|
|
1263
1251
|
] })
|
|
1264
1252
|
] });
|
|
1265
1253
|
}
|
|
1266
|
-
function
|
|
1254
|
+
function Ve() {
|
|
1267
1255
|
return /* @__PURE__ */ a("div", { className: "empty", children: [
|
|
1268
1256
|
/* @__PURE__ */ e("span", { className: "empty-icon", children: /* @__PURE__ */ e(u, { name: "network", size: 20 }) }),
|
|
1269
1257
|
/* @__PURE__ */ e("b", { children: "暂无接入文档" })
|
|
1270
1258
|
] });
|
|
1271
1259
|
}
|
|
1272
|
-
const
|
|
1273
|
-
"kb-http": (t) => /* @__PURE__ */ e(
|
|
1274
|
-
"ol-http": (t) => /* @__PURE__ */ e(
|
|
1275
|
-
"ak-http": (t) => /* @__PURE__ */ e(
|
|
1276
|
-
"kb-sdk": () => /* @__PURE__ */ e(
|
|
1277
|
-
"ak-sdk": () => /* @__PURE__ */ e(
|
|
1278
|
-
"kb-skill": () => /* @__PURE__ */ e(
|
|
1260
|
+
const We = {
|
|
1261
|
+
"kb-http": (t) => /* @__PURE__ */ e(P, { config: Xe, ...t }),
|
|
1262
|
+
"ol-http": (t) => /* @__PURE__ */ e(P, { config: $e, ...t }),
|
|
1263
|
+
"ak-http": (t) => /* @__PURE__ */ e(P, { config: Ge, ...t }),
|
|
1264
|
+
"kb-sdk": () => /* @__PURE__ */ e(Fe, {}),
|
|
1265
|
+
"ak-sdk": () => /* @__PURE__ */ e(je, {}),
|
|
1266
|
+
"kb-skill": () => /* @__PURE__ */ e(Ue, {})
|
|
1279
1267
|
};
|
|
1280
|
-
function
|
|
1281
|
-
const l =
|
|
1282
|
-
return
|
|
1268
|
+
function Ye({ doc: t, tryPath: s, onTry: r }) {
|
|
1269
|
+
const l = _(null), n = He[t], c = We[t];
|
|
1270
|
+
return ee(() => {
|
|
1283
1271
|
l.current && (l.current.scrollTop = 0);
|
|
1284
1272
|
}, [t]), /* @__PURE__ */ a("section", { className: "panel ma-doc-panel", "aria-labelledby": "ma-doc-title", children: [
|
|
1285
1273
|
/* @__PURE__ */ a("div", { className: "panel-head", children: [
|
|
@@ -1289,16 +1277,16 @@ function Je({ doc: t, tryPath: s, onTry: r }) {
|
|
|
1289
1277
|
] }),
|
|
1290
1278
|
/* @__PURE__ */ e("span", { className: "hint", children: n.hint })
|
|
1291
1279
|
] }),
|
|
1292
|
-
/* @__PURE__ */ e("div", { className: "panel-body", ref: l, children: c ? /* @__PURE__ */ e(c, { tryPath: s, onTry: r }) : /* @__PURE__ */ e(
|
|
1280
|
+
/* @__PURE__ */ e("div", { className: "panel-body", ref: l, children: c ? /* @__PURE__ */ e(c, { tryPath: s, onTry: r }) : /* @__PURE__ */ e(Ve, {}) })
|
|
1293
1281
|
] });
|
|
1294
1282
|
}
|
|
1295
|
-
function
|
|
1283
|
+
function Je({
|
|
1296
1284
|
onClose: t,
|
|
1297
1285
|
onCreated: s
|
|
1298
1286
|
}) {
|
|
1299
1287
|
const [r, l] = h("PERSONAL"), [n, c] = h(""), [p, d] = h(!1), [k, b] = h("");
|
|
1300
1288
|
return /* @__PURE__ */ e(
|
|
1301
|
-
|
|
1289
|
+
ne,
|
|
1302
1290
|
{
|
|
1303
1291
|
icon: "key",
|
|
1304
1292
|
title: "新增 AK",
|
|
@@ -1363,7 +1351,7 @@ function Qe({
|
|
|
1363
1351
|
}
|
|
1364
1352
|
d(!0), b("");
|
|
1365
1353
|
try {
|
|
1366
|
-
const m = await
|
|
1354
|
+
const m = await le({ ownerType: r, name: A });
|
|
1367
1355
|
C("AK 已创建", m.akName, "success"), s(m);
|
|
1368
1356
|
} catch (m) {
|
|
1369
1357
|
b(m instanceof Error ? m.message : "创建失败");
|
|
@@ -1378,19 +1366,19 @@ function Qe({
|
|
|
1378
1366
|
}
|
|
1379
1367
|
);
|
|
1380
1368
|
}
|
|
1381
|
-
const
|
|
1382
|
-
function
|
|
1369
|
+
const E = { keyword: "", ownerType: "", ownerName: "" };
|
|
1370
|
+
function Qe(t) {
|
|
1383
1371
|
return {
|
|
1384
1372
|
keyword: t.keyword.trim() || void 0,
|
|
1385
1373
|
ownerType: t.ownerType || void 0,
|
|
1386
1374
|
ownerName: t.ownerName.trim() || void 0
|
|
1387
1375
|
};
|
|
1388
1376
|
}
|
|
1389
|
-
function
|
|
1377
|
+
function Ze() {
|
|
1390
1378
|
const [t, s] = h([]), [r, l] = h(!0), [n, c] = h(""), [p, d] = h({}), [k, b] = h(0);
|
|
1391
1379
|
return I(() => {
|
|
1392
1380
|
let m = !0;
|
|
1393
|
-
return l(!0), c(""),
|
|
1381
|
+
return l(!0), c(""), V(p).then((i) => {
|
|
1394
1382
|
m && s(i);
|
|
1395
1383
|
}).catch((i) => {
|
|
1396
1384
|
m && c(i instanceof Error ? i.message : "AK 列表加载失败");
|
|
@@ -1402,27 +1390,27 @@ function ea() {
|
|
|
1402
1390
|
}, [p, k]), { rows: t, loading: r, error: n, reload: () => {
|
|
1403
1391
|
b((m) => m + 1);
|
|
1404
1392
|
}, applyFilters: (m) => {
|
|
1405
|
-
d(
|
|
1393
|
+
d(Qe(m));
|
|
1406
1394
|
} };
|
|
1407
1395
|
}
|
|
1408
|
-
const
|
|
1396
|
+
const ea = {
|
|
1409
1397
|
SYSTEM: "系统",
|
|
1410
1398
|
PERSONAL: "个人",
|
|
1411
1399
|
APPLICATION: "应用"
|
|
1412
|
-
},
|
|
1400
|
+
}, aa = {
|
|
1413
1401
|
SYSTEM: "gray",
|
|
1414
1402
|
PERSONAL: "green",
|
|
1415
1403
|
APPLICATION: "blue"
|
|
1416
|
-
},
|
|
1404
|
+
}, ta = [
|
|
1417
1405
|
{ value: "", label: "全部类型" },
|
|
1418
1406
|
{ value: "PERSONAL", label: "个人" },
|
|
1419
1407
|
{ value: "APPLICATION", label: "应用" }
|
|
1420
1408
|
];
|
|
1421
|
-
function
|
|
1422
|
-
const { rows: t, loading: s, error: r, reload: l, applyFilters: n } =
|
|
1409
|
+
function na() {
|
|
1410
|
+
const { rows: t, loading: s, error: r, reload: l, applyFilters: n } = Ze(), [c, p] = h(!1), [d, k] = h(E), b = (i) => {
|
|
1423
1411
|
i.preventDefault(), n(d);
|
|
1424
1412
|
}, w = () => {
|
|
1425
|
-
k(
|
|
1413
|
+
k(E), n(E);
|
|
1426
1414
|
}, A = async (i) => {
|
|
1427
1415
|
try {
|
|
1428
1416
|
await U(i.akCode), C("AK 已复制", i.akName, "success");
|
|
@@ -1464,7 +1452,7 @@ function la() {
|
|
|
1464
1452
|
] }) }),
|
|
1465
1453
|
/* @__PURE__ */ e("tbody", { children: t.map((i) => /* @__PURE__ */ a("tr", { children: [
|
|
1466
1454
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("div", { className: "name-cell", children: /* @__PURE__ */ e("div", { className: "nc", children: /* @__PURE__ */ e("b", { title: i.akName, children: i.akName }) }) }) }),
|
|
1467
|
-
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("span", { className: `tag sm ${
|
|
1455
|
+
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("span", { className: `tag sm ${aa[i.ownerType] || "gray"}`, children: ea[i.ownerType] || i.ownerType }) }),
|
|
1468
1456
|
/* @__PURE__ */ e("td", { children: /* @__PURE__ */ e("code", { className: "ma-ak-token", title: i.akCode, children: i.akCode }) }),
|
|
1469
1457
|
/* @__PURE__ */ e("td", { children: i.ownerName || "—" }),
|
|
1470
1458
|
/* @__PURE__ */ e("td", { className: "mono-sm", children: ie(i.createTime) }),
|
|
@@ -1522,7 +1510,7 @@ function la() {
|
|
|
1522
1510
|
...d,
|
|
1523
1511
|
ownerType: i.target.value
|
|
1524
1512
|
}),
|
|
1525
|
-
children:
|
|
1513
|
+
children: ta.map((i) => /* @__PURE__ */ e("option", { value: i.value, children: i.label }, i.value))
|
|
1526
1514
|
}
|
|
1527
1515
|
)
|
|
1528
1516
|
] }),
|
|
@@ -1549,7 +1537,7 @@ function la() {
|
|
|
1549
1537
|
m
|
|
1550
1538
|
] }),
|
|
1551
1539
|
c ? /* @__PURE__ */ e(
|
|
1552
|
-
|
|
1540
|
+
Je,
|
|
1553
1541
|
{
|
|
1554
1542
|
onClose: () => p(!1),
|
|
1555
1543
|
onCreated: () => {
|
|
@@ -1559,7 +1547,7 @@ function la() {
|
|
|
1559
1547
|
) : null
|
|
1560
1548
|
] });
|
|
1561
1549
|
}
|
|
1562
|
-
const
|
|
1550
|
+
const la = [
|
|
1563
1551
|
{
|
|
1564
1552
|
key: "kb",
|
|
1565
1553
|
title: "知识库接入",
|
|
@@ -1591,7 +1579,7 @@ const ia = [
|
|
|
1591
1579
|
]
|
|
1592
1580
|
}
|
|
1593
1581
|
];
|
|
1594
|
-
function
|
|
1582
|
+
function ia({ active: t, onSelect: s }) {
|
|
1595
1583
|
const [r, l] = h({}), n = (c) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ a(
|
|
1596
1584
|
"button",
|
|
1597
1585
|
{
|
|
@@ -1605,7 +1593,7 @@ function ra({ active: t, onSelect: s }) {
|
|
|
1605
1593
|
]
|
|
1606
1594
|
}
|
|
1607
1595
|
) }, c.key);
|
|
1608
|
-
return /* @__PURE__ */ e("nav", { className: "ma-tree", "aria-label": "接入文档目录", children: /* @__PURE__ */ e("ul", { children:
|
|
1596
|
+
return /* @__PURE__ */ e("nav", { className: "ma-tree", "aria-label": "接入文档目录", children: /* @__PURE__ */ e("ul", { children: la.map((c) => {
|
|
1609
1597
|
if (!c.children) return n(c);
|
|
1610
1598
|
const p = !r[c.key], d = c.children.some((k) => k.key === t);
|
|
1611
1599
|
return /* @__PURE__ */ a("li", { children: [
|
|
@@ -1631,7 +1619,7 @@ function ua() {
|
|
|
1631
1619
|
const [t, s] = h("docs"), [r, l] = h("kb-http"), [n, c] = h();
|
|
1632
1620
|
return /* @__PURE__ */ a("div", { className: "view my-access pc-page", children: [
|
|
1633
1621
|
/* @__PURE__ */ e(
|
|
1634
|
-
|
|
1622
|
+
ae,
|
|
1635
1623
|
{
|
|
1636
1624
|
ariaLabel: "我的接入视图",
|
|
1637
1625
|
items: [
|
|
@@ -1643,11 +1631,11 @@ function ua() {
|
|
|
1643
1631
|
}
|
|
1644
1632
|
),
|
|
1645
1633
|
t === "docs" ? /* @__PURE__ */ a("div", { className: "ma-doc-layout", children: [
|
|
1646
|
-
/* @__PURE__ */ e(
|
|
1634
|
+
/* @__PURE__ */ e(ia, { active: r, onSelect: (d) => {
|
|
1647
1635
|
c(void 0), l(d);
|
|
1648
1636
|
} }),
|
|
1649
|
-
/* @__PURE__ */ e(
|
|
1650
|
-
] }) : /* @__PURE__ */ e(
|
|
1637
|
+
/* @__PURE__ */ e(Ye, { doc: r, tryPath: n, onTry: c })
|
|
1638
|
+
] }) : /* @__PURE__ */ e(na, {})
|
|
1651
1639
|
] });
|
|
1652
1640
|
}
|
|
1653
1641
|
export {
|