mirror of
https://github.com/lackeyjb/playwright-skill.git
synced 2026-09-14 16:39:27 +08:00
ca6b7e7ec8
* feat: modernize agent skill for v5
* fix: address review findings for v5 refresh
- Restore $SKILL_DIR path resolution in SKILL.md with explicit export
- Fix -e stdout/stderr truncation at 64KB pipe buffer (flush both before exit)
- Spawn child in caller's cwd so relative paths resolve against the project
- Re-raise signals so shells see interrupt status (SIGINT -> 130)
- Escalate to SIGKILL after 2s when child traps SIGINT/SIGTERM
- handleCookieBanner: .filter({ visible: true }).first() avoids hidden matches
- launchBrowser: --no-sandbox only for Chromium as root, merged with caller args
- takeScreenshot: skip mkdirSync when custom path given
- detectDevServers: numeric sort for customPorts of varying digit counts
- PW_HEADLESS='' now falls through to visible default
- SLOW_MO non-numeric input maps to 0 instead of NaN
- CI: npm ci, smoke via run.js, validate path corrected
- Tests: 4 new executor cases + stderr flush + cwd preservation + smoke cookie banner