@blueking/ai-ui-sdk 0.6.0-beta.2 → 0.6.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/README.md +3 -1
- package/dist/common/constants.d.ts +4 -0
- package/dist/common/constants.ts.js +30 -0
- package/dist/common/util.d.ts +5 -2
- package/dist/common/util.ts.js +12 -3
- package/dist/components/render-agent/agent-type.vue.css +4 -4
- 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.script.vue.js.js +39 -15
- package/dist/components/render-auto-refresh/index.vue.js +0 -2
- 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/agent/upgrade.vue.css +2 -2
- package/dist/components/render-card/agent/upgrade.vue.js +1 -1
- package/dist/components/render-card/base/approval-strategy-popover.script.vue.js.js +2 -2
- package/dist/components/render-card/base.vue.css +13 -13
- 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 +2 -2
- 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/scanner.vue.css +3 -3
- package/dist/components/render-card/skill/scanner.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +4 -4
- 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/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 +1 -1
- 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 +1 -1
- 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.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.vue.css +9 -9
- package/dist/components/render-dialog/choose-space.vue.js +1 -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-dropdown/index.vue.css +1 -0
- package/dist/components/render-exception/index.vue.css +9 -9
- package/dist/components/render-exception/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.script.vue.js.js +6 -0
- package/dist/components/render-generate-tag/index.vue.css +13 -5
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-header/index.script.vue.js.js +5 -2
- 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-markdown/common.ts.js +2 -1
- package/dist/components/render-markdown/edit.ts.js +4 -6
- package/dist/components/render-markdown/filter-css.ts.js +3 -8
- package/dist/components/render-markdown/html.d.ts +2 -0
- package/dist/components/render-markdown/html.ts.js +67 -0
- package/dist/components/render-markdown/image.d.ts +3 -0
- package/dist/components/render-markdown/image.ts.js +98 -0
- package/dist/components/render-markdown/katex.ts.js +14 -4
- package/dist/components/render-markdown/view.d.ts +10 -0
- package/dist/components/render-markdown/view.ts.js +69 -2
- 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-skill/install/index.script.vue.js.js +38 -28
- package/dist/components/render-skill/install/{openclaw-windows-instances.script.vue.js.js → openclaw-instances.script.vue.js.js} +23 -21
- package/dist/components/render-skill/install/{openclaw-windows-instances.vue.d.ts → openclaw-instances.vue.d.ts} +6 -4
- package/dist/components/render-skill/install/openclaw-instances.vue.js +3 -0
- package/dist/components/render-t-table/index.vue.css +33 -29
- 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/components/render-tree/index.script.vue.js +1 -1
- package/dist/css/bk-icon/fonts/iconcool.eot +0 -0
- package/dist/css/bk-icon/fonts/iconcool.svg +3 -0
- package/dist/css/bk-icon/fonts/iconcool.ttf +0 -0
- package/dist/css/bk-icon/fonts/iconcool.woff +0 -0
- package/dist/css/bk-icon/iconcool.js +1 -1
- package/dist/css/bk-icon/style.css +3 -0
- package/dist/css/bk-patch.css +31 -6
- package/dist/css/g-utilities.css +75 -0
- package/dist/css/g-utilities.manifest.json +18 -0
- package/dist/css/variable/token.d.ts +11 -0
- package/dist/css/variable/token.ts.js +16 -1
- package/dist/hooks/use-form-rule.d.ts +31 -2
- package/dist/hooks/use-form-rule.ts.js +65 -26
- package/dist/hooks/use-meta-http.d.ts +6 -2
- package/dist/hooks/use-meta-http.ts.js +19 -5
- package/dist/hooks/use-scroll-load.d.ts +12 -3
- package/dist/hooks/use-skill-http.d.ts +7 -6
- package/dist/hooks/use-skill-http.ts.js +19 -17
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.ts.js +1 -0
- package/dist/http/helper/agent.ts.js +12 -2
- package/dist/http/helper/model.ts.js +42 -1
- package/dist/http/helper/skill.d.ts +9 -9
- package/dist/http/helper/skill.ts.js +12 -10
- package/dist/i18n/en-US.d.ts +20 -0
- package/dist/i18n/en-US.ts.js +21 -1
- package/dist/i18n/zh-CN.d.ts +20 -0
- package/dist/i18n/zh-CN.ts.js +21 -1
- package/dist/types/agent.d.ts +11 -1
- package/dist/types/enum.d.ts +6 -1
- package/dist/types/enum.ts.js +6 -0
- package/dist/types/model.d.ts +16 -0
- package/dist/types/skill.d.ts +26 -22
- package/package.json +3 -3
- package/dist/components/render-auto-refresh/index.vue.css +0 -46
- package/dist/components/render-skill/install/openclaw-windows-instances.vue.js +0 -3
|
@@ -14,10 +14,19 @@ interface IUseScrollLoadOptions<T> {
|
|
|
14
14
|
export declare const useScrollLoad: <T>({ targetCls, defaultPageSize, triggerApi, abort, handleDataLoaded, handleDataUpdated, }: IUseScrollLoadOptions<T>) => {
|
|
15
15
|
isLoading: Ref<boolean, boolean>;
|
|
16
16
|
datas: Ref<T[], T[]>;
|
|
17
|
-
handleInitData:
|
|
17
|
+
handleInitData: {
|
|
18
|
+
(): void;
|
|
19
|
+
cancel: () => void;
|
|
20
|
+
};
|
|
18
21
|
handleInitDataImmediately: () => Promise<void>;
|
|
19
|
-
handleRefreshData:
|
|
20
|
-
|
|
22
|
+
handleRefreshData: {
|
|
23
|
+
(): void;
|
|
24
|
+
cancel: () => void;
|
|
25
|
+
};
|
|
26
|
+
handleRefreshDataWithoutLoading: {
|
|
27
|
+
(): void;
|
|
28
|
+
cancel: () => void;
|
|
29
|
+
};
|
|
21
30
|
scrollLoadMore: (event: Event) => void;
|
|
22
31
|
};
|
|
23
32
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { IFetchConfig } from '@/http/fetch';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SkillInstallTargetType } from '@/types/enum';
|
|
4
|
+
import type { ISkillApi, ISkillCountParam, ISkillInstallGuide, ISkillListParam, ISkillOpenclawInstallParam, ISkillOpenclawInstallTaskStatusParam, ISkillOpenclawInstanceStatusParam } from '@/types/skill';
|
|
4
5
|
export declare const useSkillHttp: (apiPrefix: string, spaceId?: Ref<string>) => {
|
|
5
6
|
getSkillList: {
|
|
6
7
|
(param: ISkillListParam, config?: IFetchConfig): Promise<import("@/types/common").IPaginationResponse<import("@/types/skill").ISkill>>;
|
|
@@ -18,11 +19,11 @@ export declare const useSkillHttp: (apiPrefix: string, spaceId?: Ref<string>) =>
|
|
|
18
19
|
markdown: string;
|
|
19
20
|
}>;
|
|
20
21
|
getSkillInstallTargets: () => Promise<import("@/types/skill").ISkillInstallTarget[]>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
(data:
|
|
22
|
+
getSkillOpenclawInstances: (targetType?: SkillInstallTargetType) => Promise<import("@/types/skill").ISkillOpenclawInstance[]>;
|
|
23
|
+
getSkillOpenclawInstancesStatus: (data: ISkillOpenclawInstanceStatusParam) => Promise<import("@/types/skill").ISkillOpenclawInstanceStatusMap>;
|
|
24
|
+
installSkillToOpenclaw: (data: ISkillOpenclawInstallParam) => Promise<import("@/types/skill").ISkillOpenclawInstallTasks>;
|
|
25
|
+
getSkillOpenclawInstallTasksStatus: {
|
|
26
|
+
(data: ISkillOpenclawInstallTaskStatusParam): Promise<import("@/types/skill").ISkillOpenclawInstallTaskStatusMap>;
|
|
26
27
|
abort(): void;
|
|
27
28
|
};
|
|
28
29
|
getSkillBuildLog: {
|
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
53
|
import fetch, { withAbort } from '../http/fetch/index.ts.js';
|
|
54
|
-
import { transferSkillApi2Skill, transferSkillBuildLogApi2SkillBuildLog, transferSkillCount2SkillCountApi, transferSkillInstallGuide2SkillInstallGuideApi, transferSkillInstallTargetApi2SkillInstallTarget,
|
|
54
|
+
import { transferSkillApi2Skill, transferSkillBuildLogApi2SkillBuildLog, transferSkillCount2SkillCountApi, transferSkillInstallGuide2SkillInstallGuideApi, transferSkillInstallTargetApi2SkillInstallTarget, transferSkillOpenclawInstallParam2SkillOpenclawInstallParamApi, transferSkillOpenclawInstallTasksApi2SkillOpenclawInstallTasks, transferSkillOpenclawInstallTaskStatusMapApi2SkillOpenclawInstallTaskStatusMap, transferSkillOpenclawInstallTaskStatusParam2SkillOpenclawInstallTaskStatusParamApi, transferSkillOpenclawInstanceApi2SkillOpenclawInstance, transferSkillOpenclawInstanceStatusMapApi2SkillOpenclawInstanceStatusMap, transferSkillOpenclawInstanceStatusParam2SkillOpenclawInstanceStatusParamApi } from '../http/helper/skill.ts.js';
|
|
55
55
|
import { transferPaginationResponseApi2PaginationResponse, transferReferringAgentApi2ReferringAgent, transferResourceCountApi2ResourceCount, transferSkillParam2SkillParamApi } from '../transforms.ts.js';
|
|
56
56
|
export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
57
57
|
// 获取 Skill 列表
|
|
@@ -105,31 +105,33 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
|
105
105
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
106
106
|
}
|
|
107
107
|
}).then((data)=>data.map(transferSkillInstallTargetApi2SkillInstallTarget));
|
|
108
|
-
//
|
|
109
|
-
const
|
|
108
|
+
// 获取云桌面实例列表
|
|
109
|
+
const getSkillOpenclawInstances = (targetType)=>fetch.get(`${apiPrefix}/skill/v1/openclaw/instances/`, {
|
|
110
|
+
target_type: targetType
|
|
111
|
+
}, {
|
|
110
112
|
headers: {
|
|
111
113
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
112
114
|
}
|
|
113
|
-
}).then((data)=>data.map(
|
|
114
|
-
//
|
|
115
|
-
const
|
|
115
|
+
}).then((data)=>data.map(transferSkillOpenclawInstanceApi2SkillOpenclawInstance));
|
|
116
|
+
// 查询云桌面实例安装状态
|
|
117
|
+
const getSkillOpenclawInstancesStatus = (data)=>fetch.post(`${apiPrefix}/skill/v1/openclaw/check_install_on_instances/`, transferSkillOpenclawInstanceStatusParam2SkillOpenclawInstanceStatusParamApi(data), {
|
|
116
118
|
headers: {
|
|
117
119
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
118
120
|
}
|
|
119
|
-
}).then(
|
|
120
|
-
// 发起 Skill
|
|
121
|
-
const
|
|
121
|
+
}).then(transferSkillOpenclawInstanceStatusMapApi2SkillOpenclawInstanceStatusMap);
|
|
122
|
+
// 发起 Skill 云桌面安装任务
|
|
123
|
+
const installSkillToOpenclaw = (data)=>fetch.post(`${apiPrefix}/skill/v1/openclaw/install/`, transferSkillOpenclawInstallParam2SkillOpenclawInstallParamApi(data), {
|
|
122
124
|
headers: {
|
|
123
125
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
124
126
|
}
|
|
125
|
-
}).then(
|
|
126
|
-
// 查询 Skill
|
|
127
|
-
const
|
|
127
|
+
}).then(transferSkillOpenclawInstallTasksApi2SkillOpenclawInstallTasks);
|
|
128
|
+
// 查询 Skill 云桌面安装任务状态
|
|
129
|
+
const getSkillOpenclawInstallTasksStatus = withAbort((signal, data)=>fetch.post(`${apiPrefix}/skill/v1/openclaw/install_tasks_status/`, transferSkillOpenclawInstallTaskStatusParam2SkillOpenclawInstallTaskStatusParamApi(data), {
|
|
128
130
|
headers: {
|
|
129
131
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
130
132
|
},
|
|
131
133
|
signal
|
|
132
|
-
}).then(
|
|
134
|
+
}).then(transferSkillOpenclawInstallTaskStatusMapApi2SkillOpenclawInstallTaskStatusMap));
|
|
133
135
|
// 获取 Skill 构建日志
|
|
134
136
|
const getSkillBuildLog = withAbort((signal, id, version)=>fetch.get(`${apiPrefix}/skill/v1/skill/${id}/build_log/`, {
|
|
135
137
|
version
|
|
@@ -160,10 +162,10 @@ export const useSkillHttp = (apiPrefix, spaceId)=>{
|
|
|
160
162
|
restoreSkill,
|
|
161
163
|
getSkillInstallGuide,
|
|
162
164
|
getSkillInstallTargets,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
getSkillOpenclawInstances,
|
|
166
|
+
getSkillOpenclawInstancesStatus,
|
|
167
|
+
installSkillToOpenclaw,
|
|
168
|
+
getSkillOpenclawInstallTasksStatus,
|
|
167
169
|
getSkillBuildLog,
|
|
168
170
|
addSkillFavorite,
|
|
169
171
|
removeSkillFavorite
|
package/dist/hooks.d.ts
CHANGED
package/dist/hooks.ts.js
CHANGED
|
@@ -148,6 +148,7 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
148
148
|
user_guide: data.userGuide,
|
|
149
149
|
is_bind_bk_saas: data.isBindBkSaas,
|
|
150
150
|
deploy_mode: data.deployMode,
|
|
151
|
+
sdk_upgrade_mode: data.sdkUpgradeMode,
|
|
151
152
|
user_scope: data.userScope,
|
|
152
153
|
flow_setting: data.flowSetting ? {
|
|
153
154
|
flow_version: data.flowSetting.flowVersion,
|
|
@@ -161,6 +162,9 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
161
162
|
enable_chat_session: (_data_conversationSettings3 = data.conversationSettings) === null || _data_conversationSettings3 === void 0 ? void 0 : _data_conversationSettings3.enableChatSession,
|
|
162
163
|
enable_word_selection_popup: (_data_conversationSettings4 = data.conversationSettings) === null || _data_conversationSettings4 === void 0 ? void 0 : _data_conversationSettings4.enableWordSelectionPopup
|
|
163
164
|
},
|
|
165
|
+
memory_settings: data.memorySettings ? {
|
|
166
|
+
enabled: data.memorySettings.enabled
|
|
167
|
+
} : undefined,
|
|
164
168
|
intent_recognition: data.intentRecognition ? {
|
|
165
169
|
knowledges: data.intentRecognition.knowledges ? data.intentRecognition.knowledges.map(transferKnowledge) : [],
|
|
166
170
|
topk: data.intentRecognition.topk,
|
|
@@ -179,7 +183,8 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
179
183
|
context_window: data.promptSetting.contextWindow,
|
|
180
184
|
llm_token_limit: data.promptSetting.llmTokenLimit,
|
|
181
185
|
max_tokens: data.promptSetting.maxTokens,
|
|
182
|
-
tool_output_compress_thrd: data.promptSetting.toolOutputCompressThrd
|
|
186
|
+
tool_output_compress_thrd: data.promptSetting.toolOutputCompressThrd,
|
|
187
|
+
reasoning_effort: data.promptSetting.reasoningEffort
|
|
183
188
|
} : undefined,
|
|
184
189
|
knowledgebase_settings: data.knowledgebaseSettings ? _object_spread({
|
|
185
190
|
knowledgebases: data.knowledgebaseSettings.knowledgebases.map(transferKnowledgebase)
|
|
@@ -215,6 +220,7 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
215
220
|
userGuide: data.user_guide,
|
|
216
221
|
isBindBkSaas: data.is_bind_bk_saas,
|
|
217
222
|
deployMode: data.deploy_mode,
|
|
223
|
+
sdkUpgradeMode: data.sdk_upgrade_mode,
|
|
218
224
|
userScope: data.user_scope,
|
|
219
225
|
flowSetting: data.flow_setting ? {
|
|
220
226
|
flowId: data.flow_setting.flow_id,
|
|
@@ -229,6 +235,9 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
229
235
|
enableChatSession: (_data_conversation_settings3 = data.conversation_settings) === null || _data_conversation_settings3 === void 0 ? void 0 : _data_conversation_settings3.enable_chat_session,
|
|
230
236
|
enableWordSelectionPopup: (_data_conversation_settings4 = data.conversation_settings) === null || _data_conversation_settings4 === void 0 ? void 0 : _data_conversation_settings4.enable_word_selection_popup
|
|
231
237
|
},
|
|
238
|
+
memorySettings: data.memory_settings ? {
|
|
239
|
+
enabled: data.memory_settings.enabled
|
|
240
|
+
} : undefined,
|
|
232
241
|
intentRecognition: data.intent_recognition ? {
|
|
233
242
|
knowledges: data.intent_recognition.knowledges ? data.intent_recognition.knowledges.map(transferKnowledgeApi) : [],
|
|
234
243
|
topk: data.intent_recognition.topk,
|
|
@@ -247,7 +256,8 @@ import { transferTool2ToolApi, transferToolApi2Tool } from './tool.ts.js';
|
|
|
247
256
|
contextWindow: data.prompt_setting.context_window,
|
|
248
257
|
llmTokenLimit: data.prompt_setting.llm_token_limit,
|
|
249
258
|
maxTokens: data.prompt_setting.max_tokens,
|
|
250
|
-
toolOutputCompressThrd: data.prompt_setting.tool_output_compress_thrd
|
|
259
|
+
toolOutputCompressThrd: data.prompt_setting.tool_output_compress_thrd,
|
|
260
|
+
reasoningEffort: data.prompt_setting.reasoning_effort
|
|
251
261
|
} : undefined,
|
|
252
262
|
knowledgebaseSettings: data.knowledgebase_settings ? _object_spread({
|
|
253
263
|
knowledgebases: data.knowledgebase_settings.knowledgebases.map(transferKnowledgebaseApi)
|
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
import { REASONING_EFFORT_MAP } from '../../common/constants.ts.js';
|
|
30
|
+
// 兼容两种后端格式:supported_efforts(key/value/desc)与 levels(仅 level,需前端映射文案)
|
|
31
|
+
const getSupportedEfforts = (reasoning)=>{
|
|
32
|
+
var _reasoning_supported_efforts, _reasoning_levels;
|
|
33
|
+
if ((_reasoning_supported_efforts = reasoning.supported_efforts) === null || _reasoning_supported_efforts === void 0 ? void 0 : _reasoning_supported_efforts.length) return reasoning.supported_efforts;
|
|
34
|
+
return (_reasoning_levels = reasoning.levels) === null || _reasoning_levels === void 0 ? void 0 : _reasoning_levels.map(({ level })=>_object_spread({
|
|
35
|
+
key: level
|
|
36
|
+
}, REASONING_EFFORT_MAP[level]));
|
|
37
|
+
};
|
|
1
38
|
export const transferModelApi2Model = (data)=>({
|
|
2
39
|
llmCode: data.llm_code,
|
|
3
40
|
llmName: data.llm_name,
|
|
@@ -29,7 +66,11 @@ export const transferModelApi2Model = (data)=>({
|
|
|
29
66
|
supportThinkingQuick: data.property.support_thinking_quick,
|
|
30
67
|
default: data.property.default,
|
|
31
68
|
isSelfHost: data.property.is_self_host,
|
|
32
|
-
maxModelLen: data.property.max_model_len
|
|
69
|
+
maxModelLen: data.property.max_model_len,
|
|
70
|
+
reasoning: data.property.reasoning ? {
|
|
71
|
+
supportedEfforts: getSupportedEfforts(data.property.reasoning),
|
|
72
|
+
defaultEffort: data.property.reasoning.default_effort
|
|
73
|
+
} : undefined
|
|
33
74
|
} : undefined,
|
|
34
75
|
hyperparameters: data.hyperparameters ? {
|
|
35
76
|
temperature: data.hyperparameters.temperature,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ISkill, ISkillApi, ISkillBuildLog, ISkillBuildLogApi, ISkillCountParam, ISkillCountParamApi, ISkillForm, ISkillFormApi, ISkillInstallGuide, ISkillInstallGuideApi, ISkillInstallTarget, ISkillInstallTargetApi, ISkillListParam, ISkillListParamApi,
|
|
1
|
+
import type { ISkill, ISkillApi, ISkillBuildLog, ISkillBuildLogApi, ISkillCountParam, ISkillCountParamApi, ISkillForm, ISkillFormApi, ISkillInstallGuide, ISkillInstallGuideApi, ISkillInstallTarget, ISkillInstallTargetApi, ISkillListParam, ISkillListParamApi, ISkillOpenclawInstallParam, ISkillOpenclawInstallParamApi, ISkillOpenclawInstallTasks, ISkillOpenclawInstallTasksApi, ISkillOpenclawInstallTaskStatusMap, ISkillOpenclawInstallTaskStatusMapApi, ISkillOpenclawInstallTaskStatusParam, ISkillOpenclawInstallTaskStatusParamApi, ISkillOpenclawInstance, ISkillOpenclawInstanceApi, ISkillOpenclawInstanceStatusMap, ISkillOpenclawInstanceStatusMapApi, ISkillOpenclawInstanceStatusParam, ISkillOpenclawInstanceStatusParamApi } from '@/types/skill';
|
|
2
2
|
/**
|
|
3
3
|
* ui转换为接口使用(表单字段)
|
|
4
4
|
* @param data ISkillForm
|
|
@@ -38,11 +38,11 @@ export declare const transferSkillBuildLogApi2SkillBuildLog: (data: ISkillBuildL
|
|
|
38
38
|
export declare const transferSkillParam2SkillParamApi: (data: ISkillListParam) => ISkillListParamApi;
|
|
39
39
|
export declare const transferSkillInstallGuide2SkillInstallGuideApi: (data: ISkillInstallGuide) => ISkillInstallGuideApi;
|
|
40
40
|
export declare const transferSkillInstallTargetApi2SkillInstallTarget: (data: ISkillInstallTargetApi) => ISkillInstallTarget;
|
|
41
|
-
export declare const
|
|
42
|
-
export declare const
|
|
43
|
-
export declare const
|
|
44
|
-
export declare const
|
|
45
|
-
export declare const
|
|
46
|
-
export declare const
|
|
47
|
-
export declare const
|
|
48
|
-
export declare const
|
|
41
|
+
export declare const transferSkillOpenclawInstanceApi2SkillOpenclawInstance: (data: ISkillOpenclawInstanceApi) => ISkillOpenclawInstance;
|
|
42
|
+
export declare const transferSkillOpenclawInstance2SkillOpenclawInstanceApi: (data: ISkillOpenclawInstance) => ISkillOpenclawInstanceApi;
|
|
43
|
+
export declare const transferSkillOpenclawInstallParam2SkillOpenclawInstallParamApi: (data: ISkillOpenclawInstallParam) => ISkillOpenclawInstallParamApi;
|
|
44
|
+
export declare const transferSkillOpenclawInstallTasksApi2SkillOpenclawInstallTasks: (data: ISkillOpenclawInstallTasksApi) => ISkillOpenclawInstallTasks;
|
|
45
|
+
export declare const transferSkillOpenclawInstallTaskStatusParam2SkillOpenclawInstallTaskStatusParamApi: (data: ISkillOpenclawInstallTaskStatusParam) => ISkillOpenclawInstallTaskStatusParamApi;
|
|
46
|
+
export declare const transferSkillOpenclawInstallTaskStatusMapApi2SkillOpenclawInstallTaskStatusMap: (data: ISkillOpenclawInstallTaskStatusMapApi) => ISkillOpenclawInstallTaskStatusMap;
|
|
47
|
+
export declare const transferSkillOpenclawInstanceStatusParam2SkillOpenclawInstanceStatusParamApi: (data: ISkillOpenclawInstanceStatusParam) => ISkillOpenclawInstanceStatusParamApi;
|
|
48
|
+
export declare const transferSkillOpenclawInstanceStatusMapApi2SkillOpenclawInstanceStatusMap: (data: ISkillOpenclawInstanceStatusMapApi) => ISkillOpenclawInstanceStatusMap;
|
|
@@ -174,21 +174,22 @@ export const transferSkillInstallTargetApi2SkillInstallTarget = (data)=>({
|
|
|
174
174
|
targetType: data.target_type,
|
|
175
175
|
displayName: data.display_name
|
|
176
176
|
});
|
|
177
|
-
export const
|
|
177
|
+
export const transferSkillOpenclawInstanceApi2SkillOpenclawInstance = (data)=>({
|
|
178
178
|
displayName: data.display_name,
|
|
179
179
|
hostName: data.host_name,
|
|
180
180
|
hostDescription: data.host_description
|
|
181
181
|
});
|
|
182
|
-
export const
|
|
182
|
+
export const transferSkillOpenclawInstance2SkillOpenclawInstanceApi = (data)=>({
|
|
183
183
|
display_name: data.displayName,
|
|
184
184
|
host_name: data.hostName,
|
|
185
185
|
host_description: data.hostDescription
|
|
186
186
|
});
|
|
187
|
-
export const
|
|
187
|
+
export const transferSkillOpenclawInstallParam2SkillOpenclawInstallParamApi = (data)=>({
|
|
188
188
|
skill_id: data.skillId,
|
|
189
|
-
workspaces: data.workspaces.map(
|
|
189
|
+
workspaces: data.workspaces.map(transferSkillOpenclawInstance2SkillOpenclawInstanceApi),
|
|
190
|
+
target_type: data.targetType
|
|
190
191
|
});
|
|
191
|
-
export const
|
|
192
|
+
export const transferSkillOpenclawInstallTasksApi2SkillOpenclawInstallTasks = (data)=>{
|
|
192
193
|
return Object.entries(data).reduce((result, [hostName, task])=>_object_spread_props(_object_spread({}, result), {
|
|
193
194
|
[hostName]: {
|
|
194
195
|
taskId: task.task_id,
|
|
@@ -196,10 +197,10 @@ export const transferSkillOpenclawWindowsInstallTasksApi2SkillOpenclawWindowsIns
|
|
|
196
197
|
}
|
|
197
198
|
}), {});
|
|
198
199
|
};
|
|
199
|
-
export const
|
|
200
|
+
export const transferSkillOpenclawInstallTaskStatusParam2SkillOpenclawInstallTaskStatusParamApi = (data)=>({
|
|
200
201
|
task_ids: data.taskIds
|
|
201
202
|
});
|
|
202
|
-
export const
|
|
203
|
+
export const transferSkillOpenclawInstallTaskStatusMapApi2SkillOpenclawInstallTaskStatusMap = (data)=>{
|
|
203
204
|
return Object.entries(data).reduce((result, [taskId, task])=>_object_spread_props(_object_spread({}, result), {
|
|
204
205
|
[taskId]: {
|
|
205
206
|
status: task.status,
|
|
@@ -207,11 +208,12 @@ export const transferSkillOpenclawWindowsInstallTaskStatusMapApi2SkillOpenclawWi
|
|
|
207
208
|
}
|
|
208
209
|
}), {});
|
|
209
210
|
};
|
|
210
|
-
export const
|
|
211
|
+
export const transferSkillOpenclawInstanceStatusParam2SkillOpenclawInstanceStatusParamApi = (data)=>({
|
|
211
212
|
skill_id: data.skillId,
|
|
212
|
-
workspaces: data.workspaces.map(
|
|
213
|
+
workspaces: data.workspaces.map(transferSkillOpenclawInstance2SkillOpenclawInstanceApi),
|
|
214
|
+
target_type: data.targetType
|
|
213
215
|
});
|
|
214
|
-
export const
|
|
216
|
+
export const transferSkillOpenclawInstanceStatusMapApi2SkillOpenclawInstanceStatusMap = (data)=>{
|
|
215
217
|
return Object.entries(data).reduce((result, [hostName, status])=>_object_spread_props(_object_spread({}, result), {
|
|
216
218
|
[hostName]: {
|
|
217
219
|
isInstalled: status.is_installed
|
package/dist/i18n/en-US.d.ts
CHANGED
|
@@ -283,6 +283,8 @@ declare const _default: {
|
|
|
283
283
|
'\u8BE5\u8D44\u6E90\u7531\u3010{currentSpaceName}\u3011\u7A7A\u95F4\u5F00\u653E\uFF0C\u6240\u6709\u7A7A\u95F4\u53EF\u4F7F\u7528': string;
|
|
284
284
|
'\u8BE5\u667A\u80FD\u4F53\u53EF\u88AB\u3010{currentSpaceName}\u3011\u7A7A\u95F4\u6216\u5176\u6388\u6743\u7A7A\u95F4\u667A\u80FD\u4F53\u5173\u8054\u8C03\u7528': string;
|
|
285
285
|
'\u8BE5\u8D44\u6E90\u5728\u3010{currentSpaceName}\u3011\u7A7A\u95F4\u6216\u5176\u6388\u6743\u7A7A\u95F4\u53EF\u4F7F\u7528': string;
|
|
286
|
+
'\u8BE5\u667A\u80FD\u4F53\u5DF2\u5BF9\u5E73\u53F0\u6240\u6709\u79DF\u6237\u516C\u5F00\uFF0C\u53EF\u88AB\u6240\u6709\u79DF\u6237\u7684\u7A7A\u95F4\u667A\u80FD\u4F53\u5173\u8054\u8C03\u7528': string;
|
|
287
|
+
'\u8BE5\u8D44\u6E90\u5DF2\u5BF9\u5E73\u53F0\u6240\u6709\u79DF\u6237\u5F00\u653E\uFF0C\u6240\u6709\u79DF\u6237\u7684\u7A7A\u95F4\u5747\u53EF\u4F7F\u7528': string;
|
|
286
288
|
知识类型: string;
|
|
287
289
|
结构化: string;
|
|
288
290
|
非结构化: string;
|
|
@@ -363,6 +365,24 @@ declare const _default: {
|
|
|
363
365
|
'\u9700\u8981\u662F\u82F1\u6587\u5B57\u7B26\u3001\u6570\u5B57\u3001\u4E2D\u5212\u7EBF': string;
|
|
364
366
|
'{label}\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC7{num}': string;
|
|
365
367
|
'\u9700\u8981\u662Fhttp://\u6216\u8005https://\u5F00\u5934\u7684\u5B57\u7B26\u4E32': string;
|
|
368
|
+
需要是数字: string;
|
|
369
|
+
需要是正数: string;
|
|
370
|
+
不能是负数: string;
|
|
366
371
|
系统错误: string;
|
|
372
|
+
关闭: string;
|
|
373
|
+
极低: string;
|
|
374
|
+
低: string;
|
|
375
|
+
中: string;
|
|
376
|
+
高: string;
|
|
377
|
+
超高: string;
|
|
378
|
+
最高: string;
|
|
379
|
+
'\u4E0D\u601D\u8003\uFF0C\u76F4\u63A5\u56DE\u7B54': string;
|
|
380
|
+
'\u51E0\u4E4E\u4E0D\u601D\u8003\uFF0C\u54CD\u5E94\u6700\u5FEB': string;
|
|
381
|
+
'\u7B80\u5355\u601D\u8003\uFF0C\u54CD\u5E94\u8F83\u5FEB': string;
|
|
382
|
+
兼顾思考深度与响应速度: string;
|
|
383
|
+
'\u6DF1\u5165\u601D\u8003\uFF0C\u56DE\u7B54\u66F4\u5468\u5168': string;
|
|
384
|
+
'\u66F4\u6DF1\u5165\u7684\u601D\u8003\uFF0C\u9002\u5408\u590D\u6742\u95EE\u9898': string;
|
|
385
|
+
'\u6700\u5927\u601D\u8003\u6295\u5165\uFF0C\u8017\u65F6\u6700\u957F': string;
|
|
386
|
+
'\u81EA\u52A8\u5237\u65B0\uFF1A{time}': string;
|
|
367
387
|
};
|
|
368
388
|
export default _default;
|
package/dist/i18n/en-US.ts.js
CHANGED
|
@@ -283,6 +283,8 @@ export default {
|
|
|
283
283
|
'该资源由【{currentSpaceName}】空间开放,所有空间可使用': 'This resource is opened by space [{currentSpaceName}] and can be used by all spaces',
|
|
284
284
|
'该智能体可被【{currentSpaceName}】空间或其授权空间智能体关联调用': 'This agent can be linked and invoked by agents in space [{currentSpaceName}] or its authorized spaces',
|
|
285
285
|
'该资源在【{currentSpaceName}】空间或其授权空间可使用': 'This resource can be used in space [{currentSpaceName}] or its authorized spaces',
|
|
286
|
+
'该智能体已对平台所有租户公开,可被所有租户的空间智能体关联调用': 'This agent is public to all tenants of the platform and can be linked and invoked by agents in spaces of all tenants',
|
|
287
|
+
'该资源已对平台所有租户开放,所有租户的空间均可使用': 'This resource is open to all tenants of the platform and can be used in spaces of all tenants',
|
|
286
288
|
知识类型: 'Knowledge Type',
|
|
287
289
|
结构化: 'Structured',
|
|
288
290
|
非结构化: 'Unstructured',
|
|
@@ -363,5 +365,23 @@ export default {
|
|
|
363
365
|
'需要是英文字符、数字、中划线': 'Must contain only English letters, digits, and hyphens',
|
|
364
366
|
'{label}长度不能超过{num}': '{label} cannot exceed {num} characters',
|
|
365
367
|
'需要是http://或者https://开头的字符串': 'Must start with http:// or https://',
|
|
366
|
-
|
|
368
|
+
需要是数字: 'Must be a number',
|
|
369
|
+
需要是正数: 'Must be a positive number',
|
|
370
|
+
不能是负数: 'Cannot be negative',
|
|
371
|
+
系统错误: 'System Error',
|
|
372
|
+
关闭: 'Off',
|
|
373
|
+
极低: 'Minimal',
|
|
374
|
+
低: 'Low',
|
|
375
|
+
中: 'Medium',
|
|
376
|
+
高: 'High',
|
|
377
|
+
超高: 'Extra High',
|
|
378
|
+
最高: 'Max',
|
|
379
|
+
'不思考,直接回答': 'No thinking, answer directly',
|
|
380
|
+
'几乎不思考,响应最快': 'Almost no thinking, fastest response',
|
|
381
|
+
'简单思考,响应较快': 'Light thinking, fast response',
|
|
382
|
+
兼顾思考深度与响应速度: 'Balance between thinking depth and speed',
|
|
383
|
+
'深入思考,回答更周全': 'Deep thinking, more thorough answers',
|
|
384
|
+
'更深入的思考,适合复杂问题': 'Deeper thinking, suitable for complex problems',
|
|
385
|
+
'最大思考投入,耗时最长': 'Maximum thinking effort, longest response time',
|
|
386
|
+
'自动刷新:{time}': 'Auto refresh: {time}'
|
|
367
387
|
};
|
package/dist/i18n/zh-CN.d.ts
CHANGED
|
@@ -283,6 +283,8 @@ declare const _default: {
|
|
|
283
283
|
'\u8BE5\u8D44\u6E90\u7531\u3010{currentSpaceName}\u3011\u7A7A\u95F4\u5F00\u653E\uFF0C\u6240\u6709\u7A7A\u95F4\u53EF\u4F7F\u7528': string;
|
|
284
284
|
'\u8BE5\u667A\u80FD\u4F53\u53EF\u88AB\u3010{currentSpaceName}\u3011\u7A7A\u95F4\u6216\u5176\u6388\u6743\u7A7A\u95F4\u667A\u80FD\u4F53\u5173\u8054\u8C03\u7528': string;
|
|
285
285
|
'\u8BE5\u8D44\u6E90\u5728\u3010{currentSpaceName}\u3011\u7A7A\u95F4\u6216\u5176\u6388\u6743\u7A7A\u95F4\u53EF\u4F7F\u7528': string;
|
|
286
|
+
'\u8BE5\u667A\u80FD\u4F53\u5DF2\u5BF9\u5E73\u53F0\u6240\u6709\u79DF\u6237\u516C\u5F00\uFF0C\u53EF\u88AB\u6240\u6709\u79DF\u6237\u7684\u7A7A\u95F4\u667A\u80FD\u4F53\u5173\u8054\u8C03\u7528': string;
|
|
287
|
+
'\u8BE5\u8D44\u6E90\u5DF2\u5BF9\u5E73\u53F0\u6240\u6709\u79DF\u6237\u5F00\u653E\uFF0C\u6240\u6709\u79DF\u6237\u7684\u7A7A\u95F4\u5747\u53EF\u4F7F\u7528': string;
|
|
286
288
|
知识类型: string;
|
|
287
289
|
结构化: string;
|
|
288
290
|
非结构化: string;
|
|
@@ -363,6 +365,24 @@ declare const _default: {
|
|
|
363
365
|
'\u9700\u8981\u662F\u82F1\u6587\u5B57\u7B26\u3001\u6570\u5B57\u3001\u4E2D\u5212\u7EBF': string;
|
|
364
366
|
'{label}\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC7{num}': string;
|
|
365
367
|
'\u9700\u8981\u662Fhttp://\u6216\u8005https://\u5F00\u5934\u7684\u5B57\u7B26\u4E32': string;
|
|
368
|
+
需要是数字: string;
|
|
369
|
+
需要是正数: string;
|
|
370
|
+
不能是负数: string;
|
|
366
371
|
系统错误: string;
|
|
372
|
+
关闭: string;
|
|
373
|
+
极低: string;
|
|
374
|
+
低: string;
|
|
375
|
+
中: string;
|
|
376
|
+
高: string;
|
|
377
|
+
超高: string;
|
|
378
|
+
最高: string;
|
|
379
|
+
'\u4E0D\u601D\u8003\uFF0C\u76F4\u63A5\u56DE\u7B54': string;
|
|
380
|
+
'\u51E0\u4E4E\u4E0D\u601D\u8003\uFF0C\u54CD\u5E94\u6700\u5FEB': string;
|
|
381
|
+
'\u7B80\u5355\u601D\u8003\uFF0C\u54CD\u5E94\u8F83\u5FEB': string;
|
|
382
|
+
兼顾思考深度与响应速度: string;
|
|
383
|
+
'\u6DF1\u5165\u601D\u8003\uFF0C\u56DE\u7B54\u66F4\u5468\u5168': string;
|
|
384
|
+
'\u66F4\u6DF1\u5165\u7684\u601D\u8003\uFF0C\u9002\u5408\u590D\u6742\u95EE\u9898': string;
|
|
385
|
+
'\u6700\u5927\u601D\u8003\u6295\u5165\uFF0C\u8017\u65F6\u6700\u957F': string;
|
|
386
|
+
'\u81EA\u52A8\u5237\u65B0\uFF1A{time}': string;
|
|
367
387
|
};
|
|
368
388
|
export default _default;
|
package/dist/i18n/zh-CN.ts.js
CHANGED
|
@@ -283,6 +283,8 @@ export default {
|
|
|
283
283
|
'该资源由【{currentSpaceName}】空间开放,所有空间可使用': '该资源由【{currentSpaceName}】空间开放,所有空间可使用',
|
|
284
284
|
'该智能体可被【{currentSpaceName}】空间或其授权空间智能体关联调用': '该智能体可被【{currentSpaceName}】空间或其授权空间智能体关联调用',
|
|
285
285
|
'该资源在【{currentSpaceName}】空间或其授权空间可使用': '该资源在【{currentSpaceName}】空间或其授权空间可使用',
|
|
286
|
+
'该智能体已对平台所有租户公开,可被所有租户的空间智能体关联调用': '该智能体已对平台所有租户公开,可被所有租户的空间智能体关联调用',
|
|
287
|
+
'该资源已对平台所有租户开放,所有租户的空间均可使用': '该资源已对平台所有租户开放,所有租户的空间均可使用',
|
|
286
288
|
知识类型: '知识类型',
|
|
287
289
|
结构化: '结构化',
|
|
288
290
|
非结构化: '非结构化',
|
|
@@ -363,5 +365,23 @@ export default {
|
|
|
363
365
|
'需要是英文字符、数字、中划线': '需要是英文字符、数字、中划线',
|
|
364
366
|
'{label}长度不能超过{num}': '{label}长度不能超过{num}',
|
|
365
367
|
'需要是http://或者https://开头的字符串': '需要是http://或者https://开头的字符串',
|
|
366
|
-
|
|
368
|
+
需要是数字: '需要是数字',
|
|
369
|
+
需要是正数: '需要是正数',
|
|
370
|
+
不能是负数: '不能是负数',
|
|
371
|
+
系统错误: '系统错误',
|
|
372
|
+
关闭: '关闭',
|
|
373
|
+
极低: '极低',
|
|
374
|
+
低: '低',
|
|
375
|
+
中: '中',
|
|
376
|
+
高: '高',
|
|
377
|
+
超高: '超高',
|
|
378
|
+
最高: '最高',
|
|
379
|
+
'不思考,直接回答': '不思考,直接回答',
|
|
380
|
+
'几乎不思考,响应最快': '几乎不思考,响应最快',
|
|
381
|
+
'简单思考,响应较快': '简单思考,响应较快',
|
|
382
|
+
兼顾思考深度与响应速度: '兼顾思考深度与响应速度',
|
|
383
|
+
'深入思考,回答更周全': '深入思考,回答更周全',
|
|
384
|
+
'更深入的思考,适合复杂问题': '更深入的思考,适合复杂问题',
|
|
385
|
+
'最大思考投入,耗时最长': '最大思考投入,耗时最长',
|
|
386
|
+
'自动刷新:{time}': '自动刷新:{time}'
|
|
367
387
|
};
|
package/dist/types/agent.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IBaseCountParam, IBaseCountParamApi, IContent, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi, IVariable, IVariableApi } from './common';
|
|
2
|
-
import { AgentCommandType, AgentCrawType, AgentDeployMode, AgentType, EnumCharacter, GroupType, Module, PromptSource, ResourceStatus, UserScope } from './enum';
|
|
2
|
+
import { AgentCommandType, AgentCrawType, AgentDeployMode, AgentSdkUpgradeMode, AgentType, EnumCharacter, GroupType, Module, PromptSource, ResourceStatus, UserScope } from './enum';
|
|
3
3
|
import type { IKnowledge, IKnowledgeApi, IKnowledgebase, IKnowledgebaseApi, IKnowledgeQuerySetting, IKnowledgeQuerySettingApi } from './knowledge';
|
|
4
4
|
import type { IMcp, IMcpApi } from './mcp';
|
|
5
5
|
import type { ISkill, ISkillApi } from './skill';
|
|
@@ -89,6 +89,7 @@ export interface IAgentFormApi extends IResourceFormCommonApi {
|
|
|
89
89
|
is_bind_bk_saas: boolean;
|
|
90
90
|
is_bind_credential?: boolean;
|
|
91
91
|
deploy_mode?: AgentDeployMode;
|
|
92
|
+
sdk_upgrade_mode: AgentSdkUpgradeMode;
|
|
92
93
|
user_scope?: UserScope;
|
|
93
94
|
flow_setting?: {
|
|
94
95
|
flow_version: string;
|
|
@@ -103,6 +104,9 @@ export interface IAgentFormApi extends IResourceFormCommonApi {
|
|
|
103
104
|
enable_chat_session: boolean;
|
|
104
105
|
enable_word_selection_popup: boolean;
|
|
105
106
|
};
|
|
107
|
+
memory_settings?: {
|
|
108
|
+
enabled: boolean;
|
|
109
|
+
};
|
|
106
110
|
intent_recognition?: {
|
|
107
111
|
knowledges: IKnowledgeApi[];
|
|
108
112
|
topk: number;
|
|
@@ -122,6 +126,7 @@ export interface IAgentFormApi extends IResourceFormCommonApi {
|
|
|
122
126
|
llm_token_limit?: number;
|
|
123
127
|
max_tokens?: number;
|
|
124
128
|
tool_output_compress_thrd?: number;
|
|
129
|
+
reasoning_effort?: string;
|
|
125
130
|
};
|
|
126
131
|
knowledgebase_settings?: {
|
|
127
132
|
knowledgebases: IKnowledgebaseApi[];
|
|
@@ -149,6 +154,7 @@ export interface IAgentForm extends IResourceFormCommon {
|
|
|
149
154
|
isBindBkSaas: boolean;
|
|
150
155
|
isBindCredential?: boolean;
|
|
151
156
|
deployMode?: AgentDeployMode;
|
|
157
|
+
sdkUpgradeMode: AgentSdkUpgradeMode;
|
|
152
158
|
userScope?: UserScope;
|
|
153
159
|
flowSetting?: {
|
|
154
160
|
flowId: number;
|
|
@@ -163,6 +169,9 @@ export interface IAgentForm extends IResourceFormCommon {
|
|
|
163
169
|
enableChatSession: boolean;
|
|
164
170
|
enableWordSelectionPopup: boolean;
|
|
165
171
|
};
|
|
172
|
+
memorySettings?: {
|
|
173
|
+
enabled: boolean;
|
|
174
|
+
};
|
|
166
175
|
intentRecognition?: {
|
|
167
176
|
knowledges: IKnowledge[];
|
|
168
177
|
topk: number;
|
|
@@ -182,6 +191,7 @@ export interface IAgentForm extends IResourceFormCommon {
|
|
|
182
191
|
llmTokenLimit?: number;
|
|
183
192
|
maxTokens?: number;
|
|
184
193
|
toolOutputCompressThrd?: number;
|
|
194
|
+
reasoningEffort?: string;
|
|
185
195
|
};
|
|
186
196
|
knowledgebaseSettings?: {
|
|
187
197
|
knowledgebases: IKnowledgebase[];
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -69,7 +69,8 @@ export declare enum EnumCharacter {
|
|
|
69
69
|
System = "system",
|
|
70
70
|
User = "user",
|
|
71
71
|
Public = "public",
|
|
72
|
-
Space = "space"
|
|
72
|
+
Space = "space",
|
|
73
|
+
Global = "global"
|
|
73
74
|
}
|
|
74
75
|
export declare enum FileStatus {
|
|
75
76
|
Init = "init",
|
|
@@ -327,6 +328,10 @@ export declare enum AgentDeployMode {
|
|
|
327
328
|
CodePackage = "code_package",
|
|
328
329
|
AuthorizedVcs = "authorized_vcs"
|
|
329
330
|
}
|
|
331
|
+
export declare enum AgentSdkUpgradeMode {
|
|
332
|
+
Auto = "auto",
|
|
333
|
+
Subscribe = "subscribe"
|
|
334
|
+
}
|
|
330
335
|
export declare enum PromptSource {
|
|
331
336
|
UserDefine = "user_define",
|
|
332
337
|
Collection = "collection"
|
package/dist/types/enum.ts.js
CHANGED
|
@@ -76,6 +76,7 @@ export var EnumCharacter;
|
|
|
76
76
|
EnumCharacter["User"] = "user";
|
|
77
77
|
EnumCharacter["Public"] = "public";
|
|
78
78
|
EnumCharacter["Space"] = "space";
|
|
79
|
+
EnumCharacter["Global"] = "global";
|
|
79
80
|
})(EnumCharacter || (EnumCharacter = {}));
|
|
80
81
|
export var FileStatus;
|
|
81
82
|
(function(FileStatus) {
|
|
@@ -369,6 +370,11 @@ export var AgentDeployMode;
|
|
|
369
370
|
AgentDeployMode["CodePackage"] = "code_package";
|
|
370
371
|
AgentDeployMode["AuthorizedVcs"] = "authorized_vcs";
|
|
371
372
|
})(AgentDeployMode || (AgentDeployMode = {}));
|
|
373
|
+
export var AgentSdkUpgradeMode;
|
|
374
|
+
(function(AgentSdkUpgradeMode) {
|
|
375
|
+
AgentSdkUpgradeMode["Auto"] = "auto";
|
|
376
|
+
AgentSdkUpgradeMode["Subscribe"] = "subscribe";
|
|
377
|
+
})(AgentSdkUpgradeMode || (AgentSdkUpgradeMode = {}));
|
|
372
378
|
export var PromptSource;
|
|
373
379
|
(function(PromptSource) {
|
|
374
380
|
PromptSource["UserDefine"] = "user_define";
|
package/dist/types/model.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { LLMSupport, ModelSpaceAuthMode } from '@/types/enum';
|
|
2
|
+
export interface IReasoningEffort {
|
|
3
|
+
key: string;
|
|
4
|
+
value: string;
|
|
5
|
+
desc?: string;
|
|
6
|
+
}
|
|
2
7
|
export interface IModel {
|
|
3
8
|
llmCode: string;
|
|
4
9
|
llmName: string;
|
|
@@ -31,6 +36,10 @@ export interface IModel {
|
|
|
31
36
|
default?: boolean;
|
|
32
37
|
isSelfHost?: boolean;
|
|
33
38
|
maxModelLen?: number;
|
|
39
|
+
reasoning?: {
|
|
40
|
+
supportedEfforts: IReasoningEffort[];
|
|
41
|
+
defaultEffort?: string;
|
|
42
|
+
};
|
|
34
43
|
};
|
|
35
44
|
hyperparameters?: {
|
|
36
45
|
temperature?: {
|
|
@@ -92,6 +101,13 @@ export interface IModelApi {
|
|
|
92
101
|
default?: boolean;
|
|
93
102
|
is_self_host?: boolean;
|
|
94
103
|
max_model_len?: number;
|
|
104
|
+
reasoning?: {
|
|
105
|
+
supported_efforts?: IReasoningEffort[];
|
|
106
|
+
levels?: {
|
|
107
|
+
level: string;
|
|
108
|
+
}[];
|
|
109
|
+
default_effort?: string;
|
|
110
|
+
};
|
|
95
111
|
};
|
|
96
112
|
hyperparameters?: {
|
|
97
113
|
temperature?: {
|