Skip to content

AgentRun v0.1.0-beta.73

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 29 Nov 20:01
· 61 commits to main since this release
9032adc
  • 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 set AGENTRUN_API_KEY, not only to set the variable.
    • A 401 for a key the caller gave, from AGENTRUN_API_KEY or the config login wrote: 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 in AGENTRUN_API_KEY, or sign in again with agentrun 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_URL or the config's base_url), and what to change. It no longer tells the caller to start a server here with npx @parcha/agentrun.
  • agentrun deploy and 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 version is told so ("has no version: add version: 1.2.3"), apart from a version that is there and not SemVer 2. A missing name or description gets 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 optional sha: only the package of that sha256 is removed, and another stored under the id since is 412 precondition_failed and stays. Without it the delete is as before. The TypeScript client's template.delete(id, { sha }, options) sends it, and template.delete(id, options) written before still passes its options.
  • A request rides out a server restarting. A server restarting (or a gateway in front of it) answers 503 with details.reason server_unavailable and a Retry-After until it is back, which can take a minute or more; the SDK gave up after maxRetries (about 20 s), its runs.follow after 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's retry_after_ms), those tries not counted against maxRetries or 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 --wait keeps 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 and runs.follow, the CLI's plain requests (agentrun agents list, --all pages, 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