@parcha/agentrun-client 0.1.0-beta.67 → 0.1.0-beta.69

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.
@@ -177,7 +177,7 @@ export type DefinitionInput = {
177
177
  mode: "runner";
178
178
  } | {
179
179
  mode: "sandbox";
180
- box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox";
180
+ box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox" | "vercel" | "sprites" | "instabox" | "northflank";
181
181
  };
182
182
  computer?: {
183
183
  kind: "none" | "sandbox" | "desktop" | "phone" | "browser";
@@ -499,6 +499,7 @@ export type RunSummary = {
499
499
  kind: "question";
500
500
  question: string;
501
501
  asked_at: string;
502
+ expires_at?: string;
502
503
  } | {
503
504
  kind: "approval";
504
505
  id: string;
@@ -538,7 +539,7 @@ export type RunSummary = {
538
539
  kind: "stopped";
539
540
  } | null;
540
541
  imported_from?: {
541
- source: "claude-code" | "codex" | "pi" | "opencode" | "copilot";
542
+ source: "claude-code" | "codex" | "pi" | "opencode" | "copilot" | "cursor";
542
543
  session: string;
543
544
  } | null;
544
545
  trigger?: {
@@ -783,6 +784,7 @@ export type Run = {
783
784
  }>;
784
785
  input?: Record<string, unknown> | null;
785
786
  file_ids?: Array<string>;
787
+ warnings?: Array<InputIssue>;
786
788
  claim?: {
787
789
  runner: string;
788
790
  epoch: number;
@@ -792,7 +794,7 @@ export type Run = {
792
794
  mode: "runner";
793
795
  } | {
794
796
  mode: "sandbox";
795
- box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox";
797
+ box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox" | "vercel" | "sprites" | "instabox" | "northflank";
796
798
  };
797
799
  computer?: {
798
800
  kind: "sandbox" | "desktop" | "phone" | "browser";
@@ -827,6 +829,7 @@ export type Run = {
827
829
  kind: "question";
828
830
  question: string;
829
831
  asked_at: string;
832
+ expires_at?: string;
830
833
  } | {
831
834
  kind: "approval";
832
835
  id: string;
@@ -866,7 +869,7 @@ export type Run = {
866
869
  kind: "stopped";
867
870
  } | null;
868
871
  imported_from?: {
869
- source: "claude-code" | "codex" | "pi" | "opencode" | "copilot";
872
+ source: "claude-code" | "codex" | "pi" | "opencode" | "copilot" | "cursor";
870
873
  session: string;
871
874
  } | null;
872
875
  trigger?: {
@@ -1145,7 +1148,7 @@ export type Capabilities = {
1145
1148
  places: {
1146
1149
  modes: Array<"runner" | "sandbox">;
1147
1150
  boxes: Array<{
1148
- id: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox";
1151
+ id: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox" | "vercel" | "sprites" | "instabox" | "northflank";
1149
1152
  available: boolean;
1150
1153
  state: "ready" | "unavailable";
1151
1154
  reason?: string;
@@ -1157,7 +1160,7 @@ export type Capabilities = {
1157
1160
  mode: "runner";
1158
1161
  } | {
1159
1162
  mode: "sandbox";
1160
- box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox";
1163
+ box: "docker" | "daytona" | "modal" | "e2b" | "agent37" | "morph" | "cloudflare" | "fly" | "render" | "boxd" | "groundbox" | "vercel" | "sprites" | "instabox" | "northflank";
1161
1164
  } | null;
1162
1165
  default_reason?: string;
1163
1166
  allow: Array<string>;
@@ -1346,6 +1349,7 @@ export type Features = {
1346
1349
  auth: Array<"none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run">;
1347
1350
  at_rest: "sealed";
1348
1351
  harnesses: Array<string>;
1352
+ composio_key_envs?: Array<string>;
1349
1353
  composio_per_run: boolean;
1350
1354
  };
1351
1355
  tool_permissions?: boolean;
@@ -1825,6 +1829,7 @@ export type ListLearningPromotionsResponse = {
1825
1829
  };
1826
1830
  };
1827
1831
  unjudged?: number;
1832
+ unread?: number;
1828
1833
  }>;
1829
1834
  of?: Array<string>;
1830
1835
  cost_usd?: number | null;
@@ -1855,6 +1860,8 @@ export type ListLearningPromotionsResponse = {
1855
1860
  value?: string;
1856
1861
  }>;
1857
1862
  }>;
1863
+ unread?: number;
1864
+ undecided?: true;
1858
1865
  stopped?: true;
1859
1866
  released?: number;
1860
1867
  fresh_reads?: number;
@@ -1875,6 +1882,7 @@ export type ListLearningPromotionsResponse = {
1875
1882
  agent_right: number;
1876
1883
  };
1877
1884
  unjudged?: number;
1885
+ unread?: number;
1878
1886
  }>;
1879
1887
  of: Array<string>;
1880
1888
  outcomes: {
@@ -1899,6 +1907,7 @@ export type ListLearningPromotionsResponse = {
1899
1907
  }>;
1900
1908
  }>;
1901
1909
  fresh_reads?: number;
1910
+ unread?: number;
1902
1911
  };
1903
1912
  };
1904
1913
  runs?: Array<string>;
@@ -1986,6 +1995,7 @@ export type ListLearningPromotionsResponse = {
1986
1995
  };
1987
1996
  };
1988
1997
  unjudged?: number;
1998
+ unread?: number;
1989
1999
  }>;
1990
2000
  of?: Array<string>;
1991
2001
  cost_usd?: number | null;
@@ -2016,6 +2026,8 @@ export type ListLearningPromotionsResponse = {
2016
2026
  value?: string;
2017
2027
  }>;
2018
2028
  }>;
2029
+ unread?: number;
2030
+ undecided?: true;
2019
2031
  stopped?: true;
2020
2032
  released?: number;
2021
2033
  fresh_reads?: number;
@@ -2036,6 +2048,7 @@ export type ListLearningPromotionsResponse = {
2036
2048
  agent_right: number;
2037
2049
  };
2038
2050
  unjudged?: number;
2051
+ unread?: number;
2039
2052
  }>;
2040
2053
  of: Array<string>;
2041
2054
  outcomes: {
@@ -2060,6 +2073,7 @@ export type ListLearningPromotionsResponse = {
2060
2073
  }>;
2061
2074
  }>;
2062
2075
  fresh_reads?: number;
2076
+ unread?: number;
2063
2077
  };
2064
2078
  } | null;
2065
2079
  } | null;
@@ -3584,7 +3598,8 @@ export type ListComposioEventsResponse = {
3584
3598
  };
3585
3599
  /** List the toolkits Composio offers, for the console's toolkit picker; stores nothing (POST /settings/mcp-servers/composio/toolkits). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
3586
3600
  export type ListComposioToolkitsBody = {
3587
- api_key: string;
3601
+ api_key?: string;
3602
+ api_key_env?: "COMPOSIO_API_KEY" | "AGENTRUN_COMPOSIO_API_KEY";
3588
3603
  };
3589
3604
  export type ListComposioToolkitsResponse = {
3590
3605
  toolkits: Array<{
@@ -3594,8 +3609,9 @@ export type ListComposioToolkitsResponse = {
3594
3609
  };
3595
3610
  /** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
3596
3611
  export type ListComposioToolsBody = {
3597
- api_key: string;
3598
3612
  toolkit: string;
3613
+ api_key?: string;
3614
+ api_key_env?: "COMPOSIO_API_KEY" | "AGENTRUN_COMPOSIO_API_KEY";
3599
3615
  };
3600
3616
  export type ListComposioToolsResponse = {
3601
3617
  toolkit: string;
@@ -4067,7 +4083,7 @@ export type SaveComposioServerBody = {
4067
4083
  auth_config_id?: string;
4068
4084
  price_usd?: number;
4069
4085
  api_key?: string;
4070
- api_key_env?: "COMPOSIO_API_KEY";
4086
+ api_key_env?: "COMPOSIO_API_KEY" | "AGENTRUN_COMPOSIO_API_KEY";
4071
4087
  };
4072
4088
  export type SaveComposioServerResponse = {
4073
4089
  server: {
@@ -4078,7 +4094,7 @@ export type SaveComposioServerResponse = {
4078
4094
  auth: {
4079
4095
  type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
4080
4096
  headers?: Array<string>;
4081
- api_key_env?: "COMPOSIO_API_KEY";
4097
+ api_key_env?: "COMPOSIO_API_KEY" | "AGENTRUN_COMPOSIO_API_KEY";
4082
4098
  };
4083
4099
  credential: "sealed" | "unreadable" | "expired" | null;
4084
4100
  oauth?: {
@@ -4235,6 +4251,9 @@ export type SaveModelGatewayResponse = {
4235
4251
  /** Scan a repository for places its app needs an agent (POST /suggestions/scans). */
4236
4252
  export type ScanForSuggestionsBody = {
4237
4253
  repo: string;
4254
+ start?: "host";
4255
+ run_id?: string;
4256
+ scan?: string;
4238
4257
  };
4239
4258
  export type ScanForSuggestionsResponse = {
4240
4259
  repo: string;
@@ -4242,6 +4261,23 @@ export type ScanForSuggestionsResponse = {
4242
4261
  agent_id: string;
4243
4262
  status: "running";
4244
4263
  already_running: boolean;
4264
+ } | {
4265
+ repo: string;
4266
+ agent_id: string;
4267
+ input: {
4268
+ content: string;
4269
+ };
4270
+ scan: string;
4271
+ status: "starting";
4272
+ } | {
4273
+ repo: string;
4274
+ status: "released";
4275
+ } | {
4276
+ repo: string;
4277
+ run_id: string;
4278
+ agent_id: string;
4279
+ status: "running";
4280
+ already_running: boolean;
4245
4281
  };
4246
4282
  /** Sign out of ChatGPT: the session revoked at OpenAI, then forgotten here (DELETE /settings/chatgpt). */
4247
4283
  export type SignOutChatGPTResponse = {
@@ -4471,7 +4507,7 @@ export type GetMcpServerResponse = {
4471
4507
  auth: {
4472
4508
  type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
4473
4509
  headers?: Array<string>;
4474
- api_key_env?: "COMPOSIO_API_KEY";
4510
+ api_key_env?: "COMPOSIO_API_KEY" | "AGENTRUN_COMPOSIO_API_KEY";
4475
4511
  };
4476
4512
  credential: "sealed" | "unreadable" | "expired" | null;
4477
4513
  oauth?: {
@@ -4522,7 +4558,7 @@ export type ListMcpServersResponse = {
4522
4558
  auth: {
4523
4559
  type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
4524
4560
  headers?: Array<string>;
4525
- api_key_env?: "COMPOSIO_API_KEY";
4561
+ api_key_env?: "COMPOSIO_API_KEY" | "AGENTRUN_COMPOSIO_API_KEY";
4526
4562
  };
4527
4563
  credential: "sealed" | "unreadable" | "expired" | null;
4528
4564
  oauth?: {
@@ -4618,7 +4654,7 @@ export type RefreshMcpServerResponse = {
4618
4654
  auth: {
4619
4655
  type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
4620
4656
  headers?: Array<string>;
4621
- api_key_env?: "COMPOSIO_API_KEY";
4657
+ api_key_env?: "COMPOSIO_API_KEY" | "AGENTRUN_COMPOSIO_API_KEY";
4622
4658
  };
4623
4659
  credential: "sealed" | "unreadable" | "expired" | null;
4624
4660
  oauth?: {
@@ -4679,7 +4715,7 @@ export type SaveMcpServerResponse = {
4679
4715
  auth: {
4680
4716
  type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
4681
4717
  headers?: Array<string>;
4682
- api_key_env?: "COMPOSIO_API_KEY";
4718
+ api_key_env?: "COMPOSIO_API_KEY" | "AGENTRUN_COMPOSIO_API_KEY";
4683
4719
  };
4684
4720
  credential: "sealed" | "unreadable" | "expired" | null;
4685
4721
  oauth?: {
@@ -5659,7 +5695,7 @@ export type GetStatsResponse = {
5659
5695
  unknown_cost_runs: number;
5660
5696
  }>;
5661
5697
  by_source: Array<{
5662
- source: "live" | "claude-code" | "codex" | "pi" | "opencode" | "copilot";
5698
+ source: "live" | "claude-code" | "codex" | "pi" | "opencode" | "copilot" | "cursor";
5663
5699
  runs: number;
5664
5700
  completed: number;
5665
5701
  needs_review: number;
@@ -7438,6 +7474,8 @@ export type GetWrappedResponse = {
7438
7474
  };
7439
7475
  cost_usd: number;
7440
7476
  unpriced_requests: number;
7477
+ tokens_unknown_requests: number;
7478
+ time_unknown_requests: number;
7441
7479
  days: Array<{
7442
7480
  day: string;
7443
7481
  requests: number;
@@ -7451,6 +7489,7 @@ export type GetWrappedResponse = {
7451
7489
  sessions: number;
7452
7490
  requests: number;
7453
7491
  tokens: number;
7492
+ tokens_unknown_requests: number;
7454
7493
  sources: Array<string>;
7455
7494
  }>;
7456
7495
  models: Array<{
@@ -7459,6 +7498,7 @@ export type GetWrappedResponse = {
7459
7498
  tokens: number;
7460
7499
  cost_usd: number;
7461
7500
  unpriced_requests: number;
7501
+ tokens_unknown_requests: number;
7462
7502
  }>;
7463
7503
  sources: Array<{
7464
7504
  source: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.67",
3
+ "version": "0.1.0-beta.69",
4
4
  "description": "A typed TypeScript client for a self-hosted AgentRun server: a method per operation of its API, typed from its OpenAPI document, with waiting for a run and following its timeline. No dependencies; fetch only.",
5
5
  "keywords": [
6
6
  "agentrun",
@@ -83,6 +83,6 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@parcha/agentrun-dsl": "0.1.0-beta.67"
86
+ "@parcha/agentrun-dsl": "0.1.0-beta.69"
87
87
  }
88
88
  }