7 Commits

Author SHA1 Message Date
Mert Can Altin 60cb176373 fix(cli): call defaultRegistryDirectory() when resolving the cache file (#454)
`registry.defaultRegistryDirectory` became a function upstream in
microsoft/playwright#41942 and arrived here with the roll to
1.63.0-alpha-2026-08-05. `cacheFile()` still used it as a string, so
`path.join()` threw, `readCache()`/`writeCache()` swallowed the
TypeError, and the update check was never cached: every single CLI
invocation fetched the npm registry and re-ran the installed-skill
check.

Locally that is ~480ms per command instead of ~125ms.

Tests always set PLAYWRIGHT_CLI_INSTALLATION_FOR_TEST, so the default
branch was never exercised. Add a regression test that points HOME at a
temp directory and asserts the cache file is written.

Also hoist `cacheFile()` out of the try blocks so only I/O and parse
failures are swallowed there, instead of masking a path-computation bug
as "no cache".
2026-08-24 16:15:19 -06:00
Pavel Feldman 4f9d85a947 fix(cli): apply update-check policy to installed skill check (#447) 2026-08-13 11:39:25 -07:00
Pavel Feldman 9805da3991 feat(cli): warn when installed skill is out of date (#427) 2026-06-23 11:13:50 -07:00
Pavel Feldman 0857d71fe5 feat(cli): notify when a newer version is available on npm (#426) 2026-06-23 10:16:29 -07:00
Pavel Feldman a0b79f6f8d chore: roll Playwright to 1.59.0-alpha-1773608981000 (#303) 2026-03-27 18:03:59 -07:00
Pavel Feldman 4914970d43 chore: roll Playwright to latest (#261) 2026-02-14 11:19:27 -08:00
Yury Semikhatsky e53f1085f7 devops: move npm source from playwright-mcp repo (#237) 2026-02-06 11:29:09 -08:00