@blueking/ai-ui-sdk 0.3.0-beta.23 → 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.
Files changed (122) hide show
  1. package/dist/components/render-agent/agent-type.vue.css +3 -3
  2. package/dist/components/render-agent/agent-type.vue.js +1 -1
  3. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  4. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  5. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  6. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  7. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  8. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  9. package/dist/components/render-card/base.vue.css +12 -12
  10. package/dist/components/render-card/base.vue.js +1 -1
  11. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  12. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  13. package/dist/components/render-card/llm/icons.script.vue.js.js +22 -2
  14. package/dist/components/render-card/llm/icons.vue.css +2 -2
  15. package/dist/components/render-card/llm/icons.vue.js +1 -1
  16. package/dist/components/render-card/llm/info.vue.css +1 -1
  17. package/dist/components/render-card/llm/info.vue.js +1 -1
  18. package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
  19. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  20. package/dist/components/render-card/mcp/actions.script.vue.js.js +6 -2
  21. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  22. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  23. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  24. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  25. package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
  26. package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
  27. package/dist/components/render-checkbox/index.vue.css +9 -9
  28. package/dist/components/render-checkbox/index.vue.js +1 -1
  29. package/dist/components/render-choose-tag/index.vue.css +7 -7
  30. package/dist/components/render-choose-tag/index.vue.js +1 -1
  31. package/dist/components/render-collapse/index.vue.css +2 -2
  32. package/dist/components/render-collapse/index.vue.js +1 -1
  33. package/dist/components/render-collection/content/index.vue.css +4 -4
  34. package/dist/components/render-collection/content/index.vue.js +1 -1
  35. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  36. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  37. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
  38. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
  39. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  40. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
  41. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
  42. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  43. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  44. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  45. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  46. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  47. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  48. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  49. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  50. package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +1 -1
  51. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -5
  52. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  53. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  54. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  55. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  56. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  57. package/dist/components/render-dataset/components/plus-dataset-data/form/index.script.vue.js.js +1 -1
  58. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -4
  59. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  60. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  61. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  62. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  63. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  64. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  65. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  66. package/dist/components/render-dataset-list/index.vue.css +2 -2
  67. package/dist/components/render-dataset-list/index.vue.js +1 -1
  68. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  69. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  70. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  71. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  72. package/dist/components/render-dialog/choose-space.script.vue.js.js +2 -1
  73. package/dist/components/render-dialog/choose-space.vue.css +9 -9
  74. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  75. package/dist/components/render-dialog/index.vue.css +6 -6
  76. package/dist/components/render-dialog/index.vue.js +1 -1
  77. package/dist/components/render-file-card/index.vue.css +11 -11
  78. package/dist/components/render-file-card/index.vue.js +1 -1
  79. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  80. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  81. package/dist/components/render-generate-tag/index.vue.css +5 -5
  82. package/dist/components/render-generate-tag/index.vue.js +1 -1
  83. package/dist/components/render-header/index.vue.css +3 -3
  84. package/dist/components/render-header/index.vue.js +1 -1
  85. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  86. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  87. package/dist/components/render-like/index.vue.css +5 -5
  88. package/dist/components/render-like/index.vue.js +1 -1
  89. package/dist/components/render-markdown/filter-css.ts.js +7 -2
  90. package/dist/components/render-mcp/install/index.script.vue.js.js +65 -36
  91. package/dist/components/render-mcp/install/index.vue.d.ts +4 -2
  92. package/dist/components/render-mcp/install/install-guide.script.vue.js.js +60 -0
  93. package/dist/components/render-mcp/install/install-guide.vue.d.ts +11 -0
  94. package/dist/components/render-mcp/install/install-guide.vue.js +3 -0
  95. package/dist/components/render-prompt/content/index.vue.css +1 -1
  96. package/dist/components/render-prompt/content/index.vue.js +1 -1
  97. package/dist/components/render-reference/index.vue.css +2 -2
  98. package/dist/components/render-reference/index.vue.js +1 -1
  99. package/dist/components/render-resource-version/index.vue.css +2 -2
  100. package/dist/components/render-resource-version/index.vue.js +1 -1
  101. package/dist/components/render-router-tab/index.vue.css +3 -3
  102. package/dist/components/render-router-tab/index.vue.js +1 -1
  103. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  104. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  105. package/dist/components/render-t-table/index.vue.css +27 -27
  106. package/dist/components/render-t-table/index.vue.js +1 -1
  107. package/dist/components/render-tag-tree/index.vue.css +7 -7
  108. package/dist/components/render-tag-tree/index.vue.js +1 -1
  109. package/dist/components/render-tags/index.vue.css +6 -6
  110. package/dist/components/render-tags/index.vue.js +1 -1
  111. package/dist/css/g-utilities.css +13 -0
  112. package/dist/css/g-utilities.manifest.json +3 -0
  113. package/dist/hooks/use-mcp-http.d.ts +5 -1
  114. package/dist/hooks/use-mcp-http.ts.js +16 -2
  115. package/dist/http/helper/mcp.d.ts +3 -1
  116. package/dist/http/helper/mcp.ts.js +11 -1
  117. package/dist/http/helper/model.ts.js +1 -0
  118. package/dist/types/enum.d.ts +4 -0
  119. package/dist/types/enum.ts.js +5 -0
  120. package/dist/types/mcp.d.ts +21 -1
  121. package/dist/types/model.d.ts +2 -0
  122. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
 
2
- .t-t-pagination[data-v-wsspcyvu] {
2
+ .t-t-pagination[data-v-bht6jsk2] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-wsspcyvu] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-bht6jsk2] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-wsspcyvu]::after {
9
+ .pagination-loading[data-v-bht6jsk2]::after {
10
10
  content: '';
11
11
  position: absolute;
12
12
  top: 0;
@@ -16,93 +16,93 @@
16
16
  background-color: rgba(255, 255, 255, 0.6);
17
17
  z-index: 72;
18
18
  }
19
- .pagination-border[data-v-wsspcyvu] {
19
+ .pagination-border[data-v-bht6jsk2] {
20
20
  border-right: 1px solid #dcdee5;
21
21
  border-left: 1px solid #dcdee5;
22
22
  border-bottom: 1px solid #dcdee5;
23
23
  padding-bottom: 16px;
24
24
  }
25
- .t-t-table[data-v-wsspcyvu] {
25
+ .t-t-table[data-v-bht6jsk2] {
26
26
  display: inline;
27
27
  font-size: 12px;
28
28
  }
29
- .t-t-table[data-v-wsspcyvu] .t-table__th-cell-inner {
29
+ .t-t-table[data-v-bht6jsk2] .t-table__th-cell-inner {
30
30
  color: #313238;
31
31
  }
32
- .t-t-table[data-v-wsspcyvu] th {
32
+ .t-t-table[data-v-bht6jsk2] th {
33
33
  padding: 0 16px;
34
34
  height: 42px;
35
35
  background-color: #FAFBFD !important;
36
36
  }
37
- .t-t-table[data-v-wsspcyvu] .t-table__body tr {
37
+ .t-t-table[data-v-bht6jsk2] .t-table__body tr {
38
38
  color: #63656e;
39
39
  font-size: 12px;
40
40
  }
41
- .t-t-table[data-v-wsspcyvu] .t-table__body tr td {
41
+ .t-t-table[data-v-bht6jsk2] .t-table__body tr td {
42
42
  padding: 0 16px;
43
43
  height: 40px;
44
44
  background-color: #fff;
45
45
  }
46
- .t-t-table[data-v-wsspcyvu] .t-table__body tr:hover td {
46
+ .t-t-table[data-v-bht6jsk2] .t-table__body tr:hover td {
47
47
  background-color: #f5f7fa !important;
48
48
  color: #63656E;
49
49
  }
50
- .t-t-table[data-v-wsspcyvu] .t-table__content .t-table__body .t-table__empty-row {
50
+ .t-t-table[data-v-bht6jsk2] .t-table__content .t-table__body .t-table__empty-row {
51
51
  background-color: #fff !important;
52
52
  }
53
- .t-t-table[data-v-wsspcyvu] .t-table__content .t-table__body .t-table__empty-row >td {
53
+ .t-t-table[data-v-bht6jsk2] .t-table__content .t-table__body .t-table__empty-row >td {
54
54
  border: none;
55
55
  }
56
- .t-t-table[data-v-wsspcyvu] th .t-table__ellipsis {
56
+ .t-t-table[data-v-bht6jsk2] th .t-table__ellipsis {
57
57
  width: auto !important;
58
58
  }
59
- .t-t-table[data-v-wsspcyvu] .t-loading__gradient.t-icon-loading {
59
+ .t-t-table[data-v-bht6jsk2] .t-loading__gradient.t-icon-loading {
60
60
  display: none;
61
61
  }
62
- .t-t-table[data-v-wsspcyvu]:first-of-type .t-table__affixed-header-elm-wrap{
62
+ .t-t-table[data-v-bht6jsk2]:first-of-type .t-table__affixed-header-elm-wrap{
63
63
  width: calc(100% - 6px) !important;
64
64
  }
65
- .t-t-table[data-v-wsspcyvu] .t-table__affixed-header-elm-wrap>div {
65
+ .t-t-table[data-v-bht6jsk2] .t-table__affixed-header-elm-wrap>div {
66
66
  width: 100% !important;
67
67
  scrollbar-width: none;
68
68
  }
69
- .t-t-table[data-v-wsspcyvu] .t-table--layout-fixed{
69
+ .t-t-table[data-v-bht6jsk2] .t-table--layout-fixed{
70
70
  width: 100% !important;
71
71
  }
72
- .t-t-table[data-v-wsspcyvu] .bk-exception-description{
72
+ .t-t-table[data-v-bht6jsk2] .bk-exception-description{
73
73
  margin-bottom: 0;
74
74
  }
75
- .t-t-table[data-v-wsspcyvu] .t-table__content{
75
+ .t-t-table[data-v-bht6jsk2] .t-table__content{
76
76
  z-index: 2;
77
77
  max-height: 100%;
78
78
  overflow: auto;
79
79
  }
80
- .t-t-table[data-v-wsspcyvu] .t-table__content::-webkit-scrollbar {
80
+ .t-t-table[data-v-bht6jsk2] .t-table__content::-webkit-scrollbar {
81
81
  width: 6px;
82
82
  height: 6px;
83
83
  }
84
- .t-t-table[data-v-wsspcyvu] .t-table__content::-webkit-scrollbar-thumb {
84
+ .t-t-table[data-v-bht6jsk2] .t-table__content::-webkit-scrollbar-thumb {
85
85
  width: 6px;
86
86
  height: 6px;
87
87
  border-radius: 3px;
88
88
  background-color: #dcdee5;
89
89
  }
90
- .t-t-table[data-v-wsspcyvu] .t-table__content::-webkit-scrollbar-thumb:hover {
90
+ .t-t-table[data-v-bht6jsk2] .t-table__content::-webkit-scrollbar-thumb:hover {
91
91
  background-color: #979ba5;
92
92
  }
93
- .t-t-table[data-v-wsspcyvu] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
93
+ .t-t-table[data-v-bht6jsk2] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
94
94
  line-height: 100%;
95
95
  }
96
- .t-t-table[data-v-wsspcyvu] .t-table__cell--sort-trigger.t-table__double-icons{
96
+ .t-t-table[data-v-bht6jsk2] .t-table__cell--sort-trigger.t-table__double-icons{
97
97
  gap: 5px;
98
98
  }
99
- .t-t-table[data-v-wsspcyvu] .t-table__sort-icon--active>i{
99
+ .t-t-table[data-v-bht6jsk2] .t-table__sort-icon--active>i{
100
100
  color: #3a84ff !important;
101
101
  }
102
- .t-t-table[data-v-wsspcyvu] .t-table__cell--fixed-left:has(.checkbox){
102
+ .t-t-table[data-v-bht6jsk2] .t-table__cell--fixed-left:has(.checkbox){
103
103
  line-height: 100%;
104
104
  }
105
- .t-t-table[data-v-wsspcyvu] .t-table__filter-icon.t-is-focus>span{
105
+ .t-t-table[data-v-bht6jsk2] .t-table__filter-icon.t-is-focus>span{
106
106
  color: #3a84ff !important;
107
107
  }
108
108
 
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-wsspcyvu";
2
+ script.__scopeId = "data-v-bht6jsk2";
3
3
  script.__file = "./src/components/render-t-table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,28 +1,28 @@
1
1
 
2
- .tag-tree[data-v-88cmcen2] {
2
+ .tag-tree[data-v-ns410zdh] {
3
3
  font-size: 12px;
4
4
  height: auto;
5
5
  max-height: calc(100% - 44px);
6
6
  }
7
- .tag-tree .manage-tree-item[data-v-88cmcen2] {
7
+ .tag-tree .manage-tree-item[data-v-ns410zdh] {
8
8
  height: 32px;
9
9
  flex: 1;
10
10
  }
11
- .tag-tree .quick-icon[data-v-88cmcen2] {
11
+ .tag-tree .quick-icon[data-v-ns410zdh] {
12
12
  margin-left: -24px;
13
13
  padding-left: 8px;
14
14
  }
15
- .tag-tree[data-v-88cmcen2] .tree-item:has(.bottom-line) {
15
+ .tag-tree[data-v-ns410zdh] .tree-item:has(.bottom-line) {
16
16
  border-bottom: 1px solid #F0F1F5;
17
17
  }
18
- .tag-tree[data-v-88cmcen2] .tree-item.active .quick-icon {
18
+ .tag-tree[data-v-ns410zdh] .tree-item.active .quick-icon {
19
19
  color: #3A84FF;
20
20
  }
21
- .tag-tree[data-v-88cmcen2] .tree-item.active .tag-number {
21
+ .tag-tree[data-v-ns410zdh] .tree-item.active .tag-number {
22
22
  background: #A3C5FD;
23
23
  color: #fff;
24
24
  }
25
- .tag-number[data-v-88cmcen2] {
25
+ .tag-number[data-v-ns410zdh] {
26
26
  line-height: 16px;
27
27
  padding: 0 4px;
28
28
  background-color: #F0F1F5;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-88cmcen2";
2
+ script.__scopeId = "data-v-ns410zdh";
3
3
  script.__file = "./src/components/render-tag-tree/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,24 +1,24 @@
1
1
 
2
- .tag-container[data-v-t6kr3t0l] {
2
+ .tag-container[data-v-ylo8hb3r] {
3
3
  visibility: hidden;
4
4
  white-space: nowrap;
5
5
  column-gap: 4px;
6
6
  width: calc(100% - 20px);
7
7
  }
8
- .tag-home[data-v-t6kr3t0l] {
8
+ .tag-home[data-v-ylo8hb3r] {
9
9
  vertical-align: sub;
10
10
  flex-shrink: 0;
11
11
  }
12
- [is-show="true"][data-v-t6kr3t0l] {
12
+ [is-show="true"][data-v-ylo8hb3r] {
13
13
  visibility: visible;
14
14
  }
15
- [is-show="false"][data-v-t6kr3t0l] {
15
+ [is-show="false"][data-v-ylo8hb3r] {
16
16
  display: none !important;
17
17
  }
18
- .popover-main[data-v-t6kr3t0l] {
18
+ .popover-main[data-v-ylo8hb3r] {
19
19
  padding: 8px 8px 10px;
20
20
  }
21
- .tag-list[data-v-t6kr3t0l] {
21
+ .tag-list[data-v-ylo8hb3r] {
22
22
  border-radius: 2px;
23
23
  background: #F0F1F5;
24
24
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-t6kr3t0l";
2
+ script.__scopeId = "data-v-ylo8hb3r";
3
3
  script.__file = "./src/components/render-tags/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -367,6 +367,10 @@
367
367
  height: 70px;
368
368
  }
369
369
 
370
+ .g-h-full {
371
+ height: 100%;
372
+ }
373
+
370
374
  .g-hidden {
371
375
  display: none;
372
376
  }
@@ -719,6 +723,15 @@ padding: 0px !important;
719
723
  padding-top: 14px;
720
724
  }
721
725
 
726
+ .g-pt-16 {
727
+ padding-top: 16px;
728
+ }
729
+
730
+ .g-px-24 {
731
+ padding-left: 24px;
732
+ padding-right: 24px;
733
+ }
734
+
722
735
  .g-radio-group {
723
736
  width: 100%;
724
737
 
@@ -62,6 +62,7 @@
62
62
  "g-h-16",
63
63
  "g-h-56",
64
64
  "g-h-70",
65
+ "g-h-full",
65
66
  "g-hidden",
66
67
  "g-inline",
67
68
  "g-inline-flex-row",
@@ -135,6 +136,8 @@
135
136
  "g-pr-8",
136
137
  "g-pt-12",
137
138
  "g-pt-14",
139
+ "g-pt-16",
140
+ "g-px-24",
138
141
  "g-radio-group",
139
142
  "g-relative",
140
143
  "g-resource-description",
@@ -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 { 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;
@@ -218,6 +218,16 @@ import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPag
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,
@@ -105,6 +105,10 @@ export declare enum SkillInstallTaskStatus {
105
105
  Failed = "failed",
106
106
  Cancelled = "cancelled"
107
107
  }
108
+ export declare enum McpInstallTargetType {
109
+ Cursor = "cursor",
110
+ Openclaw = "openclaw"
111
+ }
108
112
  export declare enum KnowledgePathType {
109
113
  File = "file",
110
114
  Folder = "folder"
@@ -117,6 +117,11 @@ export var SkillInstallTaskStatus;
117
117
  SkillInstallTaskStatus["Failed"] = "failed";
118
118
  SkillInstallTaskStatus["Cancelled"] = "cancelled";
119
119
  })(SkillInstallTaskStatus || (SkillInstallTaskStatus = {}));
120
+ export var McpInstallTargetType;
121
+ (function(McpInstallTargetType) {
122
+ McpInstallTargetType["Cursor"] = "cursor";
123
+ McpInstallTargetType["Openclaw"] = "openclaw";
124
+ })(McpInstallTargetType || (McpInstallTargetType = {}));
120
125
  export var KnowledgePathType;
121
126
  (function(KnowledgePathType) {
122
127
  KnowledgePathType["File"] = "file";
@@ -1,5 +1,5 @@
1
1
  import type { IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi } from './common';
2
- import { EnumCharacter, McpType, Module, ToolCrdentialType } from './enum';
2
+ import { EnumCharacter, McpInstallTargetType, McpType, Module, ToolCrdentialType } from './enum';
3
3
  export interface IMcpListParamApi extends IPaginationParamApi, IResourceCommonSearchParamsApi, ISortParamApi {
4
4
  created_by?: string;
5
5
  updated_by?: string;
@@ -148,7 +148,27 @@ export interface IApplicationMcpApi extends IMcpApi {
148
148
  }
149
149
  export interface IMcpCountParam extends IBaseCountParam {
150
150
  withApigwMcp: boolean;
151
+ agentCode?: string;
151
152
  }
152
153
  export interface IMcpCountParamApi extends IBaseCountParamApi {
153
154
  with_apigw_mcp: boolean;
155
+ agent_code?: string;
156
+ }
157
+ export interface IMcpInstallGuideParamApi {
158
+ target_type: string;
159
+ mcp_type: McpType;
160
+ mcp_id: number;
161
+ }
162
+ export interface IMcpInstallGuideParam {
163
+ targetType: string;
164
+ mcpType: McpType;
165
+ mcpId: number;
166
+ }
167
+ export interface IMcpInstallTargetApi {
168
+ target_type: McpInstallTargetType;
169
+ display_name: string;
170
+ }
171
+ export interface IMcpInstallTarget {
172
+ targetType: McpInstallTargetType;
173
+ displayName: string;
154
174
  }
@@ -18,6 +18,7 @@ export interface IModel {
18
18
  like?: boolean;
19
19
  dislikeCount?: number;
20
20
  dislike?: boolean;
21
+ refCount?: number;
21
22
  spaceAuthMode?: ModelSpaceAuthMode;
22
23
  property?: {
23
24
  onlyUserAssistant?: boolean;
@@ -76,6 +77,7 @@ export interface IModelApi {
76
77
  like?: boolean;
77
78
  dislike_count?: number;
78
79
  dislike?: boolean;
80
+ ref_count?: number;
79
81
  space_auth_mode?: ModelSpaceAuthMode;
80
82
  property?: {
81
83
  only_user_assistant?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.3.0-beta.23",
3
+ "version": "0.3.0-beta.25",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -103,7 +103,7 @@
103
103
  "vue-router": "^4.2.4"
104
104
  },
105
105
  "devDependencies": {
106
- "@blueking/aidev-g-utilities": "0.1.0-beta.7",
106
+ "@blueking/aidev-g-utilities": "0.1.0-beta.9",
107
107
  "@blueking/babel-preset-bk": "2.1.0",
108
108
  "@blueking/cli-service": "0.1.0-beta.31",
109
109
  "@blueking/eslint-config-bk": "2.1.0",