teodor-new-chat-ui 4.3.354 → 4.3.355
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/components/ui/resizable.d.ts +1 -1
- package/dist/context/providers/ChatSessionProvider.d.ts +3 -1
- package/dist/context/reducers/MessageReducer.d.ts +1 -19
- package/dist/index.esm.js +2649 -2602
- package/dist/index.umd.js +34 -34
- package/dist/lib/toolProgressStorage.d.ts +8 -0
- package/dist/types/context.d.ts +0 -2
- package/dist/types/events.d.ts +0 -9
- package/dist/types/toolStream.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ToolStreamEntry } from "@/types/toolStream";
|
|
2
|
+
export declare function persistToolProgress(messageId: string, entries: ToolStreamEntry[], metadata?: {
|
|
3
|
+
checkpointId?: string | null;
|
|
4
|
+
checkpointNs?: string | null;
|
|
5
|
+
threadId?: string | null;
|
|
6
|
+
}): void;
|
|
7
|
+
export declare function loadToolProgress(messageId: string): ToolStreamEntry[] | undefined;
|
|
8
|
+
export declare function clearToolProgressCache(): void;
|
package/dist/types/context.d.ts
CHANGED
|
@@ -40,8 +40,6 @@ export interface ThreadsContextValue {
|
|
|
40
40
|
hydrateFromCache: () => void;
|
|
41
41
|
}
|
|
42
42
|
export interface ThreadStateMetadata {
|
|
43
|
-
branchLabel?: string | null;
|
|
44
|
-
lastBranch?: ThreadStreamEvent | null;
|
|
45
43
|
assemblingMessageId?: string | null;
|
|
46
44
|
}
|
|
47
45
|
export interface ThreadStateContextValue {
|
package/dist/types/events.d.ts
CHANGED
|
@@ -62,15 +62,6 @@ export type ThreadStreamEvent = {
|
|
|
62
62
|
type: "checkpoint";
|
|
63
63
|
checkpointId: string;
|
|
64
64
|
checkpointNs?: string | null;
|
|
65
|
-
} | {
|
|
66
|
-
type: "branch";
|
|
67
|
-
threadId: string;
|
|
68
|
-
parentThreadId?: string | null;
|
|
69
|
-
parentCheckpointId?: string | null;
|
|
70
|
-
checkpointId?: string | null;
|
|
71
|
-
checkpointNs?: string | null;
|
|
72
|
-
editedMessageId?: string | null;
|
|
73
|
-
branchLabel?: string | null;
|
|
74
65
|
};
|
|
75
66
|
export type SystemStreamEvent = {
|
|
76
67
|
type: "error";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type ToolStreamEntryType = "tool.start" | "tool.call" | "progress" | "custom" | "tool.end";
|
|
2
|
+
export interface ToolStreamEntry {
|
|
3
|
+
id: string;
|
|
4
|
+
idx: number;
|
|
5
|
+
type: ToolStreamEntryType;
|
|
6
|
+
toolId?: string;
|
|
7
|
+
toolName?: string;
|
|
8
|
+
content?: string | null;
|
|
9
|
+
metadata?: Record<string, unknown>;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
}
|
package/package.json
CHANGED