@adecore/agent-contracts 0.70.1 → 0.71.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/chat.d.ts +71 -0
- package/dist/chat.js +13 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/protocol.d.ts +55 -0
- package/dist/protocol.js +2 -1
- package/package.json +3 -3
- package/src/chat.ts +17 -0
- package/src/index.ts +4 -0
- package/src/protocol.ts +3 -0
package/dist/chat.d.ts
CHANGED
|
@@ -535,8 +535,20 @@ export declare const ChatUiLinkReadingSchema: z.ZodObject<{
|
|
|
535
535
|
detail: z.ZodOptional<z.ZodString>;
|
|
536
536
|
code: z.ZodOptional<z.ZodString>;
|
|
537
537
|
reason: z.ZodOptional<z.ZodString>;
|
|
538
|
+
status: z.ZodOptional<z.ZodString>;
|
|
538
539
|
}, z.core.$strip>;
|
|
539
540
|
export type ChatUiLinkReading = z.infer<typeof ChatUiLinkReadingSchema>;
|
|
541
|
+
export declare const ChatUiDiffReadingSchema: z.ZodObject<{
|
|
542
|
+
state: z.ZodEnum<{
|
|
543
|
+
patch: "patch";
|
|
544
|
+
refused: "refused";
|
|
545
|
+
}>;
|
|
546
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
547
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
548
|
+
code: z.ZodOptional<z.ZodString>;
|
|
549
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
550
|
+
}, z.core.$strip>;
|
|
551
|
+
export type ChatUiDiffReading = z.infer<typeof ChatUiDiffReadingSchema>;
|
|
540
552
|
export declare const ChatUiPlaceReadingSchema: z.ZodObject<{
|
|
541
553
|
state: z.ZodEnum<{
|
|
542
554
|
found: "found";
|
|
@@ -596,6 +608,7 @@ export declare const ChatUiQueryStateSchema: z.ZodObject<{
|
|
|
596
608
|
detail: z.ZodOptional<z.ZodString>;
|
|
597
609
|
code: z.ZodOptional<z.ZodString>;
|
|
598
610
|
reason: z.ZodOptional<z.ZodString>;
|
|
611
|
+
status: z.ZodOptional<z.ZodString>;
|
|
599
612
|
}, z.core.$strip>>>;
|
|
600
613
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
601
614
|
state: z.ZodEnum<{
|
|
@@ -649,6 +662,8 @@ export declare const ChatAssistantItemSchema: z.ZodObject<{
|
|
|
649
662
|
start: z.ZodNumber;
|
|
650
663
|
end: z.ZodNumber;
|
|
651
664
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
665
|
+
component: z.ZodOptional<z.ZodString>;
|
|
666
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
652
667
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
653
668
|
}, z.core.$strip>>;
|
|
654
669
|
fallback: z.ZodString;
|
|
@@ -712,6 +727,7 @@ export declare const ChatAssistantItemSchema: z.ZodObject<{
|
|
|
712
727
|
detail: z.ZodOptional<z.ZodString>;
|
|
713
728
|
code: z.ZodOptional<z.ZodString>;
|
|
714
729
|
reason: z.ZodOptional<z.ZodString>;
|
|
730
|
+
status: z.ZodOptional<z.ZodString>;
|
|
715
731
|
}, z.core.$strip>>>;
|
|
716
732
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
717
733
|
state: z.ZodEnum<{
|
|
@@ -1252,6 +1268,8 @@ export declare const ChatItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1252
1268
|
start: z.ZodNumber;
|
|
1253
1269
|
end: z.ZodNumber;
|
|
1254
1270
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
1271
|
+
component: z.ZodOptional<z.ZodString>;
|
|
1272
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
1255
1273
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
1256
1274
|
}, z.core.$strip>>;
|
|
1257
1275
|
fallback: z.ZodString;
|
|
@@ -1315,6 +1333,7 @@ export declare const ChatItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1315
1333
|
detail: z.ZodOptional<z.ZodString>;
|
|
1316
1334
|
code: z.ZodOptional<z.ZodString>;
|
|
1317
1335
|
reason: z.ZodOptional<z.ZodString>;
|
|
1336
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1318
1337
|
}, z.core.$strip>>>;
|
|
1319
1338
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1320
1339
|
state: z.ZodEnum<{
|
|
@@ -1702,6 +1721,8 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1702
1721
|
start: z.ZodNumber;
|
|
1703
1722
|
end: z.ZodNumber;
|
|
1704
1723
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
1724
|
+
component: z.ZodOptional<z.ZodString>;
|
|
1725
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
1705
1726
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
1706
1727
|
}, z.core.$strip>>;
|
|
1707
1728
|
fallback: z.ZodString;
|
|
@@ -1765,6 +1786,7 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1765
1786
|
detail: z.ZodOptional<z.ZodString>;
|
|
1766
1787
|
code: z.ZodOptional<z.ZodString>;
|
|
1767
1788
|
reason: z.ZodOptional<z.ZodString>;
|
|
1789
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1768
1790
|
}, z.core.$strip>>>;
|
|
1769
1791
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1770
1792
|
state: z.ZodEnum<{
|
|
@@ -2088,6 +2110,8 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2088
2110
|
start: z.ZodNumber;
|
|
2089
2111
|
end: z.ZodNumber;
|
|
2090
2112
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
2113
|
+
component: z.ZodOptional<z.ZodString>;
|
|
2114
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
2091
2115
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
2092
2116
|
}, z.core.$strip>>;
|
|
2093
2117
|
fallback: z.ZodString;
|
|
@@ -2138,6 +2162,7 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2138
2162
|
detail: z.ZodOptional<z.ZodString>;
|
|
2139
2163
|
code: z.ZodOptional<z.ZodString>;
|
|
2140
2164
|
reason: z.ZodOptional<z.ZodString>;
|
|
2165
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2141
2166
|
}, z.core.$strip>>>;
|
|
2142
2167
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2143
2168
|
state: z.ZodEnum<{
|
|
@@ -2562,6 +2587,8 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2562
2587
|
start: z.ZodNumber;
|
|
2563
2588
|
end: z.ZodNumber;
|
|
2564
2589
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
2590
|
+
component: z.ZodOptional<z.ZodString>;
|
|
2591
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
2565
2592
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
2566
2593
|
}, z.core.$strip>>;
|
|
2567
2594
|
fallback: z.ZodString;
|
|
@@ -2625,6 +2652,7 @@ export declare const ChatEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2625
2652
|
detail: z.ZodOptional<z.ZodString>;
|
|
2626
2653
|
code: z.ZodOptional<z.ZodString>;
|
|
2627
2654
|
reason: z.ZodOptional<z.ZodString>;
|
|
2655
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2628
2656
|
}, z.core.$strip>>>;
|
|
2629
2657
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2630
2658
|
state: z.ZodEnum<{
|
|
@@ -2991,6 +3019,8 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
2991
3019
|
start: z.ZodNumber;
|
|
2992
3020
|
end: z.ZodNumber;
|
|
2993
3021
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
3022
|
+
component: z.ZodOptional<z.ZodString>;
|
|
3023
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
2994
3024
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
2995
3025
|
}, z.core.$strip>>;
|
|
2996
3026
|
fallback: z.ZodString;
|
|
@@ -3054,6 +3084,7 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
3054
3084
|
detail: z.ZodOptional<z.ZodString>;
|
|
3055
3085
|
code: z.ZodOptional<z.ZodString>;
|
|
3056
3086
|
reason: z.ZodOptional<z.ZodString>;
|
|
3087
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3057
3088
|
}, z.core.$strip>>>;
|
|
3058
3089
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3059
3090
|
state: z.ZodEnum<{
|
|
@@ -3377,6 +3408,8 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
3377
3408
|
start: z.ZodNumber;
|
|
3378
3409
|
end: z.ZodNumber;
|
|
3379
3410
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
3411
|
+
component: z.ZodOptional<z.ZodString>;
|
|
3412
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
3380
3413
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
3381
3414
|
}, z.core.$strip>>;
|
|
3382
3415
|
fallback: z.ZodString;
|
|
@@ -3427,6 +3460,7 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
3427
3460
|
detail: z.ZodOptional<z.ZodString>;
|
|
3428
3461
|
code: z.ZodOptional<z.ZodString>;
|
|
3429
3462
|
reason: z.ZodOptional<z.ZodString>;
|
|
3463
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3430
3464
|
}, z.core.$strip>>>;
|
|
3431
3465
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3432
3466
|
state: z.ZodEnum<{
|
|
@@ -3851,6 +3885,8 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
3851
3885
|
start: z.ZodNumber;
|
|
3852
3886
|
end: z.ZodNumber;
|
|
3853
3887
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
3888
|
+
component: z.ZodOptional<z.ZodString>;
|
|
3889
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
3854
3890
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
3855
3891
|
}, z.core.$strip>>;
|
|
3856
3892
|
fallback: z.ZodString;
|
|
@@ -3914,6 +3950,7 @@ export declare const ChatEventEnvelopeSchema: z.ZodObject<{
|
|
|
3914
3950
|
detail: z.ZodOptional<z.ZodString>;
|
|
3915
3951
|
code: z.ZodOptional<z.ZodString>;
|
|
3916
3952
|
reason: z.ZodOptional<z.ZodString>;
|
|
3953
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3917
3954
|
}, z.core.$strip>>>;
|
|
3918
3955
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3919
3956
|
state: z.ZodEnum<{
|
|
@@ -4374,6 +4411,8 @@ export declare const ChatHistoryResultSchema: z.ZodObject<{
|
|
|
4374
4411
|
start: z.ZodNumber;
|
|
4375
4412
|
end: z.ZodNumber;
|
|
4376
4413
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
4414
|
+
component: z.ZodOptional<z.ZodString>;
|
|
4415
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
4377
4416
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
4378
4417
|
}, z.core.$strip>>;
|
|
4379
4418
|
fallback: z.ZodString;
|
|
@@ -4437,6 +4476,7 @@ export declare const ChatHistoryResultSchema: z.ZodObject<{
|
|
|
4437
4476
|
detail: z.ZodOptional<z.ZodString>;
|
|
4438
4477
|
code: z.ZodOptional<z.ZodString>;
|
|
4439
4478
|
reason: z.ZodOptional<z.ZodString>;
|
|
4479
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4440
4480
|
}, z.core.$strip>>>;
|
|
4441
4481
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4442
4482
|
state: z.ZodEnum<{
|
|
@@ -4842,6 +4882,8 @@ export declare const ChatSubagentResultSchema: z.ZodObject<{
|
|
|
4842
4882
|
start: z.ZodNumber;
|
|
4843
4883
|
end: z.ZodNumber;
|
|
4844
4884
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
4885
|
+
component: z.ZodOptional<z.ZodString>;
|
|
4886
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
4845
4887
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
4846
4888
|
}, z.core.$strip>>;
|
|
4847
4889
|
fallback: z.ZodString;
|
|
@@ -4905,6 +4947,7 @@ export declare const ChatSubagentResultSchema: z.ZodObject<{
|
|
|
4905
4947
|
detail: z.ZodOptional<z.ZodString>;
|
|
4906
4948
|
code: z.ZodOptional<z.ZodString>;
|
|
4907
4949
|
reason: z.ZodOptional<z.ZodString>;
|
|
4950
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4908
4951
|
}, z.core.$strip>>>;
|
|
4909
4952
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4910
4953
|
state: z.ZodEnum<{
|
|
@@ -5765,6 +5808,8 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
5765
5808
|
start: z.ZodNumber;
|
|
5766
5809
|
end: z.ZodNumber;
|
|
5767
5810
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
5811
|
+
component: z.ZodOptional<z.ZodString>;
|
|
5812
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
5768
5813
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
5769
5814
|
}, z.core.$strip>>;
|
|
5770
5815
|
fallback: z.ZodString;
|
|
@@ -5828,6 +5873,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
5828
5873
|
detail: z.ZodOptional<z.ZodString>;
|
|
5829
5874
|
code: z.ZodOptional<z.ZodString>;
|
|
5830
5875
|
reason: z.ZodOptional<z.ZodString>;
|
|
5876
|
+
status: z.ZodOptional<z.ZodString>;
|
|
5831
5877
|
}, z.core.$strip>>>;
|
|
5832
5878
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5833
5879
|
state: z.ZodEnum<{
|
|
@@ -6188,6 +6234,8 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
6188
6234
|
start: z.ZodNumber;
|
|
6189
6235
|
end: z.ZodNumber;
|
|
6190
6236
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
6237
|
+
component: z.ZodOptional<z.ZodString>;
|
|
6238
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
6191
6239
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
6192
6240
|
}, z.core.$strip>>;
|
|
6193
6241
|
fallback: z.ZodString;
|
|
@@ -6251,6 +6299,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
6251
6299
|
detail: z.ZodOptional<z.ZodString>;
|
|
6252
6300
|
code: z.ZodOptional<z.ZodString>;
|
|
6253
6301
|
reason: z.ZodOptional<z.ZodString>;
|
|
6302
|
+
status: z.ZodOptional<z.ZodString>;
|
|
6254
6303
|
}, z.core.$strip>>>;
|
|
6255
6304
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6256
6305
|
state: z.ZodEnum<{
|
|
@@ -6610,6 +6659,8 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
6610
6659
|
start: z.ZodNumber;
|
|
6611
6660
|
end: z.ZodNumber;
|
|
6612
6661
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
6662
|
+
component: z.ZodOptional<z.ZodString>;
|
|
6663
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
6613
6664
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
6614
6665
|
}, z.core.$strip>>;
|
|
6615
6666
|
fallback: z.ZodString;
|
|
@@ -6673,6 +6724,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
6673
6724
|
detail: z.ZodOptional<z.ZodString>;
|
|
6674
6725
|
code: z.ZodOptional<z.ZodString>;
|
|
6675
6726
|
reason: z.ZodOptional<z.ZodString>;
|
|
6727
|
+
status: z.ZodOptional<z.ZodString>;
|
|
6676
6728
|
}, z.core.$strip>>>;
|
|
6677
6729
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6678
6730
|
state: z.ZodEnum<{
|
|
@@ -6996,6 +7048,8 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
6996
7048
|
start: z.ZodNumber;
|
|
6997
7049
|
end: z.ZodNumber;
|
|
6998
7050
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
7051
|
+
component: z.ZodOptional<z.ZodString>;
|
|
7052
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
6999
7053
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
7000
7054
|
}, z.core.$strip>>;
|
|
7001
7055
|
fallback: z.ZodString;
|
|
@@ -7046,6 +7100,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
7046
7100
|
detail: z.ZodOptional<z.ZodString>;
|
|
7047
7101
|
code: z.ZodOptional<z.ZodString>;
|
|
7048
7102
|
reason: z.ZodOptional<z.ZodString>;
|
|
7103
|
+
status: z.ZodOptional<z.ZodString>;
|
|
7049
7104
|
}, z.core.$strip>>>;
|
|
7050
7105
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7051
7106
|
state: z.ZodEnum<{
|
|
@@ -7470,6 +7525,8 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
7470
7525
|
start: z.ZodNumber;
|
|
7471
7526
|
end: z.ZodNumber;
|
|
7472
7527
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
7528
|
+
component: z.ZodOptional<z.ZodString>;
|
|
7529
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
7473
7530
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
7474
7531
|
}, z.core.$strip>>;
|
|
7475
7532
|
fallback: z.ZodString;
|
|
@@ -7533,6 +7590,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
7533
7590
|
detail: z.ZodOptional<z.ZodString>;
|
|
7534
7591
|
code: z.ZodOptional<z.ZodString>;
|
|
7535
7592
|
reason: z.ZodOptional<z.ZodString>;
|
|
7593
|
+
status: z.ZodOptional<z.ZodString>;
|
|
7536
7594
|
}, z.core.$strip>>>;
|
|
7537
7595
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7538
7596
|
state: z.ZodEnum<{
|
|
@@ -8012,6 +8070,8 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
8012
8070
|
start: z.ZodNumber;
|
|
8013
8071
|
end: z.ZodNumber;
|
|
8014
8072
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
8073
|
+
component: z.ZodOptional<z.ZodString>;
|
|
8074
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
8015
8075
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
8016
8076
|
}, z.core.$strip>>;
|
|
8017
8077
|
fallback: z.ZodString;
|
|
@@ -8075,6 +8135,7 @@ export declare const ChatAttachResultSchema: z.ZodObject<{
|
|
|
8075
8135
|
detail: z.ZodOptional<z.ZodString>;
|
|
8076
8136
|
code: z.ZodOptional<z.ZodString>;
|
|
8077
8137
|
reason: z.ZodOptional<z.ZodString>;
|
|
8138
|
+
status: z.ZodOptional<z.ZodString>;
|
|
8078
8139
|
}, z.core.$strip>>>;
|
|
8079
8140
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8080
8141
|
state: z.ZodEnum<{
|
|
@@ -8424,6 +8485,16 @@ export declare const ChatUiLinkPayloadSchema: z.ZodObject<{
|
|
|
8424
8485
|
nodeId: z.ZodString;
|
|
8425
8486
|
}, z.core.$strip>;
|
|
8426
8487
|
export type ChatUiLinkPayload = z.infer<typeof ChatUiLinkPayloadSchema>;
|
|
8488
|
+
export declare const ChatUiDiffPayloadSchema: z.ZodObject<{
|
|
8489
|
+
chatId: z.ZodString;
|
|
8490
|
+
itemId: z.ZodString;
|
|
8491
|
+
blockId: z.ZodString;
|
|
8492
|
+
revision: z.ZodString;
|
|
8493
|
+
reads: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8494
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8495
|
+
nodeId: z.ZodString;
|
|
8496
|
+
}, z.core.$strip>;
|
|
8497
|
+
export type ChatUiDiffPayload = z.infer<typeof ChatUiDiffPayloadSchema>;
|
|
8427
8498
|
export declare const ChatQueuePayloadSchema: z.ZodObject<{
|
|
8428
8499
|
chatId: z.ZodString;
|
|
8429
8500
|
messageId: z.ZodString;
|
package/dist/chat.js
CHANGED
|
@@ -348,6 +348,17 @@ export const ChatUiQueryReadingSchema = z.object({
|
|
|
348
348
|
});
|
|
349
349
|
export const ChatUiLinkReadingSchema = UiLinkResolutionSchema;
|
|
350
350
|
// `state` is a frozen set, like a link's: native clients validate these payloads whole.
|
|
351
|
+
export const ChatUiDiffReadingSchema = z.object({
|
|
352
|
+
state: z.enum(['patch', 'refused']),
|
|
353
|
+
// The change as a unified patch of the one file, read by the host from git.
|
|
354
|
+
patch: z.string().optional(),
|
|
355
|
+
// Set where the host cut the patch short, so a client offers the whole change elsewhere.
|
|
356
|
+
truncated: z.boolean().optional(),
|
|
357
|
+
// A code that names the reason across versions; open, so a new one fails nobody.
|
|
358
|
+
code: z.string().optional(),
|
|
359
|
+
reason: z.string().optional()
|
|
360
|
+
});
|
|
361
|
+
// `state` is a frozen set, like a link's: native clients validate these payloads whole.
|
|
351
362
|
export const ChatUiPlaceReadingSchema = z.object({
|
|
352
363
|
state: z.enum(['found', 'missing']),
|
|
353
364
|
// The address as it was looked up (trimmed), which a reader compares with the address a node has now: a node id alone moves with a reordered Each.
|
|
@@ -1006,6 +1017,8 @@ export const ChatUiQueryPayloadSchema = z.object({
|
|
|
1006
1017
|
values: z.record(z.string().max(128), z.unknown()).optional()
|
|
1007
1018
|
});
|
|
1008
1019
|
export const ChatUiLinkPayloadSchema = ChatUiChoicePayloadSchema.omit({ choiceId: true }).extend({ nodeId: z.string().min(1).max(256) });
|
|
1020
|
+
// Names an open Diff of the stored block as a link names its node: the path and the revisions come from that node, never from the client.
|
|
1021
|
+
export const ChatUiDiffPayloadSchema = ChatUiLinkPayloadSchema.extend({});
|
|
1009
1022
|
export const ChatQueuePayloadSchema = z.object({
|
|
1010
1023
|
chatId: ChatIdSchema,
|
|
1011
1024
|
messageId: z.string().min(1)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AGENT_KIND_MAX_LENGTH, AgentKindSchema, type AgentKind, AgentStatusSchema, type AgentStatus, SUGGESTED_TITLE_LIMIT, SuggestedTitleSchema, AgentRequestSchema, type AgentRequest, AgentInfoSchema, type AgentInfo, SessionStatusEventSchema, type SessionStatusEvent, AgentResumePayloadSchema, type AgentResumePayload, ApprovalChoiceSchema, type ApprovalChoice, ApprovalRequestSchema, type ApprovalRequest, SessionApprovalsEventSchema, type SessionApprovalsEvent, ApprovalAnswerPayloadSchema, type ApprovalAnswerPayload, ApprovalAnswerResultSchema, type ApprovalAnswerResult, ApprovalPreferencePayloadSchema, type ApprovalPreferencePayload } from './agent.ts';
|
|
2
|
-
export { ChatIdSchema, type ChatId, ChatContextBreakdownSchema, type ChatContextBreakdown, ChatUsageSchema, type ChatUsage, CHAT_ATTACHMENTS_MAX_BYTES, CHAT_ATTACHMENT_MAX_BYTES, CHAT_ATTACHMENTS_MAX_COUNT, attachmentBytes, attachmentImageMime, ChatAttachmentUploadSchema, type ChatAttachmentUpload, ChatAttachmentUploadsSchema, ChatAttachmentSchema, type ChatAttachment, ChatUiChoiceOriginSchema, type ChatUiChoiceOrigin, ChatUiAnswerSchema, type ChatUiAnswer, ChatQuoteSourceSchema, type ChatQuoteSource, ChatQueuedMessageSchema, type ChatQueuedMessage, ChatBackgroundTaskSchema, type ChatBackgroundTask, scheduledWakeupId, scheduledWakeupAt, ChatTurnLimitSchema, type ChatTurnLimit, ChatGoalStatusSchema, type ChatGoalStatus, ChatGoalSchema, type ChatGoal, ChatQuestionSchema, type ChatQuestion, ChatRequestKindSchema, type ChatRequestKind, CHAT_REQUEST_LIMITS, ChatRequestApprovalSchema, type ChatRequestApproval, ChatRequestSummarySchema, type ChatRequestSummary, ChatInfoSchema, type ChatInfo, ChatSkillSourceSchema, type ChatSkillSource, ChatSkillSchema, type ChatSkill, SkillsListPayloadSchema, type SkillsListPayload, SkillsListResultSchema, type SkillsListResult, ChatUserItemSchema, ChatUiQueryReadingSchema, type ChatUiQueryReading, ChatUiLinkReadingSchema, type ChatUiLinkReading, ChatUiPlaceReadingSchema, type ChatUiPlaceReading, ChatUiQueryStateSchema, type ChatUiQueryState, ChatAssistantItemSchema, ChatThinkingItemSchema, ChatToolStateSchema, type ChatToolState, ChatToolProgressSchema, type ChatToolProgress, ChatFileChangeSchema, type ChatFileChange, ChatSubagentStatusSchema, type ChatSubagentStatus, ChatWorkflowPhaseSchema, type ChatWorkflowPhase, ChatWorkflowAgentSchema, type ChatWorkflowAgent, ChatWorkflowSchema, type ChatWorkflow, workflowAgentRef, workflowAgentIdOf, CHAT_PAYLOAD_INLINE_BYTES, ChatPayloadRefSchema, type ChatPayloadRef, ChatToolItemSchema, ChatSubagentUsageSchema, type ChatSubagentUsage, HOST_TASK_ORIGIN, taskRowId, taskIdOfRow, ChatSubagentItemSchema, ChatApprovalDecisionSchema, type ChatApprovalDecision, ChatApprovalItemSchema, ChatQuestionItemSchema, ChatCheckpointFileSchema, type ChatCheckpointFile, ChatCheckpointDiffSchema, type ChatCheckpointDiff, ChatTurnItemSchema, notResumedNote, abortedByMachine, ENDED_NOTE_PREFIX, abortedByEnd, activeSubagents, activeWorkflows, workflowEndedAt, CHAT_OUTLINE_TEXT_CHARS, outlineItems, WAITING_NOTE_PREFIX, ChatNoteItemSchema, ChatNoteMessageSchema, ChatCompactionItemSchema, ChatSecretItemSchema, ChatItemSchema, type ChatItem, type ChatUserItem, type ChatAssistantItem, type ChatThinkingItem, type ChatToolItem, type ChatSubagentItem, type ChatApprovalItem, type ChatQuestionItem, type ChatTurnItem, type ChatNoteItem, type ChatNoteMessage, type ChatCompactionItem, type ChatSecretItem, type ChatUnknownItem, ChatEventSchema, type ChatEvent, type ChatUnknownEvent, ChatEventEnvelopeSchema, type ChatEventEnvelope, ChatCreatePayloadSchema, type ChatCreatePayload, ChatConfigurePayloadSchema, type ChatConfigurePayload, ChatPreferencesPayloadSchema, type ChatPreferencesPayload, ChatTargetPayloadSchema, type ChatTargetPayload, ChatClearPayloadSchema, type ChatClearPayload, ChatCancelPayloadSchema, type ChatCancelPayload, ChatAttachPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryPageSchema, ChatHistoryResultSchema, type ChatHistoryResult, ChatSubagentPayloadSchema, type ChatSubagentPayload, ChatStopSubagentPayloadSchema, type ChatStopSubagentPayload, ChatGoalActionSchema, type ChatGoalAction, ChatGoalPayloadSchema, type ChatGoalPayload, ChatStopTaskPayloadSchema, type ChatStopTaskPayload, ChatSubagentPageSchema, ChatSubagentSourceSchema, type ChatSubagentSource, ChatSubagentResultSchema, type ChatSubagentResult, ChatStatusEventSchema, type ChatStatusEvent, ChatSubagentChangedEventSchema, type ChatSubagentChangedEvent, CHAT_BOOKMARK_LIMITS, ChatBookmarkSchema, type ChatBookmark, ChatBookmarksSchema, ChatAddBookmarkPayloadSchema, type ChatAddBookmarkPayload, ChatRenameBookmarkPayloadSchema, type ChatRenameBookmarkPayload, ChatRemoveBookmarkPayloadSchema, type ChatRemoveBookmarkPayload, ChatBookmarksResultSchema, type ChatBookmarksResult, ChatBookmarksEventSchema, type ChatBookmarksEvent, ChatRemoveVisualPayloadSchema, type ChatRemoveVisualPayload, ChatVisualsResultSchema, type ChatVisualsResult, ChatVisualsEventSchema, type ChatVisualsEvent, ChatSuggestionEventSchema, type ChatSuggestionEvent, ChatAttachResultSchema, type ChatAttachResult, ChatDeliverySchema, type ChatDelivery, ChatSendPayloadSchema, type ChatSendPayload, ChatSendResultSchema, type ChatSendResult, ChatUiChoicePayloadSchema, type ChatUiChoicePayload, ChatUiQueryPayloadSchema, type ChatUiQueryPayload, ChatUiLinkPayloadSchema, type ChatUiLinkPayload, ChatQueuePayloadSchema, type ChatQueuePayload, ChatUnqueueResultSchema, type ChatUnqueueResult, ChatApprovePayloadSchema, type ChatApprovePayload, ChatDismissPayloadSchema, type ChatDismissPayload, ChatAnswerPayloadSchema, type ChatAnswerPayload, ChatTurnDiffPayloadSchema, type ChatTurnDiffPayload, ChatTurnDiffResultSchema, type ChatTurnDiffResult, ChatToolOutputPayloadSchema, type ChatToolOutputPayload, ChatToolOutputResultSchema, type ChatToolOutputResult, CHAT_FORK_TITLE_MAX, ChatForkPayloadSchema, type ChatForkPayload, ChatForkResultSchema, type ChatForkResult, ChatContinueOnPayloadSchema, type ChatContinueOnPayload, ChatContinueOnResultSchema, type ChatContinueOnResult, ChatSummarizePayloadSchema, type ChatSummarizePayload, ChatSummarizeResultSchema, type ChatSummarizeResult, ChatForkInfoPayloadSchema, type ChatForkInfoPayload, ChatForkInfoResultSchema, type ChatForkInfoResult, ChatListPayloadSchema, type ChatListPayload, ChatListResultSchema, type ChatListResult, GeneratedImageInputSchema, type GeneratedImageInput, generatedImageAttachment, holdsConversation, chatActivity, type ChatActivity } from './chat.ts';
|
|
2
|
+
export { ChatIdSchema, type ChatId, ChatContextBreakdownSchema, type ChatContextBreakdown, ChatUsageSchema, type ChatUsage, CHAT_ATTACHMENTS_MAX_BYTES, CHAT_ATTACHMENT_MAX_BYTES, CHAT_ATTACHMENTS_MAX_COUNT, attachmentBytes, attachmentImageMime, ChatAttachmentUploadSchema, type ChatAttachmentUpload, ChatAttachmentUploadsSchema, ChatAttachmentSchema, type ChatAttachment, ChatUiChoiceOriginSchema, type ChatUiChoiceOrigin, ChatUiAnswerSchema, type ChatUiAnswer, ChatQuoteSourceSchema, type ChatQuoteSource, ChatQueuedMessageSchema, type ChatQueuedMessage, ChatBackgroundTaskSchema, type ChatBackgroundTask, scheduledWakeupId, scheduledWakeupAt, ChatTurnLimitSchema, type ChatTurnLimit, ChatGoalStatusSchema, type ChatGoalStatus, ChatGoalSchema, type ChatGoal, ChatQuestionSchema, type ChatQuestion, ChatRequestKindSchema, type ChatRequestKind, CHAT_REQUEST_LIMITS, ChatRequestApprovalSchema, type ChatRequestApproval, ChatRequestSummarySchema, type ChatRequestSummary, ChatInfoSchema, type ChatInfo, ChatSkillSourceSchema, type ChatSkillSource, ChatSkillSchema, type ChatSkill, SkillsListPayloadSchema, type SkillsListPayload, SkillsListResultSchema, type SkillsListResult, ChatUserItemSchema, ChatUiQueryReadingSchema, type ChatUiQueryReading, ChatUiLinkReadingSchema, type ChatUiLinkReading, ChatUiDiffReadingSchema, type ChatUiDiffReading, ChatUiPlaceReadingSchema, type ChatUiPlaceReading, ChatUiQueryStateSchema, type ChatUiQueryState, ChatAssistantItemSchema, ChatThinkingItemSchema, ChatToolStateSchema, type ChatToolState, ChatToolProgressSchema, type ChatToolProgress, ChatFileChangeSchema, type ChatFileChange, ChatSubagentStatusSchema, type ChatSubagentStatus, ChatWorkflowPhaseSchema, type ChatWorkflowPhase, ChatWorkflowAgentSchema, type ChatWorkflowAgent, ChatWorkflowSchema, type ChatWorkflow, workflowAgentRef, workflowAgentIdOf, CHAT_PAYLOAD_INLINE_BYTES, ChatPayloadRefSchema, type ChatPayloadRef, ChatToolItemSchema, ChatSubagentUsageSchema, type ChatSubagentUsage, HOST_TASK_ORIGIN, taskRowId, taskIdOfRow, ChatSubagentItemSchema, ChatApprovalDecisionSchema, type ChatApprovalDecision, ChatApprovalItemSchema, ChatQuestionItemSchema, ChatCheckpointFileSchema, type ChatCheckpointFile, ChatCheckpointDiffSchema, type ChatCheckpointDiff, ChatTurnItemSchema, notResumedNote, abortedByMachine, ENDED_NOTE_PREFIX, abortedByEnd, activeSubagents, activeWorkflows, workflowEndedAt, CHAT_OUTLINE_TEXT_CHARS, outlineItems, WAITING_NOTE_PREFIX, ChatNoteItemSchema, ChatNoteMessageSchema, ChatCompactionItemSchema, ChatSecretItemSchema, ChatItemSchema, type ChatItem, type ChatUserItem, type ChatAssistantItem, type ChatThinkingItem, type ChatToolItem, type ChatSubagentItem, type ChatApprovalItem, type ChatQuestionItem, type ChatTurnItem, type ChatNoteItem, type ChatNoteMessage, type ChatCompactionItem, type ChatSecretItem, type ChatUnknownItem, ChatEventSchema, type ChatEvent, type ChatUnknownEvent, ChatEventEnvelopeSchema, type ChatEventEnvelope, ChatCreatePayloadSchema, type ChatCreatePayload, ChatConfigurePayloadSchema, type ChatConfigurePayload, ChatPreferencesPayloadSchema, type ChatPreferencesPayload, ChatTargetPayloadSchema, type ChatTargetPayload, ChatClearPayloadSchema, type ChatClearPayload, ChatCancelPayloadSchema, type ChatCancelPayload, ChatAttachPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryPageSchema, ChatHistoryResultSchema, type ChatHistoryResult, ChatSubagentPayloadSchema, type ChatSubagentPayload, ChatStopSubagentPayloadSchema, type ChatStopSubagentPayload, ChatGoalActionSchema, type ChatGoalAction, ChatGoalPayloadSchema, type ChatGoalPayload, ChatStopTaskPayloadSchema, type ChatStopTaskPayload, ChatSubagentPageSchema, ChatSubagentSourceSchema, type ChatSubagentSource, ChatSubagentResultSchema, type ChatSubagentResult, ChatStatusEventSchema, type ChatStatusEvent, ChatSubagentChangedEventSchema, type ChatSubagentChangedEvent, CHAT_BOOKMARK_LIMITS, ChatBookmarkSchema, type ChatBookmark, ChatBookmarksSchema, ChatAddBookmarkPayloadSchema, type ChatAddBookmarkPayload, ChatRenameBookmarkPayloadSchema, type ChatRenameBookmarkPayload, ChatRemoveBookmarkPayloadSchema, type ChatRemoveBookmarkPayload, ChatBookmarksResultSchema, type ChatBookmarksResult, ChatBookmarksEventSchema, type ChatBookmarksEvent, ChatRemoveVisualPayloadSchema, type ChatRemoveVisualPayload, ChatVisualsResultSchema, type ChatVisualsResult, ChatVisualsEventSchema, type ChatVisualsEvent, ChatSuggestionEventSchema, type ChatSuggestionEvent, ChatAttachResultSchema, type ChatAttachResult, ChatDeliverySchema, type ChatDelivery, ChatSendPayloadSchema, type ChatSendPayload, ChatSendResultSchema, type ChatSendResult, ChatUiChoicePayloadSchema, type ChatUiChoicePayload, ChatUiQueryPayloadSchema, type ChatUiQueryPayload, ChatUiLinkPayloadSchema, type ChatUiLinkPayload, ChatUiDiffPayloadSchema, type ChatUiDiffPayload, ChatQueuePayloadSchema, type ChatQueuePayload, ChatUnqueueResultSchema, type ChatUnqueueResult, ChatApprovePayloadSchema, type ChatApprovePayload, ChatDismissPayloadSchema, type ChatDismissPayload, ChatAnswerPayloadSchema, type ChatAnswerPayload, ChatTurnDiffPayloadSchema, type ChatTurnDiffPayload, ChatTurnDiffResultSchema, type ChatTurnDiffResult, ChatToolOutputPayloadSchema, type ChatToolOutputPayload, ChatToolOutputResultSchema, type ChatToolOutputResult, CHAT_FORK_TITLE_MAX, ChatForkPayloadSchema, type ChatForkPayload, ChatForkResultSchema, type ChatForkResult, ChatContinueOnPayloadSchema, type ChatContinueOnPayload, ChatContinueOnResultSchema, type ChatContinueOnResult, ChatSummarizePayloadSchema, type ChatSummarizePayload, ChatSummarizeResultSchema, type ChatSummarizeResult, ChatForkInfoPayloadSchema, type ChatForkInfoPayload, ChatForkInfoResultSchema, type ChatForkInfoResult, ChatListPayloadSchema, type ChatListPayload, ChatListResultSchema, type ChatListResult, GeneratedImageInputSchema, type GeneratedImageInput, generatedImageAttachment, holdsConversation, chatActivity, type ChatActivity } from './chat.ts';
|
|
3
3
|
export { ErrorSchema, type WireError, RequestSchema, type Request, ReplyOkSchema, type ReplyOk, ReplyErrorSchema, type ReplyError, ReplySchema, type Reply, EventSchema, type Event, ServerFrameSchema, type ServerFrame, type ParseResult, parseRequest, parseServerFrame } from './envelope.ts';
|
|
4
4
|
export { SessionIdSchema, type SessionId } from './ids.ts';
|
|
5
5
|
export { ModelOptionChoiceSchema, type ModelOptionChoice, ModelOptionDescriptorSchema, type ModelOptionDescriptor, ModelInfoSchema, type ModelInfo, ModelSelectionSchema, type ModelSelection, ModelCatalogProfileSchema, type ModelCatalogProfile, ModelCatalogEntrySchema, type ModelCatalogEntry, ModelCatalogDataSchema, type ModelCatalogData, RuntimeModeSchema, type RuntimeMode, ProviderCapabilitiesSchema, type ProviderCapabilities, ProviderPlatformSchema, type ProviderPlatform, ProviderSignInSchema, type ProviderSignIn, ProviderInstallSchema, type ProviderInstall, ProviderInfoSchema, type ProviderInfo, FRONTIER_PROVIDER_KINDS, API_PROVIDER_KINDS, type ProviderPickerGroup, type ProviderPickerGroups, providerGroupOf, pickerGroupsOf, inPickerOrder, separatesGroups, ProviderListResultSchema, type ProviderListResult, resumeCommandFor } from './model.ts';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Public API: exports.test.ts snapshots this list, so a name added or dropped here is an API change.
|
|
2
2
|
export { AGENT_KIND_MAX_LENGTH, AgentKindSchema, AgentStatusSchema, SUGGESTED_TITLE_LIMIT, SuggestedTitleSchema, AgentRequestSchema, AgentInfoSchema, SessionStatusEventSchema, AgentResumePayloadSchema, ApprovalChoiceSchema, ApprovalRequestSchema, SessionApprovalsEventSchema, ApprovalAnswerPayloadSchema, ApprovalAnswerResultSchema, ApprovalPreferencePayloadSchema } from './agent.js';
|
|
3
|
-
export { ChatIdSchema, ChatContextBreakdownSchema, ChatUsageSchema, CHAT_ATTACHMENTS_MAX_BYTES, CHAT_ATTACHMENT_MAX_BYTES, CHAT_ATTACHMENTS_MAX_COUNT, attachmentBytes, attachmentImageMime, ChatAttachmentUploadSchema, ChatAttachmentUploadsSchema, ChatAttachmentSchema, ChatUiChoiceOriginSchema, ChatUiAnswerSchema, ChatQuoteSourceSchema, ChatQueuedMessageSchema, ChatBackgroundTaskSchema, scheduledWakeupId, scheduledWakeupAt, ChatTurnLimitSchema, ChatGoalStatusSchema, ChatGoalSchema, ChatQuestionSchema, ChatRequestKindSchema, CHAT_REQUEST_LIMITS, ChatRequestApprovalSchema, ChatRequestSummarySchema, ChatInfoSchema, ChatSkillSourceSchema, ChatSkillSchema, SkillsListPayloadSchema, SkillsListResultSchema, ChatUserItemSchema, ChatUiQueryReadingSchema, ChatUiLinkReadingSchema, ChatUiPlaceReadingSchema, ChatUiQueryStateSchema, ChatAssistantItemSchema, ChatThinkingItemSchema, ChatToolStateSchema, ChatToolProgressSchema, ChatFileChangeSchema, ChatSubagentStatusSchema, ChatWorkflowPhaseSchema, ChatWorkflowAgentSchema, ChatWorkflowSchema, workflowAgentRef, workflowAgentIdOf, CHAT_PAYLOAD_INLINE_BYTES, ChatPayloadRefSchema, ChatToolItemSchema, ChatSubagentUsageSchema, HOST_TASK_ORIGIN, taskRowId, taskIdOfRow, ChatSubagentItemSchema, ChatApprovalDecisionSchema, ChatApprovalItemSchema, ChatQuestionItemSchema, ChatCheckpointFileSchema, ChatCheckpointDiffSchema, ChatTurnItemSchema, notResumedNote, abortedByMachine, ENDED_NOTE_PREFIX, abortedByEnd, activeSubagents, activeWorkflows, workflowEndedAt, CHAT_OUTLINE_TEXT_CHARS, outlineItems, WAITING_NOTE_PREFIX, ChatNoteItemSchema, ChatNoteMessageSchema, ChatCompactionItemSchema, ChatSecretItemSchema, ChatItemSchema, ChatEventSchema, ChatEventEnvelopeSchema, ChatCreatePayloadSchema, ChatConfigurePayloadSchema, ChatPreferencesPayloadSchema, ChatTargetPayloadSchema, ChatClearPayloadSchema, ChatCancelPayloadSchema, ChatAttachPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryPageSchema, ChatHistoryResultSchema, ChatSubagentPayloadSchema, ChatStopSubagentPayloadSchema, ChatGoalActionSchema, ChatGoalPayloadSchema, ChatStopTaskPayloadSchema, ChatSubagentPageSchema, ChatSubagentSourceSchema, ChatSubagentResultSchema, ChatStatusEventSchema, ChatSubagentChangedEventSchema, CHAT_BOOKMARK_LIMITS, ChatBookmarkSchema, ChatBookmarksSchema, ChatAddBookmarkPayloadSchema, ChatRenameBookmarkPayloadSchema, ChatRemoveBookmarkPayloadSchema, ChatBookmarksResultSchema, ChatBookmarksEventSchema, ChatRemoveVisualPayloadSchema, ChatVisualsResultSchema, ChatVisualsEventSchema, ChatSuggestionEventSchema, ChatAttachResultSchema, ChatDeliverySchema, ChatSendPayloadSchema, ChatSendResultSchema, ChatUiChoicePayloadSchema, ChatUiQueryPayloadSchema, ChatUiLinkPayloadSchema, ChatQueuePayloadSchema, ChatUnqueueResultSchema, ChatApprovePayloadSchema, ChatDismissPayloadSchema, ChatAnswerPayloadSchema, ChatTurnDiffPayloadSchema, ChatTurnDiffResultSchema, ChatToolOutputPayloadSchema, ChatToolOutputResultSchema, CHAT_FORK_TITLE_MAX, ChatForkPayloadSchema, ChatForkResultSchema, ChatContinueOnPayloadSchema, ChatContinueOnResultSchema, ChatSummarizePayloadSchema, ChatSummarizeResultSchema, ChatForkInfoPayloadSchema, ChatForkInfoResultSchema, ChatListPayloadSchema, ChatListResultSchema, GeneratedImageInputSchema, generatedImageAttachment, holdsConversation, chatActivity } from './chat.js';
|
|
3
|
+
export { ChatIdSchema, ChatContextBreakdownSchema, ChatUsageSchema, CHAT_ATTACHMENTS_MAX_BYTES, CHAT_ATTACHMENT_MAX_BYTES, CHAT_ATTACHMENTS_MAX_COUNT, attachmentBytes, attachmentImageMime, ChatAttachmentUploadSchema, ChatAttachmentUploadsSchema, ChatAttachmentSchema, ChatUiChoiceOriginSchema, ChatUiAnswerSchema, ChatQuoteSourceSchema, ChatQueuedMessageSchema, ChatBackgroundTaskSchema, scheduledWakeupId, scheduledWakeupAt, ChatTurnLimitSchema, ChatGoalStatusSchema, ChatGoalSchema, ChatQuestionSchema, ChatRequestKindSchema, CHAT_REQUEST_LIMITS, ChatRequestApprovalSchema, ChatRequestSummarySchema, ChatInfoSchema, ChatSkillSourceSchema, ChatSkillSchema, SkillsListPayloadSchema, SkillsListResultSchema, ChatUserItemSchema, ChatUiQueryReadingSchema, ChatUiLinkReadingSchema, ChatUiDiffReadingSchema, ChatUiPlaceReadingSchema, ChatUiQueryStateSchema, ChatAssistantItemSchema, ChatThinkingItemSchema, ChatToolStateSchema, ChatToolProgressSchema, ChatFileChangeSchema, ChatSubagentStatusSchema, ChatWorkflowPhaseSchema, ChatWorkflowAgentSchema, ChatWorkflowSchema, workflowAgentRef, workflowAgentIdOf, CHAT_PAYLOAD_INLINE_BYTES, ChatPayloadRefSchema, ChatToolItemSchema, ChatSubagentUsageSchema, HOST_TASK_ORIGIN, taskRowId, taskIdOfRow, ChatSubagentItemSchema, ChatApprovalDecisionSchema, ChatApprovalItemSchema, ChatQuestionItemSchema, ChatCheckpointFileSchema, ChatCheckpointDiffSchema, ChatTurnItemSchema, notResumedNote, abortedByMachine, ENDED_NOTE_PREFIX, abortedByEnd, activeSubagents, activeWorkflows, workflowEndedAt, CHAT_OUTLINE_TEXT_CHARS, outlineItems, WAITING_NOTE_PREFIX, ChatNoteItemSchema, ChatNoteMessageSchema, ChatCompactionItemSchema, ChatSecretItemSchema, ChatItemSchema, ChatEventSchema, ChatEventEnvelopeSchema, ChatCreatePayloadSchema, ChatConfigurePayloadSchema, ChatPreferencesPayloadSchema, ChatTargetPayloadSchema, ChatClearPayloadSchema, ChatCancelPayloadSchema, ChatAttachPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryPageSchema, ChatHistoryResultSchema, ChatSubagentPayloadSchema, ChatStopSubagentPayloadSchema, ChatGoalActionSchema, ChatGoalPayloadSchema, ChatStopTaskPayloadSchema, ChatSubagentPageSchema, ChatSubagentSourceSchema, ChatSubagentResultSchema, ChatStatusEventSchema, ChatSubagentChangedEventSchema, CHAT_BOOKMARK_LIMITS, ChatBookmarkSchema, ChatBookmarksSchema, ChatAddBookmarkPayloadSchema, ChatRenameBookmarkPayloadSchema, ChatRemoveBookmarkPayloadSchema, ChatBookmarksResultSchema, ChatBookmarksEventSchema, ChatRemoveVisualPayloadSchema, ChatVisualsResultSchema, ChatVisualsEventSchema, ChatSuggestionEventSchema, ChatAttachResultSchema, ChatDeliverySchema, ChatSendPayloadSchema, ChatSendResultSchema, ChatUiChoicePayloadSchema, ChatUiQueryPayloadSchema, ChatUiLinkPayloadSchema, ChatUiDiffPayloadSchema, ChatQueuePayloadSchema, ChatUnqueueResultSchema, ChatApprovePayloadSchema, ChatDismissPayloadSchema, ChatAnswerPayloadSchema, ChatTurnDiffPayloadSchema, ChatTurnDiffResultSchema, ChatToolOutputPayloadSchema, ChatToolOutputResultSchema, CHAT_FORK_TITLE_MAX, ChatForkPayloadSchema, ChatForkResultSchema, ChatContinueOnPayloadSchema, ChatContinueOnResultSchema, ChatSummarizePayloadSchema, ChatSummarizeResultSchema, ChatForkInfoPayloadSchema, ChatForkInfoResultSchema, ChatListPayloadSchema, ChatListResultSchema, GeneratedImageInputSchema, generatedImageAttachment, holdsConversation, chatActivity } from './chat.js';
|
|
4
4
|
export { ErrorSchema, RequestSchema, ReplyOkSchema, ReplyErrorSchema, ReplySchema, EventSchema, ServerFrameSchema, parseRequest, parseServerFrame } from './envelope.js';
|
|
5
5
|
export { SessionIdSchema } from './ids.js';
|
|
6
6
|
export { ModelOptionChoiceSchema, ModelOptionDescriptorSchema, ModelInfoSchema, ModelSelectionSchema, ModelCatalogProfileSchema, ModelCatalogEntrySchema, ModelCatalogDataSchema, RuntimeModeSchema, ProviderCapabilitiesSchema, ProviderPlatformSchema, ProviderSignInSchema, ProviderInstallSchema, ProviderInfoSchema, FRONTIER_PROVIDER_KINDS, API_PROVIDER_KINDS, providerGroupOf, pickerGroupsOf, inPickerOrder, separatesGroups, ProviderListResultSchema, resumeCommandFor } from './model.js';
|
package/dist/protocol.d.ts
CHANGED
|
@@ -264,6 +264,8 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
264
264
|
start: z.ZodNumber;
|
|
265
265
|
end: z.ZodNumber;
|
|
266
266
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
267
|
+
component: z.ZodOptional<z.ZodString>;
|
|
268
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
267
269
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
268
270
|
}, z.core.$strip>>;
|
|
269
271
|
fallback: z.ZodString;
|
|
@@ -327,6 +329,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
327
329
|
detail: z.ZodOptional<z.ZodString>;
|
|
328
330
|
code: z.ZodOptional<z.ZodString>;
|
|
329
331
|
reason: z.ZodOptional<z.ZodString>;
|
|
332
|
+
status: z.ZodOptional<z.ZodString>;
|
|
330
333
|
}, z.core.$strip>>>;
|
|
331
334
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
332
335
|
state: z.ZodEnum<{
|
|
@@ -879,6 +882,8 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
879
882
|
start: z.ZodNumber;
|
|
880
883
|
end: z.ZodNumber;
|
|
881
884
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
885
|
+
component: z.ZodOptional<z.ZodString>;
|
|
886
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
882
887
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
883
888
|
}, z.core.$strip>>;
|
|
884
889
|
fallback: z.ZodString;
|
|
@@ -942,6 +947,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
942
947
|
detail: z.ZodOptional<z.ZodString>;
|
|
943
948
|
code: z.ZodOptional<z.ZodString>;
|
|
944
949
|
reason: z.ZodOptional<z.ZodString>;
|
|
950
|
+
status: z.ZodOptional<z.ZodString>;
|
|
945
951
|
}, z.core.$strip>>>;
|
|
946
952
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
947
953
|
state: z.ZodEnum<{
|
|
@@ -1302,6 +1308,8 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1302
1308
|
start: z.ZodNumber;
|
|
1303
1309
|
end: z.ZodNumber;
|
|
1304
1310
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
1311
|
+
component: z.ZodOptional<z.ZodString>;
|
|
1312
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
1305
1313
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
1306
1314
|
}, z.core.$strip>>;
|
|
1307
1315
|
fallback: z.ZodString;
|
|
@@ -1365,6 +1373,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1365
1373
|
detail: z.ZodOptional<z.ZodString>;
|
|
1366
1374
|
code: z.ZodOptional<z.ZodString>;
|
|
1367
1375
|
reason: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1368
1377
|
}, z.core.$strip>>>;
|
|
1369
1378
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1370
1379
|
state: z.ZodEnum<{
|
|
@@ -1724,6 +1733,8 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1724
1733
|
start: z.ZodNumber;
|
|
1725
1734
|
end: z.ZodNumber;
|
|
1726
1735
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
component: z.ZodOptional<z.ZodString>;
|
|
1737
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
1727
1738
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
1728
1739
|
}, z.core.$strip>>;
|
|
1729
1740
|
fallback: z.ZodString;
|
|
@@ -1787,6 +1798,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
1787
1798
|
detail: z.ZodOptional<z.ZodString>;
|
|
1788
1799
|
code: z.ZodOptional<z.ZodString>;
|
|
1789
1800
|
reason: z.ZodOptional<z.ZodString>;
|
|
1801
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1790
1802
|
}, z.core.$strip>>>;
|
|
1791
1803
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1792
1804
|
state: z.ZodEnum<{
|
|
@@ -2110,6 +2122,8 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2110
2122
|
start: z.ZodNumber;
|
|
2111
2123
|
end: z.ZodNumber;
|
|
2112
2124
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
2125
|
+
component: z.ZodOptional<z.ZodString>;
|
|
2126
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
2113
2127
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
2114
2128
|
}, z.core.$strip>>;
|
|
2115
2129
|
fallback: z.ZodString;
|
|
@@ -2160,6 +2174,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2160
2174
|
detail: z.ZodOptional<z.ZodString>;
|
|
2161
2175
|
code: z.ZodOptional<z.ZodString>;
|
|
2162
2176
|
reason: z.ZodOptional<z.ZodString>;
|
|
2177
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2163
2178
|
}, z.core.$strip>>>;
|
|
2164
2179
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2165
2180
|
state: z.ZodEnum<{
|
|
@@ -2584,6 +2599,8 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2584
2599
|
start: z.ZodNumber;
|
|
2585
2600
|
end: z.ZodNumber;
|
|
2586
2601
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
2602
|
+
component: z.ZodOptional<z.ZodString>;
|
|
2603
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
2587
2604
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
2588
2605
|
}, z.core.$strip>>;
|
|
2589
2606
|
fallback: z.ZodString;
|
|
@@ -2647,6 +2664,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
2647
2664
|
detail: z.ZodOptional<z.ZodString>;
|
|
2648
2665
|
code: z.ZodOptional<z.ZodString>;
|
|
2649
2666
|
reason: z.ZodOptional<z.ZodString>;
|
|
2667
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2650
2668
|
}, z.core.$strip>>>;
|
|
2651
2669
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2652
2670
|
state: z.ZodEnum<{
|
|
@@ -3126,6 +3144,8 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
3126
3144
|
start: z.ZodNumber;
|
|
3127
3145
|
end: z.ZodNumber;
|
|
3128
3146
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
3147
|
+
component: z.ZodOptional<z.ZodString>;
|
|
3148
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
3129
3149
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
3130
3150
|
}, z.core.$strip>>;
|
|
3131
3151
|
fallback: z.ZodString;
|
|
@@ -3189,6 +3209,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
3189
3209
|
detail: z.ZodOptional<z.ZodString>;
|
|
3190
3210
|
code: z.ZodOptional<z.ZodString>;
|
|
3191
3211
|
reason: z.ZodOptional<z.ZodString>;
|
|
3212
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3192
3213
|
}, z.core.$strip>>>;
|
|
3193
3214
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3194
3215
|
state: z.ZodEnum<{
|
|
@@ -3564,6 +3585,28 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
3564
3585
|
detail: z.ZodOptional<z.ZodString>;
|
|
3565
3586
|
code: z.ZodOptional<z.ZodString>;
|
|
3566
3587
|
reason: z.ZodOptional<z.ZodString>;
|
|
3588
|
+
status: z.ZodOptional<z.ZodString>;
|
|
3589
|
+
}, z.core.$strip>;
|
|
3590
|
+
};
|
|
3591
|
+
readonly 'ui.diff': {
|
|
3592
|
+
readonly payload: z.ZodObject<{
|
|
3593
|
+
chatId: z.ZodString;
|
|
3594
|
+
itemId: z.ZodString;
|
|
3595
|
+
blockId: z.ZodString;
|
|
3596
|
+
revision: z.ZodString;
|
|
3597
|
+
reads: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3598
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3599
|
+
nodeId: z.ZodString;
|
|
3600
|
+
}, z.core.$strip>;
|
|
3601
|
+
readonly result: z.ZodObject<{
|
|
3602
|
+
state: z.ZodEnum<{
|
|
3603
|
+
patch: "patch";
|
|
3604
|
+
refused: "refused";
|
|
3605
|
+
}>;
|
|
3606
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
3607
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
3608
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3609
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3567
3610
|
}, z.core.$strip>;
|
|
3568
3611
|
};
|
|
3569
3612
|
readonly 'ui.query': {
|
|
@@ -4437,6 +4480,8 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
4437
4480
|
start: z.ZodNumber;
|
|
4438
4481
|
end: z.ZodNumber;
|
|
4439
4482
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
4483
|
+
component: z.ZodOptional<z.ZodString>;
|
|
4484
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
4440
4485
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
4441
4486
|
}, z.core.$strip>>;
|
|
4442
4487
|
fallback: z.ZodString;
|
|
@@ -4500,6 +4545,7 @@ export declare const AGENT_REQUEST_SCHEMAS: {
|
|
|
4500
4545
|
detail: z.ZodOptional<z.ZodString>;
|
|
4501
4546
|
code: z.ZodOptional<z.ZodString>;
|
|
4502
4547
|
reason: z.ZodOptional<z.ZodString>;
|
|
4548
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4503
4549
|
}, z.core.$strip>>>;
|
|
4504
4550
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4505
4551
|
state: z.ZodEnum<{
|
|
@@ -5892,6 +5938,8 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
5892
5938
|
start: z.ZodNumber;
|
|
5893
5939
|
end: z.ZodNumber;
|
|
5894
5940
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
5941
|
+
component: z.ZodOptional<z.ZodString>;
|
|
5942
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
5895
5943
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
5896
5944
|
}, z.core.$strip>>;
|
|
5897
5945
|
fallback: z.ZodString;
|
|
@@ -5955,6 +6003,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
5955
6003
|
detail: z.ZodOptional<z.ZodString>;
|
|
5956
6004
|
code: z.ZodOptional<z.ZodString>;
|
|
5957
6005
|
reason: z.ZodOptional<z.ZodString>;
|
|
6006
|
+
status: z.ZodOptional<z.ZodString>;
|
|
5958
6007
|
}, z.core.$strip>>>;
|
|
5959
6008
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5960
6009
|
state: z.ZodEnum<{
|
|
@@ -6278,6 +6327,8 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
6278
6327
|
start: z.ZodNumber;
|
|
6279
6328
|
end: z.ZodNumber;
|
|
6280
6329
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
6330
|
+
component: z.ZodOptional<z.ZodString>;
|
|
6331
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
6281
6332
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
6282
6333
|
}, z.core.$strip>>;
|
|
6283
6334
|
fallback: z.ZodString;
|
|
@@ -6328,6 +6379,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
6328
6379
|
detail: z.ZodOptional<z.ZodString>;
|
|
6329
6380
|
code: z.ZodOptional<z.ZodString>;
|
|
6330
6381
|
reason: z.ZodOptional<z.ZodString>;
|
|
6382
|
+
status: z.ZodOptional<z.ZodString>;
|
|
6331
6383
|
}, z.core.$strip>>>;
|
|
6332
6384
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6333
6385
|
state: z.ZodEnum<{
|
|
@@ -6752,6 +6804,8 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
6752
6804
|
start: z.ZodNumber;
|
|
6753
6805
|
end: z.ZodNumber;
|
|
6754
6806
|
nodeId: z.ZodOptional<z.ZodString>;
|
|
6807
|
+
component: z.ZodOptional<z.ZodString>;
|
|
6808
|
+
prop: z.ZodOptional<z.ZodString>;
|
|
6755
6809
|
severity: z.ZodOptional<z.ZodLiteral<"warning">>;
|
|
6756
6810
|
}, z.core.$strip>>;
|
|
6757
6811
|
fallback: z.ZodString;
|
|
@@ -6815,6 +6869,7 @@ export declare const AGENT_EVENT_SCHEMAS: {
|
|
|
6815
6869
|
detail: z.ZodOptional<z.ZodString>;
|
|
6816
6870
|
code: z.ZodOptional<z.ZodString>;
|
|
6817
6871
|
reason: z.ZodOptional<z.ZodString>;
|
|
6872
|
+
status: z.ZodOptional<z.ZodString>;
|
|
6818
6873
|
}, z.core.$strip>>>;
|
|
6819
6874
|
places: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6820
6875
|
state: z.ZodEnum<{
|
package/dist/protocol.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ChatAddBookmarkPayloadSchema, ChatAnswerPayloadSchema, ChatApprovePayloadSchema, ChatAttachPayloadSchema, ChatAttachResultSchema, ChatBookmarksEventSchema, ChatBookmarksResultSchema, ChatCancelPayloadSchema, ChatClearPayloadSchema, ChatConfigurePayloadSchema, ChatContinueOnPayloadSchema, ChatContinueOnResultSchema, ChatCreatePayloadSchema, ChatDismissPayloadSchema, ChatEventEnvelopeSchema, ChatForkInfoPayloadSchema, ChatForkInfoResultSchema, ChatForkPayloadSchema, ChatForkResultSchema, ChatGoalPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryResultSchema, ChatInfoSchema, ChatListPayloadSchema, ChatListResultSchema, ChatPreferencesPayloadSchema, ChatQueuePayloadSchema, ChatRemoveBookmarkPayloadSchema, ChatRemoveVisualPayloadSchema, ChatRenameBookmarkPayloadSchema, ChatSendPayloadSchema, ChatSendResultSchema, ChatUiChoicePayloadSchema, ChatUiLinkPayloadSchema, ChatUiLinkReadingSchema, ChatUiQueryPayloadSchema, ChatUiQueryReadingSchema, ChatStatusEventSchema, ChatStopSubagentPayloadSchema, ChatStopTaskPayloadSchema, ChatSubagentChangedEventSchema, ChatSubagentPayloadSchema, ChatSubagentResultSchema, ChatSummarizePayloadSchema, ChatSummarizeResultSchema, ChatTargetPayloadSchema, ChatTurnDiffPayloadSchema, ChatTurnDiffResultSchema, ChatToolOutputPayloadSchema, ChatToolOutputResultSchema, ChatUnqueueResultSchema, ChatSuggestionEventSchema, ChatVisualsEventSchema, ChatVisualsResultSchema, SkillsListPayloadSchema, SkillsListResultSchema } from './chat.js';
|
|
2
|
+
import { ChatAddBookmarkPayloadSchema, ChatAnswerPayloadSchema, ChatApprovePayloadSchema, ChatAttachPayloadSchema, ChatAttachResultSchema, ChatBookmarksEventSchema, ChatBookmarksResultSchema, ChatCancelPayloadSchema, ChatClearPayloadSchema, ChatConfigurePayloadSchema, ChatContinueOnPayloadSchema, ChatContinueOnResultSchema, ChatCreatePayloadSchema, ChatDismissPayloadSchema, ChatEventEnvelopeSchema, ChatForkInfoPayloadSchema, ChatForkInfoResultSchema, ChatForkPayloadSchema, ChatForkResultSchema, ChatGoalPayloadSchema, ChatHistoryPayloadSchema, ChatHistoryResultSchema, ChatInfoSchema, ChatListPayloadSchema, ChatListResultSchema, ChatPreferencesPayloadSchema, ChatQueuePayloadSchema, ChatRemoveBookmarkPayloadSchema, ChatRemoveVisualPayloadSchema, ChatRenameBookmarkPayloadSchema, ChatSendPayloadSchema, ChatSendResultSchema, ChatUiChoicePayloadSchema, ChatUiDiffPayloadSchema, ChatUiDiffReadingSchema, ChatUiLinkPayloadSchema, ChatUiLinkReadingSchema, ChatUiQueryPayloadSchema, ChatUiQueryReadingSchema, ChatStatusEventSchema, ChatStopSubagentPayloadSchema, ChatStopTaskPayloadSchema, ChatSubagentChangedEventSchema, ChatSubagentPayloadSchema, ChatSubagentResultSchema, ChatSummarizePayloadSchema, ChatSummarizeResultSchema, ChatTargetPayloadSchema, ChatTurnDiffPayloadSchema, ChatTurnDiffResultSchema, ChatToolOutputPayloadSchema, ChatToolOutputResultSchema, ChatUnqueueResultSchema, ChatSuggestionEventSchema, ChatVisualsEventSchema, ChatVisualsResultSchema, SkillsListPayloadSchema, SkillsListResultSchema } from './chat.js';
|
|
3
3
|
import { ProviderListResultSchema } from './model.js';
|
|
4
4
|
import { ProviderAccountCreatePayloadSchema, ProviderAccountCreateResultSchema, ProviderAccountWatchLoginPayloadSchema, ProviderAccountsReorderPayloadSchema, ProviderAccountsSavePayloadSchema, ProviderAccountsSchema, ProviderAccountsShareConfigPayloadSchema } from './provider-accounts.js';
|
|
5
5
|
import { UsageChangedEventSchema, UsageLimitsSnapshotSchema, UsageSummaryPayloadSchema, UsageSummaryResultSchema } from './usage.js';
|
|
@@ -17,6 +17,7 @@ export const AGENT_REQUEST_SCHEMAS = {
|
|
|
17
17
|
'chat.send': { payload: ChatSendPayloadSchema, result: ChatSendResultSchema },
|
|
18
18
|
'chat.uiChoice': { payload: ChatUiChoicePayloadSchema, result: ChatSendResultSchema },
|
|
19
19
|
'ui.link': { payload: ChatUiLinkPayloadSchema, result: ChatUiLinkReadingSchema },
|
|
20
|
+
'ui.diff': { payload: ChatUiDiffPayloadSchema, result: ChatUiDiffReadingSchema },
|
|
20
21
|
'ui.query': { payload: ChatUiQueryPayloadSchema, result: ChatUiQueryReadingSchema },
|
|
21
22
|
'chat.unqueue': { payload: ChatQueuePayloadSchema, result: ChatUnqueueResultSchema },
|
|
22
23
|
'chat.sendNow': { payload: ChatQueuePayloadSchema, result: EmptySchema },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adecore/agent-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"description": "Schemas and port contracts for agent chats, provider accounts, models and usage.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"test": "bun --conditions=source test"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@adecore/intelligent-ui": "0.
|
|
90
|
-
"@adecore/utils": "0.
|
|
89
|
+
"@adecore/intelligent-ui": "0.71.0",
|
|
90
|
+
"@adecore/utils": "0.71.0",
|
|
91
91
|
"zod": "^4.6.7"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
package/src/chat.ts
CHANGED
|
@@ -440,6 +440,19 @@ export type ChatUiQueryReading = z.infer<typeof ChatUiQueryReadingSchema>;
|
|
|
440
440
|
export const ChatUiLinkReadingSchema = UiLinkResolutionSchema;
|
|
441
441
|
export type ChatUiLinkReading = z.infer<typeof ChatUiLinkReadingSchema>;
|
|
442
442
|
|
|
443
|
+
// `state` is a frozen set, like a link's: native clients validate these payloads whole.
|
|
444
|
+
export const ChatUiDiffReadingSchema = z.object({
|
|
445
|
+
state: z.enum(['patch', 'refused']),
|
|
446
|
+
// The change as a unified patch of the one file, read by the host from git.
|
|
447
|
+
patch: z.string().optional(),
|
|
448
|
+
// Set where the host cut the patch short, so a client offers the whole change elsewhere.
|
|
449
|
+
truncated: z.boolean().optional(),
|
|
450
|
+
// A code that names the reason across versions; open, so a new one fails nobody.
|
|
451
|
+
code: z.string().optional(),
|
|
452
|
+
reason: z.string().optional()
|
|
453
|
+
});
|
|
454
|
+
export type ChatUiDiffReading = z.infer<typeof ChatUiDiffReadingSchema>;
|
|
455
|
+
|
|
443
456
|
// `state` is a frozen set, like a link's: native clients validate these payloads whole.
|
|
444
457
|
export const ChatUiPlaceReadingSchema = z.object({
|
|
445
458
|
state: z.enum(['found', 'missing']),
|
|
@@ -1308,6 +1321,10 @@ export type ChatUiQueryPayload = z.infer<typeof ChatUiQueryPayloadSchema>;
|
|
|
1308
1321
|
export const ChatUiLinkPayloadSchema = ChatUiChoicePayloadSchema.omit({ choiceId: true }).extend({ nodeId: z.string().min(1).max(256) });
|
|
1309
1322
|
export type ChatUiLinkPayload = z.infer<typeof ChatUiLinkPayloadSchema>;
|
|
1310
1323
|
|
|
1324
|
+
// Names an open Diff of the stored block as a link names its node: the path and the revisions come from that node, never from the client.
|
|
1325
|
+
export const ChatUiDiffPayloadSchema = ChatUiLinkPayloadSchema.extend({});
|
|
1326
|
+
export type ChatUiDiffPayload = z.infer<typeof ChatUiDiffPayloadSchema>;
|
|
1327
|
+
|
|
1311
1328
|
export const ChatQueuePayloadSchema = z.object({
|
|
1312
1329
|
chatId: ChatIdSchema,
|
|
1313
1330
|
messageId: z.string().min(1)
|
package/src/index.ts
CHANGED
|
@@ -87,6 +87,8 @@ export {
|
|
|
87
87
|
type ChatUiQueryReading,
|
|
88
88
|
ChatUiLinkReadingSchema,
|
|
89
89
|
type ChatUiLinkReading,
|
|
90
|
+
ChatUiDiffReadingSchema,
|
|
91
|
+
type ChatUiDiffReading,
|
|
90
92
|
ChatUiPlaceReadingSchema,
|
|
91
93
|
type ChatUiPlaceReading,
|
|
92
94
|
ChatUiQueryStateSchema,
|
|
@@ -234,6 +236,8 @@ export {
|
|
|
234
236
|
type ChatUiQueryPayload,
|
|
235
237
|
ChatUiLinkPayloadSchema,
|
|
236
238
|
type ChatUiLinkPayload,
|
|
239
|
+
ChatUiDiffPayloadSchema,
|
|
240
|
+
type ChatUiDiffPayload,
|
|
237
241
|
ChatQueuePayloadSchema,
|
|
238
242
|
type ChatQueuePayload,
|
|
239
243
|
ChatUnqueueResultSchema,
|
package/src/protocol.ts
CHANGED
|
@@ -33,6 +33,8 @@ import {
|
|
|
33
33
|
ChatSendPayloadSchema,
|
|
34
34
|
ChatSendResultSchema,
|
|
35
35
|
ChatUiChoicePayloadSchema,
|
|
36
|
+
ChatUiDiffPayloadSchema,
|
|
37
|
+
ChatUiDiffReadingSchema,
|
|
36
38
|
ChatUiLinkPayloadSchema,
|
|
37
39
|
ChatUiLinkReadingSchema,
|
|
38
40
|
ChatUiQueryPayloadSchema,
|
|
@@ -84,6 +86,7 @@ export const AGENT_REQUEST_SCHEMAS = {
|
|
|
84
86
|
'chat.send': { payload: ChatSendPayloadSchema, result: ChatSendResultSchema },
|
|
85
87
|
'chat.uiChoice': { payload: ChatUiChoicePayloadSchema, result: ChatSendResultSchema },
|
|
86
88
|
'ui.link': { payload: ChatUiLinkPayloadSchema, result: ChatUiLinkReadingSchema },
|
|
89
|
+
'ui.diff': { payload: ChatUiDiffPayloadSchema, result: ChatUiDiffReadingSchema },
|
|
87
90
|
'ui.query': { payload: ChatUiQueryPayloadSchema, result: ChatUiQueryReadingSchema },
|
|
88
91
|
'chat.unqueue': { payload: ChatQueuePayloadSchema, result: ChatUnqueueResultSchema },
|
|
89
92
|
'chat.sendNow': { payload: ChatQueuePayloadSchema, result: EmptySchema },
|