@parcha/agentrun-client 0.1.0-beta.44 → 0.1.0-beta.45

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.
@@ -34,8 +34,7 @@ export type Agent = {
34
34
  issues: Array<string>;
35
35
  capabilities: {
36
36
  launch: boolean;
37
- notes: boolean;
38
- skills: boolean;
37
+ learning: boolean;
39
38
  workflows: false;
40
39
  approval: "native" | "unavailable";
41
40
  usage: boolean;
@@ -138,8 +137,7 @@ export type DefinitionInput = {
138
137
  issues: Array<string>;
139
138
  capabilities: {
140
139
  launch: boolean;
141
- notes: boolean;
142
- skills: boolean;
140
+ learning: boolean;
143
141
  workflows: false;
144
142
  approval: "native" | "unavailable";
145
143
  usage: boolean;
@@ -254,7 +252,7 @@ export type DefinitionInput = {
254
252
  [key: string]: unknown;
255
253
  };
256
254
  approvals?: "ask" | "never";
257
- learning?: true | false | "notes" | {
255
+ learning?: boolean | {
258
256
  compile_after?: number;
259
257
  agree_min?: number;
260
258
  alone_min?: number;
@@ -378,36 +376,14 @@ export type RunSummary = {
378
376
  effort?: Effort;
379
377
  error?: RunError | null;
380
378
  learning?: {
381
- state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
382
- reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
379
+ state: "seeded" | "reflecting" | "merged" | "dropped";
380
+ reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | null;
383
381
  detail: string | null;
384
- given?: Array<{
385
- file: string;
386
- name: string;
387
- }>;
388
- read?: Array<{
389
- file: string;
390
- name: string;
391
- }>;
392
- learned?: Array<{
393
- file: string;
394
- name: string;
395
- supersedes: Array<string>;
396
- }>;
397
- skills?: Array<{
398
- file: string;
399
- name: string;
400
- pending?: true;
401
- }>;
402
382
  workflows?: Array<{
403
383
  file: string;
404
384
  name: string;
405
385
  pending?: true;
406
386
  }>;
407
- pending?: Array<{
408
- file: string;
409
- name: string;
410
- }>;
411
387
  } | null;
412
388
  review?: {
413
389
  kind: string | null;
@@ -481,6 +457,7 @@ export type Cost = {
481
457
  plan?: {
482
458
  requests: number;
483
459
  tokens: number;
460
+ on: "chatgpt" | "claude_code";
484
461
  };
485
462
  };
486
463
  export type Effort = "low" | "medium" | "high";
@@ -668,37 +645,15 @@ export type Run = {
668
645
  };
669
646
  };
670
647
  learning?: {
671
- state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
672
- reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
648
+ state: "seeded" | "reflecting" | "merged" | "dropped";
649
+ reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | null;
673
650
  detail: string | null;
674
651
  at: string;
675
- given?: Array<{
676
- file: string;
677
- name: string;
678
- }>;
679
- read?: Array<{
680
- file: string;
681
- name: string;
682
- }>;
683
- learned?: Array<{
684
- file: string;
685
- name: string;
686
- supersedes: Array<string>;
687
- }>;
688
- skills?: Array<{
689
- file: string;
690
- name: string;
691
- pending?: true;
692
- }>;
693
652
  workflows?: Array<{
694
653
  file: string;
695
654
  name: string;
696
655
  pending?: true;
697
656
  }>;
698
- pending?: Array<{
699
- file: string;
700
- name: string;
701
- }>;
702
657
  } | null;
703
658
  review?: {
704
659
  kind: string | null;
@@ -894,8 +849,8 @@ export type TimelineRow = {
894
849
  tool_input?: Record<string, unknown>;
895
850
  tool_result_text?: string | null;
896
851
  learning?: {
897
- state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
898
- reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
852
+ state: "seeded" | "reflecting" | "merged" | "dropped";
853
+ reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | null;
899
854
  detail: string | null;
900
855
  };
901
856
  };
@@ -932,7 +887,6 @@ export type Capabilities = {
932
887
  regions: Array<Region>;
933
888
  limits: Limits;
934
889
  learning: {
935
- grade_model: string | null;
936
890
  pending: true;
937
891
  approve: boolean;
938
892
  approve_needs?: "password";
@@ -1011,7 +965,7 @@ export type Capabilities = {
1011
965
  default_permission: "allow" | "ask" | "deny";
1012
966
  permissions: Array<"allow" | "ask" | "deny">;
1013
967
  ask_needs?: "password";
1014
- key?: "parallel" | "monid" | "browserbase" | "kernel" | "typesafe" | "anthropic" | "openai" | "openrouter";
968
+ key?: "parallel" | "monid" | "browserbase" | "kernel" | "typesafe" | "anthropic" | "openai" | "particle" | "openrouter";
1015
969
  }>;
1016
970
  workflows?: {
1017
971
  nodes: Array<string>;
@@ -1042,6 +996,7 @@ export type Capabilities = {
1042
996
  condition: string;
1043
997
  limit: string;
1044
998
  };
999
+ run_isolation?: "uid" | "process";
1045
1000
  };
1046
1001
  export type Features = {
1047
1002
  agents: {
@@ -1226,8 +1181,7 @@ export type ConnectNativeResponse = {
1226
1181
  issues: Array<string>;
1227
1182
  capabilities: {
1228
1183
  launch: boolean;
1229
- notes: boolean;
1230
- skills: boolean;
1184
+ learning: boolean;
1231
1185
  workflows: false;
1232
1186
  approval: "native" | "unavailable";
1233
1187
  usage: boolean;
@@ -1246,6 +1200,7 @@ export interface CreateAgentParams {
1246
1200
  "Idempotency-Key"?: string;
1247
1201
  }
1248
1202
  export type CreateAgentResponse = Agent;
1203
+ /** Delete an agent another system owns (DELETE /agents/{agent_id}). */
1249
1204
  /** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
1250
1205
  export type DeleteAgentArchilResponse = {
1251
1206
  on: boolean;
@@ -1279,8 +1234,7 @@ export type DisconnectNativeResponse = {
1279
1234
  issues: Array<string>;
1280
1235
  capabilities: {
1281
1236
  launch: boolean;
1282
- notes: boolean;
1283
- skills: boolean;
1237
+ learning: boolean;
1284
1238
  workflows: false;
1285
1239
  approval: "native" | "unavailable";
1286
1240
  usage: boolean;
@@ -1321,8 +1275,7 @@ export type DiscoverNativeResponse = {
1321
1275
  issues: Array<string>;
1322
1276
  capabilities: {
1323
1277
  launch: boolean;
1324
- notes: boolean;
1325
- skills: boolean;
1278
+ learning: boolean;
1326
1279
  workflows: false;
1327
1280
  approval: "native" | "unavailable";
1328
1281
  usage: boolean;
@@ -1369,7 +1322,6 @@ export type GetLearningLoopResponse = {
1369
1322
  round: number;
1370
1323
  at: string;
1371
1324
  workflow: string | null;
1372
- from_notes: Array<string>;
1373
1325
  attempts: Array<{
1374
1326
  ok: boolean;
1375
1327
  errors: Array<string>;
@@ -1403,8 +1355,7 @@ export type GetNativeResponse = {
1403
1355
  issues: Array<string>;
1404
1356
  capabilities: {
1405
1357
  launch: boolean;
1406
- notes: boolean;
1407
- skills: boolean;
1358
+ learning: boolean;
1408
1359
  workflows: false;
1409
1360
  approval: "native" | "unavailable";
1410
1361
  usage: boolean;
@@ -1609,8 +1560,7 @@ export type VerifyNativeResponse = {
1609
1560
  issues: Array<string>;
1610
1561
  capabilities: {
1611
1562
  launch: boolean;
1612
- notes: boolean;
1613
- skills: boolean;
1563
+ learning: boolean;
1614
1564
  workflows: false;
1615
1565
  approval: "native" | "unavailable";
1616
1566
  usage: boolean;
@@ -1684,8 +1634,7 @@ export type ImportRemoteTargetBody = {
1684
1634
  issues: Array<string>;
1685
1635
  capabilities: {
1686
1636
  launch: boolean;
1687
- notes: boolean;
1688
- skills: boolean;
1637
+ learning: boolean;
1689
1638
  workflows: false;
1690
1639
  approval: "native" | "unavailable";
1691
1640
  usage: boolean;
@@ -1722,8 +1671,7 @@ export type ImportRemoteTargetResponse = {
1722
1671
  issues: Array<string>;
1723
1672
  capabilities: {
1724
1673
  launch: boolean;
1725
- notes: boolean;
1726
- skills: boolean;
1674
+ learning: boolean;
1727
1675
  workflows: false;
1728
1676
  approval: "native" | "unavailable";
1729
1677
  usage: boolean;
@@ -1873,234 +1821,11 @@ export type WriteHomeFileResponse = {
1873
1821
  content_type?: string | null;
1874
1822
  unreadable?: true;
1875
1823
  };
1876
- /** A learning batch's progress: rows done, right or wrong, lessons, workflow revisions, cost, the path each run took (GET /agents/{agent_id}/learning/batches/{batch_id}). */
1877
- export type GetLearningBatchResponse = {
1878
- id: string;
1879
- agent_id: string;
1880
- created_at: string;
1881
- ended_at: string | null;
1882
- status: "running" | "completed" | "cancelled" | "stopped";
1883
- stopped: "cap" | "cost_unknown" | "learning_off" | null;
1884
- inputs: Array<string>;
1885
- answer: string;
1886
- answer_field: string | null;
1887
- effort: string | null;
1888
- max_cost_usd: number;
1889
- total: number;
1890
- finished: number;
1891
- right: number;
1892
- wrong: number;
1893
- failed: number;
1894
- spent_usd: number;
1895
- unknown_cost_rows: number;
1896
- paths: {
1897
- agent: number;
1898
- handed_back: number;
1899
- workflow: number;
1900
- };
1901
- lessons: {
1902
- notes: Array<string>;
1903
- skills: Array<string>;
1904
- workflows: Array<string>;
1905
- };
1906
- revisions: Array<{
1907
- row: number;
1908
- commit: string | null;
1909
- workflows: Array<string>;
1910
- }>;
1911
- cost_usd: number | null;
1912
- remaining_usd: number | null;
1913
- current: number | null;
1914
- rows: Array<{
1915
- n: number;
1916
- state: "pending" | "running" | "done" | "failed";
1917
- reference: string;
1918
- run_id?: string;
1919
- answer?: string | null;
1920
- right?: boolean;
1921
- reviewed?: boolean;
1922
- path?: "agent" | "handed_back" | "workflow";
1923
- cost_usd?: number | null;
1924
- learning_usd?: number | null;
1925
- total_usd?: number | null;
1926
- learned?: {
1927
- notes: Array<string>;
1928
- skills: Array<string>;
1929
- workflows: Array<string>;
1930
- };
1931
- merged?: string | null;
1932
- error?: string;
1933
- }>;
1934
- error?: string;
1935
- };
1936
- /** Cancel a running learning batch (POST /agents/{agent_id}/learning/batches/{batch_id}/cancel). */
1937
- export type CancelLearningBatchResponse = {
1938
- id: string;
1939
- agent_id: string;
1940
- created_at: string;
1941
- ended_at: string | null;
1942
- status: "running" | "completed" | "cancelled" | "stopped";
1943
- stopped: "cap" | "cost_unknown" | "learning_off" | null;
1944
- inputs: Array<string>;
1945
- answer: string;
1946
- answer_field: string | null;
1947
- effort: string | null;
1948
- max_cost_usd: number;
1949
- total: number;
1950
- finished: number;
1951
- right: number;
1952
- wrong: number;
1953
- failed: number;
1954
- spent_usd: number;
1955
- unknown_cost_rows: number;
1956
- paths: {
1957
- agent: number;
1958
- handed_back: number;
1959
- workflow: number;
1960
- };
1961
- lessons: {
1962
- notes: Array<string>;
1963
- skills: Array<string>;
1964
- workflows: Array<string>;
1965
- };
1966
- revisions: Array<{
1967
- row: number;
1968
- commit: string | null;
1969
- workflows: Array<string>;
1970
- }>;
1971
- cost_usd: number | null;
1972
- remaining_usd: number | null;
1973
- current: number | null;
1974
- rows: Array<{
1975
- n: number;
1976
- state: "pending" | "running" | "done" | "failed";
1977
- reference: string;
1978
- run_id?: string;
1979
- answer?: string | null;
1980
- right?: boolean;
1981
- reviewed?: boolean;
1982
- path?: "agent" | "handed_back" | "workflow";
1983
- cost_usd?: number | null;
1984
- learning_usd?: number | null;
1985
- total_usd?: number | null;
1986
- learned?: {
1987
- notes: Array<string>;
1988
- skills: Array<string>;
1989
- workflows: Array<string>;
1990
- };
1991
- merged?: string | null;
1992
- error?: string;
1993
- }>;
1994
- error?: string;
1995
- };
1996
- /** Learn from rows: run the agent on each in order, with learning on, and tell it the reference answer after each (POST /agents/{agent_id}/learning/batches). */
1997
- export type CreateLearningBatchBody = {
1998
- inputs: Array<string>;
1999
- answer: string;
2000
- rows: Array<Record<string, string>>;
2001
- max_cost_usd: number;
2002
- answer_field?: string;
2003
- effort?: string;
2004
- };
2005
- export type CreateLearningBatchResponse = {
2006
- id: string;
2007
- agent_id: string;
2008
- created_at: string;
2009
- ended_at: string | null;
2010
- status: "running" | "completed" | "cancelled" | "stopped";
2011
- stopped: "cap" | "cost_unknown" | "learning_off" | null;
2012
- inputs: Array<string>;
2013
- answer: string;
2014
- answer_field: string | null;
2015
- effort: string | null;
2016
- max_cost_usd: number;
2017
- total: number;
2018
- finished: number;
2019
- right: number;
2020
- wrong: number;
2021
- failed: number;
2022
- spent_usd: number;
2023
- unknown_cost_rows: number;
2024
- paths: {
2025
- agent: number;
2026
- handed_back: number;
2027
- workflow: number;
2028
- };
2029
- lessons: {
2030
- notes: Array<string>;
2031
- skills: Array<string>;
2032
- workflows: Array<string>;
2033
- };
2034
- revisions: Array<{
2035
- row: number;
2036
- commit: string | null;
2037
- workflows: Array<string>;
2038
- }>;
2039
- cost_usd: number | null;
2040
- remaining_usd: number | null;
2041
- current: number | null;
2042
- rows: Array<{
2043
- n: number;
2044
- state: "pending" | "running" | "done" | "failed";
2045
- reference: string;
2046
- run_id?: string;
2047
- answer?: string | null;
2048
- right?: boolean;
2049
- reviewed?: boolean;
2050
- path?: "agent" | "handed_back" | "workflow";
2051
- cost_usd?: number | null;
2052
- learning_usd?: number | null;
2053
- total_usd?: number | null;
2054
- learned?: {
2055
- notes: Array<string>;
2056
- skills: Array<string>;
2057
- workflows: Array<string>;
2058
- };
2059
- merged?: string | null;
2060
- error?: string;
2061
- }>;
2062
- error?: string;
2063
- };
2064
- /** The agent's learning batches, latest first (GET /agents/{agent_id}/learning/batches). */
2065
- export type ListLearningBatchesResponse = {
2066
- batches: Array<{
2067
- id: string;
2068
- agent_id: string;
2069
- created_at: string;
2070
- ended_at: string | null;
2071
- status: "running" | "completed" | "cancelled" | "stopped";
2072
- stopped: "cap" | "cost_unknown" | "learning_off" | null;
2073
- inputs: Array<string>;
2074
- answer: string;
2075
- answer_field: string | null;
2076
- effort: string | null;
2077
- max_cost_usd: number;
2078
- total: number;
2079
- finished: number;
2080
- right: number;
2081
- wrong: number;
2082
- failed: number;
2083
- spent_usd: number;
2084
- unknown_cost_rows: number;
2085
- paths: {
2086
- agent: number;
2087
- handed_back: number;
2088
- workflow: number;
2089
- };
2090
- lessons: {
2091
- notes: Array<string>;
2092
- skills: Array<string>;
2093
- workflows: Array<string>;
2094
- };
2095
- revisions: Array<{
2096
- row: number;
2097
- commit: string | null;
2098
- workflows: Array<string>;
2099
- }>;
2100
- cost_usd: number | null;
2101
- remaining_usd: number | null;
2102
- error?: string;
2103
- }>;
1824
+ /** The agent's corrections.md on main, with its ETag (GET /agents/{agent_id}/learning/corrections). */
1825
+ export type GetLearningCorrectionsResponse = {
1826
+ text: string;
1827
+ etag: string;
1828
+ cap_bytes: 2048;
2104
1829
  };
2105
1830
  /** The agent's cost per run, run after run: its own cost, what learning added and the path it took (GET /agents/{agent_id}/learning/cost). */
2106
1831
  export interface GetLearningCostParams {
@@ -2110,12 +1835,14 @@ export interface GetLearningCostParams {
2110
1835
  export type GetLearningCostResponse = {
2111
1836
  agent: string;
2112
1837
  runs: Array<{
2113
- n: number;
1838
+ n: number | null;
2114
1839
  run_id: string;
2115
1840
  started_at: string;
2116
1841
  path: "agent" | "handed_back" | "workflow" | "replay" | "audit";
2117
1842
  workflow: string | null;
2118
- learned_revision: string | null;
1843
+ digest: string | null;
1844
+ took_over: boolean;
1845
+ audited: boolean;
2119
1846
  cost_usd: number | null;
2120
1847
  cost_upper_bound: boolean;
2121
1848
  learning_usd: number | null;
@@ -2181,6 +1908,7 @@ export type GetLearningCostResponse = {
2181
1908
  run_id: string;
2182
1909
  at: string;
2183
1910
  } | null;
1911
+ learning_usd: number;
2184
1912
  points: Array<{
2185
1913
  n: number;
2186
1914
  run_id: string;
@@ -2216,97 +1944,17 @@ export type GetLearningCostResponse = {
2216
1944
  }>;
2217
1945
  };
2218
1946
  };
2219
- /** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
2220
- export type ListLearningEvalsResponse = {
2221
- agent: string;
2222
- latest: {
2223
- id: string;
2224
- name: string;
2225
- n: number;
2226
- correct: number;
2227
- label_source: string | null;
2228
- cost_per_task_usd: number | null;
2229
- baseline_cost_per_task_usd: number | null;
2230
- learned_revision: string | null;
2231
- accuracy: number;
2232
- ci: Array<number>;
2233
- recorded_at: string;
2234
- } | null;
2235
- evals: Array<{
2236
- id: string;
2237
- name: string;
2238
- n: number;
2239
- correct: number;
2240
- label_source: string | null;
2241
- cost_per_task_usd: number | null;
2242
- baseline_cost_per_task_usd: number | null;
2243
- learned_revision: string | null;
2244
- accuracy: number;
2245
- ci: Array<number>;
2246
- recorded_at: string;
2247
- }>;
2248
- };
2249
- /** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
1947
+ /** What the agent has learned: its corrections, workflow drafts, log of changes and counts (GET /agents/{agent_id}/learning). */
2250
1948
  export type GetAgentLearningResponse = {
2251
1949
  agent: string;
2252
1950
  main: string | null;
2253
- index: string;
2254
- notes: {
2255
- items: Array<{
2256
- file: string;
2257
- name: string;
2258
- description: string;
2259
- type: "user" | "feedback" | "project" | "reference";
2260
- status: "active" | "superseded" | "retired" | "pending";
2261
- origin: "you" | "run";
2262
- superseded_by: string | null;
2263
- text: string;
2264
- etag: string;
2265
- runs: {
2266
- given: number;
2267
- read: number;
2268
- };
2269
- retired?: {
2270
- at: string;
2271
- by: "person" | "run" | "host";
2272
- from?: "active" | "pending";
2273
- why?: "unreadable";
2274
- };
2275
- last_change?: {
2276
- kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
2277
- by: "person" | "run";
2278
- at: string;
2279
- };
2280
- }>;
2281
- total: number;
2282
- next_cursor: string | null;
2283
- };
2284
- skills: Array<{
2285
- name: string;
2286
- file: string;
2287
- description: string;
2288
- status: "active" | "pending" | "retired";
2289
- run: string | null;
2290
- bytes: number;
2291
- etag: string;
2292
- retired?: {
2293
- at: string;
2294
- by: "person" | "run" | "host";
2295
- from?: "active" | "pending";
2296
- why?: "unreadable";
2297
- };
2298
- last_change?: {
2299
- kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
2300
- by: "person" | "run";
2301
- at: string;
2302
- };
2303
- }>;
1951
+ corrections: string;
2304
1952
  workflows: Array<{
2305
1953
  name: string;
2306
1954
  file: string;
2307
1955
  readme: string;
2308
1956
  description: string;
2309
- status: "active" | "pending" | "retired";
1957
+ status: "serving" | "checking" | "held" | "stopped" | "pending" | "retired";
2310
1958
  run: string | null;
2311
1959
  bytes: number;
2312
1960
  etag: string;
@@ -2317,7 +1965,7 @@ export type GetAgentLearningResponse = {
2317
1965
  why?: "unreadable";
2318
1966
  };
2319
1967
  last_change?: {
2320
- kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
1968
+ kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned";
2321
1969
  by: "person" | "run";
2322
1970
  at: string;
2323
1971
  };
@@ -2347,16 +1995,10 @@ export type GetAgentLearningResponse = {
2347
1995
  before: {
2348
1996
  runs: number;
2349
1997
  median_duration_s: number;
2350
- median_cost_usd: number | null;
2351
- cost_runs: number;
2352
- median_learning_usd: number | null;
2353
1998
  };
2354
1999
  after: {
2355
2000
  runs: number;
2356
2001
  median_duration_s: number;
2357
- median_cost_usd: number | null;
2358
- cost_runs: number;
2359
- median_learning_usd: number | null;
2360
2002
  };
2361
2003
  } | null;
2362
2004
  };
@@ -2381,70 +2023,8 @@ export type ListLearningLogResponse = {
2381
2023
  total: number;
2382
2024
  next_cursor: string | null;
2383
2025
  };
2384
- /** A page of the agent's notes (GET /agents/{agent_id}/learning/notes). */
2385
- export interface ListLearningNotesParams {
2386
- cursor?: string;
2387
- limit?: number;
2388
- status?: "active" | "superseded" | "retired" | "pending";
2389
- }
2390
- export type ListLearningNotesResponse = {
2391
- items: Array<{
2392
- file: string;
2393
- name: string;
2394
- description: string;
2395
- type: "user" | "feedback" | "project" | "reference";
2396
- status: "active" | "superseded" | "retired" | "pending";
2397
- origin: "you" | "run";
2398
- superseded_by: string | null;
2399
- text: string;
2400
- etag: string;
2401
- runs: {
2402
- given: number;
2403
- read: number;
2404
- };
2405
- retired?: {
2406
- at: string;
2407
- by: "person" | "run" | "host";
2408
- from?: "active" | "pending";
2409
- why?: "unreadable";
2410
- };
2411
- last_change?: {
2412
- kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
2413
- by: "person" | "run";
2414
- at: string;
2415
- };
2416
- }>;
2417
- total: number;
2418
- next_cursor: string | null;
2419
- };
2420
- /** One note (or MEMORY.md, a skill's SKILL.md or a draft's file) on main, as text, with its ETag (GET /agents/{agent_id}/learning/files/{file}). */
2026
+ /** One file of a learned workflow on main (its workflow.json or README.md), as text, with its ETag (GET /agents/{agent_id}/learning/files/{file}). */
2421
2027
  export type ReadLearningFileResponse = unknown;
2422
- /** Record a held-out test of the agent: its counts and the cost a task, with learning and by hand (POST /agents/{agent_id}/learning/evals). */
2423
- export type RecordLearningEvalBody = {
2424
- name: string;
2425
- n: number;
2426
- correct: number;
2427
- label_source?: string | null;
2428
- cost_per_task_usd?: number | null;
2429
- baseline_cost_per_task_usd?: number | null;
2430
- learned_revision?: string | null;
2431
- };
2432
- export interface RecordLearningEvalParams {
2433
- "Idempotency-Key"?: string;
2434
- }
2435
- export type RecordLearningEvalResponse = {
2436
- id: string;
2437
- name: string;
2438
- n: number;
2439
- correct: number;
2440
- label_source: string | null;
2441
- cost_per_task_usd: number | null;
2442
- baseline_cost_per_task_usd: number | null;
2443
- learned_revision: string | null;
2444
- accuracy: number;
2445
- ci: Array<number>;
2446
- recorded_at: string;
2447
- };
2448
2028
  /** Read a replay's result: running, done or failed, its counts and its score (start one from the console's Learning tab) (GET /agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}). */
2449
2029
  export type GetLearnedWorkflowReplayResponse = {
2450
2030
  replay: string;
@@ -2470,7 +2050,7 @@ export type GetLearnedWorkflowReplayResponse = {
2470
2050
  decided?: "promote" | "hold";
2471
2051
  reason?: string;
2472
2052
  };
2473
- /** Retire a note, a skill or a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
2053
+ /** Retire a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
2474
2054
  export interface RetireLearningFileParams {
2475
2055
  "If-Match"?: string;
2476
2056
  }
@@ -2496,14 +2076,18 @@ export type ListLearnedWorkflowRevisionsResponse = {
2496
2076
  total: number;
2497
2077
  truncated: boolean;
2498
2078
  };
2499
- /** Edit a note (If-Match) or create one (If-None-Match: *) (PUT /agents/{agent_id}/learning/files/{file}). */
2500
- export type WriteLearningFileBody = {
2079
+ /** Replace the agent's corrections.md (If-Match) (PUT /agents/{agent_id}/learning/corrections). */
2080
+ export type PutLearningCorrectionsBody = {
2501
2081
  text: string;
2502
2082
  };
2503
- export interface WriteLearningFileParams {
2504
- "If-Match"?: string;
2505
- "If-None-Match"?: string;
2083
+ export interface PutLearningCorrectionsParams {
2084
+ "If-Match": string;
2506
2085
  }
2086
+ export type PutLearningCorrectionsResponse = {
2087
+ text: string;
2088
+ etag: string;
2089
+ cap_bytes: 2048;
2090
+ };
2507
2091
  /** Start Connect GitHub: the app-manifest form the console posts to GitHub (POST /integrations/github/connect). */
2508
2092
  export type ConnectGitHubBody = {
2509
2093
  org?: string;
@@ -2518,6 +2102,7 @@ export type CreatePairingResponse = {
2518
2102
  id: string;
2519
2103
  code: string;
2520
2104
  expires_at: string;
2105
+ runs_refused: string | null;
2521
2106
  };
2522
2107
  /** Forget this server's calendar (DELETE /settings/calendar). */
2523
2108
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
@@ -2574,6 +2159,20 @@ export type GetChatGPTSignInResponse = {
2574
2159
  expires_at?: string;
2575
2160
  models?: Array<string>;
2576
2161
  };
2162
+ /** Claude Code's login on this machine: on or off, and what its CLI says of it (GET /settings/claude-login). */
2163
+ export type GetClaudeLoginResponse = {
2164
+ state: "off" | "other_machine" | "signed_in" | "signed_out" | "no_cli" | "unknown";
2165
+ place: "agentrun" | "machine";
2166
+ command: string;
2167
+ can_start: boolean;
2168
+ refused?: string;
2169
+ account?: {
2170
+ method?: string;
2171
+ email?: string;
2172
+ organization?: string;
2173
+ plan?: string;
2174
+ };
2175
+ };
2577
2176
  /** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
2578
2177
  export type GetEmailAccountResponse = {
2579
2178
  configured: boolean;
@@ -2693,6 +2292,7 @@ export type ListComputersResponse = {
2693
2292
  kind: string;
2694
2293
  serves: Array<"none" | "sandbox" | "desktop" | "phone" | "browser">;
2695
2294
  unserved: string | null;
2295
+ runs_refused: string | null;
2696
2296
  os: string;
2697
2297
  os_version: string | null;
2698
2298
  device: {
@@ -2734,6 +2334,7 @@ export type ListComputersResponse = {
2734
2334
  }>;
2735
2335
  required: Array<string>;
2736
2336
  ready: boolean;
2337
+ runs_refused: string | null;
2737
2338
  shell: "computer" | "local" | "none";
2738
2339
  host_tools: Array<string>;
2739
2340
  why?: string;
@@ -2918,6 +2519,7 @@ export type SaveComputerKeysResponse = {
2918
2519
  }>;
2919
2520
  required: Array<string>;
2920
2521
  ready: boolean;
2522
+ runs_refused: string | null;
2921
2523
  shell: "computer" | "local" | "none";
2922
2524
  host_tools: Array<string>;
2923
2525
  why?: string;
@@ -2985,6 +2587,20 @@ export type StartChatGPTSignInResponse = {
2985
2587
  authorize_url: string;
2986
2588
  expires_at: string;
2987
2589
  };
2590
+ /** Start the Claude Code CLI's own sign-in on this machine (POST /settings/claude-login/login). */
2591
+ export type StartClaudeLoginResponse = {
2592
+ state: "off" | "other_machine" | "signed_in" | "signed_out" | "no_cli" | "unknown";
2593
+ place: "agentrun" | "machine";
2594
+ command: string;
2595
+ can_start: boolean;
2596
+ refused?: string;
2597
+ account?: {
2598
+ method?: string;
2599
+ email?: string;
2600
+ organization?: string;
2601
+ plan?: string;
2602
+ };
2603
+ };
2988
2604
  /** Start signing in to an MCP server with OAuth: the page the owner opens (POST /settings/mcp-servers/{name}/oauth/start). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
2989
2605
  export type StartMcpOAuthBody = {
2990
2606
  url: string;
@@ -3046,6 +2662,38 @@ export type TestWorkspaceArchilResponse = {
3046
2662
  ok: false;
3047
2663
  why: string;
3048
2664
  };
2665
+ /** Turn off Claude Code's login on this machine (DELETE /settings/claude-login). */
2666
+ export type TurnOffClaudeLoginResponse = {
2667
+ state: "off" | "other_machine" | "signed_in" | "signed_out" | "no_cli" | "unknown";
2668
+ place: "agentrun" | "machine";
2669
+ command: string;
2670
+ can_start: boolean;
2671
+ refused?: string;
2672
+ account?: {
2673
+ method?: string;
2674
+ email?: string;
2675
+ organization?: string;
2676
+ plan?: string;
2677
+ };
2678
+ };
2679
+ /** Turn on Claude Code's login on this machine for claude-agent's runs (PUT /settings/claude-login). */
2680
+ export type TurnOnClaudeLoginBody = {
2681
+ place?: "agentrun" | "machine";
2682
+ only_me: true;
2683
+ };
2684
+ export type TurnOnClaudeLoginResponse = {
2685
+ state: "off" | "other_machine" | "signed_in" | "signed_out" | "no_cli" | "unknown";
2686
+ place: "agentrun" | "machine";
2687
+ command: string;
2688
+ can_start: boolean;
2689
+ refused?: string;
2690
+ account?: {
2691
+ method?: string;
2692
+ email?: string;
2693
+ organization?: string;
2694
+ plan?: string;
2695
+ };
2696
+ };
3049
2697
  /** Forget a saved MCP server and its credential (DELETE /settings/mcp-servers/{name}). */
3050
2698
  export type DeleteMcpServerResponse = {
3051
2699
  deleted: true;
@@ -3450,7 +3098,7 @@ export type GradeRunResponse = {
3450
3098
  path: "agent" | "handed_back" | "workflow" | "replay" | "audit";
3451
3099
  workflow: string | null;
3452
3100
  workflow_digest: string | null;
3453
- feedback: "look_back" | null;
3101
+ feedback: "correction" | null;
3454
3102
  expected?: Record<string, unknown>;
3455
3103
  };
3456
3104
  /** A workflow run's graph, live (GET /runs/{run_id}/graph). */
@@ -3538,28 +3186,18 @@ export type HandBackRunComputerResponse = {
3538
3186
  /** The run's learning whole: its seed, merge, verdict, problems and cost (GET /runs/{run_id}/learning). */
3539
3187
  export type GetRunLearningResponse = {
3540
3188
  run: string;
3541
- state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
3542
- reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
3189
+ state: "seeded" | "reflecting" | "merged" | "dropped";
3190
+ reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_failed" | "empty" | "checker" | "use" | null;
3543
3191
  detail: string | null;
3544
3192
  at: string;
3545
3193
  seed: string | null;
3546
3194
  merged: string | null;
3547
- pending: Array<{
3195
+ workflows: Array<{
3548
3196
  file: string;
3549
3197
  name: string;
3198
+ pending?: true;
3550
3199
  }>;
3551
- verdict: {
3552
- merge: boolean;
3553
- reason: string;
3554
- items: Array<{
3555
- file: string;
3556
- keep: boolean;
3557
- pending?: true;
3558
- origin?: "you" | "run";
3559
- question?: string;
3560
- why: string;
3561
- }>;
3562
- } | null;
3200
+ corrections: number;
3563
3201
  problems: Array<{
3564
3202
  rule: string;
3565
3203
  path?: string;
@@ -3567,7 +3205,6 @@ export type GetRunLearningResponse = {
3567
3205
  }>;
3568
3206
  compiled: {
3569
3207
  workflow: string;
3570
- from_notes: Array<string>;
3571
3208
  attempts: Array<{
3572
3209
  ok: boolean;
3573
3210
  errors: Array<string>;
@@ -3576,51 +3213,13 @@ export type GetRunLearningResponse = {
3576
3213
  promoted: boolean | null;
3577
3214
  } | null;
3578
3215
  draft_errors: Array<string>;
3579
- cost_usd: {
3580
- grade: number | null;
3581
- };
3582
- tokens: {
3583
- grade: {
3584
- input: number;
3585
- cache_read: number;
3586
- cache_write: number;
3587
- output: number;
3588
- } | null;
3589
- };
3590
3216
  used: {
3591
- skills: Array<{
3592
- name: string;
3593
- read: boolean;
3594
- }>;
3595
3217
  workflows: Array<{
3596
3218
  name: string;
3597
3219
  calls: number;
3598
3220
  failed: number;
3599
3221
  }>;
3600
3222
  };
3601
- given?: Array<{
3602
- file: string;
3603
- name: string;
3604
- }>;
3605
- read?: Array<{
3606
- file: string;
3607
- name: string;
3608
- }>;
3609
- learned?: Array<{
3610
- file: string;
3611
- name: string;
3612
- supersedes: Array<string>;
3613
- }>;
3614
- skills?: Array<{
3615
- file: string;
3616
- name: string;
3617
- pending?: true;
3618
- }>;
3619
- workflows?: Array<{
3620
- file: string;
3621
- name: string;
3622
- pending?: true;
3623
- }>;
3624
3223
  graded?: {
3625
3224
  run_id: string;
3626
3225
  correct: boolean;
@@ -3629,7 +3228,7 @@ export type GetRunLearningResponse = {
3629
3228
  path: "agent" | "handed_back" | "workflow" | "replay" | "audit";
3630
3229
  workflow: string | null;
3631
3230
  workflow_digest: string | null;
3632
- feedback: "look_back" | null;
3231
+ feedback: "correction" | null;
3633
3232
  feedback_status: "running" | "ended" | "not_run" | null;
3634
3233
  };
3635
3234
  } | null;
@@ -3721,6 +3320,38 @@ export interface GetTimelineParams {
3721
3320
  "Last-Event-ID"?: string;
3722
3321
  }
3723
3322
  export type GetTimelineResponse = TimelinePage;
3323
+ /** A run's trace: each model request and tool call, with its time, tokens and cost (GET /runs/{run_id}/trace). */
3324
+ export type GetRunTraceResponse = {
3325
+ run_id: Id;
3326
+ model_requests: "priced" | "tokens_only" | "not_recorded";
3327
+ spans: Array<{
3328
+ id: string;
3329
+ kind: "model" | "tool";
3330
+ parent_id: string | null;
3331
+ name: string;
3332
+ agent_label: string | null;
3333
+ started_at: Timestamp;
3334
+ ended_at: string | null;
3335
+ status: "ok" | "failed" | "refused" | "interrupted" | "waiting" | "running";
3336
+ stop_reason: string | null;
3337
+ tokens: {
3338
+ input: number;
3339
+ cache_read: number;
3340
+ cache_write: number;
3341
+ output: number;
3342
+ reasoning?: number;
3343
+ } | null;
3344
+ usd: number | null;
3345
+ decision: boolean;
3346
+ charged: boolean;
3347
+ not_metered: boolean;
3348
+ tool_use_id: string | null;
3349
+ input_preview: string | null;
3350
+ result_preview: string | null;
3351
+ result_size_bytes: number | null;
3352
+ }>;
3353
+ dropped: number;
3354
+ };
3724
3355
  /** Show the archived run in the lists again (POST /runs/{run_id}/unarchive). */
3725
3356
  export type UnarchiveRunResponse = Record<string, unknown>;
3726
3357
  /** Complete a backend SDK task (POST /sdk-runs/{run_id}/complete). */
@@ -3805,10 +3436,6 @@ export type StartSdkRunResponse = {
3805
3436
  enabled: boolean;
3806
3437
  revision: string | null;
3807
3438
  context: string;
3808
- skills: Array<{
3809
- name: string;
3810
- files: Record<string, string>;
3811
- }>;
3812
3439
  workflows: Array<{
3813
3440
  name: string;
3814
3441
  workflow: string;
@@ -3955,6 +3582,7 @@ export type ApplyTemplateBody = {
3955
3582
  parameters?: Record<string, unknown>;
3956
3583
  servers?: Record<string, string>;
3957
3584
  grants?: Array<string>;
3585
+ agent_id?: string;
3958
3586
  overrides?: {
3959
3587
  model?: string;
3960
3588
  choice?: string;
@@ -4165,11 +3793,11 @@ export type ListTemplatesResponse = {
4165
3793
  /** The tool keys a person may save, and which are set: names only, never a value (GET /settings/tool-keys). */
4166
3794
  export type ListToolKeysResponse = {
4167
3795
  keys: Array<{
4168
- id: "parallel" | "monid" | "browserbase" | "kernel" | "typesafe" | "anthropic" | "openai" | "openrouter";
3796
+ id: "parallel" | "monid" | "browserbase" | "kernel" | "typesafe" | "anthropic" | "openai" | "particle" | "openrouter";
4169
3797
  kind: "tool" | "model";
4170
3798
  label: string;
4171
3799
  unlocks: Array<string>;
4172
- harnesses: Array<"pi" | "claude-agent" | "codex" | "opencode">;
3800
+ harnesses: Array<string>;
4173
3801
  fields: Array<{
4174
3802
  name: string;
4175
3803
  set: boolean;
@@ -5464,6 +5092,8 @@ export declare function resources(call: Call): {
5464
5092
  connectNative: (body: ConnectNativeBody, options?: RequestOptions) => Promise<ConnectNativeResponse>;
5465
5093
  /** Create an agent home (POST /agents). */
5466
5094
  create: (body: CreateAgentBody, params?: CreateAgentParams, options?: RequestOptions) => Promise<CreateAgentResponse>;
5095
+ /** Delete an agent another system owns (DELETE /agents/{agent_id}). */
5096
+ deleteAgent: (agentId: string, options?: RequestOptions) => Promise<void>;
5467
5097
  /** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
5468
5098
  deleteAgentArchil: (agentId: string, options?: RequestOptions) => Promise<DeleteAgentArchilResponse>;
5469
5099
  /** Disconnect future native jobs while retaining source configuration and history (POST /agents/{agent_id}/native/disconnect). */
@@ -5538,36 +5168,24 @@ export declare function resources(call: Call): {
5538
5168
  write: (agentId: string, path: string, body: RawBody, options?: BodyOptions) => Promise<WriteHomeFileResponse>;
5539
5169
  };
5540
5170
  learning: {
5541
- /** A learning batch's progress: rows done, right or wrong, lessons, workflow revisions, cost, the path each run took (GET /agents/{agent_id}/learning/batches/{batch_id}). */
5542
- batch: (agentId: string, batchId: string, options?: RequestOptions) => Promise<GetLearningBatchResponse>;
5543
- /** Cancel a running learning batch (POST /agents/{agent_id}/learning/batches/{batch_id}/cancel). */
5544
- batchCancel: (agentId: string, batchId: string, options?: RequestOptions) => Promise<CancelLearningBatchResponse>;
5545
- /** Learn from rows: run the agent on each in order, with learning on, and tell it the reference answer after each (POST /agents/{agent_id}/learning/batches). */
5546
- batchStart: (agentId: string, body: CreateLearningBatchBody, options?: RequestOptions) => Promise<CreateLearningBatchResponse>;
5547
- /** The agent's learning batches, latest first (GET /agents/{agent_id}/learning/batches). */
5548
- batches: (agentId: string, options?: RequestOptions) => Promise<ListLearningBatchesResponse>;
5171
+ /** The agent's corrections.md on main, with its ETag (GET /agents/{agent_id}/learning/corrections). */
5172
+ corrections: (agentId: string, options?: RequestOptions) => Promise<Tagged<GetLearningCorrectionsResponse>>;
5549
5173
  /** The agent's cost per run, run after run: its own cost, what learning added and the path it took (GET /agents/{agent_id}/learning/cost). */
5550
5174
  cost: (agentId: string, params?: GetLearningCostParams, options?: RequestOptions) => Promise<GetLearningCostResponse | string>;
5551
- /** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
5552
- evals: (agentId: string, options?: RequestOptions) => Promise<ListLearningEvalsResponse>;
5553
- /** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
5175
+ /** What the agent has learned: its corrections, workflow drafts, log of changes and counts (GET /agents/{agent_id}/learning). */
5554
5176
  get: (agentId: string, options?: RequestOptions) => Promise<GetAgentLearningResponse>;
5555
5177
  /** A page of the changes on the agent's main, newest first (GET /agents/{agent_id}/learning/log). */
5556
5178
  log: (agentId: string, params?: ListLearningLogParams, options?: RequestOptions) => Promise<ListLearningLogResponse>;
5557
- /** A page of the agent's notes (GET /agents/{agent_id}/learning/notes). */
5558
- notes: (agentId: string, params?: ListLearningNotesParams, options?: RequestOptions) => Promise<ListLearningNotesResponse>;
5559
- /** One note (or MEMORY.md, a skill's SKILL.md or a draft's file) on main, as text, with its ETag (GET /agents/{agent_id}/learning/files/{file}). */
5179
+ /** One file of a learned workflow on main (its workflow.json or README.md), as text, with its ETag (GET /agents/{agent_id}/learning/files/{file}). */
5560
5180
  read: (agentId: string, file: string, options?: RequestOptions) => Promise<Tagged<ReadLearningFileResponse | string>>;
5561
- /** Record a held-out test of the agent: its counts and the cost a task, with learning and by hand (POST /agents/{agent_id}/learning/evals). */
5562
- recordEval: (agentId: string, body: RecordLearningEvalBody, params?: RecordLearningEvalParams, options?: RequestOptions) => Promise<RecordLearningEvalResponse>;
5563
5181
  /** Read a replay's result: running, done or failed, its counts and its score (start one from the console's Learning tab) (GET /agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}). */
5564
5182
  replay: (agentId: string, name: string, digest: string, replayId: string, options?: RequestOptions) => Promise<GetLearnedWorkflowReplayResponse>;
5565
- /** Retire a note, a skill or a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
5183
+ /** Retire a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
5566
5184
  retire: (agentId: string, file: string, params?: RetireLearningFileParams, options?: RequestOptions) => Promise<Tagged<string>>;
5567
5185
  /** A learned workflow's revisions on main, oldest first, each with its workflow.json as it was then (GET /agents/{agent_id}/learning/workflows/{name}/revisions). */
5568
5186
  workflowRevisions: (agentId: string, name: string, params?: ListLearnedWorkflowRevisionsParams, options?: RequestOptions) => Promise<ListLearnedWorkflowRevisionsResponse>;
5569
- /** Edit a note (If-Match) or create one (If-None-Match: *) (PUT /agents/{agent_id}/learning/files/{file}). */
5570
- write: (agentId: string, file: string, body: WriteLearningFileBody | RawBody, params?: WriteLearningFileParams, options?: BodyOptions) => Promise<Tagged<string>>;
5187
+ /** Replace the agent's corrections.md (If-Match) (PUT /agents/{agent_id}/learning/corrections). */
5188
+ writeCorrections: (agentId: string, body: PutLearningCorrectionsBody | RawBody, params: PutLearningCorrectionsParams, options?: BodyOptions) => Promise<Tagged<PutLearningCorrectionsResponse>>;
5571
5189
  };
5572
5190
  local: {
5573
5191
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
@@ -5590,6 +5208,8 @@ export declare function resources(call: Call): {
5590
5208
  getCalendar: (options?: RequestOptions) => Promise<GetCalendarResponse>;
5591
5209
  /** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
5592
5210
  getChatGptsignIn: (options?: RequestOptions) => Promise<GetChatGPTSignInResponse>;
5211
+ /** Claude Code's login on this machine: on or off, and what its CLI says of it (GET /settings/claude-login). */
5212
+ getClaudeLogin: (options?: RequestOptions) => Promise<GetClaudeLoginResponse>;
5593
5213
  /** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
5594
5214
  getEmailAccount: (options?: RequestOptions) => Promise<GetEmailAccountResponse>;
5595
5215
  /** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
@@ -5624,6 +5244,8 @@ export declare function resources(call: Call): {
5624
5244
  signOutChatGpt: (options?: RequestOptions) => Promise<SignOutChatGPTResponse>;
5625
5245
  /** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
5626
5246
  startChatGptsignIn: (options?: RequestOptions) => Promise<StartChatGPTSignInResponse>;
5247
+ /** Start the Claude Code CLI's own sign-in on this machine (POST /settings/claude-login/login). */
5248
+ startClaudeLogin: (options?: RequestOptions) => Promise<StartClaudeLoginResponse>;
5627
5249
  /** Read the calendar and say what it holds (POST /settings/calendar/test). */
5628
5250
  testCalendar: (body?: TestCalendarBody, options?: RequestOptions) => Promise<TestCalendarResponse>;
5629
5251
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
@@ -5632,6 +5254,10 @@ export declare function resources(call: Call): {
5632
5254
  testEmailAccount: (body?: TestEmailAccountBody, options?: RequestOptions) => Promise<TestEmailAccountResponse>;
5633
5255
  /** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
5634
5256
  testWorkspaceArchil: (options?: RequestOptions) => Promise<TestWorkspaceArchilResponse>;
5257
+ /** Turn off Claude Code's login on this machine (DELETE /settings/claude-login). */
5258
+ turnOffClaudeLogin: (options?: RequestOptions) => Promise<TurnOffClaudeLoginResponse>;
5259
+ /** Turn on Claude Code's login on this machine for claude-agent's runs (PUT /settings/claude-login). */
5260
+ turnOnClaudeLogin: (body: TurnOnClaudeLoginBody, options?: RequestOptions) => Promise<TurnOnClaudeLoginResponse>;
5635
5261
  };
5636
5262
  mcpServers: {
5637
5263
  /** Forget a saved MCP server and its credential (DELETE /settings/mcp-servers/{name}). */
@@ -5708,6 +5334,8 @@ export declare function resources(call: Call): {
5708
5334
  takeOverRunComputer: (runId: string, body?: TakeOverRunComputerBody, options?: RequestOptions) => Promise<TakeOverRunComputerResponse>;
5709
5335
  /** The run's timeline, as a page or a stream (GET /runs/{run_id}/timeline). */
5710
5336
  timeline: (runId: string, params?: GetTimelineParams, options?: RequestOptions) => Promise<GetTimelineResponse>;
5337
+ /** A run's trace: each model request and tool call, with its time, tokens and cost (GET /runs/{run_id}/trace). */
5338
+ trace: (runId: string, options?: RequestOptions) => Promise<GetRunTraceResponse>;
5711
5339
  /** Show the archived run in the lists again (POST /runs/{run_id}/unarchive). */
5712
5340
  unarchive: (runId: string, options?: RequestOptions) => Promise<UnarchiveRunResponse>;
5713
5341
  };