@parcha/agentrun 0.4.16 → 0.4.18

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.
package/install.sh CHANGED
@@ -207,6 +207,9 @@ It installs AgentRun, with a Node.js of its own, in ~/.agentrun, and starts it a
207
207
  macOS, systemd --user on Linux), which keeps running after the terminal closes. Where there is no service manager, it
208
208
  starts AgentRun in the background until the machine stops; `agentrun stop` stops it. It returns once AgentRun answers.
209
209
 
210
+ AgentRun counts itself anonymously (a random id, version and platform; never prompts, files or keys). To turn that
211
+ off, put AGENTRUN_TELEMETRY=0 before sh: https://github.com/Parcha-ai/agentrun/blob/main/docs/telemetry.md
212
+
210
213
  Options:
211
214
  --version V the @parcha/agentrun version or npm tag to install (default: latest)
212
215
  --package FILE install the launcher from FILE, a tarball `npm pack` made, in place of the registry's
@@ -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",
@@ -3051,7 +3095,8 @@ export const COMMANDS = [
3051
3095
  "enum": [
3052
3096
  "claude-agent-sdk",
3053
3097
  "codex-sdk",
3054
- "eve"
3098
+ "eve",
3099
+ "external"
3055
3100
  ],
3056
3101
  "required": true,
3057
3102
  "description": ""
@@ -3073,6 +3118,12 @@ export const COMMANDS = [
3073
3118
  "type": "string",
3074
3119
  "required": false,
3075
3120
  "description": ""
3121
+ },
3122
+ {
3123
+ "name": "platform",
3124
+ "type": "string",
3125
+ "required": false,
3126
+ "description": "External source's display label, such as openclaw or capy. Preserved exactly; no surrounding whitespace, controls or lone surrogates. Never selects a managed harness or workflow capability."
3076
3127
  }
3077
3128
  ],
3078
3129
  "hasBody": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun",
3
- "version": "0.4.16",
3
+ "version": "0.4.18",
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.50"
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.
@@ -918,10 +930,11 @@ Register a task executed by an existing backend SDK.
918
930
  Route: `POST /agents/{agent_id}/sdk-runs`.
919
931
 
920
932
  - `--idempotency-key STRING` (string, required)
921
- - `--runtime claude-agent-sdk|codex-sdk|eve` (string, one of these, required)
933
+ - `--runtime claude-agent-sdk|codex-sdk|eve|external` (string, one of these, required)
922
934
  - `--input STRING` (string, required)
923
935
  - `--instructions STRING` (string, required)
924
936
  - `--model STRING` (string)
937
+ - `--platform STRING` (string): External source's display label, such as openclaw or capy. Preserved exactly; no surrounding whitespace, controls or lone surrogates. Never selects a managed harness or workflow capability.
925
938
  - `--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.
926
939
  - `--body-type TYPE` (string): The body's type, one of application/json; any other than JSON is sent as given.
927
940