teodor-new-chat-ui 4.3.556 → 4.3.557

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.
@@ -1,4 +1,4 @@
1
- import type { ChatMessage, MessagePart, HistoryPayload, ProjectInfo } from "@/types";
1
+ import type { ChatMessage, HistoryPayload, ProjectInfo } from "@/types";
2
2
  import { ChatRequest } from "@/types";
3
3
  export type UseChatStreamOptions = {
4
4
  baseUrl?: string;
@@ -79,17 +79,7 @@ export type ToolProgressEvent = {
79
79
  seq?: number;
80
80
  };
81
81
  export type ToolStreamEvent = ToolStartEvent | ToolEndEvent;
82
- export type MessageStreamEvent = {
83
- type: "message.start";
84
- role: "assistant";
85
- id: string;
86
- model?: string;
87
- } | {
88
- type: "message.delta";
89
- delta: MessagePart[];
90
- } | {
91
- type: "message.end";
92
- } | ToolProgressEvent | {
82
+ export type MessageStreamEvent = ToolProgressEvent | {
93
83
  type: "messages/partial";
94
84
  messages: Array<{
95
85
  content: string;
@@ -145,6 +135,9 @@ export type SystemStreamEvent = {
145
135
  type: "updates";
146
136
  tools?: Record<string, unknown>;
147
137
  [key: string]: unknown;
138
+ } | {
139
+ type: "values";
140
+ [key: string]: unknown;
148
141
  };
149
142
  export type ThreadInfoEvent = Extract<ThreadStreamEvent, {
150
143
  type: "thread_info";