From 5a2f5e551624d6a57f5a00f4f19e239474034796 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:14:09 +0000 Subject: [PATCH 1/2] feat: Update stainless.yml for project and publish settings --- .github/workflows/publish-packagist.yml | 18 ++++++++++++++++++ .stats.yml | 2 +- README.md | 16 ++-------------- src/SSEStream.php | 2 +- 4 files changed, 22 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/publish-packagist.yml diff --git a/.github/workflows/publish-packagist.yml b/.github/workflows/publish-packagist.yml new file mode 100644 index 0000000..b299f7f --- /dev/null +++ b/.github/workflows/publish-packagist.yml @@ -0,0 +1,18 @@ +name: Publish Packagist +on: + workflow_dispatch: + +jobs: + publish: + name: publish + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + + - name: Publish to Packagist + run: |- + curl --fail-with-body -X POST -H 'Content-Type: application/json' "https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_SAFE_KEY}" -d '{"repository":"https://www.github.com/browserbase/stagehand-php"}' + env: + PACKAGIST_USERNAME: ${{ secrets.STAGEHAND_PACKAGIST_USERNAME || secrets.PACKAGIST_USERNAME }} + PACKAGIST_SAFE_KEY: ${{ secrets.STAGEHAND_PACKAGIST_SAFE_KEY || secrets.PACKAGIST_SAFE_KEY }} \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index f3c17f9..da47671 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 8 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-43e6dd4ce19381de488d296e9036fea15bfea9a6f946cf8ccf4e02aecc8fb765.yml openapi_spec_hash: f736e7a8acea0d73e1031c86ea803246 -config_hash: 75b561cd2ba925e4f2a62ec2f1d13738 +config_hash: b375728ccf7d33287335852f4f59c293 diff --git a/README.md b/README.md index 03903ec..ddd8b62 100644 --- a/README.md +++ b/README.md @@ -77,22 +77,10 @@ The REST API documentation can be found on [docs.stagehand.dev](https://docs.sta ## Installation -To use this package, install via Composer by adding the following to your application's `composer.json`: - -```json -{ - "repositories": [ - { - "type": "vcs", - "url": "git@github.com:browserbase/stagehand-php.git" - } - ], - "require": { - "browserbase/stagehand": "dev-main" - } -} +``` +composer require "browserbase/stagehand 3.9.1" ``` diff --git a/src/SSEStream.php b/src/SSEStream.php index ee5b5a2..db4b673 100644 --- a/src/SSEStream.php +++ b/src/SSEStream.php @@ -49,7 +49,7 @@ private function parsedGenerator(): \Generator } if ($data = $row['data'] ?? '') { - if (str_starts_with($data, needle: 'finished')) { + if (str_starts_with($data, needle: '{"data":{"status":"finished"')) { $done = true; continue; From 95e76c36d184cb3ed4c3844f14114a8b31d39c1f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 29 Jan 2026 19:14:24 +0000 Subject: [PATCH 2/2] release: 3.10.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 2 +- src/Version.php | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 53c5889..25709d1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.9.1" + ".": "3.10.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8781d3c..bbabc74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.10.0 (2026-01-29) + +Full Changelog: [v3.9.1...v3.10.0](https://github.com/browserbase/stagehand-php/compare/v3.9.1...v3.10.0) + +### Features + +* Update stainless.yml for project and publish settings ([5a2f5e5](https://github.com/browserbase/stagehand-php/commit/5a2f5e551624d6a57f5a00f4f19e239474034796)) + ## 3.9.1 (2026-01-29) Full Changelog: [v3.9.0...v3.9.1](https://github.com/browserbase/stagehand-php/compare/v3.9.0...v3.9.1) diff --git a/README.md b/README.md index ddd8b62..85c6fc7 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ The REST API documentation can be found on [docs.stagehand.dev](https://docs.sta ``` -composer require "browserbase/stagehand 3.9.1" +composer require "browserbase/stagehand 3.10.0" ``` diff --git a/src/Version.php b/src/Version.php index 7a041f6..ee69f1a 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Stagehand; // x-release-please-start-version -const VERSION = '3.9.1'; +const VERSION = '3.10.0'; // x-release-please-end