@opentiny/tiny-robot 0.4.2-alpha.4 → 0.4.2-alpha.6
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/action-group/ActionGroup.vue.d.ts +26 -0
- package/dist/action-group/ActionGroupItem.vue.d.ts +18 -0
- package/dist/action-group/index.d.ts +12 -0
- package/dist/action-group/index.type.d.ts +17 -0
- package/dist/anchor/components/AnchorItem.vue.d.ts +24 -0
- package/dist/anchor/components/AnchorList.vue.d.ts +20 -0
- package/dist/anchor/components/AnchorOverlay.vue.d.ts +33 -0
- package/dist/anchor/components/AnchorSearch.vue.d.ts +7 -0
- package/dist/anchor/composables/index.d.ts +5 -0
- package/dist/anchor/composables/useActiveSync.d.ts +10 -0
- package/dist/anchor/composables/useFloatingOffset.d.ts +6 -0
- package/dist/anchor/composables/useNavController.d.ts +12 -0
- package/dist/anchor/composables/useOverlayInteractions.d.ts +6 -0
- package/dist/anchor/composables/useTargetFeedback.d.ts +5 -0
- package/dist/anchor/defaults.d.ts +16 -0
- package/dist/anchor/index.d.ts +7 -0
- package/dist/anchor/index.type.d.ts +60 -0
- package/dist/anchor/index.vue.d.ts +159 -0
- package/dist/anchor/internal.type.d.ts +103 -0
- package/dist/anchor/utils/scroll.d.ts +7 -0
- package/dist/anchor/utils/target.d.ts +6 -0
- package/dist/attachments/components/FileCard.vue.d.ts +18 -0
- package/dist/attachments/components/ImagePreview.vue.d.ts +17 -0
- package/dist/attachments/components/index.d.ts +2 -0
- package/dist/attachments/composables/index.d.ts +5 -0
- package/dist/attachments/composables/useFileCard.d.ts +15 -0
- package/dist/attachments/composables/useFileType.d.ts +20 -0
- package/dist/attachments/composables/useImagePreview.d.ts +18 -0
- package/dist/attachments/composables/useListType.d.ts +11 -0
- package/dist/attachments/index.d.ts +7 -0
- package/dist/attachments/index.js +2 -2
- package/dist/attachments/index.type.d.ts +70 -0
- package/dist/attachments/index.vue.d.ts +27 -0
- package/dist/attachments/utils.d.ts +3 -0
- package/dist/base-popper/components/Popper.vue.d.ts +28 -0
- package/dist/base-popper/index.d.ts +2 -0
- package/dist/base-popper/index.vue.d.ts +41 -0
- package/dist/bubble/Bubble.vue.d.ts +39 -0
- package/dist/bubble/BubbleBoxWrapper.vue.d.ts +22 -0
- package/dist/bubble/BubbleContentWrapper.vue.d.ts +16 -0
- package/dist/bubble/BubbleItem.vue.d.ts +36 -0
- package/dist/bubble/BubbleList.vue.d.ts +41 -0
- package/dist/bubble/BubbleProvider.vue.d.ts +18 -0
- package/dist/bubble/composables/index.d.ts +10 -0
- package/dist/bubble/composables/useBubbleBoxRenderer.d.ts +18 -0
- package/dist/bubble/composables/useBubbleContentRenderer.d.ts +18 -0
- package/dist/bubble/composables/useBubbleStateChange.d.ts +2 -0
- package/dist/bubble/composables/useBubbleStore.d.ts +16 -0
- package/dist/bubble/composables/useContentResolver.d.ts +5 -0
- package/dist/bubble/composables/useCopyCleanup.d.ts +6 -0
- package/dist/bubble/composables/useMessageContent.d.ts +5 -0
- package/dist/bubble/composables/useMessageGroup.d.ts +4 -0
- package/dist/bubble/composables/useOmitMessageFields.d.ts +12 -0
- package/dist/bubble/composables/useToolCall.d.ts +25 -0
- package/dist/bubble/constants.d.ts +42 -0
- package/dist/bubble/index.d.ts +19 -0
- package/dist/bubble/index.type.d.ts +171 -0
- package/dist/bubble/renderers/Box.vue.d.ts +18 -0
- package/dist/bubble/renderers/Image.vue.d.ts +4 -0
- package/dist/bubble/renderers/Loading.vue.d.ts +4 -0
- package/dist/bubble/renderers/Markdown.vue.d.ts +4 -0
- package/dist/bubble/renderers/Reasoning.vue.d.ts +9 -0
- package/dist/bubble/renderers/Text.vue.d.ts +4 -0
- package/dist/bubble/renderers/Tool.vue.d.ts +14 -0
- package/dist/bubble/renderers/ToolRole.vue.d.ts +4 -0
- package/dist/bubble/renderers/Tools.vue.d.ts +4 -0
- package/dist/bubble/renderers/allRenderers.d.ts +93 -0
- package/dist/bubble/renderers/defaultRenderers.d.ts +27 -0
- package/dist/bubble/utils.d.ts +7 -0
- package/dist/chat/components/ChatConversation.vue.d.ts +267 -0
- package/dist/chat/components/ChatLauncherButton.vue.d.ts +12 -0
- package/dist/chat/components/ChatMcpTrigger.vue.d.ts +30 -0
- package/dist/chat/components/ChatThemeToggleButton.vue.d.ts +6 -0
- package/dist/chat/components/ChatWelcome.vue.d.ts +14 -0
- package/dist/chat/components/icons/IconModelAliyunBailian.vue.d.ts +7 -0
- package/dist/chat/components/icons/IconModelDeepseek.vue.d.ts +7 -0
- package/dist/chat/components/icons/index.d.ts +5 -0
- package/dist/chat/composables/useChatConversation.d.ts +37 -0
- package/dist/chat/composables/useChatMcp.d.ts +29 -0
- package/dist/chat/composables/useChatModel.d.ts +27 -0
- package/dist/chat/index.d.ts +9 -0
- package/dist/chat/index.js +13902 -0
- package/dist/chat/index.type.d.ts +92 -0
- package/dist/chat/index.vue.d.ts +51 -0
- package/dist/chat/locale.d.ts +12 -0
- package/dist/chat/mcpServers.d.ts +3 -0
- package/dist/container/index.d.ts +7 -0
- package/dist/container/index.type.d.ts +20 -0
- package/dist/container/index.vue.d.ts +32 -0
- package/dist/conversations/index.d.ts +7 -0
- package/dist/conversations/index.vue.d.ts +2 -0
- package/dist/drag-overlay/constants.d.ts +17 -0
- package/dist/drag-overlay/directives/vDropzone.d.ts +14 -0
- package/dist/drag-overlay/index.d.ts +7 -0
- package/dist/drag-overlay/index.type.d.ts +105 -0
- package/dist/drag-overlay/index.vue.d.ts +20 -0
- package/dist/dropdown-menu/composables/usePopperHover.d.ts +6 -0
- package/dist/dropdown-menu/index.d.ts +7 -0
- package/dist/dropdown-menu/index.js +17 -17
- package/dist/dropdown-menu/index.type.d.ts +42 -0
- package/dist/dropdown-menu/index.vue.d.ts +217 -0
- package/dist/feedback/components/SourceList.vue.d.ts +11 -0
- package/dist/feedback/components/index.d.ts +1 -0
- package/dist/feedback/index.d.ts +7 -0
- package/dist/feedback/index.type.d.ts +25 -0
- package/dist/feedback/index.vue.d.ts +13 -0
- package/dist/flow-layout-buttons/index.d.ts +7 -0
- package/dist/flow-layout-buttons/index.js +1 -1
- package/dist/flow-layout-buttons/index.type.d.ts +35 -0
- package/dist/flow-layout-buttons/index.vue.d.ts +22 -0
- package/dist/history/components/Empty.vue.d.ts +7 -0
- package/dist/history/components/MenuList.vue.d.ts +24 -0
- package/dist/history/composables/useRenameEditor.d.ts +22 -0
- package/dist/history/constants.d.ts +1 -0
- package/dist/history/index.d.ts +7 -0
- package/dist/history/index.type.d.ts +33 -0
- package/dist/history/index.vue.d.ts +18 -0
- package/dist/icon-button/index.d.ts +7 -0
- package/dist/icon-button/index.type.d.ts +7 -0
- package/dist/icon-button/index.vue.d.ts +6 -0
- package/dist/index.d.ts +49 -5018
- package/dist/index.js +1 -1
- package/dist/mcp-add-form/components/CodeEditor.vue.d.ts +9 -0
- package/dist/mcp-add-form/components/FormEditor.vue.d.ts +10 -0
- package/dist/mcp-add-form/components/index.d.ts +2 -0
- package/dist/mcp-add-form/index.d.ts +7 -0
- package/dist/mcp-add-form/index.type.d.ts +19 -0
- package/dist/mcp-add-form/index.vue.d.ts +13 -0
- package/dist/mcp-server-picker/components/NoData.vue.d.ts +7 -0
- package/dist/mcp-server-picker/components/PluginCard.vue.d.ts +40 -0
- package/dist/mcp-server-picker/components/PluginModal.vue.d.ts +15 -0
- package/dist/mcp-server-picker/components/index.d.ts +3 -0
- package/dist/mcp-server-picker/index.d.ts +7 -0
- package/dist/mcp-server-picker/index.js +83 -80
- package/dist/mcp-server-picker/index.type.d.ts +99 -0
- package/dist/mcp-server-picker/index.vue.d.ts +71 -0
- package/dist/prompts/index.d.ts +12 -0
- package/dist/prompts/index.type.d.ts +59 -0
- package/dist/prompts/prompt.vue.d.ts +5 -0
- package/dist/prompts/prompts.vue.d.ts +20 -0
- package/dist/sender/components/editor-content/index.vue.d.ts +4 -0
- package/dist/sender/components/footer/index.vue.d.ts +38 -0
- package/dist/sender/components/layouts/MultiLineLayout.vue.d.ts +43 -0
- package/dist/sender/components/layouts/SingleLineLayout.vue.d.ts +32 -0
- package/dist/sender/composables/index.d.ts +7 -0
- package/dist/sender/composables/useAutoSize.d.ts +5 -0
- package/dist/sender/composables/useEditor.d.ts +13 -0
- package/dist/sender/composables/useKeyboardShortcuts.d.ts +7 -0
- package/dist/sender/composables/useModeSwitch.d.ts +4 -0
- package/dist/sender/composables/useSenderCore.d.ts +31 -0
- package/dist/sender/composables/useSlotScope.d.ts +10 -0
- package/dist/sender/context/index.d.ts +6 -0
- package/dist/sender/context/types.d.ts +7 -0
- package/dist/sender/extensions/constants.d.ts +94 -0
- package/dist/sender/extensions/index.d.ts +12 -0
- package/dist/sender/extensions/mention/commands.d.ts +20 -0
- package/dist/sender/extensions/mention/components/mention-list.vue.d.ts +18 -0
- package/dist/sender/extensions/mention/components/mention-view.vue.d.ts +19 -0
- package/dist/sender/extensions/mention/extension.d.ts +6 -0
- package/dist/sender/extensions/mention/index.d.ts +22 -0
- package/dist/sender/extensions/mention/plugin.d.ts +16 -0
- package/dist/sender/extensions/mention/types.d.ts +126 -0
- package/dist/sender/extensions/mention/utils.d.ts +34 -0
- package/dist/sender/extensions/suggestion/extension.d.ts +8 -0
- package/dist/sender/extensions/suggestion/index.d.ts +20 -0
- package/dist/sender/extensions/suggestion/plugin.d.ts +21 -0
- package/dist/sender/extensions/suggestion/suggestion-list.vue.d.ts +46 -0
- package/dist/sender/extensions/suggestion/types.d.ts +254 -0
- package/dist/sender/extensions/suggestion/utils/filter.d.ts +29 -0
- package/dist/sender/extensions/suggestion/utils/highlight.d.ts +73 -0
- package/dist/sender/extensions/template/block/extension.d.ts +6 -0
- package/dist/sender/extensions/template/block/plugins.d.ts +13 -0
- package/dist/sender/extensions/template/block/template-block-view.vue.d.ts +14 -0
- package/dist/sender/extensions/template/commands.d.ts +31 -0
- package/dist/sender/extensions/template/extension.d.ts +6 -0
- package/dist/sender/extensions/template/index.d.ts +21 -0
- package/dist/sender/extensions/template/select/dropdown-manager.d.ts +23 -0
- package/dist/sender/extensions/template/select/extension.d.ts +5 -0
- package/dist/sender/extensions/template/select/plugins.d.ts +34 -0
- package/dist/sender/extensions/template/select/template-select-view.vue.d.ts +20 -0
- package/dist/sender/extensions/template/types.d.ts +100 -0
- package/dist/sender/extensions/template/utils.d.ts +20 -0
- package/dist/sender/extensions/utils/id-generator.d.ts +16 -0
- package/dist/sender/extensions/utils/index.d.ts +7 -0
- package/dist/sender/extensions/utils/keyboard.d.ts +49 -0
- package/dist/sender/extensions/utils/position.d.ts +25 -0
- package/dist/sender/index.d.ts +136 -0
- package/dist/sender/index.type.d.ts +302 -0
- package/dist/sender/index.vue.d.ts +90 -0
- package/dist/sender/types/base.d.ts +239 -0
- package/dist/sender/types/components.d.ts +68 -0
- package/dist/sender/types/composables.d.ts +122 -0
- package/dist/sender/types/context.d.ts +132 -0
- package/dist/sender/types/slots.d.ts +67 -0
- package/dist/sender/utils/countGraphemes.d.ts +1 -0
- package/dist/sender-actions/action-button/index.vue.d.ts +23 -0
- package/dist/sender-actions/clear-button/index.vue.d.ts +2 -0
- package/dist/sender-actions/clear-button/useClearButtonState.d.ts +6 -0
- package/dist/sender-actions/default-actions/index.vue.d.ts +17 -0
- package/dist/sender-actions/index.d.ts +21 -0
- package/dist/sender-actions/index.type.d.ts +7 -0
- package/dist/sender-actions/submit-button/index.vue.d.ts +2 -0
- package/dist/sender-actions/types/common.d.ts +40 -0
- package/dist/sender-actions/types/index.d.ts +5 -0
- package/dist/sender-actions/types/tooltip.d.ts +7 -0
- package/dist/sender-actions/upload-button/index.type.d.ts +57 -0
- package/dist/sender-actions/upload-button/index.vue.d.ts +16 -0
- package/dist/sender-actions/utils/tooltip.d.ts +8 -0
- package/dist/sender-actions/voice-button/index.type.d.ts +78 -0
- package/dist/sender-actions/voice-button/index.vue.d.ts +43 -0
- package/dist/sender-actions/voice-button/speech.types.d.ts +40 -0
- package/dist/sender-actions/voice-button/useSpeechHandler.d.ts +10 -0
- package/dist/sender-actions/voice-button/webSpeechHandler.d.ts +40 -0
- package/dist/sender-actions/word-counter/index.vue.d.ts +2 -0
- package/dist/sender-compat/index.d.ts +7 -0
- package/dist/sender-compat/index.type.d.ts +91 -0
- package/dist/sender-compat/index.vue.d.ts +532 -0
- package/dist/shared/composables/createTeleport.d.ts +2 -0
- package/dist/shared/composables/index.d.ts +5 -0
- package/dist/shared/composables/useAutoScroll.d.ts +25 -0
- package/dist/shared/composables/useSlotRefs.d.ts +12 -0
- package/dist/shared/composables/useTeleportTarget.d.ts +11 -0
- package/dist/shared/composables/useTouchDevice.d.ts +3 -0
- package/dist/shared/utils.d.ts +7 -0
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/components/PillButton.vue.d.ts +16 -0
- package/dist/suggestion-pills/components/index.d.ts +1 -0
- package/dist/suggestion-pills/index.d.ts +13 -0
- package/dist/suggestion-pills/index.js +12 -12
- package/dist/suggestion-pills/index.type.d.ts +45 -0
- package/dist/suggestion-pills/index.vue.d.ts +44 -0
- package/dist/suggestion-popover/components/Backdrop.vue.d.ts +5 -0
- package/dist/suggestion-popover/components/Header.vue.d.ts +4 -0
- package/dist/suggestion-popover/components/Loading.vue.d.ts +17 -0
- package/dist/suggestion-popover/components/NoData.vue.d.ts +17 -0
- package/dist/suggestion-popover/components/Tooltip.vue.d.ts +19 -0
- package/dist/suggestion-popover/index.d.ts +7 -0
- package/dist/suggestion-popover/index.js +35 -35
- package/dist/suggestion-popover/index.type.d.ts +80 -0
- package/dist/suggestion-popover/index.vue.d.ts +262 -0
- package/dist/theme-provider/constants.d.ts +6 -0
- package/dist/theme-provider/index.d.ts +9 -0
- package/dist/theme-provider/index.js +32 -41
- package/dist/theme-provider/index.type.d.ts +18 -0
- package/dist/theme-provider/index.vue.d.ts +32 -0
- package/dist/theme-provider/useTheme.d.ts +11 -0
- package/dist/useTheme.js +22 -0
- package/dist/welcome/index.d.ts +7 -0
- package/dist/welcome/index.type.d.ts +10 -0
- package/dist/welcome/index.vue.d.ts +18 -0
- package/package.json +22 -3
package/dist/index.js
CHANGED
|
@@ -16,10 +16,10 @@ import R from "./sender-compat/index.js";
|
|
|
16
16
|
import W, { SuggestionPillButton as $ } from "./suggestion-pills/index.js";
|
|
17
17
|
import w from "./suggestion-popover/index.js";
|
|
18
18
|
import k from "./theme-provider/index.js";
|
|
19
|
-
import { useTheme as $e } from "./theme-provider/index.js";
|
|
20
19
|
import N from "./welcome/index.js";
|
|
21
20
|
import V from "./mcp-server-picker/index.js";
|
|
22
21
|
import I from "./mcp-add-form/index.js";
|
|
22
|
+
import { u as $e } from "./useTheme.js";
|
|
23
23
|
import { A as U, a as K, _ as X, W as Y, D as q } from "./index2.js";
|
|
24
24
|
import { S as ke, u as Ne } from "./index2.js";
|
|
25
25
|
import { _ as G, V as J } from "./index3.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
'codeData': string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:codeData": (value: string) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
7
|
+
"onUpdate:codeData"?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { McpAddFormData } from '../index.type';
|
|
2
|
+
type __VLS_PublicProps = {
|
|
3
|
+
'formData': McpAddFormData;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:formData": (value: McpAddFormData) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
8
|
+
"onUpdate:formData"?: ((value: McpAddFormData) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type AddType = 'form' | 'code';
|
|
2
|
+
export interface McpAddFormData {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
type: 'sse' | 'streamableHttp';
|
|
6
|
+
url: string;
|
|
7
|
+
headers: string;
|
|
8
|
+
thumbnail?: File | null;
|
|
9
|
+
}
|
|
10
|
+
export interface McpAddFormProps {
|
|
11
|
+
addType?: AddType;
|
|
12
|
+
formData?: McpAddFormData;
|
|
13
|
+
codeData?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface McpAddFormEmits {
|
|
16
|
+
(e: 'update:addType', value: AddType): void;
|
|
17
|
+
(e: 'confirm', type: AddType, data: McpAddFormData | string): void;
|
|
18
|
+
(e: 'cancel'): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { McpAddFormData, AddType, McpAddFormProps } from './index.type';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<McpAddFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
cancel: () => any;
|
|
4
|
+
confirm: (type: AddType, data: string | McpAddFormData) => any;
|
|
5
|
+
"update:addType": (value: AddType) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<McpAddFormProps> & Readonly<{
|
|
7
|
+
onCancel?: (() => any) | undefined;
|
|
8
|
+
onConfirm?: ((type: AddType, data: string | McpAddFormData) => any) | undefined;
|
|
9
|
+
"onUpdate:addType"?: ((value: AddType) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
addType: AddType;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface EmptyStateProps {
|
|
2
|
+
searchQuery: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import('vue').DefineComponent<EmptyStateProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EmptyStateProps> & Readonly<{}>, {
|
|
5
|
+
searchQuery: string;
|
|
6
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PluginCardProps, PluginInfo } from '../index.type';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
actions?(_: {
|
|
6
|
+
plugin: PluginInfo;
|
|
7
|
+
expanded: boolean;
|
|
8
|
+
mode: import('../index.type').PluginCardMode;
|
|
9
|
+
}): any;
|
|
10
|
+
'expand-icon'?(_: {
|
|
11
|
+
expanded: boolean;
|
|
12
|
+
}): any;
|
|
13
|
+
'delete-icon'?(_: {}): any;
|
|
14
|
+
'add-button'?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<PluginCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
21
|
+
"toggle-plugin": (enabled: boolean) => any;
|
|
22
|
+
"toggle-tool": (toolId: string, enabled: boolean) => any;
|
|
23
|
+
"add-plugin": (plugin: PluginInfo) => any;
|
|
24
|
+
"delete-plugin": () => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<PluginCardProps> & Readonly<{
|
|
26
|
+
"onToggle-plugin"?: ((enabled: boolean) => any) | undefined;
|
|
27
|
+
"onToggle-tool"?: ((toolId: string, enabled: boolean) => any) | undefined;
|
|
28
|
+
"onAdd-plugin"?: ((plugin: PluginInfo) => any) | undefined;
|
|
29
|
+
"onDelete-plugin"?: (() => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
mode: import('../index.type').PluginCardMode;
|
|
32
|
+
showToolCount: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
'visible': boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:visible": (value: boolean) => any;
|
|
6
|
+
} & {
|
|
7
|
+
confirm: (type: "code" | "form", data: import('../index.type').PluginCreationData) => any;
|
|
8
|
+
"update:visible": (value: boolean) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
onConfirm?: ((type: "code" | "form", data: import('../index.type').PluginCreationData) => any) | undefined;
|
|
11
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
+
dialogRef: HTMLDivElement;
|
|
14
|
+
}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { defineComponent as q, ref as V, computed as g, openBlock as a, createElementBlock as i, normalizeClass as G, createElementVNode as s, toDisplayString as
|
|
2
|
-
import { TinyPopconfirm as ve, TinySwitch as X, TinyTabs as fe, TinyTabItem as Y, TinyInput as Z, TinyBaseSelect as he, TinyOption as
|
|
3
|
-
import { IconArrowRight as
|
|
1
|
+
import { defineComponent as q, ref as V, computed as g, openBlock as a, createElementBlock as i, normalizeClass as G, createElementVNode as s, toDisplayString as S, createCommentVNode as v, renderSlot as I, Fragment as F, createBlock as k, unref as r, createVNode as m, withCtx as T, Transition as K, withDirectives as pe, renderList as U, vShow as ge, useModel as ae, mergeModels as J, watch as H, normalizeStyle as _e, createTextVNode as me } from "vue";
|
|
2
|
+
import { TinyPopconfirm as ve, TinySwitch as X, TinyTabs as fe, TinyTabItem as Y, TinyInput as Z, TinyBaseSelect as he, TinyOption as ke } from "@opentiny/vue";
|
|
3
|
+
import { IconArrowRight as ye, IconArrowDown as be, IconDelete as Te, IconClose as ne, IconEmptySearch as Ce, IconNoData as Pe, IconPlus as we, IconSearch as ee } from "@opentiny/tiny-robot-svgs";
|
|
4
4
|
import { _ as z } from "../_plugin-vue_export-helper.js";
|
|
5
|
-
import { o as
|
|
6
|
-
import
|
|
5
|
+
import { o as Se } from "../index4.js";
|
|
6
|
+
import xe from "../mcp-add-form/index.js";
|
|
7
7
|
const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-card__content" }, Ae = { class: "plugin-card__info" }, Fe = { class: "plugin-card__name" }, De = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "plugin-card__count"
|
|
10
|
-
}, Ie = ["title"], Me = { class: "plugin-card__actions" }, Ee = { class: "plugin-card__operations" }, Le = {
|
|
10
|
+
}, Ie = ["title"], Me = { class: "plugin-card__actions" }, Ee = { class: "plugin-card__operations" }, Le = {
|
|
11
|
+
class: "plugin-card__delete-trigger",
|
|
12
|
+
title: "移除插件"
|
|
13
|
+
}, Ne = {
|
|
11
14
|
key: 1,
|
|
12
15
|
class: "plugin-card__add"
|
|
13
16
|
}, Ue = { key: 0 }, Oe = { key: 1 }, qe = { key: 2 }, ze = { class: "plugin-card__tools" }, Qe = { class: "plugin-card__tool" }, Re = { class: "plugin-card__content" }, je = { class: "plugin-card__info" }, He = { class: "plugin-card__name" }, Ge = ["title"], Je = { class: "plugin-card__actions plugin-card__actions--tool" }, Ke = {
|
|
@@ -31,23 +34,23 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
31
34
|
[`plugin-card--${e.mode}`]: !0
|
|
32
35
|
})), w = () => {
|
|
33
36
|
h.value && (u.value = !u.value);
|
|
34
|
-
},
|
|
37
|
+
}, x = g(() => {
|
|
35
38
|
if (!h.value)
|
|
36
39
|
return { checked: e.plugin.enabled || !1, indeterminate: !1 };
|
|
37
|
-
const c = e.plugin.tools.filter((
|
|
38
|
-
return c.length === 0 ? { checked: !1, indeterminate: !1 } : c.length ===
|
|
40
|
+
const c = e.plugin.tools.filter((y) => y.enabled), _ = e.plugin.tools.length;
|
|
41
|
+
return c.length === 0 ? { checked: !1, indeterminate: !1 } : c.length === _ ? { checked: !0, indeterminate: !1 } : { checked: !0, indeterminate: !0 };
|
|
39
42
|
}), Q = (c) => {
|
|
40
|
-
h.value && e.plugin.tools.forEach((
|
|
41
|
-
|
|
43
|
+
h.value && e.plugin.tools.forEach((_) => {
|
|
44
|
+
_.enabled !== c && (_.enabled = c, d("toggle-tool", _.id, c));
|
|
42
45
|
}), d("toggle-plugin", c);
|
|
43
|
-
}, R = (c,
|
|
44
|
-
d("toggle-tool", c,
|
|
46
|
+
}, R = (c, _) => {
|
|
47
|
+
d("toggle-tool", c, _);
|
|
45
48
|
}, M = () => {
|
|
46
49
|
d("delete-plugin");
|
|
47
50
|
}, $ = g(() => e.plugin.addState || "idle"), E = (c) => {
|
|
48
51
|
$.value === "idle" && d("add-plugin", c);
|
|
49
52
|
}, L = (c) => c ? "关闭插件" : "打开插件";
|
|
50
|
-
return (c,
|
|
53
|
+
return (c, _) => (a(), i("div", {
|
|
51
54
|
class: G(["plugin-card", C.value])
|
|
52
55
|
}, [
|
|
53
56
|
s("div", $e, [
|
|
@@ -57,13 +60,13 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
57
60
|
}, null, 8, Be),
|
|
58
61
|
s("div", Ve, [
|
|
59
62
|
s("div", Ae, [
|
|
60
|
-
s("span", Fe,
|
|
61
|
-
o.showToolCount && f.value ? (a(), i("span", De,
|
|
63
|
+
s("span", Fe, S(o.plugin.name), 1),
|
|
64
|
+
o.showToolCount && f.value ? (a(), i("span", De, S(f.value) + " 个工具 ", 1)) : v("", !0)
|
|
62
65
|
]),
|
|
63
66
|
s("div", {
|
|
64
67
|
class: "plugin-card__desc",
|
|
65
68
|
title: o.plugin.description
|
|
66
|
-
},
|
|
69
|
+
}, S(o.plugin.description), 9, Ie)
|
|
67
70
|
]),
|
|
68
71
|
s("div", Me, [
|
|
69
72
|
I(c.$slots, "actions", {
|
|
@@ -78,17 +81,17 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
78
81
|
onClick: w
|
|
79
82
|
}, [
|
|
80
83
|
I(c.$slots, "expand-icon", { expanded: u.value }, () => [
|
|
81
|
-
u.value ? (a(),
|
|
84
|
+
u.value ? (a(), k(r(be), {
|
|
82
85
|
key: 1,
|
|
83
86
|
class: "common-icon"
|
|
84
|
-
})) : (a(),
|
|
87
|
+
})) : (a(), k(r(ye), {
|
|
85
88
|
key: 0,
|
|
86
89
|
class: "common-icon"
|
|
87
90
|
}))
|
|
88
91
|
], !0)
|
|
89
92
|
])) : v("", !0),
|
|
90
93
|
s("div", Ee, [
|
|
91
|
-
|
|
94
|
+
m(r(ve), {
|
|
92
95
|
title: "确定移除该插件吗?",
|
|
93
96
|
style: { height: "16px" },
|
|
94
97
|
type: "info",
|
|
@@ -98,16 +101,16 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
98
101
|
reference: T(() => [
|
|
99
102
|
I(c.$slots, "delete-icon", {}, () => [
|
|
100
103
|
s("span", Le, [
|
|
101
|
-
|
|
104
|
+
m(r(Te), { class: "common-icon" })
|
|
102
105
|
])
|
|
103
106
|
], !0)
|
|
104
107
|
]),
|
|
105
108
|
_: 3
|
|
106
109
|
}),
|
|
107
|
-
|
|
108
|
-
title: L(
|
|
109
|
-
"model-value":
|
|
110
|
-
indeterminate:
|
|
110
|
+
m(r(X), {
|
|
111
|
+
title: L(x.value.checked),
|
|
112
|
+
"model-value": x.value.checked,
|
|
113
|
+
indeterminate: x.value.indeterminate,
|
|
111
114
|
"onUpdate:modelValue": Q
|
|
112
115
|
}, null, 8, ["title", "model-value", "indeterminate"])
|
|
113
116
|
])
|
|
@@ -118,7 +121,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
118
121
|
"plugin-card__add-button--loading": $.value === "loading",
|
|
119
122
|
"plugin-card__add-button--added": $.value === "added"
|
|
120
123
|
}]),
|
|
121
|
-
onClick:
|
|
124
|
+
onClick: _[0] || (_[0] = (y) => E(o.plugin))
|
|
122
125
|
}, [
|
|
123
126
|
$.value === "idle" ? (a(), i("span", Ue, "添加")) : $.value === "loading" ? (a(), i("span", Oe, "添加中")) : (a(), i("span", qe, "已添加"))
|
|
124
127
|
], 2)
|
|
@@ -127,35 +130,35 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
127
130
|
], !0)
|
|
128
131
|
])
|
|
129
132
|
]),
|
|
130
|
-
h.value ? (a(),
|
|
133
|
+
h.value ? (a(), k(K, {
|
|
131
134
|
key: 0,
|
|
132
135
|
name: "plugin-card-slide"
|
|
133
136
|
}, {
|
|
134
137
|
default: T(() => [
|
|
135
138
|
pe(s("div", ze, [
|
|
136
|
-
|
|
137
|
-
(a(!0), i(F, null, U(o.plugin.tools, (
|
|
139
|
+
_[2] || (_[2] = s("div", { class: "plugin-card__divider" }, null, -1)),
|
|
140
|
+
(a(!0), i(F, null, U(o.plugin.tools, (y, A) => {
|
|
138
141
|
var N;
|
|
139
142
|
return a(), i("div", {
|
|
140
|
-
key:
|
|
143
|
+
key: y.id,
|
|
141
144
|
class: "plugin-card__tool-item"
|
|
142
145
|
}, [
|
|
143
146
|
s("div", Qe, [
|
|
144
|
-
|
|
147
|
+
_[1] || (_[1] = s("div", { class: "plugin-card__icon plugin-card__icon--placeholder" }, null, -1)),
|
|
145
148
|
s("div", Re, [
|
|
146
149
|
s("div", je, [
|
|
147
|
-
s("span", He,
|
|
150
|
+
s("span", He, S(y.name), 1)
|
|
148
151
|
]),
|
|
149
152
|
s("div", {
|
|
150
153
|
class: "plugin-card__desc",
|
|
151
|
-
title:
|
|
152
|
-
},
|
|
154
|
+
title: y.description
|
|
155
|
+
}, S(y.description), 9, Ge)
|
|
153
156
|
]),
|
|
154
157
|
s("div", Je, [
|
|
155
|
-
|
|
156
|
-
title: L(
|
|
157
|
-
"model-value":
|
|
158
|
-
"onUpdate:modelValue": (j) => R(
|
|
158
|
+
m(r(X), {
|
|
159
|
+
title: L(y.enabled),
|
|
160
|
+
"model-value": y.enabled,
|
|
161
|
+
"onUpdate:modelValue": (j) => R(y.id, j)
|
|
159
162
|
}, null, 8, ["title", "model-value", "onUpdate:modelValue"])
|
|
160
163
|
])
|
|
161
164
|
]),
|
|
@@ -170,7 +173,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
170
173
|
})) : v("", !0)
|
|
171
174
|
], 2));
|
|
172
175
|
}
|
|
173
|
-
}), te = /* @__PURE__ */ z(We, [["__scopeId", "data-v-
|
|
176
|
+
}), te = /* @__PURE__ */ z(We, [["__scopeId", "data-v-13445dd5"]]), Xe = {
|
|
174
177
|
key: 0,
|
|
175
178
|
class: "plugin-editor__backdrop"
|
|
176
179
|
}, Ye = { class: "plugin-editor__header" }, Ze = /* @__PURE__ */ q({
|
|
@@ -184,7 +187,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
184
187
|
const e = b, d = ae(o, "visible"), u = V(null), f = () => {
|
|
185
188
|
d.value = !1;
|
|
186
189
|
};
|
|
187
|
-
|
|
190
|
+
Se(u, () => {
|
|
188
191
|
d.value && f();
|
|
189
192
|
});
|
|
190
193
|
const h = (C, w) => {
|
|
@@ -192,7 +195,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
192
195
|
};
|
|
193
196
|
return (C, w) => (a(), i(F, null, [
|
|
194
197
|
d.value ? (a(), i("div", Xe)) : v("", !0),
|
|
195
|
-
|
|
198
|
+
m(K, { name: "plugin-editor" }, {
|
|
196
199
|
default: T(() => [
|
|
197
200
|
d.value ? (a(), i("div", {
|
|
198
201
|
key: 0,
|
|
@@ -202,12 +205,12 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
202
205
|
}, [
|
|
203
206
|
s("div", Ye, [
|
|
204
207
|
w[0] || (w[0] = s("h3", { class: "plugin-editor__title" }, "添加插件", -1)),
|
|
205
|
-
|
|
208
|
+
m(r(ne), {
|
|
206
209
|
class: "plugin-editor__close",
|
|
207
210
|
onClick: f
|
|
208
211
|
})
|
|
209
212
|
]),
|
|
210
|
-
|
|
213
|
+
m(r(xe), {
|
|
211
214
|
onConfirm: h,
|
|
212
215
|
onCancel: f
|
|
213
216
|
})
|
|
@@ -232,14 +235,14 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
232
235
|
return !!((u = b.searchQuery) != null && u.trim());
|
|
233
236
|
}), d = g(() => e.value ? "暂无搜索结果" : "暂无数据");
|
|
234
237
|
return (u, f) => (a(), i("section", tt, [
|
|
235
|
-
e.value ? (a(),
|
|
238
|
+
e.value ? (a(), k(r(Ce), {
|
|
236
239
|
key: 0,
|
|
237
240
|
class: "empty-state__illustration"
|
|
238
|
-
})) : (a(),
|
|
241
|
+
})) : (a(), k(r(Pe), {
|
|
239
242
|
key: 1,
|
|
240
243
|
class: "empty-state__illustration"
|
|
241
244
|
})),
|
|
242
|
-
s("p", lt,
|
|
245
|
+
s("p", lt, S(d.value), 1)
|
|
243
246
|
]));
|
|
244
247
|
}
|
|
245
248
|
}), le = /* @__PURE__ */ z(at, [["__scopeId", "data-v-7e7a7116"]]), nt = { class: "mcp-server-picker__header" }, ot = { class: "mcp-server-picker__header-left" }, it = { class: "mcp-server-picker__header-right" }, st = { class: "mcp-server-picker__content" }, rt = {
|
|
@@ -256,14 +259,14 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
256
259
|
class: "mcp-server-picker__content-market-header"
|
|
257
260
|
}, pt = {
|
|
258
261
|
key: 0,
|
|
259
|
-
|
|
262
|
+
class: "mcp-server-picker__content-market-filter"
|
|
260
263
|
}, gt = {
|
|
261
264
|
key: 1,
|
|
262
|
-
|
|
263
|
-
},
|
|
265
|
+
class: "mcp-server-picker__content-market-search"
|
|
266
|
+
}, _t = {
|
|
264
267
|
key: 1,
|
|
265
268
|
class: "mcp-server-picker__content-list"
|
|
266
|
-
},
|
|
269
|
+
}, mt = {
|
|
267
270
|
key: 0,
|
|
268
271
|
class: "mcp-server-picker__loading"
|
|
269
272
|
}, vt = /* @__PURE__ */ q({
|
|
@@ -307,7 +310,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
307
310
|
setup(o, { emit: b }) {
|
|
308
311
|
const e = o, d = b, u = V(e.defaultActiveTab), f = V(""), h = V(""), C = V(""), w = g(
|
|
309
312
|
() => u.value === "installed" ? e.searchPlaceholder : "搜索市场插件"
|
|
310
|
-
),
|
|
313
|
+
), x = g(() => e.installedPlugins), Q = g(() => e.marketPlugins), R = g(() => !x.value || x.value.length === 0 ? 0 : x.value.filter((t) => t.enabled).length);
|
|
311
314
|
H(
|
|
312
315
|
R,
|
|
313
316
|
(t) => {
|
|
@@ -317,7 +320,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
317
320
|
), H(u, (t, n) => {
|
|
318
321
|
t !== n && d("tab-change", t);
|
|
319
322
|
});
|
|
320
|
-
const M = g(() =>
|
|
323
|
+
const M = g(() => x.value.filter((t) => e.installedSearchFn(f.value, t))), $ = g(() => {
|
|
321
324
|
const { category: t, search: n } = {
|
|
322
325
|
category: C.value,
|
|
323
326
|
search: h.value
|
|
@@ -343,9 +346,9 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
343
346
|
const P = t.tools.filter((D) => D.id !== n).some((D) => D.enabled), B = p || P;
|
|
344
347
|
t.enabled !== B && d("plugin-toggle", t, B);
|
|
345
348
|
}
|
|
346
|
-
},
|
|
349
|
+
}, _ = (t) => {
|
|
347
350
|
e.allowPluginDelete && d("plugin-delete", t);
|
|
348
|
-
},
|
|
351
|
+
}, y = (t) => {
|
|
349
352
|
e.allowPluginAdd && d("plugin-add", t);
|
|
350
353
|
}, A = V(!1), N = () => {
|
|
351
354
|
A.value = !0;
|
|
@@ -396,20 +399,20 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
396
399
|
const { type: t } = e.popupConfig || {};
|
|
397
400
|
return t === "drawer" ? W.value : "fade";
|
|
398
401
|
}), ue = {
|
|
399
|
-
background: "var(--tr-
|
|
402
|
+
background: "var(--tr-container-bg-default)",
|
|
400
403
|
color: "var(--tr-text-primary)"
|
|
401
404
|
};
|
|
402
|
-
return (t, n) => (a(),
|
|
405
|
+
return (t, n) => (a(), k(K, { name: ce.value }, {
|
|
403
406
|
default: T(() => {
|
|
404
407
|
var p;
|
|
405
408
|
return [
|
|
406
409
|
oe.value ? (a(), i("div", {
|
|
407
410
|
key: 0,
|
|
408
411
|
class: G(["mcp-server-picker", [`popup-type-${((p = e.popupConfig) == null ? void 0 : p.type) || "fixed"}`, W.value]]),
|
|
409
|
-
style:
|
|
412
|
+
style: _e(se.value)
|
|
410
413
|
}, [
|
|
411
414
|
s("div", nt, [
|
|
412
|
-
s("div", ot,
|
|
415
|
+
s("div", ot, S(e.title), 1),
|
|
413
416
|
s("div", it, [
|
|
414
417
|
I(t.$slots, "header-actions", {}, void 0, !0),
|
|
415
418
|
e.showCustomAddButton ? (a(), i("div", {
|
|
@@ -417,35 +420,35 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
417
420
|
class: "mcp-server-picker__header-right-item",
|
|
418
421
|
onClick: N
|
|
419
422
|
}, [
|
|
420
|
-
|
|
421
|
-
s("span", null,
|
|
423
|
+
m(r(we), { class: "mcp-server-picker__icon mcp-server-picker__header-right-item-icon" }),
|
|
424
|
+
s("span", null, S(e.customAddButtonText), 1)
|
|
422
425
|
])) : v("", !0),
|
|
423
|
-
|
|
426
|
+
m(r(ne), {
|
|
424
427
|
class: "mcp-server-picker__header-right-close",
|
|
425
428
|
onClick: ie
|
|
426
429
|
})
|
|
427
430
|
])
|
|
428
431
|
]),
|
|
429
432
|
s("div", st, [
|
|
430
|
-
|
|
433
|
+
m(r(fe), {
|
|
431
434
|
modelValue: u.value,
|
|
432
435
|
"onUpdate:modelValue": n[3] || (n[3] = (l) => u.value = l)
|
|
433
436
|
}, {
|
|
434
437
|
default: T(() => [
|
|
435
|
-
e.showInstalledTab ? (a(),
|
|
438
|
+
e.showInstalledTab ? (a(), k(r(Y), {
|
|
436
439
|
key: 0,
|
|
437
440
|
title: e.installedTabTitle,
|
|
438
441
|
name: "installed"
|
|
439
442
|
}, {
|
|
440
443
|
default: T(() => [
|
|
441
444
|
e.enableSearch ? (a(), i("div", rt, [
|
|
442
|
-
|
|
445
|
+
m(r(Z), {
|
|
443
446
|
modelValue: f.value,
|
|
444
447
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => f.value = l),
|
|
445
448
|
placeholder: e.searchPlaceholder
|
|
446
449
|
}, {
|
|
447
450
|
suffix: T(() => [
|
|
448
|
-
|
|
451
|
+
m(r(ee), { class: "mcp-server-picker__icon" })
|
|
449
452
|
]),
|
|
450
453
|
_: 1
|
|
451
454
|
}, 8, ["modelValue", "placeholder"])
|
|
@@ -453,24 +456,24 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
453
456
|
E.value ? (a(), i("div", dt, [
|
|
454
457
|
e.loading ? (a(), i("div", ct, "加载中...")) : (a(!0), i(F, { key: 1 }, U(M.value, (l) => {
|
|
455
458
|
var P;
|
|
456
|
-
return a(),
|
|
459
|
+
return a(), k(r(te), {
|
|
457
460
|
key: l.id,
|
|
458
461
|
plugin: l,
|
|
459
462
|
mode: "installed",
|
|
460
463
|
expandable: !!((P = l.tools) != null && P.length),
|
|
461
464
|
onTogglePlugin: (B) => L(l, B),
|
|
462
465
|
onToggleTool: (B, D) => c(l, B, D),
|
|
463
|
-
onDeletePlugin: () =>
|
|
466
|
+
onDeletePlugin: () => _(l)
|
|
464
467
|
}, null, 8, ["plugin", "expandable", "onTogglePlugin", "onToggleTool", "onDeletePlugin"]);
|
|
465
468
|
}), 128))
|
|
466
|
-
])) : (a(),
|
|
469
|
+
])) : (a(), k(r(le), {
|
|
467
470
|
key: 2,
|
|
468
471
|
"search-query": f.value
|
|
469
472
|
}, null, 8, ["search-query"]))
|
|
470
473
|
]),
|
|
471
474
|
_: 1
|
|
472
475
|
}, 8, ["title"])) : v("", !0),
|
|
473
|
-
e.showMarketTab ? (a(),
|
|
476
|
+
e.showMarketTab ? (a(), k(r(Y), {
|
|
474
477
|
key: 1,
|
|
475
478
|
title: e.marketTabTitle,
|
|
476
479
|
name: "market"
|
|
@@ -478,21 +481,21 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
478
481
|
default: T(() => [
|
|
479
482
|
e.enableSearch || e.enableMarketCategoryFilter ? (a(), i("div", ut, [
|
|
480
483
|
e.enableMarketCategoryFilter ? (a(), i("div", pt, [
|
|
481
|
-
|
|
484
|
+
m(r(he), {
|
|
482
485
|
modelValue: C.value,
|
|
483
486
|
"onUpdate:modelValue": n[1] || (n[1] = (l) => C.value = l),
|
|
484
487
|
placeholder: e.marketCategoryPlaceholder,
|
|
485
488
|
"drop-style": ue
|
|
486
489
|
}, {
|
|
487
490
|
default: T(() => [
|
|
488
|
-
(a(!0), i(F, null, U(e.marketCategoryOptions, (l) => (a(),
|
|
491
|
+
(a(!0), i(F, null, U(e.marketCategoryOptions, (l) => (a(), k(r(ke), {
|
|
489
492
|
key: l.value,
|
|
490
493
|
label: l.label,
|
|
491
494
|
value: l.value,
|
|
492
495
|
class: "mcp-server-picker__content-market-header-select-option"
|
|
493
496
|
}, {
|
|
494
497
|
default: T(() => [
|
|
495
|
-
|
|
498
|
+
me(S(l.label), 1)
|
|
496
499
|
]),
|
|
497
500
|
_: 2
|
|
498
501
|
}, 1032, ["label", "value"]))), 128))
|
|
@@ -501,28 +504,28 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
501
504
|
}, 8, ["modelValue", "placeholder"])
|
|
502
505
|
])) : v("", !0),
|
|
503
506
|
e.enableSearch ? (a(), i("div", gt, [
|
|
504
|
-
|
|
507
|
+
m(r(Z), {
|
|
505
508
|
modelValue: h.value,
|
|
506
509
|
"onUpdate:modelValue": n[2] || (n[2] = (l) => h.value = l),
|
|
507
510
|
placeholder: w.value
|
|
508
511
|
}, {
|
|
509
512
|
suffix: T(() => [
|
|
510
|
-
|
|
513
|
+
m(r(ee), { class: "mcp-server-picker__icon" })
|
|
511
514
|
]),
|
|
512
515
|
_: 1
|
|
513
516
|
}, 8, ["modelValue", "placeholder"])
|
|
514
517
|
])) : v("", !0)
|
|
515
518
|
])) : v("", !0),
|
|
516
|
-
E.value ? (a(), i("div",
|
|
517
|
-
e.marketLoading ? (a(), i("div",
|
|
519
|
+
E.value ? (a(), i("div", _t, [
|
|
520
|
+
e.marketLoading ? (a(), i("div", mt, "加载中...")) : (a(!0), i(F, { key: 1 }, U($.value, (l) => (a(), k(r(te), {
|
|
518
521
|
key: l.id,
|
|
519
522
|
plugin: l,
|
|
520
523
|
mode: "market",
|
|
521
524
|
expandable: !1,
|
|
522
525
|
"show-tool-count": !1,
|
|
523
|
-
onAddPlugin:
|
|
526
|
+
onAddPlugin: y
|
|
524
527
|
}, null, 8, ["plugin"]))), 128))
|
|
525
|
-
])) : (a(),
|
|
528
|
+
])) : (a(), k(r(le), {
|
|
526
529
|
key: 2,
|
|
527
530
|
"search-query": h.value || C.value
|
|
528
531
|
}, null, 8, ["search-query"]))
|
|
@@ -533,7 +536,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
533
536
|
_: 1
|
|
534
537
|
}, 8, ["modelValue"])
|
|
535
538
|
]),
|
|
536
|
-
|
|
539
|
+
m(r(et), {
|
|
537
540
|
visible: A.value,
|
|
538
541
|
"onUpdate:visible": n[4] || (n[4] = (l) => A.value = l),
|
|
539
542
|
onConfirm: j
|
|
@@ -544,7 +547,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
|
|
|
544
547
|
_: 3
|
|
545
548
|
}, 8, ["name"]));
|
|
546
549
|
}
|
|
547
|
-
}), O = /* @__PURE__ */ z(vt, [["__scopeId", "data-v-
|
|
550
|
+
}), O = /* @__PURE__ */ z(vt, [["__scopeId", "data-v-5967a98a"]]);
|
|
548
551
|
O.name = "McpServerPicker";
|
|
549
552
|
const ft = function(o) {
|
|
550
553
|
o.component(O.name, O);
|