@parcha/agentrun-client 0.1.0-beta.37 → 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 +339 -18
- package/dist/operations.generated.js +17 -2
- package/package.json +1 -1
|
@@ -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?: {
|
|
@@ -97,7 +99,6 @@ export type DefinitionInput = {
|
|
|
97
99
|
approvals?: "ask" | "never";
|
|
98
100
|
learning?: true | false | "notes";
|
|
99
101
|
checkout?: "pull_request" | "none";
|
|
100
|
-
max_tool_calls?: number;
|
|
101
102
|
cap_mode?: "expected" | "strict";
|
|
102
103
|
};
|
|
103
104
|
export type Id = string;
|
|
@@ -143,6 +144,16 @@ export type Agent = {
|
|
|
143
144
|
learning?: {
|
|
144
145
|
pending: number;
|
|
145
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;
|
|
146
157
|
own_computer?: {
|
|
147
158
|
provider: string;
|
|
148
159
|
id: string;
|
|
@@ -153,6 +164,11 @@ export type Agent = {
|
|
|
153
164
|
run_id?: string;
|
|
154
165
|
why?: string;
|
|
155
166
|
} | null;
|
|
167
|
+
template?: {
|
|
168
|
+
id: string;
|
|
169
|
+
version: string;
|
|
170
|
+
sha: string | null;
|
|
171
|
+
} | null;
|
|
156
172
|
warnings?: Array<InputIssue>;
|
|
157
173
|
};
|
|
158
174
|
export type Definition = DefinitionInput;
|
|
@@ -265,6 +281,7 @@ export type RunSummary = {
|
|
|
265
281
|
args_preview: string;
|
|
266
282
|
requested_at: string;
|
|
267
283
|
price?: number | "not metered";
|
|
284
|
+
destructive?: true;
|
|
268
285
|
} | {
|
|
269
286
|
kind: "budget";
|
|
270
287
|
cap_usd: number;
|
|
@@ -380,6 +397,7 @@ export type RunCreateInline = {
|
|
|
380
397
|
headers: Record<string, string>;
|
|
381
398
|
}>;
|
|
382
399
|
cap_mode?: "expected" | "strict";
|
|
400
|
+
workflow_first?: boolean;
|
|
383
401
|
learning?: "use";
|
|
384
402
|
repo?: string;
|
|
385
403
|
archil_disk?: {
|
|
@@ -417,6 +435,8 @@ export type Run = {
|
|
|
417
435
|
approvals?: "ask" | "never";
|
|
418
436
|
cap_mode?: "expected" | "strict" | null;
|
|
419
437
|
last_progress_at?: string | null;
|
|
438
|
+
input?: Record<string, unknown> | null;
|
|
439
|
+
file_ids?: Array<string>;
|
|
420
440
|
claim?: {
|
|
421
441
|
runner: string;
|
|
422
442
|
epoch: number;
|
|
@@ -491,6 +511,7 @@ export type Run = {
|
|
|
491
511
|
args_preview: string;
|
|
492
512
|
requested_at: string;
|
|
493
513
|
price?: number | "not metered";
|
|
514
|
+
destructive?: true;
|
|
494
515
|
} | {
|
|
495
516
|
kind: "budget";
|
|
496
517
|
cap_usd: number;
|
|
@@ -528,6 +549,7 @@ export type Run = {
|
|
|
528
549
|
export type RunResult = {
|
|
529
550
|
output: unknown;
|
|
530
551
|
final_answer: string | null;
|
|
552
|
+
output_error?: string;
|
|
531
553
|
};
|
|
532
554
|
export type RunFileList = {
|
|
533
555
|
run_id: Id;
|
|
@@ -566,6 +588,7 @@ export type RunCreate = {
|
|
|
566
588
|
headers: Record<string, string>;
|
|
567
589
|
}>;
|
|
568
590
|
cap_mode?: "expected" | "strict";
|
|
591
|
+
workflow_first?: boolean;
|
|
569
592
|
learning?: "use";
|
|
570
593
|
repo?: string;
|
|
571
594
|
archil_disk?: {
|
|
@@ -634,11 +657,19 @@ export type TimelineRow = {
|
|
|
634
657
|
}>;
|
|
635
658
|
computer_calls?: Array<{
|
|
636
659
|
method: string;
|
|
660
|
+
started_at: string;
|
|
661
|
+
app?: string;
|
|
637
662
|
ok: boolean;
|
|
638
663
|
ms: number;
|
|
639
664
|
code?: string;
|
|
640
665
|
steps?: Array<{
|
|
641
666
|
do: string;
|
|
667
|
+
on?: {
|
|
668
|
+
role: string;
|
|
669
|
+
name?: string;
|
|
670
|
+
};
|
|
671
|
+
keys?: string;
|
|
672
|
+
nav?: string;
|
|
642
673
|
route?: string;
|
|
643
674
|
verified?: boolean;
|
|
644
675
|
error?: string;
|
|
@@ -726,6 +757,7 @@ export type Capabilities = {
|
|
|
726
757
|
nodes: boolean;
|
|
727
758
|
calls: boolean;
|
|
728
759
|
call_only?: boolean;
|
|
760
|
+
meta?: boolean;
|
|
729
761
|
sandbox_only?: boolean;
|
|
730
762
|
available: boolean;
|
|
731
763
|
reason?: string;
|
|
@@ -978,6 +1010,44 @@ export type GetAgentArchilResponse = {
|
|
|
978
1010
|
disk_id: string;
|
|
979
1011
|
} | null;
|
|
980
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
|
+
};
|
|
981
1051
|
/** List agents (GET /agents). */
|
|
982
1052
|
export interface ListAgentsParams {
|
|
983
1053
|
limit?: number;
|
|
@@ -985,6 +1055,54 @@ export interface ListAgentsParams {
|
|
|
985
1055
|
archived?: boolean;
|
|
986
1056
|
}
|
|
987
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
|
+
};
|
|
988
1106
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
989
1107
|
export interface ListRunsParams {
|
|
990
1108
|
limit?: number;
|
|
@@ -1292,7 +1410,7 @@ export type GetLearningCostResponse = {
|
|
|
1292
1410
|
n: number;
|
|
1293
1411
|
run_id: string;
|
|
1294
1412
|
started_at: string;
|
|
1295
|
-
path: "agent" | "handed_back" | "workflow";
|
|
1413
|
+
path: "agent" | "handed_back" | "workflow" | "replay";
|
|
1296
1414
|
workflow: string | null;
|
|
1297
1415
|
learned_revision: string | null;
|
|
1298
1416
|
cost_usd: number | null;
|
|
@@ -1301,6 +1419,21 @@ export type GetLearningCostResponse = {
|
|
|
1301
1419
|
}>;
|
|
1302
1420
|
total_runs: number;
|
|
1303
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
|
+
}>;
|
|
1304
1437
|
summary: {
|
|
1305
1438
|
takeover: {
|
|
1306
1439
|
n: number;
|
|
@@ -1315,6 +1448,10 @@ export type GetLearningCostResponse = {
|
|
|
1315
1448
|
mean_usd: number;
|
|
1316
1449
|
} | null;
|
|
1317
1450
|
times_cheaper: number | null;
|
|
1451
|
+
hand_backs: {
|
|
1452
|
+
ran: number;
|
|
1453
|
+
back: number;
|
|
1454
|
+
} | null;
|
|
1318
1455
|
};
|
|
1319
1456
|
};
|
|
1320
1457
|
/** The agent's eval records: the latest, and every one kept, newest first (GET /agents/{agent_id}/learning/evals). */
|
|
@@ -1567,6 +1704,7 @@ export type ListLearnedWorkflowRevisionsResponse = {
|
|
|
1567
1704
|
};
|
|
1568
1705
|
reason: string;
|
|
1569
1706
|
text: string | null;
|
|
1707
|
+
digest: string | null;
|
|
1570
1708
|
}>;
|
|
1571
1709
|
total: number;
|
|
1572
1710
|
truncated: boolean;
|
|
@@ -1795,6 +1933,8 @@ export type SaveComposioServerResponse = {
|
|
|
1795
1933
|
server: {
|
|
1796
1934
|
name: string;
|
|
1797
1935
|
url: string;
|
|
1936
|
+
source: "composio" | "github" | "url";
|
|
1937
|
+
toolkit: string | null;
|
|
1798
1938
|
auth: {
|
|
1799
1939
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1800
1940
|
headers?: Array<string>;
|
|
@@ -1818,7 +1958,11 @@ export type SaveComposioServerResponse = {
|
|
|
1818
1958
|
annotations?: Record<string, unknown>;
|
|
1819
1959
|
grantable?: false;
|
|
1820
1960
|
reason?: string;
|
|
1961
|
+
effect?: "read" | "write" | "destructive";
|
|
1962
|
+
grant_problems?: Record<string, string>;
|
|
1821
1963
|
permission?: "allow" | "ask" | "deny";
|
|
1964
|
+
allow_reads?: true;
|
|
1965
|
+
fallback_allow_reads?: true;
|
|
1822
1966
|
default_permission?: "allow" | "ask" | "deny";
|
|
1823
1967
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1824
1968
|
}>;
|
|
@@ -1878,6 +2022,7 @@ export type StartMcpOAuthBody = {
|
|
|
1878
2022
|
scopes?: Array<string>;
|
|
1879
2023
|
client_id?: string;
|
|
1880
2024
|
client_secret?: string;
|
|
2025
|
+
toolkit?: string | null;
|
|
1881
2026
|
};
|
|
1882
2027
|
export type StartMcpOAuthResponse = {
|
|
1883
2028
|
authorization_url: string;
|
|
@@ -1899,10 +2044,19 @@ export type TestWorkspaceArchilResponse = {
|
|
|
1899
2044
|
why: string;
|
|
1900
2045
|
};
|
|
1901
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
|
+
};
|
|
1902
2054
|
/** One saved MCP server; never its credential (GET /settings/mcp-servers/{name}). */
|
|
1903
2055
|
export type GetMcpServerResponse = {
|
|
1904
2056
|
name: string;
|
|
1905
2057
|
url: string;
|
|
2058
|
+
source: "composio" | "github" | "url";
|
|
2059
|
+
toolkit: string | null;
|
|
1906
2060
|
auth: {
|
|
1907
2061
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1908
2062
|
headers?: Array<string>;
|
|
@@ -1926,7 +2080,11 @@ export type GetMcpServerResponse = {
|
|
|
1926
2080
|
annotations?: Record<string, unknown>;
|
|
1927
2081
|
grantable?: false;
|
|
1928
2082
|
reason?: string;
|
|
2083
|
+
effect?: "read" | "write" | "destructive";
|
|
2084
|
+
grant_problems?: Record<string, string>;
|
|
1929
2085
|
permission?: "allow" | "ask" | "deny";
|
|
2086
|
+
allow_reads?: true;
|
|
2087
|
+
fallback_allow_reads?: true;
|
|
1930
2088
|
default_permission?: "allow" | "ask" | "deny";
|
|
1931
2089
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1932
2090
|
}>;
|
|
@@ -1941,6 +2099,8 @@ export type ListMcpServersResponse = {
|
|
|
1941
2099
|
servers: Array<{
|
|
1942
2100
|
name: string;
|
|
1943
2101
|
url: string;
|
|
2102
|
+
source: "composio" | "github" | "url";
|
|
2103
|
+
toolkit: string | null;
|
|
1944
2104
|
auth: {
|
|
1945
2105
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1946
2106
|
headers?: Array<string>;
|
|
@@ -1964,7 +2124,11 @@ export type ListMcpServersResponse = {
|
|
|
1964
2124
|
annotations?: Record<string, unknown>;
|
|
1965
2125
|
grantable?: false;
|
|
1966
2126
|
reason?: string;
|
|
2127
|
+
effect?: "read" | "write" | "destructive";
|
|
2128
|
+
grant_problems?: Record<string, string>;
|
|
1967
2129
|
permission?: "allow" | "ask" | "deny";
|
|
2130
|
+
allow_reads?: true;
|
|
2131
|
+
fallback_allow_reads?: true;
|
|
1968
2132
|
default_permission?: "allow" | "ask" | "deny";
|
|
1969
2133
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
1970
2134
|
}>;
|
|
@@ -2002,7 +2166,11 @@ export type PreviewMcpServerResponse = {
|
|
|
2002
2166
|
annotations?: Record<string, unknown>;
|
|
2003
2167
|
grantable?: false;
|
|
2004
2168
|
reason?: string;
|
|
2169
|
+
effect?: "read" | "write" | "destructive";
|
|
2170
|
+
grant_problems?: Record<string, string>;
|
|
2005
2171
|
permission?: "allow" | "ask" | "deny";
|
|
2172
|
+
allow_reads?: true;
|
|
2173
|
+
fallback_allow_reads?: true;
|
|
2006
2174
|
default_permission?: "allow" | "ask" | "deny";
|
|
2007
2175
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
2008
2176
|
}>;
|
|
@@ -2019,6 +2187,8 @@ export type RefreshMcpServerResponse = {
|
|
|
2019
2187
|
server: {
|
|
2020
2188
|
name: string;
|
|
2021
2189
|
url: string;
|
|
2190
|
+
source: "composio" | "github" | "url";
|
|
2191
|
+
toolkit: string | null;
|
|
2022
2192
|
auth: {
|
|
2023
2193
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
2024
2194
|
headers?: Array<string>;
|
|
@@ -2042,7 +2212,11 @@ export type RefreshMcpServerResponse = {
|
|
|
2042
2212
|
annotations?: Record<string, unknown>;
|
|
2043
2213
|
grantable?: false;
|
|
2044
2214
|
reason?: string;
|
|
2215
|
+
effect?: "read" | "write" | "destructive";
|
|
2216
|
+
grant_problems?: Record<string, string>;
|
|
2045
2217
|
permission?: "allow" | "ask" | "deny";
|
|
2218
|
+
allow_reads?: true;
|
|
2219
|
+
fallback_allow_reads?: true;
|
|
2046
2220
|
default_permission?: "allow" | "ask" | "deny";
|
|
2047
2221
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
2048
2222
|
}>;
|
|
@@ -2062,10 +2236,13 @@ export type SaveMcpServerBody = {
|
|
|
2062
2236
|
headers?: Record<string, string>;
|
|
2063
2237
|
};
|
|
2064
2238
|
prices?: Record<string, number>;
|
|
2239
|
+
toolkit?: string | null;
|
|
2065
2240
|
};
|
|
2066
2241
|
export type SaveMcpServerResponse = {
|
|
2067
2242
|
name: string;
|
|
2068
2243
|
url: string;
|
|
2244
|
+
source: "composio" | "github" | "url";
|
|
2245
|
+
toolkit: string | null;
|
|
2069
2246
|
auth: {
|
|
2070
2247
|
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
2071
2248
|
headers?: Array<string>;
|
|
@@ -2089,7 +2266,11 @@ export type SaveMcpServerResponse = {
|
|
|
2089
2266
|
annotations?: Record<string, unknown>;
|
|
2090
2267
|
grantable?: false;
|
|
2091
2268
|
reason?: string;
|
|
2269
|
+
effect?: "read" | "write" | "destructive";
|
|
2270
|
+
grant_problems?: Record<string, string>;
|
|
2092
2271
|
permission?: "allow" | "ask" | "deny";
|
|
2272
|
+
allow_reads?: true;
|
|
2273
|
+
fallback_allow_reads?: true;
|
|
2093
2274
|
default_permission?: "allow" | "ask" | "deny";
|
|
2094
2275
|
permissions?: Array<"allow" | "ask" | "deny">;
|
|
2095
2276
|
}>;
|
|
@@ -2114,6 +2295,16 @@ export type ListRevisionsResponse = {
|
|
|
2114
2295
|
note: string | null;
|
|
2115
2296
|
created_at: Timestamp;
|
|
2116
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;
|
|
2117
2308
|
}>;
|
|
2118
2309
|
next_cursor: string | null;
|
|
2119
2310
|
};
|
|
@@ -2159,6 +2350,24 @@ export type CreateInlineRunResponse = Run;
|
|
|
2159
2350
|
export type ListRunFilesResponse = RunFileList;
|
|
2160
2351
|
/** One run (GET /runs/{run_id}). */
|
|
2161
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
|
+
};
|
|
2162
2371
|
/** A workflow run's graph, live (GET /runs/{run_id}/graph). */
|
|
2163
2372
|
export type GetRunGraphResponse = {
|
|
2164
2373
|
read_at: string;
|
|
@@ -2271,6 +2480,17 @@ export type GetRunLearningResponse = {
|
|
|
2271
2480
|
path?: string;
|
|
2272
2481
|
detail: string;
|
|
2273
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>;
|
|
2274
2494
|
cost_usd: {
|
|
2275
2495
|
grade: number | null;
|
|
2276
2496
|
};
|
|
@@ -2542,6 +2762,7 @@ export type GetStatsResponse = {
|
|
|
2542
2762
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
2543
2763
|
export type ApplyTemplateBody = {
|
|
2544
2764
|
parameters?: Record<string, unknown>;
|
|
2765
|
+
servers?: Record<string, string>;
|
|
2545
2766
|
grants?: Array<string>;
|
|
2546
2767
|
overrides?: {
|
|
2547
2768
|
model?: string;
|
|
@@ -2555,6 +2776,7 @@ export type ApplyTemplateResponse = {
|
|
|
2555
2776
|
template: string;
|
|
2556
2777
|
version: string;
|
|
2557
2778
|
agent_id: string;
|
|
2779
|
+
servers: Record<string, string | null>;
|
|
2558
2780
|
trigger_ids: Array<string>;
|
|
2559
2781
|
warnings: Array<InputIssue>;
|
|
2560
2782
|
webhook_secrets?: Array<{
|
|
@@ -2565,9 +2787,20 @@ export type ApplyTemplateResponse = {
|
|
|
2565
2787
|
note?: string;
|
|
2566
2788
|
}>;
|
|
2567
2789
|
};
|
|
2568
|
-
/**
|
|
2569
|
-
|
|
2570
|
-
|
|
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;
|
|
2571
2804
|
name: string;
|
|
2572
2805
|
display_name: string | null;
|
|
2573
2806
|
version: string;
|
|
@@ -2605,29 +2838,107 @@ export type ListTemplatesResponse = {
|
|
|
2605
2838
|
dropped: Array<string>;
|
|
2606
2839
|
note: string | null;
|
|
2607
2840
|
} | null;
|
|
2841
|
+
category: "engineering" | "security" | "sales" | "marketing" | "research" | "finance" | "operations" | "compliance" | "personal" | null;
|
|
2842
|
+
tags: Array<string>;
|
|
2608
2843
|
mcp: Array<{
|
|
2609
|
-
|
|
2844
|
+
source: "composio" | "github" | "url";
|
|
2845
|
+
toolkit: string;
|
|
2610
2846
|
required: boolean;
|
|
2847
|
+
reason: string | null;
|
|
2611
2848
|
tools: Array<{
|
|
2612
2849
|
name: string;
|
|
2613
2850
|
tool: string;
|
|
2614
2851
|
asks: "allow" | "ask";
|
|
2615
|
-
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
|
+
}>;
|
|
2616
2855
|
}>;
|
|
2617
2856
|
}>;
|
|
2618
|
-
parameters: Record<string,
|
|
2619
|
-
|
|
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;
|
|
2620
2926
|
required: boolean;
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
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
|
+
}>;
|
|
2626
2936
|
}>;
|
|
2937
|
+
parameters: Record<string, unknown>;
|
|
2938
|
+
input_schema: Record<string, unknown> | null;
|
|
2627
2939
|
secrets: Array<string>;
|
|
2628
2940
|
budget: {
|
|
2629
|
-
per_run_usd
|
|
2630
|
-
tool_calls?: number;
|
|
2941
|
+
per_run_usd: number;
|
|
2631
2942
|
} | null;
|
|
2632
2943
|
learning: boolean;
|
|
2633
2944
|
approvals_default: "ask" | "never";
|
|
@@ -3499,8 +3810,12 @@ export declare function resources(call: Call): {
|
|
|
3499
3810
|
get: (agentId: string, options?: RequestOptions) => Promise<Tagged<GetAgentResponse>>;
|
|
3500
3811
|
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
3501
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>;
|
|
3502
3815
|
/** List agents (GET /agents). */
|
|
3503
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>;
|
|
3504
3819
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
3505
3820
|
runs: (agentId: string, params?: ListRunsParams, options?: RequestOptions) => Promise<ListRunsResponse>;
|
|
3506
3821
|
/** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
|
|
@@ -3592,7 +3907,7 @@ export declare function resources(call: Call): {
|
|
|
3592
3907
|
};
|
|
3593
3908
|
mcpServers: {
|
|
3594
3909
|
/** Forget a saved MCP server and its credential (DELETE /settings/mcp-servers/{name}). */
|
|
3595
|
-
delete: (name: string, options?: RequestOptions) => Promise<
|
|
3910
|
+
delete: (name: string, options?: RequestOptions) => Promise<DeleteMcpServerResponse | undefined>;
|
|
3596
3911
|
/** One saved MCP server; never its credential (GET /settings/mcp-servers/{name}). */
|
|
3597
3912
|
get: (name: string, options?: RequestOptions) => Promise<GetMcpServerResponse>;
|
|
3598
3913
|
/** The remote MCP servers saved here, with their tools; never a credential (GET /settings/mcp-servers). */
|
|
@@ -3629,6 +3944,8 @@ export declare function resources(call: Call): {
|
|
|
3629
3944
|
files: (runId: string, options?: RequestOptions) => Promise<ListRunFilesResponse>;
|
|
3630
3945
|
/** One run (GET /runs/{run_id}). */
|
|
3631
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>;
|
|
3632
3949
|
/** A workflow run's graph, live (GET /runs/{run_id}/graph). */
|
|
3633
3950
|
graph: (runId: string, options?: RequestOptions) => Promise<GetRunGraphResponse>;
|
|
3634
3951
|
/** Hand the run's computer back to the agent, or answer its ask for the owner (POST /runs/{run_id}/computer/hand-back). */
|
|
@@ -3679,7 +3996,11 @@ export declare function resources(call: Call): {
|
|
|
3679
3996
|
template: {
|
|
3680
3997
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
3681
3998
|
apply: (template: string, body: ApplyTemplateBody, params?: ApplyTemplateParams, options?: RequestOptions) => Promise<ApplyTemplateResponse>;
|
|
3682
|
-
/**
|
|
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). */
|
|
3683
4004
|
list: (options?: RequestOptions) => Promise<ListTemplatesResponse>;
|
|
3684
4005
|
};
|
|
3685
4006
|
toolKeys: {
|
|
@@ -6,7 +6,9 @@ export const OPERATIONS = {
|
|
|
6
6
|
forgetSignIn: { "method": "DELETE", "path": "/agents/{agent_id}/sign-ins/{key}", "pathParams": ["agent_id", "key"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
7
7
|
getAgent: { "method": "GET", "path": "/agents/{agent_id}", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
|
|
8
8
|
getAgentArchil: { "method": "GET", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
9
|
+
getLearningLoop: { "method": "GET", "path": "/agents/{agent_id}/learning/loop", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
9
10
|
listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
11
|
+
listLearningPromotions: { "method": "GET", "path": "/agents/{agent_id}/learning/promotions", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
10
12
|
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 },
|
|
11
13
|
unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
12
14
|
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 },
|
|
@@ -51,7 +53,7 @@ export const OPERATIONS = {
|
|
|
51
53
|
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 },
|
|
52
54
|
testComputer: { "method": "POST", "path": "/computers/{provider}/test", "pathParams": ["provider"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
53
55
|
testWorkspaceArchil: { "method": "POST", "path": "/workspace/archil/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
54
|
-
deleteMcpServer: { "method": "DELETE", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "
|
|
56
|
+
deleteMcpServer: { "method": "DELETE", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
55
57
|
getMcpServer: { "method": "GET", "path": "/settings/mcp-servers/{name}", "pathParams": ["name"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
56
58
|
listMcpServers: { "method": "GET", "path": "/settings/mcp-servers", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
57
59
|
mcpOAuthClient: { "method": "GET", "path": "/settings/mcp-servers/oauth/client.json", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -68,6 +70,7 @@ export const OPERATIONS = {
|
|
|
68
70
|
createInlineRun: { "method": "POST", "path": "/runs", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
69
71
|
listRunFiles: { "method": "GET", "path": "/runs/{run_id}/files", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
70
72
|
getRun: { "method": "GET", "path": "/runs/{run_id}", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
73
|
+
gradeRun: { "method": "PUT", "path": "/runs/{run_id}/grade", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
71
74
|
getRunGraph: { "method": "GET", "path": "/runs/{run_id}/graph", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
72
75
|
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 },
|
|
73
76
|
getRunLearning: { "method": "GET", "path": "/runs/{run_id}/learning", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -90,6 +93,8 @@ export const OPERATIONS = {
|
|
|
90
93
|
getOpenapi: { "method": "GET", "path": "/openapi.json", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
91
94
|
getStats: { "method": "GET", "path": "/stats", "pathParams": [], "multiSegment": [], "query": ["from", "to", "agent"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
92
95
|
applyTemplate: { "method": "POST", "path": "/templates/{template}/apply", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
96
|
+
deleteTemplate: { "method": "DELETE", "path": "/templates/{template}", "pathParams": ["template"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
97
|
+
importTemplate: { "method": "POST", "path": "/templates/import", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
93
98
|
listTemplates: { "method": "GET", "path": "/templates", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
94
99
|
deleteToolKey: { "method": "DELETE", "path": "/settings/tool-keys/{key_id}", "pathParams": ["key_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "none", "secret": false, "publicFields": [], "tagged": false },
|
|
95
100
|
listToolKeys: { "method": "GET", "path": "/settings/tool-keys", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -129,8 +134,12 @@ export function resources(call) {
|
|
|
129
134
|
get: (agentId, options) => call("getAgent", [agentId], undefined, undefined, options),
|
|
130
135
|
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
131
136
|
getAgentArchil: (agentId, options) => call("getAgentArchil", [agentId], undefined, undefined, options),
|
|
137
|
+
/** The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows (GET /agents/{agent_id}/learning/loop). */
|
|
138
|
+
getLearningLoop: (agentId, options) => call("getLearningLoop", [agentId], undefined, undefined, options),
|
|
132
139
|
/** List agents (GET /agents). */
|
|
133
140
|
list: (params, options) => call("listAgents", [], undefined, params, options),
|
|
141
|
+
/** Each learned workflow revision's promotion: its replay's numbers and whether it serves (GET /agents/{agent_id}/learning/promotions). */
|
|
142
|
+
listLearningPromotions: (agentId, options) => call("listLearningPromotions", [agentId], undefined, undefined, options),
|
|
134
143
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
135
144
|
runs: (agentId, params, options) => call("listRuns", [agentId], undefined, params, options),
|
|
136
145
|
/** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
|
|
@@ -259,6 +268,8 @@ export function resources(call) {
|
|
|
259
268
|
files: (runId, options) => call("listRunFiles", [runId], undefined, undefined, options),
|
|
260
269
|
/** One run (GET /runs/{run_id}). */
|
|
261
270
|
get: (runId, options) => call("getRun", [runId], undefined, undefined, options),
|
|
271
|
+
/** Grade an ended run's answer: right or wrong, and the fields a right answer holds (PUT /runs/{run_id}/grade). */
|
|
272
|
+
gradeRun: (runId, body, options) => call("gradeRun", [runId], body, undefined, options),
|
|
262
273
|
/** A workflow run's graph, live (GET /runs/{run_id}/graph). */
|
|
263
274
|
graph: (runId, options) => call("getRunGraph", [runId], undefined, undefined, options),
|
|
264
275
|
/** Hand the run's computer back to the agent, or answer its ask for the owner (POST /runs/{run_id}/computer/hand-back). */
|
|
@@ -309,7 +320,11 @@ export function resources(call) {
|
|
|
309
320
|
template: {
|
|
310
321
|
/** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
|
|
311
322
|
apply: (template, body, params, options) => call("applyTemplate", [template], body, params, options),
|
|
312
|
-
/**
|
|
323
|
+
/** Remove an imported template package (DELETE /templates/{template}). */
|
|
324
|
+
delete: (template, options) => call("deleteTemplate", [template], undefined, undefined, options),
|
|
325
|
+
/** Import a template package from a public GitHub repository, or preview it (dry_run) (POST /templates/import). */
|
|
326
|
+
import: (body, options) => call("importTemplate", [], body, undefined, options),
|
|
327
|
+
/** The template packages this server ships, and those imported here: each makes an agent, its skills and its triggers (GET /templates). */
|
|
313
328
|
list: (options) => call("listTemplates", [], undefined, undefined, options),
|
|
314
329
|
},
|
|
315
330
|
toolKeys: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/agentrun-client",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.38",
|
|
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",
|