145 Commits

Author SHA1 Message Date
Sean McGuire
93bbf026e9
[chore]: add error cause lint rule (#1745)
# why
- to enforce best practices in error handling by requiring the cause of
a given error to be included in the error that gets thrown
# what changed
- added the `preserve-caught-error` lint rule
- updated calls that were not preserving caught errors
- also bumped eslint version & typescript eslint for compatibility with
the new rule

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds an ESLint rule to require preserving the original error when
rethrowing, updates code to pass error causes, and fixes related linting
issues. This improves debugging by linking errors via the cause option.

- **Dependencies**
  - ESLint → 10.0.2
  - @eslint/js → 10.0.1
  - typescript-eslint → 8.56.1

<sup>Written for commit b4cd5039b34b8156a1b55a88196d9aabc97c51d7.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1745">Review in
cubic</a></sup>

<!-- End of auto-generated description by cubic. -->
2026-02-24 14:03:33 -08:00
Nick Sweeting
50a6f574a3
Speed up turbo, package.json scripts, and CI configuration (#1712)
# why

# what changed

# test plan

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Speed up builds and tests by upgrading Turborepo, tightening cache keys,
and refactoring scripts to run from compiled dist (ESM/CJS). CI is
faster and more reliable, with ESM-first SEA builds for the server.

- **Refactors**
- Upgrade Turborepo to 2.8.10 and rewrite turbo.json with explicit
inputs/outputs for better caching.
- Stronger Turbo cache keys in CI (lockfiles + workspace + package.json
+ turbo.json + commit), workflow-scoped concurrency, and a 60s session
create timeout.
- Standardized CI via a composite setup action; build now runs before
lint.
- Build/test scripts resolve the repo root via fileURLToPath; tests run
from compiled dist; add Vitest config for CJS; CJS builds include
sourcemaps.
- Server: ESM-first SEA build and split server build into dist vs SEA
steps with a new build:server:dist script.
- Unified test scripts across packages; top-level test runs all suites,
and evals tests support source or dist CLI via --cli.

- **Migration**
  - Use Node 20.19+ or 22.12+ (enforced in core).
  - Run pnpm install to pick up the Turbo upgrade.
- Build before tests: pnpm -w build. For SEA tests, also run pnpm -w
--filter=@browserbasehq/stagehand-server run build:sea:esm.

<sup>Written for commit 843857c13fc4a3975c18b0e44002ae9f55e4dd66.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1712">Review in
cubic</a></sup>

<!-- End of auto-generated description by cubic. -->

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-02-19 15:35:37 -08:00
Nick Sweeting
a091affd2c
[chore]: add .js to the end of all imports (#1700)
# why

- removes the need to append .js to all imports during esm build process
- aligns us with the default standard for esm / esbuild js projects that
also need to support cjs
- this allows us to seamlessly support ESM, CJS, and TSX with no
remapping needed

# what changed

# test plan

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Standardized all internal imports and re-exports to include .js
extensions to enable native ESM resolution, while keeping CJS and TS
working without path remapping. Updated examples to use explicit
index.js entrypoints and environment-driven config for easier local
runs.

- **Refactors**
- Appended .js to all relative imports and barrel exports across core,
v3 agent, DOM runtimes/locator scripts, caches, handlers, external
clients, and index files.
- Switched examples to ../lib/v3/index.js, fixed nested re-export paths,
and added env-based config (BROWSERBASE_API_KEY, BROWSERBASE_PROJECT_ID,
MODEL_API_KEY) passed into Stagehand/model.
  - Updated dotenv to ^17.3.1 in dev deps. No public API changes.

- **Migration**
  - Most users importing from package entry points: no changes.
- If importing internal files locally (e.g., examples or custom
integrations), include .js in paths and prefer index.js for directories.

<sup>Written for commit d1d0547daafca47a06a8aa9124d7081c68042270.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1700">Review in
cubic</a></sup>

<!-- End of auto-generated description by cubic. -->
2026-02-18 12:19:15 -08:00
Sean McGuire
c815c55c35
[chore]: add dotenv to dev deps (#1699)
# why
- so that `dotenv` is installed with `pnpm i`
# what changed
- added `dotenv` to dev dependencies

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added dotenv 16.4.5 to devDependencies so it installs with pnpm i. This
enables .env loading in local dev scripts without manual installation.

<sup>Written for commit 53f8c54776eaefa5aab7a8c755ce37d84ae5f2e9.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1699">Review in
cubic</a></sup>

<!-- End of auto-generated description by cubic. -->
2026-02-18 11:18:18 -08:00
Nick Sweeting
afbd08bb63
[STG-1232] Speed up PR Github Actions checks, add code coverage, fix e2e bb tests running not running in bb mode, remove tsup, generate unified re-used ESM and CJS builds with sourcemaps and types, switch CI to new Evals CLI (#1632)
# why

- unit tests, e2e integration tests, and evals were taking 10~15 minutes
per pr
- finding the specific failing eval or test was tedious and required
reading tons of log output
- we weren't leveraging pnpm or turbo caches or github action's native
chromium install
- tests were flaky because CDP would randomly fail to connect when
github actions runner was overloaded
- e2e bb tests were not actually running against bb, so it was
previously just double-running e2e:local and reporting it as bb
- tsup has been deprecated for a while and should be replaced by esbuild

# what changed

- parallelized all CI tests and broke out evals and tests into
individual matrix jobs
- created unified node+pnpm+turbo setup action that all other actions
call
- verified vanilla chromium is able to launch inside all the e2e local
jobs before running any of our own code to catch resource contention
flakyness
- add proper esm and csj builds with sourcemaps and types for aligned
coverage
- remove tsup dependency
- switch to new evals cli
- add coverage reporting
- fix some flaky tests needed to get everything passing reliably

<img width="1635" height="609" alt="Screenshot 2026-01-26 at 1 04 04 PM"
src="https://github.com/user-attachments/assets/24bb2ea9-e182-4cb3-9856-6a77efe921b7"
/>



<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Speeds up CI and makes tests stable by running Vitest/Playwright/Evals
on the built ESM dist with cached artifacts, verified runner Chromium,
weighted Browserbase routing, and merged coverage. Publishes a unified
ESM+CJS SDK with sourcemaps/types and SEA binaries from ESM; fixes
Browserbase e2e, switches to the new Evals CLI, and adds flaky‑test
reporting, addressing Linear STG‑1232.

- **New Features**
- CI: split pnpm/Turbo caches; composite actions (setup/caches, Chromium
launch check, region selection, CTRF/V8 uploads); reuse artifacts; use
Actions Chromium via CHROME_PATH with --no-sandbox; unique CTRF reports;
V8 coverage normalization/merge with cancellation safety; push triggers
enabled.
- Tests: run from dist/esm; env reporter; true Browserbase runs with
weighted/randomized regions; hard timeouts for LLM and session
create/CDP connect; faster multi‑click dispatch; higher timeouts and
targeted skips; cleanup helpers; fixes for init‑script,
wait‑for‑selector, and screenshot reliability.
- Build/SDK/SEA: export map (ESM import + CJS require) with
sourcemaps/types; SEA binaries built from ESM with sourcemaps and plain
logs in CI; removed tsup and dotenv; AISdk/CustomOpenAI moved to lib and
exported; getAISDKLanguageModel added; replay metrics now include
method/parameters/result/timestamps/cost.

- **Migration**
- Set STAGEHAND_BROWSER_TARGET=local|browserbase, STAGEHAND_ENV
(replaces TEST_ENV), CHROME_PATH; tune LLM_MAX_MS,
BROWSERBASE_SESSION_CREATE_MAX_MS, BROWSERBASE_CDP_CONNECT_MAX_MS;
optionally set BROWSERBASE_REGION_DISTRIBUTION.
- Remove dotenv; set env vars directly and import
@browserbasehq/stagehand via the export map (avoid dist paths).

<sup>Written for commit 5c76fecf6b9016f4ad5273d4143c3fe747b5d06f.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1632">Review in
cubic</a></sup>

<!-- End of auto-generated description by cubic. -->







<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Ships an ESM‑first SDK with a CJS entry, unified sourcemaps, and types.
CI runs Vitest/Playwright and the new Evals CLI against the built ESM
dist using the runner’s Chromium (launch‑verified), with region‑weighted
Browserbase routing, normalized V8 coverage, unique CTRF artifacts, and
more stable tests (timeouts, Browserbase skips, understudy click/API
fixes).

Speed up CI by running Vitest and Playwright tests in parallel matrices,
add V8/CTRF coverage, and stabilize Browserbase/LLM flows with hard
timeouts and better cleanup. Server integration tests now use the
runner’s Chromium for reliability and are folded into the main CI.

- **Refactors**
- Parallelized core unit tests via discover-core-tests/core-unit-tests
(Vitest matrix, fail-fast).
- Parallelized E2E via discover-e2e-tests (Playwright local +
Browserbase) gated on core changes; weighted Browserbase region
selection; verify Chromium/CDP before tests; local uses runner Chromium
via CHROME_PATH and --no-sandbox; Playwright can emit JUnit when
CTRF_JUNIT_PATH is set.
- Unified Lint & Build with Turbo caching and shared artifacts;
tests/evals download and reuse; prepare script skips build in CI; SEA
builds support sourcemaps.
- Enforced configurable timeouts and parallelism via env (LLM_MAX_MS,
BROWSERBASE_CDP_CONNECT_MAX_MS, BROWSERBASE_SESSION_CREATE_MAX_MS,
LOCAL_SESSION_LIMIT_PER_E2E_TEST,
BROWSERBASE_SESSION_LIMIT_PER_E2E_TEST, EVAL_*); added LLM and
Browserbase hard timeouts; improved click event dispatch to reduce
remote flakiness.
- Explicitly close Browserbase sessions in tests and evals to free
capacity.
- Added composite actions: setup-node-pnpm-turbo,
verify-chromium-launch, select-browserbase-region, publish-ctrf-report
(JUnit→CTRF and evals), upload-v8-coverage.
- Renamed TEST_ENV to STAGEHAND_ENV across E2E; added an env reporter
for CI logs; removed the standalone stagehand-server tests workflow and
ran server tests in the unified CI with Node’s test runner and GitHub
Actions Chromium.


- **New Features**
- Build/Exports: ESM in dist/esm and CJS in dist/cjs via export map;
types from ESM; SEA binaries built from dist with sourcemaps; server SEA
job targets CJS; new build/test/coverage scripts; Node loader maps
package imports to dist/esm; ESM‑safe pathing (fileURLToPath);
ESLint/Prettier tweaks; dotenv removed.
- CI: Composite actions (setup-node-pnpm-turbo, verify-chromium-launch,
select-browserbase-region, upload-ctrf-report, upload-v8-coverage); uses
runner Chromium via CHROME_PATH with --no-sandbox and launch checks;
weighted Browserbase region selection; unique CTRF artifacts; V8
coverage normalized/merged with debug logs and graceful cancellation;
Playwright/Vitest discover tests in dist/esm; push/PR triggers enabled.
- Tests & API: Vitest/Playwright run on dist/esm; new env reporter and
closeV3 helper; tighter multi‑click CDP dispatch; higher timeouts and
targeted skips (e.g., console on Browserbase) reduce flakiness; local
launches honor CHROME_PATH; replay metrics now include
parameters/result/timestamps/cost with parser fixes; AISdk/CustomOpenAI
clients moved to lib/v3/external_clients and exported; env‑driven hard
timeouts for LLM ops and Browserbase session create/CDP connect;
understudy API usage fixes.

- **Migration**
- Set STAGEHAND_BROWSER_TARGET=local|browserbase and CHROME_PATH; tune
LLM_MAX_MS, BROWSERBASE_SESSION_CREATE_MAX_MS, and
BROWSERBASE_CDP_CONNECT_MAX_MS; optionally set
BROWSERBASE_REGION_DISTRIBUTION.
  - dotenv support is removed; set env vars explicitly in dev and CI.
- Import @browserbasehq/stagehand via the export map; do not reference
dist paths or prior tsup outputs.

<sup>Written for commit 8119145426a4e6e5cb614dee5b3f2d8fe41a65e9.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1632">Review in
cubic</a></sup>

<!-- End of auto-generated description by cubic. -->
2026-02-17 17:45:49 -08:00
Sean McGuire
90b869d3bb
[chore]: add stricter linting rules (#1597)
# why
- for better code hygiene 
# what changed
- added some basic security linting rules


<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Added stricter ESLint security rules to block eval and dynamic Function
usage. This improves code hygiene and catches unsafe patterns early.

- **Refactors**
  - Enforce no-eval, no-implied-eval, and no-new-func.
- Block Function constructors (direct, window.Function,
globalThis.Function).
  - Enable security/detect-eval-with-expression.

- **Dependencies**
  - Add eslint-plugin-security.

<sup>Written for commit dda6483f6d84599783f5966e94f6d675c0a40a76.
Summary will update on new commits. <a
href="https://cubic.dev/pr/browserbase/stagehand/pull/1597">Review in
cubic</a></sup>

<!-- End of auto-generated description by cubic. -->
2026-01-22 11:49:31 -08:00
Shrey Pandya
df944e4d5d
Fix SlowBuffer compatibility for Node 25+ (#1568)
## Summary
- Fixes import error on Node 25+ (and briefly Node 24.0.0) where `SlowBuffer` was removed.
- The `buffer-equal-constant-time` package (transitive dep via gtoken → jws → jwa) accesses `SlowBuffer.prototype` at module load time, causing immediate failure on import.

Closes #1552

## Solution
Added `jwa: "^2.0.1"` to package.json overrides. Version 2.0.1 uses `crypto.timingSafeEqual()` (available since Node 6) instead of `buffer-equal-constant-time`, avoiding the `SlowBuffer` dependency entirely.

This is cleaner than a polyfill approach because it uses the upstream fix rather than shimming deprecated APIs.

## Testing
✅ Node 25.4.0 - Stagehand imports successfully  
✅ Node 24.13.0 - Works (SlowBuffer restored in 24.0.1)  
✅ Node 20.19.5 - Works  
✅ Bun 1.3.4 - Works  
✅ Build passes  

## Blast Radius
- **Affected:** Node 25+ users (SlowBuffer permanently removed)
- **Not affected:** Node ≤24.0.1, Bun (both have SlowBuffer)

🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixes import errors on Node 25+ and Bun by overriding jwa to 2.0.1, which replaces SlowBuffer usage with crypto.timingSafeEqual. Restores compatibility for the gtoken → jws → jwa chain at module load.

- **Dependencies**
  - Override jwa to ^2.0.1 in package.json.
  - Removes the need for a SlowBuffer shim by avoiding buffer-equal-constant-time.

<sup>Written for commit 82d075c1caa9f950c97ffc0ba7ce90d71613f3ca. Summary will update on new commits.</sup>

<!-- End of auto-generated description by cubic. -->
2026-01-20 18:24:35 -05:00
tkattkat
cadd192066
Update screenshot collector (#1373)
# why

- when transitioning to v3, we did not use the latest version of
screenshot collector
- screenshot collector currently fails due to not having page.on and
page.off support for the load, and domcontentloaded events.

# what changed

- added latest version of screenshot collector 

# test plan

- ran evals in cli with additional logging to also verify everything is
working as expected
























<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Updated the evals CLI screenshot collector to the latest version, adding
image-diff filtering and a V3 event bus that emits agent screenshots.
This reduces duplicate screenshots and stabilizes capture on v3 pages
where navigation events are disabled.

- **New Features**
  - Skip similar screenshots using MSE/SSIM thresholds with sharp.
- Event bus integration: agents emit screenshots; collector can ingest
them.
- Non-blocking initial/final captures and safer interval capture with
error handling.

- **Dependencies**
  - Added sharp ^0.34.5 for image processing (evals and core).
  - Patch bump via changeset for @browserbasehq/stagehand-evals.

<sup>Written for commit f4e90f85145385ba2f5a02d535a8fb0ef8406a71.
Summary will update automatically on new commits.</sup>

<!-- End of auto-generated description by cubic. -->

---------

Co-authored-by: miguel <miguelg71921@gmail.com>
Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>
2025-12-15 12:05:23 -08:00
Miguel
c201b15bfc
Clean workspace dev dependencies (#1340)
# why

These dev dependencies don't belong here. Some are no longer used, some
should go into their respective packages

# what changed

Moved dev dependencies to respective packages and removed unused ones

# test plan










<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Moved dev dependencies from the workspace root into the packages that
use them and removed unused ones to cut install bloat.

- **Dependencies**
- Removed unused devDependencies from the root; moved required ones into
packages/core and packages/evals.
- Added missing dev deps to packages/core (@types/adm-zip, @types/node,
@types/ws, adm-zip, chalk, esbuild) and packages/evals (braintrust,
chalk, string-comparison).
  - Cleaned pnpm-lock.yaml (large reduction in entries).

<sup>Written for commit c6f62212a3e548ec8e7c4d05685e6ca0412952fb.
Summary will update automatically on new commits.</sup>

<!-- End of auto-generated description by cubic. -->
2025-12-09 17:17:20 -08:00
Sean McGuire
e634539c82
rm orca pkg from evals (#1197)
# why

# what changed

# test plan
2025-10-29 12:16:22 -07:00
Miguel
f28a0a6335
Realv3docs (#1190)
# why

# what changed

# test plan

---------

Co-authored-by: Derek Meegan <derek@browserbase.com>
Co-authored-by: Sophie Chance <74380004+sophie2chance2@users.noreply.github.com>
Co-authored-by: Chris Read <rcreadii@gmail.com>
Co-authored-by: Victor Lue <vict.lue@gmail.com>
Co-authored-by: tkattkat <tkat@tkat.net>
Co-authored-by: Sameel <sameel.m.arif@gmail.com>
Co-authored-by: Kylejeong2 <kylejeong21@gmail.com>
Co-authored-by: Filip Michalsky <filip@paywithsoap.com>
2025-10-28 17:55:55 -07:00
Filip Michalsky
3c1c7cd2b5
first ci attempt for v3 (#1169)
# why
v3 routes were previously not on CI

# what changed
added CI runners for v3

# test plan
CI passes
2025-10-27 21:16:50 -07:00
tkattkat
231c25a0e7
ai sdk v5 migration in v3 (#1153)
# why

we need to upgrade from ai sdk v4 to v5

# what changed

migrated from v4 to v5

# test plan
2025-10-21 16:28:01 -07:00
Sean McGuire
617c3c40bf
unify model in agent config (#1127)
# why

# what changed

# test plan

---------

Co-authored-by: miguel <miguelg71921@gmail.com>
2025-10-11 09:33:09 -07:00
Miguel
2e02bed7cd
monorepo reorg (#1120)
# why

# what changed

# test plan

---------

Co-authored-by: Sean McGuire <seanmcguire1@outlook.com>
2025-10-10 12:29:49 -07:00
Sean McGuire
667f65859f bump version 2025-10-08 17:38:39 -07:00
Sean McGuire
58172e7805 update package.json 2025-10-06 13:22:06 -07:00
Sean McGuire
1a37005f71 delete v2 code 2025-09-22 15:00:28 -07:00
Sean McGuire
b801b5b196 add patchright 2025-09-17 14:52:32 -07:00
Sean McGuire
9625bad95a Merge branch 'main' into v3
# Conflicts:
#	.changeset/pretty-jokes-own.md
#	package.json
#	pnpm-lock.yaml
2025-09-10 12:39:19 -07:00
Miguel
c25a253a12
New Evals CLI (#1061)
# why
The Evals CLI has a lot of potential

# what changed
Added a simplified, cleaner version of the cli that's installable with
`pnpm build:cli`. Then, the new CLI can be run with just:
```bash
evals
```
Includes options such as:
```
evals <command> <target> [options]

Commands
  run       Execute evals or benchmarks
  list      List available evals/benchmarks
  config    Get/set default configuration
  help      Show this help message

Examples
  # Run all custom evals
  evals run all

  # Run specific category
  evals run act -e browserbase -t 5

  # Run specific eval
  evals run login

  # Run benchmark
  evals run benchmark:onlineMind2Web -l 10 -f difficulty=easy

  # Configure defaults
  evals config set env browserbase
  evals config set trials 5

Options
  -e, --env         Environment: local|browserbase
  -t, --trials      Number of trials per eval
  -c, --concurrency Max parallel sessions
  -m, --model       Model override
  -p, --provider    Provider override
  --api             Use Stagehand API

  Benchmark-specific:
  -l, --limit       Max tasks to run
  -s, --sample      Random sample before limit
  -f, --filter      Benchmark filters (key=value)
```

Added a README.md within the evals directory for detailed descriptions. 

# test plan
- [x] tested locally
- [x] tested on ci
*The new cli is backwards compatible and doesn't require (yet) CI
updates
2025-09-10 11:57:58 -07:00
github-actions[bot]
749ce6c4c1
Version Packages (#1031)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @browserbasehq/stagehand@2.5.0

### Minor Changes

- [#981](https://github.com/browserbase/stagehand/pull/981)
[`8244ab2`](8244ab247c)
Thanks [@sameelarif](https://github.com/sameelarif)! - Added support for
`stagehand.agent` to interact with MCP servers as well as custom tools
to be passed in. For more information, reference the [MCP integrations
documentation](https://docs.stagehand.dev/best-practices/mcp-integrations)

### Patch Changes

- [#959](https://github.com/browserbase/stagehand/pull/959)
[`09b5e1e`](09b5e1e9c2)
Thanks [@filip-michalsky](https://github.com/filip-michalsky)! - add
webvoyager evals

- [#1049](https://github.com/browserbase/stagehand/pull/1049)
[`e3734b9`](e3734b9c98)
Thanks [@miguelg719](https://github.com/miguelg719)! - Support local MCP
server connections

- [#1025](https://github.com/browserbase/stagehand/pull/1025)
[`be85b19`](be85b19679)
Thanks [@tkattkat](https://github.com/tkattkat)! - add support for
custom baseUrl within openai provider

- [#1040](https://github.com/browserbase/stagehand/pull/1040)
[`88d1565`](88d1565c65)
Thanks [@miguelg719](https://github.com/miguelg719)! - Allow OpenAI CUA
to take in an optional baseURL

- [#1046](https://github.com/browserbase/stagehand/pull/1046)
[`ab5d6ed`](ab5d6ede19)
Thanks [@tkattkat](https://github.com/tkattkat)! - Add support for gpt-5
in operator agent

## @browserbasehq/stagehand-evals@1.0.9

### Patch Changes

- Updated dependencies
\[[`09b5e1e`](09b5e1e9c2),
[`e3734b9`](e3734b9c98),
[`8244ab2`](8244ab247c),
[`be85b19`](be85b19679),
[`88d1565`](88d1565c65),
[`ab5d6ed`](ab5d6ede19)]:
    -   @browserbasehq/stagehand@2.5.0

## @browserbasehq/stagehand-examples@1.0.9

### Patch Changes

- Updated dependencies
\[[`09b5e1e`](09b5e1e9c2),
[`e3734b9`](e3734b9c98),
[`8244ab2`](8244ab247c),
[`be85b19`](be85b19679),
[`88d1565`](88d1565c65),
[`ab5d6ed`](ab5d6ede19)]:
    -   @browserbasehq/stagehand@2.5.0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-09-04 10:55:47 -07:00
Sean McGuire
6e1dbe8624 add shadow dom support 2025-08-30 22:44:24 -07:00
Sameel
8244ab247c
MCP and Tool-Call Support (#981)
# why
At the moment, Stagehand excels at browser automation but is limited in
being able to interact with third-party services. Many production use
cases require supporting these integrations. As the scope of browser
agents expand, it’s becoming increasingly important that agents adapt to
the web rather than the web adapting to them.

# what changed
Added support for integrations (MCPs) and custom tools to be passed in
to the Stagehand agent. Here are some examples:
```ts
const agent = stagehand.agent({
  integrations: [
    "https://www.example.com/mcp",
  ],
});
```
The above syntax will internally create the MCP connection. However, if
you prefer a self-managed connection, there are two more options
available. The first option is to use our built-in util to establish a
connection:
```ts
import { connectToMCPServer } from "@browserbasehq/stagehand"

const exampleClient = await connectToMCPServer("https://www.example.com/mcp")

const agent = stagehand.agent({
  integrations: [exampleClient],
});
```
The alternative is to establish a connection to the MCP server with your
own client. Stagehand takes in a `Client` object from the
`@modelcontextprotocol/sdk` package. Please refer to their
[documentation](https://modelcontextprotocol.io/docs/getting-started/intro)
for more information.

# test plan
Internal agent evals.

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: tkattkat <tkat@tkat.net>
2025-08-29 15:11:51 -07:00
github-actions[bot]
c17ac41e94
Version Packages (#1013)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @browserbasehq/stagehand@2.4.4

### Patch Changes

- [#1012](https://github.com/browserbase/stagehand/pull/1012)
[`9e8c173`](9e8c17374f)
Thanks [@miguelg719](https://github.com/miguelg719)! - Fix disabling api
validation whenever a customLLM client is provided

## @browserbasehq/stagehand-evals@1.0.8

### Patch Changes

- Updated dependencies
\[[`9e8c173`](9e8c17374f)]:
    -   @browserbasehq/stagehand@2.4.4

## @browserbasehq/stagehand-examples@1.0.8

### Patch Changes

- Updated dependencies
\[[`9e8c173`](9e8c17374f)]:
    -   @browserbasehq/stagehand@2.4.4

## @browserbasehq/stagehand-lib@2.4.1

### Patch Changes

- [#1027](https://github.com/browserbase/stagehand/pull/1027)
[`455b61f`](455b61fb6f)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Fixed small
issue with module-level state guard for the Playwright
selectors.register call

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-27 11:29:32 -07:00
github-actions[bot]
b52e4f9c08
Version Packages (#945)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @browserbasehq/stagehand@2.4.3

### Patch Changes

- [#951](https://github.com/browserbase/stagehand/pull/951)
[`f45afdc`](f45afdccc8)
Thanks [@miguelg719](https://github.com/miguelg719)! - Patch GPT-5 new
api format

- [#954](https://github.com/browserbase/stagehand/pull/954)
[`261bba4`](261bba43fa)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - add support
for shadow DOMs (open & closed mode) when experimental: true

- [#944](https://github.com/browserbase/stagehand/pull/944)
[`8de7bd8`](8de7bd8635)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - Bump zod
version compatibility and add pathing spec

- [#919](https://github.com/browserbase/stagehand/pull/919)
[`3d80421`](3d804210a1)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - enable
scrolling inside of iframes

- [#963](https://github.com/browserbase/stagehand/pull/963)
[`0ead63d`](0ead63d652)
Thanks [@tkattkat](https://github.com/tkattkat)! - Properly handle
images in evaluator + clean up response parsing logic

- [#961](https://github.com/browserbase/stagehand/pull/961)
[`8422828`](8422828c4c)
Thanks [@tkattkat](https://github.com/tkattkat)! - Add more evals for
stagehand agent

- [#946](https://github.com/browserbase/stagehand/pull/946)
[`b769206`](b7692060f9)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fix: unable
to act on/get content from some same process iframes

- [#962](https://github.com/browserbase/stagehand/pull/962)
[`72d2683`](72d2683202)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - handle
namespaced elements in xpath build step

## @browserbasehq/stagehand-evals@1.0.7

### Patch Changes

- Updated dependencies
\[[`f45afdc`](f45afdccc8),
[`261bba4`](261bba43fa),
[`8de7bd8`](8de7bd8635),
[`3d80421`](3d804210a1),
[`0ead63d`](0ead63d652),
[`8422828`](8422828c4c),
[`b769206`](b7692060f9),
[`72d2683`](72d2683202)]:
    -   @browserbasehq/stagehand@2.4.3

## @browserbasehq/stagehand-examples@1.0.7

### Patch Changes

- Updated dependencies
\[[`f45afdc`](f45afdccc8),
[`261bba4`](261bba43fa),
[`8de7bd8`](8de7bd8635),
[`3d80421`](3d804210a1),
[`0ead63d`](0ead63d652),
[`8422828`](8422828c4c),
[`b769206`](b7692060f9),
[`72d2683`](72d2683202)]:
    -   @browserbasehq/stagehand@2.4.3

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-19 12:34:05 -07:00
Sean McGuire
4c480fe7a3 v3 scaffold 2025-08-18 15:05:18 -07:00
Sean McGuire
8de7bd8635
bump zod version and add pathing spec (#944)
# why
To enable compatibility with Zod v4

# what changed
Added v3 pathing spec and allowed zod peer dependency to be `"zod":
">=3.25.0 <4.1.0"`

# test plan

---------

Co-authored-by: miguel <miguelg71921@gmail.com>
2025-08-06 15:03:38 -07:00
github-actions[bot]
36cdac16c9
Version Packages (#866)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @browserbasehq/stagehand@2.4.2

### Patch Changes

- [#865](https://github.com/browserbase/stagehand/pull/865)
[`6b4e6e3`](6b4e6e3f31)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - improve
type safety for trimTrailingTextNode

- [#897](https://github.com/browserbase/stagehand/pull/897)
[`e77d018`](e77d018868)
Thanks [@miguelg719](https://github.com/miguelg719)! - Fix selfHeal to
remember intially received arguments

- [#920](https://github.com/browserbase/stagehand/pull/920)
[`c20adb9`](c20adb9553)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fix: tab
handling on API

- [#882](https://github.com/browserbase/stagehand/pull/882)
[`b86df93`](b86df93b91)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - remove
elements that don't have xpaths from observe response

- [#905](https://github.com/browserbase/stagehand/pull/905)
[`023c2c2`](023c2c273b)
Thanks [@tkattkat](https://github.com/tkattkat)! - Delete old images
from anthropic cua client

- [#925](https://github.com/browserbase/stagehand/pull/925)
[`8c28647`](8c2864755e)
Thanks [@miguelg719](https://github.com/miguelg719)! - Remove
\_refreshPageFromApi()

- [#887](https://github.com/browserbase/stagehand/pull/887)
[`87e09c6`](87e09c6189)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fix: allow
xpaths with prepended 'xpath=' for targeted extract

- [#864](https://github.com/browserbase/stagehand/pull/864)
[`a611115`](a61111525d)
Thanks [@miguelg719](https://github.com/miguelg719)! - Temporarily patch
custom clients serialization error on api

- [#881](https://github.com/browserbase/stagehand/pull/881)
[`69913fe`](69913fe1df)
Thanks [@miguelg719](https://github.com/miguelg719)! - Pass sdk version
number to API for debugging

- [#913](https://github.com/browserbase/stagehand/pull/913)
[`b1b83a1`](b1b83a1d33)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - move iframe
out of 'experimental'

- [#891](https://github.com/browserbase/stagehand/pull/891)
[`be8497c`](be8497cb6b)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fix: nested
iframe xpath bug

- [#883](https://github.com/browserbase/stagehand/pull/883)
[`98704c9`](98704c9ed2)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - add timeout
for JS click

- [#907](https://github.com/browserbase/stagehand/pull/907)
[`04978bd`](04978bdd30)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - store
mapping of CDP frame ID -> page

## @browserbasehq/stagehand-evals@1.0.6

### Patch Changes

- Updated dependencies
\[[`6b4e6e3`](6b4e6e3f31),
[`e77d018`](e77d018868),
[`c20adb9`](c20adb9553),
[`b86df93`](b86df93b91),
[`023c2c2`](023c2c273b),
[`8c28647`](8c2864755e),
[`87e09c6`](87e09c6189),
[`a611115`](a61111525d),
[`69913fe`](69913fe1df),
[`b1b83a1`](b1b83a1d33),
[`be8497c`](be8497cb6b),
[`98704c9`](98704c9ed2),
[`04978bd`](04978bdd30)]:
    -   @browserbasehq/stagehand@2.4.2

## @browserbasehq/stagehand-examples@1.0.6

### Patch Changes

- Updated dependencies
\[[`6b4e6e3`](6b4e6e3f31),
[`e77d018`](e77d018868),
[`c20adb9`](c20adb9553),
[`b86df93`](b86df93b91),
[`023c2c2`](023c2c273b),
[`8c28647`](8c2864755e),
[`87e09c6`](87e09c6189),
[`a611115`](a61111525d),
[`69913fe`](69913fe1df),
[`b1b83a1`](b1b83a1d33),
[`be8497c`](be8497cb6b),
[`98704c9`](98704c9ed2),
[`04978bd`](04978bdd30)]:
    -   @browserbasehq/stagehand@2.4.2

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-31 12:33:13 -07:00
github-actions[bot]
11b1d415bd
Version Packages (#847)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @browserbasehq/stagehand@2.4.1

### Patch Changes

- [#856](https://github.com/browserbase/stagehand/pull/856)
[`8a43c5a`](8a43c5a86d)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - set
download behaviour by default

- [#857](https://github.com/browserbase/stagehand/pull/857)
[`890ffcc`](890ffccac5)
Thanks [@miguelg719](https://github.com/miguelg719)! - return
"not-supported" for elements inside the shadow-dom

- [#844](https://github.com/browserbase/stagehand/pull/844)
[`64c1072`](64c10727bd)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - don't
automatically close tabs

- [#860](https://github.com/browserbase/stagehand/pull/860)
[`b077d3f`](b077d3f48a)
Thanks [@miguelg719](https://github.com/miguelg719)! - Set default
schema on extract options with no schema

- [#842](https://github.com/browserbase/stagehand/pull/842)
[`8bcb5d7`](8bcb5d77de)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - improved
handling for OS level dropdowns

- [#846](https://github.com/browserbase/stagehand/pull/846)
[`7bf10c5`](7bf10c55b2)
Thanks [@miguelg719](https://github.com/miguelg719)! - Filter attaching
to target worker / shared_worker

## @browserbasehq/stagehand-evals@1.0.5

### Patch Changes

- Updated dependencies
\[[`8a43c5a`](8a43c5a86d),
[`890ffcc`](890ffccac5),
[`64c1072`](64c10727bd),
[`b077d3f`](b077d3f48a),
[`8bcb5d7`](8bcb5d77de),
[`7bf10c5`](7bf10c55b2)]:
    -   @browserbasehq/stagehand@2.4.1

## @browserbasehq/stagehand-examples@1.0.5

### Patch Changes

- Updated dependencies
\[[`8a43c5a`](8a43c5a86d),
[`890ffcc`](890ffccac5),
[`64c1072`](64c10727bd),
[`b077d3f`](b077d3f48a),
[`8bcb5d7`](8bcb5d77de),
[`7bf10c5`](7bf10c55b2)]:
    -   @browserbasehq/stagehand@2.4.1

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-07-03 18:03:10 -07:00
github-actions[bot]
d7c54d3ee6
Version Packages (#813)
# Releases
## @browserbasehq/stagehand@2.4.0

### Minor Changes

- [#819](https://github.com/browserbase/stagehand/pull/819)
[`6a18c1e`](6a18c1ee1e)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - try
playwright click and fall back to JS click event

### Patch Changes

- [#826](https://github.com/browserbase/stagehand/pull/826)
[`124e0d3`](124e0d3bb5)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - fix issue
where we are unable to take actions on text nodes

- [#818](https://github.com/browserbase/stagehand/pull/818)
[`1660751`](1660751cd1)
Thanks [@miguelg719](https://github.com/miguelg719)! - Added CUA support
for Claude 4 models

- [#821](https://github.com/browserbase/stagehand/pull/821)
[`cadac9d`](cadac9da09)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - use
playwright instead of playwright test

- [#832](https://github.com/browserbase/stagehand/pull/832)
[`759da55`](759da55775)
Thanks [@miguelg719](https://github.com/miguelg719)! - Fix
\_refreshPageFromAPI to use parametrized apiKey

- [#810](https://github.com/browserbase/stagehand/pull/810)
[`a175a51`](a175a519b8)
Thanks [@miguelg719](https://github.com/miguelg719)! - Update logos

- [#822](https://github.com/browserbase/stagehand/pull/822)
[`8527a80`](8527a80522)
Thanks [@miguelg719](https://github.com/miguelg719)! - Add model with
date tag for OpenAI CUA

- [#833](https://github.com/browserbase/stagehand/pull/833)
[`55fca2f`](55fca2f7da)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - adjust
stagehandLogger.warn() level to be 1 instead of 0

## @browserbasehq/stagehand-evals@1.0.4

### Patch Changes

- [#831](https://github.com/browserbase/stagehand/pull/831)
[`5812b02`](5812b027e4)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - added -man
& -h commands for explaining how to run evals

- Updated dependencies
\[[`124e0d3`](124e0d3bb5),
[`6a18c1e`](6a18c1ee1e),
[`1660751`](1660751cd1),
[`cadac9d`](cadac9da09),
[`759da55`](759da55775),
[`a175a51`](a175a519b8),
[`8527a80`](8527a80522),
[`55fca2f`](55fca2f7da)]:
    -   @browserbasehq/stagehand@2.4.0

## @browserbasehq/stagehand-examples@1.0.4

### Patch Changes

- Updated dependencies
\[[`124e0d3`](124e0d3bb5),
[`6a18c1e`](6a18c1ee1e),
[`1660751`](1660751cd1),
[`cadac9d`](cadac9da09),
[`759da55`](759da55775),
[`a175a51`](a175a519b8),
[`8527a80`](8527a80522),
[`55fca2f`](55fca2f7da)]:
    -   @browserbasehq/stagehand@2.4.0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-25 11:23:25 -07:00
Sean McGuire
5812b027e4
add -man and -h flags for running evals (#831)
# why
- to explain what each of the CLI args do when running evals
# what changed
- added a `buildUsage()` function in `evals/args.ts` which outputs an
explanation on how to run evals & the possible CLI args
- added a `run-evals.ts` script in the `scripts` directory to decide
whether we need to run `build` and `prettier` when running `pnpm run
evals ...`
- this is because we don't need to run `build` and `prettier` if someone
just runs `pnpm run evals -man` or `pnpm run evals -h`
## example
running `pnpm run evals -man` yeilds:

<img width="1342" alt="Screenshot 2025-06-24 at 1 12 04 PM"
src="https://github.com/user-attachments/assets/0f40bd3e-324b-4f70-9556-80fe1822bd78"
/>


# test plan
- evals
2025-06-24 17:18:01 -07:00
Sean McGuire
cadac9da09
don't use playwright-test (#821)
# why
- we should be using playwright, not playwright-test
# what changed
- removed playwright-test from peer deps
- replaced `playwright/test` imports with regular `playwright`
# test plan
- evals
2025-06-24 11:09:43 -07:00
github-actions[bot]
60c7c6a8fe
Version Packages (#799)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @browserbasehq/stagehand@2.3.1

### Patch Changes

- [#796](https://github.com/browserbase/stagehand/pull/796)
[`12a99b3`](12a99b398d)
Thanks [@miguelg719](https://github.com/miguelg719)! - Added a
experimental flag to enable the newest and most experimental features

- [#807](https://github.com/browserbase/stagehand/pull/807)
[`2451797`](2451797f64)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - include
version number in StagehandDefaultError message

- [#803](https://github.com/browserbase/stagehand/pull/803)
[`1d631a5`](1d631a57a1)
Thanks [@miguelg719](https://github.com/miguelg719)! - Enable session
affinity for cache optimization

- [#804](https://github.com/browserbase/stagehand/pull/804)
[`9c398bb`](9c398bb9ec)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - update
operatorResponseSchema based on new openai spec

- [#786](https://github.com/browserbase/stagehand/pull/786)
[`c19ad7f`](c19ad7f1e0)
Thanks [@miguelg719](https://github.com/miguelg719)! - Handle reroute to
account for rollout

## @browserbasehq/stagehand-lib@2.4.0

### Minor Changes

- [#778](https://github.com/browserbase/stagehand/pull/778)
[`df570b6`](df570b67e4)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - iframe
support

### Patch Changes

- [#809](https://github.com/browserbase/stagehand/pull/809)
[`03ebebc`](03ebebc031)
Thanks [@seanmcguire12](https://github.com/seanmcguire12)! - log
NoObjectGenerated error details

- [#801](https://github.com/browserbase/stagehand/pull/801)
[`1d4f0ab`](1d4f0abca4)
Thanks [@miguelg719](https://github.com/miguelg719)! - Default use API
to true

- [#798](https://github.com/browserbase/stagehand/pull/798)
[`d86200b`](d86200bd5b)
Thanks [@miguelg719](https://github.com/miguelg719)! - Fix pino logging
memory leak by reusing worker

## @browserbasehq/stagehand-evals@1.0.3

### Patch Changes

- Updated dependencies
\[[`12a99b3`](12a99b398d),
[`2451797`](2451797f64),
[`1d631a5`](1d631a57a1),
[`9c398bb`](9c398bb9ec),
[`c19ad7f`](c19ad7f1e0)]:
    -   @browserbasehq/stagehand@2.3.1

## @browserbasehq/stagehand-examples@1.0.3

### Patch Changes

- Updated dependencies
\[[`12a99b3`](12a99b398d),
[`2451797`](2451797f64),
[`1d631a5`](1d631a57a1),
[`9c398bb`](9c398bb9ec),
[`c19ad7f`](c19ad7f1e0)]:
    -   @browserbasehq/stagehand@2.3.1

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-16 20:08:26 -07:00
Sean McGuire
2451797f64
include version number in StagehandDefaultError (#807)
# why
- for a better debugging experience
# what changed
- added build step `gen-version.ts` which will read the `package.json`
and expose the stagehand version number as a const globally
- included the version in the `StagehandDefaultError` message
# test plan
- regressions
2025-06-16 19:55:47 -07:00
Miguel
1d631a57a1
Enable session affinity for cache optimization (#803)
# why

# what changed

# test plan
2025-06-13 11:22:38 -07:00
github-actions[bot]
a2883ed04a
Version Packages (#736)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-03 10:04:44 -07:00
Sean McGuire
58b06eb2fd
wait for dom settle with CDP network events (#768)
* wait for dom settle with CDP network events

* rm debug logs

* update package.json

* changeset

* update log level

* make devtools-protocol regular dep
2025-05-23 17:37:47 -07:00
Miguel
3fe3d2808a
build with prettier:fix (#747) 2025-05-12 10:37:52 -07:00
Anirudh Kamath
3ed7180133
add docs to repo (#735) 2025-05-08 09:40:50 -07:00
github-actions[bot]
c7424ec62e
Version Packages (#720)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-06 15:42:44 -07:00
Anirudh Kamath
145d9a5a04 Revert "move dependencies and change playwright test to playwright-core"
This reverts commit 0bfbeb7c5ea8007486035a0858e7fed4dbf971ad.
2025-05-03 14:41:15 -07:00
Anirudh Kamath
0bfbeb7c5e move dependencies and change playwright test to playwright-core 2025-05-03 14:13:06 -07:00
Anirudh Kamath
7f194accc2
Clean up examples and pnpm scripts (#727)
* tsx

* change examples

* clean up examples

* fix ci

* Update examples/form_filling_sensible.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* greptile

* fix external clients + add stagehand to evals

* fix ci

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-05-03 13:26:48 -07:00
Sean McGuire
f2b7f1f284
dont publish lib (#717)
* dont publish lib

* changeset
2025-05-02 11:23:02 -07:00
Anirudh Kamath
3ad822daa9
Go back to pnpm (#715)
* Switch back to pnpm

* cleanup npm -> pnpm

* fix workflows

* readme
2025-05-02 09:21:21 -07:00
github-actions[bot]
1fe71b8c60
Version Packages (#665)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-30 13:07:36 -07:00
Anirudh Kamath
98a65c1748
Add prepare to package.json (#713) 2025-04-29 19:31:01 -07:00
Sameel
c145bc1d90
make ai sdk native (#698)
* make ai sdk native

* fix external client eval

* fix build

* optional logging

* slash formatting for aisdk models

* start proxying aisdk

* change model-provider routing (#701)

* avoid using model-provider map

* prettier

* remove duplicate dependency

* add aisdk provider map

* add informed error message

* Apply suggestions from code review

Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>

* null checking

* changeset

* fix for together (and other) providers model format

* fix for together (and other) providers model format

* undo delete

* Update evals/index.eval.ts

---------

Co-authored-by: Sean McGuire <seanmcguire1@outlook.com>
Co-authored-by: miguel <miguelg71921@gmail.com>
Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>
Co-authored-by: Sean McGuire <75873287+seanmcguire12@users.noreply.github.com>
2025-04-29 13:54:23 -07:00
tkattkat
35c55ebf6c
add google gemini 2.5 to supported models (#675)
* add google gemini 2.5 to supported models

* Update .changeset/solid-rice-admire.md

Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>

* Update examples/form_filling_sensible.ts

Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>

---------

Co-authored-by: Miguel <36487034+miguelg719@users.noreply.github.com>
2025-04-17 16:14:04 -04:00