@blueking/ai-ui-sdk 0.1.15-beta.1 → 0.1.16-beta.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.
- package/dist/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +2 -8
- package/dist/components/render-auto-height-textarea/index.script.vue.js.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.script.vue.js.js +6 -24
- package/dist/components/render-dataset/components/dataset-data-level/{index.script.vue.js → index.script.vue.js.js} +2 -12
- package/dist/components/render-dataset/components/dataset-data-level/index.vue.js +1 -1
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +3 -13
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js.js +1 -4
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-footer.script.vue.js.js +2 -8
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +23 -12
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.vue.d.ts +0 -2
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +2 -8
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.d.ts +0 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +3 -12
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +2 -8
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/index.script.vue.js.js +1 -4
- package/dist/components/render-dataset/components/review-dataset-data/index.script.vue.js.js +5 -21
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +1 -5
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +1 -4
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +6 -25
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +2 -8
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +3 -12
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +0 -2
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +6 -20
- package/dist/components/render-dataset-list/index.script.vue.js.js +2 -8
- package/dist/components/render-dataset-list/index.vue.d.ts +0 -2
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/hooks/use-chat.d.ts +0 -30
- package/dist/hooks/use-form-rule.d.ts +1 -1
- package/dist/http/helper/tool.ts.js +1 -3
- package/dist/types/agent.d.ts +2 -0
- package/dist/types/common.d.ts +1 -1
- package/dist/types/enum.d.ts +1 -6
- package/dist/types/enum.ts.js +0 -5
- package/dist/types/tool.d.ts +0 -2
- package/package.json +1 -1
- package/dist/hooks/use-form-rule.ts.js +0 -101
|
@@ -27,9 +27,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
27
27
|
type: Boolean
|
|
28
28
|
},
|
|
29
29
|
spaceId: {},
|
|
30
|
-
tabId: {}
|
|
31
|
-
namePlaceholder: {},
|
|
32
|
-
codePlaceholder: {}
|
|
30
|
+
tabId: {}
|
|
33
31
|
},
|
|
34
32
|
emits: [
|
|
35
33
|
"success-plus-dataset"
|
|
@@ -67,10 +65,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
67
65
|
default: _withCtx(()=>_cache[2] || (_cache[2] = [
|
|
68
66
|
_createTextVNode(" 创建数据集 ")
|
|
69
67
|
])),
|
|
70
|
-
_: 1 /* STABLE */
|
|
71
|
-
__: [
|
|
72
|
-
2
|
|
73
|
-
]
|
|
68
|
+
_: 1 /* STABLE */
|
|
74
69
|
})
|
|
75
70
|
]),
|
|
76
71
|
_createVNode(RenderSearchDataset, {
|
|
@@ -109,16 +104,12 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
109
104
|
"api-prefix": _ctx.apiPrefix,
|
|
110
105
|
"space-id": _ctx.spaceId,
|
|
111
106
|
"is-internal": _ctx.isInternal,
|
|
112
|
-
"name-placeholder": _ctx.namePlaceholder,
|
|
113
|
-
"code-placeholder": _ctx.codePlaceholder,
|
|
114
107
|
onSuccessPlus: handleSuccessPlusDataset
|
|
115
108
|
}, null, 8 /* PROPS */ , [
|
|
116
109
|
"modelValue",
|
|
117
110
|
"api-prefix",
|
|
118
111
|
"space-id",
|
|
119
|
-
"is-internal"
|
|
120
|
-
"name-placeholder",
|
|
121
|
-
"code-placeholder"
|
|
112
|
+
"is-internal"
|
|
122
113
|
])
|
|
123
114
|
]);
|
|
124
115
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
.main-content[data-v-
|
|
2
|
+
.main-content[data-v-nj70xxub] {
|
|
3
3
|
padding: 20px 24px;
|
|
4
4
|
height: calc(100% - 52px);
|
|
5
5
|
}
|
|
6
|
-
.main-panel[data-v-
|
|
6
|
+
.main-panel[data-v-nj70xxub] {
|
|
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-
|
|
13
|
+
.main-search[data-v-nj70xxub] {
|
|
14
14
|
width: 6.17rem;
|
|
15
15
|
}
|
|
@@ -6,8 +6,6 @@ interface IProps {
|
|
|
6
6
|
reviewDataset?: boolean;
|
|
7
7
|
spaceId?: string;
|
|
8
8
|
tabId: EnumCharacter;
|
|
9
|
-
namePlaceholder?: string;
|
|
10
|
-
codePlaceholder?: string;
|
|
11
9
|
}
|
|
12
10
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
11
|
"success-plus-dataset": (data: IDataset) => any;
|
|
@@ -383,10 +383,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
383
383
|
default: _withCtx(()=>_cache[3] || (_cache[3] = [
|
|
384
384
|
_createTextVNode(" 查看详情 ")
|
|
385
385
|
])),
|
|
386
|
-
_: 2 /* DYNAMIC */
|
|
387
|
-
__: [
|
|
388
|
-
3
|
|
389
|
-
]
|
|
386
|
+
_: 2 /* DYNAMIC */
|
|
390
387
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
391
388
|
"class",
|
|
392
389
|
"onMouseenter",
|
|
@@ -425,10 +422,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
425
422
|
default: _withCtx(()=>_cache[4] || (_cache[4] = [
|
|
426
423
|
_createTextVNode(" 编辑数据集 ")
|
|
427
424
|
])),
|
|
428
|
-
_: 2 /* DYNAMIC */
|
|
429
|
-
__: [
|
|
430
|
-
4
|
|
431
|
-
]
|
|
425
|
+
_: 2 /* DYNAMIC */
|
|
432
426
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
433
427
|
"class",
|
|
434
428
|
"onMouseenter",
|
|
@@ -453,10 +447,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
453
447
|
default: _withCtx(()=>_cache[5] || (_cache[5] = [
|
|
454
448
|
_createTextVNode(" 操作记录 ")
|
|
455
449
|
])),
|
|
456
|
-
_: 2 /* DYNAMIC */
|
|
457
|
-
__: [
|
|
458
|
-
5
|
|
459
|
-
]
|
|
450
|
+
_: 2 /* DYNAMIC */
|
|
460
451
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */ , [
|
|
461
452
|
"class",
|
|
462
453
|
"onMouseenter",
|
|
@@ -496,14 +487,9 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
496
487
|
], 2 /* CLASS */ )
|
|
497
488
|
]),
|
|
498
489
|
default: _withCtx(()=>[
|
|
499
|
-
_createElementVNode("i", {
|
|
500
|
-
class:
|
|
501
|
-
|
|
502
|
-
'g-text-16 g-p-2 g-ml-12 g-cursor-pointer',
|
|
503
|
-
'g-hover-bg-light-gray g-hover-round',
|
|
504
|
-
isDatasetManagePermission(row) ? 'g-text-blue' : ''
|
|
505
|
-
])
|
|
506
|
-
}, null, 2 /* CLASS */ )
|
|
490
|
+
_cache[6] || (_cache[6] = _createElementVNode("i", {
|
|
491
|
+
class: "ai-ui-sdk-icon ai-ui-sdk-gengduo-2 g-text-16 g-ml-12 g-cursor-pointer"
|
|
492
|
+
}, null, -1 /* HOISTED */ ))
|
|
507
493
|
]),
|
|
508
494
|
_: 2 /* DYNAMIC */
|
|
509
495
|
}, 1536 /* NEED_PATCH, DYNAMIC_SLOTS */ )
|
|
@@ -12,9 +12,7 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
12
12
|
reviewDataset: {
|
|
13
13
|
type: Boolean
|
|
14
14
|
},
|
|
15
|
-
tabId: {}
|
|
16
|
-
namePlaceholder: {},
|
|
17
|
-
codePlaceholder: {}
|
|
15
|
+
tabId: {}
|
|
18
16
|
},
|
|
19
17
|
emits: [
|
|
20
18
|
"success-plus-dataset"
|
|
@@ -33,17 +31,13 @@ export default /*@__PURE__*/ _defineComponent({
|
|
|
33
31
|
"is-internal": _ctx.isInternal,
|
|
34
32
|
"review-dataset": _ctx.reviewDataset,
|
|
35
33
|
"tab-id": _ctx.tabId,
|
|
36
|
-
"name-placeholder": _ctx.namePlaceholder,
|
|
37
|
-
"code-placeholder": _ctx.codePlaceholder,
|
|
38
34
|
onSuccessPlusDataset: handleSuccessPlusDataset
|
|
39
35
|
}, null, 8 /* PROPS */ , [
|
|
40
36
|
"api-prefix",
|
|
41
37
|
"space-id",
|
|
42
38
|
"is-internal",
|
|
43
39
|
"review-dataset",
|
|
44
|
-
"tab-id"
|
|
45
|
-
"name-placeholder",
|
|
46
|
-
"code-placeholder"
|
|
40
|
+
"tab-id"
|
|
47
41
|
])
|
|
48
42
|
], 64 /* STABLE_FRAGMENT */ );
|
|
49
43
|
};
|
|
@@ -6,8 +6,6 @@ interface IProps {
|
|
|
6
6
|
isInternal?: boolean;
|
|
7
7
|
reviewDataset?: boolean;
|
|
8
8
|
tabId: EnumCharacter;
|
|
9
|
-
namePlaceholder?: string;
|
|
10
|
-
codePlaceholder?: string;
|
|
11
9
|
}
|
|
12
10
|
declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
11
|
"success-plus-dataset": (data: IDataset) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.expend-collapse-home[data-v-
|
|
2
|
+
.expend-collapse-home[data-v-lr5lr77r] {
|
|
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-
|
|
18
|
+
.expend-collapse-home[data-v-lr5lr77r]:hover {
|
|
19
19
|
background: #979BA5;
|
|
20
20
|
}
|
|
21
|
-
.expend-collapse-home.is-close[data-v-
|
|
21
|
+
.expend-collapse-home.is-close[data-v-lr5lr77r] {
|
|
22
22
|
left: 0;
|
|
23
23
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
.upload-file-home[data-v-
|
|
2
|
+
.upload-file-home[data-v-n965np4x] {
|
|
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-
|
|
9
|
+
.upload-file-home[data-v-n965np4x]:hover {
|
|
10
10
|
border: 1px solid #3A84FF;
|
|
11
11
|
}
|
|
12
|
-
.upload-file-home:hover .file-icons[data-v-
|
|
12
|
+
.upload-file-home:hover .file-icons[data-v-n965np4x] {
|
|
13
13
|
display: flex;
|
|
14
14
|
}
|
|
15
|
-
.upload-file-home .file-icon[data-v-
|
|
15
|
+
.upload-file-home .file-icon[data-v-n965np4x] {
|
|
16
16
|
font-size: 32px;
|
|
17
17
|
}
|
|
18
|
-
.upload-file-home .file-content[data-v-
|
|
18
|
+
.upload-file-home .file-content[data-v-n965np4x] {
|
|
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-
|
|
26
|
+
.upload-file-home .file-content .file-name[data-v-n965np4x] {
|
|
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-
|
|
31
|
+
.upload-file-home .file-content .file-size[data-v-n965np4x] {
|
|
32
32
|
font-size: 12px;
|
|
33
33
|
color: #979BA5;
|
|
34
34
|
line-height: 20px;
|
|
35
35
|
}
|
|
36
|
-
.upload-file-home .file-icons[data-v-
|
|
36
|
+
.upload-file-home .file-icons[data-v-n965np4x] {
|
|
37
37
|
display: none;
|
|
38
38
|
color: #979BA5;
|
|
39
39
|
}
|
|
40
|
-
.upload-file-home .file-icons .bkaidev-icon[data-v-
|
|
40
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-n965np4x] {
|
|
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-
|
|
45
|
+
.upload-file-home .file-icons .bkaidev-icon[data-v-n965np4x]:hover {
|
|
46
46
|
color: #3A84FF;
|
|
47
47
|
}
|
|
48
|
-
.upload-file-home .file-icons .bkaidev-delete[data-v-
|
|
48
|
+
.upload-file-home .file-icons .bkaidev-delete[data-v-n965np4x] {
|
|
49
49
|
margin: 0;
|
|
50
50
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-
|
|
2
|
+
.ai-ui-sdk-icon.ai-ui-sdk-pdf[data-v-uu15s2v5] {
|
|
3
3
|
color: #EA3636;
|
|
4
4
|
}
|
|
5
|
-
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-
|
|
5
|
+
.ai-ui-sdk-icon.ai-ui-sdk-doc-2[data-v-uu15s2v5], .ai-ui-sdk-icon.ai-ui-sdk-ppt-2[data-v-uu15s2v5], .ai-ui-sdk-icon.ai-ui-sdk-markdown[data-v-uu15s2v5] {
|
|
6
6
|
color: #3A84FF;
|
|
7
7
|
}
|
|
8
|
-
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-
|
|
8
|
+
.ai-ui-sdk-icon.ai-ui-sdk-folder-fill[data-v-uu15s2v5] {
|
|
9
9
|
color: #C4C6CC;
|
|
10
10
|
}
|
|
11
|
-
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-
|
|
11
|
+
.ai-ui-sdk-icon.ai-ui-sdk-excel[data-v-uu15s2v5] {
|
|
12
12
|
color: #2DCB56;
|
|
13
13
|
}
|
|
14
|
-
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-
|
|
14
|
+
.ai-ui-sdk-icon.ai-ui-sdk-wangye[data-v-uu15s2v5] {
|
|
15
15
|
color: #14A568;
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.header-home[data-v-
|
|
2
|
+
.header-home[data-v-r2bz25rx] {
|
|
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-
|
|
10
|
+
.header-title[data-v-r2bz25rx] {
|
|
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-
|
|
17
|
+
.header-main[data-v-r2bz25rx] {
|
|
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-
|
|
25
|
+
.header-select[data-v-r2bz25rx] {
|
|
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-
|
|
31
|
+
.header-input[data-v-r2bz25rx] {
|
|
32
32
|
width: 300px;
|
|
33
33
|
font-size: 12px;
|
|
34
34
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
.router-tab[data-v-
|
|
2
|
+
.router-tab[data-v-qusfutql] {
|
|
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-
|
|
9
|
+
.router-tab a[data-v-qusfutql] {
|
|
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-
|
|
18
|
+
.router-tab a.router-link-exact-active[data-v-qusfutql] {
|
|
19
19
|
color: #3A84FF;
|
|
20
20
|
border-bottom: 2px solid #3A84FF;
|
|
21
21
|
}
|
package/dist/hooks/use-chat.d.ts
CHANGED
|
@@ -73,21 +73,6 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
73
73
|
}[];
|
|
74
74
|
};
|
|
75
75
|
}[];
|
|
76
|
-
path?: {
|
|
77
|
-
name: string;
|
|
78
|
-
required: boolean;
|
|
79
|
-
type: import("../types/enum").ApiValueType;
|
|
80
|
-
default: string | number | boolean;
|
|
81
|
-
description: string;
|
|
82
|
-
validate: {
|
|
83
|
-
enable: boolean;
|
|
84
|
-
rules: {
|
|
85
|
-
func: string;
|
|
86
|
-
message: string;
|
|
87
|
-
value: string;
|
|
88
|
-
}[];
|
|
89
|
-
};
|
|
90
|
-
}[];
|
|
91
76
|
creator: string;
|
|
92
77
|
createTime: string;
|
|
93
78
|
updateTime: string;
|
|
@@ -524,21 +509,6 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
524
509
|
}[];
|
|
525
510
|
};
|
|
526
511
|
}[];
|
|
527
|
-
path?: {
|
|
528
|
-
name: string;
|
|
529
|
-
required: boolean;
|
|
530
|
-
type: import("../types/enum").ApiValueType;
|
|
531
|
-
default: string | number | boolean;
|
|
532
|
-
description: string;
|
|
533
|
-
validate: {
|
|
534
|
-
enable: boolean;
|
|
535
|
-
rules: {
|
|
536
|
-
func: string;
|
|
537
|
-
message: string;
|
|
538
|
-
value: string;
|
|
539
|
-
}[];
|
|
540
|
-
};
|
|
541
|
-
}[];
|
|
542
512
|
creator: string;
|
|
543
513
|
createTime: string;
|
|
544
514
|
updateTime: string;
|
|
@@ -16,7 +16,7 @@ export declare const useFormRule: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
16
16
|
message: () => string;
|
|
17
17
|
trigger: string;
|
|
18
18
|
};
|
|
19
|
-
getCodeRule: (type: Modules, getIsEdit
|
|
19
|
+
getCodeRule: (type: Modules, getIsEdit: () => boolean, getData?: () => Record<string, unknown>) => {
|
|
20
20
|
validator: (value: string) => Promise<boolean>;
|
|
21
21
|
message: () => string;
|
|
22
22
|
trigger: string;
|
|
@@ -7,7 +7,6 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
7
7
|
header: data.property.header,
|
|
8
8
|
query: data.property.query,
|
|
9
9
|
body: data.property.body,
|
|
10
|
-
path: data.property.path,
|
|
11
10
|
creator: data.created_by,
|
|
12
11
|
createTime: data.created_at,
|
|
13
12
|
updateTime: data.updated_at,
|
|
@@ -49,7 +48,6 @@ import { transferResourcePermission } from './permission.ts.js';
|
|
|
49
48
|
property: {
|
|
50
49
|
header: data.header,
|
|
51
50
|
query: data.query,
|
|
52
|
-
body: data.body
|
|
53
|
-
path: data.path
|
|
51
|
+
body: data.body
|
|
54
52
|
}
|
|
55
53
|
});
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface IAgentCommandApi {
|
|
|
21
21
|
content: string | null;
|
|
22
22
|
agent_id: number;
|
|
23
23
|
status: string;
|
|
24
|
+
selectedText?: string | null;
|
|
24
25
|
}
|
|
25
26
|
export interface IAgentInfoApi {
|
|
26
27
|
conversation_settings?: {
|
|
@@ -48,6 +49,7 @@ export interface IAgentCommandComponent {
|
|
|
48
49
|
max?: number | null;
|
|
49
50
|
options?: any;
|
|
50
51
|
hide?: boolean;
|
|
52
|
+
selectedText?: string | null;
|
|
51
53
|
}
|
|
52
54
|
export interface IAgentCommand {
|
|
53
55
|
id: string;
|
package/dist/types/common.d.ts
CHANGED
package/dist/types/enum.d.ts
CHANGED
|
@@ -141,13 +141,8 @@ export declare enum Modules {
|
|
|
141
141
|
Tool = "tool",
|
|
142
142
|
Collection = "collection",
|
|
143
143
|
Agent = "agent",
|
|
144
|
-
AgentCommand = "agent_command",
|
|
145
|
-
AgentCommandComponent = "agent_command_component",
|
|
146
144
|
LLM = "llm",
|
|
147
|
-
Tag = "tag"
|
|
148
|
-
Mcp = "mcp",
|
|
149
|
-
Default = "default",
|
|
150
|
-
PromptVariables = "prompt_variables"
|
|
145
|
+
Tag = "tag"
|
|
151
146
|
}
|
|
152
147
|
export declare enum ResourcePermissionAction {
|
|
153
148
|
AccessModel = "access_model",
|
package/dist/types/enum.ts.js
CHANGED
|
@@ -161,13 +161,8 @@ export var Modules;
|
|
|
161
161
|
Modules["Tool"] = "tool";
|
|
162
162
|
Modules["Collection"] = "collection";
|
|
163
163
|
Modules["Agent"] = "agent";
|
|
164
|
-
Modules["AgentCommand"] = "agent_command";
|
|
165
|
-
Modules["AgentCommandComponent"] = "agent_command_component";
|
|
166
164
|
Modules["LLM"] = "llm";
|
|
167
165
|
Modules["Tag"] = "tag";
|
|
168
|
-
Modules["Mcp"] = "mcp";
|
|
169
|
-
Modules["Default"] = "default";
|
|
170
|
-
Modules["PromptVariables"] = "prompt_variables";
|
|
171
166
|
})(Modules || (Modules = {}));
|
|
172
167
|
export var ResourcePermissionAction;
|
|
173
168
|
(function(ResourcePermissionAction) {
|
package/dist/types/tool.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export interface IToolApi {
|
|
|
21
21
|
header: IToolParam[];
|
|
22
22
|
query?: IToolParam[];
|
|
23
23
|
body?: IToolParam[];
|
|
24
|
-
path?: IToolParam[];
|
|
25
24
|
};
|
|
26
25
|
space_id?: string;
|
|
27
26
|
created_by: string;
|
|
@@ -46,7 +45,6 @@ export interface ITool {
|
|
|
46
45
|
header: IToolParam[];
|
|
47
46
|
query?: IToolParam[];
|
|
48
47
|
body?: IToolParam[];
|
|
49
|
-
path?: IToolParam[];
|
|
50
48
|
creator: string;
|
|
51
49
|
createTime: string;
|
|
52
50
|
updateTime: string;
|
package/package.json
CHANGED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2
|
-
try {
|
|
3
|
-
var info = gen[key](arg);
|
|
4
|
-
var value = info.value;
|
|
5
|
-
} catch (error) {
|
|
6
|
-
reject(error);
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
if (info.done) {
|
|
10
|
-
resolve(value);
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
function _async_to_generator(fn) {
|
|
16
|
-
return function() {
|
|
17
|
-
var self = this, args = arguments;
|
|
18
|
-
return new Promise(function(resolve, reject) {
|
|
19
|
-
var gen = fn.apply(self, args);
|
|
20
|
-
function _next(value) {
|
|
21
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
22
|
-
}
|
|
23
|
-
function _throw(err) {
|
|
24
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
25
|
-
}
|
|
26
|
-
_next(undefined);
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
import { useMetaHttp } from './use-meta-http.ts.js';
|
|
31
|
-
export const useFormRule = (apiPrefix, spaceId)=>{
|
|
32
|
-
const { nameValidator, codeValidator } = useMetaHttp(apiPrefix, spaceId);
|
|
33
|
-
let nameErrorMessage = '';
|
|
34
|
-
let codeErrorMessage = '';
|
|
35
|
-
const codeRule = {
|
|
36
|
-
validator: (value)=>/^[a-zA-Z0-9-]+$/.test(value),
|
|
37
|
-
message: '需要是英文字符、数字、中划线',
|
|
38
|
-
trigger: 'change'
|
|
39
|
-
};
|
|
40
|
-
const getNameRule = (type)=>({
|
|
41
|
-
validator: function() {
|
|
42
|
-
var _ref = _async_to_generator(function*(value) {
|
|
43
|
-
try {
|
|
44
|
-
nameErrorMessage = '';
|
|
45
|
-
const res = yield nameValidator(value, type)();
|
|
46
|
-
return res.data;
|
|
47
|
-
} catch (error) {
|
|
48
|
-
nameErrorMessage = error.message;
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
return function(value) {
|
|
53
|
-
return _ref.apply(this, arguments);
|
|
54
|
-
};
|
|
55
|
-
}(),
|
|
56
|
-
message: ()=>nameErrorMessage,
|
|
57
|
-
trigger: 'change'
|
|
58
|
-
});
|
|
59
|
-
const getCodeRule = (type, getIsEdit, getData)=>({
|
|
60
|
-
validator: function() {
|
|
61
|
-
var _ref = _async_to_generator(function*(value) {
|
|
62
|
-
try {
|
|
63
|
-
codeErrorMessage = '';
|
|
64
|
-
// 编辑态不校验code
|
|
65
|
-
const isEdit = getIsEdit === null || getIsEdit === void 0 ? void 0 : getIsEdit();
|
|
66
|
-
if (isEdit) {
|
|
67
|
-
return true;
|
|
68
|
-
}
|
|
69
|
-
// 新建态校验code
|
|
70
|
-
const res = yield codeValidator(value, type, getData === null || getData === void 0 ? void 0 : getData())();
|
|
71
|
-
return res.data;
|
|
72
|
-
} catch (error) {
|
|
73
|
-
codeErrorMessage = error.message;
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
return function(value) {
|
|
78
|
-
return _ref.apply(this, arguments);
|
|
79
|
-
};
|
|
80
|
-
}(),
|
|
81
|
-
message: ()=>codeErrorMessage,
|
|
82
|
-
trigger: 'change'
|
|
83
|
-
});
|
|
84
|
-
const getLengthRule = (label, num)=>({
|
|
85
|
-
validator: (value)=>value.length <= num,
|
|
86
|
-
message: `${label}长度不能超过${num}`,
|
|
87
|
-
trigger: 'change'
|
|
88
|
-
});
|
|
89
|
-
const getApiUrlRule = ()=>({
|
|
90
|
-
validator: (value)=>/https?:\/\//.test(value),
|
|
91
|
-
message: '需要是http://或者https://开头的字符串',
|
|
92
|
-
trigger: 'change'
|
|
93
|
-
});
|
|
94
|
-
return {
|
|
95
|
-
codeRule,
|
|
96
|
-
getApiUrlRule,
|
|
97
|
-
getNameRule,
|
|
98
|
-
getCodeRule,
|
|
99
|
-
getLengthRule
|
|
100
|
-
};
|
|
101
|
-
};
|