@parcha/agentrun 0.4.15 → 0.4.16

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.
@@ -2173,6 +2173,30 @@ 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
+ },
2176
2200
  {
2177
2201
  "command": [
2178
2202
  "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.16",
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.48"
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, 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
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
@@ -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,15 @@ 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
+
682
691
  ### `agentrun runs files RUN_ID`
683
692
 
684
693
  The files the run wrote.