@blueking/ai-ui-sdk 0.3.0-beta.22 → 0.3.0-beta.23
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-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-collection/content/index.vue.css +4 -4
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- 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 +2 -2
- 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.script.vue.js +2 -1
- package/dist/components/render-dialog/index.vue.css +6 -6
- package/dist/components/render-dialog/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-markdown/filter-css.ts.js +5 -0
- package/dist/components/render-markdown/view.ts.js +3 -0
- package/dist/components/render-prompt/content/index.vue.css +1 -1
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-select-plus-extension/index.vue.css +3 -3
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-skill/install/index.script.vue.js.js +28 -10
- package/dist/components/render-skill/install/{openclaw-linux-guide.script.vue.js.js → install-guide.script.vue.js.js} +10 -4
- package/dist/components/render-skill/install/{openclaw-linux-guide.vue.d.ts → install-guide.vue.d.ts} +2 -0
- package/dist/components/render-skill/install/install-guide.vue.js +3 -0
- package/dist/components/render-skill/install/openclaw-windows-instances.script.vue.js.js +22 -9
- 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 +33 -0
- package/dist/css/g-utilities.manifest.json +3 -0
- package/dist/hooks/use-skill-http.d.ts +2 -2
- package/dist/hooks/use-skill-http.ts.js +2 -2
- package/dist/http/helper/skill.d.ts +2 -1
- package/dist/http/helper/skill.ts.js +3 -0
- package/dist/types/enum.d.ts +2 -1
- package/dist/types/enum.ts.js +1 -0
- package/dist/types/skill.d.ts +6 -0
- package/package.json +1 -1
- package/dist/components/render-skill/install/openclaw-linux-guide.vue.js +0 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.t-t-pagination[data-v-
|
|
2
|
+
.t-t-pagination[data-v-wsspcyvu] {
|
|
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-wsspcyvu] .bk-pagination-list.is-last {
|
|
7
7
|
margin-left: auto;
|
|
8
8
|
}
|
|
9
|
-
.pagination-loading[data-v-
|
|
9
|
+
.pagination-loading[data-v-wsspcyvu]::after {
|
|
10
10
|
content: '';
|
|
11
11
|
position: absolute;
|
|
12
12
|
top: 0;
|
|
@@ -16,93 +16,93 @@
|
|
|
16
16
|
background-color: rgba(255, 255, 255, 0.6);
|
|
17
17
|
z-index: 72;
|
|
18
18
|
}
|
|
19
|
-
.pagination-border[data-v-
|
|
19
|
+
.pagination-border[data-v-wsspcyvu] {
|
|
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-wsspcyvu] {
|
|
26
26
|
display: inline;
|
|
27
27
|
font-size: 12px;
|
|
28
28
|
}
|
|
29
|
-
.t-t-table[data-v-
|
|
29
|
+
.t-t-table[data-v-wsspcyvu] .t-table__th-cell-inner {
|
|
30
30
|
color: #313238;
|
|
31
31
|
}
|
|
32
|
-
.t-t-table[data-v-
|
|
32
|
+
.t-t-table[data-v-wsspcyvu] 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-wsspcyvu] .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-wsspcyvu] .t-table__body tr td {
|
|
42
42
|
padding: 0 16px;
|
|
43
43
|
height: 40px;
|
|
44
44
|
background-color: #fff;
|
|
45
45
|
}
|
|
46
|
-
.t-t-table[data-v-
|
|
46
|
+
.t-t-table[data-v-wsspcyvu] .t-table__body tr:hover td {
|
|
47
47
|
background-color: #f5f7fa !important;
|
|
48
48
|
color: #63656E;
|
|
49
49
|
}
|
|
50
|
-
.t-t-table[data-v-
|
|
50
|
+
.t-t-table[data-v-wsspcyvu] .t-table__content .t-table__body .t-table__empty-row {
|
|
51
51
|
background-color: #fff !important;
|
|
52
52
|
}
|
|
53
|
-
.t-t-table[data-v-
|
|
53
|
+
.t-t-table[data-v-wsspcyvu] .t-table__content .t-table__body .t-table__empty-row >td {
|
|
54
54
|
border: none;
|
|
55
55
|
}
|
|
56
|
-
.t-t-table[data-v-
|
|
56
|
+
.t-t-table[data-v-wsspcyvu] th .t-table__ellipsis {
|
|
57
57
|
width: auto !important;
|
|
58
58
|
}
|
|
59
|
-
.t-t-table[data-v-
|
|
59
|
+
.t-t-table[data-v-wsspcyvu] .t-loading__gradient.t-icon-loading {
|
|
60
60
|
display: none;
|
|
61
61
|
}
|
|
62
|
-
.t-t-table[data-v-
|
|
62
|
+
.t-t-table[data-v-wsspcyvu]:first-of-type .t-table__affixed-header-elm-wrap{
|
|
63
63
|
width: calc(100% - 6px) !important;
|
|
64
64
|
}
|
|
65
|
-
.t-t-table[data-v-
|
|
65
|
+
.t-t-table[data-v-wsspcyvu] .t-table__affixed-header-elm-wrap>div {
|
|
66
66
|
width: 100% !important;
|
|
67
67
|
scrollbar-width: none;
|
|
68
68
|
}
|
|
69
|
-
.t-t-table[data-v-
|
|
69
|
+
.t-t-table[data-v-wsspcyvu] .t-table--layout-fixed{
|
|
70
70
|
width: 100% !important;
|
|
71
71
|
}
|
|
72
|
-
.t-t-table[data-v-
|
|
72
|
+
.t-t-table[data-v-wsspcyvu] .bk-exception-description{
|
|
73
73
|
margin-bottom: 0;
|
|
74
74
|
}
|
|
75
|
-
.t-t-table[data-v-
|
|
75
|
+
.t-t-table[data-v-wsspcyvu] .t-table__content{
|
|
76
76
|
z-index: 2;
|
|
77
77
|
max-height: 100%;
|
|
78
78
|
overflow: auto;
|
|
79
79
|
}
|
|
80
|
-
.t-t-table[data-v-
|
|
80
|
+
.t-t-table[data-v-wsspcyvu] .t-table__content::-webkit-scrollbar {
|
|
81
81
|
width: 6px;
|
|
82
82
|
height: 6px;
|
|
83
83
|
}
|
|
84
|
-
.t-t-table[data-v-
|
|
84
|
+
.t-t-table[data-v-wsspcyvu] .t-table__content::-webkit-scrollbar-thumb {
|
|
85
85
|
width: 6px;
|
|
86
86
|
height: 6px;
|
|
87
87
|
border-radius: 3px;
|
|
88
88
|
background-color: #dcdee5;
|
|
89
89
|
}
|
|
90
|
-
.t-t-table[data-v-
|
|
90
|
+
.t-t-table[data-v-wsspcyvu] .t-table__content::-webkit-scrollbar-thumb:hover {
|
|
91
91
|
background-color: #979ba5;
|
|
92
92
|
}
|
|
93
|
-
.t-t-table[data-v-
|
|
93
|
+
.t-t-table[data-v-wsspcyvu] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
|
|
94
94
|
line-height: 100%;
|
|
95
95
|
}
|
|
96
|
-
.t-t-table[data-v-
|
|
96
|
+
.t-t-table[data-v-wsspcyvu] .t-table__cell--sort-trigger.t-table__double-icons{
|
|
97
97
|
gap: 5px;
|
|
98
98
|
}
|
|
99
|
-
.t-t-table[data-v-
|
|
99
|
+
.t-t-table[data-v-wsspcyvu] .t-table__sort-icon--active>i{
|
|
100
100
|
color: #3a84ff !important;
|
|
101
101
|
}
|
|
102
|
-
.t-t-table[data-v-
|
|
102
|
+
.t-t-table[data-v-wsspcyvu] .t-table__cell--fixed-left:has(.checkbox){
|
|
103
103
|
line-height: 100%;
|
|
104
104
|
}
|
|
105
|
-
.t-t-table[data-v-
|
|
105
|
+
.t-t-table[data-v-wsspcyvu] .t-table__filter-icon.t-is-focus>span{
|
|
106
106
|
color: #3a84ff !important;
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
.tag-tree[data-v-
|
|
2
|
+
.tag-tree[data-v-88cmcen2] {
|
|
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-88cmcen2] {
|
|
8
8
|
height: 32px;
|
|
9
9
|
flex: 1;
|
|
10
10
|
}
|
|
11
|
-
.tag-tree .quick-icon[data-v-
|
|
11
|
+
.tag-tree .quick-icon[data-v-88cmcen2] {
|
|
12
12
|
margin-left: -24px;
|
|
13
13
|
padding-left: 8px;
|
|
14
14
|
}
|
|
15
|
-
.tag-tree[data-v-
|
|
15
|
+
.tag-tree[data-v-88cmcen2] .tree-item:has(.bottom-line) {
|
|
16
16
|
border-bottom: 1px solid #F0F1F5;
|
|
17
17
|
}
|
|
18
|
-
.tag-tree[data-v-
|
|
18
|
+
.tag-tree[data-v-88cmcen2] .tree-item.active .quick-icon {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
}
|
|
21
|
-
.tag-tree[data-v-
|
|
21
|
+
.tag-tree[data-v-88cmcen2] .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-88cmcen2] {
|
|
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-t6kr3t0l] {
|
|
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-t6kr3t0l] {
|
|
9
9
|
vertical-align: sub;
|
|
10
10
|
flex-shrink: 0;
|
|
11
11
|
}
|
|
12
|
-
[is-show="true"][data-v-
|
|
12
|
+
[is-show="true"][data-v-t6kr3t0l] {
|
|
13
13
|
visibility: visible;
|
|
14
14
|
}
|
|
15
|
-
[is-show="false"][data-v-
|
|
15
|
+
[is-show="false"][data-v-t6kr3t0l] {
|
|
16
16
|
display: none !important;
|
|
17
17
|
}
|
|
18
|
-
.popover-main[data-v-
|
|
18
|
+
.popover-main[data-v-t6kr3t0l] {
|
|
19
19
|
padding: 8px 8px 10px;
|
|
20
20
|
}
|
|
21
|
-
.tag-list[data-v-
|
|
21
|
+
.tag-list[data-v-t6kr3t0l] {
|
|
22
22
|
border-radius: 2px;
|
|
23
23
|
background: #F0F1F5;
|
|
24
24
|
}
|
package/dist/css/g-utilities.css
CHANGED
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
margin-bottom: 16px !important;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
.\!g-mb-6 {
|
|
87
|
+
margin-bottom: 6px !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
86
90
|
.\!g-mr-12 {
|
|
87
91
|
margin-right: 12px !important;
|
|
88
92
|
}
|
|
@@ -217,6 +221,31 @@
|
|
|
217
221
|
}
|
|
218
222
|
}
|
|
219
223
|
|
|
224
|
+
.g-disabled {
|
|
225
|
+
cursor: not-allowed;
|
|
226
|
+
color: #dcdee5;
|
|
227
|
+
|
|
228
|
+
&.bk-button-primary:not(.is-text) {
|
|
229
|
+
background-color: #dcdee5;
|
|
230
|
+
color: #fff;
|
|
231
|
+
border-color: #dcdee5;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.bk-button:not(.is-text) {
|
|
235
|
+
color: var(--disable-color);
|
|
236
|
+
border-color: var(--disable-color);
|
|
237
|
+
background-color: var(--disable-bg-color);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.bkaidev-icon {
|
|
241
|
+
color: #c4c6cc;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.g-disabled-text {
|
|
245
|
+
color: #dcdee5;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
220
249
|
.g-ellipsis {
|
|
221
250
|
white-space: nowrap;
|
|
222
251
|
overflow: hidden;
|
|
@@ -447,6 +476,10 @@
|
|
|
447
476
|
margin-bottom: 8px;
|
|
448
477
|
}
|
|
449
478
|
|
|
479
|
+
.g-min-h-98 {
|
|
480
|
+
min-height: 98px;
|
|
481
|
+
}
|
|
482
|
+
|
|
450
483
|
.g-min-w-16 {
|
|
451
484
|
min-width: 16px;
|
|
452
485
|
}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"!g-justify-between",
|
|
16
16
|
"!g-mb-10",
|
|
17
17
|
"!g-mb-16",
|
|
18
|
+
"!g-mb-6",
|
|
18
19
|
"!g-mr-12",
|
|
19
20
|
"!g-mt-16",
|
|
20
21
|
"!g-no-validate-form-item",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"g-cursor-grab",
|
|
42
43
|
"g-cursor-pointer",
|
|
43
44
|
"g-deleted-resource",
|
|
45
|
+
"g-disabled",
|
|
44
46
|
"g-ellipsis",
|
|
45
47
|
"g-exception",
|
|
46
48
|
"g-fill-3a84ff",
|
|
@@ -86,6 +88,7 @@
|
|
|
86
88
|
"g-mb-40",
|
|
87
89
|
"g-mb-6",
|
|
88
90
|
"g-mb-8",
|
|
91
|
+
"g-min-h-98",
|
|
89
92
|
"g-min-w-16",
|
|
90
93
|
"g-ml-10",
|
|
91
94
|
"g-ml-12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { IFetchConfig } from '@/http/fetch';
|
|
3
|
-
import type { ISkillApi, ISkillCountParam, ISkillListParam, ISkillOpenclawWindowsInstallParam, ISkillOpenclawWindowsInstallTaskStatusMapApi, ISkillOpenclawWindowsInstallTaskStatusParam, ISkillOpenclawWindowsInstanceStatusParam } from '@/types/skill';
|
|
3
|
+
import type { ISkillApi, ISkillCountParam, ISkillInstallGuide, ISkillListParam, ISkillOpenclawWindowsInstallParam, ISkillOpenclawWindowsInstallTaskStatusMapApi, 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>>;
|
|
@@ -14,7 +14,7 @@ export declare const useSkillHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
14
14
|
deleteSkill: (id: number) => Promise<ISkillApi>;
|
|
15
15
|
downloadSkill: (id: number) => Promise<import("@/types/skill").ISkill>;
|
|
16
16
|
restoreSkill: (id: number) => Promise<unknown>;
|
|
17
|
-
getSkillInstallGuide: (id: number) => Promise<{
|
|
17
|
+
getSkillInstallGuide: (id: number, param: ISkillInstallGuide) => Promise<{
|
|
18
18
|
markdown: string;
|
|
19
19
|
}>;
|
|
20
20
|
getSkillInstallTargets: () => Promise<import("@/types/skill").ISkillInstallTarget[]>;
|
|
@@ -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, transferSkillInstallTargetApi2SkillInstallTarget, transferSkillOpenclawWindowsInstallParam2SkillOpenclawWindowsInstallParamApi, transferSkillOpenclawWindowsInstallTasksApi2SkillOpenclawWindowsInstallTasks, transferSkillOpenclawWindowsInstallTaskStatusParam2SkillOpenclawWindowsInstallTaskStatusParamApi, transferSkillOpenclawWindowsInstanceApi2SkillOpenclawWindowsInstance, transferSkillOpenclawWindowsInstanceStatusMapApi2SkillOpenclawWindowsInstanceStatusMap, transferSkillOpenclawWindowsInstanceStatusParam2SkillOpenclawWindowsInstanceStatusParamApi } from '../http/helper/skill.ts.js';
|
|
54
|
+
import { transferSkillApi2Skill, transferSkillBuildLogApi2SkillBuildLog, transferSkillCount2SkillCountApi, transferSkillInstallGuide2SkillInstallGuideApi, transferSkillInstallTargetApi2SkillInstallTarget, transferSkillOpenclawWindowsInstallParam2SkillOpenclawWindowsInstallParamApi, transferSkillOpenclawWindowsInstallTasksApi2SkillOpenclawWindowsInstallTasks, 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 列表
|
|
@@ -94,7 +94,7 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
|
94
94
|
}
|
|
95
95
|
}).then(transferSkillApi2Skill);
|
|
96
96
|
// 获取 Skill 安装指南
|
|
97
|
-
const getSkillInstallGuide = (id)=>fetch.get(`${apiPrefix}/skill/v1/skill/${id}/install_guide/`,
|
|
97
|
+
const getSkillInstallGuide = (id, param)=>fetch.get(`${apiPrefix}/skill/v1/skill/${id}/install_guide/`, transferSkillInstallGuide2SkillInstallGuideApi(param), {
|
|
98
98
|
headers: {
|
|
99
99
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
100
100
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ISkill, ISkillApi, ISkillBuildLog, ISkillBuildLogApi, ISkillCountParam, ISkillCountParamApi, ISkillForm, ISkillFormApi, 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, ISkillOpenclawWindowsInstallTaskStatusParam, ISkillOpenclawWindowsInstallTaskStatusParamApi, ISkillOpenclawWindowsInstance, ISkillOpenclawWindowsInstanceApi, ISkillOpenclawWindowsInstanceStatusMap, ISkillOpenclawWindowsInstanceStatusMapApi, ISkillOpenclawWindowsInstanceStatusParam, ISkillOpenclawWindowsInstanceStatusParamApi } from '@/types/skill';
|
|
2
2
|
/**
|
|
3
3
|
* ui转换为接口使用(表单字段)
|
|
4
4
|
* @param data ISkillForm
|
|
@@ -36,6 +36,7 @@ export declare const transferSkillBuildLogApi2SkillBuildLog: (data: ISkillBuildL
|
|
|
36
36
|
* @returns ISkillListParamApi
|
|
37
37
|
*/
|
|
38
38
|
export declare const transferSkillParam2SkillParamApi: (data: ISkillListParam) => ISkillListParamApi;
|
|
39
|
+
export declare const transferSkillInstallGuide2SkillInstallGuideApi: (data: ISkillInstallGuide) => ISkillInstallGuideApi;
|
|
39
40
|
export declare const transferSkillInstallTargetApi2SkillInstallTarget: (data: ISkillInstallTargetApi) => ISkillInstallTarget;
|
|
40
41
|
export declare const transferSkillOpenclawWindowsInstanceApi2SkillOpenclawWindowsInstance: (data: ISkillOpenclawWindowsInstanceApi) => ISkillOpenclawWindowsInstance;
|
|
41
42
|
export declare const transferSkillOpenclawWindowsInstance2SkillOpenclawWindowsInstanceApi: (data: ISkillOpenclawWindowsInstance) => ISkillOpenclawWindowsInstanceApi;
|
|
@@ -163,6 +163,9 @@ export const transferSkillCount2SkillCountApi = (data)=>{
|
|
|
163
163
|
can_apply: data.canApply,
|
|
164
164
|
space_id: data.spaceId
|
|
165
165
|
});
|
|
166
|
+
export const transferSkillInstallGuide2SkillInstallGuideApi = (data)=>({
|
|
167
|
+
target_type: data.targetType
|
|
168
|
+
});
|
|
166
169
|
export const transferSkillInstallTargetApi2SkillInstallTarget = (data)=>({
|
|
167
170
|
targetType: data.target_type,
|
|
168
171
|
displayName: data.display_name
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -93,7 +93,8 @@ export declare enum SkillStatus {
|
|
|
93
93
|
}
|
|
94
94
|
export declare enum SkillInstallTargetType {
|
|
95
95
|
OpenclawWindows = "openclaw_windows",
|
|
96
|
-
OpenclawLinux = "openclaw_linux"
|
|
96
|
+
OpenclawLinux = "openclaw_linux",
|
|
97
|
+
Cursor = "cursor"
|
|
97
98
|
}
|
|
98
99
|
export declare enum SkillInstallTaskStatus {
|
|
99
100
|
Pending = "pending",
|
package/dist/types/enum.ts.js
CHANGED
|
@@ -105,6 +105,7 @@ export var SkillInstallTargetType;
|
|
|
105
105
|
(function(SkillInstallTargetType) {
|
|
106
106
|
SkillInstallTargetType["OpenclawWindows"] = "openclaw_windows";
|
|
107
107
|
SkillInstallTargetType["OpenclawLinux"] = "openclaw_linux";
|
|
108
|
+
SkillInstallTargetType["Cursor"] = "cursor";
|
|
108
109
|
})(SkillInstallTargetType || (SkillInstallTargetType = {}));
|
|
109
110
|
export var SkillInstallTaskStatus;
|
|
110
111
|
(function(SkillInstallTaskStatus) {
|
package/dist/types/skill.d.ts
CHANGED
|
@@ -131,6 +131,12 @@ export interface ISkillBuildLog {
|
|
|
131
131
|
startedAt: string;
|
|
132
132
|
completedAt: string;
|
|
133
133
|
}
|
|
134
|
+
export interface ISkillInstallGuideApi {
|
|
135
|
+
target_type: SkillInstallTargetType;
|
|
136
|
+
}
|
|
137
|
+
export interface ISkillInstallGuide {
|
|
138
|
+
targetType: SkillInstallTargetType;
|
|
139
|
+
}
|
|
134
140
|
export interface ISkillInstallTargetApi {
|
|
135
141
|
target_type: SkillInstallTargetType;
|
|
136
142
|
display_name: string;
|
package/package.json
CHANGED