@goodtiming/baton-sdk 0.5.7 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const SDK_VERSION = "ts-0.5.7";
3
+ declare const SDK_VERSION = "ts-0.6.1";
4
4
 
5
5
  /**
6
6
  * Zod schemas + TS types for the Baton event stream per SPEC §11.4.
@@ -20,10 +20,11 @@ declare const SDK_VERSION = "ts-0.5.7";
20
20
  /** Emitted before the vendor handler runs. `params` is PII-scrubbed at
21
21
  * emit-time per SPEC §7.
22
22
  *
23
- * `call_intent` / `call_expected` / `call_workflow` are the values the SDK
24
- * stripped from the injected `user_goal` / `expected_result` /
25
- * `overall_task` params (see `llmText.ts`); they ride as SIBLINGS of
26
- * `params` — `params` stays exactly the vendor-visible arguments.
23
+ * `call_intent` is the value the SDK stripped from the injected `user_goal`
24
+ * param, and `call_expected` / `call_workflow` the retired `expected_result` /
25
+ * `overall_task` a stale client may still send (see `llmText.ts`); they ride
26
+ * as SIBLINGS of `params` — `params` stays exactly the vendor-visible
27
+ * arguments.
27
28
  * `call_intent`/`call_expected` are call-scoped diagnostics;
28
29
  * `call_workflow` is the task-label grouping key (console rung 3b, exact
29
30
  * string continuity). `intent_source` records provenance
@@ -338,6 +339,12 @@ declare const ToolCallStartEventSchema: z.ZodObject<{
338
339
  form: z.ZodString;
339
340
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
341
  }, z.core.$strict>>>;
342
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
343
+ id: z.ZodString;
344
+ source: z.ZodString;
345
+ form: z.ZodString;
346
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
+ }, z.core.$strict>>>;
341
348
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
342
349
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
343
350
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -377,6 +384,12 @@ declare const ToolCallEndEventSchema: z.ZodObject<{
377
384
  form: z.ZodString;
378
385
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
386
  }, z.core.$strict>>>;
387
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
388
+ id: z.ZodString;
389
+ source: z.ZodString;
390
+ form: z.ZodString;
391
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
392
+ }, z.core.$strict>>>;
380
393
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
381
394
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
382
395
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -419,6 +432,12 @@ declare const ToolCallErrorEventSchema: z.ZodObject<{
419
432
  form: z.ZodString;
420
433
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
421
434
  }, z.core.$strict>>>;
435
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
436
+ id: z.ZodString;
437
+ source: z.ZodString;
438
+ form: z.ZodString;
439
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
440
+ }, z.core.$strict>>>;
422
441
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
423
442
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
424
443
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -461,6 +480,12 @@ declare const AnnotationEventSchema: z.ZodObject<{
461
480
  form: z.ZodString;
462
481
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
482
  }, z.core.$strict>>>;
483
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
484
+ id: z.ZodString;
485
+ source: z.ZodString;
486
+ form: z.ZodString;
487
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ }, z.core.$strict>>>;
464
489
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
465
490
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
466
491
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -502,6 +527,12 @@ declare const SurfaceSnapshotEventSchema: z.ZodObject<{
502
527
  form: z.ZodString;
503
528
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
504
529
  }, z.core.$strict>>>;
530
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
531
+ id: z.ZodString;
532
+ source: z.ZodString;
533
+ form: z.ZodString;
534
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
535
+ }, z.core.$strict>>>;
505
536
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
506
537
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
507
538
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -536,6 +567,12 @@ declare const ResourceListStartEventSchema: z.ZodObject<{
536
567
  form: z.ZodString;
537
568
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
538
569
  }, z.core.$strict>>>;
570
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
571
+ id: z.ZodString;
572
+ source: z.ZodString;
573
+ form: z.ZodString;
574
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
575
+ }, z.core.$strict>>>;
539
576
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
540
577
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
541
578
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -573,6 +610,12 @@ declare const ResourceListEndEventSchema: z.ZodObject<{
573
610
  form: z.ZodString;
574
611
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
575
612
  }, z.core.$strict>>>;
613
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
614
+ id: z.ZodString;
615
+ source: z.ZodString;
616
+ form: z.ZodString;
617
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
618
+ }, z.core.$strict>>>;
576
619
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
577
620
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
578
621
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -611,6 +654,12 @@ declare const ResourceListErrorEventSchema: z.ZodObject<{
611
654
  form: z.ZodString;
612
655
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
613
656
  }, z.core.$strict>>>;
657
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
658
+ id: z.ZodString;
659
+ source: z.ZodString;
660
+ form: z.ZodString;
661
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
662
+ }, z.core.$strict>>>;
614
663
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
615
664
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
616
665
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -648,6 +697,12 @@ declare const ResourceReadStartEventSchema: z.ZodObject<{
648
697
  form: z.ZodString;
649
698
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
650
699
  }, z.core.$strict>>>;
700
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
701
+ id: z.ZodString;
702
+ source: z.ZodString;
703
+ form: z.ZodString;
704
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ }, z.core.$strict>>>;
651
706
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
652
707
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
653
708
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -685,6 +740,12 @@ declare const ResourceReadEndEventSchema: z.ZodObject<{
685
740
  form: z.ZodString;
686
741
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
742
  }, z.core.$strict>>>;
743
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
744
+ id: z.ZodString;
745
+ source: z.ZodString;
746
+ form: z.ZodString;
747
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
748
+ }, z.core.$strict>>>;
688
749
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
689
750
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
690
751
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -724,6 +785,12 @@ declare const ResourceReadErrorEventSchema: z.ZodObject<{
724
785
  form: z.ZodString;
725
786
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
726
787
  }, z.core.$strict>>>;
788
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
789
+ id: z.ZodString;
790
+ source: z.ZodString;
791
+ form: z.ZodString;
792
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
+ }, z.core.$strict>>>;
727
794
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
728
795
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
729
796
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -758,6 +825,12 @@ declare const PromptListStartEventSchema: z.ZodObject<{
758
825
  form: z.ZodString;
759
826
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
760
827
  }, z.core.$strict>>>;
828
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
829
+ id: z.ZodString;
830
+ source: z.ZodString;
831
+ form: z.ZodString;
832
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
833
+ }, z.core.$strict>>>;
761
834
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
762
835
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
763
836
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -795,6 +868,12 @@ declare const PromptListEndEventSchema: z.ZodObject<{
795
868
  form: z.ZodString;
796
869
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
870
  }, z.core.$strict>>>;
871
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
872
+ id: z.ZodString;
873
+ source: z.ZodString;
874
+ form: z.ZodString;
875
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ }, z.core.$strict>>>;
798
877
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
799
878
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
800
879
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -833,6 +912,12 @@ declare const PromptListErrorEventSchema: z.ZodObject<{
833
912
  form: z.ZodString;
834
913
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
835
914
  }, z.core.$strict>>>;
915
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
916
+ id: z.ZodString;
917
+ source: z.ZodString;
918
+ form: z.ZodString;
919
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
920
+ }, z.core.$strict>>>;
836
921
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
837
922
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
838
923
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -870,6 +955,12 @@ declare const PromptGetStartEventSchema: z.ZodObject<{
870
955
  form: z.ZodString;
871
956
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
957
  }, z.core.$strict>>>;
958
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
959
+ id: z.ZodString;
960
+ source: z.ZodString;
961
+ form: z.ZodString;
962
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
963
+ }, z.core.$strict>>>;
873
964
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
874
965
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
875
966
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -907,6 +998,12 @@ declare const PromptGetEndEventSchema: z.ZodObject<{
907
998
  form: z.ZodString;
908
999
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
909
1000
  }, z.core.$strict>>>;
1001
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1002
+ id: z.ZodString;
1003
+ source: z.ZodString;
1004
+ form: z.ZodString;
1005
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1006
+ }, z.core.$strict>>>;
910
1007
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
911
1008
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
912
1009
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -946,6 +1043,12 @@ declare const PromptGetErrorEventSchema: z.ZodObject<{
946
1043
  form: z.ZodString;
947
1044
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
948
1045
  }, z.core.$strict>>>;
1046
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1047
+ id: z.ZodString;
1048
+ source: z.ZodString;
1049
+ form: z.ZodString;
1050
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1051
+ }, z.core.$strict>>>;
949
1052
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
950
1053
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
951
1054
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -980,6 +1083,12 @@ declare const ToolListStartEventSchema: z.ZodObject<{
980
1083
  form: z.ZodString;
981
1084
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
982
1085
  }, z.core.$strict>>>;
1086
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1087
+ id: z.ZodString;
1088
+ source: z.ZodString;
1089
+ form: z.ZodString;
1090
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1091
+ }, z.core.$strict>>>;
983
1092
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
984
1093
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
985
1094
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1017,6 +1126,12 @@ declare const ToolListEndEventSchema: z.ZodObject<{
1017
1126
  form: z.ZodString;
1018
1127
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1019
1128
  }, z.core.$strict>>>;
1129
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1130
+ id: z.ZodString;
1131
+ source: z.ZodString;
1132
+ form: z.ZodString;
1133
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1134
+ }, z.core.$strict>>>;
1020
1135
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1021
1136
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1022
1137
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1055,6 +1170,12 @@ declare const ToolListErrorEventSchema: z.ZodObject<{
1055
1170
  form: z.ZodString;
1056
1171
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1057
1172
  }, z.core.$strict>>>;
1173
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1174
+ id: z.ZodString;
1175
+ source: z.ZodString;
1176
+ form: z.ZodString;
1177
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1178
+ }, z.core.$strict>>>;
1058
1179
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1059
1180
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1060
1181
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1097,6 +1218,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1097
1218
  form: z.ZodString;
1098
1219
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
1220
  }, z.core.$strict>>>;
1221
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1222
+ id: z.ZodString;
1223
+ source: z.ZodString;
1224
+ form: z.ZodString;
1225
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1226
+ }, z.core.$strict>>>;
1100
1227
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1101
1228
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1102
1229
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1134,6 +1261,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1134
1261
  form: z.ZodString;
1135
1262
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1136
1263
  }, z.core.$strict>>>;
1264
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1265
+ id: z.ZodString;
1266
+ source: z.ZodString;
1267
+ form: z.ZodString;
1268
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1269
+ }, z.core.$strict>>>;
1137
1270
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1138
1271
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1139
1272
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1174,6 +1307,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1174
1307
  form: z.ZodString;
1175
1308
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1176
1309
  }, z.core.$strict>>>;
1310
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1311
+ id: z.ZodString;
1312
+ source: z.ZodString;
1313
+ form: z.ZodString;
1314
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1315
+ }, z.core.$strict>>>;
1177
1316
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1178
1317
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1179
1318
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1214,6 +1353,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1214
1353
  form: z.ZodString;
1215
1354
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
1355
  }, z.core.$strict>>>;
1356
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1357
+ id: z.ZodString;
1358
+ source: z.ZodString;
1359
+ form: z.ZodString;
1360
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1361
+ }, z.core.$strict>>>;
1217
1362
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1218
1363
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1219
1364
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1253,6 +1398,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1253
1398
  form: z.ZodString;
1254
1399
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1255
1400
  }, z.core.$strict>>>;
1401
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1402
+ id: z.ZodString;
1403
+ source: z.ZodString;
1404
+ form: z.ZodString;
1405
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1406
+ }, z.core.$strict>>>;
1256
1407
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1257
1408
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1258
1409
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1285,6 +1436,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1285
1436
  form: z.ZodString;
1286
1437
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1287
1438
  }, z.core.$strict>>>;
1439
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1440
+ id: z.ZodString;
1441
+ source: z.ZodString;
1442
+ form: z.ZodString;
1443
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1444
+ }, z.core.$strict>>>;
1288
1445
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1289
1446
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1290
1447
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1320,6 +1477,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1320
1477
  form: z.ZodString;
1321
1478
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1322
1479
  }, z.core.$strict>>>;
1480
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1481
+ id: z.ZodString;
1482
+ source: z.ZodString;
1483
+ form: z.ZodString;
1484
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1485
+ }, z.core.$strict>>>;
1323
1486
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1324
1487
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1325
1488
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1356,6 +1519,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1356
1519
  form: z.ZodString;
1357
1520
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1358
1521
  }, z.core.$strict>>>;
1522
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1523
+ id: z.ZodString;
1524
+ source: z.ZodString;
1525
+ form: z.ZodString;
1526
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1527
+ }, z.core.$strict>>>;
1359
1528
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1360
1529
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1361
1530
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1391,6 +1560,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1391
1560
  form: z.ZodString;
1392
1561
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1393
1562
  }, z.core.$strict>>>;
1563
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1564
+ id: z.ZodString;
1565
+ source: z.ZodString;
1566
+ form: z.ZodString;
1567
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1568
+ }, z.core.$strict>>>;
1394
1569
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1395
1570
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1396
1571
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1426,6 +1601,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1426
1601
  form: z.ZodString;
1427
1602
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1428
1603
  }, z.core.$strict>>>;
1604
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1605
+ id: z.ZodString;
1606
+ source: z.ZodString;
1607
+ form: z.ZodString;
1608
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1609
+ }, z.core.$strict>>>;
1429
1610
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1430
1611
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1431
1612
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1463,6 +1644,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1463
1644
  form: z.ZodString;
1464
1645
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
1646
  }, z.core.$strict>>>;
1647
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1648
+ id: z.ZodString;
1649
+ source: z.ZodString;
1650
+ form: z.ZodString;
1651
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1652
+ }, z.core.$strict>>>;
1466
1653
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1467
1654
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1468
1655
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1495,6 +1682,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1495
1682
  form: z.ZodString;
1496
1683
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
1684
  }, z.core.$strict>>>;
1685
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1686
+ id: z.ZodString;
1687
+ source: z.ZodString;
1688
+ form: z.ZodString;
1689
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1690
+ }, z.core.$strict>>>;
1498
1691
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1499
1692
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1500
1693
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1530,6 +1723,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1530
1723
  form: z.ZodString;
1531
1724
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1532
1725
  }, z.core.$strict>>>;
1726
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1727
+ id: z.ZodString;
1728
+ source: z.ZodString;
1729
+ form: z.ZodString;
1730
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1731
+ }, z.core.$strict>>>;
1533
1732
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1534
1733
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1535
1734
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1566,6 +1765,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1566
1765
  form: z.ZodString;
1567
1766
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1568
1767
  }, z.core.$strict>>>;
1768
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1769
+ id: z.ZodString;
1770
+ source: z.ZodString;
1771
+ form: z.ZodString;
1772
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1773
+ }, z.core.$strict>>>;
1569
1774
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1570
1775
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1571
1776
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1601,6 +1806,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1601
1806
  form: z.ZodString;
1602
1807
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1603
1808
  }, z.core.$strict>>>;
1809
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1810
+ id: z.ZodString;
1811
+ source: z.ZodString;
1812
+ form: z.ZodString;
1813
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1814
+ }, z.core.$strict>>>;
1604
1815
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1605
1816
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1606
1817
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1636,6 +1847,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1636
1847
  form: z.ZodString;
1637
1848
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1638
1849
  }, z.core.$strict>>>;
1850
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1851
+ id: z.ZodString;
1852
+ source: z.ZodString;
1853
+ form: z.ZodString;
1854
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1855
+ }, z.core.$strict>>>;
1639
1856
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1640
1857
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1641
1858
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1673,6 +1890,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1673
1890
  form: z.ZodString;
1674
1891
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1675
1892
  }, z.core.$strict>>>;
1893
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1894
+ id: z.ZodString;
1895
+ source: z.ZodString;
1896
+ form: z.ZodString;
1897
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1898
+ }, z.core.$strict>>>;
1676
1899
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1677
1900
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1678
1901
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1705,6 +1928,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1705
1928
  form: z.ZodString;
1706
1929
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1707
1930
  }, z.core.$strict>>>;
1931
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1932
+ id: z.ZodString;
1933
+ source: z.ZodString;
1934
+ form: z.ZodString;
1935
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1936
+ }, z.core.$strict>>>;
1708
1937
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1709
1938
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1710
1939
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1740,6 +1969,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1740
1969
  form: z.ZodString;
1741
1970
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1742
1971
  }, z.core.$strict>>>;
1972
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1973
+ id: z.ZodString;
1974
+ source: z.ZodString;
1975
+ form: z.ZodString;
1976
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1977
+ }, z.core.$strict>>>;
1743
1978
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1744
1979
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1745
1980
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -1776,6 +2011,12 @@ declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1776
2011
  form: z.ZodString;
1777
2012
  display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1778
2013
  }, z.core.$strict>>>;
2014
+ organization: z.ZodDefault<z.ZodNullable<z.ZodObject<{
2015
+ id: z.ZodString;
2016
+ source: z.ZodString;
2017
+ form: z.ZodString;
2018
+ display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2019
+ }, z.core.$strict>>>;
1779
2020
  transport_observed: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1780
2021
  session_id_origin: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1781
2022
  client_observed: z.ZodDefault<z.ZodNullable<z.ZodObject<{
@@ -2050,6 +2291,17 @@ interface Principal {
2050
2291
  * show, and it is personal data whatever `form` says. An unusable value is
2051
2292
  * dropped alone — see `wireDisplayName`. */
2052
2293
  displayName?: string | null | undefined;
2294
+ /** The company this principal belongs to. Sent as `organization`, and
2295
+ * dropped alone when unusable (SPEC §11.4). */
2296
+ organization?: Organization | null | undefined;
2297
+ }
2298
+ /** The company or workspace the caller belongs to, as the vendor sees it.
2299
+ * Sent as `organization` (SPEC §11.4), beside `principal` or alone. It is
2300
+ * never counted as a person. `form` describes `organizationId` alone. */
2301
+ interface Organization {
2302
+ organizationId: string;
2303
+ form?: PrincipalForm | undefined;
2304
+ displayName?: string | null | undefined;
2053
2305
  }
2054
2306
 
2055
2307
  /** A validated access token, as both majors declare it
@@ -2116,7 +2368,7 @@ interface PrincipalResolutionContext {
2116
2368
  }
2117
2369
  /** A vendor's per-request identity resolver. Sync or async; returning `null`
2118
2370
  * means "no opinion about this caller", which is not an error. */
2119
- type ResolvePrincipalHook = (context: PrincipalResolutionContext) => Principal | null | Promise<Principal | null>;
2371
+ type ResolvePrincipalHook = (context: PrincipalResolutionContext) => Principal | Organization | null | Promise<Principal | Organization | null>;
2120
2372
 
2121
2373
  /** The registered values of `resultCaptureMode` (SPEC §11.4), and the single
2122
2374
  * source of truth for them.
@@ -2188,7 +2440,8 @@ interface BatonConfig {
2188
2440
  * for the same reason: a capitalisation you never chose would be a
2189
2441
  * fabricated name. Falls back to the DSN's server segment when the server's
2190
2442
  * name is one a library made up, is blank or unreadable, or would push the
2191
- * server instructions over their cap. With no `dsn`, this is required. */
2443
+ * server instructions over their cap. With no `dsn`, this is required
2444
+ * under `reportMode: "on"`, and unused otherwise. */
2192
2445
  vendorDisplayName?: string;
2193
2446
  /** End-user consent token attached to every emitted event per SPEC §2.3 —
2194
2447
  * the Console MUST reject events missing it.
@@ -2222,21 +2475,28 @@ interface BatonConfig {
2222
2475
  * `acme-knowledge-base_annotate`. It falls back to `{vendorId}_annotate`
2223
2476
  * when the name is one a library made up, slugs to nothing, is unreadable,
2224
2477
  * or would not fit the server instructions. Set this to keep a name you have
2225
- * written into documentation, a prompt or a script. */
2478
+ * written into documentation, a prompt or a script. Has no effect unless
2479
+ * `reportMode: "on"`, and warns if set without it. */
2226
2480
  annotationToolName?: string;
2481
+ /** Whether the agent is given a tool to report a call that went wrong.
2482
+ * `"off"` (the default) registers no annotation tool, and Baton's server
2483
+ * instructions are `INTENT_INSTRUCTIONS` alone, below your own. Each call's
2484
+ * goal still arrives through `user_goal`. `"on"` registers the tool and
2485
+ * serves its instructions. */
2486
+ reportMode?: "on" | "off";
2227
2487
  /** Per-tool intent-param injection (mirrors baton-extmcp's vendor-neutral
2228
- * naming). `"required"` (default) injects `user_goal`/`expected_result`/
2229
- * `overall_task` string params on every wrapped tool's advertised schema
2230
- * and ADVERTISES all three as required in
2231
- * `tools/list`, without enforcing them: a call that omits them still reaches
2488
+ * naming). `"required"` (default) injects a `user_goal` string param on
2489
+ * every wrapped tool's advertised schema and ADVERTISES it as required in
2490
+ * `tools/list`, without enforcing it: a call that omits it still reaches
2232
2491
  * your handler, and its event simply carries no intent. `"optional"` injects
2233
- * the same params and advertises none of them as required. `"off"` disables injection. The params are
2234
- * stripped before the vendor handler runs, so the tool never sees them.
2492
+ * the same param and does not advertise it as required. There is no
2493
+ * `"off"`: nothing else would capture what the user is trying to do. The param is stripped before the vendor
2494
+ * handler runs, so the tool never sees it.
2235
2495
  * This is what captures intent on runtimes that drop `instructions`
2236
2496
  * (notably Claude Desktop) — where the annotation tool alone yields
2237
2497
  * nothing. A tool registered with no `inputSchema` at all is left alone
2238
2498
  * regardless of this setting (see `schemaCompat.injectGoalParams`). */
2239
- intentParamMode?: "optional" | "required" | "off";
2499
+ intentParamMode?: "optional" | "required";
2240
2500
  /** Whether tool RESPONSE data is captured at all (SPEC §11.4).
2241
2501
  *
2242
2502
  * `"full"` (the default) captures as it always has. `"off"` means nothing
@@ -2353,10 +2613,9 @@ declare class BatonHandle {
2353
2613
  * MCP's error flag on a 200. Reading only the first is what this package did,
2354
2614
  * and what §6.1's own wording told it to. Injects server `instructions`
2355
2615
  * (SPEC §5.1.2), registers
2356
- * the `<vendor>_annotate` tool (SPEC §5.1.1), injects `user_goal`/
2357
- * `expected_result`/`overall_task` intent params on every wrapped tool's
2358
- * schema (SPEC §11.4.1 `call_intent`/`call_expected`/`call_workflow`/
2359
- * `intent_source`), and captures a `surface_snapshot`
2616
+ * the `<vendor>_annotate` tool under `reportMode: "on"` (SPEC §5.1.1), injects
2617
+ * a `user_goal` intent param on every wrapped tool's schema (SPEC §11.4.1
2618
+ * `call_intent`/`intent_source`), and captures a `surface_snapshot`
2360
2619
  * of the vendor-true surface. Every payload leaving here runs through the
2361
2620
  * configured scrubber, which defaults to the shipped ruleset (`src/scrub.ts`)
2362
2621
  * — see README "What is not here yet" for what's still not here (the low-level
@@ -2524,8 +2783,11 @@ interface ClientOptions {
2524
2783
  interface SessionOptions {
2525
2784
  /** The vendor's own id for the conversation; without one, the block mints one. */
2526
2785
  sessionId?: string;
2527
- /** Who the vendor says is calling. */
2528
- principal?: Principal;
2786
+ /** Who the vendor says is calling: a `Principal`, which may carry its
2787
+ * `organization`, or an `Organization` alone when only the company is known.
2788
+ * A block with only a company and no `sessionId` is never joined to another
2789
+ * (SPEC §11.5.1), so pass your own `sessionId` then. */
2790
+ principal?: Principal | Organization;
2529
2791
  /** What the calling client said about itself. */
2530
2792
  clientInfo?: {
2531
2793
  name?: string;
@@ -2602,6 +2864,10 @@ declare class Client {
2602
2864
  aclose(): Promise<void>;
2603
2865
  }
2604
2866
 
2867
+ /** The server instructions a vendor serving MCP itself puts in its
2868
+ * `initialize` result beside `user_goal` (SPEC §5.6), and all of Baton's
2869
+ * instructions under `reportMode: "off"`. */
2870
+ declare const INTENT_INSTRUCTIONS: string;
2605
2871
  /** One injected param, for a vendor adding it to its own API (SPEC §5.6).
2606
2872
  * `description` is the text an agent reads on an MCP server, without the
2607
2873
  * leading "OPTIONAL." / "REQUIRED." label: whether the vendor's API requires
@@ -2610,8 +2876,8 @@ declare class Client {
2610
2876
  interface IntentParam {
2611
2877
  readonly name: string;
2612
2878
  readonly description: string;
2613
- readonly traceOption: "intent" | "expectedOutcome" | "workflow";
2879
+ readonly traceOption: "intent";
2614
2880
  }
2615
2881
  declare const INTENT_PARAMS: readonly IntentParam[];
2616
2882
 
2617
- export { type AnnotateOptions, type AnnotationEvent, AnnotationEventSchema, type AnnotationPayload, AnnotationPayloadSchema, type AuthInfo, type Baton, type BatonConfig, BatonHandle, Client, type ClientOptions, DEFAULT_CONSENT_TOKEN, DEPTH_LIMIT, type Event, EventSchema, type EventType, EventTypeSchema, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_PARAMS, type IntentParam, type ObservedError, PRINCIPAL_FORM_HASHED, PRINCIPAL_FORM_RAW, PRINCIPAL_SOURCE_ASSERTED, type Principal, type PrincipalForm, type PrincipalResolutionContext, PrincipalWireSchema, type PromptGetEndEvent, PromptGetEndEventSchema, type PromptGetEndPayload, PromptGetEndPayloadSchema, type PromptGetErrorEvent, PromptGetErrorEventSchema, type PromptGetErrorPayload, PromptGetErrorPayloadSchema, type PromptGetStartEvent, PromptGetStartEventSchema, type PromptGetStartPayload, PromptGetStartPayloadSchema, type PromptListEndEvent, PromptListEndEventSchema, type PromptListEndPayload, PromptListEndPayloadSchema, type PromptListErrorEvent, PromptListErrorEventSchema, type PromptListErrorPayload, PromptListErrorPayloadSchema, type PromptListStartEvent, PromptListStartEventSchema, type PromptListStartPayload, PromptListStartPayloadSchema, type ResolvePrincipalHook, type ResourceListEndEvent, ResourceListEndEventSchema, type ResourceListEndPayload, ResourceListEndPayloadSchema, type ResourceListErrorEvent, ResourceListErrorEventSchema, type ResourceListErrorPayload, ResourceListErrorPayloadSchema, type ResourceListStartEvent, ResourceListStartEventSchema, type ResourceListStartPayload, ResourceListStartPayloadSchema, type ResourceReadEndEvent, ResourceReadEndEventSchema, type ResourceReadEndPayload, ResourceReadEndPayloadSchema, type ResourceReadErrorEvent, ResourceReadErrorEventSchema, type ResourceReadErrorPayload, ResourceReadErrorPayloadSchema, type ResourceReadStartEvent, ResourceReadStartEventSchema, type ResourceReadStartPayload, ResourceReadStartPayloadSchema, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, StdoutSink, type StdoutSinkOptions, type SupportedMcpServer, type SurfaceSnapshotEvent, SurfaceSnapshotEventSchema, type SurfaceSnapshotPayload, SurfaceSnapshotPayloadSchema, type ToolCallEndEvent, ToolCallEndEventSchema, type ToolCallEndPayload, ToolCallEndPayloadSchema, type ToolCallErrorEvent, ToolCallErrorEventSchema, type ToolCallErrorPayload, ToolCallErrorPayloadSchema, type ToolCallStartEvent, ToolCallStartEventSchema, type ToolCallStartPayload, ToolCallStartPayloadSchema, type ToolListEndEvent, ToolListEndEventSchema, type ToolListEndPayload, ToolListEndPayloadSchema, type ToolListErrorEvent, ToolListErrorEventSchema, type ToolListErrorPayload, ToolListErrorPayloadSchema, type ToolListStartEvent, ToolListStartEventSchema, type ToolListStartPayload, ToolListStartPayloadSchema, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, safeWrite, withBaton };
2883
+ export { type AnnotateOptions, type AnnotationEvent, AnnotationEventSchema, type AnnotationPayload, AnnotationPayloadSchema, type AuthInfo, type Baton, type BatonConfig, BatonHandle, Client, type ClientOptions, DEFAULT_CONSENT_TOKEN, DEPTH_LIMIT, type Event, EventSchema, type EventType, EventTypeSchema, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_INSTRUCTIONS, INTENT_PARAMS, type IntentParam, type ObservedError, type Organization, PRINCIPAL_FORM_HASHED, PRINCIPAL_FORM_RAW, PRINCIPAL_SOURCE_ASSERTED, type Principal, type PrincipalForm, type PrincipalResolutionContext, PrincipalWireSchema, type PromptGetEndEvent, PromptGetEndEventSchema, type PromptGetEndPayload, PromptGetEndPayloadSchema, type PromptGetErrorEvent, PromptGetErrorEventSchema, type PromptGetErrorPayload, PromptGetErrorPayloadSchema, type PromptGetStartEvent, PromptGetStartEventSchema, type PromptGetStartPayload, PromptGetStartPayloadSchema, type PromptListEndEvent, PromptListEndEventSchema, type PromptListEndPayload, PromptListEndPayloadSchema, type PromptListErrorEvent, PromptListErrorEventSchema, type PromptListErrorPayload, PromptListErrorPayloadSchema, type PromptListStartEvent, PromptListStartEventSchema, type PromptListStartPayload, PromptListStartPayloadSchema, type ResolvePrincipalHook, type ResourceListEndEvent, ResourceListEndEventSchema, type ResourceListEndPayload, ResourceListEndPayloadSchema, type ResourceListErrorEvent, ResourceListErrorEventSchema, type ResourceListErrorPayload, ResourceListErrorPayloadSchema, type ResourceListStartEvent, ResourceListStartEventSchema, type ResourceListStartPayload, ResourceListStartPayloadSchema, type ResourceReadEndEvent, ResourceReadEndEventSchema, type ResourceReadEndPayload, ResourceReadEndPayloadSchema, type ResourceReadErrorEvent, ResourceReadErrorEventSchema, type ResourceReadErrorPayload, ResourceReadErrorPayloadSchema, type ResourceReadStartEvent, ResourceReadStartEventSchema, type ResourceReadStartPayload, ResourceReadStartPayloadSchema, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, StdoutSink, type StdoutSinkOptions, type SupportedMcpServer, type SurfaceSnapshotEvent, SurfaceSnapshotEventSchema, type SurfaceSnapshotPayload, SurfaceSnapshotPayloadSchema, type ToolCallEndEvent, ToolCallEndEventSchema, type ToolCallEndPayload, ToolCallEndPayloadSchema, type ToolCallErrorEvent, ToolCallErrorEventSchema, type ToolCallErrorPayload, ToolCallErrorPayloadSchema, type ToolCallStartEvent, ToolCallStartEventSchema, type ToolCallStartPayload, ToolCallStartPayloadSchema, type ToolListEndEvent, ToolListEndEventSchema, type ToolListEndPayload, ToolListEndPayloadSchema, type ToolListErrorEvent, ToolListErrorEventSchema, type ToolListErrorPayload, ToolListErrorPayloadSchema, type ToolListStartEvent, ToolListStartEventSchema, type ToolListStartPayload, ToolListStartPayloadSchema, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, safeWrite, withBaton };