@agen-ai/agent-protocol 0.4.0 → 0.4.2

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.
Files changed (39) hide show
  1. package/README.md +115 -18
  2. package/dist/capabilities/types.d.ts +6 -1
  3. package/dist/events/types.d.ts +9 -3
  4. package/dist/events/types.js +4 -1
  5. package/dist/foundation/types.d.ts +1 -1
  6. package/dist/foundation/types.js +1 -1
  7. package/dist/jsonSchema/generated.d.ts +11214 -7152
  8. package/dist/jsonSchema/generated.js +2835 -227
  9. package/dist/public/index.d.ts +1 -0
  10. package/dist/public/index.js +1 -0
  11. package/dist/public/sessionInteractions.d.ts +2 -0
  12. package/dist/public/sessionInteractions.js +1 -0
  13. package/dist/requests/elicitation.d.ts +4 -0
  14. package/dist/requests/elicitation.js +107 -0
  15. package/dist/requests/parsers.js +2 -100
  16. package/dist/requests/types.d.ts +17 -4
  17. package/dist/sessionInteractions/index.d.ts +3 -0
  18. package/dist/sessionInteractions/index.js +2 -0
  19. package/dist/sessionInteractions/parsers.d.ts +37 -0
  20. package/dist/sessionInteractions/parsers.js +201 -0
  21. package/dist/sessionInteractions/types.d.ts +162 -0
  22. package/dist/sessionInteractions/types.js +34 -0
  23. package/dist/zod/capabilities.d.ts +72 -6
  24. package/dist/zod/capabilities.js +32 -30
  25. package/dist/zod/collaboration.d.ts +2 -2
  26. package/dist/zod/events.d.ts +75 -42
  27. package/dist/zod/events.js +8 -0
  28. package/dist/zod/foundation.d.ts +1 -0
  29. package/dist/zod/foundation.js +15 -2
  30. package/dist/zod/index.d.ts +2 -1
  31. package/dist/zod/index.js +60 -0
  32. package/dist/zod/operations.d.ts +1 -1
  33. package/dist/zod/requests.d.ts +175 -32
  34. package/dist/zod/requests.js +33 -10
  35. package/dist/zod/sessionInteractions.d.ts +925 -0
  36. package/dist/zod/sessionInteractions.js +284 -0
  37. package/dist/zod/turns.d.ts +1 -1
  38. package/dist/zod/typeEquality.generated.d.ts +38 -4
  39. package/package.json +6 -2
@@ -1,7 +1,2368 @@
1
1
  const AGENT_PROTOCOL_JSON_SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
2
+ const AGENT_SESSION_DECISION_REQUEST_JSON_SCHEMA = {
3
+ "contractId": "agenai.agent-protocol.session-decision-request",
4
+ "protocolVersion": 12,
5
+ "direction": "output",
6
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
7
+ "parserInvariants": [
8
+ "bounded_acyclic_json_data",
9
+ "utf16_text_lengths",
10
+ "utf8_field_bytes",
11
+ "serialized_utf8_bytes",
12
+ "unique_choice_ids"
13
+ ],
14
+ "sha256": "208536fee18286f60ec04d2568384ae720333b2477a01efddff09f53dc0591a9",
15
+ "schema": {
16
+ "$defs": {
17
+ "__schema0": {
18
+ "maxLength": 256,
19
+ "minLength": 1,
20
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
21
+ "type": "string"
22
+ },
23
+ "__schema1": {
24
+ "allOf": [
25
+ {
26
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
27
+ },
28
+ {
29
+ "pattern": "^[^\\u0000-\\u001F\\u007F-\\u009F]*$"
30
+ }
31
+ ],
32
+ "maxLength": 120,
33
+ "minLength": 1,
34
+ "type": "string"
35
+ },
36
+ "__schema2": {
37
+ "additionalProperties": false,
38
+ "properties": {
39
+ "choiceId": {
40
+ "maxLength": 128,
41
+ "minLength": 1,
42
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
43
+ "type": "string"
44
+ },
45
+ "consequence": {
46
+ "oneOf": [
47
+ {
48
+ "additionalProperties": false,
49
+ "properties": {
50
+ "kind": {
51
+ "const": "grant",
52
+ "type": "string"
53
+ },
54
+ "persistence": {
55
+ "additionalProperties": false,
56
+ "properties": {
57
+ "duration": {
58
+ "const": "persistent",
59
+ "type": "string"
60
+ },
61
+ "kind": {
62
+ "const": "provider_managed",
63
+ "type": "string"
64
+ },
65
+ "mayAffectOtherSessions": {
66
+ "const": true,
67
+ "type": "boolean"
68
+ }
69
+ },
70
+ "readOnly": true,
71
+ "required": [
72
+ "kind",
73
+ "duration",
74
+ "mayAffectOtherSessions"
75
+ ],
76
+ "type": "object"
77
+ },
78
+ "scope": {
79
+ "const": "workspace",
80
+ "type": "string"
81
+ }
82
+ },
83
+ "readOnly": true,
84
+ "required": [
85
+ "kind",
86
+ "scope",
87
+ "persistence"
88
+ ],
89
+ "type": "object"
90
+ },
91
+ {
92
+ "additionalProperties": false,
93
+ "properties": {
94
+ "configuration": {
95
+ "const": "remains_gated",
96
+ "type": "string"
97
+ },
98
+ "kind": {
99
+ "const": "decline",
100
+ "type": "string"
101
+ }
102
+ },
103
+ "readOnly": true,
104
+ "required": [
105
+ "kind",
106
+ "configuration"
107
+ ],
108
+ "type": "object"
109
+ }
110
+ ]
111
+ },
112
+ "description": {
113
+ "allOf": [
114
+ {
115
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
116
+ },
117
+ {
118
+ "pattern": "^[^\\u0000-\\u0009\\u000B-\\u001F\\u007F-\\u009F]*$"
119
+ }
120
+ ],
121
+ "maxLength": 1e3,
122
+ "minLength": 1,
123
+ "type": "string"
124
+ },
125
+ "label": {
126
+ "$ref": "#/$defs/__schema1"
127
+ }
128
+ },
129
+ "readOnly": true,
130
+ "required": [
131
+ "choiceId",
132
+ "label",
133
+ "description",
134
+ "consequence"
135
+ ],
136
+ "type": "object"
137
+ }
138
+ },
139
+ "$id": "urn:agenai.agent-protocol.session-decision-request:v12:output",
140
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
141
+ "additionalProperties": false,
142
+ "properties": {
143
+ "choices": {
144
+ "items": {
145
+ "$ref": "#/$defs/__schema2"
146
+ },
147
+ "maxItems": 16,
148
+ "minItems": 1,
149
+ "readOnly": true,
150
+ "type": "array"
151
+ },
152
+ "description": {
153
+ "allOf": [
154
+ {
155
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
156
+ },
157
+ {
158
+ "pattern": "^[^\\u0000-\\u0009\\u000B-\\u001F\\u007F-\\u009F]*$"
159
+ }
160
+ ],
161
+ "maxLength": 4e3,
162
+ "minLength": 1,
163
+ "type": "string"
164
+ },
165
+ "expiresAt": {
166
+ "format": "date-time",
167
+ "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)))$",
168
+ "type": "string"
169
+ },
170
+ "kind": {
171
+ "const": "decision",
172
+ "type": "string"
173
+ },
174
+ "requestId": {
175
+ "$ref": "#/$defs/__schema0"
176
+ },
177
+ "sessionId": {
178
+ "$ref": "#/$defs/__schema0"
179
+ },
180
+ "target": {
181
+ "additionalProperties": false,
182
+ "properties": {
183
+ "kind": {
184
+ "const": "workspace",
185
+ "type": "string"
186
+ },
187
+ "path": {
188
+ "allOf": [
189
+ {
190
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
191
+ },
192
+ {
193
+ "pattern": "^[^\\p{Cc}\\p{Cf}]*$"
194
+ }
195
+ ],
196
+ "maxLength": 4096,
197
+ "minLength": 1,
198
+ "type": "string"
199
+ }
200
+ },
201
+ "readOnly": true,
202
+ "required": [
203
+ "kind",
204
+ "path"
205
+ ],
206
+ "type": "object"
207
+ },
208
+ "title": {
209
+ "$ref": "#/$defs/__schema1"
210
+ }
211
+ },
212
+ "readOnly": true,
213
+ "required": [
214
+ "requestId",
215
+ "sessionId",
216
+ "title",
217
+ "kind",
218
+ "target",
219
+ "choices"
220
+ ],
221
+ "type": "object"
222
+ }
223
+ };
224
+ const AGENT_SESSION_DECISION_RESPONSE_JSON_SCHEMA = {
225
+ "contractId": "agenai.agent-protocol.session-decision-response",
226
+ "protocolVersion": 12,
227
+ "direction": "input",
228
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
229
+ "parserInvariants": [
230
+ "bounded_acyclic_json_data",
231
+ "utf8_field_bytes",
232
+ "serialized_utf8_bytes",
233
+ "offered_choice_membership"
234
+ ],
235
+ "sha256": "57d46839eb8dabce2902b84efbe5f6deff2dd238cdbc8d57c9470e0aec78c9e4",
236
+ "schema": {
237
+ "$id": "urn:agenai.agent-protocol.session-decision-response:v12:input",
238
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
239
+ "additionalProperties": false,
240
+ "properties": {
241
+ "choiceId": {
242
+ "maxLength": 128,
243
+ "minLength": 1,
244
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
245
+ "type": "string"
246
+ },
247
+ "kind": {
248
+ "const": "decision",
249
+ "type": "string"
250
+ }
251
+ },
252
+ "readOnly": true,
253
+ "required": [
254
+ "kind",
255
+ "choiceId"
256
+ ],
257
+ "type": "object"
258
+ }
259
+ };
260
+ const AGENT_SESSION_FORM_REQUEST_JSON_SCHEMA = {
261
+ "contractId": "agenai.agent-protocol.session-form-request",
262
+ "protocolVersion": 12,
263
+ "direction": "output",
264
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
265
+ "parserInvariants": [
266
+ "bounded_acyclic_json_data",
267
+ "utf16_text_lengths",
268
+ "utf8_field_bytes",
269
+ "serialized_utf8_bytes",
270
+ "unique_choice_ids",
271
+ "unique_choice_actions",
272
+ "unique_field_ids",
273
+ "unique_choice_values",
274
+ "field_selection_bounds"
275
+ ],
276
+ "sha256": "5f856871df91bab904813664d3b1e1c9bd4a7c1e45b9437e3c950f4e6673aa54",
277
+ "schema": {
278
+ "$defs": {
279
+ "__schema0": {
280
+ "maxLength": 256,
281
+ "minLength": 1,
282
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
283
+ "type": "string"
284
+ },
285
+ "__schema1": {
286
+ "allOf": [
287
+ {
288
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
289
+ },
290
+ {
291
+ "pattern": "^[^\\u0000-\\u001F\\u007F-\\u009F]*$"
292
+ }
293
+ ],
294
+ "maxLength": 120,
295
+ "minLength": 1,
296
+ "type": "string"
297
+ },
298
+ "__schema10": {
299
+ "allOf": [
300
+ {
301
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
302
+ },
303
+ {
304
+ "pattern": "^[^\\u0000-\\u0009\\u000B-\\u001F\\u007F-\\u009F]*$"
305
+ }
306
+ ],
307
+ "maxLength": 1e3,
308
+ "minLength": 1,
309
+ "type": "string"
310
+ },
311
+ "__schema11": {
312
+ "maxLength": 128,
313
+ "minLength": 1,
314
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
315
+ "type": "string"
316
+ },
317
+ "__schema2": {
318
+ "oneOf": [
319
+ {
320
+ "additionalProperties": false,
321
+ "properties": {
322
+ "description": {
323
+ "$ref": "#/$defs/__schema4"
324
+ },
325
+ "fieldId": {
326
+ "$ref": "#/$defs/__schema0"
327
+ },
328
+ "kind": {
329
+ "const": "text",
330
+ "type": "string"
331
+ },
332
+ "label": {
333
+ "$ref": "#/$defs/__schema3"
334
+ },
335
+ "maxLength": {
336
+ "exclusiveMinimum": 0,
337
+ "maximum": 4e3,
338
+ "type": "integer"
339
+ },
340
+ "multiline": {
341
+ "type": "boolean"
342
+ },
343
+ "required": {
344
+ "$ref": "#/$defs/__schema5"
345
+ },
346
+ "sensitivity": {
347
+ "$ref": "#/$defs/__schema6"
348
+ }
349
+ },
350
+ "readOnly": true,
351
+ "required": [
352
+ "fieldId",
353
+ "label",
354
+ "required",
355
+ "sensitivity",
356
+ "kind",
357
+ "multiline",
358
+ "maxLength"
359
+ ],
360
+ "type": "object"
361
+ },
362
+ {
363
+ "additionalProperties": false,
364
+ "properties": {
365
+ "allowOther": {
366
+ "type": "boolean"
367
+ },
368
+ "description": {
369
+ "$ref": "#/$defs/__schema4"
370
+ },
371
+ "fieldId": {
372
+ "$ref": "#/$defs/__schema0"
373
+ },
374
+ "kind": {
375
+ "const": "single_select",
376
+ "type": "string"
377
+ },
378
+ "label": {
379
+ "$ref": "#/$defs/__schema3"
380
+ },
381
+ "options": {
382
+ "$ref": "#/$defs/__schema7"
383
+ },
384
+ "required": {
385
+ "$ref": "#/$defs/__schema5"
386
+ },
387
+ "sensitivity": {
388
+ "$ref": "#/$defs/__schema6"
389
+ }
390
+ },
391
+ "readOnly": true,
392
+ "required": [
393
+ "fieldId",
394
+ "label",
395
+ "required",
396
+ "sensitivity",
397
+ "kind",
398
+ "options",
399
+ "allowOther"
400
+ ],
401
+ "type": "object"
402
+ },
403
+ {
404
+ "additionalProperties": false,
405
+ "properties": {
406
+ "allowOther": {
407
+ "type": "boolean"
408
+ },
409
+ "description": {
410
+ "$ref": "#/$defs/__schema4"
411
+ },
412
+ "fieldId": {
413
+ "$ref": "#/$defs/__schema0"
414
+ },
415
+ "kind": {
416
+ "const": "multi_select",
417
+ "type": "string"
418
+ },
419
+ "label": {
420
+ "$ref": "#/$defs/__schema3"
421
+ },
422
+ "maxSelections": {
423
+ "exclusiveMinimum": 0,
424
+ "maximum": 100,
425
+ "type": "integer"
426
+ },
427
+ "options": {
428
+ "$ref": "#/$defs/__schema7"
429
+ },
430
+ "required": {
431
+ "$ref": "#/$defs/__schema5"
432
+ },
433
+ "sensitivity": {
434
+ "$ref": "#/$defs/__schema6"
435
+ }
436
+ },
437
+ "readOnly": true,
438
+ "required": [
439
+ "fieldId",
440
+ "label",
441
+ "required",
442
+ "sensitivity",
443
+ "kind",
444
+ "options",
445
+ "allowOther",
446
+ "maxSelections"
447
+ ],
448
+ "type": "object"
449
+ },
450
+ {
451
+ "additionalProperties": false,
452
+ "properties": {
453
+ "description": {
454
+ "$ref": "#/$defs/__schema4"
455
+ },
456
+ "fieldId": {
457
+ "$ref": "#/$defs/__schema0"
458
+ },
459
+ "kind": {
460
+ "const": "boolean",
461
+ "type": "string"
462
+ },
463
+ "label": {
464
+ "$ref": "#/$defs/__schema3"
465
+ },
466
+ "required": {
467
+ "$ref": "#/$defs/__schema5"
468
+ },
469
+ "sensitivity": {
470
+ "$ref": "#/$defs/__schema6"
471
+ }
472
+ },
473
+ "readOnly": true,
474
+ "required": [
475
+ "fieldId",
476
+ "label",
477
+ "required",
478
+ "sensitivity",
479
+ "kind"
480
+ ],
481
+ "type": "object"
482
+ },
483
+ {
484
+ "additionalProperties": false,
485
+ "properties": {
486
+ "confirmLabel": {
487
+ "maxLength": 200,
488
+ "minLength": 1,
489
+ "type": "string"
490
+ },
491
+ "description": {
492
+ "$ref": "#/$defs/__schema4"
493
+ },
494
+ "fieldId": {
495
+ "$ref": "#/$defs/__schema0"
496
+ },
497
+ "kind": {
498
+ "const": "confirmation",
499
+ "type": "string"
500
+ },
501
+ "label": {
502
+ "$ref": "#/$defs/__schema3"
503
+ },
504
+ "required": {
505
+ "$ref": "#/$defs/__schema5"
506
+ },
507
+ "sensitivity": {
508
+ "$ref": "#/$defs/__schema6"
509
+ }
510
+ },
511
+ "readOnly": true,
512
+ "required": [
513
+ "fieldId",
514
+ "label",
515
+ "required",
516
+ "sensitivity",
517
+ "kind",
518
+ "confirmLabel"
519
+ ],
520
+ "type": "object"
521
+ }
522
+ ]
523
+ },
524
+ "__schema3": {
525
+ "maxLength": 200,
526
+ "minLength": 1,
527
+ "type": "string"
528
+ },
529
+ "__schema4": {
530
+ "maxLength": 2e3,
531
+ "type": "string"
532
+ },
533
+ "__schema5": {
534
+ "type": "boolean"
535
+ },
536
+ "__schema6": {
537
+ "enum": [
538
+ "ordinary",
539
+ "sensitive"
540
+ ],
541
+ "type": "string"
542
+ },
543
+ "__schema7": {
544
+ "items": {
545
+ "$ref": "#/$defs/__schema8"
546
+ },
547
+ "maxItems": 100,
548
+ "minItems": 1,
549
+ "readOnly": true,
550
+ "type": "array"
551
+ },
552
+ "__schema8": {
553
+ "additionalProperties": false,
554
+ "properties": {
555
+ "description": {
556
+ "maxLength": 2e3,
557
+ "type": "string"
558
+ },
559
+ "label": {
560
+ "maxLength": 200,
561
+ "minLength": 1,
562
+ "type": "string"
563
+ },
564
+ "value": {
565
+ "allOf": [
566
+ {
567
+ "$ref": "#/$defs/__schema0"
568
+ },
569
+ {
570
+ "maxLength": 160,
571
+ "type": "string"
572
+ }
573
+ ]
574
+ }
575
+ },
576
+ "readOnly": true,
577
+ "required": [
578
+ "value",
579
+ "label"
580
+ ],
581
+ "type": "object"
582
+ },
583
+ "__schema9": {
584
+ "oneOf": [
585
+ {
586
+ "additionalProperties": false,
587
+ "properties": {
588
+ "action": {
589
+ "const": "submit",
590
+ "type": "string"
591
+ },
592
+ "choiceId": {
593
+ "$ref": "#/$defs/__schema11"
594
+ },
595
+ "description": {
596
+ "$ref": "#/$defs/__schema10"
597
+ },
598
+ "label": {
599
+ "$ref": "#/$defs/__schema1"
600
+ }
601
+ },
602
+ "readOnly": true,
603
+ "required": [
604
+ "label",
605
+ "choiceId",
606
+ "action"
607
+ ],
608
+ "type": "object"
609
+ },
610
+ {
611
+ "additionalProperties": false,
612
+ "properties": {
613
+ "action": {
614
+ "const": "cancel",
615
+ "type": "string"
616
+ },
617
+ "choiceId": {
618
+ "$ref": "#/$defs/__schema11"
619
+ },
620
+ "description": {
621
+ "$ref": "#/$defs/__schema10"
622
+ },
623
+ "label": {
624
+ "$ref": "#/$defs/__schema1"
625
+ }
626
+ },
627
+ "readOnly": true,
628
+ "required": [
629
+ "label",
630
+ "choiceId",
631
+ "action"
632
+ ],
633
+ "type": "object"
634
+ }
635
+ ]
636
+ }
637
+ },
638
+ "$id": "urn:agenai.agent-protocol.session-form-request:v12:output",
639
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
640
+ "additionalProperties": false,
641
+ "properties": {
642
+ "choices": {
643
+ "items": {
644
+ "$ref": "#/$defs/__schema9"
645
+ },
646
+ "maxItems": 16,
647
+ "minItems": 1,
648
+ "readOnly": true,
649
+ "type": "array"
650
+ },
651
+ "description": {
652
+ "allOf": [
653
+ {
654
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
655
+ },
656
+ {
657
+ "pattern": "^[^\\u0000-\\u0009\\u000B-\\u001F\\u007F-\\u009F]*$"
658
+ }
659
+ ],
660
+ "maxLength": 4e3,
661
+ "minLength": 1,
662
+ "type": "string"
663
+ },
664
+ "expiresAt": {
665
+ "format": "date-time",
666
+ "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)))$",
667
+ "type": "string"
668
+ },
669
+ "fields": {
670
+ "items": {
671
+ "$ref": "#/$defs/__schema2"
672
+ },
673
+ "maxItems": 16,
674
+ "minItems": 1,
675
+ "readOnly": true,
676
+ "type": "array"
677
+ },
678
+ "kind": {
679
+ "const": "form",
680
+ "type": "string"
681
+ },
682
+ "requestId": {
683
+ "$ref": "#/$defs/__schema0"
684
+ },
685
+ "sessionId": {
686
+ "$ref": "#/$defs/__schema0"
687
+ },
688
+ "title": {
689
+ "$ref": "#/$defs/__schema1"
690
+ }
691
+ },
692
+ "readOnly": true,
693
+ "required": [
694
+ "requestId",
695
+ "sessionId",
696
+ "title",
697
+ "kind",
698
+ "fields",
699
+ "choices"
700
+ ],
701
+ "type": "object"
702
+ }
703
+ };
704
+ const AGENT_SESSION_FORM_RESPONSE_JSON_SCHEMA = {
705
+ "contractId": "agenai.agent-protocol.session-form-response",
706
+ "protocolVersion": 12,
707
+ "direction": "input",
708
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
709
+ "parserInvariants": [
710
+ "bounded_acyclic_json_data",
711
+ "utf16_text_lengths",
712
+ "utf8_field_bytes",
713
+ "serialized_utf8_bytes",
714
+ "offered_choice_membership",
715
+ "offered_action_correlation",
716
+ "field_answer_correlation",
717
+ "unique_choice_selections",
718
+ "exact_plan_revision",
719
+ "request_kind_correlation"
720
+ ],
721
+ "sha256": "746b3e06b6fd1d2ffdd84549d90c67a40b90232aa9ea84a136dcac78ee23ae57",
722
+ "schema": {
723
+ "$defs": {
724
+ "__schema0": {
725
+ "maxLength": 128,
726
+ "minLength": 1,
727
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
728
+ "type": "string"
729
+ },
730
+ "__schema1": {
731
+ "oneOf": [
732
+ {
733
+ "additionalProperties": false,
734
+ "properties": {
735
+ "fieldId": {
736
+ "$ref": "#/$defs/__schema2"
737
+ },
738
+ "kind": {
739
+ "const": "text",
740
+ "type": "string"
741
+ },
742
+ "value": {
743
+ "$ref": "#/$defs/__schema3"
744
+ }
745
+ },
746
+ "readOnly": true,
747
+ "required": [
748
+ "fieldId",
749
+ "kind",
750
+ "value"
751
+ ],
752
+ "type": "object"
753
+ },
754
+ {
755
+ "additionalProperties": false,
756
+ "properties": {
757
+ "fieldId": {
758
+ "$ref": "#/$defs/__schema2"
759
+ },
760
+ "kind": {
761
+ "const": "single_select",
762
+ "type": "string"
763
+ },
764
+ "other": {
765
+ "$ref": "#/$defs/__schema3"
766
+ },
767
+ "value": {
768
+ "$ref": "#/$defs/__schema4"
769
+ }
770
+ },
771
+ "readOnly": true,
772
+ "required": [
773
+ "fieldId",
774
+ "kind"
775
+ ],
776
+ "type": "object"
777
+ },
778
+ {
779
+ "additionalProperties": false,
780
+ "properties": {
781
+ "fieldId": {
782
+ "$ref": "#/$defs/__schema2"
783
+ },
784
+ "kind": {
785
+ "const": "multi_select",
786
+ "type": "string"
787
+ },
788
+ "other": {
789
+ "$ref": "#/$defs/__schema3"
790
+ },
791
+ "values": {
792
+ "items": {
793
+ "$ref": "#/$defs/__schema4"
794
+ },
795
+ "maxItems": 100,
796
+ "readOnly": true,
797
+ "type": "array"
798
+ }
799
+ },
800
+ "readOnly": true,
801
+ "required": [
802
+ "fieldId",
803
+ "kind",
804
+ "values"
805
+ ],
806
+ "type": "object"
807
+ },
808
+ {
809
+ "additionalProperties": false,
810
+ "properties": {
811
+ "fieldId": {
812
+ "$ref": "#/$defs/__schema2"
813
+ },
814
+ "kind": {
815
+ "const": "boolean",
816
+ "type": "string"
817
+ },
818
+ "value": {
819
+ "type": "boolean"
820
+ }
821
+ },
822
+ "readOnly": true,
823
+ "required": [
824
+ "fieldId",
825
+ "kind",
826
+ "value"
827
+ ],
828
+ "type": "object"
829
+ },
830
+ {
831
+ "additionalProperties": false,
832
+ "properties": {
833
+ "confirmed": {
834
+ "type": "boolean"
835
+ },
836
+ "fieldId": {
837
+ "$ref": "#/$defs/__schema2"
838
+ },
839
+ "kind": {
840
+ "const": "confirmation",
841
+ "type": "string"
842
+ }
843
+ },
844
+ "readOnly": true,
845
+ "required": [
846
+ "fieldId",
847
+ "kind",
848
+ "confirmed"
849
+ ],
850
+ "type": "object"
851
+ }
852
+ ]
853
+ },
854
+ "__schema2": {
855
+ "maxLength": 256,
856
+ "minLength": 1,
857
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
858
+ "type": "string"
859
+ },
860
+ "__schema3": {
861
+ "maxLength": 4e3,
862
+ "pattern": "\\S",
863
+ "type": "string"
864
+ },
865
+ "__schema4": {
866
+ "allOf": [
867
+ {
868
+ "$ref": "#/$defs/__schema2"
869
+ },
870
+ {
871
+ "maxLength": 160,
872
+ "type": "string"
873
+ }
874
+ ]
875
+ }
876
+ },
877
+ "$id": "urn:agenai.agent-protocol.session-form-response:v12:input",
878
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
879
+ "oneOf": [
880
+ {
881
+ "additionalProperties": false,
882
+ "properties": {
883
+ "action": {
884
+ "const": "submit",
885
+ "type": "string"
886
+ },
887
+ "answers": {
888
+ "items": {
889
+ "$ref": "#/$defs/__schema1"
890
+ },
891
+ "maxItems": 16,
892
+ "readOnly": true,
893
+ "type": "array"
894
+ },
895
+ "choiceId": {
896
+ "$ref": "#/$defs/__schema0"
897
+ },
898
+ "kind": {
899
+ "const": "form",
900
+ "type": "string"
901
+ }
902
+ },
903
+ "readOnly": true,
904
+ "required": [
905
+ "kind",
906
+ "action",
907
+ "choiceId",
908
+ "answers"
909
+ ],
910
+ "type": "object"
911
+ },
912
+ {
913
+ "additionalProperties": false,
914
+ "properties": {
915
+ "action": {
916
+ "const": "cancel",
917
+ "type": "string"
918
+ },
919
+ "choiceId": {
920
+ "$ref": "#/$defs/__schema0"
921
+ },
922
+ "kind": {
923
+ "const": "form",
924
+ "type": "string"
925
+ }
926
+ },
927
+ "readOnly": true,
928
+ "required": [
929
+ "kind",
930
+ "action",
931
+ "choiceId"
932
+ ],
933
+ "type": "object"
934
+ }
935
+ ]
936
+ }
937
+ };
938
+ const AGENT_SESSION_PLAN_REVIEW_REQUEST_JSON_SCHEMA = {
939
+ "contractId": "agenai.agent-protocol.session-plan-review-request",
940
+ "protocolVersion": 12,
941
+ "direction": "output",
942
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
943
+ "parserInvariants": [
944
+ "bounded_acyclic_json_data",
945
+ "utf16_text_lengths",
946
+ "utf8_field_bytes",
947
+ "serialized_utf8_bytes",
948
+ "unique_choice_ids",
949
+ "unique_choice_actions",
950
+ "plan_text_utf8_bytes"
951
+ ],
952
+ "sha256": "1b5bcabb1dfba67599f55966988a09b3dc86d2009209a554fe5750ff794e003d",
953
+ "schema": {
954
+ "$defs": {
955
+ "__schema0": {
956
+ "maxLength": 256,
957
+ "minLength": 1,
958
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
959
+ "type": "string"
960
+ },
961
+ "__schema1": {
962
+ "allOf": [
963
+ {
964
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
965
+ },
966
+ {
967
+ "pattern": "^[^\\u0000-\\u001F\\u007F-\\u009F]*$"
968
+ }
969
+ ],
970
+ "maxLength": 120,
971
+ "minLength": 1,
972
+ "type": "string"
973
+ },
974
+ "__schema2": {
975
+ "additionalProperties": false,
976
+ "properties": {
977
+ "action": {
978
+ "enum": [
979
+ "approve",
980
+ "revise",
981
+ "abandon"
982
+ ],
983
+ "type": "string"
984
+ },
985
+ "choiceId": {
986
+ "maxLength": 128,
987
+ "minLength": 1,
988
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
989
+ "type": "string"
990
+ },
991
+ "description": {
992
+ "allOf": [
993
+ {
994
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
995
+ },
996
+ {
997
+ "pattern": "^[^\\u0000-\\u0009\\u000B-\\u001F\\u007F-\\u009F]*$"
998
+ }
999
+ ],
1000
+ "maxLength": 1e3,
1001
+ "minLength": 1,
1002
+ "type": "string"
1003
+ },
1004
+ "label": {
1005
+ "$ref": "#/$defs/__schema1"
1006
+ }
1007
+ },
1008
+ "readOnly": true,
1009
+ "required": [
1010
+ "label",
1011
+ "choiceId",
1012
+ "action"
1013
+ ],
1014
+ "type": "object"
1015
+ }
1016
+ },
1017
+ "$id": "urn:agenai.agent-protocol.session-plan-review-request:v12:output",
1018
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1019
+ "additionalProperties": false,
1020
+ "properties": {
1021
+ "choices": {
1022
+ "items": {
1023
+ "$ref": "#/$defs/__schema2"
1024
+ },
1025
+ "maxItems": 16,
1026
+ "minItems": 1,
1027
+ "readOnly": true,
1028
+ "type": "array"
1029
+ },
1030
+ "description": {
1031
+ "allOf": [
1032
+ {
1033
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
1034
+ },
1035
+ {
1036
+ "pattern": "^[^\\u0000-\\u0009\\u000B-\\u001F\\u007F-\\u009F]*$"
1037
+ }
1038
+ ],
1039
+ "maxLength": 4e3,
1040
+ "minLength": 1,
1041
+ "type": "string"
1042
+ },
1043
+ "expiresAt": {
1044
+ "format": "date-time",
1045
+ "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)))$",
1046
+ "type": "string"
1047
+ },
1048
+ "kind": {
1049
+ "const": "plan_review",
1050
+ "type": "string"
1051
+ },
1052
+ "plan": {
1053
+ "additionalProperties": false,
1054
+ "properties": {
1055
+ "content": {
1056
+ "additionalProperties": false,
1057
+ "properties": {
1058
+ "format": {
1059
+ "enum": [
1060
+ "plain_text",
1061
+ "markdown"
1062
+ ],
1063
+ "type": "string"
1064
+ },
1065
+ "kind": {
1066
+ "const": "text",
1067
+ "type": "string"
1068
+ },
1069
+ "text": {
1070
+ "maxLength": 49152,
1071
+ "minLength": 1,
1072
+ "type": "string"
1073
+ }
1074
+ },
1075
+ "readOnly": true,
1076
+ "required": [
1077
+ "kind",
1078
+ "format",
1079
+ "text"
1080
+ ],
1081
+ "type": "object"
1082
+ },
1083
+ "planId": {
1084
+ "maxLength": 128,
1085
+ "minLength": 1,
1086
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1087
+ "type": "string"
1088
+ },
1089
+ "revision": {
1090
+ "maxLength": 128,
1091
+ "minLength": 1,
1092
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1093
+ "type": "string"
1094
+ },
1095
+ "title": {
1096
+ "$ref": "#/$defs/__schema1"
1097
+ }
1098
+ },
1099
+ "readOnly": true,
1100
+ "required": [
1101
+ "planId",
1102
+ "revision",
1103
+ "title",
1104
+ "content"
1105
+ ],
1106
+ "type": "object"
1107
+ },
1108
+ "requestId": {
1109
+ "$ref": "#/$defs/__schema0"
1110
+ },
1111
+ "sessionId": {
1112
+ "$ref": "#/$defs/__schema0"
1113
+ },
1114
+ "title": {
1115
+ "$ref": "#/$defs/__schema1"
1116
+ }
1117
+ },
1118
+ "readOnly": true,
1119
+ "required": [
1120
+ "requestId",
1121
+ "sessionId",
1122
+ "title",
1123
+ "kind",
1124
+ "plan",
1125
+ "choices"
1126
+ ],
1127
+ "type": "object"
1128
+ }
1129
+ };
1130
+ const AGENT_SESSION_PLAN_REVIEW_RESPONSE_JSON_SCHEMA = {
1131
+ "contractId": "agenai.agent-protocol.session-plan-review-response",
1132
+ "protocolVersion": 12,
1133
+ "direction": "input",
1134
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
1135
+ "parserInvariants": [
1136
+ "bounded_acyclic_json_data",
1137
+ "utf16_text_lengths",
1138
+ "utf8_field_bytes",
1139
+ "serialized_utf8_bytes",
1140
+ "offered_choice_membership",
1141
+ "offered_action_correlation",
1142
+ "field_answer_correlation",
1143
+ "unique_choice_selections",
1144
+ "exact_plan_revision",
1145
+ "request_kind_correlation"
1146
+ ],
1147
+ "sha256": "17b01edeac05b01c57d87ca627a8b591b6f8f05d5a7b488bb8764b9fd5ce41ce",
1148
+ "schema": {
1149
+ "$defs": {
1150
+ "__schema0": {
1151
+ "const": "plan_review",
1152
+ "type": "string"
1153
+ },
1154
+ "__schema1": {
1155
+ "maxLength": 128,
1156
+ "minLength": 1,
1157
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1158
+ "type": "string"
1159
+ },
1160
+ "__schema2": {
1161
+ "maxLength": 128,
1162
+ "minLength": 1,
1163
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1164
+ "type": "string"
1165
+ },
1166
+ "__schema3": {
1167
+ "maxLength": 128,
1168
+ "minLength": 1,
1169
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1170
+ "type": "string"
1171
+ }
1172
+ },
1173
+ "$id": "urn:agenai.agent-protocol.session-plan-review-response:v12:input",
1174
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1175
+ "oneOf": [
1176
+ {
1177
+ "additionalProperties": false,
1178
+ "properties": {
1179
+ "action": {
1180
+ "enum": [
1181
+ "approve",
1182
+ "abandon"
1183
+ ],
1184
+ "type": "string"
1185
+ },
1186
+ "choiceId": {
1187
+ "$ref": "#/$defs/__schema1"
1188
+ },
1189
+ "kind": {
1190
+ "$ref": "#/$defs/__schema0"
1191
+ },
1192
+ "planId": {
1193
+ "$ref": "#/$defs/__schema2"
1194
+ },
1195
+ "revision": {
1196
+ "$ref": "#/$defs/__schema3"
1197
+ }
1198
+ },
1199
+ "readOnly": true,
1200
+ "required": [
1201
+ "kind",
1202
+ "choiceId",
1203
+ "planId",
1204
+ "revision",
1205
+ "action"
1206
+ ],
1207
+ "type": "object"
1208
+ },
1209
+ {
1210
+ "additionalProperties": false,
1211
+ "properties": {
1212
+ "action": {
1213
+ "const": "revise",
1214
+ "type": "string"
1215
+ },
1216
+ "choiceId": {
1217
+ "$ref": "#/$defs/__schema1"
1218
+ },
1219
+ "feedback": {
1220
+ "maxLength": 4e3,
1221
+ "minLength": 1,
1222
+ "pattern": "\\S",
1223
+ "type": "string"
1224
+ },
1225
+ "kind": {
1226
+ "$ref": "#/$defs/__schema0"
1227
+ },
1228
+ "planId": {
1229
+ "$ref": "#/$defs/__schema2"
1230
+ },
1231
+ "revision": {
1232
+ "$ref": "#/$defs/__schema3"
1233
+ }
1234
+ },
1235
+ "readOnly": true,
1236
+ "required": [
1237
+ "kind",
1238
+ "choiceId",
1239
+ "planId",
1240
+ "revision",
1241
+ "action",
1242
+ "feedback"
1243
+ ],
1244
+ "type": "object"
1245
+ }
1246
+ ]
1247
+ }
1248
+ };
1249
+ const AGENT_SESSION_REQUEST_JSON_SCHEMA = {
1250
+ "contractId": "agenai.agent-protocol.session-request",
1251
+ "protocolVersion": 12,
1252
+ "direction": "output",
1253
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
1254
+ "parserInvariants": [
1255
+ "bounded_acyclic_json_data",
1256
+ "utf16_text_lengths",
1257
+ "utf8_field_bytes",
1258
+ "serialized_utf8_bytes",
1259
+ "unique_choice_ids",
1260
+ "unique_choice_actions",
1261
+ "unique_field_ids",
1262
+ "unique_choice_values",
1263
+ "field_selection_bounds",
1264
+ "plan_text_utf8_bytes"
1265
+ ],
1266
+ "sha256": "518f743e2c4c1fecf7c589bc0689df5a0c4cc6ce53e821171f1c57e7a94edb44",
1267
+ "schema": {
1268
+ "$defs": {
1269
+ "__schema0": {
1270
+ "maxLength": 256,
1271
+ "minLength": 1,
1272
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1273
+ "type": "string"
1274
+ },
1275
+ "__schema1": {
1276
+ "allOf": [
1277
+ {
1278
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
1279
+ },
1280
+ {
1281
+ "pattern": "^[^\\u0000-\\u001F\\u007F-\\u009F]*$"
1282
+ }
1283
+ ],
1284
+ "maxLength": 120,
1285
+ "minLength": 1,
1286
+ "type": "string"
1287
+ },
1288
+ "__schema10": {
1289
+ "items": {
1290
+ "$ref": "#/$defs/__schema11"
1291
+ },
1292
+ "maxItems": 100,
1293
+ "minItems": 1,
1294
+ "readOnly": true,
1295
+ "type": "array"
1296
+ },
1297
+ "__schema11": {
1298
+ "additionalProperties": false,
1299
+ "properties": {
1300
+ "description": {
1301
+ "maxLength": 2e3,
1302
+ "type": "string"
1303
+ },
1304
+ "label": {
1305
+ "maxLength": 200,
1306
+ "minLength": 1,
1307
+ "type": "string"
1308
+ },
1309
+ "value": {
1310
+ "allOf": [
1311
+ {
1312
+ "$ref": "#/$defs/__schema0"
1313
+ },
1314
+ {
1315
+ "maxLength": 160,
1316
+ "type": "string"
1317
+ }
1318
+ ]
1319
+ }
1320
+ },
1321
+ "readOnly": true,
1322
+ "required": [
1323
+ "value",
1324
+ "label"
1325
+ ],
1326
+ "type": "object"
1327
+ },
1328
+ "__schema12": {
1329
+ "oneOf": [
1330
+ {
1331
+ "additionalProperties": false,
1332
+ "properties": {
1333
+ "action": {
1334
+ "const": "submit",
1335
+ "type": "string"
1336
+ },
1337
+ "choiceId": {
1338
+ "$ref": "#/$defs/__schema14"
1339
+ },
1340
+ "description": {
1341
+ "$ref": "#/$defs/__schema13"
1342
+ },
1343
+ "label": {
1344
+ "$ref": "#/$defs/__schema1"
1345
+ }
1346
+ },
1347
+ "readOnly": true,
1348
+ "required": [
1349
+ "label",
1350
+ "choiceId",
1351
+ "action"
1352
+ ],
1353
+ "type": "object"
1354
+ },
1355
+ {
1356
+ "additionalProperties": false,
1357
+ "properties": {
1358
+ "action": {
1359
+ "const": "cancel",
1360
+ "type": "string"
1361
+ },
1362
+ "choiceId": {
1363
+ "$ref": "#/$defs/__schema14"
1364
+ },
1365
+ "description": {
1366
+ "$ref": "#/$defs/__schema13"
1367
+ },
1368
+ "label": {
1369
+ "$ref": "#/$defs/__schema1"
1370
+ }
1371
+ },
1372
+ "readOnly": true,
1373
+ "required": [
1374
+ "label",
1375
+ "choiceId",
1376
+ "action"
1377
+ ],
1378
+ "type": "object"
1379
+ }
1380
+ ]
1381
+ },
1382
+ "__schema13": {
1383
+ "allOf": [
1384
+ {
1385
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
1386
+ },
1387
+ {
1388
+ "pattern": "^[^\\u0000-\\u0009\\u000B-\\u001F\\u007F-\\u009F]*$"
1389
+ }
1390
+ ],
1391
+ "maxLength": 1e3,
1392
+ "minLength": 1,
1393
+ "type": "string"
1394
+ },
1395
+ "__schema14": {
1396
+ "maxLength": 128,
1397
+ "minLength": 1,
1398
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1399
+ "type": "string"
1400
+ },
1401
+ "__schema15": {
1402
+ "additionalProperties": false,
1403
+ "properties": {
1404
+ "action": {
1405
+ "enum": [
1406
+ "approve",
1407
+ "revise",
1408
+ "abandon"
1409
+ ],
1410
+ "type": "string"
1411
+ },
1412
+ "choiceId": {
1413
+ "maxLength": 128,
1414
+ "minLength": 1,
1415
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1416
+ "type": "string"
1417
+ },
1418
+ "description": {
1419
+ "$ref": "#/$defs/__schema13"
1420
+ },
1421
+ "label": {
1422
+ "$ref": "#/$defs/__schema1"
1423
+ }
1424
+ },
1425
+ "readOnly": true,
1426
+ "required": [
1427
+ "label",
1428
+ "choiceId",
1429
+ "action"
1430
+ ],
1431
+ "type": "object"
1432
+ },
1433
+ "__schema2": {
1434
+ "allOf": [
1435
+ {
1436
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
1437
+ },
1438
+ {
1439
+ "pattern": "^[^\\u0000-\\u0009\\u000B-\\u001F\\u007F-\\u009F]*$"
1440
+ }
1441
+ ],
1442
+ "maxLength": 4e3,
1443
+ "minLength": 1,
1444
+ "type": "string"
1445
+ },
1446
+ "__schema3": {
1447
+ "format": "date-time",
1448
+ "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)))$",
1449
+ "type": "string"
1450
+ },
1451
+ "__schema4": {
1452
+ "additionalProperties": false,
1453
+ "properties": {
1454
+ "choiceId": {
1455
+ "maxLength": 128,
1456
+ "minLength": 1,
1457
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1458
+ "type": "string"
1459
+ },
1460
+ "consequence": {
1461
+ "oneOf": [
1462
+ {
1463
+ "additionalProperties": false,
1464
+ "properties": {
1465
+ "kind": {
1466
+ "const": "grant",
1467
+ "type": "string"
1468
+ },
1469
+ "persistence": {
1470
+ "additionalProperties": false,
1471
+ "properties": {
1472
+ "duration": {
1473
+ "const": "persistent",
1474
+ "type": "string"
1475
+ },
1476
+ "kind": {
1477
+ "const": "provider_managed",
1478
+ "type": "string"
1479
+ },
1480
+ "mayAffectOtherSessions": {
1481
+ "const": true,
1482
+ "type": "boolean"
1483
+ }
1484
+ },
1485
+ "readOnly": true,
1486
+ "required": [
1487
+ "kind",
1488
+ "duration",
1489
+ "mayAffectOtherSessions"
1490
+ ],
1491
+ "type": "object"
1492
+ },
1493
+ "scope": {
1494
+ "const": "workspace",
1495
+ "type": "string"
1496
+ }
1497
+ },
1498
+ "readOnly": true,
1499
+ "required": [
1500
+ "kind",
1501
+ "scope",
1502
+ "persistence"
1503
+ ],
1504
+ "type": "object"
1505
+ },
1506
+ {
1507
+ "additionalProperties": false,
1508
+ "properties": {
1509
+ "configuration": {
1510
+ "const": "remains_gated",
1511
+ "type": "string"
1512
+ },
1513
+ "kind": {
1514
+ "const": "decline",
1515
+ "type": "string"
1516
+ }
1517
+ },
1518
+ "readOnly": true,
1519
+ "required": [
1520
+ "kind",
1521
+ "configuration"
1522
+ ],
1523
+ "type": "object"
1524
+ }
1525
+ ]
1526
+ },
1527
+ "description": {
1528
+ "allOf": [
1529
+ {
1530
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
1531
+ },
1532
+ {
1533
+ "pattern": "^[^\\u0000-\\u0009\\u000B-\\u001F\\u007F-\\u009F]*$"
1534
+ }
1535
+ ],
1536
+ "maxLength": 1e3,
1537
+ "minLength": 1,
1538
+ "type": "string"
1539
+ },
1540
+ "label": {
1541
+ "$ref": "#/$defs/__schema1"
1542
+ }
1543
+ },
1544
+ "readOnly": true,
1545
+ "required": [
1546
+ "choiceId",
1547
+ "label",
1548
+ "description",
1549
+ "consequence"
1550
+ ],
1551
+ "type": "object"
1552
+ },
1553
+ "__schema5": {
1554
+ "oneOf": [
1555
+ {
1556
+ "additionalProperties": false,
1557
+ "properties": {
1558
+ "description": {
1559
+ "$ref": "#/$defs/__schema7"
1560
+ },
1561
+ "fieldId": {
1562
+ "$ref": "#/$defs/__schema0"
1563
+ },
1564
+ "kind": {
1565
+ "const": "text",
1566
+ "type": "string"
1567
+ },
1568
+ "label": {
1569
+ "$ref": "#/$defs/__schema6"
1570
+ },
1571
+ "maxLength": {
1572
+ "exclusiveMinimum": 0,
1573
+ "maximum": 4e3,
1574
+ "type": "integer"
1575
+ },
1576
+ "multiline": {
1577
+ "type": "boolean"
1578
+ },
1579
+ "required": {
1580
+ "$ref": "#/$defs/__schema8"
1581
+ },
1582
+ "sensitivity": {
1583
+ "$ref": "#/$defs/__schema9"
1584
+ }
1585
+ },
1586
+ "readOnly": true,
1587
+ "required": [
1588
+ "fieldId",
1589
+ "label",
1590
+ "required",
1591
+ "sensitivity",
1592
+ "kind",
1593
+ "multiline",
1594
+ "maxLength"
1595
+ ],
1596
+ "type": "object"
1597
+ },
1598
+ {
1599
+ "additionalProperties": false,
1600
+ "properties": {
1601
+ "allowOther": {
1602
+ "type": "boolean"
1603
+ },
1604
+ "description": {
1605
+ "$ref": "#/$defs/__schema7"
1606
+ },
1607
+ "fieldId": {
1608
+ "$ref": "#/$defs/__schema0"
1609
+ },
1610
+ "kind": {
1611
+ "const": "single_select",
1612
+ "type": "string"
1613
+ },
1614
+ "label": {
1615
+ "$ref": "#/$defs/__schema6"
1616
+ },
1617
+ "options": {
1618
+ "$ref": "#/$defs/__schema10"
1619
+ },
1620
+ "required": {
1621
+ "$ref": "#/$defs/__schema8"
1622
+ },
1623
+ "sensitivity": {
1624
+ "$ref": "#/$defs/__schema9"
1625
+ }
1626
+ },
1627
+ "readOnly": true,
1628
+ "required": [
1629
+ "fieldId",
1630
+ "label",
1631
+ "required",
1632
+ "sensitivity",
1633
+ "kind",
1634
+ "options",
1635
+ "allowOther"
1636
+ ],
1637
+ "type": "object"
1638
+ },
1639
+ {
1640
+ "additionalProperties": false,
1641
+ "properties": {
1642
+ "allowOther": {
1643
+ "type": "boolean"
1644
+ },
1645
+ "description": {
1646
+ "$ref": "#/$defs/__schema7"
1647
+ },
1648
+ "fieldId": {
1649
+ "$ref": "#/$defs/__schema0"
1650
+ },
1651
+ "kind": {
1652
+ "const": "multi_select",
1653
+ "type": "string"
1654
+ },
1655
+ "label": {
1656
+ "$ref": "#/$defs/__schema6"
1657
+ },
1658
+ "maxSelections": {
1659
+ "exclusiveMinimum": 0,
1660
+ "maximum": 100,
1661
+ "type": "integer"
1662
+ },
1663
+ "options": {
1664
+ "$ref": "#/$defs/__schema10"
1665
+ },
1666
+ "required": {
1667
+ "$ref": "#/$defs/__schema8"
1668
+ },
1669
+ "sensitivity": {
1670
+ "$ref": "#/$defs/__schema9"
1671
+ }
1672
+ },
1673
+ "readOnly": true,
1674
+ "required": [
1675
+ "fieldId",
1676
+ "label",
1677
+ "required",
1678
+ "sensitivity",
1679
+ "kind",
1680
+ "options",
1681
+ "allowOther",
1682
+ "maxSelections"
1683
+ ],
1684
+ "type": "object"
1685
+ },
1686
+ {
1687
+ "additionalProperties": false,
1688
+ "properties": {
1689
+ "description": {
1690
+ "$ref": "#/$defs/__schema7"
1691
+ },
1692
+ "fieldId": {
1693
+ "$ref": "#/$defs/__schema0"
1694
+ },
1695
+ "kind": {
1696
+ "const": "boolean",
1697
+ "type": "string"
1698
+ },
1699
+ "label": {
1700
+ "$ref": "#/$defs/__schema6"
1701
+ },
1702
+ "required": {
1703
+ "$ref": "#/$defs/__schema8"
1704
+ },
1705
+ "sensitivity": {
1706
+ "$ref": "#/$defs/__schema9"
1707
+ }
1708
+ },
1709
+ "readOnly": true,
1710
+ "required": [
1711
+ "fieldId",
1712
+ "label",
1713
+ "required",
1714
+ "sensitivity",
1715
+ "kind"
1716
+ ],
1717
+ "type": "object"
1718
+ },
1719
+ {
1720
+ "additionalProperties": false,
1721
+ "properties": {
1722
+ "confirmLabel": {
1723
+ "maxLength": 200,
1724
+ "minLength": 1,
1725
+ "type": "string"
1726
+ },
1727
+ "description": {
1728
+ "$ref": "#/$defs/__schema7"
1729
+ },
1730
+ "fieldId": {
1731
+ "$ref": "#/$defs/__schema0"
1732
+ },
1733
+ "kind": {
1734
+ "const": "confirmation",
1735
+ "type": "string"
1736
+ },
1737
+ "label": {
1738
+ "$ref": "#/$defs/__schema6"
1739
+ },
1740
+ "required": {
1741
+ "$ref": "#/$defs/__schema8"
1742
+ },
1743
+ "sensitivity": {
1744
+ "$ref": "#/$defs/__schema9"
1745
+ }
1746
+ },
1747
+ "readOnly": true,
1748
+ "required": [
1749
+ "fieldId",
1750
+ "label",
1751
+ "required",
1752
+ "sensitivity",
1753
+ "kind",
1754
+ "confirmLabel"
1755
+ ],
1756
+ "type": "object"
1757
+ }
1758
+ ]
1759
+ },
1760
+ "__schema6": {
1761
+ "maxLength": 200,
1762
+ "minLength": 1,
1763
+ "type": "string"
1764
+ },
1765
+ "__schema7": {
1766
+ "maxLength": 2e3,
1767
+ "type": "string"
1768
+ },
1769
+ "__schema8": {
1770
+ "type": "boolean"
1771
+ },
1772
+ "__schema9": {
1773
+ "enum": [
1774
+ "ordinary",
1775
+ "sensitive"
1776
+ ],
1777
+ "type": "string"
1778
+ }
1779
+ },
1780
+ "$id": "urn:agenai.agent-protocol.session-request:v12:output",
1781
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1782
+ "oneOf": [
1783
+ {
1784
+ "additionalProperties": false,
1785
+ "properties": {
1786
+ "choices": {
1787
+ "items": {
1788
+ "$ref": "#/$defs/__schema4"
1789
+ },
1790
+ "maxItems": 16,
1791
+ "minItems": 1,
1792
+ "readOnly": true,
1793
+ "type": "array"
1794
+ },
1795
+ "description": {
1796
+ "$ref": "#/$defs/__schema2"
1797
+ },
1798
+ "expiresAt": {
1799
+ "$ref": "#/$defs/__schema3"
1800
+ },
1801
+ "kind": {
1802
+ "const": "decision",
1803
+ "type": "string"
1804
+ },
1805
+ "requestId": {
1806
+ "$ref": "#/$defs/__schema0"
1807
+ },
1808
+ "sessionId": {
1809
+ "$ref": "#/$defs/__schema0"
1810
+ },
1811
+ "target": {
1812
+ "additionalProperties": false,
1813
+ "properties": {
1814
+ "kind": {
1815
+ "const": "workspace",
1816
+ "type": "string"
1817
+ },
1818
+ "path": {
1819
+ "allOf": [
1820
+ {
1821
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$"
1822
+ },
1823
+ {
1824
+ "pattern": "^[^\\p{Cc}\\p{Cf}]*$"
1825
+ }
1826
+ ],
1827
+ "maxLength": 4096,
1828
+ "minLength": 1,
1829
+ "type": "string"
1830
+ }
1831
+ },
1832
+ "readOnly": true,
1833
+ "required": [
1834
+ "kind",
1835
+ "path"
1836
+ ],
1837
+ "type": "object"
1838
+ },
1839
+ "title": {
1840
+ "$ref": "#/$defs/__schema1"
1841
+ }
1842
+ },
1843
+ "readOnly": true,
1844
+ "required": [
1845
+ "requestId",
1846
+ "sessionId",
1847
+ "title",
1848
+ "kind",
1849
+ "target",
1850
+ "choices"
1851
+ ],
1852
+ "type": "object"
1853
+ },
1854
+ {
1855
+ "additionalProperties": false,
1856
+ "properties": {
1857
+ "choices": {
1858
+ "items": {
1859
+ "$ref": "#/$defs/__schema12"
1860
+ },
1861
+ "maxItems": 16,
1862
+ "minItems": 1,
1863
+ "readOnly": true,
1864
+ "type": "array"
1865
+ },
1866
+ "description": {
1867
+ "$ref": "#/$defs/__schema2"
1868
+ },
1869
+ "expiresAt": {
1870
+ "$ref": "#/$defs/__schema3"
1871
+ },
1872
+ "fields": {
1873
+ "items": {
1874
+ "$ref": "#/$defs/__schema5"
1875
+ },
1876
+ "maxItems": 16,
1877
+ "minItems": 1,
1878
+ "readOnly": true,
1879
+ "type": "array"
1880
+ },
1881
+ "kind": {
1882
+ "const": "form",
1883
+ "type": "string"
1884
+ },
1885
+ "requestId": {
1886
+ "$ref": "#/$defs/__schema0"
1887
+ },
1888
+ "sessionId": {
1889
+ "$ref": "#/$defs/__schema0"
1890
+ },
1891
+ "title": {
1892
+ "$ref": "#/$defs/__schema1"
1893
+ }
1894
+ },
1895
+ "readOnly": true,
1896
+ "required": [
1897
+ "requestId",
1898
+ "sessionId",
1899
+ "title",
1900
+ "kind",
1901
+ "fields",
1902
+ "choices"
1903
+ ],
1904
+ "type": "object"
1905
+ },
1906
+ {
1907
+ "additionalProperties": false,
1908
+ "properties": {
1909
+ "choices": {
1910
+ "items": {
1911
+ "$ref": "#/$defs/__schema15"
1912
+ },
1913
+ "maxItems": 16,
1914
+ "minItems": 1,
1915
+ "readOnly": true,
1916
+ "type": "array"
1917
+ },
1918
+ "description": {
1919
+ "$ref": "#/$defs/__schema2"
1920
+ },
1921
+ "expiresAt": {
1922
+ "$ref": "#/$defs/__schema3"
1923
+ },
1924
+ "kind": {
1925
+ "const": "plan_review",
1926
+ "type": "string"
1927
+ },
1928
+ "plan": {
1929
+ "additionalProperties": false,
1930
+ "properties": {
1931
+ "content": {
1932
+ "additionalProperties": false,
1933
+ "properties": {
1934
+ "format": {
1935
+ "enum": [
1936
+ "plain_text",
1937
+ "markdown"
1938
+ ],
1939
+ "type": "string"
1940
+ },
1941
+ "kind": {
1942
+ "const": "text",
1943
+ "type": "string"
1944
+ },
1945
+ "text": {
1946
+ "maxLength": 49152,
1947
+ "minLength": 1,
1948
+ "type": "string"
1949
+ }
1950
+ },
1951
+ "readOnly": true,
1952
+ "required": [
1953
+ "kind",
1954
+ "format",
1955
+ "text"
1956
+ ],
1957
+ "type": "object"
1958
+ },
1959
+ "planId": {
1960
+ "maxLength": 128,
1961
+ "minLength": 1,
1962
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1963
+ "type": "string"
1964
+ },
1965
+ "revision": {
1966
+ "maxLength": 128,
1967
+ "minLength": 1,
1968
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1969
+ "type": "string"
1970
+ },
1971
+ "title": {
1972
+ "$ref": "#/$defs/__schema1"
1973
+ }
1974
+ },
1975
+ "readOnly": true,
1976
+ "required": [
1977
+ "planId",
1978
+ "revision",
1979
+ "title",
1980
+ "content"
1981
+ ],
1982
+ "type": "object"
1983
+ },
1984
+ "requestId": {
1985
+ "$ref": "#/$defs/__schema0"
1986
+ },
1987
+ "sessionId": {
1988
+ "$ref": "#/$defs/__schema0"
1989
+ },
1990
+ "title": {
1991
+ "$ref": "#/$defs/__schema1"
1992
+ }
1993
+ },
1994
+ "readOnly": true,
1995
+ "required": [
1996
+ "requestId",
1997
+ "sessionId",
1998
+ "title",
1999
+ "kind",
2000
+ "plan",
2001
+ "choices"
2002
+ ],
2003
+ "type": "object"
2004
+ }
2005
+ ]
2006
+ }
2007
+ };
2008
+ const AGENT_SESSION_RESPONSE_JSON_SCHEMA = {
2009
+ "contractId": "agenai.agent-protocol.session-response",
2010
+ "protocolVersion": 12,
2011
+ "direction": "input",
2012
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
2013
+ "parserInvariants": [
2014
+ "bounded_acyclic_json_data",
2015
+ "utf16_text_lengths",
2016
+ "utf8_field_bytes",
2017
+ "serialized_utf8_bytes",
2018
+ "offered_choice_membership",
2019
+ "offered_action_correlation",
2020
+ "field_answer_correlation",
2021
+ "unique_choice_selections",
2022
+ "exact_plan_revision",
2023
+ "request_kind_correlation"
2024
+ ],
2025
+ "sha256": "59568a450789083c577a95c4146caf76e83b1bb3f1fb605776b826079b27426f",
2026
+ "schema": {
2027
+ "$defs": {
2028
+ "__schema0": {
2029
+ "maxLength": 128,
2030
+ "minLength": 1,
2031
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
2032
+ "type": "string"
2033
+ },
2034
+ "__schema1": {
2035
+ "oneOf": [
2036
+ {
2037
+ "additionalProperties": false,
2038
+ "properties": {
2039
+ "fieldId": {
2040
+ "$ref": "#/$defs/__schema2"
2041
+ },
2042
+ "kind": {
2043
+ "const": "text",
2044
+ "type": "string"
2045
+ },
2046
+ "value": {
2047
+ "$ref": "#/$defs/__schema3"
2048
+ }
2049
+ },
2050
+ "readOnly": true,
2051
+ "required": [
2052
+ "fieldId",
2053
+ "kind",
2054
+ "value"
2055
+ ],
2056
+ "type": "object"
2057
+ },
2058
+ {
2059
+ "additionalProperties": false,
2060
+ "properties": {
2061
+ "fieldId": {
2062
+ "$ref": "#/$defs/__schema2"
2063
+ },
2064
+ "kind": {
2065
+ "const": "single_select",
2066
+ "type": "string"
2067
+ },
2068
+ "other": {
2069
+ "$ref": "#/$defs/__schema3"
2070
+ },
2071
+ "value": {
2072
+ "$ref": "#/$defs/__schema4"
2073
+ }
2074
+ },
2075
+ "readOnly": true,
2076
+ "required": [
2077
+ "fieldId",
2078
+ "kind"
2079
+ ],
2080
+ "type": "object"
2081
+ },
2082
+ {
2083
+ "additionalProperties": false,
2084
+ "properties": {
2085
+ "fieldId": {
2086
+ "$ref": "#/$defs/__schema2"
2087
+ },
2088
+ "kind": {
2089
+ "const": "multi_select",
2090
+ "type": "string"
2091
+ },
2092
+ "other": {
2093
+ "$ref": "#/$defs/__schema3"
2094
+ },
2095
+ "values": {
2096
+ "items": {
2097
+ "$ref": "#/$defs/__schema4"
2098
+ },
2099
+ "maxItems": 100,
2100
+ "readOnly": true,
2101
+ "type": "array"
2102
+ }
2103
+ },
2104
+ "readOnly": true,
2105
+ "required": [
2106
+ "fieldId",
2107
+ "kind",
2108
+ "values"
2109
+ ],
2110
+ "type": "object"
2111
+ },
2112
+ {
2113
+ "additionalProperties": false,
2114
+ "properties": {
2115
+ "fieldId": {
2116
+ "$ref": "#/$defs/__schema2"
2117
+ },
2118
+ "kind": {
2119
+ "const": "boolean",
2120
+ "type": "string"
2121
+ },
2122
+ "value": {
2123
+ "type": "boolean"
2124
+ }
2125
+ },
2126
+ "readOnly": true,
2127
+ "required": [
2128
+ "fieldId",
2129
+ "kind",
2130
+ "value"
2131
+ ],
2132
+ "type": "object"
2133
+ },
2134
+ {
2135
+ "additionalProperties": false,
2136
+ "properties": {
2137
+ "confirmed": {
2138
+ "type": "boolean"
2139
+ },
2140
+ "fieldId": {
2141
+ "$ref": "#/$defs/__schema2"
2142
+ },
2143
+ "kind": {
2144
+ "const": "confirmation",
2145
+ "type": "string"
2146
+ }
2147
+ },
2148
+ "readOnly": true,
2149
+ "required": [
2150
+ "fieldId",
2151
+ "kind",
2152
+ "confirmed"
2153
+ ],
2154
+ "type": "object"
2155
+ }
2156
+ ]
2157
+ },
2158
+ "__schema2": {
2159
+ "maxLength": 256,
2160
+ "minLength": 1,
2161
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
2162
+ "type": "string"
2163
+ },
2164
+ "__schema3": {
2165
+ "maxLength": 4e3,
2166
+ "pattern": "\\S",
2167
+ "type": "string"
2168
+ },
2169
+ "__schema4": {
2170
+ "allOf": [
2171
+ {
2172
+ "$ref": "#/$defs/__schema2"
2173
+ },
2174
+ {
2175
+ "maxLength": 160,
2176
+ "type": "string"
2177
+ }
2178
+ ]
2179
+ },
2180
+ "__schema5": {
2181
+ "const": "plan_review",
2182
+ "type": "string"
2183
+ },
2184
+ "__schema6": {
2185
+ "maxLength": 128,
2186
+ "minLength": 1,
2187
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
2188
+ "type": "string"
2189
+ },
2190
+ "__schema7": {
2191
+ "maxLength": 128,
2192
+ "minLength": 1,
2193
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
2194
+ "type": "string"
2195
+ },
2196
+ "__schema8": {
2197
+ "maxLength": 128,
2198
+ "minLength": 1,
2199
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
2200
+ "type": "string"
2201
+ }
2202
+ },
2203
+ "$id": "urn:agenai.agent-protocol.session-response:v12:input",
2204
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2205
+ "anyOf": [
2206
+ {
2207
+ "additionalProperties": false,
2208
+ "properties": {
2209
+ "choiceId": {
2210
+ "maxLength": 128,
2211
+ "minLength": 1,
2212
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
2213
+ "type": "string"
2214
+ },
2215
+ "kind": {
2216
+ "const": "decision",
2217
+ "type": "string"
2218
+ }
2219
+ },
2220
+ "readOnly": true,
2221
+ "required": [
2222
+ "kind",
2223
+ "choiceId"
2224
+ ],
2225
+ "type": "object"
2226
+ },
2227
+ {
2228
+ "oneOf": [
2229
+ {
2230
+ "additionalProperties": false,
2231
+ "properties": {
2232
+ "action": {
2233
+ "const": "submit",
2234
+ "type": "string"
2235
+ },
2236
+ "answers": {
2237
+ "items": {
2238
+ "$ref": "#/$defs/__schema1"
2239
+ },
2240
+ "maxItems": 16,
2241
+ "readOnly": true,
2242
+ "type": "array"
2243
+ },
2244
+ "choiceId": {
2245
+ "$ref": "#/$defs/__schema0"
2246
+ },
2247
+ "kind": {
2248
+ "const": "form",
2249
+ "type": "string"
2250
+ }
2251
+ },
2252
+ "readOnly": true,
2253
+ "required": [
2254
+ "kind",
2255
+ "action",
2256
+ "choiceId",
2257
+ "answers"
2258
+ ],
2259
+ "type": "object"
2260
+ },
2261
+ {
2262
+ "additionalProperties": false,
2263
+ "properties": {
2264
+ "action": {
2265
+ "const": "cancel",
2266
+ "type": "string"
2267
+ },
2268
+ "choiceId": {
2269
+ "$ref": "#/$defs/__schema0"
2270
+ },
2271
+ "kind": {
2272
+ "const": "form",
2273
+ "type": "string"
2274
+ }
2275
+ },
2276
+ "readOnly": true,
2277
+ "required": [
2278
+ "kind",
2279
+ "action",
2280
+ "choiceId"
2281
+ ],
2282
+ "type": "object"
2283
+ }
2284
+ ]
2285
+ },
2286
+ {
2287
+ "oneOf": [
2288
+ {
2289
+ "additionalProperties": false,
2290
+ "properties": {
2291
+ "action": {
2292
+ "enum": [
2293
+ "approve",
2294
+ "abandon"
2295
+ ],
2296
+ "type": "string"
2297
+ },
2298
+ "choiceId": {
2299
+ "$ref": "#/$defs/__schema6"
2300
+ },
2301
+ "kind": {
2302
+ "$ref": "#/$defs/__schema5"
2303
+ },
2304
+ "planId": {
2305
+ "$ref": "#/$defs/__schema7"
2306
+ },
2307
+ "revision": {
2308
+ "$ref": "#/$defs/__schema8"
2309
+ }
2310
+ },
2311
+ "readOnly": true,
2312
+ "required": [
2313
+ "kind",
2314
+ "choiceId",
2315
+ "planId",
2316
+ "revision",
2317
+ "action"
2318
+ ],
2319
+ "type": "object"
2320
+ },
2321
+ {
2322
+ "additionalProperties": false,
2323
+ "properties": {
2324
+ "action": {
2325
+ "const": "revise",
2326
+ "type": "string"
2327
+ },
2328
+ "choiceId": {
2329
+ "$ref": "#/$defs/__schema6"
2330
+ },
2331
+ "feedback": {
2332
+ "maxLength": 4e3,
2333
+ "minLength": 1,
2334
+ "pattern": "\\S",
2335
+ "type": "string"
2336
+ },
2337
+ "kind": {
2338
+ "$ref": "#/$defs/__schema5"
2339
+ },
2340
+ "planId": {
2341
+ "$ref": "#/$defs/__schema7"
2342
+ },
2343
+ "revision": {
2344
+ "$ref": "#/$defs/__schema8"
2345
+ }
2346
+ },
2347
+ "readOnly": true,
2348
+ "required": [
2349
+ "kind",
2350
+ "choiceId",
2351
+ "planId",
2352
+ "revision",
2353
+ "action",
2354
+ "feedback"
2355
+ ],
2356
+ "type": "object"
2357
+ }
2358
+ ]
2359
+ }
2360
+ ]
2361
+ }
2362
+ };
2
2363
  const AGENT_ERROR_JSON_SCHEMA = {
3
2364
  "contractId": "agenai.agent-protocol.error",
4
- "protocolVersion": 10,
2365
+ "protocolVersion": 12,
5
2366
  "direction": "output",
6
2367
  "dialect": "https://json-schema.org/draft/2020-12/schema",
7
2368
  "parserInvariants": [
@@ -9,7 +2370,7 @@ const AGENT_ERROR_JSON_SCHEMA = {
9
2370
  "quota_reset_observation_ordering",
10
2371
  "serialized_failure_bytes"
11
2372
  ],
12
- "sha256": "9e390edcea55e83b86059d2f5b45acabfb19116ec5a435ae40303f05d81af90e",
2373
+ "sha256": "f517a080716086e87dbad0e1132cb304c9387901dbe1f007a41763e297bd63ce",
13
2374
  "schema": {
14
2375
  "$defs": {
15
2376
  "__schema0": {
@@ -232,7 +2593,7 @@ const AGENT_ERROR_JSON_SCHEMA = {
232
2593
  "type": "string"
233
2594
  }
234
2595
  },
235
- "$id": "urn:agenai.agent-protocol.error:v10:output",
2596
+ "$id": "urn:agenai.agent-protocol.error:v12:output",
236
2597
  "$ref": "#/$defs/__schema0",
237
2598
  "$schema": "https://json-schema.org/draft/2020-12/schema",
238
2599
  "readOnly": true
@@ -240,7 +2601,7 @@ const AGENT_ERROR_JSON_SCHEMA = {
240
2601
  };
241
2602
  const AGENT_EFFECTIVE_CONTENT_CATALOG_JSON_SCHEMA = {
242
2603
  "contractId": "agenai.agent-protocol.effective-content-catalog",
243
- "protocolVersion": 10,
2604
+ "protocolVersion": 12,
244
2605
  "direction": "output",
245
2606
  "dialect": "https://json-schema.org/draft/2020-12/schema",
246
2607
  "parserInvariants": [
@@ -251,7 +2612,7 @@ const AGENT_EFFECTIVE_CONTENT_CATALOG_JSON_SCHEMA = {
251
2612
  "aggregate_collection_limits",
252
2613
  "effective_content_semantics"
253
2614
  ],
254
- "sha256": "54f6bf4df08a0041871336a10e6cb1b37ae913fc8750d40c05b7162a961ab6b7",
2615
+ "sha256": "0847560cf807027093ea8d67b66e760cf2255c8d420faccb3b3b2c2e5a57fb63",
255
2616
  "schema": {
256
2617
  "$defs": {
257
2618
  "__schema0": {
@@ -449,7 +2810,7 @@ const AGENT_EFFECTIVE_CONTENT_CATALOG_JSON_SCHEMA = {
449
2810
  "type": "integer"
450
2811
  }
451
2812
  },
452
- "$id": "urn:agenai.agent-protocol.effective-content-catalog:v10:output",
2813
+ "$id": "urn:agenai.agent-protocol.effective-content-catalog:v12:output",
453
2814
  "$schema": "https://json-schema.org/draft/2020-12/schema",
454
2815
  "additionalProperties": false,
455
2816
  "properties": {
@@ -481,7 +2842,7 @@ const AGENT_EFFECTIVE_CONTENT_CATALOG_JSON_SCHEMA = {
481
2842
  };
482
2843
  const AGENT_COMMAND_CATALOG_JSON_SCHEMA = {
483
2844
  "contractId": "agenai.agent-protocol.command-catalog",
484
- "protocolVersion": 10,
2845
+ "protocolVersion": 12,
485
2846
  "direction": "output",
486
2847
  "dialect": "https://json-schema.org/draft/2020-12/schema",
487
2848
  "parserInvariants": [
@@ -491,7 +2852,7 @@ const AGENT_COMMAND_CATALOG_JSON_SCHEMA = {
491
2852
  "serialized_utf8_bytes",
492
2853
  "aggregate_collection_limits"
493
2854
  ],
494
- "sha256": "77339a2807ad3d1842a7b91d42c7029709b251e73062839a2b7247acaaccd118",
2855
+ "sha256": "f3bbb3955f0dd5edf8f9d378a5710d4738f56eb640cecf3106282fe4515332cf",
495
2856
  "schema": {
496
2857
  "$defs": {
497
2858
  "__schema0": {
@@ -629,7 +2990,7 @@ const AGENT_COMMAND_CATALOG_JSON_SCHEMA = {
629
2990
  "type": "string"
630
2991
  }
631
2992
  },
632
- "$id": "urn:agenai.agent-protocol.command-catalog:v10:output",
2993
+ "$id": "urn:agenai.agent-protocol.command-catalog:v12:output",
633
2994
  "$schema": "https://json-schema.org/draft/2020-12/schema",
634
2995
  "additionalProperties": false,
635
2996
  "properties": {
@@ -661,7 +3022,7 @@ const AGENT_COMMAND_CATALOG_JSON_SCHEMA = {
661
3022
  };
662
3023
  const AGENT_EXTENSION_CATALOG_JSON_SCHEMA = {
663
3024
  "contractId": "agenai.agent-protocol.extension-catalog",
664
- "protocolVersion": 10,
3025
+ "protocolVersion": 12,
665
3026
  "direction": "output",
666
3027
  "dialect": "https://json-schema.org/draft/2020-12/schema",
667
3028
  "parserInvariants": [
@@ -671,7 +3032,7 @@ const AGENT_EXTENSION_CATALOG_JSON_SCHEMA = {
671
3032
  "serialized_utf8_bytes",
672
3033
  "aggregate_collection_limits"
673
3034
  ],
674
- "sha256": "4cb690e3a80b471c837bcfc456fb7eb5fc94df3567422e24c3c36e1bff9bcb5a",
3035
+ "sha256": "ffe2607b4631a348936d85280a967b191a9acf3fbef60438aadde0ce1e54f18a",
675
3036
  "schema": {
676
3037
  "$defs": {
677
3038
  "__schema0": {
@@ -983,7 +3344,7 @@ const AGENT_EXTENSION_CATALOG_JSON_SCHEMA = {
983
3344
  "type": "string"
984
3345
  }
985
3346
  },
986
- "$id": "urn:agenai.agent-protocol.extension-catalog:v10:output",
3347
+ "$id": "urn:agenai.agent-protocol.extension-catalog:v12:output",
987
3348
  "$schema": "https://json-schema.org/draft/2020-12/schema",
988
3349
  "additionalProperties": false,
989
3350
  "properties": {
@@ -1015,7 +3376,7 @@ const AGENT_EXTENSION_CATALOG_JSON_SCHEMA = {
1015
3376
  };
1016
3377
  const AGENT_ENVIRONMENT_SNAPSHOT_JSON_SCHEMA = {
1017
3378
  "contractId": "agenai.agent-protocol.environment-snapshot",
1018
- "protocolVersion": 10,
3379
+ "protocolVersion": 12,
1019
3380
  "direction": "output",
1020
3381
  "dialect": "https://json-schema.org/draft/2020-12/schema",
1021
3382
  "parserInvariants": [
@@ -1026,7 +3387,7 @@ const AGENT_ENVIRONMENT_SNAPSHOT_JSON_SCHEMA = {
1026
3387
  "aggregate_collection_limits",
1027
3388
  "effective_content_semantics"
1028
3389
  ],
1029
- "sha256": "a2427cb046bcd4c4860a7d7c1e5e6319bb53ebc5dac69f7a3b4a0136f137cd86",
3390
+ "sha256": "a83a11ebb0a3a3cc8a11ee2c49255dac1c0f3847c6a471716a7d5dbef99ff053",
1030
3391
  "schema": {
1031
3392
  "$defs": {
1032
3393
  "__schema0": {
@@ -1960,7 +4321,7 @@ const AGENT_ENVIRONMENT_SNAPSHOT_JSON_SCHEMA = {
1960
4321
  "type": "string"
1961
4322
  }
1962
4323
  },
1963
- "$id": "urn:agenai.agent-protocol.environment-snapshot:v10:output",
4324
+ "$id": "urn:agenai.agent-protocol.environment-snapshot:v12:output",
1964
4325
  "$schema": "https://json-schema.org/draft/2020-12/schema",
1965
4326
  "additionalProperties": false,
1966
4327
  "properties": {
@@ -2136,7 +4497,7 @@ const AGENT_ENVIRONMENT_SNAPSHOT_JSON_SCHEMA = {
2136
4497
  };
2137
4498
  const AGENT_ACCOUNT_QUOTA_SNAPSHOT_JSON_SCHEMA = {
2138
4499
  "contractId": "agenai.agent-protocol.account-quota-snapshot",
2139
- "protocolVersion": 10,
4500
+ "protocolVersion": 12,
2140
4501
  "direction": "output",
2141
4502
  "dialect": "https://json-schema.org/draft/2020-12/schema",
2142
4503
  "parserInvariants": [
@@ -2147,7 +4508,7 @@ const AGENT_ACCOUNT_QUOTA_SNAPSHOT_JSON_SCHEMA = {
2147
4508
  "unique_model_ids",
2148
4509
  "unique_pool_window_ids"
2149
4510
  ],
2150
- "sha256": "346dbeb6414977c2f95fa15abb070390740e8e08816cde03707aa5d4f4f494bd",
4511
+ "sha256": "bb3af011c21fc916a1b602222a106d25d324beadc88e9897730b71427177007b",
2151
4512
  "schema": {
2152
4513
  "$defs": {
2153
4514
  "__schema0": {
@@ -2536,7 +4897,7 @@ const AGENT_ACCOUNT_QUOTA_SNAPSHOT_JSON_SCHEMA = {
2536
4897
  "type": "integer"
2537
4898
  }
2538
4899
  },
2539
- "$id": "urn:agenai.agent-protocol.account-quota-snapshot:v10:output",
4900
+ "$id": "urn:agenai.agent-protocol.account-quota-snapshot:v12:output",
2540
4901
  "$schema": "https://json-schema.org/draft/2020-12/schema",
2541
4902
  "oneOf": [
2542
4903
  {
@@ -2708,11 +5069,11 @@ const AGENT_ACCOUNT_QUOTA_SNAPSHOT_JSON_SCHEMA = {
2708
5069
  };
2709
5070
  const AGENT_SESSION_BINDING_JSON_SCHEMA = {
2710
5071
  "contractId": "agenai.agent-protocol.session-binding",
2711
- "protocolVersion": 10,
5072
+ "protocolVersion": 12,
2712
5073
  "direction": "output",
2713
5074
  "dialect": "https://json-schema.org/draft/2020-12/schema",
2714
5075
  "parserInvariants": [],
2715
- "sha256": "4b9fb8dfa5ec5dd085d8dc3bb93d2edb420b49631d584b022bc9b50b0390c351",
5076
+ "sha256": "a0e0c8deb1d16282b269c3fe224f70fa207365e467e63f76ce0b755a9330643e",
2716
5077
  "schema": {
2717
5078
  "$defs": {
2718
5079
  "__schema0": {
@@ -2722,7 +5083,7 @@ const AGENT_SESSION_BINDING_JSON_SCHEMA = {
2722
5083
  "type": "string"
2723
5084
  }
2724
5085
  },
2725
- "$id": "urn:agenai.agent-protocol.session-binding:v10:output",
5086
+ "$id": "urn:agenai.agent-protocol.session-binding:v12:output",
2726
5087
  "$schema": "https://json-schema.org/draft/2020-12/schema",
2727
5088
  "additionalProperties": false,
2728
5089
  "properties": {
@@ -2742,14 +5103,14 @@ const AGENT_SESSION_BINDING_JSON_SCHEMA = {
2742
5103
  };
2743
5104
  const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA = {
2744
5105
  "contractId": "agenai.agent-protocol.session-configuration",
2745
- "protocolVersion": 10,
5106
+ "protocolVersion": 12,
2746
5107
  "direction": "input",
2747
5108
  "dialect": "https://json-schema.org/draft/2020-12/schema",
2748
5109
  "parserInvariants": [
2749
5110
  "configuration_entry_count",
2750
5111
  "serialized_bytes"
2751
5112
  ],
2752
- "sha256": "cc369c25ac5b3696e7d9ff0a5577ce1782c6758a611bc1af799a14516315ebe6",
5113
+ "sha256": "ef181c620f5d22d1d26930a5a34c1fefb69b5c35ff5673731457740b57f5f1d6",
2753
5114
  "schema": {
2754
5115
  "$defs": {
2755
5116
  "__schema0": {
@@ -2862,7 +5223,7 @@ const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA = {
2862
5223
  "type": "object"
2863
5224
  }
2864
5225
  },
2865
- "$id": "urn:agenai.agent-protocol.session-configuration:v10:input",
5226
+ "$id": "urn:agenai.agent-protocol.session-configuration:v12:input",
2866
5227
  "$schema": "https://json-schema.org/draft/2020-12/schema",
2867
5228
  "oneOf": [
2868
5229
  {
@@ -2919,7 +5280,7 @@ const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA = {
2919
5280
  };
2920
5281
  const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA = {
2921
5282
  "contractId": "agenai.agent-protocol.session-open-input",
2922
- "protocolVersion": 10,
5283
+ "protocolVersion": 12,
2923
5284
  "direction": "input",
2924
5285
  "dialect": "https://json-schema.org/draft/2020-12/schema",
2925
5286
  "parserInvariants": [
@@ -2927,7 +5288,7 @@ const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA = {
2927
5288
  "distinct_branch_session_ids",
2928
5289
  "serialized_bytes"
2929
5290
  ],
2930
- "sha256": "f26f45a72e8470eeed8e27e8c10c3fca9d93de575e479aa44bc0049c4fcc15f1",
5291
+ "sha256": "d4b2a773a6218053b5af388f4c0137d692db71f68a9ba87bb7c1a026bb75ae71",
2931
5292
  "schema": {
2932
5293
  "$defs": {
2933
5294
  "__schema0": {
@@ -3115,7 +5476,7 @@ const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA = {
3115
5476
  "type": "string"
3116
5477
  }
3117
5478
  },
3118
- "$id": "urn:agenai.agent-protocol.session-open-input:v10:input",
5479
+ "$id": "urn:agenai.agent-protocol.session-open-input:v12:input",
3119
5480
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3120
5481
  "oneOf": [
3121
5482
  {
@@ -3229,7 +5590,7 @@ const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA = {
3229
5590
  };
3230
5591
  const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA = {
3231
5592
  "contractId": "agenai.agent-protocol.turn-input-content",
3232
- "protocolVersion": 10,
5593
+ "protocolVersion": 12,
3233
5594
  "direction": "input",
3234
5595
  "dialect": "https://json-schema.org/draft/2020-12/schema",
3235
5596
  "parserInvariants": [
@@ -3238,7 +5599,7 @@ const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA = {
3238
5599
  "content_reference_limits",
3239
5600
  "unique_content_references"
3240
5601
  ],
3241
- "sha256": "034108447f37f104ad737f103da419a4e246b20d62c9bb5f5d9f44bb625a7d8a",
5602
+ "sha256": "eee63c4fdb10e0c34f270cf7bad87d5affe3c818907ea028e4e515d286a7d7a9",
3242
5603
  "schema": {
3243
5604
  "$defs": {
3244
5605
  "__schema0": {
@@ -3494,7 +5855,7 @@ const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA = {
3494
5855
  "type": "integer"
3495
5856
  }
3496
5857
  },
3497
- "$id": "urn:agenai.agent-protocol.turn-input-content:v10:input",
5858
+ "$id": "urn:agenai.agent-protocol.turn-input-content:v12:input",
3498
5859
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3499
5860
  "additionalProperties": false,
3500
5861
  "properties": {
@@ -3513,7 +5874,7 @@ const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA = {
3513
5874
  };
3514
5875
  const AGENT_TURN_RUN_INPUT_JSON_SCHEMA = {
3515
5876
  "contractId": "agenai.agent-protocol.turn-run-input",
3516
- "protocolVersion": 10,
5877
+ "protocolVersion": 12,
3517
5878
  "direction": "input",
3518
5879
  "dialect": "https://json-schema.org/draft/2020-12/schema",
3519
5880
  "parserInvariants": [
@@ -3522,7 +5883,7 @@ const AGENT_TURN_RUN_INPUT_JSON_SCHEMA = {
3522
5883
  "content_reference_limits",
3523
5884
  "unique_content_references"
3524
5885
  ],
3525
- "sha256": "9dc8e0eb5294aa188aaf9c34b451a8ab02c0efbc4d17af9bf913f9200993f8bb",
5886
+ "sha256": "8c1d5d0ee4da9915de04ae6abf9d6052e0d7c6995bb27cdf30cb1d231d66fbc3",
3526
5887
  "schema": {
3527
5888
  "$defs": {
3528
5889
  "__schema0": {
@@ -3765,7 +6126,7 @@ const AGENT_TURN_RUN_INPUT_JSON_SCHEMA = {
3765
6126
  "type": "string"
3766
6127
  }
3767
6128
  },
3768
- "$id": "urn:agenai.agent-protocol.turn-run-input:v10:input",
6129
+ "$id": "urn:agenai.agent-protocol.turn-run-input:v12:input",
3769
6130
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3770
6131
  "additionalProperties": false,
3771
6132
  "properties": {
@@ -3809,7 +6170,7 @@ const AGENT_TURN_RUN_INPUT_JSON_SCHEMA = {
3809
6170
  };
3810
6171
  const AGENT_REQUEST_JSON_SCHEMA = {
3811
6172
  "contractId": "agenai.agent-protocol.request",
3812
- "protocolVersion": 10,
6173
+ "protocolVersion": 12,
3813
6174
  "direction": "output",
3814
6175
  "dialect": "https://json-schema.org/draft/2020-12/schema",
3815
6176
  "parserInvariants": [
@@ -3817,7 +6178,7 @@ const AGENT_REQUEST_JSON_SCHEMA = {
3817
6178
  "unique_field_ids",
3818
6179
  "unique_choice_values"
3819
6180
  ],
3820
- "sha256": "7122462a0547d5a7887e52a115969b0518da164fbedbf505891f243c96d8d917",
6181
+ "sha256": "820f8ec4aedf1ec3c39ef2778ad22101214d5e5bde389fa61720700f6aa82a4a",
3821
6182
  "schema": {
3822
6183
  "$defs": {
3823
6184
  "__schema0": {
@@ -3881,6 +6242,103 @@ const AGENT_REQUEST_JSON_SCHEMA = {
3881
6242
  "__schema3": {
3882
6243
  "additionalProperties": false,
3883
6244
  "properties": {
6245
+ "consequence": {
6246
+ "oneOf": [
6247
+ {
6248
+ "additionalProperties": false,
6249
+ "properties": {
6250
+ "kind": {
6251
+ "const": "scoped",
6252
+ "type": "string"
6253
+ },
6254
+ "persistence": {
6255
+ "enum": [
6256
+ "once",
6257
+ "session",
6258
+ "workspace"
6259
+ ],
6260
+ "type": "string"
6261
+ },
6262
+ "scope": {
6263
+ "additionalProperties": false,
6264
+ "properties": {
6265
+ "kind": {
6266
+ "enum": [
6267
+ "exact_action",
6268
+ "command_pattern",
6269
+ "domain",
6270
+ "tool",
6271
+ "server",
6272
+ "all_edits"
6273
+ ],
6274
+ "type": "string"
6275
+ }
6276
+ },
6277
+ "readOnly": true,
6278
+ "required": [
6279
+ "kind"
6280
+ ],
6281
+ "type": "object"
6282
+ }
6283
+ },
6284
+ "readOnly": true,
6285
+ "required": [
6286
+ "kind",
6287
+ "persistence",
6288
+ "scope"
6289
+ ],
6290
+ "type": "object"
6291
+ },
6292
+ {
6293
+ "additionalProperties": false,
6294
+ "properties": {
6295
+ "applicability": {
6296
+ "additionalProperties": false,
6297
+ "properties": {
6298
+ "kind": {
6299
+ "const": "unknown",
6300
+ "type": "string"
6301
+ }
6302
+ },
6303
+ "readOnly": true,
6304
+ "required": [
6305
+ "kind"
6306
+ ],
6307
+ "type": "object"
6308
+ },
6309
+ "duration": {
6310
+ "additionalProperties": false,
6311
+ "properties": {
6312
+ "kind": {
6313
+ "const": "unknown",
6314
+ "type": "string"
6315
+ }
6316
+ },
6317
+ "readOnly": true,
6318
+ "required": [
6319
+ "kind"
6320
+ ],
6321
+ "type": "object"
6322
+ },
6323
+ "explanation": {
6324
+ "$ref": "#/$defs/__schema2"
6325
+ },
6326
+ "kind": {
6327
+ "const": "provider_managed_remembrance",
6328
+ "type": "string"
6329
+ }
6330
+ },
6331
+ "readOnly": true,
6332
+ "required": [
6333
+ "kind",
6334
+ "duration",
6335
+ "applicability",
6336
+ "explanation"
6337
+ ],
6338
+ "type": "object"
6339
+ }
6340
+ ]
6341
+ },
3884
6342
  "decision": {
3885
6343
  "enum": [
3886
6344
  "approved",
@@ -3896,35 +6354,6 @@ const AGENT_REQUEST_JSON_SCHEMA = {
3896
6354
  },
3897
6355
  "optionId": {
3898
6356
  "$ref": "#/$defs/__schema0"
3899
- },
3900
- "persistence": {
3901
- "enum": [
3902
- "once",
3903
- "session",
3904
- "workspace"
3905
- ],
3906
- "type": "string"
3907
- },
3908
- "scope": {
3909
- "additionalProperties": false,
3910
- "properties": {
3911
- "kind": {
3912
- "enum": [
3913
- "exact_action",
3914
- "command_pattern",
3915
- "domain",
3916
- "tool",
3917
- "server",
3918
- "all_edits"
3919
- ],
3920
- "type": "string"
3921
- }
3922
- },
3923
- "readOnly": true,
3924
- "required": [
3925
- "kind"
3926
- ],
3927
- "type": "object"
3928
6357
  }
3929
6358
  },
3930
6359
  "readOnly": true,
@@ -3932,8 +6361,7 @@ const AGENT_REQUEST_JSON_SCHEMA = {
3932
6361
  "optionId",
3933
6362
  "label",
3934
6363
  "decision",
3935
- "persistence",
3936
- "scope"
6364
+ "consequence"
3937
6365
  ],
3938
6366
  "type": "object"
3939
6367
  },
@@ -4169,7 +6597,7 @@ const AGENT_REQUEST_JSON_SCHEMA = {
4169
6597
  "type": "string"
4170
6598
  }
4171
6599
  },
4172
- "$id": "urn:agenai.agent-protocol.request:v10:output",
6600
+ "$id": "urn:agenai.agent-protocol.request:v12:output",
4173
6601
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4174
6602
  "oneOf": [
4175
6603
  {
@@ -4312,14 +6740,14 @@ const AGENT_REQUEST_JSON_SCHEMA = {
4312
6740
  };
4313
6741
  const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA = {
4314
6742
  "contractId": "agenai.agent-protocol.request-resolution",
4315
- "protocolVersion": 10,
6743
+ "protocolVersion": 12,
4316
6744
  "direction": "input",
4317
6745
  "dialect": "https://json-schema.org/draft/2020-12/schema",
4318
6746
  "parserInvariants": [
4319
6747
  "request_resolution_correlation",
4320
6748
  "unique_choice_selections"
4321
6749
  ],
4322
- "sha256": "f4e0c8e253d99c41f87b1a23b3155e4686fb0480d142e50e5c6c9aebd5501755",
6750
+ "sha256": "a1c40382d2f5e529af21b7ef640dc85a9ea6a1327a26f2af87eaa75e102ef4a1",
4323
6751
  "schema": {
4324
6752
  "$defs": {
4325
6753
  "__schema0": {
@@ -4469,7 +6897,7 @@ const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA = {
4469
6897
  ]
4470
6898
  }
4471
6899
  },
4472
- "$id": "urn:agenai.agent-protocol.request-resolution:v10:input",
6900
+ "$id": "urn:agenai.agent-protocol.request-resolution:v12:input",
4473
6901
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4474
6902
  "anyOf": [
4475
6903
  {
@@ -4586,7 +7014,7 @@ const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA = {
4586
7014
  };
4587
7015
  const AGENT_OPERATION_CATALOG_JSON_SCHEMA = {
4588
7016
  "contractId": "agenai.agent-protocol.operation-catalog",
4589
- "protocolVersion": 10,
7017
+ "protocolVersion": 12,
4590
7018
  "direction": "output",
4591
7019
  "dialect": "https://json-schema.org/draft/2020-12/schema",
4592
7020
  "parserInvariants": [
@@ -4595,7 +7023,7 @@ const AGENT_OPERATION_CATALOG_JSON_SCHEMA = {
4595
7023
  "unique_operation_ids",
4596
7024
  "unique_operation_option_ids"
4597
7025
  ],
4598
- "sha256": "bdb5d907404f3371f525c4365b4a8664003fbbe001974444e2d3ef152ae7f355",
7026
+ "sha256": "364f9f403147f0d5837cc089d7a162dc9714244aaa2c775b5ac7714bd49ca989",
4599
7027
  "schema": {
4600
7028
  "$defs": {
4601
7029
  "__schema0": {
@@ -4969,7 +7397,7 @@ const AGENT_OPERATION_CATALOG_JSON_SCHEMA = {
4969
7397
  "type": "array"
4970
7398
  }
4971
7399
  },
4972
- "$id": "urn:agenai.agent-protocol.operation-catalog:v10:output",
7400
+ "$id": "urn:agenai.agent-protocol.operation-catalog:v12:output",
4973
7401
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4974
7402
  "additionalProperties": false,
4975
7403
  "properties": {
@@ -4995,7 +7423,7 @@ const AGENT_OPERATION_CATALOG_JSON_SCHEMA = {
4995
7423
  };
4996
7424
  const AGENT_OPERATION_INVOCATION_JSON_SCHEMA = {
4997
7425
  "contractId": "agenai.agent-protocol.operation-invocation",
4998
- "protocolVersion": 10,
7426
+ "protocolVersion": 12,
4999
7427
  "direction": "input",
5000
7428
  "dialect": "https://json-schema.org/draft/2020-12/schema",
5001
7429
  "parserInvariants": [
@@ -5003,7 +7431,7 @@ const AGENT_OPERATION_INVOCATION_JSON_SCHEMA = {
5003
7431
  "operation_revision_correlation",
5004
7432
  "unique_operation_values"
5005
7433
  ],
5006
- "sha256": "2f59ca2500d7d764a281bbdb024719b432d2be1eae2768f7d5677b5704a1a698",
7434
+ "sha256": "1e2184bae7fa83e93594a33c2e5c12196c1b6b8120d3893c81cd0a8e4f486449",
5007
7435
  "schema": {
5008
7436
  "$defs": {
5009
7437
  "__schema0": {
@@ -5136,7 +7564,7 @@ const AGENT_OPERATION_INVOCATION_JSON_SCHEMA = {
5136
7564
  ]
5137
7565
  }
5138
7566
  },
5139
- "$id": "urn:agenai.agent-protocol.operation-invocation:v10:input",
7567
+ "$id": "urn:agenai.agent-protocol.operation-invocation:v12:input",
5140
7568
  "$schema": "https://json-schema.org/draft/2020-12/schema",
5141
7569
  "additionalProperties": false,
5142
7570
  "properties": {
@@ -5172,7 +7600,7 @@ const AGENT_OPERATION_INVOCATION_JSON_SCHEMA = {
5172
7600
  };
5173
7601
  const AGENT_OPERATION_RESULT_JSON_SCHEMA = {
5174
7602
  "contractId": "agenai.agent-protocol.operation-result",
5175
- "protocolVersion": 10,
7603
+ "protocolVersion": 12,
5176
7604
  "direction": "output",
5177
7605
  "dialect": "https://json-schema.org/draft/2020-12/schema",
5178
7606
  "parserInvariants": [
@@ -5184,7 +7612,7 @@ const AGENT_OPERATION_RESULT_JSON_SCHEMA = {
5184
7612
  "operation_result_kind_consistency",
5185
7613
  "unique_operation_result_references"
5186
7614
  ],
5187
- "sha256": "a963842c1120ec333735cb230eb573e5c4c2604a3f6aa39d5af7a28c3104c104",
7615
+ "sha256": "35035d2a1dd4370eed5714cbfd6aaa5c5d6f576137f5844d5236bdeec738eb80",
5188
7616
  "schema": {
5189
7617
  "$defs": {
5190
7618
  "__schema0": {
@@ -5407,7 +7835,7 @@ const AGENT_OPERATION_RESULT_JSON_SCHEMA = {
5407
7835
  "type": "object"
5408
7836
  }
5409
7837
  },
5410
- "$id": "urn:agenai.agent-protocol.operation-result:v10:output",
7838
+ "$id": "urn:agenai.agent-protocol.operation-result:v12:output",
5411
7839
  "$schema": "https://json-schema.org/draft/2020-12/schema",
5412
7840
  "additionalProperties": false,
5413
7841
  "properties": {
@@ -5463,14 +7891,14 @@ const AGENT_OPERATION_RESULT_JSON_SCHEMA = {
5463
7891
  };
5464
7892
  const AGENT_MANAGED_CONTENT_CATALOG_JSON_SCHEMA = {
5465
7893
  "contractId": "agenai.agent-protocol.managed-content-catalog",
5466
- "protocolVersion": 10,
7894
+ "protocolVersion": 12,
5467
7895
  "direction": "output",
5468
7896
  "dialect": "https://json-schema.org/draft/2020-12/schema",
5469
7897
  "parserInvariants": [
5470
7898
  "canonical_managed_content_order",
5471
7899
  "unique_managed_content_ids"
5472
7900
  ],
5473
- "sha256": "0e2419667187af44e9315f63e9b1a27c3e88f2635e35cbfce27c7f2c9926c7cd",
7901
+ "sha256": "a90e6e07cc09913e091a726c97f278bada81532a902fa5a8a2f0457bb306d491",
5474
7902
  "schema": {
5475
7903
  "$defs": {
5476
7904
  "__schema0": {
@@ -5640,7 +8068,7 @@ const AGENT_MANAGED_CONTENT_CATALOG_JSON_SCHEMA = {
5640
8068
  "type": "object"
5641
8069
  }
5642
8070
  },
5643
- "$id": "urn:agenai.agent-protocol.managed-content-catalog:v10:output",
8071
+ "$id": "urn:agenai.agent-protocol.managed-content-catalog:v12:output",
5644
8072
  "$schema": "https://json-schema.org/draft/2020-12/schema",
5645
8073
  "additionalProperties": false,
5646
8074
  "properties": {
@@ -5666,7 +8094,7 @@ const AGENT_MANAGED_CONTENT_CATALOG_JSON_SCHEMA = {
5666
8094
  };
5667
8095
  const AGENT_CONFIGURATION_CATALOG_JSON_SCHEMA = {
5668
8096
  "contractId": "agenai.agent-protocol.configuration-catalog",
5669
- "protocolVersion": 10,
8097
+ "protocolVersion": 12,
5670
8098
  "direction": "output",
5671
8099
  "dialect": "https://json-schema.org/draft/2020-12/schema",
5672
8100
  "parserInvariants": [
@@ -5675,7 +8103,7 @@ const AGENT_CONFIGURATION_CATALOG_JSON_SCHEMA = {
5675
8103
  "unique_configuration_field_keys",
5676
8104
  "unique_configuration_option_ids"
5677
8105
  ],
5678
- "sha256": "0fd4bbbfcdf9dae1b66d15f7cf8f627ab57dba5ba03cf2e7cb2353202c688373",
8106
+ "sha256": "617faf5f3628f4549c012e28c0cfc6caf8d2379ccec36854c5bab394f508434a",
5679
8107
  "schema": {
5680
8108
  "$defs": {
5681
8109
  "__schema0": {
@@ -5962,7 +8390,7 @@ const AGENT_CONFIGURATION_CATALOG_JSON_SCHEMA = {
5962
8390
  "type": "object"
5963
8391
  }
5964
8392
  },
5965
- "$id": "urn:agenai.agent-protocol.configuration-catalog:v10:output",
8393
+ "$id": "urn:agenai.agent-protocol.configuration-catalog:v12:output",
5966
8394
  "$schema": "https://json-schema.org/draft/2020-12/schema",
5967
8395
  "additionalProperties": false,
5968
8396
  "properties": {
@@ -5988,7 +8416,7 @@ const AGENT_CONFIGURATION_CATALOG_JSON_SCHEMA = {
5988
8416
  };
5989
8417
  const AGENT_CONFIGURATION_SELECTION_JSON_SCHEMA = {
5990
8418
  "contractId": "agenai.agent-protocol.configuration-selection",
5991
- "protocolVersion": 10,
8419
+ "protocolVersion": 12,
5992
8420
  "direction": "input",
5993
8421
  "dialect": "https://json-schema.org/draft/2020-12/schema",
5994
8422
  "parserInvariants": [
@@ -5996,7 +8424,7 @@ const AGENT_CONFIGURATION_SELECTION_JSON_SCHEMA = {
5996
8424
  "configuration_field_correlation",
5997
8425
  "configuration_selection_bounds"
5998
8426
  ],
5999
- "sha256": "88f47450698f17be1c44e47b67a0dde11f100d394358dfca80b6496532dc7b89",
8427
+ "sha256": "3683fa6afa098c0684cbc915f94693f28e967ddce032fe2eb217e24037845dd9",
6000
8428
  "schema": {
6001
8429
  "$defs": {
6002
8430
  "__schema0": {
@@ -6011,7 +8439,7 @@ const AGENT_CONFIGURATION_SELECTION_JSON_SCHEMA = {
6011
8439
  "type": "integer"
6012
8440
  }
6013
8441
  },
6014
- "$id": "urn:agenai.agent-protocol.configuration-selection:v10:input",
8442
+ "$id": "urn:agenai.agent-protocol.configuration-selection:v12:input",
6015
8443
  "$schema": "https://json-schema.org/draft/2020-12/schema",
6016
8444
  "additionalProperties": false,
6017
8445
  "properties": {
@@ -6117,7 +8545,7 @@ const AGENT_CONFIGURATION_SELECTION_JSON_SCHEMA = {
6117
8545
  };
6118
8546
  const AGENT_INTEGRATION_CATALOG_JSON_SCHEMA = {
6119
8547
  "contractId": "agenai.agent-protocol.integration-catalog",
6120
- "protocolVersion": 10,
8548
+ "protocolVersion": 12,
6121
8549
  "direction": "output",
6122
8550
  "dialect": "https://json-schema.org/draft/2020-12/schema",
6123
8551
  "parserInvariants": [
@@ -6127,7 +8555,7 @@ const AGENT_INTEGRATION_CATALOG_JSON_SCHEMA = {
6127
8555
  "unique_integration_tool_ids",
6128
8556
  "unique_integration_resource_ids"
6129
8557
  ],
6130
- "sha256": "de92cb95210f5439b136aebc607ac9c2a9c1785630a08b8ba8be800581b9274e",
8558
+ "sha256": "3bb0cf6afbcfd7ec0309b51c04a3cf0649ddcfdb049e13965cd8c55564c98a7e",
6131
8559
  "schema": {
6132
8560
  "$defs": {
6133
8561
  "__schema0": {
@@ -6428,7 +8856,7 @@ const AGENT_INTEGRATION_CATALOG_JSON_SCHEMA = {
6428
8856
  ]
6429
8857
  }
6430
8858
  },
6431
- "$id": "urn:agenai.agent-protocol.integration-catalog:v10:output",
8859
+ "$id": "urn:agenai.agent-protocol.integration-catalog:v12:output",
6432
8860
  "$schema": "https://json-schema.org/draft/2020-12/schema",
6433
8861
  "additionalProperties": false,
6434
8862
  "properties": {
@@ -6460,7 +8888,7 @@ const AGENT_INTEGRATION_CATALOG_JSON_SCHEMA = {
6460
8888
  };
6461
8889
  const AGENT_COLLABORATION_NODE_JSON_SCHEMA = {
6462
8890
  "contractId": "agenai.agent-protocol.collaboration-node",
6463
- "protocolVersion": 10,
8891
+ "protocolVersion": 12,
6464
8892
  "direction": "output",
6465
8893
  "dialect": "https://json-schema.org/draft/2020-12/schema",
6466
8894
  "parserInvariants": [
@@ -6472,7 +8900,7 @@ const AGENT_COLLABORATION_NODE_JSON_SCHEMA = {
6472
8900
  "collaboration_terminal_error_consistency",
6473
8901
  "collaboration_terminal_timestamp_consistency"
6474
8902
  ],
6475
- "sha256": "0a4821f34e33cb80cfc1bd74aefe670bcbffa1a2adba8fa76971de3720f9ec7a",
8903
+ "sha256": "17875794b6dde316675f5c6eef4da86f059bc8feddc644d7f13262ff9a02a3f6",
6476
8904
  "schema": {
6477
8905
  "$defs": {
6478
8906
  "__schema0": {
@@ -6719,7 +9147,7 @@ const AGENT_COLLABORATION_NODE_JSON_SCHEMA = {
6719
9147
  "type": "string"
6720
9148
  }
6721
9149
  },
6722
- "$id": "urn:agenai.agent-protocol.collaboration-node:v10:output",
9150
+ "$id": "urn:agenai.agent-protocol.collaboration-node:v12:output",
6723
9151
  "$schema": "https://json-schema.org/draft/2020-12/schema",
6724
9152
  "additionalProperties": false,
6725
9153
  "properties": {
@@ -6927,13 +9355,13 @@ const AGENT_COLLABORATION_NODE_JSON_SCHEMA = {
6927
9355
  };
6928
9356
  const AGENT_COLLABORATION_SPAWN_JSON_SCHEMA = {
6929
9357
  "contractId": "agenai.agent-protocol.collaboration-spawn",
6930
- "protocolVersion": 10,
9358
+ "protocolVersion": 12,
6931
9359
  "direction": "input",
6932
9360
  "dialect": "https://json-schema.org/draft/2020-12/schema",
6933
9361
  "parserInvariants": [
6934
9362
  "collaboration_parent_consistency"
6935
9363
  ],
6936
- "sha256": "404d06cf4325bb8857c38841c3bfb259c134c16d8d1037614552a12d5562fe78",
9364
+ "sha256": "a76da255998a3466b61631e2be41785b31fd942affb9aa7c18b452c899139077",
6937
9365
  "schema": {
6938
9366
  "$defs": {
6939
9367
  "__schema0": {
@@ -6972,7 +9400,7 @@ const AGENT_COLLABORATION_SPAWN_JSON_SCHEMA = {
6972
9400
  "type": "string"
6973
9401
  }
6974
9402
  },
6975
- "$id": "urn:agenai.agent-protocol.collaboration-spawn:v10:input",
9403
+ "$id": "urn:agenai.agent-protocol.collaboration-spawn:v12:input",
6976
9404
  "$schema": "https://json-schema.org/draft/2020-12/schema",
6977
9405
  "additionalProperties": false,
6978
9406
  "properties": {
@@ -7008,13 +9436,13 @@ const AGENT_COLLABORATION_SPAWN_JSON_SCHEMA = {
7008
9436
  };
7009
9437
  const AGENT_COLLABORATION_CONTROL_JSON_SCHEMA = {
7010
9438
  "contractId": "agenai.agent-protocol.collaboration-control",
7011
- "protocolVersion": 10,
9439
+ "protocolVersion": 12,
7012
9440
  "direction": "input",
7013
9441
  "dialect": "https://json-schema.org/draft/2020-12/schema",
7014
9442
  "parserInvariants": [
7015
9443
  "serialized_turn_input_bytes"
7016
9444
  ],
7017
- "sha256": "811dec239632073542da421834267e6fae0acc43512e758a1498ed5b0bfb2481",
9445
+ "sha256": "608159dd502bfb4f38e3320c9cd58d2535cae03669b682aa618c31f9ec7950df",
7018
9446
  "schema": {
7019
9447
  "$defs": {
7020
9448
  "__schema0": {
@@ -7270,7 +9698,7 @@ const AGENT_COLLABORATION_CONTROL_JSON_SCHEMA = {
7270
9698
  "type": "integer"
7271
9699
  }
7272
9700
  },
7273
- "$id": "urn:agenai.agent-protocol.collaboration-control:v10:input",
9701
+ "$id": "urn:agenai.agent-protocol.collaboration-control:v12:input",
7274
9702
  "$schema": "https://json-schema.org/draft/2020-12/schema",
7275
9703
  "anyOf": [
7276
9704
  {
@@ -7380,7 +9808,7 @@ const AGENT_COLLABORATION_CONTROL_JSON_SCHEMA = {
7380
9808
  };
7381
9809
  const AGENT_GENERATED_RESOURCE_JSON_SCHEMA = {
7382
9810
  "contractId": "agenai.agent-protocol.generated-resource",
7383
- "protocolVersion": 10,
9811
+ "protocolVersion": 12,
7384
9812
  "direction": "output",
7385
9813
  "dialect": "https://json-schema.org/draft/2020-12/schema",
7386
9814
  "parserInvariants": [
@@ -7392,7 +9820,7 @@ const AGENT_GENERATED_RESOURCE_JSON_SCHEMA = {
7392
9820
  "generated_resource_error_consistency",
7393
9821
  "generated_resource_media_consistency"
7394
9822
  ],
7395
- "sha256": "93cce86335368ffc8a5c68d64345640532e732418ca634c7379cd970d30a988f",
9823
+ "sha256": "b999b8acda5f2707cd0a3b4fd8c6920439665ea231af61bf4e550266be2c8f7f",
7396
9824
  "schema": {
7397
9825
  "$defs": {
7398
9826
  "__schema0": {
@@ -7620,7 +10048,7 @@ const AGENT_GENERATED_RESOURCE_JSON_SCHEMA = {
7620
10048
  "type": "object"
7621
10049
  }
7622
10050
  },
7623
- "$id": "urn:agenai.agent-protocol.generated-resource:v10:output",
10051
+ "$id": "urn:agenai.agent-protocol.generated-resource:v12:output",
7624
10052
  "$schema": "https://json-schema.org/draft/2020-12/schema",
7625
10053
  "additionalProperties": false,
7626
10054
  "properties": {
@@ -7784,7 +10212,7 @@ const AGENT_GENERATED_RESOURCE_JSON_SCHEMA = {
7784
10212
  };
7785
10213
  const AGENT_CAPABILITIES_JSON_SCHEMA = {
7786
10214
  "contractId": "agenai.agent-protocol.capabilities",
7787
- "protocolVersion": 10,
10215
+ "protocolVersion": 12,
7788
10216
  "direction": "output",
7789
10217
  "dialect": "https://json-schema.org/draft/2020-12/schema",
7790
10218
  "parserInvariants": [
@@ -7811,7 +10239,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
7811
10239
  "image_input_total_bytes_admits_max_image",
7812
10240
  "image_input_total_bytes_bounded_by_count"
7813
10241
  ],
7814
- "sha256": "fb2cdb76b6667d316ce5463b63312586f0fb4d255173f159ef9f53a8f0a655ff",
10242
+ "sha256": "5c965490ad70ed44a1496220e571cfdd5c1ecae8acd25ed341c48d214bd20a9a",
7815
10243
  "schema": {
7816
10244
  "$defs": {
7817
10245
  "__schema0": {
@@ -7975,13 +10403,38 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
7975
10403
  "type": "object"
7976
10404
  },
7977
10405
  "__schema10": {
7978
- "items": {
7979
- "$ref": "#/$defs/__schema11"
10406
+ "additionalProperties": false,
10407
+ "properties": {
10408
+ "kind": {
10409
+ "const": "supported",
10410
+ "type": "string"
10411
+ },
10412
+ "modes": {
10413
+ "items": {
10414
+ "$ref": "#/$defs/__schema11"
10415
+ },
10416
+ "maxItems": 3,
10417
+ "minItems": 1,
10418
+ "prefixItems": [
10419
+ {
10420
+ "$ref": "#/$defs/__schema11"
10421
+ }
10422
+ ],
10423
+ "readOnly": true,
10424
+ "type": "array"
10425
+ },
10426
+ "providerManagedRemembrance": {
10427
+ "const": false,
10428
+ "type": "boolean"
10429
+ }
7980
10430
  },
7981
- "maxItems": 3,
7982
- "minItems": 1,
7983
10431
  "readOnly": true,
7984
- "type": "array"
10432
+ "required": [
10433
+ "kind",
10434
+ "modes",
10435
+ "providerManagedRemembrance"
10436
+ ],
10437
+ "type": "object"
7985
10438
  },
7986
10439
  "__schema11": {
7987
10440
  "additionalProperties": false,
@@ -8024,6 +10477,34 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8024
10477
  "type": "string"
8025
10478
  },
8026
10479
  "__schema13": {
10480
+ "additionalProperties": false,
10481
+ "properties": {
10482
+ "kind": {
10483
+ "const": "supported",
10484
+ "type": "string"
10485
+ },
10486
+ "modes": {
10487
+ "items": {
10488
+ "$ref": "#/$defs/__schema11"
10489
+ },
10490
+ "maxItems": 3,
10491
+ "readOnly": true,
10492
+ "type": "array"
10493
+ },
10494
+ "providerManagedRemembrance": {
10495
+ "const": true,
10496
+ "type": "boolean"
10497
+ }
10498
+ },
10499
+ "readOnly": true,
10500
+ "required": [
10501
+ "kind",
10502
+ "modes",
10503
+ "providerManagedRemembrance"
10504
+ ],
10505
+ "type": "object"
10506
+ },
10507
+ "__schema14": {
8027
10508
  "enum": [
8028
10509
  "text",
8029
10510
  "single_select",
@@ -8033,14 +10514,14 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8033
10514
  ],
8034
10515
  "type": "string"
8035
10516
  },
8036
- "__schema14": {
10517
+ "__schema15": {
8037
10518
  "enum": [
8038
10519
  "session",
8039
10520
  "materialization"
8040
10521
  ],
8041
10522
  "type": "string"
8042
10523
  },
8043
- "__schema15": {
10524
+ "__schema16": {
8044
10525
  "enum": [
8045
10526
  "inputTokens",
8046
10527
  "outputTokens",
@@ -8052,7 +10533,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8052
10533
  ],
8053
10534
  "type": "string"
8054
10535
  },
8055
- "__schema16": {
10536
+ "__schema17": {
8056
10537
  "enum": [
8057
10538
  "automatic",
8058
10539
  "manual",
@@ -8062,7 +10543,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8062
10543
  ],
8063
10544
  "type": "string"
8064
10545
  },
8065
- "__schema17": {
10546
+ "__schema18": {
8066
10547
  "enum": [
8067
10548
  "plan",
8068
10549
  "diff",
@@ -8074,7 +10555,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8074
10555
  ],
8075
10556
  "type": "string"
8076
10557
  },
8077
- "__schema18": {
10558
+ "__schema19": {
8078
10559
  "enum": [
8079
10560
  "boolean",
8080
10561
  "single_select",
@@ -8083,7 +10564,11 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8083
10564
  ],
8084
10565
  "type": "string"
8085
10566
  },
8086
- "__schema19": {
10567
+ "__schema2": {
10568
+ "const": "supported",
10569
+ "type": "string"
10570
+ },
10571
+ "__schema20": {
8087
10572
  "enum": [
8088
10573
  "session_control",
8089
10574
  "managed_content_invoke",
@@ -8094,11 +10579,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8094
10579
  ],
8095
10580
  "type": "string"
8096
10581
  },
8097
- "__schema2": {
8098
- "const": "supported",
8099
- "type": "string"
8100
- },
8101
- "__schema20": {
10582
+ "__schema21": {
8102
10583
  "enum": [
8103
10584
  "text",
8104
10585
  "boolean",
@@ -8108,7 +10589,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8108
10589
  ],
8109
10590
  "type": "string"
8110
10591
  },
8111
- "__schema21": {
10592
+ "__schema22": {
8112
10593
  "enum": [
8113
10594
  "immediate",
8114
10595
  "request_continuation",
@@ -8116,7 +10597,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8116
10597
  ],
8117
10598
  "type": "string"
8118
10599
  },
8119
- "__schema22": {
10600
+ "__schema23": {
8120
10601
  "enum": [
8121
10602
  "skill",
8122
10603
  "rule",
@@ -8125,17 +10606,17 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8125
10606
  ],
8126
10607
  "type": "string"
8127
10608
  },
8128
- "__schema23": {
10609
+ "__schema24": {
8129
10610
  "enum": [
8130
10611
  "mcp",
8131
10612
  "connector"
8132
10613
  ],
8133
10614
  "type": "string"
8134
10615
  },
8135
- "__schema24": {
8136
- "$ref": "#/$defs/__schema25"
8137
- },
8138
10616
  "__schema25": {
10617
+ "$ref": "#/$defs/__schema26"
10618
+ },
10619
+ "__schema26": {
8139
10620
  "anyOf": [
8140
10621
  {
8141
10622
  "additionalProperties": false,
@@ -8156,7 +10637,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8156
10637
  "properties": {
8157
10638
  "domains": {
8158
10639
  "items": {
8159
- "$ref": "#/$defs/__schema26"
10640
+ "$ref": "#/$defs/__schema27"
8160
10641
  },
8161
10642
  "maxItems": 4,
8162
10643
  "minItems": 1,
@@ -8180,7 +10661,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8180
10661
  "properties": {
8181
10662
  "domains": {
8182
10663
  "items": {
8183
- "$ref": "#/$defs/__schema26"
10664
+ "$ref": "#/$defs/__schema27"
8184
10665
  },
8185
10666
  "maxItems": 4,
8186
10667
  "minItems": 1,
@@ -8201,7 +10682,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8201
10682
  }
8202
10683
  ]
8203
10684
  },
8204
- "__schema26": {
10685
+ "__schema27": {
8205
10686
  "enum": [
8206
10687
  "content",
8207
10688
  "commands",
@@ -8210,7 +10691,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8210
10691
  ],
8211
10692
  "type": "string"
8212
10693
  },
8213
- "__schema27": {
10694
+ "__schema28": {
8214
10695
  "enum": [
8215
10696
  "delegate",
8216
10697
  "reviewer",
@@ -8219,7 +10700,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8219
10700
  ],
8220
10701
  "type": "string"
8221
10702
  },
8222
- "__schema28": {
10703
+ "__schema29": {
8223
10704
  "enum": [
8224
10705
  "spawn",
8225
10706
  "steer",
@@ -8229,14 +10710,6 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8229
10710
  ],
8230
10711
  "type": "string"
8231
10712
  },
8232
- "__schema29": {
8233
- "enum": [
8234
- "image",
8235
- "document",
8236
- "archive"
8237
- ],
8238
- "type": "string"
8239
- },
8240
10713
  "__schema3": {
8241
10714
  "items": {
8242
10715
  "$ref": "#/$defs/__schema4"
@@ -8248,6 +10721,14 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8248
10721
  "uniqueItems": true
8249
10722
  },
8250
10723
  "__schema30": {
10724
+ "enum": [
10725
+ "image",
10726
+ "document",
10727
+ "archive"
10728
+ ],
10729
+ "type": "string"
10730
+ },
10731
+ "__schema31": {
8251
10732
  "enum": [
8252
10733
  "device_code",
8253
10734
  "browser",
@@ -8290,11 +10771,21 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8290
10771
  "type": "boolean"
8291
10772
  },
8292
10773
  "__schema9": {
8293
- "const": "supported",
8294
- "type": "string"
10774
+ "additionalProperties": false,
10775
+ "properties": {
10776
+ "kind": {
10777
+ "const": "unsupported",
10778
+ "type": "string"
10779
+ }
10780
+ },
10781
+ "readOnly": true,
10782
+ "required": [
10783
+ "kind"
10784
+ ],
10785
+ "type": "object"
8295
10786
  }
8296
10787
  },
8297
- "$id": "urn:agenai.agent-protocol.capabilities:v10:output",
10788
+ "$id": "urn:agenai.agent-protocol.capabilities:v12:output",
8298
10789
  "$schema": "https://json-schema.org/draft/2020-12/schema",
8299
10790
  "additionalProperties": false,
8300
10791
  "properties": {
@@ -8319,7 +10810,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8319
10810
  "properties": {
8320
10811
  "flows": {
8321
10812
  "items": {
8322
- "$ref": "#/$defs/__schema30"
10813
+ "$ref": "#/$defs/__schema31"
8323
10814
  },
8324
10815
  "maxItems": 3,
8325
10816
  "minItems": 1,
@@ -8362,7 +10853,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8362
10853
  "properties": {
8363
10854
  "controlActions": {
8364
10855
  "items": {
8365
- "$ref": "#/$defs/__schema28"
10856
+ "$ref": "#/$defs/__schema29"
8366
10857
  },
8367
10858
  "maxItems": 5,
8368
10859
  "minItems": 1,
@@ -8391,7 +10882,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8391
10882
  },
8392
10883
  "roles": {
8393
10884
  "items": {
8394
- "$ref": "#/$defs/__schema27"
10885
+ "$ref": "#/$defs/__schema28"
8395
10886
  },
8396
10887
  "maxItems": 4,
8397
10888
  "minItems": 1,
@@ -8434,7 +10925,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8434
10925
  "properties": {
8435
10926
  "fieldKinds": {
8436
10927
  "items": {
8437
- "$ref": "#/$defs/__schema18"
10928
+ "$ref": "#/$defs/__schema19"
8438
10929
  },
8439
10930
  "maxItems": 4,
8440
10931
  "minItems": 1,
@@ -8493,7 +10984,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8493
10984
  },
8494
10985
  "triggers": {
8495
10986
  "items": {
8496
- "$ref": "#/$defs/__schema16"
10987
+ "$ref": "#/$defs/__schema17"
8497
10988
  },
8498
10989
  "maxItems": 5,
8499
10990
  "minItems": 1,
@@ -8533,7 +11024,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8533
11024
  "properties": {
8534
11025
  "cumulativeFields": {
8535
11026
  "items": {
8536
- "$ref": "#/$defs/__schema15"
11027
+ "$ref": "#/$defs/__schema16"
8537
11028
  },
8538
11029
  "maxItems": 7,
8539
11030
  "readOnly": true,
@@ -8546,7 +11037,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8546
11037
  },
8547
11038
  "measurementScopes": {
8548
11039
  "items": {
8549
- "$ref": "#/$defs/__schema14"
11040
+ "$ref": "#/$defs/__schema15"
8550
11041
  },
8551
11042
  "maxItems": 2,
8552
11043
  "minItems": 1,
@@ -8577,10 +11068,10 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8577
11068
  "additionalProperties": false,
8578
11069
  "properties": {
8579
11070
  "instance": {
8580
- "$ref": "#/$defs/__schema24"
11071
+ "$ref": "#/$defs/__schema25"
8581
11072
  },
8582
11073
  "session": {
8583
- "$ref": "#/$defs/__schema24"
11074
+ "$ref": "#/$defs/__schema25"
8584
11075
  }
8585
11076
  },
8586
11077
  "readOnly": true,
@@ -8625,7 +11116,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8625
11116
  },
8626
11117
  "resourceKinds": {
8627
11118
  "items": {
8628
- "$ref": "#/$defs/__schema29"
11119
+ "$ref": "#/$defs/__schema30"
8629
11120
  },
8630
11121
  "maxItems": 3,
8631
11122
  "minItems": 1,
@@ -8669,7 +11160,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8669
11160
  "properties": {
8670
11161
  "integrationKinds": {
8671
11162
  "items": {
8672
- "$ref": "#/$defs/__schema23"
11163
+ "$ref": "#/$defs/__schema24"
8673
11164
  },
8674
11165
  "maxItems": 2,
8675
11166
  "minItems": 1,
@@ -8736,7 +11227,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8736
11227
  "properties": {
8737
11228
  "contentKinds": {
8738
11229
  "items": {
8739
- "$ref": "#/$defs/__schema22"
11230
+ "$ref": "#/$defs/__schema23"
8740
11231
  },
8741
11232
  "maxItems": 4,
8742
11233
  "minItems": 1,
@@ -8785,7 +11276,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8785
11276
  "properties": {
8786
11277
  "executionModes": {
8787
11278
  "items": {
8788
- "$ref": "#/$defs/__schema21"
11279
+ "$ref": "#/$defs/__schema22"
8789
11280
  },
8790
11281
  "maxItems": 3,
8791
11282
  "minItems": 1,
@@ -8795,7 +11286,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8795
11286
  },
8796
11287
  "fieldKinds": {
8797
11288
  "items": {
8798
- "$ref": "#/$defs/__schema20"
11289
+ "$ref": "#/$defs/__schema21"
8799
11290
  },
8800
11291
  "maxItems": 5,
8801
11292
  "readOnly": true,
@@ -8818,7 +11309,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8818
11309
  },
8819
11310
  "operationKinds": {
8820
11311
  "items": {
8821
- "$ref": "#/$defs/__schema19"
11312
+ "$ref": "#/$defs/__schema20"
8822
11313
  },
8823
11314
  "maxItems": 6,
8824
11315
  "minItems": 1,
@@ -8845,7 +11336,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8845
11336
  "properties": {
8846
11337
  "artifactKinds": {
8847
11338
  "items": {
8848
- "$ref": "#/$defs/__schema17"
11339
+ "$ref": "#/$defs/__schema18"
8849
11340
  },
8850
11341
  "maxItems": 7,
8851
11342
  "readOnly": true,
@@ -8877,7 +11368,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8877
11368
  "type": "object"
8878
11369
  },
8879
11370
  "protocolVersion": {
8880
- "const": 10,
11371
+ "const": 12,
8881
11372
  "type": "number"
8882
11373
  },
8883
11374
  "providerKey": {
@@ -8890,37 +11381,15 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8890
11381
  "additionalProperties": false,
8891
11382
  "properties": {
8892
11383
  "approval": {
8893
- "oneOf": [
11384
+ "anyOf": [
8894
11385
  {
8895
- "additionalProperties": false,
8896
- "properties": {
8897
- "kind": {
8898
- "const": "unsupported",
8899
- "type": "string"
8900
- }
8901
- },
8902
- "readOnly": true,
8903
- "required": [
8904
- "kind"
8905
- ],
8906
- "type": "object"
11386
+ "$ref": "#/$defs/__schema9"
8907
11387
  },
8908
11388
  {
8909
- "additionalProperties": false,
8910
- "properties": {
8911
- "kind": {
8912
- "$ref": "#/$defs/__schema9"
8913
- },
8914
- "modes": {
8915
- "$ref": "#/$defs/__schema10"
8916
- }
8917
- },
8918
- "readOnly": true,
8919
- "required": [
8920
- "kind",
8921
- "modes"
8922
- ],
8923
- "type": "object"
11389
+ "$ref": "#/$defs/__schema10"
11390
+ },
11391
+ {
11392
+ "$ref": "#/$defs/__schema13"
8924
11393
  }
8925
11394
  ]
8926
11395
  },
@@ -8945,7 +11414,7 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
8945
11414
  "properties": {
8946
11415
  "fieldKinds": {
8947
11416
  "items": {
8948
- "$ref": "#/$defs/__schema13"
11417
+ "$ref": "#/$defs/__schema14"
8949
11418
  },
8950
11419
  "maxItems": 5,
8951
11420
  "minItems": 1,
@@ -9126,13 +11595,13 @@ const AGENT_CAPABILITIES_JSON_SCHEMA = {
9126
11595
  };
9127
11596
  const AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA = {
9128
11597
  "contractId": "agenai.agent-protocol.artifact-descriptor",
9129
- "protocolVersion": 10,
11598
+ "protocolVersion": 12,
9130
11599
  "direction": "output",
9131
11600
  "dialect": "https://json-schema.org/draft/2020-12/schema",
9132
11601
  "parserInvariants": [],
9133
- "sha256": "9d294fbea7081fcce8863a6bde0b708f9c5099c4546c7343cddbaa91854530e7",
11602
+ "sha256": "7f7c1f3b7de35900f4c2f3071a5934f24ffbe244fd557082746d7b733766b5d3",
9134
11603
  "schema": {
9135
- "$id": "urn:agenai.agent-protocol.artifact-descriptor:v10:output",
11604
+ "$id": "urn:agenai.agent-protocol.artifact-descriptor:v12:output",
9136
11605
  "$schema": "https://json-schema.org/draft/2020-12/schema",
9137
11606
  "additionalProperties": false,
9138
11607
  "properties": {
@@ -9206,7 +11675,7 @@ const AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA = {
9206
11675
  };
9207
11676
  const AGENT_EVENT_JSON_SCHEMA = {
9208
11677
  "contractId": "agenai.agent-protocol.event",
9209
- "protocolVersion": 10,
11678
+ "protocolVersion": 12,
9210
11679
  "direction": "output",
9211
11680
  "dialect": "https://json-schema.org/draft/2020-12/schema",
9212
11681
  "parserInvariants": [
@@ -9223,11 +11692,11 @@ const AGENT_EVENT_JSON_SCHEMA = {
9223
11692
  "serialized_bytes",
9224
11693
  "terminal_error_consistency"
9225
11694
  ],
9226
- "sha256": "930922c9f33360fdd8b25354dc9aa24ee2a4ba992eb6cace5ceff7610296905c",
11695
+ "sha256": "14e4d6b989578430e3ef9bd14a4bc23fdc393969c3107d572addd7a50fca0ea5",
9227
11696
  "schema": {
9228
11697
  "$defs": {
9229
11698
  "__schema0": {
9230
- "const": 10,
11699
+ "const": 12,
9231
11700
  "type": "number"
9232
11701
  },
9233
11702
  "__schema1": {
@@ -10200,6 +12669,103 @@ const AGENT_EVENT_JSON_SCHEMA = {
10200
12669
  "__schema49": {
10201
12670
  "additionalProperties": false,
10202
12671
  "properties": {
12672
+ "consequence": {
12673
+ "oneOf": [
12674
+ {
12675
+ "additionalProperties": false,
12676
+ "properties": {
12677
+ "kind": {
12678
+ "const": "scoped",
12679
+ "type": "string"
12680
+ },
12681
+ "persistence": {
12682
+ "enum": [
12683
+ "once",
12684
+ "session",
12685
+ "workspace"
12686
+ ],
12687
+ "type": "string"
12688
+ },
12689
+ "scope": {
12690
+ "additionalProperties": false,
12691
+ "properties": {
12692
+ "kind": {
12693
+ "enum": [
12694
+ "exact_action",
12695
+ "command_pattern",
12696
+ "domain",
12697
+ "tool",
12698
+ "server",
12699
+ "all_edits"
12700
+ ],
12701
+ "type": "string"
12702
+ }
12703
+ },
12704
+ "readOnly": true,
12705
+ "required": [
12706
+ "kind"
12707
+ ],
12708
+ "type": "object"
12709
+ }
12710
+ },
12711
+ "readOnly": true,
12712
+ "required": [
12713
+ "kind",
12714
+ "persistence",
12715
+ "scope"
12716
+ ],
12717
+ "type": "object"
12718
+ },
12719
+ {
12720
+ "additionalProperties": false,
12721
+ "properties": {
12722
+ "applicability": {
12723
+ "additionalProperties": false,
12724
+ "properties": {
12725
+ "kind": {
12726
+ "const": "unknown",
12727
+ "type": "string"
12728
+ }
12729
+ },
12730
+ "readOnly": true,
12731
+ "required": [
12732
+ "kind"
12733
+ ],
12734
+ "type": "object"
12735
+ },
12736
+ "duration": {
12737
+ "additionalProperties": false,
12738
+ "properties": {
12739
+ "kind": {
12740
+ "const": "unknown",
12741
+ "type": "string"
12742
+ }
12743
+ },
12744
+ "readOnly": true,
12745
+ "required": [
12746
+ "kind"
12747
+ ],
12748
+ "type": "object"
12749
+ },
12750
+ "explanation": {
12751
+ "$ref": "#/$defs/__schema48"
12752
+ },
12753
+ "kind": {
12754
+ "const": "provider_managed_remembrance",
12755
+ "type": "string"
12756
+ }
12757
+ },
12758
+ "readOnly": true,
12759
+ "required": [
12760
+ "kind",
12761
+ "duration",
12762
+ "applicability",
12763
+ "explanation"
12764
+ ],
12765
+ "type": "object"
12766
+ }
12767
+ ]
12768
+ },
10203
12769
  "decision": {
10204
12770
  "enum": [
10205
12771
  "approved",
@@ -10215,35 +12781,6 @@ const AGENT_EVENT_JSON_SCHEMA = {
10215
12781
  },
10216
12782
  "optionId": {
10217
12783
  "$ref": "#/$defs/__schema1"
10218
- },
10219
- "persistence": {
10220
- "enum": [
10221
- "once",
10222
- "session",
10223
- "workspace"
10224
- ],
10225
- "type": "string"
10226
- },
10227
- "scope": {
10228
- "additionalProperties": false,
10229
- "properties": {
10230
- "kind": {
10231
- "enum": [
10232
- "exact_action",
10233
- "command_pattern",
10234
- "domain",
10235
- "tool",
10236
- "server",
10237
- "all_edits"
10238
- ],
10239
- "type": "string"
10240
- }
10241
- },
10242
- "readOnly": true,
10243
- "required": [
10244
- "kind"
10245
- ],
10246
- "type": "object"
10247
12784
  }
10248
12785
  },
10249
12786
  "readOnly": true,
@@ -10251,8 +12788,7 @@ const AGENT_EVENT_JSON_SCHEMA = {
10251
12788
  "optionId",
10252
12789
  "label",
10253
12790
  "decision",
10254
- "persistence",
10255
- "scope"
12791
+ "consequence"
10256
12792
  ],
10257
12793
  "type": "object"
10258
12794
  },
@@ -10805,7 +13341,7 @@ const AGENT_EVENT_JSON_SCHEMA = {
10805
13341
  "type": "object"
10806
13342
  }
10807
13343
  },
10808
- "$id": "urn:agenai.agent-protocol.event:v10:output",
13344
+ "$id": "urn:agenai.agent-protocol.event:v12:output",
10809
13345
  "$schema": "https://json-schema.org/draft/2020-12/schema",
10810
13346
  "oneOf": [
10811
13347
  {
@@ -11516,6 +14052,62 @@ const AGENT_EVENT_JSON_SCHEMA = {
11516
14052
  ],
11517
14053
  "type": "object"
11518
14054
  },
14055
+ {
14056
+ "additionalProperties": false,
14057
+ "properties": {
14058
+ "occurredAt": {
14059
+ "$ref": "#/$defs/__schema4"
14060
+ },
14061
+ "payload": {
14062
+ "additionalProperties": false,
14063
+ "properties": {
14064
+ "reason": {
14065
+ "enum": [
14066
+ "withdrawn",
14067
+ "expired",
14068
+ "unknown"
14069
+ ],
14070
+ "type": "string"
14071
+ },
14072
+ "requestId": {
14073
+ "$ref": "#/$defs/__schema1"
14074
+ }
14075
+ },
14076
+ "readOnly": true,
14077
+ "required": [
14078
+ "requestId",
14079
+ "reason"
14080
+ ],
14081
+ "type": "object"
14082
+ },
14083
+ "protocolVersion": {
14084
+ "$ref": "#/$defs/__schema0"
14085
+ },
14086
+ "providerRefs": {
14087
+ "$ref": "#/$defs/__schema2"
14088
+ },
14089
+ "sessionId": {
14090
+ "$ref": "#/$defs/__schema1"
14091
+ },
14092
+ "turnId": {
14093
+ "$ref": "#/$defs/__schema1"
14094
+ },
14095
+ "type": {
14096
+ "const": "request.unavailable",
14097
+ "type": "string"
14098
+ }
14099
+ },
14100
+ "readOnly": true,
14101
+ "required": [
14102
+ "protocolVersion",
14103
+ "sessionId",
14104
+ "occurredAt",
14105
+ "type",
14106
+ "turnId",
14107
+ "payload"
14108
+ ],
14109
+ "type": "object"
14110
+ },
11519
14111
  {
11520
14112
  "additionalProperties": false,
11521
14113
  "properties": {
@@ -12554,6 +15146,14 @@ const AGENT_EVENT_JSON_SCHEMA = {
12554
15146
  }
12555
15147
  };
12556
15148
  const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY = [
15149
+ AGENT_SESSION_DECISION_REQUEST_JSON_SCHEMA,
15150
+ AGENT_SESSION_DECISION_RESPONSE_JSON_SCHEMA,
15151
+ AGENT_SESSION_FORM_REQUEST_JSON_SCHEMA,
15152
+ AGENT_SESSION_FORM_RESPONSE_JSON_SCHEMA,
15153
+ AGENT_SESSION_PLAN_REVIEW_REQUEST_JSON_SCHEMA,
15154
+ AGENT_SESSION_PLAN_REVIEW_RESPONSE_JSON_SCHEMA,
15155
+ AGENT_SESSION_REQUEST_JSON_SCHEMA,
15156
+ AGENT_SESSION_RESPONSE_JSON_SCHEMA,
12557
15157
  AGENT_ERROR_JSON_SCHEMA,
12558
15158
  AGENT_EFFECTIVE_CONTENT_CATALOG_JSON_SCHEMA,
12559
15159
  AGENT_COMMAND_CATALOG_JSON_SCHEMA,
@@ -12609,7 +15209,15 @@ export {
12609
15209
  AGENT_REQUEST_RESOLUTION_JSON_SCHEMA,
12610
15210
  AGENT_SESSION_BINDING_JSON_SCHEMA,
12611
15211
  AGENT_SESSION_CONFIGURATION_JSON_SCHEMA,
15212
+ AGENT_SESSION_DECISION_REQUEST_JSON_SCHEMA,
15213
+ AGENT_SESSION_DECISION_RESPONSE_JSON_SCHEMA,
15214
+ AGENT_SESSION_FORM_REQUEST_JSON_SCHEMA,
15215
+ AGENT_SESSION_FORM_RESPONSE_JSON_SCHEMA,
12612
15216
  AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA,
15217
+ AGENT_SESSION_PLAN_REVIEW_REQUEST_JSON_SCHEMA,
15218
+ AGENT_SESSION_PLAN_REVIEW_RESPONSE_JSON_SCHEMA,
15219
+ AGENT_SESSION_REQUEST_JSON_SCHEMA,
15220
+ AGENT_SESSION_RESPONSE_JSON_SCHEMA,
12613
15221
  AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA,
12614
15222
  AGENT_TURN_RUN_INPUT_JSON_SCHEMA
12615
15223
  };