@invergent/agent-chat-react 2.12.0 → 2.13.1
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.cjs +1155 -560
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +1144 -555
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -357,6 +357,12 @@ interface AgentChatInboxItem {
|
|
|
357
357
|
payload: Record<string, unknown>;
|
|
358
358
|
actionRef: Record<string, unknown> | null;
|
|
359
359
|
createdAt: string;
|
|
360
|
+
/**
|
|
361
|
+
* When the item stops being actionable, for the kinds that have a
|
|
362
|
+
* deadline — today only a question, which is answerable while its tool
|
|
363
|
+
* call is parked waiting. Null when nothing expires.
|
|
364
|
+
*/
|
|
365
|
+
expiresAt?: string | null;
|
|
360
366
|
updatedAt: string;
|
|
361
367
|
readAt: string | null;
|
|
362
368
|
respondedAt: string | null;
|
|
@@ -368,8 +374,17 @@ interface AgentChatInboxList {
|
|
|
368
374
|
nextCursor: string | null;
|
|
369
375
|
}
|
|
370
376
|
interface AgentChatInboxListInput {
|
|
371
|
-
|
|
372
|
-
|
|
377
|
+
/**
|
|
378
|
+
* A history view needs several statuses at once (acknowledged,
|
|
379
|
+
* responded and expired), and expired items are invisible to any
|
|
380
|
+
* request that does not name them.
|
|
381
|
+
*/
|
|
382
|
+
status?: AgentChatInboxStatus | AgentChatInboxStatus[];
|
|
383
|
+
/**
|
|
384
|
+
* Active and Updates are two lists over the same statuses, split by
|
|
385
|
+
* kind: what needs an answer, and what is only news.
|
|
386
|
+
*/
|
|
387
|
+
kind?: AgentChatInboxKind | AgentChatInboxKind[];
|
|
373
388
|
sessionId?: string;
|
|
374
389
|
cursor?: string;
|
|
375
390
|
limit?: number;
|
|
@@ -1248,6 +1263,14 @@ interface InboxUnreadCountState {
|
|
|
1248
1263
|
hasLoaded: boolean;
|
|
1249
1264
|
error: string | null;
|
|
1250
1265
|
}
|
|
1266
|
+
/**
|
|
1267
|
+
* How many pending inbox items the user has not opened.
|
|
1268
|
+
*
|
|
1269
|
+
* Re-derived from the list on every signal rather than adjusted in
|
|
1270
|
+
* place: the stream carries "something changed", not a delta, so
|
|
1271
|
+
* counting its nudges only ever pushed the badge up — it never came back
|
|
1272
|
+
* down when the user read, answered or dismissed an item.
|
|
1273
|
+
*/
|
|
1251
1274
|
declare function useInboxUnreadCount(adapter: AgentChatAdapter): InboxUnreadCountState;
|
|
1252
1275
|
|
|
1253
1276
|
interface MissionDashboardProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -357,6 +357,12 @@ interface AgentChatInboxItem {
|
|
|
357
357
|
payload: Record<string, unknown>;
|
|
358
358
|
actionRef: Record<string, unknown> | null;
|
|
359
359
|
createdAt: string;
|
|
360
|
+
/**
|
|
361
|
+
* When the item stops being actionable, for the kinds that have a
|
|
362
|
+
* deadline — today only a question, which is answerable while its tool
|
|
363
|
+
* call is parked waiting. Null when nothing expires.
|
|
364
|
+
*/
|
|
365
|
+
expiresAt?: string | null;
|
|
360
366
|
updatedAt: string;
|
|
361
367
|
readAt: string | null;
|
|
362
368
|
respondedAt: string | null;
|
|
@@ -368,8 +374,17 @@ interface AgentChatInboxList {
|
|
|
368
374
|
nextCursor: string | null;
|
|
369
375
|
}
|
|
370
376
|
interface AgentChatInboxListInput {
|
|
371
|
-
|
|
372
|
-
|
|
377
|
+
/**
|
|
378
|
+
* A history view needs several statuses at once (acknowledged,
|
|
379
|
+
* responded and expired), and expired items are invisible to any
|
|
380
|
+
* request that does not name them.
|
|
381
|
+
*/
|
|
382
|
+
status?: AgentChatInboxStatus | AgentChatInboxStatus[];
|
|
383
|
+
/**
|
|
384
|
+
* Active and Updates are two lists over the same statuses, split by
|
|
385
|
+
* kind: what needs an answer, and what is only news.
|
|
386
|
+
*/
|
|
387
|
+
kind?: AgentChatInboxKind | AgentChatInboxKind[];
|
|
373
388
|
sessionId?: string;
|
|
374
389
|
cursor?: string;
|
|
375
390
|
limit?: number;
|
|
@@ -1248,6 +1263,14 @@ interface InboxUnreadCountState {
|
|
|
1248
1263
|
hasLoaded: boolean;
|
|
1249
1264
|
error: string | null;
|
|
1250
1265
|
}
|
|
1266
|
+
/**
|
|
1267
|
+
* How many pending inbox items the user has not opened.
|
|
1268
|
+
*
|
|
1269
|
+
* Re-derived from the list on every signal rather than adjusted in
|
|
1270
|
+
* place: the stream carries "something changed", not a delta, so
|
|
1271
|
+
* counting its nudges only ever pushed the badge up — it never came back
|
|
1272
|
+
* down when the user read, answered or dismissed an item.
|
|
1273
|
+
*/
|
|
1251
1274
|
declare function useInboxUnreadCount(adapter: AgentChatAdapter): InboxUnreadCountState;
|
|
1252
1275
|
|
|
1253
1276
|
interface MissionDashboardProps {
|