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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 876ada84a1da262a8c81ca559e5123da5d477507d02e127415541a6c58e12acd
4
- data.tar.gz: 45fbc86ad5fa0153da5ff489c356acbd52ec59cee705d1dd3e8f764262c7a232
3
+ metadata.gz: 8e459430d4274990ec5b16c71b6e8ceb9f8fb7ea7b598a0743b1395751f70a04
4
+ data.tar.gz: ca0766ef57242877ab67638e9c83c3511864e1fd99350fa100d3d095db0290d6
5
5
  SHA512:
6
- metadata.gz: 747f49e8366dec6fddbe2190984cf71927f6e55829ce868e8dd116b91ccdd5f89331ad115b84527d73f8963f892f3fea4e317b366283f4df2df1dfb4a3ba3ab1
7
- data.tar.gz: 6ab572aa679fe5f526ab9043d67f128382e0518f3bfc3d628feefbd751f71eda4be61c05a1767b96faf2b816e58868adab3ed1c4ee3009a7b0efbee220ebdacd
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
@@ -15,7 +15,7 @@ Add to your application's Gemfile:
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "anthropic", "~> 1.44.0"
18
+ gem "anthropic", "~> 1.45.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
data/SECURITY.md CHANGED
@@ -1,27 +1,15 @@
1
1
  # Security Policy
2
2
 
3
- ## Reporting Security Issues
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 Non-SDK Related Security Issues
5
+ ## Reporting Security Issues
17
6
 
18
- If you encounter security issues that are not directly related to SDKs but pertain to the services
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
- ### Anthropic Terms and Policies
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
- Please contact support@anthropic.com for any questions or concerns regarding the security of our services.
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
- Thank you for helping us keep the SDKs and systems they interact with secure.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anthropic
4
- VERSION = "1.44.0"
4
+ VERSION = "1.45.0"
5
5
  end
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.44.0
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-28 00:00:00.000000000 Z
11
+ date: 2026-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi