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/.gitignore b/.gitignore index 08cb479..71d6d15 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ playground/ *.swo *.swp vendor/ + +# do not edit! excludes generated files used internally +.artifacts/ diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 940f2ca..faa0df4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.11.0" + ".": "3.12.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index e42f0bb..9738f87 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-8fbb3fa8f3a37c1c7408de427fe125aadec49f705e8e30d191601a9b69c4cc41.yml openapi_spec_hash: 48b4dfac35a842d7fb0d228caf87544e -config_hash: 242651c4871c2869ba3c2e3d337505b9 +config_hash: 7386d24e2f03a3b2a89b3f6881446348 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7507eda..77e3fdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 3.12.0 (2026-01-31) + +Full Changelog: [v3.11.0...v3.12.0](https://github.com/browserbase/stagehand-php/compare/v3.11.0...v3.12.0) + +### Features + +* Removed MCP from readme for now ([94848f5](https://github.com/browserbase/stagehand-php/commit/94848f59fbdad4ace2f3a51303e1b3703a91bc15)) + + +### Chores + +* **internal:** ignore stainless-internal artifacts ([fa1d9e6](https://github.com/browserbase/stagehand-php/commit/fa1d9e675e935a164d96664b64e6688e7b1a66c0)) + ## 3.11.0 (2026-01-29) Full Changelog: [v3.10.0...v3.11.0](https://github.com/browserbase/stagehand-php/compare/v3.10.0...v3.11.0) diff --git a/README.md b/README.md index 03903ec..247b7e2 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.12.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 43a07f8..919dd22 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Stagehand; // x-release-please-start-version -const VERSION = '3.11.0'; +const VERSION = '3.12.0'; // x-release-please-end