@blueking/ai-ui-sdk 0.4.1-beta.4 → 0.4.1-beta.6
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.script.vue.js +8 -7
- 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/knowledgebase/index.script.vue.js.js +13 -3
- package/dist/components/render-card/knowledgebase/index.vue.d.ts +3 -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.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/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/prompt/index.script.vue.js.js +4 -4
- package/dist/components/render-card/role/index.script.vue.js.js +15 -14
- package/dist/components/render-card/role/index.vue.d.ts +1 -0
- 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/actions.script.vue.js.js +11 -31
- package/dist/components/render-card/tool/index.script.vue.js.js +13 -13
- package/dist/components/render-card/tool/index.vue.d.ts +2 -2
- 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/actions/index.script.vue.js.js +39 -54
- package/dist/components/render-collection/actions/index.vue.d.ts +1 -2
- 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.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-detail/components/header.script.vue.js.js +3 -3
- 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.script.vue.js +3 -2
- 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.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.script.vue.js.js +62 -44
- package/dist/components/render-header/index.vue.d.ts +5 -1
- package/dist/components/render-header/index.vue.js +0 -2
- 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-prompt/actions/index.script.vue.js.js +30 -40
- 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-relate-agent/index.script.vue.js +46 -21
- package/dist/components/render-relate-agent/index.vue.d.ts +3 -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 +27 -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/css/g-utilities.css +45 -18
- package/dist/css/g-utilities.manifest.json +11 -5
- package/dist/http/helper/knowledge.d.ts +10 -1
- package/dist/http/helper/knowledge.ts.js +82 -19
- package/dist/types/agent.d.ts +3 -3
- package/dist/types/enum.d.ts +12 -1
- package/dist/types/enum.ts.js +13 -0
- package/dist/types/knowledge.d.ts +113 -10
- package/package.json +1 -1
- package/dist/components/render-header/index.vue.css +0 -13
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as _defineComponent } from 'vue';
|
|
2
2
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, normalizeClass as _normalizeClass, withCtx as _withCtx, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementVNode as _createElementVNode, createVNode as _createVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from "vue";
|
|
3
3
|
import { ref, toRef } from 'vue';
|
|
4
|
-
import { handleCopy } from '../../../common/util.ts.js';
|
|
5
4
|
import ApplicationBaseActions from '../../render-card/base/application-base-actions.vue.js';
|
|
6
5
|
import RenderDropdown from '../../render-dropdown/index.vue.js';
|
|
6
|
+
import RelateAgent from '../../render-relate-agent/index.vue.js';
|
|
7
7
|
import { usePermission } from '../../../hooks/use-permission.ts.js';
|
|
8
8
|
import { usePromptHttp } from '../../../hooks/use-prompt-http.ts.js';
|
|
9
9
|
import { Module, ResourceCardType, ResourcePermissionAction, ResourceStatus } from '../../../types/enum.ts.js';
|
|
@@ -50,17 +50,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
50
50
|
ResourcePermissionAction.ManagePrompt
|
|
51
51
|
], props.prompt.id);
|
|
52
52
|
};
|
|
53
|
-
const handleUsePermissionMouseEnter = ()=>{
|
|
54
|
-
handleMouseEnter(props.prompt.permission.usePrompt);
|
|
55
|
-
};
|
|
56
|
-
const handleUsePermissionMouseMove = (event)=>{
|
|
57
|
-
handleMouseMove(event, props.prompt.permission.usePrompt);
|
|
58
|
-
};
|
|
59
|
-
const handleUsePermissionMouseClick = (callBack)=>{
|
|
60
|
-
handleMouseClick(callBack, props.prompt.permission.usePrompt, [
|
|
61
|
-
ResourcePermissionAction.UsePrompt
|
|
62
|
-
], props.prompt.id);
|
|
63
|
-
};
|
|
64
53
|
const handleEdit = ()=>{
|
|
65
54
|
emits('edit', props.prompt);
|
|
66
55
|
};
|
|
@@ -96,6 +85,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
96
85
|
handleHideRestore();
|
|
97
86
|
});
|
|
98
87
|
};
|
|
88
|
+
const handleNavigate = (route)=>{
|
|
89
|
+
handleHideDropdown();
|
|
90
|
+
emits('navigate', route);
|
|
91
|
+
};
|
|
99
92
|
return (_ctx, _cache)=>{
|
|
100
93
|
const _component_bk_button = _resolveComponent("bk-button");
|
|
101
94
|
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
@@ -142,31 +135,8 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
142
135
|
"class",
|
|
143
136
|
"onMouseleave"
|
|
144
137
|
])) : _createCommentVNode("v-if", true),
|
|
145
|
-
__props.prompt.status !== _unref(ResourceStatus).Deleted ? (_openBlock(), _createBlock(_component_bk_button, {
|
|
146
|
-
key: 1,
|
|
147
|
-
class: _normalizeClass({
|
|
148
|
-
'!g-disabled': !__props.prompt.permission.usePrompt
|
|
149
|
-
}),
|
|
150
|
-
size: "small",
|
|
151
|
-
onMouseenter: handleUsePermissionMouseEnter,
|
|
152
|
-
onMousemove: handleUsePermissionMouseMove,
|
|
153
|
-
onMouseleave: _unref(handleMouseLeave),
|
|
154
|
-
onClick: _cache[1] || (_cache[1] = _withModifiers(($event)=>handleUsePermissionMouseClick(()=>_unref(handleCopy)(__props.prompt.content)), [
|
|
155
|
-
"stop"
|
|
156
|
-
]))
|
|
157
|
-
}, {
|
|
158
|
-
default: _withCtx(()=>[
|
|
159
|
-
..._cache[6] || (_cache[6] = [
|
|
160
|
-
_createTextVNode(" 复制 ", -1 /* CACHED */ )
|
|
161
|
-
])
|
|
162
|
-
]),
|
|
163
|
-
_: 1 /* STABLE */
|
|
164
|
-
}, 8 /* PROPS */ , [
|
|
165
|
-
"class",
|
|
166
|
-
"onMouseleave"
|
|
167
|
-
])) : _createCommentVNode("v-if", true),
|
|
168
138
|
getIsCurrentSpace() && !getIsNotDeleted() ? (_openBlock(), _createBlock(_component_bk_pop_confirm, {
|
|
169
|
-
key:
|
|
139
|
+
key: 1,
|
|
170
140
|
"is-show": isShowRestore.value,
|
|
171
141
|
trigger: "manual",
|
|
172
142
|
placement: "top",
|
|
@@ -184,7 +154,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
184
154
|
])
|
|
185
155
|
}, {
|
|
186
156
|
default: _withCtx(()=>[
|
|
187
|
-
..._cache[
|
|
157
|
+
..._cache[6] || (_cache[6] = [
|
|
188
158
|
_createTextVNode(" 恢复 ", -1 /* CACHED */ )
|
|
189
159
|
])
|
|
190
160
|
]),
|
|
@@ -206,7 +176,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
206
176
|
"is-show"
|
|
207
177
|
])) : _createCommentVNode("v-if", true),
|
|
208
178
|
getIsCurrentSpace() && getIsNotDeleted() ? (_openBlock(), _createBlock(RenderDropdown, {
|
|
209
|
-
key:
|
|
179
|
+
key: 2,
|
|
210
180
|
placement: "bottom-start",
|
|
211
181
|
theme: "light",
|
|
212
182
|
ref_key: "dropdownRef",
|
|
@@ -216,12 +186,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
216
186
|
_createVNode(_component_bk_button, {
|
|
217
187
|
class: "!g-pl-5 !g-pr-5",
|
|
218
188
|
size: "small",
|
|
219
|
-
onClick: _cache[
|
|
189
|
+
onClick: _cache[1] || (_cache[1] = _withModifiers(()=>{}, [
|
|
220
190
|
"stop"
|
|
221
191
|
]))
|
|
222
192
|
}, {
|
|
223
193
|
default: _withCtx(()=>[
|
|
224
|
-
..._cache[
|
|
194
|
+
..._cache[7] || (_cache[7] = [
|
|
225
195
|
_createElementVNode("i", {
|
|
226
196
|
class: "ai-ui-sdk-icon ai-ui-sdk-gengduo-2 g-text-16"
|
|
227
197
|
}, null, -1 /* CACHED */ )
|
|
@@ -237,6 +207,26 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
237
207
|
`prompt-card-menu-${__props.prompt.id}`
|
|
238
208
|
])
|
|
239
209
|
}, [
|
|
210
|
+
_createElementVNode("li", {
|
|
211
|
+
onClick: _cache[2] || (_cache[2] = _withModifiers(()=>{}, [
|
|
212
|
+
"stop"
|
|
213
|
+
]))
|
|
214
|
+
}, [
|
|
215
|
+
_createVNode(RelateAgent, {
|
|
216
|
+
boundary: `.prompt-card-menu-${__props.prompt.id}`,
|
|
217
|
+
"resource-type": _unref(Module).Prompt,
|
|
218
|
+
resource: __props.prompt,
|
|
219
|
+
"space-id": props.spaceId,
|
|
220
|
+
"api-prefix": props.apiPrefix,
|
|
221
|
+
onNavigate: handleNavigate
|
|
222
|
+
}, null, 8 /* PROPS */ , [
|
|
223
|
+
"boundary",
|
|
224
|
+
"resource-type",
|
|
225
|
+
"resource",
|
|
226
|
+
"space-id",
|
|
227
|
+
"api-prefix"
|
|
228
|
+
])
|
|
229
|
+
]),
|
|
240
230
|
_createVNode(_component_bk_pop_confirm, {
|
|
241
231
|
"confirm-config": {
|
|
242
232
|
loading: isDeletingPrompt.value
|
|
@@ -38,7 +38,7 @@ import VariableForm from '../render-skill/variable-form/index.vue.js';
|
|
|
38
38
|
import { useAgentHttp } from '../../hooks/use-agent-http.ts.js';
|
|
39
39
|
import { useClickoutside } from '../../hooks/use-clickoutside.ts.js';
|
|
40
40
|
import { useSpaceHttp } from '../../hooks/use-space-http.ts.js';
|
|
41
|
-
import { AgentType, GroupType, Module, ResourceStatus, SdkNavigateActionType } from '../../types/enum.ts.js';
|
|
41
|
+
import { AgentType, GroupType, Module, PromptSource, ResourceStatus, SdkNavigateActionType } from '../../types/enum.ts.js';
|
|
42
42
|
export default /*@__PURE__*/ _defineComponent({
|
|
43
43
|
props: {
|
|
44
44
|
resourceType: {},
|
|
@@ -266,6 +266,29 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
266
266
|
})
|
|
267
267
|
}));
|
|
268
268
|
});
|
|
269
|
+
const handleRelatePromptToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
270
|
+
const prompt = props.resource;
|
|
271
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
272
|
+
promptSetting: Object.assign(Object.assign({}, selectedAgent.promptSetting), {
|
|
273
|
+
promptType: PromptSource.UserDefine,
|
|
274
|
+
promptContent: prompt.content
|
|
275
|
+
})
|
|
276
|
+
}));
|
|
277
|
+
});
|
|
278
|
+
const handleRelateCollectionToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
279
|
+
var _a;
|
|
280
|
+
const collection = props.resource;
|
|
281
|
+
if (((_a = selectedAgent.promptSetting) === null || _a === void 0 ? void 0 : _a.collectionId) === collection.id) return;
|
|
282
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
283
|
+
promptSetting: Object.assign(Object.assign({}, selectedAgent.promptSetting), {
|
|
284
|
+
promptType: PromptSource.Collection,
|
|
285
|
+
collectionId: collection.id,
|
|
286
|
+
collectionName: collection.name,
|
|
287
|
+
collectionVariables: collection.variables,
|
|
288
|
+
collectionContent: collection.content
|
|
289
|
+
})
|
|
290
|
+
}));
|
|
291
|
+
});
|
|
269
292
|
const handleBindAndNavigate = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
270
293
|
var _a;
|
|
271
294
|
const relateMap = {
|
|
@@ -274,7 +297,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
274
297
|
[Module.Tool]: handleRelateToolToAgent,
|
|
275
298
|
[Module.Skill]: handleRelateSkillToAgent,
|
|
276
299
|
[Module.LLM]: handleRelateLLMToAgent,
|
|
277
|
-
[Module.Knowledgebase]: handleRelateKnowledgebaseToAgent
|
|
300
|
+
[Module.Knowledgebase]: handleRelateKnowledgebaseToAgent,
|
|
301
|
+
[Module.Prompt]: handleRelatePromptToAgent,
|
|
302
|
+
[Module.Collection]: handleRelateCollectionToAgent
|
|
278
303
|
};
|
|
279
304
|
yield (_a = relateMap[props.resourceType]) === null || _a === void 0 ? void 0 : _a.call(relateMap, selectedAgent);
|
|
280
305
|
emits('navigate', {
|
|
@@ -408,24 +433,24 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
408
433
|
const _component_bk_popover = _resolveComponent("bk-popover");
|
|
409
434
|
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
410
435
|
return _openBlock(), _createBlock(_component_bk_popover, {
|
|
436
|
+
placement: props.placement,
|
|
437
|
+
boundary: props.boundary,
|
|
438
|
+
"is-show": isShowPopover.value,
|
|
411
439
|
trigger: "manual",
|
|
412
440
|
theme: "light",
|
|
413
441
|
width: "400",
|
|
414
|
-
"ext-cls": "render-relate-agent-popover"
|
|
415
|
-
placement: props.placement,
|
|
416
|
-
boundary: props.boundary,
|
|
417
|
-
"is-show": isShowPopover.value
|
|
442
|
+
"ext-cls": "render-relate-agent-popover"
|
|
418
443
|
}, {
|
|
419
444
|
content: _withCtx(()=>[
|
|
420
445
|
_cache[5] || (_cache[5] = _createElementVNode("span", {
|
|
421
446
|
class: "g-text-16 g-text-black g-leading-24"
|
|
422
447
|
}, " 关联至智能体 ", -1 /* CACHED */ )),
|
|
423
448
|
_createVNode(_component_bk_form, {
|
|
449
|
+
model: formData.value,
|
|
424
450
|
ref_key: "formRef",
|
|
425
451
|
ref: formRef,
|
|
426
452
|
"form-type": "vertical",
|
|
427
|
-
class: "g-small-form g-small-gap-form !g-mt-16"
|
|
428
|
-
model: formData.value
|
|
453
|
+
class: "g-small-form g-small-gap-form !g-mt-16"
|
|
429
454
|
}, {
|
|
430
455
|
default: _withCtx(()=>[
|
|
431
456
|
_createVNode(_component_bk_form_item, {
|
|
@@ -437,15 +462,15 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
437
462
|
_createVNode(_component_bk_select, {
|
|
438
463
|
modelValue: formData.value.selectedSpaceId,
|
|
439
464
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>formData.value.selectedSpaceId = $event),
|
|
440
|
-
filterable: "",
|
|
441
|
-
"id-key": "spaceId",
|
|
442
|
-
"display-key": "spaceName",
|
|
443
465
|
clearable: false,
|
|
444
466
|
loading: isLoadingSpaces.value,
|
|
445
467
|
list: spaces.value,
|
|
446
468
|
"popover-options": {
|
|
447
469
|
boundary: 'parent'
|
|
448
470
|
},
|
|
471
|
+
filterable: "",
|
|
472
|
+
"id-key": "spaceId",
|
|
473
|
+
"display-key": "spaceName",
|
|
449
474
|
onChange: handleGetAgentsAndSetDefaultAgent
|
|
450
475
|
}, null, 8 /* PROPS */ , [
|
|
451
476
|
"modelValue",
|
|
@@ -464,16 +489,16 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
464
489
|
_createVNode(_component_bk_select, {
|
|
465
490
|
modelValue: formData.value.selectedAgentId,
|
|
466
491
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>formData.value.selectedAgentId = $event),
|
|
467
|
-
filterable: "",
|
|
468
|
-
"id-key": "id",
|
|
469
|
-
"display-key": "agentName",
|
|
470
492
|
"no-data-text": `暂无未关联该${_unref(MODULE_NAME)[props.resourceType]}的智能体`,
|
|
471
493
|
clearable: false,
|
|
472
494
|
list: agents.value,
|
|
473
495
|
loading: isLoadingAgents.value,
|
|
474
496
|
"popover-options": {
|
|
475
497
|
boundary: 'parent'
|
|
476
|
-
}
|
|
498
|
+
},
|
|
499
|
+
filterable: "",
|
|
500
|
+
"id-key": "id",
|
|
501
|
+
"display-key": "agentName"
|
|
477
502
|
}, {
|
|
478
503
|
extension: _withCtx(()=>[
|
|
479
504
|
_createVNode(RenderSelectPlusExtension, {
|
|
@@ -498,10 +523,6 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
498
523
|
]),
|
|
499
524
|
_createElementVNode("section", _hoisted_1, [
|
|
500
525
|
_createVNode(_component_bk_pop_confirm, {
|
|
501
|
-
trigger: "manual",
|
|
502
|
-
placement: "top",
|
|
503
|
-
boundary: "parent",
|
|
504
|
-
"ext-cls": "g-popover-confirm",
|
|
505
526
|
width: getWidth(),
|
|
506
527
|
title: getTitle(),
|
|
507
528
|
content: getContent(),
|
|
@@ -509,13 +530,17 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
509
530
|
"confirm-config": {
|
|
510
531
|
loading: isLoadingConfirm.value
|
|
511
532
|
},
|
|
533
|
+
trigger: "manual",
|
|
534
|
+
placement: "top",
|
|
535
|
+
boundary: "parent",
|
|
536
|
+
"ext-cls": "g-popover-confirm",
|
|
512
537
|
onConfirm: handlePopoverConfirm,
|
|
513
538
|
onCancel: handleCancelApply
|
|
514
539
|
}, {
|
|
515
540
|
default: _withCtx(()=>[
|
|
516
541
|
_createVNode(_component_bk_button, {
|
|
517
|
-
theme: "primary",
|
|
518
542
|
loading: isLoadingConfirm.value,
|
|
543
|
+
theme: "primary",
|
|
519
544
|
onClick: handleConfirm
|
|
520
545
|
}, {
|
|
521
546
|
default: _withCtx(()=>[
|
|
@@ -554,9 +579,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
554
579
|
handleShow: handleShow
|
|
555
580
|
}, ()=>[
|
|
556
581
|
_withDirectives((_openBlock(), _createBlock(_component_bk_button, {
|
|
582
|
+
disabled: props.disabled,
|
|
557
583
|
size: "small",
|
|
558
584
|
text: "",
|
|
559
|
-
disabled: props.disabled,
|
|
560
585
|
onClick: handleShow
|
|
561
586
|
}, {
|
|
562
587
|
default: _withCtx(()=>[
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { IKnowledgebase, ITool } from '@/types';
|
|
2
2
|
import type { IAgent } from '@/types/agent';
|
|
3
|
+
import type { ICollection } from '@/types/collection';
|
|
3
4
|
import { Module } from '@/types/enum';
|
|
4
5
|
import type { IMcp } from '@/types/mcp';
|
|
5
6
|
import type { IModel } from '@/types/model';
|
|
6
7
|
import type { ISdkNavigateAction } from '@/types/navigate';
|
|
8
|
+
import type { IPrompt } from '@/types/prompt';
|
|
7
9
|
import type { ISkill } from '@/types/skill';
|
|
8
10
|
interface IProps {
|
|
9
11
|
resourceType: Module;
|
|
10
|
-
resource: IAgent | IMcp | ISkill | IModel | ITool | IKnowledgebase;
|
|
12
|
+
resource: IAgent | IMcp | ISkill | IModel | ITool | IKnowledgebase | IPrompt | ICollection;
|
|
11
13
|
disabled?: boolean;
|
|
12
14
|
disabledText?: string;
|
|
13
15
|
boundary?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
.resource-version[data-v-
|
|
2
|
+
.resource-version[data-v-e5n6au8l] {
|
|
3
3
|
border-radius: 2px;
|
|
4
4
|
text-align: left;
|
|
5
5
|
color: #4D4F56;
|
|
6
6
|
background-color: #F0F1F5;
|
|
7
7
|
white-space: nowrap;
|
|
8
8
|
}
|
|
9
|
-
.resource-version .bkaidev-rizhifenxi[data-v-
|
|
9
|
+
.resource-version .bkaidev-rizhifenxi[data-v-e5n6au8l] {
|
|
10
10
|
color: #3A84FF;
|
|
11
11
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-9twulcc9] {
|
|
3
3
|
margin-top: 2px;
|
|
4
4
|
height: 42px;
|
|
5
5
|
background: #FFFFFF;
|
|
6
6
|
box-shadow: 0 2px 4px 0 #1919290d;
|
|
7
7
|
padding: 0 24px;
|
|
8
8
|
}
|
|
9
|
-
.router-tab a[data-v-
|
|
9
|
+
.router-tab a[data-v-9twulcc9] {
|
|
10
10
|
padding: 0 8px;
|
|
11
11
|
margin-right: 24px;
|
|
12
12
|
font-size: 14px;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
color: #4D4F56;
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
}
|
|
18
|
-
.router-tab a.router-link-exact-active[data-v-
|
|
18
|
+
.router-tab a.router-link-exact-active[data-v-9twulcc9] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.select-plus-extension[data-v-
|
|
2
|
+
.select-plus-extension[data-v-a0js3c6g] {
|
|
3
3
|
cursor: pointer;
|
|
4
4
|
width: 100%;
|
|
5
5
|
display: flex;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
font-size: 12px;
|
|
9
9
|
line-height: 20px;
|
|
10
10
|
}
|
|
11
|
-
.select-plus-extension .ai-ui-sdk-icon[data-v-
|
|
11
|
+
.select-plus-extension .ai-ui-sdk-icon[data-v-a0js3c6g] {
|
|
12
12
|
font-size: 14px;
|
|
13
13
|
margin-right: 6px;
|
|
14
14
|
}
|
|
15
|
-
.select-plus-extension[data-v-
|
|
15
|
+
.select-plus-extension[data-v-a0js3c6g]:hover {
|
|
16
16
|
color: #3A84FF;
|
|
17
17
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.t-t-pagination[data-v-
|
|
2
|
+
.t-t-pagination[data-v-564k8xqm] {
|
|
3
3
|
position: relative;
|
|
4
4
|
padding: 16px 16px 0 16px;
|
|
5
5
|
}
|
|
6
|
-
.t-t-pagination[data-v-
|
|
6
|
+
.t-t-pagination[data-v-564k8xqm] .bk-pagination-list.is-last {
|
|
7
7
|
margin-left: auto;
|
|
8
8
|
}
|
|
9
|
-
.pagination-loading[data-v-
|
|
9
|
+
.pagination-loading[data-v-564k8xqm]::after {
|
|
10
10
|
content: '';
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: 0;
|
|
@@ -16,92 +16,92 @@
|
|
|
16
16
|
background-color: rgba(255, 255, 255, 0.6);
|
|
17
17
|
z-index: 72;
|
|
18
18
|
}
|
|
19
|
-
.pagination-border[data-v-
|
|
19
|
+
.pagination-border[data-v-564k8xqm] {
|
|
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-
|
|
25
|
+
.t-t-table[data-v-564k8xqm] {
|
|
26
26
|
display: inline;
|
|
27
27
|
font-size: 12px;
|
|
28
28
|
}
|
|
29
|
-
.t-t-table[data-v-
|
|
29
|
+
.t-t-table[data-v-564k8xqm] .t-table__th-cell-inner {
|
|
30
30
|
color: #313238;
|
|
31
31
|
}
|
|
32
|
-
.t-t-table[data-v-
|
|
32
|
+
.t-t-table[data-v-564k8xqm] th {
|
|
33
33
|
padding: 0 16px;
|
|
34
34
|
height: 42px;
|
|
35
35
|
background-color: #FAFBFD !important;
|
|
36
36
|
}
|
|
37
|
-
.t-t-table[data-v-
|
|
37
|
+
.t-t-table[data-v-564k8xqm] .t-table__body tr {
|
|
38
38
|
color: #63656e;
|
|
39
39
|
font-size: 12px;
|
|
40
40
|
}
|
|
41
|
-
.t-t-table[data-v-
|
|
41
|
+
.t-t-table[data-v-564k8xqm] .t-table__body tr td {
|
|
42
42
|
padding: 0 16px;
|
|
43
43
|
height: 40px;
|
|
44
44
|
}
|
|
45
|
-
.t-t-table[data-v-
|
|
45
|
+
.t-t-table[data-v-564k8xqm] .t-table__body tr:hover td {
|
|
46
46
|
background-color: #f5f7fa !important;
|
|
47
47
|
color: #63656E;
|
|
48
48
|
}
|
|
49
|
-
.t-t-table[data-v-
|
|
49
|
+
.t-t-table[data-v-564k8xqm] .t-table__content .t-table__body .t-table__empty-row {
|
|
50
50
|
background-color: #fff !important;
|
|
51
51
|
}
|
|
52
|
-
.t-t-table[data-v-
|
|
52
|
+
.t-t-table[data-v-564k8xqm] .t-table__content .t-table__body .t-table__empty-row >td {
|
|
53
53
|
border: none;
|
|
54
54
|
}
|
|
55
|
-
.t-t-table[data-v-
|
|
55
|
+
.t-t-table[data-v-564k8xqm] th .t-table__ellipsis {
|
|
56
56
|
width: auto !important;
|
|
57
57
|
}
|
|
58
|
-
.t-t-table[data-v-
|
|
58
|
+
.t-t-table[data-v-564k8xqm] .t-loading__gradient.t-icon-loading {
|
|
59
59
|
display: none;
|
|
60
60
|
}
|
|
61
|
-
.t-t-table[data-v-
|
|
61
|
+
.t-t-table[data-v-564k8xqm]:first-of-type .t-table__affixed-header-elm-wrap{
|
|
62
62
|
width: calc(100% - 6px) !important;
|
|
63
63
|
}
|
|
64
|
-
.t-t-table[data-v-
|
|
64
|
+
.t-t-table[data-v-564k8xqm] .t-table__affixed-header-elm-wrap>div {
|
|
65
65
|
width: 100% !important;
|
|
66
66
|
scrollbar-width: none;
|
|
67
67
|
}
|
|
68
|
-
.t-t-table[data-v-
|
|
68
|
+
.t-t-table[data-v-564k8xqm] .t-table--layout-fixed{
|
|
69
69
|
width: 100% !important;
|
|
70
70
|
}
|
|
71
|
-
.t-t-table[data-v-
|
|
71
|
+
.t-t-table[data-v-564k8xqm] .bk-exception-description{
|
|
72
72
|
margin-bottom: 0;
|
|
73
73
|
}
|
|
74
|
-
.t-t-table[data-v-
|
|
74
|
+
.t-t-table[data-v-564k8xqm] .t-table__content{
|
|
75
75
|
z-index: 2;
|
|
76
76
|
max-height: 100%;
|
|
77
77
|
overflow: auto;
|
|
78
78
|
}
|
|
79
|
-
.t-t-table[data-v-
|
|
79
|
+
.t-t-table[data-v-564k8xqm] .t-table__content::-webkit-scrollbar {
|
|
80
80
|
width: 6px;
|
|
81
81
|
height: 6px;
|
|
82
82
|
}
|
|
83
|
-
.t-t-table[data-v-
|
|
83
|
+
.t-t-table[data-v-564k8xqm] .t-table__content::-webkit-scrollbar-thumb {
|
|
84
84
|
width: 6px;
|
|
85
85
|
height: 6px;
|
|
86
86
|
border-radius: 3px;
|
|
87
87
|
background-color: #dcdee5;
|
|
88
88
|
}
|
|
89
|
-
.t-t-table[data-v-
|
|
89
|
+
.t-t-table[data-v-564k8xqm] .t-table__content::-webkit-scrollbar-thumb:hover {
|
|
90
90
|
background-color: #979ba5;
|
|
91
91
|
}
|
|
92
|
-
.t-t-table[data-v-
|
|
92
|
+
.t-t-table[data-v-564k8xqm] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
|
|
93
93
|
line-height: 100%;
|
|
94
94
|
}
|
|
95
|
-
.t-t-table[data-v-
|
|
95
|
+
.t-t-table[data-v-564k8xqm] .t-table__cell--sort-trigger.t-table__double-icons{
|
|
96
96
|
gap: 5px;
|
|
97
97
|
}
|
|
98
|
-
.t-t-table[data-v-
|
|
98
|
+
.t-t-table[data-v-564k8xqm] .t-table__sort-icon--active>i{
|
|
99
99
|
color: #3a84ff !important;
|
|
100
100
|
}
|
|
101
|
-
.t-t-table[data-v-
|
|
101
|
+
.t-t-table[data-v-564k8xqm] .t-table__cell--fixed-left:has(.checkbox){
|
|
102
102
|
line-height: 100%;
|
|
103
103
|
}
|
|
104
|
-
.t-t-table[data-v-
|
|
104
|
+
.t-t-table[data-v-564k8xqm] .t-table__filter-icon.t-is-focus>span{
|
|
105
105
|
color: #3a84ff !important;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-tree[data-v-
|
|
2
|
+
.tag-tree[data-v-ofd6m8dk] {
|
|
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-
|
|
7
|
+
.tag-tree .manage-tree-item[data-v-ofd6m8dk] {
|
|
8
8
|
height: 32px;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
.tag-tree .quick-icon[data-v-
|
|
11
|
+
.tag-tree .quick-icon[data-v-ofd6m8dk] {
|
|
12
12
|
margin-left: -24px;
|
|
13
13
|
padding-left: 8px;
|
|
14
14
|
}
|
|
15
|
-
.tag-tree[data-v-
|
|
15
|
+
.tag-tree[data-v-ofd6m8dk] .tree-item:has(.bottom-line) {
|
|
16
16
|
border-bottom: 1px solid #F0F1F5;
|
|
17
17
|
}
|
|
18
|
-
.tag-tree[data-v-
|
|
18
|
+
.tag-tree[data-v-ofd6m8dk] .tree-item.active .quick-icon {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
}
|
|
21
|
-
.tag-tree[data-v-
|
|
21
|
+
.tag-tree[data-v-ofd6m8dk] .tree-item.active .tag-number {
|
|
22
22
|
background: #A3C5FD;
|
|
23
23
|
color: #fff;
|
|
24
24
|
}
|
|
25
|
-
.tag-number[data-v-
|
|
25
|
+
.tag-number[data-v-ofd6m8dk] {
|
|
26
26
|
line-height: 16px;
|
|
27
27
|
padding: 0 4px;
|
|
28
28
|
background-color: #F0F1F5;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-container[data-v-
|
|
2
|
+
.tag-container[data-v-uojvlkc1] {
|
|
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-
|
|
8
|
+
.tag-home[data-v-uojvlkc1] {
|
|
9
9
|
vertical-align: sub;
|
|
10
10
|
flex-shrink: 0;
|
|
11
11
|
}
|
|
12
|
-
[is-show="true"][data-v-
|
|
12
|
+
[is-show="true"][data-v-uojvlkc1] {
|
|
13
13
|
visibility: visible;
|
|
14
14
|
}
|
|
15
|
-
[is-show="false"][data-v-
|
|
15
|
+
[is-show="false"][data-v-uojvlkc1] {
|
|
16
16
|
display: none !important;
|
|
17
17
|
}
|
|
18
|
-
.popover-main[data-v-
|
|
18
|
+
.popover-main[data-v-uojvlkc1] {
|
|
19
19
|
padding: 8px 8px 10px;
|
|
20
20
|
}
|
|
21
|
-
.tag-list[data-v-
|
|
21
|
+
.tag-list[data-v-uojvlkc1] {
|
|
22
22
|
border-radius: 2px;
|
|
23
23
|
background: #F0F1F5;
|
|
24
24
|
}
|