chore(cli): prepare browse 0.9.7 from v3

Closed
SH
2mo ago
+126-6

Summary

  • version Browse from 0.9.6 to 0.9.7 and consume the Functions parity changeset
  • add a v3-cli-only trusted-publishing job for Browse
  • keep the existing monorepo release job restricted to main
  • lint, test, pack, inspect, install-smoke, publish with npm provenance, and tag the exact Browse artifact

This is stacked on #2704 and supersedes #2703, whose v4-spike-cli base contains unrelated CLI migration work.

Why this release path

v3-cli starts at the last pre-v4 main commit, and its packages/cli tree is identical to the published browse@0.9.6 tag. This lets 0.9.7 contain the tactical Functions fix without also shipping unreleased v4-branch CLI changes.

The workflow publishes only packages/cli; it does not run the monorepo-wide Changesets publish path. npm authentication remains the repository's existing OIDC/trusted-publishing flow with provenance.

E2E Test Matrix

Command / flowObserved outputConfidence / sufficiency
actionlint .github/workflows/release.ymlPassed with no findingsValidates workflow syntax and expressions
pnpm --filter browse lintFormatting, ESLint, and TypeScript checks passed for browse@0.9.7Proves the exact release tree is statically valid
pnpm --filter browse test under the CI-standard umask25 files and 369/369 tests passedProves the exact versioned release tree is green
pnpm --dir packages/cli pack --pack-destination <temp>Produced browse-0.9.7.tgz with 142 entriesExercises the exact v3-compatible pack command used by CI
Inspect packed package/package.jsonName/version are browse@0.9.7; workspace dependency resolves to @browserbasehq/stagehand@3.7.1Proves no v4 Stagehand dependency leaks into the artifact
Install tarball into a clean temp prefixbrowse/0.9.7; browse functions --help exposes functions publishProves the packed artifact installs and its CLI entry point runs
npm view browse@0.9.7Version is not publishedConfirms merging this PR will create, not overwrite, the release

Merge and publish order

  1. Merge #2704 into v3-cli.
  2. Retarget this PR from agent/fix-functions-parity-v3 to v3-cli.
  3. Merge this PR. The push to v3-cli triggers the Browse-only job and publishes browse@0.9.7.