@blueking/ai-ui-sdk 0.5.0-beta.4 → 0.5.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/{render-card/agent/actions.script.vue.js.js → render-agent/action/index.script.vue.js.js} +52 -11
- package/dist/components/{render-card/agent/actions.vue.d.ts → render-agent/action/index.vue.d.ts} +5 -0
- package/dist/components/render-agent/action/index.vue.js +3 -0
- package/dist/components/render-agent/agent-search.script.vue.js.js +3 -3
- package/dist/components/render-agent/agent-share.script.vue.js.js +8 -1
- package/dist/components/render-agent/agent-share.vue.d.ts +1 -0
- package/dist/components/render-agent/agent-type.script.vue.js.js +9 -3
- package/dist/components/render-agent/agent-type.vue.css +7 -3
- package/dist/components/render-agent/agent-type.vue.d.ts +1 -1
- package/dist/components/render-agent/agent-type.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-card/agent/index.script.vue.js.js +96 -29
- package/dist/components/render-card/agent/index.vue.d.ts +6 -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/upgrade.script.vue.js.js +122 -0
- package/dist/components/render-card/agent/upgrade.vue.css +9 -0
- package/dist/components/render-card/agent/upgrade.vue.d.ts +17 -0
- package/dist/components/render-card/agent/upgrade.vue.js +5 -0
- package/dist/components/render-card/base/application-base-actions.script.vue.js.js +57 -14
- package/dist/components/render-card/base/application-base-actions.vue.d.ts +13 -9
- package/dist/components/render-card/base/collection-icon.script.vue.js.js +146 -0
- package/dist/components/render-card/base/collection-icon.vue.d.ts +20 -0
- package/dist/components/render-card/base/collection-icon.vue.js +3 -0
- package/dist/components/render-card/base/reference-icon.script.vue.js.js +19 -15
- package/dist/components/render-card/base.script.vue.js +130 -146
- package/dist/components/render-card/base.vue.css +12 -12
- package/dist/components/render-card/base.vue.js +1 -1
- package/dist/components/render-card/knowledgebase/actions.script.vue.js.js +15 -2
- package/dist/components/render-card/knowledgebase/actions.vue.d.ts +4 -0
- package/dist/components/render-card/knowledgebase/index.script.vue.js.js +15 -2
- package/dist/components/render-card/knowledgebase/index.vue.d.ts +4 -1
- package/dist/components/render-card/llm/actions.script.vue.js.js +15 -3
- package/dist/components/render-card/llm/actions.vue.d.ts +1 -0
- package/dist/components/render-card/llm/corner-badge.script.vue.js +27 -33
- 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 +6 -14
- 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 +9 -8
- 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.script.vue.js.js +18 -14
- package/dist/components/render-card/llm/tag-prefix.vue.css +2 -5
- package/dist/components/render-card/llm/tag-prefix.vue.d.ts +4 -1
- package/dist/components/render-card/llm/tag-prefix.vue.js +1 -1
- package/dist/components/render-card/mcp/actions.script.vue.js.js +54 -9
- package/dist/components/render-card/mcp/actions.vue.d.ts +5 -0
- package/dist/components/render-card/mcp/code-suffix.script.vue.js +34 -42
- package/dist/components/render-card/mcp/index.script.vue.js.js +63 -13
- package/dist/components/render-card/mcp/index.vue.d.ts +8 -2
- package/dist/components/render-card/mcp/name-suffix.script.vue.js +15 -23
- 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/selected-tools-info.script.vue.js.js +7 -3
- package/dist/components/render-card/mcp/selected-tools-info.vue.d.ts +1 -0
- 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.script.vue.js.js +69 -16
- package/dist/components/render-card/prompt/index.vue.d.ts +7 -1
- package/dist/components/render-card/role/index.script.vue.js.js +75 -23
- package/dist/components/render-card/role/index.vue.d.ts +7 -1
- package/dist/components/render-card/skill/index.script.vue.js.js +73 -26
- package/dist/components/render-card/skill/index.vue.d.ts +12 -4
- package/dist/components/render-card/skill/prefix-info-tool.script.vue.js +41 -84
- package/dist/components/render-card/skill/scanner.script.vue.js.js +66 -0
- package/dist/components/render-card/skill/{tag-prefix.vue.css → scanner.vue.css} +3 -3
- package/dist/components/render-card/skill/scanner.vue.d.ts +11 -0
- package/dist/components/render-card/skill/scanner.vue.js +5 -0
- package/dist/components/render-card/skill/tag-prefix.script.vue.js.js +11 -50
- package/dist/components/render-card/skill/tag-prefix.vue.js +0 -2
- package/dist/components/render-card/tool/actions.script.vue.js.js +45 -6
- package/dist/components/render-card/tool/actions.vue.d.ts +5 -0
- package/dist/components/render-card/tool/index.script.vue.js.js +74 -22
- package/dist/components/render-card/tool/index.vue.d.ts +7 -1
- package/dist/components/render-card/tool/prefix-info-tool.script.vue.js.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-collection/actions/index.script.vue.js.js +40 -5
- package/dist/components/render-collection/actions/index.vue.d.ts +5 -0
- package/dist/components/render-collection/content/index.script.vue.js +39 -43
- 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.script.vue.js +27 -37
- 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.script.vue.js.js +3 -3
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.js +0 -2
- package/dist/components/render-dataset/components/dataset-data-level/index.script.vue.js +18 -22
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +22 -26
- package/dist/components/render-dataset/components/dataset-data-valid/index.script.vue.js.js +3 -3
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.js +0 -2
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.script.vue.js +65 -102
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/dataset-form.script.vue.js +119 -184
- 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/index.script.vue.js.js +5 -5
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +205 -356
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +10 -7
- 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/components/table.script.vue.js +163 -269
- 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.script.vue.js +269 -390
- 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.script.vue.js +149 -210
- 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 +10 -10
- package/dist/components/render-dialog/choose-space.vue.css +10 -10
- package/dist/components/render-dialog/choose-space.vue.js +1 -1
- package/dist/components/render-dialog/index.script.vue.js +113 -172
- 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 +3 -0
- package/dist/components/render-dropdown/index.vue.d.ts +5 -5
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +6 -6
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-generate-tag/index.vue.css +5 -5
- package/dist/components/render-generate-tag/index.vue.d.ts +1 -1
- package/dist/components/render-generate-tag/index.vue.js +1 -1
- package/dist/components/render-knowledge/icon/index.vue.css +1 -1
- package/dist/components/render-knowledge/icon/index.vue.js +1 -1
- package/dist/components/render-markdown/edit.d.ts +1 -1
- package/dist/components/render-markdown/view.d.ts +1 -1
- package/dist/components/render-permission-tag/index.script.vue.js +57 -70
- package/dist/components/render-prompt/actions/index.script.vue.js.js +41 -6
- package/dist/components/render-prompt/actions/index.vue.d.ts +5 -0
- 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.script.vue.js +207 -258
- 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 +369 -640
- package/dist/components/render-relate-agent/index.vue.d.ts +2 -2
- package/dist/components/render-resource-info/index.script.vue.js +43 -47
- package/dist/components/render-resource-version/index.script.vue.js.js +6 -3
- package/dist/components/render-resource-version/index.vue.css +2 -2
- package/dist/components/render-resource-version/index.vue.d.ts +1 -1
- 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/actions/index.script.vue.js.js +83 -77
- package/dist/components/render-skill/actions/index.vue.d.ts +7 -2
- package/dist/components/render-skill/variable-form/index.script.vue.js +47 -74
- package/dist/components/render-t-table/index.script.vue.js +159 -232
- package/dist/components/render-t-table/index.vue.css +41 -28
- package/dist/components/render-t-table/index.vue.js +1 -1
- package/dist/components/render-tag-tree/index.script.vue.js.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.script.vue.js +70 -95
- package/dist/components/render-tags/index.vue.css +6 -6
- package/dist/components/render-tags/index.vue.d.ts +1 -1
- package/dist/components/render-tags/index.vue.js +1 -1
- package/dist/components/render-tree/index.script.vue.js +60 -115
- package/dist/components.d.ts +16 -1
- package/dist/components.ts.js +16 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +3 -0
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/g-utilities.css +82 -8
- package/dist/css/g-utilities.manifest.json +22 -2
- package/dist/css/iconcool.js +1 -1
- package/dist/css/style.css +3 -0
- package/dist/hooks/use-agent-http.d.ts +3 -0
- package/dist/hooks/use-agent-http.ts.js +23 -2
- package/dist/hooks/use-collection-http.d.ts +2 -0
- package/dist/hooks/use-collection-http.ts.js +15 -1
- package/dist/hooks/use-market-http.d.ts +10 -0
- package/dist/hooks/use-market-http.ts.js +71 -1
- package/dist/hooks/use-mcp-http.d.ts +2 -0
- package/dist/hooks/use-mcp-http.ts.js +15 -1
- package/dist/hooks/use-prompt-http.d.ts +2 -0
- package/dist/hooks/use-prompt-http.ts.js +15 -1
- package/dist/hooks/use-scroll-load.ts.js +1 -1
- package/dist/hooks/use-skill-http.d.ts +2 -0
- package/dist/hooks/use-skill-http.ts.js +15 -1
- package/dist/hooks/use-space-http.d.ts +2 -1
- package/dist/hooks/use-space-http.ts.js +8 -1
- package/dist/hooks/use-t-table.d.ts +11 -5
- package/dist/hooks/use-t-table.ts.js +25 -3
- package/dist/hooks/use-tool-http.d.ts +2 -0
- package/dist/hooks/use-tool-http.ts.js +15 -1
- package/dist/http/fetch/error-interceptor.ts.js +4 -4
- package/dist/http/fetch/request-error.d.ts +3 -3
- package/dist/http/fetch/request-error.ts.js +3 -3
- package/dist/http/helper/agent.d.ts +7 -1
- package/dist/http/helper/agent.ts.js +22 -2
- package/dist/http/helper/collection.ts.js +3 -1
- package/dist/http/helper/common.d.ts +8 -1
- package/dist/http/helper/common.ts.js +19 -0
- package/dist/http/helper/mcp.ts.js +8 -2
- package/dist/http/helper/prompt.ts.js +3 -1
- package/dist/http/helper/skill.ts.js +4 -0
- package/dist/http/helper/space.d.ts +10 -1
- package/dist/http/helper/space.ts.js +8 -0
- package/dist/http/helper/tool.ts.js +8 -2
- package/dist/types/agent.d.ts +25 -1
- package/dist/types/collection.d.ts +5 -1
- package/dist/types/common.d.ts +10 -1
- package/dist/types/enum.d.ts +10 -2
- package/dist/types/enum.ts.js +9 -0
- package/dist/types/mcp.d.ts +6 -0
- package/dist/types/prompt.d.ts +5 -1
- package/dist/types/skill.d.ts +4 -0
- package/dist/types/space.d.ts +2 -0
- package/dist/types/tool.d.ts +6 -0
- package/package.json +4 -4
- package/dist/components/render-card/agent/actions.vue.js +0 -3
- package/dist/components/render-dataset/components/batch-edit-valid-dataset-data/index.vue.css +0 -4
- package/dist/components/render-dataset/components/dataset-data-valid/index.vue.css +0 -4
- package/dist/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -4
- package/dist/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -5
- package/dist/node_modules/@babel/runtime/helpers/defineProperty.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -6
- package/dist/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -4
- package/dist/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -28
- package/dist/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -4
- package/dist/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -4
- package/dist/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -8
- package/dist/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -12
- package/dist/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -7
- package/dist/node_modules/@babel/runtime/helpers/typeof.js +0 -10
- package/dist/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -9
- package/dist/node_modules/core-js/internals/a-callable.js +0 -11
- package/dist/node_modules/core-js/internals/a-constructor.js +0 -11
- package/dist/node_modules/core-js/internals/a-possible-prototype.js +0 -10
- package/dist/node_modules/core-js/internals/add-to-unscopables.js +0 -21
- package/dist/node_modules/core-js/internals/advance-string-index.js +0 -8
- package/dist/node_modules/core-js/internals/an-instance.js +0 -9
- package/dist/node_modules/core-js/internals/an-object.js +0 -11
- package/dist/node_modules/core-js/internals/array-buffer-non-extensible.js +0 -11
- package/dist/node_modules/core-js/internals/array-for-each.js +0 -12
- package/dist/node_modules/core-js/internals/array-includes.js +0 -34
- package/dist/node_modules/core-js/internals/array-iteration.js +0 -72
- package/dist/node_modules/core-js/internals/array-method-has-species-support.js +0 -20
- package/dist/node_modules/core-js/internals/array-method-is-strict.js +0 -10
- package/dist/node_modules/core-js/internals/array-set-length.js +0 -27
- package/dist/node_modules/core-js/internals/array-slice.js +0 -4
- package/dist/node_modules/core-js/internals/array-species-constructor.js +0 -23
- package/dist/node_modules/core-js/internals/array-species-create.js +0 -8
- package/dist/node_modules/core-js/internals/check-correctness-of-iteration.js +0 -43
- package/dist/node_modules/core-js/internals/classof-raw.js +0 -9
- package/dist/node_modules/core-js/internals/classof.js +0 -30
- package/dist/node_modules/core-js/internals/collection-strong.js +0 -206
- package/dist/node_modules/core-js/internals/collection.js +0 -106
- package/dist/node_modules/core-js/internals/copy-constructor-properties.js +0 -17
- package/dist/node_modules/core-js/internals/correct-is-regexp-logic.js +0 -16
- package/dist/node_modules/core-js/internals/correct-prototype-getter.js +0 -9
- package/dist/node_modules/core-js/internals/create-iter-result-object.js +0 -6
- package/dist/node_modules/core-js/internals/create-non-enumerable-property.js +0 -11
- package/dist/node_modules/core-js/internals/create-property-descriptor.js +0 -9
- package/dist/node_modules/core-js/internals/create-property.js +0 -9
- package/dist/node_modules/core-js/internals/define-built-in-accessor.js +0 -9
- package/dist/node_modules/core-js/internals/define-built-in.js +0 -28
- package/dist/node_modules/core-js/internals/define-built-ins.js +0 -7
- package/dist/node_modules/core-js/internals/define-global-property.js +0 -13
- package/dist/node_modules/core-js/internals/delete-property-or-throw.js +0 -8
- package/dist/node_modules/core-js/internals/descriptors.js +0 -8
- package/dist/node_modules/core-js/internals/document-create-element.js +0 -11
- package/dist/node_modules/core-js/internals/does-not-exceed-safe-integer.js +0 -8
- package/dist/node_modules/core-js/internals/dom-iterables.js +0 -36
- package/dist/node_modules/core-js/internals/dom-token-list-prototype.js +0 -8
- package/dist/node_modules/core-js/internals/enum-bug-keys.js +0 -11
- package/dist/node_modules/core-js/internals/environment-is-ios-pebble.js +0 -4
- package/dist/node_modules/core-js/internals/environment-is-ios.js +0 -4
- package/dist/node_modules/core-js/internals/environment-is-node.js +0 -4
- package/dist/node_modules/core-js/internals/environment-is-webos-webkit.js +0 -4
- package/dist/node_modules/core-js/internals/environment-user-agent.js +0 -7
- package/dist/node_modules/core-js/internals/environment-v8-version.js +0 -28
- package/dist/node_modules/core-js/internals/environment.js +0 -21
- package/dist/node_modules/core-js/internals/export.js +0 -55
- package/dist/node_modules/core-js/internals/fails.js +0 -8
- package/dist/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js +0 -78
- package/dist/node_modules/core-js/internals/freezing.js +0 -7
- package/dist/node_modules/core-js/internals/function-apply.js +0 -11
- package/dist/node_modules/core-js/internals/function-bind-context.js +0 -14
- package/dist/node_modules/core-js/internals/function-bind-native.js +0 -9
- package/dist/node_modules/core-js/internals/function-call.js +0 -8
- package/dist/node_modules/core-js/internals/function-name.js +0 -18
- package/dist/node_modules/core-js/internals/function-uncurry-this-accessor.js +0 -10
- package/dist/node_modules/core-js/internals/function-uncurry-this-clause.js +0 -10
- package/dist/node_modules/core-js/internals/function-uncurry-this.js +0 -13
- package/dist/node_modules/core-js/internals/get-built-in.js +0 -11
- package/dist/node_modules/core-js/internals/get-iterator-internal.js +0 -14
- package/dist/node_modules/core-js/internals/get-iterator-method-internal.js +0 -14
- package/dist/node_modules/core-js/internals/get-method.js +0 -10
- package/dist/node_modules/core-js/internals/global-this.js +0 -16
- package/dist/node_modules/core-js/internals/has-own-property.js +0 -12
- package/dist/node_modules/core-js/internals/hidden-keys.js +0 -2
- package/dist/node_modules/core-js/internals/host-report-errors.js +0 -7
- package/dist/node_modules/core-js/internals/html.js +0 -4
- package/dist/node_modules/core-js/internals/ie8-dom-define.js +0 -12
- package/dist/node_modules/core-js/internals/indexed-object.js +0 -16
- package/dist/node_modules/core-js/internals/inherit-if-required.js +0 -19
- package/dist/node_modules/core-js/internals/inspect-source.js +0 -15
- package/dist/node_modules/core-js/internals/internal-metadata.js +0 -91
- package/dist/node_modules/core-js/internals/internal-state.js +0 -71
- package/dist/node_modules/core-js/internals/is-array-iterator-method.js +0 -11
- package/dist/node_modules/core-js/internals/is-array.js +0 -9
- package/dist/node_modules/core-js/internals/is-callable.js +0 -12
- package/dist/node_modules/core-js/internals/is-constructor.js +0 -52
- package/dist/node_modules/core-js/internals/is-forced.js +0 -23
- package/dist/node_modules/core-js/internals/is-null-or-undefined.js +0 -6
- package/dist/node_modules/core-js/internals/is-object.js +0 -6
- package/dist/node_modules/core-js/internals/is-possible-prototype.js +0 -6
- package/dist/node_modules/core-js/internals/is-pure.js +0 -2
- package/dist/node_modules/core-js/internals/is-raw-json.js +0 -9
- package/dist/node_modules/core-js/internals/is-regexp.js +0 -13
- package/dist/node_modules/core-js/internals/is-symbol.js +0 -14
- package/dist/node_modules/core-js/internals/iterate.js +0 -74
- package/dist/node_modules/core-js/internals/iterator-close.js +0 -24
- package/dist/node_modules/core-js/internals/iterator-create-constructor.js +0 -16
- package/dist/node_modules/core-js/internals/iterator-define.js +0 -102
- package/dist/node_modules/core-js/internals/iterators-core.js +0 -49
- package/dist/node_modules/core-js/internals/iterators.js +0 -2
- package/dist/node_modules/core-js/internals/length-of-array-like.js +0 -8
- package/dist/node_modules/core-js/internals/make-built-in.js +0 -55
- package/dist/node_modules/core-js/internals/math-trunc.js +0 -11
- package/dist/node_modules/core-js/internals/microtask.js +0 -79
- package/dist/node_modules/core-js/internals/native-raw-json.js +0 -11
- package/dist/node_modules/core-js/internals/new-promise-capability.js +0 -21
- package/dist/node_modules/core-js/internals/not-a-regexp.js +0 -10
- package/dist/node_modules/core-js/internals/object-assign.js +0 -58
- package/dist/node_modules/core-js/internals/object-create.js +0 -85
- package/dist/node_modules/core-js/internals/object-define-properties.js +0 -21
- package/dist/node_modules/core-js/internals/object-define-property.js +0 -44
- package/dist/node_modules/core-js/internals/object-get-own-property-descriptor.js +0 -23
- package/dist/node_modules/core-js/internals/object-get-own-property-names-external.js +0 -24
- package/dist/node_modules/core-js/internals/object-get-own-property-names.js +0 -12
- package/dist/node_modules/core-js/internals/object-get-own-property-symbols.js +0 -3
- package/dist/node_modules/core-js/internals/object-get-prototype-of.js +0 -22
- package/dist/node_modules/core-js/internals/object-is-extensible.js +0 -17
- package/dist/node_modules/core-js/internals/object-is-prototype-of.js +0 -4
- package/dist/node_modules/core-js/internals/object-keys-internal.js +0 -21
- package/dist/node_modules/core-js/internals/object-keys.js +0 -10
- package/dist/node_modules/core-js/internals/object-property-is-enumerable.js +0 -14
- package/dist/node_modules/core-js/internals/object-set-prototype-of.js +0 -29
- package/dist/node_modules/core-js/internals/object-to-array.js +0 -49
- package/dist/node_modules/core-js/internals/object-to-string.js +0 -9
- package/dist/node_modules/core-js/internals/ordinary-to-primitive.js +0 -16
- package/dist/node_modules/core-js/internals/own-keys.js +0 -15
- package/dist/node_modules/core-js/internals/parse-json-string.js +0 -56
- package/dist/node_modules/core-js/internals/path.js +0 -4
- package/dist/node_modules/core-js/internals/perform.js +0 -8
- package/dist/node_modules/core-js/internals/promise-constructor-detection.js +0 -47
- package/dist/node_modules/core-js/internals/promise-native-constructor.js +0 -4
- package/dist/node_modules/core-js/internals/promise-resolve.js +0 -13
- package/dist/node_modules/core-js/internals/promise-statics-incorrect-iteration.js +0 -8
- package/dist/node_modules/core-js/internals/queue.js +0 -25
- package/dist/node_modules/core-js/internals/regexp-exec-abstract.js +0 -21
- package/dist/node_modules/core-js/internals/regexp-exec.js +0 -124
- package/dist/node_modules/core-js/internals/regexp-flags-detection.js +0 -47
- package/dist/node_modules/core-js/internals/regexp-flags.js +0 -18
- package/dist/node_modules/core-js/internals/regexp-get-flags.js +0 -16
- package/dist/node_modules/core-js/internals/regexp-sticky-helpers.js +0 -31
- package/dist/node_modules/core-js/internals/regexp-unsupported-dot-all.js +0 -11
- package/dist/node_modules/core-js/internals/regexp-unsupported-ncg.js +0 -12
- package/dist/node_modules/core-js/internals/require-object-coercible.js +0 -11
- package/dist/node_modules/core-js/internals/safe-get-built-in.js +0 -13
- package/dist/node_modules/core-js/internals/same-value.js +0 -8
- package/dist/node_modules/core-js/internals/set-species.js +0 -18
- package/dist/node_modules/core-js/internals/set-to-string-tag.js +0 -13
- package/dist/node_modules/core-js/internals/shared-key.js +0 -9
- package/dist/node_modules/core-js/internals/shared-store.js +0 -15
- package/dist/node_modules/core-js/internals/shared.js +0 -8
- package/dist/node_modules/core-js/internals/species-constructor.js +0 -15
- package/dist/node_modules/core-js/internals/string-multibyte.js +0 -37
- package/dist/node_modules/core-js/internals/symbol-constructor-detection.js +0 -19
- package/dist/node_modules/core-js/internals/symbol-define-to-primitive.js +0 -21
- package/dist/node_modules/core-js/internals/symbol-registry-detection.js +0 -5
- package/dist/node_modules/core-js/internals/task.js +0 -117
- package/dist/node_modules/core-js/internals/this-number-value.js +0 -6
- package/dist/node_modules/core-js/internals/to-absolute-index.js +0 -13
- package/dist/node_modules/core-js/internals/to-indexed-object.js +0 -8
- package/dist/node_modules/core-js/internals/to-integer-or-infinity.js +0 -10
- package/dist/node_modules/core-js/internals/to-length.js +0 -11
- package/dist/node_modules/core-js/internals/to-object.js +0 -10
- package/dist/node_modules/core-js/internals/to-primitive.js +0 -26
- package/dist/node_modules/core-js/internals/to-property-key.js +0 -10
- package/dist/node_modules/core-js/internals/to-string-tag-support.js +0 -9
- package/dist/node_modules/core-js/internals/to-string.js +0 -9
- package/dist/node_modules/core-js/internals/try-to-string.js +0 -10
- package/dist/node_modules/core-js/internals/uid.js +0 -10
- package/dist/node_modules/core-js/internals/use-symbol-as-uid.js +0 -7
- package/dist/node_modules/core-js/internals/v8-prototype-define-bug.js +0 -13
- package/dist/node_modules/core-js/internals/validate-arguments-length.js +0 -7
- package/dist/node_modules/core-js/internals/weak-map-basic-detection.js +0 -7
- package/dist/node_modules/core-js/internals/well-known-symbol-define.js +0 -12
- package/dist/node_modules/core-js/internals/well-known-symbol-wrapped.js +0 -4
- package/dist/node_modules/core-js/internals/well-known-symbol.js +0 -19
- package/dist/node_modules/core-js/modules/es.array.concat.js +0 -59
- package/dist/node_modules/core-js/modules/es.array.filter.js +0 -15
- package/dist/node_modules/core-js/modules/es.array.find-index.js +0 -22
- package/dist/node_modules/core-js/modules/es.array.find.js +0 -22
- package/dist/node_modules/core-js/modules/es.array.includes.js +0 -28
- package/dist/node_modules/core-js/modules/es.array.iterator.js +0 -62
- package/dist/node_modules/core-js/modules/es.array.join.js +0 -19
- package/dist/node_modules/core-js/modules/es.array.map.js +0 -15
- package/dist/node_modules/core-js/modules/es.array.splice.js +0 -67
- package/dist/node_modules/core-js/modules/es.function.name.js +0 -26
- package/dist/node_modules/core-js/modules/es.json.stringify.js +0 -251
- package/dist/node_modules/core-js/modules/es.object.assign.js +0 -10
- package/dist/node_modules/core-js/modules/es.object.entries.js +0 -11
- package/dist/node_modules/core-js/modules/es.object.get-own-property-symbols.js +0 -19
- package/dist/node_modules/core-js/modules/es.object.keys.js +0 -15
- package/dist/node_modules/core-js/modules/es.object.to-string.js +0 -10
- package/dist/node_modules/core-js/modules/es.promise.all.js +0 -39
- package/dist/node_modules/core-js/modules/es.promise.catch.js +0 -26
- package/dist/node_modules/core-js/modules/es.promise.constructor.js +0 -293
- package/dist/node_modules/core-js/modules/es.promise.finally.js +0 -43
- package/dist/node_modules/core-js/modules/es.promise.js +0 -8
- package/dist/node_modules/core-js/modules/es.promise.race.js +0 -26
- package/dist/node_modules/core-js/modules/es.promise.reject.js +0 -15
- package/dist/node_modules/core-js/modules/es.promise.resolve.js +0 -18
- package/dist/node_modules/core-js/modules/es.regexp.exec.js +0 -9
- package/dist/node_modules/core-js/modules/es.regexp.to-string.js +0 -26
- package/dist/node_modules/core-js/modules/es.set.constructor.js +0 -9
- package/dist/node_modules/core-js/modules/es.set.js +0 -3
- package/dist/node_modules/core-js/modules/es.string.includes.js +0 -21
- package/dist/node_modules/core-js/modules/es.string.iterator.js +0 -31
- package/dist/node_modules/core-js/modules/es.string.search.js +0 -40
- package/dist/node_modules/core-js/modules/es.string.split.js +0 -113
- package/dist/node_modules/core-js/modules/es.symbol.constructor.js +0 -264
- package/dist/node_modules/core-js/modules/es.symbol.description.js +0 -69
- package/dist/node_modules/core-js/modules/es.symbol.for.js +0 -23
- package/dist/node_modules/core-js/modules/es.symbol.js +0 -7
- package/dist/node_modules/core-js/modules/es.symbol.key-for.js +0 -18
- package/dist/node_modules/core-js/modules/web.dom-collections.for-each.js +0 -23
- package/dist/node_modules/core-js/modules/web.dom-collections.iterator.js +0 -37
- package/dist/node_modules/regenerator-runtime/runtime.js +0 -761
|
@@ -1,31 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var _interopRequireDefault = require('../../node_modules/@babel/runtime/helpers/interopRequireDefault.js');
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
require('../../node_modules/regenerator-runtime/runtime.js');
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require('../../node_modules/@babel/runtime/helpers/defineProperty.js'));
|
|
9
|
-
var _toConsumableArray2 = _interopRequireDefault(require('../../node_modules/@babel/runtime/helpers/toConsumableArray.js'));
|
|
10
|
-
var _vue = require("vue");
|
|
11
|
-
require('../../node_modules/core-js/modules/es.array.concat.js');
|
|
12
|
-
require('../../node_modules/core-js/modules/es.array.filter.js');
|
|
13
|
-
require('../../node_modules/core-js/modules/es.array.find.js');
|
|
14
|
-
require('../../node_modules/core-js/modules/es.array.map.js');
|
|
15
|
-
require('../../node_modules/core-js/modules/es.function.name.js');
|
|
16
|
-
require('../../node_modules/core-js/modules/es.object.assign.js');
|
|
17
|
-
require('../../node_modules/core-js/modules/es.object.to-string.js');
|
|
18
|
-
require('../../node_modules/core-js/modules/es.promise.js');
|
|
19
|
-
require('../../node_modules/core-js/modules/es.promise.finally.js');
|
|
20
|
-
var _constants = require('../../common/constants.ts.js');
|
|
21
|
-
var _util = require('../../common/util.ts.js');
|
|
22
|
-
var _index = _interopRequireDefault(require('../render-select-plus-extension/index.vue.js'));
|
|
23
|
-
var _index2 = _interopRequireDefault(require('../render-skill/variable-form/index.vue.js'));
|
|
24
|
-
var _useAgentHttp2 = require('../../hooks/use-agent-http.ts.js');
|
|
25
|
-
var _useClickoutside2 = require('../../hooks/use-clickoutside.ts.js');
|
|
26
|
-
var _useSpaceHttp2 = require('../../hooks/use-space-http.ts.js');
|
|
27
|
-
var _enum = require('../../types/enum.ts.js');
|
|
28
|
-
var __awaiter = (void 0) && (void 0).__awaiter || function(thisArg, _arguments, P, generator) {
|
|
1
|
+
var __awaiter = this && this.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
29
2
|
function adopt(value) {
|
|
30
3
|
return value instanceof P ? value : new P(function(resolve) {
|
|
31
4
|
resolve(value);
|
|
@@ -52,10 +25,21 @@ var __awaiter = (void 0) && (void 0).__awaiter || function(thisArg, _arguments,
|
|
|
52
25
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
53
26
|
});
|
|
54
27
|
};
|
|
55
|
-
|
|
28
|
+
import { defineComponent as _defineComponent, createVNode as _createVNode2 } from 'vue';
|
|
29
|
+
import { renderSlot as _renderSlot, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, resolveDirective as _resolveDirective, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives, createElementVNode as _createElementVNode, createVNode as _createVNode, unref as _unref } from "vue";
|
|
30
|
+
const _hoisted_1 = {
|
|
56
31
|
class: "g-flex-row g-justify-end g-mt-16"
|
|
57
32
|
};
|
|
58
|
-
|
|
33
|
+
import { ref, toRef, watch } from 'vue';
|
|
34
|
+
import { MAX_PAGE_SIZE, MODULE_NAME } from '../../common/constants.ts.js';
|
|
35
|
+
import { isEmpty } from '../../common/util.ts.js';
|
|
36
|
+
import RenderSelectPlusExtension from '../render-select-plus-extension/index.vue.js';
|
|
37
|
+
import VariableForm from '../render-skill/variable-form/index.vue.js';
|
|
38
|
+
import { useAgentHttp } from '../../hooks/use-agent-http.ts.js';
|
|
39
|
+
import { useClickoutside } from '../../hooks/use-clickoutside.ts.js';
|
|
40
|
+
import { useSpaceHttp } from '../../hooks/use-space-http.ts.js';
|
|
41
|
+
import { AgentType, GroupType, Module, PromptSource, ResourceStatus, SdkNavigateActionType } from '../../types/enum.ts.js';
|
|
42
|
+
export default /*@__PURE__*/ _defineComponent({
|
|
59
43
|
props: {
|
|
60
44
|
resourceType: {},
|
|
61
45
|
resource: {},
|
|
@@ -65,50 +49,52 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
65
49
|
disabledText: {
|
|
66
50
|
default: ''
|
|
67
51
|
},
|
|
68
|
-
|
|
69
|
-
type: Boolean
|
|
70
|
-
default: true
|
|
52
|
+
isTextButton: {
|
|
53
|
+
type: Boolean
|
|
71
54
|
},
|
|
72
55
|
boundary: {},
|
|
73
56
|
placement: {
|
|
74
57
|
default: 'right'
|
|
75
58
|
},
|
|
76
59
|
spaceId: {},
|
|
77
|
-
apiPrefix: {}
|
|
60
|
+
apiPrefix: {},
|
|
61
|
+
theme: {}
|
|
78
62
|
},
|
|
79
63
|
emits: [
|
|
80
64
|
"navigate"
|
|
81
65
|
],
|
|
82
|
-
setup
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
66
|
+
setup (__props, { emit: __emit }) {
|
|
67
|
+
const props = __props;
|
|
68
|
+
const emits = __emit;
|
|
69
|
+
const { getAgent, getAgentList, updateAgent, getAgentMcpPermission, resourceApply } = useAgentHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
70
|
+
const { getResourceAuthorizedSpaces } = useSpaceHttp(props.apiPrefix, toRef(props, 'spaceId'));
|
|
71
|
+
const { handleInitClickoutside } = useClickoutside();
|
|
72
|
+
const { handleInitClickoutside: handleInitSpaceSelectClickoutside } = useClickoutside();
|
|
73
|
+
const { handleInitClickoutside: handleInitAgentSelectClickoutside } = useClickoutside();
|
|
74
|
+
const formRef = ref();
|
|
75
|
+
const spaceSelectRef = ref();
|
|
76
|
+
const agentSelectRef = ref();
|
|
77
|
+
const variableFormRef = ref();
|
|
78
|
+
const agents = ref([]);
|
|
79
|
+
const spaces = ref([]);
|
|
80
|
+
const isLoadingAgents = ref(false);
|
|
81
|
+
const isLoadingSpaces = ref(false);
|
|
82
|
+
const isLoadingConfirm = ref(false);
|
|
83
|
+
const isShowPopover = ref(false);
|
|
84
|
+
const isShowConfirm = ref(false);
|
|
85
|
+
const hasMcpPermission = ref(undefined);
|
|
86
|
+
const hasUnfilledRequiredEnv = ref(false);
|
|
87
|
+
const renderEnvs = ref([]);
|
|
88
|
+
const formData = ref({
|
|
103
89
|
selectedAgentId: undefined,
|
|
104
90
|
selectedSpaceId: undefined
|
|
105
91
|
});
|
|
106
|
-
|
|
107
|
-
return props.resourceType ===
|
|
92
|
+
const getWidth = ()=>{
|
|
93
|
+
return props.resourceType === Module.Skill ? 600 : 280;
|
|
108
94
|
};
|
|
109
|
-
|
|
110
|
-
if (props.resourceType ===
|
|
111
|
-
return (
|
|
95
|
+
const getContent = ()=>{
|
|
96
|
+
if (props.resourceType === Module.Skill) {
|
|
97
|
+
return _createVNode2(VariableForm, {
|
|
112
98
|
"ref": variableFormRef,
|
|
113
99
|
"skillEnvs": renderEnvs.value,
|
|
114
100
|
"onUpdate:skillEnvs": handleUpdateEnvs
|
|
@@ -116,65 +102,63 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
116
102
|
}
|
|
117
103
|
return '当前选择的 MCP 暂无使用权限且未经申请,提交后将自动创建申请单';
|
|
118
104
|
};
|
|
119
|
-
|
|
120
|
-
if (props.resourceType ===
|
|
105
|
+
const getTitle = ()=>{
|
|
106
|
+
if (props.resourceType === Module.Skill) {
|
|
121
107
|
return '配置 Skill 环境变量';
|
|
122
108
|
}
|
|
123
109
|
return '确认提交申请?';
|
|
124
110
|
};
|
|
125
|
-
|
|
111
|
+
const handleGetSpacesAndSetDefaultSpace = ()=>{
|
|
126
112
|
isLoadingSpaces.value = true;
|
|
127
|
-
|
|
113
|
+
const params = {
|
|
128
114
|
resourceType: props.resourceType,
|
|
129
115
|
resourceId: props.resource.id
|
|
130
116
|
};
|
|
131
|
-
if (props.resourceType ===
|
|
117
|
+
if (props.resourceType === Module.Mcp) {
|
|
132
118
|
params.mcpType = props.resource.mcpType;
|
|
133
119
|
}
|
|
134
|
-
return getResourceAuthorizedSpaces(params).then(
|
|
120
|
+
return getResourceAuthorizedSpaces(params).then((data)=>{
|
|
135
121
|
var _a;
|
|
136
122
|
spaces.value = data;
|
|
137
123
|
formData.value.selectedSpaceId = (_a = data[0]) === null || _a === void 0 ? void 0 : _a.spaceId;
|
|
138
|
-
}).finally(
|
|
124
|
+
}).finally(()=>{
|
|
139
125
|
isLoadingSpaces.value = false;
|
|
140
126
|
});
|
|
141
127
|
};
|
|
142
|
-
|
|
128
|
+
const handleGetAgentsAndSetDefaultAgent = ()=>{
|
|
143
129
|
if (!formData.value.selectedSpaceId) return;
|
|
144
130
|
isLoadingAgents.value = true;
|
|
145
|
-
|
|
131
|
+
const params = {
|
|
146
132
|
page: 1,
|
|
147
|
-
pageSize:
|
|
133
|
+
pageSize: MAX_PAGE_SIZE,
|
|
148
134
|
spaceId: formData.value.selectedSpaceId,
|
|
149
|
-
groupType:
|
|
150
|
-
agentType:
|
|
135
|
+
groupType: GroupType.Space,
|
|
136
|
+
agentType: AgentType.Single
|
|
151
137
|
};
|
|
152
|
-
getAgentList(params).then(
|
|
138
|
+
getAgentList(params).then((data)=>{
|
|
153
139
|
var _a;
|
|
154
|
-
|
|
140
|
+
let list = data.results.filter((agent)=>{
|
|
155
141
|
var _a;
|
|
156
142
|
return (_a = agent.permission) === null || _a === void 0 ? void 0 : _a.manageAgent;
|
|
157
143
|
});
|
|
158
|
-
if (props.resourceType ===
|
|
159
|
-
list = list.filter(
|
|
160
|
-
return agent.id !== props.resource.id;
|
|
161
|
-
});
|
|
144
|
+
if (props.resourceType === Module.Agent) {
|
|
145
|
+
list = list.filter((agent)=>agent.id !== props.resource.id);
|
|
162
146
|
}
|
|
163
147
|
agents.value = list;
|
|
164
148
|
formData.value.selectedAgentId = (_a = list[0]) === null || _a === void 0 ? void 0 : _a.id;
|
|
165
|
-
}).finally(
|
|
149
|
+
}).finally(()=>{
|
|
166
150
|
isLoadingAgents.value = false;
|
|
167
151
|
});
|
|
168
152
|
};
|
|
169
|
-
|
|
153
|
+
const handleGoCreateAgent = ()=>{
|
|
170
154
|
handleClose();
|
|
171
155
|
emits('navigate', {
|
|
172
|
-
type:
|
|
156
|
+
type: SdkNavigateActionType.AgentList,
|
|
173
157
|
spaceId: formData.value.selectedSpaceId,
|
|
174
158
|
isShowCreateAgent: 1
|
|
175
159
|
});
|
|
176
160
|
};
|
|
177
|
-
|
|
161
|
+
const handleClose = ()=>{
|
|
178
162
|
var _a;
|
|
179
163
|
// 关闭弹窗
|
|
180
164
|
isShowPopover.value = false;
|
|
@@ -191,529 +175,284 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
191
175
|
// 清空表单验证
|
|
192
176
|
(_a = formRef.value) === null || _a === void 0 ? void 0 : _a.clearValidate();
|
|
193
177
|
};
|
|
194
|
-
|
|
178
|
+
const handleClickOutside = ()=>{
|
|
195
179
|
handleClose();
|
|
196
180
|
};
|
|
197
|
-
|
|
198
|
-
|
|
181
|
+
const handleSpaceSelectClickOutside = ()=>{
|
|
182
|
+
var _a, _b;
|
|
183
|
+
(_a = spaceSelectRef.value) === null || _a === void 0 ? void 0 : _a.hidePopover();
|
|
184
|
+
(_b = spaceSelectRef.value) === null || _b === void 0 ? void 0 : _b.handleBlur();
|
|
199
185
|
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
case 0:
|
|
205
|
-
if (!isShowPopover.value) {
|
|
206
|
-
_context.next = 1;
|
|
207
|
-
break;
|
|
208
|
-
}
|
|
209
|
-
return _context.abrupt("return");
|
|
210
|
-
case 1:
|
|
211
|
-
isShowPopover.value = true;
|
|
212
|
-
_context.next = 2;
|
|
213
|
-
return handleGetSpacesAndSetDefaultSpace();
|
|
214
|
-
case 2:
|
|
215
|
-
handleGetAgentsAndSetDefaultAgent();
|
|
216
|
-
case 3:
|
|
217
|
-
case "end":
|
|
218
|
-
return _context.stop();
|
|
219
|
-
}
|
|
220
|
-
}, _callee);
|
|
221
|
-
}));
|
|
186
|
+
const handleAgentSelectClickOutside = ()=>{
|
|
187
|
+
var _a, _b;
|
|
188
|
+
(_a = agentSelectRef.value) === null || _a === void 0 ? void 0 : _a.hidePopover();
|
|
189
|
+
(_b = agentSelectRef.value) === null || _b === void 0 ? void 0 : _b.handleBlur();
|
|
222
190
|
};
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
while(1)switch(_context2.prev = _context2.next){
|
|
228
|
-
case 0:
|
|
229
|
-
resourceId = props.resource.id;
|
|
230
|
-
if (!((_b = (_a = selectedAgent.relatedAgents) === null || _a === void 0 ? void 0 : _a.agents) === null || _b === void 0 ? void 0 : _b.find(function(agent) {
|
|
231
|
-
return agent.id === resourceId;
|
|
232
|
-
}))) {
|
|
233
|
-
_context2.next = 1;
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
return _context2.abrupt("return");
|
|
237
|
-
case 1:
|
|
238
|
-
_context2.next = 2;
|
|
239
|
-
return getAgent(resourceId);
|
|
240
|
-
case 2:
|
|
241
|
-
currentAgent = _context2.sent;
|
|
242
|
-
selfCommands = currentAgent.conversationSettings.commands.filter(function(cmd) {
|
|
243
|
-
return cmd.agentId === currentAgent.id;
|
|
244
|
-
});
|
|
245
|
-
relatedAgents = [].concat((0, _toConsumableArray2.default)((_c = selectedAgent.relatedAgents) === null || _c === void 0 ? void 0 : _c.agents), [
|
|
246
|
-
currentAgent
|
|
247
|
-
]);
|
|
248
|
-
_context2.next = 3;
|
|
249
|
-
return updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
250
|
-
relatedAgents: {
|
|
251
|
-
agents: relatedAgents
|
|
252
|
-
},
|
|
253
|
-
conversationSettings: Object.assign(Object.assign({}, selectedAgent.conversationSettings), {
|
|
254
|
-
commands: [].concat((0, _toConsumableArray2.default)(selectedAgent.conversationSettings.commands), (0, _toConsumableArray2.default)(selfCommands))
|
|
255
|
-
})
|
|
256
|
-
}));
|
|
257
|
-
case 3:
|
|
258
|
-
case "end":
|
|
259
|
-
return _context2.stop();
|
|
260
|
-
}
|
|
261
|
-
}, _callee2);
|
|
262
|
-
}));
|
|
191
|
+
const handleUpdateEnvs = (data)=>{
|
|
192
|
+
renderEnvs.value = [
|
|
193
|
+
...data
|
|
194
|
+
];
|
|
263
195
|
};
|
|
264
|
-
|
|
265
|
-
|
|
196
|
+
const handleShow = ()=>__awaiter(this, void 0, void 0, function*() {
|
|
197
|
+
if (isShowPopover.value) return;
|
|
198
|
+
isShowPopover.value = true;
|
|
199
|
+
yield handleGetSpacesAndSetDefaultSpace();
|
|
200
|
+
handleGetAgentsAndSetDefaultAgent();
|
|
201
|
+
});
|
|
202
|
+
const handleRelateAgentToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
203
|
+
var _a, _b, _c;
|
|
204
|
+
const resourceId = props.resource.id;
|
|
205
|
+
if ((_b = (_a = selectedAgent.relatedAgents) === null || _a === void 0 ? void 0 : _a.agents) === null || _b === void 0 ? void 0 : _b.find((agent)=>agent.id === resourceId)) return;
|
|
206
|
+
const currentAgent = yield getAgent(resourceId);
|
|
207
|
+
const selfCommands = currentAgent.conversationSettings.commands.filter((cmd)=>cmd.agentId === currentAgent.id);
|
|
208
|
+
const relatedAgents = [
|
|
209
|
+
...(_c = selectedAgent.relatedAgents) === null || _c === void 0 ? void 0 : _c.agents,
|
|
210
|
+
currentAgent
|
|
211
|
+
];
|
|
212
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
213
|
+
relatedAgents: {
|
|
214
|
+
agents: relatedAgents
|
|
215
|
+
},
|
|
216
|
+
conversationSettings: Object.assign(Object.assign({}, selectedAgent.conversationSettings), {
|
|
217
|
+
commands: [
|
|
218
|
+
...selectedAgent.conversationSettings.commands,
|
|
219
|
+
...selfCommands
|
|
220
|
+
]
|
|
221
|
+
})
|
|
222
|
+
}));
|
|
223
|
+
});
|
|
224
|
+
const handleRelateToolToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
266
225
|
var _a, _b, _c, _d;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
276
|
-
return _context3.abrupt("return");
|
|
277
|
-
case 1:
|
|
278
|
-
_context3.next = 2;
|
|
279
|
-
return updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
280
|
-
relatedTools: {
|
|
281
|
-
tools: [].concat((0, _toConsumableArray2.default)(((_c = selectedAgent.relatedTools) === null || _c === void 0 ? void 0 : _c.tools) || []), [
|
|
282
|
-
props.resource
|
|
283
|
-
]),
|
|
284
|
-
mcps: ((_d = selectedAgent.relatedTools) === null || _d === void 0 ? void 0 : _d.mcps) || []
|
|
285
|
-
}
|
|
286
|
-
}));
|
|
287
|
-
case 2:
|
|
288
|
-
case "end":
|
|
289
|
-
return _context3.stop();
|
|
290
|
-
}
|
|
291
|
-
}, _callee3);
|
|
292
|
-
}));
|
|
293
|
-
};
|
|
294
|
-
var handleRelateKnowledgebaseToAgent = function handleRelateKnowledgebaseToAgent(selectedAgent) {
|
|
295
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/ regeneratorRuntime.mark(function _callee4() {
|
|
296
|
-
var _a, _b, _c, targetKb, isAlreadyRelated;
|
|
297
|
-
return regeneratorRuntime.wrap(function(_context4) {
|
|
298
|
-
while(1)switch(_context4.prev = _context4.next){
|
|
299
|
-
case 0:
|
|
300
|
-
targetKb = props.resource;
|
|
301
|
-
isAlreadyRelated = (_b = (_a = selectedAgent.knowledgebaseSettings) === null || _a === void 0 ? void 0 : _a.knowledgebases) === null || _b === void 0 ? void 0 : _b.find(function(knowledgebase) {
|
|
302
|
-
return knowledgebase.id === targetKb.id;
|
|
303
|
-
});
|
|
304
|
-
if (!isAlreadyRelated) {
|
|
305
|
-
_context4.next = 1;
|
|
306
|
-
break;
|
|
307
|
-
}
|
|
308
|
-
return _context4.abrupt("return");
|
|
309
|
-
case 1:
|
|
310
|
-
_context4.next = 2;
|
|
311
|
-
return updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
312
|
-
knowledgebaseSettings: Object.assign(Object.assign({}, selectedAgent.knowledgebaseSettings), {
|
|
313
|
-
knowledgebases: [].concat((0, _toConsumableArray2.default)(((_c = selectedAgent.knowledgebaseSettings) === null || _c === void 0 ? void 0 : _c.knowledgebases) || []), [
|
|
314
|
-
targetKb
|
|
315
|
-
])
|
|
316
|
-
})
|
|
317
|
-
}));
|
|
318
|
-
case 2:
|
|
319
|
-
case "end":
|
|
320
|
-
return _context4.stop();
|
|
226
|
+
if ((_b = (_a = selectedAgent.relatedTools) === null || _a === void 0 ? void 0 : _a.tools) === null || _b === void 0 ? void 0 : _b.find((tool)=>tool.id === props.resource.id)) return;
|
|
227
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
228
|
+
relatedTools: {
|
|
229
|
+
tools: [
|
|
230
|
+
...((_c = selectedAgent.relatedTools) === null || _c === void 0 ? void 0 : _c.tools) || [],
|
|
231
|
+
props.resource
|
|
232
|
+
],
|
|
233
|
+
mcps: ((_d = selectedAgent.relatedTools) === null || _d === void 0 ? void 0 : _d.mcps) || []
|
|
321
234
|
}
|
|
322
|
-
}
|
|
323
|
-
})
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
235
|
+
}));
|
|
236
|
+
});
|
|
237
|
+
const handleRelateKnowledgebaseToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
238
|
+
var _a, _b, _c;
|
|
239
|
+
const targetKb = props.resource;
|
|
240
|
+
const isAlreadyRelated = (_b = (_a = selectedAgent.knowledgebaseSettings) === null || _a === void 0 ? void 0 : _a.knowledgebases) === null || _b === void 0 ? void 0 : _b.find((knowledgebase)=>knowledgebase.id === targetKb.id);
|
|
241
|
+
if (isAlreadyRelated) return;
|
|
242
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
243
|
+
knowledgebaseSettings: Object.assign(Object.assign({}, selectedAgent.knowledgebaseSettings), {
|
|
244
|
+
knowledgebases: [
|
|
245
|
+
...((_c = selectedAgent.knowledgebaseSettings) === null || _c === void 0 ? void 0 : _c.knowledgebases) || [],
|
|
246
|
+
targetKb
|
|
247
|
+
]
|
|
248
|
+
})
|
|
249
|
+
}));
|
|
250
|
+
});
|
|
251
|
+
const handleRelateMcpToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
327
252
|
var _a, _b, _c, _d;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
}
|
|
337
|
-
return _context5.abrupt("return");
|
|
338
|
-
case 1:
|
|
339
|
-
_context5.next = 2;
|
|
340
|
-
return updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
341
|
-
relatedTools: {
|
|
342
|
-
tools: ((_c = selectedAgent.relatedTools) === null || _c === void 0 ? void 0 : _c.tools) || [],
|
|
343
|
-
mcps: [].concat((0, _toConsumableArray2.default)(((_d = selectedAgent.relatedTools) === null || _d === void 0 ? void 0 : _d.mcps) || []), [
|
|
344
|
-
props.resource
|
|
345
|
-
])
|
|
346
|
-
}
|
|
347
|
-
}));
|
|
348
|
-
case 2:
|
|
349
|
-
case "end":
|
|
350
|
-
return _context5.stop();
|
|
253
|
+
if ((_b = (_a = selectedAgent.relatedTools) === null || _a === void 0 ? void 0 : _a.mcps) === null || _b === void 0 ? void 0 : _b.find((mcp)=>mcp.id === props.resource.id && mcp.mcpType === props.resource.mcpType)) return;
|
|
254
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
255
|
+
relatedTools: {
|
|
256
|
+
tools: ((_c = selectedAgent.relatedTools) === null || _c === void 0 ? void 0 : _c.tools) || [],
|
|
257
|
+
mcps: [
|
|
258
|
+
...((_d = selectedAgent.relatedTools) === null || _d === void 0 ? void 0 : _d.mcps) || [],
|
|
259
|
+
props.resource
|
|
260
|
+
]
|
|
351
261
|
}
|
|
352
|
-
}
|
|
353
|
-
})
|
|
354
|
-
|
|
355
|
-
var handleRelateSkillToAgent = function handleRelateSkillToAgent(selectedAgent) {
|
|
356
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/ regeneratorRuntime.mark(function _callee6() {
|
|
262
|
+
}));
|
|
263
|
+
});
|
|
264
|
+
const handleRelateSkillToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
357
265
|
var _a, _b, _c;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
})
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
return _context6.abrupt("return");
|
|
368
|
-
case 1:
|
|
369
|
-
_context6.next = 2;
|
|
370
|
-
return updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
371
|
-
relatedSkills: {
|
|
372
|
-
skills: [].concat((0, _toConsumableArray2.default)((_c = selectedAgent.relatedSkills) === null || _c === void 0 ? void 0 : _c.skills), [
|
|
373
|
-
Object.assign(Object.assign({}, props.resource), {
|
|
374
|
-
envs: renderEnvs.value
|
|
375
|
-
})
|
|
376
|
-
])
|
|
377
|
-
}
|
|
378
|
-
}));
|
|
379
|
-
case 2:
|
|
380
|
-
case "end":
|
|
381
|
-
return _context6.stop();
|
|
266
|
+
if ((_b = (_a = selectedAgent.relatedSkills) === null || _a === void 0 ? void 0 : _a.skills) === null || _b === void 0 ? void 0 : _b.find((skill)=>skill.id === props.resource.id)) return;
|
|
267
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
268
|
+
relatedSkills: {
|
|
269
|
+
skills: [
|
|
270
|
+
...(_c = selectedAgent.relatedSkills) === null || _c === void 0 ? void 0 : _c.skills,
|
|
271
|
+
Object.assign(Object.assign({}, props.resource), {
|
|
272
|
+
envs: renderEnvs.value
|
|
273
|
+
})
|
|
274
|
+
]
|
|
382
275
|
}
|
|
383
|
-
}
|
|
384
|
-
})
|
|
385
|
-
|
|
386
|
-
var handleRelateLLMToAgent = function handleRelateLLMToAgent(selectedAgent) {
|
|
387
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/ regeneratorRuntime.mark(function _callee7() {
|
|
276
|
+
}));
|
|
277
|
+
});
|
|
278
|
+
const handleRelateLLMToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
388
279
|
var _a, _b, _c;
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
collectionContent: collection.content
|
|
453
|
-
})
|
|
454
|
-
}));
|
|
455
|
-
case 2:
|
|
456
|
-
case "end":
|
|
457
|
-
return _context9.stop();
|
|
458
|
-
}
|
|
459
|
-
}, _callee9);
|
|
460
|
-
}));
|
|
461
|
-
};
|
|
462
|
-
var handleBindAndNavigate = function handleBindAndNavigate(selectedAgent) {
|
|
463
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/ regeneratorRuntime.mark(function _callee0() {
|
|
464
|
-
var _a, relateMap;
|
|
465
|
-
return regeneratorRuntime.wrap(function(_context0) {
|
|
466
|
-
while(1)switch(_context0.prev = _context0.next){
|
|
467
|
-
case 0:
|
|
468
|
-
relateMap = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _enum.Module.Agent, handleRelateAgentToAgent), _enum.Module.Mcp, handleRelateMcpToAgent), _enum.Module.Tool, handleRelateToolToAgent), _enum.Module.Skill, handleRelateSkillToAgent), _enum.Module.LLM, handleRelateLLMToAgent), _enum.Module.Knowledgebase, handleRelateKnowledgebaseToAgent), _enum.Module.Prompt, handleRelatePromptToAgent), _enum.Module.Collection, handleRelateCollectionToAgent);
|
|
469
|
-
_context0.next = 1;
|
|
470
|
-
return (_a = relateMap[props.resourceType]) === null || _a === void 0 ? void 0 : _a.call(relateMap, selectedAgent);
|
|
471
|
-
case 1:
|
|
472
|
-
emits('navigate', {
|
|
473
|
-
type: _enum.SdkNavigateActionType.AgentDetailSetting,
|
|
474
|
-
id: formData.value.selectedAgentId,
|
|
475
|
-
spaceId: formData.value.selectedSpaceId,
|
|
476
|
-
isNewTab: true
|
|
477
|
-
});
|
|
478
|
-
handleClose();
|
|
479
|
-
case 2:
|
|
480
|
-
case "end":
|
|
481
|
-
return _context0.stop();
|
|
482
|
-
}
|
|
483
|
-
}, _callee0);
|
|
484
|
-
}));
|
|
485
|
-
};
|
|
486
|
-
var handleConfirm = function handleConfirm() {
|
|
487
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/ regeneratorRuntime.mark(function _callee1() {
|
|
488
|
-
var _a, selectedAgent, _t;
|
|
489
|
-
return regeneratorRuntime.wrap(function(_context1) {
|
|
490
|
-
while(1)switch(_context1.prev = _context1.next){
|
|
491
|
-
case 0:
|
|
492
|
-
_context1.prev = 0;
|
|
493
|
-
_context1.next = 1;
|
|
494
|
-
return (_a = formRef.value) === null || _a === void 0 ? void 0 : _a.validate();
|
|
495
|
-
case 1:
|
|
496
|
-
if (!(hasMcpPermission.value === false || hasUnfilledRequiredEnv.value)) {
|
|
497
|
-
_context1.next = 2;
|
|
498
|
-
break;
|
|
499
|
-
}
|
|
500
|
-
// 没有权限或必填环境变量未配置,显示弹窗
|
|
501
|
-
isShowConfirm.value = true;
|
|
502
|
-
_context1.next = 4;
|
|
503
|
-
break;
|
|
504
|
-
case 2:
|
|
505
|
-
// 有权限且必填环境变量已配置,绑定并跳转
|
|
506
|
-
isLoadingConfirm.value = true;
|
|
507
|
-
_context1.next = 3;
|
|
508
|
-
return getAgent(formData.value.selectedAgentId);
|
|
509
|
-
case 3:
|
|
510
|
-
selectedAgent = _context1.sent;
|
|
511
|
-
_context1.next = 4;
|
|
512
|
-
return handleBindAndNavigate(selectedAgent);
|
|
513
|
-
case 4:
|
|
514
|
-
_context1.next = 6;
|
|
515
|
-
break;
|
|
516
|
-
case 5:
|
|
517
|
-
_context1.prev = 5;
|
|
518
|
-
_t = _context1["catch"](0);
|
|
519
|
-
console.error(_t);
|
|
520
|
-
case 6:
|
|
521
|
-
_context1.prev = 6;
|
|
522
|
-
isLoadingConfirm.value = false;
|
|
523
|
-
return _context1.finish(6);
|
|
524
|
-
case 7:
|
|
525
|
-
case "end":
|
|
526
|
-
return _context1.stop();
|
|
280
|
+
if (((_a = selectedAgent.promptSetting) === null || _a === void 0 ? void 0 : _a.llmCode) === ((_b = props.resource) === null || _b === void 0 ? void 0 : _b.llmCode)) return;
|
|
281
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
282
|
+
promptSetting: Object.assign(Object.assign({}, selectedAgent.promptSetting), {
|
|
283
|
+
llmCode: (_c = props.resource) === null || _c === void 0 ? void 0 : _c.llmCode
|
|
284
|
+
})
|
|
285
|
+
}));
|
|
286
|
+
});
|
|
287
|
+
const handleRelatePromptToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
288
|
+
const prompt = props.resource;
|
|
289
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
290
|
+
promptSetting: Object.assign(Object.assign({}, selectedAgent.promptSetting), {
|
|
291
|
+
promptType: PromptSource.UserDefine,
|
|
292
|
+
promptContent: prompt.content
|
|
293
|
+
})
|
|
294
|
+
}));
|
|
295
|
+
});
|
|
296
|
+
const handleRelateCollectionToAgent = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
297
|
+
var _a;
|
|
298
|
+
const collection = props.resource;
|
|
299
|
+
if (((_a = selectedAgent.promptSetting) === null || _a === void 0 ? void 0 : _a.collectionId) === collection.id) return;
|
|
300
|
+
yield updateAgent(Object.assign(Object.assign({}, selectedAgent), {
|
|
301
|
+
promptSetting: Object.assign(Object.assign({}, selectedAgent.promptSetting), {
|
|
302
|
+
promptType: PromptSource.Collection,
|
|
303
|
+
collectionId: collection.id,
|
|
304
|
+
collectionName: collection.name,
|
|
305
|
+
collectionVariables: collection.variables,
|
|
306
|
+
collectionContent: collection.content
|
|
307
|
+
})
|
|
308
|
+
}));
|
|
309
|
+
});
|
|
310
|
+
const handleBindAndNavigate = (selectedAgent)=>__awaiter(this, void 0, void 0, function*() {
|
|
311
|
+
var _a;
|
|
312
|
+
const relateMap = {
|
|
313
|
+
[Module.Agent]: handleRelateAgentToAgent,
|
|
314
|
+
[Module.Mcp]: handleRelateMcpToAgent,
|
|
315
|
+
[Module.Tool]: handleRelateToolToAgent,
|
|
316
|
+
[Module.Skill]: handleRelateSkillToAgent,
|
|
317
|
+
[Module.LLM]: handleRelateLLMToAgent,
|
|
318
|
+
[Module.Knowledgebase]: handleRelateKnowledgebaseToAgent,
|
|
319
|
+
[Module.Prompt]: handleRelatePromptToAgent,
|
|
320
|
+
[Module.Collection]: handleRelateCollectionToAgent
|
|
321
|
+
};
|
|
322
|
+
yield (_a = relateMap[props.resourceType]) === null || _a === void 0 ? void 0 : _a.call(relateMap, selectedAgent);
|
|
323
|
+
emits('navigate', {
|
|
324
|
+
type: SdkNavigateActionType.AgentDetailSetting,
|
|
325
|
+
id: formData.value.selectedAgentId,
|
|
326
|
+
spaceId: formData.value.selectedSpaceId,
|
|
327
|
+
isNewTab: true
|
|
328
|
+
});
|
|
329
|
+
handleClose();
|
|
330
|
+
});
|
|
331
|
+
const handleConfirm = ()=>__awaiter(this, void 0, void 0, function*() {
|
|
332
|
+
var _a;
|
|
333
|
+
try {
|
|
334
|
+
yield (_a = formRef.value) === null || _a === void 0 ? void 0 : _a.validate();
|
|
335
|
+
if (hasMcpPermission.value === false || hasUnfilledRequiredEnv.value) {
|
|
336
|
+
// 没有权限或必填环境变量未配置,显示弹窗
|
|
337
|
+
isShowConfirm.value = true;
|
|
338
|
+
} else {
|
|
339
|
+
// 有权限且必填环境变量已配置,绑定并跳转
|
|
340
|
+
isLoadingConfirm.value = true;
|
|
341
|
+
const selectedAgent = yield getAgent(formData.value.selectedAgentId);
|
|
342
|
+
yield handleBindAndNavigate(selectedAgent);
|
|
527
343
|
}
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}));
|
|
537
|
-
};
|
|
538
|
-
var handlePopoverConfirm = function handlePopoverConfirm() {
|
|
539
|
-
if (props.resourceType === _enum.Module.Skill) {
|
|
344
|
+
} catch (error) {
|
|
345
|
+
console.error(error);
|
|
346
|
+
} finally{
|
|
347
|
+
isLoadingConfirm.value = false;
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
const handlePopoverConfirm = ()=>{
|
|
351
|
+
if (props.resourceType === Module.Skill) {
|
|
540
352
|
handleValidateSkillAndConfirm();
|
|
541
353
|
}
|
|
542
|
-
if (props.resourceType ===
|
|
354
|
+
if (props.resourceType === Module.Mcp) {
|
|
543
355
|
handleApplyPermissionAndConfirm();
|
|
544
356
|
}
|
|
545
357
|
};
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
1,
|
|
582
|
-
5,
|
|
583
|
-
6,
|
|
584
|
-
7
|
|
585
|
-
]
|
|
586
|
-
]);
|
|
587
|
-
}));
|
|
588
|
-
};
|
|
589
|
-
var handleApplyPermissionAndConfirm = function handleApplyPermissionAndConfirm() {
|
|
590
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/ regeneratorRuntime.mark(function _callee11() {
|
|
591
|
-
var selectedAgent, resource, _t3;
|
|
592
|
-
return regeneratorRuntime.wrap(function(_context11) {
|
|
593
|
-
while(1)switch(_context11.prev = _context11.next){
|
|
594
|
-
case 0:
|
|
595
|
-
isLoadingConfirm.value = true;
|
|
596
|
-
_context11.prev = 1;
|
|
597
|
-
_context11.next = 2;
|
|
598
|
-
return getAgent(formData.value.selectedAgentId);
|
|
599
|
-
case 2:
|
|
600
|
-
selectedAgent = _context11.sent;
|
|
601
|
-
resource = [
|
|
602
|
-
{
|
|
603
|
-
resourceType: _enum.Module.Mcp,
|
|
604
|
-
resourceCode: props.resource.mcpCode
|
|
605
|
-
}
|
|
606
|
-
];
|
|
607
|
-
_context11.next = 3;
|
|
608
|
-
return resourceApply(resource, selectedAgent.id);
|
|
609
|
-
case 3:
|
|
610
|
-
_context11.next = 4;
|
|
611
|
-
return handleBindAndNavigate(selectedAgent);
|
|
612
|
-
case 4:
|
|
613
|
-
isShowConfirm.value = false;
|
|
614
|
-
_context11.next = 6;
|
|
615
|
-
break;
|
|
616
|
-
case 5:
|
|
617
|
-
_context11.prev = 5;
|
|
618
|
-
_t3 = _context11["catch"](1);
|
|
619
|
-
console.error(_t3);
|
|
620
|
-
case 6:
|
|
621
|
-
_context11.prev = 6;
|
|
622
|
-
isLoadingConfirm.value = false;
|
|
623
|
-
return _context11.finish(6);
|
|
624
|
-
case 7:
|
|
625
|
-
case "end":
|
|
626
|
-
return _context11.stop();
|
|
627
|
-
}
|
|
628
|
-
}, _callee11, null, [
|
|
629
|
-
[
|
|
630
|
-
1,
|
|
631
|
-
5,
|
|
632
|
-
6,
|
|
633
|
-
7
|
|
634
|
-
]
|
|
635
|
-
]);
|
|
636
|
-
}));
|
|
637
|
-
};
|
|
638
|
-
var handleCheckConfirm = function handleCheckConfirm() {
|
|
639
|
-
if ((0, _util.isEmpty)(formData.value.selectedAgentId)) {
|
|
358
|
+
const handleValidateSkillAndConfirm = ()=>__awaiter(this, void 0, void 0, function*() {
|
|
359
|
+
var _a;
|
|
360
|
+
isLoadingConfirm.value = true;
|
|
361
|
+
try {
|
|
362
|
+
yield (_a = variableFormRef.value) === null || _a === void 0 ? void 0 : _a.validate();
|
|
363
|
+
const selectedAgent = yield getAgent(formData.value.selectedAgentId);
|
|
364
|
+
yield handleBindAndNavigate(selectedAgent);
|
|
365
|
+
isShowConfirm.value = false;
|
|
366
|
+
} catch (error) {
|
|
367
|
+
console.error(error);
|
|
368
|
+
} finally{
|
|
369
|
+
isLoadingConfirm.value = false;
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
const handleApplyPermissionAndConfirm = ()=>__awaiter(this, void 0, void 0, function*() {
|
|
373
|
+
isLoadingConfirm.value = true;
|
|
374
|
+
try {
|
|
375
|
+
const selectedAgent = yield getAgent(formData.value.selectedAgentId);
|
|
376
|
+
const resource = [
|
|
377
|
+
{
|
|
378
|
+
resourceType: Module.Mcp,
|
|
379
|
+
resourceCode: props.resource.mcpCode
|
|
380
|
+
}
|
|
381
|
+
];
|
|
382
|
+
yield resourceApply(resource, selectedAgent.id);
|
|
383
|
+
yield handleBindAndNavigate(selectedAgent);
|
|
384
|
+
isShowConfirm.value = false;
|
|
385
|
+
} catch (error) {
|
|
386
|
+
console.error(error);
|
|
387
|
+
} finally{
|
|
388
|
+
isLoadingConfirm.value = false;
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
const handleCheckConfirm = ()=>{
|
|
392
|
+
if (isEmpty(formData.value.selectedAgentId)) {
|
|
640
393
|
return;
|
|
641
394
|
}
|
|
642
|
-
if (props.resourceType ===
|
|
395
|
+
if (props.resourceType === Module.Skill) {
|
|
643
396
|
handleCheckSkillEnvs();
|
|
644
397
|
}
|
|
645
|
-
if (props.resourceType ===
|
|
398
|
+
if (props.resourceType === Module.Mcp) {
|
|
646
399
|
handleCheckMcpPermission();
|
|
647
400
|
}
|
|
648
401
|
};
|
|
649
402
|
// 检查是否有必填的环境变量
|
|
650
|
-
|
|
651
|
-
return __awaiter(_this, void 0, void 0, /*#__PURE__*/ regeneratorRuntime.mark(function _callee12() {
|
|
403
|
+
const handleCheckSkillEnvs = ()=>__awaiter(this, void 0, void 0, function*() {
|
|
652
404
|
var _a, _b;
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
return Object.assign(Object.assign({}, env), {
|
|
659
|
-
value: env.default
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
return env;
|
|
663
|
-
});
|
|
664
|
-
hasUnfilledRequiredEnv.value = renderEnvs.value.some(function(env) {
|
|
665
|
-
return env.required && (0, _util.isEmpty)(env.value);
|
|
666
|
-
});
|
|
667
|
-
if (hasUnfilledRequiredEnv.value) {
|
|
668
|
-
isLoadingConfirm.value = true;
|
|
669
|
-
getAgent(formData.value.selectedAgentId).then(function(agent) {
|
|
670
|
-
var _a;
|
|
671
|
-
var isAlreadyRelated = (_a = agent.relatedSkills) === null || _a === void 0 ? void 0 : _a.skills.find(function(skill) {
|
|
672
|
-
return skill.id === props.resource.id;
|
|
673
|
-
});
|
|
674
|
-
if (isAlreadyRelated) {
|
|
675
|
-
hasUnfilledRequiredEnv.value = false;
|
|
676
|
-
renderEnvs.value = [];
|
|
677
|
-
}
|
|
678
|
-
}).finally(function() {
|
|
679
|
-
isLoadingConfirm.value = false;
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
case 1:
|
|
683
|
-
case "end":
|
|
684
|
-
return _context12.stop();
|
|
405
|
+
renderEnvs.value = (_b = (_a = props.resource.bkaiDependencies) === null || _a === void 0 ? void 0 : _a.envs) === null || _b === void 0 ? void 0 : _b.map((env)=>{
|
|
406
|
+
if (isEmpty(env.value) && !isEmpty(env.default)) {
|
|
407
|
+
return Object.assign(Object.assign({}, env), {
|
|
408
|
+
value: env.default
|
|
409
|
+
});
|
|
685
410
|
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
411
|
+
return env;
|
|
412
|
+
});
|
|
413
|
+
hasUnfilledRequiredEnv.value = renderEnvs.value.some((env)=>env.required && isEmpty(env.value));
|
|
414
|
+
if (hasUnfilledRequiredEnv.value) {
|
|
415
|
+
isLoadingConfirm.value = true;
|
|
416
|
+
getAgent(formData.value.selectedAgentId).then((agent)=>{
|
|
417
|
+
var _a;
|
|
418
|
+
const isAlreadyRelated = (_a = agent.relatedSkills) === null || _a === void 0 ? void 0 : _a.skills.find((skill)=>skill.id === props.resource.id);
|
|
419
|
+
if (isAlreadyRelated) {
|
|
420
|
+
hasUnfilledRequiredEnv.value = false;
|
|
421
|
+
renderEnvs.value = [];
|
|
422
|
+
}
|
|
423
|
+
}).finally(()=>{
|
|
424
|
+
isLoadingConfirm.value = false;
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
});
|
|
689
428
|
// 检查 MCP 权限
|
|
690
|
-
|
|
429
|
+
const handleCheckMcpPermission = ()=>{
|
|
691
430
|
isLoadingConfirm.value = true;
|
|
692
|
-
|
|
693
|
-
getAgentMcpPermission(formData.value.selectedAgentId, mcp.mcpCode, mcp.mcpType).then(
|
|
694
|
-
hasMcpPermission.value = res.status !==
|
|
695
|
-
}).catch(
|
|
431
|
+
const mcp = props.resource;
|
|
432
|
+
getAgentMcpPermission(formData.value.selectedAgentId, mcp.mcpCode, mcp.mcpType).then((res)=>{
|
|
433
|
+
hasMcpPermission.value = res.status !== ResourceStatus.NoPermission;
|
|
434
|
+
}).catch(()=>{
|
|
696
435
|
hasMcpPermission.value = undefined;
|
|
697
|
-
}).finally(
|
|
436
|
+
}).finally(()=>{
|
|
698
437
|
isLoadingConfirm.value = false;
|
|
699
438
|
});
|
|
700
439
|
};
|
|
701
|
-
|
|
440
|
+
const handleCancelApply = ()=>{
|
|
702
441
|
isShowConfirm.value = false;
|
|
703
442
|
};
|
|
704
443
|
handleInitClickoutside('render-relate-agent-popover', handleClickOutside);
|
|
705
|
-
(
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
return
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
return (
|
|
444
|
+
handleInitSpaceSelectClickoutside('space-select', handleSpaceSelectClickOutside);
|
|
445
|
+
handleInitAgentSelectClickoutside('agent-select', handleAgentSelectClickOutside);
|
|
446
|
+
watch(()=>formData.value.selectedAgentId, handleCheckConfirm);
|
|
447
|
+
return (_ctx, _cache)=>{
|
|
448
|
+
const _component_bk_button = _resolveComponent("bk-button");
|
|
449
|
+
const _component_bk_select = _resolveComponent("bk-select");
|
|
450
|
+
const _component_bk_form_item = _resolveComponent("bk-form-item");
|
|
451
|
+
const _component_bk_form = _resolveComponent("bk-form");
|
|
452
|
+
const _component_bk_pop_confirm = _resolveComponent("bk-pop-confirm");
|
|
453
|
+
const _component_bk_popover = _resolveComponent("bk-popover");
|
|
454
|
+
const _directive_bk_tooltips = _resolveDirective("bk-tooltips");
|
|
455
|
+
return _openBlock(), _createBlock(_component_bk_popover, {
|
|
717
456
|
placement: props.placement,
|
|
718
457
|
boundary: props.boundary,
|
|
719
458
|
"is-show": isShowPopover.value,
|
|
@@ -722,38 +461,37 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
722
461
|
width: "400",
|
|
723
462
|
"ext-cls": "render-relate-agent-popover"
|
|
724
463
|
}, {
|
|
725
|
-
content: (
|
|
726
|
-
|
|
727
|
-
_cache[5] || (_cache[5] = (0, _vue.createElementVNode)("span", {
|
|
464
|
+
content: _withCtx(()=>[
|
|
465
|
+
_cache[5] || (_cache[5] = _createElementVNode("span", {
|
|
728
466
|
class: "g-text-16 g-text-black g-leading-24"
|
|
729
467
|
}, " 关联至智能体 ", -1 /* CACHED */ )),
|
|
730
|
-
(
|
|
468
|
+
_createVNode(_component_bk_form, {
|
|
731
469
|
model: formData.value,
|
|
732
470
|
ref_key: "formRef",
|
|
733
471
|
ref: formRef,
|
|
734
472
|
"form-type": "vertical",
|
|
735
473
|
class: "g-small-form g-small-gap-form !g-mt-16"
|
|
736
474
|
}, {
|
|
737
|
-
default: (
|
|
738
|
-
|
|
739
|
-
(0, _vue.createVNode)(_component_bk_form_item, {
|
|
475
|
+
default: _withCtx(()=>[
|
|
476
|
+
_createVNode(_component_bk_form_item, {
|
|
740
477
|
label: "空间",
|
|
741
478
|
property: "selectedSpaceId",
|
|
742
479
|
required: ""
|
|
743
480
|
}, {
|
|
744
|
-
default: (
|
|
745
|
-
|
|
746
|
-
(0, _vue.createVNode)(_component_bk_select, {
|
|
481
|
+
default: _withCtx(()=>[
|
|
482
|
+
_createVNode(_component_bk_select, {
|
|
747
483
|
modelValue: formData.value.selectedSpaceId,
|
|
748
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] =
|
|
749
|
-
return formData.value.selectedSpaceId = $event;
|
|
750
|
-
}),
|
|
484
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>formData.value.selectedSpaceId = $event),
|
|
751
485
|
clearable: false,
|
|
752
486
|
loading: isLoadingSpaces.value,
|
|
753
487
|
list: spaces.value,
|
|
754
488
|
"popover-options": {
|
|
755
|
-
boundary: 'parent'
|
|
489
|
+
boundary: 'parent',
|
|
490
|
+
extCls: 'space-select'
|
|
756
491
|
},
|
|
492
|
+
class: "space-select",
|
|
493
|
+
ref_key: "spaceSelectRef",
|
|
494
|
+
ref: spaceSelectRef,
|
|
757
495
|
filterable: "",
|
|
758
496
|
"id-key": "spaceId",
|
|
759
497
|
"display-key": "spaceName",
|
|
@@ -763,41 +501,39 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
763
501
|
"loading",
|
|
764
502
|
"list"
|
|
765
503
|
])
|
|
766
|
-
]
|
|
767
|
-
}),
|
|
504
|
+
]),
|
|
768
505
|
_: 1 /* STABLE */
|
|
769
506
|
}),
|
|
770
|
-
(
|
|
507
|
+
_createVNode(_component_bk_form_item, {
|
|
771
508
|
label: "智能体",
|
|
772
509
|
property: "selectedAgentId",
|
|
773
510
|
required: ""
|
|
774
511
|
}, {
|
|
775
|
-
default: (
|
|
776
|
-
|
|
777
|
-
(0, _vue.createVNode)(_component_bk_select, {
|
|
512
|
+
default: _withCtx(()=>[
|
|
513
|
+
_createVNode(_component_bk_select, {
|
|
778
514
|
modelValue: formData.value.selectedAgentId,
|
|
779
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] =
|
|
780
|
-
|
|
781
|
-
}),
|
|
782
|
-
"no-data-text": "\u6682\u65E0\u672A\u5173\u8054\u8BE5".concat((0, _vue.unref)(_constants.MODULE_NAME)[props.resourceType], "\u7684\u667A\u80FD\u4F53"),
|
|
515
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>formData.value.selectedAgentId = $event),
|
|
516
|
+
"no-data-text": `暂无未关联该${_unref(MODULE_NAME)[props.resourceType]}的智能体`,
|
|
783
517
|
clearable: false,
|
|
784
518
|
list: agents.value,
|
|
785
519
|
loading: isLoadingAgents.value,
|
|
786
520
|
"popover-options": {
|
|
787
|
-
boundary: 'parent'
|
|
521
|
+
boundary: 'parent',
|
|
522
|
+
extCls: 'agent-select'
|
|
788
523
|
},
|
|
524
|
+
class: "agent-select",
|
|
525
|
+
ref_key: "agentSelectRef",
|
|
526
|
+
ref: agentSelectRef,
|
|
789
527
|
filterable: "",
|
|
790
528
|
"id-key": "id",
|
|
791
529
|
"display-key": "agentName"
|
|
792
530
|
}, {
|
|
793
|
-
extension: (
|
|
794
|
-
|
|
795
|
-
(0, _vue.createVNode)(_index.default, {
|
|
531
|
+
extension: _withCtx(()=>[
|
|
532
|
+
_createVNode(RenderSelectPlusExtension, {
|
|
796
533
|
text: "去新建",
|
|
797
534
|
onClick: handleGoCreateAgent
|
|
798
535
|
})
|
|
799
|
-
]
|
|
800
|
-
}),
|
|
536
|
+
]),
|
|
801
537
|
_: 1 /* STABLE */
|
|
802
538
|
}, 8 /* PROPS */ , [
|
|
803
539
|
"modelValue",
|
|
@@ -805,18 +541,16 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
805
541
|
"list",
|
|
806
542
|
"loading"
|
|
807
543
|
])
|
|
808
|
-
]
|
|
809
|
-
}),
|
|
544
|
+
]),
|
|
810
545
|
_: 1 /* STABLE */
|
|
811
546
|
})
|
|
812
|
-
]
|
|
813
|
-
}),
|
|
547
|
+
]),
|
|
814
548
|
_: 1 /* STABLE */
|
|
815
549
|
}, 8 /* PROPS */ , [
|
|
816
550
|
"model"
|
|
817
551
|
]),
|
|
818
|
-
(
|
|
819
|
-
(
|
|
552
|
+
_createElementVNode("section", _hoisted_1, [
|
|
553
|
+
_createVNode(_component_bk_pop_confirm, {
|
|
820
554
|
width: getWidth(),
|
|
821
555
|
title: getTitle(),
|
|
822
556
|
content: getContent(),
|
|
@@ -831,24 +565,22 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
831
565
|
onConfirm: handlePopoverConfirm,
|
|
832
566
|
onCancel: handleCancelApply
|
|
833
567
|
}, {
|
|
834
|
-
default: (
|
|
835
|
-
|
|
836
|
-
(0, _vue.createVNode)(_component_bk_button, {
|
|
568
|
+
default: _withCtx(()=>[
|
|
569
|
+
_createVNode(_component_bk_button, {
|
|
837
570
|
loading: isLoadingConfirm.value,
|
|
838
571
|
theme: "primary",
|
|
839
572
|
onClick: handleConfirm
|
|
840
573
|
}, {
|
|
841
|
-
default: (
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
574
|
+
default: _withCtx(()=>[
|
|
575
|
+
..._cache[3] || (_cache[3] = [
|
|
576
|
+
_createTextVNode(" 保存并去智能体调试 ", -1 /* CACHED */ )
|
|
577
|
+
])
|
|
578
|
+
]),
|
|
846
579
|
_: 1 /* STABLE */
|
|
847
580
|
}, 8 /* PROPS */ , [
|
|
848
581
|
"loading"
|
|
849
582
|
])
|
|
850
|
-
]
|
|
851
|
-
}),
|
|
583
|
+
]),
|
|
852
584
|
_: 1 /* STABLE */
|
|
853
585
|
}, 8 /* PROPS */ , [
|
|
854
586
|
"width",
|
|
@@ -857,43 +589,42 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
857
589
|
"is-show",
|
|
858
590
|
"confirm-config"
|
|
859
591
|
]),
|
|
860
|
-
(
|
|
592
|
+
_createVNode(_component_bk_button, {
|
|
861
593
|
class: "g-ml-8",
|
|
862
594
|
onClick: handleClose
|
|
863
595
|
}, {
|
|
864
|
-
default: (
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
596
|
+
default: _withCtx(()=>[
|
|
597
|
+
..._cache[4] || (_cache[4] = [
|
|
598
|
+
_createTextVNode(" 取消 ", -1 /* CACHED */ )
|
|
599
|
+
])
|
|
600
|
+
]),
|
|
869
601
|
_: 1 /* STABLE */
|
|
870
602
|
})
|
|
871
603
|
])
|
|
872
|
-
]
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
return [
|
|
876
|
-
(0, _vue.renderSlot)(_ctx.$slots, "trigger", {
|
|
604
|
+
]),
|
|
605
|
+
default: _withCtx(()=>[
|
|
606
|
+
_renderSlot(_ctx.$slots, "trigger", {
|
|
877
607
|
handleShow: handleShow
|
|
878
|
-
},
|
|
879
|
-
|
|
880
|
-
(0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_bk_button, {
|
|
608
|
+
}, ()=>[
|
|
609
|
+
_withDirectives((_openBlock(), _createBlock(_component_bk_button, {
|
|
881
610
|
disabled: props.disabled,
|
|
882
|
-
text: props.
|
|
611
|
+
text: props.isTextButton,
|
|
612
|
+
theme: __props.theme,
|
|
883
613
|
size: "small",
|
|
884
|
-
onClick: (
|
|
614
|
+
onClick: _withModifiers(handleShow, [
|
|
885
615
|
"stop"
|
|
886
616
|
])
|
|
887
617
|
}, {
|
|
888
|
-
default: (
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
618
|
+
default: _withCtx(()=>[
|
|
619
|
+
..._cache[2] || (_cache[2] = [
|
|
620
|
+
_createTextVNode(" 关联至智能体 ", -1 /* CACHED */ )
|
|
621
|
+
])
|
|
622
|
+
]),
|
|
893
623
|
_: 1 /* STABLE */
|
|
894
624
|
}, 8 /* PROPS */ , [
|
|
895
625
|
"disabled",
|
|
896
|
-
"text"
|
|
626
|
+
"text",
|
|
627
|
+
"theme"
|
|
897
628
|
])), [
|
|
898
629
|
[
|
|
899
630
|
_directive_bk_tooltips,
|
|
@@ -905,10 +636,8 @@ var _default = exports.default = /*@__PURE__*/ (0, _vue.defineComponent)({
|
|
|
905
636
|
}
|
|
906
637
|
]
|
|
907
638
|
])
|
|
908
|
-
]
|
|
909
|
-
|
|
910
|
-
];
|
|
911
|
-
}),
|
|
639
|
+
], true)
|
|
640
|
+
]),
|
|
912
641
|
_: 3 /* FORWARDED */
|
|
913
642
|
}, 8 /* PROPS */ , [
|
|
914
643
|
"placement",
|