@tdesign-react/chat 1.0.2-alpha.10 → 1.0.2-alpha.11

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 (65) hide show
  1. package/es/_util/reactify.js +1 -1
  2. package/es/_util/useDynamicStyle.js +1 -1
  3. package/es/attachments/index.js +1 -1
  4. package/es/chat-actionbar/index.js +1 -1
  5. package/es/chat-engine/components/activity/index.js +1 -1
  6. package/es/chat-engine/components/activity/registry.js +1 -1
  7. package/es/chat-engine/components/activity/render.js +1 -1
  8. package/es/chat-engine/components/activity/types.js +1 -1
  9. package/es/chat-engine/components/index.js +7 -8
  10. package/es/chat-engine/components/index.js.map +1 -1
  11. package/es/chat-engine/components/provider/agent-state.js +35 -2
  12. package/es/chat-engine/components/provider/agent-state.js.map +1 -1
  13. package/es/chat-engine/components/toolcall/index.js +1 -2
  14. package/es/chat-engine/components/toolcall/index.js.map +1 -1
  15. package/es/chat-engine/components/toolcall/registry.js +1 -1
  16. package/es/chat-engine/components/toolcall/render.js +7 -8
  17. package/es/chat-engine/components/toolcall/render.js.map +1 -1
  18. package/es/chat-engine/components/toolcall/types.js +1 -1
  19. package/es/chat-engine/core/adapters/agui/event-mapper.js +1 -1
  20. package/es/chat-engine/core/adapters/agui/events.d.ts +58 -58
  21. package/es/chat-engine/core/adapters/agui/events.js +1 -1
  22. package/es/chat-engine/core/adapters/agui/index.js +1 -1
  23. package/es/chat-engine/core/adapters/agui/state-manager.js +1 -1
  24. package/es/chat-engine/core/adapters/agui/types.d.ts +16 -16
  25. package/es/chat-engine/core/adapters/agui/types.js +1 -1
  26. package/es/chat-engine/core/adapters/agui/utils.js +1 -1
  27. package/es/chat-engine/core/index.js +1 -1
  28. package/es/chat-engine/core/processor/index.js +1 -1
  29. package/es/chat-engine/core/server/batch-client.js +1 -1
  30. package/es/chat-engine/core/server/connection-manager.js +1 -1
  31. package/es/chat-engine/core/server/errors.js +1 -1
  32. package/es/chat-engine/core/server/index.js +1 -1
  33. package/es/chat-engine/core/server/llm-service.js +1 -1
  34. package/es/chat-engine/core/server/sse-client.js +1 -1
  35. package/es/chat-engine/core/server/sse-parser.js +1 -1
  36. package/es/chat-engine/core/server/types.js +1 -1
  37. package/es/chat-engine/core/store/message.js +1 -1
  38. package/es/chat-engine/core/store/model.js +1 -1
  39. package/es/chat-engine/core/store/reactiveState.js +1 -1
  40. package/es/chat-engine/core/type.js +1 -1
  41. package/es/chat-engine/core/utils/eventEmitter.js +1 -1
  42. package/es/chat-engine/core/utils/index.js +1 -1
  43. package/es/chat-engine/core/utils/logger.js +1 -1
  44. package/es/chat-engine/hooks/index.js +34 -4
  45. package/es/chat-engine/hooks/index.js.map +1 -1
  46. package/es/chat-engine/hooks/useAgentActivity.js +1 -1
  47. package/es/chat-engine/hooks/useAgentState.js +35 -2
  48. package/es/chat-engine/hooks/useAgentState.js.map +1 -1
  49. package/es/chat-engine/hooks/useAgentToolcall.js +1 -1
  50. package/es/chat-engine/hooks/useChat.d.ts +2 -2
  51. package/es/chat-engine/hooks/useChat.js +36 -2
  52. package/es/chat-engine/hooks/useChat.js.map +1 -1
  53. package/es/chat-engine/index.js +1 -2
  54. package/es/chat-engine/index.js.map +1 -1
  55. package/es/chat-filecard/index.js +1 -1
  56. package/es/chat-loading/index.js +1 -1
  57. package/es/chat-markdown/index.js +1 -1
  58. package/es/chat-message/index.js +1 -1
  59. package/es/chat-sender/index.js +1 -1
  60. package/es/chat-thinking/index.js +1 -1
  61. package/es/chatbot/index.js +1 -1
  62. package/es/index.js +1 -2
  63. package/es/index.js.map +1 -1
  64. package/es/style/index.js +1 -1
  65. package/package.json +1 -1
@@ -79,17 +79,17 @@ export declare const TextMessageStartEventSchema: z.ZodObject<{
79
79
  messageId: z.ZodString;
80
80
  role: z.ZodLiteral<"assistant">;
81
81
  }, "strip", z.ZodTypeAny, {
82
- messageId?: string;
83
82
  type?: AGUIEventType.TEXT_MESSAGE_START;
84
83
  role?: "assistant";
85
84
  timestamp?: number;
86
85
  rawEvent?: any;
87
- }, {
88
86
  messageId?: string;
87
+ }, {
89
88
  type?: AGUIEventType.TEXT_MESSAGE_START;
90
89
  role?: "assistant";
91
90
  timestamp?: number;
92
91
  rawEvent?: any;
92
+ messageId?: string;
93
93
  }>;
94
94
  export declare const TextMessageContentEventSchema: z.ZodObject<{
95
95
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -99,16 +99,16 @@ export declare const TextMessageContentEventSchema: z.ZodObject<{
99
99
  messageId: z.ZodString;
100
100
  delta: z.ZodEffects<z.ZodString, string, string>;
101
101
  }, "strip", z.ZodTypeAny, {
102
- messageId?: string;
103
102
  type?: AGUIEventType.TEXT_MESSAGE_CONTENT;
104
103
  timestamp?: number;
105
104
  rawEvent?: any;
105
+ messageId?: string;
106
106
  delta?: string;
107
107
  }, {
108
- messageId?: string;
109
108
  type?: AGUIEventType.TEXT_MESSAGE_CONTENT;
110
109
  timestamp?: number;
111
110
  rawEvent?: any;
111
+ messageId?: string;
112
112
  delta?: string;
113
113
  }>;
114
114
  export declare const TextMessageEndEventSchema: z.ZodObject<{
@@ -118,15 +118,15 @@ export declare const TextMessageEndEventSchema: z.ZodObject<{
118
118
  type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_END>;
119
119
  messageId: z.ZodString;
120
120
  }, "strip", z.ZodTypeAny, {
121
- messageId?: string;
122
121
  type?: AGUIEventType.TEXT_MESSAGE_END;
123
122
  timestamp?: number;
124
123
  rawEvent?: any;
125
- }, {
126
124
  messageId?: string;
125
+ }, {
127
126
  type?: AGUIEventType.TEXT_MESSAGE_END;
128
127
  timestamp?: number;
129
128
  rawEvent?: any;
129
+ messageId?: string;
130
130
  }>;
131
131
  export declare const TextMessageChunkEventSchema: z.ZodObject<{
132
132
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -137,18 +137,18 @@ export declare const TextMessageChunkEventSchema: z.ZodObject<{
137
137
  role: z.ZodOptional<z.ZodLiteral<"assistant">>;
138
138
  delta: z.ZodOptional<z.ZodString>;
139
139
  }, "strip", z.ZodTypeAny, {
140
- messageId?: string;
141
140
  type?: AGUIEventType.TEXT_MESSAGE_CHUNK;
142
141
  role?: "assistant";
143
142
  timestamp?: number;
144
143
  rawEvent?: any;
144
+ messageId?: string;
145
145
  delta?: string;
146
146
  }, {
147
- messageId?: string;
148
147
  type?: AGUIEventType.TEXT_MESSAGE_CHUNK;
149
148
  role?: "assistant";
150
149
  timestamp?: number;
151
150
  rawEvent?: any;
151
+ messageId?: string;
152
152
  delta?: string;
153
153
  }>;
154
154
  export declare const ThinkingTextMessageStartEventSchema: z.ZodObject<{
@@ -172,7 +172,7 @@ export declare const ThinkingTextMessageContentEventSchema: z.ZodObject<Omit<{
172
172
  type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_CONTENT>;
173
173
  messageId: z.ZodString;
174
174
  delta: z.ZodEffects<z.ZodString, string, string>;
175
- }, "messageId" | "type"> & {
175
+ }, "type" | "messageId"> & {
176
176
  type: z.ZodLiteral<AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT>;
177
177
  }, "strip", z.ZodTypeAny, {
178
178
  type?: AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT;
@@ -271,21 +271,21 @@ export declare const ToolCallResultEventSchema: z.ZodObject<{
271
271
  role: z.ZodOptional<z.ZodLiteral<"tool">>;
272
272
  }, "strip", z.ZodTypeAny, {
273
273
  content?: string;
274
- messageId?: string;
275
274
  type?: AGUIEventType.TOOL_CALL_RESULT;
276
275
  role?: "tool";
277
276
  timestamp?: number;
278
277
  toolCallId?: string;
279
278
  rawEvent?: any;
279
+ messageId?: string;
280
280
  toolCallName?: string;
281
281
  }, {
282
282
  content?: string;
283
- messageId?: string;
284
283
  type?: AGUIEventType.TOOL_CALL_RESULT;
285
284
  role?: "tool";
286
285
  timestamp?: number;
287
286
  toolCallId?: string;
288
287
  rawEvent?: any;
288
+ messageId?: string;
289
289
  toolCallName?: string;
290
290
  }>;
291
291
  export declare const ToolCallChunkEventSchema: z.ZodObject<{
@@ -326,19 +326,19 @@ export declare const ActivitySnapshotEventSchema: z.ZodObject<{
326
326
  }, "strip", z.ZodTypeAny, {
327
327
  replace?: boolean;
328
328
  content?: Record<string, any>;
329
- activityType?: string;
330
- messageId?: string;
331
329
  type?: AGUIEventType.ACTIVITY_SNAPSHOT;
332
330
  timestamp?: number;
331
+ activityType?: string;
333
332
  rawEvent?: any;
333
+ messageId?: string;
334
334
  }, {
335
335
  replace?: boolean;
336
336
  content?: Record<string, any>;
337
- activityType?: string;
338
- messageId?: string;
339
337
  type?: AGUIEventType.ACTIVITY_SNAPSHOT;
340
338
  timestamp?: number;
339
+ activityType?: string;
341
340
  rawEvent?: any;
341
+ messageId?: string;
342
342
  }>;
343
343
  export declare const ActivityDeltaEventSchema: z.ZodObject<{
344
344
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -349,18 +349,18 @@ export declare const ActivityDeltaEventSchema: z.ZodObject<{
349
349
  activityType: z.ZodOptional<z.ZodString>;
350
350
  patch: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
351
351
  }, "strip", z.ZodTypeAny, {
352
- activityType?: string;
353
- messageId?: string;
354
352
  type?: AGUIEventType.ACTIVITY_DELTA;
355
353
  timestamp?: number;
354
+ activityType?: string;
356
355
  rawEvent?: any;
356
+ messageId?: string;
357
357
  patch?: any[];
358
358
  }, {
359
- activityType?: string;
360
- messageId?: string;
361
359
  type?: AGUIEventType.ACTIVITY_DELTA;
362
360
  timestamp?: number;
361
+ activityType?: string;
363
362
  rawEvent?: any;
363
+ messageId?: string;
364
364
  patch?: any[];
365
365
  }>;
366
366
  export declare const ThinkingStartEventSchema: z.ZodObject<{
@@ -581,16 +581,18 @@ export declare const MessagesSnapshotEventSchema: z.ZodObject<{
581
581
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
582
582
  }, "strip", z.ZodTypeAny, {
583
583
  content?: Record<string, any>;
584
- activityType?: string;
585
584
  id?: string;
586
585
  role?: "activity";
586
+ activityType?: string;
587
587
  }, {
588
588
  content?: Record<string, any>;
589
- activityType?: string;
590
589
  id?: string;
591
590
  role?: "activity";
591
+ activityType?: string;
592
592
  }>]>, "many">;
593
593
  }, "strip", z.ZodTypeAny, {
594
+ type?: AGUIEventType.MESSAGES_SNAPSHOT;
595
+ timestamp?: number;
594
596
  messages?: ({
595
597
  content?: string;
596
598
  name?: string;
@@ -631,14 +633,14 @@ export declare const MessagesSnapshotEventSchema: z.ZodObject<{
631
633
  toolCallId?: string;
632
634
  } | {
633
635
  content?: Record<string, any>;
634
- activityType?: string;
635
636
  id?: string;
636
637
  role?: "activity";
638
+ activityType?: string;
637
639
  })[];
638
- type?: AGUIEventType.MESSAGES_SNAPSHOT;
639
- timestamp?: number;
640
640
  rawEvent?: any;
641
641
  }, {
642
+ type?: AGUIEventType.MESSAGES_SNAPSHOT;
643
+ timestamp?: number;
642
644
  messages?: ({
643
645
  content?: string;
644
646
  name?: string;
@@ -679,12 +681,10 @@ export declare const MessagesSnapshotEventSchema: z.ZodObject<{
679
681
  toolCallId?: string;
680
682
  } | {
681
683
  content?: Record<string, any>;
682
- activityType?: string;
683
684
  id?: string;
684
685
  role?: "activity";
686
+ activityType?: string;
685
687
  })[];
686
- type?: AGUIEventType.MESSAGES_SNAPSHOT;
687
- timestamp?: number;
688
688
  rawEvent?: any;
689
689
  }>;
690
690
  export declare const RawEventSchema: z.ZodObject<{
@@ -756,19 +756,19 @@ export declare const RunFinishedEventSchema: z.ZodObject<{
756
756
  runId: z.ZodString;
757
757
  result: z.ZodOptional<z.ZodAny>;
758
758
  }, "strip", z.ZodTypeAny, {
759
- result?: any;
760
759
  type?: AGUIEventType.RUN_FINISHED;
761
760
  timestamp?: number;
762
761
  threadId?: string;
763
762
  runId?: string;
764
763
  rawEvent?: any;
765
- }, {
766
764
  result?: any;
765
+ }, {
767
766
  type?: AGUIEventType.RUN_FINISHED;
768
767
  timestamp?: number;
769
768
  threadId?: string;
770
769
  runId?: string;
771
770
  rawEvent?: any;
771
+ result?: any;
772
772
  }>;
773
773
  export declare const RunErrorEventSchema: z.ZodObject<{
774
774
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -832,17 +832,17 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
832
832
  messageId: z.ZodString;
833
833
  role: z.ZodLiteral<"assistant">;
834
834
  }, "strip", z.ZodTypeAny, {
835
- messageId?: string;
836
835
  type?: AGUIEventType.TEXT_MESSAGE_START;
837
836
  role?: "assistant";
838
837
  timestamp?: number;
839
838
  rawEvent?: any;
840
- }, {
841
839
  messageId?: string;
840
+ }, {
842
841
  type?: AGUIEventType.TEXT_MESSAGE_START;
843
842
  role?: "assistant";
844
843
  timestamp?: number;
845
844
  rawEvent?: any;
845
+ messageId?: string;
846
846
  }>, z.ZodObject<{
847
847
  timestamp: z.ZodOptional<z.ZodNumber>;
848
848
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -851,16 +851,16 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
851
851
  messageId: z.ZodString;
852
852
  delta: z.ZodEffects<z.ZodString, string, string>;
853
853
  }, "strip", z.ZodTypeAny, {
854
- messageId?: string;
855
854
  type?: AGUIEventType.TEXT_MESSAGE_CONTENT;
856
855
  timestamp?: number;
857
856
  rawEvent?: any;
857
+ messageId?: string;
858
858
  delta?: string;
859
859
  }, {
860
- messageId?: string;
861
860
  type?: AGUIEventType.TEXT_MESSAGE_CONTENT;
862
861
  timestamp?: number;
863
862
  rawEvent?: any;
863
+ messageId?: string;
864
864
  delta?: string;
865
865
  }>, z.ZodObject<{
866
866
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -869,15 +869,15 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
869
869
  type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_END>;
870
870
  messageId: z.ZodString;
871
871
  }, "strip", z.ZodTypeAny, {
872
- messageId?: string;
873
872
  type?: AGUIEventType.TEXT_MESSAGE_END;
874
873
  timestamp?: number;
875
874
  rawEvent?: any;
876
- }, {
877
875
  messageId?: string;
876
+ }, {
878
877
  type?: AGUIEventType.TEXT_MESSAGE_END;
879
878
  timestamp?: number;
880
879
  rawEvent?: any;
880
+ messageId?: string;
881
881
  }>, z.ZodObject<{
882
882
  timestamp: z.ZodOptional<z.ZodNumber>;
883
883
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -887,18 +887,18 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
887
887
  role: z.ZodOptional<z.ZodLiteral<"assistant">>;
888
888
  delta: z.ZodOptional<z.ZodString>;
889
889
  }, "strip", z.ZodTypeAny, {
890
- messageId?: string;
891
890
  type?: AGUIEventType.TEXT_MESSAGE_CHUNK;
892
891
  role?: "assistant";
893
892
  timestamp?: number;
894
893
  rawEvent?: any;
894
+ messageId?: string;
895
895
  delta?: string;
896
896
  }, {
897
- messageId?: string;
898
897
  type?: AGUIEventType.TEXT_MESSAGE_CHUNK;
899
898
  role?: "assistant";
900
899
  timestamp?: number;
901
900
  rawEvent?: any;
901
+ messageId?: string;
902
902
  delta?: string;
903
903
  }>, z.ZodObject<{
904
904
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -920,7 +920,7 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
920
920
  type: z.ZodLiteral<AGUIEventType.TEXT_MESSAGE_CONTENT>;
921
921
  messageId: z.ZodString;
922
922
  delta: z.ZodEffects<z.ZodString, string, string>;
923
- }, "messageId" | "type"> & {
923
+ }, "type" | "messageId"> & {
924
924
  type: z.ZodLiteral<AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT>;
925
925
  }, "strip", z.ZodTypeAny, {
926
926
  type?: AGUIEventType.THINKING_TEXT_MESSAGE_CONTENT;
@@ -1039,21 +1039,21 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1039
1039
  role: z.ZodOptional<z.ZodLiteral<"tool">>;
1040
1040
  }, "strip", z.ZodTypeAny, {
1041
1041
  content?: string;
1042
- messageId?: string;
1043
1042
  type?: AGUIEventType.TOOL_CALL_RESULT;
1044
1043
  role?: "tool";
1045
1044
  timestamp?: number;
1046
1045
  toolCallId?: string;
1047
1046
  rawEvent?: any;
1047
+ messageId?: string;
1048
1048
  toolCallName?: string;
1049
1049
  }, {
1050
1050
  content?: string;
1051
- messageId?: string;
1052
1051
  type?: AGUIEventType.TOOL_CALL_RESULT;
1053
1052
  role?: "tool";
1054
1053
  timestamp?: number;
1055
1054
  toolCallId?: string;
1056
1055
  rawEvent?: any;
1056
+ messageId?: string;
1057
1057
  toolCallName?: string;
1058
1058
  }>, z.ZodObject<{
1059
1059
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -1067,19 +1067,19 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1067
1067
  }, "strip", z.ZodTypeAny, {
1068
1068
  replace?: boolean;
1069
1069
  content?: Record<string, any>;
1070
- activityType?: string;
1071
- messageId?: string;
1072
1070
  type?: AGUIEventType.ACTIVITY_SNAPSHOT;
1073
1071
  timestamp?: number;
1072
+ activityType?: string;
1074
1073
  rawEvent?: any;
1074
+ messageId?: string;
1075
1075
  }, {
1076
1076
  replace?: boolean;
1077
1077
  content?: Record<string, any>;
1078
- activityType?: string;
1079
- messageId?: string;
1080
1078
  type?: AGUIEventType.ACTIVITY_SNAPSHOT;
1081
1079
  timestamp?: number;
1080
+ activityType?: string;
1082
1081
  rawEvent?: any;
1082
+ messageId?: string;
1083
1083
  }>, z.ZodObject<{
1084
1084
  timestamp: z.ZodOptional<z.ZodNumber>;
1085
1085
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -1089,18 +1089,18 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1089
1089
  activityType: z.ZodOptional<z.ZodString>;
1090
1090
  patch: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1091
1091
  }, "strip", z.ZodTypeAny, {
1092
- activityType?: string;
1093
- messageId?: string;
1094
1092
  type?: AGUIEventType.ACTIVITY_DELTA;
1095
1093
  timestamp?: number;
1094
+ activityType?: string;
1096
1095
  rawEvent?: any;
1096
+ messageId?: string;
1097
1097
  patch?: any[];
1098
1098
  }, {
1099
- activityType?: string;
1100
- messageId?: string;
1101
1099
  type?: AGUIEventType.ACTIVITY_DELTA;
1102
1100
  timestamp?: number;
1101
+ activityType?: string;
1103
1102
  rawEvent?: any;
1103
+ messageId?: string;
1104
1104
  patch?: any[];
1105
1105
  }>, z.ZodObject<{
1106
1106
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -1284,16 +1284,18 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1284
1284
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
1285
1285
  }, "strip", z.ZodTypeAny, {
1286
1286
  content?: Record<string, any>;
1287
- activityType?: string;
1288
1287
  id?: string;
1289
1288
  role?: "activity";
1289
+ activityType?: string;
1290
1290
  }, {
1291
1291
  content?: Record<string, any>;
1292
- activityType?: string;
1293
1292
  id?: string;
1294
1293
  role?: "activity";
1294
+ activityType?: string;
1295
1295
  }>]>, "many">;
1296
1296
  }, "strip", z.ZodTypeAny, {
1297
+ type?: AGUIEventType.MESSAGES_SNAPSHOT;
1298
+ timestamp?: number;
1297
1299
  messages?: ({
1298
1300
  content?: string;
1299
1301
  name?: string;
@@ -1334,14 +1336,14 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1334
1336
  toolCallId?: string;
1335
1337
  } | {
1336
1338
  content?: Record<string, any>;
1337
- activityType?: string;
1338
1339
  id?: string;
1339
1340
  role?: "activity";
1341
+ activityType?: string;
1340
1342
  })[];
1341
- type?: AGUIEventType.MESSAGES_SNAPSHOT;
1342
- timestamp?: number;
1343
1343
  rawEvent?: any;
1344
1344
  }, {
1345
+ type?: AGUIEventType.MESSAGES_SNAPSHOT;
1346
+ timestamp?: number;
1345
1347
  messages?: ({
1346
1348
  content?: string;
1347
1349
  name?: string;
@@ -1382,12 +1384,10 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1382
1384
  toolCallId?: string;
1383
1385
  } | {
1384
1386
  content?: Record<string, any>;
1385
- activityType?: string;
1386
1387
  id?: string;
1387
1388
  role?: "activity";
1389
+ activityType?: string;
1388
1390
  })[];
1389
- type?: AGUIEventType.MESSAGES_SNAPSHOT;
1390
- timestamp?: number;
1391
1391
  rawEvent?: any;
1392
1392
  }>, z.ZodObject<{
1393
1393
  timestamp: z.ZodOptional<z.ZodNumber>;
@@ -1455,19 +1455,19 @@ export declare const EventSchemas: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
1455
1455
  runId: z.ZodString;
1456
1456
  result: z.ZodOptional<z.ZodAny>;
1457
1457
  }, "strip", z.ZodTypeAny, {
1458
- result?: any;
1459
1458
  type?: AGUIEventType.RUN_FINISHED;
1460
1459
  timestamp?: number;
1461
1460
  threadId?: string;
1462
1461
  runId?: string;
1463
1462
  rawEvent?: any;
1464
- }, {
1465
1463
  result?: any;
1464
+ }, {
1466
1465
  type?: AGUIEventType.RUN_FINISHED;
1467
1466
  timestamp?: number;
1468
1467
  threadId?: string;
1469
1468
  runId?: string;
1470
1469
  rawEvent?: any;
1470
+ result?: any;
1471
1471
  }>, z.ZodObject<{
1472
1472
  timestamp: z.ZodOptional<z.ZodNumber>;
1473
1473
  rawEvent: z.ZodOptional<z.ZodAny>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -187,14 +187,14 @@ declare const ActivityMessageSchema: z.ZodObject<{
187
187
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
188
188
  }, "strip", z.ZodTypeAny, {
189
189
  content?: Record<string, any>;
190
- activityType?: string;
191
190
  id?: string;
192
191
  role?: "activity";
192
+ activityType?: string;
193
193
  }, {
194
194
  content?: Record<string, any>;
195
- activityType?: string;
196
195
  id?: string;
197
196
  role?: "activity";
197
+ activityType?: string;
198
198
  }>;
199
199
  export declare const AGUIMessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
200
200
  id: z.ZodString;
@@ -341,14 +341,14 @@ export declare const AGUIMessageSchema: z.ZodDiscriminatedUnion<"role", [z.ZodOb
341
341
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
342
342
  }, "strip", z.ZodTypeAny, {
343
343
  content?: Record<string, any>;
344
- activityType?: string;
345
344
  id?: string;
346
345
  role?: "activity";
346
+ activityType?: string;
347
347
  }, {
348
348
  content?: Record<string, any>;
349
- activityType?: string;
350
349
  id?: string;
351
350
  role?: "activity";
351
+ activityType?: string;
352
352
  }>]>;
353
353
  /**
354
354
  * 历史消息相关的类型定义
@@ -461,14 +461,14 @@ export declare const HistoryMessageSchema: z.ZodDiscriminatedUnion<"role", [z.Zo
461
461
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
462
462
  }, "strip", z.ZodTypeAny, {
463
463
  content?: Record<string, any>;
464
- activityType?: string;
465
464
  id?: string;
466
465
  role?: "activity";
466
+ activityType?: string;
467
467
  }, {
468
468
  content?: Record<string, any>;
469
- activityType?: string;
470
469
  id?: string;
471
470
  role?: "activity";
471
+ activityType?: string;
472
472
  }>]>;
473
473
  export declare const RoleSchema: z.ZodUnion<[z.ZodLiteral<"developer">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"user">, z.ZodLiteral<"tool">, z.ZodLiteral<"activity">]>;
474
474
  export declare const ContextSchema: z.ZodObject<{
@@ -643,14 +643,14 @@ export declare const RunAgentInputSchema: z.ZodObject<{
643
643
  content: z.ZodRecord<z.ZodString, z.ZodAny>;
644
644
  }, "strip", z.ZodTypeAny, {
645
645
  content?: Record<string, any>;
646
- activityType?: string;
647
646
  id?: string;
648
647
  role?: "activity";
648
+ activityType?: string;
649
649
  }, {
650
650
  content?: Record<string, any>;
651
- activityType?: string;
652
651
  id?: string;
653
652
  role?: "activity";
653
+ activityType?: string;
654
654
  }>]>, "many">;
655
655
  tools: z.ZodArray<z.ZodObject<{
656
656
  name: z.ZodString;
@@ -677,6 +677,9 @@ export declare const RunAgentInputSchema: z.ZodObject<{
677
677
  }>, "many">;
678
678
  forwardedProps: z.ZodAny;
679
679
  }, "strip", z.ZodTypeAny, {
680
+ threadId?: string;
681
+ runId?: string;
682
+ state?: any;
680
683
  messages?: ({
681
684
  content?: string;
682
685
  name?: string;
@@ -717,13 +720,10 @@ export declare const RunAgentInputSchema: z.ZodObject<{
717
720
  toolCallId?: string;
718
721
  } | {
719
722
  content?: Record<string, any>;
720
- activityType?: string;
721
723
  id?: string;
722
724
  role?: "activity";
725
+ activityType?: string;
723
726
  })[];
724
- threadId?: string;
725
- runId?: string;
726
- state?: any;
727
727
  tools?: {
728
728
  name?: string;
729
729
  description?: string;
@@ -735,6 +735,9 @@ export declare const RunAgentInputSchema: z.ZodObject<{
735
735
  }[];
736
736
  forwardedProps?: any;
737
737
  }, {
738
+ threadId?: string;
739
+ runId?: string;
740
+ state?: any;
738
741
  messages?: ({
739
742
  content?: string;
740
743
  name?: string;
@@ -775,13 +778,10 @@ export declare const RunAgentInputSchema: z.ZodObject<{
775
778
  toolCallId?: string;
776
779
  } | {
777
780
  content?: Record<string, any>;
778
- activityType?: string;
779
781
  id?: string;
780
782
  role?: "activity";
783
+ activityType?: string;
781
784
  })[];
782
- threadId?: string;
783
- runId?: string;
784
- state?: any;
785
785
  tools?: {
786
786
  name?: string;
787
787
  description?: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * tdesign v1.0.2-alpha.9
2
+ * tdesign v1.0.2-alpha.10
3
3
  * (c) 2026 tdesign
4
4
  * @license MIT
5
5
  */