@ellipsis-dev/sdk 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/{chunk-K252XHLI.js → chunk-G2AEYZW2.js} +4 -8
- package/dist/index.d.ts +469 -529
- package/dist/index.js +244 -378
- package/dist/store/index.d.ts +24 -26
- package/dist/store/index.js +189 -277
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.js +1 -1
- package/dist/{types-DrPhhfOb.d.ts → types-BQxZcD0_.d.ts} +3133 -5348
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +265 -248
- package/schema/frames.schema.json +3245 -5445
- package/schema/lifecycle.schema.json +182 -323
- package/schema/openapi.v1.json +3369 -6810
|
@@ -1,150 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$defs": {
|
|
3
|
-
"
|
|
3
|
+
"EnvironmentOutputPayload": {
|
|
4
4
|
"additionalProperties": true,
|
|
5
|
-
"description": "
|
|
6
|
-
"properties": {
|
|
7
|
-
"message_id": {
|
|
8
|
-
"title": "Message Id",
|
|
9
|
-
"type": "string"
|
|
10
|
-
},
|
|
11
|
-
"turn_id": {
|
|
12
|
-
"title": "Turn Id",
|
|
13
|
-
"type": "string"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"required": [
|
|
17
|
-
"message_id",
|
|
18
|
-
"turn_id"
|
|
19
|
-
],
|
|
20
|
-
"title": "MessageDeliveredPayload",
|
|
21
|
-
"type": "object"
|
|
22
|
-
},
|
|
23
|
-
"MessageReceivedPayload": {
|
|
24
|
-
"additionalProperties": true,
|
|
25
|
-
"description": "message_received \u2014 a message landed in the session inbox. Puts \"what\narrived, from whom, when\" in the downloadable log; the session_messages\nrow is the internal delivery projection.",
|
|
26
|
-
"properties": {
|
|
27
|
-
"author": {
|
|
28
|
-
"anyOf": [
|
|
29
|
-
{
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "null"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"default": null,
|
|
37
|
-
"title": "Author"
|
|
38
|
-
},
|
|
39
|
-
"body": {
|
|
40
|
-
"title": "Body",
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
"closes_session": {
|
|
44
|
-
"default": false,
|
|
45
|
-
"title": "Closes Session",
|
|
46
|
-
"type": "boolean"
|
|
47
|
-
},
|
|
48
|
-
"message_id": {
|
|
49
|
-
"title": "Message Id",
|
|
50
|
-
"type": "string"
|
|
51
|
-
},
|
|
52
|
-
"sender_attribution_id": {
|
|
53
|
-
"anyOf": [
|
|
54
|
-
{
|
|
55
|
-
"type": "string"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"type": "null"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"default": null,
|
|
62
|
-
"title": "Sender Attribution Id"
|
|
63
|
-
},
|
|
64
|
-
"sender_attribution_type": {
|
|
65
|
-
"anyOf": [
|
|
66
|
-
{
|
|
67
|
-
"type": "string"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"type": "null"
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"default": null,
|
|
74
|
-
"title": "Sender Attribution Type"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"required": [
|
|
78
|
-
"message_id",
|
|
79
|
-
"body"
|
|
80
|
-
],
|
|
81
|
-
"title": "MessageReceivedPayload",
|
|
82
|
-
"type": "object"
|
|
83
|
-
},
|
|
84
|
-
"MessageRequeuedPayload": {
|
|
85
|
-
"additionalProperties": true,
|
|
86
|
-
"description": "message_requeued \u2014 an errored turn returned the message to the inbox\n(at-least-once delivery; the next wake redelivers).",
|
|
87
|
-
"properties": {
|
|
88
|
-
"message_id": {
|
|
89
|
-
"title": "Message Id",
|
|
90
|
-
"type": "string"
|
|
91
|
-
},
|
|
92
|
-
"turn_id": {
|
|
93
|
-
"title": "Turn Id",
|
|
94
|
-
"type": "string"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"required": [
|
|
98
|
-
"message_id",
|
|
99
|
-
"turn_id"
|
|
100
|
-
],
|
|
101
|
-
"title": "MessageRequeuedPayload",
|
|
102
|
-
"type": "object"
|
|
103
|
-
},
|
|
104
|
-
"OutboxCollectedPayload": {
|
|
105
|
-
"additionalProperties": true,
|
|
106
|
-
"description": "outbox_collected \u2014 the platform read a code_review session's\n/ellipsis/outbox/* at finalize (CODE_REVIEW_v3.md \u00a73). Carries both raw\nand parsed so the feed alone tells the whole delivery story; the\ncode_review_outbox table is the queryable projection of this record.",
|
|
107
|
-
"properties": {
|
|
108
|
-
"findings": {
|
|
109
|
-
"default": [],
|
|
110
|
-
"items": {
|
|
111
|
-
"additionalProperties": true,
|
|
112
|
-
"type": "object"
|
|
113
|
-
},
|
|
114
|
-
"title": "Findings",
|
|
115
|
-
"type": "array"
|
|
116
|
-
},
|
|
117
|
-
"parse_errors": {
|
|
118
|
-
"default": [],
|
|
119
|
-
"items": {
|
|
120
|
-
"additionalProperties": true,
|
|
121
|
-
"type": "object"
|
|
122
|
-
},
|
|
123
|
-
"title": "Parse Errors",
|
|
124
|
-
"type": "array"
|
|
125
|
-
},
|
|
126
|
-
"parser_version": {
|
|
127
|
-
"title": "Parser Version",
|
|
128
|
-
"type": "string"
|
|
129
|
-
},
|
|
130
|
-
"raw": {
|
|
131
|
-
"additionalProperties": {
|
|
132
|
-
"type": "string"
|
|
133
|
-
},
|
|
134
|
-
"default": {},
|
|
135
|
-
"title": "Raw",
|
|
136
|
-
"type": "object"
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
"required": [
|
|
140
|
-
"parser_version"
|
|
141
|
-
],
|
|
142
|
-
"title": "OutboxCollectedPayload",
|
|
143
|
-
"type": "object"
|
|
144
|
-
},
|
|
145
|
-
"SandboxOutputPayload": {
|
|
146
|
-
"additionalProperties": true,
|
|
147
|
-
"description": "sandbox_output \u2014 one chunk of provisioning/lifecycle-script output.\nMany fire per execution; `chunk` rides the idempotency key. These records\nARE the durable copy (archived into the session log's S3 segments), under\na high per-session cap + truncation marker.",
|
|
5
|
+
"description": "environment_output: one chunk of output from preparing the environment,\nincluding the customer's own hooks. Many fire per turn; `chunk` orders them\nwithin a step.",
|
|
148
6
|
"properties": {
|
|
149
7
|
"chunk": {
|
|
150
8
|
"title": "Chunk",
|
|
@@ -184,12 +42,12 @@
|
|
|
184
42
|
"chunk",
|
|
185
43
|
"lines"
|
|
186
44
|
],
|
|
187
|
-
"title": "
|
|
45
|
+
"title": "EnvironmentOutputPayload",
|
|
188
46
|
"type": "object"
|
|
189
47
|
},
|
|
190
|
-
"
|
|
48
|
+
"EnvironmentPhasePayload": {
|
|
191
49
|
"additionalProperties": true,
|
|
192
|
-
"description": "
|
|
50
|
+
"description": "environment_phase: one transition of environment preparation, so clients\ncan narrate progress live and locate failures. Phases are an OPEN\nvocabulary; `detail` carries phase-specific extras additively.",
|
|
193
51
|
"properties": {
|
|
194
52
|
"detail": {
|
|
195
53
|
"anyOf": [
|
|
@@ -241,32 +99,24 @@
|
|
|
241
99
|
"phase",
|
|
242
100
|
"status"
|
|
243
101
|
],
|
|
244
|
-
"title": "
|
|
102
|
+
"title": "EnvironmentPhasePayload",
|
|
245
103
|
"type": "object"
|
|
246
104
|
},
|
|
247
|
-
"
|
|
105
|
+
"EnvironmentReadyPayload": {
|
|
248
106
|
"additionalProperties": true,
|
|
249
|
-
"description": "
|
|
107
|
+
"description": "environment_ready: the environment is prepared and the agent is about\nto start.",
|
|
250
108
|
"properties": {
|
|
251
|
-
"
|
|
109
|
+
"duration_ms": {
|
|
252
110
|
"anyOf": [
|
|
253
111
|
{
|
|
254
|
-
"type": "
|
|
112
|
+
"type": "integer"
|
|
255
113
|
},
|
|
256
114
|
{
|
|
257
115
|
"type": "null"
|
|
258
116
|
}
|
|
259
117
|
],
|
|
260
118
|
"default": null,
|
|
261
|
-
"title": "
|
|
262
|
-
},
|
|
263
|
-
"phase_timings": {
|
|
264
|
-
"additionalProperties": {
|
|
265
|
-
"type": "number"
|
|
266
|
-
},
|
|
267
|
-
"default": {},
|
|
268
|
-
"title": "Phase Timings",
|
|
269
|
-
"type": "object"
|
|
119
|
+
"title": "Duration Ms"
|
|
270
120
|
},
|
|
271
121
|
"repositories": {
|
|
272
122
|
"items": {
|
|
@@ -279,96 +129,187 @@
|
|
|
279
129
|
"required": [
|
|
280
130
|
"repositories"
|
|
281
131
|
],
|
|
282
|
-
"title": "
|
|
132
|
+
"title": "EnvironmentReadyPayload",
|
|
283
133
|
"type": "object"
|
|
284
134
|
},
|
|
285
|
-
"
|
|
135
|
+
"MessageDeliveredPayload": {
|
|
286
136
|
"additionalProperties": true,
|
|
287
|
-
"description": "
|
|
137
|
+
"description": "message_delivered: the agent started on the message.",
|
|
288
138
|
"properties": {
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
"
|
|
139
|
+
"message_id": {
|
|
140
|
+
"title": "Message Id",
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"turn_id": {
|
|
144
|
+
"title": "Turn Id",
|
|
145
|
+
"type": "string"
|
|
295
146
|
}
|
|
296
147
|
},
|
|
297
148
|
"required": [
|
|
298
|
-
"
|
|
149
|
+
"message_id",
|
|
150
|
+
"turn_id"
|
|
299
151
|
],
|
|
300
|
-
"title": "
|
|
152
|
+
"title": "MessageDeliveredPayload",
|
|
301
153
|
"type": "object"
|
|
302
154
|
},
|
|
303
|
-
"
|
|
155
|
+
"MessageReceivedPayload": {
|
|
304
156
|
"additionalProperties": true,
|
|
305
|
-
"description": "
|
|
157
|
+
"description": "message_received: a message landed in the session inbox and its turn was\ncreated. `turn_id` is the turn that will answer it.",
|
|
306
158
|
"properties": {
|
|
307
|
-
"
|
|
308
|
-
"
|
|
159
|
+
"author": {
|
|
160
|
+
"anyOf": [
|
|
161
|
+
{
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"type": "null"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"default": null,
|
|
169
|
+
"title": "Author"
|
|
170
|
+
},
|
|
171
|
+
"body": {
|
|
172
|
+
"title": "Body",
|
|
309
173
|
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
"closes_session": {
|
|
176
|
+
"default": false,
|
|
177
|
+
"title": "Closes Session",
|
|
178
|
+
"type": "boolean"
|
|
179
|
+
},
|
|
180
|
+
"message_id": {
|
|
181
|
+
"title": "Message Id",
|
|
182
|
+
"type": "string"
|
|
183
|
+
},
|
|
184
|
+
"sender_attribution_id": {
|
|
185
|
+
"anyOf": [
|
|
186
|
+
{
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"type": "null"
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"default": null,
|
|
194
|
+
"title": "Sender Attribution Id"
|
|
195
|
+
},
|
|
196
|
+
"sender_attribution_type": {
|
|
197
|
+
"anyOf": [
|
|
198
|
+
{
|
|
199
|
+
"type": "string"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "null"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"default": null,
|
|
206
|
+
"title": "Sender Attribution Type"
|
|
207
|
+
},
|
|
208
|
+
"turn_id": {
|
|
209
|
+
"anyOf": [
|
|
210
|
+
{
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"type": "null"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"default": null,
|
|
218
|
+
"title": "Turn Id"
|
|
310
219
|
}
|
|
311
220
|
},
|
|
312
221
|
"required": [
|
|
313
|
-
"
|
|
222
|
+
"message_id",
|
|
223
|
+
"body"
|
|
314
224
|
],
|
|
315
|
-
"title": "
|
|
316
|
-
"type": "object"
|
|
317
|
-
},
|
|
318
|
-
"SessionClosedPayload": {
|
|
319
|
-
"additionalProperties": true,
|
|
320
|
-
"description": "session_closed \u2014 the conversation terminalized (closing event's final\nturn, or an ephemeral session's terminal).",
|
|
321
|
-
"properties": {},
|
|
322
|
-
"title": "SessionClosedPayload",
|
|
323
|
-
"type": "object"
|
|
324
|
-
},
|
|
325
|
-
"SessionIdlePayload": {
|
|
326
|
-
"additionalProperties": true,
|
|
327
|
-
"description": "session_idle \u2014 the warm loop ended and the durable conversation is\nparked; the next message wakes it.",
|
|
328
|
-
"properties": {},
|
|
329
|
-
"title": "SessionIdlePayload",
|
|
225
|
+
"title": "MessageReceivedPayload",
|
|
330
226
|
"type": "object"
|
|
331
227
|
},
|
|
332
|
-
"
|
|
228
|
+
"MessageRequeuedPayload": {
|
|
333
229
|
"additionalProperties": true,
|
|
334
|
-
"description": "
|
|
230
|
+
"description": "message_requeued: a turn was interrupted before answering, so the\nmessage goes back to the inbox with a new pending turn.",
|
|
335
231
|
"properties": {
|
|
336
|
-
"
|
|
337
|
-
"title": "
|
|
338
|
-
"type": "
|
|
232
|
+
"message_id": {
|
|
233
|
+
"title": "Message Id",
|
|
234
|
+
"type": "string"
|
|
235
|
+
},
|
|
236
|
+
"requeued_turn_id": {
|
|
237
|
+
"anyOf": [
|
|
238
|
+
{
|
|
239
|
+
"type": "string"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"type": "null"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
"default": null,
|
|
246
|
+
"title": "Requeued Turn Id"
|
|
247
|
+
},
|
|
248
|
+
"turn_id": {
|
|
249
|
+
"title": "Turn Id",
|
|
250
|
+
"type": "string"
|
|
339
251
|
}
|
|
340
252
|
},
|
|
341
253
|
"required": [
|
|
342
|
-
"
|
|
254
|
+
"message_id",
|
|
255
|
+
"turn_id"
|
|
343
256
|
],
|
|
344
|
-
"title": "
|
|
257
|
+
"title": "MessageRequeuedPayload",
|
|
345
258
|
"type": "object"
|
|
346
259
|
},
|
|
347
|
-
"
|
|
260
|
+
"OutboxCollectedPayload": {
|
|
348
261
|
"additionalProperties": true,
|
|
349
|
-
"description": "
|
|
262
|
+
"description": "outbox_collected: the platform read a code_review session's\n/ellipsis/outbox/* when its turn ended. Carries both raw and parsed so\nthe feed alone tells the whole delivery story; the code_review_outbox\ntable is the queryable projection of this record.",
|
|
350
263
|
"properties": {
|
|
351
|
-
"
|
|
352
|
-
"
|
|
353
|
-
"
|
|
264
|
+
"findings": {
|
|
265
|
+
"default": [],
|
|
266
|
+
"items": {
|
|
267
|
+
"additionalProperties": true,
|
|
268
|
+
"type": "object"
|
|
269
|
+
},
|
|
270
|
+
"title": "Findings",
|
|
271
|
+
"type": "array"
|
|
354
272
|
},
|
|
355
|
-
"
|
|
356
|
-
"
|
|
273
|
+
"parse_errors": {
|
|
274
|
+
"default": [],
|
|
275
|
+
"items": {
|
|
276
|
+
"additionalProperties": true,
|
|
277
|
+
"type": "object"
|
|
278
|
+
},
|
|
279
|
+
"title": "Parse Errors",
|
|
280
|
+
"type": "array"
|
|
281
|
+
},
|
|
282
|
+
"parser_version": {
|
|
283
|
+
"title": "Parser Version",
|
|
357
284
|
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"raw": {
|
|
287
|
+
"additionalProperties": {
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
"default": {},
|
|
291
|
+
"title": "Raw",
|
|
292
|
+
"type": "object"
|
|
358
293
|
}
|
|
359
294
|
},
|
|
360
295
|
"required": [
|
|
361
|
-
"
|
|
362
|
-
"attempt"
|
|
296
|
+
"parser_version"
|
|
363
297
|
],
|
|
364
|
-
"title": "
|
|
298
|
+
"title": "OutboxCollectedPayload",
|
|
365
299
|
"type": "object"
|
|
366
300
|
},
|
|
367
|
-
"
|
|
301
|
+
"SessionClosedPayload": {
|
|
368
302
|
"additionalProperties": true,
|
|
369
|
-
"description": "
|
|
303
|
+
"description": "session_closed: the conversation closed permanently.",
|
|
304
|
+
"properties": {},
|
|
305
|
+
"title": "SessionClosedPayload",
|
|
306
|
+
"type": "object"
|
|
307
|
+
},
|
|
308
|
+
"TurnEndedPayload": {
|
|
309
|
+
"additionalProperties": true,
|
|
310
|
+
"description": "turn_ended: the turn reached its final status. `status`, `reason`, and\n`detail` match the turn on the session object.",
|
|
370
311
|
"properties": {
|
|
371
|
-
"
|
|
312
|
+
"detail": {
|
|
372
313
|
"anyOf": [
|
|
373
314
|
{
|
|
374
315
|
"type": "string"
|
|
@@ -378,87 +319,36 @@
|
|
|
378
319
|
}
|
|
379
320
|
],
|
|
380
321
|
"default": null,
|
|
381
|
-
"title": "
|
|
322
|
+
"title": "Detail"
|
|
382
323
|
},
|
|
383
|
-
"
|
|
324
|
+
"duration_ms": {
|
|
384
325
|
"anyOf": [
|
|
385
326
|
{
|
|
386
|
-
"type": "
|
|
327
|
+
"type": "integer"
|
|
387
328
|
},
|
|
388
329
|
{
|
|
389
330
|
"type": "null"
|
|
390
331
|
}
|
|
391
332
|
],
|
|
392
333
|
"default": null,
|
|
393
|
-
"title": "
|
|
394
|
-
},
|
|
395
|
-
"source": {
|
|
396
|
-
"title": "Source",
|
|
397
|
-
"type": "string"
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
|
-
"required": [
|
|
401
|
-
"source"
|
|
402
|
-
],
|
|
403
|
-
"title": "SessionScheduledPayload",
|
|
404
|
-
"type": "object"
|
|
405
|
-
},
|
|
406
|
-
"SessionStartingPayload": {
|
|
407
|
-
"additionalProperties": true,
|
|
408
|
-
"description": "session_starting \u2014 a worker claimed the session and preflight passed.\nEmitted on EVERY claim; clients render wake_index > 0 as a wake.",
|
|
409
|
-
"properties": {
|
|
410
|
-
"attempt": {
|
|
411
|
-
"title": "Attempt",
|
|
412
|
-
"type": "integer"
|
|
334
|
+
"title": "Duration Ms"
|
|
413
335
|
},
|
|
414
|
-
"
|
|
415
|
-
"title": "Wake Index",
|
|
416
|
-
"type": "integer"
|
|
417
|
-
}
|
|
418
|
-
},
|
|
419
|
-
"required": [
|
|
420
|
-
"attempt",
|
|
421
|
-
"wake_index"
|
|
422
|
-
],
|
|
423
|
-
"title": "SessionStartingPayload",
|
|
424
|
-
"type": "object"
|
|
425
|
-
},
|
|
426
|
-
"TurnCompletedPayload": {
|
|
427
|
-
"additionalProperties": true,
|
|
428
|
-
"description": "turn_completed \u2014 the turn's result event closed it.",
|
|
429
|
-
"properties": {
|
|
430
|
-
"duration_ms": {
|
|
336
|
+
"reason": {
|
|
431
337
|
"anyOf": [
|
|
432
338
|
{
|
|
433
|
-
"type": "
|
|
339
|
+
"type": "string"
|
|
434
340
|
},
|
|
435
341
|
{
|
|
436
342
|
"type": "null"
|
|
437
343
|
}
|
|
438
344
|
],
|
|
439
345
|
"default": null,
|
|
440
|
-
"title": "
|
|
346
|
+
"title": "Reason"
|
|
441
347
|
},
|
|
442
|
-
"
|
|
443
|
-
"title": "
|
|
348
|
+
"status": {
|
|
349
|
+
"title": "Status",
|
|
444
350
|
"type": "string"
|
|
445
351
|
},
|
|
446
|
-
"turn_index": {
|
|
447
|
-
"title": "Turn Index",
|
|
448
|
-
"type": "integer"
|
|
449
|
-
}
|
|
450
|
-
},
|
|
451
|
-
"required": [
|
|
452
|
-
"turn_id",
|
|
453
|
-
"turn_index"
|
|
454
|
-
],
|
|
455
|
-
"title": "TurnCompletedPayload",
|
|
456
|
-
"type": "object"
|
|
457
|
-
},
|
|
458
|
-
"TurnFailedPayload": {
|
|
459
|
-
"additionalProperties": true,
|
|
460
|
-
"description": "turn_failed \u2014 the turn terminalized without completing (its consumed\nmessages requeue).",
|
|
461
|
-
"properties": {
|
|
462
352
|
"turn_id": {
|
|
463
353
|
"title": "Turn Id",
|
|
464
354
|
"type": "string"
|
|
@@ -470,14 +360,15 @@
|
|
|
470
360
|
},
|
|
471
361
|
"required": [
|
|
472
362
|
"turn_id",
|
|
473
|
-
"turn_index"
|
|
363
|
+
"turn_index",
|
|
364
|
+
"status"
|
|
474
365
|
],
|
|
475
|
-
"title": "
|
|
366
|
+
"title": "TurnEndedPayload",
|
|
476
367
|
"type": "object"
|
|
477
368
|
},
|
|
478
369
|
"TurnStartedPayload": {
|
|
479
370
|
"additionalProperties": true,
|
|
480
|
-
"description": "turn_started
|
|
371
|
+
"description": "turn_started: the agent started on the turn's message.",
|
|
481
372
|
"properties": {
|
|
482
373
|
"turn_id": {
|
|
483
374
|
"title": "Turn Id",
|
|
@@ -497,8 +388,17 @@
|
|
|
497
388
|
}
|
|
498
389
|
},
|
|
499
390
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
500
|
-
"description": "Payloads of source='lifecycle' session records, keyed by record_type. Contract
|
|
391
|
+
"description": "Payloads of source='lifecycle' session records, keyed by record_type. Contract: payload changes are additive-only; clients MUST ignore unknown record types and unknown payload fields, and MUST render unknown phase/step/status values generically.",
|
|
501
392
|
"properties": {
|
|
393
|
+
"environment_output": {
|
|
394
|
+
"$ref": "#/$defs/EnvironmentOutputPayload"
|
|
395
|
+
},
|
|
396
|
+
"environment_phase": {
|
|
397
|
+
"$ref": "#/$defs/EnvironmentPhasePayload"
|
|
398
|
+
},
|
|
399
|
+
"environment_ready": {
|
|
400
|
+
"$ref": "#/$defs/EnvironmentReadyPayload"
|
|
401
|
+
},
|
|
502
402
|
"message_delivered": {
|
|
503
403
|
"$ref": "#/$defs/MessageDeliveredPayload"
|
|
504
404
|
},
|
|
@@ -511,67 +411,26 @@
|
|
|
511
411
|
"outbox_collected": {
|
|
512
412
|
"$ref": "#/$defs/OutboxCollectedPayload"
|
|
513
413
|
},
|
|
514
|
-
"sandbox_output": {
|
|
515
|
-
"$ref": "#/$defs/SandboxOutputPayload"
|
|
516
|
-
},
|
|
517
|
-
"sandbox_phase": {
|
|
518
|
-
"$ref": "#/$defs/SandboxPhasePayload"
|
|
519
|
-
},
|
|
520
|
-
"sandbox_ready": {
|
|
521
|
-
"$ref": "#/$defs/SandboxReadyPayload"
|
|
522
|
-
},
|
|
523
|
-
"sandbox_starting": {
|
|
524
|
-
"$ref": "#/$defs/SandboxStartingPayload"
|
|
525
|
-
},
|
|
526
|
-
"session_cancelled": {
|
|
527
|
-
"$ref": "#/$defs/SessionCancelledPayload"
|
|
528
|
-
},
|
|
529
414
|
"session_closed": {
|
|
530
415
|
"$ref": "#/$defs/SessionClosedPayload"
|
|
531
416
|
},
|
|
532
|
-
"
|
|
533
|
-
"$ref": "#/$defs/
|
|
534
|
-
},
|
|
535
|
-
"session_resumed": {
|
|
536
|
-
"$ref": "#/$defs/SessionResumedPayload"
|
|
537
|
-
},
|
|
538
|
-
"session_retrying": {
|
|
539
|
-
"$ref": "#/$defs/SessionRetryingPayload"
|
|
540
|
-
},
|
|
541
|
-
"session_scheduled": {
|
|
542
|
-
"$ref": "#/$defs/SessionScheduledPayload"
|
|
543
|
-
},
|
|
544
|
-
"session_starting": {
|
|
545
|
-
"$ref": "#/$defs/SessionStartingPayload"
|
|
546
|
-
},
|
|
547
|
-
"turn_completed": {
|
|
548
|
-
"$ref": "#/$defs/TurnCompletedPayload"
|
|
549
|
-
},
|
|
550
|
-
"turn_failed": {
|
|
551
|
-
"$ref": "#/$defs/TurnFailedPayload"
|
|
417
|
+
"turn_ended": {
|
|
418
|
+
"$ref": "#/$defs/TurnEndedPayload"
|
|
552
419
|
},
|
|
553
420
|
"turn_started": {
|
|
554
421
|
"$ref": "#/$defs/TurnStartedPayload"
|
|
555
422
|
}
|
|
556
423
|
},
|
|
557
424
|
"required": [
|
|
425
|
+
"environment_output",
|
|
426
|
+
"environment_phase",
|
|
427
|
+
"environment_ready",
|
|
558
428
|
"message_delivered",
|
|
559
429
|
"message_received",
|
|
560
430
|
"message_requeued",
|
|
561
431
|
"outbox_collected",
|
|
562
|
-
"sandbox_output",
|
|
563
|
-
"sandbox_phase",
|
|
564
|
-
"sandbox_ready",
|
|
565
|
-
"sandbox_starting",
|
|
566
|
-
"session_cancelled",
|
|
567
432
|
"session_closed",
|
|
568
|
-
"
|
|
569
|
-
"session_resumed",
|
|
570
|
-
"session_retrying",
|
|
571
|
-
"session_scheduled",
|
|
572
|
-
"session_starting",
|
|
573
|
-
"turn_completed",
|
|
574
|
-
"turn_failed",
|
|
433
|
+
"turn_ended",
|
|
575
434
|
"turn_started"
|
|
576
435
|
],
|
|
577
436
|
"title": "LifecyclePayloads",
|