@parcha/agentrun-client 0.1.0-beta.40 → 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>;
@@ -360,6 +368,7 @@ export type RunSummary = {
360
368
  revision: string;
361
369
  kind: "agentic" | "workflow";
362
370
  archived_at: string | null;
371
+ labels?: Record<string, string>;
363
372
  effort?: Effort;
364
373
  error?: RunError | null;
365
374
  learning?: {
@@ -535,6 +544,7 @@ export type RunCreateInline = {
535
544
  mcp_auth?: Record<string, {
536
545
  headers: Record<string, string>;
537
546
  }>;
547
+ labels?: Record<string, string>;
538
548
  workflow_first?: boolean;
539
549
  learning?: "use";
540
550
  repo?: string;
@@ -613,8 +623,16 @@ export type Run = {
613
623
  revision: string;
614
624
  kind: "agentic" | "workflow";
615
625
  archived_at: string | null;
626
+ labels?: Record<string, string>;
616
627
  approvals?: "ask" | "never";
617
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
+ }>;
618
636
  input?: Record<string, unknown> | null;
619
637
  file_ids?: Array<string>;
620
638
  claim?: {
@@ -770,6 +788,7 @@ export type RunCreate = {
770
788
  mcp_auth?: Record<string, {
771
789
  headers: Record<string, string>;
772
790
  }>;
791
+ labels?: Record<string, string>;
773
792
  workflow_first?: boolean;
774
793
  learning?: "use";
775
794
  repo?: string;
@@ -825,7 +844,7 @@ export type TimelineRow = {
825
844
  origin?: "server" | "trigger";
826
845
  trigger?: {
827
846
  id: string;
828
- source: "schedule" | "webhook" | "slack" | "github" | "composio" | "email";
847
+ source: "schedule" | "webhook" | "slack" | "github" | "composio" | "email" | "feed";
829
848
  owner: boolean;
830
849
  name?: string;
831
850
  };
@@ -1089,7 +1108,7 @@ export type Features = {
1089
1108
  };
1090
1109
  triggers?: {
1091
1110
  routes: boolean;
1092
- sources: Array<"schedule" | "webhook" | "github" | "composio" | "email">;
1111
+ sources: Array<"schedule" | "webhook" | "github" | "composio" | "email" | "feed">;
1093
1112
  targets: Array<"start_run" | "message_run">;
1094
1113
  min_every_s: number;
1095
1114
  history_kept: number;
@@ -1325,6 +1344,7 @@ export type GetAgentArchilResponse = {
1325
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). */
1326
1345
  export type GetLearningLoopResponse = {
1327
1346
  agent: string;
1347
+ completed_runs: number;
1328
1348
  compiles: Array<{
1329
1349
  run_id: string;
1330
1350
  round: number;
@@ -1412,8 +1432,39 @@ export type ListLearningPromotionsResponse = {
1412
1432
  digest: string;
1413
1433
  at: string;
1414
1434
  decided: "promote" | "hold" | "replaying" | "queued" | "skipped";
1415
- source: "replay" | "dry_run" | "refit" | "graded";
1435
+ source: "check" | "replay" | "dry_run" | "refit" | "graded";
1416
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
+ };
1417
1468
  replay?: {
1418
1469
  n: number;
1419
1470
  agree: number;
@@ -1465,6 +1516,7 @@ export interface ListRunsParams {
1465
1516
  limit?: number;
1466
1517
  cursor?: string;
1467
1518
  status?: "queued" | "working" | "paused" | "input_required" | "completed" | "failed" | "cancelled";
1519
+ label?: string;
1468
1520
  }
1469
1521
  export type ListRunsResponse = RunList;
1470
1522
  /** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
@@ -2361,6 +2413,7 @@ export type CreatePairingResponse = {
2361
2413
  code: string;
2362
2414
  expires_at: string;
2363
2415
  };
2416
+ /** Forget this server's calendar (DELETE /settings/calendar). */
2364
2417
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
2365
2418
  export type DeleteComposioSubscriptionResponse = {
2366
2419
  deleted: true;
@@ -2399,6 +2452,13 @@ export type FinishChatGPTSignInResponse = {
2399
2452
  expires_at?: string;
2400
2453
  models?: Array<string>;
2401
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
+ };
2402
2462
  /** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
2403
2463
  export type GetChatGPTSignInResponse = {
2404
2464
  state: "signed_out" | "pending" | "signed_in" | "expired";
@@ -2626,7 +2686,7 @@ export type PutWorkspaceArchilResponse = {
2626
2686
  export type ReceiveHookComposioResponse = {
2627
2687
  firings: Array<{
2628
2688
  key: string;
2629
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
2689
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
2630
2690
  nominal_at: string;
2631
2691
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
2632
2692
  at: string;
@@ -2648,7 +2708,7 @@ export type ReceiveHookComposioResponse = {
2648
2708
  } | {
2649
2709
  firings: Array<{
2650
2710
  key: string;
2651
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
2711
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
2652
2712
  nominal_at: string;
2653
2713
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
2654
2714
  at: string;
@@ -2670,6 +2730,16 @@ export type ReceiveHookComposioResponse = {
2670
2730
  export type RotateComposioSecretResponse = {
2671
2731
  rotated: true;
2672
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
+ };
2673
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. */
2674
2744
  export type SaveComposioServerBody = {
2675
2745
  api_key: string;
@@ -2722,6 +2792,10 @@ export type SaveComposioServerResponse = {
2722
2792
  };
2723
2793
  connect_url?: string;
2724
2794
  not_served?: Array<string>;
2795
+ composio?: {
2796
+ removed: boolean;
2797
+ note: string;
2798
+ };
2725
2799
  };
2726
2800
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
2727
2801
  export type SaveComputerKeysBody = Record<string, string | null>;
@@ -2815,6 +2889,14 @@ export type StartMcpOAuthBody = {
2815
2889
  export type StartMcpOAuthResponse = {
2816
2890
  authorization_url: string;
2817
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
+ };
2818
2900
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
2819
2901
  export type TestComputerResponse = {
2820
2902
  ok: true;
@@ -2861,7 +2943,7 @@ export type TestWorkspaceArchilResponse = {
2861
2943
  export type DeleteMcpServerResponse = {
2862
2944
  deleted: true;
2863
2945
  composio: {
2864
- removed: false;
2946
+ removed: boolean;
2865
2947
  note: string;
2866
2948
  };
2867
2949
  };
@@ -3093,6 +3175,10 @@ export type SaveMcpServerResponse = {
3093
3175
  listed_at: string;
3094
3176
  updated_at: string;
3095
3177
  secret?: SecretMeta;
3178
+ composio?: {
3179
+ removed: boolean;
3180
+ note: string;
3181
+ };
3096
3182
  };
3097
3183
  /** Read activity and token usage reported by externally running agents (GET /observations). */
3098
3184
  export interface GetObservationsParams {
@@ -3257,7 +3343,7 @@ export type GradeRunResponse = {
3257
3343
  path: "agent" | "handed_back" | "workflow" | "replay";
3258
3344
  workflow: string | null;
3259
3345
  workflow_digest: string | null;
3260
- feedback: "revise" | "look_back" | null;
3346
+ feedback: "look_back" | null;
3261
3347
  expected?: Record<string, unknown>;
3262
3348
  };
3263
3349
  /** A workflow run's graph, live (GET /runs/{run_id}/graph). */
@@ -3436,7 +3522,7 @@ export type GetRunLearningResponse = {
3436
3522
  path: "agent" | "handed_back" | "workflow" | "replay";
3437
3523
  workflow: string | null;
3438
3524
  workflow_digest: string | null;
3439
- feedback: "revise" | "look_back" | null;
3525
+ feedback: "look_back" | null;
3440
3526
  feedback_status: "running" | "ended" | "not_run" | null;
3441
3527
  };
3442
3528
  } | null;
@@ -3459,6 +3545,7 @@ export interface ListAllRunsParams {
3459
3545
  revision?: string;
3460
3546
  status?: "queued" | "working" | "paused" | "input_required" | "completed" | "failed" | "cancelled";
3461
3547
  archived?: boolean;
3548
+ label?: string;
3462
3549
  }
3463
3550
  export type ListAllRunsResponse = RunList;
3464
3551
  /** Send the run a message (POST /runs/{run_id}/messages). */
@@ -4061,6 +4148,9 @@ export type PutToolSettingsBody = {
4061
4148
  email_file?: {
4062
4149
  permission?: "allow" | "ask" | "deny";
4063
4150
  };
4151
+ calendar_events?: {
4152
+ permission?: "allow" | "ask" | "deny";
4153
+ };
4064
4154
  browser?: {
4065
4155
  provider?: "auto" | "browserbase" | "kernel" | "chrome";
4066
4156
  permission?: "allow" | "deny";
@@ -4195,6 +4285,28 @@ export type CreateTriggerBody = {
4195
4285
  prefix: string;
4196
4286
  }>;
4197
4287
  }>;
4288
+ } | {
4289
+ kind: "feed";
4290
+ urls: Array<string>;
4291
+ every_s?: number;
4292
+ items?: string;
4293
+ id?: string;
4294
+ updated?: string;
4295
+ fields?: Array<string>;
4296
+ accept?: Array<{
4297
+ event: string;
4298
+ actions?: Array<string>;
4299
+ where?: Array<{
4300
+ pointer: string;
4301
+ in: Array<unknown>;
4302
+ } | {
4303
+ pointer: string;
4304
+ exists: boolean;
4305
+ } | {
4306
+ pointer: string;
4307
+ prefix: string;
4308
+ }>;
4309
+ }>;
4198
4310
  };
4199
4311
  target: {
4200
4312
  kind: "start_run";
@@ -4304,6 +4416,28 @@ export type CreateTriggerResponse = {
4304
4416
  prefix: string;
4305
4417
  }>;
4306
4418
  }>;
4419
+ } | {
4420
+ kind: "feed";
4421
+ urls: Array<string>;
4422
+ every_s: number;
4423
+ items?: string;
4424
+ id?: string;
4425
+ updated?: string;
4426
+ fields?: Array<string>;
4427
+ accept?: Array<{
4428
+ event: string;
4429
+ actions?: Array<string>;
4430
+ where?: Array<{
4431
+ pointer: string;
4432
+ in: Array<unknown>;
4433
+ } | {
4434
+ pointer: string;
4435
+ exists: boolean;
4436
+ } | {
4437
+ pointer: string;
4438
+ prefix: string;
4439
+ }>;
4440
+ }>;
4307
4441
  };
4308
4442
  target: {
4309
4443
  kind: "start_run";
@@ -4347,7 +4481,7 @@ export type CreateTriggerResponse = {
4347
4481
  updated_at: string;
4348
4482
  last_firing: {
4349
4483
  key: string;
4350
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4484
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4351
4485
  nominal_at: string;
4352
4486
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4353
4487
  at: string;
@@ -4387,7 +4521,7 @@ export interface FireTriggerParams {
4387
4521
  }
4388
4522
  export type FireTriggerResponse = {
4389
4523
  key: string;
4390
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4524
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4391
4525
  nominal_at: string;
4392
4526
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4393
4527
  at: string;
@@ -4406,7 +4540,7 @@ export type FireTriggerResponse = {
4406
4540
  export type ListTriggerFiringsResponse = {
4407
4541
  firings: Array<{
4408
4542
  key: string;
4409
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4543
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4410
4544
  nominal_at: string;
4411
4545
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4412
4546
  at: string;
@@ -4512,6 +4646,28 @@ export type GetTriggerResponse = {
4512
4646
  prefix: string;
4513
4647
  }>;
4514
4648
  }>;
4649
+ } | {
4650
+ kind: "feed";
4651
+ urls: Array<string>;
4652
+ every_s: number;
4653
+ items?: string;
4654
+ id?: string;
4655
+ updated?: string;
4656
+ fields?: Array<string>;
4657
+ accept?: Array<{
4658
+ event: string;
4659
+ actions?: Array<string>;
4660
+ where?: Array<{
4661
+ pointer: string;
4662
+ in: Array<unknown>;
4663
+ } | {
4664
+ pointer: string;
4665
+ exists: boolean;
4666
+ } | {
4667
+ pointer: string;
4668
+ prefix: string;
4669
+ }>;
4670
+ }>;
4515
4671
  };
4516
4672
  target: {
4517
4673
  kind: "start_run";
@@ -4555,7 +4711,7 @@ export type GetTriggerResponse = {
4555
4711
  updated_at: string;
4556
4712
  last_firing: {
4557
4713
  key: string;
4558
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4714
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4559
4715
  nominal_at: string;
4560
4716
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4561
4717
  at: string;
@@ -4670,6 +4826,28 @@ export type ListTriggersResponse = {
4670
4826
  prefix: string;
4671
4827
  }>;
4672
4828
  }>;
4829
+ } | {
4830
+ kind: "feed";
4831
+ urls: Array<string>;
4832
+ every_s: number;
4833
+ items?: string;
4834
+ id?: string;
4835
+ updated?: string;
4836
+ fields?: Array<string>;
4837
+ accept?: Array<{
4838
+ event: string;
4839
+ actions?: Array<string>;
4840
+ where?: Array<{
4841
+ pointer: string;
4842
+ in: Array<unknown>;
4843
+ } | {
4844
+ pointer: string;
4845
+ exists: boolean;
4846
+ } | {
4847
+ pointer: string;
4848
+ prefix: string;
4849
+ }>;
4850
+ }>;
4673
4851
  };
4674
4852
  target: {
4675
4853
  kind: "start_run";
@@ -4713,7 +4891,7 @@ export type ListTriggersResponse = {
4713
4891
  updated_at: string;
4714
4892
  last_firing: {
4715
4893
  key: string;
4716
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4894
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4717
4895
  nominal_at: string;
4718
4896
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4719
4897
  at: string;
@@ -4832,6 +5010,28 @@ export type UpdateTriggerBody = {
4832
5010
  prefix: string;
4833
5011
  }>;
4834
5012
  }>;
5013
+ } | {
5014
+ kind: "feed";
5015
+ urls: Array<string>;
5016
+ every_s?: number;
5017
+ items?: string;
5018
+ id?: string;
5019
+ updated?: string;
5020
+ fields?: Array<string>;
5021
+ accept?: Array<{
5022
+ event: string;
5023
+ actions?: Array<string>;
5024
+ where?: Array<{
5025
+ pointer: string;
5026
+ in: Array<unknown>;
5027
+ } | {
5028
+ pointer: string;
5029
+ exists: boolean;
5030
+ } | {
5031
+ pointer: string;
5032
+ prefix: string;
5033
+ }>;
5034
+ }>;
4835
5035
  };
4836
5036
  target?: {
4837
5037
  kind: "start_run";
@@ -4938,6 +5138,28 @@ export type UpdateTriggerResponse = {
4938
5138
  prefix: string;
4939
5139
  }>;
4940
5140
  }>;
5141
+ } | {
5142
+ kind: "feed";
5143
+ urls: Array<string>;
5144
+ every_s: number;
5145
+ items?: string;
5146
+ id?: string;
5147
+ updated?: string;
5148
+ fields?: Array<string>;
5149
+ accept?: Array<{
5150
+ event: string;
5151
+ actions?: Array<string>;
5152
+ where?: Array<{
5153
+ pointer: string;
5154
+ in: Array<unknown>;
5155
+ } | {
5156
+ pointer: string;
5157
+ exists: boolean;
5158
+ } | {
5159
+ pointer: string;
5160
+ prefix: string;
5161
+ }>;
5162
+ }>;
4941
5163
  };
4942
5164
  target: {
4943
5165
  kind: "start_run";
@@ -4981,7 +5203,7 @@ export type UpdateTriggerResponse = {
4981
5203
  updated_at: string;
4982
5204
  last_firing: {
4983
5205
  key: string;
4984
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
5206
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4985
5207
  nominal_at: string;
4986
5208
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4987
5209
  at: string;
@@ -5235,6 +5457,8 @@ export declare function resources(call: Call): {
5235
5457
  local: {
5236
5458
  /** A code that pairs a person's own computer with this server (POST /computers/pairings). */
5237
5459
  createPairing: (options?: RequestOptions) => Promise<CreatePairingResponse>;
5460
+ /** Forget this server's calendar (DELETE /settings/calendar). */
5461
+ deleteCalendar: (options?: RequestOptions) => Promise<void>;
5238
5462
  /** Delete the Composio project's webhook subscription, once no trigger uses it (DELETE /settings/mcp-servers/{name}/composio/subscription). */
5239
5463
  deleteComposioSubscription: (name: string, options?: RequestOptions) => Promise<DeleteComposioSubscriptionResponse>;
5240
5464
  /** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
@@ -5247,6 +5471,8 @@ export declare function resources(call: Call): {
5247
5471
  disconnectGitHub: (options?: RequestOptions) => Promise<DisconnectGitHubResponse>;
5248
5472
  /** Finish signing in with ChatGPT with the address the sign-in tab ended on (POST /settings/chatgpt/sign-in/finish). */
5249
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>;
5250
5476
  /** This server's ChatGPT sign-in: its state, who and which plan, never a token (GET /settings/chatgpt). */
5251
5477
  getChatGptsignIn: (options?: RequestOptions) => Promise<GetChatGPTSignInResponse>;
5252
5478
  /** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
@@ -5271,6 +5497,8 @@ export declare function resources(call: Call): {
5271
5497
  receiveHookComposio: (hook: string, body: RawBody, options?: BodyOptions) => Promise<ReceiveHookComposioResponse>;
5272
5498
  /** Rotate the Composio project's webhook subscription's secret, and keep the new one (POST /settings/mcp-servers/{name}/composio/rotate-secret). */
5273
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>;
5274
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). */
5275
5503
  saveComposioServer: (name: string, body: SaveComposioServerBody, options?: RequestOptions) => Promise<SaveComposioServerResponse>;
5276
5504
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
@@ -5281,6 +5509,8 @@ export declare function resources(call: Call): {
5281
5509
  signOutChatGpt: (options?: RequestOptions) => Promise<SignOutChatGPTResponse>;
5282
5510
  /** Start signing in with ChatGPT: the link to open (POST /settings/chatgpt/sign-in). */
5283
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>;
5284
5514
  /** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
5285
5515
  testComputer: (provider: string, options?: RequestOptions) => Promise<TestComputerResponse>;
5286
5516
  /** Sign in to the email account's IMAP and SMTP servers, sending nothing (POST /settings/email/test). */
@@ -13,7 +13,7 @@ export const OPERATIONS = {
13
13
  getNative: { "method": "GET", "path": "/agents/{agent_id}/native", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
14
14
  listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
15
15
  listLearningPromotions: { "method": "GET", "path": "/agents/{agent_id}/learning/promotions", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
16
- 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 },
16
+ listRuns: { "method": "GET", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "cursor", "status", "label"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
17
17
  unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
18
18
  updateDefinition: { "method": "PUT", "path": "/agents/{agent_id}/definition", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
19
19
  verifyNative: { "method": "POST", "path": "/agents/{agent_id}/native/verify", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -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 },
@@ -104,7 +108,7 @@ export const OPERATIONS = {
104
108
  handBackRunComputer: { "method": "POST", "path": "/runs/{run_id}/computer/hand-back", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
105
109
  getRunLearning: { "method": "GET", "path": "/runs/{run_id}/learning", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
106
110
  getRunLearningDiff: { "method": "GET", "path": "/runs/{run_id}/learning/diff", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
107
- listAllRuns: { "method": "GET", "path": "/runs", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "agent", "revision", "status", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
111
+ listAllRuns: { "method": "GET", "path": "/runs", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "agent", "revision", "status", "archived", "label"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
108
112
  sendMessage: { "method": "POST", "path": "/runs/{run_id}/messages", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
109
113
  pauseRun: { "method": "POST", "path": "/runs/{run_id}/pause", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
110
114
  raiseRunCap: { "method": "PATCH", "path": "/runs/{run_id}", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "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.40",
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.40"
78
+ "@parcha/agentrun-dsl": "0.1.0-beta.42"
79
79
  }
80
80
  }