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.
- package/dist/context/hooks/useChatStreamingService.d.ts +1 -2
- package/dist/context/index.d.ts +0 -1
- package/dist/context/reducers/MessageReducer.d.ts +3 -7
- package/dist/index.esm.js +2120 -2151
- package/dist/index.umd.js +31 -31
- package/dist/lib/attemptDetection.d.ts +0 -5
- package/dist/types/events.d.ts +6 -16
- package/package.json +1 -1
|
@@ -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"
|
package/dist/types/events.d.ts
CHANGED
|
@@ -15,14 +15,14 @@ type ToolEventIdentity = {
|
|
|
15
15
|
id?: string;
|
|
16
16
|
};
|
|
17
17
|
export type ToolStartEvent = {
|
|
18
|
-
type: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
44
|
+
type: "message.delta";
|
|
52
45
|
delta: MessagePart[];
|
|
53
46
|
} | {
|
|
54
|
-
type: "
|
|
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
|
|
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