@ellipsis-dev/sdk 0.32.0 → 0.33.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 +273 -125
- package/dist/index.js +103 -103
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-DjY1VcOe.d.ts → types-CtvhpMyt.d.ts} +1014 -598
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +826 -122
- package/schema/frames.schema.json +889 -191
- package/schema/openapi.v1.json +1501 -726
- package/schema/trigger_fields.schema.json +348 -7
|
@@ -197,13 +197,41 @@
|
|
|
197
197
|
"type": "object"
|
|
198
198
|
},
|
|
199
199
|
"CheckRunAction": {
|
|
200
|
-
"description": "
|
|
200
|
+
"description": "The state of a check run when GitHub reports it. A run created before it finishes fires its status, and `in_progress` is `started`. A finished run fires its conclusion, `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.",
|
|
201
201
|
"enum": [
|
|
202
|
-
"
|
|
202
|
+
"requested",
|
|
203
|
+
"queued",
|
|
204
|
+
"waiting",
|
|
205
|
+
"pending",
|
|
206
|
+
"started",
|
|
207
|
+
"passed",
|
|
208
|
+
"failed",
|
|
209
|
+
"timed_out",
|
|
210
|
+
"cancelled",
|
|
211
|
+
"skipped",
|
|
212
|
+
"neutral",
|
|
213
|
+
"action_required",
|
|
214
|
+
"stale"
|
|
203
215
|
],
|
|
204
216
|
"title": "CheckRunAction",
|
|
205
217
|
"type": "string"
|
|
206
218
|
},
|
|
219
|
+
"CheckSuiteAction": {
|
|
220
|
+
"description": "The conclusion of a finished check suite. `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.",
|
|
221
|
+
"enum": [
|
|
222
|
+
"passed",
|
|
223
|
+
"failed",
|
|
224
|
+
"timed_out",
|
|
225
|
+
"cancelled",
|
|
226
|
+
"skipped",
|
|
227
|
+
"neutral",
|
|
228
|
+
"action_required",
|
|
229
|
+
"stale",
|
|
230
|
+
"startup_failure"
|
|
231
|
+
],
|
|
232
|
+
"title": "CheckSuiteAction",
|
|
233
|
+
"type": "string"
|
|
234
|
+
},
|
|
207
235
|
"ClaudeAssistantEvent": {
|
|
208
236
|
"additionalProperties": true,
|
|
209
237
|
"properties": {
|
|
@@ -3796,6 +3824,55 @@
|
|
|
3796
3824
|
"title": "ConfigMetadata",
|
|
3797
3825
|
"type": "object"
|
|
3798
3826
|
},
|
|
3827
|
+
"Cost": {
|
|
3828
|
+
"description": "What something cost, in millicents.",
|
|
3829
|
+
"properties": {
|
|
3830
|
+
"charged": {
|
|
3831
|
+
"default": 0,
|
|
3832
|
+
"description": "What Ellipsis charged to credit, in millicents. It is everything except subscription tokens, and it is what the budget caps.",
|
|
3833
|
+
"title": "Charged",
|
|
3834
|
+
"type": "integer"
|
|
3835
|
+
},
|
|
3836
|
+
"cpu": {
|
|
3837
|
+
"default": 0,
|
|
3838
|
+
"description": "CPU spend in millicents.",
|
|
3839
|
+
"title": "Cpu",
|
|
3840
|
+
"type": "integer"
|
|
3841
|
+
},
|
|
3842
|
+
"fee": {
|
|
3843
|
+
"default": 0,
|
|
3844
|
+
"description": "Platform fee in millicents.",
|
|
3845
|
+
"title": "Fee",
|
|
3846
|
+
"type": "integer"
|
|
3847
|
+
},
|
|
3848
|
+
"llm": {
|
|
3849
|
+
"$ref": "#/$defs/LlmCost",
|
|
3850
|
+
"description": "LLM token cost, in total and by model, split by who paid."
|
|
3851
|
+
},
|
|
3852
|
+
"memory": {
|
|
3853
|
+
"default": 0,
|
|
3854
|
+
"description": "Memory spend in millicents.",
|
|
3855
|
+
"title": "Memory",
|
|
3856
|
+
"type": "integer"
|
|
3857
|
+
},
|
|
3858
|
+
"total": {
|
|
3859
|
+
"default": 0,
|
|
3860
|
+
"description": "Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee.",
|
|
3861
|
+
"title": "Total",
|
|
3862
|
+
"type": "integer"
|
|
3863
|
+
}
|
|
3864
|
+
},
|
|
3865
|
+
"required": [
|
|
3866
|
+
"charged",
|
|
3867
|
+
"cpu",
|
|
3868
|
+
"fee",
|
|
3869
|
+
"llm",
|
|
3870
|
+
"memory",
|
|
3871
|
+
"total"
|
|
3872
|
+
],
|
|
3873
|
+
"title": "Cost",
|
|
3874
|
+
"type": "object"
|
|
3875
|
+
},
|
|
3799
3876
|
"CronTrigger": {
|
|
3800
3877
|
"additionalProperties": false,
|
|
3801
3878
|
"description": "A schedule: `schedule` is a five-field cron expression in UTC.\n\n`enabled: false` pauses the trigger and keeps its definition: the schedule\nstops firing while the agent stays live for on-demand starts and open\nsessions keep taking follow-ups (`ellipsis.enabled: false` pauses the\nwhole file instead). Re-enabling resumes at the next scheduled time; runs\nmissed while paused are not made up.",
|
|
@@ -5127,6 +5204,104 @@
|
|
|
5127
5204
|
"title": "GithubCheckRunEvent",
|
|
5128
5205
|
"type": "object"
|
|
5129
5206
|
},
|
|
5207
|
+
"GithubCheckSuiteEvent": {
|
|
5208
|
+
"properties": {
|
|
5209
|
+
"action": {
|
|
5210
|
+
"$ref": "#/$defs/CheckSuiteAction"
|
|
5211
|
+
},
|
|
5212
|
+
"actor": {
|
|
5213
|
+
"anyOf": [
|
|
5214
|
+
{
|
|
5215
|
+
"$ref": "#/$defs/SessionEventActor"
|
|
5216
|
+
},
|
|
5217
|
+
{
|
|
5218
|
+
"type": "null"
|
|
5219
|
+
}
|
|
5220
|
+
],
|
|
5221
|
+
"default": null
|
|
5222
|
+
},
|
|
5223
|
+
"app": {
|
|
5224
|
+
"anyOf": [
|
|
5225
|
+
{
|
|
5226
|
+
"type": "string"
|
|
5227
|
+
},
|
|
5228
|
+
{
|
|
5229
|
+
"type": "null"
|
|
5230
|
+
}
|
|
5231
|
+
],
|
|
5232
|
+
"default": null,
|
|
5233
|
+
"title": "App"
|
|
5234
|
+
},
|
|
5235
|
+
"branch": {
|
|
5236
|
+
"anyOf": [
|
|
5237
|
+
{
|
|
5238
|
+
"type": "string"
|
|
5239
|
+
},
|
|
5240
|
+
{
|
|
5241
|
+
"type": "null"
|
|
5242
|
+
}
|
|
5243
|
+
],
|
|
5244
|
+
"default": null,
|
|
5245
|
+
"title": "Branch"
|
|
5246
|
+
},
|
|
5247
|
+
"conclusion": {
|
|
5248
|
+
"anyOf": [
|
|
5249
|
+
{
|
|
5250
|
+
"type": "string"
|
|
5251
|
+
},
|
|
5252
|
+
{
|
|
5253
|
+
"type": "null"
|
|
5254
|
+
}
|
|
5255
|
+
],
|
|
5256
|
+
"default": null,
|
|
5257
|
+
"title": "Conclusion"
|
|
5258
|
+
},
|
|
5259
|
+
"head_sha": {
|
|
5260
|
+
"title": "Head Sha",
|
|
5261
|
+
"type": "string"
|
|
5262
|
+
},
|
|
5263
|
+
"pull_request_number": {
|
|
5264
|
+
"anyOf": [
|
|
5265
|
+
{
|
|
5266
|
+
"type": "integer"
|
|
5267
|
+
},
|
|
5268
|
+
{
|
|
5269
|
+
"type": "null"
|
|
5270
|
+
}
|
|
5271
|
+
],
|
|
5272
|
+
"default": null,
|
|
5273
|
+
"title": "Pull Request Number"
|
|
5274
|
+
},
|
|
5275
|
+
"repository": {
|
|
5276
|
+
"title": "Repository",
|
|
5277
|
+
"type": "string"
|
|
5278
|
+
},
|
|
5279
|
+
"type": {
|
|
5280
|
+
"const": "github.check_suite",
|
|
5281
|
+
"default": "github.check_suite",
|
|
5282
|
+
"title": "Type",
|
|
5283
|
+
"type": "string"
|
|
5284
|
+
},
|
|
5285
|
+
"url": {
|
|
5286
|
+
"title": "Url",
|
|
5287
|
+
"type": "string"
|
|
5288
|
+
}
|
|
5289
|
+
},
|
|
5290
|
+
"required": [
|
|
5291
|
+
"action",
|
|
5292
|
+
"actor",
|
|
5293
|
+
"app",
|
|
5294
|
+
"branch",
|
|
5295
|
+
"conclusion",
|
|
5296
|
+
"head_sha",
|
|
5297
|
+
"pull_request_number",
|
|
5298
|
+
"repository",
|
|
5299
|
+
"type",
|
|
5300
|
+
"url"
|
|
5301
|
+
],
|
|
5302
|
+
"title": "GithubCheckSuiteEvent",
|
|
5303
|
+
"type": "object"
|
|
5304
|
+
},
|
|
5130
5305
|
"GithubIssueEvent": {
|
|
5131
5306
|
"properties": {
|
|
5132
5307
|
"action": {
|
|
@@ -5180,7 +5355,7 @@
|
|
|
5180
5355
|
},
|
|
5181
5356
|
"GithubPermissions": {
|
|
5182
5357
|
"additionalProperties": false,
|
|
5183
|
-
"description": "The agent's GitHub access: the scope of the installation token minted for\nits session's environment \u2014 the credential `git` and `gh` authenticate\nwith.\n\nBy default the token carries the installation's full permissions on all of\nthe installation's repositories. `permissions` narrows what it may do:\nthe string `read_only` grants read access to
|
|
5358
|
+
"description": "The agent's GitHub access: the scope of the installation token minted for\nits session's environment \u2014 the credential `git` and `gh` authenticate\nwith.\n\nBy default the token carries the installation's full permissions on all of\nthe installation's repositories. `permissions` narrows what it may do:\nthe string `read_only` grants read access to every scope the installation\ngranted; a map requests explicit levels per GitHub App permission\nscope (e.g. `{contents: read, pull_requests: write}`) and may never exceed\nwhat the installation granted. `repositories` scopes the token to exactly\nthe listed repos, by name (they must belong to the installation).\n\nRestriction is enforced by GitHub, not by Ellipsis: the token itself is\nminted with the reduced scope, so nothing running in the environment can\nexceed it.",
|
|
5184
5359
|
"properties": {
|
|
5185
5360
|
"permissions": {
|
|
5186
5361
|
"anyOf": [
|
|
@@ -5405,58 +5580,23 @@
|
|
|
5405
5580
|
"title": "GithubReleaseEvent",
|
|
5406
5581
|
"type": "object"
|
|
5407
5582
|
},
|
|
5408
|
-
"
|
|
5409
|
-
"description": "The service whose events a handler responds to.",
|
|
5410
|
-
"enum": [
|
|
5411
|
-
"slack",
|
|
5412
|
-
"github",
|
|
5413
|
-
"linear",
|
|
5414
|
-
"sentry"
|
|
5415
|
-
],
|
|
5416
|
-
"title": "HandlerService",
|
|
5417
|
-
"type": "string"
|
|
5418
|
-
},
|
|
5419
|
-
"HeartbeatFrame": {
|
|
5420
|
-
"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.",
|
|
5583
|
+
"GithubStatusEvent": {
|
|
5421
5584
|
"properties": {
|
|
5422
|
-
"
|
|
5423
|
-
"
|
|
5424
|
-
"format": "date-time",
|
|
5425
|
-
"title": "Ts",
|
|
5426
|
-
"type": "string"
|
|
5585
|
+
"action": {
|
|
5586
|
+
"$ref": "#/$defs/StatusAction"
|
|
5427
5587
|
},
|
|
5428
|
-
"
|
|
5429
|
-
"const": "heartbeat",
|
|
5430
|
-
"default": "heartbeat",
|
|
5431
|
-
"title": "Type",
|
|
5432
|
-
"type": "string"
|
|
5433
|
-
}
|
|
5434
|
-
},
|
|
5435
|
-
"required": [
|
|
5436
|
-
"ts",
|
|
5437
|
-
"type"
|
|
5438
|
-
],
|
|
5439
|
-
"title": "HeartbeatFrame",
|
|
5440
|
-
"type": "object"
|
|
5441
|
-
},
|
|
5442
|
-
"InputContract": {
|
|
5443
|
-
"additionalProperties": false,
|
|
5444
|
-
"description": "The typed input contract: what goes INTO a session (the trigger is\nwhen it happens; this is what goes in).\n\n`json_schema` validates customer data sent as `input` to\n`POST /v1/agents/{id}/sessions` (the dashboard and the CLI start\nthrough the same door) and stored as `session.input`. An on-demand\nstart requires input when a schema is declared. A trigger fires\nwithout it: a cron fire has no payload and a react fire carries the\nplatform-shaped event, so an agent may declare a schema alongside\neither trigger and the schema governs only its on-demand starts.\n\n`message` is the initial-message template: exact `{{path}}` substitution\nover the payload the session has (the caller payload on an on-demand\nstart, the surface's published fields on a react fire, the empty\nobject on a cron fire), no conditionals/loops/filters. Refs are\nvalidated at deploy time against every governing field set (see\nAgentConfig's `_check_input`): the caller schema's paths, the react\nsurface's published fields, and both when the agent has a react trigger\nand a schema, so one template renders fully on either door (declare the\nsurface's field names in the schema). Omit `message` to let each door\nrender its default. An unresolved ref renders as the empty string (a\ncron fire, an optional field the payload omitted).",
|
|
5445
|
-
"properties": {
|
|
5446
|
-
"json_schema": {
|
|
5588
|
+
"actor": {
|
|
5447
5589
|
"anyOf": [
|
|
5448
5590
|
{
|
|
5449
|
-
"
|
|
5450
|
-
"type": "object"
|
|
5591
|
+
"$ref": "#/$defs/SessionEventActor"
|
|
5451
5592
|
},
|
|
5452
5593
|
{
|
|
5453
5594
|
"type": "null"
|
|
5454
5595
|
}
|
|
5455
5596
|
],
|
|
5456
|
-
"default": null
|
|
5457
|
-
"title": "Json Schema"
|
|
5597
|
+
"default": null
|
|
5458
5598
|
},
|
|
5459
|
-
"
|
|
5599
|
+
"branch": {
|
|
5460
5600
|
"anyOf": [
|
|
5461
5601
|
{
|
|
5462
5602
|
"type": "string"
|
|
@@ -5466,32 +5606,71 @@
|
|
|
5466
5606
|
}
|
|
5467
5607
|
],
|
|
5468
5608
|
"default": null,
|
|
5469
|
-
"title": "
|
|
5609
|
+
"title": "Branch"
|
|
5610
|
+
},
|
|
5611
|
+
"context": {
|
|
5612
|
+
"title": "Context",
|
|
5613
|
+
"type": "string"
|
|
5614
|
+
},
|
|
5615
|
+
"head_sha": {
|
|
5616
|
+
"title": "Head Sha",
|
|
5617
|
+
"type": "string"
|
|
5618
|
+
},
|
|
5619
|
+
"pull_request_number": {
|
|
5620
|
+
"anyOf": [
|
|
5621
|
+
{
|
|
5622
|
+
"type": "integer"
|
|
5623
|
+
},
|
|
5624
|
+
{
|
|
5625
|
+
"type": "null"
|
|
5626
|
+
}
|
|
5627
|
+
],
|
|
5628
|
+
"default": null,
|
|
5629
|
+
"title": "Pull Request Number"
|
|
5630
|
+
},
|
|
5631
|
+
"repository": {
|
|
5632
|
+
"title": "Repository",
|
|
5633
|
+
"type": "string"
|
|
5634
|
+
},
|
|
5635
|
+
"state": {
|
|
5636
|
+
"title": "State",
|
|
5637
|
+
"type": "string"
|
|
5638
|
+
},
|
|
5639
|
+
"type": {
|
|
5640
|
+
"const": "github.status",
|
|
5641
|
+
"default": "github.status",
|
|
5642
|
+
"title": "Type",
|
|
5643
|
+
"type": "string"
|
|
5644
|
+
},
|
|
5645
|
+
"url": {
|
|
5646
|
+
"title": "Url",
|
|
5647
|
+
"type": "string"
|
|
5470
5648
|
}
|
|
5471
5649
|
},
|
|
5472
5650
|
"required": [
|
|
5473
|
-
"
|
|
5474
|
-
"
|
|
5651
|
+
"action",
|
|
5652
|
+
"actor",
|
|
5653
|
+
"branch",
|
|
5654
|
+
"context",
|
|
5655
|
+
"head_sha",
|
|
5656
|
+
"pull_request_number",
|
|
5657
|
+
"repository",
|
|
5658
|
+
"state",
|
|
5659
|
+
"type",
|
|
5660
|
+
"url"
|
|
5475
5661
|
],
|
|
5476
|
-
"title": "
|
|
5662
|
+
"title": "GithubStatusEvent",
|
|
5477
5663
|
"type": "object"
|
|
5478
5664
|
},
|
|
5479
|
-
"
|
|
5480
|
-
"enum": [
|
|
5481
|
-
"opened",
|
|
5482
|
-
"closed",
|
|
5483
|
-
"commented"
|
|
5484
|
-
],
|
|
5485
|
-
"title": "IssueAction",
|
|
5486
|
-
"type": "string"
|
|
5487
|
-
},
|
|
5488
|
-
"LegacyAssistantPayload": {
|
|
5489
|
-
"additionalProperties": true,
|
|
5665
|
+
"GithubWorkflowRunEvent": {
|
|
5490
5666
|
"properties": {
|
|
5491
|
-
"
|
|
5667
|
+
"action": {
|
|
5668
|
+
"$ref": "#/$defs/WorkflowRunAction"
|
|
5669
|
+
},
|
|
5670
|
+
"actor": {
|
|
5492
5671
|
"anyOf": [
|
|
5493
5672
|
{
|
|
5494
|
-
"$ref": "#/$defs/
|
|
5673
|
+
"$ref": "#/$defs/SessionEventActor"
|
|
5495
5674
|
},
|
|
5496
5675
|
{
|
|
5497
5676
|
"type": "null"
|
|
@@ -5499,16 +5678,189 @@
|
|
|
5499
5678
|
],
|
|
5500
5679
|
"default": null
|
|
5501
5680
|
},
|
|
5502
|
-
"
|
|
5503
|
-
"
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5681
|
+
"branch": {
|
|
5682
|
+
"anyOf": [
|
|
5683
|
+
{
|
|
5684
|
+
"type": "string"
|
|
5685
|
+
},
|
|
5686
|
+
{
|
|
5687
|
+
"type": "null"
|
|
5688
|
+
}
|
|
5689
|
+
],
|
|
5690
|
+
"default": null,
|
|
5691
|
+
"title": "Branch"
|
|
5692
|
+
},
|
|
5693
|
+
"conclusion": {
|
|
5694
|
+
"anyOf": [
|
|
5695
|
+
{
|
|
5696
|
+
"type": "string"
|
|
5697
|
+
},
|
|
5698
|
+
{
|
|
5699
|
+
"type": "null"
|
|
5700
|
+
}
|
|
5701
|
+
],
|
|
5702
|
+
"default": null,
|
|
5703
|
+
"title": "Conclusion"
|
|
5704
|
+
},
|
|
5705
|
+
"head_sha": {
|
|
5706
|
+
"title": "Head Sha",
|
|
5707
|
+
"type": "string"
|
|
5708
|
+
},
|
|
5709
|
+
"name": {
|
|
5710
|
+
"title": "Name",
|
|
5711
|
+
"type": "string"
|
|
5712
|
+
},
|
|
5713
|
+
"pull_request_number": {
|
|
5714
|
+
"anyOf": [
|
|
5715
|
+
{
|
|
5716
|
+
"type": "integer"
|
|
5717
|
+
},
|
|
5718
|
+
{
|
|
5719
|
+
"type": "null"
|
|
5720
|
+
}
|
|
5721
|
+
],
|
|
5722
|
+
"default": null,
|
|
5723
|
+
"title": "Pull Request Number"
|
|
5724
|
+
},
|
|
5725
|
+
"repository": {
|
|
5726
|
+
"title": "Repository",
|
|
5727
|
+
"type": "string"
|
|
5728
|
+
},
|
|
5729
|
+
"run_number": {
|
|
5730
|
+
"title": "Run Number",
|
|
5731
|
+
"type": "integer"
|
|
5732
|
+
},
|
|
5733
|
+
"type": {
|
|
5734
|
+
"const": "github.workflow_run",
|
|
5735
|
+
"default": "github.workflow_run",
|
|
5736
|
+
"title": "Type",
|
|
5737
|
+
"type": "string"
|
|
5738
|
+
},
|
|
5739
|
+
"url": {
|
|
5740
|
+
"title": "Url",
|
|
5741
|
+
"type": "string"
|
|
5742
|
+
}
|
|
5743
|
+
},
|
|
5744
|
+
"required": [
|
|
5745
|
+
"action",
|
|
5746
|
+
"actor",
|
|
5747
|
+
"branch",
|
|
5748
|
+
"conclusion",
|
|
5749
|
+
"head_sha",
|
|
5750
|
+
"name",
|
|
5751
|
+
"pull_request_number",
|
|
5752
|
+
"repository",
|
|
5753
|
+
"run_number",
|
|
5754
|
+
"type",
|
|
5755
|
+
"url"
|
|
5756
|
+
],
|
|
5757
|
+
"title": "GithubWorkflowRunEvent",
|
|
5758
|
+
"type": "object"
|
|
5759
|
+
},
|
|
5760
|
+
"HandlerService": {
|
|
5761
|
+
"description": "The service whose events a handler responds to.",
|
|
5762
|
+
"enum": [
|
|
5763
|
+
"slack",
|
|
5764
|
+
"github",
|
|
5765
|
+
"linear",
|
|
5766
|
+
"sentry"
|
|
5767
|
+
],
|
|
5768
|
+
"title": "HandlerService",
|
|
5769
|
+
"type": "string"
|
|
5770
|
+
},
|
|
5771
|
+
"HeartbeatFrame": {
|
|
5772
|
+
"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.",
|
|
5773
|
+
"properties": {
|
|
5774
|
+
"ts": {
|
|
5775
|
+
"description": "Server time when the heartbeat was sent.",
|
|
5776
|
+
"format": "date-time",
|
|
5777
|
+
"title": "Ts",
|
|
5778
|
+
"type": "string"
|
|
5779
|
+
},
|
|
5780
|
+
"type": {
|
|
5781
|
+
"const": "heartbeat",
|
|
5782
|
+
"default": "heartbeat",
|
|
5783
|
+
"title": "Type",
|
|
5784
|
+
"type": "string"
|
|
5785
|
+
}
|
|
5786
|
+
},
|
|
5787
|
+
"required": [
|
|
5788
|
+
"ts",
|
|
5789
|
+
"type"
|
|
5790
|
+
],
|
|
5791
|
+
"title": "HeartbeatFrame",
|
|
5792
|
+
"type": "object"
|
|
5793
|
+
},
|
|
5794
|
+
"InputContract": {
|
|
5795
|
+
"additionalProperties": false,
|
|
5796
|
+
"description": "The typed input contract: what goes INTO a session (the trigger is\nwhen it happens; this is what goes in).\n\n`json_schema` validates customer data sent as `input` to\n`POST /v1/agents/{id}/sessions` (the dashboard and the CLI start\nthrough the same door) and stored as `session.input`. An on-demand\nstart requires input when a schema is declared. A trigger fires\nwithout it: a cron fire has no payload and a react fire carries the\nplatform-shaped event, so an agent may declare a schema alongside\neither trigger and the schema governs only its on-demand starts.\n\n`message` is the initial-message template: exact `{{path}}` substitution\nover the payload the session has (the caller payload on an on-demand\nstart, the surface's published fields on a react fire, the empty\nobject on a cron fire), no conditionals/loops/filters. Refs are\nvalidated at deploy time against every governing field set (see\nAgentConfig's `_check_input`): the caller schema's paths, the react\nsurface's published fields, and both when the agent has a react trigger\nand a schema, so one template renders fully on either door (declare the\nsurface's field names in the schema). Omit `message` to let each door\nrender its default. An unresolved ref renders as the empty string (a\ncron fire, an optional field the payload omitted).",
|
|
5797
|
+
"properties": {
|
|
5798
|
+
"json_schema": {
|
|
5799
|
+
"anyOf": [
|
|
5800
|
+
{
|
|
5801
|
+
"additionalProperties": true,
|
|
5802
|
+
"type": "object"
|
|
5803
|
+
},
|
|
5804
|
+
{
|
|
5805
|
+
"type": "null"
|
|
5806
|
+
}
|
|
5807
|
+
],
|
|
5808
|
+
"default": null,
|
|
5809
|
+
"title": "Json Schema"
|
|
5810
|
+
},
|
|
5811
|
+
"message": {
|
|
5812
|
+
"anyOf": [
|
|
5813
|
+
{
|
|
5814
|
+
"type": "string"
|
|
5815
|
+
},
|
|
5816
|
+
{
|
|
5817
|
+
"type": "null"
|
|
5818
|
+
}
|
|
5819
|
+
],
|
|
5820
|
+
"default": null,
|
|
5821
|
+
"title": "Message"
|
|
5822
|
+
}
|
|
5823
|
+
},
|
|
5824
|
+
"required": [
|
|
5825
|
+
"json_schema",
|
|
5826
|
+
"message"
|
|
5827
|
+
],
|
|
5828
|
+
"title": "InputContract",
|
|
5829
|
+
"type": "object"
|
|
5830
|
+
},
|
|
5831
|
+
"IssueAction": {
|
|
5832
|
+
"enum": [
|
|
5833
|
+
"opened",
|
|
5834
|
+
"closed",
|
|
5835
|
+
"commented"
|
|
5836
|
+
],
|
|
5837
|
+
"title": "IssueAction",
|
|
5838
|
+
"type": "string"
|
|
5839
|
+
},
|
|
5840
|
+
"LegacyAssistantPayload": {
|
|
5841
|
+
"additionalProperties": true,
|
|
5842
|
+
"properties": {
|
|
5843
|
+
"cache_creation": {
|
|
5844
|
+
"anyOf": [
|
|
5845
|
+
{
|
|
5846
|
+
"$ref": "#/$defs/SdkCacheCreation"
|
|
5847
|
+
},
|
|
5848
|
+
{
|
|
5849
|
+
"type": "null"
|
|
5850
|
+
}
|
|
5851
|
+
],
|
|
5852
|
+
"default": null
|
|
5853
|
+
},
|
|
5854
|
+
"content": {
|
|
5855
|
+
"default": [],
|
|
5856
|
+
"items": {
|
|
5857
|
+
"discriminator": {
|
|
5858
|
+
"mapping": {
|
|
5859
|
+
"server_tool_result": "#/$defs/SdkServerToolResultBlock",
|
|
5860
|
+
"server_tool_use": "#/$defs/SdkServerToolUseBlock",
|
|
5861
|
+
"text": "#/$defs/SdkTextBlock",
|
|
5862
|
+
"thinking": "#/$defs/SdkThinkingBlock",
|
|
5863
|
+
"tool_result": "#/$defs/SdkToolResultBlock",
|
|
5512
5864
|
"tool_use": "#/$defs/SdkToolUseBlock"
|
|
5513
5865
|
},
|
|
5514
5866
|
"propertyName": "type"
|
|
@@ -5920,6 +6272,66 @@
|
|
|
5920
6272
|
"title": "LinearIssueEvent",
|
|
5921
6273
|
"type": "object"
|
|
5922
6274
|
},
|
|
6275
|
+
"LlmCost": {
|
|
6276
|
+
"description": "What LLM tokens cost, in total and by model.",
|
|
6277
|
+
"properties": {
|
|
6278
|
+
"all": {
|
|
6279
|
+
"$ref": "#/$defs/LlmCostSplit",
|
|
6280
|
+
"description": "Token cost across every model."
|
|
6281
|
+
},
|
|
6282
|
+
"by_model": {
|
|
6283
|
+
"description": "Token cost for each model that used tokens.",
|
|
6284
|
+
"items": {
|
|
6285
|
+
"$ref": "#/$defs/ModelLlmCostSplit"
|
|
6286
|
+
},
|
|
6287
|
+
"title": "By Model",
|
|
6288
|
+
"type": "array"
|
|
6289
|
+
}
|
|
6290
|
+
},
|
|
6291
|
+
"required": [
|
|
6292
|
+
"all",
|
|
6293
|
+
"by_model"
|
|
6294
|
+
],
|
|
6295
|
+
"title": "LlmCost",
|
|
6296
|
+
"type": "object"
|
|
6297
|
+
},
|
|
6298
|
+
"LlmCostSplit": {
|
|
6299
|
+
"description": "What LLM tokens cost, in millicents, split by who paid (Ellipsis credit or the user's own subscription).",
|
|
6300
|
+
"properties": {
|
|
6301
|
+
"claude_subscription": {
|
|
6302
|
+
"default": 0,
|
|
6303
|
+
"description": "Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.",
|
|
6304
|
+
"title": "Claude Subscription",
|
|
6305
|
+
"type": "integer"
|
|
6306
|
+
},
|
|
6307
|
+
"codex_subscription": {
|
|
6308
|
+
"default": 0,
|
|
6309
|
+
"description": "Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.",
|
|
6310
|
+
"title": "Codex Subscription",
|
|
6311
|
+
"type": "integer"
|
|
6312
|
+
},
|
|
6313
|
+
"platform": {
|
|
6314
|
+
"default": 0,
|
|
6315
|
+
"description": "Token cost charged to Ellipsis credit, in millicents.",
|
|
6316
|
+
"title": "Platform",
|
|
6317
|
+
"type": "integer"
|
|
6318
|
+
},
|
|
6319
|
+
"total": {
|
|
6320
|
+
"default": 0,
|
|
6321
|
+
"description": "All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.",
|
|
6322
|
+
"title": "Total",
|
|
6323
|
+
"type": "integer"
|
|
6324
|
+
}
|
|
6325
|
+
},
|
|
6326
|
+
"required": [
|
|
6327
|
+
"claude_subscription",
|
|
6328
|
+
"codex_subscription",
|
|
6329
|
+
"platform",
|
|
6330
|
+
"total"
|
|
6331
|
+
],
|
|
6332
|
+
"title": "LlmCostSplit",
|
|
6333
|
+
"type": "object"
|
|
6334
|
+
},
|
|
5923
6335
|
"McpRemoteServer": {
|
|
5924
6336
|
"additionalProperties": false,
|
|
5925
6337
|
"description": "A bring-your-own remote MCP server: the harness talks HTTP to `url`.\nNothing runs in the environment image. `headers` carry static auth (e.g.\n`Authorization: Bearer ${TOKEN}`); values may embed `${NAME}` secret\nreferences, resolved at run time from the account's secrets store.",
|
|
@@ -6645,6 +7057,99 @@
|
|
|
6645
7057
|
"type": "object",
|
|
6646
7058
|
"x-ellipsis-preserve-payload": true
|
|
6647
7059
|
},
|
|
7060
|
+
"ModelLlmCostSplit": {
|
|
7061
|
+
"description": "What one model's tokens cost, in millicents, split by who paid.",
|
|
7062
|
+
"properties": {
|
|
7063
|
+
"claude_subscription": {
|
|
7064
|
+
"default": 0,
|
|
7065
|
+
"description": "Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.",
|
|
7066
|
+
"title": "Claude Subscription",
|
|
7067
|
+
"type": "integer"
|
|
7068
|
+
},
|
|
7069
|
+
"codex_subscription": {
|
|
7070
|
+
"default": 0,
|
|
7071
|
+
"description": "Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.",
|
|
7072
|
+
"title": "Codex Subscription",
|
|
7073
|
+
"type": "integer"
|
|
7074
|
+
},
|
|
7075
|
+
"model": {
|
|
7076
|
+
"description": "The model that used these tokens.",
|
|
7077
|
+
"title": "Model",
|
|
7078
|
+
"type": "string"
|
|
7079
|
+
},
|
|
7080
|
+
"platform": {
|
|
7081
|
+
"default": 0,
|
|
7082
|
+
"description": "Token cost charged to Ellipsis credit, in millicents.",
|
|
7083
|
+
"title": "Platform",
|
|
7084
|
+
"type": "integer"
|
|
7085
|
+
},
|
|
7086
|
+
"total": {
|
|
7087
|
+
"default": 0,
|
|
7088
|
+
"description": "All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.",
|
|
7089
|
+
"title": "Total",
|
|
7090
|
+
"type": "integer"
|
|
7091
|
+
}
|
|
7092
|
+
},
|
|
7093
|
+
"required": [
|
|
7094
|
+
"claude_subscription",
|
|
7095
|
+
"codex_subscription",
|
|
7096
|
+
"model",
|
|
7097
|
+
"platform",
|
|
7098
|
+
"total"
|
|
7099
|
+
],
|
|
7100
|
+
"title": "ModelLlmCostSplit",
|
|
7101
|
+
"type": "object"
|
|
7102
|
+
},
|
|
7103
|
+
"ModelTokenCounts": {
|
|
7104
|
+
"description": "Token counts for one model.",
|
|
7105
|
+
"properties": {
|
|
7106
|
+
"cache_creation": {
|
|
7107
|
+
"default": 0,
|
|
7108
|
+
"description": "Tokens written to the prompt cache.",
|
|
7109
|
+
"title": "Cache Creation",
|
|
7110
|
+
"type": "integer"
|
|
7111
|
+
},
|
|
7112
|
+
"cache_read": {
|
|
7113
|
+
"default": 0,
|
|
7114
|
+
"description": "Tokens read from the prompt cache.",
|
|
7115
|
+
"title": "Cache Read",
|
|
7116
|
+
"type": "integer"
|
|
7117
|
+
},
|
|
7118
|
+
"input": {
|
|
7119
|
+
"default": 0,
|
|
7120
|
+
"description": "Input tokens used.",
|
|
7121
|
+
"title": "Input",
|
|
7122
|
+
"type": "integer"
|
|
7123
|
+
},
|
|
7124
|
+
"model": {
|
|
7125
|
+
"description": "The model that used these tokens.",
|
|
7126
|
+
"title": "Model",
|
|
7127
|
+
"type": "string"
|
|
7128
|
+
},
|
|
7129
|
+
"output": {
|
|
7130
|
+
"default": 0,
|
|
7131
|
+
"description": "Output tokens used.",
|
|
7132
|
+
"title": "Output",
|
|
7133
|
+
"type": "integer"
|
|
7134
|
+
},
|
|
7135
|
+
"total": {
|
|
7136
|
+
"default": 0,
|
|
7137
|
+
"description": "All tokens used, including prompt cache reads and writes. Token cost is priced on this.",
|
|
7138
|
+
"title": "Total",
|
|
7139
|
+
"type": "integer"
|
|
7140
|
+
}
|
|
7141
|
+
},
|
|
7142
|
+
"required": [
|
|
7143
|
+
"cache_creation",
|
|
7144
|
+
"cache_read",
|
|
7145
|
+
"input",
|
|
7146
|
+
"model",
|
|
7147
|
+
"output",
|
|
7148
|
+
"total"
|
|
7149
|
+
],
|
|
7150
|
+
"title": "ModelTokenCounts",
|
|
7151
|
+
"type": "object"
|
|
7152
|
+
},
|
|
6648
7153
|
"OutputConfig": {
|
|
6649
7154
|
"additionalProperties": false,
|
|
6650
7155
|
"description": "JSON Schema for the harness's structured result, when certified.",
|
|
@@ -6766,7 +7271,7 @@
|
|
|
6766
7271
|
},
|
|
6767
7272
|
"ReactCheckRun": {
|
|
6768
7273
|
"additionalProperties": false,
|
|
6769
|
-
"description": "A
|
|
7274
|
+
"description": "A check run changing state on a commit. A check run is a GitHub Actions job or a check another CI app reports. `on` lists the states that fire. `names` matches check names exactly or by a prefix ending in `*`. `branch` is the branch the check ran on. `for` is the author of the commit the check ran on. Needs the Checks permission.",
|
|
6770
7275
|
"properties": {
|
|
6771
7276
|
"branch": {
|
|
6772
7277
|
"default": [],
|
|
@@ -6811,6 +7316,53 @@
|
|
|
6811
7316
|
"title": "ReactCheckRun",
|
|
6812
7317
|
"type": "object"
|
|
6813
7318
|
},
|
|
7319
|
+
"ReactCheckSuite": {
|
|
7320
|
+
"additionalProperties": false,
|
|
7321
|
+
"description": "Every check one CI app reported on a commit finishing. GitHub reports a check suite only when it finishes, so `on` takes only finished states. `apps` matches the reporting app slug, such as `github-actions`, exactly or by a prefix ending in `*`. `branch` and `for` work as on `check_run`. Needs the Checks permission.",
|
|
7322
|
+
"properties": {
|
|
7323
|
+
"apps": {
|
|
7324
|
+
"default": [],
|
|
7325
|
+
"items": {
|
|
7326
|
+
"type": "string"
|
|
7327
|
+
},
|
|
7328
|
+
"title": "Apps",
|
|
7329
|
+
"type": "array"
|
|
7330
|
+
},
|
|
7331
|
+
"branch": {
|
|
7332
|
+
"default": [],
|
|
7333
|
+
"items": {
|
|
7334
|
+
"type": "string"
|
|
7335
|
+
},
|
|
7336
|
+
"title": "Branch",
|
|
7337
|
+
"type": "array"
|
|
7338
|
+
},
|
|
7339
|
+
"for": {
|
|
7340
|
+
"$ref": "#/$defs/GithubAccountSelector"
|
|
7341
|
+
},
|
|
7342
|
+
"on": {
|
|
7343
|
+
"default": [
|
|
7344
|
+
"failed"
|
|
7345
|
+
],
|
|
7346
|
+
"items": {
|
|
7347
|
+
"$ref": "#/$defs/CheckSuiteAction"
|
|
7348
|
+
},
|
|
7349
|
+
"title": "On",
|
|
7350
|
+
"type": "array"
|
|
7351
|
+
},
|
|
7352
|
+
"repositories": {
|
|
7353
|
+
"$ref": "#/$defs/RepositoryFilter"
|
|
7354
|
+
}
|
|
7355
|
+
},
|
|
7356
|
+
"required": [
|
|
7357
|
+
"apps",
|
|
7358
|
+
"branch",
|
|
7359
|
+
"for",
|
|
7360
|
+
"on",
|
|
7361
|
+
"repositories"
|
|
7362
|
+
],
|
|
7363
|
+
"title": "ReactCheckSuite",
|
|
7364
|
+
"type": "object"
|
|
7365
|
+
},
|
|
6814
7366
|
"ReactIssue": {
|
|
6815
7367
|
"additionalProperties": false,
|
|
6816
7368
|
"properties": {
|
|
@@ -7034,31 +7586,78 @@
|
|
|
7034
7586
|
"properties": {
|
|
7035
7587
|
"on": {
|
|
7036
7588
|
"items": {
|
|
7037
|
-
"$ref": "#/$defs/SentryAction"
|
|
7589
|
+
"$ref": "#/$defs/SentryAction"
|
|
7590
|
+
},
|
|
7591
|
+
"title": "On",
|
|
7592
|
+
"type": "array"
|
|
7593
|
+
},
|
|
7594
|
+
"projects": {
|
|
7595
|
+
"default": [],
|
|
7596
|
+
"items": {
|
|
7597
|
+
"type": "string"
|
|
7598
|
+
},
|
|
7599
|
+
"title": "Projects",
|
|
7600
|
+
"type": "array"
|
|
7601
|
+
}
|
|
7602
|
+
},
|
|
7603
|
+
"required": [
|
|
7604
|
+
"on",
|
|
7605
|
+
"projects"
|
|
7606
|
+
],
|
|
7607
|
+
"title": "ReactSentry",
|
|
7608
|
+
"type": "object"
|
|
7609
|
+
},
|
|
7610
|
+
"ReactSlackChannel": {
|
|
7611
|
+
"additionalProperties": false,
|
|
7612
|
+
"properties": {},
|
|
7613
|
+
"title": "ReactSlackChannel",
|
|
7614
|
+
"type": "object"
|
|
7615
|
+
},
|
|
7616
|
+
"ReactStatus": {
|
|
7617
|
+
"additionalProperties": false,
|
|
7618
|
+
"description": "A commit status changing state, from CI that posts statuses instead of checks. `names` matches status contexts exactly or by a prefix ending in `*`. `branch` matches when any branch GitHub lists for the commit matches. `for` works as on `check_run`. Needs the Commit statuses permission.",
|
|
7619
|
+
"properties": {
|
|
7620
|
+
"branch": {
|
|
7621
|
+
"default": [],
|
|
7622
|
+
"items": {
|
|
7623
|
+
"type": "string"
|
|
7624
|
+
},
|
|
7625
|
+
"title": "Branch",
|
|
7626
|
+
"type": "array"
|
|
7627
|
+
},
|
|
7628
|
+
"for": {
|
|
7629
|
+
"$ref": "#/$defs/GithubAccountSelector"
|
|
7630
|
+
},
|
|
7631
|
+
"names": {
|
|
7632
|
+
"default": [],
|
|
7633
|
+
"items": {
|
|
7634
|
+
"type": "string"
|
|
7038
7635
|
},
|
|
7039
|
-
"title": "
|
|
7636
|
+
"title": "Names",
|
|
7040
7637
|
"type": "array"
|
|
7041
7638
|
},
|
|
7042
|
-
"
|
|
7043
|
-
"default": [
|
|
7639
|
+
"on": {
|
|
7640
|
+
"default": [
|
|
7641
|
+
"failed"
|
|
7642
|
+
],
|
|
7044
7643
|
"items": {
|
|
7045
|
-
"
|
|
7644
|
+
"$ref": "#/$defs/StatusAction"
|
|
7046
7645
|
},
|
|
7047
|
-
"title": "
|
|
7646
|
+
"title": "On",
|
|
7048
7647
|
"type": "array"
|
|
7648
|
+
},
|
|
7649
|
+
"repositories": {
|
|
7650
|
+
"$ref": "#/$defs/RepositoryFilter"
|
|
7049
7651
|
}
|
|
7050
7652
|
},
|
|
7051
7653
|
"required": [
|
|
7654
|
+
"branch",
|
|
7655
|
+
"for",
|
|
7656
|
+
"names",
|
|
7052
7657
|
"on",
|
|
7053
|
-
"
|
|
7658
|
+
"repositories"
|
|
7054
7659
|
],
|
|
7055
|
-
"title": "
|
|
7056
|
-
"type": "object"
|
|
7057
|
-
},
|
|
7058
|
-
"ReactSlackChannel": {
|
|
7059
|
-
"additionalProperties": false,
|
|
7060
|
-
"properties": {},
|
|
7061
|
-
"title": "ReactSlackChannel",
|
|
7660
|
+
"title": "ReactStatus",
|
|
7062
7661
|
"type": "object"
|
|
7063
7662
|
},
|
|
7064
7663
|
"ReactTrigger": {
|
|
@@ -7076,6 +7675,17 @@
|
|
|
7076
7675
|
],
|
|
7077
7676
|
"default": null
|
|
7078
7677
|
},
|
|
7678
|
+
"check_suite": {
|
|
7679
|
+
"anyOf": [
|
|
7680
|
+
{
|
|
7681
|
+
"$ref": "#/$defs/ReactCheckSuite"
|
|
7682
|
+
},
|
|
7683
|
+
{
|
|
7684
|
+
"type": "null"
|
|
7685
|
+
}
|
|
7686
|
+
],
|
|
7687
|
+
"default": null
|
|
7688
|
+
},
|
|
7079
7689
|
"enabled": {
|
|
7080
7690
|
"default": true,
|
|
7081
7691
|
"title": "Enabled",
|
|
@@ -7158,15 +7768,38 @@
|
|
|
7158
7768
|
],
|
|
7159
7769
|
"default": null
|
|
7160
7770
|
},
|
|
7771
|
+
"status": {
|
|
7772
|
+
"anyOf": [
|
|
7773
|
+
{
|
|
7774
|
+
"$ref": "#/$defs/ReactStatus"
|
|
7775
|
+
},
|
|
7776
|
+
{
|
|
7777
|
+
"type": "null"
|
|
7778
|
+
}
|
|
7779
|
+
],
|
|
7780
|
+
"default": null
|
|
7781
|
+
},
|
|
7161
7782
|
"type": {
|
|
7162
7783
|
"const": "react",
|
|
7163
7784
|
"default": "react",
|
|
7164
7785
|
"title": "Type",
|
|
7165
7786
|
"type": "string"
|
|
7787
|
+
},
|
|
7788
|
+
"workflow_run": {
|
|
7789
|
+
"anyOf": [
|
|
7790
|
+
{
|
|
7791
|
+
"$ref": "#/$defs/ReactWorkflowRun"
|
|
7792
|
+
},
|
|
7793
|
+
{
|
|
7794
|
+
"type": "null"
|
|
7795
|
+
}
|
|
7796
|
+
],
|
|
7797
|
+
"default": null
|
|
7166
7798
|
}
|
|
7167
7799
|
},
|
|
7168
7800
|
"required": [
|
|
7169
7801
|
"check_run",
|
|
7802
|
+
"check_suite",
|
|
7170
7803
|
"enabled",
|
|
7171
7804
|
"issue",
|
|
7172
7805
|
"linear_issue",
|
|
@@ -7175,11 +7808,60 @@
|
|
|
7175
7808
|
"release",
|
|
7176
7809
|
"sentry",
|
|
7177
7810
|
"slack_channel",
|
|
7178
|
-
"
|
|
7811
|
+
"status",
|
|
7812
|
+
"type",
|
|
7813
|
+
"workflow_run"
|
|
7179
7814
|
],
|
|
7180
7815
|
"title": "ReactTrigger",
|
|
7181
7816
|
"type": "object"
|
|
7182
7817
|
},
|
|
7818
|
+
"ReactWorkflowRun": {
|
|
7819
|
+
"additionalProperties": false,
|
|
7820
|
+
"description": "A GitHub Actions workflow run changing state. `names` matches workflow names exactly or by a prefix ending in `*`. `branch` is the branch the run is for. `for` works as on `check_run`. Needs the Actions permission.",
|
|
7821
|
+
"properties": {
|
|
7822
|
+
"branch": {
|
|
7823
|
+
"default": [],
|
|
7824
|
+
"items": {
|
|
7825
|
+
"type": "string"
|
|
7826
|
+
},
|
|
7827
|
+
"title": "Branch",
|
|
7828
|
+
"type": "array"
|
|
7829
|
+
},
|
|
7830
|
+
"for": {
|
|
7831
|
+
"$ref": "#/$defs/GithubAccountSelector"
|
|
7832
|
+
},
|
|
7833
|
+
"names": {
|
|
7834
|
+
"default": [],
|
|
7835
|
+
"items": {
|
|
7836
|
+
"type": "string"
|
|
7837
|
+
},
|
|
7838
|
+
"title": "Names",
|
|
7839
|
+
"type": "array"
|
|
7840
|
+
},
|
|
7841
|
+
"on": {
|
|
7842
|
+
"default": [
|
|
7843
|
+
"failed"
|
|
7844
|
+
],
|
|
7845
|
+
"items": {
|
|
7846
|
+
"$ref": "#/$defs/WorkflowRunAction"
|
|
7847
|
+
},
|
|
7848
|
+
"title": "On",
|
|
7849
|
+
"type": "array"
|
|
7850
|
+
},
|
|
7851
|
+
"repositories": {
|
|
7852
|
+
"$ref": "#/$defs/RepositoryFilter"
|
|
7853
|
+
}
|
|
7854
|
+
},
|
|
7855
|
+
"required": [
|
|
7856
|
+
"branch",
|
|
7857
|
+
"for",
|
|
7858
|
+
"names",
|
|
7859
|
+
"on",
|
|
7860
|
+
"repositories"
|
|
7861
|
+
],
|
|
7862
|
+
"title": "ReactWorkflowRun",
|
|
7863
|
+
"type": "object"
|
|
7864
|
+
},
|
|
7183
7865
|
"RecordsAppendFrame": {
|
|
7184
7866
|
"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.",
|
|
7185
7867
|
"properties": {
|
|
@@ -7890,9 +8572,9 @@
|
|
|
7890
8572
|
},
|
|
7891
8573
|
"budget": {
|
|
7892
8574
|
"default": 0,
|
|
7893
|
-
"description": "The spend budget enforced for this session, in
|
|
8575
|
+
"description": "The spend budget enforced for this session, in millicents, after resolving defaults and ceilings.",
|
|
7894
8576
|
"title": "Budget",
|
|
7895
|
-
"type": "
|
|
8577
|
+
"type": "integer"
|
|
7896
8578
|
},
|
|
7897
8579
|
"claude_code": {
|
|
7898
8580
|
"anyOf": [
|
|
@@ -7923,8 +8605,8 @@
|
|
|
7923
8605
|
"description": "Whether the session can take more messages, and whether an agent is warm to answer one."
|
|
7924
8606
|
},
|
|
7925
8607
|
"cost": {
|
|
7926
|
-
"$ref": "#/$defs/
|
|
7927
|
-
"description": "What the session has cost so far
|
|
8608
|
+
"$ref": "#/$defs/Cost",
|
|
8609
|
+
"description": "What the session has cost so far."
|
|
7928
8610
|
},
|
|
7929
8611
|
"created_at": {
|
|
7930
8612
|
"description": "When the session was created.",
|
|
@@ -7942,10 +8624,13 @@
|
|
|
7942
8624
|
"discriminator": {
|
|
7943
8625
|
"mapping": {
|
|
7944
8626
|
"github.check_run": "#/$defs/GithubCheckRunEvent",
|
|
8627
|
+
"github.check_suite": "#/$defs/GithubCheckSuiteEvent",
|
|
7945
8628
|
"github.issue": "#/$defs/GithubIssueEvent",
|
|
7946
8629
|
"github.pull_request": "#/$defs/GithubPullRequestEvent",
|
|
7947
8630
|
"github.push": "#/$defs/GithubPushEvent",
|
|
7948
8631
|
"github.release": "#/$defs/GithubReleaseEvent",
|
|
8632
|
+
"github.status": "#/$defs/GithubStatusEvent",
|
|
8633
|
+
"github.workflow_run": "#/$defs/GithubWorkflowRunEvent",
|
|
7949
8634
|
"linear.issue": "#/$defs/LinearIssueEvent",
|
|
7950
8635
|
"sentry.alert": "#/$defs/SentryAlertEvent",
|
|
7951
8636
|
"slack.channel_created": "#/$defs/SlackChannelCreatedEvent",
|
|
@@ -7966,6 +8651,15 @@
|
|
|
7966
8651
|
{
|
|
7967
8652
|
"$ref": "#/$defs/GithubCheckRunEvent"
|
|
7968
8653
|
},
|
|
8654
|
+
{
|
|
8655
|
+
"$ref": "#/$defs/GithubCheckSuiteEvent"
|
|
8656
|
+
},
|
|
8657
|
+
{
|
|
8658
|
+
"$ref": "#/$defs/GithubWorkflowRunEvent"
|
|
8659
|
+
},
|
|
8660
|
+
{
|
|
8661
|
+
"$ref": "#/$defs/GithubStatusEvent"
|
|
8662
|
+
},
|
|
7969
8663
|
{
|
|
7970
8664
|
"$ref": "#/$defs/GithubReleaseEvent"
|
|
7971
8665
|
},
|
|
@@ -8082,8 +8776,8 @@
|
|
|
8082
8776
|
"description": "The latest live summary of the session's progress while it runs, and when it was generated."
|
|
8083
8777
|
},
|
|
8084
8778
|
"tokens": {
|
|
8085
|
-
"$ref": "#/$defs/
|
|
8086
|
-
"description": "The tokens the session
|
|
8779
|
+
"$ref": "#/$defs/Tokens",
|
|
8780
|
+
"description": "The tokens the session has used so far."
|
|
8087
8781
|
},
|
|
8088
8782
|
"turn": {
|
|
8089
8783
|
"anyOf": [
|
|
@@ -8614,50 +9308,6 @@
|
|
|
8614
9308
|
"title": "SessionConversationConfig",
|
|
8615
9309
|
"type": "object"
|
|
8616
9310
|
},
|
|
8617
|
-
"SessionCost": {
|
|
8618
|
-
"description": "What a session (or one turn of it) cost, in millicents.\n\n`llm` is deliberately NOT called `tokens`: it would sit beside the `tokens`\nobject and read as \"the token count's cost\" rather than \"the cost of the\nLLM leg\".",
|
|
8619
|
-
"properties": {
|
|
8620
|
-
"cpu": {
|
|
8621
|
-
"default": 0,
|
|
8622
|
-
"description": "CPU spend in millicents.",
|
|
8623
|
-
"title": "Cpu",
|
|
8624
|
-
"type": "integer"
|
|
8625
|
-
},
|
|
8626
|
-
"fee": {
|
|
8627
|
-
"default": 0,
|
|
8628
|
-
"description": "Platform fee in millicents.",
|
|
8629
|
-
"title": "Fee",
|
|
8630
|
-
"type": "integer"
|
|
8631
|
-
},
|
|
8632
|
-
"llm": {
|
|
8633
|
-
"default": 0,
|
|
8634
|
-
"description": "LLM spend in millicents.",
|
|
8635
|
-
"title": "Llm",
|
|
8636
|
-
"type": "integer"
|
|
8637
|
-
},
|
|
8638
|
-
"memory": {
|
|
8639
|
-
"default": 0,
|
|
8640
|
-
"description": "Memory spend in millicents.",
|
|
8641
|
-
"title": "Memory",
|
|
8642
|
-
"type": "integer"
|
|
8643
|
-
},
|
|
8644
|
-
"total": {
|
|
8645
|
-
"default": 0,
|
|
8646
|
-
"description": "The grand total in millicents: llm + cpu + memory + fee.",
|
|
8647
|
-
"title": "Total",
|
|
8648
|
-
"type": "integer"
|
|
8649
|
-
}
|
|
8650
|
-
},
|
|
8651
|
-
"required": [
|
|
8652
|
-
"cpu",
|
|
8653
|
-
"fee",
|
|
8654
|
-
"llm",
|
|
8655
|
-
"memory",
|
|
8656
|
-
"total"
|
|
8657
|
-
],
|
|
8658
|
-
"title": "SessionCost",
|
|
8659
|
-
"type": "object"
|
|
8660
|
-
},
|
|
8661
9311
|
"SessionEnvironment": {
|
|
8662
9312
|
"additionalProperties": false,
|
|
8663
9313
|
"description": "The environment configuration frozen at session creation, enriched with\nthe saved environment's identity and how it was chosen.",
|
|
@@ -9436,62 +10086,11 @@
|
|
|
9436
10086
|
"title": "SessionSummary",
|
|
9437
10087
|
"type": "object"
|
|
9438
10088
|
},
|
|
9439
|
-
"SessionTokens": {
|
|
9440
|
-
"description": "The token counts a session (or turn) spent, and the model they went to.\n\n`total` INCLUDES the cache lanes, unlike the old flat `tokens_total` which\ncounted input+output+thinking only and left callers to add cache reads and\nwrites back themselves (the deleted `tokensTotalAll` helper). Cache tokens\ndominate an agent run's token bill, so a \"total\" that omits them is the\nwrong default and produced two competing totals in the dashboard.",
|
|
9441
|
-
"properties": {
|
|
9442
|
-
"cache_creation": {
|
|
9443
|
-
"default": 0,
|
|
9444
|
-
"description": "Tokens written to the prompt cache.",
|
|
9445
|
-
"title": "Cache Creation",
|
|
9446
|
-
"type": "integer"
|
|
9447
|
-
},
|
|
9448
|
-
"cache_read": {
|
|
9449
|
-
"default": 0,
|
|
9450
|
-
"description": "Tokens read from the prompt cache.",
|
|
9451
|
-
"title": "Cache Read",
|
|
9452
|
-
"type": "integer"
|
|
9453
|
-
},
|
|
9454
|
-
"input": {
|
|
9455
|
-
"default": 0,
|
|
9456
|
-
"description": "Input tokens used.",
|
|
9457
|
-
"title": "Input",
|
|
9458
|
-
"type": "integer"
|
|
9459
|
-
},
|
|
9460
|
-
"model": {
|
|
9461
|
-
"default": "",
|
|
9462
|
-
"description": "The model the token counts are attributed to.",
|
|
9463
|
-
"title": "Model",
|
|
9464
|
-
"type": "string"
|
|
9465
|
-
},
|
|
9466
|
-
"output": {
|
|
9467
|
-
"default": 0,
|
|
9468
|
-
"description": "Output tokens used.",
|
|
9469
|
-
"title": "Output",
|
|
9470
|
-
"type": "integer"
|
|
9471
|
-
},
|
|
9472
|
-
"total": {
|
|
9473
|
-
"default": 0,
|
|
9474
|
-
"description": "Total tokens consumed, INCLUDING the prompt-cache reads and writes \u2014 the same basis the token cost is priced on.",
|
|
9475
|
-
"title": "Total",
|
|
9476
|
-
"type": "integer"
|
|
9477
|
-
}
|
|
9478
|
-
},
|
|
9479
|
-
"required": [
|
|
9480
|
-
"cache_creation",
|
|
9481
|
-
"cache_read",
|
|
9482
|
-
"input",
|
|
9483
|
-
"model",
|
|
9484
|
-
"output",
|
|
9485
|
-
"total"
|
|
9486
|
-
],
|
|
9487
|
-
"title": "SessionTokens",
|
|
9488
|
-
"type": "object"
|
|
9489
|
-
},
|
|
9490
10089
|
"SessionTurn": {
|
|
9491
10090
|
"description": "One message and the agent's answer to it. A turn is `pending` from the\nmoment its message is received until the agent starts on it, `running`\nwhile the agent works, then `completed`, `failed`, `stopped`, or\n`cancelled`.",
|
|
9492
10091
|
"properties": {
|
|
9493
10092
|
"cost": {
|
|
9494
|
-
"$ref": "#/$defs/
|
|
10093
|
+
"$ref": "#/$defs/Cost",
|
|
9495
10094
|
"description": "What the turn cost so far, in millicents, broken down by leg."
|
|
9496
10095
|
},
|
|
9497
10096
|
"created_at": {
|
|
@@ -9580,7 +10179,7 @@
|
|
|
9580
10179
|
"description": "When and by whom a stop was requested; null when none was."
|
|
9581
10180
|
},
|
|
9582
10181
|
"tokens": {
|
|
9583
|
-
"$ref": "#/$defs/
|
|
10182
|
+
"$ref": "#/$defs/Tokens",
|
|
9584
10183
|
"description": "The tokens the turn spent and the model they went to."
|
|
9585
10184
|
}
|
|
9586
10185
|
},
|
|
@@ -9831,6 +10430,84 @@
|
|
|
9831
10430
|
"title": "SnapshotFrame",
|
|
9832
10431
|
"type": "object"
|
|
9833
10432
|
},
|
|
10433
|
+
"StatusAction": {
|
|
10434
|
+
"description": "The state of a commit status. `success` is `passed`, `failure` is `failed`, and `error` is `errored`.",
|
|
10435
|
+
"enum": [
|
|
10436
|
+
"pending",
|
|
10437
|
+
"passed",
|
|
10438
|
+
"failed",
|
|
10439
|
+
"errored"
|
|
10440
|
+
],
|
|
10441
|
+
"title": "StatusAction",
|
|
10442
|
+
"type": "string"
|
|
10443
|
+
},
|
|
10444
|
+
"TokenCounts": {
|
|
10445
|
+
"description": "Token counts.",
|
|
10446
|
+
"properties": {
|
|
10447
|
+
"cache_creation": {
|
|
10448
|
+
"default": 0,
|
|
10449
|
+
"description": "Tokens written to the prompt cache.",
|
|
10450
|
+
"title": "Cache Creation",
|
|
10451
|
+
"type": "integer"
|
|
10452
|
+
},
|
|
10453
|
+
"cache_read": {
|
|
10454
|
+
"default": 0,
|
|
10455
|
+
"description": "Tokens read from the prompt cache.",
|
|
10456
|
+
"title": "Cache Read",
|
|
10457
|
+
"type": "integer"
|
|
10458
|
+
},
|
|
10459
|
+
"input": {
|
|
10460
|
+
"default": 0,
|
|
10461
|
+
"description": "Input tokens used.",
|
|
10462
|
+
"title": "Input",
|
|
10463
|
+
"type": "integer"
|
|
10464
|
+
},
|
|
10465
|
+
"output": {
|
|
10466
|
+
"default": 0,
|
|
10467
|
+
"description": "Output tokens used.",
|
|
10468
|
+
"title": "Output",
|
|
10469
|
+
"type": "integer"
|
|
10470
|
+
},
|
|
10471
|
+
"total": {
|
|
10472
|
+
"default": 0,
|
|
10473
|
+
"description": "All tokens used, including prompt cache reads and writes. Token cost is priced on this.",
|
|
10474
|
+
"title": "Total",
|
|
10475
|
+
"type": "integer"
|
|
10476
|
+
}
|
|
10477
|
+
},
|
|
10478
|
+
"required": [
|
|
10479
|
+
"cache_creation",
|
|
10480
|
+
"cache_read",
|
|
10481
|
+
"input",
|
|
10482
|
+
"output",
|
|
10483
|
+
"total"
|
|
10484
|
+
],
|
|
10485
|
+
"title": "TokenCounts",
|
|
10486
|
+
"type": "object"
|
|
10487
|
+
},
|
|
10488
|
+
"Tokens": {
|
|
10489
|
+
"description": "Tokens used, in total and by model.",
|
|
10490
|
+
"properties": {
|
|
10491
|
+
"all": {
|
|
10492
|
+
"$ref": "#/$defs/TokenCounts",
|
|
10493
|
+
"description": "Token counts across every model."
|
|
10494
|
+
},
|
|
10495
|
+
"by_model": {
|
|
10496
|
+
"description": "Token counts for each model that used tokens.",
|
|
10497
|
+
"items": {
|
|
10498
|
+
"$ref": "#/$defs/ModelTokenCounts"
|
|
10499
|
+
},
|
|
10500
|
+
"title": "By Model",
|
|
10501
|
+
"type": "array"
|
|
10502
|
+
}
|
|
10503
|
+
},
|
|
10504
|
+
"required": [
|
|
10505
|
+
"all",
|
|
10506
|
+
"by_model"
|
|
10507
|
+
],
|
|
10508
|
+
"title": "Tokens",
|
|
10509
|
+
"type": "object"
|
|
10510
|
+
},
|
|
9834
10511
|
"TokensInfo": {
|
|
9835
10512
|
"additionalProperties": false,
|
|
9836
10513
|
"description": "Token/cost usage, per record (one API call's counts, aggregate fields at\ntheir zero defaults) or aggregated per turn/session\n(compute_spend_from_records derives num_turns and cost_usd).\n\nStrict on purpose: this is our own persisted schema, so an unknown key is a\nwriter bug (the num_turns=0 bug shipped because a Claude Code usage dict\nvalidated leniently against this model, silently zeroing every\nnon-overlapping field). Legacy keys were dropped from persisted blobs by\nthe 2026-07-26 tokens_info migration; per-model usage (CC's modelUsage,\nverbatim) is stored separately, not here.",
|
|
@@ -10465,6 +11142,27 @@
|
|
|
10465
11142
|
"title": "UnknownSessionRecord",
|
|
10466
11143
|
"type": "object",
|
|
10467
11144
|
"x-ellipsis-preserve-payload": true
|
|
11145
|
+
},
|
|
11146
|
+
"WorkflowRunAction": {
|
|
11147
|
+
"description": "The state of a GitHub Actions workflow run when GitHub reports it. Before the run finishes it is the status, and `in_progress` is `started`. After it finishes it is the conclusion, `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.",
|
|
11148
|
+
"enum": [
|
|
11149
|
+
"requested",
|
|
11150
|
+
"queued",
|
|
11151
|
+
"waiting",
|
|
11152
|
+
"pending",
|
|
11153
|
+
"started",
|
|
11154
|
+
"passed",
|
|
11155
|
+
"failed",
|
|
11156
|
+
"timed_out",
|
|
11157
|
+
"cancelled",
|
|
11158
|
+
"skipped",
|
|
11159
|
+
"neutral",
|
|
11160
|
+
"action_required",
|
|
11161
|
+
"stale",
|
|
11162
|
+
"startup_failure"
|
|
11163
|
+
],
|
|
11164
|
+
"title": "WorkflowRunAction",
|
|
11165
|
+
"type": "string"
|
|
10468
11166
|
}
|
|
10469
11167
|
},
|
|
10470
11168
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|