@parcha/agentrun-client 0.1.0-beta.34 → 0.1.0-beta.35

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A typed TypeScript client for an AgentRun server you host yourself, the open platform's server: one method per operation of
4
4
  its API, typed from the OpenAPI document it serves, plus waiting for a run and following its timeline. No dependencies: it
5
- uses `fetch`, on Node.js 22.19 or newer.
5
+ uses `fetch`, on Node.js 24.22.3 or newer.
6
6
 
7
7
  ## Install
8
8
 
@@ -28,6 +28,7 @@ export type DefinitionInput = {
28
28
  computer?: {
29
29
  kind: "none" | "sandbox" | "desktop" | "phone" | "browser";
30
30
  provider?: string;
31
+ image?: string;
31
32
  gpu?: {
32
33
  type: string;
33
34
  count: number;
@@ -78,6 +79,7 @@ export type DefinitionInput = {
78
79
  };
79
80
  approvals?: "ask" | "never";
80
81
  learning?: boolean;
82
+ max_tool_calls?: number;
81
83
  cap_mode?: "expected" | "strict";
82
84
  };
83
85
  export type Id = string;
@@ -564,6 +566,12 @@ export type TimelineRow = {
564
566
  owner: boolean;
565
567
  name?: string;
566
568
  };
569
+ learned_nodes?: Array<{
570
+ label: string;
571
+ kind: string;
572
+ status: string;
573
+ duration_ms: number;
574
+ }>;
567
575
  learning?: {
568
576
  state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
569
577
  reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | null;
@@ -975,6 +983,7 @@ export type GetAgentLearningResponse = {
975
983
  retired?: {
976
984
  at: string;
977
985
  by: "person" | "run";
986
+ from: "active" | "pending";
978
987
  };
979
988
  last_change?: {
980
989
  kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
@@ -996,6 +1005,7 @@ export type GetAgentLearningResponse = {
996
1005
  retired?: {
997
1006
  at: string;
998
1007
  by: "person" | "run";
1008
+ from: "active" | "pending";
999
1009
  };
1000
1010
  last_change?: {
1001
1011
  kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
@@ -1015,6 +1025,7 @@ export type GetAgentLearningResponse = {
1015
1025
  retired?: {
1016
1026
  at: string;
1017
1027
  by: "person" | "run";
1028
+ from: "active" | "pending";
1018
1029
  };
1019
1030
  last_change?: {
1020
1031
  kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
@@ -1105,6 +1116,7 @@ export type ListLearningNotesResponse = {
1105
1116
  retired?: {
1106
1117
  at: string;
1107
1118
  by: "person" | "run";
1119
+ from: "active" | "pending";
1108
1120
  };
1109
1121
  last_change?: {
1110
1122
  kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
@@ -1232,6 +1244,7 @@ export type ListComputersResponse = {
1232
1244
  why?: string;
1233
1245
  };
1234
1246
  network?: string;
1247
+ images?: Array<string>;
1235
1248
  }>;
1236
1249
  why?: string;
1237
1250
  }>;
@@ -1291,6 +1304,7 @@ export type SaveComputerKeysResponse = {
1291
1304
  why?: string;
1292
1305
  };
1293
1306
  network?: string;
1307
+ images?: Array<string>;
1294
1308
  };
1295
1309
  /** 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. */
1296
1310
  export type StartMcpOAuthBody = {
@@ -1676,6 +1690,17 @@ export type GetRunLearningResponse = {
1676
1690
  output: number;
1677
1691
  } | null;
1678
1692
  };
1693
+ used: {
1694
+ skills: Array<{
1695
+ name: string;
1696
+ read: boolean;
1697
+ }>;
1698
+ workflows: Array<{
1699
+ name: string;
1700
+ calls: number;
1701
+ failed: number;
1702
+ }>;
1703
+ };
1679
1704
  given?: Array<{
1680
1705
  file: string;
1681
1706
  name: string;
@@ -1990,7 +2015,8 @@ export type ListTemplatesResponse = {
1990
2015
  }>;
1991
2016
  secrets: Array<string>;
1992
2017
  budget: {
1993
- per_run_usd: number;
2018
+ per_run_usd?: number;
2019
+ tool_calls?: number;
1994
2020
  } | null;
1995
2021
  learning: boolean;
1996
2022
  approvals_default: "ask" | "never";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.34",
3
+ "version": "0.1.0-beta.35",
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",
@@ -13,7 +13,7 @@
13
13
  "license": "Apache-2.0",
14
14
  "author": "Parcha Labs, Inc.",
15
15
  "engines": {
16
- "node": ">=24.11.0"
16
+ "node": ">=24.22.3"
17
17
  },
18
18
  "main": "./dist/index.js",
19
19
  "types": "./dist/index.d.ts",