@goodtiming/baton-sdk 1.1.1 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +1453 -957
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +102 -1
- package/dist/index.d.ts +102 -1
- package/dist/index.js +1453 -957
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const SDK_VERSION = "ts-1.
|
|
3
|
+
declare const SDK_VERSION = "ts-1.2.1";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Zod schemas + TS types for the Baton event stream per SPEC §11.4.
|
|
@@ -132,6 +132,8 @@ declare const CaptureObservedSchema: z.ZodObject<{
|
|
|
132
132
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
133
133
|
audience: z.ZodOptional<z.ZodString>;
|
|
134
134
|
overlay: z.ZodOptional<z.ZodString>;
|
|
135
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
136
|
+
task: z.ZodOptional<z.ZodString>;
|
|
135
137
|
}, z.core.$strict>;
|
|
136
138
|
type CaptureObserved = z.infer<typeof CaptureObservedSchema>;
|
|
137
139
|
declare const EventTypeSchema: z.ZodEnum<{
|
|
@@ -330,6 +332,8 @@ declare const ToolCallStartEventSchema: z.ZodObject<{
|
|
|
330
332
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
331
333
|
audience: z.ZodOptional<z.ZodString>;
|
|
332
334
|
overlay: z.ZodOptional<z.ZodString>;
|
|
335
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
336
|
+
task: z.ZodOptional<z.ZodString>;
|
|
333
337
|
}, z.core.$strict>>>;
|
|
334
338
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
335
339
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -381,6 +385,8 @@ declare const ToolCallEndEventSchema: z.ZodObject<{
|
|
|
381
385
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
382
386
|
audience: z.ZodOptional<z.ZodString>;
|
|
383
387
|
overlay: z.ZodOptional<z.ZodString>;
|
|
388
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
389
|
+
task: z.ZodOptional<z.ZodString>;
|
|
384
390
|
}, z.core.$strict>>>;
|
|
385
391
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
386
392
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -435,6 +441,8 @@ declare const ToolCallErrorEventSchema: z.ZodObject<{
|
|
|
435
441
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
436
442
|
audience: z.ZodOptional<z.ZodString>;
|
|
437
443
|
overlay: z.ZodOptional<z.ZodString>;
|
|
444
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
445
|
+
task: z.ZodOptional<z.ZodString>;
|
|
438
446
|
}, z.core.$strict>>>;
|
|
439
447
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
440
448
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -489,6 +497,8 @@ declare const AnnotationEventSchema: z.ZodObject<{
|
|
|
489
497
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
490
498
|
audience: z.ZodOptional<z.ZodString>;
|
|
491
499
|
overlay: z.ZodOptional<z.ZodString>;
|
|
500
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
501
|
+
task: z.ZodOptional<z.ZodString>;
|
|
492
502
|
}, z.core.$strict>>>;
|
|
493
503
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
494
504
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -542,6 +552,8 @@ declare const SurfaceSnapshotEventSchema: z.ZodObject<{
|
|
|
542
552
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
543
553
|
audience: z.ZodOptional<z.ZodString>;
|
|
544
554
|
overlay: z.ZodOptional<z.ZodString>;
|
|
555
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
556
|
+
task: z.ZodOptional<z.ZodString>;
|
|
545
557
|
}, z.core.$strict>>>;
|
|
546
558
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
547
559
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -591,6 +603,8 @@ declare const ClientReportEventSchema: z.ZodObject<{
|
|
|
591
603
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
592
604
|
audience: z.ZodOptional<z.ZodString>;
|
|
593
605
|
overlay: z.ZodOptional<z.ZodString>;
|
|
606
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
607
|
+
task: z.ZodOptional<z.ZodString>;
|
|
594
608
|
}, z.core.$strict>>>;
|
|
595
609
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
596
610
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -638,6 +652,8 @@ declare const ResourceListStartEventSchema: z.ZodObject<{
|
|
|
638
652
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
639
653
|
audience: z.ZodOptional<z.ZodString>;
|
|
640
654
|
overlay: z.ZodOptional<z.ZodString>;
|
|
655
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
656
|
+
task: z.ZodOptional<z.ZodString>;
|
|
641
657
|
}, z.core.$strict>>>;
|
|
642
658
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
643
659
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -687,6 +703,8 @@ declare const ResourceListEndEventSchema: z.ZodObject<{
|
|
|
687
703
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
688
704
|
audience: z.ZodOptional<z.ZodString>;
|
|
689
705
|
overlay: z.ZodOptional<z.ZodString>;
|
|
706
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
707
|
+
task: z.ZodOptional<z.ZodString>;
|
|
690
708
|
}, z.core.$strict>>>;
|
|
691
709
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
692
710
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -737,6 +755,8 @@ declare const ResourceListErrorEventSchema: z.ZodObject<{
|
|
|
737
755
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
738
756
|
audience: z.ZodOptional<z.ZodString>;
|
|
739
757
|
overlay: z.ZodOptional<z.ZodString>;
|
|
758
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
759
|
+
task: z.ZodOptional<z.ZodString>;
|
|
740
760
|
}, z.core.$strict>>>;
|
|
741
761
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
742
762
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -786,6 +806,8 @@ declare const ResourceReadStartEventSchema: z.ZodObject<{
|
|
|
786
806
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
787
807
|
audience: z.ZodOptional<z.ZodString>;
|
|
788
808
|
overlay: z.ZodOptional<z.ZodString>;
|
|
809
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
810
|
+
task: z.ZodOptional<z.ZodString>;
|
|
789
811
|
}, z.core.$strict>>>;
|
|
790
812
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
791
813
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -835,6 +857,8 @@ declare const ResourceReadEndEventSchema: z.ZodObject<{
|
|
|
835
857
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
836
858
|
audience: z.ZodOptional<z.ZodString>;
|
|
837
859
|
overlay: z.ZodOptional<z.ZodString>;
|
|
860
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
861
|
+
task: z.ZodOptional<z.ZodString>;
|
|
838
862
|
}, z.core.$strict>>>;
|
|
839
863
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
840
864
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -886,6 +910,8 @@ declare const ResourceReadErrorEventSchema: z.ZodObject<{
|
|
|
886
910
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
887
911
|
audience: z.ZodOptional<z.ZodString>;
|
|
888
912
|
overlay: z.ZodOptional<z.ZodString>;
|
|
913
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
914
|
+
task: z.ZodOptional<z.ZodString>;
|
|
889
915
|
}, z.core.$strict>>>;
|
|
890
916
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
891
917
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -932,6 +958,8 @@ declare const PromptListStartEventSchema: z.ZodObject<{
|
|
|
932
958
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
933
959
|
audience: z.ZodOptional<z.ZodString>;
|
|
934
960
|
overlay: z.ZodOptional<z.ZodString>;
|
|
961
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
962
|
+
task: z.ZodOptional<z.ZodString>;
|
|
935
963
|
}, z.core.$strict>>>;
|
|
936
964
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
937
965
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -981,6 +1009,8 @@ declare const PromptListEndEventSchema: z.ZodObject<{
|
|
|
981
1009
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
982
1010
|
audience: z.ZodOptional<z.ZodString>;
|
|
983
1011
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1012
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1013
|
+
task: z.ZodOptional<z.ZodString>;
|
|
984
1014
|
}, z.core.$strict>>>;
|
|
985
1015
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
986
1016
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1031,6 +1061,8 @@ declare const PromptListErrorEventSchema: z.ZodObject<{
|
|
|
1031
1061
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1032
1062
|
audience: z.ZodOptional<z.ZodString>;
|
|
1033
1063
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1064
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1034
1066
|
}, z.core.$strict>>>;
|
|
1035
1067
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1036
1068
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1080,6 +1112,8 @@ declare const PromptGetStartEventSchema: z.ZodObject<{
|
|
|
1080
1112
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1081
1113
|
audience: z.ZodOptional<z.ZodString>;
|
|
1082
1114
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1115
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1116
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1083
1117
|
}, z.core.$strict>>>;
|
|
1084
1118
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1085
1119
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1129,6 +1163,8 @@ declare const PromptGetEndEventSchema: z.ZodObject<{
|
|
|
1129
1163
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1130
1164
|
audience: z.ZodOptional<z.ZodString>;
|
|
1131
1165
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1166
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1167
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1132
1168
|
}, z.core.$strict>>>;
|
|
1133
1169
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1134
1170
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1180,6 +1216,8 @@ declare const PromptGetErrorEventSchema: z.ZodObject<{
|
|
|
1180
1216
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1181
1217
|
audience: z.ZodOptional<z.ZodString>;
|
|
1182
1218
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1220
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1183
1221
|
}, z.core.$strict>>>;
|
|
1184
1222
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1185
1223
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1226,6 +1264,8 @@ declare const ToolListStartEventSchema: z.ZodObject<{
|
|
|
1226
1264
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1227
1265
|
audience: z.ZodOptional<z.ZodString>;
|
|
1228
1266
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1268
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1229
1269
|
}, z.core.$strict>>>;
|
|
1230
1270
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1231
1271
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1275,6 +1315,8 @@ declare const ToolListEndEventSchema: z.ZodObject<{
|
|
|
1275
1315
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1276
1316
|
audience: z.ZodOptional<z.ZodString>;
|
|
1277
1317
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1318
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1319
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1278
1320
|
}, z.core.$strict>>>;
|
|
1279
1321
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1280
1322
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1325,6 +1367,8 @@ declare const ToolListErrorEventSchema: z.ZodObject<{
|
|
|
1325
1367
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1326
1368
|
audience: z.ZodOptional<z.ZodString>;
|
|
1327
1369
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1370
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1371
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1328
1372
|
}, z.core.$strict>>>;
|
|
1329
1373
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1330
1374
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1381,6 +1425,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1381
1425
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1382
1426
|
audience: z.ZodOptional<z.ZodString>;
|
|
1383
1427
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1429
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1384
1430
|
}, z.core.$strict>>>;
|
|
1385
1431
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1386
1432
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1430,6 +1476,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1430
1476
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1431
1477
|
audience: z.ZodOptional<z.ZodString>;
|
|
1432
1478
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1479
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1480
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1433
1481
|
}, z.core.$strict>>>;
|
|
1434
1482
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1435
1483
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1482,6 +1530,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1482
1530
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1483
1531
|
audience: z.ZodOptional<z.ZodString>;
|
|
1484
1532
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1533
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1534
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1485
1535
|
}, z.core.$strict>>>;
|
|
1486
1536
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1487
1537
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1534,6 +1584,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1534
1584
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1535
1585
|
audience: z.ZodOptional<z.ZodString>;
|
|
1536
1586
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1587
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1588
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1537
1589
|
}, z.core.$strict>>>;
|
|
1538
1590
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1539
1591
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1585,6 +1637,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1585
1637
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1586
1638
|
audience: z.ZodOptional<z.ZodString>;
|
|
1587
1639
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1640
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1641
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1588
1642
|
}, z.core.$strict>>>;
|
|
1589
1643
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1590
1644
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1632,6 +1686,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1632
1686
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1633
1687
|
audience: z.ZodOptional<z.ZodString>;
|
|
1634
1688
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1689
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1690
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1635
1691
|
}, z.core.$strict>>>;
|
|
1636
1692
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1637
1693
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1676,6 +1732,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1676
1732
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1677
1733
|
audience: z.ZodOptional<z.ZodString>;
|
|
1678
1734
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1735
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1736
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1679
1737
|
}, z.core.$strict>>>;
|
|
1680
1738
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1681
1739
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1723,6 +1781,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1723
1781
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1724
1782
|
audience: z.ZodOptional<z.ZodString>;
|
|
1725
1783
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1785
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1726
1786
|
}, z.core.$strict>>>;
|
|
1727
1787
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1728
1788
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1771,6 +1831,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1771
1831
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1772
1832
|
audience: z.ZodOptional<z.ZodString>;
|
|
1773
1833
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1834
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1835
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1774
1836
|
}, z.core.$strict>>>;
|
|
1775
1837
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1776
1838
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1818,6 +1880,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1818
1880
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1819
1881
|
audience: z.ZodOptional<z.ZodString>;
|
|
1820
1882
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1884
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1821
1885
|
}, z.core.$strict>>>;
|
|
1822
1886
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1823
1887
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1865,6 +1929,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1865
1929
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1866
1930
|
audience: z.ZodOptional<z.ZodString>;
|
|
1867
1931
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1932
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1933
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1868
1934
|
}, z.core.$strict>>>;
|
|
1869
1935
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1870
1936
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1914,6 +1980,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1914
1980
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1915
1981
|
audience: z.ZodOptional<z.ZodString>;
|
|
1916
1982
|
overlay: z.ZodOptional<z.ZodString>;
|
|
1983
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
1984
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1917
1985
|
}, z.core.$strict>>>;
|
|
1918
1986
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1919
1987
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -1958,6 +2026,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1958
2026
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
1959
2027
|
audience: z.ZodOptional<z.ZodString>;
|
|
1960
2028
|
overlay: z.ZodOptional<z.ZodString>;
|
|
2029
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
2030
|
+
task: z.ZodOptional<z.ZodString>;
|
|
1961
2031
|
}, z.core.$strict>>>;
|
|
1962
2032
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1963
2033
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2005,6 +2075,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2005
2075
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
2006
2076
|
audience: z.ZodOptional<z.ZodString>;
|
|
2007
2077
|
overlay: z.ZodOptional<z.ZodString>;
|
|
2078
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
2079
|
+
task: z.ZodOptional<z.ZodString>;
|
|
2008
2080
|
}, z.core.$strict>>>;
|
|
2009
2081
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2010
2082
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2053,6 +2125,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2053
2125
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
2054
2126
|
audience: z.ZodOptional<z.ZodString>;
|
|
2055
2127
|
overlay: z.ZodOptional<z.ZodString>;
|
|
2128
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
2129
|
+
task: z.ZodOptional<z.ZodString>;
|
|
2056
2130
|
}, z.core.$strict>>>;
|
|
2057
2131
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2058
2132
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2100,6 +2174,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2100
2174
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
2101
2175
|
audience: z.ZodOptional<z.ZodString>;
|
|
2102
2176
|
overlay: z.ZodOptional<z.ZodString>;
|
|
2177
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
2178
|
+
task: z.ZodOptional<z.ZodString>;
|
|
2103
2179
|
}, z.core.$strict>>>;
|
|
2104
2180
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2105
2181
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2147,6 +2223,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2147
2223
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
2148
2224
|
audience: z.ZodOptional<z.ZodString>;
|
|
2149
2225
|
overlay: z.ZodOptional<z.ZodString>;
|
|
2226
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
2227
|
+
task: z.ZodOptional<z.ZodString>;
|
|
2150
2228
|
}, z.core.$strict>>>;
|
|
2151
2229
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2152
2230
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2196,6 +2274,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2196
2274
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
2197
2275
|
audience: z.ZodOptional<z.ZodString>;
|
|
2198
2276
|
overlay: z.ZodOptional<z.ZodString>;
|
|
2277
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
2278
|
+
task: z.ZodOptional<z.ZodString>;
|
|
2199
2279
|
}, z.core.$strict>>>;
|
|
2200
2280
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2201
2281
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2240,6 +2320,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2240
2320
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
2241
2321
|
audience: z.ZodOptional<z.ZodString>;
|
|
2242
2322
|
overlay: z.ZodOptional<z.ZodString>;
|
|
2323
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
2324
|
+
task: z.ZodOptional<z.ZodString>;
|
|
2243
2325
|
}, z.core.$strict>>>;
|
|
2244
2326
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2245
2327
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2287,6 +2369,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2287
2369
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
2288
2370
|
audience: z.ZodOptional<z.ZodString>;
|
|
2289
2371
|
overlay: z.ZodOptional<z.ZodString>;
|
|
2372
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
2373
|
+
task: z.ZodOptional<z.ZodString>;
|
|
2290
2374
|
}, z.core.$strict>>>;
|
|
2291
2375
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2292
2376
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -2335,6 +2419,8 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2335
2419
|
settings_version: z.ZodOptional<z.ZodNumber>;
|
|
2336
2420
|
audience: z.ZodOptional<z.ZodString>;
|
|
2337
2421
|
overlay: z.ZodOptional<z.ZodString>;
|
|
2422
|
+
candidate: z.ZodOptional<z.ZodString>;
|
|
2423
|
+
task: z.ZodOptional<z.ZodString>;
|
|
2338
2424
|
}, z.core.$strict>>>;
|
|
2339
2425
|
transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
2340
2426
|
session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -3375,6 +3461,21 @@ declare function reportTool(options: {
|
|
|
3375
3461
|
name?: string;
|
|
3376
3462
|
}): ReportTool;
|
|
3377
3463
|
|
|
3464
|
+
/**
|
|
3465
|
+
* Shared LLM-facing text: server instructions + annotation tool
|
|
3466
|
+
* description. Byte-for-byte port of `baton` (Python)'s
|
|
3467
|
+
* `integrations/_llm_text.py` template strings; see that module's
|
|
3468
|
+
* docstring for the rationale. Kept in sync by hand, as there is no
|
|
3469
|
+
* cross-language codegen for prose, and checked:
|
|
3470
|
+
* `test/integrations/mcp/llmTextVectors.json` is Python's own rendering,
|
|
3471
|
+
* compared string-for-string.
|
|
3472
|
+
*
|
|
3473
|
+
* **Python's text.** Under `reportMode: "on"` it renders what Python
|
|
3474
|
+
* renders: the instructions are one sentence pointing at the
|
|
3475
|
+
* annotation tool, and the tool's description holds the triggers, the
|
|
3476
|
+
* recovery rule and the fields, so each rule is written once.
|
|
3477
|
+
*/
|
|
3478
|
+
|
|
3378
3479
|
/** The server instructions a vendor serving MCP itself puts in its
|
|
3379
3480
|
* `initialize` result beside `user_goal` (SPEC §5.6), and all of Baton's
|
|
3380
3481
|
* instructions under `reportMode: "off"`. */
|