@ellipsis-dev/sdk 0.8.1 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ellipsis-dev/sdk",
3
- "version": "0.8.1",
3
+ "version": "0.9.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",
@@ -1,101 +1,5 @@
1
1
  {
2
2
  "$defs": {
3
- "AgentSessionExitStatus": {
4
- "description": "Why a terminal agent session ended \u2014 a finer-grained reason than `status`.\n\n`status` (AgentSessionStatus) is the lifecycle state: COMPLETED / ERROR /\nCANCELLED. `exit_status` explains *why* a run reached that terminal state, so\nthe UI and metrics can tell a budget cutoff apart from a crashed tool call or\na deliberate cancellation. It is None until the run reaches a terminal state.",
5
- "enum": [
6
- "completed",
7
- "budget_hit",
8
- "payment_required",
9
- "tool_call_failed",
10
- "lifecycle_hook_failed",
11
- "missing_repo_access",
12
- "missing_token_permissions",
13
- "missing_sandbox_variables",
14
- "cancelled",
15
- "interrupted",
16
- "error",
17
- "stopped"
18
- ],
19
- "title": "AgentSessionExitStatus",
20
- "type": "string"
21
- },
22
- "AgentSessionPr": {
23
- "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.",
24
- "properties": {
25
- "gh_pr_id": {
26
- "anyOf": [
27
- {
28
- "type": "integer"
29
- },
30
- {
31
- "type": "null"
32
- }
33
- ],
34
- "default": null,
35
- "title": "Gh Pr Id"
36
- },
37
- "number": {
38
- "title": "Number",
39
- "type": "integer"
40
- },
41
- "repo_full_name": {
42
- "title": "Repo Full Name",
43
- "type": "string"
44
- },
45
- "title": {
46
- "anyOf": [
47
- {
48
- "type": "string"
49
- },
50
- {
51
- "type": "null"
52
- }
53
- ],
54
- "default": null,
55
- "title": "Title"
56
- },
57
- "url": {
58
- "title": "Url",
59
- "type": "string"
60
- }
61
- },
62
- "required": [
63
- "gh_pr_id",
64
- "number",
65
- "repo_full_name",
66
- "title",
67
- "url"
68
- ],
69
- "title": "AgentSessionPr",
70
- "type": "object"
71
- },
72
- "AgentSessionSource": {
73
- "enum": [
74
- "react",
75
- "manual",
76
- "api",
77
- "cli",
78
- "mention",
79
- "cron",
80
- "laptop"
81
- ],
82
- "title": "AgentSessionSource",
83
- "type": "string"
84
- },
85
- "AgentSessionStatus": {
86
- "enum": [
87
- "scheduled",
88
- "creating_sandbox",
89
- "running",
90
- "retrying",
91
- "completed",
92
- "error",
93
- "cancelled",
94
- "stopped"
95
- ],
96
- "title": "AgentSessionStatus",
97
- "type": "string"
98
- },
99
3
  "AttributionType": {
100
4
  "enum": [
101
5
  "github_user",
@@ -498,7 +402,7 @@
498
402
  "exit_status": {
499
403
  "anyOf": [
500
404
  {
501
- "$ref": "#/$defs/AgentSessionExitStatus"
405
+ "$ref": "#/$defs/SessionExitStatus"
502
406
  },
503
407
  {
504
408
  "type": "null"
@@ -570,7 +474,7 @@
570
474
  "anyOf": [
571
475
  {
572
476
  "items": {
573
- "$ref": "#/$defs/AgentSessionPr"
477
+ "$ref": "#/$defs/SessionPr"
574
478
  },
575
479
  "type": "array"
576
480
  },
@@ -685,11 +589,11 @@
685
589
  "description": "Lifecycle state of the durable conversation, or null for sessions without one."
686
590
  },
687
591
  "source": {
688
- "$ref": "#/$defs/AgentSessionSource",
592
+ "$ref": "#/$defs/SessionSource",
689
593
  "description": "Where the session came from (e.g. react, manual, api, cli, mention, cron, laptop)."
690
594
  },
691
595
  "status": {
692
- "$ref": "#/$defs/AgentSessionStatus",
596
+ "$ref": "#/$defs/SessionStatus",
693
597
  "description": "Execution status of the session."
694
598
  },
695
599
  "status_reason": {
@@ -875,6 +779,25 @@
875
779
  "title": "Session",
876
780
  "type": "object"
877
781
  },
782
+ "SessionExitStatus": {
783
+ "description": "Why a terminal agent session ended \u2014 a finer-grained reason than `status`.\n\n`status` (SessionStatus) is the lifecycle state: COMPLETED / ERROR /\nCANCELLED. `exit_status` explains *why* a run reached that terminal state, so\nthe UI and metrics can tell a budget cutoff apart from a crashed tool call or\na deliberate cancellation. It is None until the run reaches a terminal state.",
784
+ "enum": [
785
+ "completed",
786
+ "budget_hit",
787
+ "payment_required",
788
+ "tool_call_failed",
789
+ "lifecycle_hook_failed",
790
+ "missing_repo_access",
791
+ "missing_token_permissions",
792
+ "missing_sandbox_variables",
793
+ "cancelled",
794
+ "interrupted",
795
+ "error",
796
+ "stopped"
797
+ ],
798
+ "title": "SessionExitStatus",
799
+ "type": "string"
800
+ },
878
801
  "SessionFrame": {
879
802
  "description": "A last-writer-wins snapshot of the session \u2014 the only way status,\nstate, and cost updates arrive. Resent whole on any field change.",
880
803
  "properties": {
@@ -1037,6 +960,56 @@
1037
960
  "title": "SessionMessageStatus",
1038
961
  "type": "string"
1039
962
  },
963
+ "SessionPr": {
964
+ "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.",
965
+ "properties": {
966
+ "gh_pr_id": {
967
+ "anyOf": [
968
+ {
969
+ "type": "integer"
970
+ },
971
+ {
972
+ "type": "null"
973
+ }
974
+ ],
975
+ "default": null,
976
+ "title": "Gh Pr Id"
977
+ },
978
+ "number": {
979
+ "title": "Number",
980
+ "type": "integer"
981
+ },
982
+ "repo_full_name": {
983
+ "title": "Repo Full Name",
984
+ "type": "string"
985
+ },
986
+ "title": {
987
+ "anyOf": [
988
+ {
989
+ "type": "string"
990
+ },
991
+ {
992
+ "type": "null"
993
+ }
994
+ ],
995
+ "default": null,
996
+ "title": "Title"
997
+ },
998
+ "url": {
999
+ "title": "Url",
1000
+ "type": "string"
1001
+ }
1002
+ },
1003
+ "required": [
1004
+ "gh_pr_id",
1005
+ "number",
1006
+ "repo_full_name",
1007
+ "title",
1008
+ "url"
1009
+ ],
1010
+ "title": "SessionPr",
1011
+ "type": "object"
1012
+ },
1040
1013
  "SessionPrompting": {
1041
1014
  "description": "The prompt-affordance projection. `enabled` answers \"would a send work\",\nand when it wouldn't, `blocked_reason` + `detail` say why.\n\n`surface_name` is set only for MENTION_SURFACE, naming where to reply.",
1042
1015
  "properties": {
@@ -1253,8 +1226,21 @@
1253
1226
  "title": "SessionRecord",
1254
1227
  "type": "object"
1255
1228
  },
1229
+ "SessionSource": {
1230
+ "enum": [
1231
+ "react",
1232
+ "manual",
1233
+ "api",
1234
+ "cli",
1235
+ "mention",
1236
+ "cron",
1237
+ "laptop"
1238
+ ],
1239
+ "title": "SessionSource",
1240
+ "type": "string"
1241
+ },
1256
1242
  "SessionState": {
1257
- "description": "Lifecycle of a keyed (multi-turn) session \u2014 the durable conversation.\nDistinct from AgentSessionStatus, which is per-execution (one turn's run) and\nmoves to agent_turns in a later slice. IDLE: alive, waiting for the next\nmessage. RUNNING: a turn is executing. CLOSED: the conversation is done and\nits sandbox/snapshots are torn down.",
1243
+ "description": "Lifecycle of a keyed (multi-turn) session \u2014 the durable conversation.\nDistinct from SessionStatus, which is per-execution (one turn's run) and\nmoves to agent_turns in a later slice. IDLE: alive, waiting for the next\nmessage. RUNNING: a turn is executing. CLOSED: the conversation is done and\nits sandbox/snapshots are torn down.",
1258
1244
  "enum": [
1259
1245
  "idle",
1260
1246
  "running",
@@ -1263,6 +1249,20 @@
1263
1249
  "title": "SessionState",
1264
1250
  "type": "string"
1265
1251
  },
1252
+ "SessionStatus": {
1253
+ "enum": [
1254
+ "scheduled",
1255
+ "creating_sandbox",
1256
+ "running",
1257
+ "retrying",
1258
+ "completed",
1259
+ "error",
1260
+ "cancelled",
1261
+ "stopped"
1262
+ ],
1263
+ "title": "SessionStatus",
1264
+ "type": "string"
1265
+ },
1266
1266
  "SessionSurface": {
1267
1267
  "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.",
1268
1268
  "properties": {