Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/publish-packagist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Publish Packagist
on:
workflow_dispatch:

release:
types: [published]

jobs:
publish:
name: publish
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.15.0"
".": "3.15.1"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-5d0052068f044366d6d31570d9712922c9a80fdd6f9995af815e9afc075507ef.yml
openapi_spec_hash: c0cb787da075d8cd2d938c05b36b5efa
config_hash: 4252fc025e947bc0fd6b2abd91a0cc8e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-6fd391f729eb05dc7b6168adff89e6198bc545ebd4ff737494d72288870e0977.yml
openapi_spec_hash: ee16862542659f47acc8dcd5669c7623
config_hash: 7386d24e2f03a3b2a89b3f6881446348
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 3.15.1 (2026-02-20)

Full Changelog: [v3.15.0...v3.15.1](https://github.com/browserbase/stagehand-php/compare/v3.15.0...v3.15.1)

### Chores

* **internal:** remove mock server code ([084d88e](https://github.com/browserbase/stagehand-php/commit/084d88e9049da3fc2acca9f2077cb37eb5dacd8a))
* **release:** add packagist trigger on published release ([61d3be2](https://github.com/browserbase/stagehand-php/commit/61d3be273bc999a751fc060e338edd784c30136e))
* update mock server docs ([3a5e75e](https://github.com/browserbase/stagehand-php/commit/3a5e75efcd92d87945e5f4970c5deef392e6f98a))

## 3.15.0 (2026-02-18)

Full Changelog: [v3.14.0...v3.15.0](https://github.com/browserbase/stagehand-php/compare/v3.14.0...v3.15.0)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The REST API documentation can be found on [docs.stagehand.dev](https://docs.sta
<!-- x-release-please-start-version -->

```
composer require "browserbase/stagehand 3.15.0"
composer require "browserbase/stagehand 3.15.1"
```

<!-- x-release-please-end -->
Expand Down
41 changes: 0 additions & 41 deletions scripts/mock

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,6 @@ set -e

cd "$(dirname "$0")/.."

RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color

function prism_is_running() {
curl --silent "http://localhost:4010" >/dev/null 2>&1
}

kill_server_on_port() {
pids=$(lsof -t -i tcp:"$1" || echo "")
if [ "$pids" != "" ]; then
kill "$pids"
echo "Stopped $pids."
fi
}

function is_overriding_api_base_url() {
[ -n "$TEST_API_BASE_URL" ]
}

if ! is_overriding_api_base_url && ! prism_is_running ; then
# When we exit this script, make sure to kill the background mock server process
trap 'kill_server_on_port 4010' EXIT

# Start the dev server
./scripts/mock --daemon
fi

if is_overriding_api_base_url ; then
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
echo
elif ! prism_is_running ; then
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
echo -e "running against your OpenAPI spec."
echo
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo

exit 1
else
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
echo
fi

exec -- ./vendor/bin/pest --colors=always
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
namespace Stagehand;

// x-release-please-start-version
const VERSION = '3.15.0';
const VERSION = '3.15.1';
// x-release-please-end
24 changes: 12 additions & 12 deletions tests/Services/SessionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function setUp(): void
public function testAct(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->act(
Expand All @@ -60,7 +60,7 @@ public function testAct(): void
public function testActWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->act(
Expand Down Expand Up @@ -88,7 +88,7 @@ public function testActWithOptionalParams(): void
public function testEnd(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->end(
Expand All @@ -103,7 +103,7 @@ public function testEnd(): void
public function testExecute(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->execute(
Expand All @@ -122,7 +122,7 @@ public function testExecute(): void
public function testExecuteWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->execute(
Expand Down Expand Up @@ -163,7 +163,7 @@ public function testExecuteWithOptionalParams(): void
public function testExtract(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->extract(
Expand All @@ -178,7 +178,7 @@ public function testExtract(): void
public function testNavigate(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->navigate(
Expand All @@ -194,7 +194,7 @@ public function testNavigate(): void
public function testNavigateWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->navigate(
Expand All @@ -216,7 +216,7 @@ public function testNavigateWithOptionalParams(): void
public function testObserve(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->observe(
Expand All @@ -231,7 +231,7 @@ public function testObserve(): void
public function testReplay(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->replay(
Expand All @@ -246,7 +246,7 @@ public function testReplay(): void
public function testStart(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->start(modelName: 'openai/gpt-4o');
Expand All @@ -259,7 +259,7 @@ public function testStart(): void
public function testStartWithOptionalParams(): void
{
if (UnsupportedMockTests::$skip) {
$this->markTestSkipped('Prism tests are disabled');
$this->markTestSkipped('Mock server tests are disabled');
}

$result = $this->client->sessions->start(
Expand Down