@parcha/agentrun-serve 0.1.0-beta.54 → 0.1.0-beta.56
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/CHANGELOG.md +142 -2
- package/README.md +310 -98
- package/dist/adapters.d.ts +11 -0
- package/dist/adapters.js +49 -0
- package/dist/agent-package.d.ts +3 -3
- package/dist/agent-package.js +6 -13
- package/dist/agents-store.js +6 -5
- package/dist/answer-json.d.ts +6 -2
- package/dist/answer-json.js +22 -4
- package/dist/api-only.d.ts +16 -4
- package/dist/api-only.js +23 -7
- package/dist/calendar/tools.js +3 -2
- package/dist/chatgpt-plan.d.ts +16 -1
- package/dist/chatgpt-plan.js +116 -12
- package/dist/claude-login.d.ts +34 -5
- package/dist/claude-login.js +31 -7
- package/dist/claude-sign-in.d.ts +35 -0
- package/dist/claude-sign-in.js +90 -0
- package/dist/cli.js +5 -3
- package/dist/composio-made.d.ts +26 -1
- package/dist/composio-made.js +39 -2
- package/dist/composio-preset.d.ts +3 -2
- package/dist/composio-preset.js +46 -14
- package/dist/computer-held-routes.js +2 -3
- package/dist/computer-setting.d.ts +4 -2
- package/dist/computer-setting.js +0 -2
- package/dist/computers-running.d.ts +8 -0
- package/dist/computers-running.js +27 -0
- package/dist/console/assets/backend-Boh7tC4i.js +166 -0
- package/dist/console/assets/index-CQ3cJRzI.js +746 -0
- package/dist/console/assets/index-DKkaS3a0.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/docker-host-addresses.d.ts +23 -3
- package/dist/docker-host-addresses.js +90 -18
- package/dist/exa-keyless.d.ts +2 -3
- package/dist/exa-keyless.js +43 -127
- package/dist/firecrawl-keyless.d.ts +41 -0
- package/dist/firecrawl-keyless.js +152 -0
- package/dist/handed-secret.d.ts +3 -1
- package/dist/handed-secret.js +4 -2
- package/dist/harness-keys.d.ts +98 -0
- package/dist/harness-keys.js +247 -0
- package/dist/harness-recipe-entry.d.ts +14 -9
- package/dist/harness-recipe-entry.js +25 -14
- package/dist/harness-table.d.ts +16 -1
- package/dist/harness-table.js +19 -7
- package/dist/harness.d.ts +4 -0
- package/dist/harness.js +12 -1
- package/dist/host-check.d.ts +6 -0
- package/dist/host-check.js +10 -0
- package/dist/import-summary.d.ts +1 -1
- package/dist/import-summary.js +1 -1
- package/dist/import.d.ts +5 -5
- package/dist/import.js +54 -67
- package/dist/key-refusal.d.ts +21 -5
- package/dist/key-refusal.js +231 -37
- package/dist/keyless-mcp.d.ts +36 -0
- package/dist/keyless-mcp.js +127 -0
- package/dist/learn/audit.d.ts +3 -3
- package/dist/learn/audit.js +3 -3
- package/dist/learn/commit.d.ts +8 -7
- package/dist/learn/commit.js +60 -20
- package/dist/learn/compile.d.ts +4 -3
- package/dist/learn/compile.js +7 -5
- package/dist/learn/folder.d.ts +16 -3
- package/dist/learn/folder.js +46 -13
- package/dist/learn/promote.d.ts +37 -13
- package/dist/learn/promote.js +112 -40
- package/dist/learn/secrets.d.ts +20 -10
- package/dist/learn/secrets.js +44 -176
- package/dist/learning-routes.d.ts +22 -17
- package/dist/learning-routes.js +40 -39
- package/dist/learning.js +2 -2
- package/dist/llms.txt +1 -1
- package/dist/manifest.d.ts +10 -0
- package/dist/manifest.js +30 -0
- package/dist/mcp-pin-first.d.ts +4 -2
- package/dist/mcp-pin-first.js +5 -2
- package/dist/mcp-secret-writes.d.ts +16 -7
- package/dist/mcp-secret-writes.js +35 -27
- package/dist/mcp-servers-store.d.ts +30 -6
- package/dist/mcp-servers-store.js +112 -28
- package/dist/mcp-sources.d.ts +10 -2
- package/dist/mcp-sources.js +9 -2
- package/dist/mcp-store.d.ts +13 -7
- package/dist/mcp-store.js +12 -9
- package/dist/model-form.d.ts +3 -2
- package/dist/model-form.js +11 -7
- package/dist/model.d.ts +20 -4
- package/dist/model.js +68 -9
- package/dist/native/history.d.ts +1 -1
- package/dist/native/history.js +2 -2
- package/dist/ollama-provider.d.ts +92 -0
- package/dist/ollama-provider.js +495 -0
- package/dist/openapi/agentrun-v2.openapi.json +2 -2
- package/dist/openapi.d.ts +3 -3
- package/dist/openapi.js +197 -55
- package/dist/page.d.ts +11 -3
- package/dist/page.js +22 -7
- package/dist/place-offers.d.ts +25 -1
- package/dist/place-offers.js +62 -8
- package/dist/print.js +1 -1
- package/dist/purged-workflow.d.ts +35 -7
- package/dist/purged-workflow.js +73 -26
- package/dist/redact/match.d.ts +74 -0
- package/dist/redact/match.js +771 -0
- package/dist/run-computer.d.ts +2 -0
- package/dist/run-computer.js +2 -0
- package/dist/run-files.d.ts +4 -0
- package/dist/run-files.js +4 -0
- package/dist/run-keys.d.ts +2 -4
- package/dist/run-keys.js +6 -7
- package/dist/run-launch.d.ts +4 -0
- package/dist/run-launch.js +4 -0
- package/dist/run-reads-over-store.d.ts +3 -2
- package/dist/run-reads-over-store.js +66 -2
- package/dist/run-secrets.js +5 -2
- package/dist/run-timeline-served.d.ts +1 -1
- package/dist/run-timeline-served.js +4 -4
- package/dist/runner/adapter-loop.d.ts +9 -3
- package/dist/runner/adapter-loop.js +34 -15
- package/dist/runner/adapter-run-spec.d.ts +3 -0
- package/dist/runner/adapter-run-spec.js +9 -4
- package/dist/runner/audit.js +8 -4
- package/dist/runner/beside.d.ts +2 -1
- package/dist/runner/beside.js +13 -5
- package/dist/runner/claim-secrets.d.ts +5 -8
- package/dist/runner/claim-secrets.js +6 -0
- package/dist/runner/cli-run-spec.d.ts +1 -1
- package/dist/runner/cli-run-spec.js +41 -7
- package/dist/runner/harness-loops.d.ts +22 -9
- package/dist/runner/harness-loops.js +21 -11
- package/dist/runner/held.d.ts +3 -0
- package/dist/runner/learning-end.d.ts +1 -1
- package/dist/runner/learning-end.js +8 -3
- package/dist/runner/loop-contract.d.ts +9 -4
- package/dist/runner/main.js +12 -6
- package/dist/runner/mcp-claim.d.ts +3 -0
- package/dist/runner/mcp-claim.js +26 -2
- package/dist/runner/mcp-run.d.ts +3 -0
- package/dist/runner/mcp-run.js +2 -1
- package/dist/runner/metrics.d.ts +10 -10
- package/dist/runner/metrics.js +19 -38
- package/dist/runner/model-route.d.ts +3 -0
- package/dist/runner/model-route.js +6 -2
- package/dist/runner/presence.d.ts +4 -3
- package/dist/runner/presence.js +4 -2
- package/dist/runner/promotion.d.ts +15 -9
- package/dist/runner/promotion.js +25 -15
- package/dist/runner/run-child-host.d.ts +2 -0
- package/dist/runner/run-child-host.js +19 -9
- package/dist/runner/run-child.js +3 -1
- package/dist/runner/runner.d.ts +4 -0
- package/dist/runner/runner.js +33 -3
- package/dist/runner/sdk-loop.js +2 -0
- package/dist/runner/workflow-loop.d.ts +2 -2
- package/dist/runner/workflow-loop.js +1 -2
- package/dist/runner/workflow-spec.d.ts +1 -1
- package/dist/runner/workflow-spec.js +6 -6
- package/dist/sdk/check.d.ts +4 -1
- package/dist/sdk/check.js +2 -1
- package/dist/sdk/runs.d.ts +2 -2
- package/dist/sdk/runs.js +8 -6
- package/dist/secret-cut.js +2 -1
- package/dist/secret-writes.d.ts +3 -2
- package/dist/secret-writes.js +1 -1
- package/dist/server.d.ts +49 -10
- package/dist/server.js +324 -118
- package/dist/standard-webhooks.d.ts +11 -0
- package/dist/standard-webhooks.js +20 -2
- package/dist/store/dialect.d.ts +3 -0
- package/dist/store/dialect.js +1 -0
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +1 -1
- package/dist/store/postgres/dialect.js +3 -0
- package/dist/store/schema.js +5 -2
- package/dist/store/sqlite/store.js +133 -47
- package/dist/store/store.d.ts +64 -15
- package/dist/store/store.js +7 -0
- package/dist/store-reads/journal.d.ts +7 -2
- package/dist/store-reads/journal.js +9 -6
- package/dist/store-reads/learning.d.ts +12 -9
- package/dist/store-reads/learning.js +18 -24
- package/dist/store-view.d.ts +0 -5
- package/dist/store-view.js +10 -9
- package/dist/template-eval.d.ts +51 -6
- package/dist/template-eval.js +177 -53
- package/dist/template-import.js +4 -2
- package/dist/templates.d.ts +5 -3
- package/dist/templates.js +19 -40
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/labels.d.ts +2 -2
- package/dist/timeline/labels.js +2 -2
- package/dist/timeline/timeline.d.ts +14 -9
- package/dist/timeline/timeline.js +15 -7
- package/dist/tool-gate.js +3 -1
- package/dist/tool-plane.d.ts +17 -9
- package/dist/tool-plane.js +38 -17
- package/dist/tools.js +2 -2
- package/dist/trigger-launch-hook.d.ts +16 -8
- package/dist/trigger-launch-hook.js +32 -23
- package/dist/trigger-targets.d.ts +18 -8
- package/dist/trigger-targets.js +42 -19
- package/dist/triggers.d.ts +85 -23
- package/dist/triggers.js +303 -96
- package/dist/validate.js +1 -1
- package/dist/web-fake.js +3 -3
- package/dist/web-fetch-direct.d.ts +4 -0
- package/dist/web-fetch-direct.js +8 -1
- package/dist/web-fetch.d.ts +12 -3
- package/dist/web-fetch.js +47 -14
- package/dist/web-search.d.ts +33 -4
- package/dist/web-search.js +100 -41
- package/dist/webhooks.js +4 -5
- package/dist/workspace/computer-deps.d.ts +2 -1
- package/dist/workspace/computer-deps.js +5 -4
- package/dist/workspace/computer-for-claim.d.ts +8 -2
- package/dist/workspace/computer-for-claim.js +28 -9
- package/dist/workspace/computer-janitor.d.ts +15 -7
- package/dist/workspace/computer-janitor.js +33 -8
- package/dist/workspace/computer-kept.d.ts +52 -4
- package/dist/workspace/computer-kept.js +118 -6
- package/dist/workspace/run-end-computers.d.ts +5 -1
- package/dist/workspace/run-end-computers.js +27 -1
- package/dist/wrapped.d.ts +57 -0
- package/dist/wrapped.js +51 -0
- package/launcher/agentrun-serve +5 -1
- package/package.json +17 -13
- package/templates/README.md +10 -9
- package/dist/console/assets/index-B_85An2t.js +0 -745
- package/dist/console/assets/index-n1YsbnYh.css +0 -1
- package/dist/import-sources.d.ts +0 -116
- package/dist/import-sources.js +0 -693
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,146 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## 0.1.0-beta.56 (2026-11-24)
|
|
6
|
+
|
|
7
|
+
- The console draws a share card as an image: one renderer for every picture card, a free run's receipt and each Wrapped card among them. A card says only the words and numbers its caller gives it: an eyebrow, a title, one big figure, up to six label and value rows, up to two bar charts (columns for hours, days or months; labelled rows for shares), and a footnote. A rows chart shows as many bars as fit, and the renderer says how many (`chartCapacity`), so a caller folds the rest into one "other" bar and drops none. A bar not measured yet draws as a dashed outline, left out of the chart's scale. It comes out as a 1200 by 675 SVG and the same image as a data URL an `<img>` shows, dark unless asked for light. Every colour is a console design token, the fonts are the console's with the system's after them, and the image loads nothing: no font, no picture, no style sheet. In the browser it can also be drawn as a PNG for a download. <!-- changes/card-image.md -->
|
|
8
|
+
- Four smaller fixes from review: <!-- changes/b46-low-bugs.md -->
|
|
9
|
+
- `deploy/fly/launch.sh` stops before it makes a secret when `fly secrets list --json` has entries without a `name` (a flyctl that spells it `Name`). Before, such a list read as no secrets, and a run on an app that had them made a new seal key and token over them.
|
|
10
|
+
- `install.sh --vps` no longer tries dpkg's lock again after apt-get's own 600 s wait for it, so a stuck dpkg stops the install instead of holding it for about 20 hours. The package lists' lock is still tried again for up to 600 s.
|
|
11
|
+
- When an earlier version's data stops a start in a folder the installer set up, the refusal says that moving the folder takes the installed agentrun with it (its Node in `node/`, `lib/` and `bin/agentrun`) and to run the installer again.
|
|
12
|
+
- `GET /v2/openapi.json` names the owner's session cookie as the console sets it: `agentrun-<port>-session` for the port the browser opened, or `__Host-agentrun-session` over https. It named `agentrun-<port>` for the server's own port, which no owner-only route takes.
|
|
13
|
+
- The Docker reason a server gives in a container now depends on which container it is. AgentRun's image says so itself (`AGENTRUN_IN_IMAGE=1`), so a Kubernetes pod, which has no `/.dockerenv`, gets the socket advice too. That advice now says the host's Docker socket is root on the host. Any other container, such as a dev container running `npx @parcha/agentrun`, gets the host's words, prefixed "This server runs in a container.", and no compose.yaml advice. <!-- changes/box-reason-image-marker.md -->
|
|
14
|
+
- A ChatGPT sign-in that ends without signing in now says why. OpenAI's tab says "Authentication successful" before the server exchanges the code, and a failure after that point (OpenAI refusing the code, an answer the server can't read, no route to OpenAI, a save that fails) used to leave the plan reading not signed in with nothing said anywhere. `GET /settings/chatgpt` now carries `problem`, the reason in words, until the next start, sign-in or sign-out. A plan OpenAI gives no use of says "This ChatGPT plan can't be used here", a workspace whose admin turned off open-source apps names the setting (External access → OSS → Use ChatGPT plan), any other refusal says a Free plan may be the reason, and a sign-in that waits out its 10 minutes says it timed out. The words are fixed: OpenAI's code goes to the log alone. Settings → API Keys shows it, under who is signed in too, and the server logs `event=chatgpt chatgpt=sign_in_failed reason=…` (OpenAI's status and error code, or `timed_out`; never a token or a code). `agentrun` started from a terminal says that line on stderr each time, where before it showed none of the sign-in's lines, and says `changed_failed` too: a sign-in saved whose change the server failed to take, which it now takes again at its next read of the sign-in instead of after a restart. A pasted address that fails the same way is refused with the same words. <!-- changes/chatgpt-sign-in-says-why.md -->
|
|
15
|
+
- A parked run whose desktop, phone or sandbox was kept at its park on a Docker engine, or on a machine that dials the server, now resumes on the runner that kept it while that runner is there (its word in the last 30 s, the same process, not refusing) and the keep's 10 minutes last, so a server with several runners gets the same machine back instead of a new one and no longer leaves the kept container running with nothing to end it. Another runner claims nothing for that run meanwhile, so an answer waits up to the keep's 10 minutes behind a runner whose loops are full, and its computer janitor leaves both the kept row and, in its sweep of each provider's computers, the kept machine to that runner, even once the run is over. A stop or a cancel never waits: any runner claims the run at once and ends it without touching the kept machine (also when the kept row can't be read at that moment), which the runner that kept it ends at the keep's time, or sooner at its janitor's next pass once the run is over. Once that runner is gone, any runner claims the run, starts a new machine, and the timeline says `The desktop wasn't kept: the runner that kept it is gone.`; a run kept on an exec vendor's machine or a phone is claimed by any runner, as before. The kept row (`computer_kept:<run id>` in settings) names the runner and its incarnation; there is no schema change. <!-- changes/claim-affinity.md -->
|
|
16
|
+
- Settings → Model keys' "Open the CLI's sign-in here" signs the claude CLI in at the login's own folder, so the login reads signed in afterwards. The sign-in ran with a temporary config dir, where `auth login` wrote the account it signed in (`.claude.json`); that folder was removed when the sign-in ended, and the login's folder stayed without it, so AgentRun kept saying "not signed in" while running the shown command by hand worked. The sign-in, the shown command and the status check now take their variables from one function (`claudeSignInEnv`), and the status check reads the login's folder as its config dir. <!-- changes/claude-sign-in-folder.md -->
|
|
17
|
+
|
|
18
|
+
- `GET /v2/settings/claude-login` says what became of a sign-in the server started, as `sign_in`: `waiting` for the browser since `started_at`, `signed_in`, `timed_out`, `failed` with the CLI's `exit_code`, or `not_started`. The console shows "Waiting for the browser…" from it, after a reload too. A sign-in no browser answers within 10 minutes is ended and says so, with the button to start it again; before, it ended silently and the browser's page then failed to reach it. A second press, turning the mode off, or stopping the server ends a sign-in that still waits; the stop waits for its CLI to exit, so no CLI keeps the browser's callback port from the next server.
|
|
19
|
+
- The view names the folder it asks about (`folder`), and this machine's own login folder for the claude CLI (`machine`). That folder follows the CLI's rule: `CLAUDE_CONFIG_DIR` when the server's environment sets it to an absolute path, else `~/.claude`. The console shows it in place of the fixed "(~/.claude)", and where the server saw no `CLAUDE_CONFIG_DIR` it says that a CLI using another folder needs AgentRun started with `CLAUDE_CONFIG_DIR` set to it.
|
|
20
|
+
- "This machine's" login on the CLI's default folder (`~/.claude`, no `CLAUDE_CONFIG_DIR`) is signed in as the person's own claude CLI runs: with no config or credentials dir set, in their home, so the sign-in writes the account in `~/.claude.json` and the tokens where their CLI keeps them, and the shown line is their own, clearing both variables (`env -u CLAUDE_CONFIG_DIR -u CLAUDE_SECURESTORAGE_CONFIG_DIR ...`) so a terminal that exports either signs in at that same login. Before, AgentRun set both dirs to `~/.claude`, which reads `~/.claude/.claude.json` (where the person's CLI keeps no account) and, on macOS, a Keychain item named from that folder rather than the person's own (the one with no suffix), so it read signed out there while the person's CLI was signed in. A run on it sets `CLAUDE_SECURESTORAGE_CONFIG_DIR` empty on macOS, which names that same item whatever the run's config dir, and `~/.claude` elsewhere. The harness's `claudeLoginEnv` takes the platform (this host's by default), and its login takes `home` for this place. A login in a `CLAUDE_CONFIG_DIR` folder keeps both dirs set to it, which is where the person's CLI with that variable keeps its login.
|
|
21
|
+
- The status check on "this machine's" login (either folder) never runs the claude CLI on the person's own account file. The CLI rewrites `.claude.json` on every start whose config version is not its own (and the first time adds `settings.json`, a backup and a lock beside it), so asking it in place rewrote the person's file on every view, every 2 seconds while a sign-in waited, and at every run's start. Each check now copies the file (opened only to read) into a folder of its own, gives the CLI that folder as its config dir and the tokens as a run reads them, and removes the folder however the check ends. The copy leaves out the fields that hold secrets (`primaryApiKey`, the API key an older CLI signed in with; `env`; every `mcpServers`), and a file that doesn't parse as a JSON object is not copied; a run's config dir has none of them either, so a login whose only key is that `primaryApiKey` reads signed out, as a run on it would be. The harness's login takes `shared` for this place, and `claudeLoginStatus` takes the platform.
|
|
22
|
+
- On macOS a login read signed out in AgentRun, and its runs failed in about 2 seconds with "signed out", while `claude auth status` in a terminal said signed in. The CLI reads its tokens there from the login keychain, which is under the person's home, and the status check ran AgentRun's own folder and a `CLAUDE_CONFIG_DIR` folder in a temporary home, and a run in the session's. The status check now runs in the person's home (the server's `HOME`) on every place and platform, keeping each place's credentials dir, which names the Keychain item ahead of the config dir; a run on the login on macOS gets that home too, its config and other dirs still the session's. `claudeLoginStatus` takes `home`, as `startClaudeLogin` does.
|
|
23
|
+
- The harness's `startClaudeLogin` returns the sign-in (`ended`, which says how it ended, and `stop()`) in place of nothing, and starts the CLI in the person's home rather than a temporary one when no home is given.
|
|
24
|
+
- The build composer on `#/agents/new` has a 14px corner, down from 16px, so it reads as one step softer than the console's 8px actions instead of a separate card. <!-- changes/console-composer-radius.md -->
|
|
25
|
+
- The server's redactor finds secret shapes and held values with one matcher (`redact/match.ts`) whose work grows with a text's length alone: each shape is read from its prefix forward, and no run is read again at each place in it. What it cuts is what it cut before, with these widenings: <!-- changes/redact-one-matcher.md -->
|
|
26
|
+
- A text that holds a held value only part of which a cut covers is now withheld whole. A credential parameter's value cut in place, with the rest of the same held value past a line break (`?token=<first half>` then `<second half>` on the next line), used to show the second half; the check for a held value now reads the text as it came, not the text after its cut. The same holds where an answer or a call's result is read in pieces and the split falls at a piece's edge: the whole answer or result is withheld. A held value's find is checked against the cuts each piece already made, so a value split inside one piece still blanks only that piece.
|
|
27
|
+
- An answer or a call's result read in pieces is checked once more as it is about to be shown, and withheld whole if that text holds a held value, however its pieces were put together (each cut, or an unread run shown as `[redacted]`, between them).
|
|
28
|
+
- A JWT is found from the first `eyJ` of its run of a part's characters at every site that looks for one, so a token glued to a word (`id_eyJ...`, `x9eyJ...`) is found too. The credential gate of the console's build (the console the server serves) can now fail a build whose bundle holds such a glued token, where it passed before. The computer's phone words cut it too.
|
|
29
|
+
- An `llm` grader in `agentrun-serve eval-template` reads each call's result whole, to 120,000 characters, instead of its first 8,000. A figure deep in a fetched page (past 8,000 characters of a 20,000-character page) used to be out of the grader's sight, so a rubric that checks a cited figure against its source failed a run that had it right. The grader's prompt still stays under 120,000 characters: past that, the longest results lose their middle first, as before. A call's result is redacted as it came, then its URLs lose their query values, and the 120,000 characters are counted as shown. A timeline read with `calls=whole` returns the same whole results, at most 100 rows a page: that is its default, and a `limit` over 100 with `calls=whole` is refused (400). <!-- changes/template-eval-whole-results.md -->
|
|
30
|
+
|
|
31
|
+
An answer that is one JSON object and nothing else (after trimming) now counts as its json block, as a last fenced `json` block does: for `output` and `result.output_error`, a grader's `target`, and an `llm` grader's own `{pass, reason}` verdict. An object inside prose, an array or two objects is still no json block.
|
|
32
|
+
|
|
33
|
+
A run's answer and a call's result as a grader reads it no longer turn compact JSON into `[redacted]` because it runs past 8,192 characters without whitespace: the redactor reads it in pieces cut at the end of a JSON string, never inside a URL's user and password (an array of numbers, at its commas), and still cuts a held value in it; a held value or a secret shape (a URL's password) that such a cut splits withholds the text whole, and a run too long to read is withheld from its start. A held value split by a line break before such a run, or just past the 120,000-character head a grader is shown, now withholds the text whole instead of showing the value's first characters. Where a call's read stops, the text after it is read as the matcher reads it (a "+" and percent-encoded whitespace count as whitespace, a whitespace run as one space), and a stop inside a cut run reads the rest of that run; padding of that kind longer than a piece withholds the text.
|
|
34
|
+
- The approvals route's description now says what an allowed call does when the runner loses its claim while the call runs. An allowed call runs once. If the claim lapses before the call's end is recorded, a read may run again on the run's next claim. A call with a side effect never runs again: the next claim answers it as interrupted, and the model is told so. A new test pins both cases with a forced lease lapse: a call with a side effect runs once on pi and on a CLI harness, and an approved web_fetch is fetched again on the next claim with its result recorded once. Each case checks that the lapse is recorded in the run's attempts. <!-- changes/approved-call-lost-claim.md -->
|
|
35
|
+
- `GET /v2/wrapped?year=YYYY` (and `agentrun wrapped --year`) reads a year of the work under this machine's home (Claude Code, Codex, pi and any other source the import package reads) as numbers: tokens, requests, days, hours of the day, weekdays and time at work, by model, harness and source, each bucketed by its request's time in the server's local zone, with the runs imported here beside it. It holds no prompt, title, path or project. Only a server on loopback with no public URL, reached by a loopback Host (localhost, 127.x, [::1]), answers it (any other, a Host name an operator allowed included, and the API-only profile, is 403), and the answer is kept for a minute. A year number is four digits from 1000, and `unread_files` counts the session files that could not be read (a number, no path), so a partial year is not shown as a whole one. <!-- changes/wrapped-route.md -->
|
|
36
|
+
|
|
37
|
+
## 0.1.0-beta.55 (2026-11-23)
|
|
38
|
+
|
|
39
|
+
**Breaking:**
|
|
40
|
+
|
|
41
|
+
- Who breaks: a server with no Parallel key. To keep URLs on the server: PUT /v2/settings/tools {"web_fetch":{"provider":"kernel"}}. That PUT replaces the server's whole tool settings map, so include any other tool settings the server holds. `web_search` and `web_fetch` now default to Firecrawl's public keyless MCP endpoint (`https://mcp.firecrawl.dev/v2/mcp`) where the server holds no Parallel key and the harness has no native search. No key and no header of ours is sent. A Parallel key, when set, still wins. <!-- changes/firecrawl-keyless-default.md -->
|
|
42
|
+
- `web_search` asks keyless Firecrawl first and keyless Exa behind it. When Firecrawl's free daily limit is spent, or it refuses keyless use, it is off for the rest of the run and Exa answers the same call. With both off, the search says it is unavailable for the rest of the run. A rate limit holds a backend for the wait it names, with no cutoff. A pick of `exa-keyless` is still Exa alone.
|
|
43
|
+
- `web_fetch` gains `auto` (the new default) and `firecrawl-keyless`. `auto` is the guarded direct fetch where the server holds a Parallel key, else keyless Firecrawl, with the guarded direct fetch behind it. Firecrawl is sent each URL it reads. Firecrawl sees the whole URL, its query string included. A private, loopback, link-local or intranet URL, or one holding a user name or password, is never sent to Firecrawl, Exa or Parallel. An agent's own `tool_settings` outrank the server's `kernel` pick; only a server's `deny` is absolute.
|
|
44
|
+
- `/v2/capabilities` gives `firecrawl-keyless` as a resolution, with a `why` that says what `web_fetch` sends to Firecrawl. The console labels it "Firecrawl keyless".
|
|
45
|
+
- Launch hook: a host's start for a handed firing (`trigger_firing`) with `revision`, `hold` or `hold_minutes` is now refused with 422 `not_allowed`, naming the field. In 0.1.0-beta.53 they were taken, so a host could start the firing's run on another revision of the agent, or hold its computer. The run starts on the trigger's target, on the agent's current revision. A host that sends them drops them from that request. <!-- changes/launch-hook-fixed-fields.md -->
|
|
46
|
+
- `serve()`'s `launchHook` option no longer takes `timeoutMs`: the host always has 10 seconds to answer a firing, as with a hook set from `AGENTRUN_LAUNCH_HOOK_URL`. In 0.1.0-beta.54 a program that started the server itself could set another bound. A program that set it drops it. <!-- changes/launch-hook-timeout-option.md -->
|
|
47
|
+
|
|
48
|
+
**Changes:**
|
|
49
|
+
|
|
50
|
+
- An API-only server (`AGENTRUN_API_ONLY=1`) saves Composio MCP servers with the server's token and deletes the MCP servers that token saved, and never writes a secret doing it. A Composio server is saved with `"api_key_env": "COMPOSIO_API_KEY"` in place of `api_key`: the server keeps the variable's name, never its value, and reads it at each use (the save's calls to Composio, each run's connection, a delete's), as the server and each runner were started with it, so a new value takes effect when they start again. `COMPOSIO_API_KEY` is on the launcher's list of secrets: it reaches the server and each runner over the launcher's pipe, neither process's environment holds it, and no run is handed it. The runner sends it only as the MCP header of a Composio server the run is granted a tool of. The token saves over and deletes only a server the token saved: a save over one the owner saved (through the Composio save, or on the full server the generic save) or its delete, sealing a credential or not, is `403` to the token on every server, it stays as it was, and nothing is sent to Composio. An owner's save over a server the token saved makes it the owner's once it lands, so the token can no longer change or delete it; an owner's save that is refused (`412`) leaves the server the token's. The ownership is compared in the statement that writes or removes the row, so an owner's save that lands while the token's is under way wins, and the token's is `412`. Any other name is `422 invalid` under `api_key_env`, an unset or blank variable `422 missing`, and a run of a server whose variable is unset is refused before it starts (`409 agent_not_runnable`), naming it. That key is only ever sent to Composio's own origin, fixed in code: a server whose saved address is anywhere else is refused by name at a save, a refresh and a run's start, and nothing is sent. A Composio save's body names no address or headers (`url` or `headers` is `422 not_allowed`, on every server). The token lists the saved servers through `GET /settings/mcp-server-names` alone; it has no list or read of a server, and no generic save. `api_key` from the token stays `403`, as does the token's `api_key_env` on the full server, where the owner's signed-in session saves a Composio server either way. <!-- changes/api-only-mcp-servers.md -->
|
|
51
|
+
- `GET /v2/computers/running` lists every run still going (queued, working, paused or waiting on its person) whose agent has a computer, newest first, each as `GET /v2/runs/{run_id}` answers it, so each carries its `computer` (`starting`, `ready` or `taken_over`, and a held run's hold). The runs list carries no computer, so this is the one read across runs and agents; it costs a run read for each such run and nothing for a run with no computer. It takes the server's token like `GET /v2/computers`, and an API-only server serves it. <!-- changes/computers-running.md -->
|
|
52
|
+
The console's Settings → Computers opens on it as Running now: each run with its status as the run lists say it, its agent, the computer's kind and provider, You drive while you have it, and its hold; a row opens the run. It is read when the page opens and every 10 seconds while the page is shown.
|
|
53
|
+
- Console: Settings has a Demo page whose switch turns on demo mode, which fills the console with a sample company's nine agents (two of them connected Claude Code and Codex setups) and a month of their runs, so a person sees approvals, questions, live runs, workflow graphs, learning and triggers before setting anything up. A strip across every page says the data is sample data and turns it off. <!-- changes/console-demo-mode.md -->
|
|
54
|
+
- The demo is this browser's alone and is answered in the page: no run starts on the server, no model is called, nothing is spent, and the server's agents, runs and settings are not read or changed. The page asks the server only for the session, its capabilities (shown with every model and tool ready, without its secrets' names or its switches) and the templates it ships with.
|
|
55
|
+
- Every action the tour reaches works on the sample data as it would on a server, in the page's memory: answer a question, allow or deny a call, grade an answer, send a follow-up or a steer, raise a spend cap (the run goes on), pause and resume a workflow run, start, stop and archive a run, attach a file, make, edit, archive or restore an agent, edit its corrections, approve, retire or restore a learned workflow, make, edit, run or delete a trigger and rotate its secret, apply a bundled template, create a suggested agent from the sample repository, and connect a Claude Code or Codex setup. A reload starts the story again. While it is on, Settings shows only the Demo page; a write to the server's own settings is refused with `demo_mode`. A coding-agent prompt the console hands out still names the real server, since the coding agent runs outside the page.
|
|
56
|
+
- Every person, company, address and figure in the demo is invented, with hosts ending in `.example`.
|
|
57
|
+
- The console shows a race at `#/races/<label>`: the runs that carry the label `race:<label>`, up to four lanes side by side, each following its run live. A lane shows the harness and model from its run's `harness` and `model` labels, its status, cost against its cap, tokens, tool calls (and how many failed) and its running time, over its newest steps. Lanes are ordered by their `lane` label, never by start time; a run with no `lane` label comes last. The page reads the race again every 15 seconds, so a lane that starts late joins it. <!-- changes/console-race-view.md -->
|
|
58
|
+
- To make a race today, start each run with `labels: {"race": "<label>", "lane": "1", "harness": "...", "model": "..."}` (POST /v2/runs or POST /v2/agents/{agent_id}/runs). A start form follows.
|
|
59
|
+
- Each lane waits about 3 seconds per timeline read instead of 25, so four lanes leave room within the browser's six connections to the server.
|
|
60
|
+
- A server saves a plan-billed harness recipe's own keys, sealed in its store for that harness alone. The owner pastes them in the console's new Settings → Harness keys page (`agentrun harness keys` prints its link), or through `PUT`/`DELETE /v2/settings/harness-keys/{harness_id}/{key}` from the owner's signed-in session; the API token reads `GET /v2/settings/harness-keys` and never writes one. Each claim of a run on the harness opens that harness's keys and no other's, lays them on the agent's start alone, never on its tools, and cuts them from the timeline, errors and the agent's output, a replaced or removed value too. With every key saved, the recipe's runs run on them ahead of the owner's own sign-in, and its scheduled and triggered runs and `message_run` trigger turns, refused until now with `HARNESS_KEYS_NOT_SAVED`, run too. A start runs only on the keys its claim opened, all or none: a run no person started (a scheduled or triggered run, a learned workflow's audit shadow or replay) whose claim opened not every one is refused at its claim, never put on the sign-in, a trigger's message to a person's run that started on the sign-in is refused in that run, keys saved since or not, and a variable of a key's name in the server's own environment is never handed to a run. `harness-check` still reads its keys from the shell's environment alone. <!-- changes/harness-keys-store.md -->
|
|
61
|
+
- New package `@parcha/agentrun-import`: the session readers serve's import used (Claude Code, Codex, pi), as a library of their own, with a registry a new source joins in one line. A reader discovers locators (`{ file, id? }`, the id for a file that holds many sessions) under a home and reads one into sessions from a cursor it owns. serve's import, its summary, eval-previous and the remote history export now read through it; `import-sources.ts` is gone from serve. What changed in the numbers: <!-- changes/import-package.md -->
|
|
62
|
+
- Claude Code: a session's id is its file's name, as Claude Code names it; serve took the first record's `sessionId`, which put a resumed session's file that opens with a copied record under the session it copied from. A record copied into a later file counts only in the first, and a file holding nothing but copies is no session. A request's key is now its message id with its request id; a store imported before holds the bare message id, which still marks a later file's copy of that request, so it is not counted twice.
|
|
63
|
+
- Claude Code: a request written as several lines (one per content block, same `message.id` and `requestId`) counts at its last line's usage, which holds the final counts; serve took each field's largest value across the lines (`most()`), which could pair one line's input with another's output.
|
|
64
|
+
- One usage reading for every source, `normalizeUsage`: `input` is the input neither read from nor written to the cache (Anthropic's `input_tokens` as written; OpenAI's and Codex's with `cached_input_tokens` taken out), `cacheWrite1h` its own bucket, and `reasoning` kept beside `output` where the source gives it. Codex counts each request's `last_token_usage`, never `total_token_usage`.
|
|
65
|
+
- `parseHome(home, { sources })` returns each session's totals, its subagents' requests counted under it and not again as sessions of their own (a subagent whose session is not under the home is a line of its own, with no turns of the person's). A JSONL file's cursor (device, inode, byte offset) lets a second pass read only the bytes appended since; a truncated or replaced file is read from its start, and a last line still being written is not consumed. A second pass returns what a fresh one would: when a file holding a copied record now comes before the file it counts in, the source is read again.
|
|
66
|
+
- `node packages/import/dist/cli.js <home> [--sources claude-code,codex,pi] --known-answer` prints one JSONL line per session, sorted by key (the sha256 of its path relative to the home): tokens, cost (null when unknown), turns and calls. Numbers only: no content, titles, directories or paths. `--help` prints the usage and exits 0. A file that cannot be read prints no answer: one stderr line per file (source, key, error code) and exit 1; `parseHome` hands such files back in `failures`, or throws `ReadFailures` without it. The CLI imports pi-ai statically for its prices (a dependency of the package, so `npx @parcha/agentrun-import` runs it), so it compiles with `bun build --compile` (pi-ai bundled) and prints the same bytes as under Node; without pi-ai the build or the run fails instead of pricing nothing.
|
|
67
|
+
- The server lists the models of this machine's Ollama itself, as `ollama/<tag>` on pi, with no key and no gateway. Start Ollama and its models are in capabilities, the Model picker and pi's free models within half a minute, with no restart. `OLLAMA_HOST` says where it listens, read as the ollama CLI reads it (plain http to loopback alone). Unset, it is 127.0.0.1:11434 only on one owner's own server on their own machine (the rule `--harness-sign-in` starts under); a shared server asks Ollama only where `OLLAMA_HOST` names it. A refused `OLLAMA_HOST` is said once in the server's log, never its value. Requests go to Ollama's own `/api/chat` with `num_ctx` the least of 65,536, the model's trained context and `OLLAMA_CONTEXT_LENGTH` when it is set. A model without the `tools` capability takes its tools as text. They cost $0 and never count toward `AGENTRUN_FREE_MODEL_REQUESTS`, and the console shows no request limit for them. With no model key held, pi's default is the first Ollama model that calls tools; any key wins. A down or stuck Ollama lists nothing and stalls nothing. <!-- changes/ollama-provider.md -->
|
|
68
|
+
- On upgrade: a server with no model key and Ollama running now starts the runs it refused before, on Ollama's first model that calls tools. On a server with an OpenRouter key, Ollama's models head pi's `free_models`, before OpenRouter's free ones. Pulling a model can change the no-key default, and a saved agent that names no model follows it: name the model to pin it.
|
|
69
|
+
- `agentrun service install --env OLLAMA_HOST=<host:port>` gives the service an Ollama off its default address. A service that reaches Ollama through `AGENT_MODEL_BASE_URL` keeps working as before; under a gateway, Ollama is never asked.
|
|
70
|
+
- A run's page names the model it ran on, a run on the host default included, read from its `tokens` usage line: "qwen3:8b · local (Ollama)" for an Ollama model.
|
|
71
|
+
- A run that names no model, on the host's Ollama default, no longer stays refused once that tag is removed from Ollama. Past the listing's half minute, a tag that no longer answers lists Ollama again once, and the run goes to the next model that calls tools, or gets the no-model words. An agent that names `ollama/<tag>` keeps it.
|
|
72
|
+
- A model without the `thinking` capability whose answer opens with `<think>` has that part as thinking up to `</think>`, so the tags stay out of the answer.
|
|
73
|
+
- `CapModel.local` marks a model on the host's own machine: free, and never counted toward the server's free-model limit (`limitedFree`). An agent's own `max_requests` still counts its requests, beside the run's other free ones, so a run on Ollama stops there.
|
|
74
|
+
- Capabilities show pi as available only when a run started now has a model: a key, the gateway's model, the ChatGPT plan, the faux model, or an Ollama model that calls tools. An Ollama whose models take no tools keeps them in the picker, but pi reads not available. With no model, pi's words name Ollama first where the server asks one: "No model yet: start Ollama and pull a model with tools, or add a model key in Settings → Model keys". A shared server with no `OLLAMA_HOST` asks no Ollama, so its words name a key alone. A key saved or an Ollama started later turns it available with no restart.
|
|
75
|
+
- Two findings from the beta.53 QA pass. <!-- changes/b53-autoqa-p3s.md -->
|
|
76
|
+
- `GET /capabilities` no longer serves pi as `available: true` on a server with no model key and no ChatGPT sign-in. A harness none of whose models runs here until a key or the sign-in is added is `available: false`, as codex already is. One whose default model lacks a key while another of its models runs stays available, and its `needs` says what the default lacks. The console's agent page says the missing key once, and still shows a model blocker in other words. The published-server check in `docs/releasing.md` now expects pi to say it needs a model key.
|
|
77
|
+
- `features.sdk_runs.max_open_s` says what it bounds: a run that keeps sending batches. An SDK run that gets no batch closes an hour after its start.
|
|
78
|
+
- `GET /v2/capabilities` says whether `/v2/settings/claude-login` answers here, as `features.claude_login`: false where those routes are 404 (`AGENTRUN_CLAUDE_CODE_LOGIN=off`, a server listening past loopback, as in Docker, without `AGENTRUN_CLAUDE_CODE_LOGIN=on`, or an API-only server). The console's Settings → API Keys reads it first and asks for Claude Code's login only where it answers, so a Docker server's Keys page no longer logs a 404 in the browser at every visit. Against a server older than this field, or when capabilities can't be read, the console asks as before and shows nothing on a 404. Switched off while it waits for a sign-in it started, the row goes and stops asking. <!-- changes/claude-login-capability.md -->
|
|
79
|
+
- Console: the Settings tab row and the strips across the top of every page (demo mode, a lost or resumed connection) are 48px tall, like every page's top bar, so their bottom edge meets the edge under the logo row in the navigation. They were 44 to 45px, and the two lines stepped where they met. <!-- changes/console-top-bars-48px.md -->
|
|
80
|
+
- A hidden file or folder inside a package's `skills/`, `rules/` or `evals/` (a `.env`, a `.DS_Store`) is no part of the package: `agentrun deploy` does not send it, and the server's package reader leaves it out of an upload, a GitHub import and a folder alike. That holds directly under each tree too: `rules/.private.md` is not copied beside each skill, and `skills/.DS_Store` or `evals/.cache/` no longer gets the package refused. A hidden folder at the package's top (a repository's `.github/`) is left out as a hidden file there already was, where it was refused as a folder other than `skills/`, `rules/` and `evals/`. <!-- changes/deploy-export-followups.md -->
|
|
81
|
+
- Deleting an agent removes its uploaded package only when the upload stored under that name is still the one the agent was applied from (its sha256): a newer upload of the same name, waiting for its apply, stays.
|
|
82
|
+
- `agentrun deploy` prints a target's 501 as every command prints one, the unsupported error with its reason, and exits 5.
|
|
83
|
+
- `agentrun deploy AGENT_ID` from an install that refuses its trigger routes, or is not reached once the deploy is applied, exits 0 as deployed: it says the agent's schedules there could not be read (with `--pause-source`, read or paused), with the install's status and message, and never says a schedule it did not turn off is paused. It used to stop there, exit 1 with no answer on stdout, the agent already deployed. An install whose answer stops after its headers (its connection closed) is one not reached.
|
|
84
|
+
- `agentrun deploy AGENT_ID` keeps each lock in a file of its own in the CLI's config (`deploy.<hash>.json`, 0600), and each address it deployed to as an empty file under `deploy-targets/`, so two CLIs deploying at once never write back what the other changed, and none waits on another's save.
|
|
85
|
+
- A lock 0.1.0-beta.53 wrote for `agentrun deploy AGENT_ID` is not read: the next deploy finds the agent it made on the target by its package and parameters and stops, exit 2, naming it, and `--agent ID` deploys onto it. A folder's lock is read as before; a folder deployed to an address other than cloud needs `--to` once. With 0.1.0-beta.53, `agentrun deploy AGENT_ID --to URL` with no lock made a second agent there, whose schedules fire beside the first's.
|
|
86
|
+
- `agentrun deploy` with no lock for its target, where the target already has an agent this package made with these parameters, stops (exit 2, nothing applied) and names it: `--agent ID` deploys onto that agent and the lock names it after, `--agent new` makes another on purpose. With a lock, `--agent` may name only the lock's agent. The apply's plan (`dry_run`) lists those agents as `twins`, by the same rule as the apply's `duplicate` warning; empty for a revise.
|
|
87
|
+
- `agentrun deploy` to an install that never makes one of the package's triggers (a webhook on an API-only install) prints it as skipped and no longer counts it as made later: the lock names the package, the next deploy of the same files is up to date, and "Not made on ... yet" names only a trigger the install makes once it is set up. Each skipped trigger in the apply's plan has a `code` beside its `reason`: `not_set_up_here` or `not_an_option`, as the apply's warning for it.
|
|
88
|
+
- An agent's export names the keys its apply kept on the revision; the export report no longer has a `secrets` entry, and `report.blocked[].kind` and `report.remade[].kind` no longer list it.
|
|
89
|
+
- The skill's command reference names each route a hand-written command calls (`agentrun export`, `agentrun deploy`, `deploy rollback`, `deploy delete`).
|
|
90
|
+
- A correction to 0.1.0-beta.53's note, which said an export "no longer copies a credential in the clear into a package": it no longer copies a field named like a credential, or an address with a user part or a credential-named query parameter. A credential under any other name is copied as it is.
|
|
91
|
+
- A server in a container (compose.yaml) whose read of the Docker host's addresses failed at the start (a busy host's Docker ran out of time) now reads them again in the background, after 15 s, 30 s, 60 s and 120 s, then every 4 minutes, until a read answers or the server stops. Once one does, Docker is offered with no restart: capabilities and a run's start see it, and the log says `docker_host_addresses` and `boxes` again. The start's banner still says what the start found. <!-- changes/docker-host-read-retry.md -->
|
|
92
|
+
- The read's helper containers (`agentrun-host-read-*`) no longer pile up: a read that ran out of time or failed removes its container by name, and one Docker didn't confirm gone is removed again at the next read. A failed read's words name its container only when it is still there, with the `docker rm -f` that removes it.
|
|
93
|
+
- `agentrun-serve eval-template --server URL` stops before any run, and exits 2, when that server was started with `AGENTRUN_RUN_KEYS=1` and lacks a tool key the package declares: an eval's runs carry no `keys`, so the server would refuse each one. The message names the key and says to run the eval without `--server`, or on a server that holds the key. In 0.1.0-beta.54 every case ran into that 409 and failed, and the eval exited 1. <!-- changes/eval-server-run-keys.md -->
|
|
94
|
+
- A key a run brings in `keys` or `model_key` is now visible ASCII alone (`!` to `~`, no space), as a header carries it. In 0.1.0-beta.53 a key with a character past ASCII was taken, and one of 4 characters outside the 16-bit range (8 UTF-16 units) passed the 8-character floor though the cut, which counts characters, never cut it from what the run writes. Such a key is now 422 `invalid` at `keys.<NAME>` or `model_key`, the value never echoed. <!-- changes/handed-key-visible-ascii.md -->
|
|
95
|
+
- An update apply that skips a template's trigger (with `AGENTRUN_RUN_KEYS=1` and an agent that owes a key, or on an API-only server, and no launch hook) leaves the agent's trigger of that name as it was. When that trigger is on, the skip's warning now says it is kept and still fires, names it, and says how to turn it off: `PATCH /v2/triggers/{id}` with `{"enabled": false}`, or, on an API-only server, the agent's archive. In 0.1.0-beta.54 the warning said only that the trigger was not made. <!-- changes/kept-trigger-skip-warning.md -->
|
|
96
|
+
- Launch hook: a run the host starts for a handed firing (`trigger_firing`) now starts on the trigger's target, as a run the server starts for it does. In 0.1.0-beta.53 it ran at the host's `max_cost_usd` or the agent's default, so a schedule capped at $0.50 on an agent with a $5 default ran at $5, and it dropped the target's effort and the trigger's last result. <!-- changes/launch-hook-target-policy.md -->
|
|
97
|
+
|
|
98
|
+
- Its cap is the lower of the target's `max_cost_usd` and the host's: the host may lower it, never raise it. A target with no cap takes the agent's default in its place, so a host's $500 on an agent with a $2 default runs at $2, as the trigger's own run would.
|
|
99
|
+
- Its effort is the target's when the target sets one, else the host's.
|
|
100
|
+
- Its input is followed by the trigger's last result when its source hands one on (a schedule does), as on a run the server starts.
|
|
101
|
+
- The rest of the host's body is taken as on any start: its `model_key`, `keys` and `mcp_auth` are sealed for the run.
|
|
102
|
+
|
|
103
|
+
A hook that does not take a firing is now a failed try under the trigger's retry policy, no longer `skipped`. The firing's error is `hook_failed`, and its reason names the status, `timeout` or the connection's error code, never the hook's URL, which can carry a query token. No answer, no connection, a 5xx or a 429 keeps the firing `due` with `retry_at`, to be handed again on the trigger's backoff; any other answer, a redirect included, fails it, and the failed firing sends `trigger.failed`.
|
|
104
|
+
|
|
105
|
+
A firing now counts once toward its trigger's failure streak, when it fails, however many tries it took. In 0.1.0-beta.53 each try counted, so one firing tried again on a busy server could turn its trigger off by itself.
|
|
106
|
+
|
|
107
|
+
A host start that lands while its firing waits on a retry makes the firing `started` with that run, so the overlap check, `max_active_runs` and `last_run_id` count it, while its trigger has room for it: a firing whose place another firing's run has taken since is refused with 422 `not_due`. One that lands just as the server records the hook's answer leaves the firing `started` with its run: the answer no longer sets it back to `sent`, fails it or counts a failure.
|
|
108
|
+
|
|
109
|
+
A firing the host took with no run yet (`sent`, with `start_by`) now holds its trigger's room, as a run in progress would, until its run starts or its `start_by` passes. With `max_active_runs`, a later firing waits for that room; without it, the overlap check skips a later firing, naming the held one. In 0.1.0-beta.53 a later firing was handed into that window, and the host's start of the first then made one run more than the trigger allows.
|
|
110
|
+
- A run on your Claude or ChatGPT plan counts each plan request once in its cost's `plan` even when its booking was written twice, its spend cap no longer reads a plan request in flight as not priced, and a workflow decision on such a run is charged what its provider charged instead of being counted as the plan's at $0. A decision on a run on a free model whose charge was lost now reads as unknown, never as a known $0. <!-- changes/plan-cost-once.md -->
|
|
111
|
+
|
|
112
|
+
This applies to new runs only. Decisions already booked as the plan's at $0 stay $0, and so does a decision marked the plan's before the deploy that a resumed run cuts after it: nothing is backfilled.
|
|
113
|
+
|
|
114
|
+
Some decisions with no cap on a plan run now read as unknown (`cost.usd` null) where they read $0 before. Unknown is the correct reading: their provider charged them and the charge was not said.
|
|
115
|
+
- A run read whose costs were counted without the purge gate's answer now says so with `cost.degraded: true` (absent on every other read), and a learning folder that fails to close after the gate's ask is logged wherever the gate is asked, never dropped. <!-- changes/purge-cost-degraded.md -->
|
|
116
|
+
- A run's purge takes off main only what that run put there: a learned workflow it revised goes back to the version before it, the newest no purged run wrote, so another run's champion keeps serving, and when the purged run's revision was the champion, the earlier champion serves again, even when that revision was held since; one it wrote new still leaves main. A check that ends after the purge records a hold for the purged revision, never a promote, and no compile revises that hold. A workflow still on main whose workflow.json a purged run wrote reads `410 purged` at `GET /agents/{agent_id}/learning/files/{file}`, and its approval or restore is refused the same way. A purge that can't read the learning folder's history answers 503 and takes nothing off main. <!-- changes/purge-keeps-champion.md -->
|
|
117
|
+
- With `AGENTRUN_RUN_KEYS=1`, a `message_run` trigger whose run owes a tool key the server does not hold now fails each firing with 409 `agent_not_runnable` naming the key, and sends nothing. This catches a trigger made before the setting was on, or while the server held the key. In 0.1.0-beta.54 its firing opened a turn with no key, and that turn failed at the tool. <!-- changes/run-keys-message-firing.md -->
|
|
118
|
+
- A message refused for a key its run owes answers the same 409 as a start refused for it, `details` included (`{"unbound": [], "missing": {}}`). In 0.1.0-beta.54 the message's 409 had no `details`.
|
|
119
|
+
- `npx @parcha/agentrun` no longer opens with `npm warn deprecated @secretlint/secretlint-rule-preset-recommend`: serve's import key scan takes secretlint 14.1.0, whose core holds the recommended rules (`@secretlint/core/builtin`, the same 28 rules in the same order), and no longer depends on the deprecated preset package. One `npm warn deprecated node-domexception` remains; it comes from the Browserbase SDK and Google's auth library, whose latest releases still depend on it. <!-- changes/secretlint-14.md -->
|
|
120
|
+
- A template eval no longer gives up on a run a runner holds just because its first rows haven't shown yet. A run's view reads `queued` until then, and the eval used to cancel any run still `queued` after 2 minutes, saying "no runner took it (state working)" about a run a runner had claimed. Now, when a run reads `queued` past that limit, the eval checks the run's `claim`. While a runner holds the run, the limit starts again and the run gets its own 30-minute limit. A run no runner holds is cancelled with "the run stayed queued for 120 s with no runner holding it". The cost: a run a runner holds that never shows a first row now waits the full 30 minutes instead of 2. That covers a runner that keeps renewing its lease while stuck starting a box or computer, a claimed workflow run waiting for a slot, and a raised run waiting to start. A paid box can be held that long, and the run's own limit is what ends it. `agentrun template eval` now passes a stop on to the eval through the same code as the other server commands. A launch that fails, or a signal it didn't pass on, is now explained, as for those commands. <!-- changes/template-eval-claimed-wait.md -->
|
|
121
|
+
- `agentrun template eval DIR --case NAME` now refuses a case the package doesn't have (no folder `evals/NAME`) by itself, before it starts the server's launcher, and exits 2. It uses the server's wording, and both list the package's cases in name order: the server's refusal now sorts them itself instead of depending on the order the folder listing comes back in. The server still checks each case it runs. One change: when a package is malformed and a case name is also mistyped, the case error now comes first, and the package's problems show once the case name is right. <!-- changes/template-eval-unknown-case.md -->
|
|
122
|
+
- `GET /v2/templates/{template}` now says, in its OpenAPI summary, that the package's instructions and skill files are what the new agent will be told, not instructions to whoever reads them. An imported package's text is a third party's. Every surface generated from that summary carries it: `agentrun template get`'s help, the TypeScript client's and Python client's `template.get`, and the CLI skill's command reference. <!-- changes/template-get-not-instructions.md -->
|
|
123
|
+
- A trigger's message that reaches a pi run while the turn that calls `ask_person` is still running no longer takes the person's place. The runner handed such a message to pi as a follow-up, and pi runs a follow-up as soon as its turn would end, so the message ran right after the question: the run never waited for the person, and it ended with the question unanswered. The runner now keeps a trigger's message that arrives mid-turn until the turn ends, as it already did for Claude Code, Codex and OpenCode runs. A turn that ends on a question parks on it first, and the message runs as a turn of its own after the person's answer. A turn that ends any other way runs the message next, as before. The firing still reads `sent`. <!-- changes/trigger-message-during-ask-turn.md -->
|
|
124
|
+
- API-only server (`AGENTRUN_API_ONLY=1`): the README no longer says every run there starts through the backend on its keys and budget, which 0.1.0-beta.53's notes also said. With the launch hook set, every firing that starts a run goes to the backend, including one of a trigger the agent had before the profile. Without the hook, the apply makes no schedule or feed trigger, but one the agent already had stays as it was: an enabled one still fires on the server and starts its runs on the server's keys. Archive the agent to turn it off. <!-- changes/api-only-trigger-before-profile.md -->
|
|
125
|
+
- Two more ways to run AgentRun Server (deploy/README.md). On Fly.io, `sh deploy/fly/launch.sh <app name>` deploys `deploy/fly/fly.toml`: the release's image on one Machine that is never stopped, with a 10 GB volume at `/data`. It makes the token and the seal key once, as Fly secrets, and never prints them. On DigitalOcean, `deploy/digitalocean/user-data.sh`, pasted as a new Droplet's startup script, runs the `--vps` install on its first boot. <!-- changes/fly-droplet.md -->
|
|
126
|
+
- An API-only server (`AGENTRUN_API_ONLY=1`) now purges a run of an agent made here (a deployed agent's, say) with its token, as it already did a run of an agent another system owns. Before, `DELETE /v2/runs/{id}` of such a run was the profile's `404`, though the same token could archive and delete the whole agent, which purges every run of it. The purge is the full server's: `204`, and `204` again once purged; `409 run_not_final` while it or a run made from it is live; every other route of it `410 purged`; its cost kept in every total; the agent and its other runs kept. <!-- changes/api-only-run-delete-made-here.md -->
|
|
127
|
+
- A server in a container says why it has no Docker box in words that fit a container. With no Docker socket (the one-container `docker run`, or deploy/'s compose file), the docker box's reason was "start Docker, or add this user to the docker group", which no one in that container can act on: it now says the container has no Docker socket, that its agents get file tools and `web_fetch` but no shell, and that `docker compose up -d` from `compose.yaml` at the repository's root gives it the socket. With a socket the container may not use, it says to set `DOCKER_GID` in `.env` to the socket's group, as `compose.yaml` says, in place of `usermod`, which would not outlast the container. The reason is the one capabilities (`places.boxes`, `default_reason`), the agent editor and the start's `Boxes:` line show. The socket checked is the one docker names (DOCKER_HOST or its current context), and a refused socket says DOCKER_GID wherever it is. A socket that is there and whose daemon does not answer still says to start Docker, and a server on a host reads as before. <!-- changes/box-reason-in-container.md -->
|
|
128
|
+
- `npx @parcha/agentrun` keeps its data in `~/.agentrun` wherever it is run, so a new folder is not a new install: an earlier version's `~/.agentrun` stops the start ("holds an earlier version's data", or a store an earlier release set up). Started that way, the refusal now gives the two ways on as commands to paste. First, `mv` of the old folder aside whole, after which the same command starts fresh where it was, every later command finds it with no `--data`, and the earlier version still opens the old data with `--data`. Then the same command on a new, empty folder (`npx @parcha/agentrun@<version> --data <folder>`, a folder that is not there yet), which each later command then takes too. Nothing is deleted either way, and an earlier installer's `bin/agentrun` in that folder is said to move with it. The README's first step says the data is in `~/.agentrun`, not the folder you run it in. <!-- changes/earlier-data-way-on.md -->
|
|
129
|
+
|
|
130
|
+
Two servers on one machine no longer sign each other out. On plain http the console's session cookie was named for the server's own socket port, which is 7340 for a server in a container whose 7340 is published at 7350, the same as `npx @parcha/agentrun` on 7340 beside it, and cookies are kept per host, not per port. It is now named for the port the browser opened (the Host header's: `agentrun-7350-session`), and a Host with no port keeps the socket's. A server opened at a port other than its socket's (a published container port, an `ssh -L` tunnel) asks for one sign-in again after the upgrade. https keeps `__Host-agentrun-session`. Signing out through one port ends the same browser's sessions with that server at its other ports too (a browser sends a host's cookies to every port), and clears each; another server's cookie on the same host is left as it is.
|
|
131
|
+
- The image stops before it starts the server when its `--data` directory is there but its user can't write it, as with a volume mounted as root's. It prints one line naming the directory, its owner's uid and mode, and the uid it runs as, then exits 1. Before, the server failed later, in the store's setup. A directory not made yet is still the server's to make. <!-- changes/image-data-preflight.md -->
|
|
132
|
+
- Launch hook: a firing the server is still handing over, or whose run the host is starting, now holds its trigger's room as a run in progress. Before, with `max_active_runs: 1`, a late host start for a firing waiting on its retry could land while another firing's hook was still open; both runs then started. That late start is now refused with 422 `not_due`, naming the cap, and two host starts at once for one place start one run and refuse the other. Without `max_active_runs`, the overlap check skips for the firing being handed, naming it. <!-- changes/launch-hook-handing-room.md -->
|
|
133
|
+
|
|
134
|
+
A host start for a firing its host took with no run now holds the room until its run is written, however long the write takes. When `start_by` is less than a minute away, the server also moves it to a minute after the start began, before it writes the run, so a later firing can no longer be handed while that run is being written. A start that fails without writing its run moves `start_by` back.
|
|
135
|
+
|
|
136
|
+
Two host starts of the same firing at once now start one run: the second answers the first's run with 202 and `idempotent-replayed: true`, and a firing whose host's start is still writing its run is not handed to the hook again. The room check reads the trigger as it is at the check, so a start whose earlier read predates another firing's run no longer takes that run's place.
|
|
137
|
+
|
|
138
|
+
Clearing `max_active_runs` (PATCH with null) no longer leaves a firing that was waiting on the cap held behind one active run: it is checked again at the next wait poll, as a trigger with no cap checks it.
|
|
139
|
+
- A template eval's llm grader reads the files the run left whole, ahead of its calls. Before, a grader saw a file only through the calls that made it, each cut where the timeline cuts it (a string of a call's arguments at 2,000 characters, its output at 8,000, each ending "..."), so a run whose file was whole could read as a run that wrote less, and fail. The grader input now has a `<files>` block ahead of `<tool-calls>`: each text file of the run's work folder (text/*, JSON and NDJSON, or an untyped extension such as .srt or .yaml whose bytes are UTF-8) in its own `<file path bytes>` block, and every other file (media, a binary) by its path and size. A call that names a file shown says where it is. The files are read only for a graded run of a case with an llm grader, smallest first, up to 120,000 UTF-8 bytes in all; a file that can't be read or would pass that budget is listed by size, and the files after it are still read. Each read is bounded (10 s, and 30 s for all of a run's files), so a server that stalls mid-file costs that file's text, never the eval. Under the prompt's 120,000-character cap the calls' results are cut first, each cut marked in place; the files take at most three quarters of the room the rubric, task and answer leave (the calls keep a quarter, or all they need when that is less), and past that the largest file's middle is cut and marked first. A run with no files gets the grader input it got before. The cost: one read of each text file per graded run, and longer grader prompts (more input tokens) for runs that leave text files. <!-- changes/template-eval-grader-final-files.md -->
|
|
140
|
+
|
|
141
|
+
The eval reads each file through `GET /v2/runs/{run_id}/files/{path}?cut=run`, new here: the file's UTF-8 text under the run's own cut, on the server that holds its secrets. Every value the run's timeline is cut of (the server's keys, the keys a person saved, its secret stores' values, the sign-in refs the run was handed) and every secret shape is replaced by `[redacted]` in place; a text where a value still shows in a form not cut in place is `[redacted]` whole. Compact JSON with no whitespace is never blanked for its length. The cut holds this server's values, not every secret: a value handed to the run alone at its launch (a key of its own, an MCP server's headers) is not in it, and a secret of no known shape passes as written. The answer is `text/plain; charset=utf-8` with `x-agentrun-cut: run`; the eval keeps a text only from an answer with that mark, so a server that doesn't know the cut (and would answer the raw bytes) gives the grader no file text. A run whose cut can't be read (a handed sign-in this server can't open) is `403 forbidden`; a file whose type isn't text, or whose bytes aren't UTF-8 or hold a NUL, is `415 unsupported_media_type`; one over 262,144 bytes (256 KiB) is `413 payload_too_large`. Without `cut`, the route answers the file's bytes as written, as before. The TypeScript and Python clients and the CLI take the new `cut` parameter (`agentrun runs read-file RUN_ID PATH --cut run`, `client.runs.read_file(run_id, path, cut="run")`).
|
|
142
|
+
|
|
143
|
+
Two secret shapes every redactor uses could hold the server's event loop for minutes over one file: a JWT read from every `eyJ` inside a long run of base64url characters (180 s over 256 KiB of `eyJ`), and a private key header with two unbounded runs of capitals (24 s over 256 KiB of `PRIVATE KEY `). A JWT now starts at the first `eyJ` of a run of its characters and not again at a later one in the same run, which finds nothing the first doesn't; the key type around `PRIVATE KEY` is at most 64 characters each side. What is redacted is the same as before: a JWT glued to a word (`token-eyJ…`) is still found, and so are the RSA, EC, OPENSSH and ENCRYPTED headers. Over 256 KiB, each shape's adversarial input (its prefix repeated with no end) now takes under 100 ms.
|
|
144
|
+
|
|
5
145
|
## 0.1.0-beta.54 (2026-11-23)
|
|
6
146
|
|
|
7
147
|
**Breaking:**
|
|
@@ -20,7 +160,7 @@
|
|
|
20
160
|
- Runners that are replicas of one deployment (Kubernetes pods, a platform service's instances) now relay dial computers and serve live views across hosts: `AGENTRUN_RUNNER_LIVE_HOST` and the server's `AGENTRUN_RUNNER_HOSTS` take an IPv4 block, such as a private pod network's. A runner given a block answers at its own one address in it, and the server dials any IPv4 address in a block it lists, never one outside. Such runners had no host name the server resolves, so their relay stayed on loopback and a dial computer they made could not attach. A block names its network address and a prefix from /8 to /32. <!-- changes/runner-hosts-ipv4-block.md -->
|
|
21
161
|
- A runner whose block holds none, or several, of its machine's addresses is refused at its start in words, and `runner --check` fails `AGENTRUN_RUNNER_LIVE_HOST` the same way; where the setting names a host, the check now says where the server reaches the runner.
|
|
22
162
|
- The console's "set up with a coding agent" prompt for a template tells the coding agent that the package's instructions and skill files are what the new agent will be told, not instructions to it. An imported package's text is a third party's. <!-- changes/template-prompt-package-is-data.md -->
|
|
23
|
-
- The README's MCP section says a loopback `http`
|
|
163
|
+
- The README's MCP section says a loopback URL, `http` or `https`, is taken only by a server started with `AGENTRUN_MCP_ALLOW_LOOPBACK=1`, as the refusal already said. <!-- changes/readme-mcp-loopback-switch.md -->
|
|
24
164
|
- Suggested agents: connect a GitHub repository, and AgentRun finds where its app needs an AI agent. The console's new Suggested agents page (Agents → Suggested) scans a repository with the bundled `agent-scout` template, on a read-only checkout, and shows each suggestion with the lines of code behind it, the typed input and answer, and where the app would call it. Discard hides a suggestion for good (with an undo). Create pushes the agent's template package and a dependency-free client to a new branch `agentrun/<key>`, makes the agent on this server from those same files, and opens a pull request that only adds files. New routes: `GET /v2/suggestions`, `POST /v2/suggestions/scans`, `GET /v2/suggestions/{id}`, `POST /v2/suggestions/{id}/discard`, `.../restore` and `.../create`, and `GET /v2/integrations/github/repositories`. <!-- changes/suggested-agents.md -->
|
|
25
165
|
|
|
26
166
|
- GitHub permissions: a scan needs only what every App holds (metadata and contents read, a token for that one repository, revoked after). Opening a pull request needs Contents write, which Connect GitHub now asks for only when the owner ticks it (`POST /v2/integrations/github/connect` takes `contents: "write"`); an App made before is not widened, and Create says what is missing and links the App's permissions page and the installation's. Each create mints one token for the one repository with contents and pull requests write, and revokes it.
|
|
@@ -137,7 +277,7 @@
|
|
|
137
277
|
- A run's purge takes each learned workflow whose `workflow.json` it changed last off main, its README.md too, so both file reads are `404`, the learning view no longer lists it, and the next compile turn is never asked to revise its text. Before, its README.md and description were still served and a held revision of it went into the next run's compile prompt; a run purged before this takes its workflows off when its `DELETE` is sent again. <!-- changes/purge-takes-workflows-off-main.md -->
|
|
138
278
|
- Console: a finished run's recording on the Screen tab has the run's steps beside it. Each step the run took while the file was recorded is listed at its time on the video, in the Timeline tab's words; clicking one moves the video there, and the step the video is at is marked as it plays. A step's time is its timeline time since the row that says the recording began, so a run whose timeline has no such row plays its recording alone, as before. The steps sit beside the player on a wide window and under it on a narrow one. <!-- changes/console-recording-steps.md -->
|
|
139
279
|
- Launch hook: with `AGENTRUN_LAUNCH_HOOK_URL` and `AGENTRUN_LAUNCH_HOOK_SECRET` set, each trigger firing that would start a run is POSTed to the host instead, signed as Standard Webhooks (`{firing_id, trigger_id, agent_id, revision_id, input, fired_at}`), and the host starts the run through the API with its own keys and cap. The host passes the new `trigger_firing` (`{trigger_id, firing_id}`) on `POST /agents/{agent_id}/runs`, so the run is the firing's: it carries the trigger, its title and input origin, and the firing reads `started` with it, counted by the overlap check and `max_active_runs`. The host may start the run before or after it answers: a 2xx without the run records the firing `sent` with `start_by`, 10 minutes after that answer, and it takes that one start until then. The 10 minutes run from the answer, not from `fired_at`, so a catch-up, a firing that waited on `max_active_runs` or one handed again after a restart gets the same time. Any other answer, or none in 10 s, records it `skipped` with why. The hook URL is https, or http to 127.0.0.0/8, `::1` or `localhost` alone; any other http URL stops the start. On an API-only server (`AGENTRUN_API_ONLY=1`), the hook is what lets a template's apply make its schedule and feed triggers. Unset, firings start their runs as before, and `trigger_firing` is refused. <!-- changes/trigger-launch-hook.md -->
|
|
140
|
-
- `GET /v2/settings/mcp-server-names` answers the names of the MCP servers saved here, `{names}`, and nothing else of them: no URL, auth type, header, tool or Composio record. It takes the server's token and is served on an API-only server too (`AGENTRUN_API_ONLY=1`)
|
|
280
|
+
- `GET /v2/settings/mcp-server-names` answers the names of the MCP servers saved here, `{names}`, and nothing else of them: no URL, auth type, header, tool or Composio record. It takes the server's token and is served on an API-only server too (`AGENTRUN_API_ONLY=1`). <!-- changes/mcp-server-names.md -->
|
|
141
281
|
- A Composio user id may now hold a `:` (a team's, say), in a save's `user_id` and a run's `mcp_auth`. A space, a slash and a `~` are still refused. <!-- changes/composio-team-user.md -->
|
|
142
282
|
- A key a run brings in `keys` or `model_key` is text of 8 or more characters with no space or control character: a shorter one could not be cut from what the run writes, so it is now 422 `invalid` at `keys.<NAME>` or `model_key`, the value never echoed. With `AGENTRUN_RUN_KEYS=1`, no trigger is made whose firings would run an agent without the tool keys each of its runs must bring: a template's apply skips such triggers with a warning at `triggers.<N>` (`not_set_up_here`, the apply still 201) unless the launch hook is set, and `POST /v2/triggers`, or a `PATCH` that moves a trigger, is 409 `agent_not_runnable` naming the keys for one that would start such runs with no hook, or message one of them. <!-- changes/run-keys-hardening.md -->
|
|
143
283
|
- A run's view, and so every runs list, is several times faster for runs with long timelines: redacting a timeline's rows no longer derives every held value's forms again for each row (its path spellings, base64 at three alignments, percent forms, hex and folded patterns). What is derived of a set of values is kept per array and derived again when the array's values change, so a value a caller adds is still cut, and what is cut is unchanged. On a store of code-review runs of about 2,500 journal writes each, one run's view went from about 3.2 s to 0.7 s, and a list of ten runs from about 22 s to 5 s. <!-- changes/redact-derived-once.md -->
|