teodor-new-chat-ui 4.2.1 → 4.2.2
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/index.esm.js +5809 -6049
- package/dist/index.umd.js +49 -49
- package/dist/types/api.d.ts +8 -5
- package/package.json +1 -1
package/dist/types/api.d.ts
CHANGED
|
@@ -55,12 +55,15 @@ export interface CheckpointSnapshot {
|
|
|
55
55
|
next: unknown[];
|
|
56
56
|
parentConfig?: Record<string, unknown> | null;
|
|
57
57
|
}
|
|
58
|
+
export interface ThreadHistory {
|
|
59
|
+
version: "chat-history@1";
|
|
60
|
+
threadId: string;
|
|
61
|
+
checkpoints: CheckpointSnapshot[];
|
|
62
|
+
}
|
|
58
63
|
export interface HistoryPayload {
|
|
59
64
|
threadId: string;
|
|
60
65
|
checkpointId?: string;
|
|
61
|
-
|
|
62
|
-
version: "chat-history@1";
|
|
63
|
-
checkpoints: CheckpointSnapshot[];
|
|
66
|
+
history: ThreadHistory;
|
|
64
67
|
}
|
|
65
68
|
export interface MessagesPayload {
|
|
66
69
|
threadId: string;
|
|
@@ -183,7 +186,7 @@ export interface ThreadInfo extends ThreadSummary {
|
|
|
183
186
|
}
|
|
184
187
|
export interface CheckpointSummary {
|
|
185
188
|
checkpointId: string;
|
|
186
|
-
checkpointNs: string
|
|
189
|
+
checkpointNs: string;
|
|
187
190
|
createdAt: string;
|
|
188
191
|
messagesLen?: number | null;
|
|
189
192
|
preview?: string | null;
|
|
@@ -307,7 +310,6 @@ export interface ThreadStateContextValue {
|
|
|
307
310
|
id: string | null;
|
|
308
311
|
namespace: string | null;
|
|
309
312
|
};
|
|
310
|
-
checkpoints: CheckpointSummary[];
|
|
311
313
|
metadata: ThreadStateMetadata | null;
|
|
312
314
|
isLoading: boolean;
|
|
313
315
|
isHistoryLoading: boolean;
|
|
@@ -318,6 +320,7 @@ export interface ThreadStateContextValue {
|
|
|
318
320
|
}) => Promise<void>;
|
|
319
321
|
seedFromSnapshot: (snapshot: ThreadSnapshot) => void;
|
|
320
322
|
clearState: () => void;
|
|
323
|
+
listCheckpoints: (threadId: string) => Promise<CheckpointList>;
|
|
321
324
|
navigateToCheckpoint: (checkpointId: string, checkpointNs?: string | null) => Promise<void>;
|
|
322
325
|
returnToLatest: () => Promise<void>;
|
|
323
326
|
loadThread: (threadId: string, checkpointId?: string, checkpointNs?: string, force?: boolean) => Promise<void>;
|
package/package.json
CHANGED