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