@parcha/agentrun-client 0.1.0-beta.36 → 0.1.0-beta.38
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/dist/operations.generated.d.ts +892 -37
- package/dist/operations.generated.js +64 -4
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ export type DefinitionInput = {
|
|
|
27
27
|
mode: "runner";
|
|
28
28
|
} | {
|
|
29
29
|
mode: "sandbox";
|
|
30
|
-
box: "
|
|
30
|
+
box: "docker" | "modal" | "daytona";
|
|
31
31
|
};
|
|
32
32
|
computer?: {
|
|
33
33
|
kind: "none" | "sandbox" | "desktop" | "phone" | "browser";
|
|
@@ -38,6 +38,8 @@ export type DefinitionInput = {
|
|
|
38
38
|
count: number;
|
|
39
39
|
};
|
|
40
40
|
persistent?: boolean;
|
|
41
|
+
surface?: "code" | "tools";
|
|
42
|
+
exec?: boolean;
|
|
41
43
|
};
|
|
42
44
|
tool_settings?: {
|
|
43
45
|
read?: {
|
|
@@ -83,12 +85,20 @@ export type DefinitionInput = {
|
|
|
83
85
|
phone?: {
|
|
84
86
|
permission?: "allow" | "deny";
|
|
85
87
|
};
|
|
88
|
+
jev?: {
|
|
89
|
+
permission?: "allow" | "deny";
|
|
90
|
+
};
|
|
91
|
+
parallel?: {
|
|
92
|
+
permission?: "allow" | "deny";
|
|
93
|
+
};
|
|
94
|
+
openrouter?: {
|
|
95
|
+
permission?: "allow" | "deny";
|
|
96
|
+
};
|
|
86
97
|
[key: string]: unknown;
|
|
87
98
|
};
|
|
88
99
|
approvals?: "ask" | "never";
|
|
89
100
|
learning?: true | false | "notes";
|
|
90
101
|
checkout?: "pull_request" | "none";
|
|
91
|
-
max_tool_calls?: number;
|
|
92
102
|
cap_mode?: "expected" | "strict";
|
|
93
103
|
};
|
|
94
104
|
export type Id = string;
|
|
@@ -134,6 +144,16 @@ export type Agent = {
|
|
|
134
144
|
learning?: {
|
|
135
145
|
pending: number;
|
|
136
146
|
};
|
|
147
|
+
mcp_pin?: Record<string, {
|
|
148
|
+
tools: Array<{
|
|
149
|
+
name: string;
|
|
150
|
+
title?: string;
|
|
151
|
+
description?: string;
|
|
152
|
+
input_schema: Record<string, unknown>;
|
|
153
|
+
annotations?: Record<string, unknown>;
|
|
154
|
+
}>;
|
|
155
|
+
prices?: Record<string, number>;
|
|
156
|
+
}> | null;
|
|
137
157
|
own_computer?: {
|
|
138
158
|
provider: string;
|
|
139
159
|
id: string;
|
|
@@ -144,6 +164,11 @@ export type Agent = {
|
|
|
144
164
|
run_id?: string;
|
|
145
165
|
why?: string;
|
|
146
166
|
} | null;
|
|
167
|
+
template?: {
|
|
168
|
+
id: string;
|
|
169
|
+
version: string;
|
|
170
|
+
sha: string | null;
|
|
171
|
+
} | null;
|
|
147
172
|
warnings?: Array<InputIssue>;
|
|
148
173
|
};
|
|
149
174
|
export type Definition = DefinitionInput;
|
|
@@ -174,7 +199,7 @@ export type SecretMeta = {
|
|
|
174
199
|
};
|
|
175
200
|
export type InputIssue = {
|
|
176
201
|
field: string;
|
|
177
|
-
reason: "missing" | "wrong_type" | "not_allowed" | "not_an_option" | "too_short" | "too_long" | "too_few" | "too_many" | "bad_format" | "duplicate" | "invalid" | "not_set_up_here" | "redirect" | "not_https" | "too_many_tools" | "tools_too_large" | "reserved" | "expired";
|
|
202
|
+
reason: "missing" | "wrong_type" | "not_allowed" | "not_an_option" | "too_short" | "too_long" | "too_few" | "too_many" | "bad_format" | "duplicate" | "invalid" | "not_set_up_here" | "redirect" | "not_https" | "too_many_tools" | "tools_too_large" | "reserved" | "expired" | "registration_unavailable";
|
|
178
203
|
expected?: string;
|
|
179
204
|
message: string;
|
|
180
205
|
fix?: string;
|
|
@@ -208,7 +233,7 @@ export type RunSummary = {
|
|
|
208
233
|
error?: RunError | null;
|
|
209
234
|
learning?: {
|
|
210
235
|
state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
|
|
211
|
-
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | null;
|
|
236
|
+
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
|
|
212
237
|
detail: string | null;
|
|
213
238
|
given?: Array<{
|
|
214
239
|
file: string;
|
|
@@ -256,6 +281,7 @@ export type RunSummary = {
|
|
|
256
281
|
args_preview: string;
|
|
257
282
|
requested_at: string;
|
|
258
283
|
price?: number | "not metered";
|
|
284
|
+
destructive?: true;
|
|
259
285
|
} | {
|
|
260
286
|
kind: "budget";
|
|
261
287
|
cap_usd: number;
|
|
@@ -371,9 +397,14 @@ export type RunCreateInline = {
|
|
|
371
397
|
headers: Record<string, string>;
|
|
372
398
|
}>;
|
|
373
399
|
cap_mode?: "expected" | "strict";
|
|
400
|
+
workflow_first?: boolean;
|
|
401
|
+
learning?: "use";
|
|
402
|
+
repo?: string;
|
|
374
403
|
archil_disk?: {
|
|
375
404
|
disk_id: string;
|
|
376
405
|
};
|
|
406
|
+
hold?: boolean;
|
|
407
|
+
hold_minutes?: number;
|
|
377
408
|
};
|
|
378
409
|
export type ExternalRef = {
|
|
379
410
|
source: string;
|
|
@@ -404,6 +435,8 @@ export type Run = {
|
|
|
404
435
|
approvals?: "ask" | "never";
|
|
405
436
|
cap_mode?: "expected" | "strict" | null;
|
|
406
437
|
last_progress_at?: string | null;
|
|
438
|
+
input?: Record<string, unknown> | null;
|
|
439
|
+
file_ids?: Array<string>;
|
|
407
440
|
claim?: {
|
|
408
441
|
runner: string;
|
|
409
442
|
epoch: number;
|
|
@@ -413,17 +446,23 @@ export type Run = {
|
|
|
413
446
|
mode: "runner";
|
|
414
447
|
} | {
|
|
415
448
|
mode: "sandbox";
|
|
416
|
-
box: "
|
|
449
|
+
box: "docker" | "modal" | "daytona";
|
|
417
450
|
};
|
|
418
451
|
computer?: {
|
|
419
452
|
kind: "sandbox" | "desktop" | "phone" | "browser";
|
|
420
453
|
provider: string;
|
|
421
454
|
state: "starting" | "ready" | "taken_over" | "ended" | "failed";
|
|
422
455
|
why?: string;
|
|
456
|
+
held?: {
|
|
457
|
+
state: "starting" | "waiting" | "started" | "ended" | "released";
|
|
458
|
+
minutes: number;
|
|
459
|
+
until?: string;
|
|
460
|
+
why?: "timeout" | "lost";
|
|
461
|
+
};
|
|
423
462
|
};
|
|
424
463
|
learning?: {
|
|
425
464
|
state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
|
|
426
|
-
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | null;
|
|
465
|
+
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
|
|
427
466
|
detail: string | null;
|
|
428
467
|
at: string;
|
|
429
468
|
given?: Array<{
|
|
@@ -472,6 +511,7 @@ export type Run = {
|
|
|
472
511
|
args_preview: string;
|
|
473
512
|
requested_at: string;
|
|
474
513
|
price?: number | "not metered";
|
|
514
|
+
destructive?: true;
|
|
475
515
|
} | {
|
|
476
516
|
kind: "budget";
|
|
477
517
|
cap_usd: number;
|
|
@@ -509,6 +549,7 @@ export type Run = {
|
|
|
509
549
|
export type RunResult = {
|
|
510
550
|
output: unknown;
|
|
511
551
|
final_answer: string | null;
|
|
552
|
+
output_error?: string;
|
|
512
553
|
};
|
|
513
554
|
export type RunFileList = {
|
|
514
555
|
run_id: Id;
|
|
@@ -547,9 +588,14 @@ export type RunCreate = {
|
|
|
547
588
|
headers: Record<string, string>;
|
|
548
589
|
}>;
|
|
549
590
|
cap_mode?: "expected" | "strict";
|
|
591
|
+
workflow_first?: boolean;
|
|
592
|
+
learning?: "use";
|
|
593
|
+
repo?: string;
|
|
550
594
|
archil_disk?: {
|
|
551
595
|
disk_id: string;
|
|
552
596
|
};
|
|
597
|
+
hold?: boolean;
|
|
598
|
+
hold_minutes?: number;
|
|
553
599
|
};
|
|
554
600
|
export type StopResult = {
|
|
555
601
|
run_id: Id;
|
|
@@ -593,6 +639,7 @@ export type TimelineRow = {
|
|
|
593
639
|
path?: string;
|
|
594
640
|
usage?: TimelineUsage;
|
|
595
641
|
paused?: true;
|
|
642
|
+
refused?: true;
|
|
596
643
|
origin?: "server" | "trigger";
|
|
597
644
|
trigger?: {
|
|
598
645
|
id: string;
|
|
@@ -608,9 +655,31 @@ export type TimelineRow = {
|
|
|
608
655
|
model?: string;
|
|
609
656
|
tier?: string;
|
|
610
657
|
}>;
|
|
658
|
+
computer_calls?: Array<{
|
|
659
|
+
method: string;
|
|
660
|
+
started_at: string;
|
|
661
|
+
app?: string;
|
|
662
|
+
ok: boolean;
|
|
663
|
+
ms: number;
|
|
664
|
+
code?: string;
|
|
665
|
+
steps?: Array<{
|
|
666
|
+
do: string;
|
|
667
|
+
on?: {
|
|
668
|
+
role: string;
|
|
669
|
+
name?: string;
|
|
670
|
+
};
|
|
671
|
+
keys?: string;
|
|
672
|
+
nav?: string;
|
|
673
|
+
route?: string;
|
|
674
|
+
verified?: boolean;
|
|
675
|
+
error?: string;
|
|
676
|
+
}>;
|
|
677
|
+
expect?: "met" | "unmet";
|
|
678
|
+
}>;
|
|
679
|
+
computer_calls_dropped?: number;
|
|
611
680
|
learning?: {
|
|
612
681
|
state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
|
|
613
|
-
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | null;
|
|
682
|
+
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
|
|
614
683
|
detail: string | null;
|
|
615
684
|
};
|
|
616
685
|
};
|
|
@@ -653,7 +722,7 @@ export type Capabilities = {
|
|
|
653
722
|
places: {
|
|
654
723
|
modes: Array<"runner" | "sandbox">;
|
|
655
724
|
boxes: Array<{
|
|
656
|
-
id: "
|
|
725
|
+
id: "docker" | "modal" | "daytona";
|
|
657
726
|
available: boolean;
|
|
658
727
|
state: "ready" | "unavailable";
|
|
659
728
|
reason?: string;
|
|
@@ -665,7 +734,7 @@ export type Capabilities = {
|
|
|
665
734
|
mode: "runner";
|
|
666
735
|
} | {
|
|
667
736
|
mode: "sandbox";
|
|
668
|
-
box: "
|
|
737
|
+
box: "docker" | "modal" | "daytona";
|
|
669
738
|
};
|
|
670
739
|
default_reason?: string;
|
|
671
740
|
allow: Array<string>;
|
|
@@ -673,6 +742,7 @@ export type Capabilities = {
|
|
|
673
742
|
harnesses?: Array<{
|
|
674
743
|
id: "pi" | "claude-agent" | "codex" | "opencode";
|
|
675
744
|
available: boolean;
|
|
745
|
+
models: Array<string>;
|
|
676
746
|
run_memory_mib: number;
|
|
677
747
|
max_concurrent_runs: number;
|
|
678
748
|
default_model: string | null;
|
|
@@ -687,6 +757,7 @@ export type Capabilities = {
|
|
|
687
757
|
nodes: boolean;
|
|
688
758
|
calls: boolean;
|
|
689
759
|
call_only?: boolean;
|
|
760
|
+
meta?: boolean;
|
|
690
761
|
sandbox_only?: boolean;
|
|
691
762
|
available: boolean;
|
|
692
763
|
reason?: string;
|
|
@@ -835,7 +906,7 @@ export type Features = {
|
|
|
835
906
|
failures_to_pause: number;
|
|
836
907
|
webhook: {
|
|
837
908
|
signing: "standard-webhooks/v1";
|
|
838
|
-
signatures: Array<"standard" | "github">;
|
|
909
|
+
signatures: Array<"standard" | "github" | "composio">;
|
|
839
910
|
tolerance_s: number;
|
|
840
911
|
max_body_bytes: number;
|
|
841
912
|
payload_kept_bytes: number;
|
|
@@ -939,6 +1010,44 @@ export type GetAgentArchilResponse = {
|
|
|
939
1010
|
disk_id: string;
|
|
940
1011
|
} | null;
|
|
941
1012
|
};
|
|
1013
|
+
/** The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows (GET /agents/{agent_id}/learning/loop). */
|
|
1014
|
+
export type GetLearningLoopResponse = {
|
|
1015
|
+
agent: string;
|
|
1016
|
+
compiles: Array<{
|
|
1017
|
+
run_id: string;
|
|
1018
|
+
round: number;
|
|
1019
|
+
at: string;
|
|
1020
|
+
workflow: string | null;
|
|
1021
|
+
from_notes: Array<string>;
|
|
1022
|
+
attempts: Array<{
|
|
1023
|
+
ok: boolean;
|
|
1024
|
+
errors: Array<string>;
|
|
1025
|
+
}>;
|
|
1026
|
+
digest: string | null;
|
|
1027
|
+
promoted: boolean | null;
|
|
1028
|
+
draft_errors: Array<string>;
|
|
1029
|
+
withheld: boolean;
|
|
1030
|
+
}>;
|
|
1031
|
+
guards: Array<{
|
|
1032
|
+
workflow: string;
|
|
1033
|
+
digest: string;
|
|
1034
|
+
node: string;
|
|
1035
|
+
signal: "self" | "jev" | "both";
|
|
1036
|
+
threshold: number | null;
|
|
1037
|
+
runs: number;
|
|
1038
|
+
escalated: number;
|
|
1039
|
+
right: number;
|
|
1040
|
+
wrong: number;
|
|
1041
|
+
grades_past: number;
|
|
1042
|
+
replays: number;
|
|
1043
|
+
points: Array<{
|
|
1044
|
+
run_id: string;
|
|
1045
|
+
p: number | null;
|
|
1046
|
+
escalated: boolean;
|
|
1047
|
+
correct: boolean | null;
|
|
1048
|
+
}>;
|
|
1049
|
+
}>;
|
|
1050
|
+
};
|
|
942
1051
|
/** List agents (GET /agents). */
|
|
943
1052
|
export interface ListAgentsParams {
|
|
944
1053
|
limit?: number;
|
|
@@ -946,6 +1055,54 @@ export interface ListAgentsParams {
|
|
|
946
1055
|
archived?: boolean;
|
|
947
1056
|
}
|
|
948
1057
|
export type ListAgentsResponse = AgentList;
|
|
1058
|
+
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
1059
|
+
export type ListLearningPromotionsResponse = {
|
|
1060
|
+
agent: string;
|
|
1061
|
+
promotions: Array<{
|
|
1062
|
+
workflow: string;
|
|
1063
|
+
digest: string;
|
|
1064
|
+
at: string;
|
|
1065
|
+
decided: "promote" | "hold" | "replaying" | "superseded";
|
|
1066
|
+
source: "replay" | "dry_run" | "refit" | "graded";
|
|
1067
|
+
reason: string;
|
|
1068
|
+
replay?: {
|
|
1069
|
+
n: number;
|
|
1070
|
+
agree: number;
|
|
1071
|
+
agent_acc: number;
|
|
1072
|
+
wf_acc: number;
|
|
1073
|
+
delta: number;
|
|
1074
|
+
handed_back: number;
|
|
1075
|
+
of?: Array<string>;
|
|
1076
|
+
cost_usd?: number | null;
|
|
1077
|
+
skipped_write?: number;
|
|
1078
|
+
skipped_tools?: Array<{
|
|
1079
|
+
tool: string;
|
|
1080
|
+
inputs: number;
|
|
1081
|
+
no_read_only_hint: boolean;
|
|
1082
|
+
}>;
|
|
1083
|
+
};
|
|
1084
|
+
runs?: Array<string>;
|
|
1085
|
+
inputs?: Array<string>;
|
|
1086
|
+
refit?: {
|
|
1087
|
+
from: string;
|
|
1088
|
+
guards: Array<{
|
|
1089
|
+
node: string;
|
|
1090
|
+
was: number | null;
|
|
1091
|
+
threshold: number | null;
|
|
1092
|
+
fit?: Record<string, unknown>;
|
|
1093
|
+
escalate?: true;
|
|
1094
|
+
}>;
|
|
1095
|
+
};
|
|
1096
|
+
checked?: number;
|
|
1097
|
+
commit?: string;
|
|
1098
|
+
superseded_by?: string;
|
|
1099
|
+
}>;
|
|
1100
|
+
serving: Array<{
|
|
1101
|
+
workflow: string;
|
|
1102
|
+
digest: string | null;
|
|
1103
|
+
replaying: string | null;
|
|
1104
|
+
}>;
|
|
1105
|
+
};
|
|
949
1106
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
950
1107
|
export interface ListRunsParams {
|
|
951
1108
|
limit?: number;
|
|
@@ -1013,6 +1170,235 @@ export type WriteHomeFileResponse = {
|
|
|
1013
1170
|
content_type?: string | null;
|
|
1014
1171
|
unreadable?: true;
|
|
1015
1172
|
};
|
|
1173
|
+
/** A learning batch's progress: rows done, right or wrong, lessons, workflow revisions, cost, the path each run took (GET /agents/{agent_id}/learning/batches/{batch_id}). */
|
|
1174
|
+
export type GetLearningBatchResponse = {
|
|
1175
|
+
id: string;
|
|
1176
|
+
agent_id: string;
|
|
1177
|
+
created_at: string;
|
|
1178
|
+
ended_at: string | null;
|
|
1179
|
+
status: "running" | "completed" | "cancelled" | "stopped";
|
|
1180
|
+
stopped: "cap" | "cost_unknown" | "learning_off" | null;
|
|
1181
|
+
inputs: Array<string>;
|
|
1182
|
+
answer: string;
|
|
1183
|
+
answer_field: string | null;
|
|
1184
|
+
effort: string | null;
|
|
1185
|
+
max_cost_usd: number;
|
|
1186
|
+
total: number;
|
|
1187
|
+
finished: number;
|
|
1188
|
+
right: number;
|
|
1189
|
+
wrong: number;
|
|
1190
|
+
failed: number;
|
|
1191
|
+
spent_usd: number;
|
|
1192
|
+
unknown_cost_rows: number;
|
|
1193
|
+
paths: {
|
|
1194
|
+
agent: number;
|
|
1195
|
+
handed_back: number;
|
|
1196
|
+
workflow: number;
|
|
1197
|
+
};
|
|
1198
|
+
lessons: {
|
|
1199
|
+
notes: Array<string>;
|
|
1200
|
+
skills: Array<string>;
|
|
1201
|
+
workflows: Array<string>;
|
|
1202
|
+
};
|
|
1203
|
+
revisions: Array<{
|
|
1204
|
+
row: number;
|
|
1205
|
+
commit: string | null;
|
|
1206
|
+
workflows: Array<string>;
|
|
1207
|
+
}>;
|
|
1208
|
+
cost_usd: number | null;
|
|
1209
|
+
remaining_usd: number | null;
|
|
1210
|
+
current: number | null;
|
|
1211
|
+
rows: Array<{
|
|
1212
|
+
n: number;
|
|
1213
|
+
state: "pending" | "running" | "done" | "failed";
|
|
1214
|
+
reference: string;
|
|
1215
|
+
run_id?: string;
|
|
1216
|
+
answer?: string | null;
|
|
1217
|
+
right?: boolean;
|
|
1218
|
+
reviewed?: boolean;
|
|
1219
|
+
path?: "agent" | "handed_back" | "workflow";
|
|
1220
|
+
cost_usd?: number | null;
|
|
1221
|
+
learning_usd?: number | null;
|
|
1222
|
+
total_usd?: number | null;
|
|
1223
|
+
learned?: {
|
|
1224
|
+
notes: Array<string>;
|
|
1225
|
+
skills: Array<string>;
|
|
1226
|
+
workflows: Array<string>;
|
|
1227
|
+
};
|
|
1228
|
+
merged?: string | null;
|
|
1229
|
+
error?: string;
|
|
1230
|
+
}>;
|
|
1231
|
+
error?: string;
|
|
1232
|
+
};
|
|
1233
|
+
/** Cancel a running learning batch (POST /agents/{agent_id}/learning/batches/{batch_id}/cancel). */
|
|
1234
|
+
export type CancelLearningBatchResponse = {
|
|
1235
|
+
id: string;
|
|
1236
|
+
agent_id: string;
|
|
1237
|
+
created_at: string;
|
|
1238
|
+
ended_at: string | null;
|
|
1239
|
+
status: "running" | "completed" | "cancelled" | "stopped";
|
|
1240
|
+
stopped: "cap" | "cost_unknown" | "learning_off" | null;
|
|
1241
|
+
inputs: Array<string>;
|
|
1242
|
+
answer: string;
|
|
1243
|
+
answer_field: string | null;
|
|
1244
|
+
effort: string | null;
|
|
1245
|
+
max_cost_usd: number;
|
|
1246
|
+
total: number;
|
|
1247
|
+
finished: number;
|
|
1248
|
+
right: number;
|
|
1249
|
+
wrong: number;
|
|
1250
|
+
failed: number;
|
|
1251
|
+
spent_usd: number;
|
|
1252
|
+
unknown_cost_rows: number;
|
|
1253
|
+
paths: {
|
|
1254
|
+
agent: number;
|
|
1255
|
+
handed_back: number;
|
|
1256
|
+
workflow: number;
|
|
1257
|
+
};
|
|
1258
|
+
lessons: {
|
|
1259
|
+
notes: Array<string>;
|
|
1260
|
+
skills: Array<string>;
|
|
1261
|
+
workflows: Array<string>;
|
|
1262
|
+
};
|
|
1263
|
+
revisions: Array<{
|
|
1264
|
+
row: number;
|
|
1265
|
+
commit: string | null;
|
|
1266
|
+
workflows: Array<string>;
|
|
1267
|
+
}>;
|
|
1268
|
+
cost_usd: number | null;
|
|
1269
|
+
remaining_usd: number | null;
|
|
1270
|
+
current: number | null;
|
|
1271
|
+
rows: Array<{
|
|
1272
|
+
n: number;
|
|
1273
|
+
state: "pending" | "running" | "done" | "failed";
|
|
1274
|
+
reference: string;
|
|
1275
|
+
run_id?: string;
|
|
1276
|
+
answer?: string | null;
|
|
1277
|
+
right?: boolean;
|
|
1278
|
+
reviewed?: boolean;
|
|
1279
|
+
path?: "agent" | "handed_back" | "workflow";
|
|
1280
|
+
cost_usd?: number | null;
|
|
1281
|
+
learning_usd?: number | null;
|
|
1282
|
+
total_usd?: number | null;
|
|
1283
|
+
learned?: {
|
|
1284
|
+
notes: Array<string>;
|
|
1285
|
+
skills: Array<string>;
|
|
1286
|
+
workflows: Array<string>;
|
|
1287
|
+
};
|
|
1288
|
+
merged?: string | null;
|
|
1289
|
+
error?: string;
|
|
1290
|
+
}>;
|
|
1291
|
+
error?: string;
|
|
1292
|
+
};
|
|
1293
|
+
/** Learn from rows: run the agent on each in order, with learning on, and tell it the reference answer after each (POST /agents/{agent_id}/learning/batches). */
|
|
1294
|
+
export type CreateLearningBatchBody = {
|
|
1295
|
+
inputs: Array<string>;
|
|
1296
|
+
answer: string;
|
|
1297
|
+
rows: Array<Record<string, string>>;
|
|
1298
|
+
max_cost_usd: number;
|
|
1299
|
+
answer_field?: string;
|
|
1300
|
+
effort?: string;
|
|
1301
|
+
};
|
|
1302
|
+
export type CreateLearningBatchResponse = {
|
|
1303
|
+
id: string;
|
|
1304
|
+
agent_id: string;
|
|
1305
|
+
created_at: string;
|
|
1306
|
+
ended_at: string | null;
|
|
1307
|
+
status: "running" | "completed" | "cancelled" | "stopped";
|
|
1308
|
+
stopped: "cap" | "cost_unknown" | "learning_off" | null;
|
|
1309
|
+
inputs: Array<string>;
|
|
1310
|
+
answer: string;
|
|
1311
|
+
answer_field: string | null;
|
|
1312
|
+
effort: string | null;
|
|
1313
|
+
max_cost_usd: number;
|
|
1314
|
+
total: number;
|
|
1315
|
+
finished: number;
|
|
1316
|
+
right: number;
|
|
1317
|
+
wrong: number;
|
|
1318
|
+
failed: number;
|
|
1319
|
+
spent_usd: number;
|
|
1320
|
+
unknown_cost_rows: number;
|
|
1321
|
+
paths: {
|
|
1322
|
+
agent: number;
|
|
1323
|
+
handed_back: number;
|
|
1324
|
+
workflow: number;
|
|
1325
|
+
};
|
|
1326
|
+
lessons: {
|
|
1327
|
+
notes: Array<string>;
|
|
1328
|
+
skills: Array<string>;
|
|
1329
|
+
workflows: Array<string>;
|
|
1330
|
+
};
|
|
1331
|
+
revisions: Array<{
|
|
1332
|
+
row: number;
|
|
1333
|
+
commit: string | null;
|
|
1334
|
+
workflows: Array<string>;
|
|
1335
|
+
}>;
|
|
1336
|
+
cost_usd: number | null;
|
|
1337
|
+
remaining_usd: number | null;
|
|
1338
|
+
current: number | null;
|
|
1339
|
+
rows: Array<{
|
|
1340
|
+
n: number;
|
|
1341
|
+
state: "pending" | "running" | "done" | "failed";
|
|
1342
|
+
reference: string;
|
|
1343
|
+
run_id?: string;
|
|
1344
|
+
answer?: string | null;
|
|
1345
|
+
right?: boolean;
|
|
1346
|
+
reviewed?: boolean;
|
|
1347
|
+
path?: "agent" | "handed_back" | "workflow";
|
|
1348
|
+
cost_usd?: number | null;
|
|
1349
|
+
learning_usd?: number | null;
|
|
1350
|
+
total_usd?: number | null;
|
|
1351
|
+
learned?: {
|
|
1352
|
+
notes: Array<string>;
|
|
1353
|
+
skills: Array<string>;
|
|
1354
|
+
workflows: Array<string>;
|
|
1355
|
+
};
|
|
1356
|
+
merged?: string | null;
|
|
1357
|
+
error?: string;
|
|
1358
|
+
}>;
|
|
1359
|
+
error?: string;
|
|
1360
|
+
};
|
|
1361
|
+
/** The agent's learning batches, latest first (GET /agents/{agent_id}/learning/batches). */
|
|
1362
|
+
export type ListLearningBatchesResponse = {
|
|
1363
|
+
batches: Array<{
|
|
1364
|
+
id: string;
|
|
1365
|
+
agent_id: string;
|
|
1366
|
+
created_at: string;
|
|
1367
|
+
ended_at: string | null;
|
|
1368
|
+
status: "running" | "completed" | "cancelled" | "stopped";
|
|
1369
|
+
stopped: "cap" | "cost_unknown" | "learning_off" | null;
|
|
1370
|
+
inputs: Array<string>;
|
|
1371
|
+
answer: string;
|
|
1372
|
+
answer_field: string | null;
|
|
1373
|
+
effort: string | null;
|
|
1374
|
+
max_cost_usd: number;
|
|
1375
|
+
total: number;
|
|
1376
|
+
finished: number;
|
|
1377
|
+
right: number;
|
|
1378
|
+
wrong: number;
|
|
1379
|
+
failed: number;
|
|
1380
|
+
spent_usd: number;
|
|
1381
|
+
unknown_cost_rows: number;
|
|
1382
|
+
paths: {
|
|
1383
|
+
agent: number;
|
|
1384
|
+
handed_back: number;
|
|
1385
|
+
workflow: number;
|
|
1386
|
+
};
|
|
1387
|
+
lessons: {
|
|
1388
|
+
notes: Array<string>;
|
|
1389
|
+
skills: Array<string>;
|
|
1390
|
+
workflows: Array<string>;
|
|
1391
|
+
};
|
|
1392
|
+
revisions: Array<{
|
|
1393
|
+
row: number;
|
|
1394
|
+
commit: string | null;
|
|
1395
|
+
workflows: Array<string>;
|
|
1396
|
+
}>;
|
|
1397
|
+
cost_usd: number | null;
|
|
1398
|
+
remaining_usd: number | null;
|
|
1399
|
+
error?: string;
|
|
1400
|
+
}>;
|
|
1401
|
+
};
|
|
1016
1402
|
/** The agent's cost per run, run after run: its own cost, what learning added and the path it took (GET /agents/{agent_id}/learning/cost). */
|
|
1017
1403
|
export interface GetLearningCostParams {
|
|
1018
1404
|
limit?: number;
|
|
@@ -1024,7 +1410,7 @@ export type GetLearningCostResponse = {
|
|
|
1024
1410
|
n: number;
|
|
1025
1411
|
run_id: string;
|
|
1026
1412
|
started_at: string;
|
|
1027
|
-
path: "agent" | "handed_back" | "workflow";
|
|
1413
|
+
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
1028
1414
|
workflow: string | null;
|
|
1029
1415
|
learned_revision: string | null;
|
|
1030
1416
|
cost_usd: number | null;
|
|
@@ -1033,6 +1419,21 @@ export type GetLearningCostResponse = {
|
|
|
1033
1419
|
}>;
|
|
1034
1420
|
total_runs: number;
|
|
1035
1421
|
unknown_cost_runs: number;
|
|
1422
|
+
unknown_path_runs: number;
|
|
1423
|
+
workflows: Array<{
|
|
1424
|
+
workflow: string;
|
|
1425
|
+
digest: string;
|
|
1426
|
+
state: "serving" | "needs_revision";
|
|
1427
|
+
served: {
|
|
1428
|
+
runs: number;
|
|
1429
|
+
mean_usd: number;
|
|
1430
|
+
} | null;
|
|
1431
|
+
by_hand: {
|
|
1432
|
+
runs: number;
|
|
1433
|
+
mean_usd: number;
|
|
1434
|
+
} | null;
|
|
1435
|
+
unknown_cost_runs: number;
|
|
1436
|
+
}>;
|
|
1036
1437
|
summary: {
|
|
1037
1438
|
takeover: {
|
|
1038
1439
|
n: number;
|
|
@@ -1047,8 +1448,42 @@ export type GetLearningCostResponse = {
|
|
|
1047
1448
|
mean_usd: number;
|
|
1048
1449
|
} | null;
|
|
1049
1450
|
times_cheaper: number | null;
|
|
1451
|
+
hand_backs: {
|
|
1452
|
+
ran: number;
|
|
1453
|
+
back: number;
|
|
1454
|
+
} | null;
|
|
1050
1455
|
};
|
|
1051
1456
|
};
|
|
1457
|
+
/** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
|
|
1458
|
+
export type ListLearningEvalsResponse = {
|
|
1459
|
+
agent: string;
|
|
1460
|
+
latest: {
|
|
1461
|
+
id: string;
|
|
1462
|
+
name: string;
|
|
1463
|
+
n: number;
|
|
1464
|
+
correct: number;
|
|
1465
|
+
label_source: string | null;
|
|
1466
|
+
cost_per_task_usd: number | null;
|
|
1467
|
+
baseline_cost_per_task_usd: number | null;
|
|
1468
|
+
learned_revision: string | null;
|
|
1469
|
+
accuracy: number;
|
|
1470
|
+
ci: Array<number>;
|
|
1471
|
+
recorded_at: string;
|
|
1472
|
+
} | null;
|
|
1473
|
+
evals: Array<{
|
|
1474
|
+
id: string;
|
|
1475
|
+
name: string;
|
|
1476
|
+
n: number;
|
|
1477
|
+
correct: number;
|
|
1478
|
+
label_source: string | null;
|
|
1479
|
+
cost_per_task_usd: number | null;
|
|
1480
|
+
baseline_cost_per_task_usd: number | null;
|
|
1481
|
+
learned_revision: string | null;
|
|
1482
|
+
accuracy: number;
|
|
1483
|
+
ci: Array<number>;
|
|
1484
|
+
recorded_at: string;
|
|
1485
|
+
}>;
|
|
1486
|
+
};
|
|
1052
1487
|
/** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
|
|
1053
1488
|
export type GetAgentLearningResponse = {
|
|
1054
1489
|
agent: string;
|
|
@@ -1222,10 +1657,58 @@ export type ListLearningNotesResponse = {
|
|
|
1222
1657
|
};
|
|
1223
1658
|
/** One note (or MEMORY.md, a skill's SKILL.md or a draft's file) on main, as text, with its ETag (GET /agents/{agent_id}/learning/files/{file}). */
|
|
1224
1659
|
export type ReadLearningFileResponse = unknown;
|
|
1660
|
+
/** Record a held-out test of the agent: its counts and the cost a task, with learning and by hand (POST /agents/{agent_id}/learning/evals). */
|
|
1661
|
+
export type RecordLearningEvalBody = {
|
|
1662
|
+
name: string;
|
|
1663
|
+
n: number;
|
|
1664
|
+
correct: number;
|
|
1665
|
+
label_source?: string | null;
|
|
1666
|
+
cost_per_task_usd?: number | null;
|
|
1667
|
+
baseline_cost_per_task_usd?: number | null;
|
|
1668
|
+
learned_revision?: string | null;
|
|
1669
|
+
};
|
|
1670
|
+
export interface RecordLearningEvalParams {
|
|
1671
|
+
"Idempotency-Key"?: string;
|
|
1672
|
+
}
|
|
1673
|
+
export type RecordLearningEvalResponse = {
|
|
1674
|
+
id: string;
|
|
1675
|
+
name: string;
|
|
1676
|
+
n: number;
|
|
1677
|
+
correct: number;
|
|
1678
|
+
label_source: string | null;
|
|
1679
|
+
cost_per_task_usd: number | null;
|
|
1680
|
+
baseline_cost_per_task_usd: number | null;
|
|
1681
|
+
learned_revision: string | null;
|
|
1682
|
+
accuracy: number;
|
|
1683
|
+
ci: Array<number>;
|
|
1684
|
+
recorded_at: string;
|
|
1685
|
+
};
|
|
1225
1686
|
/** 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). */
|
|
1226
1687
|
export interface RetireLearningFileParams {
|
|
1227
1688
|
"If-Match"?: string;
|
|
1228
1689
|
}
|
|
1690
|
+
/** A learned workflow's revisions on main, oldest first, each with its workflow.json as it was then (GET /agents/{agent_id}/learning/workflows/{name}/revisions). */
|
|
1691
|
+
export interface ListLearnedWorkflowRevisionsParams {
|
|
1692
|
+
limit?: number;
|
|
1693
|
+
}
|
|
1694
|
+
export type ListLearnedWorkflowRevisionsResponse = {
|
|
1695
|
+
name: string;
|
|
1696
|
+
revisions: Array<{
|
|
1697
|
+
commit: string;
|
|
1698
|
+
at: string;
|
|
1699
|
+
by: {
|
|
1700
|
+
run: string;
|
|
1701
|
+
} | {
|
|
1702
|
+
user: true;
|
|
1703
|
+
via?: string;
|
|
1704
|
+
};
|
|
1705
|
+
reason: string;
|
|
1706
|
+
text: string | null;
|
|
1707
|
+
digest: string | null;
|
|
1708
|
+
}>;
|
|
1709
|
+
total: number;
|
|
1710
|
+
truncated: boolean;
|
|
1711
|
+
};
|
|
1229
1712
|
/** Edit a note (If-Match) or create one (If-None-Match: *) (PUT /agents/{agent_id}/learning/files/{file}). */
|
|
1230
1713
|
export type WriteLearningFileBody = {
|
|
1231
1714
|
text: string;
|
|
@@ -1243,6 +1726,13 @@ export type ConnectGitHubResponse = {
|
|
|
1243
1726
|
manifest: Record<string, unknown>;
|
|
1244
1727
|
state: string;
|
|
1245
1728
|
};
|
|
1729
|
+
/** A code that pairs a person's own computer with this server (POST /computers/pairings). */
|
|
1730
|
+
export type CreatePairingResponse = {
|
|
1731
|
+
id: string;
|
|
1732
|
+
code: string;
|
|
1733
|
+
expires_at: string;
|
|
1734
|
+
};
|
|
1735
|
+
/** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
|
|
1246
1736
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
1247
1737
|
export type DeleteWorkspaceArchilResponse = {
|
|
1248
1738
|
on: boolean;
|
|
@@ -1300,8 +1790,66 @@ export interface GitHubInstalledParams {
|
|
|
1300
1790
|
setup_action?: string;
|
|
1301
1791
|
state?: string;
|
|
1302
1792
|
}
|
|
1793
|
+
/** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
1794
|
+
export type ListComposioToolsBody = {
|
|
1795
|
+
api_key: string;
|
|
1796
|
+
toolkit: string;
|
|
1797
|
+
};
|
|
1798
|
+
export type ListComposioToolsResponse = {
|
|
1799
|
+
toolkit: string;
|
|
1800
|
+
no_auth: boolean;
|
|
1801
|
+
tools: Array<{
|
|
1802
|
+
slug: string;
|
|
1803
|
+
name: string;
|
|
1804
|
+
description: string;
|
|
1805
|
+
}>;
|
|
1806
|
+
};
|
|
1807
|
+
/** The values a computer provider's picked keys offer, read from the vendor (GET /computers/{provider}/choices). */
|
|
1808
|
+
export type ListComputerChoicesResponse = {
|
|
1809
|
+
choices: Array<{
|
|
1810
|
+
key: string;
|
|
1811
|
+
options: Array<{
|
|
1812
|
+
value: string;
|
|
1813
|
+
label: string;
|
|
1814
|
+
}>;
|
|
1815
|
+
saved?: string;
|
|
1816
|
+
} | {
|
|
1817
|
+
key: string;
|
|
1818
|
+
why: string;
|
|
1819
|
+
}>;
|
|
1820
|
+
};
|
|
1303
1821
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
1304
1822
|
export type ListComputersResponse = {
|
|
1823
|
+
paired: Array<{
|
|
1824
|
+
id: string;
|
|
1825
|
+
name: string;
|
|
1826
|
+
kind: string;
|
|
1827
|
+
serves: Array<"none" | "sandbox" | "desktop" | "phone" | "browser">;
|
|
1828
|
+
unserved: string | null;
|
|
1829
|
+
os: string;
|
|
1830
|
+
os_version: string | null;
|
|
1831
|
+
device: {
|
|
1832
|
+
maker: string;
|
|
1833
|
+
model: string;
|
|
1834
|
+
} | null;
|
|
1835
|
+
arch: string;
|
|
1836
|
+
screen: {
|
|
1837
|
+
width: number;
|
|
1838
|
+
height: number;
|
|
1839
|
+
scale: number;
|
|
1840
|
+
} | null;
|
|
1841
|
+
groups: Array<string>;
|
|
1842
|
+
features: Record<string, true | {
|
|
1843
|
+
off: string;
|
|
1844
|
+
}>;
|
|
1845
|
+
driver: string;
|
|
1846
|
+
online: boolean;
|
|
1847
|
+
held_by_run: string | null;
|
|
1848
|
+
held_until: string | null;
|
|
1849
|
+
pairing: string;
|
|
1850
|
+
created_at: string;
|
|
1851
|
+
seen_at: string | null;
|
|
1852
|
+
}>;
|
|
1305
1853
|
kinds: Array<{
|
|
1306
1854
|
kind: "none" | "sandbox" | "desktop" | "phone" | "browser";
|
|
1307
1855
|
offered: boolean;
|
|
@@ -1322,6 +1870,7 @@ export type ListComputersResponse = {
|
|
|
1322
1870
|
shell: "computer" | "local" | "none";
|
|
1323
1871
|
host_tools: Array<string>;
|
|
1324
1872
|
why?: string;
|
|
1873
|
+
picked?: Array<string>;
|
|
1325
1874
|
shell_note?: string;
|
|
1326
1875
|
gpu?: {
|
|
1327
1876
|
types: Array<string>;
|
|
@@ -1373,6 +1922,59 @@ export type PutWorkspaceArchilResponse = {
|
|
|
1373
1922
|
s3Url?: string;
|
|
1374
1923
|
image?: string;
|
|
1375
1924
|
};
|
|
1925
|
+
/** 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. */
|
|
1926
|
+
export type SaveComposioServerBody = {
|
|
1927
|
+
api_key: string;
|
|
1928
|
+
toolkit: string;
|
|
1929
|
+
tools: Array<string>;
|
|
1930
|
+
user_id?: string;
|
|
1931
|
+
};
|
|
1932
|
+
export type SaveComposioServerResponse = {
|
|
1933
|
+
server: {
|
|
1934
|
+
name: string;
|
|
1935
|
+
url: string;
|
|
1936
|
+
source: "composio" | "github" | "url";
|
|
1937
|
+
toolkit: string | null;
|
|
1938
|
+
auth: {
|
|
1939
|
+
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1940
|
+
headers?: Array<string>;
|
|
1941
|
+
};
|
|
1942
|
+
credential: "sealed" | "unreadable" | "expired" | null;
|
|
1943
|
+
oauth?: {
|
|
1944
|
+
expires_at?: string;
|
|
1945
|
+
scopes: Array<string>;
|
|
1946
|
+
client_id?: string;
|
|
1947
|
+
client: "pre-registered" | "metadata-document" | "dynamic";
|
|
1948
|
+
};
|
|
1949
|
+
protocol: string;
|
|
1950
|
+
server_info: Record<string, unknown> | null;
|
|
1951
|
+
instructions?: string;
|
|
1952
|
+
tools: Array<{
|
|
1953
|
+
name: string;
|
|
1954
|
+
title?: string;
|
|
1955
|
+
description?: string;
|
|
1956
|
+
input_schema: Record<string, unknown>;
|
|
1957
|
+
output_schema?: Record<string, unknown>;
|
|
1958
|
+
annotations?: Record<string, unknown>;
|
|
1959
|
+
grantable?: false;
|
|
1960
|
+
reason?: string;
|
|
1961
|
+
effect?: "read" | "write" | "destructive";
|
|
1962
|
+
grant_problems?: Record<string, string>;
|
|
1963
|
+
permission?: "allow" | "ask" | "deny";
|
|
1964
|
+
allow_reads?: true;
|
|
1965
|
+
fallback_allow_reads?: true;
|
|
1966
|
+
default_permission?: "allow" | "ask" | "deny";
|
|
1967
|
+
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1968
|
+
}>;
|
|
1969
|
+
prices?: Record<string, number>;
|
|
1970
|
+
not_metered?: Array<string>;
|
|
1971
|
+
listed_at: string;
|
|
1972
|
+
updated_at: string;
|
|
1973
|
+
secret?: SecretMeta;
|
|
1974
|
+
};
|
|
1975
|
+
connect_url?: string;
|
|
1976
|
+
not_served?: Array<string>;
|
|
1977
|
+
};
|
|
1376
1978
|
/** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
|
|
1377
1979
|
export type SaveComputerKeysBody = Record<string, string | null>;
|
|
1378
1980
|
export type SaveComputerKeysResponse = {
|
|
@@ -1390,6 +1992,7 @@ export type SaveComputerKeysResponse = {
|
|
|
1390
1992
|
shell: "computer" | "local" | "none";
|
|
1391
1993
|
host_tools: Array<string>;
|
|
1392
1994
|
why?: string;
|
|
1995
|
+
picked?: Array<string>;
|
|
1393
1996
|
shell_note?: string;
|
|
1394
1997
|
gpu?: {
|
|
1395
1998
|
types: Array<string>;
|
|
@@ -1419,6 +2022,7 @@ export type StartMcpOAuthBody = {
|
|
|
1419
2022
|
scopes?: Array<string>;
|
|
1420
2023
|
client_id?: string;
|
|
1421
2024
|
client_secret?: string;
|
|
2025
|
+
toolkit?: string | null;
|
|
1422
2026
|
};
|
|
1423
2027
|
export type StartMcpOAuthResponse = {
|
|
1424
2028
|
authorization_url: string;
|
|
@@ -1440,10 +2044,19 @@ export type TestWorkspaceArchilResponse = {
|
|
|
1440
2044
|
why: string;
|
|
1441
2045
|
};
|
|
1442
2046
|
/** Forget a saved MCP server and its credential (DELETE /settings/mcp-servers/{name}). */
|
|
2047
|
+
export type DeleteMcpServerResponse = {
|
|
2048
|
+
deleted: true;
|
|
2049
|
+
composio: {
|
|
2050
|
+
removed: false;
|
|
2051
|
+
note: string;
|
|
2052
|
+
};
|
|
2053
|
+
};
|
|
1443
2054
|
/** One saved MCP server; never its credential (GET /settings/mcp-servers/{name}). */
|
|
1444
2055
|
export type GetMcpServerResponse = {
|
|
1445
2056
|
name: string;
|
|
1446
2057
|
url: string;
|
|
2058
|
+
source: "composio" | "github" | "url";
|
|
2059
|
+
toolkit: string | null;
|
|
1447
2060
|
auth: {
|
|
1448
2061
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1449
2062
|
headers?: Array<string>;
|
|
@@ -1467,7 +2080,11 @@ export type GetMcpServerResponse = {
|
|
|
1467
2080
|
annotations?: Record<string, unknown>;
|
|
1468
2081
|
grantable?: false;
|
|
1469
2082
|
reason?: string;
|
|
2083
|
+
effect?: "read" | "write" | "destructive";
|
|
2084
|
+
grant_problems?: Record<string, string>;
|
|
1470
2085
|
permission?: "allow" | "ask" | "deny";
|
|
2086
|
+
allow_reads?: true;
|
|
2087
|
+
fallback_allow_reads?: true;
|
|
1471
2088
|
default_permission?: "allow" | "ask" | "deny";
|
|
1472
2089
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1473
2090
|
}>;
|
|
@@ -1482,6 +2099,8 @@ export type ListMcpServersResponse = {
|
|
|
1482
2099
|
servers: Array<{
|
|
1483
2100
|
name: string;
|
|
1484
2101
|
url: string;
|
|
2102
|
+
source: "composio" | "github" | "url";
|
|
2103
|
+
toolkit: string | null;
|
|
1485
2104
|
auth: {
|
|
1486
2105
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1487
2106
|
headers?: Array<string>;
|
|
@@ -1505,7 +2124,11 @@ export type ListMcpServersResponse = {
|
|
|
1505
2124
|
annotations?: Record<string, unknown>;
|
|
1506
2125
|
grantable?: false;
|
|
1507
2126
|
reason?: string;
|
|
2127
|
+
effect?: "read" | "write" | "destructive";
|
|
2128
|
+
grant_problems?: Record<string, string>;
|
|
1508
2129
|
permission?: "allow" | "ask" | "deny";
|
|
2130
|
+
allow_reads?: true;
|
|
2131
|
+
fallback_allow_reads?: true;
|
|
1509
2132
|
default_permission?: "allow" | "ask" | "deny";
|
|
1510
2133
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1511
2134
|
}>;
|
|
@@ -1526,6 +2149,7 @@ export type PreviewMcpServerBody = {
|
|
|
1526
2149
|
token?: string;
|
|
1527
2150
|
headers?: Record<string, string>;
|
|
1528
2151
|
};
|
|
2152
|
+
name?: string;
|
|
1529
2153
|
} | {
|
|
1530
2154
|
name: string;
|
|
1531
2155
|
};
|
|
@@ -1542,7 +2166,11 @@ export type PreviewMcpServerResponse = {
|
|
|
1542
2166
|
annotations?: Record<string, unknown>;
|
|
1543
2167
|
grantable?: false;
|
|
1544
2168
|
reason?: string;
|
|
2169
|
+
effect?: "read" | "write" | "destructive";
|
|
2170
|
+
grant_problems?: Record<string, string>;
|
|
1545
2171
|
permission?: "allow" | "ask" | "deny";
|
|
2172
|
+
allow_reads?: true;
|
|
2173
|
+
fallback_allow_reads?: true;
|
|
1546
2174
|
default_permission?: "allow" | "ask" | "deny";
|
|
1547
2175
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1548
2176
|
}>;
|
|
@@ -1559,6 +2187,8 @@ export type RefreshMcpServerResponse = {
|
|
|
1559
2187
|
server: {
|
|
1560
2188
|
name: string;
|
|
1561
2189
|
url: string;
|
|
2190
|
+
source: "composio" | "github" | "url";
|
|
2191
|
+
toolkit: string | null;
|
|
1562
2192
|
auth: {
|
|
1563
2193
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1564
2194
|
headers?: Array<string>;
|
|
@@ -1582,7 +2212,11 @@ export type RefreshMcpServerResponse = {
|
|
|
1582
2212
|
annotations?: Record<string, unknown>;
|
|
1583
2213
|
grantable?: false;
|
|
1584
2214
|
reason?: string;
|
|
2215
|
+
effect?: "read" | "write" | "destructive";
|
|
2216
|
+
grant_problems?: Record<string, string>;
|
|
1585
2217
|
permission?: "allow" | "ask" | "deny";
|
|
2218
|
+
allow_reads?: true;
|
|
2219
|
+
fallback_allow_reads?: true;
|
|
1586
2220
|
default_permission?: "allow" | "ask" | "deny";
|
|
1587
2221
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1588
2222
|
}>;
|
|
@@ -1602,10 +2236,13 @@ export type SaveMcpServerBody = {
|
|
|
1602
2236
|
headers?: Record<string, string>;
|
|
1603
2237
|
};
|
|
1604
2238
|
prices?: Record<string, number>;
|
|
2239
|
+
toolkit?: string | null;
|
|
1605
2240
|
};
|
|
1606
2241
|
export type SaveMcpServerResponse = {
|
|
1607
2242
|
name: string;
|
|
1608
2243
|
url: string;
|
|
2244
|
+
source: "composio" | "github" | "url";
|
|
2245
|
+
toolkit: string | null;
|
|
1609
2246
|
auth: {
|
|
1610
2247
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1611
2248
|
headers?: Array<string>;
|
|
@@ -1629,7 +2266,11 @@ export type SaveMcpServerResponse = {
|
|
|
1629
2266
|
annotations?: Record<string, unknown>;
|
|
1630
2267
|
grantable?: false;
|
|
1631
2268
|
reason?: string;
|
|
2269
|
+
effect?: "read" | "write" | "destructive";
|
|
2270
|
+
grant_problems?: Record<string, string>;
|
|
1632
2271
|
permission?: "allow" | "ask" | "deny";
|
|
2272
|
+
allow_reads?: true;
|
|
2273
|
+
fallback_allow_reads?: true;
|
|
1633
2274
|
default_permission?: "allow" | "ask" | "deny";
|
|
1634
2275
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1635
2276
|
}>;
|
|
@@ -1654,6 +2295,16 @@ export type ListRevisionsResponse = {
|
|
|
1654
2295
|
note: string | null;
|
|
1655
2296
|
created_at: Timestamp;
|
|
1656
2297
|
definition: Definition;
|
|
2298
|
+
mcp_pin?: Record<string, {
|
|
2299
|
+
tools: Array<{
|
|
2300
|
+
name: string;
|
|
2301
|
+
title?: string;
|
|
2302
|
+
description?: string;
|
|
2303
|
+
input_schema: Record<string, unknown>;
|
|
2304
|
+
annotations?: Record<string, unknown>;
|
|
2305
|
+
}>;
|
|
2306
|
+
prices?: Record<string, number>;
|
|
2307
|
+
}> | null;
|
|
1657
2308
|
}>;
|
|
1658
2309
|
next_cursor: string | null;
|
|
1659
2310
|
};
|
|
@@ -1666,6 +2317,29 @@ export type SetCurrentResponse = Agent;
|
|
|
1666
2317
|
export type ArchiveRunResponse = Record<string, unknown>;
|
|
1667
2318
|
/** End the run (POST /runs/{run_id}/cancel). */
|
|
1668
2319
|
export type CancelRunResponse = CancelResult;
|
|
2320
|
+
/** Send a run's computer one protocol call (POST /runs/{run_id}/computer/call). */
|
|
2321
|
+
export type CallRunComputerBody = {
|
|
2322
|
+
method: "apps.install" | "apps.launch" | "apps.list" | "apps.terminate" | "deadline.extend" | "exec.run" | "files.list" | "files.mkdir" | "files.move" | "files.read" | "files.remove" | "files.stat" | "files.write" | "hello" | "input.actions" | "mount.sync" | "ping" | "process.list" | "process.read" | "process.resize" | "process.signal" | "process.start" | "process.wait" | "process.write" | "screen.read" | "screen.shot" | "screen.watch" | "tar.pull.begin" | "tar.pull.end" | "tar.pull.read" | "tar.push.begin" | "tar.push.end" | "tar.push.write" | "ui.act" | "ui.observe";
|
|
2323
|
+
params?: Record<string, unknown>;
|
|
2324
|
+
};
|
|
2325
|
+
export type CallRunComputerResponse = {
|
|
2326
|
+
ok: true;
|
|
2327
|
+
value: unknown;
|
|
2328
|
+
} | {
|
|
2329
|
+
ok: false;
|
|
2330
|
+
error: {
|
|
2331
|
+
code: string;
|
|
2332
|
+
message: string;
|
|
2333
|
+
[key: string]: unknown;
|
|
2334
|
+
};
|
|
2335
|
+
};
|
|
2336
|
+
/** Let a held run's computer go (POST /runs/{run_id}/computer/release). */
|
|
2337
|
+
export type ReleaseRunComputerBody = Record<string, never>;
|
|
2338
|
+
export type ReleaseRunComputerResponse = {
|
|
2339
|
+
held: {
|
|
2340
|
+
state: "released";
|
|
2341
|
+
};
|
|
2342
|
+
};
|
|
1669
2343
|
/** Start a run of an agent another system owns, given inline (POST /runs). */
|
|
1670
2344
|
export type CreateInlineRunBody = RunCreateInline;
|
|
1671
2345
|
export interface CreateInlineRunParams {
|
|
@@ -1676,6 +2350,24 @@ export type CreateInlineRunResponse = Run;
|
|
|
1676
2350
|
export type ListRunFilesResponse = RunFileList;
|
|
1677
2351
|
/** One run (GET /runs/{run_id}). */
|
|
1678
2352
|
export type GetRunResponse = Run;
|
|
2353
|
+
/** Grade an ended run's answer: right or wrong, and the fields a right answer holds (PUT /runs/{run_id}/grade). */
|
|
2354
|
+
export type GradeRunBody = {
|
|
2355
|
+
correct: boolean;
|
|
2356
|
+
expected?: Record<string, unknown>;
|
|
2357
|
+
source?: "feedback" | "eval";
|
|
2358
|
+
label?: string;
|
|
2359
|
+
};
|
|
2360
|
+
export type GradeRunResponse = {
|
|
2361
|
+
run_id: string;
|
|
2362
|
+
correct: boolean;
|
|
2363
|
+
source: "feedback" | "eval";
|
|
2364
|
+
graded_at: string;
|
|
2365
|
+
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
2366
|
+
workflow: string | null;
|
|
2367
|
+
workflow_digest: string | null;
|
|
2368
|
+
feedback: "revise" | "look_back" | null;
|
|
2369
|
+
expected?: Record<string, unknown>;
|
|
2370
|
+
};
|
|
1679
2371
|
/** A workflow run's graph, live (GET /runs/{run_id}/graph). */
|
|
1680
2372
|
export type GetRunGraphResponse = {
|
|
1681
2373
|
read_at: string;
|
|
@@ -1762,7 +2454,7 @@ export type HandBackRunComputerResponse = {
|
|
|
1762
2454
|
export type GetRunLearningResponse = {
|
|
1763
2455
|
run: string;
|
|
1764
2456
|
state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
|
|
1765
|
-
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | null;
|
|
2457
|
+
reason: "seed_failed" | "no_budget" | "unknown_cost" | "cancelled" | "crashed" | "reflect_timeout" | "reflect_failed" | "empty" | "unparsed" | "propose_failed" | "checker" | "grader" | "grade_failed" | "use" | null;
|
|
1766
2458
|
detail: string | null;
|
|
1767
2459
|
at: string;
|
|
1768
2460
|
seed: string | null;
|
|
@@ -1788,6 +2480,17 @@ export type GetRunLearningResponse = {
|
|
|
1788
2480
|
path?: string;
|
|
1789
2481
|
detail: string;
|
|
1790
2482
|
}>;
|
|
2483
|
+
compiled: {
|
|
2484
|
+
workflow: string;
|
|
2485
|
+
from_notes: Array<string>;
|
|
2486
|
+
attempts: Array<{
|
|
2487
|
+
ok: boolean;
|
|
2488
|
+
errors: Array<string>;
|
|
2489
|
+
}>;
|
|
2490
|
+
digest: string | null;
|
|
2491
|
+
promoted: boolean | null;
|
|
2492
|
+
} | null;
|
|
2493
|
+
draft_errors: Array<string>;
|
|
1791
2494
|
cost_usd: {
|
|
1792
2495
|
grade: number | null;
|
|
1793
2496
|
};
|
|
@@ -1897,6 +2600,13 @@ export interface CreateRunParams {
|
|
|
1897
2600
|
"Idempotency-Key"?: string;
|
|
1898
2601
|
}
|
|
1899
2602
|
export type CreateRunResponse = Run;
|
|
2603
|
+
/** Start a held run's agent (POST /runs/{run_id}/start). */
|
|
2604
|
+
export type StartRunBody = Record<string, never>;
|
|
2605
|
+
export type StartRunResponse = {
|
|
2606
|
+
held: {
|
|
2607
|
+
state: "started";
|
|
2608
|
+
};
|
|
2609
|
+
};
|
|
1900
2610
|
/** End the current turn (POST /runs/{run_id}/stop). */
|
|
1901
2611
|
export type StopRunResponse = StopResult;
|
|
1902
2612
|
/** Take over the run's desktop or phone (POST /runs/{run_id}/computer/take-over). */
|
|
@@ -2052,6 +2762,7 @@ export type GetStatsResponse = {
|
|
|
2052
2762
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
2053
2763
|
export type ApplyTemplateBody = {
|
|
2054
2764
|
parameters?: Record<string, unknown>;
|
|
2765
|
+
servers?: Record<string, string>;
|
|
2055
2766
|
grants?: Array<string>;
|
|
2056
2767
|
overrides?: {
|
|
2057
2768
|
model?: string;
|
|
@@ -2065,6 +2776,7 @@ export type ApplyTemplateResponse = {
|
|
|
2065
2776
|
template: string;
|
|
2066
2777
|
version: string;
|
|
2067
2778
|
agent_id: string;
|
|
2779
|
+
servers: Record<string, string | null>;
|
|
2068
2780
|
trigger_ids: Array<string>;
|
|
2069
2781
|
warnings: Array<InputIssue>;
|
|
2070
2782
|
webhook_secrets?: Array<{
|
|
@@ -2075,9 +2787,20 @@ export type ApplyTemplateResponse = {
|
|
|
2075
2787
|
note?: string;
|
|
2076
2788
|
}>;
|
|
2077
2789
|
};
|
|
2078
|
-
/**
|
|
2079
|
-
|
|
2080
|
-
|
|
2790
|
+
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
2791
|
+
/** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
|
|
2792
|
+
export type ImportTemplateBody = {
|
|
2793
|
+
source: string;
|
|
2794
|
+
dry_run?: boolean;
|
|
2795
|
+
trust_publisher?: boolean;
|
|
2796
|
+
};
|
|
2797
|
+
export type ImportTemplateResponse = {
|
|
2798
|
+
template: {
|
|
2799
|
+
id: string;
|
|
2800
|
+
bundled: boolean;
|
|
2801
|
+
source: string | null;
|
|
2802
|
+
sha: string | null;
|
|
2803
|
+
publisher: string | null;
|
|
2081
2804
|
name: string;
|
|
2082
2805
|
display_name: string | null;
|
|
2083
2806
|
version: string;
|
|
@@ -2115,29 +2838,107 @@ export type ListTemplatesResponse = {
|
|
|
2115
2838
|
dropped: Array<string>;
|
|
2116
2839
|
note: string | null;
|
|
2117
2840
|
} | null;
|
|
2841
|
+
category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
|
|
2842
|
+
tags: Array<string>;
|
|
2118
2843
|
mcp: Array<{
|
|
2119
|
-
|
|
2844
|
+
source: "composio" | "github" | "url";
|
|
2845
|
+
toolkit: string;
|
|
2120
2846
|
required: boolean;
|
|
2847
|
+
reason: string | null;
|
|
2121
2848
|
tools: Array<{
|
|
2122
2849
|
name: string;
|
|
2123
2850
|
tool: string;
|
|
2124
2851
|
asks: "allow" | "ask";
|
|
2125
|
-
pin?: Record<string, string | number | boolean | null | Array<string | number | boolean | null
|
|
2852
|
+
pin?: Record<string, string | number | boolean | null | Array<string | number | boolean | null> | {
|
|
2853
|
+
keys: Array<string>;
|
|
2854
|
+
}>;
|
|
2126
2855
|
}>;
|
|
2127
2856
|
}>;
|
|
2128
|
-
parameters: Record<string,
|
|
2129
|
-
|
|
2857
|
+
parameters: Record<string, unknown>;
|
|
2858
|
+
input_schema: Record<string, unknown> | null;
|
|
2859
|
+
secrets: Array<string>;
|
|
2860
|
+
budget: {
|
|
2861
|
+
per_run_usd: number;
|
|
2862
|
+
} | null;
|
|
2863
|
+
learning: boolean;
|
|
2864
|
+
approvals_default: "ask" | "never";
|
|
2865
|
+
triggers: Array<Record<string, unknown>>;
|
|
2866
|
+
skills: Array<string>;
|
|
2867
|
+
evals: Array<string>;
|
|
2868
|
+
};
|
|
2869
|
+
instructions: string;
|
|
2870
|
+
skill_files: Record<string, string>;
|
|
2871
|
+
publisher_trusted: boolean;
|
|
2872
|
+
stored: boolean;
|
|
2873
|
+
replaced: string | null;
|
|
2874
|
+
console_url: string;
|
|
2875
|
+
};
|
|
2876
|
+
/** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
|
|
2877
|
+
export type ListTemplatesResponse = {
|
|
2878
|
+
templates: Array<{
|
|
2879
|
+
id: string;
|
|
2880
|
+
bundled: boolean;
|
|
2881
|
+
source: string | null;
|
|
2882
|
+
sha: string | null;
|
|
2883
|
+
publisher: string | null;
|
|
2884
|
+
name: string;
|
|
2885
|
+
display_name: string | null;
|
|
2886
|
+
version: string;
|
|
2887
|
+
description: string;
|
|
2888
|
+
license: string | null;
|
|
2889
|
+
author: {
|
|
2890
|
+
name: string;
|
|
2891
|
+
email?: string;
|
|
2892
|
+
url?: string;
|
|
2893
|
+
} | null;
|
|
2894
|
+
repository: string | null;
|
|
2895
|
+
output: {
|
|
2896
|
+
schema: string;
|
|
2897
|
+
json_schema: Record<string, unknown> | null;
|
|
2898
|
+
} | null;
|
|
2899
|
+
harness: Array<string> | null;
|
|
2900
|
+
model: {
|
|
2901
|
+
tier: "fast" | "balanced" | "strong";
|
|
2902
|
+
prefer?: string;
|
|
2903
|
+
} | null;
|
|
2904
|
+
effort: string | null;
|
|
2905
|
+
tools: Array<string> | null;
|
|
2906
|
+
checkout: "pull_request" | null;
|
|
2907
|
+
tool_policy: {
|
|
2908
|
+
bash: "read-only";
|
|
2909
|
+
} | null;
|
|
2910
|
+
computer: Array<"shell" | "none"> | null;
|
|
2911
|
+
computer_here: {
|
|
2912
|
+
entry: "shell" | "none" | null;
|
|
2913
|
+
computer: {
|
|
2914
|
+
kind: string;
|
|
2915
|
+
provider?: string;
|
|
2916
|
+
} | null;
|
|
2917
|
+
shell: string | null;
|
|
2918
|
+
dropped: Array<string>;
|
|
2919
|
+
note: string | null;
|
|
2920
|
+
} | null;
|
|
2921
|
+
category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
|
|
2922
|
+
tags: Array<string>;
|
|
2923
|
+
mcp: Array<{
|
|
2924
|
+
source: "composio" | "github" | "url";
|
|
2925
|
+
toolkit: string;
|
|
2130
2926
|
required: boolean;
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2927
|
+
reason: string | null;
|
|
2928
|
+
tools: Array<{
|
|
2929
|
+
name: string;
|
|
2930
|
+
tool: string;
|
|
2931
|
+
asks: "allow" | "ask";
|
|
2932
|
+
pin?: Record<string, string | number | boolean | null | Array<string | number | boolean | null> | {
|
|
2933
|
+
keys: Array<string>;
|
|
2934
|
+
}>;
|
|
2935
|
+
}>;
|
|
2136
2936
|
}>;
|
|
2937
|
+
parameters: Record<string, unknown>;
|
|
2938
|
+
input_schema: Record<string, unknown> | null;
|
|
2137
2939
|
secrets: Array<string>;
|
|
2138
2940
|
budget: {
|
|
2139
|
-
per_run_usd
|
|
2140
|
-
tool_calls?: number;
|
|
2941
|
+
per_run_usd: number;
|
|
2141
2942
|
} | null;
|
|
2142
2943
|
learning: boolean;
|
|
2143
2944
|
approvals_default: "ask" | "never";
|
|
@@ -2244,6 +3045,15 @@ export type PutToolSettingsBody = {
|
|
|
2244
3045
|
phone?: {
|
|
2245
3046
|
permission?: "allow" | "deny";
|
|
2246
3047
|
};
|
|
3048
|
+
jev?: {
|
|
3049
|
+
permission?: "allow" | "deny";
|
|
3050
|
+
};
|
|
3051
|
+
parallel?: {
|
|
3052
|
+
permission?: "allow" | "deny";
|
|
3053
|
+
};
|
|
3054
|
+
openrouter?: {
|
|
3055
|
+
permission?: "allow" | "deny";
|
|
3056
|
+
};
|
|
2247
3057
|
[key: string]: unknown;
|
|
2248
3058
|
};
|
|
2249
3059
|
export type PutToolSettingsResponse = {
|
|
@@ -2278,7 +3088,7 @@ export type CreateTriggerBody = {
|
|
|
2278
3088
|
start_at?: string;
|
|
2279
3089
|
} | {
|
|
2280
3090
|
kind: "webhook";
|
|
2281
|
-
signature?: "standard" | "github";
|
|
3091
|
+
signature?: "standard" | "github" | "composio";
|
|
2282
3092
|
accept?: Array<{
|
|
2283
3093
|
event: string;
|
|
2284
3094
|
actions?: Array<string>;
|
|
@@ -2346,7 +3156,7 @@ export type CreateTriggerResponse = {
|
|
|
2346
3156
|
start_at: string;
|
|
2347
3157
|
} | {
|
|
2348
3158
|
kind: "webhook";
|
|
2349
|
-
signature?: "standard" | "github";
|
|
3159
|
+
signature?: "standard" | "github" | "composio";
|
|
2350
3160
|
accept?: Array<{
|
|
2351
3161
|
event: string;
|
|
2352
3162
|
actions?: Array<string>;
|
|
@@ -2497,7 +3307,7 @@ export type GetTriggerResponse = {
|
|
|
2497
3307
|
start_at: string;
|
|
2498
3308
|
} | {
|
|
2499
3309
|
kind: "webhook";
|
|
2500
|
-
signature?: "standard" | "github";
|
|
3310
|
+
signature?: "standard" | "github" | "composio";
|
|
2501
3311
|
accept?: Array<{
|
|
2502
3312
|
event: string;
|
|
2503
3313
|
actions?: Array<string>;
|
|
@@ -2605,7 +3415,7 @@ export type ListTriggersResponse = {
|
|
|
2605
3415
|
start_at: string;
|
|
2606
3416
|
} | {
|
|
2607
3417
|
kind: "webhook";
|
|
2608
|
-
signature?: "standard" | "github";
|
|
3418
|
+
signature?: "standard" | "github" | "composio";
|
|
2609
3419
|
accept?: Array<{
|
|
2610
3420
|
event: string;
|
|
2611
3421
|
actions?: Array<string>;
|
|
@@ -2695,10 +3505,13 @@ export type ListTriggersResponse = {
|
|
|
2695
3505
|
note?: string;
|
|
2696
3506
|
}>;
|
|
2697
3507
|
};
|
|
2698
|
-
/** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). */
|
|
3508
|
+
/** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
3509
|
+
export type RotateTriggerSecretBody = {
|
|
3510
|
+
secret?: string;
|
|
3511
|
+
};
|
|
2699
3512
|
export type RotateTriggerSecretResponse = {
|
|
2700
3513
|
secret: SecretMeta;
|
|
2701
|
-
signing_secret
|
|
3514
|
+
signing_secret?: string;
|
|
2702
3515
|
};
|
|
2703
3516
|
/** Change a trigger, or turn it off and on (PATCH /triggers/{trigger_id}). */
|
|
2704
3517
|
export type UpdateTriggerBody = {
|
|
@@ -2717,7 +3530,7 @@ export type UpdateTriggerBody = {
|
|
|
2717
3530
|
start_at?: string;
|
|
2718
3531
|
} | {
|
|
2719
3532
|
kind: "webhook";
|
|
2720
|
-
signature?: "standard" | "github";
|
|
3533
|
+
signature?: "standard" | "github" | "composio";
|
|
2721
3534
|
accept?: Array<{
|
|
2722
3535
|
event: string;
|
|
2723
3536
|
actions?: Array<string>;
|
|
@@ -2782,7 +3595,7 @@ export type UpdateTriggerResponse = {
|
|
|
2782
3595
|
start_at: string;
|
|
2783
3596
|
} | {
|
|
2784
3597
|
kind: "webhook";
|
|
2785
|
-
signature?: "standard" | "github";
|
|
3598
|
+
signature?: "standard" | "github" | "composio";
|
|
2786
3599
|
accept?: Array<{
|
|
2787
3600
|
event: string;
|
|
2788
3601
|
actions?: Array<string>;
|
|
@@ -2868,6 +3681,8 @@ export type UpdateTriggerResponse = {
|
|
|
2868
3681
|
catch_up?: true;
|
|
2869
3682
|
} | null;
|
|
2870
3683
|
hook_url?: string;
|
|
3684
|
+
secret?: SecretMeta;
|
|
3685
|
+
note?: string;
|
|
2871
3686
|
};
|
|
2872
3687
|
/** Usage by meter over a period (GET /usage). */
|
|
2873
3688
|
export interface GetUsageParams {
|
|
@@ -2995,8 +3810,12 @@ export declare function resources(call: Call): {
|
|
|
2995
3810
|
get: (agentId: string, options?: RequestOptions) => Promise<Tagged<GetAgentResponse>>;
|
|
2996
3811
|
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
2997
3812
|
getAgentArchil: (agentId: string, options?: RequestOptions) => Promise<GetAgentArchilResponse>;
|
|
3813
|
+
/** The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows (GET /agents/{agent_id}/learning/loop). */
|
|
3814
|
+
getLearningLoop: (agentId: string, options?: RequestOptions) => Promise<GetLearningLoopResponse>;
|
|
2998
3815
|
/** List agents (GET /agents). */
|
|
2999
3816
|
list: (params?: ListAgentsParams, options?: RequestOptions) => Promise<ListAgentsResponse>;
|
|
3817
|
+
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
3818
|
+
listLearningPromotions: (agentId: string, options?: RequestOptions) => Promise<ListLearningPromotionsResponse>;
|
|
3000
3819
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
3001
3820
|
runs: (agentId: string, params?: ListRunsParams, options?: RequestOptions) => Promise<ListRunsResponse>;
|
|
3002
3821
|
/** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
|
|
@@ -3027,8 +3846,18 @@ export declare function resources(call: Call): {
|
|
|
3027
3846
|
write: (agentId: string, path: string, body: RawBody, options?: BodyOptions) => Promise<WriteHomeFileResponse>;
|
|
3028
3847
|
};
|
|
3029
3848
|
learning: {
|
|
3849
|
+
/** A learning batch's progress: rows done, right or wrong, lessons, workflow revisions, cost, the path each run took (GET /agents/{agent_id}/learning/batches/{batch_id}). */
|
|
3850
|
+
batch: (agentId: string, batchId: string, options?: RequestOptions) => Promise<GetLearningBatchResponse>;
|
|
3851
|
+
/** Cancel a running learning batch (POST /agents/{agent_id}/learning/batches/{batch_id}/cancel). */
|
|
3852
|
+
batchCancel: (agentId: string, batchId: string, options?: RequestOptions) => Promise<CancelLearningBatchResponse>;
|
|
3853
|
+
/** Learn from rows: run the agent on each in order, with learning on, and tell it the reference answer after each (POST /agents/{agent_id}/learning/batches). */
|
|
3854
|
+
batchStart: (agentId: string, body: CreateLearningBatchBody, options?: RequestOptions) => Promise<CreateLearningBatchResponse>;
|
|
3855
|
+
/** The agent's learning batches, latest first (GET /agents/{agent_id}/learning/batches). */
|
|
3856
|
+
batches: (agentId: string, options?: RequestOptions) => Promise<ListLearningBatchesResponse>;
|
|
3030
3857
|
/** The agent's cost per run, run after run: its own cost, what learning added and the path it took (GET /agents/{agent_id}/learning/cost). */
|
|
3031
3858
|
cost: (agentId: string, params?: GetLearningCostParams, options?: RequestOptions) => Promise<GetLearningCostResponse | string>;
|
|
3859
|
+
/** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
|
|
3860
|
+
evals: (agentId: string, options?: RequestOptions) => Promise<ListLearningEvalsResponse>;
|
|
3032
3861
|
/** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
|
|
3033
3862
|
get: (agentId: string, options?: RequestOptions) => Promise<GetAgentLearningResponse>;
|
|
3034
3863
|
/** A page of the changes on the agent's main, newest first (GET /agents/{agent_id}/learning/log). */
|
|
@@ -3037,12 +3866,20 @@ export declare function resources(call: Call): {
|
|
|
3037
3866
|
notes: (agentId: string, params?: ListLearningNotesParams, options?: RequestOptions) => Promise<ListLearningNotesResponse>;
|
|
3038
3867
|
/** One note (or MEMORY.md, a skill's SKILL.md or a draft's file) on main, as text, with its ETag (GET /agents/{agent_id}/learning/files/{file}). */
|
|
3039
3868
|
read: (agentId: string, file: string, options?: RequestOptions) => Promise<Tagged<ReadLearningFileResponse | string>>;
|
|
3869
|
+
/** Record a held-out test of the agent: its counts and the cost a task, with learning and by hand (POST /agents/{agent_id}/learning/evals). */
|
|
3870
|
+
recordEval: (agentId: string, body: RecordLearningEvalBody, params?: RecordLearningEvalParams, options?: RequestOptions) => Promise<RecordLearningEvalResponse>;
|
|
3040
3871
|
/** 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). */
|
|
3041
3872
|
retire: (agentId: string, file: string, params?: RetireLearningFileParams, options?: RequestOptions) => Promise<Tagged<string>>;
|
|
3873
|
+
/** A learned workflow's revisions on main, oldest first, each with its workflow.json as it was then (GET /agents/{agent_id}/learning/workflows/{name}/revisions). */
|
|
3874
|
+
workflowRevisions: (agentId: string, name: string, params?: ListLearnedWorkflowRevisionsParams, options?: RequestOptions) => Promise<ListLearnedWorkflowRevisionsResponse>;
|
|
3042
3875
|
/** Edit a note (If-Match) or create one (If-None-Match: *) (PUT /agents/{agent_id}/learning/files/{file}). */
|
|
3043
3876
|
write: (agentId: string, file: string, body: WriteLearningFileBody | RawBody, params?: WriteLearningFileParams, options?: BodyOptions) => Promise<Tagged<string>>;
|
|
3044
3877
|
};
|
|
3045
3878
|
local: {
|
|
3879
|
+
/** A code that pairs a person's own computer with this server (POST /computers/pairings). */
|
|
3880
|
+
createPairing: (options?: RequestOptions) => Promise<CreatePairingResponse>;
|
|
3881
|
+
/** Remove a paired computer: its token ends and its socket closes (DELETE /computers/{computer_id}). */
|
|
3882
|
+
deleteComputer: (computerId: string, options?: RequestOptions) => Promise<void>;
|
|
3046
3883
|
/** Turn Mode 2 off: run folders on this server's own disk (DELETE /workspace/archil). */
|
|
3047
3884
|
deleteWorkspaceArchil: (options?: RequestOptions) => Promise<DeleteWorkspaceArchilResponse>;
|
|
3048
3885
|
/** Disconnect GitHub: the App's credentials gone from this server, and every github trigger off (DELETE /integrations/github). */
|
|
@@ -3051,10 +3888,16 @@ export declare function resources(call: Call): {
|
|
|
3051
3888
|
getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
|
|
3052
3889
|
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
3053
3890
|
getWorkspaceArchil: (options?: RequestOptions) => Promise<GetWorkspaceArchilResponse>;
|
|
3891
|
+
/** List the actions of a Composio toolkit, for the console's picker; stores nothing (POST /settings/mcp-servers/composio/tools). */
|
|
3892
|
+
listComposioTools: (body: ListComposioToolsBody, options?: RequestOptions) => Promise<ListComposioToolsResponse>;
|
|
3893
|
+
/** The values a computer provider's picked keys offer, read from the vendor (GET /computers/{provider}/choices). */
|
|
3894
|
+
listComputerChoices: (provider: string, options?: RequestOptions) => Promise<ListComputerChoicesResponse>;
|
|
3054
3895
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
3055
3896
|
listComputers: (options?: RequestOptions) => Promise<ListComputersResponse>;
|
|
3056
3897
|
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
3057
3898
|
putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
|
|
3899
|
+
/** 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). */
|
|
3900
|
+
saveComposioServer: (name: string, body: SaveComposioServerBody, options?: RequestOptions) => Promise<SaveComposioServerResponse>;
|
|
3058
3901
|
/** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
|
|
3059
3902
|
saveComputerKeys: (provider: string, body: SaveComputerKeysBody, options?: RequestOptions) => Promise<SaveComputerKeysResponse>;
|
|
3060
3903
|
/** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
|
|
@@ -3064,7 +3907,7 @@ export declare function resources(call: Call): {
|
|
|
3064
3907
|
};
|
|
3065
3908
|
mcpServers: {
|
|
3066
3909
|
/** Forget a saved MCP server and its credential (DELETE /settings/mcp-servers/{name}). */
|
|
3067
|
-
delete: (name: string, options?: RequestOptions) => Promise<
|
|
3910
|
+
delete: (name: string, options?: RequestOptions) => Promise<DeleteMcpServerResponse | undefined>;
|
|
3068
3911
|
/** One saved MCP server; never its credential (GET /settings/mcp-servers/{name}). */
|
|
3069
3912
|
get: (name: string, options?: RequestOptions) => Promise<GetMcpServerResponse>;
|
|
3070
3913
|
/** The remote MCP servers saved here, with their tools; never a credential (GET /settings/mcp-servers). */
|
|
@@ -3091,12 +3934,18 @@ export declare function resources(call: Call): {
|
|
|
3091
3934
|
archive: (runId: string, options?: RequestOptions) => Promise<ArchiveRunResponse>;
|
|
3092
3935
|
/** End the run (POST /runs/{run_id}/cancel). */
|
|
3093
3936
|
cancel: (runId: string, options?: RequestOptions) => Promise<CancelRunResponse>;
|
|
3937
|
+
/** Send a run's computer one protocol call (POST /runs/{run_id}/computer/call). */
|
|
3938
|
+
computerCall: (runId: string, body: CallRunComputerBody, options?: RequestOptions) => Promise<CallRunComputerResponse>;
|
|
3939
|
+
/** Let a held run's computer go (POST /runs/{run_id}/computer/release). */
|
|
3940
|
+
computerRelease: (runId: string, body?: ReleaseRunComputerBody, options?: RequestOptions) => Promise<ReleaseRunComputerResponse>;
|
|
3094
3941
|
/** Start a run of an agent another system owns, given inline (POST /runs). */
|
|
3095
3942
|
createInlineRun: (body: CreateInlineRunBody, params?: CreateInlineRunParams, options?: RequestOptions) => Promise<CreateInlineRunResponse>;
|
|
3096
3943
|
/** The files the run wrote (GET /runs/{run_id}/files). */
|
|
3097
3944
|
files: (runId: string, options?: RequestOptions) => Promise<ListRunFilesResponse>;
|
|
3098
3945
|
/** One run (GET /runs/{run_id}). */
|
|
3099
3946
|
get: (runId: string, options?: RequestOptions) => Promise<GetRunResponse>;
|
|
3947
|
+
/** Grade an ended run's answer: right or wrong, and the fields a right answer holds (PUT /runs/{run_id}/grade). */
|
|
3948
|
+
gradeRun: (runId: string, body: GradeRunBody, options?: RequestOptions) => Promise<GradeRunResponse>;
|
|
3100
3949
|
/** A workflow run's graph, live (GET /runs/{run_id}/graph). */
|
|
3101
3950
|
graph: (runId: string, options?: RequestOptions) => Promise<GetRunGraphResponse>;
|
|
3102
3951
|
/** Hand the run's computer back to the agent, or answer its ask for the owner (POST /runs/{run_id}/computer/hand-back). */
|
|
@@ -3119,6 +3968,8 @@ export declare function resources(call: Call): {
|
|
|
3119
3968
|
resume: (runId: string, options?: RequestOptions) => Promise<ResumeRunResponse>;
|
|
3120
3969
|
/** Start a run (POST /agents/{agent_id}/runs). */
|
|
3121
3970
|
start: (agentId: string, body: CreateRunBody, params?: CreateRunParams, options?: RequestOptions) => Promise<CreateRunResponse>;
|
|
3971
|
+
/** Start a held run's agent (POST /runs/{run_id}/start). */
|
|
3972
|
+
startHeld: (runId: string, body?: StartRunBody, options?: RequestOptions) => Promise<StartRunResponse>;
|
|
3122
3973
|
/** End the current turn (POST /runs/{run_id}/stop). */
|
|
3123
3974
|
stop: (runId: string, options?: RequestOptions) => Promise<StopRunResponse>;
|
|
3124
3975
|
/** Take over the run's desktop or phone (POST /runs/{run_id}/computer/take-over). */
|
|
@@ -3145,7 +3996,11 @@ export declare function resources(call: Call): {
|
|
|
3145
3996
|
template: {
|
|
3146
3997
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
3147
3998
|
apply: (template: string, body: ApplyTemplateBody, params?: ApplyTemplateParams, options?: RequestOptions) => Promise<ApplyTemplateResponse>;
|
|
3148
|
-
/**
|
|
3999
|
+
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
4000
|
+
delete: (template: string, options?: RequestOptions) => Promise<void>;
|
|
4001
|
+
/** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
|
|
4002
|
+
import: (body: ImportTemplateBody, options?: RequestOptions) => Promise<ImportTemplateResponse>;
|
|
4003
|
+
/** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
|
|
3149
4004
|
list: (options?: RequestOptions) => Promise<ListTemplatesResponse>;
|
|
3150
4005
|
};
|
|
3151
4006
|
toolKeys: {
|
|
@@ -3176,7 +4031,7 @@ export declare function resources(call: Call): {
|
|
|
3176
4031
|
/** The triggers: schedules and signed webhooks that start an agent's capped runs or message a run (GET /triggers). */
|
|
3177
4032
|
list: (options?: RequestOptions) => Promise<ListTriggersResponse>;
|
|
3178
4033
|
/** A webhook trigger's new secret, shown once; the old one signs nothing from now on (POST /triggers/{trigger_id}/secret). */
|
|
3179
|
-
rotateSecret: (triggerId: string, options?: RequestOptions) => Promise<RotateTriggerSecretResponse>;
|
|
4034
|
+
rotateSecret: (triggerId: string, body?: RotateTriggerSecretBody, options?: RequestOptions) => Promise<RotateTriggerSecretResponse>;
|
|
3180
4035
|
/** Change a trigger, or turn it off and on (PATCH /triggers/{trigger_id}). */
|
|
3181
4036
|
update: (triggerId: string, body: UpdateTriggerBody, options?: RequestOptions) => Promise<UpdateTriggerResponse>;
|
|
3182
4037
|
};
|