@opentiny/tiny-robot 0.3.0-rc.3 → 0.3.0-rc.5

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/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
- import { AutoSize as AutoSize_2 } from './index.type';
4
- import { BubbleContentItem as BubbleContentItem_2 } from './renderers';
5
3
  import { Component } from 'vue';
6
4
  import { ComponentCustomProperties } from 'vue';
7
5
  import { ComponentCustomProps } from 'vue';
@@ -17,14 +15,9 @@ import { CSSProperties } from 'vue';
17
15
  import { DebuggerEvent } from 'vue';
18
16
  import { DefineComponent } from 'vue';
19
17
  import { Directive } from 'vue';
20
- import { DisplayVariant as DisplayVariant_2 } from './index.type';
21
18
  import { ExtractPropTypes } from 'vue';
22
- import { FileTypeMatcher as FileTypeMatcher_2 } from './index.type';
23
19
  import { GlobalComponents } from 'vue';
24
20
  import { GlobalDirectives } from 'vue';
25
- import { InputMode as InputMode_2 } from './index.type';
26
- import { ISuggestionItem as ISuggestionItem_2 } from './index.type';
27
- import { MarketCategoryOption as MarketCategoryOption_2 } from './index.type';
28
21
  import { nextTick } from 'vue';
29
22
  import { OnCleanup } from '@vue/reactivity';
30
23
  import { Options } from 'markdown-it';
@@ -35,9 +28,6 @@ import { RendererElement } from 'vue';
35
28
  import { RendererNode } from 'vue';
36
29
  import { ShallowUnwrapRef } from 'vue';
37
30
  import { Slot } from 'vue';
38
- import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
39
- import { ThemeType as ThemeType_2 } from './index.type';
40
- import { TooltipContentProps } from './components/Tooltip.vue';
41
31
  import { TransitionProps } from 'vue';
42
32
  import { VNode } from 'vue';
43
33
  import { VNodeProps } from 'vue';
@@ -45,7 +35,7 @@ import { WatchOptions } from 'vue';
45
35
  import { WatchStopHandle } from 'vue';
46
36
 
47
37
  declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
48
- content: string | BubbleContentItem_2[];
38
+ content: string | BubbleContentItem[];
49
39
  placement: "start" | "end";
50
40
  shape: "rounded" | "corner";
51
41
  abortedText: string;
@@ -379,20 +369,20 @@ onSubmit?: ((value: string) => any) | undefined;
379
369
  disabled: boolean;
380
370
  modelValue: string;
381
371
  placeholder: string;
382
- mode: InputMode_2;
372
+ mode: InputMode;
383
373
  loading: boolean;
384
374
  autofocus: boolean;
385
- clearable: boolean;
386
- showWordLimit: boolean;
387
375
  allowSpeech: boolean;
388
376
  allowFiles: boolean;
389
- submitType: SubmitTrigger_2;
377
+ submitType: SubmitTrigger;
390
378
  stopText: string;
391
- suggestions: ISuggestionItem_2[];
392
- autoSize: AutoSize_2;
379
+ suggestions: ISuggestionItem[];
380
+ autoSize: AutoSize;
381
+ clearable: boolean;
393
382
  maxLength: number;
383
+ showWordLimit: boolean;
394
384
  suggestionPopupWidth: string | number;
395
- theme: ThemeType_2;
385
+ theme: ThemeType;
396
386
  templateData: UserItem[];
397
387
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
398
388
  senderRef: HTMLDivElement;
@@ -902,6 +892,10 @@ floatingItemsRef: HTMLDivElement;
902
892
  floatingMaybeItemRefs: unknown[];
903
893
  }, HTMLDivElement>;
904
894
 
895
+ declare type __VLS_PrettifyLocal<T> = {
896
+ [K in keyof T]: T[K];
897
+ } & {};
898
+
905
899
  declare type __VLS_Props = {
906
900
  contentRenderers?: Record<string, BubbleContentRenderer>;
907
901
  };
@@ -1861,6 +1855,8 @@ export declare interface ActionButtonsProps {
1861
1855
  stopText?: string;
1862
1856
  }
1863
1857
 
1858
+ export declare type AddType = 'form' | 'code';
1859
+
1864
1860
  export declare type Attachment = UrlAttachment | RawFileAttachment;
1865
1861
 
1866
1862
  export declare interface AttachmentListEmits {
@@ -1902,22 +1898,13 @@ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled'
1902
1898
 
1903
1899
  export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
1904
1900
 
1905
- declare interface BaseHistoryProps {
1906
- activeTab?: string;
1907
- searchBar?: boolean;
1908
- searchQuery?: string;
1909
- searchPlaceholder?: string;
1910
- searchFn?: (query: string, item: HistoryItem) => boolean;
1911
- selected?: string;
1912
- }
1913
-
1914
1901
  declare interface BaseTextItem {
1915
1902
  id: string;
1916
1903
  type: string;
1917
1904
  content: string;
1918
1905
  }
1919
1906
 
1920
- declare const Bubble: typeof _default_17 & {
1907
+ declare const Bubble: typeof _default_18 & {
1921
1908
  install: typeof bubbleInstall;
1922
1909
  };
1923
1910
  export { Bubble }
@@ -1974,7 +1961,7 @@ export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | Bubb
1974
1961
 
1975
1962
  declare const bubbleInstall: (app: App) => void;
1976
1963
 
1977
- declare const BubbleList: typeof _default_18 & {
1964
+ declare const BubbleList: typeof _default_19 & {
1978
1965
  install: typeof bubbleListInstall;
1979
1966
  };
1980
1967
  export { BubbleList }
@@ -2034,7 +2021,7 @@ export declare interface BubbleProps extends BubbleCommonProps {
2034
2021
  aborted?: boolean;
2035
2022
  }
2036
2023
 
2037
- declare const BubbleProvider: typeof _default_19 & {
2024
+ declare const BubbleProvider: typeof _default_20 & {
2038
2025
  install: typeof bubbleProviderInstall;
2039
2026
  };
2040
2027
  export { BubbleProvider }
@@ -2099,43 +2086,49 @@ declare const _default: {
2099
2086
  };
2100
2087
  export default _default;
2101
2088
 
2102
- declare const _default_10: typeof _default_28 & {
2103
- install: typeof install_8;
2089
+ declare const _default_10: typeof _default_30 & {
2090
+ install: typeof install_9;
2104
2091
  };
2105
2092
  export { _default_10 as Sender }
2106
2093
  export { _default_10 as TrSender }
2107
2094
 
2108
- declare const _default_11: typeof _default_30 & {
2109
- install: typeof install_9;
2095
+ declare const _default_11: typeof _default_32 & {
2096
+ install: typeof install_10;
2110
2097
  };
2111
2098
  export { _default_11 as SuggestionPills }
2112
2099
  export { _default_11 as TrSuggestionPills }
2113
2100
 
2114
- declare const _default_12: typeof _default_31 & {
2115
- install: typeof install_10;
2101
+ declare const _default_12: typeof _default_33 & {
2102
+ install: typeof install_11;
2116
2103
  };
2117
2104
  export { _default_12 as SuggestionPopover }
2118
2105
  export { _default_12 as TrSuggestionPopover }
2119
2106
 
2120
- declare const _default_13: typeof _default_32 & {
2121
- install: typeof install_11;
2107
+ declare const _default_13: typeof _default_34 & {
2108
+ install: typeof install_12;
2122
2109
  };
2123
2110
  export { _default_13 as ThemeProvider }
2124
2111
  export { _default_13 as TrThemeProvider }
2125
2112
 
2126
- declare const _default_14: typeof _default_33 & {
2127
- install: typeof install_12;
2113
+ declare const _default_14: typeof _default_35 & {
2114
+ install: typeof install_13;
2128
2115
  };
2129
2116
  export { _default_14 as TrWelcome }
2130
2117
  export { _default_14 as Welcome }
2131
2118
 
2132
- declare const _default_15: typeof _default_34 & {
2133
- install: typeof install_13;
2119
+ declare const _default_15: typeof _default_36 & {
2120
+ install: typeof install_14;
2134
2121
  };
2135
2122
  export { _default_15 as McpServerPicker }
2136
2123
  export { _default_15 as TrMcpServerPicker }
2137
2124
 
2138
- declare const _default_16: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2125
+ declare const _default_16: typeof _default_37 & {
2126
+ install: typeof install_15;
2127
+ };
2128
+ export { _default_16 as McpAddForm }
2129
+ export { _default_16 as TrMcpAddForm }
2130
+
2131
+ declare const _default_17: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2139
2132
  "update:items": (items: Attachment[]) => any;
2140
2133
  remove: (file: Attachment) => any;
2141
2134
  download: (event: MouseEvent, file: Attachment) => any;
@@ -2157,33 +2150,33 @@ file: Attachment;
2157
2150
  }) => any) | undefined;
2158
2151
  }>, {
2159
2152
  actions: ActionButton[];
2160
- fileMatchers: FileTypeMatcher_2[];
2161
- variant: DisplayVariant_2;
2153
+ fileMatchers: FileTypeMatcher[];
2154
+ variant: DisplayVariant;
2162
2155
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2163
2156
 
2164
- declare const _default_17: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2157
+ declare const _default_18: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2165
2158
 
2166
- declare const _default_18: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2159
+ declare const _default_19: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2167
2160
  scrollContainerRef: HTMLDivElement;
2168
2161
  }, HTMLDivElement>;
2169
2162
 
2170
- declare const _default_19: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2171
-
2172
- declare const _default_2: typeof _default_16 & {
2163
+ declare const _default_2: typeof _default_17 & {
2173
2164
  install: typeof install;
2174
2165
  };
2175
2166
  export { _default_2 as Attachments }
2176
2167
  export { _default_2 as TrAttachments }
2177
2168
 
2178
- declare const _default_20: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2169
+ declare const _default_20: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2179
2170
 
2180
- declare const _default_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2171
+ declare const _default_21: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2181
2172
 
2182
- declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2173
+ declare const _default_22: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2183
2174
 
2184
- declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2175
+ declare const _default_23: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2185
2176
 
2186
- declare const _default_24: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2177
+ declare const _default_24: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2178
+
2179
+ declare const _default_25: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2187
2180
  action: (name: string) => any;
2188
2181
  operation: (name: string) => any;
2189
2182
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
@@ -2195,36 +2188,50 @@ actionsLimit: number;
2195
2188
  sourcesLinesLimit: number;
2196
2189
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2197
2190
 
2198
- declare const _default_25: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2191
+ declare const _default_26: <T extends HistoryItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2192
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
2193
+ readonly "onItem-click"?: ((item: T) => any) | undefined;
2194
+ readonly "onItem-title-change"?: ((newTitle: string, item: T) => any) | undefined;
2195
+ readonly "onItem-action"?: ((action: HistoryMenuItem, item: T) => any) | undefined;
2196
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onItem-click" | "onItem-title-change" | "onItem-action"> & HistoryProps<T> & Partial<{}>> & PublicProps;
2197
+ expose(exposed: ShallowUnwrapRef< {}>): void;
2198
+ attrs: any;
2199
+ slots: {};
2200
+ emit: ((evt: "item-click", item: T) => void) & ((evt: "item-title-change", newTitle: string, item: T) => void) & ((evt: "item-action", action: HistoryMenuItem, item: T) => void);
2201
+ }>) => VNode & {
2202
+ __ctx?: Awaited<typeof __VLS_setup>;
2203
+ };
2204
+
2205
+ declare const _default_27: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2199
2206
  size: string | number;
2200
2207
  svgSize: string | number;
2201
2208
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2202
2209
 
2203
- declare const _default_26: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2210
+ declare const _default_28: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2204
2211
  size: "small" | "medium" | "large";
2205
2212
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2206
2213
 
2207
- declare const _default_27: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2208
-
2209
- declare const _default_28: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2214
+ declare const _default_29: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2210
2215
 
2211
- declare const _default_29: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2212
-
2213
- declare const _default_3: typeof _default_20 & {
2216
+ declare const _default_3: typeof _default_21 & {
2214
2217
  install: typeof install_2;
2215
2218
  };
2216
2219
  export { _default_3 as Container }
2217
2220
  export { _default_3 as TrContainer }
2218
2221
 
2219
- declare const _default_30: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2222
+ declare const _default_30: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2223
+
2224
+ declare const _default_31: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2220
2225
 
2221
- declare const _default_31: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2226
+ declare const _default_32: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2222
2227
 
2223
- declare const _default_32: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2228
+ declare const _default_33: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2224
2229
 
2225
- declare const _default_33: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2230
+ declare const _default_34: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2226
2231
 
2227
- declare const _default_34: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2232
+ declare const _default_35: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2233
+
2234
+ declare const _default_36: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2228
2235
  "update:visible": (value: boolean) => any;
2229
2236
  } & {
2230
2237
  refresh: (tab: "installed" | "market") => any;
@@ -2251,13 +2258,13 @@ onRefresh?: ((tab: "installed" | "market") => any) | undefined;
2251
2258
  }>, {
2252
2259
  title: string;
2253
2260
  loading: boolean;
2254
- searchPlaceholder: string;
2255
2261
  installedPlugins: PluginInfo[];
2256
2262
  marketPlugins: PluginInfo[];
2263
+ searchPlaceholder: string;
2257
2264
  enableSearch: boolean;
2258
2265
  installedSearchFn: (query: string, item: PluginInfo) => boolean;
2259
2266
  marketSearchFn: (query: string, item: PluginInfo) => boolean;
2260
- marketCategoryOptions: MarketCategoryOption_2[];
2267
+ marketCategoryOptions: MarketCategoryOption[];
2261
2268
  marketCategoryPlaceholder: string;
2262
2269
  enableMarketCategoryFilter: boolean;
2263
2270
  defaultActiveTab: "installed" | "market";
@@ -2275,39 +2282,50 @@ allowPluginAdd: boolean;
2275
2282
  marketLoading: boolean;
2276
2283
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2277
2284
 
2278
- declare const _default_4: typeof _default_21 & {
2285
+ declare const _default_37: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2286
+ cancel: () => any;
2287
+ confirm: (type: AddType, data: string | McpAddFormData) => any;
2288
+ "update:addType": (value: AddType) => any;
2289
+ }, string, PublicProps, Readonly<McpAddFormProps> & Readonly<{
2290
+ onCancel?: (() => any) | undefined;
2291
+ onConfirm?: ((type: AddType, data: string | McpAddFormData) => any) | undefined;
2292
+ "onUpdate:addType"?: ((value: AddType) => any) | undefined;
2293
+ }>, {
2294
+ addType: AddType;
2295
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2296
+
2297
+ declare const _default_4: typeof _default_22 & {
2279
2298
  install: typeof install_3;
2280
2299
  };
2281
2300
  export { _default_4 as Conversations }
2282
2301
  export { _default_4 as TrConversations }
2283
2302
 
2284
- declare const _default_5: typeof _default_22 & {
2303
+ declare const _default_5: typeof _default_23 & {
2285
2304
  install: typeof install_4;
2286
2305
  };
2287
2306
  export { _default_5 as DragOverlay }
2288
2307
  export { _default_5 as TrDragOverlay }
2289
2308
 
2290
- declare const _default_6: typeof _default_23 & {
2309
+ declare const _default_6: typeof _default_24 & {
2291
2310
  install: typeof install_5;
2292
2311
  };
2293
2312
  export { _default_6 as DropdownMenu }
2294
2313
  export { _default_6 as TrDropdownMenu }
2295
2314
 
2296
- declare const _default_7: typeof _default_24 & {
2315
+ declare const _default_7: typeof _default_25 & {
2297
2316
  install: typeof install_6;
2298
2317
  };
2299
2318
  export { _default_7 as Feedback }
2300
2319
  export { _default_7 as TrFeedback }
2301
2320
 
2302
- declare const _default_8: {
2303
- install: <T>(app: App<T>) => void;
2304
- name: string;
2321
+ declare const _default_8: typeof _default_26 & {
2322
+ install: typeof install_7;
2305
2323
  };
2306
2324
  export { _default_8 as History }
2307
2325
  export { _default_8 as TrHistory }
2308
2326
 
2309
- declare const _default_9: typeof _default_25 & {
2310
- install: typeof install_7;
2327
+ declare const _default_9: typeof _default_27 & {
2328
+ install: typeof install_8;
2311
2329
  };
2312
2330
  export { _default_9 as IconButton }
2313
2331
  export { _default_9 as TrIconButton }
@@ -2537,6 +2555,7 @@ export declare interface FileTypeMatcher {
2537
2555
  declare interface fileUploadConfig {
2538
2556
  accept?: string;
2539
2557
  multiple?: boolean;
2558
+ reset?: boolean;
2540
2559
  }
2541
2560
 
2542
2561
  export declare interface Handlers {
@@ -2548,34 +2567,33 @@ export declare interface Handlers {
2548
2567
 
2549
2568
  declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
2550
2569
 
2551
- export declare type HistoryData = HistoryItem[] | HistoryGroup[];
2552
-
2553
- export declare interface HistoryEvents {
2554
- (e: 'close'): void;
2555
- (e: 'item-click', item: HistoryItem): void;
2556
- (e: 'item-title-change', newTitle: string, rawData: HistoryItem): void;
2557
- (e: 'item-delete', item: HistoryItem): void;
2558
- }
2570
+ export declare type HistoryData<T extends HistoryItem> = T[] | HistoryGroup<T>[];
2559
2571
 
2560
- export declare interface HistoryGroup<T = Record<string, unknown>> {
2572
+ export declare interface HistoryGroup<T extends HistoryItem> {
2561
2573
  group: string | symbol;
2562
- items: HistoryItem<T>[];
2574
+ items: T[];
2563
2575
  }
2564
2576
 
2565
- export declare interface HistoryItem<T = Record<string, unknown>> {
2566
- id: string;
2577
+ export declare interface HistoryItem {
2578
+ id?: string;
2567
2579
  title: string;
2568
- tag?: HistoryItemTagProps;
2569
- data?: T;
2580
+ [x: string]: any;
2570
2581
  }
2571
2582
 
2572
- export declare interface HistoryItemTagProps {
2583
+ export declare interface HistoryMenuItem {
2584
+ id: string;
2573
2585
  text: string;
2574
- type?: 'success' | 'warning' | 'error' | 'info' | 'default';
2575
- style?: CSSProperties;
2586
+ icon?: Component | VNode;
2576
2587
  }
2577
2588
 
2578
- export declare type HistoryProps = SingleTabHistoryProps | MultiTabHistoryProps;
2589
+ export declare type HistoryProps<T extends HistoryItem = HistoryItem> = {
2590
+ data: HistoryData<T>;
2591
+ selected?: string;
2592
+ showRenameControls?: boolean;
2593
+ renameControlOnClickOutside?: 'confirm' | 'cancel' | 'none';
2594
+ menuItems?: HistoryMenuItem[];
2595
+ menuListGap?: number;
2596
+ };
2579
2597
 
2580
2598
  export declare interface IconButtonProps {
2581
2599
  icon: VNode | Component;
@@ -2602,6 +2620,10 @@ declare const install_12: <T>(app: App<T>) => void;
2602
2620
 
2603
2621
  declare const install_13: <T>(app: App<T>) => void;
2604
2622
 
2623
+ declare const install_14: <T>(app: App<T>) => void;
2624
+
2625
+ declare const install_15: <T>(app: App<T>) => void;
2626
+
2605
2627
  declare const install_2: <T>(app: App<T>) => void;
2606
2628
 
2607
2629
  declare const install_3: <T>(app: App<T>) => void;
@@ -2639,6 +2661,27 @@ export declare interface MarketCategoryOption {
2639
2661
  label: string;
2640
2662
  }
2641
2663
 
2664
+ export declare interface McpAddFormData {
2665
+ name: string;
2666
+ description: string;
2667
+ type: 'sse' | 'streamableHttp';
2668
+ url: string;
2669
+ headers: string;
2670
+ thumbnail?: File | null;
2671
+ }
2672
+
2673
+ export declare interface McpAddFormEmits {
2674
+ (e: 'update:addType', value: AddType): void;
2675
+ (e: 'confirm', type: AddType, data: McpAddFormData | string): void;
2676
+ (e: 'cancel'): void;
2677
+ }
2678
+
2679
+ export declare interface McpAddFormProps {
2680
+ addType?: AddType;
2681
+ formData?: McpAddFormData;
2682
+ codeData?: string;
2683
+ }
2684
+
2642
2685
  export declare interface McpServerPickerEmits {
2643
2686
  (e: 'market-category-change', category: string): void;
2644
2687
  (e: 'tab-change', activeTab: 'installed' | 'market'): void;
@@ -2681,14 +2724,6 @@ export declare interface McpServerPickerProps {
2681
2724
  marketLoading?: boolean;
2682
2725
  }
2683
2726
 
2684
- export declare type MultiTabHistoryProps = {
2685
- tabs: {
2686
- title: string;
2687
- id: string;
2688
- }[];
2689
- data: Record<string, HistoryData>;
2690
- } & BaseHistoryProps;
2691
-
2692
2727
  export declare type PluginAddState = 'idle' | 'loading' | 'added';
2693
2728
 
2694
2729
  export declare interface PluginCardEmits {
@@ -2754,7 +2789,7 @@ export declare interface PopupConfig {
2754
2789
  };
2755
2790
  }
2756
2791
 
2757
- declare const Prompt: typeof _default_26 & {
2792
+ declare const Prompt: typeof _default_28 & {
2758
2793
  install: typeof installPrompt;
2759
2794
  };
2760
2795
  export { Prompt }
@@ -2791,7 +2826,7 @@ export declare interface PromptProps {
2791
2826
  size?: 'small' | 'medium' | 'large';
2792
2827
  }
2793
2828
 
2794
- declare const Prompts: typeof _default_27 & {
2829
+ declare const Prompts: typeof _default_29 & {
2795
2830
  install: typeof installPrompts;
2796
2831
  };
2797
2832
  export { Prompts }
@@ -2879,16 +2914,12 @@ export declare interface SenderProps {
2879
2914
  showWordLimit?: boolean;
2880
2915
  suggestions?: ISuggestionItem[];
2881
2916
  suggestionPopupWidth?: string | number;
2917
+ activeSuggestionKeys?: string[];
2882
2918
  theme?: ThemeType;
2883
2919
  templateData?: UserItem[];
2884
2920
  stopText?: string;
2885
2921
  }
2886
2922
 
2887
- export declare type SingleTabHistoryProps = {
2888
- tabTitle: string;
2889
- data: HistoryData;
2890
- } & BaseHistoryProps;
2891
-
2892
2923
  export declare interface SpeechConfig {
2893
2924
  lang?: string;
2894
2925
  continuous?: boolean;
@@ -2934,7 +2965,7 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2934
2965
 
2935
2966
  export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2936
2967
 
2937
- declare const SuggestionPillButton: typeof _default_29 & {
2968
+ declare const SuggestionPillButton: typeof _default_31 & {
2938
2969
  install: typeof installPillButton;
2939
2970
  };
2940
2971
  export { SuggestionPillButton }
@@ -3101,6 +3132,16 @@ export declare type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
3101
3132
  */
3102
3133
  export declare type ThemeType = 'light' | 'dark';
3103
3134
 
3135
+ declare interface TooltipContentProps {
3136
+ show?: boolean;
3137
+ content: string;
3138
+ trigger?: HTMLElement | null;
3139
+ disabled?: boolean;
3140
+ placement?: 'top' | 'bottom';
3141
+ delayOpen?: number;
3142
+ delayClose?: number;
3143
+ }
3144
+
3104
3145
  export declare type TooltipRender = () => VNode | string;
3105
3146
 
3106
3147
  export declare interface UrlAttachment extends BaseAttachment {
@@ -3129,6 +3170,10 @@ export declare const useTheme: () => {
3129
3170
  setColorMode: (mode: ColorMode) => boolean;
3130
3171
  };
3131
3172
 
3173
+ export declare function useTouchDevice(): {
3174
+ isTouchDevice: Ref<boolean, boolean>;
3175
+ };
3176
+
3132
3177
  /**
3133
3178
  * 拖拽区域指令
3134
3179
  * @param el 元素