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

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
@@ -59,6 +59,11 @@ const bytes = await client.runs.readFile(done.run_id, "notes.md"); // a Uint8Arr
59
59
  const response = await client.runs.readFile(done.run_id, "notes.md", undefined, { stream: true }); // the Response, unread
60
60
  ```
61
61
 
62
+ With `{ stream: true }` a download resolves to a `Response` of the client's own: the server's status and headers on it
63
+ (its `url` is empty), its body unread. A read of that body that fails (the call's `timeoutMs` passes before the body
64
+ ends, or the body is cut before its length) rejects with `AgentRunUnreachable` and the failure's code, or with your
65
+ `signal`'s reason once you aborted, never the platform's own error. Nothing is tried again: what was read is yours.
66
+
62
67
  `runs.follow` reads the route's event stream and resumes a dropped connection with `Last-Event-ID`, so no page comes twice.
63
68
  Only the server's silence counts as a dropped connection (`idleMs`, default 45000), never the time your loop spends on a
64
69
  page.
package/dist/client.js CHANGED
@@ -123,6 +123,8 @@ export class AgentRun {
123
123
  streamed: op.answer === "bytes" && options?.stream === true,
124
124
  });
125
125
  const answer = await readAnswer(op, route, response, options?.stream === true, secretOp ? scrubberOf(secrets) : undefined);
126
+ if (answer instanceof Response)
127
+ return guarded(answer, this.baseUrl, options?.signal);
126
128
  return op.tagged ? { body: answer, etag: response.headers.get("etag") } : answer;
127
129
  }
128
130
  /** One request to the server with the key: tried again when it may be, its redirects followed only within the base
@@ -135,6 +137,10 @@ export class AgentRun {
135
137
  throw LATE;
136
138
  const timeout = AbortSignal.timeout(wholeMs(Math.min(x.timeoutMs ?? this.timeoutMs, left)));
137
139
  const signal = x.signal ? AbortSignal.any([x.signal, timeout]) : timeout;
140
+ // This try's timer is the wait's deadline when the deadline is what bounds it. A timer can fire a little before the
141
+ // clock reads the deadline, so the deadline is reached when that timer fired, or when the clock says so.
142
+ const bounded = left <= (x.timeoutMs ?? this.timeoutMs);
143
+ const late = () => (bounded && timeout.aborted) || Date.now() >= deadline;
138
144
  let response;
139
145
  try {
140
146
  response = await this.#follow(x, signal);
@@ -147,7 +153,7 @@ export class AgentRun {
147
153
  throw x.signal.reason;
148
154
  if (error instanceof AgentRunError)
149
155
  throw error;
150
- if (Date.now() >= deadline)
156
+ if (late())
151
157
  throw LATE;
152
158
  const cause = causeOf(error);
153
159
  // A server never reached is unreachable at once; a dropped connection is tried again, even on the first request,
@@ -167,7 +173,7 @@ export class AgentRun {
167
173
  }
168
174
  if (response.ok)
169
175
  return response;
170
- throw await refusal(x, response, this.#apiKey);
176
+ throw await refusal(x, response, this.#apiKey, late);
171
177
  }
172
178
  };
173
179
  /** fetch with the key, following a redirect only for a GET and only within the base URL's origin: the key never goes
@@ -208,7 +214,7 @@ function secretAt(method, url) {
208
214
  * read into a message. A caller's abort while the body is still coming is thrown as the caller's own reason, and a read
209
215
  * that ends at or past the exchange's deadline (a wait's timeout) as LATE: cancelled or late work is never reported as a
210
216
  * refusal or a bad key. */
211
- async function refusal(x, response, apiKey) {
217
+ async function refusal(x, response, apiKey, late) {
212
218
  let error;
213
219
  try {
214
220
  const parsed = JSON.parse(new TextDecoder().decode(await response.arrayBuffer()));
@@ -218,7 +224,7 @@ async function refusal(x, response, apiKey) {
218
224
  catch {
219
225
  if (x.signal?.aborted)
220
226
  throw x.signal.reason;
221
- if (Date.now() >= (x.deadline ?? Infinity))
227
+ if (late())
222
228
  throw LATE;
223
229
  error = undefined;
224
230
  }
@@ -233,6 +239,32 @@ async function refusal(x, response, apiKey) {
233
239
  return new AgentRunRefused(x.route, response.status, code, error, undefined, wait > 0 ? wait : undefined);
234
240
  }
235
241
  const badAnswer = (route, status, what) => new AgentRunRefused(route, status, "bad_answer", undefined, `The server's answer to ${route} is not ${what}.`);
242
+ /** A download's Response, asked to stream, with its body guarded: a read that fails (the call's timeout passes before
243
+ * the body ends, the body is cut before its length) rejects with AgentRunUnreachable and the failure's code, or with the
244
+ * caller's own reason once its signal aborted, never the platform's error. It is a Response of the client's own, the
245
+ * server's status and headers on it (its `url` is empty); nothing is tried again, since what was read is the caller's. */
246
+ function guarded(response, baseUrl, signal) {
247
+ const source = response.body;
248
+ if (source === null)
249
+ return response;
250
+ const reader = source.getReader();
251
+ const body = new ReadableStream({
252
+ async pull(controller) {
253
+ try {
254
+ const { done, value } = await reader.read();
255
+ if (done)
256
+ controller.close();
257
+ else
258
+ controller.enqueue(value);
259
+ }
260
+ catch (error) {
261
+ controller.error(signal?.aborted ? signal.reason : new AgentRunUnreachable(baseUrl, causeOf(error)));
262
+ }
263
+ },
264
+ cancel: (reason) => reader.cancel(reason),
265
+ });
266
+ return new Response(body, { status: response.status, statusText: response.statusText, headers: response.headers });
267
+ }
236
268
  /** A success's body as the operation answers: JSON parsed (a secret body's values cut from it), text as a string, a
237
269
  * file's bytes as they came, or the Response itself for a download asked to stream. */
238
270
  async function readAnswer(op, route, response, stream, scrub) {
package/dist/http.d.ts CHANGED
@@ -28,7 +28,11 @@ export declare const MAX_RETRY_AFTER_MS = 60000;
28
28
  export declare const wholeMs: (ms: number) => number;
29
29
  /** The wait before try `tries + 1`: doubling up to its cap, and never under the server's own (`floor`). */
30
30
  export declare const backoff: (tries: number, floor?: number) => number;
31
- /** Waits `ms`, or rejects with the signal's reason once it aborts. */
31
+ /**
32
+ * Waits `ms` by the wall clock (Date.now), or rejects with the signal's reason once it aborts. A timer can fire up to a
33
+ * millisecond before the wall clock says `ms` have passed (its loop clock counts whole milliseconds), so the rest is
34
+ * waited out: a server's Retry-After is never cut short.
35
+ */
32
36
  export declare function pause(ms: number, signal?: AbortSignal): Promise<void>;
33
37
  /** A path argument checked and encoded: whole, or, for a file path, segment by segment. One that fetch or the server
34
38
  * would read as another route (empty, `.`, `..`, plain or encoded, or an encoded slash in a file path) is refused. */
package/dist/http.js CHANGED
@@ -14,13 +14,28 @@ const MAX_BACKOFF_MS = 30_000;
14
14
  export const wholeMs = (ms) => Math.max(1, Math.ceil(ms));
15
15
  /** The wait before try `tries + 1`: doubling up to its cap, and never under the server's own (`floor`). */
16
16
  export const backoff = (tries, floor = 0) => Math.max(floor, Math.min(MAX_BACKOFF_MS, BACKOFF_MS * 2 ** (tries - 1)));
17
- /** Waits `ms`, or rejects with the signal's reason once it aborts. */
17
+ /**
18
+ * Waits `ms` by the wall clock (Date.now), or rejects with the signal's reason once it aborts. A timer can fire up to a
19
+ * millisecond before the wall clock says `ms` have passed (its loop clock counts whole milliseconds), so the rest is
20
+ * waited out: a server's Retry-After is never cut short.
21
+ */
18
22
  export function pause(ms, signal) {
19
23
  return new Promise((resolve, reject) => {
20
24
  if (signal?.aborted)
21
25
  return reject(signal.reason);
22
- const timer = setTimeout(() => (signal?.removeEventListener("abort", stop), resolve()), wholeMs(ms));
26
+ const until = Date.now() + wholeMs(ms);
27
+ let timer;
28
+ const arm = (left) => {
29
+ timer = setTimeout(() => {
30
+ const rest = until - Date.now();
31
+ if (rest > 0)
32
+ return arm(rest);
33
+ signal?.removeEventListener("abort", stop);
34
+ resolve();
35
+ }, left);
36
+ };
23
37
  const stop = () => (clearTimeout(timer), reject(signal.reason));
38
+ arm(wholeMs(ms));
24
39
  signal?.addEventListener("abort", stop, { once: true });
25
40
  });
26
41
  }
@@ -28,6 +28,10 @@ export type DefinitionInput = {
28
28
  computer?: {
29
29
  kind: "none" | "sandbox" | "desktop" | "phone" | "browser";
30
30
  provider?: string;
31
+ gpu?: {
32
+ type: string;
33
+ count: number;
34
+ };
31
35
  };
32
36
  tool_settings?: {
33
37
  read?: {
@@ -41,6 +45,7 @@ export type DefinitionInput = {
41
45
  };
42
46
  bash?: {
43
47
  permission?: "allow" | "ask" | "deny";
48
+ policy?: "read-only";
44
49
  };
45
50
  ask_person?: {
46
51
  permission?: "allow" | "deny";
@@ -377,7 +382,7 @@ export type Run = {
377
382
  epoch: number;
378
383
  until: string;
379
384
  } | null;
380
- place?: {
385
+ place: {
381
386
  mode: "runner";
382
387
  } | {
383
388
  mode: "sandbox";
@@ -582,7 +587,7 @@ export type Capabilities = {
582
587
  platform?: string;
583
588
  };
584
589
  runtimes: Array<string>;
585
- models?: {
590
+ models: {
586
591
  source: "managed" | "chatgpt" | "env" | "faux" | "gateway" | "providers";
587
592
  default?: string | null;
588
593
  fast?: string | null;
@@ -595,13 +600,13 @@ export type Capabilities = {
595
600
  features: Features;
596
601
  regions: Array<Region>;
597
602
  limits: Limits;
598
- learning?: {
603
+ learning: {
599
604
  grade_model: string | null;
600
605
  pending: true;
601
606
  approve: boolean;
602
607
  approve_needs?: "password";
603
608
  };
604
- places?: {
609
+ places: {
605
610
  modes: Array<"runner" | "sandbox">;
606
611
  boxes: Array<{
607
612
  id: "bwrap" | "docker" | "modal" | "daytona";
@@ -610,8 +615,9 @@ export type Capabilities = {
610
615
  reason?: string;
611
616
  network?: "allowlist" | "none";
612
617
  network_reason?: string;
618
+ host_addresses?: Array<string>;
613
619
  }>;
614
- default_place?: {
620
+ default_place: {
615
621
  mode: "runner";
616
622
  } | {
617
623
  mode: "sandbox";
@@ -630,7 +636,7 @@ export type Capabilities = {
630
636
  reason?: string;
631
637
  installs?: "on_first_use";
632
638
  }>;
633
- tools?: Array<{
639
+ tools: Array<{
634
640
  name: string;
635
641
  summary: string;
636
642
  blurb?: string;
@@ -1209,6 +1215,23 @@ export type ListComputersResponse = {
1209
1215
  required: Array<string>;
1210
1216
  ready: boolean;
1211
1217
  why?: string;
1218
+ gpu?: {
1219
+ types: Array<string>;
1220
+ max: number;
1221
+ isolation?: "container" | "gvisor" | "microvm" | "vm" | "machine";
1222
+ preemptible?: boolean;
1223
+ stopDeletes?: boolean;
1224
+ region?: string;
1225
+ perGpu?: {
1226
+ cpus: number;
1227
+ memoryMb: number;
1228
+ diskMb: number;
1229
+ };
1230
+ mounts?: Array<string>;
1231
+ fence?: "netns" | "userns-netns";
1232
+ why?: string;
1233
+ };
1234
+ network?: string;
1212
1235
  }>;
1213
1236
  why?: string;
1214
1237
  }>;
@@ -1236,50 +1259,6 @@ export type PutWorkspaceArchilResponse = {
1236
1259
  s3Url?: string;
1237
1260
  image?: string;
1238
1261
  };
1239
- /** Fire a GitHub trigger: a request it checks, no token (POST /hooks/github). */
1240
- export type ReceiveHookGithubResponse = {
1241
- firings: Array<{
1242
- key: string;
1243
- by: "schedule" | "manual" | "webhook" | "github";
1244
- nominal_at: string;
1245
- status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
1246
- at: string;
1247
- run_id: string | null;
1248
- reason: string | null;
1249
- error: {
1250
- code: string;
1251
- message: string;
1252
- } | null;
1253
- count?: number;
1254
- attempts?: number;
1255
- retry_at?: string;
1256
- catch_up?: true;
1257
- } | {
1258
- ok: "duplicate";
1259
- }>;
1260
- } | {
1261
- ok: "ignored";
1262
- } | Record<string, unknown> | {
1263
- firings: Array<{
1264
- key: string;
1265
- by: "schedule" | "manual" | "webhook" | "github";
1266
- nominal_at: string;
1267
- status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
1268
- at: string;
1269
- run_id: string | null;
1270
- reason: string | null;
1271
- error: {
1272
- code: string;
1273
- message: string;
1274
- } | null;
1275
- count?: number;
1276
- attempts?: number;
1277
- retry_at?: string;
1278
- catch_up?: true;
1279
- } | {
1280
- ok: "duplicate";
1281
- }>;
1282
- };
1283
1262
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
1284
1263
  export type SaveComputerKeysBody = Record<string, string | null>;
1285
1264
  export type SaveComputerKeysResponse = {
@@ -1295,6 +1274,23 @@ export type SaveComputerKeysResponse = {
1295
1274
  required: Array<string>;
1296
1275
  ready: boolean;
1297
1276
  why?: string;
1277
+ gpu?: {
1278
+ types: Array<string>;
1279
+ max: number;
1280
+ isolation?: "container" | "gvisor" | "microvm" | "vm" | "machine";
1281
+ preemptible?: boolean;
1282
+ stopDeletes?: boolean;
1283
+ region?: string;
1284
+ perGpu?: {
1285
+ cpus: number;
1286
+ memoryMb: number;
1287
+ diskMb: number;
1288
+ };
1289
+ mounts?: Array<string>;
1290
+ fence?: "netns" | "userns-netns";
1291
+ why?: string;
1292
+ };
1293
+ network?: string;
1298
1294
  };
1299
1295
  /** 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. */
1300
1296
  export type StartMcpOAuthBody = {
@@ -1398,7 +1394,6 @@ export type ListMcpServersResponse = {
1398
1394
  updated_at: string;
1399
1395
  secret?: SecretMeta;
1400
1396
  }>;
1401
- file_unreadable?: true;
1402
1397
  };
1403
1398
  /** This server's OAuth client metadata document (GET /settings/mcp-servers/oauth/client.json). */
1404
1399
  export type McpOAuthClientResponse = Record<string, unknown>;
@@ -1971,6 +1966,9 @@ export type ListTemplatesResponse = {
1971
1966
  } | null;
1972
1967
  effort: string | null;
1973
1968
  tools: Array<string> | null;
1969
+ tool_policy: {
1970
+ bash: "read-only";
1971
+ } | null;
1974
1972
  mcp: Array<{
1975
1973
  server: string;
1976
1974
  required: boolean;
@@ -1987,6 +1985,7 @@ export type ListTemplatesResponse = {
1987
1985
  description: string;
1988
1986
  pattern?: string;
1989
1987
  enum?: Array<string | number | boolean>;
1988
+ format?: "cron" | "timezone";
1990
1989
  default?: string | number | boolean;
1991
1990
  }>;
1992
1991
  secrets: Array<string>;
@@ -2030,7 +2029,7 @@ export type ListToolKeysResponse = {
2030
2029
  } | null;
2031
2030
  }>;
2032
2031
  reenter: {
2033
- reason: "seal_key_missing" | "seal_key_changed" | "file_unreadable";
2032
+ reason: "seal_key_changed" | "file_unreadable";
2034
2033
  fields: Array<string>;
2035
2034
  } | null;
2036
2035
  };
@@ -2749,7 +2748,7 @@ export type GetWebhookResponse = {
2749
2748
  configured: true;
2750
2749
  url: string;
2751
2750
  secret: SecretMeta;
2752
- signing: "sealed" | "seal_key_missing" | "unreadable";
2751
+ signing: "sealed" | "unreadable";
2753
2752
  disabled: {
2754
2753
  at: string;
2755
2754
  reason: string;
@@ -2775,7 +2774,7 @@ export type SaveWebhookResponse = {
2775
2774
  configured: true;
2776
2775
  url: string;
2777
2776
  secret: SecretMeta;
2778
- signing: "sealed" | "seal_key_missing" | "unreadable";
2777
+ signing: "sealed" | "unreadable";
2779
2778
  disabled: {
2780
2779
  at: string;
2781
2780
  reason: string;
@@ -2785,7 +2784,7 @@ export type SaveWebhookResponse = {
2785
2784
  configured: true;
2786
2785
  url: string;
2787
2786
  secret: SecretMeta;
2788
- signing: "sealed" | "seal_key_missing" | "unreadable";
2787
+ signing: "sealed" | "unreadable";
2789
2788
  disabled: {
2790
2789
  at: string;
2791
2790
  reason: string;
@@ -2796,7 +2795,7 @@ export type SaveWebhookResponse = {
2796
2795
  configured: true;
2797
2796
  url: string;
2798
2797
  secret: SecretMeta;
2799
- signing: "sealed" | "seal_key_missing" | "unreadable";
2798
+ signing: "sealed" | "unreadable";
2800
2799
  disabled: {
2801
2800
  at: string;
2802
2801
  reason: string;
@@ -2888,8 +2887,6 @@ export declare function resources(call: Call): {
2888
2887
  write: (agentId: string, file: string, body: WriteLearningFileBody | RawBody, params?: WriteLearningFileParams, options?: BodyOptions) => Promise<Tagged<string>>;
2889
2888
  };
2890
2889
  local: {
2891
- /** Start Connect GitHub: the app-manifest form the console posts to GitHub (POST /integrations/github/connect). */
2892
- connectGitHub: (body?: ConnectGitHubBody, options?: RequestOptions) => Promise<ConnectGitHubResponse>;
2893
2890
  /** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
2894
2891
  deleteWorkspaceArchil: (options?: RequestOptions) => Promise<DeleteWorkspaceArchilResponse>;
2895
2892
  /** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
@@ -2898,20 +2895,12 @@ export declare function resources(call: Call): {
2898
2895
  getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
2899
2896
  /** Whether run folders are on an Archil disk (Mode 2), its settings, and whether its keys are saved (GET /workspace/archil). */
2900
2897
  getWorkspaceArchil: (options?: RequestOptions) => Promise<GetWorkspaceArchilResponse>;
2901
- /** Where GitHub sends the owner's browser back with the new App's code (GET /integrations/github/callback). */
2902
- gitHubCallback: (params?: GitHubCallbackParams, options?: RequestOptions) => Promise<void>;
2903
- /** Where GitHub sends the browser once the App is installed (GET /integrations/github/installed). */
2904
- gitHubInstalled: (params?: GitHubInstalledParams, options?: RequestOptions) => Promise<void>;
2905
2898
  /** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
2906
2899
  listComputers: (options?: RequestOptions) => Promise<ListComputersResponse>;
2907
2900
  /** Turn Mode 2 on: run folders on this Archil disk (PUT /workspace/archil). */
2908
2901
  putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
2909
- /** Fire a GitHub trigger: a request it checks, no token (POST /hooks/github). */
2910
- receiveHookGithub: (body: RawBody, options?: BodyOptions) => Promise<ReceiveHookGithubResponse>;
2911
2902
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
2912
2903
  saveComputerKeys: (provider: string, body: SaveComputerKeysBody, options?: RequestOptions) => Promise<SaveComputerKeysResponse>;
2913
- /** Start signing in to an MCP server with OAuth: the page the owner opens (POST /settings/mcp-servers/{name}/oauth/start). */
2914
- startMcpOauth: (name: string, body: StartMcpOAuthBody, options?: RequestOptions) => Promise<StartMcpOAuthResponse>;
2915
2904
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
2916
2905
  testComputer: (provider: string, options?: RequestOptions) => Promise<TestComputerResponse>;
2917
2906
  /** Test the Archil disk with its saved account key (POST /workspace/archil/test). */
@@ -32,7 +32,6 @@ export const OPERATIONS = {
32
32
  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 },
33
33
  listComputers: { "method": "GET", "path": "/computers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
34
34
  putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
35
- receiveHook_github: { "method": "POST", "path": "/hooks/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
36
35
  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 },
37
36
  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 },
38
37
  testComputer: { "method": "POST", "path": "/computers/{provider}/test", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -154,8 +153,6 @@ export function resources(call) {
154
153
  write: (agentId, file, body, params, options) => call("writeLearningFile", [agentId, file], body, params, options),
155
154
  },
156
155
  local: {
157
- /** Start Connect GitHub: the app-manifest form the console posts to GitHub (POST /integrations/github/connect). */
158
- connectGitHub: (body, options) => call("connectGitHub", [], body, undefined, options),
159
156
  /** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
160
157
  deleteWorkspaceArchil: (options) => call("deleteWorkspaceArchil", [], undefined, undefined, options),
161
158
  /** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
@@ -164,20 +161,12 @@ export function resources(call) {
164
161
  getGitHubConnection: (options) => call("getGitHubConnection", [], undefined, undefined, options),
165
162
  /** Whether run folders are on an Archil disk (Mode 2), its settings, and whether its keys are saved (GET /workspace/archil). */
166
163
  getWorkspaceArchil: (options) => call("getWorkspaceArchil", [], undefined, undefined, options),
167
- /** Where GitHub sends the owner's browser back with the new App's code (GET /integrations/github/callback). */
168
- gitHubCallback: (params, options) => call("gitHubCallback", [], undefined, params, options),
169
- /** Where GitHub sends the browser once the App is installed (GET /integrations/github/installed). */
170
- gitHubInstalled: (params, options) => call("gitHubInstalled", [], undefined, params, options),
171
164
  /** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
172
165
  listComputers: (options) => call("listComputers", [], undefined, undefined, options),
173
166
  /** Turn Mode 2 on: run folders on this Archil disk (PUT /workspace/archil). */
174
167
  putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
175
- /** Fire a GitHub trigger: a request it checks, no token (POST /hooks/github). */
176
- receiveHookGithub: (body, options) => call("receiveHook_github", [], body, undefined, options),
177
168
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
178
169
  saveComputerKeys: (provider, body, options) => call("saveComputerKeys", [provider], body, undefined, options),
179
- /** Start signing in to an MCP server with OAuth: the page the owner opens (POST /settings/mcp-servers/{name}/oauth/start). */
180
- startMcpOauth: (name, body, options) => call("startMcpOAuth", [name], body, undefined, options),
181
170
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
182
171
  testComputer: (provider, options) => call("testComputer", [provider], undefined, undefined, options),
183
172
  /** Test the Archil disk with its saved account key (POST /workspace/archil/test). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.32",
3
+ "version": "0.1.0-beta.34",
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",