@opentiny/tiny-robot 0.3.0-alpha.9 → 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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
3
  import { AutoSize as AutoSize_2 } from './index.type';
4
- import { BubblePalcement as BubblePalcement_2 } from './index.type';
4
+ import { BubbleContentItem as BubbleContentItem_2 } from './renderers';
5
5
  import { Component } from 'vue';
6
6
  import { ComponentCustomProperties } from 'vue';
7
7
  import { ComponentCustomProps } from 'vue';
@@ -11,18 +11,23 @@ import { ComponentOptionsMixin } from 'vue';
11
11
  import { ComponentProvideOptions } from 'vue';
12
12
  import { ComponentPublicInstance } from 'vue';
13
13
  import { ComputedRef } from 'vue';
14
+ import { Config } from 'dompurify';
14
15
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
15
16
  import { CSSProperties } from 'vue';
16
17
  import { DebuggerEvent } from 'vue';
17
18
  import { DefineComponent } from 'vue';
19
+ import { Directive } from 'vue';
20
+ import { DisplayVariant as DisplayVariant_2 } from './index.type';
18
21
  import { ExtractPropTypes } from 'vue';
22
+ import { FileTypeMatcher as FileTypeMatcher_2 } from './index.type';
19
23
  import { GlobalComponents } from 'vue';
20
24
  import { GlobalDirectives } from 'vue';
21
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';
22
28
  import { nextTick } from 'vue';
23
29
  import { OnCleanup } from '@vue/reactivity';
24
30
  import { Options } from 'markdown-it';
25
- import { Props } from './components/SuggestionList.vue';
26
31
  import { PropType } from 'vue';
27
32
  import { PublicProps } from 'vue';
28
33
  import { Ref } from 'vue';
@@ -40,22 +45,184 @@ import { WatchOptions } from 'vue';
40
45
  import { WatchStopHandle } from 'vue';
41
46
 
42
47
  declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
43
- placement: BubblePalcement_2;
44
- type: "text" | "markdown";
48
+ content: string | BubbleContentItem_2[];
49
+ placement: "start" | "end";
50
+ shape: "rounded" | "corner";
45
51
  maxWidth: string | number;
46
- content: string;
47
52
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
48
53
 
49
- declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
54
+ declare const __VLS_component_10: DefineComponent<__VLS_PublicProps_4, {
55
+ update: () => void;
56
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
57
+ "update:selectedGroup": (value: string) => any;
58
+ } & {
59
+ close: () => any;
60
+ open: () => any;
61
+ "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
62
+ "click-outside": (event: MouseEvent) => any;
63
+ "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
64
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
65
+ onClose?: (() => any) | undefined;
66
+ onOpen?: (() => any) | undefined;
67
+ "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
68
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
69
+ "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
70
+ "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
71
+ }>, {
72
+ title: string;
73
+ trigger: "click" | "manual";
74
+ groupShowMoreTrigger: "click" | "hover";
75
+ topOffset: number;
76
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
77
+ basePopperRef: ({
78
+ $: ComponentInternalInstance;
79
+ $data: {};
80
+ $props: {
81
+ readonly appendTo?: (string | HTMLElement) | undefined;
82
+ readonly offset?: number | {
83
+ mainAxis?: number;
84
+ crossAxis?: number;
85
+ } | undefined;
86
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
87
+ readonly preventOverflow?: boolean | undefined;
88
+ readonly show?: boolean | undefined;
89
+ readonly transitionProps?: TransitionProps | undefined;
90
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
91
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
92
+ $attrs: {
93
+ [x: string]: unknown;
94
+ };
95
+ $refs: {
96
+ [x: string]: unknown;
97
+ };
98
+ $slots: Readonly<{
99
+ [name: string]: Slot<any> | undefined;
100
+ }>;
101
+ $root: ComponentPublicInstance | null;
102
+ $parent: ComponentPublicInstance | null;
103
+ $host: Element | null;
104
+ $emit: (event: string, ...args: any[]) => void;
105
+ $el: any;
106
+ $options: ComponentOptionsBase<Readonly<{
107
+ appendTo?: string | HTMLElement;
108
+ offset?: number | {
109
+ mainAxis?: number;
110
+ crossAxis?: number;
111
+ };
112
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
113
+ preventOverflow?: boolean;
114
+ show?: boolean;
115
+ transitionProps?: TransitionProps;
116
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
117
+ }> & Readonly<{}>, {
118
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
119
+ popperRef: ComputedRef<HTMLDivElement | null>;
120
+ update: () => void;
121
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
122
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
123
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
124
+ beforeCreate?: (() => void) | (() => void)[];
125
+ created?: (() => void) | (() => void)[];
126
+ beforeMount?: (() => void) | (() => void)[];
127
+ mounted?: (() => void) | (() => void)[];
128
+ beforeUpdate?: (() => void) | (() => void)[];
129
+ updated?: (() => void) | (() => void)[];
130
+ activated?: (() => void) | (() => void)[];
131
+ deactivated?: (() => void) | (() => void)[];
132
+ beforeDestroy?: (() => void) | (() => void)[];
133
+ beforeUnmount?: (() => void) | (() => void)[];
134
+ destroyed?: (() => void) | (() => void)[];
135
+ unmounted?: (() => void) | (() => void)[];
136
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
137
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
138
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
139
+ };
140
+ $forceUpdate: () => void;
141
+ $nextTick: nextTick;
142
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
143
+ } & Readonly<{
144
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
145
+ }> & Omit<Readonly<{
146
+ appendTo?: string | HTMLElement;
147
+ offset?: number | {
148
+ mainAxis?: number;
149
+ crossAxis?: number;
150
+ };
151
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
152
+ preventOverflow?: boolean;
153
+ show?: boolean;
154
+ transitionProps?: TransitionProps;
155
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
156
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
157
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
158
+ popperRef: ComputedRef<HTMLDivElement | null>;
159
+ update: () => void;
160
+ }> & {} & ComponentCustomProperties & {} & {
161
+ $slots: Readonly<{
162
+ trigger?: () => VNode[];
163
+ content?: () => VNode[];
164
+ }> & {
165
+ trigger?: () => VNode[];
166
+ content?: () => VNode[];
167
+ };
168
+ }) | null;
169
+ listRef: HTMLUListElement;
170
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
171
+ show?: TooltipContentProps["show"];
172
+ } & TooltipContentProps> & Readonly<{
173
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
174
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
175
+ "update:show": (value: boolean | undefined) => any;
176
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
177
+ P: {};
178
+ B: {};
179
+ D: {};
180
+ C: {};
181
+ M: {};
182
+ Defaults: {};
183
+ }, Readonly<{
184
+ show?: TooltipContentProps["show"];
185
+ } & TooltipContentProps> & Readonly<{
186
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
187
+ }>, {}, {}, {}, {}, {}> | null;
188
+ }, any>;
189
+
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<{}>, {
202
+ align: "left" | "center" | "right" | string;
203
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
204
+
205
+ declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
206
+ contentRenderers: Record<string, BubbleContentRenderer>;
207
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
208
+
209
+ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
50
210
  "update:show": (value: boolean) => any;
51
211
  "update:fullscreen": (value: boolean | undefined) => any;
212
+ } & {
213
+ close: () => any;
52
214
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
215
+ onClose?: (() => any) | undefined;
53
216
  "onUpdate:show"?: ((value: boolean) => any) | undefined;
54
217
  "onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
55
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
218
+ }>, {
219
+ title: string;
220
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
221
+
222
+ declare const __VLS_component_4: DefineComponent<DragOverlayProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DragOverlayProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
56
223
 
57
- declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_2, {
58
- update: () => void | undefined;
224
+ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps_2, {
225
+ update: () => void;
59
226
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
60
227
  "update:show": (value: boolean) => any;
61
228
  } & {
@@ -162,13 +329,13 @@ content?: () => VNode[];
162
329
  }) | null;
163
330
  }, any>;
164
331
 
165
- declare const __VLS_component_4: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
332
+ declare const __VLS_component_6: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
166
333
  "item-click": (ev: MouseEvent, item: PromptProps) => any;
167
334
  }, string, PublicProps, Readonly<PromptsProps> & Readonly<{
168
335
  "onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
169
336
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
170
337
 
171
- declare const __VLS_component_5: DefineComponent<SenderProps, {
338
+ declare const __VLS_component_7: DefineComponent<SenderProps, {
172
339
  focus: () => void;
173
340
  blur: () => void;
174
341
  clear: () => void;
@@ -176,17 +343,44 @@ submit: () => void;
176
343
  startSpeech: () => void;
177
344
  stopSpeech: () => void;
178
345
  activateTemplateFirstField: () => void;
179
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
180
- [x: string]: any;
181
- } & {
182
- [x: string]: any;
346
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
347
+ clear: () => any;
348
+ blur: (event: FocusEvent) => any;
349
+ cancel: () => any;
350
+ focus: (event: FocusEvent) => any;
351
+ submit: (value: string) => any;
352
+ "update:modelValue": (value: string) => any;
353
+ "update:templateData": (value: UserItem[]) => any;
354
+ "speech-start": () => any;
355
+ "speech-end": (transcript?: string | undefined) => any;
356
+ "speech-interim": (transcript: string) => any;
357
+ "speech-error": (error: Error) => any;
358
+ "suggestion-select": (value: string) => any;
359
+ "escape-press": () => any;
360
+ "reset-template": () => any;
361
+ "files-selected": (files: File[]) => any;
183
362
  }, string, PublicProps, Readonly<SenderProps> & Readonly<{
184
- [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
363
+ onClear?: (() => any) | undefined;
364
+ onBlur?: ((event: FocusEvent) => any) | undefined;
365
+ onCancel?: (() => any) | undefined;
366
+ onFocus?: ((event: FocusEvent) => any) | undefined;
367
+ onSubmit?: ((value: string) => any) | undefined;
368
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
369
+ "onUpdate:templateData"?: ((value: UserItem[]) => any) | undefined;
370
+ "onSpeech-start"?: (() => any) | undefined;
371
+ "onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
372
+ "onSpeech-interim"?: ((transcript: string) => any) | undefined;
373
+ "onSpeech-error"?: ((error: Error) => any) | undefined;
374
+ "onSuggestion-select"?: ((value: string) => any) | undefined;
375
+ "onEscape-press"?: (() => any) | undefined;
376
+ "onReset-template"?: (() => any) | undefined;
377
+ "onFiles-selected"?: ((files: File[]) => any) | undefined;
185
378
  }>, {
186
- loading: boolean;
187
- mode: InputMode_2;
188
379
  disabled: boolean;
189
380
  modelValue: string;
381
+ placeholder: string;
382
+ mode: InputMode_2;
383
+ loading: boolean;
190
384
  autofocus: boolean;
191
385
  clearable: boolean;
192
386
  showWordLimit: boolean;
@@ -194,10 +388,9 @@ allowSpeech: boolean;
194
388
  allowFiles: boolean;
195
389
  submitType: SubmitTrigger_2;
196
390
  stopText: string;
197
- suggestions: string[];
391
+ suggestions: ISuggestionItem_2[];
198
392
  autoSize: AutoSize_2;
199
393
  maxLength: number;
200
- placeholder: string;
201
394
  suggestionPopupWidth: string | number;
202
395
  theme: ThemeType_2;
203
396
  templateData: UserItem[];
@@ -685,33 +878,11 @@ showTooltip: boolean;
685
878
  inputBoxType: string;
686
879
  }> | null;
687
880
  buttonsContainerRef: HTMLDivElement;
688
- suggestionsListRef: CreateComponentPublicInstanceWithMixins<Readonly<Props> & Readonly<{
689
- onSelect?: ((item: string) => any) | undefined;
690
- "onItem-hover"?: ((index: number) => any) | undefined;
691
- "onItem-leave"?: (() => any) | undefined;
692
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
693
- select: (item: string) => any;
694
- "item-hover": (index: number) => any;
695
- "item-leave": () => any;
696
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
697
- suggestionsListRef: HTMLDivElement;
698
- }, any, ComponentProvideOptions, {
699
- P: {};
700
- B: {};
701
- D: {};
702
- C: {};
703
- M: {};
704
- Defaults: {};
705
- }, Readonly<Props> & Readonly<{
706
- onSelect?: ((item: string) => any) | undefined;
707
- "onItem-hover"?: ((index: number) => any) | undefined;
708
- "onItem-leave"?: (() => any) | undefined;
709
- }>, {}, {}, {}, {}, {}> | null;
710
881
  }, HTMLDivElement>;
711
882
 
712
- declare const __VLS_component_6: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
883
+ declare const __VLS_component_8: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
713
884
 
714
- declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_3, {
885
+ declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_3, {
715
886
  children: ComputedRef<(HTMLElement | SVGElement)[]>;
716
887
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
717
888
  "update:showAll": (value: boolean | undefined) => any;
@@ -731,184 +902,218 @@ floatingItemsRef: HTMLDivElement;
731
902
  floatingMaybeItemRefs: unknown[];
732
903
  }, HTMLDivElement>;
733
904
 
734
- declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_4, {
735
- update: () => void | undefined;
736
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
737
- "update:selectedGroup": (value: string) => any;
738
- } & {
739
- close: () => any;
740
- open: () => any;
741
- "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
742
- "click-outside": (event: MouseEvent) => any;
743
- "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
744
- }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
745
- onClose?: (() => any) | undefined;
746
- onOpen?: (() => any) | undefined;
747
- "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
748
- "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
749
- "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
750
- "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
751
- }>, {
752
- title: string;
753
- trigger: "click" | "manual";
754
- groupShowMoreTrigger: "click" | "hover";
755
- topOffset: number;
756
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
757
- basePopperRef: ({
758
- $: ComponentInternalInstance;
759
- $data: {};
760
- $props: {
761
- readonly appendTo?: (string | HTMLElement) | undefined;
762
- readonly offset?: number | {
763
- mainAxis?: number;
764
- crossAxis?: number;
765
- } | undefined;
766
- readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
767
- readonly preventOverflow?: boolean | undefined;
768
- readonly show?: boolean | undefined;
769
- readonly transitionProps?: TransitionProps | undefined;
770
- readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
771
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
772
- $attrs: {
773
- [x: string]: unknown;
774
- };
775
- $refs: {
776
- [x: string]: unknown;
777
- };
778
- $slots: Readonly<{
779
- [name: string]: Slot<any> | undefined;
780
- }>;
781
- $root: ComponentPublicInstance | null;
782
- $parent: ComponentPublicInstance | null;
783
- $host: Element | null;
784
- $emit: (event: string, ...args: any[]) => void;
785
- $el: any;
786
- $options: ComponentOptionsBase<Readonly<{
787
- appendTo?: string | HTMLElement;
788
- offset?: number | {
789
- mainAxis?: number;
790
- crossAxis?: number;
791
- };
792
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
793
- preventOverflow?: boolean;
794
- show?: boolean;
795
- transitionProps?: TransitionProps;
796
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
797
- }> & Readonly<{}>, {
798
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
799
- popperRef: ComputedRef<HTMLDivElement | null>;
800
- update: () => void;
801
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
802
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
803
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
804
- beforeCreate?: (() => void) | (() => void)[];
805
- created?: (() => void) | (() => void)[];
806
- beforeMount?: (() => void) | (() => void)[];
807
- mounted?: (() => void) | (() => void)[];
808
- beforeUpdate?: (() => void) | (() => void)[];
809
- updated?: (() => void) | (() => void)[];
810
- activated?: (() => void) | (() => void)[];
811
- deactivated?: (() => void) | (() => void)[];
812
- beforeDestroy?: (() => void) | (() => void)[];
813
- beforeUnmount?: (() => void) | (() => void)[];
814
- destroyed?: (() => void) | (() => void)[];
815
- unmounted?: (() => void) | (() => void)[];
816
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
817
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
818
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
905
+ declare type __VLS_Props = {
906
+ contentRenderers?: Record<string, BubbleContentRenderer>;
819
907
  };
820
- $forceUpdate: () => void;
821
- $nextTick: nextTick;
822
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
823
- } & Readonly<{
824
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
825
- }> & Omit<Readonly<{
826
- appendTo?: string | HTMLElement;
827
- offset?: number | {
828
- mainAxis?: number;
829
- crossAxis?: number;
908
+
909
+ declare type __VLS_Props_2 = ContainerProps;
910
+
911
+ declare type __VLS_Props_3 = DropdownMenuProps;
912
+
913
+ declare type __VLS_Props_4 = SuggestionPillsProps;
914
+
915
+ declare type __VLS_Props_5 = SuggestionPopoverProps;
916
+
917
+ declare type __VLS_Props_6 = ThemeProviderProps;
918
+
919
+ declare type __VLS_Props_7 = McpServerPickerProps;
920
+
921
+ declare type __VLS_PublicProps = {
922
+ 'show': ContainerProps['show'];
923
+ 'fullscreen'?: ContainerProps['fullscreen'];
924
+ } & __VLS_Props_2;
925
+
926
+ declare type __VLS_PublicProps_2 = {
927
+ 'show'?: boolean;
928
+ } & __VLS_Props_3;
929
+
930
+ declare type __VLS_PublicProps_3 = {
931
+ 'showAll'?: SuggestionPillsProps['showAll'];
932
+ } & __VLS_Props_4;
933
+
934
+ declare type __VLS_PublicProps_4 = {
935
+ 'selectedGroup'?: string;
936
+ } & __VLS_Props_5;
937
+
938
+ declare type __VLS_PublicProps_5 = {
939
+ 'theme'?: string;
940
+ 'colorMode'?: ColorMode;
941
+ } & __VLS_Props_6;
942
+
943
+ declare type __VLS_PublicProps_6 = {
944
+ 'visible': boolean;
945
+ } & __VLS_Props_7;
946
+
947
+ declare function __VLS_template(): {
948
+ attrs: Partial<{}>;
949
+ slots: Readonly<BubbleSlots> & BubbleSlots;
950
+ refs: {};
951
+ rootEl: HTMLDivElement;
830
952
  };
831
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
832
- preventOverflow?: boolean;
833
- show?: boolean;
834
- transitionProps?: TransitionProps;
835
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
836
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
837
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
838
- popperRef: ComputedRef<HTMLDivElement | null>;
839
- update: () => void;
840
- }> & {} & ComponentCustomProperties & {} & {
841
- $slots: Readonly<{
842
- trigger?: () => VNode[];
843
- content?: () => VNode[];
844
- }> & {
845
- trigger?: () => VNode[];
846
- content?: () => VNode[];
953
+
954
+ declare function __VLS_template_10(): {
955
+ attrs: Partial<{}>;
956
+ slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
957
+ refs: {
958
+ basePopperRef: ({
959
+ $: ComponentInternalInstance;
960
+ $data: {};
961
+ $props: {
962
+ readonly appendTo?: (string | HTMLElement) | undefined;
963
+ readonly offset?: number | {
964
+ mainAxis?: number;
965
+ crossAxis?: number;
966
+ } | undefined;
967
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
968
+ readonly preventOverflow?: boolean | undefined;
969
+ readonly show?: boolean | undefined;
970
+ readonly transitionProps?: TransitionProps | undefined;
971
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
972
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
973
+ $attrs: {
974
+ [x: string]: unknown;
975
+ };
976
+ $refs: {
977
+ [x: string]: unknown;
978
+ };
979
+ $slots: Readonly<{
980
+ [name: string]: Slot<any> | undefined;
981
+ }>;
982
+ $root: ComponentPublicInstance | null;
983
+ $parent: ComponentPublicInstance | null;
984
+ $host: Element | null;
985
+ $emit: (event: string, ...args: any[]) => void;
986
+ $el: any;
987
+ $options: ComponentOptionsBase<Readonly<{
988
+ appendTo?: string | HTMLElement;
989
+ offset?: number | {
990
+ mainAxis?: number;
991
+ crossAxis?: number;
992
+ };
993
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
994
+ preventOverflow?: boolean;
995
+ show?: boolean;
996
+ transitionProps?: TransitionProps;
997
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
998
+ }> & Readonly<{}>, {
999
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1000
+ popperRef: ComputedRef<HTMLDivElement | null>;
1001
+ update: () => void;
1002
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1003
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1004
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1005
+ beforeCreate?: (() => void) | (() => void)[];
1006
+ created?: (() => void) | (() => void)[];
1007
+ beforeMount?: (() => void) | (() => void)[];
1008
+ mounted?: (() => void) | (() => void)[];
1009
+ beforeUpdate?: (() => void) | (() => void)[];
1010
+ updated?: (() => void) | (() => void)[];
1011
+ activated?: (() => void) | (() => void)[];
1012
+ deactivated?: (() => void) | (() => void)[];
1013
+ beforeDestroy?: (() => void) | (() => void)[];
1014
+ beforeUnmount?: (() => void) | (() => void)[];
1015
+ destroyed?: (() => void) | (() => void)[];
1016
+ unmounted?: (() => void) | (() => void)[];
1017
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1018
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1019
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1020
+ };
1021
+ $forceUpdate: () => void;
1022
+ $nextTick: nextTick;
1023
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1024
+ } & Readonly<{
1025
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1026
+ }> & Omit<Readonly<{
1027
+ appendTo?: string | HTMLElement;
1028
+ offset?: number | {
1029
+ mainAxis?: number;
1030
+ crossAxis?: number;
1031
+ };
1032
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1033
+ preventOverflow?: boolean;
1034
+ show?: boolean;
1035
+ transitionProps?: TransitionProps;
1036
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1037
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1038
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1039
+ popperRef: ComputedRef<HTMLDivElement | null>;
1040
+ update: () => void;
1041
+ }> & {} & ComponentCustomProperties & {} & {
1042
+ $slots: Readonly<{
1043
+ trigger?: () => VNode[];
1044
+ content?: () => VNode[];
1045
+ }> & {
1046
+ trigger?: () => VNode[];
1047
+ content?: () => VNode[];
1048
+ };
1049
+ }) | null;
1050
+ listRef: HTMLUListElement;
1051
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1052
+ show?: TooltipContentProps["show"];
1053
+ } & TooltipContentProps> & Readonly<{
1054
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1055
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1056
+ "update:show": (value: boolean | undefined) => any;
1057
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1058
+ P: {};
1059
+ B: {};
1060
+ D: {};
1061
+ C: {};
1062
+ M: {};
1063
+ Defaults: {};
1064
+ }, Readonly<{
1065
+ show?: TooltipContentProps["show"];
1066
+ } & TooltipContentProps> & Readonly<{
1067
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1068
+ }>, {}, {}, {}, {}, {}> | null;
1069
+ };
1070
+ rootEl: any;
847
1071
  };
848
- }) | null;
849
- listRef: HTMLUListElement;
850
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
851
- show?: TooltipContentProps["show"];
852
- } & TooltipContentProps> & Readonly<{
853
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
854
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
855
- "update:show": (value: boolean | undefined) => any;
856
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
857
- P: {};
858
- B: {};
859
- D: {};
860
- C: {};
861
- M: {};
862
- Defaults: {};
863
- }, Readonly<{
864
- show?: TooltipContentProps["show"];
865
- } & TooltipContentProps> & Readonly<{
866
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
867
- }>, {}, {}, {}, {}, {}> | null;
868
- }, any>;
869
-
870
- declare const __VLS_component_9: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
871
- align: "left" | "center" | "right" | string;
872
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
873
-
874
- declare type __VLS_Props = DropdownMenuProps;
875
-
876
- declare type __VLS_Props_2 = SuggestionPillsProps;
877
-
878
- declare type __VLS_Props_3 = SuggestionPopoverProps;
879
1072
 
880
- declare type __VLS_PublicProps = {
881
- 'show': ContainerProps['show'];
882
- 'fullscreen'?: ContainerProps['fullscreen'];
1073
+ declare function __VLS_template_11(): {
1074
+ attrs: Partial<{}>;
1075
+ slots: {
1076
+ default?(_: {}): any;
1077
+ };
1078
+ refs: {};
1079
+ rootEl: any;
883
1080
  };
884
1081
 
885
- declare type __VLS_PublicProps_2 = {
886
- 'show'?: boolean;
887
- } & __VLS_Props;
888
-
889
- declare type __VLS_PublicProps_3 = {
890
- 'showAll'?: SuggestionPillsProps['showAll'];
891
- } & __VLS_Props_2;
892
-
893
- declare type __VLS_PublicProps_4 = {
894
- 'selectedGroup'?: string;
895
- } & __VLS_Props_3;
896
-
897
- declare function __VLS_template(): {
1082
+ declare function __VLS_template_12(): {
898
1083
  attrs: Partial<{}>;
899
- slots: Readonly<BubbleSlots> & BubbleSlots;
1084
+ slots: Readonly<WelcomeSlots> & WelcomeSlots;
900
1085
  refs: {};
901
1086
  rootEl: HTMLDivElement;
902
1087
  };
903
1088
 
904
1089
  declare function __VLS_template_2(): {
1090
+ attrs: Partial<{}>;
1091
+ slots: {
1092
+ default?(_: {}): any;
1093
+ };
1094
+ refs: {};
1095
+ rootEl: any;
1096
+ };
1097
+
1098
+ declare function __VLS_template_3(): {
905
1099
  attrs: Partial<{}>;
906
1100
  slots: Readonly<ContainerSlots> & ContainerSlots;
907
1101
  refs: {};
908
1102
  rootEl: HTMLDivElement;
909
1103
  };
910
1104
 
911
- declare function __VLS_template_3(): {
1105
+ declare function __VLS_template_4(): {
1106
+ attrs: Partial<{}>;
1107
+ slots: {
1108
+ overlay?(_: {
1109
+ isDragging: true;
1110
+ }): any;
1111
+ };
1112
+ refs: {};
1113
+ rootEl: any;
1114
+ };
1115
+
1116
+ declare function __VLS_template_5(): {
912
1117
  attrs: Partial<{}>;
913
1118
  slots: {
914
1119
  trigger?(_: {}): any;
@@ -1010,14 +1215,14 @@ declare function __VLS_template_3(): {
1010
1215
  rootEl: any;
1011
1216
  };
1012
1217
 
1013
- declare function __VLS_template_4(): {
1218
+ declare function __VLS_template_6(): {
1014
1219
  attrs: Partial<{}>;
1015
1220
  slots: Readonly<PromptsSlots> & PromptsSlots;
1016
1221
  refs: {};
1017
1222
  rootEl: HTMLDivElement;
1018
1223
  };
1019
1224
 
1020
- declare function __VLS_template_5(): {
1225
+ declare function __VLS_template_7(): {
1021
1226
  attrs: Partial<{}>;
1022
1227
  slots: {
1023
1228
  header?(_: {}): any;
@@ -1512,40 +1717,18 @@ declare function __VLS_template_5(): {
1512
1717
  inputBoxType: string;
1513
1718
  }> | null;
1514
1719
  buttonsContainerRef: HTMLDivElement;
1515
- suggestionsListRef: CreateComponentPublicInstanceWithMixins<Readonly<Props> & Readonly<{
1516
- onSelect?: ((item: string) => any) | undefined;
1517
- "onItem-hover"?: ((index: number) => any) | undefined;
1518
- "onItem-leave"?: (() => any) | undefined;
1519
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1520
- select: (item: string) => any;
1521
- "item-hover": (index: number) => any;
1522
- "item-leave": () => any;
1523
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
1524
- suggestionsListRef: HTMLDivElement;
1525
- }, any, ComponentProvideOptions, {
1526
- P: {};
1527
- B: {};
1528
- D: {};
1529
- C: {};
1530
- M: {};
1531
- Defaults: {};
1532
- }, Readonly<Props> & Readonly<{
1533
- onSelect?: ((item: string) => any) | undefined;
1534
- "onItem-hover"?: ((index: number) => any) | undefined;
1535
- "onItem-leave"?: (() => any) | undefined;
1536
- }>, {}, {}, {}, {}, {}> | null;
1537
1720
  };
1538
1721
  rootEl: HTMLDivElement;
1539
1722
  };
1540
1723
 
1541
- declare function __VLS_template_6(): {
1724
+ declare function __VLS_template_8(): {
1542
1725
  attrs: Partial<{}>;
1543
1726
  slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1544
1727
  refs: {};
1545
1728
  rootEl: HTMLButtonElement;
1546
1729
  };
1547
1730
 
1548
- declare function __VLS_template_7(): {
1731
+ declare function __VLS_template_9(): {
1549
1732
  attrs: Partial<{}>;
1550
1733
  slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1551
1734
  refs: {
@@ -1558,133 +1741,13 @@ declare function __VLS_template_7(): {
1558
1741
  rootEl: HTMLDivElement;
1559
1742
  };
1560
1743
 
1561
- declare function __VLS_template_8(): {
1562
- attrs: Partial<{}>;
1563
- slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
1564
- refs: {
1565
- basePopperRef: ({
1566
- $: ComponentInternalInstance;
1567
- $data: {};
1568
- $props: {
1569
- readonly appendTo?: (string | HTMLElement) | undefined;
1570
- readonly offset?: number | {
1571
- mainAxis?: number;
1572
- crossAxis?: number;
1573
- } | undefined;
1574
- readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
1575
- readonly preventOverflow?: boolean | undefined;
1576
- readonly show?: boolean | undefined;
1577
- readonly transitionProps?: TransitionProps | undefined;
1578
- readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
1579
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1580
- $attrs: {
1581
- [x: string]: unknown;
1582
- };
1583
- $refs: {
1584
- [x: string]: unknown;
1585
- };
1586
- $slots: Readonly<{
1587
- [name: string]: Slot<any> | undefined;
1588
- }>;
1589
- $root: ComponentPublicInstance | null;
1590
- $parent: ComponentPublicInstance | null;
1591
- $host: Element | null;
1592
- $emit: (event: string, ...args: any[]) => void;
1593
- $el: any;
1594
- $options: ComponentOptionsBase<Readonly<{
1595
- appendTo?: string | HTMLElement;
1596
- offset?: number | {
1597
- mainAxis?: number;
1598
- crossAxis?: number;
1599
- };
1600
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1601
- preventOverflow?: boolean;
1602
- show?: boolean;
1603
- transitionProps?: TransitionProps;
1604
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1605
- }> & Readonly<{}>, {
1606
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1607
- popperRef: ComputedRef<HTMLDivElement | null>;
1608
- update: () => void;
1609
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1610
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1611
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1612
- beforeCreate?: (() => void) | (() => void)[];
1613
- created?: (() => void) | (() => void)[];
1614
- beforeMount?: (() => void) | (() => void)[];
1615
- mounted?: (() => void) | (() => void)[];
1616
- beforeUpdate?: (() => void) | (() => void)[];
1617
- updated?: (() => void) | (() => void)[];
1618
- activated?: (() => void) | (() => void)[];
1619
- deactivated?: (() => void) | (() => void)[];
1620
- beforeDestroy?: (() => void) | (() => void)[];
1621
- beforeUnmount?: (() => void) | (() => void)[];
1622
- destroyed?: (() => void) | (() => void)[];
1623
- unmounted?: (() => void) | (() => void)[];
1624
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1625
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1626
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1627
- };
1628
- $forceUpdate: () => void;
1629
- $nextTick: nextTick;
1630
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1631
- } & Readonly<{
1632
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1633
- }> & Omit<Readonly<{
1634
- appendTo?: string | HTMLElement;
1635
- offset?: number | {
1636
- mainAxis?: number;
1637
- crossAxis?: number;
1638
- };
1639
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1640
- preventOverflow?: boolean;
1641
- show?: boolean;
1642
- transitionProps?: TransitionProps;
1643
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1644
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1645
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1646
- popperRef: ComputedRef<HTMLDivElement | null>;
1647
- update: () => void;
1648
- }> & {} & ComponentCustomProperties & {} & {
1649
- $slots: Readonly<{
1650
- trigger?: () => VNode[];
1651
- content?: () => VNode[];
1652
- }> & {
1653
- trigger?: () => VNode[];
1654
- content?: () => VNode[];
1655
- };
1656
- }) | null;
1657
- listRef: HTMLUListElement;
1658
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1659
- show?: TooltipContentProps["show"];
1660
- } & TooltipContentProps> & Readonly<{
1661
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1662
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1663
- "update:show": (value: boolean | undefined) => any;
1664
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1665
- P: {};
1666
- B: {};
1667
- D: {};
1668
- C: {};
1669
- M: {};
1670
- Defaults: {};
1671
- }, Readonly<{
1672
- show?: TooltipContentProps["show"];
1673
- } & TooltipContentProps> & Readonly<{
1674
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1675
- }>, {}, {}, {}, {}, {}> | null;
1676
- };
1677
- rootEl: any;
1678
- };
1744
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1679
1745
 
1680
- declare function __VLS_template_9(): {
1681
- attrs: Partial<{}>;
1682
- slots: Readonly<WelcomeSlots> & WelcomeSlots;
1683
- refs: {};
1684
- rootEl: HTMLDivElement;
1685
- };
1746
+ declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
1686
1747
 
1687
- declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1748
+ declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
1749
+
1750
+ declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
1688
1751
 
1689
1752
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1690
1753
 
@@ -1698,11 +1761,29 @@ declare type __VLS_TemplateResult_6 = ReturnType<typeof __VLS_template_6>;
1698
1761
 
1699
1762
  declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
1700
1763
 
1701
- declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
1764
+ declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
1765
+
1766
+ declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
1767
+
1768
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
1769
+ new (): {
1770
+ $slots: S;
1771
+ };
1772
+ };
1773
+
1774
+ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
1775
+ new (): {
1776
+ $slots: S;
1777
+ };
1778
+ };
1702
1779
 
1703
- declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
1780
+ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
1781
+ new (): {
1782
+ $slots: S;
1783
+ };
1784
+ };
1704
1785
 
1705
- declare type __VLS_WithTemplateSlots<T, S> = T & {
1786
+ declare type __VLS_WithTemplateSlots_12<T, S> = T & {
1706
1787
  new (): {
1707
1788
  $slots: S;
1708
1789
  };
@@ -1756,11 +1837,18 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
1756
1837
  };
1757
1838
  };
1758
1839
 
1840
+ export declare interface ActionButton {
1841
+ type: string;
1842
+ label: string;
1843
+ handler?: (file: Attachment) => void;
1844
+ }
1845
+
1759
1846
  export declare interface ActionButtonsProps {
1760
1847
  loading?: boolean;
1761
1848
  disabled?: boolean;
1762
1849
  showClear?: boolean;
1763
1850
  hasContent?: boolean;
1851
+ buttonGroup?: ButtonGroupConfig;
1764
1852
  allowSpeech?: boolean;
1765
1853
  speechStatus?: {
1766
1854
  isRecording: boolean;
@@ -1773,11 +1861,47 @@ export declare interface ActionButtonsProps {
1773
1861
  stopText?: string;
1774
1862
  }
1775
1863
 
1864
+ export declare type Attachment = UrlAttachment | RawFileAttachment;
1865
+
1866
+ export declare interface AttachmentListEmits {
1867
+ (e: 'update:items', items: Attachment[]): void;
1868
+ (e: 'remove', file: Attachment): void;
1869
+ (e: 'download', event: MouseEvent, file: Attachment): void;
1870
+ (e: 'retry', file: Attachment): void;
1871
+ (e: 'preview', event: MouseEvent, file: Attachment): void;
1872
+ (e: 'action', payload: {
1873
+ action: ActionButton;
1874
+ file: Attachment;
1875
+ }): void;
1876
+ }
1877
+
1878
+ export declare interface AttachmentListProps {
1879
+ items?: Attachment[];
1880
+ disabled?: boolean;
1881
+ wrap?: boolean;
1882
+ fileIcons?: Record<string, Component>;
1883
+ actions?: ActionButton[];
1884
+ variant?: DisplayVariant;
1885
+ fileMatchers?: FileTypeMatcher[];
1886
+ }
1887
+
1776
1888
  export declare type AutoSize = boolean | {
1777
1889
  minRows: number;
1778
1890
  maxRows: number;
1779
1891
  };
1780
1892
 
1893
+ export declare interface BaseAttachment {
1894
+ id?: string;
1895
+ name?: string;
1896
+ status?: FileStatus;
1897
+ fileType?: FileType;
1898
+ message?: string;
1899
+ }
1900
+
1901
+ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
1902
+
1903
+ export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
1904
+
1781
1905
  declare interface BaseHistoryProps {
1782
1906
  activeTab?: string;
1783
1907
  searchBar?: boolean;
@@ -1793,15 +1917,60 @@ declare interface BaseTextItem {
1793
1917
  content: string;
1794
1918
  }
1795
1919
 
1796
- declare const Bubble: typeof _default_12 & {
1920
+ declare const Bubble: typeof _default_17 & {
1797
1921
  install: typeof bubbleInstall;
1798
1922
  };
1799
1923
  export { Bubble }
1800
1924
  export { Bubble as TrBubble }
1801
1925
 
1926
+ export declare interface BubbleCommonProps {
1927
+ /**
1928
+ * 气泡对齐位置
1929
+ */
1930
+ placement?: 'start' | 'end';
1931
+ /**
1932
+ * 气泡头像
1933
+ */
1934
+ avatar?: VNode;
1935
+ /**
1936
+ * 气泡形状,默认 'corner'
1937
+ */
1938
+ shape?: 'rounded' | 'corner';
1939
+ /**
1940
+ * 气泡内容渲染器。
1941
+ * 如果 Bubble 中的 content 是长度大于 0 的数组,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
1942
+ */
1943
+ contentRenderer?: BubbleContentRenderer;
1944
+ /**
1945
+ * 自定义气泡内容字段。比如 customContentField 设置为 'my-content',则 Bubble 优先渲染 my-content 属性到气泡内容
1946
+ */
1947
+ customContentField?: string;
1948
+ /**
1949
+ * 气泡最大宽度
1950
+ */
1951
+ maxWidth?: string | number;
1952
+ }
1953
+
1954
+ export declare abstract class BubbleContentClassRenderer {
1955
+ abstract render(options: {
1956
+ [key: string]: any;
1957
+ }): VNode;
1958
+ }
1959
+
1960
+ export declare type BubbleContentFunctionRenderer = (options: {
1961
+ [key: string]: any;
1962
+ }) => VNode;
1963
+
1964
+ export declare interface BubbleContentItem {
1965
+ type: string;
1966
+ [key: string]: any;
1967
+ }
1968
+
1969
+ export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component;
1970
+
1802
1971
  declare const bubbleInstall: (app: App) => void;
1803
1972
 
1804
- declare const BubbleList: typeof _default_13 & {
1973
+ declare const BubbleList: typeof _default_18 & {
1805
1974
  install: typeof bubbleListInstall;
1806
1975
  };
1807
1976
  export { BubbleList }
@@ -1817,37 +1986,60 @@ export declare interface BubbleListProps {
1817
1986
  * 每个角色的默认配置项
1818
1987
  */
1819
1988
  roles?: Record<string, BubbleRoleConfig>;
1989
+ /**
1990
+ * 列表是否加载中
1991
+ */
1992
+ loading?: boolean;
1993
+ /**
1994
+ * 指定哪个角色可以有加载中状态
1995
+ */
1996
+ loadingRole?: string;
1820
1997
  autoScroll?: boolean;
1821
1998
  }
1822
1999
 
1823
- export declare type BubblePalcement = 'start' | 'end';
2000
+ export declare class BubbleMarkdownContentRenderer extends BubbleContentClassRenderer {
2001
+ readonly mdConfig: Options;
2002
+ readonly dompurifyConfig: Config;
2003
+ readonly sanitizeDisabled: boolean;
2004
+ readonly defaultAttrs: Record<string, unknown>;
2005
+ private md;
2006
+ constructor(options?: BubbleMarkdownRendererOptions);
2007
+ render(options: {
2008
+ content?: string;
2009
+ [key: string]: unknown;
2010
+ }): VNode<RendererNode, RendererElement, {
2011
+ [key: string]: any;
2012
+ }>;
2013
+ }
2014
+
2015
+ declare interface BubbleMarkdownRendererOptions {
2016
+ mdConfig?: Options;
2017
+ dompurifyConfig?: Config;
2018
+ sanitizeDisabled?: boolean;
2019
+ defaultAttrs?: Record<string, unknown>;
2020
+ }
1824
2021
 
1825
- export declare interface BubbleProps {
2022
+ export declare interface BubbleProps extends BubbleCommonProps {
1826
2023
  /**
1827
2024
  * 气泡内容
1828
2025
  */
1829
- content?: string;
2026
+ content?: string | BubbleContentItem[];
1830
2027
  id?: string | number | symbol;
1831
- /**
1832
- * 气泡位置
1833
- */
1834
- placement?: BubblePalcement;
1835
- avatar?: VNode;
1836
2028
  role?: string;
1837
- /**
1838
- * 内容类型
1839
- */
1840
- type?: 'text' | 'markdown';
1841
2029
  loading?: boolean;
1842
2030
  aborted?: boolean;
1843
- /**
1844
- * type 为 'markdown' 时,markdown 的配置项
1845
- */
1846
- mdConfig?: Options;
1847
- maxWidth?: string | number;
1848
2031
  }
1849
2032
 
1850
- export declare type BubbleRoleConfig = Pick<BubbleProps, 'placement' | 'avatar' | 'type' | 'mdConfig' | 'maxWidth'> & {
2033
+ declare const BubbleProvider: typeof _default_19 & {
2034
+ install: typeof bubbleProviderInstall;
2035
+ };
2036
+ export { BubbleProvider }
2037
+ export { BubbleProvider as TrBubbleProvider }
2038
+
2039
+ declare const bubbleProviderInstall: (app: App) => void;
2040
+
2041
+ export declare type BubbleRoleConfig = BubbleCommonProps & {
2042
+ hidden?: boolean;
1851
2043
  slots?: BubbleSlots;
1852
2044
  };
1853
2045
 
@@ -1863,6 +2055,17 @@ export declare interface BubbleSlots {
1863
2055
  }) => unknown;
1864
2056
  }
1865
2057
 
2058
+ export declare interface ButtonGroupConfig {
2059
+ file?: ControlState & fileUploadConfig;
2060
+ submit?: ControlState;
2061
+ }
2062
+
2063
+ export declare type ColorMode = 'light' | 'dark' | 'auto';
2064
+
2065
+ export declare interface ContainerEmits {
2066
+ (e: 'close'): void;
2067
+ }
2068
+
1866
2069
  export declare interface ContainerProps {
1867
2070
  /**
1868
2071
  * model:show
@@ -1872,6 +2075,7 @@ export declare interface ContainerProps {
1872
2075
  * model:fullscreen
1873
2076
  */
1874
2077
  fullscreen?: boolean;
2078
+ title?: string;
1875
2079
  }
1876
2080
 
1877
2081
  export declare interface ContainerSlots {
@@ -1881,114 +2085,295 @@ export declare interface ContainerSlots {
1881
2085
  footer: () => unknown;
1882
2086
  }
1883
2087
 
2088
+ export declare interface ControlState {
2089
+ tooltips?: string | TooltipRender;
2090
+ disabled?: boolean;
2091
+ }
2092
+
1884
2093
  declare const _default: {
1885
2094
  install<T>(app: App<T>): void;
1886
2095
  };
1887
2096
  export default _default;
1888
2097
 
1889
- declare const _default_10: typeof _default_24 & {
2098
+ declare const _default_10: typeof _default_28 & {
1890
2099
  install: typeof install_8;
1891
2100
  };
1892
- export { _default_10 as SuggestionPopover }
1893
- export { _default_10 as TrSuggestionPopover }
2101
+ export { _default_10 as Sender }
2102
+ export { _default_10 as TrSender }
1894
2103
 
1895
- declare const _default_11: typeof _default_25 & {
2104
+ declare const _default_11: typeof _default_30 & {
1896
2105
  install: typeof install_9;
1897
2106
  };
1898
- export { _default_11 as TrWelcome }
1899
- export { _default_11 as Welcome }
2107
+ export { _default_11 as SuggestionPills }
2108
+ export { _default_11 as TrSuggestionPills }
2109
+
2110
+ declare const _default_12: typeof _default_31 & {
2111
+ install: typeof install_10;
2112
+ };
2113
+ export { _default_12 as SuggestionPopover }
2114
+ export { _default_12 as TrSuggestionPopover }
2115
+
2116
+ declare const _default_13: typeof _default_32 & {
2117
+ install: typeof install_11;
2118
+ };
2119
+ export { _default_13 as ThemeProvider }
2120
+ export { _default_13 as TrThemeProvider }
2121
+
2122
+ declare const _default_14: typeof _default_33 & {
2123
+ install: typeof install_12;
2124
+ };
2125
+ export { _default_14 as TrWelcome }
2126
+ export { _default_14 as Welcome }
2127
+
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, {} & {
2135
+ "update:items": (items: Attachment[]) => any;
2136
+ remove: (file: Attachment) => any;
2137
+ download: (event: MouseEvent, file: Attachment) => any;
2138
+ retry: (file: Attachment) => any;
2139
+ preview: (event: MouseEvent, file: Attachment) => any;
2140
+ action: (payload: {
2141
+ action: ActionButton;
2142
+ file: Attachment;
2143
+ }) => any;
2144
+ }, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
2145
+ "onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
2146
+ onRemove?: ((file: Attachment) => any) | undefined;
2147
+ onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2148
+ onRetry?: ((file: Attachment) => any) | undefined;
2149
+ onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2150
+ onAction?: ((payload: {
2151
+ action: ActionButton;
2152
+ file: Attachment;
2153
+ }) => any) | undefined;
2154
+ }>, {
2155
+ actions: ActionButton[];
2156
+ fileMatchers: FileTypeMatcher_2[];
2157
+ variant: DisplayVariant_2;
2158
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1900
2159
 
1901
- declare const _default_12: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2160
+ declare const _default_17: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1902
2161
 
1903
- declare const _default_13: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2162
+ declare const _default_18: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1904
2163
  scrollContainerRef: HTMLDivElement;
1905
2164
  }, HTMLDivElement>;
1906
2165
 
1907
- declare const _default_14: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2166
+ declare const _default_19: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
1908
2167
 
1909
- declare const _default_15: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2168
+ declare const _default_2: typeof _default_16 & {
2169
+ install: typeof install;
2170
+ };
2171
+ export { _default_2 as Attachments }
2172
+ export { _default_2 as TrAttachments }
1910
2173
 
1911
- declare const _default_16: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2174
+ declare const _default_20: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1912
2175
 
1913
- declare const _default_17: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1914
- operation: (name: string) => any;
2176
+ declare const _default_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2177
+
2178
+ declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2179
+
2180
+ declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2181
+
2182
+ declare const _default_24: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1915
2183
  action: (name: string) => any;
2184
+ operation: (name: string) => any;
1916
2185
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
1917
- onOperation?: ((name: string) => any) | undefined;
1918
2186
  onAction?: ((name: string) => any) | undefined;
2187
+ onOperation?: ((name: string) => any) | undefined;
1919
2188
  }>, {
1920
2189
  operationsLimit: number;
1921
2190
  actionsLimit: number;
1922
2191
  sourcesLinesLimit: number;
1923
2192
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1924
2193
 
1925
- declare const _default_18: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2194
+ declare const _default_25: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
1926
2195
  size: string | number;
1927
2196
  svgSize: string | number;
1928
2197
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
1929
2198
 
1930
- declare const _default_19: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2199
+ declare const _default_26: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2200
+ size: "small" | "medium" | "large";
2201
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1931
2202
 
1932
- declare const _default_2: typeof _default_14 & {
1933
- install: typeof install;
1934
- };
1935
- export { _default_2 as Container }
1936
- export { _default_2 as TrContainer }
2203
+ declare const _default_27: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1937
2204
 
1938
- declare const _default_20: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2205
+ declare const _default_28: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1939
2206
 
1940
- declare const _default_21: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2207
+ declare const _default_29: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1941
2208
 
1942
- declare const _default_22: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2209
+ declare const _default_3: typeof _default_20 & {
2210
+ install: typeof install_2;
2211
+ };
2212
+ export { _default_3 as Container }
2213
+ export { _default_3 as TrContainer }
1943
2214
 
1944
- declare const _default_23: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2215
+ declare const _default_30: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1945
2216
 
1946
- declare const _default_24: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2217
+ declare const _default_31: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1947
2218
 
1948
- declare const _default_25: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2219
+ declare const _default_32: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
1949
2220
 
1950
- declare const _default_3: typeof _default_15 & {
1951
- install: typeof install_2;
1952
- };
1953
- export { _default_3 as Conversations }
1954
- export { _default_3 as TrConversations }
2221
+ declare const _default_33: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
1955
2222
 
1956
- declare const _default_4: typeof _default_16 & {
2223
+ declare const _default_34: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2224
+ "update:visible": (value: boolean) => any;
2225
+ } & {
2226
+ refresh: (tab: "installed" | "market") => any;
2227
+ "update:visible": (visible: boolean) => any;
2228
+ "market-category-change": (category: string) => any;
2229
+ "tab-change": (activeTab: "installed" | "market") => any;
2230
+ "plugin-toggle": (plugin: PluginInfo, enabled: boolean) => any;
2231
+ "plugin-delete": (plugin: PluginInfo) => any;
2232
+ "plugin-add": (plugin: PluginInfo) => any;
2233
+ "plugin-create": (type: "code" | "form", data: PluginCreationData) => any;
2234
+ "tool-toggle": (plugin: PluginInfo, toolId: string, enabled: boolean) => any;
2235
+ "update:activeCount": (count: number) => any;
2236
+ }, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
2237
+ onRefresh?: ((tab: "installed" | "market") => any) | undefined;
2238
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
2239
+ "onMarket-category-change"?: ((category: string) => any) | undefined;
2240
+ "onTab-change"?: ((activeTab: "installed" | "market") => any) | undefined;
2241
+ "onPlugin-toggle"?: ((plugin: PluginInfo, enabled: boolean) => any) | undefined;
2242
+ "onPlugin-delete"?: ((plugin: PluginInfo) => any) | undefined;
2243
+ "onPlugin-add"?: ((plugin: PluginInfo) => any) | undefined;
2244
+ "onPlugin-create"?: ((type: "code" | "form", data: PluginCreationData) => any) | undefined;
2245
+ "onTool-toggle"?: ((plugin: PluginInfo, toolId: string, enabled: boolean) => any) | undefined;
2246
+ "onUpdate:activeCount"?: ((count: number) => any) | undefined;
2247
+ }>, {
2248
+ title: string;
2249
+ loading: boolean;
2250
+ searchPlaceholder: string;
2251
+ installedPlugins: PluginInfo[];
2252
+ marketPlugins: PluginInfo[];
2253
+ enableSearch: boolean;
2254
+ installedSearchFn: (query: string, item: PluginInfo) => boolean;
2255
+ marketSearchFn: (query: string, item: PluginInfo) => boolean;
2256
+ marketCategoryOptions: MarketCategoryOption_2[];
2257
+ marketCategoryPlaceholder: string;
2258
+ enableMarketCategoryFilter: boolean;
2259
+ defaultActiveTab: "installed" | "market";
2260
+ showInstalledTab: boolean;
2261
+ showMarketTab: boolean;
2262
+ popupConfig: PopupConfig;
2263
+ installedTabTitle: string;
2264
+ marketTabTitle: string;
2265
+ showCustomAddButton: boolean;
2266
+ customAddButtonText: string;
2267
+ allowPluginToggle: boolean;
2268
+ allowToolToggle: boolean;
2269
+ allowPluginDelete: boolean;
2270
+ allowPluginAdd: boolean;
2271
+ marketLoading: boolean;
2272
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2273
+
2274
+ declare const _default_4: typeof _default_21 & {
1957
2275
  install: typeof install_3;
1958
2276
  };
1959
- export { _default_4 as DropdownMenu }
1960
- export { _default_4 as TrDropdownMenu }
2277
+ export { _default_4 as Conversations }
2278
+ export { _default_4 as TrConversations }
1961
2279
 
1962
- declare const _default_5: typeof _default_17 & {
2280
+ declare const _default_5: typeof _default_22 & {
1963
2281
  install: typeof install_4;
1964
2282
  };
1965
- export { _default_5 as Feedback }
1966
- export { _default_5 as TrFeedback }
2283
+ export { _default_5 as DragOverlay }
2284
+ export { _default_5 as TrDragOverlay }
1967
2285
 
1968
- declare const _default_6: {
1969
- install: <T>(app: App<T>) => void;
1970
- name: string;
1971
- };
1972
- export { _default_6 as History }
1973
- export { _default_6 as TrHistory }
1974
-
1975
- declare const _default_7: typeof _default_18 & {
2286
+ declare const _default_6: typeof _default_23 & {
1976
2287
  install: typeof install_5;
1977
2288
  };
1978
- export { _default_7 as IconButton }
1979
- export { _default_7 as TrIconButton }
2289
+ export { _default_6 as DropdownMenu }
2290
+ export { _default_6 as TrDropdownMenu }
1980
2291
 
1981
- declare const _default_8: typeof _default_21 & {
2292
+ declare const _default_7: typeof _default_24 & {
1982
2293
  install: typeof install_6;
1983
2294
  };
1984
- export { _default_8 as Sender }
1985
- export { _default_8 as TrSender }
2295
+ export { _default_7 as Feedback }
2296
+ export { _default_7 as TrFeedback }
2297
+
2298
+ declare const _default_8: {
2299
+ install: <T>(app: App<T>) => void;
2300
+ name: string;
2301
+ };
2302
+ export { _default_8 as History }
2303
+ export { _default_8 as TrHistory }
1986
2304
 
1987
- declare const _default_9: typeof _default_23 & {
2305
+ declare const _default_9: typeof _default_25 & {
1988
2306
  install: typeof install_7;
1989
2307
  };
1990
- export { _default_9 as SuggestionPills }
1991
- export { _default_9 as TrSuggestionPills }
2308
+ export { _default_9 as IconButton }
2309
+ export { _default_9 as TrIconButton }
2310
+
2311
+ export declare type DisplayVariant = 'picture' | 'card' | 'auto';
2312
+
2313
+ declare interface DragAwareElement extends HTMLElement {
2314
+ __vDropzoneHandlers__?: Handlers;
2315
+ __vDropzoneOptions__?: DragAwareOptions;
2316
+ }
2317
+
2318
+ declare type DragAwareOptions = Omit<DropzoneBinding, 'onDraggingChange'>;
2319
+
2320
+ /**
2321
+ * 拖拽上传组件的属性
2322
+ */
2323
+ export declare interface DragOverlayProps {
2324
+ /**
2325
+ * 覆盖层标题
2326
+ * @default ''
2327
+ */
2328
+ overlayTitle?: string;
2329
+ /**
2330
+ * 覆盖层描述文本数组
2331
+ * @default []
2332
+ */
2333
+ overlayDescription?: string[];
2334
+ /**
2335
+ * 控制拖拽覆盖层是否可见。这旨在与 v-dropzone 指令结合使用,由父组件控制。
2336
+ * @default false
2337
+ */
2338
+ isDragging?: boolean;
2339
+ /**
2340
+ * @description 拖拽目标元素,用于定位覆盖层
2341
+ * @default null
2342
+ */
2343
+ dragTarget?: HTMLElement | null;
2344
+ /**
2345
+ * @description 是否全屏模式,控制覆盖层的边框显示
2346
+ * @default false
2347
+ */
2348
+ fullscreen?: boolean;
2349
+ }
2350
+
2351
+ export declare interface DragOverlaySlots {
2352
+ /**
2353
+ * 覆盖层插槽,用于自定义拖拽时的覆盖层内容
2354
+ */
2355
+ overlay?: (props: {
2356
+ isDragging: boolean;
2357
+ }) => unknown;
2358
+ }
2359
+
2360
+ /**
2361
+ * 拖拽区域错误码
2362
+ */
2363
+ declare enum DragZoneErrorCode {
2364
+ /**
2365
+ * 文件类型不允许
2366
+ */
2367
+ FileTypeNotAllowed = "file-type-not-allowed",
2368
+ /**
2369
+ * 文件大小超出限制
2370
+ */
2371
+ FileSizeExceeded = "file-size-exceeded",
2372
+ /**
2373
+ * 文件数量超出限制
2374
+ */
2375
+ FileCountExceeded = "file-count-exceeded"
2376
+ }
1992
2377
 
1993
2378
  export declare interface DropdownMenuEmits {
1994
2379
  (e: 'item-click', item: DropdownMenuItem): void;
@@ -2037,6 +2422,54 @@ export declare interface DropdownMenuSlots {
2037
2422
  trigger?: () => VNode | VNode[];
2038
2423
  }
2039
2424
 
2425
+ /**
2426
+ * 拖拽上传组件的属性
2427
+ */
2428
+ export declare interface DropzoneBinding {
2429
+ /**
2430
+ * 允许上传的文件类型, 与原生 input 的 accept 属性一致
2431
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
2432
+ * @example '.jpg,.png,image/*'
2433
+ */
2434
+ accept?: string;
2435
+ /**
2436
+ * 是否允许多选
2437
+ * @default true
2438
+ */
2439
+ multiple?: boolean;
2440
+ /**
2441
+ * 是否禁用拖拽
2442
+ * @default false
2443
+ */
2444
+ disabled?: boolean;
2445
+ /**
2446
+ * 单个文件的最大大小(单位:字节)
2447
+ * @default 10 * 1024 * 1024 (10MB)
2448
+ */
2449
+ maxSize?: number;
2450
+ /**
2451
+ * 允许上传的最大文件数量
2452
+ * @default 3
2453
+ */
2454
+ maxFiles?: number;
2455
+ /**
2456
+ * 拖拽完成后的回调
2457
+ * @param files 上传的文件
2458
+ */
2459
+ onDrop: (files: File[]) => void;
2460
+ /**
2461
+ * 拖拽失败后的回调
2462
+ * @param rejection 拒绝信息
2463
+ */
2464
+ onError: (rejection: FileRejection) => void;
2465
+ /**
2466
+ * 拖拽开始时的回调
2467
+ * @param dragging 是否正在拖拽
2468
+ * @param element 拖拽目标元素
2469
+ */
2470
+ onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
2471
+ }
2472
+
2040
2473
  export declare interface FeedbackEvents {
2041
2474
  (e: 'operation', name: string): void;
2042
2475
  (e: 'action', name: string): void;
@@ -2063,6 +2496,54 @@ export declare interface FeedbackProps {
2063
2496
  sourcesLinesLimit?: number;
2064
2497
  }
2065
2498
 
2499
+ export declare interface FileCardEmits {
2500
+ (e: 'remove', file: Attachment): void;
2501
+ (e: 'preview', event: MouseEvent, file: Attachment): void;
2502
+ (e: 'download', event: MouseEvent, file: Attachment): void;
2503
+ (e: 'retry', file: Attachment): void;
2504
+ (e: 'action', payload: {
2505
+ action: ActionButton;
2506
+ file: Attachment;
2507
+ }): void;
2508
+ }
2509
+
2510
+ export declare interface FileCardProps extends BaseCardProps {
2511
+ file: Attachment;
2512
+ variant: 'picture' | 'card';
2513
+ showStatus?: boolean;
2514
+ }
2515
+
2516
+ /**
2517
+ * 文件拒绝信息
2518
+ */
2519
+ export declare interface FileRejection extends RejectionReason {
2520
+ files: File[];
2521
+ }
2522
+
2523
+ export declare type FileStatus = 'uploading' | 'success' | 'error';
2524
+
2525
+ export declare type FileType = BaseFileType | string;
2526
+
2527
+ export declare interface FileTypeMatcher {
2528
+ type: string;
2529
+ matcher: (file: File | string) => boolean;
2530
+ icon?: Component;
2531
+ }
2532
+
2533
+ declare interface fileUploadConfig {
2534
+ accept?: string;
2535
+ multiple?: boolean;
2536
+ }
2537
+
2538
+ export declare interface Handlers {
2539
+ handleDragEnter: (e: DragEvent) => void;
2540
+ handleDragOver: (e: DragEvent) => void;
2541
+ handleDragLeave: (e: DragEvent) => void;
2542
+ handleDrop: (e: DragEvent) => void;
2543
+ }
2544
+
2545
+ declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
2546
+
2066
2547
  export declare type HistoryData = HistoryItem[] | HistoryGroup[];
2067
2548
 
2068
2549
  export declare interface HistoryEvents {
@@ -2109,6 +2590,14 @@ export declare type InputMode = 'single' | 'multiple';
2109
2590
 
2110
2591
  declare const install: <T>(app: App<T>) => void;
2111
2592
 
2593
+ declare const install_10: <T>(app: App<T>) => void;
2594
+
2595
+ declare const install_11: <T>(app: App<T>) => void;
2596
+
2597
+ declare const install_12: <T>(app: App<T>) => void;
2598
+
2599
+ declare const install_13: <T>(app: App<T>) => void;
2600
+
2112
2601
  declare const install_2: <T>(app: App<T>) => void;
2113
2602
 
2114
2603
  declare const install_3: <T>(app: App<T>) => void;
@@ -2131,11 +2620,63 @@ declare const installPrompt: <T>(app: App<T>) => void;
2131
2620
 
2132
2621
  declare const installPrompts: <T>(app: App<T>) => void;
2133
2622
 
2623
+ export declare interface ISuggestionItem {
2624
+ content: string;
2625
+ highlights?: string[] | HighlightFunction;
2626
+ }
2627
+
2134
2628
  export declare interface KeyboardHandler {
2135
2629
  handleKeyPress: (e: KeyboardEvent) => void;
2136
2630
  triggerSubmit: () => void;
2137
2631
  }
2138
2632
 
2633
+ export declare interface MarketCategoryOption {
2634
+ value: string;
2635
+ label: string;
2636
+ }
2637
+
2638
+ export declare interface McpServerPickerEmits {
2639
+ (e: 'market-category-change', category: string): void;
2640
+ (e: 'tab-change', activeTab: 'installed' | 'market'): void;
2641
+ (e: 'plugin-toggle', plugin: PluginInfo, enabled: boolean): void;
2642
+ (e: 'plugin-delete', plugin: PluginInfo): void;
2643
+ (e: 'plugin-add', plugin: PluginInfo): void;
2644
+ (e: 'plugin-create', type: 'form' | 'code', data: PluginCreationData): void;
2645
+ (e: 'tool-toggle', plugin: PluginInfo, toolId: string, enabled: boolean): void;
2646
+ (e: 'refresh', tab: 'installed' | 'market'): void;
2647
+ (e: 'update:activeCount', count: number): void;
2648
+ (e: 'update:visible', visible: boolean): void;
2649
+ }
2650
+
2651
+ export declare interface McpServerPickerProps {
2652
+ installedPlugins?: PluginInfo[];
2653
+ marketPlugins?: PluginInfo[];
2654
+ searchPlaceholder?: string;
2655
+ enableSearch?: boolean;
2656
+ installedSearchFn?: (query: string, item: PluginInfo) => boolean;
2657
+ marketSearchFn?: (query: string, item: PluginInfo) => boolean;
2658
+ marketCategoryOptions?: MarketCategoryOption[];
2659
+ marketCategoryPlaceholder?: string;
2660
+ enableMarketCategoryFilter?: boolean;
2661
+ defaultActiveTab?: 'installed' | 'market';
2662
+ showInstalledTab?: boolean;
2663
+ showMarketTab?: boolean;
2664
+ visible?: boolean;
2665
+ popupConfig?: PopupConfig;
2666
+ activeCount?: number;
2667
+ installedTabTitle?: string;
2668
+ marketTabTitle?: string;
2669
+ title?: string;
2670
+ showCustomAddButton?: boolean;
2671
+ customAddButtonText?: string;
2672
+ allowPluginToggle?: boolean;
2673
+ allowToolToggle?: boolean;
2674
+ allowPluginDelete?: boolean;
2675
+ allowPluginAdd?: boolean;
2676
+ loading?: boolean;
2677
+ marketLoading?: boolean;
2678
+ }
2679
+
2139
2680
  export declare type MultiTabHistoryProps = {
2140
2681
  tabs: {
2141
2682
  title: string;
@@ -2144,7 +2685,72 @@ export declare type MultiTabHistoryProps = {
2144
2685
  data: Record<string, HistoryData>;
2145
2686
  } & BaseHistoryProps;
2146
2687
 
2147
- declare const Prompt: typeof _default_19 & {
2688
+ export declare type PluginAddState = 'idle' | 'loading' | 'added';
2689
+
2690
+ export declare interface PluginCardEmits {
2691
+ (e: 'toggle-plugin', enabled: boolean): void;
2692
+ (e: 'toggle-tool', toolId: string, enabled: boolean): void;
2693
+ (e: 'add-plugin', plugin: PluginInfo): void;
2694
+ (e: 'delete-plugin'): void;
2695
+ }
2696
+
2697
+ export declare type PluginCardMode = 'installed' | 'market';
2698
+
2699
+ export declare interface PluginCardProps {
2700
+ plugin: PluginInfo;
2701
+ mode?: PluginCardMode;
2702
+ showToolCount?: boolean;
2703
+ }
2704
+
2705
+ export declare type PluginCreationData = PluginFormData | string;
2706
+
2707
+ export declare interface PluginFormData {
2708
+ name: string;
2709
+ description: string;
2710
+ type: 'sse' | 'streamableHttp';
2711
+ url: string;
2712
+ headers: string;
2713
+ thumbnail?: File | null;
2714
+ }
2715
+
2716
+ export declare interface PluginInfo {
2717
+ id: string;
2718
+ name: string;
2719
+ icon: string;
2720
+ description: string;
2721
+ enabled: boolean;
2722
+ expanded?: boolean;
2723
+ tools: PluginTool[];
2724
+ addState?: PluginAddState;
2725
+ category?: string;
2726
+ }
2727
+
2728
+ export declare interface PluginModalEmits {
2729
+ (e: 'update:visible', value: boolean): void;
2730
+ (e: 'confirm', type: 'form' | 'code', data: PluginCreationData): void;
2731
+ }
2732
+
2733
+ export declare interface PluginTool {
2734
+ id: string;
2735
+ name: string;
2736
+ description: string;
2737
+ enabled: boolean;
2738
+ }
2739
+
2740
+ export declare interface PopupConfig {
2741
+ type: 'fixed' | 'drawer';
2742
+ position?: {
2743
+ top?: string | number;
2744
+ left?: string | number;
2745
+ right?: string | number;
2746
+ bottom?: string | number;
2747
+ };
2748
+ drawer?: {
2749
+ direction: 'left' | 'right';
2750
+ };
2751
+ }
2752
+
2753
+ declare const Prompt: typeof _default_26 & {
2148
2754
  install: typeof installPrompt;
2149
2755
  };
2150
2756
  export { Prompt }
@@ -2175,9 +2781,13 @@ export declare interface PromptProps {
2175
2781
  * 提示徽章,显示在提示项的右上角
2176
2782
  */
2177
2783
  badge?: string | VNode;
2784
+ /**
2785
+ * 提示项大小。默认 medium
2786
+ */
2787
+ size?: 'small' | 'medium' | 'large';
2178
2788
  }
2179
2789
 
2180
- declare const Prompts: typeof _default_20 & {
2790
+ declare const Prompts: typeof _default_27 & {
2181
2791
  install: typeof installPrompts;
2182
2792
  };
2183
2793
  export { Prompts }
@@ -2214,6 +2824,20 @@ export declare interface PromptsSlots {
2214
2824
  footer?: () => unknown;
2215
2825
  }
2216
2826
 
2827
+ export declare interface RawFileAttachment extends BaseAttachment {
2828
+ rawFile: File;
2829
+ url?: string;
2830
+ size?: number;
2831
+ }
2832
+
2833
+ /**
2834
+ * 文件拒绝原因
2835
+ */
2836
+ export declare interface RejectionReason {
2837
+ code: DragZoneErrorCode;
2838
+ message: string;
2839
+ }
2840
+
2217
2841
  export declare type SenderEmits = {
2218
2842
  (e: 'update:modelValue', value: string): void;
2219
2843
  (e: 'update:templateData', value: UserItem[]): void;
@@ -2229,6 +2853,7 @@ export declare type SenderEmits = {
2229
2853
  (e: 'escape-press'): void;
2230
2854
  (e: 'cancel'): void;
2231
2855
  (e: 'reset-template'): void;
2856
+ (e: 'files-selected', files: File[]): void;
2232
2857
  };
2233
2858
 
2234
2859
  export declare interface SenderProps {
@@ -2243,11 +2868,12 @@ export declare interface SenderProps {
2243
2868
  modelValue?: string;
2244
2869
  mode?: InputMode;
2245
2870
  maxLength?: number;
2871
+ buttonGroup?: ButtonGroupConfig;
2246
2872
  submitType?: SubmitTrigger;
2247
2873
  speech?: boolean | SpeechConfig;
2248
2874
  placeholder?: string;
2249
2875
  showWordLimit?: boolean;
2250
- suggestions?: string[];
2876
+ suggestions?: ISuggestionItem[];
2251
2877
  suggestionPopupWidth?: string | number;
2252
2878
  theme?: ThemeType;
2253
2879
  templateData?: UserItem[];
@@ -2304,7 +2930,7 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2304
2930
 
2305
2931
  export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2306
2932
 
2307
- declare const SuggestionPillButton: typeof _default_22 & {
2933
+ declare const SuggestionPillButton: typeof _default_29 & {
2308
2934
  install: typeof installPillButton;
2309
2935
  };
2310
2936
  export { SuggestionPillButton }
@@ -2447,16 +3073,64 @@ declare interface TextItem extends BaseTextItem {
2447
3073
  type: 'text';
2448
3074
  }
2449
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
+
2450
3095
  /**
2451
3096
  * 组件核心类型定义
2452
3097
  */
2453
3098
  export declare type ThemeType = 'light' | 'dark';
2454
3099
 
3100
+ export declare type TooltipRender = () => VNode | string;
3101
+
3102
+ export declare interface UrlAttachment extends BaseAttachment {
3103
+ url: string;
3104
+ size: number;
3105
+ rawFile?: File;
3106
+ }
3107
+
2455
3108
  export declare type UserItem = UserTextItem | UserTemplateItem;
2456
3109
 
2457
- export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'>;
3110
+ export declare type UserTemplateItem = Omit<Pick<TemplateItem, 'type' | 'content'>, 'id'> & {
3111
+ id?: TemplateItem['id'];
3112
+ };
3113
+
3114
+ export declare type UserTextItem = Omit<TextItem, 'id'> & {
3115
+ id?: TextItem['id'];
3116
+ };
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
+ };
2458
3127
 
2459
- export declare type UserTextItem = Omit<TextItem, 'id'>;
3128
+ /**
3129
+ * 拖拽区域指令
3130
+ * @param el 元素
3131
+ * @param binding 绑定
3132
+ */
3133
+ export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
2460
3134
 
2461
3135
  export declare interface WelcomeProps {
2462
3136
  title: string;