@blueking/ai-ui-sdk 0.4.1-beta.3 → 0.4.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/render-agent/agent-type.vue.css +3 -3
- package/dist/components/render-agent/agent-type.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.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/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 +9 -9
- 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 +9 -6
- package/dist/components/render-collection/actions/index.vue.d.ts +0 -1
- package/dist/components/render-collection/content/index.script.vue.js +2 -1
- package/dist/components/render-collection/content/index.vue.css +4 -4
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.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.script.vue.js.js +6 -6
- 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-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-resource.vue.css +3 -3
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +14 -14
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.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-dropdown/index.vue.d.ts +2 -2
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-knowledge/search/index.script.vue.js.js +31 -26
- package/dist/components/render-knowledge/search/index.vue.d.ts +1 -0
- package/dist/components/render-prompt/actions/index.script.vue.js.js +10 -7
- package/dist/components/render-prompt/actions/index.vue.d.ts +0 -1
- package/dist/components/render-prompt/content/index.vue.css +1 -1
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-select-plus-extension/index.vue.css +3 -3
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-skill/actions/index.script.vue.js.js +9 -12
- package/dist/components/render-skill/actions/index.vue.d.ts +0 -1
- package/dist/components/render-skill/install/index.script.vue.js.js +22 -16
- 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/hooks/use-skill-http.d.ts +2 -2
- package/dist/hooks/use-skill-http.ts.js +2 -2
- package/dist/http/helper/agent.ts.js +2 -2
- package/dist/http/helper/skill.d.ts +2 -1
- package/dist/http/helper/skill.ts.js +8 -0
- package/dist/types/agent.d.ts +2 -2
- package/dist/types/common.d.ts +2 -2
- package/dist/types/enum.d.ts +47 -0
- package/dist/types/enum.ts.js +50 -0
- package/dist/types/skill.d.ts +8 -2
- package/package.json +1 -1
|
@@ -155,10 +155,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
155
155
|
});
|
|
156
156
|
let isRunning = false;
|
|
157
157
|
const successHosts = [];
|
|
158
|
-
const
|
|
158
|
+
const failedTasks = [];
|
|
159
159
|
taskIds.forEach((taskId)=>{
|
|
160
160
|
const taskIdKey = String(taskId);
|
|
161
|
-
|
|
161
|
+
const taskStatus = taskStatusMap[taskIdKey];
|
|
162
|
+
switch(taskStatus.status){
|
|
162
163
|
case SkillInstallTaskStatus.Pending:
|
|
163
164
|
case SkillInstallTaskStatus.Running:
|
|
164
165
|
case SkillInstallTaskStatus.Polling:
|
|
@@ -170,7 +171,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
170
171
|
break;
|
|
171
172
|
case SkillInstallTaskStatus.Failed:
|
|
172
173
|
case SkillInstallTaskStatus.Cancelled:
|
|
173
|
-
|
|
174
|
+
failedTasks.push({
|
|
175
|
+
hostName: taskHostMap[taskIdKey],
|
|
176
|
+
failMsg: taskStatus.failMsg
|
|
177
|
+
});
|
|
174
178
|
break;
|
|
175
179
|
}
|
|
176
180
|
});
|
|
@@ -185,8 +189,10 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
185
189
|
}
|
|
186
190
|
return;
|
|
187
191
|
}
|
|
188
|
-
const
|
|
189
|
-
const
|
|
192
|
+
const successMessage = successHosts.length > 0 ? `安装成功的主机:${successHosts.join('、')}。` : '';
|
|
193
|
+
const failedMessage = failedTasks.length > 0 ? `安装失败的主机:${failedTasks.map((task)=>`${task.hostName}(${task.failMsg})`).join('、')}。` : '';
|
|
194
|
+
const message = successMessage + failedMessage;
|
|
195
|
+
const theme = failedTasks.length > 0 ? 'error' : 'success';
|
|
190
196
|
Message({
|
|
191
197
|
theme,
|
|
192
198
|
message,
|
|
@@ -263,14 +269,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
263
269
|
]),
|
|
264
270
|
default: _withCtx(()=>[
|
|
265
271
|
_createVNode(_component_bk_form, {
|
|
266
|
-
ref_key: "formRef",
|
|
267
|
-
ref: formRef,
|
|
268
|
-
"form-type": "vertical",
|
|
269
|
-
class: "g-small-form g-small-gap-form",
|
|
270
272
|
model: {
|
|
271
273
|
selectedInstallTargetType: selectedInstallTargetType.value,
|
|
272
274
|
selectedOpenclawWindowsInstances: selectedOpenclawWindowsInstances.value
|
|
273
|
-
}
|
|
275
|
+
},
|
|
276
|
+
ref_key: "formRef",
|
|
277
|
+
ref: formRef,
|
|
278
|
+
"form-type": "vertical",
|
|
279
|
+
class: "g-small-form g-small-gap-form"
|
|
274
280
|
}, {
|
|
275
281
|
default: _withCtx(()=>[
|
|
276
282
|
_createVNode(_component_bk_form_item, {
|
|
@@ -288,11 +294,11 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
288
294
|
_createVNode(_component_bk_select, {
|
|
289
295
|
modelValue: selectedInstallTargetType.value,
|
|
290
296
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>selectedInstallTargetType.value = $event),
|
|
291
|
-
"id-key": "targetType",
|
|
292
|
-
"display-key": "displayName",
|
|
293
297
|
list: installTargets.value,
|
|
294
298
|
loading: isLoadingInstallTargets.value,
|
|
295
299
|
clearable: false,
|
|
300
|
+
"id-key": "targetType",
|
|
301
|
+
"display-key": "displayName",
|
|
296
302
|
onChange: handleChangeInstallTargetType
|
|
297
303
|
}, null, 8 /* PROPS */ , [
|
|
298
304
|
"modelValue",
|
|
@@ -310,14 +316,14 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
310
316
|
].includes(selectedInstallTargetType.value) ? (_openBlock(), _createBlock(RenderInstallGuide, {
|
|
311
317
|
key: 0,
|
|
312
318
|
"skill-install-target-type": selectedInstallTargetType.value,
|
|
313
|
-
id: props.selectedSkill.id,
|
|
314
319
|
"api-prefix": props.apiPrefix,
|
|
315
|
-
"space-id": props.spaceId
|
|
320
|
+
"space-id": props.spaceId,
|
|
321
|
+
id: props.selectedSkill.id
|
|
316
322
|
}, null, 8 /* PROPS */ , [
|
|
317
323
|
"skill-install-target-type",
|
|
318
|
-
"id",
|
|
319
324
|
"api-prefix",
|
|
320
|
-
"space-id"
|
|
325
|
+
"space-id",
|
|
326
|
+
"id"
|
|
321
327
|
])) : _createCommentVNode("v-if", true),
|
|
322
328
|
selectedInstallTargetType.value === _unref(SkillInstallTargetType).OpenclawWindows ? (_openBlock(), _createBlock(_component_bk_form_item, {
|
|
323
329
|
key: 1,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.t-t-pagination[data-v-
|
|
2
|
+
.t-t-pagination[data-v-8mnl1q6e] {
|
|
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-8mnl1q6e] .bk-pagination-list.is-last {
|
|
7
7
|
margin-left: auto;
|
|
8
8
|
}
|
|
9
|
-
.pagination-loading[data-v-
|
|
9
|
+
.pagination-loading[data-v-8mnl1q6e]::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-8mnl1q6e] {
|
|
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-8mnl1q6e] {
|
|
26
26
|
display: inline;
|
|
27
27
|
font-size: 12px;
|
|
28
28
|
}
|
|
29
|
-
.t-t-table[data-v-
|
|
29
|
+
.t-t-table[data-v-8mnl1q6e] .t-table__th-cell-inner {
|
|
30
30
|
color: #313238;
|
|
31
31
|
}
|
|
32
|
-
.t-t-table[data-v-
|
|
32
|
+
.t-t-table[data-v-8mnl1q6e] 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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] th .t-table__ellipsis {
|
|
56
56
|
width: auto !important;
|
|
57
57
|
}
|
|
58
|
-
.t-t-table[data-v-
|
|
58
|
+
.t-t-table[data-v-8mnl1q6e] .t-loading__gradient.t-icon-loading {
|
|
59
59
|
display: none;
|
|
60
60
|
}
|
|
61
|
-
.t-t-table[data-v-
|
|
61
|
+
.t-t-table[data-v-8mnl1q6e]: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-8mnl1q6e] .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-8mnl1q6e] .t-table--layout-fixed{
|
|
69
69
|
width: 100% !important;
|
|
70
70
|
}
|
|
71
|
-
.t-t-table[data-v-
|
|
71
|
+
.t-t-table[data-v-8mnl1q6e] .bk-exception-description{
|
|
72
72
|
margin-bottom: 0;
|
|
73
73
|
}
|
|
74
|
-
.t-t-table[data-v-
|
|
74
|
+
.t-t-table[data-v-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-8mnl1q6e] .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-4kk1kd0r] {
|
|
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-4kk1kd0r] {
|
|
8
8
|
height: 32px;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
.tag-tree .quick-icon[data-v-
|
|
11
|
+
.tag-tree .quick-icon[data-v-4kk1kd0r] {
|
|
12
12
|
margin-left: -24px;
|
|
13
13
|
padding-left: 8px;
|
|
14
14
|
}
|
|
15
|
-
.tag-tree[data-v-
|
|
15
|
+
.tag-tree[data-v-4kk1kd0r] .tree-item:has(.bottom-line) {
|
|
16
16
|
border-bottom: 1px solid #F0F1F5;
|
|
17
17
|
}
|
|
18
|
-
.tag-tree[data-v-
|
|
18
|
+
.tag-tree[data-v-4kk1kd0r] .tree-item.active .quick-icon {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
}
|
|
21
|
-
.tag-tree[data-v-
|
|
21
|
+
.tag-tree[data-v-4kk1kd0r] .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-4kk1kd0r] {
|
|
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-qz81aq0a] {
|
|
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-qz81aq0a] {
|
|
9
9
|
vertical-align: sub;
|
|
10
10
|
flex-shrink: 0;
|
|
11
11
|
}
|
|
12
|
-
[is-show="true"][data-v-
|
|
12
|
+
[is-show="true"][data-v-qz81aq0a] {
|
|
13
13
|
visibility: visible;
|
|
14
14
|
}
|
|
15
|
-
[is-show="false"][data-v-
|
|
15
|
+
[is-show="false"][data-v-qz81aq0a] {
|
|
16
16
|
display: none !important;
|
|
17
17
|
}
|
|
18
|
-
.popover-main[data-v-
|
|
18
|
+
.popover-main[data-v-qz81aq0a] {
|
|
19
19
|
padding: 8px 8px 10px;
|
|
20
20
|
}
|
|
21
|
-
.tag-list[data-v-
|
|
21
|
+
.tag-list[data-v-qz81aq0a] {
|
|
22
22
|
border-radius: 2px;
|
|
23
23
|
background: #F0F1F5;
|
|
24
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { IFetchConfig } from '@/http/fetch';
|
|
3
|
-
import type { ISkillApi, ISkillCountParam, ISkillInstallGuide, ISkillListParam, ISkillOpenclawWindowsInstallParam,
|
|
3
|
+
import type { ISkillApi, ISkillCountParam, ISkillInstallGuide, ISkillListParam, ISkillOpenclawWindowsInstallParam, ISkillOpenclawWindowsInstallTaskStatusParam, ISkillOpenclawWindowsInstanceStatusParam } from '@/types/skill';
|
|
4
4
|
export declare const useSkillHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
5
5
|
getSkillList: {
|
|
6
6
|
(param: ISkillListParam, config?: IFetchConfig): Promise<import("@/types/common").IPaginationResponse<import("@/types/skill").ISkill>>;
|
|
@@ -22,7 +22,7 @@ export declare const useSkillHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
22
22
|
getSkillOpenclawWindowsInstancesStatus: (data: ISkillOpenclawWindowsInstanceStatusParam) => Promise<import("@/types/skill").ISkillOpenclawWindowsInstanceStatusMap>;
|
|
23
23
|
installSkillToOpenclawWindows: (data: ISkillOpenclawWindowsInstallParam) => Promise<import("@/types/skill").ISkillOpenclawWindowsInstallTasks>;
|
|
24
24
|
getSkillOpenclawWindowsInstallTasksStatus: {
|
|
25
|
-
(data: ISkillOpenclawWindowsInstallTaskStatusParam): Promise<
|
|
25
|
+
(data: ISkillOpenclawWindowsInstallTaskStatusParam): Promise<import("@/types/skill").ISkillOpenclawWindowsInstallTaskStatusMap>;
|
|
26
26
|
abort(): void;
|
|
27
27
|
};
|
|
28
28
|
getSkillBuildLog: {
|
|
@@ -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 { transferSkillApi2Skill, transferSkillBuildLogApi2SkillBuildLog, transferSkillCount2SkillCountApi, transferSkillInstallGuide2SkillInstallGuideApi, transferSkillInstallTargetApi2SkillInstallTarget, transferSkillOpenclawWindowsInstallParam2SkillOpenclawWindowsInstallParamApi, transferSkillOpenclawWindowsInstallTasksApi2SkillOpenclawWindowsInstallTasks, transferSkillOpenclawWindowsInstallTaskStatusParam2SkillOpenclawWindowsInstallTaskStatusParamApi, transferSkillOpenclawWindowsInstanceApi2SkillOpenclawWindowsInstance, transferSkillOpenclawWindowsInstanceStatusMapApi2SkillOpenclawWindowsInstanceStatusMap, transferSkillOpenclawWindowsInstanceStatusParam2SkillOpenclawWindowsInstanceStatusParamApi } from '../http/helper/skill.ts.js';
|
|
54
|
+
import { transferSkillApi2Skill, transferSkillBuildLogApi2SkillBuildLog, transferSkillCount2SkillCountApi, transferSkillInstallGuide2SkillInstallGuideApi, transferSkillInstallTargetApi2SkillInstallTarget, transferSkillOpenclawWindowsInstallParam2SkillOpenclawWindowsInstallParamApi, transferSkillOpenclawWindowsInstallTasksApi2SkillOpenclawWindowsInstallTasks, transferSkillOpenclawWindowsInstallTaskStatusMapApi2SkillOpenclawWindowsInstallTaskStatusMap, transferSkillOpenclawWindowsInstallTaskStatusParam2SkillOpenclawWindowsInstallTaskStatusParamApi, transferSkillOpenclawWindowsInstanceApi2SkillOpenclawWindowsInstance, transferSkillOpenclawWindowsInstanceStatusMapApi2SkillOpenclawWindowsInstanceStatusMap, transferSkillOpenclawWindowsInstanceStatusParam2SkillOpenclawWindowsInstanceStatusParamApi } from '../http/helper/skill.ts.js';
|
|
55
55
|
import { transferPaginationResponseApi2PaginationResponse, transferReferringAgentApi2ReferringAgent, transferResourceCountApi2ResourceCount, transferSkillParam2SkillParamApi } from '../transforms.ts.js';
|
|
56
56
|
export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
57
57
|
// 获取 Skill 列表
|
|
@@ -129,7 +129,7 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
|
129
129
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
130
130
|
},
|
|
131
131
|
signal
|
|
132
|
-
}));
|
|
132
|
+
}).then(transferSkillOpenclawWindowsInstallTaskStatusMapApi2SkillOpenclawWindowsInstallTaskStatusMap));
|
|
133
133
|
// 获取 Skill 构建日志
|
|
134
134
|
const getSkillBuildLog = withAbort((signal, id, version)=>fetch.get(`${apiPrefix}/skill/v1/skill/${id}/build_log/`, {
|
|
135
135
|
version
|
|
@@ -173,7 +173,7 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
173
173
|
collection_variables: ((_data_promptSetting_collectionVariables = data.promptSetting.collectionVariables) === null || _data_promptSetting_collectionVariables === void 0 ? void 0 : _data_promptSetting_collectionVariables.map(transferVariable2VariableApi)) || [],
|
|
174
174
|
collection_content: data.promptSetting.collectionContent,
|
|
175
175
|
llm_code: data.promptSetting.llmCode,
|
|
176
|
-
|
|
176
|
+
fallback_model: data.promptSetting.fallbackModel,
|
|
177
177
|
temperature: data.promptSetting.temperature,
|
|
178
178
|
context_window: data.promptSetting.contextWindow,
|
|
179
179
|
llm_token_limit: data.promptSetting.llmTokenLimit,
|
|
@@ -239,7 +239,7 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
239
239
|
collectionVariables: ((_data_prompt_setting_collection_variables = data.prompt_setting.collection_variables) === null || _data_prompt_setting_collection_variables === void 0 ? void 0 : _data_prompt_setting_collection_variables.map(transferVariableApi2Variable)) || [],
|
|
240
240
|
collectionContent: data.prompt_setting.collection_content,
|
|
241
241
|
llmCode: data.prompt_setting.llm_code,
|
|
242
|
-
|
|
242
|
+
fallbackModel: data.prompt_setting.fallback_model,
|
|
243
243
|
temperature: data.prompt_setting.temperature,
|
|
244
244
|
contextWindow: data.prompt_setting.context_window,
|
|
245
245
|
llmTokenLimit: data.prompt_setting.llm_token_limit,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ISkill, ISkillApi, ISkillBuildLog, ISkillBuildLogApi, ISkillCountParam, ISkillCountParamApi, ISkillForm, ISkillFormApi, ISkillInstallGuide, ISkillInstallGuideApi, ISkillInstallTarget, ISkillInstallTargetApi, ISkillListParam, ISkillListParamApi, ISkillOpenclawWindowsInstallParam, ISkillOpenclawWindowsInstallParamApi, ISkillOpenclawWindowsInstallTasks, ISkillOpenclawWindowsInstallTasksApi, ISkillOpenclawWindowsInstallTaskStatusParam, ISkillOpenclawWindowsInstallTaskStatusParamApi, ISkillOpenclawWindowsInstance, ISkillOpenclawWindowsInstanceApi, ISkillOpenclawWindowsInstanceStatusMap, ISkillOpenclawWindowsInstanceStatusMapApi, ISkillOpenclawWindowsInstanceStatusParam, ISkillOpenclawWindowsInstanceStatusParamApi } from '@/types/skill';
|
|
1
|
+
import type { ISkill, ISkillApi, ISkillBuildLog, ISkillBuildLogApi, ISkillCountParam, ISkillCountParamApi, ISkillForm, ISkillFormApi, ISkillInstallGuide, ISkillInstallGuideApi, ISkillInstallTarget, ISkillInstallTargetApi, ISkillListParam, ISkillListParamApi, ISkillOpenclawWindowsInstallParam, ISkillOpenclawWindowsInstallParamApi, ISkillOpenclawWindowsInstallTasks, ISkillOpenclawWindowsInstallTasksApi, ISkillOpenclawWindowsInstallTaskStatusMap, ISkillOpenclawWindowsInstallTaskStatusMapApi, ISkillOpenclawWindowsInstallTaskStatusParam, ISkillOpenclawWindowsInstallTaskStatusParamApi, ISkillOpenclawWindowsInstance, ISkillOpenclawWindowsInstanceApi, ISkillOpenclawWindowsInstanceStatusMap, ISkillOpenclawWindowsInstanceStatusMapApi, ISkillOpenclawWindowsInstanceStatusParam, ISkillOpenclawWindowsInstanceStatusParamApi } from '@/types/skill';
|
|
2
2
|
/**
|
|
3
3
|
* ui转换为接口使用(表单字段)
|
|
4
4
|
* @param data ISkillForm
|
|
@@ -43,5 +43,6 @@ export declare const transferSkillOpenclawWindowsInstance2SkillOpenclawWindowsIn
|
|
|
43
43
|
export declare const transferSkillOpenclawWindowsInstallParam2SkillOpenclawWindowsInstallParamApi: (data: ISkillOpenclawWindowsInstallParam) => ISkillOpenclawWindowsInstallParamApi;
|
|
44
44
|
export declare const transferSkillOpenclawWindowsInstallTasksApi2SkillOpenclawWindowsInstallTasks: (data: ISkillOpenclawWindowsInstallTasksApi) => ISkillOpenclawWindowsInstallTasks;
|
|
45
45
|
export declare const transferSkillOpenclawWindowsInstallTaskStatusParam2SkillOpenclawWindowsInstallTaskStatusParamApi: (data: ISkillOpenclawWindowsInstallTaskStatusParam) => ISkillOpenclawWindowsInstallTaskStatusParamApi;
|
|
46
|
+
export declare const transferSkillOpenclawWindowsInstallTaskStatusMapApi2SkillOpenclawWindowsInstallTaskStatusMap: (data: ISkillOpenclawWindowsInstallTaskStatusMapApi) => ISkillOpenclawWindowsInstallTaskStatusMap;
|
|
46
47
|
export declare const transferSkillOpenclawWindowsInstanceStatusParam2SkillOpenclawWindowsInstanceStatusParamApi: (data: ISkillOpenclawWindowsInstanceStatusParam) => ISkillOpenclawWindowsInstanceStatusParamApi;
|
|
47
48
|
export declare const transferSkillOpenclawWindowsInstanceStatusMapApi2SkillOpenclawWindowsInstanceStatusMap: (data: ISkillOpenclawWindowsInstanceStatusMapApi) => ISkillOpenclawWindowsInstanceStatusMap;
|
|
@@ -195,6 +195,14 @@ export const transferSkillOpenclawWindowsInstallTasksApi2SkillOpenclawWindowsIns
|
|
|
195
195
|
export const transferSkillOpenclawWindowsInstallTaskStatusParam2SkillOpenclawWindowsInstallTaskStatusParamApi = (data)=>({
|
|
196
196
|
task_ids: data.taskIds
|
|
197
197
|
});
|
|
198
|
+
export const transferSkillOpenclawWindowsInstallTaskStatusMapApi2SkillOpenclawWindowsInstallTaskStatusMap = (data)=>{
|
|
199
|
+
return Object.entries(data).reduce((result, [taskId, task])=>_object_spread_props(_object_spread({}, result), {
|
|
200
|
+
[taskId]: {
|
|
201
|
+
status: task.status,
|
|
202
|
+
failMsg: task.fail_msg
|
|
203
|
+
}
|
|
204
|
+
}), {});
|
|
205
|
+
};
|
|
198
206
|
export const transferSkillOpenclawWindowsInstanceStatusParam2SkillOpenclawWindowsInstanceStatusParamApi = (data)=>({
|
|
199
207
|
skill_id: data.skillId,
|
|
200
208
|
workspaces: data.workspaces.map(transferSkillOpenclawWindowsInstance2SkillOpenclawWindowsInstanceApi)
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -114,7 +114,7 @@ export interface IAgentFormApi extends IResourceFormCommonApi {
|
|
|
114
114
|
collection_variables?: IVariableApi[];
|
|
115
115
|
collection_content?: IContent[];
|
|
116
116
|
llm_code: string;
|
|
117
|
-
|
|
117
|
+
fallback_model?: string;
|
|
118
118
|
temperature?: number;
|
|
119
119
|
context_window?: number;
|
|
120
120
|
llm_token_limit?: number;
|
|
@@ -172,7 +172,7 @@ export interface IAgentForm extends IResourceFormCommon {
|
|
|
172
172
|
collectionVariables?: IVariable[];
|
|
173
173
|
collectionContent?: IContent[];
|
|
174
174
|
llmCode: string;
|
|
175
|
-
|
|
175
|
+
fallbackModel?: string;
|
|
176
176
|
temperature?: number;
|
|
177
177
|
contextWindow?: number;
|
|
178
178
|
llmTokenLimit?: number;
|
package/dist/types/common.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PrimaryTableCol, TableColumnFilter } from 'tdesign-vue-next';
|
|
2
|
-
import { EnumCharacter, GroupType, OrderMethod, ResourceStatus, TTableFilterType } from './enum';
|
|
2
|
+
import { EnumCharacter, GroupType, OrderMethod, ResourceStatus, SessionPromptRole, TTableFilterType } from './enum';
|
|
3
3
|
import type { IResourcePermission, IResourcePermissionApi } from './permission';
|
|
4
4
|
export interface ITab {
|
|
5
5
|
id?: string | number;
|
|
@@ -133,7 +133,7 @@ export interface IVariableApi {
|
|
|
133
133
|
field_value: string | IContent[];
|
|
134
134
|
}
|
|
135
135
|
export interface IContent {
|
|
136
|
-
role:
|
|
136
|
+
role: SessionPromptRole;
|
|
137
137
|
content: string;
|
|
138
138
|
}
|
|
139
139
|
export interface IVariable {
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
export declare enum SessionPromptRole {
|
|
2
|
+
System = "system",
|
|
3
|
+
Assistant = "assistant",
|
|
4
|
+
User = "user",
|
|
5
|
+
Guide = "guide",
|
|
6
|
+
Pause = "pause",
|
|
7
|
+
UserImage = "user-image",
|
|
8
|
+
Placeholder = "placeholder",
|
|
9
|
+
Hidden = "hidden",
|
|
10
|
+
HiddenUser = "hidden-user",
|
|
11
|
+
HiddenAssistant = "hidden-assistant",
|
|
12
|
+
HiddenSystem = "hidden-system",
|
|
13
|
+
HiddenGuide = "hidden-guide",
|
|
14
|
+
TemplateUser = "template-user",
|
|
15
|
+
TemplateAssistant = "template-assistant",
|
|
16
|
+
TemplateSystem = "template-system",
|
|
17
|
+
TemplateGuide = "template-guide",
|
|
18
|
+
TemplateHidden = "template-hidden"
|
|
19
|
+
}
|
|
20
|
+
export declare enum SessionContentStatus {
|
|
21
|
+
Fail = "fail",
|
|
22
|
+
Loading = "loading",
|
|
23
|
+
Success = "success"
|
|
24
|
+
}
|
|
25
|
+
export declare enum SessionContentRole {
|
|
26
|
+
Ai = "ai",
|
|
27
|
+
User = "user",
|
|
28
|
+
Time = "time",
|
|
29
|
+
System = "system",
|
|
30
|
+
Role = "role",
|
|
31
|
+
Hidden = "hidden",
|
|
32
|
+
Guide = "guide",
|
|
33
|
+
Pause = "pause",
|
|
34
|
+
TokenExpired = "token-expired",
|
|
35
|
+
UserImage = "user-image",
|
|
36
|
+
Placeholder = "placeholder",
|
|
37
|
+
HiddenUser = "hidden-user",
|
|
38
|
+
HiddenAi = "hidden-ai",
|
|
39
|
+
HiddenRole = "hidden-role",
|
|
40
|
+
HiddenGuide = "hidden-guide",
|
|
41
|
+
TemplateUser = "template-user",
|
|
42
|
+
TemplateAi = "template-ai",
|
|
43
|
+
TemplateRole = "template-role",
|
|
44
|
+
TemplateGuide = "template-guide",
|
|
45
|
+
TemplateHidden = "template-hidden",
|
|
46
|
+
ImageNotSupported = "image-not-supported"
|
|
47
|
+
}
|
|
1
48
|
export declare enum HttpErrorCode {
|
|
2
49
|
TokenExpired = "80003",
|
|
3
50
|
ImageNotSupported = "82003",
|
package/dist/types/enum.ts.js
CHANGED
|
@@ -1,3 +1,53 @@
|
|
|
1
|
+
export var SessionPromptRole;
|
|
2
|
+
(function(SessionPromptRole) {
|
|
3
|
+
SessionPromptRole["System"] = "system";
|
|
4
|
+
SessionPromptRole["Assistant"] = "assistant";
|
|
5
|
+
SessionPromptRole["User"] = "user";
|
|
6
|
+
SessionPromptRole["Guide"] = "guide";
|
|
7
|
+
SessionPromptRole["Pause"] = "pause";
|
|
8
|
+
SessionPromptRole["UserImage"] = "user-image";
|
|
9
|
+
SessionPromptRole["Placeholder"] = "placeholder";
|
|
10
|
+
SessionPromptRole["Hidden"] = "hidden";
|
|
11
|
+
SessionPromptRole["HiddenUser"] = "hidden-user";
|
|
12
|
+
SessionPromptRole["HiddenAssistant"] = "hidden-assistant";
|
|
13
|
+
SessionPromptRole["HiddenSystem"] = "hidden-system";
|
|
14
|
+
SessionPromptRole["HiddenGuide"] = "hidden-guide";
|
|
15
|
+
SessionPromptRole["TemplateUser"] = "template-user";
|
|
16
|
+
SessionPromptRole["TemplateAssistant"] = "template-assistant";
|
|
17
|
+
SessionPromptRole["TemplateSystem"] = "template-system";
|
|
18
|
+
SessionPromptRole["TemplateGuide"] = "template-guide";
|
|
19
|
+
SessionPromptRole["TemplateHidden"] = "template-hidden";
|
|
20
|
+
})(SessionPromptRole || (SessionPromptRole = {}));
|
|
21
|
+
export var SessionContentStatus;
|
|
22
|
+
(function(SessionContentStatus) {
|
|
23
|
+
SessionContentStatus["Fail"] = "fail";
|
|
24
|
+
SessionContentStatus["Loading"] = "loading";
|
|
25
|
+
SessionContentStatus["Success"] = "success";
|
|
26
|
+
})(SessionContentStatus || (SessionContentStatus = {}));
|
|
27
|
+
export var SessionContentRole;
|
|
28
|
+
(function(SessionContentRole) {
|
|
29
|
+
SessionContentRole["Ai"] = "ai";
|
|
30
|
+
SessionContentRole["User"] = "user";
|
|
31
|
+
SessionContentRole["Time"] = "time";
|
|
32
|
+
SessionContentRole["System"] = "system";
|
|
33
|
+
SessionContentRole["Role"] = "role";
|
|
34
|
+
SessionContentRole["Hidden"] = "hidden";
|
|
35
|
+
SessionContentRole["Guide"] = "guide";
|
|
36
|
+
SessionContentRole["Pause"] = "pause";
|
|
37
|
+
SessionContentRole["TokenExpired"] = "token-expired";
|
|
38
|
+
SessionContentRole["UserImage"] = "user-image";
|
|
39
|
+
SessionContentRole["Placeholder"] = "placeholder";
|
|
40
|
+
SessionContentRole["HiddenUser"] = "hidden-user";
|
|
41
|
+
SessionContentRole["HiddenAi"] = "hidden-ai";
|
|
42
|
+
SessionContentRole["HiddenRole"] = "hidden-role";
|
|
43
|
+
SessionContentRole["HiddenGuide"] = "hidden-guide";
|
|
44
|
+
SessionContentRole["TemplateUser"] = "template-user";
|
|
45
|
+
SessionContentRole["TemplateAi"] = "template-ai";
|
|
46
|
+
SessionContentRole["TemplateRole"] = "template-role";
|
|
47
|
+
SessionContentRole["TemplateGuide"] = "template-guide";
|
|
48
|
+
SessionContentRole["TemplateHidden"] = "template-hidden";
|
|
49
|
+
SessionContentRole["ImageNotSupported"] = "image-not-supported";
|
|
50
|
+
})(SessionContentRole || (SessionContentRole = {}));
|
|
1
51
|
export var HttpErrorCode;
|
|
2
52
|
(function(HttpErrorCode) {
|
|
3
53
|
HttpErrorCode["TokenExpired"] = "80003";
|
package/dist/types/skill.d.ts
CHANGED
|
@@ -179,8 +179,14 @@ export interface ISkillOpenclawWindowsInstallTaskStatusParam {
|
|
|
179
179
|
export interface ISkillOpenclawWindowsInstallTaskStatusParamApi {
|
|
180
180
|
task_ids: number[];
|
|
181
181
|
}
|
|
182
|
-
export type ISkillOpenclawWindowsInstallTaskStatusMapApi = Record<string,
|
|
183
|
-
|
|
182
|
+
export type ISkillOpenclawWindowsInstallTaskStatusMapApi = Record<string, {
|
|
183
|
+
status: SkillInstallTaskStatus;
|
|
184
|
+
fail_msg?: string;
|
|
185
|
+
}>;
|
|
186
|
+
export type ISkillOpenclawWindowsInstallTaskStatusMap = Record<string, {
|
|
187
|
+
status: SkillInstallTaskStatus;
|
|
188
|
+
failMsg?: string;
|
|
189
|
+
}>;
|
|
184
190
|
export interface ISkillOpenclawWindowsInstanceStatusParam {
|
|
185
191
|
skillId: number;
|
|
186
192
|
workspaces: ISkillOpenclawWindowsInstance[];
|