@ellipsis-dev/sdk 0.2.3 → 0.4.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.2.3",
3
+ "version": "0.4.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",
@@ -761,44 +761,6 @@
761
761
  "title": "HeartbeatFrame",
762
762
  "type": "object"
763
763
  },
764
- "ModelTokensInfo": {
765
- "properties": {
766
- "cache_creation_input_tokens": {
767
- "default": 0,
768
- "title": "Cache Creation Input Tokens",
769
- "type": "integer"
770
- },
771
- "cache_read_input_tokens": {
772
- "default": 0,
773
- "title": "Cache Read Input Tokens",
774
- "type": "integer"
775
- },
776
- "cost_usd": {
777
- "default": 0,
778
- "title": "Cost Usd",
779
- "type": "number"
780
- },
781
- "input_tokens": {
782
- "default": 0,
783
- "title": "Input Tokens",
784
- "type": "integer"
785
- },
786
- "output_tokens": {
787
- "default": 0,
788
- "title": "Output Tokens",
789
- "type": "integer"
790
- }
791
- },
792
- "required": [
793
- "cache_creation_input_tokens",
794
- "cache_read_input_tokens",
795
- "cost_usd",
796
- "input_tokens",
797
- "output_tokens"
798
- ],
799
- "title": "ModelTokensInfo",
800
- "type": "object"
801
- },
802
764
  "ParentKind": {
803
765
  "description": "How a session relates to its predecessor (parent_agent_session_id) \u2014\nthe ONE \"preceded-by\" chain for every predecessor relationship. Routing\nreads this when the distinction matters.\n\nCONTINUATION \u2014 a follow-up in the same conversation surface (e.g. a Slack\nthread reply spawning a fresh session on the same thread).\nHANDOFF \u2014 a session started to take over work from another surface (e.g.\nlaptop \u2192 cloud handoff; later phase).\nRESUME \u2014 a conversation re-hosted on a new box after its sandbox was torn\ndown (interactive platform; later phase).",
804
766
  "enum": [
@@ -1312,6 +1274,8 @@
1312
1274
  "type": "object"
1313
1275
  },
1314
1276
  "TokensInfo": {
1277
+ "additionalProperties": false,
1278
+ "description": "Token/cost usage, per record (one API call's counts, aggregate fields at\ntheir zero defaults) or aggregated per execution/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 lives on\n`execution.model_usage` (CC's modelUsage, verbatim).",
1315
1279
  "properties": {
1316
1280
  "cache_creation_input_tokens": {
1317
1281
  "default": 0,
@@ -1328,11 +1292,6 @@
1328
1292
  "title": "Cost Usd",
1329
1293
  "type": "number"
1330
1294
  },
1331
- "initial_system_prompt_tokens": {
1332
- "default": 0,
1333
- "title": "Initial System Prompt Tokens",
1334
- "type": "integer"
1335
- },
1336
1295
  "input_tokens": {
1337
1296
  "default": 0,
1338
1297
  "title": "Input Tokens",
@@ -1347,74 +1306,17 @@
1347
1306
  "default": 0,
1348
1307
  "title": "Output Tokens",
1349
1308
  "type": "integer"
1350
- },
1351
- "per_model": {
1352
- "additionalProperties": {
1353
- "$ref": "#/$defs/ModelTokensInfo"
1354
- },
1355
- "default": {},
1356
- "title": "Per Model",
1357
- "type": "object"
1358
- },
1359
- "per_turn": {
1360
- "default": [],
1361
- "items": {
1362
- "$ref": "#/$defs/TurnTokensInfo"
1363
- },
1364
- "title": "Per Turn",
1365
- "type": "array"
1366
- },
1367
- "thinking_tokens": {
1368
- "default": 0,
1369
- "title": "Thinking Tokens",
1370
- "type": "integer"
1371
1309
  }
1372
1310
  },
1373
1311
  "required": [
1374
1312
  "cache_creation_input_tokens",
1375
1313
  "cache_read_input_tokens",
1376
1314
  "cost_usd",
1377
- "initial_system_prompt_tokens",
1378
1315
  "input_tokens",
1379
1316
  "num_turns",
1380
- "output_tokens",
1381
- "per_model",
1382
- "per_turn",
1383
- "thinking_tokens"
1384
- ],
1385
- "title": "TokensInfo",
1386
- "type": "object"
1387
- },
1388
- "TurnTokensInfo": {
1389
- "properties": {
1390
- "cache_creation_input_tokens": {
1391
- "default": 0,
1392
- "title": "Cache Creation Input Tokens",
1393
- "type": "integer"
1394
- },
1395
- "cache_read_input_tokens": {
1396
- "default": 0,
1397
- "title": "Cache Read Input Tokens",
1398
- "type": "integer"
1399
- },
1400
- "input_tokens": {
1401
- "default": 0,
1402
- "title": "Input Tokens",
1403
- "type": "integer"
1404
- },
1405
- "output_tokens": {
1406
- "default": 0,
1407
- "title": "Output Tokens",
1408
- "type": "integer"
1409
- }
1410
- },
1411
- "required": [
1412
- "cache_creation_input_tokens",
1413
- "cache_read_input_tokens",
1414
- "input_tokens",
1415
1317
  "output_tokens"
1416
1318
  ],
1417
- "title": "TurnTokensInfo",
1319
+ "title": "TokensInfo",
1418
1320
  "type": "object"
1419
1321
  },
1420
1322
  "WebhookType": {
@@ -98,6 +98,46 @@
98
98
  "title": "MessageRequeuedPayload",
99
99
  "type": "object"
100
100
  },
101
+ "OutboxCollectedPayload": {
102
+ "description": "outbox_collected \u2014 the platform read a code_review session's\n/ellipsis/outbox/* at finalize (CODE_REVIEW_v3.md \u00a73). Carries both raw\nand parsed so the feed alone tells the whole delivery story; the\ncode_review_outbox table is the queryable projection of this record.",
103
+ "properties": {
104
+ "findings": {
105
+ "default": [],
106
+ "items": {
107
+ "additionalProperties": true,
108
+ "type": "object"
109
+ },
110
+ "title": "Findings",
111
+ "type": "array"
112
+ },
113
+ "parse_errors": {
114
+ "default": [],
115
+ "items": {
116
+ "additionalProperties": true,
117
+ "type": "object"
118
+ },
119
+ "title": "Parse Errors",
120
+ "type": "array"
121
+ },
122
+ "parser_version": {
123
+ "title": "Parser Version",
124
+ "type": "string"
125
+ },
126
+ "raw": {
127
+ "additionalProperties": {
128
+ "type": "string"
129
+ },
130
+ "default": {},
131
+ "title": "Raw",
132
+ "type": "object"
133
+ }
134
+ },
135
+ "required": [
136
+ "parser_version"
137
+ ],
138
+ "title": "OutboxCollectedPayload",
139
+ "type": "object"
140
+ },
101
141
  "SandboxOutputPayload": {
102
142
  "description": "sandbox_output \u2014 one chunk of provisioning/lifecycle-script output.\nMany fire per execution; `chunk` rides the idempotency key. These records\nARE the durable copy (archived into the session log's S3 segments), under\na high per-session cap + truncation marker.",
103
143
  "properties": {
@@ -450,6 +490,9 @@
450
490
  "message_requeued": {
451
491
  "$ref": "#/$defs/MessageRequeuedPayload"
452
492
  },
493
+ "outbox_collected": {
494
+ "$ref": "#/$defs/OutboxCollectedPayload"
495
+ },
453
496
  "sandbox_output": {
454
497
  "$ref": "#/$defs/SandboxOutputPayload"
455
498
  },
@@ -497,6 +540,7 @@
497
540
  "message_delivered",
498
541
  "message_received",
499
542
  "message_requeued",
543
+ "outbox_collected",
500
544
  "sandbox_output",
501
545
  "sandbox_phase",
502
546
  "sandbox_ready",