@parcha/agentrun 0.4.6 → 0.4.7

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.
@@ -22,6 +22,45 @@ export const COMMANDS = [
22
22
  "raw": false,
23
23
  "summary": "Archive the agent: hidden from the lists, kept with its history"
24
24
  },
25
+ {
26
+ "command": [
27
+ "agents",
28
+ "connect-native"
29
+ ],
30
+ "operationId": "connectNative",
31
+ "method": "POST",
32
+ "path": "/native/connect",
33
+ "pathParams": [],
34
+ "multiSegment": [],
35
+ "query": [],
36
+ "headers": [],
37
+ "bodyFlags": [
38
+ {
39
+ "name": "project",
40
+ "type": "string",
41
+ "required": true,
42
+ "description": ""
43
+ },
44
+ {
45
+ "name": "runtime",
46
+ "type": "string",
47
+ "enum": [
48
+ "claude-code",
49
+ "codex"
50
+ ],
51
+ "required": true,
52
+ "description": ""
53
+ }
54
+ ],
55
+ "hasBody": true,
56
+ "bodyRequired": true,
57
+ "bodyTypes": [
58
+ "application/json"
59
+ ],
60
+ "secretBody": false,
61
+ "raw": false,
62
+ "summary": "Connect a native project using ordinary agent and revision storage"
63
+ },
25
64
  {
26
65
  "command": [
27
66
  "agents",
@@ -91,6 +130,67 @@ export const COMMANDS = [
91
130
  "raw": false,
92
131
  "summary": "Remove an agent's own Archil disk, and everything on it"
93
132
  },
133
+ {
134
+ "command": [
135
+ "agents",
136
+ "disconnect-native"
137
+ ],
138
+ "operationId": "disconnectNative",
139
+ "method": "POST",
140
+ "path": "/agents/{agent_id}/native/disconnect",
141
+ "pathParams": [
142
+ "agent_id"
143
+ ],
144
+ "multiSegment": [],
145
+ "query": [],
146
+ "headers": [],
147
+ "bodyFlags": [],
148
+ "hasBody": false,
149
+ "bodyRequired": false,
150
+ "bodyTypes": [],
151
+ "secretBody": false,
152
+ "raw": false,
153
+ "summary": "Disconnect future native jobs while retaining source configuration and history"
154
+ },
155
+ {
156
+ "command": [
157
+ "agents",
158
+ "discover-native"
159
+ ],
160
+ "operationId": "discoverNative",
161
+ "method": "POST",
162
+ "path": "/native/discover",
163
+ "pathParams": [],
164
+ "multiSegment": [],
165
+ "query": [],
166
+ "headers": [],
167
+ "bodyFlags": [
168
+ {
169
+ "name": "project",
170
+ "type": "string",
171
+ "required": true,
172
+ "description": ""
173
+ },
174
+ {
175
+ "name": "runtime",
176
+ "type": "string",
177
+ "enum": [
178
+ "claude-code",
179
+ "codex"
180
+ ],
181
+ "required": false,
182
+ "description": ""
183
+ }
184
+ ],
185
+ "hasBody": true,
186
+ "bodyRequired": true,
187
+ "bodyTypes": [
188
+ "application/json"
189
+ ],
190
+ "secretBody": false,
191
+ "raw": false,
192
+ "summary": "Discover existing native projects on this source machine without running a model"
193
+ },
94
194
  {
95
195
  "command": [
96
196
  "agents",
@@ -180,6 +280,28 @@ export const COMMANDS = [
180
280
  "raw": false,
181
281
  "summary": "The self-learning loop's own record: each compile turn, and each guarded step of the learned workflows"
182
282
  },
283
+ {
284
+ "command": [
285
+ "agents",
286
+ "get-native"
287
+ ],
288
+ "operationId": "getNative",
289
+ "method": "GET",
290
+ "path": "/agents/{agent_id}/native",
291
+ "pathParams": [
292
+ "agent_id"
293
+ ],
294
+ "multiSegment": [],
295
+ "query": [],
296
+ "headers": [],
297
+ "bodyFlags": [],
298
+ "hasBody": false,
299
+ "bodyRequired": false,
300
+ "bodyTypes": [],
301
+ "secretBody": false,
302
+ "raw": false,
303
+ "summary": "Read a native connection"
304
+ },
183
305
  {
184
306
  "command": [
185
307
  "agents",
@@ -344,6 +466,315 @@ export const COMMANDS = [
344
466
  "raw": false,
345
467
  "summary": "Replace the agent's definition"
346
468
  },
469
+ {
470
+ "command": [
471
+ "agents",
472
+ "verify-native"
473
+ ],
474
+ "operationId": "verifyNative",
475
+ "method": "POST",
476
+ "path": "/agents/{agent_id}/native/verify",
477
+ "pathParams": [
478
+ "agent_id"
479
+ ],
480
+ "multiSegment": [],
481
+ "query": [],
482
+ "headers": [],
483
+ "bodyFlags": [],
484
+ "hasBody": false,
485
+ "bodyRequired": false,
486
+ "bodyTypes": [],
487
+ "secretBody": false,
488
+ "raw": false,
489
+ "summary": "Check native CLI and sign-in without a paid model call"
490
+ },
491
+ {
492
+ "command": [
493
+ "connectors",
494
+ "complete-remote-command"
495
+ ],
496
+ "operationId": "completeRemoteCommand",
497
+ "method": "POST",
498
+ "path": "/connectors/{connector_id}/commands/{command_id}/complete",
499
+ "pathParams": [
500
+ "connector_id",
501
+ "command_id"
502
+ ],
503
+ "multiSegment": [],
504
+ "query": [],
505
+ "headers": [],
506
+ "bodyFlags": [
507
+ {
508
+ "name": "lease_token",
509
+ "type": "string",
510
+ "required": true,
511
+ "description": ""
512
+ },
513
+ {
514
+ "name": "error",
515
+ "type": "string",
516
+ "required": false,
517
+ "description": ""
518
+ }
519
+ ],
520
+ "hasBody": true,
521
+ "bodyRequired": true,
522
+ "bodyTypes": [
523
+ "application/json"
524
+ ],
525
+ "secretBody": false,
526
+ "raw": false,
527
+ "summary": "Complete a source command once under its valid lease"
528
+ },
529
+ {
530
+ "command": [
531
+ "connectors",
532
+ "enroll-remote-connector"
533
+ ],
534
+ "operationId": "enrollRemoteConnector",
535
+ "method": "POST",
536
+ "path": "/connectors/enrollment",
537
+ "pathParams": [],
538
+ "multiSegment": [],
539
+ "query": [],
540
+ "headers": [],
541
+ "bodyFlags": [
542
+ {
543
+ "name": "label",
544
+ "type": "string",
545
+ "required": false,
546
+ "description": ""
547
+ }
548
+ ],
549
+ "hasBody": true,
550
+ "bodyRequired": true,
551
+ "bodyTypes": [
552
+ "application/json"
553
+ ],
554
+ "secretBody": false,
555
+ "raw": false,
556
+ "summary": "Create a ten-minute one-use connection code"
557
+ },
558
+ {
559
+ "command": [
560
+ "connectors",
561
+ "import-remote-history"
562
+ ],
563
+ "operationId": "importRemoteHistory",
564
+ "method": "POST",
565
+ "path": "/connectors/{connector_id}/targets/{target_id}/history",
566
+ "pathParams": [
567
+ "connector_id",
568
+ "target_id"
569
+ ],
570
+ "multiSegment": [],
571
+ "query": [],
572
+ "headers": [],
573
+ "bodyFlags": [],
574
+ "hasBody": true,
575
+ "bodyRequired": true,
576
+ "bodyTypes": [
577
+ "application/json"
578
+ ],
579
+ "secretBody": false,
580
+ "raw": false,
581
+ "summary": "Import explicitly selected, redacted past sessions without running or learning from them"
582
+ },
583
+ {
584
+ "command": [
585
+ "connectors",
586
+ "import-remote-target"
587
+ ],
588
+ "operationId": "importRemoteTarget",
589
+ "method": "POST",
590
+ "path": "/connectors/{connector_id}/import",
591
+ "pathParams": [
592
+ "connector_id"
593
+ ],
594
+ "multiSegment": [],
595
+ "query": [],
596
+ "headers": [],
597
+ "bodyFlags": [
598
+ {
599
+ "name": "target_id",
600
+ "type": "string",
601
+ "required": true,
602
+ "description": ""
603
+ },
604
+ {
605
+ "name": "name",
606
+ "type": "string",
607
+ "required": false,
608
+ "description": ""
609
+ },
610
+ {
611
+ "name": "history_only",
612
+ "type": "boolean",
613
+ "required": false,
614
+ "description": ""
615
+ }
616
+ ],
617
+ "hasBody": true,
618
+ "bodyRequired": true,
619
+ "bodyTypes": [
620
+ "application/json"
621
+ ],
622
+ "secretBody": false,
623
+ "raw": false,
624
+ "summary": "Import an explicitly selected source-native agent reference"
625
+ },
626
+ {
627
+ "command": [
628
+ "connectors",
629
+ "list-remote-connectors"
630
+ ],
631
+ "operationId": "listRemoteConnectors",
632
+ "method": "GET",
633
+ "path": "/connectors",
634
+ "pathParams": [],
635
+ "multiSegment": [],
636
+ "query": [],
637
+ "headers": [],
638
+ "bodyFlags": [],
639
+ "hasBody": false,
640
+ "bodyRequired": false,
641
+ "bodyTypes": [],
642
+ "secretBody": false,
643
+ "raw": false,
644
+ "summary": "List remote source machines and imported agent targets"
645
+ },
646
+ {
647
+ "command": [
648
+ "connectors",
649
+ "poll-remote-connector"
650
+ ],
651
+ "operationId": "pollRemoteConnector",
652
+ "method": "POST",
653
+ "path": "/connectors/{connector_id}/poll",
654
+ "pathParams": [
655
+ "connector_id"
656
+ ],
657
+ "multiSegment": [],
658
+ "query": [],
659
+ "headers": [],
660
+ "bodyFlags": [
661
+ {
662
+ "name": "worker_id",
663
+ "type": "string",
664
+ "required": true,
665
+ "description": ""
666
+ }
667
+ ],
668
+ "hasBody": true,
669
+ "bodyRequired": true,
670
+ "bodyTypes": [
671
+ "application/json"
672
+ ],
673
+ "secretBody": false,
674
+ "raw": false,
675
+ "summary": "Renew active source leases and claim one command without replay"
676
+ },
677
+ {
678
+ "command": [
679
+ "connectors",
680
+ "register-remote-connector"
681
+ ],
682
+ "operationId": "registerRemoteConnector",
683
+ "method": "POST",
684
+ "path": "/connectors",
685
+ "pathParams": [],
686
+ "multiSegment": [],
687
+ "query": [],
688
+ "headers": [],
689
+ "bodyFlags": [
690
+ {
691
+ "name": "installation_id",
692
+ "type": "string",
693
+ "required": true,
694
+ "description": ""
695
+ },
696
+ {
697
+ "name": "operation_id",
698
+ "type": "string",
699
+ "required": true,
700
+ "description": ""
701
+ },
702
+ {
703
+ "name": "label",
704
+ "type": "string",
705
+ "required": false,
706
+ "description": ""
707
+ }
708
+ ],
709
+ "hasBody": true,
710
+ "bodyRequired": true,
711
+ "bodyTypes": [
712
+ "application/json"
713
+ ],
714
+ "secretBody": false,
715
+ "raw": false,
716
+ "summary": "Exchange a one-use enrollment code for a connector-scoped credential"
717
+ },
718
+ {
719
+ "command": [
720
+ "connectors",
721
+ "remote-command-events"
722
+ ],
723
+ "operationId": "remoteCommandEvents",
724
+ "method": "POST",
725
+ "path": "/connectors/{connector_id}/commands/{command_id}/events",
726
+ "pathParams": [
727
+ "connector_id",
728
+ "command_id"
729
+ ],
730
+ "multiSegment": [],
731
+ "query": [],
732
+ "headers": [],
733
+ "bodyFlags": [
734
+ {
735
+ "name": "lease_token",
736
+ "type": "string",
737
+ "required": true,
738
+ "description": ""
739
+ },
740
+ {
741
+ "name": "sequence",
742
+ "type": "integer",
743
+ "required": true,
744
+ "description": ""
745
+ }
746
+ ],
747
+ "hasBody": true,
748
+ "bodyRequired": true,
749
+ "bodyTypes": [
750
+ "application/json"
751
+ ],
752
+ "secretBody": false,
753
+ "raw": false,
754
+ "summary": "Append an ordered idempotent native event batch for a valid command lease"
755
+ },
756
+ {
757
+ "command": [
758
+ "connectors",
759
+ "revoke-remote-connector"
760
+ ],
761
+ "operationId": "revokeRemoteConnector",
762
+ "method": "DELETE",
763
+ "path": "/connectors/{connector_id}",
764
+ "pathParams": [
765
+ "connector_id"
766
+ ],
767
+ "multiSegment": [],
768
+ "query": [],
769
+ "headers": [],
770
+ "bodyFlags": [],
771
+ "hasBody": false,
772
+ "bodyRequired": false,
773
+ "bodyTypes": [],
774
+ "secretBody": false,
775
+ "raw": false,
776
+ "summary": "Revoke a source connector and stop its outstanding commands"
777
+ },
347
778
  {
348
779
  "command": [
349
780
  "files",
@@ -753,7 +1184,7 @@ export const COMMANDS = [
753
1184
  "csv"
754
1185
  ],
755
1186
  "required": false,
756
- "description": "`csv`: the runs as CSV, columns n, run_id, started_at, path, workflow, learned_revision, cost_usd, learning_usd, total_usd."
1187
+ "description": "`csv`: the runs as CSV, columns n, run_id, started_at, path, workflow, learned_revision, cost_usd, cost_upper_bound, learning_usd, total_usd."
757
1188
  }
758
1189
  ],
759
1190
  "headers": [],
@@ -988,6 +1419,31 @@ export const COMMANDS = [
988
1419
  "raw": false,
989
1420
  "summary": "Record a held-out test of the agent: its counts and the cost a task, with learning and by hand"
990
1421
  },
1422
+ {
1423
+ "command": [
1424
+ "learning",
1425
+ "replay"
1426
+ ],
1427
+ "operationId": "getLearnedWorkflowReplay",
1428
+ "method": "GET",
1429
+ "path": "/agents/{agent_id}/learning/workflows/{name}/revisions/{digest}/replays/{replay_id}",
1430
+ "pathParams": [
1431
+ "agent_id",
1432
+ "name",
1433
+ "digest",
1434
+ "replay_id"
1435
+ ],
1436
+ "multiSegment": [],
1437
+ "query": [],
1438
+ "headers": [],
1439
+ "bodyFlags": [],
1440
+ "hasBody": false,
1441
+ "bodyRequired": false,
1442
+ "bodyTypes": [],
1443
+ "secretBody": false,
1444
+ "raw": false,
1445
+ "summary": "Read a replay's result: running, done or failed, its counts and its score (start one from the console's Learning tab)"
1446
+ },
991
1447
  {
992
1448
  "command": [
993
1449
  "learning",
@@ -1115,6 +1571,28 @@ export const COMMANDS = [
1115
1571
  "raw": false,
1116
1572
  "summary": "A code that pairs a person's own computer with this server"
1117
1573
  },
1574
+ {
1575
+ "command": [
1576
+ "local",
1577
+ "delete-composio-subscription"
1578
+ ],
1579
+ "operationId": "deleteComposioSubscription",
1580
+ "method": "DELETE",
1581
+ "path": "/settings/mcp-servers/{name}/composio/subscription",
1582
+ "pathParams": [
1583
+ "name"
1584
+ ],
1585
+ "multiSegment": [],
1586
+ "query": [],
1587
+ "headers": [],
1588
+ "bodyFlags": [],
1589
+ "hasBody": false,
1590
+ "bodyRequired": false,
1591
+ "bodyTypes": [],
1592
+ "secretBody": false,
1593
+ "raw": false,
1594
+ "summary": "Delete the Composio project's webhook subscription, once no trigger uses it"
1595
+ },
1118
1596
  {
1119
1597
  "command": [
1120
1598
  "local",
@@ -1175,17 +1653,103 @@ export const COMMANDS = [
1175
1653
  "bodyTypes": [],
1176
1654
  "secretBody": false,
1177
1655
  "raw": false,
1178
- "summary": "Disconnect GitHub: the App's credentials gone from this server, and every github trigger off"
1656
+ "summary": "Disconnect GitHub: the App's credentials gone from this server, and every github trigger off"
1657
+ },
1658
+ {
1659
+ "command": [
1660
+ "local",
1661
+ "get-git-hub-connection"
1662
+ ],
1663
+ "operationId": "getGitHubConnection",
1664
+ "method": "GET",
1665
+ "path": "/integrations/github",
1666
+ "pathParams": [],
1667
+ "multiSegment": [],
1668
+ "query": [],
1669
+ "headers": [],
1670
+ "bodyFlags": [],
1671
+ "hasBody": false,
1672
+ "bodyRequired": false,
1673
+ "bodyTypes": [],
1674
+ "secretBody": false,
1675
+ "raw": false,
1676
+ "summary": "Whether a GitHub App is connected, and if so its id, slug and installations, never a secret"
1677
+ },
1678
+ {
1679
+ "command": [
1680
+ "local",
1681
+ "get-workspace-archil"
1682
+ ],
1683
+ "operationId": "getWorkspaceArchil",
1684
+ "method": "GET",
1685
+ "path": "/workspace/archil",
1686
+ "pathParams": [],
1687
+ "multiSegment": [],
1688
+ "query": [],
1689
+ "headers": [],
1690
+ "bodyFlags": [],
1691
+ "hasBody": false,
1692
+ "bodyRequired": false,
1693
+ "bodyTypes": [],
1694
+ "secretBody": false,
1695
+ "raw": false,
1696
+ "summary": "Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved"
1697
+ },
1698
+ {
1699
+ "command": [
1700
+ "local",
1701
+ "list-composio-events"
1702
+ ],
1703
+ "operationId": "listComposioEvents",
1704
+ "method": "GET",
1705
+ "path": "/settings/mcp-servers/{name}/composio/events",
1706
+ "pathParams": [
1707
+ "name"
1708
+ ],
1709
+ "multiSegment": [],
1710
+ "query": [],
1711
+ "headers": [],
1712
+ "bodyFlags": [],
1713
+ "hasBody": false,
1714
+ "bodyRequired": false,
1715
+ "bodyTypes": [],
1716
+ "secretBody": false,
1717
+ "raw": false,
1718
+ "summary": "List a saved Composio server's toolkit's events, for a composio trigger"
1719
+ },
1720
+ {
1721
+ "command": [
1722
+ "local",
1723
+ "list-composio-triggers"
1724
+ ],
1725
+ "operationId": "listComposioTriggers",
1726
+ "method": "GET",
1727
+ "path": "/settings/mcp-servers/{name}/composio/triggers",
1728
+ "pathParams": [
1729
+ "name"
1730
+ ],
1731
+ "multiSegment": [],
1732
+ "query": [],
1733
+ "headers": [],
1734
+ "bodyFlags": [],
1735
+ "hasBody": false,
1736
+ "bodyRequired": false,
1737
+ "bodyTypes": [],
1738
+ "secretBody": false,
1739
+ "raw": false,
1740
+ "summary": "A saved Composio server's triggers, each with its instance's state on Composio"
1179
1741
  },
1180
1742
  {
1181
1743
  "command": [
1182
1744
  "local",
1183
- "get-git-hub-connection"
1745
+ "list-computer-choices"
1184
1746
  ],
1185
- "operationId": "getGitHubConnection",
1747
+ "operationId": "listComputerChoices",
1186
1748
  "method": "GET",
1187
- "path": "/integrations/github",
1188
- "pathParams": [],
1749
+ "path": "/computers/{provider}/choices",
1750
+ "pathParams": [
1751
+ "provider"
1752
+ ],
1189
1753
  "multiSegment": [],
1190
1754
  "query": [],
1191
1755
  "headers": [],
@@ -1195,16 +1759,16 @@ export const COMMANDS = [
1195
1759
  "bodyTypes": [],
1196
1760
  "secretBody": false,
1197
1761
  "raw": false,
1198
- "summary": "Whether a GitHub App is connected, and if so its id, slug and installations, never a secret"
1762
+ "summary": "The values a computer provider's picked keys offer, read from the vendor"
1199
1763
  },
1200
1764
  {
1201
1765
  "command": [
1202
1766
  "local",
1203
- "get-workspace-archil"
1767
+ "list-computers"
1204
1768
  ],
1205
- "operationId": "getWorkspaceArchil",
1769
+ "operationId": "listComputers",
1206
1770
  "method": "GET",
1207
- "path": "/workspace/archil",
1771
+ "path": "/computers",
1208
1772
  "pathParams": [],
1209
1773
  "multiSegment": [],
1210
1774
  "query": [],
@@ -1215,39 +1779,43 @@ export const COMMANDS = [
1215
1779
  "bodyTypes": [],
1216
1780
  "secretBody": false,
1217
1781
  "raw": false,
1218
- "summary": "Whether run folders are on Archil disks (Mode 2), the settings, and whether its keys are saved"
1782
+ "summary": "Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved"
1219
1783
  },
1220
1784
  {
1221
1785
  "command": [
1222
1786
  "local",
1223
- "list-computer-choices"
1787
+ "receive-hook-composio"
1224
1788
  ],
1225
- "operationId": "listComputerChoices",
1226
- "method": "GET",
1227
- "path": "/computers/{provider}/choices",
1789
+ "operationId": "receiveHook_composio",
1790
+ "method": "POST",
1791
+ "path": "/hooks/composio/{hook}",
1228
1792
  "pathParams": [
1229
- "provider"
1793
+ "hook"
1230
1794
  ],
1231
1795
  "multiSegment": [],
1232
1796
  "query": [],
1233
1797
  "headers": [],
1234
1798
  "bodyFlags": [],
1235
- "hasBody": false,
1236
- "bodyRequired": false,
1237
- "bodyTypes": [],
1799
+ "hasBody": true,
1800
+ "bodyRequired": true,
1801
+ "bodyTypes": [
1802
+ "*/*"
1803
+ ],
1238
1804
  "secretBody": false,
1239
1805
  "raw": false,
1240
- "summary": "The values a computer provider's picked keys offer, read from the vendor"
1806
+ "summary": "Fire a Composio trigger: a request it checks, no token"
1241
1807
  },
1242
1808
  {
1243
1809
  "command": [
1244
1810
  "local",
1245
- "list-computers"
1811
+ "rotate-composio-secret"
1812
+ ],
1813
+ "operationId": "rotateComposioSecret",
1814
+ "method": "POST",
1815
+ "path": "/settings/mcp-servers/{name}/composio/rotate-secret",
1816
+ "pathParams": [
1817
+ "name"
1246
1818
  ],
1247
- "operationId": "listComputers",
1248
- "method": "GET",
1249
- "path": "/computers",
1250
- "pathParams": [],
1251
1819
  "multiSegment": [],
1252
1820
  "query": [],
1253
1821
  "headers": [],
@@ -1257,7 +1825,7 @@ export const COMMANDS = [
1257
1825
  "bodyTypes": [],
1258
1826
  "secretBody": false,
1259
1827
  "raw": false,
1260
- "summary": "Settings → Computers: the kinds of computer this server offers, each provider and whether its keys are saved"
1828
+ "summary": "Rotate the Composio project's webhook subscription's secret, and keep the new one"
1261
1829
  },
1262
1830
  {
1263
1831
  "command": [
@@ -1427,6 +1995,39 @@ export const COMMANDS = [
1427
1995
  "raw": false,
1428
1996
  "summary": "List a saved MCP server's tools again, keep them, and say what changed"
1429
1997
  },
1998
+ {
1999
+ "command": [
2000
+ "Observations",
2001
+ "get-observations"
2002
+ ],
2003
+ "operationId": "getObservations",
2004
+ "method": "GET",
2005
+ "path": "/observations",
2006
+ "pathParams": [],
2007
+ "multiSegment": [],
2008
+ "query": [
2009
+ {
2010
+ "name": "days",
2011
+ "type": "integer",
2012
+ "required": false,
2013
+ "description": "UTC calendar days including today; session details remain visible for their full retention period."
2014
+ },
2015
+ {
2016
+ "name": "session_id",
2017
+ "type": "string",
2018
+ "required": false,
2019
+ "description": ""
2020
+ }
2021
+ ],
2022
+ "headers": [],
2023
+ "bodyFlags": [],
2024
+ "hasBody": false,
2025
+ "bodyRequired": false,
2026
+ "bodyTypes": [],
2027
+ "secretBody": false,
2028
+ "raw": false,
2029
+ "summary": "Read activity and token usage reported by externally running agents"
2030
+ },
1430
2031
  {
1431
2032
  "command": [
1432
2033
  "revisions",
@@ -1678,16 +2279,6 @@ export const COMMANDS = [
1678
2279
  "required": false,
1679
2280
  "description": "Run at a quote's terms. A different `effort` or `max_cost_usd` than the quote's is `409 quote_invalid`."
1680
2281
  },
1681
- {
1682
- "name": "cap_mode",
1683
- "type": "string",
1684
- "enum": [
1685
- "expected",
1686
- "strict"
1687
- ],
1688
- "required": false,
1689
- "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."
1690
- },
1691
2282
  {
1692
2283
  "name": "workflow_first",
1693
2284
  "type": "boolean",
@@ -2206,16 +2797,6 @@ export const COMMANDS = [
2206
2797
  "required": false,
2207
2798
  "description": "Run at a quote's terms. A different `effort` or `max_cost_usd` than the quote's is `409 quote_invalid`."
2208
2799
  },
2209
- {
2210
- "name": "cap_mode",
2211
- "type": "string",
2212
- "enum": [
2213
- "expected",
2214
- "strict"
2215
- ],
2216
- "required": false,
2217
- "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."
2218
- },
2219
2800
  {
2220
2801
  "name": "workflow_first",
2221
2802
  "type": "boolean",
@@ -2365,6 +2946,15 @@ export const COMMANDS = [
2365
2946
  "type": "integer",
2366
2947
  "required": false,
2367
2948
  "description": "At most this many rows in a page (1 to 500, default 500); has_more says when another waits."
2949
+ },
2950
+ {
2951
+ "name": "calls",
2952
+ "type": "string",
2953
+ "enum": [
2954
+ "whole"
2955
+ ],
2956
+ "required": false,
2957
+ "description": "`whole`: each `tool_use` row carries its call's arguments (`tool_input`) and each `tool_result` row the head of its output to 8000 characters (`tool_result_text`; a web call's every url, only its long texts cut), both through the run's redaction, for a reader that grades the run (a template eval). Its rows are another page sequence: a cursor (`after`, `Last-Event-ID`) from one read goes with the same `calls`."
2368
2958
  }
2369
2959
  ],
2370
2960
  "headers": [
@@ -2405,6 +2995,199 @@ export const COMMANDS = [
2405
2995
  "raw": false,
2406
2996
  "summary": "Show the archived run in the lists again"
2407
2997
  },
2998
+ {
2999
+ "command": [
3000
+ "sdk-runs",
3001
+ "complete"
3002
+ ],
3003
+ "operationId": "completeSdkRun",
3004
+ "method": "POST",
3005
+ "path": "/sdk-runs/{run_id}/complete",
3006
+ "pathParams": [
3007
+ "run_id"
3008
+ ],
3009
+ "multiSegment": [],
3010
+ "query": [],
3011
+ "headers": [
3012
+ {
3013
+ "name": "Idempotency-Key",
3014
+ "type": "string",
3015
+ "required": false,
3016
+ "description": ""
3017
+ }
3018
+ ],
3019
+ "bodyFlags": [
3020
+ {
3021
+ "name": "status",
3022
+ "type": "string",
3023
+ "enum": [
3024
+ "completed",
3025
+ "failed",
3026
+ "cancelled"
3027
+ ],
3028
+ "required": true,
3029
+ "description": ""
3030
+ },
3031
+ {
3032
+ "name": "answer",
3033
+ "type": "string",
3034
+ "required": true,
3035
+ "description": ""
3036
+ },
3037
+ {
3038
+ "name": "error",
3039
+ "type": "string",
3040
+ "required": false,
3041
+ "description": ""
3042
+ },
3043
+ {
3044
+ "name": "model",
3045
+ "type": "string",
3046
+ "required": false,
3047
+ "description": ""
3048
+ },
3049
+ {
3050
+ "name": "session_id",
3051
+ "type": "string",
3052
+ "required": false,
3053
+ "description": ""
3054
+ },
3055
+ {
3056
+ "name": "evidence_complete",
3057
+ "type": "boolean",
3058
+ "required": false,
3059
+ "description": ""
3060
+ }
3061
+ ],
3062
+ "hasBody": true,
3063
+ "bodyRequired": true,
3064
+ "bodyTypes": [
3065
+ "application/json"
3066
+ ],
3067
+ "secretBody": false,
3068
+ "raw": false,
3069
+ "summary": "Complete a backend SDK task"
3070
+ },
3071
+ {
3072
+ "command": [
3073
+ "sdk-runs",
3074
+ "events"
3075
+ ],
3076
+ "operationId": "sdkRunEvents",
3077
+ "method": "POST",
3078
+ "path": "/sdk-runs/{run_id}/events",
3079
+ "pathParams": [
3080
+ "run_id"
3081
+ ],
3082
+ "multiSegment": [],
3083
+ "query": [],
3084
+ "headers": [
3085
+ {
3086
+ "name": "Idempotency-Key",
3087
+ "type": "string",
3088
+ "required": false,
3089
+ "description": ""
3090
+ }
3091
+ ],
3092
+ "bodyFlags": [
3093
+ {
3094
+ "name": "sequence",
3095
+ "type": "integer",
3096
+ "required": true,
3097
+ "description": ""
3098
+ }
3099
+ ],
3100
+ "hasBody": true,
3101
+ "bodyRequired": true,
3102
+ "bodyTypes": [
3103
+ "application/json"
3104
+ ],
3105
+ "secretBody": false,
3106
+ "raw": false,
3107
+ "summary": "Record bounded SDK execution evidence"
3108
+ },
3109
+ {
3110
+ "command": [
3111
+ "sdk-runs",
3112
+ "get"
3113
+ ],
3114
+ "operationId": "getSdkRun",
3115
+ "method": "GET",
3116
+ "path": "/sdk-runs/{run_id}",
3117
+ "pathParams": [
3118
+ "run_id"
3119
+ ],
3120
+ "multiSegment": [],
3121
+ "query": [],
3122
+ "headers": [],
3123
+ "bodyFlags": [],
3124
+ "hasBody": false,
3125
+ "bodyRequired": false,
3126
+ "bodyTypes": [],
3127
+ "secretBody": false,
3128
+ "raw": false,
3129
+ "summary": "Read SDK run and learning state"
3130
+ },
3131
+ {
3132
+ "command": [
3133
+ "sdk-runs",
3134
+ "start"
3135
+ ],
3136
+ "operationId": "startSdkRun",
3137
+ "method": "POST",
3138
+ "path": "/agents/{agent_id}/sdk-runs",
3139
+ "pathParams": [
3140
+ "agent_id"
3141
+ ],
3142
+ "multiSegment": [],
3143
+ "query": [],
3144
+ "headers": [
3145
+ {
3146
+ "name": "Idempotency-Key",
3147
+ "type": "string",
3148
+ "required": true,
3149
+ "description": ""
3150
+ }
3151
+ ],
3152
+ "bodyFlags": [
3153
+ {
3154
+ "name": "runtime",
3155
+ "type": "string",
3156
+ "enum": [
3157
+ "claude-agent-sdk",
3158
+ "codex-sdk"
3159
+ ],
3160
+ "required": true,
3161
+ "description": ""
3162
+ },
3163
+ {
3164
+ "name": "input",
3165
+ "type": "string",
3166
+ "required": true,
3167
+ "description": ""
3168
+ },
3169
+ {
3170
+ "name": "instructions",
3171
+ "type": "string",
3172
+ "required": true,
3173
+ "description": ""
3174
+ },
3175
+ {
3176
+ "name": "model",
3177
+ "type": "string",
3178
+ "required": false,
3179
+ "description": ""
3180
+ }
3181
+ ],
3182
+ "hasBody": true,
3183
+ "bodyRequired": true,
3184
+ "bodyTypes": [
3185
+ "application/json"
3186
+ ],
3187
+ "secretBody": false,
3188
+ "raw": false,
3189
+ "summary": "Register a task executed by an existing backend SDK"
3190
+ },
2408
3191
  {
2409
3192
  "command": [
2410
3193
  "server",