@opentiny/tiny-robot 0.5.2-alpha.8 → 1.0.0-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/anchor/index.js +32 -32
- package/dist/container/index.js +16 -15
- package/dist/dropdown-menu/index.js +141 -97
- package/dist/extension-manager/index.js +1004 -0
- package/dist/floating-ui.dom.js +970 -0
- package/dist/index.d.ts +692 -126
- package/dist/index.js +103 -89
- package/dist/index4.js +2 -2
- package/dist/index6.js +408 -399
- package/dist/index7.js +271 -180
- package/dist/index8.js +87 -102
- package/dist/layout/index.js +1 -1
- package/dist/model-selector/index.js +1009 -0
- package/dist/sender/index.js +1127 -2060
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +1 -1
- package/dist/suggestion-popover/index.js +37 -36
- package/dist/useSlotRefs.js +1 -1
- package/dist/useTeleportTarget.js +25 -0
- package/dist/utils.js +1 -1
- package/package.json +4 -4
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,49 @@ contentResolver: (message: BubbleMessage) => ChatMessageContent | undefined;
|
|
|
67
68
|
bubbleRef: HTMLDivElement;
|
|
68
69
|
}, HTMLDivElement>;
|
|
69
70
|
|
|
70
|
-
declare const __VLS_component_10: DefineComponent<
|
|
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
|
+
appendTo: string | HTMLElement;
|
|
92
|
+
offset: number;
|
|
93
|
+
searchable: boolean;
|
|
94
|
+
searchPlaceholder: string;
|
|
95
|
+
models: readonly ModelSelectorOption[];
|
|
96
|
+
defaultValue: string | null;
|
|
97
|
+
reasoningEffort: string | null;
|
|
98
|
+
defaultReasoningEffort: string | null;
|
|
99
|
+
defaultOpen: boolean;
|
|
100
|
+
closeOnSelect: boolean;
|
|
101
|
+
reasoningEffortLabel: string;
|
|
102
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
103
|
+
referenceEl: HTMLSpanElement;
|
|
104
|
+
floatingEl: HTMLDivElement;
|
|
105
|
+
}, HTMLDivElement>;
|
|
106
|
+
|
|
107
|
+
declare const __VLS_component_11: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
71
108
|
"item-click": (ev: MouseEvent, item: PromptProps) => any;
|
|
72
109
|
}, string, PublicProps, Readonly<PromptsProps> & Readonly<{
|
|
73
110
|
"onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
|
|
74
111
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
75
112
|
|
|
76
|
-
declare const
|
|
113
|
+
declare const __VLS_component_12: DefineComponent<SenderProps_2, {
|
|
77
114
|
focus: () => void;
|
|
78
115
|
blur: () => void;
|
|
79
116
|
clear: () => void;
|
|
@@ -339,9 +376,9 @@ stop: () => void;
|
|
|
339
376
|
}) | null;
|
|
340
377
|
}, HTMLDivElement>;
|
|
341
378
|
|
|
342
|
-
declare const
|
|
379
|
+
declare const __VLS_component_13: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
343
380
|
|
|
344
|
-
declare const
|
|
381
|
+
declare const __VLS_component_14: DefineComponent<__VLS_PublicProps_3, {
|
|
345
382
|
children: ComputedRef<(HTMLElement | SVGElement)[]>;
|
|
346
383
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
347
384
|
"update:showAll": (value: boolean | undefined) => any;
|
|
@@ -361,7 +398,7 @@ floatingItemsRef: HTMLDivElement;
|
|
|
361
398
|
floatingMaybeItemRefs: unknown[];
|
|
362
399
|
}, HTMLDivElement>;
|
|
363
400
|
|
|
364
|
-
declare const
|
|
401
|
+
declare const __VLS_component_15: DefineComponent<__VLS_PublicProps_4, {
|
|
365
402
|
update: () => void;
|
|
366
403
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
367
404
|
"update:selectedGroup": (value: string) => any;
|
|
@@ -495,7 +532,7 @@ show?: TooltipContentProps["show"];
|
|
|
495
532
|
}>, {}, {}, {}, {}, {}> | null;
|
|
496
533
|
}, any>;
|
|
497
534
|
|
|
498
|
-
declare const
|
|
535
|
+
declare const __VLS_component_16: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
499
536
|
"update:theme": (value: string) => any;
|
|
500
537
|
"update:colorMode": (value: ColorMode) => any;
|
|
501
538
|
}, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
|
|
@@ -506,11 +543,11 @@ targetElement: string;
|
|
|
506
543
|
storageKey: string;
|
|
507
544
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
508
545
|
|
|
509
|
-
declare const
|
|
546
|
+
declare const __VLS_component_17: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
|
|
510
547
|
align: "left" | "center" | "right" | string;
|
|
511
548
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
512
549
|
|
|
513
|
-
declare const
|
|
550
|
+
declare const __VLS_component_18: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
514
551
|
"update:visible": (value: boolean) => any;
|
|
515
552
|
} & {
|
|
516
553
|
refresh: (tab: "installed" | "market") => any;
|
|
@@ -537,9 +574,9 @@ onRefresh?: ((tab: "installed" | "market") => any) | undefined;
|
|
|
537
574
|
}>, {
|
|
538
575
|
title: string;
|
|
539
576
|
loading: boolean;
|
|
577
|
+
searchPlaceholder: string;
|
|
540
578
|
installedPlugins: PluginInfo[];
|
|
541
579
|
marketPlugins: PluginInfo[];
|
|
542
|
-
searchPlaceholder: string;
|
|
543
580
|
enableSearch: boolean;
|
|
544
581
|
installedSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
545
582
|
marketSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
@@ -561,13 +598,57 @@ allowPluginAdd: boolean;
|
|
|
561
598
|
marketLoading: boolean;
|
|
562
599
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
563
600
|
|
|
564
|
-
declare const
|
|
601
|
+
declare const __VLS_component_19: DefineComponent<ExtensionCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
602
|
+
action: (payload: ExtensionCardActionEvent) => any;
|
|
603
|
+
"name-click": (event: MouseEvent | KeyboardEvent) => any;
|
|
604
|
+
}, string, PublicProps, Readonly<ExtensionCardProps> & Readonly<{
|
|
605
|
+
onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
|
|
606
|
+
"onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
607
|
+
}>, {
|
|
608
|
+
actions: ExtensionCardAction[];
|
|
609
|
+
primaryActionsLimit: number;
|
|
610
|
+
nameClickable: boolean;
|
|
611
|
+
overflowMenuLabel: string;
|
|
612
|
+
overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
|
|
613
|
+
overflowMenuShowIcons: boolean;
|
|
614
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
615
|
+
|
|
616
|
+
declare const __VLS_component_2: DefineComponent<BubbleListProps, {
|
|
617
|
+
scrollToBottom: (behavior?: ScrollBehavior) => Promise<void>;
|
|
618
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
619
|
+
"state-change": (payload: BubbleStateChangePayload) => any;
|
|
620
|
+
"bubble-event": (payload: BubbleEventPayload) => any;
|
|
621
|
+
}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{
|
|
622
|
+
"onState-change"?: ((payload: BubbleStateChangePayload) => any) | undefined;
|
|
623
|
+
"onBubble-event"?: ((payload: BubbleEventPayload) => any) | undefined;
|
|
624
|
+
}>, {
|
|
625
|
+
contentResolver: (message: BubbleMessage) => ChatMessageContent | undefined;
|
|
626
|
+
groupStrategy: "consecutive" | "divider" | ((messages: BubbleMessage[], dividerRole?: string) => BubbleMessageGroup[]);
|
|
627
|
+
dividerRole: string;
|
|
628
|
+
fallbackRole: string;
|
|
629
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
630
|
+
listRef: HTMLDivElement;
|
|
631
|
+
}, HTMLDivElement>;
|
|
632
|
+
|
|
633
|
+
declare const __VLS_component_20: DefineComponent<ExtensionCardGridProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
634
|
+
action: (payload: ExtensionCardGridActionEvent) => any;
|
|
635
|
+
"name-click": (payload: ExtensionCardGridNameClickEvent) => any;
|
|
636
|
+
}, string, PublicProps, Readonly<ExtensionCardGridProps> & Readonly<{
|
|
637
|
+
onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
|
|
638
|
+
"onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
|
|
639
|
+
}>, {
|
|
640
|
+
emptyText: string;
|
|
641
|
+
nameClickable: boolean;
|
|
642
|
+
overflowMenuShowIcons: boolean;
|
|
643
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLUListElement>;
|
|
644
|
+
|
|
645
|
+
declare const __VLS_component_21: DefineComponent<ActionButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ActionButtonProps> & Readonly<{}>, {
|
|
565
646
|
disabled: boolean;
|
|
566
647
|
active: boolean;
|
|
567
648
|
tooltipPlacement: TooltipPlacement;
|
|
568
649
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
569
650
|
|
|
570
|
-
declare const
|
|
651
|
+
declare const __VLS_component_22: DefineComponent<VoiceButtonProps, {
|
|
571
652
|
start: () => void;
|
|
572
653
|
stop: () => void;
|
|
573
654
|
speechState: SpeechState;
|
|
@@ -588,24 +669,7 @@ tooltipPlacement: TooltipPlacement;
|
|
|
588
669
|
autoInsert: boolean;
|
|
589
670
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
590
671
|
|
|
591
|
-
declare const
|
|
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>;
|
|
672
|
+
declare const __VLS_component_23: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
609
673
|
|
|
610
674
|
declare const __VLS_component_3: DefineComponent<BubbleProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
611
675
|
|
|
@@ -782,7 +846,7 @@ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
|
782
846
|
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
783
847
|
};
|
|
784
848
|
$forceUpdate: () => void;
|
|
785
|
-
$nextTick: nextTick;
|
|
849
|
+
$nextTick: typeof nextTick;
|
|
786
850
|
$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
851
|
} & Readonly<{
|
|
788
852
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
@@ -1015,13 +1079,23 @@ declare function __VLS_template(): {
|
|
|
1015
1079
|
};
|
|
1016
1080
|
|
|
1017
1081
|
declare function __VLS_template_10(): {
|
|
1082
|
+
attrs: Partial<{}>;
|
|
1083
|
+
slots: Readonly<ModelSelectorSlots> & ModelSelectorSlots;
|
|
1084
|
+
refs: {
|
|
1085
|
+
referenceEl: HTMLSpanElement;
|
|
1086
|
+
floatingEl: HTMLDivElement;
|
|
1087
|
+
};
|
|
1088
|
+
rootEl: HTMLDivElement;
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
declare function __VLS_template_11(): {
|
|
1018
1092
|
attrs: Partial<{}>;
|
|
1019
1093
|
slots: Readonly<PromptsSlots> & PromptsSlots;
|
|
1020
1094
|
refs: {};
|
|
1021
1095
|
rootEl: HTMLDivElement;
|
|
1022
1096
|
};
|
|
1023
1097
|
|
|
1024
|
-
declare function
|
|
1098
|
+
declare function __VLS_template_12(): {
|
|
1025
1099
|
attrs: Partial<{}>;
|
|
1026
1100
|
slots: {
|
|
1027
1101
|
header?(_: {}): any;
|
|
@@ -1298,14 +1372,14 @@ declare function __VLS_template_11(): {
|
|
|
1298
1372
|
rootEl: HTMLDivElement;
|
|
1299
1373
|
};
|
|
1300
1374
|
|
|
1301
|
-
declare function
|
|
1375
|
+
declare function __VLS_template_13(): {
|
|
1302
1376
|
attrs: Partial<{}>;
|
|
1303
1377
|
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
1304
1378
|
refs: {};
|
|
1305
1379
|
rootEl: HTMLButtonElement;
|
|
1306
1380
|
};
|
|
1307
1381
|
|
|
1308
|
-
declare function
|
|
1382
|
+
declare function __VLS_template_14(): {
|
|
1309
1383
|
attrs: Partial<{}>;
|
|
1310
1384
|
slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
|
|
1311
1385
|
refs: {
|
|
@@ -1318,7 +1392,7 @@ declare function __VLS_template_13(): {
|
|
|
1318
1392
|
rootEl: HTMLDivElement;
|
|
1319
1393
|
};
|
|
1320
1394
|
|
|
1321
|
-
declare function
|
|
1395
|
+
declare function __VLS_template_15(): {
|
|
1322
1396
|
attrs: Partial<{}>;
|
|
1323
1397
|
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
1324
1398
|
refs: {
|
|
@@ -1435,7 +1509,7 @@ declare function __VLS_template_14(): {
|
|
|
1435
1509
|
rootEl: any;
|
|
1436
1510
|
};
|
|
1437
1511
|
|
|
1438
|
-
declare function
|
|
1512
|
+
declare function __VLS_template_16(): {
|
|
1439
1513
|
attrs: Partial<{}>;
|
|
1440
1514
|
slots: {
|
|
1441
1515
|
default?(_: {}): any;
|
|
@@ -1444,14 +1518,14 @@ declare function __VLS_template_15(): {
|
|
|
1444
1518
|
rootEl: any;
|
|
1445
1519
|
};
|
|
1446
1520
|
|
|
1447
|
-
declare function
|
|
1521
|
+
declare function __VLS_template_17(): {
|
|
1448
1522
|
attrs: Partial<{}>;
|
|
1449
1523
|
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
1450
1524
|
refs: {};
|
|
1451
1525
|
rootEl: HTMLDivElement;
|
|
1452
1526
|
};
|
|
1453
1527
|
|
|
1454
|
-
declare function
|
|
1528
|
+
declare function __VLS_template_18(): {
|
|
1455
1529
|
attrs: Partial<{}>;
|
|
1456
1530
|
slots: {
|
|
1457
1531
|
'header-actions'?(_: {}): any;
|
|
@@ -1460,7 +1534,30 @@ declare function __VLS_template_17(): {
|
|
|
1460
1534
|
rootEl: any;
|
|
1461
1535
|
};
|
|
1462
1536
|
|
|
1463
|
-
declare function
|
|
1537
|
+
declare function __VLS_template_19(): {
|
|
1538
|
+
attrs: Partial<{}>;
|
|
1539
|
+
slots: Readonly<ExtensionCardSlots> & ExtensionCardSlots;
|
|
1540
|
+
refs: {};
|
|
1541
|
+
rootEl: HTMLDivElement;
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
declare function __VLS_template_2(): {
|
|
1545
|
+
attrs: Partial<{}>;
|
|
1546
|
+
slots: Readonly<BubbleListSlots> & BubbleListSlots;
|
|
1547
|
+
refs: {
|
|
1548
|
+
listRef: HTMLDivElement;
|
|
1549
|
+
};
|
|
1550
|
+
rootEl: HTMLDivElement;
|
|
1551
|
+
};
|
|
1552
|
+
|
|
1553
|
+
declare function __VLS_template_20(): {
|
|
1554
|
+
attrs: Partial<{}>;
|
|
1555
|
+
slots: Readonly<ExtensionCardGridSlots> & ExtensionCardGridSlots;
|
|
1556
|
+
refs: {};
|
|
1557
|
+
rootEl: HTMLUListElement;
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
declare function __VLS_template_21(): {
|
|
1464
1561
|
attrs: Partial<{}>;
|
|
1465
1562
|
slots: {
|
|
1466
1563
|
icon?(_: {}): any;
|
|
@@ -1470,7 +1567,7 @@ declare function __VLS_template_18(): {
|
|
|
1470
1567
|
rootEl: any;
|
|
1471
1568
|
};
|
|
1472
1569
|
|
|
1473
|
-
declare function
|
|
1570
|
+
declare function __VLS_template_22(): {
|
|
1474
1571
|
attrs: Partial<{}>;
|
|
1475
1572
|
slots: {
|
|
1476
1573
|
icon?(_: {
|
|
@@ -1485,16 +1582,7 @@ declare function __VLS_template_19(): {
|
|
|
1485
1582
|
rootEl: any;
|
|
1486
1583
|
};
|
|
1487
1584
|
|
|
1488
|
-
declare function
|
|
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(): {
|
|
1585
|
+
declare function __VLS_template_23(): {
|
|
1498
1586
|
attrs: Partial<{}>;
|
|
1499
1587
|
slots: {
|
|
1500
1588
|
prepend?(_: {}): any;
|
|
@@ -1668,7 +1756,7 @@ declare function __VLS_template_7(): {
|
|
|
1668
1756
|
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1669
1757
|
};
|
|
1670
1758
|
$forceUpdate: () => void;
|
|
1671
|
-
$nextTick: nextTick;
|
|
1759
|
+
$nextTick: typeof nextTick;
|
|
1672
1760
|
$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
1761
|
} & Readonly<{
|
|
1674
1762
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
@@ -1827,6 +1915,12 @@ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
|
1827
1915
|
|
|
1828
1916
|
declare type __VLS_TemplateResult_20 = ReturnType<typeof __VLS_template_20>;
|
|
1829
1917
|
|
|
1918
|
+
declare type __VLS_TemplateResult_21 = ReturnType<typeof __VLS_template_21>;
|
|
1919
|
+
|
|
1920
|
+
declare type __VLS_TemplateResult_22 = ReturnType<typeof __VLS_template_22>;
|
|
1921
|
+
|
|
1922
|
+
declare type __VLS_TemplateResult_23 = ReturnType<typeof __VLS_template_23>;
|
|
1923
|
+
|
|
1830
1924
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
1831
1925
|
|
|
1832
1926
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
@@ -1919,6 +2013,24 @@ declare type __VLS_WithTemplateSlots_20<T, S> = T & {
|
|
|
1919
2013
|
};
|
|
1920
2014
|
};
|
|
1921
2015
|
|
|
2016
|
+
declare type __VLS_WithTemplateSlots_21<T, S> = T & {
|
|
2017
|
+
new (): {
|
|
2018
|
+
$slots: S;
|
|
2019
|
+
};
|
|
2020
|
+
};
|
|
2021
|
+
|
|
2022
|
+
declare type __VLS_WithTemplateSlots_22<T, S> = T & {
|
|
2023
|
+
new (): {
|
|
2024
|
+
$slots: S;
|
|
2025
|
+
};
|
|
2026
|
+
};
|
|
2027
|
+
|
|
2028
|
+
declare type __VLS_WithTemplateSlots_23<T, S> = T & {
|
|
2029
|
+
new (): {
|
|
2030
|
+
$slots: S;
|
|
2031
|
+
};
|
|
2032
|
+
};
|
|
2033
|
+
|
|
1922
2034
|
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
1923
2035
|
new (): {
|
|
1924
2036
|
$slots: S;
|
|
@@ -2382,17 +2494,11 @@ export declare const BubbleRenderers: {
|
|
|
2382
2494
|
contentIndex: number;
|
|
2383
2495
|
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2384
2496
|
Tool: DefineComponent<BubbleContentRendererProps<ChatMessageContent, {
|
|
2385
|
-
toolCall?: Record<string,
|
|
2386
|
-
status?: ToolCallStatus;
|
|
2387
|
-
open?: boolean;
|
|
2388
|
-
}>;
|
|
2497
|
+
toolCall?: Record<string, ToolCallState>;
|
|
2389
2498
|
}> & {
|
|
2390
2499
|
toolCallIndex: number;
|
|
2391
2500
|
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleContentRendererProps<ChatMessageContent, {
|
|
2392
|
-
toolCall?: Record<string,
|
|
2393
|
-
status?: ToolCallStatus;
|
|
2394
|
-
open?: boolean;
|
|
2395
|
-
}>;
|
|
2501
|
+
toolCall?: Record<string, ToolCallState>;
|
|
2396
2502
|
}> & {
|
|
2397
2503
|
toolCallIndex: number;
|
|
2398
2504
|
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
@@ -2484,6 +2590,15 @@ declare interface CompatTextItem {
|
|
|
2484
2590
|
content: string;
|
|
2485
2591
|
}
|
|
2486
2592
|
|
|
2593
|
+
/**
|
|
2594
|
+
* @deprecated Container is kept for compatibility. Use `Layout` (`TrLayout`) for new layouts.
|
|
2595
|
+
*/
|
|
2596
|
+
declare const Container: typeof _default_29 & {
|
|
2597
|
+
install: typeof install_2;
|
|
2598
|
+
};
|
|
2599
|
+
export { Container }
|
|
2600
|
+
export { Container as TrContainer }
|
|
2601
|
+
|
|
2487
2602
|
export declare interface ContainerEmits {
|
|
2488
2603
|
(e: 'close'): void;
|
|
2489
2604
|
}
|
|
@@ -2518,55 +2633,55 @@ declare const _default: {
|
|
|
2518
2633
|
};
|
|
2519
2634
|
export default _default;
|
|
2520
2635
|
|
|
2521
|
-
declare const _default_10: typeof
|
|
2522
|
-
install: typeof
|
|
2636
|
+
declare const _default_10: typeof _default_40 & {
|
|
2637
|
+
install: typeof install_10;
|
|
2523
2638
|
};
|
|
2524
|
-
export { _default_10 as
|
|
2525
|
-
export { _default_10 as
|
|
2639
|
+
export { _default_10 as ModelSelector }
|
|
2640
|
+
export { _default_10 as TrModelSelector }
|
|
2526
2641
|
|
|
2527
|
-
declare const _default_11: typeof
|
|
2528
|
-
install: typeof
|
|
2642
|
+
declare const _default_11: typeof _default_43 & {
|
|
2643
|
+
install: typeof install_11;
|
|
2529
2644
|
};
|
|
2530
2645
|
export { _default_11 as SenderCompat }
|
|
2531
2646
|
export { _default_11 as TrSenderCompat }
|
|
2532
2647
|
|
|
2533
|
-
declare const _default_12: typeof
|
|
2534
|
-
install: typeof
|
|
2648
|
+
declare const _default_12: typeof _default_45 & {
|
|
2649
|
+
install: typeof install_12;
|
|
2535
2650
|
};
|
|
2536
2651
|
export { _default_12 as SuggestionPills }
|
|
2537
2652
|
export { _default_12 as TrSuggestionPills }
|
|
2538
2653
|
|
|
2539
|
-
declare const _default_13: typeof
|
|
2540
|
-
install: typeof
|
|
2654
|
+
declare const _default_13: typeof _default_46 & {
|
|
2655
|
+
install: typeof install_13;
|
|
2541
2656
|
};
|
|
2542
2657
|
export { _default_13 as SuggestionPopover }
|
|
2543
2658
|
export { _default_13 as TrSuggestionPopover }
|
|
2544
2659
|
|
|
2545
|
-
declare const _default_14: typeof
|
|
2546
|
-
install: typeof
|
|
2660
|
+
declare const _default_14: typeof _default_47 & {
|
|
2661
|
+
install: typeof install_14;
|
|
2547
2662
|
};
|
|
2548
2663
|
export { _default_14 as ThemeProvider }
|
|
2549
2664
|
export { _default_14 as TrThemeProvider }
|
|
2550
2665
|
|
|
2551
|
-
declare const _default_15: typeof
|
|
2552
|
-
install: typeof
|
|
2666
|
+
declare const _default_15: typeof _default_48 & {
|
|
2667
|
+
install: typeof install_15;
|
|
2553
2668
|
};
|
|
2554
2669
|
export { _default_15 as TrWelcome }
|
|
2555
2670
|
export { _default_15 as Welcome }
|
|
2556
2671
|
|
|
2557
|
-
declare const _default_16: typeof
|
|
2558
|
-
install: typeof
|
|
2672
|
+
declare const _default_16: typeof _default_49 & {
|
|
2673
|
+
install: typeof install_16;
|
|
2559
2674
|
};
|
|
2560
2675
|
export { _default_16 as McpServerPicker }
|
|
2561
2676
|
export { _default_16 as TrMcpServerPicker }
|
|
2562
2677
|
|
|
2563
|
-
declare const _default_17: typeof
|
|
2564
|
-
install: typeof
|
|
2678
|
+
declare const _default_17: typeof _default_50 & {
|
|
2679
|
+
install: typeof install_17;
|
|
2565
2680
|
};
|
|
2566
2681
|
export { _default_17 as McpAddForm }
|
|
2567
2682
|
export { _default_17 as TrMcpAddForm }
|
|
2568
2683
|
|
|
2569
|
-
declare const _default_18:
|
|
2684
|
+
declare const _default_18: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
|
|
2570
2685
|
export { _default_18 as ActionButton }
|
|
2571
2686
|
export { _default_18 as TrActionButton }
|
|
2572
2687
|
|
|
@@ -2601,7 +2716,7 @@ accept: string;
|
|
|
2601
2716
|
export { _default_21 as TrUploadButton }
|
|
2602
2717
|
export { _default_21 as UploadButton }
|
|
2603
2718
|
|
|
2604
|
-
declare const _default_22:
|
|
2719
|
+
declare const _default_22: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
|
|
2605
2720
|
export { _default_22 as TrVoiceButton }
|
|
2606
2721
|
export { _default_22 as VoiceButton }
|
|
2607
2722
|
|
|
@@ -2609,7 +2724,7 @@ declare const _default_23: DefineComponent< {}, {}, {}, {}, {}, ComponentOpti
|
|
|
2609
2724
|
export { _default_23 as TrWordCounter }
|
|
2610
2725
|
export { _default_23 as WordCounter }
|
|
2611
2726
|
|
|
2612
|
-
declare const _default_24:
|
|
2727
|
+
declare const _default_24: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
|
|
2613
2728
|
export { _default_24 as DefaultActionButtons }
|
|
2614
2729
|
export { _default_24 as TrDefaultActionButtons }
|
|
2615
2730
|
|
|
@@ -2647,11 +2762,11 @@ declare const _default_28: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, _
|
|
|
2647
2762
|
|
|
2648
2763
|
declare const _default_29: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2649
2764
|
|
|
2650
|
-
declare const _default_3: typeof
|
|
2651
|
-
install: typeof
|
|
2765
|
+
declare const _default_3: typeof _default_30 & {
|
|
2766
|
+
install: typeof install_3;
|
|
2652
2767
|
};
|
|
2653
|
-
export { _default_3 as
|
|
2654
|
-
export { _default_3 as
|
|
2768
|
+
export { _default_3 as Anchor }
|
|
2769
|
+
export { _default_3 as TrAnchor }
|
|
2655
2770
|
|
|
2656
2771
|
declare const _default_30: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2657
2772
|
|
|
@@ -2701,18 +2816,18 @@ thumbRef: HTMLDivElement;
|
|
|
2701
2816
|
|
|
2702
2817
|
declare const _default_39: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2703
2818
|
|
|
2704
|
-
declare const _default_4: typeof
|
|
2705
|
-
install: typeof
|
|
2819
|
+
declare const _default_4: typeof _default_31 & {
|
|
2820
|
+
install: typeof install_4;
|
|
2706
2821
|
};
|
|
2707
|
-
export { _default_4 as
|
|
2708
|
-
export { _default_4 as
|
|
2822
|
+
export { _default_4 as Conversations }
|
|
2823
|
+
export { _default_4 as TrConversations }
|
|
2709
2824
|
|
|
2710
|
-
declare const _default_40:
|
|
2825
|
+
declare const _default_40: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2826
|
+
|
|
2827
|
+
declare const _default_41: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
|
|
2711
2828
|
size: "small" | "medium" | "large";
|
|
2712
2829
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2713
2830
|
|
|
2714
|
-
declare const _default_41: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2715
|
-
|
|
2716
2831
|
declare const _default_42: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2717
2832
|
|
|
2718
2833
|
declare const _default_43: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
@@ -2727,7 +2842,15 @@ declare const _default_47: __VLS_WithTemplateSlots_16<typeof __VLS_component_16,
|
|
|
2727
2842
|
|
|
2728
2843
|
declare const _default_48: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
|
|
2729
2844
|
|
|
2730
|
-
declare const _default_49:
|
|
2845
|
+
declare const _default_49: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
|
|
2846
|
+
|
|
2847
|
+
declare const _default_5: typeof _default_32 & {
|
|
2848
|
+
install: typeof install_5;
|
|
2849
|
+
};
|
|
2850
|
+
export { _default_5 as DragOverlay }
|
|
2851
|
+
export { _default_5 as TrDragOverlay }
|
|
2852
|
+
|
|
2853
|
+
declare const _default_50: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2731
2854
|
cancel: () => any;
|
|
2732
2855
|
confirm: (type: AddType, data: string | McpAddFormData) => any;
|
|
2733
2856
|
"update:addType": (value: AddType) => any;
|
|
@@ -2739,35 +2862,33 @@ onConfirm?: ((type: AddType, data: string | McpAddFormData) => any) | undefined;
|
|
|
2739
2862
|
addType: AddType;
|
|
2740
2863
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2741
2864
|
|
|
2742
|
-
declare const
|
|
2743
|
-
install: typeof install_4;
|
|
2744
|
-
};
|
|
2745
|
-
export { _default_5 as Conversations }
|
|
2746
|
-
export { _default_5 as TrConversations }
|
|
2865
|
+
declare const _default_51: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
|
|
2747
2866
|
|
|
2748
|
-
declare const
|
|
2749
|
-
install: typeof install_5;
|
|
2750
|
-
};
|
|
2751
|
-
export { _default_6 as DragOverlay }
|
|
2752
|
-
export { _default_6 as TrDragOverlay }
|
|
2867
|
+
declare const _default_52: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
|
|
2753
2868
|
|
|
2754
|
-
declare const
|
|
2869
|
+
declare const _default_6: typeof _default_33 & {
|
|
2755
2870
|
install: typeof install_6;
|
|
2756
2871
|
};
|
|
2757
|
-
export {
|
|
2758
|
-
export {
|
|
2872
|
+
export { _default_6 as DropdownMenu }
|
|
2873
|
+
export { _default_6 as TrDropdownMenu }
|
|
2759
2874
|
|
|
2760
|
-
declare const
|
|
2875
|
+
declare const _default_7: typeof _default_34 & {
|
|
2761
2876
|
install: typeof install_7;
|
|
2762
2877
|
};
|
|
2763
|
-
export {
|
|
2764
|
-
export {
|
|
2878
|
+
export { _default_7 as Feedback }
|
|
2879
|
+
export { _default_7 as TrFeedback }
|
|
2765
2880
|
|
|
2766
|
-
declare const
|
|
2881
|
+
declare const _default_8: typeof _default_35 & {
|
|
2767
2882
|
install: typeof install_8;
|
|
2768
2883
|
};
|
|
2769
|
-
export {
|
|
2770
|
-
export {
|
|
2884
|
+
export { _default_8 as History }
|
|
2885
|
+
export { _default_8 as TrHistory }
|
|
2886
|
+
|
|
2887
|
+
declare const _default_9: typeof _default_36 & {
|
|
2888
|
+
install: typeof install_9;
|
|
2889
|
+
};
|
|
2890
|
+
export { _default_9 as IconButton }
|
|
2891
|
+
export { _default_9 as TrIconButton }
|
|
2771
2892
|
|
|
2772
2893
|
/**
|
|
2773
2894
|
* 默认操作按钮配置
|
|
@@ -2825,6 +2946,9 @@ export declare interface DefaultActions {
|
|
|
2825
2946
|
|
|
2826
2947
|
export declare type DisplayVariant = 'picture' | 'card' | 'auto';
|
|
2827
2948
|
|
|
2949
|
+
/** Actions passed from Card to its internal renderers after visibility is resolved. */
|
|
2950
|
+
declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
2951
|
+
|
|
2828
2952
|
declare interface DragAwareElement extends HTMLElement {
|
|
2829
2953
|
__vDropzoneHandlers__?: Handlers;
|
|
2830
2954
|
__vDropzoneOptions__?: DragAwareOptions;
|
|
@@ -3002,6 +3126,348 @@ export declare interface DropzoneBinding {
|
|
|
3002
3126
|
*/
|
|
3003
3127
|
export declare type EnterKeyHint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
3004
3128
|
|
|
3129
|
+
declare const ExtensionCard: typeof _default_51 & {
|
|
3130
|
+
install: typeof extensionCardInstall;
|
|
3131
|
+
};
|
|
3132
|
+
export { ExtensionCard }
|
|
3133
|
+
export { ExtensionCard as TrExtensionCard }
|
|
3134
|
+
|
|
3135
|
+
export declare type ExtensionCardAction = ExtensionCardSwitchAction | ExtensionCardButtonAction | ExtensionCardCustomAction;
|
|
3136
|
+
|
|
3137
|
+
export declare interface ExtensionCardActionBase {
|
|
3138
|
+
id: string;
|
|
3139
|
+
label: string;
|
|
3140
|
+
icon?: Component;
|
|
3141
|
+
hidden?: boolean;
|
|
3142
|
+
disabled?: boolean;
|
|
3143
|
+
danger?: boolean;
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
export declare interface ExtensionCardActionEvent {
|
|
3147
|
+
id: string;
|
|
3148
|
+
type: ExtensionCardAction['type'];
|
|
3149
|
+
checked?: boolean;
|
|
3150
|
+
payload?: unknown;
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
export declare interface ExtensionCardButtonAction extends ExtensionCardActionBase {
|
|
3154
|
+
type: 'button';
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
export declare interface ExtensionCardCustomAction extends ExtensionCardActionBase {
|
|
3158
|
+
type: 'custom';
|
|
3159
|
+
data?: unknown;
|
|
3160
|
+
}
|
|
3161
|
+
|
|
3162
|
+
export declare interface ExtensionCardEmits {
|
|
3163
|
+
(e: 'name-click', event: MouseEvent | KeyboardEvent): void;
|
|
3164
|
+
(e: 'action', payload: ExtensionCardActionEvent): void;
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
declare const ExtensionCardGrid: typeof _default_52 & {
|
|
3168
|
+
install: typeof extensionCardGridInstall;
|
|
3169
|
+
};
|
|
3170
|
+
export { ExtensionCardGrid }
|
|
3171
|
+
export { ExtensionCardGrid as TrExtensionCardGrid }
|
|
3172
|
+
|
|
3173
|
+
export declare interface ExtensionCardGridActionEvent {
|
|
3174
|
+
itemId: string;
|
|
3175
|
+
action: ExtensionCardActionEvent;
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
export declare interface ExtensionCardGridEmits {
|
|
3179
|
+
(e: 'action', payload: ExtensionCardGridActionEvent): void;
|
|
3180
|
+
(e: 'name-click', payload: ExtensionCardGridNameClickEvent): void;
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
declare const extensionCardGridInstall: <T>(app: App<T>) => void;
|
|
3184
|
+
|
|
3185
|
+
export declare type ExtensionCardGridItem = ExtensionCardProps & {
|
|
3186
|
+
id: string;
|
|
3187
|
+
};
|
|
3188
|
+
|
|
3189
|
+
export declare interface ExtensionCardGridNameClickEvent {
|
|
3190
|
+
itemId: string;
|
|
3191
|
+
event: MouseEvent | KeyboardEvent;
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
export declare interface ExtensionCardGridProps extends Pick<ExtensionCardProps, 'primaryActionsLimit' | 'nameClickable' | 'overflowMenuLabel' | 'overflowMenuPlacement' | 'overflowMenuShowIcons'> {
|
|
3195
|
+
items: ExtensionCardGridItem[];
|
|
3196
|
+
emptyText?: string;
|
|
3197
|
+
}
|
|
3198
|
+
|
|
3199
|
+
export declare interface ExtensionCardGridSlots {
|
|
3200
|
+
item?: (props: {
|
|
3201
|
+
item: ExtensionCardGridItem;
|
|
3202
|
+
index: number;
|
|
3203
|
+
}) => VNode[];
|
|
3204
|
+
empty?: () => VNode[];
|
|
3205
|
+
}
|
|
3206
|
+
|
|
3207
|
+
declare const extensionCardInstall: <T>(app: App<T>) => void;
|
|
3208
|
+
|
|
3209
|
+
export declare type ExtensionCardOverflowMenuPlacement = 'bottom-end' | 'top-end';
|
|
3210
|
+
|
|
3211
|
+
export declare interface ExtensionCardProps {
|
|
3212
|
+
name: string;
|
|
3213
|
+
description?: string;
|
|
3214
|
+
icon?: string | Component;
|
|
3215
|
+
actions?: ExtensionCardAction[];
|
|
3216
|
+
primaryActionsLimit?: number;
|
|
3217
|
+
progress?: number | 'indeterminate';
|
|
3218
|
+
nameClickable?: boolean;
|
|
3219
|
+
overflowMenuLabel?: string;
|
|
3220
|
+
overflowMenuPlacement?: ExtensionCardOverflowMenuPlacement;
|
|
3221
|
+
overflowMenuShowIcons?: boolean;
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
export declare type ExtensionCardRenderableAction = DistributiveOmit<ExtensionCardAction, 'hidden'>;
|
|
3225
|
+
|
|
3226
|
+
export declare interface ExtensionCardSlots {
|
|
3227
|
+
'primary-action'?: (props: {
|
|
3228
|
+
action: Extract<ExtensionCardRenderableAction, {
|
|
3229
|
+
type: 'custom';
|
|
3230
|
+
}>;
|
|
3231
|
+
trigger: (payload?: unknown) => void;
|
|
3232
|
+
}) => VNode[];
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
export declare interface ExtensionCardSwitchAction extends ExtensionCardActionBase {
|
|
3236
|
+
type: 'switch';
|
|
3237
|
+
checked: boolean;
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
declare const ExtensionManager: {
|
|
3241
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtensionManagerProps> & Readonly<{
|
|
3242
|
+
onAction?: ((event: ExtensionManagerActionEvent) => any) | undefined;
|
|
3243
|
+
"onTab-change"?: ((event: ExtensionManagerTabChangeEvent) => any) | undefined;
|
|
3244
|
+
"onName-click"?: ((event: ExtensionManagerNameClickEvent) => any) | undefined;
|
|
3245
|
+
"onUpdate:active-tab"?: ((tabId: string | undefined) => any) | undefined;
|
|
3246
|
+
"onSection-toggle"?: ((event: ExtensionManagerSectionToggleEvent) => any) | undefined;
|
|
3247
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3248
|
+
action: (event: ExtensionManagerActionEvent) => any;
|
|
3249
|
+
"tab-change": (event: ExtensionManagerTabChangeEvent) => any;
|
|
3250
|
+
"name-click": (event: ExtensionManagerNameClickEvent) => any;
|
|
3251
|
+
"update:active-tab": (tabId: string | undefined) => any;
|
|
3252
|
+
"section-toggle": (event: ExtensionManagerSectionToggleEvent) => any;
|
|
3253
|
+
}, PublicProps, {
|
|
3254
|
+
emptyText: string;
|
|
3255
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
3256
|
+
P: {};
|
|
3257
|
+
B: {};
|
|
3258
|
+
D: {};
|
|
3259
|
+
C: {};
|
|
3260
|
+
M: {};
|
|
3261
|
+
Defaults: {};
|
|
3262
|
+
}, Readonly<ExtensionManagerProps> & Readonly<{
|
|
3263
|
+
onAction?: ((event: ExtensionManagerActionEvent) => any) | undefined;
|
|
3264
|
+
"onTab-change"?: ((event: ExtensionManagerTabChangeEvent) => any) | undefined;
|
|
3265
|
+
"onName-click"?: ((event: ExtensionManagerNameClickEvent) => any) | undefined;
|
|
3266
|
+
"onUpdate:active-tab"?: ((tabId: string | undefined) => any) | undefined;
|
|
3267
|
+
"onSection-toggle"?: ((event: ExtensionManagerSectionToggleEvent) => any) | undefined;
|
|
3268
|
+
}>, {}, {}, {}, {}, {
|
|
3269
|
+
emptyText: string;
|
|
3270
|
+
}>;
|
|
3271
|
+
__isFragment?: never;
|
|
3272
|
+
__isTeleport?: never;
|
|
3273
|
+
__isSuspense?: never;
|
|
3274
|
+
} & ComponentOptionsBase<Readonly<ExtensionManagerProps> & Readonly<{
|
|
3275
|
+
onAction?: ((event: ExtensionManagerActionEvent) => any) | undefined;
|
|
3276
|
+
"onTab-change"?: ((event: ExtensionManagerTabChangeEvent) => any) | undefined;
|
|
3277
|
+
"onName-click"?: ((event: ExtensionManagerNameClickEvent) => any) | undefined;
|
|
3278
|
+
"onUpdate:active-tab"?: ((tabId: string | undefined) => any) | undefined;
|
|
3279
|
+
"onSection-toggle"?: ((event: ExtensionManagerSectionToggleEvent) => any) | undefined;
|
|
3280
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3281
|
+
action: (event: ExtensionManagerActionEvent) => any;
|
|
3282
|
+
"tab-change": (event: ExtensionManagerTabChangeEvent) => any;
|
|
3283
|
+
"name-click": (event: ExtensionManagerNameClickEvent) => any;
|
|
3284
|
+
"update:active-tab": (tabId: string | undefined) => any;
|
|
3285
|
+
"section-toggle": (event: ExtensionManagerSectionToggleEvent) => any;
|
|
3286
|
+
}, string, {
|
|
3287
|
+
emptyText: string;
|
|
3288
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3289
|
+
$slots: Readonly<ExtensionManagerSlots> & ExtensionManagerSlots;
|
|
3290
|
+
}) & {
|
|
3291
|
+
install: <T>(app: App<T>) => void;
|
|
3292
|
+
Card: {
|
|
3293
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtensionCardProps> & Readonly<{
|
|
3294
|
+
onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
|
|
3295
|
+
"onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
3296
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3297
|
+
action: (payload: ExtensionCardActionEvent) => any;
|
|
3298
|
+
"name-click": (event: MouseEvent | KeyboardEvent) => any;
|
|
3299
|
+
}, PublicProps, {
|
|
3300
|
+
actions: ExtensionCardAction[];
|
|
3301
|
+
primaryActionsLimit: number;
|
|
3302
|
+
nameClickable: boolean;
|
|
3303
|
+
overflowMenuLabel: string;
|
|
3304
|
+
overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
|
|
3305
|
+
overflowMenuShowIcons: boolean;
|
|
3306
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
3307
|
+
P: {};
|
|
3308
|
+
B: {};
|
|
3309
|
+
D: {};
|
|
3310
|
+
C: {};
|
|
3311
|
+
M: {};
|
|
3312
|
+
Defaults: {};
|
|
3313
|
+
}, Readonly<ExtensionCardProps> & Readonly<{
|
|
3314
|
+
onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
|
|
3315
|
+
"onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
3316
|
+
}>, {}, {}, {}, {}, {
|
|
3317
|
+
actions: ExtensionCardAction[];
|
|
3318
|
+
primaryActionsLimit: number;
|
|
3319
|
+
nameClickable: boolean;
|
|
3320
|
+
overflowMenuLabel: string;
|
|
3321
|
+
overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
|
|
3322
|
+
overflowMenuShowIcons: boolean;
|
|
3323
|
+
}>;
|
|
3324
|
+
__isFragment?: never;
|
|
3325
|
+
__isTeleport?: never;
|
|
3326
|
+
__isSuspense?: never;
|
|
3327
|
+
} & ComponentOptionsBase<Readonly<ExtensionCardProps> & Readonly<{
|
|
3328
|
+
onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
|
|
3329
|
+
"onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
3330
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3331
|
+
action: (payload: ExtensionCardActionEvent) => any;
|
|
3332
|
+
"name-click": (event: MouseEvent | KeyboardEvent) => any;
|
|
3333
|
+
}, string, {
|
|
3334
|
+
actions: ExtensionCardAction[];
|
|
3335
|
+
primaryActionsLimit: number;
|
|
3336
|
+
nameClickable: boolean;
|
|
3337
|
+
overflowMenuLabel: string;
|
|
3338
|
+
overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
|
|
3339
|
+
overflowMenuShowIcons: boolean;
|
|
3340
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3341
|
+
$slots: Readonly<ExtensionCardSlots> & ExtensionCardSlots;
|
|
3342
|
+
}) & {
|
|
3343
|
+
install: typeof extensionCardInstall;
|
|
3344
|
+
};
|
|
3345
|
+
CardGrid: {
|
|
3346
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtensionCardGridProps> & Readonly<{
|
|
3347
|
+
onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
|
|
3348
|
+
"onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
|
|
3349
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3350
|
+
action: (payload: ExtensionCardGridActionEvent) => any;
|
|
3351
|
+
"name-click": (payload: ExtensionCardGridNameClickEvent) => any;
|
|
3352
|
+
}, PublicProps, {
|
|
3353
|
+
emptyText: string;
|
|
3354
|
+
nameClickable: boolean;
|
|
3355
|
+
overflowMenuShowIcons: boolean;
|
|
3356
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLUListElement, ComponentProvideOptions, {
|
|
3357
|
+
P: {};
|
|
3358
|
+
B: {};
|
|
3359
|
+
D: {};
|
|
3360
|
+
C: {};
|
|
3361
|
+
M: {};
|
|
3362
|
+
Defaults: {};
|
|
3363
|
+
}, Readonly<ExtensionCardGridProps> & Readonly<{
|
|
3364
|
+
onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
|
|
3365
|
+
"onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
|
|
3366
|
+
}>, {}, {}, {}, {}, {
|
|
3367
|
+
emptyText: string;
|
|
3368
|
+
nameClickable: boolean;
|
|
3369
|
+
overflowMenuShowIcons: boolean;
|
|
3370
|
+
}>;
|
|
3371
|
+
__isFragment?: never;
|
|
3372
|
+
__isTeleport?: never;
|
|
3373
|
+
__isSuspense?: never;
|
|
3374
|
+
} & ComponentOptionsBase<Readonly<ExtensionCardGridProps> & Readonly<{
|
|
3375
|
+
onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
|
|
3376
|
+
"onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
|
|
3377
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
3378
|
+
action: (payload: ExtensionCardGridActionEvent) => any;
|
|
3379
|
+
"name-click": (payload: ExtensionCardGridNameClickEvent) => any;
|
|
3380
|
+
}, string, {
|
|
3381
|
+
emptyText: string;
|
|
3382
|
+
nameClickable: boolean;
|
|
3383
|
+
overflowMenuShowIcons: boolean;
|
|
3384
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3385
|
+
$slots: Readonly<ExtensionCardGridSlots> & ExtensionCardGridSlots;
|
|
3386
|
+
}) & {
|
|
3387
|
+
install: typeof extensionCardGridInstall;
|
|
3388
|
+
};
|
|
3389
|
+
};
|
|
3390
|
+
export { ExtensionManager }
|
|
3391
|
+
export { ExtensionManager as TrExtensionManager }
|
|
3392
|
+
|
|
3393
|
+
export declare interface ExtensionManagerActionEvent {
|
|
3394
|
+
tabId: string;
|
|
3395
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3396
|
+
itemId: string;
|
|
3397
|
+
action: ExtensionCardActionEvent;
|
|
3398
|
+
}
|
|
3399
|
+
|
|
3400
|
+
export declare interface ExtensionManagerEmits {
|
|
3401
|
+
(e: 'update:active-tab', tabId: string | undefined): void;
|
|
3402
|
+
(e: 'tab-change', event: ExtensionManagerTabChangeEvent): void;
|
|
3403
|
+
(e: 'section-toggle', event: ExtensionManagerSectionToggleEvent): void;
|
|
3404
|
+
(e: 'action', event: ExtensionManagerActionEvent): void;
|
|
3405
|
+
(e: 'name-click', event: ExtensionManagerNameClickEvent): void;
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
export declare type ExtensionManagerItem = ExtensionCardGridItem & {
|
|
3409
|
+
installed?: boolean;
|
|
3410
|
+
tags?: string[];
|
|
3411
|
+
};
|
|
3412
|
+
|
|
3413
|
+
export declare interface ExtensionManagerNameClickEvent {
|
|
3414
|
+
tabId: string;
|
|
3415
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3416
|
+
itemId: string;
|
|
3417
|
+
event: MouseEvent | KeyboardEvent;
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
export declare interface ExtensionManagerProps {
|
|
3421
|
+
tabs: ExtensionManagerTab[];
|
|
3422
|
+
activeTab?: string;
|
|
3423
|
+
defaultActiveTab?: string;
|
|
3424
|
+
title?: string;
|
|
3425
|
+
emptyText?: string;
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
export declare type ExtensionManagerSectionKey = 'installed' | 'available';
|
|
3429
|
+
|
|
3430
|
+
export declare interface ExtensionManagerSectionToggleEvent {
|
|
3431
|
+
tabId: string;
|
|
3432
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3433
|
+
expanded: boolean;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
export declare interface ExtensionManagerSlots {
|
|
3437
|
+
'header-actions'?: () => VNode[];
|
|
3438
|
+
tab?: (props: {
|
|
3439
|
+
tab: ExtensionManagerTab;
|
|
3440
|
+
active: boolean;
|
|
3441
|
+
select: () => void;
|
|
3442
|
+
}) => VNode[];
|
|
3443
|
+
item?: (props: {
|
|
3444
|
+
tab: ExtensionManagerTab;
|
|
3445
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3446
|
+
item: ExtensionCardGridItem;
|
|
3447
|
+
index: number;
|
|
3448
|
+
}) => VNode[];
|
|
3449
|
+
empty?: (props: {
|
|
3450
|
+
tab: ExtensionManagerTab;
|
|
3451
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3452
|
+
title: string;
|
|
3453
|
+
}) => VNode[];
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
export declare interface ExtensionManagerTab {
|
|
3457
|
+
id: string;
|
|
3458
|
+
label: string;
|
|
3459
|
+
items: ExtensionManagerItem[];
|
|
3460
|
+
}
|
|
3461
|
+
|
|
3462
|
+
export declare interface ExtensionManagerTabChangeEvent {
|
|
3463
|
+
tabId: string;
|
|
3464
|
+
}
|
|
3465
|
+
|
|
3466
|
+
export declare interface ExtensionManagerTagOption {
|
|
3467
|
+
value: string;
|
|
3468
|
+
label: string;
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3005
3471
|
export declare interface FeedbackEvents {
|
|
3006
3472
|
(e: 'operation', name: string): void;
|
|
3007
3473
|
(e: 'action', name: string): void;
|
|
@@ -3154,6 +3620,8 @@ declare const install_15: <T>(app: App<T>) => void;
|
|
|
3154
3620
|
|
|
3155
3621
|
declare const install_16: <T>(app: App<T>) => void;
|
|
3156
3622
|
|
|
3623
|
+
declare const install_17: <T>(app: App<T>) => void;
|
|
3624
|
+
|
|
3157
3625
|
declare const install_2: <T>(app: App<T>) => void;
|
|
3158
3626
|
|
|
3159
3627
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -3507,6 +3975,103 @@ declare type MentionStructuredItem = {
|
|
|
3507
3975
|
value: string;
|
|
3508
3976
|
};
|
|
3509
3977
|
|
|
3978
|
+
export declare interface ModelSelectorEmits {
|
|
3979
|
+
(event: 'update:modelValue', value: string | null): void;
|
|
3980
|
+
(event: 'change', option: ModelSelectorOption): void;
|
|
3981
|
+
(event: 'update:reasoningEffort', value: string | null): void;
|
|
3982
|
+
(event: 'reasoning-effort-change', option: ModelSelectorReasoningEffortOption | null): void;
|
|
3983
|
+
(event: 'update:open', open: boolean): void;
|
|
3984
|
+
}
|
|
3985
|
+
|
|
3986
|
+
export declare interface ModelSelectorEmptySlotProps {
|
|
3987
|
+
query: string;
|
|
3988
|
+
}
|
|
3989
|
+
|
|
3990
|
+
export declare type ModelSelectorFilterMethod = (query: string, option: ModelSelectorOption) => boolean;
|
|
3991
|
+
|
|
3992
|
+
export declare interface ModelSelectorFooterSlotProps extends ModelSelectorSlotProps {
|
|
3993
|
+
reasoningEfforts: readonly ModelSelectorReasoningEffortOption[];
|
|
3994
|
+
/** The effort currently supported by the selected model. Sticky unsupported values resolve to null. */
|
|
3995
|
+
reasoningEffortOption: ModelSelectorReasoningEffortOption | null;
|
|
3996
|
+
setReasoningEffort: (value: string | null) => void;
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
export declare interface ModelSelectorItemSlotProps {
|
|
4000
|
+
option: ModelSelectorOption;
|
|
4001
|
+
selected: boolean;
|
|
4002
|
+
highlighted: boolean;
|
|
4003
|
+
}
|
|
4004
|
+
|
|
4005
|
+
export declare interface ModelSelectorOption {
|
|
4006
|
+
value: string;
|
|
4007
|
+
label: string;
|
|
4008
|
+
description?: string;
|
|
4009
|
+
icon?: Component | string;
|
|
4010
|
+
disabled?: boolean;
|
|
4011
|
+
group?: string;
|
|
4012
|
+
reasoningEfforts?: ModelSelectorReasoningEfforts;
|
|
4013
|
+
}
|
|
4014
|
+
|
|
4015
|
+
export declare type ModelSelectorPanelClass = string | readonly string[] | Record<string, boolean>;
|
|
4016
|
+
|
|
4017
|
+
export declare interface ModelSelectorProps {
|
|
4018
|
+
models?: readonly ModelSelectorOption[];
|
|
4019
|
+
modelValue?: string | null;
|
|
4020
|
+
defaultValue?: string | null;
|
|
4021
|
+
reasoningEffort?: string | null;
|
|
4022
|
+
defaultReasoningEffort?: string | null;
|
|
4023
|
+
open?: boolean;
|
|
4024
|
+
defaultOpen?: boolean;
|
|
4025
|
+
closeOnSelect?: boolean;
|
|
4026
|
+
disabled?: boolean;
|
|
4027
|
+
searchable?: boolean;
|
|
4028
|
+
placeholder?: string;
|
|
4029
|
+
searchPlaceholder?: string;
|
|
4030
|
+
emptyText?: string;
|
|
4031
|
+
filterMethod?: ModelSelectorFilterMethod;
|
|
4032
|
+
variant?: ModelSelectorVariant;
|
|
4033
|
+
size?: ModelSelectorSize;
|
|
4034
|
+
placement?: Placement;
|
|
4035
|
+
offset?: number;
|
|
4036
|
+
appendTo?: string | HTMLElement;
|
|
4037
|
+
panelClass?: ModelSelectorPanelClass;
|
|
4038
|
+
reasoningEffortLabel?: string;
|
|
4039
|
+
}
|
|
4040
|
+
|
|
4041
|
+
export declare interface ModelSelectorReasoningEffortOption {
|
|
4042
|
+
readonly value: string;
|
|
4043
|
+
readonly label: string;
|
|
4044
|
+
readonly disabled?: boolean;
|
|
4045
|
+
}
|
|
4046
|
+
|
|
4047
|
+
export declare type ModelSelectorReasoningEfforts = boolean | readonly ModelSelectorReasoningEffortOption[];
|
|
4048
|
+
|
|
4049
|
+
export declare type ModelSelectorSize = 'small' | 'normal' | 'large';
|
|
4050
|
+
|
|
4051
|
+
export declare interface ModelSelectorSlotProps {
|
|
4052
|
+
option: ModelSelectorOption | null;
|
|
4053
|
+
query: string;
|
|
4054
|
+
close: () => void;
|
|
4055
|
+
}
|
|
4056
|
+
|
|
4057
|
+
export declare interface ModelSelectorSlots {
|
|
4058
|
+
trigger?: (props: ModelSelectorTriggerSlotProps) => VNode | VNode[];
|
|
4059
|
+
item?: (props: ModelSelectorItemSlotProps) => VNode | VNode[];
|
|
4060
|
+
empty?: (props: ModelSelectorEmptySlotProps) => VNode | VNode[];
|
|
4061
|
+
header?: (props: ModelSelectorSlotProps) => VNode | VNode[];
|
|
4062
|
+
footer?: (props: ModelSelectorFooterSlotProps) => VNode | VNode[];
|
|
4063
|
+
}
|
|
4064
|
+
|
|
4065
|
+
export declare interface ModelSelectorTriggerSlotProps {
|
|
4066
|
+
option: ModelSelectorOption | null;
|
|
4067
|
+
label: string;
|
|
4068
|
+
open: boolean;
|
|
4069
|
+
/** The effort currently supported by the selected model. Sticky unsupported values resolve to null. */
|
|
4070
|
+
reasoningEffortOption: ModelSelectorReasoningEffortOption | null;
|
|
4071
|
+
}
|
|
4072
|
+
|
|
4073
|
+
export declare type ModelSelectorVariant = 'outline' | 'ghost' | 'muted';
|
|
4074
|
+
|
|
3510
4075
|
declare const openFileDialog: (localOptions?: Partial<UseFileDialogOptions>) => void;
|
|
3511
4076
|
|
|
3512
4077
|
export declare type PluginAddState = 'idle' | 'loading' | 'added';
|
|
@@ -3574,7 +4139,7 @@ export declare interface PopupConfig {
|
|
|
3574
4139
|
};
|
|
3575
4140
|
}
|
|
3576
4141
|
|
|
3577
|
-
declare const Prompt: typeof
|
|
4142
|
+
declare const Prompt: typeof _default_41 & {
|
|
3578
4143
|
install: typeof installPrompt;
|
|
3579
4144
|
};
|
|
3580
4145
|
export { Prompt }
|
|
@@ -3611,7 +4176,7 @@ export declare interface PromptProps {
|
|
|
3611
4176
|
size?: 'small' | 'medium' | 'large';
|
|
3612
4177
|
}
|
|
3613
4178
|
|
|
3614
|
-
declare const Prompts: typeof
|
|
4179
|
+
declare const Prompts: typeof _default_42 & {
|
|
3615
4180
|
install: typeof installPrompts;
|
|
3616
4181
|
};
|
|
3617
4182
|
export { Prompts }
|
|
@@ -4710,7 +5275,7 @@ export declare interface SuggestionOptions {
|
|
|
4710
5275
|
onSelect?: (item: SenderSuggestionItem) => void | false;
|
|
4711
5276
|
}
|
|
4712
5277
|
|
|
4713
|
-
declare const SuggestionPillButton: typeof
|
|
5278
|
+
declare const SuggestionPillButton: typeof _default_44 & {
|
|
4714
5279
|
install: typeof installPillButton;
|
|
4715
5280
|
};
|
|
4716
5281
|
export { SuggestionPillButton }
|
|
@@ -5012,14 +5577,14 @@ declare interface TemplateOptions {
|
|
|
5012
5577
|
* ```
|
|
5013
5578
|
*/
|
|
5014
5579
|
items?: TemplateItem[] | Ref<TemplateItem[]>;
|
|
5015
|
-
/**
|
|
5016
|
-
* Template Select 下拉菜单的 Teleport 目标
|
|
5017
|
-
*/
|
|
5018
|
-
appendTo?: string | HTMLElement;
|
|
5019
5580
|
/**
|
|
5020
5581
|
* HTML 属性
|
|
5021
5582
|
*/
|
|
5022
5583
|
HTMLAttributes?: Record<string, unknown>;
|
|
5584
|
+
/**
|
|
5585
|
+
* 下拉菜单挂载目标
|
|
5586
|
+
*/
|
|
5587
|
+
appendTo?: string | HTMLElement;
|
|
5023
5588
|
}
|
|
5024
5589
|
|
|
5025
5590
|
export declare interface ThemeProviderProps {
|
|
@@ -5056,9 +5621,16 @@ export declare interface ToolCall {
|
|
|
5056
5621
|
[x: string]: any;
|
|
5057
5622
|
}
|
|
5058
5623
|
|
|
5624
|
+
declare interface ToolCallState {
|
|
5625
|
+
status?: ToolCallStatus;
|
|
5626
|
+
open?: boolean;
|
|
5627
|
+
description?: string;
|
|
5628
|
+
[key: string]: unknown;
|
|
5629
|
+
}
|
|
5630
|
+
|
|
5059
5631
|
declare type ToolCallStatus = (typeof toolCallStatus)[number];
|
|
5060
5632
|
|
|
5061
|
-
declare const toolCallStatus: readonly ["running", "success", "failed", "cancelled"];
|
|
5633
|
+
declare const toolCallStatus: readonly ["running", "success", "failed", "cancelled", "awaiting-approval", "denied"];
|
|
5062
5634
|
|
|
5063
5635
|
/**
|
|
5064
5636
|
* Tooltip 内容类型
|
|
@@ -5351,10 +5923,7 @@ export declare const useTheme: () => {
|
|
|
5351
5923
|
};
|
|
5352
5924
|
|
|
5353
5925
|
export declare const useToolCall: (props: BubbleContentRendererProps<ChatMessageContent, {
|
|
5354
|
-
toolCall?: Record<string,
|
|
5355
|
-
status?: ToolCallStatus;
|
|
5356
|
-
open?: boolean;
|
|
5357
|
-
}>;
|
|
5926
|
+
toolCall?: Record<string, ToolCallState>;
|
|
5358
5927
|
}> & {
|
|
5359
5928
|
toolCallIndex: number;
|
|
5360
5929
|
}) => {
|
|
@@ -5366,10 +5935,7 @@ export declare const useToolCall: (props: BubbleContentRendererProps<ChatMessage
|
|
|
5366
5935
|
readonly arguments?: any;
|
|
5367
5936
|
readonly result?: any;
|
|
5368
5937
|
}>>;
|
|
5369
|
-
state: ComputedRef<
|
|
5370
|
-
status: "success" | "running" | "failed" | "cancelled" | undefined;
|
|
5371
|
-
open: boolean | undefined;
|
|
5372
|
-
}>;
|
|
5938
|
+
state: ComputedRef<ToolCallState>;
|
|
5373
5939
|
};
|
|
5374
5940
|
|
|
5375
5941
|
export declare function useTouchDevice(): {
|