@agen-ai/agent-protocol 0.1.0 → 0.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.
@@ -2,7 +2,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_DIALECT: "https://json-schema.or
2
2
  export type AgentProtocolJsonSchemaDirection = 'input' | 'output';
3
3
  export interface AgentProtocolJsonSchemaArtifact {
4
4
  readonly contractId: string;
5
- readonly protocolVersion: 6;
5
+ readonly protocolVersion: 7;
6
6
  readonly direction: AgentProtocolJsonSchemaDirection;
7
7
  readonly dialect: typeof AGENT_PROTOCOL_JSON_SCHEMA_DIALECT;
8
8
  readonly parserInvariants: readonly string[];
@@ -11,11 +11,11 @@ export interface AgentProtocolJsonSchemaArtifact {
11
11
  }
12
12
  export declare const AGENT_SESSION_BINDING_JSON_SCHEMA: {
13
13
  readonly contractId: "agenai.agent-protocol.session-binding";
14
- readonly protocolVersion: 6;
14
+ readonly protocolVersion: 7;
15
15
  readonly direction: "output";
16
16
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
17
17
  readonly parserInvariants: readonly [];
18
- readonly sha256: "2607b6b9d92e786e24777e189cf08be804438da8fd7ef25bdc70d4f253523b3a";
18
+ readonly sha256: "640723b204a4b0d6417c92bf9fb08367969cc68193da5ba028fa6348aad24ff6";
19
19
  readonly schema: {
20
20
  readonly $defs: {
21
21
  readonly __schema0: {
@@ -25,7 +25,7 @@ export declare const AGENT_SESSION_BINDING_JSON_SCHEMA: {
25
25
  readonly type: "string";
26
26
  };
27
27
  };
28
- readonly $id: "urn:agenai.agent-protocol.session-binding:v6:output";
28
+ readonly $id: "urn:agenai.agent-protocol.session-binding:v7:output";
29
29
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
30
30
  readonly additionalProperties: false;
31
31
  readonly properties: {
@@ -43,11 +43,11 @@ export declare const AGENT_SESSION_BINDING_JSON_SCHEMA: {
43
43
  };
44
44
  export declare const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA: {
45
45
  readonly contractId: "agenai.agent-protocol.session-configuration";
46
- readonly protocolVersion: 6;
46
+ readonly protocolVersion: 7;
47
47
  readonly direction: "input";
48
48
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
49
49
  readonly parserInvariants: readonly ["configuration_entry_count", "serialized_bytes"];
50
- readonly sha256: "f572604f35434cc4c2895dc103e03459822fb1b313b68c747174ff32389b17dc";
50
+ readonly sha256: "f5979adaa59830e2e95c0755697ecdad8bcea0ac9cbbccd8adc82039ba536664";
51
51
  readonly schema: {
52
52
  readonly $defs: {
53
53
  readonly __schema0: {
@@ -85,7 +85,7 @@ export declare const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA: {
85
85
  }];
86
86
  };
87
87
  };
88
- readonly $id: "urn:agenai.agent-protocol.session-configuration:v6:input";
88
+ readonly $id: "urn:agenai.agent-protocol.session-configuration:v7:input";
89
89
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
90
90
  readonly additionalProperties: false;
91
91
  readonly properties: {
@@ -113,11 +113,11 @@ export declare const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA: {
113
113
  };
114
114
  export declare const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA: {
115
115
  readonly contractId: "agenai.agent-protocol.session-open-input";
116
- readonly protocolVersion: 6;
116
+ readonly protocolVersion: 7;
117
117
  readonly direction: "input";
118
118
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
119
119
  readonly parserInvariants: readonly ["configuration_entry_count", "distinct_branch_session_ids", "serialized_bytes"];
120
- readonly sha256: "229a62054dd3cc0d017e0360cb858b590feea8eb0f8aa6d28ac659fd07368790";
120
+ readonly sha256: "d21be9ed78d06ba421f349b45e48d4aff338c45047335d369102757f860f01ad";
121
121
  readonly schema: {
122
122
  readonly $defs: {
123
123
  readonly __schema0: {
@@ -202,7 +202,7 @@ export declare const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA: {
202
202
  readonly type: "string";
203
203
  };
204
204
  };
205
- readonly $id: "urn:agenai.agent-protocol.session-open-input:v6:input";
205
+ readonly $id: "urn:agenai.agent-protocol.session-open-input:v7:input";
206
206
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
207
207
  readonly oneOf: readonly [{
208
208
  readonly additionalProperties: false;
@@ -291,11 +291,11 @@ export declare const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA: {
291
291
  };
292
292
  export declare const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA: {
293
293
  readonly contractId: "agenai.agent-protocol.turn-input-content";
294
- readonly protocolVersion: 6;
294
+ readonly protocolVersion: 7;
295
295
  readonly direction: "input";
296
296
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
297
297
  readonly parserInvariants: readonly ["inline_image_decoded_byte_size", "serialized_bytes"];
298
- readonly sha256: "e16e907c7f656e48074fd5514d9ec2d9893eac19da296884d03af1aaf617d9a3";
298
+ readonly sha256: "bf447b3f55eee50d25028fb0531029476779d421048ae2bda0cade39ccc831e8";
299
299
  readonly schema: {
300
300
  readonly $defs: {
301
301
  readonly __schema0: {
@@ -457,7 +457,7 @@ export declare const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA: {
457
457
  readonly type: "string";
458
458
  };
459
459
  };
460
- readonly $id: "urn:agenai.agent-protocol.turn-input-content:v6:input";
460
+ readonly $id: "urn:agenai.agent-protocol.turn-input-content:v7:input";
461
461
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
462
462
  readonly additionalProperties: false;
463
463
  readonly properties: {
@@ -474,11 +474,11 @@ export declare const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA: {
474
474
  };
475
475
  export declare const AGENT_TURN_RUN_INPUT_JSON_SCHEMA: {
476
476
  readonly contractId: "agenai.agent-protocol.turn-run-input";
477
- readonly protocolVersion: 6;
477
+ readonly protocolVersion: 7;
478
478
  readonly direction: "input";
479
479
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
480
480
  readonly parserInvariants: readonly ["inline_image_decoded_byte_size", "serialized_bytes"];
481
- readonly sha256: "9eed73d589c31a2c0e54073ad694c60acce6ed2fe97209c3c9997634f75c0a85";
481
+ readonly sha256: "863a8b3c0c58ed3276c79d93a05f9a8c7d8b909a79e4c58370ab3a723afbd98a";
482
482
  readonly schema: {
483
483
  readonly $defs: {
484
484
  readonly __schema0: {
@@ -627,7 +627,7 @@ export declare const AGENT_TURN_RUN_INPUT_JSON_SCHEMA: {
627
627
  readonly type: "string";
628
628
  };
629
629
  };
630
- readonly $id: "urn:agenai.agent-protocol.turn-run-input:v6:input";
630
+ readonly $id: "urn:agenai.agent-protocol.turn-run-input:v7:input";
631
631
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
632
632
  readonly additionalProperties: false;
633
633
  readonly properties: {
@@ -667,11 +667,11 @@ export declare const AGENT_TURN_RUN_INPUT_JSON_SCHEMA: {
667
667
  };
668
668
  export declare const AGENT_REQUEST_JSON_SCHEMA: {
669
669
  readonly contractId: "agenai.agent-protocol.request";
670
- readonly protocolVersion: 6;
670
+ readonly protocolVersion: 7;
671
671
  readonly direction: "output";
672
672
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
673
- readonly parserInvariants: readonly ["unique_field_ids", "unique_choice_values"];
674
- readonly sha256: "6effd40d27037be8d25661daf9897e21bcb9fa90c4a937ba3a675ea1d5031250";
673
+ readonly parserInvariants: readonly ["unique_approval_option_ids", "unique_field_ids", "unique_choice_values"];
674
+ readonly sha256: "f451cb5d1fe75b7b1821c66a71fa550780f1cae7e4c15dd252104c57521097a4";
675
675
  readonly schema: {
676
676
  readonly $defs: {
677
677
  readonly __schema0: {
@@ -681,11 +681,60 @@ export declare const AGENT_REQUEST_JSON_SCHEMA: {
681
681
  readonly type: "string";
682
682
  };
683
683
  readonly __schema1: {
684
+ readonly maxLength: 1000;
685
+ readonly minLength: 1;
686
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
687
+ readonly type: "string";
688
+ };
689
+ readonly __schema2: {
690
+ readonly maxLength: 120;
691
+ readonly minLength: 1;
692
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
693
+ readonly type: "string";
694
+ };
695
+ readonly __schema3: {
696
+ readonly additionalProperties: false;
697
+ readonly properties: {
698
+ readonly decision: {
699
+ readonly enum: readonly ["approved", "denied"];
700
+ readonly type: "string";
701
+ };
702
+ readonly description: {
703
+ readonly $ref: "#/$defs/__schema1";
704
+ };
705
+ readonly label: {
706
+ readonly $ref: "#/$defs/__schema2";
707
+ };
708
+ readonly optionId: {
709
+ readonly $ref: "#/$defs/__schema0";
710
+ };
711
+ readonly persistence: {
712
+ readonly enum: readonly ["once", "session", "workspace"];
713
+ readonly type: "string";
714
+ };
715
+ readonly scope: {
716
+ readonly additionalProperties: false;
717
+ readonly properties: {
718
+ readonly kind: {
719
+ readonly enum: readonly ["exact_action", "command_pattern", "domain", "tool", "server", "all_edits"];
720
+ readonly type: "string";
721
+ };
722
+ };
723
+ readonly readOnly: true;
724
+ readonly required: readonly ["kind"];
725
+ readonly type: "object";
726
+ };
727
+ };
728
+ readonly readOnly: true;
729
+ readonly required: readonly ["optionId", "label", "decision", "persistence", "scope"];
730
+ readonly type: "object";
731
+ };
732
+ readonly __schema4: {
684
733
  readonly format: "date-time";
685
734
  readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
686
735
  readonly type: "string";
687
736
  };
688
- readonly __schema2: {
737
+ readonly __schema5: {
689
738
  readonly oneOf: readonly [{
690
739
  readonly additionalProperties: false;
691
740
  readonly properties: {
@@ -742,7 +791,7 @@ export declare const AGENT_REQUEST_JSON_SCHEMA: {
742
791
  };
743
792
  readonly options: {
744
793
  readonly items: {
745
- readonly $ref: "#/$defs/__schema3";
794
+ readonly $ref: "#/$defs/__schema6";
746
795
  };
747
796
  readonly maxItems: 100;
748
797
  readonly minItems: 1;
@@ -784,7 +833,7 @@ export declare const AGENT_REQUEST_JSON_SCHEMA: {
784
833
  readonly type: "object";
785
834
  }];
786
835
  };
787
- readonly __schema3: {
836
+ readonly __schema6: {
788
837
  readonly additionalProperties: false;
789
838
  readonly properties: {
790
839
  readonly description: {
@@ -810,18 +859,25 @@ export declare const AGENT_REQUEST_JSON_SCHEMA: {
810
859
  readonly type: "object";
811
860
  };
812
861
  };
813
- readonly $id: "urn:agenai.agent-protocol.request:v6:output";
862
+ readonly $id: "urn:agenai.agent-protocol.request:v7:output";
814
863
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
815
864
  readonly oneOf: readonly [{
816
865
  readonly additionalProperties: false;
817
866
  readonly properties: {
818
867
  readonly expiresAt: {
819
- readonly $ref: "#/$defs/__schema1";
868
+ readonly $ref: "#/$defs/__schema4";
869
+ };
870
+ readonly options: {
871
+ readonly items: {
872
+ readonly $ref: "#/$defs/__schema3";
873
+ };
874
+ readonly maxItems: 16;
875
+ readonly minItems: 1;
876
+ readonly readOnly: true;
877
+ readonly type: "array";
820
878
  };
821
879
  readonly prompt: {
822
- readonly maxLength: 4000;
823
- readonly minLength: 1;
824
- readonly type: "string";
880
+ readonly $ref: "#/$defs/__schema1";
825
881
  };
826
882
  readonly requestId: {
827
883
  readonly $ref: "#/$defs/__schema0";
@@ -838,17 +894,14 @@ export declare const AGENT_REQUEST_JSON_SCHEMA: {
838
894
  readonly $ref: "#/$defs/__schema0";
839
895
  };
840
896
  readonly description: {
841
- readonly maxLength: 2000;
842
- readonly type: "string";
897
+ readonly $ref: "#/$defs/__schema1";
843
898
  };
844
899
  readonly kind: {
845
900
  readonly const: "plan";
846
901
  readonly type: "string";
847
902
  };
848
903
  readonly title: {
849
- readonly maxLength: 200;
850
- readonly minLength: 1;
851
- readonly type: "string";
904
+ readonly $ref: "#/$defs/__schema2";
852
905
  };
853
906
  };
854
907
  readonly readOnly: true;
@@ -858,37 +911,37 @@ export declare const AGENT_REQUEST_JSON_SCHEMA: {
858
911
  readonly additionalProperties: false;
859
912
  readonly properties: {
860
913
  readonly description: {
861
- readonly maxLength: 2000;
862
- readonly type: "string";
914
+ readonly $ref: "#/$defs/__schema1";
915
+ };
916
+ readonly itemId: {
917
+ readonly $ref: "#/$defs/__schema0";
863
918
  };
864
919
  readonly kind: {
865
920
  readonly enum: readonly ["command", "file_change", "tool", "other"];
866
921
  readonly type: "string";
867
922
  };
868
923
  readonly title: {
869
- readonly maxLength: 200;
870
- readonly minLength: 1;
871
- readonly type: "string";
924
+ readonly $ref: "#/$defs/__schema2";
872
925
  };
873
926
  };
874
927
  readonly readOnly: true;
875
- readonly required: readonly ["kind", "title"];
928
+ readonly required: readonly ["kind", "title", "itemId"];
876
929
  readonly type: "object";
877
930
  }];
878
931
  };
879
932
  };
880
933
  readonly readOnly: true;
881
- readonly required: readonly ["requestKind", "requestId", "prompt", "subject"];
934
+ readonly required: readonly ["requestKind", "requestId", "prompt", "subject", "options"];
882
935
  readonly type: "object";
883
936
  }, {
884
937
  readonly additionalProperties: false;
885
938
  readonly properties: {
886
939
  readonly expiresAt: {
887
- readonly $ref: "#/$defs/__schema1";
940
+ readonly $ref: "#/$defs/__schema4";
888
941
  };
889
942
  readonly fields: {
890
943
  readonly items: {
891
- readonly $ref: "#/$defs/__schema2";
944
+ readonly $ref: "#/$defs/__schema5";
892
945
  };
893
946
  readonly maxItems: 100;
894
947
  readonly minItems: 1;
@@ -916,11 +969,11 @@ export declare const AGENT_REQUEST_JSON_SCHEMA: {
916
969
  };
917
970
  export declare const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA: {
918
971
  readonly contractId: "agenai.agent-protocol.request-resolution";
919
- readonly protocolVersion: 6;
972
+ readonly protocolVersion: 7;
920
973
  readonly direction: "input";
921
974
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
922
975
  readonly parserInvariants: readonly ["request_resolution_correlation", "unique_choice_selections"];
923
- readonly sha256: "eaea1e3085e8aa12cfadbd46f0e10b8c03074c5ebd817c4afbc9353aafcec378";
976
+ readonly sha256: "fc6981d292f1fa573090221a2297552865e2c0deb2075bb503730009d0b1f93d";
924
977
  readonly schema: {
925
978
  readonly $defs: {
926
979
  readonly __schema0: {
@@ -1005,26 +1058,49 @@ export declare const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA: {
1005
1058
  }];
1006
1059
  };
1007
1060
  };
1008
- readonly $id: "urn:agenai.agent-protocol.request-resolution:v6:input";
1061
+ readonly $id: "urn:agenai.agent-protocol.request-resolution:v7:input";
1009
1062
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1010
1063
  readonly anyOf: readonly [{
1011
- readonly additionalProperties: false;
1012
- readonly properties: {
1013
- readonly decision: {
1014
- readonly enum: readonly ["approved", "denied", "canceled"];
1015
- readonly type: "string";
1016
- };
1017
- readonly requestId: {
1018
- readonly $ref: "#/$defs/__schema0";
1064
+ readonly oneOf: readonly [{
1065
+ readonly additionalProperties: false;
1066
+ readonly properties: {
1067
+ readonly disposition: {
1068
+ readonly const: "selected";
1069
+ readonly type: "string";
1070
+ };
1071
+ readonly optionId: {
1072
+ readonly $ref: "#/$defs/__schema0";
1073
+ };
1074
+ readonly requestId: {
1075
+ readonly $ref: "#/$defs/__schema0";
1076
+ };
1077
+ readonly requestKind: {
1078
+ readonly const: "approval";
1079
+ readonly type: "string";
1080
+ };
1019
1081
  };
1020
- readonly requestKind: {
1021
- readonly const: "approval";
1022
- readonly type: "string";
1082
+ readonly readOnly: true;
1083
+ readonly required: readonly ["requestKind", "requestId", "disposition", "optionId"];
1084
+ readonly type: "object";
1085
+ }, {
1086
+ readonly additionalProperties: false;
1087
+ readonly properties: {
1088
+ readonly disposition: {
1089
+ readonly const: "canceled";
1090
+ readonly type: "string";
1091
+ };
1092
+ readonly requestId: {
1093
+ readonly $ref: "#/$defs/__schema0";
1094
+ };
1095
+ readonly requestKind: {
1096
+ readonly const: "approval";
1097
+ readonly type: "string";
1098
+ };
1023
1099
  };
1024
- };
1025
- readonly readOnly: true;
1026
- readonly required: readonly ["requestKind", "requestId", "decision"];
1027
- readonly type: "object";
1100
+ readonly readOnly: true;
1101
+ readonly required: readonly ["requestKind", "requestId", "disposition"];
1102
+ readonly type: "object";
1103
+ }];
1028
1104
  }, {
1029
1105
  readonly additionalProperties: false;
1030
1106
  readonly properties: {
@@ -1074,11 +1150,11 @@ export declare const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA: {
1074
1150
  };
1075
1151
  export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1076
1152
  readonly contractId: "agenai.agent-protocol.capabilities";
1077
- readonly protocolVersion: 6;
1153
+ readonly protocolVersion: 7;
1078
1154
  readonly direction: "output";
1079
1155
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
1080
- readonly parserInvariants: readonly ["canonical_artifact_kinds", "canonical_authentication_flows", "canonical_configuration_field_keys", "canonical_configuration_option_ids", "canonical_image_input_media_types", "canonical_image_input_source_kinds", "image_input_pixels_bounded_by_dimensions", "image_input_total_bytes_admits_max_image", "image_input_total_bytes_bounded_by_count"];
1081
- readonly sha256: "cf141867eaa720f2f5a0bc7bbfd337c86c9b37d0932abdf4fc88386d1cc26194";
1156
+ readonly parserInvariants: readonly ["canonical_artifact_kinds", "canonical_approval_modes", "canonical_approval_scope_kinds", "canonical_authentication_flows", "canonical_configuration_field_keys", "canonical_configuration_option_ids", "canonical_image_input_media_types", "canonical_image_input_source_kinds", "canonical_context_compaction_triggers", "canonical_context_cumulative_usage_fields", "canonical_context_measurement_scopes", "image_input_pixels_bounded_by_dimensions", "image_input_total_bytes_admits_max_image", "image_input_total_bytes_bounded_by_count"];
1157
+ readonly sha256: "8fd14032d8bff073bba01be29fdb81495d114af9922c627918c19a7bb4bf4f4f";
1082
1158
  readonly schema: {
1083
1159
  readonly $defs: {
1084
1160
  readonly __schema0: {
@@ -1149,14 +1225,34 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1149
1225
  readonly type: "object";
1150
1226
  };
1151
1227
  readonly __schema10: {
1228
+ readonly enum: readonly ["exact_action", "command_pattern", "domain", "tool", "server", "all_edits"];
1229
+ readonly type: "string";
1230
+ };
1231
+ readonly __schema11: {
1232
+ readonly enum: readonly ["session", "materialization"];
1233
+ readonly type: "string";
1234
+ };
1235
+ readonly __schema12: {
1236
+ readonly enum: readonly ["inputTokens", "outputTokens", "cachedReadTokens", "cacheCreationTokens", "reasoningTokens", "modelCalls", "turns"];
1237
+ readonly type: "string";
1238
+ };
1239
+ readonly __schema13: {
1240
+ readonly enum: readonly ["automatic", "manual", "context_limit", "recovery", "unknown"];
1241
+ readonly type: "string";
1242
+ };
1243
+ readonly __schema14: {
1244
+ readonly enum: readonly ["plan", "diff", "file", "log", "image", "report", "other"];
1245
+ readonly type: "string";
1246
+ };
1247
+ readonly __schema15: {
1152
1248
  readonly additionalProperties: false;
1153
1249
  readonly properties: {
1154
1250
  readonly key: {
1155
- readonly $ref: "#/$defs/__schema11";
1251
+ readonly $ref: "#/$defs/__schema16";
1156
1252
  };
1157
1253
  readonly optionIds: {
1158
1254
  readonly items: {
1159
- readonly $ref: "#/$defs/__schema11";
1255
+ readonly $ref: "#/$defs/__schema16";
1160
1256
  };
1161
1257
  readonly maxItems: 100;
1162
1258
  readonly minItems: 1;
@@ -1169,13 +1265,13 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1169
1265
  readonly required: readonly ["key", "optionIds"];
1170
1266
  readonly type: "object";
1171
1267
  };
1172
- readonly __schema11: {
1268
+ readonly __schema16: {
1173
1269
  readonly maxLength: 100;
1174
1270
  readonly minLength: 1;
1175
1271
  readonly pattern: "^[a-z][a-z0-9._:-]*$";
1176
1272
  readonly type: "string";
1177
1273
  };
1178
- readonly __schema12: {
1274
+ readonly __schema17: {
1179
1275
  readonly enum: readonly ["device_code", "browser", "terminal"];
1180
1276
  readonly type: "string";
1181
1277
  };
@@ -1220,11 +1316,29 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1220
1316
  readonly type: "boolean";
1221
1317
  };
1222
1318
  readonly __schema9: {
1223
- readonly enum: readonly ["plan", "diff", "file", "log", "image", "report", "other"];
1224
- readonly type: "string";
1319
+ readonly additionalProperties: false;
1320
+ readonly properties: {
1321
+ readonly persistence: {
1322
+ readonly enum: readonly ["once", "session", "workspace"];
1323
+ readonly type: "string";
1324
+ };
1325
+ readonly scopeKinds: {
1326
+ readonly items: {
1327
+ readonly $ref: "#/$defs/__schema10";
1328
+ };
1329
+ readonly maxItems: 6;
1330
+ readonly minItems: 1;
1331
+ readonly readOnly: true;
1332
+ readonly type: "array";
1333
+ readonly uniqueItems: true;
1334
+ };
1335
+ };
1336
+ readonly readOnly: true;
1337
+ readonly required: readonly ["persistence", "scopeKinds"];
1338
+ readonly type: "object";
1225
1339
  };
1226
1340
  };
1227
- readonly $id: "urn:agenai.agent-protocol.capabilities:v6:output";
1341
+ readonly $id: "urn:agenai.agent-protocol.capabilities:v7:output";
1228
1342
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1229
1343
  readonly additionalProperties: false;
1230
1344
  readonly properties: {
@@ -1245,7 +1359,7 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1245
1359
  readonly properties: {
1246
1360
  readonly flows: {
1247
1361
  readonly items: {
1248
- readonly $ref: "#/$defs/__schema12";
1362
+ readonly $ref: "#/$defs/__schema17";
1249
1363
  };
1250
1364
  readonly maxItems: 3;
1251
1365
  readonly minItems: 1;
@@ -1280,7 +1394,7 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1280
1394
  readonly properties: {
1281
1395
  readonly fields: {
1282
1396
  readonly items: {
1283
- readonly $ref: "#/$defs/__schema10";
1397
+ readonly $ref: "#/$defs/__schema15";
1284
1398
  };
1285
1399
  readonly maxItems: 100;
1286
1400
  readonly minItems: 1;
@@ -1297,6 +1411,96 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1297
1411
  readonly type: "object";
1298
1412
  }];
1299
1413
  };
1414
+ readonly context: {
1415
+ readonly additionalProperties: false;
1416
+ readonly properties: {
1417
+ readonly compaction: {
1418
+ readonly oneOf: readonly [{
1419
+ readonly additionalProperties: false;
1420
+ readonly properties: {
1421
+ readonly kind: {
1422
+ readonly const: "unsupported";
1423
+ readonly type: "string";
1424
+ };
1425
+ };
1426
+ readonly readOnly: true;
1427
+ readonly required: readonly ["kind"];
1428
+ readonly type: "object";
1429
+ }, {
1430
+ readonly additionalProperties: false;
1431
+ readonly properties: {
1432
+ readonly kind: {
1433
+ readonly const: "supported";
1434
+ readonly type: "string";
1435
+ };
1436
+ readonly sameSessionContinuation: {
1437
+ readonly type: "boolean";
1438
+ };
1439
+ readonly triggers: {
1440
+ readonly items: {
1441
+ readonly $ref: "#/$defs/__schema13";
1442
+ };
1443
+ readonly maxItems: 5;
1444
+ readonly minItems: 1;
1445
+ readonly readOnly: true;
1446
+ readonly type: "array";
1447
+ readonly uniqueItems: true;
1448
+ };
1449
+ };
1450
+ readonly readOnly: true;
1451
+ readonly required: readonly ["kind", "triggers", "sameSessionContinuation"];
1452
+ readonly type: "object";
1453
+ }];
1454
+ };
1455
+ readonly usage: {
1456
+ readonly oneOf: readonly [{
1457
+ readonly additionalProperties: false;
1458
+ readonly properties: {
1459
+ readonly kind: {
1460
+ readonly const: "unsupported";
1461
+ readonly type: "string";
1462
+ };
1463
+ };
1464
+ readonly readOnly: true;
1465
+ readonly required: readonly ["kind"];
1466
+ readonly type: "object";
1467
+ }, {
1468
+ readonly additionalProperties: false;
1469
+ readonly properties: {
1470
+ readonly cumulativeFields: {
1471
+ readonly items: {
1472
+ readonly $ref: "#/$defs/__schema12";
1473
+ };
1474
+ readonly maxItems: 7;
1475
+ readonly readOnly: true;
1476
+ readonly type: "array";
1477
+ readonly uniqueItems: true;
1478
+ };
1479
+ readonly kind: {
1480
+ readonly const: "supported";
1481
+ readonly type: "string";
1482
+ };
1483
+ readonly measurementScopes: {
1484
+ readonly items: {
1485
+ readonly $ref: "#/$defs/__schema11";
1486
+ };
1487
+ readonly maxItems: 2;
1488
+ readonly minItems: 1;
1489
+ readonly readOnly: true;
1490
+ readonly type: "array";
1491
+ readonly uniqueItems: true;
1492
+ };
1493
+ };
1494
+ readonly readOnly: true;
1495
+ readonly required: readonly ["kind", "measurementScopes", "cumulativeFields"];
1496
+ readonly type: "object";
1497
+ }];
1498
+ };
1499
+ };
1500
+ readonly readOnly: true;
1501
+ readonly required: readonly ["usage", "compaction"];
1502
+ readonly type: "object";
1503
+ };
1300
1504
  readonly input: {
1301
1505
  readonly $ref: "#/$defs/__schema1";
1302
1506
  };
@@ -1325,7 +1529,7 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1325
1529
  readonly properties: {
1326
1530
  readonly artifactKinds: {
1327
1531
  readonly items: {
1328
- readonly $ref: "#/$defs/__schema9";
1532
+ readonly $ref: "#/$defs/__schema14";
1329
1533
  };
1330
1534
  readonly maxItems: 7;
1331
1535
  readonly readOnly: true;
@@ -1348,7 +1552,7 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1348
1552
  readonly type: "object";
1349
1553
  };
1350
1554
  readonly protocolVersion: {
1351
- readonly const: 6;
1555
+ readonly const: 7;
1352
1556
  readonly type: "number";
1353
1557
  };
1354
1558
  readonly providerKey: {
@@ -1361,7 +1565,38 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1361
1565
  readonly additionalProperties: false;
1362
1566
  readonly properties: {
1363
1567
  readonly approval: {
1364
- readonly type: "boolean";
1568
+ readonly oneOf: readonly [{
1569
+ readonly additionalProperties: false;
1570
+ readonly properties: {
1571
+ readonly kind: {
1572
+ readonly const: "unsupported";
1573
+ readonly type: "string";
1574
+ };
1575
+ };
1576
+ readonly readOnly: true;
1577
+ readonly required: readonly ["kind"];
1578
+ readonly type: "object";
1579
+ }, {
1580
+ readonly additionalProperties: false;
1581
+ readonly properties: {
1582
+ readonly kind: {
1583
+ readonly const: "supported";
1584
+ readonly type: "string";
1585
+ };
1586
+ readonly modes: {
1587
+ readonly items: {
1588
+ readonly $ref: "#/$defs/__schema9";
1589
+ };
1590
+ readonly maxItems: 3;
1591
+ readonly minItems: 1;
1592
+ readonly readOnly: true;
1593
+ readonly type: "array";
1594
+ };
1595
+ };
1596
+ readonly readOnly: true;
1597
+ readonly required: readonly ["kind", "modes"];
1598
+ readonly type: "object";
1599
+ }];
1365
1600
  };
1366
1601
  readonly elicitation: {
1367
1602
  readonly oneOf: readonly [{
@@ -1498,19 +1733,19 @@ export declare const AGENT_CAPABILITIES_JSON_SCHEMA: {
1498
1733
  };
1499
1734
  };
1500
1735
  readonly readOnly: true;
1501
- readonly required: readonly ["protocolVersion", "providerKey", "sessions", "turns", "requests", "input", "output", "configuration", "interactionExtensions", "authentication", "versionReporting"];
1736
+ readonly required: readonly ["protocolVersion", "providerKey", "sessions", "turns", "requests", "context", "input", "output", "configuration", "interactionExtensions", "authentication", "versionReporting"];
1502
1737
  readonly type: "object";
1503
1738
  };
1504
1739
  };
1505
1740
  export declare const AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA: {
1506
1741
  readonly contractId: "agenai.agent-protocol.artifact-descriptor";
1507
- readonly protocolVersion: 6;
1742
+ readonly protocolVersion: 7;
1508
1743
  readonly direction: "output";
1509
1744
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
1510
1745
  readonly parserInvariants: readonly [];
1511
- readonly sha256: "2a4b28b6bd744a37123ed312fb33c950229ebdfe6669de274ef35550a7fa1621";
1746
+ readonly sha256: "1851ea52b6f69482ffa571773cf3211ca9bd9a9a5dbeee2ad7293dd4dfa89c0b";
1512
1747
  readonly schema: {
1513
- readonly $id: "urn:agenai.agent-protocol.artifact-descriptor:v6:output";
1748
+ readonly $id: "urn:agenai.agent-protocol.artifact-descriptor:v7:output";
1514
1749
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
1515
1750
  readonly additionalProperties: false;
1516
1751
  readonly properties: {
@@ -1569,15 +1804,15 @@ export declare const AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA: {
1569
1804
  };
1570
1805
  export declare const AGENT_EVENT_JSON_SCHEMA: {
1571
1806
  readonly contractId: "agenai.agent-protocol.event";
1572
- readonly protocolVersion: 6;
1807
+ readonly protocolVersion: 7;
1573
1808
  readonly direction: "output";
1574
1809
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
1575
- readonly parserInvariants: readonly ["event_state_correlation", "file_change_path_ordering_and_uniqueness", "item_detail_identification", "non_empty_provider_refs", "request_semantics", "serialized_bytes", "terminal_error_consistency"];
1576
- readonly sha256: "9dce4047572c25423b2d3701e5722c58dc63a89e764d38c87db886c02342a929";
1810
+ readonly parserInvariants: readonly ["event_state_correlation", "context_usage_bounds", "file_change_path_ordering_and_uniqueness", "item_detail_identification", "non_empty_provider_refs", "request_semantics", "serialized_bytes", "terminal_error_consistency"];
1811
+ readonly sha256: "4f4aafd983446decc2782f9c7534c038ceb2d0dc247920639bb5afc659fe35c3";
1577
1812
  readonly schema: {
1578
1813
  readonly $defs: {
1579
1814
  readonly __schema0: {
1580
- readonly const: 6;
1815
+ readonly const: 7;
1581
1816
  readonly type: "number";
1582
1817
  };
1583
1818
  readonly __schema1: {
@@ -1740,6 +1975,32 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
1740
1975
  readonly type: "string";
1741
1976
  };
1742
1977
  readonly __schema39: {
1978
+ readonly enum: readonly ["automatic", "manual", "context_limit", "recovery", "unknown"];
1979
+ readonly type: "string";
1980
+ };
1981
+ readonly __schema4: {
1982
+ readonly format: "date-time";
1983
+ readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
1984
+ readonly type: "string";
1985
+ };
1986
+ readonly __schema40: {
1987
+ readonly $ref: "#/$defs/__schema19";
1988
+ };
1989
+ readonly __schema41: {
1990
+ readonly $ref: "#/$defs/__schema19";
1991
+ };
1992
+ readonly __schema42: {
1993
+ readonly maximum: 3600000;
1994
+ readonly minimum: 0;
1995
+ readonly type: "integer";
1996
+ };
1997
+ readonly __schema43: {
1998
+ readonly maxLength: 500;
1999
+ readonly minLength: 1;
2000
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
2001
+ readonly type: "string";
2002
+ };
2003
+ readonly __schema44: {
1743
2004
  readonly additionalProperties: false;
1744
2005
  readonly properties: {
1745
2006
  readonly priority: {
@@ -1759,15 +2020,59 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
1759
2020
  };
1760
2021
  };
1761
2022
  readonly readOnly: true;
1762
- readonly required: readonly ["stepId", "text", "status"];
2023
+ readonly required: readonly ["stepId", "text", "status"];
2024
+ readonly type: "object";
2025
+ };
2026
+ readonly __schema45: {
2027
+ readonly maxLength: 1000;
2028
+ readonly minLength: 1;
2029
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
2030
+ readonly type: "string";
2031
+ };
2032
+ readonly __schema46: {
2033
+ readonly maxLength: 120;
2034
+ readonly minLength: 1;
2035
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
2036
+ readonly type: "string";
2037
+ };
2038
+ readonly __schema47: {
2039
+ readonly additionalProperties: false;
2040
+ readonly properties: {
2041
+ readonly decision: {
2042
+ readonly enum: readonly ["approved", "denied"];
2043
+ readonly type: "string";
2044
+ };
2045
+ readonly description: {
2046
+ readonly $ref: "#/$defs/__schema45";
2047
+ };
2048
+ readonly label: {
2049
+ readonly $ref: "#/$defs/__schema46";
2050
+ };
2051
+ readonly optionId: {
2052
+ readonly $ref: "#/$defs/__schema1";
2053
+ };
2054
+ readonly persistence: {
2055
+ readonly enum: readonly ["once", "session", "workspace"];
2056
+ readonly type: "string";
2057
+ };
2058
+ readonly scope: {
2059
+ readonly additionalProperties: false;
2060
+ readonly properties: {
2061
+ readonly kind: {
2062
+ readonly enum: readonly ["exact_action", "command_pattern", "domain", "tool", "server", "all_edits"];
2063
+ readonly type: "string";
2064
+ };
2065
+ };
2066
+ readonly readOnly: true;
2067
+ readonly required: readonly ["kind"];
2068
+ readonly type: "object";
2069
+ };
2070
+ };
2071
+ readonly readOnly: true;
2072
+ readonly required: readonly ["optionId", "label", "decision", "persistence", "scope"];
1763
2073
  readonly type: "object";
1764
2074
  };
1765
- readonly __schema4: {
1766
- readonly format: "date-time";
1767
- readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
1768
- readonly type: "string";
1769
- };
1770
- readonly __schema40: {
2075
+ readonly __schema48: {
1771
2076
  readonly oneOf: readonly [{
1772
2077
  readonly additionalProperties: false;
1773
2078
  readonly properties: {
@@ -1824,7 +2129,7 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
1824
2129
  };
1825
2130
  readonly options: {
1826
2131
  readonly items: {
1827
- readonly $ref: "#/$defs/__schema41";
2132
+ readonly $ref: "#/$defs/__schema49";
1828
2133
  };
1829
2134
  readonly maxItems: 100;
1830
2135
  readonly minItems: 1;
@@ -1866,7 +2171,7 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
1866
2171
  readonly type: "object";
1867
2172
  }];
1868
2173
  };
1869
- readonly __schema41: {
2174
+ readonly __schema49: {
1870
2175
  readonly additionalProperties: false;
1871
2176
  readonly properties: {
1872
2177
  readonly description: {
@@ -1911,6 +2216,37 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
1911
2216
  readonly required: readonly ["code", "message", "retryable"];
1912
2217
  readonly type: "object";
1913
2218
  };
2219
+ readonly __schema50: {
2220
+ readonly maximum: 9007199254740991;
2221
+ readonly minimum: 0;
2222
+ readonly type: "integer";
2223
+ };
2224
+ readonly __schema51: {
2225
+ readonly exclusiveMinimum: 0;
2226
+ readonly maximum: 9007199254740991;
2227
+ readonly type: "integer";
2228
+ };
2229
+ readonly __schema52: {
2230
+ readonly $ref: "#/$defs/__schema50";
2231
+ };
2232
+ readonly __schema53: {
2233
+ readonly $ref: "#/$defs/__schema50";
2234
+ };
2235
+ readonly __schema54: {
2236
+ readonly $ref: "#/$defs/__schema50";
2237
+ };
2238
+ readonly __schema55: {
2239
+ readonly $ref: "#/$defs/__schema50";
2240
+ };
2241
+ readonly __schema56: {
2242
+ readonly $ref: "#/$defs/__schema50";
2243
+ };
2244
+ readonly __schema57: {
2245
+ readonly $ref: "#/$defs/__schema50";
2246
+ };
2247
+ readonly __schema58: {
2248
+ readonly $ref: "#/$defs/__schema50";
2249
+ };
1914
2250
  readonly __schema6: {
1915
2251
  readonly maxLength: 120;
1916
2252
  readonly minLength: 1;
@@ -2467,6 +2803,29 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
2467
2803
  }, {
2468
2804
  readonly additionalProperties: false;
2469
2805
  readonly properties: {
2806
+ readonly details: {
2807
+ readonly additionalProperties: false;
2808
+ readonly properties: {
2809
+ readonly afterTokens: {
2810
+ readonly $ref: "#/$defs/__schema41";
2811
+ };
2812
+ readonly beforeTokens: {
2813
+ readonly $ref: "#/$defs/__schema40";
2814
+ };
2815
+ readonly durationMs: {
2816
+ readonly $ref: "#/$defs/__schema42";
2817
+ };
2818
+ readonly summaryPreview: {
2819
+ readonly $ref: "#/$defs/__schema43";
2820
+ };
2821
+ readonly trigger: {
2822
+ readonly $ref: "#/$defs/__schema39";
2823
+ };
2824
+ };
2825
+ readonly readOnly: true;
2826
+ readonly required: readonly ["trigger"];
2827
+ readonly type: "object";
2828
+ };
2470
2829
  readonly itemId: {
2471
2830
  readonly $ref: "#/$defs/__schema1";
2472
2831
  };
@@ -2485,7 +2844,7 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
2485
2844
  };
2486
2845
  };
2487
2846
  readonly readOnly: true;
2488
- readonly required: readonly ["itemId", "status", "itemKind"];
2847
+ readonly required: readonly ["itemId", "status", "itemKind", "details"];
2489
2848
  readonly type: "object";
2490
2849
  }, {
2491
2850
  readonly additionalProperties: false;
@@ -2513,7 +2872,7 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
2513
2872
  }];
2514
2873
  };
2515
2874
  };
2516
- readonly $id: "urn:agenai.agent-protocol.event:v6:output";
2875
+ readonly $id: "urn:agenai.agent-protocol.event:v7:output";
2517
2876
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
2518
2877
  readonly oneOf: readonly [{
2519
2878
  readonly additionalProperties: false;
@@ -2789,7 +3148,7 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
2789
3148
  };
2790
3149
  readonly steps: {
2791
3150
  readonly items: {
2792
- readonly $ref: "#/$defs/__schema39";
3151
+ readonly $ref: "#/$defs/__schema44";
2793
3152
  };
2794
3153
  readonly maxItems: 100;
2795
3154
  readonly readOnly: true;
@@ -2943,10 +3302,17 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
2943
3302
  readonly expiresAt: {
2944
3303
  readonly $ref: "#/$defs/__schema4";
2945
3304
  };
3305
+ readonly options: {
3306
+ readonly items: {
3307
+ readonly $ref: "#/$defs/__schema47";
3308
+ };
3309
+ readonly maxItems: 16;
3310
+ readonly minItems: 1;
3311
+ readonly readOnly: true;
3312
+ readonly type: "array";
3313
+ };
2946
3314
  readonly prompt: {
2947
- readonly maxLength: 4000;
2948
- readonly minLength: 1;
2949
- readonly type: "string";
3315
+ readonly $ref: "#/$defs/__schema45";
2950
3316
  };
2951
3317
  readonly requestId: {
2952
3318
  readonly $ref: "#/$defs/__schema1";
@@ -2963,17 +3329,14 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
2963
3329
  readonly $ref: "#/$defs/__schema1";
2964
3330
  };
2965
3331
  readonly description: {
2966
- readonly maxLength: 2000;
2967
- readonly type: "string";
3332
+ readonly $ref: "#/$defs/__schema45";
2968
3333
  };
2969
3334
  readonly kind: {
2970
3335
  readonly const: "plan";
2971
3336
  readonly type: "string";
2972
3337
  };
2973
3338
  readonly title: {
2974
- readonly maxLength: 200;
2975
- readonly minLength: 1;
2976
- readonly type: "string";
3339
+ readonly $ref: "#/$defs/__schema46";
2977
3340
  };
2978
3341
  };
2979
3342
  readonly readOnly: true;
@@ -2983,27 +3346,27 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
2983
3346
  readonly additionalProperties: false;
2984
3347
  readonly properties: {
2985
3348
  readonly description: {
2986
- readonly maxLength: 2000;
2987
- readonly type: "string";
3349
+ readonly $ref: "#/$defs/__schema45";
3350
+ };
3351
+ readonly itemId: {
3352
+ readonly $ref: "#/$defs/__schema1";
2988
3353
  };
2989
3354
  readonly kind: {
2990
3355
  readonly enum: readonly ["command", "file_change", "tool", "other"];
2991
3356
  readonly type: "string";
2992
3357
  };
2993
3358
  readonly title: {
2994
- readonly maxLength: 200;
2995
- readonly minLength: 1;
2996
- readonly type: "string";
3359
+ readonly $ref: "#/$defs/__schema46";
2997
3360
  };
2998
3361
  };
2999
3362
  readonly readOnly: true;
3000
- readonly required: readonly ["kind", "title"];
3363
+ readonly required: readonly ["kind", "title", "itemId"];
3001
3364
  readonly type: "object";
3002
3365
  }];
3003
3366
  };
3004
3367
  };
3005
3368
  readonly readOnly: true;
3006
- readonly required: readonly ["requestKind", "requestId", "prompt", "subject"];
3369
+ readonly required: readonly ["requestKind", "requestId", "prompt", "subject", "options"];
3007
3370
  readonly type: "object";
3008
3371
  }, {
3009
3372
  readonly additionalProperties: false;
@@ -3013,7 +3376,7 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
3013
3376
  };
3014
3377
  readonly fields: {
3015
3378
  readonly items: {
3016
- readonly $ref: "#/$defs/__schema40";
3379
+ readonly $ref: "#/$defs/__schema48";
3017
3380
  };
3018
3381
  readonly maxItems: 100;
3019
3382
  readonly minItems: 1;
@@ -3126,6 +3489,93 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
3126
3489
  readonly readOnly: true;
3127
3490
  readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "turnId", "payload"];
3128
3491
  readonly type: "object";
3492
+ }, {
3493
+ readonly additionalProperties: false;
3494
+ readonly properties: {
3495
+ readonly occurredAt: {
3496
+ readonly $ref: "#/$defs/__schema4";
3497
+ };
3498
+ readonly payload: {
3499
+ readonly additionalProperties: false;
3500
+ readonly properties: {
3501
+ readonly compaction: {
3502
+ readonly additionalProperties: false;
3503
+ readonly properties: {
3504
+ readonly state: {
3505
+ readonly enum: readonly ["idle", "approaching", "in_progress"];
3506
+ readonly type: "string";
3507
+ };
3508
+ readonly thresholdTokens: {
3509
+ readonly $ref: "#/$defs/__schema51";
3510
+ };
3511
+ };
3512
+ readonly readOnly: true;
3513
+ readonly required: readonly ["state"];
3514
+ readonly type: "object";
3515
+ };
3516
+ readonly cumulative: {
3517
+ readonly additionalProperties: false;
3518
+ readonly properties: {
3519
+ readonly cacheCreationTokens: {
3520
+ readonly $ref: "#/$defs/__schema55";
3521
+ };
3522
+ readonly cachedReadTokens: {
3523
+ readonly $ref: "#/$defs/__schema54";
3524
+ };
3525
+ readonly inputTokens: {
3526
+ readonly $ref: "#/$defs/__schema52";
3527
+ };
3528
+ readonly modelCalls: {
3529
+ readonly $ref: "#/$defs/__schema57";
3530
+ };
3531
+ readonly outputTokens: {
3532
+ readonly $ref: "#/$defs/__schema53";
3533
+ };
3534
+ readonly reasoningTokens: {
3535
+ readonly $ref: "#/$defs/__schema56";
3536
+ };
3537
+ readonly turns: {
3538
+ readonly $ref: "#/$defs/__schema58";
3539
+ };
3540
+ };
3541
+ readonly readOnly: true;
3542
+ readonly type: "object";
3543
+ };
3544
+ readonly maxTokens: {
3545
+ readonly $ref: "#/$defs/__schema51";
3546
+ };
3547
+ readonly measurementScope: {
3548
+ readonly enum: readonly ["session", "materialization"];
3549
+ readonly type: "string";
3550
+ };
3551
+ readonly usedTokens: {
3552
+ readonly $ref: "#/$defs/__schema50";
3553
+ };
3554
+ };
3555
+ readonly readOnly: true;
3556
+ readonly required: readonly ["measurementScope", "usedTokens", "maxTokens"];
3557
+ readonly type: "object";
3558
+ };
3559
+ readonly protocolVersion: {
3560
+ readonly $ref: "#/$defs/__schema0";
3561
+ };
3562
+ readonly providerRefs: {
3563
+ readonly $ref: "#/$defs/__schema2";
3564
+ };
3565
+ readonly sessionId: {
3566
+ readonly $ref: "#/$defs/__schema1";
3567
+ };
3568
+ readonly turnId: {
3569
+ readonly $ref: "#/$defs/__schema1";
3570
+ };
3571
+ readonly type: {
3572
+ readonly const: "context.usage.updated";
3573
+ readonly type: "string";
3574
+ };
3575
+ };
3576
+ readonly readOnly: true;
3577
+ readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "turnId", "payload"];
3578
+ readonly type: "object";
3129
3579
  }, {
3130
3580
  readonly additionalProperties: false;
3131
3581
  readonly properties: {
@@ -3343,11 +3793,11 @@ export declare const AGENT_EVENT_JSON_SCHEMA: {
3343
3793
  };
3344
3794
  export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3345
3795
  readonly contractId: "agenai.agent-protocol.session-binding";
3346
- readonly protocolVersion: 6;
3796
+ readonly protocolVersion: 7;
3347
3797
  readonly direction: "output";
3348
3798
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
3349
3799
  readonly parserInvariants: readonly [];
3350
- readonly sha256: "2607b6b9d92e786e24777e189cf08be804438da8fd7ef25bdc70d4f253523b3a";
3800
+ readonly sha256: "640723b204a4b0d6417c92bf9fb08367969cc68193da5ba028fa6348aad24ff6";
3351
3801
  readonly schema: {
3352
3802
  readonly $defs: {
3353
3803
  readonly __schema0: {
@@ -3357,7 +3807,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3357
3807
  readonly type: "string";
3358
3808
  };
3359
3809
  };
3360
- readonly $id: "urn:agenai.agent-protocol.session-binding:v6:output";
3810
+ readonly $id: "urn:agenai.agent-protocol.session-binding:v7:output";
3361
3811
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3362
3812
  readonly additionalProperties: false;
3363
3813
  readonly properties: {
@@ -3374,11 +3824,11 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3374
3824
  };
3375
3825
  }, {
3376
3826
  readonly contractId: "agenai.agent-protocol.session-configuration";
3377
- readonly protocolVersion: 6;
3827
+ readonly protocolVersion: 7;
3378
3828
  readonly direction: "input";
3379
3829
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
3380
3830
  readonly parserInvariants: readonly ["configuration_entry_count", "serialized_bytes"];
3381
- readonly sha256: "f572604f35434cc4c2895dc103e03459822fb1b313b68c747174ff32389b17dc";
3831
+ readonly sha256: "f5979adaa59830e2e95c0755697ecdad8bcea0ac9cbbccd8adc82039ba536664";
3382
3832
  readonly schema: {
3383
3833
  readonly $defs: {
3384
3834
  readonly __schema0: {
@@ -3416,7 +3866,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3416
3866
  }];
3417
3867
  };
3418
3868
  };
3419
- readonly $id: "urn:agenai.agent-protocol.session-configuration:v6:input";
3869
+ readonly $id: "urn:agenai.agent-protocol.session-configuration:v7:input";
3420
3870
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3421
3871
  readonly additionalProperties: false;
3422
3872
  readonly properties: {
@@ -3443,11 +3893,11 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3443
3893
  };
3444
3894
  }, {
3445
3895
  readonly contractId: "agenai.agent-protocol.session-open-input";
3446
- readonly protocolVersion: 6;
3896
+ readonly protocolVersion: 7;
3447
3897
  readonly direction: "input";
3448
3898
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
3449
3899
  readonly parserInvariants: readonly ["configuration_entry_count", "distinct_branch_session_ids", "serialized_bytes"];
3450
- readonly sha256: "229a62054dd3cc0d017e0360cb858b590feea8eb0f8aa6d28ac659fd07368790";
3900
+ readonly sha256: "d21be9ed78d06ba421f349b45e48d4aff338c45047335d369102757f860f01ad";
3451
3901
  readonly schema: {
3452
3902
  readonly $defs: {
3453
3903
  readonly __schema0: {
@@ -3532,7 +3982,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3532
3982
  readonly type: "string";
3533
3983
  };
3534
3984
  };
3535
- readonly $id: "urn:agenai.agent-protocol.session-open-input:v6:input";
3985
+ readonly $id: "urn:agenai.agent-protocol.session-open-input:v7:input";
3536
3986
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3537
3987
  readonly oneOf: readonly [{
3538
3988
  readonly additionalProperties: false;
@@ -3620,11 +4070,11 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3620
4070
  };
3621
4071
  }, {
3622
4072
  readonly contractId: "agenai.agent-protocol.turn-input-content";
3623
- readonly protocolVersion: 6;
4073
+ readonly protocolVersion: 7;
3624
4074
  readonly direction: "input";
3625
4075
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
3626
4076
  readonly parserInvariants: readonly ["inline_image_decoded_byte_size", "serialized_bytes"];
3627
- readonly sha256: "e16e907c7f656e48074fd5514d9ec2d9893eac19da296884d03af1aaf617d9a3";
4077
+ readonly sha256: "bf447b3f55eee50d25028fb0531029476779d421048ae2bda0cade39ccc831e8";
3628
4078
  readonly schema: {
3629
4079
  readonly $defs: {
3630
4080
  readonly __schema0: {
@@ -3786,7 +4236,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3786
4236
  readonly type: "string";
3787
4237
  };
3788
4238
  };
3789
- readonly $id: "urn:agenai.agent-protocol.turn-input-content:v6:input";
4239
+ readonly $id: "urn:agenai.agent-protocol.turn-input-content:v7:input";
3790
4240
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3791
4241
  readonly additionalProperties: false;
3792
4242
  readonly properties: {
@@ -3802,11 +4252,11 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3802
4252
  };
3803
4253
  }, {
3804
4254
  readonly contractId: "agenai.agent-protocol.turn-run-input";
3805
- readonly protocolVersion: 6;
4255
+ readonly protocolVersion: 7;
3806
4256
  readonly direction: "input";
3807
4257
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
3808
4258
  readonly parserInvariants: readonly ["inline_image_decoded_byte_size", "serialized_bytes"];
3809
- readonly sha256: "9eed73d589c31a2c0e54073ad694c60acce6ed2fe97209c3c9997634f75c0a85";
4259
+ readonly sha256: "863a8b3c0c58ed3276c79d93a05f9a8c7d8b909a79e4c58370ab3a723afbd98a";
3810
4260
  readonly schema: {
3811
4261
  readonly $defs: {
3812
4262
  readonly __schema0: {
@@ -3955,7 +4405,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3955
4405
  readonly type: "string";
3956
4406
  };
3957
4407
  };
3958
- readonly $id: "urn:agenai.agent-protocol.turn-run-input:v6:input";
4408
+ readonly $id: "urn:agenai.agent-protocol.turn-run-input:v7:input";
3959
4409
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
3960
4410
  readonly additionalProperties: false;
3961
4411
  readonly properties: {
@@ -3994,11 +4444,11 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
3994
4444
  };
3995
4445
  }, {
3996
4446
  readonly contractId: "agenai.agent-protocol.request";
3997
- readonly protocolVersion: 6;
4447
+ readonly protocolVersion: 7;
3998
4448
  readonly direction: "output";
3999
4449
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
4000
- readonly parserInvariants: readonly ["unique_field_ids", "unique_choice_values"];
4001
- readonly sha256: "6effd40d27037be8d25661daf9897e21bcb9fa90c4a937ba3a675ea1d5031250";
4450
+ readonly parserInvariants: readonly ["unique_approval_option_ids", "unique_field_ids", "unique_choice_values"];
4451
+ readonly sha256: "f451cb5d1fe75b7b1821c66a71fa550780f1cae7e4c15dd252104c57521097a4";
4002
4452
  readonly schema: {
4003
4453
  readonly $defs: {
4004
4454
  readonly __schema0: {
@@ -4008,11 +4458,60 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4008
4458
  readonly type: "string";
4009
4459
  };
4010
4460
  readonly __schema1: {
4461
+ readonly maxLength: 1000;
4462
+ readonly minLength: 1;
4463
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
4464
+ readonly type: "string";
4465
+ };
4466
+ readonly __schema2: {
4467
+ readonly maxLength: 120;
4468
+ readonly minLength: 1;
4469
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
4470
+ readonly type: "string";
4471
+ };
4472
+ readonly __schema3: {
4473
+ readonly additionalProperties: false;
4474
+ readonly properties: {
4475
+ readonly decision: {
4476
+ readonly enum: readonly ["approved", "denied"];
4477
+ readonly type: "string";
4478
+ };
4479
+ readonly description: {
4480
+ readonly $ref: "#/$defs/__schema1";
4481
+ };
4482
+ readonly label: {
4483
+ readonly $ref: "#/$defs/__schema2";
4484
+ };
4485
+ readonly optionId: {
4486
+ readonly $ref: "#/$defs/__schema0";
4487
+ };
4488
+ readonly persistence: {
4489
+ readonly enum: readonly ["once", "session", "workspace"];
4490
+ readonly type: "string";
4491
+ };
4492
+ readonly scope: {
4493
+ readonly additionalProperties: false;
4494
+ readonly properties: {
4495
+ readonly kind: {
4496
+ readonly enum: readonly ["exact_action", "command_pattern", "domain", "tool", "server", "all_edits"];
4497
+ readonly type: "string";
4498
+ };
4499
+ };
4500
+ readonly readOnly: true;
4501
+ readonly required: readonly ["kind"];
4502
+ readonly type: "object";
4503
+ };
4504
+ };
4505
+ readonly readOnly: true;
4506
+ readonly required: readonly ["optionId", "label", "decision", "persistence", "scope"];
4507
+ readonly type: "object";
4508
+ };
4509
+ readonly __schema4: {
4011
4510
  readonly format: "date-time";
4012
4511
  readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
4013
4512
  readonly type: "string";
4014
4513
  };
4015
- readonly __schema2: {
4514
+ readonly __schema5: {
4016
4515
  readonly oneOf: readonly [{
4017
4516
  readonly additionalProperties: false;
4018
4517
  readonly properties: {
@@ -4069,7 +4568,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4069
4568
  };
4070
4569
  readonly options: {
4071
4570
  readonly items: {
4072
- readonly $ref: "#/$defs/__schema3";
4571
+ readonly $ref: "#/$defs/__schema6";
4073
4572
  };
4074
4573
  readonly maxItems: 100;
4075
4574
  readonly minItems: 1;
@@ -4111,7 +4610,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4111
4610
  readonly type: "object";
4112
4611
  }];
4113
4612
  };
4114
- readonly __schema3: {
4613
+ readonly __schema6: {
4115
4614
  readonly additionalProperties: false;
4116
4615
  readonly properties: {
4117
4616
  readonly description: {
@@ -4137,18 +4636,25 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4137
4636
  readonly type: "object";
4138
4637
  };
4139
4638
  };
4140
- readonly $id: "urn:agenai.agent-protocol.request:v6:output";
4639
+ readonly $id: "urn:agenai.agent-protocol.request:v7:output";
4141
4640
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
4142
4641
  readonly oneOf: readonly [{
4143
4642
  readonly additionalProperties: false;
4144
4643
  readonly properties: {
4145
4644
  readonly expiresAt: {
4146
- readonly $ref: "#/$defs/__schema1";
4645
+ readonly $ref: "#/$defs/__schema4";
4646
+ };
4647
+ readonly options: {
4648
+ readonly items: {
4649
+ readonly $ref: "#/$defs/__schema3";
4650
+ };
4651
+ readonly maxItems: 16;
4652
+ readonly minItems: 1;
4653
+ readonly readOnly: true;
4654
+ readonly type: "array";
4147
4655
  };
4148
4656
  readonly prompt: {
4149
- readonly maxLength: 4000;
4150
- readonly minLength: 1;
4151
- readonly type: "string";
4657
+ readonly $ref: "#/$defs/__schema1";
4152
4658
  };
4153
4659
  readonly requestId: {
4154
4660
  readonly $ref: "#/$defs/__schema0";
@@ -4165,17 +4671,14 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4165
4671
  readonly $ref: "#/$defs/__schema0";
4166
4672
  };
4167
4673
  readonly description: {
4168
- readonly maxLength: 2000;
4169
- readonly type: "string";
4674
+ readonly $ref: "#/$defs/__schema1";
4170
4675
  };
4171
4676
  readonly kind: {
4172
4677
  readonly const: "plan";
4173
4678
  readonly type: "string";
4174
4679
  };
4175
4680
  readonly title: {
4176
- readonly maxLength: 200;
4177
- readonly minLength: 1;
4178
- readonly type: "string";
4681
+ readonly $ref: "#/$defs/__schema2";
4179
4682
  };
4180
4683
  };
4181
4684
  readonly readOnly: true;
@@ -4185,37 +4688,37 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4185
4688
  readonly additionalProperties: false;
4186
4689
  readonly properties: {
4187
4690
  readonly description: {
4188
- readonly maxLength: 2000;
4189
- readonly type: "string";
4691
+ readonly $ref: "#/$defs/__schema1";
4692
+ };
4693
+ readonly itemId: {
4694
+ readonly $ref: "#/$defs/__schema0";
4190
4695
  };
4191
4696
  readonly kind: {
4192
4697
  readonly enum: readonly ["command", "file_change", "tool", "other"];
4193
4698
  readonly type: "string";
4194
4699
  };
4195
4700
  readonly title: {
4196
- readonly maxLength: 200;
4197
- readonly minLength: 1;
4198
- readonly type: "string";
4701
+ readonly $ref: "#/$defs/__schema2";
4199
4702
  };
4200
4703
  };
4201
4704
  readonly readOnly: true;
4202
- readonly required: readonly ["kind", "title"];
4705
+ readonly required: readonly ["kind", "title", "itemId"];
4203
4706
  readonly type: "object";
4204
4707
  }];
4205
4708
  };
4206
4709
  };
4207
4710
  readonly readOnly: true;
4208
- readonly required: readonly ["requestKind", "requestId", "prompt", "subject"];
4711
+ readonly required: readonly ["requestKind", "requestId", "prompt", "subject", "options"];
4209
4712
  readonly type: "object";
4210
4713
  }, {
4211
4714
  readonly additionalProperties: false;
4212
4715
  readonly properties: {
4213
4716
  readonly expiresAt: {
4214
- readonly $ref: "#/$defs/__schema1";
4717
+ readonly $ref: "#/$defs/__schema4";
4215
4718
  };
4216
4719
  readonly fields: {
4217
4720
  readonly items: {
4218
- readonly $ref: "#/$defs/__schema2";
4721
+ readonly $ref: "#/$defs/__schema5";
4219
4722
  };
4220
4723
  readonly maxItems: 100;
4221
4724
  readonly minItems: 1;
@@ -4242,11 +4745,11 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4242
4745
  };
4243
4746
  }, {
4244
4747
  readonly contractId: "agenai.agent-protocol.request-resolution";
4245
- readonly protocolVersion: 6;
4748
+ readonly protocolVersion: 7;
4246
4749
  readonly direction: "input";
4247
4750
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
4248
4751
  readonly parserInvariants: readonly ["request_resolution_correlation", "unique_choice_selections"];
4249
- readonly sha256: "eaea1e3085e8aa12cfadbd46f0e10b8c03074c5ebd817c4afbc9353aafcec378";
4752
+ readonly sha256: "fc6981d292f1fa573090221a2297552865e2c0deb2075bb503730009d0b1f93d";
4250
4753
  readonly schema: {
4251
4754
  readonly $defs: {
4252
4755
  readonly __schema0: {
@@ -4331,26 +4834,49 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4331
4834
  }];
4332
4835
  };
4333
4836
  };
4334
- readonly $id: "urn:agenai.agent-protocol.request-resolution:v6:input";
4837
+ readonly $id: "urn:agenai.agent-protocol.request-resolution:v7:input";
4335
4838
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
4336
4839
  readonly anyOf: readonly [{
4337
- readonly additionalProperties: false;
4338
- readonly properties: {
4339
- readonly decision: {
4340
- readonly enum: readonly ["approved", "denied", "canceled"];
4341
- readonly type: "string";
4342
- };
4343
- readonly requestId: {
4344
- readonly $ref: "#/$defs/__schema0";
4840
+ readonly oneOf: readonly [{
4841
+ readonly additionalProperties: false;
4842
+ readonly properties: {
4843
+ readonly disposition: {
4844
+ readonly const: "selected";
4845
+ readonly type: "string";
4846
+ };
4847
+ readonly optionId: {
4848
+ readonly $ref: "#/$defs/__schema0";
4849
+ };
4850
+ readonly requestId: {
4851
+ readonly $ref: "#/$defs/__schema0";
4852
+ };
4853
+ readonly requestKind: {
4854
+ readonly const: "approval";
4855
+ readonly type: "string";
4856
+ };
4345
4857
  };
4346
- readonly requestKind: {
4347
- readonly const: "approval";
4348
- readonly type: "string";
4858
+ readonly readOnly: true;
4859
+ readonly required: readonly ["requestKind", "requestId", "disposition", "optionId"];
4860
+ readonly type: "object";
4861
+ }, {
4862
+ readonly additionalProperties: false;
4863
+ readonly properties: {
4864
+ readonly disposition: {
4865
+ readonly const: "canceled";
4866
+ readonly type: "string";
4867
+ };
4868
+ readonly requestId: {
4869
+ readonly $ref: "#/$defs/__schema0";
4870
+ };
4871
+ readonly requestKind: {
4872
+ readonly const: "approval";
4873
+ readonly type: "string";
4874
+ };
4349
4875
  };
4350
- };
4351
- readonly readOnly: true;
4352
- readonly required: readonly ["requestKind", "requestId", "decision"];
4353
- readonly type: "object";
4876
+ readonly readOnly: true;
4877
+ readonly required: readonly ["requestKind", "requestId", "disposition"];
4878
+ readonly type: "object";
4879
+ }];
4354
4880
  }, {
4355
4881
  readonly additionalProperties: false;
4356
4882
  readonly properties: {
@@ -4399,11 +4925,11 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4399
4925
  };
4400
4926
  }, {
4401
4927
  readonly contractId: "agenai.agent-protocol.capabilities";
4402
- readonly protocolVersion: 6;
4928
+ readonly protocolVersion: 7;
4403
4929
  readonly direction: "output";
4404
4930
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
4405
- readonly parserInvariants: readonly ["canonical_artifact_kinds", "canonical_authentication_flows", "canonical_configuration_field_keys", "canonical_configuration_option_ids", "canonical_image_input_media_types", "canonical_image_input_source_kinds", "image_input_pixels_bounded_by_dimensions", "image_input_total_bytes_admits_max_image", "image_input_total_bytes_bounded_by_count"];
4406
- readonly sha256: "cf141867eaa720f2f5a0bc7bbfd337c86c9b37d0932abdf4fc88386d1cc26194";
4931
+ readonly parserInvariants: readonly ["canonical_artifact_kinds", "canonical_approval_modes", "canonical_approval_scope_kinds", "canonical_authentication_flows", "canonical_configuration_field_keys", "canonical_configuration_option_ids", "canonical_image_input_media_types", "canonical_image_input_source_kinds", "canonical_context_compaction_triggers", "canonical_context_cumulative_usage_fields", "canonical_context_measurement_scopes", "image_input_pixels_bounded_by_dimensions", "image_input_total_bytes_admits_max_image", "image_input_total_bytes_bounded_by_count"];
4932
+ readonly sha256: "8fd14032d8bff073bba01be29fdb81495d114af9922c627918c19a7bb4bf4f4f";
4407
4933
  readonly schema: {
4408
4934
  readonly $defs: {
4409
4935
  readonly __schema0: {
@@ -4474,14 +5000,34 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4474
5000
  readonly type: "object";
4475
5001
  };
4476
5002
  readonly __schema10: {
5003
+ readonly enum: readonly ["exact_action", "command_pattern", "domain", "tool", "server", "all_edits"];
5004
+ readonly type: "string";
5005
+ };
5006
+ readonly __schema11: {
5007
+ readonly enum: readonly ["session", "materialization"];
5008
+ readonly type: "string";
5009
+ };
5010
+ readonly __schema12: {
5011
+ readonly enum: readonly ["inputTokens", "outputTokens", "cachedReadTokens", "cacheCreationTokens", "reasoningTokens", "modelCalls", "turns"];
5012
+ readonly type: "string";
5013
+ };
5014
+ readonly __schema13: {
5015
+ readonly enum: readonly ["automatic", "manual", "context_limit", "recovery", "unknown"];
5016
+ readonly type: "string";
5017
+ };
5018
+ readonly __schema14: {
5019
+ readonly enum: readonly ["plan", "diff", "file", "log", "image", "report", "other"];
5020
+ readonly type: "string";
5021
+ };
5022
+ readonly __schema15: {
4477
5023
  readonly additionalProperties: false;
4478
5024
  readonly properties: {
4479
5025
  readonly key: {
4480
- readonly $ref: "#/$defs/__schema11";
5026
+ readonly $ref: "#/$defs/__schema16";
4481
5027
  };
4482
5028
  readonly optionIds: {
4483
5029
  readonly items: {
4484
- readonly $ref: "#/$defs/__schema11";
5030
+ readonly $ref: "#/$defs/__schema16";
4485
5031
  };
4486
5032
  readonly maxItems: 100;
4487
5033
  readonly minItems: 1;
@@ -4494,13 +5040,13 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4494
5040
  readonly required: readonly ["key", "optionIds"];
4495
5041
  readonly type: "object";
4496
5042
  };
4497
- readonly __schema11: {
5043
+ readonly __schema16: {
4498
5044
  readonly maxLength: 100;
4499
5045
  readonly minLength: 1;
4500
5046
  readonly pattern: "^[a-z][a-z0-9._:-]*$";
4501
5047
  readonly type: "string";
4502
5048
  };
4503
- readonly __schema12: {
5049
+ readonly __schema17: {
4504
5050
  readonly enum: readonly ["device_code", "browser", "terminal"];
4505
5051
  readonly type: "string";
4506
5052
  };
@@ -4545,11 +5091,29 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4545
5091
  readonly type: "boolean";
4546
5092
  };
4547
5093
  readonly __schema9: {
4548
- readonly enum: readonly ["plan", "diff", "file", "log", "image", "report", "other"];
4549
- readonly type: "string";
5094
+ readonly additionalProperties: false;
5095
+ readonly properties: {
5096
+ readonly persistence: {
5097
+ readonly enum: readonly ["once", "session", "workspace"];
5098
+ readonly type: "string";
5099
+ };
5100
+ readonly scopeKinds: {
5101
+ readonly items: {
5102
+ readonly $ref: "#/$defs/__schema10";
5103
+ };
5104
+ readonly maxItems: 6;
5105
+ readonly minItems: 1;
5106
+ readonly readOnly: true;
5107
+ readonly type: "array";
5108
+ readonly uniqueItems: true;
5109
+ };
5110
+ };
5111
+ readonly readOnly: true;
5112
+ readonly required: readonly ["persistence", "scopeKinds"];
5113
+ readonly type: "object";
4550
5114
  };
4551
5115
  };
4552
- readonly $id: "urn:agenai.agent-protocol.capabilities:v6:output";
5116
+ readonly $id: "urn:agenai.agent-protocol.capabilities:v7:output";
4553
5117
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
4554
5118
  readonly additionalProperties: false;
4555
5119
  readonly properties: {
@@ -4570,7 +5134,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4570
5134
  readonly properties: {
4571
5135
  readonly flows: {
4572
5136
  readonly items: {
4573
- readonly $ref: "#/$defs/__schema12";
5137
+ readonly $ref: "#/$defs/__schema17";
4574
5138
  };
4575
5139
  readonly maxItems: 3;
4576
5140
  readonly minItems: 1;
@@ -4605,7 +5169,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4605
5169
  readonly properties: {
4606
5170
  readonly fields: {
4607
5171
  readonly items: {
4608
- readonly $ref: "#/$defs/__schema10";
5172
+ readonly $ref: "#/$defs/__schema15";
4609
5173
  };
4610
5174
  readonly maxItems: 100;
4611
5175
  readonly minItems: 1;
@@ -4622,6 +5186,96 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4622
5186
  readonly type: "object";
4623
5187
  }];
4624
5188
  };
5189
+ readonly context: {
5190
+ readonly additionalProperties: false;
5191
+ readonly properties: {
5192
+ readonly compaction: {
5193
+ readonly oneOf: readonly [{
5194
+ readonly additionalProperties: false;
5195
+ readonly properties: {
5196
+ readonly kind: {
5197
+ readonly const: "unsupported";
5198
+ readonly type: "string";
5199
+ };
5200
+ };
5201
+ readonly readOnly: true;
5202
+ readonly required: readonly ["kind"];
5203
+ readonly type: "object";
5204
+ }, {
5205
+ readonly additionalProperties: false;
5206
+ readonly properties: {
5207
+ readonly kind: {
5208
+ readonly const: "supported";
5209
+ readonly type: "string";
5210
+ };
5211
+ readonly sameSessionContinuation: {
5212
+ readonly type: "boolean";
5213
+ };
5214
+ readonly triggers: {
5215
+ readonly items: {
5216
+ readonly $ref: "#/$defs/__schema13";
5217
+ };
5218
+ readonly maxItems: 5;
5219
+ readonly minItems: 1;
5220
+ readonly readOnly: true;
5221
+ readonly type: "array";
5222
+ readonly uniqueItems: true;
5223
+ };
5224
+ };
5225
+ readonly readOnly: true;
5226
+ readonly required: readonly ["kind", "triggers", "sameSessionContinuation"];
5227
+ readonly type: "object";
5228
+ }];
5229
+ };
5230
+ readonly usage: {
5231
+ readonly oneOf: readonly [{
5232
+ readonly additionalProperties: false;
5233
+ readonly properties: {
5234
+ readonly kind: {
5235
+ readonly const: "unsupported";
5236
+ readonly type: "string";
5237
+ };
5238
+ };
5239
+ readonly readOnly: true;
5240
+ readonly required: readonly ["kind"];
5241
+ readonly type: "object";
5242
+ }, {
5243
+ readonly additionalProperties: false;
5244
+ readonly properties: {
5245
+ readonly cumulativeFields: {
5246
+ readonly items: {
5247
+ readonly $ref: "#/$defs/__schema12";
5248
+ };
5249
+ readonly maxItems: 7;
5250
+ readonly readOnly: true;
5251
+ readonly type: "array";
5252
+ readonly uniqueItems: true;
5253
+ };
5254
+ readonly kind: {
5255
+ readonly const: "supported";
5256
+ readonly type: "string";
5257
+ };
5258
+ readonly measurementScopes: {
5259
+ readonly items: {
5260
+ readonly $ref: "#/$defs/__schema11";
5261
+ };
5262
+ readonly maxItems: 2;
5263
+ readonly minItems: 1;
5264
+ readonly readOnly: true;
5265
+ readonly type: "array";
5266
+ readonly uniqueItems: true;
5267
+ };
5268
+ };
5269
+ readonly readOnly: true;
5270
+ readonly required: readonly ["kind", "measurementScopes", "cumulativeFields"];
5271
+ readonly type: "object";
5272
+ }];
5273
+ };
5274
+ };
5275
+ readonly readOnly: true;
5276
+ readonly required: readonly ["usage", "compaction"];
5277
+ readonly type: "object";
5278
+ };
4625
5279
  readonly input: {
4626
5280
  readonly $ref: "#/$defs/__schema1";
4627
5281
  };
@@ -4650,7 +5304,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4650
5304
  readonly properties: {
4651
5305
  readonly artifactKinds: {
4652
5306
  readonly items: {
4653
- readonly $ref: "#/$defs/__schema9";
5307
+ readonly $ref: "#/$defs/__schema14";
4654
5308
  };
4655
5309
  readonly maxItems: 7;
4656
5310
  readonly readOnly: true;
@@ -4673,7 +5327,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4673
5327
  readonly type: "object";
4674
5328
  };
4675
5329
  readonly protocolVersion: {
4676
- readonly const: 6;
5330
+ readonly const: 7;
4677
5331
  readonly type: "number";
4678
5332
  };
4679
5333
  readonly providerKey: {
@@ -4686,7 +5340,38 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4686
5340
  readonly additionalProperties: false;
4687
5341
  readonly properties: {
4688
5342
  readonly approval: {
4689
- readonly type: "boolean";
5343
+ readonly oneOf: readonly [{
5344
+ readonly additionalProperties: false;
5345
+ readonly properties: {
5346
+ readonly kind: {
5347
+ readonly const: "unsupported";
5348
+ readonly type: "string";
5349
+ };
5350
+ };
5351
+ readonly readOnly: true;
5352
+ readonly required: readonly ["kind"];
5353
+ readonly type: "object";
5354
+ }, {
5355
+ readonly additionalProperties: false;
5356
+ readonly properties: {
5357
+ readonly kind: {
5358
+ readonly const: "supported";
5359
+ readonly type: "string";
5360
+ };
5361
+ readonly modes: {
5362
+ readonly items: {
5363
+ readonly $ref: "#/$defs/__schema9";
5364
+ };
5365
+ readonly maxItems: 3;
5366
+ readonly minItems: 1;
5367
+ readonly readOnly: true;
5368
+ readonly type: "array";
5369
+ };
5370
+ };
5371
+ readonly readOnly: true;
5372
+ readonly required: readonly ["kind", "modes"];
5373
+ readonly type: "object";
5374
+ }];
4690
5375
  };
4691
5376
  readonly elicitation: {
4692
5377
  readonly oneOf: readonly [{
@@ -4823,18 +5508,18 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4823
5508
  };
4824
5509
  };
4825
5510
  readonly readOnly: true;
4826
- readonly required: readonly ["protocolVersion", "providerKey", "sessions", "turns", "requests", "input", "output", "configuration", "interactionExtensions", "authentication", "versionReporting"];
5511
+ readonly required: readonly ["protocolVersion", "providerKey", "sessions", "turns", "requests", "context", "input", "output", "configuration", "interactionExtensions", "authentication", "versionReporting"];
4827
5512
  readonly type: "object";
4828
5513
  };
4829
5514
  }, {
4830
5515
  readonly contractId: "agenai.agent-protocol.artifact-descriptor";
4831
- readonly protocolVersion: 6;
5516
+ readonly protocolVersion: 7;
4832
5517
  readonly direction: "output";
4833
5518
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
4834
5519
  readonly parserInvariants: readonly [];
4835
- readonly sha256: "2a4b28b6bd744a37123ed312fb33c950229ebdfe6669de274ef35550a7fa1621";
5520
+ readonly sha256: "1851ea52b6f69482ffa571773cf3211ca9bd9a9a5dbeee2ad7293dd4dfa89c0b";
4836
5521
  readonly schema: {
4837
- readonly $id: "urn:agenai.agent-protocol.artifact-descriptor:v6:output";
5522
+ readonly $id: "urn:agenai.agent-protocol.artifact-descriptor:v7:output";
4838
5523
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
4839
5524
  readonly additionalProperties: false;
4840
5525
  readonly properties: {
@@ -4892,15 +5577,15 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
4892
5577
  };
4893
5578
  }, {
4894
5579
  readonly contractId: "agenai.agent-protocol.event";
4895
- readonly protocolVersion: 6;
5580
+ readonly protocolVersion: 7;
4896
5581
  readonly direction: "output";
4897
5582
  readonly dialect: "https://json-schema.org/draft/2020-12/schema";
4898
- readonly parserInvariants: readonly ["event_state_correlation", "file_change_path_ordering_and_uniqueness", "item_detail_identification", "non_empty_provider_refs", "request_semantics", "serialized_bytes", "terminal_error_consistency"];
4899
- readonly sha256: "9dce4047572c25423b2d3701e5722c58dc63a89e764d38c87db886c02342a929";
5583
+ readonly parserInvariants: readonly ["event_state_correlation", "context_usage_bounds", "file_change_path_ordering_and_uniqueness", "item_detail_identification", "non_empty_provider_refs", "request_semantics", "serialized_bytes", "terminal_error_consistency"];
5584
+ readonly sha256: "4f4aafd983446decc2782f9c7534c038ceb2d0dc247920639bb5afc659fe35c3";
4900
5585
  readonly schema: {
4901
5586
  readonly $defs: {
4902
5587
  readonly __schema0: {
4903
- readonly const: 6;
5588
+ readonly const: 7;
4904
5589
  readonly type: "number";
4905
5590
  };
4906
5591
  readonly __schema1: {
@@ -5063,6 +5748,32 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
5063
5748
  readonly type: "string";
5064
5749
  };
5065
5750
  readonly __schema39: {
5751
+ readonly enum: readonly ["automatic", "manual", "context_limit", "recovery", "unknown"];
5752
+ readonly type: "string";
5753
+ };
5754
+ readonly __schema4: {
5755
+ readonly format: "date-time";
5756
+ readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
5757
+ readonly type: "string";
5758
+ };
5759
+ readonly __schema40: {
5760
+ readonly $ref: "#/$defs/__schema19";
5761
+ };
5762
+ readonly __schema41: {
5763
+ readonly $ref: "#/$defs/__schema19";
5764
+ };
5765
+ readonly __schema42: {
5766
+ readonly maximum: 3600000;
5767
+ readonly minimum: 0;
5768
+ readonly type: "integer";
5769
+ };
5770
+ readonly __schema43: {
5771
+ readonly maxLength: 500;
5772
+ readonly minLength: 1;
5773
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
5774
+ readonly type: "string";
5775
+ };
5776
+ readonly __schema44: {
5066
5777
  readonly additionalProperties: false;
5067
5778
  readonly properties: {
5068
5779
  readonly priority: {
@@ -5085,12 +5796,56 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
5085
5796
  readonly required: readonly ["stepId", "text", "status"];
5086
5797
  readonly type: "object";
5087
5798
  };
5088
- readonly __schema4: {
5089
- readonly format: "date-time";
5090
- readonly pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$";
5799
+ readonly __schema45: {
5800
+ readonly maxLength: 1000;
5801
+ readonly minLength: 1;
5802
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
5091
5803
  readonly type: "string";
5092
5804
  };
5093
- readonly __schema40: {
5805
+ readonly __schema46: {
5806
+ readonly maxLength: 120;
5807
+ readonly minLength: 1;
5808
+ readonly pattern: "^(?:\\S|\\S[\\s\\S]*\\S)$";
5809
+ readonly type: "string";
5810
+ };
5811
+ readonly __schema47: {
5812
+ readonly additionalProperties: false;
5813
+ readonly properties: {
5814
+ readonly decision: {
5815
+ readonly enum: readonly ["approved", "denied"];
5816
+ readonly type: "string";
5817
+ };
5818
+ readonly description: {
5819
+ readonly $ref: "#/$defs/__schema45";
5820
+ };
5821
+ readonly label: {
5822
+ readonly $ref: "#/$defs/__schema46";
5823
+ };
5824
+ readonly optionId: {
5825
+ readonly $ref: "#/$defs/__schema1";
5826
+ };
5827
+ readonly persistence: {
5828
+ readonly enum: readonly ["once", "session", "workspace"];
5829
+ readonly type: "string";
5830
+ };
5831
+ readonly scope: {
5832
+ readonly additionalProperties: false;
5833
+ readonly properties: {
5834
+ readonly kind: {
5835
+ readonly enum: readonly ["exact_action", "command_pattern", "domain", "tool", "server", "all_edits"];
5836
+ readonly type: "string";
5837
+ };
5838
+ };
5839
+ readonly readOnly: true;
5840
+ readonly required: readonly ["kind"];
5841
+ readonly type: "object";
5842
+ };
5843
+ };
5844
+ readonly readOnly: true;
5845
+ readonly required: readonly ["optionId", "label", "decision", "persistence", "scope"];
5846
+ readonly type: "object";
5847
+ };
5848
+ readonly __schema48: {
5094
5849
  readonly oneOf: readonly [{
5095
5850
  readonly additionalProperties: false;
5096
5851
  readonly properties: {
@@ -5147,7 +5902,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
5147
5902
  };
5148
5903
  readonly options: {
5149
5904
  readonly items: {
5150
- readonly $ref: "#/$defs/__schema41";
5905
+ readonly $ref: "#/$defs/__schema49";
5151
5906
  };
5152
5907
  readonly maxItems: 100;
5153
5908
  readonly minItems: 1;
@@ -5189,7 +5944,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
5189
5944
  readonly type: "object";
5190
5945
  }];
5191
5946
  };
5192
- readonly __schema41: {
5947
+ readonly __schema49: {
5193
5948
  readonly additionalProperties: false;
5194
5949
  readonly properties: {
5195
5950
  readonly description: {
@@ -5234,6 +5989,37 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
5234
5989
  readonly required: readonly ["code", "message", "retryable"];
5235
5990
  readonly type: "object";
5236
5991
  };
5992
+ readonly __schema50: {
5993
+ readonly maximum: 9007199254740991;
5994
+ readonly minimum: 0;
5995
+ readonly type: "integer";
5996
+ };
5997
+ readonly __schema51: {
5998
+ readonly exclusiveMinimum: 0;
5999
+ readonly maximum: 9007199254740991;
6000
+ readonly type: "integer";
6001
+ };
6002
+ readonly __schema52: {
6003
+ readonly $ref: "#/$defs/__schema50";
6004
+ };
6005
+ readonly __schema53: {
6006
+ readonly $ref: "#/$defs/__schema50";
6007
+ };
6008
+ readonly __schema54: {
6009
+ readonly $ref: "#/$defs/__schema50";
6010
+ };
6011
+ readonly __schema55: {
6012
+ readonly $ref: "#/$defs/__schema50";
6013
+ };
6014
+ readonly __schema56: {
6015
+ readonly $ref: "#/$defs/__schema50";
6016
+ };
6017
+ readonly __schema57: {
6018
+ readonly $ref: "#/$defs/__schema50";
6019
+ };
6020
+ readonly __schema58: {
6021
+ readonly $ref: "#/$defs/__schema50";
6022
+ };
5237
6023
  readonly __schema6: {
5238
6024
  readonly maxLength: 120;
5239
6025
  readonly minLength: 1;
@@ -5790,6 +6576,29 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
5790
6576
  }, {
5791
6577
  readonly additionalProperties: false;
5792
6578
  readonly properties: {
6579
+ readonly details: {
6580
+ readonly additionalProperties: false;
6581
+ readonly properties: {
6582
+ readonly afterTokens: {
6583
+ readonly $ref: "#/$defs/__schema41";
6584
+ };
6585
+ readonly beforeTokens: {
6586
+ readonly $ref: "#/$defs/__schema40";
6587
+ };
6588
+ readonly durationMs: {
6589
+ readonly $ref: "#/$defs/__schema42";
6590
+ };
6591
+ readonly summaryPreview: {
6592
+ readonly $ref: "#/$defs/__schema43";
6593
+ };
6594
+ readonly trigger: {
6595
+ readonly $ref: "#/$defs/__schema39";
6596
+ };
6597
+ };
6598
+ readonly readOnly: true;
6599
+ readonly required: readonly ["trigger"];
6600
+ readonly type: "object";
6601
+ };
5793
6602
  readonly itemId: {
5794
6603
  readonly $ref: "#/$defs/__schema1";
5795
6604
  };
@@ -5808,7 +6617,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
5808
6617
  };
5809
6618
  };
5810
6619
  readonly readOnly: true;
5811
- readonly required: readonly ["itemId", "status", "itemKind"];
6620
+ readonly required: readonly ["itemId", "status", "itemKind", "details"];
5812
6621
  readonly type: "object";
5813
6622
  }, {
5814
6623
  readonly additionalProperties: false;
@@ -5836,7 +6645,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
5836
6645
  }];
5837
6646
  };
5838
6647
  };
5839
- readonly $id: "urn:agenai.agent-protocol.event:v6:output";
6648
+ readonly $id: "urn:agenai.agent-protocol.event:v7:output";
5840
6649
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
5841
6650
  readonly oneOf: readonly [{
5842
6651
  readonly additionalProperties: false;
@@ -6112,7 +6921,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
6112
6921
  };
6113
6922
  readonly steps: {
6114
6923
  readonly items: {
6115
- readonly $ref: "#/$defs/__schema39";
6924
+ readonly $ref: "#/$defs/__schema44";
6116
6925
  };
6117
6926
  readonly maxItems: 100;
6118
6927
  readonly readOnly: true;
@@ -6266,10 +7075,17 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
6266
7075
  readonly expiresAt: {
6267
7076
  readonly $ref: "#/$defs/__schema4";
6268
7077
  };
7078
+ readonly options: {
7079
+ readonly items: {
7080
+ readonly $ref: "#/$defs/__schema47";
7081
+ };
7082
+ readonly maxItems: 16;
7083
+ readonly minItems: 1;
7084
+ readonly readOnly: true;
7085
+ readonly type: "array";
7086
+ };
6269
7087
  readonly prompt: {
6270
- readonly maxLength: 4000;
6271
- readonly minLength: 1;
6272
- readonly type: "string";
7088
+ readonly $ref: "#/$defs/__schema45";
6273
7089
  };
6274
7090
  readonly requestId: {
6275
7091
  readonly $ref: "#/$defs/__schema1";
@@ -6286,17 +7102,14 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
6286
7102
  readonly $ref: "#/$defs/__schema1";
6287
7103
  };
6288
7104
  readonly description: {
6289
- readonly maxLength: 2000;
6290
- readonly type: "string";
7105
+ readonly $ref: "#/$defs/__schema45";
6291
7106
  };
6292
7107
  readonly kind: {
6293
7108
  readonly const: "plan";
6294
7109
  readonly type: "string";
6295
7110
  };
6296
7111
  readonly title: {
6297
- readonly maxLength: 200;
6298
- readonly minLength: 1;
6299
- readonly type: "string";
7112
+ readonly $ref: "#/$defs/__schema46";
6300
7113
  };
6301
7114
  };
6302
7115
  readonly readOnly: true;
@@ -6306,27 +7119,27 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
6306
7119
  readonly additionalProperties: false;
6307
7120
  readonly properties: {
6308
7121
  readonly description: {
6309
- readonly maxLength: 2000;
6310
- readonly type: "string";
7122
+ readonly $ref: "#/$defs/__schema45";
7123
+ };
7124
+ readonly itemId: {
7125
+ readonly $ref: "#/$defs/__schema1";
6311
7126
  };
6312
7127
  readonly kind: {
6313
7128
  readonly enum: readonly ["command", "file_change", "tool", "other"];
6314
7129
  readonly type: "string";
6315
7130
  };
6316
7131
  readonly title: {
6317
- readonly maxLength: 200;
6318
- readonly minLength: 1;
6319
- readonly type: "string";
7132
+ readonly $ref: "#/$defs/__schema46";
6320
7133
  };
6321
7134
  };
6322
7135
  readonly readOnly: true;
6323
- readonly required: readonly ["kind", "title"];
7136
+ readonly required: readonly ["kind", "title", "itemId"];
6324
7137
  readonly type: "object";
6325
7138
  }];
6326
7139
  };
6327
7140
  };
6328
7141
  readonly readOnly: true;
6329
- readonly required: readonly ["requestKind", "requestId", "prompt", "subject"];
7142
+ readonly required: readonly ["requestKind", "requestId", "prompt", "subject", "options"];
6330
7143
  readonly type: "object";
6331
7144
  }, {
6332
7145
  readonly additionalProperties: false;
@@ -6336,7 +7149,7 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
6336
7149
  };
6337
7150
  readonly fields: {
6338
7151
  readonly items: {
6339
- readonly $ref: "#/$defs/__schema40";
7152
+ readonly $ref: "#/$defs/__schema48";
6340
7153
  };
6341
7154
  readonly maxItems: 100;
6342
7155
  readonly minItems: 1;
@@ -6449,6 +7262,93 @@ export declare const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY: readonly [{
6449
7262
  readonly readOnly: true;
6450
7263
  readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "turnId", "payload"];
6451
7264
  readonly type: "object";
7265
+ }, {
7266
+ readonly additionalProperties: false;
7267
+ readonly properties: {
7268
+ readonly occurredAt: {
7269
+ readonly $ref: "#/$defs/__schema4";
7270
+ };
7271
+ readonly payload: {
7272
+ readonly additionalProperties: false;
7273
+ readonly properties: {
7274
+ readonly compaction: {
7275
+ readonly additionalProperties: false;
7276
+ readonly properties: {
7277
+ readonly state: {
7278
+ readonly enum: readonly ["idle", "approaching", "in_progress"];
7279
+ readonly type: "string";
7280
+ };
7281
+ readonly thresholdTokens: {
7282
+ readonly $ref: "#/$defs/__schema51";
7283
+ };
7284
+ };
7285
+ readonly readOnly: true;
7286
+ readonly required: readonly ["state"];
7287
+ readonly type: "object";
7288
+ };
7289
+ readonly cumulative: {
7290
+ readonly additionalProperties: false;
7291
+ readonly properties: {
7292
+ readonly cacheCreationTokens: {
7293
+ readonly $ref: "#/$defs/__schema55";
7294
+ };
7295
+ readonly cachedReadTokens: {
7296
+ readonly $ref: "#/$defs/__schema54";
7297
+ };
7298
+ readonly inputTokens: {
7299
+ readonly $ref: "#/$defs/__schema52";
7300
+ };
7301
+ readonly modelCalls: {
7302
+ readonly $ref: "#/$defs/__schema57";
7303
+ };
7304
+ readonly outputTokens: {
7305
+ readonly $ref: "#/$defs/__schema53";
7306
+ };
7307
+ readonly reasoningTokens: {
7308
+ readonly $ref: "#/$defs/__schema56";
7309
+ };
7310
+ readonly turns: {
7311
+ readonly $ref: "#/$defs/__schema58";
7312
+ };
7313
+ };
7314
+ readonly readOnly: true;
7315
+ readonly type: "object";
7316
+ };
7317
+ readonly maxTokens: {
7318
+ readonly $ref: "#/$defs/__schema51";
7319
+ };
7320
+ readonly measurementScope: {
7321
+ readonly enum: readonly ["session", "materialization"];
7322
+ readonly type: "string";
7323
+ };
7324
+ readonly usedTokens: {
7325
+ readonly $ref: "#/$defs/__schema50";
7326
+ };
7327
+ };
7328
+ readonly readOnly: true;
7329
+ readonly required: readonly ["measurementScope", "usedTokens", "maxTokens"];
7330
+ readonly type: "object";
7331
+ };
7332
+ readonly protocolVersion: {
7333
+ readonly $ref: "#/$defs/__schema0";
7334
+ };
7335
+ readonly providerRefs: {
7336
+ readonly $ref: "#/$defs/__schema2";
7337
+ };
7338
+ readonly sessionId: {
7339
+ readonly $ref: "#/$defs/__schema1";
7340
+ };
7341
+ readonly turnId: {
7342
+ readonly $ref: "#/$defs/__schema1";
7343
+ };
7344
+ readonly type: {
7345
+ readonly const: "context.usage.updated";
7346
+ readonly type: "string";
7347
+ };
7348
+ };
7349
+ readonly readOnly: true;
7350
+ readonly required: readonly ["protocolVersion", "sessionId", "occurredAt", "type", "turnId", "payload"];
7351
+ readonly type: "object";
6452
7352
  }, {
6453
7353
  readonly additionalProperties: false;
6454
7354
  readonly properties: {