teodor-new-chat-ui 4.2.6 → 4.2.7
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 +5255 -5234
- package/dist/index.umd.js +49 -49
- package/dist/lib/chat-api.d.ts +1 -7
- package/dist/lib/historyUtils.d.ts +14 -2
- package/dist/types/api.d.ts +2 -0
- package/package.json +1 -1
package/dist/lib/chat-api.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* by the host application which passes tokens via apiConfig.
|
|
6
6
|
*/
|
|
7
7
|
import { AxiosRequestConfig } from "axios";
|
|
8
|
-
import type { ThreadSummary, ThreadInfo,
|
|
8
|
+
import type { ThreadSummary, ThreadInfo, MessagesPayload, HistoryPayload, AgentSummary, AgentDetail, AgentSchemaInfo, ResumeResponse } from "@/types/api";
|
|
9
9
|
export declare function resolveChatBaseUrl(baseUrl?: string): string;
|
|
10
10
|
type TokenListener = (token: string | null) => void;
|
|
11
11
|
export declare function getChatToken(): string | null;
|
|
@@ -42,17 +42,11 @@ export declare class ChatApi {
|
|
|
42
42
|
limit?: number;
|
|
43
43
|
beforeId?: string | null;
|
|
44
44
|
}): Promise<MessagesPayload>;
|
|
45
|
-
getState(params: {
|
|
46
|
-
threadId: string;
|
|
47
|
-
checkpointId?: string;
|
|
48
|
-
checkpointNs?: string;
|
|
49
|
-
}): Promise<StatePayload>;
|
|
50
45
|
getStateHistory(params: {
|
|
51
46
|
threadId: string;
|
|
52
47
|
checkpointId?: string;
|
|
53
48
|
checkpointNs?: string;
|
|
54
49
|
}): Promise<HistoryPayload>;
|
|
55
|
-
listCheckpoints(threadId: string): Promise<CheckpointList>;
|
|
56
50
|
/**
|
|
57
51
|
* Resume a paused LangGraph run (after interrupt).
|
|
58
52
|
*
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
import type { HistoryPayload, MessagesPayload } from "@/types/api";
|
|
2
|
-
export
|
|
1
|
+
import type { CheckpointSummary, HistoryPayload, MessagesPayload } from "@/types/api";
|
|
2
|
+
export type HistoryHydrationResult = {
|
|
3
|
+
payload: MessagesPayload & {
|
|
4
|
+
nextCursorNs?: string | null;
|
|
5
|
+
};
|
|
6
|
+
checkpoints: CheckpointSummary[];
|
|
7
|
+
interrupt: PendingInterrupt;
|
|
8
|
+
};
|
|
9
|
+
type PendingInterrupt = {
|
|
10
|
+
id: string;
|
|
11
|
+
value: unknown;
|
|
12
|
+
} | null;
|
|
13
|
+
export declare function historyToMessagesPayload(history: HistoryPayload | null | undefined): HistoryHydrationResult;
|
|
14
|
+
export {};
|
package/dist/types/api.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export interface MessagesPayload {
|
|
|
83
83
|
messages: ChatMessage[];
|
|
84
84
|
hasMore?: boolean;
|
|
85
85
|
nextCursor?: string | null;
|
|
86
|
+
nextCursorNs?: string | null;
|
|
86
87
|
}
|
|
87
88
|
export interface StatePayload {
|
|
88
89
|
threadId: string;
|
|
@@ -302,6 +303,7 @@ export interface ThreadSnapshot {
|
|
|
302
303
|
messages: ChatMessage[];
|
|
303
304
|
hasMore?: boolean;
|
|
304
305
|
nextCursor?: string | null;
|
|
306
|
+
nextCursorNs?: string | null;
|
|
305
307
|
}
|
|
306
308
|
export interface ThreadStateMetadata {
|
|
307
309
|
branchLabel?: string | null;
|
package/package.json
CHANGED