@nylorun/core 0.19.0-beta → 0.21.0-beta

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 (98) hide show
  1. package/CHANGELOG.md +191 -0
  2. package/README.md +2 -2
  3. package/dist/compatibility.d.ts +148 -32
  4. package/dist/compatibility.js +154 -33
  5. package/dist/contracts.d.ts +2714 -495
  6. package/dist/contracts.js +1395 -493
  7. package/dist/define.d.ts +15 -12
  8. package/dist/define.js +11 -7
  9. package/dist/definition/approval.d.ts +16 -0
  10. package/dist/definition/approval.js +33 -0
  11. package/dist/definition/assemble.d.ts +6 -10
  12. package/dist/definition/assemble.js +48 -105
  13. package/dist/definition/bind-agent.d.ts +3 -4
  14. package/dist/definition/bind-agent.js +12 -30
  15. package/dist/definition/binding.d.ts +2 -2
  16. package/dist/definition/bound.d.ts +10 -10
  17. package/dist/definition/builder.d.ts +16 -20
  18. package/dist/definition/builder.js +29 -81
  19. package/dist/definition/code-tools.d.ts +4 -4
  20. package/dist/definition/code-tools.js +7 -22
  21. package/dist/definition/declaration.d.ts +4 -7
  22. package/dist/definition/declaration.js +29 -99
  23. package/dist/definition/{tools-capability.d.ts → deferred-tools.d.ts} +3 -13
  24. package/dist/definition/{tools-capability.js → deferred-tools.js} +2 -18
  25. package/dist/definition/delegate.d.ts +2 -4
  26. package/dist/definition/delegate.js +8 -10
  27. package/dist/definition/flow/compile.js +0 -2
  28. package/dist/definition/from.d.ts +7 -4
  29. package/dist/definition/from.js +72 -117
  30. package/dist/definition/helpers.d.ts +0 -7
  31. package/dist/definition/helpers.js +0 -5
  32. package/dist/definition/http-tool.d.ts +7 -4
  33. package/dist/definition/http-tool.js +6 -10
  34. package/dist/definition/implementations.d.ts +6 -8
  35. package/dist/definition/manifest.d.ts +11 -5
  36. package/dist/definition/manifest.js +27 -26
  37. package/dist/definition/mcp.d.ts +1 -52
  38. package/dist/definition/mcp.js +11 -60
  39. package/dist/definition/media-reference.d.ts +23 -0
  40. package/dist/definition/media-reference.js +26 -0
  41. package/dist/definition/removed.d.ts +3 -10
  42. package/dist/definition/removed.js +10 -17
  43. package/dist/definition/runtime-manifest.d.ts +30 -0
  44. package/dist/definition/runtime-manifest.js +132 -0
  45. package/dist/definition/sandbox-tools.d.ts +1 -1
  46. package/dist/definition/sandbox-tools.js +1 -1
  47. package/dist/definition/skill-tools.d.ts +13 -7
  48. package/dist/definition/skill-tools.js +23 -10
  49. package/dist/definition/trace.d.ts +18 -0
  50. package/dist/definition/trace.js +42 -0
  51. package/dist/definition/variant.d.ts +5 -4
  52. package/dist/definition/variant.js +23 -55
  53. package/dist/definition/workflow/runnable.js +1 -1
  54. package/dist/errors.d.ts +1 -1
  55. package/dist/harness-api/entries.d.ts +242 -0
  56. package/dist/harness-api/entries.js +118 -0
  57. package/dist/harness-api/gates.d.ts +167 -0
  58. package/dist/harness-api/gates.js +117 -0
  59. package/dist/harness-api/harness-api.schema.json +4975 -0
  60. package/dist/harness-api/index.d.ts +19 -3
  61. package/dist/harness-api/index.js +16 -3
  62. package/dist/harness-api/json-schema.d.ts +12 -0
  63. package/dist/harness-api/json-schema.js +61 -0
  64. package/dist/harness-api/mcp.d.ts +57 -0
  65. package/dist/harness-api/mcp.js +39 -0
  66. package/dist/harness-api/messages.d.ts +11 -5
  67. package/dist/harness-api/messages.js +5 -3
  68. package/dist/harness-api/schema.d.ts +346 -36
  69. package/dist/harness-api/schema.js +143 -22
  70. package/dist/harness-api/transport.d.ts +55 -0
  71. package/dist/harness-api/transport.js +61 -0
  72. package/dist/index.d.ts +1 -1
  73. package/dist/manifest-schemas.d.ts +6 -0
  74. package/dist/manifest-schemas.js +34 -0
  75. package/dist/schemas/agent-manifest.schema.json +897 -0
  76. package/dist/schemas/environment-manifest.schema.json +329 -0
  77. package/dist/types/agent.d.ts +1 -1
  78. package/dist/types/manifest.d.ts +48 -28
  79. package/dist/types/model.d.ts +2 -2
  80. package/dist/types/observe.d.ts +8 -20
  81. package/dist/types/part.d.ts +25 -0
  82. package/dist/types/tool.d.ts +1 -1
  83. package/dist/types/transcript.d.ts +5 -0
  84. package/dist/utils/definition-files.d.ts +11 -6
  85. package/dist/utils/definition-files.js +19 -9
  86. package/dist/utils/harness-id.d.ts +9 -0
  87. package/dist/utils/harness-id.js +11 -0
  88. package/dist/utils/runtime-tools.d.ts +19 -0
  89. package/dist/utils/runtime-tools.js +30 -0
  90. package/dist/utils/sandbox.d.ts +1 -1
  91. package/dist/utils/sandbox.js +1 -1
  92. package/package.json +11 -4
  93. package/dist/definition/capability.d.ts +0 -43
  94. package/dist/definition/capability.js +0 -82
  95. package/dist/definition/sandbox-capability.d.ts +0 -44
  96. package/dist/definition/sandbox-capability.js +0 -139
  97. package/dist/types/middleware.d.ts +0 -94
  98. /package/dist/types/{middleware.js → part.js} +0 -0
@@ -0,0 +1,4975 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://docs.nylorun.com/schemas/harness-api/v3.json",
4
+ "title": "Nylorun Harness API 3",
5
+ "$defs": {
6
+ "EffectIntent": {
7
+ "type": "object",
8
+ "properties": {
9
+ "effectId": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 512
13
+ },
14
+ "sessionId": {
15
+ "type": "string",
16
+ "minLength": 1,
17
+ "maxLength": 512
18
+ },
19
+ "turnId": {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "maxLength": 512
23
+ },
24
+ "agentId": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "maxLength": 512
28
+ },
29
+ "manifestHash": {
30
+ "type": "string"
31
+ },
32
+ "kind": {
33
+ "type": "string",
34
+ "enum": [
35
+ "model",
36
+ "tool",
37
+ "delegation",
38
+ "agent"
39
+ ]
40
+ },
41
+ "agent": {
42
+ "type": "object",
43
+ "properties": {
44
+ "id": {
45
+ "type": "string"
46
+ },
47
+ "path": {
48
+ "type": "string"
49
+ },
50
+ "delegationId": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "required": [
55
+ "id",
56
+ "path"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "toolName": {
61
+ "type": "string"
62
+ },
63
+ "path": {
64
+ "type": "string"
65
+ },
66
+ "key": {
67
+ "type": "string"
68
+ },
69
+ "iterations": {
70
+ "type": "string"
71
+ },
72
+ "input": {},
73
+ "context": {
74
+ "type": "object",
75
+ "propertyNames": {
76
+ "type": "string"
77
+ },
78
+ "additionalProperties": {}
79
+ }
80
+ },
81
+ "required": [
82
+ "effectId",
83
+ "sessionId",
84
+ "turnId",
85
+ "agentId",
86
+ "manifestHash",
87
+ "kind",
88
+ "context"
89
+ ],
90
+ "additionalProperties": false
91
+ },
92
+ "Frame": {
93
+ "anyOf": [
94
+ {
95
+ "type": "object",
96
+ "properties": {
97
+ "t": {
98
+ "type": "string",
99
+ "const": "req"
100
+ },
101
+ "id": {
102
+ "type": "integer",
103
+ "exclusiveMinimum": 0,
104
+ "maximum": 9007199254740991
105
+ },
106
+ "m": {
107
+ "type": "string",
108
+ "minLength": 1
109
+ },
110
+ "p": {}
111
+ },
112
+ "required": [
113
+ "t",
114
+ "id",
115
+ "m",
116
+ "p"
117
+ ],
118
+ "additionalProperties": false
119
+ },
120
+ {
121
+ "type": "object",
122
+ "properties": {
123
+ "t": {
124
+ "type": "string",
125
+ "const": "res"
126
+ },
127
+ "id": {
128
+ "type": "integer",
129
+ "exclusiveMinimum": 0,
130
+ "maximum": 9007199254740991
131
+ },
132
+ "ok": {
133
+ "type": "boolean",
134
+ "const": true
135
+ },
136
+ "r": {}
137
+ },
138
+ "required": [
139
+ "t",
140
+ "id",
141
+ "ok",
142
+ "r"
143
+ ],
144
+ "additionalProperties": false
145
+ },
146
+ {
147
+ "type": "object",
148
+ "properties": {
149
+ "t": {
150
+ "type": "string",
151
+ "const": "res"
152
+ },
153
+ "id": {
154
+ "type": "integer",
155
+ "exclusiveMinimum": 0,
156
+ "maximum": 9007199254740991
157
+ },
158
+ "ok": {
159
+ "type": "boolean",
160
+ "const": false
161
+ },
162
+ "e": {
163
+ "type": "object",
164
+ "properties": {
165
+ "code": {
166
+ "type": "string",
167
+ "enum": [
168
+ "run_not_held",
169
+ "turn_cancelled",
170
+ "ownership_lost",
171
+ "effect_drift",
172
+ "invalid",
173
+ "unavailable",
174
+ "internal"
175
+ ]
176
+ },
177
+ "message": {
178
+ "type": "string"
179
+ }
180
+ },
181
+ "required": [
182
+ "code",
183
+ "message"
184
+ ],
185
+ "additionalProperties": false
186
+ }
187
+ },
188
+ "required": [
189
+ "t",
190
+ "id",
191
+ "ok",
192
+ "e"
193
+ ],
194
+ "additionalProperties": false
195
+ },
196
+ {
197
+ "type": "object",
198
+ "properties": {
199
+ "t": {
200
+ "type": "string",
201
+ "const": "msg"
202
+ },
203
+ "m": {
204
+ "type": "string",
205
+ "minLength": 1
206
+ },
207
+ "p": {}
208
+ },
209
+ "required": [
210
+ "t",
211
+ "m",
212
+ "p"
213
+ ],
214
+ "additionalProperties": false
215
+ },
216
+ {
217
+ "type": "object",
218
+ "properties": {
219
+ "t": {
220
+ "type": "string",
221
+ "const": "abort"
222
+ },
223
+ "id": {
224
+ "type": "integer",
225
+ "exclusiveMinimum": 0,
226
+ "maximum": 9007199254740991
227
+ }
228
+ },
229
+ "required": [
230
+ "t",
231
+ "id"
232
+ ],
233
+ "additionalProperties": false
234
+ },
235
+ {
236
+ "type": "object",
237
+ "properties": {
238
+ "t": {
239
+ "type": "string",
240
+ "const": "ping"
241
+ }
242
+ },
243
+ "required": [
244
+ "t"
245
+ ],
246
+ "additionalProperties": false
247
+ }
248
+ ]
249
+ },
250
+ "HarnessCheckpoint": {
251
+ "type": "object",
252
+ "properties": {
253
+ "sessionId": {
254
+ "type": "string",
255
+ "minLength": 1,
256
+ "maxLength": 512
257
+ },
258
+ "turnId": {
259
+ "type": "string",
260
+ "minLength": 1,
261
+ "maxLength": 512
262
+ },
263
+ "segment": {
264
+ "type": "integer",
265
+ "minimum": 0,
266
+ "maximum": 9007199254740991
267
+ },
268
+ "manifestHash": {
269
+ "type": "string"
270
+ },
271
+ "input": {},
272
+ "state": {}
273
+ },
274
+ "required": [
275
+ "sessionId",
276
+ "turnId",
277
+ "segment",
278
+ "manifestHash"
279
+ ],
280
+ "additionalProperties": {}
281
+ },
282
+ "IntentAnswer": {
283
+ "anyOf": [
284
+ {
285
+ "type": "object",
286
+ "properties": {
287
+ "status": {
288
+ "type": "string",
289
+ "const": "completed"
290
+ },
291
+ "outcome": {
292
+ "type": "object",
293
+ "properties": {
294
+ "value": {},
295
+ "statePatch": {
296
+ "type": "object",
297
+ "propertyNames": {
298
+ "type": "string"
299
+ },
300
+ "additionalProperties": {}
301
+ }
302
+ },
303
+ "required": [
304
+ "value"
305
+ ],
306
+ "additionalProperties": false
307
+ }
308
+ },
309
+ "required": [
310
+ "status",
311
+ "outcome"
312
+ ],
313
+ "additionalProperties": false
314
+ },
315
+ {
316
+ "type": "object",
317
+ "properties": {
318
+ "status": {
319
+ "type": "string",
320
+ "enum": [
321
+ "pending",
322
+ "uncertain"
323
+ ]
324
+ }
325
+ },
326
+ "required": [
327
+ "status"
328
+ ],
329
+ "additionalProperties": false
330
+ },
331
+ {
332
+ "type": "object",
333
+ "properties": {
334
+ "status": {
335
+ "type": "string",
336
+ "const": "execute"
337
+ },
338
+ "rejoin": {
339
+ "type": "boolean",
340
+ "const": true
341
+ },
342
+ "traceparent": {
343
+ "type": "string",
344
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$"
345
+ }
346
+ },
347
+ "required": [
348
+ "status"
349
+ ],
350
+ "additionalProperties": false
351
+ }
352
+ ]
353
+ },
354
+ "NativeTool": {
355
+ "type": "object",
356
+ "properties": {
357
+ "name": {
358
+ "type": "string",
359
+ "pattern": "^[A-Za-z_][A-Za-z0-9_-]{0,63}$"
360
+ },
361
+ "description": {
362
+ "type": "string",
363
+ "maxLength": 4096
364
+ },
365
+ "inputSchema": {
366
+ "type": "object",
367
+ "propertyNames": {
368
+ "type": "string"
369
+ },
370
+ "additionalProperties": {}
371
+ }
372
+ },
373
+ "required": [
374
+ "name",
375
+ "inputSchema"
376
+ ],
377
+ "additionalProperties": false
378
+ },
379
+ "OutcomeAnswer": {
380
+ "anyOf": [
381
+ {
382
+ "type": "object",
383
+ "properties": {
384
+ "status": {
385
+ "type": "string",
386
+ "const": "completed"
387
+ },
388
+ "outcome": {
389
+ "type": "object",
390
+ "properties": {
391
+ "value": {},
392
+ "statePatch": {
393
+ "type": "object",
394
+ "propertyNames": {
395
+ "type": "string"
396
+ },
397
+ "additionalProperties": {}
398
+ }
399
+ },
400
+ "required": [
401
+ "value"
402
+ ],
403
+ "additionalProperties": false
404
+ }
405
+ },
406
+ "required": [
407
+ "status",
408
+ "outcome"
409
+ ],
410
+ "additionalProperties": false
411
+ },
412
+ {
413
+ "type": "object",
414
+ "properties": {
415
+ "status": {
416
+ "type": "string",
417
+ "const": "uncertain"
418
+ }
419
+ },
420
+ "required": [
421
+ "status"
422
+ ],
423
+ "additionalProperties": false
424
+ }
425
+ ]
426
+ },
427
+ "RecordedOutcome": {
428
+ "type": "object",
429
+ "properties": {
430
+ "effectId": {
431
+ "type": "string",
432
+ "minLength": 1,
433
+ "maxLength": 512
434
+ },
435
+ "requestHash": {
436
+ "type": "string"
437
+ },
438
+ "outcome": {
439
+ "type": "object",
440
+ "properties": {
441
+ "value": {},
442
+ "statePatch": {
443
+ "type": "object",
444
+ "propertyNames": {
445
+ "type": "string"
446
+ },
447
+ "additionalProperties": {}
448
+ }
449
+ },
450
+ "required": [
451
+ "value"
452
+ ],
453
+ "additionalProperties": false
454
+ }
455
+ },
456
+ "required": [
457
+ "effectId",
458
+ "requestHash",
459
+ "outcome"
460
+ ],
461
+ "additionalProperties": false
462
+ },
463
+ "RunGrant": {
464
+ "type": "object",
465
+ "properties": {
466
+ "runId": {
467
+ "type": "string",
468
+ "minLength": 1,
469
+ "maxLength": 512
470
+ },
471
+ "sessionId": {
472
+ "type": "string",
473
+ "minLength": 1,
474
+ "maxLength": 512
475
+ },
476
+ "turnId": {
477
+ "type": "string",
478
+ "minLength": 1,
479
+ "maxLength": 512
480
+ },
481
+ "epoch": {
482
+ "type": "integer",
483
+ "minimum": -9007199254740991,
484
+ "maximum": 9007199254740991
485
+ },
486
+ "token": {
487
+ "type": "string"
488
+ },
489
+ "tokenExpiresAt": {
490
+ "type": "string"
491
+ }
492
+ },
493
+ "required": [
494
+ "runId",
495
+ "sessionId",
496
+ "turnId",
497
+ "epoch"
498
+ ],
499
+ "additionalProperties": false
500
+ },
501
+ "RunRouting": {
502
+ "type": "object",
503
+ "properties": {
504
+ "rootManifest": {
505
+ "type": "object",
506
+ "propertyNames": {
507
+ "type": "string"
508
+ },
509
+ "additionalProperties": {}
510
+ },
511
+ "mcpSnapshot": {
512
+ "type": "object",
513
+ "properties": {
514
+ "snapshotSchemaVersion": {
515
+ "type": "number",
516
+ "const": 1
517
+ },
518
+ "manifestHash": {
519
+ "type": "string"
520
+ },
521
+ "mcpTools": {
522
+ "readOnly": true,
523
+ "type": "array",
524
+ "items": {
525
+ "type": "object",
526
+ "properties": {
527
+ "agentId": {
528
+ "type": "string"
529
+ },
530
+ "serverName": {
531
+ "type": "string"
532
+ },
533
+ "serverToolName": {
534
+ "type": "string"
535
+ },
536
+ "name": {
537
+ "type": "string"
538
+ },
539
+ "description": {
540
+ "type": "string"
541
+ },
542
+ "inputSchema": {
543
+ "type": "object",
544
+ "propertyNames": {
545
+ "type": "string"
546
+ },
547
+ "additionalProperties": {}
548
+ },
549
+ "outputSchema": {
550
+ "type": "object",
551
+ "propertyNames": {
552
+ "type": "string"
553
+ },
554
+ "additionalProperties": {}
555
+ },
556
+ "annotations": {
557
+ "type": "object",
558
+ "properties": {
559
+ "readOnlyHint": {
560
+ "type": "boolean"
561
+ },
562
+ "idempotentHint": {
563
+ "type": "boolean"
564
+ }
565
+ }
566
+ },
567
+ "deferred": {
568
+ "type": "boolean",
569
+ "const": true
570
+ }
571
+ },
572
+ "required": [
573
+ "serverName",
574
+ "serverToolName",
575
+ "name",
576
+ "inputSchema"
577
+ ]
578
+ }
579
+ },
580
+ "servers": {
581
+ "readOnly": true,
582
+ "type": "array",
583
+ "items": {
584
+ "type": "object",
585
+ "properties": {
586
+ "agentId": {
587
+ "type": "string"
588
+ },
589
+ "serverName": {
590
+ "type": "string"
591
+ },
592
+ "instructions": {
593
+ "type": "string"
594
+ }
595
+ },
596
+ "required": [
597
+ "serverName",
598
+ "instructions"
599
+ ]
600
+ }
601
+ }
602
+ },
603
+ "required": [
604
+ "snapshotSchemaVersion",
605
+ "manifestHash",
606
+ "mcpTools"
607
+ ]
608
+ },
609
+ "sandbox": {
610
+ "type": "object",
611
+ "properties": {
612
+ "ownerId": {
613
+ "type": "string",
614
+ "minLength": 1,
615
+ "maxLength": 512
616
+ },
617
+ "environmentId": {
618
+ "type": "string",
619
+ "minLength": 1,
620
+ "maxLength": 512
621
+ },
622
+ "spec": {},
623
+ "environment": {
624
+ "type": "object",
625
+ "propertyNames": {
626
+ "type": "string"
627
+ },
628
+ "additionalProperties": {
629
+ "type": "string"
630
+ }
631
+ }
632
+ },
633
+ "required": [
634
+ "ownerId"
635
+ ],
636
+ "additionalProperties": false
637
+ }
638
+ },
639
+ "required": [
640
+ "rootManifest"
641
+ ],
642
+ "additionalProperties": false
643
+ },
644
+ "TraceContext": {
645
+ "type": "object",
646
+ "properties": {
647
+ "traceparent": {
648
+ "type": "string",
649
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$"
650
+ },
651
+ "tracestate": {
652
+ "type": "string",
653
+ "maxLength": 512
654
+ }
655
+ },
656
+ "required": [
657
+ "traceparent"
658
+ ],
659
+ "additionalProperties": false
660
+ },
661
+ "TranscriptUpdate": {
662
+ "type": "object",
663
+ "properties": {
664
+ "keep": {
665
+ "type": "integer",
666
+ "minimum": 0,
667
+ "maximum": 9007199254740991
668
+ },
669
+ "entries": {
670
+ "type": "array",
671
+ "items": {}
672
+ },
673
+ "length": {
674
+ "type": "integer",
675
+ "minimum": 0,
676
+ "maximum": 9007199254740991
677
+ }
678
+ },
679
+ "required": [
680
+ "keep",
681
+ "entries",
682
+ "length"
683
+ ],
684
+ "additionalProperties": false
685
+ },
686
+ "TurnOutput": {
687
+ "type": "object",
688
+ "properties": {
689
+ "runId": {
690
+ "type": "string",
691
+ "minLength": 1,
692
+ "maxLength": 512
693
+ },
694
+ "status": {
695
+ "type": "string",
696
+ "enum": [
697
+ "completed",
698
+ "paused",
699
+ "yielded",
700
+ "waiting",
701
+ "uncertain",
702
+ "failed",
703
+ "cancelled"
704
+ ]
705
+ },
706
+ "state": {},
707
+ "output": {},
708
+ "pending": {},
709
+ "error": {},
710
+ "effectIds": {
711
+ "readOnly": true,
712
+ "type": "array",
713
+ "items": {
714
+ "type": "string"
715
+ }
716
+ },
717
+ "cancelEffectIds": {
718
+ "readOnly": true,
719
+ "type": "array",
720
+ "items": {
721
+ "type": "string"
722
+ }
723
+ },
724
+ "transcript": {
725
+ "readOnly": true,
726
+ "type": "array",
727
+ "items": {
728
+ "type": "object",
729
+ "properties": {
730
+ "keep": {
731
+ "type": "integer",
732
+ "minimum": 0,
733
+ "maximum": 9007199254740991
734
+ },
735
+ "entries": {
736
+ "type": "array",
737
+ "items": {}
738
+ },
739
+ "length": {
740
+ "type": "integer",
741
+ "minimum": 0,
742
+ "maximum": 9007199254740991
743
+ }
744
+ },
745
+ "required": [
746
+ "keep",
747
+ "entries",
748
+ "length"
749
+ ],
750
+ "additionalProperties": false
751
+ }
752
+ },
753
+ "thrown": {
754
+ "type": "object",
755
+ "properties": {
756
+ "code": {
757
+ "type": "string"
758
+ },
759
+ "message": {
760
+ "type": "string"
761
+ }
762
+ },
763
+ "required": [
764
+ "message"
765
+ ],
766
+ "additionalProperties": false
767
+ }
768
+ },
769
+ "required": [
770
+ "runId"
771
+ ],
772
+ "additionalProperties": false
773
+ },
774
+ "TurnStart": {
775
+ "type": "object",
776
+ "properties": {
777
+ "type": {
778
+ "type": "string",
779
+ "enum": [
780
+ "turn.start",
781
+ "approval.answer"
782
+ ]
783
+ },
784
+ "engine": {
785
+ "type": "string",
786
+ "enum": [
787
+ "agent",
788
+ "flow"
789
+ ]
790
+ },
791
+ "manifest": {
792
+ "type": "object",
793
+ "propertyNames": {
794
+ "type": "string"
795
+ },
796
+ "additionalProperties": {}
797
+ },
798
+ "checkpoint": {
799
+ "type": "object",
800
+ "propertyNames": {
801
+ "type": "string"
802
+ },
803
+ "additionalProperties": {}
804
+ },
805
+ "sessionTools": {
806
+ "readOnly": true,
807
+ "type": "array",
808
+ "items": {}
809
+ },
810
+ "outcomes": {
811
+ "readOnly": true,
812
+ "type": "array",
813
+ "items": {
814
+ "type": "object",
815
+ "properties": {
816
+ "effectId": {
817
+ "type": "string",
818
+ "minLength": 1,
819
+ "maxLength": 512
820
+ },
821
+ "requestHash": {
822
+ "type": "string"
823
+ },
824
+ "outcome": {
825
+ "type": "object",
826
+ "properties": {
827
+ "value": {},
828
+ "statePatch": {
829
+ "type": "object",
830
+ "propertyNames": {
831
+ "type": "string"
832
+ },
833
+ "additionalProperties": {}
834
+ }
835
+ },
836
+ "required": [
837
+ "value"
838
+ ],
839
+ "additionalProperties": false
840
+ }
841
+ },
842
+ "required": [
843
+ "effectId",
844
+ "requestHash",
845
+ "outcome"
846
+ ],
847
+ "additionalProperties": false
848
+ }
849
+ },
850
+ "transcript": {
851
+ "type": "object",
852
+ "properties": {
853
+ "cursor": {
854
+ "type": "integer",
855
+ "minimum": -9007199254740991,
856
+ "maximum": 9007199254740991
857
+ }
858
+ },
859
+ "required": [
860
+ "cursor"
861
+ ],
862
+ "additionalProperties": false
863
+ },
864
+ "options": {
865
+ "type": "object",
866
+ "properties": {
867
+ "yieldAfter": {
868
+ "type": "object",
869
+ "properties": {
870
+ "steps": {
871
+ "type": "number"
872
+ },
873
+ "ms": {
874
+ "type": "number"
875
+ }
876
+ },
877
+ "additionalProperties": false
878
+ },
879
+ "flowLimits": {},
880
+ "fixtureModel": {
881
+ "type": "boolean"
882
+ }
883
+ },
884
+ "required": [
885
+ "fixtureModel"
886
+ ],
887
+ "additionalProperties": false
888
+ },
889
+ "routing": {
890
+ "type": "object",
891
+ "properties": {
892
+ "rootManifest": {
893
+ "type": "object",
894
+ "propertyNames": {
895
+ "type": "string"
896
+ },
897
+ "additionalProperties": {}
898
+ },
899
+ "mcpSnapshot": {
900
+ "type": "object",
901
+ "properties": {
902
+ "snapshotSchemaVersion": {
903
+ "type": "number",
904
+ "const": 1
905
+ },
906
+ "manifestHash": {
907
+ "type": "string"
908
+ },
909
+ "mcpTools": {
910
+ "readOnly": true,
911
+ "type": "array",
912
+ "items": {
913
+ "type": "object",
914
+ "properties": {
915
+ "agentId": {
916
+ "type": "string"
917
+ },
918
+ "serverName": {
919
+ "type": "string"
920
+ },
921
+ "serverToolName": {
922
+ "type": "string"
923
+ },
924
+ "name": {
925
+ "type": "string"
926
+ },
927
+ "description": {
928
+ "type": "string"
929
+ },
930
+ "inputSchema": {
931
+ "type": "object",
932
+ "propertyNames": {
933
+ "type": "string"
934
+ },
935
+ "additionalProperties": {}
936
+ },
937
+ "outputSchema": {
938
+ "type": "object",
939
+ "propertyNames": {
940
+ "type": "string"
941
+ },
942
+ "additionalProperties": {}
943
+ },
944
+ "annotations": {
945
+ "type": "object",
946
+ "properties": {
947
+ "readOnlyHint": {
948
+ "type": "boolean"
949
+ },
950
+ "idempotentHint": {
951
+ "type": "boolean"
952
+ }
953
+ }
954
+ },
955
+ "deferred": {
956
+ "type": "boolean",
957
+ "const": true
958
+ }
959
+ },
960
+ "required": [
961
+ "serverName",
962
+ "serverToolName",
963
+ "name",
964
+ "inputSchema"
965
+ ]
966
+ }
967
+ },
968
+ "servers": {
969
+ "readOnly": true,
970
+ "type": "array",
971
+ "items": {
972
+ "type": "object",
973
+ "properties": {
974
+ "agentId": {
975
+ "type": "string"
976
+ },
977
+ "serverName": {
978
+ "type": "string"
979
+ },
980
+ "instructions": {
981
+ "type": "string"
982
+ }
983
+ },
984
+ "required": [
985
+ "serverName",
986
+ "instructions"
987
+ ]
988
+ }
989
+ }
990
+ },
991
+ "required": [
992
+ "snapshotSchemaVersion",
993
+ "manifestHash",
994
+ "mcpTools"
995
+ ]
996
+ },
997
+ "sandbox": {
998
+ "type": "object",
999
+ "properties": {
1000
+ "ownerId": {
1001
+ "type": "string",
1002
+ "minLength": 1,
1003
+ "maxLength": 512
1004
+ },
1005
+ "environmentId": {
1006
+ "type": "string",
1007
+ "minLength": 1,
1008
+ "maxLength": 512
1009
+ },
1010
+ "spec": {},
1011
+ "environment": {
1012
+ "type": "object",
1013
+ "propertyNames": {
1014
+ "type": "string"
1015
+ },
1016
+ "additionalProperties": {
1017
+ "type": "string"
1018
+ }
1019
+ }
1020
+ },
1021
+ "required": [
1022
+ "ownerId"
1023
+ ],
1024
+ "additionalProperties": false
1025
+ }
1026
+ },
1027
+ "required": [
1028
+ "rootManifest"
1029
+ ],
1030
+ "additionalProperties": false
1031
+ },
1032
+ "trace": {
1033
+ "type": "object",
1034
+ "properties": {
1035
+ "traceparent": {
1036
+ "type": "string",
1037
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$"
1038
+ },
1039
+ "tracestate": {
1040
+ "type": "string",
1041
+ "maxLength": 512
1042
+ }
1043
+ },
1044
+ "required": [
1045
+ "traceparent"
1046
+ ],
1047
+ "additionalProperties": false
1048
+ }
1049
+ },
1050
+ "required": [
1051
+ "type",
1052
+ "engine",
1053
+ "manifest",
1054
+ "checkpoint",
1055
+ "outcomes",
1056
+ "transcript",
1057
+ "options",
1058
+ "routing"
1059
+ ],
1060
+ "additionalProperties": false
1061
+ },
1062
+ "GateErrorBody": {
1063
+ "type": "object",
1064
+ "properties": {
1065
+ "error": {
1066
+ "type": "object",
1067
+ "properties": {
1068
+ "code": {
1069
+ "type": "string",
1070
+ "enum": [
1071
+ "gate_unauthorized",
1072
+ "gate_forbidden",
1073
+ "run_stale",
1074
+ "invalid_request",
1075
+ "gate_conflict",
1076
+ "key_required",
1077
+ "effect_not_journaled"
1078
+ ]
1079
+ },
1080
+ "message": {
1081
+ "type": "string"
1082
+ }
1083
+ },
1084
+ "required": [
1085
+ "code",
1086
+ "message"
1087
+ ],
1088
+ "additionalProperties": false
1089
+ }
1090
+ },
1091
+ "required": [
1092
+ "error"
1093
+ ],
1094
+ "additionalProperties": false
1095
+ },
1096
+ "HttpCallBody": {
1097
+ "type": "object",
1098
+ "properties": {
1099
+ "tool": {
1100
+ "anyOf": [
1101
+ {
1102
+ "type": "object",
1103
+ "properties": {
1104
+ "sessionId": {
1105
+ "type": "string",
1106
+ "minLength": 1
1107
+ },
1108
+ "agentId": {
1109
+ "type": "string",
1110
+ "minLength": 1
1111
+ },
1112
+ "toolName": {
1113
+ "type": "string",
1114
+ "minLength": 1
1115
+ }
1116
+ },
1117
+ "required": [
1118
+ "toolName"
1119
+ ]
1120
+ },
1121
+ {
1122
+ "type": "object",
1123
+ "properties": {
1124
+ "sessionId": {
1125
+ "type": "string",
1126
+ "minLength": 1
1127
+ },
1128
+ "stage": {
1129
+ "type": "string",
1130
+ "minLength": 1
1131
+ }
1132
+ },
1133
+ "required": [
1134
+ "stage"
1135
+ ]
1136
+ }
1137
+ ]
1138
+ },
1139
+ "effectId": {
1140
+ "type": "string",
1141
+ "minLength": 1
1142
+ },
1143
+ "turnId": {
1144
+ "type": "string",
1145
+ "minLength": 1
1146
+ },
1147
+ "input": {}
1148
+ },
1149
+ "required": [
1150
+ "tool",
1151
+ "effectId",
1152
+ "turnId",
1153
+ "input"
1154
+ ]
1155
+ },
1156
+ "McpListBody": {
1157
+ "type": "object",
1158
+ "properties": {
1159
+ "server": {
1160
+ "type": "object",
1161
+ "properties": {
1162
+ "sessionId": {
1163
+ "type": "string",
1164
+ "minLength": 1
1165
+ },
1166
+ "agentId": {
1167
+ "type": "string",
1168
+ "minLength": 1
1169
+ },
1170
+ "serverName": {
1171
+ "type": "string",
1172
+ "minLength": 1
1173
+ }
1174
+ },
1175
+ "required": [
1176
+ "serverName"
1177
+ ]
1178
+ },
1179
+ "cursor": {
1180
+ "type": "string"
1181
+ }
1182
+ },
1183
+ "required": [
1184
+ "server"
1185
+ ]
1186
+ },
1187
+ "McpServerBody": {
1188
+ "type": "object",
1189
+ "properties": {
1190
+ "server": {
1191
+ "type": "object",
1192
+ "properties": {
1193
+ "sessionId": {
1194
+ "type": "string",
1195
+ "minLength": 1
1196
+ },
1197
+ "agentId": {
1198
+ "type": "string",
1199
+ "minLength": 1
1200
+ },
1201
+ "serverName": {
1202
+ "type": "string",
1203
+ "minLength": 1
1204
+ }
1205
+ },
1206
+ "required": [
1207
+ "serverName"
1208
+ ]
1209
+ }
1210
+ },
1211
+ "required": [
1212
+ "server"
1213
+ ]
1214
+ },
1215
+ "McpServerRef": {
1216
+ "type": "object",
1217
+ "properties": {
1218
+ "sessionId": {
1219
+ "type": "string",
1220
+ "minLength": 1
1221
+ },
1222
+ "agentId": {
1223
+ "type": "string",
1224
+ "minLength": 1
1225
+ },
1226
+ "serverName": {
1227
+ "type": "string",
1228
+ "minLength": 1
1229
+ }
1230
+ },
1231
+ "required": [
1232
+ "serverName"
1233
+ ]
1234
+ },
1235
+ "ModelCallBody": {
1236
+ "type": "object",
1237
+ "properties": {
1238
+ "effectId": {
1239
+ "type": "string",
1240
+ "minLength": 1
1241
+ },
1242
+ "invocationId": {
1243
+ "type": "string",
1244
+ "minLength": 1
1245
+ },
1246
+ "call": {
1247
+ "type": "object",
1248
+ "properties": {
1249
+ "prompt": {
1250
+ "type": "array",
1251
+ "items": {}
1252
+ },
1253
+ "tools": {
1254
+ "type": "array",
1255
+ "items": {
1256
+ "type": "object",
1257
+ "properties": {
1258
+ "name": {
1259
+ "type": "string"
1260
+ }
1261
+ },
1262
+ "required": [
1263
+ "name"
1264
+ ],
1265
+ "additionalProperties": {}
1266
+ }
1267
+ }
1268
+ },
1269
+ "required": [
1270
+ "prompt",
1271
+ "tools"
1272
+ ],
1273
+ "additionalProperties": {}
1274
+ }
1275
+ },
1276
+ "required": [
1277
+ "effectId",
1278
+ "invocationId",
1279
+ "call"
1280
+ ],
1281
+ "additionalProperties": false
1282
+ },
1283
+ "ToolCallBody": {
1284
+ "type": "object",
1285
+ "properties": {
1286
+ "server": {
1287
+ "type": "object",
1288
+ "properties": {
1289
+ "sessionId": {
1290
+ "type": "string",
1291
+ "minLength": 1
1292
+ },
1293
+ "agentId": {
1294
+ "type": "string",
1295
+ "minLength": 1
1296
+ },
1297
+ "serverName": {
1298
+ "type": "string",
1299
+ "minLength": 1
1300
+ }
1301
+ },
1302
+ "required": [
1303
+ "serverName"
1304
+ ]
1305
+ },
1306
+ "effectId": {
1307
+ "type": "string",
1308
+ "minLength": 1
1309
+ },
1310
+ "name": {
1311
+ "type": "string",
1312
+ "minLength": 1
1313
+ },
1314
+ "arguments": {
1315
+ "type": "object",
1316
+ "propertyNames": {
1317
+ "type": "string"
1318
+ },
1319
+ "additionalProperties": {}
1320
+ }
1321
+ },
1322
+ "required": [
1323
+ "server",
1324
+ "effectId",
1325
+ "name",
1326
+ "arguments"
1327
+ ]
1328
+ },
1329
+ "McpServerNote": {
1330
+ "type": "object",
1331
+ "properties": {
1332
+ "agentId": {
1333
+ "type": "string"
1334
+ },
1335
+ "serverName": {
1336
+ "type": "string"
1337
+ },
1338
+ "instructions": {
1339
+ "type": "string"
1340
+ }
1341
+ },
1342
+ "required": [
1343
+ "serverName",
1344
+ "instructions"
1345
+ ]
1346
+ },
1347
+ "McpSnapshot": {
1348
+ "type": "object",
1349
+ "properties": {
1350
+ "snapshotSchemaVersion": {
1351
+ "type": "number",
1352
+ "const": 1
1353
+ },
1354
+ "manifestHash": {
1355
+ "type": "string"
1356
+ },
1357
+ "mcpTools": {
1358
+ "readOnly": true,
1359
+ "type": "array",
1360
+ "items": {
1361
+ "type": "object",
1362
+ "properties": {
1363
+ "agentId": {
1364
+ "type": "string"
1365
+ },
1366
+ "serverName": {
1367
+ "type": "string"
1368
+ },
1369
+ "serverToolName": {
1370
+ "type": "string"
1371
+ },
1372
+ "name": {
1373
+ "type": "string"
1374
+ },
1375
+ "description": {
1376
+ "type": "string"
1377
+ },
1378
+ "inputSchema": {
1379
+ "type": "object",
1380
+ "propertyNames": {
1381
+ "type": "string"
1382
+ },
1383
+ "additionalProperties": {}
1384
+ },
1385
+ "outputSchema": {
1386
+ "type": "object",
1387
+ "propertyNames": {
1388
+ "type": "string"
1389
+ },
1390
+ "additionalProperties": {}
1391
+ },
1392
+ "annotations": {
1393
+ "type": "object",
1394
+ "properties": {
1395
+ "readOnlyHint": {
1396
+ "type": "boolean"
1397
+ },
1398
+ "idempotentHint": {
1399
+ "type": "boolean"
1400
+ }
1401
+ }
1402
+ },
1403
+ "deferred": {
1404
+ "type": "boolean",
1405
+ "const": true
1406
+ }
1407
+ },
1408
+ "required": [
1409
+ "serverName",
1410
+ "serverToolName",
1411
+ "name",
1412
+ "inputSchema"
1413
+ ]
1414
+ }
1415
+ },
1416
+ "servers": {
1417
+ "readOnly": true,
1418
+ "type": "array",
1419
+ "items": {
1420
+ "type": "object",
1421
+ "properties": {
1422
+ "agentId": {
1423
+ "type": "string"
1424
+ },
1425
+ "serverName": {
1426
+ "type": "string"
1427
+ },
1428
+ "instructions": {
1429
+ "type": "string"
1430
+ }
1431
+ },
1432
+ "required": [
1433
+ "serverName",
1434
+ "instructions"
1435
+ ]
1436
+ }
1437
+ }
1438
+ },
1439
+ "required": [
1440
+ "snapshotSchemaVersion",
1441
+ "manifestHash",
1442
+ "mcpTools"
1443
+ ]
1444
+ },
1445
+ "McpToolRecord": {
1446
+ "type": "object",
1447
+ "properties": {
1448
+ "agentId": {
1449
+ "type": "string"
1450
+ },
1451
+ "serverName": {
1452
+ "type": "string"
1453
+ },
1454
+ "serverToolName": {
1455
+ "type": "string"
1456
+ },
1457
+ "name": {
1458
+ "type": "string"
1459
+ },
1460
+ "description": {
1461
+ "type": "string"
1462
+ },
1463
+ "inputSchema": {
1464
+ "type": "object",
1465
+ "propertyNames": {
1466
+ "type": "string"
1467
+ },
1468
+ "additionalProperties": {}
1469
+ },
1470
+ "outputSchema": {
1471
+ "type": "object",
1472
+ "propertyNames": {
1473
+ "type": "string"
1474
+ },
1475
+ "additionalProperties": {}
1476
+ },
1477
+ "annotations": {
1478
+ "type": "object",
1479
+ "properties": {
1480
+ "readOnlyHint": {
1481
+ "type": "boolean"
1482
+ },
1483
+ "idempotentHint": {
1484
+ "type": "boolean"
1485
+ }
1486
+ }
1487
+ },
1488
+ "deferred": {
1489
+ "type": "boolean",
1490
+ "const": true
1491
+ }
1492
+ },
1493
+ "required": [
1494
+ "serverName",
1495
+ "serverToolName",
1496
+ "name",
1497
+ "inputSchema"
1498
+ ]
1499
+ },
1500
+ "InputEvent": {
1501
+ "anyOf": [
1502
+ {
1503
+ "type": "object",
1504
+ "properties": {
1505
+ "kind": {
1506
+ "type": "string",
1507
+ "enum": [
1508
+ "user-message",
1509
+ "interrupt"
1510
+ ]
1511
+ },
1512
+ "text": {
1513
+ "type": "string"
1514
+ },
1515
+ "metadata": {
1516
+ "type": "object",
1517
+ "propertyNames": {
1518
+ "type": "string"
1519
+ },
1520
+ "additionalProperties": {}
1521
+ }
1522
+ },
1523
+ "required": [
1524
+ "kind",
1525
+ "text"
1526
+ ]
1527
+ },
1528
+ {
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "kind": {
1532
+ "type": "string",
1533
+ "enum": [
1534
+ "user-message",
1535
+ "interrupt"
1536
+ ]
1537
+ },
1538
+ "content": {
1539
+ "type": "array",
1540
+ "items": {}
1541
+ },
1542
+ "metadata": {
1543
+ "type": "object",
1544
+ "propertyNames": {
1545
+ "type": "string"
1546
+ },
1547
+ "additionalProperties": {}
1548
+ }
1549
+ },
1550
+ "required": [
1551
+ "kind",
1552
+ "content"
1553
+ ]
1554
+ },
1555
+ {
1556
+ "type": "object",
1557
+ "properties": {
1558
+ "kind": {
1559
+ "type": "string",
1560
+ "const": "approve"
1561
+ },
1562
+ "interactionId": {
1563
+ "type": "string"
1564
+ },
1565
+ "approved": {
1566
+ "type": "boolean"
1567
+ }
1568
+ },
1569
+ "required": [
1570
+ "kind",
1571
+ "interactionId",
1572
+ "approved"
1573
+ ]
1574
+ },
1575
+ {
1576
+ "type": "object",
1577
+ "properties": {
1578
+ "kind": {
1579
+ "type": "string",
1580
+ "const": "respond"
1581
+ },
1582
+ "interactionId": {
1583
+ "type": "string"
1584
+ },
1585
+ "value": {}
1586
+ },
1587
+ "required": [
1588
+ "kind",
1589
+ "interactionId",
1590
+ "value"
1591
+ ]
1592
+ }
1593
+ ]
1594
+ },
1595
+ "ModelCandidate": {
1596
+ "type": "object",
1597
+ "properties": {
1598
+ "output": {
1599
+ "type": "array",
1600
+ "items": {
1601
+ "oneOf": [
1602
+ {
1603
+ "type": "object",
1604
+ "properties": {
1605
+ "type": {
1606
+ "type": "string",
1607
+ "const": "text"
1608
+ },
1609
+ "text": {
1610
+ "type": "string"
1611
+ },
1612
+ "providerMetadata": {
1613
+ "type": "object",
1614
+ "propertyNames": {
1615
+ "type": "string"
1616
+ },
1617
+ "additionalProperties": {}
1618
+ }
1619
+ },
1620
+ "required": [
1621
+ "type",
1622
+ "text"
1623
+ ]
1624
+ },
1625
+ {
1626
+ "type": "object",
1627
+ "properties": {
1628
+ "type": {
1629
+ "type": "string",
1630
+ "const": "reasoning"
1631
+ },
1632
+ "text": {
1633
+ "type": "string"
1634
+ },
1635
+ "providerMetadata": {
1636
+ "type": "object",
1637
+ "propertyNames": {
1638
+ "type": "string"
1639
+ },
1640
+ "additionalProperties": {}
1641
+ }
1642
+ },
1643
+ "required": [
1644
+ "type",
1645
+ "text"
1646
+ ]
1647
+ },
1648
+ {
1649
+ "type": "object",
1650
+ "properties": {
1651
+ "type": {
1652
+ "type": "string",
1653
+ "const": "json"
1654
+ },
1655
+ "value": {}
1656
+ },
1657
+ "required": [
1658
+ "type",
1659
+ "value"
1660
+ ]
1661
+ },
1662
+ {
1663
+ "type": "object",
1664
+ "properties": {
1665
+ "type": {
1666
+ "type": "string",
1667
+ "const": "tool-call"
1668
+ },
1669
+ "id": {
1670
+ "type": "string"
1671
+ },
1672
+ "name": {
1673
+ "type": "string"
1674
+ },
1675
+ "args": {
1676
+ "type": "object",
1677
+ "propertyNames": {
1678
+ "type": "string"
1679
+ },
1680
+ "additionalProperties": {}
1681
+ },
1682
+ "raw": {
1683
+ "type": "string"
1684
+ },
1685
+ "providerMetadata": {
1686
+ "type": "object",
1687
+ "propertyNames": {
1688
+ "type": "string"
1689
+ },
1690
+ "additionalProperties": {}
1691
+ }
1692
+ },
1693
+ "required": [
1694
+ "type",
1695
+ "id",
1696
+ "name",
1697
+ "args"
1698
+ ]
1699
+ }
1700
+ ]
1701
+ }
1702
+ },
1703
+ "finishReason": {
1704
+ "type": "string",
1705
+ "enum": [
1706
+ "stop",
1707
+ "length",
1708
+ "tool-calls",
1709
+ "content-filter",
1710
+ "other"
1711
+ ]
1712
+ },
1713
+ "usage": {
1714
+ "type": "object",
1715
+ "properties": {
1716
+ "inputTokens": {
1717
+ "type": "number"
1718
+ },
1719
+ "outputTokens": {
1720
+ "type": "number"
1721
+ },
1722
+ "totalTokens": {
1723
+ "type": "number"
1724
+ },
1725
+ "cachedTokens": {
1726
+ "type": "number"
1727
+ },
1728
+ "cacheWriteTokens": {
1729
+ "type": "number"
1730
+ },
1731
+ "reasoningTokens": {
1732
+ "type": "number"
1733
+ },
1734
+ "costUsd": {
1735
+ "type": "number"
1736
+ }
1737
+ }
1738
+ },
1739
+ "evidence": {
1740
+ "type": "object",
1741
+ "propertyNames": {
1742
+ "type": "string"
1743
+ },
1744
+ "additionalProperties": {}
1745
+ }
1746
+ },
1747
+ "required": [
1748
+ "output"
1749
+ ]
1750
+ },
1751
+ "ModelOutputBlock": {
1752
+ "oneOf": [
1753
+ {
1754
+ "type": "object",
1755
+ "properties": {
1756
+ "type": {
1757
+ "type": "string",
1758
+ "const": "text"
1759
+ },
1760
+ "text": {
1761
+ "type": "string"
1762
+ },
1763
+ "providerMetadata": {
1764
+ "type": "object",
1765
+ "propertyNames": {
1766
+ "type": "string"
1767
+ },
1768
+ "additionalProperties": {}
1769
+ }
1770
+ },
1771
+ "required": [
1772
+ "type",
1773
+ "text"
1774
+ ]
1775
+ },
1776
+ {
1777
+ "type": "object",
1778
+ "properties": {
1779
+ "type": {
1780
+ "type": "string",
1781
+ "const": "reasoning"
1782
+ },
1783
+ "text": {
1784
+ "type": "string"
1785
+ },
1786
+ "providerMetadata": {
1787
+ "type": "object",
1788
+ "propertyNames": {
1789
+ "type": "string"
1790
+ },
1791
+ "additionalProperties": {}
1792
+ }
1793
+ },
1794
+ "required": [
1795
+ "type",
1796
+ "text"
1797
+ ]
1798
+ },
1799
+ {
1800
+ "type": "object",
1801
+ "properties": {
1802
+ "type": {
1803
+ "type": "string",
1804
+ "const": "json"
1805
+ },
1806
+ "value": {}
1807
+ },
1808
+ "required": [
1809
+ "type",
1810
+ "value"
1811
+ ]
1812
+ },
1813
+ {
1814
+ "type": "object",
1815
+ "properties": {
1816
+ "type": {
1817
+ "type": "string",
1818
+ "const": "tool-call"
1819
+ },
1820
+ "id": {
1821
+ "type": "string"
1822
+ },
1823
+ "name": {
1824
+ "type": "string"
1825
+ },
1826
+ "args": {
1827
+ "type": "object",
1828
+ "propertyNames": {
1829
+ "type": "string"
1830
+ },
1831
+ "additionalProperties": {}
1832
+ },
1833
+ "raw": {
1834
+ "type": "string"
1835
+ },
1836
+ "providerMetadata": {
1837
+ "type": "object",
1838
+ "propertyNames": {
1839
+ "type": "string"
1840
+ },
1841
+ "additionalProperties": {}
1842
+ }
1843
+ },
1844
+ "required": [
1845
+ "type",
1846
+ "id",
1847
+ "name",
1848
+ "args"
1849
+ ]
1850
+ }
1851
+ ]
1852
+ },
1853
+ "ToolResult": {
1854
+ "oneOf": [
1855
+ {
1856
+ "type": "object",
1857
+ "properties": {
1858
+ "callId": {
1859
+ "type": "string"
1860
+ },
1861
+ "toolName": {
1862
+ "type": "string"
1863
+ },
1864
+ "kind": {
1865
+ "type": "string",
1866
+ "const": "completed"
1867
+ },
1868
+ "output": {},
1869
+ "files": {
1870
+ "type": "array",
1871
+ "items": {}
1872
+ }
1873
+ },
1874
+ "required": [
1875
+ "callId",
1876
+ "toolName",
1877
+ "kind",
1878
+ "output"
1879
+ ]
1880
+ },
1881
+ {
1882
+ "type": "object",
1883
+ "properties": {
1884
+ "callId": {
1885
+ "type": "string"
1886
+ },
1887
+ "toolName": {
1888
+ "type": "string"
1889
+ },
1890
+ "kind": {
1891
+ "type": "string",
1892
+ "const": "denied"
1893
+ },
1894
+ "reason": {
1895
+ "type": "string"
1896
+ }
1897
+ },
1898
+ "required": [
1899
+ "callId",
1900
+ "toolName",
1901
+ "kind",
1902
+ "reason"
1903
+ ]
1904
+ },
1905
+ {
1906
+ "type": "object",
1907
+ "properties": {
1908
+ "callId": {
1909
+ "type": "string"
1910
+ },
1911
+ "toolName": {
1912
+ "type": "string"
1913
+ },
1914
+ "kind": {
1915
+ "type": "string",
1916
+ "const": "failed"
1917
+ },
1918
+ "code": {
1919
+ "type": "string"
1920
+ },
1921
+ "message": {
1922
+ "type": "string"
1923
+ },
1924
+ "details": {},
1925
+ "retryable": {
1926
+ "type": "boolean"
1927
+ }
1928
+ },
1929
+ "required": [
1930
+ "callId",
1931
+ "toolName",
1932
+ "kind",
1933
+ "code",
1934
+ "message"
1935
+ ]
1936
+ }
1937
+ ]
1938
+ },
1939
+ "TranscriptEntry": {
1940
+ "oneOf": [
1941
+ {
1942
+ "type": "object",
1943
+ "properties": {
1944
+ "kind": {
1945
+ "type": "string",
1946
+ "const": "input"
1947
+ },
1948
+ "turnId": {
1949
+ "type": "string"
1950
+ },
1951
+ "event": {
1952
+ "anyOf": [
1953
+ {
1954
+ "type": "object",
1955
+ "properties": {
1956
+ "kind": {
1957
+ "type": "string",
1958
+ "enum": [
1959
+ "user-message",
1960
+ "interrupt"
1961
+ ]
1962
+ },
1963
+ "text": {
1964
+ "type": "string"
1965
+ },
1966
+ "metadata": {
1967
+ "type": "object",
1968
+ "propertyNames": {
1969
+ "type": "string"
1970
+ },
1971
+ "additionalProperties": {}
1972
+ }
1973
+ },
1974
+ "required": [
1975
+ "kind",
1976
+ "text"
1977
+ ]
1978
+ },
1979
+ {
1980
+ "type": "object",
1981
+ "properties": {
1982
+ "kind": {
1983
+ "type": "string",
1984
+ "enum": [
1985
+ "user-message",
1986
+ "interrupt"
1987
+ ]
1988
+ },
1989
+ "content": {
1990
+ "type": "array",
1991
+ "items": {}
1992
+ },
1993
+ "metadata": {
1994
+ "type": "object",
1995
+ "propertyNames": {
1996
+ "type": "string"
1997
+ },
1998
+ "additionalProperties": {}
1999
+ }
2000
+ },
2001
+ "required": [
2002
+ "kind",
2003
+ "content"
2004
+ ]
2005
+ },
2006
+ {
2007
+ "type": "object",
2008
+ "properties": {
2009
+ "kind": {
2010
+ "type": "string",
2011
+ "const": "approve"
2012
+ },
2013
+ "interactionId": {
2014
+ "type": "string"
2015
+ },
2016
+ "approved": {
2017
+ "type": "boolean"
2018
+ }
2019
+ },
2020
+ "required": [
2021
+ "kind",
2022
+ "interactionId",
2023
+ "approved"
2024
+ ]
2025
+ },
2026
+ {
2027
+ "type": "object",
2028
+ "properties": {
2029
+ "kind": {
2030
+ "type": "string",
2031
+ "const": "respond"
2032
+ },
2033
+ "interactionId": {
2034
+ "type": "string"
2035
+ },
2036
+ "value": {}
2037
+ },
2038
+ "required": [
2039
+ "kind",
2040
+ "interactionId",
2041
+ "value"
2042
+ ]
2043
+ }
2044
+ ]
2045
+ }
2046
+ },
2047
+ "required": [
2048
+ "kind",
2049
+ "turnId",
2050
+ "event"
2051
+ ]
2052
+ },
2053
+ {
2054
+ "type": "object",
2055
+ "properties": {
2056
+ "kind": {
2057
+ "type": "string",
2058
+ "const": "candidate"
2059
+ },
2060
+ "turnId": {
2061
+ "type": "string"
2062
+ },
2063
+ "stepId": {
2064
+ "type": "string"
2065
+ },
2066
+ "candidate": {
2067
+ "type": "object",
2068
+ "properties": {
2069
+ "output": {
2070
+ "type": "array",
2071
+ "items": {
2072
+ "oneOf": [
2073
+ {
2074
+ "type": "object",
2075
+ "properties": {
2076
+ "type": {
2077
+ "type": "string",
2078
+ "const": "text"
2079
+ },
2080
+ "text": {
2081
+ "type": "string"
2082
+ },
2083
+ "providerMetadata": {
2084
+ "type": "object",
2085
+ "propertyNames": {
2086
+ "type": "string"
2087
+ },
2088
+ "additionalProperties": {}
2089
+ }
2090
+ },
2091
+ "required": [
2092
+ "type",
2093
+ "text"
2094
+ ]
2095
+ },
2096
+ {
2097
+ "type": "object",
2098
+ "properties": {
2099
+ "type": {
2100
+ "type": "string",
2101
+ "const": "reasoning"
2102
+ },
2103
+ "text": {
2104
+ "type": "string"
2105
+ },
2106
+ "providerMetadata": {
2107
+ "type": "object",
2108
+ "propertyNames": {
2109
+ "type": "string"
2110
+ },
2111
+ "additionalProperties": {}
2112
+ }
2113
+ },
2114
+ "required": [
2115
+ "type",
2116
+ "text"
2117
+ ]
2118
+ },
2119
+ {
2120
+ "type": "object",
2121
+ "properties": {
2122
+ "type": {
2123
+ "type": "string",
2124
+ "const": "json"
2125
+ },
2126
+ "value": {}
2127
+ },
2128
+ "required": [
2129
+ "type",
2130
+ "value"
2131
+ ]
2132
+ },
2133
+ {
2134
+ "type": "object",
2135
+ "properties": {
2136
+ "type": {
2137
+ "type": "string",
2138
+ "const": "tool-call"
2139
+ },
2140
+ "id": {
2141
+ "type": "string"
2142
+ },
2143
+ "name": {
2144
+ "type": "string"
2145
+ },
2146
+ "args": {
2147
+ "type": "object",
2148
+ "propertyNames": {
2149
+ "type": "string"
2150
+ },
2151
+ "additionalProperties": {}
2152
+ },
2153
+ "raw": {
2154
+ "type": "string"
2155
+ },
2156
+ "providerMetadata": {
2157
+ "type": "object",
2158
+ "propertyNames": {
2159
+ "type": "string"
2160
+ },
2161
+ "additionalProperties": {}
2162
+ }
2163
+ },
2164
+ "required": [
2165
+ "type",
2166
+ "id",
2167
+ "name",
2168
+ "args"
2169
+ ]
2170
+ }
2171
+ ]
2172
+ }
2173
+ },
2174
+ "finishReason": {
2175
+ "type": "string",
2176
+ "enum": [
2177
+ "stop",
2178
+ "length",
2179
+ "tool-calls",
2180
+ "content-filter",
2181
+ "other"
2182
+ ]
2183
+ },
2184
+ "usage": {
2185
+ "type": "object",
2186
+ "properties": {
2187
+ "inputTokens": {
2188
+ "type": "number"
2189
+ },
2190
+ "outputTokens": {
2191
+ "type": "number"
2192
+ },
2193
+ "totalTokens": {
2194
+ "type": "number"
2195
+ },
2196
+ "cachedTokens": {
2197
+ "type": "number"
2198
+ },
2199
+ "cacheWriteTokens": {
2200
+ "type": "number"
2201
+ },
2202
+ "reasoningTokens": {
2203
+ "type": "number"
2204
+ },
2205
+ "costUsd": {
2206
+ "type": "number"
2207
+ }
2208
+ }
2209
+ },
2210
+ "evidence": {
2211
+ "type": "object",
2212
+ "propertyNames": {
2213
+ "type": "string"
2214
+ },
2215
+ "additionalProperties": {}
2216
+ }
2217
+ },
2218
+ "required": [
2219
+ "output"
2220
+ ]
2221
+ }
2222
+ },
2223
+ "required": [
2224
+ "kind",
2225
+ "turnId",
2226
+ "stepId",
2227
+ "candidate"
2228
+ ]
2229
+ },
2230
+ {
2231
+ "type": "object",
2232
+ "properties": {
2233
+ "kind": {
2234
+ "type": "string",
2235
+ "const": "tool-results"
2236
+ },
2237
+ "turnId": {
2238
+ "type": "string"
2239
+ },
2240
+ "stepId": {
2241
+ "type": "string"
2242
+ },
2243
+ "results": {
2244
+ "type": "array",
2245
+ "items": {
2246
+ "oneOf": [
2247
+ {
2248
+ "type": "object",
2249
+ "properties": {
2250
+ "callId": {
2251
+ "type": "string"
2252
+ },
2253
+ "toolName": {
2254
+ "type": "string"
2255
+ },
2256
+ "kind": {
2257
+ "type": "string",
2258
+ "const": "completed"
2259
+ },
2260
+ "output": {},
2261
+ "files": {
2262
+ "type": "array",
2263
+ "items": {}
2264
+ }
2265
+ },
2266
+ "required": [
2267
+ "callId",
2268
+ "toolName",
2269
+ "kind",
2270
+ "output"
2271
+ ]
2272
+ },
2273
+ {
2274
+ "type": "object",
2275
+ "properties": {
2276
+ "callId": {
2277
+ "type": "string"
2278
+ },
2279
+ "toolName": {
2280
+ "type": "string"
2281
+ },
2282
+ "kind": {
2283
+ "type": "string",
2284
+ "const": "denied"
2285
+ },
2286
+ "reason": {
2287
+ "type": "string"
2288
+ }
2289
+ },
2290
+ "required": [
2291
+ "callId",
2292
+ "toolName",
2293
+ "kind",
2294
+ "reason"
2295
+ ]
2296
+ },
2297
+ {
2298
+ "type": "object",
2299
+ "properties": {
2300
+ "callId": {
2301
+ "type": "string"
2302
+ },
2303
+ "toolName": {
2304
+ "type": "string"
2305
+ },
2306
+ "kind": {
2307
+ "type": "string",
2308
+ "const": "failed"
2309
+ },
2310
+ "code": {
2311
+ "type": "string"
2312
+ },
2313
+ "message": {
2314
+ "type": "string"
2315
+ },
2316
+ "details": {},
2317
+ "retryable": {
2318
+ "type": "boolean"
2319
+ }
2320
+ },
2321
+ "required": [
2322
+ "callId",
2323
+ "toolName",
2324
+ "kind",
2325
+ "code",
2326
+ "message"
2327
+ ]
2328
+ }
2329
+ ]
2330
+ }
2331
+ }
2332
+ },
2333
+ "required": [
2334
+ "kind",
2335
+ "turnId",
2336
+ "stepId",
2337
+ "results"
2338
+ ]
2339
+ },
2340
+ {
2341
+ "type": "object",
2342
+ "properties": {
2343
+ "kind": {
2344
+ "type": "string",
2345
+ "const": "final"
2346
+ },
2347
+ "turnId": {
2348
+ "type": "string"
2349
+ },
2350
+ "stepId": {
2351
+ "type": "string"
2352
+ },
2353
+ "output": {}
2354
+ },
2355
+ "required": [
2356
+ "kind",
2357
+ "turnId",
2358
+ "stepId",
2359
+ "output"
2360
+ ]
2361
+ },
2362
+ {
2363
+ "type": "object",
2364
+ "properties": {
2365
+ "kind": {
2366
+ "type": "string",
2367
+ "const": "compaction"
2368
+ },
2369
+ "turnId": {
2370
+ "type": "string"
2371
+ },
2372
+ "stepId": {
2373
+ "type": "string"
2374
+ },
2375
+ "summary": {
2376
+ "type": "string"
2377
+ },
2378
+ "trigger": {
2379
+ "type": "string",
2380
+ "enum": [
2381
+ "threshold",
2382
+ "overflow"
2383
+ ]
2384
+ },
2385
+ "tokensBefore": {
2386
+ "type": "number"
2387
+ },
2388
+ "tokensAfter": {
2389
+ "type": "number"
2390
+ },
2391
+ "files": {
2392
+ "type": "array",
2393
+ "items": {
2394
+ "type": "string"
2395
+ }
2396
+ }
2397
+ },
2398
+ "required": [
2399
+ "kind",
2400
+ "turnId",
2401
+ "stepId",
2402
+ "summary",
2403
+ "trigger",
2404
+ "tokensBefore",
2405
+ "tokensAfter"
2406
+ ]
2407
+ }
2408
+ ]
2409
+ },
2410
+ "HostJoinAnswer": {
2411
+ "type": "object",
2412
+ "properties": {
2413
+ "hostToken": {
2414
+ "type": "string"
2415
+ },
2416
+ "egressToken": {
2417
+ "type": "string"
2418
+ },
2419
+ "sandboxId": {
2420
+ "type": "string"
2421
+ },
2422
+ "epoch": {
2423
+ "type": "integer",
2424
+ "minimum": -9007199254740991,
2425
+ "maximum": 9007199254740991
2426
+ },
2427
+ "expiresAt": {
2428
+ "type": "string"
2429
+ },
2430
+ "caCertificate": {
2431
+ "type": "string"
2432
+ },
2433
+ "setup": {
2434
+ "type": "object",
2435
+ "propertyNames": {
2436
+ "type": "string"
2437
+ },
2438
+ "additionalProperties": {}
2439
+ },
2440
+ "seeded": {
2441
+ "type": "boolean",
2442
+ "const": true
2443
+ }
2444
+ },
2445
+ "required": [
2446
+ "hostToken",
2447
+ "egressToken",
2448
+ "sandboxId",
2449
+ "epoch",
2450
+ "expiresAt",
2451
+ "caCertificate"
2452
+ ],
2453
+ "additionalProperties": false
2454
+ },
2455
+ "HostJoinRequest": {
2456
+ "type": "object",
2457
+ "properties": {
2458
+ "sandboxId": {
2459
+ "type": "string",
2460
+ "minLength": 1
2461
+ },
2462
+ "podUid": {
2463
+ "type": "string",
2464
+ "pattern": "^[A-Za-z0-9-]{1,64}$"
2465
+ },
2466
+ "joinToken": {
2467
+ "type": "string",
2468
+ "minLength": 1,
2469
+ "maxLength": 512
2470
+ },
2471
+ "volumeId": {
2472
+ "type": "string",
2473
+ "pattern": "^[A-Za-z0-9-]{1,64}$"
2474
+ }
2475
+ },
2476
+ "required": [
2477
+ "sandboxId",
2478
+ "podUid",
2479
+ "joinToken"
2480
+ ],
2481
+ "additionalProperties": false
2482
+ },
2483
+ "hello.params": {
2484
+ "type": "object",
2485
+ "properties": {
2486
+ "api": {
2487
+ "type": "integer",
2488
+ "minimum": -9007199254740991,
2489
+ "maximum": 9007199254740991
2490
+ },
2491
+ "name": {
2492
+ "type": "string"
2493
+ },
2494
+ "version": {
2495
+ "type": "string"
2496
+ },
2497
+ "features": {
2498
+ "type": "object",
2499
+ "properties": {
2500
+ "workspace": {},
2501
+ "tools": {
2502
+ "maxItems": 64,
2503
+ "type": "array",
2504
+ "items": {
2505
+ "type": "object",
2506
+ "properties": {
2507
+ "name": {
2508
+ "type": "string",
2509
+ "pattern": "^[A-Za-z_][A-Za-z0-9_-]{0,63}$"
2510
+ },
2511
+ "description": {
2512
+ "type": "string",
2513
+ "maxLength": 4096
2514
+ },
2515
+ "inputSchema": {
2516
+ "type": "object",
2517
+ "propertyNames": {
2518
+ "type": "string"
2519
+ },
2520
+ "additionalProperties": {}
2521
+ }
2522
+ },
2523
+ "required": [
2524
+ "name",
2525
+ "inputSchema"
2526
+ ],
2527
+ "additionalProperties": false
2528
+ }
2529
+ }
2530
+ },
2531
+ "additionalProperties": false
2532
+ }
2533
+ },
2534
+ "required": [
2535
+ "api",
2536
+ "name",
2537
+ "version",
2538
+ "features"
2539
+ ],
2540
+ "additionalProperties": false
2541
+ },
2542
+ "hello.result": {
2543
+ "type": "object",
2544
+ "properties": {
2545
+ "api": {
2546
+ "type": "number",
2547
+ "const": 3
2548
+ },
2549
+ "tenantId": {
2550
+ "type": "string",
2551
+ "minLength": 1,
2552
+ "maxLength": 512
2553
+ },
2554
+ "sandbox": {
2555
+ "type": "object",
2556
+ "properties": {
2557
+ "backend": {
2558
+ "type": [
2559
+ "string",
2560
+ "null"
2561
+ ]
2562
+ }
2563
+ },
2564
+ "required": [
2565
+ "backend"
2566
+ ],
2567
+ "additionalProperties": false
2568
+ },
2569
+ "renewEveryMs": {
2570
+ "type": "integer",
2571
+ "exclusiveMinimum": 0,
2572
+ "maximum": 9007199254740991
2573
+ }
2574
+ },
2575
+ "required": [
2576
+ "api",
2577
+ "tenantId",
2578
+ "sandbox",
2579
+ "renewEveryMs"
2580
+ ],
2581
+ "additionalProperties": false
2582
+ },
2583
+ "lease.params": {
2584
+ "type": "object",
2585
+ "properties": {
2586
+ "slots": {
2587
+ "type": "integer",
2588
+ "exclusiveMinimum": 0,
2589
+ "maximum": 9007199254740991
2590
+ }
2591
+ },
2592
+ "additionalProperties": false
2593
+ },
2594
+ "lease.result": {
2595
+ "type": "object",
2596
+ "properties": {
2597
+ "run": {
2598
+ "type": "object",
2599
+ "properties": {
2600
+ "runId": {
2601
+ "type": "string",
2602
+ "minLength": 1,
2603
+ "maxLength": 512
2604
+ },
2605
+ "sessionId": {
2606
+ "type": "string",
2607
+ "minLength": 1,
2608
+ "maxLength": 512
2609
+ },
2610
+ "turnId": {
2611
+ "type": "string",
2612
+ "minLength": 1,
2613
+ "maxLength": 512
2614
+ },
2615
+ "epoch": {
2616
+ "type": "integer",
2617
+ "minimum": -9007199254740991,
2618
+ "maximum": 9007199254740991
2619
+ },
2620
+ "token": {
2621
+ "type": "string"
2622
+ },
2623
+ "tokenExpiresAt": {
2624
+ "type": "string"
2625
+ }
2626
+ },
2627
+ "required": [
2628
+ "runId",
2629
+ "sessionId",
2630
+ "turnId",
2631
+ "epoch"
2632
+ ],
2633
+ "additionalProperties": false
2634
+ },
2635
+ "input": {
2636
+ "type": "object",
2637
+ "properties": {
2638
+ "type": {
2639
+ "type": "string",
2640
+ "enum": [
2641
+ "turn.start",
2642
+ "approval.answer"
2643
+ ]
2644
+ },
2645
+ "engine": {
2646
+ "type": "string",
2647
+ "enum": [
2648
+ "agent",
2649
+ "flow"
2650
+ ]
2651
+ },
2652
+ "manifest": {
2653
+ "type": "object",
2654
+ "propertyNames": {
2655
+ "type": "string"
2656
+ },
2657
+ "additionalProperties": {}
2658
+ },
2659
+ "checkpoint": {
2660
+ "type": "object",
2661
+ "propertyNames": {
2662
+ "type": "string"
2663
+ },
2664
+ "additionalProperties": {}
2665
+ },
2666
+ "sessionTools": {
2667
+ "readOnly": true,
2668
+ "type": "array",
2669
+ "items": {}
2670
+ },
2671
+ "outcomes": {
2672
+ "readOnly": true,
2673
+ "type": "array",
2674
+ "items": {
2675
+ "type": "object",
2676
+ "properties": {
2677
+ "effectId": {
2678
+ "type": "string",
2679
+ "minLength": 1,
2680
+ "maxLength": 512
2681
+ },
2682
+ "requestHash": {
2683
+ "type": "string"
2684
+ },
2685
+ "outcome": {
2686
+ "type": "object",
2687
+ "properties": {
2688
+ "value": {},
2689
+ "statePatch": {
2690
+ "type": "object",
2691
+ "propertyNames": {
2692
+ "type": "string"
2693
+ },
2694
+ "additionalProperties": {}
2695
+ }
2696
+ },
2697
+ "required": [
2698
+ "value"
2699
+ ],
2700
+ "additionalProperties": false
2701
+ }
2702
+ },
2703
+ "required": [
2704
+ "effectId",
2705
+ "requestHash",
2706
+ "outcome"
2707
+ ],
2708
+ "additionalProperties": false
2709
+ }
2710
+ },
2711
+ "transcript": {
2712
+ "type": "object",
2713
+ "properties": {
2714
+ "cursor": {
2715
+ "type": "integer",
2716
+ "minimum": -9007199254740991,
2717
+ "maximum": 9007199254740991
2718
+ }
2719
+ },
2720
+ "required": [
2721
+ "cursor"
2722
+ ],
2723
+ "additionalProperties": false
2724
+ },
2725
+ "options": {
2726
+ "type": "object",
2727
+ "properties": {
2728
+ "yieldAfter": {
2729
+ "type": "object",
2730
+ "properties": {
2731
+ "steps": {
2732
+ "type": "number"
2733
+ },
2734
+ "ms": {
2735
+ "type": "number"
2736
+ }
2737
+ },
2738
+ "additionalProperties": false
2739
+ },
2740
+ "flowLimits": {},
2741
+ "fixtureModel": {
2742
+ "type": "boolean"
2743
+ }
2744
+ },
2745
+ "required": [
2746
+ "fixtureModel"
2747
+ ],
2748
+ "additionalProperties": false
2749
+ },
2750
+ "routing": {
2751
+ "type": "object",
2752
+ "properties": {
2753
+ "rootManifest": {
2754
+ "type": "object",
2755
+ "propertyNames": {
2756
+ "type": "string"
2757
+ },
2758
+ "additionalProperties": {}
2759
+ },
2760
+ "mcpSnapshot": {
2761
+ "type": "object",
2762
+ "properties": {
2763
+ "snapshotSchemaVersion": {
2764
+ "type": "number",
2765
+ "const": 1
2766
+ },
2767
+ "manifestHash": {
2768
+ "type": "string"
2769
+ },
2770
+ "mcpTools": {
2771
+ "readOnly": true,
2772
+ "type": "array",
2773
+ "items": {
2774
+ "type": "object",
2775
+ "properties": {
2776
+ "agentId": {
2777
+ "type": "string"
2778
+ },
2779
+ "serverName": {
2780
+ "type": "string"
2781
+ },
2782
+ "serverToolName": {
2783
+ "type": "string"
2784
+ },
2785
+ "name": {
2786
+ "type": "string"
2787
+ },
2788
+ "description": {
2789
+ "type": "string"
2790
+ },
2791
+ "inputSchema": {
2792
+ "type": "object",
2793
+ "propertyNames": {
2794
+ "type": "string"
2795
+ },
2796
+ "additionalProperties": {}
2797
+ },
2798
+ "outputSchema": {
2799
+ "type": "object",
2800
+ "propertyNames": {
2801
+ "type": "string"
2802
+ },
2803
+ "additionalProperties": {}
2804
+ },
2805
+ "annotations": {
2806
+ "type": "object",
2807
+ "properties": {
2808
+ "readOnlyHint": {
2809
+ "type": "boolean"
2810
+ },
2811
+ "idempotentHint": {
2812
+ "type": "boolean"
2813
+ }
2814
+ }
2815
+ },
2816
+ "deferred": {
2817
+ "type": "boolean",
2818
+ "const": true
2819
+ }
2820
+ },
2821
+ "required": [
2822
+ "serverName",
2823
+ "serverToolName",
2824
+ "name",
2825
+ "inputSchema"
2826
+ ]
2827
+ }
2828
+ },
2829
+ "servers": {
2830
+ "readOnly": true,
2831
+ "type": "array",
2832
+ "items": {
2833
+ "type": "object",
2834
+ "properties": {
2835
+ "agentId": {
2836
+ "type": "string"
2837
+ },
2838
+ "serverName": {
2839
+ "type": "string"
2840
+ },
2841
+ "instructions": {
2842
+ "type": "string"
2843
+ }
2844
+ },
2845
+ "required": [
2846
+ "serverName",
2847
+ "instructions"
2848
+ ]
2849
+ }
2850
+ }
2851
+ },
2852
+ "required": [
2853
+ "snapshotSchemaVersion",
2854
+ "manifestHash",
2855
+ "mcpTools"
2856
+ ]
2857
+ },
2858
+ "sandbox": {
2859
+ "type": "object",
2860
+ "properties": {
2861
+ "ownerId": {
2862
+ "type": "string",
2863
+ "minLength": 1,
2864
+ "maxLength": 512
2865
+ },
2866
+ "environmentId": {
2867
+ "type": "string",
2868
+ "minLength": 1,
2869
+ "maxLength": 512
2870
+ },
2871
+ "spec": {},
2872
+ "environment": {
2873
+ "type": "object",
2874
+ "propertyNames": {
2875
+ "type": "string"
2876
+ },
2877
+ "additionalProperties": {
2878
+ "type": "string"
2879
+ }
2880
+ }
2881
+ },
2882
+ "required": [
2883
+ "ownerId"
2884
+ ],
2885
+ "additionalProperties": false
2886
+ }
2887
+ },
2888
+ "required": [
2889
+ "rootManifest"
2890
+ ],
2891
+ "additionalProperties": false
2892
+ },
2893
+ "trace": {
2894
+ "type": "object",
2895
+ "properties": {
2896
+ "traceparent": {
2897
+ "type": "string",
2898
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$"
2899
+ },
2900
+ "tracestate": {
2901
+ "type": "string",
2902
+ "maxLength": 512
2903
+ }
2904
+ },
2905
+ "required": [
2906
+ "traceparent"
2907
+ ],
2908
+ "additionalProperties": false
2909
+ }
2910
+ },
2911
+ "required": [
2912
+ "type",
2913
+ "engine",
2914
+ "manifest",
2915
+ "checkpoint",
2916
+ "outcomes",
2917
+ "transcript",
2918
+ "options",
2919
+ "routing"
2920
+ ],
2921
+ "additionalProperties": false
2922
+ }
2923
+ },
2924
+ "required": [
2925
+ "run",
2926
+ "input"
2927
+ ],
2928
+ "additionalProperties": false
2929
+ },
2930
+ "lease.renew.params": {
2931
+ "type": "object",
2932
+ "properties": {
2933
+ "runId": {
2934
+ "type": "string",
2935
+ "minLength": 1,
2936
+ "maxLength": 512
2937
+ }
2938
+ },
2939
+ "required": [
2940
+ "runId"
2941
+ ],
2942
+ "additionalProperties": false
2943
+ },
2944
+ "lease.renew.result": {
2945
+ "anyOf": [
2946
+ {
2947
+ "type": "object",
2948
+ "properties": {
2949
+ "ok": {
2950
+ "type": "boolean",
2951
+ "const": true
2952
+ },
2953
+ "token": {
2954
+ "type": "string"
2955
+ },
2956
+ "tokenExpiresAt": {
2957
+ "type": "string"
2958
+ }
2959
+ },
2960
+ "required": [
2961
+ "ok"
2962
+ ],
2963
+ "additionalProperties": false
2964
+ },
2965
+ {
2966
+ "type": "object",
2967
+ "properties": {
2968
+ "ok": {
2969
+ "type": "boolean",
2970
+ "const": false
2971
+ }
2972
+ },
2973
+ "required": [
2974
+ "ok"
2975
+ ],
2976
+ "additionalProperties": false
2977
+ }
2978
+ ]
2979
+ },
2980
+ "lease.release.params": {
2981
+ "type": "object",
2982
+ "properties": {
2983
+ "runId": {
2984
+ "type": "string",
2985
+ "minLength": 1,
2986
+ "maxLength": 512
2987
+ },
2988
+ "reason": {
2989
+ "type": "string",
2990
+ "enum": [
2991
+ "shutdown",
2992
+ "ownership.lost",
2993
+ "connection.lost"
2994
+ ]
2995
+ }
2996
+ },
2997
+ "required": [
2998
+ "runId",
2999
+ "reason"
3000
+ ],
3001
+ "additionalProperties": false
3002
+ },
3003
+ "lease.release.result": {
3004
+ "type": "object",
3005
+ "properties": {},
3006
+ "additionalProperties": false
3007
+ },
3008
+ "effect.intent.params": {
3009
+ "type": "object",
3010
+ "properties": {
3011
+ "runId": {
3012
+ "type": "string",
3013
+ "minLength": 1,
3014
+ "maxLength": 512
3015
+ },
3016
+ "effect": {
3017
+ "type": "object",
3018
+ "properties": {
3019
+ "effectId": {
3020
+ "type": "string",
3021
+ "minLength": 1,
3022
+ "maxLength": 512
3023
+ },
3024
+ "sessionId": {
3025
+ "type": "string",
3026
+ "minLength": 1,
3027
+ "maxLength": 512
3028
+ },
3029
+ "turnId": {
3030
+ "type": "string",
3031
+ "minLength": 1,
3032
+ "maxLength": 512
3033
+ },
3034
+ "agentId": {
3035
+ "type": "string",
3036
+ "minLength": 1,
3037
+ "maxLength": 512
3038
+ },
3039
+ "manifestHash": {
3040
+ "type": "string"
3041
+ },
3042
+ "kind": {
3043
+ "type": "string",
3044
+ "enum": [
3045
+ "model",
3046
+ "tool",
3047
+ "delegation",
3048
+ "agent"
3049
+ ]
3050
+ },
3051
+ "agent": {
3052
+ "type": "object",
3053
+ "properties": {
3054
+ "id": {
3055
+ "type": "string"
3056
+ },
3057
+ "path": {
3058
+ "type": "string"
3059
+ },
3060
+ "delegationId": {
3061
+ "type": "string"
3062
+ }
3063
+ },
3064
+ "required": [
3065
+ "id",
3066
+ "path"
3067
+ ],
3068
+ "additionalProperties": false
3069
+ },
3070
+ "toolName": {
3071
+ "type": "string"
3072
+ },
3073
+ "path": {
3074
+ "type": "string"
3075
+ },
3076
+ "key": {
3077
+ "type": "string"
3078
+ },
3079
+ "iterations": {
3080
+ "type": "string"
3081
+ },
3082
+ "input": {},
3083
+ "context": {
3084
+ "type": "object",
3085
+ "propertyNames": {
3086
+ "type": "string"
3087
+ },
3088
+ "additionalProperties": {}
3089
+ }
3090
+ },
3091
+ "required": [
3092
+ "effectId",
3093
+ "sessionId",
3094
+ "turnId",
3095
+ "agentId",
3096
+ "manifestHash",
3097
+ "kind",
3098
+ "context"
3099
+ ],
3100
+ "additionalProperties": false
3101
+ },
3102
+ "requestHash": {
3103
+ "type": "string",
3104
+ "pattern": "^[0-9a-f]{64}$"
3105
+ }
3106
+ },
3107
+ "required": [
3108
+ "runId",
3109
+ "effect",
3110
+ "requestHash"
3111
+ ],
3112
+ "additionalProperties": false
3113
+ },
3114
+ "effect.intent.result": {
3115
+ "anyOf": [
3116
+ {
3117
+ "type": "object",
3118
+ "properties": {
3119
+ "status": {
3120
+ "type": "string",
3121
+ "const": "completed"
3122
+ },
3123
+ "outcome": {
3124
+ "type": "object",
3125
+ "properties": {
3126
+ "value": {},
3127
+ "statePatch": {
3128
+ "type": "object",
3129
+ "propertyNames": {
3130
+ "type": "string"
3131
+ },
3132
+ "additionalProperties": {}
3133
+ }
3134
+ },
3135
+ "required": [
3136
+ "value"
3137
+ ],
3138
+ "additionalProperties": false
3139
+ }
3140
+ },
3141
+ "required": [
3142
+ "status",
3143
+ "outcome"
3144
+ ],
3145
+ "additionalProperties": false
3146
+ },
3147
+ {
3148
+ "type": "object",
3149
+ "properties": {
3150
+ "status": {
3151
+ "type": "string",
3152
+ "enum": [
3153
+ "pending",
3154
+ "uncertain"
3155
+ ]
3156
+ }
3157
+ },
3158
+ "required": [
3159
+ "status"
3160
+ ],
3161
+ "additionalProperties": false
3162
+ },
3163
+ {
3164
+ "type": "object",
3165
+ "properties": {
3166
+ "status": {
3167
+ "type": "string",
3168
+ "const": "execute"
3169
+ },
3170
+ "rejoin": {
3171
+ "type": "boolean",
3172
+ "const": true
3173
+ },
3174
+ "traceparent": {
3175
+ "type": "string",
3176
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$"
3177
+ }
3178
+ },
3179
+ "required": [
3180
+ "status"
3181
+ ],
3182
+ "additionalProperties": false
3183
+ }
3184
+ ]
3185
+ },
3186
+ "effect.outcome.params": {
3187
+ "anyOf": [
3188
+ {
3189
+ "type": "object",
3190
+ "properties": {
3191
+ "runId": {
3192
+ "type": "string",
3193
+ "minLength": 1,
3194
+ "maxLength": 512
3195
+ },
3196
+ "effectId": {
3197
+ "type": "string",
3198
+ "minLength": 1,
3199
+ "maxLength": 512
3200
+ },
3201
+ "value": {}
3202
+ },
3203
+ "required": [
3204
+ "runId",
3205
+ "effectId",
3206
+ "value"
3207
+ ],
3208
+ "additionalProperties": false
3209
+ },
3210
+ {
3211
+ "type": "object",
3212
+ "properties": {
3213
+ "runId": {
3214
+ "type": "string",
3215
+ "minLength": 1,
3216
+ "maxLength": 512
3217
+ },
3218
+ "effectId": {
3219
+ "type": "string",
3220
+ "minLength": 1,
3221
+ "maxLength": 512
3222
+ },
3223
+ "error": {
3224
+ "type": "string"
3225
+ }
3226
+ },
3227
+ "required": [
3228
+ "runId",
3229
+ "effectId",
3230
+ "error"
3231
+ ],
3232
+ "additionalProperties": false
3233
+ }
3234
+ ]
3235
+ },
3236
+ "effect.outcome.result": {
3237
+ "anyOf": [
3238
+ {
3239
+ "type": "object",
3240
+ "properties": {
3241
+ "status": {
3242
+ "type": "string",
3243
+ "const": "completed"
3244
+ },
3245
+ "outcome": {
3246
+ "type": "object",
3247
+ "properties": {
3248
+ "value": {},
3249
+ "statePatch": {
3250
+ "type": "object",
3251
+ "propertyNames": {
3252
+ "type": "string"
3253
+ },
3254
+ "additionalProperties": {}
3255
+ }
3256
+ },
3257
+ "required": [
3258
+ "value"
3259
+ ],
3260
+ "additionalProperties": false
3261
+ }
3262
+ },
3263
+ "required": [
3264
+ "status",
3265
+ "outcome"
3266
+ ],
3267
+ "additionalProperties": false
3268
+ },
3269
+ {
3270
+ "type": "object",
3271
+ "properties": {
3272
+ "status": {
3273
+ "type": "string",
3274
+ "const": "uncertain"
3275
+ }
3276
+ },
3277
+ "required": [
3278
+ "status"
3279
+ ],
3280
+ "additionalProperties": false
3281
+ }
3282
+ ]
3283
+ },
3284
+ "transcript.read.params": {
3285
+ "type": "object",
3286
+ "properties": {
3287
+ "runId": {
3288
+ "type": "string",
3289
+ "minLength": 1,
3290
+ "maxLength": 512
3291
+ }
3292
+ },
3293
+ "required": [
3294
+ "runId"
3295
+ ],
3296
+ "additionalProperties": false
3297
+ },
3298
+ "transcript.read.result": {
3299
+ "type": "object",
3300
+ "properties": {
3301
+ "cursor": {
3302
+ "type": "integer",
3303
+ "minimum": -9007199254740991,
3304
+ "maximum": 9007199254740991
3305
+ },
3306
+ "entries": {
3307
+ "type": "array",
3308
+ "items": {}
3309
+ }
3310
+ },
3311
+ "required": [
3312
+ "cursor",
3313
+ "entries"
3314
+ ],
3315
+ "additionalProperties": false
3316
+ },
3317
+ "event.params": {
3318
+ "type": "object",
3319
+ "properties": {
3320
+ "runId": {
3321
+ "type": "string",
3322
+ "minLength": 1,
3323
+ "maxLength": 512
3324
+ },
3325
+ "sessionId": {
3326
+ "type": "string",
3327
+ "minLength": 1,
3328
+ "maxLength": 512
3329
+ },
3330
+ "turnId": {
3331
+ "anyOf": [
3332
+ {
3333
+ "type": "string",
3334
+ "minLength": 1,
3335
+ "maxLength": 512
3336
+ },
3337
+ {
3338
+ "type": "null"
3339
+ }
3340
+ ]
3341
+ },
3342
+ "type": {
3343
+ "type": "string",
3344
+ "enum": [
3345
+ "environment.state",
3346
+ "environment.exec"
3347
+ ]
3348
+ },
3349
+ "payload": {},
3350
+ "record": {
3351
+ "type": "object",
3352
+ "properties": {
3353
+ "key": {
3354
+ "type": "string",
3355
+ "minLength": 1,
3356
+ "maxLength": 512
3357
+ },
3358
+ "sessionId": {
3359
+ "type": "string",
3360
+ "minLength": 1,
3361
+ "maxLength": 512
3362
+ },
3363
+ "environmentId": {
3364
+ "type": "string",
3365
+ "minLength": 1,
3366
+ "maxLength": 512
3367
+ },
3368
+ "backend": {
3369
+ "type": "string"
3370
+ },
3371
+ "image": {
3372
+ "type": "string"
3373
+ },
3374
+ "state": {
3375
+ "type": "string",
3376
+ "enum": [
3377
+ "creating",
3378
+ "running",
3379
+ "stopped"
3380
+ ]
3381
+ },
3382
+ "createdAt": {
3383
+ "type": "string"
3384
+ },
3385
+ "updatedAt": {
3386
+ "type": "string"
3387
+ }
3388
+ },
3389
+ "required": [
3390
+ "key",
3391
+ "sessionId",
3392
+ "backend",
3393
+ "image",
3394
+ "state",
3395
+ "createdAt",
3396
+ "updatedAt"
3397
+ ],
3398
+ "additionalProperties": false
3399
+ }
3400
+ },
3401
+ "required": [
3402
+ "sessionId",
3403
+ "turnId",
3404
+ "type",
3405
+ "payload"
3406
+ ],
3407
+ "additionalProperties": false
3408
+ },
3409
+ "event.result": {
3410
+ "type": "object",
3411
+ "properties": {},
3412
+ "additionalProperties": false
3413
+ },
3414
+ "session.mcp.params": {
3415
+ "type": "object",
3416
+ "properties": {
3417
+ "runId": {
3418
+ "type": "string",
3419
+ "minLength": 1,
3420
+ "maxLength": 512
3421
+ },
3422
+ "snapshot": {
3423
+ "type": "object",
3424
+ "properties": {
3425
+ "snapshotSchemaVersion": {
3426
+ "type": "number",
3427
+ "const": 1
3428
+ },
3429
+ "manifestHash": {
3430
+ "type": "string"
3431
+ },
3432
+ "mcpTools": {
3433
+ "readOnly": true,
3434
+ "type": "array",
3435
+ "items": {
3436
+ "type": "object",
3437
+ "properties": {
3438
+ "agentId": {
3439
+ "type": "string"
3440
+ },
3441
+ "serverName": {
3442
+ "type": "string"
3443
+ },
3444
+ "serverToolName": {
3445
+ "type": "string"
3446
+ },
3447
+ "name": {
3448
+ "type": "string"
3449
+ },
3450
+ "description": {
3451
+ "type": "string"
3452
+ },
3453
+ "inputSchema": {
3454
+ "type": "object",
3455
+ "propertyNames": {
3456
+ "type": "string"
3457
+ },
3458
+ "additionalProperties": {}
3459
+ },
3460
+ "outputSchema": {
3461
+ "type": "object",
3462
+ "propertyNames": {
3463
+ "type": "string"
3464
+ },
3465
+ "additionalProperties": {}
3466
+ },
3467
+ "annotations": {
3468
+ "type": "object",
3469
+ "properties": {
3470
+ "readOnlyHint": {
3471
+ "type": "boolean"
3472
+ },
3473
+ "idempotentHint": {
3474
+ "type": "boolean"
3475
+ }
3476
+ }
3477
+ },
3478
+ "deferred": {
3479
+ "type": "boolean",
3480
+ "const": true
3481
+ }
3482
+ },
3483
+ "required": [
3484
+ "serverName",
3485
+ "serverToolName",
3486
+ "name",
3487
+ "inputSchema"
3488
+ ]
3489
+ }
3490
+ },
3491
+ "servers": {
3492
+ "readOnly": true,
3493
+ "type": "array",
3494
+ "items": {
3495
+ "type": "object",
3496
+ "properties": {
3497
+ "agentId": {
3498
+ "type": "string"
3499
+ },
3500
+ "serverName": {
3501
+ "type": "string"
3502
+ },
3503
+ "instructions": {
3504
+ "type": "string"
3505
+ }
3506
+ },
3507
+ "required": [
3508
+ "serverName",
3509
+ "instructions"
3510
+ ]
3511
+ }
3512
+ }
3513
+ },
3514
+ "required": [
3515
+ "snapshotSchemaVersion",
3516
+ "manifestHash",
3517
+ "mcpTools"
3518
+ ]
3519
+ },
3520
+ "diagnostics": {
3521
+ "type": "array",
3522
+ "items": {}
3523
+ }
3524
+ },
3525
+ "required": [
3526
+ "runId",
3527
+ "diagnostics"
3528
+ ],
3529
+ "additionalProperties": false
3530
+ },
3531
+ "session.mcp.result": {
3532
+ "type": "object",
3533
+ "properties": {
3534
+ "snapshot": {
3535
+ "type": "object",
3536
+ "properties": {
3537
+ "snapshotSchemaVersion": {
3538
+ "type": "number",
3539
+ "const": 1
3540
+ },
3541
+ "manifestHash": {
3542
+ "type": "string"
3543
+ },
3544
+ "mcpTools": {
3545
+ "readOnly": true,
3546
+ "type": "array",
3547
+ "items": {
3548
+ "type": "object",
3549
+ "properties": {
3550
+ "agentId": {
3551
+ "type": "string"
3552
+ },
3553
+ "serverName": {
3554
+ "type": "string"
3555
+ },
3556
+ "serverToolName": {
3557
+ "type": "string"
3558
+ },
3559
+ "name": {
3560
+ "type": "string"
3561
+ },
3562
+ "description": {
3563
+ "type": "string"
3564
+ },
3565
+ "inputSchema": {
3566
+ "type": "object",
3567
+ "propertyNames": {
3568
+ "type": "string"
3569
+ },
3570
+ "additionalProperties": {}
3571
+ },
3572
+ "outputSchema": {
3573
+ "type": "object",
3574
+ "propertyNames": {
3575
+ "type": "string"
3576
+ },
3577
+ "additionalProperties": {}
3578
+ },
3579
+ "annotations": {
3580
+ "type": "object",
3581
+ "properties": {
3582
+ "readOnlyHint": {
3583
+ "type": "boolean"
3584
+ },
3585
+ "idempotentHint": {
3586
+ "type": "boolean"
3587
+ }
3588
+ }
3589
+ },
3590
+ "deferred": {
3591
+ "type": "boolean",
3592
+ "const": true
3593
+ }
3594
+ },
3595
+ "required": [
3596
+ "serverName",
3597
+ "serverToolName",
3598
+ "name",
3599
+ "inputSchema"
3600
+ ]
3601
+ }
3602
+ },
3603
+ "servers": {
3604
+ "readOnly": true,
3605
+ "type": "array",
3606
+ "items": {
3607
+ "type": "object",
3608
+ "properties": {
3609
+ "agentId": {
3610
+ "type": "string"
3611
+ },
3612
+ "serverName": {
3613
+ "type": "string"
3614
+ },
3615
+ "instructions": {
3616
+ "type": "string"
3617
+ }
3618
+ },
3619
+ "required": [
3620
+ "serverName",
3621
+ "instructions"
3622
+ ]
3623
+ }
3624
+ }
3625
+ },
3626
+ "required": [
3627
+ "snapshotSchemaVersion",
3628
+ "manifestHash",
3629
+ "mcpTools"
3630
+ ]
3631
+ },
3632
+ "sessionTools": {
3633
+ "type": "array",
3634
+ "items": {}
3635
+ }
3636
+ },
3637
+ "required": [
3638
+ "sessionTools"
3639
+ ],
3640
+ "additionalProperties": false
3641
+ },
3642
+ "definition.file.params": {
3643
+ "type": "object",
3644
+ "properties": {
3645
+ "runId": {
3646
+ "type": "string",
3647
+ "minLength": 1,
3648
+ "maxLength": 512
3649
+ },
3650
+ "sha256": {
3651
+ "type": "string",
3652
+ "pattern": "^sha256:[0-9a-f]{64}$"
3653
+ }
3654
+ },
3655
+ "required": [
3656
+ "runId",
3657
+ "sha256"
3658
+ ],
3659
+ "additionalProperties": false
3660
+ },
3661
+ "definition.file.result": {
3662
+ "type": "object",
3663
+ "properties": {
3664
+ "base64": {
3665
+ "type": "string"
3666
+ }
3667
+ },
3668
+ "required": [
3669
+ "base64"
3670
+ ],
3671
+ "additionalProperties": false
3672
+ },
3673
+ "turn.completed.params": {
3674
+ "type": "object",
3675
+ "properties": {
3676
+ "runId": {
3677
+ "type": "string",
3678
+ "minLength": 1,
3679
+ "maxLength": 512
3680
+ },
3681
+ "status": {
3682
+ "type": "string",
3683
+ "enum": [
3684
+ "completed",
3685
+ "paused",
3686
+ "yielded",
3687
+ "waiting",
3688
+ "uncertain",
3689
+ "failed",
3690
+ "cancelled"
3691
+ ]
3692
+ },
3693
+ "state": {},
3694
+ "output": {},
3695
+ "pending": {},
3696
+ "error": {},
3697
+ "effectIds": {
3698
+ "readOnly": true,
3699
+ "type": "array",
3700
+ "items": {
3701
+ "type": "string"
3702
+ }
3703
+ },
3704
+ "cancelEffectIds": {
3705
+ "readOnly": true,
3706
+ "type": "array",
3707
+ "items": {
3708
+ "type": "string"
3709
+ }
3710
+ },
3711
+ "transcript": {
3712
+ "readOnly": true,
3713
+ "type": "array",
3714
+ "items": {
3715
+ "type": "object",
3716
+ "properties": {
3717
+ "keep": {
3718
+ "type": "integer",
3719
+ "minimum": 0,
3720
+ "maximum": 9007199254740991
3721
+ },
3722
+ "entries": {
3723
+ "type": "array",
3724
+ "items": {}
3725
+ },
3726
+ "length": {
3727
+ "type": "integer",
3728
+ "minimum": 0,
3729
+ "maximum": 9007199254740991
3730
+ }
3731
+ },
3732
+ "required": [
3733
+ "keep",
3734
+ "entries",
3735
+ "length"
3736
+ ],
3737
+ "additionalProperties": false
3738
+ }
3739
+ },
3740
+ "thrown": {
3741
+ "type": "object",
3742
+ "properties": {
3743
+ "code": {
3744
+ "type": "string"
3745
+ },
3746
+ "message": {
3747
+ "type": "string"
3748
+ }
3749
+ },
3750
+ "required": [
3751
+ "message"
3752
+ ],
3753
+ "additionalProperties": false
3754
+ }
3755
+ },
3756
+ "required": [
3757
+ "runId"
3758
+ ],
3759
+ "additionalProperties": false
3760
+ },
3761
+ "turn.completed.result": {
3762
+ "type": "object",
3763
+ "properties": {
3764
+ "cursor": {
3765
+ "type": "integer",
3766
+ "minimum": -9007199254740991,
3767
+ "maximum": 9007199254740991
3768
+ }
3769
+ },
3770
+ "additionalProperties": false
3771
+ },
3772
+ "turn.paused.params": {
3773
+ "type": "object",
3774
+ "properties": {
3775
+ "runId": {
3776
+ "type": "string",
3777
+ "minLength": 1,
3778
+ "maxLength": 512
3779
+ },
3780
+ "status": {
3781
+ "type": "string",
3782
+ "enum": [
3783
+ "completed",
3784
+ "paused",
3785
+ "yielded",
3786
+ "waiting",
3787
+ "uncertain",
3788
+ "failed",
3789
+ "cancelled"
3790
+ ]
3791
+ },
3792
+ "state": {},
3793
+ "output": {},
3794
+ "pending": {},
3795
+ "error": {},
3796
+ "effectIds": {
3797
+ "readOnly": true,
3798
+ "type": "array",
3799
+ "items": {
3800
+ "type": "string"
3801
+ }
3802
+ },
3803
+ "cancelEffectIds": {
3804
+ "readOnly": true,
3805
+ "type": "array",
3806
+ "items": {
3807
+ "type": "string"
3808
+ }
3809
+ },
3810
+ "transcript": {
3811
+ "readOnly": true,
3812
+ "type": "array",
3813
+ "items": {
3814
+ "type": "object",
3815
+ "properties": {
3816
+ "keep": {
3817
+ "type": "integer",
3818
+ "minimum": 0,
3819
+ "maximum": 9007199254740991
3820
+ },
3821
+ "entries": {
3822
+ "type": "array",
3823
+ "items": {}
3824
+ },
3825
+ "length": {
3826
+ "type": "integer",
3827
+ "minimum": 0,
3828
+ "maximum": 9007199254740991
3829
+ }
3830
+ },
3831
+ "required": [
3832
+ "keep",
3833
+ "entries",
3834
+ "length"
3835
+ ],
3836
+ "additionalProperties": false
3837
+ }
3838
+ },
3839
+ "thrown": {
3840
+ "type": "object",
3841
+ "properties": {
3842
+ "code": {
3843
+ "type": "string"
3844
+ },
3845
+ "message": {
3846
+ "type": "string"
3847
+ }
3848
+ },
3849
+ "required": [
3850
+ "message"
3851
+ ],
3852
+ "additionalProperties": false
3853
+ }
3854
+ },
3855
+ "required": [
3856
+ "runId"
3857
+ ],
3858
+ "additionalProperties": false
3859
+ },
3860
+ "turn.paused.result": {
3861
+ "type": "object",
3862
+ "properties": {
3863
+ "cursor": {
3864
+ "type": "integer",
3865
+ "minimum": -9007199254740991,
3866
+ "maximum": 9007199254740991
3867
+ }
3868
+ },
3869
+ "additionalProperties": false
3870
+ },
3871
+ "turn.waiting.params": {
3872
+ "type": "object",
3873
+ "properties": {
3874
+ "runId": {
3875
+ "type": "string",
3876
+ "minLength": 1,
3877
+ "maxLength": 512
3878
+ },
3879
+ "status": {
3880
+ "type": "string",
3881
+ "enum": [
3882
+ "completed",
3883
+ "paused",
3884
+ "yielded",
3885
+ "waiting",
3886
+ "uncertain",
3887
+ "failed",
3888
+ "cancelled"
3889
+ ]
3890
+ },
3891
+ "state": {},
3892
+ "output": {},
3893
+ "pending": {},
3894
+ "error": {},
3895
+ "effectIds": {
3896
+ "readOnly": true,
3897
+ "type": "array",
3898
+ "items": {
3899
+ "type": "string"
3900
+ }
3901
+ },
3902
+ "cancelEffectIds": {
3903
+ "readOnly": true,
3904
+ "type": "array",
3905
+ "items": {
3906
+ "type": "string"
3907
+ }
3908
+ },
3909
+ "transcript": {
3910
+ "readOnly": true,
3911
+ "type": "array",
3912
+ "items": {
3913
+ "type": "object",
3914
+ "properties": {
3915
+ "keep": {
3916
+ "type": "integer",
3917
+ "minimum": 0,
3918
+ "maximum": 9007199254740991
3919
+ },
3920
+ "entries": {
3921
+ "type": "array",
3922
+ "items": {}
3923
+ },
3924
+ "length": {
3925
+ "type": "integer",
3926
+ "minimum": 0,
3927
+ "maximum": 9007199254740991
3928
+ }
3929
+ },
3930
+ "required": [
3931
+ "keep",
3932
+ "entries",
3933
+ "length"
3934
+ ],
3935
+ "additionalProperties": false
3936
+ }
3937
+ },
3938
+ "thrown": {
3939
+ "type": "object",
3940
+ "properties": {
3941
+ "code": {
3942
+ "type": "string"
3943
+ },
3944
+ "message": {
3945
+ "type": "string"
3946
+ }
3947
+ },
3948
+ "required": [
3949
+ "message"
3950
+ ],
3951
+ "additionalProperties": false
3952
+ }
3953
+ },
3954
+ "required": [
3955
+ "runId"
3956
+ ],
3957
+ "additionalProperties": false
3958
+ },
3959
+ "turn.waiting.result": {
3960
+ "type": "object",
3961
+ "properties": {
3962
+ "cursor": {
3963
+ "type": "integer",
3964
+ "minimum": -9007199254740991,
3965
+ "maximum": 9007199254740991
3966
+ }
3967
+ },
3968
+ "additionalProperties": false
3969
+ },
3970
+ "turn.failed.params": {
3971
+ "type": "object",
3972
+ "properties": {
3973
+ "runId": {
3974
+ "type": "string",
3975
+ "minLength": 1,
3976
+ "maxLength": 512
3977
+ },
3978
+ "status": {
3979
+ "type": "string",
3980
+ "enum": [
3981
+ "completed",
3982
+ "paused",
3983
+ "yielded",
3984
+ "waiting",
3985
+ "uncertain",
3986
+ "failed",
3987
+ "cancelled"
3988
+ ]
3989
+ },
3990
+ "state": {},
3991
+ "output": {},
3992
+ "pending": {},
3993
+ "error": {},
3994
+ "effectIds": {
3995
+ "readOnly": true,
3996
+ "type": "array",
3997
+ "items": {
3998
+ "type": "string"
3999
+ }
4000
+ },
4001
+ "cancelEffectIds": {
4002
+ "readOnly": true,
4003
+ "type": "array",
4004
+ "items": {
4005
+ "type": "string"
4006
+ }
4007
+ },
4008
+ "transcript": {
4009
+ "readOnly": true,
4010
+ "type": "array",
4011
+ "items": {
4012
+ "type": "object",
4013
+ "properties": {
4014
+ "keep": {
4015
+ "type": "integer",
4016
+ "minimum": 0,
4017
+ "maximum": 9007199254740991
4018
+ },
4019
+ "entries": {
4020
+ "type": "array",
4021
+ "items": {}
4022
+ },
4023
+ "length": {
4024
+ "type": "integer",
4025
+ "minimum": 0,
4026
+ "maximum": 9007199254740991
4027
+ }
4028
+ },
4029
+ "required": [
4030
+ "keep",
4031
+ "entries",
4032
+ "length"
4033
+ ],
4034
+ "additionalProperties": false
4035
+ }
4036
+ },
4037
+ "thrown": {
4038
+ "type": "object",
4039
+ "properties": {
4040
+ "code": {
4041
+ "type": "string"
4042
+ },
4043
+ "message": {
4044
+ "type": "string"
4045
+ }
4046
+ },
4047
+ "required": [
4048
+ "message"
4049
+ ],
4050
+ "additionalProperties": false
4051
+ }
4052
+ },
4053
+ "required": [
4054
+ "runId"
4055
+ ],
4056
+ "additionalProperties": false
4057
+ },
4058
+ "turn.failed.result": {
4059
+ "type": "object",
4060
+ "properties": {
4061
+ "cursor": {
4062
+ "type": "integer",
4063
+ "minimum": -9007199254740991,
4064
+ "maximum": 9007199254740991
4065
+ }
4066
+ },
4067
+ "additionalProperties": false
4068
+ },
4069
+ "checkpoint.params": {
4070
+ "type": "object",
4071
+ "properties": {
4072
+ "runId": {
4073
+ "type": "string",
4074
+ "minLength": 1,
4075
+ "maxLength": 512
4076
+ },
4077
+ "status": {
4078
+ "type": "string",
4079
+ "enum": [
4080
+ "completed",
4081
+ "paused",
4082
+ "yielded",
4083
+ "waiting",
4084
+ "uncertain",
4085
+ "failed",
4086
+ "cancelled"
4087
+ ]
4088
+ },
4089
+ "state": {},
4090
+ "output": {},
4091
+ "pending": {},
4092
+ "error": {},
4093
+ "effectIds": {
4094
+ "readOnly": true,
4095
+ "type": "array",
4096
+ "items": {
4097
+ "type": "string"
4098
+ }
4099
+ },
4100
+ "cancelEffectIds": {
4101
+ "readOnly": true,
4102
+ "type": "array",
4103
+ "items": {
4104
+ "type": "string"
4105
+ }
4106
+ },
4107
+ "transcript": {
4108
+ "readOnly": true,
4109
+ "type": "array",
4110
+ "items": {
4111
+ "type": "object",
4112
+ "properties": {
4113
+ "keep": {
4114
+ "type": "integer",
4115
+ "minimum": 0,
4116
+ "maximum": 9007199254740991
4117
+ },
4118
+ "entries": {
4119
+ "type": "array",
4120
+ "items": {}
4121
+ },
4122
+ "length": {
4123
+ "type": "integer",
4124
+ "minimum": 0,
4125
+ "maximum": 9007199254740991
4126
+ }
4127
+ },
4128
+ "required": [
4129
+ "keep",
4130
+ "entries",
4131
+ "length"
4132
+ ],
4133
+ "additionalProperties": false
4134
+ }
4135
+ },
4136
+ "thrown": {
4137
+ "type": "object",
4138
+ "properties": {
4139
+ "code": {
4140
+ "type": "string"
4141
+ },
4142
+ "message": {
4143
+ "type": "string"
4144
+ }
4145
+ },
4146
+ "required": [
4147
+ "message"
4148
+ ],
4149
+ "additionalProperties": false
4150
+ }
4151
+ },
4152
+ "required": [
4153
+ "runId"
4154
+ ],
4155
+ "additionalProperties": false
4156
+ },
4157
+ "checkpoint.result": {
4158
+ "type": "object",
4159
+ "properties": {
4160
+ "cursor": {
4161
+ "type": "integer",
4162
+ "minimum": -9007199254740991,
4163
+ "maximum": 9007199254740991
4164
+ }
4165
+ },
4166
+ "additionalProperties": false
4167
+ },
4168
+ "workspace.read.params": {
4169
+ "anyOf": [
4170
+ {
4171
+ "type": "object",
4172
+ "properties": {
4173
+ "session": {
4174
+ "type": "object",
4175
+ "properties": {
4176
+ "ownerId": {
4177
+ "type": "string",
4178
+ "minLength": 1,
4179
+ "maxLength": 512
4180
+ },
4181
+ "environmentId": {
4182
+ "type": "string",
4183
+ "minLength": 1,
4184
+ "maxLength": 512
4185
+ },
4186
+ "activeTurnId": {
4187
+ "anyOf": [
4188
+ {
4189
+ "type": "string",
4190
+ "minLength": 1,
4191
+ "maxLength": 512
4192
+ },
4193
+ {
4194
+ "type": "null"
4195
+ }
4196
+ ]
4197
+ }
4198
+ },
4199
+ "required": [
4200
+ "ownerId",
4201
+ "activeTurnId"
4202
+ ],
4203
+ "additionalProperties": false
4204
+ },
4205
+ "spec": {},
4206
+ "tool": {
4207
+ "type": "string",
4208
+ "enum": [
4209
+ "bash",
4210
+ "read",
4211
+ "write",
4212
+ "edit",
4213
+ "grep",
4214
+ "glob"
4215
+ ]
4216
+ },
4217
+ "input": {}
4218
+ },
4219
+ "required": [
4220
+ "session",
4221
+ "spec",
4222
+ "tool",
4223
+ "input"
4224
+ ],
4225
+ "additionalProperties": false
4226
+ },
4227
+ {
4228
+ "type": "object",
4229
+ "properties": {
4230
+ "session": {
4231
+ "type": "object",
4232
+ "properties": {
4233
+ "ownerId": {
4234
+ "type": "string",
4235
+ "minLength": 1,
4236
+ "maxLength": 512
4237
+ },
4238
+ "environmentId": {
4239
+ "type": "string",
4240
+ "minLength": 1,
4241
+ "maxLength": 512
4242
+ },
4243
+ "activeTurnId": {
4244
+ "anyOf": [
4245
+ {
4246
+ "type": "string",
4247
+ "minLength": 1,
4248
+ "maxLength": 512
4249
+ },
4250
+ {
4251
+ "type": "null"
4252
+ }
4253
+ ]
4254
+ }
4255
+ },
4256
+ "required": [
4257
+ "ownerId",
4258
+ "activeTurnId"
4259
+ ],
4260
+ "additionalProperties": false
4261
+ },
4262
+ "spec": {},
4263
+ "bytes": {
4264
+ "type": "object",
4265
+ "properties": {
4266
+ "path": {
4267
+ "type": "string",
4268
+ "minLength": 1
4269
+ },
4270
+ "maxBytes": {
4271
+ "type": "integer",
4272
+ "exclusiveMinimum": 0,
4273
+ "maximum": 9007199254740991
4274
+ }
4275
+ },
4276
+ "required": [
4277
+ "path",
4278
+ "maxBytes"
4279
+ ],
4280
+ "additionalProperties": false
4281
+ }
4282
+ },
4283
+ "required": [
4284
+ "session",
4285
+ "spec",
4286
+ "bytes"
4287
+ ],
4288
+ "additionalProperties": false
4289
+ },
4290
+ {
4291
+ "type": "object",
4292
+ "properties": {
4293
+ "session": {
4294
+ "type": "object",
4295
+ "properties": {
4296
+ "ownerId": {
4297
+ "type": "string",
4298
+ "minLength": 1,
4299
+ "maxLength": 512
4300
+ },
4301
+ "environmentId": {
4302
+ "type": "string",
4303
+ "minLength": 1,
4304
+ "maxLength": 512
4305
+ },
4306
+ "activeTurnId": {
4307
+ "anyOf": [
4308
+ {
4309
+ "type": "string",
4310
+ "minLength": 1,
4311
+ "maxLength": 512
4312
+ },
4313
+ {
4314
+ "type": "null"
4315
+ }
4316
+ ]
4317
+ }
4318
+ },
4319
+ "required": [
4320
+ "ownerId",
4321
+ "activeTurnId"
4322
+ ],
4323
+ "additionalProperties": false
4324
+ },
4325
+ "spec": {},
4326
+ "list": {
4327
+ "type": "object",
4328
+ "properties": {
4329
+ "dir": {
4330
+ "type": "string",
4331
+ "minLength": 1
4332
+ },
4333
+ "maxEntries": {
4334
+ "type": "integer",
4335
+ "exclusiveMinimum": 0,
4336
+ "maximum": 9007199254740991
4337
+ }
4338
+ },
4339
+ "required": [
4340
+ "dir",
4341
+ "maxEntries"
4342
+ ],
4343
+ "additionalProperties": false
4344
+ }
4345
+ },
4346
+ "required": [
4347
+ "session",
4348
+ "spec",
4349
+ "list"
4350
+ ],
4351
+ "additionalProperties": false
4352
+ },
4353
+ {
4354
+ "type": "object",
4355
+ "properties": {
4356
+ "session": {
4357
+ "type": "object",
4358
+ "properties": {
4359
+ "ownerId": {
4360
+ "type": "string",
4361
+ "minLength": 1,
4362
+ "maxLength": 512
4363
+ },
4364
+ "environmentId": {
4365
+ "type": "string",
4366
+ "minLength": 1,
4367
+ "maxLength": 512
4368
+ },
4369
+ "activeTurnId": {
4370
+ "anyOf": [
4371
+ {
4372
+ "type": "string",
4373
+ "minLength": 1,
4374
+ "maxLength": 512
4375
+ },
4376
+ {
4377
+ "type": "null"
4378
+ }
4379
+ ]
4380
+ }
4381
+ },
4382
+ "required": [
4383
+ "ownerId",
4384
+ "activeTurnId"
4385
+ ],
4386
+ "additionalProperties": false
4387
+ },
4388
+ "spec": {},
4389
+ "disk": {
4390
+ "anyOf": [
4391
+ {
4392
+ "type": "object",
4393
+ "properties": {
4394
+ "list": {
4395
+ "type": "object",
4396
+ "properties": {
4397
+ "maxEntries": {
4398
+ "type": "integer",
4399
+ "exclusiveMinimum": 0,
4400
+ "maximum": 9007199254740991
4401
+ }
4402
+ },
4403
+ "required": [
4404
+ "maxEntries"
4405
+ ],
4406
+ "additionalProperties": false
4407
+ }
4408
+ },
4409
+ "required": [
4410
+ "list"
4411
+ ],
4412
+ "additionalProperties": false
4413
+ },
4414
+ {
4415
+ "type": "object",
4416
+ "properties": {
4417
+ "read": {
4418
+ "type": "object",
4419
+ "properties": {
4420
+ "path": {
4421
+ "type": "string",
4422
+ "minLength": 1
4423
+ },
4424
+ "offset": {
4425
+ "type": "integer",
4426
+ "minimum": 0,
4427
+ "maximum": 9007199254740991
4428
+ },
4429
+ "length": {
4430
+ "type": "integer",
4431
+ "exclusiveMinimum": 0,
4432
+ "maximum": 16777216
4433
+ }
4434
+ },
4435
+ "required": [
4436
+ "path",
4437
+ "offset",
4438
+ "length"
4439
+ ],
4440
+ "additionalProperties": false
4441
+ }
4442
+ },
4443
+ "required": [
4444
+ "read"
4445
+ ],
4446
+ "additionalProperties": false
4447
+ },
4448
+ {
4449
+ "type": "object",
4450
+ "properties": {
4451
+ "clear": {
4452
+ "type": "boolean",
4453
+ "const": true
4454
+ }
4455
+ },
4456
+ "required": [
4457
+ "clear"
4458
+ ],
4459
+ "additionalProperties": false
4460
+ },
4461
+ {
4462
+ "type": "object",
4463
+ "properties": {
4464
+ "put": {
4465
+ "type": "array",
4466
+ "items": {
4467
+ "type": "object",
4468
+ "properties": {
4469
+ "path": {
4470
+ "type": "string",
4471
+ "minLength": 1
4472
+ },
4473
+ "type": {
4474
+ "type": "string",
4475
+ "enum": [
4476
+ "file",
4477
+ "dir",
4478
+ "link"
4479
+ ]
4480
+ },
4481
+ "mode": {
4482
+ "type": "integer",
4483
+ "minimum": 0,
4484
+ "maximum": 9007199254740991
4485
+ },
4486
+ "mtimeMs": {
4487
+ "type": "number",
4488
+ "minimum": 0
4489
+ },
4490
+ "base64": {
4491
+ "type": "string"
4492
+ },
4493
+ "append": {
4494
+ "type": "boolean"
4495
+ },
4496
+ "target": {
4497
+ "type": "string"
4498
+ }
4499
+ },
4500
+ "required": [
4501
+ "path",
4502
+ "type"
4503
+ ],
4504
+ "additionalProperties": false
4505
+ }
4506
+ }
4507
+ },
4508
+ "required": [
4509
+ "put"
4510
+ ],
4511
+ "additionalProperties": false
4512
+ }
4513
+ ]
4514
+ }
4515
+ },
4516
+ "required": [
4517
+ "session",
4518
+ "spec",
4519
+ "disk"
4520
+ ],
4521
+ "additionalProperties": false
4522
+ }
4523
+ ]
4524
+ },
4525
+ "workspace.read.result": {
4526
+ "type": "object",
4527
+ "propertyNames": {
4528
+ "type": "string"
4529
+ },
4530
+ "additionalProperties": {}
4531
+ },
4532
+ "workspace.write.params": {
4533
+ "anyOf": [
4534
+ {
4535
+ "type": "object",
4536
+ "properties": {
4537
+ "session": {
4538
+ "type": "object",
4539
+ "properties": {
4540
+ "ownerId": {
4541
+ "type": "string",
4542
+ "minLength": 1,
4543
+ "maxLength": 512
4544
+ },
4545
+ "environmentId": {
4546
+ "type": "string",
4547
+ "minLength": 1,
4548
+ "maxLength": 512
4549
+ },
4550
+ "activeTurnId": {
4551
+ "anyOf": [
4552
+ {
4553
+ "type": "string",
4554
+ "minLength": 1,
4555
+ "maxLength": 512
4556
+ },
4557
+ {
4558
+ "type": "null"
4559
+ }
4560
+ ]
4561
+ }
4562
+ },
4563
+ "required": [
4564
+ "ownerId",
4565
+ "activeTurnId"
4566
+ ],
4567
+ "additionalProperties": false
4568
+ },
4569
+ "spec": {},
4570
+ "tool": {
4571
+ "type": "string",
4572
+ "enum": [
4573
+ "bash",
4574
+ "read",
4575
+ "write",
4576
+ "edit",
4577
+ "grep",
4578
+ "glob"
4579
+ ]
4580
+ },
4581
+ "input": {}
4582
+ },
4583
+ "required": [
4584
+ "session",
4585
+ "spec",
4586
+ "tool",
4587
+ "input"
4588
+ ],
4589
+ "additionalProperties": false
4590
+ },
4591
+ {
4592
+ "type": "object",
4593
+ "properties": {
4594
+ "session": {
4595
+ "type": "object",
4596
+ "properties": {
4597
+ "ownerId": {
4598
+ "type": "string",
4599
+ "minLength": 1,
4600
+ "maxLength": 512
4601
+ },
4602
+ "environmentId": {
4603
+ "type": "string",
4604
+ "minLength": 1,
4605
+ "maxLength": 512
4606
+ },
4607
+ "activeTurnId": {
4608
+ "anyOf": [
4609
+ {
4610
+ "type": "string",
4611
+ "minLength": 1,
4612
+ "maxLength": 512
4613
+ },
4614
+ {
4615
+ "type": "null"
4616
+ }
4617
+ ]
4618
+ }
4619
+ },
4620
+ "required": [
4621
+ "ownerId",
4622
+ "activeTurnId"
4623
+ ],
4624
+ "additionalProperties": false
4625
+ },
4626
+ "spec": {},
4627
+ "disk": {
4628
+ "anyOf": [
4629
+ {
4630
+ "type": "object",
4631
+ "properties": {
4632
+ "list": {
4633
+ "type": "object",
4634
+ "properties": {
4635
+ "maxEntries": {
4636
+ "type": "integer",
4637
+ "exclusiveMinimum": 0,
4638
+ "maximum": 9007199254740991
4639
+ }
4640
+ },
4641
+ "required": [
4642
+ "maxEntries"
4643
+ ],
4644
+ "additionalProperties": false
4645
+ }
4646
+ },
4647
+ "required": [
4648
+ "list"
4649
+ ],
4650
+ "additionalProperties": false
4651
+ },
4652
+ {
4653
+ "type": "object",
4654
+ "properties": {
4655
+ "read": {
4656
+ "type": "object",
4657
+ "properties": {
4658
+ "path": {
4659
+ "type": "string",
4660
+ "minLength": 1
4661
+ },
4662
+ "offset": {
4663
+ "type": "integer",
4664
+ "minimum": 0,
4665
+ "maximum": 9007199254740991
4666
+ },
4667
+ "length": {
4668
+ "type": "integer",
4669
+ "exclusiveMinimum": 0,
4670
+ "maximum": 16777216
4671
+ }
4672
+ },
4673
+ "required": [
4674
+ "path",
4675
+ "offset",
4676
+ "length"
4677
+ ],
4678
+ "additionalProperties": false
4679
+ }
4680
+ },
4681
+ "required": [
4682
+ "read"
4683
+ ],
4684
+ "additionalProperties": false
4685
+ },
4686
+ {
4687
+ "type": "object",
4688
+ "properties": {
4689
+ "clear": {
4690
+ "type": "boolean",
4691
+ "const": true
4692
+ }
4693
+ },
4694
+ "required": [
4695
+ "clear"
4696
+ ],
4697
+ "additionalProperties": false
4698
+ },
4699
+ {
4700
+ "type": "object",
4701
+ "properties": {
4702
+ "put": {
4703
+ "type": "array",
4704
+ "items": {
4705
+ "type": "object",
4706
+ "properties": {
4707
+ "path": {
4708
+ "type": "string",
4709
+ "minLength": 1
4710
+ },
4711
+ "type": {
4712
+ "type": "string",
4713
+ "enum": [
4714
+ "file",
4715
+ "dir",
4716
+ "link"
4717
+ ]
4718
+ },
4719
+ "mode": {
4720
+ "type": "integer",
4721
+ "minimum": 0,
4722
+ "maximum": 9007199254740991
4723
+ },
4724
+ "mtimeMs": {
4725
+ "type": "number",
4726
+ "minimum": 0
4727
+ },
4728
+ "base64": {
4729
+ "type": "string"
4730
+ },
4731
+ "append": {
4732
+ "type": "boolean"
4733
+ },
4734
+ "target": {
4735
+ "type": "string"
4736
+ }
4737
+ },
4738
+ "required": [
4739
+ "path",
4740
+ "type"
4741
+ ],
4742
+ "additionalProperties": false
4743
+ }
4744
+ }
4745
+ },
4746
+ "required": [
4747
+ "put"
4748
+ ],
4749
+ "additionalProperties": false
4750
+ }
4751
+ ]
4752
+ }
4753
+ },
4754
+ "required": [
4755
+ "session",
4756
+ "spec",
4757
+ "disk"
4758
+ ],
4759
+ "additionalProperties": false
4760
+ }
4761
+ ]
4762
+ },
4763
+ "workspace.write.result": {
4764
+ "type": "object",
4765
+ "propertyNames": {
4766
+ "type": "string"
4767
+ },
4768
+ "additionalProperties": {}
4769
+ },
4770
+ "workspace.exec.params": {
4771
+ "type": "object",
4772
+ "properties": {
4773
+ "session": {
4774
+ "type": "object",
4775
+ "properties": {
4776
+ "ownerId": {
4777
+ "type": "string",
4778
+ "minLength": 1,
4779
+ "maxLength": 512
4780
+ },
4781
+ "environmentId": {
4782
+ "type": "string",
4783
+ "minLength": 1,
4784
+ "maxLength": 512
4785
+ },
4786
+ "activeTurnId": {
4787
+ "anyOf": [
4788
+ {
4789
+ "type": "string",
4790
+ "minLength": 1,
4791
+ "maxLength": 512
4792
+ },
4793
+ {
4794
+ "type": "null"
4795
+ }
4796
+ ]
4797
+ }
4798
+ },
4799
+ "required": [
4800
+ "ownerId",
4801
+ "activeTurnId"
4802
+ ],
4803
+ "additionalProperties": false
4804
+ },
4805
+ "spec": {},
4806
+ "tool": {
4807
+ "type": "string",
4808
+ "enum": [
4809
+ "bash",
4810
+ "read",
4811
+ "write",
4812
+ "edit",
4813
+ "grep",
4814
+ "glob"
4815
+ ]
4816
+ },
4817
+ "input": {}
4818
+ },
4819
+ "required": [
4820
+ "session",
4821
+ "spec",
4822
+ "tool",
4823
+ "input"
4824
+ ],
4825
+ "additionalProperties": false
4826
+ },
4827
+ "workspace.exec.result": {
4828
+ "type": "object",
4829
+ "propertyNames": {
4830
+ "type": "string"
4831
+ },
4832
+ "additionalProperties": {}
4833
+ },
4834
+ "workspace.report.params": {
4835
+ "type": "object",
4836
+ "properties": {},
4837
+ "additionalProperties": false
4838
+ },
4839
+ "workspace.report.result": {
4840
+ "type": "object",
4841
+ "propertyNames": {
4842
+ "type": "string"
4843
+ },
4844
+ "additionalProperties": {}
4845
+ },
4846
+ "workspace.sweep.params": {
4847
+ "type": "object",
4848
+ "properties": {
4849
+ "now": {
4850
+ "type": "number"
4851
+ }
4852
+ },
4853
+ "additionalProperties": false
4854
+ },
4855
+ "workspace.sweep.result": {
4856
+ "type": "object",
4857
+ "properties": {
4858
+ "workspaces": {
4859
+ "type": "array",
4860
+ "items": {
4861
+ "type": "object",
4862
+ "properties": {
4863
+ "key": {
4864
+ "type": "string",
4865
+ "minLength": 1,
4866
+ "maxLength": 512
4867
+ },
4868
+ "sessionId": {
4869
+ "type": "string",
4870
+ "minLength": 1,
4871
+ "maxLength": 512
4872
+ },
4873
+ "environmentId": {
4874
+ "type": "string",
4875
+ "minLength": 1,
4876
+ "maxLength": 512
4877
+ },
4878
+ "backend": {
4879
+ "type": "string"
4880
+ },
4881
+ "image": {
4882
+ "type": "string"
4883
+ },
4884
+ "state": {
4885
+ "type": "string",
4886
+ "enum": [
4887
+ "creating",
4888
+ "running",
4889
+ "stopped"
4890
+ ]
4891
+ },
4892
+ "createdAt": {
4893
+ "type": "string"
4894
+ },
4895
+ "updatedAt": {
4896
+ "type": "string"
4897
+ }
4898
+ },
4899
+ "required": [
4900
+ "key",
4901
+ "sessionId",
4902
+ "backend",
4903
+ "image",
4904
+ "state",
4905
+ "createdAt",
4906
+ "updatedAt"
4907
+ ],
4908
+ "additionalProperties": false
4909
+ }
4910
+ }
4911
+ },
4912
+ "required": [
4913
+ "workspaces"
4914
+ ],
4915
+ "additionalProperties": false
4916
+ },
4917
+ "workspace.remove.params": {
4918
+ "type": "object",
4919
+ "properties": {
4920
+ "keys": {
4921
+ "type": "array",
4922
+ "items": {
4923
+ "type": "string",
4924
+ "minLength": 1
4925
+ }
4926
+ },
4927
+ "environmentIds": {
4928
+ "type": "array",
4929
+ "items": {
4930
+ "type": "string",
4931
+ "minLength": 1,
4932
+ "maxLength": 512
4933
+ }
4934
+ },
4935
+ "all": {
4936
+ "type": "boolean",
4937
+ "const": true
4938
+ }
4939
+ },
4940
+ "additionalProperties": false
4941
+ },
4942
+ "workspace.remove.result": {
4943
+ "type": "object",
4944
+ "properties": {},
4945
+ "additionalProperties": false
4946
+ },
4947
+ "cancel.params": {
4948
+ "type": "object",
4949
+ "properties": {
4950
+ "runId": {
4951
+ "type": "string",
4952
+ "minLength": 1,
4953
+ "maxLength": 512
4954
+ },
4955
+ "reason": {
4956
+ "type": "string",
4957
+ "enum": [
4958
+ "cancel",
4959
+ "shutdown",
4960
+ "deadline",
4961
+ "ownership.lost"
4962
+ ]
4963
+ },
4964
+ "message": {
4965
+ "type": "string"
4966
+ }
4967
+ },
4968
+ "required": [
4969
+ "runId",
4970
+ "reason"
4971
+ ],
4972
+ "additionalProperties": false
4973
+ }
4974
+ }
4975
+ }