Skip to content

v0.14.2

Choose a tag to compare

@ya-luotao ya-luotao released this 17 Apr 03:44
· 722 commits to main since this release

Added

  • EFFORT_LEVELS constant exposing %w[low medium high xhigh max]. Consumers can reference ClaudeAgentSDK::EFFORT_LEVELS for validation instead of hard-coding the list.
  • xhigh effort level: documented in the SDK to match the Claude Code CLI (2.1.111+). Supported on Opus 4.7; the CLI auto-falls-back to the highest supported level on older models (e.g. xhigh → high on Opus 4.6).

Changed

  • Inline comments and README updated to reference ClaudeAgentSDK::EFFORT_LEVELS rather than a stale hard-coded level list.

Usage

# Validate effort against the exported constant instead of a hard-coded list
raise ArgumentError unless ClaudeAgentSDK::EFFORT_LEVELS.include?(level)

options = ClaudeAgentSDK::ClaudeAgentOptions.new(effort: 'xhigh') # Opus 4.7

New contributor

A warm welcome to @chagel (mgc) — their first contribution to the project landed in #20, bringing the Ruby SDK in line with Claude Code CLI 2.1.111+. Thank you! 🎉

What's changed

  • #20 feat(effort): add xhigh level and export EFFORT_LEVELS constant — @chagel

Full Changelog: v0.14.1...v0.14.2


gem install claude-agent-sdk -v 0.14.2