Repository navigation
AgentRun v0.1.0-beta.73
Pre-release
Pre-release
·
61 commits
to main
since this release
- The CLI's refusals for a missing or refused key, and for a server it can't reach, now say what to do about that server. Exit codes are unchanged: 4 for the key, 3 for a server not reached.
- No key for a server that isn't this machine's: it says to sign in with
agentrun login --to <that server>or setAGENTRUN_API_KEY, not only to set the variable. - A 401 for a key the caller gave, from
AGENTRUN_API_KEYor the configloginwrote: after the server's answer, which is printed first and unchanged, one more line says the server at that address refused the key, that it is not valid there or was revoked or has expired, and to make a new one (set it inAGENTRUN_API_KEY, or sign in again withagentrun login --to <that server>). The key is never printed. A script that parses only stderr's first line still reads the server's JSON. - A server that isn't this machine's, not reached: it names the address and the setting that gave it (
--base-url,AGENTRUN_BASE_URLor the config'sbase_url), and what to change. It no longer tells the caller to start a server here withnpx @parcha/agentrun.
- No key for a server that isn't this machine's: it says to sign in with
agentrun deployand the server's package check now agree on what a deploy is told and what it leaves behind.- A package whose agent.md has no
versionis told so ("has no version: addversion: 1.2.3"), apart from a version that is there and not SemVer 2. A missingnameordescriptiongets its own words too. - The deploy refuses a package over the limits every target's check holds it to, 256 KiB a file and 1 MiB together outside evals/ (the answer's schema counts wherever it is), in the check's words and before anything is sent. It used to check only the import's 8 MiB, so a 2 MB package was uploaded only to be refused. The numbers come from the server's own package module; the rest of the package is still checked by the target alone.
- A deploy whose plan the target refuses deletes the upload it made there, so no template of it is left behind. An upload that replaced an earlier one of the same name is kept. The delete names the upload's sha256, so another upload of the name stored in the meantime is kept too. A delete the target refuses is said after the refusal, and the exit code is the refusal's.
DELETE /v2/templates/{template}takes an optionalsha: only the package of that sha256 is removed, and another stored under the id since is 412precondition_failedand stays. Without it the delete is as before. The TypeScript client'stemplate.delete(id, { sha }, options)sends it, andtemplate.delete(id, options)written before still passes its options.
- A package whose agent.md has no
- A request rides out a server restarting. A server restarting (or a gateway in front of it) answers 503 with
details.reasonserver_unavailableand a Retry-After until it is back, which can take a minute or more; the SDK gave up aftermaxRetries(about 20 s), itsruns.followafter five reconnects, and the CLI and the console at once. Now a GET, or a request with an Idempotency-Key, is sent again by time: for up to two minutes from the first such answer, each wait the backoff capped at 5 s and never under the server's Retry-After (the CLI and the console also take the error'sretry_after_ms), those tries not counted againstmaxRetriesor the follow's reconnects. Past the two minutes the 503 is the outcome, a wait that ended late (in a suspended process or tab) included: no try is sent after the window.agentrun runs start --waitkeeps its own one two-minute bound, and its start is not also retried by this rule. In the SDK, a retryable 503 whose body never arrives is still tried again on its status and Retry-After. This holds for the SDK's requests andruns.follow, the CLI's plain requests (agentrun agents list,--allpages, a keyed write) and the console's reads, its run timeline's follow among them. A write without an Idempotency-Key is still sent once, and any other 503 keeps its old rule.
Install
- Server:
npx @parcha/agentrun-serve@0.1.0-beta.73; every@parcha/agentrun-*package of this release is 0.1.0-beta.73 on npm - Launcher and CLI:
npx @parcha/agentrun@0.4.41 - Python client:
pip install parcha-agentrun==0.3.40 - Server image:
docker pull ghcr.io/parcha-ai/agentrun-server:v0.1.0-beta.73(linux/amd64, linux/arm64) - Helm chart:
helm install agentrun oci://ghcr.io/parcha-ai/charts/agentrun --version 0.1.0-beta.73