Open SourceAutomated release watch

stagehand-python@4.2.0a0.dev1534: fix(cli): resolve template sources and align setup instructions ( 2799)

Stagehand CLI fixes template source resolution mismatches (e.g., Playwright/Puppeteer/Selenium) and aligns setup instructions with detected package managers and Python environments.

Human read

Why this signal matters

This update fixes an issue in the Stagehand CLI where commands like browse templates clone playwright forwarded catalog slugs instead of internal source paths (e.g., playwright/quickstart-playwright vs quickstart-playwright ), which affected Playwright, Puppeteer, and Selenium templates. It now maps the final directory component of sourcePath (falling back to slug) using structured metadata. Additionally, the setup instructions output after scaffolding now adapt to the target environment: - TypeScript: Detects packageManager in package.json to output appropriate npm , pnpm , yarn , or bun commands (defaults to npm ). - Python: Uses uv sync or uv venv && uv pip install -r requirements.txt , followed by uv run python main.py instead of unmanaged python execution. Downstream dependency note: While tested against 39 catalog entries, complete resolution for TypeScript quickstarts depends on the release of create-browser-app 3.0.1 (PR 44), as published 3.0.0 still defaults to the standard starter on nested template names.

Agent parse

Actionable summary

Stagehand Python CLI pre-release (4.2.0a0.dev1534) resolves catalog slugs to the final component of sourcePath for template scaffolding and generates environment-aware setup commands ( uv run , pnpm , yarn , bun ). Note: TypeScript scaffolding requires downstream create-browser-app 3.0.1+ release.

Agent usefulness
82/100
Confidence
96%
Canonical data
JSON + Markdown
Next actions

What builders should check

  • Verify local template cloning workflows using the updated CLI if relying on Playwright, Puppeteer, or Selenium templates.
  • Ensure create-browser-app resolves to version 3.0.1 or later once released when scaffolding TypeScript templates.
  • Adopt uv run python main.py in downstream automated scripts relying on Python scaffolded outputs.
Classification

Tags and routing

browserbasebrowser-agentautomation
Related signals

Continue the thread