@ellipsis-dev/sdk 0.34.0 → 0.35.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/README.md +5 -7
- package/dist/index.d.ts +97 -171
- package/dist/index.js +19 -183
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.js +246 -127
- package/dist/stream/index.d.ts +4 -7
- package/dist/stream/index.js +187 -21
- package/dist/{types-sNAOvELB.d.ts → types-BrLpRRde.d.ts} +881 -1171
- package/package.json +1 -1
- package/schema/collection_frames.schema.json +162 -17
- package/schema/frames.schema.json +770 -87
- package/schema/openapi.v1.json +8184 -8713
- package/dist/chunk-6V7QTLLF.js +0 -214
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ellipsis-dev/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "TypeScript SDK for the Ellipsis agents platform: /v1 REST types + client, the session stream WebSocket client, and the session transcript store.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -113,6 +113,20 @@
|
|
|
113
113
|
"description": "The agent's account-unique addressable name (a slug of its display name); usable anywhere an agent is referenced, interchangeably with the id.",
|
|
114
114
|
"title": "Name"
|
|
115
115
|
},
|
|
116
|
+
"next_run_at": {
|
|
117
|
+
"anyOf": [
|
|
118
|
+
{
|
|
119
|
+
"format": "date-time",
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "null"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"default": null,
|
|
127
|
+
"description": "When the agent's cron trigger next starts a session. Null when the agent has no cron trigger, its trigger is paused, or the agent is disabled.",
|
|
128
|
+
"title": "Next Run At"
|
|
129
|
+
},
|
|
116
130
|
"pending_pull_request_url": {
|
|
117
131
|
"anyOf": [
|
|
118
132
|
{
|
|
@@ -167,6 +181,7 @@
|
|
|
167
181
|
"last_synced_commit_sha",
|
|
168
182
|
"managed_by",
|
|
169
183
|
"name",
|
|
184
|
+
"next_run_at",
|
|
170
185
|
"pending_pull_request_url",
|
|
171
186
|
"raw_yaml",
|
|
172
187
|
"sha",
|
|
@@ -680,7 +695,7 @@
|
|
|
680
695
|
"properties": {
|
|
681
696
|
"charged": {
|
|
682
697
|
"default": 0,
|
|
683
|
-
"description": "What Ellipsis charged to credit, in millicents. It is everything except subscription tokens
|
|
698
|
+
"description": "What Ellipsis charged to credit, in millicents. It is everything except subscription tokens.",
|
|
684
699
|
"title": "Charged",
|
|
685
700
|
"type": "integer"
|
|
686
701
|
},
|
|
@@ -708,7 +723,7 @@
|
|
|
708
723
|
},
|
|
709
724
|
"total": {
|
|
710
725
|
"default": 0,
|
|
711
|
-
"description": "Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee.",
|
|
726
|
+
"description": "Everything it cost, whoever paid, in millicents. It is the sum of llm.all.total, cpu, memory, and fee, and it is what the budget caps.",
|
|
712
727
|
"title": "Total",
|
|
713
728
|
"type": "integer"
|
|
714
729
|
}
|
|
@@ -929,7 +944,8 @@
|
|
|
929
944
|
"before_start": null,
|
|
930
945
|
"build_base": null,
|
|
931
946
|
"post_clone": null,
|
|
932
|
-
"post_start": null
|
|
947
|
+
"post_start": null,
|
|
948
|
+
"validate": null
|
|
933
949
|
}
|
|
934
950
|
},
|
|
935
951
|
"mcp_servers": {
|
|
@@ -982,7 +998,7 @@
|
|
|
982
998
|
},
|
|
983
999
|
"EnvironmentHooks": {
|
|
984
1000
|
"additionalProperties": false,
|
|
985
|
-
"description": "Environment lifecycle scripts, in order: build_base, after_checkout,\nbefore_start. The first two produce reusable snapshots
|
|
1001
|
+
"description": "Environment lifecycle scripts, in order: build_base, after_checkout,\nbefore_start, validate. The first two produce reusable snapshots;\nbefore_start runs before an agent starts or resumes its session, and\nvalidate runs last to check that the environment has what the agent needs.\nScripts run as the environment's user in the workspace directory\n`/sandbox`. A nonzero exit fails the session.\n\nLegacy post_start/post_clone scripts remain supported for existing configs;\nboth run after workspace preparation, before the agent starts or resumes.\nThey cannot be combined with the new lifecycle fields.",
|
|
986
1002
|
"properties": {
|
|
987
1003
|
"after_checkout": {
|
|
988
1004
|
"anyOf": [
|
|
@@ -1057,6 +1073,22 @@
|
|
|
1057
1073
|
"default": null,
|
|
1058
1074
|
"description": "Legacy session startup script. Use before_start in new configurations.",
|
|
1059
1075
|
"title": "Post Start"
|
|
1076
|
+
},
|
|
1077
|
+
"validate": {
|
|
1078
|
+
"anyOf": [
|
|
1079
|
+
{
|
|
1080
|
+
"$ref": "#/$defs/EnvironmentScript"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"type": "string"
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"type": "null"
|
|
1087
|
+
}
|
|
1088
|
+
],
|
|
1089
|
+
"default": null,
|
|
1090
|
+
"description": "Check that the environment works, for example that required tools are on PATH. Runs last, after before_start, each time a session starts or resumes and each time the environment is built after a change. A nonzero exit fails the session or the build. Not cached.",
|
|
1091
|
+
"title": "Validate"
|
|
1060
1092
|
}
|
|
1061
1093
|
},
|
|
1062
1094
|
"required": [
|
|
@@ -1064,7 +1096,8 @@
|
|
|
1064
1096
|
"before_start",
|
|
1065
1097
|
"build_base",
|
|
1066
1098
|
"post_clone",
|
|
1067
|
-
"post_start"
|
|
1099
|
+
"post_start",
|
|
1100
|
+
"validate"
|
|
1068
1101
|
],
|
|
1069
1102
|
"title": "EnvironmentHooks",
|
|
1070
1103
|
"type": "object"
|
|
@@ -1126,6 +1159,36 @@
|
|
|
1126
1159
|
"title": "EnvironmentVariable",
|
|
1127
1160
|
"type": "object"
|
|
1128
1161
|
},
|
|
1162
|
+
"GeminiConfig": {
|
|
1163
|
+
"additionalProperties": false,
|
|
1164
|
+
"description": "Native options supported by the current Gemini CLI adapter.",
|
|
1165
|
+
"properties": {
|
|
1166
|
+
"model": {
|
|
1167
|
+
"description": "The model the session runs on: a Gemini id from the models table. Required.",
|
|
1168
|
+
"title": "Model",
|
|
1169
|
+
"type": "string"
|
|
1170
|
+
},
|
|
1171
|
+
"prompt": {
|
|
1172
|
+
"anyOf": [
|
|
1173
|
+
{
|
|
1174
|
+
"type": "string"
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"type": "null"
|
|
1178
|
+
}
|
|
1179
|
+
],
|
|
1180
|
+
"default": null,
|
|
1181
|
+
"description": "The initial user message, passed verbatim. Omit to start an interactive session with no turn, waiting for a message.",
|
|
1182
|
+
"title": "Prompt"
|
|
1183
|
+
}
|
|
1184
|
+
},
|
|
1185
|
+
"required": [
|
|
1186
|
+
"model",
|
|
1187
|
+
"prompt"
|
|
1188
|
+
],
|
|
1189
|
+
"title": "GeminiConfig",
|
|
1190
|
+
"type": "object"
|
|
1191
|
+
},
|
|
1129
1192
|
"GithubAccountFilter": {
|
|
1130
1193
|
"anyOf": [
|
|
1131
1194
|
{
|
|
@@ -3100,7 +3163,6 @@
|
|
|
3100
3163
|
"defaults",
|
|
3101
3164
|
"environments",
|
|
3102
3165
|
"secrets",
|
|
3103
|
-
"templates",
|
|
3104
3166
|
"integrations",
|
|
3105
3167
|
"reviews",
|
|
3106
3168
|
"tokens",
|
|
@@ -3398,11 +3460,15 @@
|
|
|
3398
3460
|
},
|
|
3399
3461
|
"codex": {
|
|
3400
3462
|
"type": "null"
|
|
3463
|
+
},
|
|
3464
|
+
"gemini": {
|
|
3465
|
+
"type": "null"
|
|
3401
3466
|
}
|
|
3402
3467
|
},
|
|
3403
3468
|
"required": [
|
|
3404
3469
|
"claude_code",
|
|
3405
|
-
"codex"
|
|
3470
|
+
"codex",
|
|
3471
|
+
"gemini"
|
|
3406
3472
|
]
|
|
3407
3473
|
},
|
|
3408
3474
|
{
|
|
@@ -3413,11 +3479,34 @@
|
|
|
3413
3479
|
"codex": {
|
|
3414
3480
|
"additionalProperties": true,
|
|
3415
3481
|
"type": "object"
|
|
3482
|
+
},
|
|
3483
|
+
"gemini": {
|
|
3484
|
+
"type": "null"
|
|
3416
3485
|
}
|
|
3417
3486
|
},
|
|
3418
3487
|
"required": [
|
|
3419
3488
|
"claude_code",
|
|
3420
|
-
"codex"
|
|
3489
|
+
"codex",
|
|
3490
|
+
"gemini"
|
|
3491
|
+
]
|
|
3492
|
+
},
|
|
3493
|
+
{
|
|
3494
|
+
"properties": {
|
|
3495
|
+
"claude_code": {
|
|
3496
|
+
"type": "null"
|
|
3497
|
+
},
|
|
3498
|
+
"codex": {
|
|
3499
|
+
"type": "null"
|
|
3500
|
+
},
|
|
3501
|
+
"gemini": {
|
|
3502
|
+
"additionalProperties": true,
|
|
3503
|
+
"type": "object"
|
|
3504
|
+
}
|
|
3505
|
+
},
|
|
3506
|
+
"required": [
|
|
3507
|
+
"claude_code",
|
|
3508
|
+
"codex",
|
|
3509
|
+
"gemini"
|
|
3421
3510
|
]
|
|
3422
3511
|
}
|
|
3423
3512
|
]
|
|
@@ -3469,7 +3558,7 @@
|
|
|
3469
3558
|
}
|
|
3470
3559
|
],
|
|
3471
3560
|
"default": null,
|
|
3472
|
-
"description": "Claude Code input and native options. Set exactly one of claude_code or
|
|
3561
|
+
"description": "Claude Code input and native options. Set exactly one of claude_code, codex, or gemini."
|
|
3473
3562
|
},
|
|
3474
3563
|
"codex": {
|
|
3475
3564
|
"anyOf": [
|
|
@@ -3481,7 +3570,7 @@
|
|
|
3481
3570
|
}
|
|
3482
3571
|
],
|
|
3483
3572
|
"default": null,
|
|
3484
|
-
"description": "Codex input and native options. Set exactly one of claude_code or
|
|
3573
|
+
"description": "Codex input and native options. Set exactly one of claude_code, codex, or gemini."
|
|
3485
3574
|
},
|
|
3486
3575
|
"conversation": {
|
|
3487
3576
|
"$ref": "#/$defs/SessionConversation",
|
|
@@ -3568,6 +3657,18 @@
|
|
|
3568
3657
|
"description": "The typed external event that started the session; null for direct and scheduled starts.",
|
|
3569
3658
|
"title": "Event"
|
|
3570
3659
|
},
|
|
3660
|
+
"gemini": {
|
|
3661
|
+
"anyOf": [
|
|
3662
|
+
{
|
|
3663
|
+
"$ref": "#/$defs/GeminiConfig"
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
"type": "null"
|
|
3667
|
+
}
|
|
3668
|
+
],
|
|
3669
|
+
"default": null,
|
|
3670
|
+
"description": "Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini."
|
|
3671
|
+
},
|
|
3571
3672
|
"git": {
|
|
3572
3673
|
"anyOf": [
|
|
3573
3674
|
{
|
|
@@ -3693,6 +3794,7 @@
|
|
|
3693
3794
|
"created_at",
|
|
3694
3795
|
"environment",
|
|
3695
3796
|
"event",
|
|
3797
|
+
"gemini",
|
|
3696
3798
|
"git",
|
|
3697
3799
|
"handler",
|
|
3698
3800
|
"id",
|
|
@@ -3829,11 +3931,34 @@
|
|
|
3829
3931
|
},
|
|
3830
3932
|
"codex": {
|
|
3831
3933
|
"type": "null"
|
|
3934
|
+
},
|
|
3935
|
+
"gemini": {
|
|
3936
|
+
"type": "null"
|
|
3937
|
+
}
|
|
3938
|
+
},
|
|
3939
|
+
"required": [
|
|
3940
|
+
"claude_code",
|
|
3941
|
+
"codex",
|
|
3942
|
+
"gemini"
|
|
3943
|
+
]
|
|
3944
|
+
},
|
|
3945
|
+
{
|
|
3946
|
+
"properties": {
|
|
3947
|
+
"claude_code": {
|
|
3948
|
+
"type": "null"
|
|
3949
|
+
},
|
|
3950
|
+
"codex": {
|
|
3951
|
+
"additionalProperties": true,
|
|
3952
|
+
"type": "object"
|
|
3953
|
+
},
|
|
3954
|
+
"gemini": {
|
|
3955
|
+
"type": "null"
|
|
3832
3956
|
}
|
|
3833
3957
|
},
|
|
3834
3958
|
"required": [
|
|
3835
3959
|
"claude_code",
|
|
3836
|
-
"codex"
|
|
3960
|
+
"codex",
|
|
3961
|
+
"gemini"
|
|
3837
3962
|
]
|
|
3838
3963
|
},
|
|
3839
3964
|
{
|
|
@@ -3842,13 +3967,17 @@
|
|
|
3842
3967
|
"type": "null"
|
|
3843
3968
|
},
|
|
3844
3969
|
"codex": {
|
|
3970
|
+
"type": "null"
|
|
3971
|
+
},
|
|
3972
|
+
"gemini": {
|
|
3845
3973
|
"additionalProperties": true,
|
|
3846
3974
|
"type": "object"
|
|
3847
3975
|
}
|
|
3848
3976
|
},
|
|
3849
3977
|
"required": [
|
|
3850
3978
|
"claude_code",
|
|
3851
|
-
"codex"
|
|
3979
|
+
"codex",
|
|
3980
|
+
"gemini"
|
|
3852
3981
|
]
|
|
3853
3982
|
}
|
|
3854
3983
|
]
|
|
@@ -3875,7 +4004,7 @@
|
|
|
3875
4004
|
}
|
|
3876
4005
|
],
|
|
3877
4006
|
"default": null,
|
|
3878
|
-
"description": "Claude Code input and native options. Set exactly one of claude_code or
|
|
4007
|
+
"description": "Claude Code input and native options. Set exactly one of claude_code, codex, or gemini."
|
|
3879
4008
|
},
|
|
3880
4009
|
"codex": {
|
|
3881
4010
|
"anyOf": [
|
|
@@ -3887,7 +4016,7 @@
|
|
|
3887
4016
|
}
|
|
3888
4017
|
],
|
|
3889
4018
|
"default": null,
|
|
3890
|
-
"description": "Codex input and native options. Set exactly one of claude_code or
|
|
4019
|
+
"description": "Codex input and native options. Set exactly one of claude_code, codex, or gemini."
|
|
3891
4020
|
},
|
|
3892
4021
|
"conversation": {
|
|
3893
4022
|
"$ref": "#/$defs/SessionConversationConfig",
|
|
@@ -3915,7 +4044,8 @@
|
|
|
3915
4044
|
"before_start": null,
|
|
3916
4045
|
"build_base": null,
|
|
3917
4046
|
"post_clone": null,
|
|
3918
|
-
"post_start": null
|
|
4047
|
+
"post_start": null,
|
|
4048
|
+
"validate": null
|
|
3919
4049
|
},
|
|
3920
4050
|
"mcp_servers": [],
|
|
3921
4051
|
"repositories": [],
|
|
@@ -3923,6 +4053,18 @@
|
|
|
3923
4053
|
},
|
|
3924
4054
|
"title": "Environment"
|
|
3925
4055
|
},
|
|
4056
|
+
"gemini": {
|
|
4057
|
+
"anyOf": [
|
|
4058
|
+
{
|
|
4059
|
+
"$ref": "#/$defs/GeminiConfig"
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
"type": "null"
|
|
4063
|
+
}
|
|
4064
|
+
],
|
|
4065
|
+
"default": null,
|
|
4066
|
+
"description": "Gemini CLI input and native options. Set exactly one of claude_code, codex, or gemini."
|
|
4067
|
+
},
|
|
3926
4068
|
"metadata": {
|
|
3927
4069
|
"additionalProperties": {
|
|
3928
4070
|
"type": "string"
|
|
@@ -3968,6 +4110,7 @@
|
|
|
3968
4110
|
"codex",
|
|
3969
4111
|
"conversation",
|
|
3970
4112
|
"environment",
|
|
4113
|
+
"gemini",
|
|
3971
4114
|
"metadata",
|
|
3972
4115
|
"output",
|
|
3973
4116
|
"permissions",
|
|
@@ -4043,7 +4186,8 @@
|
|
|
4043
4186
|
"before_start": null,
|
|
4044
4187
|
"build_base": null,
|
|
4045
4188
|
"post_clone": null,
|
|
4046
|
-
"post_start": null
|
|
4189
|
+
"post_start": null,
|
|
4190
|
+
"validate": null
|
|
4047
4191
|
}
|
|
4048
4192
|
},
|
|
4049
4193
|
"id": {
|
|
@@ -5077,7 +5221,8 @@
|
|
|
5077
5221
|
"before_start": null,
|
|
5078
5222
|
"build_base": null,
|
|
5079
5223
|
"post_clone": null,
|
|
5080
|
-
"post_start": null
|
|
5224
|
+
"post_start": null,
|
|
5225
|
+
"validate": null
|
|
5081
5226
|
}
|
|
5082
5227
|
},
|
|
5083
5228
|
"id": {
|