@parcha/agentrun 0.4.15 → 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": [
@@ -2173,6 +2173,52 @@ export const COMMANDS = [
2173
2173
  "raw": false,
2174
2174
  "summary": "Start a run of an agent another system owns, given inline"
2175
2175
  },
2176
+ {
2177
+ "command": [
2178
+ "runs",
2179
+ "create-run-computer-viewer"
2180
+ ],
2181
+ "operationId": "createRunComputerViewer",
2182
+ "method": "POST",
2183
+ "path": "/runs/{run_id}/computer/viewer",
2184
+ "pathParams": [
2185
+ "run_id"
2186
+ ],
2187
+ "multiSegment": [],
2188
+ "query": [],
2189
+ "headers": [],
2190
+ "bodyFlags": [],
2191
+ "hasBody": true,
2192
+ "bodyRequired": false,
2193
+ "bodyTypes": [
2194
+ "application/json"
2195
+ ],
2196
+ "secretBody": false,
2197
+ "raw": false,
2198
+ "summary": "Mint a link to the run's live view for the backend's user"
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
+ },
2176
2222
  {
2177
2223
  "command": [
2178
2224
  "runs",
@@ -2866,6 +2912,28 @@ export const COMMANDS = [
2866
2912
  "raw": false,
2867
2913
  "summary": "Show the archived run in the lists again"
2868
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
+ },
2869
2937
  {
2870
2938
  "command": [
2871
2939
  "sdk-runs",
package/lib/harness.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  // `agentrun harness install goose|cursor` and `agentrun harness install --recipe FILE`: the harness its owner installs,
2
2
  // never a run (Goose; Cursor, on the owner's own Cursor API key; or an ACP agent a recipe file names:
3
- // docs/harness-recipe.md). The server installed with this command does it (agentrun-serve install-harness), as it runs
3
+ // HARNESS.md#a-recipe). The server installed with this command does it (agentrun-serve install-harness), as it runs
4
4
  // validate-template: the pinned archive downloaded, its sha256 checked, unpacked into DATA/harnesses/<id>, the binary's
5
5
  // sha256 checked (for Cursor, every file's too; for a recipe that pins none, the first one recorded), then put in place
6
6
  // read-only. DATA is this command's (~/.agentrun unless --data names one), the store `npx @parcha/agentrun` starts the
@@ -39,7 +39,7 @@ export const HARNESS_INSTALL = {
39
39
  summary: "Install a harness AgentRun runs only once its owner installs it (goose, cursor, or a recipe file's), then restart AgentRun",
40
40
  help: [
41
41
  ["HARNESS", `the harness: ${INSTALLABLE.join(", ")}. Its pinned release is downloaded and checked by sha256 into DATA/harnesses/HARNESS; run again, it downloads nothing`],
42
- ["--recipe FILE", "in place of HARNESS: a recipe file (docs/harness-recipe.md), checked against its five rules before anything is downloaded"],
42
+ ["--recipe FILE", "in place of HARNESS: a recipe file (HARNESS.md#a-recipe), checked against its five rules before anything is downloaded"],
43
43
  ["--data DIR", "the data directory of the AgentRun it is for (default ~/.agentrun, where npx @parcha/agentrun keeps it)"],
44
44
  ],
45
45
  options: { recipe: { type: "string" } },
@@ -60,7 +60,7 @@ export const HARNESS_CHECK = {
60
60
  pathParams: [],
61
61
  summary: "Run a recipe's installed agent for real and check it (tools off, env allowlist, pins, limits, no side requests, resume, a denied call, an MCP tool): a JSON report and three facts. Real models cost money",
62
62
  help: [
63
- ["--recipe FILE", "the recipe file (docs/harness-recipe.md); its agent installed first with agentrun harness install --recipe FILE"],
63
+ ["--recipe FILE", "the recipe file (HARNESS.md#a-recipe); its agent installed first with agentrun harness install --recipe FILE"],
64
64
  ["--model PROVIDER/MODEL", "the run's model, for a recipe billed through the proxy (openrouter/anthropic/claude-haiku-4.5, anthropic/claude-haiku-4-5)"],
65
65
  ["--report FILE", "where the JSON report goes (default ./harness-check-ID.json)"],
66
66
  ["--cap USD", "the most the check may spend (default 0.25)"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun",
3
- "version": "0.4.15",
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.47"
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, 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
 
@@ -305,7 +305,7 @@ Install a harness AgentRun runs only once its owner installs it (goose, cursor,
305
305
 
306
306
  Route: none, it runs on this machine.
307
307
 
308
- - `--recipe FILE` (string, this CLI's own): in place of HARNESS: a recipe file (docs/harness-recipe.md), checked against its five rules before anything is downloaded
308
+ - `--recipe FILE` (string, this CLI's own): in place of HARNESS: a recipe file (HARNESS.md#a-recipe), checked against its five rules before anything is downloaded
309
309
  - `--data DIR` (string, this CLI's own): the data directory of the AgentRun it is for (default ~/.agentrun, where npx @parcha/agentrun keeps it)
310
310
 
311
311
  ## harness-check
@@ -316,7 +316,7 @@ Run a recipe's installed agent for real and check it (tools off, env allowlist,
316
316
 
317
317
  Route: none, it runs on this machine.
318
318
 
319
- - `--recipe FILE` (string, this CLI's own): the recipe file (docs/harness-recipe.md); its agent installed first with agentrun harness install --recipe FILE
319
+ - `--recipe FILE` (string, this CLI's own): the recipe file (HARNESS.md#a-recipe); its agent installed first with agentrun harness install --recipe FILE
320
320
  - `--model PROVIDER/MODEL` (string, this CLI's own): the run's model, for a recipe billed through the proxy (openrouter/anthropic/claude-haiku-4.5, anthropic/claude-haiku-4-5)
321
321
  - `--report FILE` (string, this CLI's own): where the JSON report goes (default ./harness-check-ID.json)
322
322
  - `--cap USD` (string, this CLI's own): the most the check may spend (default 0.25)
@@ -679,6 +679,21 @@ Route: `POST /runs`.
679
679
  - `--body JSON|@FILE|-` (application/json, required): The whole body: inline, from a file or from stdin. The flags above win over a JSON body's fields.
680
680
  - `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
681
681
 
682
+ ### `agentrun runs create-run-computer-viewer RUN_ID`
683
+
684
+ Mint a link to the run's live view for the backend's user.
685
+
686
+ Route: `POST /runs/{run_id}/computer/viewer`.
687
+
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
+ - `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
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
+
682
697
  ### `agentrun runs files RUN_ID`
683
698
 
684
699
  The files the run wrote.
@@ -859,6 +874,12 @@ Show the archived run in the lists again.
859
874
 
860
875
  Route: `POST /runs/{run_id}/unarchive`.
861
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
+
862
883
  ### `agentrun runs wait RUN_ID`
863
884
 
864
885
  Wait until the run ends or waits on a person, and print it.