@convex-dev/agent 0.6.0-alpha.1 → 0.6.0-beta.0
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/UIMessages.d.ts.map +1 -1
- package/dist/UIMessages.js +88 -0
- package/dist/UIMessages.js.map +1 -1
- package/dist/client/definePlaygroundAPI.d.ts +17 -17
- package/dist/client/index.d.ts +44 -44
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +54 -20
- package/dist/client/index.js.map +1 -1
- package/dist/client/messages.d.ts +3 -3
- package/dist/client/search.d.ts +3 -3
- package/dist/client/search.d.ts.map +1 -1
- package/dist/client/search.js +14 -4
- package/dist/client/search.js.map +1 -1
- package/dist/client/start.js +2 -2
- package/dist/client/start.js.map +1 -1
- package/dist/client/streamText.d.ts.map +1 -1
- package/dist/client/streamText.js +10 -0
- package/dist/client/streamText.js.map +1 -1
- package/dist/client/streaming.d.ts +47 -47
- package/dist/client/streaming.d.ts.map +1 -1
- package/dist/client/streaming.js +37 -21
- package/dist/client/streaming.js.map +1 -1
- package/dist/component/messages.d.ts +47 -47
- package/dist/component/schema.d.ts +40 -40
- package/dist/component/streams.d.ts +2 -2
- package/dist/component/threads.d.ts +6 -6
- package/dist/component/vector/index.d.ts +1 -1
- package/dist/mapping.d.ts +19 -15
- package/dist/mapping.d.ts.map +1 -1
- package/dist/mapping.js +90 -47
- package/dist/mapping.js.map +1 -1
- package/dist/validators.d.ts +13 -13
- package/package.json +1 -1
- package/src/UIMessages.ts +126 -0
- package/src/client/approval.test.ts +144 -0
- package/src/client/index.ts +73 -23
- package/src/client/search.test.ts +4 -5
- package/src/client/search.ts +16 -4
- package/src/client/start.ts +2 -2
- package/src/client/streamText.ts +9 -0
- package/src/client/streaming.integration.test.ts +1206 -0
- package/src/client/streaming.ts +35 -21
- package/src/mapping.test.ts +136 -71
- package/src/mapping.ts +119 -50
|
@@ -5,6 +5,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
5
5
|
splitCursor?: string | null | undefined;
|
|
6
6
|
pageStatus?: "SplitRecommended" | "SplitRequired" | null | undefined;
|
|
7
7
|
streams?: {
|
|
8
|
+
kind: "list";
|
|
8
9
|
messages: {
|
|
9
10
|
userId?: string | undefined;
|
|
10
11
|
agentName?: string | undefined;
|
|
@@ -14,20 +15,18 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
14
15
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
15
16
|
order: number;
|
|
16
17
|
stepOrder: number;
|
|
17
|
-
status: "
|
|
18
|
+
status: "streaming" | "finished" | "aborted";
|
|
18
19
|
streamId: string;
|
|
19
20
|
}[];
|
|
20
|
-
kind: "list";
|
|
21
21
|
} | {
|
|
22
|
+
kind: "deltas";
|
|
22
23
|
deltas: {
|
|
23
24
|
streamId: string;
|
|
24
25
|
start: number;
|
|
25
26
|
end: number;
|
|
26
27
|
parts: any[];
|
|
27
28
|
}[];
|
|
28
|
-
kind: "deltas";
|
|
29
29
|
} | undefined;
|
|
30
|
-
isDone: boolean;
|
|
31
30
|
page: {
|
|
32
31
|
userId?: string | undefined;
|
|
33
32
|
id?: string | undefined;
|
|
@@ -190,16 +189,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
190
189
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
191
190
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
192
191
|
title?: string | undefined;
|
|
193
|
-
type: "source";
|
|
194
192
|
id: string;
|
|
193
|
+
type: "source";
|
|
195
194
|
url: string;
|
|
196
195
|
sourceType: "url";
|
|
197
196
|
} | {
|
|
198
197
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
199
198
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
200
199
|
filename?: string | undefined;
|
|
201
|
-
type: "source";
|
|
202
200
|
id: string;
|
|
201
|
+
type: "source";
|
|
203
202
|
mediaType: string;
|
|
204
203
|
sourceType: "document";
|
|
205
204
|
title: string;
|
|
@@ -329,8 +328,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
329
328
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
330
329
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
331
330
|
filename?: string | undefined;
|
|
332
|
-
type: "source";
|
|
333
331
|
id: string;
|
|
332
|
+
type: "source";
|
|
334
333
|
mediaType: string;
|
|
335
334
|
sourceType: "document";
|
|
336
335
|
title: string;
|
|
@@ -371,8 +370,10 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
371
370
|
tool: boolean;
|
|
372
371
|
}[];
|
|
373
372
|
continueCursor: string;
|
|
373
|
+
isDone: boolean;
|
|
374
374
|
}, {
|
|
375
375
|
streams: import("convex/values").VUnion<{
|
|
376
|
+
kind: "list";
|
|
376
377
|
messages: {
|
|
377
378
|
userId?: string | undefined;
|
|
378
379
|
agentName?: string | undefined;
|
|
@@ -382,19 +383,19 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
382
383
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
383
384
|
order: number;
|
|
384
385
|
stepOrder: number;
|
|
385
|
-
status: "
|
|
386
|
+
status: "streaming" | "finished" | "aborted";
|
|
386
387
|
streamId: string;
|
|
387
388
|
}[];
|
|
388
|
-
kind: "list";
|
|
389
389
|
} | {
|
|
390
|
+
kind: "deltas";
|
|
390
391
|
deltas: {
|
|
391
392
|
streamId: string;
|
|
392
393
|
start: number;
|
|
393
394
|
end: number;
|
|
394
395
|
parts: any[];
|
|
395
396
|
}[];
|
|
396
|
-
kind: "deltas";
|
|
397
397
|
} | undefined, [import("convex/values").VObject<{
|
|
398
|
+
kind: "list";
|
|
398
399
|
messages: {
|
|
399
400
|
userId?: string | undefined;
|
|
400
401
|
agentName?: string | undefined;
|
|
@@ -404,10 +405,9 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
404
405
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
405
406
|
order: number;
|
|
406
407
|
stepOrder: number;
|
|
407
|
-
status: "
|
|
408
|
+
status: "streaming" | "finished" | "aborted";
|
|
408
409
|
streamId: string;
|
|
409
410
|
}[];
|
|
410
|
-
kind: "list";
|
|
411
411
|
}, {
|
|
412
412
|
kind: import("convex/values").VLiteral<"list", "required">;
|
|
413
413
|
messages: import("convex/values").VArray<{
|
|
@@ -419,7 +419,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
419
419
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
420
420
|
order: number;
|
|
421
421
|
stepOrder: number;
|
|
422
|
-
status: "
|
|
422
|
+
status: "streaming" | "finished" | "aborted";
|
|
423
423
|
streamId: string;
|
|
424
424
|
}[], import("convex/values").VObject<{
|
|
425
425
|
userId?: string | undefined;
|
|
@@ -430,11 +430,11 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
430
430
|
format?: "UIMessageChunk" | "TextStreamPart" | undefined;
|
|
431
431
|
order: number;
|
|
432
432
|
stepOrder: number;
|
|
433
|
-
status: "
|
|
433
|
+
status: "streaming" | "finished" | "aborted";
|
|
434
434
|
streamId: string;
|
|
435
435
|
}, {
|
|
436
436
|
streamId: import("convex/values").VString<string, "required">;
|
|
437
|
-
status: import("convex/values").VUnion<"
|
|
437
|
+
status: import("convex/values").VUnion<"streaming" | "finished" | "aborted", [import("convex/values").VLiteral<"streaming", "required">, import("convex/values").VLiteral<"finished", "required">, import("convex/values").VLiteral<"aborted", "required">], "required", never>;
|
|
438
438
|
format: import("convex/values").VUnion<"UIMessageChunk" | "TextStreamPart" | undefined, [import("convex/values").VLiteral<"UIMessageChunk", "required">, import("convex/values").VLiteral<"TextStreamPart", "required">], "optional", never>;
|
|
439
439
|
order: import("convex/values").VFloat64<number, "required">;
|
|
440
440
|
stepOrder: import("convex/values").VFloat64<number, "required">;
|
|
@@ -444,14 +444,14 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
444
444
|
provider: import("convex/values").VString<string | undefined, "optional">;
|
|
445
445
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
446
446
|
}, "required", "userId" | "order" | "stepOrder" | "status" | "agentName" | "model" | "provider" | "providerOptions" | `providerOptions.${string}` | "streamId" | "format">, "required">;
|
|
447
|
-
}, "required", "
|
|
447
|
+
}, "required", "kind" | "messages">, import("convex/values").VObject<{
|
|
448
|
+
kind: "deltas";
|
|
448
449
|
deltas: {
|
|
449
450
|
streamId: string;
|
|
450
451
|
start: number;
|
|
451
452
|
end: number;
|
|
452
453
|
parts: any[];
|
|
453
454
|
}[];
|
|
454
|
-
kind: "deltas";
|
|
455
455
|
}, {
|
|
456
456
|
kind: import("convex/values").VLiteral<"deltas", "required">;
|
|
457
457
|
deltas: import("convex/values").VArray<{
|
|
@@ -470,7 +470,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
470
470
|
end: import("convex/values").VFloat64<number, "required">;
|
|
471
471
|
parts: import("convex/values").VArray<any[], import("convex/values").VAny<any, "required", string>, "required">;
|
|
472
472
|
}, "required", "streamId" | "start" | "end" | "parts">, "required">;
|
|
473
|
-
}, "required", "
|
|
473
|
+
}, "required", "kind" | "deltas">], "optional", "kind" | "messages" | "deltas">;
|
|
474
474
|
page: import("convex/values").VArray<{
|
|
475
475
|
userId?: string | undefined;
|
|
476
476
|
id?: string | undefined;
|
|
@@ -633,16 +633,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
633
633
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
634
634
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
635
635
|
title?: string | undefined;
|
|
636
|
-
type: "source";
|
|
637
636
|
id: string;
|
|
637
|
+
type: "source";
|
|
638
638
|
url: string;
|
|
639
639
|
sourceType: "url";
|
|
640
640
|
} | {
|
|
641
641
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
642
642
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
643
643
|
filename?: string | undefined;
|
|
644
|
-
type: "source";
|
|
645
644
|
id: string;
|
|
645
|
+
type: "source";
|
|
646
646
|
mediaType: string;
|
|
647
647
|
sourceType: "document";
|
|
648
648
|
title: string;
|
|
@@ -772,8 +772,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
772
772
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
773
773
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
774
774
|
filename?: string | undefined;
|
|
775
|
-
type: "source";
|
|
776
775
|
id: string;
|
|
776
|
+
type: "source";
|
|
777
777
|
mediaType: string;
|
|
778
778
|
sourceType: "document";
|
|
779
779
|
title: string;
|
|
@@ -974,16 +974,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
974
974
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
975
975
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
976
976
|
title?: string | undefined;
|
|
977
|
-
type: "source";
|
|
978
977
|
id: string;
|
|
978
|
+
type: "source";
|
|
979
979
|
url: string;
|
|
980
980
|
sourceType: "url";
|
|
981
981
|
} | {
|
|
982
982
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
983
983
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
984
984
|
filename?: string | undefined;
|
|
985
|
-
type: "source";
|
|
986
985
|
id: string;
|
|
986
|
+
type: "source";
|
|
987
987
|
mediaType: string;
|
|
988
988
|
sourceType: "document";
|
|
989
989
|
title: string;
|
|
@@ -1113,8 +1113,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1113
1113
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1114
1114
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1115
1115
|
filename?: string | undefined;
|
|
1116
|
-
type: "source";
|
|
1117
1116
|
id: string;
|
|
1117
|
+
type: "source";
|
|
1118
1118
|
mediaType: string;
|
|
1119
1119
|
sourceType: "document";
|
|
1120
1120
|
title: string;
|
|
@@ -1320,16 +1320,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1320
1320
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1321
1321
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1322
1322
|
title?: string | undefined;
|
|
1323
|
-
type: "source";
|
|
1324
1323
|
id: string;
|
|
1324
|
+
type: "source";
|
|
1325
1325
|
url: string;
|
|
1326
1326
|
sourceType: "url";
|
|
1327
1327
|
} | {
|
|
1328
1328
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1329
1329
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1330
1330
|
filename?: string | undefined;
|
|
1331
|
-
type: "source";
|
|
1332
1331
|
id: string;
|
|
1332
|
+
type: "source";
|
|
1333
1333
|
mediaType: string;
|
|
1334
1334
|
sourceType: "document";
|
|
1335
1335
|
title: string;
|
|
@@ -1687,16 +1687,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1687
1687
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1688
1688
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1689
1689
|
title?: string | undefined;
|
|
1690
|
-
type: "source";
|
|
1691
1690
|
id: string;
|
|
1691
|
+
type: "source";
|
|
1692
1692
|
url: string;
|
|
1693
1693
|
sourceType: "url";
|
|
1694
1694
|
} | {
|
|
1695
1695
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1696
1696
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1697
1697
|
filename?: string | undefined;
|
|
1698
|
-
type: "source";
|
|
1699
1698
|
id: string;
|
|
1699
|
+
type: "source";
|
|
1700
1700
|
mediaType: string;
|
|
1701
1701
|
sourceType: "document";
|
|
1702
1702
|
title: string;
|
|
@@ -1835,16 +1835,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1835
1835
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1836
1836
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1837
1837
|
title?: string | undefined;
|
|
1838
|
-
type: "source";
|
|
1839
1838
|
id: string;
|
|
1839
|
+
type: "source";
|
|
1840
1840
|
url: string;
|
|
1841
1841
|
sourceType: "url";
|
|
1842
1842
|
} | {
|
|
1843
1843
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1844
1844
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1845
1845
|
filename?: string | undefined;
|
|
1846
|
-
type: "source";
|
|
1847
1846
|
id: string;
|
|
1847
|
+
type: "source";
|
|
1848
1848
|
mediaType: string;
|
|
1849
1849
|
sourceType: "document";
|
|
1850
1850
|
title: string;
|
|
@@ -1980,16 +1980,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
1980
1980
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1981
1981
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1982
1982
|
title?: string | undefined;
|
|
1983
|
-
type: "source";
|
|
1984
1983
|
id: string;
|
|
1984
|
+
type: "source";
|
|
1985
1985
|
url: string;
|
|
1986
1986
|
sourceType: "url";
|
|
1987
1987
|
} | {
|
|
1988
1988
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
1989
1989
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
1990
1990
|
filename?: string | undefined;
|
|
1991
|
-
type: "source";
|
|
1992
1991
|
id: string;
|
|
1992
|
+
type: "source";
|
|
1993
1993
|
mediaType: string;
|
|
1994
1994
|
sourceType: "document";
|
|
1995
1995
|
title: string;
|
|
@@ -2125,16 +2125,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2125
2125
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2126
2126
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2127
2127
|
title?: string | undefined;
|
|
2128
|
-
type: "source";
|
|
2129
2128
|
id: string;
|
|
2129
|
+
type: "source";
|
|
2130
2130
|
url: string;
|
|
2131
2131
|
sourceType: "url";
|
|
2132
2132
|
} | {
|
|
2133
2133
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2134
2134
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2135
2135
|
filename?: string | undefined;
|
|
2136
|
-
type: "source";
|
|
2137
2136
|
id: string;
|
|
2137
|
+
type: "source";
|
|
2138
2138
|
mediaType: string;
|
|
2139
2139
|
sourceType: "document";
|
|
2140
2140
|
title: string;
|
|
@@ -2667,16 +2667,16 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2667
2667
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2668
2668
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2669
2669
|
title?: string | undefined;
|
|
2670
|
-
type: "source";
|
|
2671
2670
|
id: string;
|
|
2671
|
+
type: "source";
|
|
2672
2672
|
url: string;
|
|
2673
2673
|
sourceType: "url";
|
|
2674
2674
|
} | {
|
|
2675
2675
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2676
2676
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2677
2677
|
filename?: string | undefined;
|
|
2678
|
-
type: "source";
|
|
2679
2678
|
id: string;
|
|
2679
|
+
type: "source";
|
|
2680
2680
|
mediaType: string;
|
|
2681
2681
|
sourceType: "document";
|
|
2682
2682
|
title: string;
|
|
@@ -2684,8 +2684,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2684
2684
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2685
2685
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2686
2686
|
title?: string | undefined;
|
|
2687
|
-
type: "source";
|
|
2688
2687
|
id: string;
|
|
2688
|
+
type: "source";
|
|
2689
2689
|
url: string;
|
|
2690
2690
|
sourceType: "url";
|
|
2691
2691
|
}, {
|
|
@@ -2696,12 +2696,12 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2696
2696
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
2697
2697
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2698
2698
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2699
|
-
}, "required", "
|
|
2699
|
+
}, "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType" | "title">, import("convex/values").VObject<{
|
|
2700
2700
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2701
2701
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2702
2702
|
filename?: string | undefined;
|
|
2703
|
-
type: "source";
|
|
2704
2703
|
id: string;
|
|
2704
|
+
type: "source";
|
|
2705
2705
|
mediaType: string;
|
|
2706
2706
|
sourceType: "document";
|
|
2707
2707
|
title: string;
|
|
@@ -2714,7 +2714,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2714
2714
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
2715
2715
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2716
2716
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2717
|
-
}, "required", "
|
|
2717
|
+
}, "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType" | "title">], "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType" | "title">, import("convex/values").VObject<{
|
|
2718
2718
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
2719
2719
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
2720
2720
|
type: "tool-approval-request";
|
|
@@ -2726,7 +2726,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
2726
2726
|
toolCallId: import("convex/values").VString<string, "required">;
|
|
2727
2727
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2728
2728
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2729
|
-
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "approvalId">], "required", "
|
|
2729
|
+
}, "required", "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "toolCallId" | "approvalId">], "required", "id" | "type" | "providerOptions" | "text" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "mimeType" | "data" | "filename" | "signature" | "toolCallId" | "toolName" | "input" | "args" | "providerExecuted" | `input.${string}` | `args.${string}` | "output" | "url" | "result" | "isError" | "experimental_content" | "output.type" | "output.providerOptions" | `output.providerOptions.${string}` | "output.value" | `output.value.${string}` | "output.reason" | `result.${string}` | "sourceType" | "title" | "approvalId">, "required">], "required", never>;
|
|
2730
2730
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
2731
2731
|
}, "required", "providerOptions" | "role" | `providerOptions.${string}` | "content">, import("convex/values").VObject<{
|
|
2732
2732
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
@@ -3470,8 +3470,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3470
3470
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3471
3471
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3472
3472
|
filename?: string | undefined;
|
|
3473
|
-
type: "source";
|
|
3474
3473
|
id: string;
|
|
3474
|
+
type: "source";
|
|
3475
3475
|
mediaType: string;
|
|
3476
3476
|
sourceType: "document";
|
|
3477
3477
|
title: string;
|
|
@@ -3487,8 +3487,8 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3487
3487
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3488
3488
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3489
3489
|
filename?: string | undefined;
|
|
3490
|
-
type: "source";
|
|
3491
3490
|
id: string;
|
|
3491
|
+
type: "source";
|
|
3492
3492
|
mediaType: string;
|
|
3493
3493
|
sourceType: "document";
|
|
3494
3494
|
title: string;
|
|
@@ -3508,12 +3508,12 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3508
3508
|
title: import("convex/values").VString<string | undefined, "optional">;
|
|
3509
3509
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
3510
3510
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
3511
|
-
}, "required", "
|
|
3511
|
+
}, "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "url" | "sourceType" | "title">, import("convex/values").VObject<{
|
|
3512
3512
|
providerOptions?: Record<string, Record<string, any>> | undefined;
|
|
3513
3513
|
providerMetadata?: Record<string, Record<string, any>> | undefined;
|
|
3514
3514
|
filename?: string | undefined;
|
|
3515
|
-
type: "source";
|
|
3516
3515
|
id: string;
|
|
3516
|
+
type: "source";
|
|
3517
3517
|
mediaType: string;
|
|
3518
3518
|
sourceType: "document";
|
|
3519
3519
|
title: string;
|
|
@@ -3526,7 +3526,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3526
3526
|
filename: import("convex/values").VString<string | undefined, "optional">;
|
|
3527
3527
|
providerOptions: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
3528
3528
|
providerMetadata: import("convex/values").VRecord<Record<string, Record<string, any>> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VRecord<Record<string, any>, import("convex/values").VString<string, "required">, import("convex/values").VAny<any, "required", string>, "required", string>, "optional", string>;
|
|
3529
|
-
}, "required", "
|
|
3529
|
+
}, "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "sourceType" | "title">], "required", "id" | "type" | "providerOptions" | "providerMetadata" | `providerOptions.${string}` | `providerMetadata.${string}` | "mediaType" | "filename" | "url" | "sourceType" | "title">, "optional">;
|
|
3530
3530
|
warnings: import("convex/values").VArray<({
|
|
3531
3531
|
details?: string | undefined;
|
|
3532
3532
|
type: "unsupported-setting";
|
|
@@ -3633,7 +3633,7 @@ export declare const vStreamMessagesReturnValue: import("convex/values").VObject
|
|
|
3633
3633
|
isDone: import("convex/values").VBoolean<boolean, "required">;
|
|
3634
3634
|
splitCursor: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
3635
3635
|
pageStatus: import("convex/values").VUnion<"SplitRecommended" | "SplitRequired" | null | undefined, [import("convex/values").VLiteral<"SplitRecommended", "required">, import("convex/values").VLiteral<"SplitRequired", "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
3636
|
-
}, "required", "
|
|
3636
|
+
}, "required", "page" | "continueCursor" | "isDone" | "splitCursor" | "pageStatus" | "streams" | "streams.kind" | "streams.messages" | "streams.deltas">;
|
|
3637
3637
|
/**
|
|
3638
3638
|
* A function that handles fetching stream deltas, used with the React hooks
|
|
3639
3639
|
* `useThreadMessages` or `useStreamingThreadMessages`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../src/client/streaming.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,OAAO,EACZ,KAAK,cAAc,EACpB,MAAM,IAAI,CAAC;AAEZ,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,UAAU,EAEf,KAAK,aAAa,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACV,SAAS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
@@ -130,16 +130,26 @@ export class DeltaStreamer {
|
|
|
130
130
|
this.abortController = new AbortController();
|
|
131
131
|
if (config.abortSignal) {
|
|
132
132
|
config.abortSignal.addEventListener("abort", async () => {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
try {
|
|
134
|
+
if (this.abortController.signal.aborted) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
137
|
this.abortController.abort();
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
// Wait for in-flight stream creation before trying to abort it
|
|
139
|
+
if (this.#creatingStreamIdPromise) {
|
|
140
|
+
await this.#creatingStreamIdPromise;
|
|
141
|
+
}
|
|
142
|
+
if (this.streamId) {
|
|
143
|
+
await this.#ongoingWrite;
|
|
144
|
+
await this.ctx.runMutation(this.component.streams.abort, {
|
|
145
|
+
streamId: this.streamId,
|
|
146
|
+
reason: "abortSignal",
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
catch {
|
|
151
|
+
// Best-effort cleanup — the stream will be garbage-collected
|
|
152
|
+
// by the 10-minute timeout if this fails.
|
|
143
153
|
}
|
|
144
154
|
});
|
|
145
155
|
}
|
|
@@ -171,7 +181,10 @@ export class DeltaStreamer {
|
|
|
171
181
|
await this.addParts([chunk]);
|
|
172
182
|
}
|
|
173
183
|
// Skip finish if it will be handled externally (atomically with message save)
|
|
174
|
-
if (
|
|
184
|
+
// or if the stream was aborted (e.g., due to a failed delta write).
|
|
185
|
+
// Aborted streams are cleaned up via streams.abort (called by the abort
|
|
186
|
+
// signal handler), so we don't need to call finish() for them.
|
|
187
|
+
if (!this.#finishedExternally && !this.abortController.signal.aborted) {
|
|
175
188
|
await this.finish();
|
|
176
189
|
}
|
|
177
190
|
}
|
|
@@ -210,7 +223,7 @@ export class DeltaStreamer {
|
|
|
210
223
|
catch (e) {
|
|
211
224
|
await this.config.onAsyncAbort(e instanceof Error ? e.message : "unknown error");
|
|
212
225
|
this.abortController.abort();
|
|
213
|
-
|
|
226
|
+
return;
|
|
214
227
|
}
|
|
215
228
|
// Now that we've sent the delta, check if we need to send another one.
|
|
216
229
|
if (this.#nextParts.length > 0 &&
|
|
@@ -243,7 +256,10 @@ export class DeltaStreamer {
|
|
|
243
256
|
return;
|
|
244
257
|
}
|
|
245
258
|
await this.#ongoingWrite;
|
|
246
|
-
await this.#sendDelta();
|
|
259
|
+
await this.#sendDelta(); // #sendDelta checks aborted internally
|
|
260
|
+
if (this.abortController.signal.aborted) {
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
247
263
|
await this.ctx.runMutation(this.component.streams.finish, {
|
|
248
264
|
streamId: this.streamId,
|
|
249
265
|
});
|
|
@@ -296,16 +312,16 @@ export function compressTextStreamParts(parts) {
|
|
|
296
312
|
compressed.push(part);
|
|
297
313
|
}
|
|
298
314
|
}
|
|
315
|
+
else if (part.type === "file") {
|
|
316
|
+
compressed.push({
|
|
317
|
+
type: "file",
|
|
318
|
+
file: {
|
|
319
|
+
...part.file,
|
|
320
|
+
uint8Array: undefined,
|
|
321
|
+
},
|
|
322
|
+
});
|
|
323
|
+
}
|
|
299
324
|
else {
|
|
300
|
-
if (part.type === "file") {
|
|
301
|
-
compressed.push({
|
|
302
|
-
type: "file",
|
|
303
|
-
file: {
|
|
304
|
-
...part.file,
|
|
305
|
-
uint8Array: undefined,
|
|
306
|
-
},
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
325
|
compressed.push(part);
|
|
310
326
|
}
|
|
311
327
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.js","sourceRoot":"","sources":["../../src/client/streaming.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,GAOb,MAAM,IAAI,CAAC;AACZ,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,cAAc,GAKf,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