@opentiny/tiny-robot 0.3.0-rc.0 → 0.3.0-rc.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/attachments/index.js +4 -4
- package/dist/bubble/index.js +459 -458
- package/dist/container/index.js +44 -40
- package/dist/drag-overlay/index.js +5 -5
- package/dist/feedback/index.js +18 -19
- package/dist/icon-button/index.js +1 -1
- package/dist/index.d.ts +160 -60
- package/dist/index.js +59 -53
- package/dist/index2.js +29 -29
- package/dist/mcp-server-picker/index.js +306 -312
- package/dist/prompts/index.js +36 -39
- package/dist/sender/index.js +674 -681
- package/dist/style.css +1 -1
- package/dist/theme-provider/index.js +83 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, Comp
|
|
|
48
48
|
content: string | BubbleContentItem_2[];
|
|
49
49
|
placement: "start" | "end";
|
|
50
50
|
shape: "rounded" | "corner";
|
|
51
|
-
|
|
51
|
+
abortedText: string;
|
|
52
52
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
53
53
|
|
|
54
54
|
declare const __VLS_component_10: DefineComponent<__VLS_PublicProps_4, {
|
|
@@ -187,7 +187,18 @@ show?: TooltipContentProps["show"];
|
|
|
187
187
|
}>, {}, {}, {}, {}, {}> | null;
|
|
188
188
|
}, any>;
|
|
189
189
|
|
|
190
|
-
declare const __VLS_component_11: DefineComponent<
|
|
190
|
+
declare const __VLS_component_11: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
191
|
+
"update:theme": (value: string) => any;
|
|
192
|
+
"update:colorMode": (value: ColorMode) => any;
|
|
193
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
|
|
194
|
+
"onUpdate:theme"?: ((value: string) => any) | undefined;
|
|
195
|
+
"onUpdate:colorMode"?: ((value: ColorMode) => any) | undefined;
|
|
196
|
+
}>, {
|
|
197
|
+
targetElement: string;
|
|
198
|
+
storageKey: string;
|
|
199
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
200
|
+
|
|
201
|
+
declare const __VLS_component_12: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
|
|
191
202
|
align: "left" | "center" | "right" | string;
|
|
192
203
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
193
204
|
|
|
@@ -198,10 +209,15 @@ contentRenderers: Record<string, BubbleContentRenderer>;
|
|
|
198
209
|
declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
199
210
|
"update:show": (value: boolean) => any;
|
|
200
211
|
"update:fullscreen": (value: boolean | undefined) => any;
|
|
212
|
+
} & {
|
|
213
|
+
close: () => any;
|
|
201
214
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
215
|
+
onClose?: (() => any) | undefined;
|
|
202
216
|
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
203
217
|
"onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
|
|
204
|
-
}>, {
|
|
218
|
+
}>, {
|
|
219
|
+
title: string;
|
|
220
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
205
221
|
|
|
206
222
|
declare const __VLS_component_4: DefineComponent<DragOverlayProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DragOverlayProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
207
223
|
|
|
@@ -890,34 +906,43 @@ declare type __VLS_Props = {
|
|
|
890
906
|
contentRenderers?: Record<string, BubbleContentRenderer>;
|
|
891
907
|
};
|
|
892
908
|
|
|
893
|
-
declare type __VLS_Props_2 =
|
|
909
|
+
declare type __VLS_Props_2 = ContainerProps;
|
|
910
|
+
|
|
911
|
+
declare type __VLS_Props_3 = DropdownMenuProps;
|
|
912
|
+
|
|
913
|
+
declare type __VLS_Props_4 = SuggestionPillsProps;
|
|
894
914
|
|
|
895
|
-
declare type
|
|
915
|
+
declare type __VLS_Props_5 = SuggestionPopoverProps;
|
|
896
916
|
|
|
897
|
-
declare type
|
|
917
|
+
declare type __VLS_Props_6 = ThemeProviderProps;
|
|
898
918
|
|
|
899
|
-
declare type
|
|
919
|
+
declare type __VLS_Props_7 = McpServerPickerProps;
|
|
900
920
|
|
|
901
921
|
declare type __VLS_PublicProps = {
|
|
902
922
|
'show': ContainerProps['show'];
|
|
903
923
|
'fullscreen'?: ContainerProps['fullscreen'];
|
|
904
|
-
};
|
|
924
|
+
} & __VLS_Props_2;
|
|
905
925
|
|
|
906
926
|
declare type __VLS_PublicProps_2 = {
|
|
907
927
|
'show'?: boolean;
|
|
908
|
-
} &
|
|
928
|
+
} & __VLS_Props_3;
|
|
909
929
|
|
|
910
930
|
declare type __VLS_PublicProps_3 = {
|
|
911
931
|
'showAll'?: SuggestionPillsProps['showAll'];
|
|
912
|
-
} &
|
|
932
|
+
} & __VLS_Props_4;
|
|
913
933
|
|
|
914
934
|
declare type __VLS_PublicProps_4 = {
|
|
915
935
|
'selectedGroup'?: string;
|
|
916
|
-
} &
|
|
936
|
+
} & __VLS_Props_5;
|
|
917
937
|
|
|
918
938
|
declare type __VLS_PublicProps_5 = {
|
|
939
|
+
'theme'?: string;
|
|
940
|
+
'colorMode'?: ColorMode;
|
|
941
|
+
} & __VLS_Props_6;
|
|
942
|
+
|
|
943
|
+
declare type __VLS_PublicProps_6 = {
|
|
919
944
|
'visible': boolean;
|
|
920
|
-
} &
|
|
945
|
+
} & __VLS_Props_7;
|
|
921
946
|
|
|
922
947
|
declare function __VLS_template(): {
|
|
923
948
|
attrs: Partial<{}>;
|
|
@@ -1046,6 +1071,15 @@ declare function __VLS_template_10(): {
|
|
|
1046
1071
|
};
|
|
1047
1072
|
|
|
1048
1073
|
declare function __VLS_template_11(): {
|
|
1074
|
+
attrs: Partial<{}>;
|
|
1075
|
+
slots: {
|
|
1076
|
+
default?(_: {}): any;
|
|
1077
|
+
};
|
|
1078
|
+
refs: {};
|
|
1079
|
+
rootEl: any;
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
declare function __VLS_template_12(): {
|
|
1049
1083
|
attrs: Partial<{}>;
|
|
1050
1084
|
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
1051
1085
|
refs: {};
|
|
@@ -1713,6 +1747,8 @@ declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
|
|
|
1713
1747
|
|
|
1714
1748
|
declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
|
|
1715
1749
|
|
|
1750
|
+
declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
|
|
1751
|
+
|
|
1716
1752
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
1717
1753
|
|
|
1718
1754
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -1747,6 +1783,12 @@ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
|
|
|
1747
1783
|
};
|
|
1748
1784
|
};
|
|
1749
1785
|
|
|
1786
|
+
declare type __VLS_WithTemplateSlots_12<T, S> = T & {
|
|
1787
|
+
new (): {
|
|
1788
|
+
$slots: S;
|
|
1789
|
+
};
|
|
1790
|
+
};
|
|
1791
|
+
|
|
1750
1792
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
1751
1793
|
new (): {
|
|
1752
1794
|
$slots: S;
|
|
@@ -1875,7 +1917,7 @@ declare interface BaseTextItem {
|
|
|
1875
1917
|
content: string;
|
|
1876
1918
|
}
|
|
1877
1919
|
|
|
1878
|
-
declare const Bubble: typeof
|
|
1920
|
+
declare const Bubble: typeof _default_17 & {
|
|
1879
1921
|
install: typeof bubbleInstall;
|
|
1880
1922
|
};
|
|
1881
1923
|
export { Bubble }
|
|
@@ -1903,6 +1945,10 @@ export declare interface BubbleCommonProps {
|
|
|
1903
1945
|
* 自定义气泡内容字段。比如 customContentField 设置为 'my-content',则 Bubble 优先渲染 my-content 属性到气泡内容
|
|
1904
1946
|
*/
|
|
1905
1947
|
customContentField?: string;
|
|
1948
|
+
/**
|
|
1949
|
+
* 气泡中止文本
|
|
1950
|
+
*/
|
|
1951
|
+
abortedText?: string;
|
|
1906
1952
|
/**
|
|
1907
1953
|
* 气泡最大宽度
|
|
1908
1954
|
*/
|
|
@@ -1928,7 +1974,7 @@ export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | Bubb
|
|
|
1928
1974
|
|
|
1929
1975
|
declare const bubbleInstall: (app: App) => void;
|
|
1930
1976
|
|
|
1931
|
-
declare const BubbleList: typeof
|
|
1977
|
+
declare const BubbleList: typeof _default_18 & {
|
|
1932
1978
|
install: typeof bubbleListInstall;
|
|
1933
1979
|
};
|
|
1934
1980
|
export { BubbleList }
|
|
@@ -1988,7 +2034,7 @@ export declare interface BubbleProps extends BubbleCommonProps {
|
|
|
1988
2034
|
aborted?: boolean;
|
|
1989
2035
|
}
|
|
1990
2036
|
|
|
1991
|
-
declare const BubbleProvider: typeof
|
|
2037
|
+
declare const BubbleProvider: typeof _default_19 & {
|
|
1992
2038
|
install: typeof bubbleProviderInstall;
|
|
1993
2039
|
};
|
|
1994
2040
|
export { BubbleProvider }
|
|
@@ -2018,6 +2064,12 @@ export declare interface ButtonGroupConfig {
|
|
|
2018
2064
|
submit?: ControlState;
|
|
2019
2065
|
}
|
|
2020
2066
|
|
|
2067
|
+
export declare type ColorMode = 'light' | 'dark' | 'auto';
|
|
2068
|
+
|
|
2069
|
+
export declare interface ContainerEmits {
|
|
2070
|
+
(e: 'close'): void;
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2021
2073
|
export declare interface ContainerProps {
|
|
2022
2074
|
/**
|
|
2023
2075
|
* model:show
|
|
@@ -2027,6 +2079,7 @@ export declare interface ContainerProps {
|
|
|
2027
2079
|
* model:fullscreen
|
|
2028
2080
|
*/
|
|
2029
2081
|
fullscreen?: boolean;
|
|
2082
|
+
title?: string;
|
|
2030
2083
|
}
|
|
2031
2084
|
|
|
2032
2085
|
export declare interface ContainerSlots {
|
|
@@ -2046,37 +2099,43 @@ declare const _default: {
|
|
|
2046
2099
|
};
|
|
2047
2100
|
export default _default;
|
|
2048
2101
|
|
|
2049
|
-
declare const _default_10: typeof
|
|
2102
|
+
declare const _default_10: typeof _default_28 & {
|
|
2050
2103
|
install: typeof install_8;
|
|
2051
2104
|
};
|
|
2052
2105
|
export { _default_10 as Sender }
|
|
2053
2106
|
export { _default_10 as TrSender }
|
|
2054
2107
|
|
|
2055
|
-
declare const _default_11: typeof
|
|
2108
|
+
declare const _default_11: typeof _default_30 & {
|
|
2056
2109
|
install: typeof install_9;
|
|
2057
2110
|
};
|
|
2058
2111
|
export { _default_11 as SuggestionPills }
|
|
2059
2112
|
export { _default_11 as TrSuggestionPills }
|
|
2060
2113
|
|
|
2061
|
-
declare const _default_12: typeof
|
|
2114
|
+
declare const _default_12: typeof _default_31 & {
|
|
2062
2115
|
install: typeof install_10;
|
|
2063
2116
|
};
|
|
2064
2117
|
export { _default_12 as SuggestionPopover }
|
|
2065
2118
|
export { _default_12 as TrSuggestionPopover }
|
|
2066
2119
|
|
|
2067
|
-
declare const _default_13: typeof
|
|
2120
|
+
declare const _default_13: typeof _default_32 & {
|
|
2068
2121
|
install: typeof install_11;
|
|
2069
2122
|
};
|
|
2070
|
-
export { _default_13 as
|
|
2071
|
-
export { _default_13 as
|
|
2123
|
+
export { _default_13 as ThemeProvider }
|
|
2124
|
+
export { _default_13 as TrThemeProvider }
|
|
2072
2125
|
|
|
2073
|
-
declare const _default_14: typeof
|
|
2126
|
+
declare const _default_14: typeof _default_33 & {
|
|
2074
2127
|
install: typeof install_12;
|
|
2075
2128
|
};
|
|
2076
|
-
export { _default_14 as
|
|
2077
|
-
export { _default_14 as
|
|
2129
|
+
export { _default_14 as TrWelcome }
|
|
2130
|
+
export { _default_14 as Welcome }
|
|
2131
|
+
|
|
2132
|
+
declare const _default_15: typeof _default_34 & {
|
|
2133
|
+
install: typeof install_13;
|
|
2134
|
+
};
|
|
2135
|
+
export { _default_15 as McpServerPicker }
|
|
2136
|
+
export { _default_15 as TrMcpServerPicker }
|
|
2078
2137
|
|
|
2079
|
-
declare const
|
|
2138
|
+
declare const _default_16: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2080
2139
|
"update:items": (items: Attachment[]) => any;
|
|
2081
2140
|
remove: (file: Attachment) => any;
|
|
2082
2141
|
download: (event: MouseEvent, file: Attachment) => any;
|
|
@@ -2102,29 +2161,29 @@ fileMatchers: FileTypeMatcher_2[];
|
|
|
2102
2161
|
variant: DisplayVariant_2;
|
|
2103
2162
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2104
2163
|
|
|
2105
|
-
declare const
|
|
2164
|
+
declare const _default_17: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2106
2165
|
|
|
2107
|
-
declare const
|
|
2166
|
+
declare const _default_18: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2108
2167
|
scrollContainerRef: HTMLDivElement;
|
|
2109
2168
|
}, HTMLDivElement>;
|
|
2110
2169
|
|
|
2111
|
-
declare const
|
|
2112
|
-
|
|
2113
|
-
declare const _default_19: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2170
|
+
declare const _default_19: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2114
2171
|
|
|
2115
|
-
declare const _default_2: typeof
|
|
2172
|
+
declare const _default_2: typeof _default_16 & {
|
|
2116
2173
|
install: typeof install;
|
|
2117
2174
|
};
|
|
2118
2175
|
export { _default_2 as Attachments }
|
|
2119
2176
|
export { _default_2 as TrAttachments }
|
|
2120
2177
|
|
|
2121
|
-
declare const _default_20:
|
|
2178
|
+
declare const _default_20: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2122
2179
|
|
|
2123
|
-
declare const _default_21:
|
|
2180
|
+
declare const _default_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2124
2181
|
|
|
2125
|
-
declare const _default_22:
|
|
2182
|
+
declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2126
2183
|
|
|
2127
|
-
declare const _default_23:
|
|
2184
|
+
declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2185
|
+
|
|
2186
|
+
declare const _default_24: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2128
2187
|
action: (name: string) => any;
|
|
2129
2188
|
operation: (name: string) => any;
|
|
2130
2189
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
@@ -2136,32 +2195,36 @@ actionsLimit: number;
|
|
|
2136
2195
|
sourcesLinesLimit: number;
|
|
2137
2196
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2138
2197
|
|
|
2139
|
-
declare const
|
|
2198
|
+
declare const _default_25: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2140
2199
|
size: string | number;
|
|
2141
2200
|
svgSize: string | number;
|
|
2142
2201
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2143
2202
|
|
|
2144
|
-
declare const
|
|
2145
|
-
|
|
2146
|
-
|
|
2203
|
+
declare const _default_26: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
|
|
2204
|
+
size: "small" | "medium" | "large";
|
|
2205
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2147
2206
|
|
|
2148
|
-
declare const _default_27:
|
|
2207
|
+
declare const _default_27: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2149
2208
|
|
|
2150
|
-
declare const _default_28:
|
|
2209
|
+
declare const _default_28: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2151
2210
|
|
|
2152
|
-
declare const _default_29:
|
|
2211
|
+
declare const _default_29: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
2153
2212
|
|
|
2154
|
-
declare const _default_3: typeof
|
|
2213
|
+
declare const _default_3: typeof _default_20 & {
|
|
2155
2214
|
install: typeof install_2;
|
|
2156
2215
|
};
|
|
2157
2216
|
export { _default_3 as Container }
|
|
2158
2217
|
export { _default_3 as TrContainer }
|
|
2159
2218
|
|
|
2160
|
-
declare const _default_30:
|
|
2219
|
+
declare const _default_30: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2220
|
+
|
|
2221
|
+
declare const _default_31: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2161
2222
|
|
|
2162
|
-
declare const
|
|
2223
|
+
declare const _default_32: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2163
2224
|
|
|
2164
|
-
declare const
|
|
2225
|
+
declare const _default_33: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2226
|
+
|
|
2227
|
+
declare const _default_34: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2165
2228
|
"update:visible": (value: boolean) => any;
|
|
2166
2229
|
} & {
|
|
2167
2230
|
refresh: (tab: "installed" | "market") => any;
|
|
@@ -2170,18 +2233,18 @@ refresh: (tab: "installed" | "market") => any;
|
|
|
2170
2233
|
"tab-change": (activeTab: "installed" | "market") => any;
|
|
2171
2234
|
"plugin-toggle": (plugin: PluginInfo, enabled: boolean) => any;
|
|
2172
2235
|
"plugin-delete": (plugin: PluginInfo) => any;
|
|
2173
|
-
"plugin-add": (plugin: PluginInfo
|
|
2236
|
+
"plugin-add": (plugin: PluginInfo) => any;
|
|
2174
2237
|
"plugin-create": (type: "code" | "form", data: PluginCreationData) => any;
|
|
2175
2238
|
"tool-toggle": (plugin: PluginInfo, toolId: string, enabled: boolean) => any;
|
|
2176
2239
|
"update:activeCount": (count: number) => any;
|
|
2177
|
-
}, string, PublicProps, Readonly<
|
|
2240
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
|
|
2178
2241
|
onRefresh?: ((tab: "installed" | "market") => any) | undefined;
|
|
2179
2242
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
2180
2243
|
"onMarket-category-change"?: ((category: string) => any) | undefined;
|
|
2181
2244
|
"onTab-change"?: ((activeTab: "installed" | "market") => any) | undefined;
|
|
2182
2245
|
"onPlugin-toggle"?: ((plugin: PluginInfo, enabled: boolean) => any) | undefined;
|
|
2183
2246
|
"onPlugin-delete"?: ((plugin: PluginInfo) => any) | undefined;
|
|
2184
|
-
"onPlugin-add"?: ((plugin: PluginInfo
|
|
2247
|
+
"onPlugin-add"?: ((plugin: PluginInfo) => any) | undefined;
|
|
2185
2248
|
"onPlugin-create"?: ((type: "code" | "form", data: PluginCreationData) => any) | undefined;
|
|
2186
2249
|
"onTool-toggle"?: ((plugin: PluginInfo, toolId: string, enabled: boolean) => any) | undefined;
|
|
2187
2250
|
"onUpdate:activeCount"?: ((count: number) => any) | undefined;
|
|
@@ -2212,25 +2275,25 @@ allowPluginAdd: boolean;
|
|
|
2212
2275
|
marketLoading: boolean;
|
|
2213
2276
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2214
2277
|
|
|
2215
|
-
declare const _default_4: typeof
|
|
2278
|
+
declare const _default_4: typeof _default_21 & {
|
|
2216
2279
|
install: typeof install_3;
|
|
2217
2280
|
};
|
|
2218
2281
|
export { _default_4 as Conversations }
|
|
2219
2282
|
export { _default_4 as TrConversations }
|
|
2220
2283
|
|
|
2221
|
-
declare const _default_5: typeof
|
|
2284
|
+
declare const _default_5: typeof _default_22 & {
|
|
2222
2285
|
install: typeof install_4;
|
|
2223
2286
|
};
|
|
2224
2287
|
export { _default_5 as DragOverlay }
|
|
2225
2288
|
export { _default_5 as TrDragOverlay }
|
|
2226
2289
|
|
|
2227
|
-
declare const _default_6: typeof
|
|
2290
|
+
declare const _default_6: typeof _default_23 & {
|
|
2228
2291
|
install: typeof install_5;
|
|
2229
2292
|
};
|
|
2230
2293
|
export { _default_6 as DropdownMenu }
|
|
2231
2294
|
export { _default_6 as TrDropdownMenu }
|
|
2232
2295
|
|
|
2233
|
-
declare const _default_7: typeof
|
|
2296
|
+
declare const _default_7: typeof _default_24 & {
|
|
2234
2297
|
install: typeof install_6;
|
|
2235
2298
|
};
|
|
2236
2299
|
export { _default_7 as Feedback }
|
|
@@ -2243,7 +2306,7 @@ declare const _default_8: {
|
|
|
2243
2306
|
export { _default_8 as History }
|
|
2244
2307
|
export { _default_8 as TrHistory }
|
|
2245
2308
|
|
|
2246
|
-
declare const _default_9: typeof
|
|
2309
|
+
declare const _default_9: typeof _default_25 & {
|
|
2247
2310
|
install: typeof install_7;
|
|
2248
2311
|
};
|
|
2249
2312
|
export { _default_9 as IconButton }
|
|
@@ -2537,6 +2600,8 @@ declare const install_11: <T>(app: App<T>) => void;
|
|
|
2537
2600
|
|
|
2538
2601
|
declare const install_12: <T>(app: App<T>) => void;
|
|
2539
2602
|
|
|
2603
|
+
declare const install_13: <T>(app: App<T>) => void;
|
|
2604
|
+
|
|
2540
2605
|
declare const install_2: <T>(app: App<T>) => void;
|
|
2541
2606
|
|
|
2542
2607
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -2579,7 +2644,7 @@ export declare interface McpServerPickerEmits {
|
|
|
2579
2644
|
(e: 'tab-change', activeTab: 'installed' | 'market'): void;
|
|
2580
2645
|
(e: 'plugin-toggle', plugin: PluginInfo, enabled: boolean): void;
|
|
2581
2646
|
(e: 'plugin-delete', plugin: PluginInfo): void;
|
|
2582
|
-
(e: 'plugin-add', plugin: PluginInfo
|
|
2647
|
+
(e: 'plugin-add', plugin: PluginInfo): void;
|
|
2583
2648
|
(e: 'plugin-create', type: 'form' | 'code', data: PluginCreationData): void;
|
|
2584
2649
|
(e: 'tool-toggle', plugin: PluginInfo, toolId: string, enabled: boolean): void;
|
|
2585
2650
|
(e: 'refresh', tab: 'installed' | 'market'): void;
|
|
@@ -2624,10 +2689,12 @@ export declare type MultiTabHistoryProps = {
|
|
|
2624
2689
|
data: Record<string, HistoryData>;
|
|
2625
2690
|
} & BaseHistoryProps;
|
|
2626
2691
|
|
|
2692
|
+
export declare type PluginAddState = 'idle' | 'loading' | 'added';
|
|
2693
|
+
|
|
2627
2694
|
export declare interface PluginCardEmits {
|
|
2628
2695
|
(e: 'toggle-plugin', enabled: boolean): void;
|
|
2629
2696
|
(e: 'toggle-tool', toolId: string, enabled: boolean): void;
|
|
2630
|
-
(e: 'add-plugin',
|
|
2697
|
+
(e: 'add-plugin', plugin: PluginInfo): void;
|
|
2631
2698
|
(e: 'delete-plugin'): void;
|
|
2632
2699
|
}
|
|
2633
2700
|
|
|
@@ -2658,7 +2725,7 @@ export declare interface PluginInfo {
|
|
|
2658
2725
|
enabled: boolean;
|
|
2659
2726
|
expanded?: boolean;
|
|
2660
2727
|
tools: PluginTool[];
|
|
2661
|
-
|
|
2728
|
+
addState?: PluginAddState;
|
|
2662
2729
|
category?: string;
|
|
2663
2730
|
}
|
|
2664
2731
|
|
|
@@ -2687,7 +2754,7 @@ export declare interface PopupConfig {
|
|
|
2687
2754
|
};
|
|
2688
2755
|
}
|
|
2689
2756
|
|
|
2690
|
-
declare const Prompt: typeof
|
|
2757
|
+
declare const Prompt: typeof _default_26 & {
|
|
2691
2758
|
install: typeof installPrompt;
|
|
2692
2759
|
};
|
|
2693
2760
|
export { Prompt }
|
|
@@ -2718,9 +2785,13 @@ export declare interface PromptProps {
|
|
|
2718
2785
|
* 提示徽章,显示在提示项的右上角
|
|
2719
2786
|
*/
|
|
2720
2787
|
badge?: string | VNode;
|
|
2788
|
+
/**
|
|
2789
|
+
* 提示项大小。默认 medium
|
|
2790
|
+
*/
|
|
2791
|
+
size?: 'small' | 'medium' | 'large';
|
|
2721
2792
|
}
|
|
2722
2793
|
|
|
2723
|
-
declare const Prompts: typeof
|
|
2794
|
+
declare const Prompts: typeof _default_27 & {
|
|
2724
2795
|
install: typeof installPrompts;
|
|
2725
2796
|
};
|
|
2726
2797
|
export { Prompts }
|
|
@@ -2863,7 +2934,7 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
|
2863
2934
|
|
|
2864
2935
|
export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2865
2936
|
|
|
2866
|
-
declare const SuggestionPillButton: typeof
|
|
2937
|
+
declare const SuggestionPillButton: typeof _default_29 & {
|
|
2867
2938
|
install: typeof installPillButton;
|
|
2868
2939
|
};
|
|
2869
2940
|
export { SuggestionPillButton }
|
|
@@ -3006,6 +3077,25 @@ declare interface TextItem extends BaseTextItem {
|
|
|
3006
3077
|
type: 'text';
|
|
3007
3078
|
}
|
|
3008
3079
|
|
|
3080
|
+
export declare interface ThemeProviderProps {
|
|
3081
|
+
/**
|
|
3082
|
+
* 颜色模式(v-model:colorMode),可选值:light、dark、auto,默认值:auto
|
|
3083
|
+
*/
|
|
3084
|
+
colorMode?: ColorMode;
|
|
3085
|
+
/**
|
|
3086
|
+
* 应用主题属性选择器的目标元素,默认值:html。主题只会影响 targetElement 下的元素
|
|
3087
|
+
*/
|
|
3088
|
+
targetElement?: string;
|
|
3089
|
+
/**
|
|
3090
|
+
* 主题(v-model:theme)
|
|
3091
|
+
*/
|
|
3092
|
+
theme?: string;
|
|
3093
|
+
storage?: ThemeStorage;
|
|
3094
|
+
storageKey?: string;
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
export declare type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
|
|
3098
|
+
|
|
3009
3099
|
/**
|
|
3010
3100
|
* 组件核心类型定义
|
|
3011
3101
|
*/
|
|
@@ -3029,6 +3119,16 @@ export declare type UserTextItem = Omit<TextItem, 'id'> & {
|
|
|
3029
3119
|
id?: TextItem['id'];
|
|
3030
3120
|
};
|
|
3031
3121
|
|
|
3122
|
+
export declare const useTheme: () => {
|
|
3123
|
+
theme: Ref<string, string> | undefined;
|
|
3124
|
+
colorMode: Ref<ColorMode, ColorMode> | undefined;
|
|
3125
|
+
resolvedColorMode: Readonly<Ref<"light" | "dark", "light" | "dark">> | undefined;
|
|
3126
|
+
systemColorMode: Readonly<Ref<"light" | "dark", "light" | "dark">> | undefined;
|
|
3127
|
+
setTheme: (newTheme: string) => boolean;
|
|
3128
|
+
toggleColorMode: () => boolean;
|
|
3129
|
+
setColorMode: (mode: ColorMode) => boolean;
|
|
3130
|
+
};
|
|
3131
|
+
|
|
3032
3132
|
/**
|
|
3033
3133
|
* 拖拽区域指令
|
|
3034
3134
|
* @param el 元素
|