teodor-new-chat-ui 4.2.1 → 4.2.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.
@@ -47,6 +47,15 @@ export interface ChatMessage {
47
47
  additionalKwargs?: Record<string, unknown>;
48
48
  responseMetadata?: Record<string, unknown>;
49
49
  }
50
+ export interface PregelTask {
51
+ id: string;
52
+ name: string;
53
+ path?: string[];
54
+ error?: string | null;
55
+ interrupts?: unknown[];
56
+ state?: unknown;
57
+ [key: string]: unknown;
58
+ }
50
59
  export interface CheckpointSnapshot {
51
60
  createdAt?: string | null;
52
61
  config?: Record<string, unknown> | null;
@@ -54,12 +63,11 @@ export interface CheckpointSnapshot {
54
63
  values: Record<string, unknown>;
55
64
  next: unknown[];
56
65
  parentConfig?: Record<string, unknown> | null;
66
+ tasks: PregelTask[];
57
67
  }
58
68
  export interface HistoryPayload {
59
- threadId: string;
60
- checkpointId?: string;
61
- checkpointNs?: string;
62
69
  version: "chat-history@1";
70
+ threadId: string;
63
71
  checkpoints: CheckpointSnapshot[];
64
72
  }
65
73
  export interface MessagesPayload {
@@ -183,7 +191,7 @@ export interface ThreadInfo extends ThreadSummary {
183
191
  }
184
192
  export interface CheckpointSummary {
185
193
  checkpointId: string;
186
- checkpointNs: string | null;
194
+ checkpointNs: string;
187
195
  createdAt: string;
188
196
  messagesLen?: number | null;
189
197
  preview?: string | null;
@@ -307,7 +315,6 @@ export interface ThreadStateContextValue {
307
315
  id: string | null;
308
316
  namespace: string | null;
309
317
  };
310
- checkpoints: CheckpointSummary[];
311
318
  metadata: ThreadStateMetadata | null;
312
319
  isLoading: boolean;
313
320
  isHistoryLoading: boolean;
@@ -318,6 +325,7 @@ export interface ThreadStateContextValue {
318
325
  }) => Promise<void>;
319
326
  seedFromSnapshot: (snapshot: ThreadSnapshot) => void;
320
327
  clearState: () => void;
328
+ listCheckpoints: (threadId: string) => Promise<CheckpointList>;
321
329
  navigateToCheckpoint: (checkpointId: string, checkpointNs?: string | null) => Promise<void>;
322
330
  returnToLatest: () => Promise<void>;
323
331
  loadThread: (threadId: string, checkpointId?: string, checkpointNs?: string, force?: boolean) => Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teodor-new-chat-ui",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "React chat UI components with streaming support, tool calls, and modern design",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",