@ellipsis-dev/sdk 0.3.0 → 0.5.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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgentSessionWire, L as ListSessionRecordsResponse, a as ListSessionTurnsResponse, b as ListSessionExecutionsResponse, S as SessionMessageWire, C as CreateReviewRequest, R as Review, c as ListReviewsResponse } from './types-
|
|
2
|
-
export { d as AgentSessionExitStatus, e as AgentSessionPr, f as AgentSessionSource, g as AgentSessionStatus, h as AgentTurn, i as AgentTurnStatus, j as AttributionType, B as BudgetSource, D as DefaultResolution, k as DeltaFrame, l as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, m as GithubAccountType, H as Harness, n as HeartbeatFrame,
|
|
1
|
+
import { A as AgentSessionWire, L as ListSessionRecordsResponse, a as ListSessionTurnsResponse, b as ListSessionExecutionsResponse, S as SessionMessageWire, C as CreateReviewRequest, R as Review, c as ListReviewsResponse } from './types-BoKi5b8D.js';
|
|
2
|
+
export { d as AgentSessionExitStatus, e as AgentSessionPr, f as AgentSessionSource, g as AgentSessionStatus, h as AgentTurn, i as AgentTurnStatus, j as AttributionType, B as BudgetSource, D as DefaultResolution, k as DeltaFrame, l as DoneFrame, E as ErrorFrame, F as Finding, G as GithubAccountSnippet, m as GithubAccountType, H as Harness, n as HeartbeatFrame, P as ParentKind, o as PromptBlockedReason, p as RecordsAppendFrame, q as ResolvedReviewScope, r as ReviewCounters, s as ReviewScope, t as ReviewScopeKind, u as SendSessionMessageRequest, v as SessionExecutionWire, w as SessionFrame, x as SessionLiveness, y as SessionMessageStatus, z as SessionPrompting, I as SessionRecordWire, J as SessionState, K as SessionStreamFrame, M as SessionSurface, N as SnapshotFrame, O as StreamFrame, T as TokensInfo, Q as components, U as paths } from './types-BoKi5b8D.js';
|
|
3
3
|
|
|
4
4
|
type FetchJson = (path: string, init?: {
|
|
5
5
|
method?: string;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as SessionRecordWire, A as AgentSessionWire, S as SessionMessageWire,
|
|
1
|
+
import { I as SessionRecordWire, A as AgentSessionWire, S as SessionMessageWire, O as StreamFrame } from '../types-BoKi5b8D.js';
|
|
2
2
|
|
|
3
3
|
interface ChatToolNode {
|
|
4
4
|
key: string;
|
package/dist/stream/index.d.ts
CHANGED
|
@@ -517,7 +517,7 @@ interface components {
|
|
|
517
517
|
* `value`, when set, is a literal injected as-is — use it for non-secret
|
|
518
518
|
* config (LOG_LEVEL, an API base URL). When `value` is omitted the value is
|
|
519
519
|
* resolved at run time from the customer's sandbox-variables store (dashboard
|
|
520
|
-
* / `PUT /
|
|
520
|
+
* / `PUT /v1/variables`) by `name`, so a secret can be injected without
|
|
521
521
|
* ever putting it in the config file. Either way the variable only reaches
|
|
522
522
|
* agents that name it.
|
|
523
523
|
*/
|
|
@@ -584,7 +584,7 @@ interface components {
|
|
|
584
584
|
* a deliberate cancellation. It is None until the run reaches a terminal state.
|
|
585
585
|
* @enum {string}
|
|
586
586
|
*/
|
|
587
|
-
AgentSessionExitStatus: 'completed' | 'budget_hit' | 'payment_required' | 'tool_call_failed' | 'lifecycle_hook_failed' | 'missing_repo_access' | 'missing_token_permissions' | 'cancelled' | 'interrupted' | 'error' | 'stopped';
|
|
587
|
+
AgentSessionExitStatus: 'completed' | 'budget_hit' | 'payment_required' | 'tool_call_failed' | 'lifecycle_hook_failed' | 'missing_repo_access' | 'missing_token_permissions' | 'missing_sandbox_variables' | 'cancelled' | 'interrupted' | 'error' | 'stopped';
|
|
588
588
|
/**
|
|
589
589
|
* AgentSessionPr
|
|
590
590
|
* @description A pull request this session created, denormalized at capture time so
|
|
@@ -1050,34 +1050,6 @@ interface components {
|
|
|
1050
1050
|
/** Turns */
|
|
1051
1051
|
turns: components['schemas']['AgentTurn'][];
|
|
1052
1052
|
};
|
|
1053
|
-
/** ModelTokensInfo */
|
|
1054
|
-
ModelTokensInfo: {
|
|
1055
|
-
/**
|
|
1056
|
-
* Cache Creation Input Tokens
|
|
1057
|
-
* @default 0
|
|
1058
|
-
*/
|
|
1059
|
-
cache_creation_input_tokens: number;
|
|
1060
|
-
/**
|
|
1061
|
-
* Cache Read Input Tokens
|
|
1062
|
-
* @default 0
|
|
1063
|
-
*/
|
|
1064
|
-
cache_read_input_tokens: number;
|
|
1065
|
-
/**
|
|
1066
|
-
* Cost Usd
|
|
1067
|
-
* @default 0
|
|
1068
|
-
*/
|
|
1069
|
-
cost_usd: number;
|
|
1070
|
-
/**
|
|
1071
|
-
* Input Tokens
|
|
1072
|
-
* @default 0
|
|
1073
|
-
*/
|
|
1074
|
-
input_tokens: number;
|
|
1075
|
-
/**
|
|
1076
|
-
* Output Tokens
|
|
1077
|
-
* @default 0
|
|
1078
|
-
*/
|
|
1079
|
-
output_tokens: number;
|
|
1080
|
-
};
|
|
1081
1053
|
/**
|
|
1082
1054
|
* ParentKind
|
|
1083
1055
|
* @description How a session relates to its predecessor (parent_agent_session_id) —
|
|
@@ -1618,7 +1590,19 @@ interface components {
|
|
|
1618
1590
|
/** Status */
|
|
1619
1591
|
status: string | null;
|
|
1620
1592
|
};
|
|
1621
|
-
/**
|
|
1593
|
+
/**
|
|
1594
|
+
* TokensInfo
|
|
1595
|
+
* @description Token/cost usage, per record (one API call's counts, aggregate fields at
|
|
1596
|
+
* their zero defaults) or aggregated per execution/session
|
|
1597
|
+
* (compute_spend_from_records derives num_turns and cost_usd).
|
|
1598
|
+
*
|
|
1599
|
+
* Strict on purpose: this is our own persisted schema, so an unknown key is a
|
|
1600
|
+
* writer bug (the num_turns=0 bug shipped because a Claude Code usage dict
|
|
1601
|
+
* validated leniently against this model, silently zeroing every
|
|
1602
|
+
* non-overlapping field). Legacy keys were dropped from persisted blobs by
|
|
1603
|
+
* the 2026-07-26 tokens_info migration; per-model usage lives on
|
|
1604
|
+
* `execution.model_usage` (CC's modelUsage, verbatim).
|
|
1605
|
+
*/
|
|
1622
1606
|
TokensInfo: {
|
|
1623
1607
|
/**
|
|
1624
1608
|
* Cache Creation Input Tokens
|
|
@@ -1635,11 +1619,6 @@ interface components {
|
|
|
1635
1619
|
* @default 0
|
|
1636
1620
|
*/
|
|
1637
1621
|
cost_usd: number;
|
|
1638
|
-
/**
|
|
1639
|
-
* Initial System Prompt Tokens
|
|
1640
|
-
* @default 0
|
|
1641
|
-
*/
|
|
1642
|
-
initial_system_prompt_tokens: number;
|
|
1643
1622
|
/**
|
|
1644
1623
|
* Input Tokens
|
|
1645
1624
|
* @default 0
|
|
@@ -1655,46 +1634,6 @@ interface components {
|
|
|
1655
1634
|
* @default 0
|
|
1656
1635
|
*/
|
|
1657
1636
|
output_tokens: number;
|
|
1658
|
-
/**
|
|
1659
|
-
* Per Model
|
|
1660
|
-
* @default {}
|
|
1661
|
-
*/
|
|
1662
|
-
per_model: {
|
|
1663
|
-
[key: string]: components['schemas']['ModelTokensInfo'];
|
|
1664
|
-
};
|
|
1665
|
-
/**
|
|
1666
|
-
* Per Turn
|
|
1667
|
-
* @default []
|
|
1668
|
-
*/
|
|
1669
|
-
per_turn: components['schemas']['TurnTokensInfo'][];
|
|
1670
|
-
/**
|
|
1671
|
-
* Thinking Tokens
|
|
1672
|
-
* @default 0
|
|
1673
|
-
*/
|
|
1674
|
-
thinking_tokens: number;
|
|
1675
|
-
};
|
|
1676
|
-
/** TurnTokensInfo */
|
|
1677
|
-
TurnTokensInfo: {
|
|
1678
|
-
/**
|
|
1679
|
-
* Cache Creation Input Tokens
|
|
1680
|
-
* @default 0
|
|
1681
|
-
*/
|
|
1682
|
-
cache_creation_input_tokens: number;
|
|
1683
|
-
/**
|
|
1684
|
-
* Cache Read Input Tokens
|
|
1685
|
-
* @default 0
|
|
1686
|
-
*/
|
|
1687
|
-
cache_read_input_tokens: number;
|
|
1688
|
-
/**
|
|
1689
|
-
* Input Tokens
|
|
1690
|
-
* @default 0
|
|
1691
|
-
*/
|
|
1692
|
-
input_tokens: number;
|
|
1693
|
-
/**
|
|
1694
|
-
* Output Tokens
|
|
1695
|
-
* @default 0
|
|
1696
|
-
*/
|
|
1697
|
-
output_tokens: number;
|
|
1698
1637
|
};
|
|
1699
1638
|
/** ValidationError */
|
|
1700
1639
|
ValidationError: {
|
|
@@ -2025,7 +1964,7 @@ type DefaultResolution = 'repo_default' | 'account_default' | 'none';
|
|
|
2025
1964
|
* the UI and metrics can tell a budget cutoff apart from a crashed tool call or
|
|
2026
1965
|
* a deliberate cancellation. It is None until the run reaches a terminal state.
|
|
2027
1966
|
*/
|
|
2028
|
-
type AgentSessionExitStatus = 'completed' | 'budget_hit' | 'payment_required' | 'tool_call_failed' | 'lifecycle_hook_failed' | 'missing_repo_access' | 'missing_token_permissions' | 'cancelled' | 'interrupted' | 'error' | 'stopped';
|
|
1967
|
+
type AgentSessionExitStatus = 'completed' | 'budget_hit' | 'payment_required' | 'tool_call_failed' | 'lifecycle_hook_failed' | 'missing_repo_access' | 'missing_token_permissions' | 'missing_sandbox_variables' | 'cancelled' | 'interrupted' | 'error' | 'stopped';
|
|
2029
1968
|
type Harness = 'claude_code';
|
|
2030
1969
|
/**
|
|
2031
1970
|
* How a session relates to its predecessor (parent_agent_session_id) —
|
|
@@ -2240,32 +2179,25 @@ interface SessionRecordWire {
|
|
|
2240
2179
|
tokens_info: TokensInfo | null;
|
|
2241
2180
|
tools: string[] | null;
|
|
2242
2181
|
}
|
|
2182
|
+
/**
|
|
2183
|
+
* Token/cost usage, per record (one API call's counts, aggregate fields at
|
|
2184
|
+
* their zero defaults) or aggregated per execution/session
|
|
2185
|
+
* (compute_spend_from_records derives num_turns and cost_usd).
|
|
2186
|
+
*
|
|
2187
|
+
* Strict on purpose: this is our own persisted schema, so an unknown key is a
|
|
2188
|
+
* writer bug (the num_turns=0 bug shipped because a Claude Code usage dict
|
|
2189
|
+
* validated leniently against this model, silently zeroing every
|
|
2190
|
+
* non-overlapping field). Legacy keys were dropped from persisted blobs by
|
|
2191
|
+
* the 2026-07-26 tokens_info migration; per-model usage lives on
|
|
2192
|
+
* `execution.model_usage` (CC's modelUsage, verbatim).
|
|
2193
|
+
*/
|
|
2243
2194
|
interface TokensInfo {
|
|
2244
2195
|
cache_creation_input_tokens: number;
|
|
2245
2196
|
cache_read_input_tokens: number;
|
|
2246
2197
|
cost_usd: number;
|
|
2247
|
-
initial_system_prompt_tokens: number;
|
|
2248
2198
|
input_tokens: number;
|
|
2249
2199
|
num_turns: number;
|
|
2250
2200
|
output_tokens: number;
|
|
2251
|
-
per_model: {
|
|
2252
|
-
[k: string]: ModelTokensInfo;
|
|
2253
|
-
};
|
|
2254
|
-
per_turn: TurnTokensInfo[];
|
|
2255
|
-
thinking_tokens: number;
|
|
2256
|
-
}
|
|
2257
|
-
interface ModelTokensInfo {
|
|
2258
|
-
cache_creation_input_tokens: number;
|
|
2259
|
-
cache_read_input_tokens: number;
|
|
2260
|
-
cost_usd: number;
|
|
2261
|
-
input_tokens: number;
|
|
2262
|
-
output_tokens: number;
|
|
2263
|
-
}
|
|
2264
|
-
interface TurnTokensInfo {
|
|
2265
|
-
cache_creation_input_tokens: number;
|
|
2266
|
-
cache_read_input_tokens: number;
|
|
2267
|
-
input_tokens: number;
|
|
2268
|
-
output_tokens: number;
|
|
2269
2201
|
}
|
|
2270
2202
|
/**
|
|
2271
2203
|
* LWW snapshot of the enriched public session (§4.1) — the only way
|
|
@@ -2332,4 +2264,4 @@ type ResolvedReviewScope = components['schemas']['ResolvedReviewScope'];
|
|
|
2332
2264
|
type ReviewCounters = components['schemas']['ReviewCounters'];
|
|
2333
2265
|
type Finding = components['schemas']['Finding'];
|
|
2334
2266
|
|
|
2335
|
-
export type { AgentSessionWire as A, BudgetSource as B, CreateReviewRequest as C, DefaultResolution as D, ErrorFrame as E, Finding as F, GithubAccountSnippet as G, Harness as H, SessionRecordWire as I, SessionState as J, SessionStreamFrame as K, ListSessionRecordsResponse as L,
|
|
2267
|
+
export type { AgentSessionWire as A, BudgetSource as B, CreateReviewRequest as C, DefaultResolution as D, ErrorFrame as E, Finding as F, GithubAccountSnippet as G, Harness as H, SessionRecordWire as I, SessionState as J, SessionStreamFrame as K, ListSessionRecordsResponse as L, SessionSurface as M, SnapshotFrame as N, StreamFrame as O, ParentKind as P, components as Q, Review as R, SessionMessageWire as S, TokensInfo as T, paths as U, ListSessionTurnsResponse as a, ListSessionExecutionsResponse as b, ListReviewsResponse as c, AgentSessionExitStatus as d, AgentSessionPr as e, AgentSessionSource as f, AgentSessionStatus as g, AgentTurn as h, AgentTurnStatus as i, AttributionType as j, DeltaFrame as k, DoneFrame as l, GithubAccountType as m, HeartbeatFrame as n, PromptBlockedReason as o, RecordsAppendFrame as p, ResolvedReviewScope as q, ReviewCounters as r, ReviewScope as s, ReviewScopeKind as t, SendSessionMessageRequest as u, SessionExecutionWire as v, SessionFrame as w, SessionLiveness as x, SessionMessageStatus as y, SessionPrompting as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ellipsis-dev/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"lifecycle_hook_failed",
|
|
11
11
|
"missing_repo_access",
|
|
12
12
|
"missing_token_permissions",
|
|
13
|
+
"missing_sandbox_variables",
|
|
13
14
|
"cancelled",
|
|
14
15
|
"interrupted",
|
|
15
16
|
"error",
|
|
@@ -761,44 +762,6 @@
|
|
|
761
762
|
"title": "HeartbeatFrame",
|
|
762
763
|
"type": "object"
|
|
763
764
|
},
|
|
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
765
|
"ParentKind": {
|
|
803
766
|
"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
767
|
"enum": [
|
|
@@ -1312,6 +1275,8 @@
|
|
|
1312
1275
|
"type": "object"
|
|
1313
1276
|
},
|
|
1314
1277
|
"TokensInfo": {
|
|
1278
|
+
"additionalProperties": false,
|
|
1279
|
+
"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
1280
|
"properties": {
|
|
1316
1281
|
"cache_creation_input_tokens": {
|
|
1317
1282
|
"default": 0,
|
|
@@ -1328,11 +1293,6 @@
|
|
|
1328
1293
|
"title": "Cost Usd",
|
|
1329
1294
|
"type": "number"
|
|
1330
1295
|
},
|
|
1331
|
-
"initial_system_prompt_tokens": {
|
|
1332
|
-
"default": 0,
|
|
1333
|
-
"title": "Initial System Prompt Tokens",
|
|
1334
|
-
"type": "integer"
|
|
1335
|
-
},
|
|
1336
1296
|
"input_tokens": {
|
|
1337
1297
|
"default": 0,
|
|
1338
1298
|
"title": "Input Tokens",
|
|
@@ -1347,74 +1307,17 @@
|
|
|
1347
1307
|
"default": 0,
|
|
1348
1308
|
"title": "Output Tokens",
|
|
1349
1309
|
"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
1310
|
}
|
|
1372
1311
|
},
|
|
1373
1312
|
"required": [
|
|
1374
1313
|
"cache_creation_input_tokens",
|
|
1375
1314
|
"cache_read_input_tokens",
|
|
1376
1315
|
"cost_usd",
|
|
1377
|
-
"initial_system_prompt_tokens",
|
|
1378
1316
|
"input_tokens",
|
|
1379
1317
|
"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
1318
|
"output_tokens"
|
|
1416
1319
|
],
|
|
1417
|
-
"title": "
|
|
1320
|
+
"title": "TokensInfo",
|
|
1418
1321
|
"type": "object"
|
|
1419
1322
|
},
|
|
1420
1323
|
"WebhookType": {
|
package/schema/openapi.v1.json
CHANGED
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
},
|
|
788
788
|
"AgentConfigSandboxVariable": {
|
|
789
789
|
"additionalProperties": false,
|
|
790
|
-
"description": "One environment variable injected into the agent's sandbox.\n\n`value`, when set, is a literal injected as-is \u2014 use it for non-secret\nconfig (LOG_LEVEL, an API base URL). When `value` is omitted the value is\nresolved at run time from the customer's sandbox-variables store (dashboard\n/ `PUT /
|
|
790
|
+
"description": "One environment variable injected into the agent's sandbox.\n\n`value`, when set, is a literal injected as-is \u2014 use it for non-secret\nconfig (LOG_LEVEL, an API base URL). When `value` is omitted the value is\nresolved at run time from the customer's sandbox-variables store (dashboard\n/ `PUT /v1/variables`) by `name`, so a secret can be injected without\never putting it in the config file. Either way the variable only reaches\nagents that name it.",
|
|
791
791
|
"properties": {
|
|
792
792
|
"name": {
|
|
793
793
|
"title": "Name",
|
|
@@ -906,6 +906,7 @@
|
|
|
906
906
|
"lifecycle_hook_failed",
|
|
907
907
|
"missing_repo_access",
|
|
908
908
|
"missing_token_permissions",
|
|
909
|
+
"missing_sandbox_variables",
|
|
909
910
|
"cancelled",
|
|
910
911
|
"interrupted",
|
|
911
912
|
"error",
|
|
@@ -2083,37 +2084,6 @@
|
|
|
2083
2084
|
"title": "ListSessionTurnsResponse",
|
|
2084
2085
|
"type": "object"
|
|
2085
2086
|
},
|
|
2086
|
-
"ModelTokensInfo": {
|
|
2087
|
-
"properties": {
|
|
2088
|
-
"cache_creation_input_tokens": {
|
|
2089
|
-
"default": 0,
|
|
2090
|
-
"title": "Cache Creation Input Tokens",
|
|
2091
|
-
"type": "integer"
|
|
2092
|
-
},
|
|
2093
|
-
"cache_read_input_tokens": {
|
|
2094
|
-
"default": 0,
|
|
2095
|
-
"title": "Cache Read Input Tokens",
|
|
2096
|
-
"type": "integer"
|
|
2097
|
-
},
|
|
2098
|
-
"cost_usd": {
|
|
2099
|
-
"default": 0,
|
|
2100
|
-
"title": "Cost Usd",
|
|
2101
|
-
"type": "number"
|
|
2102
|
-
},
|
|
2103
|
-
"input_tokens": {
|
|
2104
|
-
"default": 0,
|
|
2105
|
-
"title": "Input Tokens",
|
|
2106
|
-
"type": "integer"
|
|
2107
|
-
},
|
|
2108
|
-
"output_tokens": {
|
|
2109
|
-
"default": 0,
|
|
2110
|
-
"title": "Output Tokens",
|
|
2111
|
-
"type": "integer"
|
|
2112
|
-
}
|
|
2113
|
-
},
|
|
2114
|
-
"title": "ModelTokensInfo",
|
|
2115
|
-
"type": "object"
|
|
2116
|
-
},
|
|
2117
2087
|
"ParentKind": {
|
|
2118
2088
|
"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).",
|
|
2119
2089
|
"enum": [
|
|
@@ -3392,6 +3362,8 @@
|
|
|
3392
3362
|
"type": "object"
|
|
3393
3363
|
},
|
|
3394
3364
|
"TokensInfo": {
|
|
3365
|
+
"additionalProperties": false,
|
|
3366
|
+
"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).",
|
|
3395
3367
|
"properties": {
|
|
3396
3368
|
"cache_creation_input_tokens": {
|
|
3397
3369
|
"default": 0,
|
|
@@ -3408,11 +3380,6 @@
|
|
|
3408
3380
|
"title": "Cost Usd",
|
|
3409
3381
|
"type": "number"
|
|
3410
3382
|
},
|
|
3411
|
-
"initial_system_prompt_tokens": {
|
|
3412
|
-
"default": 0,
|
|
3413
|
-
"title": "Initial System Prompt Tokens",
|
|
3414
|
-
"type": "integer"
|
|
3415
|
-
},
|
|
3416
3383
|
"input_tokens": {
|
|
3417
3384
|
"default": 0,
|
|
3418
3385
|
"title": "Input Tokens",
|
|
@@ -3427,58 +3394,11 @@
|
|
|
3427
3394
|
"default": 0,
|
|
3428
3395
|
"title": "Output Tokens",
|
|
3429
3396
|
"type": "integer"
|
|
3430
|
-
},
|
|
3431
|
-
"per_model": {
|
|
3432
|
-
"additionalProperties": {
|
|
3433
|
-
"$ref": "#/components/schemas/ModelTokensInfo"
|
|
3434
|
-
},
|
|
3435
|
-
"default": {},
|
|
3436
|
-
"title": "Per Model",
|
|
3437
|
-
"type": "object"
|
|
3438
|
-
},
|
|
3439
|
-
"per_turn": {
|
|
3440
|
-
"default": [],
|
|
3441
|
-
"items": {
|
|
3442
|
-
"$ref": "#/components/schemas/TurnTokensInfo"
|
|
3443
|
-
},
|
|
3444
|
-
"title": "Per Turn",
|
|
3445
|
-
"type": "array"
|
|
3446
|
-
},
|
|
3447
|
-
"thinking_tokens": {
|
|
3448
|
-
"default": 0,
|
|
3449
|
-
"title": "Thinking Tokens",
|
|
3450
|
-
"type": "integer"
|
|
3451
3397
|
}
|
|
3452
3398
|
},
|
|
3453
3399
|
"title": "TokensInfo",
|
|
3454
3400
|
"type": "object"
|
|
3455
3401
|
},
|
|
3456
|
-
"TurnTokensInfo": {
|
|
3457
|
-
"properties": {
|
|
3458
|
-
"cache_creation_input_tokens": {
|
|
3459
|
-
"default": 0,
|
|
3460
|
-
"title": "Cache Creation Input Tokens",
|
|
3461
|
-
"type": "integer"
|
|
3462
|
-
},
|
|
3463
|
-
"cache_read_input_tokens": {
|
|
3464
|
-
"default": 0,
|
|
3465
|
-
"title": "Cache Read Input Tokens",
|
|
3466
|
-
"type": "integer"
|
|
3467
|
-
},
|
|
3468
|
-
"input_tokens": {
|
|
3469
|
-
"default": 0,
|
|
3470
|
-
"title": "Input Tokens",
|
|
3471
|
-
"type": "integer"
|
|
3472
|
-
},
|
|
3473
|
-
"output_tokens": {
|
|
3474
|
-
"default": 0,
|
|
3475
|
-
"title": "Output Tokens",
|
|
3476
|
-
"type": "integer"
|
|
3477
|
-
}
|
|
3478
|
-
},
|
|
3479
|
-
"title": "TurnTokensInfo",
|
|
3480
|
-
"type": "object"
|
|
3481
|
-
},
|
|
3482
3402
|
"ValidationError": {
|
|
3483
3403
|
"properties": {
|
|
3484
3404
|
"ctx": {
|