Uh oh!
There was an error while loading. Please reload this page.
chore(cli): make skill discoverable from --help - #40274
Conversation
Commander was intercepting --help on the hidden 'cli' subcommand and printing its own help, never reaching cliProgram. Disable commander's built-in help handling for this subcommand.
Show the relative path to the SKILL.md bundled with playwright-core when users run 'playwright cli' with no command or '--help', so agents running the CLI can discover the skill file.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| console.log(command.help); | ||
| } else { | ||
| console.log('playwright-cli - run playwright mcp commands from terminal\n'); | ||
| console.log(`Agent skill: ${path.relative(process.cwd(), libPath('tools', 'cli-client', 'skill', 'SKILL.md'))}\n`); |
There was a problem hiding this comment.
I don't think we should be sending the user to a relative path to the npm cache folder for skills? Rather should recommend running install --skills?
Simon Knott (Skn0tt)
commented
Apr 20, 2026
discussed again, let's land under AGENT env var |
Addresses review feedback on microsoft#40274.
| export function guessClientName(): string { | ||
| if (process.env.CLAUDECODE) | ||
| return 'Claude Code'; | ||
| if (process.env.COPILOT_CLI) | ||
| return 'GitHub Copilot'; | ||
| return 'playwright-cli'; | ||
| } | ||
| export function isCodingAgent(): boolean { | ||
| return !!process.env.CLAUDECODE || !!process.env.COPILOT_CLI; | ||
| } | ||
There was a problem hiding this comment.
This seems absolutely unrelated to the registry!
Addresses review feedback on microsoft#40274.
# Conflicts: # packages/playwright-core/src/tools/cli-client/program.ts
Test results for "MCP"3 failed 6457 passed, 976 skipped Merge workflow run. |
Test results for "tests 1"6 flaky39245 passed, 847 skipped Merge workflow run. |
Uh oh!
There was an error while loading. Please reload this page.
No description provided.