@opentiny/tiny-robot 0.5.2-alpha.15 → 0.5.2-alpha.17

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
@@ -32,6 +32,7 @@ import { ShallowUnwrapRef } from 'vue';
32
32
  import { Slot } from 'vue';
33
33
  import { TransitionProps } from 'vue';
34
34
  import { UseFileDialogOptions } from '@vueuse/core';
35
+ import { UseScrollReturn } from '@vueuse/core';
35
36
  import { VNode } from 'vue';
36
37
  import { VNodeProps } from 'vue';
37
38
  import { WatchOptions } from 'vue';
@@ -88,7 +89,6 @@ open: boolean;
88
89
  placeholder: string;
89
90
  placement: Placement;
90
91
  emptyText: string;
91
- appendTo: string | HTMLElement;
92
92
  offset: number;
93
93
  searchable: boolean;
94
94
  searchPlaceholder: string;
@@ -278,7 +278,21 @@ setContent: (content: string) => void;
278
278
  getContent: () => string;
279
279
  editor: Editor | undefined;
280
280
  } & {} & ComponentCustomProperties & {} & {
281
- $slots: Readonly<SenderSlots> & SenderSlots;
281
+ $slots: {
282
+ header?(_: {}): any;
283
+ header?(_: {}): any;
284
+ prefix?(_: {}): any;
285
+ prefix?(_: {}): any;
286
+ content?(_: {
287
+ editor: Editor | undefined;
288
+ }): any;
289
+ content?(_: {
290
+ editor: Ref<Editor | undefined, Editor | undefined>;
291
+ }): any;
292
+ 'actions-inline'?(_: {}): any;
293
+ footer?(_: {}): any;
294
+ 'footer-right'?(_: {}): any;
295
+ };
282
296
  }) | null;
283
297
  voiceRef: ({
284
298
  $: ComponentInternalInstance;
@@ -627,7 +641,8 @@ groupStrategy: "consecutive" | "divider" | ((messages: BubbleMessage[], dividerR
627
641
  dividerRole: string;
628
642
  fallbackRole: string;
629
643
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
630
- listRef: HTMLDivElement;
644
+ scrollContainerRef: HTMLDivElement;
645
+ contentRef: HTMLDivElement;
631
646
  }, HTMLDivElement>;
632
647
 
633
648
  declare const __VLS_component_20: DefineComponent<ExtensionCardGridProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -846,7 +861,7 @@ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
846
861
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
847
862
  };
848
863
  $forceUpdate: () => void;
849
- $nextTick: nextTick;
864
+ $nextTick: typeof nextTick;
850
865
  $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;
851
866
  } & Readonly<{
852
867
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
@@ -1101,52 +1116,12 @@ declare function __VLS_template_12(): {
1101
1116
  header?(_: {}): any;
1102
1117
  prefix?(_: {}): any;
1103
1118
  content?(_: {
1104
- editor: unknown;
1105
- }): any;
1106
- actions?(_: {
1107
- editor: Editor_2 | undefined;
1108
- focus: () => void;
1109
- blur: () => void;
1110
- insert: (content: string) => void;
1111
- append: (content: string) => void;
1112
- replace: (content: string) => void;
1113
- disabled: boolean;
1114
- loading: boolean;
1115
- hasContent: boolean;
1116
- }): any;
1117
- 'footer-left'?(_: {
1118
- editor: Editor_2 | undefined;
1119
- focus: () => void;
1120
- blur: () => void;
1121
- insert: (content: string) => void;
1122
- append: (content: string) => void;
1123
- replace: (content: string) => void;
1124
- disabled: boolean;
1125
- loading: boolean;
1126
- hasContent: boolean;
1127
- }): any;
1128
- footer?(_: {
1129
- editor: Editor_2 | undefined;
1130
- focus: () => void;
1131
- blur: () => void;
1132
- insert: (content: string) => void;
1133
- append: (content: string) => void;
1134
- replace: (content: string) => void;
1135
- disabled: boolean;
1136
- loading: boolean;
1137
- hasContent: boolean;
1138
- }): any;
1139
- 'footer-right'?(_: {
1140
- editor: Editor_2 | undefined;
1141
- focus: () => void;
1142
- blur: () => void;
1143
- insert: (content: string) => void;
1144
- append: (content: string) => void;
1145
- replace: (content: string) => void;
1146
- disabled: boolean;
1147
- loading: boolean;
1148
- hasContent: boolean;
1119
+ editor: Ref<Editor | undefined, Editor | undefined>;
1149
1120
  }): any;
1121
+ actions?(_: {}): any;
1122
+ 'footer-left'?(_: {}): any;
1123
+ footer?(_: {}): any;
1124
+ 'footer-right'?(_: {}): any;
1150
1125
  };
1151
1126
  refs: {
1152
1127
  senderRef: ({
@@ -1272,7 +1247,21 @@ declare function __VLS_template_12(): {
1272
1247
  getContent: () => string;
1273
1248
  editor: Editor | undefined;
1274
1249
  } & {} & ComponentCustomProperties & {} & {
1275
- $slots: Readonly<SenderSlots> & SenderSlots;
1250
+ $slots: {
1251
+ header?(_: {}): any;
1252
+ header?(_: {}): any;
1253
+ prefix?(_: {}): any;
1254
+ prefix?(_: {}): any;
1255
+ content?(_: {
1256
+ editor: Editor | undefined;
1257
+ }): any;
1258
+ content?(_: {
1259
+ editor: Ref<Editor | undefined, Editor | undefined>;
1260
+ }): any;
1261
+ 'actions-inline'?(_: {}): any;
1262
+ footer?(_: {}): any;
1263
+ 'footer-right'?(_: {}): any;
1264
+ };
1276
1265
  }) | null;
1277
1266
  voiceRef: ({
1278
1267
  $: ComponentInternalInstance;
@@ -1545,7 +1534,8 @@ declare function __VLS_template_2(): {
1545
1534
  attrs: Partial<{}>;
1546
1535
  slots: Readonly<BubbleListSlots> & BubbleListSlots;
1547
1536
  refs: {
1548
- listRef: HTMLDivElement;
1537
+ scrollContainerRef: HTMLDivElement;
1538
+ contentRef: HTMLDivElement;
1549
1539
  };
1550
1540
  rootEl: HTMLDivElement;
1551
1541
  };
@@ -1756,7 +1746,7 @@ declare function __VLS_template_7(): {
1756
1746
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1757
1747
  };
1758
1748
  $forceUpdate: () => void;
1759
- $nextTick: nextTick;
1749
+ $nextTick: typeof nextTick;
1760
1750
  $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;
1761
1751
  } & Readonly<{
1762
1752
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
@@ -2211,6 +2201,17 @@ export declare interface AttachmentListProps {
2211
2201
  fileMatchers?: FileTypeMatcher[];
2212
2202
  }
2213
2203
 
2204
+ declare interface AutoScrollBehaviorOptions {
2205
+ /** 是否在组件挂载时滚动到底部,默认为 true */
2206
+ scrollOnMount?: boolean;
2207
+ /** 滚动事件的节流时间(毫秒),默认为 0 */
2208
+ scrollThrottle?: number;
2209
+ /** 判断接近底部的阈值(像素),默认为 20 */
2210
+ bottomThreshold?: number;
2211
+ /** 是否启用自动滚动,可传入响应式值 */
2212
+ enabled?: MaybeRefOrGetter<boolean>;
2213
+ }
2214
+
2214
2215
  /**
2215
2216
  * 自动高度配置
2216
2217
  */
@@ -2231,7 +2232,7 @@ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled'
2231
2232
 
2232
2233
  export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
2233
2234
 
2234
- declare const Bubble: typeof _default_27 & {
2235
+ declare const Bubble: typeof _default_26 & {
2235
2236
  install: typeof bubbleInstall;
2236
2237
  };
2237
2238
  export { Bubble }
@@ -2309,7 +2310,7 @@ declare type BubbleGroupFunction = (messages: BubbleMessage[], dividerRole?: str
2309
2310
 
2310
2311
  declare const bubbleInstall: (app: App) => void;
2311
2312
 
2312
- declare const BubbleList: typeof _default_28 & {
2313
+ declare const BubbleList: typeof _default_27 & {
2313
2314
  install: typeof bubbleListInstall;
2314
2315
  };
2315
2316
  export { BubbleList }
@@ -2347,9 +2348,9 @@ export declare interface BubbleListProps {
2347
2348
  contentRenderMode?: BubbleProps['contentRenderMode'];
2348
2349
  contentResolver?: BubbleProps['contentResolver'];
2349
2350
  /**
2350
- * 是否自动滚动到底部。需要满足以下条件:
2351
- * - BubbleList 是可滚动容器(需要 scrollHeight > clientHeight)
2352
- * - 滚动容器接近底部
2351
+ * 是否跟随渲染内容的尺寸变化自动滚动到底部。
2352
+ * 图片、Markdown 和自定义渲染器等异步增高时会继续跟随;用户向上滚动时暂停,回到底部后恢复。
2353
+ * 支持运行时响应式切换,不影响 scrollToBottom() 的手动调用。
2353
2354
  *
2354
2355
  * @default false
2355
2356
  */
@@ -2397,7 +2398,7 @@ export declare type BubbleProps = BubbleMessage & {
2397
2398
  fallbackContentRenderer?: Component<BubbleContentRendererProps>;
2398
2399
  };
2399
2400
 
2400
- declare const BubbleProvider: typeof _default_29 & {
2401
+ declare const BubbleProvider: typeof _default_28 & {
2401
2402
  install: typeof bubbleProviderInstall;
2402
2403
  };
2403
2404
  export { BubbleProvider }
@@ -2494,17 +2495,11 @@ export declare const BubbleRenderers: {
2494
2495
  contentIndex: number;
2495
2496
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2496
2497
  Tool: DefineComponent<BubbleContentRendererProps<ChatMessageContent, {
2497
- toolCall?: Record<string, {
2498
- status?: ToolCallStatus;
2499
- open?: boolean;
2500
- }>;
2498
+ toolCall?: Record<string, ToolCallState>;
2501
2499
  }> & {
2502
2500
  toolCallIndex: number;
2503
2501
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleContentRendererProps<ChatMessageContent, {
2504
- toolCall?: Record<string, {
2505
- status?: ToolCallStatus;
2506
- open?: boolean;
2507
- }>;
2502
+ toolCall?: Record<string, ToolCallState>;
2508
2503
  }> & {
2509
2504
  toolCallIndex: number;
2510
2505
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -2596,6 +2591,15 @@ declare interface CompatTextItem {
2596
2591
  content: string;
2597
2592
  }
2598
2593
 
2594
+ /**
2595
+ * @deprecated Container is kept for compatibility. Use `Layout` (`TrLayout`) for new layouts.
2596
+ */
2597
+ declare const Container: typeof _default_29 & {
2598
+ install: typeof install_2;
2599
+ };
2600
+ export { Container }
2601
+ export { Container as TrContainer }
2602
+
2599
2603
  export declare interface ContainerEmits {
2600
2604
  (e: 'close'): void;
2601
2605
  }
@@ -2630,80 +2634,78 @@ declare const _default: {
2630
2634
  };
2631
2635
  export default _default;
2632
2636
 
2633
- declare const _default_10: typeof _default_37 & {
2634
- install: typeof install_9;
2635
- };
2636
- export { _default_10 as IconButton }
2637
- export { _default_10 as TrIconButton }
2638
-
2639
- declare const _default_11: typeof _default_41 & {
2637
+ declare const _default_10: typeof _default_40 & {
2640
2638
  install: typeof install_10;
2641
2639
  };
2642
- export { _default_11 as ModelSelector }
2643
- export { _default_11 as TrModelSelector }
2640
+ export { _default_10 as ModelSelector }
2641
+ export { _default_10 as TrModelSelector }
2644
2642
 
2645
- declare const _default_12: typeof _default_44 & {
2643
+ declare const _default_11: typeof _default_43 & {
2646
2644
  install: typeof install_11;
2647
2645
  };
2648
- export { _default_12 as SenderCompat }
2649
- export { _default_12 as TrSenderCompat }
2646
+ export { _default_11 as SenderCompat }
2647
+ export { _default_11 as TrSenderCompat }
2650
2648
 
2651
- declare const _default_13: typeof _default_46 & {
2649
+ declare const _default_12: typeof _default_45 & {
2652
2650
  install: typeof install_12;
2653
2651
  };
2654
- export { _default_13 as SuggestionPills }
2655
- export { _default_13 as TrSuggestionPills }
2652
+ export { _default_12 as SuggestionPills }
2653
+ export { _default_12 as TrSuggestionPills }
2656
2654
 
2657
- declare const _default_14: typeof _default_47 & {
2655
+ declare const _default_13: typeof _default_46 & {
2658
2656
  install: typeof install_13;
2659
2657
  };
2660
- export { _default_14 as SuggestionPopover }
2661
- export { _default_14 as TrSuggestionPopover }
2658
+ export { _default_13 as SuggestionPopover }
2659
+ export { _default_13 as TrSuggestionPopover }
2662
2660
 
2663
- declare const _default_15: typeof _default_48 & {
2661
+ declare const _default_14: typeof _default_47 & {
2664
2662
  install: typeof install_14;
2665
2663
  };
2666
- export { _default_15 as ThemeProvider }
2667
- export { _default_15 as TrThemeProvider }
2664
+ export { _default_14 as ThemeProvider }
2665
+ export { _default_14 as TrThemeProvider }
2668
2666
 
2669
- declare const _default_16: typeof _default_49 & {
2667
+ declare const _default_15: typeof _default_48 & {
2670
2668
  install: typeof install_15;
2671
2669
  };
2672
- export { _default_16 as TrWelcome }
2673
- export { _default_16 as Welcome }
2670
+ export { _default_15 as TrWelcome }
2671
+ export { _default_15 as Welcome }
2674
2672
 
2675
- declare const _default_17: typeof _default_50 & {
2673
+ /**
2674
+ * @deprecated Use ExtensionManager and its Card/CardGrid namespace components instead.
2675
+ * This entry point remains available for compatibility and will be removed in a future major release.
2676
+ */
2677
+ declare const _default_16: typeof _default_49 & {
2676
2678
  install: typeof install_16;
2677
2679
  };
2678
- export { _default_17 as McpServerPicker }
2679
- export { _default_17 as TrMcpServerPicker }
2680
+ export { _default_16 as McpServerPicker }
2681
+ export { _default_16 as TrMcpServerPicker }
2680
2682
 
2681
- declare const _default_18: typeof _default_51 & {
2683
+ declare const _default_17: typeof _default_50 & {
2682
2684
  install: typeof install_17;
2683
2685
  };
2684
- export { _default_18 as McpAddForm }
2685
- export { _default_18 as TrMcpAddForm }
2686
+ export { _default_17 as McpAddForm }
2687
+ export { _default_17 as TrMcpAddForm }
2688
+
2689
+ declare const _default_18: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
2690
+ export { _default_18 as ActionButton }
2691
+ export { _default_18 as TrActionButton }
2686
2692
 
2687
- declare const _default_19: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
2688
- export { _default_19 as ActionButton }
2689
- export { _default_19 as TrActionButton }
2693
+ declare const _default_19: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2694
+ export { _default_19 as SubmitButton }
2695
+ export { _default_19 as TrSubmitButton }
2690
2696
 
2691
- declare const _default_2: typeof _default_26 & {
2697
+ declare const _default_2: typeof _default_25 & {
2692
2698
  install: typeof install;
2693
2699
  };
2694
2700
  export { _default_2 as Attachments }
2695
2701
  export { _default_2 as TrAttachments }
2696
2702
 
2697
2703
  declare const _default_20: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2698
- export { _default_20 as SubmitButton }
2699
- export { _default_20 as TrSubmitButton }
2700
-
2701
- declare const _default_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2702
- export { _default_21 as ClearButton }
2703
- export { _default_21 as TrClearButton }
2704
+ export { _default_20 as ClearButton }
2705
+ export { _default_20 as TrClearButton }
2704
2706
 
2705
- declare const _default_22: DefineComponent<UploadButtonProps, {
2706
- open: (options?: Parameters<typeof openFileDialog>[0]) => void;
2707
+ declare const _default_21: DefineComponent<UploadButtonProps, {
2708
+ open: (localOptions?: Partial<UseFileDialogOptions>) => void;
2707
2709
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2708
2710
  error: (error: Error, files?: File[] | undefined) => any;
2709
2711
  select: (files: File[]) => any;
@@ -2716,22 +2718,22 @@ multiple: boolean;
2716
2718
  tooltipPlacement: TooltipPlacement;
2717
2719
  accept: string;
2718
2720
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2719
- export { _default_22 as TrUploadButton }
2720
- export { _default_22 as UploadButton }
2721
+ export { _default_21 as TrUploadButton }
2722
+ export { _default_21 as UploadButton }
2721
2723
 
2722
- declare const _default_23: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
2723
- export { _default_23 as TrVoiceButton }
2724
- export { _default_23 as VoiceButton }
2724
+ declare const _default_22: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
2725
+ export { _default_22 as TrVoiceButton }
2726
+ export { _default_22 as VoiceButton }
2725
2727
 
2726
- declare const _default_24: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2727
- export { _default_24 as TrWordCounter }
2728
- export { _default_24 as WordCounter }
2728
+ declare const _default_23: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2729
+ export { _default_23 as TrWordCounter }
2730
+ export { _default_23 as WordCounter }
2729
2731
 
2730
- declare const _default_25: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
2731
- export { _default_25 as DefaultActionButtons }
2732
- export { _default_25 as TrDefaultActionButtons }
2732
+ declare const _default_24: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
2733
+ export { _default_24 as DefaultActionButtons }
2734
+ export { _default_24 as TrDefaultActionButtons }
2733
2735
 
2734
- declare const _default_26: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2736
+ declare const _default_25: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2735
2737
  "update:items": (items: Attachment[]) => any;
2736
2738
  remove: (file: Attachment) => any;
2737
2739
  download: (event: MouseEvent, file: Attachment) => any;
@@ -2757,29 +2759,29 @@ fileMatchers: FileTypeMatcher[];
2757
2759
  variant: DisplayVariant;
2758
2760
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2759
2761
 
2760
- declare const _default_27: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2762
+ declare const _default_26: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2761
2763
 
2762
- declare const _default_28: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2764
+ declare const _default_27: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2763
2765
 
2764
- declare const _default_29: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2766
+ declare const _default_28: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2767
+
2768
+ declare const _default_29: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2765
2769
 
2766
2770
  declare const _default_3: typeof _default_30 & {
2767
- install: typeof install_2;
2771
+ install: typeof install_3;
2768
2772
  };
2769
- export { _default_3 as Container }
2770
- export { _default_3 as TrContainer }
2773
+ export { _default_3 as Anchor }
2774
+ export { _default_3 as TrAnchor }
2771
2775
 
2772
- declare const _default_30: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2776
+ declare const _default_30: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2773
2777
 
2774
- declare const _default_31: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2778
+ declare const _default_31: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2775
2779
 
2776
- declare const _default_32: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2780
+ declare const _default_32: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2777
2781
 
2778
- declare const _default_33: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2782
+ declare const _default_33: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2779
2783
 
2780
- declare const _default_34: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2781
-
2782
- declare const _default_35: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2784
+ declare const _default_34: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2783
2785
  action: (name: string) => any;
2784
2786
  operation: (name: string) => any;
2785
2787
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
@@ -2791,7 +2793,7 @@ actionsLimit: number;
2791
2793
  sourcesLinesLimit: number;
2792
2794
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2793
2795
 
2794
- declare const _default_36: <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<{
2796
+ declare const _default_35: <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<{
2795
2797
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
2796
2798
  readonly "onItem-click"?: ((item: T) => any) | undefined;
2797
2799
  readonly "onItem-title-change"?: ((newTitle: string, item: T) => any) | undefined;
@@ -2805,55 +2807,55 @@ declare const _default_36: <T extends HistoryItem>(__VLS_props: NonNullable<Awai
2805
2807
  __ctx?: Awaited<typeof __VLS_setup>;
2806
2808
  };
2807
2809
 
2808
- declare const _default_37: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2810
+ declare const _default_36: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2809
2811
  size: string | number;
2810
2812
  svgSize: string | number;
2811
2813
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2812
2814
 
2813
- declare const _default_38: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2815
+ declare const _default_37: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2814
2816
 
2815
- declare const _default_39: DefineComponent<LayoutProxyScrollbarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LayoutProxyScrollbarProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2817
+ declare const _default_38: DefineComponent<LayoutProxyScrollbarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LayoutProxyScrollbarProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2816
2818
  scrollbarRef: HTMLDivElement;
2817
2819
  thumbRef: HTMLDivElement;
2818
2820
  }, any>;
2819
2821
 
2822
+ declare const _default_39: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2823
+
2820
2824
  declare const _default_4: typeof _default_31 & {
2821
- install: typeof install_3;
2825
+ install: typeof install_4;
2822
2826
  };
2823
- export { _default_4 as Anchor }
2824
- export { _default_4 as TrAnchor }
2825
-
2826
- declare const _default_40: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2827
+ export { _default_4 as Conversations }
2828
+ export { _default_4 as TrConversations }
2827
2829
 
2828
- declare const _default_41: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2830
+ declare const _default_40: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2829
2831
 
2830
- declare const _default_42: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2832
+ declare const _default_41: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2831
2833
  size: "small" | "medium" | "large";
2832
2834
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2833
2835
 
2834
- declare const _default_43: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2836
+ declare const _default_42: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2837
+
2838
+ declare const _default_43: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2835
2839
 
2836
- declare const _default_44: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2840
+ declare const _default_44: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
2837
2841
 
2838
- declare const _default_45: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
2842
+ declare const _default_45: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
2839
2843
 
2840
- declare const _default_46: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
2844
+ declare const _default_46: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
2841
2845
 
2842
- declare const _default_47: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
2846
+ declare const _default_47: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
2843
2847
 
2844
- declare const _default_48: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
2848
+ declare const _default_48: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
2845
2849
 
2846
- declare const _default_49: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
2850
+ declare const _default_49: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
2847
2851
 
2848
2852
  declare const _default_5: typeof _default_32 & {
2849
- install: typeof install_4;
2853
+ install: typeof install_5;
2850
2854
  };
2851
- export { _default_5 as Conversations }
2852
- export { _default_5 as TrConversations }
2853
-
2854
- declare const _default_50: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
2855
+ export { _default_5 as DragOverlay }
2856
+ export { _default_5 as TrDragOverlay }
2855
2857
 
2856
- declare const _default_51: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2858
+ declare const _default_50: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2857
2859
  cancel: () => any;
2858
2860
  confirm: (type: AddType, data: string | McpAddFormData) => any;
2859
2861
  "update:addType": (value: AddType) => any;
@@ -2865,33 +2867,33 @@ onConfirm?: ((type: AddType, data: string | McpAddFormData) => any) | undefined;
2865
2867
  addType: AddType;
2866
2868
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2867
2869
 
2868
- declare const _default_52: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
2870
+ declare const _default_51: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
2869
2871
 
2870
- declare const _default_53: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
2872
+ declare const _default_52: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
2871
2873
 
2872
2874
  declare const _default_6: typeof _default_33 & {
2873
- install: typeof install_5;
2875
+ install: typeof install_6;
2874
2876
  };
2875
- export { _default_6 as DragOverlay }
2876
- export { _default_6 as TrDragOverlay }
2877
+ export { _default_6 as DropdownMenu }
2878
+ export { _default_6 as TrDropdownMenu }
2877
2879
 
2878
2880
  declare const _default_7: typeof _default_34 & {
2879
- install: typeof install_6;
2881
+ install: typeof install_7;
2880
2882
  };
2881
- export { _default_7 as DropdownMenu }
2882
- export { _default_7 as TrDropdownMenu }
2883
+ export { _default_7 as Feedback }
2884
+ export { _default_7 as TrFeedback }
2883
2885
 
2884
2886
  declare const _default_8: typeof _default_35 & {
2885
- install: typeof install_7;
2887
+ install: typeof install_8;
2886
2888
  };
2887
- export { _default_8 as Feedback }
2888
- export { _default_8 as TrFeedback }
2889
+ export { _default_8 as History }
2890
+ export { _default_8 as TrHistory }
2889
2891
 
2890
2892
  declare const _default_9: typeof _default_36 & {
2891
- install: typeof install_8;
2893
+ install: typeof install_9;
2892
2894
  };
2893
- export { _default_9 as History }
2894
- export { _default_9 as TrHistory }
2895
+ export { _default_9 as IconButton }
2896
+ export { _default_9 as TrIconButton }
2895
2897
 
2896
2898
  /**
2897
2899
  * 默认操作按钮配置
@@ -3129,7 +3131,7 @@ export declare interface DropzoneBinding {
3129
3131
  */
3130
3132
  export declare type EnterKeyHint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
3131
3133
 
3132
- declare const ExtensionCard: typeof _default_52 & {
3134
+ declare const ExtensionCard: typeof _default_51 & {
3133
3135
  install: typeof extensionCardInstall;
3134
3136
  };
3135
3137
  export { ExtensionCard }
@@ -3167,7 +3169,7 @@ export declare interface ExtensionCardEmits {
3167
3169
  (e: 'action', payload: ExtensionCardActionEvent): void;
3168
3170
  }
3169
3171
 
3170
- declare const ExtensionCardGrid: typeof _default_53 & {
3172
+ declare const ExtensionCardGrid: typeof _default_52 & {
3171
3173
  install: typeof extensionCardGridInstall;
3172
3174
  };
3173
3175
  export { ExtensionCardGrid }
@@ -3240,6 +3242,159 @@ export declare interface ExtensionCardSwitchAction extends ExtensionCardActionBa
3240
3242
  checked: boolean;
3241
3243
  }
3242
3244
 
3245
+ declare const ExtensionManager: {
3246
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtensionManagerProps> & Readonly<{
3247
+ onAction?: ((event: ExtensionManagerActionEvent) => any) | undefined;
3248
+ "onTab-change"?: ((event: ExtensionManagerTabChangeEvent) => any) | undefined;
3249
+ "onName-click"?: ((event: ExtensionManagerNameClickEvent) => any) | undefined;
3250
+ "onUpdate:active-tab"?: ((tabId: string | undefined) => any) | undefined;
3251
+ "onSection-toggle"?: ((event: ExtensionManagerSectionToggleEvent) => any) | undefined;
3252
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3253
+ action: (event: ExtensionManagerActionEvent) => any;
3254
+ "tab-change": (event: ExtensionManagerTabChangeEvent) => any;
3255
+ "name-click": (event: ExtensionManagerNameClickEvent) => any;
3256
+ "update:active-tab": (tabId: string | undefined) => any;
3257
+ "section-toggle": (event: ExtensionManagerSectionToggleEvent) => any;
3258
+ }, PublicProps, {
3259
+ emptyText: string;
3260
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
3261
+ P: {};
3262
+ B: {};
3263
+ D: {};
3264
+ C: {};
3265
+ M: {};
3266
+ Defaults: {};
3267
+ }, Readonly<ExtensionManagerProps> & Readonly<{
3268
+ onAction?: ((event: ExtensionManagerActionEvent) => any) | undefined;
3269
+ "onTab-change"?: ((event: ExtensionManagerTabChangeEvent) => any) | undefined;
3270
+ "onName-click"?: ((event: ExtensionManagerNameClickEvent) => any) | undefined;
3271
+ "onUpdate:active-tab"?: ((tabId: string | undefined) => any) | undefined;
3272
+ "onSection-toggle"?: ((event: ExtensionManagerSectionToggleEvent) => any) | undefined;
3273
+ }>, {}, {}, {}, {}, {
3274
+ emptyText: string;
3275
+ }>;
3276
+ __isFragment?: never;
3277
+ __isTeleport?: never;
3278
+ __isSuspense?: never;
3279
+ } & ComponentOptionsBase<Readonly<ExtensionManagerProps> & Readonly<{
3280
+ onAction?: ((event: ExtensionManagerActionEvent) => any) | undefined;
3281
+ "onTab-change"?: ((event: ExtensionManagerTabChangeEvent) => any) | undefined;
3282
+ "onName-click"?: ((event: ExtensionManagerNameClickEvent) => any) | undefined;
3283
+ "onUpdate:active-tab"?: ((tabId: string | undefined) => any) | undefined;
3284
+ "onSection-toggle"?: ((event: ExtensionManagerSectionToggleEvent) => any) | undefined;
3285
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3286
+ action: (event: ExtensionManagerActionEvent) => any;
3287
+ "tab-change": (event: ExtensionManagerTabChangeEvent) => any;
3288
+ "name-click": (event: ExtensionManagerNameClickEvent) => any;
3289
+ "update:active-tab": (tabId: string | undefined) => any;
3290
+ "section-toggle": (event: ExtensionManagerSectionToggleEvent) => any;
3291
+ }, string, {
3292
+ emptyText: string;
3293
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3294
+ $slots: Readonly<ExtensionManagerSlots> & ExtensionManagerSlots;
3295
+ }) & {
3296
+ install: <T>(app: App<T>) => void;
3297
+ Card: {
3298
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtensionCardProps> & Readonly<{
3299
+ onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
3300
+ "onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
3301
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3302
+ action: (payload: ExtensionCardActionEvent) => any;
3303
+ "name-click": (event: MouseEvent | KeyboardEvent) => any;
3304
+ }, PublicProps, {
3305
+ actions: ExtensionCardAction[];
3306
+ primaryActionsLimit: number;
3307
+ nameClickable: boolean;
3308
+ overflowMenuLabel: string;
3309
+ overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
3310
+ overflowMenuShowIcons: boolean;
3311
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
3312
+ P: {};
3313
+ B: {};
3314
+ D: {};
3315
+ C: {};
3316
+ M: {};
3317
+ Defaults: {};
3318
+ }, Readonly<ExtensionCardProps> & Readonly<{
3319
+ onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
3320
+ "onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
3321
+ }>, {}, {}, {}, {}, {
3322
+ actions: ExtensionCardAction[];
3323
+ primaryActionsLimit: number;
3324
+ nameClickable: boolean;
3325
+ overflowMenuLabel: string;
3326
+ overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
3327
+ overflowMenuShowIcons: boolean;
3328
+ }>;
3329
+ __isFragment?: never;
3330
+ __isTeleport?: never;
3331
+ __isSuspense?: never;
3332
+ } & ComponentOptionsBase<Readonly<ExtensionCardProps> & Readonly<{
3333
+ onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
3334
+ "onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
3335
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3336
+ action: (payload: ExtensionCardActionEvent) => any;
3337
+ "name-click": (event: MouseEvent | KeyboardEvent) => any;
3338
+ }, string, {
3339
+ actions: ExtensionCardAction[];
3340
+ primaryActionsLimit: number;
3341
+ nameClickable: boolean;
3342
+ overflowMenuLabel: string;
3343
+ overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
3344
+ overflowMenuShowIcons: boolean;
3345
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3346
+ $slots: Readonly<ExtensionCardSlots> & ExtensionCardSlots;
3347
+ }) & {
3348
+ install: typeof extensionCardInstall;
3349
+ };
3350
+ CardGrid: {
3351
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtensionCardGridProps> & Readonly<{
3352
+ onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
3353
+ "onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
3354
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3355
+ action: (payload: ExtensionCardGridActionEvent) => any;
3356
+ "name-click": (payload: ExtensionCardGridNameClickEvent) => any;
3357
+ }, PublicProps, {
3358
+ emptyText: string;
3359
+ nameClickable: boolean;
3360
+ overflowMenuShowIcons: boolean;
3361
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLUListElement, ComponentProvideOptions, {
3362
+ P: {};
3363
+ B: {};
3364
+ D: {};
3365
+ C: {};
3366
+ M: {};
3367
+ Defaults: {};
3368
+ }, Readonly<ExtensionCardGridProps> & Readonly<{
3369
+ onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
3370
+ "onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
3371
+ }>, {}, {}, {}, {}, {
3372
+ emptyText: string;
3373
+ nameClickable: boolean;
3374
+ overflowMenuShowIcons: boolean;
3375
+ }>;
3376
+ __isFragment?: never;
3377
+ __isTeleport?: never;
3378
+ __isSuspense?: never;
3379
+ } & ComponentOptionsBase<Readonly<ExtensionCardGridProps> & Readonly<{
3380
+ onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
3381
+ "onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
3382
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3383
+ action: (payload: ExtensionCardGridActionEvent) => any;
3384
+ "name-click": (payload: ExtensionCardGridNameClickEvent) => any;
3385
+ }, string, {
3386
+ emptyText: string;
3387
+ nameClickable: boolean;
3388
+ overflowMenuShowIcons: boolean;
3389
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3390
+ $slots: Readonly<ExtensionCardGridSlots> & ExtensionCardGridSlots;
3391
+ }) & {
3392
+ install: typeof extensionCardGridInstall;
3393
+ };
3394
+ };
3395
+ export { ExtensionManager }
3396
+ export { ExtensionManager as TrExtensionManager }
3397
+
3243
3398
  export declare interface ExtensionManagerActionEvent {
3244
3399
  tabId: string;
3245
3400
  sectionKey: ExtensionManagerSectionKey;
@@ -3552,7 +3707,7 @@ export declare interface LayoutAsideResizeValue {
3552
3707
  expandedWidth: number;
3553
3708
  }
3554
3709
 
3555
- declare const LayoutAsideToggle: typeof _default_40 & {
3710
+ declare const LayoutAsideToggle: typeof _default_39 & {
3556
3711
  install: typeof layoutAsideToggleInstall;
3557
3712
  };
3558
3713
  export { LayoutAsideToggle }
@@ -3564,7 +3719,7 @@ export declare interface LayoutAsideToggleProps {
3564
3719
  side: LayoutSide;
3565
3720
  }
3566
3721
 
3567
- declare type LayoutCompound = typeof _default_38 & {
3722
+ declare type LayoutCompound = typeof _default_37 & {
3568
3723
  install: typeof layoutInstall;
3569
3724
  ProxyScrollbar: typeof LayoutProxyScrollbar;
3570
3725
  AsideToggle: typeof LayoutAsideToggle;
@@ -3645,7 +3800,7 @@ export declare interface LayoutNormalProps extends LayoutAsidePanelsProps {
3645
3800
 
3646
3801
  export declare type LayoutProps = LayoutNormalProps | LayoutFloatingProps;
3647
3802
 
3648
- declare const LayoutProxyScrollbar: typeof _default_39 & {
3803
+ declare const LayoutProxyScrollbar: typeof _default_38 & {
3649
3804
  install: typeof layoutProxyScrollbarInstall;
3650
3805
  };
3651
3806
  export { LayoutProxyScrollbar }
@@ -3677,6 +3832,11 @@ declare interface LayoutSurfaceProps {
3677
3832
  floatingOptions?: LayoutFloatingOptions;
3678
3833
  }
3679
3834
 
3835
+ /** @deprecated 仅用于旧位置参数结构,请改用 `UseAutoScrollOptions` */
3836
+ export declare interface LegacyUseAutoScrollOptions extends AutoScrollBehaviorOptions {
3837
+ contentTarget?: MaybeComputedElementRef;
3838
+ }
3839
+
3680
3840
  export declare interface MarketCategoryOption {
3681
3841
  value: string;
3682
3842
  label: string;
@@ -3922,8 +4082,6 @@ export declare interface ModelSelectorTriggerSlotProps {
3922
4082
 
3923
4083
  export declare type ModelSelectorVariant = 'outline' | 'ghost' | 'muted';
3924
4084
 
3925
- declare const openFileDialog: (localOptions?: Partial<UseFileDialogOptions>) => void;
3926
-
3927
4085
  export declare type PluginAddState = 'idle' | 'loading' | 'added';
3928
4086
 
3929
4087
  export declare interface PluginCardEmits {
@@ -3989,7 +4147,7 @@ export declare interface PopupConfig {
3989
4147
  };
3990
4148
  }
3991
4149
 
3992
- declare const Prompt: typeof _default_42 & {
4150
+ declare const Prompt: typeof _default_41 & {
3993
4151
  install: typeof installPrompt;
3994
4152
  };
3995
4153
  export { Prompt }
@@ -4026,7 +4184,7 @@ export declare interface PromptProps {
4026
4184
  size?: 'small' | 'medium' | 'large';
4027
4185
  }
4028
4186
 
4029
- declare const Prompts: typeof _default_43 & {
4187
+ declare const Prompts: typeof _default_42 & {
4030
4188
  install: typeof installPrompts;
4031
4189
  };
4032
4190
  export { Prompts }
@@ -4202,7 +4360,21 @@ hasExternalContent: boolean;
4202
4360
  extensions: Extension[] | any[];
4203
4361
  submitType: SubmitTrigger;
4204
4362
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
4205
- $slots: Readonly<SenderSlots> & SenderSlots;
4363
+ $slots: {
4364
+ header?(_: {}): any;
4365
+ header?(_: {}): any;
4366
+ prefix?(_: {}): any;
4367
+ prefix?(_: {}): any;
4368
+ content?(_: {
4369
+ editor: Editor | undefined;
4370
+ }): any;
4371
+ content?(_: {
4372
+ editor: Ref<Editor | undefined, Editor | undefined>;
4373
+ }): any;
4374
+ 'actions-inline'?(_: {}): any;
4375
+ footer?(_: {}): any;
4376
+ 'footer-right'?(_: {}): any;
4377
+ };
4206
4378
  }) & {
4207
4379
  install: <T>(app: App<T>) => void;
4208
4380
  Mention: Node_2<MentionOptions, any>;
@@ -5125,7 +5297,7 @@ export declare interface SuggestionOptions {
5125
5297
  onSelect?: (item: SenderSuggestionItem) => void | false;
5126
5298
  }
5127
5299
 
5128
- declare const SuggestionPillButton: typeof _default_45 & {
5300
+ declare const SuggestionPillButton: typeof _default_44 & {
5129
5301
  install: typeof installPillButton;
5130
5302
  };
5131
5303
  export { SuggestionPillButton }
@@ -5471,9 +5643,16 @@ export declare interface ToolCall {
5471
5643
  [x: string]: any;
5472
5644
  }
5473
5645
 
5646
+ declare interface ToolCallState {
5647
+ status?: ToolCallStatus;
5648
+ open?: boolean;
5649
+ description?: string;
5650
+ [key: string]: unknown;
5651
+ }
5652
+
5474
5653
  declare type ToolCallStatus = (typeof toolCallStatus)[number];
5475
5654
 
5476
- declare const toolCallStatus: readonly ["running", "success", "failed", "cancelled"];
5655
+ declare const toolCallStatus: readonly ["running", "success", "failed", "cancelled", "awaiting-approval", "denied"];
5477
5656
 
5478
5657
  /**
5479
5658
  * Tooltip 内容类型
@@ -5565,27 +5744,28 @@ export declare interface UrlAttachment extends BaseAttachment {
5565
5744
  }
5566
5745
 
5567
5746
  /**
5568
- * 当目标滚动容器 `target` 接近底部时,且源数据 `source` 变化,自动滚动到底部
5569
- * @param target 目标滚动容器的元素引用
5570
- * @param source 监听的源数据,当该数据变化时会触发自动滚动
5571
- * @param options 配置选项
5572
- * @param options.scrollOnMount 是否在组件挂载时滚动到底部,默认为 true
5573
- * @param options.bottomThreshold 判断接近底部的阈值(像素),默认为 20
5574
- * @returns scrollToBottom 手动滚动到底部的方法
5747
+ * 当滚动容器保持跟随状态时,根据内容或容器尺寸变化自动滚动到底部
5748
+ * @param options 滚动容器、内容元素及行为配置
5749
+ * @returns 手动滚动方法和当前位置状态
5575
5750
  */
5576
- export declare function useAutoScroll(target: MaybeComputedElementRef, source: MaybeRefOrGetter<any>, options?: {
5577
- scrollOnMount?: boolean;
5578
- scrollThrottle?: number;
5579
- bottomThreshold?: number;
5580
- }): {
5751
+ export declare function useAutoScroll(options: UseAutoScrollOptions): UseAutoScrollReturn;
5752
+
5753
+ /**
5754
+ * @deprecated 请改用对象参数:`useAutoScroll({ scrollRef, contentRef, ...options })`
5755
+ */
5756
+ export declare function useAutoScroll(target: MaybeComputedElementRef, source?: MaybeRefOrGetter<unknown>, options?: LegacyUseAutoScrollOptions): UseAutoScrollReturn;
5757
+
5758
+ export declare interface UseAutoScrollOptions extends AutoScrollBehaviorOptions {
5759
+ /** 目标滚动容器的元素引用 */
5760
+ scrollRef: MaybeComputedElementRef;
5761
+ /** 滚动容器内用于监听尺寸变化的内容元素引用 */
5762
+ contentRef: MaybeComputedElementRef;
5763
+ }
5764
+
5765
+ export declare interface UseAutoScrollReturn {
5581
5766
  scrollToBottom: (behavior?: ScrollBehavior) => Promise<void>;
5582
- arrivedState: {
5583
- left: boolean;
5584
- right: boolean;
5585
- top: boolean;
5586
- bottom: boolean;
5587
- };
5588
- };
5767
+ arrivedState: UseScrollReturn['arrivedState'];
5768
+ }
5589
5769
 
5590
5770
  export declare function useBubbleBoxRenderer(messages: MaybeRefOrGetter<BubbleMessage[]>, contentIndex?: number): ComputedRef<{
5591
5771
  renderer: Component;
@@ -5766,10 +5946,7 @@ export declare const useTheme: () => {
5766
5946
  };
5767
5947
 
5768
5948
  export declare const useToolCall: (props: BubbleContentRendererProps<ChatMessageContent, {
5769
- toolCall?: Record<string, {
5770
- status?: ToolCallStatus;
5771
- open?: boolean;
5772
- }>;
5949
+ toolCall?: Record<string, ToolCallState>;
5773
5950
  }> & {
5774
5951
  toolCallIndex: number;
5775
5952
  }) => {
@@ -5781,10 +5958,7 @@ export declare const useToolCall: (props: BubbleContentRendererProps<ChatMessage
5781
5958
  readonly arguments?: any;
5782
5959
  readonly result?: any;
5783
5960
  }>>;
5784
- state: ComputedRef< {
5785
- status: "success" | "running" | "failed" | "cancelled" | undefined;
5786
- open: boolean | undefined;
5787
- }>;
5961
+ state: ComputedRef<ToolCallState>;
5788
5962
  };
5789
5963
 
5790
5964
  export declare function useTouchDevice(): {
@@ -5909,15 +6083,23 @@ export { }
5909
6083
  */
5910
6084
  declare module '@tiptap/core' {
5911
6085
  interface Commands<ReturnType> {
5912
- mention: {
6086
+ template: {
5913
6087
  /**
5914
- * 插入 mention 节点
6088
+ * 设置模板数据(批量)
5915
6089
  */
5916
- insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
6090
+ setTemplateData: (items: TemplateItem[]) => ReturnType;
5917
6091
  /**
5918
- * 删除 mention 节点
6092
+ * 插入模板块
5919
6093
  */
5920
- deleteMention: (id: string) => ReturnType;
6094
+ insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
6095
+ /**
6096
+ * 聚焦到第一个模板块
6097
+ */
6098
+ focusFirstTemplate: () => ReturnType;
6099
+ /**
6100
+ * 插入选择器
6101
+ */
6102
+ insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
5921
6103
  };
5922
6104
  }
5923
6105
  }
@@ -5930,23 +6112,15 @@ declare module '@tiptap/core' {
5930
6112
  */
5931
6113
  declare module '@tiptap/core' {
5932
6114
  interface Commands<ReturnType> {
5933
- template: {
5934
- /**
5935
- * 设置模板数据(批量)
5936
- */
5937
- setTemplateData: (items: TemplateItem[]) => ReturnType;
5938
- /**
5939
- * 插入模板块
5940
- */
5941
- insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
6115
+ mention: {
5942
6116
  /**
5943
- * 聚焦到第一个模板块
6117
+ * 插入 mention 节点
5944
6118
  */
5945
- focusFirstTemplate: () => ReturnType;
6119
+ insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
5946
6120
  /**
5947
- * 插入选择器
6121
+ * 删除 mention 节点
5948
6122
  */
5949
- insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
6123
+ deleteMention: (id: string) => ReturnType;
5950
6124
  };
5951
6125
  }
5952
6126
  }