@ellipsis-dev/sdk 0.9.0 → 0.10.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/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-CStmnKVu.d.ts → types-BME-7Lbt.d.ts} +340 -262
- package/package.json +1 -1
- package/schema/frames.schema.json +291 -196
- package/schema/openapi.v1.json +342 -175
package/schema/openapi.v1.json
CHANGED
|
@@ -480,6 +480,37 @@
|
|
|
480
480
|
"title": "AgentConfigEllipsis",
|
|
481
481
|
"type": "object"
|
|
482
482
|
},
|
|
483
|
+
"AgentConfigEllipsisPermissions": {
|
|
484
|
+
"additionalProperties": {
|
|
485
|
+
"anyOf": [
|
|
486
|
+
{
|
|
487
|
+
"$ref": "#/components/schemas/Level"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"$ref": "#/components/schemas/EllipsisGrant"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"items": {
|
|
494
|
+
"anyOf": [
|
|
495
|
+
{
|
|
496
|
+
"$ref": "#/components/schemas/Level"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"$ref": "#/components/schemas/EllipsisGrant"
|
|
500
|
+
}
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
"type": "array"
|
|
504
|
+
}
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
"description": "`permissions.ellipsis` as a map: resource \u2192 level | grant | list of\ngrants. Levels are hierarchical (read < write < delete), so `write`\nincludes `read`. An unlisted resource is denied. The whole block is\nintersected with the platform's sandbox ceiling at token mint \u2014 it can\nnarrow what a sandbox token may do, never exceed it.",
|
|
508
|
+
"propertyNames": {
|
|
509
|
+
"$ref": "#/components/schemas/Resource"
|
|
510
|
+
},
|
|
511
|
+
"title": "AgentConfigEllipsisPermissions",
|
|
512
|
+
"type": "object"
|
|
513
|
+
},
|
|
483
514
|
"AgentConfigEnvironment": {
|
|
484
515
|
"additionalProperties": false,
|
|
485
516
|
"description": "Everything about the environment (the sandbox) the agent runs in: which\n`repositories` are cloned into it, which environment `variables` it gets,\nits `compute` sizing, how its `image` is customized, and lifecycle `hooks`.\nWhat the agent may *do* from that environment is the top-level\n`permissions:` block, not this one.\n\nEach `variables` entry names a variable to inject; with an inline `value` it\nis hardcoded, without one it is resolved from the account's sandbox-secrets\nstore. Only the named variables reach this agent; the rest of the account's\nstored variables never do. This is how a config brings in the config and\ncredentials a custom CLI needs.",
|
|
@@ -824,14 +855,21 @@
|
|
|
824
855
|
},
|
|
825
856
|
"AgentConfigPermissions": {
|
|
826
857
|
"additionalProperties": false,
|
|
827
|
-
"description": "What the agent is allowed to touch, per credential the platform mints\ninto its sandbox. Distinct from `environment:`, which is where the agent\nruns; this is what it may do from there.\n\n`ellipsis` scopes the sandbox's Ellipsis API token\n(`ELLIPSIS_API_TOKEN`, what the in-sandbox `agent` CLI authenticates\nwith).
|
|
858
|
+
"description": "What the agent is allowed to touch, per credential the platform mints\ninto its sandbox. Distinct from `environment:`, which is where the agent\nruns; this is what it may do from there.\n\n`ellipsis` scopes the sandbox's Ellipsis API token\n(`ELLIPSIS_API_TOKEN`, what the in-sandbox `agent` CLI authenticates\nwith). `true` / the string `all` (the default) grant the full sandbox\nceiling \u2014 everything a sandbox token can ever do. A map narrows it per\nresource (see `AgentConfigEllipsisPermissions`); the minted token carries\nthe intersection, so a config can only ever reduce access. `false` fails\nvalidation \u2014 an agent with no API token cannot report its own progress.\n\n`github` scopes the sandbox's GitHub installation token (`GH_TOKEN`) \u2014\nsee `AgentConfigGithubPermissions`. GitHub enforces it at mint time.",
|
|
828
859
|
"properties": {
|
|
829
860
|
"ellipsis": {
|
|
830
|
-
"
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
861
|
+
"anyOf": [
|
|
862
|
+
{
|
|
863
|
+
"enum": [
|
|
864
|
+
true,
|
|
865
|
+
"all"
|
|
866
|
+
]
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"$ref": "#/components/schemas/AgentConfigEllipsisPermissions"
|
|
870
|
+
}
|
|
834
871
|
],
|
|
872
|
+
"default": true,
|
|
835
873
|
"title": "Ellipsis"
|
|
836
874
|
},
|
|
837
875
|
"github": {
|
|
@@ -2333,6 +2371,34 @@
|
|
|
2333
2371
|
"title": "EffortLevel",
|
|
2334
2372
|
"type": "string"
|
|
2335
2373
|
},
|
|
2374
|
+
"EllipsisGrant": {
|
|
2375
|
+
"additionalProperties": false,
|
|
2376
|
+
"description": "One grant entry: a level, optionally narrowed to instances whose\nnatural key (a file's name, a memory's path, a secret's name, a config's\nname, a session's id) matches any of the `match` globs.",
|
|
2377
|
+
"properties": {
|
|
2378
|
+
"level": {
|
|
2379
|
+
"$ref": "#/components/schemas/Level"
|
|
2380
|
+
},
|
|
2381
|
+
"match": {
|
|
2382
|
+
"anyOf": [
|
|
2383
|
+
{
|
|
2384
|
+
"items": {
|
|
2385
|
+
"type": "string"
|
|
2386
|
+
},
|
|
2387
|
+
"type": "array"
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
"type": "null"
|
|
2391
|
+
}
|
|
2392
|
+
],
|
|
2393
|
+
"title": "Match"
|
|
2394
|
+
}
|
|
2395
|
+
},
|
|
2396
|
+
"required": [
|
|
2397
|
+
"level"
|
|
2398
|
+
],
|
|
2399
|
+
"title": "EllipsisGrant",
|
|
2400
|
+
"type": "object"
|
|
2401
|
+
},
|
|
2336
2402
|
"ErrorInfo": {
|
|
2337
2403
|
"properties": {
|
|
2338
2404
|
"code": {
|
|
@@ -3676,6 +3742,16 @@
|
|
|
3676
3742
|
"title": "JiraIntegrationSummary",
|
|
3677
3743
|
"type": "object"
|
|
3678
3744
|
},
|
|
3745
|
+
"Level": {
|
|
3746
|
+
"description": "What may be done to a resource. Strictly ordered: a grant at one level\nincludes every level below it (write-only would be a phantom capability \u2014\nno real client can create what it cannot read back).",
|
|
3747
|
+
"enum": [
|
|
3748
|
+
"read",
|
|
3749
|
+
"write",
|
|
3750
|
+
"delete"
|
|
3751
|
+
],
|
|
3752
|
+
"title": "Level",
|
|
3753
|
+
"type": "string"
|
|
3754
|
+
},
|
|
3679
3755
|
"LinearIntegrationSummary": {
|
|
3680
3756
|
"description": "The account's connected Linear organization and its teams.",
|
|
3681
3757
|
"properties": {
|
|
@@ -5127,6 +5203,25 @@
|
|
|
5127
5203
|
"title": "ResolvedReviewScope",
|
|
5128
5204
|
"type": "object"
|
|
5129
5205
|
},
|
|
5206
|
+
"Resource": {
|
|
5207
|
+
"description": "Everything a credential can be granted access to, one value per /v1\nresource family. `TOKENS` is reserved for the future token-management\nroutes; nothing maps to it yet.",
|
|
5208
|
+
"enum": [
|
|
5209
|
+
"account",
|
|
5210
|
+
"alerts",
|
|
5211
|
+
"sessions",
|
|
5212
|
+
"files",
|
|
5213
|
+
"memories",
|
|
5214
|
+
"reviews",
|
|
5215
|
+
"configs",
|
|
5216
|
+
"defaults",
|
|
5217
|
+
"secrets",
|
|
5218
|
+
"templates",
|
|
5219
|
+
"integrations",
|
|
5220
|
+
"tokens"
|
|
5221
|
+
],
|
|
5222
|
+
"title": "Resource",
|
|
5223
|
+
"type": "string"
|
|
5224
|
+
},
|
|
5130
5225
|
"Review": {
|
|
5131
5226
|
"description": "One code review: one pipeline iteration over one commit range of a pull\nrequest.\n\n`review_body`, `findings`, and `counters` are produced as each stage\nsession finishes \u2014 while a review is running they are null/empty. Stream a\nstage's session to follow it live, then re-fetch the review.",
|
|
5132
5227
|
"properties": {
|
|
@@ -6612,39 +6707,13 @@
|
|
|
6612
6707
|
"Session": {
|
|
6613
6708
|
"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.",
|
|
6614
6709
|
"properties": {
|
|
6615
|
-
"
|
|
6616
|
-
"
|
|
6617
|
-
|
|
6618
|
-
"$ref": "#/components/schemas/GithubAccountSnippet"
|
|
6619
|
-
},
|
|
6620
|
-
{
|
|
6621
|
-
"type": "null"
|
|
6622
|
-
}
|
|
6623
|
-
],
|
|
6624
|
-
"description": "The GitHub user the session is attributed to, when the attribution is a GitHub user."
|
|
6625
|
-
},
|
|
6626
|
-
"attribution_id": {
|
|
6627
|
-
"anyOf": [
|
|
6628
|
-
{
|
|
6629
|
-
"type": "string"
|
|
6630
|
-
},
|
|
6631
|
-
{
|
|
6632
|
-
"type": "null"
|
|
6633
|
-
}
|
|
6634
|
-
],
|
|
6635
|
-
"description": "Identifier of the principal the session is attributed to.",
|
|
6636
|
-
"title": "Attribution Id"
|
|
6710
|
+
"attribution": {
|
|
6711
|
+
"$ref": "#/components/schemas/SessionAttribution",
|
|
6712
|
+
"description": "The principal this session is attributed to."
|
|
6637
6713
|
},
|
|
6638
|
-
"
|
|
6639
|
-
"
|
|
6640
|
-
|
|
6641
|
-
"$ref": "#/components/schemas/AttributionType"
|
|
6642
|
-
},
|
|
6643
|
-
{
|
|
6644
|
-
"type": "null"
|
|
6645
|
-
}
|
|
6646
|
-
],
|
|
6647
|
-
"description": "Kind of principal the session is attributed to (e.g. a GitHub user or an API key)."
|
|
6714
|
+
"budget": {
|
|
6715
|
+
"$ref": "#/components/schemas/SessionBudget",
|
|
6716
|
+
"description": "The spend budget enforced for this session."
|
|
6648
6717
|
},
|
|
6649
6718
|
"client_version": {
|
|
6650
6719
|
"anyOf": [
|
|
@@ -6695,28 +6764,9 @@
|
|
|
6695
6764
|
"description": "The \"owner/name\" repository context the session was started in, if any.",
|
|
6696
6765
|
"title": "Context Repository"
|
|
6697
6766
|
},
|
|
6698
|
-
"
|
|
6699
|
-
"
|
|
6700
|
-
"description": "
|
|
6701
|
-
"title": "Cost Fee",
|
|
6702
|
-
"type": "integer"
|
|
6703
|
-
},
|
|
6704
|
-
"cost_sandbox_cpu": {
|
|
6705
|
-
"default": 0,
|
|
6706
|
-
"description": "Sandbox CPU spend in millicents.",
|
|
6707
|
-
"title": "Cost Sandbox Cpu",
|
|
6708
|
-
"type": "integer"
|
|
6709
|
-
},
|
|
6710
|
-
"cost_sandbox_memory": {
|
|
6711
|
-
"default": 0,
|
|
6712
|
-
"description": "Sandbox memory spend in millicents.",
|
|
6713
|
-
"title": "Cost Sandbox Memory",
|
|
6714
|
-
"type": "integer"
|
|
6715
|
-
},
|
|
6716
|
-
"cost_tokens": {
|
|
6717
|
-
"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.",
|
|
6718
|
-
"title": "Cost Tokens",
|
|
6719
|
-
"type": "integer"
|
|
6767
|
+
"cost": {
|
|
6768
|
+
"$ref": "#/components/schemas/SessionCost",
|
|
6769
|
+
"description": "What the session cost, in millicents, broken down by leg and carrying its own total."
|
|
6720
6770
|
},
|
|
6721
6771
|
"created_at": {
|
|
6722
6772
|
"description": "When the session was created.",
|
|
@@ -6817,28 +6867,9 @@
|
|
|
6817
6867
|
"description": "Pull requests the session created or updated.",
|
|
6818
6868
|
"title": "Output Prs"
|
|
6819
6869
|
},
|
|
6820
|
-
"
|
|
6821
|
-
"
|
|
6822
|
-
|
|
6823
|
-
"$ref": "#/components/schemas/ParentKind"
|
|
6824
|
-
},
|
|
6825
|
-
{
|
|
6826
|
-
"type": "null"
|
|
6827
|
-
}
|
|
6828
|
-
],
|
|
6829
|
-
"description": "How this session relates to its parent session, if any."
|
|
6830
|
-
},
|
|
6831
|
-
"parent_session_id": {
|
|
6832
|
-
"anyOf": [
|
|
6833
|
-
{
|
|
6834
|
-
"type": "string"
|
|
6835
|
-
},
|
|
6836
|
-
{
|
|
6837
|
-
"type": "null"
|
|
6838
|
-
}
|
|
6839
|
-
],
|
|
6840
|
-
"description": "Identifier of the parent session that spawned this one, if any.",
|
|
6841
|
-
"title": "Parent Session Id"
|
|
6870
|
+
"parent": {
|
|
6871
|
+
"$ref": "#/components/schemas/SessionParent",
|
|
6872
|
+
"description": "What preceded this session, if anything."
|
|
6842
6873
|
},
|
|
6843
6874
|
"prompt": {
|
|
6844
6875
|
"anyOf": [
|
|
@@ -6856,27 +6887,6 @@
|
|
|
6856
6887
|
"$ref": "#/components/schemas/SessionPrompting",
|
|
6857
6888
|
"description": "Whether a client may send this session a message and, when it may not, the reason to show instead of a composer."
|
|
6858
6889
|
},
|
|
6859
|
-
"replayed_from_session_id": {
|
|
6860
|
-
"anyOf": [
|
|
6861
|
-
{
|
|
6862
|
-
"type": "string"
|
|
6863
|
-
},
|
|
6864
|
-
{
|
|
6865
|
-
"type": "null"
|
|
6866
|
-
}
|
|
6867
|
-
],
|
|
6868
|
-
"description": "Identifier of the original session this one was replayed from, if it was started via replay.",
|
|
6869
|
-
"title": "Replayed From Session Id"
|
|
6870
|
-
},
|
|
6871
|
-
"resolved_budget_cents": {
|
|
6872
|
-
"description": "The spend budget resolved for this session, in cents.",
|
|
6873
|
-
"title": "Resolved Budget Cents",
|
|
6874
|
-
"type": "integer"
|
|
6875
|
-
},
|
|
6876
|
-
"resolved_budget_source": {
|
|
6877
|
-
"$ref": "#/components/schemas/BudgetSource",
|
|
6878
|
-
"description": "Where the resolved budget came from."
|
|
6879
|
-
},
|
|
6880
6890
|
"sandbox_id": {
|
|
6881
6891
|
"anyOf": [
|
|
6882
6892
|
{
|
|
@@ -6932,41 +6942,9 @@
|
|
|
6932
6942
|
"description": "Human-readable reason for the current status, when there is one.",
|
|
6933
6943
|
"title": "Status Reason"
|
|
6934
6944
|
},
|
|
6935
|
-
"
|
|
6936
|
-
"
|
|
6937
|
-
|
|
6938
|
-
"format": "date-time",
|
|
6939
|
-
"type": "string"
|
|
6940
|
-
},
|
|
6941
|
-
{
|
|
6942
|
-
"type": "null"
|
|
6943
|
-
}
|
|
6944
|
-
],
|
|
6945
|
-
"description": "When a stop was requested, if one was.",
|
|
6946
|
-
"title": "Stopped At"
|
|
6947
|
-
},
|
|
6948
|
-
"stopped_by": {
|
|
6949
|
-
"anyOf": [
|
|
6950
|
-
{
|
|
6951
|
-
"type": "integer"
|
|
6952
|
-
},
|
|
6953
|
-
{
|
|
6954
|
-
"type": "null"
|
|
6955
|
-
}
|
|
6956
|
-
],
|
|
6957
|
-
"description": "GitHub account id of the user who stopped the session, if known.",
|
|
6958
|
-
"title": "Stopped By"
|
|
6959
|
-
},
|
|
6960
|
-
"stopped_by_user": {
|
|
6961
|
-
"anyOf": [
|
|
6962
|
-
{
|
|
6963
|
-
"$ref": "#/components/schemas/GithubAccountSnippet"
|
|
6964
|
-
},
|
|
6965
|
-
{
|
|
6966
|
-
"type": "null"
|
|
6967
|
-
}
|
|
6968
|
-
],
|
|
6969
|
-
"description": "The GitHub user who stopped the session, if it was stopped."
|
|
6945
|
+
"stopped": {
|
|
6946
|
+
"$ref": "#/components/schemas/SessionStopped",
|
|
6947
|
+
"description": "The stop request, if the session was stopped."
|
|
6970
6948
|
},
|
|
6971
6949
|
"surface": {
|
|
6972
6950
|
"anyOf": [
|
|
@@ -6979,40 +6957,9 @@
|
|
|
6979
6957
|
],
|
|
6980
6958
|
"description": "The public status projection; null for laptop-synced sessions."
|
|
6981
6959
|
},
|
|
6982
|
-
"
|
|
6983
|
-
"
|
|
6984
|
-
"description": "
|
|
6985
|
-
"title": "Tokens Cache Creation",
|
|
6986
|
-
"type": "integer"
|
|
6987
|
-
},
|
|
6988
|
-
"tokens_cache_read": {
|
|
6989
|
-
"default": 0,
|
|
6990
|
-
"description": "Tokens read from the prompt cache.",
|
|
6991
|
-
"title": "Tokens Cache Read",
|
|
6992
|
-
"type": "integer"
|
|
6993
|
-
},
|
|
6994
|
-
"tokens_input": {
|
|
6995
|
-
"default": 0,
|
|
6996
|
-
"description": "Input tokens used.",
|
|
6997
|
-
"title": "Tokens Input",
|
|
6998
|
-
"type": "integer"
|
|
6999
|
-
},
|
|
7000
|
-
"tokens_model": {
|
|
7001
|
-
"description": "The model the token counts are attributed to.",
|
|
7002
|
-
"title": "Tokens Model",
|
|
7003
|
-
"type": "string"
|
|
7004
|
-
},
|
|
7005
|
-
"tokens_output": {
|
|
7006
|
-
"default": 0,
|
|
7007
|
-
"description": "Output tokens used.",
|
|
7008
|
-
"title": "Tokens Output",
|
|
7009
|
-
"type": "integer"
|
|
7010
|
-
},
|
|
7011
|
-
"tokens_total": {
|
|
7012
|
-
"default": 0,
|
|
7013
|
-
"description": "Total tokens used by the session.",
|
|
7014
|
-
"title": "Tokens Total",
|
|
7015
|
-
"type": "integer"
|
|
6960
|
+
"tokens": {
|
|
6961
|
+
"$ref": "#/components/schemas/SessionTokens",
|
|
6962
|
+
"description": "The tokens the session spent and the model they went to. `total` includes the prompt-cache lanes."
|
|
7016
6963
|
},
|
|
7017
6964
|
"updated_at": {
|
|
7018
6965
|
"description": "When the session was last updated.",
|
|
@@ -7050,16 +6997,108 @@
|
|
|
7050
6997
|
"updated_at",
|
|
7051
6998
|
"harness",
|
|
7052
6999
|
"source",
|
|
7053
|
-
"cost_tokens",
|
|
7054
|
-
"tokens_model",
|
|
7055
|
-
"resolved_budget_cents",
|
|
7056
|
-
"resolved_budget_source",
|
|
7057
7000
|
"status",
|
|
7058
7001
|
"prompting"
|
|
7059
7002
|
],
|
|
7060
7003
|
"title": "Session",
|
|
7061
7004
|
"type": "object"
|
|
7062
7005
|
},
|
|
7006
|
+
"SessionAttribution": {
|
|
7007
|
+
"description": "The principal a session is attributed to: what kind, its id, and \u2014 when\nthe kind is a GitHub user \u2014 the resolved display snippet.",
|
|
7008
|
+
"properties": {
|
|
7009
|
+
"id": {
|
|
7010
|
+
"anyOf": [
|
|
7011
|
+
{
|
|
7012
|
+
"type": "string"
|
|
7013
|
+
},
|
|
7014
|
+
{
|
|
7015
|
+
"type": "null"
|
|
7016
|
+
}
|
|
7017
|
+
],
|
|
7018
|
+
"description": "Identifier of the principal the session is attributed to.",
|
|
7019
|
+
"title": "Id"
|
|
7020
|
+
},
|
|
7021
|
+
"type": {
|
|
7022
|
+
"anyOf": [
|
|
7023
|
+
{
|
|
7024
|
+
"$ref": "#/components/schemas/AttributionType"
|
|
7025
|
+
},
|
|
7026
|
+
{
|
|
7027
|
+
"type": "null"
|
|
7028
|
+
}
|
|
7029
|
+
],
|
|
7030
|
+
"description": "Kind of principal the session is attributed to (e.g. a GitHub user or an API key)."
|
|
7031
|
+
},
|
|
7032
|
+
"user": {
|
|
7033
|
+
"anyOf": [
|
|
7034
|
+
{
|
|
7035
|
+
"$ref": "#/components/schemas/GithubAccountSnippet"
|
|
7036
|
+
},
|
|
7037
|
+
{
|
|
7038
|
+
"type": "null"
|
|
7039
|
+
}
|
|
7040
|
+
],
|
|
7041
|
+
"description": "The GitHub user the session is attributed to, resolved at read time. Null when the attribution is not a GitHub user."
|
|
7042
|
+
}
|
|
7043
|
+
},
|
|
7044
|
+
"title": "SessionAttribution",
|
|
7045
|
+
"type": "object"
|
|
7046
|
+
},
|
|
7047
|
+
"SessionBudget": {
|
|
7048
|
+
"description": "The spend budget actually enforced for this session, and which layer of\nthe cascade set it.",
|
|
7049
|
+
"properties": {
|
|
7050
|
+
"cents": {
|
|
7051
|
+
"default": 0,
|
|
7052
|
+
"description": "The spend budget resolved for this session, in cents.",
|
|
7053
|
+
"title": "Cents",
|
|
7054
|
+
"type": "integer"
|
|
7055
|
+
},
|
|
7056
|
+
"source": {
|
|
7057
|
+
"$ref": "#/components/schemas/BudgetSource",
|
|
7058
|
+
"default": "account",
|
|
7059
|
+
"description": "Where the resolved budget came from."
|
|
7060
|
+
}
|
|
7061
|
+
},
|
|
7062
|
+
"title": "SessionBudget",
|
|
7063
|
+
"type": "object"
|
|
7064
|
+
},
|
|
7065
|
+
"SessionCost": {
|
|
7066
|
+
"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\".",
|
|
7067
|
+
"properties": {
|
|
7068
|
+
"fee": {
|
|
7069
|
+
"default": 0,
|
|
7070
|
+
"description": "Platform fee in millicents.",
|
|
7071
|
+
"title": "Fee",
|
|
7072
|
+
"type": "integer"
|
|
7073
|
+
},
|
|
7074
|
+
"llm": {
|
|
7075
|
+
"default": 0,
|
|
7076
|
+
"description": "LLM spend in millicents.",
|
|
7077
|
+
"title": "Llm",
|
|
7078
|
+
"type": "integer"
|
|
7079
|
+
},
|
|
7080
|
+
"sandbox_cpu": {
|
|
7081
|
+
"default": 0,
|
|
7082
|
+
"description": "Sandbox CPU spend in millicents.",
|
|
7083
|
+
"title": "Sandbox Cpu",
|
|
7084
|
+
"type": "integer"
|
|
7085
|
+
},
|
|
7086
|
+
"sandbox_memory": {
|
|
7087
|
+
"default": 0,
|
|
7088
|
+
"description": "Sandbox memory spend in millicents.",
|
|
7089
|
+
"title": "Sandbox Memory",
|
|
7090
|
+
"type": "integer"
|
|
7091
|
+
},
|
|
7092
|
+
"total": {
|
|
7093
|
+
"default": 0,
|
|
7094
|
+
"description": "The grand total in millicents: llm + sandbox_cpu + sandbox_memory + fee.",
|
|
7095
|
+
"title": "Total",
|
|
7096
|
+
"type": "integer"
|
|
7097
|
+
}
|
|
7098
|
+
},
|
|
7099
|
+
"title": "SessionCost",
|
|
7100
|
+
"type": "object"
|
|
7101
|
+
},
|
|
7063
7102
|
"SessionExecution": {
|
|
7064
7103
|
"description": "One runtime attempt of a session \u2014 the initial start, a cold wake of a\ndurable conversation, or an infrastructure retry \u2014 including the launch\ncontext the model was actually given.",
|
|
7065
7104
|
"properties": {
|
|
@@ -7390,6 +7429,48 @@
|
|
|
7390
7429
|
"title": "SessionMessageStatus",
|
|
7391
7430
|
"type": "string"
|
|
7392
7431
|
},
|
|
7432
|
+
"SessionParent": {
|
|
7433
|
+
"description": "The ONE \"preceded-by\" chain: the predecessor session and how this one\nrelates to it. Not a parent that orchestrates children \u2014 a session never\nspawns sub-sessions.",
|
|
7434
|
+
"properties": {
|
|
7435
|
+
"kind": {
|
|
7436
|
+
"anyOf": [
|
|
7437
|
+
{
|
|
7438
|
+
"$ref": "#/components/schemas/ParentKind"
|
|
7439
|
+
},
|
|
7440
|
+
{
|
|
7441
|
+
"type": "null"
|
|
7442
|
+
}
|
|
7443
|
+
],
|
|
7444
|
+
"description": "How this session relates to its parent session, if any."
|
|
7445
|
+
},
|
|
7446
|
+
"replayed_from_session_id": {
|
|
7447
|
+
"anyOf": [
|
|
7448
|
+
{
|
|
7449
|
+
"type": "string"
|
|
7450
|
+
},
|
|
7451
|
+
{
|
|
7452
|
+
"type": "null"
|
|
7453
|
+
}
|
|
7454
|
+
],
|
|
7455
|
+
"description": "Identifier of the original session this one was replayed from, if it was started via replay.",
|
|
7456
|
+
"title": "Replayed From Session Id"
|
|
7457
|
+
},
|
|
7458
|
+
"session_id": {
|
|
7459
|
+
"anyOf": [
|
|
7460
|
+
{
|
|
7461
|
+
"type": "string"
|
|
7462
|
+
},
|
|
7463
|
+
{
|
|
7464
|
+
"type": "null"
|
|
7465
|
+
}
|
|
7466
|
+
],
|
|
7467
|
+
"description": "Identifier of the parent session that spawned this one, if any.",
|
|
7468
|
+
"title": "Session Id"
|
|
7469
|
+
}
|
|
7470
|
+
},
|
|
7471
|
+
"title": "SessionParent",
|
|
7472
|
+
"type": "object"
|
|
7473
|
+
},
|
|
7393
7474
|
"SessionPr": {
|
|
7394
7475
|
"description": "A pull request this session created, denormalized at capture time so\nsession surfaces render a labeled link without joining gh_prs. Live PR\nstate (open/merged/closed) is not stored here \u2014 read it from gh_prs where\na view needs it.",
|
|
7395
7476
|
"properties": {
|
|
@@ -7827,6 +7908,49 @@
|
|
|
7827
7908
|
"title": "SessionStatus",
|
|
7828
7909
|
"type": "string"
|
|
7829
7910
|
},
|
|
7911
|
+
"SessionStopped": {
|
|
7912
|
+
"description": "The stop request, if there was one: when, by which GitHub account id,\nand that account resolved to a display snippet.",
|
|
7913
|
+
"properties": {
|
|
7914
|
+
"at": {
|
|
7915
|
+
"anyOf": [
|
|
7916
|
+
{
|
|
7917
|
+
"format": "date-time",
|
|
7918
|
+
"type": "string"
|
|
7919
|
+
},
|
|
7920
|
+
{
|
|
7921
|
+
"type": "null"
|
|
7922
|
+
}
|
|
7923
|
+
],
|
|
7924
|
+
"description": "When a stop was requested, if one was.",
|
|
7925
|
+
"title": "At"
|
|
7926
|
+
},
|
|
7927
|
+
"by": {
|
|
7928
|
+
"anyOf": [
|
|
7929
|
+
{
|
|
7930
|
+
"type": "integer"
|
|
7931
|
+
},
|
|
7932
|
+
{
|
|
7933
|
+
"type": "null"
|
|
7934
|
+
}
|
|
7935
|
+
],
|
|
7936
|
+
"description": "GitHub account id of the user who stopped the session, if known.",
|
|
7937
|
+
"title": "By"
|
|
7938
|
+
},
|
|
7939
|
+
"by_user": {
|
|
7940
|
+
"anyOf": [
|
|
7941
|
+
{
|
|
7942
|
+
"$ref": "#/components/schemas/GithubAccountSnippet"
|
|
7943
|
+
},
|
|
7944
|
+
{
|
|
7945
|
+
"type": "null"
|
|
7946
|
+
}
|
|
7947
|
+
],
|
|
7948
|
+
"description": "The GitHub user who stopped the session, resolved at read time."
|
|
7949
|
+
}
|
|
7950
|
+
},
|
|
7951
|
+
"title": "SessionStopped",
|
|
7952
|
+
"type": "object"
|
|
7953
|
+
},
|
|
7830
7954
|
"SessionSurface": {
|
|
7831
7955
|
"description": "The three fields we expose. All `None` for an un-keyed (laptop) session.\n\n`use_enum_values=True` (from CustomBaseModel) stores the members as their\nstring values, so this serializes to `{\"session\": \"alive\", \"run\": \"waiting\",\n\"status\": \"waiting\"}` \u2014 a plain object, not enum names.",
|
|
7832
7956
|
"properties": {
|
|
@@ -7870,6 +7994,49 @@
|
|
|
7870
7994
|
"title": "SessionSurface",
|
|
7871
7995
|
"type": "object"
|
|
7872
7996
|
},
|
|
7997
|
+
"SessionTokens": {
|
|
7998
|
+
"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.",
|
|
7999
|
+
"properties": {
|
|
8000
|
+
"cache_creation": {
|
|
8001
|
+
"default": 0,
|
|
8002
|
+
"description": "Tokens written to the prompt cache.",
|
|
8003
|
+
"title": "Cache Creation",
|
|
8004
|
+
"type": "integer"
|
|
8005
|
+
},
|
|
8006
|
+
"cache_read": {
|
|
8007
|
+
"default": 0,
|
|
8008
|
+
"description": "Tokens read from the prompt cache.",
|
|
8009
|
+
"title": "Cache Read",
|
|
8010
|
+
"type": "integer"
|
|
8011
|
+
},
|
|
8012
|
+
"input": {
|
|
8013
|
+
"default": 0,
|
|
8014
|
+
"description": "Input tokens used.",
|
|
8015
|
+
"title": "Input",
|
|
8016
|
+
"type": "integer"
|
|
8017
|
+
},
|
|
8018
|
+
"model": {
|
|
8019
|
+
"default": "",
|
|
8020
|
+
"description": "The model the token counts are attributed to.",
|
|
8021
|
+
"title": "Model",
|
|
8022
|
+
"type": "string"
|
|
8023
|
+
},
|
|
8024
|
+
"output": {
|
|
8025
|
+
"default": 0,
|
|
8026
|
+
"description": "Output tokens used.",
|
|
8027
|
+
"title": "Output",
|
|
8028
|
+
"type": "integer"
|
|
8029
|
+
},
|
|
8030
|
+
"total": {
|
|
8031
|
+
"default": 0,
|
|
8032
|
+
"description": "Total tokens consumed, INCLUDING the prompt-cache reads and writes \u2014 the same basis the token cost is priced on.",
|
|
8033
|
+
"title": "Total",
|
|
8034
|
+
"type": "integer"
|
|
8035
|
+
}
|
|
8036
|
+
},
|
|
8037
|
+
"title": "SessionTokens",
|
|
8038
|
+
"type": "object"
|
|
8039
|
+
},
|
|
7873
8040
|
"SessionsListResponse": {
|
|
7874
8041
|
"description": "A page of sessions in the lean wire shape.",
|
|
7875
8042
|
"properties": {
|