@natewong1313/stagehand 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,110 @@
1
+ {
2
+ "name": "@natewong1313/stagehand",
3
+ "version": "3.0.8",
4
+ "description": "An AI web browsing framework focused on simplicity and extensibility.",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist/index.js",
10
+ "dist/index.d.ts",
11
+ "dist/lib",
12
+ "dist/types",
13
+ "dist/stagehand.config.d.ts"
14
+ ],
15
+ "keywords": [
16
+ "ai",
17
+ "browser",
18
+ "automation",
19
+ "web-scraping",
20
+ "testing"
21
+ ],
22
+ "author": "Browserbase",
23
+ "license": "MIT",
24
+ "peerDependencies": {
25
+ "deepmerge": "^4.3.1",
26
+ "dotenv": "^16.4.5",
27
+ "zod": "^3.25.76 || ^4.2.0"
28
+ },
29
+ "dependencies": {
30
+ "@ai-sdk/provider": "^2.0.0",
31
+ "uuid": "^11.1.0",
32
+ "@anthropic-ai/sdk": "0.39.0",
33
+ "@browserbasehq/sdk": "^2.4.0",
34
+ "@google/genai": "^1.22.0",
35
+ "@langchain/openai": "^0.4.4",
36
+ "@modelcontextprotocol/sdk": "^1.17.2",
37
+ "ai": "^5.0.0",
38
+ "devtools-protocol": "^0.0.1464554",
39
+ "fetch-cookie": "^3.1.0",
40
+ "openai": "^4.87.1",
41
+ "pino": "^9.6.0",
42
+ "pino-pretty": "^13.0.0",
43
+ "ws": "^8.18.0",
44
+ "zod-to-json-schema": "^3.25.0"
45
+ },
46
+ "optionalDependencies": {
47
+ "@ai-sdk/anthropic": "^2.0.34",
48
+ "@ai-sdk/azure": "^2.0.54",
49
+ "@ai-sdk/cerebras": "^1.0.25",
50
+ "@ai-sdk/deepseek": "^1.0.23",
51
+ "@ai-sdk/google": "^2.0.23",
52
+ "@ai-sdk/google-vertex": "^3.0.70",
53
+ "@ai-sdk/groq": "^2.0.24",
54
+ "@ai-sdk/mistral": "^2.0.19",
55
+ "@ai-sdk/openai": "^2.0.53",
56
+ "@ai-sdk/perplexity": "^2.0.13",
57
+ "@ai-sdk/togetherai": "^1.0.23",
58
+ "@ai-sdk/xai": "^2.0.26",
59
+ "@langchain/core": "^0.3.40",
60
+ "bufferutil": "^4.0.9",
61
+ "chrome-launcher": "^1.2.0",
62
+ "ollama-ai-provider-v2": "^1.5.0",
63
+ "patchright-core": "^1.55.2",
64
+ "playwright": "^1.52.0",
65
+ "playwright-core": "^1.54.1",
66
+ "puppeteer-core": "^22.8.0"
67
+ },
68
+ "devDependencies": {
69
+ "@playwright/test": "^1.42.1",
70
+ "@types/adm-zip": "^0.5.7",
71
+ "@types/node": "^20.11.30",
72
+ "@types/ws": "^8.5.13",
73
+ "adm-zip": "^0.5.16",
74
+ "chalk": "^5.4.1",
75
+ "esbuild": "^0.21.4",
76
+ "eslint": "^9.16.0",
77
+ "playwright": "^1.52.0",
78
+ "playwright-core": "^1.54.1",
79
+ "prettier": "^3.2.5",
80
+ "tsup": "^8.2.1",
81
+ "tsx": "^4.10.5",
82
+ "typescript": "^5.2.2",
83
+ "vitest": "^4.0.8",
84
+ "zod": "^3.25.76 || ^4.2.0"
85
+ },
86
+ "repository": {
87
+ "type": "git",
88
+ "url": "git+https://github.com/natewong1313/stagehand.git",
89
+ "directory": "packages/core"
90
+ },
91
+ "bugs": {
92
+ "url": "https://github.com/natewong1313/stagehand/issues"
93
+ },
94
+ "homepage": "https://stagehand.dev",
95
+ "scripts": {
96
+ "gen-version": "tsx scripts/gen-version.ts",
97
+ "build-dom-scripts": "tsx lib/v3/dom/genDomScripts.ts && tsx lib/v3/dom/genLocatorScripts.ts && tsx lib/v3/dom/genA11yScripts.ts",
98
+ "build-js": "tsup --entry.index lib/v3/index.ts --dts",
99
+ "typecheck": "tsc --noEmit",
100
+ "build": "pnpm run gen-version && pnpm run build-dom-scripts && pnpm run build-js && pnpm run typecheck",
101
+ "example": "node --import tsx -e \"const args=process.argv.slice(1).filter(a=>a!=='--'); const [p]=args; const n=(p||'example').replace(/^\\.\\//,'').replace(/\\.ts$/i,''); import(new URL(require('node:path').resolve('examples', n + '.ts'), 'file:'));\" --",
102
+ "test": "playwright test --config=lib/v3/tests/v3.playwright.config.ts",
103
+ "e2e": "playwright test --config=lib/v3/tests/v3.local.playwright.config.ts",
104
+ "e2e:local": "playwright test --config=lib/v3/tests/v3.local.playwright.config.ts",
105
+ "e2e:bb": "playwright test --config=lib/v3/tests/v3.bb.playwright.config.ts",
106
+ "lint": "cd ../.. && prettier --check packages/core && cd packages/core && eslint .",
107
+ "format": "prettier --write .",
108
+ "test:vitest": "turbo run build && vitest run --config vitest.config.ts"
109
+ }
110
+ }