@fv-ui/ai-chat 2.0.0 → 2.0.2
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/README.md +48 -6
- package/dist/index.d.ts +177 -106
- package/dist/style.css +1 -1
- package/es/index.mjs +263 -77
- package/lib/index.js +262 -76
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { Component, Ref } from 'vue';
|
|
3
3
|
import * as _fv_ui_ai_chat_core from '@fv-ui/ai-chat-core';
|
|
4
|
-
import { LocaleInput, FvAiFolder, MessageNode, ChatFile, ActionCardPayload, ActionCardResult, BranchDirection, ActionCardStatus, ChatAdapter, ActionCardOption, FvAiSessionService, FvAiSearchHit } from '@fv-ui/ai-chat-core';
|
|
4
|
+
import { LocaleInput, FvAiFolder, MessageNode, ChatFile, ActionCardPayload, ActionCardResult, BranchDirection, ActionCardStatus, ChatAdapter, ActionCardOption, FvAiSessionService, FvAiSearchHit, FvCommonSessionItem } from '@fv-ui/ai-chat-core';
|
|
5
5
|
export * from '@fv-ui/ai-chat-core';
|
|
6
|
-
export { ActionCardExecuteFn, ActionCardOption, ActionCardPayload, ActionCardResult, ActionCardStatus, ActionPairItem, ActionRowContent, AdapterChatMessage, AiChatT, BranchDirection, ChatAdapter, ChatAdapterHandlers, ChatAdapterRequest, ChatFile, DRAFT_SESSION_ID, DeepPartialLocale, FvAiFolder, FvAiFolderListResult, FvAiHistoryQuery, FvAiMessagePage, FvAiSessionListQuery, FvAiSessionPage, FvAiSessionService, FvCommonAdapter, FvCommonAdapterConfig, FvCommonError, FvCommonMessage, FvCommonMessagePage, FvCommonSendBody, FvCommonSessionDetail, FvCommonSessionItem, FvCommonToolEvent, LocaleCode, LocaleInput, LocaleMessages, MessageFeedback, MessageNode, MessageNodeInput, MessageRole, MessageStatus, MessageTree, MessageUsage, OpenAIAdapter, OpenAIAdapterConfig, PlanRowContent, QueueItem, RawUsage, SSEEvent, SSEParser, SendOptions, StorageAdapter, ToolStepItem, UseChatOptions, UseChatReturn, UseMessagesReturn, UseRecordReturn, UseSendReturn, UseXStreamReturn, XRequest, actionItemsToMessageNodes, buildPlanRowAnchorMap, configureLocale, createLocalStorageAdapter, createMemoryAdapter, createMessageTree, createSSEParser, en, ko, mapHistoryToNodes, normalizeHistoryQuery, parseActionRowContent, parsePlanRowContent, parseSuggestions, resolveActionHistoryPairing, sanitizeActionCard, sessionToConversationItem, useChat, useMessages, useRecord, useSend, useXStream, vi, zhCN, zhHK } from '@fv-ui/ai-chat-core';
|
|
6
|
+
export { ActionCardExecuteFn, ActionCardOption, ActionCardPayload, ActionCardResult, ActionCardStatus, ActionPairItem, ActionRowContent, AdapterChatMessage, AiChatT, BranchDirection, ChatAdapter, ChatAdapterHandlers, ChatAdapterRequest, ChatFile, DRAFT_SESSION_ID, DeepPartialLocale, FvAiAroundPage, FvAiFolder, FvAiFolderListResult, FvAiHistoryQuery, FvAiMessagePage, FvAiSearchHit, FvAiSearchPage, FvAiSessionListQuery, FvAiSessionPage, FvAiSessionService, FvCommonAdapter, FvCommonAdapterConfig, FvCommonError, FvCommonMessage, FvCommonMessagePage, FvCommonSendBody, FvCommonSessionDetail, FvCommonSessionItem, FvCommonToolEvent, LocaleCode, LocaleInput, LocaleMessages, MessageFeedback, MessageNode, MessageNodeInput, MessageRole, MessageStatus, MessageTree, MessageUsage, OpenAIAdapter, OpenAIAdapterConfig, PlanRowContent, QueueItem, RawUsage, SSEEvent, SSEParser, SendOptions, StorageAdapter, ToolStepItem, UseChatOptions, UseChatReturn, UseMessagesReturn, UseRecordReturn, UseSendReturn, UseXStreamReturn, XRequest, actionItemsToMessageNodes, buildPlanRowAnchorMap, configureLocale, createLocalStorageAdapter, createMemoryAdapter, createMessageTree, createSSEParser, en, ko, mapHistoryToNodes, normalizeHistoryQuery, parseActionRowContent, parsePlanRowContent, parseSuggestions, resolveActionHistoryPairing, sanitizeActionCard, sessionToConversationItem, useChat, useMessages, useRecord, useSend, useXStream, vi, zhCN, zhHK } from '@fv-ui/ai-chat-core';
|
|
7
7
|
import { ElAvatar, ElPopover } from 'element-plus';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -24,7 +24,7 @@ interface CreateMarkdownOptions {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
type __VLS_Props$
|
|
27
|
+
type __VLS_Props$q = {
|
|
28
28
|
content: string;
|
|
29
29
|
mdPlugins?: CreateMarkdownOptions['mdPlugins'];
|
|
30
30
|
highlight?: (str: string, lang: string) => string;
|
|
@@ -38,14 +38,14 @@ type __VLS_Props$p = {
|
|
|
38
38
|
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
39
39
|
locale?: LocaleInput;
|
|
40
40
|
};
|
|
41
|
-
declare const __VLS_export$
|
|
41
|
+
declare const __VLS_export$q: vue.DefineComponent<__VLS_Props$q, {
|
|
42
42
|
getHtml: () => string;
|
|
43
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
43
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$q> & Readonly<{}>, {
|
|
44
44
|
tableToolbar: boolean;
|
|
45
45
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
46
|
-
declare const _default$
|
|
46
|
+
declare const _default$q: typeof __VLS_export$q;
|
|
47
47
|
|
|
48
|
-
type __VLS_Props$
|
|
48
|
+
type __VLS_Props$p = {
|
|
49
49
|
content: string;
|
|
50
50
|
isMarkdown?: boolean;
|
|
51
51
|
isFog?: boolean | {
|
|
@@ -68,7 +68,7 @@ declare function interrupt$1(): void;
|
|
|
68
68
|
declare function continueTy$1(): void;
|
|
69
69
|
declare function restart$1(): void;
|
|
70
70
|
declare function destroy$1(): void;
|
|
71
|
-
declare const __VLS_export$
|
|
71
|
+
declare const __VLS_export$p: vue.DefineComponent<__VLS_Props$p, {
|
|
72
72
|
interrupt: typeof interrupt$1;
|
|
73
73
|
continue: typeof continueTy$1;
|
|
74
74
|
restart: typeof restart$1;
|
|
@@ -80,7 +80,7 @@ declare const __VLS_export$o: vue.DefineComponent<__VLS_Props$o, {
|
|
|
80
80
|
start: () => any;
|
|
81
81
|
finish: () => any;
|
|
82
82
|
writing: () => any;
|
|
83
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
83
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$p> & Readonly<{
|
|
84
84
|
onStart?: (() => any) | undefined;
|
|
85
85
|
onFinish?: (() => any) | undefined;
|
|
86
86
|
onWriting?: (() => any) | undefined;
|
|
@@ -96,7 +96,7 @@ declare const __VLS_export$o: vue.DefineComponent<__VLS_Props$o, {
|
|
|
96
96
|
suffix?: string;
|
|
97
97
|
};
|
|
98
98
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
99
|
-
declare const _default$
|
|
99
|
+
declare const _default$p: typeof __VLS_export$p;
|
|
100
100
|
|
|
101
101
|
/** Typewriter 对外实例形态(defineExpose 经 proxyRefs 已自动解包,宽松兼容 Ref | 值) */
|
|
102
102
|
interface TypewriterExposed {
|
|
@@ -113,7 +113,7 @@ type TypingConfig = {
|
|
|
113
113
|
interval?: number;
|
|
114
114
|
suffix?: string;
|
|
115
115
|
};
|
|
116
|
-
type __VLS_Props$
|
|
116
|
+
type __VLS_Props$o = {
|
|
117
117
|
/** 气泡内容 */
|
|
118
118
|
content?: string;
|
|
119
119
|
/** 对齐:start 靠左 / end 靠右(end 时头像随 row-reverse 翻转到右侧) */
|
|
@@ -168,7 +168,7 @@ type __VLS_Slots$j = {} & {
|
|
|
168
168
|
} & {
|
|
169
169
|
footer?: (props: typeof __VLS_32) => any;
|
|
170
170
|
};
|
|
171
|
-
declare const __VLS_base$j: vue.DefineComponent<__VLS_Props$
|
|
171
|
+
declare const __VLS_base$j: vue.DefineComponent<__VLS_Props$o, {
|
|
172
172
|
interrupt: typeof interrupt;
|
|
173
173
|
continue: typeof continueTy;
|
|
174
174
|
restart: typeof restart;
|
|
@@ -198,7 +198,7 @@ declare const __VLS_base$j: vue.DefineComponent<__VLS_Props$n, {
|
|
|
198
198
|
finish: () => any;
|
|
199
199
|
writing: () => any;
|
|
200
200
|
"avatar-error": (event: Event) => any;
|
|
201
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
201
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$o> & Readonly<{
|
|
202
202
|
onStart?: (() => any) | undefined;
|
|
203
203
|
onFinish?: (() => any) | undefined;
|
|
204
204
|
onWriting?: (() => any) | undefined;
|
|
@@ -225,8 +225,8 @@ declare const __VLS_base$j: vue.DefineComponent<__VLS_Props$n, {
|
|
|
225
225
|
noPadding: boolean;
|
|
226
226
|
noStyle: boolean;
|
|
227
227
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
228
|
-
declare const __VLS_export$
|
|
229
|
-
declare const _default$
|
|
228
|
+
declare const __VLS_export$o: __VLS_WithSlots$j<typeof __VLS_base$j, __VLS_Slots$j>;
|
|
229
|
+
declare const _default$o: typeof __VLS_export$o;
|
|
230
230
|
|
|
231
231
|
type __VLS_WithSlots$j<T, S> = T & {
|
|
232
232
|
new (): {
|
|
@@ -239,7 +239,7 @@ interface BubbleListItemProps {
|
|
|
239
239
|
key: string | number;
|
|
240
240
|
[prop: string]: unknown;
|
|
241
241
|
}
|
|
242
|
-
type __VLS_Props$
|
|
242
|
+
type __VLS_Props$n = {
|
|
243
243
|
/** 气泡列表 */
|
|
244
244
|
list: BubbleListItemProps[];
|
|
245
245
|
/** 滚动容器最大高度(如 '350px'/'60vh') */
|
|
@@ -306,13 +306,13 @@ type __VLS_Slots$i = {} & {
|
|
|
306
306
|
} & {
|
|
307
307
|
footer?: (props: typeof __VLS_22) => any;
|
|
308
308
|
};
|
|
309
|
-
declare const __VLS_base$i: vue.DefineComponent<__VLS_Props$
|
|
309
|
+
declare const __VLS_base$i: vue.DefineComponent<__VLS_Props$n, {
|
|
310
310
|
scrollToTop: typeof scrollToTop$1;
|
|
311
311
|
scrollToBottom: typeof scrollToBottom$1;
|
|
312
312
|
scrollToBubble: typeof scrollToBubble;
|
|
313
313
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
314
314
|
complete: (instance: unknown, index: number) => any;
|
|
315
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
315
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$n> & Readonly<{
|
|
316
316
|
onComplete?: ((instance: unknown, index: number) => any) | undefined;
|
|
317
317
|
}>, {
|
|
318
318
|
locale: LocaleInput;
|
|
@@ -330,8 +330,8 @@ declare const __VLS_base$i: vue.DefineComponent<__VLS_Props$m, {
|
|
|
330
330
|
btnIconSize: number;
|
|
331
331
|
triggerIndices: "only-last" | "all" | number[];
|
|
332
332
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
333
|
-
declare const __VLS_export$
|
|
334
|
-
declare const _default$
|
|
333
|
+
declare const __VLS_export$n: __VLS_WithSlots$i<typeof __VLS_base$i, __VLS_Slots$i>;
|
|
334
|
+
declare const _default$n: typeof __VLS_export$n;
|
|
335
335
|
|
|
336
336
|
type __VLS_WithSlots$i<T, S> = T & {
|
|
337
337
|
new (): {
|
|
@@ -339,7 +339,7 @@ type __VLS_WithSlots$i<T, S> = T & {
|
|
|
339
339
|
};
|
|
340
340
|
};
|
|
341
341
|
|
|
342
|
-
type __VLS_Props$
|
|
342
|
+
type __VLS_Props$m = {
|
|
343
343
|
/** 输入值(v-model) */
|
|
344
344
|
modelValue?: string;
|
|
345
345
|
placeholder?: string;
|
|
@@ -425,7 +425,7 @@ type __VLS_Slots$h = {} & {
|
|
|
425
425
|
} & {
|
|
426
426
|
footer?: (props: typeof __VLS_134$1) => any;
|
|
427
427
|
};
|
|
428
|
-
declare const __VLS_base$h: vue.DefineComponent<__VLS_Props$
|
|
428
|
+
declare const __VLS_base$h: vue.DefineComponent<__VLS_Props$m, {
|
|
429
429
|
submit: typeof submit$1;
|
|
430
430
|
cancel: typeof cancel$1;
|
|
431
431
|
clear: typeof clear$2;
|
|
@@ -442,7 +442,7 @@ declare const __VLS_base$h: vue.DefineComponent<__VLS_Props$l, {
|
|
|
442
442
|
"recording-change": (recording: boolean) => any;
|
|
443
443
|
"paste-file": (file: File) => any;
|
|
444
444
|
"update:triggerPopoverVisible": (value: boolean) => any;
|
|
445
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
445
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$m> & Readonly<{
|
|
446
446
|
onSubmit?: ((value: string) => any) | undefined;
|
|
447
447
|
onTrigger?: ((keyword: string, visible: boolean) => any) | undefined;
|
|
448
448
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
@@ -479,8 +479,8 @@ declare const __VLS_base$h: vue.DefineComponent<__VLS_Props$l, {
|
|
|
479
479
|
allowEmptySubmit: boolean;
|
|
480
480
|
allowDrop: boolean;
|
|
481
481
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
482
|
-
declare const __VLS_export$
|
|
483
|
-
declare const _default$
|
|
482
|
+
declare const __VLS_export$m: __VLS_WithSlots$h<typeof __VLS_base$h, __VLS_Slots$h>;
|
|
483
|
+
declare const _default$m: typeof __VLS_export$m;
|
|
484
484
|
|
|
485
485
|
type __VLS_WithSlots$h<T, S> = T & {
|
|
486
486
|
new (): {
|
|
@@ -505,7 +505,7 @@ interface MentionCustomTrigger {
|
|
|
505
505
|
pinyin?: string;
|
|
506
506
|
}>;
|
|
507
507
|
}
|
|
508
|
-
type __VLS_Props$
|
|
508
|
+
type __VLS_Props$l = {
|
|
509
509
|
/** 输入值(v-model) */
|
|
510
510
|
modelValue?: string;
|
|
511
511
|
/** @ 触发的候选用户列表 */
|
|
@@ -534,7 +534,7 @@ declare var __VLS_21$4: any;
|
|
|
534
534
|
type __VLS_Slots$g = {} & {
|
|
535
535
|
[K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21$4) => any;
|
|
536
536
|
};
|
|
537
|
-
declare const __VLS_base$g: vue.DefineComponent<__VLS_Props$
|
|
537
|
+
declare const __VLS_base$g: vue.DefineComponent<__VLS_Props$l, {
|
|
538
538
|
submit: typeof submit;
|
|
539
539
|
cancel: typeof cancel;
|
|
540
540
|
clear: typeof clear$1;
|
|
@@ -554,7 +554,7 @@ declare const __VLS_base$g: vue.DefineComponent<__VLS_Props$k, {
|
|
|
554
554
|
"paste-file": (file: File) => any;
|
|
555
555
|
"update:triggerPopoverVisible": (value: boolean) => any;
|
|
556
556
|
"show-at-dialog": (visible: boolean) => any;
|
|
557
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
557
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$l> & Readonly<{
|
|
558
558
|
onSubmit?: ((value: string) => any) | undefined;
|
|
559
559
|
onTrigger?: ((keyword: string, visible: boolean) => any) | undefined;
|
|
560
560
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
@@ -571,8 +571,8 @@ declare const __VLS_base$g: vue.DefineComponent<__VLS_Props$k, {
|
|
|
571
571
|
customTrigger: MentionCustomTrigger[];
|
|
572
572
|
asyncMatchFun: (search: string) => Promise<MentionUserInfo[]>;
|
|
573
573
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
574
|
-
declare const __VLS_export$
|
|
575
|
-
declare const _default$
|
|
574
|
+
declare const __VLS_export$l: __VLS_WithSlots$g<typeof __VLS_base$g, __VLS_Slots$g>;
|
|
575
|
+
declare const _default$l: typeof __VLS_export$l;
|
|
576
576
|
|
|
577
577
|
type __VLS_WithSlots$g<T, S> = T & {
|
|
578
578
|
new (): {
|
|
@@ -667,7 +667,7 @@ type MixTag = {
|
|
|
667
667
|
type: 'text';
|
|
668
668
|
value: string;
|
|
669
669
|
};
|
|
670
|
-
type __VLS_Props$
|
|
670
|
+
type __VLS_Props$k = {
|
|
671
671
|
placeholder?: string;
|
|
672
672
|
/** 设备形态:仅影响样式(pc 默认 / h5 紧凑) */
|
|
673
673
|
device?: 'pc' | 'h5';
|
|
@@ -771,7 +771,7 @@ type __VLS_Slots$f = {} & {
|
|
|
771
771
|
} & {
|
|
772
772
|
footer?: (props: typeof __VLS_80) => any;
|
|
773
773
|
};
|
|
774
|
-
declare const __VLS_base$f: vue.DefineComponent<__VLS_Props$
|
|
774
|
+
declare const __VLS_base$f: vue.DefineComponent<__VLS_Props$k, {
|
|
775
775
|
getCurrentValue: typeof getCurrentValue;
|
|
776
776
|
focusToStart: typeof focusToStart;
|
|
777
777
|
focusToEnd: typeof placeCursorEnd;
|
|
@@ -803,7 +803,7 @@ declare const __VLS_base$f: vue.DefineComponent<__VLS_Props$j, {
|
|
|
803
803
|
"show-at-dialog": (visible: boolean) => any;
|
|
804
804
|
"show-select-dialog": (visible: boolean) => any;
|
|
805
805
|
"show-tag-dialog": (visible: boolean) => any;
|
|
806
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
806
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$k> & Readonly<{
|
|
807
807
|
onSubmit?: ((payload: SubmitResult) => any) | undefined;
|
|
808
808
|
onCancel?: (() => any) | undefined;
|
|
809
809
|
onChange?: ((payload: SubmitResult) => any) | undefined;
|
|
@@ -828,8 +828,8 @@ declare const __VLS_base$f: vue.DefineComponent<__VLS_Props$j, {
|
|
|
828
828
|
headerAnimationTimer: number;
|
|
829
829
|
customDialog: boolean;
|
|
830
830
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
831
|
-
declare const __VLS_export$
|
|
832
|
-
declare const _default$
|
|
831
|
+
declare const __VLS_export$k: __VLS_WithSlots$f<typeof __VLS_base$f, __VLS_Slots$f>;
|
|
832
|
+
declare const _default$k: typeof __VLS_export$k;
|
|
833
833
|
|
|
834
834
|
type __VLS_WithSlots$f<T, S> = T & {
|
|
835
835
|
new (): {
|
|
@@ -838,7 +838,7 @@ type __VLS_WithSlots$f<T, S> = T & {
|
|
|
838
838
|
};
|
|
839
839
|
|
|
840
840
|
type ThinkingStatus = 'start' | 'thinking' | 'end' | 'interrupted' | 'error';
|
|
841
|
-
type __VLS_Props$
|
|
841
|
+
type __VLS_Props$j = {
|
|
842
842
|
/** 展开/收起(v-model) */
|
|
843
843
|
modelValue?: boolean;
|
|
844
844
|
/** 思考内容(#content 插槽常嵌 FvMarkdown/Typewriter 渲染思考流) */
|
|
@@ -880,12 +880,12 @@ type __VLS_Slots$e = {} & {
|
|
|
880
880
|
} & {
|
|
881
881
|
content?: (props: typeof __VLS_64$1) => any;
|
|
882
882
|
};
|
|
883
|
-
declare const __VLS_base$e: vue.DefineComponent<__VLS_Props$
|
|
883
|
+
declare const __VLS_base$e: vue.DefineComponent<__VLS_Props$j, {
|
|
884
884
|
modelValue: vue.Ref<boolean, boolean>;
|
|
885
885
|
toggle: typeof toggle;
|
|
886
886
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
887
887
|
"update:modelValue": (value: boolean) => any;
|
|
888
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
888
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$j> & Readonly<{
|
|
889
889
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
890
890
|
}>, {
|
|
891
891
|
content: string;
|
|
@@ -899,8 +899,8 @@ declare const __VLS_base$e: vue.DefineComponent<__VLS_Props$i, {
|
|
|
899
899
|
maxWidth: string;
|
|
900
900
|
backgroundColor: string;
|
|
901
901
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
902
|
-
declare const __VLS_export$
|
|
903
|
-
declare const _default$
|
|
902
|
+
declare const __VLS_export$j: __VLS_WithSlots$e<typeof __VLS_base$e, __VLS_Slots$e>;
|
|
903
|
+
declare const _default$j: typeof __VLS_export$j;
|
|
904
904
|
|
|
905
905
|
type __VLS_WithSlots$e<T, S> = T & {
|
|
906
906
|
new (): {
|
|
@@ -929,7 +929,7 @@ interface ThoughtChainItem {
|
|
|
929
929
|
* 该步后续不再增长;仍在打字时剩余文字直接冲刷出完(一次性回落静态) */
|
|
930
930
|
closed?: boolean;
|
|
931
931
|
}
|
|
932
|
-
type __VLS_Props$
|
|
932
|
+
type __VLS_Props$i = {
|
|
933
933
|
/** 步骤列表 */
|
|
934
934
|
items: ThoughtChainItem[];
|
|
935
935
|
/** 排列方向:vertical 纵向(带连接线)/ horizontal 横向 */
|
|
@@ -948,9 +948,9 @@ declare var __VLS_45$2: {
|
|
|
948
948
|
type __VLS_Slots$d = {} & {
|
|
949
949
|
content?: (props: typeof __VLS_45$2) => any;
|
|
950
950
|
};
|
|
951
|
-
declare const __VLS_base$d: vue.DefineComponent<__VLS_Props$
|
|
951
|
+
declare const __VLS_base$d: vue.DefineComponent<__VLS_Props$i, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
952
952
|
typing: () => any;
|
|
953
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
953
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$i> & Readonly<{
|
|
954
954
|
onTyping?: (() => any) | undefined;
|
|
955
955
|
}>, {
|
|
956
956
|
items: ThoughtChainItem[];
|
|
@@ -958,8 +958,8 @@ declare const __VLS_base$d: vue.DefineComponent<__VLS_Props$h, {}, {}, {}, {}, v
|
|
|
958
958
|
collapsible: boolean;
|
|
959
959
|
showDuration: boolean;
|
|
960
960
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
961
|
-
declare const __VLS_export$
|
|
962
|
-
declare const _default$
|
|
961
|
+
declare const __VLS_export$i: __VLS_WithSlots$d<typeof __VLS_base$d, __VLS_Slots$d>;
|
|
962
|
+
declare const _default$i: typeof __VLS_export$i;
|
|
963
963
|
|
|
964
964
|
type __VLS_WithSlots$d<T, S> = T & {
|
|
965
965
|
new (): {
|
|
@@ -967,7 +967,7 @@ type __VLS_WithSlots$d<T, S> = T & {
|
|
|
967
967
|
};
|
|
968
968
|
};
|
|
969
969
|
|
|
970
|
-
type __VLS_Props$
|
|
970
|
+
type __VLS_Props$h = {
|
|
971
971
|
/** 图标:字符串为图片地址;也可传组件;缺省渲染内置品牌动图 */
|
|
972
972
|
icon?: string | Component;
|
|
973
973
|
/** 名称(未传回落内置问候语「你好,我是 Gizmo」) */
|
|
@@ -992,14 +992,14 @@ type __VLS_Slots$c = {} & {
|
|
|
992
992
|
} & {
|
|
993
993
|
suggestions?: (props: typeof __VLS_23) => any;
|
|
994
994
|
};
|
|
995
|
-
declare const __VLS_base$c: vue.DefineComponent<__VLS_Props$
|
|
995
|
+
declare const __VLS_base$c: vue.DefineComponent<__VLS_Props$h, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$h> & Readonly<{}>, {
|
|
996
996
|
name: string;
|
|
997
997
|
icon: string | Component;
|
|
998
998
|
description: string;
|
|
999
999
|
layout: "vertical" | "horizontal";
|
|
1000
1000
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1001
|
-
declare const __VLS_export$
|
|
1002
|
-
declare const _default$
|
|
1001
|
+
declare const __VLS_export$h: __VLS_WithSlots$c<typeof __VLS_base$c, __VLS_Slots$c>;
|
|
1002
|
+
declare const _default$h: typeof __VLS_export$h;
|
|
1003
1003
|
|
|
1004
1004
|
type __VLS_WithSlots$c<T, S> = T & {
|
|
1005
1005
|
new (): {
|
|
@@ -1014,7 +1014,7 @@ interface PromptItem {
|
|
|
1014
1014
|
icon?: string | Component;
|
|
1015
1015
|
disabled?: boolean;
|
|
1016
1016
|
}
|
|
1017
|
-
type __VLS_Props$
|
|
1017
|
+
type __VLS_Props$g = {
|
|
1018
1018
|
/** 建议 prompt 列表 */
|
|
1019
1019
|
prompts?: PromptItem[];
|
|
1020
1020
|
/** 网格标题 */
|
|
@@ -1032,17 +1032,17 @@ type __VLS_Slots$b = {} & {
|
|
|
1032
1032
|
} & {
|
|
1033
1033
|
footer?: (props: typeof __VLS_14) => any;
|
|
1034
1034
|
};
|
|
1035
|
-
declare const __VLS_base$b: vue.DefineComponent<__VLS_Props$
|
|
1035
|
+
declare const __VLS_base$b: vue.DefineComponent<__VLS_Props$g, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1036
1036
|
select: (item: PromptItem) => any;
|
|
1037
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1037
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$g> & Readonly<{
|
|
1038
1038
|
onSelect?: ((item: PromptItem) => any) | undefined;
|
|
1039
1039
|
}>, {
|
|
1040
1040
|
title: string;
|
|
1041
1041
|
prompts: PromptItem[];
|
|
1042
1042
|
wrap: boolean;
|
|
1043
1043
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1044
|
-
declare const __VLS_export$
|
|
1045
|
-
declare const _default$
|
|
1044
|
+
declare const __VLS_export$g: __VLS_WithSlots$b<typeof __VLS_base$b, __VLS_Slots$b>;
|
|
1045
|
+
declare const _default$g: typeof __VLS_export$g;
|
|
1046
1046
|
|
|
1047
1047
|
type __VLS_WithSlots$b<T, S> = T & {
|
|
1048
1048
|
new (): {
|
|
@@ -1050,7 +1050,7 @@ type __VLS_WithSlots$b<T, S> = T & {
|
|
|
1050
1050
|
};
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
1053
|
-
type __VLS_Props$
|
|
1053
|
+
type __VLS_Props$f = {
|
|
1054
1054
|
/** 文件名 */
|
|
1055
1055
|
name: string;
|
|
1056
1056
|
/** 文件形态:image 渲染缩略图,file 渲染文档图标卡 */
|
|
@@ -1076,7 +1076,7 @@ declare var __VLS_1$2: {};
|
|
|
1076
1076
|
type __VLS_Slots$a = {} & {
|
|
1077
1077
|
image?: (props: typeof __VLS_1$2) => any;
|
|
1078
1078
|
};
|
|
1079
|
-
declare const __VLS_base$a: vue.DefineComponent<__VLS_Props$
|
|
1079
|
+
declare const __VLS_base$a: vue.DefineComponent<__VLS_Props$f, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$f> & Readonly<{}>, {
|
|
1080
1080
|
url: string;
|
|
1081
1081
|
name: string;
|
|
1082
1082
|
locale: LocaleInput;
|
|
@@ -1088,8 +1088,8 @@ declare const __VLS_base$a: vue.DefineComponent<__VLS_Props$e, {}, {}, {}, {}, v
|
|
|
1088
1088
|
onDelete: () => void;
|
|
1089
1089
|
onDownload: () => void;
|
|
1090
1090
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1091
|
-
declare const __VLS_export$
|
|
1092
|
-
declare const _default$
|
|
1091
|
+
declare const __VLS_export$f: __VLS_WithSlots$a<typeof __VLS_base$a, __VLS_Slots$a>;
|
|
1092
|
+
declare const _default$f: typeof __VLS_export$f;
|
|
1093
1093
|
|
|
1094
1094
|
type __VLS_WithSlots$a<T, S> = T & {
|
|
1095
1095
|
new (): {
|
|
@@ -1114,7 +1114,7 @@ interface AttachmentItem {
|
|
|
1114
1114
|
* 可重传。缺省不调(纯本地待发列表,向后兼容)
|
|
1115
1115
|
*/
|
|
1116
1116
|
type AttachmentUpload = (file: File, item: AttachmentItem) => Promise<Partial<AttachmentItem> | undefined | void> | Partial<AttachmentItem> | undefined | void;
|
|
1117
|
-
type __VLS_Props$
|
|
1117
|
+
type __VLS_Props$e = {
|
|
1118
1118
|
/** 附件列表(v-model) */
|
|
1119
1119
|
modelValue?: object[];
|
|
1120
1120
|
/** input[type=file] accept 属性,如 'image/*' */
|
|
@@ -1150,7 +1150,7 @@ type __VLS_Slots$9 = {} & {
|
|
|
1150
1150
|
} & {
|
|
1151
1151
|
'list-thumb'?: (props: typeof __VLS_21$1) => any;
|
|
1152
1152
|
};
|
|
1153
|
-
declare const __VLS_base$9: vue.DefineComponent<__VLS_Props$
|
|
1153
|
+
declare const __VLS_base$9: vue.DefineComponent<__VLS_Props$e, {
|
|
1154
1154
|
openSelect: typeof openSelect;
|
|
1155
1155
|
retry: typeof retry;
|
|
1156
1156
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
@@ -1159,7 +1159,7 @@ declare const __VLS_base$9: vue.DefineComponent<__VLS_Props$d, {
|
|
|
1159
1159
|
change: (list: object[]) => any;
|
|
1160
1160
|
exceed: (file: File) => any;
|
|
1161
1161
|
uploaded: (item: AttachmentItem, result?: Partial<AttachmentItem> | undefined) => any;
|
|
1162
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1162
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$e> & Readonly<{
|
|
1163
1163
|
onDelete?: ((item: object) => any) | undefined;
|
|
1164
1164
|
"onUpdate:modelValue"?: ((list: object[]) => any) | undefined;
|
|
1165
1165
|
onChange?: ((list: object[]) => any) | undefined;
|
|
@@ -1176,8 +1176,8 @@ declare const __VLS_base$9: vue.DefineComponent<__VLS_Props$d, {
|
|
|
1176
1176
|
beforeUpload: (file: File) => boolean | Promise<boolean>;
|
|
1177
1177
|
upload: AttachmentUpload;
|
|
1178
1178
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1179
|
-
declare const __VLS_export$
|
|
1180
|
-
declare const _default$
|
|
1179
|
+
declare const __VLS_export$e: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
|
|
1180
|
+
declare const _default$e: typeof __VLS_export$e;
|
|
1181
1181
|
|
|
1182
1182
|
type __VLS_WithSlots$9<T, S> = T & {
|
|
1183
1183
|
new (): {
|
|
@@ -1202,7 +1202,7 @@ interface ConversationGroup {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
/** 内置菜单指令 */
|
|
1204
1204
|
type MenuCommand = 'rename' | 'delete';
|
|
1205
|
-
type __VLS_Props$
|
|
1205
|
+
type __VLS_Props$d = {
|
|
1206
1206
|
/** 会话列表(按 group 字段分组,保持插入顺序) */
|
|
1207
1207
|
items: ConversationItem[];
|
|
1208
1208
|
/** 当前激活会话 key(v-model:active) */
|
|
@@ -1226,6 +1226,18 @@ type __VLS_Props$c = {
|
|
|
1226
1226
|
* 根节点不滚动,scroll 事件永不触发,列表会被永久截断——须显式开启并
|
|
1227
1227
|
* 保证组件根自身可滚动(或 height 受限) */
|
|
1228
1228
|
virtualDisabled?: boolean;
|
|
1229
|
+
/** 外部滚动窗口化(虚拟滚动变体):滚动由外层共享容器(如 el-scrollbar)接管,
|
|
1230
|
+
* 裁剪窗口由消费方把容器 scrollTop / 视口高度 / 本列表在容器内容中的偏移
|
|
1231
|
+
* offsetTop 作为 props 传入驱动;组件根不自滚,以 spacer 撑满总高保证共享
|
|
1232
|
+
* 容器内后续区块偏移稳定。与 virtualDisabled 互斥时以本模式为准 */
|
|
1233
|
+
externalScroll?: boolean;
|
|
1234
|
+
/** 外层滚动容器的 scrollTop(容器内容坐标系;仅 externalScroll 模式读取) */
|
|
1235
|
+
scrollTop?: number;
|
|
1236
|
+
/** 外层滚动容器的视口高度(仅 externalScroll 模式读取;0/缺省按首屏默认窗口) */
|
|
1237
|
+
viewportHeight?: number;
|
|
1238
|
+
/** 本列表在外层滚动容器内容中的偏移(列表首个条目距容器内容顶的距离;
|
|
1239
|
+
* 仅 externalScroll 模式读取;配合 scrollTop 换算出相对视口位置) */
|
|
1240
|
+
offsetTop?: number;
|
|
1229
1241
|
/** 语言配置:内置语言名(如 'en')或部分文案对象(深合并覆盖) */
|
|
1230
1242
|
locale?: LocaleInput;
|
|
1231
1243
|
};
|
|
@@ -1240,7 +1252,7 @@ declare function deleteConfirm(key: string | number): Promise<void>;
|
|
|
1240
1252
|
type __VLS_ModelProps = {
|
|
1241
1253
|
'selectedKeys'?: (string | number)[];
|
|
1242
1254
|
};
|
|
1243
|
-
type __VLS_PublicProps = __VLS_Props$
|
|
1255
|
+
type __VLS_PublicProps = __VLS_Props$d & __VLS_ModelProps;
|
|
1244
1256
|
declare var __VLS_1$1: {
|
|
1245
1257
|
group: string | undefined;
|
|
1246
1258
|
groupKey: string | undefined;
|
|
@@ -1314,9 +1326,13 @@ declare const __VLS_base$8: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
1314
1326
|
rowHeight: number;
|
|
1315
1327
|
virtualThreshold: number;
|
|
1316
1328
|
virtualDisabled: boolean;
|
|
1329
|
+
externalScroll: boolean;
|
|
1330
|
+
scrollTop: number;
|
|
1331
|
+
viewportHeight: number;
|
|
1332
|
+
offsetTop: number;
|
|
1317
1333
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1318
|
-
declare const __VLS_export$
|
|
1319
|
-
declare const _default$
|
|
1334
|
+
declare const __VLS_export$d: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
|
|
1335
|
+
declare const _default$d: typeof __VLS_export$d;
|
|
1320
1336
|
|
|
1321
1337
|
type __VLS_WithSlots$8<T, S> = T & {
|
|
1322
1338
|
new (): {
|
|
@@ -1324,7 +1340,7 @@ type __VLS_WithSlots$8<T, S> = T & {
|
|
|
1324
1340
|
};
|
|
1325
1341
|
};
|
|
1326
1342
|
|
|
1327
|
-
type __VLS_Props$
|
|
1343
|
+
type __VLS_Props$c = {
|
|
1328
1344
|
mode: 'name' | 'move';
|
|
1329
1345
|
visible: boolean;
|
|
1330
1346
|
/** move 模式候选文件夹(未分组恒在列,不在此数组) */
|
|
@@ -1335,14 +1351,14 @@ type __VLS_Props$b = {
|
|
|
1335
1351
|
initialName?: string;
|
|
1336
1352
|
locale?: LocaleInput;
|
|
1337
1353
|
};
|
|
1338
|
-
declare const __VLS_export$
|
|
1354
|
+
declare const __VLS_export$c: vue.DefineComponent<__VLS_Props$c, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1339
1355
|
"update:visible": (v: boolean) => any;
|
|
1340
1356
|
confirm: (payload: {
|
|
1341
1357
|
name: string;
|
|
1342
1358
|
} | {
|
|
1343
1359
|
folderId: string | null;
|
|
1344
1360
|
}) => any;
|
|
1345
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1361
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$c> & Readonly<{
|
|
1346
1362
|
"onUpdate:visible"?: ((v: boolean) => any) | undefined;
|
|
1347
1363
|
onConfirm?: ((payload: {
|
|
1348
1364
|
name: string;
|
|
@@ -1355,7 +1371,7 @@ declare const __VLS_export$b: vue.DefineComponent<__VLS_Props$b, {}, {}, {}, {},
|
|
|
1355
1371
|
folders: FvAiFolder[];
|
|
1356
1372
|
initialName: string;
|
|
1357
1373
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1358
|
-
declare const _default$
|
|
1374
|
+
declare const _default$c: typeof __VLS_export$c;
|
|
1359
1375
|
|
|
1360
1376
|
/** 色板槽位项:色值字符串(透明度走全局 props)或对象(可按色覆盖透明度/渐变/缩放) */
|
|
1361
1377
|
interface FvBlobHaloColor {
|
|
@@ -1373,7 +1389,7 @@ interface FvBlobHaloColor {
|
|
|
1373
1389
|
/** 本色团缩放(0~1+,缺省回落槽位内置:1/2/3 槽 .8/.78/.76、高光位 .62) */
|
|
1374
1390
|
scale?: number;
|
|
1375
1391
|
}
|
|
1376
|
-
type __VLS_Props$
|
|
1392
|
+
type __VLS_Props$b = {
|
|
1377
1393
|
/**
|
|
1378
1394
|
* 色团色板(每色一组正体 + alt 淡体):槽位传色值字符串或
|
|
1379
1395
|
* { color, opacity?, altOpacity? } 对象;null/undefined 保留默认色
|
|
@@ -1392,7 +1408,7 @@ type __VLS_Props$a = {
|
|
|
1392
1408
|
/** 暂停全部动画(静帧装饰) */
|
|
1393
1409
|
paused?: boolean;
|
|
1394
1410
|
};
|
|
1395
|
-
declare const __VLS_export$
|
|
1411
|
+
declare const __VLS_export$b: vue.DefineComponent<__VLS_Props$b, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props$b> & Readonly<{}>, {
|
|
1396
1412
|
size: number;
|
|
1397
1413
|
colors: (string | FvBlobHaloColor | null | undefined)[];
|
|
1398
1414
|
scale: number;
|
|
@@ -1401,7 +1417,7 @@ declare const __VLS_export$a: vue.DefineComponent<__VLS_Props$a, {}, {}, {}, {},
|
|
|
1401
1417
|
rotateDuration: number;
|
|
1402
1418
|
paused: boolean;
|
|
1403
1419
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1404
|
-
declare const _default$
|
|
1420
|
+
declare const _default$b: typeof __VLS_export$b;
|
|
1405
1421
|
|
|
1406
1422
|
/** 写操作确认卡节点执行器(回调收 (card, kind);AiMessages/AiChat 透传) */
|
|
1407
1423
|
type MessageActionCardExecutor = (card: ActionCardPayload, kind: 'confirm' | 'cancel') => Promise<ActionCardResult | void>;
|
|
@@ -1418,7 +1434,7 @@ interface AiMessageBranchInfo {
|
|
|
1418
1434
|
/** 当前分支序号(1 起) */
|
|
1419
1435
|
index: number;
|
|
1420
1436
|
}
|
|
1421
|
-
type __VLS_Props$
|
|
1437
|
+
type __VLS_Props$a = {
|
|
1422
1438
|
/** 消息节点(树节点代理,流式期间 content/reasoning 增长驱动更新) */
|
|
1423
1439
|
message: MessageNode;
|
|
1424
1440
|
/** 同层分支元数据;缺省视为单分支(不渲染切换器) */
|
|
@@ -1592,7 +1608,7 @@ type __VLS_Slots$7 = {
|
|
|
1592
1608
|
/** 展开/折叠本条消息的思考链(user 消息与无思考链消息调用无效) */
|
|
1593
1609
|
declare function expandThoughtChain(): void;
|
|
1594
1610
|
declare function collapseThoughtChain(): void;
|
|
1595
|
-
declare const __VLS_base$7: vue.DefineComponent<__VLS_Props$
|
|
1611
|
+
declare const __VLS_base$7: vue.DefineComponent<__VLS_Props$a, {
|
|
1596
1612
|
message: vue.ComputedRef<MessageNode>;
|
|
1597
1613
|
expandThoughtChain: typeof expandThoughtChain;
|
|
1598
1614
|
collapseThoughtChain: typeof collapseThoughtChain;
|
|
@@ -1610,7 +1626,7 @@ declare const __VLS_base$7: vue.DefineComponent<__VLS_Props$9, {
|
|
|
1610
1626
|
status: Exclude<ActionCardStatus, "pending" | "loading">;
|
|
1611
1627
|
result?: ActionCardResult;
|
|
1612
1628
|
}) => any;
|
|
1613
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1629
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$a> & Readonly<{
|
|
1614
1630
|
onTyping?: (() => any) | undefined;
|
|
1615
1631
|
onCopy?: ((message: MessageNode) => any) | undefined;
|
|
1616
1632
|
onRegenerate?: ((message: MessageNode) => any) | undefined;
|
|
@@ -1655,8 +1671,8 @@ declare const __VLS_base$7: vue.DefineComponent<__VLS_Props$9, {
|
|
|
1655
1671
|
actionCardExecutor: MessageActionCardExecutor;
|
|
1656
1672
|
locateMessageId: string;
|
|
1657
1673
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1658
|
-
declare const __VLS_export$
|
|
1659
|
-
declare const _default$
|
|
1674
|
+
declare const __VLS_export$a: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
|
|
1675
|
+
declare const _default$a: typeof __VLS_export$a;
|
|
1660
1676
|
|
|
1661
1677
|
type __VLS_WithSlots$7<T, S> = T & {
|
|
1662
1678
|
new (): {
|
|
@@ -1672,7 +1688,7 @@ interface AiMessagesSuggestion {
|
|
|
1672
1688
|
icon?: string | Component;
|
|
1673
1689
|
disabled?: boolean;
|
|
1674
1690
|
}
|
|
1675
|
-
type __VLS_Props$
|
|
1691
|
+
type __VLS_Props$9 = {
|
|
1676
1692
|
/** 当前链消息(根 → 焦点,时间正序) */
|
|
1677
1693
|
messages: MessageNode[];
|
|
1678
1694
|
/** 全量节点表(分支计算需查父节点 childrenIds) */
|
|
@@ -1940,7 +1956,7 @@ type __VLS_Slots$6 = {} & {
|
|
|
1940
1956
|
} & {
|
|
1941
1957
|
'scroll-button-icon'?: (props: typeof __VLS_185) => any;
|
|
1942
1958
|
};
|
|
1943
|
-
declare const __VLS_base$6: vue.DefineComponent<__VLS_Props$
|
|
1959
|
+
declare const __VLS_base$6: vue.DefineComponent<__VLS_Props$9, {
|
|
1944
1960
|
scrollTo: typeof scrollTo$1;
|
|
1945
1961
|
scrollToBottom: typeof scrollToBottom;
|
|
1946
1962
|
scrollToTop: typeof scrollToTop;
|
|
@@ -1962,7 +1978,7 @@ declare const __VLS_base$6: vue.DefineComponent<__VLS_Props$8, {
|
|
|
1962
1978
|
}) => any;
|
|
1963
1979
|
"message-file-click": (file: ChatFile, message: MessageNode) => any;
|
|
1964
1980
|
"refresh-suggestions": () => any;
|
|
1965
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
1981
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$9> & Readonly<{
|
|
1966
1982
|
onScroll?: ((event: Event) => any) | undefined;
|
|
1967
1983
|
onSelect?: ((item: AiMessagesSuggestion) => any) | undefined;
|
|
1968
1984
|
onCopy?: ((message: MessageNode) => any) | undefined;
|
|
@@ -2021,8 +2037,8 @@ declare const __VLS_base$6: vue.DefineComponent<__VLS_Props$8, {
|
|
|
2021
2037
|
scrollButtonThreshold: number;
|
|
2022
2038
|
actionCards: MessageNode[];
|
|
2023
2039
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2024
|
-
declare const __VLS_export$
|
|
2025
|
-
declare const _default$
|
|
2040
|
+
declare const __VLS_export$9: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
|
|
2041
|
+
declare const _default$9: typeof __VLS_export$9;
|
|
2026
2042
|
|
|
2027
2043
|
type __VLS_WithSlots$6<T, S> = T & {
|
|
2028
2044
|
new (): {
|
|
@@ -2054,7 +2070,7 @@ interface AiChatFeatures {
|
|
|
2054
2070
|
continueGenerate?: boolean;
|
|
2055
2071
|
fullscreenEditor?: boolean;
|
|
2056
2072
|
}
|
|
2057
|
-
type __VLS_Props$
|
|
2073
|
+
type __VLS_Props$8 = {
|
|
2058
2074
|
/** 默认模型(顶栏单选展示;未传 models 时作为单模型) */
|
|
2059
2075
|
model?: string;
|
|
2060
2076
|
/** 可选模型列表(multiple 选择器) */
|
|
@@ -2348,7 +2364,7 @@ type __VLS_Slots$5 = {} & {
|
|
|
2348
2364
|
} & {
|
|
2349
2365
|
'drop-mask'?: (props: typeof __VLS_134) => any;
|
|
2350
2366
|
};
|
|
2351
|
-
declare const __VLS_base$5: vue.DefineComponent<__VLS_Props$
|
|
2367
|
+
declare const __VLS_base$5: vue.DefineComponent<__VLS_Props$8, {
|
|
2352
2368
|
sendMessage: typeof sendMessage;
|
|
2353
2369
|
stop: typeof stop;
|
|
2354
2370
|
regenerate: typeof regenerate;
|
|
@@ -2388,7 +2404,7 @@ declare const __VLS_base$5: vue.DefineComponent<__VLS_Props$7, {
|
|
|
2388
2404
|
toolName: string;
|
|
2389
2405
|
status: "start" | "done";
|
|
2390
2406
|
}) => any;
|
|
2391
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
2407
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$8> & Readonly<{
|
|
2392
2408
|
onScroll?: ((event: Event) => any) | undefined;
|
|
2393
2409
|
onError?: ((err: Error, message?: MessageNode | undefined) => any) | undefined;
|
|
2394
2410
|
onCopy?: ((message: MessageNode) => any) | undefined;
|
|
@@ -2479,8 +2495,8 @@ declare const __VLS_base$5: vue.DefineComponent<__VLS_Props$7, {
|
|
|
2479
2495
|
actionCardOption: ActionCardOption;
|
|
2480
2496
|
theme: "light" | "dark" | "auto";
|
|
2481
2497
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2482
|
-
declare const __VLS_export$
|
|
2483
|
-
declare const _default$
|
|
2498
|
+
declare const __VLS_export$8: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
2499
|
+
declare const _default$8: typeof __VLS_export$8;
|
|
2484
2500
|
|
|
2485
2501
|
type __VLS_WithSlots$5<T, S> = T & {
|
|
2486
2502
|
new (): {
|
|
@@ -2496,7 +2512,7 @@ type __VLS_WithSlots$5<T, S> = T & {
|
|
|
2496
2512
|
* 网络超时断线)时卡片退回待确认可重试
|
|
2497
2513
|
*/
|
|
2498
2514
|
type ActionCardExecutor = (kind: 'confirm' | 'cancel') => Promise<ActionCardResult | void>;
|
|
2499
|
-
type __VLS_Props$
|
|
2515
|
+
type __VLS_Props$7 = {
|
|
2500
2516
|
/** 卡片载荷(SSE action_card 事件 / 历史 plan 行,原样透传) */
|
|
2501
2517
|
card: ActionCardPayload;
|
|
2502
2518
|
/** 卡片状态:待确认/执行中/成功/失败/已取消/已过期/已失效 */
|
|
@@ -2548,19 +2564,19 @@ type __VLS_Slots$4 = {
|
|
|
2548
2564
|
result?: ActionCardResult;
|
|
2549
2565
|
}) => unknown;
|
|
2550
2566
|
};
|
|
2551
|
-
declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$
|
|
2567
|
+
declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$7, {
|
|
2552
2568
|
card: vue.ComputedRef<ActionCardPayload>;
|
|
2553
2569
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
2554
2570
|
finish: (status: "success" | "invalid" | "failed" | "expired" | "cancelled") => any;
|
|
2555
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
2571
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$7> & Readonly<{
|
|
2556
2572
|
onFinish?: ((status: "success" | "invalid" | "failed" | "expired" | "cancelled") => any) | undefined;
|
|
2557
2573
|
}>, {
|
|
2558
2574
|
status: ActionCardStatus;
|
|
2559
2575
|
result: ActionCardResult;
|
|
2560
2576
|
execute: ActionCardExecutor;
|
|
2561
2577
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2562
|
-
declare const __VLS_export$
|
|
2563
|
-
declare const _default$
|
|
2578
|
+
declare const __VLS_export$7: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
2579
|
+
declare const _default$7: typeof __VLS_export$7;
|
|
2564
2580
|
|
|
2565
2581
|
type __VLS_WithSlots$4<T, S> = T & {
|
|
2566
2582
|
new (): {
|
|
@@ -2579,7 +2595,7 @@ interface AiArtifactItem {
|
|
|
2579
2595
|
/** 展示标题(缺省回退 key) */
|
|
2580
2596
|
title?: string;
|
|
2581
2597
|
}
|
|
2582
|
-
type __VLS_Props$
|
|
2598
|
+
type __VLS_Props$6 = {
|
|
2583
2599
|
/** artifact 列表(从消息 ```html / ```svg 代码块提取组装) */
|
|
2584
2600
|
artifacts: AiArtifactItem[];
|
|
2585
2601
|
/** 当前展示的 artifact key;为空时面板隐藏 */
|
|
@@ -2595,14 +2611,14 @@ type __VLS_Props$5 = {
|
|
|
2595
2611
|
};
|
|
2596
2612
|
declare function open$1(key: string): void;
|
|
2597
2613
|
declare function close$1(): void;
|
|
2598
|
-
declare const __VLS_export$
|
|
2614
|
+
declare const __VLS_export$6: vue.DefineComponent<__VLS_Props$6, {
|
|
2599
2615
|
open: typeof open$1;
|
|
2600
2616
|
close: typeof close$1;
|
|
2601
2617
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
2602
2618
|
change: (key: string) => any;
|
|
2603
2619
|
close: () => any;
|
|
2604
2620
|
navigate: (href: string) => any;
|
|
2605
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
2621
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$6> & Readonly<{
|
|
2606
2622
|
onChange?: ((key: string) => any) | undefined;
|
|
2607
2623
|
onClose?: (() => any) | undefined;
|
|
2608
2624
|
onNavigate?: ((href: string) => any) | undefined;
|
|
@@ -2613,7 +2629,7 @@ declare const __VLS_export$5: vue.DefineComponent<__VLS_Props$5, {
|
|
|
2613
2629
|
activeKey: string;
|
|
2614
2630
|
minWidth: string;
|
|
2615
2631
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2616
|
-
declare const _default$
|
|
2632
|
+
declare const _default$6: typeof __VLS_export$6;
|
|
2617
2633
|
|
|
2618
2634
|
interface __VLS_ConversationItem {
|
|
2619
2635
|
key: string | number;
|
|
@@ -2622,7 +2638,7 @@ interface __VLS_ConversationItem {
|
|
|
2622
2638
|
disabled?: boolean;
|
|
2623
2639
|
}
|
|
2624
2640
|
|
|
2625
|
-
type __VLS_Props$
|
|
2641
|
+
type __VLS_Props$5 = {
|
|
2626
2642
|
/** 会话数据服务(宿主注入;archive 可选,未实现时隐藏归档 tab 与菜单项) */
|
|
2627
2643
|
service: FvAiSessionService;
|
|
2628
2644
|
/** 当前会话 id(草稿哨兵或真实 id) */
|
|
@@ -2652,6 +2668,8 @@ type __VLS_Props$4 = {
|
|
|
2652
2668
|
searchHistoryKey?: string;
|
|
2653
2669
|
/** 搜索历史是否常驻弹窗底部(默认 false;true 时输入也展示在底部, false 时仅输入为空才展示) */
|
|
2654
2670
|
searchHistoryPinned?: boolean;
|
|
2671
|
+
/** 是否显示操作失败错误提示(默认 false):axios 统一拦截已弹后端 message 的场景保持 false;无统一拦截时可设 true 兜底提示 */
|
|
2672
|
+
showOperationError?: boolean;
|
|
2655
2673
|
};
|
|
2656
2674
|
|
|
2657
2675
|
declare var __VLS_brand: {};
|
|
@@ -2674,7 +2692,7 @@ type __VLS_Slots$3 = {} & {
|
|
|
2674
2692
|
item?: (props: typeof __VLS_item) => any;
|
|
2675
2693
|
};
|
|
2676
2694
|
|
|
2677
|
-
declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$
|
|
2695
|
+
declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$5, {
|
|
2678
2696
|
refresh: () => Promise<void>;
|
|
2679
2697
|
reload: () => Promise<void>;
|
|
2680
2698
|
closeSearch: () => void;
|
|
@@ -2684,7 +2702,7 @@ declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$4, {
|
|
|
2684
2702
|
'new-chat': () => any;
|
|
2685
2703
|
removed: (sessionId: string) => any;
|
|
2686
2704
|
'content-select': (hit: FvAiSearchHit) => any;
|
|
2687
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$
|
|
2705
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$5> & Readonly<{
|
|
2688
2706
|
"onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
|
|
2689
2707
|
onSelect?: ((sessionId: string, status?: 'ACTIVE' | 'ARCHIVED') => any) | undefined;
|
|
2690
2708
|
"onNew-chat"?: (() => any) | undefined;
|
|
@@ -2705,10 +2723,11 @@ declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$4, {
|
|
|
2705
2723
|
searchHistoryEnabled: boolean;
|
|
2706
2724
|
searchHistoryKey: string;
|
|
2707
2725
|
searchHistoryPinned: boolean;
|
|
2726
|
+
showOperationError: boolean;
|
|
2708
2727
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2709
2728
|
|
|
2710
|
-
declare const __VLS_export$
|
|
2711
|
-
declare const _default$
|
|
2729
|
+
declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
2730
|
+
declare const _default$5: typeof __VLS_export$5;
|
|
2712
2731
|
|
|
2713
2732
|
|
|
2714
2733
|
type __VLS_WithSlots$3<T, S> = T & {
|
|
@@ -2717,6 +2736,46 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
2717
2736
|
};
|
|
2718
2737
|
};
|
|
2719
2738
|
|
|
2739
|
+
type __VLS_Props$4 = {
|
|
2740
|
+
/** 显隐(v-model) */
|
|
2741
|
+
modelValue: boolean;
|
|
2742
|
+
/** 会话数据服务(search 为内容搜索,list 为标题命中;search 未实现时调用方不应挂载) */
|
|
2743
|
+
service: FvAiSessionService;
|
|
2744
|
+
/** 内容分页大小 */
|
|
2745
|
+
pageSize?: number;
|
|
2746
|
+
/** 语言配置 */
|
|
2747
|
+
locale?: LocaleInput;
|
|
2748
|
+
/** 输入框占位(缺省回落 locale.sessionSidebar.contentPlaceholder) */
|
|
2749
|
+
placeholder?: string;
|
|
2750
|
+
/** 是否启用搜索历史功能(默认 true) */
|
|
2751
|
+
searchHistoryEnabled?: boolean;
|
|
2752
|
+
/** 搜索历史 localStorage 存储 key(默认 'fv-ai-search-history') */
|
|
2753
|
+
searchHistoryKey?: string;
|
|
2754
|
+
/** 搜索历史是否常驻弹窗底部(默认 false;true 时输入也展示在底部, false 时仅输入为空才展示) */
|
|
2755
|
+
searchHistoryPinned?: boolean;
|
|
2756
|
+
};
|
|
2757
|
+
/** 供宿主调用:清空输入与结果(内部输入清空会再走一次防抖 watcher,空值即重置) */
|
|
2758
|
+
declare function reset(): void;
|
|
2759
|
+
declare const __VLS_export$4: vue.DefineComponent<__VLS_Props$4, {
|
|
2760
|
+
reset: typeof reset;
|
|
2761
|
+
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
2762
|
+
select: (session: FvCommonSessionItem, keyword: string) => any;
|
|
2763
|
+
"update:modelValue": (v: boolean) => any;
|
|
2764
|
+
"content-select": (hit: FvAiSearchHit, keyword: string) => any;
|
|
2765
|
+
}, string, vue.PublicProps, Readonly<__VLS_Props$4> & Readonly<{
|
|
2766
|
+
onSelect?: ((session: FvCommonSessionItem, keyword: string) => any) | undefined;
|
|
2767
|
+
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
2768
|
+
"onContent-select"?: ((hit: FvAiSearchHit, keyword: string) => any) | undefined;
|
|
2769
|
+
}>, {
|
|
2770
|
+
locale: LocaleInput;
|
|
2771
|
+
placeholder: string;
|
|
2772
|
+
pageSize: number;
|
|
2773
|
+
searchHistoryEnabled: boolean;
|
|
2774
|
+
searchHistoryKey: string;
|
|
2775
|
+
searchHistoryPinned: boolean;
|
|
2776
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
2777
|
+
declare const _default$4: typeof __VLS_export$4;
|
|
2778
|
+
|
|
2720
2779
|
type __VLS_Props$3 = {
|
|
2721
2780
|
/** 会话数据服务(宿主注入;list/rename/remove 面板不消费,接口完整传入) */
|
|
2722
2781
|
service: FvAiSessionService;
|
|
@@ -3014,6 +3073,8 @@ type __VLS_Props$2 = {
|
|
|
3014
3073
|
avatar?: string;
|
|
3015
3074
|
/** 会话数据服务(透传 Panel 与 Sidebar) */
|
|
3016
3075
|
service: FvAiSessionService;
|
|
3076
|
+
/** 是否显示操作失败错误提示(默认 false):axios 统一拦截已弹后端 message 的场景保持 false;无统一拦截时可设 true 兜底提示 */
|
|
3077
|
+
showOperationError?: boolean;
|
|
3017
3078
|
/** 聊天适配器(透传 Panel) */
|
|
3018
3079
|
adapter: ChatAdapter;
|
|
3019
3080
|
/** 当前会话 id(缺省内部 DRAFT 编排;传入则受控优先) */
|
|
@@ -3049,6 +3110,12 @@ type __VLS_Props$2 = {
|
|
|
3049
3110
|
searchPlaceholder?: string;
|
|
3050
3111
|
/** 内容搜索弹窗 placeholder(最大化态侧栏与非最大化态头部搜索共用;缺省回落 locale) */
|
|
3051
3112
|
searchContentPlaceholder?: string;
|
|
3113
|
+
/** 是否启用搜索历史功能(透传 Sidebar 与头部搜索弹窗;默认 true) */
|
|
3114
|
+
searchHistoryEnabled?: boolean;
|
|
3115
|
+
/** 搜索历史 localStorage 存储 key(透传;默认 'fv-ai-search-history',自定义可按业务隔离) */
|
|
3116
|
+
searchHistoryKey?: string;
|
|
3117
|
+
/** 搜索历史是否常驻弹窗底部(透传;默认 false) */
|
|
3118
|
+
searchHistoryPinned?: boolean;
|
|
3052
3119
|
/** 工具名 → 步骤展示名(透传 Panel) */
|
|
3053
3120
|
toolStepLabel?: (toolName: string) => string;
|
|
3054
3121
|
/** 开启输入区附件上传(透传 Panel) */
|
|
@@ -3184,6 +3251,7 @@ declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$2, {
|
|
|
3184
3251
|
collapsible: boolean;
|
|
3185
3252
|
suggestions: AiChatSuggestion[];
|
|
3186
3253
|
accept: string;
|
|
3254
|
+
offsetTop: number;
|
|
3187
3255
|
showTime: boolean;
|
|
3188
3256
|
resolveFileUrl: (file: ChatFile) => Promise<string> | string;
|
|
3189
3257
|
feedbackHandler: FeedbackHandler;
|
|
@@ -3201,13 +3269,16 @@ declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$2, {
|
|
|
3201
3269
|
uploadAttachment: (file: File, item: AttachmentItem) => Promise<Partial<AttachmentItem> | string | undefined | void> | Partial<AttachmentItem> | string | undefined | void;
|
|
3202
3270
|
actionCardOption: ActionCardOption;
|
|
3203
3271
|
theme: "light" | "dark" | "auto";
|
|
3272
|
+
searchHistoryEnabled: boolean;
|
|
3273
|
+
searchHistoryKey: string;
|
|
3274
|
+
searchHistoryPinned: boolean;
|
|
3204
3275
|
sessionId: string;
|
|
3205
3276
|
searchContent: boolean;
|
|
3206
3277
|
searchPlaceholder: string;
|
|
3207
3278
|
searchContentPlaceholder: string;
|
|
3279
|
+
showOperationError: boolean;
|
|
3208
3280
|
detailLimit: number;
|
|
3209
3281
|
historyLimit: number;
|
|
3210
|
-
offsetTop: number;
|
|
3211
3282
|
offsetBottom: number;
|
|
3212
3283
|
floatingHeight: string;
|
|
3213
3284
|
showModeToggle: boolean;
|
|
@@ -3376,11 +3447,11 @@ declare const _default: typeof __VLS_export;
|
|
|
3376
3447
|
/** name(文件名去扩展名)→ svg 源文本 */
|
|
3377
3448
|
declare const iconRegistry: Record<string, string>;
|
|
3378
3449
|
|
|
3379
|
-
declare const version = "
|
|
3450
|
+
declare const version = "2.0.0";
|
|
3380
3451
|
|
|
3381
3452
|
declare const FvSparkleIcon: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
3382
3453
|
[key: string]: any;
|
|
3383
3454
|
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
3384
3455
|
|
|
3385
|
-
export { _default$
|
|
3456
|
+
export { _default$7 as FvAiActionCard, _default$6 as FvAiArtifacts, _default$8 as FvAiChat, _default$1 as FvAiChatLauncher, _default$3 as FvAiChatPanel, _default$2 as FvAiChatWidget, _default$c as FvAiFolderDialog, _default$a as FvAiMessage, _default$9 as FvAiMessages, _default$4 as FvAiSearchModal, _default$5 as FvAiSessionSidebar, _default$e as FvAttachments, _default$b as FvBlobHalo, _default$o as FvBubble, _default$n as FvBubbleList, _default$d as FvConversations, _default$k as FvEditorSender, _default$f as FvFilesCard, _default$q as FvMarkdown, _default$l as FvMentionSender, _default$g as FvPrompts, _default$m as FvSender, FvSparkleIcon, _default as FvSvgIcon, _default$j as FvThinking, _default$i as FvThoughtChain, _default$p as FvTypewriter, _default$h as FvWelcome, iconRegistry, version };
|
|
3386
3457
|
export type { ActionCardExecutor, AiArtifactItem, AiChatArtifactsOptions, AiChatFeatures, AiChatSuggestion, AiMessageBranchInfo, AiMessagesSuggestion, AttachmentItem, AttachmentUpload, FeedbackHandler, FvBlobHaloColor, MessageActionCardExecutor };
|