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

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.
@@ -2,8 +2,10 @@
2
2
  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
  createAgent: { "method": "POST", "path": "/agents", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
5
+ deleteAgentArchil: { "method": "DELETE", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
5
6
  forgetSignIn: { "method": "DELETE", "path": "/agents/{agent_id}/sign-ins/{key}", "pathParams": ["agent_id", "key"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
6
7
  getAgent: { "method": "GET", "path": "/agents/{agent_id}", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
8
+ getAgentArchil: { "method": "GET", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
7
9
  listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
8
10
  listRuns: { "method": "GET", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "cursor", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
9
11
  unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -17,21 +19,34 @@ export const OPERATIONS = {
17
19
  listHomeFiles: { "method": "GET", "path": "/agents/{agent_id}/home/files", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
18
20
  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 },
19
21
  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 },
22
+ 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 },
23
+ 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 },
24
+ 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 },
25
+ listLearningBatches: { "method": "GET", "path": "/agents/{agent_id}/learning/batches", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
26
+ 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 },
27
+ listLearningEvals: { "method": "GET", "path": "/agents/{agent_id}/learning/evals", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
20
28
  getAgentLearning: { "method": "GET", "path": "/agents/{agent_id}/learning", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
21
29
  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 },
22
30
  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 },
23
31
  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 },
32
+ 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 },
24
33
  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 },
34
+ 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 },
25
35
  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 },
26
36
  connectGitHub: { "method": "POST", "path": "/integrations/github/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
37
+ createPairing: { "method": "POST", "path": "/computers/pairings", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
38
+ deleteComputer: { "method": "DELETE", "path": "/computers/{computer_id}", "pathParams": ["computer_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
27
39
  deleteWorkspaceArchil: { "method": "DELETE", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
28
40
  disconnectGitHub: { "method": "DELETE", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
29
41
  getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
30
42
  getWorkspaceArchil: { "method": "GET", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
31
43
  gitHubCallback: { "method": "GET", "path": "/integrations/github/callback", "pathParams": [], "multiSegment": [], "query": ["code", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
32
44
  gitHubInstalled: { "method": "GET", "path": "/integrations/github/installed", "pathParams": [], "multiSegment": [], "query": ["installation_id", "setup_action", "state"], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
45
+ listComposioTools: { "method": "POST", "path": "/settings/mcp-servers/composio/tools", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["toolkit"], "tagged": false },
46
+ listComputerChoices: { "method": "GET", "path": "/computers/{provider}/choices", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
33
47
  listComputers: { "method": "GET", "path": "/computers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
34
48
  putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
49
+ saveComposioServer: { "method": "PUT", "path": "/settings/mcp-servers/{name}/composio", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": ["toolkit", "tools.[]", "user_id"], "tagged": false },
35
50
  saveComputerKeys: { "method": "PUT", "path": "/computers/{provider}/keys", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
36
51
  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 },
37
52
  testComputer: { "method": "POST", "path": "/computers/{provider}/test", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -48,6 +63,8 @@ export const OPERATIONS = {
48
63
  setCurrent: { "method": "POST", "path": "/agents/{agent_id}/current", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
49
64
  archiveRun: { "method": "POST", "path": "/runs/{run_id}/archive", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
50
65
  cancelRun: { "method": "POST", "path": "/runs/{run_id}/cancel", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
66
+ callRunComputer: { "method": "POST", "path": "/runs/{run_id}/computer/call", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
67
+ releaseRunComputer: { "method": "POST", "path": "/runs/{run_id}/computer/release", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
51
68
  createInlineRun: { "method": "POST", "path": "/runs", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
52
69
  listRunFiles: { "method": "GET", "path": "/runs/{run_id}/files", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
53
70
  getRun: { "method": "GET", "path": "/runs/{run_id}", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -62,6 +79,7 @@ export const OPERATIONS = {
62
79
  readRunFile: { "method": "GET", "path": "/runs/{run_id}/files/{path}", "pathParams": ["run_id", "path"], "multiSegment": ["path"], "query": ["download"], "headers": ["Range"], "body": null, "answer": "bytes", "secret": false, "publicFields": [], "tagged": false },
63
80
  resumeRun: { "method": "POST", "path": "/runs/{run_id}/resume", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
64
81
  createRun: { "method": "POST", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
82
+ startRun: { "method": "POST", "path": "/runs/{run_id}/start", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
65
83
  stopRun: { "method": "POST", "path": "/runs/{run_id}/stop", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
66
84
  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 },
67
85
  getTimeline: { "method": "GET", "path": "/runs/{run_id}/timeline", "pathParams": ["run_id"], "multiSegment": [], "query": ["after", "wait_ms", "limit"], "headers": ["Last-Event-ID"], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -84,7 +102,7 @@ export const OPERATIONS = {
84
102
  listTriggerFirings: { "method": "GET", "path": "/triggers/{trigger_id}/firings", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
85
103
  getTrigger: { "method": "GET", "path": "/triggers/{trigger_id}", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
86
104
  listTriggers: { "method": "GET", "path": "/triggers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
87
- rotateTriggerSecret: { "method": "POST", "path": "/triggers/{trigger_id}/secret", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
105
+ rotateTriggerSecret: { "method": "POST", "path": "/triggers/{trigger_id}/secret", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": true, "publicFields": [], "tagged": false },
88
106
  updateTrigger: { "method": "PATCH", "path": "/triggers/{trigger_id}", "pathParams": ["trigger_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
89
107
  getUsage: { "method": "GET", "path": "/usage", "pathParams": [], "multiSegment": [], "query": ["from", "to", "group_by"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
90
108
  deleteWebhook: { "method": "DELETE", "path": "/settings/webhook", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
@@ -103,10 +121,14 @@ export function resources(call) {
103
121
  archive: (agentId, options) => call("archiveAgent", [agentId], undefined, undefined, options),
104
122
  /** Create an agent home (POST /agents). */
105
123
  create: (body, params, options) => call("createAgent", [], body, params, options),
124
+ /** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
125
+ deleteAgentArchil: (agentId, options) => call("deleteAgentArchil", [agentId], undefined, undefined, options),
106
126
  /** Forget one of the agent's saved sign-ins (DELETE /agents/{agent_id}/sign-ins/{key}). */
107
127
  forgetSignIn: (agentId, key, options) => call("forgetSignIn", [agentId, key], undefined, undefined, options),
108
128
  /** One agent (GET /agents/{agent_id}). */
109
129
  get: (agentId, options) => call("getAgent", [agentId], undefined, undefined, options),
130
+ /** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
131
+ getAgentArchil: (agentId, options) => call("getAgentArchil", [agentId], undefined, undefined, options),
110
132
  /** List agents (GET /agents). */
111
133
  list: (params, options) => call("listAgents", [], undefined, params, options),
112
134
  /** The agent's runs index (GET /agents/{agent_id}/runs). */
@@ -139,6 +161,18 @@ export function resources(call) {
139
161
  write: (agentId, path, body, options) => call("writeHomeFile", [agentId, path], body, undefined, options),
140
162
  },
141
163
  learning: {
164
+ /** 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}). */
165
+ batch: (agentId, batchId, options) => call("getLearningBatch", [agentId, batchId], undefined, undefined, options),
166
+ /** Cancel a running learning batch (POST /agents/{agent_id}/learning/batches/{batch_id}/cancel). */
167
+ batchCancel: (agentId, batchId, options) => call("cancelLearningBatch", [agentId, batchId], undefined, undefined, options),
168
+ /** 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). */
169
+ batchStart: (agentId, body, options) => call("createLearningBatch", [agentId], body, undefined, options),
170
+ /** The agent's learning batches, latest first (GET /agents/{agent_id}/learning/batches). */
171
+ batches: (agentId, options) => call("listLearningBatches", [agentId], undefined, undefined, options),
172
+ /** 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). */
173
+ cost: (agentId, params, options) => call("getLearningCost", [agentId], undefined, params, options),
174
+ /** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
175
+ evals: (agentId, options) => call("listLearningEvals", [agentId], undefined, undefined, options),
142
176
  /** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
143
177
  get: (agentId, options) => call("getAgentLearning", [agentId], undefined, undefined, options),
144
178
  /** A page of the changes on the agent's main, newest first (GET /agents/{agent_id}/learning/log). */
@@ -147,29 +181,43 @@ export function resources(call) {
147
181
  notes: (agentId, params, options) => call("listLearningNotes", [agentId], undefined, params, options),
148
182
  /** 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}). */
149
183
  read: (agentId, file, options) => call("readLearningFile", [agentId, file], undefined, undefined, options),
184
+ /** 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). */
185
+ recordEval: (agentId, body, params, options) => call("recordLearningEval", [agentId], body, params, options),
150
186
  /** 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). */
151
187
  retire: (agentId, file, params, options) => call("retireLearningFile", [agentId, file], undefined, params, options),
188
+ /** 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). */
189
+ workflowRevisions: (agentId, name, params, options) => call("listLearnedWorkflowRevisions", [agentId, name], undefined, params, options),
152
190
  /** Edit a note (If-Match) or create one (If-None-Match: *) (PUT /agents/{agent_id}/learning/files/{file}). */
153
191
  write: (agentId, file, body, params, options) => call("writeLearningFile", [agentId, file], body, params, options),
154
192
  },
155
193
  local: {
194
+ /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
195
+ createPairing: (options) => call("createPairing", [], undefined, undefined, options),
196
+ /** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
197
+ deleteComputer: (computerId, options) => call("deleteComputer", [computerId], undefined, undefined, options),
156
198
  /** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
157
199
  deleteWorkspaceArchil: (options) => call("deleteWorkspaceArchil", [], undefined, undefined, options),
158
200
  /** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
159
201
  disconnectGitHub: (options) => call("disconnectGitHub", [], undefined, undefined, options),
160
202
  /** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
161
203
  getGitHubConnection: (options) => call("getGitHubConnection", [], undefined, undefined, options),
162
- /** Whether run folders are on an Archil disk (Mode 2), its settings, and whether its keys are saved (GET /workspace/archil). */
204
+ /** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
163
205
  getWorkspaceArchil: (options) => call("getWorkspaceArchil", [], undefined, undefined, options),
206
+ /** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). */
207
+ listComposioTools: (body, options) => call("listComposioTools", [], body, undefined, options),
208
+ /** The values a computer provider's picked keys offer, read from the vendor (GET /computers/{provider}/choices). */
209
+ listComputerChoices: (provider, options) => call("listComputerChoices", [provider], undefined, undefined, options),
164
210
  /** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
165
211
  listComputers: (options) => call("listComputers", [], undefined, undefined, options),
166
- /** Turn Mode 2 on: run folders on this Archil disk (PUT /workspace/archil). */
212
+ /** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
167
213
  putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
214
+ /** Have Composio make a managed MCP server for a toolkit's chosen actions, and save it as an MCP server (PUT /settings/mcp-servers/{name}/composio). */
215
+ saveComposioServer: (name, body, options) => call("saveComposioServer", [name], body, undefined, options),
168
216
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
169
217
  saveComputerKeys: (provider, body, options) => call("saveComputerKeys", [provider], body, undefined, options),
170
218
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
171
219
  testComputer: (provider, options) => call("testComputer", [provider], undefined, undefined, options),
172
- /** Test the Archil disk with its saved account key (POST /workspace/archil/test). */
220
+ /** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
173
221
  testWorkspaceArchil: (options) => call("testWorkspaceArchil", [], undefined, undefined, options),
174
222
  },
175
223
  mcpServers: {
@@ -201,6 +249,10 @@ export function resources(call) {
201
249
  archive: (runId, options) => call("archiveRun", [runId], undefined, undefined, options),
202
250
  /** End the run (POST /runs/{run_id}/cancel). */
203
251
  cancel: (runId, options) => call("cancelRun", [runId], undefined, undefined, options),
252
+ /** Send a run's computer one protocol call (POST /runs/{run_id}/computer/call). */
253
+ computerCall: (runId, body, options) => call("callRunComputer", [runId], body, undefined, options),
254
+ /** Let a held run's computer go (POST /runs/{run_id}/computer/release). */
255
+ computerRelease: (runId, body, options) => call("releaseRunComputer", [runId], body, undefined, options),
204
256
  /** Start a run of an agent another system owns, given inline (POST /runs). */
205
257
  createInlineRun: (body, params, options) => call("createInlineRun", [], body, params, options),
206
258
  /** The files the run wrote (GET /runs/{run_id}/files). */
@@ -229,6 +281,8 @@ export function resources(call) {
229
281
  resume: (runId, options) => call("resumeRun", [runId], undefined, undefined, options),
230
282
  /** Start a run (POST /agents/{agent_id}/runs). */
231
283
  start: (agentId, body, params, options) => call("createRun", [agentId], body, params, options),
284
+ /** Start a held run's agent (POST /runs/{run_id}/start). */
285
+ startHeld: (runId, body, options) => call("startRun", [runId], body, undefined, options),
232
286
  /** End the current turn (POST /runs/{run_id}/stop). */
233
287
  stop: (runId, options) => call("stopRun", [runId], undefined, undefined, options),
234
288
  /** Take over the run's desktop or phone (POST /runs/{run_id}/computer/take-over). */
@@ -286,7 +340,7 @@ export function resources(call) {
286
340
  /** The triggers: schedules and signed webhooks that start an agent's capped runs or message a run (GET /triggers). */
287
341
  list: (options) => call("listTriggers", [], undefined, undefined, options),
288
342
  /** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). */
289
- rotateSecret: (triggerId, options) => call("rotateTriggerSecret", [triggerId], undefined, undefined, options),
343
+ rotateSecret: (triggerId, body, options) => call("rotateTriggerSecret", [triggerId], body, undefined, options),
290
344
  /** Change a trigger, or turn it off and on (PATCH /triggers/{trigger_id}). */
291
345
  update: (triggerId, body, options) => call("updateTrigger", [triggerId], body, undefined, options),
292
346
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.35",
3
+ "version": "0.1.0-beta.37",
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",