@agen-ai/agent-protocol 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +101 -0
  3. package/dist/artifacts/index.d.ts +3 -0
  4. package/dist/artifacts/index.js +2 -0
  5. package/dist/artifacts/parsers.d.ts +5 -0
  6. package/dist/artifacts/parsers.js +12 -0
  7. package/dist/artifacts/types.d.ts +19 -0
  8. package/dist/artifacts/types.js +16 -0
  9. package/dist/capabilities/index.d.ts +3 -0
  10. package/dist/capabilities/index.js +2 -0
  11. package/dist/capabilities/parsers.d.ts +6 -0
  12. package/dist/capabilities/parsers.js +18 -0
  13. package/dist/capabilities/types.d.ts +96 -0
  14. package/dist/capabilities/types.js +20 -0
  15. package/dist/events/index.d.ts +3 -0
  16. package/dist/events/index.js +2 -0
  17. package/dist/events/parsers.d.ts +6 -0
  18. package/dist/events/parsers.js +16 -0
  19. package/dist/events/types.d.ts +78 -0
  20. package/dist/events/types.js +21 -0
  21. package/dist/foundation/index.d.ts +4 -0
  22. package/dist/foundation/index.js +3 -0
  23. package/dist/foundation/ordering.d.ts +2 -0
  24. package/dist/foundation/ordering.js +15 -0
  25. package/dist/foundation/parsers.d.ts +39 -0
  26. package/dist/foundation/parsers.js +148 -0
  27. package/dist/foundation/types.d.ts +62 -0
  28. package/dist/foundation/types.js +39 -0
  29. package/dist/foundation/validation.d.ts +16 -0
  30. package/dist/foundation/validation.js +11 -0
  31. package/dist/index.d.ts +2 -0
  32. package/dist/index.js +1 -0
  33. package/dist/internal/parsers.d.ts +5 -0
  34. package/dist/internal/parsers.js +21 -0
  35. package/dist/jsonSchema/generated.d.ts +6667 -0
  36. package/dist/jsonSchema/generated.js +4150 -0
  37. package/dist/jsonSchema/index.d.ts +2 -0
  38. package/dist/jsonSchema/index.js +1 -0
  39. package/dist/public/artifacts.d.ts +2 -0
  40. package/dist/public/artifacts.js +1 -0
  41. package/dist/public/capabilities.d.ts +2 -0
  42. package/dist/public/capabilities.js +1 -0
  43. package/dist/public/events.d.ts +2 -0
  44. package/dist/public/events.js +1 -0
  45. package/dist/public/index.d.ts +8 -0
  46. package/dist/public/index.js +7 -0
  47. package/dist/public/requests.d.ts +2 -0
  48. package/dist/public/requests.js +1 -0
  49. package/dist/public/sessions.d.ts +2 -0
  50. package/dist/public/sessions.js +1 -0
  51. package/dist/public/turns.d.ts +2 -0
  52. package/dist/public/turns.js +1 -0
  53. package/dist/requests/index.d.ts +3 -0
  54. package/dist/requests/index.js +2 -0
  55. package/dist/requests/parsers.d.ts +9 -0
  56. package/dist/requests/parsers.js +134 -0
  57. package/dist/requests/types.d.ts +89 -0
  58. package/dist/requests/types.js +0 -0
  59. package/dist/sessions/index.d.ts +3 -0
  60. package/dist/sessions/index.js +2 -0
  61. package/dist/sessions/parsers.d.ts +10 -0
  62. package/dist/sessions/parsers.js +38 -0
  63. package/dist/sessions/types.d.ts +37 -0
  64. package/dist/sessions/types.js +0 -0
  65. package/dist/turns/index.d.ts +3 -0
  66. package/dist/turns/index.js +2 -0
  67. package/dist/turns/parsers.d.ts +11 -0
  68. package/dist/turns/parsers.js +41 -0
  69. package/dist/turns/types.d.ts +207 -0
  70. package/dist/turns/types.js +62 -0
  71. package/dist/zod/artifacts.d.ts +4 -0
  72. package/dist/zod/artifacts.js +28 -0
  73. package/dist/zod/capabilities.d.ts +180 -0
  74. package/dist/zod/capabilities.js +222 -0
  75. package/dist/zod/events.d.ts +357 -0
  76. package/dist/zod/events.js +190 -0
  77. package/dist/zod/foundation.d.ts +45 -0
  78. package/dist/zod/foundation.js +205 -0
  79. package/dist/zod/index.d.ts +9 -0
  80. package/dist/zod/index.js +118 -0
  81. package/dist/zod/requests.d.ts +123 -0
  82. package/dist/zod/requests.js +174 -0
  83. package/dist/zod/sessions.d.ts +65 -0
  84. package/dist/zod/sessions.js +124 -0
  85. package/dist/zod/turns.d.ts +219 -0
  86. package/dist/zod/turns.js +400 -0
  87. package/dist/zod/typeEquality.generated.d.ts +51 -0
  88. package/dist/zod/typeEquality.generated.js +0 -0
  89. package/package.json +95 -0
@@ -0,0 +1,4150 @@
1
+ const AGENT_PROTOCOL_JSON_SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
2
+ const AGENT_SESSION_BINDING_JSON_SCHEMA = {
3
+ "contractId": "agenai.agent-protocol.session-binding",
4
+ "protocolVersion": 6,
5
+ "direction": "output",
6
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
7
+ "parserInvariants": [],
8
+ "sha256": "2607b6b9d92e786e24777e189cf08be804438da8fd7ef25bdc70d4f253523b3a",
9
+ "schema": {
10
+ "$defs": {
11
+ "__schema0": {
12
+ "maxLength": 512,
13
+ "minLength": 1,
14
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
15
+ "type": "string"
16
+ }
17
+ },
18
+ "$id": "urn:agenai.agent-protocol.session-binding:v6:output",
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "additionalProperties": false,
21
+ "properties": {
22
+ "conversationId": {
23
+ "$ref": "#/$defs/__schema0"
24
+ },
25
+ "historyAnchor": {
26
+ "$ref": "#/$defs/__schema0"
27
+ }
28
+ },
29
+ "readOnly": true,
30
+ "required": [
31
+ "conversationId"
32
+ ],
33
+ "type": "object"
34
+ }
35
+ };
36
+ const AGENT_SESSION_CONFIGURATION_JSON_SCHEMA = {
37
+ "contractId": "agenai.agent-protocol.session-configuration",
38
+ "protocolVersion": 6,
39
+ "direction": "input",
40
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
41
+ "parserInvariants": [
42
+ "configuration_entry_count",
43
+ "serialized_bytes"
44
+ ],
45
+ "sha256": "f572604f35434cc4c2895dc103e03459822fb1b313b68c747174ff32389b17dc",
46
+ "schema": {
47
+ "$defs": {
48
+ "__schema0": {
49
+ "maxLength": 128,
50
+ "minLength": 1,
51
+ "pattern": "^(?!(?:__proto__|constructor|prototype)$)",
52
+ "type": "string"
53
+ },
54
+ "__schema1": {
55
+ "anyOf": [
56
+ {
57
+ "maxLength": 32768,
58
+ "type": "string"
59
+ },
60
+ {
61
+ "type": "number"
62
+ },
63
+ {
64
+ "type": "boolean"
65
+ },
66
+ {
67
+ "type": "null"
68
+ },
69
+ {
70
+ "items": {
71
+ "$ref": "#/$defs/__schema1"
72
+ },
73
+ "maxItems": 100,
74
+ "readOnly": true,
75
+ "type": "array"
76
+ },
77
+ {
78
+ "additionalProperties": {
79
+ "$ref": "#/$defs/__schema1"
80
+ },
81
+ "propertyNames": {
82
+ "$ref": "#/$defs/__schema0"
83
+ },
84
+ "readOnly": true,
85
+ "type": "object"
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ "$id": "urn:agenai.agent-protocol.session-configuration:v6:input",
91
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
92
+ "additionalProperties": false,
93
+ "properties": {
94
+ "revision": {
95
+ "maxLength": 256,
96
+ "minLength": 1,
97
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
98
+ "type": "string"
99
+ },
100
+ "values": {
101
+ "additionalProperties": {
102
+ "$ref": "#/$defs/__schema1"
103
+ },
104
+ "propertyNames": {
105
+ "$ref": "#/$defs/__schema0"
106
+ },
107
+ "readOnly": true,
108
+ "type": "object"
109
+ }
110
+ },
111
+ "readOnly": true,
112
+ "required": [
113
+ "revision",
114
+ "values"
115
+ ],
116
+ "type": "object"
117
+ }
118
+ };
119
+ const AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA = {
120
+ "contractId": "agenai.agent-protocol.session-open-input",
121
+ "protocolVersion": 6,
122
+ "direction": "input",
123
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
124
+ "parserInvariants": [
125
+ "configuration_entry_count",
126
+ "distinct_branch_session_ids",
127
+ "serialized_bytes"
128
+ ],
129
+ "sha256": "229a62054dd3cc0d017e0360cb858b590feea8eb0f8aa6d28ac659fd07368790",
130
+ "schema": {
131
+ "$defs": {
132
+ "__schema0": {
133
+ "maxLength": 256,
134
+ "minLength": 1,
135
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
136
+ "type": "string"
137
+ },
138
+ "__schema1": {
139
+ "additionalProperties": false,
140
+ "properties": {
141
+ "revision": {
142
+ "$ref": "#/$defs/__schema0"
143
+ },
144
+ "values": {
145
+ "additionalProperties": {
146
+ "$ref": "#/$defs/__schema3"
147
+ },
148
+ "propertyNames": {
149
+ "$ref": "#/$defs/__schema2"
150
+ },
151
+ "readOnly": true,
152
+ "type": "object"
153
+ }
154
+ },
155
+ "readOnly": true,
156
+ "required": [
157
+ "revision",
158
+ "values"
159
+ ],
160
+ "type": "object"
161
+ },
162
+ "__schema2": {
163
+ "maxLength": 128,
164
+ "minLength": 1,
165
+ "pattern": "^(?!(?:__proto__|constructor|prototype)$)",
166
+ "type": "string"
167
+ },
168
+ "__schema3": {
169
+ "anyOf": [
170
+ {
171
+ "maxLength": 32768,
172
+ "type": "string"
173
+ },
174
+ {
175
+ "type": "number"
176
+ },
177
+ {
178
+ "type": "boolean"
179
+ },
180
+ {
181
+ "type": "null"
182
+ },
183
+ {
184
+ "items": {
185
+ "$ref": "#/$defs/__schema3"
186
+ },
187
+ "maxItems": 100,
188
+ "readOnly": true,
189
+ "type": "array"
190
+ },
191
+ {
192
+ "additionalProperties": {
193
+ "$ref": "#/$defs/__schema3"
194
+ },
195
+ "propertyNames": {
196
+ "$ref": "#/$defs/__schema2"
197
+ },
198
+ "readOnly": true,
199
+ "type": "object"
200
+ }
201
+ ]
202
+ },
203
+ "__schema4": {
204
+ "additionalProperties": false,
205
+ "properties": {
206
+ "conversationId": {
207
+ "$ref": "#/$defs/__schema5"
208
+ },
209
+ "historyAnchor": {
210
+ "$ref": "#/$defs/__schema5"
211
+ }
212
+ },
213
+ "readOnly": true,
214
+ "required": [
215
+ "conversationId"
216
+ ],
217
+ "type": "object"
218
+ },
219
+ "__schema5": {
220
+ "maxLength": 512,
221
+ "minLength": 1,
222
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
223
+ "type": "string"
224
+ }
225
+ },
226
+ "$id": "urn:agenai.agent-protocol.session-open-input:v6:input",
227
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
228
+ "oneOf": [
229
+ {
230
+ "additionalProperties": false,
231
+ "properties": {
232
+ "configuration": {
233
+ "$ref": "#/$defs/__schema1"
234
+ },
235
+ "operation": {
236
+ "const": "create",
237
+ "type": "string"
238
+ },
239
+ "sessionId": {
240
+ "$ref": "#/$defs/__schema0"
241
+ }
242
+ },
243
+ "readOnly": true,
244
+ "required": [
245
+ "operation",
246
+ "sessionId",
247
+ "configuration"
248
+ ],
249
+ "type": "object"
250
+ },
251
+ {
252
+ "additionalProperties": false,
253
+ "properties": {
254
+ "binding": {
255
+ "$ref": "#/$defs/__schema4"
256
+ },
257
+ "configuration": {
258
+ "$ref": "#/$defs/__schema1"
259
+ },
260
+ "operation": {
261
+ "const": "resume",
262
+ "type": "string"
263
+ },
264
+ "sessionId": {
265
+ "$ref": "#/$defs/__schema0"
266
+ }
267
+ },
268
+ "readOnly": true,
269
+ "required": [
270
+ "operation",
271
+ "sessionId",
272
+ "binding",
273
+ "configuration"
274
+ ],
275
+ "type": "object"
276
+ },
277
+ {
278
+ "additionalProperties": false,
279
+ "properties": {
280
+ "configuration": {
281
+ "$ref": "#/$defs/__schema1"
282
+ },
283
+ "operation": {
284
+ "const": "branch",
285
+ "type": "string"
286
+ },
287
+ "sessionId": {
288
+ "$ref": "#/$defs/__schema0"
289
+ },
290
+ "source": {
291
+ "additionalProperties": false,
292
+ "properties": {
293
+ "binding": {
294
+ "$ref": "#/$defs/__schema4"
295
+ },
296
+ "sessionId": {
297
+ "$ref": "#/$defs/__schema0"
298
+ },
299
+ "throughTurn": {
300
+ "additionalProperties": false,
301
+ "properties": {
302
+ "historyAnchor": {
303
+ "$ref": "#/$defs/__schema5"
304
+ },
305
+ "turnId": {
306
+ "$ref": "#/$defs/__schema0"
307
+ }
308
+ },
309
+ "readOnly": true,
310
+ "required": [
311
+ "turnId",
312
+ "historyAnchor"
313
+ ],
314
+ "type": "object"
315
+ }
316
+ },
317
+ "readOnly": true,
318
+ "required": [
319
+ "sessionId",
320
+ "binding",
321
+ "throughTurn"
322
+ ],
323
+ "type": "object"
324
+ }
325
+ },
326
+ "readOnly": true,
327
+ "required": [
328
+ "operation",
329
+ "sessionId",
330
+ "source",
331
+ "configuration"
332
+ ],
333
+ "type": "object"
334
+ }
335
+ ]
336
+ }
337
+ };
338
+ const AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA = {
339
+ "contractId": "agenai.agent-protocol.turn-input-content",
340
+ "protocolVersion": 6,
341
+ "direction": "input",
342
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
343
+ "parserInvariants": [
344
+ "inline_image_decoded_byte_size",
345
+ "serialized_bytes"
346
+ ],
347
+ "sha256": "e16e907c7f656e48074fd5514d9ec2d9893eac19da296884d03af1aaf617d9a3",
348
+ "schema": {
349
+ "$defs": {
350
+ "__schema0": {
351
+ "items": {
352
+ "$ref": "#/$defs/__schema1"
353
+ },
354
+ "maxItems": 100,
355
+ "minItems": 1,
356
+ "readOnly": true,
357
+ "type": "array"
358
+ },
359
+ "__schema1": {
360
+ "oneOf": [
361
+ {
362
+ "additionalProperties": false,
363
+ "properties": {
364
+ "text": {
365
+ "maxLength": 64e3,
366
+ "minLength": 1,
367
+ "type": "string"
368
+ },
369
+ "type": {
370
+ "const": "text",
371
+ "type": "string"
372
+ }
373
+ },
374
+ "readOnly": true,
375
+ "required": [
376
+ "type",
377
+ "text"
378
+ ],
379
+ "type": "object"
380
+ },
381
+ {
382
+ "additionalProperties": false,
383
+ "properties": {
384
+ "source": {
385
+ "oneOf": [
386
+ {
387
+ "additionalProperties": false,
388
+ "properties": {
389
+ "byteSize": {
390
+ "$ref": "#/$defs/__schema3"
391
+ },
392
+ "heightPixels": {
393
+ "$ref": "#/$defs/__schema4"
394
+ },
395
+ "mediaType": {
396
+ "$ref": "#/$defs/__schema2"
397
+ },
398
+ "type": {
399
+ "const": "url",
400
+ "type": "string"
401
+ },
402
+ "url": {
403
+ "format": "uri",
404
+ "maxLength": 2048,
405
+ "type": "string"
406
+ },
407
+ "widthPixels": {
408
+ "$ref": "#/$defs/__schema4"
409
+ }
410
+ },
411
+ "readOnly": true,
412
+ "required": [
413
+ "type",
414
+ "url",
415
+ "mediaType",
416
+ "byteSize",
417
+ "widthPixels",
418
+ "heightPixels"
419
+ ],
420
+ "type": "object"
421
+ },
422
+ {
423
+ "additionalProperties": false,
424
+ "properties": {
425
+ "byteSize": {
426
+ "$ref": "#/$defs/__schema3"
427
+ },
428
+ "data": {
429
+ "$ref": "#/$defs/__schema6"
430
+ },
431
+ "heightPixels": {
432
+ "$ref": "#/$defs/__schema4"
433
+ },
434
+ "mediaType": {
435
+ "$ref": "#/$defs/__schema2"
436
+ },
437
+ "type": {
438
+ "$ref": "#/$defs/__schema5"
439
+ },
440
+ "widthPixels": {
441
+ "$ref": "#/$defs/__schema4"
442
+ }
443
+ },
444
+ "readOnly": true,
445
+ "required": [
446
+ "type",
447
+ "mediaType",
448
+ "byteSize",
449
+ "widthPixels",
450
+ "heightPixels",
451
+ "data"
452
+ ],
453
+ "type": "object"
454
+ },
455
+ {
456
+ "additionalProperties": false,
457
+ "properties": {
458
+ "byteSize": {
459
+ "$ref": "#/$defs/__schema3"
460
+ },
461
+ "heightPixels": {
462
+ "$ref": "#/$defs/__schema4"
463
+ },
464
+ "mediaType": {
465
+ "$ref": "#/$defs/__schema2"
466
+ },
467
+ "path": {
468
+ "maxLength": 4096,
469
+ "minLength": 2,
470
+ "pattern": "^(?!.*\\/\\.\\.(?:\\/|$))\\/(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
471
+ "type": "string"
472
+ },
473
+ "sha256": {
474
+ "pattern": "^[a-f0-9]{64}$",
475
+ "type": "string"
476
+ },
477
+ "type": {
478
+ "const": "local_file",
479
+ "type": "string"
480
+ },
481
+ "widthPixels": {
482
+ "$ref": "#/$defs/__schema4"
483
+ }
484
+ },
485
+ "readOnly": true,
486
+ "required": [
487
+ "type",
488
+ "path",
489
+ "sha256",
490
+ "mediaType",
491
+ "byteSize",
492
+ "widthPixels",
493
+ "heightPixels"
494
+ ],
495
+ "type": "object"
496
+ }
497
+ ]
498
+ },
499
+ "type": {
500
+ "const": "image",
501
+ "type": "string"
502
+ }
503
+ },
504
+ "readOnly": true,
505
+ "required": [
506
+ "type",
507
+ "source"
508
+ ],
509
+ "type": "object"
510
+ }
511
+ ]
512
+ },
513
+ "__schema2": {
514
+ "enum": [
515
+ "image/png",
516
+ "image/jpeg",
517
+ "image/webp"
518
+ ],
519
+ "type": "string"
520
+ },
521
+ "__schema3": {
522
+ "exclusiveMinimum": 0,
523
+ "maximum": 104857600,
524
+ "type": "integer"
525
+ },
526
+ "__schema4": {
527
+ "exclusiveMinimum": 0,
528
+ "maximum": 1e5,
529
+ "type": "integer"
530
+ },
531
+ "__schema5": {
532
+ "const": "base64",
533
+ "type": "string"
534
+ },
535
+ "__schema6": {
536
+ "contentEncoding": "base64",
537
+ "format": "base64",
538
+ "maxLength": 5e5,
539
+ "minLength": 1,
540
+ "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$",
541
+ "type": "string"
542
+ },
543
+ "__schema7": {
544
+ "maxLength": 2e3,
545
+ "type": "string"
546
+ }
547
+ },
548
+ "$id": "urn:agenai.agent-protocol.turn-input-content:v6:input",
549
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
550
+ "additionalProperties": false,
551
+ "properties": {
552
+ "parts": {
553
+ "$ref": "#/$defs/__schema0"
554
+ },
555
+ "summary": {
556
+ "$ref": "#/$defs/__schema7"
557
+ }
558
+ },
559
+ "required": [
560
+ "parts"
561
+ ],
562
+ "type": "object"
563
+ }
564
+ };
565
+ const AGENT_TURN_RUN_INPUT_JSON_SCHEMA = {
566
+ "contractId": "agenai.agent-protocol.turn-run-input",
567
+ "protocolVersion": 6,
568
+ "direction": "input",
569
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
570
+ "parserInvariants": [
571
+ "inline_image_decoded_byte_size",
572
+ "serialized_bytes"
573
+ ],
574
+ "sha256": "9eed73d589c31a2c0e54073ad694c60acce6ed2fe97209c3c9997634f75c0a85",
575
+ "schema": {
576
+ "$defs": {
577
+ "__schema0": {
578
+ "oneOf": [
579
+ {
580
+ "additionalProperties": false,
581
+ "properties": {
582
+ "text": {
583
+ "maxLength": 64e3,
584
+ "minLength": 1,
585
+ "type": "string"
586
+ },
587
+ "type": {
588
+ "const": "text",
589
+ "type": "string"
590
+ }
591
+ },
592
+ "readOnly": true,
593
+ "required": [
594
+ "type",
595
+ "text"
596
+ ],
597
+ "type": "object"
598
+ },
599
+ {
600
+ "additionalProperties": false,
601
+ "properties": {
602
+ "source": {
603
+ "oneOf": [
604
+ {
605
+ "additionalProperties": false,
606
+ "properties": {
607
+ "byteSize": {
608
+ "$ref": "#/$defs/__schema2"
609
+ },
610
+ "heightPixels": {
611
+ "$ref": "#/$defs/__schema3"
612
+ },
613
+ "mediaType": {
614
+ "$ref": "#/$defs/__schema1"
615
+ },
616
+ "type": {
617
+ "const": "url",
618
+ "type": "string"
619
+ },
620
+ "url": {
621
+ "format": "uri",
622
+ "maxLength": 2048,
623
+ "type": "string"
624
+ },
625
+ "widthPixels": {
626
+ "$ref": "#/$defs/__schema3"
627
+ }
628
+ },
629
+ "readOnly": true,
630
+ "required": [
631
+ "type",
632
+ "url",
633
+ "mediaType",
634
+ "byteSize",
635
+ "widthPixels",
636
+ "heightPixels"
637
+ ],
638
+ "type": "object"
639
+ },
640
+ {
641
+ "additionalProperties": false,
642
+ "properties": {
643
+ "byteSize": {
644
+ "$ref": "#/$defs/__schema2"
645
+ },
646
+ "data": {
647
+ "$ref": "#/$defs/__schema5"
648
+ },
649
+ "heightPixels": {
650
+ "$ref": "#/$defs/__schema3"
651
+ },
652
+ "mediaType": {
653
+ "$ref": "#/$defs/__schema1"
654
+ },
655
+ "type": {
656
+ "$ref": "#/$defs/__schema4"
657
+ },
658
+ "widthPixels": {
659
+ "$ref": "#/$defs/__schema3"
660
+ }
661
+ },
662
+ "readOnly": true,
663
+ "required": [
664
+ "type",
665
+ "mediaType",
666
+ "byteSize",
667
+ "widthPixels",
668
+ "heightPixels",
669
+ "data"
670
+ ],
671
+ "type": "object"
672
+ },
673
+ {
674
+ "additionalProperties": false,
675
+ "properties": {
676
+ "byteSize": {
677
+ "$ref": "#/$defs/__schema2"
678
+ },
679
+ "heightPixels": {
680
+ "$ref": "#/$defs/__schema3"
681
+ },
682
+ "mediaType": {
683
+ "$ref": "#/$defs/__schema1"
684
+ },
685
+ "path": {
686
+ "maxLength": 4096,
687
+ "minLength": 2,
688
+ "pattern": "^(?!.*\\/\\.\\.(?:\\/|$))\\/(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
689
+ "type": "string"
690
+ },
691
+ "sha256": {
692
+ "pattern": "^[a-f0-9]{64}$",
693
+ "type": "string"
694
+ },
695
+ "type": {
696
+ "const": "local_file",
697
+ "type": "string"
698
+ },
699
+ "widthPixels": {
700
+ "$ref": "#/$defs/__schema3"
701
+ }
702
+ },
703
+ "readOnly": true,
704
+ "required": [
705
+ "type",
706
+ "path",
707
+ "sha256",
708
+ "mediaType",
709
+ "byteSize",
710
+ "widthPixels",
711
+ "heightPixels"
712
+ ],
713
+ "type": "object"
714
+ }
715
+ ]
716
+ },
717
+ "type": {
718
+ "const": "image",
719
+ "type": "string"
720
+ }
721
+ },
722
+ "readOnly": true,
723
+ "required": [
724
+ "type",
725
+ "source"
726
+ ],
727
+ "type": "object"
728
+ }
729
+ ]
730
+ },
731
+ "__schema1": {
732
+ "enum": [
733
+ "image/png",
734
+ "image/jpeg",
735
+ "image/webp"
736
+ ],
737
+ "type": "string"
738
+ },
739
+ "__schema2": {
740
+ "exclusiveMinimum": 0,
741
+ "maximum": 104857600,
742
+ "type": "integer"
743
+ },
744
+ "__schema3": {
745
+ "exclusiveMinimum": 0,
746
+ "maximum": 1e5,
747
+ "type": "integer"
748
+ },
749
+ "__schema4": {
750
+ "const": "base64",
751
+ "type": "string"
752
+ },
753
+ "__schema5": {
754
+ "contentEncoding": "base64",
755
+ "format": "base64",
756
+ "maxLength": 5e5,
757
+ "minLength": 1,
758
+ "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$",
759
+ "type": "string"
760
+ }
761
+ },
762
+ "$id": "urn:agenai.agent-protocol.turn-run-input:v6:input",
763
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
764
+ "additionalProperties": false,
765
+ "properties": {
766
+ "deadlineAt": {
767
+ "format": "date-time",
768
+ "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)))$",
769
+ "type": "string"
770
+ },
771
+ "interactionMode": {
772
+ "enum": [
773
+ "default",
774
+ "plan"
775
+ ],
776
+ "type": "string"
777
+ },
778
+ "parts": {
779
+ "items": {
780
+ "$ref": "#/$defs/__schema0"
781
+ },
782
+ "maxItems": 100,
783
+ "minItems": 1,
784
+ "readOnly": true,
785
+ "type": "array"
786
+ },
787
+ "summary": {
788
+ "maxLength": 2e3,
789
+ "type": "string"
790
+ },
791
+ "turnId": {
792
+ "maxLength": 256,
793
+ "minLength": 1,
794
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
795
+ "type": "string"
796
+ }
797
+ },
798
+ "readOnly": true,
799
+ "required": [
800
+ "turnId",
801
+ "interactionMode",
802
+ "parts"
803
+ ],
804
+ "type": "object"
805
+ }
806
+ };
807
+ const AGENT_REQUEST_JSON_SCHEMA = {
808
+ "contractId": "agenai.agent-protocol.request",
809
+ "protocolVersion": 6,
810
+ "direction": "output",
811
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
812
+ "parserInvariants": [
813
+ "unique_field_ids",
814
+ "unique_choice_values"
815
+ ],
816
+ "sha256": "6effd40d27037be8d25661daf9897e21bcb9fa90c4a937ba3a675ea1d5031250",
817
+ "schema": {
818
+ "$defs": {
819
+ "__schema0": {
820
+ "maxLength": 256,
821
+ "minLength": 1,
822
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
823
+ "type": "string"
824
+ },
825
+ "__schema1": {
826
+ "format": "date-time",
827
+ "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)))$",
828
+ "type": "string"
829
+ },
830
+ "__schema2": {
831
+ "oneOf": [
832
+ {
833
+ "additionalProperties": false,
834
+ "properties": {
835
+ "description": {
836
+ "maxLength": 2e3,
837
+ "type": "string"
838
+ },
839
+ "fieldId": {
840
+ "$ref": "#/$defs/__schema0"
841
+ },
842
+ "kind": {
843
+ "const": "text",
844
+ "type": "string"
845
+ },
846
+ "label": {
847
+ "maxLength": 200,
848
+ "minLength": 1,
849
+ "type": "string"
850
+ },
851
+ "multiline": {
852
+ "type": "boolean"
853
+ },
854
+ "required": {
855
+ "type": "boolean"
856
+ }
857
+ },
858
+ "readOnly": true,
859
+ "required": [
860
+ "fieldId",
861
+ "label",
862
+ "required",
863
+ "kind"
864
+ ],
865
+ "type": "object"
866
+ },
867
+ {
868
+ "additionalProperties": false,
869
+ "properties": {
870
+ "allowOther": {
871
+ "type": "boolean"
872
+ },
873
+ "description": {
874
+ "maxLength": 2e3,
875
+ "type": "string"
876
+ },
877
+ "fieldId": {
878
+ "$ref": "#/$defs/__schema0"
879
+ },
880
+ "kind": {
881
+ "const": "choice",
882
+ "type": "string"
883
+ },
884
+ "label": {
885
+ "maxLength": 200,
886
+ "minLength": 1,
887
+ "type": "string"
888
+ },
889
+ "multiple": {
890
+ "type": "boolean"
891
+ },
892
+ "options": {
893
+ "items": {
894
+ "$ref": "#/$defs/__schema3"
895
+ },
896
+ "maxItems": 100,
897
+ "minItems": 1,
898
+ "readOnly": true,
899
+ "type": "array"
900
+ },
901
+ "required": {
902
+ "type": "boolean"
903
+ }
904
+ },
905
+ "readOnly": true,
906
+ "required": [
907
+ "fieldId",
908
+ "label",
909
+ "required",
910
+ "kind",
911
+ "options",
912
+ "multiple",
913
+ "allowOther"
914
+ ],
915
+ "type": "object"
916
+ },
917
+ {
918
+ "additionalProperties": false,
919
+ "properties": {
920
+ "description": {
921
+ "maxLength": 2e3,
922
+ "type": "string"
923
+ },
924
+ "fieldId": {
925
+ "$ref": "#/$defs/__schema0"
926
+ },
927
+ "kind": {
928
+ "const": "boolean",
929
+ "type": "string"
930
+ },
931
+ "label": {
932
+ "maxLength": 200,
933
+ "minLength": 1,
934
+ "type": "string"
935
+ },
936
+ "required": {
937
+ "type": "boolean"
938
+ }
939
+ },
940
+ "readOnly": true,
941
+ "required": [
942
+ "fieldId",
943
+ "label",
944
+ "required",
945
+ "kind"
946
+ ],
947
+ "type": "object"
948
+ }
949
+ ]
950
+ },
951
+ "__schema3": {
952
+ "additionalProperties": false,
953
+ "properties": {
954
+ "description": {
955
+ "maxLength": 2e3,
956
+ "type": "string"
957
+ },
958
+ "label": {
959
+ "maxLength": 200,
960
+ "minLength": 1,
961
+ "type": "string"
962
+ },
963
+ "value": {
964
+ "allOf": [
965
+ {
966
+ "$ref": "#/$defs/__schema0"
967
+ },
968
+ {
969
+ "maxLength": 160,
970
+ "type": "string"
971
+ }
972
+ ]
973
+ }
974
+ },
975
+ "readOnly": true,
976
+ "required": [
977
+ "value",
978
+ "label"
979
+ ],
980
+ "type": "object"
981
+ }
982
+ },
983
+ "$id": "urn:agenai.agent-protocol.request:v6:output",
984
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
985
+ "oneOf": [
986
+ {
987
+ "additionalProperties": false,
988
+ "properties": {
989
+ "expiresAt": {
990
+ "$ref": "#/$defs/__schema1"
991
+ },
992
+ "prompt": {
993
+ "maxLength": 4e3,
994
+ "minLength": 1,
995
+ "type": "string"
996
+ },
997
+ "requestId": {
998
+ "$ref": "#/$defs/__schema0"
999
+ },
1000
+ "requestKind": {
1001
+ "const": "approval",
1002
+ "type": "string"
1003
+ },
1004
+ "subject": {
1005
+ "oneOf": [
1006
+ {
1007
+ "additionalProperties": false,
1008
+ "properties": {
1009
+ "artifactId": {
1010
+ "$ref": "#/$defs/__schema0"
1011
+ },
1012
+ "description": {
1013
+ "maxLength": 2e3,
1014
+ "type": "string"
1015
+ },
1016
+ "kind": {
1017
+ "const": "plan",
1018
+ "type": "string"
1019
+ },
1020
+ "title": {
1021
+ "maxLength": 200,
1022
+ "minLength": 1,
1023
+ "type": "string"
1024
+ }
1025
+ },
1026
+ "readOnly": true,
1027
+ "required": [
1028
+ "kind",
1029
+ "title",
1030
+ "artifactId"
1031
+ ],
1032
+ "type": "object"
1033
+ },
1034
+ {
1035
+ "additionalProperties": false,
1036
+ "properties": {
1037
+ "description": {
1038
+ "maxLength": 2e3,
1039
+ "type": "string"
1040
+ },
1041
+ "kind": {
1042
+ "enum": [
1043
+ "command",
1044
+ "file_change",
1045
+ "tool",
1046
+ "other"
1047
+ ],
1048
+ "type": "string"
1049
+ },
1050
+ "title": {
1051
+ "maxLength": 200,
1052
+ "minLength": 1,
1053
+ "type": "string"
1054
+ }
1055
+ },
1056
+ "readOnly": true,
1057
+ "required": [
1058
+ "kind",
1059
+ "title"
1060
+ ],
1061
+ "type": "object"
1062
+ }
1063
+ ]
1064
+ }
1065
+ },
1066
+ "readOnly": true,
1067
+ "required": [
1068
+ "requestKind",
1069
+ "requestId",
1070
+ "prompt",
1071
+ "subject"
1072
+ ],
1073
+ "type": "object"
1074
+ },
1075
+ {
1076
+ "additionalProperties": false,
1077
+ "properties": {
1078
+ "expiresAt": {
1079
+ "$ref": "#/$defs/__schema1"
1080
+ },
1081
+ "fields": {
1082
+ "items": {
1083
+ "$ref": "#/$defs/__schema2"
1084
+ },
1085
+ "maxItems": 100,
1086
+ "minItems": 1,
1087
+ "readOnly": true,
1088
+ "type": "array"
1089
+ },
1090
+ "prompt": {
1091
+ "maxLength": 4e3,
1092
+ "minLength": 1,
1093
+ "type": "string"
1094
+ },
1095
+ "requestId": {
1096
+ "$ref": "#/$defs/__schema0"
1097
+ },
1098
+ "requestKind": {
1099
+ "const": "elicitation",
1100
+ "type": "string"
1101
+ }
1102
+ },
1103
+ "readOnly": true,
1104
+ "required": [
1105
+ "requestKind",
1106
+ "requestId",
1107
+ "prompt",
1108
+ "fields"
1109
+ ],
1110
+ "type": "object"
1111
+ }
1112
+ ]
1113
+ }
1114
+ };
1115
+ const AGENT_REQUEST_RESOLUTION_JSON_SCHEMA = {
1116
+ "contractId": "agenai.agent-protocol.request-resolution",
1117
+ "protocolVersion": 6,
1118
+ "direction": "input",
1119
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
1120
+ "parserInvariants": [
1121
+ "request_resolution_correlation",
1122
+ "unique_choice_selections"
1123
+ ],
1124
+ "sha256": "eaea1e3085e8aa12cfadbd46f0e10b8c03074c5ebd817c4afbc9353aafcec378",
1125
+ "schema": {
1126
+ "$defs": {
1127
+ "__schema0": {
1128
+ "maxLength": 256,
1129
+ "minLength": 1,
1130
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1131
+ "type": "string"
1132
+ },
1133
+ "__schema1": {
1134
+ "oneOf": [
1135
+ {
1136
+ "additionalProperties": false,
1137
+ "properties": {
1138
+ "fieldId": {
1139
+ "$ref": "#/$defs/__schema0"
1140
+ },
1141
+ "kind": {
1142
+ "const": "text",
1143
+ "type": "string"
1144
+ },
1145
+ "value": {
1146
+ "$ref": "#/$defs/__schema2"
1147
+ }
1148
+ },
1149
+ "readOnly": true,
1150
+ "required": [
1151
+ "fieldId",
1152
+ "kind",
1153
+ "value"
1154
+ ],
1155
+ "type": "object"
1156
+ },
1157
+ {
1158
+ "additionalProperties": false,
1159
+ "properties": {
1160
+ "fieldId": {
1161
+ "$ref": "#/$defs/__schema0"
1162
+ },
1163
+ "kind": {
1164
+ "const": "choice",
1165
+ "type": "string"
1166
+ },
1167
+ "other": {
1168
+ "$ref": "#/$defs/__schema2"
1169
+ },
1170
+ "values": {
1171
+ "items": {
1172
+ "$ref": "#/$defs/__schema3"
1173
+ },
1174
+ "maxItems": 100,
1175
+ "readOnly": true,
1176
+ "type": "array"
1177
+ }
1178
+ },
1179
+ "readOnly": true,
1180
+ "required": [
1181
+ "fieldId",
1182
+ "kind",
1183
+ "values"
1184
+ ],
1185
+ "type": "object"
1186
+ },
1187
+ {
1188
+ "additionalProperties": false,
1189
+ "properties": {
1190
+ "fieldId": {
1191
+ "$ref": "#/$defs/__schema0"
1192
+ },
1193
+ "kind": {
1194
+ "const": "boolean",
1195
+ "type": "string"
1196
+ },
1197
+ "value": {
1198
+ "type": "boolean"
1199
+ }
1200
+ },
1201
+ "readOnly": true,
1202
+ "required": [
1203
+ "fieldId",
1204
+ "kind",
1205
+ "value"
1206
+ ],
1207
+ "type": "object"
1208
+ }
1209
+ ]
1210
+ },
1211
+ "__schema2": {
1212
+ "maxLength": 4e3,
1213
+ "pattern": "\\S",
1214
+ "type": "string"
1215
+ },
1216
+ "__schema3": {
1217
+ "allOf": [
1218
+ {
1219
+ "$ref": "#/$defs/__schema0"
1220
+ },
1221
+ {
1222
+ "maxLength": 160,
1223
+ "type": "string"
1224
+ }
1225
+ ]
1226
+ }
1227
+ },
1228
+ "$id": "urn:agenai.agent-protocol.request-resolution:v6:input",
1229
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1230
+ "anyOf": [
1231
+ {
1232
+ "additionalProperties": false,
1233
+ "properties": {
1234
+ "decision": {
1235
+ "enum": [
1236
+ "approved",
1237
+ "denied",
1238
+ "canceled"
1239
+ ],
1240
+ "type": "string"
1241
+ },
1242
+ "requestId": {
1243
+ "$ref": "#/$defs/__schema0"
1244
+ },
1245
+ "requestKind": {
1246
+ "const": "approval",
1247
+ "type": "string"
1248
+ }
1249
+ },
1250
+ "readOnly": true,
1251
+ "required": [
1252
+ "requestKind",
1253
+ "requestId",
1254
+ "decision"
1255
+ ],
1256
+ "type": "object"
1257
+ },
1258
+ {
1259
+ "additionalProperties": false,
1260
+ "properties": {
1261
+ "answers": {
1262
+ "items": {
1263
+ "$ref": "#/$defs/__schema1"
1264
+ },
1265
+ "maxItems": 100,
1266
+ "readOnly": true,
1267
+ "type": "array"
1268
+ },
1269
+ "disposition": {
1270
+ "const": "answered",
1271
+ "type": "string"
1272
+ },
1273
+ "requestId": {
1274
+ "$ref": "#/$defs/__schema0"
1275
+ },
1276
+ "requestKind": {
1277
+ "const": "elicitation",
1278
+ "type": "string"
1279
+ }
1280
+ },
1281
+ "readOnly": true,
1282
+ "required": [
1283
+ "requestKind",
1284
+ "requestId",
1285
+ "disposition",
1286
+ "answers"
1287
+ ],
1288
+ "type": "object"
1289
+ },
1290
+ {
1291
+ "additionalProperties": false,
1292
+ "properties": {
1293
+ "disposition": {
1294
+ "const": "canceled",
1295
+ "type": "string"
1296
+ },
1297
+ "requestId": {
1298
+ "$ref": "#/$defs/__schema0"
1299
+ },
1300
+ "requestKind": {
1301
+ "const": "elicitation",
1302
+ "type": "string"
1303
+ }
1304
+ },
1305
+ "readOnly": true,
1306
+ "required": [
1307
+ "requestKind",
1308
+ "requestId",
1309
+ "disposition"
1310
+ ],
1311
+ "type": "object"
1312
+ }
1313
+ ]
1314
+ }
1315
+ };
1316
+ const AGENT_CAPABILITIES_JSON_SCHEMA = {
1317
+ "contractId": "agenai.agent-protocol.capabilities",
1318
+ "protocolVersion": 6,
1319
+ "direction": "output",
1320
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
1321
+ "parserInvariants": [
1322
+ "canonical_artifact_kinds",
1323
+ "canonical_authentication_flows",
1324
+ "canonical_configuration_field_keys",
1325
+ "canonical_configuration_option_ids",
1326
+ "canonical_image_input_media_types",
1327
+ "canonical_image_input_source_kinds",
1328
+ "image_input_pixels_bounded_by_dimensions",
1329
+ "image_input_total_bytes_admits_max_image",
1330
+ "image_input_total_bytes_bounded_by_count"
1331
+ ],
1332
+ "sha256": "cf141867eaa720f2f5a0bc7bbfd337c86c9b37d0932abdf4fc88386d1cc26194",
1333
+ "schema": {
1334
+ "$defs": {
1335
+ "__schema0": {
1336
+ "enum": [
1337
+ "default",
1338
+ "plan"
1339
+ ],
1340
+ "type": "string"
1341
+ },
1342
+ "__schema1": {
1343
+ "additionalProperties": false,
1344
+ "properties": {
1345
+ "images": {
1346
+ "oneOf": [
1347
+ {
1348
+ "additionalProperties": false,
1349
+ "properties": {
1350
+ "kind": {
1351
+ "const": "unsupported",
1352
+ "type": "string"
1353
+ }
1354
+ },
1355
+ "readOnly": true,
1356
+ "required": [
1357
+ "kind"
1358
+ ],
1359
+ "type": "object"
1360
+ },
1361
+ {
1362
+ "additionalProperties": false,
1363
+ "properties": {
1364
+ "kind": {
1365
+ "$ref": "#/$defs/__schema2"
1366
+ },
1367
+ "maxBytesPerImage": {
1368
+ "$ref": "#/$defs/__schema7"
1369
+ },
1370
+ "maxHeightPixels": {
1371
+ "$ref": "#/$defs/__schema7"
1372
+ },
1373
+ "maxImages": {
1374
+ "$ref": "#/$defs/__schema7"
1375
+ },
1376
+ "maxPixelsPerImage": {
1377
+ "$ref": "#/$defs/__schema7"
1378
+ },
1379
+ "maxTotalBytes": {
1380
+ "$ref": "#/$defs/__schema7"
1381
+ },
1382
+ "maxWidthPixels": {
1383
+ "$ref": "#/$defs/__schema7"
1384
+ },
1385
+ "mediaTypes": {
1386
+ "$ref": "#/$defs/__schema5"
1387
+ },
1388
+ "sourceKinds": {
1389
+ "$ref": "#/$defs/__schema3"
1390
+ },
1391
+ "supportsImageOnly": {
1392
+ "$ref": "#/$defs/__schema8"
1393
+ }
1394
+ },
1395
+ "readOnly": true,
1396
+ "required": [
1397
+ "kind",
1398
+ "sourceKinds",
1399
+ "mediaTypes",
1400
+ "maxImages",
1401
+ "maxBytesPerImage",
1402
+ "maxTotalBytes",
1403
+ "maxWidthPixels",
1404
+ "maxHeightPixels",
1405
+ "maxPixelsPerImage",
1406
+ "supportsImageOnly"
1407
+ ],
1408
+ "type": "object"
1409
+ }
1410
+ ]
1411
+ },
1412
+ "text": {
1413
+ "const": true,
1414
+ "type": "boolean"
1415
+ }
1416
+ },
1417
+ "readOnly": true,
1418
+ "required": [
1419
+ "text",
1420
+ "images"
1421
+ ],
1422
+ "type": "object"
1423
+ },
1424
+ "__schema10": {
1425
+ "additionalProperties": false,
1426
+ "properties": {
1427
+ "key": {
1428
+ "$ref": "#/$defs/__schema11"
1429
+ },
1430
+ "optionIds": {
1431
+ "items": {
1432
+ "$ref": "#/$defs/__schema11"
1433
+ },
1434
+ "maxItems": 100,
1435
+ "minItems": 1,
1436
+ "readOnly": true,
1437
+ "type": "array",
1438
+ "uniqueItems": true
1439
+ }
1440
+ },
1441
+ "readOnly": true,
1442
+ "required": [
1443
+ "key",
1444
+ "optionIds"
1445
+ ],
1446
+ "type": "object"
1447
+ },
1448
+ "__schema11": {
1449
+ "maxLength": 100,
1450
+ "minLength": 1,
1451
+ "pattern": "^[a-z][a-z0-9._:-]*$",
1452
+ "type": "string"
1453
+ },
1454
+ "__schema12": {
1455
+ "enum": [
1456
+ "device_code",
1457
+ "browser",
1458
+ "terminal"
1459
+ ],
1460
+ "type": "string"
1461
+ },
1462
+ "__schema2": {
1463
+ "const": "supported",
1464
+ "type": "string"
1465
+ },
1466
+ "__schema3": {
1467
+ "items": {
1468
+ "$ref": "#/$defs/__schema4"
1469
+ },
1470
+ "maxItems": 3,
1471
+ "minItems": 1,
1472
+ "readOnly": true,
1473
+ "type": "array",
1474
+ "uniqueItems": true
1475
+ },
1476
+ "__schema4": {
1477
+ "enum": [
1478
+ "url",
1479
+ "base64",
1480
+ "local_file"
1481
+ ],
1482
+ "type": "string"
1483
+ },
1484
+ "__schema5": {
1485
+ "items": {
1486
+ "$ref": "#/$defs/__schema6"
1487
+ },
1488
+ "maxItems": 3,
1489
+ "minItems": 1,
1490
+ "readOnly": true,
1491
+ "type": "array",
1492
+ "uniqueItems": true
1493
+ },
1494
+ "__schema6": {
1495
+ "enum": [
1496
+ "image/png",
1497
+ "image/jpeg",
1498
+ "image/webp"
1499
+ ],
1500
+ "type": "string"
1501
+ },
1502
+ "__schema7": {
1503
+ "exclusiveMinimum": 0,
1504
+ "maximum": 9007199254740991,
1505
+ "type": "integer"
1506
+ },
1507
+ "__schema8": {
1508
+ "type": "boolean"
1509
+ },
1510
+ "__schema9": {
1511
+ "enum": [
1512
+ "plan",
1513
+ "diff",
1514
+ "file",
1515
+ "log",
1516
+ "image",
1517
+ "report",
1518
+ "other"
1519
+ ],
1520
+ "type": "string"
1521
+ }
1522
+ },
1523
+ "$id": "urn:agenai.agent-protocol.capabilities:v6:output",
1524
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1525
+ "additionalProperties": false,
1526
+ "properties": {
1527
+ "authentication": {
1528
+ "oneOf": [
1529
+ {
1530
+ "additionalProperties": false,
1531
+ "properties": {
1532
+ "kind": {
1533
+ "const": "unsupported",
1534
+ "type": "string"
1535
+ }
1536
+ },
1537
+ "readOnly": true,
1538
+ "required": [
1539
+ "kind"
1540
+ ],
1541
+ "type": "object"
1542
+ },
1543
+ {
1544
+ "additionalProperties": false,
1545
+ "properties": {
1546
+ "flows": {
1547
+ "items": {
1548
+ "$ref": "#/$defs/__schema12"
1549
+ },
1550
+ "maxItems": 3,
1551
+ "minItems": 1,
1552
+ "readOnly": true,
1553
+ "type": "array",
1554
+ "uniqueItems": true
1555
+ },
1556
+ "kind": {
1557
+ "const": "supported",
1558
+ "type": "string"
1559
+ }
1560
+ },
1561
+ "readOnly": true,
1562
+ "required": [
1563
+ "kind",
1564
+ "flows"
1565
+ ],
1566
+ "type": "object"
1567
+ }
1568
+ ]
1569
+ },
1570
+ "configuration": {
1571
+ "oneOf": [
1572
+ {
1573
+ "additionalProperties": false,
1574
+ "properties": {
1575
+ "kind": {
1576
+ "const": "managed",
1577
+ "type": "string"
1578
+ }
1579
+ },
1580
+ "readOnly": true,
1581
+ "required": [
1582
+ "kind"
1583
+ ],
1584
+ "type": "object"
1585
+ },
1586
+ {
1587
+ "additionalProperties": false,
1588
+ "properties": {
1589
+ "fields": {
1590
+ "items": {
1591
+ "$ref": "#/$defs/__schema10"
1592
+ },
1593
+ "maxItems": 100,
1594
+ "minItems": 1,
1595
+ "readOnly": true,
1596
+ "type": "array"
1597
+ },
1598
+ "kind": {
1599
+ "const": "selectable",
1600
+ "type": "string"
1601
+ }
1602
+ },
1603
+ "readOnly": true,
1604
+ "required": [
1605
+ "kind",
1606
+ "fields"
1607
+ ],
1608
+ "type": "object"
1609
+ }
1610
+ ]
1611
+ },
1612
+ "input": {
1613
+ "$ref": "#/$defs/__schema1"
1614
+ },
1615
+ "interactionExtensions": {
1616
+ "additionalProperties": false,
1617
+ "properties": {
1618
+ "imageGeneration": {
1619
+ "type": "boolean"
1620
+ },
1621
+ "mcp": {
1622
+ "type": "boolean"
1623
+ },
1624
+ "slashCommands": {
1625
+ "type": "boolean"
1626
+ },
1627
+ "subagents": {
1628
+ "type": "boolean"
1629
+ }
1630
+ },
1631
+ "readOnly": true,
1632
+ "required": [
1633
+ "slashCommands",
1634
+ "mcp",
1635
+ "subagents",
1636
+ "imageGeneration"
1637
+ ],
1638
+ "type": "object"
1639
+ },
1640
+ "output": {
1641
+ "additionalProperties": false,
1642
+ "properties": {
1643
+ "artifactKinds": {
1644
+ "items": {
1645
+ "$ref": "#/$defs/__schema9"
1646
+ },
1647
+ "maxItems": 7,
1648
+ "readOnly": true,
1649
+ "type": "array",
1650
+ "uniqueItems": true
1651
+ },
1652
+ "fileChanges": {
1653
+ "enum": [
1654
+ "none",
1655
+ "final_diff",
1656
+ "structured"
1657
+ ],
1658
+ "type": "string"
1659
+ },
1660
+ "plans": {
1661
+ "type": "boolean"
1662
+ },
1663
+ "streaming": {
1664
+ "type": "boolean"
1665
+ }
1666
+ },
1667
+ "readOnly": true,
1668
+ "required": [
1669
+ "streaming",
1670
+ "plans",
1671
+ "fileChanges",
1672
+ "artifactKinds"
1673
+ ],
1674
+ "type": "object"
1675
+ },
1676
+ "protocolVersion": {
1677
+ "const": 6,
1678
+ "type": "number"
1679
+ },
1680
+ "providerKey": {
1681
+ "maxLength": 100,
1682
+ "minLength": 1,
1683
+ "pattern": "^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$",
1684
+ "type": "string"
1685
+ },
1686
+ "requests": {
1687
+ "additionalProperties": false,
1688
+ "properties": {
1689
+ "approval": {
1690
+ "type": "boolean"
1691
+ },
1692
+ "elicitation": {
1693
+ "oneOf": [
1694
+ {
1695
+ "additionalProperties": false,
1696
+ "properties": {
1697
+ "kind": {
1698
+ "const": "unsupported",
1699
+ "type": "string"
1700
+ }
1701
+ },
1702
+ "readOnly": true,
1703
+ "required": [
1704
+ "kind"
1705
+ ],
1706
+ "type": "object"
1707
+ },
1708
+ {
1709
+ "additionalProperties": false,
1710
+ "properties": {
1711
+ "kind": {
1712
+ "const": "text",
1713
+ "type": "string"
1714
+ }
1715
+ },
1716
+ "readOnly": true,
1717
+ "required": [
1718
+ "kind"
1719
+ ],
1720
+ "type": "object"
1721
+ },
1722
+ {
1723
+ "additionalProperties": false,
1724
+ "properties": {
1725
+ "kind": {
1726
+ "const": "structured",
1727
+ "type": "string"
1728
+ }
1729
+ },
1730
+ "readOnly": true,
1731
+ "required": [
1732
+ "kind"
1733
+ ],
1734
+ "type": "object"
1735
+ }
1736
+ ]
1737
+ }
1738
+ },
1739
+ "readOnly": true,
1740
+ "required": [
1741
+ "approval",
1742
+ "elicitation"
1743
+ ],
1744
+ "type": "object"
1745
+ },
1746
+ "sessions": {
1747
+ "additionalProperties": false,
1748
+ "properties": {
1749
+ "branch": {
1750
+ "oneOf": [
1751
+ {
1752
+ "additionalProperties": false,
1753
+ "properties": {
1754
+ "kind": {
1755
+ "const": "unsupported",
1756
+ "type": "string"
1757
+ }
1758
+ },
1759
+ "readOnly": true,
1760
+ "required": [
1761
+ "kind"
1762
+ ],
1763
+ "type": "object"
1764
+ },
1765
+ {
1766
+ "additionalProperties": false,
1767
+ "properties": {
1768
+ "kind": {
1769
+ "const": "through_turn",
1770
+ "type": "string"
1771
+ }
1772
+ },
1773
+ "readOnly": true,
1774
+ "required": [
1775
+ "kind"
1776
+ ],
1777
+ "type": "object"
1778
+ }
1779
+ ]
1780
+ },
1781
+ "create": {
1782
+ "const": true,
1783
+ "type": "boolean"
1784
+ },
1785
+ "resume": {
1786
+ "type": "boolean"
1787
+ }
1788
+ },
1789
+ "readOnly": true,
1790
+ "required": [
1791
+ "create",
1792
+ "resume",
1793
+ "branch"
1794
+ ],
1795
+ "type": "object"
1796
+ },
1797
+ "turns": {
1798
+ "additionalProperties": false,
1799
+ "properties": {
1800
+ "interactionModes": {
1801
+ "items": {
1802
+ "$ref": "#/$defs/__schema0"
1803
+ },
1804
+ "maxItems": 2,
1805
+ "minItems": 1,
1806
+ "readOnly": true,
1807
+ "type": "array",
1808
+ "uniqueItems": true
1809
+ },
1810
+ "interrupt": {
1811
+ "type": "boolean"
1812
+ },
1813
+ "steer": {
1814
+ "oneOf": [
1815
+ {
1816
+ "additionalProperties": false,
1817
+ "properties": {
1818
+ "kind": {
1819
+ "const": "unsupported",
1820
+ "type": "string"
1821
+ }
1822
+ },
1823
+ "readOnly": true,
1824
+ "required": [
1825
+ "kind"
1826
+ ],
1827
+ "type": "object"
1828
+ },
1829
+ {
1830
+ "additionalProperties": false,
1831
+ "properties": {
1832
+ "input": {
1833
+ "$ref": "#/$defs/__schema1"
1834
+ },
1835
+ "kind": {
1836
+ "const": "supported",
1837
+ "type": "string"
1838
+ }
1839
+ },
1840
+ "readOnly": true,
1841
+ "required": [
1842
+ "kind",
1843
+ "input"
1844
+ ],
1845
+ "type": "object"
1846
+ }
1847
+ ]
1848
+ }
1849
+ },
1850
+ "readOnly": true,
1851
+ "required": [
1852
+ "interactionModes",
1853
+ "interrupt",
1854
+ "steer"
1855
+ ],
1856
+ "type": "object"
1857
+ },
1858
+ "versionReporting": {
1859
+ "type": "boolean"
1860
+ }
1861
+ },
1862
+ "readOnly": true,
1863
+ "required": [
1864
+ "protocolVersion",
1865
+ "providerKey",
1866
+ "sessions",
1867
+ "turns",
1868
+ "requests",
1869
+ "input",
1870
+ "output",
1871
+ "configuration",
1872
+ "interactionExtensions",
1873
+ "authentication",
1874
+ "versionReporting"
1875
+ ],
1876
+ "type": "object"
1877
+ }
1878
+ };
1879
+ const AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA = {
1880
+ "contractId": "agenai.agent-protocol.artifact-descriptor",
1881
+ "protocolVersion": 6,
1882
+ "direction": "output",
1883
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
1884
+ "parserInvariants": [],
1885
+ "sha256": "2a4b28b6bd744a37123ed312fb33c950229ebdfe6669de274ef35550a7fa1621",
1886
+ "schema": {
1887
+ "$id": "urn:agenai.agent-protocol.artifact-descriptor:v6:output",
1888
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1889
+ "additionalProperties": false,
1890
+ "properties": {
1891
+ "artifactId": {
1892
+ "maxLength": 256,
1893
+ "minLength": 1,
1894
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1895
+ "type": "string"
1896
+ },
1897
+ "byteSize": {
1898
+ "maximum": 9007199254740991,
1899
+ "minimum": 0,
1900
+ "type": "integer"
1901
+ },
1902
+ "digest": {
1903
+ "additionalProperties": false,
1904
+ "properties": {
1905
+ "algorithm": {
1906
+ "const": "sha256",
1907
+ "type": "string"
1908
+ },
1909
+ "value": {
1910
+ "pattern": "^[a-f0-9]{64}$",
1911
+ "type": "string"
1912
+ }
1913
+ },
1914
+ "readOnly": true,
1915
+ "required": [
1916
+ "algorithm",
1917
+ "value"
1918
+ ],
1919
+ "type": "object"
1920
+ },
1921
+ "displayName": {
1922
+ "maxLength": 200,
1923
+ "minLength": 1,
1924
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
1925
+ "type": "string"
1926
+ },
1927
+ "kind": {
1928
+ "enum": [
1929
+ "plan",
1930
+ "diff",
1931
+ "file",
1932
+ "log",
1933
+ "image",
1934
+ "report",
1935
+ "other"
1936
+ ],
1937
+ "type": "string"
1938
+ },
1939
+ "mediaType": {
1940
+ "maxLength": 160,
1941
+ "minLength": 1,
1942
+ "pattern": "^[a-z0-9!#$&^_.+-]+\\/[a-z0-9!#$&^_.+-]+(?:;[ -~]+)?$",
1943
+ "type": "string"
1944
+ },
1945
+ "summary": {
1946
+ "maxLength": 2e3,
1947
+ "type": "string"
1948
+ }
1949
+ },
1950
+ "readOnly": true,
1951
+ "required": [
1952
+ "artifactId",
1953
+ "kind",
1954
+ "displayName"
1955
+ ],
1956
+ "type": "object"
1957
+ }
1958
+ };
1959
+ const AGENT_EVENT_JSON_SCHEMA = {
1960
+ "contractId": "agenai.agent-protocol.event",
1961
+ "protocolVersion": 6,
1962
+ "direction": "output",
1963
+ "dialect": "https://json-schema.org/draft/2020-12/schema",
1964
+ "parserInvariants": [
1965
+ "event_state_correlation",
1966
+ "file_change_path_ordering_and_uniqueness",
1967
+ "item_detail_identification",
1968
+ "non_empty_provider_refs",
1969
+ "request_semantics",
1970
+ "serialized_bytes",
1971
+ "terminal_error_consistency"
1972
+ ],
1973
+ "sha256": "9dce4047572c25423b2d3701e5722c58dc63a89e764d38c87db886c02342a929",
1974
+ "schema": {
1975
+ "$defs": {
1976
+ "__schema0": {
1977
+ "const": 6,
1978
+ "type": "number"
1979
+ },
1980
+ "__schema1": {
1981
+ "maxLength": 256,
1982
+ "minLength": 1,
1983
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
1984
+ "type": "string"
1985
+ },
1986
+ "__schema10": {
1987
+ "enum": [
1988
+ "pending",
1989
+ "in_progress",
1990
+ "completed",
1991
+ "failed",
1992
+ "canceled",
1993
+ "unknown"
1994
+ ],
1995
+ "type": "string"
1996
+ },
1997
+ "__schema11": {
1998
+ "maxLength": 200,
1999
+ "type": "string"
2000
+ },
2001
+ "__schema12": {
2002
+ "maxLength": 2e3,
2003
+ "type": "string"
2004
+ },
2005
+ "__schema13": {
2006
+ "$ref": "#/$defs/__schema14"
2007
+ },
2008
+ "__schema14": {
2009
+ "maxLength": 2e3,
2010
+ "minLength": 1,
2011
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
2012
+ "type": "string"
2013
+ },
2014
+ "__schema15": {
2015
+ "$ref": "#/$defs/__schema16"
2016
+ },
2017
+ "__schema16": {
2018
+ "maxLength": 500,
2019
+ "minLength": 1,
2020
+ "pattern": "^(?![\\\\/]|[A-Za-z]:[\\\\/])(?!.*(?:^|[\\\\/])\\.\\.(?:[\\\\/]|$))(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
2021
+ "type": "string"
2022
+ },
2023
+ "__schema17": {
2024
+ "maximum": 9007199254740991,
2025
+ "minimum": -9007199254740991,
2026
+ "type": "integer"
2027
+ },
2028
+ "__schema18": {
2029
+ "$ref": "#/$defs/__schema19"
2030
+ },
2031
+ "__schema19": {
2032
+ "maximum": 9007199254740991,
2033
+ "minimum": 0,
2034
+ "type": "integer"
2035
+ },
2036
+ "__schema2": {
2037
+ "additionalProperties": false,
2038
+ "properties": {
2039
+ "conversationId": {
2040
+ "$ref": "#/$defs/__schema3"
2041
+ },
2042
+ "historyAnchor": {
2043
+ "$ref": "#/$defs/__schema3"
2044
+ },
2045
+ "itemId": {
2046
+ "$ref": "#/$defs/__schema3"
2047
+ },
2048
+ "requestId": {
2049
+ "$ref": "#/$defs/__schema3"
2050
+ },
2051
+ "turnId": {
2052
+ "$ref": "#/$defs/__schema3"
2053
+ }
2054
+ },
2055
+ "readOnly": true,
2056
+ "type": "object"
2057
+ },
2058
+ "__schema20": {
2059
+ "const": true,
2060
+ "type": "boolean"
2061
+ },
2062
+ "__schema21": {
2063
+ "items": {
2064
+ "$ref": "#/$defs/__schema22"
2065
+ },
2066
+ "maxItems": 100,
2067
+ "minItems": 1,
2068
+ "readOnly": true,
2069
+ "type": "array"
2070
+ },
2071
+ "__schema22": {
2072
+ "additionalProperties": false,
2073
+ "properties": {
2074
+ "changeKind": {
2075
+ "enum": [
2076
+ "created",
2077
+ "modified",
2078
+ "deleted",
2079
+ "renamed",
2080
+ "unknown"
2081
+ ],
2082
+ "type": "string"
2083
+ },
2084
+ "path": {
2085
+ "$ref": "#/$defs/__schema16"
2086
+ }
2087
+ },
2088
+ "readOnly": true,
2089
+ "required": [
2090
+ "path",
2091
+ "changeKind"
2092
+ ],
2093
+ "type": "object"
2094
+ },
2095
+ "__schema23": {
2096
+ "$ref": "#/$defs/__schema24"
2097
+ },
2098
+ "__schema24": {
2099
+ "maxLength": 160,
2100
+ "minLength": 1,
2101
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
2102
+ "type": "string"
2103
+ },
2104
+ "__schema25": {
2105
+ "$ref": "#/$defs/__schema24"
2106
+ },
2107
+ "__schema26": {
2108
+ "$ref": "#/$defs/__schema14"
2109
+ },
2110
+ "__schema27": {
2111
+ "$ref": "#/$defs/__schema19"
2112
+ },
2113
+ "__schema28": {
2114
+ "$ref": "#/$defs/__schema24"
2115
+ },
2116
+ "__schema29": {
2117
+ "$ref": "#/$defs/__schema14"
2118
+ },
2119
+ "__schema3": {
2120
+ "maxLength": 512,
2121
+ "minLength": 1,
2122
+ "pattern": "^(?![\\s\\S]*[\\u0000-\\u001F\\u007F-\\u009F])\\S(?:[\\s\\S]*\\S)?$",
2123
+ "type": "string"
2124
+ },
2125
+ "__schema30": {
2126
+ "$ref": "#/$defs/__schema19"
2127
+ },
2128
+ "__schema31": {
2129
+ "type": "boolean"
2130
+ },
2131
+ "__schema32": {
2132
+ "$ref": "#/$defs/__schema24"
2133
+ },
2134
+ "__schema33": {
2135
+ "$ref": "#/$defs/__schema14"
2136
+ },
2137
+ "__schema34": {
2138
+ "$ref": "#/$defs/__schema14"
2139
+ },
2140
+ "__schema35": {
2141
+ "$ref": "#/$defs/__schema14"
2142
+ },
2143
+ "__schema36": {
2144
+ "$ref": "#/$defs/__schema16"
2145
+ },
2146
+ "__schema37": {
2147
+ "$ref": "#/$defs/__schema14"
2148
+ },
2149
+ "__schema38": {
2150
+ "maxLength": 4e3,
2151
+ "minLength": 1,
2152
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
2153
+ "type": "string"
2154
+ },
2155
+ "__schema39": {
2156
+ "additionalProperties": false,
2157
+ "properties": {
2158
+ "priority": {
2159
+ "enum": [
2160
+ "low",
2161
+ "medium",
2162
+ "high"
2163
+ ],
2164
+ "type": "string"
2165
+ },
2166
+ "status": {
2167
+ "enum": [
2168
+ "pending",
2169
+ "in_progress",
2170
+ "completed",
2171
+ "canceled"
2172
+ ],
2173
+ "type": "string"
2174
+ },
2175
+ "stepId": {
2176
+ "$ref": "#/$defs/__schema1"
2177
+ },
2178
+ "text": {
2179
+ "maxLength": 4e3,
2180
+ "type": "string"
2181
+ }
2182
+ },
2183
+ "readOnly": true,
2184
+ "required": [
2185
+ "stepId",
2186
+ "text",
2187
+ "status"
2188
+ ],
2189
+ "type": "object"
2190
+ },
2191
+ "__schema4": {
2192
+ "format": "date-time",
2193
+ "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)))$",
2194
+ "type": "string"
2195
+ },
2196
+ "__schema40": {
2197
+ "oneOf": [
2198
+ {
2199
+ "additionalProperties": false,
2200
+ "properties": {
2201
+ "description": {
2202
+ "maxLength": 2e3,
2203
+ "type": "string"
2204
+ },
2205
+ "fieldId": {
2206
+ "$ref": "#/$defs/__schema1"
2207
+ },
2208
+ "kind": {
2209
+ "const": "text",
2210
+ "type": "string"
2211
+ },
2212
+ "label": {
2213
+ "maxLength": 200,
2214
+ "minLength": 1,
2215
+ "type": "string"
2216
+ },
2217
+ "multiline": {
2218
+ "type": "boolean"
2219
+ },
2220
+ "required": {
2221
+ "type": "boolean"
2222
+ }
2223
+ },
2224
+ "readOnly": true,
2225
+ "required": [
2226
+ "fieldId",
2227
+ "label",
2228
+ "required",
2229
+ "kind"
2230
+ ],
2231
+ "type": "object"
2232
+ },
2233
+ {
2234
+ "additionalProperties": false,
2235
+ "properties": {
2236
+ "allowOther": {
2237
+ "type": "boolean"
2238
+ },
2239
+ "description": {
2240
+ "maxLength": 2e3,
2241
+ "type": "string"
2242
+ },
2243
+ "fieldId": {
2244
+ "$ref": "#/$defs/__schema1"
2245
+ },
2246
+ "kind": {
2247
+ "const": "choice",
2248
+ "type": "string"
2249
+ },
2250
+ "label": {
2251
+ "maxLength": 200,
2252
+ "minLength": 1,
2253
+ "type": "string"
2254
+ },
2255
+ "multiple": {
2256
+ "type": "boolean"
2257
+ },
2258
+ "options": {
2259
+ "items": {
2260
+ "$ref": "#/$defs/__schema41"
2261
+ },
2262
+ "maxItems": 100,
2263
+ "minItems": 1,
2264
+ "readOnly": true,
2265
+ "type": "array"
2266
+ },
2267
+ "required": {
2268
+ "type": "boolean"
2269
+ }
2270
+ },
2271
+ "readOnly": true,
2272
+ "required": [
2273
+ "fieldId",
2274
+ "label",
2275
+ "required",
2276
+ "kind",
2277
+ "options",
2278
+ "multiple",
2279
+ "allowOther"
2280
+ ],
2281
+ "type": "object"
2282
+ },
2283
+ {
2284
+ "additionalProperties": false,
2285
+ "properties": {
2286
+ "description": {
2287
+ "maxLength": 2e3,
2288
+ "type": "string"
2289
+ },
2290
+ "fieldId": {
2291
+ "$ref": "#/$defs/__schema1"
2292
+ },
2293
+ "kind": {
2294
+ "const": "boolean",
2295
+ "type": "string"
2296
+ },
2297
+ "label": {
2298
+ "maxLength": 200,
2299
+ "minLength": 1,
2300
+ "type": "string"
2301
+ },
2302
+ "required": {
2303
+ "type": "boolean"
2304
+ }
2305
+ },
2306
+ "readOnly": true,
2307
+ "required": [
2308
+ "fieldId",
2309
+ "label",
2310
+ "required",
2311
+ "kind"
2312
+ ],
2313
+ "type": "object"
2314
+ }
2315
+ ]
2316
+ },
2317
+ "__schema41": {
2318
+ "additionalProperties": false,
2319
+ "properties": {
2320
+ "description": {
2321
+ "maxLength": 2e3,
2322
+ "type": "string"
2323
+ },
2324
+ "label": {
2325
+ "maxLength": 200,
2326
+ "minLength": 1,
2327
+ "type": "string"
2328
+ },
2329
+ "value": {
2330
+ "allOf": [
2331
+ {
2332
+ "$ref": "#/$defs/__schema1"
2333
+ },
2334
+ {
2335
+ "maxLength": 160,
2336
+ "type": "string"
2337
+ }
2338
+ ]
2339
+ }
2340
+ },
2341
+ "readOnly": true,
2342
+ "required": [
2343
+ "value",
2344
+ "label"
2345
+ ],
2346
+ "type": "object"
2347
+ },
2348
+ "__schema5": {
2349
+ "additionalProperties": false,
2350
+ "properties": {
2351
+ "code": {
2352
+ "$ref": "#/$defs/__schema6"
2353
+ },
2354
+ "context": {
2355
+ "$ref": "#/$defs/__schema8"
2356
+ },
2357
+ "message": {
2358
+ "$ref": "#/$defs/__schema7"
2359
+ },
2360
+ "retryable": {
2361
+ "type": "boolean"
2362
+ }
2363
+ },
2364
+ "readOnly": true,
2365
+ "required": [
2366
+ "code",
2367
+ "message",
2368
+ "retryable"
2369
+ ],
2370
+ "type": "object"
2371
+ },
2372
+ "__schema6": {
2373
+ "maxLength": 120,
2374
+ "minLength": 1,
2375
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
2376
+ "type": "string"
2377
+ },
2378
+ "__schema7": {
2379
+ "maxLength": 4e3,
2380
+ "minLength": 1,
2381
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
2382
+ "type": "string"
2383
+ },
2384
+ "__schema8": {
2385
+ "additionalProperties": false,
2386
+ "properties": {
2387
+ "component": {
2388
+ "maxLength": 160,
2389
+ "minLength": 1,
2390
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
2391
+ "type": "string"
2392
+ },
2393
+ "operation": {
2394
+ "maxLength": 160,
2395
+ "minLength": 1,
2396
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
2397
+ "type": "string"
2398
+ },
2399
+ "status": {
2400
+ "maxLength": 160,
2401
+ "minLength": 1,
2402
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
2403
+ "type": "string"
2404
+ }
2405
+ },
2406
+ "readOnly": true,
2407
+ "type": "object"
2408
+ },
2409
+ "__schema9": {
2410
+ "oneOf": [
2411
+ {
2412
+ "additionalProperties": false,
2413
+ "properties": {
2414
+ "itemId": {
2415
+ "$ref": "#/$defs/__schema1"
2416
+ },
2417
+ "itemKind": {
2418
+ "const": "user_message",
2419
+ "type": "string"
2420
+ },
2421
+ "status": {
2422
+ "$ref": "#/$defs/__schema10"
2423
+ },
2424
+ "summary": {
2425
+ "$ref": "#/$defs/__schema12"
2426
+ },
2427
+ "title": {
2428
+ "$ref": "#/$defs/__schema11"
2429
+ }
2430
+ },
2431
+ "readOnly": true,
2432
+ "required": [
2433
+ "itemId",
2434
+ "status",
2435
+ "itemKind"
2436
+ ],
2437
+ "type": "object"
2438
+ },
2439
+ {
2440
+ "additionalProperties": false,
2441
+ "properties": {
2442
+ "itemId": {
2443
+ "$ref": "#/$defs/__schema1"
2444
+ },
2445
+ "itemKind": {
2446
+ "const": "assistant_message",
2447
+ "type": "string"
2448
+ },
2449
+ "status": {
2450
+ "$ref": "#/$defs/__schema10"
2451
+ },
2452
+ "summary": {
2453
+ "$ref": "#/$defs/__schema12"
2454
+ },
2455
+ "title": {
2456
+ "$ref": "#/$defs/__schema11"
2457
+ }
2458
+ },
2459
+ "readOnly": true,
2460
+ "required": [
2461
+ "itemId",
2462
+ "status",
2463
+ "itemKind"
2464
+ ],
2465
+ "type": "object"
2466
+ },
2467
+ {
2468
+ "additionalProperties": false,
2469
+ "properties": {
2470
+ "itemId": {
2471
+ "$ref": "#/$defs/__schema1"
2472
+ },
2473
+ "itemKind": {
2474
+ "const": "reasoning",
2475
+ "type": "string"
2476
+ },
2477
+ "status": {
2478
+ "$ref": "#/$defs/__schema10"
2479
+ },
2480
+ "summary": {
2481
+ "$ref": "#/$defs/__schema12"
2482
+ },
2483
+ "title": {
2484
+ "$ref": "#/$defs/__schema11"
2485
+ }
2486
+ },
2487
+ "readOnly": true,
2488
+ "required": [
2489
+ "itemId",
2490
+ "status",
2491
+ "itemKind"
2492
+ ],
2493
+ "type": "object"
2494
+ },
2495
+ {
2496
+ "additionalProperties": false,
2497
+ "properties": {
2498
+ "itemId": {
2499
+ "$ref": "#/$defs/__schema1"
2500
+ },
2501
+ "itemKind": {
2502
+ "const": "plan",
2503
+ "type": "string"
2504
+ },
2505
+ "status": {
2506
+ "$ref": "#/$defs/__schema10"
2507
+ },
2508
+ "summary": {
2509
+ "$ref": "#/$defs/__schema12"
2510
+ },
2511
+ "title": {
2512
+ "$ref": "#/$defs/__schema11"
2513
+ }
2514
+ },
2515
+ "readOnly": true,
2516
+ "required": [
2517
+ "itemId",
2518
+ "status",
2519
+ "itemKind"
2520
+ ],
2521
+ "type": "object"
2522
+ },
2523
+ {
2524
+ "additionalProperties": false,
2525
+ "properties": {
2526
+ "details": {
2527
+ "additionalProperties": false,
2528
+ "properties": {
2529
+ "commandSummary": {
2530
+ "$ref": "#/$defs/__schema13"
2531
+ },
2532
+ "durationMs": {
2533
+ "$ref": "#/$defs/__schema18"
2534
+ },
2535
+ "exitCode": {
2536
+ "$ref": "#/$defs/__schema17"
2537
+ },
2538
+ "truncated": {
2539
+ "$ref": "#/$defs/__schema20"
2540
+ },
2541
+ "workingPath": {
2542
+ "$ref": "#/$defs/__schema15"
2543
+ }
2544
+ },
2545
+ "readOnly": true,
2546
+ "type": "object"
2547
+ },
2548
+ "itemId": {
2549
+ "$ref": "#/$defs/__schema1"
2550
+ },
2551
+ "itemKind": {
2552
+ "const": "command_execution",
2553
+ "type": "string"
2554
+ },
2555
+ "status": {
2556
+ "$ref": "#/$defs/__schema10"
2557
+ },
2558
+ "summary": {
2559
+ "$ref": "#/$defs/__schema12"
2560
+ },
2561
+ "title": {
2562
+ "$ref": "#/$defs/__schema11"
2563
+ }
2564
+ },
2565
+ "readOnly": true,
2566
+ "required": [
2567
+ "itemId",
2568
+ "status",
2569
+ "itemKind"
2570
+ ],
2571
+ "type": "object"
2572
+ },
2573
+ {
2574
+ "additionalProperties": false,
2575
+ "properties": {
2576
+ "details": {
2577
+ "additionalProperties": false,
2578
+ "properties": {
2579
+ "changes": {
2580
+ "$ref": "#/$defs/__schema21"
2581
+ },
2582
+ "truncated": {
2583
+ "$ref": "#/$defs/__schema20"
2584
+ }
2585
+ },
2586
+ "readOnly": true,
2587
+ "required": [
2588
+ "changes"
2589
+ ],
2590
+ "type": "object"
2591
+ },
2592
+ "itemId": {
2593
+ "$ref": "#/$defs/__schema1"
2594
+ },
2595
+ "itemKind": {
2596
+ "const": "file_change",
2597
+ "type": "string"
2598
+ },
2599
+ "status": {
2600
+ "$ref": "#/$defs/__schema10"
2601
+ },
2602
+ "summary": {
2603
+ "$ref": "#/$defs/__schema12"
2604
+ },
2605
+ "title": {
2606
+ "$ref": "#/$defs/__schema11"
2607
+ }
2608
+ },
2609
+ "readOnly": true,
2610
+ "required": [
2611
+ "itemId",
2612
+ "status",
2613
+ "itemKind"
2614
+ ],
2615
+ "type": "object"
2616
+ },
2617
+ {
2618
+ "additionalProperties": false,
2619
+ "properties": {
2620
+ "details": {
2621
+ "additionalProperties": false,
2622
+ "properties": {
2623
+ "actionSummary": {
2624
+ "$ref": "#/$defs/__schema26"
2625
+ },
2626
+ "durationMs": {
2627
+ "$ref": "#/$defs/__schema27"
2628
+ },
2629
+ "serverName": {
2630
+ "$ref": "#/$defs/__schema23"
2631
+ },
2632
+ "toolName": {
2633
+ "$ref": "#/$defs/__schema25"
2634
+ },
2635
+ "truncated": {
2636
+ "$ref": "#/$defs/__schema20"
2637
+ }
2638
+ },
2639
+ "readOnly": true,
2640
+ "type": "object"
2641
+ },
2642
+ "itemId": {
2643
+ "$ref": "#/$defs/__schema1"
2644
+ },
2645
+ "itemKind": {
2646
+ "const": "mcp_tool_call",
2647
+ "type": "string"
2648
+ },
2649
+ "status": {
2650
+ "$ref": "#/$defs/__schema10"
2651
+ },
2652
+ "summary": {
2653
+ "$ref": "#/$defs/__schema12"
2654
+ },
2655
+ "title": {
2656
+ "$ref": "#/$defs/__schema11"
2657
+ }
2658
+ },
2659
+ "readOnly": true,
2660
+ "required": [
2661
+ "itemId",
2662
+ "status",
2663
+ "itemKind"
2664
+ ],
2665
+ "type": "object"
2666
+ },
2667
+ {
2668
+ "additionalProperties": false,
2669
+ "properties": {
2670
+ "details": {
2671
+ "additionalProperties": false,
2672
+ "properties": {
2673
+ "actionSummary": {
2674
+ "$ref": "#/$defs/__schema29"
2675
+ },
2676
+ "durationMs": {
2677
+ "$ref": "#/$defs/__schema30"
2678
+ },
2679
+ "success": {
2680
+ "$ref": "#/$defs/__schema31"
2681
+ },
2682
+ "toolName": {
2683
+ "$ref": "#/$defs/__schema28"
2684
+ },
2685
+ "truncated": {
2686
+ "$ref": "#/$defs/__schema20"
2687
+ }
2688
+ },
2689
+ "readOnly": true,
2690
+ "type": "object"
2691
+ },
2692
+ "itemId": {
2693
+ "$ref": "#/$defs/__schema1"
2694
+ },
2695
+ "itemKind": {
2696
+ "const": "dynamic_tool_call",
2697
+ "type": "string"
2698
+ },
2699
+ "status": {
2700
+ "$ref": "#/$defs/__schema10"
2701
+ },
2702
+ "summary": {
2703
+ "$ref": "#/$defs/__schema12"
2704
+ },
2705
+ "title": {
2706
+ "$ref": "#/$defs/__schema11"
2707
+ }
2708
+ },
2709
+ "readOnly": true,
2710
+ "required": [
2711
+ "itemId",
2712
+ "status",
2713
+ "itemKind"
2714
+ ],
2715
+ "type": "object"
2716
+ },
2717
+ {
2718
+ "additionalProperties": false,
2719
+ "properties": {
2720
+ "details": {
2721
+ "additionalProperties": false,
2722
+ "properties": {
2723
+ "actionSummary": {
2724
+ "$ref": "#/$defs/__schema33"
2725
+ },
2726
+ "toolName": {
2727
+ "$ref": "#/$defs/__schema32"
2728
+ },
2729
+ "truncated": {
2730
+ "$ref": "#/$defs/__schema20"
2731
+ }
2732
+ },
2733
+ "readOnly": true,
2734
+ "type": "object"
2735
+ },
2736
+ "itemId": {
2737
+ "$ref": "#/$defs/__schema1"
2738
+ },
2739
+ "itemKind": {
2740
+ "const": "collaboration_tool_call",
2741
+ "type": "string"
2742
+ },
2743
+ "status": {
2744
+ "$ref": "#/$defs/__schema10"
2745
+ },
2746
+ "summary": {
2747
+ "$ref": "#/$defs/__schema12"
2748
+ },
2749
+ "title": {
2750
+ "$ref": "#/$defs/__schema11"
2751
+ }
2752
+ },
2753
+ "readOnly": true,
2754
+ "required": [
2755
+ "itemId",
2756
+ "status",
2757
+ "itemKind"
2758
+ ],
2759
+ "type": "object"
2760
+ },
2761
+ {
2762
+ "additionalProperties": false,
2763
+ "properties": {
2764
+ "details": {
2765
+ "additionalProperties": false,
2766
+ "properties": {
2767
+ "actionSummary": {
2768
+ "$ref": "#/$defs/__schema35"
2769
+ },
2770
+ "querySummary": {
2771
+ "$ref": "#/$defs/__schema34"
2772
+ },
2773
+ "truncated": {
2774
+ "$ref": "#/$defs/__schema20"
2775
+ }
2776
+ },
2777
+ "readOnly": true,
2778
+ "type": "object"
2779
+ },
2780
+ "itemId": {
2781
+ "$ref": "#/$defs/__schema1"
2782
+ },
2783
+ "itemKind": {
2784
+ "const": "web_search",
2785
+ "type": "string"
2786
+ },
2787
+ "status": {
2788
+ "$ref": "#/$defs/__schema10"
2789
+ },
2790
+ "summary": {
2791
+ "$ref": "#/$defs/__schema12"
2792
+ },
2793
+ "title": {
2794
+ "$ref": "#/$defs/__schema11"
2795
+ }
2796
+ },
2797
+ "readOnly": true,
2798
+ "required": [
2799
+ "itemId",
2800
+ "status",
2801
+ "itemKind"
2802
+ ],
2803
+ "type": "object"
2804
+ },
2805
+ {
2806
+ "additionalProperties": false,
2807
+ "properties": {
2808
+ "details": {
2809
+ "additionalProperties": false,
2810
+ "properties": {
2811
+ "actionSummary": {
2812
+ "$ref": "#/$defs/__schema14"
2813
+ },
2814
+ "truncated": {
2815
+ "$ref": "#/$defs/__schema20"
2816
+ }
2817
+ },
2818
+ "readOnly": true,
2819
+ "required": [
2820
+ "actionSummary"
2821
+ ],
2822
+ "type": "object"
2823
+ },
2824
+ "itemId": {
2825
+ "$ref": "#/$defs/__schema1"
2826
+ },
2827
+ "itemKind": {
2828
+ "const": "browser_action",
2829
+ "type": "string"
2830
+ },
2831
+ "status": {
2832
+ "$ref": "#/$defs/__schema10"
2833
+ },
2834
+ "summary": {
2835
+ "$ref": "#/$defs/__schema12"
2836
+ },
2837
+ "title": {
2838
+ "$ref": "#/$defs/__schema11"
2839
+ }
2840
+ },
2841
+ "readOnly": true,
2842
+ "required": [
2843
+ "itemId",
2844
+ "status",
2845
+ "itemKind"
2846
+ ],
2847
+ "type": "object"
2848
+ },
2849
+ {
2850
+ "additionalProperties": false,
2851
+ "properties": {
2852
+ "details": {
2853
+ "additionalProperties": false,
2854
+ "properties": {
2855
+ "actionSummary": {
2856
+ "$ref": "#/$defs/__schema14"
2857
+ },
2858
+ "truncated": {
2859
+ "$ref": "#/$defs/__schema20"
2860
+ }
2861
+ },
2862
+ "readOnly": true,
2863
+ "required": [
2864
+ "actionSummary"
2865
+ ],
2866
+ "type": "object"
2867
+ },
2868
+ "itemId": {
2869
+ "$ref": "#/$defs/__schema1"
2870
+ },
2871
+ "itemKind": {
2872
+ "const": "computer_action",
2873
+ "type": "string"
2874
+ },
2875
+ "status": {
2876
+ "$ref": "#/$defs/__schema10"
2877
+ },
2878
+ "summary": {
2879
+ "$ref": "#/$defs/__schema12"
2880
+ },
2881
+ "title": {
2882
+ "$ref": "#/$defs/__schema11"
2883
+ }
2884
+ },
2885
+ "readOnly": true,
2886
+ "required": [
2887
+ "itemId",
2888
+ "status",
2889
+ "itemKind"
2890
+ ],
2891
+ "type": "object"
2892
+ },
2893
+ {
2894
+ "additionalProperties": false,
2895
+ "properties": {
2896
+ "details": {
2897
+ "additionalProperties": false,
2898
+ "properties": {
2899
+ "actionSummary": {
2900
+ "$ref": "#/$defs/__schema37"
2901
+ },
2902
+ "filePath": {
2903
+ "$ref": "#/$defs/__schema36"
2904
+ },
2905
+ "truncated": {
2906
+ "$ref": "#/$defs/__schema20"
2907
+ }
2908
+ },
2909
+ "readOnly": true,
2910
+ "type": "object"
2911
+ },
2912
+ "itemId": {
2913
+ "$ref": "#/$defs/__schema1"
2914
+ },
2915
+ "itemKind": {
2916
+ "const": "image_view",
2917
+ "type": "string"
2918
+ },
2919
+ "status": {
2920
+ "$ref": "#/$defs/__schema10"
2921
+ },
2922
+ "summary": {
2923
+ "$ref": "#/$defs/__schema12"
2924
+ },
2925
+ "title": {
2926
+ "$ref": "#/$defs/__schema11"
2927
+ }
2928
+ },
2929
+ "readOnly": true,
2930
+ "required": [
2931
+ "itemId",
2932
+ "status",
2933
+ "itemKind"
2934
+ ],
2935
+ "type": "object"
2936
+ },
2937
+ {
2938
+ "additionalProperties": false,
2939
+ "properties": {
2940
+ "details": {
2941
+ "oneOf": [
2942
+ {
2943
+ "additionalProperties": false,
2944
+ "properties": {
2945
+ "phase": {
2946
+ "const": "entered",
2947
+ "type": "string"
2948
+ },
2949
+ "target": {
2950
+ "$ref": "#/$defs/__schema38"
2951
+ },
2952
+ "truncated": {
2953
+ "$ref": "#/$defs/__schema20"
2954
+ }
2955
+ },
2956
+ "readOnly": true,
2957
+ "required": [
2958
+ "phase",
2959
+ "target"
2960
+ ],
2961
+ "type": "object"
2962
+ },
2963
+ {
2964
+ "additionalProperties": false,
2965
+ "properties": {
2966
+ "phase": {
2967
+ "const": "exited",
2968
+ "type": "string"
2969
+ },
2970
+ "report": {
2971
+ "$ref": "#/$defs/__schema38"
2972
+ },
2973
+ "truncated": {
2974
+ "$ref": "#/$defs/__schema20"
2975
+ }
2976
+ },
2977
+ "readOnly": true,
2978
+ "required": [
2979
+ "phase",
2980
+ "report"
2981
+ ],
2982
+ "type": "object"
2983
+ }
2984
+ ]
2985
+ },
2986
+ "itemId": {
2987
+ "$ref": "#/$defs/__schema1"
2988
+ },
2989
+ "itemKind": {
2990
+ "const": "review",
2991
+ "type": "string"
2992
+ },
2993
+ "status": {
2994
+ "$ref": "#/$defs/__schema10"
2995
+ },
2996
+ "summary": {
2997
+ "$ref": "#/$defs/__schema12"
2998
+ },
2999
+ "title": {
3000
+ "$ref": "#/$defs/__schema11"
3001
+ }
3002
+ },
3003
+ "readOnly": true,
3004
+ "required": [
3005
+ "itemId",
3006
+ "status",
3007
+ "itemKind",
3008
+ "details"
3009
+ ],
3010
+ "type": "object"
3011
+ },
3012
+ {
3013
+ "additionalProperties": false,
3014
+ "properties": {
3015
+ "itemId": {
3016
+ "$ref": "#/$defs/__schema1"
3017
+ },
3018
+ "itemKind": {
3019
+ "const": "context_compaction",
3020
+ "type": "string"
3021
+ },
3022
+ "status": {
3023
+ "$ref": "#/$defs/__schema10"
3024
+ },
3025
+ "summary": {
3026
+ "$ref": "#/$defs/__schema12"
3027
+ },
3028
+ "title": {
3029
+ "$ref": "#/$defs/__schema11"
3030
+ }
3031
+ },
3032
+ "readOnly": true,
3033
+ "required": [
3034
+ "itemId",
3035
+ "status",
3036
+ "itemKind"
3037
+ ],
3038
+ "type": "object"
3039
+ },
3040
+ {
3041
+ "additionalProperties": false,
3042
+ "properties": {
3043
+ "itemId": {
3044
+ "$ref": "#/$defs/__schema1"
3045
+ },
3046
+ "itemKind": {
3047
+ "const": "unknown",
3048
+ "type": "string"
3049
+ },
3050
+ "status": {
3051
+ "$ref": "#/$defs/__schema10"
3052
+ },
3053
+ "summary": {
3054
+ "$ref": "#/$defs/__schema12"
3055
+ },
3056
+ "title": {
3057
+ "$ref": "#/$defs/__schema11"
3058
+ }
3059
+ },
3060
+ "readOnly": true,
3061
+ "required": [
3062
+ "itemId",
3063
+ "status",
3064
+ "itemKind"
3065
+ ],
3066
+ "type": "object"
3067
+ }
3068
+ ]
3069
+ }
3070
+ },
3071
+ "$id": "urn:agenai.agent-protocol.event:v6:output",
3072
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3073
+ "oneOf": [
3074
+ {
3075
+ "additionalProperties": false,
3076
+ "properties": {
3077
+ "occurredAt": {
3078
+ "$ref": "#/$defs/__schema4"
3079
+ },
3080
+ "payload": {
3081
+ "additionalProperties": false,
3082
+ "properties": {
3083
+ "message": {
3084
+ "maxLength": 4e3,
3085
+ "type": "string"
3086
+ }
3087
+ },
3088
+ "readOnly": true,
3089
+ "type": "object"
3090
+ },
3091
+ "protocolVersion": {
3092
+ "$ref": "#/$defs/__schema0"
3093
+ },
3094
+ "providerRefs": {
3095
+ "$ref": "#/$defs/__schema2"
3096
+ },
3097
+ "sessionId": {
3098
+ "$ref": "#/$defs/__schema1"
3099
+ },
3100
+ "turnId": {
3101
+ "$ref": "#/$defs/__schema1"
3102
+ },
3103
+ "type": {
3104
+ "const": "turn.started",
3105
+ "type": "string"
3106
+ }
3107
+ },
3108
+ "readOnly": true,
3109
+ "required": [
3110
+ "protocolVersion",
3111
+ "sessionId",
3112
+ "occurredAt",
3113
+ "type",
3114
+ "turnId",
3115
+ "payload"
3116
+ ],
3117
+ "type": "object"
3118
+ },
3119
+ {
3120
+ "additionalProperties": false,
3121
+ "properties": {
3122
+ "occurredAt": {
3123
+ "$ref": "#/$defs/__schema4"
3124
+ },
3125
+ "payload": {
3126
+ "additionalProperties": false,
3127
+ "properties": {
3128
+ "message": {
3129
+ "maxLength": 4e3,
3130
+ "type": "string"
3131
+ },
3132
+ "requestId": {
3133
+ "$ref": "#/$defs/__schema1"
3134
+ },
3135
+ "state": {
3136
+ "enum": [
3137
+ "running",
3138
+ "waiting_for_request"
3139
+ ],
3140
+ "type": "string"
3141
+ }
3142
+ },
3143
+ "readOnly": true,
3144
+ "required": [
3145
+ "state"
3146
+ ],
3147
+ "type": "object"
3148
+ },
3149
+ "protocolVersion": {
3150
+ "$ref": "#/$defs/__schema0"
3151
+ },
3152
+ "providerRefs": {
3153
+ "$ref": "#/$defs/__schema2"
3154
+ },
3155
+ "sessionId": {
3156
+ "$ref": "#/$defs/__schema1"
3157
+ },
3158
+ "turnId": {
3159
+ "$ref": "#/$defs/__schema1"
3160
+ },
3161
+ "type": {
3162
+ "const": "turn.state_changed",
3163
+ "type": "string"
3164
+ }
3165
+ },
3166
+ "readOnly": true,
3167
+ "required": [
3168
+ "protocolVersion",
3169
+ "sessionId",
3170
+ "occurredAt",
3171
+ "type",
3172
+ "turnId",
3173
+ "payload"
3174
+ ],
3175
+ "type": "object"
3176
+ },
3177
+ {
3178
+ "additionalProperties": false,
3179
+ "properties": {
3180
+ "occurredAt": {
3181
+ "$ref": "#/$defs/__schema4"
3182
+ },
3183
+ "payload": {
3184
+ "additionalProperties": false,
3185
+ "properties": {
3186
+ "error": {
3187
+ "$ref": "#/$defs/__schema5"
3188
+ },
3189
+ "outcome": {
3190
+ "enum": [
3191
+ "completed",
3192
+ "failed",
3193
+ "canceled",
3194
+ "expired"
3195
+ ],
3196
+ "type": "string"
3197
+ },
3198
+ "reason": {
3199
+ "maxLength": 2e3,
3200
+ "type": "string"
3201
+ }
3202
+ },
3203
+ "readOnly": true,
3204
+ "required": [
3205
+ "outcome"
3206
+ ],
3207
+ "type": "object"
3208
+ },
3209
+ "protocolVersion": {
3210
+ "$ref": "#/$defs/__schema0"
3211
+ },
3212
+ "providerRefs": {
3213
+ "$ref": "#/$defs/__schema2"
3214
+ },
3215
+ "sessionId": {
3216
+ "$ref": "#/$defs/__schema1"
3217
+ },
3218
+ "turnId": {
3219
+ "$ref": "#/$defs/__schema1"
3220
+ },
3221
+ "type": {
3222
+ "const": "turn.completed",
3223
+ "type": "string"
3224
+ }
3225
+ },
3226
+ "readOnly": true,
3227
+ "required": [
3228
+ "protocolVersion",
3229
+ "sessionId",
3230
+ "occurredAt",
3231
+ "type",
3232
+ "turnId",
3233
+ "payload"
3234
+ ],
3235
+ "type": "object"
3236
+ },
3237
+ {
3238
+ "additionalProperties": false,
3239
+ "properties": {
3240
+ "occurredAt": {
3241
+ "$ref": "#/$defs/__schema4"
3242
+ },
3243
+ "payload": {
3244
+ "$ref": "#/$defs/__schema9"
3245
+ },
3246
+ "protocolVersion": {
3247
+ "$ref": "#/$defs/__schema0"
3248
+ },
3249
+ "providerRefs": {
3250
+ "$ref": "#/$defs/__schema2"
3251
+ },
3252
+ "sessionId": {
3253
+ "$ref": "#/$defs/__schema1"
3254
+ },
3255
+ "turnId": {
3256
+ "$ref": "#/$defs/__schema1"
3257
+ },
3258
+ "type": {
3259
+ "const": "item.started",
3260
+ "type": "string"
3261
+ }
3262
+ },
3263
+ "readOnly": true,
3264
+ "required": [
3265
+ "protocolVersion",
3266
+ "sessionId",
3267
+ "occurredAt",
3268
+ "type",
3269
+ "turnId",
3270
+ "payload"
3271
+ ],
3272
+ "type": "object"
3273
+ },
3274
+ {
3275
+ "additionalProperties": false,
3276
+ "properties": {
3277
+ "occurredAt": {
3278
+ "$ref": "#/$defs/__schema4"
3279
+ },
3280
+ "payload": {
3281
+ "$ref": "#/$defs/__schema9"
3282
+ },
3283
+ "protocolVersion": {
3284
+ "$ref": "#/$defs/__schema0"
3285
+ },
3286
+ "providerRefs": {
3287
+ "$ref": "#/$defs/__schema2"
3288
+ },
3289
+ "sessionId": {
3290
+ "$ref": "#/$defs/__schema1"
3291
+ },
3292
+ "turnId": {
3293
+ "$ref": "#/$defs/__schema1"
3294
+ },
3295
+ "type": {
3296
+ "const": "item.updated",
3297
+ "type": "string"
3298
+ }
3299
+ },
3300
+ "readOnly": true,
3301
+ "required": [
3302
+ "protocolVersion",
3303
+ "sessionId",
3304
+ "occurredAt",
3305
+ "type",
3306
+ "turnId",
3307
+ "payload"
3308
+ ],
3309
+ "type": "object"
3310
+ },
3311
+ {
3312
+ "additionalProperties": false,
3313
+ "properties": {
3314
+ "occurredAt": {
3315
+ "$ref": "#/$defs/__schema4"
3316
+ },
3317
+ "payload": {
3318
+ "$ref": "#/$defs/__schema9"
3319
+ },
3320
+ "protocolVersion": {
3321
+ "$ref": "#/$defs/__schema0"
3322
+ },
3323
+ "providerRefs": {
3324
+ "$ref": "#/$defs/__schema2"
3325
+ },
3326
+ "sessionId": {
3327
+ "$ref": "#/$defs/__schema1"
3328
+ },
3329
+ "turnId": {
3330
+ "$ref": "#/$defs/__schema1"
3331
+ },
3332
+ "type": {
3333
+ "const": "item.completed",
3334
+ "type": "string"
3335
+ }
3336
+ },
3337
+ "readOnly": true,
3338
+ "required": [
3339
+ "protocolVersion",
3340
+ "sessionId",
3341
+ "occurredAt",
3342
+ "type",
3343
+ "turnId",
3344
+ "payload"
3345
+ ],
3346
+ "type": "object"
3347
+ },
3348
+ {
3349
+ "additionalProperties": false,
3350
+ "properties": {
3351
+ "occurredAt": {
3352
+ "$ref": "#/$defs/__schema4"
3353
+ },
3354
+ "payload": {
3355
+ "additionalProperties": false,
3356
+ "properties": {
3357
+ "delta": {
3358
+ "maxLength": 4e3,
3359
+ "type": "string"
3360
+ },
3361
+ "itemId": {
3362
+ "$ref": "#/$defs/__schema1"
3363
+ },
3364
+ "streamKind": {
3365
+ "enum": [
3366
+ "assistant_text",
3367
+ "reasoning_text",
3368
+ "reasoning_summary",
3369
+ "plan_text",
3370
+ "command_output",
3371
+ "file_change_output",
3372
+ "unknown"
3373
+ ],
3374
+ "type": "string"
3375
+ }
3376
+ },
3377
+ "readOnly": true,
3378
+ "required": [
3379
+ "itemId",
3380
+ "streamKind",
3381
+ "delta"
3382
+ ],
3383
+ "type": "object"
3384
+ },
3385
+ "protocolVersion": {
3386
+ "$ref": "#/$defs/__schema0"
3387
+ },
3388
+ "providerRefs": {
3389
+ "$ref": "#/$defs/__schema2"
3390
+ },
3391
+ "sessionId": {
3392
+ "$ref": "#/$defs/__schema1"
3393
+ },
3394
+ "turnId": {
3395
+ "$ref": "#/$defs/__schema1"
3396
+ },
3397
+ "type": {
3398
+ "const": "content.delta",
3399
+ "type": "string"
3400
+ }
3401
+ },
3402
+ "readOnly": true,
3403
+ "required": [
3404
+ "protocolVersion",
3405
+ "sessionId",
3406
+ "occurredAt",
3407
+ "type",
3408
+ "turnId",
3409
+ "payload"
3410
+ ],
3411
+ "type": "object"
3412
+ },
3413
+ {
3414
+ "additionalProperties": false,
3415
+ "properties": {
3416
+ "occurredAt": {
3417
+ "$ref": "#/$defs/__schema4"
3418
+ },
3419
+ "payload": {
3420
+ "additionalProperties": false,
3421
+ "properties": {
3422
+ "explanation": {
3423
+ "maxLength": 2e3,
3424
+ "type": "string"
3425
+ },
3426
+ "steps": {
3427
+ "items": {
3428
+ "$ref": "#/$defs/__schema39"
3429
+ },
3430
+ "maxItems": 100,
3431
+ "readOnly": true,
3432
+ "type": "array"
3433
+ }
3434
+ },
3435
+ "readOnly": true,
3436
+ "required": [
3437
+ "steps"
3438
+ ],
3439
+ "type": "object"
3440
+ },
3441
+ "protocolVersion": {
3442
+ "$ref": "#/$defs/__schema0"
3443
+ },
3444
+ "providerRefs": {
3445
+ "$ref": "#/$defs/__schema2"
3446
+ },
3447
+ "sessionId": {
3448
+ "$ref": "#/$defs/__schema1"
3449
+ },
3450
+ "turnId": {
3451
+ "$ref": "#/$defs/__schema1"
3452
+ },
3453
+ "type": {
3454
+ "const": "turn.plan.updated",
3455
+ "type": "string"
3456
+ }
3457
+ },
3458
+ "readOnly": true,
3459
+ "required": [
3460
+ "protocolVersion",
3461
+ "sessionId",
3462
+ "occurredAt",
3463
+ "type",
3464
+ "turnId",
3465
+ "payload"
3466
+ ],
3467
+ "type": "object"
3468
+ },
3469
+ {
3470
+ "additionalProperties": false,
3471
+ "properties": {
3472
+ "occurredAt": {
3473
+ "$ref": "#/$defs/__schema4"
3474
+ },
3475
+ "payload": {
3476
+ "additionalProperties": false,
3477
+ "properties": {
3478
+ "artifactId": {
3479
+ "$ref": "#/$defs/__schema1"
3480
+ },
3481
+ "requestId": {
3482
+ "$ref": "#/$defs/__schema1"
3483
+ }
3484
+ },
3485
+ "readOnly": true,
3486
+ "required": [
3487
+ "artifactId",
3488
+ "requestId"
3489
+ ],
3490
+ "type": "object"
3491
+ },
3492
+ "protocolVersion": {
3493
+ "$ref": "#/$defs/__schema0"
3494
+ },
3495
+ "providerRefs": {
3496
+ "$ref": "#/$defs/__schema2"
3497
+ },
3498
+ "sessionId": {
3499
+ "$ref": "#/$defs/__schema1"
3500
+ },
3501
+ "turnId": {
3502
+ "$ref": "#/$defs/__schema1"
3503
+ },
3504
+ "type": {
3505
+ "const": "turn.plan.proposed",
3506
+ "type": "string"
3507
+ }
3508
+ },
3509
+ "readOnly": true,
3510
+ "required": [
3511
+ "protocolVersion",
3512
+ "sessionId",
3513
+ "occurredAt",
3514
+ "type",
3515
+ "turnId",
3516
+ "payload"
3517
+ ],
3518
+ "type": "object"
3519
+ },
3520
+ {
3521
+ "additionalProperties": false,
3522
+ "properties": {
3523
+ "occurredAt": {
3524
+ "$ref": "#/$defs/__schema4"
3525
+ },
3526
+ "payload": {
3527
+ "additionalProperties": false,
3528
+ "properties": {
3529
+ "additions": {
3530
+ "maximum": 9007199254740991,
3531
+ "minimum": 0,
3532
+ "type": "integer"
3533
+ },
3534
+ "binary": {
3535
+ "type": "boolean"
3536
+ },
3537
+ "byteSize": {
3538
+ "maximum": 9007199254740991,
3539
+ "minimum": 0,
3540
+ "type": "integer"
3541
+ },
3542
+ "deletions": {
3543
+ "maximum": 9007199254740991,
3544
+ "minimum": 0,
3545
+ "type": "integer"
3546
+ },
3547
+ "fileCount": {
3548
+ "maximum": 9007199254740991,
3549
+ "minimum": 0,
3550
+ "type": "integer"
3551
+ },
3552
+ "malformed": {
3553
+ "type": "boolean"
3554
+ },
3555
+ "summary": {
3556
+ "maxLength": 2e3,
3557
+ "type": "string"
3558
+ },
3559
+ "truncated": {
3560
+ "type": "boolean"
3561
+ }
3562
+ },
3563
+ "readOnly": true,
3564
+ "required": [
3565
+ "summary",
3566
+ "fileCount",
3567
+ "byteSize"
3568
+ ],
3569
+ "type": "object"
3570
+ },
3571
+ "protocolVersion": {
3572
+ "$ref": "#/$defs/__schema0"
3573
+ },
3574
+ "providerRefs": {
3575
+ "$ref": "#/$defs/__schema2"
3576
+ },
3577
+ "sessionId": {
3578
+ "$ref": "#/$defs/__schema1"
3579
+ },
3580
+ "turnId": {
3581
+ "$ref": "#/$defs/__schema1"
3582
+ },
3583
+ "type": {
3584
+ "const": "turn.diff.updated",
3585
+ "type": "string"
3586
+ }
3587
+ },
3588
+ "readOnly": true,
3589
+ "required": [
3590
+ "protocolVersion",
3591
+ "sessionId",
3592
+ "occurredAt",
3593
+ "type",
3594
+ "turnId",
3595
+ "payload"
3596
+ ],
3597
+ "type": "object"
3598
+ },
3599
+ {
3600
+ "additionalProperties": false,
3601
+ "properties": {
3602
+ "occurredAt": {
3603
+ "$ref": "#/$defs/__schema4"
3604
+ },
3605
+ "payload": {
3606
+ "additionalProperties": false,
3607
+ "properties": {
3608
+ "request": {
3609
+ "oneOf": [
3610
+ {
3611
+ "additionalProperties": false,
3612
+ "properties": {
3613
+ "expiresAt": {
3614
+ "$ref": "#/$defs/__schema4"
3615
+ },
3616
+ "prompt": {
3617
+ "maxLength": 4e3,
3618
+ "minLength": 1,
3619
+ "type": "string"
3620
+ },
3621
+ "requestId": {
3622
+ "$ref": "#/$defs/__schema1"
3623
+ },
3624
+ "requestKind": {
3625
+ "const": "approval",
3626
+ "type": "string"
3627
+ },
3628
+ "subject": {
3629
+ "oneOf": [
3630
+ {
3631
+ "additionalProperties": false,
3632
+ "properties": {
3633
+ "artifactId": {
3634
+ "$ref": "#/$defs/__schema1"
3635
+ },
3636
+ "description": {
3637
+ "maxLength": 2e3,
3638
+ "type": "string"
3639
+ },
3640
+ "kind": {
3641
+ "const": "plan",
3642
+ "type": "string"
3643
+ },
3644
+ "title": {
3645
+ "maxLength": 200,
3646
+ "minLength": 1,
3647
+ "type": "string"
3648
+ }
3649
+ },
3650
+ "readOnly": true,
3651
+ "required": [
3652
+ "kind",
3653
+ "title",
3654
+ "artifactId"
3655
+ ],
3656
+ "type": "object"
3657
+ },
3658
+ {
3659
+ "additionalProperties": false,
3660
+ "properties": {
3661
+ "description": {
3662
+ "maxLength": 2e3,
3663
+ "type": "string"
3664
+ },
3665
+ "kind": {
3666
+ "enum": [
3667
+ "command",
3668
+ "file_change",
3669
+ "tool",
3670
+ "other"
3671
+ ],
3672
+ "type": "string"
3673
+ },
3674
+ "title": {
3675
+ "maxLength": 200,
3676
+ "minLength": 1,
3677
+ "type": "string"
3678
+ }
3679
+ },
3680
+ "readOnly": true,
3681
+ "required": [
3682
+ "kind",
3683
+ "title"
3684
+ ],
3685
+ "type": "object"
3686
+ }
3687
+ ]
3688
+ }
3689
+ },
3690
+ "readOnly": true,
3691
+ "required": [
3692
+ "requestKind",
3693
+ "requestId",
3694
+ "prompt",
3695
+ "subject"
3696
+ ],
3697
+ "type": "object"
3698
+ },
3699
+ {
3700
+ "additionalProperties": false,
3701
+ "properties": {
3702
+ "expiresAt": {
3703
+ "$ref": "#/$defs/__schema4"
3704
+ },
3705
+ "fields": {
3706
+ "items": {
3707
+ "$ref": "#/$defs/__schema40"
3708
+ },
3709
+ "maxItems": 100,
3710
+ "minItems": 1,
3711
+ "readOnly": true,
3712
+ "type": "array"
3713
+ },
3714
+ "prompt": {
3715
+ "maxLength": 4e3,
3716
+ "minLength": 1,
3717
+ "type": "string"
3718
+ },
3719
+ "requestId": {
3720
+ "$ref": "#/$defs/__schema1"
3721
+ },
3722
+ "requestKind": {
3723
+ "const": "elicitation",
3724
+ "type": "string"
3725
+ }
3726
+ },
3727
+ "readOnly": true,
3728
+ "required": [
3729
+ "requestKind",
3730
+ "requestId",
3731
+ "prompt",
3732
+ "fields"
3733
+ ],
3734
+ "type": "object"
3735
+ }
3736
+ ]
3737
+ }
3738
+ },
3739
+ "readOnly": true,
3740
+ "required": [
3741
+ "request"
3742
+ ],
3743
+ "type": "object"
3744
+ },
3745
+ "protocolVersion": {
3746
+ "$ref": "#/$defs/__schema0"
3747
+ },
3748
+ "providerRefs": {
3749
+ "$ref": "#/$defs/__schema2"
3750
+ },
3751
+ "sessionId": {
3752
+ "$ref": "#/$defs/__schema1"
3753
+ },
3754
+ "turnId": {
3755
+ "$ref": "#/$defs/__schema1"
3756
+ },
3757
+ "type": {
3758
+ "const": "request.opened",
3759
+ "type": "string"
3760
+ }
3761
+ },
3762
+ "readOnly": true,
3763
+ "required": [
3764
+ "protocolVersion",
3765
+ "sessionId",
3766
+ "occurredAt",
3767
+ "type",
3768
+ "turnId",
3769
+ "payload"
3770
+ ],
3771
+ "type": "object"
3772
+ },
3773
+ {
3774
+ "additionalProperties": false,
3775
+ "properties": {
3776
+ "occurredAt": {
3777
+ "$ref": "#/$defs/__schema4"
3778
+ },
3779
+ "payload": {
3780
+ "additionalProperties": false,
3781
+ "properties": {
3782
+ "current": {
3783
+ "maximum": 9007199254740991,
3784
+ "minimum": 0,
3785
+ "type": "integer"
3786
+ },
3787
+ "kind": {
3788
+ "enum": [
3789
+ "task",
3790
+ "hook",
3791
+ "tool",
3792
+ "unknown"
3793
+ ],
3794
+ "type": "string"
3795
+ },
3796
+ "message": {
3797
+ "maxLength": 4e3,
3798
+ "type": "string"
3799
+ },
3800
+ "phase": {
3801
+ "enum": [
3802
+ "started",
3803
+ "updated",
3804
+ "completed"
3805
+ ],
3806
+ "type": "string"
3807
+ },
3808
+ "progressId": {
3809
+ "$ref": "#/$defs/__schema1"
3810
+ },
3811
+ "title": {
3812
+ "maxLength": 200,
3813
+ "type": "string"
3814
+ },
3815
+ "total": {
3816
+ "maximum": 9007199254740991,
3817
+ "minimum": 0,
3818
+ "type": "integer"
3819
+ }
3820
+ },
3821
+ "readOnly": true,
3822
+ "required": [
3823
+ "progressId",
3824
+ "kind",
3825
+ "phase"
3826
+ ],
3827
+ "type": "object"
3828
+ },
3829
+ "protocolVersion": {
3830
+ "$ref": "#/$defs/__schema0"
3831
+ },
3832
+ "providerRefs": {
3833
+ "$ref": "#/$defs/__schema2"
3834
+ },
3835
+ "sessionId": {
3836
+ "$ref": "#/$defs/__schema1"
3837
+ },
3838
+ "turnId": {
3839
+ "$ref": "#/$defs/__schema1"
3840
+ },
3841
+ "type": {
3842
+ "const": "progress.updated",
3843
+ "type": "string"
3844
+ }
3845
+ },
3846
+ "readOnly": true,
3847
+ "required": [
3848
+ "protocolVersion",
3849
+ "sessionId",
3850
+ "occurredAt",
3851
+ "type",
3852
+ "turnId",
3853
+ "payload"
3854
+ ],
3855
+ "type": "object"
3856
+ },
3857
+ {
3858
+ "additionalProperties": false,
3859
+ "properties": {
3860
+ "occurredAt": {
3861
+ "$ref": "#/$defs/__schema4"
3862
+ },
3863
+ "payload": {
3864
+ "additionalProperties": false,
3865
+ "properties": {
3866
+ "artifact": {
3867
+ "additionalProperties": false,
3868
+ "properties": {
3869
+ "artifactId": {
3870
+ "$ref": "#/$defs/__schema1"
3871
+ },
3872
+ "byteSize": {
3873
+ "maximum": 9007199254740991,
3874
+ "minimum": 0,
3875
+ "type": "integer"
3876
+ },
3877
+ "digest": {
3878
+ "additionalProperties": false,
3879
+ "properties": {
3880
+ "algorithm": {
3881
+ "const": "sha256",
3882
+ "type": "string"
3883
+ },
3884
+ "value": {
3885
+ "pattern": "^[a-f0-9]{64}$",
3886
+ "type": "string"
3887
+ }
3888
+ },
3889
+ "readOnly": true,
3890
+ "required": [
3891
+ "algorithm",
3892
+ "value"
3893
+ ],
3894
+ "type": "object"
3895
+ },
3896
+ "displayName": {
3897
+ "maxLength": 200,
3898
+ "minLength": 1,
3899
+ "pattern": "^(?:\\S|\\S[\\s\\S]*\\S)$",
3900
+ "type": "string"
3901
+ },
3902
+ "kind": {
3903
+ "enum": [
3904
+ "plan",
3905
+ "diff",
3906
+ "file",
3907
+ "log",
3908
+ "image",
3909
+ "report",
3910
+ "other"
3911
+ ],
3912
+ "type": "string"
3913
+ },
3914
+ "mediaType": {
3915
+ "maxLength": 160,
3916
+ "minLength": 1,
3917
+ "pattern": "^[a-z0-9!#$&^_.+-]+\\/[a-z0-9!#$&^_.+-]+(?:;[ -~]+)?$",
3918
+ "type": "string"
3919
+ },
3920
+ "summary": {
3921
+ "maxLength": 2e3,
3922
+ "type": "string"
3923
+ }
3924
+ },
3925
+ "readOnly": true,
3926
+ "required": [
3927
+ "artifactId",
3928
+ "kind",
3929
+ "displayName"
3930
+ ],
3931
+ "type": "object"
3932
+ }
3933
+ },
3934
+ "readOnly": true,
3935
+ "required": [
3936
+ "artifact"
3937
+ ],
3938
+ "type": "object"
3939
+ },
3940
+ "protocolVersion": {
3941
+ "$ref": "#/$defs/__schema0"
3942
+ },
3943
+ "providerRefs": {
3944
+ "$ref": "#/$defs/__schema2"
3945
+ },
3946
+ "sessionId": {
3947
+ "$ref": "#/$defs/__schema1"
3948
+ },
3949
+ "turnId": {
3950
+ "$ref": "#/$defs/__schema1"
3951
+ },
3952
+ "type": {
3953
+ "const": "artifact.referenced",
3954
+ "type": "string"
3955
+ }
3956
+ },
3957
+ "readOnly": true,
3958
+ "required": [
3959
+ "protocolVersion",
3960
+ "sessionId",
3961
+ "occurredAt",
3962
+ "type",
3963
+ "payload"
3964
+ ],
3965
+ "type": "object"
3966
+ },
3967
+ {
3968
+ "additionalProperties": false,
3969
+ "properties": {
3970
+ "occurredAt": {
3971
+ "$ref": "#/$defs/__schema4"
3972
+ },
3973
+ "payload": {
3974
+ "additionalProperties": false,
3975
+ "properties": {
3976
+ "code": {
3977
+ "$ref": "#/$defs/__schema6"
3978
+ },
3979
+ "context": {
3980
+ "$ref": "#/$defs/__schema8"
3981
+ },
3982
+ "message": {
3983
+ "$ref": "#/$defs/__schema7"
3984
+ },
3985
+ "retryable": {
3986
+ "type": "boolean"
3987
+ }
3988
+ },
3989
+ "readOnly": true,
3990
+ "required": [
3991
+ "code",
3992
+ "message"
3993
+ ],
3994
+ "type": "object"
3995
+ },
3996
+ "protocolVersion": {
3997
+ "$ref": "#/$defs/__schema0"
3998
+ },
3999
+ "providerRefs": {
4000
+ "$ref": "#/$defs/__schema2"
4001
+ },
4002
+ "sessionId": {
4003
+ "$ref": "#/$defs/__schema1"
4004
+ },
4005
+ "turnId": {
4006
+ "$ref": "#/$defs/__schema1"
4007
+ },
4008
+ "type": {
4009
+ "const": "runtime.warning",
4010
+ "type": "string"
4011
+ }
4012
+ },
4013
+ "readOnly": true,
4014
+ "required": [
4015
+ "protocolVersion",
4016
+ "sessionId",
4017
+ "occurredAt",
4018
+ "type",
4019
+ "payload"
4020
+ ],
4021
+ "type": "object"
4022
+ },
4023
+ {
4024
+ "additionalProperties": false,
4025
+ "properties": {
4026
+ "occurredAt": {
4027
+ "$ref": "#/$defs/__schema4"
4028
+ },
4029
+ "payload": {
4030
+ "additionalProperties": false,
4031
+ "properties": {
4032
+ "error": {
4033
+ "$ref": "#/$defs/__schema5"
4034
+ }
4035
+ },
4036
+ "readOnly": true,
4037
+ "required": [
4038
+ "error"
4039
+ ],
4040
+ "type": "object"
4041
+ },
4042
+ "protocolVersion": {
4043
+ "$ref": "#/$defs/__schema0"
4044
+ },
4045
+ "providerRefs": {
4046
+ "$ref": "#/$defs/__schema2"
4047
+ },
4048
+ "sessionId": {
4049
+ "$ref": "#/$defs/__schema1"
4050
+ },
4051
+ "turnId": {
4052
+ "$ref": "#/$defs/__schema1"
4053
+ },
4054
+ "type": {
4055
+ "const": "runtime.error",
4056
+ "type": "string"
4057
+ }
4058
+ },
4059
+ "readOnly": true,
4060
+ "required": [
4061
+ "protocolVersion",
4062
+ "sessionId",
4063
+ "occurredAt",
4064
+ "type",
4065
+ "payload"
4066
+ ],
4067
+ "type": "object"
4068
+ },
4069
+ {
4070
+ "additionalProperties": false,
4071
+ "properties": {
4072
+ "occurredAt": {
4073
+ "$ref": "#/$defs/__schema4"
4074
+ },
4075
+ "payload": {
4076
+ "additionalProperties": false,
4077
+ "properties": {
4078
+ "code": {
4079
+ "$ref": "#/$defs/__schema6"
4080
+ },
4081
+ "context": {
4082
+ "$ref": "#/$defs/__schema8"
4083
+ },
4084
+ "message": {
4085
+ "$ref": "#/$defs/__schema7"
4086
+ }
4087
+ },
4088
+ "readOnly": true,
4089
+ "required": [
4090
+ "code",
4091
+ "message"
4092
+ ],
4093
+ "type": "object"
4094
+ },
4095
+ "protocolVersion": {
4096
+ "$ref": "#/$defs/__schema0"
4097
+ },
4098
+ "providerRefs": {
4099
+ "$ref": "#/$defs/__schema2"
4100
+ },
4101
+ "sessionId": {
4102
+ "$ref": "#/$defs/__schema1"
4103
+ },
4104
+ "turnId": {
4105
+ "$ref": "#/$defs/__schema1"
4106
+ },
4107
+ "type": {
4108
+ "const": "provider.diagnostic",
4109
+ "type": "string"
4110
+ }
4111
+ },
4112
+ "readOnly": true,
4113
+ "required": [
4114
+ "protocolVersion",
4115
+ "sessionId",
4116
+ "occurredAt",
4117
+ "type",
4118
+ "payload"
4119
+ ],
4120
+ "type": "object"
4121
+ }
4122
+ ]
4123
+ }
4124
+ };
4125
+ const AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY = [
4126
+ AGENT_SESSION_BINDING_JSON_SCHEMA,
4127
+ AGENT_SESSION_CONFIGURATION_JSON_SCHEMA,
4128
+ AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA,
4129
+ AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA,
4130
+ AGENT_TURN_RUN_INPUT_JSON_SCHEMA,
4131
+ AGENT_REQUEST_JSON_SCHEMA,
4132
+ AGENT_REQUEST_RESOLUTION_JSON_SCHEMA,
4133
+ AGENT_CAPABILITIES_JSON_SCHEMA,
4134
+ AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA,
4135
+ AGENT_EVENT_JSON_SCHEMA
4136
+ ];
4137
+ export {
4138
+ AGENT_ARTIFACT_DESCRIPTOR_JSON_SCHEMA,
4139
+ AGENT_CAPABILITIES_JSON_SCHEMA,
4140
+ AGENT_EVENT_JSON_SCHEMA,
4141
+ AGENT_PROTOCOL_JSON_SCHEMA_DIALECT,
4142
+ AGENT_PROTOCOL_JSON_SCHEMA_REGISTRY,
4143
+ AGENT_REQUEST_JSON_SCHEMA,
4144
+ AGENT_REQUEST_RESOLUTION_JSON_SCHEMA,
4145
+ AGENT_SESSION_BINDING_JSON_SCHEMA,
4146
+ AGENT_SESSION_CONFIGURATION_JSON_SCHEMA,
4147
+ AGENT_SESSION_OPEN_INPUT_JSON_SCHEMA,
4148
+ AGENT_TURN_INPUT_CONTENT_JSON_SCHEMA,
4149
+ AGENT_TURN_RUN_INPUT_JSON_SCHEMA
4150
+ };