Draft
Conversation
|
| animations: params.animations, | ||
| caret: params.caret, | ||
| style: params.style, | ||
| omitBackground: params.omitBackground, |
Member
There was a problem hiding this comment.
we need a mask param here
2503aba to
276ddc3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
why
what changed
/v4/browsersession(combination of Browser + Session)/v4/page/*new page routes/v4/stagehand/*act/observe/extract routesWIP/v4/logfor streaming SSE events in realtime/v4/llmfor configuring LLM options / retrieving token usage info + convo historytest plan
Summary by cubic
Introduces the v4 API with
browsersessionandpage.*routes, standard response envelopes, action persistence, and an OpenAPI v4 spec. Splits the server into@browserbasehq/stagehand-server-v3and@browserbasehq/stagehand-server-v4with dedicated CI/release workflows and SEA builds.New Features
browsersessionREST routes: create/get/end session, action list/detail, and one-file-per-route handlers for activePage, awaitActivePage, newPage, cookies/addCookies/clearCookies, addInitScript, configuredViewport, connectURL, browserbase* URLs/IDs, and getFullFrameTreeByMainFrameId.page.*endpoints wired to@browserbasehq/stagehand(evaluate, sendCDP, screenshot, snapshot, waits, setViewportSize, close).packages/server-v4/openapi.v4.yaml) generated from Zod components; routes registered.Migration
/v4/sessions/*with/v4/browsersession/*.@browserbasehq/stagehand-server-v3and@browserbasehq/stagehand-server-v4withstagehand-server-v3-*/stagehand-server-v4-*; CI, release, and SEA build workflows updated (including SEA fuse handling).Written for commit 276ddc3. Summary will update on new commits. Review in cubic
todo:
await something.pages()[0]to get the pages array. Each page in the array should have an id (or composite id baked into it). we will need custom code in stainless for this.dragAndDrop) return multiple strings. we should standardize this so that the return type is something that may contain multiple selectors. eg, always return an array or object.dragAndDropreturns thisreturn [fromXpath ?? "", toXpath ?? ""];