@parcha/agentrun 0.4.16 → 0.4.17

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.
@@ -128,7 +128,7 @@ export const COMMANDS = [
128
128
  "bodyTypes": [],
129
129
  "secretBody": false,
130
130
  "raw": false,
131
- "summary": "Delete an agent another system owns"
131
+ "summary": "Delete an agent another system owns, or purge an archived agent made here"
132
132
  },
133
133
  {
134
134
  "command": [
@@ -2197,6 +2197,28 @@ export const COMMANDS = [
2197
2197
  "raw": false,
2198
2198
  "summary": "Mint a link to the run's live view for the backend's user"
2199
2199
  },
2200
+ {
2201
+ "command": [
2202
+ "runs",
2203
+ "delete"
2204
+ ],
2205
+ "operationId": "deleteRun",
2206
+ "method": "DELETE",
2207
+ "path": "/runs/{run_id}",
2208
+ "pathParams": [
2209
+ "run_id"
2210
+ ],
2211
+ "multiSegment": [],
2212
+ "query": [],
2213
+ "headers": [],
2214
+ "bodyFlags": [],
2215
+ "hasBody": false,
2216
+ "bodyRequired": false,
2217
+ "bodyTypes": [],
2218
+ "secretBody": false,
2219
+ "raw": false,
2220
+ "summary": "Purge a run's content and keep its cost"
2221
+ },
2200
2222
  {
2201
2223
  "command": [
2202
2224
  "runs",
@@ -2890,6 +2912,28 @@ export const COMMANDS = [
2890
2912
  "raw": false,
2891
2913
  "summary": "Show the archived run in the lists again"
2892
2914
  },
2915
+ {
2916
+ "command": [
2917
+ "runs",
2918
+ "usage"
2919
+ ],
2920
+ "operationId": "getRunUsage",
2921
+ "method": "GET",
2922
+ "path": "/runs/{run_id}/usage",
2923
+ "pathParams": [
2924
+ "run_id"
2925
+ ],
2926
+ "multiSegment": [],
2927
+ "query": [],
2928
+ "headers": [],
2929
+ "bodyFlags": [],
2930
+ "hasBody": false,
2931
+ "bodyRequired": false,
2932
+ "bodyTypes": [],
2933
+ "secretBody": false,
2934
+ "raw": false,
2935
+ "summary": "What a run cost, by model, by who charged for its tools, and by browser provider"
2936
+ },
2893
2937
  {
2894
2938
  "command": [
2895
2939
  "sdk-runs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun",
3
- "version": "0.4.16",
3
+ "version": "0.4.17",
4
4
  "description": "AgentRun, the open-source platform that supercharges your agents (self-improvement, durable execution and a control plane on top of your favorite agent harness), on this machine with one command: npx @parcha/agentrun",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -17,7 +17,7 @@
17
17
  "NOTICE"
18
18
  ],
19
19
  "dependencies": {
20
- "@parcha/agentrun-serve": "0.1.0-beta.48"
20
+ "@parcha/agentrun-serve": "0.1.0-beta.49"
21
21
  },
22
22
  "scripts": {
23
23
  "test": "node --test 'test/*.test.mjs'"
@@ -146,7 +146,7 @@ Two clients call the same API from code, with the same server and token. `@parch
146
146
  - `agentrun Observations`: get-observations
147
147
  - `agentrun open`: Open AgentRun in this machine's browser: the setup page, its code filled in, until the owner's password is set; the console after (where no browser opens, it prints the link)
148
148
  - `agentrun revisions`: list, set-current
149
- - `agentrun runs`: archive, cancel, computer-call, computer-release, create-inline-run, create-run-computer-viewer, files, get, grade-run, graph, hand-back-run-computer, learning, learning-diff, list, message, pause, raise-cap, read-file, resume, start, start-held, stop, take-over-run-computer, timeline, trace, unarchive, wait
149
+ - `agentrun runs`: archive, cancel, computer-call, computer-release, create-inline-run, create-run-computer-viewer, delete, files, get, grade-run, graph, hand-back-run-computer, learning, learning-diff, list, message, pause, raise-cap, read-file, resume, start, start-held, stop, take-over-run-computer, timeline, trace, unarchive, usage, wait
150
150
  - `agentrun sdk-runs`: complete, events, get, start
151
151
  - `agentrun server`: capabilities, health, mcp, openapi
152
152
  - `agentrun service`: install, logs, restart, start, status, stop, uninstall, upgrade
@@ -36,7 +36,7 @@ Route: `POST /agents`.
36
36
 
37
37
  ### `agentrun agents delete-agent AGENT_ID`
38
38
 
39
- Delete an agent another system owns.
39
+ Delete an agent another system owns, or purge an archived agent made here.
40
40
 
41
41
  Route: `DELETE /agents/{agent_id}`.
42
42
 
@@ -688,6 +688,12 @@ Route: `POST /runs/{run_id}/computer/viewer`.
688
688
  - `--body JSON|@FILE|-` (application/json): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
689
689
  - `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
690
690
 
691
+ ### `agentrun runs delete RUN_ID`
692
+
693
+ Purge a run's content and keep its cost.
694
+
695
+ Route: `DELETE /runs/{run_id}`.
696
+
691
697
  ### `agentrun runs files RUN_ID`
692
698
 
693
699
  The files the run wrote.
@@ -868,6 +874,12 @@ Show the archived run in the lists again.
868
874
 
869
875
  Route: `POST /runs/{run_id}/unarchive`.
870
876
 
877
+ ### `agentrun runs usage RUN_ID`
878
+
879
+ What a run cost, by model, by who charged for its tools, and by browser provider.
880
+
881
+ Route: `GET /runs/{run_id}/usage`.
882
+
871
883
  ### `agentrun runs wait RUN_ID`
872
884
 
873
885
  Wait until the run ends or waits on a person, and print it.