teodor-new-chat-ui 4.3.1 → 4.3.4

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.
@@ -1,15 +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;
5
- pendingInterrupt?: PendingInterrupt;
17
+ pendingInterrupt?: HistoryPendingInterrupt;
6
18
  };
7
19
  checkpoints: CheckpointSummary[];
8
- interrupt: PendingInterrupt;
20
+ interrupt: HistoryPendingInterrupt;
21
+ snapshots: Record<string, HydratedCheckpointSnapshot>;
9
22
  };
10
- type PendingInterrupt = {
11
- id: string;
12
- value: unknown;
13
- } | null;
23
+ export declare function buildSnapshotKey(checkpointId: string | null | undefined, checkpointNs: string | null | undefined): string;
14
24
  export declare function historyToMessagesPayload(history: HistoryPayload | null | undefined): HistoryHydrationResult;
15
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teodor-new-chat-ui",
3
- "version": "4.3.1",
3
+ "version": "4.3.4",
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",