Skip to content

Commit b7f052c

Browse files
feat: Update stainless.yml for project and publish settings
1 parent b8c518d commit b7f052c

4 files changed

Lines changed: 22 additions & 16 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish Packagist
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
publish:
7+
name: publish
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v6
12+
13+
- name: Publish to Packagist
14+
run: |-
15+
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"}'
16+
env:
17+
PACKAGIST_USERNAME: ${{ secrets.STAGEHAND_PACKAGIST_USERNAME || secrets.PACKAGIST_USERNAME }}
18+
PACKAGIST_SAFE_KEY: ${{ secrets.STAGEHAND_PACKAGIST_SAFE_KEY || secrets.PACKAGIST_SAFE_KEY }}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 8
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-43e6dd4ce19381de488d296e9036fea15bfea9a6f946cf8ccf4e02aecc8fb765.yml
33
openapi_spec_hash: f736e7a8acea0d73e1031c86ea803246
4-
config_hash: 75b561cd2ba925e4f2a62ec2f1d13738
4+
config_hash: b375728ccf7d33287335852f4f59c293

README.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,10 @@ The REST API documentation can be found on [docs.stagehand.dev](https://docs.sta
7777

7878
## Installation
7979

80-
To use this package, install via Composer by adding the following to your application's `composer.json`:
81-
8280
<!-- x-release-please-start-version -->
8381

84-
```json
85-
{
86-
"repositories": [
87-
{
88-
"type": "vcs",
89-
"url": "git@github.com:browserbase/stagehand-php.git"
90-
}
91-
],
92-
"require": {
93-
"browserbase/stagehand": "dev-main"
94-
}
95-
}
82+
```
83+
composer require "browserbase/stagehand 3.9.1"
9684
```
9785

9886
<!-- x-release-please-end -->

src/SSEStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private function parsedGenerator(): \Generator
4949
}
5050

5151
if ($data = $row['data'] ?? '') {
52-
if (str_starts_with($data, needle: 'finished')) {
52+
if (str_starts_with($data, needle: '{"data":{"status":"finished"')) {
5353
$done = true;
5454

5555
continue;

0 commit comments

Comments
 (0)