Releases: QoderAI/qoder-cloud-agents-sdk-ts
Releases · QoderAI/qoder-cloud-agents-sdk-ts
Release list
v0.2.0
Added
- Add
client.withOptions()to derive a Forward or Managed client with selected configuration overrides while preserving its concrete type and unspecified options. Supplied headers, query defaults, and middleware replace their corresponding client-level option, matching Anthropic's TypeScript SDK. - Forward and Managed ordinary JSON object responses now expose a typed, non-enumerable
_request_idfor troubleshooting, matching Anthropic's TypeScript SDK. ExistingwithResponse().request_idaccess remains available for all response types.
Changed
- Align
Retry-Afterhandling with Anthropic's TypeScript SDK: positive delays up to2 ** 31 - 1milliseconds are honored; zero, negative, invalid, and over-limit values use exponential backoff. A zero or unparseableretry-after-msfalls through toretry-after. Retry eligibility remains unchanged. - Breaking:
APIConnectionError,APIConnectionTimeoutError, andAPIUserAbortErrornow inherit fromAPIError, matching Anthropic's TypeScript SDK. AnAPIErrorcatch now includes network failures, timeouts, and cancellation; guard optionalstatus/headersand handleAPIUserAbortErrorfirst if cancellation needs separate treatment. Existing(message, { cause })constructors and HTTP error metadata are preserved. HTTP-specific subclasses retain typed status codes and headers, and connection retries and cancellation behavior remain unchanged. - Breaking: Forward and Managed
Page.getNextPage()now throwsQoderErrorat the last page and returnsPromise<Page<T>>instead of a nullable page, matching Anthropic's TypeScript SDK. CheckhasNextPage()before advancing manually, or use async iteration, which still stops normally. - Forward and Managed request timeouts now cover each underlying
fetchcall until a response arrives, matching Anthropic's TypeScript SDK. Credential resolution, middleware, and response-body/SSE reads no longer consume this timeout. Use anAbortSignalto enforce a total deadline or cancel a stream after it starts.