@parcha/agentrun 0.3.6 → 0.4.1

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.
@@ -1,5 +1,5 @@
1
1
  // Generated by scripts/generate-clients.mjs from the server's OpenAPI document. Do not edit: run node scripts/generate-clients.mjs.
2
- // SHA-256 of what the table is made of (operationsOf in scripts/generate-clients.mjs): c7162205f4e9389086e88e92f87a13a98cd0f3221d0c7e884bbb85db129c020a
2
+ // SHA-256 of what the table is made of (operationsOf in scripts/generate-clients.mjs): e6a39ba1ef14ca4138503e3dd9e66e9bebd6d9beb91fad5fbfec0a38296841d8
3
3
  export const COMMANDS = [
4
4
  {
5
5
  "command": [
@@ -56,6 +56,17 @@ export const COMMANDS = [
56
56
  "application/json"
57
57
  ],
58
58
  "secretBody": false,
59
+ "example": {
60
+ "definition": {
61
+ "id": "due-diligence",
62
+ "name": "Due diligence",
63
+ "instructions": "Research the company you are given on the web and write a short brief: what it does, who runs it, red flags, and the sources you read.",
64
+ "tools": [
65
+ "web_search",
66
+ "web_fetch"
67
+ ]
68
+ }
69
+ },
59
70
  "raw": false,
60
71
  "summary": "Create an agent home"
61
72
  },
@@ -126,6 +137,12 @@ export const COMMANDS = [
126
137
  "type": "string",
127
138
  "required": false,
128
139
  "description": "`next_cursor` from the previous page."
140
+ },
141
+ {
142
+ "name": "archived",
143
+ "type": "boolean",
144
+ "required": false,
145
+ "description": "true lists only archived agents; false, the default, the others."
129
146
  }
130
147
  ],
131
148
  "headers": [],
@@ -709,6 +726,271 @@ export const COMMANDS = [
709
726
  "raw": true,
710
727
  "summary": "Edit a note (If-Match) or create one (If-None-Match: *)"
711
728
  },
729
+ {
730
+ "command": [
731
+ "local",
732
+ "connect-git-hub"
733
+ ],
734
+ "operationId": "connectGitHub",
735
+ "method": "POST",
736
+ "path": "/integrations/github/connect",
737
+ "pathParams": [],
738
+ "multiSegment": [],
739
+ "query": [],
740
+ "headers": [],
741
+ "bodyFlags": [
742
+ {
743
+ "name": "org",
744
+ "type": "string",
745
+ "required": false,
746
+ "description": "The GitHub organization to make the App under; absent, the signed-in GitHub user."
747
+ }
748
+ ],
749
+ "hasBody": true,
750
+ "bodyRequired": false,
751
+ "bodyTypes": [
752
+ "application/json"
753
+ ],
754
+ "secretBody": false,
755
+ "raw": false,
756
+ "summary": "Start Connect GitHub: the app-manifest form the console posts to GitHub"
757
+ },
758
+ {
759
+ "command": [
760
+ "local",
761
+ "delete-workspace-archil"
762
+ ],
763
+ "operationId": "deleteWorkspaceArchil",
764
+ "method": "DELETE",
765
+ "path": "/workspace/archil",
766
+ "pathParams": [],
767
+ "multiSegment": [],
768
+ "query": [],
769
+ "headers": [],
770
+ "bodyFlags": [],
771
+ "hasBody": false,
772
+ "bodyRequired": false,
773
+ "bodyTypes": [],
774
+ "secretBody": false,
775
+ "raw": false,
776
+ "summary": "Turn Mode 2 off: run folders on this server's own disk"
777
+ },
778
+ {
779
+ "command": [
780
+ "local",
781
+ "disconnect-git-hub"
782
+ ],
783
+ "operationId": "disconnectGitHub",
784
+ "method": "DELETE",
785
+ "path": "/integrations/github",
786
+ "pathParams": [],
787
+ "multiSegment": [],
788
+ "query": [],
789
+ "headers": [],
790
+ "bodyFlags": [],
791
+ "hasBody": false,
792
+ "bodyRequired": false,
793
+ "bodyTypes": [],
794
+ "secretBody": false,
795
+ "raw": false,
796
+ "summary": "Disconnect GitHub: the App's credentials gone from this server, and every github trigger off"
797
+ },
798
+ {
799
+ "command": [
800
+ "local",
801
+ "get-git-hub-connection"
802
+ ],
803
+ "operationId": "getGitHubConnection",
804
+ "method": "GET",
805
+ "path": "/integrations/github",
806
+ "pathParams": [],
807
+ "multiSegment": [],
808
+ "query": [],
809
+ "headers": [],
810
+ "bodyFlags": [],
811
+ "hasBody": false,
812
+ "bodyRequired": false,
813
+ "bodyTypes": [],
814
+ "secretBody": false,
815
+ "raw": false,
816
+ "summary": "Whether a GitHub App is connected, and if so its id, slug and installations, never a secret"
817
+ },
818
+ {
819
+ "command": [
820
+ "local",
821
+ "get-workspace-archil"
822
+ ],
823
+ "operationId": "getWorkspaceArchil",
824
+ "method": "GET",
825
+ "path": "/workspace/archil",
826
+ "pathParams": [],
827
+ "multiSegment": [],
828
+ "query": [],
829
+ "headers": [],
830
+ "bodyFlags": [],
831
+ "hasBody": false,
832
+ "bodyRequired": false,
833
+ "bodyTypes": [],
834
+ "secretBody": false,
835
+ "raw": false,
836
+ "summary": "Whether run folders are on an Archil disk (Mode 2), its settings, and whether its keys are saved"
837
+ },
838
+ {
839
+ "command": [
840
+ "local",
841
+ "git-hub-callback"
842
+ ],
843
+ "operationId": "gitHubCallback",
844
+ "method": "GET",
845
+ "path": "/integrations/github/callback",
846
+ "pathParams": [],
847
+ "multiSegment": [],
848
+ "query": [
849
+ {
850
+ "name": "code",
851
+ "type": "string",
852
+ "required": false,
853
+ "description": ""
854
+ },
855
+ {
856
+ "name": "state",
857
+ "type": "string",
858
+ "required": false,
859
+ "description": ""
860
+ }
861
+ ],
862
+ "headers": [],
863
+ "bodyFlags": [],
864
+ "hasBody": false,
865
+ "bodyRequired": false,
866
+ "bodyTypes": [],
867
+ "secretBody": false,
868
+ "raw": false,
869
+ "summary": "Where GitHub sends the owner's browser back with the new App's code"
870
+ },
871
+ {
872
+ "command": [
873
+ "local",
874
+ "git-hub-installed"
875
+ ],
876
+ "operationId": "gitHubInstalled",
877
+ "method": "GET",
878
+ "path": "/integrations/github/installed",
879
+ "pathParams": [],
880
+ "multiSegment": [],
881
+ "query": [
882
+ {
883
+ "name": "installation_id",
884
+ "type": "string",
885
+ "required": false,
886
+ "description": ""
887
+ },
888
+ {
889
+ "name": "setup_action",
890
+ "type": "string",
891
+ "required": false,
892
+ "description": ""
893
+ },
894
+ {
895
+ "name": "state",
896
+ "type": "string",
897
+ "required": false,
898
+ "description": ""
899
+ }
900
+ ],
901
+ "headers": [],
902
+ "bodyFlags": [],
903
+ "hasBody": false,
904
+ "bodyRequired": false,
905
+ "bodyTypes": [],
906
+ "secretBody": false,
907
+ "raw": false,
908
+ "summary": "Where GitHub sends the browser once the App is installed"
909
+ },
910
+ {
911
+ "command": [
912
+ "local",
913
+ "list-computers"
914
+ ],
915
+ "operationId": "listComputers",
916
+ "method": "GET",
917
+ "path": "/computers",
918
+ "pathParams": [],
919
+ "multiSegment": [],
920
+ "query": [],
921
+ "headers": [],
922
+ "bodyFlags": [],
923
+ "hasBody": false,
924
+ "bodyRequired": false,
925
+ "bodyTypes": [],
926
+ "secretBody": false,
927
+ "raw": false,
928
+ "summary": "Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved"
929
+ },
930
+ {
931
+ "command": [
932
+ "local",
933
+ "receive-hook-github"
934
+ ],
935
+ "operationId": "receiveHook_github",
936
+ "method": "POST",
937
+ "path": "/hooks/github",
938
+ "pathParams": [],
939
+ "multiSegment": [],
940
+ "query": [],
941
+ "headers": [],
942
+ "bodyFlags": [],
943
+ "hasBody": true,
944
+ "bodyRequired": true,
945
+ "bodyTypes": [
946
+ "*/*"
947
+ ],
948
+ "secretBody": false,
949
+ "raw": false,
950
+ "summary": "Fire a GitHub trigger: a request it checks, no token"
951
+ },
952
+ {
953
+ "command": [
954
+ "local",
955
+ "test-computer"
956
+ ],
957
+ "operationId": "testComputer",
958
+ "method": "POST",
959
+ "path": "/computers/{provider}/test",
960
+ "pathParams": [
961
+ "provider"
962
+ ],
963
+ "multiSegment": [],
964
+ "query": [],
965
+ "headers": [],
966
+ "bodyFlags": [],
967
+ "hasBody": false,
968
+ "bodyRequired": false,
969
+ "bodyTypes": [],
970
+ "secretBody": false,
971
+ "raw": false,
972
+ "summary": "Test a computer provider's account with its saved keys"
973
+ },
974
+ {
975
+ "command": [
976
+ "local",
977
+ "test-workspace-archil"
978
+ ],
979
+ "operationId": "testWorkspaceArchil",
980
+ "method": "POST",
981
+ "path": "/workspace/archil/test",
982
+ "pathParams": [],
983
+ "multiSegment": [],
984
+ "query": [],
985
+ "headers": [],
986
+ "bodyFlags": [],
987
+ "hasBody": false,
988
+ "bodyRequired": false,
989
+ "bodyTypes": [],
990
+ "secretBody": false,
991
+ "raw": false,
992
+ "summary": "Test the Archil disk with its saved account key"
993
+ },
712
994
  {
713
995
  "command": [
714
996
  "mcp-servers",
@@ -776,36 +1058,32 @@ export const COMMANDS = [
776
1058
  {
777
1059
  "command": [
778
1060
  "mcp-servers",
779
- "preview"
1061
+ "oauth-client"
780
1062
  ],
781
- "operationId": "previewMcpServer",
782
- "method": "POST",
783
- "path": "/settings/mcp-servers/preview",
1063
+ "operationId": "mcpOAuthClient",
1064
+ "method": "GET",
1065
+ "path": "/settings/mcp-servers/oauth/client.json",
784
1066
  "pathParams": [],
785
1067
  "multiSegment": [],
786
1068
  "query": [],
787
1069
  "headers": [],
788
1070
  "bodyFlags": [],
789
- "hasBody": true,
790
- "bodyRequired": true,
791
- "bodyTypes": [
792
- "application/json"
793
- ],
794
- "secretBody": true,
1071
+ "hasBody": false,
1072
+ "bodyRequired": false,
1073
+ "bodyTypes": [],
1074
+ "secretBody": false,
795
1075
  "raw": false,
796
- "summary": "Connect to a remote MCP server and list its tools, storing nothing"
1076
+ "summary": "This server's OAuth client metadata document"
797
1077
  },
798
1078
  {
799
1079
  "command": [
800
1080
  "mcp-servers",
801
- "refresh"
802
- ],
803
- "operationId": "refreshMcpServer",
804
- "method": "POST",
805
- "path": "/settings/mcp-servers/{name}/refresh",
806
- "pathParams": [
807
- "name"
1081
+ "private-hosts"
808
1082
  ],
1083
+ "operationId": "getMcpPrivateHosts",
1084
+ "method": "GET",
1085
+ "path": "/settings/mcp-servers/oauth/private-hosts",
1086
+ "pathParams": [],
809
1087
  "multiSegment": [],
810
1088
  "query": [],
811
1089
  "headers": [],
@@ -815,16 +1093,16 @@ export const COMMANDS = [
815
1093
  "bodyTypes": [],
816
1094
  "secretBody": false,
817
1095
  "raw": false,
818
- "summary": "List a saved MCP server's tools again, keep them, and say what changed"
1096
+ "summary": "The private-network hosts an MCP server's authorization server may be on"
819
1097
  },
820
1098
  {
821
1099
  "command": [
822
1100
  "mcp-servers",
823
- "save"
1101
+ "refresh"
824
1102
  ],
825
- "operationId": "saveMcpServer",
826
- "method": "PUT",
827
- "path": "/settings/mcp-servers/{name}",
1103
+ "operationId": "refreshMcpServer",
1104
+ "method": "POST",
1105
+ "path": "/settings/mcp-servers/{name}/refresh",
828
1106
  "pathParams": [
829
1107
  "name"
830
1108
  ],
@@ -832,14 +1110,12 @@ export const COMMANDS = [
832
1110
  "query": [],
833
1111
  "headers": [],
834
1112
  "bodyFlags": [],
835
- "hasBody": true,
836
- "bodyRequired": true,
837
- "bodyTypes": [
838
- "application/json"
839
- ],
840
- "secretBody": true,
1113
+ "hasBody": false,
1114
+ "bodyRequired": false,
1115
+ "bodyTypes": [],
1116
+ "secretBody": false,
841
1117
  "raw": false,
842
- "summary": "Preview a remote MCP server, then save it with the tools listed and its credential sealed"
1118
+ "summary": "List a saved MCP server's tools again, keep them, and say what changed"
843
1119
  },
844
1120
  {
845
1121
  "command": [
@@ -951,6 +1227,95 @@ export const COMMANDS = [
951
1227
  "raw": false,
952
1228
  "summary": "End the run"
953
1229
  },
1230
+ {
1231
+ "command": [
1232
+ "runs",
1233
+ "create-inline-run"
1234
+ ],
1235
+ "operationId": "createInlineRun",
1236
+ "method": "POST",
1237
+ "path": "/runs",
1238
+ "pathParams": [],
1239
+ "multiSegment": [],
1240
+ "query": [],
1241
+ "headers": [
1242
+ {
1243
+ "name": "Idempotency-Key",
1244
+ "type": "string",
1245
+ "required": false,
1246
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
1247
+ }
1248
+ ],
1249
+ "bodyFlags": [
1250
+ {
1251
+ "name": "note",
1252
+ "type": "string",
1253
+ "required": false,
1254
+ "description": "What the version changes, kept with its revision by the version's first run (GET /agents/{agent_id}/revisions); not part of its definition."
1255
+ },
1256
+ {
1257
+ "name": "effort",
1258
+ "type": "string",
1259
+ "enum": [
1260
+ "low",
1261
+ "medium",
1262
+ "high"
1263
+ ],
1264
+ "required": false,
1265
+ "description": "How hard a run works. It sets the model's thinking level, and adds a short note on how to work right after the agent's instructions, on every harness: low answers directly, medium plans briefly and checks once, high plans each part, fills the gaps and reviews. A run started with none thinks at its agent revision's own thinking level, else the host's default, and gets no note."
1266
+ },
1267
+ {
1268
+ "name": "max_cost_usd",
1269
+ "type": "number",
1270
+ "required": false,
1271
+ "description": "This run's cap, for every turn of it. Default the definition's `max_cost_usd`, else the effort default."
1272
+ },
1273
+ {
1274
+ "name": "quote_id",
1275
+ "type": "string",
1276
+ "required": false,
1277
+ "description": "Run at a quote's terms. A different `effort` or `max_cost_usd` than the quote's is `409 quote_invalid`."
1278
+ },
1279
+ {
1280
+ "name": "cap_mode",
1281
+ "type": "string",
1282
+ "enum": [
1283
+ "expected",
1284
+ "strict"
1285
+ ],
1286
+ "required": false,
1287
+ "description": "How the run's cap (`max_cost_usd`) prices each model request's input. `expected` (the default): the input the previous request of its conversation reported read from or written to the cache, at the cache-read price, when that request ended less than 4 minutes before; the rest of its input (the previous request's input after the cache, and what the conversation grew by since, a token a byte) at the input price, the cache write's when dearer. With no such request, all of it at that price. Output is limited to what the cap leaves, so output never passes it; a cache miss can, by at most the request's bound (its input uncached less its input expected), served as the run's `cost.overshoot_bound_usd` while it is in flight; its real cost is booked, and the timeline says so. `strict`: every input token at the input or cache-write price, the worst case: no request passes the cap, and a run pauses sooner. Only with a cap. Absent: the agent's (its definition's `cap_mode`), else expected. 422 not_allowed for a run with no cap."
1288
+ }
1289
+ ],
1290
+ "hasBody": true,
1291
+ "bodyRequired": true,
1292
+ "bodyTypes": [
1293
+ "application/json"
1294
+ ],
1295
+ "secretBody": false,
1296
+ "example": {
1297
+ "external": {
1298
+ "source": "grep",
1299
+ "kind": "expert",
1300
+ "id": "due-diligence",
1301
+ "version": 3
1302
+ },
1303
+ "definition": {
1304
+ "name": "Due diligence",
1305
+ "instructions": "Research the company you are given on the web and write a short brief: what it does, who runs it, red flags, and the sources you read.",
1306
+ "tools": [
1307
+ "web_search",
1308
+ "web_fetch"
1309
+ ]
1310
+ },
1311
+ "input": {
1312
+ "content": "Research https://stripe.com and write the brief."
1313
+ },
1314
+ "max_cost_usd": 1
1315
+ },
1316
+ "raw": false,
1317
+ "summary": "Start a run of an agent another system owns, given inline"
1318
+ },
954
1319
  {
955
1320
  "command": [
956
1321
  "runs",
@@ -1017,6 +1382,41 @@ export const COMMANDS = [
1017
1382
  "raw": false,
1018
1383
  "summary": "A workflow run's graph, live"
1019
1384
  },
1385
+ {
1386
+ "command": [
1387
+ "runs",
1388
+ "hand-back-run-computer"
1389
+ ],
1390
+ "operationId": "handBackRunComputer",
1391
+ "method": "POST",
1392
+ "path": "/runs/{run_id}/computer/hand-back",
1393
+ "pathParams": [
1394
+ "run_id"
1395
+ ],
1396
+ "multiSegment": [],
1397
+ "query": [],
1398
+ "headers": [],
1399
+ "bodyFlags": [
1400
+ {
1401
+ "name": "outcome",
1402
+ "type": "string",
1403
+ "enum": [
1404
+ "done",
1405
+ "cancelled"
1406
+ ],
1407
+ "required": false,
1408
+ "description": "The answer to the agent's ask: `done` when the person did what it asked, `cancelled` when they will not. Absent: done."
1409
+ }
1410
+ ],
1411
+ "hasBody": true,
1412
+ "bodyRequired": false,
1413
+ "bodyTypes": [
1414
+ "application/json"
1415
+ ],
1416
+ "secretBody": false,
1417
+ "raw": false,
1418
+ "summary": "Hand the run's computer back to the agent, or answer its ask for the owner"
1419
+ },
1020
1420
  {
1021
1421
  "command": [
1022
1422
  "runs",
@@ -1323,6 +1723,16 @@ export const COMMANDS = [
1323
1723
  "type": "string",
1324
1724
  "required": false,
1325
1725
  "description": "Run at a quote's terms. A different `effort` or `max_cost_usd` than the quote's is `409 quote_invalid`."
1726
+ },
1727
+ {
1728
+ "name": "cap_mode",
1729
+ "type": "string",
1730
+ "enum": [
1731
+ "expected",
1732
+ "strict"
1733
+ ],
1734
+ "required": false,
1735
+ "description": "How the run's cap (`max_cost_usd`) prices each model request's input. `expected` (the default): the input the previous request of its conversation reported read from or written to the cache, at the cache-read price, when that request ended less than 4 minutes before; the rest of its input (the previous request's input after the cache, and what the conversation grew by since, a token a byte) at the input price, the cache write's when dearer. With no such request, all of it at that price. Output is limited to what the cap leaves, so output never passes it; a cache miss can, by at most the request's bound (its input uncached less its input expected), served as the run's `cost.overshoot_bound_usd` while it is in flight; its real cost is booked, and the timeline says so. `strict`: every input token at the input or cache-write price, the worst case: no request passes the cap, and a run pauses sooner. Only with a cap. Absent: the agent's (its definition's `cap_mode`), else expected. 422 not_allowed for a run with no cap."
1326
1736
  }
1327
1737
  ],
1328
1738
  "hasBody": true,
@@ -1331,6 +1741,12 @@ export const COMMANDS = [
1331
1741
  "application/json"
1332
1742
  ],
1333
1743
  "secretBody": false,
1744
+ "example": {
1745
+ "input": {
1746
+ "content": "Research https://stripe.com and write the brief."
1747
+ },
1748
+ "max_cost_usd": 1
1749
+ },
1334
1750
  "raw": false,
1335
1751
  "summary": "Start a run"
1336
1752
  },
@@ -1356,6 +1772,30 @@ export const COMMANDS = [
1356
1772
  "raw": false,
1357
1773
  "summary": "End the current turn"
1358
1774
  },
1775
+ {
1776
+ "command": [
1777
+ "runs",
1778
+ "take-over-run-computer"
1779
+ ],
1780
+ "operationId": "takeOverRunComputer",
1781
+ "method": "POST",
1782
+ "path": "/runs/{run_id}/computer/take-over",
1783
+ "pathParams": [
1784
+ "run_id"
1785
+ ],
1786
+ "multiSegment": [],
1787
+ "query": [],
1788
+ "headers": [],
1789
+ "bodyFlags": [],
1790
+ "hasBody": true,
1791
+ "bodyRequired": false,
1792
+ "bodyTypes": [
1793
+ "application/json"
1794
+ ],
1795
+ "secretBody": false,
1796
+ "raw": false,
1797
+ "summary": "Take over the run's desktop or phone"
1798
+ },
1359
1799
  {
1360
1800
  "command": [
1361
1801
  "runs",
@@ -1486,6 +1926,10 @@ export const COMMANDS = [
1486
1926
  "description": ""
1487
1927
  }
1488
1928
  ],
1929
+ "bodyFill": {
1930
+ "jsonrpc": "2.0",
1931
+ "id": 1
1932
+ },
1489
1933
  "hasBody": true,
1490
1934
  "bodyRequired": true,
1491
1935
  "bodyTypes": [
@@ -1555,34 +1999,43 @@ export const COMMANDS = [
1555
1999
  },
1556
2000
  {
1557
2001
  "command": [
1558
- "tool-keys",
1559
- "delete"
2002
+ "template",
2003
+ "apply"
1560
2004
  ],
1561
- "operationId": "deleteToolKey",
1562
- "method": "DELETE",
1563
- "path": "/settings/tool-keys/{key_id}",
2005
+ "operationId": "applyTemplate",
2006
+ "method": "POST",
2007
+ "path": "/templates/{template}/apply",
1564
2008
  "pathParams": [
1565
- "key_id"
2009
+ "template"
1566
2010
  ],
1567
2011
  "multiSegment": [],
1568
2012
  "query": [],
1569
- "headers": [],
2013
+ "headers": [
2014
+ {
2015
+ "name": "Idempotency-Key",
2016
+ "type": "string",
2017
+ "required": false,
2018
+ "description": "Makes a create safe to retry. The same key and body within `limits.idempotency_ttl_s` replays the first"
2019
+ }
2020
+ ],
1570
2021
  "bodyFlags": [],
1571
- "hasBody": false,
1572
- "bodyRequired": false,
1573
- "bodyTypes": [],
2022
+ "hasBody": true,
2023
+ "bodyRequired": true,
2024
+ "bodyTypes": [
2025
+ "application/json"
2026
+ ],
1574
2027
  "secretBody": false,
1575
2028
  "raw": false,
1576
- "summary": "Forget a tool key's stored fields"
2029
+ "summary": "Apply a template package: make its agent, with its skills, then its triggers"
1577
2030
  },
1578
2031
  {
1579
2032
  "command": [
1580
- "tool-keys",
2033
+ "template",
1581
2034
  "list"
1582
2035
  ],
1583
- "operationId": "listToolKeys",
2036
+ "operationId": "listTemplates",
1584
2037
  "method": "GET",
1585
- "path": "/settings/tool-keys",
2038
+ "path": "/templates",
1586
2039
  "pathParams": [],
1587
2040
  "multiSegment": [],
1588
2041
  "query": [],
@@ -1593,31 +2046,27 @@ export const COMMANDS = [
1593
2046
  "bodyTypes": [],
1594
2047
  "secretBody": false,
1595
2048
  "raw": false,
1596
- "summary": "The tool keys a person may save, and which are set: names only, never a value"
2049
+ "summary": "The template packages this server ships: each makes an agent, its skills and its triggers"
1597
2050
  },
1598
2051
  {
1599
2052
  "command": [
1600
2053
  "tool-keys",
1601
- "save"
1602
- ],
1603
- "operationId": "saveToolKey",
1604
- "method": "PUT",
1605
- "path": "/settings/tool-keys/{key_id}",
1606
- "pathParams": [
1607
- "key_id"
2054
+ "list"
1608
2055
  ],
2056
+ "operationId": "listToolKeys",
2057
+ "method": "GET",
2058
+ "path": "/settings/tool-keys",
2059
+ "pathParams": [],
1609
2060
  "multiSegment": [],
1610
2061
  "query": [],
1611
2062
  "headers": [],
1612
2063
  "bodyFlags": [],
1613
- "hasBody": true,
1614
- "bodyRequired": true,
1615
- "bodyTypes": [
1616
- "application/json"
1617
- ],
1618
- "secretBody": true,
2064
+ "hasBody": false,
2065
+ "bodyRequired": false,
2066
+ "bodyTypes": [],
2067
+ "secretBody": false,
1619
2068
  "raw": false,
1620
- "summary": "Save a tool key's fields, sealed"
2069
+ "summary": "The tool keys a person may save, and which are set: names only, never a value"
1621
2070
  },
1622
2071
  {
1623
2072
  "command": [
@@ -1698,6 +2147,12 @@ export const COMMANDS = [
1698
2147
  "type": "integer",
1699
2148
  "required": false,
1700
2149
  "description": ""
2150
+ },
2151
+ {
2152
+ "name": "max_active_runs",
2153
+ "type": "integer",
2154
+ "required": false,
2155
+ "description": "For a `start_run` trigger of a pushed source (a webhook, with or without `accept`): each event starts its own run, never skipped behind the last, and this is the most of its runs active at once. A firing past it waits due and is tried again; past 20 due an event is 429 `rate_limited`. Null: a trigger with `accept` takes every run this server has room for, and one without keeps the overlap skip. A schedule or a `message_run` target is 422 with it set. A PATCH with null clears it."
1701
2156
  }
1702
2157
  ],
1703
2158
  "hasBody": true,
@@ -1706,6 +2161,21 @@ export const COMMANDS = [
1706
2161
  "application/json"
1707
2162
  ],
1708
2163
  "secretBody": false,
2164
+ "example": {
2165
+ "name": "Weekly brief",
2166
+ "source": {
2167
+ "kind": "schedule",
2168
+ "cron": "0 9 * * 1"
2169
+ },
2170
+ "target": {
2171
+ "kind": "start_run",
2172
+ "agent_id": "due-diligence",
2173
+ "input": {
2174
+ "content": "Research https://stripe.com again and say what changed this week."
2175
+ },
2176
+ "max_cost_usd": 1
2177
+ }
2178
+ },
1709
2179
  "raw": false,
1710
2180
  "summary": "Make a trigger: a schedule or a signed webhook that starts a capped run of an agent, or messages a run"
1711
2181
  },
@@ -1822,7 +2292,7 @@ export const COMMANDS = [
1822
2292
  "bodyTypes": [],
1823
2293
  "secretBody": false,
1824
2294
  "raw": false,
1825
- "summary": "The triggers: schedules that start an agent's capped runs"
2295
+ "summary": "The triggers: schedules and signed webhooks that start an agent's capped runs or message a run"
1826
2296
  },
1827
2297
  {
1828
2298
  "command": [
@@ -1878,6 +2348,12 @@ export const COMMANDS = [
1878
2348
  "type": "integer",
1879
2349
  "required": false,
1880
2350
  "description": ""
2351
+ },
2352
+ {
2353
+ "name": "max_active_runs",
2354
+ "type": "integer",
2355
+ "required": false,
2356
+ "description": "For a `start_run` trigger of a pushed source (a webhook, with or without `accept`): each event starts its own run, never skipped behind the last, and this is the most of its runs active at once. A firing past it waits due and is tried again; past 20 due an event is 429 `rate_limited`. Null: a trigger with `accept` takes every run this server has room for, and one without keeps the overlap skip. A schedule or a `message_run` target is 422 with it set. A PATCH with null clears it."
1881
2357
  }
1882
2358
  ],
1883
2359
  "hasBody": true,
@@ -2088,3 +2564,43 @@ export const COMMANDS = [
2088
2564
  "summary": "Check a workflow definition without saving it"
2089
2565
  }
2090
2566
  ];
2567
+
2568
+ // Every route whose body carries a secret, a command's or one with no command (omitted): a raw `api` call to one never
2569
+ // takes its body from the command line, and what it prints has the body's values cut, its public fields kept.
2570
+ export const SECRET_ROUTES = [
2571
+ {
2572
+ "operationId": "previewMcpServer",
2573
+ "method": "POST",
2574
+ "path": "/settings/mcp-servers/preview",
2575
+ "publicFields": [
2576
+ "url",
2577
+ "auth.type",
2578
+ "name"
2579
+ ]
2580
+ },
2581
+ {
2582
+ "operationId": "saveMcpServer",
2583
+ "method": "PUT",
2584
+ "path": "/settings/mcp-servers/{name}",
2585
+ "publicFields": [
2586
+ "url",
2587
+ "auth.type"
2588
+ ]
2589
+ },
2590
+ {
2591
+ "operationId": "saveToolKey",
2592
+ "method": "PUT",
2593
+ "path": "/settings/tool-keys/{key_id}",
2594
+ "publicFields": []
2595
+ },
2596
+ {
2597
+ "operationId": "startMcpOAuth",
2598
+ "method": "POST",
2599
+ "path": "/settings/mcp-servers/{name}/oauth/start",
2600
+ "publicFields": [
2601
+ "url",
2602
+ "scopes.[]",
2603
+ "client_id"
2604
+ ]
2605
+ }
2606
+ ];