@blueking/ai-ui-sdk 0.3.0-beta.9 → 0.4.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/constants.d.ts +1 -0
- package/dist/common/constants.ts.js +1 -0
- package/dist/common/util.d.ts +7 -1
- package/dist/common/util.ts.js +64 -11
- package/dist/components/render-agent/agent-share.script.vue.js.js +1 -1
- 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-auth/auth-dialog.script.vue.js.js +1 -1
- package/dist/components/render-auto-height-textarea/index.script.vue.js.js +3 -2
- 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 +2 -2
- 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/actions.script.vue.js.js +53 -52
- package/dist/components/render-card/agent/actions.vue.d.ts +0 -2
- package/dist/components/render-card/agent/index.script.vue.js.js +3 -3
- package/dist/components/render-card/agent/index.vue.d.ts +1 -1
- package/dist/components/render-card/agent/prefix-info-tool.script.vue.js.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/agent-command/info-tool.script.vue.js.js +4 -4
- package/dist/components/render-card/agent-command/name-suffix.script.vue.js.js +20 -47
- package/dist/components/render-card/base/application-base-actions.script.vue.js.js +1 -1
- package/dist/components/render-card/base/application-base-actions.vue.d.ts +2 -2
- package/dist/components/render-card/base/approval-strategy-popover.script.vue.js.js +209 -0
- package/dist/components/render-card/base/approval-strategy-popover.vue.d.ts +19 -0
- package/dist/components/render-card/base/approval-strategy-popover.vue.js +3 -0
- package/dist/components/render-card/base/reference-icon.script.vue.js.js +13 -6
- package/dist/components/render-card/base.script.vue.js +13 -6
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.d.ts +4 -2
- 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/knowledge/info-tool.script.vue.js.js +2 -2
- package/dist/components/render-card/knowledgebase/index.vue.d.ts +1 -1
- package/dist/components/render-card/knowledgebase/info-tool.script.vue.js.js +1 -1
- package/dist/components/render-card/llm/actions.script.vue.js.js +2 -5
- package/dist/components/render-card/llm/actions.vue.d.ts +0 -2
- package/dist/components/render-card/llm/corner-badge.script.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.script.vue.js.js +7 -9
- 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/index.script.vue.js.js +25 -4
- package/dist/components/render-card/llm/index.vue.d.ts +4 -1
- package/dist/components/render-card/llm/info.script.vue.js.js +4 -3
- 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/actions.script.vue.js.js +11 -7
- package/dist/components/render-card/mcp/actions.vue.d.ts +0 -2
- package/dist/components/render-card/mcp/index.script.vue.js.js +24 -5
- package/dist/components/render-card/mcp/index.vue.d.ts +6 -3
- 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/mcp/prefix-info-tool.script.vue.js.js +1 -1
- package/dist/components/render-card/mcp/selected-tools-info.script.vue.js.js +156 -0
- package/dist/components/render-card/mcp/selected-tools-info.vue.d.ts +26 -0
- package/dist/components/render-card/mcp/selected-tools-info.vue.js +3 -0
- package/dist/components/render-card/prompt/icons.script.vue.js.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/prompt/index.vue.d.ts +1 -1
- package/dist/components/render-card/role/index.vue.d.ts +2 -2
- package/dist/components/render-card/skill/index.script.vue.js.js +28 -6
- package/dist/components/render-card/skill/index.vue.d.ts +4 -2
- package/dist/components/render-card/skill/prefix-info-tool.script.vue.js +112 -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.script.vue.js.js +5 -5
- 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-card/tool/actions.script.vue.js.js +2 -5
- package/dist/components/render-card/tool/actions.vue.d.ts +0 -2
- package/dist/components/render-card/tool/index.script.vue.js.js +15 -8
- package/dist/components/render-card/tool/index.vue.d.ts +5 -2
- package/dist/components/render-card/tool/prefix-info-tool.script.vue.js.js +70 -20
- package/dist/components/render-card/tool/prefix-info-tool.vue.d.ts +4 -0
- 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.script.vue.js.js +7 -2
- 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.script.vue.js.js +2 -2
- 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/actions/index.script.vue.js.js +1 -1
- package/dist/components/render-collection/actions/index.vue.d.ts +2 -2
- 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.script.vue.js.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.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +1 -5
- 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.script.vue.js.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +1 -4
- 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.script.vue.js.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-footer.script.vue.js.js +75 -8
- package/dist/components/render-dialog/choose-resource.script.vue.js +1 -3
- 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 +81 -102
- package/dist/components/render-dialog/choose-space.vue.css +11 -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 +63 -45
- 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.d.ts +1 -1
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.script.vue.js.js +2 -1
- package/dist/components/render-file-type-icon/index.vue.css +8 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.script.vue.js.js +3 -3
- 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.script.vue.js.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.script.vue.js.js +3 -3
- 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-knowledge/search/index.vue.d.ts +1 -1
- package/dist/components/render-knowledgebase/search/index.vue.d.ts +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-markdown/edit.ts.js +20 -20
- package/dist/components/render-markdown/filter-css.d.ts +1 -0
- package/dist/components/render-markdown/filter-css.ts.js +96 -0
- package/dist/components/render-markdown/view.postcss.css +5 -5
- package/dist/components/render-markdown/view.ts.js +5 -91
- package/dist/components/render-mcp/install/index.script.vue.js.js +72 -38
- package/dist/components/render-mcp/install/index.vue.d.ts +4 -2
- package/dist/components/render-mcp/install/install-guide.script.vue.js.js +60 -0
- package/dist/components/render-mcp/install/install-guide.vue.d.ts +11 -0
- package/dist/components/render-mcp/install/install-guide.vue.js +3 -0
- package/dist/components/render-permission-tag/index.script.vue.js +2 -2
- package/dist/components/render-prompt/actions/index.script.vue.js.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-relate-agent/index.script.vue.js +591 -0
- package/dist/components/render-relate-agent/index.vue.d.ts +5 -5
- package/dist/components/render-relate-agent/index.vue.js +1 -1
- package/dist/components/render-resource-info/index.script.vue.js +7 -2
- package/dist/components/render-resource-info/index.vue.d.ts +1 -0
- 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-search-empty/index.vue.d.ts +1 -1
- package/dist/components/render-search-select/index.script.vue.js.js +31 -12
- package/dist/components/render-search-select/index.vue.d.ts +3 -1
- package/dist/components/render-select-plus-extension/index.script.vue.js.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/actions/index.script.vue.js.js +73 -39
- package/dist/components/render-skill/actions/index.vue.d.ts +0 -2
- package/dist/components/render-skill/icons/index.script.vue.js.js +1 -1
- package/dist/components/render-skill/install/index.script.vue.js.js +290 -30
- package/dist/components/render-skill/install/install-guide.script.vue.js.js +58 -0
- package/dist/components/render-skill/install/install-guide.vue.d.ts +10 -0
- package/dist/components/render-skill/install/install-guide.vue.js +3 -0
- package/dist/components/render-skill/install/openclaw-windows-instances.script.vue.js.js +147 -0
- package/dist/components/render-skill/install/openclaw-windows-instances.vue.d.ts +14 -0
- package/dist/components/render-skill/install/openclaw-windows-instances.vue.js +3 -0
- package/dist/components/render-skill/variable-form/index.script.vue.js +114 -0
- package/dist/components/render-skill/variable-form/index.vue.d.ts +15 -0
- package/dist/components/render-skill/variable-form/index.vue.js +3 -0
- package/dist/components/render-t-table/index.script.vue.js +3 -3
- package/dist/components/render-t-table/index.vue.css +27 -28
- 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 +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.vue.d.ts +1 -1
- package/dist/components.d.ts +3 -1
- package/dist/components.ts.js +3 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +102 -0
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/g-utilities.css +285 -2
- package/dist/css/g-utilities.manifest.json +60 -1
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +102 -0
- package/dist/hooks/use-agent-http.d.ts +7 -2
- package/dist/hooks/use-agent-http.ts.js +17 -6
- package/dist/hooks/use-chat.d.ts +4 -0
- package/dist/hooks/use-click-proxy.ts.js +1 -3
- package/dist/hooks/use-clickoutside.d.ts +3 -0
- package/dist/hooks/use-clickoutside.ts.js +28 -0
- package/dist/hooks/use-collection-http.d.ts +5 -2
- package/dist/hooks/use-collection-http.ts.js +4 -3
- package/dist/hooks/use-dataset-http.ts.js +2 -2
- 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 +9 -2
- package/dist/hooks/use-mcp-http.ts.js +20 -5
- package/dist/hooks/use-prompt-http.d.ts +5 -2
- package/dist/hooks/use-prompt-http.ts.js +4 -3
- package/dist/hooks/use-scroll-load.d.ts +3 -1
- package/dist/hooks/use-scroll-load.ts.js +12 -2
- package/dist/hooks/use-skill-http.d.ts +21 -6
- package/dist/hooks/use-skill-http.ts.js +53 -6
- package/dist/hooks/use-space-http.d.ts +2 -1
- package/dist/hooks/use-space-http.ts.js +7 -1
- package/dist/hooks/use-tool-http.d.ts +5 -2
- package/dist/hooks/use-tool-http.ts.js +4 -3
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.ts.js +1 -0
- package/dist/http/helper/agent.d.ts +20 -1
- package/dist/http/helper/agent.ts.js +47 -6
- package/dist/http/helper/collection.ts.js +2 -2
- package/dist/http/helper/common.d.ts +17 -4
- package/dist/http/helper/common.ts.js +18 -2
- package/dist/http/helper/dataset.ts.js +1 -0
- package/dist/http/helper/knowledge.ts.js +2 -3
- package/dist/http/helper/mcp.d.ts +3 -1
- package/dist/http/helper/mcp.ts.js +17 -7
- package/dist/http/helper/model.ts.js +4 -1
- package/dist/http/helper/prompt.ts.js +2 -2
- package/dist/http/helper/skill.d.ts +16 -1
- package/dist/http/helper/skill.ts.js +76 -5
- package/dist/http/helper/space.d.ts +13 -1
- package/dist/http/helper/space.ts.js +24 -0
- package/dist/http/helper/tool.ts.js +4 -4
- package/dist/types/agent.d.ts +34 -0
- package/dist/types/common.d.ts +15 -7
- package/dist/types/dataset.d.ts +4 -0
- package/dist/types/enum.d.ts +25 -0
- package/dist/types/enum.ts.js +29 -0
- package/dist/types/mcp.d.ts +24 -4
- package/dist/types/model.d.ts +6 -0
- package/dist/types/navigate.d.ts +1 -0
- package/dist/types/skill.d.ts +106 -5
- package/dist/types/space.d.ts +11 -1
- package/dist/types/tool.d.ts +3 -3
- package/dist/util.d.ts +1 -0
- package/dist/util.ts.js +1 -0
- package/package.json +3 -2
- package/dist/components/render-relate-agent/index.script.vue.js.js +0 -454
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IMcp, IMcpApi, IMcpCountParam, IMcpCountParamApi, IMcpForm, IMcpFormApi, IMcpListParam, IMcpListParamApi, IMcpTool, IMcpToolApi, IMcpToolInputParam, IMcpToolInputParamApi, IMcpToolOutputParam, IMcpToolOutputParamApi, IRegisterMcpParam, IRegisterMcpParamApi } from '@/types/mcp';
|
|
1
|
+
import type { IMcp, IMcpApi, IMcpCountParam, IMcpCountParamApi, IMcpForm, IMcpFormApi, IMcpInstallGuideParam, IMcpInstallGuideParamApi, IMcpInstallTarget, IMcpInstallTargetApi, IMcpListParam, IMcpListParamApi, IMcpTool, IMcpToolApi, IMcpToolInputParam, IMcpToolInputParamApi, IMcpToolOutputParam, IMcpToolOutputParamApi, IRegisterMcpParam, IRegisterMcpParamApi } from '@/types/mcp';
|
|
2
2
|
/**
|
|
3
3
|
* ui转换为接口使用
|
|
4
4
|
* @param data IMcpListParam
|
|
@@ -60,3 +60,5 @@ export declare const transferMcp2McpApi: (data: IMcp) => IMcpApi;
|
|
|
60
60
|
*/
|
|
61
61
|
export declare const transferRegisterMcpParam2RegisterMcpParamApi: (data: IRegisterMcpParam) => IRegisterMcpParamApi;
|
|
62
62
|
export declare const transferMcpCount2McpCountApi: (data: IMcpCountParam) => IMcpCountParamApi;
|
|
63
|
+
export declare const transferMcpInstallGuideParam2McpInstallGuideParamApi: (data: IMcpInstallGuideParam) => IMcpInstallGuideParamApi;
|
|
64
|
+
export declare const transferMcpInstallTargetApi2McpInstallTarget: (data: IMcpInstallTargetApi) => IMcpInstallTarget;
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import {
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue2IApprovalSettingValueApi, transferIApprovalSettingValueApi2IApprovalSettingValue, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
54
|
/**
|
|
55
55
|
* ui转换为接口使用
|
|
56
56
|
* @param data IMcpListParam
|
|
@@ -98,14 +98,14 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
98
98
|
* API to UI (MCP Tool)
|
|
99
99
|
*/ export const transferMcpToolApi2McpTool = (mcpTool)=>{
|
|
100
100
|
var _mcpTool_input_params, _mcpTool_output_params;
|
|
101
|
-
return {
|
|
101
|
+
return _object_spread({
|
|
102
102
|
toolName: mcpTool.tool_name,
|
|
103
103
|
toolCode: mcpTool.tool_code,
|
|
104
104
|
toolDescription: mcpTool.tool_description,
|
|
105
105
|
inputParams: ((_mcpTool_input_params = mcpTool.input_params) === null || _mcpTool_input_params === void 0 ? void 0 : _mcpTool_input_params.map(transferMcpToolInputParamApi2McpToolInputParam)) || [],
|
|
106
106
|
outputParams: ((_mcpTool_output_params = mcpTool.output_params) === null || _mcpTool_output_params === void 0 ? void 0 : _mcpTool_output_params.map(transferMcpToolOutputParamApi2McpToolOutputParam)) || [],
|
|
107
107
|
arguments: mcpTool.arguments
|
|
108
|
-
};
|
|
108
|
+
}, transferIApprovalSettingValueApi2IApprovalSettingValue(mcpTool));
|
|
109
109
|
};
|
|
110
110
|
/**
|
|
111
111
|
* ui转换为接口使用(MCP工具输入参数)
|
|
@@ -134,14 +134,14 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
134
134
|
* UI to API (MCP Tool)
|
|
135
135
|
*/ export const transferMcpTool2McpToolApi = (mcpTool)=>{
|
|
136
136
|
var _mcpTool_inputParams, _mcpTool_outputParams;
|
|
137
|
-
return {
|
|
137
|
+
return _object_spread({
|
|
138
138
|
tool_name: mcpTool.toolName,
|
|
139
139
|
tool_code: mcpTool.toolCode,
|
|
140
140
|
tool_description: mcpTool.toolDescription,
|
|
141
141
|
input_params: ((_mcpTool_inputParams = mcpTool.inputParams) === null || _mcpTool_inputParams === void 0 ? void 0 : _mcpTool_inputParams.map(transferMcpToolInputParam2McpToolInputParamApi)) || [],
|
|
142
142
|
output_params: ((_mcpTool_outputParams = mcpTool.outputParams) === null || _mcpTool_outputParams === void 0 ? void 0 : _mcpTool_outputParams.map(transferMcpToolOutputParam2McpToolOutputParamApi)) || [],
|
|
143
143
|
arguments: mcpTool.arguments
|
|
144
|
-
};
|
|
144
|
+
}, transferIApprovalSettingValue2IApprovalSettingValueApi(mcpTool));
|
|
145
145
|
};
|
|
146
146
|
/**
|
|
147
147
|
* 接口转换为ui使用(表单字段)
|
|
@@ -217,7 +217,17 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
217
217
|
}))
|
|
218
218
|
});
|
|
219
219
|
export const transferMcpCount2McpCountApi = (data)=>{
|
|
220
|
-
return _object_spread_props(_object_spread({},
|
|
221
|
-
with_apigw_mcp: data.withApigwMcp
|
|
220
|
+
return _object_spread_props(_object_spread({}, transferBaseCountParam2BaseCountParamApi(data)), {
|
|
221
|
+
with_apigw_mcp: data.withApigwMcp,
|
|
222
|
+
agent_code: data.agentCode
|
|
222
223
|
});
|
|
223
224
|
};
|
|
225
|
+
export const transferMcpInstallGuideParam2McpInstallGuideParamApi = (data)=>({
|
|
226
|
+
target_type: data.targetType,
|
|
227
|
+
mcp_type: data.mcpType,
|
|
228
|
+
mcp_id: data.mcpId
|
|
229
|
+
});
|
|
230
|
+
export const transferMcpInstallTargetApi2McpInstallTarget = (data)=>({
|
|
231
|
+
targetType: data.target_type,
|
|
232
|
+
displayName: data.display_name
|
|
233
|
+
});
|
|
@@ -8,6 +8,7 @@ export const transferModelApi2Model = (data)=>({
|
|
|
8
8
|
baseModel: data.base_model,
|
|
9
9
|
contextLength: data.context_length,
|
|
10
10
|
activatedParams: data.activated_params,
|
|
11
|
+
trainingParams: data.training_params,
|
|
11
12
|
createdBy: data.created_by,
|
|
12
13
|
createdAt: data.created_at,
|
|
13
14
|
updatedBy: data.updated_by,
|
|
@@ -17,6 +18,7 @@ export const transferModelApi2Model = (data)=>({
|
|
|
17
18
|
like: data.like,
|
|
18
19
|
dislikeCount: data.dislike_count,
|
|
19
20
|
dislike: data.dislike,
|
|
21
|
+
refCount: data.ref_count,
|
|
20
22
|
spaceAuthMode: data.space_auth_mode,
|
|
21
23
|
property: data.property ? {
|
|
22
24
|
onlyUserAssistant: data.property.only_user_assistant,
|
|
@@ -26,7 +28,8 @@ export const transferModelApi2Model = (data)=>({
|
|
|
26
28
|
supportThinking: data.property.support_thinking,
|
|
27
29
|
supportThinkingQuick: data.property.support_thinking_quick,
|
|
28
30
|
default: data.property.default,
|
|
29
|
-
isSelfHost: data.property.is_self_host
|
|
31
|
+
isSelfHost: data.property.is_self_host,
|
|
32
|
+
maxModelLen: data.property.max_model_len
|
|
30
33
|
} : undefined,
|
|
31
34
|
hyperparameters: data.hyperparameters ? {
|
|
32
35
|
temperature: data.hyperparameters.temperature,
|
|
@@ -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
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ISkill, ISkillApi, ISkillCountParam, ISkillCountParamApi, ISkillForm, ISkillFormApi, ISkillListParam, ISkillListParamApi } from '@/types/skill';
|
|
1
|
+
import type { ISkill, ISkillApi, ISkillBuildLog, ISkillBuildLogApi, ISkillCountParam, ISkillCountParamApi, ISkillForm, ISkillFormApi, ISkillInstallGuide, ISkillInstallGuideApi, ISkillInstallTarget, ISkillInstallTargetApi, ISkillListParam, ISkillListParamApi, ISkillOpenclawWindowsInstallParam, ISkillOpenclawWindowsInstallParamApi, ISkillOpenclawWindowsInstallTasks, ISkillOpenclawWindowsInstallTasksApi, ISkillOpenclawWindowsInstallTaskStatusParam, ISkillOpenclawWindowsInstallTaskStatusParamApi, ISkillOpenclawWindowsInstance, ISkillOpenclawWindowsInstanceApi, ISkillOpenclawWindowsInstanceStatusMap, ISkillOpenclawWindowsInstanceStatusMapApi, ISkillOpenclawWindowsInstanceStatusParam, ISkillOpenclawWindowsInstanceStatusParamApi } from '@/types/skill';
|
|
2
2
|
/**
|
|
3
3
|
* ui转换为接口使用(表单字段)
|
|
4
4
|
* @param data ISkillForm
|
|
@@ -24,9 +24,24 @@ export declare const transferSkillApi2Skill: (data: ISkillApi) => ISkill;
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const transferSkill2SkillApi: (data: ISkill) => ISkillApi;
|
|
26
26
|
export declare const transferSkillCount2SkillCountApi: (data: ISkillCountParam) => ISkillCountParamApi;
|
|
27
|
+
/**
|
|
28
|
+
* 接口转换为ui使用(构建日志)
|
|
29
|
+
* @param data ISkillBuildLogApi
|
|
30
|
+
* @returns ISkillBuildLog
|
|
31
|
+
*/
|
|
32
|
+
export declare const transferSkillBuildLogApi2SkillBuildLog: (data: ISkillBuildLogApi) => ISkillBuildLog;
|
|
27
33
|
/**
|
|
28
34
|
* ui转换为接口使用
|
|
29
35
|
* @param data ISkillListParam
|
|
30
36
|
* @returns ISkillListParamApi
|
|
31
37
|
*/
|
|
32
38
|
export declare const transferSkillParam2SkillParamApi: (data: ISkillListParam) => ISkillListParamApi;
|
|
39
|
+
export declare const transferSkillInstallGuide2SkillInstallGuideApi: (data: ISkillInstallGuide) => ISkillInstallGuideApi;
|
|
40
|
+
export declare const transferSkillInstallTargetApi2SkillInstallTarget: (data: ISkillInstallTargetApi) => ISkillInstallTarget;
|
|
41
|
+
export declare const transferSkillOpenclawWindowsInstanceApi2SkillOpenclawWindowsInstance: (data: ISkillOpenclawWindowsInstanceApi) => ISkillOpenclawWindowsInstance;
|
|
42
|
+
export declare const transferSkillOpenclawWindowsInstance2SkillOpenclawWindowsInstanceApi: (data: ISkillOpenclawWindowsInstance) => ISkillOpenclawWindowsInstanceApi;
|
|
43
|
+
export declare const transferSkillOpenclawWindowsInstallParam2SkillOpenclawWindowsInstallParamApi: (data: ISkillOpenclawWindowsInstallParam) => ISkillOpenclawWindowsInstallParamApi;
|
|
44
|
+
export declare const transferSkillOpenclawWindowsInstallTasksApi2SkillOpenclawWindowsInstallTasks: (data: ISkillOpenclawWindowsInstallTasksApi) => ISkillOpenclawWindowsInstallTasks;
|
|
45
|
+
export declare const transferSkillOpenclawWindowsInstallTaskStatusParam2SkillOpenclawWindowsInstallTaskStatusParamApi: (data: ISkillOpenclawWindowsInstallTaskStatusParam) => ISkillOpenclawWindowsInstallTaskStatusParamApi;
|
|
46
|
+
export declare const transferSkillOpenclawWindowsInstanceStatusParam2SkillOpenclawWindowsInstanceStatusParamApi: (data: ISkillOpenclawWindowsInstanceStatusParam) => ISkillOpenclawWindowsInstanceStatusParamApi;
|
|
47
|
+
export declare const transferSkillOpenclawWindowsInstanceStatusMapApi2SkillOpenclawWindowsInstanceStatusMap: (data: ISkillOpenclawWindowsInstanceStatusMapApi) => ISkillOpenclawWindowsInstanceStatusMap;
|
|
@@ -83,7 +83,11 @@ 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)), {
|
|
89
|
+
latestStatus: data.latest_status,
|
|
90
|
+
latestVersion: data.latest_version,
|
|
87
91
|
skillMarkdown: data.skill_markdown,
|
|
88
92
|
downloadCount: data.download_count,
|
|
89
93
|
installCount: data.install_count,
|
|
@@ -93,13 +97,22 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
93
97
|
effectiveStatusCn: data.scanner.effective_status_cn,
|
|
94
98
|
lastScanAt: data.scanner.last_scan_at,
|
|
95
99
|
reportContent: data.scanner.report_content
|
|
96
|
-
} : 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
|
|
97
105
|
});
|
|
106
|
+
};
|
|
98
107
|
/**
|
|
99
108
|
* ui转换为接口使用(完整资源)
|
|
100
109
|
* @param data ISkill
|
|
101
110
|
* @returns ISkillApi
|
|
102
|
-
*/ export const transferSkill2SkillApi = (data)=>
|
|
111
|
+
*/ export const transferSkill2SkillApi = (data)=>{
|
|
112
|
+
var _data_bkaiDependencies;
|
|
113
|
+
return _object_spread_props(_object_spread({}, transferSkillForm2SkillFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
114
|
+
latest_status: data.latestStatus,
|
|
115
|
+
latest_version: data.latestVersion,
|
|
103
116
|
skill_markdown: data.skillMarkdown,
|
|
104
117
|
download_count: data.downloadCount,
|
|
105
118
|
install_count: data.installCount,
|
|
@@ -108,17 +121,32 @@ import { transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortP
|
|
|
108
121
|
effective_status_cn: data.scanner.effectiveStatusCn,
|
|
109
122
|
last_scan_at: data.scanner.lastScanAt,
|
|
110
123
|
report_content: data.scanner.reportContent
|
|
111
|
-
} : 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
|
|
112
129
|
});
|
|
130
|
+
};
|
|
113
131
|
export const transferSkillCount2SkillCountApi = (data)=>{
|
|
114
132
|
return {
|
|
115
|
-
space_ids: data.spaceIds,
|
|
116
133
|
with_private: data.withPrivate,
|
|
117
134
|
can_apply: data.canApply,
|
|
118
135
|
space_name: data.spaceName,
|
|
119
136
|
created_by: data.createdBy
|
|
120
137
|
};
|
|
121
138
|
};
|
|
139
|
+
/**
|
|
140
|
+
* 接口转换为ui使用(构建日志)
|
|
141
|
+
* @param data ISkillBuildLogApi
|
|
142
|
+
* @returns ISkillBuildLog
|
|
143
|
+
*/ export const transferSkillBuildLogApi2SkillBuildLog = (data)=>({
|
|
144
|
+
status: data.status,
|
|
145
|
+
buildLogs: data.build_logs,
|
|
146
|
+
errorMessage: data.error_message,
|
|
147
|
+
startedAt: data.started_at,
|
|
148
|
+
completedAt: data.completed_at
|
|
149
|
+
});
|
|
122
150
|
/**
|
|
123
151
|
* ui转换为接口使用
|
|
124
152
|
* @param data ISkillListParam
|
|
@@ -135,3 +163,46 @@ export const transferSkillCount2SkillCountApi = (data)=>{
|
|
|
135
163
|
can_apply: data.canApply,
|
|
136
164
|
space_id: data.spaceId
|
|
137
165
|
});
|
|
166
|
+
export const transferSkillInstallGuide2SkillInstallGuideApi = (data)=>({
|
|
167
|
+
target_type: data.targetType
|
|
168
|
+
});
|
|
169
|
+
export const transferSkillInstallTargetApi2SkillInstallTarget = (data)=>({
|
|
170
|
+
targetType: data.target_type,
|
|
171
|
+
displayName: data.display_name
|
|
172
|
+
});
|
|
173
|
+
export const transferSkillOpenclawWindowsInstanceApi2SkillOpenclawWindowsInstance = (data)=>({
|
|
174
|
+
displayName: data.display_name,
|
|
175
|
+
hostName: data.host_name,
|
|
176
|
+
hostDescription: data.host_description
|
|
177
|
+
});
|
|
178
|
+
export const transferSkillOpenclawWindowsInstance2SkillOpenclawWindowsInstanceApi = (data)=>({
|
|
179
|
+
display_name: data.displayName,
|
|
180
|
+
host_name: data.hostName,
|
|
181
|
+
host_description: data.hostDescription
|
|
182
|
+
});
|
|
183
|
+
export const transferSkillOpenclawWindowsInstallParam2SkillOpenclawWindowsInstallParamApi = (data)=>({
|
|
184
|
+
skill_id: data.skillId,
|
|
185
|
+
workspaces: data.workspaces.map(transferSkillOpenclawWindowsInstance2SkillOpenclawWindowsInstanceApi)
|
|
186
|
+
});
|
|
187
|
+
export const transferSkillOpenclawWindowsInstallTasksApi2SkillOpenclawWindowsInstallTasks = (data)=>{
|
|
188
|
+
return Object.entries(data).reduce((result, [hostName, task])=>_object_spread_props(_object_spread({}, result), {
|
|
189
|
+
[hostName]: {
|
|
190
|
+
taskId: task.task_id,
|
|
191
|
+
taskName: task.task_name
|
|
192
|
+
}
|
|
193
|
+
}), {});
|
|
194
|
+
};
|
|
195
|
+
export const transferSkillOpenclawWindowsInstallTaskStatusParam2SkillOpenclawWindowsInstallTaskStatusParamApi = (data)=>({
|
|
196
|
+
task_ids: data.taskIds
|
|
197
|
+
});
|
|
198
|
+
export const transferSkillOpenclawWindowsInstanceStatusParam2SkillOpenclawWindowsInstanceStatusParamApi = (data)=>({
|
|
199
|
+
skill_id: data.skillId,
|
|
200
|
+
workspaces: data.workspaces.map(transferSkillOpenclawWindowsInstance2SkillOpenclawWindowsInstanceApi)
|
|
201
|
+
});
|
|
202
|
+
export const transferSkillOpenclawWindowsInstanceStatusMapApi2SkillOpenclawWindowsInstanceStatusMap = (data)=>{
|
|
203
|
+
return Object.entries(data).reduce((result, [hostName, status])=>_object_spread_props(_object_spread({}, result), {
|
|
204
|
+
[hostName]: {
|
|
205
|
+
isInstalled: status.is_installed
|
|
206
|
+
}
|
|
207
|
+
}), {});
|
|
208
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IResourcesRemoveApplication, IUsableSpace, IUsableSpaceApi, IUsableSpaceParam, IUsableSpaceParamApi } from '@/types/space';
|
|
1
|
+
import type { IResourceAuthorizedSpacesParam, IResourceAuthorizedSpacesParamApi, IResourcesRemoveApplication, ISpace, ISpaceApi, IUsableSpace, IUsableSpaceApi, IUsableSpaceParam, IUsableSpaceParamApi } from '@/types/space';
|
|
2
2
|
/**
|
|
3
3
|
* ui转换为接口
|
|
4
4
|
* @param data IResourcesRemoveApplication
|
|
@@ -20,3 +20,15 @@ export declare const transferUsableSpaceParam2UsableSpaceParamApi: (data: IUsabl
|
|
|
20
20
|
* @returns IUsableSpace
|
|
21
21
|
*/
|
|
22
22
|
export declare const transferUsableSpaceApi2UsableSpace: (data: IUsableSpaceApi) => IUsableSpace;
|
|
23
|
+
/**
|
|
24
|
+
* 接口转换为ui
|
|
25
|
+
* @param data ISpaceApi
|
|
26
|
+
* @returns ISpace
|
|
27
|
+
*/
|
|
28
|
+
export declare const transferSpaceApi2Space: (data: ISpaceApi) => ISpace;
|
|
29
|
+
/**
|
|
30
|
+
* ui转换为接口
|
|
31
|
+
* @param data IResourceAuthorizedSpacesParam
|
|
32
|
+
* @returns IResourceAuthorizedSpacesParamApi
|
|
33
|
+
*/
|
|
34
|
+
export declare const transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi: (data: IResourceAuthorizedSpacesParam) => IResourceAuthorizedSpacesParamApi;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { transferResourcePermissionApi2ResourcePermission } from './permission.ts.js';
|
|
1
2
|
/**
|
|
2
3
|
* ui转换为接口
|
|
3
4
|
* @param data IResourcesRemoveApplication
|
|
@@ -24,3 +25,26 @@
|
|
|
24
25
|
spaceCode: data.space_code,
|
|
25
26
|
spaceName: data.space_name
|
|
26
27
|
});
|
|
28
|
+
/**
|
|
29
|
+
* 接口转换为ui
|
|
30
|
+
* @param data ISpaceApi
|
|
31
|
+
* @returns ISpace
|
|
32
|
+
*/ export const transferSpaceApi2Space = (data)=>({
|
|
33
|
+
spaceId: data.space_id,
|
|
34
|
+
spaceName: data.space_name,
|
|
35
|
+
spaceCode: data.space_code,
|
|
36
|
+
spaceDesc: data.space_desc,
|
|
37
|
+
favorite: data.favorite,
|
|
38
|
+
isDefault: data.is_default,
|
|
39
|
+
iamGradeManagerMembers: data.iam_grade_manager_members,
|
|
40
|
+
permission: transferResourcePermissionApi2ResourcePermission(data.permission)
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* ui转换为接口
|
|
44
|
+
* @param data IResourceAuthorizedSpacesParam
|
|
45
|
+
* @returns IResourceAuthorizedSpacesParamApi
|
|
46
|
+
*/ export const transferResourceAuthorizedSpacesParam2ResourceAuthorizedSpacesParamApi = (data)=>({
|
|
47
|
+
resource_type: data.resourceType,
|
|
48
|
+
resource_id: data.resourceId,
|
|
49
|
+
mcp_type: data.mcpType
|
|
50
|
+
});
|
|
@@ -50,7 +50,7 @@ function _object_spread_props(target, source) {
|
|
|
50
50
|
}
|
|
51
51
|
return target;
|
|
52
52
|
}
|
|
53
|
-
import {
|
|
53
|
+
import { transferBaseCountParam2BaseCountParamApi, transferIApprovalSettingValue2IApprovalSettingValueApi, transferIApprovalSettingValueApi2IApprovalSettingValue, transferIPaginationParam2IPaginationParamApi, transferISortParam2ISortParamApi, transferResourceCommon2ResourceCommonApi, transferResourceCommonApi2ResourceCommon, transferResourceCommonSearchParams2ResourceCommonSearchParamsApi, transferResourceFormCommon2ResourceFormCommonApi, transferResourceFormCommonApi2ResourceFormCommon } from './common.ts.js';
|
|
54
54
|
/**
|
|
55
55
|
* ui转换为接口使用(表单字段)
|
|
56
56
|
* @param data IToolForm
|
|
@@ -93,7 +93,7 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
93
93
|
* @returns ITool
|
|
94
94
|
*/ export const transferToolApi2Tool = (data)=>_object_spread_props(_object_spread({}, transferToolFormApi2ToolForm(data), transferResourceCommonApi2ResourceCommon(_object_spread_props(_object_spread({}, data), {
|
|
95
95
|
id: data.tool_id
|
|
96
|
-
}))), {
|
|
96
|
+
})), transferIApprovalSettingValueApi2IApprovalSettingValue(data)), {
|
|
97
97
|
id: data.tool_id,
|
|
98
98
|
refCount: data.ref_count
|
|
99
99
|
});
|
|
@@ -101,7 +101,7 @@ import { transferBaseCount2BaseCountApi, transferIPaginationParam2IPaginationPar
|
|
|
101
101
|
* ui转换为接口使用(完整资源)
|
|
102
102
|
* @param data ITool
|
|
103
103
|
* @returns IToolApi
|
|
104
|
-
*/ export const transferTool2ToolApi = (data)=>_object_spread_props(_object_spread({}, transferToolForm2ToolFormApi(data), transferResourceCommon2ResourceCommonApi(data)), {
|
|
104
|
+
*/ export const transferTool2ToolApi = (data)=>_object_spread_props(_object_spread({}, transferToolForm2ToolFormApi(data), transferResourceCommon2ResourceCommonApi(data), transferIApprovalSettingValue2IApprovalSettingValueApi(data)), {
|
|
105
105
|
tool_id: data.id
|
|
106
106
|
});
|
|
107
107
|
/**
|
|
@@ -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/agent.d.ts
CHANGED
|
@@ -173,6 +173,8 @@ export interface IAgentFormApi extends IResourceFormCommonApi {
|
|
|
173
173
|
related_agents?: {
|
|
174
174
|
agents: IAgentApi[];
|
|
175
175
|
};
|
|
176
|
+
business_ids?: number[];
|
|
177
|
+
approval_settings?: IApprovalSettingApi[];
|
|
176
178
|
}
|
|
177
179
|
export interface IAgentForm extends IResourceFormCommon {
|
|
178
180
|
agentCode: string;
|
|
@@ -229,6 +231,8 @@ export interface IAgentForm extends IResourceFormCommon {
|
|
|
229
231
|
relatedAgents?: {
|
|
230
232
|
agents: IAgent[];
|
|
231
233
|
};
|
|
234
|
+
businessIds?: number[];
|
|
235
|
+
approvalSettings?: IApprovalSetting[];
|
|
232
236
|
}
|
|
233
237
|
export interface IAgent extends IAgentForm, IResourceCommon {
|
|
234
238
|
version: string;
|
|
@@ -321,10 +325,28 @@ export interface IAgentListParamApi extends IPaginationParamApi, IResourceCommon
|
|
|
321
325
|
export interface IResourceApply {
|
|
322
326
|
resourceType: Module;
|
|
323
327
|
resourceCode: string;
|
|
328
|
+
status?: ResourceStatus;
|
|
324
329
|
}
|
|
325
330
|
export interface IResourceApplyApi {
|
|
326
331
|
resource_type: Module;
|
|
327
332
|
resource_code: string;
|
|
333
|
+
status?: ResourceStatus;
|
|
334
|
+
}
|
|
335
|
+
export interface IAgentApigwMcpPermission {
|
|
336
|
+
status: ResourceStatus;
|
|
337
|
+
hasPermission: boolean;
|
|
338
|
+
mcpCode: string;
|
|
339
|
+
mcpName?: string;
|
|
340
|
+
url?: string;
|
|
341
|
+
protocolType?: string;
|
|
342
|
+
}
|
|
343
|
+
export interface IAgentApigwMcpPermissionApi {
|
|
344
|
+
status: ResourceStatus;
|
|
345
|
+
has_permission: boolean;
|
|
346
|
+
mcp_code: string;
|
|
347
|
+
mcp_name?: string;
|
|
348
|
+
url?: string;
|
|
349
|
+
protocol_type?: string;
|
|
328
350
|
}
|
|
329
351
|
export interface IAgentCountParam extends IBaseCountParam {
|
|
330
352
|
excludeAgentId?: number;
|
|
@@ -336,3 +358,15 @@ export interface IAgentCountParamApi extends IBaseCountParamApi {
|
|
|
336
358
|
agent_type?: AgentType;
|
|
337
359
|
is_published?: boolean;
|
|
338
360
|
}
|
|
361
|
+
export interface IApprovalSetting {
|
|
362
|
+
strategyId: string;
|
|
363
|
+
approvalName: string;
|
|
364
|
+
approvers: string[];
|
|
365
|
+
isDefault: boolean;
|
|
366
|
+
}
|
|
367
|
+
export interface IApprovalSettingApi {
|
|
368
|
+
strategy_id: string;
|
|
369
|
+
approval_name: string;
|
|
370
|
+
approvers: string[];
|
|
371
|
+
is_default: boolean;
|
|
372
|
+
}
|
package/dist/types/common.d.ts
CHANGED
|
@@ -99,25 +99,25 @@ export interface IResourceFormCommonApi {
|
|
|
99
99
|
is_public: boolean;
|
|
100
100
|
description: string;
|
|
101
101
|
}
|
|
102
|
-
export interface IResourceCommon {
|
|
102
|
+
export interface IResourceCommon<T = ResourceStatus> {
|
|
103
103
|
id: number;
|
|
104
104
|
createdBy: string;
|
|
105
105
|
createdAt: string;
|
|
106
106
|
updatedBy: string;
|
|
107
107
|
updatedAt: string;
|
|
108
|
-
status?:
|
|
108
|
+
status?: T;
|
|
109
109
|
spaceId?: string;
|
|
110
110
|
approvers?: string[];
|
|
111
111
|
ticketUrl?: string;
|
|
112
112
|
permission: IResourcePermission;
|
|
113
113
|
}
|
|
114
|
-
export interface IResourceCommonApi {
|
|
114
|
+
export interface IResourceCommonApi<T = ResourceStatus> {
|
|
115
115
|
id: number;
|
|
116
116
|
created_by: string;
|
|
117
117
|
created_at?: string;
|
|
118
118
|
updated_by: string;
|
|
119
119
|
updated_at: string;
|
|
120
|
-
status?:
|
|
120
|
+
status?: T;
|
|
121
121
|
space_id: string;
|
|
122
122
|
approvers?: string[];
|
|
123
123
|
ticket_url?: string;
|
|
@@ -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;
|
|
@@ -226,3 +226,11 @@ export interface IResourceReferenceApi {
|
|
|
226
226
|
mcp_id: number;
|
|
227
227
|
mcp_name: string;
|
|
228
228
|
}
|
|
229
|
+
export interface IApprovalSettingValue {
|
|
230
|
+
approvalEnabled?: boolean;
|
|
231
|
+
approvalStrategyId?: string;
|
|
232
|
+
}
|
|
233
|
+
export interface IApprovalSettingValueApi {
|
|
234
|
+
approval_enabled?: boolean;
|
|
235
|
+
approval_strategy_id?: string;
|
|
236
|
+
}
|
package/dist/types/dataset.d.ts
CHANGED
|
@@ -151,6 +151,7 @@ export interface IDatasetData extends IDatasetDataForm {
|
|
|
151
151
|
id: number;
|
|
152
152
|
}
|
|
153
153
|
export interface IDatasetDataParam extends IPaginationParam, ISortParam {
|
|
154
|
+
fuzzy?: string;
|
|
154
155
|
datasetId?: number;
|
|
155
156
|
createdBy?: string;
|
|
156
157
|
modelType?: string;
|
|
@@ -162,6 +163,7 @@ export interface IDatasetDataParam extends IPaginationParam, ISortParam {
|
|
|
162
163
|
reviewStatuses?: DatasetDataReviewStatus[];
|
|
163
164
|
}
|
|
164
165
|
export interface IDatasetDataParamApi extends IPaginationParamApi, ISortParamApi {
|
|
166
|
+
fuzzy?: string;
|
|
165
167
|
dataset_id?: number;
|
|
166
168
|
created_by?: string;
|
|
167
169
|
model_type?: string;
|
|
@@ -219,6 +221,7 @@ export interface ISchema {
|
|
|
219
221
|
schema: Record<string, string>;
|
|
220
222
|
}
|
|
221
223
|
export interface IOperatRecordParam extends IPaginationParam {
|
|
224
|
+
fuzzy?: string;
|
|
222
225
|
id?: number;
|
|
223
226
|
instanceId?: number;
|
|
224
227
|
parentId?: number;
|
|
@@ -233,6 +236,7 @@ export interface IOperatRecordParam extends IPaginationParam {
|
|
|
233
236
|
instanceData?: string;
|
|
234
237
|
}
|
|
235
238
|
export interface IOperatRecordParamApi extends IPaginationParamApi {
|
|
239
|
+
fuzzy?: string;
|
|
236
240
|
id?: number;
|
|
237
241
|
instance_id?: number;
|
|
238
242
|
parent_id?: number;
|
package/dist/types/enum.d.ts
CHANGED
|
@@ -84,6 +84,31 @@ export declare enum ResourceStatus {
|
|
|
84
84
|
NoPermission = "no_permission",
|
|
85
85
|
PermissionPending = "permission-pending"
|
|
86
86
|
}
|
|
87
|
+
export declare enum SkillStatus {
|
|
88
|
+
Publishing = "publishing",
|
|
89
|
+
Published = "published",
|
|
90
|
+
Online = "online",
|
|
91
|
+
Failed = "failed",
|
|
92
|
+
Deleted = "deleted"
|
|
93
|
+
}
|
|
94
|
+
export declare enum SkillInstallTargetType {
|
|
95
|
+
OpenclawWindows = "openclaw_windows",
|
|
96
|
+
OpenclawLinux = "openclaw_linux",
|
|
97
|
+
Cursor = "cursor"
|
|
98
|
+
}
|
|
99
|
+
export declare enum SkillInstallTaskStatus {
|
|
100
|
+
Pending = "pending",
|
|
101
|
+
Running = "running",
|
|
102
|
+
Polling = "polling",
|
|
103
|
+
WaitingCallback = "waiting_callback",
|
|
104
|
+
Success = "success",
|
|
105
|
+
Failed = "failed",
|
|
106
|
+
Cancelled = "cancelled"
|
|
107
|
+
}
|
|
108
|
+
export declare enum McpInstallTargetType {
|
|
109
|
+
Cursor = "cursor",
|
|
110
|
+
Openclaw = "openclaw"
|
|
111
|
+
}
|
|
87
112
|
export declare enum KnowledgePathType {
|
|
88
113
|
File = "file",
|
|
89
114
|
Folder = "folder"
|
package/dist/types/enum.ts.js
CHANGED
|
@@ -93,6 +93,35 @@ export var ResourceStatus;
|
|
|
93
93
|
ResourceStatus["NoPermission"] = "no_permission";
|
|
94
94
|
ResourceStatus["PermissionPending"] = "permission-pending";
|
|
95
95
|
})(ResourceStatus || (ResourceStatus = {}));
|
|
96
|
+
export var SkillStatus;
|
|
97
|
+
(function(SkillStatus) {
|
|
98
|
+
SkillStatus["Publishing"] = "publishing";
|
|
99
|
+
SkillStatus["Published"] = "published";
|
|
100
|
+
SkillStatus["Online"] = "online";
|
|
101
|
+
SkillStatus["Failed"] = "failed";
|
|
102
|
+
SkillStatus["Deleted"] = "deleted";
|
|
103
|
+
})(SkillStatus || (SkillStatus = {}));
|
|
104
|
+
export var SkillInstallTargetType;
|
|
105
|
+
(function(SkillInstallTargetType) {
|
|
106
|
+
SkillInstallTargetType["OpenclawWindows"] = "openclaw_windows";
|
|
107
|
+
SkillInstallTargetType["OpenclawLinux"] = "openclaw_linux";
|
|
108
|
+
SkillInstallTargetType["Cursor"] = "cursor";
|
|
109
|
+
})(SkillInstallTargetType || (SkillInstallTargetType = {}));
|
|
110
|
+
export var SkillInstallTaskStatus;
|
|
111
|
+
(function(SkillInstallTaskStatus) {
|
|
112
|
+
SkillInstallTaskStatus["Pending"] = "pending";
|
|
113
|
+
SkillInstallTaskStatus["Running"] = "running";
|
|
114
|
+
SkillInstallTaskStatus["Polling"] = "polling";
|
|
115
|
+
SkillInstallTaskStatus["WaitingCallback"] = "waiting_callback";
|
|
116
|
+
SkillInstallTaskStatus["Success"] = "success";
|
|
117
|
+
SkillInstallTaskStatus["Failed"] = "failed";
|
|
118
|
+
SkillInstallTaskStatus["Cancelled"] = "cancelled";
|
|
119
|
+
})(SkillInstallTaskStatus || (SkillInstallTaskStatus = {}));
|
|
120
|
+
export var McpInstallTargetType;
|
|
121
|
+
(function(McpInstallTargetType) {
|
|
122
|
+
McpInstallTargetType["Cursor"] = "cursor";
|
|
123
|
+
McpInstallTargetType["Openclaw"] = "openclaw";
|
|
124
|
+
})(McpInstallTargetType || (McpInstallTargetType = {}));
|
|
96
125
|
export var KnowledgePathType;
|
|
97
126
|
(function(KnowledgePathType) {
|
|
98
127
|
KnowledgePathType["File"] = "file";
|
package/dist/types/mcp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi } from './common';
|
|
2
|
-
import { EnumCharacter, McpType, Module, ToolCrdentialType } from './enum';
|
|
1
|
+
import type { IApprovalSettingValue, IApprovalSettingValueApi, IBaseCountParam, IBaseCountParamApi, IPaginationParam, IPaginationParamApi, IResourceCommon, IResourceCommonApi, IResourceCommonSearchParams, IResourceCommonSearchParamsApi, IResourceFormCommon, IResourceFormCommonApi, ISortParam, ISortParamApi } from './common';
|
|
2
|
+
import { EnumCharacter, McpInstallTargetType, McpType, Module, ToolCrdentialType } from './enum';
|
|
3
3
|
export interface IMcpListParamApi extends IPaginationParamApi, IResourceCommonSearchParamsApi, ISortParamApi {
|
|
4
4
|
created_by?: string;
|
|
5
5
|
updated_by?: string;
|
|
@@ -62,7 +62,7 @@ export interface IMcpToolOutputParamApi {
|
|
|
62
62
|
param_desc?: string;
|
|
63
63
|
children?: IMcpToolOutputParamApi[];
|
|
64
64
|
}
|
|
65
|
-
export interface IMcpToolApi {
|
|
65
|
+
export interface IMcpToolApi extends IApprovalSettingValueApi {
|
|
66
66
|
tool_name: string;
|
|
67
67
|
tool_code: string;
|
|
68
68
|
tool_description: string;
|
|
@@ -91,7 +91,7 @@ export interface IMcpToolInputParam extends IMcpToolOutputParam {
|
|
|
91
91
|
isRequired: boolean;
|
|
92
92
|
children?: IMcpToolInputParam[];
|
|
93
93
|
}
|
|
94
|
-
export interface IMcpTool {
|
|
94
|
+
export interface IMcpTool extends IApprovalSettingValue {
|
|
95
95
|
toolName: string;
|
|
96
96
|
toolCode: string;
|
|
97
97
|
toolDescription: string;
|
|
@@ -148,7 +148,27 @@ export interface IApplicationMcpApi extends IMcpApi {
|
|
|
148
148
|
}
|
|
149
149
|
export interface IMcpCountParam extends IBaseCountParam {
|
|
150
150
|
withApigwMcp: boolean;
|
|
151
|
+
agentCode?: string;
|
|
151
152
|
}
|
|
152
153
|
export interface IMcpCountParamApi extends IBaseCountParamApi {
|
|
153
154
|
with_apigw_mcp: boolean;
|
|
155
|
+
agent_code?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface IMcpInstallGuideParamApi {
|
|
158
|
+
target_type: string;
|
|
159
|
+
mcp_type: McpType;
|
|
160
|
+
mcp_id: number;
|
|
161
|
+
}
|
|
162
|
+
export interface IMcpInstallGuideParam {
|
|
163
|
+
targetType: string;
|
|
164
|
+
mcpType: McpType;
|
|
165
|
+
mcpId: number;
|
|
166
|
+
}
|
|
167
|
+
export interface IMcpInstallTargetApi {
|
|
168
|
+
target_type: McpInstallTargetType;
|
|
169
|
+
display_name: string;
|
|
170
|
+
}
|
|
171
|
+
export interface IMcpInstallTarget {
|
|
172
|
+
targetType: McpInstallTargetType;
|
|
173
|
+
displayName: string;
|
|
154
174
|
}
|