@ellipsis-dev/sdk 0.1.0 → 0.2.1
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/dist/index.d.ts +4 -3
- package/dist/index.js +10 -0
- package/dist/store/index.d.ts +15 -5
- package/dist/store/index.js +226 -51
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.js +1 -1
- package/dist/{types-BRE4NMnS.d.ts → types-CtvSTnzA.d.ts} +97 -14
- package/package.json +1 -1
- package/schema/frames.schema.json +2 -29
- package/schema/lifecycle.schema.json +505 -0
- package/schema/openapi.v1.json +181 -0
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"MessageDeliveredPayload": {
|
|
4
|
+
"description": "message_delivered \u2014 a turn consumed the message.",
|
|
5
|
+
"properties": {
|
|
6
|
+
"message_id": {
|
|
7
|
+
"title": "Message Id",
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"turn_id": {
|
|
11
|
+
"title": "Turn Id",
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"message_id",
|
|
17
|
+
"turn_id"
|
|
18
|
+
],
|
|
19
|
+
"title": "MessageDeliveredPayload",
|
|
20
|
+
"type": "object"
|
|
21
|
+
},
|
|
22
|
+
"MessageReceivedPayload": {
|
|
23
|
+
"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.",
|
|
24
|
+
"properties": {
|
|
25
|
+
"author": {
|
|
26
|
+
"anyOf": [
|
|
27
|
+
{
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "null"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"default": null,
|
|
35
|
+
"title": "Author"
|
|
36
|
+
},
|
|
37
|
+
"body": {
|
|
38
|
+
"title": "Body",
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"closes_session": {
|
|
42
|
+
"default": false,
|
|
43
|
+
"title": "Closes Session",
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
},
|
|
46
|
+
"message_id": {
|
|
47
|
+
"title": "Message Id",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"sender_attribution_id": {
|
|
51
|
+
"anyOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "null"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"default": null,
|
|
60
|
+
"title": "Sender Attribution Id"
|
|
61
|
+
},
|
|
62
|
+
"sender_attribution_type": {
|
|
63
|
+
"anyOf": [
|
|
64
|
+
{
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "null"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"default": null,
|
|
72
|
+
"title": "Sender Attribution Type"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"message_id",
|
|
77
|
+
"body"
|
|
78
|
+
],
|
|
79
|
+
"title": "MessageReceivedPayload",
|
|
80
|
+
"type": "object"
|
|
81
|
+
},
|
|
82
|
+
"MessageRequeuedPayload": {
|
|
83
|
+
"description": "message_requeued \u2014 an errored turn returned the message to the inbox\n(at-least-once delivery; the next wake redelivers).",
|
|
84
|
+
"properties": {
|
|
85
|
+
"message_id": {
|
|
86
|
+
"title": "Message Id",
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"turn_id": {
|
|
90
|
+
"title": "Turn Id",
|
|
91
|
+
"type": "string"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": [
|
|
95
|
+
"message_id",
|
|
96
|
+
"turn_id"
|
|
97
|
+
],
|
|
98
|
+
"title": "MessageRequeuedPayload",
|
|
99
|
+
"type": "object"
|
|
100
|
+
},
|
|
101
|
+
"SandboxOutputPayload": {
|
|
102
|
+
"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.",
|
|
103
|
+
"properties": {
|
|
104
|
+
"chunk": {
|
|
105
|
+
"title": "Chunk",
|
|
106
|
+
"type": "integer"
|
|
107
|
+
},
|
|
108
|
+
"lines": {
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"title": "Lines",
|
|
113
|
+
"type": "array"
|
|
114
|
+
},
|
|
115
|
+
"phase": {
|
|
116
|
+
"title": "Phase",
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"step": {
|
|
120
|
+
"anyOf": [
|
|
121
|
+
{
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"type": "null"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"default": null,
|
|
129
|
+
"title": "Step"
|
|
130
|
+
},
|
|
131
|
+
"stream": {
|
|
132
|
+
"default": "stdout",
|
|
133
|
+
"title": "Stream",
|
|
134
|
+
"type": "string"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": [
|
|
138
|
+
"phase",
|
|
139
|
+
"chunk",
|
|
140
|
+
"lines"
|
|
141
|
+
],
|
|
142
|
+
"title": "SandboxOutputPayload",
|
|
143
|
+
"type": "object"
|
|
144
|
+
},
|
|
145
|
+
"SandboxPhasePayload": {
|
|
146
|
+
"description": "sandbox_phase \u2014 one transition of the provisioning state machine, so\nclients can narrate 'found a cached image' / 'cloning' / 'snapshotting'\nlive and locate failures. Phases are an OPEN vocabulary (SandboxPhase has\nthe known values); `detail` carries phase-specific extras additively\n(e.g. {\"cache_tier\": \"incremental\"} on image completion).",
|
|
147
|
+
"properties": {
|
|
148
|
+
"detail": {
|
|
149
|
+
"anyOf": [
|
|
150
|
+
{
|
|
151
|
+
"additionalProperties": true,
|
|
152
|
+
"type": "object"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"type": "null"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
"default": null,
|
|
159
|
+
"title": "Detail"
|
|
160
|
+
},
|
|
161
|
+
"duration_ms": {
|
|
162
|
+
"anyOf": [
|
|
163
|
+
{
|
|
164
|
+
"type": "integer"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "null"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"default": null,
|
|
171
|
+
"title": "Duration Ms"
|
|
172
|
+
},
|
|
173
|
+
"phase": {
|
|
174
|
+
"title": "Phase",
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"status": {
|
|
178
|
+
"title": "Status",
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"step": {
|
|
182
|
+
"anyOf": [
|
|
183
|
+
{
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"type": "null"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"default": null,
|
|
191
|
+
"title": "Step"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"required": [
|
|
195
|
+
"phase",
|
|
196
|
+
"status"
|
|
197
|
+
],
|
|
198
|
+
"title": "SandboxPhasePayload",
|
|
199
|
+
"type": "object"
|
|
200
|
+
},
|
|
201
|
+
"SandboxReadyPayload": {
|
|
202
|
+
"description": "sandbox_ready \u2014 the box is up and the harness is about to launch: the\nsummary anchor closing the provisioning story. cache_tier/phase_timings\nduplicate the sandboxes-row columns purely for rendering convenience \u2014 the\nrow is the authority (\u00a72).",
|
|
203
|
+
"properties": {
|
|
204
|
+
"cache_tier": {
|
|
205
|
+
"anyOf": [
|
|
206
|
+
{
|
|
207
|
+
"type": "string"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "null"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"default": null,
|
|
214
|
+
"title": "Cache Tier"
|
|
215
|
+
},
|
|
216
|
+
"phase_timings": {
|
|
217
|
+
"additionalProperties": {
|
|
218
|
+
"type": "number"
|
|
219
|
+
},
|
|
220
|
+
"default": {},
|
|
221
|
+
"title": "Phase Timings",
|
|
222
|
+
"type": "object"
|
|
223
|
+
},
|
|
224
|
+
"repositories": {
|
|
225
|
+
"items": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
"title": "Repositories",
|
|
229
|
+
"type": "array"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"required": [
|
|
233
|
+
"repositories"
|
|
234
|
+
],
|
|
235
|
+
"title": "SandboxReadyPayload",
|
|
236
|
+
"type": "object"
|
|
237
|
+
},
|
|
238
|
+
"SandboxStartingPayload": {
|
|
239
|
+
"description": "sandbox_starting \u2014 provisioning begins for this execution.",
|
|
240
|
+
"properties": {
|
|
241
|
+
"repositories": {
|
|
242
|
+
"items": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
},
|
|
245
|
+
"title": "Repositories",
|
|
246
|
+
"type": "array"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"required": [
|
|
250
|
+
"repositories"
|
|
251
|
+
],
|
|
252
|
+
"title": "SandboxStartingPayload",
|
|
253
|
+
"type": "object"
|
|
254
|
+
},
|
|
255
|
+
"SessionCancelledPayload": {
|
|
256
|
+
"description": "session_cancelled \u2014 a preflight gate cancelled the session before any\nsandbox existed. Session-scoped (no execution).",
|
|
257
|
+
"properties": {
|
|
258
|
+
"reason": {
|
|
259
|
+
"title": "Reason",
|
|
260
|
+
"type": "string"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"required": [
|
|
264
|
+
"reason"
|
|
265
|
+
],
|
|
266
|
+
"title": "SessionCancelledPayload",
|
|
267
|
+
"type": "object"
|
|
268
|
+
},
|
|
269
|
+
"SessionClosedPayload": {
|
|
270
|
+
"description": "session_closed \u2014 the conversation terminalized (closing event's final\nturn, or an ephemeral session's terminal).",
|
|
271
|
+
"properties": {},
|
|
272
|
+
"title": "SessionClosedPayload",
|
|
273
|
+
"type": "object"
|
|
274
|
+
},
|
|
275
|
+
"SessionIdlePayload": {
|
|
276
|
+
"description": "session_idle \u2014 the warm loop ended and the durable conversation is\nparked; the next message wakes it.",
|
|
277
|
+
"properties": {},
|
|
278
|
+
"title": "SessionIdlePayload",
|
|
279
|
+
"type": "object"
|
|
280
|
+
},
|
|
281
|
+
"SessionResumedPayload": {
|
|
282
|
+
"description": "session_resumed \u2014 a wake mounted the teardown snapshots and --resumed\nthe transcript. Its ABSENCE after a wake is the degraded-wake signal.",
|
|
283
|
+
"properties": {
|
|
284
|
+
"wake_index": {
|
|
285
|
+
"title": "Wake Index",
|
|
286
|
+
"type": "integer"
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"required": [
|
|
290
|
+
"wake_index"
|
|
291
|
+
],
|
|
292
|
+
"title": "SessionResumedPayload",
|
|
293
|
+
"type": "object"
|
|
294
|
+
},
|
|
295
|
+
"SessionRetryingPayload": {
|
|
296
|
+
"description": "session_retrying \u2014 a transient infra failure before the agent acted\nhanded the session back for another attempt (bounded).",
|
|
297
|
+
"properties": {
|
|
298
|
+
"attempt": {
|
|
299
|
+
"title": "Attempt",
|
|
300
|
+
"type": "integer"
|
|
301
|
+
},
|
|
302
|
+
"reason": {
|
|
303
|
+
"title": "Reason",
|
|
304
|
+
"type": "string"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"required": [
|
|
308
|
+
"reason",
|
|
309
|
+
"attempt"
|
|
310
|
+
],
|
|
311
|
+
"title": "SessionRetryingPayload",
|
|
312
|
+
"type": "object"
|
|
313
|
+
},
|
|
314
|
+
"SessionScheduledPayload": {
|
|
315
|
+
"description": "session_scheduled \u2014 the session row exists and is queued for a worker.\nThe one session-scoped record emitted at creation (no execution yet).",
|
|
316
|
+
"properties": {
|
|
317
|
+
"config_name": {
|
|
318
|
+
"anyOf": [
|
|
319
|
+
{
|
|
320
|
+
"type": "string"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"type": "null"
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"default": null,
|
|
327
|
+
"title": "Config Name"
|
|
328
|
+
},
|
|
329
|
+
"source": {
|
|
330
|
+
"title": "Source",
|
|
331
|
+
"type": "string"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"required": [
|
|
335
|
+
"source"
|
|
336
|
+
],
|
|
337
|
+
"title": "SessionScheduledPayload",
|
|
338
|
+
"type": "object"
|
|
339
|
+
},
|
|
340
|
+
"SessionStartingPayload": {
|
|
341
|
+
"description": "session_starting \u2014 a worker claimed the session and preflight passed.\nEmitted on EVERY claim; clients render wake_index > 0 as a wake.",
|
|
342
|
+
"properties": {
|
|
343
|
+
"attempt": {
|
|
344
|
+
"title": "Attempt",
|
|
345
|
+
"type": "integer"
|
|
346
|
+
},
|
|
347
|
+
"wake_index": {
|
|
348
|
+
"title": "Wake Index",
|
|
349
|
+
"type": "integer"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
"required": [
|
|
353
|
+
"attempt",
|
|
354
|
+
"wake_index"
|
|
355
|
+
],
|
|
356
|
+
"title": "SessionStartingPayload",
|
|
357
|
+
"type": "object"
|
|
358
|
+
},
|
|
359
|
+
"TurnCompletedPayload": {
|
|
360
|
+
"description": "turn_completed \u2014 the turn's result event closed it.",
|
|
361
|
+
"properties": {
|
|
362
|
+
"duration_ms": {
|
|
363
|
+
"anyOf": [
|
|
364
|
+
{
|
|
365
|
+
"type": "integer"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"type": "null"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
"default": null,
|
|
372
|
+
"title": "Duration Ms"
|
|
373
|
+
},
|
|
374
|
+
"turn_id": {
|
|
375
|
+
"title": "Turn Id",
|
|
376
|
+
"type": "string"
|
|
377
|
+
},
|
|
378
|
+
"turn_index": {
|
|
379
|
+
"title": "Turn Index",
|
|
380
|
+
"type": "integer"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"required": [
|
|
384
|
+
"turn_id",
|
|
385
|
+
"turn_index"
|
|
386
|
+
],
|
|
387
|
+
"title": "TurnCompletedPayload",
|
|
388
|
+
"type": "object"
|
|
389
|
+
},
|
|
390
|
+
"TurnFailedPayload": {
|
|
391
|
+
"description": "turn_failed \u2014 the turn terminalized without completing (its consumed\nmessages requeue).",
|
|
392
|
+
"properties": {
|
|
393
|
+
"turn_id": {
|
|
394
|
+
"title": "Turn Id",
|
|
395
|
+
"type": "string"
|
|
396
|
+
},
|
|
397
|
+
"turn_index": {
|
|
398
|
+
"title": "Turn Index",
|
|
399
|
+
"type": "integer"
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
"required": [
|
|
403
|
+
"turn_id",
|
|
404
|
+
"turn_index"
|
|
405
|
+
],
|
|
406
|
+
"title": "TurnFailedPayload",
|
|
407
|
+
"type": "object"
|
|
408
|
+
},
|
|
409
|
+
"TurnStartedPayload": {
|
|
410
|
+
"description": "turn_started \u2014 a message-exchange began.",
|
|
411
|
+
"properties": {
|
|
412
|
+
"turn_id": {
|
|
413
|
+
"title": "Turn Id",
|
|
414
|
+
"type": "string"
|
|
415
|
+
},
|
|
416
|
+
"turn_index": {
|
|
417
|
+
"title": "Turn Index",
|
|
418
|
+
"type": "integer"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"required": [
|
|
422
|
+
"turn_id",
|
|
423
|
+
"turn_index"
|
|
424
|
+
],
|
|
425
|
+
"title": "TurnStartedPayload",
|
|
426
|
+
"type": "object"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
430
|
+
"description": "Payloads of source='lifecycle' session records, keyed by record_type. Contract (SESSION_LIFECYCLE_EVENTS.md \u00a72): payload changes are additive-only; clients MUST ignore unknown record types and unknown payload fields, and MUST render unknown phase/step/status values generically.",
|
|
431
|
+
"properties": {
|
|
432
|
+
"message_delivered": {
|
|
433
|
+
"$ref": "#/$defs/MessageDeliveredPayload"
|
|
434
|
+
},
|
|
435
|
+
"message_received": {
|
|
436
|
+
"$ref": "#/$defs/MessageReceivedPayload"
|
|
437
|
+
},
|
|
438
|
+
"message_requeued": {
|
|
439
|
+
"$ref": "#/$defs/MessageRequeuedPayload"
|
|
440
|
+
},
|
|
441
|
+
"sandbox_output": {
|
|
442
|
+
"$ref": "#/$defs/SandboxOutputPayload"
|
|
443
|
+
},
|
|
444
|
+
"sandbox_phase": {
|
|
445
|
+
"$ref": "#/$defs/SandboxPhasePayload"
|
|
446
|
+
},
|
|
447
|
+
"sandbox_ready": {
|
|
448
|
+
"$ref": "#/$defs/SandboxReadyPayload"
|
|
449
|
+
},
|
|
450
|
+
"sandbox_starting": {
|
|
451
|
+
"$ref": "#/$defs/SandboxStartingPayload"
|
|
452
|
+
},
|
|
453
|
+
"session_cancelled": {
|
|
454
|
+
"$ref": "#/$defs/SessionCancelledPayload"
|
|
455
|
+
},
|
|
456
|
+
"session_closed": {
|
|
457
|
+
"$ref": "#/$defs/SessionClosedPayload"
|
|
458
|
+
},
|
|
459
|
+
"session_idle": {
|
|
460
|
+
"$ref": "#/$defs/SessionIdlePayload"
|
|
461
|
+
},
|
|
462
|
+
"session_resumed": {
|
|
463
|
+
"$ref": "#/$defs/SessionResumedPayload"
|
|
464
|
+
},
|
|
465
|
+
"session_retrying": {
|
|
466
|
+
"$ref": "#/$defs/SessionRetryingPayload"
|
|
467
|
+
},
|
|
468
|
+
"session_scheduled": {
|
|
469
|
+
"$ref": "#/$defs/SessionScheduledPayload"
|
|
470
|
+
},
|
|
471
|
+
"session_starting": {
|
|
472
|
+
"$ref": "#/$defs/SessionStartingPayload"
|
|
473
|
+
},
|
|
474
|
+
"turn_completed": {
|
|
475
|
+
"$ref": "#/$defs/TurnCompletedPayload"
|
|
476
|
+
},
|
|
477
|
+
"turn_failed": {
|
|
478
|
+
"$ref": "#/$defs/TurnFailedPayload"
|
|
479
|
+
},
|
|
480
|
+
"turn_started": {
|
|
481
|
+
"$ref": "#/$defs/TurnStartedPayload"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"required": [
|
|
485
|
+
"message_delivered",
|
|
486
|
+
"message_received",
|
|
487
|
+
"message_requeued",
|
|
488
|
+
"sandbox_output",
|
|
489
|
+
"sandbox_phase",
|
|
490
|
+
"sandbox_ready",
|
|
491
|
+
"sandbox_starting",
|
|
492
|
+
"session_cancelled",
|
|
493
|
+
"session_closed",
|
|
494
|
+
"session_idle",
|
|
495
|
+
"session_resumed",
|
|
496
|
+
"session_retrying",
|
|
497
|
+
"session_scheduled",
|
|
498
|
+
"session_starting",
|
|
499
|
+
"turn_completed",
|
|
500
|
+
"turn_failed",
|
|
501
|
+
"turn_started"
|
|
502
|
+
],
|
|
503
|
+
"title": "LifecyclePayloads",
|
|
504
|
+
"type": "object"
|
|
505
|
+
}
|
package/schema/openapi.v1.json
CHANGED
|
@@ -733,6 +733,16 @@
|
|
|
733
733
|
"title": "DefaultResolution",
|
|
734
734
|
"type": "string"
|
|
735
735
|
},
|
|
736
|
+
"ExecutionStatus": {
|
|
737
|
+
"description": "Per-execution status ladder (was AgentProcessStatus). Distinct from the\nsession's durable `session_state` and from `agent_sessions.status`, which\nremains the atomic claim/dispatch guard.",
|
|
738
|
+
"enum": [
|
|
739
|
+
"running",
|
|
740
|
+
"failed",
|
|
741
|
+
"done"
|
|
742
|
+
],
|
|
743
|
+
"title": "ExecutionStatus",
|
|
744
|
+
"type": "string"
|
|
745
|
+
},
|
|
736
746
|
"GithubAccountSnippet": {
|
|
737
747
|
"description": "Sometimes the GitHub API returns a user of github (can include bots)\nusing this snippet instead of the full GithubAccount model. One example,\nis when the API returns a pull request.\n\nThis is the least amount of info we need to represent a GitHub account.",
|
|
738
748
|
"properties": {
|
|
@@ -791,6 +801,22 @@
|
|
|
791
801
|
"title": "Harness",
|
|
792
802
|
"type": "string"
|
|
793
803
|
},
|
|
804
|
+
"ListSessionExecutionsResponse": {
|
|
805
|
+
"properties": {
|
|
806
|
+
"executions": {
|
|
807
|
+
"items": {
|
|
808
|
+
"$ref": "#/components/schemas/SessionExecutionWire"
|
|
809
|
+
},
|
|
810
|
+
"title": "Executions",
|
|
811
|
+
"type": "array"
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"required": [
|
|
815
|
+
"executions"
|
|
816
|
+
],
|
|
817
|
+
"title": "ListSessionExecutionsResponse",
|
|
818
|
+
"type": "object"
|
|
819
|
+
},
|
|
794
820
|
"ListSessionRecordsResponse": {
|
|
795
821
|
"properties": {
|
|
796
822
|
"earliest_feed_seq": {
|
|
@@ -947,6 +973,98 @@
|
|
|
947
973
|
"title": "SendSessionMessageRequest",
|
|
948
974
|
"type": "object"
|
|
949
975
|
},
|
|
976
|
+
"SessionExecutionWire": {
|
|
977
|
+
"properties": {
|
|
978
|
+
"agent_session_id": {
|
|
979
|
+
"title": "Agent Session Id",
|
|
980
|
+
"type": "string"
|
|
981
|
+
},
|
|
982
|
+
"attempt_index": {
|
|
983
|
+
"title": "Attempt Index",
|
|
984
|
+
"type": "integer"
|
|
985
|
+
},
|
|
986
|
+
"created_at": {
|
|
987
|
+
"format": "date-time",
|
|
988
|
+
"title": "Created At",
|
|
989
|
+
"type": "string"
|
|
990
|
+
},
|
|
991
|
+
"execution_index": {
|
|
992
|
+
"title": "Execution Index",
|
|
993
|
+
"type": "integer"
|
|
994
|
+
},
|
|
995
|
+
"exit_status": {
|
|
996
|
+
"anyOf": [
|
|
997
|
+
{
|
|
998
|
+
"type": "string"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"type": "null"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"title": "Exit Status"
|
|
1005
|
+
},
|
|
1006
|
+
"id": {
|
|
1007
|
+
"title": "Id",
|
|
1008
|
+
"type": "string"
|
|
1009
|
+
},
|
|
1010
|
+
"model": {
|
|
1011
|
+
"anyOf": [
|
|
1012
|
+
{
|
|
1013
|
+
"type": "string"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"type": "null"
|
|
1017
|
+
}
|
|
1018
|
+
],
|
|
1019
|
+
"title": "Model"
|
|
1020
|
+
},
|
|
1021
|
+
"query": {
|
|
1022
|
+
"anyOf": [
|
|
1023
|
+
{
|
|
1024
|
+
"type": "string"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"type": "null"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
"title": "Query"
|
|
1031
|
+
},
|
|
1032
|
+
"resumed": {
|
|
1033
|
+
"title": "Resumed",
|
|
1034
|
+
"type": "boolean"
|
|
1035
|
+
},
|
|
1036
|
+
"status": {
|
|
1037
|
+
"$ref": "#/components/schemas/ExecutionStatus"
|
|
1038
|
+
},
|
|
1039
|
+
"system_prompt_append": {
|
|
1040
|
+
"anyOf": [
|
|
1041
|
+
{
|
|
1042
|
+
"type": "string"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"type": "null"
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
"title": "System Prompt Append"
|
|
1049
|
+
},
|
|
1050
|
+
"wake_index": {
|
|
1051
|
+
"title": "Wake Index",
|
|
1052
|
+
"type": "integer"
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
"required": [
|
|
1056
|
+
"id",
|
|
1057
|
+
"agent_session_id",
|
|
1058
|
+
"created_at",
|
|
1059
|
+
"execution_index",
|
|
1060
|
+
"wake_index",
|
|
1061
|
+
"attempt_index",
|
|
1062
|
+
"resumed",
|
|
1063
|
+
"status"
|
|
1064
|
+
],
|
|
1065
|
+
"title": "SessionExecutionWire",
|
|
1066
|
+
"type": "object"
|
|
1067
|
+
},
|
|
950
1068
|
"SessionLiveness": {
|
|
951
1069
|
"description": "The durable conversation axis (backs the surfaced `session` field).",
|
|
952
1070
|
"enum": [
|
|
@@ -1626,6 +1744,69 @@
|
|
|
1626
1744
|
]
|
|
1627
1745
|
}
|
|
1628
1746
|
},
|
|
1747
|
+
"/v1/sessions/{session_id}/executions": {
|
|
1748
|
+
"get": {
|
|
1749
|
+
"operationId": "get_agent_session_executions_v1_sessions__session_id__executions_get",
|
|
1750
|
+
"parameters": [
|
|
1751
|
+
{
|
|
1752
|
+
"in": "path",
|
|
1753
|
+
"name": "session_id",
|
|
1754
|
+
"required": true,
|
|
1755
|
+
"schema": {
|
|
1756
|
+
"title": "Session Id",
|
|
1757
|
+
"type": "string"
|
|
1758
|
+
}
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"in": "header",
|
|
1762
|
+
"name": "user-agent",
|
|
1763
|
+
"required": false,
|
|
1764
|
+
"schema": {
|
|
1765
|
+
"anyOf": [
|
|
1766
|
+
{
|
|
1767
|
+
"type": "string"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"type": "null"
|
|
1771
|
+
}
|
|
1772
|
+
],
|
|
1773
|
+
"title": "User-Agent"
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
],
|
|
1777
|
+
"responses": {
|
|
1778
|
+
"200": {
|
|
1779
|
+
"content": {
|
|
1780
|
+
"application/json": {
|
|
1781
|
+
"schema": {
|
|
1782
|
+
"$ref": "#/components/schemas/ListSessionExecutionsResponse"
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
"description": "Successful Response"
|
|
1787
|
+
},
|
|
1788
|
+
"422": {
|
|
1789
|
+
"content": {
|
|
1790
|
+
"application/json": {
|
|
1791
|
+
"schema": {
|
|
1792
|
+
"$ref": "#/components/schemas/HTTPValidationError"
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
},
|
|
1796
|
+
"description": "Validation Error"
|
|
1797
|
+
}
|
|
1798
|
+
},
|
|
1799
|
+
"security": [
|
|
1800
|
+
{
|
|
1801
|
+
"HTTPBearer": []
|
|
1802
|
+
}
|
|
1803
|
+
],
|
|
1804
|
+
"summary": "Get Agent Session Executions",
|
|
1805
|
+
"tags": [
|
|
1806
|
+
"v1"
|
|
1807
|
+
]
|
|
1808
|
+
}
|
|
1809
|
+
},
|
|
1629
1810
|
"/v1/sessions/{session_id}/messages": {
|
|
1630
1811
|
"post": {
|
|
1631
1812
|
"operationId": "send_agent_session_message_v1_sessions__session_id__messages_post",
|