@blueking/ai-ui-sdk 0.4.1-beta.5 → 0.4.1-beta.7

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 (117) hide show
  1. package/dist/components/render-agent/agent-type.vue.css +3 -3
  2. package/dist/components/render-agent/agent-type.vue.js +1 -1
  3. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  4. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  5. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  6. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  7. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  8. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  9. package/dist/components/render-card/base.vue.css +12 -12
  10. package/dist/components/render-card/base.vue.js +1 -1
  11. package/dist/components/render-card/knowledgebase/actions.script.vue.js.js +5 -41
  12. package/dist/components/render-card/knowledgebase/actions.vue.d.ts +2 -3
  13. package/dist/components/render-card/knowledgebase/index.script.vue.js.js +1 -1
  14. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  15. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  16. package/dist/components/render-card/llm/icons.vue.css +2 -2
  17. package/dist/components/render-card/llm/icons.vue.js +1 -1
  18. package/dist/components/render-card/llm/info.vue.css +1 -1
  19. package/dist/components/render-card/llm/info.vue.js +1 -1
  20. package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
  21. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  22. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  23. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  24. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  25. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  26. package/dist/components/render-card/prompt/index.script.vue.js.js +5 -1
  27. package/dist/components/render-card/role/index.script.vue.js.js +1 -0
  28. package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
  29. package/dist/components/render-card/skill/tag-prefix.vue.js +1 -1
  30. package/dist/components/render-card/tool/actions.script.vue.js.js +7 -3
  31. package/dist/components/render-checkbox/index.vue.css +9 -9
  32. package/dist/components/render-checkbox/index.vue.js +1 -1
  33. package/dist/components/render-choose-tag/index.vue.css +7 -7
  34. package/dist/components/render-choose-tag/index.vue.js +1 -1
  35. package/dist/components/render-collapse/index.vue.css +2 -2
  36. package/dist/components/render-collapse/index.vue.js +1 -1
  37. package/dist/components/render-collection/actions/index.script.vue.js.js +37 -8
  38. package/dist/components/render-collection/actions/index.vue.d.ts +3 -0
  39. package/dist/components/render-collection/content/index.vue.css +4 -4
  40. package/dist/components/render-collection/content/index.vue.js +1 -1
  41. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  42. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  43. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
  44. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
  45. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  46. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
  47. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
  48. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  49. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  50. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  51. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  52. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  53. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  54. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  55. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  56. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  57. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  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-file-card/index.vue.css +11 -11
  81. package/dist/components/render-file-card/index.vue.js +1 -1
  82. package/dist/components/render-file-type-icon/index.vue.css +6 -6
  83. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  84. package/dist/components/render-generate-tag/index.vue.css +5 -5
  85. package/dist/components/render-generate-tag/index.vue.js +1 -1
  86. package/dist/components/render-header/index.script.vue.js.js +11 -5
  87. package/dist/components/render-knowledge/icon/index.vue.css +1 -1
  88. package/dist/components/render-knowledge/icon/index.vue.js +1 -1
  89. package/dist/components/render-prompt/actions/index.script.vue.js.js +40 -10
  90. package/dist/components/render-prompt/actions/index.vue.d.ts +3 -0
  91. package/dist/components/render-prompt/content/index.vue.css +1 -1
  92. package/dist/components/render-prompt/content/index.vue.js +1 -1
  93. package/dist/components/render-reference/index.vue.css +2 -2
  94. package/dist/components/render-reference/index.vue.js +1 -1
  95. package/dist/components/render-relate-agent/index.script.vue.js +46 -21
  96. package/dist/components/render-relate-agent/index.vue.d.ts +3 -1
  97. package/dist/components/render-resource-version/index.vue.css +2 -2
  98. package/dist/components/render-resource-version/index.vue.js +1 -1
  99. package/dist/components/render-router-tab/index.vue.css +3 -3
  100. package/dist/components/render-router-tab/index.vue.js +1 -1
  101. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  102. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  103. package/dist/components/render-t-table/index.vue.css +27 -27
  104. package/dist/components/render-t-table/index.vue.js +1 -1
  105. package/dist/components/render-tag-tree/index.vue.css +7 -7
  106. package/dist/components/render-tag-tree/index.vue.js +1 -1
  107. package/dist/components/render-tags/index.vue.css +6 -6
  108. package/dist/components/render-tags/index.vue.js +1 -1
  109. package/dist/css/g-utilities.css +18 -12
  110. package/dist/css/g-utilities.manifest.json +1 -1
  111. package/dist/http/helper/knowledge.d.ts +10 -1
  112. package/dist/http/helper/knowledge.ts.js +82 -19
  113. package/dist/types/agent.d.ts +3 -3
  114. package/dist/types/enum.d.ts +10 -0
  115. package/dist/types/enum.ts.js +12 -0
  116. package/dist/types/knowledge.d.ts +113 -10
  117. package/package.json +2 -2
@@ -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-dpyp0nj2] {
2
+ .resource-version[data-v-iusamks2] {
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-dpyp0nj2] {
9
+ .resource-version .bkaidev-rizhifenxi[data-v-iusamks2] {
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-dpyp0nj2";
2
+ script.__scopeId = "data-v-iusamks2";
3
3
  script.__file = "./src/components/render-resource-version/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-t21vburj] {
2
+ .router-tab[data-v-63tvaxqn] {
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-t21vburj] {
9
+ .router-tab a[data-v-63tvaxqn] {
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-t21vburj] {
18
+ .router-tab a.router-link-exact-active[data-v-63tvaxqn] {
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-t21vburj";
2
+ script.__scopeId = "data-v-63tvaxqn";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .select-plus-extension[data-v-0aidt044] {
2
+ .select-plus-extension[data-v-k5g60ge9] {
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-0aidt044] {
11
+ .select-plus-extension .ai-ui-sdk-icon[data-v-k5g60ge9] {
12
12
  font-size: 14px;
13
13
  margin-right: 6px;
14
14
  }
15
- .select-plus-extension[data-v-0aidt044]:hover {
15
+ .select-plus-extension[data-v-k5g60ge9]: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-0aidt044";
2
+ script.__scopeId = "data-v-k5g60ge9";
3
3
  script.__file = "./src/components/render-select-plus-extension/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .t-t-pagination[data-v-9i6bojgy] {
2
+ .t-t-pagination[data-v-cvebre1s] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-9i6bojgy] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-cvebre1s] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-9i6bojgy]::after {
9
+ .pagination-loading[data-v-cvebre1s]::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-9i6bojgy] {
19
+ .pagination-border[data-v-cvebre1s] {
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-9i6bojgy] {
25
+ .t-t-table[data-v-cvebre1s] {
26
26
  display: inline;
27
27
  font-size: 12px;
28
28
  }
29
- .t-t-table[data-v-9i6bojgy] .t-table__th-cell-inner {
29
+ .t-t-table[data-v-cvebre1s] .t-table__th-cell-inner {
30
30
  color: #313238;
31
31
  }
32
- .t-t-table[data-v-9i6bojgy] th {
32
+ .t-t-table[data-v-cvebre1s] th {
33
33
  padding: 0 16px;
34
34
  height: 42px;
35
35
  background-color: #FAFBFD !important;
36
36
  }
37
- .t-t-table[data-v-9i6bojgy] .t-table__body tr {
37
+ .t-t-table[data-v-cvebre1s] .t-table__body tr {
38
38
  color: #63656e;
39
39
  font-size: 12px;
40
40
  }
41
- .t-t-table[data-v-9i6bojgy] .t-table__body tr td {
41
+ .t-t-table[data-v-cvebre1s] .t-table__body tr td {
42
42
  padding: 0 16px;
43
43
  height: 40px;
44
44
  }
45
- .t-t-table[data-v-9i6bojgy] .t-table__body tr:hover td {
45
+ .t-t-table[data-v-cvebre1s] .t-table__body tr:hover td {
46
46
  background-color: #f5f7fa !important;
47
47
  color: #63656E;
48
48
  }
49
- .t-t-table[data-v-9i6bojgy] .t-table__content .t-table__body .t-table__empty-row {
49
+ .t-t-table[data-v-cvebre1s] .t-table__content .t-table__body .t-table__empty-row {
50
50
  background-color: #fff !important;
51
51
  }
52
- .t-t-table[data-v-9i6bojgy] .t-table__content .t-table__body .t-table__empty-row >td {
52
+ .t-t-table[data-v-cvebre1s] .t-table__content .t-table__body .t-table__empty-row >td {
53
53
  border: none;
54
54
  }
55
- .t-t-table[data-v-9i6bojgy] th .t-table__ellipsis {
55
+ .t-t-table[data-v-cvebre1s] th .t-table__ellipsis {
56
56
  width: auto !important;
57
57
  }
58
- .t-t-table[data-v-9i6bojgy] .t-loading__gradient.t-icon-loading {
58
+ .t-t-table[data-v-cvebre1s] .t-loading__gradient.t-icon-loading {
59
59
  display: none;
60
60
  }
61
- .t-t-table[data-v-9i6bojgy]:first-of-type .t-table__affixed-header-elm-wrap{
61
+ .t-t-table[data-v-cvebre1s]:first-of-type .t-table__affixed-header-elm-wrap{
62
62
  width: calc(100% - 6px) !important;
63
63
  }
64
- .t-t-table[data-v-9i6bojgy] .t-table__affixed-header-elm-wrap>div {
64
+ .t-t-table[data-v-cvebre1s] .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-9i6bojgy] .t-table--layout-fixed{
68
+ .t-t-table[data-v-cvebre1s] .t-table--layout-fixed{
69
69
  width: 100% !important;
70
70
  }
71
- .t-t-table[data-v-9i6bojgy] .bk-exception-description{
71
+ .t-t-table[data-v-cvebre1s] .bk-exception-description{
72
72
  margin-bottom: 0;
73
73
  }
74
- .t-t-table[data-v-9i6bojgy] .t-table__content{
74
+ .t-t-table[data-v-cvebre1s] .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-9i6bojgy] .t-table__content::-webkit-scrollbar {
79
+ .t-t-table[data-v-cvebre1s] .t-table__content::-webkit-scrollbar {
80
80
  width: 6px;
81
81
  height: 6px;
82
82
  }
83
- .t-t-table[data-v-9i6bojgy] .t-table__content::-webkit-scrollbar-thumb {
83
+ .t-t-table[data-v-cvebre1s] .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-9i6bojgy] .t-table__content::-webkit-scrollbar-thumb:hover {
89
+ .t-t-table[data-v-cvebre1s] .t-table__content::-webkit-scrollbar-thumb:hover {
90
90
  background-color: #979ba5;
91
91
  }
92
- .t-t-table[data-v-9i6bojgy] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
92
+ .t-t-table[data-v-cvebre1s] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
93
93
  line-height: 100%;
94
94
  }
95
- .t-t-table[data-v-9i6bojgy] .t-table__cell--sort-trigger.t-table__double-icons{
95
+ .t-t-table[data-v-cvebre1s] .t-table__cell--sort-trigger.t-table__double-icons{
96
96
  gap: 5px;
97
97
  }
98
- .t-t-table[data-v-9i6bojgy] .t-table__sort-icon--active>i{
98
+ .t-t-table[data-v-cvebre1s] .t-table__sort-icon--active>i{
99
99
  color: #3a84ff !important;
100
100
  }
101
- .t-t-table[data-v-9i6bojgy] .t-table__cell--fixed-left:has(.checkbox){
101
+ .t-t-table[data-v-cvebre1s] .t-table__cell--fixed-left:has(.checkbox){
102
102
  line-height: 100%;
103
103
  }
104
- .t-t-table[data-v-9i6bojgy] .t-table__filter-icon.t-is-focus>span{
104
+ .t-t-table[data-v-cvebre1s] .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-9i6bojgy";
2
+ script.__scopeId = "data-v-cvebre1s";
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-nbdxhopb] {
2
+ .tag-tree[data-v-5vmeahgv] {
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-nbdxhopb] {
7
+ .tag-tree .manage-tree-item[data-v-5vmeahgv] {
8
8
  height: 32px;
9
9
  flex: 1;
10
10
  }
11
- .tag-tree .quick-icon[data-v-nbdxhopb] {
11
+ .tag-tree .quick-icon[data-v-5vmeahgv] {
12
12
  margin-left: -24px;
13
13
  padding-left: 8px;
14
14
  }
15
- .tag-tree[data-v-nbdxhopb] .tree-item:has(.bottom-line) {
15
+ .tag-tree[data-v-5vmeahgv] .tree-item:has(.bottom-line) {
16
16
  border-bottom: 1px solid #F0F1F5;
17
17
  }
18
- .tag-tree[data-v-nbdxhopb] .tree-item.active .quick-icon {
18
+ .tag-tree[data-v-5vmeahgv] .tree-item.active .quick-icon {
19
19
  color: #3A84FF;
20
20
  }
21
- .tag-tree[data-v-nbdxhopb] .tree-item.active .tag-number {
21
+ .tag-tree[data-v-5vmeahgv] .tree-item.active .tag-number {
22
22
  background: #A3C5FD;
23
23
  color: #fff;
24
24
  }
25
- .tag-number[data-v-nbdxhopb] {
25
+ .tag-number[data-v-5vmeahgv] {
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-nbdxhopb";
2
+ script.__scopeId = "data-v-5vmeahgv";
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-0xpodbd6] {
2
+ .tag-container[data-v-ojqtpfyy] {
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-0xpodbd6] {
8
+ .tag-home[data-v-ojqtpfyy] {
9
9
  vertical-align: sub;
10
10
  flex-shrink: 0;
11
11
  }
12
- [is-show="true"][data-v-0xpodbd6] {
12
+ [is-show="true"][data-v-ojqtpfyy] {
13
13
  visibility: visible;
14
14
  }
15
- [is-show="false"][data-v-0xpodbd6] {
15
+ [is-show="false"][data-v-ojqtpfyy] {
16
16
  display: none !important;
17
17
  }
18
- .popover-main[data-v-0xpodbd6] {
18
+ .popover-main[data-v-ojqtpfyy] {
19
19
  padding: 8px 8px 10px;
20
20
  }
21
- .tag-list[data-v-0xpodbd6] {
21
+ .tag-list[data-v-ojqtpfyy] {
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-0xpodbd6";
2
+ script.__scopeId = "data-v-ojqtpfyy";
3
3
  script.__file = "./src/components/render-tags/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -20,12 +20,12 @@
20
20
 
21
21
  .\!g-disabled {
22
22
  cursor: not-allowed !important;
23
- color: #dcdee5 !important;
23
+ color: #c4c6cc !important;
24
24
 
25
25
  &.bk-button-primary:not(.is-text) {
26
- background-color: #dcdee5 !important;
26
+ background-color: #c4c6cc !important;
27
27
  color: #fff !important;
28
- border-color: #dcdee5 !important;
28
+ border-color: #c4c6cc !important;
29
29
  }
30
30
 
31
31
  &.bk-button:not(.is-text) {
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  .g-disabled-text {
42
- color: #dcdee5 !important;
42
+ color: #c4c6cc !important;
43
43
  }
44
44
  }
45
45
 
@@ -181,8 +181,8 @@
181
181
  position: absolute;
182
182
  }
183
183
 
184
- .g-bg-F0F1F5 {
185
- background-color: #F0F1F5;
184
+ .g-bg-f0f1f5 {
185
+ background-color: #f0f1f5;
186
186
  }
187
187
 
188
188
  .g-bg-fafbfd {
@@ -232,9 +232,15 @@
232
232
 
233
233
  &.bk-popover.bk-pop2-content {
234
234
  padding: 13px;
235
-
236
235
  .bk-pop-confirm-title {
237
- text-align: left;
236
+ padding-bottom: 8px;
237
+ text-align: left;
238
+ font-size: 16px;
239
+ line-height: 24px;
240
+ }
241
+ .bk-pop-confirm-content {
242
+ text-align: left;
243
+ line-height: 20px;
238
244
  }
239
245
  }
240
246
  }
@@ -263,12 +269,12 @@
263
269
 
264
270
  .g-disabled {
265
271
  cursor: not-allowed !important;
266
- color: #dcdee5 !important;
272
+ color: #c4c6cc !important;
267
273
 
268
274
  &.bk-button-primary:not(.is-text) {
269
- background-color: #dcdee5;
275
+ background-color: #c4c6cc;
270
276
  color: #fff;
271
- border-color: #dcdee5;
277
+ border-color: #c4c6cc;
272
278
  }
273
279
 
274
280
  &.bk-button:not(.is-text) {
@@ -282,7 +288,7 @@
282
288
  }
283
289
 
284
290
  .g-disabled-text {
285
- color: #dcdee5;
291
+ color: #c4c6cc;
286
292
  }
287
293
  }
288
294
 
@@ -39,7 +39,7 @@
39
39
  "!g-w-full",
40
40
  "!g-z-9999",
41
41
  "g-absolute",
42
- "g-bg-F0F1F5",
42
+ "g-bg-f0f1f5",
43
43
  "g-bg-fafbfd",
44
44
  "g-bg-white",
45
45
  "g-border-b-[#EAEBF0]",
@@ -1,4 +1,4 @@
1
- import type { IKnowledge, IKnowledgeApi, IKnowledgebase, IKnowledgebaseApi, IKnowledgebaseCountParam, IKnowledgebaseCountParamApi, IKnowledgebaseListParam, IKnowledgeCountParam, IKnowledgeCountParamApi, IKnowledgeListParam, IKnowledgeQuerySetting, IKnowledgeQuerySettingApi } from '@/types/knowledge';
1
+ import type { IIngestionStageSnapshot, IIngestionStageSnapshotApi, IKnowledge, IKnowledgeApi, IKnowledgebase, IKnowledgebaseApi, IKnowledgebaseCountParam, IKnowledgebaseCountParamApi, IKnowledgebaseListParam, IKnowledgeCountParam, IKnowledgeCountParamApi, IKnowledgeListParam, IKnowledgePipeline, IKnowledgePipelineApi, IKnowledgeQuerySetting, IKnowledgeQuerySettingApi, IPipelineVersionDiff, IPipelineVersionDiffApi, IPipelineVersionHandleType, IPipelineVersionHandleTypeApi } from '@/types/knowledge';
2
2
  /**
3
3
  * 从路径中获取文件信息
4
4
  * @param path 路径
@@ -14,6 +14,9 @@ export declare const getFileInfoFromPath: (path: string) => {
14
14
  * @returns IKnowledgeApi
15
15
  */
16
16
  export declare const transferKnowledge: (data: IKnowledge) => IKnowledgeApi;
17
+ export declare const transferIngestionStageSnapshotApi2IngestionStageSnapshot: (data: IIngestionStageSnapshotApi) => IIngestionStageSnapshot;
18
+ export declare const transferPipelineVersionHandleTypeApi2PipelineVersionHandleType: (data?: IPipelineVersionHandleTypeApi | null) => IPipelineVersionHandleType | undefined;
19
+ export declare const transferPipelineVersionDiffApi2PipelineVersionDiff: (data?: IPipelineVersionDiffApi) => IPipelineVersionDiff | undefined;
17
20
  /**
18
21
  * 接口转换为ui使用
19
22
  * @param data IKnowledgeApi
@@ -41,6 +44,12 @@ export declare const transferKnowledgebase2KnowledgeApi: (data: IKnowledgebase)
41
44
  * @returns IKnowledgebase
42
45
  */
43
46
  export declare const transferKnowledgebaseApi: (data: IKnowledgebaseApi) => IKnowledgebase;
47
+ /**
48
+ * 接口转换为ui使用
49
+ * @param data IKnowledgePipelineApi
50
+ * @returns IKnowledgePipeline
51
+ */
52
+ export declare const transferKnowledgePipelineApi2KnowledgePipeline: (data: IKnowledgePipelineApi) => IKnowledgePipeline;
44
53
  /**
45
54
  * 接口转换为ui
46
55
  * @param data IKnowledgeQuerySetting