Repository navigation
chore(extension): vendor Playwright locator helpers - #3187
Open
supremeboxlogos wants to merge 1 commit into
Open
supremeboxlogos wants to merge 1 commit into
supremeboxlogos wants to merge 1 commit into
Conversation
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Contributor
There was a problem hiding this comment.
No issues found across 16 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant Repo as Monorepo
participant Pkg as package.json
participant Oracle as Playwright Oracle ([email protected])
participant Vendor as Vendored Playwright Helpers
participant Provenance as provenance.json
participant Test as semanticSelectorVendor.test.ts
participant Lint as Lint/Format Tooling
Note over Repo,Test: Vendored Playwright helper closure (5 TS files)
Pkg->>Oracle: NEW: devDependency "playwright-semantic-oracle"
Oracle-->>Repo: Pin to [email protected]
Repo->>Vendor: Vendored helper closure (5 files)
Vendor->>Vendor: Adapted import paths + one type annotation
Vendor->>Provenance: Source hashes, commit, version metadata
Provenance-->>Test: Read-only reference for verification
Repo->>Test: Execute provenance checks
Test->>Vendor: Read source files
Test->>Vendor: Strip adaptation notices, rewrite imports/types
Test->>Vendor: Normalize CRLF if needed
Test->>Test: Compute SHA256 of normalized source
Test->>Provenance: Compare with stored hash
alt Hash matches
Test-->>Repo: Pass: upstream source preserved
else Hash mismatch
Test-->>Repo: Fail: vendored source diverged
end
Test->>Pkg: Verify oracle version matches provenance.version
Test->>Provenance: Verify commit cfe490d941f992655948eee8fd4fd94e1c4234bf
alt Version pinned correctly
Test-->>Repo: Pass: oracle aligned with vendor
else Version mismatch
Test-->>Repo: Fail: oracle out of sync
end
Repo->>Lint: Format/lint exclusions for vendored files
Lint->>Vendor: Apply ignore patterns (oxfmt + oxlint)
Lint-->>Repo: Skip formatting/linting on immutable upstream files
This branch has not been deployed
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
Isolate the upstream accessibility implementation from Stagehand's locator logic so each can be reviewed independently.
This is the first extension-stack PR. It introduces no SDK API or runtime wiring.
what changed
cfe490d941f992655948eee8fd4fd94e1c4234bf.Almost all of this diff is attributed upstream source, not newly designed Stagehand code. Keeping the helper closure together preserves compilable imports and an auditable upstream algorithm. The Stagehand adapter, runtime wiring, and browser tests are separate PRs.
test plan