Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
permissions:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/stagehand-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: |-
github.repository == 'stainless-sdks/stagehand-ruby' &&
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/stagehand-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
Expand All @@ -73,7 +73,7 @@ jobs:
test:
timeout-minutes: 10
name: test
runs-on: ${{ github.repository == 'stainless-sdks/stagehand-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.21.0"
".": "3.22.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/stagehand-c7910965e66e73ad8b65b6cc391d431094b2a6c6577c3e9d82feaa8138e74cff.yml
openapi_spec_hash: 37748bb69c22a9ce721d9b5a5861f964
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase/stagehand-64b47a6dd07208d708130e739a272f7d37d4e42494a7c8e566ef66007f8ff25f.yml
openapi_spec_hash: 4cdfcfed592c8631fbab9117bf45bb67
config_hash: 1fb12ae9b478488bc1e56bfbdc210b01
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 3.22.0 (2026-07-21)

Full Changelog: [v3.21.0...v3.22.0](https://github.com/browserbase/stagehand-ruby/compare/v3.21.0...v3.22.0)

### Features

* [STG-2090] Add Azure Entra model auth support ([1f8bf4b](https://github.com/browserbase/stagehand-ruby/commit/1f8bf4b2421c4c85887535aff089a81392aef841))
* **server-v3:** expose OpenAI endpoint format ([dadba88](https://github.com/browserbase/stagehand-ruby/commit/dadba88715cef9e9be8c9bc5f17ba518b7f7bee3))
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([ac0e4b5](https://github.com/browserbase/stagehand-ruby/commit/ac0e4b5002f37c47c2563f32639204af4eefbed6))


### Bug Fixes

* **client:** send content-type header for requests with an omitted optional body ([b6c6458](https://github.com/browserbase/stagehand-ruby/commit/b6c6458818c9e790e233aa601a99fe7ef5c0de42))


### Chores

* **internal:** bound formatter parallelism to CPU count ([4816aab](https://github.com/browserbase/stagehand-ruby/commit/4816aabe67fe83098eac022142e0f795a32ee204))

## 3.21.0 (2026-05-27)

Full Changelog: [v3.20.0...v3.21.0](https://github.com/browserbase/stagehand-ruby/compare/v3.20.0...v3.21.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
stagehand (3.21.0)
stagehand (3.22.0)
cgi
connection_pool

Expand Down
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require "etc"
require "pathname"
require "securerandom"
require "shellwords"
Expand Down Expand Up @@ -37,7 +38,11 @@ multitask(:test) do
ruby(*%w[-w -e], rb, verbose: false) { fail unless _1 }
end

xargs = %w[xargs --no-run-if-empty --null --max-procs=0 --max-args=300 --]
# Cap parallelism at the CPU count. `--max-procs=0` spawns one process per
# 300-file batch with no upper bound; on large SDKs (thousands of files) that
# oversubscribes CPUs and stacks up rubocop processes, exhausting memory and
# slowing CI to the point of timing out.
xargs = %W[xargs --no-run-if-empty --null --max-procs=#{Etc.nprocessors} --max-args=300 --]
ruby_opt = {"RUBYOPT" => [ENV["RUBYOPT"], "--encoding=UTF-8"].compact.join(" ")}

filtered = ->(ext, dirs) do
Expand Down
5 changes: 4 additions & 1 deletion lib/stagehand/internal/transport/base_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ def initialize(
Stagehand::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
end

headers.delete("content-type") if body.nil?
# Generated methods always pass `req[:body]` for operations that define a
# request body, so only elide the content-type header when the operation
# has no body at all, not when an optional body param was omitted.
headers.delete("content-type") if body.nil? && !req.key?(:body)

url = Stagehand::Internal::Util.join_parsed_uri(
@base_url_components,
Expand Down
4 changes: 3 additions & 1 deletion lib/stagehand/internal/type/union.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ module Type
# case model_config
# when Stagehand::ModelConfig::VertexModelConfigObject
# puts(model_config.auth)
# when Stagehand::ModelConfig::GenericModelConfigObject
# when Stagehand::ModelConfig::AzureEntraModelConfigObject
# puts(model_config.model_name)
# when Stagehand::ModelConfig::AzureAPIKeyModelConfigObject
# puts(model_config.provider)
# else
# puts(model_config)
# end
Expand Down
Loading