@blueking/ai-ui-sdk 0.4.3-beta.13 → 0.4.3-beta.15
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/README.md +2258 -2258
- package/dist/assets/svg/lock.svg +43 -43
- package/dist/common/util.ts.js +103 -103
- package/dist/components/render-agent/agent-download.vue.css +2 -2
- package/dist/components/render-agent/agent-type.vue.css +9 -9
- package/dist/components/render-agent/agent-type.vue.js +1 -1
- package/dist/components/render-auth/auth-dialog.script.vue.js.js +3 -6
- package/dist/components/render-auth/auth-dialog.vue.css +2 -2
- package/dist/components/render-auto-height-textarea/index.vue.css +26 -26
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +30 -30
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-card/agent/corner-badge.script.vue.js.js +50 -0
- package/dist/components/render-card/agent/corner-badge.vue.css +9 -0
- package/dist/components/render-card/agent/corner-badge.vue.d.ts +14 -0
- package/dist/components/render-card/agent/corner-badge.vue.js +5 -0
- package/dist/components/render-card/agent/index.script.vue.js.js +12 -1
- package/dist/components/render-card/agent/index.vue.d.ts +1 -1
- package/dist/components/render-card/agent/prefix-info-tool.vue.css +18 -18
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/base/collection-icon.script.vue.js.js +3 -16
- package/dist/components/render-card/base/collection-icon.vue.d.ts +0 -1
- package/dist/components/render-card/base.vue.css +30 -30
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/knowledge/index.vue.d.ts +1 -1
- package/dist/components/render-card/knowledgebase/index.vue.d.ts +1 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +12 -12
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.vue.css +3 -3
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/index.vue.d.ts +1 -1
- package/dist/components/render-card/llm/info.vue.css +8 -8
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +5 -5
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/index.script.vue.js.js +1 -1
- package/dist/components/render-card/mcp/index.vue.d.ts +1 -1
- package/dist/components/render-card/mcp/name-suffix.vue.css +7 -7
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/mcp/selected-tools-info.vue.d.ts +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +2 -2
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/prompt/index.script.vue.js.js +7 -2
- package/dist/components/render-card/prompt/index.vue.d.ts +2 -1
- package/dist/components/render-card/role/index.script.vue.js.js +7 -2
- package/dist/components/render-card/role/index.vue.d.ts +2 -1
- package/dist/components/render-card/skill/index.script.vue.js.js +1 -1
- package/dist/components/render-card/skill/scanner.vue.css +7 -7
- package/dist/components/render-card/skill/scanner.vue.js +1 -1
- package/dist/components/render-card/tool/index.script.vue.js.js +7 -2
- package/dist/components/render-card/tool/index.vue.d.ts +2 -1
- package/dist/components/render-checkbox/index.vue.css +41 -41
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +29 -29
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +6 -6
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-collection/content/index.vue.css +15 -15
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +10 -10
- package/dist/components/render-dataset/components/batch-delete-dataset-data/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.vue.css +9 -9
- 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 +10 -10
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +8 -8
- 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 +8 -8
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -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 +6 -6
- 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/footer.vue.css +3 -3
- 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/form/manual.vue.css +4 -4
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +21 -21
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +9 -9
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.vue.css +9 -9
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/index.vue.css +4 -4
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-resource.vue.css +4 -4
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +31 -31
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.vue.css +18 -18
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.vue.css +12 -12
- package/dist/components/render-dialog/index.vue.js +1 -1
- package/dist/components/render-dropdown/index.vue.css +15 -15
- package/dist/components/render-file-card/index.vue.css +28 -28
- package/dist/components/render-file-card/index.vue.d.ts +1 -1
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +7 -7
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +12 -12
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +2 -2
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-markdown/edit.postcss.css +92 -92
- package/dist/components/render-markdown/katex.ts.js +8 -8
- package/dist/components/render-markdown/prism-atom-one-dark.postcss.css +192 -192
- package/dist/components/render-markdown/view.postcss.css +99 -99
- package/dist/components/render-permission-tag/index.vue.css +2 -2
- package/dist/components/render-prompt/content/index.vue.css +5 -5
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +4 -4
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-resource-version/index.vue.css +7 -7
- package/dist/components/render-resource-version/index.vue.js +1 -1
- package/dist/components/render-router-tab/index.vue.css +15 -15
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components/render-search-empty/index.script.vue.js.js +2 -3
- package/dist/components/render-search-empty/index.vue.d.ts +1 -1
- package/dist/components/render-search-select/index.vue.d.ts +1 -1
- package/dist/components/render-select-plus-extension/index.vue.css +11 -11
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-t-table/index.script.vue.js +5 -8
- package/dist/components/render-t-table/index.vue.css +117 -117
- package/dist/components/render-t-table/index.vue.d.ts +1 -1
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +17 -17
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tags/index.vue.css +12 -12
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/components/render-tree/index.vue.css +12 -12
- package/dist/components/render-tree/index.vue.d.ts +1 -1
- package/dist/css/fonts/iconcool.svg +268 -268
- package/dist/css/g-utilities.css +40 -10
- package/dist/css/g-utilities.manifest.json +6 -0
- package/dist/css/style.css +259 -259
- package/dist/hooks/use-agent-http.d.ts +1 -0
- package/dist/hooks/use-agent-http.ts.js +9 -2
- package/dist/hooks/use-ellipsis-tooltip.ts.js +28 -28
- package/dist/hooks/use-loading-version.ts.js +4 -4
- package/dist/http/helper/agent.d.ts +7 -1
- package/dist/http/helper/agent.ts.js +60 -44
- package/dist/http/helper/collection.ts.js +13 -12
- package/dist/http/helper/common.ts.js +44 -44
- package/dist/http/helper/dataset.ts.js +76 -76
- package/dist/http/helper/knowledge.ts.js +45 -45
- package/dist/http/helper/mcp.ts.js +36 -36
- package/dist/http/helper/permission.ts.js +12 -12
- package/dist/http/helper/prompt.ts.js +13 -12
- package/dist/http/helper/skill.ts.js +24 -24
- package/dist/http/helper/space.ts.js +24 -24
- package/dist/http/helper/tool.ts.js +22 -20
- package/dist/types/agent.d.ts +18 -0
- package/dist/types/collection.d.ts +2 -0
- package/dist/types/prompt.d.ts +2 -0
- package/dist/types/tool.d.ts +2 -0
- package/package.json +112 -112
|
@@ -51,20 +51,21 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommonApi2ResourceFormCommon, transferVariableApi2Variable } from './common.ts.js';
|
|
54
|
-
/**
|
|
55
|
-
* 接口转换为ui使用(表单字段)
|
|
56
|
-
* @param data IPromptFormApi
|
|
57
|
-
* @returns IPromptForm
|
|
54
|
+
/**
|
|
55
|
+
* 接口转换为ui使用(表单字段)
|
|
56
|
+
* @param data IPromptFormApi
|
|
57
|
+
* @returns IPromptForm
|
|
58
58
|
*/ export const transferPromptFormApi2PromptForm = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
|
|
59
59
|
name: data.prompt_name,
|
|
60
60
|
code: data.prompt_code,
|
|
61
|
+
icon: data.icon,
|
|
61
62
|
content: data.content,
|
|
62
63
|
variables: data.variables.map(transferVariableApi2Variable)
|
|
63
64
|
});
|
|
64
|
-
/**
|
|
65
|
-
* 接口转换为ui使用(完整资源)
|
|
66
|
-
* @param data IPromptApi
|
|
67
|
-
* @returns IPrompt
|
|
65
|
+
/**
|
|
66
|
+
* 接口转换为ui使用(完整资源)
|
|
67
|
+
* @param data IPromptApi
|
|
68
|
+
* @returns IPrompt
|
|
68
69
|
*/ export const transferPromptApi2Prompt = (data)=>{
|
|
69
70
|
var _data_prompt_id, _data_likes;
|
|
70
71
|
return _object_spread_props(_object_spread({}, transferPromptFormApi2PromptForm(data), transferResourceCommonApi2ResourceCommon(data)), {
|
|
@@ -74,10 +75,10 @@ import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPag
|
|
|
74
75
|
usedCount: data.used_count
|
|
75
76
|
});
|
|
76
77
|
};
|
|
77
|
-
/**
|
|
78
|
-
* ui转换为接口使用
|
|
79
|
-
* @param data IPromptsParams
|
|
80
|
-
* @returns IPromptsApiParams
|
|
78
|
+
/**
|
|
79
|
+
* ui转换为接口使用
|
|
80
|
+
* @param data IPromptsParams
|
|
81
|
+
* @returns IPromptsApiParams
|
|
81
82
|
*/ export const transferPromptParam2PromptParamApi = (data)=>{
|
|
82
83
|
return _object_spread_props(_object_spread({}, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi(data), transferIPaginationParam2IPaginationParamApi(data)), {
|
|
83
84
|
fuzzy: data.fuzzy,
|
|
@@ -51,10 +51,10 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
|
-
/**
|
|
55
|
-
* ui转换为接口使用(表单字段)
|
|
56
|
-
* @param data ISkillForm
|
|
57
|
-
* @returns ISkillFormApi
|
|
54
|
+
/**
|
|
55
|
+
* ui转换为接口使用(表单字段)
|
|
56
|
+
* @param data ISkillForm
|
|
57
|
+
* @returns ISkillFormApi
|
|
58
58
|
*/ export const transferSkillForm2SkillFormApi = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommon2ResourceFormCommonApi(data)), {
|
|
59
59
|
skill_name: data.skillName,
|
|
60
60
|
skill_code: data.skillCode,
|
|
@@ -65,10 +65,10 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
65
65
|
file_type: data.fileType,
|
|
66
66
|
version: data.version
|
|
67
67
|
});
|
|
68
|
-
/**
|
|
69
|
-
* 接口转换为ui使用(表单字段)
|
|
70
|
-
* @param data ISkillFormApi
|
|
71
|
-
* @returns ISkillForm
|
|
68
|
+
/**
|
|
69
|
+
* 接口转换为ui使用(表单字段)
|
|
70
|
+
* @param data ISkillFormApi
|
|
71
|
+
* @returns ISkillForm
|
|
72
72
|
*/ export const transferSkillFormApi2SkillForm = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
|
|
73
73
|
skillName: data.skill_name,
|
|
74
74
|
skillCode: data.skill_code,
|
|
@@ -79,10 +79,10 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
79
79
|
fileType: data.file_type,
|
|
80
80
|
version: data.version
|
|
81
81
|
});
|
|
82
|
-
/**
|
|
83
|
-
* 接口转换为ui使用(完整资源)
|
|
84
|
-
* @param data ISkillApi
|
|
85
|
-
* @returns ISkill
|
|
82
|
+
/**
|
|
83
|
+
* 接口转换为ui使用(完整资源)
|
|
84
|
+
* @param data ISkillApi
|
|
85
|
+
* @returns ISkill
|
|
86
86
|
*/ export const transferSkillApi2Skill = (data)=>{
|
|
87
87
|
var _data_bkai_dependencies;
|
|
88
88
|
return _object_spread_props(_object_spread({}, transferSkillFormApi2SkillForm(data), transferResourceCommonApi2ResourceCommon(data)), {
|
|
@@ -106,10 +106,10 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
106
106
|
envs: data.envs
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
/**
|
|
110
|
-
* ui转换为接口使用(完整资源)
|
|
111
|
-
* @param data ISkill
|
|
112
|
-
* @returns ISkillApi
|
|
109
|
+
/**
|
|
110
|
+
* ui转换为接口使用(完整资源)
|
|
111
|
+
* @param data ISkill
|
|
112
|
+
* @returns ISkillApi
|
|
113
113
|
*/ export const transferSkill2SkillApi = (data)=>{
|
|
114
114
|
var _data_bkaiDependencies;
|
|
115
115
|
return _object_spread_props(_object_spread({}, transferSkillForm2SkillFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
@@ -140,10 +140,10 @@ export const transferSkillCount2SkillCountApi = (data)=>{
|
|
|
140
140
|
created_by: data.createdBy
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
|
-
/**
|
|
144
|
-
* 接口转换为ui使用(构建日志)
|
|
145
|
-
* @param data ISkillBuildLogApi
|
|
146
|
-
* @returns ISkillBuildLog
|
|
143
|
+
/**
|
|
144
|
+
* 接口转换为ui使用(构建日志)
|
|
145
|
+
* @param data ISkillBuildLogApi
|
|
146
|
+
* @returns ISkillBuildLog
|
|
147
147
|
*/ export const transferSkillBuildLogApi2SkillBuildLog = (data)=>({
|
|
148
148
|
status: data.status,
|
|
149
149
|
buildLogs: data.build_logs,
|
|
@@ -151,10 +151,10 @@ export const transferSkillCount2SkillCountApi = (data)=>{
|
|
|
151
151
|
startedAt: data.started_at,
|
|
152
152
|
completedAt: data.completed_at
|
|
153
153
|
});
|
|
154
|
-
/**
|
|
155
|
-
* ui转换为接口使用
|
|
156
|
-
* @param data ISkillListParam
|
|
157
|
-
* @returns ISkillListParamApi
|
|
154
|
+
/**
|
|
155
|
+
* ui转换为接口使用
|
|
156
|
+
* @param data ISkillListParam
|
|
157
|
+
* @returns ISkillListParamApi
|
|
158
158
|
*/ export const transferSkillParam2SkillParamApi = (data)=>_object_spread_props(_object_spread({}, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi(data), transferISortParam2ISortParamApi(data), transferIPaginationParam2IPaginationParamApi(data)), {
|
|
159
159
|
generate_type: data.generateType,
|
|
160
160
|
fuzzy: data.fuzzy,
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { transferResourcePermissionApi2ResourcePermission } from './permission.ts.js';
|
|
2
|
-
/**
|
|
3
|
-
* ui转换为接口
|
|
4
|
-
* @param data IResourcesRemoveApplication
|
|
5
|
-
* @returns IResourcesRemoveApplicationApi
|
|
2
|
+
/**
|
|
3
|
+
* ui转换为接口
|
|
4
|
+
* @param data IResourcesRemoveApplication
|
|
5
|
+
* @returns IResourcesRemoveApplicationApi
|
|
6
6
|
*/ export const transferResourcesRemoveApplication2ResourcesRemoveApplicationApi = (n)=>({
|
|
7
7
|
resource_type: n.resourceType,
|
|
8
8
|
resource_id: n.resourceId
|
|
9
9
|
});
|
|
10
|
-
/**
|
|
11
|
-
* ui转换为接口
|
|
12
|
-
* @param data IResourcesRevokeApplication
|
|
13
|
-
* @returns IResourcesRevokeApplicationApi
|
|
10
|
+
/**
|
|
11
|
+
* ui转换为接口
|
|
12
|
+
* @param data IResourcesRevokeApplication
|
|
13
|
+
* @returns IResourcesRevokeApplicationApi
|
|
14
14
|
*/ export const transferResourcesRevokeApplication2ResourcesRevokeApplicationApi = (n)=>({
|
|
15
15
|
resource_type: n.resourceType,
|
|
16
16
|
resource_id: n.resourceId
|
|
17
17
|
});
|
|
18
|
-
/**
|
|
19
|
-
* ui转换为接口
|
|
20
|
-
* @param data IUsableSpaceParam
|
|
21
|
-
* @returns IUsableSpaceParamApi
|
|
18
|
+
/**
|
|
19
|
+
* ui转换为接口
|
|
20
|
+
* @param data IUsableSpaceParam
|
|
21
|
+
* @returns IUsableSpaceParamApi
|
|
22
22
|
*/ export const transferUsableSpaceParam2UsableSpaceParamApi = (data)=>({
|
|
23
23
|
resource_type: data.resourceType,
|
|
24
24
|
can_apply: data.canApply,
|
|
25
25
|
space_name: data.spaceName
|
|
26
26
|
});
|
|
27
|
-
/**
|
|
28
|
-
* 接口转换为ui
|
|
29
|
-
* @param data IUsableSpaceApi
|
|
30
|
-
* @returns IUsableSpace
|
|
27
|
+
/**
|
|
28
|
+
* 接口转换为ui
|
|
29
|
+
* @param data IUsableSpaceApi
|
|
30
|
+
* @returns IUsableSpace
|
|
31
31
|
*/ export const transferUsableSpaceApi2UsableSpace = (data)=>({
|
|
32
32
|
spaceId: data.space_id,
|
|
33
33
|
spaceCode: data.space_code,
|
|
34
34
|
spaceName: data.space_name
|
|
35
35
|
});
|
|
36
|
-
/**
|
|
37
|
-
* 接口转换为ui
|
|
38
|
-
* @param data ISpaceApi
|
|
39
|
-
* @returns ISpace
|
|
36
|
+
/**
|
|
37
|
+
* 接口转换为ui
|
|
38
|
+
* @param data ISpaceApi
|
|
39
|
+
* @returns ISpace
|
|
40
40
|
*/ export const transferSpaceApi2Space = (data)=>({
|
|
41
41
|
spaceId: data.space_id,
|
|
42
42
|
spaceName: data.space_name,
|
|
@@ -47,10 +47,10 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
47
47
|
iamGradeManagerMembers: data.iam_grade_manager_members,
|
|
48
48
|
permission: transferResourcePermissionApi2ResourcePermission(data.permission)
|
|
49
49
|
});
|
|
50
|
-
/**
|
|
51
|
-
* ui转换为接口
|
|
52
|
-
* @param data IResourceAuthorizedSpacesParam
|
|
53
|
-
* @returns IResourceAuthorizedSpacesParamApi
|
|
50
|
+
/**
|
|
51
|
+
* ui转换为接口
|
|
52
|
+
* @param data IResourceAuthorizedSpacesParam
|
|
53
|
+
* @returns IResourceAuthorizedSpacesParamApi
|
|
54
54
|
*/ export const transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi = (data)=>({
|
|
55
55
|
resource_type: data.resourceType,
|
|
56
56
|
resource_id: data.resourceId,
|
|
@@ -51,13 +51,14 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue2IApprovalSettingValueApi, transferIApprovalSettingValueApi2IApprovalSettingValue, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
|
-
/**
|
|
55
|
-
* ui转换为接口使用(表单字段)
|
|
56
|
-
* @param data IToolForm
|
|
57
|
-
* @returns IToolFormApi
|
|
54
|
+
/**
|
|
55
|
+
* ui转换为接口使用(表单字段)
|
|
56
|
+
* @param data IToolForm
|
|
57
|
+
* @returns IToolFormApi
|
|
58
58
|
*/ export const transferToolForm2ToolFormApi = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommon2ResourceFormCommonApi(data)), {
|
|
59
59
|
tool_name: data.toolName,
|
|
60
60
|
tool_code: data.toolCode,
|
|
61
|
+
icon: data.icon,
|
|
61
62
|
method: data.method,
|
|
62
63
|
url: data.url,
|
|
63
64
|
property: {
|
|
@@ -70,13 +71,14 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
70
71
|
credential_id: data.credentialId,
|
|
71
72
|
credential_type: data.credentialType
|
|
72
73
|
});
|
|
73
|
-
/**
|
|
74
|
-
* 接口转换为ui使用(表单字段)
|
|
75
|
-
* @param data IToolFormApi
|
|
76
|
-
* @returns IToolForm
|
|
74
|
+
/**
|
|
75
|
+
* 接口转换为ui使用(表单字段)
|
|
76
|
+
* @param data IToolFormApi
|
|
77
|
+
* @returns IToolForm
|
|
77
78
|
*/ export const transferToolFormApi2ToolForm = (data)=>_object_spread_props(_object_spread({}, transferResourceFormCommonApi2ResourceFormCommon(data)), {
|
|
78
79
|
toolName: data.tool_name,
|
|
79
80
|
toolCode: data.tool_code,
|
|
81
|
+
icon: data.icon,
|
|
80
82
|
method: data.method,
|
|
81
83
|
url: data.url,
|
|
82
84
|
header: data.property.header,
|
|
@@ -87,10 +89,10 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
87
89
|
credentialId: data.credential_id,
|
|
88
90
|
credentialType: data.credential_type
|
|
89
91
|
});
|
|
90
|
-
/**
|
|
91
|
-
* 接口转换为ui使用(完整资源)
|
|
92
|
-
* @param data IToolApi
|
|
93
|
-
* @returns ITool
|
|
92
|
+
/**
|
|
93
|
+
* 接口转换为ui使用(完整资源)
|
|
94
|
+
* @param data IToolApi
|
|
95
|
+
* @returns ITool
|
|
94
96
|
*/ export const transferToolApi2Tool = (data)=>_object_spread_props(_object_spread({}, transferToolFormApi2ToolForm(data), transferResourceCommonApi2ResourceCommon(_object_spread_props(_object_spread({}, data), {
|
|
95
97
|
id: data.tool_id
|
|
96
98
|
})), transferIApprovalSettingValueApi2IApprovalSettingValue(data)), {
|
|
@@ -99,19 +101,19 @@ import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue
|
|
|
99
101
|
favorite: data.favorite,
|
|
100
102
|
favoriteCount: data.favorite_count
|
|
101
103
|
});
|
|
102
|
-
/**
|
|
103
|
-
* ui转换为接口使用(完整资源)
|
|
104
|
-
* @param data ITool
|
|
105
|
-
* @returns IToolApi
|
|
104
|
+
/**
|
|
105
|
+
* ui转换为接口使用(完整资源)
|
|
106
|
+
* @param data ITool
|
|
107
|
+
* @returns IToolApi
|
|
106
108
|
*/ export const transferTool2ToolApi = (data)=>_object_spread_props(_object_spread({}, transferToolForm2ToolFormApi(data), transferResourceCommon2ResourceCommonApi(data), transferIApprovalSettingValue2IApprovalSettingValueApi(data)), {
|
|
107
109
|
tool_id: data.id,
|
|
108
110
|
favorite: data.favorite,
|
|
109
111
|
favorite_count: data.favoriteCount
|
|
110
112
|
});
|
|
111
|
-
/**
|
|
112
|
-
* ui转换为接口使用
|
|
113
|
-
* @param data IToolsParam
|
|
114
|
-
* @returns IToolsApiParam
|
|
113
|
+
/**
|
|
114
|
+
* ui转换为接口使用
|
|
115
|
+
* @param data IToolsParam
|
|
116
|
+
* @returns IToolsApiParam
|
|
115
117
|
*/ export const transferToolsParam2ToolsParamApi = (data)=>{
|
|
116
118
|
return _object_spread_props(_object_spread({}, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi(data), transferISortParam2ISortParamApi(data), transferIPaginationParam2IPaginationParamApi(data)), {
|
|
117
119
|
fuzzy: data.fuzzy,
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -196,6 +196,9 @@ export interface IAgentForm extends IResourceFormCommon {
|
|
|
196
196
|
approvalSettings?: IApprovalSetting[];
|
|
197
197
|
}
|
|
198
198
|
export interface IAgent extends IAgentForm, IResourceCommon {
|
|
199
|
+
needUpgrade: boolean;
|
|
200
|
+
agentSdkVersion: string;
|
|
201
|
+
latestSdkVersion: string;
|
|
199
202
|
version: string;
|
|
200
203
|
latestVersion: string;
|
|
201
204
|
agentUrl: string;
|
|
@@ -217,6 +220,9 @@ export interface IAgent extends IAgentForm, IResourceCommon {
|
|
|
217
220
|
};
|
|
218
221
|
}
|
|
219
222
|
export interface IAgentApi extends IAgentFormApi, IResourceCommonApi {
|
|
223
|
+
need_upgrade: boolean;
|
|
224
|
+
agent_sdk_version: string;
|
|
225
|
+
latest_sdk_version: string;
|
|
220
226
|
app_code: string;
|
|
221
227
|
version: string;
|
|
222
228
|
latest_version: string;
|
|
@@ -237,6 +243,18 @@ export interface IAgentApi extends IAgentFormApi, IResourceCommonApi {
|
|
|
237
243
|
observability: string;
|
|
238
244
|
};
|
|
239
245
|
}
|
|
246
|
+
export interface IAgentSdkUpgrade {
|
|
247
|
+
currentSdkVersion: string;
|
|
248
|
+
latestSdkVersion: string;
|
|
249
|
+
needUpgrade: boolean;
|
|
250
|
+
changelog: string;
|
|
251
|
+
}
|
|
252
|
+
export interface IAgentSdkUpgradeApi {
|
|
253
|
+
current_sdk_version: string;
|
|
254
|
+
latest_sdk_version: string;
|
|
255
|
+
need_upgrade: boolean;
|
|
256
|
+
changelog: string;
|
|
257
|
+
}
|
|
240
258
|
export interface IApplicationAgent extends IAgent {
|
|
241
259
|
resourceId: number;
|
|
242
260
|
resourceType: Module;
|
|
@@ -4,6 +4,7 @@ import { IResourcePermission, IResourcePermissionApi } from './permission';
|
|
|
4
4
|
export interface ICollectionFormApi extends Omit<IResourceFormCommonApi, 'description'> {
|
|
5
5
|
collection_name: string;
|
|
6
6
|
collection_code: string;
|
|
7
|
+
icon: string;
|
|
7
8
|
default_llm_code: string;
|
|
8
9
|
collection_type: 'role';
|
|
9
10
|
variables: IVariableApi[];
|
|
@@ -16,6 +17,7 @@ export interface ICollectionApi extends ICollectionFormApi, IResourceCommonApi {
|
|
|
16
17
|
export interface ICollectionForm extends Omit<IResourceFormCommon, 'description'> {
|
|
17
18
|
name: string;
|
|
18
19
|
code: string;
|
|
20
|
+
icon: string;
|
|
19
21
|
defaultLLMCode: string;
|
|
20
22
|
variables: IVariable[];
|
|
21
23
|
content: IContent[];
|
package/dist/types/prompt.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export interface IPromptsParams extends IPaginationParam, IResourceCommonSearchP
|
|
|
42
42
|
export interface IPromptFormApi extends IResourceFormCommonApi {
|
|
43
43
|
prompt_name: string;
|
|
44
44
|
prompt_code: string;
|
|
45
|
+
icon: string;
|
|
45
46
|
content: string;
|
|
46
47
|
variables: IVariableApi[];
|
|
47
48
|
}
|
|
@@ -54,6 +55,7 @@ export interface IPromptApi extends IPromptFormApi, IResourceCommonApi {
|
|
|
54
55
|
export interface IPromptForm extends IResourceFormCommon {
|
|
55
56
|
name: string;
|
|
56
57
|
code: string;
|
|
58
|
+
icon: string;
|
|
57
59
|
content: string;
|
|
58
60
|
variables: IVariable[];
|
|
59
61
|
}
|
package/dist/types/tool.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface IToolParam {
|
|
|
20
20
|
export interface IToolFormApi extends IResourceFormCommonApi {
|
|
21
21
|
tool_name: string;
|
|
22
22
|
tool_code: string;
|
|
23
|
+
icon: string;
|
|
23
24
|
method: string;
|
|
24
25
|
url: string;
|
|
25
26
|
property: {
|
|
@@ -41,6 +42,7 @@ export interface IToolApi extends IToolFormApi, Omit<IResourceCommonApi, 'id'>,
|
|
|
41
42
|
export interface IToolForm extends IResourceFormCommon {
|
|
42
43
|
toolName: string;
|
|
43
44
|
toolCode: string;
|
|
45
|
+
icon: string;
|
|
44
46
|
method: string;
|
|
45
47
|
url: string;
|
|
46
48
|
header: IToolParam[];
|
package/package.json
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@blueking/ai-ui-sdk",
|
|
3
|
-
"version": "0.4.3-beta.
|
|
4
|
-
"description": "蓝鲸AI UI SDK",
|
|
5
|
-
"main": "dist/main.js",
|
|
6
|
-
"types": "dist/main.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "npm run generate-g-utilities-css && bk-cli-service build && npm run generate-g-utilities-manifest && vue-tsc --emitDeclarationOnly && npm run cp",
|
|
9
|
-
"generate-g-utilities-css": "node scripts/generate-g-utilities.js css",
|
|
10
|
-
"generate-g-utilities-manifest": "node scripts/generate-g-utilities.js manifest",
|
|
11
|
-
"cp": "node scripts/copy-dist.js",
|
|
12
|
-
"dev": "node scripts/watch-and-restart.js"
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist"
|
|
16
|
-
],
|
|
17
|
-
"exports": {
|
|
18
|
-
"./style": {
|
|
19
|
-
"import": "./dist/css/style.css",
|
|
20
|
-
"require": "./dist/css/style.css",
|
|
21
|
-
"node": "./dist/css/style.css"
|
|
22
|
-
},
|
|
23
|
-
"./g-utilities-manifest": {
|
|
24
|
-
"import": "./dist/css/g-utilities.manifest.json",
|
|
25
|
-
"require": "./dist/css/g-utilities.manifest.json",
|
|
26
|
-
"node": "./dist/css/g-utilities.manifest.json"
|
|
27
|
-
},
|
|
28
|
-
"./components": {
|
|
29
|
-
"import": "./dist/components.ts.js",
|
|
30
|
-
"require": "./dist/components.ts.js",
|
|
31
|
-
"node": "./dist/components.ts.js",
|
|
32
|
-
"types": "./dist/components.d.ts"
|
|
33
|
-
},
|
|
34
|
-
"./enums": {
|
|
35
|
-
"import": "./dist/enums.ts.js",
|
|
36
|
-
"require": "./dist/enums.ts.js",
|
|
37
|
-
"node": "./dist/enums.ts.js",
|
|
38
|
-
"types": "./dist/enums.d.ts"
|
|
39
|
-
},
|
|
40
|
-
"./events": {
|
|
41
|
-
"import": "./dist/events.ts.js",
|
|
42
|
-
"require": "./dist/events.ts.js",
|
|
43
|
-
"node": "./dist/events.ts.js",
|
|
44
|
-
"types": "./dist/events.d.ts"
|
|
45
|
-
},
|
|
46
|
-
"./hooks": {
|
|
47
|
-
"import": "./dist/hooks.ts.js",
|
|
48
|
-
"require": "./dist/hooks.ts.js",
|
|
49
|
-
"node": "./dist/hooks.ts.js",
|
|
50
|
-
"types": "./dist/hooks.d.ts"
|
|
51
|
-
},
|
|
52
|
-
"./https": {
|
|
53
|
-
"import": "./dist/https.ts.js",
|
|
54
|
-
"require": "./dist/https.ts.js",
|
|
55
|
-
"node": "./dist/https.ts.js",
|
|
56
|
-
"types": "./dist/https.d.ts"
|
|
57
|
-
},
|
|
58
|
-
"./transforms": {
|
|
59
|
-
"import": "./dist/transforms.ts.js",
|
|
60
|
-
"require": "./dist/transforms.ts.js",
|
|
61
|
-
"node": "./dist/transforms.ts.js",
|
|
62
|
-
"types": "./dist/transforms.d.ts"
|
|
63
|
-
},
|
|
64
|
-
"./types": {
|
|
65
|
-
"import": "./dist/types.ts.js",
|
|
66
|
-
"require": "./dist/types.ts.js",
|
|
67
|
-
"node": "./dist/types.ts.js",
|
|
68
|
-
"types": "./dist/types.d.ts"
|
|
69
|
-
},
|
|
70
|
-
"./util": {
|
|
71
|
-
"import": "./dist/util.ts.js",
|
|
72
|
-
"require": "./dist/util.ts.js",
|
|
73
|
-
"node": "./dist/util.ts.js",
|
|
74
|
-
"types": "./dist/util.d.ts"
|
|
75
|
-
},
|
|
76
|
-
"./constants": {
|
|
77
|
-
"import": "./dist/constants.ts.js",
|
|
78
|
-
"require": "./dist/constants.ts.js",
|
|
79
|
-
"node": "./dist/constants.ts.js",
|
|
80
|
-
"types": "./dist/constants.d.ts"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
"keywords": [],
|
|
84
|
-
"author": "",
|
|
85
|
-
"license": "ISC",
|
|
86
|
-
"peerDependencies": {
|
|
87
|
-
"@blueking/ediatable": "^0.0.1-beta.31",
|
|
88
|
-
"@blueking/xss-filter": "^0.0.10",
|
|
89
|
-
"@toast-ui/editor": "^3.2.2",
|
|
90
|
-
"@toast-ui/editor-plugin-code-syntax-highlight": "^3.1.0",
|
|
91
|
-
"bkui-vue": "*",
|
|
92
|
-
"dayjs": "^1.11.13",
|
|
93
|
-
"katex": "^0.16.45",
|
|
94
|
-
"prismjs": "^1.30.0",
|
|
95
|
-
"tdesign-vue-next": "^1.16.0",
|
|
96
|
-
"tippy.js": "^6.3.7",
|
|
97
|
-
"vue": "^3.5.13",
|
|
98
|
-
"vue-router": "^4.2.4"
|
|
99
|
-
},
|
|
100
|
-
"devDependencies": {
|
|
101
|
-
"@blueking/aidev-g-utilities": "0.1.0-beta.19",
|
|
102
|
-
"@blueking/babel-preset-bk": "2.1.0",
|
|
103
|
-
"@blueking/cli-service": "0.1.0-beta.31",
|
|
104
|
-
"@blueking/eslint-config-bk": "2.1.0",
|
|
105
|
-
"@blueking/stylelint-config-bk": "2.1.0-beta.10",
|
|
106
|
-
"@types/markdown-it": "^14.1.2",
|
|
107
|
-
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
108
|
-
"postcss-nested": "^7.0.2",
|
|
109
|
-
"postcss-nested-ancestors": "^3.0.0",
|
|
110
|
-
"typescript": "^5.5.4",
|
|
111
|
-
"vue-tsc": "^3.2.6"
|
|
112
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@blueking/ai-ui-sdk",
|
|
3
|
+
"version": "0.4.3-beta.15",
|
|
4
|
+
"description": "蓝鲸AI UI SDK",
|
|
5
|
+
"main": "dist/main.js",
|
|
6
|
+
"types": "dist/main.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "npm run generate-g-utilities-css && bk-cli-service build && npm run generate-g-utilities-manifest && vue-tsc --emitDeclarationOnly && npm run cp",
|
|
9
|
+
"generate-g-utilities-css": "node scripts/generate-g-utilities.js css",
|
|
10
|
+
"generate-g-utilities-manifest": "node scripts/generate-g-utilities.js manifest",
|
|
11
|
+
"cp": "node scripts/copy-dist.js",
|
|
12
|
+
"dev": "node scripts/watch-and-restart.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
"./style": {
|
|
19
|
+
"import": "./dist/css/style.css",
|
|
20
|
+
"require": "./dist/css/style.css",
|
|
21
|
+
"node": "./dist/css/style.css"
|
|
22
|
+
},
|
|
23
|
+
"./g-utilities-manifest": {
|
|
24
|
+
"import": "./dist/css/g-utilities.manifest.json",
|
|
25
|
+
"require": "./dist/css/g-utilities.manifest.json",
|
|
26
|
+
"node": "./dist/css/g-utilities.manifest.json"
|
|
27
|
+
},
|
|
28
|
+
"./components": {
|
|
29
|
+
"import": "./dist/components.ts.js",
|
|
30
|
+
"require": "./dist/components.ts.js",
|
|
31
|
+
"node": "./dist/components.ts.js",
|
|
32
|
+
"types": "./dist/components.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./enums": {
|
|
35
|
+
"import": "./dist/enums.ts.js",
|
|
36
|
+
"require": "./dist/enums.ts.js",
|
|
37
|
+
"node": "./dist/enums.ts.js",
|
|
38
|
+
"types": "./dist/enums.d.ts"
|
|
39
|
+
},
|
|
40
|
+
"./events": {
|
|
41
|
+
"import": "./dist/events.ts.js",
|
|
42
|
+
"require": "./dist/events.ts.js",
|
|
43
|
+
"node": "./dist/events.ts.js",
|
|
44
|
+
"types": "./dist/events.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./hooks": {
|
|
47
|
+
"import": "./dist/hooks.ts.js",
|
|
48
|
+
"require": "./dist/hooks.ts.js",
|
|
49
|
+
"node": "./dist/hooks.ts.js",
|
|
50
|
+
"types": "./dist/hooks.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"./https": {
|
|
53
|
+
"import": "./dist/https.ts.js",
|
|
54
|
+
"require": "./dist/https.ts.js",
|
|
55
|
+
"node": "./dist/https.ts.js",
|
|
56
|
+
"types": "./dist/https.d.ts"
|
|
57
|
+
},
|
|
58
|
+
"./transforms": {
|
|
59
|
+
"import": "./dist/transforms.ts.js",
|
|
60
|
+
"require": "./dist/transforms.ts.js",
|
|
61
|
+
"node": "./dist/transforms.ts.js",
|
|
62
|
+
"types": "./dist/transforms.d.ts"
|
|
63
|
+
},
|
|
64
|
+
"./types": {
|
|
65
|
+
"import": "./dist/types.ts.js",
|
|
66
|
+
"require": "./dist/types.ts.js",
|
|
67
|
+
"node": "./dist/types.ts.js",
|
|
68
|
+
"types": "./dist/types.d.ts"
|
|
69
|
+
},
|
|
70
|
+
"./util": {
|
|
71
|
+
"import": "./dist/util.ts.js",
|
|
72
|
+
"require": "./dist/util.ts.js",
|
|
73
|
+
"node": "./dist/util.ts.js",
|
|
74
|
+
"types": "./dist/util.d.ts"
|
|
75
|
+
},
|
|
76
|
+
"./constants": {
|
|
77
|
+
"import": "./dist/constants.ts.js",
|
|
78
|
+
"require": "./dist/constants.ts.js",
|
|
79
|
+
"node": "./dist/constants.ts.js",
|
|
80
|
+
"types": "./dist/constants.d.ts"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"keywords": [],
|
|
84
|
+
"author": "",
|
|
85
|
+
"license": "ISC",
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"@blueking/ediatable": "^0.0.1-beta.31",
|
|
88
|
+
"@blueking/xss-filter": "^0.0.10",
|
|
89
|
+
"@toast-ui/editor": "^3.2.2",
|
|
90
|
+
"@toast-ui/editor-plugin-code-syntax-highlight": "^3.1.0",
|
|
91
|
+
"bkui-vue": "*",
|
|
92
|
+
"dayjs": "^1.11.13",
|
|
93
|
+
"katex": "^0.16.45",
|
|
94
|
+
"prismjs": "^1.30.0",
|
|
95
|
+
"tdesign-vue-next": "^1.16.0",
|
|
96
|
+
"tippy.js": "^6.3.7",
|
|
97
|
+
"vue": "^3.5.13",
|
|
98
|
+
"vue-router": "^4.2.4"
|
|
99
|
+
},
|
|
100
|
+
"devDependencies": {
|
|
101
|
+
"@blueking/aidev-g-utilities": "0.1.0-beta.19",
|
|
102
|
+
"@blueking/babel-preset-bk": "2.1.0",
|
|
103
|
+
"@blueking/cli-service": "0.1.0-beta.31",
|
|
104
|
+
"@blueking/eslint-config-bk": "2.1.0",
|
|
105
|
+
"@blueking/stylelint-config-bk": "2.1.0-beta.10",
|
|
106
|
+
"@types/markdown-it": "^14.1.2",
|
|
107
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
108
|
+
"postcss-nested": "^7.0.2",
|
|
109
|
+
"postcss-nested-ancestors": "^3.0.0",
|
|
110
|
+
"typescript": "^5.5.4",
|
|
111
|
+
"vue-tsc": "^3.2.6"
|
|
112
|
+
}
|
|
113
113
|
}
|