Releases: cortexkit/anthropic-auth
Releases · cortexkit/anthropic-auth
v1.1.0
Highlights
- Added
/claude-fast on|offfor supported Opus models, enabling Anthropic fast mode with persisted configuration. - Aligned Anthropic request headers/body shape more closely with Claude Code 2.1.141, including Claude CLI/Stainless headers, request-shape-aware beta selection, body key ordering, and bootstrap-backed account metadata.
- Improved hybrid 1-hour cache mode with explicit anchors on the final stable system block,
messages[0],messages[1], and a moving near-tail anchor for long sessions.
Relay reliability and performance
- Made WebSocket relay startup more responsive with optimistic SSE responses, binary chunk frames, and deferred Worker checkpoint/KV work.
- Added automatic WebSocket reconnect + one-time
full_syncretry when the socket closes before upstream response bytes are emitted. - Added Worker-side body hash verification before forwarding reconstructed requests upstream.
- Kept relay affinity/session headers internal so they are not forwarded to Anthropic.
- Accepted both
/v1/messagesand/messagesupstream paths for Anthropic SDK/custom-baseURL traffic.
Auth and compatibility fixes
- Proactively refresh the main OpenCode Anthropic OAuth token in the background instead of waiting for the next Claude request after idle time.
- Reverted OAuth refresh to the known-working platform JSON endpoint after live console-endpoint refreshes returned
429. - Fixed chunk-safe stripping of Claude-Code-style
mcp_*tool names from streaming Anthropic responses.
Testing and release infrastructure
- Added OpenCode e2e coverage using a real
opencode servesubprocess, mock Anthropic server, and mock protocol-v2 WebSocket relay. - Added Miniflare/workerd coverage for the embedded Cloudflare Worker with KV and WebSocket upgrades.
- Hardened npm Trusted Publishing by publishing each package in a separate OIDC job and skipping already-published package versions during recovery.
Packages
Published:
@cortexkit/anthropic-auth-core@1.1.0@cortexkit/opencode-anthropic-auth@1.1.0@cortexkit/pi-anthropic-auth@1.1.0
Full Changelog: v1.0.0...v1.1.0