feat(cli): Discord as help/bug-report fallback
SH
3d ago+133+133+012345678901234567890123456789-0-0-0123456789
why
Help users find the Stagehand and Browse CLI community when they check help or encounter an unexpected error. This PR is stacked on #3450, which adds browse discord and the updated community invitation.
what changed
Adds this footer to root help (browse and browse --help):
COMMUNITY
Discord: https://discord.gg/stagehand
Report a bug: https://github.com/browserbase/stagehand/issues
Unexpected runtime errors also print this hint to stderr:
Get help: https://discord.gg/stagehand · Report a bug: https://github.com/browserbase/stagehand/issues
The footer appears only on root help. Usage errors, command-not-found, and expected CommandFailure errors omit the support hint.
For review, packages/cli/src/help.ts adds the footer and packages/cli/src/base.ts handles the error hint. Includes a patch changeset for browse.
test plan
- CLI TypeScript build and oclif manifest generation.
- Discord, opener, help, and CLI surface tests: 83 passed.
- Unexpected-error subprocess case verifies both support links on stderr, the original error, and exit code 1; removing the hint makes the test fail.
- Changed-file formatting and lint.
- CI passing at
5c8de796d, including Linux/Windows contracts, Chrome smoke tests, regression tests, and automated review. Windows contracts passed on rerun after the existing daemon-lock fixtureEPERM; the isolated test fix is #3456.