Skip to content

v0.8.0

@nshkrdotcom nshkrdotcom tagged this 15 Jan 03:41
This release introduces multi-turn tool streaming support, new permission
modes, and configurable SDK logging. It improves stability when using the
control protocol by ensuring client initialization before message delivery.

Streaming Improvements:
- Added Termination module to track stop reasons across message deltas.
- Fixed a bug where streams ended prematurely after a tool_use stop reason.
- Streams now continue until an end_turn or error is encountered.
- Added await_initialized to Client to prevent dropped early messages.
- Implemented deterministic session testing via mock_stream and push_events.

Permission Management:
- Introduced delegate and dont_ask permission modes for CLI parity.
- Implemented a permission bridge via PreToolUse hooks to handle cases where
the CLI does not emit can_use_tool requests.
- updated_options now automatically enables partial messages and configures
the stdio permission prompt tool for better CLI compatibility.

Logging and Configuration:
- Added ClaudeAgentSDK.Log with a default warning level to reduce noise.
- Users can configure the SDK log level via application environment.
- Updated internal modules to use the new scoped logger wrapper.

Testing and Examples:
- Expanded test coverage for multi-turn streaming and permission hooks.
- Hardened live examples to fail fast if expected tool calls are missing.
- Added new examples for stop_reason probing and session-path streaming.
Assets 2
Loading