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

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.
@@ -360,6 +360,7 @@ export type RunSummary = {
360
360
  revision: string;
361
361
  kind: "agentic" | "workflow";
362
362
  archived_at: string | null;
363
+ labels?: Record<string, string>;
363
364
  effort?: Effort;
364
365
  error?: RunError | null;
365
366
  learning?: {
@@ -535,6 +536,7 @@ export type RunCreateInline = {
535
536
  mcp_auth?: Record<string, {
536
537
  headers: Record<string, string>;
537
538
  }>;
539
+ labels?: Record<string, string>;
538
540
  workflow_first?: boolean;
539
541
  learning?: "use";
540
542
  repo?: string;
@@ -613,6 +615,7 @@ export type Run = {
613
615
  revision: string;
614
616
  kind: "agentic" | "workflow";
615
617
  archived_at: string | null;
618
+ labels?: Record<string, string>;
616
619
  approvals?: "ask" | "never";
617
620
  last_progress_at?: string | null;
618
621
  input?: Record<string, unknown> | null;
@@ -770,6 +773,7 @@ export type RunCreate = {
770
773
  mcp_auth?: Record<string, {
771
774
  headers: Record<string, string>;
772
775
  }>;
776
+ labels?: Record<string, string>;
773
777
  workflow_first?: boolean;
774
778
  learning?: "use";
775
779
  repo?: string;
@@ -825,7 +829,7 @@ export type TimelineRow = {
825
829
  origin?: "server" | "trigger";
826
830
  trigger?: {
827
831
  id: string;
828
- source: "schedule" | "webhook" | "slack" | "github" | "composio" | "email";
832
+ source: "schedule" | "webhook" | "slack" | "github" | "composio" | "email" | "feed";
829
833
  owner: boolean;
830
834
  name?: string;
831
835
  };
@@ -1089,7 +1093,7 @@ export type Features = {
1089
1093
  };
1090
1094
  triggers?: {
1091
1095
  routes: boolean;
1092
- sources: Array<"schedule" | "webhook" | "github" | "composio" | "email">;
1096
+ sources: Array<"schedule" | "webhook" | "github" | "composio" | "email" | "feed">;
1093
1097
  targets: Array<"start_run" | "message_run">;
1094
1098
  min_every_s: number;
1095
1099
  history_kept: number;
@@ -1411,7 +1415,7 @@ export type ListLearningPromotionsResponse = {
1411
1415
  workflow: string;
1412
1416
  digest: string;
1413
1417
  at: string;
1414
- decided: "promote" | "hold" | "replaying" | "superseded";
1418
+ decided: "promote" | "hold" | "replaying" | "queued" | "skipped";
1415
1419
  source: "replay" | "dry_run" | "refit" | "graded";
1416
1420
  reason: string;
1417
1421
  replay?: {
@@ -1452,7 +1456,7 @@ export type ListLearningPromotionsResponse = {
1452
1456
  since?: number;
1453
1457
  held_on?: Array<string>;
1454
1458
  commit?: string;
1455
- superseded_by?: string;
1459
+ skipped_by?: string;
1456
1460
  }>;
1457
1461
  serving: Array<{
1458
1462
  workflow: string;
@@ -1465,6 +1469,7 @@ export interface ListRunsParams {
1465
1469
  limit?: number;
1466
1470
  cursor?: string;
1467
1471
  status?: "queued" | "working" | "paused" | "input_required" | "completed" | "failed" | "cancelled";
1472
+ label?: string;
1468
1473
  }
1469
1474
  export type ListRunsResponse = RunList;
1470
1475
  /** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
@@ -2040,6 +2045,7 @@ export type GetLearningCostResponse = {
2040
2045
  runs: number;
2041
2046
  mean_usd: number;
2042
2047
  } | null;
2048
+ after_state: "priced" | "no_served_runs" | "cost_unknown";
2043
2049
  times_cheaper: number | null;
2044
2050
  hand_backs: {
2045
2051
  ran: number;
@@ -2308,7 +2314,7 @@ export type GetLearnedWorkflowReplayResponse = {
2308
2314
  handed_back: number;
2309
2315
  };
2310
2316
  cost_usd: number | null;
2311
- decided?: "promote" | "hold" | "superseded";
2317
+ decided?: "promote" | "hold";
2312
2318
  reason?: string;
2313
2319
  };
2314
2320
  /** Retire a note, a skill or a workflow draft: out of every later run, kept in history (POST /agents/{agent_id}/learning/files/{file}/retire). */
@@ -2625,7 +2631,7 @@ export type PutWorkspaceArchilResponse = {
2625
2631
  export type ReceiveHookComposioResponse = {
2626
2632
  firings: Array<{
2627
2633
  key: string;
2628
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
2634
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
2629
2635
  nominal_at: string;
2630
2636
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
2631
2637
  at: string;
@@ -2647,7 +2653,7 @@ export type ReceiveHookComposioResponse = {
2647
2653
  } | {
2648
2654
  firings: Array<{
2649
2655
  key: string;
2650
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
2656
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
2651
2657
  nominal_at: string;
2652
2658
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
2653
2659
  at: string;
@@ -2721,6 +2727,10 @@ export type SaveComposioServerResponse = {
2721
2727
  };
2722
2728
  connect_url?: string;
2723
2729
  not_served?: Array<string>;
2730
+ composio?: {
2731
+ removed: boolean;
2732
+ note: string;
2733
+ };
2724
2734
  };
2725
2735
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
2726
2736
  export type SaveComputerKeysBody = Record<string, string | null>;
@@ -2860,7 +2870,7 @@ export type TestWorkspaceArchilResponse = {
2860
2870
  export type DeleteMcpServerResponse = {
2861
2871
  deleted: true;
2862
2872
  composio: {
2863
- removed: false;
2873
+ removed: boolean;
2864
2874
  note: string;
2865
2875
  };
2866
2876
  };
@@ -3092,6 +3102,10 @@ export type SaveMcpServerResponse = {
3092
3102
  listed_at: string;
3093
3103
  updated_at: string;
3094
3104
  secret?: SecretMeta;
3105
+ composio?: {
3106
+ removed: boolean;
3107
+ note: string;
3108
+ };
3095
3109
  };
3096
3110
  /** Read activity and token usage reported by externally running agents (GET /observations). */
3097
3111
  export interface GetObservationsParams {
@@ -3458,6 +3472,7 @@ export interface ListAllRunsParams {
3458
3472
  revision?: string;
3459
3473
  status?: "queued" | "working" | "paused" | "input_required" | "completed" | "failed" | "cancelled";
3460
3474
  archived?: boolean;
3475
+ label?: string;
3461
3476
  }
3462
3477
  export type ListAllRunsResponse = RunList;
3463
3478
  /** Send the run a message (POST /runs/{run_id}/messages). */
@@ -4194,6 +4209,26 @@ export type CreateTriggerBody = {
4194
4209
  prefix: string;
4195
4210
  }>;
4196
4211
  }>;
4212
+ } | {
4213
+ kind: "feed";
4214
+ urls: Array<string>;
4215
+ every_s?: number;
4216
+ items?: string;
4217
+ id?: string;
4218
+ accept?: Array<{
4219
+ event: string;
4220
+ actions?: Array<string>;
4221
+ where?: Array<{
4222
+ pointer: string;
4223
+ in: Array<unknown>;
4224
+ } | {
4225
+ pointer: string;
4226
+ exists: boolean;
4227
+ } | {
4228
+ pointer: string;
4229
+ prefix: string;
4230
+ }>;
4231
+ }>;
4197
4232
  };
4198
4233
  target: {
4199
4234
  kind: "start_run";
@@ -4303,6 +4338,26 @@ export type CreateTriggerResponse = {
4303
4338
  prefix: string;
4304
4339
  }>;
4305
4340
  }>;
4341
+ } | {
4342
+ kind: "feed";
4343
+ urls: Array<string>;
4344
+ every_s: number;
4345
+ items?: string;
4346
+ id?: string;
4347
+ accept?: Array<{
4348
+ event: string;
4349
+ actions?: Array<string>;
4350
+ where?: Array<{
4351
+ pointer: string;
4352
+ in: Array<unknown>;
4353
+ } | {
4354
+ pointer: string;
4355
+ exists: boolean;
4356
+ } | {
4357
+ pointer: string;
4358
+ prefix: string;
4359
+ }>;
4360
+ }>;
4306
4361
  };
4307
4362
  target: {
4308
4363
  kind: "start_run";
@@ -4346,7 +4401,7 @@ export type CreateTriggerResponse = {
4346
4401
  updated_at: string;
4347
4402
  last_firing: {
4348
4403
  key: string;
4349
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4404
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4350
4405
  nominal_at: string;
4351
4406
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4352
4407
  at: string;
@@ -4386,7 +4441,7 @@ export interface FireTriggerParams {
4386
4441
  }
4387
4442
  export type FireTriggerResponse = {
4388
4443
  key: string;
4389
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4444
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4390
4445
  nominal_at: string;
4391
4446
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4392
4447
  at: string;
@@ -4405,7 +4460,7 @@ export type FireTriggerResponse = {
4405
4460
  export type ListTriggerFiringsResponse = {
4406
4461
  firings: Array<{
4407
4462
  key: string;
4408
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4463
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4409
4464
  nominal_at: string;
4410
4465
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4411
4466
  at: string;
@@ -4511,6 +4566,26 @@ export type GetTriggerResponse = {
4511
4566
  prefix: string;
4512
4567
  }>;
4513
4568
  }>;
4569
+ } | {
4570
+ kind: "feed";
4571
+ urls: Array<string>;
4572
+ every_s: number;
4573
+ items?: string;
4574
+ id?: string;
4575
+ accept?: Array<{
4576
+ event: string;
4577
+ actions?: Array<string>;
4578
+ where?: Array<{
4579
+ pointer: string;
4580
+ in: Array<unknown>;
4581
+ } | {
4582
+ pointer: string;
4583
+ exists: boolean;
4584
+ } | {
4585
+ pointer: string;
4586
+ prefix: string;
4587
+ }>;
4588
+ }>;
4514
4589
  };
4515
4590
  target: {
4516
4591
  kind: "start_run";
@@ -4554,7 +4629,7 @@ export type GetTriggerResponse = {
4554
4629
  updated_at: string;
4555
4630
  last_firing: {
4556
4631
  key: string;
4557
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4632
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4558
4633
  nominal_at: string;
4559
4634
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4560
4635
  at: string;
@@ -4669,6 +4744,26 @@ export type ListTriggersResponse = {
4669
4744
  prefix: string;
4670
4745
  }>;
4671
4746
  }>;
4747
+ } | {
4748
+ kind: "feed";
4749
+ urls: Array<string>;
4750
+ every_s: number;
4751
+ items?: string;
4752
+ id?: string;
4753
+ accept?: Array<{
4754
+ event: string;
4755
+ actions?: Array<string>;
4756
+ where?: Array<{
4757
+ pointer: string;
4758
+ in: Array<unknown>;
4759
+ } | {
4760
+ pointer: string;
4761
+ exists: boolean;
4762
+ } | {
4763
+ pointer: string;
4764
+ prefix: string;
4765
+ }>;
4766
+ }>;
4672
4767
  };
4673
4768
  target: {
4674
4769
  kind: "start_run";
@@ -4712,7 +4807,7 @@ export type ListTriggersResponse = {
4712
4807
  updated_at: string;
4713
4808
  last_firing: {
4714
4809
  key: string;
4715
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4810
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4716
4811
  nominal_at: string;
4717
4812
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4718
4813
  at: string;
@@ -4831,6 +4926,26 @@ export type UpdateTriggerBody = {
4831
4926
  prefix: string;
4832
4927
  }>;
4833
4928
  }>;
4929
+ } | {
4930
+ kind: "feed";
4931
+ urls: Array<string>;
4932
+ every_s?: number;
4933
+ items?: string;
4934
+ id?: string;
4935
+ accept?: Array<{
4936
+ event: string;
4937
+ actions?: Array<string>;
4938
+ where?: Array<{
4939
+ pointer: string;
4940
+ in: Array<unknown>;
4941
+ } | {
4942
+ pointer: string;
4943
+ exists: boolean;
4944
+ } | {
4945
+ pointer: string;
4946
+ prefix: string;
4947
+ }>;
4948
+ }>;
4834
4949
  };
4835
4950
  target?: {
4836
4951
  kind: "start_run";
@@ -4937,6 +5052,26 @@ export type UpdateTriggerResponse = {
4937
5052
  prefix: string;
4938
5053
  }>;
4939
5054
  }>;
5055
+ } | {
5056
+ kind: "feed";
5057
+ urls: Array<string>;
5058
+ every_s: number;
5059
+ items?: string;
5060
+ id?: string;
5061
+ accept?: Array<{
5062
+ event: string;
5063
+ actions?: Array<string>;
5064
+ where?: Array<{
5065
+ pointer: string;
5066
+ in: Array<unknown>;
5067
+ } | {
5068
+ pointer: string;
5069
+ exists: boolean;
5070
+ } | {
5071
+ pointer: string;
5072
+ prefix: string;
5073
+ }>;
5074
+ }>;
4940
5075
  };
4941
5076
  target: {
4942
5077
  kind: "start_run";
@@ -4980,7 +5115,7 @@ export type UpdateTriggerResponse = {
4980
5115
  updated_at: string;
4981
5116
  last_firing: {
4982
5117
  key: string;
4983
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
5118
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4984
5119
  nominal_at: string;
4985
5120
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4986
5121
  at: string;
@@ -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 },
@@ -104,7 +104,7 @@ export const OPERATIONS = {
104
104
  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
105
  getRunLearning: { "method": "GET", "path": "/runs/{run_id}/learning", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
106
106
  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 },
107
+ 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
108
  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
109
  pauseRun: { "method": "POST", "path": "/runs/{run_id}/pause", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
110
110
  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 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.39",
3
+ "version": "0.1.0-beta.41",
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.39"
78
+ "@parcha/agentrun-dsl": "0.1.0-beta.41"
79
79
  }
80
80
  }