anthropic 1.44.0 → 1.45.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 +27 -0
- data/README.md +1 -1
- data/SECURITY.md +7 -19
- data/lib/anthropic/helpers/streaming/message_stream.rb +18 -0
- data/lib/anthropic/models/model.rb +6 -0
- data/lib/anthropic/version.rb +1 -1
- 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: 8e459430d4274990ec5b16c71b6e8ceb9f8fb7ea7b598a0743b1395751f70a04
|
|
4
|
+
data.tar.gz: ca0766ef57242877ab67638e9c83c3511864e1fd99350fa100d3d095db0290d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56c89b576946c7d3dc4544b96230be1602d4cbb58b72249065dd16f6bc2ec19077bbb7c87a6d5483a9f6642b6bae5b672aab9717efbeaebcf05878941c96f413
|
|
7
|
+
data.tar.gz: dab9b9b13abdb2b18049fe2549cad38d426e7616239c5d96245658ed3f05c6c14c15d13c2efac466424e77c744bd7fbece4ea9daf63ebdcdd00f5982591834e1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.45.0 (2026-06-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.44.0...v1.45.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.44.0...v1.45.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** mark Claude Opus 4.1 as deprecated ([ccc292f](https://github.com/anthropics/anthropic-sdk-ruby/commit/ccc292f10ffb2c825f5b34c8372e7d6803ebc83d))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **streaming:** carry encrypted_content through beta compaction accumulator ([#938](https://github.com/anthropics/anthropic-sdk-ruby/issues/938)) ([6bd298f](https://github.com/anthropics/anthropic-sdk-ruby/commit/6bd298fa4421192fdc74ee99462d94ec01a514d3))
|
|
15
|
+
* **streaming:** carry stop_details and full usage through message_delta ([#940](https://github.com/anthropics/anthropic-sdk-ruby/issues/940)) ([ef4d2ea](https://github.com/anthropics/anthropic-sdk-ruby/commit/ef4d2ea31c0e566d7ad387419ba7d6144bf06861))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Chores
|
|
19
|
+
|
|
20
|
+
* **internal:** codegen related update ([296d6a4](https://github.com/anthropics/anthropic-sdk-ruby/commit/296d6a47ec96c36cf7a924bd74aa752d2d2ff125))
|
|
21
|
+
* **internal:** fix artifact url ([a97bd1e](https://github.com/anthropics/anthropic-sdk-ruby/commit/a97bd1e6fa5094057d2967d1b0573eec6602e026))
|
|
22
|
+
* **internal:** fix branch names ([16564d3](https://github.com/anthropics/anthropic-sdk-ruby/commit/16564d3806d4cb70000fe374c6ccf399e8903ba8))
|
|
23
|
+
* **internal:** update staging repo ([3f6005b](https://github.com/anthropics/anthropic-sdk-ruby/commit/3f6005b00242d66f711c31a4e51973576745aaee))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Documentation
|
|
27
|
+
|
|
28
|
+
* point security reports to Anthropic's HackerOne program ([#6](https://github.com/anthropics/anthropic-sdk-ruby/issues/6)) ([2d0f2af](https://github.com/anthropics/anthropic-sdk-ruby/commit/2d0f2af04956b58976aaf783b6ce24a4271c15ab))
|
|
29
|
+
|
|
3
30
|
## 1.44.0 (2026-05-28)
|
|
4
31
|
|
|
5
32
|
Full Changelog: [v1.43.0...v1.44.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.43.0...v1.44.0)
|
data/README.md
CHANGED
data/SECURITY.md
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
# Security Policy
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
|
|
6
|
-
|
|
7
|
-
To report a security issue, please contact the Stainless team at security@stainless.com.
|
|
8
|
-
|
|
9
|
-
## Responsible Disclosure
|
|
10
|
-
|
|
11
|
-
We appreciate the efforts of security researchers and individuals who help us maintain the security of
|
|
12
|
-
SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible
|
|
13
|
-
disclosure practices by allowing us a reasonable amount of time to investigate and address the issue
|
|
14
|
-
before making any information public.
|
|
3
|
+
Thank you for helping us keep the SDKs and systems they interact with secure.
|
|
15
4
|
|
|
16
|
-
## Reporting
|
|
5
|
+
## Reporting Security Issues
|
|
17
6
|
|
|
18
|
-
|
|
19
|
-
or products provided by Anthropic, please follow the respective company's security reporting guidelines.
|
|
7
|
+
This SDK is maintained by [Anthropic](https://www.anthropic.com/).
|
|
20
8
|
|
|
21
|
-
|
|
9
|
+
The security of our systems and user data is Anthropic’s top priority. We appreciate the work of security researchers acting in good faith in identifying and reporting potential vulnerabilities.
|
|
22
10
|
|
|
23
|
-
|
|
11
|
+
Our security program is managed on HackerOne and we ask that any validated vulnerability in this functionality be reported through their [submission form](https://hackerone.com/4f1f16ba-10d3-4d09-9ecc-c721aad90f24/embedded_submissions/new).
|
|
24
12
|
|
|
25
|
-
|
|
13
|
+
## Anthropic Bug Bounty
|
|
26
14
|
|
|
27
|
-
|
|
15
|
+
Our Bug Bounty Program Guidelines are defined on our [HackerOne program page](https://hackerone.com/anthropic).
|
|
@@ -134,13 +134,31 @@ module Anthropic
|
|
|
134
134
|
content.signature = delta.signature
|
|
135
135
|
in Anthropic::Models::BetaCompactionContentBlockDelta if content.type == :compaction
|
|
136
136
|
content.content = delta.content
|
|
137
|
+
content.encrypted_content = delta.encrypted_content
|
|
137
138
|
else
|
|
138
139
|
end
|
|
139
140
|
in Anthropic::Models::RawMessageDeltaEvent | Anthropic::Models::BetaRawMessageDeltaEvent
|
|
140
141
|
current_snapshot.stop_reason = event.delta.stop_reason
|
|
141
142
|
current_snapshot.stop_sequence = event.delta.stop_sequence
|
|
143
|
+
current_snapshot.stop_details = event.delta.stop_details unless event.delta.stop_details.nil?
|
|
142
144
|
current_snapshot.usage.output_tokens = event.usage.output_tokens
|
|
143
145
|
|
|
146
|
+
# The message_delta usage is authoritative for the final counts; carry every
|
|
147
|
+
# field the event reports (only when present, so we never clobber the
|
|
148
|
+
# message_start values with nils).
|
|
149
|
+
unless event.usage.input_tokens.nil?
|
|
150
|
+
current_snapshot.usage.input_tokens = event.usage.input_tokens
|
|
151
|
+
end
|
|
152
|
+
unless event.usage.cache_creation_input_tokens.nil?
|
|
153
|
+
current_snapshot.usage.cache_creation_input_tokens = event.usage.cache_creation_input_tokens
|
|
154
|
+
end
|
|
155
|
+
unless event.usage.cache_read_input_tokens.nil?
|
|
156
|
+
current_snapshot.usage.cache_read_input_tokens = event.usage.cache_read_input_tokens
|
|
157
|
+
end
|
|
158
|
+
unless event.usage.server_tool_use.nil?
|
|
159
|
+
current_snapshot.usage.server_tool_use = event.usage.server_tool_use
|
|
160
|
+
end
|
|
161
|
+
|
|
144
162
|
if event.is_a?(Anthropic::Models::BetaRawMessageDeltaEvent) && !event.usage.iterations.nil?
|
|
145
163
|
current_snapshot.usage.iterations = event.usage.iterations
|
|
146
164
|
end
|
|
@@ -90,9 +90,15 @@ module Anthropic
|
|
|
90
90
|
CLAUDE_SONNET_4_5_20250929 = :"claude-sonnet-4-5-20250929"
|
|
91
91
|
|
|
92
92
|
# Exceptional model for specialized complex tasks
|
|
93
|
+
# @deprecated Will reach end-of-life on August 5, 2026. Please migrate to a newer model. Visit
|
|
94
|
+
# https://docs.anthropic.com/en/docs/resources/model-deprecations for more
|
|
95
|
+
# information.
|
|
93
96
|
CLAUDE_OPUS_4_1 = :"claude-opus-4-1"
|
|
94
97
|
|
|
95
98
|
# Exceptional model for specialized complex tasks
|
|
99
|
+
# @deprecated Will reach end-of-life on August 5, 2026. Please migrate to a newer model. Visit
|
|
100
|
+
# https://docs.anthropic.com/en/docs/resources/model-deprecations for more
|
|
101
|
+
# information.
|
|
96
102
|
CLAUDE_OPUS_4_1_20250805 = :"claude-opus-4-1-20250805"
|
|
97
103
|
|
|
98
104
|
# Powerful model for complex tasks
|
data/lib/anthropic/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: anthropic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.45.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anthropic
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05
|
|
11
|
+
date: 2026-06-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|