@parcha/agentrun-client 0.1.0-beta.41 → 0.1.0-beta.42

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/NOTICE CHANGED
@@ -1,2 +1,4 @@
1
1
  AgentRun
2
2
  Copyright 2026 Parcha Labs, Inc.
3
+
4
+ The boxd computer provider (packages/computer/src/boxd.ts) was contributed by Michiel Voortman.
@@ -22,14 +22,22 @@ export interface BackendWorkflowBridge {
22
22
  readonly adapters: readonly ('runNode' | 'runJudge')[];
23
23
  bind(session: BackendLearningSession): BackendWorkflowBinding;
24
24
  }
25
+ /** The learning loop's numbers an agent definition may set (`learning: {...}`); each one left out is the server's default. */
26
+ export interface BackendLearningLoop {
27
+ compile_after?: number;
28
+ agree_min?: number;
29
+ alone_min?: number;
30
+ }
25
31
  export interface BackendLearningConfig extends ClientOptions {
26
32
  /** A stable agent id, shared by fresh runs of the same backend agent. */
27
33
  agentId: string;
28
34
  name?: string;
29
35
  /** The backend's standing policy. Wrappers add their explicit SDK system instructions to the source snapshot. */
30
36
  instructions?: string;
31
- /** Opt in when this wrapper first registers a missing agent (default false). Never changes an existing agent. */
32
- learning?: boolean;
37
+ /** Opt in when this wrapper first registers a missing agent (default false). Never changes an existing agent. An object
38
+ * is on, with the learning loop's numbers set on the agent: `compile_after` (completed runs before its job compiles
39
+ * into a workflow, default 20), `agree_min` and `alone_min` (the draft's one check, default 0.8 and 0.7). */
40
+ learning?: boolean | BackendLearningLoop;
33
41
  /** Explicit local MCP bridge over the backend's existing approved tool callbacks. */
34
42
  workflows?: BackendWorkflowBridge;
35
43
  /** Poll interval while waiting for checked learning (default 250 ms). */
package/dist/learning.js CHANGED
@@ -142,9 +142,12 @@ export class BackendLearningClient {
142
142
  catch (error) {
143
143
  if (!(error instanceof AgentRunRefused) || error.status !== 404)
144
144
  throw error;
145
+ // On (true, or the loop's numbers): workflows too with a bridge, else notes and skills alone.
146
+ const { learning } = this.#config;
147
+ const on = learning === true || (typeof learning === 'object' && learning !== null);
145
148
  const definition = {
146
149
  id: agentId, name: this.#config.name ?? agentId, instructions: source.instructions,
147
- sdk: { runtime: source.runtime }, learning: this.#config.learning === true ? (this.#config.workflows ? true : 'notes') : false,
150
+ sdk: { runtime: source.runtime }, learning: on ? (this.#config.workflows ? (learning === true ? true : { ...learning }) : 'notes') : false,
148
151
  };
149
152
  try {
150
153
  await this.#owner.agents.create({ definition }, { 'Idempotency-Key': uuid() });
@@ -175,6 +175,7 @@ export type DefinitionInput = {
175
175
  persistent?: boolean;
176
176
  surface?: "code" | "tools";
177
177
  exec?: boolean;
178
+ record?: boolean;
178
179
  };
179
180
  tool_settings?: {
180
181
  read?: {
@@ -219,6 +220,9 @@ export type DefinitionInput = {
219
220
  permission?: "allow" | "ask" | "deny";
220
221
  scope?: "thread" | "mailbox";
221
222
  };
223
+ calendar_events?: {
224
+ permission?: "allow" | "ask" | "deny";
225
+ };
222
226
  browser?: {
223
227
  provider?: "auto" | "browserbase" | "kernel" | "chrome";
224
228
  permission?: "allow" | "deny";
@@ -250,7 +254,11 @@ export type DefinitionInput = {
250
254
  [key: string]: unknown;
251
255
  };
252
256
  approvals?: "ask" | "never";
253
- learning?: true | false | "notes";
257
+ learning?: true | false | "notes" | {
258
+ compile_after?: number;
259
+ agree_min?: number;
260
+ alone_min?: number;
261
+ };
254
262
  checkout?: "pull_request" | "none";
255
263
  };
256
264
  export type JsonObject = Record<string, unknown>;
@@ -618,6 +626,13 @@ export type Run = {
618
626
  labels?: Record<string, string>;
619
627
  approvals?: "ask" | "never";
620
628
  last_progress_at?: string | null;
629
+ recordings?: Array<{
630
+ path: string;
631
+ computer: string;
632
+ seconds: number;
633
+ bytes: number;
634
+ finished: boolean;
635
+ }>;
621
636
  input?: Record<string, unknown> | null;
622
637
  file_ids?: Array<string>;
623
638
  claim?: {
@@ -1329,6 +1344,7 @@ export type GetAgentArchilResponse = {
1329
1344
  /** The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows (GET /agents/{agent_id}/learning/loop). */
1330
1345
  export type GetLearningLoopResponse = {
1331
1346
  agent: string;
1347
+ completed_runs: number;
1332
1348
  compiles: Array<{
1333
1349
  run_id: string;
1334
1350
  round: number;
@@ -1416,8 +1432,39 @@ export type ListLearningPromotionsResponse = {
1416
1432
  digest: string;
1417
1433
  at: string;
1418
1434
  decided: "promote" | "hold" | "replaying" | "queued" | "skipped";
1419
- source: "replay" | "dry_run" | "refit" | "graded";
1435
+ source: "check" | "replay" | "dry_run" | "refit" | "graded";
1420
1436
  reason: string;
1437
+ check?: {
1438
+ compile_after: number;
1439
+ agree_min: number;
1440
+ alone_min: number;
1441
+ attempt: 1 | 2;
1442
+ n?: number;
1443
+ agreed?: number;
1444
+ alone?: number;
1445
+ of?: Array<string>;
1446
+ cost_usd?: number | null;
1447
+ outcomes?: {
1448
+ answered: number;
1449
+ handed_back: number;
1450
+ failed: number;
1451
+ skipped_write: number;
1452
+ };
1453
+ skipped_tools?: Array<{
1454
+ tool: string;
1455
+ inputs: number;
1456
+ no_read_only_hint: boolean;
1457
+ }>;
1458
+ disagreements?: Array<{
1459
+ run: string;
1460
+ input: string;
1461
+ agent: string | null;
1462
+ draft?: string;
1463
+ escalated?: string;
1464
+ failed?: true;
1465
+ }>;
1466
+ stopped?: true;
1467
+ };
1421
1468
  replay?: {
1422
1469
  n: number;
1423
1470
  agree: number;
@@ -2366,6 +2413,7 @@ export type CreatePairingResponse = {
2366
2413
  code: string;
2367
2414
  expires_at: string;
2368
2415
  };
2416
+ /** Forget this server's calendar (DELETE /settings/calendar). */
2369
2417
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
2370
2418
  export type DeleteComposioSubscriptionResponse = {
2371
2419
  deleted: true;
@@ -2404,6 +2452,13 @@ export type FinishChatGPTSignInResponse = {
2404
2452
  expires_at?: string;
2405
2453
  models?: Array<string>;
2406
2454
  };
2455
+ /** This server's calendar: its host, name and time zone, never its address (GET /settings/calendar). */
2456
+ export type GetCalendarResponse = {
2457
+ configured: boolean;
2458
+ host: string | null;
2459
+ name: string | null;
2460
+ time_zone: string | null;
2461
+ };
2407
2462
  /** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
2408
2463
  export type GetChatGPTSignInResponse = {
2409
2464
  state: "signed_out" | "pending" | "signed_in" | "expired";
@@ -2675,6 +2730,16 @@ export type ReceiveHookComposioResponse = {
2675
2730
  export type RotateComposioSecretResponse = {
2676
2731
  rotated: true;
2677
2732
  };
2733
+ /** Save this server's calendar, its iCal address sealed (PUT /settings/calendar). */
2734
+ export type SaveCalendarBody = {
2735
+ url: string;
2736
+ };
2737
+ export type SaveCalendarResponse = {
2738
+ configured: boolean;
2739
+ host: string | null;
2740
+ name: string | null;
2741
+ time_zone: string | null;
2742
+ };
2678
2743
  /** 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). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
2679
2744
  export type SaveComposioServerBody = {
2680
2745
  api_key: string;
@@ -2824,6 +2889,14 @@ export type StartMcpOAuthBody = {
2824
2889
  export type StartMcpOAuthResponse = {
2825
2890
  authorization_url: string;
2826
2891
  };
2892
+ /** Read the calendar and say what it holds (POST /settings/calendar/test). */
2893
+ export type TestCalendarBody = {
2894
+ url?: string;
2895
+ };
2896
+ export type TestCalendarResponse = {
2897
+ ok: boolean;
2898
+ message: string;
2899
+ };
2827
2900
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
2828
2901
  export type TestComputerResponse = {
2829
2902
  ok: true;
@@ -3270,7 +3343,7 @@ export type GradeRunResponse = {
3270
3343
  path: "agent" | "handed_back" | "workflow" | "replay";
3271
3344
  workflow: string | null;
3272
3345
  workflow_digest: string | null;
3273
- feedback: "revise" | "look_back" | null;
3346
+ feedback: "look_back" | null;
3274
3347
  expected?: Record<string, unknown>;
3275
3348
  };
3276
3349
  /** A workflow run's graph, live (GET /runs/{run_id}/graph). */
@@ -3449,7 +3522,7 @@ export type GetRunLearningResponse = {
3449
3522
  path: "agent" | "handed_back" | "workflow" | "replay";
3450
3523
  workflow: string | null;
3451
3524
  workflow_digest: string | null;
3452
- feedback: "revise" | "look_back" | null;
3525
+ feedback: "look_back" | null;
3453
3526
  feedback_status: "running" | "ended" | "not_run" | null;
3454
3527
  };
3455
3528
  } | null;
@@ -4075,6 +4148,9 @@ export type PutToolSettingsBody = {
4075
4148
  email_file?: {
4076
4149
  permission?: "allow" | "ask" | "deny";
4077
4150
  };
4151
+ calendar_events?: {
4152
+ permission?: "allow" | "ask" | "deny";
4153
+ };
4078
4154
  browser?: {
4079
4155
  provider?: "auto" | "browserbase" | "kernel" | "chrome";
4080
4156
  permission?: "allow" | "deny";
@@ -4215,6 +4291,8 @@ export type CreateTriggerBody = {
4215
4291
  every_s?: number;
4216
4292
  items?: string;
4217
4293
  id?: string;
4294
+ updated?: string;
4295
+ fields?: Array<string>;
4218
4296
  accept?: Array<{
4219
4297
  event: string;
4220
4298
  actions?: Array<string>;
@@ -4344,6 +4422,8 @@ export type CreateTriggerResponse = {
4344
4422
  every_s: number;
4345
4423
  items?: string;
4346
4424
  id?: string;
4425
+ updated?: string;
4426
+ fields?: Array<string>;
4347
4427
  accept?: Array<{
4348
4428
  event: string;
4349
4429
  actions?: Array<string>;
@@ -4572,6 +4652,8 @@ export type GetTriggerResponse = {
4572
4652
  every_s: number;
4573
4653
  items?: string;
4574
4654
  id?: string;
4655
+ updated?: string;
4656
+ fields?: Array<string>;
4575
4657
  accept?: Array<{
4576
4658
  event: string;
4577
4659
  actions?: Array<string>;
@@ -4750,6 +4832,8 @@ export type ListTriggersResponse = {
4750
4832
  every_s: number;
4751
4833
  items?: string;
4752
4834
  id?: string;
4835
+ updated?: string;
4836
+ fields?: Array<string>;
4753
4837
  accept?: Array<{
4754
4838
  event: string;
4755
4839
  actions?: Array<string>;
@@ -4932,6 +5016,8 @@ export type UpdateTriggerBody = {
4932
5016
  every_s?: number;
4933
5017
  items?: string;
4934
5018
  id?: string;
5019
+ updated?: string;
5020
+ fields?: Array<string>;
4935
5021
  accept?: Array<{
4936
5022
  event: string;
4937
5023
  actions?: Array<string>;
@@ -5058,6 +5144,8 @@ export type UpdateTriggerResponse = {
5058
5144
  every_s: number;
5059
5145
  items?: string;
5060
5146
  id?: string;
5147
+ updated?: string;
5148
+ fields?: Array<string>;
5061
5149
  accept?: Array<{
5062
5150
  event: string;
5063
5151
  actions?: Array<string>;
@@ -5369,6 +5457,8 @@ export declare function resources(call: Call): {
5369
5457
  local: {
5370
5458
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
5371
5459
  createPairing: (options?: RequestOptions) => Promise<CreatePairingResponse>;
5460
+ /** Forget this server's calendar (DELETE /settings/calendar). */
5461
+ deleteCalendar: (options?: RequestOptions) => Promise<void>;
5372
5462
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
5373
5463
  deleteComposioSubscription: (name: string, options?: RequestOptions) => Promise<DeleteComposioSubscriptionResponse>;
5374
5464
  /** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
@@ -5381,6 +5471,8 @@ export declare function resources(call: Call): {
5381
5471
  disconnectGitHub: (options?: RequestOptions) => Promise<DisconnectGitHubResponse>;
5382
5472
  /** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
5383
5473
  finishChatGptsignIn: (body: FinishChatGPTSignInBody, options?: RequestOptions) => Promise<FinishChatGPTSignInResponse>;
5474
+ /** This server's calendar: its host, name and time zone, never its address (GET /settings/calendar). */
5475
+ getCalendar: (options?: RequestOptions) => Promise<GetCalendarResponse>;
5384
5476
  /** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
5385
5477
  getChatGptsignIn: (options?: RequestOptions) => Promise<GetChatGPTSignInResponse>;
5386
5478
  /** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
@@ -5405,6 +5497,8 @@ export declare function resources(call: Call): {
5405
5497
  receiveHookComposio: (hook: string, body: RawBody, options?: BodyOptions) => Promise<ReceiveHookComposioResponse>;
5406
5498
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
5407
5499
  rotateComposioSecret: (name: string, options?: RequestOptions) => Promise<RotateComposioSecretResponse>;
5500
+ /** Save this server's calendar, its iCal address sealed (PUT /settings/calendar). */
5501
+ saveCalendar: (body: SaveCalendarBody, options?: RequestOptions) => Promise<SaveCalendarResponse>;
5408
5502
  /** 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). */
5409
5503
  saveComposioServer: (name: string, body: SaveComposioServerBody, options?: RequestOptions) => Promise<SaveComposioServerResponse>;
5410
5504
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
@@ -5415,6 +5509,8 @@ export declare function resources(call: Call): {
5415
5509
  signOutChatGpt: (options?: RequestOptions) => Promise<SignOutChatGPTResponse>;
5416
5510
  /** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
5417
5511
  startChatGptsignIn: (options?: RequestOptions) => Promise<StartChatGPTSignInResponse>;
5512
+ /** Read the calendar and say what it holds (POST /settings/calendar/test). */
5513
+ testCalendar: (body?: TestCalendarBody, options?: RequestOptions) => Promise<TestCalendarResponse>;
5418
5514
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
5419
5515
  testComputer: (provider: string, options?: RequestOptions) => Promise<TestComputerResponse>;
5420
5516
  /** Sign in to the email account's IMAP and SMTP servers, sending nothing (POST /settings/email/test). */
@@ -52,12 +52,14 @@ export const OPERATIONS = {
52
52
  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 },
53
53
  connectGitHub: { "method": "POST", "path": "/integrations/github/connect", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
54
54
  createPairing: { "method": "POST", "path": "/computers/pairings", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
55
+ deleteCalendar: { "method": "DELETE", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
55
56
  deleteComposioSubscription: { "method": "DELETE", "path": "/settings/mcp-servers/{name}/composio/subscription", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
56
57
  deleteComputer: { "method": "DELETE", "path": "/computers/{computer_id}", "pathParams": ["computer_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
57
58
  deleteEmailAccount: { "method": "DELETE", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
58
59
  deleteWorkspaceArchil: { "method": "DELETE", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
59
60
  disconnectGitHub: { "method": "DELETE", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
60
61
  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 },
62
+ getCalendar: { "method": "GET", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
61
63
  getChatGPTSignIn: { "method": "GET", "path": "/settings/chatgpt", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
62
64
  getEmailAccount: { "method": "GET", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
63
65
  getGitHubConnection: { "method": "GET", "path": "/integrations/github", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -72,12 +74,14 @@ export const OPERATIONS = {
72
74
  putWorkspaceArchil: { "method": "PUT", "path": "/workspace/archil", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
73
75
  receiveHook_composio: { "method": "POST", "path": "/hooks/composio/{hook}", "pathParams": ["hook"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
74
76
  rotateComposioSecret: { "method": "POST", "path": "/settings/mcp-servers/{name}/composio/rotate-secret", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
77
+ saveCalendar: { "method": "PUT", "path": "/settings/calendar", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
75
78
  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 },
76
79
  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 },
77
80
  saveEmailAccount: { "method": "PUT", "path": "/settings/email", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
78
81
  signOutChatGPT: { "method": "DELETE", "path": "/settings/chatgpt", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
79
82
  startChatGPTSignIn: { "method": "POST", "path": "/settings/chatgpt/sign-in", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
80
83
  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 },
84
+ testCalendar: { "method": "POST", "path": "/settings/calendar/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
81
85
  testComputer: { "method": "POST", "path": "/computers/{provider}/test", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
82
86
  testEmailAccount: { "method": "POST", "path": "/settings/email/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
83
87
  testWorkspaceArchil: { "method": "POST", "path": "/workspace/archil/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -267,6 +271,8 @@ export function resources(call) {
267
271
  local: {
268
272
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
269
273
  createPairing: (options) => call("createPairing", [], undefined, undefined, options),
274
+ /** Forget this server's calendar (DELETE /settings/calendar). */
275
+ deleteCalendar: (options) => call("deleteCalendar", [], undefined, undefined, options),
270
276
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
271
277
  deleteComposioSubscription: (name, options) => call("deleteComposioSubscription", [name], undefined, undefined, options),
272
278
  /** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
@@ -279,6 +285,8 @@ export function resources(call) {
279
285
  disconnectGitHub: (options) => call("disconnectGitHub", [], undefined, undefined, options),
280
286
  /** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
281
287
  finishChatGptsignIn: (body, options) => call("finishChatGPTSignIn", [], body, undefined, options),
288
+ /** This server's calendar: its host, name and time zone, never its address (GET /settings/calendar). */
289
+ getCalendar: (options) => call("getCalendar", [], undefined, undefined, options),
282
290
  /** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
283
291
  getChatGptsignIn: (options) => call("getChatGPTSignIn", [], undefined, undefined, options),
284
292
  /** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
@@ -303,6 +311,8 @@ export function resources(call) {
303
311
  receiveHookComposio: (hook, body, options) => call("receiveHook_composio", [hook], body, undefined, options),
304
312
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
305
313
  rotateComposioSecret: (name, options) => call("rotateComposioSecret", [name], undefined, undefined, options),
314
+ /** Save this server's calendar, its iCal address sealed (PUT /settings/calendar). */
315
+ saveCalendar: (body, options) => call("saveCalendar", [], body, undefined, options),
306
316
  /** 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). */
307
317
  saveComposioServer: (name, body, options) => call("saveComposioServer", [name], body, undefined, options),
308
318
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
@@ -313,6 +323,8 @@ export function resources(call) {
313
323
  signOutChatGpt: (options) => call("signOutChatGPT", [], undefined, undefined, options),
314
324
  /** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
315
325
  startChatGptsignIn: (options) => call("startChatGPTSignIn", [], undefined, undefined, options),
326
+ /** Read the calendar and say what it holds (POST /settings/calendar/test). */
327
+ testCalendar: (body, options) => call("testCalendar", [], body, undefined, options),
316
328
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
317
329
  testComputer: (provider, options) => call("testComputer", [provider], undefined, undefined, options),
318
330
  /** Sign in to the email account's IMAP and SMTP servers, sending nothing (POST /settings/email/test). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.41",
3
+ "version": "0.1.0-beta.42",
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.41"
78
+ "@parcha/agentrun-dsl": "0.1.0-beta.42"
79
79
  }
80
80
  }