@blueking/ai-ui-sdk 0.1.0 → 0.1.1

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 (43) hide show
  1. package/dist/components/render-aside/index.vue.css +9 -9
  2. package/dist/components/render-aside/index.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-collapse/index.vue.css +2 -2
  6. package/dist/components/render-collapse/index.vue.js +1 -1
  7. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
  8. package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
  9. package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
  10. package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
  11. package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
  12. package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
  13. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
  14. package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
  15. package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
  16. package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
  17. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
  18. package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
  19. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
  20. package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
  21. package/dist/components/render-dataset/components/source-type-icon/index.vue.css +3 -3
  22. package/dist/components/render-dataset/components/source-type-icon/index.vue.js +1 -1
  23. package/dist/components/render-dataset/index.vue.css +1 -1
  24. package/dist/components/render-dataset/index.vue.js +1 -1
  25. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +1 -1
  26. package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +1 -1
  27. package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
  28. package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
  29. package/dist/components/render-dataset-list/components/main.vue.css +3 -3
  30. package/dist/components/render-dataset-list/components/main.vue.js +1 -1
  31. package/dist/components/render-expand-collapse/index.vue.css +3 -3
  32. package/dist/components/render-expand-collapse/index.vue.js +1 -1
  33. package/dist/components/render-file-card/index.vue.css +11 -11
  34. package/dist/components/render-file-card/index.vue.js +1 -1
  35. package/dist/components/render-file-type-icon/index.vue.css +5 -5
  36. package/dist/components/render-file-type-icon/index.vue.js +1 -1
  37. package/dist/components/render-header/index.vue.css +5 -5
  38. package/dist/components/render-header/index.vue.js +1 -1
  39. package/dist/components/render-router-tab/index.vue.css +3 -3
  40. package/dist/components/render-router-tab/index.vue.js +1 -1
  41. package/dist/hooks/use-chat.ts.js +10 -0
  42. package/dist/types/session.d.ts +2 -2
  43. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
 
2
- .aside-home[data-v-9lgmv9ye] {
2
+ .aside-home[data-v-mp3yrpmu] {
3
3
  width: 300px;
4
4
  height: 100%;
5
5
  background: #FFFFFF;
6
6
  padding: 16px;
7
7
  border-right: 1px solid #eaebf0;
8
8
  }
9
- [data-v-9lgmv9ye] .aside-item {
9
+ [data-v-mp3yrpmu] .aside-item {
10
10
  width: 268px;
11
11
  line-height: 36px;
12
12
  border-radius: 2px;
@@ -16,30 +16,30 @@
16
16
  justify-content: space-between;
17
17
  color: #979BA5;
18
18
  }
19
- [data-v-9lgmv9ye] .aside-item.is-tab {
19
+ [data-v-mp3yrpmu] .aside-item.is-tab {
20
20
  background: #F5F7FA;
21
21
  cursor: pointer;
22
22
  color: #4D4F56;
23
23
  }
24
- [data-v-9lgmv9ye] .aside-item.is-tab:hover {
24
+ [data-v-mp3yrpmu] .aside-item.is-tab:hover {
25
25
  background: #F0F5FF;
26
26
  }
27
- [data-v-9lgmv9ye] .aside-item.active {
27
+ [data-v-mp3yrpmu] .aside-item.active {
28
28
  background: #F0F5FF;
29
29
  color: #3A84FF;
30
30
  font-weight: 700;
31
31
  }
32
- [data-v-9lgmv9ye] .aside-item.active .tab-num {
32
+ [data-v-mp3yrpmu] .aside-item.active .tab-num {
33
33
  background: #3A84FF;
34
34
  color: #fff;
35
35
  }
36
- [data-v-9lgmv9ye] .aside-item.active .active-text {
36
+ [data-v-mp3yrpmu] .aside-item.active .active-text {
37
37
  color: #3A84FF;
38
38
  }
39
- [data-v-9lgmv9ye] .aside-item .tab-name {
39
+ [data-v-mp3yrpmu] .aside-item .tab-name {
40
40
  flex: 1;
41
41
  }
42
- [data-v-9lgmv9ye] .aside-item .tab-num {
42
+ [data-v-mp3yrpmu] .aside-item .tab-num {
43
43
  background: #EAEBF0;
44
44
  border-radius: 2px;
45
45
  margin-left: 5px;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-9lgmv9ye";
2
+ script.__scopeId = "data-v-mp3yrpmu";
3
3
  script.__file = "./src/components/render-aside/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,40 +1,40 @@
1
1
 
2
- .send-container[data-v-iixt3wuu] {
2
+ .send-container[data-v-26j2taim] {
3
3
  position: relative;
4
4
  }
5
- .send-container[data-v-iixt3wuu]:has(textarea:focus) {
5
+ .send-container[data-v-26j2taim]:has(textarea:focus) {
6
6
  z-index: 2;
7
7
  }
8
- .send-container:hover .send-clear[data-v-iixt3wuu] {
8
+ .send-container:hover .send-clear[data-v-26j2taim] {
9
9
  display: inline-flex !important;
10
10
  }
11
- .send-input[data-v-iixt3wuu] {
11
+ .send-input[data-v-26j2taim] {
12
12
  width: 100%;
13
13
  flex-direction: row;
14
14
  height: var(--origin-height);
15
15
  }
16
- .send-input[data-v-iixt3wuu]:has(textarea:focus) {
16
+ .send-input[data-v-26j2taim]:has(textarea:focus) {
17
17
  height: var(--text-height);
18
18
  }
19
- .send-input[data-v-iixt3wuu] textarea {
19
+ .send-input[data-v-26j2taim] textarea {
20
20
  font-size: 12px;
21
21
  line-height: 16px;
22
22
  padding: 7px;
23
23
  resize: none !important;
24
24
  }
25
- .send-input[data-v-iixt3wuu] textarea::-webkit-scrollbar {
25
+ .send-input[data-v-26j2taim] textarea::-webkit-scrollbar {
26
26
  width: 4px;
27
27
  height: 4px;
28
28
  }
29
- .send-input[data-v-iixt3wuu] textarea::-webkit-scrollbar-thumb {
29
+ .send-input[data-v-26j2taim] textarea::-webkit-scrollbar-thumb {
30
30
  height: 5px;
31
31
  border-radius: 3px;
32
32
  background-color: #dcdee5;
33
33
  }
34
- .send-input[data-v-iixt3wuu] textarea::placeholder {
34
+ .send-input[data-v-26j2taim] textarea::placeholder {
35
35
  line-height: 16px;
36
36
  }
37
- .send-clear[data-v-iixt3wuu] {
37
+ .send-clear[data-v-26j2taim] {
38
38
  display: none !important;
39
39
  position: absolute;
40
40
  right: 10px;
@@ -43,6 +43,6 @@
43
43
  font-size: 14px;
44
44
  cursor: pointer;
45
45
  }
46
- .send-clear[data-v-iixt3wuu]:hover {
46
+ .send-clear[data-v-26j2taim]:hover {
47
47
  color: #313238;
48
48
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-iixt3wuu";
2
+ script.__scopeId = "data-v-26j2taim";
3
3
  script.__file = "./src/components/render-auto-height-textarea/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .collapse-title[data-v-e7ca8al5] {
2
+ .collapse-title[data-v-ummp7jsp] {
3
3
  height: 28px;
4
4
  background: #F0F1F5;
5
5
  border-radius: 2px;
6
6
  padding: 0 12px;
7
7
  }
8
- .collapse-title .is-hidden[data-v-e7ca8al5] {
8
+ .collapse-title .is-hidden[data-v-ummp7jsp] {
9
9
  transform: rotate(-90deg);
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-e7ca8al5";
2
+ script.__scopeId = "data-v-ummp7jsp";
3
3
  script.__file = "./src/components/render-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .content[data-v-4cxeqd3m] {
2
+ .content[data-v-8qmv3x4k] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .data-set-edit-slider .value-content[data-v-4cxeqd3m] {
7
+ .data-set-edit-slider .value-content[data-v-8qmv3x4k] {
8
8
  padding: 16px;
9
9
  border: 1px solid #DCDEE5;
10
10
  line-height: 22px;
11
11
  }
12
- .data-set-edit-slider[data-v-4cxeqd3m] .bk-sideslider-title {
12
+ .data-set-edit-slider[data-v-8qmv3x4k] .bk-sideslider-title {
13
13
  justify-content: space-between;
14
14
  width: 100%;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-4cxeqd3m";
2
+ script.__scopeId = "data-v-8qmv3x4k";
3
3
  script.__file = "./src/components/render-dataset/components/edit-dataset-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,18 +1,18 @@
1
1
 
2
- .content[data-v-0eux0nwi] {
2
+ .content[data-v-vj519gmz] {
3
3
  padding: 0 24px 0px 32px;
4
4
  height: 100%;
5
5
  }
6
- .content .toolbar[data-v-0eux0nwi] {
6
+ .content .toolbar[data-v-vj519gmz] {
7
7
  margin: 16px 0;
8
8
  display: flex;
9
9
  align-items: center;
10
10
  justify-content: right;
11
11
  gap: 8px;
12
12
  }
13
- .content .toolbar .record-search[data-v-0eux0nwi] {
13
+ .content .toolbar .record-search[data-v-vj519gmz] {
14
14
  width: 360px;
15
15
  }
16
- .content .toolbar .record-data-picker[data-v-0eux0nwi] {
16
+ .content .toolbar .record-data-picker[data-v-vj519gmz] {
17
17
  width: 260px;
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-0eux0nwi";
2
+ script.__scopeId = "data-v-vj519gmz";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .text[data-v-dzaaepr6] {
2
+ .text[data-v-9zhssxz1] {
3
3
  display: -webkit-box;
4
4
  -webkit-line-clamp: 2;
5
5
  -webkit-box-orient: vertical;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-dzaaepr6";
2
+ script.__scopeId = "data-v-9zhssxz1";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .content[data-v-93ebwvn7] {
2
+ .content[data-v-z6jiibqt] {
3
3
  padding: 18px 24px 0;
4
4
  height: 100%;
5
5
  overflow: auto;
6
6
  }
7
- .content .value-content[data-v-93ebwvn7] {
7
+ .content .value-content[data-v-z6jiibqt] {
8
8
  margin-top: 8px;
9
9
  padding: 16px;
10
10
  border: 1px solid #DCDEE5;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-93ebwvn7";
2
+ script.__scopeId = "data-v-z6jiibqt";
3
3
  script.__file = "./src/components/render-dataset/components/operation-record/view-op-result/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,8 +1,8 @@
1
1
 
2
- .dataset-data-content[data-v-tn8ojvud] {
2
+ .dataset-data-content[data-v-90aj69cm] {
3
3
  padding: 20px 24px;
4
4
  height: 100%;
5
5
  }
6
- .dataset-data-slider[data-v-tn8ojvud] .bk-modal-content {
6
+ .dataset-data-slider[data-v-90aj69cm] .bk-modal-content {
7
7
  scrollbar-gutter: inherit !important;
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-tn8ojvud";
2
+ script.__scopeId = "data-v-90aj69cm";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .footer-button[data-v-tidchxe5] {
2
+ .footer-button[data-v-13wuxzw7] {
3
3
  width: 88px;
4
4
  margin-right: 8px;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import script from './footer.script.vue.js.js';
2
- script.__scopeId = "data-v-tidchxe5";
2
+ script.__scopeId = "data-v-13wuxzw7";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/footer.vue";
4
4
  import './footer.vue.css';
5
5
  export default script;
@@ -1,7 +1,7 @@
1
1
 
2
- .plus-dataset-data[data-v-te9fdbha] {
2
+ .plus-dataset-data[data-v-wpiffi8o] {
3
3
  padding: 20px 24px;
4
4
  }
5
- .plus-dataset-sideslider[data-v-te9fdbha] .bk-modal-content {
5
+ .plus-dataset-sideslider[data-v-wpiffi8o] .bk-modal-content {
6
6
  scrollbar-gutter: inherit !important;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-te9fdbha";
2
+ script.__scopeId = "data-v-wpiffi8o";
3
3
  script.__file = "./src/components/render-dataset/components/plus-dataset-data/form/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,10 +1,10 @@
1
1
 
2
- .bkaidev-markdown[data-v-teckoasf] {
2
+ .bkaidev-markdown[data-v-kby081up] {
3
3
  color: #3a84ff;
4
4
  }
5
- .bkaidev-wangye[data-v-teckoasf] {
5
+ .bkaidev-wangye[data-v-kby081up] {
6
6
  color: #14A568;
7
7
  }
8
- .bkaidev-wenben[data-v-teckoasf] {
8
+ .bkaidev-wenben[data-v-kby081up] {
9
9
  color: #979ba5;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-teckoasf";
2
+ script.__scopeId = "data-v-kby081up";
3
3
  script.__file = "./src/components/render-dataset/components/source-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .dataset-main[data-v-my1mtw8a] {
2
+ .dataset-main[data-v-mvza7no3] {
3
3
  flex: 1;
4
4
  width: calc(100vw - 300px);
5
5
  height: 100%;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-my1mtw8a";
2
+ script.__scopeId = "data-v-mvza7no3";
3
3
  script.__file = "./src/components/render-dataset/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .ellipsis-text[data-v-w40lsba3] {
2
+ .ellipsis-text[data-v-t9a4v2md] {
3
3
  display: -webkit-box;
4
4
  -webkit-line-clamp: 2;
5
5
  -webkit-box-orient: vertical;
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js';
2
- script.__scopeId = "data-v-w40lsba3";
2
+ script.__scopeId = "data-v-t9a4v2md";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/components/table/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .origin-data-content[data-v-uh328q8z] {
2
+ .origin-data-content[data-v-mu9b8uj6] {
3
3
  padding: 24px;
4
4
  height: calc(100% - 52px - 44px);
5
5
  }
6
- .origin-data-panel[data-v-uh328q8z] {
6
+ .origin-data-panel[data-v-mu9b8uj6] {
7
7
  height: 100%;
8
8
  padding: 20px;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .origin-data-panel .toolbar-search[data-v-uh328q8z] {
13
+ .origin-data-panel .toolbar-search[data-v-mu9b8uj6] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-uh328q8z";
2
+ script.__scopeId = "data-v-mu9b8uj6";
3
3
  script.__file = "./src/components/render-dataset-detail-origin-data/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,15 +1,15 @@
1
1
 
2
- .main-content[data-v-g318sn42] {
2
+ .main-content[data-v-t9cnwhpn] {
3
3
  padding: 20px 24px;
4
4
  height: calc(100% - 52px);
5
5
  }
6
- .main-panel[data-v-g318sn42] {
6
+ .main-panel[data-v-t9cnwhpn] {
7
7
  height: 100%;
8
8
  padding: 20px 24px 0;
9
9
  background: #ffffff;
10
10
  box-shadow: 0 2px 4px 0 #1919290d;
11
11
  border-radius: 2px;
12
12
  }
13
- .main-search[data-v-g318sn42] {
13
+ .main-search[data-v-t9cnwhpn] {
14
14
  width: 6.17rem;
15
15
  }
@@ -1,5 +1,5 @@
1
1
  import script from './main.script.vue.js.js';
2
- script.__scopeId = "data-v-g318sn42";
2
+ script.__scopeId = "data-v-t9cnwhpn";
3
3
  script.__file = "./src/components/render-dataset-list/components/main.vue";
4
4
  import './main.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .expend-collapse-home[data-v-mzyxjrs2] {
2
+ .expend-collapse-home[data-v-fig0t368] {
3
3
  width: 16px;
4
4
  height: 64px;
5
5
  background: #DCDEE5;
@@ -15,9 +15,9 @@
15
15
  cursor: pointer;
16
16
  z-index: 1550;
17
17
  }
18
- .expend-collapse-home[data-v-mzyxjrs2]:hover {
18
+ .expend-collapse-home[data-v-fig0t368]:hover {
19
19
  background: #979BA5;
20
20
  }
21
- .expend-collapse-home.is-close[data-v-mzyxjrs2] {
21
+ .expend-collapse-home.is-close[data-v-fig0t368] {
22
22
  left: 0;
23
23
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-mzyxjrs2";
2
+ script.__scopeId = "data-v-fig0t368";
3
3
  script.__file = "./src/components/render-expand-collapse/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,21 +1,21 @@
1
1
 
2
- .upload-file-home[data-v-uz0mf4vo] {
2
+ .upload-file-home[data-v-vq17gpi9] {
3
3
  position: relative;
4
4
  background: #FFFFFF;
5
5
  border: 1px solid #DCDEE5;
6
6
  border-radius: 4px;
7
7
  padding: 12px 12px 10px 12px;
8
8
  }
9
- .upload-file-home[data-v-uz0mf4vo]:hover {
9
+ .upload-file-home[data-v-vq17gpi9]:hover {
10
10
  border: 1px solid #3A84FF;
11
11
  }
12
- .upload-file-home:hover .file-icons[data-v-uz0mf4vo] {
12
+ .upload-file-home:hover .file-icons[data-v-vq17gpi9] {
13
13
  display: flex;
14
14
  }
15
- .upload-file-home .file-icon[data-v-uz0mf4vo] {
15
+ .upload-file-home .file-icon[data-v-vq17gpi9] {
16
16
  font-size: 32px;
17
17
  }
18
- .upload-file-home .file-content[data-v-uz0mf4vo] {
18
+ .upload-file-home .file-content[data-v-vq17gpi9] {
19
19
  font-size: 12px;
20
20
  flex: 1;
21
21
  align-items: flex-start;
@@ -23,28 +23,28 @@
23
23
  font-weight: normal;
24
24
  width: 0;
25
25
  }
26
- .upload-file-home .file-content .file-name[data-v-uz0mf4vo] {
26
+ .upload-file-home .file-content .file-name[data-v-vq17gpi9] {
27
27
  width: 100%;
28
28
  font-size: 14px;
29
29
  line-height: 20px;
30
30
  }
31
- .upload-file-home .file-content .file-size[data-v-uz0mf4vo] {
31
+ .upload-file-home .file-content .file-size[data-v-vq17gpi9] {
32
32
  font-size: 12px;
33
33
  color: #979BA5;
34
34
  line-height: 20px;
35
35
  }
36
- .upload-file-home .file-icons[data-v-uz0mf4vo] {
36
+ .upload-file-home .file-icons[data-v-vq17gpi9] {
37
37
  display: none;
38
38
  color: #979BA5;
39
39
  }
40
- .upload-file-home .file-icons .bkaidev-icon[data-v-uz0mf4vo] {
40
+ .upload-file-home .file-icons .bkaidev-icon[data-v-vq17gpi9] {
41
41
  cursor: pointer;
42
42
  margin-right: 15px;
43
43
  font-size: 16px;
44
44
  }
45
- .upload-file-home .file-icons .bkaidev-icon[data-v-uz0mf4vo]:hover {
45
+ .upload-file-home .file-icons .bkaidev-icon[data-v-vq17gpi9]:hover {
46
46
  color: #3A84FF;
47
47
  }
48
- .upload-file-home .file-icons .bkaidev-delete[data-v-uz0mf4vo] {
48
+ .upload-file-home .file-icons .bkaidev-delete[data-v-vq17gpi9] {
49
49
  margin: 0;
50
50
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-uz0mf4vo";
2
+ script.__scopeId = "data-v-vq17gpi9";
3
3
  script.__file = "./src/components/render-file-card/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,16 +1,16 @@
1
1
 
2
- .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-19lqdnh3] {
2
+ .ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-3opmvxkw] {
3
3
  color: #EA3636;
4
4
  }
5
- .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-19lqdnh3], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-19lqdnh3], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-19lqdnh3] {
5
+ .ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-3opmvxkw], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-3opmvxkw], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-3opmvxkw] {
6
6
  color: #3A84FF;
7
7
  }
8
- .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-19lqdnh3] {
8
+ .ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-3opmvxkw] {
9
9
  color: #C4C6CC;
10
10
  }
11
- .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-19lqdnh3] {
11
+ .ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-3opmvxkw] {
12
12
  color: #2DCB56;
13
13
  }
14
- .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-19lqdnh3] {
14
+ .ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-3opmvxkw] {
15
15
  color: #14A568;
16
16
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-19lqdnh3";
2
+ script.__scopeId = "data-v-3opmvxkw";
3
3
  script.__file = "./src/components/render-file-type-icon/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,5 +1,5 @@
1
1
 
2
- .header-home[data-v-lqiie5r6] {
2
+ .header-home[data-v-aminljxd] {
3
3
  width: 100%;
4
4
  height: 52px;
5
5
  background: #FFFFFF;
@@ -7,14 +7,14 @@
7
7
  position: relative;
8
8
  z-index: 2;
9
9
  }
10
- .header-title[data-v-lqiie5r6] {
10
+ .header-title[data-v-aminljxd] {
11
11
  position: absolute;
12
12
  left: 24px;
13
13
  top: 14px;
14
14
  font-size: 16px;
15
15
  color: #313238;
16
16
  }
17
- .header-main[data-v-lqiie5r6] {
17
+ .header-main[data-v-aminljxd] {
18
18
  display: flex;
19
19
  align-items: center;
20
20
  justify-content: flex-end;
@@ -22,13 +22,13 @@
22
22
  height: 100%;
23
23
  margin: 0 auto;
24
24
  }
25
- .header-select[data-v-lqiie5r6] {
25
+ .header-select[data-v-aminljxd] {
26
26
  width: 300px;
27
27
  margin-right: 8px;
28
28
  z-index: 9;
29
29
  font-size: 12px;
30
30
  }
31
- .header-input[data-v-lqiie5r6] {
31
+ .header-input[data-v-aminljxd] {
32
32
  width: 300px;
33
33
  font-size: 12px;
34
34
  }
@@ -1,5 +1,5 @@
1
1
  import script from './index.script.vue.js.js';
2
- script.__scopeId = "data-v-lqiie5r6";
2
+ script.__scopeId = "data-v-aminljxd";
3
3
  script.__file = "./src/components/render-header/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -1,12 +1,12 @@
1
1
 
2
- .router-tab[data-v-oi9bzlkw] {
2
+ .router-tab[data-v-7owrgxjo] {
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 45px;
8
8
  }
9
- .router-tab a[data-v-oi9bzlkw] {
9
+ .router-tab a[data-v-7owrgxjo] {
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-oi9bzlkw] {
18
+ .router-tab a.router-link-exact-active[data-v-7owrgxjo] {
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-oi9bzlkw";
2
+ script.__scopeId = "data-v-7owrgxjo";
3
3
  script.__file = "./src/components/render-router-tab/index.vue";
4
4
  import './index.vue.css';
5
5
  export default script;
@@ -430,8 +430,18 @@ export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThi
430
430
  sessionLoadingMap.value[sessionCode] = false;
431
431
  // token 超了,提示 token 不足
432
432
  if (code === HttpErrorCode.TokenExpired) {
433
+ var _currentSession_value_sessionProperty, _currentSession_value;
433
434
  sessionContent.content = '抱歉,您的剩余 Token 不足,无法返回回答内容,请先清空当前会话(上下文仍会作为历史记录保留))';
434
435
  sessionContent.role = SessionContentRole.TokenExpired;
436
+ if ((_currentSession_value = currentSession.value) === null || _currentSession_value === void 0 ? void 0 : (_currentSession_value_sessionProperty = _currentSession_value.sessionProperty) === null || _currentSession_value_sessionProperty === void 0 ? void 0 : _currentSession_value_sessionProperty.isAutoClear) {
437
+ var _currentSession_value1;
438
+ yield plusSessionContent2Db({
439
+ sessionCode,
440
+ role: SessionContentRole.System,
441
+ content: '由于Token超限,已自动清理会话,后续会话不会携带先前的会话信息'
442
+ });
443
+ yield apiImpl.clearSession((_currentSession_value1 = currentSession.value) === null || _currentSession_value1 === void 0 ? void 0 : _currentSession_value1.sessionCode);
444
+ }
435
445
  }
436
446
  if (code === HttpErrorCode.ImageNotSupported) {
437
447
  sessionContent.content = '抱歉,当前模型不支持图片内容解析';
@@ -1,6 +1,6 @@
1
- import type { ITool, IToolApi } from './tool';
2
- import type { IKnowledge, IKnowledgeApi, IKnowledgebase, IKnowledgebaseApi } from './knowledge';
3
1
  import { SessionContentRole, SessionContentStatus, SessionPromptRole } from './enum';
2
+ import type { IKnowledge, IKnowledgeApi, IKnowledgebase, IKnowledgebaseApi } from './knowledge';
3
+ import type { ITool, IToolApi } from './tool';
4
4
  export interface IAnchorPathResources {
5
5
  knowledges?: IKnowledge[];
6
6
  knowledgebases?: IKnowledgebase[];
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@blueking/ai-ui-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "蓝鲸AI UI SDK",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",
7
7
  "scripts": {
8
- "build": "bk-cli-service build && rm -rf /data/home/home/aidev-dataset/src/frontend/node_modules/@blueking/ai-ui-sdk/dist && cp -r ./dist /data/home/home/aidev-dataset/src/frontend/node_modules/@blueking/ai-ui-sdk/dist && vue-tsc --emitDeclarationOnly"
8
+ "build": "bk-cli-service build && vue-tsc --emitDeclarationOnly"
9
9
  },
10
10
  "files": [
11
11
  "dist"