@agents24/react 0.2.26 → 0.2.28
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 +3 -3
- package/dist/assistant-preview.d.ts +18 -0
- package/dist/index.js +113 -7
- package/dist/index.js.map +1 -1
- package/dist/model.d.ts +10 -0
- package/dist/state.d.ts +2 -0
- package/package.json +2 -2
package/dist/model.d.ts
CHANGED
|
@@ -200,6 +200,15 @@ export type ChatAttachmentPart = ChatPartMetadata & {
|
|
|
200
200
|
attachment: ChatAttachment;
|
|
201
201
|
};
|
|
202
202
|
export type ChatPart = ChatTextPart | ChatToolPart | ChatReasoningPart | ChatModelTurnPart | ChatContextCompressionPart | ChatNodeActivityPart | ChatUiBlocksPart | ChatHitlPart | ChatErrorPart | ChatDataPart | ChatSourcePart | ChatCitationPart | ChatAttachmentPart;
|
|
203
|
+
/** Transient run presentation; never execution authority or model history. */
|
|
204
|
+
export type ChatRunActivity = {
|
|
205
|
+
status: "running" | "waiting" | "interrupted" | "cancelling";
|
|
206
|
+
capacityWait?: {
|
|
207
|
+
reason: string;
|
|
208
|
+
retryAt?: string;
|
|
209
|
+
deadline?: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
203
212
|
export type ChatMessage = {
|
|
204
213
|
id: string;
|
|
205
214
|
/** Durable timeline identity when a mounted optimistic turn keeps its display key. */
|
|
@@ -211,6 +220,7 @@ export type ChatMessage = {
|
|
|
211
220
|
content: string;
|
|
212
221
|
createdAt: Date | string;
|
|
213
222
|
isFinal?: boolean;
|
|
223
|
+
activity?: ChatRunActivity;
|
|
214
224
|
responseCompletion?: import("@agents24/client/protocol").ResponseCompletion;
|
|
215
225
|
parts: ChatPart[];
|
|
216
226
|
attachments?: ChatAttachment[];
|
package/dist/state.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AssistantPreviewState } from "./assistant-preview";
|
|
1
2
|
import type { RuntimeEvent, ThreadSummaryEvent } from "@agents24/client";
|
|
2
3
|
import { type ContextCompression, type ContextWindow } from "@agents24/client/protocol";
|
|
3
4
|
import type { AgentChatRunState, ChatMessage, StoredChatThread } from "./model";
|
|
@@ -13,6 +14,7 @@ export type AgentChatBackgroundError = {
|
|
|
13
14
|
cause: unknown;
|
|
14
15
|
};
|
|
15
16
|
export type AgentChatState = {
|
|
17
|
+
assistantPreview?: AssistantPreviewState | null;
|
|
16
18
|
threads: StoredChatThread[];
|
|
17
19
|
activeThreadId: string | null;
|
|
18
20
|
messages: ChatMessage[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agents24/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.28",
|
|
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.22"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=19.0.0 <20.0.0"
|