Skip to content

Commit c8e61dc

Browse files
authored
Merge pull request #2 from browserbase/release-please--branches--main--changes--next
release: 0.2.0
2 parents b47581e + d5519f5 commit c8e61dc

6 files changed

Lines changed: 23 additions & 42 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: a17b6052ac65237b7b8e145f4f692d3c
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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
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-php/compare/v0.1.0...v0.2.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([45ddfc2](https://github.com/browserbase/stagehand-php/commit/45ddfc23d06b22d47fe85f6d55dbe6f78f32d782))
10+
* **api:** manual updates ([77aeeea](https://github.com/browserbase/stagehand-php/commit/77aeeea5ae9c63e4239c9f37026f33e20dd8a5d7))
11+
312
## 0.1.0 (2025-12-16)
413

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

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ use Stagehand\Core\Exceptions\APIConnectionException;
8181

8282
try {
8383
$response = $client->sessions->start(
84-
browserbaseAPIKey: '<your API key here>',
85-
browserbaseProjectID: '<your project ID here>',
84+
browserbaseAPIKey: 'your Browserbase API key',
85+
browserbaseProjectID: 'your Browserbase Project ID',
8686
);
8787
} catch (APIConnectionException $e) {
8888
echo "The server could not be reached", PHP_EOL;
@@ -130,8 +130,8 @@ $client = new Client(maxRetries: 0);
130130

131131
// Or, configure per-request:
132132
$result = $client->sessions->start(
133-
browserbaseAPIKey: '<your API key here>',
134-
browserbaseProjectID: '<your project ID here>',
133+
browserbaseAPIKey: 'your Browserbase API key',
134+
browserbaseProjectID: 'your Browserbase Project ID',
135135
requestOptions: RequestOptions::with(maxRetries: 5),
136136
);
137137
```
@@ -152,8 +152,8 @@ Note: the `extra*` parameters of the same name overrides the documented paramete
152152
use Stagehand\RequestOptions;
153153

154154
$response = $client->sessions->start(
155-
browserbaseAPIKey: '<your API key here>',
156-
browserbaseProjectID: '<your project ID here>',
155+
browserbaseAPIKey: 'your Browserbase API key',
156+
browserbaseProjectID: 'your Browserbase Project ID',
157157
requestOptions: RequestOptions::with(
158158
extraQueryParams: ['my_query_parameter' => 'value'],
159159
extraBodyParams: ['my_body_parameter' => 'value'],

src/Sessions/SessionExecuteAgentResponse.php

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
use Stagehand\Core\Contracts\BaseModel;
1010

1111
/**
12-
* @phpstan-type SessionExecuteAgentResponseShape = array{
13-
* message?: string|null, steps?: list<mixed>|null
14-
* }
12+
* @phpstan-type SessionExecuteAgentResponseShape = array{message?: string|null}
1513
*/
1614
final class SessionExecuteAgentResponse implements BaseModel
1715
{
@@ -24,14 +22,6 @@ final class SessionExecuteAgentResponse implements BaseModel
2422
#[Optional]
2523
public ?string $message;
2624

27-
/**
28-
* Steps taken by the agent.
29-
*
30-
* @var list<mixed>|null $steps
31-
*/
32-
#[Optional(list: 'mixed')]
33-
public ?array $steps;
34-
3525
public function __construct()
3626
{
3727
$this->initialize();
@@ -41,17 +31,12 @@ public function __construct()
4131
* Construct an instance from the required parameters.
4232
*
4333
* You must use named parameters to construct any parameters with a default value.
44-
*
45-
* @param list<mixed> $steps
4634
*/
47-
public static function with(
48-
?string $message = null,
49-
?array $steps = null
50-
): self {
35+
public static function with(?string $message = null): self
36+
{
5137
$self = new self;
5238

5339
null !== $message && $self['message'] = $message;
54-
null !== $steps && $self['steps'] = $steps;
5540

5641
return $self;
5742
}
@@ -66,17 +51,4 @@ public function withMessage(string $message): self
6651

6752
return $self;
6853
}
69-
70-
/**
71-
* Steps taken by the agent.
72-
*
73-
* @param list<mixed> $steps
74-
*/
75-
public function withSteps(array $steps): self
76-
{
77-
$self = clone $this;
78-
$self['steps'] = $steps;
79-
80-
return $self;
81-
}
8254
}

src/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
namespace Stagehand;
66

77
// x-release-please-start-version
8-
const VERSION = '0.1.0';
8+
const VERSION = '0.2.0';
99
// x-release-please-end

0 commit comments

Comments
 (0)