Repository navigation
feat(eve): upgrade extension to stable Eve 1.0 - #3409
Conversation
- Update workspace catalog from eve 0.71.2 to eve 1.0.0-rc.6 - Update ai peer dependency to ^7.0.137 (eve 1.0's peer requirement) - Widen peer dependency range to support >=0.71.2 || ^1.0.0-rc.0 - Add E2E compatibility tests for eve 1.0 extension loading and tools - Extension builds with eve 1.0 manifest format (formatVersion: 3) All existing native Code Mode tools (run/snapshot/screenshot) work unchanged. This follows the eve 1.0 upgrade guide which requires rebuilding extensions built with eve <=0.83 for 1.0 compatibility. Co-authored-by: Shrey Pandya <[email protected]>
🦋 Changeset detectedLatest commit: 266ac2b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Per eve's extension contract, an extension built with eve 1.0 requires eve 1.0 or later at runtime. The previous peer range >=0.71.2 was incorrect and unbounded. Changes: - Peer dependency: ^1.0.0-rc.0 (removes false backward compat claim) - Renamed e2e.test.ts to clearly describe structural-only testing - Documents that browser E2E requires BROWSERBASE_API_KEY - This extension has no local browser mode; Browserbase is required - Updated changeset to mark as breaking change Co-authored-by: Shrey Pandya <[email protected]>
Co-authored-by: Shrey Pandya <[email protected]>
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
The main catalog is used by eve-sdk which has different compatibility. Only @browserbasehq/eve should use the eve 1.0 version via the named catalog (catalog:eve). Co-authored-by: Shrey Pandya <[email protected]>
Co-authored-by: Shrey Pandya <[email protected]>
Addresses review comment about test failing on clean checkout due to missing _manifest.json. The test reads the generated manifest file, so the extension must be built first. Co-authored-by: Shrey Pandya <[email protected]>
There was a problem hiding this comment.
All reported issues were addressed across 2 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
View guided diff | Turn on auto-fix | Re-trigger cubic
Per review feedback: test:unit is a Turbo leaf, so it should just run vitest. The Turbo task depends on build, so build runs first. The standalone 'test' script remains self-contained for direct use. Co-authored-by: Shrey Pandya <[email protected]>
Removed e2e.test.ts which contained: - Manifest/schema assertions already covered by build step - Tool structure tests redundant with existing tools.test.ts - Documentation-only tests - Skipped placeholder tests Minimal changes retained: - pnpm-workspace.yaml: eve 1.0.0-rc.6 in named catalog - package.json: peer dep ^1.0.0-rc.0, test:unit simplified for Turbo - Lockfile updates from dependency changes Co-authored-by: Shrey Pandya <[email protected]>
The facade code staged to extension/lib/core/ is needed by tests but not in Turbo's cached outputs. Keeping stage:facade ensures tests can import the facade error types. Co-authored-by: Shrey Pandya <[email protected]>
There was a problem hiding this comment.
No issues found across 4 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant Dev as Extension Developer
participant Dep as pnpm Workspace
participant Build as Extension Build (Turbo)
participant Pkg as @browserbasehq/eve Package
participant Eve as Eve Runtime (Vercel)
participant AI as AI SDK (ai package)
Note over Dev,Eve: Eve 1.0 Extension Build & Runtime Flow
Dev->>Dep: pnpm install
Dep->>Dep: Resolve eve catalog (1.0.0-rc.6) + ai (^7.0.137)
Dep-->>Dev: Lockfile updated
Dev->>Build: turbo build (extension)
Build->>Pkg: Compile extension source
Pkg->>Pkg: Generate eve 1.0 manifest (formatVersion: 3)
Build-->>Dev: Build artifacts
Note over Pkg,Eve: Installation into consuming project
Pkg->>Eve: Declares peerDependency: eve ^1.0.0-rc.0
Note over Eve: Extension contract: built with 1.0 requires 1.0+ at runtime
Eve->>AI: Uses ai ^7.0.137 (peer requirement)
AI-->>Eve: Provide tool execution primitives
Note over Dev,Eve: Runtime execution of native tools
Eve->>Pkg: Load extension (validate manifest formatVersion)
alt Valid manifest (formatVersion 3)
Eve->>Eve: Register run/snapshot/screenshot tools
Eve->>Pkg: Execute tool implementation
Note over Pkg: Calls browserbase.launch() (requires BROWSERBASE_API_KEY)
Pkg-->>Eve: Tool result
else Incompatible manifest (older format)
Eve-->>Dev: Reject extension (requires rebuild)
end
%% Unit testing path
Dev->>Build: turbo test:unit (stage:facade)
Build->>Pkg: Run vitest (imports facade error types)
Pkg-->>Dev: Test results (39 tests)
# Conflicts: # pnpm-lock.yaml
There was a problem hiding this comment.
1 issue found across 4 files (changes from recent commits).
Confidence score: 4/5
.changeset/eve-1-0-upgrade.mdsays “or later,” which overstates compatibility beyond the^1.0.0peer range. Change it to “Eve 1.x is now required.”
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".changeset/eve-1-0-upgrade.md">
<violation number="1" location=".changeset/eve-1-0-upgrade.md:5">
P2: The peer range is `^1.0.0`, so “or later” overstates compatibility by implying future major versions; say “Eve 1.x is now required.”
(Based on your team's feedback about user-visible changesets.)</violation>
</file>
Tip: Review your code locally with the cubic CLI to iterate faster.
View guided diff | Turn on auto-fix | Re-trigger cubic
…3496) Changesets merged through a mirrored external contributor PR currently show `Thanks @github-actions!` in release notes, because the mirror PR is authored by the bot. This wraps `@changesets/changelog-github` in `.changeset/changelog.cjs`. For each changeset, if its commit came from a merged PR authored by `github-actions[bot]` that carries the `external-contributor-pr:owned source-pr=` marker, it adds `pr:`, `commit:` and `author:` overrides pointing at the original PR and its author (read from the GitHub API, not from the PR body text). Changesets that already have overrides, and every non-mirrored PR, are left unchanged. Checked locally against the three pending mirrored changesets (#3463, #3422, #3465 now credit their authors) and a regular PR (#3450 is unchanged). If a GitHub lookup fails, the wrapper logs a warning and falls back to the default credit, so it can't block a release PR. Dry run (Nov 19) against the live repo with `@changesets/changelog-github` 0.7.0: `empty-response-header-values` now credits #3422 / @aryansahai22, `host-only-cookie-matching` credits #3465 / @Kelvin-Waititu, a regular changeset (`eve-1-0-upgrade`, #3409) is unchanged, and a simulated API failure falls back to the default line. No tests added: the failure mode is attribution in release notes, not publishing, and the release PR diff shows the output before anything ships. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes release notes so changesets merged through mirrored external contributor PRs credit the original author instead of `github-actions[bot]`. - Wraps `@changesets/changelog-github` in `.changeset/changelog.cjs` to detect mirrored PRs via the `external-contributor-pr:owned` marker and add `pr:`, `commit:`, and `author:` overrides from the GitHub API. - Takes the last marker occurrence, since the mirror body quotes the original PR description before the trusted marker. - Leaves changesets that already have overrides and non-mirrored PRs unchanged, and falls back to the default credit when the GitHub lookup fails so a release can't be blocked. <sup>Written for commit 72b02d0. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/browserbase/stagehand/pull/3496?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/browserbase/stagehand/3496?returnTo=https%3A%2F%2Fgithub.com%2Fbrowserbase%2Fstagehand%2Fpull%2F3496&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. --> --------- Co-authored-by: Shrey Pandya <[email protected]>
Rebuilds
@browserbasehq/eveagainst the stable Eve 1.0.0 release. The extension now requireseve: ^1.0.0; the named Eve AI SDK catalog uses^7.0.172, satisfying the stable runtime's peer requirement.This retains the minor changeset for the pre-1.0 Browserbase extension because it drops compatibility with Eve 0.71.x. The separate legacy harness remains on Eve 0.71.2 and is also tested with the updated AI SDK dependency.
E2E Test Matrix
Verified on commit
34056f613.pnpm exec turbo run build test:unit typecheck --filter @browserbasehq/evebuiltWithEve: "1.0.0"pnpm exec turbo run build test:unit typecheck --filter @browserbasehq/stagehand-integrations-eve-harnessopenai/gpt-5.4-miniand BrowserbaseExample Domain, input valuestable-eve-1.0, a valid 83,576-byte JPEG, andfresh: true.COMPLETEDthrough the API without fallback release.pnpm packand archive validation^1.0.0; workspace dependencies rewritten to published versions.git diff --check