@ellipsis-dev/sdk 0.5.0 → 0.7.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/dist/index.d.ts +2 -2
- package/dist/index.js +8 -8
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/types-BOEnwGiJ.d.ts +10252 -0
- package/package.json +1 -1
- package/schema/frames.schema.json +119 -31
- package/schema/openapi.v1.json +12132 -1607
- package/dist/types-BoKi5b8D.d.ts +0 -2267
|
@@ -97,6 +97,7 @@
|
|
|
97
97
|
"type": "string"
|
|
98
98
|
},
|
|
99
99
|
"AgentSessionWire": {
|
|
100
|
+
"description": "An agent session: one conversation with an agent, from trigger to\nterminal state. Returned by `GET /sessions/{id}` and carried by the\nsession stream's `session`/`snapshot` frames \u2014 REST and stream never\ndisagree about what a session looks like.",
|
|
100
101
|
"properties": {
|
|
101
102
|
"agent_config_id": {
|
|
102
103
|
"anyOf": [
|
|
@@ -108,6 +109,7 @@
|
|
|
108
109
|
}
|
|
109
110
|
],
|
|
110
111
|
"default": null,
|
|
112
|
+
"description": "Identifier of the saved agent config the session ran on, if any.",
|
|
111
113
|
"title": "Agent Config Id"
|
|
112
114
|
},
|
|
113
115
|
"attributed_user": {
|
|
@@ -119,7 +121,8 @@
|
|
|
119
121
|
"type": "null"
|
|
120
122
|
}
|
|
121
123
|
],
|
|
122
|
-
"default": null
|
|
124
|
+
"default": null,
|
|
125
|
+
"description": "The GitHub user the session is attributed to, when the attribution is a GitHub user."
|
|
123
126
|
},
|
|
124
127
|
"attribution_id": {
|
|
125
128
|
"anyOf": [
|
|
@@ -131,6 +134,7 @@
|
|
|
131
134
|
}
|
|
132
135
|
],
|
|
133
136
|
"default": null,
|
|
137
|
+
"description": "Identifier of the principal the session is attributed to.",
|
|
134
138
|
"title": "Attribution Id"
|
|
135
139
|
},
|
|
136
140
|
"attribution_type": {
|
|
@@ -142,7 +146,8 @@
|
|
|
142
146
|
"type": "null"
|
|
143
147
|
}
|
|
144
148
|
],
|
|
145
|
-
"default": null
|
|
149
|
+
"default": null,
|
|
150
|
+
"description": "Kind of principal the session is attributed to (e.g. a GitHub user or an API key)."
|
|
146
151
|
},
|
|
147
152
|
"client_version": {
|
|
148
153
|
"anyOf": [
|
|
@@ -154,6 +159,7 @@
|
|
|
154
159
|
}
|
|
155
160
|
],
|
|
156
161
|
"default": null,
|
|
162
|
+
"description": "Version of the client that started the session, if reported.",
|
|
157
163
|
"title": "Client Version"
|
|
158
164
|
},
|
|
159
165
|
"config_override": {
|
|
@@ -167,6 +173,7 @@
|
|
|
167
173
|
}
|
|
168
174
|
],
|
|
169
175
|
"default": null,
|
|
176
|
+
"description": "The partial-config diff applied for this run; null when the config was unmodified.",
|
|
170
177
|
"title": "Config Override"
|
|
171
178
|
},
|
|
172
179
|
"context_repository": {
|
|
@@ -179,33 +186,40 @@
|
|
|
179
186
|
}
|
|
180
187
|
],
|
|
181
188
|
"default": null,
|
|
189
|
+
"description": "The \"owner/name\" repository context the session was started in, if any.",
|
|
182
190
|
"title": "Context Repository"
|
|
183
191
|
},
|
|
184
192
|
"cost_fee": {
|
|
185
193
|
"default": 0,
|
|
194
|
+
"description": "Platform fee in millicents.",
|
|
186
195
|
"title": "Cost Fee",
|
|
187
196
|
"type": "integer"
|
|
188
197
|
},
|
|
189
198
|
"cost_sandbox_cpu": {
|
|
190
199
|
"default": 0,
|
|
200
|
+
"description": "Sandbox CPU spend in millicents.",
|
|
191
201
|
"title": "Cost Sandbox Cpu",
|
|
192
202
|
"type": "integer"
|
|
193
203
|
},
|
|
194
204
|
"cost_sandbox_memory": {
|
|
195
205
|
"default": 0,
|
|
206
|
+
"description": "Sandbox memory spend in millicents.",
|
|
196
207
|
"title": "Cost Sandbox Memory",
|
|
197
208
|
"type": "integer"
|
|
198
209
|
},
|
|
199
210
|
"cost_tokens": {
|
|
211
|
+
"description": "Token spend in millicents. The session's grand total cost is the sum of cost_tokens, cost_sandbox_cpu, cost_sandbox_memory, and cost_fee.",
|
|
200
212
|
"title": "Cost Tokens",
|
|
201
213
|
"type": "integer"
|
|
202
214
|
},
|
|
203
215
|
"created_at": {
|
|
216
|
+
"description": "When the session was created.",
|
|
204
217
|
"format": "date-time",
|
|
205
218
|
"title": "Created At",
|
|
206
219
|
"type": "string"
|
|
207
220
|
},
|
|
208
221
|
"customer_id": {
|
|
222
|
+
"description": "Identifier of the account that owns the session.",
|
|
209
223
|
"title": "Customer Id",
|
|
210
224
|
"type": "string"
|
|
211
225
|
},
|
|
@@ -218,7 +232,8 @@
|
|
|
218
232
|
"type": "null"
|
|
219
233
|
}
|
|
220
234
|
],
|
|
221
|
-
"default": null
|
|
235
|
+
"default": null,
|
|
236
|
+
"description": "How the session's config was resolved from the account's defaults, when no explicit config was given."
|
|
222
237
|
},
|
|
223
238
|
"exit_status": {
|
|
224
239
|
"anyOf": [
|
|
@@ -229,12 +244,15 @@
|
|
|
229
244
|
"type": "null"
|
|
230
245
|
}
|
|
231
246
|
],
|
|
232
|
-
"default": null
|
|
247
|
+
"default": null,
|
|
248
|
+
"description": "How the session ended; null until it is terminal."
|
|
233
249
|
},
|
|
234
250
|
"harness": {
|
|
235
|
-
"$ref": "#/$defs/Harness"
|
|
251
|
+
"$ref": "#/$defs/Harness",
|
|
252
|
+
"description": "The coding-agent harness the session runs on."
|
|
236
253
|
},
|
|
237
254
|
"id": {
|
|
255
|
+
"description": "Unique identifier of the session.",
|
|
238
256
|
"title": "Id",
|
|
239
257
|
"type": "string"
|
|
240
258
|
},
|
|
@@ -249,6 +267,7 @@
|
|
|
249
267
|
}
|
|
250
268
|
],
|
|
251
269
|
"default": null,
|
|
270
|
+
"description": "When the session last showed activity.",
|
|
252
271
|
"title": "Last Activity At"
|
|
253
272
|
},
|
|
254
273
|
"last_message_at": {
|
|
@@ -262,6 +281,7 @@
|
|
|
262
281
|
}
|
|
263
282
|
],
|
|
264
283
|
"default": null,
|
|
284
|
+
"description": "When the session last received a message.",
|
|
265
285
|
"title": "Last Message At"
|
|
266
286
|
},
|
|
267
287
|
"live_summary": {
|
|
@@ -274,6 +294,7 @@
|
|
|
274
294
|
}
|
|
275
295
|
],
|
|
276
296
|
"default": null,
|
|
297
|
+
"description": "A live summary of the session's progress while it runs.",
|
|
277
298
|
"title": "Live Summary"
|
|
278
299
|
},
|
|
279
300
|
"metadata": {
|
|
@@ -281,6 +302,7 @@
|
|
|
281
302
|
"type": "string"
|
|
282
303
|
},
|
|
283
304
|
"default": {},
|
|
305
|
+
"description": "Caller-supplied metadata key-value pairs.",
|
|
284
306
|
"title": "Metadata",
|
|
285
307
|
"type": "object"
|
|
286
308
|
},
|
|
@@ -297,6 +319,7 @@
|
|
|
297
319
|
}
|
|
298
320
|
],
|
|
299
321
|
"default": null,
|
|
322
|
+
"description": "Pull requests the session created or updated.",
|
|
300
323
|
"title": "Output Prs"
|
|
301
324
|
},
|
|
302
325
|
"parent_agent_session_id": {
|
|
@@ -309,6 +332,7 @@
|
|
|
309
332
|
}
|
|
310
333
|
],
|
|
311
334
|
"default": null,
|
|
335
|
+
"description": "Identifier of the parent session that spawned this one, if any.",
|
|
312
336
|
"title": "Parent Agent Session Id"
|
|
313
337
|
},
|
|
314
338
|
"parent_kind": {
|
|
@@ -320,7 +344,8 @@
|
|
|
320
344
|
"type": "null"
|
|
321
345
|
}
|
|
322
346
|
],
|
|
323
|
-
"default": null
|
|
347
|
+
"default": null,
|
|
348
|
+
"description": "How this session relates to its parent session, if any."
|
|
324
349
|
},
|
|
325
350
|
"prompt": {
|
|
326
351
|
"anyOf": [
|
|
@@ -332,10 +357,12 @@
|
|
|
332
357
|
}
|
|
333
358
|
],
|
|
334
359
|
"default": null,
|
|
360
|
+
"description": "The per-session prompt the session was started with.",
|
|
335
361
|
"title": "Prompt"
|
|
336
362
|
},
|
|
337
363
|
"prompting": {
|
|
338
|
-
"$ref": "#/$defs/SessionPrompting"
|
|
364
|
+
"$ref": "#/$defs/SessionPrompting",
|
|
365
|
+
"description": "Whether a client may send this session a message and, when it may not, the reason to show instead of a composer."
|
|
339
366
|
},
|
|
340
367
|
"replayed_from_session_id": {
|
|
341
368
|
"anyOf": [
|
|
@@ -347,14 +374,17 @@
|
|
|
347
374
|
}
|
|
348
375
|
],
|
|
349
376
|
"default": null,
|
|
377
|
+
"description": "Identifier of the original session this one was replayed from, if it was started via replay.",
|
|
350
378
|
"title": "Replayed From Session Id"
|
|
351
379
|
},
|
|
352
380
|
"resolved_budget_cents": {
|
|
381
|
+
"description": "The spend budget resolved for this session, in cents.",
|
|
353
382
|
"title": "Resolved Budget Cents",
|
|
354
383
|
"type": "integer"
|
|
355
384
|
},
|
|
356
385
|
"resolved_budget_source": {
|
|
357
|
-
"$ref": "#/$defs/BudgetSource"
|
|
386
|
+
"$ref": "#/$defs/BudgetSource",
|
|
387
|
+
"description": "Where the resolved budget came from."
|
|
358
388
|
},
|
|
359
389
|
"sandbox_id": {
|
|
360
390
|
"anyOf": [
|
|
@@ -366,6 +396,7 @@
|
|
|
366
396
|
}
|
|
367
397
|
],
|
|
368
398
|
"default": null,
|
|
399
|
+
"description": "Identifier of the sandbox the session runs in, if any.",
|
|
369
400
|
"title": "Sandbox Id"
|
|
370
401
|
},
|
|
371
402
|
"session_key": {
|
|
@@ -378,6 +409,7 @@
|
|
|
378
409
|
}
|
|
379
410
|
],
|
|
380
411
|
"default": null,
|
|
412
|
+
"description": "Key identifying the durable conversation this session belongs to, or null for single-shot sessions.",
|
|
381
413
|
"title": "Session Key"
|
|
382
414
|
},
|
|
383
415
|
"session_state": {
|
|
@@ -389,13 +421,16 @@
|
|
|
389
421
|
"type": "null"
|
|
390
422
|
}
|
|
391
423
|
],
|
|
392
|
-
"default": null
|
|
424
|
+
"default": null,
|
|
425
|
+
"description": "Lifecycle state of the durable conversation, or null for sessions without one."
|
|
393
426
|
},
|
|
394
427
|
"source": {
|
|
395
|
-
"$ref": "#/$defs/AgentSessionSource"
|
|
428
|
+
"$ref": "#/$defs/AgentSessionSource",
|
|
429
|
+
"description": "Where the session came from (e.g. react, manual, api, cli, mention, cron, laptop)."
|
|
396
430
|
},
|
|
397
431
|
"status": {
|
|
398
|
-
"$ref": "#/$defs/AgentSessionStatus"
|
|
432
|
+
"$ref": "#/$defs/AgentSessionStatus",
|
|
433
|
+
"description": "Execution status of the session."
|
|
399
434
|
},
|
|
400
435
|
"status_reason": {
|
|
401
436
|
"anyOf": [
|
|
@@ -407,6 +442,7 @@
|
|
|
407
442
|
}
|
|
408
443
|
],
|
|
409
444
|
"default": null,
|
|
445
|
+
"description": "Human-readable reason for the current status, when there is one.",
|
|
410
446
|
"title": "Status Reason"
|
|
411
447
|
},
|
|
412
448
|
"stopped_at": {
|
|
@@ -420,6 +456,7 @@
|
|
|
420
456
|
}
|
|
421
457
|
],
|
|
422
458
|
"default": null,
|
|
459
|
+
"description": "When a stop was requested, if one was.",
|
|
423
460
|
"title": "Stopped At"
|
|
424
461
|
},
|
|
425
462
|
"stopped_by": {
|
|
@@ -432,6 +469,7 @@
|
|
|
432
469
|
}
|
|
433
470
|
],
|
|
434
471
|
"default": null,
|
|
472
|
+
"description": "GitHub account id of the user who stopped the session, if known.",
|
|
435
473
|
"title": "Stopped By"
|
|
436
474
|
},
|
|
437
475
|
"stopped_by_user": {
|
|
@@ -443,7 +481,8 @@
|
|
|
443
481
|
"type": "null"
|
|
444
482
|
}
|
|
445
483
|
],
|
|
446
|
-
"default": null
|
|
484
|
+
"default": null,
|
|
485
|
+
"description": "The GitHub user who stopped the session, if it was stopped."
|
|
447
486
|
},
|
|
448
487
|
"surface": {
|
|
449
488
|
"anyOf": [
|
|
@@ -454,38 +493,46 @@
|
|
|
454
493
|
"type": "null"
|
|
455
494
|
}
|
|
456
495
|
],
|
|
457
|
-
"default": null
|
|
496
|
+
"default": null,
|
|
497
|
+
"description": "The public status projection; null for laptop-synced sessions."
|
|
458
498
|
},
|
|
459
499
|
"tokens_cache_creation": {
|
|
460
500
|
"default": 0,
|
|
501
|
+
"description": "Tokens written to the prompt cache.",
|
|
461
502
|
"title": "Tokens Cache Creation",
|
|
462
503
|
"type": "integer"
|
|
463
504
|
},
|
|
464
505
|
"tokens_cache_read": {
|
|
465
506
|
"default": 0,
|
|
507
|
+
"description": "Tokens read from the prompt cache.",
|
|
466
508
|
"title": "Tokens Cache Read",
|
|
467
509
|
"type": "integer"
|
|
468
510
|
},
|
|
469
511
|
"tokens_input": {
|
|
470
512
|
"default": 0,
|
|
513
|
+
"description": "Input tokens used.",
|
|
471
514
|
"title": "Tokens Input",
|
|
472
515
|
"type": "integer"
|
|
473
516
|
},
|
|
474
517
|
"tokens_model": {
|
|
518
|
+
"description": "The model the token counts are attributed to.",
|
|
475
519
|
"title": "Tokens Model",
|
|
476
520
|
"type": "string"
|
|
477
521
|
},
|
|
478
522
|
"tokens_output": {
|
|
479
523
|
"default": 0,
|
|
524
|
+
"description": "Output tokens used.",
|
|
480
525
|
"title": "Tokens Output",
|
|
481
526
|
"type": "integer"
|
|
482
527
|
},
|
|
483
528
|
"tokens_total": {
|
|
484
529
|
"default": 0,
|
|
530
|
+
"description": "Total tokens used by the session.",
|
|
485
531
|
"title": "Tokens Total",
|
|
486
532
|
"type": "integer"
|
|
487
533
|
},
|
|
488
534
|
"updated_at": {
|
|
535
|
+
"description": "When the session was last updated.",
|
|
489
536
|
"format": "date-time",
|
|
490
537
|
"title": "Updated At",
|
|
491
538
|
"type": "string"
|
|
@@ -500,6 +547,7 @@
|
|
|
500
547
|
}
|
|
501
548
|
],
|
|
502
549
|
"default": null,
|
|
550
|
+
"description": "Identifier of the webhook event that triggered the session, if any.",
|
|
503
551
|
"title": "Webhook Id"
|
|
504
552
|
},
|
|
505
553
|
"webhook_type": {
|
|
@@ -511,7 +559,8 @@
|
|
|
511
559
|
"type": "null"
|
|
512
560
|
}
|
|
513
561
|
],
|
|
514
|
-
"default": null
|
|
562
|
+
"default": null,
|
|
563
|
+
"description": "Type of the webhook event that triggered the session, if any."
|
|
515
564
|
}
|
|
516
565
|
},
|
|
517
566
|
"required": [
|
|
@@ -578,7 +627,7 @@
|
|
|
578
627
|
"type": "string"
|
|
579
628
|
},
|
|
580
629
|
"BudgetSource": {
|
|
581
|
-
"description": "Which layer actually determined the enforced budget.\n\nNot derivable from the run row alone (the run does not store the config\ncents or the
|
|
630
|
+
"description": "Which layer actually determined the enforced budget.\n\nNot derivable from the run row alone (the run does not store the config\ncents or the account default), so we persist it for the UI / audit.",
|
|
582
631
|
"enum": [
|
|
583
632
|
"system",
|
|
584
633
|
"account",
|
|
@@ -599,7 +648,7 @@
|
|
|
599
648
|
"type": "string"
|
|
600
649
|
},
|
|
601
650
|
"DeltaFrame": {
|
|
602
|
-
"description": "Fire-and-forget partial assistant output for the current response.\
|
|
651
|
+
"description": "Fire-and-forget partial assistant output for the current response.\nCarries no sequence number and is never resumable; superseded by the\ncommitted record.",
|
|
603
652
|
"properties": {
|
|
604
653
|
"agent_turn_id": {
|
|
605
654
|
"anyOf": [
|
|
@@ -611,6 +660,7 @@
|
|
|
611
660
|
}
|
|
612
661
|
],
|
|
613
662
|
"default": null,
|
|
663
|
+
"description": "Identifier of the turn the delta belongs to, if known.",
|
|
614
664
|
"title": "Agent Turn Id"
|
|
615
665
|
},
|
|
616
666
|
"kind": {
|
|
@@ -627,6 +677,7 @@
|
|
|
627
677
|
}
|
|
628
678
|
],
|
|
629
679
|
"default": null,
|
|
680
|
+
"description": "Output tokens generated so far for the current response.",
|
|
630
681
|
"title": "Output Tokens"
|
|
631
682
|
},
|
|
632
683
|
"text": {
|
|
@@ -639,6 +690,7 @@
|
|
|
639
690
|
}
|
|
640
691
|
],
|
|
641
692
|
"default": null,
|
|
693
|
+
"description": "The partial output text.",
|
|
642
694
|
"title": "Text"
|
|
643
695
|
},
|
|
644
696
|
"type": {
|
|
@@ -659,7 +711,7 @@
|
|
|
659
711
|
"type": "object"
|
|
660
712
|
},
|
|
661
713
|
"DoneFrame": {
|
|
662
|
-
"description": "Terminal marker: the conversation is over, after the final session
|
|
714
|
+
"description": "Terminal marker: the conversation is over, after the final session\nframe carried the end state. Followed by a normal close (1000).",
|
|
663
715
|
"properties": {
|
|
664
716
|
"type": {
|
|
665
717
|
"const": "done",
|
|
@@ -675,9 +727,10 @@
|
|
|
675
727
|
"type": "object"
|
|
676
728
|
},
|
|
677
729
|
"ErrorFrame": {
|
|
678
|
-
"description": "Terminal error marker, before
|
|
730
|
+
"description": "Terminal error marker, sent before the server closes with code 1011.",
|
|
679
731
|
"properties": {
|
|
680
732
|
"message": {
|
|
733
|
+
"description": "A human-readable error message.",
|
|
681
734
|
"title": "Message",
|
|
682
735
|
"type": "string"
|
|
683
736
|
},
|
|
@@ -735,15 +788,17 @@
|
|
|
735
788
|
},
|
|
736
789
|
"Harness": {
|
|
737
790
|
"enum": [
|
|
738
|
-
"claude_code"
|
|
791
|
+
"claude_code",
|
|
792
|
+
"codex"
|
|
739
793
|
],
|
|
740
794
|
"title": "Harness",
|
|
741
795
|
"type": "string"
|
|
742
796
|
},
|
|
743
797
|
"HeartbeatFrame": {
|
|
744
|
-
"description": "
|
|
798
|
+
"description": "A keepalive sent after a period of idleness; doubles as the dead-socket\nprobe. Clients should treat roughly twice the heartbeat interval of\nsilence as a dead connection.",
|
|
745
799
|
"properties": {
|
|
746
800
|
"ts": {
|
|
801
|
+
"description": "Server time when the heartbeat was sent.",
|
|
747
802
|
"format": "date-time",
|
|
748
803
|
"title": "Ts",
|
|
749
804
|
"type": "string"
|
|
@@ -778,6 +833,7 @@
|
|
|
778
833
|
"mention_surface",
|
|
779
834
|
"ephemeral_trigger",
|
|
780
835
|
"non_interactive",
|
|
836
|
+
"harness_single_turn",
|
|
781
837
|
"closed",
|
|
782
838
|
"laptop"
|
|
783
839
|
],
|
|
@@ -785,9 +841,10 @@
|
|
|
785
841
|
"type": "string"
|
|
786
842
|
},
|
|
787
843
|
"RecordsAppendFrame": {
|
|
788
|
-
"description": "Cursored append-only
|
|
844
|
+
"description": "Cursored append-only delivery of session records, ordered by feed_seq,\nfrom all sources. Every record in the frame advances the resume cursor \u2014\nincluding ones a client renders as nothing.",
|
|
789
845
|
"properties": {
|
|
790
846
|
"records": {
|
|
847
|
+
"description": "New session records, ordered by feed_seq.",
|
|
791
848
|
"items": {
|
|
792
849
|
"$ref": "#/$defs/SessionRecordWire"
|
|
793
850
|
},
|
|
@@ -825,10 +882,11 @@
|
|
|
825
882
|
"type": "string"
|
|
826
883
|
},
|
|
827
884
|
"SessionFrame": {
|
|
828
|
-
"description": "
|
|
885
|
+
"description": "A last-writer-wins snapshot of the session \u2014 the only way status,\nstate, and cost updates arrive. Resent whole on any field change.",
|
|
829
886
|
"properties": {
|
|
830
887
|
"session": {
|
|
831
|
-
"$ref": "#/$defs/AgentSessionWire"
|
|
888
|
+
"$ref": "#/$defs/AgentSessionWire",
|
|
889
|
+
"description": "The session's current state."
|
|
832
890
|
},
|
|
833
891
|
"type": {
|
|
834
892
|
"const": "session",
|
|
@@ -863,9 +921,10 @@
|
|
|
863
921
|
"type": "string"
|
|
864
922
|
},
|
|
865
923
|
"SessionMessageWire": {
|
|
866
|
-
"description": "
|
|
924
|
+
"description": "One message in a session's inbox: what a queued message renders and\nretires on. The webhook provenance internals stay off the wire.",
|
|
867
925
|
"properties": {
|
|
868
926
|
"agent_session_id": {
|
|
927
|
+
"description": "Identifier of the session the message belongs to.",
|
|
869
928
|
"title": "Agent Session Id",
|
|
870
929
|
"type": "string"
|
|
871
930
|
},
|
|
@@ -879,13 +938,16 @@
|
|
|
879
938
|
}
|
|
880
939
|
],
|
|
881
940
|
"default": null,
|
|
941
|
+
"description": "Display attribution of the message's sender.",
|
|
882
942
|
"title": "Author"
|
|
883
943
|
},
|
|
884
944
|
"body": {
|
|
945
|
+
"description": "The message text.",
|
|
885
946
|
"title": "Body",
|
|
886
947
|
"type": "string"
|
|
887
948
|
},
|
|
888
949
|
"created_at": {
|
|
950
|
+
"description": "When the message was created.",
|
|
889
951
|
"format": "date-time",
|
|
890
952
|
"title": "Created At",
|
|
891
953
|
"type": "string"
|
|
@@ -901,6 +963,7 @@
|
|
|
901
963
|
}
|
|
902
964
|
],
|
|
903
965
|
"default": null,
|
|
966
|
+
"description": "When the message was delivered to the agent, if it has been.",
|
|
904
967
|
"title": "Delivered At"
|
|
905
968
|
},
|
|
906
969
|
"delivered_turn_id": {
|
|
@@ -913,6 +976,7 @@
|
|
|
913
976
|
}
|
|
914
977
|
],
|
|
915
978
|
"default": null,
|
|
979
|
+
"description": "Identifier of the turn the message was delivered into, if any.",
|
|
916
980
|
"title": "Delivered Turn Id"
|
|
917
981
|
},
|
|
918
982
|
"feed_seq": {
|
|
@@ -925,9 +989,11 @@
|
|
|
925
989
|
}
|
|
926
990
|
],
|
|
927
991
|
"default": null,
|
|
992
|
+
"description": "Where the message sits in the session's feed \u2014 placement metadata only, NOT a resume cursor (only records_append frames advance the cursor). Null for older rows.",
|
|
928
993
|
"title": "Feed Seq"
|
|
929
994
|
},
|
|
930
995
|
"id": {
|
|
996
|
+
"description": "Unique identifier of the message.",
|
|
931
997
|
"title": "Id",
|
|
932
998
|
"type": "string"
|
|
933
999
|
},
|
|
@@ -941,6 +1007,7 @@
|
|
|
941
1007
|
}
|
|
942
1008
|
],
|
|
943
1009
|
"default": null,
|
|
1010
|
+
"description": "Identifier of the principal that sent the message, if attributed.",
|
|
944
1011
|
"title": "Sender Attribution Id"
|
|
945
1012
|
},
|
|
946
1013
|
"sender_attribution_type": {
|
|
@@ -952,10 +1019,12 @@
|
|
|
952
1019
|
"type": "null"
|
|
953
1020
|
}
|
|
954
1021
|
],
|
|
955
|
-
"default": null
|
|
1022
|
+
"default": null,
|
|
1023
|
+
"description": "Kind of principal that sent the message, if attributed."
|
|
956
1024
|
},
|
|
957
1025
|
"status": {
|
|
958
|
-
"$ref": "#/$defs/SessionMessageStatus"
|
|
1026
|
+
"$ref": "#/$defs/SessionMessageStatus",
|
|
1027
|
+
"description": "Delivery status of the message."
|
|
959
1028
|
}
|
|
960
1029
|
},
|
|
961
1030
|
"required": [
|
|
@@ -1027,9 +1096,10 @@
|
|
|
1027
1096
|
"type": "object"
|
|
1028
1097
|
},
|
|
1029
1098
|
"SessionRecordWire": {
|
|
1030
|
-
"description": "
|
|
1099
|
+
"description": "One entry of a session's log: a stable envelope around the harness's\nnative payload. Internal-only columns are deliberately absent so internal\nmodel evolution stays free.",
|
|
1031
1100
|
"properties": {
|
|
1032
1101
|
"agent_session_id": {
|
|
1102
|
+
"description": "Identifier of the session the record belongs to.",
|
|
1033
1103
|
"title": "Agent Session Id",
|
|
1034
1104
|
"type": "string"
|
|
1035
1105
|
},
|
|
@@ -1043,6 +1113,7 @@
|
|
|
1043
1113
|
}
|
|
1044
1114
|
],
|
|
1045
1115
|
"default": null,
|
|
1116
|
+
"description": "Identifier of the turn the record belongs to, if any.",
|
|
1046
1117
|
"title": "Agent Turn Id"
|
|
1047
1118
|
},
|
|
1048
1119
|
"cost": {
|
|
@@ -1055,9 +1126,11 @@
|
|
|
1055
1126
|
}
|
|
1056
1127
|
],
|
|
1057
1128
|
"default": null,
|
|
1129
|
+
"description": "Cost attributed to this record, if any.",
|
|
1058
1130
|
"title": "Cost"
|
|
1059
1131
|
},
|
|
1060
1132
|
"created_at": {
|
|
1133
|
+
"description": "When the record was created.",
|
|
1061
1134
|
"format": "date-time",
|
|
1062
1135
|
"title": "Created At",
|
|
1063
1136
|
"type": "string"
|
|
@@ -1072,13 +1145,16 @@
|
|
|
1072
1145
|
}
|
|
1073
1146
|
],
|
|
1074
1147
|
"default": null,
|
|
1148
|
+
"description": "Duration attributed to this record, if any.",
|
|
1075
1149
|
"title": "Duration"
|
|
1076
1150
|
},
|
|
1077
1151
|
"feed_seq": {
|
|
1152
|
+
"description": "The record's position in the session's ordered feed \u2014 the resume cursor for the stream and the records endpoints.",
|
|
1078
1153
|
"title": "Feed Seq",
|
|
1079
1154
|
"type": "integer"
|
|
1080
1155
|
},
|
|
1081
1156
|
"id": {
|
|
1157
|
+
"description": "Unique identifier of the record.",
|
|
1082
1158
|
"title": "Id",
|
|
1083
1159
|
"type": "string"
|
|
1084
1160
|
},
|
|
@@ -1092,18 +1168,22 @@
|
|
|
1092
1168
|
}
|
|
1093
1169
|
],
|
|
1094
1170
|
"default": null,
|
|
1171
|
+
"description": "The model that produced this record, if any.",
|
|
1095
1172
|
"title": "Model"
|
|
1096
1173
|
},
|
|
1097
1174
|
"payload": {
|
|
1098
1175
|
"additionalProperties": true,
|
|
1176
|
+
"description": "The harness's native line, verbatim. Consumers parse it at their own risk, versioned via record_format.",
|
|
1099
1177
|
"title": "Payload",
|
|
1100
1178
|
"type": "object"
|
|
1101
1179
|
},
|
|
1102
1180
|
"record_format": {
|
|
1181
|
+
"description": "Versions the payload shape, e.g. claude_stream_json@2.0 or ellipsis_lifecycle@1.",
|
|
1103
1182
|
"title": "Record Format",
|
|
1104
1183
|
"type": "string"
|
|
1105
1184
|
},
|
|
1106
1185
|
"record_type": {
|
|
1186
|
+
"description": "The record's type within its format.",
|
|
1107
1187
|
"title": "Record Type",
|
|
1108
1188
|
"type": "string"
|
|
1109
1189
|
},
|
|
@@ -1117,6 +1197,7 @@
|
|
|
1117
1197
|
}
|
|
1118
1198
|
],
|
|
1119
1199
|
"default": null,
|
|
1200
|
+
"description": "Correlates a user-echo record back to the session message it echoes, so clients can retire queued messages by id.",
|
|
1120
1201
|
"title": "Session Message Id"
|
|
1121
1202
|
},
|
|
1122
1203
|
"source": {
|
|
@@ -1124,6 +1205,7 @@
|
|
|
1124
1205
|
"type": "string"
|
|
1125
1206
|
},
|
|
1126
1207
|
"stream_seq": {
|
|
1208
|
+
"description": "The record's position within its execution's stream.",
|
|
1127
1209
|
"title": "Stream Seq",
|
|
1128
1210
|
"type": "integer"
|
|
1129
1211
|
},
|
|
@@ -1136,7 +1218,8 @@
|
|
|
1136
1218
|
"type": "null"
|
|
1137
1219
|
}
|
|
1138
1220
|
],
|
|
1139
|
-
"default": null
|
|
1221
|
+
"default": null,
|
|
1222
|
+
"description": "Token usage reported for this record, if any."
|
|
1140
1223
|
},
|
|
1141
1224
|
"tools": {
|
|
1142
1225
|
"anyOf": [
|
|
@@ -1151,6 +1234,7 @@
|
|
|
1151
1234
|
}
|
|
1152
1235
|
],
|
|
1153
1236
|
"default": null,
|
|
1237
|
+
"description": "Names of the tools used in this record, if any.",
|
|
1154
1238
|
"title": "Tools"
|
|
1155
1239
|
}
|
|
1156
1240
|
},
|
|
@@ -1229,7 +1313,7 @@
|
|
|
1229
1313
|
"type": "object"
|
|
1230
1314
|
},
|
|
1231
1315
|
"SnapshotFrame": {
|
|
1232
|
-
"description": "
|
|
1316
|
+
"description": "The first frame after the stream connects: the session plus its open\ninbox. Records always arrive separately via records_append frames.",
|
|
1233
1317
|
"properties": {
|
|
1234
1318
|
"earliest_feed_seq": {
|
|
1235
1319
|
"anyOf": [
|
|
@@ -1240,9 +1324,11 @@
|
|
|
1240
1324
|
"type": "null"
|
|
1241
1325
|
}
|
|
1242
1326
|
],
|
|
1327
|
+
"description": "The retention head: the lowest feed_seq still stored for this session, or null when it has no stored records. A client resuming from after_seq < earliest_feed_seq - 1 knows history is truncated.",
|
|
1243
1328
|
"title": "Earliest Feed Seq"
|
|
1244
1329
|
},
|
|
1245
1330
|
"messages": {
|
|
1331
|
+
"description": "The session's open (pending) inbox messages.",
|
|
1246
1332
|
"items": {
|
|
1247
1333
|
"$ref": "#/$defs/SessionMessageWire"
|
|
1248
1334
|
},
|
|
@@ -1251,11 +1337,13 @@
|
|
|
1251
1337
|
},
|
|
1252
1338
|
"protocol": {
|
|
1253
1339
|
"default": 3,
|
|
1340
|
+
"description": "Echoes the protocol version the server is serving.",
|
|
1254
1341
|
"title": "Protocol",
|
|
1255
1342
|
"type": "integer"
|
|
1256
1343
|
},
|
|
1257
1344
|
"session": {
|
|
1258
|
-
"$ref": "#/$defs/AgentSessionWire"
|
|
1345
|
+
"$ref": "#/$defs/AgentSessionWire",
|
|
1346
|
+
"description": "The session's current state."
|
|
1259
1347
|
},
|
|
1260
1348
|
"type": {
|
|
1261
1349
|
"const": "snapshot",
|
|
@@ -1343,7 +1431,7 @@
|
|
|
1343
1431
|
}
|
|
1344
1432
|
},
|
|
1345
1433
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1346
|
-
"description": "One server-to-client frame of the Ellipsis session stream protocol v3 (WS /
|
|
1434
|
+
"description": "One server-to-client frame of the Ellipsis session stream protocol v3 (WS /sessions/{id}/stream?protocol=3). Clients MUST ignore frames with unknown `type` values \u2014 additive frames are not a protocol break.",
|
|
1347
1435
|
"oneOf": [
|
|
1348
1436
|
{
|
|
1349
1437
|
"$ref": "#/$defs/SnapshotFrame"
|