feat(auth): add TWITTER_BROWSER env var to specify browser preference

Add TWITTER_BROWSER environment variable to allow users to control
which browser's cookies are prioritized during extraction.

Example: TWITTER_BROWSER=chrome twitter feed

Supported values: arc, chrome, edge, firefox, brave.
The specified browser is moved to the front of the extraction order.

Also adds AGENTS.md developer guide for AI coding assistants.

Co-authored-by: Agassi <413855+agassiyzh@users.noreply.github.com>
This commit is contained in:
jackwener
2026-03-15 19:09:35 +08:00
parent 165bb65048
commit d612066bef
4 changed files with 110 additions and 17 deletions

View File

@@ -49,6 +49,7 @@ If `AUTH_NEEDED`, proceed to guide the user:
Ensure user is logged into x.com in one of: Arc, Chrome, Edge, Firefox, Brave. twitter-cli auto-extracts cookies.
All Chrome profiles are scanned automatically. To specify a profile: `TWITTER_CHROME_PROFILE="Profile 2" twitter feed`.
To prioritize a specific browser: `TWITTER_BROWSER=chrome twitter feed` (supported: arc, chrome, edge, firefox, brave).
```bash
twitter whoami