@blueking/ai-ui-sdk 0.2.0-beta.5 → 0.2.0-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 (77) hide show
  1. package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
  2. package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
  3. package/dist/components/render-auto-refresh/index.vue.css +8 -8
  4. package/dist/components/render-auto-refresh/index.vue.js +1 -1
  5. package/dist/components/render-checkbox/index.script.vue.js.js +23 -4
  6. package/dist/components/render-checkbox/index.vue.css +9 -9
  7. package/dist/components/render-checkbox/index.vue.d.ts +1 -0
  8. package/dist/components/render-checkbox/index.vue.js +1 -1
  9. package/dist/components/render-choose-tag/index.script.vue.js.js +4 -2
  10. package/dist/components/render-choose-tag/index.vue.css +7 -7
  11. package/dist/components/render-choose-tag/index.vue.js +1 -1
  12. package/dist/components/render-collapse/index.vue.css +2 -2
  13. package/dist/components/render-collapse/index.vue.js +1 -1
  14. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
  15. package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
  16. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
  17. package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +1 -1
  18. package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
  19. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +1 -1
  20. package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
  21. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  22. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  23. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  24. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  25. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  26. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  27. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  28. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  29. package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +3 -1
  30. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  31. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  32. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
  33. package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
  34. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  35. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  36. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  37. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  38. package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
  39. package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
  40. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  41. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  42. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  43. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  44. package/dist/components/render-dataset-list/index.vue.css +2 -2
  45. package/dist/components/render-dataset-list/index.vue.js +1 -1
  46. package/dist/components/render-file-card/index.vue.css +11 -11
  47. package/dist/components/render-file-card/index.vue.d.ts +9 -5
  48. package/dist/components/render-file-card/index.vue.js +1 -1
  49. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  50. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  51. package/dist/components/render-header/index.vue.css +3 -3
  52. package/dist/components/render-header/index.vue.js +1 -1
  53. package/dist/components/render-like/index.vue.css +5 -5
  54. package/dist/components/render-like/index.vue.d.ts +3 -3
  55. package/dist/components/render-like/index.vue.js +1 -1
  56. package/dist/components/render-router-tab/index.vue.css +3 -3
  57. package/dist/components/render-router-tab/index.vue.js +1 -1
  58. package/dist/components/render-search-empty/index.vue.d.ts +9 -5
  59. package/dist/components/render-search-select/index.script.vue.js.js +176 -20
  60. package/dist/components/render-search-select/index.vue.d.ts +14 -5
  61. package/dist/components/render-t-table/index.vue.css +27 -27
  62. package/dist/components/render-t-table/index.vue.d.ts +9 -5
  63. package/dist/components/render-t-table/index.vue.js +1 -1
  64. package/dist/components/render-tag-tree/index.vue.css +7 -7
  65. package/dist/components/render-tag-tree/index.vue.js +1 -1
  66. package/dist/components/render-tree/index.script.vue.js +22 -1
  67. package/dist/components/render-tree/index.vue.d.ts +9 -5
  68. package/dist/css/tailwind.css +35 -1
  69. package/dist/hooks/use-chat.d.ts +20 -12
  70. package/dist/hooks.d.ts +1 -0
  71. package/dist/hooks.ts.js +1 -0
  72. package/dist/http/helper/agent.ts.js +2 -0
  73. package/dist/types/agent.d.ts +2 -0
  74. package/dist/types/enum.d.ts +5 -0
  75. package/dist/types/enum.ts.js +6 -0
  76. package/dist/types/tool.d.ts +2 -1
  77. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
1
  import type { ISearchSelectItem } from '@/types/common';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_PrettifyLocal<{
2
+ import { Module } from '@/types/enum';
3
+ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
5
  data: ISearchSelectItem[];
5
6
  modelValue: T;
6
7
  placeholder?: string;
@@ -12,9 +13,15 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
12
13
  id: number;
13
14
  }[]) => Promise<boolean | string> | boolean | string;
14
15
  getMenuList?: Function;
16
+ isShowTagSearch?: boolean;
17
+ apiPrefix?: string;
18
+ spaceId?: string;
19
+ module?: Module;
15
20
  } & {
16
21
  "onUpdate:modelValue"?: (value: T) => any;
17
- }> & import("vue").PublicProps;
22
+ }> & (typeof globalThis extends {
23
+ __VLS_PROPS_FALLBACK: infer P;
24
+ } ? P : {});
18
25
  expose: (exposed: {}) => void;
19
26
  attrs: any;
20
27
  slots: {};
@@ -24,6 +31,8 @@ declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_se
24
31
  };
25
32
  declare const _default: typeof __VLS_export;
26
33
  export default _default;
27
- type __VLS_PrettifyLocal<T> = {
34
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
35
+ [K in keyof T]: T[K];
36
+ } : {
28
37
  [K in keyof T as K]: T[K];
29
- } & {};
38
+ }) & {};
@@ -1,12 +1,12 @@
1
1
 
2
- .t-t-pagination[data-v-jitsp04f] {
2
+ .t-t-pagination[data-v-3v533fbv] {
3
3
  position: relative;
4
4
  padding: 16px 16px 0 16px;
5
5
  }
6
- .t-t-pagination[data-v-jitsp04f] .bk-pagination-list.is-last {
6
+ .t-t-pagination[data-v-3v533fbv] .bk-pagination-list.is-last {
7
7
  margin-left: auto;
8
8
  }
9
- .pagination-loading[data-v-jitsp04f]::after {
9
+ .pagination-loading[data-v-3v533fbv]::after {
10
10
  content: '';
11
11
  position: absolute;
12
12
  top: 0;
@@ -16,93 +16,93 @@
16
16
  background-color: rgba(255, 255, 255, 0.6);
17
17
  z-index: 72;
18
18
  }
19
- .pagination-border[data-v-jitsp04f] {
19
+ .pagination-border[data-v-3v533fbv] {
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-jitsp04f] {
25
+ .t-t-table[data-v-3v533fbv] {
26
26
  display: inline;
27
27
  font-size: 12px;
28
28
  }
29
- .t-t-table[data-v-jitsp04f] .t-table__th-cell-inner {
29
+ .t-t-table[data-v-3v533fbv] .t-table__th-cell-inner {
30
30
  color: #313238;
31
31
  }
32
- .t-t-table[data-v-jitsp04f] th {
32
+ .t-t-table[data-v-3v533fbv] th {
33
33
  padding: 0 16px;
34
34
  height: 42px;
35
35
  background-color: #FAFBFD !important;
36
36
  }
37
- .t-t-table[data-v-jitsp04f] .t-table__body tr {
37
+ .t-t-table[data-v-3v533fbv] .t-table__body tr {
38
38
  color: #63656e;
39
39
  font-size: 12px;
40
40
  }
41
- .t-t-table[data-v-jitsp04f] .t-table__body tr td {
41
+ .t-t-table[data-v-3v533fbv] .t-table__body tr td {
42
42
  padding: 0 16px;
43
43
  height: 40px;
44
44
  background-color: #fff;
45
45
  }
46
- .t-t-table[data-v-jitsp04f] .t-table__body tr:hover td {
46
+ .t-t-table[data-v-3v533fbv] .t-table__body tr:hover td {
47
47
  background-color: #f5f7fa !important;
48
48
  color: #63656E;
49
49
  }
50
- .t-t-table[data-v-jitsp04f] .t-table__content .t-table__body .t-table__empty-row {
50
+ .t-t-table[data-v-3v533fbv] .t-table__content .t-table__body .t-table__empty-row {
51
51
  background-color: #fff !important;
52
52
  }
53
- .t-t-table[data-v-jitsp04f] .t-table__content .t-table__body .t-table__empty-row >td {
53
+ .t-t-table[data-v-3v533fbv] .t-table__content .t-table__body .t-table__empty-row >td {
54
54
  border: none;
55
55
  }
56
- .t-t-table[data-v-jitsp04f] th .t-table__ellipsis {
56
+ .t-t-table[data-v-3v533fbv] th .t-table__ellipsis {
57
57
  width: auto !important;
58
58
  }
59
- .t-t-table[data-v-jitsp04f] .t-loading__gradient.t-icon-loading {
59
+ .t-t-table[data-v-3v533fbv] .t-loading__gradient.t-icon-loading {
60
60
  display: none;
61
61
  }
62
- .t-t-table[data-v-jitsp04f]:first-of-type .t-table__affixed-header-elm-wrap{
62
+ .t-t-table[data-v-3v533fbv]:first-of-type .t-table__affixed-header-elm-wrap{
63
63
  width: calc(100% - 6px) !important;
64
64
  }
65
- .t-t-table[data-v-jitsp04f] .t-table__affixed-header-elm-wrap>div {
65
+ .t-t-table[data-v-3v533fbv] .t-table__affixed-header-elm-wrap>div {
66
66
  width: 100% !important;
67
67
  scrollbar-width: none;
68
68
  }
69
- .t-t-table[data-v-jitsp04f] .t-table--layout-fixed{
69
+ .t-t-table[data-v-3v533fbv] .t-table--layout-fixed{
70
70
  width: 100% !important;
71
71
  }
72
- .t-t-table[data-v-jitsp04f] .bk-exception-description{
72
+ .t-t-table[data-v-3v533fbv] .bk-exception-description{
73
73
  margin-bottom: 0;
74
74
  }
75
- .t-t-table[data-v-jitsp04f] .t-table__content{
75
+ .t-t-table[data-v-3v533fbv] .t-table__content{
76
76
  z-index: 2;
77
77
  max-height: 100%;
78
78
  overflow: auto;
79
79
  }
80
- .t-t-table[data-v-jitsp04f] .t-table__content::-webkit-scrollbar {
80
+ .t-t-table[data-v-3v533fbv] .t-table__content::-webkit-scrollbar {
81
81
  width: 6px;
82
82
  height: 6px;
83
83
  }
84
- .t-t-table[data-v-jitsp04f] .t-table__content::-webkit-scrollbar-thumb {
84
+ .t-t-table[data-v-3v533fbv] .t-table__content::-webkit-scrollbar-thumb {
85
85
  width: 6px;
86
86
  height: 6px;
87
87
  border-radius: 3px;
88
88
  background-color: #dcdee5;
89
89
  }
90
- .t-t-table[data-v-jitsp04f] .t-table__content::-webkit-scrollbar-thumb:hover {
90
+ .t-t-table[data-v-3v533fbv] .t-table__content::-webkit-scrollbar-thumb:hover {
91
91
  background-color: #979ba5;
92
92
  }
93
- .t-t-table[data-v-jitsp04f] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
93
+ .t-t-table[data-v-3v533fbv] .t-table__ellipsis.t-text-ellipsis:has(.checkbox){
94
94
  line-height: 100%;
95
95
  }
96
- .t-t-table[data-v-jitsp04f] .t-table__cell--sort-trigger.t-table__double-icons{
96
+ .t-t-table[data-v-3v533fbv] .t-table__cell--sort-trigger.t-table__double-icons{
97
97
  gap: 5px;
98
98
  }
99
- .t-t-table[data-v-jitsp04f] .t-table__sort-icon--active>i{
99
+ .t-t-table[data-v-3v533fbv] .t-table__sort-icon--active>i{
100
100
  color: #3a84ff !important;
101
101
  }
102
- .t-t-table[data-v-jitsp04f] .t-table__cell--fixed-left:has(.checkbox){
102
+ .t-t-table[data-v-3v533fbv] .t-table__cell--fixed-left:has(.checkbox){
103
103
  line-height: 100%;
104
104
  }
105
- .t-t-table[data-v-jitsp04f] .t-table__filter-icon.t-is-focus>span{
105
+ .t-t-table[data-v-3v533fbv] .t-table__filter-icon.t-is-focus>span{
106
106
  color: #3a84ff !important;
107
107
  }
108
108
 
@@ -1,6 +1,6 @@
1
1
  import type { IPagination, ITTableCol } from '@/types/common';
2
- declare const __VLS_export: <T, S>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
- props: __VLS_PrettifyLocal<{
2
+ declare const __VLS_export: <T, S>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
4
  columns: Array<ITTableCol<T>>;
5
5
  isLoading?: boolean;
6
6
  tableData: T[];
@@ -27,7 +27,9 @@ declare const __VLS_export: <T, S>(__VLS_props: NonNullable<Awaited<typeof __VLS
27
27
  "onPage-size-change"?: (val: number) => any;
28
28
  "onRow-click"?: (row: T) => any;
29
29
  "onRow-mouseenter"?: (row: T) => any;
30
- }> & import("vue").PublicProps;
30
+ }> & (typeof globalThis extends {
31
+ __VLS_PROPS_FALLBACK: infer P;
32
+ } ? P : {});
31
33
  expose: (exposed: {}) => void;
32
34
  attrs: any;
33
35
  slots: {
@@ -54,6 +56,8 @@ declare const __VLS_export: <T, S>(__VLS_props: NonNullable<Awaited<typeof __VLS
54
56
  };
55
57
  declare const _default: typeof __VLS_export;
56
58
  export default _default;
57
- type __VLS_PrettifyLocal<T> = {
59
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
60
+ [K in keyof T]: T[K];
61
+ } : {
58
62
  [K in keyof T as K]: T[K];
59
- } & {};
63
+ }) & {};
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-jitsp04f";
2
+ script.__scopeId = "data-v-3v533fbv";
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-f5ib2czh] {
2
+ .tag-tree[data-v-2db8x3ac] {
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-f5ib2czh] {
7
+ .tag-tree .manage-tree-item[data-v-2db8x3ac] {
8
8
  height: 32px;
9
9
  flex: 1;
10
10
  }
11
- .tag-tree .quick-icon[data-v-f5ib2czh] {
11
+ .tag-tree .quick-icon[data-v-2db8x3ac] {
12
12
  margin-left: -24px;
13
13
  padding-left: 8px;
14
14
  }
15
- .tag-tree[data-v-f5ib2czh] .tree-item:has(.bottom-line) {
15
+ .tag-tree[data-v-2db8x3ac] .tree-item:has(.bottom-line) {
16
16
  border-bottom: 1px solid #F0F1F5;
17
17
  }
18
- .tag-tree[data-v-f5ib2czh] .tree-item.active .quick-icon {
18
+ .tag-tree[data-v-2db8x3ac] .tree-item.active .quick-icon {
19
19
  color: #3A84FF;
20
20
  }
21
- .tag-tree[data-v-f5ib2czh] .tree-item.active .tag-number {
21
+ .tag-tree[data-v-2db8x3ac] .tree-item.active .tag-number {
22
22
  background: #A3C5FD;
23
23
  color: #fff;
24
24
  }
25
- .tag-number[data-v-f5ib2czh] {
25
+ .tag-number[data-v-2db8x3ac] {
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-f5ib2czh";
2
+ script.__scopeId = "data-v-2db8x3ac";
3
3
  script.__file = "./src/components/render-tag-tree/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -72,12 +72,33 @@ export default /*@__PURE__*/ _defineComponent({
72
72
  emits('update:search', value);
73
73
  };
74
74
  // 点击树组件
75
- const handleClickTreeItem = (data)=>__awaiter(this, void 0, void 0, function*() {
75
+ const handleClickTreeItem = (data)=>{
76
+ handleChooseTreeItem(data);
77
+ handleShowTreeChildren(data);
78
+ };
79
+ // 选择树组件
80
+ const handleChooseTreeItem = (data)=>__awaiter(this, void 0, void 0, function*() {
76
81
  const allowed = yield props.chooseCheck(data);
77
82
  if (allowed) {
78
83
  emits('select', data);
79
84
  }
80
85
  });
86
+ // 显示树子节点
87
+ const handleShowTreeChildren = (data)=>{
88
+ var _a;
89
+ if (props.isNodeHasChildren(data) && ((_a = data.children) === null || _a === void 0 ? void 0 : _a.length) <= 0) {
90
+ emits('async-load', data);
91
+ }
92
+ // 计算展开的id
93
+ const openedIds = [
94
+ ...props.openedIds
95
+ ];
96
+ const index = openedIds.indexOf(data[props.keyName]);
97
+ if (index < 0) {
98
+ openedIds.push(data[props.keyName]);
99
+ }
100
+ emits('update:openedIds', openedIds);
101
+ };
81
102
  // 展开折叠树组件
82
103
  const handleToggleTreeItem = (data)=>{
83
104
  var _a;
@@ -3,8 +3,8 @@ declare const __VLS_export: <S, T extends {
3
3
  id?: number;
4
4
  name?: string;
5
5
  children?: T[];
6
- }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
- props: __VLS_PrettifyLocal<{
6
+ }>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
7
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
8
8
  data: Array<T>;
9
9
  search?: S;
10
10
  apiPrefix: string;
@@ -24,7 +24,9 @@ declare const __VLS_export: <S, T extends {
24
24
  "onUpdate:loadingIds"?: (value: (string | number)[]) => any;
25
25
  "onUpdate:openedIds"?: (value: (string | number)[]) => any;
26
26
  "onAsync-load"?: (node: T) => any;
27
- }> & import("vue").PublicProps;
27
+ }> & (typeof globalThis extends {
28
+ __VLS_PROPS_FALLBACK: infer P;
29
+ } ? P : {});
28
30
  expose: (exposed: {}) => void;
29
31
  attrs: any;
30
32
  slots: {
@@ -41,6 +43,8 @@ declare const __VLS_export: <S, T extends {
41
43
  };
42
44
  declare const _default: typeof __VLS_export;
43
45
  export default _default;
44
- type __VLS_PrettifyLocal<T> = {
46
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
47
+ [K in keyof T]: T[K];
48
+ } : {
45
49
  [K in keyof T as K]: T[K];
46
- } & {};
50
+ }) & {};
@@ -694,6 +694,10 @@
694
694
  width: 108px;
695
695
  }
696
696
 
697
+ .g-width-200 {
698
+ width: 200px;
699
+ }
700
+
697
701
  .g-width-5rem {
698
702
  width: 5rem !important;
699
703
  }
@@ -782,8 +786,12 @@
782
786
  background-color: #fff !important;
783
787
  }
784
788
 
789
+ .g-bg-e1ecff {
790
+ background-color: #e1ecff !important;
791
+ }
792
+
785
793
  .g-cursor-pointer {
786
- cursor: pointer;
794
+ cursor: pointer !important;
787
795
  }
788
796
 
789
797
  .g-cursor-grab {
@@ -842,12 +850,30 @@
842
850
  }
843
851
  }
844
852
 
853
+ .g-hover-bg-pale-blue {
854
+ &:hover {
855
+ background-color: #cddffe !important;
856
+ }
857
+ }
858
+
845
859
  .g-hover-bg-light-gray {
846
860
  &:hover {
847
861
  background-color: #dcdee5 !important;
848
862
  }
849
863
  }
850
864
 
865
+ .g-hover-bg-ultralight-gray {
866
+ &:hover {
867
+ background-color: #eaebf0 !important;
868
+ }
869
+ }
870
+
871
+ .G-HOVER-BG-F0F0F6 {
872
+ &:hover {
873
+ background-color: #f0f0f6 !important;
874
+ }
875
+ }
876
+
851
877
  .g-hover-round {
852
878
  &:hover {
853
879
  border-radius: 100%;
@@ -908,6 +934,10 @@
908
934
  color: #ff9c01;
909
935
  }
910
936
 
937
+ .g-text-f59500 {
938
+ color: #f59500;
939
+ }
940
+
911
941
  .g-font-bold {
912
942
  font-weight: bold;
913
943
  }
@@ -976,6 +1006,10 @@
976
1006
  gap: 12px;
977
1007
  }
978
1008
 
1009
+ .g-gap-20 {
1010
+ gap: 20px;
1011
+ }
1012
+
979
1013
  .g-gap-24 {
980
1014
  gap: 24px;
981
1015
  }
@@ -39,7 +39,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
39
39
  type: import("../types/enum").ApiValueType;
40
40
  default: string | number | boolean;
41
41
  description: string;
42
- validate: {
42
+ validate?: {
43
43
  enable: boolean;
44
44
  rules: {
45
45
  func: string;
@@ -47,6 +47,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
47
47
  value: string;
48
48
  }[];
49
49
  };
50
+ children?: /*elided*/ any[];
50
51
  }[];
51
52
  query?: {
52
53
  name: string;
@@ -54,7 +55,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
54
55
  type: import("../types/enum").ApiValueType;
55
56
  default: string | number | boolean;
56
57
  description: string;
57
- validate: {
58
+ validate?: {
58
59
  enable: boolean;
59
60
  rules: {
60
61
  func: string;
@@ -62,6 +63,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
62
63
  value: string;
63
64
  }[];
64
65
  };
66
+ children?: /*elided*/ any[];
65
67
  }[];
66
68
  body?: {
67
69
  name: string;
@@ -69,7 +71,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
69
71
  type: import("../types/enum").ApiValueType;
70
72
  default: string | number | boolean;
71
73
  description: string;
72
- validate: {
74
+ validate?: {
73
75
  enable: boolean;
74
76
  rules: {
75
77
  func: string;
@@ -77,6 +79,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
77
79
  value: string;
78
80
  }[];
79
81
  };
82
+ children?: /*elided*/ any[];
80
83
  }[];
81
84
  path?: {
82
85
  name: string;
@@ -84,7 +87,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
84
87
  type: import("../types/enum").ApiValueType;
85
88
  default: string | number | boolean;
86
89
  description: string;
87
- validate: {
90
+ validate?: {
88
91
  enable: boolean;
89
92
  rules: {
90
93
  func: string;
@@ -92,6 +95,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
92
95
  value: string;
93
96
  }[];
94
97
  };
98
+ children?: /*elided*/ any[];
95
99
  }[];
96
100
  isSensitive?: boolean;
97
101
  credentialId?: number;
@@ -262,9 +266,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
262
266
  readonly size: number;
263
267
  readonly type: string;
264
268
  arrayBuffer: () => Promise<ArrayBuffer>;
265
- bytes: () => Promise<Uint8Array>;
269
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
266
270
  slice: (start?: number, end?: number, contentType?: string) => Blob;
267
- stream: () => ReadableStream<Uint8Array>;
271
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
268
272
  text: () => Promise<string>;
269
273
  }[];
270
274
  loadingPercentage?: number;
@@ -542,7 +546,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
542
546
  type: import("../types/enum").ApiValueType;
543
547
  default: string | number | boolean;
544
548
  description: string;
545
- validate: {
549
+ validate?: {
546
550
  enable: boolean;
547
551
  rules: {
548
552
  func: string;
@@ -550,6 +554,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
550
554
  value: string;
551
555
  }[];
552
556
  };
557
+ children?: /*elided*/ any[];
553
558
  }[];
554
559
  query?: {
555
560
  name: string;
@@ -557,7 +562,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
557
562
  type: import("../types/enum").ApiValueType;
558
563
  default: string | number | boolean;
559
564
  description: string;
560
- validate: {
565
+ validate?: {
561
566
  enable: boolean;
562
567
  rules: {
563
568
  func: string;
@@ -565,6 +570,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
565
570
  value: string;
566
571
  }[];
567
572
  };
573
+ children?: /*elided*/ any[];
568
574
  }[];
569
575
  body?: {
570
576
  name: string;
@@ -572,7 +578,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
572
578
  type: import("../types/enum").ApiValueType;
573
579
  default: string | number | boolean;
574
580
  description: string;
575
- validate: {
581
+ validate?: {
576
582
  enable: boolean;
577
583
  rules: {
578
584
  func: string;
@@ -580,6 +586,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
580
586
  value: string;
581
587
  }[];
582
588
  };
589
+ children?: /*elided*/ any[];
583
590
  }[];
584
591
  path?: {
585
592
  name: string;
@@ -587,7 +594,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
587
594
  type: import("../types/enum").ApiValueType;
588
595
  default: string | number | boolean;
589
596
  description: string;
590
- validate: {
597
+ validate?: {
591
598
  enable: boolean;
592
599
  rules: {
593
600
  func: string;
@@ -595,6 +602,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
595
602
  value: string;
596
603
  }[];
597
604
  };
605
+ children?: /*elided*/ any[];
598
606
  }[];
599
607
  isSensitive?: boolean;
600
608
  credentialId?: number;
@@ -765,9 +773,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
765
773
  readonly size: number;
766
774
  readonly type: string;
767
775
  arrayBuffer: () => Promise<ArrayBuffer>;
768
- bytes: () => Promise<Uint8Array>;
776
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
769
777
  slice: (start?: number, end?: number, contentType?: string) => Blob;
770
- stream: () => ReadableStream<Uint8Array>;
778
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
771
779
  text: () => Promise<string>;
772
780
  }[];
773
781
  loadingPercentage?: number;
package/dist/hooks.d.ts CHANGED
@@ -10,3 +10,4 @@ export * from './hooks/use-reference-doc';
10
10
  export * from './hooks/use-member-http';
11
11
  export * from './hooks/use-t-table';
12
12
  export * from './hooks/use-ellipsis-tooltip';
13
+ export * from './hooks/use-common-http';
package/dist/hooks.ts.js CHANGED
@@ -10,3 +10,4 @@ export * from './hooks/use-reference-doc.ts.js';
10
10
  export * from './hooks/use-member-http.ts.js';
11
11
  export * from './hooks/use-t-table.ts.js';
12
12
  export * from './hooks/use-ellipsis-tooltip.ts.js';
13
+ export * from './hooks/use-common-http.ts.js';
@@ -33,6 +33,7 @@
33
33
  id: data.id,
34
34
  name: data.name,
35
35
  icon: data.icon,
36
+ spaceId: data.space_id,
36
37
  agentId: data.agent_id,
37
38
  agentName: data.agent_name,
38
39
  content: data.content,
@@ -70,6 +71,7 @@
70
71
  id: data.id,
71
72
  name: data.name,
72
73
  icon: data.icon,
74
+ space_id: data.spaceId,
73
75
  agent_id: data.agentId,
74
76
  agent_name: data.agentName,
75
77
  content: data.content,
@@ -32,6 +32,7 @@ export interface IAgentCommandApi {
32
32
  agent_name: string;
33
33
  status?: ResourceStatus;
34
34
  selectedText?: string | null;
35
+ space_id?: string;
35
36
  alias?: string;
36
37
  updated_at?: string;
37
38
  updated_by?: string;
@@ -88,6 +89,7 @@ export interface IAgentCommand {
88
89
  agentId: number;
89
90
  agentName: string;
90
91
  status?: ResourceStatus;
92
+ spaceId?: string;
91
93
  alias?: string;
92
94
  updatedAt?: string;
93
95
  updatedBy?: string;
@@ -266,3 +266,8 @@ export declare enum ModelSpaceAuthMode {
266
266
  Apply = "APPLY",
267
267
  Grey = "GREY"
268
268
  }
269
+ export declare enum SkillEffectiveStatus {
270
+ Pass = "pass",
271
+ Fail = "fail",
272
+ Error = "error"
273
+ }
@@ -299,3 +299,9 @@ export var ModelSpaceAuthMode;
299
299
  ModelSpaceAuthMode["Apply"] = "APPLY";
300
300
  ModelSpaceAuthMode["Grey"] = "GREY";
301
301
  })(ModelSpaceAuthMode || (ModelSpaceAuthMode = {}));
302
+ export var SkillEffectiveStatus;
303
+ (function(SkillEffectiveStatus) {
304
+ SkillEffectiveStatus["Pass"] = "pass";
305
+ SkillEffectiveStatus["Fail"] = "fail";
306
+ SkillEffectiveStatus["Error"] = "error";
307
+ })(SkillEffectiveStatus || (SkillEffectiveStatus = {}));
@@ -11,10 +11,11 @@ export interface IToolParam {
11
11
  type: ApiValueType;
12
12
  default: string | number | boolean;
13
13
  description: string;
14
- validate: {
14
+ validate?: {
15
15
  enable: boolean;
16
16
  rules: IToolRule[];
17
17
  };
18
+ children?: IToolParam[];
18
19
  }
19
20
  export interface IToolFormApi extends IResourceFormCommonApi {
20
21
  tool_name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.2.0-beta.5",
3
+ "version": "0.2.0-beta.7",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
@@ -95,6 +95,6 @@
95
95
  "postcss-nested": "^7.0.2",
96
96
  "postcss-nested-ancestors": "^3.0.0",
97
97
  "typescript": "^5.5.4",
98
- "vue-tsc": "^3.1.4"
98
+ "vue-tsc": "^3.2.6"
99
99
  }
100
100
  }