Skip to content

Commit 3aa80a6

Browse files
authored
Replace pnpm with npm (#134)
* Replace pnpm with npm * Fix readme
1 parent f199c52 commit 3aa80a6

File tree

6 files changed

+4188
-6441
lines changed

6 files changed

+4188
-6441
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,12 @@ jobs:
2626
with:
2727
node-version: "20"
2828

29-
- name: Install pnpm
30-
run: npm install -g pnpm
31-
3229
- name: Install dependencies
33-
run: pnpm install --no-frozen-lockfile
30+
run: npm install --no-frozen-lockfile
3431

3532
- name: Install Playwright browsers
36-
run: pnpm exec playwright install --with-deps
33+
run: npm exec playwright install --with-deps
3734

3835
- name: Run Evals
39-
run: pnpm evals
36+
run: npm run evals
4037
timeout-minutes: 20

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
- [observe()](#observe)
2929
- [page and context](#page-and-context)
3030
- [log()](#log)
31+
- [Model Support](#model-support)
3132
- [How It Works](#how-it-works)
3233
- [Roadmap](#roadmap)
3334
- [Contributing](#contributing)
3435
- [Acknowledgements](#acknowledgements)
3536
- [License](#license)
3637

37-
> [!NOTE]
38-
> `Stagehand` is currently available as an early release, and we're actively seeking feedback from the community. Please join our [Slack community](https://join.slack.com/t/stagehand-dev/shared_invite/zt-2tdncfgkk-fF8y5U0uJzR2y2_M9c9OJA) to stay updated on the latest developments and provide feedback.
38+
> [!NOTE] > `Stagehand` is currently available as an early release, and we're actively seeking feedback from the community. Please join our [Slack community](https://join.slack.com/t/stagehand-dev/shared_invite/zt-2tdncfgkk-fF8y5U0uJzR2y2_M9c9OJA) to stay updated on the latest developments and provide feedback.
3939
4040
## Intro
4141

@@ -213,8 +213,7 @@ This constructor is used to create an instance of Stagehand.
213213

214214
#### `observe()`
215215

216-
> [!NOTE]
217-
> `observe()` currently only evaluates the first chunk in the page.
216+
> [!NOTE] > `observe()` currently only evaluates the first chunk in the page.
218217
219218
`observe()` is used to get a list of actions that can be taken on the current page. It's useful for adding context to your planning step, or if you unsure of what page you're on.
220219

@@ -253,7 +252,7 @@ Make sure the log level is above the verbose level you set when initializing the
253252
stagehand.log("Hello, world!");
254253
```
255254

256-
### Model Support
255+
## Model Support
257256

258257
Stagehand leverages a generic LLM client architecture to support various language models from different providers. This design allows for flexibility, enabling the integration of new models with minimal changes to the core system. Different models work better for different tasks, so you can choose the model that best suits your needs.
259258

@@ -345,12 +344,12 @@ git clone git@github.com:browserbase/stagehand.git
345344
Then install dependencies
346345

347346
```bash
348-
pnpm install
347+
npm install
349348
```
350349

351350
Ensure you have the `.env` file as documented above in the Getting Started section.
352351

353-
Then, run the example script `pnpm example`.
352+
Then, run the example script `npm run example`.
354353

355354
### Development tips
356355

@@ -370,19 +369,19 @@ You'll need a Braintrust API key to run evals
370369
BRAINTRUST_API_KEY=""
371370
```
372371

373-
After that, you can run the eval using `pnpm evals`
372+
After that, you can run the eval using `npm run evals`
374373

375374
### Adding new evals
376375

377376
Running all evals can take some time. We have a convenience script `example.ts` where you can develop your new single eval before adding it to the set of all evals.
378377

379-
You can run `pnpm example` to execute and iterate on the eval you are currently developing.
378+
You can run `npm run example` to execute and iterate on the eval you are currently developing.
380379

381380
### Building the SDK
382381

383382
Stagehand uses [tsup](https://github.com/egoist/tsup) to build the SDK and vanilla `esbuild` to build scripts that run in the DOM.
384383

385-
1. run `pnpm build`
384+
1. run `npm run build`
386385
2. run `npm pack` to get a tarball for distribution
387386

388387
## Acknowledgements

examples/debugUrl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env -S pnpm tsx
21
import { Stagehand } from "../lib";
32

43
async function debug(url: string) {

0 commit comments

Comments
 (0)