@ellipsis-dev/sdk 0.32.0 → 0.34.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/{chunk-G2AEYZW2.js → chunk-6V7QTLLF.js} +1 -1
- package/dist/index.d.ts +281 -134
- package/dist/index.js +105 -106
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.js +4 -2
- package/dist/stream/index.d.ts +2 -2
- package/dist/stream/index.js +1 -1
- package/dist/{types-DjY1VcOe.d.ts → types-sNAOvELB.d.ts} +1198 -660
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +830 -125
- package/schema/frames.schema.json +1103 -215
- package/schema/lifecycle.schema.json +30 -1
- package/schema/openapi.v1.json +1694 -736
- package/schema/trigger_fields.schema.json +348 -7
|
@@ -126,6 +126,11 @@
|
|
|
126
126
|
"description": "The open pull request that adds this agent's file. Non-null means the agent is not live yet: it starts running once the pull request merges and syncs.",
|
|
127
127
|
"title": "Pending Pull Request Url"
|
|
128
128
|
},
|
|
129
|
+
"raw_yaml": {
|
|
130
|
+
"description": "The agent's YAML: the file as written for agents defined in a repository, or the definition rendered as YAML for agents managed through the API. A failed sync keeps the last valid YAML.",
|
|
131
|
+
"title": "Raw Yaml",
|
|
132
|
+
"type": "string"
|
|
133
|
+
},
|
|
129
134
|
"sha": {
|
|
130
135
|
"description": "The definition's content identity: the version fingerprint frozen onto each session that runs it.",
|
|
131
136
|
"title": "Sha",
|
|
@@ -163,6 +168,7 @@
|
|
|
163
168
|
"managed_by",
|
|
164
169
|
"name",
|
|
165
170
|
"pending_pull_request_url",
|
|
171
|
+
"raw_yaml",
|
|
166
172
|
"sha",
|
|
167
173
|
"source_details",
|
|
168
174
|
"updated_at"
|
|
@@ -390,13 +396,41 @@
|
|
|
390
396
|
"type": "object"
|
|
391
397
|
},
|
|
392
398
|
"CheckRunAction": {
|
|
393
|
-
"description": "
|
|
399
|
+
"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.",
|
|
394
400
|
"enum": [
|
|
395
|
-
"
|
|
401
|
+
"requested",
|
|
402
|
+
"queued",
|
|
403
|
+
"waiting",
|
|
404
|
+
"pending",
|
|
405
|
+
"started",
|
|
406
|
+
"passed",
|
|
407
|
+
"failed",
|
|
408
|
+
"timed_out",
|
|
409
|
+
"cancelled",
|
|
410
|
+
"skipped",
|
|
411
|
+
"neutral",
|
|
412
|
+
"action_required",
|
|
413
|
+
"stale"
|
|
396
414
|
],
|
|
397
415
|
"title": "CheckRunAction",
|
|
398
416
|
"type": "string"
|
|
399
417
|
},
|
|
418
|
+
"CheckSuiteAction": {
|
|
419
|
+
"description": "The conclusion of a finished check suite. `success` is `passed` and `failure` is `failed`. Every other value is the GitHub word.",
|
|
420
|
+
"enum": [
|
|
421
|
+
"passed",
|
|
422
|
+
"failed",
|
|
423
|
+
"timed_out",
|
|
424
|
+
"cancelled",
|
|
425
|
+
"skipped",
|
|
426
|
+
"neutral",
|
|
427
|
+
"action_required",
|
|
428
|
+
"stale",
|
|
429
|
+
"startup_failure"
|
|
430
|
+
],
|
|
431
|
+
"title": "CheckSuiteAction",
|
|
432
|
+
"type": "string"
|
|
433
|
+
},
|
|
400
434
|
"ClaudeConfig": {
|
|
401
435
|
"additionalProperties": false,
|
|
402
436
|
"description": "Native Claude Code options for an explicitly selected harness.",
|
|
@@ -641,6 +675,55 @@
|
|
|
641
675
|
"title": "ConfigMetadata",
|
|
642
676
|
"type": "object"
|
|
643
677
|
},
|
|
678
|
+
"Cost": {
|
|
679
|
+
"description": "What something cost, in millicents.",
|
|
680
|
+
"properties": {
|
|
681
|
+
"charged": {
|
|
682
|
+
"default": 0,
|
|
683
|
+
"description": "What Ellipsis charged to credit, in millicents. It is everything except subscription tokens, and it is what the budget caps.",
|
|
684
|
+
"title": "Charged",
|
|
685
|
+
"type": "integer"
|
|
686
|
+
},
|
|
687
|
+
"cpu": {
|
|
688
|
+
"default": 0,
|
|
689
|
+
"description": "CPU spend in millicents.",
|
|
690
|
+
"title": "Cpu",
|
|
691
|
+
"type": "integer"
|
|
692
|
+
},
|
|
693
|
+
"fee": {
|
|
694
|
+
"default": 0,
|
|
695
|
+
"description": "Platform fee in millicents.",
|
|
696
|
+
"title": "Fee",
|
|
697
|
+
"type": "integer"
|
|
698
|
+
},
|
|
699
|
+
"llm": {
|
|
700
|
+
"$ref": "#/$defs/LlmCost",
|
|
701
|
+
"description": "LLM token cost, in total and by model, split by who paid."
|
|
702
|
+
},
|
|
703
|
+
"memory": {
|
|
704
|
+
"default": 0,
|
|
705
|
+
"description": "Memory spend in millicents.",
|
|
706
|
+
"title": "Memory",
|
|
707
|
+
"type": "integer"
|
|
708
|
+
},
|
|
709
|
+
"total": {
|
|
710
|
+
"default": 0,
|
|
711
|
+
"description": "Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee.",
|
|
712
|
+
"title": "Total",
|
|
713
|
+
"type": "integer"
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
"required": [
|
|
717
|
+
"charged",
|
|
718
|
+
"cpu",
|
|
719
|
+
"fee",
|
|
720
|
+
"llm",
|
|
721
|
+
"memory",
|
|
722
|
+
"total"
|
|
723
|
+
],
|
|
724
|
+
"title": "Cost",
|
|
725
|
+
"type": "object"
|
|
726
|
+
},
|
|
644
727
|
"CronTrigger": {
|
|
645
728
|
"additionalProperties": false,
|
|
646
729
|
"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.",
|
|
@@ -1259,6 +1342,104 @@
|
|
|
1259
1342
|
"title": "GithubCheckRunEvent",
|
|
1260
1343
|
"type": "object"
|
|
1261
1344
|
},
|
|
1345
|
+
"GithubCheckSuiteEvent": {
|
|
1346
|
+
"properties": {
|
|
1347
|
+
"action": {
|
|
1348
|
+
"$ref": "#/$defs/CheckSuiteAction"
|
|
1349
|
+
},
|
|
1350
|
+
"actor": {
|
|
1351
|
+
"anyOf": [
|
|
1352
|
+
{
|
|
1353
|
+
"$ref": "#/$defs/SessionEventActor"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"type": "null"
|
|
1357
|
+
}
|
|
1358
|
+
],
|
|
1359
|
+
"default": null
|
|
1360
|
+
},
|
|
1361
|
+
"app": {
|
|
1362
|
+
"anyOf": [
|
|
1363
|
+
{
|
|
1364
|
+
"type": "string"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"type": "null"
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"default": null,
|
|
1371
|
+
"title": "App"
|
|
1372
|
+
},
|
|
1373
|
+
"branch": {
|
|
1374
|
+
"anyOf": [
|
|
1375
|
+
{
|
|
1376
|
+
"type": "string"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"type": "null"
|
|
1380
|
+
}
|
|
1381
|
+
],
|
|
1382
|
+
"default": null,
|
|
1383
|
+
"title": "Branch"
|
|
1384
|
+
},
|
|
1385
|
+
"conclusion": {
|
|
1386
|
+
"anyOf": [
|
|
1387
|
+
{
|
|
1388
|
+
"type": "string"
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
"type": "null"
|
|
1392
|
+
}
|
|
1393
|
+
],
|
|
1394
|
+
"default": null,
|
|
1395
|
+
"title": "Conclusion"
|
|
1396
|
+
},
|
|
1397
|
+
"head_sha": {
|
|
1398
|
+
"title": "Head Sha",
|
|
1399
|
+
"type": "string"
|
|
1400
|
+
},
|
|
1401
|
+
"pull_request_number": {
|
|
1402
|
+
"anyOf": [
|
|
1403
|
+
{
|
|
1404
|
+
"type": "integer"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"type": "null"
|
|
1408
|
+
}
|
|
1409
|
+
],
|
|
1410
|
+
"default": null,
|
|
1411
|
+
"title": "Pull Request Number"
|
|
1412
|
+
},
|
|
1413
|
+
"repository": {
|
|
1414
|
+
"title": "Repository",
|
|
1415
|
+
"type": "string"
|
|
1416
|
+
},
|
|
1417
|
+
"type": {
|
|
1418
|
+
"const": "github.check_suite",
|
|
1419
|
+
"default": "github.check_suite",
|
|
1420
|
+
"title": "Type",
|
|
1421
|
+
"type": "string"
|
|
1422
|
+
},
|
|
1423
|
+
"url": {
|
|
1424
|
+
"title": "Url",
|
|
1425
|
+
"type": "string"
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
"required": [
|
|
1429
|
+
"action",
|
|
1430
|
+
"actor",
|
|
1431
|
+
"app",
|
|
1432
|
+
"branch",
|
|
1433
|
+
"conclusion",
|
|
1434
|
+
"head_sha",
|
|
1435
|
+
"pull_request_number",
|
|
1436
|
+
"repository",
|
|
1437
|
+
"type",
|
|
1438
|
+
"url"
|
|
1439
|
+
],
|
|
1440
|
+
"title": "GithubCheckSuiteEvent",
|
|
1441
|
+
"type": "object"
|
|
1442
|
+
},
|
|
1262
1443
|
"GithubIssueEvent": {
|
|
1263
1444
|
"properties": {
|
|
1264
1445
|
"action": {
|
|
@@ -1312,7 +1493,7 @@
|
|
|
1312
1493
|
},
|
|
1313
1494
|
"GithubPermissions": {
|
|
1314
1495
|
"additionalProperties": false,
|
|
1315
|
-
"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
|
|
1496
|
+
"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.",
|
|
1316
1497
|
"properties": {
|
|
1317
1498
|
"permissions": {
|
|
1318
1499
|
"anyOf": [
|
|
@@ -1561,6 +1742,183 @@
|
|
|
1561
1742
|
"title": "GithubSourceDetails",
|
|
1562
1743
|
"type": "object"
|
|
1563
1744
|
},
|
|
1745
|
+
"GithubStatusEvent": {
|
|
1746
|
+
"properties": {
|
|
1747
|
+
"action": {
|
|
1748
|
+
"$ref": "#/$defs/StatusAction"
|
|
1749
|
+
},
|
|
1750
|
+
"actor": {
|
|
1751
|
+
"anyOf": [
|
|
1752
|
+
{
|
|
1753
|
+
"$ref": "#/$defs/SessionEventActor"
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"type": "null"
|
|
1757
|
+
}
|
|
1758
|
+
],
|
|
1759
|
+
"default": null
|
|
1760
|
+
},
|
|
1761
|
+
"branch": {
|
|
1762
|
+
"anyOf": [
|
|
1763
|
+
{
|
|
1764
|
+
"type": "string"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"type": "null"
|
|
1768
|
+
}
|
|
1769
|
+
],
|
|
1770
|
+
"default": null,
|
|
1771
|
+
"title": "Branch"
|
|
1772
|
+
},
|
|
1773
|
+
"context": {
|
|
1774
|
+
"title": "Context",
|
|
1775
|
+
"type": "string"
|
|
1776
|
+
},
|
|
1777
|
+
"head_sha": {
|
|
1778
|
+
"title": "Head Sha",
|
|
1779
|
+
"type": "string"
|
|
1780
|
+
},
|
|
1781
|
+
"pull_request_number": {
|
|
1782
|
+
"anyOf": [
|
|
1783
|
+
{
|
|
1784
|
+
"type": "integer"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"type": "null"
|
|
1788
|
+
}
|
|
1789
|
+
],
|
|
1790
|
+
"default": null,
|
|
1791
|
+
"title": "Pull Request Number"
|
|
1792
|
+
},
|
|
1793
|
+
"repository": {
|
|
1794
|
+
"title": "Repository",
|
|
1795
|
+
"type": "string"
|
|
1796
|
+
},
|
|
1797
|
+
"state": {
|
|
1798
|
+
"title": "State",
|
|
1799
|
+
"type": "string"
|
|
1800
|
+
},
|
|
1801
|
+
"type": {
|
|
1802
|
+
"const": "github.status",
|
|
1803
|
+
"default": "github.status",
|
|
1804
|
+
"title": "Type",
|
|
1805
|
+
"type": "string"
|
|
1806
|
+
},
|
|
1807
|
+
"url": {
|
|
1808
|
+
"title": "Url",
|
|
1809
|
+
"type": "string"
|
|
1810
|
+
}
|
|
1811
|
+
},
|
|
1812
|
+
"required": [
|
|
1813
|
+
"action",
|
|
1814
|
+
"actor",
|
|
1815
|
+
"branch",
|
|
1816
|
+
"context",
|
|
1817
|
+
"head_sha",
|
|
1818
|
+
"pull_request_number",
|
|
1819
|
+
"repository",
|
|
1820
|
+
"state",
|
|
1821
|
+
"type",
|
|
1822
|
+
"url"
|
|
1823
|
+
],
|
|
1824
|
+
"title": "GithubStatusEvent",
|
|
1825
|
+
"type": "object"
|
|
1826
|
+
},
|
|
1827
|
+
"GithubWorkflowRunEvent": {
|
|
1828
|
+
"properties": {
|
|
1829
|
+
"action": {
|
|
1830
|
+
"$ref": "#/$defs/WorkflowRunAction"
|
|
1831
|
+
},
|
|
1832
|
+
"actor": {
|
|
1833
|
+
"anyOf": [
|
|
1834
|
+
{
|
|
1835
|
+
"$ref": "#/$defs/SessionEventActor"
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"type": "null"
|
|
1839
|
+
}
|
|
1840
|
+
],
|
|
1841
|
+
"default": null
|
|
1842
|
+
},
|
|
1843
|
+
"branch": {
|
|
1844
|
+
"anyOf": [
|
|
1845
|
+
{
|
|
1846
|
+
"type": "string"
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
"type": "null"
|
|
1850
|
+
}
|
|
1851
|
+
],
|
|
1852
|
+
"default": null,
|
|
1853
|
+
"title": "Branch"
|
|
1854
|
+
},
|
|
1855
|
+
"conclusion": {
|
|
1856
|
+
"anyOf": [
|
|
1857
|
+
{
|
|
1858
|
+
"type": "string"
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
"type": "null"
|
|
1862
|
+
}
|
|
1863
|
+
],
|
|
1864
|
+
"default": null,
|
|
1865
|
+
"title": "Conclusion"
|
|
1866
|
+
},
|
|
1867
|
+
"head_sha": {
|
|
1868
|
+
"title": "Head Sha",
|
|
1869
|
+
"type": "string"
|
|
1870
|
+
},
|
|
1871
|
+
"name": {
|
|
1872
|
+
"title": "Name",
|
|
1873
|
+
"type": "string"
|
|
1874
|
+
},
|
|
1875
|
+
"pull_request_number": {
|
|
1876
|
+
"anyOf": [
|
|
1877
|
+
{
|
|
1878
|
+
"type": "integer"
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
"type": "null"
|
|
1882
|
+
}
|
|
1883
|
+
],
|
|
1884
|
+
"default": null,
|
|
1885
|
+
"title": "Pull Request Number"
|
|
1886
|
+
},
|
|
1887
|
+
"repository": {
|
|
1888
|
+
"title": "Repository",
|
|
1889
|
+
"type": "string"
|
|
1890
|
+
},
|
|
1891
|
+
"run_number": {
|
|
1892
|
+
"title": "Run Number",
|
|
1893
|
+
"type": "integer"
|
|
1894
|
+
},
|
|
1895
|
+
"type": {
|
|
1896
|
+
"const": "github.workflow_run",
|
|
1897
|
+
"default": "github.workflow_run",
|
|
1898
|
+
"title": "Type",
|
|
1899
|
+
"type": "string"
|
|
1900
|
+
},
|
|
1901
|
+
"url": {
|
|
1902
|
+
"title": "Url",
|
|
1903
|
+
"type": "string"
|
|
1904
|
+
}
|
|
1905
|
+
},
|
|
1906
|
+
"required": [
|
|
1907
|
+
"action",
|
|
1908
|
+
"actor",
|
|
1909
|
+
"branch",
|
|
1910
|
+
"conclusion",
|
|
1911
|
+
"head_sha",
|
|
1912
|
+
"name",
|
|
1913
|
+
"pull_request_number",
|
|
1914
|
+
"repository",
|
|
1915
|
+
"run_number",
|
|
1916
|
+
"type",
|
|
1917
|
+
"url"
|
|
1918
|
+
],
|
|
1919
|
+
"title": "GithubWorkflowRunEvent",
|
|
1920
|
+
"type": "object"
|
|
1921
|
+
},
|
|
1564
1922
|
"HandlerService": {
|
|
1565
1923
|
"description": "The service whose events a handler responds to.",
|
|
1566
1924
|
"enum": [
|
|
@@ -1706,6 +2064,66 @@
|
|
|
1706
2064
|
"title": "LinearIssueEvent",
|
|
1707
2065
|
"type": "object"
|
|
1708
2066
|
},
|
|
2067
|
+
"LlmCost": {
|
|
2068
|
+
"description": "What LLM tokens cost, in total and by model.",
|
|
2069
|
+
"properties": {
|
|
2070
|
+
"all": {
|
|
2071
|
+
"$ref": "#/$defs/LlmCostSplit",
|
|
2072
|
+
"description": "Token cost across every model."
|
|
2073
|
+
},
|
|
2074
|
+
"by_model": {
|
|
2075
|
+
"description": "Token cost for each model that used tokens.",
|
|
2076
|
+
"items": {
|
|
2077
|
+
"$ref": "#/$defs/ModelLlmCostSplit"
|
|
2078
|
+
},
|
|
2079
|
+
"title": "By Model",
|
|
2080
|
+
"type": "array"
|
|
2081
|
+
}
|
|
2082
|
+
},
|
|
2083
|
+
"required": [
|
|
2084
|
+
"all",
|
|
2085
|
+
"by_model"
|
|
2086
|
+
],
|
|
2087
|
+
"title": "LlmCost",
|
|
2088
|
+
"type": "object"
|
|
2089
|
+
},
|
|
2090
|
+
"LlmCostSplit": {
|
|
2091
|
+
"description": "What LLM tokens cost, in millicents, split by who paid (Ellipsis credit or the user's own subscription).",
|
|
2092
|
+
"properties": {
|
|
2093
|
+
"claude_subscription": {
|
|
2094
|
+
"default": 0,
|
|
2095
|
+
"description": "Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.",
|
|
2096
|
+
"title": "Claude Subscription",
|
|
2097
|
+
"type": "integer"
|
|
2098
|
+
},
|
|
2099
|
+
"codex_subscription": {
|
|
2100
|
+
"default": 0,
|
|
2101
|
+
"description": "Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.",
|
|
2102
|
+
"title": "Codex Subscription",
|
|
2103
|
+
"type": "integer"
|
|
2104
|
+
},
|
|
2105
|
+
"platform": {
|
|
2106
|
+
"default": 0,
|
|
2107
|
+
"description": "Token cost charged to Ellipsis credit, in millicents.",
|
|
2108
|
+
"title": "Platform",
|
|
2109
|
+
"type": "integer"
|
|
2110
|
+
},
|
|
2111
|
+
"total": {
|
|
2112
|
+
"default": 0,
|
|
2113
|
+
"description": "All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.",
|
|
2114
|
+
"title": "Total",
|
|
2115
|
+
"type": "integer"
|
|
2116
|
+
}
|
|
2117
|
+
},
|
|
2118
|
+
"required": [
|
|
2119
|
+
"claude_subscription",
|
|
2120
|
+
"codex_subscription",
|
|
2121
|
+
"platform",
|
|
2122
|
+
"total"
|
|
2123
|
+
],
|
|
2124
|
+
"title": "LlmCostSplit",
|
|
2125
|
+
"type": "object"
|
|
2126
|
+
},
|
|
1709
2127
|
"McpRemoteServer": {
|
|
1710
2128
|
"additionalProperties": false,
|
|
1711
2129
|
"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.",
|
|
@@ -1826,6 +2244,99 @@
|
|
|
1826
2244
|
"title": "MemorySize",
|
|
1827
2245
|
"type": "object"
|
|
1828
2246
|
},
|
|
2247
|
+
"ModelLlmCostSplit": {
|
|
2248
|
+
"description": "What one model's tokens cost, in millicents, split by who paid.",
|
|
2249
|
+
"properties": {
|
|
2250
|
+
"claude_subscription": {
|
|
2251
|
+
"default": 0,
|
|
2252
|
+
"description": "Token cost paid by a Claude subscription, at Ellipsis rates, in millicents.",
|
|
2253
|
+
"title": "Claude Subscription",
|
|
2254
|
+
"type": "integer"
|
|
2255
|
+
},
|
|
2256
|
+
"codex_subscription": {
|
|
2257
|
+
"default": 0,
|
|
2258
|
+
"description": "Token cost paid by a Codex subscription, at Ellipsis rates, in millicents.",
|
|
2259
|
+
"title": "Codex Subscription",
|
|
2260
|
+
"type": "integer"
|
|
2261
|
+
},
|
|
2262
|
+
"model": {
|
|
2263
|
+
"description": "The model that used these tokens.",
|
|
2264
|
+
"title": "Model",
|
|
2265
|
+
"type": "string"
|
|
2266
|
+
},
|
|
2267
|
+
"platform": {
|
|
2268
|
+
"default": 0,
|
|
2269
|
+
"description": "Token cost charged to Ellipsis credit, in millicents.",
|
|
2270
|
+
"title": "Platform",
|
|
2271
|
+
"type": "integer"
|
|
2272
|
+
},
|
|
2273
|
+
"total": {
|
|
2274
|
+
"default": 0,
|
|
2275
|
+
"description": "All token cost, in millicents. It is the sum of platform, claude_subscription, and codex_subscription.",
|
|
2276
|
+
"title": "Total",
|
|
2277
|
+
"type": "integer"
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
"required": [
|
|
2281
|
+
"claude_subscription",
|
|
2282
|
+
"codex_subscription",
|
|
2283
|
+
"model",
|
|
2284
|
+
"platform",
|
|
2285
|
+
"total"
|
|
2286
|
+
],
|
|
2287
|
+
"title": "ModelLlmCostSplit",
|
|
2288
|
+
"type": "object"
|
|
2289
|
+
},
|
|
2290
|
+
"ModelTokenCounts": {
|
|
2291
|
+
"description": "Token counts for one model.",
|
|
2292
|
+
"properties": {
|
|
2293
|
+
"cache_creation": {
|
|
2294
|
+
"default": 0,
|
|
2295
|
+
"description": "Tokens written to the prompt cache.",
|
|
2296
|
+
"title": "Cache Creation",
|
|
2297
|
+
"type": "integer"
|
|
2298
|
+
},
|
|
2299
|
+
"cache_read": {
|
|
2300
|
+
"default": 0,
|
|
2301
|
+
"description": "Tokens read from the prompt cache.",
|
|
2302
|
+
"title": "Cache Read",
|
|
2303
|
+
"type": "integer"
|
|
2304
|
+
},
|
|
2305
|
+
"input": {
|
|
2306
|
+
"default": 0,
|
|
2307
|
+
"description": "Input tokens used.",
|
|
2308
|
+
"title": "Input",
|
|
2309
|
+
"type": "integer"
|
|
2310
|
+
},
|
|
2311
|
+
"model": {
|
|
2312
|
+
"description": "The model that used these tokens.",
|
|
2313
|
+
"title": "Model",
|
|
2314
|
+
"type": "string"
|
|
2315
|
+
},
|
|
2316
|
+
"output": {
|
|
2317
|
+
"default": 0,
|
|
2318
|
+
"description": "Output tokens used.",
|
|
2319
|
+
"title": "Output",
|
|
2320
|
+
"type": "integer"
|
|
2321
|
+
},
|
|
2322
|
+
"total": {
|
|
2323
|
+
"default": 0,
|
|
2324
|
+
"description": "All tokens used, including prompt cache reads and writes. Token cost is priced on this.",
|
|
2325
|
+
"title": "Total",
|
|
2326
|
+
"type": "integer"
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
"required": [
|
|
2330
|
+
"cache_creation",
|
|
2331
|
+
"cache_read",
|
|
2332
|
+
"input",
|
|
2333
|
+
"model",
|
|
2334
|
+
"output",
|
|
2335
|
+
"total"
|
|
2336
|
+
],
|
|
2337
|
+
"title": "ModelTokenCounts",
|
|
2338
|
+
"type": "object"
|
|
2339
|
+
},
|
|
1829
2340
|
"OutputConfig": {
|
|
1830
2341
|
"additionalProperties": false,
|
|
1831
2342
|
"description": "JSON Schema for the harness's structured result, when certified.",
|
|
@@ -1902,7 +2413,7 @@
|
|
|
1902
2413
|
},
|
|
1903
2414
|
"ReactCheckRun": {
|
|
1904
2415
|
"additionalProperties": false,
|
|
1905
|
-
"description": "A
|
|
2416
|
+
"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.",
|
|
1906
2417
|
"properties": {
|
|
1907
2418
|
"branch": {
|
|
1908
2419
|
"default": [],
|
|
@@ -1947,6 +2458,53 @@
|
|
|
1947
2458
|
"title": "ReactCheckRun",
|
|
1948
2459
|
"type": "object"
|
|
1949
2460
|
},
|
|
2461
|
+
"ReactCheckSuite": {
|
|
2462
|
+
"additionalProperties": false,
|
|
2463
|
+
"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.",
|
|
2464
|
+
"properties": {
|
|
2465
|
+
"apps": {
|
|
2466
|
+
"default": [],
|
|
2467
|
+
"items": {
|
|
2468
|
+
"type": "string"
|
|
2469
|
+
},
|
|
2470
|
+
"title": "Apps",
|
|
2471
|
+
"type": "array"
|
|
2472
|
+
},
|
|
2473
|
+
"branch": {
|
|
2474
|
+
"default": [],
|
|
2475
|
+
"items": {
|
|
2476
|
+
"type": "string"
|
|
2477
|
+
},
|
|
2478
|
+
"title": "Branch",
|
|
2479
|
+
"type": "array"
|
|
2480
|
+
},
|
|
2481
|
+
"for": {
|
|
2482
|
+
"$ref": "#/$defs/GithubAccountSelector"
|
|
2483
|
+
},
|
|
2484
|
+
"on": {
|
|
2485
|
+
"default": [
|
|
2486
|
+
"failed"
|
|
2487
|
+
],
|
|
2488
|
+
"items": {
|
|
2489
|
+
"$ref": "#/$defs/CheckSuiteAction"
|
|
2490
|
+
},
|
|
2491
|
+
"title": "On",
|
|
2492
|
+
"type": "array"
|
|
2493
|
+
},
|
|
2494
|
+
"repositories": {
|
|
2495
|
+
"$ref": "#/$defs/RepositoryFilter"
|
|
2496
|
+
}
|
|
2497
|
+
},
|
|
2498
|
+
"required": [
|
|
2499
|
+
"apps",
|
|
2500
|
+
"branch",
|
|
2501
|
+
"for",
|
|
2502
|
+
"on",
|
|
2503
|
+
"repositories"
|
|
2504
|
+
],
|
|
2505
|
+
"title": "ReactCheckSuite",
|
|
2506
|
+
"type": "object"
|
|
2507
|
+
},
|
|
1950
2508
|
"ReactIssue": {
|
|
1951
2509
|
"additionalProperties": false,
|
|
1952
2510
|
"properties": {
|
|
@@ -2172,29 +2730,76 @@
|
|
|
2172
2730
|
"items": {
|
|
2173
2731
|
"$ref": "#/$defs/SentryAction"
|
|
2174
2732
|
},
|
|
2175
|
-
"title": "On",
|
|
2733
|
+
"title": "On",
|
|
2734
|
+
"type": "array"
|
|
2735
|
+
},
|
|
2736
|
+
"projects": {
|
|
2737
|
+
"default": [],
|
|
2738
|
+
"items": {
|
|
2739
|
+
"type": "string"
|
|
2740
|
+
},
|
|
2741
|
+
"title": "Projects",
|
|
2742
|
+
"type": "array"
|
|
2743
|
+
}
|
|
2744
|
+
},
|
|
2745
|
+
"required": [
|
|
2746
|
+
"on",
|
|
2747
|
+
"projects"
|
|
2748
|
+
],
|
|
2749
|
+
"title": "ReactSentry",
|
|
2750
|
+
"type": "object"
|
|
2751
|
+
},
|
|
2752
|
+
"ReactSlackChannel": {
|
|
2753
|
+
"additionalProperties": false,
|
|
2754
|
+
"properties": {},
|
|
2755
|
+
"title": "ReactSlackChannel",
|
|
2756
|
+
"type": "object"
|
|
2757
|
+
},
|
|
2758
|
+
"ReactStatus": {
|
|
2759
|
+
"additionalProperties": false,
|
|
2760
|
+
"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.",
|
|
2761
|
+
"properties": {
|
|
2762
|
+
"branch": {
|
|
2763
|
+
"default": [],
|
|
2764
|
+
"items": {
|
|
2765
|
+
"type": "string"
|
|
2766
|
+
},
|
|
2767
|
+
"title": "Branch",
|
|
2768
|
+
"type": "array"
|
|
2769
|
+
},
|
|
2770
|
+
"for": {
|
|
2771
|
+
"$ref": "#/$defs/GithubAccountSelector"
|
|
2772
|
+
},
|
|
2773
|
+
"names": {
|
|
2774
|
+
"default": [],
|
|
2775
|
+
"items": {
|
|
2776
|
+
"type": "string"
|
|
2777
|
+
},
|
|
2778
|
+
"title": "Names",
|
|
2176
2779
|
"type": "array"
|
|
2177
2780
|
},
|
|
2178
|
-
"
|
|
2179
|
-
"default": [
|
|
2781
|
+
"on": {
|
|
2782
|
+
"default": [
|
|
2783
|
+
"failed"
|
|
2784
|
+
],
|
|
2180
2785
|
"items": {
|
|
2181
|
-
"
|
|
2786
|
+
"$ref": "#/$defs/StatusAction"
|
|
2182
2787
|
},
|
|
2183
|
-
"title": "
|
|
2788
|
+
"title": "On",
|
|
2184
2789
|
"type": "array"
|
|
2790
|
+
},
|
|
2791
|
+
"repositories": {
|
|
2792
|
+
"$ref": "#/$defs/RepositoryFilter"
|
|
2185
2793
|
}
|
|
2186
2794
|
},
|
|
2187
2795
|
"required": [
|
|
2796
|
+
"branch",
|
|
2797
|
+
"for",
|
|
2798
|
+
"names",
|
|
2188
2799
|
"on",
|
|
2189
|
-
"
|
|
2800
|
+
"repositories"
|
|
2190
2801
|
],
|
|
2191
|
-
"title": "
|
|
2192
|
-
"type": "object"
|
|
2193
|
-
},
|
|
2194
|
-
"ReactSlackChannel": {
|
|
2195
|
-
"additionalProperties": false,
|
|
2196
|
-
"properties": {},
|
|
2197
|
-
"title": "ReactSlackChannel",
|
|
2802
|
+
"title": "ReactStatus",
|
|
2198
2803
|
"type": "object"
|
|
2199
2804
|
},
|
|
2200
2805
|
"ReactTrigger": {
|
|
@@ -2212,6 +2817,17 @@
|
|
|
2212
2817
|
],
|
|
2213
2818
|
"default": null
|
|
2214
2819
|
},
|
|
2820
|
+
"check_suite": {
|
|
2821
|
+
"anyOf": [
|
|
2822
|
+
{
|
|
2823
|
+
"$ref": "#/$defs/ReactCheckSuite"
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
"type": "null"
|
|
2827
|
+
}
|
|
2828
|
+
],
|
|
2829
|
+
"default": null
|
|
2830
|
+
},
|
|
2215
2831
|
"enabled": {
|
|
2216
2832
|
"default": true,
|
|
2217
2833
|
"title": "Enabled",
|
|
@@ -2294,15 +2910,38 @@
|
|
|
2294
2910
|
],
|
|
2295
2911
|
"default": null
|
|
2296
2912
|
},
|
|
2913
|
+
"status": {
|
|
2914
|
+
"anyOf": [
|
|
2915
|
+
{
|
|
2916
|
+
"$ref": "#/$defs/ReactStatus"
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
"type": "null"
|
|
2920
|
+
}
|
|
2921
|
+
],
|
|
2922
|
+
"default": null
|
|
2923
|
+
},
|
|
2297
2924
|
"type": {
|
|
2298
2925
|
"const": "react",
|
|
2299
2926
|
"default": "react",
|
|
2300
2927
|
"title": "Type",
|
|
2301
2928
|
"type": "string"
|
|
2929
|
+
},
|
|
2930
|
+
"workflow_run": {
|
|
2931
|
+
"anyOf": [
|
|
2932
|
+
{
|
|
2933
|
+
"$ref": "#/$defs/ReactWorkflowRun"
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
"type": "null"
|
|
2937
|
+
}
|
|
2938
|
+
],
|
|
2939
|
+
"default": null
|
|
2302
2940
|
}
|
|
2303
2941
|
},
|
|
2304
2942
|
"required": [
|
|
2305
2943
|
"check_run",
|
|
2944
|
+
"check_suite",
|
|
2306
2945
|
"enabled",
|
|
2307
2946
|
"issue",
|
|
2308
2947
|
"linear_issue",
|
|
@@ -2311,11 +2950,60 @@
|
|
|
2311
2950
|
"release",
|
|
2312
2951
|
"sentry",
|
|
2313
2952
|
"slack_channel",
|
|
2314
|
-
"
|
|
2953
|
+
"status",
|
|
2954
|
+
"type",
|
|
2955
|
+
"workflow_run"
|
|
2315
2956
|
],
|
|
2316
2957
|
"title": "ReactTrigger",
|
|
2317
2958
|
"type": "object"
|
|
2318
2959
|
},
|
|
2960
|
+
"ReactWorkflowRun": {
|
|
2961
|
+
"additionalProperties": false,
|
|
2962
|
+
"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.",
|
|
2963
|
+
"properties": {
|
|
2964
|
+
"branch": {
|
|
2965
|
+
"default": [],
|
|
2966
|
+
"items": {
|
|
2967
|
+
"type": "string"
|
|
2968
|
+
},
|
|
2969
|
+
"title": "Branch",
|
|
2970
|
+
"type": "array"
|
|
2971
|
+
},
|
|
2972
|
+
"for": {
|
|
2973
|
+
"$ref": "#/$defs/GithubAccountSelector"
|
|
2974
|
+
},
|
|
2975
|
+
"names": {
|
|
2976
|
+
"default": [],
|
|
2977
|
+
"items": {
|
|
2978
|
+
"type": "string"
|
|
2979
|
+
},
|
|
2980
|
+
"title": "Names",
|
|
2981
|
+
"type": "array"
|
|
2982
|
+
},
|
|
2983
|
+
"on": {
|
|
2984
|
+
"default": [
|
|
2985
|
+
"failed"
|
|
2986
|
+
],
|
|
2987
|
+
"items": {
|
|
2988
|
+
"$ref": "#/$defs/WorkflowRunAction"
|
|
2989
|
+
},
|
|
2990
|
+
"title": "On",
|
|
2991
|
+
"type": "array"
|
|
2992
|
+
},
|
|
2993
|
+
"repositories": {
|
|
2994
|
+
"$ref": "#/$defs/RepositoryFilter"
|
|
2995
|
+
}
|
|
2996
|
+
},
|
|
2997
|
+
"required": [
|
|
2998
|
+
"branch",
|
|
2999
|
+
"for",
|
|
3000
|
+
"names",
|
|
3001
|
+
"on",
|
|
3002
|
+
"repositories"
|
|
3003
|
+
],
|
|
3004
|
+
"title": "ReactWorkflowRun",
|
|
3005
|
+
"type": "object"
|
|
3006
|
+
},
|
|
2319
3007
|
"ReleaseAction": {
|
|
2320
3008
|
"description": "What happened to a GitHub release. `published` is the one moment a\nrelease becomes visible: a release or prerelease published directly, or a\ndraft published later. Edits, deletions, and unpublishes never fire.",
|
|
2321
3009
|
"enum": [
|
|
@@ -2767,9 +3455,9 @@
|
|
|
2767
3455
|
},
|
|
2768
3456
|
"budget": {
|
|
2769
3457
|
"default": 0,
|
|
2770
|
-
"description": "The spend budget enforced for this session, in
|
|
3458
|
+
"description": "The spend budget enforced for this session, in millicents, after resolving defaults and ceilings.",
|
|
2771
3459
|
"title": "Budget",
|
|
2772
|
-
"type": "
|
|
3460
|
+
"type": "integer"
|
|
2773
3461
|
},
|
|
2774
3462
|
"claude_code": {
|
|
2775
3463
|
"anyOf": [
|
|
@@ -2800,8 +3488,8 @@
|
|
|
2800
3488
|
"description": "Whether the session can take more messages, and whether an agent is warm to answer one."
|
|
2801
3489
|
},
|
|
2802
3490
|
"cost": {
|
|
2803
|
-
"$ref": "#/$defs/
|
|
2804
|
-
"description": "What the session has cost so far
|
|
3491
|
+
"$ref": "#/$defs/Cost",
|
|
3492
|
+
"description": "What the session has cost so far."
|
|
2805
3493
|
},
|
|
2806
3494
|
"created_at": {
|
|
2807
3495
|
"description": "When the session was created.",
|
|
@@ -2819,10 +3507,13 @@
|
|
|
2819
3507
|
"discriminator": {
|
|
2820
3508
|
"mapping": {
|
|
2821
3509
|
"github.check_run": "#/$defs/GithubCheckRunEvent",
|
|
3510
|
+
"github.check_suite": "#/$defs/GithubCheckSuiteEvent",
|
|
2822
3511
|
"github.issue": "#/$defs/GithubIssueEvent",
|
|
2823
3512
|
"github.pull_request": "#/$defs/GithubPullRequestEvent",
|
|
2824
3513
|
"github.push": "#/$defs/GithubPushEvent",
|
|
2825
3514
|
"github.release": "#/$defs/GithubReleaseEvent",
|
|
3515
|
+
"github.status": "#/$defs/GithubStatusEvent",
|
|
3516
|
+
"github.workflow_run": "#/$defs/GithubWorkflowRunEvent",
|
|
2826
3517
|
"linear.issue": "#/$defs/LinearIssueEvent",
|
|
2827
3518
|
"sentry.alert": "#/$defs/SentryAlertEvent",
|
|
2828
3519
|
"slack.channel_created": "#/$defs/SlackChannelCreatedEvent",
|
|
@@ -2843,6 +3534,15 @@
|
|
|
2843
3534
|
{
|
|
2844
3535
|
"$ref": "#/$defs/GithubCheckRunEvent"
|
|
2845
3536
|
},
|
|
3537
|
+
{
|
|
3538
|
+
"$ref": "#/$defs/GithubCheckSuiteEvent"
|
|
3539
|
+
},
|
|
3540
|
+
{
|
|
3541
|
+
"$ref": "#/$defs/GithubWorkflowRunEvent"
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
"$ref": "#/$defs/GithubStatusEvent"
|
|
3545
|
+
},
|
|
2846
3546
|
{
|
|
2847
3547
|
"$ref": "#/$defs/GithubReleaseEvent"
|
|
2848
3548
|
},
|
|
@@ -2959,8 +3659,8 @@
|
|
|
2959
3659
|
"description": "The latest live summary of the session's progress while it runs, and when it was generated."
|
|
2960
3660
|
},
|
|
2961
3661
|
"tokens": {
|
|
2962
|
-
"$ref": "#/$defs/
|
|
2963
|
-
"description": "The tokens the session
|
|
3662
|
+
"$ref": "#/$defs/Tokens",
|
|
3663
|
+
"description": "The tokens the session has used so far."
|
|
2964
3664
|
},
|
|
2965
3665
|
"turn": {
|
|
2966
3666
|
"anyOf": [
|
|
@@ -3324,50 +4024,6 @@
|
|
|
3324
4024
|
"title": "SessionConversationConfig",
|
|
3325
4025
|
"type": "object"
|
|
3326
4026
|
},
|
|
3327
|
-
"SessionCost": {
|
|
3328
|
-
"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\".",
|
|
3329
|
-
"properties": {
|
|
3330
|
-
"cpu": {
|
|
3331
|
-
"default": 0,
|
|
3332
|
-
"description": "CPU spend in millicents.",
|
|
3333
|
-
"title": "Cpu",
|
|
3334
|
-
"type": "integer"
|
|
3335
|
-
},
|
|
3336
|
-
"fee": {
|
|
3337
|
-
"default": 0,
|
|
3338
|
-
"description": "Platform fee in millicents.",
|
|
3339
|
-
"title": "Fee",
|
|
3340
|
-
"type": "integer"
|
|
3341
|
-
},
|
|
3342
|
-
"llm": {
|
|
3343
|
-
"default": 0,
|
|
3344
|
-
"description": "LLM spend in millicents.",
|
|
3345
|
-
"title": "Llm",
|
|
3346
|
-
"type": "integer"
|
|
3347
|
-
},
|
|
3348
|
-
"memory": {
|
|
3349
|
-
"default": 0,
|
|
3350
|
-
"description": "Memory spend in millicents.",
|
|
3351
|
-
"title": "Memory",
|
|
3352
|
-
"type": "integer"
|
|
3353
|
-
},
|
|
3354
|
-
"total": {
|
|
3355
|
-
"default": 0,
|
|
3356
|
-
"description": "The grand total in millicents: llm + cpu + memory + fee.",
|
|
3357
|
-
"title": "Total",
|
|
3358
|
-
"type": "integer"
|
|
3359
|
-
}
|
|
3360
|
-
},
|
|
3361
|
-
"required": [
|
|
3362
|
-
"cpu",
|
|
3363
|
-
"fee",
|
|
3364
|
-
"llm",
|
|
3365
|
-
"memory",
|
|
3366
|
-
"total"
|
|
3367
|
-
],
|
|
3368
|
-
"title": "SessionCost",
|
|
3369
|
-
"type": "object"
|
|
3370
|
-
},
|
|
3371
4027
|
"SessionEnvironment": {
|
|
3372
4028
|
"additionalProperties": false,
|
|
3373
4029
|
"description": "The environment configuration frozen at session creation, enriched with\nthe saved environment's identity and how it was chosen.",
|
|
@@ -3955,62 +4611,11 @@
|
|
|
3955
4611
|
"title": "SessionSummary",
|
|
3956
4612
|
"type": "object"
|
|
3957
4613
|
},
|
|
3958
|
-
"SessionTokens": {
|
|
3959
|
-
"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.",
|
|
3960
|
-
"properties": {
|
|
3961
|
-
"cache_creation": {
|
|
3962
|
-
"default": 0,
|
|
3963
|
-
"description": "Tokens written to the prompt cache.",
|
|
3964
|
-
"title": "Cache Creation",
|
|
3965
|
-
"type": "integer"
|
|
3966
|
-
},
|
|
3967
|
-
"cache_read": {
|
|
3968
|
-
"default": 0,
|
|
3969
|
-
"description": "Tokens read from the prompt cache.",
|
|
3970
|
-
"title": "Cache Read",
|
|
3971
|
-
"type": "integer"
|
|
3972
|
-
},
|
|
3973
|
-
"input": {
|
|
3974
|
-
"default": 0,
|
|
3975
|
-
"description": "Input tokens used.",
|
|
3976
|
-
"title": "Input",
|
|
3977
|
-
"type": "integer"
|
|
3978
|
-
},
|
|
3979
|
-
"model": {
|
|
3980
|
-
"default": "",
|
|
3981
|
-
"description": "The model the token counts are attributed to.",
|
|
3982
|
-
"title": "Model",
|
|
3983
|
-
"type": "string"
|
|
3984
|
-
},
|
|
3985
|
-
"output": {
|
|
3986
|
-
"default": 0,
|
|
3987
|
-
"description": "Output tokens used.",
|
|
3988
|
-
"title": "Output",
|
|
3989
|
-
"type": "integer"
|
|
3990
|
-
},
|
|
3991
|
-
"total": {
|
|
3992
|
-
"default": 0,
|
|
3993
|
-
"description": "Total tokens consumed, INCLUDING the prompt-cache reads and writes \u2014 the same basis the token cost is priced on.",
|
|
3994
|
-
"title": "Total",
|
|
3995
|
-
"type": "integer"
|
|
3996
|
-
}
|
|
3997
|
-
},
|
|
3998
|
-
"required": [
|
|
3999
|
-
"cache_creation",
|
|
4000
|
-
"cache_read",
|
|
4001
|
-
"input",
|
|
4002
|
-
"model",
|
|
4003
|
-
"output",
|
|
4004
|
-
"total"
|
|
4005
|
-
],
|
|
4006
|
-
"title": "SessionTokens",
|
|
4007
|
-
"type": "object"
|
|
4008
|
-
},
|
|
4009
4614
|
"SessionTurn": {
|
|
4010
|
-
"description": "One message and the agent's answer to it. A turn is `
|
|
4615
|
+
"description": "One message and the agent's answer to it. A turn is `queued` from the\nmoment its message is received, `preparing` while its environment is set\nup, `running` while the agent works, then `completed`, `failed`,\n`stopped`, or `cancelled`.",
|
|
4011
4616
|
"properties": {
|
|
4012
4617
|
"cost": {
|
|
4013
|
-
"$ref": "#/$defs/
|
|
4618
|
+
"$ref": "#/$defs/Cost",
|
|
4014
4619
|
"description": "What the turn cost so far, in millicents, broken down by leg."
|
|
4015
4620
|
},
|
|
4016
4621
|
"created_at": {
|
|
@@ -4029,7 +4634,7 @@
|
|
|
4029
4634
|
}
|
|
4030
4635
|
],
|
|
4031
4636
|
"default": null,
|
|
4032
|
-
"description": "A human-readable explanation of a failed, stopped, or cancelled turn.",
|
|
4637
|
+
"description": "A human-readable explanation of a failed, stopped, or cancelled turn, or of why a queued turn waits.",
|
|
4033
4638
|
"title": "Detail"
|
|
4034
4639
|
},
|
|
4035
4640
|
"ended_at": {
|
|
@@ -4099,7 +4704,7 @@
|
|
|
4099
4704
|
"description": "When and by whom a stop was requested; null when none was."
|
|
4100
4705
|
},
|
|
4101
4706
|
"tokens": {
|
|
4102
|
-
"$ref": "#/$defs/
|
|
4707
|
+
"$ref": "#/$defs/Tokens",
|
|
4103
4708
|
"description": "The tokens the turn spent and the model they went to."
|
|
4104
4709
|
}
|
|
4105
4710
|
},
|
|
@@ -4300,6 +4905,84 @@
|
|
|
4300
4905
|
"title": "SlackMessageEvent",
|
|
4301
4906
|
"type": "object"
|
|
4302
4907
|
},
|
|
4908
|
+
"StatusAction": {
|
|
4909
|
+
"description": "The state of a commit status. `success` is `passed`, `failure` is `failed`, and `error` is `errored`.",
|
|
4910
|
+
"enum": [
|
|
4911
|
+
"pending",
|
|
4912
|
+
"passed",
|
|
4913
|
+
"failed",
|
|
4914
|
+
"errored"
|
|
4915
|
+
],
|
|
4916
|
+
"title": "StatusAction",
|
|
4917
|
+
"type": "string"
|
|
4918
|
+
},
|
|
4919
|
+
"TokenCounts": {
|
|
4920
|
+
"description": "Token counts.",
|
|
4921
|
+
"properties": {
|
|
4922
|
+
"cache_creation": {
|
|
4923
|
+
"default": 0,
|
|
4924
|
+
"description": "Tokens written to the prompt cache.",
|
|
4925
|
+
"title": "Cache Creation",
|
|
4926
|
+
"type": "integer"
|
|
4927
|
+
},
|
|
4928
|
+
"cache_read": {
|
|
4929
|
+
"default": 0,
|
|
4930
|
+
"description": "Tokens read from the prompt cache.",
|
|
4931
|
+
"title": "Cache Read",
|
|
4932
|
+
"type": "integer"
|
|
4933
|
+
},
|
|
4934
|
+
"input": {
|
|
4935
|
+
"default": 0,
|
|
4936
|
+
"description": "Input tokens used.",
|
|
4937
|
+
"title": "Input",
|
|
4938
|
+
"type": "integer"
|
|
4939
|
+
},
|
|
4940
|
+
"output": {
|
|
4941
|
+
"default": 0,
|
|
4942
|
+
"description": "Output tokens used.",
|
|
4943
|
+
"title": "Output",
|
|
4944
|
+
"type": "integer"
|
|
4945
|
+
},
|
|
4946
|
+
"total": {
|
|
4947
|
+
"default": 0,
|
|
4948
|
+
"description": "All tokens used, including prompt cache reads and writes. Token cost is priced on this.",
|
|
4949
|
+
"title": "Total",
|
|
4950
|
+
"type": "integer"
|
|
4951
|
+
}
|
|
4952
|
+
},
|
|
4953
|
+
"required": [
|
|
4954
|
+
"cache_creation",
|
|
4955
|
+
"cache_read",
|
|
4956
|
+
"input",
|
|
4957
|
+
"output",
|
|
4958
|
+
"total"
|
|
4959
|
+
],
|
|
4960
|
+
"title": "TokenCounts",
|
|
4961
|
+
"type": "object"
|
|
4962
|
+
},
|
|
4963
|
+
"Tokens": {
|
|
4964
|
+
"description": "Tokens used, in total and by model.",
|
|
4965
|
+
"properties": {
|
|
4966
|
+
"all": {
|
|
4967
|
+
"$ref": "#/$defs/TokenCounts",
|
|
4968
|
+
"description": "Token counts across every model."
|
|
4969
|
+
},
|
|
4970
|
+
"by_model": {
|
|
4971
|
+
"description": "Token counts for each model that used tokens.",
|
|
4972
|
+
"items": {
|
|
4973
|
+
"$ref": "#/$defs/ModelTokenCounts"
|
|
4974
|
+
},
|
|
4975
|
+
"title": "By Model",
|
|
4976
|
+
"type": "array"
|
|
4977
|
+
}
|
|
4978
|
+
},
|
|
4979
|
+
"required": [
|
|
4980
|
+
"all",
|
|
4981
|
+
"by_model"
|
|
4982
|
+
],
|
|
4983
|
+
"title": "Tokens",
|
|
4984
|
+
"type": "object"
|
|
4985
|
+
},
|
|
4303
4986
|
"TurnReason": {
|
|
4304
4987
|
"description": "Why a turn failed or was cancelled. Null on every other outcome.",
|
|
4305
4988
|
"enum": [
|
|
@@ -4324,9 +5007,10 @@
|
|
|
4324
5007
|
"type": "string"
|
|
4325
5008
|
},
|
|
4326
5009
|
"TurnStatus": {
|
|
4327
|
-
"description": "Where one turn is:
|
|
5010
|
+
"description": "Where one turn is: waiting, preparing, being answered, or over.\n\n`queued` turns wait to start, behind another turn or for a free session\nslot on the account. `preparing` turns wait while the environment is set\nup. `stopped` and `cancelled` are their own outcomes; `reason` explains a\n`failed` or `cancelled` turn.",
|
|
4328
5011
|
"enum": [
|
|
4329
|
-
"
|
|
5012
|
+
"queued",
|
|
5013
|
+
"preparing",
|
|
4330
5014
|
"running",
|
|
4331
5015
|
"completed",
|
|
4332
5016
|
"failed",
|
|
@@ -4549,6 +5233,27 @@
|
|
|
4549
5233
|
],
|
|
4550
5234
|
"title": "VMExecutionResponse",
|
|
4551
5235
|
"type": "object"
|
|
5236
|
+
},
|
|
5237
|
+
"WorkflowRunAction": {
|
|
5238
|
+
"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.",
|
|
5239
|
+
"enum": [
|
|
5240
|
+
"requested",
|
|
5241
|
+
"queued",
|
|
5242
|
+
"waiting",
|
|
5243
|
+
"pending",
|
|
5244
|
+
"started",
|
|
5245
|
+
"passed",
|
|
5246
|
+
"failed",
|
|
5247
|
+
"timed_out",
|
|
5248
|
+
"cancelled",
|
|
5249
|
+
"skipped",
|
|
5250
|
+
"neutral",
|
|
5251
|
+
"action_required",
|
|
5252
|
+
"stale",
|
|
5253
|
+
"startup_failure"
|
|
5254
|
+
],
|
|
5255
|
+
"title": "WorkflowRunAction",
|
|
5256
|
+
"type": "string"
|
|
4552
5257
|
}
|
|
4553
5258
|
},
|
|
4554
5259
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|