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

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.
@@ -3,6 +3,7 @@ export const OPERATIONS = {
3
3
  archiveAgent: { "method": "POST", "path": "/agents/{agent_id}/archive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
4
4
  connectNative: { "method": "POST", "path": "/native/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
5
5
  createAgent: { "method": "POST", "path": "/agents", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
6
+ deleteAgent: { "method": "DELETE", "path": "/agents/{agent_id}", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
6
7
  deleteAgentArchil: { "method": "DELETE", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
7
8
  disconnectNative: { "method": "POST", "path": "/agents/{agent_id}/native/disconnect", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
8
9
  discoverNative: { "method": "POST", "path": "/native/discover", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -36,21 +37,15 @@ export const OPERATIONS = {
36
37
  listHomeFiles: { "method": "GET", "path": "/agents/{agent_id}/home/files", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
37
38
  readHomeFile: { "method": "GET", "path": "/agents/{agent_id}/home/files/{path}", "pathParams": ["agent_id", "path"], "multiSegment": ["path"], "query": ["download"], "headers": [], "body": null, "answer": "bytes", "secret": false, "publicFields": [], "tagged": false },
38
39
  writeHomeFile: { "method": "PUT", "path": "/agents/{agent_id}/home/files/{path}", "pathParams": ["agent_id", "path"], "multiSegment": ["path"], "query": [], "headers": [], "body": { "required": true, "types": ["application/octet-stream", "*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
39
- getLearningBatch: { "method": "GET", "path": "/agents/{agent_id}/learning/batches/{batch_id}", "pathParams": ["agent_id", "batch_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
40
- cancelLearningBatch: { "method": "POST", "path": "/agents/{agent_id}/learning/batches/{batch_id}/cancel", "pathParams": ["agent_id", "batch_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
41
- createLearningBatch: { "method": "POST", "path": "/agents/{agent_id}/learning/batches", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
42
- listLearningBatches: { "method": "GET", "path": "/agents/{agent_id}/learning/batches", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
40
+ getLearningCorrections: { "method": "GET", "path": "/agents/{agent_id}/learning/corrections", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
43
41
  getLearningCost: { "method": "GET", "path": "/agents/{agent_id}/learning/cost", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "format"], "headers": [], "body": null, "answer": "json+text", "secret": false, "publicFields": [], "tagged": false },
44
- listLearningEvals: { "method": "GET", "path": "/agents/{agent_id}/learning/evals", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
45
42
  getAgentLearning: { "method": "GET", "path": "/agents/{agent_id}/learning", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
46
43
  listLearningLog: { "method": "GET", "path": "/agents/{agent_id}/learning/log", "pathParams": ["agent_id"], "multiSegment": [], "query": ["cursor", "limit"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
47
- listLearningNotes: { "method": "GET", "path": "/agents/{agent_id}/learning/notes", "pathParams": ["agent_id"], "multiSegment": [], "query": ["cursor", "limit", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
48
44
  readLearningFile: { "method": "GET", "path": "/agents/{agent_id}/learning/files/{file}", "pathParams": ["agent_id", "file"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json+text", "secret": false, "publicFields": [], "tagged": true },
49
- recordLearningEval: { "method": "POST", "path": "/agents/{agent_id}/learning/evals", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
50
45
  getLearnedWorkflowReplay: { "method": "GET", "path": "/agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}", "pathParams": ["agent_id", "name", "digest", "replay_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
51
46
  retireLearningFile: { "method": "POST", "path": "/agents/{agent_id}/learning/files/{file}/retire", "pathParams": ["agent_id", "file"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": null, "answer": "text", "secret": false, "publicFields": [], "tagged": true },
52
47
  listLearnedWorkflowRevisions: { "method": "GET", "path": "/agents/{agent_id}/learning/workflows/{name}/revisions", "pathParams": ["agent_id", "name"], "multiSegment": [], "query": ["limit"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
53
- writeLearningFile: { "method": "PUT", "path": "/agents/{agent_id}/learning/files/{file}", "pathParams": ["agent_id", "file"], "multiSegment": [], "query": [], "headers": ["If-Match", "If-None-Match"], "body": { "required": true, "types": ["text/markdown", "text/plain", "application/json"] }, "answer": "text", "secret": false, "publicFields": [], "tagged": true },
48
+ putLearningCorrections: { "method": "PUT", "path": "/agents/{agent_id}/learning/corrections", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": { "required": true, "types": ["text/markdown", "text/plain", "application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
54
49
  connectGitHub: { "method": "POST", "path": "/integrations/github/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
55
50
  createPairing: { "method": "POST", "path": "/computers/pairings", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
56
51
  deleteCalendar: { "method": "DELETE", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -62,6 +57,7 @@ export const OPERATIONS = {
62
57
  finishChatGPTSignIn: { "method": "POST", "path": "/settings/chatgpt/sign-in/finish", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
63
58
  getCalendar: { "method": "GET", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
64
59
  getChatGPTSignIn: { "method": "GET", "path": "/settings/chatgpt", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
60
+ getClaudeLogin: { "method": "GET", "path": "/settings/claude-login", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
65
61
  getEmailAccount: { "method": "GET", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
66
62
  getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
67
63
  getWorkspaceArchil: { "method": "GET", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -81,11 +77,14 @@ export const OPERATIONS = {
81
77
  saveEmailAccount: { "method": "PUT", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
82
78
  signOutChatGPT: { "method": "DELETE", "path": "/settings/chatgpt", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
83
79
  startChatGPTSignIn: { "method": "POST", "path": "/settings/chatgpt/sign-in", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
80
+ startClaudeLogin: { "method": "POST", "path": "/settings/claude-login/login", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
84
81
  startMcpOAuth: { "method": "POST", "path": "/settings/mcp-servers/{name}/oauth/start", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["url", "scopes.[]", "client_id"], "tagged": false },
85
82
  testCalendar: { "method": "POST", "path": "/settings/calendar/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
86
83
  testComputer: { "method": "POST", "path": "/computers/{provider}/test", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
87
84
  testEmailAccount: { "method": "POST", "path": "/settings/email/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
88
85
  testWorkspaceArchil: { "method": "POST", "path": "/workspace/archil/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
86
+ turnOffClaudeLogin: { "method": "DELETE", "path": "/settings/claude-login", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
87
+ turnOnClaudeLogin: { "method": "PUT", "path": "/settings/claude-login", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
89
88
  deleteMcpServer: { "method": "DELETE", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
90
89
  getMcpServer: { "method": "GET", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
91
90
  listMcpServers: { "method": "GET", "path": "/settings/mcp-servers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -120,6 +119,7 @@ export const OPERATIONS = {
120
119
  stopRun: { "method": "POST", "path": "/runs/{run_id}/stop", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
121
120
  takeOverRunComputer: { "method": "POST", "path": "/runs/{run_id}/computer/take-over", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
122
121
  getTimeline: { "method": "GET", "path": "/runs/{run_id}/timeline", "pathParams": ["run_id"], "multiSegment": [], "query": ["after", "wait_ms", "limit", "calls"], "headers": ["Last-Event-ID"], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
122
+ getRunTrace: { "method": "GET", "path": "/runs/{run_id}/trace", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
123
123
  unarchiveRun: { "method": "POST", "path": "/runs/{run_id}/unarchive", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
124
124
  completeSdkRun: { "method": "POST", "path": "/sdk-runs/{run_id}/complete", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
125
125
  sdkRunEvents: { "method": "POST", "path": "/sdk-runs/{run_id}/events", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -166,6 +166,8 @@ export function resources(call) {
166
166
  connectNative: (body, options) => call("connectNative", [], body, undefined, options),
167
167
  /** Create an agent home (POST /agents). */
168
168
  create: (body, params, options) => call("createAgent", [], body, params, options),
169
+ /** Delete an agent another system owns (DELETE /agents/{agent_id}). */
170
+ deleteAgent: (agentId, options) => call("deleteAgent", [agentId], undefined, undefined, options),
169
171
  /** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
170
172
  deleteAgentArchil: (agentId, options) => call("deleteAgentArchil", [agentId], undefined, undefined, options),
171
173
  /** Disconnect future native jobs while retaining source configuration and history (POST /agents/{agent_id}/native/disconnect). */
@@ -240,36 +242,24 @@ export function resources(call) {
240
242
  write: (agentId, path, body, options) => call("writeHomeFile", [agentId, path], body, undefined, options),
241
243
  },
242
244
  learning: {
243
- /** 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}). */
244
- batch: (agentId, batchId, options) => call("getLearningBatch", [agentId, batchId], undefined, undefined, options),
245
- /** Cancel a running learning batch (POST /agents/{agent_id}/learning/batches/{batch_id}/cancel). */
246
- batchCancel: (agentId, batchId, options) => call("cancelLearningBatch", [agentId, batchId], undefined, undefined, options),
247
- /** 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). */
248
- batchStart: (agentId, body, options) => call("createLearningBatch", [agentId], body, undefined, options),
249
- /** The agent's learning batches, latest first (GET /agents/{agent_id}/learning/batches). */
250
- batches: (agentId, options) => call("listLearningBatches", [agentId], undefined, undefined, options),
245
+ /** The agent's corrections.md on main, with its ETag (GET /agents/{agent_id}/learning/corrections). */
246
+ corrections: (agentId, options) => call("getLearningCorrections", [agentId], undefined, undefined, options),
251
247
  /** 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). */
252
248
  cost: (agentId, params, options) => call("getLearningCost", [agentId], undefined, params, options),
253
- /** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
254
- evals: (agentId, options) => call("listLearningEvals", [agentId], undefined, undefined, options),
255
- /** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
249
+ /** What the agent has learned: its corrections, workflow drafts, log of changes and counts (GET /agents/{agent_id}/learning). */
256
250
  get: (agentId, options) => call("getAgentLearning", [agentId], undefined, undefined, options),
257
251
  /** A page of the changes on the agent's main, newest first (GET /agents/{agent_id}/learning/log). */
258
252
  log: (agentId, params, options) => call("listLearningLog", [agentId], undefined, params, options),
259
- /** A page of the agent's notes (GET /agents/{agent_id}/learning/notes). */
260
- notes: (agentId, params, options) => call("listLearningNotes", [agentId], undefined, params, options),
261
- /** 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}). */
253
+ /** 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}). */
262
254
  read: (agentId, file, options) => call("readLearningFile", [agentId, file], undefined, undefined, options),
263
- /** 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). */
264
- recordEval: (agentId, body, params, options) => call("recordLearningEval", [agentId], body, params, options),
265
255
  /** 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}). */
266
256
  replay: (agentId, name, digest, replayId, options) => call("getLearnedWorkflowReplay", [agentId, name, digest, replayId], undefined, undefined, options),
267
- /** 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). */
257
+ /** Retire a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
268
258
  retire: (agentId, file, params, options) => call("retireLearningFile", [agentId, file], undefined, params, options),
269
259
  /** 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). */
270
260
  workflowRevisions: (agentId, name, params, options) => call("listLearnedWorkflowRevisions", [agentId, name], undefined, params, options),
271
- /** Edit a note (If-Match) or create one (If-None-Match: *) (PUT /agents/{agent_id}/learning/files/{file}). */
272
- write: (agentId, file, body, params, options) => call("writeLearningFile", [agentId, file], body, params, options),
261
+ /** Replace the agent's corrections.md (If-Match) (PUT /agents/{agent_id}/learning/corrections). */
262
+ writeCorrections: (agentId, body, params, options) => call("putLearningCorrections", [agentId], body, params, options),
273
263
  },
274
264
  local: {
275
265
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
@@ -292,6 +282,8 @@ export function resources(call) {
292
282
  getCalendar: (options) => call("getCalendar", [], undefined, undefined, options),
293
283
  /** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
294
284
  getChatGptsignIn: (options) => call("getChatGPTSignIn", [], undefined, undefined, options),
285
+ /** Claude Code's login on this machine: on or off, and what its CLI says of it (GET /settings/claude-login). */
286
+ getClaudeLogin: (options) => call("getClaudeLogin", [], undefined, undefined, options),
295
287
  /** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
296
288
  getEmailAccount: (options) => call("getEmailAccount", [], undefined, undefined, options),
297
289
  /** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
@@ -326,6 +318,8 @@ export function resources(call) {
326
318
  signOutChatGpt: (options) => call("signOutChatGPT", [], undefined, undefined, options),
327
319
  /** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
328
320
  startChatGptsignIn: (options) => call("startChatGPTSignIn", [], undefined, undefined, options),
321
+ /** Start the Claude Code CLI's own sign-in on this machine (POST /settings/claude-login/login). */
322
+ startClaudeLogin: (options) => call("startClaudeLogin", [], undefined, undefined, options),
329
323
  /** Read the calendar and say what it holds (POST /settings/calendar/test). */
330
324
  testCalendar: (body, options) => call("testCalendar", [], body, undefined, options),
331
325
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
@@ -334,6 +328,10 @@ export function resources(call) {
334
328
  testEmailAccount: (body, options) => call("testEmailAccount", [], body, undefined, options),
335
329
  /** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
336
330
  testWorkspaceArchil: (options) => call("testWorkspaceArchil", [], undefined, undefined, options),
331
+ /** Turn off Claude Code's login on this machine (DELETE /settings/claude-login). */
332
+ turnOffClaudeLogin: (options) => call("turnOffClaudeLogin", [], undefined, undefined, options),
333
+ /** Turn on Claude Code's login on this machine for claude-agent's runs (PUT /settings/claude-login). */
334
+ turnOnClaudeLogin: (body, options) => call("turnOnClaudeLogin", [], body, undefined, options),
337
335
  },
338
336
  mcpServers: {
339
337
  /** Forget a saved MCP server and its credential (DELETE /settings/mcp-servers/{name}). */
@@ -410,6 +408,8 @@ export function resources(call) {
410
408
  takeOverRunComputer: (runId, body, options) => call("takeOverRunComputer", [runId], body, undefined, options),
411
409
  /** The run's timeline, as a page or a stream (GET /runs/{run_id}/timeline). */
412
410
  timeline: (runId, params, options) => call("getTimeline", [runId], undefined, params, options),
411
+ /** A run's trace: each model request and tool call, with its time, tokens and cost (GET /runs/{run_id}/trace). */
412
+ trace: (runId, options) => call("getRunTrace", [runId], undefined, undefined, options),
413
413
  /** Show the archived run in the lists again (POST /runs/{run_id}/unarchive). */
414
414
  unarchive: (runId, options) => call("unarchiveRun", [runId], undefined, undefined, options),
415
415
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.44",
3
+ "version": "0.1.0-beta.46",
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",
@@ -75,6 +75,6 @@
75
75
  }
76
76
  },
77
77
  "devDependencies": {
78
- "@parcha/agentrun-dsl": "0.1.0-beta.44"
78
+ "@parcha/agentrun-dsl": "0.1.0-beta.46"
79
79
  }
80
80
  }