claude-agent-sdk 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de5807b36fd822ee89e4a793a536b4ba8804c168259d17cc1a03974425f128ea
4
- data.tar.gz: c40d5dad151728b8b2e131ad96da616bd03b4972f6d5807d5375ea24d499ceb6
3
+ metadata.gz: 303a5cd2321bb9c04f17d68990abfb8f72c6a88624874f199afaf7769befca33
4
+ data.tar.gz: 3831d1fdec75b38072083d231dcf03a87407244bda805e51661d771be23105ac
5
5
  SHA512:
6
- metadata.gz: f34dc590db10f0f4ebe1360a5318617fd0b7c6299fcf83d45438d1bb1a9a106734e06268f7d4361bbdf575d660afa63b97586c56235fa9d617a6b891a0e1e158
7
- data.tar.gz: e6548661fbcd10c96b5b64b4efc6676d5ad47f28435a23e4b8045a590df107bedea2ee8d089a230c32aaa84dafdbb0239bbeffb1b7b7aba255196d2ded16903e
6
+ metadata.gz: 569f331952bcef9c7426fc61bd1c36f082acf721e9ab5a899783ea06fdee5accfcb2f903c536ba9cf99ee50e96aceb254d9305751631643f532c549b39b48ff6
7
+ data.tar.gz: 2c22f2cde6cf7c5e059ebbdfe515f559979b4cd273b28e1d7113cf55e9e739a201725f81f2ee602623242c12f7c557edbb0b5ade8a1088e997d4ddd01566561c
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.7.1] - 2026-02-21
9
+
10
+ ### Fixed
11
+ - **Transport initialization crash:** `SubprocessCLITransport#initialize` used raw `options` parameter instead of resolved `@options` on lines 19, 20, 27 — caused `NoMethodError: undefined method 'cli_path' for nil` when using single-arg form (how `Client.new` calls it)
12
+
8
13
  ## [0.7.0] - 2026-02-20
9
14
 
10
15
  ### Added
@@ -16,15 +16,15 @@ module ClaudeAgentSDK
16
16
  def initialize(options_or_prompt = nil, options = nil)
17
17
  # Support both new single-arg form and legacy two-arg form
18
18
  @options = options.nil? ? options_or_prompt : options
19
- @cli_path = options.cli_path || find_cli
20
- @cwd = options.cwd
19
+ @cli_path = @options.cli_path || find_cli
20
+ @cwd = @options.cwd
21
21
  @process = nil
22
22
  @stdin = nil
23
23
  @stdout = nil
24
24
  @stderr = nil
25
25
  @ready = false
26
26
  @exit_error = nil
27
- @max_buffer_size = options.max_buffer_size || DEFAULT_MAX_BUFFER_SIZE
27
+ @max_buffer_size = @options.max_buffer_size || DEFAULT_MAX_BUFFER_SIZE
28
28
  @stderr_task = nil
29
29
  @recent_stderr = []
30
30
  @recent_stderr_mutex = Mutex.new
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ClaudeAgentSDK
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: claude-agent-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Community Contributors