claude-agent-sdk 0.2.1 → 0.4.0
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 +4 -4
- data/CHANGELOG.md +34 -0
- data/README.md +516 -91
- data/lib/claude_agent_sdk/message_parser.rb +7 -4
- data/lib/claude_agent_sdk/query.rb +91 -4
- data/lib/claude_agent_sdk/subprocess_cli_transport.rb +106 -2
- data/lib/claude_agent_sdk/types.rb +397 -10
- data/lib/claude_agent_sdk/version.rb +1 -1
- data/lib/claude_agent_sdk.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4b8c3f8f0eefdfe38747d264f5d89148e1e589f12c200796dd2c37e821b3f61
|
|
4
|
+
data.tar.gz: 60252ef9c5f8679526a1f76b1be4216138e8bc7d91deb7bc1235b94d04a8481d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a95797df469fa0acede9c2187d0e8dd9420582e856853552dcc4b0c09b7e4564ca7371478624a904090366d06880a2e7457f71910b88e815fbbe12d8f210f255
|
|
7
|
+
data.tar.gz: 77354e6852d2f86b060ac0e4948006ed1c28311f7481e4efa7cdc2f57864448ab0d656244559da43094cde1ac409ae25fd4aad13228640001b0e453d7d9fc753
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ 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.4.0] - 2026-01-06
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
#### File Checkpointing & Rewind
|
|
13
|
+
- `enable_file_checkpointing` option in `ClaudeAgentOptions` for enabling file state checkpointing
|
|
14
|
+
- `rewind_files(user_message_uuid)` method on `Query` and `Client` classes
|
|
15
|
+
- `uuid` field on `UserMessage` for tracking message identifiers for rewind support
|
|
16
|
+
|
|
17
|
+
#### Beta Features Support
|
|
18
|
+
- `SDK_BETAS` constant with available beta features (e.g., `"context-1m-2025-08-07"`)
|
|
19
|
+
- `betas` option in `ClaudeAgentOptions` for enabling beta features
|
|
20
|
+
|
|
21
|
+
#### Tools Configuration
|
|
22
|
+
- `tools` option for base tools selection (separate from `allowed_tools`)
|
|
23
|
+
- Supports array of tool names, empty array `[]`, or `ToolsPreset` object
|
|
24
|
+
- `ToolsPreset` class for preset-based tool configuration
|
|
25
|
+
- `append_allowed_tools` option to append tools to the allowed list
|
|
26
|
+
|
|
27
|
+
#### Sandbox Settings
|
|
28
|
+
- `SandboxSettings` class for isolated command execution configuration
|
|
29
|
+
- `SandboxNetworkConfig` class for network isolation settings
|
|
30
|
+
- `SandboxIgnoreViolations` class for configuring violation handling
|
|
31
|
+
- `sandbox` option in `ClaudeAgentOptions` for sandbox configuration
|
|
32
|
+
- Automatic merging of sandbox settings into the main settings JSON
|
|
33
|
+
|
|
34
|
+
#### Additional Types
|
|
35
|
+
- `SystemPromptPreset` class for preset-based system prompts
|
|
36
|
+
|
|
37
|
+
### Technical Details
|
|
38
|
+
- All new CLI flags properly passed to Claude Code subprocess
|
|
39
|
+
- Sandbox settings merged into `--settings` JSON for CLI compatibility
|
|
40
|
+
- UserMessage UUID parsed from CLI output for rewind support
|
|
41
|
+
|
|
8
42
|
## [0.2.0] - 2025-10-17
|
|
9
43
|
|
|
10
44
|
### Changed
|