@agents24/react 0.2.21 → 0.2.23
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/compatibility.json +5 -5
- package/dist/chat-observation.d.ts +2 -0
- package/dist/index.js +128 -141
- package/dist/index.js.map +1 -1
- package/dist/refresh-chat-summaries.d.ts +12 -0
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AbortSignalLike, AgentClient } from "@agents24/client";
|
|
2
|
+
import { type AgentChatState } from "./state";
|
|
3
|
+
import type { StoredChatThread } from "./model";
|
|
4
|
+
/** Refresh the first page plus observed threads outside it without dropping loaded history. */
|
|
5
|
+
export declare function refreshChatSummaries(input: {
|
|
6
|
+
client: AgentClient;
|
|
7
|
+
limit: number;
|
|
8
|
+
signal: AbortSignalLike;
|
|
9
|
+
current(): AgentChatState;
|
|
10
|
+
update(updater: (current: AgentChatState) => AgentChatState): void;
|
|
11
|
+
onDeleted?(threadId: string): void;
|
|
12
|
+
}): Promise<StoredChatThread | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agents24/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23",
|
|
4
4
|
"description": "DOM-free React state and hooks for Agents24 client applications.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"prepack": "pnpm run build && pnpm run check:boundaries"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@agents24/client": "0.2.
|
|
43
|
+
"@agents24/client": "0.2.18"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=19.0.0 <20.0.0"
|