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

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 (32) 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/ai-buttons/tool-btn/tool-btn.vue.d.ts +6 -2
  7. package/dist/components/chat-content/common-error-content/common-error-content.vue.d.ts +1 -1
  8. package/dist/components/chat-content/file-content/file-content.vue.d.ts +12 -0
  9. package/dist/components/chat-content/markdown-content/markdown-content.vue.d.ts +1 -1
  10. package/dist/components/chat-content/reference-content/reference-content.vue.d.ts +2 -2
  11. package/dist/components/chat-input/ai-slash-input/ai-slash-input.vue.d.ts +3 -0
  12. package/dist/components/chat-input/chat-input.vue.d.ts +40 -7
  13. package/dist/components/chat-message/message-container/message-container.vue.d.ts +88 -50
  14. package/dist/components/chat-message/message-render/message-render.vue.d.ts +2 -1
  15. package/dist/components/chat-message/user-message/user-message.vue.d.ts +7 -1
  16. package/dist/components/message-tools/message-tools.vue.d.ts +5 -2
  17. package/dist/components/message-tools/user-feedback/user-feedback.vue.d.ts +1 -0
  18. package/dist/icons/content.d.ts +6 -0
  19. package/dist/icons/index.d.ts +1 -0
  20. package/dist/icons/input.d.ts +12 -0
  21. package/dist/icons/messages.d.ts +0 -3
  22. package/dist/icons/tools.d.ts +12 -0
  23. package/dist/index.css +1 -1
  24. package/dist/index.js +764 -335
  25. package/dist/index.js.map +1 -1
  26. package/dist/lang/lang.d.ts +4 -1
  27. package/dist/types/input.d.ts +10 -0
  28. package/dist/types/tool.d.ts +6 -2
  29. package/dist/utils/file.d.ts +24 -0
  30. package/dist/utils/index.d.ts +1 -0
  31. package/package.json +4 -4
  32. package/dist/components/chat-content/x-content/x-content.vue.d.ts +0 -17
@@ -1,11 +1,37 @@
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 { MessageToolsStatus } from '../../../types/tool';
3
+ import type { IToolBtn, TagSchema } from '../../../types';
4
+ /**
5
+ * Agent 工具操作回调类型
6
+ * @param tool - 工具按钮信息
7
+ * @param messages - 当前消息组的消息列表(用于 cite 等需要消息内容的操作)
8
+ */
9
+ type AgentActionCallback = (tool: IToolBtn, messages: Message[]) => Promise<string[] | void>;
10
+ /**
11
+ * Agent 反馈回调类型
12
+ * @param tool - 工具按钮信息(like/unlike)
13
+ * @param messages - 当前消息组的消息列表
14
+ * @param reasonList - 选择的反馈原因列表
15
+ * @param otherReason - 其他原因(自定义输入)
16
+ */
17
+ type AgentFeedbackCallback = (tool: IToolBtn, messages: Message[], reasonList: string[], otherReason: string) => void;
18
+ /**
19
+ * User 工具操作回调类型
20
+ * @param tool - 工具按钮信息
21
+ * @param message - 当前用户消息(用于 delete 等需要消息信息的操作)
22
+ */
23
+ type UserActionCallback = (tool: IToolBtn, message: Message) => Promise<string[] | void>;
3
24
  type __VLS_Props = {
4
25
  enableSelection?: boolean;
5
26
  messages: Message[];
6
27
  messageStatus?: MessageStatus;
7
- onAgentAction?: MessageToolsProps['onAction'];
8
- onUserAction?: MessageToolsProps['onAction'];
28
+ messageToolsStatus?: MessageToolsStatus;
29
+ onAgentAction?: AgentActionCallback;
30
+ onAgentFeedback?: AgentFeedbackCallback;
31
+ onUserAction?: UserActionCallback;
32
+ } & {
33
+ onUserInputConfirm?: (message: Message, content: UserMessage['content'], docSchema: TagSchema) => Promise<void>;
34
+ onUserShortcutConfirm?: (message: Message, formModel: Record<string, unknown>) => Promise<void>;
9
35
  };
10
36
  type __VLS_ModelProps = {
11
37
  'selectedMessages'?: Message[];
@@ -13,9 +39,20 @@ type __VLS_ModelProps = {
13
39
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
14
40
  declare var __VLS_9: {
15
41
  message: {
16
- activityType: string;
17
- content: Record<string, unknown>[];
18
- id: string;
42
+ activityType: import("../../../index.ts").MessageContentType.KnowledgeRag | import("../../../index.ts").MessageContentType.ReferenceDocument | string;
43
+ content: {
44
+ name: string;
45
+ originFile: string;
46
+ url: string;
47
+ }[] | {
48
+ content: string;
49
+ referenceDocument: {
50
+ name: string;
51
+ originFile: string;
52
+ url: string;
53
+ }[];
54
+ };
55
+ id: number | string;
19
56
  messageId: number | string;
20
57
  name?: string | undefined;
21
58
  role: MessageRole.Activity;
@@ -282,7 +319,7 @@ declare var __VLS_9: {
282
319
  multiple?: boolean | undefined;
283
320
  placeholder?: string | undefined;
284
321
  list?: any[] | undefined;
285
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
322
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
286
323
  behavior?: "normal" | "simplicity" | undefined;
287
324
  selectedStyle?: "checkbox" | "check" | undefined;
288
325
  scrollHeight?: number | undefined;
@@ -546,7 +583,7 @@ declare var __VLS_9: {
546
583
  error?: string | undefined;
547
584
  toolCallId?: string | undefined;
548
585
  content?: string | undefined;
549
- id?: string | undefined;
586
+ id?: string | number | undefined;
550
587
  messageId?: string | number | undefined;
551
588
  name?: string | undefined;
552
589
  role?: MessageRole.Tool | undefined;
@@ -813,7 +850,7 @@ declare var __VLS_9: {
813
850
  multiple?: boolean | undefined;
814
851
  placeholder?: string | undefined;
815
852
  list?: any[] | undefined;
816
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
853
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
817
854
  behavior?: "normal" | "simplicity" | undefined;
818
855
  selectedStyle?: "checkbox" | "check" | undefined;
819
856
  scrollHeight?: number | undefined;
@@ -1067,7 +1104,7 @@ declare var __VLS_9: {
1067
1104
  type: import("../../../index.ts").MessageContentType.Function;
1068
1105
  }[] | undefined;
1069
1106
  content: string;
1070
- id: string;
1107
+ id: number | string;
1071
1108
  messageId: number | string;
1072
1109
  name?: string | undefined;
1073
1110
  role: MessageRole.Assistant;
@@ -1334,7 +1371,7 @@ declare var __VLS_9: {
1334
1371
  multiple?: boolean | undefined;
1335
1372
  placeholder?: string | undefined;
1336
1373
  list?: any[] | undefined;
1337
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
1374
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
1338
1375
  behavior?: "normal" | "simplicity" | undefined;
1339
1376
  selectedStyle?: "checkbox" | "check" | undefined;
1340
1377
  scrollHeight?: number | undefined;
@@ -1586,7 +1623,7 @@ declare var __VLS_9: {
1586
1623
  } | undefined;
1587
1624
  } | {
1588
1625
  content: string;
1589
- id: string;
1626
+ id: number | string;
1590
1627
  messageId: number | string;
1591
1628
  name?: string | undefined;
1592
1629
  role: MessageRole.Developer;
@@ -1853,7 +1890,7 @@ declare var __VLS_9: {
1853
1890
  multiple?: boolean | undefined;
1854
1891
  placeholder?: string | undefined;
1855
1892
  list?: any[] | undefined;
1856
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
1893
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
1857
1894
  behavior?: "normal" | "simplicity" | undefined;
1858
1895
  selectedStyle?: "checkbox" | "check" | undefined;
1859
1896
  scrollHeight?: number | undefined;
@@ -2105,7 +2142,7 @@ declare var __VLS_9: {
2105
2142
  } | undefined;
2106
2143
  } | {
2107
2144
  content: string;
2108
- id: string;
2145
+ id: number | string;
2109
2146
  messageId: number | string;
2110
2147
  name?: string | undefined;
2111
2148
  role: MessageRole.Guide;
@@ -2372,7 +2409,7 @@ declare var __VLS_9: {
2372
2409
  multiple?: boolean | undefined;
2373
2410
  placeholder?: string | undefined;
2374
2411
  list?: any[] | undefined;
2375
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
2412
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
2376
2413
  behavior?: "normal" | "simplicity" | undefined;
2377
2414
  selectedStyle?: "checkbox" | "check" | undefined;
2378
2415
  scrollHeight?: number | undefined;
@@ -2624,7 +2661,7 @@ declare var __VLS_9: {
2624
2661
  } | undefined;
2625
2662
  } | {
2626
2663
  content: string;
2627
- id: string;
2664
+ id: number | string;
2628
2665
  messageId: number | string;
2629
2666
  name?: string | undefined;
2630
2667
  role: MessageRole.HiddenAssistant;
@@ -2891,7 +2928,7 @@ declare var __VLS_9: {
2891
2928
  multiple?: boolean | undefined;
2892
2929
  placeholder?: string | undefined;
2893
2930
  list?: any[] | undefined;
2894
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
2931
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
2895
2932
  behavior?: "normal" | "simplicity" | undefined;
2896
2933
  selectedStyle?: "checkbox" | "check" | undefined;
2897
2934
  scrollHeight?: number | undefined;
@@ -3143,7 +3180,7 @@ declare var __VLS_9: {
3143
3180
  } | undefined;
3144
3181
  } | {
3145
3182
  content: string;
3146
- id: string;
3183
+ id: number | string;
3147
3184
  messageId: number | string;
3148
3185
  name?: string | undefined;
3149
3186
  role: MessageRole.HiddenGuide;
@@ -3410,7 +3447,7 @@ declare var __VLS_9: {
3410
3447
  multiple?: boolean | undefined;
3411
3448
  placeholder?: string | undefined;
3412
3449
  list?: any[] | undefined;
3413
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
3450
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
3414
3451
  behavior?: "normal" | "simplicity" | undefined;
3415
3452
  selectedStyle?: "checkbox" | "check" | undefined;
3416
3453
  scrollHeight?: number | undefined;
@@ -3662,7 +3699,7 @@ declare var __VLS_9: {
3662
3699
  } | undefined;
3663
3700
  } | {
3664
3701
  content: string;
3665
- id: string;
3702
+ id: number | string;
3666
3703
  messageId: number | string;
3667
3704
  name?: string | undefined;
3668
3705
  role: MessageRole.Hidden;
@@ -3929,7 +3966,7 @@ declare var __VLS_9: {
3929
3966
  multiple?: boolean | undefined;
3930
3967
  placeholder?: string | undefined;
3931
3968
  list?: any[] | undefined;
3932
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
3969
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
3933
3970
  behavior?: "normal" | "simplicity" | undefined;
3934
3971
  selectedStyle?: "checkbox" | "check" | undefined;
3935
3972
  scrollHeight?: number | undefined;
@@ -4181,7 +4218,7 @@ declare var __VLS_9: {
4181
4218
  } | undefined;
4182
4219
  } | {
4183
4220
  content: string;
4184
- id: string;
4221
+ id: number | string;
4185
4222
  messageId: number | string;
4186
4223
  name?: string | undefined;
4187
4224
  role: MessageRole.HiddenSystem;
@@ -4448,7 +4485,7 @@ declare var __VLS_9: {
4448
4485
  multiple?: boolean | undefined;
4449
4486
  placeholder?: string | undefined;
4450
4487
  list?: any[] | undefined;
4451
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
4488
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
4452
4489
  behavior?: "normal" | "simplicity" | undefined;
4453
4490
  selectedStyle?: "checkbox" | "check" | undefined;
4454
4491
  scrollHeight?: number | undefined;
@@ -4700,7 +4737,7 @@ declare var __VLS_9: {
4700
4737
  } | undefined;
4701
4738
  } | {
4702
4739
  content: string;
4703
- id: string;
4740
+ id: number | string;
4704
4741
  messageId: number | string;
4705
4742
  name?: string | undefined;
4706
4743
  role: MessageRole.HiddenUser;
@@ -4967,7 +5004,7 @@ declare var __VLS_9: {
4967
5004
  multiple?: boolean | undefined;
4968
5005
  placeholder?: string | undefined;
4969
5006
  list?: any[] | undefined;
4970
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
5007
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
4971
5008
  behavior?: "normal" | "simplicity" | undefined;
4972
5009
  selectedStyle?: "checkbox" | "check" | undefined;
4973
5010
  scrollHeight?: number | undefined;
@@ -5219,7 +5256,7 @@ declare var __VLS_9: {
5219
5256
  } | undefined;
5220
5257
  } | {
5221
5258
  content: string;
5222
- id: string;
5259
+ id: number | string;
5223
5260
  messageId: number | string;
5224
5261
  name?: string | undefined;
5225
5262
  role: MessageRole.Info;
@@ -5486,7 +5523,7 @@ declare var __VLS_9: {
5486
5523
  multiple?: boolean | undefined;
5487
5524
  placeholder?: string | undefined;
5488
5525
  list?: any[] | undefined;
5489
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
5526
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
5490
5527
  behavior?: "normal" | "simplicity" | undefined;
5491
5528
  selectedStyle?: "checkbox" | "check" | undefined;
5492
5529
  scrollHeight?: number | undefined;
@@ -5738,7 +5775,7 @@ declare var __VLS_9: {
5738
5775
  } | undefined;
5739
5776
  } | {
5740
5777
  content: string;
5741
- id: string;
5778
+ id: number | string;
5742
5779
  messageId: number | string;
5743
5780
  name?: string | undefined;
5744
5781
  role: MessageRole.Pause;
@@ -6005,7 +6042,7 @@ declare var __VLS_9: {
6005
6042
  multiple?: boolean | undefined;
6006
6043
  placeholder?: string | undefined;
6007
6044
  list?: any[] | undefined;
6008
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
6045
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
6009
6046
  behavior?: "normal" | "simplicity" | undefined;
6010
6047
  selectedStyle?: "checkbox" | "check" | undefined;
6011
6048
  scrollHeight?: number | undefined;
@@ -6257,7 +6294,7 @@ declare var __VLS_9: {
6257
6294
  } | undefined;
6258
6295
  } | {
6259
6296
  content: string;
6260
- id: string;
6297
+ id: number | string;
6261
6298
  messageId: number | string;
6262
6299
  name?: string | undefined;
6263
6300
  role: MessageRole.Placeholder;
@@ -6524,7 +6561,7 @@ declare var __VLS_9: {
6524
6561
  multiple?: boolean | undefined;
6525
6562
  placeholder?: string | undefined;
6526
6563
  list?: any[] | undefined;
6527
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
6564
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
6528
6565
  behavior?: "normal" | "simplicity" | undefined;
6529
6566
  selectedStyle?: "checkbox" | "check" | undefined;
6530
6567
  scrollHeight?: number | undefined;
@@ -6777,7 +6814,7 @@ declare var __VLS_9: {
6777
6814
  } | {
6778
6815
  duration?: number | undefined;
6779
6816
  content: string[];
6780
- id: string;
6817
+ id: number | string;
6781
6818
  messageId: number | string;
6782
6819
  name?: string | undefined;
6783
6820
  role: MessageRole.Reasoning;
@@ -7044,7 +7081,7 @@ declare var __VLS_9: {
7044
7081
  multiple?: boolean | undefined;
7045
7082
  placeholder?: string | undefined;
7046
7083
  list?: any[] | undefined;
7047
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
7084
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
7048
7085
  behavior?: "normal" | "simplicity" | undefined;
7049
7086
  selectedStyle?: "checkbox" | "check" | undefined;
7050
7087
  scrollHeight?: number | undefined;
@@ -7296,7 +7333,7 @@ declare var __VLS_9: {
7296
7333
  } | undefined;
7297
7334
  } | {
7298
7335
  content: string;
7299
- id: string;
7336
+ id: number | string;
7300
7337
  messageId: number | string;
7301
7338
  name?: string | undefined;
7302
7339
  role: MessageRole.System;
@@ -7563,7 +7600,7 @@ declare var __VLS_9: {
7563
7600
  multiple?: boolean | undefined;
7564
7601
  placeholder?: string | undefined;
7565
7602
  list?: any[] | undefined;
7566
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
7603
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
7567
7604
  behavior?: "normal" | "simplicity" | undefined;
7568
7605
  selectedStyle?: "checkbox" | "check" | undefined;
7569
7606
  scrollHeight?: number | undefined;
@@ -7815,7 +7852,7 @@ declare var __VLS_9: {
7815
7852
  } | undefined;
7816
7853
  } | {
7817
7854
  content: string;
7818
- id: string;
7855
+ id: number | string;
7819
7856
  messageId: number | string;
7820
7857
  name?: string | undefined;
7821
7858
  role: MessageRole.TemplateAssistant;
@@ -8082,7 +8119,7 @@ declare var __VLS_9: {
8082
8119
  multiple?: boolean | undefined;
8083
8120
  placeholder?: string | undefined;
8084
8121
  list?: any[] | undefined;
8085
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
8122
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
8086
8123
  behavior?: "normal" | "simplicity" | undefined;
8087
8124
  selectedStyle?: "checkbox" | "check" | undefined;
8088
8125
  scrollHeight?: number | undefined;
@@ -8334,7 +8371,7 @@ declare var __VLS_9: {
8334
8371
  } | undefined;
8335
8372
  } | {
8336
8373
  content: string;
8337
- id: string;
8374
+ id: number | string;
8338
8375
  messageId: number | string;
8339
8376
  name?: string | undefined;
8340
8377
  role: MessageRole.TemplateGuide;
@@ -8601,7 +8638,7 @@ declare var __VLS_9: {
8601
8638
  multiple?: boolean | undefined;
8602
8639
  placeholder?: string | undefined;
8603
8640
  list?: any[] | undefined;
8604
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
8641
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
8605
8642
  behavior?: "normal" | "simplicity" | undefined;
8606
8643
  selectedStyle?: "checkbox" | "check" | undefined;
8607
8644
  scrollHeight?: number | undefined;
@@ -8853,7 +8890,7 @@ declare var __VLS_9: {
8853
8890
  } | undefined;
8854
8891
  } | {
8855
8892
  content: string;
8856
- id: string;
8893
+ id: number | string;
8857
8894
  messageId: number | string;
8858
8895
  name?: string | undefined;
8859
8896
  role: MessageRole.TemplateHidden;
@@ -9120,7 +9157,7 @@ declare var __VLS_9: {
9120
9157
  multiple?: boolean | undefined;
9121
9158
  placeholder?: string | undefined;
9122
9159
  list?: any[] | undefined;
9123
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
9160
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
9124
9161
  behavior?: "normal" | "simplicity" | undefined;
9125
9162
  selectedStyle?: "checkbox" | "check" | undefined;
9126
9163
  scrollHeight?: number | undefined;
@@ -9372,7 +9409,7 @@ declare var __VLS_9: {
9372
9409
  } | undefined;
9373
9410
  } | {
9374
9411
  content: string;
9375
- id: string;
9412
+ id: number | string;
9376
9413
  messageId: number | string;
9377
9414
  name?: string | undefined;
9378
9415
  role: MessageRole.TemplateSystem;
@@ -9639,7 +9676,7 @@ declare var __VLS_9: {
9639
9676
  multiple?: boolean | undefined;
9640
9677
  placeholder?: string | undefined;
9641
9678
  list?: any[] | undefined;
9642
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
9679
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
9643
9680
  behavior?: "normal" | "simplicity" | undefined;
9644
9681
  selectedStyle?: "checkbox" | "check" | undefined;
9645
9682
  scrollHeight?: number | undefined;
@@ -9891,7 +9928,7 @@ declare var __VLS_9: {
9891
9928
  } | undefined;
9892
9929
  } | {
9893
9930
  content: string;
9894
- id: string;
9931
+ id: number | string;
9895
9932
  messageId: number | string;
9896
9933
  name?: string | undefined;
9897
9934
  role: MessageRole.TemplateUser;
@@ -10158,7 +10195,7 @@ declare var __VLS_9: {
10158
10195
  multiple?: boolean | undefined;
10159
10196
  placeholder?: string | undefined;
10160
10197
  list?: any[] | undefined;
10161
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
10198
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
10162
10199
  behavior?: "normal" | "simplicity" | undefined;
10163
10200
  selectedStyle?: "checkbox" | "check" | undefined;
10164
10201
  scrollHeight?: number | undefined;
@@ -10413,7 +10450,7 @@ declare var __VLS_9: {
10413
10450
  error?: string | undefined;
10414
10451
  toolCallId: string;
10415
10452
  content: string;
10416
- id: string;
10453
+ id: number | string;
10417
10454
  messageId: number | string;
10418
10455
  name?: string | undefined;
10419
10456
  role: MessageRole.Tool;
@@ -10680,7 +10717,7 @@ declare var __VLS_9: {
10680
10717
  multiple?: boolean | undefined;
10681
10718
  placeholder?: string | undefined;
10682
10719
  list?: any[] | undefined;
10683
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
10720
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
10684
10721
  behavior?: "normal" | "simplicity" | undefined;
10685
10722
  selectedStyle?: "checkbox" | "check" | undefined;
10686
10723
  scrollHeight?: number | undefined;
@@ -10942,7 +10979,7 @@ declare var __VLS_9: {
10942
10979
  text: string;
10943
10980
  type: import("../../../index.ts").MessageContentType.Text;
10944
10981
  })[];
10945
- id: string;
10982
+ id: number | string;
10946
10983
  messageId: number | string;
10947
10984
  name?: string | undefined;
10948
10985
  role: MessageRole.User;
@@ -11209,7 +11246,7 @@ declare var __VLS_9: {
11209
11246
  multiple?: boolean | undefined;
11210
11247
  placeholder?: string | undefined;
11211
11248
  list?: any[] | undefined;
11212
- tagTheme?: "" | "info" | "danger" | "success" | "warning" | undefined;
11249
+ tagTheme?: "" | "info" | "success" | "danger" | "warning" | undefined;
11213
11250
  behavior?: "normal" | "simplicity" | undefined;
11214
11251
  selectedStyle?: "checkbox" | "check" | undefined;
11215
11252
  scrollHeight?: number | undefined;
@@ -11460,6 +11497,7 @@ declare var __VLS_9: {
11460
11497
  } | undefined;
11461
11498
  } | undefined;
11462
11499
  };
11500
+ messageToolsStatus: MessageToolsStatus | undefined;
11463
11501
  };
11464
11502
  type __VLS_Slots = {} & {
11465
11503
  default?: (props: typeof __VLS_9) => any;
@@ -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,12 @@
1
+ import { type TagSchema, MessageToolsStatus } 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
+ messageToolsStatus?: MessageToolsStatus;
6
+ onInputConfirm?: (content: UserMessage['content'], docSchema: TagSchema) => Promise<void>;
7
+ onShortcutConfirm?: (formModel: Record<string, unknown>) => Promise<void>;
8
+ };
9
+ type __VLS_Props = Partial<UserMessage> & Pick<MessageToolsProps, 'onAction'> & UserMessageActionsProps;
4
10
  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
11
  declare const _default: typeof __VLS_export;
6
12
  export default _default;
@@ -1,8 +1,11 @@
1
1
  import { type TippyOptions } from 'vue-tippy';
2
- import type { IToolBtn } from '../../types';
2
+ import { MessageToolsStatus } from '../../types/tool';
3
+ import type { UserMessage } from '../../ag-ui/types/messages';
4
+ import type { IToolBtn, TagSchema } from '../../types';
3
5
  export type MessageToolsProps = {
4
6
  messageTools?: IToolBtn[];
5
- onAction?: (tool: IToolBtn) => Promise<string[] | void>;
7
+ messageToolsStatus?: MessageToolsStatus;
8
+ onAction?: (tool: IToolBtn, content?: UserMessage['content'], docSchema?: TagSchema) => Promise<string[] | void>;
6
9
  tippyOptions?: Partial<Omit<TippyOptions, 'content' | 'getReferenceClientRect' | 'triggerTarget'>>;
7
10
  updateTools?: IToolBtn[];
8
11
  };
@@ -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
- }>;
@@ -22,6 +22,12 @@ export declare const DeleteIcon: import("vue").VNode<import("vue").RendererNode,
22
22
  export declare const EditIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
23
23
  [key: string]: any;
24
24
  }>;
25
+ export declare const ActiveLikeIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
26
+ [key: string]: any;
27
+ }>;
28
+ export declare const ActiveUnLikeIcon: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
+ [key: string]: any;
30
+ }>;
25
31
  export declare const ToolIconsMap: {
26
32
  readonly copy: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
33
  [key: string]: any;
@@ -47,5 +53,11 @@ export declare const ToolIconsMap: {
47
53
  readonly edit: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
54
  [key: string]: any;
49
55
  }>;
56
+ readonly activeLike: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
57
+ [key: string]: any;
58
+ }>;
59
+ readonly activeUnLike: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
60
+ [key: string]: any;
61
+ }>;
50
62
  };
51
63
  export type ToolIcons = keyof typeof ToolIconsMap;