Skip to content

Commit b90a630

Browse files
authored
Merge pull request #3 from browserbase/release-please--branches--main--changes--next
release: 0.2.0
2 parents cb4cf1f + 1aa8f5d commit b90a630

10 files changed

Lines changed: 37 additions & 54 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0"
2+
".": "0.2.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-2c88c6d890406ff8a5f1bca692264fb9af4bc4fe64df0986e06d3386fc6d6fcb.yml
3-
openapi_spec_hash: dc6ea17f8152708dc0a390c7f86b1a5d
4-
config_hash: b01f15c540ab2c92808c2bba96368631
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-705638ac8966569986bd9ebb7c9761bf0016909e9f2753e77ceabb12c8049511.yml
3+
openapi_spec_hash: a8fbbcaa38e91c7f97313620b42d8d62
4+
config_hash: a35b56eb05306a0f02e83c11d57f975f

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.2.0 (2025-12-16)
4+
5+
Full Changelog: [v0.1.0...v0.2.0](https://github.com/browserbase/stagehand-ruby/compare/v0.1.0...v0.2.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([d660a3a](https://github.com/browserbase/stagehand-ruby/commit/d660a3ad9cd54238d2bc6598b576e7677ebf120f))
10+
* **api:** manual updates ([c21cb20](https://github.com/browserbase/stagehand-ruby/commit/c21cb20650bbad1ba8f6a89ad33dcf5ddfc53c81))
11+
* **api:** manual updates ([f04453c](https://github.com/browserbase/stagehand-ruby/commit/f04453c6c2050b7815e3f62d14343dee4698879d))
12+
313
## 0.1.0 (2025-12-16)
414

515
Full Changelog: [v0.0.1...v0.1.0](https://github.com/browserbase/stagehand-ruby/compare/v0.0.1...v0.1.0)

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GIT
1111
PATH
1212
remote: .
1313
specs:
14-
stagehand (0.1.0)
14+
stagehand (0.2.0)
1515
connection_pool
1616

1717
GEM

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
1717
<!-- x-release-please-start-version -->
1818

1919
```ruby
20-
gem "stagehand", "~> 0.1.0"
20+
gem "stagehand", "~> 0.2.0"
2121
```
2222

2323
<!-- x-release-please-end -->
@@ -34,7 +34,7 @@ stagehand = Stagehand::Client.new(
3434
model_api_key: ENV["MODEL_API_KEY"] # This is the default and can be omitted
3535
)
3636

37-
response = stagehand.sessions.act("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", input: "click the first link on the page")
37+
response = stagehand.sessions.act("00000000-your-session-id-000000000000", input: "click the first link on the page")
3838

3939
puts(response.actions)
4040
```
@@ -46,8 +46,8 @@ When the library is unable to connect to the API, or if the API returns a non-su
4646
```ruby
4747
begin
4848
session = stagehand.sessions.start(
49-
browserbase_api_key: "BROWSERBASE_API_KEY",
50-
browserbase_project_id: "BROWSERBASE_PROJECT_ID"
49+
browserbase_api_key: "your Browserbase API key",
50+
browserbase_project_id: "your Browserbase Project ID"
5151
)
5252
rescue Stagehand::Errors::APIConnectionError => e
5353
puts("The server could not be reached")
@@ -92,8 +92,8 @@ stagehand = Stagehand::Client.new(
9292

9393
# Or, configure per-request:
9494
stagehand.sessions.start(
95-
browserbase_api_key: "BROWSERBASE_API_KEY",
96-
browserbase_project_id: "BROWSERBASE_PROJECT_ID",
95+
browserbase_api_key: "your Browserbase API key",
96+
browserbase_project_id: "your Browserbase Project ID",
9797
request_options: {max_retries: 5}
9898
)
9999
```
@@ -110,8 +110,8 @@ stagehand = Stagehand::Client.new(
110110

111111
# Or, configure per-request:
112112
stagehand.sessions.start(
113-
browserbase_api_key: "BROWSERBASE_API_KEY",
114-
browserbase_project_id: "BROWSERBASE_PROJECT_ID",
113+
browserbase_api_key: "your Browserbase API key",
114+
browserbase_project_id: "your Browserbase Project ID",
115115
request_options: {timeout: 5}
116116
)
117117
```
@@ -145,8 +145,8 @@ Note: the `extra_` parameters of the same name overrides the documented paramete
145145
```ruby
146146
response =
147147
stagehand.sessions.start(
148-
browserbase_api_key: "BROWSERBASE_API_KEY",
149-
browserbase_project_id: "BROWSERBASE_PROJECT_ID",
148+
browserbase_api_key: "your Browserbase API key",
149+
browserbase_project_id: "your Browserbase Project ID",
150150
request_options: {
151151
extra_query: {my_query_parameter: value},
152152
extra_body: {my_body_parameter: value},
@@ -192,18 +192,18 @@ This library provides comprehensive [RBI](https://sorbet.org/docs/rbi) definitio
192192
You can provide typesafe request parameters like so:
193193

194194
```ruby
195-
stagehand.sessions.act("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", input: "click the first link on the page")
195+
stagehand.sessions.act("00000000-your-session-id-000000000000", input: "click the first link on the page")
196196
```
197197

198198
Or, equivalently:
199199

200200
```ruby
201201
# Hashes work, but are not typesafe:
202-
stagehand.sessions.act("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", input: "click the first link on the page")
202+
stagehand.sessions.act("00000000-your-session-id-000000000000", input: "click the first link on the page")
203203

204204
# You can also splat a full Params class:
205205
params = Stagehand::SessionActParams.new(input: "click the first link on the page")
206-
stagehand.sessions.act("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", **params)
206+
stagehand.sessions.act("00000000-your-session-id-000000000000", **params)
207207
```
208208

209209
### Enums

lib/stagehand/models/session_execute_agent_response.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,8 @@ class SessionExecuteAgentResponse < Stagehand::Internal::Type::BaseModel
1010
# @return [String, nil]
1111
optional :message, String
1212

13-
# @!attribute steps
14-
# Steps taken by the agent
15-
#
16-
# @return [Array<Object>, nil]
17-
optional :steps, Stagehand::Internal::Type::ArrayOf[Stagehand::Internal::Type::Unknown]
18-
19-
# @!method initialize(message: nil, steps: nil)
13+
# @!method initialize(message: nil)
2014
# @param message [String] Final message from the agent
21-
#
22-
# @param steps [Array<Object>] Steps taken by the agent
2315
end
2416
end
2517
end

lib/stagehand/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Stagehand
4-
VERSION = "0.1.0"
4+
VERSION = "0.2.0"
55
end

rbi/stagehand/models/session_execute_agent_response.rbi

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,14 @@ module Stagehand
1818
sig { params(message: String).void }
1919
attr_writer :message
2020

21-
# Steps taken by the agent
22-
sig { returns(T.nilable(T::Array[T.anything])) }
23-
attr_reader :steps
24-
25-
sig { params(steps: T::Array[T.anything]).void }
26-
attr_writer :steps
27-
28-
sig do
29-
params(message: String, steps: T::Array[T.anything]).returns(
30-
T.attached_class
31-
)
32-
end
21+
sig { params(message: String).returns(T.attached_class) }
3322
def self.new(
3423
# Final message from the agent
35-
message: nil,
36-
# Steps taken by the agent
37-
steps: nil
24+
message: nil
3825
)
3926
end
4027

41-
sig { override.returns({ message: String, steps: T::Array[T.anything] }) }
28+
sig { override.returns({ message: String }) }
4229
def to_hash
4330
end
4431
end
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
module Stagehand
22
module Models
3-
type session_execute_agent_response =
4-
{ message: String, steps: ::Array[top] }
3+
type session_execute_agent_response = { message: String }
54

65
class SessionExecuteAgentResponse < Stagehand::Internal::Type::BaseModel
76
attr_reader message: String?
87

98
def message=: (String) -> String
109

11-
attr_reader steps: ::Array[top]?
10+
def initialize: (?message: String) -> void
1211

13-
def steps=: (::Array[top]) -> ::Array[top]
14-
15-
def initialize: (?message: String, ?steps: ::Array[top]) -> void
16-
17-
def to_hash: -> { message: String, steps: ::Array[top] }
12+
def to_hash: -> { message: String }
1813
end
1914
end
2015
end

test/stagehand/resources/sessions_test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ def test_execute_agent_required_params
5454

5555
assert_pattern do
5656
response => {
57-
message: String | nil,
58-
steps: ^(Stagehand::Internal::Type::ArrayOf[Stagehand::Internal::Type::Unknown]) | nil
57+
message: String | nil
5958
}
6059
end
6160
end

0 commit comments

Comments
 (0)