@browserbasehq/stagehand 2.2.0 → 2.2.1-alpha-c8d672f7c410c256defbc2e87ead99239837aa28
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/README.md +4 -4
- package/dist/index.js +1216 -1210
- package/dist/lib/handlers/extractHandler.d.ts +1 -22
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/utils.d.ts +22 -0
- package/package.json +37 -38
- package/lib/StagehandContext.ts +0 -125
- package/lib/StagehandPage.ts +0 -870
- package/lib/a11y/utils.ts +0 -895
- package/lib/agent/AgentClient.ts +0 -44
- package/lib/agent/AgentProvider.ts +0 -90
- package/lib/agent/AnthropicCUAClient.ts +0 -900
- package/lib/agent/OpenAICUAClient.ts +0 -621
- package/lib/agent/StagehandAgent.ts +0 -52
- package/lib/api.ts +0 -248
- package/lib/cache/ActionCache.ts +0 -158
- package/lib/cache/BaseCache.ts +0 -568
- package/lib/cache/LLMCache.ts +0 -48
- package/lib/cache.ts +0 -98
- package/lib/dom/DomChunk.ts +0 -6
- package/lib/dom/ElementContainer.ts +0 -98
- package/lib/dom/GlobalPageContainer.ts +0 -91
- package/lib/dom/StagehandContainer.ts +0 -128
- package/lib/dom/build/index.js +0 -1085
- package/lib/dom/build/scriptContent.ts +0 -1
- package/lib/dom/candidateCollector.ts +0 -139
- package/lib/dom/containerFactory.ts +0 -16
- package/lib/dom/elementCheckUtils.ts +0 -168
- package/lib/dom/genDomScripts.ts +0 -29
- package/lib/dom/global.d.ts +0 -38
- package/lib/dom/index.ts +0 -2
- package/lib/dom/process.ts +0 -567
- package/lib/dom/utils.ts +0 -91
- package/lib/dom/xpathUtils.ts +0 -243
- package/lib/handlers/actHandler.ts +0 -356
- package/lib/handlers/agentHandler.ts +0 -683
- package/lib/handlers/extractHandler.ts +0 -904
- package/lib/handlers/handlerUtils/actHandlerUtils.ts +0 -488
- package/lib/handlers/observeHandler.ts +0 -207
- package/lib/handlers/operatorHandler.ts +0 -242
- package/lib/index.ts +0 -888
- package/lib/inference.ts +0 -484
- package/lib/inferenceLogUtils.ts +0 -114
- package/lib/llm/AnthropicClient.ts +0 -385
- package/lib/llm/CerebrasClient.ts +0 -343
- package/lib/llm/GoogleClient.ts +0 -519
- package/lib/llm/GroqClient.ts +0 -344
- package/lib/llm/LLMClient.ts +0 -126
- package/lib/llm/LLMProvider.ts +0 -201
- package/lib/llm/OpenAIClient.ts +0 -470
- package/lib/llm/aisdk.ts +0 -282
- package/lib/logger.ts +0 -282
- package/lib/prompt.ts +0 -235
- package/lib/utils.ts +0 -565
package/README.md
CHANGED
|
@@ -104,10 +104,10 @@ npx create-browser-app
|
|
|
104
104
|
```bash
|
|
105
105
|
git clone https://github.com/browserbase/stagehand.git
|
|
106
106
|
cd stagehand
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
pnpm install
|
|
108
|
+
pnpm playwright install
|
|
109
|
+
pnpm run build
|
|
110
|
+
pnpm run example # run the blank script at ./examples/example.ts
|
|
111
111
|
```
|
|
112
112
|
|
|
113
113
|
Stagehand is best when you have an API key for an LLM provider and Browserbase credentials. To add these to your project, run:
|