@blueking/ai-ui-sdk 0.4.1-beta.2 → 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.
Files changed (132) hide show
  1. package/dist/components/render-agent/agent-search.script.vue.js.js +1 -1
  2. package/dist/components/render-agent/agent-type.vue.css +3 -3
  3. package/dist/components/render-agent/agent-type.vue.js +1 -1
  4. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  5. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  6. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  7. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  8. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  9. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  10. package/dist/components/render-card/base/approval-strategy-popover.script.vue.js.js +7 -7
  11. package/dist/components/render-card/base.vue.css +12 -12
  12. package/dist/components/render-card/base.vue.js +1 -1
  13. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  14. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  15. package/dist/components/render-card/llm/icons.vue.css +2 -2
  16. package/dist/components/render-card/llm/icons.vue.js +1 -1
  17. package/dist/components/render-card/llm/info.vue.css +1 -1
  18. package/dist/components/render-card/llm/info.vue.js +1 -1
  19. package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
  20. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  21. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  22. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  23. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  24. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  25. package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
  26. package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
  27. package/dist/components/render-card/tool/actions.script.vue.js.js +9 -9
  28. package/dist/components/render-card/tool/prefix-info-tool.script.vue.js.js +1 -1
  29. package/dist/components/render-checkbox/index.vue.css +9 -9
  30. package/dist/components/render-checkbox/index.vue.js +1 -1
  31. package/dist/components/render-choose-tag/index.vue.css +7 -7
  32. package/dist/components/render-choose-tag/index.vue.js +1 -1
  33. package/dist/components/render-collapse/index.vue.css +2 -2
  34. package/dist/components/render-collapse/index.vue.js +1 -1
  35. package/dist/components/render-collection/actions/index.script.vue.js.js +9 -6
  36. package/dist/components/render-collection/actions/index.vue.d.ts +0 -1
  37. package/dist/components/render-collection/content/index.script.vue.js +2 -1
  38. package/dist/components/render-collection/content/index.vue.css +4 -4
  39. package/dist/components/render-collection/content/index.vue.js +1 -1
  40. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  41. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  42. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
  43. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
  44. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  45. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
  46. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
  47. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  48. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  49. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  50. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  51. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  52. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  53. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  54. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  55. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  56. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  57. package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +6 -6
  58. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  59. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  60. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  61. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  62. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  63. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  64. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  65. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  66. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  67. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  68. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  69. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  70. package/dist/components/render-dataset-list/index.vue.css +2 -2
  71. package/dist/components/render-dataset-list/index.vue.js +1 -1
  72. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  73. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  74. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  75. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  76. package/dist/components/render-dialog/choose-space.vue.css +9 -9
  77. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  78. package/dist/components/render-dialog/index.vue.css +6 -6
  79. package/dist/components/render-dialog/index.vue.js +1 -1
  80. package/dist/components/render-dropdown/index.vue.d.ts +2 -2
  81. package/dist/components/render-file-card/index.vue.css +11 -11
  82. package/dist/components/render-file-card/index.vue.js +1 -1
  83. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  84. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  85. package/dist/components/render-generate-tag/index.vue.css +5 -5
  86. package/dist/components/render-generate-tag/index.vue.js +1 -1
  87. package/dist/components/render-header/index.vue.css +3 -3
  88. package/dist/components/render-header/index.vue.js +1 -1
  89. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  90. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  91. package/dist/components/render-knowledge/search/index.script.vue.js.js +31 -26
  92. package/dist/components/render-knowledge/search/index.vue.d.ts +1 -0
  93. package/dist/components/render-prompt/actions/index.script.vue.js.js +10 -7
  94. package/dist/components/render-prompt/actions/index.vue.d.ts +0 -1
  95. package/dist/components/render-prompt/content/index.vue.css +1 -1
  96. package/dist/components/render-prompt/content/index.vue.js +1 -1
  97. package/dist/components/render-reference/index.vue.css +2 -2
  98. package/dist/components/render-reference/index.vue.js +1 -1
  99. package/dist/components/render-resource-version/index.vue.css +2 -2
  100. package/dist/components/render-resource-version/index.vue.js +1 -1
  101. package/dist/components/render-router-tab/index.script.vue.js.js +2 -2
  102. package/dist/components/render-router-tab/index.vue.css +3 -3
  103. package/dist/components/render-router-tab/index.vue.js +1 -1
  104. package/dist/components/render-search-select/index.script.vue.js.js +6 -6
  105. package/dist/components/render-search-select/index.vue.d.ts +1 -1
  106. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  107. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  108. package/dist/components/render-skill/actions/index.script.vue.js.js +9 -12
  109. package/dist/components/render-skill/actions/index.vue.d.ts +0 -1
  110. package/dist/components/render-skill/install/index.script.vue.js.js +22 -16
  111. package/dist/components/render-t-table/index.vue.css +27 -27
  112. package/dist/components/render-t-table/index.vue.js +1 -1
  113. package/dist/components/render-tag-tree/index.vue.css +7 -7
  114. package/dist/components/render-tag-tree/index.vue.js +1 -1
  115. package/dist/components/render-tags/index.vue.css +6 -6
  116. package/dist/components/render-tags/index.vue.js +1 -1
  117. package/dist/components/render-tree/index.script.vue.js +3 -3
  118. package/dist/hooks/use-scroll-load.d.ts +1 -0
  119. package/dist/hooks/use-scroll-load.ts.js +2 -1
  120. package/dist/hooks/use-skill-http.d.ts +2 -2
  121. package/dist/hooks/use-skill-http.ts.js +2 -2
  122. package/dist/http/helper/agent.ts.js +2 -2
  123. package/dist/http/helper/permission.ts.js +0 -4
  124. package/dist/http/helper/skill.d.ts +2 -1
  125. package/dist/http/helper/skill.ts.js +8 -0
  126. package/dist/types/agent.d.ts +2 -2
  127. package/dist/types/common.d.ts +2 -2
  128. package/dist/types/enum.d.ts +47 -2
  129. package/dist/types/enum.ts.js +50 -2
  130. package/dist/types/permission.d.ts +0 -4
  131. package/dist/types/skill.d.ts +8 -2
  132. package/package.json +1 -1
@@ -273,14 +273,14 @@ export default /*@__PURE__*/ _defineComponent({
273
273
  const _component_bk_cascader = _resolveComponent("bk-cascader");
274
274
  return _openBlock(), _createElementBlock("section", _hoisted_1, [
275
275
  _createVNode(_component_bk_search_select, {
276
- "unique-select": "",
277
- class: "g-flex-1",
278
276
  "value-behavior": getBehaviorValue(),
279
277
  "model-value": renderSearchSelectValue.value,
280
278
  data: __props.data,
281
279
  placeholder: __props.placeholder,
282
280
  "validate-values": __props.validateValues,
283
281
  "get-menu-list": __props.getMenuList,
282
+ "unique-select": "",
283
+ class: "g-flex-1",
284
284
  "onUpdate:modelValue": handleUpdateSearchSelectValue
285
285
  }, null, 8 /* PROPS */ , [
286
286
  "value-behavior",
@@ -292,15 +292,15 @@ export default /*@__PURE__*/ _defineComponent({
292
292
  ]),
293
293
  __props.isShowTagSearch ? (_openBlock(), _createBlock(_component_bk_cascader, {
294
294
  key: 0,
295
+ "show-complete-name": false,
296
+ loading: isLoadingTagList.value,
297
+ list: tagList.value,
298
+ "model-value": getTagIds(),
295
299
  class: "g-w-200 g-ml-8",
296
300
  clearable: "",
297
301
  placeholder: "搜索标签",
298
302
  "id-key": "tagId",
299
303
  "name-key": "tagName",
300
- "show-complete-name": false,
301
- loading: isLoadingTagList.value,
302
- list: tagList.value,
303
- "model-value": getTagIds(),
304
304
  "onUpdate:modelValue": handleUpdateCascaderValue
305
305
  }, null, 8 /* PROPS */ , [
306
306
  "loading",
@@ -14,7 +14,7 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
14
14
  }[]) => Promise<boolean | string> | boolean | string;
15
15
  getMenuList?: Function;
16
16
  isShowTagSearch?: boolean;
17
- apiPrefix: string;
17
+ apiPrefix?: string;
18
18
  spaceId?: string;
19
19
  module?: Module;
20
20
  fuzzyKey?: string;
@@ -1,5 +1,5 @@
1
1
 
2
- .select-plus-extension[data-v-cfjx8bhx] {
2
+ .select-plus-extension[data-v-5yokldgl] {
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-cfjx8bhx] {
11
+ .select-plus-extension .ai-ui-sdk-icon[data-v-5yokldgl] {
12
12
  font-size: 14px;
13
13
  margin-right: 6px;
14
14
  }
15
- .select-plus-extension[data-v-cfjx8bhx]:hover {
15
+ .select-plus-extension[data-v-5yokldgl]:hover {
16
16
  color: #3A84FF;
17
17
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-cfjx8bhx";
2
+ script.__scopeId = "data-v-5yokldgl";
3
3
  script.__file = "./src/components/render-select-plus-extension/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -23,9 +23,6 @@ export default /*@__PURE__*/ _defineComponent({
23
23
  props: {
24
24
  skill: {},
25
25
  type: {},
26
- isView: {
27
- type: Boolean
28
- },
29
26
  spaceId: {},
30
27
  apiPrefix: {}
31
28
  },
@@ -180,10 +177,10 @@ export default /*@__PURE__*/ _defineComponent({
180
177
  }, [
181
178
  getIsCurrentSpace() && getIsFullType() ? _withDirectives((_openBlock(), _createBlock(_component_bk_button, {
182
179
  key: 0,
183
- size: "small",
184
180
  class: _normalizeClass({
185
181
  '!g-disabled': !((__props_skill_permission = __props.skill.permission) === null || __props_skill_permission === void 0 ? void 0 : __props_skill_permission.manageSkill)
186
182
  }),
183
+ size: "small",
187
184
  onMouseenter: handleManagePermissionMouseEnter,
188
185
  onMousemove: handleManagePermissionMouseMove,
189
186
  onMouseleave: _unref(handleMouseLeave),
@@ -305,9 +302,9 @@ export default /*@__PURE__*/ _defineComponent({
305
302
  ]),
306
303
  getIsFullType() ? (_openBlock(), _createElementBlock("li", _hoisted_3, [
307
304
  _createVNode(_component_bk_button, {
305
+ loading: isDownloadingSkill.value,
308
306
  size: "small",
309
307
  text: "",
310
- loading: isDownloadingSkill.value,
311
308
  onClick: _withModifiers(handleDownload, [
312
309
  "stop"
313
310
  ])
@@ -324,17 +321,17 @@ export default /*@__PURE__*/ _defineComponent({
324
321
  ])) : _createCommentVNode("v-if", true),
325
322
  getIsCurrentSpace() && getIsFullType() ? (_openBlock(), _createBlock(_component_bk_pop_confirm, {
326
323
  key: 1,
324
+ boundary: `.skill-card-menu-${__props.skill.id}`,
325
+ "confirm-config": {
326
+ loading: isDeletingSkill.value
327
+ },
328
+ "is-show": isShowDelete.value,
327
329
  trigger: "manual",
328
330
  title: "确认归档该 Skill?",
329
331
  content: "归档后可在【已归档的 Skill】中恢复",
330
332
  "ext-cls": "g-confirm-delete",
331
333
  placement: "right",
332
334
  width: "280",
333
- boundary: `.skill-card-menu-${__props.skill.id}`,
334
- "confirm-config": {
335
- loading: isDeletingSkill.value
336
- },
337
- "is-show": isShowDelete.value,
338
335
  onConfirm: handleDelete,
339
336
  onCancel: handleHideDelete
340
337
  }, {
@@ -368,19 +365,19 @@ export default /*@__PURE__*/ _defineComponent({
368
365
  ], 64 /* STABLE_FRAGMENT */ )) : _createCommentVNode("v-if", true),
369
366
  getIsCurrentSpace() && getIsFullType() && !getIsNotDeleted() ? (_openBlock(), _createBlock(_component_bk_pop_confirm, {
370
367
  key: 2,
368
+ "is-show": isShowRestore.value,
371
369
  trigger: "manual",
372
370
  placement: "top",
373
371
  title: "确认恢复该 Skill?",
374
372
  width: "280",
375
- "is-show": isShowRestore.value,
376
373
  onConfirm: handleRestore,
377
374
  onCancel: handleHideRestore
378
375
  }, {
379
376
  default: _withCtx(()=>[
380
377
  _withDirectives((_openBlock(), _createBlock(_component_bk_button, {
381
- size: "small",
382
378
  disabled: !__props.skill.permission.manageSkill,
383
379
  loading: isRestoringSkill.value,
380
+ size: "small",
384
381
  onClick: _withModifiers(handleShowRestore, [
385
382
  "stop"
386
383
  ])
@@ -4,7 +4,6 @@ import type { ISkill } from '@/types/skill';
4
4
  interface IProps {
5
5
  skill: ISkill;
6
6
  type: ResourceCardType;
7
- isView?: boolean;
8
7
  spaceId?: string;
9
8
  apiPrefix: string;
10
9
  }
@@ -155,10 +155,11 @@ export default /*@__PURE__*/ _defineComponent({
155
155
  });
156
156
  let isRunning = false;
157
157
  const successHosts = [];
158
- const failedHosts = [];
158
+ const failedTasks = [];
159
159
  taskIds.forEach((taskId)=>{
160
160
  const taskIdKey = String(taskId);
161
- switch(taskStatusMap[taskIdKey]){
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
- failedHosts.push(taskHostMap[taskIdKey]);
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 message = `${successHosts.length > 0 ? `安装成功的主机:${successHosts.join('、')}。` : ''}${failedHosts.length > 0 ? `安装失败的主机:${failedHosts.join('、')}` : ''}`;
189
- const theme = successHosts.length > 0 ? 'success' : 'error';
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-eddr8fa8] {
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-eddr8fa8] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-8mnl1q6e] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-eddr8fa8]::after {
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-eddr8fa8] {
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-eddr8fa8] {
25
+ .t-t-table[data-v-8mnl1q6e] {
26
26
  display: inline;
27
27
  font-size: 12px;
28
28
  }
29
- .t-t-table[data-v-eddr8fa8] .t-table__th-cell-inner {
29
+ .t-t-table[data-v-8mnl1q6e] .t-table__th-cell-inner {
30
30
  color: #313238;
31
31
  }
32
- .t-t-table[data-v-eddr8fa8] th {
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-eddr8fa8] .t-table__body tr {
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-eddr8fa8] .t-table__body tr td {
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-eddr8fa8] .t-table__body tr:hover td {
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-eddr8fa8] .t-table__content .t-table__body .t-table__empty-row {
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-eddr8fa8] .t-table__content .t-table__body .t-table__empty-row >td {
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-eddr8fa8] th .t-table__ellipsis {
55
+ .t-t-table[data-v-8mnl1q6e] th .t-table__ellipsis {
56
56
  width: auto !important;
57
57
  }
58
- .t-t-table[data-v-eddr8fa8] .t-loading__gradient.t-icon-loading {
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-eddr8fa8]:first-of-type .t-table__affixed-header-elm-wrap{
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-eddr8fa8] .t-table__affixed-header-elm-wrap>div {
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-eddr8fa8] .t-table--layout-fixed{
68
+ .t-t-table[data-v-8mnl1q6e] .t-table--layout-fixed{
69
69
  width: 100% !important;
70
70
  }
71
- .t-t-table[data-v-eddr8fa8] .bk-exception-description{
71
+ .t-t-table[data-v-8mnl1q6e] .bk-exception-description{
72
72
  margin-bottom: 0;
73
73
  }
74
- .t-t-table[data-v-eddr8fa8] .t-table__content{
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-eddr8fa8] .t-table__content::-webkit-scrollbar {
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-eddr8fa8] .t-table__content::-webkit-scrollbar-thumb {
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-eddr8fa8] .t-table__content::-webkit-scrollbar-thumb:hover {
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-eddr8fa8] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
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-eddr8fa8] .t-table__cell--sort-trigger.t-table__double-icons{
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-eddr8fa8] .t-table__sort-icon--active>i{
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-eddr8fa8] .t-table__cell--fixed-left:has(.checkbox){
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-eddr8fa8] .t-table__filter-icon.t-is-focus>span{
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,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-eddr8fa8";
2
+ script.__scopeId = "data-v-8mnl1q6e";
3
3
  script.__file = "./src/components/render-t-table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,28 +1,28 @@
1
1
 
2
- .tag-tree[data-v-86rwr8nu] {
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-86rwr8nu] {
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-86rwr8nu] {
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-86rwr8nu] .tree-item:has(.bottom-line) {
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-86rwr8nu] .tree-item.active .quick-icon {
18
+ .tag-tree[data-v-4kk1kd0r] .tree-item.active .quick-icon {
19
19
  color: #3A84FF;
20
20
  }
21
- .tag-tree[data-v-86rwr8nu] .tree-item.active .tag-number {
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-86rwr8nu] {
25
+ .tag-number[data-v-4kk1kd0r] {
26
26
  line-height: 16px;
27
27
  padding: 0 4px;
28
28
  background-color: #F0F1F5;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-86rwr8nu";
2
+ script.__scopeId = "data-v-4kk1kd0r";
3
3
  script.__file = "./src/components/render-tag-tree/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,24 +1,24 @@
1
1
 
2
- .tag-container[data-v-kjrdw74t] {
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-kjrdw74t] {
8
+ .tag-home[data-v-qz81aq0a] {
9
9
  vertical-align: sub;
10
10
  flex-shrink: 0;
11
11
  }
12
- [is-show="true"][data-v-kjrdw74t] {
12
+ [is-show="true"][data-v-qz81aq0a] {
13
13
  visibility: visible;
14
14
  }
15
- [is-show="false"][data-v-kjrdw74t] {
15
+ [is-show="false"][data-v-qz81aq0a] {
16
16
  display: none !important;
17
17
  }
18
- .popover-main[data-v-kjrdw74t] {
18
+ .popover-main[data-v-qz81aq0a] {
19
19
  padding: 8px 8px 10px;
20
20
  }
21
- .tag-list[data-v-kjrdw74t] {
21
+ .tag-list[data-v-qz81aq0a] {
22
22
  border-radius: 2px;
23
23
  background: #F0F1F5;
24
24
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-kjrdw74t";
2
+ script.__scopeId = "data-v-qz81aq0a";
3
3
  script.__file = "./src/components/render-tags/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -169,20 +169,20 @@ export default /*@__PURE__*/ _defineComponent({
169
169
  return _openBlock(), _createElementBlock("ul", _hoisted_1, [
170
170
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(props.data, (item)=>{
171
171
  return _openBlock(), _createBlock(renderTreeItem, {
172
- key: item[__props.keyName],
173
172
  data: item,
174
- level: 0
173
+ level: 0,
174
+ key: item[__props.keyName]
175
175
  }, null, 8 /* PROPS */ , [
176
176
  "data"
177
177
  ]);
178
178
  }), 128 /* KEYED_FRAGMENT */ )),
179
179
  props.data.length <= 0 ? (_openBlock(), _createBlock(RenderEmpty, {
180
180
  key: 0,
181
+ search: props.search,
181
182
  description: "暂无数据",
182
183
  type: "empty",
183
184
  scene: "part",
184
185
  class: "g-exception",
185
- search: props.search,
186
186
  "onUpdate:search": handleUpdateSearch
187
187
  }, null, 8 /* PROPS */ , [
188
188
  "search"
@@ -18,5 +18,6 @@ export declare const useScrollLoad: <T>({ targetCls, defaultPageSize, triggerApi
18
18
  handleInitDataImmediately: () => Promise<void>;
19
19
  handleRefreshData: () => void;
20
20
  handleRefreshDataWithoutLoading: () => void;
21
+ scrollLoadMore: (event: Event) => void;
21
22
  };
22
23
  export {};
@@ -95,6 +95,7 @@ export const useScrollLoad = ({ targetCls, defaultPageSize = 100, triggerApi, ab
95
95
  handleInitData,
96
96
  handleInitDataImmediately,
97
97
  handleRefreshData,
98
- handleRefreshDataWithoutLoading
98
+ handleRefreshDataWithoutLoading,
99
+ scrollLoadMore
99
100
  };
100
101
  };
@@ -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, ISkillOpenclawWindowsInstallTaskStatusMapApi, ISkillOpenclawWindowsInstallTaskStatusParam, ISkillOpenclawWindowsInstanceStatusParam } from '@/types/skill';
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<ISkillOpenclawWindowsInstallTaskStatusMapApi>;
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
- non_thinking_llm: data.promptSetting.nonThinkingLLM,
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
- nonThinkingLLM: data.prompt_setting.non_thinking_llm,
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,
@@ -39,8 +39,6 @@
39
39
  manageMcp: data.manage_mcp,
40
40
  viewMcp: data.view_mcp,
41
41
  useMcp: data.use_mcp,
42
- createProject: data.create_project,
43
- viewProject: data.view_project,
44
42
  manageProject: data.manage_project
45
43
  } : undefined;
46
44
  /**
@@ -84,8 +82,6 @@
84
82
  manage_mcp: data.manageMcp,
85
83
  view_mcp: data.viewMcp,
86
84
  use_mcp: data.useMcp,
87
- create_project: data.createProject,
88
- view_project: data.viewProject,
89
85
  manage_project: data.manageProject
90
86
  } : undefined;
91
87
  /**
@@ -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)