teodor-new-chat-ui 4.3.348 → 4.3.350

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.
@@ -16,11 +16,6 @@ import type { HydratedCheckpointSnapshot } from "@/types/models";
16
16
  * Returns a map where key is the user message ID, value is array of checkpoints containing it
17
17
  */
18
18
  export declare function groupCheckpointsByLastUserMessageId(checkpoints: HydratedCheckpointSnapshot[]): Map<string, HydratedCheckpointSnapshot[]>;
19
- /**
20
- * Detects edited user messages by finding user message IDs that appear in multiple checkpoints.
21
- * Returns a Map where key is user message ID, value is array of checkpoints where it was edited.
22
- */
23
- export declare function detectEditedUserMessages(checkpoints: HydratedCheckpointSnapshot[]): Map<string, HydratedCheckpointSnapshot[]>;
24
19
  /**
25
20
  * Builds attempt metadata for all checkpoints based on their last user message ID
26
21
  * Groups checkpoints that share the same user message ID as "attempts/versions"
@@ -15,14 +15,14 @@ type ToolEventIdentity = {
15
15
  id?: string;
16
16
  };
17
17
  export type ToolStartEvent = {
18
- type: "tool_start";
18
+ type: "tool.start";
19
19
  args: Record<string, unknown>;
20
20
  name?: string;
21
21
  tool?: string;
22
22
  seq?: number;
23
23
  } & ToolEventIdentity;
24
24
  export type ToolEndEvent = {
25
- type: "tool_end";
25
+ type: "tool.end";
26
26
  output: unknown;
27
27
  artifact?: unknown;
28
28
  error?: string;
@@ -32,26 +32,19 @@ export type ToolEndEvent = {
32
32
  } & ToolEventIdentity;
33
33
  export type ToolProgressEvent = {
34
34
  type: "progress";
35
- step?: string;
36
- title?: string;
37
35
  content?: string;
38
- facts_found?: number;
39
- is_sufficient?: boolean;
40
36
  seq?: number;
41
37
  };
42
38
  export type MessageStreamEvent = {
43
- type: "token";
44
- content: string;
45
- } | {
46
- type: "message_start";
39
+ type: "message.start";
47
40
  role: "assistant";
48
41
  id: string;
49
42
  model?: string;
50
43
  } | {
51
- type: "message_delta";
44
+ type: "message.delta";
52
45
  delta: MessagePart[];
53
46
  } | {
54
- type: "message_end";
47
+ type: "message.end";
55
48
  } | ToolProgressEvent;
56
49
  export type ToolStreamEvent = ToolStartEvent | ToolEndEvent;
57
50
  export type ThreadStreamEvent = {
@@ -102,8 +95,5 @@ export type SystemStreamEvent = {
102
95
  seq?: number;
103
96
  } & HistoryPayload);
104
97
  export type StreamEvent = MessageStreamEvent | ToolStreamEvent | ThreadStreamEvent | SystemStreamEvent;
105
- export declare function isMessageEvent(ev: StreamEvent): ev is MessageStreamEvent;
106
- export declare function isToolEvent(ev: StreamEvent): ev is ToolStreamEvent;
107
- export declare function isThreadEvent(ev: StreamEvent): ev is ThreadStreamEvent;
108
- export declare function isSystemEvent(ev: StreamEvent): ev is SystemStreamEvent;
98
+ export declare function isStreamEvent(obj: any): obj is StreamEvent;
109
99
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teodor-new-chat-ui",
3
- "version": "4.3.348",
3
+ "version": "4.3.350",
4
4
  "description": "React chat UI components with streaming support, tool calls, and modern design",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",