Repository navigation
Conversation
The hidden firecrawl browser command and its launch-session, execute, list and close subcommands are gone, along with the stored session file helper and their tests. firecrawl browser now prints one line that names firecrawl scrape and firecrawl interact and exits 1 without calling the API or asking for a login. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Shadow auto-approve: would require human review. Removes the deprecated firecrawl browser command and replaces it with a stub, deleting its implementation and updating tests. Human sign-off is needed: this is a breaking CLI removal whose merge timing depends on an unverified deprecation-period end.
View guided diff | Turn on auto-fix | Re-trigger cubic
…ning' into capy/remove-cli-browser-command Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # src/__tests__/cli-argv.test.ts # src/index.ts
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #374 (the deprecation warning). Not meant to merge until the deprecation period ends.
Removes the hidden, deprecated
firecrawl browsercommand.firecrawl scrape <url>followed byfirecrawl interactcovers the same workflow: open a page, then drive it with a prompt or with Playwright or agent-browser code.Deletes
src/commands/browser.ts(launch-session,execute,list,closeand the shorthand),src/utils/browser-session.ts(the stored session file) andsrc/__tests__/commands/browser.test.ts.Removes
createBrowserCommandfromsrc/index.tsand dropsbrowserfrom the commands that require login.Keeps the
browsername as a hidden stub, the same wayresearch search-githubwas retired. Any invocation, with any arguments or--help, prints one line to stderr and exits 1 without calling the API or asking for a login:cli-argv.test.tschecks the stub for the shorthand, each former subcommand and--help.Old
browser-session.jsonfiles in the CLI config directory are left in place; nothing reads them.How the old commands map:
firecrawl browser "open <url>"firecrawl scrape <url>firecrawl browser "snapshot","click @e5"firecrawl interact -c "agent-browser snapshot -i" --bash,firecrawl interact -c "agent-browser click @e5" --bash, or a prompt:firecrawl interact "Click the pricing tab"firecrawl browser execute --python '<code>'firecrawl interact -c '<code>' --pythonfirecrawl browser execute --node '<code>'firecrawl interact -c '<code>'firecrawl browser execute --bash '<cmd>'firecrawl interact -c '<cmd>' --bash--profile <name>,--no-save-changesfirecrawl scrapefirecrawl browser closefirecrawl interact stopSummary by cubic
Removes the deprecated
firecrawl browsercommand.firecrawl scrape <url>followed byfirecrawl interactcovers the same workflow: open a page, then drive it with a prompt or with Playwright or agent-browser code.The
browsername stays as a hidden stub: any invocation, including--helpandfirecrawl help browser, prints one error line to stderr and exits 1 without calling the API or asking for a login. The command implementation, the stored-session helper, and their tests are deleted. Oldbrowser-session.jsonfiles in the CLI config directory are left in place; nothing reads them.Migration
firecrawl browser "open <url>"→firecrawl scrape <url>firecrawl browser "snapshot","click @e5"→firecrawl interact -c "agent-browser <cmd>" --bashor a prompt likefirecrawl interact "Click the pricing tab"firecrawl browser execute --python/--node/--bash '<code>'→firecrawl interact -c '<code>' --python(or--bash; no flag for node)firecrawl browser close→firecrawl interact stop--profile <name>and--no-save-changesmove tofirecrawl scrapeWritten for commit 8ddd723. Summary will update on new commits.