开源官方发布自动监测

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.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

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 解析

可执行摘要

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 实用度
82/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • 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.
分类

标签与路由

browserbasebrowser-agentautomation
相关信号

继续阅读