@blueking/chat-x 0.0.1-beta.5 → 0.0.1-beta.6

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.
Files changed (30) hide show
  1. package/dist/ag-ui/types/constants.d.ts +2 -0
  2. package/dist/ag-ui/types/contents.d.ts +10 -0
  3. package/dist/ag-ui/types/messages.d.ts +4 -4
  4. package/dist/common/constants.d.ts +2 -0
  5. package/dist/components/ai-buttons/file-upload-btn/file-upload-btn.vue.d.ts +26 -0
  6. package/dist/components/chat-content/common-error-content/common-error-content.vue.d.ts +1 -1
  7. package/dist/components/chat-content/file-content/file-content.vue.d.ts +12 -0
  8. package/dist/components/chat-content/markdown-content/markdown-content.vue.d.ts +1 -1
  9. package/dist/components/chat-content/reference-content/reference-content.vue.d.ts +2 -2
  10. package/dist/components/chat-input/ai-slash-input/ai-slash-input.vue.d.ts +3 -0
  11. package/dist/components/chat-input/chat-input.vue.d.ts +40 -7
  12. package/dist/components/chat-message/message-container/message-container.vue.d.ts +85 -50
  13. package/dist/components/chat-message/message-render/message-render.vue.d.ts +2 -1
  14. package/dist/components/chat-message/user-message/user-message.vue.d.ts +6 -1
  15. package/dist/components/message-tools/message-tools.vue.d.ts +3 -2
  16. package/dist/components/message-tools/user-feedback/user-feedback.vue.d.ts +1 -0
  17. package/dist/icons/content.d.ts +6 -0
  18. package/dist/icons/index.d.ts +1 -0
  19. package/dist/icons/input.d.ts +12 -0
  20. package/dist/icons/messages.d.ts +0 -3
  21. package/dist/index.css +1 -1
  22. package/dist/index.js +668 -302
  23. package/dist/index.js.map +1 -1
  24. package/dist/lang/lang.d.ts +4 -1
  25. package/dist/types/input.d.ts +10 -0
  26. package/dist/types/tool.d.ts +2 -2
  27. package/dist/utils/file.d.ts +24 -0
  28. package/dist/utils/index.d.ts +1 -0
  29. package/package.json +2 -2
  30. package/dist/components/chat-content/x-content/x-content.vue.d.ts +0 -17
@@ -1,11 +1,35 @@
1
- import { type Message, MessageRole, MessageStatus } from '../../../ag-ui/types';
2
- import type { MessageToolsProps } from '../../message-tools/message-tools.vue';
1
+ import { type Message, type UserMessage, MessageRole, MessageStatus } from '../../../ag-ui/types';
2
+ import type { IToolBtn, TagSchema } from '../../../types';
3
+ /**
4
+ * Agent 工具操作回调类型
5
+ * @param tool - 工具按钮信息
6
+ * @param messages - 当前消息组的消息列表(用于 cite 等需要消息内容的操作)
7
+ */
8
+ type AgentActionCallback = (tool: IToolBtn, messages: Message[]) => Promise<string[] | void>;
9
+ /**
10
+ * Agent 反馈回调类型
11
+ * @param tool - 工具按钮信息(like/unlike)
12
+ * @param messages - 当前消息组的消息列表
13
+ * @param reasonList - 选择的反馈原因列表
14
+ * @param otherReason - 其他原因(自定义输入)
15
+ */
16
+ type AgentFeedbackCallback = (tool: IToolBtn, messages: Message[], reasonList: string[], otherReason: string) => void;
17
+ /**
18
+ * User 工具操作回调类型
19
+ * @param tool - 工具按钮信息
20
+ * @param message - 当前用户消息(用于 delete 等需要消息信息的操作)
21
+ */
22
+ type UserActionCallback = (tool: IToolBtn, message: Message) => Promise<string[] | void>;
3
23
  type __VLS_Props = {
4
24
  enableSelection?: boolean;
5
25
  messages: Message[];
6
26
  messageStatus?: MessageStatus;
7
- onAgentAction?: MessageToolsProps['onAction'];
8
- onUserAction?: MessageToolsProps['onAction'];
27
+ onAgentAction?: AgentActionCallback;
28
+ onAgentFeedback?: AgentFeedbackCallback;
29
+ onUserAction?: UserActionCallback;
30
+ } & {
31
+ onUserInputConfirm?: (message: Message, content: UserMessage['content'], docSchema: TagSchema) => Promise<void>;
32
+ onUserShortcutConfirm?: (message: Message, formModel: Record<string, unknown>) => Promise<void>;
9
33
  };
10
34
  type __VLS_ModelProps = {
11
35
  'selectedMessages'?: Message[];
@@ -13,9 +37,20 @@ type __VLS_ModelProps = {
13
37
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
38
  declare var __VLS_9: {
15
39
  message: {
16
- activityType: string;
17
- content: Record<string, unknown>[];
18
- id: string;
40
+ activityType: import("../../../index.ts").MessageContentType.KnowledgeRag | import("../../../index.ts").MessageContentType.ReferenceDocument | string;
41
+ content: {
42
+ name: string;
43
+ originFile: string;
44
+ url: string;
45
+ }[] | {
46
+ content: string;
47
+ referenceDocument: {
48
+ name: string;
49
+ originFile: string;
50
+ url: string;
51
+ }[];
52
+ };
53
+ id: number | string;
19
54
  messageId: number | string;
20
55
  name?: string | undefined;
21
56
  role: MessageRole.Activity;
@@ -282,7 +317,7 @@ declare var __VLS_9: {
282
317
  multiple?: boolean | undefined;
283
318
  placeholder?: string | undefined;
284
319
  list?: any[] | undefined;
285
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
320
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
286
321
  behavior?: "normal" | "simplicity" | undefined;
287
322
  selectedStyle?: "checkbox" | "check" | undefined;
288
323
  scrollHeight?: number | undefined;
@@ -546,7 +581,7 @@ declare var __VLS_9: {
546
581
  error?: string | undefined;
547
582
  toolCallId?: string | undefined;
548
583
  content?: string | undefined;
549
- id?: string | undefined;
584
+ id?: string | number | undefined;
550
585
  messageId?: string | number | undefined;
551
586
  name?: string | undefined;
552
587
  role?: MessageRole.Tool | undefined;
@@ -813,7 +848,7 @@ declare var __VLS_9: {
813
848
  multiple?: boolean | undefined;
814
849
  placeholder?: string | undefined;
815
850
  list?: any[] | undefined;
816
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
851
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
817
852
  behavior?: "normal" | "simplicity" | undefined;
818
853
  selectedStyle?: "checkbox" | "check" | undefined;
819
854
  scrollHeight?: number | undefined;
@@ -1067,7 +1102,7 @@ declare var __VLS_9: {
1067
1102
  type: import("../../../index.ts").MessageContentType.Function;
1068
1103
  }[] | undefined;
1069
1104
  content: string;
1070
- id: string;
1105
+ id: number | string;
1071
1106
  messageId: number | string;
1072
1107
  name?: string | undefined;
1073
1108
  role: MessageRole.Assistant;
@@ -1334,7 +1369,7 @@ declare var __VLS_9: {
1334
1369
  multiple?: boolean | undefined;
1335
1370
  placeholder?: string | undefined;
1336
1371
  list?: any[] | undefined;
1337
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
1372
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
1338
1373
  behavior?: "normal" | "simplicity" | undefined;
1339
1374
  selectedStyle?: "checkbox" | "check" | undefined;
1340
1375
  scrollHeight?: number | undefined;
@@ -1586,7 +1621,7 @@ declare var __VLS_9: {
1586
1621
  } | undefined;
1587
1622
  } | {
1588
1623
  content: string;
1589
- id: string;
1624
+ id: number | string;
1590
1625
  messageId: number | string;
1591
1626
  name?: string | undefined;
1592
1627
  role: MessageRole.Developer;
@@ -1853,7 +1888,7 @@ declare var __VLS_9: {
1853
1888
  multiple?: boolean | undefined;
1854
1889
  placeholder?: string | undefined;
1855
1890
  list?: any[] | undefined;
1856
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
1891
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
1857
1892
  behavior?: "normal" | "simplicity" | undefined;
1858
1893
  selectedStyle?: "checkbox" | "check" | undefined;
1859
1894
  scrollHeight?: number | undefined;
@@ -2105,7 +2140,7 @@ declare var __VLS_9: {
2105
2140
  } | undefined;
2106
2141
  } | {
2107
2142
  content: string;
2108
- id: string;
2143
+ id: number | string;
2109
2144
  messageId: number | string;
2110
2145
  name?: string | undefined;
2111
2146
  role: MessageRole.Guide;
@@ -2372,7 +2407,7 @@ declare var __VLS_9: {
2372
2407
  multiple?: boolean | undefined;
2373
2408
  placeholder?: string | undefined;
2374
2409
  list?: any[] | undefined;
2375
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
2410
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
2376
2411
  behavior?: "normal" | "simplicity" | undefined;
2377
2412
  selectedStyle?: "checkbox" | "check" | undefined;
2378
2413
  scrollHeight?: number | undefined;
@@ -2624,7 +2659,7 @@ declare var __VLS_9: {
2624
2659
  } | undefined;
2625
2660
  } | {
2626
2661
  content: string;
2627
- id: string;
2662
+ id: number | string;
2628
2663
  messageId: number | string;
2629
2664
  name?: string | undefined;
2630
2665
  role: MessageRole.HiddenAssistant;
@@ -2891,7 +2926,7 @@ declare var __VLS_9: {
2891
2926
  multiple?: boolean | undefined;
2892
2927
  placeholder?: string | undefined;
2893
2928
  list?: any[] | undefined;
2894
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
2929
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
2895
2930
  behavior?: "normal" | "simplicity" | undefined;
2896
2931
  selectedStyle?: "checkbox" | "check" | undefined;
2897
2932
  scrollHeight?: number | undefined;
@@ -3143,7 +3178,7 @@ declare var __VLS_9: {
3143
3178
  } | undefined;
3144
3179
  } | {
3145
3180
  content: string;
3146
- id: string;
3181
+ id: number | string;
3147
3182
  messageId: number | string;
3148
3183
  name?: string | undefined;
3149
3184
  role: MessageRole.HiddenGuide;
@@ -3410,7 +3445,7 @@ declare var __VLS_9: {
3410
3445
  multiple?: boolean | undefined;
3411
3446
  placeholder?: string | undefined;
3412
3447
  list?: any[] | undefined;
3413
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
3448
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
3414
3449
  behavior?: "normal" | "simplicity" | undefined;
3415
3450
  selectedStyle?: "checkbox" | "check" | undefined;
3416
3451
  scrollHeight?: number | undefined;
@@ -3662,7 +3697,7 @@ declare var __VLS_9: {
3662
3697
  } | undefined;
3663
3698
  } | {
3664
3699
  content: string;
3665
- id: string;
3700
+ id: number | string;
3666
3701
  messageId: number | string;
3667
3702
  name?: string | undefined;
3668
3703
  role: MessageRole.Hidden;
@@ -3929,7 +3964,7 @@ declare var __VLS_9: {
3929
3964
  multiple?: boolean | undefined;
3930
3965
  placeholder?: string | undefined;
3931
3966
  list?: any[] | undefined;
3932
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
3967
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
3933
3968
  behavior?: "normal" | "simplicity" | undefined;
3934
3969
  selectedStyle?: "checkbox" | "check" | undefined;
3935
3970
  scrollHeight?: number | undefined;
@@ -4181,7 +4216,7 @@ declare var __VLS_9: {
4181
4216
  } | undefined;
4182
4217
  } | {
4183
4218
  content: string;
4184
- id: string;
4219
+ id: number | string;
4185
4220
  messageId: number | string;
4186
4221
  name?: string | undefined;
4187
4222
  role: MessageRole.HiddenSystem;
@@ -4448,7 +4483,7 @@ declare var __VLS_9: {
4448
4483
  multiple?: boolean | undefined;
4449
4484
  placeholder?: string | undefined;
4450
4485
  list?: any[] | undefined;
4451
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
4486
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
4452
4487
  behavior?: "normal" | "simplicity" | undefined;
4453
4488
  selectedStyle?: "checkbox" | "check" | undefined;
4454
4489
  scrollHeight?: number | undefined;
@@ -4700,7 +4735,7 @@ declare var __VLS_9: {
4700
4735
  } | undefined;
4701
4736
  } | {
4702
4737
  content: string;
4703
- id: string;
4738
+ id: number | string;
4704
4739
  messageId: number | string;
4705
4740
  name?: string | undefined;
4706
4741
  role: MessageRole.HiddenUser;
@@ -4967,7 +5002,7 @@ declare var __VLS_9: {
4967
5002
  multiple?: boolean | undefined;
4968
5003
  placeholder?: string | undefined;
4969
5004
  list?: any[] | undefined;
4970
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
5005
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
4971
5006
  behavior?: "normal" | "simplicity" | undefined;
4972
5007
  selectedStyle?: "checkbox" | "check" | undefined;
4973
5008
  scrollHeight?: number | undefined;
@@ -5219,7 +5254,7 @@ declare var __VLS_9: {
5219
5254
  } | undefined;
5220
5255
  } | {
5221
5256
  content: string;
5222
- id: string;
5257
+ id: number | string;
5223
5258
  messageId: number | string;
5224
5259
  name?: string | undefined;
5225
5260
  role: MessageRole.Info;
@@ -5486,7 +5521,7 @@ declare var __VLS_9: {
5486
5521
  multiple?: boolean | undefined;
5487
5522
  placeholder?: string | undefined;
5488
5523
  list?: any[] | undefined;
5489
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
5524
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
5490
5525
  behavior?: "normal" | "simplicity" | undefined;
5491
5526
  selectedStyle?: "checkbox" | "check" | undefined;
5492
5527
  scrollHeight?: number | undefined;
@@ -5738,7 +5773,7 @@ declare var __VLS_9: {
5738
5773
  } | undefined;
5739
5774
  } | {
5740
5775
  content: string;
5741
- id: string;
5776
+ id: number | string;
5742
5777
  messageId: number | string;
5743
5778
  name?: string | undefined;
5744
5779
  role: MessageRole.Pause;
@@ -6005,7 +6040,7 @@ declare var __VLS_9: {
6005
6040
  multiple?: boolean | undefined;
6006
6041
  placeholder?: string | undefined;
6007
6042
  list?: any[] | undefined;
6008
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
6043
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
6009
6044
  behavior?: "normal" | "simplicity" | undefined;
6010
6045
  selectedStyle?: "checkbox" | "check" | undefined;
6011
6046
  scrollHeight?: number | undefined;
@@ -6257,7 +6292,7 @@ declare var __VLS_9: {
6257
6292
  } | undefined;
6258
6293
  } | {
6259
6294
  content: string;
6260
- id: string;
6295
+ id: number | string;
6261
6296
  messageId: number | string;
6262
6297
  name?: string | undefined;
6263
6298
  role: MessageRole.Placeholder;
@@ -6524,7 +6559,7 @@ declare var __VLS_9: {
6524
6559
  multiple?: boolean | undefined;
6525
6560
  placeholder?: string | undefined;
6526
6561
  list?: any[] | undefined;
6527
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
6562
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
6528
6563
  behavior?: "normal" | "simplicity" | undefined;
6529
6564
  selectedStyle?: "checkbox" | "check" | undefined;
6530
6565
  scrollHeight?: number | undefined;
@@ -6777,7 +6812,7 @@ declare var __VLS_9: {
6777
6812
  } | {
6778
6813
  duration?: number | undefined;
6779
6814
  content: string[];
6780
- id: string;
6815
+ id: number | string;
6781
6816
  messageId: number | string;
6782
6817
  name?: string | undefined;
6783
6818
  role: MessageRole.Reasoning;
@@ -7044,7 +7079,7 @@ declare var __VLS_9: {
7044
7079
  multiple?: boolean | undefined;
7045
7080
  placeholder?: string | undefined;
7046
7081
  list?: any[] | undefined;
7047
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
7082
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
7048
7083
  behavior?: "normal" | "simplicity" | undefined;
7049
7084
  selectedStyle?: "checkbox" | "check" | undefined;
7050
7085
  scrollHeight?: number | undefined;
@@ -7296,7 +7331,7 @@ declare var __VLS_9: {
7296
7331
  } | undefined;
7297
7332
  } | {
7298
7333
  content: string;
7299
- id: string;
7334
+ id: number | string;
7300
7335
  messageId: number | string;
7301
7336
  name?: string | undefined;
7302
7337
  role: MessageRole.System;
@@ -7563,7 +7598,7 @@ declare var __VLS_9: {
7563
7598
  multiple?: boolean | undefined;
7564
7599
  placeholder?: string | undefined;
7565
7600
  list?: any[] | undefined;
7566
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
7601
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
7567
7602
  behavior?: "normal" | "simplicity" | undefined;
7568
7603
  selectedStyle?: "checkbox" | "check" | undefined;
7569
7604
  scrollHeight?: number | undefined;
@@ -7815,7 +7850,7 @@ declare var __VLS_9: {
7815
7850
  } | undefined;
7816
7851
  } | {
7817
7852
  content: string;
7818
- id: string;
7853
+ id: number | string;
7819
7854
  messageId: number | string;
7820
7855
  name?: string | undefined;
7821
7856
  role: MessageRole.TemplateAssistant;
@@ -8082,7 +8117,7 @@ declare var __VLS_9: {
8082
8117
  multiple?: boolean | undefined;
8083
8118
  placeholder?: string | undefined;
8084
8119
  list?: any[] | undefined;
8085
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
8120
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
8086
8121
  behavior?: "normal" | "simplicity" | undefined;
8087
8122
  selectedStyle?: "checkbox" | "check" | undefined;
8088
8123
  scrollHeight?: number | undefined;
@@ -8334,7 +8369,7 @@ declare var __VLS_9: {
8334
8369
  } | undefined;
8335
8370
  } | {
8336
8371
  content: string;
8337
- id: string;
8372
+ id: number | string;
8338
8373
  messageId: number | string;
8339
8374
  name?: string | undefined;
8340
8375
  role: MessageRole.TemplateGuide;
@@ -8601,7 +8636,7 @@ declare var __VLS_9: {
8601
8636
  multiple?: boolean | undefined;
8602
8637
  placeholder?: string | undefined;
8603
8638
  list?: any[] | undefined;
8604
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
8639
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
8605
8640
  behavior?: "normal" | "simplicity" | undefined;
8606
8641
  selectedStyle?: "checkbox" | "check" | undefined;
8607
8642
  scrollHeight?: number | undefined;
@@ -8853,7 +8888,7 @@ declare var __VLS_9: {
8853
8888
  } | undefined;
8854
8889
  } | {
8855
8890
  content: string;
8856
- id: string;
8891
+ id: number | string;
8857
8892
  messageId: number | string;
8858
8893
  name?: string | undefined;
8859
8894
  role: MessageRole.TemplateHidden;
@@ -9120,7 +9155,7 @@ declare var __VLS_9: {
9120
9155
  multiple?: boolean | undefined;
9121
9156
  placeholder?: string | undefined;
9122
9157
  list?: any[] | undefined;
9123
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
9158
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
9124
9159
  behavior?: "normal" | "simplicity" | undefined;
9125
9160
  selectedStyle?: "checkbox" | "check" | undefined;
9126
9161
  scrollHeight?: number | undefined;
@@ -9372,7 +9407,7 @@ declare var __VLS_9: {
9372
9407
  } | undefined;
9373
9408
  } | {
9374
9409
  content: string;
9375
- id: string;
9410
+ id: number | string;
9376
9411
  messageId: number | string;
9377
9412
  name?: string | undefined;
9378
9413
  role: MessageRole.TemplateSystem;
@@ -9639,7 +9674,7 @@ declare var __VLS_9: {
9639
9674
  multiple?: boolean | undefined;
9640
9675
  placeholder?: string | undefined;
9641
9676
  list?: any[] | undefined;
9642
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
9677
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
9643
9678
  behavior?: "normal" | "simplicity" | undefined;
9644
9679
  selectedStyle?: "checkbox" | "check" | undefined;
9645
9680
  scrollHeight?: number | undefined;
@@ -9891,7 +9926,7 @@ declare var __VLS_9: {
9891
9926
  } | undefined;
9892
9927
  } | {
9893
9928
  content: string;
9894
- id: string;
9929
+ id: number | string;
9895
9930
  messageId: number | string;
9896
9931
  name?: string | undefined;
9897
9932
  role: MessageRole.TemplateUser;
@@ -10158,7 +10193,7 @@ declare var __VLS_9: {
10158
10193
  multiple?: boolean | undefined;
10159
10194
  placeholder?: string | undefined;
10160
10195
  list?: any[] | undefined;
10161
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
10196
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
10162
10197
  behavior?: "normal" | "simplicity" | undefined;
10163
10198
  selectedStyle?: "checkbox" | "check" | undefined;
10164
10199
  scrollHeight?: number | undefined;
@@ -10413,7 +10448,7 @@ declare var __VLS_9: {
10413
10448
  error?: string | undefined;
10414
10449
  toolCallId: string;
10415
10450
  content: string;
10416
- id: string;
10451
+ id: number | string;
10417
10452
  messageId: number | string;
10418
10453
  name?: string | undefined;
10419
10454
  role: MessageRole.Tool;
@@ -10680,7 +10715,7 @@ declare var __VLS_9: {
10680
10715
  multiple?: boolean | undefined;
10681
10716
  placeholder?: string | undefined;
10682
10717
  list?: any[] | undefined;
10683
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
10718
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
10684
10719
  behavior?: "normal" | "simplicity" | undefined;
10685
10720
  selectedStyle?: "checkbox" | "check" | undefined;
10686
10721
  scrollHeight?: number | undefined;
@@ -10942,7 +10977,7 @@ declare var __VLS_9: {
10942
10977
  text: string;
10943
10978
  type: import("../../../index.ts").MessageContentType.Text;
10944
10979
  })[];
10945
- id: string;
10980
+ id: number | string;
10946
10981
  messageId: number | string;
10947
10982
  name?: string | undefined;
10948
10983
  role: MessageRole.User;
@@ -11209,7 +11244,7 @@ declare var __VLS_9: {
11209
11244
  multiple?: boolean | undefined;
11210
11245
  placeholder?: string | undefined;
11211
11246
  list?: any[] | undefined;
11212
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
11247
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
11213
11248
  behavior?: "normal" | "simplicity" | undefined;
11214
11249
  selectedStyle?: "checkbox" | "check" | undefined;
11215
11250
  scrollHeight?: number | undefined;
@@ -1,13 +1,14 @@
1
1
  import { type VNode } from 'vue';
2
2
  import type { Message, MessageStatus } from '../../../ag-ui/types';
3
3
  import type { MessageToolsProps } from '../../message-tools/message-tools.vue';
4
+ import type { UserMessageActionsProps } from '../user-message/user-message.vue';
4
5
  type __VLS_Slots = {
5
6
  default: (props: {
6
7
  content: string;
7
8
  status: MessageStatus;
8
9
  }) => VNode;
9
10
  };
10
- type __VLS_Props = Pick<MessageToolsProps, 'onAction'> & {
11
+ type __VLS_Props = Partial<UserMessageActionsProps> & Pick<MessageToolsProps, 'onAction'> & {
11
12
  message: Partial<Message>;
12
13
  };
13
14
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,6 +1,11 @@
1
+ import { type TagSchema } from '../../../types';
1
2
  import { type MessageToolsProps } from '../../message-tools/message-tools.vue';
2
3
  import type { UserMessage } from '../../../ag-ui/types/messages';
3
- type __VLS_Props = Partial<UserMessage> & Pick<MessageToolsProps, 'onAction'>;
4
+ export type UserMessageActionsProps = {
5
+ onInputConfirm?: (content: UserMessage['content'], docSchema: TagSchema) => Promise<void>;
6
+ onShortcutConfirm?: (formModel: Record<string, unknown>) => Promise<void>;
7
+ };
8
+ type __VLS_Props = Partial<UserMessage> & Pick<MessageToolsProps, 'onAction'> & UserMessageActionsProps;
4
9
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
10
  declare const _default: typeof __VLS_export;
6
11
  export default _default;
@@ -1,8 +1,9 @@
1
1
  import { type TippyOptions } from 'vue-tippy';
2
- import type { IToolBtn } from '../../types';
2
+ import type { UserMessage } from '../../ag-ui/types/messages';
3
+ import type { IToolBtn, TagSchema } from '../../types';
3
4
  export type MessageToolsProps = {
4
5
  messageTools?: IToolBtn[];
5
- onAction?: (tool: IToolBtn) => Promise<string[] | void>;
6
+ onAction?: (tool: IToolBtn, content?: UserMessage['content'], docSchema?: TagSchema) => Promise<string[] | void>;
6
7
  tippyOptions?: Partial<Omit<TippyOptions, 'content' | 'getReferenceClientRect' | 'triggerTarget'>>;
7
8
  updateTools?: IToolBtn[];
8
9
  };
@@ -1,4 +1,5 @@
1
1
  type __VLS_Props = {
2
+ loading?: boolean;
2
3
  reasonList: string[];
3
4
  title: string;
4
5
  };
@@ -19,3 +19,9 @@ export declare const ArrowRightIcon: import("vue").VNode<import("vue").RendererN
19
19
  export declare const LinkIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
20
20
  [key: string]: any;
21
21
  }>;
22
+ /**
23
+ * 图片加载失败图标
24
+ */
25
+ export declare const ImageErrorIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
+ [key: string]: any;
27
+ }>;
@@ -1,5 +1,6 @@
1
1
  export * from './ai';
2
2
  export * from './content';
3
+ export * from './input';
3
4
  export * from './messages';
4
5
  export * from './shortcuts';
5
6
  export * from './tools';
@@ -0,0 +1,12 @@
1
+ export declare const CloseCircleIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
+ [key: string]: any;
3
+ }>;
4
+ export declare const DocLinkIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
+ [key: string]: any;
6
+ }>;
7
+ export declare const DeleteCircleIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
8
+ [key: string]: any;
9
+ }>;
10
+ export declare const FileUploadIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
11
+ [key: string]: any;
12
+ }>;
@@ -31,6 +31,3 @@ export declare const ContentLoadingIcon: import("vue").VNode<import("vue").Rende
31
31
  export declare const ArrowDownIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
32
32
  [key: string]: any;
33
33
  }>;
34
- export declare const CloseCircleIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
- [key: string]: any;
36
- }>;