feat(browser): warn that firecrawl browser is deprecated
firecrawl browser has been hidden from help and documented as replaced by firecrawl scrape plus firecrawl interact, but running it gave no sign of that. This makes the deprecation visible before the command is removed.
-
Every
firecrawl browserinvocation, includinglaunch-session,execute,listandclose, now prints one line to stderr:Warning: `firecrawl browser` is deprecated and will be removed in a future release. Use `firecrawl scrape <url>`, then `firecrawl interact "<prompt>"` or `firecrawl interact -c "<code>"`. See `firecrawl interact --help`. -
Stdout,
--jsonoutput and exit codes are unchanged, so scripts that read the command's output keep working. -
The warning is a
preActionhook on thebrowsercommand, so Commander runs it for the command and every subcommand. -
cli-argv.test.tscovers the shorthand and a subcommand against the built CLI.
No version bump; it ships with the next release.
Summary by cubic
Every firecrawl browser invocation now prints a deprecation warning to stderr, pointing users to firecrawl scrape and firecrawl interact as replacements before the command is removed.
- The warning runs for the
browsercommand and all its subcommands via apreActionhook, and also appears inbrowserandbrowsersubcommand help output. - Stdout,
--jsonoutput, and exit codes are unchanged, so existing scripts keep working.