Repository navigation
chore: release v0.42.0 - #240
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release OAR and CLI 0.42.0. This PR changes only the two package version fields.
Behavior changes
FailureClasshas four new members:model_unavailable,input_too_large,rate_limitedandbilling(feat: classify runtime failures from structured fields (#227) #237). Host code with an exhaustiveswitchover it needs the new cases.rate_limited; it wasquota. A 429 whose provider code names a quota or a balance isquotaorbilling.failureText("auth", name)without a credential now reads "could not authenticate". It used to read "is not signed in", which was wrong for a refused key. Pass the outcome'scredentialto get "is not signed in" (missing) or "credentials were rejected" (rejected).RuntimeFailureError(still anError, same message) where they rejected with a rawRequestErroror a plainError: an ACP agent that requires auth, a -32602 answer to the model call, a key cursor refuses, a pi model OAR does not find.datatext (the provider's answer), not only "Internal error".unsupported(empty input: give text or images) before anything reaches the runtime (fix: support image-only session inputs #239).New
code, thentype), then the HTTP status; matching words is a documented last resort. Fixed: claude's "Credit balance is too low" (nowbilling) and oversized context (nowinput_too_large); codexserverOverloaded(nowoverloaded) andcontextWindowExceeded(nowinput_too_large).TurnOutcomemay carrycredential(missing|rejected) andstatus(the provider's HTTP status), only where the runtime says them.RuntimeFailureError { failure, credential?, status?, reason }for opens that fail for one of these causes.observe:failureAdvice(failure)returns{ retry: "now" | "later" | "no", userAction }.Session.resources?(): Promise<{ rss, processes } | null>(feat(session): Session.resources() reads a runtime's memory (#231) #238, closes Expose a session's runtime process id (read-only) so hosts can show its memory #231): the host memory a session's runtime takes, in bytes, over the runtime process, its process group and its descendants, from one reading of the process table. Null once the process has exited, on Windows, and when the table cannot be read whole. Absent on pi and cursor, which run in the host process. Observation only: nothing is recorded or signalled, and no pid leaves OAR. Concurrent calls share one read.prompt,steerandqueuetake""whenimagesis non-empty. claude, codex and the ACP runtimes no longer receive an empty text part; pi and cursor take the text as an argument and receive"". grok drops images smaller than 8×8 without saying so (its runtime page has the evidence).Validation: all 13 checks passed on each PR's final head (#237
772d337, #2383c60fd7, #23947d91ac), and each merged tree equals its CI tree. After this PR passes CI and merges, tag its exact squash commit asv0.42.0to trigger npm trusted publishing.🤖 Generated with Claude Code