teodor-new-chat-ui 4.2.8 → 4.3.3
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/reducers/MessageReducer.d.ts +9 -1
- package/dist/index.esm.js +5480 -5293
- package/dist/index.umd.js +49 -49
- package/dist/lib/historyUtils.d.ts +17 -7
- package/dist/types/api.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import type { CheckpointSummary, HistoryPayload, MessagesPayload } from "@/types/api";
|
|
1
|
+
import type { ChatMessage, CheckpointSummary, HistoryPayload, MessagesPayload } from "@/types/api";
|
|
2
|
+
export type HistoryPendingInterrupt = {
|
|
3
|
+
id: string;
|
|
4
|
+
value: unknown;
|
|
5
|
+
} | null;
|
|
6
|
+
export type HydratedCheckpointSnapshot = {
|
|
7
|
+
messages: ChatMessage[];
|
|
8
|
+
checkpointId: string | null;
|
|
9
|
+
checkpointNs: string | null;
|
|
10
|
+
nextCursor: string | null;
|
|
11
|
+
nextCursorNs: string | null;
|
|
12
|
+
interrupt: HistoryPendingInterrupt;
|
|
13
|
+
};
|
|
2
14
|
export type HistoryHydrationResult = {
|
|
3
15
|
payload: MessagesPayload & {
|
|
4
16
|
nextCursorNs?: string | null;
|
|
17
|
+
pendingInterrupt?: HistoryPendingInterrupt;
|
|
5
18
|
};
|
|
6
19
|
checkpoints: CheckpointSummary[];
|
|
7
|
-
interrupt:
|
|
20
|
+
interrupt: HistoryPendingInterrupt;
|
|
21
|
+
snapshots: Record<string, HydratedCheckpointSnapshot>;
|
|
8
22
|
};
|
|
9
|
-
|
|
10
|
-
id: string;
|
|
11
|
-
value: unknown;
|
|
12
|
-
} | null;
|
|
23
|
+
export declare function buildSnapshotKey(checkpointId: string | null | undefined, checkpointNs: string | null | undefined): string;
|
|
13
24
|
export declare function historyToMessagesPayload(history: HistoryPayload | null | undefined): HistoryHydrationResult;
|
|
14
|
-
export {};
|
package/dist/types/api.d.ts
CHANGED
|
@@ -84,6 +84,10 @@ export interface MessagesPayload {
|
|
|
84
84
|
hasMore?: boolean;
|
|
85
85
|
nextCursor?: string | null;
|
|
86
86
|
nextCursorNs?: string | null;
|
|
87
|
+
pendingInterrupt?: {
|
|
88
|
+
id: string;
|
|
89
|
+
value: any;
|
|
90
|
+
} | null;
|
|
87
91
|
}
|
|
88
92
|
export interface StatePayload {
|
|
89
93
|
threadId: string;
|
|
@@ -304,6 +308,10 @@ export interface ThreadSnapshot {
|
|
|
304
308
|
hasMore?: boolean;
|
|
305
309
|
nextCursor?: string | null;
|
|
306
310
|
nextCursorNs?: string | null;
|
|
311
|
+
pendingInterrupt?: {
|
|
312
|
+
id: string;
|
|
313
|
+
value: any;
|
|
314
|
+
} | null;
|
|
307
315
|
}
|
|
308
316
|
export interface ThreadStateMetadata {
|
|
309
317
|
branchLabel?: string | null;
|
package/package.json
CHANGED