@blueking/ai-ui-sdk 0.5.1-beta.1 → 0.5.1-beta.2
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-search.script.vue.js.js +3 -3
- package/dist/components/render-agent/agent-type.vue.css +4 -4
- 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/index.vue.d.ts +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/agent/upgrade.vue.css +2 -2
- package/dist/components/render-card/agent/upgrade.vue.js +1 -1
- package/dist/components/render-card/base.script.vue.js +130 -152
- 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/knowledge/index.vue.d.ts +1 -1
- package/dist/components/render-card/knowledgebase/index.vue.d.ts +1 -1
- package/dist/components/render-card/llm/corner-badge.script.vue.js +27 -33
- 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.vue.css +2 -2
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/index.vue.d.ts +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 +2 -2
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/code-suffix.script.vue.js +34 -42
- package/dist/components/render-card/mcp/index.vue.d.ts +1 -1
- package/dist/components/render-card/mcp/name-suffix.script.vue.js +15 -23
- 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/mcp/selected-tools-info.vue.d.ts +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/prompt/index.vue.d.ts +1 -1
- package/dist/components/render-card/role/index.vue.d.ts +1 -1
- package/dist/components/render-card/skill/prefix-info-tool.script.vue.js +41 -84
- package/dist/components/render-card/skill/scanner.vue.css +3 -3
- package/dist/components/render-card/skill/scanner.vue.js +1 -1
- package/dist/components/render-card/tool/index.vue.d.ts +1 -1
- 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.script.vue.js.js +1 -3
- 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.script.vue.js +39 -43
- 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.script.vue.js +27 -37
- 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/dataset-data-level/index.script.vue.js +18 -22
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +22 -26
- 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.script.vue.js +65 -102
- 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/dataset-form.script.vue.js +119 -184
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
- 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.vue.css +1 -1
- 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/components/search-dataset/index.script.vue.js.js +2 -1
- package/dist/components/render-dataset/components/search-dataset/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +205 -356
- 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.script.vue.js.js +5 -2
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +1 -0
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js +163 -269
- package/dist/components/render-dataset-list/index.script.vue.js.js +7 -2
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.d.ts +1 -0
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-resource.script.vue.js +269 -390
- 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.script.vue.js +149 -210
- 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.vue.css +9 -9
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.script.vue.js +113 -172
- 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.d.ts +1 -1
- 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-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-permission-tag/index.script.vue.js +57 -70
- 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.script.vue.js +204 -255
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-relate-agent/index.script.vue.js +343 -640
- package/dist/components/render-resource-info/index.script.vue.js +43 -47
- 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-search-empty/index.vue.d.ts +1 -1
- package/dist/components/render-search-select/index.script.vue.js.js +1 -1
- package/dist/components/render-search-select/index.vue.d.ts +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-skill/variable-form/index.script.vue.js +47 -74
- package/dist/components/render-t-table/index.script.vue.js +143 -231
- package/dist/components/render-t-table/index.vue.css +32 -32
- package/dist/components/render-t-table/index.vue.d.ts +1 -1
- 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.script.vue.js +64 -89
- package/dist/components/render-tags/index.vue.css +6 -6
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/components/render-tree/index.script.vue.js +60 -115
- package/dist/components/render-tree/index.vue.d.ts +1 -1
- package/dist/hooks/use-display-name.ts.js +2 -0
- package/dist/hooks/use-member-http.d.ts +2 -1
- package/dist/hooks/use-member-http.ts.js +7 -5
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.ts.js +1 -1
- package/dist/http/fetch/success-interceptor.ts.js +5 -2
- package/dist/http/helper/agent.ts.js +2 -1
- package/dist/types/agent.d.ts +2 -0
- package/package.json +3 -3
|
@@ -1,54 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _toConsumableArray2 = _interopRequireDefault(require('../../../../node_modules/@babel/runtime/helpers/toConsumableArray.js'));
|
|
8
|
-
var _vue = require("vue");
|
|
9
|
-
var _enums = require('../../../enums.ts.js');
|
|
10
|
-
var _hoisted_1 = {
|
|
1
|
+
import { defineComponent as _defineComponent, Fragment as _Fragment, createTextVNode as _createTextVNode, createVNode as _createVNode, resolveComponent as _resolveComponent } from 'vue';
|
|
2
|
+
import { unref as _unref, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createCommentVNode as _createCommentVNode } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
11
4
|
key: 0,
|
|
12
5
|
class: "llm-corner-badge g-absolute !g-cursor-pointer"
|
|
13
6
|
};
|
|
14
|
-
|
|
7
|
+
import { ModelSpaceAuthMode } from '../../../enums.ts.js';
|
|
8
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
15
9
|
props: {
|
|
16
10
|
model: {},
|
|
17
11
|
selfHostUrl: {},
|
|
18
12
|
externalUrl: {}
|
|
19
13
|
},
|
|
20
|
-
setup
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
(
|
|
25
|
-
(
|
|
14
|
+
setup (__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const getTooltipContent = ()=>{
|
|
17
|
+
return _createVNode(_Fragment, null, [
|
|
18
|
+
_createVNode("span", null, [
|
|
19
|
+
_createTextVNode("\u5F53\u524D\u6A21\u578B\u5982\u9700\u4F7F\u7528\u9700\u8981\u7533\u8BF7\u6743\u9650")
|
|
26
20
|
]),
|
|
27
|
-
(
|
|
28
|
-
(
|
|
21
|
+
_createVNode("p", null, null),
|
|
22
|
+
_createVNode(_resolveComponent("bk-link"), {
|
|
29
23
|
"class": "!g-text-12",
|
|
30
24
|
"theme": "primary",
|
|
31
25
|
"target": "_blank",
|
|
32
26
|
"href": props.model.property.isSelfHost ? props.selfHostUrl : props.externalUrl
|
|
33
27
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
36
|
-
(0, _vue.createVNode)("i", {
|
|
28
|
+
default: ()=>[
|
|
29
|
+
_createVNode("i", {
|
|
37
30
|
"class": "ai-ui-sdk-icon ai-ui-sdk-jump-link-line g-mr-4"
|
|
38
31
|
}, null),
|
|
39
|
-
(
|
|
40
|
-
]
|
|
41
|
-
}
|
|
32
|
+
_createTextVNode("\u53BB\u7533\u8BF7")
|
|
33
|
+
]
|
|
42
34
|
})
|
|
43
35
|
]);
|
|
44
36
|
};
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
return props.model.spaceAuthMode === (
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
return (_ctx, _cache)=>{
|
|
38
|
+
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
39
|
+
return props.model.spaceAuthMode === _unref(ModelSpaceAuthMode).Apply ? _withDirectives((_openBlock(), _createElementBlock("section", _hoisted_1, [
|
|
40
|
+
..._cache[0] || (_cache[0] = [
|
|
41
|
+
_createElementVNode("span", {
|
|
42
|
+
class: "llm-corner-badge-text g-absolute g-text-10 !g-text-white"
|
|
43
|
+
}, "需申请", -1 /* CACHED */ )
|
|
44
|
+
])
|
|
45
|
+
])), [
|
|
52
46
|
[
|
|
53
47
|
_directive_bk_tooltips,
|
|
54
48
|
{
|
|
@@ -56,7 +50,7 @@ var _default2 = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
56
50
|
placement: 'top'
|
|
57
51
|
}
|
|
58
52
|
]
|
|
59
|
-
]) : (
|
|
53
|
+
]) : _createCommentVNode("v-if", true);
|
|
60
54
|
};
|
|
61
55
|
}
|
|
62
56
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.llm-corner-badge[data-v-
|
|
2
|
+
.llm-corner-badge[data-v-ta46jaut] {
|
|
3
3
|
top: 0;
|
|
4
4
|
right: 0;
|
|
5
5
|
width: 48px;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
clip-path: polygon(100% 0, 0 0, 100% 100%);
|
|
9
9
|
border-radius: 0 8px;
|
|
10
10
|
}
|
|
11
|
-
.llm-corner-badge[data-v-
|
|
11
|
+
.llm-corner-badge[data-v-ta46jaut]:hover {
|
|
12
12
|
background: linear-gradient(142.7deg, #fdf4e8 0%, #e5a239 100%);
|
|
13
13
|
}
|
|
14
|
-
.llm-corner-badge-text[data-v-
|
|
14
|
+
.llm-corner-badge-text[data-v-ta46jaut] {
|
|
15
15
|
top: 8px;
|
|
16
16
|
right: 0;
|
|
17
17
|
transform: rotate(45deg);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
.like-button:hover .ai-ui-sdk-icon[data-v-
|
|
2
|
+
.like-button:hover .ai-ui-sdk-icon[data-v-skge6x96], .like-button:hover span[data-v-skge6x96] {
|
|
3
3
|
color: #3A84FF !important;
|
|
4
4
|
}
|
|
5
|
-
.dislike-button:hover .ai-ui-sdk-icon[data-v-
|
|
5
|
+
.dislike-button:hover .ai-ui-sdk-icon[data-v-skge6x96], .dislike-button:hover span[data-v-skge6x96], .dislike-button:active .ai-ui-sdk-icon[data-v-skge6x96], .dislike-button:active span[data-v-skge6x96] {
|
|
6
6
|
color: #EA3636 !important;
|
|
7
7
|
}
|
|
@@ -40,7 +40,7 @@ declare const __VLS_export: <T extends IModel>(__VLS_props: NonNullable<Awaited<
|
|
|
40
40
|
(event: "navigate", value: ISdkNavigateAction): void;
|
|
41
41
|
};
|
|
42
42
|
}>) => import("vue").VNode & {
|
|
43
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
43
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
44
44
|
};
|
|
45
45
|
declare const _default: typeof __VLS_export;
|
|
46
46
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-external[data-v-
|
|
2
|
+
.tag-external[data-v-mme70537] {
|
|
3
3
|
color: #636a2f;
|
|
4
4
|
background: #EAEFC6;
|
|
5
5
|
}
|
|
6
|
-
.tag-public[data-v-
|
|
6
|
+
.tag-public[data-v-mme70537], .tag-private[data-v-mme70537] {
|
|
7
7
|
color: #3a84ff;
|
|
8
8
|
background: #e1ecff;
|
|
9
9
|
}
|
|
@@ -1,85 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
});
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _vue = require("vue");
|
|
7
|
-
require('../../../../node_modules/core-js/modules/es.array.map.js');
|
|
8
|
-
require('../../../../node_modules/core-js/modules/es.object.to-string.js');
|
|
9
|
-
var _util = require('../../../common/util.ts.js');
|
|
10
|
-
var _enum = require('../../../types/enum.ts.js');
|
|
11
|
-
var _hoisted_1 = {
|
|
1
|
+
import { defineComponent as _defineComponent, createTextVNode as _createTextVNode2, createVNode as _createVNode2 } from 'vue';
|
|
2
|
+
import { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementVNode as _createElementVNode, Fragment as _Fragment } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
12
4
|
key: 0,
|
|
13
5
|
class: "g-max-truncate"
|
|
14
6
|
};
|
|
15
|
-
|
|
7
|
+
const _hoisted_2 = {
|
|
16
8
|
key: 1,
|
|
17
9
|
class: "g-max-truncate"
|
|
18
10
|
};
|
|
19
|
-
|
|
11
|
+
const _hoisted_3 = {
|
|
20
12
|
key: 2,
|
|
21
13
|
class: "g-max-truncate"
|
|
22
14
|
};
|
|
23
|
-
|
|
15
|
+
const _hoisted_4 = {
|
|
24
16
|
class: "g-max-truncate"
|
|
25
17
|
};
|
|
26
|
-
|
|
18
|
+
const _hoisted_5 = {
|
|
27
19
|
class: "g-text-blue g-number-font"
|
|
28
20
|
};
|
|
29
|
-
|
|
21
|
+
const _hoisted_6 = {
|
|
30
22
|
key: 3,
|
|
31
23
|
class: "g-max-truncate"
|
|
32
24
|
};
|
|
33
|
-
|
|
25
|
+
import { getCurrentSpaceName, timeFormatter } from '../../../common/util.ts.js';
|
|
26
|
+
import { McpType, ResourceCardType } from '../../../types/enum.ts.js';
|
|
27
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
34
28
|
props: {
|
|
35
29
|
mcp: {},
|
|
36
30
|
type: {},
|
|
37
31
|
spaces: {},
|
|
38
32
|
spaceId: {}
|
|
39
33
|
},
|
|
40
|
-
setup
|
|
34
|
+
setup (__props) {
|
|
41
35
|
var _a;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
(_a = props.mcp.mcpTools) === null || _a === void 0 ? void 0 : _a.map(
|
|
45
|
-
return (0, _vue.createVNode)("li", {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const tooltipContent = _createVNode2("ul", null, [
|
|
38
|
+
(_a = props.mcp.mcpTools) === null || _a === void 0 ? void 0 : _a.map((tool)=>_createVNode2("li", {
|
|
46
39
|
"key": tool.toolName,
|
|
47
40
|
"class": "g-leading-20"
|
|
48
41
|
}, [
|
|
49
42
|
tool.toolName,
|
|
50
|
-
(
|
|
51
|
-
tool.toolCode ?
|
|
52
|
-
])
|
|
53
|
-
})
|
|
43
|
+
_createTextVNode2(" "),
|
|
44
|
+
tool.toolCode ? `( ${tool.toolCode} )` : ''
|
|
45
|
+
]))
|
|
54
46
|
]);
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return (
|
|
59
|
-
__props.mcp.mcpType === (
|
|
60
|
-
_cache[0] || (_cache[0] = (
|
|
61
|
-
(
|
|
47
|
+
return (_ctx, _cache)=>{
|
|
48
|
+
const _component_bk_user_display_name = _resolveComponent("bk-user-display-name");
|
|
49
|
+
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
50
|
+
return _openBlock(), _createElementBlock(_Fragment, null, [
|
|
51
|
+
__props.mcp.mcpType === _unref(McpType).Resource && __props.type === _unref(ResourceCardType).Full ? (_openBlock(), _createElementBlock("span", _hoisted_1, [
|
|
52
|
+
_cache[0] || (_cache[0] = _createTextVNode(" 更新人:", -1 /* CACHED */ )),
|
|
53
|
+
_createVNode(_component_bk_user_display_name, {
|
|
62
54
|
"user-id": __props.mcp.updatedBy
|
|
63
55
|
}, null, 8 /* PROPS */ , [
|
|
64
56
|
"user-id"
|
|
65
57
|
])
|
|
66
|
-
])) : (
|
|
67
|
-
__props.mcp.mcpType === (
|
|
68
|
-
__props.mcp.mcpType === (
|
|
69
|
-
(
|
|
70
|
-
_cache[1] || (_cache[1] = (
|
|
71
|
-
(
|
|
72
|
-
(
|
|
58
|
+
])) : _createCommentVNode("v-if", true),
|
|
59
|
+
__props.mcp.mcpType === _unref(McpType).Resource && __props.type === _unref(ResourceCardType).Full ? (_openBlock(), _createElementBlock("span", _hoisted_2, " 更新时间:" + _toDisplayString(_unref(timeFormatter)(__props.mcp.updatedAt)), 1 /* TEXT */ )) : _createCommentVNode("v-if", true),
|
|
60
|
+
__props.mcp.mcpType === _unref(McpType).Apigw && __props.type === _unref(ResourceCardType).Full ? (_openBlock(), _createElementBlock("span", _hoisted_3, " 来源:蓝鲸 API 网关 ")) : _createCommentVNode("v-if", true),
|
|
61
|
+
_createElementVNode("span", _hoisted_4, [
|
|
62
|
+
_cache[1] || (_cache[1] = _createTextVNode(" 工具数量: ", -1 /* CACHED */ )),
|
|
63
|
+
_withDirectives((_openBlock(), _createElementBlock("span", _hoisted_5, [
|
|
64
|
+
_createTextVNode(_toDisplayString(__props.mcp.mcpToolCount), 1 /* TEXT */ )
|
|
73
65
|
])), [
|
|
74
66
|
[
|
|
75
67
|
_directive_bk_tooltips,
|
|
76
68
|
{
|
|
77
|
-
content: (
|
|
69
|
+
content: _unref(tooltipContent)
|
|
78
70
|
}
|
|
79
71
|
]
|
|
80
72
|
])
|
|
81
73
|
]),
|
|
82
|
-
__props.type === (
|
|
74
|
+
__props.type === _unref(ResourceCardType).Info ? (_openBlock(), _createElementBlock("span", _hoisted_6, _toDisplayString(__props.mcp.mcpType === _unref(McpType).Apigw ? '来源:蓝鲸 API 网关' : `来源空间:${_unref(getCurrentSpaceName)(props.spaces, props.spaceId)}`), 1 /* TEXT */ )) : _createCommentVNode("v-if", true)
|
|
83
75
|
], 64 /* STABLE_FRAGMENT */ );
|
|
84
76
|
};
|
|
85
77
|
}
|
|
@@ -53,7 +53,7 @@ declare const __VLS_export: <T extends IMcp | IApplicationMcp>(__VLS_props: NonN
|
|
|
53
53
|
(event: "edit" | "choose" | "settings" | "view" | "delete" | "update:mcp", mcp: T): void;
|
|
54
54
|
};
|
|
55
55
|
}>) => import("vue").VNode & {
|
|
56
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
56
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
57
57
|
};
|
|
58
58
|
declare const _default: typeof __VLS_export;
|
|
59
59
|
export default _default;
|
|
@@ -1,39 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
});
|
|
5
|
-
exports.default = void 0;
|
|
6
|
-
var _vue = require("vue");
|
|
7
|
-
require('../../../../node_modules/core-js/modules/es.array.map.js');
|
|
8
|
-
require('../../../../node_modules/core-js/modules/es.object.to-string.js');
|
|
9
|
-
var _hoisted_1 = {
|
|
1
|
+
import { defineComponent as _defineComponent, createVNode as _createVNode, createTextVNode as _createTextVNode2 } from 'vue';
|
|
2
|
+
import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives } from "vue";
|
|
3
|
+
const _hoisted_1 = {
|
|
10
4
|
class: "g-text-blue g-number-font g-leading-16 !g-cursor-pointer g-ml-4 tool-number"
|
|
11
5
|
};
|
|
12
|
-
|
|
6
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
13
7
|
props: {
|
|
14
8
|
mcp: {},
|
|
15
9
|
type: {}
|
|
16
10
|
},
|
|
17
|
-
setup
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
setup (__props) {
|
|
12
|
+
const props = __props;
|
|
13
|
+
const getTooltipContent = ()=>{
|
|
20
14
|
var _a;
|
|
21
|
-
return (
|
|
22
|
-
(
|
|
23
|
-
(_a = props.mcp.mcpToolNames) === null || _a === void 0 ? void 0 : _a.map(
|
|
24
|
-
return (0, _vue.createVNode)("li", {
|
|
15
|
+
return _createVNode("ul", null, [
|
|
16
|
+
_createTextVNode2("\u5305\u542B\u5DE5\u5177\uFF1A"),
|
|
17
|
+
(_a = props.mcp.mcpToolNames) === null || _a === void 0 ? void 0 : _a.map((name)=>_createVNode("li", {
|
|
25
18
|
"key": name,
|
|
26
19
|
"class": "g-leading-20"
|
|
27
20
|
}, [
|
|
28
21
|
name
|
|
29
|
-
])
|
|
30
|
-
})
|
|
22
|
+
]))
|
|
31
23
|
]);
|
|
32
24
|
};
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
(
|
|
25
|
+
return (_ctx, _cache)=>{
|
|
26
|
+
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
27
|
+
return _withDirectives((_openBlock(), _createElementBlock("span", _hoisted_1, [
|
|
28
|
+
_createTextVNode(_toDisplayString(__props.mcp.mcpToolCount), 1 /* TEXT */ )
|
|
37
29
|
])), [
|
|
38
30
|
[
|
|
39
31
|
_directive_bk_tooltips,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
.tool-number[data-v-
|
|
2
|
+
.tool-number[data-v-p8op3z30] {
|
|
3
3
|
background: #E1ECFF;
|
|
4
4
|
border-radius: 2px;
|
|
5
5
|
padding: 0 4px;
|
|
6
6
|
font-size: 10px;
|
|
7
7
|
}
|
|
8
|
-
.tool-number[data-v-
|
|
8
|
+
.tool-number[data-v-p8op3z30]:hover {
|
|
9
9
|
background: #3A84FF;
|
|
10
10
|
color: #fff;
|
|
11
11
|
}
|
|
@@ -16,7 +16,7 @@ declare const __VLS_export: <T extends IMcp>(__VLS_props: NonNullable<Awaited<ty
|
|
|
16
16
|
slots: {};
|
|
17
17
|
emit: (e: "update:mcp", mcp: T) => void;
|
|
18
18
|
}>) => import("vue").VNode & {
|
|
19
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
19
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
20
20
|
};
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
export default _default;
|
|
@@ -50,7 +50,7 @@ declare const __VLS_export: <T extends IPrompt | IApplicationPrompt>(__VLS_props
|
|
|
50
50
|
(event: "navigate", value: ISdkNavigateAction): void;
|
|
51
51
|
};
|
|
52
52
|
}>) => import("vue").VNode & {
|
|
53
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
53
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
54
54
|
};
|
|
55
55
|
declare const _default: typeof __VLS_export;
|
|
56
56
|
export default _default;
|
|
@@ -54,7 +54,7 @@ declare const __VLS_export: <T extends ICollection | IApplicationCollection>(__V
|
|
|
54
54
|
(event: "navigate", value: ISdkNavigateAction): void;
|
|
55
55
|
};
|
|
56
56
|
}>) => import("vue").VNode & {
|
|
57
|
-
__ctx?: Awaited<typeof __VLS_setup
|
|
57
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
58
58
|
};
|
|
59
59
|
declare const _default: typeof __VLS_export;
|
|
60
60
|
export default _default;
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var _interopRequireDefault = require('../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js');
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
require('../../../../node_modules/regenerator-runtime/runtime.js');
|
|
8
|
-
require('../../../../node_modules/core-js/modules/es.array.join.js');
|
|
9
|
-
require('../../../../node_modules/core-js/modules/es.array.map.js');
|
|
10
|
-
require('../../../../node_modules/core-js/modules/es.object.assign.js');
|
|
11
|
-
require('../../../../node_modules/core-js/modules/es.object.keys.js');
|
|
12
|
-
require('../../../../node_modules/core-js/modules/es.object.to-string.js');
|
|
13
|
-
require('../../../../node_modules/core-js/modules/es.promise.js');
|
|
14
|
-
var _vue = require("vue");
|
|
15
|
-
var _util = require('../../../common/util.ts.js');
|
|
16
|
-
var _index = _interopRequireDefault(require('../../render-skill/variable-form/index.vue.js'));
|
|
17
|
-
var __awaiter = (void 0) && (void 0).__awaiter || function(thisArg, _arguments, P, generator) {
|
|
1
|
+
var __awaiter = this && this.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
18
2
|
function adopt(value) {
|
|
19
3
|
return value instanceof P ? value : new P(function(resolve) {
|
|
20
4
|
resolve(value);
|
|
@@ -41,7 +25,12 @@ var __awaiter = (void 0) && (void 0).__awaiter || function(thisArg, _arguments,
|
|
|
41
25
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
42
26
|
});
|
|
43
27
|
};
|
|
44
|
-
|
|
28
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
29
|
+
import { unref as _unref, withModifiers as _withModifiers, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, createElementVNode as _createElementVNode, withDirectives as _withDirectives, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from "vue";
|
|
30
|
+
import { ref } from 'vue';
|
|
31
|
+
import { isEmpty } from '../../../common/util.ts.js';
|
|
32
|
+
import VariableForm from '../../render-skill/variable-form/index.vue.js';
|
|
33
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
45
34
|
props: {
|
|
46
35
|
skill: {},
|
|
47
36
|
errorSkills: {}
|
|
@@ -49,57 +38,33 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
49
38
|
emits: [
|
|
50
39
|
"update:skill"
|
|
51
40
|
],
|
|
52
|
-
setup
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var formRef = (0, _vue.ref)();
|
|
60
|
-
var handleShow = function handleShow() {
|
|
61
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
|
|
41
|
+
setup (__props, { emit: __emit }) {
|
|
42
|
+
const props = __props;
|
|
43
|
+
const emit = __emit;
|
|
44
|
+
const isShow = ref(false);
|
|
45
|
+
const renderEnvs = ref();
|
|
46
|
+
const formRef = ref();
|
|
47
|
+
const handleShow = ()=>__awaiter(this, void 0, void 0, function*() {
|
|
62
48
|
var _a;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
renderEnvs.value = JSON.parse(JSON.stringify((_a = props.skill) === null || _a === void 0 ? void 0 : _a.envs));
|
|
68
|
-
case 1:
|
|
69
|
-
case "end":
|
|
70
|
-
return _context.stop();
|
|
71
|
-
}
|
|
72
|
-
}, _callee);
|
|
73
|
-
}));
|
|
74
|
-
};
|
|
75
|
-
var handleCancel = function handleCancel() {
|
|
49
|
+
isShow.value = true;
|
|
50
|
+
renderEnvs.value = JSON.parse(JSON.stringify((_a = props.skill) === null || _a === void 0 ? void 0 : _a.envs));
|
|
51
|
+
});
|
|
52
|
+
const handleCancel = ()=>{
|
|
76
53
|
isShow.value = false;
|
|
77
54
|
};
|
|
78
|
-
|
|
79
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/ regeneratorRuntime.mark(function _callee2() {
|
|
55
|
+
const handleConfirm = ()=>__awaiter(this, void 0, void 0, function*() {
|
|
80
56
|
var _a;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
emit('update:skill', Object.assign(Object.assign({}, props.skill), {
|
|
89
|
-
envs: renderEnvs.value
|
|
90
|
-
}));
|
|
91
|
-
case 2:
|
|
92
|
-
case "end":
|
|
93
|
-
return _context2.stop();
|
|
94
|
-
}
|
|
95
|
-
}, _callee2);
|
|
96
|
-
}));
|
|
97
|
-
};
|
|
98
|
-
return function(_ctx, _cache) {
|
|
57
|
+
yield (_a = formRef.value) === null || _a === void 0 ? void 0 : _a.validate();
|
|
58
|
+
handleCancel();
|
|
59
|
+
emit('update:skill', Object.assign(Object.assign({}, props.skill), {
|
|
60
|
+
envs: renderEnvs.value
|
|
61
|
+
}));
|
|
62
|
+
});
|
|
63
|
+
return (_ctx, _cache)=>{
|
|
99
64
|
var _a;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return !(
|
|
65
|
+
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
66
|
+
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
67
|
+
return !_unref(isEmpty)((_a = props.skill) === null || _a === void 0 ? void 0 : _a.envs) ? (_openBlock(), _createBlock(_component_bk_pop_confirm, {
|
|
103
68
|
key: 0,
|
|
104
69
|
width: "600",
|
|
105
70
|
trigger: "manual",
|
|
@@ -109,47 +74,39 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
109
74
|
onConfirm: handleConfirm,
|
|
110
75
|
onCancel: handleCancel
|
|
111
76
|
}, {
|
|
112
|
-
content: (
|
|
113
|
-
|
|
114
|
-
(0, _vue.createVNode)(_index.default, {
|
|
77
|
+
content: _withCtx(()=>[
|
|
78
|
+
_createVNode(VariableForm, {
|
|
115
79
|
"skill-envs": renderEnvs.value,
|
|
116
|
-
"onUpdate:skillEnvs": _cache[0] || (_cache[0] =
|
|
117
|
-
return renderEnvs.value = $event;
|
|
118
|
-
}),
|
|
80
|
+
"onUpdate:skillEnvs": _cache[0] || (_cache[0] = ($event)=>renderEnvs.value = $event),
|
|
119
81
|
ref_key: "formRef",
|
|
120
82
|
ref: formRef
|
|
121
83
|
}, null, 8 /* PROPS */ , [
|
|
122
84
|
"skill-envs"
|
|
123
85
|
])
|
|
124
|
-
]
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
(0, _vue.withDirectives)((0, _vue.createElementVNode)("i", {
|
|
129
|
-
class: (0, _vue.normalizeClass)([
|
|
86
|
+
]),
|
|
87
|
+
default: _withCtx(()=>[
|
|
88
|
+
_withDirectives(_createElementVNode("i", {
|
|
89
|
+
class: _normalizeClass([
|
|
130
90
|
'g-cursor-pointer g-text-16 g-ml-16 g-mr-16 g-text-979BA5 hover:!g-text-blue',
|
|
131
|
-
!(
|
|
91
|
+
!_unref(isEmpty)(__props.errorSkills) ? 'ai-ui-sdk-icon ai-ui-sdk-miyao !g-text-ea3636' : 'ai-ui-sdk-icon ai-ui-sdk-miyaoyiyanzheng !g-text-2CAF5E'
|
|
132
92
|
]),
|
|
133
|
-
onClick: (
|
|
93
|
+
onClick: _withModifiers(handleShow, [
|
|
134
94
|
"stop"
|
|
135
95
|
])
|
|
136
96
|
}, null, 2 /* CLASS */ ), [
|
|
137
97
|
[
|
|
138
98
|
_directive_bk_tooltips,
|
|
139
99
|
{
|
|
140
|
-
content: !(
|
|
141
|
-
return env.key;
|
|
142
|
-
}).join(';'), "\u53D8\u91CF\u7684\u503C\u5FC5\u586B") : '配置环境变量',
|
|
100
|
+
content: !_unref(isEmpty)(__props.errorSkills) ? `${__props.errorSkills.map((env)=>env.key).join(';')}变量的值必填` : '配置环境变量',
|
|
143
101
|
placement: 'top'
|
|
144
102
|
}
|
|
145
103
|
]
|
|
146
104
|
])
|
|
147
|
-
]
|
|
148
|
-
}),
|
|
105
|
+
]),
|
|
149
106
|
_: 1 /* STABLE */
|
|
150
107
|
}, 8 /* PROPS */ , [
|
|
151
108
|
"is-show"
|
|
152
|
-
])) : (
|
|
109
|
+
])) : _createCommentVNode("v-if", true);
|
|
153
110
|
};
|
|
154
111
|
}
|
|
155
112
|
});
|