@blueking/ai-ui-sdk 0.4.1-beta.1 → 0.4.1-beta.10

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 (185) 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.script.vue.js +8 -7
  12. package/dist/components/render-card/base.vue.css +12 -12
  13. package/dist/components/render-card/base.vue.js +1 -1
  14. package/dist/components/render-card/knowledgebase/actions.script.vue.js.js +5 -41
  15. package/dist/components/render-card/knowledgebase/actions.vue.d.ts +2 -3
  16. package/dist/components/render-card/knowledgebase/index.script.vue.js.js +14 -4
  17. package/dist/components/render-card/knowledgebase/index.vue.d.ts +3 -1
  18. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  19. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  20. package/dist/components/render-card/llm/icons.vue.css +2 -2
  21. package/dist/components/render-card/llm/icons.vue.js +1 -1
  22. package/dist/components/render-card/llm/info.vue.css +1 -1
  23. package/dist/components/render-card/llm/info.vue.js +1 -1
  24. package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
  25. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  26. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  27. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  28. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  29. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  30. package/dist/components/render-card/prompt/index.script.vue.js.js +4 -4
  31. package/dist/components/render-card/role/index.script.vue.js.js +15 -14
  32. package/dist/components/render-card/role/index.vue.d.ts +1 -0
  33. package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
  34. package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
  35. package/dist/components/render-card/tool/actions.script.vue.js.js +26 -42
  36. package/dist/components/render-card/tool/index.script.vue.js.js +13 -13
  37. package/dist/components/render-card/tool/index.vue.d.ts +2 -2
  38. package/dist/components/render-card/tool/prefix-info-tool.script.vue.js.js +1 -1
  39. package/dist/components/render-checkbox/index.vue.css +9 -9
  40. package/dist/components/render-checkbox/index.vue.js +1 -1
  41. package/dist/components/render-choose-tag/index.vue.css +7 -7
  42. package/dist/components/render-choose-tag/index.vue.js +1 -1
  43. package/dist/components/render-collapse/index.vue.css +2 -2
  44. package/dist/components/render-collapse/index.vue.js +1 -1
  45. package/dist/components/render-collection/actions/index.script.vue.js.js +59 -128
  46. package/dist/components/render-collection/actions/index.vue.d.ts +1 -3
  47. package/dist/components/render-collection/content/index.script.vue.js +2 -2
  48. package/dist/components/render-collection/content/index.vue.css +4 -4
  49. package/dist/components/render-collection/content/index.vue.js +1 -1
  50. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  51. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  52. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
  53. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
  54. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  55. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
  56. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
  57. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  58. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  59. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  60. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  61. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  62. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  63. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  64. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  65. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  66. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  67. package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +6 -6
  68. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  69. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  70. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  71. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  72. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  73. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  74. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  75. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  76. package/dist/components/render-dataset-detail/components/header.script.vue.js.js +3 -3
  77. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  78. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  79. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  80. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  81. package/dist/components/render-dataset-list/index.vue.css +2 -2
  82. package/dist/components/render-dataset-list/index.vue.js +1 -1
  83. package/dist/components/render-dialog/choose-resource.script.vue.js +3 -2
  84. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  85. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  86. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  87. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  88. package/dist/components/render-dialog/choose-space.vue.css +9 -9
  89. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  90. package/dist/components/render-dialog/index.vue.css +6 -6
  91. package/dist/components/render-dialog/index.vue.js +1 -1
  92. package/dist/components/render-file-card/index.vue.css +11 -11
  93. package/dist/components/render-file-card/index.vue.js +1 -1
  94. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  95. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  96. package/dist/components/render-generate-tag/index.vue.css +5 -5
  97. package/dist/components/render-generate-tag/index.vue.js +1 -1
  98. package/dist/components/render-header/index.script.vue.js.js +68 -45
  99. package/dist/components/render-header/index.vue.d.ts +5 -1
  100. package/dist/components/render-header/index.vue.js +0 -2
  101. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  102. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  103. package/dist/components/render-knowledge/search/index.script.vue.js.js +36 -27
  104. package/dist/components/render-knowledge/search/index.vue.d.ts +1 -0
  105. package/dist/components/render-prompt/actions/index.script.vue.js.js +56 -114
  106. package/dist/components/render-prompt/actions/index.vue.d.ts +0 -1
  107. package/dist/components/render-prompt/content/index.vue.css +1 -1
  108. package/dist/components/render-prompt/content/index.vue.js +1 -1
  109. package/dist/components/render-reference/index.vue.css +2 -2
  110. package/dist/components/render-reference/index.vue.js +1 -1
  111. package/dist/components/render-relate-agent/index.script.vue.js +46 -21
  112. package/dist/components/render-relate-agent/index.vue.d.ts +3 -1
  113. package/dist/components/render-resource-version/index.vue.css +2 -2
  114. package/dist/components/render-resource-version/index.vue.js +1 -1
  115. package/dist/components/render-router-tab/index.script.vue.js.js +2 -2
  116. package/dist/components/render-router-tab/index.vue.css +3 -3
  117. package/dist/components/render-router-tab/index.vue.js +1 -1
  118. package/dist/components/render-search-select/index.script.vue.js.js +7 -7
  119. package/dist/components/render-search-select/index.vue.d.ts +1 -1
  120. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  121. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  122. package/dist/components/render-skill/actions/index.script.vue.js.js +9 -12
  123. package/dist/components/render-skill/actions/index.vue.d.ts +0 -1
  124. package/dist/components/render-skill/install/index.script.vue.js.js +22 -16
  125. package/dist/components/render-t-table/index.vue.css +27 -27
  126. package/dist/components/render-t-table/index.vue.js +1 -1
  127. package/dist/components/render-tag-tree/index.vue.css +7 -7
  128. package/dist/components/render-tag-tree/index.vue.js +1 -1
  129. package/dist/components/render-tags/index.vue.css +6 -6
  130. package/dist/components/render-tags/index.vue.js +1 -1
  131. package/dist/components/render-tree/index.script.vue.js +3 -3
  132. package/dist/components.d.ts +1 -2
  133. package/dist/components.ts.js +1 -2
  134. package/dist/css/g-utilities.css +66 -37
  135. package/dist/css/g-utilities.manifest.json +12 -7
  136. package/dist/hooks/use-scroll-load.d.ts +1 -0
  137. package/dist/hooks/use-scroll-load.ts.js +2 -1
  138. package/dist/hooks/use-skill-http.d.ts +2 -2
  139. package/dist/hooks/use-skill-http.ts.js +2 -2
  140. package/dist/hooks/use-style.ts.js +2 -9
  141. package/dist/hooks.d.ts +0 -4
  142. package/dist/hooks.ts.js +0 -4
  143. package/dist/http/helper/agent.d.ts +1 -7
  144. package/dist/http/helper/agent.ts.js +2 -28
  145. package/dist/http/helper/knowledge.d.ts +10 -1
  146. package/dist/http/helper/knowledge.ts.js +82 -21
  147. package/dist/http/helper/permission.ts.js +4 -2
  148. package/dist/http/helper/skill.d.ts +2 -1
  149. package/dist/http/helper/skill.ts.js +8 -0
  150. package/dist/https.d.ts +0 -1
  151. package/dist/https.ts.js +0 -1
  152. package/dist/transforms.d.ts +0 -1
  153. package/dist/transforms.ts.js +0 -1
  154. package/dist/types/agent.d.ts +5 -44
  155. package/dist/types/enum.d.ts +15 -2
  156. package/dist/types/enum.ts.js +15 -1
  157. package/dist/types/knowledge.d.ts +113 -12
  158. package/dist/types/permission.d.ts +2 -0
  159. package/dist/types/skill.d.ts +8 -2
  160. package/dist/types.d.ts +0 -1
  161. package/dist/types.ts.js +0 -1
  162. package/package.json +2 -8
  163. package/dist/common/chart-helper.d.ts +0 -39
  164. package/dist/common/chart-helper.ts.js +0 -196
  165. package/dist/components/render-header/index.vue.css +0 -13
  166. package/dist/components/render-like/index.script.vue.js.js +0 -312
  167. package/dist/components/render-like/index.vue.css +0 -20
  168. package/dist/components/render-like/index.vue.d.ts +0 -31
  169. package/dist/components/render-like/index.vue.js +0 -5
  170. package/dist/helpers.d.ts +0 -1
  171. package/dist/helpers.ts.js +0 -1
  172. package/dist/hooks/use-chat.d.ts +0 -1083
  173. package/dist/hooks/use-chat.ts.js +0 -678
  174. package/dist/hooks/use-reference-doc.d.ts +0 -14
  175. package/dist/hooks/use-reference-doc.ts.js +0 -176
  176. package/dist/hooks/use-session-http.d.ts +0 -38
  177. package/dist/hooks/use-session-http.ts.js +0 -159
  178. package/dist/hooks/use-summary.d.ts +0 -9
  179. package/dist/hooks/use-summary.ts.js +0 -55
  180. package/dist/hooks/use-think.d.ts +0 -21
  181. package/dist/hooks/use-think.ts.js +0 -136
  182. package/dist/http/helper/session.d.ts +0 -65
  183. package/dist/http/helper/session.ts.js +0 -267
  184. package/dist/types/session.d.ts +0 -199
  185. package/dist/types/session.ts.js +0 -1
@@ -38,7 +38,7 @@ import VariableForm from '../render-skill/variable-form/index.vue.js';
38
38
  import { useAgentHttp } from '../../hooks/use-agent-http.ts.js';
39
39
  import { useClickoutside } from '../../hooks/use-clickoutside.ts.js';
40
40
  import { useSpaceHttp } from '../../hooks/use-space-http.ts.js';
41
- import { AgentType, GroupType, Module, ResourceStatus, SdkNavigateActionType } from '../../types/enum.ts.js';
41
+ import { AgentType, GroupType, Module, PromptSource, ResourceStatus, SdkNavigateActionType } from '../../types/enum.ts.js';
42
42
  export default /*@__PURE__*/ _defineComponent({
43
43
  props: {
44
44
  resourceType: {},
@@ -266,6 +266,29 @@ export default /*@__PURE__*/ _defineComponent({
266
266
  })
267
267
  }));
268
268
  });
269
+ const handleRelatePromptToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
270
+ const prompt = props.resource;
271
+ yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
272
+ promptSetting: Object.assign(Object.assign({}, selectedAgent.promptSetting), {
273
+ promptType: PromptSource.UserDefine,
274
+ promptContent: prompt.content
275
+ })
276
+ }));
277
+ });
278
+ const handleRelateCollectionToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
279
+ var _a;
280
+ const collection = props.resource;
281
+ if (((_a = selectedAgent.promptSetting) === null || _a === void 0 ? void 0 : _a.collectionId) === collection.id) return;
282
+ yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
283
+ promptSetting: Object.assign(Object.assign({}, selectedAgent.promptSetting), {
284
+ promptType: PromptSource.Collection,
285
+ collectionId: collection.id,
286
+ collectionName: collection.name,
287
+ collectionVariables: collection.variables,
288
+ collectionContent: collection.content
289
+ })
290
+ }));
291
+ });
269
292
  const handleBindAndNavigate = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
270
293
  var _a;
271
294
  const relateMap = {
@@ -274,7 +297,9 @@ export default /*@__PURE__*/ _defineComponent({
274
297
  [Module.Tool]: handleRelateToolToAgent,
275
298
  [Module.Skill]: handleRelateSkillToAgent,
276
299
  [Module.LLM]: handleRelateLLMToAgent,
277
- [Module.Knowledgebase]: handleRelateKnowledgebaseToAgent
300
+ [Module.Knowledgebase]: handleRelateKnowledgebaseToAgent,
301
+ [Module.Prompt]: handleRelatePromptToAgent,
302
+ [Module.Collection]: handleRelateCollectionToAgent
278
303
  };
279
304
  yield (_a = relateMap[props.resourceType]) === null || _a === void 0 ? void 0 : _a.call(relateMap, selectedAgent);
280
305
  emits('navigate', {
@@ -408,24 +433,24 @@ export default /*@__PURE__*/ _defineComponent({
408
433
  const _component_bk_popover = _resolveComponent("bk-popover");
409
434
  const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
410
435
  return _openBlock(), _createBlock(_component_bk_popover, {
436
+ placement: props.placement,
437
+ boundary: props.boundary,
438
+ "is-show": isShowPopover.value,
411
439
  trigger: "manual",
412
440
  theme: "light",
413
441
  width: "400",
414
- "ext-cls": "render-relate-agent-popover",
415
- placement: props.placement,
416
- boundary: props.boundary,
417
- "is-show": isShowPopover.value
442
+ "ext-cls": "render-relate-agent-popover"
418
443
  }, {
419
444
  content: _withCtx(()=>[
420
445
  _cache[5] || (_cache[5] = _createElementVNode("span", {
421
446
  class: "g-text-16 g-text-black g-leading-24"
422
447
  }, " 关联至智能体 ", -1 /* CACHED */ )),
423
448
  _createVNode(_component_bk_form, {
449
+ model: formData.value,
424
450
  ref_key: "formRef",
425
451
  ref: formRef,
426
452
  "form-type": "vertical",
427
- class: "g-small-form g-small-gap-form !g-mt-16",
428
- model: formData.value
453
+ class: "g-small-form g-small-gap-form !g-mt-16"
429
454
  }, {
430
455
  default: _withCtx(()=>[
431
456
  _createVNode(_component_bk_form_item, {
@@ -437,15 +462,15 @@ export default /*@__PURE__*/ _defineComponent({
437
462
  _createVNode(_component_bk_select, {
438
463
  modelValue: formData.value.selectedSpaceId,
439
464
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>formData.value.selectedSpaceId = $event),
440
- filterable: "",
441
- "id-key": "spaceId",
442
- "display-key": "spaceName",
443
465
  clearable: false,
444
466
  loading: isLoadingSpaces.value,
445
467
  list: spaces.value,
446
468
  "popover-options": {
447
469
  boundary: 'parent'
448
470
  },
471
+ filterable: "",
472
+ "id-key": "spaceId",
473
+ "display-key": "spaceName",
449
474
  onChange: handleGetAgentsAndSetDefaultAgent
450
475
  }, null, 8 /* PROPS */ , [
451
476
  "modelValue",
@@ -464,16 +489,16 @@ export default /*@__PURE__*/ _defineComponent({
464
489
  _createVNode(_component_bk_select, {
465
490
  modelValue: formData.value.selectedAgentId,
466
491
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>formData.value.selectedAgentId = $event),
467
- filterable: "",
468
- "id-key": "id",
469
- "display-key": "agentName",
470
492
  "no-data-text": `暂无未关联该${_unref(MODULE_NAME)[props.resourceType]}的智能体`,
471
493
  clearable: false,
472
494
  list: agents.value,
473
495
  loading: isLoadingAgents.value,
474
496
  "popover-options": {
475
497
  boundary: 'parent'
476
- }
498
+ },
499
+ filterable: "",
500
+ "id-key": "id",
501
+ "display-key": "agentName"
477
502
  }, {
478
503
  extension: _withCtx(()=>[
479
504
  _createVNode(RenderSelectPlusExtension, {
@@ -498,10 +523,6 @@ export default /*@__PURE__*/ _defineComponent({
498
523
  ]),
499
524
  _createElementVNode("section", _hoisted_1, [
500
525
  _createVNode(_component_bk_pop_confirm, {
501
- trigger: "manual",
502
- placement: "top",
503
- boundary: "parent",
504
- "ext-cls": "g-popover-confirm",
505
526
  width: getWidth(),
506
527
  title: getTitle(),
507
528
  content: getContent(),
@@ -509,13 +530,17 @@ export default /*@__PURE__*/ _defineComponent({
509
530
  "confirm-config": {
510
531
  loading: isLoadingConfirm.value
511
532
  },
533
+ trigger: "manual",
534
+ placement: "top",
535
+ boundary: "parent",
536
+ "ext-cls": "g-popover-confirm",
512
537
  onConfirm: handlePopoverConfirm,
513
538
  onCancel: handleCancelApply
514
539
  }, {
515
540
  default: _withCtx(()=>[
516
541
  _createVNode(_component_bk_button, {
517
- theme: "primary",
518
542
  loading: isLoadingConfirm.value,
543
+ theme: "primary",
519
544
  onClick: handleConfirm
520
545
  }, {
521
546
  default: _withCtx(()=>[
@@ -554,9 +579,9 @@ export default /*@__PURE__*/ _defineComponent({
554
579
  handleShow: handleShow
555
580
  }, ()=>[
556
581
  _withDirectives((_openBlock(), _createBlock(_component_bk_button, {
582
+ disabled: props.disabled,
557
583
  size: "small",
558
584
  text: "",
559
- disabled: props.disabled,
560
585
  onClick: handleShow
561
586
  }, {
562
587
  default: _withCtx(()=>[
@@ -1,13 +1,15 @@
1
1
  import type { IKnowledgebase, ITool } from '@/types';
2
2
  import type { IAgent } from '@/types/agent';
3
+ import type { ICollection } from '@/types/collection';
3
4
  import { Module } from '@/types/enum';
4
5
  import type { IMcp } from '@/types/mcp';
5
6
  import type { IModel } from '@/types/model';
6
7
  import type { ISdkNavigateAction } from '@/types/navigate';
8
+ import type { IPrompt } from '@/types/prompt';
7
9
  import type { ISkill } from '@/types/skill';
8
10
  interface IProps {
9
11
  resourceType: Module;
10
- resource: IAgent | IMcp | ISkill | IModel | ITool | IKnowledgebase;
12
+ resource: IAgent | IMcp | ISkill | IModel | ITool | IKnowledgebase | IPrompt | ICollection;
11
13
  disabled?: boolean;
12
14
  disabledText?: string;
13
15
  boundary?: string;
@@ -1,11 +1,11 @@
1
1
 
2
- .resource-version[data-v-aznurpyz] {
2
+ .resource-version[data-v-yb8er7cy] {
3
3
  border-radius: 2px;
4
4
  text-align: left;
5
5
  color: #4D4F56;
6
6
  background-color: #F0F1F5;
7
7
  white-space: nowrap;
8
8
  }
9
- .resource-version .bkaidev-rizhifenxi[data-v-aznurpyz] {
9
+ .resource-version .bkaidev-rizhifenxi[data-v-yb8er7cy] {
10
10
  color: #3A84FF;
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-aznurpyz";
2
+ script.__scopeId = "data-v-yb8er7cy";
3
3
  script.__file = "./src/components/render-resource-version/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -15,12 +15,12 @@ export default /*@__PURE__*/ _defineComponent({
15
15
  return _openBlock(), _createElementBlock("section", _hoisted_1, [
16
16
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.routers, (router)=>{
17
17
  return _openBlock(), _createBlock(_component_router_link, {
18
- key: router.to,
19
18
  to: {
20
19
  name: router.to,
21
20
  query: _unref(route).query,
22
21
  params: _unref(route).params
23
- }
22
+ },
23
+ key: router.to
24
24
  }, {
25
25
  default: _withCtx(()=>[
26
26
  _createTextVNode(_toDisplayString(router.name), 1 /* TEXT */ )
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-y7tek1k5] {
2
+ .router-tab[data-v-j8t34cz4] {
3
3
  margin-top: 2px;
4
4
  height: 42px;
5
5
  background: #FFFFFF;
6
6
  box-shadow: 0 2px 4px 0 #1919290d;
7
7
  padding: 0 24px;
8
8
  }
9
- .router-tab a[data-v-y7tek1k5] {
9
+ .router-tab a[data-v-j8t34cz4] {
10
10
  padding: 0 8px;
11
11
  margin-right: 24px;
12
12
  font-size: 14px;
@@ -15,7 +15,7 @@
15
15
  color: #4D4F56;
16
16
  box-sizing: border-box;
17
17
  }
18
- .router-tab a.router-link-exact-active[data-v-y7tek1k5] {
18
+ .router-tab a.router-link-exact-active[data-v-j8t34cz4] {
19
19
  color: #3A84FF;
20
20
  border-bottom: 2px solid #3A84FF;
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-y7tek1k5";
2
+ script.__scopeId = "data-v-j8t34cz4";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -139,7 +139,7 @@ export default /*@__PURE__*/ _defineComponent({
139
139
  }
140
140
  ]
141
141
  });
142
- } else if (isEmpty(item) && props.isFuzzyEnabled) {
142
+ } else if (isEmpty(item) && props.isFuzzyEnabled && cur === props.fuzzyKey) {
143
143
  acc.push({
144
144
  id: value,
145
145
  name: value,
@@ -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-pqhwxe07] {
2
+ .select-plus-extension[data-v-k92j06xd] {
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-pqhwxe07] {
11
+ .select-plus-extension .ai-ui-sdk-icon[data-v-k92j06xd] {
12
12
  font-size: 14px;
13
13
  margin-right: 6px;
14
14
  }
15
- .select-plus-extension[data-v-pqhwxe07]:hover {
15
+ .select-plus-extension[data-v-k92j06xd]: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-pqhwxe07";
2
+ script.__scopeId = "data-v-k92j06xd";
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-vt4anoih] {
2
+ .t-t-pagination[data-v-vcevt1wc] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-vt4anoih] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-vcevt1wc] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-vt4anoih]::after {
9
+ .pagination-loading[data-v-vcevt1wc]::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-vt4anoih] {
19
+ .pagination-border[data-v-vcevt1wc] {
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-vt4anoih] {
25
+ .t-t-table[data-v-vcevt1wc] {
26
26
  display: inline;
27
27
  font-size: 12px;
28
28
  }
29
- .t-t-table[data-v-vt4anoih] .t-table__th-cell-inner {
29
+ .t-t-table[data-v-vcevt1wc] .t-table__th-cell-inner {
30
30
  color: #313238;
31
31
  }
32
- .t-t-table[data-v-vt4anoih] th {
32
+ .t-t-table[data-v-vcevt1wc] th {
33
33
  padding: 0 16px;
34
34
  height: 42px;
35
35
  background-color: #FAFBFD !important;
36
36
  }
37
- .t-t-table[data-v-vt4anoih] .t-table__body tr {
37
+ .t-t-table[data-v-vcevt1wc] .t-table__body tr {
38
38
  color: #63656e;
39
39
  font-size: 12px;
40
40
  }
41
- .t-t-table[data-v-vt4anoih] .t-table__body tr td {
41
+ .t-t-table[data-v-vcevt1wc] .t-table__body tr td {
42
42
  padding: 0 16px;
43
43
  height: 40px;
44
44
  }
45
- .t-t-table[data-v-vt4anoih] .t-table__body tr:hover td {
45
+ .t-t-table[data-v-vcevt1wc] .t-table__body tr:hover td {
46
46
  background-color: #f5f7fa !important;
47
47
  color: #63656E;
48
48
  }
49
- .t-t-table[data-v-vt4anoih] .t-table__content .t-table__body .t-table__empty-row {
49
+ .t-t-table[data-v-vcevt1wc] .t-table__content .t-table__body .t-table__empty-row {
50
50
  background-color: #fff !important;
51
51
  }
52
- .t-t-table[data-v-vt4anoih] .t-table__content .t-table__body .t-table__empty-row >td {
52
+ .t-t-table[data-v-vcevt1wc] .t-table__content .t-table__body .t-table__empty-row >td {
53
53
  border: none;
54
54
  }
55
- .t-t-table[data-v-vt4anoih] th .t-table__ellipsis {
55
+ .t-t-table[data-v-vcevt1wc] th .t-table__ellipsis {
56
56
  width: auto !important;
57
57
  }
58
- .t-t-table[data-v-vt4anoih] .t-loading__gradient.t-icon-loading {
58
+ .t-t-table[data-v-vcevt1wc] .t-loading__gradient.t-icon-loading {
59
59
  display: none;
60
60
  }
61
- .t-t-table[data-v-vt4anoih]:first-of-type .t-table__affixed-header-elm-wrap{
61
+ .t-t-table[data-v-vcevt1wc]:first-of-type .t-table__affixed-header-elm-wrap{
62
62
  width: calc(100% - 6px) !important;
63
63
  }
64
- .t-t-table[data-v-vt4anoih] .t-table__affixed-header-elm-wrap>div {
64
+ .t-t-table[data-v-vcevt1wc] .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-vt4anoih] .t-table--layout-fixed{
68
+ .t-t-table[data-v-vcevt1wc] .t-table--layout-fixed{
69
69
  width: 100% !important;
70
70
  }
71
- .t-t-table[data-v-vt4anoih] .bk-exception-description{
71
+ .t-t-table[data-v-vcevt1wc] .bk-exception-description{
72
72
  margin-bottom: 0;
73
73
  }
74
- .t-t-table[data-v-vt4anoih] .t-table__content{
74
+ .t-t-table[data-v-vcevt1wc] .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-vt4anoih] .t-table__content::-webkit-scrollbar {
79
+ .t-t-table[data-v-vcevt1wc] .t-table__content::-webkit-scrollbar {
80
80
  width: 6px;
81
81
  height: 6px;
82
82
  }
83
- .t-t-table[data-v-vt4anoih] .t-table__content::-webkit-scrollbar-thumb {
83
+ .t-t-table[data-v-vcevt1wc] .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-vt4anoih] .t-table__content::-webkit-scrollbar-thumb:hover {
89
+ .t-t-table[data-v-vcevt1wc] .t-table__content::-webkit-scrollbar-thumb:hover {
90
90
  background-color: #979ba5;
91
91
  }
92
- .t-t-table[data-v-vt4anoih] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
92
+ .t-t-table[data-v-vcevt1wc] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
93
93
  line-height: 100%;
94
94
  }
95
- .t-t-table[data-v-vt4anoih] .t-table__cell--sort-trigger.t-table__double-icons{
95
+ .t-t-table[data-v-vcevt1wc] .t-table__cell--sort-trigger.t-table__double-icons{
96
96
  gap: 5px;
97
97
  }
98
- .t-t-table[data-v-vt4anoih] .t-table__sort-icon--active>i{
98
+ .t-t-table[data-v-vcevt1wc] .t-table__sort-icon--active>i{
99
99
  color: #3a84ff !important;
100
100
  }
101
- .t-t-table[data-v-vt4anoih] .t-table__cell--fixed-left:has(.checkbox){
101
+ .t-t-table[data-v-vcevt1wc] .t-table__cell--fixed-left:has(.checkbox){
102
102
  line-height: 100%;
103
103
  }
104
- .t-t-table[data-v-vt4anoih] .t-table__filter-icon.t-is-focus>span{
104
+ .t-t-table[data-v-vcevt1wc] .t-table__filter-icon.t-is-focus>span{
105
105
  color: #3a84ff !important;
106
106
  }
107
107