synth-code 0.0.1__py3-none-macosx_15_0_arm64.whl

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 (110) hide show
  1. synth_code/__init__.py +0 -0
  2. synth_code/account.py +551 -0
  3. synth_code/account_http.py +86 -0
  4. synth_code/account_refusal.py +80 -0
  5. synth_code/accounting.py +148 -0
  6. synth_code/activity_grouping.py +149 -0
  7. synth_code/agent_panels.py +127 -0
  8. synth_code/approvals.py +397 -0
  9. synth_code/blobs.py +31 -0
  10. synth_code/cli.py +734 -0
  11. synth_code/client.py +413 -0
  12. synth_code/composer_delivery.py +139 -0
  13. synth_code/conversation.py +949 -0
  14. synth_code/daemon.py +34 -0
  15. synth_code/edition.py +306 -0
  16. synth_code/enrollment.py +304 -0
  17. synth_code/file_edit_facts.py +10 -0
  18. synth_code/freeze.py +234 -0
  19. synth_code/grant.py +59 -0
  20. synth_code/history.py +140 -0
  21. synth_code/history_generated.py +219 -0
  22. synth_code/history_wire.py +166 -0
  23. synth_code/image_input.py +109 -0
  24. synth_code/image_preview.py +105 -0
  25. synth_code/legacy_history.py +161 -0
  26. synth_code/live_turns.py +171 -0
  27. synth_code/model_picker.py +311 -0
  28. synth_code/native/manifest.json +1 -0
  29. synth_code/native/synth-code-runtime +0 -0
  30. synth_code/native.py +95 -0
  31. synth_code/oauth.py +284 -0
  32. synth_code/operator.py +116 -0
  33. synth_code/pack_source.py +65 -0
  34. synth_code/panel_request.py +291 -0
  35. synth_code/panels.py +40 -0
  36. synth_code/plugin_host.py +459 -0
  37. synth_code/protocol.py +35 -0
  38. synth_code/provider.py +313 -0
  39. synth_code/provider_fault.py +173 -0
  40. synth_code/provider_frames.py +571 -0
  41. synth_code/recommendation.py +324 -0
  42. synth_code/report.py +72 -0
  43. synth_code/research_events.py +44 -0
  44. synth_code/research_trace.py +449 -0
  45. synth_code/rex_view.py +58 -0
  46. synth_code/runtime_refusal.py +108 -0
  47. synth_code/schema/budgets.json +17 -0
  48. synth_code/schema/history-v2.json +1002 -0
  49. synth_code/session.py +291 -0
  50. synth_code/shoal.py +564 -0
  51. synth_code/side_panel.py +309 -0
  52. synth_code/skills.py +269 -0
  53. synth_code/slash.py +425 -0
  54. synth_code/source_view.py +135 -0
  55. synth_code/starter.json +13 -0
  56. synth_code/stdio.py +75 -0
  57. synth_code/stream.py +142 -0
  58. synth_code/subscriptions.py +267 -0
  59. synth_code/synth_authority.py +362 -0
  60. synth_code/synth_extra.py +32 -0
  61. synth_code/terminal.py +817 -0
  62. synth_code/terminal_journal.py +284 -0
  63. synth_code/terminal_layout.py +643 -0
  64. synth_code/terminal_surfaces.py +470 -0
  65. synth_code/terminal_viewport.py +125 -0
  66. synth_code/tool_render.py +86 -0
  67. synth_code/transcript_frames.py +212 -0
  68. synth_code/transcript_placement.py +63 -0
  69. synth_code/transcript_rows.py +456 -0
  70. synth_code/transport.py +243 -0
  71. synth_code/v001_history.py +468 -0
  72. synth_code/view.py +854 -0
  73. synth_code/views/__init__.py +93 -0
  74. synth_code/views/charts.py +196 -0
  75. synth_code/views/curses_adapter.py +116 -0
  76. synth_code/views/engine.py +170 -0
  77. synth_code/views/model.py +226 -0
  78. synth_code/views/primitives.py +270 -0
  79. synth_code/views/tiling.py +124 -0
  80. synth_code-0.0.1.dist-info/METADATA +50 -0
  81. synth_code-0.0.1.dist-info/RECORD +110 -0
  82. synth_code-0.0.1.dist-info/WHEEL +5 -0
  83. synth_code-0.0.1.dist-info/entry_points.txt +6 -0
  84. synth_code-0.0.1.dist-info/licenses/temper/LICENSE-APACHE +190 -0
  85. synth_code-0.0.1.dist-info/licenses/temper/LICENSE-MIT +21 -0
  86. synth_code-0.0.1.dist-info/licenses/temper/SOURCE.json +433 -0
  87. synth_code-0.0.1.dist-info/top_level.txt +2 -0
  88. synth_code_plugins/_sdk/__init__.py +19 -0
  89. synth_code_plugins/_sdk/callback_wire.py +240 -0
  90. synth_code_plugins/_sdk/callbacks.py +317 -0
  91. synth_code_plugins/_sdk/compliance.py +51 -0
  92. synth_code_plugins/_sdk/contracts.py +236 -0
  93. synth_code_plugins/_sdk/discovery.py +75 -0
  94. synth_code_plugins/_sdk/job_binding.py +71 -0
  95. synth_code_plugins/_sdk/lifecycle.py +50 -0
  96. synth_code_plugins/_sdk/lifecycle_generated.py +15 -0
  97. synth_code_plugins/_sdk/manifest.py +269 -0
  98. synth_code_plugins/_sdk/pack.py +332 -0
  99. synth_code_plugins/_sdk/push.py +98 -0
  100. synth_code_plugins/_sdk/records.py +26 -0
  101. synth_code_plugins/_sdk/registry.py +491 -0
  102. synth_code_plugins/_sdk/schemas.py +210 -0
  103. synth_code_plugins/_sdk/sources.py +230 -0
  104. synth_code_plugins/_sdk/surfaces.py +54 -0
  105. synth_code_plugins/_sdk/tools.py +172 -0
  106. synth_code_plugins/_sdk/worker_memory.py +49 -0
  107. synth_code_plugins/core/SKILL.md +6 -0
  108. synth_code_plugins/core/__init__.py +21 -0
  109. synth_code_plugins/core/plugin.toml +44 -0
  110. synth_code_plugins/core/source.py +18 -0
@@ -0,0 +1,1002 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "HistorySnapshot",
4
+ "type": "object",
5
+ "required": [
6
+ "active_turns",
7
+ "approvals",
8
+ "cursor",
9
+ "open_tools",
10
+ "rows",
11
+ "run",
12
+ "schema",
13
+ "transcript"
14
+ ],
15
+ "properties": {
16
+ "active_turns": {
17
+ "type": "array",
18
+ "items": {
19
+ "$ref": "#/definitions/DurableEvent"
20
+ }
21
+ },
22
+ "approvals": {
23
+ "type": "array",
24
+ "items": {
25
+ "$ref": "#/definitions/DurableEvent"
26
+ }
27
+ },
28
+ "before": {
29
+ "type": [
30
+ "integer",
31
+ "null"
32
+ ],
33
+ "format": "uint64",
34
+ "minimum": 0.0
35
+ },
36
+ "cursor": {
37
+ "type": "integer",
38
+ "format": "uint64",
39
+ "minimum": 0.0
40
+ },
41
+ "open_tools": {
42
+ "type": "array",
43
+ "items": {
44
+ "$ref": "#/definitions/TranscriptRow"
45
+ }
46
+ },
47
+ "rows": {
48
+ "type": "array",
49
+ "items": {
50
+ "$ref": "#/definitions/DurableEvent"
51
+ }
52
+ },
53
+ "run": {
54
+ "type": "string"
55
+ },
56
+ "schema": {
57
+ "$ref": "#/definitions/HistorySchema"
58
+ },
59
+ "transcript": {
60
+ "type": "array",
61
+ "items": {
62
+ "$ref": "#/definitions/TranscriptRow"
63
+ }
64
+ }
65
+ },
66
+ "additionalProperties": false,
67
+ "definitions": {
68
+ "Actor": {
69
+ "oneOf": [
70
+ {
71
+ "type": "object",
72
+ "required": [
73
+ "kind"
74
+ ],
75
+ "properties": {
76
+ "kind": {
77
+ "type": "string",
78
+ "enum": [
79
+ "owner"
80
+ ]
81
+ }
82
+ },
83
+ "additionalProperties": false
84
+ },
85
+ {
86
+ "type": "object",
87
+ "required": [
88
+ "kind"
89
+ ],
90
+ "properties": {
91
+ "kind": {
92
+ "type": "string",
93
+ "enum": [
94
+ "engine"
95
+ ]
96
+ }
97
+ },
98
+ "additionalProperties": false
99
+ },
100
+ {
101
+ "type": "object",
102
+ "required": [
103
+ "id",
104
+ "kind"
105
+ ],
106
+ "properties": {
107
+ "id": {
108
+ "type": "string"
109
+ },
110
+ "kind": {
111
+ "type": "string",
112
+ "enum": [
113
+ "agent"
114
+ ]
115
+ }
116
+ },
117
+ "additionalProperties": false
118
+ },
119
+ {
120
+ "type": "object",
121
+ "required": [
122
+ "id",
123
+ "kind"
124
+ ],
125
+ "properties": {
126
+ "id": {
127
+ "type": "string"
128
+ },
129
+ "kind": {
130
+ "type": "string",
131
+ "enum": [
132
+ "provider"
133
+ ]
134
+ }
135
+ },
136
+ "additionalProperties": false
137
+ },
138
+ {
139
+ "type": "object",
140
+ "required": [
141
+ "id",
142
+ "kind"
143
+ ],
144
+ "properties": {
145
+ "id": {
146
+ "type": "string"
147
+ },
148
+ "kind": {
149
+ "type": "string",
150
+ "enum": [
151
+ "plugin"
152
+ ]
153
+ }
154
+ },
155
+ "additionalProperties": false
156
+ }
157
+ ]
158
+ },
159
+ "BlobRef": {
160
+ "type": "object",
161
+ "required": [
162
+ "bytes",
163
+ "sha256"
164
+ ],
165
+ "properties": {
166
+ "bytes": {
167
+ "type": "integer",
168
+ "format": "uint64",
169
+ "minimum": 0.0
170
+ },
171
+ "sha256": {
172
+ "type": "string"
173
+ }
174
+ },
175
+ "additionalProperties": false
176
+ },
177
+ "Cause": {
178
+ "oneOf": [
179
+ {
180
+ "type": "object",
181
+ "required": [
182
+ "id",
183
+ "kind"
184
+ ],
185
+ "properties": {
186
+ "id": {
187
+ "type": "string"
188
+ },
189
+ "kind": {
190
+ "type": "string",
191
+ "enum": [
192
+ "input"
193
+ ]
194
+ }
195
+ },
196
+ "additionalProperties": false
197
+ },
198
+ {
199
+ "type": "object",
200
+ "required": [
201
+ "id",
202
+ "kind"
203
+ ],
204
+ "properties": {
205
+ "id": {
206
+ "type": "string"
207
+ },
208
+ "kind": {
209
+ "type": "string",
210
+ "enum": [
211
+ "turn"
212
+ ]
213
+ }
214
+ },
215
+ "additionalProperties": false
216
+ },
217
+ {
218
+ "type": "object",
219
+ "required": [
220
+ "id",
221
+ "kind"
222
+ ],
223
+ "properties": {
224
+ "id": {
225
+ "type": "string"
226
+ },
227
+ "kind": {
228
+ "type": "string",
229
+ "enum": [
230
+ "tool"
231
+ ]
232
+ }
233
+ },
234
+ "additionalProperties": false
235
+ },
236
+ {
237
+ "type": "object",
238
+ "required": [
239
+ "id",
240
+ "kind"
241
+ ],
242
+ "properties": {
243
+ "id": {
244
+ "type": "string"
245
+ },
246
+ "kind": {
247
+ "type": "string",
248
+ "enum": [
249
+ "effect"
250
+ ]
251
+ }
252
+ },
253
+ "additionalProperties": false
254
+ },
255
+ {
256
+ "type": "object",
257
+ "required": [
258
+ "id",
259
+ "kind"
260
+ ],
261
+ "properties": {
262
+ "id": {
263
+ "type": "string"
264
+ },
265
+ "kind": {
266
+ "type": "string",
267
+ "enum": [
268
+ "node"
269
+ ]
270
+ }
271
+ },
272
+ "additionalProperties": false
273
+ },
274
+ {
275
+ "type": "object",
276
+ "required": [
277
+ "kind",
278
+ "reason"
279
+ ],
280
+ "properties": {
281
+ "kind": {
282
+ "type": "string",
283
+ "enum": [
284
+ "system"
285
+ ]
286
+ },
287
+ "reason": {
288
+ "type": "string"
289
+ }
290
+ },
291
+ "additionalProperties": false
292
+ }
293
+ ]
294
+ },
295
+ "DurableEvent": {
296
+ "type": "object",
297
+ "required": [
298
+ "actor",
299
+ "actor_ref",
300
+ "at",
301
+ "cause",
302
+ "cause_ref",
303
+ "committed_at",
304
+ "event_id",
305
+ "id",
306
+ "kind",
307
+ "kind_version",
308
+ "payload",
309
+ "run",
310
+ "schema",
311
+ "seq",
312
+ "subject",
313
+ "version"
314
+ ],
315
+ "properties": {
316
+ "actor": {
317
+ "type": "string"
318
+ },
319
+ "actor_ref": {
320
+ "$ref": "#/definitions/Actor"
321
+ },
322
+ "at": {
323
+ "type": "string"
324
+ },
325
+ "cause": {
326
+ "type": "integer",
327
+ "format": "uint64",
328
+ "minimum": 0.0
329
+ },
330
+ "cause_ref": {
331
+ "$ref": "#/definitions/Cause"
332
+ },
333
+ "committed_at": {
334
+ "type": "string"
335
+ },
336
+ "event_id": {
337
+ "type": "string"
338
+ },
339
+ "history_change": {
340
+ "anyOf": [
341
+ {
342
+ "$ref": "#/definitions/HistoryChange"
343
+ },
344
+ {
345
+ "type": "null"
346
+ }
347
+ ]
348
+ },
349
+ "id": {
350
+ "type": "string"
351
+ },
352
+ "kind": {
353
+ "type": "string"
354
+ },
355
+ "kind_version": {
356
+ "type": "integer",
357
+ "format": "uint16",
358
+ "minimum": 0.0
359
+ },
360
+ "links": {
361
+ "type": [
362
+ "array",
363
+ "null"
364
+ ],
365
+ "items": true
366
+ },
367
+ "operation": true,
368
+ "payload": {
369
+ "type": "object",
370
+ "additionalProperties": true
371
+ },
372
+ "profile": {
373
+ "type": [
374
+ "string",
375
+ "null"
376
+ ]
377
+ },
378
+ "run": {
379
+ "type": "string"
380
+ },
381
+ "schema": {
382
+ "$ref": "#/definitions/HistorySchema"
383
+ },
384
+ "seq": {
385
+ "type": "integer",
386
+ "format": "uint64",
387
+ "minimum": 0.0
388
+ },
389
+ "source_schema": true,
390
+ "subject": {
391
+ "$ref": "#/definitions/Subject"
392
+ },
393
+ "turn": {
394
+ "type": [
395
+ "string",
396
+ "null"
397
+ ]
398
+ },
399
+ "version": {
400
+ "type": "integer",
401
+ "format": "uint16",
402
+ "minimum": 0.0
403
+ }
404
+ },
405
+ "additionalProperties": false
406
+ },
407
+ "HistoryChange": {
408
+ "type": "object",
409
+ "required": [
410
+ "cursor",
411
+ "display"
412
+ ],
413
+ "properties": {
414
+ "cursor": {
415
+ "type": "integer",
416
+ "format": "uint64",
417
+ "minimum": 0.0
418
+ },
419
+ "display": {
420
+ "type": "boolean"
421
+ },
422
+ "upsert": {
423
+ "anyOf": [
424
+ {
425
+ "$ref": "#/definitions/TranscriptRow"
426
+ },
427
+ {
428
+ "type": "null"
429
+ }
430
+ ]
431
+ }
432
+ },
433
+ "additionalProperties": false
434
+ },
435
+ "HistorySchema": {
436
+ "type": "string",
437
+ "enum": [
438
+ "synth-code.v2"
439
+ ]
440
+ },
441
+ "InputPart": {
442
+ "oneOf": [
443
+ {
444
+ "type": "object",
445
+ "required": [
446
+ "text",
447
+ "type"
448
+ ],
449
+ "properties": {
450
+ "text": {
451
+ "type": "string"
452
+ },
453
+ "type": {
454
+ "type": "string",
455
+ "enum": [
456
+ "text"
457
+ ]
458
+ }
459
+ },
460
+ "additionalProperties": false
461
+ },
462
+ {
463
+ "type": "object",
464
+ "required": [
465
+ "bytes",
466
+ "sha256",
467
+ "type"
468
+ ],
469
+ "properties": {
470
+ "bytes": {
471
+ "type": "integer",
472
+ "format": "uint64",
473
+ "minimum": 0.0
474
+ },
475
+ "sha256": {
476
+ "type": "string"
477
+ },
478
+ "type": {
479
+ "type": "string",
480
+ "enum": [
481
+ "blob"
482
+ ]
483
+ }
484
+ },
485
+ "additionalProperties": false
486
+ }
487
+ ]
488
+ },
489
+ "MessagePhase": {
490
+ "type": "string",
491
+ "enum": [
492
+ "commentary",
493
+ "final"
494
+ ]
495
+ },
496
+ "Subject": {
497
+ "oneOf": [
498
+ {
499
+ "type": "object",
500
+ "required": [
501
+ "id",
502
+ "kind"
503
+ ],
504
+ "properties": {
505
+ "id": {
506
+ "type": "string"
507
+ },
508
+ "kind": {
509
+ "type": "string",
510
+ "enum": [
511
+ "run"
512
+ ]
513
+ }
514
+ },
515
+ "additionalProperties": false
516
+ },
517
+ {
518
+ "type": "object",
519
+ "required": [
520
+ "id",
521
+ "kind"
522
+ ],
523
+ "properties": {
524
+ "id": {
525
+ "type": "string"
526
+ },
527
+ "kind": {
528
+ "type": "string",
529
+ "enum": [
530
+ "input"
531
+ ]
532
+ }
533
+ },
534
+ "additionalProperties": false
535
+ },
536
+ {
537
+ "type": "object",
538
+ "required": [
539
+ "id",
540
+ "kind"
541
+ ],
542
+ "properties": {
543
+ "id": {
544
+ "type": "string"
545
+ },
546
+ "kind": {
547
+ "type": "string",
548
+ "enum": [
549
+ "turn"
550
+ ]
551
+ }
552
+ },
553
+ "additionalProperties": false
554
+ },
555
+ {
556
+ "type": "object",
557
+ "required": [
558
+ "id",
559
+ "kind"
560
+ ],
561
+ "properties": {
562
+ "id": {
563
+ "type": "string"
564
+ },
565
+ "kind": {
566
+ "type": "string",
567
+ "enum": [
568
+ "tool"
569
+ ]
570
+ }
571
+ },
572
+ "additionalProperties": false
573
+ },
574
+ {
575
+ "type": "object",
576
+ "required": [
577
+ "id",
578
+ "kind"
579
+ ],
580
+ "properties": {
581
+ "id": {
582
+ "type": "string"
583
+ },
584
+ "kind": {
585
+ "type": "string",
586
+ "enum": [
587
+ "effect"
588
+ ]
589
+ }
590
+ },
591
+ "additionalProperties": false
592
+ },
593
+ {
594
+ "type": "object",
595
+ "required": [
596
+ "id",
597
+ "kind"
598
+ ],
599
+ "properties": {
600
+ "id": {
601
+ "type": "string"
602
+ },
603
+ "kind": {
604
+ "type": "string",
605
+ "enum": [
606
+ "node"
607
+ ]
608
+ }
609
+ },
610
+ "additionalProperties": false
611
+ },
612
+ {
613
+ "type": "object",
614
+ "required": [
615
+ "id",
616
+ "kind"
617
+ ],
618
+ "properties": {
619
+ "id": {
620
+ "type": "string"
621
+ },
622
+ "kind": {
623
+ "type": "string",
624
+ "enum": [
625
+ "provider"
626
+ ]
627
+ }
628
+ },
629
+ "additionalProperties": false
630
+ },
631
+ {
632
+ "type": "object",
633
+ "required": [
634
+ "id",
635
+ "kind"
636
+ ],
637
+ "properties": {
638
+ "id": {
639
+ "type": "string"
640
+ },
641
+ "kind": {
642
+ "type": "string",
643
+ "enum": [
644
+ "viewer"
645
+ ]
646
+ }
647
+ },
648
+ "additionalProperties": false
649
+ },
650
+ {
651
+ "type": "object",
652
+ "required": [
653
+ "id",
654
+ "kind"
655
+ ],
656
+ "properties": {
657
+ "id": {
658
+ "type": "string"
659
+ },
660
+ "kind": {
661
+ "type": "string",
662
+ "enum": [
663
+ "source"
664
+ ]
665
+ }
666
+ },
667
+ "additionalProperties": false
668
+ },
669
+ {
670
+ "type": "object",
671
+ "required": [
672
+ "id",
673
+ "kind"
674
+ ],
675
+ "properties": {
676
+ "id": {
677
+ "type": "string"
678
+ },
679
+ "kind": {
680
+ "type": "string",
681
+ "enum": [
682
+ "message"
683
+ ]
684
+ }
685
+ },
686
+ "additionalProperties": false
687
+ },
688
+ {
689
+ "type": "object",
690
+ "required": [
691
+ "id",
692
+ "kind"
693
+ ],
694
+ "properties": {
695
+ "id": {
696
+ "type": "string"
697
+ },
698
+ "kind": {
699
+ "type": "string",
700
+ "enum": [
701
+ "config"
702
+ ]
703
+ }
704
+ },
705
+ "additionalProperties": false
706
+ },
707
+ {
708
+ "type": "object",
709
+ "required": [
710
+ "id",
711
+ "kind"
712
+ ],
713
+ "properties": {
714
+ "id": {
715
+ "type": "string"
716
+ },
717
+ "kind": {
718
+ "type": "string",
719
+ "enum": [
720
+ "approval"
721
+ ]
722
+ }
723
+ },
724
+ "additionalProperties": false
725
+ },
726
+ {
727
+ "type": "object",
728
+ "required": [
729
+ "id",
730
+ "kind"
731
+ ],
732
+ "properties": {
733
+ "id": {
734
+ "type": "string"
735
+ },
736
+ "kind": {
737
+ "type": "string",
738
+ "enum": [
739
+ "artifact"
740
+ ]
741
+ }
742
+ },
743
+ "additionalProperties": false
744
+ },
745
+ {
746
+ "type": "object",
747
+ "required": [
748
+ "id",
749
+ "kind"
750
+ ],
751
+ "properties": {
752
+ "id": {
753
+ "type": "string"
754
+ },
755
+ "kind": {
756
+ "type": "string",
757
+ "enum": [
758
+ "wake"
759
+ ]
760
+ }
761
+ },
762
+ "additionalProperties": false
763
+ },
764
+ {
765
+ "type": "object",
766
+ "required": [
767
+ "id",
768
+ "kind"
769
+ ],
770
+ "properties": {
771
+ "id": {
772
+ "type": "string"
773
+ },
774
+ "kind": {
775
+ "type": "string",
776
+ "enum": [
777
+ "job"
778
+ ]
779
+ }
780
+ },
781
+ "additionalProperties": false
782
+ },
783
+ {
784
+ "type": "object",
785
+ "required": [
786
+ "id",
787
+ "kind"
788
+ ],
789
+ "properties": {
790
+ "id": {
791
+ "type": "string"
792
+ },
793
+ "kind": {
794
+ "type": "string",
795
+ "enum": [
796
+ "machine"
797
+ ]
798
+ }
799
+ },
800
+ "additionalProperties": false
801
+ }
802
+ ]
803
+ },
804
+ "TranscriptRow": {
805
+ "oneOf": [
806
+ {
807
+ "type": "object",
808
+ "required": [
809
+ "id",
810
+ "kind",
811
+ "parts",
812
+ "seq",
813
+ "target"
814
+ ],
815
+ "properties": {
816
+ "id": {
817
+ "type": "string"
818
+ },
819
+ "kind": {
820
+ "type": "string",
821
+ "enum": [
822
+ "input"
823
+ ]
824
+ },
825
+ "parts": {
826
+ "type": "array",
827
+ "items": {
828
+ "$ref": "#/definitions/InputPart"
829
+ }
830
+ },
831
+ "seq": {
832
+ "type": "integer",
833
+ "format": "uint64",
834
+ "minimum": 0.0
835
+ },
836
+ "target": {
837
+ "type": "string"
838
+ }
839
+ },
840
+ "additionalProperties": false
841
+ },
842
+ {
843
+ "type": "object",
844
+ "required": [
845
+ "index",
846
+ "kind",
847
+ "message_id",
848
+ "phase",
849
+ "role",
850
+ "seq",
851
+ "stream_final",
852
+ "turn"
853
+ ],
854
+ "properties": {
855
+ "index": {
856
+ "type": "integer",
857
+ "format": "uint64",
858
+ "minimum": 0.0
859
+ },
860
+ "kind": {
861
+ "type": "string",
862
+ "enum": [
863
+ "message"
864
+ ]
865
+ },
866
+ "message_id": {
867
+ "type": "string"
868
+ },
869
+ "phase": {
870
+ "$ref": "#/definitions/MessagePhase"
871
+ },
872
+ "role": {
873
+ "type": "string"
874
+ },
875
+ "seq": {
876
+ "type": "integer",
877
+ "format": "uint64",
878
+ "minimum": 0.0
879
+ },
880
+ "stream_final": {
881
+ "type": "boolean"
882
+ },
883
+ "text": {
884
+ "type": [
885
+ "string",
886
+ "null"
887
+ ]
888
+ },
889
+ "text_ref": {
890
+ "anyOf": [
891
+ {
892
+ "$ref": "#/definitions/BlobRef"
893
+ },
894
+ {
895
+ "type": "null"
896
+ }
897
+ ]
898
+ },
899
+ "turn": {
900
+ "type": "string"
901
+ }
902
+ },
903
+ "additionalProperties": false
904
+ },
905
+ {
906
+ "type": "object",
907
+ "required": [
908
+ "actions",
909
+ "kind",
910
+ "seq",
911
+ "target",
912
+ "tool_id",
913
+ "tool_kind",
914
+ "turn"
915
+ ],
916
+ "properties": {
917
+ "actions": {
918
+ "type": "array",
919
+ "items": true
920
+ },
921
+ "finish": true,
922
+ "kind": {
923
+ "type": "string",
924
+ "enum": [
925
+ "tool"
926
+ ]
927
+ },
928
+ "parent_tool_id": {
929
+ "type": [
930
+ "string",
931
+ "null"
932
+ ]
933
+ },
934
+ "seq": {
935
+ "type": "integer",
936
+ "format": "uint64",
937
+ "minimum": 0.0
938
+ },
939
+ "target": {
940
+ "type": "string"
941
+ },
942
+ "tool_id": {
943
+ "type": "string"
944
+ },
945
+ "tool_kind": {
946
+ "type": "string"
947
+ },
948
+ "turn": {
949
+ "type": "string"
950
+ }
951
+ },
952
+ "additionalProperties": false
953
+ },
954
+ {
955
+ "type": "object",
956
+ "required": [
957
+ "item",
958
+ "kind",
959
+ "seq",
960
+ "turn"
961
+ ],
962
+ "properties": {
963
+ "item": {
964
+ "type": "string"
965
+ },
966
+ "kind": {
967
+ "type": "string",
968
+ "enum": [
969
+ "reasoning"
970
+ ]
971
+ },
972
+ "seq": {
973
+ "type": "integer",
974
+ "format": "uint64",
975
+ "minimum": 0.0
976
+ },
977
+ "text": {
978
+ "type": [
979
+ "string",
980
+ "null"
981
+ ]
982
+ },
983
+ "text_ref": {
984
+ "anyOf": [
985
+ {
986
+ "$ref": "#/definitions/BlobRef"
987
+ },
988
+ {
989
+ "type": "null"
990
+ }
991
+ ]
992
+ },
993
+ "turn": {
994
+ "type": "string"
995
+ }
996
+ },
997
+ "additionalProperties": false
998
+ }
999
+ ]
1000
+ }
1001
+ }
1002
+ }