@teodorruskvi/chat-core 0.1.56 → 0.1.59
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/features/conversation/contexts/ThreadStateProvider.d.ts +3 -1
- package/dist/features/conversation/hooks/useChatSession.d.ts +1 -0
- package/dist/features/conversation/hooks/useThreadHistoryState.d.ts +3 -1
- package/dist/index.esm.js +1403 -1387
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +7 -7
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ interface ThreadStateProviderProps {
|
|
|
8
8
|
autoLoadInitial?: boolean;
|
|
9
9
|
isStreaming: boolean;
|
|
10
10
|
onError?: (error: string) => void;
|
|
11
|
+
/** Whether to fetch the full checkpoint timeline/history (default: true) */
|
|
12
|
+
includeHistory?: boolean;
|
|
11
13
|
}
|
|
12
14
|
interface ThreadStateUpdater {
|
|
13
15
|
registerClearThread: (fn: ThreadStateContextValue['clearThread']) => void;
|
|
@@ -20,5 +22,5 @@ export declare function useThreadState(options?: {
|
|
|
20
22
|
optional?: false;
|
|
21
23
|
}): ThreadStateContextValue;
|
|
22
24
|
export declare function useThreadStateUpdater(): ThreadStateUpdater;
|
|
23
|
-
export declare function ThreadStateProvider({ children, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, isStreaming, onError, }: ThreadStateProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare function ThreadStateProvider({ children, initialThreadId, initialCheckpointId, initialCheckpointNs, autoLoadInitial, isStreaming, onError, includeHistory, }: ThreadStateProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
24
26
|
export {};
|
|
@@ -23,6 +23,8 @@ interface UseThreadHistoryStateOptions {
|
|
|
23
23
|
autoLoadInitial?: boolean;
|
|
24
24
|
isStreaming: boolean;
|
|
25
25
|
getMessages: () => ChatMessage[];
|
|
26
|
+
/** Whether to fetch the full checkpoint timeline/history (default: true) */
|
|
27
|
+
includeHistory?: boolean;
|
|
26
28
|
}
|
|
27
29
|
interface ThreadHistoryResult {
|
|
28
30
|
threadCheckpoints: HydratedCheckpointSnapshot[];
|
|
@@ -48,5 +50,5 @@ interface ThreadHistoryResult {
|
|
|
48
50
|
* Refactored useThreadHistoryState
|
|
49
51
|
* Focuses on a clean loading lifecycle and removes complex imperative refs.
|
|
50
52
|
*/
|
|
51
|
-
export declare function useThreadHistoryState({ api, fileApi, seed, onError, currentThreadId, autoLoadInitial, isStreaming, getMessages, }: UseThreadHistoryStateOptions): ThreadHistoryResult;
|
|
53
|
+
export declare function useThreadHistoryState({ api, fileApi, seed, onError, currentThreadId, autoLoadInitial, isStreaming, getMessages, includeHistory, }: UseThreadHistoryStateOptions): ThreadHistoryResult;
|
|
52
54
|
export {};
|