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/.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/.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/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 03903ec..85c6fc7 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.10.0" ``` 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; 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