@blueking/ai-ui-sdk 0.3.0-beta.19 → 0.3.0-beta.20
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-agent/agent-type.vue.css +3 -3
- package/dist/components/render-agent/agent-type.vue.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-card/agent/prefix-info-tool.vue.css +5 -5
- package/dist/components/render-card/agent/prefix-info-tool.vue.js +1 -1
- package/dist/components/render-card/base.script.vue.js +5 -1
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.d.ts +1 -0
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/llm/corner-badge.vue.css +3 -3
- package/dist/components/render-card/llm/corner-badge.vue.js +1 -1
- package/dist/components/render-card/llm/icons.vue.css +2 -2
- package/dist/components/render-card/llm/icons.vue.js +1 -1
- package/dist/components/render-card/llm/info.vue.css +1 -1
- package/dist/components/render-card/llm/info.vue.js +1 -1
- package/dist/components/render-card/llm/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/name-suffix.vue.css +2 -2
- package/dist/components/render-card/mcp/name-suffix.vue.js +1 -1
- package/dist/components/render-card/prompt/icons.vue.css +1 -1
- package/dist/components/render-card/prompt/icons.vue.js +1 -1
- package/dist/components/render-card/skill/index.script.vue.js.js +24 -2
- package/dist/components/render-card/skill/index.vue.d.ts +4 -2
- package/dist/components/render-card/skill/prefix-info-tool.script.vue.js +185 -0
- package/dist/components/render-card/skill/prefix-info-tool.vue.d.ts +12 -0
- package/dist/components/render-card/skill/prefix-info-tool.vue.js +3 -0
- package/dist/components/render-card/skill/tag-prefix.vue.css +3 -3
- package/dist/components/render-card/skill/tag-prefix.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-collection/content/index.vue.css +4 -4
- package/dist/components/render-collection/content/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/batch-delete-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +1 -1
- package/dist/components/render-dataset/components/batch-edit-valid-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/dataset-data-valid/index.vue.css +1 -1
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +1 -1
- 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.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/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 +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/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/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-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.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/index.vue.css +2 -2
- package/dist/components/render-dataset-list/index.vue.js +1 -1
- package/dist/components/render-dialog/choose-resource.vue.css +3 -3
- package/dist/components/render-dialog/choose-resource.vue.d.ts +3 -2
- package/dist/components/render-dialog/choose-resource.vue.js +1 -1
- package/dist/components/render-dialog/choose-result.vue.css +14 -14
- package/dist/components/render-dialog/choose-result.vue.js +1 -1
- package/dist/components/render-dialog/choose-space.script.vue.js.js +73 -96
- package/dist/components/render-dialog/choose-space.vue.css +8 -8
- package/dist/components/render-dialog/choose-space.vue.d.ts +4 -4
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.script.vue.js +11 -1
- package/dist/components/render-dialog/index.vue.css +6 -6
- package/dist/components/render-dialog/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 +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-header/index.vue.css +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-like/index.vue.css +5 -5
- package/dist/components/render-like/index.vue.js +1 -1
- package/dist/components/render-prompt/content/index.vue.css +1 -1
- package/dist/components/render-prompt/content/index.vue.js +1 -1
- package/dist/components/render-reference/index.vue.css +2 -2
- package/dist/components/render-reference/index.vue.js +1 -1
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/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/components/render-select-plus-extension/index.vue.css +3 -3
- package/dist/components/render-select-plus-extension/index.vue.js +1 -1
- package/dist/components/render-t-table/index.script.vue.js +13 -2
- package/dist/components/render-t-table/index.vue.css +27 -27
- package/dist/components/render-t-table/index.vue.d.ts +3 -1
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.vue.css +7 -7
- package/dist/components/render-tag-tree/index.vue.js +1 -1
- package/dist/components/render-tags/index.vue.css +6 -6
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +1 -1
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/g-utilities.css +58 -0
- package/dist/css/g-utilities.manifest.json +10 -0
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +1 -1
- package/dist/hooks/use-agent-http.d.ts +4 -1
- package/dist/hooks/use-agent-http.ts.js +4 -3
- package/dist/hooks/use-collection-http.d.ts +5 -2
- package/dist/hooks/use-collection-http.ts.js +4 -3
- package/dist/hooks/use-knowledge-http.d.ts +9 -3
- package/dist/hooks/use-knowledge-http.ts.js +8 -6
- package/dist/hooks/use-mcp-http.d.ts +4 -1
- package/dist/hooks/use-mcp-http.ts.js +4 -3
- package/dist/hooks/use-prompt-http.d.ts +5 -2
- package/dist/hooks/use-prompt-http.ts.js +4 -3
- package/dist/hooks/use-skill-http.d.ts +4 -1
- package/dist/hooks/use-skill-http.ts.js +4 -3
- package/dist/hooks/use-tool-http.d.ts +5 -2
- package/dist/hooks/use-tool-http.ts.js +4 -3
- package/dist/http/helper/agent.ts.js +2 -2
- package/dist/http/helper/collection.ts.js +2 -2
- package/dist/http/helper/common.d.ts +1 -1
- package/dist/http/helper/common.ts.js +2 -2
- package/dist/http/helper/knowledge.ts.js +2 -3
- package/dist/http/helper/mcp.ts.js +2 -2
- package/dist/http/helper/prompt.ts.js +2 -2
- package/dist/http/helper/skill.ts.js +18 -5
- package/dist/http/helper/tool.ts.js +2 -2
- package/dist/types/common.d.ts +3 -3
- package/dist/types/skill.d.ts +17 -0
- package/package.json +2 -2
|
@@ -70,17 +70,19 @@ export const useKnowledgeHttp = (apiPrefix, spaceId)=>{
|
|
|
70
70
|
signal
|
|
71
71
|
})).then(transferPaginationResponseApi2PaginationResponse(transferKnowledgebaseApi)));
|
|
72
72
|
// 批量获取知识数量
|
|
73
|
-
const getKnowledgeCount = (param)=>fetch.post(`${apiPrefix}/knowledgebase/v1/knowledge/count/`, transferKnowledgeCount2KnowledgeCountApi(param), {
|
|
73
|
+
const getKnowledgeCount = withAbort((signal, param)=>fetch.post(`${apiPrefix}/knowledgebase/v1/knowledge/count/`, transferKnowledgeCount2KnowledgeCountApi(param), {
|
|
74
74
|
headers: {
|
|
75
75
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
76
|
-
}
|
|
77
|
-
|
|
76
|
+
},
|
|
77
|
+
signal
|
|
78
|
+
}).then((data)=>data.map(transferResourceCountApi2ResourceCount)));
|
|
78
79
|
// 批量获取知识库数量
|
|
79
|
-
const getKnowledgebaseCount = (param)=>fetch.post(`${apiPrefix}/knowledgebase/v1/knowledgebase/count/`, transferKnowledgebaseCount2KnowledgebaseCountApi(param), {
|
|
80
|
+
const getKnowledgebaseCount = withAbort((signal, param)=>fetch.post(`${apiPrefix}/knowledgebase/v1/knowledgebase/count/`, transferKnowledgebaseCount2KnowledgebaseCountApi(param), {
|
|
80
81
|
headers: {
|
|
81
82
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
82
|
-
}
|
|
83
|
-
|
|
83
|
+
},
|
|
84
|
+
signal
|
|
85
|
+
}).then((data)=>data.map(transferResourceCountApi2ResourceCount)));
|
|
84
86
|
// 获取引用该知识库的智能体列表
|
|
85
87
|
const getKnowledgebaseReferringAgents = (id)=>fetch.get(`${apiPrefix}/knowledgebase/v1/knowledgebase/${id}/referring_agents/`, undefined, {
|
|
86
88
|
headers: {
|
|
@@ -9,6 +9,9 @@ export declare const useMcpHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
|
9
9
|
deleteMcp: (id: number) => Promise<IMcpApi>;
|
|
10
10
|
getMcpConfig: (param: IRegisterMcpParam) => Promise<string>;
|
|
11
11
|
restoreMcp: (id: number) => Promise<unknown>;
|
|
12
|
-
getMcpCount:
|
|
12
|
+
getMcpCount: {
|
|
13
|
+
(param: IMcpCountParam): Promise<import("@/types").IResourceCount[]>;
|
|
14
|
+
abort(): void;
|
|
15
|
+
};
|
|
13
16
|
getMcpReferringAgents: (mcpId: number) => Promise<import("@/types").IReferringAgent[]>;
|
|
14
17
|
};
|
|
@@ -81,11 +81,12 @@ export const useMcpHttp = (apiPrefix, spaceId)=>{
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
// 获取指定空间下 MCP 的数量
|
|
84
|
-
const getMcpCount = (param)=>fetch.post(`${apiPrefix}/mcp/v1/mcp/count/`, transferMcpCount2McpCountApi(param), {
|
|
84
|
+
const getMcpCount = withAbort((signal, param)=>fetch.post(`${apiPrefix}/mcp/v1/mcp/count/`, transferMcpCount2McpCountApi(param), {
|
|
85
85
|
headers: {
|
|
86
86
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
87
|
-
}
|
|
88
|
-
|
|
87
|
+
},
|
|
88
|
+
signal
|
|
89
|
+
}).then((data)=>data.map(transferResourceCountApi2ResourceCount)));
|
|
89
90
|
// 获取引用该 MCP 的智能体列表
|
|
90
91
|
const getMcpReferringAgents = (mcpId)=>fetch.get(`${apiPrefix}/mcp/v1/mcp/${mcpId}/referring_agents/`, undefined, {
|
|
91
92
|
headers: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { IFetchConfig } from '@/http/fetch';
|
|
3
|
-
import type { IPromptApi,
|
|
3
|
+
import type { IPromptApi, IPromptsParams } from '@/types/prompt';
|
|
4
4
|
export declare const usePromptHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
5
5
|
getPrompts: {
|
|
6
6
|
(param: IPromptsParams, config?: IFetchConfig): Promise<import("@/types").IPaginationResponse<import("@/types").IPrompt>>;
|
|
@@ -9,5 +9,8 @@ export declare const usePromptHttp: (apiPrefix: string, spaceId?: Ref<string>) =
|
|
|
9
9
|
togglePromptLike: (id: number) => Promise<IPromptApi>;
|
|
10
10
|
deletePrompt: (id: number) => Promise<IPromptApi>;
|
|
11
11
|
restorePrompt: (id: number) => Promise<unknown>;
|
|
12
|
-
getPromptCount:
|
|
12
|
+
getPromptCount: {
|
|
13
|
+
(param: import("@/types").IBaseCountParam): Promise<import("@/types").IResourceCount[]>;
|
|
14
|
+
abort(): void;
|
|
15
|
+
};
|
|
13
16
|
};
|
|
@@ -81,11 +81,12 @@ export const usePromptHttp = (apiPrefix, spaceId)=>{
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
// // 获取指定空间下 prompt 的数量
|
|
84
|
-
const getPromptCount = (param)=>fetch.post(`${apiPrefix}/prompt/v1/prompt/count/`, transferPromptCount2PromptCountApi(param), {
|
|
84
|
+
const getPromptCount = withAbort((signal, param)=>fetch.post(`${apiPrefix}/prompt/v1/prompt/count/`, transferPromptCount2PromptCountApi(param), {
|
|
85
85
|
headers: {
|
|
86
86
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
87
|
-
}
|
|
88
|
-
|
|
87
|
+
},
|
|
88
|
+
signal
|
|
89
|
+
}).then((data)=>data.map(transferResourceCountApi2ResourceCount)));
|
|
89
90
|
return {
|
|
90
91
|
getPrompts,
|
|
91
92
|
togglePromptLike,
|
|
@@ -6,7 +6,10 @@ export declare const useSkillHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
6
6
|
(param: ISkillListParam, config?: IFetchConfig): Promise<import("@/types/common").IPaginationResponse<import("@/types/skill").ISkill>>;
|
|
7
7
|
abort(): void;
|
|
8
8
|
};
|
|
9
|
-
getSkillCount:
|
|
9
|
+
getSkillCount: {
|
|
10
|
+
(param: ISkillCountParam): Promise<import("@/types/common").IResourceCount[]>;
|
|
11
|
+
abort(): void;
|
|
12
|
+
};
|
|
10
13
|
getSkillReferringAgents: (skillId: number) => Promise<import("@/types/common").IReferringAgent[]>;
|
|
11
14
|
deleteSkill: (id: number) => Promise<ISkillApi>;
|
|
12
15
|
downloadSkill: (id: number) => Promise<import("@/types/skill").ISkill>;
|
|
@@ -63,11 +63,12 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
|
63
63
|
signal
|
|
64
64
|
})).then(transferPaginationResponseApi2PaginationResponse(transferSkillApi2Skill)));
|
|
65
65
|
// 获取指定空间下 Skill 的数量
|
|
66
|
-
const getSkillCount = (param)=>fetch.post(`${apiPrefix}/skill/v1/skill/count/`, transferSkillCount2SkillCountApi(param), {
|
|
66
|
+
const getSkillCount = withAbort((signal, param)=>fetch.post(`${apiPrefix}/skill/v1/skill/count/`, transferSkillCount2SkillCountApi(param), {
|
|
67
67
|
headers: {
|
|
68
68
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
69
|
-
}
|
|
70
|
-
|
|
69
|
+
},
|
|
70
|
+
signal
|
|
71
|
+
}).then((data)=>data.map(transferResourceCountApi2ResourceCount)));
|
|
71
72
|
// 获取引用该 Skill 的智能体列表
|
|
72
73
|
const getSkillReferringAgents = (skillId)=>fetch.get(`${apiPrefix}/skill/v1/skill/${skillId}/referring_agents/`, undefined, {
|
|
73
74
|
headers: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { IFetchConfig } from '@/http/fetch';
|
|
3
|
-
import type {
|
|
3
|
+
import type { IToolsParam } from '@/types';
|
|
4
4
|
export declare const useToolHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
5
5
|
deleteTool: (id: number) => Promise<null>;
|
|
6
6
|
restoreTool: (id: number) => Promise<unknown>;
|
|
@@ -8,6 +8,9 @@ export declare const useToolHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
8
8
|
(param: IToolsParam, config?: IFetchConfig): Promise<import("@/types").IPaginationResponse<import("@/types").ITool>>;
|
|
9
9
|
abort(): void;
|
|
10
10
|
};
|
|
11
|
-
getToolCount:
|
|
11
|
+
getToolCount: {
|
|
12
|
+
(param: import("@/types").IBaseCountParam): Promise<import("@/types").IResourceCount[]>;
|
|
13
|
+
abort(): void;
|
|
14
|
+
};
|
|
12
15
|
getToolReferringAgents: (toolId: number) => Promise<import("@/types").IReferringAgent[]>;
|
|
13
16
|
};
|
|
@@ -74,11 +74,12 @@ export const useToolHttp = (apiPrefix, spaceId)=>{
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
// 获取 tool 数量
|
|
77
|
-
const getToolCount = (param)=>fetch.post(`${apiPrefix}/tool/v1/tool/count/`, transferToolCount2ToolCountApi(param), {
|
|
77
|
+
const getToolCount = withAbort((signal, param)=>fetch.post(`${apiPrefix}/tool/v1/tool/count/`, transferToolCount2ToolCountApi(param), {
|
|
78
78
|
headers: {
|
|
79
79
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
80
|
-
}
|
|
81
|
-
|
|
80
|
+
},
|
|
81
|
+
signal
|
|
82
|
+
}).then((data)=>data.map(transferResourceCountApi2ResourceCount)));
|
|
82
83
|
// 获取引用该工具的智能体列表
|
|
83
84
|
const getToolReferringAgents = (toolId)=>fetch.get(`${apiPrefix}/tool/v1/tool/${toolId}/referring_agents/`, undefined, {
|
|
84
85
|
headers: {
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import {
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon, transferVariable2VariableApi, transferVariableApi2Variable } from './common.ts.js';
|
|
54
54
|
import { transferKnowledge, transferKnowledgeApi, transferKnowledgebase, transferKnowledgebaseApi, transferKnowledgeQuerySetting, transferKnowledgeQuerySettingApi } from './knowledge.ts.js';
|
|
55
55
|
import { transferMcp2McpApi, transferMcpApi2Mcp } from './mcp.ts.js';
|
|
56
56
|
import { transferSkill2SkillApi, transferSkillApi2Skill } from './skill.ts.js';
|
|
@@ -369,7 +369,7 @@ export const transferResourceApplyApi2ResourceApply = (data)=>data.map((item)=>(
|
|
|
369
369
|
status: item.status
|
|
370
370
|
}));
|
|
371
371
|
export const transferAgentCount2AgentCountApi = (data)=>{
|
|
372
|
-
return _object_spread_props(_object_spread({},
|
|
372
|
+
return _object_spread_props(_object_spread({}, transferBaseCountParam2BaseCountParamApi(data)), {
|
|
373
373
|
exclude_agent_id: data.excludeAgentId,
|
|
374
374
|
agent_type: data.agentType,
|
|
375
375
|
is_published: data.isPublished
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import {
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferVariableApi2Variable } from './common.ts.js';
|
|
54
54
|
/**
|
|
55
55
|
* ui转换为接口使用
|
|
56
56
|
* @param data ICollectionListParam
|
|
@@ -101,5 +101,5 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
103
|
export const transferCollectionCount2CollectionCountApi = (data)=>{
|
|
104
|
-
return
|
|
104
|
+
return transferBaseCountParam2BaseCountParamApi(data);
|
|
105
105
|
};
|
|
@@ -57,7 +57,7 @@ export declare const transferPaginationResponseApi2PaginationResponse: <A, U>(tr
|
|
|
57
57
|
export declare const transferVariableApi2Variable: (data: IVariableApi) => IVariable;
|
|
58
58
|
export declare const transferVariable2VariableApi: (data: IVariable) => IVariableApi;
|
|
59
59
|
export declare const transferResourceCommonSearchParams2ResourceCommonSearchParamsApi: (data: IResourceCommonSearchParams) => IResourceCommonSearchParamsApi;
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const transferBaseCountParam2BaseCountParamApi: (data: IBaseCountParam) => IBaseCountParamApi;
|
|
61
61
|
export declare const transferResourceCountApi2ResourceCount: (data: IResourceCountApi) => IResourceCount;
|
|
62
62
|
export declare const transferReferringAgentApi2ReferringAgent: (data: IReferringAgentApi) => IReferringAgent;
|
|
63
63
|
export declare const transferIResourceReferenceApi2IResourceReference: (data: IResourceReferenceApi) => IResourceReference;
|
|
@@ -123,9 +123,8 @@ export const transferResourceCommonSearchParams2ResourceCommonSearchParamsApi =
|
|
|
123
123
|
group_type: data.groupType
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
export const
|
|
126
|
+
export const transferBaseCountParam2BaseCountParamApi = (data)=>{
|
|
127
127
|
return {
|
|
128
|
-
space_ids: data.spaceIds,
|
|
129
128
|
with_private: data.withPrivate,
|
|
130
129
|
can_apply: data.canApply,
|
|
131
130
|
space_name: data.spaceName,
|
|
@@ -136,6 +135,7 @@ export const transferBaseCount2BaseCountApi = (data)=>{
|
|
|
136
135
|
export const transferResourceCountApi2ResourceCount = (data)=>{
|
|
137
136
|
return {
|
|
138
137
|
spaceId: data.space_id,
|
|
138
|
+
spaceName: data.space_name,
|
|
139
139
|
count: data.count
|
|
140
140
|
};
|
|
141
141
|
};
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import {
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi } from './common.ts.js';
|
|
54
54
|
import { mergeStringWithoutLastSlash, mergeStringWithoutLeadingSlash } from '../../common/util.ts.js';
|
|
55
55
|
import { transferResourcePermissionApi2ResourcePermission } from './permission.ts.js';
|
|
56
56
|
/**
|
|
@@ -327,7 +327,6 @@ import { transferResourcePermissionApi2ResourcePermission } from './permission.t
|
|
|
327
327
|
});
|
|
328
328
|
export const transferKnowledgeCount2KnowledgeCountApi = (data)=>{
|
|
329
329
|
return {
|
|
330
|
-
space_ids: data.spaceIds,
|
|
331
330
|
with_private: data.withPrivate,
|
|
332
331
|
space_name: data.spaceName,
|
|
333
332
|
group_type: data.groupType,
|
|
@@ -335,5 +334,5 @@ export const transferKnowledgeCount2KnowledgeCountApi = (data)=>{
|
|
|
335
334
|
};
|
|
336
335
|
};
|
|
337
336
|
export const transferKnowledgebaseCount2KnowledgebaseCountApi = (data)=>{
|
|
338
|
-
return
|
|
337
|
+
return transferBaseCountParam2BaseCountParamApi(data);
|
|
339
338
|
};
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import {
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
54
|
/**
|
|
55
55
|
* ui转换为接口使用
|
|
56
56
|
* @param data IMcpListParam
|
|
@@ -217,7 +217,7 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
217
217
|
}))
|
|
218
218
|
});
|
|
219
219
|
export const transferMcpCount2McpCountApi = (data)=>{
|
|
220
|
-
return _object_spread_props(_object_spread({},
|
|
220
|
+
return _object_spread_props(_object_spread({}, transferBaseCountParam2BaseCountParamApi(data)), {
|
|
221
221
|
with_apigw_mcp: data.withApigwMcp
|
|
222
222
|
});
|
|
223
223
|
};
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import {
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommonApi2ResourceFormCommon, transferVariableApi2Variable } from './common.ts.js';
|
|
54
54
|
/**
|
|
55
55
|
* 接口转换为ui使用(表单字段)
|
|
56
56
|
* @param data IPromptFormApi
|
|
@@ -100,5 +100,5 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
102
|
export const transferPromptCount2PromptCountApi = (data)=>{
|
|
103
|
-
return
|
|
103
|
+
return transferBaseCountParam2BaseCountParamApi(data);
|
|
104
104
|
};
|
|
@@ -83,7 +83,9 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
83
83
|
* 接口转换为ui使用(完整资源)
|
|
84
84
|
* @param data ISkillApi
|
|
85
85
|
* @returns ISkill
|
|
86
|
-
*/ export const transferSkillApi2Skill = (data)=>
|
|
86
|
+
*/ export const transferSkillApi2Skill = (data)=>{
|
|
87
|
+
var _data_bkai_dependencies;
|
|
88
|
+
return _object_spread_props(_object_spread({}, transferSkillFormApi2SkillForm(data), transferResourceCommonApi2ResourceCommon(data)), {
|
|
87
89
|
latestStatus: data.latest_status,
|
|
88
90
|
latestVersion: data.latest_version,
|
|
89
91
|
skillMarkdown: data.skill_markdown,
|
|
@@ -95,13 +97,20 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
95
97
|
effectiveStatusCn: data.scanner.effective_status_cn,
|
|
96
98
|
lastScanAt: data.scanner.last_scan_at,
|
|
97
99
|
reportContent: data.scanner.report_content
|
|
98
|
-
} : undefined
|
|
100
|
+
} : undefined,
|
|
101
|
+
bkaiDependencies: {
|
|
102
|
+
envs: (_data_bkai_dependencies = data.bkai_dependencies) === null || _data_bkai_dependencies === void 0 ? void 0 : _data_bkai_dependencies.envs
|
|
103
|
+
},
|
|
104
|
+
envs: data.envs
|
|
99
105
|
});
|
|
106
|
+
};
|
|
100
107
|
/**
|
|
101
108
|
* ui转换为接口使用(完整资源)
|
|
102
109
|
* @param data ISkill
|
|
103
110
|
* @returns ISkillApi
|
|
104
|
-
*/ export const transferSkill2SkillApi = (data)=>
|
|
111
|
+
*/ export const transferSkill2SkillApi = (data)=>{
|
|
112
|
+
var _data_bkaiDependencies;
|
|
113
|
+
return _object_spread_props(_object_spread({}, transferSkillForm2SkillFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
105
114
|
latest_status: data.latestStatus,
|
|
106
115
|
latest_version: data.latestVersion,
|
|
107
116
|
skill_markdown: data.skillMarkdown,
|
|
@@ -112,11 +121,15 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
112
121
|
effective_status_cn: data.scanner.effectiveStatusCn,
|
|
113
122
|
last_scan_at: data.scanner.lastScanAt,
|
|
114
123
|
report_content: data.scanner.reportContent
|
|
115
|
-
} : undefined
|
|
124
|
+
} : undefined,
|
|
125
|
+
bkai_dependencies: {
|
|
126
|
+
envs: (_data_bkaiDependencies = data.bkaiDependencies) === null || _data_bkaiDependencies === void 0 ? void 0 : _data_bkaiDependencies.envs
|
|
127
|
+
},
|
|
128
|
+
envs: data.envs
|
|
116
129
|
});
|
|
130
|
+
};
|
|
117
131
|
export const transferSkillCount2SkillCountApi = (data)=>{
|
|
118
132
|
return {
|
|
119
|
-
space_ids: data.spaceIds,
|
|
120
133
|
with_private: data.withPrivate,
|
|
121
134
|
can_apply: data.canApply,
|
|
122
135
|
space_name: data.spaceName,
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import {
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
54
|
/**
|
|
55
55
|
* ui转换为接口使用(表单字段)
|
|
56
56
|
* @param data IToolForm
|
|
@@ -126,5 +126,5 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
126
126
|
});
|
|
127
127
|
};
|
|
128
128
|
export const transferToolCount2ToolCountApi = (data)=>{
|
|
129
|
-
return
|
|
129
|
+
return transferBaseCountParam2BaseCountParamApi(data);
|
|
130
130
|
};
|
package/dist/types/common.d.ts
CHANGED
|
@@ -151,15 +151,16 @@ export interface IResourceCommonSearchParamsApi {
|
|
|
151
151
|
group_type?: GroupType;
|
|
152
152
|
}
|
|
153
153
|
export interface IResourceCount {
|
|
154
|
-
spaceId
|
|
154
|
+
spaceId: string;
|
|
155
|
+
spaceName: string;
|
|
155
156
|
count: number;
|
|
156
157
|
}
|
|
157
158
|
export interface IResourceCountApi {
|
|
158
159
|
space_id: string;
|
|
160
|
+
space_name: string;
|
|
159
161
|
count: number;
|
|
160
162
|
}
|
|
161
163
|
export interface IBaseCountParam {
|
|
162
|
-
spaceIds: string[];
|
|
163
164
|
withPrivate?: boolean;
|
|
164
165
|
canApply?: boolean;
|
|
165
166
|
spaceName?: string;
|
|
@@ -167,7 +168,6 @@ export interface IBaseCountParam {
|
|
|
167
168
|
createdBy?: string;
|
|
168
169
|
}
|
|
169
170
|
export interface IBaseCountParamApi {
|
|
170
|
-
space_ids: string[];
|
|
171
171
|
with_private?: boolean;
|
|
172
172
|
can_apply?: boolean;
|
|
173
173
|
space_name?: string;
|
package/dist/types/skill.d.ts
CHANGED
|
@@ -56,6 +56,15 @@ export interface ISkillScanner {
|
|
|
56
56
|
lastScanAt: string;
|
|
57
57
|
reportContent: string;
|
|
58
58
|
}
|
|
59
|
+
export interface ISkillEnv {
|
|
60
|
+
key: string;
|
|
61
|
+
description: string;
|
|
62
|
+
required: boolean;
|
|
63
|
+
default: string;
|
|
64
|
+
secret: boolean;
|
|
65
|
+
value?: string;
|
|
66
|
+
}
|
|
67
|
+
export type ISkillEnvApi = ISkillEnv;
|
|
59
68
|
export interface ISkill extends ISkillForm, IResourceCommon<SkillStatus> {
|
|
60
69
|
latestStatus?: SkillStatus;
|
|
61
70
|
latestVersion?: string;
|
|
@@ -64,6 +73,10 @@ export interface ISkill extends ISkillForm, IResourceCommon<SkillStatus> {
|
|
|
64
73
|
installCount?: number;
|
|
65
74
|
refCount?: number;
|
|
66
75
|
scanner?: ISkillScanner;
|
|
76
|
+
envs?: ISkillEnv[];
|
|
77
|
+
bkaiDependencies?: {
|
|
78
|
+
envs?: ISkillEnv[];
|
|
79
|
+
};
|
|
67
80
|
}
|
|
68
81
|
export interface ISkillApi extends ISkillFormApi, IResourceCommonApi<SkillStatus> {
|
|
69
82
|
latest_status?: SkillStatus;
|
|
@@ -73,6 +86,10 @@ export interface ISkillApi extends ISkillFormApi, IResourceCommonApi<SkillStatus
|
|
|
73
86
|
install_count?: number;
|
|
74
87
|
ref_count?: number;
|
|
75
88
|
scanner?: ISkillScannerApi;
|
|
89
|
+
envs?: ISkillEnvApi[];
|
|
90
|
+
bkai_dependencies?: {
|
|
91
|
+
envs?: ISkillEnvApi[];
|
|
92
|
+
};
|
|
76
93
|
}
|
|
77
94
|
export interface IApplicationSkill extends ISkill {
|
|
78
95
|
resourceId: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueking/ai-ui-sdk",
|
|
3
|
-
"version": "0.3.0-beta.
|
|
3
|
+
"version": "0.3.0-beta.20",
|
|
4
4
|
"description": "蓝鲸AI UI SDK",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"vue-router": "^4.2.4"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@blueking/aidev-g-utilities": "0.1.0-beta.
|
|
106
|
+
"@blueking/aidev-g-utilities": "0.1.0-beta.7",
|
|
107
107
|
"@blueking/babel-preset-bk": "2.1.0",
|
|
108
108
|
"@blueking/cli-service": "0.1.0-beta.31",
|
|
109
109
|
"@blueking/eslint-config-bk": "2.1.0",
|