@blueking/ai-ui-sdk 0.4.3-beta.14 → 0.4.3-beta.16

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 (115) 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-auth/auth-dialog.script.vue.js.js +6 -3
  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/corner-badge.script.vue.js.js +50 -0
  9. package/dist/components/render-card/agent/corner-badge.vue.css +9 -0
  10. package/dist/components/render-card/agent/corner-badge.vue.d.ts +14 -0
  11. package/dist/components/render-card/agent/corner-badge.vue.js +5 -0
  12. package/dist/components/render-card/agent/index.script.vue.js.js +12 -1
  13. package/dist/components/render-card/agent/prefix-info-tool.vue.css +5 -5
  14. package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
  15. package/dist/components/render-card/base/collection-icon.script.vue.js.js +3 -16
  16. package/dist/components/render-card/base/collection-icon.vue.d.ts +0 -1
  17. package/dist/components/render-card/base.vue.css +12 -12
  18. package/dist/components/render-card/base.vue.js +1 -1
  19. package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
  20. package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
  21. package/dist/components/render-card/llm/icons.vue.css +2 -2
  22. package/dist/components/render-card/llm/icons.vue.js +1 -1
  23. package/dist/components/render-card/llm/info.vue.css +1 -1
  24. package/dist/components/render-card/llm/info.vue.js +1 -1
  25. package/dist/components/render-card/llm/tag-prefix.vue.css +2 -2
  26. package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
  27. package/dist/components/render-card/mcp/index.script.vue.js.js +1 -1
  28. package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
  29. package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
  30. package/dist/components/render-card/prompt/icons.vue.css +1 -1
  31. package/dist/components/render-card/prompt/icons.vue.js +1 -1
  32. package/dist/components/render-card/prompt/index.script.vue.js.js +1 -1
  33. package/dist/components/render-card/role/index.script.vue.js.js +1 -1
  34. package/dist/components/render-card/skill/index.script.vue.js.js +1 -2
  35. package/dist/components/render-card/skill/scanner.vue.css +3 -3
  36. package/dist/components/render-card/skill/scanner.vue.js +1 -1
  37. package/dist/components/render-card/tool/index.script.vue.js.js +1 -1
  38. package/dist/components/render-checkbox/index.vue.css +9 -9
  39. package/dist/components/render-checkbox/index.vue.js +1 -1
  40. package/dist/components/render-choose-tag/index.vue.css +7 -7
  41. package/dist/components/render-choose-tag/index.vue.js +1 -1
  42. package/dist/components/render-collapse/index.vue.css +2 -2
  43. package/dist/components/render-collapse/index.vue.js +1 -1
  44. package/dist/components/render-collection/content/index.vue.css +4 -4
  45. package/dist/components/render-collection/content/index.vue.js +1 -1
  46. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  47. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  48. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  49. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  50. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  51. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  52. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  53. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  54. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  55. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  56. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  57. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -1
  58. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  59. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  60. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  61. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  62. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  63. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -1
  64. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  65. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  66. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  67. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  68. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  69. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  70. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  71. package/dist/components/render-dataset-list/index.vue.css +2 -2
  72. package/dist/components/render-dataset-list/index.vue.js +1 -1
  73. package/dist/components/render-dialog/choose-resource.vue.css +3 -3
  74. package/dist/components/render-dialog/choose-resource.vue.js +1 -1
  75. package/dist/components/render-dialog/choose-result.vue.css +14 -14
  76. package/dist/components/render-dialog/choose-result.vue.js +1 -1
  77. package/dist/components/render-dialog/choose-space.vue.css +9 -9
  78. package/dist/components/render-dialog/choose-space.vue.js +1 -1
  79. package/dist/components/render-dialog/index.vue.css +6 -6
  80. package/dist/components/render-dialog/index.vue.js +1 -1
  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-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/content/index.vue.css +1 -1
  90. package/dist/components/render-prompt/content/index.vue.js +1 -1
  91. package/dist/components/render-reference/index.vue.css +2 -2
  92. package/dist/components/render-reference/index.vue.js +1 -1
  93. package/dist/components/render-resource-version/index.vue.css +2 -2
  94. package/dist/components/render-resource-version/index.vue.js +1 -1
  95. package/dist/components/render-router-tab/index.vue.css +3 -3
  96. package/dist/components/render-router-tab/index.vue.js +1 -1
  97. package/dist/components/render-search-empty/index.script.vue.js.js +3 -2
  98. package/dist/components/render-select-plus-extension/index.vue.css +3 -3
  99. package/dist/components/render-select-plus-extension/index.vue.js +1 -1
  100. package/dist/components/render-skill/actions/index.script.vue.js.js +42 -84
  101. package/dist/components/render-t-table/index.script.vue.js +8 -5
  102. package/dist/components/render-t-table/index.vue.css +27 -27
  103. package/dist/components/render-t-table/index.vue.js +1 -1
  104. package/dist/components/render-tag-tree/index.vue.css +7 -7
  105. package/dist/components/render-tag-tree/index.vue.js +1 -1
  106. package/dist/components/render-tags/index.vue.css +6 -6
  107. package/dist/components/render-tags/index.vue.js +1 -1
  108. package/dist/css/g-utilities.css +24 -0
  109. package/dist/css/g-utilities.manifest.json +6 -0
  110. package/dist/hooks/use-agent-http.d.ts +1 -0
  111. package/dist/hooks/use-agent-http.ts.js +9 -2
  112. package/dist/http/helper/agent.d.ts +7 -1
  113. package/dist/http/helper/agent.ts.js +16 -0
  114. package/dist/types/agent.d.ts +18 -0
  115. package/package.json +1 -1
@@ -8,9 +8,6 @@ const _hoisted_2 = {
8
8
  key: 1,
9
9
  class: "ai-ui-sdk-icon ai-ui-sdk-warning-circle-fill g-mr-4 !g-text-16 g-text-ea3636"
10
10
  };
11
- const _hoisted_3 = {
12
- key: 0
13
- };
14
11
  import { ref, toRef } from 'vue';
15
12
  import ApplicationBaseActions from '../../render-card/base/application-base-actions.vue.js';
16
13
  import RenderDropdown from '../../render-dropdown/index.vue.js';
@@ -60,9 +57,6 @@ export default /*@__PURE__*/ _defineComponent({
60
57
  const getIsFullType = ()=>{
61
58
  return props.type === ResourceCardType.Full;
62
59
  };
63
- const getIsMarketType = ()=>{
64
- return props.type === ResourceCardType.Market;
65
- };
66
60
  const getIsNotDeleted = ()=>{
67
61
  return props.skill.status !== SkillStatus.Deleted;
68
62
  };
@@ -256,74 +250,7 @@ export default /*@__PURE__*/ _defineComponent({
256
250
  "theme",
257
251
  "text"
258
252
  ]),
259
- _withDirectives((_openBlock(), _createBlock(_component_bk_button, {
260
- disabled: props.skill.generateType !== _unref(EnumCharacter).Public,
261
- theme: props.isTextButton ? 'primary' : '',
262
- text: props.isTextButton,
263
- size: "small",
264
- onClick: _withModifiers(handleShare, [
265
- "stop"
266
- ])
267
- }, {
268
- default: _withCtx(()=>[
269
- ..._cache[7] || (_cache[7] = [
270
- _createTextVNode(" 分享 ", -1 /* CACHED */ )
271
- ])
272
- ]),
273
- _: 1 /* STABLE */
274
- }, 8 /* PROPS */ , [
275
- "disabled",
276
- "theme",
277
- "text"
278
- ])), [
279
- [
280
- _directive_bk_tooltips,
281
- {
282
- content: '该 Skill 并未对所有空间开放,暂不能分享',
283
- disabled: props.skill.generateType === _unref(EnumCharacter).Public
284
- }
285
- ]
286
- ]),
287
- getIsMarketType() ? (_openBlock(), _createBlock(_component_bk_button, {
288
- key: 1,
289
- loading: isDownloadingSkill.value,
290
- theme: props.isTextButton ? 'primary' : '',
291
- text: props.isTextButton,
292
- size: "small",
293
- onClick: _withModifiers(handleDownload, [
294
- "stop"
295
- ])
296
- }, {
297
- default: _withCtx(()=>[
298
- ..._cache[8] || (_cache[8] = [
299
- _createTextVNode(" 下载 ", -1 /* CACHED */ )
300
- ])
301
- ]),
302
- _: 1 /* STABLE */
303
- }, 8 /* PROPS */ , [
304
- "loading",
305
- "theme",
306
- "text"
307
- ])) : _createCommentVNode("v-if", true),
308
- getIsMarketType() ? (_openBlock(), _createBlock(RenderRelateAgent, {
309
- key: 2,
310
- "resource-type": _unref(Module).Skill,
311
- resource: __props.skill,
312
- "is-text-button": __props.isTextButton,
313
- theme: __props.isTextButton ? 'primary' : '',
314
- "space-id": props.spaceId,
315
- "api-prefix": props.apiPrefix,
316
- onNavigate: handleNavigate
317
- }, null, 8 /* PROPS */ , [
318
- "resource-type",
319
- "resource",
320
- "is-text-button",
321
- "theme",
322
- "space-id",
323
- "api-prefix"
324
- ])) : _createCommentVNode("v-if", true),
325
- !getIsMarketType() ? (_openBlock(), _createBlock(RenderDropdown, {
326
- key: 3,
253
+ _createVNode(RenderDropdown, {
327
254
  placement: "bottom-start",
328
255
  theme: "light",
329
256
  ref_key: "dropdownRef",
@@ -339,7 +266,7 @@ export default /*@__PURE__*/ _defineComponent({
339
266
  ]))
340
267
  }, {
341
268
  default: _withCtx(()=>[
342
- ..._cache[9] || (_cache[9] = [
269
+ ..._cache[7] || (_cache[7] = [
343
270
  _createElementVNode("i", {
344
271
  class: "ai-ui-sdk-icon ai-ui-sdk-gengduo-2 g-text-16"
345
272
  }, null, -1 /* CACHED */ )
@@ -357,6 +284,35 @@ export default /*@__PURE__*/ _defineComponent({
357
284
  `skill-card-menu-${__props.skill.id}`
358
285
  ])
359
286
  }, [
287
+ _withDirectives((_openBlock(), _createElementBlock("li", {
288
+ onClick: handleHideDropdown
289
+ }, [
290
+ _createVNode(_component_bk_button, {
291
+ disabled: props.skill.generateType !== _unref(EnumCharacter).Public,
292
+ size: "small",
293
+ text: "",
294
+ onClick: _withModifiers(handleShare, [
295
+ "stop"
296
+ ])
297
+ }, {
298
+ default: _withCtx(()=>[
299
+ ..._cache[8] || (_cache[8] = [
300
+ _createTextVNode(" 分享 ", -1 /* CACHED */ )
301
+ ])
302
+ ]),
303
+ _: 1 /* STABLE */
304
+ }, 8 /* PROPS */ , [
305
+ "disabled"
306
+ ])
307
+ ])), [
308
+ [
309
+ _directive_bk_tooltips,
310
+ {
311
+ content: '该 Skill 并未对所有空间开放,暂不能分享',
312
+ disabled: props.skill.generateType === _unref(EnumCharacter).Public
313
+ }
314
+ ]
315
+ ]),
360
316
  _createElementVNode("li", {
361
317
  onClick: _cache[2] || (_cache[2] = _withModifiers(()=>{}, [
362
318
  "stop"
@@ -378,17 +334,19 @@ export default /*@__PURE__*/ _defineComponent({
378
334
  "api-prefix"
379
335
  ])
380
336
  ]),
381
- getIsFullType() ? (_openBlock(), _createElementBlock("li", _hoisted_3, [
337
+ _createElementVNode("li", {
338
+ onClick: _withModifiers(handleHideDropdown, [
339
+ "stop"
340
+ ])
341
+ }, [
382
342
  _createVNode(_component_bk_button, {
383
343
  loading: isDownloadingSkill.value,
384
344
  size: "small",
385
345
  text: "",
386
- onClick: _withModifiers(handleDownload, [
387
- "stop"
388
- ])
346
+ onClick: handleDownload
389
347
  }, {
390
348
  default: _withCtx(()=>[
391
- ..._cache[10] || (_cache[10] = [
349
+ ..._cache[9] || (_cache[9] = [
392
350
  _createTextVNode(" 下载 ", -1 /* CACHED */ )
393
351
  ])
394
352
  ]),
@@ -396,9 +354,9 @@ export default /*@__PURE__*/ _defineComponent({
396
354
  }, 8 /* PROPS */ , [
397
355
  "loading"
398
356
  ])
399
- ])) : _createCommentVNode("v-if", true),
357
+ ]),
400
358
  getIsCurrentSpace() && getIsFullType() ? (_openBlock(), _createBlock(_component_bk_pop_confirm, {
401
- key: 1,
359
+ key: 0,
402
360
  boundary: `.skill-card-menu-${__props.skill.id}`,
403
361
  "confirm-config": {
404
362
  loading: isDeletingSkill.value
@@ -439,7 +397,7 @@ export default /*@__PURE__*/ _defineComponent({
439
397
  ], 2 /* CLASS */ )
440
398
  ]),
441
399
  _: 1 /* STABLE */
442
- }, 512 /* NEED_PATCH */ )) : _createCommentVNode("v-if", true)
400
+ }, 512 /* NEED_PATCH */ )
443
401
  ], 64 /* STABLE_FRAGMENT */ )) : _createCommentVNode("v-if", true),
444
402
  getIsCurrentSpace() && getIsFullType() && !getIsNotDeleted() ? (_openBlock(), _createBlock(_component_bk_pop_confirm, {
445
403
  key: 2,
@@ -463,7 +421,7 @@ export default /*@__PURE__*/ _defineComponent({
463
421
  ])
464
422
  }, {
465
423
  default: _withCtx(()=>[
466
- ..._cache[11] || (_cache[11] = [
424
+ ..._cache[10] || (_cache[10] = [
467
425
  _createTextVNode(" 恢复 ", -1 /* CACHED */ )
468
426
  ])
469
427
  ]),
@@ -255,7 +255,7 @@ export default /*@__PURE__*/ _defineComponent(Object.assign({
255
255
  }), {
256
256
  columnControllerBottomContent: _withCtx(()=>[
257
257
  _createElementVNode("section", _hoisted_1, [
258
- _cache[5] || (_cache[5] = _createTextVNode(" 表格行高: ", -1 /* CACHED */ )),
258
+ _cache[7] || (_cache[7] = _createTextVNode("\n 表格行高:\n ", -1 /* CACHED */ )),
259
259
  _createVNode(_component_bk_radio_group, {
260
260
  modelValue: rowHeight.value,
261
261
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>rowHeight.value = $event)
@@ -266,27 +266,29 @@ export default /*@__PURE__*/ _defineComponent(Object.assign({
266
266
  }, {
267
267
  default: _withCtx(()=>[
268
268
  ..._cache[2] || (_cache[2] = [
269
- _createTextVNode(" 小 ", -1 /* CACHED */ )
269
+ _createTextVNode("\n 小\n ", -1 /* CACHED */ )
270
270
  ])
271
271
  ]),
272
272
  _: 1 /* STABLE */
273
273
  }),
274
+ _cache[5] || (_cache[5] = _createTextVNode()),
274
275
  _createVNode(_component_bk_radio_button, {
275
276
  label: "g-h-60"
276
277
  }, {
277
278
  default: _withCtx(()=>[
278
279
  ..._cache[3] || (_cache[3] = [
279
- _createTextVNode(" 中 ", -1 /* CACHED */ )
280
+ _createTextVNode("\n 中\n ", -1 /* CACHED */ )
280
281
  ])
281
282
  ]),
282
283
  _: 1 /* STABLE */
283
284
  }),
285
+ _cache[6] || (_cache[6] = _createTextVNode()),
284
286
  _createVNode(_component_bk_radio_button, {
285
287
  label: "g-h-78"
286
288
  }, {
287
289
  default: _withCtx(()=>[
288
290
  ..._cache[4] || (_cache[4] = [
289
- _createTextVNode(" 大 ", -1 /* CACHED */ )
291
+ _createTextVNode("\n 大\n ", -1 /* CACHED */ )
290
292
  ])
291
293
  ]),
292
294
  _: 1 /* STABLE */
@@ -313,7 +315,7 @@ export default /*@__PURE__*/ _defineComponent(Object.assign({
313
315
  }, undefined, true)
314
316
  ]),
315
317
  sortIcon: _withCtx(()=>[
316
- ..._cache[6] || (_cache[6] = [
318
+ ..._cache[8] || (_cache[8] = [
317
319
  _createElementVNode("i", {
318
320
  class: "ai-ui-sdk-icon ai-ui-sdk-angle-up-fill-3 g-text-light-gray"
319
321
  }, null, -1 /* CACHED */ )
@@ -341,6 +343,7 @@ export default /*@__PURE__*/ _defineComponent(Object.assign({
341
343
  "column-controller",
342
344
  "columns"
343
345
  ]),
346
+ _cache[14] || (_cache[14] = _createTextVNode()),
344
347
  __props.pagination ? (_openBlock(), _createBlock(_component_bk_pagination, {
345
348
  key: 0,
346
349
  class: _normalizeClass({
@@ -1,12 +1,12 @@
1
1
 
2
- .t-t-pagination[data-v-gvajxqyu] {
2
+ .t-t-pagination[data-v-8w739woz] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-gvajxqyu] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-8w739woz] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-gvajxqyu]::after {
9
+ .pagination-loading[data-v-8w739woz]::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-gvajxqyu] {
19
+ .pagination-border[data-v-8w739woz] {
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-gvajxqyu] {
25
+ .t-t-table[data-v-8w739woz] {
26
26
  display: inline;
27
27
  font-size: 12px;
28
28
  }
29
- .t-t-table[data-v-gvajxqyu] .t-table__th-cell-inner {
29
+ .t-t-table[data-v-8w739woz] .t-table__th-cell-inner {
30
30
  color: #313238;
31
31
  }
32
- .t-t-table[data-v-gvajxqyu] th {
32
+ .t-t-table[data-v-8w739woz] th {
33
33
  padding: 0 16px;
34
34
  height: 42px;
35
35
  background-color: #FAFBFD !important;
36
36
  }
37
- .t-t-table[data-v-gvajxqyu] .t-table__body tr {
37
+ .t-t-table[data-v-8w739woz] .t-table__body tr {
38
38
  color: #63656e;
39
39
  font-size: 12px;
40
40
  }
41
- .t-t-table[data-v-gvajxqyu] .t-table__body tr td {
41
+ .t-t-table[data-v-8w739woz] .t-table__body tr td {
42
42
  padding: 0 16px;
43
43
  height: 40px;
44
44
  }
45
- .t-t-table[data-v-gvajxqyu] .t-table__body tr:hover td {
45
+ .t-t-table[data-v-8w739woz] .t-table__body tr:hover td {
46
46
  background-color: #f5f7fa !important;
47
47
  color: #63656E;
48
48
  }
49
- .t-t-table[data-v-gvajxqyu] .t-table__content .t-table__body .t-table__empty-row {
49
+ .t-t-table[data-v-8w739woz] .t-table__content .t-table__body .t-table__empty-row {
50
50
  background-color: #fff !important;
51
51
  }
52
- .t-t-table[data-v-gvajxqyu] .t-table__content .t-table__body .t-table__empty-row >td {
52
+ .t-t-table[data-v-8w739woz] .t-table__content .t-table__body .t-table__empty-row >td {
53
53
  border: none;
54
54
  }
55
- .t-t-table[data-v-gvajxqyu] th .t-table__ellipsis {
55
+ .t-t-table[data-v-8w739woz] th .t-table__ellipsis {
56
56
  width: auto !important;
57
57
  }
58
- .t-t-table[data-v-gvajxqyu] .t-loading__gradient.t-icon-loading {
58
+ .t-t-table[data-v-8w739woz] .t-loading__gradient.t-icon-loading {
59
59
  display: none;
60
60
  }
61
- .t-t-table[data-v-gvajxqyu]:first-of-type .t-table__affixed-header-elm-wrap{
61
+ .t-t-table[data-v-8w739woz]:first-of-type .t-table__affixed-header-elm-wrap{
62
62
  width: calc(100% - 6px) !important;
63
63
  }
64
- .t-t-table[data-v-gvajxqyu] .t-table__affixed-header-elm-wrap>div {
64
+ .t-t-table[data-v-8w739woz] .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-gvajxqyu] .t-table--layout-fixed{
68
+ .t-t-table[data-v-8w739woz] .t-table--layout-fixed{
69
69
  width: 100% !important;
70
70
  }
71
- .t-t-table[data-v-gvajxqyu] .bk-exception-description{
71
+ .t-t-table[data-v-8w739woz] .bk-exception-description{
72
72
  margin-bottom: 0;
73
73
  }
74
- .t-t-table[data-v-gvajxqyu] .t-table__content{
74
+ .t-t-table[data-v-8w739woz] .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-gvajxqyu] .t-table__content::-webkit-scrollbar {
79
+ .t-t-table[data-v-8w739woz] .t-table__content::-webkit-scrollbar {
80
80
  width: 6px;
81
81
  height: 6px;
82
82
  }
83
- .t-t-table[data-v-gvajxqyu] .t-table__content::-webkit-scrollbar-thumb {
83
+ .t-t-table[data-v-8w739woz] .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-gvajxqyu] .t-table__content::-webkit-scrollbar-thumb:hover {
89
+ .t-t-table[data-v-8w739woz] .t-table__content::-webkit-scrollbar-thumb:hover {
90
90
  background-color: #979ba5;
91
91
  }
92
- .t-t-table[data-v-gvajxqyu] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
92
+ .t-t-table[data-v-8w739woz] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
93
93
  line-height: 100%;
94
94
  }
95
- .t-t-table[data-v-gvajxqyu] .t-table__cell--sort-trigger.t-table__double-icons{
95
+ .t-t-table[data-v-8w739woz] .t-table__cell--sort-trigger.t-table__double-icons{
96
96
  gap: 5px;
97
97
  }
98
- .t-t-table[data-v-gvajxqyu] .t-table__sort-icon--active>i{
98
+ .t-t-table[data-v-8w739woz] .t-table__sort-icon--active>i{
99
99
  color: #3a84ff !important;
100
100
  }
101
- .t-t-table[data-v-gvajxqyu] .t-table__cell--fixed-left:has(.checkbox){
101
+ .t-t-table[data-v-8w739woz] .t-table__cell--fixed-left:has(.checkbox){
102
102
  line-height: 100%;
103
103
  }
104
- .t-t-table[data-v-gvajxqyu] .t-table__filter-icon.t-is-focus>span{
104
+ .t-t-table[data-v-8w739woz] .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-gvajxqyu";
2
+ script.__scopeId = "data-v-8w739woz";
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-d4yk18zt] {
2
+ .tag-tree[data-v-wtwdgtsg] {
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-d4yk18zt] {
7
+ .tag-tree .manage-tree-item[data-v-wtwdgtsg] {
8
8
  height: 32px;
9
9
  flex: 1;
10
10
  }
11
- .tag-tree .quick-icon[data-v-d4yk18zt] {
11
+ .tag-tree .quick-icon[data-v-wtwdgtsg] {
12
12
  margin-left: -24px;
13
13
  padding-left: 8px;
14
14
  }
15
- .tag-tree[data-v-d4yk18zt] .tree-item:has(.bottom-line) {
15
+ .tag-tree[data-v-wtwdgtsg] .tree-item:has(.bottom-line) {
16
16
  border-bottom: 1px solid #F0F1F5;
17
17
  }
18
- .tag-tree[data-v-d4yk18zt] .tree-item.active .quick-icon {
18
+ .tag-tree[data-v-wtwdgtsg] .tree-item.active .quick-icon {
19
19
  color: #3A84FF;
20
20
  }
21
- .tag-tree[data-v-d4yk18zt] .tree-item.active .tag-number {
21
+ .tag-tree[data-v-wtwdgtsg] .tree-item.active .tag-number {
22
22
  background: #A3C5FD;
23
23
  color: #fff;
24
24
  }
25
- .tag-number[data-v-d4yk18zt] {
25
+ .tag-number[data-v-wtwdgtsg] {
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-d4yk18zt";
2
+ script.__scopeId = "data-v-wtwdgtsg";
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-b54la7mu] {
2
+ .tag-container[data-v-41ijyzqu] {
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-b54la7mu] {
8
+ .tag-home[data-v-41ijyzqu] {
9
9
  vertical-align: sub;
10
10
  flex-shrink: 0;
11
11
  }
12
- [is-show="true"][data-v-b54la7mu] {
12
+ [is-show="true"][data-v-41ijyzqu] {
13
13
  visibility: visible;
14
14
  }
15
- [is-show="false"][data-v-b54la7mu] {
15
+ [is-show="false"][data-v-41ijyzqu] {
16
16
  display: none !important;
17
17
  }
18
- .popover-main[data-v-b54la7mu] {
18
+ .popover-main[data-v-41ijyzqu] {
19
19
  padding: 8px 8px 10px;
20
20
  }
21
- .tag-list[data-v-b54la7mu] {
21
+ .tag-list[data-v-41ijyzqu] {
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-b54la7mu";
2
+ script.__scopeId = "data-v-41ijyzqu";
3
3
  script.__file = "./src/components/render-tags/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -447,6 +447,10 @@
447
447
  height: 42px;
448
448
  }
449
449
 
450
+ .g-h-48 {
451
+ height: 48px;
452
+ }
453
+
450
454
  .g-h-56 {
451
455
  height: 56px;
452
456
  }
@@ -933,10 +937,18 @@ padding: 0px !important;
933
937
  position: relative;
934
938
  }
935
939
 
940
+ .g-right-0 {
941
+ right: 0px;
942
+ }
943
+
936
944
  .g-rotate--90 {
937
945
  transform: rotate(-90deg);
938
946
  }
939
947
 
948
+ .g-rotate-45 {
949
+ transform: rotate(45deg);
950
+ }
951
+
940
952
  .g-rotate-infinite {
941
953
  animation: rotate 2s linear infinite;
942
954
  }
@@ -1185,6 +1197,14 @@ padding: 0px !important;
1185
1197
  color: #ea3636;
1186
1198
  }
1187
1199
 
1200
+ .g-top-0 {
1201
+ top: 0px;
1202
+ }
1203
+
1204
+ .g-top-8 {
1205
+ top: 8px;
1206
+ }
1207
+
1188
1208
  .g-transition-transform {
1189
1209
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), -webkit-transform .3s cubic-bezier(.4, 0, .2, 1);
1190
1210
  }
@@ -1203,6 +1223,10 @@ padding: 0px !important;
1203
1223
  width: 200px;
1204
1224
  }
1205
1225
 
1226
+ .g-w-48 {
1227
+ width: 48px;
1228
+ }
1229
+
1206
1230
  .g-w-64 {
1207
1231
  width: 64px;
1208
1232
  }
@@ -79,6 +79,7 @@
79
79
  "g-h-22",
80
80
  "g-h-24",
81
81
  "g-h-42",
82
+ "g-h-48",
82
83
  "g-h-56",
83
84
  "g-h-60",
84
85
  "g-h-70",
@@ -178,7 +179,9 @@
178
179
  "g-resource-description",
179
180
  "g-resource-main",
180
181
  "g-resource-name",
182
+ "g-right-0",
181
183
  "g-rotate--90",
184
+ "g-rotate-45",
182
185
  "g-rotate-infinite",
183
186
  "g-rounded-2",
184
187
  "g-scrollbar",
@@ -212,10 +215,13 @@
212
215
  "g-text-light-gray",
213
216
  "g-text-normal",
214
217
  "g-text-red",
218
+ "g-top-0",
219
+ "g-top-8",
215
220
  "g-transition-transform",
216
221
  "g-truncate",
217
222
  "g-w-16",
218
223
  "g-w-200",
224
+ "g-w-48",
219
225
  "g-w-64",
220
226
  "g-w-88",
221
227
  "g-w-full",
@@ -25,4 +25,5 @@ export declare const useAgentHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
25
25
  getAgentMcpPermission: (agentId: number, mcpCode: string, mcpType: McpType) => Promise<import("@/types").IAgentApigwMcpPermission>;
26
26
  addAgentFavorite: (id: number) => Promise<unknown>;
27
27
  removeAgentFavorite: (id: number) => Promise<unknown>;
28
+ getAgentSdkUpgrade: (id: number) => Promise<import("@/types").IAgentSdkUpgrade>;
28
29
  };
@@ -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 { transferAgentApi2Agent, transferAgentApigwMcpPermissionApi2AgentApigwMcpPermission, transferAgentCommandApi2AgentCommand, transferAgentCount2AgentCountApi, transferAgentForm2AgentFormApi, transferAgentListParam2AgentListParamApi, transferPaginationResponseApi2PaginationResponse, transferReferringAgentApi2ReferringAgent, transferResourceApply2ResourceApplyApi, transferResourceApplyApi2ResourceApply, transferResourceCountApi2ResourceCount } from '../transforms.ts.js';
54
+ import { transferAgentApi2Agent, transferAgentApigwMcpPermissionApi2AgentApigwMcpPermission, transferAgentCommandApi2AgentCommand, transferAgentCount2AgentCountApi, transferAgentForm2AgentFormApi, transferAgentListParam2AgentListParamApi, transferAgentSdkUpgradeApi2AgentSdkUpgrade, transferPaginationResponseApi2PaginationResponse, transferReferringAgentApi2ReferringAgent, transferResourceApply2ResourceApplyApi, transferResourceApplyApi2ResourceApply, transferResourceCountApi2ResourceCount } from '../transforms.ts.js';
55
55
  export const useAgentHttp = (apiPrefix, spaceId)=>{
56
56
  // 获取 Agent 列表
57
57
  const getAgentList = withAbort((signal, param, config)=>fetch.get(`${apiPrefix}/agent/v1/agent/`, transferAgentListParam2AgentListParamApi(param), _object_spread_props(_object_spread({
@@ -146,6 +146,12 @@ export const useAgentHttp = (apiPrefix, spaceId)=>{
146
146
  'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
147
147
  }
148
148
  });
149
+ // 获取智能体 SDK 升级信息
150
+ const getAgentSdkUpgrade = (id)=>fetch.get(`${apiPrefix}/agent/v1/agent/${id}/sdk_upgrade/`, undefined, {
151
+ headers: {
152
+ 'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
153
+ }
154
+ }).then(transferAgentSdkUpgradeApi2AgentSdkUpgrade);
149
155
  return {
150
156
  getAgentList,
151
157
  getAgent,
@@ -159,6 +165,7 @@ export const useAgentHttp = (apiPrefix, spaceId)=>{
159
165
  getAgentReferringAgents,
160
166
  getAgentMcpPermission,
161
167
  addAgentFavorite,
162
- removeAgentFavorite
168
+ removeAgentFavorite,
169
+ getAgentSdkUpgrade
163
170
  };
164
171
  };
@@ -1,4 +1,4 @@
1
- import type { IAgent, IAgentApi, IAgentApigwMcpPermission, IAgentApigwMcpPermissionApi, IAgentCommand, IAgentCommandApi, IAgentCountParam, IAgentCountParamApi, IAgentForm, IAgentFormApi, IAgentListParam, IAgentListParamApi, IApprovalSetting, IApprovalSettingApi, IResourceApply, IResourceApplyApi } from '@/types/agent';
1
+ import type { IAgent, IAgentApi, IAgentApigwMcpPermission, IAgentApigwMcpPermissionApi, IAgentCommand, IAgentCommandApi, IAgentCountParam, IAgentCountParamApi, IAgentForm, IAgentFormApi, IAgentListParam, IAgentListParamApi, IAgentSdkUpgrade, IAgentSdkUpgradeApi, IApprovalSetting, IApprovalSettingApi, IResourceApply, IResourceApplyApi } from '@/types/agent';
2
2
  /**
3
3
  * 接口转换为ui使用
4
4
  * @param data IAgentCommandApi
@@ -55,6 +55,12 @@ export declare const transferAgentCount2AgentCountApi: (data: IAgentCountParam)
55
55
  * @returns IAgentApigwMcpPermission
56
56
  */
57
57
  export declare const transferAgentApigwMcpPermissionApi2AgentApigwMcpPermission: (data: IAgentApigwMcpPermissionApi) => IAgentApigwMcpPermission;
58
+ /**
59
+ * 接口转换为ui使用(智能体发布页,置顶告知可更新)
60
+ * @param data IAgentSdkUpgradeApi
61
+ * @returns IAgentSdkUpgrade
62
+ */
63
+ export declare const transferAgentSdkUpgradeApi2AgentSdkUpgrade: (data: IAgentSdkUpgradeApi) => IAgentSdkUpgrade;
58
64
  /**
59
65
  * ui转换为接口使用(配置审批)
60
66
  * @param data IApprovalSetting,
@@ -269,6 +269,9 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
269
269
  * @param data IAgentApi
270
270
  * @returns IAgent
271
271
  */ export const transferAgentApi2Agent = (data)=>_object_spread_props(_object_spread({}, transferAgentFormApi2AgentForm(data), transferResourceCommonApi2ResourceCommon(data)), {
272
+ needUpgrade: data.need_upgrade,
273
+ agentSdkVersion: data.agent_sdk_version,
274
+ latestSdkVersion: data.latest_sdk_version,
272
275
  version: data.version,
273
276
  latestVersion: data.latest_version,
274
277
  agentUrl: data.agent_url,
@@ -294,6 +297,9 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
294
297
  * @param data IAgent
295
298
  * @returns IAgentApi
296
299
  */ export const transferAgent2AgentApi = (data)=>_object_spread_props(_object_spread({}, transferAgentForm2AgentFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
300
+ need_upgrade: data.needUpgrade,
301
+ agent_sdk_version: data.agentSdkVersion,
302
+ latest_sdk_version: data.latestSdkVersion,
297
303
  version: data.version,
298
304
  latest_version: data.latestVersion,
299
305
  agent_url: data.agentUrl,
@@ -366,6 +372,16 @@ export const transferAgentCount2AgentCountApi = (data)=>{
366
372
  url: data.url,
367
373
  protocolType: data.protocol_type
368
374
  });
375
+ /**
376
+ * 接口转换为ui使用(智能体发布页,置顶告知可更新)
377
+ * @param data IAgentSdkUpgradeApi
378
+ * @returns IAgentSdkUpgrade
379
+ */ export const transferAgentSdkUpgradeApi2AgentSdkUpgrade = (data)=>({
380
+ currentSdkVersion: data.current_sdk_version,
381
+ latestSdkVersion: data.latest_sdk_version,
382
+ needUpgrade: data.need_upgrade,
383
+ changelog: data.changelog
384
+ });
369
385
  /**
370
386
  * ui转换为接口使用(配置审批)
371
387
  * @param data IApprovalSetting,