@fv-ui/ai-chat 1.6.2 → 1.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ interface CreateMarkdownOptions {
23
23
  /**
24
24
  * zh-CN 语言包(默认语言)。
25
25
  * 值与各组件历史硬编码文案逐字一致(全角标点、省略号均保持),保证零配置升级无任何视觉变化。
26
- * 结构即 LocaleMessages 源型;en-US 以 satisfies 同构对齐。
26
+ * 结构即 LocaleMessages 源型;en/ko/vi/zh-HK 以类型注解同构对齐。
27
27
  */
28
28
  declare const zhCN: {
29
29
  common: {
@@ -48,9 +48,13 @@ declare const zhCN: {
48
48
  start: string;
49
49
  thinking: string;
50
50
  end: string;
51
+ /** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
52
+ interrupted: string;
51
53
  error: string;
52
54
  /** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
53
55
  endWithTools: string;
56
+ /** 多 item 总折叠头汇总文案(用户中断态,带工具次数;{n} = 工具步数量) */
57
+ interruptedWithTools: string;
54
58
  /** 思考链 text 步标题(进行中/已完结) */
55
59
  thinkingItem: string;
56
60
  thoughtDoneItem: string;
@@ -170,12 +174,21 @@ declare const zhCN: {
170
174
  };
171
175
 
172
176
  /**
173
- * 语言包类型:以 zh-CN 为源型推导(单一事实来源,勿手写接口——新增 key 只改 zh-CN,en 编译期报缺)。
177
+ * 语言包类型:以 zh-CN 为源型推导(单一事实来源,勿手写接口——新增 key 只改 zh-CN,其余包编译期报缺)。
174
178
  */
175
179
  type LocaleMessages = typeof zhCN;
176
180
 
177
- /** en-US 语言包(satisfies LocaleMessages:key 集合与 zh-CN 编译期对齐) */
178
- declare const enUS: LocaleMessages;
181
+ /** en 语言包(LocaleMessages 类型注解:key 集合与 zh-CN 编译期对齐) */
182
+ declare const en: LocaleMessages;
183
+
184
+ /** ko(한국어)语言包(LocaleMessages 类型注解:key 集合与 zh-CN 编译期对齐) */
185
+ declare const ko: LocaleMessages;
186
+
187
+ /** vi(Tiếng Việt)语言包(LocaleMessages 类型注解:key 集合与 zh-CN 编译期对齐) */
188
+ declare const vi: LocaleMessages;
189
+
190
+ /** zh-HK(香港繁體)语言包(LocaleMessages 类型注解:key 集合与 zh-CN 编译期对齐;港式用词:檔案/資料/支援/上載/傳送) */
191
+ declare const zhHK: LocaleMessages;
179
192
 
180
193
  /** 递归深 Partial:数组/叶子保持原样(与 deepMerge 覆盖语义对齐),对象层级逐层可选 */
181
194
  type DeepPartial<T> = T extends readonly (infer _)[] ? T : T extends object ? {
@@ -185,12 +198,662 @@ type DeepPartial<T> = T extends readonly (infer _)[] ? T : T extends object ? {
185
198
  type DeepPartialLocale = DeepPartial<LocaleMessages>;
186
199
  /** 组件 locale prop 形态:内置语言名字符串(整包切换)或部分文案对象(在基底上深合并) */
187
200
  type LocaleInput = string | DeepPartialLocale;
201
+ /** 内置语言包注册表(configureLocale 字符串形态查这里);zh-HK 系繁体需与简体区分故保留区域码,其余用短码 */
202
+ declare const PACKS: {
203
+ readonly 'zh-CN': {
204
+ common: {
205
+ copy: string;
206
+ delete: string;
207
+ confirm: string;
208
+ cancel: string;
209
+ retry: string;
210
+ close: string;
211
+ preview: string;
212
+ clear: string;
213
+ stop: string;
214
+ send: string;
215
+ download: string;
216
+ fullscreen: string;
217
+ collapse: string;
218
+ expand: string;
219
+ copied: string;
220
+ };
221
+ thinking: {
222
+ start: string;
223
+ thinking: string;
224
+ end: string;
225
+ interrupted: string;
226
+ error: string;
227
+ endWithTools: string;
228
+ interruptedWithTools: string;
229
+ thinkingItem: string;
230
+ thoughtDoneItem: string;
231
+ };
232
+ welcome: {
233
+ greetingPrefix: string;
234
+ greetingName: string;
235
+ description: string;
236
+ };
237
+ sender: {
238
+ clear: string;
239
+ stop: string;
240
+ send: string;
241
+ speech: string;
242
+ recordCancel: string;
243
+ recordConfirm: string;
244
+ micUnavailable: string;
245
+ inputPlaceholder: string;
246
+ };
247
+ editorSender: {
248
+ clear: string;
249
+ stop: string;
250
+ send: string;
251
+ inputPlaceholder: string;
252
+ selectTagTitle: string;
253
+ loading: string;
254
+ tagTip: string;
255
+ };
256
+ attachments: {
257
+ add: string;
258
+ retry: string;
259
+ uploading: string;
260
+ };
261
+ filesCard: {
262
+ remove: string;
263
+ download: string;
264
+ };
265
+ conversations: {
266
+ menuLabel: string;
267
+ rename: string;
268
+ delete: string;
269
+ renameTitle: string;
270
+ renamePrompt: string;
271
+ renamePlaceholder: string;
272
+ deleteTitle: string;
273
+ deleteConfirm: string;
274
+ };
275
+ scroll: {
276
+ toBottom: string;
277
+ };
278
+ aiChat: {
279
+ modelPlaceholder: string;
280
+ adapterMissing: string;
281
+ generateFailed: string;
282
+ exportUser: string;
283
+ exportAssistant: string;
284
+ };
285
+ aiMessage: {
286
+ copy: string;
287
+ regenerate: string;
288
+ prevBranch: string;
289
+ nextBranch: string;
290
+ defaultUserName: string;
291
+ defaultAssistantName: string;
292
+ querying: string;
293
+ queried: string;
294
+ generateFailed: string;
295
+ followups: string;
296
+ followupsTitle: string;
297
+ loadingPhrases: string[];
298
+ feedback: {
299
+ like: string;
300
+ dislike: string;
301
+ dislikeTitle: string;
302
+ dislikePlaceholder: string;
303
+ submit: string;
304
+ skip: string;
305
+ failed: string;
306
+ cleared: string;
307
+ };
308
+ };
309
+ aiArtifacts: {
310
+ copy: string;
311
+ download: string;
312
+ fullscreen: string;
313
+ close: string;
314
+ };
315
+ chat: {
316
+ fileTag: string;
317
+ fileImageTag: string;
318
+ filesSystemPrompt: string;
319
+ toolDuration: string;
320
+ continuePrompt: string;
321
+ };
322
+ errors: {
323
+ requestFailed: string;
324
+ sessionIdMissing: string;
325
+ noBody: string;
326
+ generateFailed: string;
327
+ recordUnsupported: string;
328
+ speechError: string;
329
+ attachmentRejected: string;
330
+ };
331
+ };
332
+ readonly en: {
333
+ common: {
334
+ copy: string;
335
+ delete: string;
336
+ confirm: string;
337
+ cancel: string;
338
+ retry: string;
339
+ close: string;
340
+ preview: string;
341
+ clear: string;
342
+ stop: string;
343
+ send: string;
344
+ download: string;
345
+ fullscreen: string;
346
+ collapse: string;
347
+ expand: string;
348
+ copied: string;
349
+ };
350
+ thinking: {
351
+ start: string;
352
+ thinking: string;
353
+ end: string;
354
+ interrupted: string;
355
+ error: string;
356
+ endWithTools: string;
357
+ interruptedWithTools: string;
358
+ thinkingItem: string;
359
+ thoughtDoneItem: string;
360
+ };
361
+ welcome: {
362
+ greetingPrefix: string;
363
+ greetingName: string;
364
+ description: string;
365
+ };
366
+ sender: {
367
+ clear: string;
368
+ stop: string;
369
+ send: string;
370
+ speech: string;
371
+ recordCancel: string;
372
+ recordConfirm: string;
373
+ micUnavailable: string;
374
+ inputPlaceholder: string;
375
+ };
376
+ editorSender: {
377
+ clear: string;
378
+ stop: string;
379
+ send: string;
380
+ inputPlaceholder: string;
381
+ selectTagTitle: string;
382
+ loading: string;
383
+ tagTip: string;
384
+ };
385
+ attachments: {
386
+ add: string;
387
+ retry: string;
388
+ uploading: string;
389
+ };
390
+ filesCard: {
391
+ remove: string;
392
+ download: string;
393
+ };
394
+ conversations: {
395
+ menuLabel: string;
396
+ rename: string;
397
+ delete: string;
398
+ renameTitle: string;
399
+ renamePrompt: string;
400
+ renamePlaceholder: string;
401
+ deleteTitle: string;
402
+ deleteConfirm: string;
403
+ };
404
+ scroll: {
405
+ toBottom: string;
406
+ };
407
+ aiChat: {
408
+ modelPlaceholder: string;
409
+ adapterMissing: string;
410
+ generateFailed: string;
411
+ exportUser: string;
412
+ exportAssistant: string;
413
+ };
414
+ aiMessage: {
415
+ copy: string;
416
+ regenerate: string;
417
+ prevBranch: string;
418
+ nextBranch: string;
419
+ defaultUserName: string;
420
+ defaultAssistantName: string;
421
+ querying: string;
422
+ queried: string;
423
+ generateFailed: string;
424
+ followups: string;
425
+ followupsTitle: string;
426
+ loadingPhrases: string[];
427
+ feedback: {
428
+ like: string;
429
+ dislike: string;
430
+ dislikeTitle: string;
431
+ dislikePlaceholder: string;
432
+ submit: string;
433
+ skip: string;
434
+ failed: string;
435
+ cleared: string;
436
+ };
437
+ };
438
+ aiArtifacts: {
439
+ copy: string;
440
+ download: string;
441
+ fullscreen: string;
442
+ close: string;
443
+ };
444
+ chat: {
445
+ fileTag: string;
446
+ fileImageTag: string;
447
+ filesSystemPrompt: string;
448
+ toolDuration: string;
449
+ continuePrompt: string;
450
+ };
451
+ errors: {
452
+ requestFailed: string;
453
+ sessionIdMissing: string;
454
+ noBody: string;
455
+ generateFailed: string;
456
+ recordUnsupported: string;
457
+ speechError: string;
458
+ attachmentRejected: string;
459
+ };
460
+ };
461
+ readonly ko: {
462
+ common: {
463
+ copy: string;
464
+ delete: string;
465
+ confirm: string;
466
+ cancel: string;
467
+ retry: string;
468
+ close: string;
469
+ preview: string;
470
+ clear: string;
471
+ stop: string;
472
+ send: string;
473
+ download: string;
474
+ fullscreen: string;
475
+ collapse: string;
476
+ expand: string;
477
+ copied: string;
478
+ };
479
+ thinking: {
480
+ start: string;
481
+ thinking: string;
482
+ end: string;
483
+ interrupted: string;
484
+ error: string;
485
+ endWithTools: string;
486
+ interruptedWithTools: string;
487
+ thinkingItem: string;
488
+ thoughtDoneItem: string;
489
+ };
490
+ welcome: {
491
+ greetingPrefix: string;
492
+ greetingName: string;
493
+ description: string;
494
+ };
495
+ sender: {
496
+ clear: string;
497
+ stop: string;
498
+ send: string;
499
+ speech: string;
500
+ recordCancel: string;
501
+ recordConfirm: string;
502
+ micUnavailable: string;
503
+ inputPlaceholder: string;
504
+ };
505
+ editorSender: {
506
+ clear: string;
507
+ stop: string;
508
+ send: string;
509
+ inputPlaceholder: string;
510
+ selectTagTitle: string;
511
+ loading: string;
512
+ tagTip: string;
513
+ };
514
+ attachments: {
515
+ add: string;
516
+ retry: string;
517
+ uploading: string;
518
+ };
519
+ filesCard: {
520
+ remove: string;
521
+ download: string;
522
+ };
523
+ conversations: {
524
+ menuLabel: string;
525
+ rename: string;
526
+ delete: string;
527
+ renameTitle: string;
528
+ renamePrompt: string;
529
+ renamePlaceholder: string;
530
+ deleteTitle: string;
531
+ deleteConfirm: string;
532
+ };
533
+ scroll: {
534
+ toBottom: string;
535
+ };
536
+ aiChat: {
537
+ modelPlaceholder: string;
538
+ adapterMissing: string;
539
+ generateFailed: string;
540
+ exportUser: string;
541
+ exportAssistant: string;
542
+ };
543
+ aiMessage: {
544
+ copy: string;
545
+ regenerate: string;
546
+ prevBranch: string;
547
+ nextBranch: string;
548
+ defaultUserName: string;
549
+ defaultAssistantName: string;
550
+ querying: string;
551
+ queried: string;
552
+ generateFailed: string;
553
+ followups: string;
554
+ followupsTitle: string;
555
+ loadingPhrases: string[];
556
+ feedback: {
557
+ like: string;
558
+ dislike: string;
559
+ dislikeTitle: string;
560
+ dislikePlaceholder: string;
561
+ submit: string;
562
+ skip: string;
563
+ failed: string;
564
+ cleared: string;
565
+ };
566
+ };
567
+ aiArtifacts: {
568
+ copy: string;
569
+ download: string;
570
+ fullscreen: string;
571
+ close: string;
572
+ };
573
+ chat: {
574
+ fileTag: string;
575
+ fileImageTag: string;
576
+ filesSystemPrompt: string;
577
+ toolDuration: string;
578
+ continuePrompt: string;
579
+ };
580
+ errors: {
581
+ requestFailed: string;
582
+ sessionIdMissing: string;
583
+ noBody: string;
584
+ generateFailed: string;
585
+ recordUnsupported: string;
586
+ speechError: string;
587
+ attachmentRejected: string;
588
+ };
589
+ };
590
+ readonly vi: {
591
+ common: {
592
+ copy: string;
593
+ delete: string;
594
+ confirm: string;
595
+ cancel: string;
596
+ retry: string;
597
+ close: string;
598
+ preview: string;
599
+ clear: string;
600
+ stop: string;
601
+ send: string;
602
+ download: string;
603
+ fullscreen: string;
604
+ collapse: string;
605
+ expand: string;
606
+ copied: string;
607
+ };
608
+ thinking: {
609
+ start: string;
610
+ thinking: string;
611
+ end: string;
612
+ interrupted: string;
613
+ error: string;
614
+ endWithTools: string;
615
+ interruptedWithTools: string;
616
+ thinkingItem: string;
617
+ thoughtDoneItem: string;
618
+ };
619
+ welcome: {
620
+ greetingPrefix: string;
621
+ greetingName: string;
622
+ description: string;
623
+ };
624
+ sender: {
625
+ clear: string;
626
+ stop: string;
627
+ send: string;
628
+ speech: string;
629
+ recordCancel: string;
630
+ recordConfirm: string;
631
+ micUnavailable: string;
632
+ inputPlaceholder: string;
633
+ };
634
+ editorSender: {
635
+ clear: string;
636
+ stop: string;
637
+ send: string;
638
+ inputPlaceholder: string;
639
+ selectTagTitle: string;
640
+ loading: string;
641
+ tagTip: string;
642
+ };
643
+ attachments: {
644
+ add: string;
645
+ retry: string;
646
+ uploading: string;
647
+ };
648
+ filesCard: {
649
+ remove: string;
650
+ download: string;
651
+ };
652
+ conversations: {
653
+ menuLabel: string;
654
+ rename: string;
655
+ delete: string;
656
+ renameTitle: string;
657
+ renamePrompt: string;
658
+ renamePlaceholder: string;
659
+ deleteTitle: string;
660
+ deleteConfirm: string;
661
+ };
662
+ scroll: {
663
+ toBottom: string;
664
+ };
665
+ aiChat: {
666
+ modelPlaceholder: string;
667
+ adapterMissing: string;
668
+ generateFailed: string;
669
+ exportUser: string;
670
+ exportAssistant: string;
671
+ };
672
+ aiMessage: {
673
+ copy: string;
674
+ regenerate: string;
675
+ prevBranch: string;
676
+ nextBranch: string;
677
+ defaultUserName: string;
678
+ defaultAssistantName: string;
679
+ querying: string;
680
+ queried: string;
681
+ generateFailed: string;
682
+ followups: string;
683
+ followupsTitle: string;
684
+ loadingPhrases: string[];
685
+ feedback: {
686
+ like: string;
687
+ dislike: string;
688
+ dislikeTitle: string;
689
+ dislikePlaceholder: string;
690
+ submit: string;
691
+ skip: string;
692
+ failed: string;
693
+ cleared: string;
694
+ };
695
+ };
696
+ aiArtifacts: {
697
+ copy: string;
698
+ download: string;
699
+ fullscreen: string;
700
+ close: string;
701
+ };
702
+ chat: {
703
+ fileTag: string;
704
+ fileImageTag: string;
705
+ filesSystemPrompt: string;
706
+ toolDuration: string;
707
+ continuePrompt: string;
708
+ };
709
+ errors: {
710
+ requestFailed: string;
711
+ sessionIdMissing: string;
712
+ noBody: string;
713
+ generateFailed: string;
714
+ recordUnsupported: string;
715
+ speechError: string;
716
+ attachmentRejected: string;
717
+ };
718
+ };
719
+ readonly 'zh-HK': {
720
+ common: {
721
+ copy: string;
722
+ delete: string;
723
+ confirm: string;
724
+ cancel: string;
725
+ retry: string;
726
+ close: string;
727
+ preview: string;
728
+ clear: string;
729
+ stop: string;
730
+ send: string;
731
+ download: string;
732
+ fullscreen: string;
733
+ collapse: string;
734
+ expand: string;
735
+ copied: string;
736
+ };
737
+ thinking: {
738
+ start: string;
739
+ thinking: string;
740
+ end: string;
741
+ interrupted: string;
742
+ error: string;
743
+ endWithTools: string;
744
+ interruptedWithTools: string;
745
+ thinkingItem: string;
746
+ thoughtDoneItem: string;
747
+ };
748
+ welcome: {
749
+ greetingPrefix: string;
750
+ greetingName: string;
751
+ description: string;
752
+ };
753
+ sender: {
754
+ clear: string;
755
+ stop: string;
756
+ send: string;
757
+ speech: string;
758
+ recordCancel: string;
759
+ recordConfirm: string;
760
+ micUnavailable: string;
761
+ inputPlaceholder: string;
762
+ };
763
+ editorSender: {
764
+ clear: string;
765
+ stop: string;
766
+ send: string;
767
+ inputPlaceholder: string;
768
+ selectTagTitle: string;
769
+ loading: string;
770
+ tagTip: string;
771
+ };
772
+ attachments: {
773
+ add: string;
774
+ retry: string;
775
+ uploading: string;
776
+ };
777
+ filesCard: {
778
+ remove: string;
779
+ download: string;
780
+ };
781
+ conversations: {
782
+ menuLabel: string;
783
+ rename: string;
784
+ delete: string;
785
+ renameTitle: string;
786
+ renamePrompt: string;
787
+ renamePlaceholder: string;
788
+ deleteTitle: string;
789
+ deleteConfirm: string;
790
+ };
791
+ scroll: {
792
+ toBottom: string;
793
+ };
794
+ aiChat: {
795
+ modelPlaceholder: string;
796
+ adapterMissing: string;
797
+ generateFailed: string;
798
+ exportUser: string;
799
+ exportAssistant: string;
800
+ };
801
+ aiMessage: {
802
+ copy: string;
803
+ regenerate: string;
804
+ prevBranch: string;
805
+ nextBranch: string;
806
+ defaultUserName: string;
807
+ defaultAssistantName: string;
808
+ querying: string;
809
+ queried: string;
810
+ generateFailed: string;
811
+ followups: string;
812
+ followupsTitle: string;
813
+ loadingPhrases: string[];
814
+ feedback: {
815
+ like: string;
816
+ dislike: string;
817
+ dislikeTitle: string;
818
+ dislikePlaceholder: string;
819
+ submit: string;
820
+ skip: string;
821
+ failed: string;
822
+ cleared: string;
823
+ };
824
+ };
825
+ aiArtifacts: {
826
+ copy: string;
827
+ download: string;
828
+ fullscreen: string;
829
+ close: string;
830
+ };
831
+ chat: {
832
+ fileTag: string;
833
+ fileImageTag: string;
834
+ filesSystemPrompt: string;
835
+ toolDuration: string;
836
+ continuePrompt: string;
837
+ };
838
+ errors: {
839
+ requestFailed: string;
840
+ sessionIdMissing: string;
841
+ noBody: string;
842
+ generateFailed: string;
843
+ recordUnsupported: string;
844
+ speechError: string;
845
+ attachmentRejected: string;
846
+ };
847
+ };
848
+ };
849
+ /** 内置语言名(字符串形态 locale/configureLocale 的合法取值) */
850
+ type LocaleCode = keyof typeof PACKS;
188
851
  /**
189
852
  * 全局语言设置。
190
853
  * 字符串选内置包(未知回落 zh-CN);对象视为**完整语言包**(消费方自建语言的主入口,
191
854
  * 与组件 prop 的"部分覆盖"语义有意不同:全局是定基准,prop 是在基准上微调)。
192
855
  */
193
- declare function configureLocale(locale: 'zh-CN' | 'en-US' | LocaleMessages): void;
856
+ declare function configureLocale(locale: LocaleCode | LocaleMessages): void;
194
857
 
195
858
  type __VLS_Props$h = {
196
859
  content: string;
@@ -203,7 +866,7 @@ type __VLS_Props$h = {
203
866
  codeTriggerLangs?: string[];
204
867
  /** 表格工具栏:默认开启。表格上方注入复制(markdown 源文本)/下载(CSV)单图标按钮 */
205
868
  tableToolbar?: boolean;
206
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
869
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
207
870
  locale?: LocaleInput;
208
871
  };
209
872
  declare const __VLS_export$h: vue.DefineComponent<__VLS_Props$h, {
@@ -436,7 +1099,7 @@ type __VLS_Props$e = {
436
1099
  * - number[]:仅指定索引上抛(无效索引过滤并 console.warn)
437
1100
  */
438
1101
  triggerIndices?: 'only-last' | 'all' | number[];
439
- /** 语言配置:内置语言名(如 'en-US')或部分文案对象(深合并覆盖) */
1102
+ /** 语言配置:内置语言名(如 'en')或部分文案对象(深合并覆盖) */
440
1103
  locale?: LocaleInput;
441
1104
  };
442
1105
  declare function scrollToTop$1(): void;
@@ -552,7 +1215,7 @@ type __VLS_Props$d = {
552
1215
  allowSpeech?: boolean;
553
1216
  /** 允许空内容提交(附件场景:只发文件不输文字时提交按钮保持可点) */
554
1217
  allowEmptySubmit?: boolean;
555
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
1218
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
556
1219
  locale?: LocaleInput;
557
1220
  };
558
1221
  declare function submit$1(): void;
@@ -675,7 +1338,7 @@ type __VLS_Props$c = {
675
1338
  customTrigger?: MentionCustomTrigger[];
676
1339
  /** 异步候选:存在时防抖 300ms 拉取(后端负责过滤) */
677
1340
  asyncMatchFun?: (search: string) => Promise<MentionUserInfo[]>;
678
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
1341
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
679
1342
  locale?: LocaleInput;
680
1343
  };
681
1344
  declare function submit(): void;
@@ -857,7 +1520,7 @@ type __VLS_Props$b = {
857
1520
  asyncMatchFun?: (search: string) => Promise<EditorUser[]>;
858
1521
  /** 自定义弹窗:true 时不弹内置选择弹窗,仅上抛 show-select-dialog 由外部接管 */
859
1522
  customDialog?: boolean;
860
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
1523
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
861
1524
  locale?: LocaleInput;
862
1525
  };
863
1526
  /**
@@ -998,13 +1661,13 @@ type __VLS_WithSlots$a<T, S> = T & {
998
1661
  };
999
1662
  };
1000
1663
 
1001
- type ThinkingStatus = 'start' | 'thinking' | 'end' | 'error';
1664
+ type ThinkingStatus = 'start' | 'thinking' | 'end' | 'interrupted' | 'error';
1002
1665
  type __VLS_Props$a = {
1003
1666
  /** 展开/收起(v-model) */
1004
1667
  modelValue?: boolean;
1005
1668
  /** 思考内容(#content 插槽常嵌 FvMarkdown/Typewriter 渲染思考流) */
1006
1669
  content?: string;
1007
- /** 思考状态:start 起始 / thinking 思考中 / end 完成 / error 出错 */
1670
+ /** 思考状态:start 起始 / thinking 思考中 / end 完成 / interrupted 用户中断 / error 出错 */
1008
1671
  status?: ThinkingStatus;
1009
1672
  /** 禁用切换 */
1010
1673
  disabled?: boolean;
@@ -1020,26 +1683,26 @@ type __VLS_Props$a = {
1020
1683
  color?: string;
1021
1684
  /** 背景色 */
1022
1685
  backgroundColor?: string;
1023
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
1686
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
1024
1687
  locale?: LocaleInput;
1025
1688
  };
1026
- /** 切换门控:start 起始态不可切换;thinking 中可展开查看思考流,end/error 后可自由收起展开 */
1689
+ /** 切换门控:start 起始态不可切换;thinking 中可展开查看思考流,end/interrupted/error 后可自由收起展开 */
1027
1690
  declare function toggle(): void;
1028
1691
  declare var __VLS_1$6: {};
1029
- declare var __VLS_36: {};
1030
- declare var __VLS_38: {};
1031
- declare var __VLS_51: {};
1032
- declare var __VLS_53$1: {};
1692
+ declare var __VLS_47$1: {};
1693
+ declare var __VLS_49$1: {};
1694
+ declare var __VLS_62: {};
1695
+ declare var __VLS_64$1: {};
1033
1696
  type __VLS_Slots$9 = {} & {
1034
1697
  'status-icon'?: (props: typeof __VLS_1$6) => any;
1035
1698
  } & {
1036
- label?: (props: typeof __VLS_36) => any;
1699
+ label?: (props: typeof __VLS_47$1) => any;
1037
1700
  } & {
1038
- arrow?: (props: typeof __VLS_38) => any;
1701
+ arrow?: (props: typeof __VLS_49$1) => any;
1039
1702
  } & {
1040
- error?: (props: typeof __VLS_51) => any;
1703
+ error?: (props: typeof __VLS_62) => any;
1041
1704
  } & {
1042
- content?: (props: typeof __VLS_53$1) => any;
1705
+ content?: (props: typeof __VLS_64$1) => any;
1043
1706
  };
1044
1707
  declare const __VLS_base$9: vue.DefineComponent<__VLS_Props$a, {
1045
1708
  modelValue: vue.Ref<boolean, boolean>;
@@ -1099,7 +1762,7 @@ type __VLS_Props$9 = {
1099
1762
  collapsible?: boolean;
1100
1763
  /** 显示工具步用时 description(默认关闭:流式期间干扰观感,历史回放/调试场景可开) */
1101
1764
  showDuration?: boolean;
1102
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
1765
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
1103
1766
  locale?: LocaleInput;
1104
1767
  };
1105
1768
  declare var __VLS_45: {
@@ -1137,7 +1800,7 @@ type __VLS_Props$8 = {
1137
1800
  description?: string;
1138
1801
  /** 布局:vertical 纵排(形象在上,默认)/ horizontal 横排(欢迎吉祥物浮于文案右上,空态欢迎形态) */
1139
1802
  layout?: 'vertical' | 'horizontal';
1140
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
1803
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
1141
1804
  locale?: LocaleInput;
1142
1805
  };
1143
1806
  declare var __VLS_1$5: {};
@@ -1227,7 +1890,7 @@ type __VLS_Props$6 = {
1227
1890
  onDelete?: () => void;
1228
1891
  /** 下载回调:注入时右上角渲染下载按钮(hover 浮现,与删除按钮同位互斥),点击调用 */
1229
1892
  onDownload?: () => void;
1230
- /** 语言配置:内置语言名(如 'en-US')或部分文案对象(深合并覆盖) */
1893
+ /** 语言配置:内置语言名(如 'en')或部分文案对象(深合并覆盖) */
1231
1894
  locale?: LocaleInput;
1232
1895
  };
1233
1896
  declare var __VLS_1$3: {};
@@ -1289,7 +1952,7 @@ type __VLS_Props$5 = {
1289
1952
  disabled?: boolean;
1290
1953
  /** 布局:inline(默认)按钮+列表+提示一行;triggerOnly 只渲染回形针按钮;listOnly 只渲染文件列表 */
1291
1954
  layout?: 'inline' | 'triggerOnly' | 'listOnly';
1292
- /** 语言配置:内置语言名(如 'en-US')或部分文案对象(深合并覆盖) */
1955
+ /** 语言配置:内置语言名(如 'en')或部分文案对象(深合并覆盖) */
1293
1956
  locale?: LocaleInput;
1294
1957
  };
1295
1958
  /** 重传:error 项重新走 upload(无钩子时仅置回 loading 等外部接线) */
@@ -1370,7 +2033,7 @@ type __VLS_Props$4 = {
1370
2033
  loading?: boolean;
1371
2034
  /** 是否还有更早分页(缺省 false 表示一次性全量,不触发 load-more) */
1372
2035
  hasMore?: boolean;
1373
- /** 语言配置:内置语言名(如 'en-US')或部分文案对象(深合并覆盖) */
2036
+ /** 语言配置:内置语言名(如 'en')或部分文案对象(深合并覆盖) */
1374
2037
  locale?: LocaleInput;
1375
2038
  };
1376
2039
  declare function handleMenuCommand(cmd: {
@@ -1872,7 +2535,7 @@ type __VLS_Props$3 = {
1872
2535
  isLast?: boolean;
1873
2536
  /**
1874
2537
  * 追问建议展示样式(默认 'list'):
1875
- * - list 纵向列表:一行一条,操作区下方带分隔线与灰色「追问」标题;
2538
+ * - list 纵向列表:一行一条,操作区下方带分隔线与加粗「追问」标题(字号/颜色随正文);
1876
2539
  * - chips 横向气泡:横向换行铺排的胶囊 chips(旧样式)
1877
2540
  */
1878
2541
  followupStyle?: 'list' | 'chips';
@@ -1935,7 +2598,7 @@ type __VLS_Props$3 = {
1935
2598
  * 乐观更新:先翻转本地 feedback 再调钩子,失败回滚并上抛 feedback-error
1936
2599
  */
1937
2600
  feedbackHandler?: FeedbackHandler;
1938
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
2601
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
1939
2602
  locale?: LocaleInput;
1940
2603
  };
1941
2604
  /** 展开/折叠本条消息的思考链(user 消息与无思考链消息调用无效) */
@@ -2111,7 +2774,8 @@ type __VLS_Props$2 = {
2111
2774
  timeFormat?: (message: MessageNode, timestamp: number) => string;
2112
2775
  /**
2113
2776
  * 追问建议展示样式(透传 AiMessage;默认 'list' 纵向列表一行一条,
2114
- * 操作区下方带分隔线与灰色「追问」标题;'chips' 为旧横向气泡形态)
2777
+ * 操作区下方带分隔线与加粗「追问」标题(字号/颜色随正文),正文打字效果
2778
+ * 完成后才渲染(流式 suggestions 事件到达不显示);'chips' 为旧横向气泡形态)
2115
2779
  */
2116
2780
  followupStyle?: 'list' | 'chips';
2117
2781
  /**
@@ -2124,7 +2788,7 @@ type __VLS_Props$2 = {
2124
2788
  * 缺省不渲染)。点击 👍/👎 经此上抛消费方端点,乐观更新失败回滚
2125
2789
  */
2126
2790
  feedbackHandler?: FeedbackHandler;
2127
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
2791
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
2128
2792
  locale?: LocaleInput;
2129
2793
  };
2130
2794
  declare function scrollToBottom(smooth?: boolean): void;
@@ -2371,7 +3035,8 @@ type __VLS_Props$1 = {
2371
3035
  suggestionsWrap?: boolean;
2372
3036
  /**
2373
3037
  * 追问建议展示样式(透传 AiMessages→AiMessage;默认 'list' 纵向列表一行一条,
2374
- * 回答操作区下方带分隔线与灰色「追问」标题,历史消息同样渲染;
3038
+ * 回答操作区下方带分隔线与加粗「追问」标题(字号/颜色随正文),历史消息同样渲染;
3039
+ * 正文打字效果完成后才渲染(流式 suggestions 事件到达不显示);
2375
3040
  * 'chips' 为旧横向气泡形态)
2376
3041
  */
2377
3042
  followupStyle?: 'list' | 'chips';
@@ -2409,7 +3074,7 @@ type __VLS_Props$1 = {
2409
3074
  feedbackHandler?: FeedbackHandler;
2410
3075
  /** 主题:light/dark/auto(注入 html dark class) */
2411
3076
  theme?: 'light' | 'dark' | 'auto';
2412
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象;解析后向整框后代注入(后代仍可用自身 locale prop 覆盖) */
3077
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象;解析后向整框后代注入(后代仍可用自身 locale prop 覆盖) */
2413
3078
  locale?: LocaleInput;
2414
3079
  };
2415
3080
  /** 停止生成:生成在途时置位 stopped(空闲时无待收口轮次,不置位避免残留误吞下一轮),再中止在途请求 */
@@ -2574,13 +3239,13 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props$1, {
2574
3239
  timeFormat: (message: MessageNode, timestamp: number) => string;
2575
3240
  resolveFileUrl: (file: ChatFile) => Promise<string> | string;
2576
3241
  feedbackHandler: FeedbackHandler;
3242
+ showHeader: boolean;
2577
3243
  suggestionsWrap: boolean;
2578
3244
  scrollThreshold: number;
2579
3245
  showScrollButton: boolean;
2580
3246
  scrollButtonThreshold: number;
2581
3247
  models: string[];
2582
3248
  adapter: ChatAdapter;
2583
- showHeader: boolean;
2584
3249
  centerWelcome: boolean;
2585
3250
  senderAutosize: {
2586
3251
  minRows?: number;
@@ -2625,7 +3290,7 @@ type __VLS_Props = {
2625
3290
  minWidth?: string;
2626
3291
  /** 面板最大宽度(css 值;默认 60%,防窄屏挤占消息区) */
2627
3292
  maxWidth?: string;
2628
- /** 语言包:'zh-CN'/'en-US' 整包或部分文案对象(优先于祖先注入与全局设置) */
3293
+ /** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
2629
3294
  locale?: LocaleInput;
2630
3295
  };
2631
3296
  declare function open(key: string): void;
@@ -2821,5 +3486,5 @@ declare function createMessageTree(initial?: {
2821
3486
 
2822
3487
  declare const version = "0.1.0";
2823
3488
 
2824
- export { _default as FvAiArtifacts, _default$1 as FvAiChat, _default$3 as FvAiMessage, _default$2 as FvAiMessages, _default$5 as FvAttachments, _default$f as FvBubble, _default$e as FvBubbleList, FvCommonAdapter, FvCommonError, _default$4 as FvConversations, _default$b as FvEditorSender, _default$6 as FvFilesCard, _default$h as FvMarkdown, _default$c as FvMentionSender, _default$7 as FvPrompts, _default$d as FvSender, _default$a as FvThinking, _default$9 as FvThoughtChain, _default$g as FvTypewriter, _default$8 as FvWelcome, OpenAIAdapter, XRequest, configureLocale, createLocalStorageAdapter, createMemoryAdapter, createMessageTree, createSSEParser, enUS, parseSuggestions, useChat, useMessages, useRecord, useSend, useXStream, version, zhCN };
2825
- export type { AdapterChatFile, AdapterChatMessage, AiArtifactItem, AiChatArtifactsOptions, AiChatFeatures, AiChatSuggestion, AiMessageBranchInfo, AiMessagesSuggestion, AttachmentItem, AttachmentUpload, BranchDirection, ChatAdapter, ChatAdapterHandlers, ChatAdapterRequest, ChatFile, DeepPartialLocale, FeedbackHandler, FvCommonAdapterConfig, FvCommonMessage, FvCommonMessagePage, FvCommonSendBody, FvCommonSessionDetail, FvCommonSessionItem, FvCommonToolEvent, LocaleInput, LocaleMessages, MessageFeedback, MessageNode, MessageNodeInput, MessageRole, MessageStatus, MessageTree, MessageUsage, OpenAIAdapterConfig, QueueItem, RawUsage, SSEEvent, SSEParser, SendOptions, StorageAdapter, ToolCallItem, ToolStepItem, UseChatOptions, UseChatReturn, UseMessagesReturn, UseRecordReturn, UseSendReturn, UseXStreamReturn };
3489
+ export { _default as FvAiArtifacts, _default$1 as FvAiChat, _default$3 as FvAiMessage, _default$2 as FvAiMessages, _default$5 as FvAttachments, _default$f as FvBubble, _default$e as FvBubbleList, FvCommonAdapter, FvCommonError, _default$4 as FvConversations, _default$b as FvEditorSender, _default$6 as FvFilesCard, _default$h as FvMarkdown, _default$c as FvMentionSender, _default$7 as FvPrompts, _default$d as FvSender, _default$a as FvThinking, _default$9 as FvThoughtChain, _default$g as FvTypewriter, _default$8 as FvWelcome, OpenAIAdapter, XRequest, configureLocale, createLocalStorageAdapter, createMemoryAdapter, createMessageTree, createSSEParser, en, ko, parseSuggestions, useChat, useMessages, useRecord, useSend, useXStream, version, vi, zhCN, zhHK };
3490
+ export type { AdapterChatFile, AdapterChatMessage, AiArtifactItem, AiChatArtifactsOptions, AiChatFeatures, AiChatSuggestion, AiMessageBranchInfo, AiMessagesSuggestion, AttachmentItem, AttachmentUpload, BranchDirection, ChatAdapter, ChatAdapterHandlers, ChatAdapterRequest, ChatFile, DeepPartialLocale, FeedbackHandler, FvCommonAdapterConfig, FvCommonMessage, FvCommonMessagePage, FvCommonSendBody, FvCommonSessionDetail, FvCommonSessionItem, FvCommonToolEvent, LocaleCode, LocaleInput, LocaleMessages, MessageFeedback, MessageNode, MessageNodeInput, MessageRole, MessageStatus, MessageTree, MessageUsage, OpenAIAdapterConfig, QueueItem, RawUsage, SSEEvent, SSEParser, SendOptions, StorageAdapter, ToolCallItem, ToolStepItem, UseChatOptions, UseChatReturn, UseMessagesReturn, UseRecordReturn, UseSendReturn, UseXStreamReturn };