@blueking/ai-ui-sdk 0.3.0-beta.24 → 0.3.0-beta.25
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/components/render-agent/agent-type.vue.css +3 -3
- package/dist/components/render-agent/agent-type.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.script.vue.js.js +22 -2
- package/dist/components/render-card/llm/icons.vue.css +2 -2
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/info.vue.css +1 -1
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/actions.script.vue.js.js +6 -2
- package/dist/components/render-card/mcp/index.script.vue.js.js +3 -24
- package/dist/components/render-card/mcp/index.vue.d.ts +2 -5
- package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +1 -1
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/tool/index.script.vue.js.js +4 -12
- package/dist/components/render-card/tool/index.vue.d.ts +1 -4
- package/dist/components/render-card/tool/prefix-info-tool.script.vue.js.js +20 -70
- package/dist/components/render-card/tool/prefix-info-tool.vue.d.ts +0 -4
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-collection/content/index.vue.css +4 -4
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -5
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -4
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-resource.vue.css +3 -3
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +14 -14
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.script.vue.js.js +2 -1
- package/dist/components/render-dialog/choose-space.vue.css +9 -9
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.vue.css +6 -6
- package/dist/components/render-dialog/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-markdown/filter-css.ts.js +7 -2
- package/dist/components/render-mcp/install/index.script.vue.js.js +65 -36
- package/dist/components/render-mcp/install/index.vue.d.ts +4 -2
- package/dist/components/render-mcp/install/install-guide.script.vue.js.js +60 -0
- package/dist/components/render-mcp/install/install-guide.vue.d.ts +11 -0
- package/dist/components/render-mcp/install/install-guide.vue.js +3 -0
- package/dist/components/render-prompt/content/index.vue.css +1 -1
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-select-plus-extension/index.vue.css +3 -3
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-t-table/index.vue.css +28 -27
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tags/index.vue.css +6 -6
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/components.d.ts +1 -3
- package/dist/components.ts.js +1 -3
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/g-utilities.css +9 -77
- package/dist/css/g-utilities.manifest.json +3 -20
- package/dist/hooks/use-chat.d.ts +0 -4
- package/dist/hooks/use-mcp-http.d.ts +5 -1
- package/dist/hooks/use-mcp-http.ts.js +16 -2
- package/dist/http/helper/agent.d.ts +1 -13
- package/dist/http/helper/agent.ts.js +2 -24
- package/dist/http/helper/common.d.ts +1 -13
- package/dist/http/helper/common.ts.js +0 -16
- package/dist/http/helper/mcp.d.ts +3 -1
- package/dist/http/helper/mcp.ts.js +16 -6
- package/dist/http/helper/model.ts.js +1 -0
- package/dist/http/helper/tool.ts.js +3 -3
- package/dist/types/agent.d.ts +0 -14
- package/dist/types/common.d.ts +0 -8
- package/dist/types/enum.d.ts +4 -0
- package/dist/types/enum.ts.js +5 -0
- package/dist/types/mcp.d.ts +24 -4
- package/dist/types/model.d.ts +2 -0
- package/dist/types/tool.d.ts +3 -3
- package/package.json +2 -2
- package/dist/components/render-card/base/approval-strategy-popover.script.vue.js.js +0 -198
- package/dist/components/render-card/base/approval-strategy-popover.vue.d.ts +0 -19
- package/dist/components/render-card/base/approval-strategy-popover.vue.js +0 -3
- package/dist/components/render-card/mcp/selected-tools-info.script.vue.js.js +0 -156
- package/dist/components/render-card/mcp/selected-tools-info.vue.d.ts +0 -26
- package/dist/components/render-card/mcp/selected-tools-info.vue.js +0 -3
package/dist/components.ts.js
CHANGED
|
@@ -6,14 +6,12 @@ import RenderAgentType from './components/render-agent/agent-type.vue.js';
|
|
|
6
6
|
import { renderAuthDialog } from './components/render-auth/auth-dialog-fn.ts.js';
|
|
7
7
|
import RenderAutoHeightTextarea from './components/render-auto-height-textarea/index.vue.js';
|
|
8
8
|
import RenderAutoRefresh from './components/render-auto-refresh/index.vue.js';
|
|
9
|
-
import RenderApprovalStrategyPopover from './components/render-card/base/approval-strategy-popover.vue.js';
|
|
10
9
|
import RenderAgentCard from './components/render-card/agent/index.vue.js';
|
|
11
10
|
import RenderAgentCommandCard from './components/render-card/agent-command/index.vue.js';
|
|
12
11
|
import RenderKnowledgeCard from './components/render-card/knowledge/index.vue.js';
|
|
13
12
|
import RenderKnowledgebaseCard from './components/render-card/knowledgebase/index.vue.js';
|
|
14
13
|
import RenderLlmCard from './components/render-card/llm/index.vue.js';
|
|
15
14
|
import RenderMcpCard from './components/render-card/mcp/index.vue.js';
|
|
16
|
-
import RenderSelectedToolsInfo from './components/render-card/mcp/selected-tools-info.vue.js';
|
|
17
15
|
import RenderPromptCard from './components/render-card/prompt/index.vue.js';
|
|
18
16
|
import RenderRoleCard from './components/render-card/role/index.vue.js';
|
|
19
17
|
import RenderSkillCard from './components/render-card/skill/index.vue.js';
|
|
@@ -59,4 +57,4 @@ import RenderTagTree from './components/render-tag-tree/index.vue.js';
|
|
|
59
57
|
import RenderTags from './components/render-tags/index.vue.js';
|
|
60
58
|
import RenderToolSearch from './components/render-tool/search/index.vue.js';
|
|
61
59
|
import RenderTree from './components/render-tree/index.vue.js';
|
|
62
|
-
export { RenderAgentDownload, RenderAgentSearch, RenderAgentShare, RenderAgentType, renderAuthDialog, RenderAutoHeightTextarea, RenderAutoRefresh, RenderAgentCard, RenderAgentCommandCard,
|
|
60
|
+
export { RenderAgentDownload, RenderAgentSearch, RenderAgentShare, RenderAgentType, renderAuthDialog, RenderAutoHeightTextarea, RenderAutoRefresh, RenderAgentCard, RenderAgentCommandCard, RenderKnowledgeCard, RenderKnowledgebaseCard, RenderLlmCard, RenderMcpCard, RenderPromptCard, RenderRoleCard, RenderSkillCard, RenderToolCard, RenderCheckbox, RenderChooseTag, RenderRoleActions, RenderRoleContent, RenderRoleSearch, RenderDataset, RenderDatasetDetail, RenderDatasetDetailOriginData, RenderDatasetList, RenderResourceDialog, RenderDropdown, RenderFileTypeIcon, RenderGenerateTag, RenderHeader, RenderImage, RenderKnowledgeIcon, RenderKnowledgeSearch, RenderKnowledgebaseSearch, RenderLike, RenderMarkdownEdit, RenderMarkdown, RenderMcpSearch, RenderPromptActions, RenderPromptContent, RenderPromptSearch, RenderResourceInfo, RenderResourceVersion, RenderSearchEmpty, RenderSearchSelect, RenderSelectPlusExtension, RenderSkillActions, RenderSkillIcons, RenderSkillInstall, RenderSkillSearch, RenderTTable, RenderTagTree, RenderTags, RenderToolSearch, RenderTree, RenderReference, RenderRelateAgent };
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/css/g-utilities.css
CHANGED
|
@@ -173,14 +173,6 @@
|
|
|
173
173
|
border-radius: 100%;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
.g-border-t-1 {
|
|
177
|
-
border-top-width: 1px;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.g-border-t-F0F1F5 {
|
|
181
|
-
border-top: 1px solid #F0F1F5;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
176
|
.g-confirm {
|
|
185
177
|
.bk-pop-confirm-title {
|
|
186
178
|
padding-bottom: 6px;
|
|
@@ -319,10 +311,6 @@
|
|
|
319
311
|
align-items: center;
|
|
320
312
|
}
|
|
321
313
|
|
|
322
|
-
.g-flex-shrink-0 {
|
|
323
|
-
flex-shrink: 0;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
314
|
.g-flex-truncate {
|
|
327
315
|
overflow: hidden;
|
|
328
316
|
text-overflow: ellipsis;
|
|
@@ -358,14 +346,6 @@
|
|
|
358
346
|
gap: 4px;
|
|
359
347
|
}
|
|
360
348
|
|
|
361
|
-
.g-gap-8 {
|
|
362
|
-
gap: 8px;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.g-gap-y-4 {
|
|
366
|
-
row-gap: 4px;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
349
|
.g-gray-header-table {
|
|
370
350
|
.bk-table-head {
|
|
371
351
|
th {
|
|
@@ -379,10 +359,6 @@
|
|
|
379
359
|
height: 16px;
|
|
380
360
|
}
|
|
381
361
|
|
|
382
|
-
.g-h-24 {
|
|
383
|
-
height: 24px;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
362
|
.g-h-56 {
|
|
387
363
|
height: 56px;
|
|
388
364
|
}
|
|
@@ -391,6 +367,10 @@
|
|
|
391
367
|
height: 70px;
|
|
392
368
|
}
|
|
393
369
|
|
|
370
|
+
.g-h-full {
|
|
371
|
+
height: 100%;
|
|
372
|
+
}
|
|
373
|
+
|
|
394
374
|
.g-hidden {
|
|
395
375
|
display: none;
|
|
396
376
|
}
|
|
@@ -409,14 +389,6 @@
|
|
|
409
389
|
align-items: center;
|
|
410
390
|
}
|
|
411
391
|
|
|
412
|
-
.g-items-start {
|
|
413
|
-
align-items: flex-start;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.g-justify-between {
|
|
417
|
-
justify-content: space-between;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
392
|
.g-justify-center {
|
|
421
393
|
justify-content: center;
|
|
422
394
|
}
|
|
@@ -453,14 +425,6 @@
|
|
|
453
425
|
line-height: 32px;
|
|
454
426
|
}
|
|
455
427
|
|
|
456
|
-
.g-m-0 {
|
|
457
|
-
margin: 0px;
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
.g-max-h-260 {
|
|
461
|
-
max-height: 260px;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
428
|
.g-max-h-400 {
|
|
465
429
|
max-height: 400px;
|
|
466
430
|
}
|
|
@@ -684,10 +648,6 @@
|
|
|
684
648
|
font-variant-numeric: tabular-nums;
|
|
685
649
|
}
|
|
686
650
|
|
|
687
|
-
.g-p-0 {
|
|
688
|
-
padding: 0px;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
651
|
.g-p-12 {
|
|
692
652
|
padding: 12px;
|
|
693
653
|
}
|
|
@@ -708,10 +668,6 @@
|
|
|
708
668
|
padding-bottom: 20px;
|
|
709
669
|
}
|
|
710
670
|
|
|
711
|
-
.g-pb-4 {
|
|
712
|
-
padding-bottom: 4px;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
671
|
.g-pb-8 {
|
|
716
672
|
padding-bottom: 8px;
|
|
717
673
|
}
|
|
@@ -726,10 +682,6 @@
|
|
|
726
682
|
padding-left: 12px;
|
|
727
683
|
}
|
|
728
684
|
|
|
729
|
-
.g-pl-16 {
|
|
730
|
-
padding-left: 16px;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
685
|
.g-pl-8 {
|
|
734
686
|
padding-left: 8px;
|
|
735
687
|
}
|
|
@@ -755,10 +707,6 @@ padding: 0px !important;
|
|
|
755
707
|
}
|
|
756
708
|
}
|
|
757
709
|
|
|
758
|
-
.g-pr-16 {
|
|
759
|
-
padding-right: 16px;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
710
|
.g-pr-24 {
|
|
763
711
|
padding-right: 24px;
|
|
764
712
|
}
|
|
@@ -775,13 +723,13 @@ padding: 0px !important;
|
|
|
775
723
|
padding-top: 14px;
|
|
776
724
|
}
|
|
777
725
|
|
|
778
|
-
.g-pt-
|
|
779
|
-
padding-top:
|
|
726
|
+
.g-pt-16 {
|
|
727
|
+
padding-top: 16px;
|
|
780
728
|
}
|
|
781
729
|
|
|
782
|
-
.g-px-
|
|
783
|
-
padding-left:
|
|
784
|
-
padding-right:
|
|
730
|
+
.g-px-24 {
|
|
731
|
+
padding-left: 24px;
|
|
732
|
+
padding-right: 24px;
|
|
785
733
|
}
|
|
786
734
|
|
|
787
735
|
.g-radio-group {
|
|
@@ -823,10 +771,6 @@ padding: 0px !important;
|
|
|
823
771
|
position: relative;
|
|
824
772
|
}
|
|
825
773
|
|
|
826
|
-
.g-rotate--90 {
|
|
827
|
-
transform: rotate(-90deg);
|
|
828
|
-
}
|
|
829
|
-
|
|
830
774
|
.g-rotate-infinite {
|
|
831
775
|
animation: rotate 2s linear infinite;
|
|
832
776
|
}
|
|
@@ -1067,10 +1011,6 @@ padding: 0px !important;
|
|
|
1067
1011
|
color: #ea3636;
|
|
1068
1012
|
}
|
|
1069
1013
|
|
|
1070
|
-
.g-transition-transform {
|
|
1071
|
-
transition: transform .3s cubic-bezier(.4, 0, .2, 1), -webkit-transform .3s cubic-bezier(.4, 0, .2, 1);
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
1014
|
.g-truncate {
|
|
1075
1015
|
overflow: hidden;
|
|
1076
1016
|
text-overflow: ellipsis;
|
|
@@ -1115,14 +1055,6 @@ padding: 0px !important;
|
|
|
1115
1055
|
color: #3a84ff !important;
|
|
1116
1056
|
}
|
|
1117
1057
|
|
|
1118
|
-
.hover\:g-bg-\[\#f5f7fa\]:hover {
|
|
1119
|
-
background-color: #f5f7fa;
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
.hover\:g-cursor-pointer:hover {
|
|
1123
|
-
cursor: pointer;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
1058
|
.hover\:g-text-danger-red:hover {
|
|
1127
1059
|
color: #ff4d4f;
|
|
1128
1060
|
}
|
|
@@ -37,8 +37,6 @@
|
|
|
37
37
|
"!g-w-full",
|
|
38
38
|
"g-absolute",
|
|
39
39
|
"g-border-radio-100",
|
|
40
|
-
"g-border-t-1",
|
|
41
|
-
"g-border-t-F0F1F5",
|
|
42
40
|
"g-confirm",
|
|
43
41
|
"g-confirm-delete",
|
|
44
42
|
"g-cursor-grab",
|
|
@@ -53,7 +51,6 @@
|
|
|
53
51
|
"g-flex-col",
|
|
54
52
|
"g-flex-main-text",
|
|
55
53
|
"g-flex-row",
|
|
56
|
-
"g-flex-shrink-0",
|
|
57
54
|
"g-flex-truncate",
|
|
58
55
|
"g-flex-wrap",
|
|
59
56
|
"g-float-left",
|
|
@@ -61,19 +58,15 @@
|
|
|
61
58
|
"g-font-normal",
|
|
62
59
|
"g-gap",
|
|
63
60
|
"g-gap-4",
|
|
64
|
-
"g-gap-8",
|
|
65
|
-
"g-gap-y-4",
|
|
66
61
|
"g-gray-header-table",
|
|
67
62
|
"g-h-16",
|
|
68
|
-
"g-h-24",
|
|
69
63
|
"g-h-56",
|
|
70
64
|
"g-h-70",
|
|
65
|
+
"g-h-full",
|
|
71
66
|
"g-hidden",
|
|
72
67
|
"g-inline",
|
|
73
68
|
"g-inline-flex-row",
|
|
74
69
|
"g-items-center",
|
|
75
|
-
"g-items-start",
|
|
76
|
-
"g-justify-between",
|
|
77
70
|
"g-justify-center",
|
|
78
71
|
"g-justify-end",
|
|
79
72
|
"g-last-form-item",
|
|
@@ -83,8 +76,6 @@
|
|
|
83
76
|
"g-leading-24",
|
|
84
77
|
"g-leading-28",
|
|
85
78
|
"g-leading-32",
|
|
86
|
-
"g-m-0",
|
|
87
|
-
"g-max-h-260",
|
|
88
79
|
"g-max-h-400",
|
|
89
80
|
"g-max-h-80vh",
|
|
90
81
|
"g-max-truncate",
|
|
@@ -131,32 +122,27 @@
|
|
|
131
122
|
"g-mx-16",
|
|
132
123
|
"g-no-permission-resource",
|
|
133
124
|
"g-number-font",
|
|
134
|
-
"g-p-0",
|
|
135
125
|
"g-p-12",
|
|
136
126
|
"g-p-2",
|
|
137
127
|
"g-pb-12",
|
|
138
128
|
"g-pb-14",
|
|
139
129
|
"g-pb-20",
|
|
140
|
-
"g-pb-4",
|
|
141
130
|
"g-pb-8",
|
|
142
131
|
"g-permission-cursor-element",
|
|
143
132
|
"g-pl-12",
|
|
144
|
-
"g-pl-16",
|
|
145
133
|
"g-pl-8",
|
|
146
134
|
"g-popover-confirm",
|
|
147
|
-
"g-pr-16",
|
|
148
135
|
"g-pr-24",
|
|
149
136
|
"g-pr-8",
|
|
150
137
|
"g-pt-12",
|
|
151
138
|
"g-pt-14",
|
|
152
|
-
"g-pt-
|
|
153
|
-
"g-px-
|
|
139
|
+
"g-pt-16",
|
|
140
|
+
"g-px-24",
|
|
154
141
|
"g-radio-group",
|
|
155
142
|
"g-relative",
|
|
156
143
|
"g-resource-description",
|
|
157
144
|
"g-resource-main",
|
|
158
145
|
"g-resource-name",
|
|
159
|
-
"g-rotate--90",
|
|
160
146
|
"g-rotate-infinite",
|
|
161
147
|
"g-rounded-2",
|
|
162
148
|
"g-scrollbar",
|
|
@@ -188,7 +174,6 @@
|
|
|
188
174
|
"g-text-light-gray",
|
|
189
175
|
"g-text-normal",
|
|
190
176
|
"g-text-red",
|
|
191
|
-
"g-transition-transform",
|
|
192
177
|
"g-truncate",
|
|
193
178
|
"g-w-16",
|
|
194
179
|
"g-w-200",
|
|
@@ -199,8 +184,6 @@
|
|
|
199
184
|
"hover:!g-bg-light-blue",
|
|
200
185
|
"hover:!g-border-blue",
|
|
201
186
|
"hover:!g-text-blue",
|
|
202
|
-
"hover:g-bg-[#f5f7fa]",
|
|
203
|
-
"hover:g-cursor-pointer",
|
|
204
187
|
"hover:g-text-danger-red",
|
|
205
188
|
"hover:g-text-normal"
|
|
206
189
|
]
|
package/dist/hooks/use-chat.d.ts
CHANGED
|
@@ -152,8 +152,6 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
152
152
|
viewMcp?: boolean;
|
|
153
153
|
useMcp?: boolean;
|
|
154
154
|
};
|
|
155
|
-
approvalEnabled?: boolean;
|
|
156
|
-
approvalStrategyId?: string;
|
|
157
155
|
}[];
|
|
158
156
|
anchorPathResources?: {
|
|
159
157
|
knowledges?: {
|
|
@@ -662,8 +660,6 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
662
660
|
viewMcp?: boolean;
|
|
663
661
|
useMcp?: boolean;
|
|
664
662
|
};
|
|
665
|
-
approvalEnabled?: boolean;
|
|
666
|
-
approvalStrategyId?: string;
|
|
667
663
|
}[];
|
|
668
664
|
anchorPathResources?: {
|
|
669
665
|
knowledges?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { IFetchConfig } from '@/http/fetch';
|
|
3
|
-
import type { IMcpApi, IMcpCountParam, IMcpListParam, IRegisterMcpParam } from '@/types/mcp';
|
|
3
|
+
import type { IMcpApi, IMcpCountParam, IMcpInstallGuideParam, IMcpListParam, IRegisterMcpParam } from '@/types/mcp';
|
|
4
4
|
export declare const useMcpHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
5
5
|
getMcpList: {
|
|
6
6
|
(param: IMcpListParam, config?: IFetchConfig): Promise<import("@/types").IPaginationResponse<import("@/types").IMcp>>;
|
|
@@ -14,4 +14,8 @@ export declare const useMcpHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
|
14
14
|
abort(): void;
|
|
15
15
|
};
|
|
16
16
|
getMcpReferringAgents: (mcpId: number) => Promise<import("@/types").IReferringAgent[]>;
|
|
17
|
+
getMcpInstallGuide: (param: IMcpInstallGuideParam) => Promise<{
|
|
18
|
+
markdown: string;
|
|
19
|
+
}>;
|
|
20
|
+
getMcpInstallTargets: () => Promise<import("@/types").IMcpInstallTarget[]>;
|
|
17
21
|
};
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import fetch, { withAbort } from '../http/fetch/index.ts.js';
|
|
54
|
-
import { transferMcpApi2Mcp, transferMcpCount2McpCountApi, transferMcpParam2McpParamApi, transferRegisterMcpParam2RegisterMcpParamApi } from '../http/helper/mcp.ts.js';
|
|
54
|
+
import { transferMcpApi2Mcp, transferMcpCount2McpCountApi, transferMcpInstallGuideParam2McpInstallGuideParamApi, transferMcpInstallTargetApi2McpInstallTarget, transferMcpParam2McpParamApi, transferRegisterMcpParam2RegisterMcpParamApi } from '../http/helper/mcp.ts.js';
|
|
55
55
|
import { transferPaginationResponseApi2PaginationResponse, transferReferringAgentApi2ReferringAgent, transferResourceCountApi2ResourceCount } from '../transforms.ts.js';
|
|
56
56
|
export const useMcpHttp = (apiPrefix, spaceId)=>{
|
|
57
57
|
// 获取 MCP 列表 侧边tab切换 搜索栏搜索
|
|
@@ -93,12 +93,26 @@ export const useMcpHttp = (apiPrefix, spaceId)=>{
|
|
|
93
93
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
94
94
|
}
|
|
95
95
|
}).then((data)=>data.map(transferReferringAgentApi2ReferringAgent));
|
|
96
|
+
// 获取 MCP 安装指南
|
|
97
|
+
const getMcpInstallGuide = (param)=>fetch.get(`${apiPrefix}/mcp/v1/mcp/install_guide/`, transferMcpInstallGuideParam2McpInstallGuideParamApi(param), {
|
|
98
|
+
headers: {
|
|
99
|
+
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
// 获取 MCP 安装目标列表
|
|
103
|
+
const getMcpInstallTargets = ()=>fetch.get(`${apiPrefix}/mcp/v1/mcp/install_targets/`, undefined, {
|
|
104
|
+
headers: {
|
|
105
|
+
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
106
|
+
}
|
|
107
|
+
}).then((data)=>data.map(transferMcpInstallTargetApi2McpInstallTarget));
|
|
96
108
|
return {
|
|
97
109
|
getMcpList,
|
|
98
110
|
deleteMcp,
|
|
99
111
|
getMcpConfig,
|
|
100
112
|
restoreMcp,
|
|
101
113
|
getMcpCount,
|
|
102
|
-
getMcpReferringAgents
|
|
114
|
+
getMcpReferringAgents,
|
|
115
|
+
getMcpInstallGuide,
|
|
116
|
+
getMcpInstallTargets
|
|
103
117
|
};
|
|
104
118
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAgent, IAgentApi, IAgentApigwMcpPermission, IAgentApigwMcpPermissionApi, IAgentCommand, IAgentCommandApi, IAgentCountParam, IAgentCountParamApi, IAgentForm, IAgentFormApi, IAgentInfo, IAgentInfoApi, IAgentListParam, IAgentListParamApi,
|
|
1
|
+
import type { IAgent, IAgentApi, IAgentApigwMcpPermission, IAgentApigwMcpPermissionApi, IAgentCommand, IAgentCommandApi, IAgentCountParam, IAgentCountParamApi, IAgentForm, IAgentFormApi, IAgentInfo, IAgentInfoApi, IAgentListParam, IAgentListParamApi, IResourceApply, IResourceApplyApi } from '@/types/agent';
|
|
2
2
|
/**
|
|
3
3
|
* 转换agentapi为agent
|
|
4
4
|
* @param data IAgentInfoApi
|
|
@@ -61,15 +61,3 @@ export declare const transferAgentCount2AgentCountApi: (data: IAgentCountParam)
|
|
|
61
61
|
* @returns IAgentApigwMcpPermission
|
|
62
62
|
*/
|
|
63
63
|
export declare const transferAgentApigwMcpPermissionApi2AgentApigwMcpPermission: (data: IAgentApigwMcpPermissionApi) => IAgentApigwMcpPermission;
|
|
64
|
-
/**
|
|
65
|
-
* ui转换为接口使用(配置审批)
|
|
66
|
-
* @param data IApprovalSetting,
|
|
67
|
-
* @returns IApprovalSettingApi
|
|
68
|
-
*/
|
|
69
|
-
export declare const transferIApprovalSetting2IApprovalSettingApi: (data: IApprovalSetting) => IApprovalSettingApi;
|
|
70
|
-
/**
|
|
71
|
-
* 接口转换为ui使用(配置审批)
|
|
72
|
-
* @param data IApprovalSettingApi
|
|
73
|
-
* @returns IApprovalSetting
|
|
74
|
-
*/
|
|
75
|
-
export declare const transferIApprovalSettingApi2IApprovalSetting: (data: IApprovalSettingApi) => IApprovalSetting;
|
|
@@ -163,7 +163,7 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
163
163
|
* @param data IAgentForm
|
|
164
164
|
* @returns IAgentFormApi
|
|
165
165
|
*/ export const transferAgentForm2AgentFormApi = (data)=>{
|
|
166
|
-
var _data_conversationSettings, _data_conversationSettings1, _data_conversationSettings_commands, _data_conversationSettings2, _data_conversationSettings3, _data_conversationSettings4, _data_promptSetting_collectionVariables, _data_relatedTools_tools, _data_relatedTools_mcps
|
|
166
|
+
var _data_conversationSettings, _data_conversationSettings1, _data_conversationSettings_commands, _data_conversationSettings2, _data_conversationSettings3, _data_conversationSettings4, _data_promptSetting_collectionVariables, _data_relatedTools_tools, _data_relatedTools_mcps;
|
|
167
167
|
var _data_conversationSettings_openingRemark, _data_conversationSettings_predefinedQuestions;
|
|
168
168
|
return _object_spread_props(_object_spread({}, transferResourceFormCommon2ResourceFormCommonApi(data)), {
|
|
169
169
|
agent_code: data.agentCode,
|
|
@@ -219,7 +219,6 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
219
219
|
related_skills: data.relatedSkills ? {
|
|
220
220
|
skills: data.relatedSkills.skills.map(transferSkill2SkillApi)
|
|
221
221
|
} : undefined,
|
|
222
|
-
approval_settings: (_data_approvalSettings = data.approvalSettings) === null || _data_approvalSettings === void 0 ? void 0 : _data_approvalSettings.map(transferIApprovalSetting2IApprovalSettingApi),
|
|
223
222
|
is_bind_credential: data.isBindCredential,
|
|
224
223
|
business_ids: data.businessIds
|
|
225
224
|
});
|
|
@@ -229,7 +228,7 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
229
228
|
* @param data IAgentFormApi
|
|
230
229
|
* @returns IAgentForm
|
|
231
230
|
*/ export const transferAgentFormApi2AgentForm = (data)=>{
|
|
232
|
-
var _data_conversation_settings, _data_conversation_settings1, _data_conversation_settings_commands, _data_conversation_settings2, _data_conversation_settings3, _data_conversation_settings4, _data_prompt_setting_collection_variables, _data_related_tools_tools, _data_related_tools_mcps, _data_related_skills_skills
|
|
231
|
+
var _data_conversation_settings, _data_conversation_settings1, _data_conversation_settings_commands, _data_conversation_settings2, _data_conversation_settings3, _data_conversation_settings4, _data_prompt_setting_collection_variables, _data_related_tools_tools, _data_related_tools_mcps, _data_related_skills_skills;
|
|
233
232
|
var _data_conversation_settings_opening_remark, _data_conversation_settings_predefined_questions;
|
|
234
233
|
return _object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
|
|
235
234
|
agentCode: data.agent_code,
|
|
@@ -285,7 +284,6 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
285
284
|
relatedSkills: data.related_skills ? {
|
|
286
285
|
skills: (_data_related_skills_skills = data.related_skills.skills) === null || _data_related_skills_skills === void 0 ? void 0 : _data_related_skills_skills.map(transferSkillApi2Skill)
|
|
287
286
|
} : undefined,
|
|
288
|
-
approvalSettings: (_data_approval_settings = data.approval_settings) === null || _data_approval_settings === void 0 ? void 0 : _data_approval_settings.map(transferIApprovalSettingApi2IApprovalSetting),
|
|
289
287
|
isBindCredential: data.is_bind_credential,
|
|
290
288
|
businessIds: data.business_ids
|
|
291
289
|
});
|
|
@@ -390,23 +388,3 @@ export const transferAgentCount2AgentCountApi = (data)=>{
|
|
|
390
388
|
url: data.url,
|
|
391
389
|
protocolType: data.protocol_type
|
|
392
390
|
});
|
|
393
|
-
/**
|
|
394
|
-
* ui转换为接口使用(配置审批)
|
|
395
|
-
* @param data IApprovalSetting,
|
|
396
|
-
* @returns IApprovalSettingApi
|
|
397
|
-
*/ export const transferIApprovalSetting2IApprovalSettingApi = (data)=>({
|
|
398
|
-
strategy_id: data.strategyId,
|
|
399
|
-
approval_name: data.approvalName,
|
|
400
|
-
approvers: data.approvers,
|
|
401
|
-
is_default: data.isDefault
|
|
402
|
-
});
|
|
403
|
-
/**
|
|
404
|
-
* 接口转换为ui使用(配置审批)
|
|
405
|
-
* @param data IApprovalSettingApi
|
|
406
|
-
* @returns IApprovalSetting
|
|
407
|
-
*/ export const transferIApprovalSettingApi2IApprovalSetting = (data)=>({
|
|
408
|
-
strategyId: data.strategy_id,
|
|
409
|
-
approvalName: data.approval_name,
|
|
410
|
-
approvers: data.approvers,
|
|
411
|
-
isDefault: data.is_default
|
|
412
|
-
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ResourceStatus } from '@/enums';
|
|
2
|
-
import type { IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IPaginationResponse, IPaginationResponseApi, IReferringAgent, IReferringAgentApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceCount, IResourceCountApi, IResourceFormCommon, IResourceFormCommonApi, IResourceReference, IResourceReferenceApi, ISortParam, ISortParamApi, ITagTree, ITagTreeApi, ITagTreeNode, ITagTreeNodeApi, IVariable, IVariableApi
|
|
2
|
+
import type { IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IPaginationResponse, IPaginationResponseApi, IReferringAgent, IReferringAgentApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceCount, IResourceCountApi, IResourceFormCommon, IResourceFormCommonApi, IResourceReference, IResourceReferenceApi, ISortParam, ISortParamApi, ITagTree, ITagTreeApi, ITagTreeNode, ITagTreeNodeApi, IVariable, IVariableApi } from '@/types/common';
|
|
3
3
|
/**
|
|
4
4
|
* 接口转换为ui使用
|
|
5
5
|
* @param data ITagsTreeApi
|
|
@@ -61,15 +61,3 @@ export declare const transferBaseCountParam2BaseCountParamApi: (data: IBaseCount
|
|
|
61
61
|
export declare const transferResourceCountApi2ResourceCount: (data: IResourceCountApi) => IResourceCount;
|
|
62
62
|
export declare const transferReferringAgentApi2ReferringAgent: (data: IReferringAgentApi) => IReferringAgent;
|
|
63
63
|
export declare const transferIResourceReferenceApi2IResourceReference: (data: IResourceReferenceApi) => IResourceReference;
|
|
64
|
-
/**
|
|
65
|
-
* ui转换为接口使用(配置审批策略)
|
|
66
|
-
* @param data IApprovalSettingValue,
|
|
67
|
-
* @returns IApprovalSettingValueApi
|
|
68
|
-
*/
|
|
69
|
-
export declare const transferIApprovalSettingValue2IApprovalSettingValueApi: (data: IApprovalSettingValue) => IApprovalSettingValueApi;
|
|
70
|
-
/**
|
|
71
|
-
* 接口转换为ui使用(配置审批策略)
|
|
72
|
-
* @param data IApprovalSettingValueApi
|
|
73
|
-
* @returns IApprovalSettingValue
|
|
74
|
-
*/
|
|
75
|
-
export declare const transferIApprovalSettingValueApi2IApprovalSettingValue: (data: IApprovalSettingValueApi) => IApprovalSettingValue;
|
|
@@ -168,19 +168,3 @@ export const transferIResourceReferenceApi2IResourceReference = (data)=>{
|
|
|
168
168
|
spaceId: data.space_id
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
|
-
/**
|
|
172
|
-
* ui转换为接口使用(配置审批策略)
|
|
173
|
-
* @param data IApprovalSettingValue,
|
|
174
|
-
* @returns IApprovalSettingValueApi
|
|
175
|
-
*/ export const transferIApprovalSettingValue2IApprovalSettingValueApi = (data)=>({
|
|
176
|
-
approval_enabled: data.approvalEnabled,
|
|
177
|
-
approval_strategy_id: data.approvalStrategyId
|
|
178
|
-
});
|
|
179
|
-
/**
|
|
180
|
-
* 接口转换为ui使用(配置审批策略)
|
|
181
|
-
* @param data IApprovalSettingValueApi
|
|
182
|
-
* @returns IApprovalSettingValue
|
|
183
|
-
*/ export const transferIApprovalSettingValueApi2IApprovalSettingValue = (data)=>({
|
|
184
|
-
approvalEnabled: data.approval_enabled,
|
|
185
|
-
approvalStrategyId: data.approval_strategy_id
|
|
186
|
-
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IMcp, IMcpApi, IMcpCountParam, IMcpCountParamApi, IMcpForm, IMcpFormApi, IMcpListParam, IMcpListParamApi, IMcpTool, IMcpToolApi, IMcpToolInputParam, IMcpToolInputParamApi, IMcpToolOutputParam, IMcpToolOutputParamApi, IRegisterMcpParam, IRegisterMcpParamApi } from '@/types/mcp';
|
|
1
|
+
import type { IMcp, IMcpApi, IMcpCountParam, IMcpCountParamApi, IMcpForm, IMcpFormApi, IMcpInstallGuideParam, IMcpInstallGuideParamApi, IMcpInstallTarget, IMcpInstallTargetApi, IMcpListParam, IMcpListParamApi, IMcpTool, IMcpToolApi, IMcpToolInputParam, IMcpToolInputParamApi, IMcpToolOutputParam, IMcpToolOutputParamApi, IRegisterMcpParam, IRegisterMcpParamApi } from '@/types/mcp';
|
|
2
2
|
/**
|
|
3
3
|
* ui转换为接口使用
|
|
4
4
|
* @param data IMcpListParam
|
|
@@ -60,3 +60,5 @@ export declare const transferMcp2McpApi: (data: IMcp) => IMcpApi;
|
|
|
60
60
|
*/
|
|
61
61
|
export declare const transferRegisterMcpParam2RegisterMcpParamApi: (data: IRegisterMcpParam) => IRegisterMcpParamApi;
|
|
62
62
|
export declare const transferMcpCount2McpCountApi: (data: IMcpCountParam) => IMcpCountParamApi;
|
|
63
|
+
export declare const transferMcpInstallGuideParam2McpInstallGuideParamApi: (data: IMcpInstallGuideParam) => IMcpInstallGuideParamApi;
|
|
64
|
+
export declare const transferMcpInstallTargetApi2McpInstallTarget: (data: IMcpInstallTargetApi) => IMcpInstallTarget;
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import { transferBaseCountParam2BaseCountParamApi,
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
54
|
/**
|
|
55
55
|
* ui转换为接口使用
|
|
56
56
|
* @param data IMcpListParam
|
|
@@ -98,14 +98,14 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
98
98
|
* API to UI (MCP Tool)
|
|
99
99
|
*/ export const transferMcpToolApi2McpTool = (mcpTool)=>{
|
|
100
100
|
var _mcpTool_input_params, _mcpTool_output_params;
|
|
101
|
-
return
|
|
101
|
+
return {
|
|
102
102
|
toolName: mcpTool.tool_name,
|
|
103
103
|
toolCode: mcpTool.tool_code,
|
|
104
104
|
toolDescription: mcpTool.tool_description,
|
|
105
105
|
inputParams: ((_mcpTool_input_params = mcpTool.input_params) === null || _mcpTool_input_params === void 0 ? void 0 : _mcpTool_input_params.map(transferMcpToolInputParamApi2McpToolInputParam)) || [],
|
|
106
106
|
outputParams: ((_mcpTool_output_params = mcpTool.output_params) === null || _mcpTool_output_params === void 0 ? void 0 : _mcpTool_output_params.map(transferMcpToolOutputParamApi2McpToolOutputParam)) || [],
|
|
107
107
|
arguments: mcpTool.arguments
|
|
108
|
-
}
|
|
108
|
+
};
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
111
|
* ui转换为接口使用(MCP工具输入参数)
|
|
@@ -134,14 +134,14 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
134
134
|
* UI to API (MCP Tool)
|
|
135
135
|
*/ export const transferMcpTool2McpToolApi = (mcpTool)=>{
|
|
136
136
|
var _mcpTool_inputParams, _mcpTool_outputParams;
|
|
137
|
-
return
|
|
137
|
+
return {
|
|
138
138
|
tool_name: mcpTool.toolName,
|
|
139
139
|
tool_code: mcpTool.toolCode,
|
|
140
140
|
tool_description: mcpTool.toolDescription,
|
|
141
141
|
input_params: ((_mcpTool_inputParams = mcpTool.inputParams) === null || _mcpTool_inputParams === void 0 ? void 0 : _mcpTool_inputParams.map(transferMcpToolInputParam2McpToolInputParamApi)) || [],
|
|
142
142
|
output_params: ((_mcpTool_outputParams = mcpTool.outputParams) === null || _mcpTool_outputParams === void 0 ? void 0 : _mcpTool_outputParams.map(transferMcpToolOutputParam2McpToolOutputParamApi)) || [],
|
|
143
143
|
arguments: mcpTool.arguments
|
|
144
|
-
}
|
|
144
|
+
};
|
|
145
145
|
};
|
|
146
146
|
/**
|
|
147
147
|
* 接口转换为ui使用(表单字段)
|
|
@@ -218,6 +218,16 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
218
218
|
});
|
|
219
219
|
export const transferMcpCount2McpCountApi = (data)=>{
|
|
220
220
|
return _object_spread_props(_object_spread({}, transferBaseCountParam2BaseCountParamApi(data)), {
|
|
221
|
-
with_apigw_mcp: data.withApigwMcp
|
|
221
|
+
with_apigw_mcp: data.withApigwMcp,
|
|
222
|
+
agent_code: data.agentCode
|
|
222
223
|
});
|
|
223
224
|
};
|
|
225
|
+
export const transferMcpInstallGuideParam2McpInstallGuideParamApi = (data)=>({
|
|
226
|
+
target_type: data.targetType,
|
|
227
|
+
mcp_type: data.mcpType,
|
|
228
|
+
mcp_id: data.mcpId
|
|
229
|
+
});
|
|
230
|
+
export const transferMcpInstallTargetApi2McpInstallTarget = (data)=>({
|
|
231
|
+
targetType: data.target_type,
|
|
232
|
+
displayName: data.display_name
|
|
233
|
+
});
|
|
@@ -17,6 +17,7 @@ export const transferModelApi2Model = (data)=>({
|
|
|
17
17
|
like: data.like,
|
|
18
18
|
dislikeCount: data.dislike_count,
|
|
19
19
|
dislike: data.dislike,
|
|
20
|
+
refCount: data.ref_count,
|
|
20
21
|
spaceAuthMode: data.space_auth_mode,
|
|
21
22
|
property: data.property ? {
|
|
22
23
|
onlyUserAssistant: data.property.only_user_assistant,
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import { transferBaseCountParam2BaseCountParamApi,
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
54
|
/**
|
|
55
55
|
* ui转换为接口使用(表单字段)
|
|
56
56
|
* @param data IToolForm
|
|
@@ -93,7 +93,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
93
93
|
* @returns ITool
|
|
94
94
|
*/ export const transferToolApi2Tool = (data)=>_object_spread_props(_object_spread({}, transferToolFormApi2ToolForm(data), transferResourceCommonApi2ResourceCommon(_object_spread_props(_object_spread({}, data), {
|
|
95
95
|
id: data.tool_id
|
|
96
|
-
}))
|
|
96
|
+
}))), {
|
|
97
97
|
id: data.tool_id,
|
|
98
98
|
refCount: data.ref_count
|
|
99
99
|
});
|
|
@@ -101,7 +101,7 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
101
101
|
* ui转换为接口使用(完整资源)
|
|
102
102
|
* @param data ITool
|
|
103
103
|
* @returns IToolApi
|
|
104
|
-
*/ export const transferTool2ToolApi = (data)=>_object_spread_props(_object_spread({}, transferToolForm2ToolFormApi(data), transferResourceCommon2ResourceCommonApi(data)
|
|
104
|
+
*/ export const transferTool2ToolApi = (data)=>_object_spread_props(_object_spread({}, transferToolForm2ToolFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
105
105
|
tool_id: data.id
|
|
106
106
|
});
|
|
107
107
|
/**
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -174,7 +174,6 @@ export interface IAgentFormApi extends IResourceFormCommonApi {
|
|
|
174
174
|
agents: IAgentApi[];
|
|
175
175
|
};
|
|
176
176
|
business_ids?: number[];
|
|
177
|
-
approval_settings?: IApprovalSettingApi[];
|
|
178
177
|
}
|
|
179
178
|
export interface IAgentForm extends IResourceFormCommon {
|
|
180
179
|
agentCode: string;
|
|
@@ -232,7 +231,6 @@ export interface IAgentForm extends IResourceFormCommon {
|
|
|
232
231
|
agents: IAgent[];
|
|
233
232
|
};
|
|
234
233
|
businessIds?: number[];
|
|
235
|
-
approvalSettings?: IApprovalSetting[];
|
|
236
234
|
}
|
|
237
235
|
export interface IAgent extends IAgentForm, IResourceCommon {
|
|
238
236
|
version: string;
|
|
@@ -356,15 +354,3 @@ export interface IAgentCountParamApi extends IBaseCountParamApi {
|
|
|
356
354
|
agent_type?: AgentType;
|
|
357
355
|
is_published?: boolean;
|
|
358
356
|
}
|
|
359
|
-
export interface IApprovalSetting {
|
|
360
|
-
strategyId: string;
|
|
361
|
-
approvalName: string;
|
|
362
|
-
approvers: string[];
|
|
363
|
-
isDefault: boolean;
|
|
364
|
-
}
|
|
365
|
-
export interface IApprovalSettingApi {
|
|
366
|
-
strategy_id: string;
|
|
367
|
-
approval_name: string;
|
|
368
|
-
approvers: string[];
|
|
369
|
-
is_default: boolean;
|
|
370
|
-
}
|
package/dist/types/common.d.ts
CHANGED
|
@@ -226,11 +226,3 @@ export interface IResourceReferenceApi {
|
|
|
226
226
|
mcp_id: number;
|
|
227
227
|
mcp_name: string;
|
|
228
228
|
}
|
|
229
|
-
export interface IApprovalSettingValue {
|
|
230
|
-
approvalEnabled?: boolean;
|
|
231
|
-
approvalStrategyId?: string;
|
|
232
|
-
}
|
|
233
|
-
export interface IApprovalSettingValueApi {
|
|
234
|
-
approval_enabled?: boolean;
|
|
235
|
-
approval_strategy_id?: string;
|
|
236
|
-
}
|