@opentiny/tiny-robot 0.3.0-rc.0 → 0.3.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attachments/index.js +4 -4
- package/dist/bubble/index.js +2 -2
- package/dist/container/index.js +44 -40
- package/dist/drag-overlay/index.js +5 -5
- package/dist/feedback/index.js +18 -19
- package/dist/index.d.ts +155 -59
- 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
|
@@ -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 }
|
|
@@ -1928,7 +1970,7 @@ export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | Bubb
|
|
|
1928
1970
|
|
|
1929
1971
|
declare const bubbleInstall: (app: App) => void;
|
|
1930
1972
|
|
|
1931
|
-
declare const BubbleList: typeof
|
|
1973
|
+
declare const BubbleList: typeof _default_18 & {
|
|
1932
1974
|
install: typeof bubbleListInstall;
|
|
1933
1975
|
};
|
|
1934
1976
|
export { BubbleList }
|
|
@@ -1988,7 +2030,7 @@ export declare interface BubbleProps extends BubbleCommonProps {
|
|
|
1988
2030
|
aborted?: boolean;
|
|
1989
2031
|
}
|
|
1990
2032
|
|
|
1991
|
-
declare const BubbleProvider: typeof
|
|
2033
|
+
declare const BubbleProvider: typeof _default_19 & {
|
|
1992
2034
|
install: typeof bubbleProviderInstall;
|
|
1993
2035
|
};
|
|
1994
2036
|
export { BubbleProvider }
|
|
@@ -2018,6 +2060,12 @@ export declare interface ButtonGroupConfig {
|
|
|
2018
2060
|
submit?: ControlState;
|
|
2019
2061
|
}
|
|
2020
2062
|
|
|
2063
|
+
export declare type ColorMode = 'light' | 'dark' | 'auto';
|
|
2064
|
+
|
|
2065
|
+
export declare interface ContainerEmits {
|
|
2066
|
+
(e: 'close'): void;
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2021
2069
|
export declare interface ContainerProps {
|
|
2022
2070
|
/**
|
|
2023
2071
|
* model:show
|
|
@@ -2027,6 +2075,7 @@ export declare interface ContainerProps {
|
|
|
2027
2075
|
* model:fullscreen
|
|
2028
2076
|
*/
|
|
2029
2077
|
fullscreen?: boolean;
|
|
2078
|
+
title?: string;
|
|
2030
2079
|
}
|
|
2031
2080
|
|
|
2032
2081
|
export declare interface ContainerSlots {
|
|
@@ -2046,37 +2095,43 @@ declare const _default: {
|
|
|
2046
2095
|
};
|
|
2047
2096
|
export default _default;
|
|
2048
2097
|
|
|
2049
|
-
declare const _default_10: typeof
|
|
2098
|
+
declare const _default_10: typeof _default_28 & {
|
|
2050
2099
|
install: typeof install_8;
|
|
2051
2100
|
};
|
|
2052
2101
|
export { _default_10 as Sender }
|
|
2053
2102
|
export { _default_10 as TrSender }
|
|
2054
2103
|
|
|
2055
|
-
declare const _default_11: typeof
|
|
2104
|
+
declare const _default_11: typeof _default_30 & {
|
|
2056
2105
|
install: typeof install_9;
|
|
2057
2106
|
};
|
|
2058
2107
|
export { _default_11 as SuggestionPills }
|
|
2059
2108
|
export { _default_11 as TrSuggestionPills }
|
|
2060
2109
|
|
|
2061
|
-
declare const _default_12: typeof
|
|
2110
|
+
declare const _default_12: typeof _default_31 & {
|
|
2062
2111
|
install: typeof install_10;
|
|
2063
2112
|
};
|
|
2064
2113
|
export { _default_12 as SuggestionPopover }
|
|
2065
2114
|
export { _default_12 as TrSuggestionPopover }
|
|
2066
2115
|
|
|
2067
|
-
declare const _default_13: typeof
|
|
2116
|
+
declare const _default_13: typeof _default_32 & {
|
|
2068
2117
|
install: typeof install_11;
|
|
2069
2118
|
};
|
|
2070
|
-
export { _default_13 as
|
|
2071
|
-
export { _default_13 as
|
|
2119
|
+
export { _default_13 as ThemeProvider }
|
|
2120
|
+
export { _default_13 as TrThemeProvider }
|
|
2072
2121
|
|
|
2073
|
-
declare const _default_14: typeof
|
|
2122
|
+
declare const _default_14: typeof _default_33 & {
|
|
2074
2123
|
install: typeof install_12;
|
|
2075
2124
|
};
|
|
2076
|
-
export { _default_14 as
|
|
2077
|
-
export { _default_14 as
|
|
2125
|
+
export { _default_14 as TrWelcome }
|
|
2126
|
+
export { _default_14 as Welcome }
|
|
2078
2127
|
|
|
2079
|
-
declare const _default_15:
|
|
2128
|
+
declare const _default_15: typeof _default_34 & {
|
|
2129
|
+
install: typeof install_13;
|
|
2130
|
+
};
|
|
2131
|
+
export { _default_15 as McpServerPicker }
|
|
2132
|
+
export { _default_15 as TrMcpServerPicker }
|
|
2133
|
+
|
|
2134
|
+
declare const _default_16: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2080
2135
|
"update:items": (items: Attachment[]) => any;
|
|
2081
2136
|
remove: (file: Attachment) => any;
|
|
2082
2137
|
download: (event: MouseEvent, file: Attachment) => any;
|
|
@@ -2102,29 +2157,29 @@ fileMatchers: FileTypeMatcher_2[];
|
|
|
2102
2157
|
variant: DisplayVariant_2;
|
|
2103
2158
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2104
2159
|
|
|
2105
|
-
declare const
|
|
2160
|
+
declare const _default_17: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2106
2161
|
|
|
2107
|
-
declare const
|
|
2162
|
+
declare const _default_18: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2108
2163
|
scrollContainerRef: HTMLDivElement;
|
|
2109
2164
|
}, HTMLDivElement>;
|
|
2110
2165
|
|
|
2111
|
-
declare const
|
|
2166
|
+
declare const _default_19: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2112
2167
|
|
|
2113
|
-
declare const
|
|
2114
|
-
|
|
2115
|
-
declare const _default_2: typeof _default_15 & {
|
|
2168
|
+
declare const _default_2: typeof _default_16 & {
|
|
2116
2169
|
install: typeof install;
|
|
2117
2170
|
};
|
|
2118
2171
|
export { _default_2 as Attachments }
|
|
2119
2172
|
export { _default_2 as TrAttachments }
|
|
2120
2173
|
|
|
2121
|
-
declare const _default_20:
|
|
2174
|
+
declare const _default_20: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2175
|
+
|
|
2176
|
+
declare const _default_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2122
2177
|
|
|
2123
|
-
declare const
|
|
2178
|
+
declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2124
2179
|
|
|
2125
|
-
declare const
|
|
2180
|
+
declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2126
2181
|
|
|
2127
|
-
declare const
|
|
2182
|
+
declare const _default_24: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2128
2183
|
action: (name: string) => any;
|
|
2129
2184
|
operation: (name: string) => any;
|
|
2130
2185
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
@@ -2136,32 +2191,36 @@ actionsLimit: number;
|
|
|
2136
2191
|
sourcesLinesLimit: number;
|
|
2137
2192
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2138
2193
|
|
|
2139
|
-
declare const
|
|
2194
|
+
declare const _default_25: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2140
2195
|
size: string | number;
|
|
2141
2196
|
svgSize: string | number;
|
|
2142
2197
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2143
2198
|
|
|
2144
|
-
declare const
|
|
2145
|
-
|
|
2146
|
-
|
|
2199
|
+
declare const _default_26: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
|
|
2200
|
+
size: "small" | "medium" | "large";
|
|
2201
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2147
2202
|
|
|
2148
|
-
declare const _default_27:
|
|
2203
|
+
declare const _default_27: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2149
2204
|
|
|
2150
|
-
declare const _default_28:
|
|
2205
|
+
declare const _default_28: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2151
2206
|
|
|
2152
|
-
declare const _default_29:
|
|
2207
|
+
declare const _default_29: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
2153
2208
|
|
|
2154
|
-
declare const _default_3: typeof
|
|
2209
|
+
declare const _default_3: typeof _default_20 & {
|
|
2155
2210
|
install: typeof install_2;
|
|
2156
2211
|
};
|
|
2157
2212
|
export { _default_3 as Container }
|
|
2158
2213
|
export { _default_3 as TrContainer }
|
|
2159
2214
|
|
|
2160
|
-
declare const _default_30:
|
|
2215
|
+
declare const _default_30: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2216
|
+
|
|
2217
|
+
declare const _default_31: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2218
|
+
|
|
2219
|
+
declare const _default_32: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2161
2220
|
|
|
2162
|
-
declare const
|
|
2221
|
+
declare const _default_33: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2163
2222
|
|
|
2164
|
-
declare const
|
|
2223
|
+
declare const _default_34: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2165
2224
|
"update:visible": (value: boolean) => any;
|
|
2166
2225
|
} & {
|
|
2167
2226
|
refresh: (tab: "installed" | "market") => any;
|
|
@@ -2170,18 +2229,18 @@ refresh: (tab: "installed" | "market") => any;
|
|
|
2170
2229
|
"tab-change": (activeTab: "installed" | "market") => any;
|
|
2171
2230
|
"plugin-toggle": (plugin: PluginInfo, enabled: boolean) => any;
|
|
2172
2231
|
"plugin-delete": (plugin: PluginInfo) => any;
|
|
2173
|
-
"plugin-add": (plugin: PluginInfo
|
|
2232
|
+
"plugin-add": (plugin: PluginInfo) => any;
|
|
2174
2233
|
"plugin-create": (type: "code" | "form", data: PluginCreationData) => any;
|
|
2175
2234
|
"tool-toggle": (plugin: PluginInfo, toolId: string, enabled: boolean) => any;
|
|
2176
2235
|
"update:activeCount": (count: number) => any;
|
|
2177
|
-
}, string, PublicProps, Readonly<
|
|
2236
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
|
|
2178
2237
|
onRefresh?: ((tab: "installed" | "market") => any) | undefined;
|
|
2179
2238
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
2180
2239
|
"onMarket-category-change"?: ((category: string) => any) | undefined;
|
|
2181
2240
|
"onTab-change"?: ((activeTab: "installed" | "market") => any) | undefined;
|
|
2182
2241
|
"onPlugin-toggle"?: ((plugin: PluginInfo, enabled: boolean) => any) | undefined;
|
|
2183
2242
|
"onPlugin-delete"?: ((plugin: PluginInfo) => any) | undefined;
|
|
2184
|
-
"onPlugin-add"?: ((plugin: PluginInfo
|
|
2243
|
+
"onPlugin-add"?: ((plugin: PluginInfo) => any) | undefined;
|
|
2185
2244
|
"onPlugin-create"?: ((type: "code" | "form", data: PluginCreationData) => any) | undefined;
|
|
2186
2245
|
"onTool-toggle"?: ((plugin: PluginInfo, toolId: string, enabled: boolean) => any) | undefined;
|
|
2187
2246
|
"onUpdate:activeCount"?: ((count: number) => any) | undefined;
|
|
@@ -2212,25 +2271,25 @@ allowPluginAdd: boolean;
|
|
|
2212
2271
|
marketLoading: boolean;
|
|
2213
2272
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2214
2273
|
|
|
2215
|
-
declare const _default_4: typeof
|
|
2274
|
+
declare const _default_4: typeof _default_21 & {
|
|
2216
2275
|
install: typeof install_3;
|
|
2217
2276
|
};
|
|
2218
2277
|
export { _default_4 as Conversations }
|
|
2219
2278
|
export { _default_4 as TrConversations }
|
|
2220
2279
|
|
|
2221
|
-
declare const _default_5: typeof
|
|
2280
|
+
declare const _default_5: typeof _default_22 & {
|
|
2222
2281
|
install: typeof install_4;
|
|
2223
2282
|
};
|
|
2224
2283
|
export { _default_5 as DragOverlay }
|
|
2225
2284
|
export { _default_5 as TrDragOverlay }
|
|
2226
2285
|
|
|
2227
|
-
declare const _default_6: typeof
|
|
2286
|
+
declare const _default_6: typeof _default_23 & {
|
|
2228
2287
|
install: typeof install_5;
|
|
2229
2288
|
};
|
|
2230
2289
|
export { _default_6 as DropdownMenu }
|
|
2231
2290
|
export { _default_6 as TrDropdownMenu }
|
|
2232
2291
|
|
|
2233
|
-
declare const _default_7: typeof
|
|
2292
|
+
declare const _default_7: typeof _default_24 & {
|
|
2234
2293
|
install: typeof install_6;
|
|
2235
2294
|
};
|
|
2236
2295
|
export { _default_7 as Feedback }
|
|
@@ -2243,7 +2302,7 @@ declare const _default_8: {
|
|
|
2243
2302
|
export { _default_8 as History }
|
|
2244
2303
|
export { _default_8 as TrHistory }
|
|
2245
2304
|
|
|
2246
|
-
declare const _default_9: typeof
|
|
2305
|
+
declare const _default_9: typeof _default_25 & {
|
|
2247
2306
|
install: typeof install_7;
|
|
2248
2307
|
};
|
|
2249
2308
|
export { _default_9 as IconButton }
|
|
@@ -2537,6 +2596,8 @@ declare const install_11: <T>(app: App<T>) => void;
|
|
|
2537
2596
|
|
|
2538
2597
|
declare const install_12: <T>(app: App<T>) => void;
|
|
2539
2598
|
|
|
2599
|
+
declare const install_13: <T>(app: App<T>) => void;
|
|
2600
|
+
|
|
2540
2601
|
declare const install_2: <T>(app: App<T>) => void;
|
|
2541
2602
|
|
|
2542
2603
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -2579,7 +2640,7 @@ export declare interface McpServerPickerEmits {
|
|
|
2579
2640
|
(e: 'tab-change', activeTab: 'installed' | 'market'): void;
|
|
2580
2641
|
(e: 'plugin-toggle', plugin: PluginInfo, enabled: boolean): void;
|
|
2581
2642
|
(e: 'plugin-delete', plugin: PluginInfo): void;
|
|
2582
|
-
(e: 'plugin-add', plugin: PluginInfo
|
|
2643
|
+
(e: 'plugin-add', plugin: PluginInfo): void;
|
|
2583
2644
|
(e: 'plugin-create', type: 'form' | 'code', data: PluginCreationData): void;
|
|
2584
2645
|
(e: 'tool-toggle', plugin: PluginInfo, toolId: string, enabled: boolean): void;
|
|
2585
2646
|
(e: 'refresh', tab: 'installed' | 'market'): void;
|
|
@@ -2624,10 +2685,12 @@ export declare type MultiTabHistoryProps = {
|
|
|
2624
2685
|
data: Record<string, HistoryData>;
|
|
2625
2686
|
} & BaseHistoryProps;
|
|
2626
2687
|
|
|
2688
|
+
export declare type PluginAddState = 'idle' | 'loading' | 'added';
|
|
2689
|
+
|
|
2627
2690
|
export declare interface PluginCardEmits {
|
|
2628
2691
|
(e: 'toggle-plugin', enabled: boolean): void;
|
|
2629
2692
|
(e: 'toggle-tool', toolId: string, enabled: boolean): void;
|
|
2630
|
-
(e: 'add-plugin',
|
|
2693
|
+
(e: 'add-plugin', plugin: PluginInfo): void;
|
|
2631
2694
|
(e: 'delete-plugin'): void;
|
|
2632
2695
|
}
|
|
2633
2696
|
|
|
@@ -2658,7 +2721,7 @@ export declare interface PluginInfo {
|
|
|
2658
2721
|
enabled: boolean;
|
|
2659
2722
|
expanded?: boolean;
|
|
2660
2723
|
tools: PluginTool[];
|
|
2661
|
-
|
|
2724
|
+
addState?: PluginAddState;
|
|
2662
2725
|
category?: string;
|
|
2663
2726
|
}
|
|
2664
2727
|
|
|
@@ -2687,7 +2750,7 @@ export declare interface PopupConfig {
|
|
|
2687
2750
|
};
|
|
2688
2751
|
}
|
|
2689
2752
|
|
|
2690
|
-
declare const Prompt: typeof
|
|
2753
|
+
declare const Prompt: typeof _default_26 & {
|
|
2691
2754
|
install: typeof installPrompt;
|
|
2692
2755
|
};
|
|
2693
2756
|
export { Prompt }
|
|
@@ -2718,9 +2781,13 @@ export declare interface PromptProps {
|
|
|
2718
2781
|
* 提示徽章,显示在提示项的右上角
|
|
2719
2782
|
*/
|
|
2720
2783
|
badge?: string | VNode;
|
|
2784
|
+
/**
|
|
2785
|
+
* 提示项大小。默认 medium
|
|
2786
|
+
*/
|
|
2787
|
+
size?: 'small' | 'medium' | 'large';
|
|
2721
2788
|
}
|
|
2722
2789
|
|
|
2723
|
-
declare const Prompts: typeof
|
|
2790
|
+
declare const Prompts: typeof _default_27 & {
|
|
2724
2791
|
install: typeof installPrompts;
|
|
2725
2792
|
};
|
|
2726
2793
|
export { Prompts }
|
|
@@ -2863,7 +2930,7 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
|
2863
2930
|
|
|
2864
2931
|
export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2865
2932
|
|
|
2866
|
-
declare const SuggestionPillButton: typeof
|
|
2933
|
+
declare const SuggestionPillButton: typeof _default_29 & {
|
|
2867
2934
|
install: typeof installPillButton;
|
|
2868
2935
|
};
|
|
2869
2936
|
export { SuggestionPillButton }
|
|
@@ -3006,6 +3073,25 @@ declare interface TextItem extends BaseTextItem {
|
|
|
3006
3073
|
type: 'text';
|
|
3007
3074
|
}
|
|
3008
3075
|
|
|
3076
|
+
export declare interface ThemeProviderProps {
|
|
3077
|
+
/**
|
|
3078
|
+
* 颜色模式(v-model:colorMode),可选值:light、dark、auto,默认值:auto
|
|
3079
|
+
*/
|
|
3080
|
+
colorMode?: ColorMode;
|
|
3081
|
+
/**
|
|
3082
|
+
* 应用主题属性选择器的目标元素,默认值:html。主题只会影响 targetElement 下的元素
|
|
3083
|
+
*/
|
|
3084
|
+
targetElement?: string;
|
|
3085
|
+
/**
|
|
3086
|
+
* 主题(v-model:theme)
|
|
3087
|
+
*/
|
|
3088
|
+
theme?: string;
|
|
3089
|
+
storage?: ThemeStorage;
|
|
3090
|
+
storageKey?: string;
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
export declare type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
|
|
3094
|
+
|
|
3009
3095
|
/**
|
|
3010
3096
|
* 组件核心类型定义
|
|
3011
3097
|
*/
|
|
@@ -3029,6 +3115,16 @@ export declare type UserTextItem = Omit<TextItem, 'id'> & {
|
|
|
3029
3115
|
id?: TextItem['id'];
|
|
3030
3116
|
};
|
|
3031
3117
|
|
|
3118
|
+
export declare const useTheme: () => {
|
|
3119
|
+
theme: Ref<string, string> | undefined;
|
|
3120
|
+
colorMode: Ref<ColorMode, ColorMode> | undefined;
|
|
3121
|
+
resolvedColorMode: Readonly<Ref<"light" | "dark", "light" | "dark">> | undefined;
|
|
3122
|
+
systemColorMode: Readonly<Ref<"light" | "dark", "light" | "dark">> | undefined;
|
|
3123
|
+
setTheme: (newTheme: string) => boolean;
|
|
3124
|
+
toggleColorMode: () => boolean;
|
|
3125
|
+
setColorMode: (mode: ColorMode) => boolean;
|
|
3126
|
+
};
|
|
3127
|
+
|
|
3032
3128
|
/**
|
|
3033
3129
|
* 拖拽区域指令
|
|
3034
3130
|
* @param el 元素
|