@opentiny/tiny-robot 0.5.2-alpha.7 → 0.5.2-beta.0

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
@@ -25,6 +25,7 @@ import { MaybeRefOrGetter } from 'vue';
25
25
  import { nextTick } from 'vue';
26
26
  import { Node as Node_2 } from '@tiptap/core';
27
27
  import { OnCleanup } from '@vue/reactivity';
28
+ import { Placement } from '@floating-ui/dom';
28
29
  import { PublicProps } from 'vue';
29
30
  import { Ref } from 'vue';
30
31
  import { ShallowUnwrapRef } from 'vue';
@@ -67,13 +68,48 @@ contentResolver: (message: BubbleMessage) => ChatMessageContent | undefined;
67
68
  bubbleRef: HTMLDivElement;
68
69
  }, HTMLDivElement>;
69
70
 
70
- declare const __VLS_component_10: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
71
+ declare const __VLS_component_10: DefineComponent<ModelSelectorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
72
+ change: (option: ModelSelectorOption) => any;
73
+ "update:modelValue": (value: string | null) => any;
74
+ "update:reasoningEffort": (value: string | null) => any;
75
+ "reasoning-effort-change": (option: ModelSelectorReasoningEffortOption | null) => any;
76
+ "update:open": (open: boolean) => any;
77
+ }, string, PublicProps, Readonly<ModelSelectorProps> & Readonly<{
78
+ onChange?: ((option: ModelSelectorOption) => any) | undefined;
79
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
80
+ "onUpdate:reasoningEffort"?: ((value: string | null) => any) | undefined;
81
+ "onReasoning-effort-change"?: ((option: ModelSelectorReasoningEffortOption | null) => any) | undefined;
82
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
83
+ }>, {
84
+ size: ModelSelectorSize;
85
+ disabled: boolean;
86
+ variant: ModelSelectorVariant;
87
+ open: boolean;
88
+ placeholder: string;
89
+ placement: Placement;
90
+ emptyText: string;
91
+ offset: number;
92
+ searchable: boolean;
93
+ searchPlaceholder: string;
94
+ models: readonly ModelSelectorOption[];
95
+ defaultValue: string | null;
96
+ reasoningEffort: string | null;
97
+ defaultReasoningEffort: string | null;
98
+ defaultOpen: boolean;
99
+ closeOnSelect: boolean;
100
+ reasoningEffortLabel: string;
101
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
102
+ referenceEl: HTMLSpanElement;
103
+ floatingEl: HTMLDivElement;
104
+ }, HTMLDivElement>;
105
+
106
+ declare const __VLS_component_11: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
71
107
  "item-click": (ev: MouseEvent, item: PromptProps) => any;
72
108
  }, string, PublicProps, Readonly<PromptsProps> & Readonly<{
73
109
  "onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
74
110
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
75
111
 
76
- declare const __VLS_component_11: DefineComponent<SenderProps_2, {
112
+ declare const __VLS_component_12: DefineComponent<SenderProps_2, {
77
113
  focus: () => void;
78
114
  blur: () => void;
79
115
  clear: () => void;
@@ -241,7 +277,21 @@ setContent: (content: string) => void;
241
277
  getContent: () => string;
242
278
  editor: Editor | undefined;
243
279
  } & {} & ComponentCustomProperties & {} & {
244
- $slots: Readonly<SenderSlots> & SenderSlots;
280
+ $slots: {
281
+ header?(_: {}): any;
282
+ header?(_: {}): any;
283
+ prefix?(_: {}): any;
284
+ prefix?(_: {}): any;
285
+ content?(_: {
286
+ editor: Editor | undefined;
287
+ }): any;
288
+ content?(_: {
289
+ editor: Ref<Editor | undefined, Editor | undefined>;
290
+ }): any;
291
+ 'actions-inline'?(_: {}): any;
292
+ footer?(_: {}): any;
293
+ 'footer-right'?(_: {}): any;
294
+ };
245
295
  }) | null;
246
296
  voiceRef: ({
247
297
  $: ComponentInternalInstance;
@@ -339,9 +389,9 @@ stop: () => void;
339
389
  }) | null;
340
390
  }, HTMLDivElement>;
341
391
 
342
- declare const __VLS_component_12: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
392
+ declare const __VLS_component_13: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
343
393
 
344
- declare const __VLS_component_13: DefineComponent<__VLS_PublicProps_3, {
394
+ declare const __VLS_component_14: DefineComponent<__VLS_PublicProps_3, {
345
395
  children: ComputedRef<(HTMLElement | SVGElement)[]>;
346
396
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
347
397
  "update:showAll": (value: boolean | undefined) => any;
@@ -361,7 +411,7 @@ floatingItemsRef: HTMLDivElement;
361
411
  floatingMaybeItemRefs: unknown[];
362
412
  }, HTMLDivElement>;
363
413
 
364
- declare const __VLS_component_14: DefineComponent<__VLS_PublicProps_4, {
414
+ declare const __VLS_component_15: DefineComponent<__VLS_PublicProps_4, {
365
415
  update: () => void;
366
416
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
367
417
  "update:selectedGroup": (value: string) => any;
@@ -495,7 +545,7 @@ show?: TooltipContentProps["show"];
495
545
  }>, {}, {}, {}, {}, {}> | null;
496
546
  }, any>;
497
547
 
498
- declare const __VLS_component_15: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
548
+ declare const __VLS_component_16: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
499
549
  "update:theme": (value: string) => any;
500
550
  "update:colorMode": (value: ColorMode) => any;
501
551
  }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
@@ -506,11 +556,11 @@ targetElement: string;
506
556
  storageKey: string;
507
557
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
508
558
 
509
- declare const __VLS_component_16: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
559
+ declare const __VLS_component_17: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
510
560
  align: "left" | "center" | "right" | string;
511
561
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
512
562
 
513
- declare const __VLS_component_17: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
563
+ declare const __VLS_component_18: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
514
564
  "update:visible": (value: boolean) => any;
515
565
  } & {
516
566
  refresh: (tab: "installed" | "market") => any;
@@ -537,9 +587,9 @@ onRefresh?: ((tab: "installed" | "market") => any) | undefined;
537
587
  }>, {
538
588
  title: string;
539
589
  loading: boolean;
590
+ searchPlaceholder: string;
540
591
  installedPlugins: PluginInfo[];
541
592
  marketPlugins: PluginInfo[];
542
- searchPlaceholder: string;
543
593
  enableSearch: boolean;
544
594
  installedSearchFn: (query: string, item: PluginInfo) => boolean;
545
595
  marketSearchFn: (query: string, item: PluginInfo) => boolean;
@@ -561,13 +611,57 @@ allowPluginAdd: boolean;
561
611
  marketLoading: boolean;
562
612
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
563
613
 
564
- declare const __VLS_component_18: DefineComponent<ActionButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ActionButtonProps> & Readonly<{}>, {
614
+ declare const __VLS_component_19: DefineComponent<ExtensionCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
615
+ action: (payload: ExtensionCardActionEvent) => any;
616
+ "name-click": (event: MouseEvent | KeyboardEvent) => any;
617
+ }, string, PublicProps, Readonly<ExtensionCardProps> & Readonly<{
618
+ onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
619
+ "onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
620
+ }>, {
621
+ actions: ExtensionCardAction[];
622
+ primaryActionsLimit: number;
623
+ nameClickable: boolean;
624
+ overflowMenuLabel: string;
625
+ overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
626
+ overflowMenuShowIcons: boolean;
627
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
628
+
629
+ declare const __VLS_component_2: DefineComponent<BubbleListProps, {
630
+ scrollToBottom: (behavior?: ScrollBehavior) => Promise<void>;
631
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
632
+ "state-change": (payload: BubbleStateChangePayload) => any;
633
+ "bubble-event": (payload: BubbleEventPayload) => any;
634
+ }, string, PublicProps, Readonly<BubbleListProps> & Readonly<{
635
+ "onState-change"?: ((payload: BubbleStateChangePayload) => any) | undefined;
636
+ "onBubble-event"?: ((payload: BubbleEventPayload) => any) | undefined;
637
+ }>, {
638
+ contentResolver: (message: BubbleMessage) => ChatMessageContent | undefined;
639
+ groupStrategy: "consecutive" | "divider" | ((messages: BubbleMessage[], dividerRole?: string) => BubbleMessageGroup[]);
640
+ dividerRole: string;
641
+ fallbackRole: string;
642
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
643
+ listRef: HTMLDivElement;
644
+ }, HTMLDivElement>;
645
+
646
+ declare const __VLS_component_20: DefineComponent<ExtensionCardGridProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
647
+ action: (payload: ExtensionCardGridActionEvent) => any;
648
+ "name-click": (payload: ExtensionCardGridNameClickEvent) => any;
649
+ }, string, PublicProps, Readonly<ExtensionCardGridProps> & Readonly<{
650
+ onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
651
+ "onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
652
+ }>, {
653
+ emptyText: string;
654
+ nameClickable: boolean;
655
+ overflowMenuShowIcons: boolean;
656
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLUListElement>;
657
+
658
+ declare const __VLS_component_21: DefineComponent<ActionButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ActionButtonProps> & Readonly<{}>, {
565
659
  disabled: boolean;
566
660
  active: boolean;
567
661
  tooltipPlacement: TooltipPlacement;
568
662
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
569
663
 
570
- declare const __VLS_component_19: DefineComponent<VoiceButtonProps, {
664
+ declare const __VLS_component_22: DefineComponent<VoiceButtonProps, {
571
665
  start: () => void;
572
666
  stop: () => void;
573
667
  speechState: SpeechState;
@@ -588,24 +682,7 @@ tooltipPlacement: TooltipPlacement;
588
682
  autoInsert: boolean;
589
683
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
590
684
 
591
- declare const __VLS_component_2: DefineComponent<BubbleListProps, {
592
- scrollToBottom: (behavior?: ScrollBehavior) => Promise<void>;
593
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
594
- "state-change": (payload: BubbleStateChangePayload) => any;
595
- "bubble-event": (payload: BubbleEventPayload) => any;
596
- }, string, PublicProps, Readonly<BubbleListProps> & Readonly<{
597
- "onState-change"?: ((payload: BubbleStateChangePayload) => any) | undefined;
598
- "onBubble-event"?: ((payload: BubbleEventPayload) => any) | undefined;
599
- }>, {
600
- contentResolver: (message: BubbleMessage) => ChatMessageContent | undefined;
601
- groupStrategy: "consecutive" | "divider" | ((messages: BubbleMessage[], dividerRole?: string) => BubbleMessageGroup[]);
602
- dividerRole: string;
603
- fallbackRole: string;
604
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
605
- listRef: HTMLDivElement;
606
- }, HTMLDivElement>;
607
-
608
- declare const __VLS_component_20: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
685
+ declare const __VLS_component_23: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
609
686
 
610
687
  declare const __VLS_component_3: DefineComponent<BubbleProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
611
688
 
@@ -782,7 +859,7 @@ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
782
859
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
783
860
  };
784
861
  $forceUpdate: () => void;
785
- $nextTick: nextTick;
862
+ $nextTick: typeof nextTick;
786
863
  $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;
787
864
  } & Readonly<{
788
865
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
@@ -1015,64 +1092,34 @@ declare function __VLS_template(): {
1015
1092
  };
1016
1093
 
1017
1094
  declare function __VLS_template_10(): {
1095
+ attrs: Partial<{}>;
1096
+ slots: Readonly<ModelSelectorSlots> & ModelSelectorSlots;
1097
+ refs: {
1098
+ referenceEl: HTMLSpanElement;
1099
+ floatingEl: HTMLDivElement;
1100
+ };
1101
+ rootEl: HTMLDivElement;
1102
+ };
1103
+
1104
+ declare function __VLS_template_11(): {
1018
1105
  attrs: Partial<{}>;
1019
1106
  slots: Readonly<PromptsSlots> & PromptsSlots;
1020
1107
  refs: {};
1021
1108
  rootEl: HTMLDivElement;
1022
1109
  };
1023
1110
 
1024
- declare function __VLS_template_11(): {
1111
+ declare function __VLS_template_12(): {
1025
1112
  attrs: Partial<{}>;
1026
1113
  slots: {
1027
1114
  header?(_: {}): any;
1028
1115
  prefix?(_: {}): any;
1029
1116
  content?(_: {
1030
- editor: unknown;
1031
- }): any;
1032
- actions?(_: {
1033
- editor: Editor_2 | undefined;
1034
- focus: () => void;
1035
- blur: () => void;
1036
- insert: (content: string) => void;
1037
- append: (content: string) => void;
1038
- replace: (content: string) => void;
1039
- disabled: boolean;
1040
- loading: boolean;
1041
- hasContent: boolean;
1042
- }): any;
1043
- 'footer-left'?(_: {
1044
- editor: Editor_2 | undefined;
1045
- focus: () => void;
1046
- blur: () => void;
1047
- insert: (content: string) => void;
1048
- append: (content: string) => void;
1049
- replace: (content: string) => void;
1050
- disabled: boolean;
1051
- loading: boolean;
1052
- hasContent: boolean;
1053
- }): any;
1054
- footer?(_: {
1055
- editor: Editor_2 | undefined;
1056
- focus: () => void;
1057
- blur: () => void;
1058
- insert: (content: string) => void;
1059
- append: (content: string) => void;
1060
- replace: (content: string) => void;
1061
- disabled: boolean;
1062
- loading: boolean;
1063
- hasContent: boolean;
1064
- }): any;
1065
- 'footer-right'?(_: {
1066
- editor: Editor_2 | undefined;
1067
- focus: () => void;
1068
- blur: () => void;
1069
- insert: (content: string) => void;
1070
- append: (content: string) => void;
1071
- replace: (content: string) => void;
1072
- disabled: boolean;
1073
- loading: boolean;
1074
- hasContent: boolean;
1117
+ editor: Ref<Editor | undefined, Editor | undefined>;
1075
1118
  }): any;
1119
+ actions?(_: {}): any;
1120
+ 'footer-left'?(_: {}): any;
1121
+ footer?(_: {}): any;
1122
+ 'footer-right'?(_: {}): any;
1076
1123
  };
1077
1124
  refs: {
1078
1125
  senderRef: ({
@@ -1198,7 +1245,21 @@ declare function __VLS_template_11(): {
1198
1245
  getContent: () => string;
1199
1246
  editor: Editor | undefined;
1200
1247
  } & {} & ComponentCustomProperties & {} & {
1201
- $slots: Readonly<SenderSlots> & SenderSlots;
1248
+ $slots: {
1249
+ header?(_: {}): any;
1250
+ header?(_: {}): any;
1251
+ prefix?(_: {}): any;
1252
+ prefix?(_: {}): any;
1253
+ content?(_: {
1254
+ editor: Editor | undefined;
1255
+ }): any;
1256
+ content?(_: {
1257
+ editor: Ref<Editor | undefined, Editor | undefined>;
1258
+ }): any;
1259
+ 'actions-inline'?(_: {}): any;
1260
+ footer?(_: {}): any;
1261
+ 'footer-right'?(_: {}): any;
1262
+ };
1202
1263
  }) | null;
1203
1264
  voiceRef: ({
1204
1265
  $: ComponentInternalInstance;
@@ -1298,14 +1359,14 @@ declare function __VLS_template_11(): {
1298
1359
  rootEl: HTMLDivElement;
1299
1360
  };
1300
1361
 
1301
- declare function __VLS_template_12(): {
1362
+ declare function __VLS_template_13(): {
1302
1363
  attrs: Partial<{}>;
1303
1364
  slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1304
1365
  refs: {};
1305
1366
  rootEl: HTMLButtonElement;
1306
1367
  };
1307
1368
 
1308
- declare function __VLS_template_13(): {
1369
+ declare function __VLS_template_14(): {
1309
1370
  attrs: Partial<{}>;
1310
1371
  slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1311
1372
  refs: {
@@ -1318,7 +1379,7 @@ declare function __VLS_template_13(): {
1318
1379
  rootEl: HTMLDivElement;
1319
1380
  };
1320
1381
 
1321
- declare function __VLS_template_14(): {
1382
+ declare function __VLS_template_15(): {
1322
1383
  attrs: Partial<{}>;
1323
1384
  slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
1324
1385
  refs: {
@@ -1435,7 +1496,7 @@ declare function __VLS_template_14(): {
1435
1496
  rootEl: any;
1436
1497
  };
1437
1498
 
1438
- declare function __VLS_template_15(): {
1499
+ declare function __VLS_template_16(): {
1439
1500
  attrs: Partial<{}>;
1440
1501
  slots: {
1441
1502
  default?(_: {}): any;
@@ -1444,14 +1505,14 @@ declare function __VLS_template_15(): {
1444
1505
  rootEl: any;
1445
1506
  };
1446
1507
 
1447
- declare function __VLS_template_16(): {
1508
+ declare function __VLS_template_17(): {
1448
1509
  attrs: Partial<{}>;
1449
1510
  slots: Readonly<WelcomeSlots> & WelcomeSlots;
1450
1511
  refs: {};
1451
1512
  rootEl: HTMLDivElement;
1452
1513
  };
1453
1514
 
1454
- declare function __VLS_template_17(): {
1515
+ declare function __VLS_template_18(): {
1455
1516
  attrs: Partial<{}>;
1456
1517
  slots: {
1457
1518
  'header-actions'?(_: {}): any;
@@ -1460,7 +1521,30 @@ declare function __VLS_template_17(): {
1460
1521
  rootEl: any;
1461
1522
  };
1462
1523
 
1463
- declare function __VLS_template_18(): {
1524
+ declare function __VLS_template_19(): {
1525
+ attrs: Partial<{}>;
1526
+ slots: Readonly<ExtensionCardSlots> & ExtensionCardSlots;
1527
+ refs: {};
1528
+ rootEl: HTMLDivElement;
1529
+ };
1530
+
1531
+ declare function __VLS_template_2(): {
1532
+ attrs: Partial<{}>;
1533
+ slots: Readonly<BubbleListSlots> & BubbleListSlots;
1534
+ refs: {
1535
+ listRef: HTMLDivElement;
1536
+ };
1537
+ rootEl: HTMLDivElement;
1538
+ };
1539
+
1540
+ declare function __VLS_template_20(): {
1541
+ attrs: Partial<{}>;
1542
+ slots: Readonly<ExtensionCardGridSlots> & ExtensionCardGridSlots;
1543
+ refs: {};
1544
+ rootEl: HTMLUListElement;
1545
+ };
1546
+
1547
+ declare function __VLS_template_21(): {
1464
1548
  attrs: Partial<{}>;
1465
1549
  slots: {
1466
1550
  icon?(_: {}): any;
@@ -1470,7 +1554,7 @@ declare function __VLS_template_18(): {
1470
1554
  rootEl: any;
1471
1555
  };
1472
1556
 
1473
- declare function __VLS_template_19(): {
1557
+ declare function __VLS_template_22(): {
1474
1558
  attrs: Partial<{}>;
1475
1559
  slots: {
1476
1560
  icon?(_: {
@@ -1485,16 +1569,7 @@ declare function __VLS_template_19(): {
1485
1569
  rootEl: any;
1486
1570
  };
1487
1571
 
1488
- declare function __VLS_template_2(): {
1489
- attrs: Partial<{}>;
1490
- slots: Readonly<BubbleListSlots> & BubbleListSlots;
1491
- refs: {
1492
- listRef: HTMLDivElement;
1493
- };
1494
- rootEl: HTMLDivElement;
1495
- };
1496
-
1497
- declare function __VLS_template_20(): {
1572
+ declare function __VLS_template_23(): {
1498
1573
  attrs: Partial<{}>;
1499
1574
  slots: {
1500
1575
  prepend?(_: {}): any;
@@ -1668,7 +1743,7 @@ declare function __VLS_template_7(): {
1668
1743
  errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1669
1744
  };
1670
1745
  $forceUpdate: () => void;
1671
- $nextTick: nextTick;
1746
+ $nextTick: typeof nextTick;
1672
1747
  $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;
1673
1748
  } & Readonly<{
1674
1749
  placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
@@ -1827,6 +1902,12 @@ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1827
1902
 
1828
1903
  declare type __VLS_TemplateResult_20 = ReturnType<typeof __VLS_template_20>;
1829
1904
 
1905
+ declare type __VLS_TemplateResult_21 = ReturnType<typeof __VLS_template_21>;
1906
+
1907
+ declare type __VLS_TemplateResult_22 = ReturnType<typeof __VLS_template_22>;
1908
+
1909
+ declare type __VLS_TemplateResult_23 = ReturnType<typeof __VLS_template_23>;
1910
+
1830
1911
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
1831
1912
 
1832
1913
  declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
@@ -1919,6 +2000,24 @@ declare type __VLS_WithTemplateSlots_20<T, S> = T & {
1919
2000
  };
1920
2001
  };
1921
2002
 
2003
+ declare type __VLS_WithTemplateSlots_21<T, S> = T & {
2004
+ new (): {
2005
+ $slots: S;
2006
+ };
2007
+ };
2008
+
2009
+ declare type __VLS_WithTemplateSlots_22<T, S> = T & {
2010
+ new (): {
2011
+ $slots: S;
2012
+ };
2013
+ };
2014
+
2015
+ declare type __VLS_WithTemplateSlots_23<T, S> = T & {
2016
+ new (): {
2017
+ $slots: S;
2018
+ };
2019
+ };
2020
+
1922
2021
  declare type __VLS_WithTemplateSlots_3<T, S> = T & {
1923
2022
  new (): {
1924
2023
  $slots: S;
@@ -2382,17 +2481,11 @@ export declare const BubbleRenderers: {
2382
2481
  contentIndex: number;
2383
2482
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2384
2483
  Tool: DefineComponent<BubbleContentRendererProps<ChatMessageContent, {
2385
- toolCall?: Record<string, {
2386
- status?: ToolCallStatus;
2387
- open?: boolean;
2388
- }>;
2484
+ toolCall?: Record<string, ToolCallState>;
2389
2485
  }> & {
2390
2486
  toolCallIndex: number;
2391
2487
  }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleContentRendererProps<ChatMessageContent, {
2392
- toolCall?: Record<string, {
2393
- status?: ToolCallStatus;
2394
- open?: boolean;
2395
- }>;
2488
+ toolCall?: Record<string, ToolCallState>;
2396
2489
  }> & {
2397
2490
  toolCallIndex: number;
2398
2491
  }> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -2484,6 +2577,15 @@ declare interface CompatTextItem {
2484
2577
  content: string;
2485
2578
  }
2486
2579
 
2580
+ /**
2581
+ * @deprecated Container is kept for compatibility. Use `Layout` (`TrLayout`) for new layouts.
2582
+ */
2583
+ declare const Container: typeof _default_29 & {
2584
+ install: typeof install_2;
2585
+ };
2586
+ export { Container }
2587
+ export { Container as TrContainer }
2588
+
2487
2589
  export declare interface ContainerEmits {
2488
2590
  (e: 'close'): void;
2489
2591
  }
@@ -2518,55 +2620,59 @@ declare const _default: {
2518
2620
  };
2519
2621
  export default _default;
2520
2622
 
2521
- declare const _default_10: typeof _default_36 & {
2522
- install: typeof install_9;
2623
+ declare const _default_10: typeof _default_40 & {
2624
+ install: typeof install_10;
2523
2625
  };
2524
- export { _default_10 as IconButton }
2525
- export { _default_10 as TrIconButton }
2626
+ export { _default_10 as ModelSelector }
2627
+ export { _default_10 as TrModelSelector }
2526
2628
 
2527
- declare const _default_11: typeof _default_42 & {
2528
- install: typeof install_10;
2629
+ declare const _default_11: typeof _default_43 & {
2630
+ install: typeof install_11;
2529
2631
  };
2530
2632
  export { _default_11 as SenderCompat }
2531
2633
  export { _default_11 as TrSenderCompat }
2532
2634
 
2533
- declare const _default_12: typeof _default_44 & {
2534
- install: typeof install_11;
2635
+ declare const _default_12: typeof _default_45 & {
2636
+ install: typeof install_12;
2535
2637
  };
2536
2638
  export { _default_12 as SuggestionPills }
2537
2639
  export { _default_12 as TrSuggestionPills }
2538
2640
 
2539
- declare const _default_13: typeof _default_45 & {
2540
- install: typeof install_12;
2641
+ declare const _default_13: typeof _default_46 & {
2642
+ install: typeof install_13;
2541
2643
  };
2542
2644
  export { _default_13 as SuggestionPopover }
2543
2645
  export { _default_13 as TrSuggestionPopover }
2544
2646
 
2545
- declare const _default_14: typeof _default_46 & {
2546
- install: typeof install_13;
2647
+ declare const _default_14: typeof _default_47 & {
2648
+ install: typeof install_14;
2547
2649
  };
2548
2650
  export { _default_14 as ThemeProvider }
2549
2651
  export { _default_14 as TrThemeProvider }
2550
2652
 
2551
- declare const _default_15: typeof _default_47 & {
2552
- install: typeof install_14;
2653
+ declare const _default_15: typeof _default_48 & {
2654
+ install: typeof install_15;
2553
2655
  };
2554
2656
  export { _default_15 as TrWelcome }
2555
2657
  export { _default_15 as Welcome }
2556
2658
 
2557
- declare const _default_16: typeof _default_48 & {
2558
- install: typeof install_15;
2659
+ /**
2660
+ * @deprecated Use ExtensionManager and its Card/CardGrid namespace components instead.
2661
+ * This entry point remains available for compatibility and will be removed in a future major release.
2662
+ */
2663
+ declare const _default_16: typeof _default_49 & {
2664
+ install: typeof install_16;
2559
2665
  };
2560
2666
  export { _default_16 as McpServerPicker }
2561
2667
  export { _default_16 as TrMcpServerPicker }
2562
2668
 
2563
- declare const _default_17: typeof _default_49 & {
2564
- install: typeof install_16;
2669
+ declare const _default_17: typeof _default_50 & {
2670
+ install: typeof install_17;
2565
2671
  };
2566
2672
  export { _default_17 as McpAddForm }
2567
2673
  export { _default_17 as TrMcpAddForm }
2568
2674
 
2569
- declare const _default_18: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
2675
+ declare const _default_18: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
2570
2676
  export { _default_18 as ActionButton }
2571
2677
  export { _default_18 as TrActionButton }
2572
2678
 
@@ -2585,7 +2691,7 @@ export { _default_20 as ClearButton }
2585
2691
  export { _default_20 as TrClearButton }
2586
2692
 
2587
2693
  declare const _default_21: DefineComponent<UploadButtonProps, {
2588
- open: (options?: Parameters<typeof openFileDialog>[0]) => void;
2694
+ open: (localOptions?: Partial<UseFileDialogOptions>) => void;
2589
2695
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2590
2696
  error: (error: Error, files?: File[] | undefined) => any;
2591
2697
  select: (files: File[]) => any;
@@ -2601,7 +2707,7 @@ accept: string;
2601
2707
  export { _default_21 as TrUploadButton }
2602
2708
  export { _default_21 as UploadButton }
2603
2709
 
2604
- declare const _default_22: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
2710
+ declare const _default_22: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
2605
2711
  export { _default_22 as TrVoiceButton }
2606
2712
  export { _default_22 as VoiceButton }
2607
2713
 
@@ -2609,7 +2715,7 @@ declare const _default_23: DefineComponent< {}, {}, {}, {}, {}, ComponentOpti
2609
2715
  export { _default_23 as TrWordCounter }
2610
2716
  export { _default_23 as WordCounter }
2611
2717
 
2612
- declare const _default_24: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
2718
+ declare const _default_24: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
2613
2719
  export { _default_24 as DefaultActionButtons }
2614
2720
  export { _default_24 as TrDefaultActionButtons }
2615
2721
 
@@ -2647,11 +2753,11 @@ declare const _default_28: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, _
2647
2753
 
2648
2754
  declare const _default_29: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2649
2755
 
2650
- declare const _default_3: typeof _default_29 & {
2651
- install: typeof install_2;
2756
+ declare const _default_3: typeof _default_30 & {
2757
+ install: typeof install_3;
2652
2758
  };
2653
- export { _default_3 as Container }
2654
- export { _default_3 as TrContainer }
2759
+ export { _default_3 as Anchor }
2760
+ export { _default_3 as TrAnchor }
2655
2761
 
2656
2762
  declare const _default_30: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2657
2763
 
@@ -2701,18 +2807,18 @@ thumbRef: HTMLDivElement;
2701
2807
 
2702
2808
  declare const _default_39: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2703
2809
 
2704
- declare const _default_4: typeof _default_30 & {
2705
- install: typeof install_3;
2810
+ declare const _default_4: typeof _default_31 & {
2811
+ install: typeof install_4;
2706
2812
  };
2707
- export { _default_4 as Anchor }
2708
- export { _default_4 as TrAnchor }
2813
+ export { _default_4 as Conversations }
2814
+ export { _default_4 as TrConversations }
2815
+
2816
+ declare const _default_40: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2709
2817
 
2710
- declare const _default_40: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2818
+ declare const _default_41: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2711
2819
  size: "small" | "medium" | "large";
2712
2820
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2713
2821
 
2714
- declare const _default_41: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2715
-
2716
2822
  declare const _default_42: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2717
2823
 
2718
2824
  declare const _default_43: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
@@ -2727,7 +2833,15 @@ declare const _default_47: __VLS_WithTemplateSlots_16<typeof __VLS_component_16,
2727
2833
 
2728
2834
  declare const _default_48: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
2729
2835
 
2730
- declare const _default_49: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2836
+ declare const _default_49: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
2837
+
2838
+ declare const _default_5: typeof _default_32 & {
2839
+ install: typeof install_5;
2840
+ };
2841
+ export { _default_5 as DragOverlay }
2842
+ export { _default_5 as TrDragOverlay }
2843
+
2844
+ declare const _default_50: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2731
2845
  cancel: () => any;
2732
2846
  confirm: (type: AddType, data: string | McpAddFormData) => any;
2733
2847
  "update:addType": (value: AddType) => any;
@@ -2739,35 +2853,33 @@ onConfirm?: ((type: AddType, data: string | McpAddFormData) => any) | undefined;
2739
2853
  addType: AddType;
2740
2854
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2741
2855
 
2742
- declare const _default_5: typeof _default_31 & {
2743
- install: typeof install_4;
2744
- };
2745
- export { _default_5 as Conversations }
2746
- export { _default_5 as TrConversations }
2856
+ declare const _default_51: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
2747
2857
 
2748
- declare const _default_6: typeof _default_32 & {
2749
- install: typeof install_5;
2750
- };
2751
- export { _default_6 as DragOverlay }
2752
- export { _default_6 as TrDragOverlay }
2858
+ declare const _default_52: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
2753
2859
 
2754
- declare const _default_7: typeof _default_33 & {
2860
+ declare const _default_6: typeof _default_33 & {
2755
2861
  install: typeof install_6;
2756
2862
  };
2757
- export { _default_7 as DropdownMenu }
2758
- export { _default_7 as TrDropdownMenu }
2863
+ export { _default_6 as DropdownMenu }
2864
+ export { _default_6 as TrDropdownMenu }
2759
2865
 
2760
- declare const _default_8: typeof _default_34 & {
2866
+ declare const _default_7: typeof _default_34 & {
2761
2867
  install: typeof install_7;
2762
2868
  };
2763
- export { _default_8 as Feedback }
2764
- export { _default_8 as TrFeedback }
2869
+ export { _default_7 as Feedback }
2870
+ export { _default_7 as TrFeedback }
2765
2871
 
2766
- declare const _default_9: typeof _default_35 & {
2872
+ declare const _default_8: typeof _default_35 & {
2767
2873
  install: typeof install_8;
2768
2874
  };
2769
- export { _default_9 as History }
2770
- export { _default_9 as TrHistory }
2875
+ export { _default_8 as History }
2876
+ export { _default_8 as TrHistory }
2877
+
2878
+ declare const _default_9: typeof _default_36 & {
2879
+ install: typeof install_9;
2880
+ };
2881
+ export { _default_9 as IconButton }
2882
+ export { _default_9 as TrIconButton }
2771
2883
 
2772
2884
  /**
2773
2885
  * 默认操作按钮配置
@@ -2825,6 +2937,9 @@ export declare interface DefaultActions {
2825
2937
 
2826
2938
  export declare type DisplayVariant = 'picture' | 'card' | 'auto';
2827
2939
 
2940
+ /** Actions passed from Card to its internal renderers after visibility is resolved. */
2941
+ declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
2942
+
2828
2943
  declare interface DragAwareElement extends HTMLElement {
2829
2944
  __vDropzoneHandlers__?: Handlers;
2830
2945
  __vDropzoneOptions__?: DragAwareOptions;
@@ -3002,6 +3117,348 @@ export declare interface DropzoneBinding {
3002
3117
  */
3003
3118
  export declare type EnterKeyHint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
3004
3119
 
3120
+ declare const ExtensionCard: typeof _default_51 & {
3121
+ install: typeof extensionCardInstall;
3122
+ };
3123
+ export { ExtensionCard }
3124
+ export { ExtensionCard as TrExtensionCard }
3125
+
3126
+ export declare type ExtensionCardAction = ExtensionCardSwitchAction | ExtensionCardButtonAction | ExtensionCardCustomAction;
3127
+
3128
+ export declare interface ExtensionCardActionBase {
3129
+ id: string;
3130
+ label: string;
3131
+ icon?: Component;
3132
+ hidden?: boolean;
3133
+ disabled?: boolean;
3134
+ danger?: boolean;
3135
+ }
3136
+
3137
+ export declare interface ExtensionCardActionEvent {
3138
+ id: string;
3139
+ type: ExtensionCardAction['type'];
3140
+ checked?: boolean;
3141
+ payload?: unknown;
3142
+ }
3143
+
3144
+ export declare interface ExtensionCardButtonAction extends ExtensionCardActionBase {
3145
+ type: 'button';
3146
+ }
3147
+
3148
+ export declare interface ExtensionCardCustomAction extends ExtensionCardActionBase {
3149
+ type: 'custom';
3150
+ data?: unknown;
3151
+ }
3152
+
3153
+ export declare interface ExtensionCardEmits {
3154
+ (e: 'name-click', event: MouseEvent | KeyboardEvent): void;
3155
+ (e: 'action', payload: ExtensionCardActionEvent): void;
3156
+ }
3157
+
3158
+ declare const ExtensionCardGrid: typeof _default_52 & {
3159
+ install: typeof extensionCardGridInstall;
3160
+ };
3161
+ export { ExtensionCardGrid }
3162
+ export { ExtensionCardGrid as TrExtensionCardGrid }
3163
+
3164
+ export declare interface ExtensionCardGridActionEvent {
3165
+ itemId: string;
3166
+ action: ExtensionCardActionEvent;
3167
+ }
3168
+
3169
+ export declare interface ExtensionCardGridEmits {
3170
+ (e: 'action', payload: ExtensionCardGridActionEvent): void;
3171
+ (e: 'name-click', payload: ExtensionCardGridNameClickEvent): void;
3172
+ }
3173
+
3174
+ declare const extensionCardGridInstall: <T>(app: App<T>) => void;
3175
+
3176
+ export declare type ExtensionCardGridItem = ExtensionCardProps & {
3177
+ id: string;
3178
+ };
3179
+
3180
+ export declare interface ExtensionCardGridNameClickEvent {
3181
+ itemId: string;
3182
+ event: MouseEvent | KeyboardEvent;
3183
+ }
3184
+
3185
+ export declare interface ExtensionCardGridProps extends Pick<ExtensionCardProps, 'primaryActionsLimit' | 'nameClickable' | 'overflowMenuLabel' | 'overflowMenuPlacement' | 'overflowMenuShowIcons'> {
3186
+ items: ExtensionCardGridItem[];
3187
+ emptyText?: string;
3188
+ }
3189
+
3190
+ export declare interface ExtensionCardGridSlots {
3191
+ item?: (props: {
3192
+ item: ExtensionCardGridItem;
3193
+ index: number;
3194
+ }) => VNode[];
3195
+ empty?: () => VNode[];
3196
+ }
3197
+
3198
+ declare const extensionCardInstall: <T>(app: App<T>) => void;
3199
+
3200
+ export declare type ExtensionCardOverflowMenuPlacement = 'bottom-end' | 'top-end';
3201
+
3202
+ export declare interface ExtensionCardProps {
3203
+ name: string;
3204
+ description?: string;
3205
+ icon?: string | Component;
3206
+ actions?: ExtensionCardAction[];
3207
+ primaryActionsLimit?: number;
3208
+ progress?: number | 'indeterminate';
3209
+ nameClickable?: boolean;
3210
+ overflowMenuLabel?: string;
3211
+ overflowMenuPlacement?: ExtensionCardOverflowMenuPlacement;
3212
+ overflowMenuShowIcons?: boolean;
3213
+ }
3214
+
3215
+ export declare type ExtensionCardRenderableAction = DistributiveOmit<ExtensionCardAction, 'hidden'>;
3216
+
3217
+ export declare interface ExtensionCardSlots {
3218
+ 'primary-action'?: (props: {
3219
+ action: Extract<ExtensionCardRenderableAction, {
3220
+ type: 'custom';
3221
+ }>;
3222
+ trigger: (payload?: unknown) => void;
3223
+ }) => VNode[];
3224
+ }
3225
+
3226
+ export declare interface ExtensionCardSwitchAction extends ExtensionCardActionBase {
3227
+ type: 'switch';
3228
+ checked: boolean;
3229
+ }
3230
+
3231
+ declare const ExtensionManager: {
3232
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtensionManagerProps> & Readonly<{
3233
+ onAction?: ((event: ExtensionManagerActionEvent) => any) | undefined;
3234
+ "onTab-change"?: ((event: ExtensionManagerTabChangeEvent) => any) | undefined;
3235
+ "onName-click"?: ((event: ExtensionManagerNameClickEvent) => any) | undefined;
3236
+ "onUpdate:active-tab"?: ((tabId: string | undefined) => any) | undefined;
3237
+ "onSection-toggle"?: ((event: ExtensionManagerSectionToggleEvent) => any) | undefined;
3238
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3239
+ action: (event: ExtensionManagerActionEvent) => any;
3240
+ "tab-change": (event: ExtensionManagerTabChangeEvent) => any;
3241
+ "name-click": (event: ExtensionManagerNameClickEvent) => any;
3242
+ "update:active-tab": (tabId: string | undefined) => any;
3243
+ "section-toggle": (event: ExtensionManagerSectionToggleEvent) => any;
3244
+ }, PublicProps, {
3245
+ emptyText: string;
3246
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
3247
+ P: {};
3248
+ B: {};
3249
+ D: {};
3250
+ C: {};
3251
+ M: {};
3252
+ Defaults: {};
3253
+ }, Readonly<ExtensionManagerProps> & Readonly<{
3254
+ onAction?: ((event: ExtensionManagerActionEvent) => any) | undefined;
3255
+ "onTab-change"?: ((event: ExtensionManagerTabChangeEvent) => any) | undefined;
3256
+ "onName-click"?: ((event: ExtensionManagerNameClickEvent) => any) | undefined;
3257
+ "onUpdate:active-tab"?: ((tabId: string | undefined) => any) | undefined;
3258
+ "onSection-toggle"?: ((event: ExtensionManagerSectionToggleEvent) => any) | undefined;
3259
+ }>, {}, {}, {}, {}, {
3260
+ emptyText: string;
3261
+ }>;
3262
+ __isFragment?: never;
3263
+ __isTeleport?: never;
3264
+ __isSuspense?: never;
3265
+ } & ComponentOptionsBase<Readonly<ExtensionManagerProps> & Readonly<{
3266
+ onAction?: ((event: ExtensionManagerActionEvent) => any) | undefined;
3267
+ "onTab-change"?: ((event: ExtensionManagerTabChangeEvent) => any) | undefined;
3268
+ "onName-click"?: ((event: ExtensionManagerNameClickEvent) => any) | undefined;
3269
+ "onUpdate:active-tab"?: ((tabId: string | undefined) => any) | undefined;
3270
+ "onSection-toggle"?: ((event: ExtensionManagerSectionToggleEvent) => any) | undefined;
3271
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3272
+ action: (event: ExtensionManagerActionEvent) => any;
3273
+ "tab-change": (event: ExtensionManagerTabChangeEvent) => any;
3274
+ "name-click": (event: ExtensionManagerNameClickEvent) => any;
3275
+ "update:active-tab": (tabId: string | undefined) => any;
3276
+ "section-toggle": (event: ExtensionManagerSectionToggleEvent) => any;
3277
+ }, string, {
3278
+ emptyText: string;
3279
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3280
+ $slots: Readonly<ExtensionManagerSlots> & ExtensionManagerSlots;
3281
+ }) & {
3282
+ install: <T>(app: App<T>) => void;
3283
+ Card: {
3284
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtensionCardProps> & Readonly<{
3285
+ onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
3286
+ "onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
3287
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3288
+ action: (payload: ExtensionCardActionEvent) => any;
3289
+ "name-click": (event: MouseEvent | KeyboardEvent) => any;
3290
+ }, PublicProps, {
3291
+ actions: ExtensionCardAction[];
3292
+ primaryActionsLimit: number;
3293
+ nameClickable: boolean;
3294
+ overflowMenuLabel: string;
3295
+ overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
3296
+ overflowMenuShowIcons: boolean;
3297
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
3298
+ P: {};
3299
+ B: {};
3300
+ D: {};
3301
+ C: {};
3302
+ M: {};
3303
+ Defaults: {};
3304
+ }, Readonly<ExtensionCardProps> & Readonly<{
3305
+ onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
3306
+ "onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
3307
+ }>, {}, {}, {}, {}, {
3308
+ actions: ExtensionCardAction[];
3309
+ primaryActionsLimit: number;
3310
+ nameClickable: boolean;
3311
+ overflowMenuLabel: string;
3312
+ overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
3313
+ overflowMenuShowIcons: boolean;
3314
+ }>;
3315
+ __isFragment?: never;
3316
+ __isTeleport?: never;
3317
+ __isSuspense?: never;
3318
+ } & ComponentOptionsBase<Readonly<ExtensionCardProps> & Readonly<{
3319
+ onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
3320
+ "onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
3321
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3322
+ action: (payload: ExtensionCardActionEvent) => any;
3323
+ "name-click": (event: MouseEvent | KeyboardEvent) => any;
3324
+ }, string, {
3325
+ actions: ExtensionCardAction[];
3326
+ primaryActionsLimit: number;
3327
+ nameClickable: boolean;
3328
+ overflowMenuLabel: string;
3329
+ overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
3330
+ overflowMenuShowIcons: boolean;
3331
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3332
+ $slots: Readonly<ExtensionCardSlots> & ExtensionCardSlots;
3333
+ }) & {
3334
+ install: typeof extensionCardInstall;
3335
+ };
3336
+ CardGrid: {
3337
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtensionCardGridProps> & Readonly<{
3338
+ onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
3339
+ "onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
3340
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3341
+ action: (payload: ExtensionCardGridActionEvent) => any;
3342
+ "name-click": (payload: ExtensionCardGridNameClickEvent) => any;
3343
+ }, PublicProps, {
3344
+ emptyText: string;
3345
+ nameClickable: boolean;
3346
+ overflowMenuShowIcons: boolean;
3347
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLUListElement, ComponentProvideOptions, {
3348
+ P: {};
3349
+ B: {};
3350
+ D: {};
3351
+ C: {};
3352
+ M: {};
3353
+ Defaults: {};
3354
+ }, Readonly<ExtensionCardGridProps> & Readonly<{
3355
+ onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
3356
+ "onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
3357
+ }>, {}, {}, {}, {}, {
3358
+ emptyText: string;
3359
+ nameClickable: boolean;
3360
+ overflowMenuShowIcons: boolean;
3361
+ }>;
3362
+ __isFragment?: never;
3363
+ __isTeleport?: never;
3364
+ __isSuspense?: never;
3365
+ } & ComponentOptionsBase<Readonly<ExtensionCardGridProps> & Readonly<{
3366
+ onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
3367
+ "onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
3368
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
3369
+ action: (payload: ExtensionCardGridActionEvent) => any;
3370
+ "name-click": (payload: ExtensionCardGridNameClickEvent) => any;
3371
+ }, string, {
3372
+ emptyText: string;
3373
+ nameClickable: boolean;
3374
+ overflowMenuShowIcons: boolean;
3375
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3376
+ $slots: Readonly<ExtensionCardGridSlots> & ExtensionCardGridSlots;
3377
+ }) & {
3378
+ install: typeof extensionCardGridInstall;
3379
+ };
3380
+ };
3381
+ export { ExtensionManager }
3382
+ export { ExtensionManager as TrExtensionManager }
3383
+
3384
+ export declare interface ExtensionManagerActionEvent {
3385
+ tabId: string;
3386
+ sectionKey: ExtensionManagerSectionKey;
3387
+ itemId: string;
3388
+ action: ExtensionCardActionEvent;
3389
+ }
3390
+
3391
+ export declare interface ExtensionManagerEmits {
3392
+ (e: 'update:active-tab', tabId: string | undefined): void;
3393
+ (e: 'tab-change', event: ExtensionManagerTabChangeEvent): void;
3394
+ (e: 'section-toggle', event: ExtensionManagerSectionToggleEvent): void;
3395
+ (e: 'action', event: ExtensionManagerActionEvent): void;
3396
+ (e: 'name-click', event: ExtensionManagerNameClickEvent): void;
3397
+ }
3398
+
3399
+ export declare type ExtensionManagerItem = ExtensionCardGridItem & {
3400
+ installed?: boolean;
3401
+ tags?: string[];
3402
+ };
3403
+
3404
+ export declare interface ExtensionManagerNameClickEvent {
3405
+ tabId: string;
3406
+ sectionKey: ExtensionManagerSectionKey;
3407
+ itemId: string;
3408
+ event: MouseEvent | KeyboardEvent;
3409
+ }
3410
+
3411
+ export declare interface ExtensionManagerProps {
3412
+ tabs: ExtensionManagerTab[];
3413
+ activeTab?: string;
3414
+ defaultActiveTab?: string;
3415
+ title?: string;
3416
+ emptyText?: string;
3417
+ }
3418
+
3419
+ export declare type ExtensionManagerSectionKey = 'installed' | 'available';
3420
+
3421
+ export declare interface ExtensionManagerSectionToggleEvent {
3422
+ tabId: string;
3423
+ sectionKey: ExtensionManagerSectionKey;
3424
+ expanded: boolean;
3425
+ }
3426
+
3427
+ export declare interface ExtensionManagerSlots {
3428
+ 'header-actions'?: () => VNode[];
3429
+ tab?: (props: {
3430
+ tab: ExtensionManagerTab;
3431
+ active: boolean;
3432
+ select: () => void;
3433
+ }) => VNode[];
3434
+ item?: (props: {
3435
+ tab: ExtensionManagerTab;
3436
+ sectionKey: ExtensionManagerSectionKey;
3437
+ item: ExtensionCardGridItem;
3438
+ index: number;
3439
+ }) => VNode[];
3440
+ empty?: (props: {
3441
+ tab: ExtensionManagerTab;
3442
+ sectionKey: ExtensionManagerSectionKey;
3443
+ title: string;
3444
+ }) => VNode[];
3445
+ }
3446
+
3447
+ export declare interface ExtensionManagerTab {
3448
+ id: string;
3449
+ label: string;
3450
+ items: ExtensionManagerItem[];
3451
+ }
3452
+
3453
+ export declare interface ExtensionManagerTabChangeEvent {
3454
+ tabId: string;
3455
+ }
3456
+
3457
+ export declare interface ExtensionManagerTagOption {
3458
+ value: string;
3459
+ label: string;
3460
+ }
3461
+
3005
3462
  export declare interface FeedbackEvents {
3006
3463
  (e: 'operation', name: string): void;
3007
3464
  (e: 'action', name: string): void;
@@ -3154,6 +3611,8 @@ declare const install_15: <T>(app: App<T>) => void;
3154
3611
 
3155
3612
  declare const install_16: <T>(app: App<T>) => void;
3156
3613
 
3614
+ declare const install_17: <T>(app: App<T>) => void;
3615
+
3157
3616
  declare const install_2: <T>(app: App<T>) => void;
3158
3617
 
3159
3618
  declare const install_3: <T>(app: App<T>) => void;
@@ -3507,7 +3966,102 @@ declare type MentionStructuredItem = {
3507
3966
  value: string;
3508
3967
  };
3509
3968
 
3510
- declare const openFileDialog: (localOptions?: Partial<UseFileDialogOptions>) => void;
3969
+ export declare interface ModelSelectorEmits {
3970
+ (event: 'update:modelValue', value: string | null): void;
3971
+ (event: 'change', option: ModelSelectorOption): void;
3972
+ (event: 'update:reasoningEffort', value: string | null): void;
3973
+ (event: 'reasoning-effort-change', option: ModelSelectorReasoningEffortOption | null): void;
3974
+ (event: 'update:open', open: boolean): void;
3975
+ }
3976
+
3977
+ export declare interface ModelSelectorEmptySlotProps {
3978
+ query: string;
3979
+ }
3980
+
3981
+ export declare type ModelSelectorFilterMethod = (query: string, option: ModelSelectorOption) => boolean;
3982
+
3983
+ export declare interface ModelSelectorFooterSlotProps extends ModelSelectorSlotProps {
3984
+ reasoningEfforts: readonly ModelSelectorReasoningEffortOption[];
3985
+ /** The effort currently supported by the selected model. Sticky unsupported values resolve to null. */
3986
+ reasoningEffortOption: ModelSelectorReasoningEffortOption | null;
3987
+ setReasoningEffort: (value: string | null) => void;
3988
+ }
3989
+
3990
+ export declare interface ModelSelectorItemSlotProps {
3991
+ option: ModelSelectorOption;
3992
+ selected: boolean;
3993
+ highlighted: boolean;
3994
+ }
3995
+
3996
+ export declare interface ModelSelectorOption {
3997
+ value: string;
3998
+ label: string;
3999
+ description?: string;
4000
+ icon?: Component | string;
4001
+ disabled?: boolean;
4002
+ group?: string;
4003
+ reasoningEfforts?: ModelSelectorReasoningEfforts;
4004
+ }
4005
+
4006
+ export declare type ModelSelectorPanelClass = string | readonly string[] | Record<string, boolean>;
4007
+
4008
+ export declare interface ModelSelectorProps {
4009
+ models?: readonly ModelSelectorOption[];
4010
+ modelValue?: string | null;
4011
+ defaultValue?: string | null;
4012
+ reasoningEffort?: string | null;
4013
+ defaultReasoningEffort?: string | null;
4014
+ open?: boolean;
4015
+ defaultOpen?: boolean;
4016
+ closeOnSelect?: boolean;
4017
+ disabled?: boolean;
4018
+ searchable?: boolean;
4019
+ placeholder?: string;
4020
+ searchPlaceholder?: string;
4021
+ emptyText?: string;
4022
+ filterMethod?: ModelSelectorFilterMethod;
4023
+ variant?: ModelSelectorVariant;
4024
+ size?: ModelSelectorSize;
4025
+ placement?: Placement;
4026
+ offset?: number;
4027
+ appendTo?: string | HTMLElement;
4028
+ panelClass?: ModelSelectorPanelClass;
4029
+ reasoningEffortLabel?: string;
4030
+ }
4031
+
4032
+ export declare interface ModelSelectorReasoningEffortOption {
4033
+ readonly value: string;
4034
+ readonly label: string;
4035
+ readonly disabled?: boolean;
4036
+ }
4037
+
4038
+ export declare type ModelSelectorReasoningEfforts = boolean | readonly ModelSelectorReasoningEffortOption[];
4039
+
4040
+ export declare type ModelSelectorSize = 'small' | 'normal' | 'large';
4041
+
4042
+ export declare interface ModelSelectorSlotProps {
4043
+ option: ModelSelectorOption | null;
4044
+ query: string;
4045
+ close: () => void;
4046
+ }
4047
+
4048
+ export declare interface ModelSelectorSlots {
4049
+ trigger?: (props: ModelSelectorTriggerSlotProps) => VNode | VNode[];
4050
+ item?: (props: ModelSelectorItemSlotProps) => VNode | VNode[];
4051
+ empty?: (props: ModelSelectorEmptySlotProps) => VNode | VNode[];
4052
+ header?: (props: ModelSelectorSlotProps) => VNode | VNode[];
4053
+ footer?: (props: ModelSelectorFooterSlotProps) => VNode | VNode[];
4054
+ }
4055
+
4056
+ export declare interface ModelSelectorTriggerSlotProps {
4057
+ option: ModelSelectorOption | null;
4058
+ label: string;
4059
+ open: boolean;
4060
+ /** The effort currently supported by the selected model. Sticky unsupported values resolve to null. */
4061
+ reasoningEffortOption: ModelSelectorReasoningEffortOption | null;
4062
+ }
4063
+
4064
+ export declare type ModelSelectorVariant = 'outline' | 'ghost' | 'muted';
3511
4065
 
3512
4066
  export declare type PluginAddState = 'idle' | 'loading' | 'added';
3513
4067
 
@@ -3574,7 +4128,7 @@ export declare interface PopupConfig {
3574
4128
  };
3575
4129
  }
3576
4130
 
3577
- declare const Prompt: typeof _default_40 & {
4131
+ declare const Prompt: typeof _default_41 & {
3578
4132
  install: typeof installPrompt;
3579
4133
  };
3580
4134
  export { Prompt }
@@ -3611,7 +4165,7 @@ export declare interface PromptProps {
3611
4165
  size?: 'small' | 'medium' | 'large';
3612
4166
  }
3613
4167
 
3614
- declare const Prompts: typeof _default_41 & {
4168
+ declare const Prompts: typeof _default_42 & {
3615
4169
  install: typeof installPrompts;
3616
4170
  };
3617
4171
  export { Prompts }
@@ -3787,7 +4341,21 @@ hasExternalContent: boolean;
3787
4341
  extensions: Extension[] | any[];
3788
4342
  submitType: SubmitTrigger;
3789
4343
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
3790
- $slots: Readonly<SenderSlots> & SenderSlots;
4344
+ $slots: {
4345
+ header?(_: {}): any;
4346
+ header?(_: {}): any;
4347
+ prefix?(_: {}): any;
4348
+ prefix?(_: {}): any;
4349
+ content?(_: {
4350
+ editor: Editor | undefined;
4351
+ }): any;
4352
+ content?(_: {
4353
+ editor: Ref<Editor | undefined, Editor | undefined>;
4354
+ }): any;
4355
+ 'actions-inline'?(_: {}): any;
4356
+ footer?(_: {}): any;
4357
+ 'footer-right'?(_: {}): any;
4358
+ };
3791
4359
  }) & {
3792
4360
  install: <T>(app: App<T>) => void;
3793
4361
  Mention: Node_2<MentionOptions, any>;
@@ -4710,7 +5278,7 @@ export declare interface SuggestionOptions {
4710
5278
  onSelect?: (item: SenderSuggestionItem) => void | false;
4711
5279
  }
4712
5280
 
4713
- declare const SuggestionPillButton: typeof _default_43 & {
5281
+ declare const SuggestionPillButton: typeof _default_44 & {
4714
5282
  install: typeof installPillButton;
4715
5283
  };
4716
5284
  export { SuggestionPillButton }
@@ -5012,14 +5580,14 @@ declare interface TemplateOptions {
5012
5580
  * ```
5013
5581
  */
5014
5582
  items?: TemplateItem[] | Ref<TemplateItem[]>;
5015
- /**
5016
- * Template Select 下拉菜单的 Teleport 目标
5017
- */
5018
- appendTo?: string | HTMLElement;
5019
5583
  /**
5020
5584
  * HTML 属性
5021
5585
  */
5022
5586
  HTMLAttributes?: Record<string, unknown>;
5587
+ /**
5588
+ * 下拉菜单挂载目标
5589
+ */
5590
+ appendTo?: string | HTMLElement;
5023
5591
  }
5024
5592
 
5025
5593
  export declare interface ThemeProviderProps {
@@ -5056,9 +5624,16 @@ export declare interface ToolCall {
5056
5624
  [x: string]: any;
5057
5625
  }
5058
5626
 
5627
+ declare interface ToolCallState {
5628
+ status?: ToolCallStatus;
5629
+ open?: boolean;
5630
+ description?: string;
5631
+ [key: string]: unknown;
5632
+ }
5633
+
5059
5634
  declare type ToolCallStatus = (typeof toolCallStatus)[number];
5060
5635
 
5061
- declare const toolCallStatus: readonly ["running", "success", "failed", "cancelled"];
5636
+ declare const toolCallStatus: readonly ["running", "success", "failed", "cancelled", "awaiting-approval", "denied"];
5062
5637
 
5063
5638
  /**
5064
5639
  * Tooltip 内容类型
@@ -5351,10 +5926,7 @@ export declare const useTheme: () => {
5351
5926
  };
5352
5927
 
5353
5928
  export declare const useToolCall: (props: BubbleContentRendererProps<ChatMessageContent, {
5354
- toolCall?: Record<string, {
5355
- status?: ToolCallStatus;
5356
- open?: boolean;
5357
- }>;
5929
+ toolCall?: Record<string, ToolCallState>;
5358
5930
  }> & {
5359
5931
  toolCallIndex: number;
5360
5932
  }) => {
@@ -5366,10 +5938,7 @@ export declare const useToolCall: (props: BubbleContentRendererProps<ChatMessage
5366
5938
  readonly arguments?: any;
5367
5939
  readonly result?: any;
5368
5940
  }>>;
5369
- state: ComputedRef< {
5370
- status: "success" | "running" | "failed" | "cancelled" | undefined;
5371
- open: boolean | undefined;
5372
- }>;
5941
+ state: ComputedRef<ToolCallState>;
5373
5942
  };
5374
5943
 
5375
5944
  export declare function useTouchDevice(): {
@@ -5494,23 +6063,15 @@ export { }
5494
6063
  */
5495
6064
  declare module '@tiptap/core' {
5496
6065
  interface Commands<ReturnType> {
5497
- template: {
5498
- /**
5499
- * 设置模板数据(批量)
5500
- */
5501
- setTemplateData: (items: TemplateItem[]) => ReturnType;
5502
- /**
5503
- * 插入模板块
5504
- */
5505
- insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
6066
+ mention: {
5506
6067
  /**
5507
- * 聚焦到第一个模板块
6068
+ * 插入 mention 节点
5508
6069
  */
5509
- focusFirstTemplate: () => ReturnType;
6070
+ insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
5510
6071
  /**
5511
- * 插入选择器
6072
+ * 删除 mention 节点
5512
6073
  */
5513
- insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
6074
+ deleteMention: (id: string) => ReturnType;
5514
6075
  };
5515
6076
  }
5516
6077
  }
@@ -5523,15 +6084,23 @@ declare module '@tiptap/core' {
5523
6084
  */
5524
6085
  declare module '@tiptap/core' {
5525
6086
  interface Commands<ReturnType> {
5526
- mention: {
6087
+ template: {
5527
6088
  /**
5528
- * 插入 mention 节点
6089
+ * 设置模板数据(批量)
5529
6090
  */
5530
- insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
6091
+ setTemplateData: (items: TemplateItem[]) => ReturnType;
5531
6092
  /**
5532
- * 删除 mention 节点
6093
+ * 插入模板块
5533
6094
  */
5534
- deleteMention: (id: string) => ReturnType;
6095
+ insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
6096
+ /**
6097
+ * 聚焦到第一个模板块
6098
+ */
6099
+ focusFirstTemplate: () => ReturnType;
6100
+ /**
6101
+ * 插入选择器
6102
+ */
6103
+ insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
5535
6104
  };
5536
6105
  }
5537
6106
  }