@parcha/agentrun-client 0.1.0-beta.35 → 0.1.0-beta.36
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 +157 -27
- package/dist/operations.generated.js +12 -3
- package/package.json +1 -1
|
@@ -17,6 +17,10 @@ export type DefinitionInput = {
|
|
|
17
17
|
workflow?: JsonObject;
|
|
18
18
|
max_cost_usd?: number;
|
|
19
19
|
model?: string;
|
|
20
|
+
model_tiers?: {
|
|
21
|
+
fast?: string;
|
|
22
|
+
strong?: string;
|
|
23
|
+
};
|
|
20
24
|
thinking?: "low" | "medium" | "high" | "xhigh" | "max";
|
|
21
25
|
harness?: "pi" | "claude-agent" | "codex" | "opencode";
|
|
22
26
|
place?: {
|
|
@@ -33,6 +37,7 @@ export type DefinitionInput = {
|
|
|
33
37
|
type: string;
|
|
34
38
|
count: number;
|
|
35
39
|
};
|
|
40
|
+
persistent?: boolean;
|
|
36
41
|
};
|
|
37
42
|
tool_settings?: {
|
|
38
43
|
read?: {
|
|
@@ -63,6 +68,9 @@ export type DefinitionInput = {
|
|
|
63
68
|
provider?: "auto" | "browserbase" | "kernel" | "chrome";
|
|
64
69
|
permission?: "allow" | "deny";
|
|
65
70
|
};
|
|
71
|
+
subagent?: {
|
|
72
|
+
permission?: "allow" | "deny";
|
|
73
|
+
};
|
|
66
74
|
pdf_pages?: {
|
|
67
75
|
permission?: "allow" | "deny";
|
|
68
76
|
};
|
|
@@ -78,7 +86,8 @@ export type DefinitionInput = {
|
|
|
78
86
|
[key: string]: unknown;
|
|
79
87
|
};
|
|
80
88
|
approvals?: "ask" | "never";
|
|
81
|
-
learning?:
|
|
89
|
+
learning?: true | false | "notes";
|
|
90
|
+
checkout?: "pull_request" | "none";
|
|
82
91
|
max_tool_calls?: number;
|
|
83
92
|
cap_mode?: "expected" | "strict";
|
|
84
93
|
};
|
|
@@ -125,6 +134,16 @@ export type Agent = {
|
|
|
125
134
|
learning?: {
|
|
126
135
|
pending: number;
|
|
127
136
|
};
|
|
137
|
+
own_computer?: {
|
|
138
|
+
provider: string;
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
state: "held" | "detached" | "deleting";
|
|
142
|
+
since: string;
|
|
143
|
+
image?: string;
|
|
144
|
+
run_id?: string;
|
|
145
|
+
why?: string;
|
|
146
|
+
} | null;
|
|
128
147
|
warnings?: Array<InputIssue>;
|
|
129
148
|
};
|
|
130
149
|
export type Definition = DefinitionInput;
|
|
@@ -348,7 +367,13 @@ export type RunCreateInline = {
|
|
|
348
367
|
effort?: Effort;
|
|
349
368
|
max_cost_usd?: number;
|
|
350
369
|
quote_id?: string;
|
|
370
|
+
mcp_auth?: Record<string, {
|
|
371
|
+
headers: Record<string, string>;
|
|
372
|
+
}>;
|
|
351
373
|
cap_mode?: "expected" | "strict";
|
|
374
|
+
archil_disk?: {
|
|
375
|
+
disk_id: string;
|
|
376
|
+
};
|
|
352
377
|
};
|
|
353
378
|
export type ExternalRef = {
|
|
354
379
|
source: string;
|
|
@@ -500,6 +525,9 @@ export type RunFile = {
|
|
|
500
525
|
};
|
|
501
526
|
export type MessageCreate = {
|
|
502
527
|
content: string;
|
|
528
|
+
mcp_auth?: Record<string, {
|
|
529
|
+
headers: Record<string, string>;
|
|
530
|
+
}>;
|
|
503
531
|
};
|
|
504
532
|
export type MessageResult = {
|
|
505
533
|
run_id: Id;
|
|
@@ -515,7 +543,13 @@ export type RunCreate = {
|
|
|
515
543
|
effort?: Effort;
|
|
516
544
|
max_cost_usd?: number;
|
|
517
545
|
quote_id?: string;
|
|
546
|
+
mcp_auth?: Record<string, {
|
|
547
|
+
headers: Record<string, string>;
|
|
548
|
+
}>;
|
|
518
549
|
cap_mode?: "expected" | "strict";
|
|
550
|
+
archil_disk?: {
|
|
551
|
+
disk_id: string;
|
|
552
|
+
};
|
|
519
553
|
};
|
|
520
554
|
export type StopResult = {
|
|
521
555
|
run_id: Id;
|
|
@@ -571,6 +605,8 @@ export type TimelineRow = {
|
|
|
571
605
|
kind: string;
|
|
572
606
|
status: string;
|
|
573
607
|
duration_ms: number;
|
|
608
|
+
model?: string;
|
|
609
|
+
tier?: string;
|
|
574
610
|
}>;
|
|
575
611
|
learning?: {
|
|
576
612
|
state: "seeded" | "reflecting" | "proposed" | "merged" | "dropped";
|
|
@@ -619,7 +655,7 @@ export type Capabilities = {
|
|
|
619
655
|
boxes: Array<{
|
|
620
656
|
id: "bwrap" | "docker" | "modal" | "daytona";
|
|
621
657
|
available: boolean;
|
|
622
|
-
state: "ready" | "
|
|
658
|
+
state: "ready" | "unavailable";
|
|
623
659
|
reason?: string;
|
|
624
660
|
network?: "allowlist" | "none";
|
|
625
661
|
network_reason?: string;
|
|
@@ -778,7 +814,7 @@ export type Features = {
|
|
|
778
814
|
};
|
|
779
815
|
mcp_client?: {
|
|
780
816
|
transports: Array<"streamable-http">;
|
|
781
|
-
auth: Array<"none" | "bearer" | "headers" | "oauth" | "github_app">;
|
|
817
|
+
auth: Array<"none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run">;
|
|
782
818
|
at_rest: "sealed";
|
|
783
819
|
harnesses: Array<string>;
|
|
784
820
|
};
|
|
@@ -862,6 +898,16 @@ export interface CreateAgentParams {
|
|
|
862
898
|
"Idempotency-Key"?: string;
|
|
863
899
|
}
|
|
864
900
|
export type CreateAgentResponse = Agent;
|
|
901
|
+
/** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
|
|
902
|
+
export type DeleteAgentArchilResponse = {
|
|
903
|
+
on: boolean;
|
|
904
|
+
archil_disk: {
|
|
905
|
+
disk_id: string;
|
|
906
|
+
} | null;
|
|
907
|
+
removed: {
|
|
908
|
+
disk_id: string;
|
|
909
|
+
} | null;
|
|
910
|
+
};
|
|
865
911
|
/** Forget one of the agent's saved sign-ins (DELETE /agents/{agent_id}/sign-ins/{key}). */
|
|
866
912
|
export type ForgetSignInResponse = {
|
|
867
913
|
key: string;
|
|
@@ -886,6 +932,13 @@ export type GetAgentResponse = Agent & ({
|
|
|
886
932
|
permissions: Array<"allow" | "ask" | "deny">;
|
|
887
933
|
}>;
|
|
888
934
|
});
|
|
935
|
+
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
936
|
+
export type GetAgentArchilResponse = {
|
|
937
|
+
on: boolean;
|
|
938
|
+
archil_disk: {
|
|
939
|
+
disk_id: string;
|
|
940
|
+
} | null;
|
|
941
|
+
};
|
|
889
942
|
/** List agents (GET /agents). */
|
|
890
943
|
export interface ListAgentsParams {
|
|
891
944
|
limit?: number;
|
|
@@ -960,6 +1013,42 @@ export type WriteHomeFileResponse = {
|
|
|
960
1013
|
content_type?: string | null;
|
|
961
1014
|
unreadable?: true;
|
|
962
1015
|
};
|
|
1016
|
+
/** 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
|
+
export interface GetLearningCostParams {
|
|
1018
|
+
limit?: number;
|
|
1019
|
+
format?: "json" | "csv";
|
|
1020
|
+
}
|
|
1021
|
+
export type GetLearningCostResponse = {
|
|
1022
|
+
agent: string;
|
|
1023
|
+
runs: Array<{
|
|
1024
|
+
n: number;
|
|
1025
|
+
run_id: string;
|
|
1026
|
+
started_at: string;
|
|
1027
|
+
path: "agent" | "handed_back" | "workflow";
|
|
1028
|
+
workflow: string | null;
|
|
1029
|
+
learned_revision: string | null;
|
|
1030
|
+
cost_usd: number | null;
|
|
1031
|
+
learning_usd: number | null;
|
|
1032
|
+
total_usd: number | null;
|
|
1033
|
+
}>;
|
|
1034
|
+
total_runs: number;
|
|
1035
|
+
unknown_cost_runs: number;
|
|
1036
|
+
summary: {
|
|
1037
|
+
takeover: {
|
|
1038
|
+
n: number;
|
|
1039
|
+
run_id: string;
|
|
1040
|
+
} | null;
|
|
1041
|
+
before: {
|
|
1042
|
+
runs: number;
|
|
1043
|
+
mean_usd: number;
|
|
1044
|
+
} | null;
|
|
1045
|
+
after: {
|
|
1046
|
+
runs: number;
|
|
1047
|
+
mean_usd: number;
|
|
1048
|
+
} | null;
|
|
1049
|
+
times_cheaper: number | null;
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
963
1052
|
/** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
|
|
964
1053
|
export type GetAgentLearningResponse = {
|
|
965
1054
|
agent: string;
|
|
@@ -982,8 +1071,9 @@ export type GetAgentLearningResponse = {
|
|
|
982
1071
|
};
|
|
983
1072
|
retired?: {
|
|
984
1073
|
at: string;
|
|
985
|
-
by: "person" | "run";
|
|
986
|
-
from
|
|
1074
|
+
by: "person" | "run" | "host";
|
|
1075
|
+
from?: "active" | "pending";
|
|
1076
|
+
why?: "unreadable";
|
|
987
1077
|
};
|
|
988
1078
|
last_change?: {
|
|
989
1079
|
kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
|
|
@@ -1004,8 +1094,9 @@ export type GetAgentLearningResponse = {
|
|
|
1004
1094
|
etag: string;
|
|
1005
1095
|
retired?: {
|
|
1006
1096
|
at: string;
|
|
1007
|
-
by: "person" | "run";
|
|
1008
|
-
from
|
|
1097
|
+
by: "person" | "run" | "host";
|
|
1098
|
+
from?: "active" | "pending";
|
|
1099
|
+
why?: "unreadable";
|
|
1009
1100
|
};
|
|
1010
1101
|
last_change?: {
|
|
1011
1102
|
kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
|
|
@@ -1024,8 +1115,9 @@ export type GetAgentLearningResponse = {
|
|
|
1024
1115
|
etag: string;
|
|
1025
1116
|
retired?: {
|
|
1026
1117
|
at: string;
|
|
1027
|
-
by: "person" | "run";
|
|
1028
|
-
from
|
|
1118
|
+
by: "person" | "run" | "host";
|
|
1119
|
+
from?: "active" | "pending";
|
|
1120
|
+
why?: "unreadable";
|
|
1029
1121
|
};
|
|
1030
1122
|
last_change?: {
|
|
1031
1123
|
kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
|
|
@@ -1115,8 +1207,9 @@ export type ListLearningNotesResponse = {
|
|
|
1115
1207
|
};
|
|
1116
1208
|
retired?: {
|
|
1117
1209
|
at: string;
|
|
1118
|
-
by: "person" | "run";
|
|
1119
|
-
from
|
|
1210
|
+
by: "person" | "run" | "host";
|
|
1211
|
+
from?: "active" | "pending";
|
|
1212
|
+
why?: "unreadable";
|
|
1120
1213
|
};
|
|
1121
1214
|
last_change?: {
|
|
1122
1215
|
kind: "approved" | "edited" | "created" | "retired" | "restored" | "learned" | "superseded";
|
|
@@ -1159,7 +1252,7 @@ export type DeleteWorkspaceArchilResponse = {
|
|
|
1159
1252
|
source: "env" | "console" | "sign-in" | null;
|
|
1160
1253
|
changed_at: string | null;
|
|
1161
1254
|
};
|
|
1162
|
-
|
|
1255
|
+
source?: "env" | "console";
|
|
1163
1256
|
region?: string;
|
|
1164
1257
|
s3Url?: string;
|
|
1165
1258
|
image?: string;
|
|
@@ -1182,7 +1275,7 @@ export type GetGitHubConnectionResponse = {
|
|
|
1182
1275
|
account: string;
|
|
1183
1276
|
}>;
|
|
1184
1277
|
};
|
|
1185
|
-
/** Whether run folders are on
|
|
1278
|
+
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
1186
1279
|
export type GetWorkspaceArchilResponse = {
|
|
1187
1280
|
on: boolean;
|
|
1188
1281
|
secret: {
|
|
@@ -1191,7 +1284,7 @@ export type GetWorkspaceArchilResponse = {
|
|
|
1191
1284
|
source: "env" | "console" | "sign-in" | null;
|
|
1192
1285
|
changed_at: string | null;
|
|
1193
1286
|
};
|
|
1194
|
-
|
|
1287
|
+
source?: "env" | "console";
|
|
1195
1288
|
region?: string;
|
|
1196
1289
|
s3Url?: string;
|
|
1197
1290
|
image?: string;
|
|
@@ -1226,7 +1319,10 @@ export type ListComputersResponse = {
|
|
|
1226
1319
|
}>;
|
|
1227
1320
|
required: Array<string>;
|
|
1228
1321
|
ready: boolean;
|
|
1322
|
+
shell: "computer" | "local" | "none";
|
|
1323
|
+
host_tools: Array<string>;
|
|
1229
1324
|
why?: string;
|
|
1325
|
+
shell_note?: string;
|
|
1230
1326
|
gpu?: {
|
|
1231
1327
|
types: Array<string>;
|
|
1232
1328
|
max: number;
|
|
@@ -1245,13 +1341,18 @@ export type ListComputersResponse = {
|
|
|
1245
1341
|
};
|
|
1246
1342
|
network?: string;
|
|
1247
1343
|
images?: Array<string>;
|
|
1344
|
+
persistent?: {
|
|
1345
|
+
images?: Array<string>;
|
|
1346
|
+
};
|
|
1248
1347
|
}>;
|
|
1249
1348
|
why?: string;
|
|
1349
|
+
shell?: "computer" | "local" | "none";
|
|
1350
|
+
host_tools?: Array<string>;
|
|
1351
|
+
shell_note?: string;
|
|
1250
1352
|
}>;
|
|
1251
1353
|
};
|
|
1252
|
-
/** Turn Mode 2 on: run folders on
|
|
1354
|
+
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
1253
1355
|
export type PutWorkspaceArchilBody = {
|
|
1254
|
-
diskId: string;
|
|
1255
1356
|
region: string;
|
|
1256
1357
|
s3Url: string;
|
|
1257
1358
|
image?: string;
|
|
@@ -1267,7 +1368,7 @@ export type PutWorkspaceArchilResponse = {
|
|
|
1267
1368
|
source: "env" | "console" | "sign-in" | null;
|
|
1268
1369
|
changed_at: string | null;
|
|
1269
1370
|
};
|
|
1270
|
-
|
|
1371
|
+
source?: "env" | "console";
|
|
1271
1372
|
region?: string;
|
|
1272
1373
|
s3Url?: string;
|
|
1273
1374
|
image?: string;
|
|
@@ -1286,7 +1387,10 @@ export type SaveComputerKeysResponse = {
|
|
|
1286
1387
|
}>;
|
|
1287
1388
|
required: Array<string>;
|
|
1288
1389
|
ready: boolean;
|
|
1390
|
+
shell: "computer" | "local" | "none";
|
|
1391
|
+
host_tools: Array<string>;
|
|
1289
1392
|
why?: string;
|
|
1393
|
+
shell_note?: string;
|
|
1290
1394
|
gpu?: {
|
|
1291
1395
|
types: Array<string>;
|
|
1292
1396
|
max: number;
|
|
@@ -1305,6 +1409,9 @@ export type SaveComputerKeysResponse = {
|
|
|
1305
1409
|
};
|
|
1306
1410
|
network?: string;
|
|
1307
1411
|
images?: Array<string>;
|
|
1412
|
+
persistent?: {
|
|
1413
|
+
images?: Array<string>;
|
|
1414
|
+
};
|
|
1308
1415
|
};
|
|
1309
1416
|
/** Start signing in to an MCP server with OAuth: the page the owner opens (POST /settings/mcp-servers/{name}/oauth/start). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
|
|
1310
1417
|
export type StartMcpOAuthBody = {
|
|
@@ -1324,7 +1431,7 @@ export type TestComputerResponse = {
|
|
|
1324
1431
|
ok: false;
|
|
1325
1432
|
why: string;
|
|
1326
1433
|
};
|
|
1327
|
-
/** Test the Archil
|
|
1434
|
+
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
1328
1435
|
export type TestWorkspaceArchilResponse = {
|
|
1329
1436
|
ok: true;
|
|
1330
1437
|
detail: string;
|
|
@@ -1338,7 +1445,7 @@ export type GetMcpServerResponse = {
|
|
|
1338
1445
|
name: string;
|
|
1339
1446
|
url: string;
|
|
1340
1447
|
auth: {
|
|
1341
|
-
type: "none" | "bearer" | "headers" | "oauth" | "github_app";
|
|
1448
|
+
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1342
1449
|
headers?: Array<string>;
|
|
1343
1450
|
};
|
|
1344
1451
|
credential: "sealed" | "unreadable" | "expired" | null;
|
|
@@ -1376,7 +1483,7 @@ export type ListMcpServersResponse = {
|
|
|
1376
1483
|
name: string;
|
|
1377
1484
|
url: string;
|
|
1378
1485
|
auth: {
|
|
1379
|
-
type: "none" | "bearer" | "headers" | "oauth" | "github_app";
|
|
1486
|
+
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1380
1487
|
headers?: Array<string>;
|
|
1381
1488
|
};
|
|
1382
1489
|
credential: "sealed" | "unreadable" | "expired" | null;
|
|
@@ -1415,7 +1522,7 @@ export type McpOAuthClientResponse = Record<string, unknown>;
|
|
|
1415
1522
|
export type PreviewMcpServerBody = {
|
|
1416
1523
|
url: string;
|
|
1417
1524
|
auth?: {
|
|
1418
|
-
type: "none" | "bearer" | "headers" | "oauth" | "github_app";
|
|
1525
|
+
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1419
1526
|
token?: string;
|
|
1420
1527
|
headers?: Record<string, string>;
|
|
1421
1528
|
};
|
|
@@ -1453,7 +1560,7 @@ export type RefreshMcpServerResponse = {
|
|
|
1453
1560
|
name: string;
|
|
1454
1561
|
url: string;
|
|
1455
1562
|
auth: {
|
|
1456
|
-
type: "none" | "bearer" | "headers" | "oauth" | "github_app";
|
|
1563
|
+
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1457
1564
|
headers?: Array<string>;
|
|
1458
1565
|
};
|
|
1459
1566
|
credential: "sealed" | "unreadable" | "expired" | null;
|
|
@@ -1490,7 +1597,7 @@ export type RefreshMcpServerResponse = {
|
|
|
1490
1597
|
export type SaveMcpServerBody = {
|
|
1491
1598
|
url: string;
|
|
1492
1599
|
auth?: {
|
|
1493
|
-
type: "none" | "bearer" | "headers" | "oauth" | "github_app";
|
|
1600
|
+
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1494
1601
|
token?: string;
|
|
1495
1602
|
headers?: Record<string, string>;
|
|
1496
1603
|
};
|
|
@@ -1500,7 +1607,7 @@ export type SaveMcpServerResponse = {
|
|
|
1500
1607
|
name: string;
|
|
1501
1608
|
url: string;
|
|
1502
1609
|
auth: {
|
|
1503
|
-
type: "none" | "bearer" | "headers" | "oauth" | "github_app";
|
|
1610
|
+
type: "none" | "bearer" | "headers" | "oauth" | "github_app" | "per_run";
|
|
1504
1611
|
headers?: Array<string>;
|
|
1505
1612
|
};
|
|
1506
1613
|
credential: "sealed" | "unreadable" | "expired" | null;
|
|
@@ -1588,6 +1695,8 @@ export type GetRunGraphResponse = {
|
|
|
1588
1695
|
startedAt?: string;
|
|
1589
1696
|
endedAt?: string;
|
|
1590
1697
|
branch?: string;
|
|
1698
|
+
model?: string;
|
|
1699
|
+
tier?: string;
|
|
1591
1700
|
items?: Array<{
|
|
1592
1701
|
index: number;
|
|
1593
1702
|
status: "pending" | "working" | "done" | "failed" | "stopped" | "escalated" | "not_run" | "needs_review";
|
|
@@ -1991,9 +2100,21 @@ export type ListTemplatesResponse = {
|
|
|
1991
2100
|
} | null;
|
|
1992
2101
|
effort: string | null;
|
|
1993
2102
|
tools: Array<string> | null;
|
|
2103
|
+
checkout: "pull_request" | null;
|
|
1994
2104
|
tool_policy: {
|
|
1995
2105
|
bash: "read-only";
|
|
1996
2106
|
} | null;
|
|
2107
|
+
computer: Array<"shell" | "none"> | null;
|
|
2108
|
+
computer_here: {
|
|
2109
|
+
entry: "shell" | "none" | null;
|
|
2110
|
+
computer: {
|
|
2111
|
+
kind: string;
|
|
2112
|
+
provider?: string;
|
|
2113
|
+
} | null;
|
|
2114
|
+
shell: string | null;
|
|
2115
|
+
dropped: Array<string>;
|
|
2116
|
+
note: string | null;
|
|
2117
|
+
} | null;
|
|
1997
2118
|
mcp: Array<{
|
|
1998
2119
|
server: string;
|
|
1999
2120
|
required: boolean;
|
|
@@ -2108,6 +2229,9 @@ export type PutToolSettingsBody = {
|
|
|
2108
2229
|
provider?: "auto" | "browserbase" | "kernel" | "chrome";
|
|
2109
2230
|
permission?: "allow" | "deny";
|
|
2110
2231
|
};
|
|
2232
|
+
subagent?: {
|
|
2233
|
+
permission?: "allow" | "deny";
|
|
2234
|
+
};
|
|
2111
2235
|
pdf_pages?: {
|
|
2112
2236
|
permission?: "allow" | "deny";
|
|
2113
2237
|
};
|
|
@@ -2863,10 +2987,14 @@ export declare function resources(call: Call): {
|
|
|
2863
2987
|
archive: (agentId: string, options?: RequestOptions) => Promise<ArchiveAgentResponse>;
|
|
2864
2988
|
/** Create an agent home (POST /agents). */
|
|
2865
2989
|
create: (body: CreateAgentBody, params?: CreateAgentParams, options?: RequestOptions) => Promise<CreateAgentResponse>;
|
|
2990
|
+
/** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
|
|
2991
|
+
deleteAgentArchil: (agentId: string, options?: RequestOptions) => Promise<DeleteAgentArchilResponse>;
|
|
2866
2992
|
/** Forget one of the agent's saved sign-ins (DELETE /agents/{agent_id}/sign-ins/{key}). */
|
|
2867
2993
|
forgetSignIn: (agentId: string, key: string, options?: RequestOptions) => Promise<ForgetSignInResponse>;
|
|
2868
2994
|
/** One agent (GET /agents/{agent_id}). */
|
|
2869
2995
|
get: (agentId: string, options?: RequestOptions) => Promise<Tagged<GetAgentResponse>>;
|
|
2996
|
+
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
2997
|
+
getAgentArchil: (agentId: string, options?: RequestOptions) => Promise<GetAgentArchilResponse>;
|
|
2870
2998
|
/** List agents (GET /agents). */
|
|
2871
2999
|
list: (params?: ListAgentsParams, options?: RequestOptions) => Promise<ListAgentsResponse>;
|
|
2872
3000
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
@@ -2899,6 +3027,8 @@ export declare function resources(call: Call): {
|
|
|
2899
3027
|
write: (agentId: string, path: string, body: RawBody, options?: BodyOptions) => Promise<WriteHomeFileResponse>;
|
|
2900
3028
|
};
|
|
2901
3029
|
learning: {
|
|
3030
|
+
/** 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
|
+
cost: (agentId: string, params?: GetLearningCostParams, options?: RequestOptions) => Promise<GetLearningCostResponse | string>;
|
|
2902
3032
|
/** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
|
|
2903
3033
|
get: (agentId: string, options?: RequestOptions) => Promise<GetAgentLearningResponse>;
|
|
2904
3034
|
/** A page of the changes on the agent's main, newest first (GET /agents/{agent_id}/learning/log). */
|
|
@@ -2919,17 +3049,17 @@ export declare function resources(call: Call): {
|
|
|
2919
3049
|
disconnectGitHub: (options?: RequestOptions) => Promise<DisconnectGitHubResponse>;
|
|
2920
3050
|
/** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
|
|
2921
3051
|
getGitHubConnection: (options?: RequestOptions) => Promise<GetGitHubConnectionResponse>;
|
|
2922
|
-
/** Whether run folders are on
|
|
3052
|
+
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
2923
3053
|
getWorkspaceArchil: (options?: RequestOptions) => Promise<GetWorkspaceArchilResponse>;
|
|
2924
3054
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
2925
3055
|
listComputers: (options?: RequestOptions) => Promise<ListComputersResponse>;
|
|
2926
|
-
/** Turn Mode 2 on: run folders on
|
|
3056
|
+
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
2927
3057
|
putWorkspaceArchil: (body: PutWorkspaceArchilBody, options?: RequestOptions) => Promise<PutWorkspaceArchilResponse>;
|
|
2928
3058
|
/** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
|
|
2929
3059
|
saveComputerKeys: (provider: string, body: SaveComputerKeysBody, options?: RequestOptions) => Promise<SaveComputerKeysResponse>;
|
|
2930
3060
|
/** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
|
|
2931
3061
|
testComputer: (provider: string, options?: RequestOptions) => Promise<TestComputerResponse>;
|
|
2932
|
-
/** Test the Archil
|
|
3062
|
+
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
2933
3063
|
testWorkspaceArchil: (options?: RequestOptions) => Promise<TestWorkspaceArchilResponse>;
|
|
2934
3064
|
};
|
|
2935
3065
|
mcpServers: {
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
export const OPERATIONS = {
|
|
3
3
|
archiveAgent: { "method": "POST", "path": "/agents/{agent_id}/archive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
4
4
|
createAgent: { "method": "POST", "path": "/agents", "pathParams": [], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
5
|
+
deleteAgentArchil: { "method": "DELETE", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
5
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 },
|
|
6
7
|
getAgent: { "method": "GET", "path": "/agents/{agent_id}", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
|
|
8
|
+
getAgentArchil: { "method": "GET", "path": "/agents/{agent_id}/archil", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
7
9
|
listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
8
10
|
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 },
|
|
9
11
|
unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -17,6 +19,7 @@ export const OPERATIONS = {
|
|
|
17
19
|
listHomeFiles: { "method": "GET", "path": "/agents/{agent_id}/home/files", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
18
20
|
readHomeFile: { "method": "GET", "path": "/agents/{agent_id}/home/files/{path}", "pathParams": ["agent_id", "path"], "multiSegment": ["path"], "query": ["download"], "headers": [], "body": null, "answer": "bytes", "secret": false, "publicFields": [], "tagged": false },
|
|
19
21
|
writeHomeFile: { "method": "PUT", "path": "/agents/{agent_id}/home/files/{path}", "pathParams": ["agent_id", "path"], "multiSegment": ["path"], "query": [], "headers": [], "body": { "required": true, "types": ["application/octet-stream", "*/*"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
22
|
+
getLearningCost: { "method": "GET", "path": "/agents/{agent_id}/learning/cost", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "format"], "headers": [], "body": null, "answer": "json+text", "secret": false, "publicFields": [], "tagged": false },
|
|
20
23
|
getAgentLearning: { "method": "GET", "path": "/agents/{agent_id}/learning", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
21
24
|
listLearningLog: { "method": "GET", "path": "/agents/{agent_id}/learning/log", "pathParams": ["agent_id"], "multiSegment": [], "query": ["cursor", "limit"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
22
25
|
listLearningNotes: { "method": "GET", "path": "/agents/{agent_id}/learning/notes", "pathParams": ["agent_id"], "multiSegment": [], "query": ["cursor", "limit", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
|
|
@@ -103,10 +106,14 @@ export function resources(call) {
|
|
|
103
106
|
archive: (agentId, options) => call("archiveAgent", [agentId], undefined, undefined, options),
|
|
104
107
|
/** Create an agent home (POST /agents). */
|
|
105
108
|
create: (body, params, options) => call("createAgent", [], body, params, options),
|
|
109
|
+
/** Remove an agent's own Archil disk, and everything on it (DELETE /agents/{agent_id}/archil). */
|
|
110
|
+
deleteAgentArchil: (agentId, options) => call("deleteAgentArchil", [agentId], undefined, undefined, options),
|
|
106
111
|
/** Forget one of the agent's saved sign-ins (DELETE /agents/{agent_id}/sign-ins/{key}). */
|
|
107
112
|
forgetSignIn: (agentId, key, options) => call("forgetSignIn", [agentId, key], undefined, undefined, options),
|
|
108
113
|
/** One agent (GET /agents/{agent_id}). */
|
|
109
114
|
get: (agentId, options) => call("getAgent", [agentId], undefined, undefined, options),
|
|
115
|
+
/** The agent's own Archil disk, once its first run made it (GET /agents/{agent_id}/archil). */
|
|
116
|
+
getAgentArchil: (agentId, options) => call("getAgentArchil", [agentId], undefined, undefined, options),
|
|
110
117
|
/** List agents (GET /agents). */
|
|
111
118
|
list: (params, options) => call("listAgents", [], undefined, params, options),
|
|
112
119
|
/** The agent's runs index (GET /agents/{agent_id}/runs). */
|
|
@@ -139,6 +146,8 @@ export function resources(call) {
|
|
|
139
146
|
write: (agentId, path, body, options) => call("writeHomeFile", [agentId, path], body, undefined, options),
|
|
140
147
|
},
|
|
141
148
|
learning: {
|
|
149
|
+
/** 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). */
|
|
150
|
+
cost: (agentId, params, options) => call("getLearningCost", [agentId], undefined, params, options),
|
|
142
151
|
/** What the agent has learned: its index, notes, log of changes and counts (GET /agents/{agent_id}/learning). */
|
|
143
152
|
get: (agentId, options) => call("getAgentLearning", [agentId], undefined, undefined, options),
|
|
144
153
|
/** A page of the changes on the agent's main, newest first (GET /agents/{agent_id}/learning/log). */
|
|
@@ -159,17 +168,17 @@ export function resources(call) {
|
|
|
159
168
|
disconnectGitHub: (options) => call("disconnectGitHub", [], undefined, undefined, options),
|
|
160
169
|
/** Whether a GitHub App is connected, and if so its id, slug and installations, never a secret (GET /integrations/github). */
|
|
161
170
|
getGitHubConnection: (options) => call("getGitHubConnection", [], undefined, undefined, options),
|
|
162
|
-
/** Whether run folders are on
|
|
171
|
+
/** Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved (GET /workspace/archil). */
|
|
163
172
|
getWorkspaceArchil: (options) => call("getWorkspaceArchil", [], undefined, undefined, options),
|
|
164
173
|
/** Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved (GET /computers). */
|
|
165
174
|
listComputers: (options) => call("listComputers", [], undefined, undefined, options),
|
|
166
|
-
/** Turn Mode 2 on: run folders on
|
|
175
|
+
/** Turn Mode 2 on: run folders on Archil disks, one per agent (PUT /workspace/archil). */
|
|
167
176
|
putWorkspaceArchil: (body, options) => call("putWorkspaceArchil", [], body, undefined, options),
|
|
168
177
|
/** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
|
|
169
178
|
saveComputerKeys: (provider, body, options) => call("saveComputerKeys", [provider], body, undefined, options),
|
|
170
179
|
/** Test a computer provider's account with its saved keys (POST /computers/{provider}/test). */
|
|
171
180
|
testComputer: (provider, options) => call("testComputer", [provider], undefined, undefined, options),
|
|
172
|
-
/** Test the Archil
|
|
181
|
+
/** Test the Archil account key at its region's control plane (POST /workspace/archil/test). */
|
|
173
182
|
testWorkspaceArchil: (options) => call("testWorkspaceArchil", [], undefined, undefined, options),
|
|
174
183
|
},
|
|
175
184
|
mcpServers: {
|
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.36",
|
|
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",
|